@font-face {
  font-family: Harmony;
  src: url("assets/fonts/noto-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Harmony;
  src: url("assets/fonts/noto-bold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
:root {
  --bg: #041426;
  --panel: #04223d;
  --subpanel: #08325a;
  --blue: #168bff;
  --cyan: #20d9ff;
  --green: #00dba0;
  --red: #ff4d5e;
  --orange: #ff922e;
  --yellow: #ffc94a;
  --text: #eef6ff;
  --muted: #99bad9;
  --line: #05679e;
  --scale: 1;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Harmony, "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
select,
input[type="checkbox"] {
  cursor: pointer;
}
button {
  border: 1px solid #065686;
  background: #032039;
  border-radius: 5px;
  padding: 6px 18px;
  white-space: nowrap;
  min-height: 30px;
}
button:hover,
a:hover {
  color: #fff;
  border-color: var(--cyan);
  box-shadow: inset 0 0 16px #007ed34d;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
input,
select,
textarea {
  border: 1px solid #10557c;
  background: #032039;
  border-radius: 4px;
  padding: 7px 12px;
  min-width: 0;
  height: 35px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
}
input::placeholder {
  color: #6d94b6;
}
select {
  padding-right: 26px;
}
a {
  color: #31bdff;
  text-decoration: none;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
img {
  object-fit: contain;
  vertical-align: middle;
}
small {
  font-size: 12px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.green {
  color: var(--green);
}
.red {
  color: var(--red);
}
.orange {
  color: var(--orange);
}
.cyan {
  color: var(--cyan);
}
.strong {
  font-weight: 700;
}
.nowrap {
  white-space: nowrap;
}
.flex {
  display: flex;
  align-items: center;
}
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gap {
  gap: 10px;
}
.fill {
  flex: 1;
  min-width: 0;
}
.primary,
button.active {
  background: linear-gradient(180deg, #004099, #0067e5 72%, #009de5);
  border-color: #00bbff;
  box-shadow:
    inset 0 -2px 5px #00caff6b,
    0 2px 9px #007dff38;
  color: #fff;
}
.danger {
  border-color: #b63a50;
  background: #52223a;
  color: #ff6976;
}
.ghost {
  border: 0;
  background: transparent;
  padding: 0 6px;
  min-height: 24px;
  box-shadow: none !important;
  color: #71c9ff;
}
.gold {
  border-color: #a77512;
  background: #3c3722;
  color: var(--yellow);
}
.icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}
.icon.small {
  width: 22px;
  height: 22px;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 7px;
  vertical-align: middle;
}
.dot.red {
  background: var(--red);
}
.dot.orange {
  background: var(--orange);
}
.dot.blue {
  background: var(--blue);
}
.dot.purple {
  background: #9362ef;
}
.chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 5px;
  border: 1px solid currentColor;
  font-size: 13px;
  line-height: 18px;
}
.chip.red {
  background: #6d283d;
}
.chip.green {
  background: #004740;
}
.chip.orange {
  background: #794117;
}
.chip.yellow {
  color: #ffe492;
  background: #7b641c;
}
.chip.gray {
  color: #8fa9bf;
  background: #213c54;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.progress {
  height: 8px;
  background: #154776;
  border-radius: 8px;
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #11bff6;
}
.progress.green > i {
  background: #04dbaa;
}
.progress.orange > i {
  background: var(--orange);
}
#viewport {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}
#dashboard {
  position: absolute;
  left: 0;
  top: 0;
  width: 1672px;
  height: 941px;
  transform: scale(var(--scale));
  transform-origin: top left;
  background: #031c35 url("assets/backgrounds/page-texture.svg") repeat;
}
#header {
  height: 70px;
  background: #031b33 url("assets/backgrounds/header-texture.svg") repeat-x;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #0575ae;
  padding-right: 24px;
}
.brand {
  width: 425px;
  height: 71px;
  object-fit: contain;
}
.project-name {
  display: flex;
  align-items: center;
  width: 261px;
  height: 37px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #10557c;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin-left: 3px;
  background: #05233d;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  cursor: default;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  font-size: 13px;
}
.header-meta > .meta-item {
  display: flex;
  gap: 7px;
  align-items: center;
  padding-left: 18px;
  border-left: 1px solid #104060;
}
.bell {
  position: relative;
}
.bell img {
  width: 31px;
}
.bell b {
  position: absolute;
  right: 0;
  top: -7px;
  background: var(--red);
  font-size: 10px;
  border-radius: 12px;
  padding: 3px;
}
.admin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 0;
}
.admin-button img {
  width: 39px;
  flex-shrink: 0;
}
.admin-button .admin-label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.admin-button .admin-chevron {
  display: block;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  align-self: center;
}
#navigation {
  height: 49px;
  display: flex;
  align-items: stretch;
  margin: 0 20px;
  border-bottom: 1px solid #006395;
  background: #021d36;
}
#navigation a {
  width: 181px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #d7eaff;
  font-size: 17px;
  position: relative;
  border: 1px solid transparent;
}
#navigation a::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 10px;
  width: 1px;
  height: 28px;
  background: #00527b;
}
#navigation a.active {
  background: linear-gradient(180deg, #033166, #004296 72%, #006b9b);
  border: 1px solid #0098e5;
  border-bottom-color: #18d9ff;
  border-radius: 0 0 6px 6px;
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 -4px 10px #087dba77;
}
#navigation img {
  width: 38px;
  height: 36px;
  mix-blend-mode: screen;
}
#main {
  position: absolute;
  inset: 130px 11px 11px;
}
.page {
  position: relative;
  width: 1650px;
  height: 800px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #03213bf0;
  overflow: hidden;
  box-shadow: inset 0 0 24px #063b631a;
}
.panel-title {
  height: 39px;
  border-bottom: 1px solid #08446b;
  background: #052946a8;
  display: flex;
  align-items: center;
  padding: 0 12px 0 19px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.8px;
  position: relative;
  gap: 10px;
}
.panel-title::before {
  content: "";
  width: 3px;
  height: 22px;
  position: absolute;
  left: 6px;
  top: 9px;
  background: var(--cyan);
  box-shadow: 0 0 5px #14cfff55;
}
.panel-title .tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}
.panel-title .tools button {
  min-height: 27px;
  height: 27px;
  padding: 2px 20px;
}
.panel-body {
  height: calc(100% - 39px);
  position: relative;
  padding: 10px;
}
.positioned {
  position: absolute;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 5px;
}
.tabs button {
  min-height: 29px;
  padding: 4px 20px;
  color: #a5c7e7;
}
.tabs button.active {
  color: white;
}
.tabs.wide button {
  flex: 1;
}
.section-tabs {
  height: 44px;
  padding: 6px 8px;
  border-bottom: 1px solid #065581;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-tabs button {
  height: 31px;
  padding: 4px 30px;
}
.section-tabs .right {
  margin-left: auto;
  display: flex;
  gap: 9px;
}
.metrics {
  display: grid;
  gap: 9px;
}
.metric {
  display: flex;
  align-items: center;
  position: relative;
  gap: 18px;
  padding: 12px 16px;
  min-width: 0;
  border: 1px solid #009dcc;
  border-radius: 6px;
  background: #042640;
  box-shadow: inset 0 0 24px #0045744d;
}
.metric > img {
  width: 73px;
  height: 73px;
  mix-blend-mode: screen;
}
.metric .label {
  font-size: 17px;
  margin-bottom: 2px;
  letter-spacing: 1px;
}
.metric .value {
  font-size: 39px;
  font-weight: 700;
  line-height: 1.12;
  white-space: nowrap;
}
.metric .unit {
  font-size: 17px;
  font-weight: 400;
  margin-left: 7px;
}
.metric .trend {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  white-space: nowrap;
}
.metric .progress {
  margin-top: 10px;
}
.metric.compact {
  gap: 14px;
  padding: 10px 14px;
}
.metric.compact > img {
  width: 58px;
  height: 58px;
}
.metric.compact .value {
  font-size: 32px;
}
.metric.compact .label {
  font-size: 15px;
}
.metric .metric-tail {
  margin-left: auto;
  align-self: flex-end;
  padding-bottom: 7px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.query {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.query label {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex: 1;
  font-size: 14px;
}
.query label input,
.query label select {
  flex: 1;
  width: 100px;
}
.query .buttons {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.query .buttons button {
  height: 38px;
  min-width: 84px;
}
.query.vertical label {
  display: block;
}
.query.vertical label input,
.query.vertical label select {
  width: 100%;
  margin-top: 5px;
}
.query.vertical {
  gap: 16px;
}
.query-title {
  font-size: 17px;
  font-weight: 600;
  border-left: 3px solid var(--cyan);
  padding-left: 10px;
  white-space: nowrap;
}
.chart {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.chart-wrapper {
  height: 100%;
  position: relative;
}
.chart-note {
  position: absolute;
  left: 8px;
  top: 14px;
  font-size: 12px;
  color: #bed5e9;
}
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 27px;
  font-size: 12px;
  color: #b5d3ed;
}
.chart-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 7px;
}
.rank-list {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  font-size: 13px;
  gap: 7px;
}
.rank {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 17px;
}
.rank .number {
  width: 20px;
  line-height: 19px;
  text-align: center;
  background: #164569;
  border-radius: 3px;
}
.rank:nth-child(1) .number {
  background: #f86420;
}
.rank:nth-child(2) .number {
  background: #168aff;
}
.rank:nth-child(3) .number {
  background: #ffab19;
}
.rank .rank-name {
  width: 90px;
  flex-shrink: 0;
}
.rank .progress {
  flex: 1;
  border-radius: 2px;
  height: 10px;
  background: #0a355a;
}
.rank .progress > i {
  border-radius: 1px;
}
.rank .rank-number {
  width: 52px;
  text-align: right;
  color: #cbdcf3;
}
.table-wrap {
  position: relative;
  isolation: isolate;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #145580 #041a30;
}
.data-table {
  /* 独立绘制边框，避免吸顶表头在大屏缩放后留下能透出数据的缝隙。 */
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: fixed;
  font-size: 13px;
  text-align: center;
}
.data-table th {
  height: 32px;
  color: #b9dfff;
  background: #0b3358;
  font-weight: 400;
  letter-spacing: 1px;
}
.data-table td {
  height: 29px;
  padding: 3px 8px;
  border-right: 1px solid #083556;
  border-bottom: 1px solid #073453;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.data-table th {
  border-right: 1px solid #0a426b;
}
.data-table tbody tr:nth-child(even) {
  background: #062a49;
}
.data-table tbody tr:hover {
  background: #07426a;
}
.data-table tbody tr.selected {
  background: #084777;
}
.data-table .text-left {
  text-align: left;
}
.data-table button {
  font-size: 12px;
  padding: 2px 10px;
  min-height: 25px;
}
.data-table .link {
  border: 0;
  background: none;
  color: #35baff;
  padding: 0 6px;
  min-height: 20px;
}
.data-table .link.danger {
  color: var(--red);
}
input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 1px solid #71a8d2;
  border-radius: 3px;
  vertical-align: middle;
  margin: 0;
  background: #04223e;
  flex: none;
}
input[type="checkbox"]:checked {
  background: #0089ff;
  border-color: #0bddff;
}
input[type="checkbox"]:checked::after {
  content: "✓";
  display: block;
  font-size: 12px;
  line-height: 12px;
  color: #fff;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 41px;
  padding: 7px 8px;
  font-size: 12px;
  color: #b6d1ec;
}
.pagination .pages {
  display: flex;
  gap: 7px;
  align-items: center;
}
.pagination button {
  min-height: 26px;
  height: 26px;
  min-width: 26px;
  padding: 0 7px;
}
.pagination select {
  height: 26px;
  font-size: 12px;
  padding: 1px 8px;
}
.pagination input {
  height: 26px;
  width: 46px;
  text-align: center;
  padding: 0;
}
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.tree-search {
  width: 100%;
  height: 34px;
  margin: 0 0 8px;
}
.tree {
  font-size: 15px;
  line-height: 28px;
}
.tree summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 8px;
  white-space: nowrap;
  border-radius: 4px;
}
.tree summary::before {
  content: "›";
  color: #b2d7f8;
  font-size: 16px;
}
.tree details[open] > summary::before {
  content: "⌄";
}
.tree details details {
  margin-left: 17px;
  border-left: 1px solid #245374;
  padding-left: 3px;
}
.tree .tree-leaf {
  margin-left: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 24px;
}
.tree summary:hover,
.tree .tree-leaf:hover,
.tree .selected {
  background: #073d68;
}
.tree small {
  margin-left: auto;
}
.tree .folder {
  width: 17px;
  height: 14px;
  display: inline-block;
  background: #24bde9;
  border-radius: 2px;
}
.tree img {
  width: 18px;
  height: 20px;
  mix-blend-mode: screen;
}
.tree .root-node {
  background: #05365b;
  border: 1px solid #075082;
}
.map {
  position: relative;
  overflow: hidden;
  border: 1px solid #2981ae;
  border-radius: 6px;
  background: #16384a;
}
.map-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.25s;
  transform-origin: 50% 50%;
}
.map-tools {
  position: absolute;
  top: 10px;
  left: 12px;
  display: flex;
  gap: 0;
  background: #021d36;
  border: 1px solid #0a5a89;
  border-radius: 4px;
  overflow: hidden;
}
.map-tools button {
  border-radius: 0;
  border: 0;
  border-right: 1px solid #135779;
  padding: 8px 22px;
  height: 37px;
}
.map-side {
  position: absolute;
  top: 68px;
  left: 12px;
  display: flex;
  flex-direction: column;
  background: #021d36;
  border: 1px solid #245d80;
  border-radius: 4px;
}
.map-side button {
  width: 49px;
  height: 58px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid #17516f;
  font-size: 12px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.map-side img {
  width: 22px;
  height: 22px;
  mix-blend-mode: screen;
}
.map-zoom {
  position: absolute;
  right: 13px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.map-zoom button {
  padding: 0;
  width: 36px;
  height: 34px;
  font-size: 25px;
}
.map-marker {
  position: absolute;
  width: 28px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  min-height: 0;
}
.map-marker:hover {
  box-shadow: 0 0 0 8px #00bfff33;
  background: #21cfff33;
}
.map-legend {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 111px;
  background: #031e38f0;
  border: 1px solid #2a678f;
  border-radius: 5px;
  padding: 9px;
  font-size: 12px;
}
.map-legend div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.map-legend img {
  width: 20px;
  height: 20px;
  mix-blend-mode: screen;
}
.map-legend .line-sample {
  width: 25px;
  height: 15px;
  border: 1px solid var(--cyan);
}
.map-legend .dashed {
  border-style: dashed;
}
.map-callout {
  position: absolute;
  background: #05233ee8;
  border: 1px solid #1284ca;
  border-radius: 7px;
}
.battery {
  display: inline-block;
  width: 24px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 1px;
  margin-right: 6px;
  vertical-align: middle;
}
.battery i {
  display: block;
  height: 100%;
  background: currentColor;
}
.video-tile {
  position: relative;
  border: 1px solid #427696;
  border-radius: 5px;
  overflow: hidden;
  background: #031b30;
  min-width: 0;
  min-height: 0;
}
.video-tile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-tile .video-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background: #052746bf;
  font-size: 13px;
}
.video-tile .video-top button {
  padding: 0 5px;
  min-height: 25px;
  font-size: 15px;
  background: #052442;
}
.video-tile .video-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #041b32b3;
  padding: 4px 7px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.video-tile.offline > img {
  filter: grayscale(1);
  opacity: 0.15;
}
.video-tile.offline::after {
  content: "通道离线";
  position: absolute;
  inset: 45% 0;
  text-align: center;
  color: #b8d2e9;
}
.video-wall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
  height: 100%;
}
.video-wall.nine {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.video-wall.nine .video-top {
  font-size: 10px;
}
.channel-list {
  margin-top: 8px;
}
.channel {
  display: flex;
  align-items: center;
  width: 100%;
  height: 43px;
  border: 0;
  border-bottom: 1px solid #074069;
  border-radius: 0;
  padding: 4px 10px;
  gap: 8px;
  font-size: 15px;
}
.channel .icon {
  width: 22px;
  height: 22px;
  mix-blend-mode: screen;
}
.channel small {
  margin-left: auto;
  font-size: 12px;
}
.channel.active {
  border: 1px solid #00b9ff;
  border-radius: 5px;
}
.event-card {
  display: flex;
  gap: 12px;
  border: 1px solid #084c76;
  border-radius: 6px;
  padding: 9px;
  margin-top: 8px;
  background: #031f38;
  min-height: 99px;
}
.event-card > img {
  width: 104px;
  height: 77px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #416783;
}
.event-card .event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.event-card .event-content small {
  font-size: 12px;
}
.event-card button {
  padding: 0 3px;
  border: 0;
}
.switch {
  display: inline-flex;
  position: relative;
  width: 38px;
  height: 22px;
  min-height: 0;
  padding: 0;
  background: #0961a2;
  border: 1px solid #128dc5;
  border-radius: 20px;
  vertical-align: middle;
}
.switch::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #eaf7ff;
  border-radius: 50%;
  transition: left 0.15s;
}
.switch[aria-checked="true"] {
  background: #1596ff;
}
.switch[aria-checked="true"]::after {
  left: 19px;
}
.switch.small {
  width: 35px;
  height: 18px;
}
.switch.small::after {
  width: 12px;
  height: 12px;
  top: 2px;
}
.switch.small[aria-checked="true"]::after {
  left: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 10px 8px;
  align-items: center;
}
.form-grid input,
.form-grid select {
  width: 100%;
  height: 32px;
}
.form-grid textarea {
  height: 80px;
  resize: vertical;
}
.overview-left .panel-body {
  padding: 10px;
}
.onsite-ring {
  position: absolute;
  width: 184px;
  height: 194px;
  left: 0;
  top: 45px;
}
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ring-center b {
  font-size: 31px;
  line-height: 1.1;
}
.ring-center span {
  font-size: 14px;
}
.ring-center img {
  width: 35px;
  height: 40px;
  mix-blend-mode: screen;
}
.onsite-stats {
  position: absolute;
  right: 10px;
  top: 29px;
  width: 137px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.onsite-stats > div {
  border: 1px solid #075181;
  border-radius: 6px;
  height: 62px;
  padding: 6px 9px;
  display: flex;
  gap: 9px;
  align-items: center;
  background: #042843;
}
.onsite-stats b {
  font-size: 24px;
}
.onsite-stats small {
  display: block;
  font-size: 13px;
}
.onsite-stats em {
  font-style: normal;
  font-size: 12px;
  margin-left: 5px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 4px;
}
.quick-grid button {
  height: 83px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  background: #04223c;
}
.quick-grid img {
  width: 40px;
  height: 40px;
  mix-blend-mode: screen;
}
.alarm-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 3px 0 10px;
}
.alarm-counts > button {
  display: flex;
  gap: 9px;
  padding: 7px;
  height: 69px;
  align-items: center;
  text-align: left;
}
.alarm-counts img {
  width: 53px;
  height: 53px;
  mix-blend-mode: screen;
}
.alarm-counts b {
  font-size: 28px;
  display: block;
}
.alarm-item {
  height: 69px;
  border: 1px solid #08456b;
  border-radius: 6px;
  padding: 6px 9px;
  margin-bottom: 7px;
  cursor: pointer;
}
.alarm-item:hover {
  border-color: var(--cyan);
}
.alarm-item .alarm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
}
.alarm-item .alarm-foot {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
}
.alarm-item .alarm-foot small {
  font-size: 12px;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 4px 10px;
  font-size: 12px;
  height: 35px;
  border-radius: 4px;
}
.activity-row:nth-child(odd) {
  background: #072d4d;
}
.activity-row img {
  width: 27px;
  height: 27px;
  mix-blend-mode: screen;
}
.activity-row b {
  font-weight: 400;
  min-width: 66px;
}
.activity-row span {
  min-width: 76px;
}
.activity-row time {
  margin-left: auto;
}
.overview-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 100%;
}
.overview-videos .video-tile > img {
  object-fit: cover;
}
.location-list .panel-body {
  padding: 9px 12px;
}
.location-tabs {
  margin-bottom: 10px;
}
.location-tabs button {
  height: 40px;
  flex: 1;
  font-size: 16px;
}
.location-counts {
  display: flex;
  gap: 9px;
  margin: 10px 0;
}
.location-counts button {
  padding: 5px 14px;
  flex: 1;
  font-size: 13px;
}
.location-counts b {
  font-size: 19px;
}
.location-list .data-table td {
  height: 32px;
  font-size: 12px;
  padding: 3px 2px;
}
.location-list .data-table th {
  height: 30px;
}
.location-list .list-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}
.location-list .list-actions button {
  padding: 7px 12px;
  flex: 1;
}
.person-detail .panel-body {
  padding: 12px;
}
.person-detail .person-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.person-detail .person-id img {
  width: 67px;
  height: 67px;
}
.person-detail .person-id h3 {
  font-size: 21px;
  margin-right: auto;
}
.person-detail .form-grid {
  grid-template-columns: 75px 1fr;
  font-size: 13px;
  gap: 10px;
  padding-left: 87px;
  margin-top: -29px;
}
.person-detail .form-grid label {
  color: #bbd8ee;
}
.person-detail .detail-actions {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}
.person-detail .detail-actions button {
  flex: 1;
  padding: 8px;
}
.person-detail .mini-alarm {
  border: 1px solid #07466f;
  border-radius: 5px;
  padding: 8px;
  font-size: 12px;
  line-height: 22px;
}
.fence-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 11px;
  height: 48px;
  border: 1px solid #06436a;
  border-radius: 6px;
  margin: 0 0 1px;
  background: #032542;
}
.fence-group.selected {
  border-color: #00b7ff;
  background: #063457;
}
.fence-group .color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.fence-group b {
  font-weight: 400;
  font-size: 15px;
}
.fence-group .count {
  margin-left: auto;
  margin-right: 18px;
  color: #adcce4;
}
.fence-info {
  padding: 12px;
}
.fence-meta {
  margin: 16px 0 8px;
  border: 1px solid #075280;
  border-radius: 6px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fence-meta b {
  display: block;
  font-size: 16px;
  margin-top: 4px;
  font-weight: 400;
}
.project-photo {
  width: 305px;
  height: 236px;
  object-fit: cover;
  border: 1px solid #5a93b6;
  border-radius: 6px;
}
.project-details {
  flex: 1;
  align-self: stretch;
  min-width: 0;
}
.project-details h2 {
  font-size: 23px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 7px;
}
.project-details h2 .chip {
  font-size: 15px;
  padding: 2px 19px;
}
.project-properties {
  border: 1px solid #074b73;
  border-radius: 5px;
  padding: 4px 10px;
}
.project-properties .property {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #0b4770;
  font-size: 13px;
  min-height: 35px;
}
.project-properties .property:last-child {
  border: 0;
  align-items: flex-start;
  line-height: 20px;
}
.project-properties .property > span {
  width: 80px;
  flex-shrink: 0;
  color: #a9cdeb;
}
.project-properties .property img {
  width: 23px;
  height: 23px;
  mix-blend-mode: screen;
}
.companies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 100%;
}
.company {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #075481;
  border-radius: 6px;
  padding: 9px;
  background: #042c49;
  line-height: 18px;
  font-size: 12px;
}
.company img {
  width: 48px;
  height: 52px;
  mix-blend-mode: screen;
}
.company h3 {
  font-size: 14px;
  color: #88d0ff;
  font-weight: 400;
  margin-bottom: 3px;
}
.org-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.org-stat-grid .metric {
  padding: 8px 10px;
  height: 79px;
  gap: 10px;
  border-color: #075e8b;
}
.org-stat-grid .metric img {
  width: 61px;
  height: 61px;
}
.org-stat-grid .metric .label {
  font-size: 13px;
}
.org-stat-grid .metric .value {
  font-size: 31px;
}
.completion {
  padding: 3px 8px;
}
.completion > div {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  margin-bottom: 5px;
}
.completion .progress {
  flex: 1;
  height: 10px;
}
.completion span {
  width: 56px;
}
.completion em {
  font-style: normal;
  width: 46px;
  text-align: right;
}
.abnormal {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  border-bottom: 1px solid #074168;
}
.abnormal img {
  width: 35px;
  height: 35px;
  mix-blend-mode: screen;
}
.abnormal b {
  font-size: 13px;
  font-weight: 400;
  display: block;
}
.abnormal small {
  font-size: 10px;
}
.abnormal .chip {
  font-size: 12px;
  padding: 2px 12px;
  margin-left: auto;
}
.abnormal time {
  font-size: 10px;
  margin-left: 5px;
  color: #bdd2e5;
}
.employee-counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  height: 77px;
}
.employee-counters > div {
  border: 1px solid #064e77;
  border-radius: 5px;
  text-align: center;
  padding: 5px 2px;
  font-size: 12px;
}
.employee-counters b {
  display: block;
  margin: 6px 0;
  font-size: 16px;
}
.employee-counters small {
  font-size: 10px;
}
.vehicle-preview {
  display: flex;
  gap: 12px;
  height: 100%;
}
.vehicle-preview > img {
  width: 292px;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.vehicle-info {
  flex: 1;
  font-size: 13px;
  line-height: 29px;
}
.vehicle-info dt {
  float: left;
  color: #a9c7e4;
  width: 70px;
}
.vehicle-info dd {
  margin-left: 70px;
  white-space: nowrap;
}
.vehicle-info dl {
  margin: 0;
}
.vehicle-info .buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.vehicle-info .buttons button {
  padding: 4px 10px;
}
.device-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 39px;
  border-bottom: 1px solid #065689;
}
.device-heading h1 {
  font-size: 27px;
  border-left: 4px solid var(--cyan);
  padding-left: 12px;
}
.device-heading p {
  font-size: 13px;
  color: var(--muted);
}
.device-heading .tabs button {
  min-width: 133px;
}
.components-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.45fr;
  grid-template-rows: 320px 183px 312px;
  gap: 10px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 16px;
  padding: 7px;
}
.swatch i {
  display: block;
  height: 57px;
  border: 1px solid #168ccd;
  border-radius: 5px;
  margin-bottom: 8px;
}
.swatch span {
  display: block;
}
.component-preview {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px;
}
.component-page .panel-title {
  font-size: 19px;
}
#modal {
  border: 1px solid #159dde;
  border-radius: 10px;
  background: #05243f;
  color: var(--text);
  padding: 0;
  min-width: 440px;
  max-width: min(90vw, 900px);
  box-shadow: 0 20px 80px #000a;
}
#modal::backdrop {
  background: #000a;
  backdrop-filter: blur(3px);
}
.modal-header {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #11527a;
  padding: 0 20px;
}
.modal-header h2 {
  font-size: 19px;
}
.modal-content {
  padding: 22px;
  max-height: 65vh;
  overflow: auto;
}
.modal-content .form-grid {
  grid-template-columns: 100px 1fr;
  gap: 15px;
}
.modal-footer {
  padding: 14px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #12557b;
}
.modal-content .details-row {
  display: flex;
  padding: 11px 0;
  border-bottom: 1px solid #164360;
  gap: 20px;
}
.modal-content .details-row label {
  width: 110px;
  color: var(--muted);
}
.modal-content .details-row span {
  flex: 1;
}
.modal-content .video-tile {
  height: 360px;
  width: 640px;
}
.modal-content .hint {
  font-size: 13px;
  color: #a7c4de;
  margin-top: 12px;
  line-height: 1.7;
}
.modal-content textarea {
  width: 100%;
  height: 90px;
  margin-top: 10px;
}
.qr-image {
  width: 200px;
  height: 200px;
}
.empty {
  padding: 30px !important;
  text-align: center;
  color: #8eadc9;
}
.component-link {
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #083b5b;
  border: 1px solid #0fc3ed;
  border-radius: 6px;
  box-shadow: 0 8px 30px #0007;
  padding: 12px 24px;
  z-index: 50;
  pointer-events: none;
  transition: 0.2s;
  font-size: 14px;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.playback-bar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  background: #032643ef;
  border: 1px solid #159edf;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  z-index: 10;
}
.playback-bar input {
  flex: 1;
}
.map.selected-area {
  outline: 2px solid var(--cyan);
  outline-offset: -8px;
}
.map.selected-area::after {
  content: "框选模式：点击地图人员查看定位";
  position: absolute;
  bottom: 70px;
  left: 40%;
  background: #032a47e8;
  border: 1px solid #11aeef;
  padding: 7px 12px;
  border-radius: 5px;
  pointer-events: none;
}
.org-cover-upload {
  display: none;
}
.user-menu {
  position: absolute;
  right: 15px;
  top: 59px;
  z-index: 30;
  min-width: 170px;
  padding: 8px;
  background: #032744;
  border: 1px solid #096fa6;
  border-radius: 5px;
  box-shadow: 0 7px 28px #0009;
}
.user-menu button {
  display: block;
  width: 100%;
  margin: 4px 0;
}
.hidden {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 800px) {
  #viewport {
    margin-left: 0;
  }
  #modal {
    min-width: 0;
    width: 92vw;
  }
  .modal-content .video-tile {
    width: 100%;
    height: 240px;
  }
}
/* 原稿逐页核对后的精确尺寸覆盖。 */
html,
body {
  font-size: 14px;
  line-height: 1.4;
}
.panel {
  background: linear-gradient(110deg, #031e36, #03213c);
  box-shadow: inset 0 0 20px #052e4a44;
}
.panel-title {
  background: linear-gradient(100deg, #042541, #062a4a);
  white-space: nowrap;
  font-size: 18px;
}
.panel-title .tools {
  flex-shrink: 0;
}
.panel-body {
  min-height: 0;
}
.metric {
  min-height: 0;
  overflow: hidden;
  line-height: 1.2;
}
.metrics {
  min-height: 0;
  grid-template-rows: minmax(0, 1fr);
}
.metric > img,
.metric.compact > img,
.alarm-counts img,
.abnormal img,
.org-stat-grid .metric img {
  border-radius: 50%;
  mix-blend-mode: lighten;
}
.metric > img {
  width: 73px;
  height: 73px;
}
.metric .label {
  font-size: 17px;
}
.metric .value {
  font-size: 39px;
}
.metric .trend {
  line-height: 1.2;
}
.metric-tail {
  position: absolute;
  right: 16px;
  bottom: 12px;
  padding: 0 !important;
}
.metric.compact .value {
  font-size: 34px;
}
.metric.compact .label {
  font-size: 15px;
}
.icon,
.tree img,
#navigation img,
.quick-grid img,
.map-side img,
.map-legend img,
.company img {
  mix-blend-mode: lighten !important;
}
.header-meta {
  font-size: 13px;
  gap: 16px;
}
.project-name {
  font-weight: 600;
  font-size: 17px;
}
#navigation a {
  flex: none;
}
#navigation a:nth-child(1) {
  width: 182px;
}
#navigation a:nth-child(2) {
  width: 173px;
}
#navigation a:nth-child(3) {
  width: 178px;
}
#navigation a:nth-child(4) {
  width: 175px;
}
#navigation a:nth-child(5) {
  width: 189px;
}
#navigation a:nth-child(6) {
  width: 174px;
}
#navigation a:nth-child(7) {
  width: 179px;
}
#navigation a:nth-child(8) {
  width: 178px;
}
#navigation a:nth-child(9) {
  width: 207px;
}
#navigation a {
  font-size: 17px;
  font-weight: 400;
}
#navigation a.active {
  font-weight: 600;
}
.header-meta time {
  letter-spacing: 0.25px;
}
.data-table {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}
.data-table td {
  height: 26px;
  padding: 2px 7px;
}
.data-table th {
  height: 29px;
  white-space: nowrap;
}
.data-table button {
  font-size: 12px;
}
.query label {
  min-width: 0;
}
.query label input,
.query label select {
  width: 0;
  min-width: 0;
}
.query {
  gap: 10px;
}
.query.vertical label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.query.vertical label input,
.query.vertical label select {
  width: 100%;
  height: 35px;
  margin-top: 6px;
}
.query.vertical .buttons {
  padding-top: 18px;
}
.query.vertical {
  padding: 8px 16px 12px;
}
.query .buttons {
  flex-shrink: 0;
}
.query .buttons button {
  min-width: 80px;
}
.primary,
button.active {
  font-weight: 400;
}
.chip {
  font-size: 13px;
  line-height: 18px;
}
.chip.red {
  color: #fff;
  background: #7b3046;
  border-color: #ed4b66;
}
.chip.orange {
  color: #fff;
  background: #a96223;
  border-color: #fe9a38;
}
.chip.yellow {
  color: #152a40;
  background: #ffd263;
  border-color: #fff09c;
}
.status.yellow {
  color: #ffc94a;
}
.overview .metric.compact {
  align-items: flex-start;
  padding: 12px 14px;
  gap: 12px;
}
.overview .metric.compact .label {
  margin-bottom: 5px;
}
.overview .metric.compact .value {
  font-size: 37px;
}
.overview .metric .progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 34px;
}
.overview .metric .trend {
  position: absolute;
  left: 18px;
  bottom: 10px;
  font-size: 12px;
}
.onsite-ring {
  top: 39px;
  left: 0;
  width: 185px;
  height: 194px;
}
.onsite-stats {
  top: 29px;
}
.overview-videos {
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}
.overview-videos > a {
  min-height: 0;
  height: 100%;
  display: block;
}
.overview-videos .video-tile {
  height: 100%;
  width: 100%;
}
.overview-videos .video-bottom {
  font-size: 10px;
  padding: 2px 5px;
}
.overview-videos small {
  font-size: 10px;
}
.overview .alarm-item {
  height: 69px;
}
.overview .alarm-item .alarm-foot {
  font-size: 13px;
  gap: 7px;
}
.overview .alarm-item .alarm-foot b {
  font-weight: 600;
}
.overview .alarm-item .alarm-foot small {
  font-size: 11px;
}
.overview .panel-title .tools button {
  padding: 2px 16px;
}
.activity-row span {
  min-width: 65px;
}
.activity-row {
  gap: 12px;
}
.overview .onsite-ring .ring-center img {
  width: 39px;
  height: 44px;
}
.location .metrics .metric {
  padding: 8px 26px;
  gap: 18px;
}
.location .metrics .metric > img {
  border-radius: 0;
  width: 49px;
  height: 51px;
}
.location .metrics .metric .value {
  font-size: 31px;
}
.location-list .panel-body {
  padding: 10px 12px;
}
.location-list .data-table td {
  height: 32px;
  line-height: 1.1;
  padding: 1px 2px;
}
.location-list .data-table th {
  height: 30px;
  font-size: 12px;
  letter-spacing: 0;
}
.location-list .battery {
  width: 17px;
  height: 10px;
  margin-right: 4px;
}
.location-list .location-counts {
  margin: 11px 0;
}
.location-list .list-actions {
  margin-top: 13px;
}
.location .map-tools {
  left: 10px;
  top: 11px;
  height: 48px;
  width: 494px;
}
.location .map-tools button {
  height: 46px;
  flex: 1;
  padding: 8px 18px;
  font-size: 15px;
}
.location .map-tools button:first-child {
  width: 98px;
  flex: none;
}
.location .map-side {
  left: 10px;
  top: 88px;
  width: 50px;
}
.location .map-side button {
  height: 64px;
  width: 48px;
}
.location .map-zoom {
  display: none;
}
.location .person-detail {
  top: 11px !important;
  left: 968px !important;
  width: 311px !important;
  height: 435px !important;
  background: #021c33;
  z-index: 3;
}
.person-detail .panel-body {
  padding: 12px;
}
.person-detail .person-id {
  height: 68px;
  align-items: flex-start;
}
.person-detail .person-id h3 {
  padding-top: 3px;
  font-size: 21px;
}
.person-detail .person-id .chip {
  margin-top: 3px;
  padding: 1px 8px;
}
.person-detail .form-grid {
  font-size: 12px;
  grid-template-columns: 72px 1fr;
  gap: 9px 7px;
  margin-top: -36px;
  padding-left: 83px;
}
.person-detail .form-grid span {
  white-space: nowrap;
  font-size: 12px;
}
.person-detail .form-grid label {
  white-space: nowrap;
}
.person-detail .detail-actions {
  margin: 12px 0;
  gap: 12px;
}
.person-detail .detail-actions button {
  height: 40px;
  font-size: 14px;
}
.person-detail .mini-alarm {
  height: 51px;
  font-size: 12px;
  line-height: 19px;
  padding: 6px;
}
.person-detail .mini-alarm small {
  font-size: 11px;
}
.location [data-table="live"] td {
  height: 25px;
}
.location [data-table="live"] th {
  height: 26px;
}
.location .panel-title .tools select {
  height: 27px;
  padding: 2px 9px;
  min-width: 114px;
  font-size: 13px;
}
.location .panel-title .tools input {
  font-size: 12px;
  width: 220px;
}
.alarms .metric {
  padding: 10px 16px;
  gap: 18px;
}
.alarms .metric .metric-tail {
  right: 17px;
  bottom: 20px;
}
.alarms .metric .value {
  font-size: 44px;
}
.alarms .metric .label {
  margin-bottom: 5px;
}
.alarms [data-table="rank"] td {
  height: 34px;
  font-size: 13px;
}
.alarms [data-table="rank"] th {
  height: 32px;
}
.alarms [data-table="alarms"] th {
  height: 34px;
}
.alarms [data-table="alarms"] td {
  height: 35px;
}
.query-date-range {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1.7;
  min-width: 345px;
  font-size: 14px;
  white-space: nowrap;
}
.date-range-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.date-range-inputs input {
  width: 0;
  min-width: 0;
  flex: 1;
  padding: 0 6px;
}
.alarms .query input {
  font-size: 12px;
}
.alarms .query .buttons button {
  height: 38px;
}
.video-page > .panel:nth-child(2) > .panel-title {
  height: 47px;
}
.video-page > .panel:nth-child(2) > .panel-body {
  height: calc(100% - 47px);
  padding: 8px 6px;
}
.video-wall {
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}
.video-wall .video-tile > img {
  object-fit: fill;
}
.video-page .channel-list {
  margin-top: 9px;
}
.channel-list .channel {
  font-size: 14px;
  gap: 6px;
  height: 43px;
  padding: 5px 8px;
}
.channel .dot {
  margin-right: 1px;
}
.channel small {
  font-size: 12px;
}
.video-page > .panel:first-child .tree-search {
  margin: 2px 0 12px;
  height: 37px;
}
.video-page .tabs.wide button {
  padding: 4px 12px;
}
.video-page > .panel:nth-child(3) > .panel-body {
  padding: 16px 9px 10px;
}
.event-card {
  min-height: 99px;
  height: 99px;
  gap: 10px;
  padding: 9px;
  margin-top: 9px;
}
.event-card .event-content {
  font-size: 13px;
  gap: 5px;
  min-width: 0;
}
.event-card .event-content > div {
  white-space: nowrap;
  font-size: 13px;
}
.event-card .chip {
  font-size: 12px;
  padding: 1px 8px;
}
.event-card .event-content small {
  font-size: 12px;
  white-space: nowrap;
}
.event-card > img {
  width: 104px;
  height: 77px;
}
.event-card button {
  display: none;
}
.video-page > .panel:last-child > .panel-title {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 240px;
  background: none;
  border: 0;
  height: 31px;
}
.video-page > .panel:last-child > .panel-body {
  height: 100%;
  padding: 8px;
}
.video-page > .panel:last-child .metric {
  border-color: #054467;
  height: 100%;
  padding: 9px 15px;
}
.video-page > .panel:last-child .metric:first-child {
  padding-top: 29px;
}
.video-page > .panel:last-child .metric .value {
  font-size: 33px;
}
.video-page > .panel:last-child .metric .progress {
  position: absolute;
  bottom: 12px;
  left: 100px;
  right: 14px;
}
.video-page > .panel:last-child .metric:last-child .progress {
  left: 20px;
}
.video-page > .panel:last-child .metric:last-child {
  padding-bottom: 23px;
}
.video-page .video-top {
  font-size: 12px;
}
.video-page .video-top small {
  font-size: 11px;
}
.people-page .query {
  gap: 8px;
  padding: 8px 11px;
}
.people-page .query label {
  gap: 6px;
  font-size: 12px;
}
.people-page .query .query-title {
  font-size: 16px;
  padding-left: 7px;
}
.people-page .query label input,
.people-page .query label select {
  font-size: 12px;
  height: 31px;
  padding: 5px 9px;
}
.people-page .query label:nth-of-type(1) {
  flex: 1.12;
}
.people-page .query label:nth-of-type(2) {
  flex: 1.06;
}
.people-page .query label:nth-of-type(3) {
  flex: 0.86;
}
.people-page .query label:nth-of-type(4) {
  flex: 1.04;
}
.people-page .query label:nth-of-type(5) {
  flex: 0.87;
}
.people-page .query label:nth-of-type(6) {
  flex: 1.1;
}
.people-page .query label:nth-of-type(7) {
  flex: 0.65;
}
.people-page .query label:nth-of-type(8) {
  flex: 0.94;
}
.people-page .query .buttons button {
  padding: 5px 15px;
  min-width: 80px;
  height: 34px;
}
.people-page .metric {
  padding: 8px 17px;
  gap: 22px;
}
.people-page .metric .value {
  font-size: 39px;
}
.people-page .metric .label {
  font-size: 17px;
}
.people-page .metric > img {
  width: 72px;
  height: 72px;
}
.compact-tree {
  font-size: 13px;
  line-height: 23px;
}
.compact-tree summary {
  padding: 0 5px;
  line-height: 25px;
  height: 25px;
}
.compact-tree .tree-leaf {
  height: 23px;
  line-height: 23px;
  padding: 0 4px;
  margin-left: 21px;
  font-size: 12px;
}
.compact-tree .root-node {
  height: 29px;
}
.compact-tree details details {
  margin-left: 13px;
}
.compact-tree .folder {
  width: 14px;
  height: 11px;
}
.compact-tree .tree-leaf img {
  width: 13px;
  height: 15px;
}
.people-page .section-tabs {
  height: 36px;
  padding: 3px 6px;
}
.people-page .section-tabs .tabs button {
  min-width: 123px;
  height: 30px;
}
.people-page .panel-title .tools button {
  padding: 2px 12px;
  font-size: 12px;
}
.people-page .panel-title .tools select {
  height: 26px;
  padding: 2px 9px;
  font-size: 12px;
}
.people-page .panel-title {
  font-size: 17px;
  letter-spacing: 0.3px;
}
.people-page [data-table="people"] th {
  height: 28px;
}
.people-page [data-table="people"] td {
  height: 24px;
  padding: 0 5px;
  font-size: 12px;
}
.people-page [data-table="people"] td .icon {
  width: 20px;
  height: 20px;
}
.people-page .pagination {
  height: 36px;
}
.people-page .employee-counters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 77px;
}
.people-page .rank-list {
  gap: 4px;
}
.people-page .rank-name {
  font-size: 12px;
}
.vehicles-page .metric {
  padding: 10px 19px;
  gap: 23px;
}
.vehicles-page .metric > img {
  width: 83px;
  height: 83px;
}
.vehicles-page .metric .value {
  font-size: 38px;
}
.vehicles-page .metric .label {
  font-size: 17px;
}
.vehicles-page .metric .trend {
  font-size: 12px;
}
.vehicles-page .query {
  gap: 12px;
}
.vehicles-page .query label {
  font-size: 13px;
  gap: 9px;
}
.vehicles-page .query label:nth-of-type(2) {
  flex: 0.8;
}
.vehicles-page .query label:nth-of-type(5) {
  flex: 0.8;
}
.vehicles-page .query label:nth-of-type(6) {
  flex: 1.7;
}
.vehicles-page .query label:last-of-type input {
  font-size: 10px;
  padding: 5px 9px;
}
.vehicles-page [data-table="vehicles"] td {
  height: 24px;
  padding: 0 6px;
  font-size: 12px;
}
.vehicles-page [data-table="vehicles"] th {
  height: 30px;
}
.vehicles-page [data-table="vehicles"] .link {
  font-size: 12px;
  padding: 0 5px;
}
.vehicle-info {
  font-size: 13px;
  line-height: 28px;
}
.vehicle-preview > img {
  width: 292px;
  flex: none;
}
.vehicle-preview {
  gap: 12px;
}
.vehicle-info dt {
  width: 70px;
}
.vehicle-info dd {
  margin-left: 70px;
  font-size: 13px;
}
.vehicle-info .buttons {
  margin-top: 6px;
}
.vehicle-info .buttons button {
  font-size: 12px;
  padding: 3px 10px;
  height: 32px;
}
.vehicles-page > .vehicle-detail-panel > .panel-body {
  padding: 2px 7px 7px;
}
.fences-page .metric {
  padding: 5px 30px;
  gap: 30px;
}
.fences-page .metric.compact img {
  width: 69px;
  height: 69px;
}
.fences-page .metric .label {
  font-size: 17px;
}
.fences-page .metric .value {
  font-size: 38px;
}
.fences-page .map-side {
  left: 12px;
  top: 71px;
  width: 65px;
}
.fences-page .map-side button {
  height: 65px;
  width: 63px;
}
.fences-page .map-tools {
  left: 12px;
  top: 11px;
  width: 218px;
  height: 34px;
}
.fences-page .map-tools button {
  height: 32px;
  flex: 1;
  padding: 5px 13px;
}
.fences-page .map-legend {
  width: 127px;
  height: 183px;
  right: 13px;
  top: 11px;
  background: #021e36;
}
.fences-page .map-legend div {
  margin-top: 9px;
}
.fences-page .map-zoom {
  right: 18px;
  bottom: 44px;
  gap: 1px;
  background: #03213b;
  height: 115px;
}
.fences-page .map-zoom button {
  height: 38px;
  width: 40px;
}
.fences-page .fence-group {
  height: 48px;
  padding: 9px 11px;
}
.fences-page .fence-group button {
  color: #e4f1ff;
  font-size: 15px;
}
.fences-page .fence-meta {
  font-size: 12px;
  gap: 14px 10px;
  margin: 16px 0 8px;
  padding: 10px 13px;
}
.fences-page .fence-meta > div {
  white-space: nowrap;
}
.fences-page .fence-meta b {
  font-size: 15px;
  margin-top: 3px;
}
.fences-page [data-form="fence"] > .form-grid {
  gap: 9px 8px;
}
.fences-page [data-form="fence"] {
  padding: 4px 3px 0;
}
.fences-page [data-form="fence"] label {
  font-size: 14px;
}
.fences-page [data-form="fence"] input,
.fences-page [data-form="fence"] select {
  height: 32px;
  font-size: 14px;
}
.fences-page [data-form="fence"] input[type="color"] {
  padding: 3px 8px;
}
.fences-page .switch {
  flex: none;
}
.fences-page [data-table="rules"] td {
  height: 28px;
  padding: 0 8px;
}
.fences-page [data-table="rules"] th {
  height: 30px;
}
.fences-page [data-table="rules"] .switch {
  width: 35px;
  height: 18px;
}
.fences-page [data-table="rules"] .switch::after {
  width: 12px;
  height: 12px;
  top: 2px;
}
.fences-page [data-table="rules"] .switch[aria-checked="true"]::after {
  left: 18px;
}
.devices-page .metric {
  padding: 9px 14px;
  gap: 15px;
}
.devices-page .metric.compact .value {
  font-size: 37px;
}
.devices-page .metric.compact > img {
  width: 66px;
  height: 66px;
}
.devices-page .metric.compact .label {
  font-size: 16px;
}
.devices-page .metric .progress {
  position: absolute;
  left: 59%;
  right: 14px;
  bottom: 11px;
  height: 7px;
}
.devices-page .query label {
  font-size: 14px;
}
.devices-page [data-table="devices"] td,
.devices-page [data-table="deviceMessages"] td,
.devices-page [data-table="deviceStatus"] td {
  height: 24px;
  padding: 0 6px;
  font-size: 12px;
}
.devices-page [data-table="devices"] th {
  height: 28px;
}
.devices-page [data-table="devices"] .link {
  font-size: 12px;
}
.devices-page > .panel:last-child > .panel-body {
  padding: 6px 7px;
}
.devices-page .pagination {
  height: 35px;
}
.devices-page .abnormal {
  height: 42px;
  gap: 8px;
}
.devices-page .abnormal img {
  width: 35px;
  height: 35px;
}
.devices-page .abnormal .chip {
  padding: 1px 12px;
  font-size: 12px;
}
.devices-page .abnormal small {
  font-size: 10px;
}
.devices-page .abnormal time {
  font-size: 10px;
  margin-left: 2px;
}
.organization-page > .positioned:first-child .tabs button {
  height: 36px;
  min-width: 127px;
  font-size: 16px;
}
.organization-page .project-photo {
  width: 305px;
  height: 236px;
}
.organization-page > .panel:nth-child(3) > .panel-body {
  padding: 13px 14px;
}
.project-details h2 {
  font-size: 23px;
  line-height: 27px;
  margin-bottom: 8px;
  white-space: nowrap;
}
.project-properties {
  padding: 0 10px;
}
.project-properties .property {
  height: 37px;
  min-height: 0;
  padding: 4px 0;
  gap: 12px;
  font-size: 13px;
  line-height: 1.35;
}
.project-properties .property:first-child {
  height: 43px;
}
.project-properties .property:last-child {
  height: 52px;
  padding-top: 6px;
  line-height: 20px;
}
.project-properties .property > span {
  width: 68px;
}
.project-properties .property:first-child > b {
  line-height: 32px;
}
.companies {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.company {
  padding: 8px;
  font-size: 12px;
  line-height: 17px;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}
.company img {
  width: 51px;
  height: 56px;
}
.company small {
  font-size: 12px;
  line-height: 17px;
}
.organization-page .tree {
  font-size: 15px;
  line-height: 25px;
}
.organization-page .tree summary {
  height: 28px;
  padding: 0 7px;
  line-height: 28px;
}
.organization-page .tree .tree-leaf {
  height: 28px;
  padding: 0 5px;
  line-height: 28px;
}
.organization-page .tree .root-node {
  height: 32px;
}
.organization-page > .panel:nth-child(2) > .panel-body {
  padding: 10px 13px;
}
.organization-page .completion {
  padding: 0 7px;
}
.organization-page .completion > div {
  margin-bottom: 3px;
  height: 17px;
  font-size: 12px;
}
.organization-page [data-table="positions"] td {
  height: 21px;
  padding: 0 10px;
  font-size: 12px;
}
.organization-page [data-table="positions"] th {
  height: 21px;
  font-size: 12px;
}
.organization-page > .panel:last-child > .panel-body {
  padding: 4px 9px;
}
.organization-page [data-table="positions"] td:first-child {
  text-align: left;
  padding-left: 17px;
}
.organization-page .org-stat-grid .metric {
  padding: 8px 11px;
}
.organization-page .org-stat-grid .metric .value {
  font-size: 33px;
}
.organization-page .org-stat-grid .metric .label {
  font-size: 13px;
}
.organization-page .org-stat-grid .metric img {
  width: 59px;
  height: 59px;
}
.component-data {
  grid-column: span 2;
}
.component-page .panel-body {
  overflow: auto;
}
.table-wrap {
  max-height: 100%;
}
.overview .map-legend {
  background: #031f37;
}
.overview .map-tools {
  width: 223px;
  height: 33px;
  top: 9px;
  left: 11px;
}
.overview .map-tools button {
  height: 31px;
  flex: 1;
  padding: 4px 13px;
}
.overview .map-side {
  top: 65px;
  left: 11px;
  width: 49px;
}
.overview .map-side button {
  height: 57px;
}
.video-wall:fullscreen {
  background: #001326;
  padding: 15px;
}
.video-wall:fullscreen .video-tile {
  height: 100%;
}
/* 保持每页 10 条数据，密集表格区域独立滚动，分页常驻。 */
.people-page > .panel:last-child .table-wrap {
  height: 222px;
  max-height: 222px;
}
.vehicles-page > .panel:last-child .table-wrap {
  height: 224px;
  max-height: 224px;
}
.devices-page > .panel:last-child .table-wrap {
  height: 219px;
  max-height: 219px;
}
.table-wrap thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0b3358;
  /* 遮住缩放后顶边的亚像素间隙，表头整层保持不透明。 */
  box-shadow: 0 -1px 0 #0b3358, 0 1px 0 #0b3358;
}
.data-table .icon.small {
  mix-blend-mode: normal !important;
}
.people-page [data-table="people"] .icon.small {
  border-radius: 50%;
}
.location > .panel:last-child > .panel-body {
  padding: 6px 8px;
}
.location [data-table="live"] td {
  height: 24px;
  padding: 0 7px;
}
.location [data-table="live"] .icon.small {
  width: 18px;
  height: 18px;
}
.location-tabs button {
  height: 42px;
}
.location .location-counts button {
  height: 38px;
}
.video-wall:not(.nine) {
  grid-template-rows: 305px minmax(0, 1fr);
}
.video-tile .video-top {
  background: #06243f;
}
.video-page > .panel:last-child .metric:first-child .fill {
  transform: translateY(-5px);
}
.video-page .video-top > span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.overview-videos .video-bottom {
  background: #041d32;
}
.tree .folder {
  background: transparent url("assets/icons/folder.svg") center/contain no-repeat !important;
  border-radius: 0;
}
.organization-page .company img {
  border-radius: 0;
}
.alarms [data-table="rank"] td {
  height: 33px;
}
.alarms [data-table="alarms"] td {
  height: 34px;
}
.alarms > .panel:last-child > .panel-body {
  padding-top: 5px;
}
.components-mode #header {
  height: 82px;
}
.components-mode #navigation {
  display: none;
}
.components-mode #main {
  inset: 94px 16px 9px;
}
.components-mode .page {
  width: 1640px;
  height: 838px;
}
.components-grid {
  display: block;
}
.components-grid > .panel {
  position: absolute;
}
.components-grid > .panel:nth-child(1) {
  left: 0;
  top: 0;
  width: 476px;
  height: 320px;
}
.components-grid > .panel:nth-child(2) {
  left: 486px;
  top: 0;
  width: 451px;
  height: 320px;
}
.components-grid > .panel:nth-child(3) {
  left: 947px;
  top: 0;
  width: 693px;
  height: 320px;
}
.components-grid > .panel:nth-child(4) {
  left: 0;
  top: 331px;
  width: 495px;
  height: 183px;
}
.components-grid > .panel:nth-child(5) {
  left: 504px;
  top: 331px;
  width: 431px;
  height: 183px;
}
.components-grid > .panel:nth-child(6) {
  left: 945px;
  top: 331px;
  width: 695px;
  height: 183px;
}
.components-grid > .panel:nth-child(7) {
  left: 0;
  top: 525px;
  width: 935px;
  height: 313px;
}
.components-grid > .panel:nth-child(8) {
  left: 945px;
  top: 525px;
  width: 695px;
  height: 313px;
}
[hidden] {
  display: none !important;
}
.panel {
  background: linear-gradient(110deg, #001b37, #00203f);
}
.metric {
  background: #002548;
}
.metric .label {
  font-weight: 400;
}
.video-page .video-top {
  height: 34px;
  background: #042640;
}
.video-page .video-top > span {
  white-space: nowrap;
}
.location [data-table="live"] .icon.small {
  mix-blend-mode: lighten !important;
}
.location-list .data-table .icon.small {
  mix-blend-mode: lighten !important;
}
/* 组件规范页：与第 10 张图对应的组件排列。 */
.component-page .panel-body {
  padding: 10px 15px;
  overflow: hidden;
}
.type-spec {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 7px 13px;
  align-items: start;
  padding-top: 3px;
  font-size: 15px;
  line-height: 1.55;
}
.type-spec > label {
  padding-top: 6px;
  color: #aecde6;
}
.type-spec h1 {
  font-size: 26px;
  line-height: 1.3;
  white-space: nowrap;
}
.type-spec h2 {
  font-size: 21px;
  line-height: 1.3;
}
.type-spec small {
  font-size: 12px;
}
.nav-spec {
  display: grid;
  grid-template-columns: 1fr 114px;
  gap: 22px;
  font-size: 14px;
}
.spec-topnav {
  display: flex;
  height: 53px;
  border: 1px solid #005989;
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}
.spec-topnav a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: white;
  padding: 4px 7px;
  font-size: 12px;
  white-space: nowrap;
}
.spec-topnav img {
  width: 27px;
  height: 29px;
}
.spec-topnav .active {
  background: #004784;
}
.spec-nav-states {
  display: flex;
  justify-content: space-between;
  margin-top: 27px;
}
.spec-nav-states p {
  font-size: 13px;
  margin-bottom: 9px;
}
.spec-nav-states button {
  width: 145px;
  height: 58px;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
}
.spec-nav-states img {
  width: 34px;
  height: 34px;
}
.spec-sidenav {
  border-left: 1px solid #0b4c75;
  padding-left: 15px;
}
.spec-sidenav p {
  font-size: 12px;
  white-space: nowrap;
}
.spec-sidenav > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
  border: 1px solid #095782;
  border-radius: 5px;
  height: 218px;
}
.spec-sidenav button {
  padding: 4px;
  border: 0;
}
.spec-sidenav img {
  width: 25px;
  height: 25px;
}
.spec-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 12px 0;
}
.spec-buttons p {
  margin-bottom: 15px;
  text-align: center;
  white-space: nowrap;
  font-size: 14px;
}
.spec-buttons button {
  width: 100%;
  height: 46px;
  padding: 5px 8px;
  font-size: 15px;
}
.spec-buttons img {
  width: 29px;
  height: 29px;
}
.spec-tags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 10px;
  padding: 7px 0;
}
.spec-tags .chip {
  height: 38px;
  padding: 3px 8px;
  border-radius: 16px;
  font-size: 13px;
  gap: 3px;
}
.spec-tags .dot {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  flex: none;
}
.spec-form-top {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1.22fr;
  gap: 15px;
  font-size: 13px;
}
.spec-form-top input,
.spec-form-top select {
  display: block;
  width: 100%;
  height: 35px;
  margin-top: 4px;
}
.spec-form-bottom {
  display: grid;
  grid-template-columns: 225px 72px 142px 1fr;
  gap: 12px;
  margin-top: 9px;
  font-size: 12px;
}
.spec-form-bottom > label > input {
  width: 100%;
  height: 35px;
  margin-top: 6px;
  font-size: 12px;
}
.spec-form-bottom > div > .flex {
  margin-top: 7px;
  height: 28px;
}
.spec-form-bottom button:not(.switch) {
  height: 27px;
  min-height: 27px;
  min-width: 23px;
  padding: 1px 4px;
  font-size: 12px;
}
.spec-data-top {
  display: grid;
  grid-template-columns: 206px 306px 1fr;
  gap: 10px;
  height: 111px;
}
.spec-tile {
  border: 1px solid #085a85;
  border-radius: 5px;
  overflow: hidden;
  min-width: 0;
}
.spec-tile > p {
  height: 24px;
  background: #052947;
  padding: 2px 10px;
  font-size: 13px;
}
.spec-data-top .spec-tile .icon {
  width: 61px;
  height: 61px;
  border-radius: 50%;
}
.spec-data-top .data-table {
  font-size: 12px;
}
.spec-data-top .data-table th {
  height: 29px;
  font-size: 12px;
}
.spec-data-top .data-table td {
  height: 25px;
  font-size: 12px;
}
.spec-data-bottom {
  display: grid;
  grid-template-columns: 350px 258px 1fr;
  gap: 10px;
  height: 134px;
  margin-top: 9px;
}
.spec-data-bottom .spec-tile > p {
  height: 22px;
}
.spec-data-bottom .rank {
  font-size: 12px;
  gap: 7px;
  min-height: 15px;
}
.spec-data-bottom .rank-name {
  width: 64px;
}
.spec-data-bottom .rank-number {
  width: 20px;
}
.spec-data-bottom .rank .number {
  width: 15px;
  line-height: 15px;
}
.spec-icons {
  display: grid;
  grid-template-columns: 355px 1fr;
  gap: 19px;
  height: 181px;
}
.spec-icons > div + div {
  border-left: 1px solid #0b5079;
  padding-left: 14px;
}
.spec-icons p {
  font-size: 13px;
  margin-bottom: 5px;
}
.spec-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px 10px;
}
.spec-icon-grid button {
  height: 54px;
  width: 60px;
  padding: 6px;
}
.spec-icon-grid button .icon {
  width: 36px;
  height: 36px;
}
.spec-icon-grid small {
  display: block;
  font-size: 12px;
  text-align: center;
  margin-top: 2px;
}
.spec-marker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px 8px;
}
.spec-marker-grid > div {
  border: 1px solid #0c4b74;
  border-radius: 5px;
  height: 73px;
  text-align: center;
  padding-top: 3px;
}
.spec-marker-grid img {
  height: 43px;
  width: 60px;
}
.spec-marker-grid small {
  font-size: 11px;
  display: block;
}
.spec-player {
  border: 1px solid #075b89;
  border-radius: 5px;
  margin-top: 7px;
  height: 66px;
}
.spec-player > p {
  font-size: 13px;
  padding: 2px 10px;
  height: 22px;
  background: #052947;
}
.spec-player .flex {
  padding: 3px 8px;
  height: 40px;
}
.spec-player button {
  font-size: 19px;
  padding: 0 4px;
  min-width: 25px;
}
.spec-player small {
  font-size: 12px;
  white-space: nowrap;
}
.component-page .swatches {
  row-gap: 18px;
}
.component-page .swatches span {
  font-size: 15px;
  line-height: 22px;
}
.type-spec {
  grid-template-rows: 58px 49px 49px 51px 52px;
  gap: 0 13px;
  line-height: 1.4;
}
.type-spec .flex span {
  line-height: 1.05;
}
.type-spec .flex b {
  line-height: 1;
}
.type-spec .flex small {
  font-size: 11px;
  line-height: 17px;
}
.spec-data-top b {
  line-height: 1 !important;
}
.spec-data-top .spec-tile .flex + small {
  line-height: 15px;
}
.spec-buttons .danger {
  background: #fb3b54;
  color: white;
  border-color: #ff6577;
}
.spec-player input[type="range"] {
  accent-color: #129cff;
  background: #123f63;
}
.spec-data-top .spec-tile > div {
  font-size: 13px;
  line-height: 1.3;
}
.type-spec {
  grid-template-rows: 55px 49px 49px 48px 55px;
}
