/* 五辰投资行情分析 v2 · 指挥台风格 */
:root {
  --bg: #05060c;
  --bg-2: #080A12;
  --bg-elev: #0b0d16;
  --bg-card: #0c0f1a;
  --bg-card-2: #101425;
  --line: rgba(255, 45, 138, 0.38);
  --line-soft: rgba(255, 45, 138, 0.16);
  --line-strong: #ff2d8a;
  --pink: #ff2d8a;
  --pink-2: #ff5eb3;
  --pink-dim: rgba(255, 45, 138, 0.12);
  --magenta: #c81e7a;
  --cyan: #6ee7ff;
  --mint: #32f0b0;
  --lime: #b8ff5a;
  --gold: #ffc85a;
  --orange: #ff8a3d;
  --text: #f4f1f8;
  --text-dim: #a89bb0;
  --text-faint: #6d6278;
  --up: #ff3b5c;
  --down: #22e07a;
  --up-bg: rgba(255, 59, 92, 0.14);
  --down-bg: rgba(34, 224, 122, 0.12);
  --warn: #ffc85a;
  --demo: #ff8a3d;
  --shadow: 0 0 0 1px rgba(255, 45, 138, 0.18), 0 10px 36px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --font: "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans", sans-serif;
  --mono: "Noto Sans Mono", "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --header-h: 56px;
  --nav-h: 40px;
  --glow: 0 0 18px rgba(255, 45, 138, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: #03040a;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
}
body { min-height: 100vh; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; color: #c6f7ff; }
button, input, select, textarea { font-family: inherit; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; font-family: var(--mono); }

/* ---- outer bezel / pink HUD frame ---- */
.bezel {
  min-height: 100vh;
  padding: 14px 16px 18px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 45, 138, 0.14), transparent 50%),
    linear-gradient(180deg, #07080f 0%, #03040a 100%);
}
.hud {
  max-width: 1560px;
  margin: 0 auto;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 94, 179, 0.25),
    0 0 28px rgba(255, 45, 138, 0.22),
    inset 0 0 40px rgba(255, 45, 138, 0.04);
  background: var(--bg);
  overflow: clip;
  position: relative;
}
.hud::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 180, 220, 0.18);
  z-index: 80;
}

/* ---- header ---- */
.app-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px 0 14px;
  background: linear-gradient(180deg, #140818 0%, #0c0712 100%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.mark {
  width: 32px; height: 32px; border-radius: 6px;
  background: linear-gradient(145deg, #ff7ab8, #ff2d8a 55%, #9b0e55);
  color: #fff;
  font-weight: 800; font-size: 15px;
  display: grid; place-items: center;
  letter-spacing: -0.04em;
  box-shadow: var(--glow);
  border: 1px solid rgba(255, 220, 240, 0.35);
}
.brand h1 {
  font-size: 15px; font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-transform: none;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 45, 138, 0.45);
}
.brand p {
  font-size: 10px;
  color: var(--pink-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.header-meta {
  flex: 1; display: flex; flex-wrap: wrap; gap: 8px 12px;
  align-items: center; justify-content: flex-end;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 45, 138, 0.06);
  color: var(--text-dim);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
}
.pill strong { color: var(--pink-2); font-weight: 650; }
.pill.warn { border-color: rgba(255, 200, 90, 0.45); color: var(--warn); }
.pill.clock {
  border-color: var(--pink);
  color: #fff;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  background: rgba(255, 45, 138, 0.16);
  min-width: 148px;
  justify-content: center;
}

/* ---- tabs ---- */
.tabs {
  position: sticky; top: var(--header-h); z-index: 30;
  display: flex; gap: 0; padding: 0 10px;
  background: #0a0710;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  height: var(--nav-h);
  align-items: stretch;
}
.tabs button {
  appearance: none; border: 0; background: transparent;
  color: var(--text-dim);
  padding: 0 14px;
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.08em;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--pink-2); }
.tabs button.active::after {
  content: "";
  position: absolute; left: 10px; right: 10px; bottom: 0;
  height: 2px;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
  border-radius: 2px 2px 0 0;
}

main { padding: 14px 16px 28px; }
.view { display: none; }
.view.active { display: block; }

.banner {
  background: linear-gradient(90deg, rgba(255, 45, 138, 0.1), rgba(12, 15, 26, 0.2));
  border: 1px solid var(--line);
  border-left: 3px solid var(--pink);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  color: var(--text-dim);
  font-size: 12px;
}
.banner.demo {
  border-left-color: var(--demo);
  background: linear-gradient(90deg, rgba(255, 138, 61, 0.12), rgba(12, 15, 26, 0.2));
}

/* generic cards used by other views */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi .label { font-size: 11px; color: var(--text-dim); letter-spacing: 0.06em; }
.kpi .value { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; }
.kpi .value .unit { font-size: 12px; color: var(--text-dim); margin-left: 4px; font-weight: 500; letter-spacing: 0; }
.kpi .chg { font-size: 12px; font-weight: 600; }
.kpi .src { margin-top: auto; font-size: 10.5px; color: var(--text-faint); padding-top: 6px; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--text-dim); }

.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 12px; }
.grid-2-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  box-shadow: var(--shadow);
}
.card h2 {
  font-size: 13px; font-weight: 650; letter-spacing: 0.08em;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 8px; color: var(--pink-2);
}
.card h2 span { font-size: 11px; color: var(--text-faint); font-weight: 400; letter-spacing: 0; }
.chart-box { position: relative; height: 280px; }
.chart-box.tall { height: 340px; }
.footnote { font-size: 11px; color: var(--text-faint); margin-top: 8px; line-height: 1.5; }
.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px 14px;
  color: var(--text-dim);
  font-size: 12.5px;
  background: rgba(255, 45, 138, 0.04);
}
.empty strong { color: var(--warn); font-weight: 600; }

table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data th {
  text-align: left; color: var(--text-faint); font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.05em; padding: 6px 8px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
table.data tr:hover td { background: rgba(255, 45, 138, 0.05); }
table.data td.r, table.data th.r { text-align: right; }
.table-wrap { overflow-x: auto; }

.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item { border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item time { display: block; font-size: 11px; color: var(--text-faint); }
.news-item h3 { font-size: 13.5px; font-weight: 600; margin: 2px 0 4px; }
.news-item h3 a { color: var(--text); }
.news-item h3 a:hover { color: var(--pink-2); text-decoration: none; }
.news-item .sum { font-size: 12px; color: var(--text-dim); }
.news-item .src { font-size: 11px; color: var(--text-faint); margin-top: 3px; }

.stat-list { display: grid; gap: 8px; }
.stat-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px;
  align-items: baseline; padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.stat-row:last-child { border-bottom: 0; }
.stat-row .n { color: var(--text-dim); }
.stat-row .v { font-weight: 600; }
.stat-row .as { grid-column: 1 / -1; font-size: 11px; color: var(--text-faint); margin-top: -4px; }

.tag {
  display: inline-block; font-size: 10px; letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: 3px; padding: 0 5px;
  color: var(--text-dim); margin-left: 6px; vertical-align: middle;
}
.tag.demo { color: var(--demo); border-color: rgba(255, 138, 61, 0.55); }
.tag.live { color: var(--mint); border-color: rgba(50, 240, 176, 0.45); }
.tag.warn { color: var(--warn); border-color: rgba(255, 200, 90, 0.45); }

.pos-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.pos-toolbar .totals { margin-left: auto; display: flex; gap: 16px; font-size: 13px; }
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--bg-card-2);
  color: var(--text); border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 13px;
}
.btn:hover { border-color: var(--pink); color: var(--pink-2); box-shadow: var(--glow); }
.btn.ghost { background: transparent; }
input, select {
  background: #080A12; border: 1px solid var(--line); color: var(--text);
  border-radius: 5px; padding: 5px 8px; font-size: 13px;
}
input.num { width: 92px; text-align: right; }
table.data input, table.data select { width: 100%; max-width: 140px; }
.pnl-pos { font-size: 28px; font-weight: 700; }
.muted { color: var(--text-faint); font-size: 12px; }

footer.app-foot {
  padding: 6px 16px 22px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.7;
  border-top: 1px solid var(--line-soft);
  background: #08060c;
}
footer.app-foot a { color: var(--text-dim); }

.legend-note { font-size: 11px; color: var(--text-faint); margin-bottom: 6px; }

/* =========================================================
   COMMAND CENTER (overview)
   ========================================================= */
.cmd { display: flex; flex-direction: column; gap: 8px; }
.cmd .banner { margin-bottom: 0; font-size: 11.5px; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mod {
  background: linear-gradient(180deg, #120918 0%, #0a0c16 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px 8px;
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr auto;
  gap: 0 8px;
  position: relative;
  overflow: hidden;
}
.mod::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent, var(--pink));
  box-shadow: 0 0 10px var(--accent, var(--pink));
}
.mod .code {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: var(--accent, var(--pink-2));
  text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.mod .code .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, var(--pink));
  box-shadow: 0 0 8px var(--accent, var(--pink));
}
.mod .sub {
  justify-self: end;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.mod .val {
  grid-column: 1 / -1;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 2px;
  color: #fff;
}
.mod .val .unit {
  font-size: 11px; color: var(--text-dim);
  margin-left: 4px; font-weight: 500; letter-spacing: 0;
}
.mod .chgline {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 600;
}
.mod .meta {
  grid-column: 1 / -1;
  font-size: 10px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mod .spark {
  position: absolute; right: 8px; bottom: 6px;
  width: 72px; height: 22px; opacity: 0.85;
}
.mod.accent-pink { --accent: #ff2d8a; }
.mod.accent-mint { --accent: #32f0b0; }
.mod.accent-cyan { --accent: #6ee7ff; }
.mod.accent-gold { --accent: #ffc85a; }
.mod.accent-orange { --accent: #ff8a3d; }
.mod.accent-red { --accent: #ff3b5c; }
.mod.accent-violet { --accent: #c9a6ff; }

/* ---- command stage / trading floor ---- */
.stage-card {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #07080f;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 180, 220, 0.12), var(--glow);
}
.stage-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(255, 45, 138, 0.12), transparent 40%, rgba(110, 231, 255, 0.06));
}
.stage-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: 0.18em;
  font-size: 13px; color: #fff;
  text-shadow: 0 0 10px rgba(255, 45, 138, 0.5);
}
.stage-brand .mark-sm {
  width: 22px; height: 22px; border-radius: 4px;
  background: linear-gradient(145deg, #ff7ab8, #ff2d8a);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  box-shadow: var(--glow);
}
.stage-readout {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--text-dim);
}
.stage-readout b { color: #fff; font-weight: 650; }
.stage-readout .up { color: var(--up); }
.stage-readout .down { color: var(--down); }

.command-stage {
  position: relative;
  height: 420px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(80, 20, 70, 0.45), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(20, 40, 80, 0.25), transparent 45%),
    linear-gradient(180deg, #0b0a14 0%, #070812 40%, #05060c 100%);
  overflow: hidden;
}

.wall {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 12px;
  height: 54%;
  background: #070A14;
  border: 1px solid rgba(255, 45, 138, 0.45);
  border-radius: 4px;
  box-shadow: 0 0 24px rgba(255, 45, 138, 0.12), inset 0 0 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.wall canvas { display: block; width: 100%; height: 100%; }
.wall-net {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.85;
}
.wall-chip {
  position: absolute;
  top: 8px; right: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mint);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(50, 240, 176, 0.35);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}
.wall-chip.left {
  right: auto; left: 10px;
  color: var(--pink-2);
  border-color: rgba(255, 45, 138, 0.4);
}

.floor-wrap {
  position: absolute;
  left: -5%; right: -5%;
  bottom: -20px;
  height: 230px;
  perspective: 700px;
  pointer-events: none;
}
.floor {
  position: absolute; inset: 0;
  transform: rotateX(64deg);
  transform-origin: center top;
  background-image:
    linear-gradient(rgba(255, 45, 138, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 138, 0.13) 1px, transparent 1px);
  background-size: 36px 36px;
  background-color: #080914;
  box-shadow: inset 0 40px 60px rgba(5, 6, 12, 0.65);
}

.props {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: end;
  padding: 0 18px 10px;
  pointer-events: none;
}

.side-prop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 8px; }
.glass-slab {
  width: 44px; height: 70px;
  background: linear-gradient(180deg, rgba(110, 231, 255, 0.18), rgba(255, 45, 138, 0.12) 60%, rgba(110, 231, 255, 0.08));
  border: 1px solid rgba(110, 231, 255, 0.45);
  border-radius: 3px 3px 2px 2px;
  box-shadow: 0 0 16px rgba(110, 231, 255, 0.25), inset 0 0 12px rgba(110, 231, 255, 0.12);
  position: relative;
}
.glass-slab::after {
  content: "浮法";
  position: absolute; bottom: 4px; left: 0; right: 0;
  text-align: center; font-size: 8px; letter-spacing: 0.1em; color: var(--cyan);
}
.rack {
  width: 36px;
  display: flex; flex-direction: column; gap: 3px;
}
.rack .u {
  height: 8px; border-radius: 1px;
  background: #161822;
  border: 1px solid rgba(255, 45, 138, 0.3);
  position: relative;
}
.rack .u::before, .rack .u::after {
  content: "";
  position: absolute; top: 2px; width: 4px; height: 4px; border-radius: 50%;
}
.rack .u::before { left: 4px; background: var(--mint); box-shadow: 0 0 6px var(--mint); }
.rack .u::after { right: 4px; background: var(--pink); box-shadow: 0 0 6px var(--pink); }
.prop-label { font-size: 8px; letter-spacing: 0.12em; color: var(--text-faint); text-transform: uppercase; }

.desk-row {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 22px; padding-bottom: 6px;
}
.desk-row.back { transform: translateY(-18px) scale(0.86); opacity: 0.95; }
.island { display: flex; flex-direction: column; align-items: center; width: 88px; }
.mons {
  display: flex; gap: 3px; align-items: flex-end;
  transform: perspective(80px) rotateX(-8deg);
}
.mon {
  width: 28px; height: 20px;
  background: #0a1020;
  border: 1px solid rgba(255, 45, 138, 0.45);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 8px rgba(255, 45, 138, 0.25);
  position: relative;
  overflow: hidden;
}
.mon.wide { width: 40px; height: 24px; }
.mon::after {
  content: "";
  position: absolute; inset: 3px 3px 5px;
  background:
    linear-gradient(90deg, transparent 0 10%, var(--scan, var(--pink)) 0 12%, transparent 0),
    linear-gradient(180deg, rgba(255, 45, 138, 0.15), transparent);
  background-size: 100% 100%, 100% 100%;
  opacity: 0.9;
}
.mon .t {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 7px; color: var(--mint);
  z-index: 1;
}
.desk-top {
  width: 100%;
  height: 10px;
  background: linear-gradient(180deg, #1c2233, #12151f);
  border: 1px solid rgba(255, 45, 138, 0.28);
  border-radius: 2px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.45);
}
.desk-leg { width: 70%; height: 8px; background: #0e1118; border-radius: 0 0 2px 2px; }
.plant {
  width: 16px; display: flex; flex-direction: column; align-items: center;
  align-self: flex-end; margin-bottom: 4px;
}
.plant .leaf {
  width: 14px; height: 14px; border-radius: 0 70% 0 70%;
  background: radial-gradient(circle at 30% 30%, #6cffb0, #1a8a5a);
  transform: rotate(-20deg);
  box-shadow: 6px 2px 0 -2px #2dba72;
}
.plant .pot { width: 10px; height: 7px; background: #3a2a22; border-radius: 0 0 3px 3px; }

/* ---- equity / price curve pane ---- */
.curve-pane {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #07080f;
  padding: 8px 12px 6px;
  box-shadow: 0 0 0 1px rgba(255, 180, 220, 0.1);
}
.curve-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 2px;
}
.curve-head h2 {
  font-size: 12px; letter-spacing: 0.12em; color: var(--pink-2);
  font-weight: 650; margin: 0;
  display: flex; gap: 10px; align-items: baseline;
}
.curve-head h2 span { font-size: 10.5px; color: var(--text-faint); font-weight: 400; letter-spacing: 0; }
.curve-last {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--mint);
  text-shadow: 0 0 12px rgba(50, 240, 176, 0.35);
  letter-spacing: -0.03em;
}
.curve-last small { font-size: 11px; color: var(--text-dim); margin-left: 4px; font-weight: 500; }
.curve-box { height: 150px; position: relative; }

/* ---- lower split ---- */
.lower-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8px;
}
.lower-split .pane {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07080f;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lower-split .pane-h {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--pink-2);
  font-weight: 650;
}
.lower-split .pane-h span { font-size: 10.5px; color: var(--text-faint); font-weight: 400; letter-spacing: 0; }
.lower-split .pane-body { flex: 1; padding: 8px 10px 10px; min-height: 0; }
.candle-box { height: 250px; position: relative; }

.term {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: #c8bdd4;
  height: 250px;
  overflow: auto;
  background: #06070c;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 8px 10px;
}
.term .k { color: var(--pink-2); }
.term .g { color: var(--mint); }
.term .c { color: var(--cyan); }
.term .w { color: var(--warn); }
.term .r { color: var(--up); }
.term .dim { color: var(--text-faint); }
.term .ok { color: var(--mint); }
.term a { color: var(--cyan); }
.term .cursor {
  display: inline-block; width: 7px; height: 12px;
  background: var(--pink); margin-left: 2px; vertical-align: -1px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 1100px) {
  .kpis, .status-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2-eq, .grid-3, .lower-split { grid-template-columns: 1fr; }
  .kpi .value { font-size: 24px; }
  .header-meta .pill:not(.clock):not(.warn) { display: none; }
  .command-stage { height: 340px; }
  .props { grid-template-columns: 1fr; }
  .side-prop { display: none; }
  .curve-box { height: 140px; }
}
@media (max-width: 640px) {
  .bezel { padding: 6px; }
  main { padding: 10px 8px 20px; }
  .kpis, .status-grid { grid-template-columns: 1fr 1fr; }
  .brand h1 { font-size: 12px; letter-spacing: 0.08em; }
  .brand p { display: none; }
  .chart-box, .chart-box.tall { height: 240px; }
  .command-stage { height: 280px; }
  .wall { left: 4%; right: 4%; height: 58%; }
  .desk-row.back { display: none; }
  .curve-last { font-size: 18px; }
  .curve-box { height: 120px; }
  .candle-box, .term { height: 220px; }
  table.data { min-width: 760px; }
  table.data input, table.data select { min-width: 80px; max-width: none; width: 100%; }
  .mod .val { font-size: 18px; }
  .app-header { height: auto; min-height: var(--header-h); padding: 8px 10px; flex-wrap: wrap; }
  .header-meta { justify-content: flex-start; }
}
