/* ============================================================
   短线复盘台 · 漆盘（Lacquer Board）设计系统
   灵感：券商营业厅行情大屏的窄体数字 + 漆器的墨、朱、青瓷、黄铜。
   朱砂 = 上涨，青瓷 = 下跌，黄铜 = 品牌与选中态。
   ============================================================ */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/barlow-condensed-500.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-700.woff2) format("woff2"); }

:root {
  /* 墨 */
  --bg: #110f0d;
  --bg-2: #161310;
  --panel: #1a1713;
  --panel-2: #211d18;
  --inset: #14110e;
  --line: #342d26;
  --line-soft: #29231e;
  --line-strong: #4a4037;
  /* 纸 */
  --text: #f3ece2;
  --text-2: #d8cdbf;
  --muted: #ab9d8c;
  --dim: #8c7f71;
  /* 朱砂 / 青瓷 / 黄铜 / 石青 */
  --red: #f2543d;
  --red-2: #ff8069;
  --green: #3dbb8c;
  --green-2: #74d8ae;
  --gold: #c9a35a;
  --gold-2: #e4c68c;
  --blue: #8aaccc;
  --purple: #b79cc4;
  --cyan: #74bfc6;

  --radius: 12px;
  --radius-tile: 8px;
  --radius-chip: 4px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);

  --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", serif;
  --num-font: "Barlow Condensed", "DIN Alternate", "Bahnschrift", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(201, 163, 90, .32); color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #3a322b; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* 漆面：一层极淡的颗粒 + 顶部一束黄铜反光 */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 18% -12%, rgba(201, 163, 90, .075), transparent 62%),
    radial-gradient(900px 600px at 100% 0%, rgba(242, 84, 61, .035), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .88 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.loading-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 200;
  background: var(--gold);
  transition: width .3s ease, opacity .3s;
  opacity: 0;
}
.loading-bar.on { opacity: 1; }

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; gap: 28px;
  height: 66px; padding: 0 max(28px, calc((100vw - 1540px) / 2 + 28px));
  background: rgba(17, 15, 13, .88);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
/* 朱砂印章 */
.brand-mark {
  width: 34px; height: 34px; border-radius: 5px; display: grid; place-items: center;
  color: #fff5ea; font-family: var(--serif); font-weight: 900; font-size: 19px; line-height: 1;
  background: #c8402e;
  box-shadow: inset 0 0 0 2px #c8402e, inset 0 0 0 3.5px rgba(255, 240, 225, .55);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .06em; }
.brand-text em { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .08em; color: var(--dim); font-weight: 500; margin-top: 3px; }
.tabs { display: flex; gap: 4px; height: 100%; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  position: relative; display: flex; align-items: center; padding: 0 14px;
  color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; letter-spacing: .04em;
  transition: color .15s;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); font-weight: 600; }
.tabs a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--gold);
}
.top-right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.status-pill {
  font-size: 13px; padding: 3px 11px; border-radius: 999px; color: var(--muted);
  border: 1px solid var(--line); white-space: nowrap; letter-spacing: .04em;
}
.status-pill.live { color: var(--red-2); border-color: rgba(242, 84, 61, .4); background: rgba(242, 84, 61, .08); }
.status-pill.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.clock { font-family: var(--num-font); font-weight: 500; font-size: 19px; letter-spacing: .04em; color: var(--text-2); min-width: 50px; text-align: right; font-variant-numeric: tabular-nums; }
.icon-btn {
  width: 36px; height: 36px; padding: 8px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--muted); transition: color .15s, background .15s, border-color .15s;
}
.icon-btn svg { width: 100%; height: 100%; display: block; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ 布局 ============ */
.view { max-width: 1540px; margin: 0 auto; padding: 34px 28px 64px; }
.footer {
  max-width: 1540px; margin: 0 auto; padding: 22px 28px 34px;
  color: var(--dim); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
}
.footer .dot { opacity: .5; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; margin-bottom: 16px; }
.section { margin-bottom: 16px; }
.grid.section > .card { margin-bottom: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.section-title h2 { margin: 0; font-size: 17px; }
.section-title .sub { color: var(--dim); font-size: 13px; }

/* ============ 卡片 ============ */
.card {
  position: relative; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--panel);
  padding: 20px 22px; overflow: hidden; min-width: 0;
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(228, 198, 140, .14) 30%, rgba(228, 198, 140, .14) 70%, transparent);
}
.card.flush { padding: 0; }
.card.flush > .card-head { padding: 18px 22px 0 !important; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: .03em; color: var(--text); }
.card-head .hint { color: var(--dim); font-size: 13px; }
.card-head .right { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; flex-wrap: wrap; }
.card-head .right a.hint { color: var(--gold-2); }
.card-head .right a.hint:hover { color: var(--text); }

/* 行情板网格：发丝线分隔的数据格，而不是一格一个框 */
.index-grid, .metric-grid, .history-metrics, .summary-strip, .stat-grid, .board-stats {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--inset); gap: 0 !important;
}
.index-card, .metric, .history-metric, .summary-cell, .stat-box, .board-stat {
  border: 0 !important; border-radius: 0 !important; background: transparent !important;
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
}

/* ============ 市场温度（全站唯一的“大字”） ============ */
.temp-card { display: flex; flex-direction: column; min-height: 300px; }
.temp-main { display: flex; align-items: center; gap: 4px; flex: 1; }
.gauge { width: 220px; height: 200px; flex: 0 0 auto; }
.temp-copy { flex: 1; min-width: 0; }
.temp-copy .phase { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .08em; color: var(--text); }
.temp-copy .score {
  font-family: var(--num-font); font-size: 104px; line-height: .9; font-weight: 600; color: var(--gold-2);
  letter-spacing: -.01em; margin: 6px 0 4px; font-variant-numeric: tabular-nums;
}
.temp-copy .score span { font-size: 22px; color: var(--dim); font-weight: 500; letter-spacing: .02em; margin-left: 4px; }
.temp-copy .effect { margin-top: 8px; font-size: 14.5px; color: var(--text-2); line-height: 1.7; max-width: 34em; }
.temp-copy .position {
  margin-top: 14px; display: inline-flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--muted);
  padding: 6px 12px; border: 1px solid rgba(201, 163, 90, .35); border-radius: 6px; background: rgba(201, 163, 90, .06);
}
.temp-copy .position b { color: var(--gold-2); font-family: var(--num-font); font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.reasons { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.reasons span { font-size: 13px; color: var(--muted); position: relative; padding-left: 12px; }
.reasons span::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 1px; background: var(--gold); opacity: .7; }

/* ============ 指数（行情牌） ============ */
.index-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.index-card { padding: 14px 16px 13px; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; }
.index-card .name { font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.index-card .name > span:first-child { color: var(--text-2); font-weight: 500; }
.index-card .value { font-family: var(--num-font); font-size: 34px; font-weight: 600; letter-spacing: .01em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.index-card .chg { font-family: var(--num-font); font-size: 16px; font-weight: 500; display: flex; gap: 10px; letter-spacing: .02em; }
.index-card .amt { color: var(--dim); font-size: 12.5px; font-family: var(--sans); }
.up { color: var(--red) !important; }
.down { color: var(--green) !important; }
.flat { color: var(--muted) !important; }
.mono { font-family: var(--num-font); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ============ 涨跌家数 ============ */
.breadth-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.breadth-big { font-family: var(--num-font); font-size: 38px; font-weight: 600; line-height: 1.1; }
.breadth-big small { font-size: 13px; color: var(--dim); font-weight: 500; margin-left: 6px; }
.breadth-bar { display: flex; height: 10px; border-radius: 2px; overflow: hidden; margin: 18px 0 10px; background: var(--line); gap: 2px; }
.breadth-bar i { display: block; height: 100%; }
.breadth-bar i:nth-child(1) { background: var(--red) !important; }
.breadth-bar i:nth-child(2) { background: #5a5048 !important; }
.breadth-bar i:nth-child(3) { background: var(--green) !important; }
.breadth-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.breadth-legend b { font-family: var(--num-font); }
.sub-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.sub-stat { font-size: 13px; color: var(--muted); }
.sub-stat b { display: block; font-family: var(--num-font); font-size: 26px; font-weight: 600; color: var(--text); margin: 2px 0; letter-spacing: .02em; }
.sub-stat .hint { display: block; }

/* ============ 情绪指标 ============ */
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { padding: 13px 16px 12px; min-height: 92px; }
.metric .k { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.metric .v { font-family: var(--num-font); font-size: 34px; font-weight: 600; line-height: 1.15; margin-top: 2px; letter-spacing: .01em; }
.metric .v small { font-size: 16px; color: var(--dim); font-weight: 500; margin-left: 2px; }
.metric .s { font-size: 12.5px; color: var(--dim); margin-top: 1px; }

/* ============ 主线 ============ */
.mainline-list { display: flex; flex-direction: column; }
.mainline-item {
  padding: 14px 4px 14px 0; border-bottom: 1px solid var(--line-soft); cursor: pointer;
  transition: background-color .2s ease;
}
.mainline-list .mainline-item:first-child { padding-top: 2px; }
.mainline-item:last-child { border-bottom: 0; }
.card > .mainline-item { border-radius: 0; }
.mainline-item:hover { background: linear-gradient(90deg, rgba(201, 163, 90, .07), transparent 80%); }
.mainline-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ml-rank { font-family: var(--num-font); color: var(--gold); font-size: 20px; font-weight: 600; width: 22px; line-height: 1; }
.ml-name { font-weight: 600; font-size: 16px; }
.ml-chg { font-family: var(--num-font); font-size: 19px; font-weight: 600; margin-left: auto; letter-spacing: .02em; }
.ml-meta { display: flex; gap: 14px; color: var(--dim); font-size: 13px; margin-top: 4px; flex-wrap: wrap; }
.mainline-list .ml-meta, .mainline-list .ml-ladder { padding-left: 32px; }
.ml-ladder { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip {
  display: inline-flex; align-items: center; font-size: 12px; line-height: 1.5; padding: 2px 8px; border-radius: var(--radius-chip);
  border: 1px solid var(--line); color: var(--muted); background: transparent; white-space: nowrap;
}
.chip:empty { display: none; }
.chip.gold { color: var(--gold-2); border-color: rgba(201, 163, 90, .38); background: rgba(201, 163, 90, .08); }
.chip.red { color: var(--red-2); border-color: rgba(242, 84, 61, .38); background: rgba(242, 84, 61, .08); }
.chip.blue { color: var(--blue); border-color: rgba(138, 172, 204, .32); background: rgba(138, 172, 204, .07); }
.chip.green { color: var(--green-2); border-color: rgba(61, 187, 140, .34); background: rgba(61, 187, 140, .07); }
.heat { display: inline-flex; align-items: center; gap: 6px; }
.heat-bar { width: 40px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.heat-bar i { display: block; height: 100%; background: var(--gold); }

/* ============ 结论 / 清单 ============ */
.action-list { display: flex; flex-direction: column; }
.action-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.action-item:first-child { padding-top: 0; }
.action-item:last-child { border-bottom: 0; }
.action-item .ico {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 4px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 14px; font-weight: 900; margin-top: 1px;
}
.action-item .ico.hot { color: #fff3ea; background: var(--red); }
.action-item .ico.cool { color: #0f241b; background: var(--green); }
.action-item .ico.info { color: var(--blue); background: rgba(138, 172, 204, .14); box-shadow: inset 0 0 0 1px rgba(138, 172, 204, .3); }
.action-item .ico.gold { color: #1a140c; background: var(--gold); }
.action-item b { display: block; font-size: 15px; font-weight: 600; }
.action-item p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.checklist { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; user-select: none; }
.check-item input {
  appearance: none; width: 17px; height: 17px; border: 1px solid var(--line-strong); border-radius: 3px; margin: 3px 0 0;
  flex: 0 0 auto; position: relative; background: var(--inset); transition: background .15s, border-color .15s;
}
.check-item input:checked { background: var(--gold); border-color: var(--gold); }
.check-item input:checked::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 9px; border: solid #1a140c; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-item input:checked + span { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--line-strong); }

/* ============ 图表 ============ */
.chart { width: 100%; height: 300px; }
.chart-lg { height: 560px; }
.chart-sm { height: 180px; }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--dim); font-size: 14px; border: 1px dashed var(--line); border-radius: var(--radius-tile); }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-tile); border: 1px solid var(--line-soft); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.data th {
  text-align: left; font-weight: 500; color: var(--dim); font-size: 12.5px; letter-spacing: .04em;
  padding: 11px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
table.data td { padding: 12px 12px; border-bottom: 1px solid var(--line-soft); color: var(--text-2); white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: rgba(201, 163, 90, .05); }
table.data tbody tr.clickable { cursor: pointer; }
table.data .num { text-align: right; font-family: var(--num-font); font-size: 16.5px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
table.data th.num { font-family: var(--sans); font-size: 12.5px; letter-spacing: .04em; }
table.data .name { color: var(--text); font-weight: 600; }
table.data .sub { color: var(--dim); font-size: 12px; font-weight: 400; }
table.data td.mono { font-size: 16px; }

/* ============ 按钮 / 表单 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 8px 15px; border-radius: 7px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; letter-spacing: .03em;
  transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn:hover { border-color: #6a5c4f; color: var(--text); background: var(--panel-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #1c150b; border-color: var(--gold); font-weight: 600; }
.btn-primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: #1c150b; }
.btn-danger { color: var(--red-2); border-color: rgba(242, 84, 61, .45); background: rgba(242, 84, 61, .06); }
.btn-danger:hover { color: #fff; background: var(--red); border-color: var(--red); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; border-radius: 6px; }
.btn-xs { min-height: 28px; padding: 3px 9px; font-size: 12.5px; border-radius: 5px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; font-size: 13px; font-weight: 500; }
.seg button.active { background: rgba(201, 163, 90, .14); color: var(--gold-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.field input, .field select, .field textarea, .field-select, #calc-risk {
  background: var(--inset) !important; border: 1px solid var(--line) !important; color: var(--text) !important;
  border-radius: 7px; padding: 9px 11px; outline: none; font-size: 15px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input[readonly] { color: var(--muted) !important; background: transparent !important; border-style: dashed !important; }
.field-select { width: auto; padding: 6px 30px 6px 11px; font-size: 14px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%) !important;
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52% !important; background-size: 5px 5px !important; background-repeat: no-repeat !important;
}
#calc-risk { width: 80px !important; padding: 6px 8px; font-family: var(--num-font); font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus, .field-select:focus, #calc-risk:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(201, 163, 90, .14); }
.field input[type=number], #calc-out b { font-family: var(--num-font); font-size: 17px; letter-spacing: .02em; }
.field textarea { min-height: 84px; resize: vertical; line-height: 1.65; }
.field-row { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 12px; }
.form-grid { display: grid; gap: 14px; }
.hint { color: var(--dim); font-size: 13px; line-height: 1.65; }
.inline { display: flex; align-items: center; gap: 8px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.switch:last-child { border-bottom: 0; }
.switch .label b { display: block; font-size: 15px; font-weight: 600; }
.switch .label span { font-size: 13px; color: var(--dim); }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--inset); border: 1px solid var(--line-strong); position: relative; transition: .2s; flex: 0 0 auto; cursor: pointer; }
.switch input:checked { background: var(--gold); border-color: var(--gold); }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked::after { left: 20px; background: #1c150b; }
input[type=range] { accent-color: var(--gold); }
input[type=date], input[type=time] { color-scheme: dark; }

/* ============ 空状态 / 加载 ============ */
.empty { padding: 40px 18px; text-align: center; color: var(--dim); }
.empty .big { font-size: 30px; margin-bottom: 8px; color: var(--gold); opacity: .8; }
.empty p { margin: 6px auto 16px; font-size: 14px; max-width: 34em; line-height: 1.7; }
.empty h3 { font-family: var(--serif); font-size: 19px; letter-spacing: .04em; }
.skeleton-wrap { display: flex; flex-direction: column; gap: 16px; }
.skeleton {
  border-radius: var(--radius); border: 1px solid var(--line-soft);
  background: linear-gradient(100deg, var(--panel) 30%, #241f1a 50%, var(--panel) 70%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ 页面标题 ============ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-family: var(--serif); font-size: 40px; font-weight: 700; letter-spacing: .08em; line-height: 1.15; }
.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; max-width: 62em; }

/* ============ 历史页 ============ */
.history-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; }
.history-layout > * { min-width: 0; }
.history-layout .card { min-width: 0; }
.history-layout .table-wrap { max-width: 100%; }
.history-list { padding: 14px 10px !important; max-height: 76vh; overflow: auto; position: sticky; top: 84px; }
.history-list .card-head { padding: 2px 8px 10px !important; margin: 0 !important; }
.history-date {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  border: 0; border-left: 2px solid transparent; background: transparent; color: var(--muted);
  padding: 8px 10px; border-radius: 0 6px 6px 0; text-align: left; font-size: 13px;
}
.history-date:hover { background: var(--panel-2); color: var(--text-2); }
.history-date.active { border-left-color: var(--gold); background: rgba(201, 163, 90, .09); color: var(--gold-2); }
.history-date .d { font-family: var(--num-font); font-size: 18px; font-weight: 600; letter-spacing: .03em; }
.history-date .v { font-size: 12px; color: var(--dim); }
.history-date .v b { color: var(--text-2); font-family: var(--num-font); font-size: 15px; font-weight: 600; }
.history-hero { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.history-score { font-family: var(--num-font); font-size: 76px; font-weight: 600; line-height: .95; color: var(--gold-2); }
.history-score small { font-size: 18px; color: var(--dim); font-weight: 500; }
.history-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.history-metric { padding: 12px 16px; }
.history-metric .k { font-size: 12.5px; color: var(--dim); }
.history-metric .v { font-family: var(--num-font); font-size: 25px; font-weight: 600; margin-top: 2px; letter-spacing: .02em; }
@media (max-width: 860px) {
  .history-layout { grid-template-columns: 1fr; }
  .history-list { max-height: 210px; position: static; }
  .history-metrics { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 板块页 ============ */
.board-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.board-stat { padding: 14px 18px; }
.board-stat .k { font-size: 13px; color: var(--dim); }
.board-stat .v { font-family: var(--num-font); font-size: 30px; font-weight: 600; margin-top: 2px; line-height: 1.2; letter-spacing: .02em; }
.board-stat .s { font-size: 13px; color: var(--muted); line-height: 1.6; }
.drawer .board-stat { background: var(--inset) !important; border: 1px solid var(--line) !important; border-radius: var(--radius-tile) !important; box-shadow: none; }
.drawer .board-stat .v { font-family: var(--sans); font-weight: 600; }

/* ============ 持仓（卡片式，保留） ============ */
.pos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pos-card { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); padding: 16px; cursor: pointer; transition: border-color .15s; }
.pos-card:hover { border-color: var(--line-strong); }
.pos-top { display: flex; align-items: flex-start; gap: 8px; }
.pos-name { font-size: 16px; font-weight: 600; }
.pos-code { color: var(--dim); font-size: 13px; font-family: var(--num-font); }
.pos-badge { margin-left: auto; }
.pos-pnl { font-family: var(--num-font); font-size: 34px; font-weight: 600; line-height: 1.1; margin: 10px 0 2px; }
.pos-pnl small { font-size: 13px; color: var(--dim); font-weight: 500; margin-left: 6px; }
.pos-meta { display: flex; gap: 12px; color: var(--dim); font-size: 13px; flex-wrap: wrap; }
.line-bar { position: relative; height: 5px; background: linear-gradient(90deg, var(--green), #3a3a30 45%, #4a3328 55%, var(--red)); border-radius: 3px; margin: 12px 0 5px; }
.line-bar i { position: absolute; top: -3px; width: 3px; height: 11px; background: var(--text); border-radius: 2px; transform: translateX(-50%); }
.line-bar-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
.pos-checks { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.checkline { display: flex; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.checkline .dot { width: 6px; height: 6px; border-radius: 1px; margin-top: .55em; flex: 0 0 auto; background: var(--dim); }
.checkline.bad .dot { background: var(--red); }
.checkline.warn .dot { background: var(--gold); }
.checkline.ok .dot { background: var(--green); }
.checkline.info .dot { background: var(--blue); }
.pos-action { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: var(--radius-chip); letter-spacing: .03em; }
.pos-action.good { color: var(--green-2); background: rgba(61, 187, 140, .12); }
.pos-action.warm { color: var(--gold-2); background: rgba(201, 163, 90, .13); }
.pos-action.bad { color: #fff1ea; background: rgba(242, 84, 61, .78); }
.pos-action.neutral { color: var(--muted); background: rgba(255, 245, 230, .06); }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.summary-cell { padding: 16px 20px; }
.summary-cell .k { font-size: 13px; color: var(--muted); }
.summary-cell .v { font-family: var(--num-font); font-size: 38px; font-weight: 600; line-height: 1.15; margin: 2px 0; letter-spacing: .01em; }
.summary-cell .hint { font-size: 12.5px; }

/* ============ 个股 ============ */
.stock-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.stock-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.stock-title h1 { margin: 0; font-family: var(--serif); font-size: 38px; letter-spacing: .06em; line-height: 1.2; }
.stock-title .code { color: var(--dim); font-family: var(--num-font); font-size: 20px; letter-spacing: .06em; }
.stock-price { display: flex; align-items: baseline; gap: 14px; margin-top: 4px; }
.stock-price .p { font-family: var(--num-font); font-size: 58px; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.stock-price .c { font-family: var(--num-font); font-size: 21px; font-weight: 500; letter-spacing: .02em; }
.stock-side { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.kv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kv { background: var(--inset); border: 1px solid var(--line-soft); border-radius: var(--radius-tile); padding: 9px 12px; }
.kv .k { font-size: 12.5px; color: var(--dim); }
.kv .v { font-family: var(--num-font); font-size: 19px; font-weight: 600; margin-top: 1px; letter-spacing: .02em; }
.stock-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, .85fr); gap: 16px; align-items: start; }
.side-stack { display: flex; flex-direction: column; gap: 16px; }
.plan-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.level-box { border: 1px solid var(--line-soft); border-radius: var(--radius-tile); padding: 10px 12px; background: var(--inset); }
.level-box .k { font-size: 12.5px; color: var(--dim); }
.level-box .v { font-family: var(--num-font); font-size: 26px; font-weight: 600; margin-top: 1px; letter-spacing: .02em; }
.level-box .s { font-size: 12px; color: var(--muted); }
.signal-list { display: flex; flex-direction: column; gap: 7px; }
.signal { display: flex; gap: 9px; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.signal .dot { width: 6px; height: 6px; border-radius: 1px; margin-top: .6em; flex: 0 0 auto; background: var(--dim); }
.signal.bull .dot { background: var(--red); }
.signal.bear .dot { background: var(--green); }
.signal.warn .dot { background: var(--gold); }
.news-list { display: flex; flex-direction: column; }
.news-item { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.news-item:last-child { border-bottom: 0; }
.news-item .t { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.news-item .m { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; margin-top: 5px; }
.sector-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-chip); font-size: 12.5px; border: 1px solid var(--line); color: var(--muted); }
.sector-pill.main { color: var(--gold-2); border-color: rgba(201, 163, 90, .38); background: rgba(201, 163, 90, .08); }
.rule-warn { border: 1px solid rgba(242, 84, 61, .4); border-left: 3px solid var(--red); background: rgba(242, 84, 61, .07); color: var(--red-2); padding: 10px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 16px; }
#calc-out { color: var(--text-2) !important; font-size: 14px !important; padding: 10px 12px; border-radius: var(--radius-tile); background: var(--inset); border: 1px dashed var(--line); }

/* ============ 交易页 ============ */
.subtabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.subtabs button {
  border: 0; background: transparent; color: var(--muted); padding: 11px 16px; font-size: 15px; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; letter-spacing: .04em;
}
.subtabs button:hover { color: var(--text); }
.subtabs button.active { color: var(--text); font-weight: 600; border-bottom-color: var(--gold); }
.plan-row { display: grid; grid-template-columns: 1.4fr .9fr .9fr .9fr .8fr .8fr; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); align-items: center; font-size: 13.5px; }
.plan-row.head { color: var(--dim); font-size: 12px; background: var(--panel-2); }
.plan-row .name b { font-size: 14px; }
.plan-row .name span { color: var(--dim); font-family: var(--num-font); font-size: 13px; margin-left: 5px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.stat-box { padding: 16px 20px; }
.stat-box .k { color: var(--muted); font-size: 13px; }
.stat-box .v { font-family: var(--num-font); font-size: 40px; font-weight: 600; margin-top: 2px; line-height: 1.15; }
.stat-box .s { color: var(--dim); font-size: 12.5px; }
.emo-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.emo-scale { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius-tile); background: var(--inset); }
.emo-scale label { font-size: 13.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: baseline; }
.emo-scale label b { font-family: var(--num-font); font-size: 26px; font-weight: 600; color: var(--gold-2); line-height: 1; }
.emo-scale input[type=range] { accent-color: var(--gold); width: 100%; }
.emo-history { display: flex; flex-direction: column; gap: 8px; }
.emo-row { display: flex; gap: 10px; align-items: center; font-size: 13px; border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.emo-row .date { font-family: var(--num-font); font-size: 16px; color: var(--muted); width: 54px; flex: 0 0 auto; }
.emo-row .bars { display: flex; gap: 4px; flex: 1; }
.emo-row .mini { height: 5px; border-radius: 1px; background: var(--line); flex: 1; overflow: hidden; }
.emo-row .mini i { display: block; height: 100%; }
.emo-row .mini:nth-child(1) i, .emo-row .mini:nth-child(2) i { background: var(--gold) !important; }
.emo-row .mini:nth-child(3) i { background: var(--blue) !important; }
.emo-row .mini:nth-child(4) i { background: var(--purple) !important; }

/* ============ AI ============ */
.ai-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.ai-side { display: flex; flex-direction: column; gap: 16px; }
.ai-status { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); }
.ai-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(61, 187, 140, .18); }
.ai-status .dot.off { background: var(--dim); box-shadow: 0 0 0 3px rgba(140, 127, 113, .15); }
.markdown { font-size: 15px; line-height: 1.85; color: var(--text-2); max-width: 46em; }
.markdown h1, .markdown h2, .markdown h3 { color: var(--text); line-height: 1.4; margin: 26px 0 10px; font-family: var(--serif); letter-spacing: .04em; }
.markdown h1 { font-size: 26px; margin-top: 0; }
.markdown h2 { font-size: 20px; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.markdown h2::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red); border-radius: 1px; margin-right: 10px; vertical-align: .18em; }
.markdown h3 { font-size: 17px; }
.markdown p { margin: 9px 0; }
.markdown ul, .markdown ol { padding-left: 22px; margin: 9px 0; }
.markdown li { margin: 4px 0; }
.markdown li::marker { color: var(--gold); }
.markdown strong { color: var(--text); }
.markdown code { background: rgba(255, 245, 230, .07); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.markdown blockquote { margin: 14px 0; padding: 8px 14px; border-left: 2px solid var(--gold); background: rgba(201, 163, 90, .06); color: var(--muted); }
.markdown table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; display: block; overflow-x: auto; }
.markdown th, .markdown td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.markdown th { background: var(--panel-2); color: var(--muted); font-weight: 500; }
.markdown hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.review-box { max-height: 72vh; overflow: auto; padding-right: 8px; }
.prompt-box { background: var(--inset); border: 1px solid var(--line); border-radius: var(--radius-tile); padding: 14px; font-family: "Cascadia Code", "SF Mono", Consolas, monospace; font-size: 12.5px; line-height: 1.7; color: var(--muted); max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.ai-side .form-grid .btn[data-review] { font-family: var(--num-font); font-size: 16px; letter-spacing: .03em; }
.ai-side .form-grid .btn[data-review] .hint { font-family: var(--sans); font-size: 12px; }

/* ============ 弹层 / 抽屉 ============ */
.modal-backdrop, .drawer-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 6, 5, .72);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fadeIn .16s ease;
}
.drawer-backdrop { justify-content: flex-end; padding: 0; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  width: min(640px, 96vw); max-height: 90vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  animation: popIn .2s ease;
}
@keyframes popIn { from { transform: translateY(10px); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.modal-head h3 { margin: 0; font-family: var(--serif); font-size: 21px; letter-spacing: .06em; }
.modal-head .x, .drawer .x {
  border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 22px; line-height: 1;
  width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; padding: 0;
}
.modal-head .x:hover, .drawer .x:hover { color: var(--text); background: var(--panel-2); border-color: var(--line); }
.modal-body { padding: 20px 22px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line-soft); position: sticky; bottom: 0; background: var(--panel); }
.modal-foot .spacer { flex: 1; }
.modal .card { background: var(--inset); }
.drawer {
  width: min(820px, 96vw); height: 100%; overflow: auto; background: var(--bg-2);
  border-left: 1px solid var(--line); box-shadow: -30px 0 80px rgba(0, 0, 0, .5);
  animation: slideIn .24s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slideIn { from { transform: translateX(40px); opacity: .5; } }
.drawer-head { padding: 24px 26px 18px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: rgba(22, 19, 16, .96); backdrop-filter: blur(8px); z-index: 2; }
.drawer-head h2 { font-family: var(--serif); letter-spacing: .06em; font-size: 28px !important; }
.drawer-head .mono { font-size: 22px !important; font-weight: 600; }
.drawer-body { padding: 20px 26px 34px; }
.drawer .x { position: absolute; top: 18px; right: 20px; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 300;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line-strong); border-left: 3px solid var(--gold); border-radius: 8px;
  padding: 11px 18px; font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-left-color: var(--red); color: var(--red-2); }

/* ============ 搜索 ============ */
.search-wrap { position: relative; flex: 1; min-width: 240px; max-width: 460px; }
.search-wrap input {
  width: 100%; background: var(--inset); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 11px 14px 11px 40px; outline: none; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.search-wrap input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 163, 90, .14); }
.search-wrap .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); width: 16px; height: 16px; }
.search-drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 8px; z-index: 20; overflow: hidden; box-shadow: var(--shadow); }
.search-drop button { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: transparent; color: var(--text-2); padding: 10px 14px; text-align: left; font-size: 14px; }
.search-drop button:hover { background: rgba(201, 163, 90, .09); color: var(--text); }
.search-drop .code { color: var(--dim); font-family: var(--num-font); font-size: 15px; }
.search-drop .tag { margin-left: auto; font-size: 11.5px; color: var(--dim); text-transform: uppercase; }

/* 旧版行内小字号统一抬到可读尺寸 */
[style*="font-size:10px"], [style*="font-size: 10px"],
[style*="font-size:11px"], [style*="font-size: 11px"],
[style*="font-size:12px"], [style*="font-size: 12px"] { font-size: 13px !important; }
[style*="border-top:1px dashed var(--line)"] { border-top: 1px solid var(--line-soft) !important; }

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

/* ============ 移动端 ============ */
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stock-layout { grid-template-columns: 1fr; }
  .ai-layout { grid-template-columns: 1fr; }
  .index-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .view { padding: 22px 16px 36px; }
  .g2, .g3, .g4, .pos-grid { grid-template-columns: 1fr; }
  .summary-strip, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .index-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-text em { display: none; }
  .topbar { gap: 12px; padding: 0 16px; }
  .clock { display: none; }
  .kv-grid { grid-template-columns: repeat(2, 1fr); }
  .emo-form { grid-template-columns: 1fr 1fr; }
  .plan-row { grid-template-columns: 1.4fr 1fr 1fr .8fr; }
  .plan-row > :nth-child(5), .plan-row > :nth-child(6) { display: none; }
  .page-head h1 { font-size: 32px; }
  .card { padding: 18px 16px; }
  .card.flush > .card-head { padding: 16px 16px 0 !important; }
}
@media (max-width: 680px) {
  body { padding-bottom: 76px; font-size: 15px; }
  .topbar { height: 56px; padding: 0 14px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(17, 15, 13, .97); }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  .brand-text { font-size: 15px; }
  .tabs {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); top: auto; height: 56px; z-index: 90;
    background: rgba(33, 29, 24, .96); border: 1px solid var(--line); border-radius: 14px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
    justify-content: space-around; padding: 0 4px; gap: 0;
  }
  .tabs a { padding: 0 8px; font-size: 13.5px; }
  .tabs a.active { color: var(--gold-2); }
  .tabs a.active::after { left: 50%; right: auto; width: 16px; margin-left: -8px; bottom: 8px; height: 2px; border-radius: 2px; }
  .status-pill { font-size: 12px; padding: 2px 8px; }
  .icon-btn { width: 32px; height: 32px; padding: 7px; }
  .view { padding: 16px 12px 24px; }
  .footer { display: none; }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 28px; }
  .temp-main { flex-direction: column; align-items: stretch; }
  .gauge { width: 100%; height: 180px; }
  .temp-copy { text-align: center; }
  .temp-copy .score { font-size: 84px; }
  .temp-copy .effect { margin-left: auto; margin-right: auto; }
  .reasons { justify-content: center; }
  .index-grid { grid-template-columns: repeat(2, 1fr); }
  .index-card .value { font-size: 28px; }
  .breadth-big { font-size: 30px; }
  .metric .v { font-size: 28px; }
  .pos-pnl { font-size: 28px; }
  .summary-cell .v, .stat-box .v { font-size: 30px; }
  .stock-title h1 { font-size: 28px; }
  .stock-price .p { font-size: 44px; }
  .stock-side { margin-left: 0; }
  .chart-lg { height: 400px; }
  .modal { width: 98vw; }
  .drawer { width: 100vw; }
  .board-stats { grid-template-columns: 1fr; }
  .field-row { grid-auto-flow: row; grid-template-columns: 1fr; }
  .toast { bottom: 84px; }
}
