
/* ── base vars — dark-default ──────────────────────────────── */
:root {
  --bg:#0a0e16; --panel:#111826; --panel2:#0e1420; --line:#1d2740; --line2:#27324e;
  --tx:#e3e9f2; --mut:#8a97ac; --faint:#828b9c;
  --up:#37d07f; --dn:#ff6a6a; --amb:#f2b24d; --gold:#d6ab5c; --blue:#5d8bff; --pur:#9b8cff;
  --ink:#e3e9f2;
  --font-ui: Inter, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* glass */
  --glass-bg: rgba(16,22,30,.55);
  --glass-border: rgba(255,255,255,.10);
  --glass-hi: rgba(255,255,255,.06);
}
/* light-theme overrides */
[data-theme='light']:root, [data-theme='light'] {
  --bg:#f7f8fa; --panel:#ffffff; --panel2:#f0f2f5; --line:#e1e7ef; --line2:#c8d0dc;
  --tx:#1a2133; --mut:#5c6b80; --faint:#5f6a7a;
  /* Text-grade light values. Measured on #ffffff / #f7f8fa / #eef1f6 / #e8ebf1
     (theme.js's soft-contrast recipe outcascades this block's --bg, so the
     deepest canvas is #e8ebf1, not the #f7f8fa declared above — the shipped
     values were calibrated against white alone and landed 4.04–4.23:1 there).
     --pur retired: violet is lock-only (design system §5) and must never carry
     data — the allocation facet takes the aurora cyan instead. */
  --up:#177a3f; --dn:#c0392b; --amb:#8a5c00; --gold:#7d5f14; --blue:#1c4fe0; --pur:#0b6a92;
  --ink:#1a2133;
  --glass-bg: rgba(255,255,255,.75);
  --glass-border: rgba(0,0,0,.10);
  --glass-hi: rgba(255,255,255,.90);
}
*, *::before, *::after { box-sizing: border-box; }
html:not([data-lang="zh"]) .l-zh { display: none; }
html[data-lang="zh"] .l-en { display: none; }
html[data-lang="zh"] body { font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Microsoft JhengHei","Heiti SC",Inter,sans-serif; }
body {
  margin: 0; padding-top: 24px; background: var(--bg); color: var(--tx);
  font: 14px/1.45 var(--font-ui);
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
a { color: var(--ink-link, var(--blue)); text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; position: relative; z-index: 1; }
/* ── typography helpers ─── */
.kick { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
        color: var(--faint); margin: 0 0 10px; }
.mut { color: var(--mut); } .faint { color: var(--faint); } .up { color: var(--ink-up, var(--up)); }
.dn { color: var(--ink-down, var(--dn)); } .amb { color: var(--ink-warn, var(--amb)); } .gold { color: var(--gold); }

/* ── AURORA (ambient breathing layer) ───────────────────────── */
body.page-commod .aurora {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
/* Base blobs — green family (watch/act default) */
body.page-commod .aurora::before {
  content: ""; position: absolute; top: -180px; left: 8%;
  width: 780px; height: 540px; border-radius: 50%; filter: blur(90px);
  background: radial-gradient(ellipse, rgba(55,208,127,.10) 0%, transparent 70%);
  animation: au-drift-a 28s ease-in-out infinite alternate;
}
body.page-commod .aurora::after {
  content: ""; position: absolute; bottom: -80px; right: -60px;
  width: 660px; height: 560px; border-radius: 50%; filter: blur(90px);
  background: radial-gradient(ellipse, rgba(93,139,255,.08) 0%, transparent 70%);
  animation: au-drift-b 34s ease-in-out infinite alternate;
}
body.page-commod .aurora .au-a3 {
  position: absolute; top: 42%; left: 52%; transform: translate(-50%,-50%);
  width: 580px; height: 480px; border-radius: 50%; filter: blur(90px);
  background: radial-gradient(ellipse, rgba(55,208,127,.06) 0%, transparent 70%);
  animation: au-breathe 22s ease-in-out infinite;
}
/* State tint: amber (watch / protect) */
body.page-commod .aurora.au-amber::before { background: radial-gradient(ellipse, rgba(242,178,77,.10) 0%, transparent 70%); }
body.page-commod .aurora.au-amber .au-a3   { background: radial-gradient(ellipse, rgba(242,178,77,.06) 0%, transparent 70%); }
/* State tint: red (protect gains / sell) */
body.page-commod .aurora.au-red::before { background: radial-gradient(ellipse, rgba(255,106,106,.10) 0%, transparent 70%); }
body.page-commod .aurora.au-red .au-a3   { background: radial-gradient(ellipse, rgba(255,106,106,.06) 0%, transparent 70%); }
/* Light-mode — much fainter */
[data-theme='light'] body.page-commod .aurora::before { background: radial-gradient(ellipse, rgba(55,208,127,.04) 0%, transparent 70%); }
[data-theme='light'] body.page-commod .aurora .au-a3  { background: radial-gradient(ellipse, rgba(55,208,127,.025) 0%, transparent 70%); }
[data-theme='light'] body.page-commod .aurora.au-amber::before { background: radial-gradient(ellipse, rgba(156,98,18,.04) 0%, transparent 70%); }
[data-theme='light'] body.page-commod .aurora.au-amber .au-a3  { background: radial-gradient(ellipse, rgba(156,98,18,.025) 0%, transparent 70%); }
[data-theme='light'] body.page-commod .aurora.au-red::before { background: radial-gradient(ellipse, rgba(192,57,43,.04) 0%, transparent 70%); }
[data-theme='light'] body.page-commod .aurora.au-red .au-a3  { background: radial-gradient(ellipse, rgba(192,57,43,.025) 0%, transparent 70%); }
@keyframes au-drift-a { from{transform:translate(0,0)} to{transform:translate(40px,30px)} }
@keyframes au-drift-b { from{transform:translate(0,0)} to{transform:translate(-35px,25px)} }
@keyframes au-breathe { 0%,100%{opacity:.7} 50%{opacity:1} }
@media(prefers-reduced-motion:reduce) {
  body.page-commod .aurora, body.page-commod .aurora::before, body.page-commod .aurora::after, body.page-commod .aurora .au-a3 { animation:none; }
}

/* ── GLASS panels ─── */
.panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 1.5px 0 var(--glass-hi) inset;
  padding: 16px 18px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.panel.interactive:hover {
  border-color: rgba(93,139,255,.30);
  box-shadow: 0 6px 22px rgba(0,0,0,.30);
  transform: translateY(-1px);
}
[data-theme='light'] .panel {
  box-shadow: 0 4px 18px rgba(0,0,0,.10), 0 1px 0 rgba(255,255,255,.9) inset;
}
/* ── coverage matrix (B-F09-6): dark = luminance step; light = rule + type weight ── */
.cov { margin: 22px 0 0; }
.cov-deck { margin: 2px 0 12px; color: var(--mut); font-size: 13px; }
.cov-panel { padding: 6px 0; }
.cov-rows { list-style: none; margin: 0; padding: 0; }
.cov-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px 22px; align-items: start;
  padding: 14px 18px 13px 16px; border-top: 1px solid var(--line); border-left: 2px solid var(--line2); }
.cov-row:first-child { border-top: 0; }
.cov-covered { border-left-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, transparent); }
.cov-partial { border-left-style: dashed; }
.cov-none    { border-left-style: dotted; }
.cov-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.cov-fam { font-weight: 600; font-size: 14px; color: var(--tx); }
.cov-state { font-size: 11.5px; letter-spacing: .04em; padding: 2px 8px; border-radius: var(--r-pill,999px);
  border: 1px solid var(--line2); color: var(--mut); white-space: nowrap; }
.cov-covered .cov-state { border-color: color-mix(in srgb, var(--blue) 45%, transparent); color: var(--tx); }
.cov-reads { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.cov-k { display: block; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.cov-v { display: block; font-size: 13px; color: var(--tx); }
.cov-none .cov-v { color: var(--mut); }
.cov-detail { grid-column: 1 / -1; margin-top: 6px; font-size: 12px; color: var(--mut); }
.cov-detail summary { cursor: pointer; }
.cov-detail summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--r-ctl,4px); }
.cov-detail ul { margin: 6px 0 0; padding-left: 16px; }
.cov-detail code { font-size: 11.5px; color: var(--faint); }
.cov-foot { margin: 0; padding: 12px 18px 14px; color: var(--faint); font-size: 12px; border-top: 1px solid var(--line); }
@media (max-width: 780px) {
  .cov-row { grid-template-columns: 1fr; padding: 13px 14px 12px 13px; }
  .cov-reads { grid-template-columns: 1fr; gap: 8px; }
}
/* light = research workspace: the wash is removed; emphasis moves to rule + weight */
[data-theme='light'] .cov-covered { background: transparent; border-left-width: 3px; }
[data-theme='light'] .cov-covered .cov-fam { font-weight: 650; }
[data-theme='light'] .cov-state { background: var(--panel2); }
[data-theme='light'] .cov-covered .cov-state { background: color-mix(in srgb, var(--blue) 7%, transparent); border-color: color-mix(in srgb, var(--blue) 28%, transparent); }
.panel2 { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1.35fr 1fr; }
.g2e { grid-template-columns: 1fr 1fr; }
@media(max-width:780px){ .g2, .g2e { grid-template-columns: 1fr; } }

/* ── page header ─── */
.hd { display: flex; justify-content: space-between; align-items: flex-end;
      margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.hd h1 { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
          color: var(--mut); margin: 0 0 2px; }
.asof { font-size: 12px; color: var(--faint); }

/* ── section header ─── */
.sechd { display: flex; align-items: center; gap: 9px; margin: 22px 0 2px; }
.sechd h2 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: .01em; }
.sechd .q { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line2);
             color: var(--faint); font-size: 10px; display: flex; align-items: center;
             justify-content: center; cursor: default; flex-shrink: 0; }
.sechd .sub { font-size: 12px; color: var(--faint); margin: 0; }
.tierlabel { font-size: 10.5px; color: var(--faint); border: 1px solid var(--line2);
             border-radius: 5px; padding: 1px 6px; margin-left: auto; }

/* ── HERO ─── */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-bottom: 14px; }
/* min-width:0 is the load-bearing half. A grid item's default min-width is AUTO —
   its own min-content — so collapsing to one column at 780px did not stop the hero
   panel from holding a 411px floor against a 390px viewport and scrolling the page
   sideways (§15: the page never scrolls horizontally, any viewport, ever). */
.hero > * { min-width: 0; }
@media(max-width:780px){ .hero { grid-template-columns: 1fr; } }

/* Big stance word — the anchor */
.big-stance {
/* 390w is the design floor (§15). At 36px the stance headline set the hero's
   minimum width and the page scrolled sideways, amputating the sentence
   mid-word — a reader's first impression cut in half by the screen edge. */
@media(max-width:430px){.big-stance{font-size:28px;line-height:1.05;overflow-wrap:break-word}}
  font-size: 50px; font-weight: 800; letter-spacing: -.025em;
  line-height: .95; margin: 4px 0 10px;
}
.big-stance.t-watch    { color: var(--ink-warn, var(--amb)); text-shadow: 0 0 36px rgba(242,178,77,.35); }
.big-stance.t-protect  { color: var(--ink-down, var(--dn));  text-shadow: 0 0 36px rgba(255,106,106,.35); }
.big-stance.t-getready { color: var(--ink-up, var(--up));  text-shadow: 0 0 36px rgba(55,208,127,.35); }
.big-stance.t-act      { color: var(--ink-up, var(--up));  text-shadow: 0 0 36px rgba(55,208,127,.35); }
.big-stance.t-standaside { color: var(--mut); text-shadow: none; }
@media(max-width:560px){ .big-stance { font-size: 36px; } }

.stance-sub { font-size: 14px; color: var(--tx); max-width: 44ch; line-height: 1.55; margin-bottom: 12px; }
.stance-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 12px; color: var(--faint); border: 1px solid var(--line2);
  border-radius: 20px; padding: 4px 11px;
 flex-wrap:wrap; max-width:100%; }

/* Quadrant tooltip text injected via data-tip-en/zh — plain words per quadrant */

/* ── KPI RAIL (4 tiles under hero) ─── */
.kpi-rail {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px;
}
@media(max-width:640px){ .kpi-rail { grid-template-columns: repeat(2,1fr); } }
.kpi-tile {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 12px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 10px 13px;
}
[data-theme='light'] .kpi-tile { background: rgba(255,255,255,.8); }
.kpi-lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
           color: var(--faint); margin-bottom: 4px; }
.kpi-val { font-size: 18px; font-weight: 700; line-height: 1.1; }
.kpi-sub { font-size: 11px; color: var(--mut); margin-top: 2px; }

/* ── LIVE PRICE STRIP ─── */
.live-strip {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 20px;
}
@media(max-width:640px){ .live-strip { grid-template-columns: repeat(2,1fr); } }
.live-tile {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 12px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 11px 13px; position: relative;
}
[data-theme='light'] .live-tile { background: rgba(255,255,255,.8); }
.live-tile .lt-sym { font-size: 10.5px; font-weight: 700; letter-spacing: .8px;
                     text-transform: uppercase; color: var(--mut); }
.live-tile .lt-name { font-size: 9.5px; color: var(--faint); text-transform: uppercase;
                      letter-spacing: .5px; margin-top: 1px; }
.live-tile .lt-px {
  font-size: 20px; font-weight: 700; margin-top: 7px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.live-tile .lt-chg { font-size: 12px; font-weight: 650; margin-top: 1px; }
.live-tile .lt-chg.up  { color: var(--ink-up, var(--up)); }
.live-tile .lt-chg.dn  { color: var(--ink-down, var(--dn)); }
/* live pill */
.lt-pill {
  display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px;
  letter-spacing: .6px; color: var(--faint); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 999px; margin-top: 4px; opacity: .55;
  text-transform: uppercase;
}
.lt-pill .d { width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.lt-pill.on { opacity: 1; color: var(--ink-up, var(--up)); border-color: rgba(55,208,127,.4); }
.lt-pill.on .d { background: var(--up); box-shadow: 0 0 5px var(--up); }

/* ── dot bars (breadth panel) ─── */
.dotwrap { margin-top: 4px; }
.dotrow { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.dotrow .lbl { width: 148px; font-size: 12px; color: var(--mut); flex-shrink: 0; }
.dots { display: flex; gap: 3px; flex: 1; }
.dot {
  flex: 1; height: 15px; border-radius: 3px; background: var(--line);
  opacity: 0; transition: opacity .3s;
}
.dot.vis { opacity: 1; }
.dot.on-up  { background: var(--up); }
.dot.on-amb { background: var(--amb); }
.dotrow .cnt { width: 60px; text-align: right; font-size: 13px; font-weight: 600; flex-shrink: 0; }
/* monoline icon base (shared _icons.html.j2 set) — inline SVG, stroke=currentColor,
   so the glyph inherits its slot's ink and rides the theme/zh swaps for free. */
.ic-svg { width:1em; height:1em; display:inline-block; flex:none; fill:none; stroke:currentColor;
  stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; vertical-align:-.135em; }
.ic-xa { font-size:17px; line-height:1.4; color:var(--ink-link, var(--blue)); flex:none; }
.diverge { margin-top: 10px; font-size: 12.5px; color: var(--ink-warn, var(--amb)); display: flex; gap: 7px; align-items: flex-start; }

/* ── index card ─── */
.idx-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.idx-val { font-size: 26px; font-weight: 600; }
.idx-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { font-size: 11.5px; padding: 3px 9px; border-radius: 7px;
        border: 1px solid var(--line2); color: var(--mut); }
.chip b { color: var(--tx); font-weight: 600; }

/* ── SVG sparkline (area chart) ─── */
.spark-wrap { height: 52px; margin-top: 12px; position: relative; overflow: hidden; }
#idx-spark-svg { width: 100%; height: 100%; display: block; }

/* ── cycle chips ─── */
.cyc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cyc-chip { font-size: 11.5px; padding: 3px 9px; border-radius: 7px;
            border: 1px solid var(--line2); color: var(--mut); }
.cyc-chip b { font-weight: 600; }
.cyc-chip.ph-trough  b { color: var(--ink-down, var(--dn)); }
.cyc-chip.ph-recovery b { color: var(--ink-up, var(--up)); }
.cyc-chip.ph-downturn b { color: var(--ink-warn, var(--amb)); }
.cyc-chip.ph-expansion b { color: var(--ink-up, var(--up)); }
.cyc-chip.ph-peak b { color: var(--ink-down, var(--dn)); }

/* ── BOTTOMS & TOPS BOARD ─── */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
@media(max-width:640px){ .board { grid-template-columns: 1fr; } }
.bcol .bh { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
             margin-bottom: 12px; letter-spacing: .02em; }
.bcol .bh .ic { width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center;
                justify-content: center; font-size: 13px; flex-shrink: 0; }
.tcol .ic { background: rgba(255,106,106,.14); color: var(--ink-down, var(--dn)); }
.bcolb .ic { background: rgba(55,208,127,.14); color: var(--ink-up, var(--up)); }
.brow { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0;
        border-top: 1px solid var(--line); }
.brow:first-of-type { border-top: 0; }
.brow .nm { width: 88px; font-weight: 600; font-size: 13px; flex-shrink: 0; line-height: 1.3; }
.brow .st { flex: 1; font-size: 12px; color: var(--mut); line-height: 1.45; }
.rcpt-list { margin-top: 3px; font-size: 11px; color: var(--faint); }
/* animated meter */
.meter { width: 80px; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; flex-shrink: 0; }
.meter i { display: block; height: 100%; border-radius: 4px; width: 0; transition: width .7s ease-out; }
.meter.t i { background: linear-gradient(90deg, var(--amb), var(--dn)); }
.meter.b i { background: linear-gradient(90deg, var(--blue), var(--up)); }
.brow .sc { width: 28px; text-align: right; font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.badge { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px;
         letter-spacing: .02em; display: inline-block; margin-top: 2px; }
.badge.top  { background: rgba(242,178,77,.14); color: var(--ink-warn, var(--amb)); }
.badge.euf  { background: rgba(255,106,106,.16); color: var(--ink-down, var(--dn)); }
.badge.wash { background: rgba(93,139,255,.16); color: var(--ink-link, var(--blue)); }
.badge.neut { background: var(--panel2); border:1px solid var(--line); color: var(--faint); }

/* ── HEAT GRID ─── */
.legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--faint); margin: 2px 0 12px; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 9px; }
.cell {
  background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--line2);
  border-radius: 8px; padding: 9px 11px; position: relative; overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  cursor: default;
}
.cell:hover { transform: translateY(-1px); border-color: var(--line2); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.cell.c-up   { border-left-color: var(--up); }
.cell.c-dn   { border-left-color: var(--dn); }
.cell.c-wash { border-left-color: var(--blue); }
.cell.c-flat { border-left-color: var(--line2); }
.cell .cn { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.cell .cnm { font-weight: 600; font-size: 13px; }
.cell .cpc { font-size: 12.5px; font-weight: 600; }
.cell .cmeta { display: flex; justify-content: space-between; margin-top: 5px;
               font-size: 11px; color: var(--faint); }
.cell .cst { margin-top: 4px; font-size: 11px; color: var(--mut); }
/* W-C display-tier chips. Deliberately NOT green: "igniting" is a watch state,
   so it borrows the washout/watch blue. The dual-read chip carries no direction
   colour at all — the whole point is that the read is unresolved. */
.cchip { display: inline-block; margin-top: 5px; font-size: 10px; line-height: 1.35;
         padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line2);
         color: var(--mut); }
.cchip.ignite { border-color: rgba(93,139,255,.42); background: rgba(93,139,255,.12);
                color: var(--ink-link, var(--blue)); font-weight: 600; }
.cchip.dual   { border-style: dashed; color: var(--faint); }
/* 1m% bar at bottom of cell */
.cell .chg-bar {
  position: absolute; bottom: 0; left: 0; height: 3px; border-radius: 0 0 0 0;
  max-width: 100%; transition: width .7s ease-out;
}
.cell.c-up .chg-bar, .cell.c-flat.pos .chg-bar  { background: var(--up); }
.cell.c-dn .chg-bar, .cell.c-wash .chg-bar, .cell.c-flat.neg .chg-bar { background: var(--dn); }
.grp { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
       color: var(--faint); margin: 16px 0 8px; }

/* ── DETAIL TABS ─── */
.dtabs { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; margin: 14px 0 0;
         scrollbar-width: none; -ms-overflow-style: none; }
.dtabs::-webkit-scrollbar { display: none; }
.dtab {
  font: inherit; font-size: 13px; font-weight: 600;
  background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border); border-radius: 999px; padding: 6px 15px;
  color: var(--mut); cursor: pointer; transition: border-color .1s, color .1s, background .1s;
  white-space: nowrap; flex-shrink: 0;
}
.dtab:hover { border-color: var(--blue); color: var(--tx); }
.dtab.active { border-color: var(--blue); color: var(--ink-link, var(--blue)); background: var(--panel); }
.dpanel { margin-top: 14px; }
.dpanel[hidden] { display: none; }
.det { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:640px){ .det { grid-template-columns: 1fr; } }

/* MTF table — plain headers */
.mtf { width: 100%; border-collapse: collapse; font-size: 12px; }
.mtf th { text-align: left; color: var(--faint); font-weight: 500; padding: 5px 6px;
          border-bottom: 1px solid var(--line); }
.mtf td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.mtf tr:last-child td { border-bottom: 0; }
.pill { font-size: 10.5px; padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.pill.u { background: rgba(55,208,127,.14); color: var(--ink-up, var(--up)); }
.pill.d { background: rgba(255,106,106,.14); color: var(--ink-down, var(--dn)); }
.pill.n { background: var(--panel2); border:1px solid var(--line); color: var(--mut); }

/* cycle clock arc */
.clock-wrap { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.arc { width: 70px; height: 70px; border-radius: 50%; border: 6px solid var(--line);
       border-top-color: var(--dn); border-right-color: var(--dn); flex-shrink: 0; }
.arc.arc-up   { border-top-color: var(--up); border-right-color: var(--up); }
.arc.arc-amb  { border-top-color: var(--amb); border-right-color: var(--amb); }

/* conviction badge */
.conv-badge { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 8px;
              color: #fff; display: inline-block; }
.conv-sbuy { background: #0f8a4f; } .conv-buy { background: #3aa66f; }
.conv-hold { background: #5c6b80; } .conv-sell { background: #b8562c; }
.conv-ssell { background: var(--dn); }
/* conviction lean pill */
.lean-pill { font-size: 11.5px; padding: 3px 10px; border-radius: 7px; font-weight: 600; }
.lean-pos  { background: rgba(55,208,127,.14); color: var(--ink-up, var(--up)); }
.lean-neg  { background: rgba(255,106,106,.14); color: var(--ink-down, var(--dn)); }
.lean-neut { background: var(--line); color: var(--mut); }

/* shared verdict */
.verdict { display: inline-block; padding: 3px 9px; border-radius: 7px; font-size: 11px;
           font-weight: 700; white-space: nowrap; }
.v-conf { background: rgba(55,208,127,.14); color: var(--ink-up, var(--up)); }
.v-dir  { background: rgba(242,178,77,.14); color: var(--ink-warn, var(--amb)); }
.v-inv  { background: rgba(255,106,106,.14); color: var(--ink-down, var(--dn)); }
.v-ctx  { background: var(--line); color: var(--faint); }

/* ── CATALYSTS ─── */
.cat-list { display: flex; flex-direction: column; gap: 0; }
.cat-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px;
           border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cat-row:last-child { border: none; }
.cat-date { font-weight: 700; color: var(--tx); font-size: 13px; min-width: 128px; }
.cat-cd { font-size: 11px; color: var(--faint); margin-left: 4px; font-weight: 600; }
.cat-type { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 7px; }
.ct-FOMC    { background: rgba(242,178,77,.14); color: var(--ink-warn, var(--amb)); }
.ct-OPEC    { background: rgba(255,106,106,.14); color: var(--ink-down, var(--dn)); }
.ct-EIA_WPSR{ background: rgba(93,139,255,.14); color: var(--ink-link, var(--blue)); }
.cat-label { flex: 1; font-size: 13.5px; color: var(--tx); min-width: 160px; }
.disclaimer { margin-top: 12px; font-size: 12px; color: var(--faint); line-height: 1.6; font-style: italic; }

/* ── ALERT TIMELINE ─── */
.tl-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tlf { padding: 6px 14px; border-radius: 9px; background: var(--panel2); color: var(--mut);
       font-weight: 700; font-size: 13px; cursor: pointer; border: none; font: inherit; }
.tlf.active { background: var(--blue); color: #fff; }
.tl-day { margin-bottom: 18px; }
.tl-date { font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase;
           letter-spacing: .05em; margin: 0 0 10px; }
.tl-item { border-left: 2px solid var(--line); padding: 0 0 0 18px; margin-left: 6px; position: relative; }
.tl-item summary { display: flex; align-items: center; gap: 10px; padding: 9px 0;
                   cursor: pointer; list-style: none; flex-wrap: wrap; }
.tl-item summary::-webkit-details-marker { display: none; }
.tl-node { position: absolute; left: -7px; top: 15px; width: 12px; height: 12px;
           border-radius: 50%; background: var(--faint); border: 2px solid var(--panel); }
.tl-node.n-high   { background: var(--dn); }
.tl-node.n-medium { background: var(--blue); }
.tl-node.n-info   { background: var(--mut); }
.tl-chip { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 7px;
           background: var(--panel2); border:1px solid var(--line); color: var(--mut); }
.tl-chip.f-shock  { background: rgba(255,106,106,.14); color: var(--ink-down, var(--dn)); }
.tl-chip.f-risk   { background: rgba(242,178,77,.14); color: var(--ink-warn, var(--amb)); }
.tl-chip.f-driver { background: rgba(93,139,255,.14); color: var(--ink-link, var(--blue)); }
.tl-chip.f-alloc  { background: color-mix(in srgb, var(--pur) 14%, transparent); color: var(--ink-link, var(--pur)); }
.tl-asset { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 7px;
            background: var(--line2); color: var(--tx); }
.tl-head { font-weight: 600; color: var(--tx); font-size: 14px; flex: 1; min-width: 200px; }
.tl-time { font-size: 12px; color: var(--faint); font-weight: 600; }
.tl-detail { padding: 2px 0 12px; font-size: 13px; color: var(--mut); line-height: 1.6; }
.tl-item[hidden] { display: none; }
.tl-news { margin-top: 8px; padding: 8px 12px; background: var(--panel2);
           border-radius: 9px; border: 1px dashed var(--line); }
.tl-news-h { font-size: 12px; font-weight: 700; color: var(--tx); margin-bottom: 4px; }
.tl-news-item { display: block; font-size: 12.5px; color: var(--mut); padding: 2px 0; }
.tl-more { display: flex; justify-content: center; margin-top: 12px; }
.tl-more button { border: 1px solid var(--line); background: var(--panel2); color: var(--tx);
                  border-radius: 9px; padding: 8px 14px; font: inherit; font-size: 13px;
                  font-weight: 700; cursor: pointer; }
.tl-more button:hover { border-color: var(--blue); color: var(--ink-link, var(--blue)); }
.tl-more button .tl-hide { display: none; }
.tl-more button.is-expanded .tl-show { display: none; }
.tl-more button.is-expanded .tl-hide { display: inline; }
/* foot */
.foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
        font-size: 12px; color: var(--faint); line-height: 1.7; }
/* nav / site utilities */
html:not([data-lang="zh"]) .l-zh { display: none; }
html[data-lang="zh"] .l-en { display: none; }
.section-title { font-size: 13px; font-weight: 700; color: var(--mut); text-transform: uppercase;
                 letter-spacing: .05em; margin: 30px 4px 12px; }
/* receipt popovers */
.rcpt-toggle { font-size: 11px; color: var(--ink-link, var(--blue)); cursor: pointer; margin-top: 3px;
               display: inline-block; border: none; background: none; padding: 0; font: inherit; }
/* ── zh 红涨绿跌 (operator ruling 2026-07-21) ── */
/* pill.u=up, lean-pos=positive, v-conf=confirmed, bcolb .ic=bullish column icon = direction reads */
html[data-lang="zh"] .pill.u  { background:rgba(211,11,11,.10); }
html[data-lang="zh"] .lean-pos { background:rgba(211,11,11,.10); }
html[data-lang="zh"] .v-conf  { background:rgba(211,11,11,.10); }
html[data-lang="zh"] .bcolb .ic { background:rgba(211,11,11,.10); }

/* light: bloom off (DESIGN_DOCTRINE §5.8) — a coloured glow behind text is a jewel on graphite
     and a stain on white; dark keeps every one of these). */
html[data-theme="light"] :is(
  .big-stance.t-watch,
  .big-stance.t-protect,
  .big-stance.t-getready,
  .big-stance.t-act
) { text-shadow:none; }
