/* ═══════════════════════════════════════════════════════════════════════
   M²-Alpha · A 股每日选股参考
   4-tab dashboard architecture
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── design tokens ────────────────────────────────────────────────── */
:root {
  /* Dark theme (default) */
  --bg:           #0a0b0e;
  --bg-2:         #101218;
  --bg-3:         #161922;
  --bg-card:      #11141b;
  --bg-elev:      #1a1e29;
  --ink:          #ebe6dc;
  --ink-dim:      #9c958a;
  --ink-mute:     #5b5e68;
  --hairline:     #1f232c;
  --hairline-2:   #2a2f3a;

  --lime:         #c8f93d;
  --lime-soft:    #9ec833;
  --lime-glow:    rgba(200, 249, 61, 0.22);
  --coral:        #ff6b3c;
  --coral-soft:   #c45531;
  --amber:        #f0b53f;
  --teal:         #7ad7c5;

  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 10px;

  --f-display: "Fraunces", "Songti SC", "Noto Serif SC", Georgia, serif;
  --f-sans:    "Instrument Sans", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --navH: 56px;
  --maxW: 1480px;
}

body.light {
  --bg:           #faf6ee;
  --bg-2:         #f3ede0;
  --bg-3:         #ebe4d3;
  --bg-card:      #f7f2e8;
  --bg-elev:      #ffffff;
  --ink:          #1a1c20;
  --ink-dim:      #5b5247;
  --ink-mute:     #9a8f7d;
  --hairline:     #d9d2c2;
  --hairline-2:   #c4bcac;

  --lime:         #4f7a08;
  --lime-soft:    #3d5e06;
  --lime-glow:    rgba(79, 122, 8, 0.18);
  --coral:        #b8392a;
  --coral-soft:   #8a2b1f;
  --amber:        #b58020;
  --teal:         #2f7466;
}

/* ─── base ─────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: var(--navH); }

body {
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-feature-settings: "ss01", "ss02", "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(200, 249, 61, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(200, 249, 61, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, #000 60%, transparent 100%);
}
body.light .bg-grid {
  background-image:
    linear-gradient(to right, rgba(79, 122, 8, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 122, 8, 0.04) 1px, transparent 1px);
}
.bg-vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(200, 249, 61, 0.04), transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(122, 215, 197, 0.03), transparent 50%);
}
body.light .bg-vignette {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(79, 122, 8, 0.05), transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(47, 116, 102, 0.04), transparent 50%);
}

.mono { font-family: var(--f-mono); }
.gain { color: var(--lime); }
.loss { color: var(--coral); }
.acc  { color: var(--lime); font-weight: 600; }
.dim  { color: var(--ink-dim); }
em { font-style: normal; color: var(--ink); }
::selection { background: var(--lime); color: var(--bg); }

a { color: inherit; }
.inline-link { color: var(--lime); text-decoration: none; font-weight: 600; }
.inline-link:hover { text-decoration: underline; }

code {
  font-family: var(--f-mono); font-size: 0.92em;
  padding: 1px 6px; border-radius: 3px;
  background: var(--bg-3); color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--navH);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 0 28px;
  background: rgba(10, 11, 14, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline-2);
}
body.light .navbar {
  background: rgba(250, 246, 238, 0.92);
}

.brand {
  display: inline-flex; align-items: baseline; gap: 4px;
  text-decoration: none; color: var(--ink);
  font-family: var(--f-display);
  font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 1;
  font-weight: 600;
}
.brand__mark { font-size: 24px; line-height: 1; letter-spacing: -0.02em; }
.brand__mark sup { font-size: 0.55em; color: var(--lime); vertical-align: super; font-weight: 700; }
.brand__name {
  font-size: 20px; line-height: 1; letter-spacing: -0.01em;
  color: var(--lime);
  font-variation-settings: "opsz" 60, "SOFT" 80, "WONK" 1;
}
.brand__name em { font-style: italic; color: var(--ink); font-weight: 400; }
.brand__ver {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  border: 1px solid var(--hairline-2);
  border-radius: 3px;
  vertical-align: middle;
  background: rgba(255,255,255,0.03);
}
body.light .brand__ver { background: rgba(0,0,0,0.04); }

.nav-tabs { list-style: none; display: flex; gap: 0; justify-content: center; }
.nav-tab {
  display: inline-flex; align-items: center;
  padding: 0 18px;
  height: var(--navH);
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  text-decoration: none;
  position: relative;
  transition: color 0.18s;
}
.nav-tab:hover { color: var(--ink); }
.nav-tab--active { color: var(--ink); font-weight: 600; }
.nav-tab::after {
  content: ""; position: absolute;
  left: 18px; right: 18px; bottom: 0;
  height: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 0 8px var(--lime-glow);
}
.nav-tab--active::after { transform: scaleX(1); }
.nav-tab:hover::after { transform: scaleX(0.5); }
.nav-tab--active:hover::after { transform: scaleX(1); }

.nav-cluster { display: inline-flex; align-items: center; gap: 6px; }

.theme-toggle {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--hairline-2);
  border-radius: 99px;
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 14px; line-height: 1;
  transition: all 0.18s;
  padding: 0;
}
.theme-toggle:hover { color: var(--lime); border-color: var(--lime); }
.theme-toggle__icon { display: inline-block; transition: transform 0.3s; }
.theme-toggle:hover .theme-toggle__icon { transform: rotate(180deg); }

.nav-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--hairline-2);
  border-radius: 99px;
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.nav-pill__k { color: var(--ink); font-weight: 600; }
.nav-pill__v { color: var(--lime); font-weight: 700; letter-spacing: 0.04em; }
.nav-pill__t {
  color: var(--ink-dim); font-weight: 500;
  padding-left: 8px; margin-left: 4px;
  border-left: 1px solid var(--hairline-2);
}
.nav-pill__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime), 0 0 12px var(--lime-glow);
  animation: pulse 1.6s ease-in-out infinite;
}
.nav-pill--clock { background: linear-gradient(135deg, var(--bg-2), var(--bg-3)); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* ═══════════════════════════════════════════════════════════════════════
   TAB AREA — 4 mutually-exclusive panels
   ═══════════════════════════════════════════════════════════════════════ */
.tab-area {
  position: relative; z-index: 2;
  max-width: var(--maxW);
  margin: 0 auto;
  padding: 24px 28px 56px;
}
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fade-up 0.28s cubic-bezier(0.22, 0.61, 0.36, 1); }

/* ─── Common block heading (used inside each tab) ─── */
.block-head { margin-bottom: 20px; }
.block-title {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 80, "SOFT" 30, "WONK" 0;
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.block-title em { font-style: italic; color: var(--lime); }
.block-sub {
  margin-top: 8px;
  font-size: 13px; line-height: 1.6;
  color: var(--ink-dim);
  max-width: 760px;
}
.block-sub strong { color: var(--ink); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   TAB 1 · 今日推荐
   ═══════════════════════════════════════════════════════════════════════ */

/* Brief banner — always-on project status strip */
.brief-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 18px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.brief-banner__l {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 30, "SOFT" 30, "WONK" 1;
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--lime);
}
.brief-banner__sep { color: var(--hairline-2); }
.brief-banner__txt { color: var(--ink-dim); }
.brief-banner__txt em { color: var(--ink); font-weight: 600; }
.brief-banner__grow { flex: 1; }
.brief-banner__num {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--hairline-2);
}
.brief-banner__num span {
  font-size: 10px; color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.brief-banner__num em {
  font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink);
}
.brief-banner__num em.gain { color: var(--lime); }
.brief-banner__num em.loss { color: var(--coral); }

/* Tab 1 grid: main + sidebar */
.tab1-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}
.tab1-main { min-width: 0; }
.tab1-side { display: flex; flex-direction: column; gap: 16px; }

/* sidebar blocks */
.side-block {
  background: var(--bg-2);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.side-block__h {
  font-family: var(--f-sans); font-size: 12px; font-weight: 600;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
}
.side-block__h .inline-link { font-size: 11px; font-weight: 500; }

.mini-chart { display: block; width: 100%; height: 100px; margin-bottom: 12px; }
.mini-chart .axis-zero { stroke: var(--ink-mute); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.6; }

.side-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}
.side-stat { display: flex; flex-direction: column; gap: 2px; }
.side-stat__k { font-size: 11px; color: var(--ink-mute); }
.side-stat__v {
  font-family: var(--f-mono); font-size: 16px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.side-stat__v.gain { color: var(--lime); }
.side-stat__v.loss { color: var(--coral); }

/* recent hits chips */
.recent-hits { display: flex; flex-direction: column; gap: 6px; }
.rh-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: var(--bg-3);
  border: 1px solid var(--hairline);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.rh-row.gain { border-left-color: var(--lime); }
.rh-row.loss { border-left-color: var(--coral); }
.rh-row__d { color: var(--ink-dim); }
.rh-row__ret { font-weight: 700; }
.rh-row__ret.gain { color: var(--lime); }
.rh-row__ret.loss { color: var(--coral); }
.rh-row__hit { color: var(--ink-mute); font-size: 10px; }

/* strategy inline reminder under picks */
.strategy-inline {
  margin-top: 14px;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--hairline-2);
  border-left: 3px solid var(--lime);
  border-radius: var(--r-md);
  font-size: 12px; line-height: 1.65;
  color: var(--ink-dim);
}
.strategy-inline strong { color: var(--ink); font-weight: 600; }
.strategy-inline__ico { font-size: 14px; line-height: 1; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   PICKS TABLE
   ═══════════════════════════════════════════════════════════════════════ */
.picks {
  width: 100%; border-collapse: collapse;
  background: var(--bg-2);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 13px;
}
.picks thead th {
  font-family: var(--f-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--ink-mute);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline-2);
  background: var(--bg-3);
}
.picks td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.picks tr:last-child td { border-bottom: none; }
.picks tr:hover td { background: var(--bg-3); }
.picks .c-rk { width: 36px; color: var(--ink-mute); font-weight: 600; }
.picks .c-code { color: var(--ink); width: 96px; }
.picks .c-name { font-family: var(--f-sans); color: var(--ink); font-weight: 500; font-size: 14px; }
.picks .c-ind { color: var(--ink-dim); font-family: var(--f-sans); font-size: 12px; }
.picks .c-score { color: var(--lime); font-weight: 700; width: 72px; }
.picks .c-bar { width: 180px; }
.picks .c-px { text-align: right; width: 96px; color: var(--ink); }
.picks .c-w { text-align: right; width: 72px; color: var(--ink); font-weight: 600; }

.score-bar {
  position: relative; height: 8px; background: var(--bg-3); border-radius: 1px;
  border: 1px solid var(--hairline-2);
}
.score-bar i {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: linear-gradient(to right, var(--lime-soft), var(--lime));
  box-shadow: 0 0 4px var(--lime-glow);
  border-radius: 1px;
  transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ═══════════════════════════════════════════════════════════════════════
   TAB 2 · 每日复盘
   ═══════════════════════════════════════════════════════════════════════ */
.sc-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.sc-stat {
  background: var(--bg-2);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  transition: background 0.2s;
}
.sc-stat:hover { background: var(--bg-3); }
.sc-stat__k { font-family: var(--f-sans); font-size: 11px; font-weight: 600; color: var(--ink-mute); }
.sc-stat__v {
  font-family: var(--f-mono); font-size: 22px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  text-shadow: 0 0 12px var(--lime-glow);
}
.sc-stat__v.loss { color: var(--coral); text-shadow: 0 0 10px rgba(255, 107, 60, 0.3); }
.sc-stat__d { font-size: 11px; color: var(--ink-dim); line-height: 1.4; }

.sc-chart-host {
  background: var(--bg-2);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  padding: 14px 20px;
  margin-bottom: 20px;
}
.excess-chart { display: block; width: 100%; height: 200px; }
.excess-chart .grid-line { stroke: var(--hairline); stroke-width: 1; stroke-dasharray: 2 4; }
.excess-chart .axis-label { fill: var(--ink-mute); font-family: var(--f-mono); font-size: 10px; }
.excess-chart .axis-zero { stroke: var(--ink-dim); stroke-width: 1; stroke-dasharray: 4 4; }

.sc-detail {
  background: var(--bg-2);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  padding: 14px 20px;
}
.sub-h--ctrl { padding: 4px 0 14px; }
.sc-counter {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.sc-counter em { color: var(--lime); font-style: normal; font-weight: 700; }

.sc-rangebar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--bg-3);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  margin-bottom: 16px;
}
.sc-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.sc-chip-btn {
  appearance: none;
  background: transparent; color: var(--ink-dim);
  border: 1px solid var(--hairline-2);
  border-radius: 99px;
  padding: 5px 12px;
  font-family: var(--f-sans); font-size: 11px; font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.sc-chip-btn:hover { color: var(--ink); border-color: var(--ink-dim); }
.sc-chip-btn--active {
  background: var(--lime); color: var(--bg);
  border-color: var(--lime); font-weight: 700;
  box-shadow: 0 0 10px var(--lime-glow);
}
.sc-chip-btn--active:hover { color: var(--bg); border-color: var(--lime); }

.sc-range {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-sans); font-size: 11px;
}
.sc-range__l {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-mute);
}
.sc-range__inp {
  appearance: none; -webkit-appearance: none;
  background: var(--bg-2); color: var(--ink);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  padding: 6px 10px;
  font-family: var(--f-mono); font-size: 11px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  color-scheme: dark;
}
body.light .sc-range__inp { color-scheme: light; }
.sc-range__inp:hover, .sc-range__inp:focus { border-color: var(--lime); outline: none; }
.sc-range__inp::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(1) saturate(5) hue-rotate(40deg);
  cursor: pointer; opacity: 0.85;
}
.sc-range__arrow { color: var(--ink-mute); font-size: 12px; }
.sc-range__btn {
  appearance: none;
  background: var(--lime); color: var(--bg);
  border: none;
  border-radius: var(--r-md);
  padding: 7px 14px;
  font-family: var(--f-sans); font-size: 11px; font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 0 10px var(--lime-glow);
}
.sc-range__btn:hover { transform: translateY(-1px); }

.sc-days { display: grid; gap: 10px; margin-top: 12px; }
.sc-day {
  display: grid;
  grid-template-columns: 120px 1fr 100px;
  align-items: stretch;
  gap: 18px;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: all 0.2s;
}
.sc-day:hover { border-color: var(--hairline-2); }

/* pending: 未结算预测的视觉区别 */
.sc-day--pending {
  border-left: 3px solid var(--amber);
  background: linear-gradient(180deg, rgba(240, 181, 63, 0.04), transparent);
}
.sc-chip--pending {
  opacity: 0.85;
  border-style: dashed;
}
.sc-day__sum-pending {
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border: 1px solid var(--amber);
  border-radius: 99px;
  background: rgba(240, 181, 63, 0.08);
}
.sc-day__date {
  display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid var(--hairline);
  padding-right: 14px;
}
.sc-day__d-main { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.sc-day__d-sub { font-family: var(--f-mono); font-size: 10px; color: var(--ink-mute); }
.sc-day__top30-btn {
  margin-top: 6px;
  padding: 3px 8px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--hairline-2);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}
.sc-day__top30-btn:hover { color: var(--lime); border-color: var(--lime); }

/* Top 30 modal */
.t30-modal { position: fixed; inset: 0; z-index: 200; }
.t30-modal[hidden] { display: none; }
.t30-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}
body.light .t30-backdrop { background: rgba(40,30,15,0.4); }
.t30-panel {
  position: relative;
  max-width: 920px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 80px);
  margin: 40px auto;
  background: var(--bg-2);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  display: flex; flex-direction: column;
  animation: fade-up 0.25s cubic-bezier(0.22,0.61,0.36,1);
}
.t30-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--hairline);
}
.t30-title {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 40, "SOFT" 30, "WONK" 0;
  font-size: 17px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.01em;
}
.t30-title em { color: var(--lime); font-weight: 600; }
.t30-sub {
  margin-top: 4px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.03em;
}
.t30-sub em { color: var(--ink); font-weight: 600; }
.t30-pending {
  color: var(--amber);
  font-family: var(--f-mono); font-size: 10.5px;
  padding: 1px 6px; border: 1px solid var(--amber); border-radius: 2px;
  background: rgba(240,181,63,0.08);
}
.t30-close {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline-2);
  border-radius: 99px;
  color: var(--ink-dim);
  font-size: 20px; line-height: 1; cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}
.t30-close:hover { color: var(--coral); border-color: var(--coral); }
.t30-body {
  padding: 14px 22px 18px;
  overflow-y: auto;
}
.t30-stats {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-family: var(--f-mono); font-size: 11.5px;
  color: var(--ink-dim);
  padding: 8px 0 14px;
}
.t30-stats em { color: var(--ink); font-weight: 600; }
.t30-stats em.gain { color: var(--lime); }
.t30-sep { color: var(--ink-mute); }
.t30-table-wrap {
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: auto;
  max-height: 60vh;
}
.t30-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.t30-table thead th {
  position: sticky; top: 0; z-index: 1;
  text-align: left;
  padding: 8px 10px;
  background: var(--bg-3);
  color: var(--ink-dim);
  font-family: var(--f-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--hairline-2);
}
.t30-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-dim);
}
.t30-table tr:last-child td { border-bottom: none; }
.t30-table tr.t30-row--in td { background: rgba(200, 249, 61, 0.05); color: var(--ink); }
body.light .t30-table tr.t30-row--in td { background: rgba(79, 122, 8, 0.06); }
.t30-rk { width: 40px; font-family: var(--f-mono); color: var(--ink-mute); text-align: right; }
.t30-ts { width: 100px; color: var(--ink-mute); font-size: 11px; }
.t30-name { color: var(--ink); }
.t30-ind { color: var(--ink-dim); font-size: 11.5px; }
.t30-score { width: 80px; color: var(--lime); }
.t30-ret { width: 90px; text-align: right; font-weight: 600; }
.t30-sel { width: 70px; text-align: center; }
.t30-badge {
  display: inline-block;
  padding: 2px 7px;
  font-family: var(--f-mono); font-size: 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}
.t30-badge--in {
  color: var(--lime);
  background: rgba(200, 249, 61, 0.1);
  border: 1px solid var(--lime);
}
body.light .t30-badge--in { background: rgba(79, 122, 8, 0.1); }
.t30-badge--out {
  color: var(--ink-mute);
  background: transparent;
  border: 1px solid transparent;
}

@media (max-width: 720px) {
  .t30-panel { margin: 16px auto; max-height: calc(100vh - 32px); }
  .t30-table { font-size: 11.5px; }
  .t30-ts, .t30-ind { display: none; }
}
.sc-day__chips { display: flex; flex-wrap: wrap; gap: 4px; align-content: center; align-items: center; }
.sc-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  background: var(--bg-2);
  border: 1px solid var(--hairline-2);
  border-radius: 99px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sc-chip__n { color: var(--ink); }
.sc-chip__r { font-weight: 700; }
.sc-chip__r.gain { color: var(--lime); }
.sc-chip__r.loss { color: var(--coral); }
.sc-chip.gain { border-color: rgba(200, 249, 61, 0.25); background: rgba(200, 249, 61, 0.04); }
.sc-chip.loss { border-color: rgba(255, 107, 60, 0.25); background: rgba(255, 107, 60, 0.04); }
body.light .sc-chip.gain { background: rgba(79, 122, 8, 0.06); border-color: rgba(79, 122, 8, 0.3); }
body.light .sc-chip.loss { background: rgba(184, 57, 42, 0.06); border-color: rgba(184, 57, 42, 0.3); }

.sc-day__summary {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-end;
  font-family: var(--f-mono); font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--hairline);
  padding-left: 14px;
}
.sc-day__sum-r { font-size: 16px; font-weight: 700; }
.sc-day__sum-r.gain { color: var(--lime); }
.sc-day__sum-r.loss { color: var(--coral); }
.sc-day__sum-vs { font-size: 10px; color: var(--ink-dim); }
.sc-day__sum-vs em { font-style: normal; font-weight: 600; }
.sc-day__sum-vs em.gain { color: var(--lime); }
.sc-day__sum-vs em.loss { color: var(--coral); }

.sc-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 14px;
}
.sc-pager__btn {
  appearance: none;
  background: var(--bg-3); color: var(--ink-dim);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  width: 32px; height: 30px;
  font-family: var(--f-mono); font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.sc-pager__btn:hover:not(:disabled) { color: var(--lime); border-color: var(--lime); }
.sc-pager__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.sc-pager__info {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-dim);
  min-width: 110px; text-align: center;
}
.sc-pager__info em { color: var(--ink); font-style: normal; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════════
   TAB 3 · 回测业绩
   ═══════════════════════════════════════════════════════════════════════ */
.section-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--bg-3);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  margin-bottom: 8px;
}

.section-meta {
  display: flex; align-items: center; gap: 8px;
  padding: 0 4px;
  margin-bottom: 14px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.section-meta__k { color: var(--ink-mute); }
.section-meta__v { color: var(--ink); }
.section-meta__v em { color: var(--lime); font-style: normal; font-weight: 700; }
.section-meta__sep { color: var(--hairline-2); }

.section-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--hairline-2);
  margin-bottom: 16px;
}
.section-tab {
  appearance: none;
  background: transparent; color: var(--ink-dim);
  border: none;
  padding: 9px 16px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}
.section-tab:hover { color: var(--ink); }
.section-tab--active { color: var(--ink); font-weight: 600; }
.section-tab::after {
  content: ""; position: absolute;
  left: 16px; right: 16px; bottom: -1px; height: 2px;
  background: var(--lime);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 0 6px var(--lime-glow);
}
.section-tab--active::after { transform: scaleX(1); }

.section-panel { animation: fade-up 0.28s cubic-bezier(0.22, 0.61, 0.36, 1); }
.section-panel[hidden] { display: none; }

/* perf stats */
.perf-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  overflow: hidden;
}
.perf-stat {
  background: var(--bg-2);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  transition: background 0.2s;
}
.perf-stat:hover { background: var(--bg-3); }
.perf-stat__k { font-family: var(--f-sans); font-size: 11px; font-weight: 600; color: var(--ink-mute); }
.perf-stat__v {
  font-family: var(--f-mono); font-size: 22px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  color: var(--ink);
}
.perf-stat__v.gain { color: var(--lime); text-shadow: 0 0 8px var(--lime-glow); }
.perf-stat__v.loss { color: var(--coral); }
.perf-stat__d { font-size: 10px; color: var(--ink-dim); line-height: 1.4; }

/* equity chart */
.chart-host {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  padding: 8px 14px 12px;
}
.chart { display: block; width: 100%; height: 380px; }
.chart .grid-line { stroke: var(--hairline); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .axis-label { fill: var(--ink-mute); font-family: var(--f-mono); font-size: 10px; }
.chart .model-line { fill: none; stroke: var(--lime); stroke-width: 1.8; filter: drop-shadow(0 0 6px var(--lime-glow)); }
.chart .model-area { fill: url(#lime-gradient); opacity: 0.5; }
.chart .bench-line { fill: none; stroke: var(--teal); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: 0.7; }
.chart .dd-region { fill: rgba(255, 107, 60, 0.08); }
.chart .crosshair { stroke: var(--lime); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; }
.chart .crosshair.show { opacity: 0.6; }
.chart .hover-dot { fill: var(--lime); r: 4; stroke: var(--bg); stroke-width: 2; opacity: 0; }
.chart .hover-dot.show { opacity: 1; }

.tooltip {
  position: absolute; pointer-events: none;
  background: var(--bg-3); border: 1px solid var(--lime);
  padding: 10px 14px; border-radius: var(--r-md);
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 0 16px var(--lime-glow);
  z-index: 10;
  min-width: 200px;
}
body.light .tooltip { box-shadow: 0 4px 18px rgba(0,0,0,0.12), 0 0 12px var(--lime-glow); }
.tooltip .tt-d { color: var(--ink-dim); font-size: 10px; letter-spacing: 0.06em; margin-bottom: 8px; }
.tooltip .tt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.tooltip .tt-k { color: var(--ink-mute); font-size: 10px; letter-spacing: 0.04em; }
.tooltip .tt-v { font-weight: 600; font-variant-numeric: tabular-nums; }

/* monthly bars */
.monthly-host {
  background: var(--bg-2);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  padding: 6px 20px 16px;
}
.monthly { display: grid; gap: 4px; }
.month-row {
  display: grid;
  grid-template-columns: 80px 1fr 84px 84px;
  align-items: center; gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hairline);
}
.month-row:last-child { border-bottom: none; }
.month-row__m { font-family: var(--f-mono); font-size: 12px; color: var(--ink); }
.month-row__bars { position: relative; height: 26px; }
.month-row__bars .axis { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hairline-2); }
.month-row__bars .bar {
  position: absolute; border-radius: 1px;
  transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.month-row__bars .bar--model { background: var(--lime); top: 3px; height: 9px; box-shadow: 0 0 4px var(--lime-glow); }
.month-row__bars .bar--model.neg { background: var(--coral); box-shadow: 0 0 4px rgba(255, 107, 60, 0.3); }
.month-row__bars .bar--bench { background: var(--teal); top: 15px; height: 6px; opacity: 0.55; }
.month-row__bars .bar--bench.neg { background: var(--coral-soft); opacity: 0.35; }
.month-row__model, .month-row__bench {
  font-family: var(--f-mono); font-size: 12px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.month-row__model { color: var(--lime); font-weight: 600; }
.month-row__model.neg { color: var(--coral); }
.month-row__bench { color: var(--ink-dim); }

/* holdings */
.holdings-host {
  background: var(--bg-2);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  padding: 6px 20px 16px;
}
.holdings {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  padding: 8px 0;
}
.industry-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ib-row {
  display: grid; grid-template-columns: 88px 1fr 56px;
  align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px;
}
.ib-row__name { color: var(--ink); font-family: var(--f-sans); font-size: 12px; font-weight: 500; }
.ib-row__bar { position: relative; height: 12px; background: var(--bg-3); border: 1px solid var(--hairline-2); border-radius: 1px; overflow: hidden; }
.ib-row__bar i { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(90deg, var(--lime-soft), var(--lime)); transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1); }
.ib-row__v { color: var(--lime); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.top-held { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.th-row {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  padding: 6px 10px;
  background: var(--bg-3);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
}
.th-row:hover { border-color: var(--lime); }
.th-row__rk { font-family: var(--f-mono); color: var(--ink-mute); font-size: 11px; font-weight: 600; }
.th-row__name { display: flex; flex-direction: column; gap: 1px; }
.th-row__n { font-size: 13px; color: var(--ink); font-weight: 500; }
.th-row__c { font-family: var(--f-mono); font-size: 10px; color: var(--ink-mute); }
.th-row__c em { color: var(--ink-dim); }
.th-row__pct { font-family: var(--f-mono); color: var(--lime); font-weight: 700; font-size: 13px; }
.th-row__pct .pct-sub { color: var(--ink-mute); font-weight: 400; font-size: 10px; margin-left: 4px; }

/* sub-h shared */
.sub-h {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-2);
  margin: 0 0 12px;
}
.sub-h__legend { display: inline-flex; gap: 18px; }
.sub-sub {
  font-family: var(--f-sans); font-size: 11px; font-weight: 600;
  color: var(--ink-mute);
  padding-bottom: 10px; border-bottom: 1px solid var(--hairline-2);
}

.lg { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-sans); font-size: 11px; color: var(--ink-dim); }
.lg i { width: 16px; height: 2px; display: inline-block; }
.lg--model i { background: var(--lime); box-shadow: 0 0 4px var(--lime-glow); }
.lg--bench i { background: var(--teal); }
.lg--dd i { background: rgba(255, 107, 60, 0.4); height: 8px; }
.lg--gain i { background: var(--lime); width: 10px; height: 10px; border-radius: 2px; box-shadow: 0 0 4px var(--lime-glow); }
.lg--loss i { background: var(--coral); width: 10px; height: 10px; border-radius: 2px; }

.ctrl {
  font-family: var(--f-sans); font-size: 11px;
  letter-spacing: 0.02em; color: var(--ink-mute);
}
.ctrl em { color: var(--ink); font-style: normal; font-weight: 600; margin-left: 6px; }
.ctrl em.gain { color: var(--lime); }

/* ═══════════════════════════════════════════════════════════════════════
   TAB 4 · 关于
   ═══════════════════════════════════════════════════════════════════════ */
/* About — sticky 左侧栏 + 右侧内容流 (Stripe/Linear docs 风格) */
.about-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 8px;
}

/* 左侧 sticky 目录 */
.about-sidebar {
  position: sticky;
  top: calc(var(--navH) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--navH) - 32px);
  overflow-y: auto;
}
.about-sidebar__inner {
  display: flex; flex-direction: column; gap: 14px;
  padding: 4px 0;
}
.about-sidebar__title {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  padding: 0 12px;
  margin-bottom: 4px;
}
.about-toc {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--hairline);
}
.about-toc__a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-mute);
  text-decoration: none;
  transition: all 0.16s;
}
.about-toc__a:hover { color: var(--ink); }
.about-toc__a--active {
  color: var(--lime);
  border-left-color: var(--lime);
  font-weight: 600;
}
.about-toc__a--warn { color: var(--ink-dim); }
.about-toc__a--warn.about-toc__a--active { color: var(--coral); border-left-color: var(--coral); }
.about-toc__chip {
  display: inline-block;
  padding: 1px 5px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.55;
  font-weight: 400;
}
.about-sidebar__foot {
  padding: 8px 14px;
  font-size: 12px;
}

/* 右侧内容 */
.about-content {
  display: flex; flex-direction: column;
  min-width: 0;
}
.about-sec {
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: calc(var(--navH) + 20px);
}
.about-sec:first-child { padding-top: 8px; }
.about-sec:last-child { border-bottom: none; }
.about-sec--warn {
  margin-top: 8px;
  padding: 20px 24px;
  border: 1px solid var(--coral-soft);
  border-left-width: 3px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 107, 60, 0.04), rgba(255, 107, 60, 0.01));
}

/* h2 + version chip header row (still used) */
.about-h2 {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 12px;
}
.about-h2 .about-h { margin: 0; }

@media (max-width: 880px) {
  .about-layout { grid-template-columns: 1fr; gap: 16px; }
  .about-sidebar { position: static; max-height: none; }
  .about-toc { flex-direction: row; flex-wrap: wrap; border-left: none; border-bottom: 1px solid var(--hairline); }
  .about-toc__a { border-left: none; border-bottom: 2px solid transparent; margin-left: 0; margin-bottom: -1px; }
  .about-toc__a--active { border-left: none; border-bottom-color: var(--lime); }
}
.ver-chip {
  display: inline-block;
  padding: 2px 9px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 3px;
  background: rgba(200, 249, 61, 0.08);
  font-weight: 500;
  vertical-align: middle;
}
body.light .ver-chip { background: rgba(79, 122, 8, 0.08); }

/* 35 features grid (inside model block) */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.feat-group {
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--bg);
}
.feat-group--warn {
  grid-column: 1 / -1;
  border-color: var(--amber);
  background: rgba(240, 181, 63, 0.06);
}
body.light .feat-group--warn { background: rgba(181, 128, 32, 0.05); }
.feat-h {
  margin: 0 0 6px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.feat-cnt {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--ink-mute);
  background: var(--bg-2);
  border: 1px solid var(--hairline);
}
.feat-cnt--warn {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(240, 181, 63, 0.1);
}
.feat-warn { color: var(--amber); font-weight: 700; }
.feat-list {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.75;
  color: var(--ink-dim);
  word-break: break-word;
  padding: 0; background: none;
  border-radius: 0;
}
.feat-list .dim { color: var(--ink-mute); font-size: 10.5px; }
.feat-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--ink-mute);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .feat-grid { grid-template-columns: 1fr; }
}
.about-h {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 40, "SOFT" 30, "WONK" 0;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.about-sec p { font-size: 13px; line-height: 1.7; color: var(--ink-dim); margin-bottom: 10px; }
.about-sec p:last-child { margin-bottom: 0; }
.about-sec strong { color: var(--ink); font-weight: 600; }
.about-sec p.dim { color: var(--ink-mute); font-size: 12px; }

.rules-compact, .steps-compact, .pipeline-compact {
  list-style: none; padding: 0; counter-reset: step-counter;
}
.rules-compact li {
  display: grid; grid-template-columns: 88px 1fr;
  align-items: baseline; gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 13px; line-height: 1.55;
}
.rules-compact li:last-child { border-bottom: none; }
.rules-compact .rk {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  align-self: center;
}

.steps-compact li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 13px; line-height: 1.65; color: var(--ink-dim);
  counter-increment: step-counter;
  border-bottom: 1px dashed var(--hairline);
}
.steps-compact li:last-child { border-bottom: none; }
.steps-compact li::before {
  content: counter(step-counter);
  position: absolute; left: 0; top: 7px;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-3); color: var(--lime);
  border-radius: 50%;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
}
.steps-compact strong { color: var(--ink); }

.pipeline-compact { counter-reset: pl-counter; }
.pipeline-compact li {
  position: relative;
  padding: 5px 0 5px 24px;
  font-size: 12px; line-height: 1.55; color: var(--ink-dim);
  counter-increment: pl-counter;
}
.pipeline-compact li::before {
  content: counter(pl-counter);
  position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--bg);
  border-radius: 3px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
}

.about-sec ul { list-style: none; padding: 0; }
.about-sec ul li {
  position: relative;
  padding: 4px 0 4px 16px;
  font-size: 13px; line-height: 1.6; color: var(--ink-dim);
}
.about-sec ul li::before {
  content: "▸"; position: absolute; left: 0; top: 4px;
  color: var(--coral);
}
.about-sec ul li strong { color: var(--ink); }

.footer--about {
  margin-top: 32px;
  padding: 18px 0;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  border-top: 1px solid var(--hairline);
}
.footer__mark { color: var(--lime); font-weight: 700; }
.footer__sep { color: var(--hairline-2); }
.footer__link {
  color: var(--lime); text-decoration: none; font-weight: 600;
}
.footer__link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .navbar { padding: 0 18px; gap: 16px; }
  .nav-tab { padding: 0 12px; font-size: 13px; }
  .tab-area { padding: 18px 18px 48px; }
  .tab1-grid { grid-template-columns: 1fr; }
  .sc-stats { grid-template-columns: repeat(2, 1fr); }
  .perf-stats { grid-template-columns: repeat(3, 1fr); }
  .holdings { grid-template-columns: 1fr; gap: 22px; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .navbar {
    grid-template-columns: auto auto;
    height: auto;
    padding: 8px 14px;
    flex-wrap: wrap;
  }
  .nav-tabs {
    grid-column: 1 / -1;
    width: 100%; overflow-x: auto;
    flex-wrap: nowrap; justify-content: flex-start;
  }
  .nav-tab { height: 42px; padding: 0 14px; white-space: nowrap; }
  .nav-cluster { display: none; }
  .brief-banner { font-size: 11px; gap: 8px; padding: 10px 14px; }
  .brief-banner__num { border-left: none; padding-left: 0; }
  .tab-area { padding: 14px 14px 36px; }
  .perf-stats { grid-template-columns: 1fr 1fr; }
  .picks { font-size: 11px; }
  .picks th, .picks td { padding: 8px 10px; }
  .picks .c-bar, .picks .c-ind { display: none; }
  .sc-day { grid-template-columns: 1fr; }
  .sc-day__date, .sc-day__summary { border: none; padding: 0; align-items: flex-start; }
  .sc-rangebar { flex-direction: column; align-items: stretch; gap: 10px; }
  .month-row { grid-template-columns: 60px 1fr 70px 70px; gap: 8px; font-size: 11px; }
}
