/* Daily Macro Briefing — "voice vs data": editorial serif over precise mono, on calm ink.
   Accent is driven by the current regime (set on <html data-regime>). */

:root {
  color-scheme: dark;

  --bg: #0b0c0e;
  --bg-2: #0e0f12;
  --surface: rgba(255, 255, 255, 0.026);
  --surface-2: rgba(255, 255, 255, 0.05);
  --hairline: rgba(255, 255, 255, 0.085);
  --hairline-soft: rgba(255, 255, 255, 0.05);

  --text: #e9e6df;
  --text-dim: #b3b2ab;
  --text-mute: #7c7f86;

  --up: #30d158;   /* iOS systemGreen (dark) — vibrant gain, for chips + graphs */
  --down: #ff453a; /* iOS systemRed (dark)  — vibrant loss, for chips + graphs */
  --amber: #e0b15e;

  /* regime accent (overridden per data-regime) */
  --accent: #6fc2a6;
  --accent-weak: rgba(111, 194, 166, 0.14);
  --accent-glow: rgba(111, 194, 166, 0.20);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* Apple-Stocks-style numerals — the system font (SF Pro on Apple devices) */
  --num: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --maxw: 30rem;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-regime="soft_landing"]        { --accent: #6fc2a6; --accent-weak: rgba(111,194,166,.14); --accent-glow: rgba(111,194,166,.20); }
html[data-regime="late_cycle_expansion"]{ --accent: #d8b25a; --accent-weak: rgba(216,178,90,.14);  --accent-glow: rgba(216,178,90,.20); }
html[data-regime="stagflation_risk"]     { --accent: #e0875e; --accent-weak: rgba(224,135,94,.15);  --accent-glow: rgba(224,135,94,.22); }
html[data-regime="recovery"]             { --accent: #6fa8d8; --accent-weak: rgba(111,168,216,.14); --accent-glow: rgba(111,168,216,.20); }
html[data-regime="slowdown"]             { --accent: #cf9a6b; --accent-weak: rgba(207,154,107,.14); --accent-glow: rgba(207,154,107,.20); }
/* W3 — neutral grey on purpose. "No call" is an absence of a finding, not a warning; an amber or
   red here would read as "something is wrong with the economy" when the truth is that the rules
   did not describe it. */
html[data-regime="indeterminate"]        { --accent: #8b9096; --accent-weak: rgba(139,144,150,.14); --accent-glow: rgba(139,144,150,.18); }

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

html, body { background: var(--bg); }

body {
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding: max(1.1rem, env(safe-area-inset-top)) 1.1rem max(1.6rem, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
}

/* ambient atmosphere — a faint accent glow + a grain wash, both calm */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 55% at 50% -8%, var(--accent-glow), transparent 60%),
    radial-gradient(90% 40% at 100% 0%, rgba(255,255,255,.03), transparent 55%);
  transition: background .8s var(--ease);
}
.ambient::after {
  content: "";
  position: absolute; inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
}

/* ── eyebrow ─────────────────────────────────────────── */
.eyebrow {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: .55em;
  margin-bottom: .9rem;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  /* LED: hot near-white core off-centre, accent body, then two halos bleeding into the surface */
  background: radial-gradient(circle at 35% 32%, #fff 0%, var(--accent) 55%, var(--accent) 100%);
  box-shadow: 0 0 3px var(--accent), 0 0 9px var(--accent-glow), 0 0 18px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;   /* "live" breath; reduced-motion kills it below */
}
/* dim the whole lamp AND pull the halos in, like an LED easing off current */
@keyframes pulse {
  50% { opacity: .5; box-shadow: 0 0 2px var(--accent), 0 0 4px var(--accent-glow), 0 0 8px var(--accent-glow); }
}

/* ── briefing card ───────────────────────────────────── */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
  animation: rise .7s var(--ease) both;
}
.card__bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 78%);
}
.card::after { /* faint accent wash inside the card */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 0% 0%, var(--accent-weak), transparent 55%);
}

.headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 6.2vw, 1.95rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

.quotes { list-style: none; margin: 1.15rem 0 0; display: grid; gap: .6rem; }
.quote {
  position: relative;
  padding-left: 1.15rem;
  font-size: .93rem;
  line-height: 1.45;
  color: var(--text-dim);
}
.quote::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.quote b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.conds { margin-top: 1.15rem; display: grid; gap: .55rem; }
.cond {
  font-size: .8rem;
  line-height: 1.4;
  color: var(--text-dim);
  padding-left: .85rem;
  border-left: 2px solid var(--accent-weak);
}
.cond .tag {
  font-weight: 600; color: var(--accent);
  letter-spacing: .02em;
}
.cond--change { font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--text-dim); }
/* release calendar — "when to lean in": small, muted, last line of the card */
.calendar {
  margin: 1.05rem 0 0;
  font-size: .72rem; letter-spacing: .02em; color: var(--text-mute);
}

/* fallback (state 4): plain template, no flourish */
.fallback {
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* ── indicator rows (Apple-Stocks) ───────────────────── */
.rows { list-style: none; margin: 1.5rem 0 0; }
.row {
  display: grid;
  /* fixed value column → every sparkline lands in the same place (Apple-Stocks alignment),
     instead of the value auto-sizing per row and shoving wide rows' sparks left. */
  grid-template-columns: 1fr 64px 6rem;
  align-items: center;
  gap: 1rem;
  padding: .72rem .2rem;
  border-top: 1px solid var(--hairline-soft);
  animation: fade .6s var(--ease) both;
}
.row:first-child { border-top: none; }
.row__label { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.row__name { font-size: .9rem; color: #fff; letter-spacing: -0.01em; }
/* provenance subtitle — deliberately tiny + muted: a sub-title for granular analysis, not a
   first-glance element. */
.row__sub {
  font-size: .64rem;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}
.row__spark { width: 64px; height: 26px; opacity: 1; }
.row__val {
  display: flex;
  flex-direction: column;
  align-items: flex-end;          /* value + chip stack vertically, right-aligned (Apple Stocks) */
  gap: .26rem;
  color: var(--text);
}
.row__num {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.05;
  color: #fff;
}
/* Apple-Stocks change chip — a filled rounded badge: vibrant green/red fill, white SF numerals.
   Applies everywhere a change pill appears (rows, talking-points, sheet header) EXCEPT the regime
   "driven by" driver badges (.driver-chip), which stay as subtle inline text. */
.chip:not(.driver-chip) {
  display: inline-block;
  padding: .07rem .44rem .11rem;
  border-radius: .45rem;
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .005em;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: filter .15s var(--ease);
}
.chip:not(.driver-chip):empty { display: none; }
.chip:not(.driver-chip).up   { background: var(--up);   color: #fff; }
.chip:not(.driver-chip).down { background: var(--down); color: #fff; }
.chip:not(.driver-chip).flat { background: rgba(255, 255, 255, .08); color: var(--text-mute); }
.chip:not(.driver-chip):hover { filter: brightness(1.08); }
.chip:not(.driver-chip):active { filter: brightness(.93); }
.chip:not(.driver-chip):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row[data-stale="true"] .row__val { color: var(--text-mute); }

/* ── regime snapshot (V2 Tier 0) ─────────────────────── */
.regime {
  display: flex;
  flex-wrap: wrap;                /* the "Driven by" badges wrap onto their own row below */
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: .68rem .9rem;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--accent-weak);
  animation: fade .6s var(--ease) both;
}
.regime__eyebrow {
  font-size: .62rem; font-weight: 500; letter-spacing: .24em;
  text-transform: uppercase; color: var(--text-mute);
}
.regime__eyebrow--sm { letter-spacing: .14em; }
/* driver-attribution badges — which indicators the classifier used to pick the regime */
.regime__drivers {
  flex-basis: 100%;
  display: flex; align-items: center; flex-wrap: wrap; gap: .45rem;
  margin-top: .55rem; padding-top: .55rem;
  border-top: 1px solid var(--hairline-soft);
}
.driver-chip { font-size: .64rem; cursor: default; }
.regime__value {
  font-family: var(--serif); font-size: 1.05rem; color: var(--text);
  display: inline-flex; align-items: center; gap: .5em;
}
.regime__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
}
/* plain-words translation of the regime label — one sentence, quiet, under the value */
.regime__meaning {
  flex-basis: 100%;
  font-size: .78rem; line-height: 1.45; color: var(--text-dim);
  margin-top: .2rem;
}

/* ── category sections (Charter Rev 3 data-set order; replaced the V2 core/drawer/markets split) ── */
.cat-head {
  margin-top: .9rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute);
  padding: .72rem .2rem .15rem; border-top: 1px solid var(--hairline-soft);
}
#rows .rows { margin-top: 0; }
#rows .rows .row:first-child { border-top: none; } /* the cat-head already draws the divider */
.markets__note {
  margin-top: .35rem; padding: 0 .2rem;
  font-size: .68rem; letter-spacing: .02em; color: var(--text-mute); font-style: italic;
}

/* ── footer ──────────────────────────────────────────── */
.rule { border: none; border-top: 1px solid var(--hairline); margin: 1rem 0 .85rem; }
.footer {
  font-size: .72rem;
  letter-spacing: .02em;
  color: var(--text-mute);
}
.footer .run { color: var(--text-dim); }
html[data-state="stale"] .footer { color: var(--amber); }
html[data-state="stale"] .footer .run { color: var(--amber); }

/* ── states ──────────────────────────────────────────── */
/* error: card collapses silently, rows still render (the invariant) */
html[data-state="error"] .card { display: none; }

/* loading skeletons */
.skeleton {
  border-radius: 7px;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skeleton--headline { height: 1.7rem; width: 86%; margin-bottom: .9rem; }
.skeleton--line { height: .9rem; width: 70%; margin-bottom: .5rem; }
.skeleton--line.short { width: 52%; }
.row--skeleton { height: 1.45rem; }
.row--skeleton::after {
  content: ""; display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer { from { background-position: 140% 0; } to { background-position: -40% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, ::after, ::before { animation: none !important; transition: none !important; }
}

@media (min-width: 32rem) {
  body { align-items: center; padding-top: 3rem; }
}

/* ── tappable rows (open the detail sheet) ───────────── */
.row { cursor: pointer; }
.row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }

/* ── detail sheet (V2 Tier 4 — Apple-Stocks-style) ───── */
/* iOS scroll lock: overflow:hidden alone is ignored by iOS Safari, so position:fixed the body
   (JS sets `top: -scrollY` on open and restores scroll on close). */
body.sheet-open { overflow: hidden; position: fixed; left: 0; right: 0; width: 100%; }
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 1;                                   /* rest opaque; entrance fades in, close fades out */
  transition: opacity .28s var(--ease);
  animation: sheetfade .28s var(--ease);        /* auto-plays the fade-in on show (no JS/rAF) */
  touch-action: none;                           /* a drag on the backdrop can't scroll the page behind */
  will-change: opacity;
}
.sheet__panel {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--maxw);
  max-height: 92vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;                 /* don't chain scroll to the body behind */
  background: var(--bg-2);
  border: 1px solid var(--hairline); border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.4rem 1.25rem calc(1.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
  transform: translateY(0);                     /* resting OPEN position (visible) */
  transition: transform .3s var(--ease);        /* drives drag spring-back + slide-down close */
  animation: sheetup .32s var(--ease);          /* auto-plays the slide-up on show (no JS/rAF) */
  will-change: transform;
}
.sheet__close {
  position: absolute; top: .9rem; right: .95rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: none; background: var(--surface-2); color: var(--text-dim);
  font-size: .78rem; line-height: 1; cursor: pointer;
}
.sheet__close:hover { color: var(--text); background: var(--hairline); }
.sheet__head { margin-bottom: 1rem; padding-right: 2rem; }
.sheet__name { font-size: .78rem; letter-spacing: .04em; color: #fff; text-transform: uppercase; }  /* as bright as .sheet__val */
.sheet__val { font-family: var(--num); font-size: 1.95rem; font-weight: 700; margin-top: .18rem; font-variant-numeric: tabular-nums; color: #fff; }
.sheet__sub { display: flex; align-items: center; gap: .55rem; margin-top: .4rem; }
.sheet__sub .chip { margin-top: 0; }
.sheet__period { font-size: .76rem; color: var(--text-mute); }
.sheet__tf { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: .9rem; }
.tf {
  flex: 1 1 auto; min-width: 2.3rem;
  padding: .36rem .2rem; border: none; border-radius: .5rem;
  background: var(--surface-2); color: #fff;
  font-family: var(--mono); font-size: .72rem; cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.tf:hover { color: #fff; }
.tf--on { background: var(--accent-weak); color: #fff; }
.tf:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sheet__chart { margin-bottom: 1rem; min-height: 120px; position: relative; }
#sheet-chart { touch-action: none; }   /* a finger-drag on the chart scrubs, not scrolls the sheet */
.chart { width: 100%; height: auto; display: block; }
.chart__grid { stroke: var(--hairline-soft); stroke-width: .5; }
.chart__ylab, .chart__xlab { fill: #fff; font-family: var(--num); font-size: 7px; }
.chart__line { stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.chart__area { stroke: none; }  /* fill is the vertical fade gradient (Apple-Stocks style) */
/* hover/touch scrubber: vertical crosshair + dot through the nearest point */
.chart__scrub-line { stroke: var(--accent); stroke-width: 1; }
.chart__scrub-dot  { fill: var(--accent); stroke: var(--bg); stroke-width: 1.5; }
.chart__readout {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  display: flex; gap: .45rem; align-items: baseline; white-space: nowrap;
  padding: .18rem .55rem; border-radius: .5rem;
  background: var(--bg-2); border: 1px solid var(--hairline);
  font-family: var(--num); font-variant-numeric: tabular-nums; pointer-events: none;
}
.chart__readout[hidden] { display: none; }
.chart__readout .ro-date { color: var(--text-mute); font-size: .72rem; }
.chart__readout .ro-val  { color: #fff; font-weight: 600; font-size: .82rem; }
.sheet__empty { color: var(--text-mute); font-size: .82rem; text-align: center; padding: 2.2rem 0; }
.sheet__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .9rem; margin-bottom: 1.1rem; }
.stat { display: flex; justify-content: space-between; gap: .5rem; padding: .44rem 0; border-bottom: 1px solid var(--hairline-soft); }
.stat dt { font-size: .76rem; color: var(--text-mute); }
.stat dd { font-family: var(--num); font-size: .78rem; color: #fff; font-variant-numeric: tabular-nums; text-align: right; }
.sheet__links { display: flex; gap: .6rem; }
.sheet__link {
  flex: 1; text-align: center; padding: .62rem; border-radius: .6rem;
  background: var(--surface-2); border: 1px solid var(--hairline);
  color: #fff; text-decoration: none; font-size: .8rem;
}
.sheet__link:hover { color: #fff; border-color: var(--accent); }

/* ── detail-sheet motion: grab handle + drag/open/close states ───────────── */
.sheet__handle {
  position: absolute; top: .55rem; left: 50%;
  width: 36px; height: 4px; margin-left: -18px;
  border-radius: 999px;
  background: var(--text-mute); opacity: .35;
  z-index: 2; cursor: grab; touch-action: none;
}
.sheet__handle:active { cursor: grabbing; }
/* nudge the close button + header down so they clear the handle */
.sheet__close { top: 1.1rem; }
.sheet__head  { padding-top: .35rem; touch-action: none; }  /* header is a drag-start zone → own the gesture */
/* entrance animations (auto-play when the sheet goes display:none → flex) */
@keyframes sheetup   { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheetfade { from { opacity: 0; } to { opacity: 1; } }
/* finger down → kill transition + entrance animation so the panel tracks the finger 1:1
   (JS writes inline transform/opacity each pointermove) */
.sheet--dragging .sheet__panel,
.sheet--dragging .sheet__backdrop { transition: none; animation: none; }

/* ── talking-points strip (deterministic) ────────────── */
.talking-points { margin-top: 1.1rem; }
.talking-points .eyebrow { margin-bottom: .5rem; }
.talking-points__row {
  display: flex; gap: .5rem; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: .15rem;
}
.talking-points__row::-webkit-scrollbar { display: none; }
.tp {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: .16rem;
  padding: .5rem .65rem;
  border: 1px solid var(--hairline-soft); border-radius: 10px; background: var(--surface);
  cursor: pointer; transition: border-color .15s var(--ease), filter .15s var(--ease);
}
.tp:hover { border-color: rgba(255, 255, 255, .16); }
.tp:active { filter: brightness(.97); }
.tp:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tp__name { font-size: .62rem; color: var(--text-mute); letter-spacing: .02em; }
.tp__val { font-family: var(--num); font-size: .95rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.tp .chip { margin-top: .12rem; }   /* pill styling comes from the global .chip rule above */

/* ── copy-to-clipboard affordance on quotes ──────────── */
.quote { cursor: pointer; border-radius: 6px; transition: color .15s var(--ease); }
.quote:hover { color: var(--text); }
.quote:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.quote:active { opacity: .7; }

/* ── footer bar + refresh button ─────────────────────── */
.footerbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* static methodology link under the footerbar; #footer itself is JS-owned */
.colophon { margin-top: 0.55rem; font-size: 0.72rem; }
.colophon a { color: var(--text-mute); text-decoration: none; }
.colophon a:hover { color: var(--text-dim); text-decoration: underline; }
.refresh {
  flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid var(--hairline); background: var(--surface-2); color: var(--text-dim);
  font-size: 1rem; line-height: 1; cursor: pointer;
  transition: color .15s var(--ease), transform .4s var(--ease);
}
.refresh:hover { color: var(--text); }
.refresh:active { transform: rotate(180deg); }
.refresh:disabled { opacity: .5; cursor: default; }
.refresh:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── toast ───────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 2.2rem; transform: translateX(-50%) translateY(8px); z-index: 60;
  padding: .5rem .9rem; border-radius: .6rem;
  background: var(--bg-2); border: 1px solid var(--hairline); color: var(--text);
  font-size: .8rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* W1 (Bruce, D+1 2026-08-06) — the basis line: the rule that fired and the values that
   satisfied it. Reuses --text-mute + the mono numerals already used for every other figure,
   so it reads as evidence rather than as a second headline. Absent on a fallthrough, where
   no test passed. */
.regime__basis {
  margin-top: 6px;
  font: 12px/1.5 var(--num);
  color: var(--text-mute);
}
.regime__basis-label {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10px;
}
.regime__basis ul { margin: 2px 0 0; padding-left: 14px; list-style: none; }
.regime__basis li { margin-bottom: 1px; }
.regime__basis li::before { content: "·"; margin-right: 6px; color: var(--accent); }
.regime__basis b { color: var(--text-dim); font-weight: 600; }
.basis__rule { font-family: var(--mono); font-size: 11px; opacity: 0.75; }
.regime__basis em { font-style: normal; opacity: 0.8; }
