/* ==========================================================================
   龙盛安 · 应急物资管理系统  v2
   设计语言：科技感 / 扁平化 / 毛玻璃 / 应急黄红元素
   ========================================================================== */

:root {
  /* 品牌色：应急黄橙为主，红色为警戒，深空蓝为科技底色 */
  --brand-yellow: #FFB020;
  --brand-yellow-soft: #FFD166;
  --brand-yellow-deep: #F59300;
  --brand-red: #E23D28;
  --brand-red-soft: #FF5A3C;
  --brand-cyan: #00D4C7;
  --brand-blue: #1E6BFF;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --font: "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", Consolas, "Courier New", monospace;

  --taskbar-h: 52px;
  --titlebar-h: 36px;
  --blur: 18px;
}

/* ========== 深色主题（默认 · 科技感主色） ========== */
html[data-theme="dark"] {
  --bg-base: #070B14;
  --bg-deep: #050810;
  --bg-panel: rgba(18, 25, 40, .72);
  --bg-panel-solid: #121928;
  --bg-elev: rgba(26, 35, 54, .85);
  --bg-glass: rgba(20, 28, 45, .62);
  --bg-hover: rgba(255, 176, 32, .09);
  --bg-active: rgba(255, 176, 32, .16);
  --bg-input: rgba(8, 13, 24, .78);

  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --line-glow: rgba(255, 176, 32, .38);

  --tx: #EAF0FA;
  --tx-2: #A3B0C8;
  --tx-3: #6B7A94;

  --glow-yellow: 0 0 0 1px rgba(255, 176, 32, .3), 0 0 22px -6px rgba(255, 176, 32, .55);
  --glow-cyan: 0 0 0 1px rgba(0, 212, 199, .3), 0 0 22px -6px rgba(0, 212, 199, .5);

  --ok: #2FD37A;
  --ok-bg: rgba(47, 211, 122, .13);
  --warn: #FFB020;
  --warn-bg: rgba(255, 176, 32, .13);
  --bad: #FF5A3C;
  --bad-bg: rgba(255, 90, 60, .13);
  --info: #00D4C7;
  --info-bg: rgba(0, 212, 199, .12);

  --map-good: #2FD37A;
  --map-warn: #FFB020;
  --map-bad: #FF5A3C;

  --scrim: rgba(3, 6, 14, .72);
}

/* ========== 浅色主题 ========== */
html[data-theme="light"] {
  --bg-base: #EEF1F6;
  --bg-deep: #E4E8EF;
  --bg-panel: rgba(255, 255, 255, .78);
  --bg-panel-solid: #FFFFFF;
  --bg-elev: rgba(255, 255, 255, .9);
  --bg-glass: rgba(255, 255, 255, .68);
  --bg-hover: rgba(255, 176, 32, .1);
  --bg-active: rgba(255, 176, 32, .18);
  --bg-input: #FFFFFF;

  --line: rgba(15, 25, 45, .09);
  --line-strong: rgba(15, 25, 45, .17);
  --line-glow: rgba(245, 147, 0, .35);

  --tx: #0E1626;
  --tx-2: #4A5567;
  --tx-3: #8892A4;

  --glow-yellow: 0 0 0 1px rgba(245, 147, 0, .25), 0 4px 16px -6px rgba(245, 147, 0, .4);
  --glow-cyan: 0 0 0 1px rgba(0, 150, 140, .25), 0 4px 16px -6px rgba(0, 150, 140, .35);

  --ok: #10893E;
  --ok-bg: rgba(16, 137, 62, .1);
  --warn: #B87400;
  --warn-bg: rgba(184, 116, 0, .11);
  --bad: #D63018;
  --bad-bg: rgba(214, 48, 24, .1);
  --info: #0A8C82;
  --info-bg: rgba(0, 140, 130, .1);

  --map-good: #10893E;
  --map-warn: #D08A00;
  --map-bad: #D63018;

  --scrim: rgba(238, 241, 246, .78);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: var(--font);
  font-size: 13px;
  background: var(--bg-base);
  color: var(--tx);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 科技感背景网格 */
html[data-theme="dark"] body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(255, 176, 32, .1), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, rgba(0, 212, 199, .07), transparent 60%),
    radial-gradient(680px 520px at 50% 108%, rgba(30, 107, 255, .07), transparent 64%);
  pointer-events: none;
  z-index: 0;
}
html[data-theme="dark"] body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
  z-index: 0;
}
html[data-theme="light"] body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(880px 500px at 10% -10%, rgba(255, 176, 32, .14), transparent 62%),
    radial-gradient(760px 460px at 94% 2%, rgba(0, 180, 170, .09), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--brand-yellow); text-decoration: none; }
html[data-theme="light"] a { color: var(--brand-yellow-deep); }
a:hover { text-decoration: none; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--tx-3); background-clip: padding-box; }

/* ==========================================================================
   桌面容器
   ========================================================================== */
.desktop {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-bottom: var(--taskbar-h);
}

/* ---------- 标题栏 ---------- */
.titlebar {
  height: var(--titlebar-h);
  flex: 0 0 var(--titlebar-h);
  display: flex;
  align-items: center;
  padding: 0 0 0 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  border-bottom: 1px solid var(--line);
  user-select: none;
  z-index: 100;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  margin-right: 16px;
}
.logo-mark {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  color: #10151F;
  background: linear-gradient(135deg, var(--brand-yellow-soft), var(--brand-yellow-deep));
  box-shadow: 0 3px 12px -3px rgba(255, 176, 32, .6);
}
.logo-txt { font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.logo-sub {
  font-size: 10.5px; color: var(--tx-3);
  padding-left: 9px; margin-left: 2px;
  border-left: 1px solid var(--line-strong);
}
.titlebar-text {
  flex: 1;
  font-size: 12.5px;
  color: var(--tx-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.titlebar-text b { color: var(--tx); font-weight: 500; }
.titlebar-controls { display: flex; height: 100%; }
.tb-btn {
  width: 46px; height: 100%;
  border: none; background: transparent;
  color: var(--tx-2);
  cursor: pointer; font-size: 13px;
  display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.tb-btn:hover { background: var(--bg-hover); color: var(--tx); }
.tb-btn.close:hover { background: var(--brand-red); color: #fff; }

/* ---------- 菜单栏 ---------- */
.menubar {
  flex: 0 0 32px; height: 32px;
  display: flex; align-items: center;
  padding: 0 8px; gap: 3px;
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--line);
  z-index: 90;
}
.menu-item {
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--tx-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.menu-item:hover { background: var(--bg-hover); color: var(--tx); }
.menu-item.active {
  background: var(--bg-active);
  color: var(--brand-yellow);
  font-weight: 500;
}
html[data-theme="light"] .menu-item.active { color: var(--brand-yellow-deep); }

/* ---------- 工作区 ---------- */
.workspace { flex: 1; display: flex; min-height: 0; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 208px; flex: 0 0 208px;
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 12px 10px 24px;
}
.side-group { margin-bottom: 6px; }
.side-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  font-size: 11px; font-weight: 600;
  color: var(--tx-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  cursor: pointer; user-select: none;
}
.side-head:hover { background: var(--bg-hover); }
.side-arrow {
  width: 8px; font-size: 8px;
  color: var(--tx-3);
  transition: transform .18s;
}
.side-group.open .side-arrow { transform: rotate(90deg); }
.side-list {
  display: none;
  padding: 3px 0 5px;
}
.side-group.open .side-list { display: block; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  margin-bottom: 2px;
  font-size: 12.5px;
  color: var(--tx-2);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all .15s;
}
.side-link:hover { background: var(--bg-hover); color: var(--tx); }
.side-link.active {
  background: var(--bg-active);
  border-color: var(--line-glow);
  color: var(--tx);
  font-weight: 500;
}
.side-ico {
  width: 22px; height: 22px; flex: 0 0 22px;
  display: grid; place-items: center;
  font-size: 11px;
  border-radius: 5px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--tx-2);
}
.side-link.active .side-ico {
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep));
  color: #10151F; border-color: transparent;
}

/* ---------- 内容区 ---------- */
.content {
  flex: 1;
  overflow: auto;
  padding: 18px 20px 30px;
  min-width: 0;
}
.content-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px; gap: 16px; flex-wrap: wrap;
}
.content-title {
  font-size: 18px; font-weight: 600; letter-spacing: .2px;
  display: flex; align-items: center; gap: 10px;
}
.content-title::before {
  content: '';
  width: 3px; height: 17px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-yellow), var(--brand-yellow-deep));
}
.content-sub {
  font-size: 12px; color: var(--tx-2);
  margin-top: 5px; line-height: 1.75;
}

/* ==========================================================================
   卡片 · 毛玻璃
   ========================================================================== */
.card {
  background: var(--bg-panel);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-strong); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
  gap: 12px;
}
.card-head::before {
  content: '';
  width: 2px; height: 13px; border-radius: 1px;
  background: var(--brand-yellow);
  margin-right: -4px;
}
.card-head > span:first-child { display: flex; align-items: center; gap: 8px; }
.card-body { padding: 15px; }
.card-body.tight { padding: 0; }

/* ==========================================================================
   统计卡
   ========================================================================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  position: relative;
  background: var(--bg-panel);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 15px 17px;
  overflow: hidden;
  transition: all .2s;
}
.stat::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--line-strong);
}
.stat:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.stat-label { font-size: 11.5px; color: var(--tx-3); margin-bottom: 8px; }
.stat-value {
  font-size: 27px; font-weight: 700; line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}
.stat-unit { font-size: 12px; color: var(--tx-3); margin-left: 3px; font-weight: 400; }
.stat-foot { font-size: 11px; color: var(--tx-3); margin-top: 6px; }

.stat.good::after { background: var(--ok); }
.stat.good .stat-value { color: var(--ok); }
.stat.warn::after { background: var(--warn); }
.stat.warn .stat-value { color: var(--warn); }
.stat.bad::after  { background: var(--bad); }
.stat.bad .stat-value { color: var(--bad); }
.stat.brand::after { background: var(--brand-yellow); }
.stat.brand .stat-value { color: var(--brand-yellow); }
html[data-theme="light"] .stat.brand .stat-value { color: var(--brand-yellow-deep); }

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 16px;
  font-family: var(--font); font-size: 12.5px; font-weight: 500;
  color: var(--tx);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all .16s;
}
.btn:hover {
  background: var(--bg-hover);
  border-color: var(--line-glow);
  color: var(--brand-yellow);
  transform: translateY(-1px);
}
html[data-theme="light"] .btn:hover { color: var(--brand-yellow-deep); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn.primary {
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep));
  border-color: transparent;
  color: #10151F;
  font-weight: 600;
}
.btn.primary:hover {
  filter: brightness(1.08);
  color: #10151F;
  box-shadow: 0 6px 20px -6px rgba(255, 176, 32, .65);
}
.btn.danger {
  background: var(--bad-bg);
  border-color: var(--bad);
  color: var(--bad);
}
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: var(--line-strong); }
.btn.sm { padding: 5px 11px; font-size: 11.5px; border-radius: 5px; }
.btn.lg { padding: 12px 30px; font-size: 14px; border-radius: var(--radius); }
.btn-group { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

/* ==========================================================================
   表格
   ========================================================================== */
.table-wrap { overflow: auto; }
table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
table.grid th {
  background: var(--bg-elev);
  color: var(--tx-2);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
table.grid td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.grid tbody tr { transition: background .13s; }
table.grid tbody tr:hover td { background: var(--bg-hover); }
table.grid td.num, table.grid th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
table.grid td.act { white-space: nowrap; }
table.grid tfoot td {
  background: var(--bg-elev);
  font-weight: 700;
  border-top: 1px solid var(--line-strong);
  position: sticky; bottom: 0;
}

/* ==========================================================================
   徽章
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2.5px 9px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.plain::before { display: none; }
.badge.good { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.badge.bad  { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); border-color: var(--info); }
.badge.gray { background: var(--bg-elev); color: var(--tx-3); border-color: var(--line-strong); }

/* ==========================================================================
   表单
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--tx-2); }
.field label .req { color: var(--bad); margin-left: 2px; }
.field input, .field select, .field textarea {
  padding: 8px 11px;
  font-family: var(--font); font-size: 12.5px;
  background: var(--bg-input);
  color: var(--tx);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  width: 100%;
  transition: all .16s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-yellow);
  box-shadow: var(--glow-yellow);
}
.field textarea { resize: vertical; min-height: 66px; }
.field .hint { font-size: 11px; color: var(--tx-3); }
.field input[readonly] {
  background: var(--bg-elev);
  color: var(--tx-3);
  cursor: default;
}
.field input[type=file] { padding: 7px 9px; }

/* ==========================================================================
   提示条
   ========================================================================== */
.alert {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 15px;
  margin-bottom: 14px;
  font-size: 12.5px;
  line-height: 1.75;
  border-radius: var(--radius);
  border: 1px solid;
  background: var(--bg-panel);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
.alert::before { font-size: 14px; line-height: 1.4; }
.alert.ok   { border-color: var(--ok);   background: var(--ok-bg);   color: var(--ok); }
.alert.warn { border-color: var(--warn); background: var(--warn-bg); color: var(--warn); }
.alert.bad  { border-color: var(--bad);  background: var(--bad-bg);  color: var(--bad); }
.alert.info { border-color: var(--info); background: var(--info-bg); color: var(--info); }
.alert.ok::before { content: '✓'; }
.alert.warn::before { content: '!'; }
.alert.bad::before { content: '✕'; }
.alert.info::before { content: 'i'; }

/* ==========================================================================
   任务栏
   ========================================================================== */
.taskbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--taskbar-h);
  display: flex; align-items: center;
  padding: 0 10px; gap: 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid var(--line);
  z-index: 200;
}
.tb-start {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--tx);
  cursor: pointer;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: all .16s;
}
.tb-start:hover { border-color: var(--line-glow); background: var(--bg-hover); }
.tb-logo {
  width: 20px; height: 20px;
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #10151F;
  background: linear-gradient(135deg, var(--brand-yellow-soft), var(--brand-yellow-deep));
}
.tb-tasks { flex: 1; display: flex; gap: 7px; overflow: hidden; }
.tb-task {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-size: 12px; color: var(--tx-2);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  max-width: 210px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all .16s;
}
.tb-task:hover { border-color: var(--line-glow); color: var(--tx); }
.tb-task.active {
  background: var(--bg-active);
  border-color: var(--line-glow);
  color: var(--tx);
}
.tb-task.active .tb-ico { color: var(--brand-yellow); }
html[data-theme="light"] .tb-task.active .tb-ico { color: var(--brand-yellow-deep); }
.tb-ico { font-size: 12px; color: var(--tx-3); }
.tb-tray {
  display: flex; align-items: center; gap: 13px;
  padding: 7px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--tx-2); font-size: 12px;
  cursor: pointer;
  transition: all .16s;
}
.tb-tray:hover { border-color: var(--line-glow); }
.tb-clock {
  text-align: right; line-height: 1.35;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.tb-clock small { font-size: 10px; color: var(--tx-3); }

/* ==========================================================================
   大屏三栏
   ========================================================================== */
.screen {
  display: grid;
  grid-template-columns: 322px 1fr 348px;
  gap: 13px;
  height: 100%;
  min-height: 0;
}
.screen-col {
  display: flex; flex-direction: column; gap: 13px;
  min-height: 0; overflow-y: auto;
  padding-right: 3px;
}
.spanel {
  background: var(--bg-panel);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 0 0 auto;
}
.spanel.grow {
  flex: 1; min-height: 360px;
  display: flex; flex-direction: column;
}
.spanel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600;
}
.spanel-head > span:first-child {
  display: flex; align-items: center; gap: 8px;
}
.spanel-head > span:first-child::before {
  content: '';
  width: 2px; height: 12px; border-radius: 1px;
  background: var(--brand-yellow);
}
.spanel-body { padding: 12px 14px; }
.spanel.grow .spanel-body {
  flex: 1; padding: 9px; overflow: hidden;
  display: flex; flex-direction: column;
}

/* ==========================================================================
   地图
   ========================================================================== */
#mapBox { width: 100%; height: 100%; min-height: 300px; display: flex; }
.map-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--tx-2);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-swatch {
  width: 12px; height: 12px; border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .18);
}
.legend-good { background: var(--map-good); }
.legend-warn { background: var(--map-warn); }
.legend-bad  { background: var(--map-bad); }

/* ==========================================================================
   图表条
   ========================================================================== */
.bar-row { margin-bottom: 11px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-top {
  display: flex; justify-content: space-between;
  font-size: 11.5px; margin-bottom: 4px;
}
.bar-track {
  height: 7px;
  background: var(--bg-elev);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bar-fill { height: 100%; border-radius: 3px; transition: width .5s ease; }
.bar-fill.good { background: var(--ok); }
.bar-fill.warn { background: var(--warn); }
.bar-fill.bad  { background: var(--bad); }

/* ==========================================================================
   空状态
   ========================================================================== */
.empty { text-align: center; padding: 42px 20px; color: var(--tx-3); }
.empty-ico { font-size: 32px; opacity: .3; margin-bottom: 12px; }

/* ==========================================================================
   工具类
   ========================================================================== */
.muted { color: var(--tx-3); }
.secondary { color: var(--tx-2); }
.small { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mb8 { margin-bottom: 8px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap8 { gap: 8px; }
.wrap { flex-wrap: wrap; }
.sep { height: 1px; background: var(--line); margin: 14px 0; }
.tag {
  display: inline-block; padding: 2px 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px; color: var(--tx-2);
}
.filter-bar {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 13px 15px;
  background: var(--bg-panel);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.filter-bar .field { min-width: 132px; }
.pager {
  display: flex; gap: 8px; align-items: center; justify-content: flex-end;
  padding: 12px 15px; font-size: 12px;
  border-top: 1px solid var(--line);
}
.dl-box {
  padding: 13px 16px;
  margin-bottom: 14px;
  font-size: 12.5px; line-height: 1.8;
  border-radius: var(--radius);
  border: 1px solid var(--line-glow);
  background: var(--bg-panel);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

/* ==========================================================================
   登录页
   ========================================================================== */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 20px;
  overflow: auto;
  background: var(--bg-base);
  position: relative;
}
.login-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
}
.login-brand {
  text-align: center;
  margin-bottom: 26px;
}
.login-logo {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 17px;
  display: grid; place-items: center;
  font-size: 26px; font-weight: 800; color: #10151F;
  background: linear-gradient(135deg, var(--brand-yellow-soft), var(--brand-yellow-deep));
  box-shadow: 0 12px 40px -8px rgba(255, 176, 32, .6);
}
.login-brand h1 {
  font-size: 27px; font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.login-brand p {
  font-size: 13px; color: var(--tx-2);
  letter-spacing: 4px;
}
.login-card {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  background: var(--bg-panel);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .5);
}
.login-form-side { padding: 36px 38px; }
.login-title-txt {
  font-size: 19px; font-weight: 600;
  margin-bottom: 6px;
}
.login-scope {
  font-size: 12px; color: var(--tx-2);
  margin-bottom: 22px; line-height: 1.85;
  padding: 11px 13px;
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--brand-yellow);
}
.lfield { margin-bottom: 15px; }
.lfield label {
  display: block; font-size: 11.5px; color: var(--tx-2);
  margin-bottom: 6px;
}
.lfield input {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font); font-size: 13.5px;
  background: var(--bg-input);
  color: var(--tx);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all .18s;
}
.lfield input:focus {
  border-color: var(--brand-yellow);
  box-shadow: var(--glow-yellow);
}
.lfield input.code-input {
  font-family: var(--mono);
  font-size: 21px; font-weight: 700;
  letter-spacing: 5px; text-align: center;
  padding: 13px 14px;
}
.login-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep));
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px; font-weight: 700;
  color: #10151F;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all .18s;
}
.login-submit:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 28px -8px rgba(255, 176, 32, .7);
  transform: translateY(-1px);
}
.login-demo-side {
  padding: 30px 28px;
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
}
.login-demo-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600;
  margin-bottom: 14px;
}
.demo-list { display: flex; flex-direction: column; gap: 9px; }
.demo-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .18s;
}
.demo-card:hover {
  border-color: var(--line-glow);
  background: var(--bg-hover);
  transform: translateX(3px);
}
.demo-ico {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 15px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
}
.demo-card[data-lv="1"] .demo-ico { background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep)); color: #10151F; border-color: transparent; }
.demo-card[data-lv="2"] .demo-ico { background: linear-gradient(135deg, var(--brand-cyan), #00A99E); color: #04201F; border-color: transparent; }
.demo-card[data-lv="3"] .demo-ico { background: linear-gradient(135deg, var(--brand-red-soft), var(--brand-red)); color: #fff; border-color: transparent; }
.demo-info { flex: 1; min-width: 0; }
.demo-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.demo-meta { font-size: 11px; color: var(--tx-3); }
.demo-cred {
  font-family: var(--mono); font-size: 11px;
  color: var(--tx-2); text-align: right;
  line-height: 1.6;
  flex: 0 0 auto;
}
.demo-cred b { color: var(--brand-yellow); font-weight: 600; }
html[data-theme="light"] .demo-cred b { color: var(--brand-yellow-deep); }
.demo-go {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  font-size: 12px; color: var(--tx-3);
  transition: all .18s;
}
.demo-card:hover .demo-go {
  background: var(--brand-yellow); color: #10151F; border-color: transparent;
}

/* ---------- 登录页装饰 ---------- */
.deco {
  position: fixed;
  pointer-events: none;
  z-index: 1;
}
.deco-ring {
  border: 1px solid var(--line-glow);
  border-radius: 50%;
  opacity: .5;
}
.deco-tag {
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 11px;
  background: var(--bg-panel);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--line-strong);
  color: var(--tx-2);
  white-space: nowrap;
}
.deco-tag b { color: var(--brand-yellow); }
html[data-theme="light"] .deco-tag b { color: var(--brand-yellow-deep); }

/* 登录页统计条 */
.login-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 22px;
}
.login-stat {
  background: var(--bg-panel);
  padding: 13px 9px;
  text-align: center;
}
.login-stat b {
  display: block;
  font-size: 21px; font-weight: 700;
  color: var(--brand-yellow);
  font-variant-numeric: tabular-nums;
}
html[data-theme="light"] .login-stat b { color: var(--brand-yellow-deep); }
.login-stat span { font-size: 11px; color: var(--tx-3); }

/* ==========================================================================
   首页 · 区域码输入
   ========================================================================== */
.code-card {
  text-align: center;
  padding: 30px 24px;
}
.code-card h2 { font-size: 18px; font-weight: 600; margin-bottom: 7px; }
.code-card > p { font-size: 12.5px; color: var(--tx-2); margin-bottom: 20px; }
.code-input-wrap { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.code-input-wrap input {
  width: 215px;
  padding: 13px 16px;
  font-family: var(--mono);
  font-size: 23px; font-weight: 700;
  letter-spacing: 6px; text-align: center;
  background: var(--bg-input);
  color: var(--tx);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  outline: none;
  transition: all .18s;
}
.code-input-wrap input:focus {
  border-color: var(--brand-yellow);
  box-shadow: var(--glow-yellow);
}
.region-picker { margin-top: 14px; text-align: left; }
.region-picker summary {
  cursor: pointer; text-align: center;
  font-size: 12px; color: var(--tx-2);
  padding: 9px; border-radius: var(--radius-sm);
  list-style: none;
}
.region-picker summary::-webkit-details-marker { display: none; }
.region-picker summary:hover { background: var(--bg-hover); }
.region-tree {
  max-height: 320px; overflow: auto;
  margin-top: 9px; padding: 9px;
  background: var(--bg-elev);
  border-radius: var(--radius);
}
.region-node {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px; cursor: pointer;
}
.region-node:hover { background: var(--bg-hover); }
.region-child { padding-left: 22px; }

/* ==========================================================================
   动效
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.card, .stat { animation: fadeUp .32s ease both; }
.stat:nth-child(2) { animation-delay: .04s; }
.stat:nth-child(3) { animation-delay: .08s; }
.stat:nth-child(4) { animation-delay: .12s; }
.stat:nth-child(5) { animation-delay: .16s; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1400px) {
  .screen { grid-template-columns: 290px 1fr 310px; }
}
@media (max-width: 1180px) {
  .screen { grid-template-columns: 1fr; height: auto; }
  .screen-col { overflow: visible; }
  .spanel.grow { min-height: 420px; }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .content { padding: 14px; }
  .login-card { grid-template-columns: 1fr; }
  .login-demo-side { border-left: none; border-top: 1px solid var(--line); }
  .login-stats { grid-template-columns: repeat(2, 1fr); }
  .login-brand h1 { font-size: 21px; letter-spacing: 1px; }
}
/* ==========================================================================
   指挥中心大屏
   ========================================================================== */

/* ---------- 桌面图标栏 ---------- */
.deskbar {
  width: 104px;
  flex: 0 0 104px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 12px 8px 14px;
  overflow-y: auto;
}
.deskbar-unit {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0 0 13px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.unit-code {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep));
  color: #10151F;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
}
.unit-name { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.unit-role { font-size: 10.5px; color: var(--tx-3); line-height: 1.5; }

.deskbar-apps {
  display: flex; flex-direction: column; gap: 5px;
  flex: 1;
}
.desk-icon {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 9px 4px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all .17s;
}
.desk-icon:hover {
  background: var(--bg-hover);
  border-color: var(--line-glow);
  transform: translateY(-2px);
}
.desk-icon.on {
  background: var(--bg-active);
  border-color: var(--line-glow);
}
.di-ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 700;
  color: #10151F;
  background: linear-gradient(135deg, var(--brand-yellow-soft), var(--brand-yellow-deep));
  box-shadow: 0 5px 15px -5px rgba(255, 176, 32, .55);
  transition: transform .17s;
}
.desk-icon:hover .di-ico { transform: scale(1.07); }
.desk-icon.cyan .di-ico {
  background: linear-gradient(135deg, var(--brand-cyan), #00A99E);
  color: #04201F;
  box-shadow: 0 5px 15px -5px rgba(0, 212, 199, .5);
}
.desk-icon.gray .di-ico {
  background: linear-gradient(135deg, #9AA6BC, #6B7A94);
  color: #0E1626;
  box-shadow: none;
}
.di-name { font-size: 10.5px; color: var(--tx-2); text-align: center; line-height: 1.3; }
.desk-icon.on .di-name { color: var(--tx); font-weight: 500; }
.deskbar-foot {
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ---------- 大屏容器 ---------- */
.content-dash {
  padding: 14px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* ---------- 顶部标题（居中大字） ---------- */
.dash-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 4px 0 2px;
}
.dash-head-side {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
}
.dash-head-side.right { justify-content: flex-end; }
.dash-title { text-align: center; }
.dash-title h1 {
  font-size: clamp(21px, 2.5vw, 33px);
  font-weight: 800;
  letter-spacing: 5px;
  line-height: 1.25;
  background: linear-gradient(180deg, var(--tx) 40%, var(--brand-yellow) 190%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .dash-title h1 {
  background: linear-gradient(180deg, var(--tx) 45%, var(--brand-yellow-deep) 195%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dash-title p {
  font-size: 11.5px;
  color: var(--tx-3);
  letter-spacing: 3px;
  margin-top: 5px;
}

/* ---------- KPI 指标条 ---------- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.kpi-item {
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 11px 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.kpi-item::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--line-strong);
}
.kpi-num {
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}
.kpi-num small { font-size: 12px; font-weight: 500; margin-left: 1px; }
.kpi-num.good { color: var(--ok); }
.kpi-num.warn { color: var(--warn); }
.kpi-num.bad { color: var(--bad); }
.kpi-lab { font-size: 11px; color: var(--tx-3); margin-top: 5px; }
.kpi-item:nth-child(1)::after { background: var(--brand-yellow); }
.kpi-item:nth-child(4)::after { background: var(--bad); }
.kpi-item:nth-child(3)::after { background: var(--warn); }
.kpi-item:nth-child(2)::after { background: var(--ok); }

/* ---------- 三屏栅格 ---------- */
.dash-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 330px 1fr 350px;
  gap: 13px;
  min-height: 0;
}
.dash-col {
  display: flex; flex-direction: column; gap: 12px;
  min-height: 0; overflow-y: auto;
  padding-right: 3px;
}

/* ---------- 面板 ---------- */
.dpanel {
  background: var(--bg-panel);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex: 0 0 auto;
}
.dpanel.grow {
  flex: 1; min-height: 400px;
  display: flex; flex-direction: column;
}
.dpanel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600;
  gap: 10px;
}
.dpanel-hd > span:first-child {
  display: flex; align-items: center; gap: 8px;
}
.dpanel-hd > span:first-child::before {
  content: '';
  width: 2px; height: 12px; border-radius: 1px;
  background: var(--brand-yellow);
}
.dpanel-bd { padding: 12px 14px; }
.dpanel.grow .dpanel-bd { flex: 1; padding: 9px; overflow: hidden; }
.dpanel-bd.map-bd {
  display: flex;
  padding: 8px;
}

/* ---------- 排行榜 ---------- */
.rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  animation: slideIn .5s ease both;
  animation-delay: var(--d, 0s);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}
.rank-no {
  width: 20px; height: 20px; flex: 0 0 20px;
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--tx-3);
  font-variant-numeric: tabular-nums;
}
.rank-no.t {
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep));
  color: #10151F; border-color: transparent;
}
.rank-main { flex: 1; min-width: 0; }
.rank-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11.5px; margin-bottom: 4px; gap: 8px;
}
.rank-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-rate { font-weight: 700; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.rank-rate.good { color: var(--ok); }
.rank-rate.warn { color: var(--warn); }
.rank-rate.bad { color: var(--bad); }
.rank-track {
  height: 6px;
  background: var(--bg-elev);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.rank-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  animation: growW .9s cubic-bezier(.4,0,.2,1) both;
  animation-delay: var(--d, 0s);
}
.rank-fill.good { background: var(--ok); }
.rank-fill.warn { background: var(--warn); }
.rank-fill.bad { background: var(--bad); }
@keyframes growW { from { width: 0 !important; } }

/* ---------- 条形图 ---------- */
.hbar-row {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 0;
  animation: slideIn .5s ease both;
  animation-delay: var(--d, 0s);
}
.hbar-lab {
  width: 68px; flex: 0 0 68px;
  font-size: 11.5px; color: var(--tx-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hbar-main { flex: 1; min-width: 0; }
.hbar-track {
  position: relative;
  height: 13px;
  background: var(--bg-elev);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hbar-target {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--line-strong);
  opacity: .5;
  border-radius: 3px 0 0 3px;
  animation: growW .9s cubic-bezier(.4,0,.2,1) both;
  animation-delay: var(--d, 0s);
}
.hbar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 3px 0 0 3px;
  animation: growW 1s cubic-bezier(.4,0,.2,1) both;
  animation-delay: calc(var(--d, 0s) + .1s);
}
.hbar-fill.good { background: var(--ok); }
.hbar-fill.warn { background: var(--warn); }
.hbar-fill.bad { background: var(--bad); }
.hbar-val {
  width: 42px; flex: 0 0 42px;
  text-align: right;
  font-size: 11.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hbar-val.good { color: var(--ok); }
.hbar-val.warn { color: var(--warn); }
.hbar-val.bad { color: var(--bad); }

/* ---------- 环形图 ---------- */
.donut-wrap, .pie-wrap {
  width: 104px; height: 104px; flex: 0 0 104px;
}
.donut, .pie { width: 100%; height: 100%; }
.donut-num { font-size: 19px; font-weight: 800; fill: var(--tx); }
.donut-lab { font-size: 9px; fill: var(--tx-3); }
.pie-num { font-size: 19px; font-weight: 800; fill: var(--tx); }
.pie-lab { font-size: 9px; fill: var(--tx-3); }
.donut-legend, .pie-legend { flex: 1; min-width: 0; }
.dl-row, .pl-row {
  display: flex; align-items: center; gap: 7px;
  padding: 3.5px 0;
  font-size: 11.5px;
}
.dl-dot, .pl-dot {
  width: 9px; height: 9px; flex: 0 0 9px;
  border-radius: 2px;
}
.dl-dot.good { background: var(--ok); }
.dl-dot.warn { background: var(--warn); }
.dl-dot.bad { background: var(--bad); }
.dl-lab, .pl-lab {
  flex: 1; color: var(--tx-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dl-row b, .pl-row b {
  font-variant-numeric: tabular-nums; font-weight: 700;
}
.dl-row b.good { color: var(--ok); }
.dl-row b.warn { color: var(--warn); }
.dl-row b.bad { color: var(--bad); }
.dl-row.total {
  border-top: 1px solid var(--line);
  margin-top: 4px; padding-top: 6px;
}

/* ---------- 柱形图 ---------- */
.col-chart {
  display: flex; align-items: flex-end; gap: 8px;
  height: 138px;
  padding-top: 16px;
}
.col-item {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 4px;
}
.col-val {
  font-size: 10.5px; font-weight: 700;
  color: var(--tx-2);
  font-variant-numeric: tabular-nums;
}
.col-bar {
  width: 100%;
  max-width: 34px;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  animation: growH .95s cubic-bezier(.34,1.3,.64,1) both;
  animation-delay: var(--d, 0s);
  position: relative;
}
.col-bar::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .35);
}
.col-bar.good { background: linear-gradient(180deg, var(--ok), rgba(47, 211, 122, .35)); }
.col-bar.warn { background: linear-gradient(180deg, var(--warn), rgba(255, 176, 32, .35)); }
.col-bar.bad  { background: linear-gradient(180deg, var(--bad), rgba(255, 90, 60, .35)); }
@keyframes growH {
  from { height: 0 !important; opacity: 0; }
}
.col-name {
  font-size: 10.5px; color: var(--tx-3);
  text-align: center; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}

/* ---------- 折线图 ---------- */
.line-chart { position: relative; }
.line-svg {
  width: 100%; height: 92px;
  background: linear-gradient(180deg, transparent, var(--bg-alt));
  border-radius: 6px;
}
@keyframes lnIn { to { stroke-dashoffset: 0; } }
.line-axis {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--tx-3);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.line-key {
  display: flex; gap: 14px; justify-content: center;
  font-size: 11px; color: var(--tx-2);
  margin-top: 6px;
}
.line-key span { display: flex; align-items: center; gap: 5px; }
.line-key i { width: 11px; height: 2.5px; border-radius: 2px; display: inline-block; }

/* ---------- 待补充清单 ---------- */
.need-list { max-height: 260px; overflow-y: auto; }
.need-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  animation: slideIn .45s ease both;
  animation-delay: var(--d, 0s);
}
.need-row:hover { background: var(--bg-hover); }
.need-name {
  color: var(--tx);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.need-reg { color: var(--tx-3); font-size: 10.5px; white-space: nowrap; }
.need-rate {
  font-weight: 700; font-variant-numeric: tabular-nums;
  min-width: 38px; text-align: right;
}
.need-rate.good { color: var(--ok); }
.need-rate.warn { color: var(--warn); }
.need-rate.bad { color: var(--bad); }
.need-gap {
  color: var(--bad); font-weight: 600;
  min-width: 62px; text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- 地图 ---------- */
#mapBox { width: 100%; height: 100%; min-height: 320px; display: flex; }
@keyframes mapIn { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.geo-p:hover { fill-opacity: .85 !important; }
.fb-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 11px;
  align-content: center;
}
.fb-cell {
  border-radius: 11px;
  padding: 15px 11px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  animation: popIn .55s cubic-bezier(.34,1.4,.64,1) both;
  animation-delay: var(--d, 0s);
  transition: transform .18s;
}
.fb-cell:hover { transform: scale(1.04); }
@keyframes popIn {
  from { opacity: 0; transform: scale(.82); }
}
.fb-name { font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.fb-rate { font-size: 25px; font-weight: 800; line-height: 1; }
.fb-rate small { font-size: 12px; font-weight: 500; }
.fb-bar {
  height: 4px; background: rgba(255, 255, 255, .3);
  border-radius: 3px; margin-top: 9px; overflow: hidden;
}
.fb-bar i { display: block; height: 100%; background: #fff; border-radius: 3px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1500px) {
  .dash-grid { grid-template-columns: 300px 1fr 320px; }
  .kpi-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1180px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-col { overflow: visible; }
  .dpanel.grow { min-height: 440px; }
  .deskbar { width: 84px; flex: 0 0 84px; }
  .di-ico { width: 38px; height: 38px; font-size: 15px; }
}
@media (max-width: 820px) {
  .deskbar { display: none; }
  .dash-head { grid-template-columns: 1fr; text-align: center; }
  .dash-head-side { display: none; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 图表补充：首帧防闪 ---------- */
.dseg.good, .pseg { stroke: var(--brand-yellow); }
.dseg.warn { stroke: var(--warn); }
.dseg.bad  { stroke: var(--bad); }
.dseg, .pseg { transition: stroke-dasharray 1s cubic-bezier(.4,0,.2,1); }
.dpanel .dpanel-hd + .dpanel-bd { min-height: 0; }
.col-bar, .hbar-fill, .rank-fill { will-change: width, height; }
.geo-p { will-change: stroke-dashoffset; }

/* ==========================================================================
   全屏指挥大屏（一张图管理模式）
   ========================================================================== */
body.fs-body { overflow: hidden; padding: 0; }

.fs-wrap {
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
}

/* ---------- 顶栏 ---------- */
.fs-bar {
  flex: 0 0 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: var(--bg-panel);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.fs-bar::before {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-yellow), var(--brand-cyan), transparent);
}
.fs-bar-l { display: flex; align-items: center; gap: 9px; }
.fs-tag {
  padding: 2px 9px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep));
  color: #10151F;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
}
.fs-unit { font-size: 13.5px; font-weight: 600; }
.fs-lv { font-size: 11px; color: var(--tx-3); }

.fs-title { text-align: center; }
.fs-title h1 {
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 800;
  letter-spacing: 7px;
  line-height: 1.2;
  background: linear-gradient(180deg, var(--tx) 42%, var(--brand-yellow) 195%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .fs-title h1 {
  background: linear-gradient(180deg, var(--tx) 48%, var(--brand-yellow-deep) 200%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.fs-bar-r { display: flex; align-items: center; gap: 11px; justify-content: flex-end; }
.fs-clock {
  font-family: var(--mono);
  font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--tx-2);
}
.fs-btn {
  width: 27px; height: 27px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--tx-2);
  font-size: 13px;
  cursor: pointer;
  transition: all .16s;
}
.fs-btn:hover {
  background: var(--brand-yellow); color: #10151F; border-color: transparent;
}

/* ---------- KPI 条 ---------- */
.fs-kpi {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fs-k {
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 9px 6px;
  text-align: center;
}
.fs-k b {
  display: block;
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}
.fs-k b i { font-size: 12px; font-style: normal; font-weight: 500; }
.fs-k b.good { color: var(--ok); }
.fs-k b.warn { color: var(--warn); }
.fs-k b.bad { color: var(--bad); }
.fs-k span { font-size: 10.5px; color: var(--tx-3); }

/* ---------- 三屏栅格 ---------- */
.fs-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 328px 1fr 346px;
  gap: 10px;
  min-height: 0;
}
.fs-col {
  display: flex; flex-direction: column; gap: 10px;
  min-height: 0;
}

/* ---------- 面板 ---------- */
.fp {
  background: var(--bg-panel);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  flex: 0 0 auto;
}
.fp.grow { flex: 1; min-height: 0; }
.fp-h {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 600;
}
.fp-h::before {
  content: '';
  width: 2px; height: 11px; border-radius: 1px;
  background: var(--brand-yellow);
  margin-right: -4px;
}
.fp-h { padding-left: 12px; }
.fp-h span { font-size: 10.5px; color: var(--tx-3); font-weight: 400; }
.fp-b {
  flex: 1;
  padding: 9px 11px;
  min-height: 0;
  overflow: hidden;
}
.fp-b.row { display: flex; align-items: center; gap: 13px; }
.fp-b.map { padding: 6px; display: flex; }
.fp-b.nopad { padding: 0; }

/* ---------- 排行 ---------- */
.fk { display: flex; align-items: center; gap: 8px; padding: 4px 0;
      animation: slideIn .5s ease both; animation-delay: var(--d, 0s); }
.fk-n {
  width: 18px; height: 18px; flex: 0 0 18px;
  border-radius: 4px;
  display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--tx-3);
}
.fk-n.t { background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-deep));
          color: #10151F; border-color: transparent; }
.fk-m { flex: 1; min-width: 0; }
.fk-t { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 3px; gap: 7px; }
.fk-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fk-t b { font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.fk-t b.good { color: var(--ok); } .fk-t b.warn { color: var(--warn); } .fk-t b.bad { color: var(--bad); }
.fk-track { height: 5px; background: var(--bg-elev); border-radius: 3px; overflow: hidden;
            border: 1px solid var(--line); }
.fk-track i { display: block; height: 100%; border-radius: 3px; width: 0;
              animation: growW .9s cubic-bezier(.4,0,.2,1) both; animation-delay: var(--d, 0s); }
.fk-track i.good { background: var(--ok); }
.fk-track i.warn { background: var(--warn); }
.fk-track i.bad  { background: var(--bad); }

/* ---------- 条形 ---------- */
.fh { display: flex; align-items: center; gap: 8px; padding: 4px 0;
      animation: slideIn .5s ease both; animation-delay: var(--d, 0s); }
.fh-l { width: 62px; flex: 0 0 62px; font-size: 11px; color: var(--tx-2);
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-m { flex: 1; min-width: 0; }
.fh-t { position: relative; height: 12px; background: var(--bg-elev); border-radius: 3px;
        overflow: hidden; border: 1px solid var(--line); }
.fh-g { position: absolute; left: 0; top: 0; bottom: 0; background: var(--line-strong);
        opacity: .5; border-radius: 3px 0 0 3px; animation: growW .9s cubic-bezier(.4,0,.2,1) both;
        animation-delay: var(--d, 0s); }
.fh-f { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px 0 0 3px;
        animation: growW 1s cubic-bezier(.4,0,.2,1) both;
        animation-delay: calc(var(--d, 0s) + .1s); }
.fh-f.good { background: var(--ok); }
.fh-f.warn { background: var(--warn); }
.fh-f.bad  { background: var(--bad); }
.fh-v { width: 38px; flex: 0 0 38px; text-align: right; font-size: 11px; font-weight: 700;
        font-variant-numeric: tabular-nums; }
.fh-v.good { color: var(--ok); } .fh-v.warn { color: var(--warn); } .fh-v.bad { color: var(--bad); }

/* ---------- 环形/饼图 ---------- */
.fs-wrap .donut, .fs-wrap .pie { width: 104px; height: 104px; flex: 0 0 104px; }
.d-num { font-size: 19px; font-weight: 800; fill: var(--tx); }
.d-lab { font-size: 9px; fill: var(--tx-3); }
.f-lg { flex: 1; min-width: 0; }
.fl { display: flex; align-items: center; gap: 7px; padding: 2.5px 0; font-size: 11px; }
.fl i { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 2px; }
.fl i.good { background: var(--ok); } .fl i.warn { background: var(--warn); }
.fl i.bad { background: var(--bad); }
.fl span { flex: 1; color: var(--tx-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl b { font-variant-numeric: tabular-nums; font-weight: 700; }
.fl b.good { color: var(--ok); } .fl b.warn { color: var(--warn); } .fl b.bad { color: var(--bad); }

/* ---------- 柱形 ---------- */
.colc { display: flex; align-items: flex-end; gap: 7px; height: 116px; padding-top: 14px; }
.ci { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center;
      height: 100%; justify-content: flex-end; gap: 3px; }
.ci-v { font-size: 10px; font-weight: 700; color: var(--tx-2); font-variant-numeric: tabular-nums; }
.ci-b { width: 100%; max-width: 30px; border-radius: 3px 3px 0 0; min-height: 4px;
        animation: growH .9s cubic-bezier(.34,1.3,.64,1) both; animation-delay: var(--d, 0s); }
.ci-b.good { background: linear-gradient(180deg, var(--ok), rgba(47,211,122,.35)); }
.ci-b.warn { background: linear-gradient(180deg, var(--warn), rgba(255,176,32,.35)); }
.ci-b.bad  { background: linear-gradient(180deg, var(--bad), rgba(255,90,60,.35)); }
.ci-n { font-size: 10px; color: var(--tx-3); text-align: center; line-height: 1.15;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ---------- 折线 ---------- */
.fs-wrap .line-svg { width: 100%; height: 78px;
  background: linear-gradient(180deg, transparent, var(--bg-alt)); border-radius: 5px; }
.fs-linekey { display: flex; gap: 12px; align-items: center; font-size: 10.5px;
              color: var(--tx-2); margin-top: 5px; }
.fs-linekey span { display: flex; align-items: center; gap: 4px; }
.fs-linekey i { width: 10px; height: 2.5px; border-radius: 2px; display: inline-block; }

/* ---------- 待补充 ---------- */
.needl { max-height: 100%; overflow-y: auto; }
.nd { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 7px;
      padding: 5px 11px; border-bottom: 1px solid var(--line); font-size: 11px;
      animation: slideIn .45s ease both; animation-delay: var(--d, 0s); }
.nd:hover { background: var(--bg-hover); }
.nd-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-g { color: var(--bad); font-weight: 600; font-variant-numeric: tabular-nums; }
.nd-r { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.nd-r.good { color: var(--ok); } .nd-r.warn { color: var(--warn); } .nd-r.bad { color: var(--bad); }

/* ---------- 地图 ---------- */
.fs-mapkey {
  flex: 0 0 auto;
  display: flex; gap: 16px; justify-content: center;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--tx-2);
}
.fs-mapkey span { display: flex; align-items: center; gap: 5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1440px) {
  .fs-grid { grid-template-columns: 292px 1fr 306px; }
  .fs-kpi { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1080px) {
  .fs-grid { grid-template-columns: 1fr 1fr; }
  .fs-grid > .fs-col:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .fs-wrap { height: auto; min-height: 100vh; }
  body.fs-body { overflow: auto; }
}

/* ---------- 全屏遮罩（引导进入浏览器全屏） ---------- */
.fs-mask {
  position: fixed; inset: 0; z-index: 9000;
  display: grid; place-items: center;
  background: var(--scrim);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  animation: fadeIn .3s ease;
}
.fs-mask-box {
  text-align: center;
  padding: 34px 44px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 70px -20px rgba(0,0,0,.6);
  max-width: 420px;
}
.fs-mask-ico {
  width: 54px; height: 54px; margin: 0 auto 15px;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 25px; color: #10151F;
  background: linear-gradient(135deg, var(--brand-yellow-soft), var(--brand-yellow-deep));
  box-shadow: 0 10px 30px -8px rgba(255,176,32,.6);
}
.fs-mask-t { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.fs-mask-s { font-size: 12px; color: var(--tx-2); line-height: 1.8; margin-bottom: 19px; }
.fs-mask-btns { display: flex; gap: 10px; justify-content: center; }
.fs-exit { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.fs-exit:hover { background: var(--bad); color: #fff; }

/* ---------- 全屏补充组件 ---------- */
.fp.grow2 { flex: 1 1 auto; min-height: 130px; }

/* 达标结构堆叠条 */
.uc { display: flex; align-items: center; gap: 8px; padding: 3.5px 0;
      animation: slideIn .5s ease both; animation-delay: var(--d, 0s); }
.uc-n { width: 62px; flex: 0 0 62px; font-size: 11px; color: var(--tx-2);
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-bar { flex: 1; min-width: 0; height: 11px; border-radius: 3px; overflow: hidden;
          display: flex; border: 1px solid var(--line); background: var(--bg-elev); }
.uc-bar i { display: block; height: 100%; width: 0;
            animation: growW .9s cubic-bezier(.4,0,.2,1) both; animation-delay: var(--d, 0s); }
.uc-bar i.ok { background: var(--ok); }
.uc-bar i.warn { background: var(--warn); }
.uc-bar i.bad { background: var(--bad); }
.uc-v { width: 40px; flex: 0 0 40px; text-align: right; font-size: 11px; font-weight: 700;
        font-variant-numeric: tabular-nums; }
.uc-v.good { color: var(--ok); } .uc-v.warn { color: var(--warn); } .uc-v.bad { color: var(--bad); }
.fs-uckey { display: flex; gap: 12px; justify-content: center; font-size: 10px;
            color: var(--tx-3); margin-top: 6px; }
.fs-uckey span { display: flex; align-items: center; gap: 4px; }
.fs-uckey i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.fs-uckey i.ok { background: var(--ok); } .fs-uckey i.warn { background: var(--warn); }
.fs-uckey i.bad { background: var(--bad); }

/* 缺口汇总 */
.fs-gaplist {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
}
.fs-gapt { color: var(--tx-3); }
.fs-gapc { padding: 2px 8px; border-radius: 4px; background: var(--bg-elev);
           border: 1px solid var(--line); color: var(--tx-2); }
.fs-gapc b { color: var(--bad); font-weight: 700; font-variant-numeric: tabular-nums; }

/* 近7天柱形 */
.weekc { display: flex; align-items: flex-end; gap: 6px; height: 100px; }
.wk { flex: 1; min-width: 0; display: flex; flex-direction: column;
      align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.wk-bars { display: flex; gap: 2px; align-items: flex-end; }
.wk-bars i {
  display: block; width: 12px; border-radius: 2px 2px 0 0; min-height: 3px;
  animation: growH2 .85s cubic-bezier(.34,1.3,.64,1) both; animation-delay: var(--d, 0s);
}
.wk-bars i.in { background: linear-gradient(180deg, var(--ok), rgba(47,211,122,.4)); }
.wk-bars i.out { background: linear-gradient(180deg, var(--bad), rgba(255,90,60,.4)); }
.wk-d { font-size: 10px; color: var(--tx-3); }
@keyframes growH2 { from { height: 0 !important; } }

/* 物资TOP */
.mt { display: flex; align-items: center; gap: 7px; padding: 2.5px 0;
      animation: slideIn .45s ease both; animation-delay: var(--d, 0s); }
.mt-n { width: 74px; flex: 0 0 74px; font-size: 10.5px; color: var(--tx-2);
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-bar { flex: 1; min-width: 0; height: 9px; background: var(--bg-elev);
          border-radius: 3px; overflow: hidden; border: 1px solid var(--line); }
.mt-bar i { display: block; height: 100%; border-radius: 3px; width: 0;
            animation: growW .8s cubic-bezier(.4,0,.2,1) both; animation-delay: var(--d, 0s); }
.mt-bar i.good { background: var(--ok); }
.mt-bar i.warn { background: var(--warn); }
.mt-bar i.bad { background: var(--bad); }
.mt-v { width: 56px; flex: 0 0 56px; text-align: right; font-size: 10.5px;
        color: var(--tx-2); font-variant-numeric: tabular-nums; }

/* 缺口清单加单位列 */
.nd { grid-template-columns: 1fr auto auto auto; }
.nd-reg { font-size: 10px; color: var(--tx-3); white-space: nowrap; }
.fl.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 5px; }
.fp-h span.warn { color: var(--warn); }

/* ---------- 演示站标识 ---------- */
.demo-flag {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 12px; padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  color: var(--brand-yellow);
  background: rgba(255, 176, 32, .12);
  border: 1px solid rgba(255, 176, 32, .38);
  cursor: help;
}
.demo-flag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-yellow);
}
html[data-theme="light"] .demo-flag { color: var(--brand-yellow-deep); background: rgba(245,147,0,.1); border-color: rgba(245,147,0,.35); }
html[data-theme="light"] .demo-flag::before { background: var(--brand-yellow-deep); }
