:root {
  --bg: #080b12;
  --bg-soft: #0b1019;
  --panel: rgba(15, 22, 35, 0.78);
  --panel-solid: #0f1623;
  --panel-raised: #121b2b;
  --line: rgba(160, 180, 210, 0.14);
  --line-strong: rgba(170, 190, 220, 0.26);
  --text: #e9eef8;
  --text-soft: #c9d4e6;
  --muted: #94a2ba;
  --faint: #6f7e96;
  --gold: #d9b777;
  --gold-2: #f2d69f;
  --gold-soft: rgba(217, 183, 119, 0.14);
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, 0.12);
  --green: #3dd6a3;
  --green-soft: rgba(61, 214, 163, 0.11);
  --blue: #74a9ff;
  --blue-soft: rgba(116, 169, 255, 0.12);
  --amber: #e6b45c;
  --amber-soft: rgba(230, 180, 92, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --font-sans: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% -10%, rgba(217, 183, 119, 0.10), transparent 31rem),
    radial-gradient(circle at 8% 30%, rgba(61, 107, 180, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16.2px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(160, 180, 210, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 180, 210, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

::selection {
  background: rgba(217, 183, 119, 0.3);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

.wrap {
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: -9999px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #10131a;
  font-weight: 700;
}

.skip-link:focus {
  left: 24px;
}

.ambient {
  position: fixed;
  top: 0;
  right: 0;
  z-index: -1;
  width: 44vw;
  height: 44vw;
  min-width: 380px;
  min-height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 183, 119, 0.08), transparent 65%);
  filter: blur(24px);
  pointer-events: none;
}

/* ---------- top bar ---------- */

.topbar {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.72);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 183, 119, 0.48);
  border-radius: 50%;
  color: var(--gold-2);
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1;
  box-shadow: inset 0 0 0 4px rgba(217, 183, 119, 0.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.19em;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.025);
}

.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 183, 119, 0.12);
}

.status-pill.live i {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14);
  animation: pulse 1.8s ease-in-out infinite;
}

.status-pill.pre i {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(116, 169, 255, 0.13);
}

.status-pill.closed i {
  background: var(--gold);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.topbar-divider {
  width: 1px;
  height: 16px;
  background: var(--line);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.icon-btn svg {
  width: 14px;
  height: 14px;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.icon-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.icon-btn.updating svg {
  animation: icon-spin 1s linear infinite;
}

@keyframes icon-spin {
  to { transform: rotate(360deg); }
}

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 25, 0.55);
}

.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42px;
  background: linear-gradient(90deg, transparent, rgba(8, 11, 18, 0.92));
  pointer-events: none;
}

.ticker-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.ticker-track::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex: 0 0 auto;
  padding: 12px 20px;
  border-right: 1px solid var(--line);
  font-size: 13.5px;
  white-space: nowrap;
}

.ticker-item:first-child {
  padding-left: 0;
}

.ticker-name {
  color: var(--faint);
}

.ticker-price {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 14px;
}

.ticker-change {
  font-family: var(--font-mono);
  font-size: 13px;
}

.up { color: var(--red); }
.down { color: var(--green); }
.flat { color: var(--muted); }

/* ---------- workbench navigation ---------- */

.workbench-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 26px;
}

.workbench-sidebar {
  position: sticky;
  top: 20px;
  min-width: 0;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.workbench-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.workbench-title span {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
}

.workbench-title b {
  margin-top: 5px;
  color: var(--text-soft);
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: 0.08em;
}

.workbench-tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin-top: 24px;
}

.workbench-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 9px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0 7px 7px 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.workbench-tabs button::before {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid var(--faint);
  border-radius: 50%;
  flex: 0 0 auto;
}

.workbench-tabs button:hover {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
}

.workbench-tabs button.active {
  border-left-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-2);
}

.workbench-tabs button.active::before {
  border-color: var(--gold);
  background: var(--gold);
}

.workbench-tabs em {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
}

.workbench-tabs button.active em {
  color: rgba(242, 214, 159, 0.68);
}

.workbench-tabs button.has-alert::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 1px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 7px rgba(255, 107, 107, 0.65);
}

.workbench-meta {
  margin-top: 24px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  white-space: normal;
}

.lan-access {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding: 8px 9px;
  border: 1px solid rgba(217, 183, 119, 0.2);
  border-radius: 7px;
  background: rgba(217, 183, 119, 0.06);
  cursor: pointer;
}

.lan-access[hidden] {
  display: none;
}

.lan-access span {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.lan-access code {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.5;
  word-break: break-all;
}

.lan-access:hover {
  border-color: rgba(217, 183, 119, 0.38);
}

.workspace-main {
  min-width: 0;
}

.workspace-main .wrap {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.workspace-main .hero {
  padding-top: 38px;
}

.view-hidden {
  display: none !important;
}

/* ---------- single-module views ---------- */

.view-single {
  padding-top: 34px;
}

.view-single .panel {
  max-width: 1040px;
}

.view-single .calendar-panel {
  max-width: 840px;
}

/* ---------- overview opinion preview ---------- */

.opinion-preview {
  padding-top: 16px;
}

.opinion-preview-panel {
  padding: 18px 22px 16px;
}

.opinion-preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.opinion-preview-item {
  min-width: 0;
  padding: 12px 18px 0 0;
}

.opinion-preview-item + .opinion-preview-item {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.opinion-preview-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.opinion-preview-item h3 {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opinion-preview-item h3 a:hover {
  color: var(--gold-2);
}

.opinion-preview-item p {
  margin: 5px 0 0;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: clamp(34px, 5vw, 82px);
  align-items: center;
  padding-top: 62px;
  padding-bottom: 50px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 183, 119, 0.1);
}

.eyebrow-sep {
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.1vw, 72px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

.hero h1 .accent {
  color: var(--gold-2);
  font-style: italic;
}

.hero-summary {
  max-width: 790px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.9;
}

.snapshot-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.6;
}

.snapshot-note b {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.snapshot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 183, 119, 0.1);
}

.snapshot-sep {
  width: 1px;
  height: 11px;
  background: var(--line);
}

.auto-refresh-btn {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.auto-refresh-btn:hover {
  border-color: rgba(217, 183, 119, 0.35);
  background: var(--gold-soft);
}

.auto-refresh-btn.paused {
  color: var(--muted);
  border-color: var(--line);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14.2px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}

.primary-btn {
  border: 1px solid rgba(242, 214, 159, 0.55);
  background: var(--gold);
  color: #12151c;
}

.primary-btn:hover {
  transform: translateY(-1px);
  background: var(--gold-2);
}

.ghost-btn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
}

.ghost-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 183, 119, 0.45);
  color: var(--text);
  background: var(--gold-soft);
}

.ghost-btn.small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13.5px;
}

.tiny-note {
  color: var(--faint);
  font-size: 12.8px;
}

.brief-bullets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.brief-bullet {
  padding: 17px 20px 0 0;
}

.brief-bullet + .brief-bullet {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.brief-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 11.8px;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.brief-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.brief-bullet.positive .brief-label::before { background: var(--red); }
.brief-bullet.negative .brief-label::before { background: var(--green); }
.brief-bullet.neutral .brief-label::before { background: var(--amber); }

.brief-text {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- gauge ---------- */

.gauge-panel {
  position: relative;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gauge-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.gauge-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12.8px;
  letter-spacing: 0.13em;
}

.gauge-label {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.gauge-wrap {
  position: relative;
  width: min(100%, 250px);
  margin: 4px auto 0;
  aspect-ratio: 1;
}

.gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.gauge-halo {
  fill: none;
  stroke: rgba(217, 183, 119, 0.08);
  stroke-width: 1;
  stroke-dasharray: 2 8;
}

.gauge-track {
  fill: none;
  stroke: rgba(160, 180, 210, 0.11);
  stroke-width: 12;
}

.gauge-progress {
  fill: none;
  stroke: var(--gold);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 0 490;
  transition: stroke-dasharray 1.2s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.4s;
  filter: drop-shadow(0 0 10px rgba(217, 183, 119, 0.25));
}

.gauge-inner {
  fill: none;
  stroke: rgba(160, 180, 210, 0.07);
  stroke-width: 1;
}

.gauge-tick {
  color: rgba(217, 183, 119, 0.42);
  stroke-width: 1.5;
}

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-2px);
}

.gauge-center strong {
  font-family: var(--font-serif);
  font-size: clamp(58px, 6vw, 78px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.gauge-denom {
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.8px;
  letter-spacing: 0.12em;
}

.gauge-center small {
  margin-top: 9px;
  color: var(--gold);
  font-size: 13.5px;
  letter-spacing: 0.08em;
}

.gauge-foot {
  margin-top: 1px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.mini-dims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 12px;
  margin-top: 15px;
}

.mini-dim {
  min-width: 0;
}

.mini-dim-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: var(--faint);
  font-size: 11.8px;
}

.mini-dim-top b {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11.8px;
  font-weight: 500;
}

.mini-bar {
  height: 3px;
  margin-top: 5px;
  border-radius: 99px;
  background: rgba(160, 180, 210, 0.11);
  overflow: hidden;
}

.mini-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--gold);
  transition: width 1s ease 0.2s;
}

/* ---------- metric strip ---------- */

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 22px;
}

.metric-card {
  position: relative;
  min-width: 0;
  padding: 17px 17px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 22, 35, 0.58);
  transition: border-color 0.2s, background 0.2s;
}

.metric-card:hover {
  border-color: var(--line-strong);
  background: rgba(18, 27, 43, 0.8);
}

.metric-card::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.7;
}

.metric-card.positive::after { background: var(--red); }
.metric-card.negative::after { background: var(--green); }
.metric-card.amber::after { background: var(--amber); }

.metric-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--faint);
  font-size: 12.3px;
  letter-spacing: 0.08em;
}

.metric-value {
  margin-top: 8px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.metric-value small {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12.8px;
  font-weight: 400;
}

.metric-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-delta {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 12.3px;
}

/* ---------- panels / chart ---------- */

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(320px, 0.68fr);
  gap: 18px;
  padding-top: 8px;
}

.panel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%),
    var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.chart-panel {
  padding: 10px 18px 10px;
}

.radar-panel {
  padding: 22px 22px 18px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
}

.panel h2,
.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.015em;
}

.panel h2 {
  font-size: 23px;
}

.section-head h2 {
  font-size: clamp(27px, 2.8vw, 38px);
  line-height: 1.25;
}

.panel-note {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.8px;
}

.chart-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.index-select {
  height: 30px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(10, 15, 24, 0.9);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  cursor: pointer;
}

.chart-legend b {
  color: var(--text-soft);
  font-weight: 500;
}

.range-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.16);
}

.range-tabs button {
  min-width: 42px;
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.8px;
  cursor: pointer;
}

.range-tabs button.active,
.range-tabs button:hover {
  background: var(--gold-soft);
  color: var(--gold-2);
}


.chart-panel {
  position: relative;
}

.chart-tip {
  position: absolute;
  z-index: 12;
  width: 168px;
  max-width: calc(100% - 16px);
  padding: 7px 8px;
  border: 1px solid rgba(217, 183, 119, 0.32);
  border-radius: 8px;
  background: rgba(10, 15, 24, 0.97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  color: var(--text-soft);
  pointer-events: none;
}

.chart-tip[hidden] { display: none; }

.chart-tip-date {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 9px;
  margin-bottom: 3px;
}

.chart-tip-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 3px;
}

.chart-tip-title {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}
.chart-meta {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.3px;
}

.price-chart {
  width: 100%;
  height: 432px;
  margin-top: 2px;
}

.chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12.3px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.line {
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
}

.line.gold { background: var(--gold); }
.line.gold-dashed {
  height: 0;
  border-top: 2px dashed var(--gold);
  border-radius: 0;
}
.line.gold-dotted {
  height: 0;
  border-top: 2px dotted var(--gold);
  border-radius: 0;
  opacity: 0.72;
}
.line.blue { background: var(--blue); }
.line.muted { background: var(--faint); }

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot.red { background: var(--red); }
.dot.green { background: var(--green); }
.dot.amber { background: var(--amber); }

.radar-chart {
  width: 100%;
  height: 340px;
  margin-top: 8px;
}

.radar-note {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.7;
}

.radar-note b {
  color: var(--text-soft);
  font-weight: 600;
}

/* ---------- sections ---------- */

.signals {
  padding-top: 74px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
}

.section-count {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12.8px;
}

.section-meta {
  padding-bottom: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.8px;
  letter-spacing: 0.08em;
}

.section-lead {
  max-width: 900px;
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.range-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  padding: 12px 0 0;
}

.range-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.range-filter {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.range-filter button {
  padding: 4px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--faint);
  font-size: 11.5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.range-filter button:hover,
.range-filter button.active {
  background: var(--gold-soft);
  color: var(--gold-2);
}

.range-note {
  max-width: 560px;
  margin-left: auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: right;
  white-space: normal;
}

.day-row td {
  padding: 12px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid rgba(160, 180, 210, 0.08);
  background: rgba(217, 183, 119, 0.045);
}

.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.day-head strong {
  color: var(--gold-2);
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
}

.day-head span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.chip span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
}

.chip:hover {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
}

.chip.active {
  border-color: rgba(217, 183, 119, 0.3);
  background: var(--gold-soft);
  color: var(--gold-2);
}

.chip.active span {
  color: rgba(242, 214, 159, 0.65);
}

.filter-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.direction-tabs {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.direction-tabs button {
  padding: 4px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--faint);
  font-size: 12.3px;
  cursor: pointer;
}

.direction-tabs button:hover,
.direction-tabs button.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12.8px;
  cursor: pointer;
  white-space: nowrap;
}

.switch input {
  appearance: none;
  width: 30px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(160, 180, 210, 0.16);
  position: relative;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-soft);
  transition: transform 0.2s, background 0.2s;
}

.switch input:checked {
  background: rgba(217, 183, 119, 0.4);
}

.switch input:checked::after {
  transform: translateX(12px);
  background: var(--gold-2);
}

.search {
  position: relative;
  width: 218px;
}

.search svg {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 14px;
  height: 14px;
  color: var(--faint);
  transform: translateY(-50%);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 32px;
  padding: 0 12px 0 31px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text-soft);
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
}

.search input::placeholder { color: var(--faint); }

.search input:focus {
  border-color: rgba(217, 183, 119, 0.45);
  background: rgba(0, 0, 0, 0.25);
}

/* ---------- signal table ---------- */

.table-wrap {
  position: relative;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 16, 25, 0.35);
  overflow: hidden;
}

.signal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.signal-table thead {
  background: rgba(255, 255, 255, 0.022);
}

.signal-table th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: left;
  white-space: nowrap;
}

.signal-table th:nth-child(1) { width: 86px; }
.signal-table th:nth-child(3) { width: 76px; }
.signal-table th:nth-child(4) { width: 78px; }
.signal-table th:nth-child(5) { width: 92px; }
.signal-table th:nth-child(6) { width: 196px; }
.signal-table th:nth-child(7) { width: 114px; }

.signal-row {
  cursor: pointer;
  transition: background 0.18s;
}

.signal-row:hover,
.signal-row.open {
  background: rgba(217, 183, 119, 0.035);
}

.signal-row td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(160, 180, 210, 0.08);
  vertical-align: top;
}

.signal-row:last-of-type td {
  border-bottom: 0;
}

.time-cell {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.3px;
  white-space: nowrap;
}

.time-cell small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 11px;
}

.signal-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.signal-sub {
  margin-top: 4px;
  color: var(--faint);
  font-size: 12.3px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11.8px;
  white-space: nowrap;
}

.cat-tag i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.cat-tag.policy i { background: var(--gold); }
.cat-tag.funds i { background: var(--blue); }
.cat-tag.macro i { background: var(--amber); }
.cat-tag.overseas i { background: #b08cff; }
.cat-tag.sentiment i { background: var(--red); }
.cat-tag.structure i { background: #7bd5c7; }

.impact {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11.8px;
  font-weight: 600;
  white-space: nowrap;
}

.impact.long { color: var(--red); background: var(--red-soft); }
.impact.short { color: var(--green); background: var(--green-soft); }
.impact.neutral { color: var(--amber); background: var(--amber-soft); }

.strength {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.strength i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: rgba(160, 180, 210, 0.14);
}

.strength i:nth-child(1) { height: 4px; }
.strength i:nth-child(2) { height: 6px; }
.strength i:nth-child(3) { height: 8px; }
.strength i:nth-child(4) { height: 11px; }
.strength i:nth-child(5) { height: 14px; }

.strength.long i.on { background: var(--red); }
.strength.short i.on { background: var(--green); }
.strength.neutral i.on { background: var(--amber); }

.strength-num {
  margin-left: 4px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  vertical-align: middle;
}

.asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.asset-tags span {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.source-cell {
  color: var(--faint);
  font-size: 11.8px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-cell a:hover {
  color: var(--gold-2);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 14px 0 2px;
}

.detail-row {
  display: none;
}

.detail-row.open {
  display: table-row;
}

.detail-row td {
  padding: 0 12px 16px;
  border-bottom: 1px solid rgba(160, 180, 210, 0.08);
  background: rgba(217, 183, 119, 0.025);
}

.detail-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  padding: 16px;
  border: 1px solid rgba(217, 183, 119, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
}

.detail-label {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.detail-box p {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.75;
}

.detail-box p:last-child {
  margin-bottom: 0;
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--faint);
  font-size: 11.8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-size: 13px;
}

.text-link:hover {
  color: var(--gold-2);
}

.empty[hidden] {
  display: none;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 52px 20px;
  color: var(--muted);
  text-align: center;
}

.empty strong {
  color: var(--text-soft);
  font-family: var(--font-serif);
  font-size: 19px;
}

.empty span {
  font-size: 13px;
}

/* ---------- lower grid ---------- */

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 18px;
  padding-top: 52px;
}

.li-panel,
.calendar-panel {
  padding: 22px 24px 20px;
}

.panel-lead {
  margin: 9px 0 16px;
  color: var(--faint);
  font-size: 12.8px;
  line-height: 1.7;
}

.badge-neutral {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  font-size: 11px;
  white-space: nowrap;
}


/* ---------- Bilibili first-hand watch ---------- */

.bili-watch {
  margin: 0 0 16px;
  padding: 14px 16px 13px;
  border: 1px solid rgba(217, 183, 119, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(217, 183, 119, 0.08), transparent 55%),
    rgba(15, 20, 29, 0.72);
}

.bili-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.bili-kicker {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
}

.bili-head h3 {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-family: var(--font-serif);
  font-size: 17px;
}

.bili-alert {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 999px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 10px;
  white-space: nowrap;
}

.bili-alert[hidden] { display: none; }

.bili-pinned {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
}

.bili-pinned:hover { color: var(--gold-2); }

.bili-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.bili-note {
  margin-top: 10px;
  padding: 10px 11px;
  border-left: 2px solid var(--gold);
  background: rgba(217, 183, 119, 0.06);
  color: var(--text-soft);
  font-size: 12.2px;
  line-height: 1.75;
}

.bili-note:empty { display: none; }

.bili-latest {
  display: grid;
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.bili-latest-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.bili-latest-item time {
  flex: 0 0 auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.bili-latest-item a { color: var(--text-soft); }
.bili-latest-item a:hover { color: var(--gold-2); }

.bili-watch .text-link {
  margin-top: 8px;
  font-size: 11.5px;
}




.metric-spark {
  height: 78px;
  margin: 5px 0 7px;
  opacity: 0.95;
}

.metric-spark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.spec-trend {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  margin: 4px 0 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

.spec-trend svg {
  flex: 1;
  min-width: 0;
  height: 100%;
}

.spec-comp-spark {
  height: 36px;
  margin: 3px 0 1px;
}

.spec-comp-spark svg {
  display: block;
  width: 100%;
  height: 100%;
}



.trend-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.trend-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 28, 0.55);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.trend-card:hover {
  border-color: rgba(217, 183, 119, 0.4);
  background: rgba(217, 183, 119, 0.055);
}

.trend-card-label {
  color: var(--faint);
  font-size: 10px;
  line-height: 1.3;
}

.trend-card b {
  margin: 4px 0 2px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
}

.trend-card-spark {
  height: 24px;
  margin: 2px 0 3px;
}

.trend-card-spark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.trend-card small {
  color: var(--faint);
  font-size: 9px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .trend-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-card b { font-size: 14px; }
}


.trend-panel-range {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.16);
}

.trend-panel-range button {
  min-width: 31px;
  padding: 3px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
}

.trend-panel-range button.active,
.trend-panel-range button:hover {
  background: var(--gold-soft);
  color: var(--gold-2);
}

@media (max-width: 760px) {
  .trend-panel .panel-head { align-items: flex-start; gap: 6px; }
  .trend-panel-range { flex-shrink: 0; }
  .trend-panel-range button { min-width: 28px; padding: 3px 4px; }
}


.trend-series-select {
  height: 24px;
  max-width: 132px;
  padding: 0 22px 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(10, 15, 24, 0.9);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .trend-series-select { max-width: 116px; }
}

/* ---------- trend detail modal ---------- */
.trend-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 8, 14, 0.78);
  backdrop-filter: blur(8px);
}

.trend-modal[hidden] { display: none; }

.trend-modal-card {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 20px 20px 16px;
  border: 1px solid rgba(217, 183, 119, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 45%),
    #111925;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.trend-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trend-modal-head h3 {
  margin: 3px 0 4px;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
}

.trend-modal-head p {
  margin: 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.trend-modal-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.trend-modal-close:hover { color: var(--text); border-color: var(--gold-2); }

.trend-modal-range {
  display: inline-flex;
  gap: 3px;
  margin-top: 13px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.trend-modal-range button {
  min-width: 42px;
  padding: 4px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

.trend-modal-range button.active,
.trend-modal-range button:hover {
  background: var(--gold-soft);
  color: var(--gold-2);
}

.trend-modal-chart {
  width: 100%;
  height: 360px;
  margin-top: 6px;
}

.trend-modal-note {
  margin: 2px 0 0;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.55;
}

.metric-card[data-trend],
.spec-comp[data-trend],
.spec-trend[data-trend] {
  cursor: pointer;
}

.metric-card[data-trend]:hover {
  border-color: rgba(217, 183, 119, 0.42);
}

.spec-comp[data-trend]:hover {
  border-color: rgba(217, 183, 119, 0.3);
}

@media (max-width: 760px) {
  .trend-modal { padding: 10px; }
  .trend-modal-card { padding: 16px 13px 12px; }
  .trend-modal-head h3 { font-size: 18px; }
  .trend-modal-chart { height: 270px; }
}

/* ---------- trend lens ---------- */
.trend {
  padding-top: 8px;
}

/* 四张图连续上下排列：隐藏图与图之间的标题/说明，只保留必要控件 */
.market-analysis .panel-head > div:first-child,
.trend .panel-head > div:first-child {
  display: none;
}

.market-analysis .panel-head,
.trend .panel-head {
  justify-content: flex-end;
}

.trend > .section-head,
.trend > .section-lead {
  display: none;
}

.trend .trend-grid {
  margin-top: 0;
}

.trend-range {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.16);
}

.trend-range button {
  min-width: 42px;
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.8px;
  cursor: pointer;
}

.trend-range button.active,
.trend-range button:hover {
  background: var(--gold-soft);
  color: var(--gold-2);
}

.trend-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.trend-summary .trend-kpi {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 28, 0.55);
}

.trend-summary .trend-kpi span {
  display: block;
  color: var(--faint);
  font-size: 10px;
  margin-bottom: 5px;
}

.trend-summary .trend-kpi b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
}

.trend-summary .trend-kpi em {
  margin-left: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
}

.trend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 0;
}

.trend-panel-wide {
  grid-column: auto;
}

.trend-chart {
  width: 100%;
  height: 320px;
  margin-top: 0;
}

.trend-panel-wide .trend-chart {
  height: 320px;
}

.trend-note {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 12px;
}

@media (max-width: 760px) {
  .trend-summary { grid-template-columns: 1fr; }
  .trend-grid { grid-template-columns: 1fr; gap: 10px; }
  .trend-panel-wide { grid-column: auto; }
  .trend-chart, .trend-panel-wide .trend-chart { height: 280px; }
}

/* ---------- quality watchlist ---------- */
.quality {
  padding-top: 46px;
}

.quality-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 14px;
  margin-top: 16px;
}

.quality-panel {
  min-width: 0;
  padding: 20px 22px 16px;
}

.quality-method {
  padding: 20px 22px 18px;
}

.trend-panel {
  padding: 10px 18px 10px;
}

.quality-table-wrap {
  overflow-x: auto;
  margin-top: 4px;
}

.quality-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
}

.quality-table th {
  padding: 8px 7px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.quality-table th:nth-child(1),
.quality-table th:nth-child(2),
.quality-table th:nth-child(3) {
  text-align: left;
}

.quality-table td {
  padding: 9px 7px;
  border-bottom: 1px solid rgba(160, 180, 210, 0.08);
  color: var(--text-soft);
  text-align: right;
  white-space: nowrap;
}

.quality-table td:nth-child(1),
.quality-table td:nth-child(2),
.quality-table td:nth-child(3) {
  text-align: left;
}

.quality-rank {
  color: var(--faint);
}

.quality-name {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

.quality-name-link {
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}

.quality-name-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.quality-row { cursor: pointer; }

.quality-row:hover td {
  background: rgba(212, 175, 55, 0.045);
}

.quality-open {
  color: var(--faint);
  font-size: 9px;
  margin-left: 1px;
}

.quality-code {
  color: var(--faint);
  font-size: 9.5px;
  margin-top: 2px;
}

.quality-industry {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
}

.quality-ah {
  display: inline-block;
  text-align: right;
  font-weight: 600;
}

.quality-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.8px;
  line-height: 1.5;
}

.quality-metrics span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quality-metrics .wide { grid-column: 1 / -1; }

.quality-ah.high { color: #ff8a7a; }
.quality-ah.mid { color: #e6b45c; }
.quality-ah.low { color: #94a2ba; }

.quality-ah-note {
  color: var(--faint);
  font-size: 9px;
  font-weight: 400;
  margin-top: 1px;
}

.quality-score {
  display: inline-block;
  min-width: 40px;
  padding: 2px 5px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
}

.quality-score.high { color: #ff8a7a; background: rgba(255, 107, 107, 0.12); }
.quality-score.mid { color: #e6b45c; background: rgba(230, 180, 92, 0.12); }
.quality-score.low { color: #94a2ba; background: rgba(148, 162, 186, 0.1); }

.quality-grade {
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 9px;
  margin-top: 2px;
}

.quality-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  padding-top: 10px;
}

.quality-change { color: var(--muted); }

.q-flag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  vertical-align: 1px;
}

.q-flag.new { color: var(--blue); background: var(--blue-soft); }
.q-flag.up { color: var(--red); }
.q-flag.down { color: var(--green); }

.quality-delta {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.quality-delta.up { color: var(--red); }
.quality-delta.down { color: var(--green); }

.quality-method p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.quality-method .quality-actual {
  margin: 0 0 12px;
  padding: 8px 9px;
  border-left: 2px solid var(--gold);
  background: rgba(217, 183, 119, 0.055);
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.6;
}

.quality-legend {
  margin: 14px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.quality-legend h3 {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

.quality-legend dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.quality-legend dl > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.quality-legend dt {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.55;
}

.quality-legend dd {
  margin: 0;
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.55;
}

.quality-method .quality-warning {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--gold-2);
  font-size: 11px;
}

.empty-cell {
  padding: 28px 10px !important;
  color: var(--faint) !important;
  text-align: center !important;
  white-space: normal !important;
}

@media (max-width: 760px) {
  .quality-layout { grid-template-columns: 1fr; }
  .quality-table { font-size: 11px; }
  .quality-table th:nth-child(3),
  .quality-table td:nth-child(3),
  .quality-table th:nth-child(5),
  .quality-table td:nth-child(5),
  .quality-table th:nth-child(6),
  .quality-table td:nth-child(6),
  .quality-table th:nth-child(7),
  .quality-table td:nth-child(7) { display: none; }
  .quality-table th, .quality-table td { padding-left: 5px; padding-right: 5px; }
}

@media (max-width: 760px) {
  .chart-panel .panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .chart-controls {
    width: 100%;
    justify-content: space-between;
  }
  .bili-watch { padding: 12px 13px; }
  .bili-pinned { font-size: 18px; }
  .bili-latest-item { font-size: 11.5px; }
}

.hotwords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

.hotword {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--gold-soft);
  color: var(--gold-2);
  font-size: 11.8px;
}

.hotword span {
  color: rgba(242, 214, 159, 0.55);
  font-family: var(--font-mono);
  font-size: 10px;
}

.li-list {
  border-top: 1px solid var(--line);
}

.li-item {
  padding: 16px 0 15px;
  border-bottom: 1px solid rgba(160, 180, 210, 0.08);
}

.li-item:last-child {
  border-bottom: 0;
}

.li-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.li-source {
  color: var(--muted);
  font-family: var(--font-sans);
}

.li-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.li-asof {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-align: right;
}

.li-new {
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-sans);
  font-size: 9.5px;
}

.li-item h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
}

.li-item h3 a:hover {
  color: var(--gold-2);
}

.li-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.7;
}

.li-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.li-tags span {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  font-size: 11px;
}

.li-panel .text-link {
  margin-top: 15px;
}

.calendar-list {
  border-left: 1px solid var(--line);
  margin-left: 5px;
}

.calendar-item {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 20px 17px;
}

.calendar-item:last-child {
  padding-bottom: 0;
}

.calendar-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -4px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--bg);
}

.calendar-item.medium::before {
  border-color: var(--muted);
}

.calendar-date {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11.8px;
  line-height: 1.5;
}

.calendar-item.medium .calendar-date {
  color: var(--muted);
}

.calendar-title {
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

.calendar-why {
  margin-top: 4px;
  color: var(--faint);
  font-size: 11.8px;
  line-height: 1.6;
}

.calendar-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: rgba(148, 162, 186, 0.62);
  font-size: 11px;
}

.calendar-days {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ---------- framework ---------- */

.framework {
  padding-top: 74px;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.frame-card {
  position: relative;
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 55%),
    rgba(15, 22, 35, 0.62);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.frame-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(18, 27, 43, 0.82);
}

.frame-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 36px;
  height: 2px;
  background: var(--muted);
  opacity: 0.6;
}

.frame-card.positive::before { background: var(--red); opacity: 0.75; }
.frame-card.negative::before { background: var(--green); opacity: 0.7; }
.frame-card.neutral::before { background: var(--gold); opacity: 0.6; }

.frame-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.frame-glyph {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 17px;
}

.frame-title {
  min-width: 0;
  flex: 1;
}

.frame-title h3 {
  margin: 1px 0 2px;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.frame-title span {
  color: var(--faint);
  font-size: 11.5px;
}

.frame-score {
  display: grid;
  place-items: center;
  min-width: 31px;
  height: 25px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.8px;
}

.frame-card.positive .frame-score {
  border-color: rgba(255, 107, 107, 0.2);
  color: var(--red);
  background: var(--red-soft);
}

.frame-card.negative .frame-score {
  border-color: rgba(61, 214, 163, 0.18);
  color: var(--green);
  background: var(--green-soft);
}

.frame-card.neutral .frame-score {
  border-color: rgba(230, 180, 92, 0.18);
  color: var(--amber);
  background: var(--amber-soft);
}

.frame-reading {
  margin-top: 15px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.frame-reading small {
  margin-left: 5px;
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
}

.frame-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11.8px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-detail {
  margin: 11px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(160, 180, 210, 0.08);
  color: var(--faint);
  font-size: 12.3px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.frame-watch {
  margin-top: 8px;
  color: rgba(148, 162, 186, 0.7);
  font-size: 11.5px;
  line-height: 1.5;
}

.frame-watch b {
  color: var(--gold);
  font-weight: 500;
}

/* ---------- textbook framework ---------- */

.textbook {
  padding-top: 72px;
}

.textbook .section-lead {
  max-width: 980px;
}

.book-source {
  display: inline-block;
  margin-left: 8px;
  color: var(--gold);
  font-size: 11.8px;
  white-space: nowrap;
}

.wind-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.wind-card {
  position: relative;
  min-width: 0;
  padding: 17px 16px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 50%),
    rgba(15, 22, 35, 0.62);
  transition: transform 0.2s, border-color 0.2s;
}

.wind-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.wind-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  width: 36px;
  height: 2px;
  background: var(--muted);
  opacity: 0.5;
}

.wind-card.positive::before { background: var(--red); opacity: 0.75; }
.wind-card.negative::before { background: var(--green); opacity: 0.7; }
.wind-card.neutral::before { background: var(--gold); opacity: 0.65; }

.wind-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.wind-glyph {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 15.2px;
}

.wind-title {
  flex: 1;
  min-width: 0;
}

.wind-title h3 {
  margin: 0 0 2px;
  color: var(--text-soft);
  font-size: 12.8px;
  font-weight: 600;
  line-height: 1.4;
}

.wind-title span {
  color: var(--faint);
  font-size: 11px;
}

.wind-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  font-size: 10px;
  white-space: nowrap;
}

.wind-card.positive .wind-status {
  border-color: rgba(255, 107, 107, 0.2);
  color: var(--red);
  background: var(--red-soft);
}

.wind-card.negative .wind-status {
  border-color: rgba(61, 214, 163, 0.18);
  color: var(--green);
  background: var(--green-soft);
}

.wind-reading {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.wind-reading small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  white-space: normal;
}

.wind-detail {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(160, 180, 210, 0.08);
  color: var(--faint);
  font-size: 11.8px;
  line-height: 1.65;
}

.wind-watch {
  margin-top: 7px;
  color: rgba(148, 162, 186, 0.68);
  font-size: 11px;
  line-height: 1.5;
}

.wind-watch b {
  color: var(--gold);
  font-weight: 500;
}

.supplement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.supp-card {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(15, 22, 35, 0.42);
}

.supp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.supp-head strong {
  color: var(--text-soft);
  font-size: 12.3px;
  font-weight: 600;
}

.supp-head span {
  color: var(--faint);
  font-size: 10px;
  white-space: nowrap;
}

.supp-reading {
  margin-top: 7px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.supp-reading small {
  margin-left: 3px;
  color: var(--faint);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 400;
}

.supp-card p {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.principle-strip {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.principle-label {
  padding: 4px 7px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.principle {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
}

.principle b {
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.principle span {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5;
}

/* ---------- method / footer ---------- */

.method {
  padding-top: 58px;
  padding-bottom: 20px;
}

.method-box {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 22, 35, 0.24);
}

.method-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 2px;
  color: var(--text-soft);
  font-size: 13.5px;
  cursor: pointer;
  list-style: none;
}

.method-box summary::-webkit-details-marker {
  display: none;
}

.method-box summary::after {
  content: "+";
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 19px;
}

.method-box[open] summary::after {
  content: "−";
}

.summary-hint {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding: 14px 2px 26px;
}

.method-grid h3 {
  margin: 0 0 7px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 15.2px;
  font-weight: 600;
}

.method-grid h3:not(:first-child) {
  margin-top: 19px;
}

.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12.3px;
  line-height: 1.8;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 2px 22px;
}

.source-list a {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  font-size: 11px;
}

.source-list a:hover {
  color: var(--gold-2);
  border-color: rgba(217, 183, 119, 0.3);
}

.footer {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.6);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-top: 26px;
  padding-bottom: 38px;
}

.footer strong {
  color: var(--text-soft);
  font-family: var(--font-serif);
  font-size: 14.2px;
  letter-spacing: 0.06em;
}

.footer p {
  max-width: 580px;
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 11.8px;
  line-height: 1.7;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.update-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(8px);
}

.update-modal[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.update-card {
  width: min(440px, 100%);
  padding: 24px 24px 20px;
  border: 1px solid rgba(217, 183, 119, 0.26);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%),
    #111925;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.update-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 13px;
  border: 1px solid rgba(217, 183, 119, 0.3);
  border-radius: 50%;
  color: var(--gold-2);
  background: var(--gold-soft);
}

.update-icon svg {
  width: 22px;
  height: 22px;
}

.update-card h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
}

.update-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.75;
}

.update-note {
  margin-top: 8px;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.6;
}

.update-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 183, 119, 0.18);
  border-radius: 8px;
  color: var(--gold-2);
  background: rgba(217, 183, 119, 0.06);
  font-size: 12px;
}

.update-progress[hidden] {
  display: none;
}

.update-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(217, 183, 119, 0.25);
  border-top-color: var(--gold-2);
  border-radius: 50%;
  animation: update-spin 0.8s linear infinite;
}

@keyframes update-spin {
  to { transform: rotate(360deg); }
}

.update-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.update-actions[hidden],
.update-actions [hidden] {
  display: none !important;
}

.update-actions .primary-btn,
.update-actions .ghost-btn {
  min-width: 96px;
}

.update-card.error {
  border-color: rgba(255, 107, 107, 0.32);
}

.update-card.error .update-icon {
  border-color: rgba(255, 107, 107, 0.35);
  color: var(--red);
  background: var(--red-soft);
}

.update-card.success {
  border-color: rgba(61, 214, 163, 0.32);
}

.update-card.success .update-icon {
  border-color: rgba(61, 214, 163, 0.35);
  color: var(--green);
  background: var(--green-soft);
}

/* ---------- error / toast ---------- */

.app-error {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  background: rgba(8, 11, 18, 0.94);
  text-align: center;
}

.app-error[hidden] {
  display: none;
}

.app-error strong {
  font-family: var(--font-serif);
  font-size: 26px;
}

.app-error p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  padding: 9px 15px;
  border: 1px solid rgba(217, 183, 119, 0.3);
  border-radius: 8px;
  background: rgba(15, 22, 35, 0.96);
  color: var(--gold-2);
  font-size: 13px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .wrap { width: min(1360px, calc(100% - 44px)); }
  .hero { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 40px; }
  .metric-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analysis-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr); }
  .framework-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supplement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-table th:nth-child(6),
  .signal-table td:nth-child(6) { display: none; }
  .filterbar { align-items: flex-start; flex-direction: column; }
  .filter-right { width: 100%; justify-content: space-between; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
  .gauge-panel { max-width: 560px; width: 100%; }
  .gauge-wrap { width: 220px; }
  .analysis-grid { grid-template-columns: 1fr; }
  .radar-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr); gap: 0 18px; align-items: center; }
  .radar-panel .panel-head { grid-column: 1 / -1; }
  .radar-chart { height: 310px; }
  .radar-note { border-top: 0; padding-top: 0; }
  .lower-grid { grid-template-columns: 1fr; }
  .framework-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supplement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .workbench-layout { display: block; padding-top: 0; }
  .workbench-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 11, 18, 0.92);
    backdrop-filter: blur(18px);
  }
  .workbench-title { display: none; }
  .workbench-meta { display: none; }
  .lan-access { display: none !important; }
  .workbench-tabs {
    flex-direction: row;
    align-items: center;
    flex: 1;
    margin-top: 0;
    overflow-x: auto;
    gap: 2px;
    scrollbar-width: none;
  }
  .workbench-tabs::-webkit-scrollbar { display: none; }
  .workbench-tabs button {
    width: auto;
    padding: 7px 9px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 7px 7px 0 0;
    font-size: 11.5px;
  }
  .workbench-tabs button::before { display: none; }
  .workbench-tabs button.active {
    border-left: 0;
    border-bottom-color: var(--gold);
    background: transparent;
  }
  .opinion-preview-list { grid-template-columns: 1fr; }
  .opinion-preview-item { padding: 11px 0; }
  .opinion-preview-item + .opinion-preview-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .signal-table th:nth-child(7),
  .signal-table td:nth-child(7) { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 15.2px; }
  .wrap { width: calc(100% - 30px); }
  .topbar-inner { min-height: 66px; gap: 12px; }
  .workbench-inner { min-height: 52px; gap: 8px; }
  .workbench-tabs button { padding: 6px 8px; font-size: 11.5px; }
  .opinion-preview-panel { padding: 16px 15px 14px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 20px; }
  .brand-mark { width: 36px; height: 36px; font-size: 20px; }
  .topbar-meta { gap: 8px; font-size: 12.3px; }
  .topbar-divider,
  .topbar-meta #updateMeta,
  .icon-btn span { display: none; }
  .icon-btn { padding: 7px; }
  .hero { padding-top: 34px; padding-bottom: 30px; }
  .eyebrow { margin-bottom: 17px; font-size: 11.5px; }
  .eyebrow-sep { display: none; }
  .hero h1 { font-size: clamp(36px, 11vw, 54px); }
  .hero-summary { margin-top: 18px; font-size: 14.7px; line-height: 1.85; }
  .hero-actions { margin-top: 20px; }
  .tiny-note { flex-basis: 100%; }
  .brief-bullets { grid-template-columns: 1fr; margin-top: 26px; }
  .brief-bullet { padding: 13px 0; }
  .brief-bullet + .brief-bullet { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .gauge-panel { padding: 18px 20px; }
  .gauge-wrap { width: 205px; }
  .mini-dims { gap: 9px; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-bottom: 14px; }
  .metric-card { padding: 13px 13px 12px; }
  .metric-value { font-size: 23px; }
  .metric-sub { font-size: 11.8px; }
  .chart-panel, .radar-panel, .li-panel, .calendar-panel { padding: 17px 15px 14px; }
  .panel h2 { font-size: 20px; }
  .price-chart { height: 340px; }
  .radar-panel { display: block; }
  .radar-chart { height: 300px; }
  .radar-note { border-top: 1px solid var(--line); padding-top: 10px; }
  .signals { padding-top: 48px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-actions { width: 100%; justify-content: space-between; padding-bottom: 0; }
  .section-lead { font-size: 13px; }
  .range-bar { align-items: flex-start; gap: 8px; }
  .range-filter { width: 100%; justify-content: space-between; }
  .range-filter button { flex: 1; }
  .range-note { width: 100%; margin-left: 0; white-space: normal; line-height: 1.55; }
  .filterbar { padding: 10px 0; }
  .filter-right { flex-wrap: wrap; gap: 9px; }
  .search { width: 100%; order: 3; }
  .direction-tabs { width: 100%; justify-content: space-between; }
  .direction-tabs button { padding: 4px 7px; font-size: 11.8px; }
  .filter-right .switch { width: auto; margin-left: auto; }
  .chips { gap: 3px; }
  .chip { padding: 4px 8px; font-size: 12.3px; }
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .signal-table thead { display: none; }
  .signal-table, .signal-table tbody, .signal-table tr, .signal-table td { display: block; width: 100%; }
  .signal-table .detail-row { display: none; }
  .signal-table .detail-row.open { display: block; }
  .day-row { margin: 10px 0 7px; }
  .day-row td {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(217, 183, 119, 0.06);
  }
  .day-head strong { font-size: 13px; }
  .signal-row {
    margin-bottom: 8px;
    padding: 13px 13px 11px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(15, 22, 35, 0.62);
  }
  .signal-row td {
    padding: 0;
    border: 0;
  }
  .signal-row td:nth-child(1) {
    display: inline-block;
    width: auto;
    margin-right: 8px;
  }
  .signal-row td:nth-child(2) { display: block; margin-bottom: 9px; }
  .signal-row td:nth-child(3),
  .signal-row td:nth-child(4),
  .signal-row td:nth-child(5) {
    display: inline-flex;
    width: auto;
    margin-right: 9px;
    vertical-align: middle;
  }
  .signal-row td:nth-child(6),
  .signal-row td:nth-child(7) { display: none; }
  .signal-title { font-size: 14.2px; -webkit-line-clamp: 3; }
  .signal-sub { display: none; }
  .time-cell { color: var(--faint); font-size: 11.5px; }
  .time-cell small { display: none; }
  .detail-row td { padding: 0 0 8px; border: 0; background: transparent; }
  .detail-box { grid-template-columns: 1fr; gap: 13px; padding: 14px; }
  .lower-grid { padding-top: 36px; }
  .framework { padding-top: 48px; }
  .framework-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .textbook { padding-top: 48px; }
  .wind-grid, .supplement-grid { grid-template-columns: 1fr; gap: 8px; }
  .wind-reading { font-size: 26px; }
  .principle-strip { gap: 5px; }
  .book-source { display: block; margin-left: 0; margin-top: 3px; }
  .frame-reading { font-size: 26px; }
  .method { padding-top: 38px; }
  .method-grid { grid-template-columns: 1fr; gap: 2px; padding-bottom: 18px; }
  .method-grid h3:not(:first-child) { margin-top: 17px; }
  .footer-inner { flex-direction: column; gap: 14px; padding-top: 20px; padding-bottom: 28px; }
  .footer-meta { text-align: left; }
  .calendar-item { grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
  .calendar-date { font-size: 11.5px; white-space: nowrap; }
}

@media (max-width: 420px) {
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-value { font-size: 21px; }
  .metric-value small { font-size: 11px; }
  .gauge-wrap { width: 185px; }
  .mini-dims { grid-template-columns: repeat(3, 1fr); }
  .range-tabs button { min-width: 36px; }
  .price-chart { height: 300px; }
}

@media (max-width: 760px) {
  .chart-panel, .trend-panel { padding: 8px 12px 8px; }
  .trend-grid { gap: 8px; }
  .trend-chart, .trend-panel-wide .trend-chart { margin-top: 0; }
  .price-chart { margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- speculation temperature ---------- */

.speculation-view { padding-top: 34px; }

.spec-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}

.spec-main { display: flex; flex-direction: column; padding: 24px 24px 20px; }

.spec-top { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

.spec-score { display: flex; align-items: baseline; gap: 5px; }

.spec-score strong {
  font-family: var(--font-serif);
  font-size: clamp(54px, 6vw, 76px);
  line-height: 1;
  color: var(--text);
}

.spec-score span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 13px;
}

.spec-label {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12.5px;
}

.spec-label.hot {
  color: var(--red);
  border-color: rgba(255, 107, 107, 0.28);
  background: var(--red-soft);
}

.spec-label.warm {
  color: var(--amber);
  border-color: rgba(230, 180, 92, 0.28);
  background: var(--amber-soft);
}

.spec-label.neutral {
  color: var(--blue);
  border-color: rgba(116, 169, 255, 0.26);
  background: var(--blue-soft);
}

.spec-label.cold {
  color: var(--green);
  border-color: rgba(61, 214, 163, 0.26);
  background: var(--green-soft);
}

.spec-bar {
  height: 9px;
  margin: 18px 0 12px;
  border-radius: 999px;
  background: rgba(160, 180, 210, 0.12);
  overflow: hidden;
}

.spec-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
  transition: width 0.4s ease;
}

.spec-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.spec-hint {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.72;
}

.spec-scale {
  display: flex;
  justify-content: space-between;
  margin: 0 0 16px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.spec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: auto;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11.8px;
}

.spec-components-panel { padding: 22px 24px 18px; }

.spec-comp { padding: 12px 0 11px; border-bottom: 1px solid var(--line); }

.spec-comp:last-child { padding-bottom: 0; border-bottom: 0; }

.spec-comp-head { display: flex; align-items: baseline; gap: 8px; }

.spec-comp-head span { flex: 1; color: var(--text-soft); font-size: 14px; }

.spec-comp-head b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 18px;
}

.spec-comp-head small { color: var(--faint); font-size: 11px; }

.spec-comp-bar {
  height: 5px;
  margin: 7px 0 6px;
  border-radius: 999px;
  background: rgba(160, 180, 210, 0.12);
  overflow: hidden;
}

.spec-comp-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
}

.spec-comp-reading { color: var(--text-soft); font-size: 12.8px; }

.spec-comp-detail { margin-top: 2px; color: var(--faint); font-size: 11.8px; }

.spec-method-panel { margin-top: 18px; padding: 20px 24px; }

.spec-method {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.spec-method p { margin: 0; }

@media (max-width: 900px) {
  .spec-layout { grid-template-columns: 1fr; }
  .spec-method { grid-template-columns: 1fr; }
}

/* ---------- speculation history ---------- */
.spec-history-panel {
  margin-top: 14px;
  padding: 20px 22px 16px;
}

.spec-history-chart {
  width: 100%;
  height: 280px;
  margin-top: 6px;
}

.spec-history-note {
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.6;
  margin: 2px 0 0;
}

@media (max-width: 760px) {
  .spec-history-chart { height: 230px; }
}

@media (max-width: 760px) {
  .trend-panel, .quality-panel, .quality-method, .spec-history-panel { padding: 16px 14px 13px; }
}

/* ---------- merged market header ---------- */
.market-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 30px;
  padding-bottom: 4px;
}

.market-head-copy h1 {
  margin: 3px 0 5px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.1;
}

.market-head-copy p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.market-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-bottom: 4px;
}

.market-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.market-tool .index-select {
  height: 30px;
  min-width: 110px;
}

.market-head + .analysis-grid {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .market-head {
    display: block;
    padding-top: 20px;
  }
  .market-head-copy h1 { font-size: 32px; }
  .market-tools {
    justify-content: flex-start;
    margin-top: 12px;
  }
}

.market-analysis { grid-template-columns: minmax(0, 1fr); }

.event-toggle {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.event-toggle.active {
  border-color: rgba(217, 183, 119, 0.4);
  color: var(--gold-2);
  background: var(--gold-soft);
}
.event-toggle:hover { color: var(--text); border-color: var(--gold-2); }

.network-hint {
  margin-top: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(230, 180, 92, 0.28);
  border-radius: 6px;
  background: rgba(230, 180, 92, 0.06);
  color: var(--gold-2);
  font-size: 10px;
  line-height: 1.5;
}
.network-hint a { color: var(--text); text-decoration: underline; }

/* ---------- valuation dashboard ---------- */
.valuation-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 2px 0 6px;
}

.val-kpi {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
}

.val-kpi span {
  display: block;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.val-kpi b {
  display: block;
  margin-top: 1px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
}

.val-kpi small {
  display: block;
  margin-top: 1px;
  color: var(--faint);
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.val-bar {
  height: 3px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(160, 180, 210, 0.12);
  overflow: hidden;
}

.val-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--amber);
}

.val-bar i.high { background: var(--red); }
.val-bar i.mid { background: var(--amber); }
.val-bar i.low { background: var(--green); }

.valuation-chart { height: 300px; }

.valuation-read {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .valuation-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .val-kpi b { font-size: 13px; }
  .valuation-chart { height: 280px; }
  .valuation-read { font-size: 10.5px; }
}

@media (max-width: 760px) {
  .chart-panel, .trend-panel { padding: 8px 12px 8px; }
}

/* ---------- Daxiao metric map ---------- */
.checklist-view { padding-top: 34px; }

.metric-range-note {
  margin: -4px 0 10px;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.6;
}

.metric-range {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.55;
}

.metric-range span { white-space: normal; overflow-wrap: anywhere; }
.metric-range .dir { color: var(--gold-2); }
.metric-range .good { color: var(--green); }
.metric-range .normal { color: var(--muted); }
.metric-range .warn { color: var(--red); }

.metric-map {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-top: 16px;
}

.metric-map-panel { padding: 18px 20px 14px; }

.metric-list {
  display: grid;
  margin-top: 8px;
}

.metric-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(160, 180, 210, 0.08);
}

.metric-item:last-child { border-bottom: 0; }

.metric-rank {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid rgba(217, 183, 119, 0.25);
  border-radius: 5px;
  background: var(--gold-soft);
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.metric-item b {
  display: block;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 12.2px;
  font-weight: 600;
  line-height: 1.5;
}

.metric-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10.7px;
  line-height: 1.55;
}

.metric-item.danger .metric-rank {
  border-color: rgba(255, 107, 107, 0.28);
  background: var(--red-soft);
  color: var(--red);
}

.metric-subhead {
  margin: 14px 0 2px;
  color: var(--gold-2);
  font-family: var(--font-mono);
  font-size: 10.2px;
  letter-spacing: 0.06em;
}

.metric-subhead.danger { color: var(--red); }

.metric-map-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.metric-callout { padding: 16px 18px; }

.metric-callout h3 {
  margin: 0 0 6px;
  color: var(--text-soft);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

.metric-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

@media (max-width: 1000px) {
  .metric-map, .metric-map-bottom { grid-template-columns: 1fr; }
}
