﻿/* 鐚涚姼閲忓寲 路 娓編鑲＄瓥鐣ヨ处鎴?   娣辫壊鏈烘瀯缁堢椋庢牸锛氭繁娴峰啗钃濆簳 + 姘伴潚涓昏壊 + 閲戣壊淇″彿鑹?*/
:root {
  --bg: #05080e;
  --bg2: #080d16;
  --panel: #0b111c;
  --panel2: #101826;
  --line: #182335;
  --line2: #223148;
  --tx: #e9eff8;
  --tx2: #93a4bc;
  --tx3: #5f7089;
  --accent: #35d6f0;
  --accent-dim: #1b9db4;
  --gold: #e8b45a;
  --up: #ff4d6a;
  --down: #16c58a;
  --flat: #8fa1b9;
  --danger: #ff5a5f;
  --radius: 14px;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(53, 214, 240, 0.10), transparent 62%),
    radial-gradient(760px 420px at 92% 4%, rgba(232, 180, 90, 0.06), transparent 60%);
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #1e2b3f; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2a3a52; }
::-webkit-scrollbar-track { background: transparent; }

.mono, .num, td.num, .kpi-value, .stat-value, .price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--flat); }
.muted { color: var(--tx2); }
.tiny { font-size: 12px; }
.gold { color: var(--gold); }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hide { display: none !important; }

/* ------------------------------------------------------------ shell */
.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}
.rail {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(9, 14, 23, 0.96), rgba(6, 10, 17, 0.96));
  border-right: 1px solid var(--line);
  padding: 18px 12px 14px;
  min-width: 0;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(145deg, #123c4a, #0a2230);
  border: 1px solid rgba(53, 214, 240, 0.35);
  display: grid; place-items: center;
  color: var(--accent);
  font: 700 16px/1 var(--mono);
  box-shadow: inset 0 0 18px rgba(53, 214, 240, 0.18);
}
.brand-name { font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
.brand-sub { font-size: 10.5px; color: var(--tx3); letter-spacing: 0.14em; text-transform: uppercase; }
.nav { flex: 1; overflow-y: auto; padding-top: 4px; }
.nav-group { margin: 14px 0 4px; }
.nav-label { font-size: 10.5px; color: var(--tx3); letter-spacing: 0.16em; padding: 0 10px 6px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; margin: 2px 0;
  border-radius: 9px; color: var(--tx2); cursor: pointer;
  font-size: 13.5px; border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.035); color: var(--tx); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(53, 214, 240, 0.14), rgba(53, 214, 240, 0.03));
  color: var(--tx); border-color: rgba(53, 214, 240, 0.22);
}
.nav-item.active .nav-ico { color: var(--accent); }
.nav-ico { width: 16px; height: 16px; flex: none; color: var(--tx3); }
.nav-item .badge-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.rail-foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.user-chip:hover { background: rgba(255, 255, 255, 0.04); }
.avatar {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, #17394a, #0e2233);
  border: 1px solid var(--line2); display: grid; place-items: center;
  font: 600 12px/1 var(--mono); color: var(--accent);
}
.user-meta { min-width: 0; }
.user-meta b { display: block; font-size: 12.5px; font-weight: 600; }
.user-meta span { display: block; font-size: 11px; color: var(--tx3); }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.topbar {
  height: 58px; flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 17, 0.72);
  backdrop-filter: blur(14px);
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx3); }
.crumb b { color: var(--tx); font-weight: 600; }
.topbar-spacer { flex: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.02);
  font-size: 12px; color: var(--tx2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--down); box-shadow: 0 0 8px var(--down); }
.pill.warn .dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.icon-btn {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid transparent; background: transparent;
  color: var(--tx2); cursor: pointer; font-size: 17px; line-height: 1;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--tx); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.03);
  color: var(--tx); font-size: 13px; font-weight: 500;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { background: rgba(255, 255, 255, 0.06); border-color: #2c405c; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, rgba(53, 214, 240, 0.9), rgba(30, 168, 190, 0.9));
  border-color: rgba(53, 214, 240, 0.5); color: #04222a; font-weight: 600;
  box-shadow: 0 6px 18px rgba(53, 214, 240, 0.18);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.gold { color: #2a1d05; background: linear-gradient(180deg, #f0c274, #dfa746); border-color: rgba(232, 180, 90, 0.6); font-weight: 600; }
.btn.ghost { background: transparent; }
.btn.danger { color: #ffe3e4; background: rgba(255, 90, 95, 0.14); border-color: rgba(255, 90, 95, 0.42); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.content { flex: 1; overflow-y: auto; padding: 22px 26px 40px; }
.page { max-width: 1360px; margin: 0 auto; animation: fade 0.28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-title { font-size: 21px; font-weight: 650; letter-spacing: 0.01em; }
.page-sub { color: var(--tx3); font-size: 12.5px; margin-top: 3px; }

/* ------------------------------------------------------------ cards */
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); }
.card {
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.72), rgba(10, 16, 26, 0.72));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
  position: relative;
}
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-title .tag { font-size: 10.5px; color: var(--tx3); font-weight: 500; letter-spacing: 0.08em; }
.card-sub { font-size: 12px; color: var(--tx3); }

.stat { padding: 16px 18px 15px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--tx2); font-size: 12.5px; }
.stat-value { font-size: 26px; font-weight: 600; margin: 9px 0 8px; letter-spacing: -0.02em; }
.stat-value.sm { font-size: 22px; }
.stat-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tx3); }
.delta { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.stat .spark { display: block; }

/* ------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  text-align: left; font-weight: 500; color: var(--tx3); font-size: 11.5px;
  letter-spacing: 0.06em; padding: 10px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: rgba(255, 255, 255, 0.012);
}
.tbl thead th.right { text-align: right; }
.tbl tbody td { padding: 12px 14px; border-bottom: 1px solid rgba(24, 35, 53, 0.65); vertical-align: middle; }
.tbl tbody tr { transition: background 0.12s; }
.tbl tbody tr:hover { background: rgba(53, 214, 240, 0.035); }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl td.num, .tbl th.num { text-align: right; }
.sym { display: flex; align-items: center; gap: 9px; }
.sym-mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center;
  font: 600 10.5px/1 var(--mono); background: rgba(53, 214, 240, 0.08);
  border: 1px solid rgba(53, 214, 240, 0.18); color: #9fe8f4;
}
.sym-mark.us { background: rgba(232, 180, 90, 0.08); border-color: rgba(232, 180, 90, 0.2); color: #f0cd92; }
.sym-name { font-weight: 550; }
.sym-code { font-family: var(--mono); font-size: 11px; color: var(--tx3); }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 11.5px; border: 1px solid var(--line2); color: var(--tx2);
  background: rgba(255, 255, 255, 0.02); white-space: nowrap;
}
.chip.gold { color: var(--gold); border-color: rgba(232, 180, 90, 0.3); background: rgba(232, 180, 90, 0.07); }
.chip.cyan { color: var(--accent); border-color: rgba(53, 214, 240, 0.28); background: rgba(53, 214, 240, 0.07); }
.chip.up { color: var(--up); border-color: rgba(255, 77, 106, 0.3); background: rgba(255, 77, 106, 0.07); }
.chip.down { color: var(--down); border-color: rgba(22, 197, 138, 0.3); background: rgba(22, 197, 138, 0.07); }
.chip.ghost { border-color: transparent; background: rgba(255, 255, 255, 0.03); }

.bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }

/* ------------------------------------------------------------ filters / forms */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.seg button {
  height: 26px; padding: 0 11px; border-radius: 7px; border: 0; background: transparent;
  color: var(--tx2); font-size: 12px; cursor: pointer;
}
.seg button.on { background: rgba(53, 214, 240, 0.14); color: var(--tx); box-shadow: inset 0 0 0 1px rgba(53, 214, 240, 0.25); }
.input, .select {
  height: 34px; padding: 0 11px; border-radius: 9px;
  border: 1px solid var(--line2); background: #080d15; color: var(--tx);
  font-size: 13px; font-family: inherit; outline: none; min-width: 0;
}
.input:focus, .select:focus { border-color: rgba(53, 214, 240, 0.5); box-shadow: 0 0 0 3px rgba(53, 214, 240, 0.1); }
.input::placeholder { color: var(--tx3); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 12px; color: var(--tx2); }
.field .hint { font-size: 11.5px; color: var(--tx3); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.switch { position: relative; width: 38px; height: 21px; border-radius: 999px; background: #1b2637; border: 1px solid var(--line2); cursor: pointer; transition: background 0.15s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #7d8ea6; transition: transform 0.16s, background 0.16s; }
.switch.on { background: rgba(53, 214, 240, 0.25); border-color: rgba(53, 214, 240, 0.55); }
.switch.on::after { transform: translateX(17px); background: var(--accent); }

/* ------------------------------------------------------------ plan cards */
.plan-item {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, 0.012);
}
.plan-item + .plan-item { margin-top: 10px; }
.plan-head { display: flex; align-items: center; gap: 10px; }
.plan-price { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.plan-meta { display: flex; gap: 16px; color: var(--tx3); font-size: 12px; flex-wrap: wrap; }
.trigger-bar { position: relative; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); margin-top: 12px; }
.trigger-bar i { position: absolute; top: -3px; width: 2px; height: 11px; background: var(--accent); }
.trigger-bar b { position: absolute; top: -3px; width: 9px; height: 11px; border-radius: 3px; background: var(--gold); transform: translateX(-50%); }

/* ------------------------------------------------------------ chart */
.chart-host { position: relative; }
.chart-svg { display: block; overflow: visible; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.chart-dot.focus { fill: var(--accent); stroke: #04141a; }
.grid-line { stroke: rgba(255, 255, 255, 0.055); stroke-dasharray: 2 4; }
.axis-label { fill: var(--tx3); font-size: 10.5px; font-family: var(--mono); }
.crosshair { stroke: rgba(53, 214, 240, 0.45); stroke-dasharray: 3 3; }
.chart-hit { position: absolute; inset: 0; cursor: crosshair; }
.chart-tip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity 0.12s;
  background: #0b1524; border: 1px solid var(--line2); border-radius: 9px;
  padding: 8px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow); min-width: 118px; z-index: 3;
}
.chart-tip b { font-family: var(--mono); font-size: 11px; color: var(--tx3); font-weight: 500; }
.chart-tip span { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.chart-tip em { font-style: normal; font-family: var(--mono); font-size: 11.5px; }
.spark-line { fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ------------------------------------------------------------ donut / legend */
.donut-wrap { position: relative; display: grid; place-items: center; }
.donut-center { position: absolute; text-align: center; }
.donut-center b { display: block; font-family: var(--mono); font-size: 19px; font-weight: 600; }
.donut-center span { font-size: 11px; color: var(--tx3); }
.legend { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.legend-row { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.legend-row .v { margin-left: auto; font-family: var(--mono); font-size: 12px; }
.legend-row .p { width: 46px; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--tx3); }

/* ------------------------------------------------------------ misc blocks */
.kv { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; }
.kv-row span { color: var(--tx3); }
.kv-row b { font-weight: 550; font-family: var(--mono); }
.alert {
  display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); font-size: 12.5px; color: var(--tx2);
  align-items: flex-start;
}
.alert + .alert { margin-top: 8px; }
.alert .bullet { width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--tx3); }
.alert.gold .bullet { background: var(--gold); box-shadow: 0 0 8px rgba(232, 180, 90, 0.6); }
.alert.up .bullet { background: var(--up); box-shadow: 0 0 8px rgba(255, 77, 106, 0.5); }
.alert.down .bullet { background: var(--down); box-shadow: 0 0 8px rgba(16, 197, 138, 0.5); }

.empty { padding: 34px 10px; text-align: center; color: var(--tx3); font-size: 13px; }
.skeleton { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.sk-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #101a29, #16243a, #101a29); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--tx3); }
.pager-ctrl { display: flex; gap: 6px; }

/* ------------------------------------------------------------ toast / modal / drawer */
.toast-host { position: fixed; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 90; }
.toast {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 10px;
  background: #0d1624; border: 1px solid var(--line2); box-shadow: var(--shadow);
  font-size: 13px; opacity: 0; transform: translateX(12px); transition: all 0.2s;
}
.toast.in { opacity: 1; transform: none; }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.toast.err .toast-dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.toast.warn .toast-dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.modal-wrap {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  background: rgba(3, 6, 11, 0.62); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.18s;
}
.modal-wrap.in { opacity: 1; }
.modal {
  width: min(460px, calc(100vw - 40px)); background: #0b121d; border: 1px solid var(--line2);
  border-radius: 16px; box-shadow: var(--shadow); transform: translateY(8px); transition: transform 0.18s;
}
.modal-wrap.in .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0; }
.modal-title { font-size: 15px; font-weight: 600; }
.modal-body { padding: 14px 18px 4px; color: var(--tx2); font-size: 13px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px 16px; }

.drawer-wrap { position: fixed; inset: 0; z-index: 94; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(3, 6, 11, 0.5); opacity: 0; transition: opacity 0.2s; }
.drawer-wrap.in .drawer-scrim { opacity: 1; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100vw);
  background: #080e18; border-left: 1px solid var(--line2); box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; transform: translateX(24px); opacity: 0; transition: all 0.22s ease;
}
.drawer-wrap.in .drawer { transform: none; opacity: 1; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 16px; }
.drawer-head p { margin-top: 3px; font-size: 12px; }
.drawer-body { padding: 18px 20px 28px; overflow-y: auto; }

/* ------------------------------------------------------------ login */
.login-wrap { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.15fr 0.85fr; }
.login-side { padding: 56px 60px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.login-side::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -320px; bottom: -360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 214, 240, 0.16), transparent 62%);
}
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-copy h1 { font-size: 34px; line-height: 1.25; font-weight: 620; letter-spacing: 0.01em; margin-bottom: 14px; }
.login-copy p { color: var(--tx2); font-size: 14px; max-width: 460px; line-height: 1.75; }
.login-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 560px; }
.fact { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: rgba(255, 255, 255, 0.015); }
.fact b { display: block; font-family: var(--mono); font-size: 17px; margin-bottom: 2px; }
.fact span { font-size: 11.5px; color: var(--tx3); }
.login-panel { display: grid; place-items: center; padding: 40px; }
.login-card { width: min(400px, 100%); }
.login-card h2 { font-size: 20px; font-weight: 620; }
.login-card .sub { color: var(--tx3); font-size: 12.5px; margin: 6px 0 26px; }
.login-card .field { margin-bottom: 16px; }
.login-card .input { height: 42px; border-radius: 10px; width: 100%; font-size: 14px; }
.login-card .btn.primary { width: 100%; height: 42px; margin-top: 8px; border-radius: 10px; font-size: 14px; }
.login-foot { margin-top: 22px; font-size: 11.5px; color: var(--tx3); line-height: 1.8; }
.login-err { color: #ffb4b6; font-size: 12.5px; min-height: 18px; margin-top: 10px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1240px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2-1, .g-1-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: 68px minmax(0, 1fr); }
  .brand-name, .brand-sub, .nav-label, .nav-item span, .user-meta, .rail-foot .btn { display: none; }
  .nav-item { justify-content: center; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-side { display: none; }
}
@media (max-width: 720px) {
  .content { padding: 16px 14px 32px; }
  .topbar { padding: 0 14px; }
  .g4, .g3, .g2 { grid-template-columns: minmax(0, 1fr); }
  .tbl thead th:nth-child(n+5), .tbl tbody td:nth-child(n+5) { display: none; }
}

/* ================= 绠＄悊鎺у埗鍙拌ˉ鍏?================= */
.brand-mark.admin {
  background: linear-gradient(150deg, rgba(232, 180, 90, 0.18), rgba(232, 180, 90, 0.04));
  border-color: rgba(232, 180, 90, 0.34); color: var(--gold);
}
.avatar.admin {
  background: linear-gradient(140deg, #3a2c13, #1f1708);
  border-color: rgba(232, 180, 90, 0.32); color: var(--gold);
}
.pill.link { text-decoration: none; color: var(--tx2); transition: color .15s, border-color .15s; }
.pill.link:hover { color: var(--tx); border-color: rgba(53, 214, 240, 0.32); }
.pill .dot.cyan { background: var(--accent); box-shadow: 0 0 8px rgba(53, 214, 240, 0.7); }
.tag {
  display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
  font-size: 11px; color: var(--tx3); letter-spacing: .02em; white-space: nowrap;
}
.actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.actions .btn { padding: 4px 9px; font-size: 11.5px; }
.btn.danger-text { color: #ff7a8f; }
.btn.danger-text:hover { background: rgba(255, 77, 106, 0.08); border-color: rgba(255, 77, 106, 0.25); color: #ff97a7; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.field-grid .field.full { grid-column: 1 / -1; }
.wl-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx2); white-space: nowrap; }
.wl-status i { width: 6px; height: 6px; border-radius: 50%; background: #41536e; flex: none; }
.wl-status.on i { background: var(--down); box-shadow: 0 0 6px rgba(22, 197, 138, 0.7); }
.audit-row {
  display: grid; grid-template-columns: 74px 96px 1fr; gap: 10px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(24, 35, 53, 0.6); font-size: 12.5px;
}
.audit-row:last-child { border-bottom: none; }
.audit-detail { color: var(--tx2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick { display: grid; gap: 8px; }
.quick-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015);
  text-decoration: none; color: inherit; transition: background .15s, border-color .15s, transform .15s;
}
.quick-item:hover { background: rgba(53, 214, 240, 0.05); border-color: rgba(53, 214, 240, 0.24); transform: translateX(2px); }
.quick-ico {
  width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: rgba(53, 214, 240, 0.08); border: 1px solid rgba(53, 214, 240, 0.18);
  color: var(--accent); font-size: 15px;
}
.quick-item b { display: block; font-size: 13px; font-weight: 600; }
.quick-item span:not(.quick-arrow) { display: block; font-size: 11.5px; color: var(--tx3); margin-top: 2px; }
.quick-arrow { margin-left: auto; color: var(--tx3); font-family: var(--mono); }
.quick-item:hover .quick-arrow { color: var(--accent); }
textarea.input { resize: vertical; min-height: 64px; line-height: 1.55; font-family: inherit; }
/* ---------- refinements: brand + rail status (2026-11-30) ---------- */
.brand-name { font-size: 15px; white-space: nowrap; }
.brand-sub {
  font-size: 9.5px; letter-spacing: 0.07em; white-space: nowrap;
  margin-top: 2px; color: #5b7292;
}
.rail-status {
  margin: 0 4px 10px; padding: 12px 12px 10px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.018);
}
.rs-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--tx2); }
.rs-row + .rs-row { margin-top: 8px; }
.rs-row b { margin-left: auto; font: 500 11px/1 var(--mono); color: var(--tx); }
.rs-meta { margin-top: 9px; font-size: 10px; color: var(--tx3); letter-spacing: 0.02em; }
.rs-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.rs-dot.cyan { background: var(--accent); box-shadow: 0 0 7px rgba(53, 214, 240, 0.55); }
.rs-dot.gold { background: var(--gold); box-shadow: 0 0 7px rgba(232, 180, 90, 0.45); }
/* ---------- layout fixes (2026-11-30 b) ---------- */
.field .seg { align-self: flex-start; }
.seg button.on {
  background: rgba(53, 214, 240, 0.18); color: #eafcff;
  box-shadow: inset 0 0 0 1px rgba(53, 214, 240, 0.4);
}
.sym-mark.tick { font-size: 9px; letter-spacing: -0.03em; }
.stat-value.flat { color: var(--tx); }
.quick-ico svg { width: 16px; height: 16px; }
.grid.g-2-1 { align-items: start; }
.form3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 2px; }
.form-foot .tiny { max-width: 520px; line-height: 1.6; }
@media (max-width: 720px) { .form3 { grid-template-columns: 1fr; } }

/* ---------- perf strip + nav count (2026-11-30 c) ---------- */
.nav-count {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: rgba(232, 180, 90, 0.14); color: var(--gold);
  font: 600 10.5px/18px var(--mono); text-align: center;
}
.perf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.perf-cell { padding: 4px 16px; border-left: 1px solid var(--line); }
.perf-cell:first-child { padding-left: 2px; border-left: 0; }
.perf-label { font-size: 11.5px; color: var(--tx3); }
.perf-value { font-family: var(--mono); font-size: 19px; font-weight: 600; margin: 7px 0 4px; letter-spacing: -0.01em; }
.perf-value.flat { color: var(--tx); }
.perf-sub { font-size: 11px; color: var(--tx3); }
@media (max-width: 720px) { .perf { grid-template-columns: repeat(2, 1fr); row-gap: 14px; } .perf-cell { border-left: 0; padding-left: 0; } }

/* ---------- numeric typography (2026-11-30 d) ---------- */
.stat-value, .perf-value, .kpi b { font-family: var(--mono); letter-spacing: -0.015em; }

/* ---------- plan mini list (2026-11-30 e) ---------- */
.plan-mini-list { display: flex; flex-direction: column; }
.plan-mini {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline;
  padding: 7px 0; border-top: 1px dashed rgba(255, 255, 255, 0.05);
}
.plan-mini:first-child { border-top: 0; }
.pm-name { font-size: 12.5px; color: var(--tx2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-px { font-family: var(--mono); font-size: 12px; color: var(--tx); }
.pm-gap { font-family: var(--mono); font-size: 11px; color: var(--gold); min-width: 44px; text-align: right; }

/* ---------- plan page grid (2026-11-30 f) ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plan-grid .plan-item { position: relative; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.012); }
.plan-grid .plan-item:hover { border-color: rgba(53, 214, 240, 0.28); }
.plan-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.plan-foot .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.subtle { background: rgba(255, 255, 255, 0.04); color: var(--tx3); border: 1px solid var(--line2); }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-grid .plan-item + .plan-item { margin-top: 0; }
.plan-card-wrap { margin-top: 14px; }
.plan-grid .plan-head { justify-content: space-between; }

/* ---------- analysis bars + chips (2026-11-30 g) ---------- */
.legend { width: 100%; }
.legend-row { width: 100%; }
.legend-row .bar { flex: 1 1 auto; min-width: 80px; }
.tbl .bar { width: 150px; }

/* ---------- diverging month bars (2026-11-30 h) ---------- */
.mbar { position: relative; width: 132px; height: 6px; margin-left: auto; border-radius: 3px; background: rgba(255, 255, 255, 0.05); }
.mbar::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(255, 255, 255, 0.18); }
.mbar i { position: absolute; top: 0; height: 6px; border-radius: 3px; }
.mbar i.pos { left: 50%; background: var(--up); }
.mbar i.neg { right: 50%; background: var(--down); }
.legend-row .bar { max-width: 420px; height: 8px; }
.legend-row .bar > i { border-radius: 4px; }

/* ---------- card height: never stretch to grid row (2026-11-30 i) ---------- */
.grid.g-1-2 { align-items: start; }
.grid.g-2-1 { align-items: start; }
.grid.g-1-2 > .card, .grid.g-2-1 > .card { align-self: start; height: auto; }

/* ---------- stat list (2026-11-30 j) ---------- */
.kv-list { display: flex; flex-direction: column; gap: 11px; }
.kv-list .kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.kv-list b { font-size: 13px; }

/* ---------- compact stat list (2026-11-30 k) ---------- */
.kv-list { gap: 9px; }
.kv-list b { font-size: 12.5px; }

/* ---------- return histogram (2026-11-30 l) ---------- */
.hist { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; align-items: end; height: 168px; padding: 6px 4px 0; }
.hist-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; height: 100%; }
.hist-n { font-size: 12px; color: var(--tx2); }
.hist-bar { width: 100%; max-width: 84px; border-radius: 5px 5px 2px 2px; min-height: 3px; }
.hist-bar.up { background: linear-gradient(180deg, rgba(255, 77, 106, 0.95), rgba(255, 77, 106, 0.35)); }
.hist-bar.down { background: linear-gradient(180deg, rgba(22, 197, 138, 0.9), rgba(22, 197, 138, 0.3)); }
.hist-bar.flat { background: linear-gradient(180deg, rgba(120, 140, 172, 0.9), rgba(120, 140, 172, 0.25)); }
.hist-x { white-space: nowrap; }
.hist-p { color: var(--tx2); font-size: 10.5px; font-family: var(--mono); }

/* ---------- keep cards at content height in 2-col rows (2026-11-30 m) ---------- */
.grid.g2 { align-items: start; }
.grid.g2 > .card { align-self: start; height: auto; }

/* ---------- note strip + ticker mark (2026-11-30 o) ---------- */
.note-strip { margin-top: 12px; display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.018); color: var(--tx2); font-size: 12px; line-height: 1.7; }
.note-strip b { color: var(--tx); font-weight: 600; white-space: nowrap; }
.sym-mark.tick { font-size: 8.5px; letter-spacing: 0; }
