/* ==========================================================================
   湘电智汇 Pro v3 — 商用级开放电力市场终端设计系统
   单行顶栏对齐 · 全站统一图表图例字体 · 金融终端级层次与 390px 零溢出适配
   ========================================================================== */

:root {
  --bg-page: #f3f6fb;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-hover: #f1f5f9;
  --bg-active: #eaf1ff;

  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-strong: #cbd5e1;

  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --chart-ink: #0f172a;

  --primary: #1d4ed8;
  --primary-bright: #2563eb;
  --primary-soft: rgba(29, 78, 216, 0.08);
  --cyan: #0891b2;
  --green: #059669;
  --green-soft: #ecfdf5;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --purple: #7c3aed;
  --purple-soft: #f5f3ff;

  --map-water: #edf3fa;
  --map-land: #f8fafc;

  --sidebar-w: 246px;
  --header-h: 60px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.025);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 24px 56px rgba(15, 23, 42, 0.24);

  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

body.theme-dark {
  --bg-page: #080d19;
  --bg-card: #0f172a;
  --bg-subtle: #141f35;
  --bg-hover: #1e293b;
  --bg-active: #1e3a5f;

  --border: #1e293b;
  --border-subtle: #182338;
  --border-strong: #334155;

  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --chart-ink: #f8fafc;

  --primary: #3b82f6;
  --primary-bright: #60a5fa;
  --primary-soft: rgba(59, 130, 246, 0.16);
  --green: #34d399;
  --green-soft: rgba(16, 185, 129, 0.15);
  --red: #f87171;
  --red-soft: rgba(239, 68, 68, 0.15);
  --amber-soft: rgba(245, 158, 11, 0.15);
  --purple-soft: rgba(139, 92, 246, 0.16);

  --map-water: #0b1222;
  --map-land: #1e293b;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.38), 0 6px 16px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.58);
  --shadow-modal: 0 28px 64px rgba(0, 0, 0, 0.80);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select {
  font-family: var(--font-sans);
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.tabular { font-variant-numeric: tabular-nums; }

/* ---------------- 左侧专业商用导航栏 ---------------- */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: transform 0.22s ease;
}

/* 与右侧 .topbar 像素级等高（60px）且底边框拉通对齐 */
.brand-header {
  height: var(--header-h);
  padding: 0 16px 0 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.12));
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.24;
  min-width: 0;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.brand-subtitle {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.province-switcher-wrap {
  margin: 12px 12px 6px;
  padding: 10px 11px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.prov-label-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 1px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.status-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  flex-shrink: 0;
}

.prov-select {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.prov-select:hover, .prov-select:focus { border-color: var(--primary); }

.sidebar-nav {
  flex: 1;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-group-title {
  padding: 12px 10px 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.nav-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 10px 4px;
}

.nav-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  text-align: left;
  transition: all 0.14s ease;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 12px;
}
.sidebar-auth-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: 500;
  color: var(--text-sub);
}
.sidebar-auth-user strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-admin-link {
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.sidebar-admin-link:hover {
  background: var(--primary);
  color: #ffffff;
}
.sidebar-logout-btn {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.sidebar-logout-btn:hover {
  background: var(--bg-hover);
  color: var(--red);
}

.jump-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.14s ease;
}
.jump-box:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}
.jump-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  white-space: nowrap;
  transition: all 0.14s ease;
}
.btn-ghost-sm:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

/* ---------------- 右侧主区域 & 极简商用单行顶栏 ---------------- */
.main-area {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  width: calc(100% - var(--sidebar-w));
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body.theme-dark .topbar {
  background: rgba(15, 23, 42, 0.93);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.mobile-menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.heading-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.page-heading {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heading-sep {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.page-subheading {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* 顶栏唯一全局日历选择器 */
.global-date-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 0 5px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease;
}
.global-date-ctrl:hover { border-color: var(--primary); }

.global-date-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  transition: background 0.14s ease;
}
.global-date-btn:hover,
.global-date-btn.cal-open {
  background: var(--bg-hover);
}

.date-ctrl-icon {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
}
.date-ctrl-icon svg { width: 14px; height: 14px; }

.date-caret {
  font-size: 10px;
  color: var(--text-faint);
  margin-left: 1px;
}

.date-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  white-space: nowrap;
  transition: all 0.14s ease;
}
.date-trigger-btn:hover,
.date-trigger-btn.cal-open {
  border-color: var(--primary);
  background: var(--bg-card);
}
.date-trigger-ico {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}
.date-trigger-ico svg { width: 13px; height: 13px; }

.fc-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  transition: background 0.12s ease;
}
.fc-picker-btn:hover,
.fc-picker-btn.cal-open {
  background: rgba(15, 23, 42, 0.06);
}

/* ---------------- 商用弹出式月历控件 ---------------- */
.cal-popover {
  position: fixed;
  z-index: 180;
  width: 286px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  display: none;
  user-select: none;
}
.cal-popover.open { display: block; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-ym-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.cal-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}
.cal-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-card);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day {
  position: relative;
  height: 34px;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  transition: all 0.12s ease;
}
.cal-day:not(.outside):not(.disabled):hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.cal-day.outside {
  color: var(--text-faint);
  opacity: 0.35;
  font-weight: 400;
  pointer-events: none;
}
.cal-day.disabled {
  color: var(--text-faint);
  opacity: 0.40;
  font-weight: 400;
  cursor: not-allowed;
}
.cal-day.selected {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.30);
}
.cal-popover.theme-fc .cal-day.selected {
  background: #ea580c !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.30);
}
.cal-day.selected .cal-dot {
  background: #ffffff !important;
}

.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-top: 2px;
  display: inline-block;
}
.cal-dot.is-hist { background: #2563eb; }
.cal-dot.is-fc { background: #ea580c; }

.cal-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cal-foot-legend {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--text-muted);
}
.cal-foot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cal-foot-legend .cal-dot { margin-top: 0; width: 5px; height: 5px; }

.cal-foot-acts {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-quick-btn {
  padding: 2.5px 7px;
  border-radius: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}
.cal-quick-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.mini-step {
  width: 22px;
  height: 24px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.12s ease;
}
.mini-step:hover { background: var(--bg-hover); color: var(--text-main); }

.topbar-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 2px;
}

.live-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.30);
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.live-pill-btn:hover { border-color: rgba(16, 185, 129, 0.55); }
.live-pill-btn.paused {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-muted);
}
.live-pill-btn.paused .status-dot-live {
  background: var(--text-faint);
  box-shadow: none;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text-main); border-color: var(--border-strong); }

.btn-primary-sm {
  height: 34px;
  padding: 0 13px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.24);
  transition: filter 0.15s ease, transform 0.12s ease;
}
.btn-primary-sm:hover { filter: brightness(1.07); }

.btn-outline-sm {
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.14s ease;
}
.btn-outline-sm:hover { background: var(--bg-hover); color: var(--text-main); border-color: var(--primary); }

/* ---------------- 图表卡片内联“预测日”独立切换器 ---------------- */
.fc-inline-picker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 7px 0 8px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 12px;
  transition: all 0.14s ease;
}
.fc-inline-picker:hover { border-color: var(--border-strong); }
.fc-inline-picker.is-split {
  background: var(--amber-soft);
  border-color: rgba(234, 88, 12, 0.42);
}

.fc-picker-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.fc-inline-picker.is-split .fc-picker-tag {
  color: #ea580c;
  font-weight: 600;
}

.fc-picker-select {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  cursor: pointer;
  padding: 0 2px;
}

.fc-reset-btn {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid rgba(234, 88, 12, 0.32);
  color: #ea580c;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.fc-reset-btn:hover { background: #ea580c; color: #ffffff; }

/* ---------------- 主内容画布与商用卡片 ---------------- */
.content-canvas {
  padding: 18px 22px 44px;
  max-width: 1660px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loading-state {
  padding: 64px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 15px 17px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0.85;
}
.kpi-card.accent-blue::before { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.kpi-card.accent-cyan::before { background: linear-gradient(90deg, #0891b2, #06b6d4); }
.kpi-card.accent-emerald::before { background: linear-gradient(90deg, #059669, #10b981); }
.kpi-card.accent-amber::before { background: linear-gradient(90deg, #d97706, #f59e0b); }

.kpi-card.is-clickable { cursor: pointer; }
.kpi-card.is-clickable:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.kpi-tag.good { background: var(--green-soft); color: var(--green); }
.kpi-tag.warn { background: var(--amber-soft); color: var(--amber); }
.kpi-tag.info { background: var(--primary-soft); color: var(--primary); }
.kpi-tag.purple { background: var(--purple-soft); color: var(--purple); }
.kpi-tag.danger { background: var(--red-soft); color: var(--red); }

.kpi-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.kpi-num {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}

.kpi-unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.kpi-stat-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.kpi-link-hint {
  font-weight: 600;
  color: var(--primary);
}

.kpi-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.grid-hero {
  display: grid;
  grid-template-columns: minmax(400px, 42%) 1fr;
  gap: 16px;
  align-items: stretch;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.card-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  min-width: 0;
}

.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.card-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.card-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card-body {
  padding: 12px 18px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ghost-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.14s ease;
}
.ghost-icon-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border);
  color: var(--text-main);
}

/* ---------------- 自适应筛选栏 & 分段控件 ---------------- */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.seg-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
  flex-wrap: wrap;
  max-width: 100%;
}

.seg-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.14s ease;
}
.seg-btn:hover { color: var(--text-main); }
.seg-btn.active {
  background: var(--bg-card);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.seg-btn:disabled { opacity: 0.40; cursor: not-allowed; }

.qpill {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.qpill:hover { border-color: var(--primary); color: var(--primary); }
.qpill.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* 筛选器芯片与图表图例保持同款字体、字号、字重与色标语言 */
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-sub);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.14s ease;
}
.source-chip:hover { border-color: var(--border-strong); color: var(--text-main); }
.source-chip.on {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.08);
}
.source-chip .chip-meta {
  font-size: 11px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-hover);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.select-sm, .input-sm {
  height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  outline: none;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.select-sm:focus, .input-sm:focus,
.select-sm:hover, .input-sm:hover {
  border-color: var(--primary);
  background: var(--bg-card);
}

.info-banner {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary-soft);
  border: 1px solid rgba(29, 78, 216, 0.18);
  color: var(--text-sub);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.weather-source-bar {
  padding-top: 9px;
  border-top: 1px dashed var(--border-subtle);
}

.weather-status-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chart-stat-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------- 100% 统一的图表、坐标轴与图例排版系统 ---------------- */
.chart-box {
  position: relative;
  width: 100%;
  user-select: none;
}

.chart-empty {
  padding: 44px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 12.5px;
}

.chart-svg {
  width: 100%;
  display: block;
  overflow: visible;
}

/* 强制所有 SVG 内部刻度与单位文字继承全局无衬线字体与等宽数字 */
.chart-svg text {
  font-family: var(--font-sans) !important;
  font-variant-numeric: tabular-nums;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--border-subtle);
}

.leg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all 0.14s ease;
}
.leg-pill:hover {
  border-color: var(--primary);
  color: var(--text-main);
}
/* 未激活待点亮态：柔和浅灰无删除线，点击即可叠加显示曲线 */
.leg-pill.off {
  background: var(--bg-subtle);
  border-color: var(--border);
  color: var(--text-faint);
  box-shadow: none;
}
.leg-pill.off .leg-mark {
  opacity: 0.42;
}
.leg-pill.off:hover {
  border-color: var(--border-strong);
  color: var(--text-sub);
}
.leg-pill.off:hover .leg-mark {
  opacity: 0.85;
}

/* 语义化统一图例色标：实线横条 / 虚线双段条 / 堆叠圆角方块 */
.leg-mark {
  display: inline-block;
  flex-shrink: 0;
}
.leg-mark.is-line {
  width: 14px;
  height: 3px;
  border-radius: 99px;
  background: var(--c, var(--primary));
}
.leg-mark.is-dash {
  width: 14px;
  height: 3px;
  border-radius: 1px;
  background: repeating-linear-gradient(90deg, var(--c, var(--primary)) 0 5px, transparent 5px 8px);
}
.leg-mark.is-box {
  width: 10px;
  height: 10px;
  border-radius: 2.5px;
  background: var(--c, var(--primary));
}

.swatch {
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
  flex-shrink: 0;
}

.leg-dot-inline {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  vertical-align: -1px;
  margin-right: 7px;
}

.float-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 150;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow-md);
  min-width: 210px;
  max-width: 320px;
  font-family: var(--font-sans);
  font-size: 12px;
  display: none;
}
body.theme-dark .float-tooltip {
  background: rgba(15, 23, 42, 0.97);
}

.tip-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  padding-bottom: 5px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2.5px 0;
}

.tip-k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-sub);
  font-size: 12px;
}

.tip-meta {
  opacity: 0.7;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.tip-v {
  font-weight: 600;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------- 湖南地图卡片（统一图例排版） ---------------- */
.hunan-map-wrap {
  position: relative;
  min-height: 406px;
  background: var(--map-water);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hunan-map-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.map-overlay-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  pointer-events: none;
}
.map-overlay-top > * { pointer-events: auto; }

.map-badge-pill {
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(6px);
  color: #f8fafc;
  padding: 4px 10px;
  border-radius: 99px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.map-legend-dock {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 9px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  box-shadow: var(--shadow-sm);
}
body.theme-dark .map-legend-dock { background: rgba(15, 23, 42, 0.92); }

.map-leg-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.map-leg-bar {
  width: 118px;
  height: 6px;
  border-radius: 4px;
  margin-bottom: 3px;
}

.map-leg-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.map-leg-foot {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-sub);
}

.map-hub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ea580c;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.35);
  display: inline-block;
  flex-shrink: 0;
}

.map-tip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  border-radius: 9px;
  padding: 9px 11px;
  font-family: var(--font-sans);
  font-size: 12px;
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 20;
  min-width: 196px;
}

.map-tip-title {
  font-weight: 600;
  font-size: 12.5px;
  margin-bottom: 3px;
}
.map-tip-sub {
  color: #94a3b8;
  font-size: 11px;
  margin-bottom: 5px;
}
.map-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 1.5px 0;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.map-tip-row span { color: #cbd5e1; }

/* ---------------- 商用吸顶表格与热力矩阵 ---------------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.dtable th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-subtle);
  text-align: left;
  padding: 8.5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.dtable th.num, .dtable td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dtable th.sort { cursor: pointer; }
.dtable th.sort:hover { color: var(--text-main); }

.dtable td {
  padding: 8.5px 10px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.dtable.compact th, .dtable.compact td {
  padding: 7px 8.5px;
  font-size: 12px;
}

.dtable tbody tr:nth-child(even) { background: rgba(148, 163, 184, 0.03); }
.dtable tbody tr.click-row { cursor: pointer; transition: background 0.12s ease; }
.dtable tbody tr.click-row:hover { background: var(--bg-hover); }

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rank-num.top {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.pill-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 热力矩阵与统一色阶图例 */
.hm-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hm-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.hm-leg-item i {
  width: 10px;
  height: 10px;
  border-radius: 2.5px;
  display: inline-block;
}
.hm-leg-item i.is-fc {
  background: var(--bg-subtle);
  outline: 1.2px dashed var(--purple);
}

.heatmap-scroll {
  width: 100%;
  overflow-x: auto;
}
.heatmap-grid {
  display: grid;
  gap: 2px;
  font-family: var(--font-sans);
  font-size: 11px;
  min-width: 780px;
}
.hm-cell {
  height: 23px;
  border-radius: 3.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.hm-cell:hover {
  transform: scale(1.06);
  z-index: 2;
}

/* ---------------- 24h 价差策略买方申报信号条 ---------------- */
.strategy-signal-wrap {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.sig-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.sig-strip-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-sub);
}

.sig-strip-leg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.sig-strip-leg span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sig-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.sig-dot.less { background: #10b981; }
.sig-dot.more { background: #3b82f6; }
.sig-dot.hold { background: #cbd5e1; }

.sig-strip-grid {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 2.5px;
}

.sig-cell {
  border-radius: 5px;
  padding: 3px 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  cursor: default;
  border: 1px solid transparent;
}
.sig-cell.less {
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.22);
}
.sig-cell.more {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.22);
}
.sig-cell.hold {
  background: var(--bg-subtle);
  color: var(--text-muted);
  border-color: var(--border);
}
.sig-hr {
  font-size: 9.5px;
  opacity: 0.72;
}
.sig-act {
  font-size: 11px;
  font-weight: 700;
}
.sig-mk {
  font-size: 9.5px;
  height: 11px;
  font-weight: 700;
}
.sig-mk.hit { color: var(--green); }
.sig-mk.miss { color: var(--red); }

@media (max-width: 640px) {
  .sig-strip-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

/* ---------------- 弹窗与提示 ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.50);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }

.modal-dialog {
  width: min(980px, 100%);
  max-height: 88vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-title { margin: 0; font-size: 15px; font-weight: 700; }
.modal-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.modal-body { padding: 16px; overflow-y: auto; }

.cmd-dialog {
  width: min(560px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
}
.cmd-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
}
.cmd-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
}
.cmd-list { max-height: 360px; overflow-y: auto; padding: 6px; }
.cmd-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 11px;
  border-radius: 8px;
  text-align: left;
}
.cmd-row:hover { background: var(--bg-hover); }

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 160;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100vw - 32px);
}
.toast-msg {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-backdrop { display: none; }

/* ---------------- 响应式断点（桌面端大气，手机端 390px 零溢出） ---------------- */
@media (max-width: 1280px) {
  .heading-sep, .page-subheading { display: none; }
}

@media (max-width: 1240px) {
  .grid-hero, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    z-index: 45;
  }
  .main-area {
    margin-left: 0;
    width: 100%;
  }
  .mobile-menu-btn { display: inline-flex; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar {
    height: 54px;
    padding: 0 10px;
    gap: 6px;
  }
  .content-canvas {
    padding: 12px 10px 32px;
    gap: 12px;
  }
  .page-heading { font-size: 14.5px; }
  .topbar-divider { display: none; }
  .date-ctrl-icon, .mini-step { display: none; }
  .global-date-ctrl {
    height: 30px;
    padding: 0 3px;
  }
  .global-date-btn {
    font-size: 12px;
    padding: 0 5px;
    gap: 3px;
  }
  .live-pill-btn {
    height: 30px;
    padding: 0 8px;
  }
  #topSyncLabel { display: none; }
  .icon-btn {
    width: 30px;
    height: 30px;
  }
  .export-label { display: none; }
  .btn-primary-sm {
    height: 30px;
    padding: 0 9px;
  }

  .kpi-grid { grid-template-columns: 1fr; gap: 10px; }
  .kpi-card { padding: 13px 14px; }
  .card-head { padding: 10px 12px; }
  .card-body { padding: 10px 12px 12px; }
  .hunan-map-wrap { min-height: 330px; }
  .map-badge-pill { display: none; }

  .filter-bar { padding: 10px 12px; }
  .filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .filter-group {
    width: 100%;
    gap: 6px;
  }
  .source-chip {
    padding: 4px 8px;
    font-size: 11.5px;
  }
}
