/* Gemini Reset Time — theme. One fluid layout, 320–1440px. No external assets. */

:root {
  --bg: #f7f7f0;
  --surface: #ffffff;
  --tint: #f0f2e9;
  --tint-2: #e8ede1;
  --ink: #172520;
  --ink-2: #33433d;
  --muted: #55635b;
  --line: #dedfd5;
  --line-2: #c4cec3;

  --peri: #226044;
  --peri-ink: #174e36;
  --peri-50: #f0f4ec;
  --peri-100: #e1eadf;
  --peri-200: #c9dcce;

  --teal: #24734f;
  --teal-ink: #175335;
  --teal-100: #deefe2;
  --teal-300: #86ba91;

  --plum: #845023;
  --plum-100: #f5ead9;
  --plum-300: #caa477;

  --amber: #7a4b00;
  --amber-100: #fcecc9;

  --r-xl: 32px;
  --r-l: 24px;
  --r-m: 16px;
  --r-s: 10px;

  --shadow-1: 0 1px 2px rgba(23, 37, 32, .06), 0 8px 28px -16px rgba(23, 37, 32, .22);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --step--1: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-0: clamp(.975rem, .95rem + .15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + .7vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.35rem + 1.6vw, 2.75rem);

  /* surfaces that were hard-coded in V1 */
  --head-bg: rgba(247, 247, 240, .92);
  --hatch-a: #f2f3ed;
  --hatch-b: #ffffff;
  --off-ink: #6a766d;
  --seg-hover: rgba(255, 255, 255, .6);
  --hero-glow-1: rgba(201, 220, 206, .75);
  --hero-glow-2: rgba(245, 234, 217, .7);
  --heat-empty: #e8ece3;
  --err-bg: #fde7ea;
  --err-ink: #8a1c2b;
  color-scheme: light;
}

/* Dark theme: explicit choice, or the system setting when no choice is saved (grt.theme). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141b17; --surface: #1c2720; --tint: #233028; --tint-2: #2c3a30;
  --ink: #f0f4eb; --ink-2: #d5ded4; --muted: #acbdb0; --line: #37463b; --line-2: #4f6153;
  --peri: #327a52; --peri-ink: #a8d7b4; --peri-50: #223429; --peri-100: #2b4734; --peri-200: #4f7559;
  --teal: #61bc83; --teal-ink: #a3dab3; --teal-100: #1c3e2b; --teal-300: #4c8664;
  --plum: #e2b184; --plum-100: #382d21; --plum-300: #956e4b;
  --amber: #f0c070; --amber-100: #3a2d12;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px -16px rgba(0, 0, 0, .7);
  --head-bg: rgba(20, 27, 23, .92); --hatch-a: #233027; --hatch-b: #1b251d; --off-ink: #899b8d;
  --seg-hover: rgba(255, 255, 255, .08); --hero-glow-1: rgba(34, 96, 68, .28); --hero-glow-2: rgba(132, 80, 35, .25);
  --heat-empty: #2d3c32; --err-bg: #3e1a22; --err-ink: #ffb3bf;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141b17; --surface: #1c2720; --tint: #233028; --tint-2: #2c3a30;
    --ink: #f0f4eb; --ink-2: #d5ded4; --muted: #acbdb0; --line: #37463b; --line-2: #4f6153;
    --peri: #327a52; --peri-ink: #a8d7b4; --peri-50: #223429; --peri-100: #2b4734; --peri-200: #4f7559;
    --teal: #61bc83; --teal-ink: #a3dab3; --teal-100: #1c3e2b; --teal-300: #4c8664;
    --plum: #e2b184; --plum-100: #382d21; --plum-300: #956e4b;
    --amber: #f0c070; --amber-100: #3a2d12;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px -16px rgba(0, 0, 0, .7);
    --head-bg: rgba(20, 27, 23, .92); --hatch-a: #233027; --hatch-b: #1b251d; --off-ink: #899b8d;
    --seg-hover: rgba(255, 255, 255, .08); --hero-glow-1: rgba(34, 96, 68, .28); --hero-glow-2: rgba(132, 80, 35, .25);
    --heat-empty: #2d3c32; --err-bg: #3e1a22; --err-ink: #ffb3bf;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--peri-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: .9em; background: var(--peri-50); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--peri); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 0 0 12px 12px; text-decoration: none; }
.skip:focus { top: 0; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.fine { font-size: var(--step--1); color: var(--muted); }
.eyebrow { font-size: var(--step--1); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--plum); margin-bottom: .5rem; }

/* ---------- buttons & segmented controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: .55rem 1.1rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--peri-ink);
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--peri-50); border-color: var(--peri-200); }
.btn-primary { background: var(--peri); border-color: var(--peri); color: #fff; }
.btn-primary:hover { background: var(--peri-ink); border-color: var(--peri-ink); }
.btn-quiet { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: .2em; }
.btn-quiet:hover { background: var(--peri-50); }
.btn-small { min-height: 40px; padding: .4rem .9rem; font-size: .875rem; }
.btn[data-done="true"] { background: var(--teal-100); border-color: var(--teal-300); color: var(--teal-ink); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface);
  font-size: 1.4rem; line-height: 1; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--peri-50); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tint-2); max-width: 100%; }
.seg button {
  min-height: 40px; min-width: 44px; padding: .35rem .85rem;
  border: 0; border-radius: 999px; background: transparent;
  font-size: .875rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.seg button:hover { background: var(--seg-hover); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--peri-ink); box-shadow: 0 1px 3px rgba(23, 37, 32, .16); }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow-1); min-width: 0; }

/* ---------- header ---------- */
.site-head { position: relative; z-index: 20; background: var(--head-bg); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-head { backdrop-filter: blur(8px); } }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; margin-right: auto; }
.brand-mark { flex: none; }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font-weight: 700; letter-spacing: -.01em; }
.brand-sub { font-size: .75rem; color: var(--muted); }
.language-switch {
  order: 2;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 .62rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 650;
  text-decoration: none;
}
.language-switch:hover {
  background: var(--tint);
  border-color: var(--line-2);
  color: var(--ink);
  text-decoration: none;
}
.btn-alerts { order: 2; min-height: 40px; padding: .4rem .95rem; }
.nav { order: 3; flex-basis: 100%; }
.nav-list { display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: center; }
.nav-list > li > a, .menu > summary {
  display: inline-flex; align-items: center; min-height: 40px; padding: .3rem .7rem; border-radius: 999px;
  color: var(--ink-2); font-weight: 560; font-size: .9375rem; text-decoration: none; cursor: pointer;
}
.nav-list > li > a:hover, .menu > summary:hover { background: var(--tint-2); color: var(--ink); }
.nav-list a[aria-current="page"] { background: var(--peri-100); color: var(--peri-ink); }
.menu { position: static; }
.menu > summary { list-style: none; gap: .3rem; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.menu[open] > summary { background: var(--peri-100); color: var(--peri-ink); }
.menu[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.menu-list {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; margin-top: 4px;
  display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-1);
}
.menu-list a { display: grid; padding: .55rem .75rem; border-radius: 12px; text-decoration: none; color: var(--ink); }
.menu-list a:hover { background: var(--peri-50); }
.menu-list a[aria-current="page"] { background: var(--peri-100); }
.menu-list b { font-weight: 620; font-size: .95rem; }
.menu-list span { font-size: .8125rem; color: var(--muted); }

/* Small screens: two compact rows (brand + Alerts, then one scrollable nav row) instead of three. */
@media (max-width: 899px) {
  .head-row { gap: 4px 12px; padding-block: 6px 4px; }
  .nav { flex-basis: calc(100% + var(--gutter) * 2); max-width: calc(100% + var(--gutter) * 2); margin-inline: calc(var(--gutter) * -1); min-width: 0; }
  .nav-list {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    padding-inline: calc(var(--gutter) - .5rem); gap: 0;
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-list > li { flex: none; }
  .nav-list > li > a, .menu > summary { min-height: 44px; padding-inline: .6rem; font-size: .9rem; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .brand-mark { width: 30px; height: 30px; }
  .btn-alerts { min-height: 44px; padding-inline: .8rem; }
}
/* Narrow phones: brand, Display and Alerts always share row 1 (the brand takes the leftover
   width instead of forcing a wrap), and Alerts becomes a 44px bell whose text label stays
   in the accessibility tree. The nav keeps its own scrollable row 2. */
@media (max-width: 420px) {
  .head-row { column-gap: 6px; }
  .brand { flex: 1 1 0; min-width: 0; gap: 8px; }
  .brand-text { min-width: 0; }
  .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .btn-alerts { width: 44px; min-width: 44px; padding: 0; gap: 0; }
  .btn-alerts span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (min-width: 900px) {
  .head-row { flex-wrap: nowrap; }
  .nav { order: 1; flex-basis: auto; }
  .btn-alerts { order: 2; }
  .head-row { position: relative; }
  .nav-guides { position: relative; }
  .menu-list { left: auto; right: 0; width: 320px; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 380px at 12% -10%, var(--hero-glow-1), transparent 70%),
    radial-gradient(700px 300px at 95% 0%, var(--hero-glow-2), transparent 70%),
    var(--tint);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(20px, 4vw, 48px) clamp(28px, 4vw, 56px);
}
.hero-grid { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); } }
.hero-main { min-width: 0; }
.hero-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: clamp(12px, 2vw, 20px); }
.today-line { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--step--1); color: var(--ink-2); font-weight: 560; min-width: 0; }
.today-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--peri); flex: none; }
.hero-title { font-size: var(--step-3); line-height: 1.1; letter-spacing: -.025em; font-weight: 720; max-width: 22ch; }
.hero-scope { margin-top: .6rem; color: var(--muted); font-size: var(--step--1); max-width: 62ch; }

.answer { margin-top: clamp(16px, 2.4vw, 26px); padding-left: 16px; border-left: 4px solid var(--peri-200); }
.answer-big { font-size: var(--step-2); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.answer[data-kind="today"] .answer-big { color: var(--teal-ink); }
.answer[data-kind="yesterday"] .answer-big { color: var(--peri-ink); }
.answer[data-kind="no"] .answer-big, .answer[data-kind="none"] .answer-big { color: var(--ink); }
.answer[data-kind="today"] { border-left-color: var(--teal); }
.answer[data-kind="yesterday"] { border-left-color: var(--peri); }
.answer[data-kind="no"], .answer[data-kind="none"] { border-left-color: var(--line-2); }
.answer-sub { margin-top: .35rem; color: var(--ink-2); max-width: 62ch; }
.answer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; }
.answer-links .btn-small { min-height: 44px; }
.answer-links .btn-small::after { content: "↓"; }
.answer-links a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (max-width: 560px) {
  .hero { padding-top: 14px; }
  .hero-bar { margin-bottom: 10px; }
  .hero-scope { margin-top: .4rem; }
  .answer { margin-top: 12px; }
}
.stale-note { margin-top: .5rem; display: inline-block; padding: .25rem .6rem; border-radius: 8px; background: var(--amber-100); color: var(--amber); font-size: var(--step--1); font-weight: 600; }

/* capsule: the event stage track */
.capsule {
  margin-top: clamp(18px, 2.6vw, 28px);
  padding: 14px 16px 16px;
  border-radius: var(--r-l);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.capsule::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--line-2); }
.capsule[data-stage="confirmed"]::before { background: var(--teal); }
.capsule[data-stage="pending"]::before { background: repeating-linear-gradient(180deg, var(--plum) 0 8px, transparent 8px 14px); }
.capsule[data-stage="pending-stale"]::before { background: repeating-linear-gradient(135deg, #93a596 0 4px, transparent 4px 8px); }
.capsule[data-stage="scheduled"]::before, .capsule[data-stage="window-open"]::before { background: var(--peri); }
.capsule[data-stage="window-expired"]::before, .capsule[data-stage="scheduled-passed"]::before { background: repeating-linear-gradient(135deg, var(--peri) 0 4px, transparent 4px 8px); }
.capsule[data-stage="rollout"]::before { background: linear-gradient(180deg, var(--peri-ink) 50%, var(--peri-200) 50%); }
.capsule-label { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: var(--step--1); color: var(--muted); margin-bottom: 12px; }
.capsule-kicker { font-weight: 650; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
.capsule-event { font-weight: 650; color: var(--ink); font-size: .9375rem; min-width: 0; }
.capsule-related { margin-top: 12px; }
.capsule-state { font-weight: 650; color: var(--ink); padding: .1rem .55rem; border-radius: 999px; background: var(--peri-100); }
.capsule[data-stage="confirmed"] .capsule-state { background: var(--teal-100); color: var(--teal-ink); }
.capsule[data-stage^="pending"] .capsule-state { background: var(--plum-100); color: var(--plum); }

.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: st; }
.stage { position: relative; display: grid; gap: 2px; padding: 26px 6px 0 0; min-width: 0; }
.stage::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--line); }
.stage:first-child::before { left: 9px; }
.stage:last-child::before { right: auto; width: 9px; }
.stage.is-done::before, .stage.is-active::before { background: var(--teal-300); }
.stage-dot { position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); z-index: 1; }
.stage.is-done .stage-dot { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 3px var(--surface); }
.stage.is-active .stage-dot { background: var(--peri); border-color: var(--peri); box-shadow: 0 0 0 5px var(--peri-100); }
.stage[data-stage-key="signal"].is-done .stage-dot, .stage[data-stage-key="signal"].is-active .stage-dot { background: var(--surface); border: 3px dashed var(--plum); box-shadow: none; }
.stage-name { font-weight: 650; font-size: .875rem; }
.stage.is-none .stage-name { color: var(--muted); font-weight: 560; }
.stage-time { font-size: .75rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 560px) {
  .stages { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .stage { padding: 0 0 0 30px; }
  .stage::before { top: 18px; bottom: -10px; left: 8px; right: auto; width: 2px; height: auto; }
  .stage:first-child::before { left: 8px; }
  .stage:last-child::before { display: none; }
  .stage-name { display: inline; }
}
.capsule.just-filled::before { animation: fillIn .9s ease-out 1; transform-origin: top; }
@keyframes fillIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.official-clock { margin-top: 14px; padding: 16px 18px; border-radius: var(--r-l); background: var(--peri); color: #fff; }
.official-clock .clock-kicker { font-size: .8125rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; opacity: .92; }
.official-clock .clock-value { font-family: var(--mono); font-size: var(--step-2); font-weight: 700; letter-spacing: -.01em; margin: .1rem 0 .25rem; font-variant-numeric: tabular-nums; }
.official-clock .clock-detail { font-size: var(--step--1); opacity: .95; }
.official-clock a { color: #fff; }
.official-clock[data-kind="window-expired"], .official-clock[data-kind="scheduled-passed"] { background: var(--ink-2); }

.facts { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); }
.fact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .fact { grid-template-columns: 11.5rem minmax(0, 1fr); } }
.fact dt { font-size: .8125rem; font-weight: 650; color: var(--muted); letter-spacing: .01em; padding-top: .1rem; }
.fact dd { min-width: 0; }
.elapsed { display: inline-flex; flex-wrap: wrap; gap: .35rem; margin-left: .5rem; padding: .05rem .55rem; border-radius: 999px; background: var(--teal-100); color: var(--teal-ink); font-size: .875rem; }
.elapsed-label { font-weight: 650; }
.watch-note { display: block; font-size: var(--step--1); color: var(--muted); }
.hero-main > .fine { margin-top: .6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
@media (max-width: 420px) { .hero-actions .btn { flex: 1 1 auto; } }

/* ---------- forecast ---------- */
.hero-side { min-width: 0; }
.fc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fc-title { font-size: var(--step-1); font-weight: 680; letter-spacing: -.01em; }
.fc-q { margin-top: 12px; color: var(--ink-2); font-size: .9375rem; }
.fc-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin: 10px 0 4px; }
.fc-value { font-size: var(--step-1); font-weight: 650; line-height: 1.2; color: var(--muted); padding: .1rem .55rem; border-radius: 999px; background: var(--peri-50); }
.fc-value[data-unavailable="true"] { color: #7e8c81; }
.fc-tally { font-size: var(--step-2); font-weight: 700; color: var(--peri-ink); letter-spacing: -.015em; line-height: 1.2; }
.fc-page .fc-tally { font-size: var(--step-3); }
.fc-mini { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .9375rem; }
.fc-mini th, .fc-mini td { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid var(--line); font-weight: 560; }
.fc-mini td { text-align: right; }
.fc-mini tr.is-selected { background: var(--peri-50); }
.fc-mini tr.is-selected th { color: var(--peri-ink); font-weight: 680; }
.fc-lower .section-lede { max-width: 72ch; }
.fc-lower .gapbars { max-width: 760px; }
.fc-note { font-size: .9375rem; color: var(--ink); background: var(--peri-50); border-radius: 12px; padding: .55rem .75rem; margin-top: 6px; }
.fc-label { margin-top: 8px; font-size: .8125rem; color: var(--plum); font-weight: 600; }
.fc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.fc-stats > div { padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fc-stats dt { font-size: .75rem; font-weight: 650; color: var(--muted); }
.fc-stats dd { font-weight: 650; font-size: .9375rem; }
.fc-window { margin-top: 10px; font-size: var(--step--1); color: var(--muted); }

.gapbars { margin-top: 14px; display: grid; gap: 8px; position: relative; }
.gapbar { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: .8125rem; }
.gapbar-label { color: var(--muted); white-space: nowrap; }
.gapbar-track { position: relative; height: 10px; border-radius: 999px; background: var(--tint-2); overflow: visible; }
.gapbar-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--peri-200); }
.gapbar.is-in .gapbar-fill { background: var(--teal); }
.gapbar-limit { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--plum); }
.gapbar-value { font-weight: 600; white-space: nowrap; }
@media (max-width: 380px) { .gapbar { grid-template-columns: minmax(0, 1fr) auto; } .gapbar-track { grid-column: 1 / -1; grid-row: 2; } }
.gapbars-lg .gapbar { font-size: .875rem; grid-template-columns: 7.5rem minmax(0, 1fr) auto; }
.gapbars-lg .gapbar-track { height: 14px; }
@media (max-width: 380px) { .gapbars-lg .gapbar { grid-template-columns: minmax(0, 1fr) auto; } }

.fc-page-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .fc-page-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.fc-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.fc-table caption { text-align: left; font-weight: 680; padding-bottom: 6px; }
.fc-table th, .fc-table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); }
.fc-table thead th { font-size: .75rem; color: var(--muted); font-weight: 650; }
.fc-table tr.is-selected { background: var(--peri-50); }
.fc-table tr.is-selected th { color: var(--peri-ink); }
.charts { display: grid; gap: 20px; margin-top: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .charts { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(16px, 2vw, 24px); min-width: 0; }
.chart figcaption { font-weight: 650; display: grid; gap: 2px; }
.wdbars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 14px; align-items: end; }
.wdbar { display: grid; justify-items: center; gap: 4px; font-size: .8125rem; }
.wdbar-track { position: relative; width: 100%; max-width: 36px; height: 110px; border-radius: 10px; background: var(--tint-2); overflow: hidden; }
.wdbar-fill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--plum-300); border-radius: 10px 10px 0 0; }
.wdbar-count { font-weight: 650; }
.wdbar-day { color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-block: clamp(28px, 4.5vw, 56px) 0; }
.section-head { margin-bottom: 18px; max-width: 70ch; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; max-width: none; }
.section-head-row > div { max-width: 62ch; }
.section-title { font-size: var(--step-2); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-bottom: .4rem; }
.section-lede { color: var(--muted); }

/* calendar */
.tracker-calendar {
  --cal-confirmed: #148642;
  --cal-signal: #cf5400;
  --cal-scheduled: #3266e2;
  --cal-rollout: #00818c;
}
.cal-layout { display: grid; gap: clamp(18px, 3vw, 32px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .cal-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(12px, 2.4vw, 24px); min-width: 0; }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cal-month { font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em; }
.cal-tz { display: inline-block; font-size: .75rem; font-weight: 650; color: var(--muted); background: var(--tint); border-radius: 999px; padding: .1rem .5rem; vertical-align: middle; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow span { text-align: center; font-size: .75rem; font-weight: 650; color: var(--muted); padding: 4px 0; }
.cal-day, .cal-blank { min-height: 52px; }
.cal-day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  padding: 7px 0 6px; border: 1px solid transparent; border-radius: 14px; background: transparent;
  font-size: .9375rem; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 0;
}
button.cal-day { cursor: pointer; transition: background-color .12s, border-color .12s; }
.cal-day.has-records {
  background: var(--tint);
  background: color-mix(in srgb, var(--cal-day-color, var(--line-2)) 12%, var(--surface));
  border-color: var(--line);
  border-color: color-mix(in srgb, var(--cal-day-color, var(--line-2)) 42%, var(--surface));
  font-weight: 700;
}
.cal-day:has(.mk-confirmed:only-child) { --cal-day-color: var(--cal-confirmed); }
.cal-day:has(.mk-signal:only-child) { --cal-day-color: var(--cal-signal); }
.cal-day:has(.mk-scheduled:only-child) { --cal-day-color: var(--cal-scheduled); }
.cal-day:has(.mk-rollout:only-child) { --cal-day-color: var(--cal-rollout); }
.cal-day.is-out:not(.has-records), .cal-day.is-unchecked:not(.has-records) { color: var(--off-ink); background: repeating-linear-gradient(135deg, var(--hatch-a) 0 4px, var(--hatch-b) 4px 8px); }
.cal-day.is-today { border-color: var(--peri); }
.cal-day.is-today .cal-num { color: var(--peri-ink); }
@media (hover: hover) {
  button.cal-day:not([aria-pressed="true"]):hover { border-color: var(--peri); }
  button.cal-day:not(.has-records):not([aria-pressed="true"]):hover { background: var(--peri-50); }
}
/* A selection ring stays distinct from the event colors. */
button.cal-day[aria-pressed="true"],
button.cal-day[aria-pressed="true"]:hover { border-color: var(--peri); color: var(--ink); box-shadow: inset 0 0 0 1px var(--peri); }
button.cal-day[aria-pressed="true"]:focus-visible { outline-color: var(--ink); }
button.cal-day[aria-pressed="true"] .cal-num { color: var(--ink); }
.cal-jump { margin-top: 8px; }
@media (min-width: 900px) { .cal-jump { display: none; } }
.cal-section:focus, .day-panel:focus { outline: none; }
.cal-marks { display: flex; gap: 3px; min-height: 12px; align-items: center; }
.mk {
  display: inline-block;
  width: var(--cal-mark-size, 12px);
  height: var(--cal-mark-size, 12px);
  flex: none;
  background: var(--mark-color);
}
.mk-confirmed { --mark-color: var(--cal-confirmed); border-radius: 50%; }
.mk-signal { --mark-color: var(--cal-signal); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mk-scheduled { --mark-color: var(--cal-scheduled); border-radius: 1px; }
.mk-rollout { --mark-color: var(--cal-rollout); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .8125rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.sw-out { background: repeating-linear-gradient(135deg, var(--hatch-a) 0 3px, var(--hatch-b) 3px 6px); border: 1px solid var(--line-2); }
.sw-empty { background: var(--heat-empty); }
@media (max-width: 400px) {
  .cal-dow, .cal-grid { gap: 2px; }
  .cal-day, .cal-blank { min-height: 44px; }
  .cal-day { border-radius: 10px; font-size: .875rem; padding-top: 5px; }
}
@media (max-width: 500px) {
  .cal-marks { --cal-mark-size: 10px; }
  .cal-marks:has(.mk:nth-child(3)) {
    display: grid;
    grid-template-columns: repeat(2, var(--cal-mark-size));
    gap: 2px 3px;
  }
}

.day-panel { min-width: 0; padding: clamp(4px, 1vw, 8px) 0; }
.day-panel:focus { outline: none; }
.day-title { font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em; }
.day-meta { color: var(--muted); font-size: var(--step--1); margin: .25rem 0 12px; }
.day-list { display: grid; gap: 12px; }
.day-item { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.day-item:first-child { border-top: 0; padding-top: 0; }
.day-time { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.day-time small { display: block; font-family: var(--font); font-weight: 600; font-size: .7rem; color: var(--muted); }
.day-body { min-width: 0; display: grid; gap: 4px; }
.day-body h4 { margin: 0; font-size: 1rem; font-weight: 650; }
.day-empty { padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px dashed var(--line-2); }
.day-empty b { display: block; margin-bottom: 2px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: .35rem; width: max-content; max-width: 100%; padding: .1rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .01em; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-confirmed { background: var(--teal-100); color: var(--teal-ink); }
.chip-signal { background: var(--plum-100); color: var(--plum); }
.chip-signal::before { background: transparent; border: 2px dashed currentColor; width: 5px; height: 5px; }
.chip-scheduled { background: var(--peri-100); color: var(--peri-ink); }
.chip-scheduled::before { border-radius: 1px; transform: rotate(45deg); }
.chip-rollout { background: var(--peri-100); color: var(--peri-ink); }
.chip-target { background: var(--peri); color: #fff; }

/* evidence log */
.list-count { font-size: var(--step--1); color: var(--muted); margin-bottom: 6px; }
.log { border-top: 1px solid var(--line-2); }
.log-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 760px) { .log-item { grid-template-columns: 13rem minmax(0, 1fr); } }
.log-when { font-family: var(--mono); font-size: .875rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: .15rem; }
.log-body { min-width: 0; display: grid; gap: 5px; justify-items: start; }
.log-title { font-size: 1.0625rem; font-weight: 680; line-height: 1.35; letter-spacing: -.005em; }
.log-scope { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.log-summary { color: var(--ink); max-width: 72ch; }
.log-related { font-size: .875rem; color: var(--teal-ink); }
.log-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .875rem; color: var(--muted); }
.log-meta a { min-height: 32px; display: inline-flex; align-items: center; }
.log-meta .btn-link { border: 0; background: none; padding: 0; min-height: 32px; color: var(--peri-ink); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; font-size: inherit; }
.log-baseline { font-size: .875rem; color: var(--amber); background: var(--amber-100); border-radius: 8px; padding: .15rem .55rem; }
/* Touch screens: 44px targets for frequent controls, without widening anything. */
@media (max-width: 760px), (pointer: coarse) {
  .log-meta a, .log-meta .btn-link { min-height: 44px; }
  .seg button { min-height: 44px; }
  .btn-small { min-height: 44px; }
}
.log-compact .log-item { padding: 12px 0; }
.list-empty { padding: 16px 0; color: var(--muted); }
.more { margin-top: 10px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin-bottom: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field-group legend { font-size: .875rem; font-weight: 650; color: var(--ink-2); }
.field-search { flex: 1 1 260px; }
input[type="search"], input[type="text"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .8rem;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink);
}
textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--peri); outline-offset: 1px; border-color: var(--peri); }
.hint { font-size: .8125rem; color: var(--muted); }
.form { display: grid; gap: 14px; align-content: start; }
.form-status:empty { display: none; }
.form-status { padding: .55rem .8rem; border-radius: 10px; background: var(--peri-50); color: var(--ink); font-weight: 600; font-size: .9375rem; }
.form-error { padding: .55rem .8rem; border-radius: 10px; background: var(--err-bg); color: var(--err-ink); font-weight: 600; font-size: .9375rem; }
.field-group { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* context & routes */
.context-grid { display: grid; gap: 18px 28px; grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
@media (min-width: 820px) { .context-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.context-item { padding-top: 12px; border-top: 3px solid var(--peri-200); min-width: 0; }
.context-item:nth-child(2) { border-top-color: var(--teal-300); }
.context-item:nth-child(3) { border-top-color: var(--plum-300); }
.context-item h3 { font-size: 1rem; font-weight: 680; margin-bottom: .3rem; }
.context-item p { font-size: .9375rem; color: var(--ink-2); }

.routes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 6px; }
.routes a { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, background-color .15s; }
.routes a:hover { border-color: var(--peri-200); background: var(--peri-50); }
.routes b { font-weight: 660; color: var(--peri-ink); }
.routes span { font-size: .875rem; color: var(--muted); }

.faq-list { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); }
@media (min-width: 900px) { .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; } }
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.0625rem; font-weight: 660; margin-bottom: .3rem; }
.faq-item p { color: var(--ink-2); }

/* ---------- inner pages ---------- */
.page-head, .doc-head { padding-block: clamp(28px, 5vw, 56px) 0; max-width: calc(var(--wrap)); }
.doc-title { font-size: var(--step-3); font-weight: 720; letter-spacing: -.025em; line-height: 1.12; max-width: 24ch; }
.lede { margin-top: .7rem; font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; line-height: 1.5; }
.page-head .fine { margin-top: .6rem; }
.page-tz { margin-top: 14px; }
.doc { padding-bottom: 8px; }
.doc .prose { margin-top: clamp(20px, 3vw, 32px); }
.prose, .prose-narrow { max-width: 74ch; }
.prose > * + *, .prose-narrow > * + * { margin-top: 1rem; }
.prose h2, .prose-narrow h2 { font-size: var(--step-1); font-weight: 700; letter-spacing: -.01em; margin-top: 2rem; }
.prose h3, .prose-narrow h3 { font-size: 1.0625rem; font-weight: 680; margin-top: 1.4rem; }
.prose ul, .prose-narrow ul { list-style: disc; padding-left: 1.3rem; }
.prose ol, .prose-narrow ol { list-style: decimal; padding-left: 1.3rem; }
.prose li + li, .prose-narrow li + li { margin-top: .35rem; }
.prose table, .prose-narrow table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td, .prose-narrow th, .prose-narrow td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--line); min-width: 8rem; }
.prose thead th, .prose-narrow thead th { font-size: .8125rem; color: var(--muted); }
.prose pre, .prose-narrow pre { background: #1c2921; color: #ebf3ea; padding: 14px 16px; border-radius: var(--r-m); overflow-x: auto; font-size: .85rem; line-height: 1.55; }
.prose pre code, .prose-narrow pre code { background: none; border: 0; padding: 0; color: inherit; overflow-wrap: normal; }
.doc-updated { margin-top: 2rem; font-size: var(--step--1); color: var(--muted); }

.callout { padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; max-width: 74ch; }
.callout-open { border-color: var(--plum-300); background: var(--plum-100); }

.status-list { border-top: 1px solid var(--line-2); max-width: 80ch; }
.status-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .status-row { grid-template-columns: 12rem minmax(0, 1fr); } }
.status-row dt { font-weight: 650; color: var(--muted); font-size: .9rem; }

.channels { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.channel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.channel h3 { font-size: var(--step-1); font-weight: 700; }
.channel p { color: var(--ink-2); font-size: .9375rem; }
.channel-url code { display: block; padding: .45rem .6rem; }
.channel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

.contact-grid, .planner-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .contact-grid, .planner-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact-side { min-width: 0; }
.contact-side > * + * { margin-top: 1rem; }
.contact-side h2:not(.section-title) { font-size: var(--step-1); font-weight: 700; margin-top: 1.6rem; }

.pl-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin-top: 10px; border-top: 1px solid var(--line); }
.pl-results > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pl-results dt { font-size: .8125rem; font-weight: 650; color: var(--muted); }
.pl-results dd { font-size: var(--step-1); font-weight: 700; }
.pl-verdict { margin: 14px 0 8px; padding: .7rem .85rem; border-radius: 12px; background: var(--peri-50); font-weight: 560; }
.pl-verdict[data-ok="true"] { background: var(--teal-100); color: var(--teal-ink); }
.pl-verdict[data-ok="false"] { background: var(--plum-100); color: var(--plum); }

.api-clock { max-width: 640px; }
.api-clock .clock-value { font-size: var(--step-3); font-weight: 700; color: var(--peri-ink); margin: .3rem 0; letter-spacing: -.02em; }

.notfound { padding-bottom: 24px; }
.notfound .routes { margin-top: 20px; }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(48px, 7vw, 88px); background: #1c2921; color: #d6e2d8; padding-block: 36px 28px; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-about, .foot-fine { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } .foot-about { grid-column: auto; } }
.foot-about { display: grid; gap: .6rem; font-size: .9rem; max-width: 52ch; }
.foot-brand { font-weight: 700; color: #fff; font-size: 1.05rem; }
.foot-h { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #b8c8bd; margin-bottom: .4rem; }
.foot-col ul { display: grid; gap: 2px; }
.foot-col a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; font-size: .9375rem; }
.foot-col a:hover { text-decoration: underline; }
.foot-fine { font-size: .8125rem; color: #b8c8bd; border-top: 1px solid #384a3e; padding-top: 16px; }

/* =====================================================================
   V2: answer-first hero, pod visual, menus, replay, tally, heatmap
   ===================================================================== */

/* header display menu */
.menu-prefs { order: 2; }
.menu-prefs > summary { gap: .4rem; }
.menu-prefs > summary svg { flex: none; }
.prefs-panel { gap: 6px; padding: 12px 14px; }
.prefs-panel .seg { width: max-content; max-width: 100%; }
.prefs-h { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.prefs-note { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 560px) {
  .prefs-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-prefs > summary { min-height: 44px; min-width: 44px; justify-content: center; }
  .menu-prefs > summary::after { display: none; }
}
@media (min-width: 900px) {
  .menu-prefs { position: relative; }
  .menu-prefs .menu-list { left: auto; right: 0; width: 300px; }
}

/* hero layout: one grid, the pod sits beside the answer on phones and spans the right column on desktop */
.hero-grid {
  grid-template-columns: minmax(0, 1fr) clamp(72px, 24vw, 128px);
  grid-template-areas: "bar bar" "head head" "answer pod" "rows rows" "clock clock" "actions actions" "more more";
  /* Row spacing comes from margins, so a hidden official clock leaves no empty gap. */
  gap: 0 14px;
  --hero-gap: 12px;
}
.hero-grid > * + * { margin-top: var(--hero-gap); }
.hero-grid > .hero-visual { margin-top: 0; }
@media (max-width: 560px) { .hero-grid { --hero-gap: 10px; } }
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr);
    grid-template-areas: "bar pod" "head pod" "answer pod" "rows pod" "clock pod" "actions pod" "more more";
    column-gap: clamp(28px, 4vw, 64px);
  }
  /* Desktop: a shorter hero so the replay and frequency headings start above an 880px fold. */
  .hero { padding-block: 22px 24px; }
  .hero .hero-title { max-width: 44ch; }
  .hero-visual { max-width: 340px; }
}
.hero-bar { grid-area: bar; margin-bottom: 0; flex-wrap: nowrap; }
.hero-bar .today-line { flex: 1 1 0; }
.hero-bar .seg-tz { flex: none; }
@media (max-width: 560px) {
  .hero-bar .seg-tz button { padding-inline: .7rem; }
  .hero { padding-bottom: 18px; }
}
.hero-head { grid-area: head; min-width: 0; }
.hero .hero-title { font-size: var(--step-2); max-width: 30ch; }
.hero .hero-scope { margin-top: .3rem; }
.hero .answer { grid-area: answer; padding-left: 0; border-left: 0; align-self: center; min-width: 0; }
.verdict { font-size: clamp(2.25rem, 1.1rem + 6vw, 5.25rem); font-weight: 800; line-height: .95; letter-spacing: -.045em; color: var(--peri-ink); }
.hero:not([data-state="confirmed"]):not([data-state="none"]) .verdict { color: var(--plum); }
.hero .answer[data-kind="today"] .verdict { color: var(--teal-ink); }
.hero .answer .answer-big { font-size: var(--step-0); font-weight: 600; margin-top: .55rem; line-height: 1.35; max-width: 44ch; color: var(--ink-2); }

/* the pod: original CSS drawing, coloured by the current stage */
.hero-visual { grid-area: pod; position: relative; margin: 0; width: 100%; aspect-ratio: 1.1; align-self: center; isolation: isolate; --signal: var(--muted); }
.hero-visual[data-stage="done"] { --signal: var(--teal); }
.hero-visual[data-stage="tease"] { --signal: var(--plum); }
.hero-visual[data-stage="scheduled"] { --signal: var(--peri); }
.hero-visual[data-stage="waiting"] { --signal: var(--ink-2); }
.hero-visual[data-stage="rollout"] { --signal: var(--amber); }
.orbit { position: absolute; z-index: -1; inset: 14% 2% 20%; border: 1.5px solid var(--peri-200); border-radius: 50%; }
.orbit-2 { transform: rotate(-22deg) scaleY(.55); }
.pod {
  position: absolute; left: 25%; right: 25%; top: 18%; aspect-ratio: 1.04;
  border-radius: 50% 50% 43% 43%; border: 2px solid var(--signal);
  background: var(--surface);
  background: radial-gradient(circle at 33% 24%, var(--surface) 0 11%, transparent 12%), linear-gradient(150deg, var(--surface) 30%, color-mix(in srgb, var(--signal) 24%, var(--tint)));
  box-shadow: inset 0 -6px color-mix(in srgb, var(--signal) 16%, transparent);
  transition: transform .35s ease-out;
}
.pod-band { position: absolute; left: 29%; width: 42%; top: 40%; height: 18%; border-radius: 30px; background: var(--signal); }
.pod-window { position: absolute; left: 32%; right: 32%; top: 100%; height: 9%; border-radius: 0 0 60% 60%; background: var(--signal); opacity: .55; }
.pod-glow { position: absolute; z-index: -1; left: 22%; right: 22%; bottom: 12%; height: 14%; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb, var(--signal) 26%, transparent), transparent 72%); }
.hero-visual[data-stage="done"] .pod { transform: translateY(-8%); }
.pod-caption { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: .8125rem; font-weight: 650; color: var(--muted); }
@media (max-width: 979px) { .pod-caption { display: none; } }
@media (min-width: 980px) { .hero-visual { justify-self: center; } }

/* three terse status rows; pills from 700px */
.srows { grid-area: rows; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); }
.srow { display: grid; grid-template-columns: 8.4rem minmax(0, 1fr); gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; min-width: 0; }
.srow dt { font-size: .8125rem; font-weight: 650; color: var(--muted); }
.srow dd { min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.srow-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.srow-sub { font-size: .875rem; color: var(--muted); display: inline-flex; flex-wrap: wrap; gap: 2px 10px; }
.srow-sub a { font-weight: 600; display: inline-flex; align-items: center; min-height: 32px; }
.srow[data-health="stale"] .srow-sub, .srow[data-health="offline"] .srow-sub { color: var(--amber); font-weight: 600; }
.srow[data-row="next"] .srow-val { color: var(--peri-ink); }
@media (max-width: 560px) { .srow { padding: 6px 0; } .srow-sub a { min-height: 28px; } }
@media (max-width: 380px) { .srow { grid-template-columns: 6.4rem minmax(0, 1fr); gap: 0 8px; } .srow dt { font-size: .75rem; } }
@media (min-width: 700px) {
  .srows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 0; }
  .srow { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
  .srow dd { flex-direction: column; gap: 2px; }
}
.hero .official-clock { grid-area: clock; }

/* actions: follow menu, share menu, native reaction, calendar entry */
.hero .hero-actions { grid-area: actions; align-items: center; }
.btn-cal::after { content: "↓"; }
@media (max-width: 420px) { .hero-actions .btn { padding-inline: .8rem; } }
.pop { position: relative; }
.pop > summary { list-style: none; }
.pop > summary::-webkit-details-marker { display: none; }
.pop > summary::after { content: ""; width: .4em; height: .4em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.pop[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.pop-panel {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(340px, calc(100vw - 2 * var(--gutter)));
  display: grid; gap: 6px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-1);
}
@media (max-width: 640px) {
  .pop[open] { flex-basis: 100%; }
  .pop-panel { position: static; width: auto; margin-top: 6px; }
}
.pop-h { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 4px 6px 0; }
.pop-list { display: grid; gap: 2px; }
.pop-list a, .pop-item {
  display: grid; width: 100%; min-height: 44px; align-content: center; padding: .45rem .65rem; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; font-size: .9375rem; font-weight: 560;
}
.pop-list a:hover, .pop-item:hover { background: var(--peri-50); }
.pop-list b { font-weight: 650; }
.pop-list span { font-size: .8125rem; color: var(--muted); }
.pop-x { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pop-x a { display: flex; align-items: center; color: var(--peri-ink); font-weight: 620; }
.pop-list a[target="_blank"]::after, a.pop-item[target="_blank"]::after { content: " ↗"; white-space: pre; }
a.pop-item[target="_blank"] { display: flex; align-items: center; }
.pop-note { font-size: .8125rem; color: var(--muted); padding: 2px 6px; }
.pop-item[data-done="true"] { color: var(--teal-ink); background: var(--teal-100); }
.copy-fallback { margin-top: 4px; font-family: var(--mono); font-size: .8125rem; }
.log-meta .copy-fallback { flex: 1 1 100%; }

.wish {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .45rem 1rem .45rem .75rem;
  border-radius: 999px; border: 1.5px dashed var(--plum-300); background: var(--surface); color: var(--plum);
  font-weight: 650; font-size: .95rem; line-height: 1.2; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.wish:hover { background: var(--plum-100); }
.wish-icon { position: relative; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; }
.wish-icon::after { content: ""; position: absolute; left: 50%; top: -7px; width: 2px; height: 5px; margin-left: -1px; border-radius: 2px; background: currentColor; opacity: .7; }
.wish[aria-pressed="true"] { border-style: solid; border-color: var(--plum); background: var(--plum-100); }
.wish[aria-pressed="true"] .wish-icon { background: currentColor; box-shadow: 0 0 0 3px var(--plum-100), 0 0 0 5px var(--plum-300); }
.wish-count { font-family: var(--mono); font-size: .8125rem; font-weight: 650; padding: .05rem .5rem; border-radius: 999px; background: var(--plum-100); font-variant-numeric: tabular-nums; }
.wish[aria-pressed="true"] .wish-count { background: var(--surface); }
.wish-count:empty { display: none; }
.wish-note { color: var(--ink-2); max-width: 62ch; }

.hero-more { grid-area: more; border-top: 1px solid var(--line); padding-top: 4px; min-width: 0; }
.hero-more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .4rem; font-weight: 620; color: var(--peri-ink); font-size: .9375rem; }
.hero-more .answer-sub { margin: 4px 0 0; color: var(--ink-2); max-width: 70ch; }
.hero-more .capsule { margin-top: 12px; }
.hero-more .facts { margin-top: 12px; }

/* board: replay + historical frequency */
.board { padding-top: clamp(20px, 3vw, 36px); }
.board-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .board-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.rp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
.rp-heading { min-width: 0; flex: 1 1 16rem; }
.rp-heading .eyebrow { margin-bottom: .2rem; }
.rp-title { font-size: var(--step-1); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.rp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; }
.rp-state { font-size: .8125rem; font-weight: 650; padding: .05rem .55rem; border-radius: 999px; background: var(--peri-100); color: var(--peri-ink); }
.rp-state[data-kind="confirmed"] { background: var(--teal-100); color: var(--teal-ink); }
.rp-state[data-kind="open"] { background: var(--plum-100); color: var(--plum); }
.rp-ctl { display: flex; align-items: center; gap: 6px; }
.icon-btn:disabled { opacity: .4; cursor: default; }
.rp-route { position: relative; isolation: isolate; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 16px; }
.rp-route::before { content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; top: 22px; border-top: 2px solid var(--line-2); }
.rp-li { display: flex; justify-content: center; min-width: 0; }
.rp-stop {
  --mark: var(--teal);
  display: grid; justify-items: center; align-content: start; gap: 3px; width: 100%; min-height: 80px; padding: 6px 4px;
  border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); font-size: .8125rem; text-align: center; cursor: pointer;
}
span.rp-stop { cursor: default; }
.rp-stop[data-kind="signal"] { --mark: var(--plum); }
.rp-stop[data-kind="scheduled"] { --mark: var(--peri); }
.rp-stop[data-kind="rollout"] { --mark: var(--amber); }
.rp-stop[data-kind="later"] { --mark: var(--line-2); }
.rp-node { width: 18px; height: 18px; margin: 7px 0 2px; border-radius: 50%; background: var(--mark); border: 3px solid var(--surface); outline: 1.5px solid var(--mark); }
.rp-stop[data-kind="signal"] .rp-node { border-radius: 3px; transform: rotate(45deg) scale(.85); }
.rp-stop[data-kind="scheduled"] .rp-node { border-radius: 4px; }
.rp-type { font-weight: 700; text-transform: capitalize; }
.rp-when, .rp-stop time { color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.3; }
.rp-stop[aria-expanded="true"] { border-color: var(--line-2); background: var(--tint); }
.rp-stop[aria-expanded="true"] .rp-node { outline-width: 3px; }
.rp-stop:disabled { cursor: default; color: var(--muted); }
@media (hover: hover) { button.rp-stop:not(:disabled):hover { background: var(--peri-50); } }
.rp-detail { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--teal); background: var(--tint); border-radius: 0 12px 12px 0; display: grid; gap: 6px; justify-items: start; min-width: 0; }
a.rp-stop { text-decoration: none; }
a.rp-stop:hover { background: var(--peri-50); }
.rp-detail[data-kind="signal"] { border-left-color: var(--plum); }
.rp-detail[data-kind="scheduled"] { border-left-color: var(--peri); }
.rp-detail[data-kind="rollout"] { border-left-color: var(--amber); }
.rp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rp-exact { font-family: var(--mono); font-size: .875rem; font-variant-numeric: tabular-nums; }
.rp-dtitle { font-size: 1rem; font-weight: 680; }
.who { font-weight: 620; color: var(--ink-2); }

.fc-head .fc-method { min-height: 36px; font-size: .875rem; }
.fc-precedence { margin-top: 10px; padding: .5rem .7rem; border-radius: 10px; background: var(--peri-100); color: var(--peri-ink); font-weight: 600; font-size: .9rem; }
.fc[data-superseded="true"] .tally, .fc[data-superseded="true"] .fc-sentence { opacity: .62; }
.tally { display: grid; gap: 4px; margin-top: 12px; }
.tally-row {
  display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) auto 2.8rem; align-items: center; gap: 10px;
  min-height: 44px; padding: 6px 10px; border: 1px solid transparent; border-radius: 12px; background: transparent;
  color: var(--ink); text-align: left; font-size: .875rem; cursor: pointer;
}
.tally-row:hover { background: var(--peri-50); }
.tally-row[aria-pressed="true"] { background: var(--peri-50); border-color: var(--peri-200); }
.tally-k { font-weight: 650; white-space: nowrap; }
.tally-sq { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(3px, 1fr); gap: 3px; min-width: 0; }
.tally-sq i { display: block; height: 12px; border-radius: 3px; background: var(--heat-empty); }
.tally-sq i.hit { background: var(--peri); }
.tally-row[aria-pressed="true"] .tally-sq i.hit { background: var(--teal); }
.tally-n { font-weight: 650; white-space: nowrap; }
.tally-p { color: var(--muted); text-align: right; }
@media (max-width: 380px) { .tally-row { grid-template-columns: 4.8rem minmax(0, 1fr) auto; } .tally-p { display: none; } }
.fc-sentence { margin-top: 10px; font-size: .9375rem; color: var(--ink-2); }
.fc-sentence .fc-value { font-size: .8125rem; margin-left: 4px; }
.fc-gaps { margin-top: 8px; }
.fc-gaps > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .4rem; font-weight: 620; color: var(--peri-ink); }
.fc-links { margin-top: 6px; font-size: .875rem; }
.fc-links a { display: inline-flex; align-items: center; min-height: 36px; }

/* calendar views */
.cal-views [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--peri-ink); box-shadow: 0 1px 3px rgba(23, 37, 32, .16); }
@media (min-width: 900px) { .cal-layout[data-view="year"] { grid-template-columns: minmax(0, 1fr); } }
.cal-panel { min-width: 0; }
.cal-day.is-empty { color: var(--ink-2); }
.heat-caption { margin: 0; }
.heat-scroll { position: relative; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; padding: 6px 4px 10px; border-radius: 12px; }
.heat-scroll:focus-visible { outline: 3px solid var(--peri); outline-offset: 2px; }
.heat { --cell: 13px; --gap: 3px; display: grid; grid-template-columns: 2rem auto; grid-template-areas: ". months" "dow grid"; gap: 4px 6px; width: max-content; }
@media (min-width: 1100px) { .heat { --cell: 15px; } }
@media (pointer: coarse) { .heat { --cell: 22px; --gap: 4px; } }
.heat-months { grid-area: months; display: grid; grid-auto-flow: column; grid-auto-columns: var(--cell); gap: var(--gap); height: 1.1rem; font-size: .6875rem; color: var(--muted); }
.heat-months span { white-space: nowrap; width: max-content; }
.heat-months span[data-clipped] { visibility: hidden; }
.heat-dow { grid-area: dow; display: grid; grid-template-rows: repeat(7, var(--cell)); gap: var(--gap); font-size: .6875rem; line-height: var(--cell); color: var(--muted); }
.heat-grid { grid-area: grid; display: grid; grid-template-rows: repeat(7, var(--cell)); grid-auto-flow: column; grid-auto-columns: var(--cell); gap: var(--gap); }
.heat-nojs { grid-row: 1 / -1; width: 32ch; }
.heat-cell { position: relative; width: var(--cell); height: var(--cell); padding: 0; border: 0; border-radius: 3px; background: var(--heat-empty); cursor: pointer; }
.heat-cell.s-out, .heat-cell.s-unchecked { background: repeating-linear-gradient(135deg, var(--hatch-a) 0 2px, var(--hatch-b) 2px 4px); box-shadow: inset 0 0 0 1px var(--line-2); }
.heat-cell.s-future { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.heat-cell.s-rec { display: grid; place-content: center; background: var(--surface); }
.heat-marks {
  --cal-mark-size: calc(var(--cell) - 2px);
  display: grid;
  grid-template-columns: var(--cal-mark-size);
  gap: 1px;
}
.heat-marks:has(.mk + .mk) {
  --cal-mark-size: calc((var(--cell) - 3px) / 2);
  grid-template-columns: repeat(2, var(--cal-mark-size));
}
.heat-cell.is-today { outline: 2px solid var(--peri-ink); outline-offset: 1px; }
.heat-cell[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 1px; z-index: 1; }
.heat-cell:focus-visible { outline: 3px solid var(--peri); outline-offset: 2px; z-index: 2; border-radius: 3px; }
.day-exact { font-size: .875rem; color: var(--ink-2); }

/* compact records */
.rlist { border-top: 1px solid var(--line-2); }
.rlist[data-ssr] > li:nth-child(n+4) { display: none; }
.ritem { border-bottom: 1px solid var(--line); }
.ritem-sum {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 14px; gap: 2px 12px; align-items: center;
  min-height: 56px; padding: 10px 4px; cursor: pointer; list-style: none;
}
.ritem-sum::-webkit-details-marker { display: none; }
.ritem-sum .chip { grid-column: 1; grid-row: 1 / span 2; }
.ritem-title { grid-column: 2; grid-row: 1; font-weight: 650; line-height: 1.35; }
.ritem-meta { grid-column: 2; grid-row: 2; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ritem-sum::after { content: ""; grid-column: 3; grid-row: 1 / span 2; width: .5em; height: .5em; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.ritem details[open] > .ritem-sum::after { transform: rotate(-135deg); }
.ritem-sum:hover .ritem-title { color: var(--peri-ink); }
.ritem-body { display: grid; gap: 6px; justify-items: start; padding: 0 4px 14px; }
@media (max-width: 560px) {
  .ritem-sum { grid-template-columns: minmax(0, 1fr) 14px; }
  .ritem-sum .chip { grid-column: 1; grid-row: 1; }
  .ritem-title { grid-column: 1; grid-row: 2; }
  .ritem-meta { grid-column: 1; grid-row: 3; }
  .ritem-sum::after { grid-column: 2; grid-row: 1 / span 3; }
}
.ritem.is-target, .log-item.is-target { background: var(--peri-50); box-shadow: inset 4px 0 0 var(--peri); }
.log-item.is-target { padding-left: 14px; }
.log-item:focus, .ritem:focus { outline: none; }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

/* FAQ disclosure */
.faq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: ""; flex: none; width: .5em; height: .5em; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-item > summary h3 { margin-bottom: 0; }
.faq-item[open] > summary { margin-bottom: .35rem; }

/* alerts page: team accounts */
.x-accounts { display: flex; flex-wrap: wrap; gap: 8px; }

/* =====================================================================
   V2 Compact Layout: status deck -> calendar -> replay/signals -> frequency
   (Scoped overrides; easy to revert without touching inner pages or JS.)
   ===================================================================== */

@media (max-width: 899px) {
  .head-row { gap: 2px 8px; padding-block: 4px 2px; }
  .nav-list > li > a, .menu > summary { min-height: 38px; padding-inline: .55rem; font-size: .875rem; }
}

.home-hero {
  position: relative;
  z-index: 10;
  background:
    radial-gradient(960px 260px at 10% -20%, var(--hero-glow-1), transparent 72%),
    radial-gradient(640px 220px at 94% -10%, var(--hero-glow-2), transparent 72%),
    transparent;
  border-bottom: 0;
  padding-block: 12px 0;
}
.status-deck {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-1);
  --deck-accent: var(--peri);
}
.home-hero[data-state="confirmed"] .status-deck:has(.answer[data-kind="today"]) { --deck-accent: var(--teal); }
.home-hero[data-state="pending"] .status-deck { --deck-accent: var(--plum); }
.home-hero[data-state="rollout"] .status-deck { --deck-accent: var(--amber); }
.status-deck::before {
  content: "";
  position: absolute;
  inset: 0 20px auto;
  block-size: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--deck-accent);
}

.home-hero .hero-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
  padding: 7px 14px;
  background: var(--peri-50);
  border-bottom: 1px solid var(--line);
  border-radius: calc(var(--r-l) - 1px) calc(var(--r-l) - 1px) 0 0;
}
.home-hero .today-line {
  font-size: .78rem;
  white-space: nowrap;
  overflow: clip;
  text-overflow: ellipsis;
  min-inline-size: 0;
}
.home-hero .seg-tz { padding: 2px; flex: none; }
.home-hero .seg-tz button {
  min-height: 30px;
  min-width: 40px;
  padding: .2rem .65rem;
  font-size: .78rem;
}

.hero-main-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 12px 16px;
}
.hero-core { flex: 1 1 20rem; min-inline-size: 0; }
.home-hero .hero-title {
  font-size: clamp(.92rem, .86rem + .25vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  max-width: none;
  color: var(--ink);
}
.home-hero .hero-scope {
  margin-top: 2px;
  font-size: .78rem;
  line-height: 1.35;
  color: var(--muted);
  max-width: none;
}
.scope-note { color: var(--ink-2); font-weight: 520; }
.home-hero .answer {
  margin-top: 6px;
  padding-left: 0;
  border-left: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

/* Compact original capsule-signal stage emblem (replaces oversized pod block) */
.status-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--peri-200);
  background: var(--tint);
  --signal: var(--muted);
}
.status-mark[data-stage="done"] { --signal: var(--teal); border-color: var(--teal-300); background: var(--teal-100); }
.status-mark[data-stage="tease"] { --signal: var(--plum); border-color: var(--plum-300); background: var(--plum-100); }
.status-mark[data-stage="scheduled"] { --signal: var(--peri); border-color: var(--peri-200); background: var(--peri-100); }
.status-mark[data-stage="waiting"] { --signal: var(--ink-2); }
.status-mark[data-stage="rollout"] { --signal: var(--amber); background: var(--amber-100); }
.status-mark .pod {
  position: relative;
  inset: auto;
  inline-size: 18px;
  block-size: 18px;
  aspect-ratio: 1;
  border-radius: 50% 50% 42% 42%;
  border: 2px solid var(--signal);
  background: var(--surface);
  box-shadow: none;
  display: grid;
  place-items: center;
}
.status-mark .pod-band {
  position: static;
  inline-size: 8px;
  block-size: 3px;
  border-radius: 99px;
  background: var(--signal);
}
.home-hero .verdict {
  font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.pod-pill {
  font-size: .75rem;
  font-weight: 620;
  color: var(--muted);
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--tint);
  white-space: nowrap;
}

.home-hero .hero-actions {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
}
.btn-compact {
  min-height: 36px;
  padding: .35rem .8rem;
  font-size: .84rem;
  gap: .35rem;
}
.wish-compact {
  min-height: 36px;
  padding: .35rem .75rem .35rem .6rem;
  font-size: .84rem;
  gap: .4rem;
}
.wish-compact .wish-icon { inline-size: 14px; block-size: 14px; }
.pop-panel { width: min(340px, calc(100dvw - 2 * var(--gutter))); }
.pop-list > li:has(> [hidden]) { display: none; }
@media (min-width: 780px) {
  .home-hero .hero-actions .pop-panel { left: auto; right: 0; }
}

.home-hero .official-clock {
  margin: 0 14px 10px;
  padding: 10px 14px;
  border-radius: var(--r-m);
}
.home-hero .official-clock .clock-value { font-size: var(--step-1); }

/* Three compact briefing cells directly beneath status */
.home-hero .srows {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--tint) 36%, var(--surface));
}
.home-hero .srow {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 0 8px;
  padding: 5px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  align-items: baseline;
}
.home-hero .srow:last-child { border-bottom: 0; }
.home-hero .srow dt {
  font-size: .72rem;
  font-weight: 650;
  color: var(--muted);
}
.home-hero .srow dd {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: baseline;
  gap: 1px 8px;
}
.home-hero .srow-val { font-size: .84rem; line-height: 1.3; }
.home-hero .srow-sub { font-size: .75rem; line-height: 1.3; gap: 1px 8px; }
.home-hero .srow-sub a { min-height: 24px; }

@media (min-width: 700px) {
  .home-hero .srows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-hero .srow {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px;
    border-bottom: 0;
  }
  .home-hero .srow + .srow { border-inline-start: 1px solid var(--line); }
  .home-hero .srow dt { font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; }
  .home-hero .srow dd { flex-direction: column; gap: 1px; }
  .home-hero .srow-val { font-size: .9rem; }
  .home-hero .srow-sub { font-size: .78rem; }
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 3px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0 0 calc(var(--r-l) - 1px) calc(var(--r-l) - 1px);
}
.home-hero .hero-more {
  border-top: 0;
  padding-top: 0;
  flex: 1 1 auto;
}
.home-hero .hero-more[open] { flex-basis: 100%; padding-bottom: 10px; }
.home-hero .hero-more > summary {
  min-height: 32px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
}
.home-hero .hero-more > summary::-webkit-details-marker { display: none; }
.home-hero .hero-more > summary::before {
  content: "▸";
  font-size: .75em;
  display: inline-block;
  transition: transform .15s;
}
.home-hero .hero-more[open] > summary::before { transform: rotate(90deg); }
.home-hero .hero-more > summary:hover { color: var(--peri-ink); }
.hero-more-body { padding-top: 8px; }
.hero-more-body .answer-big { font-size: .95rem; font-weight: 680; color: var(--ink); margin-top: 0; }
.hero-jumps { display: inline-flex; align-items: center; gap: 12px; font-size: .8rem; font-weight: 620; }
.hero-jumps a { text-decoration: none; white-space: nowrap; }
.hero-jumps a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .home-hero { padding-block: 8px 0; }
  .hero-main-band { padding: 9px 12px; gap: 8px; }
  .home-hero .hero-bar { padding: 5px 12px; }
  .home-hero .hero-actions { inline-size: 100%; }
  .home-hero .hero-actions .btn-compact { flex: 0 1 auto; padding: .3rem .65rem; font-size: .8125rem; }
  .wish-compact { padding: .3rem .65rem .3rem .55rem; font-size: .8125rem; }
  .pod-pill { display: none; }
  .hero-jumps { display: none; }
  .home-hero .srow { padding: 4px 12px; grid-template-columns: 7.2rem minmax(0, 1fr); }
  .hero-foot { padding: 2px 12px; }
}

/* Promoted calendar section: visible above fold on 390x844 and 1280x800 */
.cal-top-section { padding-block: 14px 0; }
.cal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.cal-head .section-title {
  font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem);
  margin-bottom: 0;
}
.cal-views { padding: 2px; }
.cal-views button { min-height: 32px; padding: .2rem .75rem; font-size: .82rem; }

.cal-top-section .cal-layout { gap: 14px; }
@media (min-width: 900px) {
  .cal-top-section .cal-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .cal-top-section .cal-layout[data-view="year"] { grid-template-columns: minmax(0, 1fr); }
}
.cal-top-section .cal { padding: 12px 14px; border-radius: var(--r-l); }
.cal-top-section .cal-bar { margin-bottom: 6px; }
.cal-top-section .cal-month { font-size: 1rem; }
.cal-top-section .cal-nav .icon-btn { inline-size: 34px; block-size: 34px; font-size: 1.15rem; }
.cal-top-section .cal-nav .btn-small { min-height: 34px; padding: .2rem .7rem; font-size: .8rem; }
.cal-top-section .cal-day, .cal-top-section .cal-blank { min-height: 44px; }
.cal-top-section .cal-day { padding: 5px 0 4px; border-radius: 10px; font-size: .875rem; gap: 3px; }
.cal-top-section .legend { margin-top: 10px; font-size: .78rem; gap: 4px 12px; flex-wrap: wrap; flex-wrap: balance; }
.cal-jump { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; margin-top: 6px; font-size: .84rem; }
@media (min-width: 900px) { .cal-jump { display: none; } }
.cal-jump-text { min-inline-size: 0; }
.heat-scroll { padding: 6px 8px 10px; }
.heat-months > span:first-child:has(+ span[data-month-label]),
.heat-months > span:first-child:has(+ span:not([data-month-label]) + span[data-month-label]) { visibility: hidden; }
@media (min-width: 1120px) { .heat { --cell: 16px; --gap: 3px; } }

.cal-top-section .day-panel { padding: 14px 16px; }
.cal-top-section .day-title { font-size: 1rem; }
.cal-top-section .day-meta { margin: 2px 0 10px; font-size: .8rem; }
.cal-top-section .day-item { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 2px 10px; padding: 10px 0; }
.cal-top-section .day-time { font-size: .92rem; }
.cal-top-section .day-body p { font-size: .875rem; line-height: 1.45; }
.cal-top-section .day-body h4 { font-size: .9375rem; }

@media (max-width: 560px) {
  .cal-top-section { padding-block: 10px 0; }
  .cal-head { margin-bottom: 6px; }
  .cal-sig-entry { display: none; }
  .cal-top-section .cal { padding: 10px; }
  .cal-top-section .cal-dow span { padding: 2px 0; font-size: .7rem; }
  .cal-top-section .cal-day, .cal-top-section .cal-blank { min-height: 38px; }
  .cal-top-section .cal-day { padding: 4px 0 3px; font-size: .84rem; }
  .cal-top-section .legend { margin-top: 8px; font-size: .74rem; gap: 4px 10px; }
}

/* On-demand Event Replay disclosure */
.replay-sec { padding-block: 16px 0; }
.fold-card { padding: 0; }
.fold-sum {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 12px 16px;
  min-height: 52px;
}
.fold-sum::-webkit-details-marker { display: none; }
.fold-sum::after {
  content: "";
  flex: none;
  inline-size: .5em;
  block-size: .5em;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .15s;
}
.fold-card[open] > .fold-sum::after { transform: rotate(-135deg); }
.fold-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-inline-size: 0; flex: 1 1 16rem; }
.fold-kicker { margin-bottom: 0; font-size: .72rem; }
.fold-title { font-size: .98rem; font-weight: 700; color: var(--ink); }
.fold-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.fold-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.rp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 12px; }

/* Compact Recent Signals & Lower Frequency/Limits Band */
.compact-head { margin-bottom: 10px; align-items: center; }
.compact-head .section-title { font-size: var(--step-1); margin-bottom: 2px; }
.compact-head .list-count { margin-bottom: 0; }

.lower-band { padding-block: clamp(22px, 3vw, 36px) 0; }
.lower-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .lower-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.routes-note { margin-top: 6px; }
.routes-compact { display: grid; gap: 6px; margin-top: 10px; }
.routes-compact a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 10px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
.routes-compact a:hover { border-color: var(--peri-200); background: var(--peri-50); }
.routes-compact b { font-size: .9rem; font-weight: 650; color: var(--peri-ink); }
.routes-compact span { font-size: .8rem; color: var(--muted); }
.context-fold { margin-top: 10px; border-top: 1px solid var(--line); }
.context-mini { display: grid; gap: 8px; padding-top: 6px; font-size: .85rem; color: var(--ink-2); }

/* motion: hop only on a real press, never under reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .hero:has(.wish[aria-pressed="true"]) .pod { animation: podHop .6s ease-in-out 1; }
  .wish[aria-pressed="true"] .wish-icon { animation: wishPop .45s ease-out 1; }
  /* ambient float is finite: three slow bobs when the stage is shown, then it rests */
  .hero-visual[data-stage="tease"] .pod, .hero-visual[data-stage="scheduled"] .pod { animation: podFloat 4s ease-in-out 3; }
  @keyframes podHop { 40% { translate: 0 -14%; } }
  @keyframes wishPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
  @keyframes podFloat { 50% { translate: 0 -4%; } }
  @media (hover: hover) { .heat-cell { transition: transform .1s; } .heat-cell:hover { transform: scale(1.25); z-index: 2; } }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .link-arrow:hover::after { transform: none; }
}
@media (forced-colors: active) {
  .cal-day[aria-pressed="true"] { outline: 2px solid Highlight; }
  .mk, .stage-dot, .chip::before { forced-color-adjust: none; }
  .tally-sq i, .rp-node, .pod, .pod-band { forced-color-adjust: none; }
  .heat-cell[aria-pressed="true"], .rp-stop[aria-expanded="true"], .tally-row[aria-pressed="true"], .wish[aria-pressed="true"] { outline: 2px solid Highlight; }
}
@media print {
  .site-head, .site-foot, .hero-actions, .wish-note, .hero-visual, .seg, .cal-nav, .rp-ctl, .more { display: none !important; }
  body { background: #fff; }
}

/* Keep the selected day's headlines scannable. Open a row to read its source. */
.day-item .day-record { min-width: 0; }
.day-record-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  list-style: none;
}
.day-record-summary::-webkit-details-marker { display: none; }
.day-record-summary::after {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
}
.day-record[open] .day-record-summary::after { transform: rotate(225deg); }
.day-record-label { display: grid; justify-items: start; gap: 4px; }
.day-record-label strong { line-height: 1.3; }
.day-event { --cal-mark-size: 9px; background: var(--tint); color: var(--ink-2); }
.day-event::before { content: none; }
.day-record .day-body { padding-top: 8px; }
.status-deck [data-next-detail]:empty { display: none; }

/* Reset tracker dashboard */
.tracker-history-link,
.tracker-explore { display: none; }
body:has(.tracker-shell) .head-row,
.tracker-shell { max-width: 1040px; }
body:has(.tracker-shell) .nav,
body:has(.tracker-shell) .btn-alerts { display: none; }
body:has(.tracker-shell) .tracker-history-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 620;
  text-decoration: none;
}
.tracker-history-link:hover { text-decoration: underline; }
.tracker-shell {
  --tracker-radius: 20px;
  --tracker-pad: clamp(12px, 2.2vw, 24px);
  display: grid;
  gap: 14px;
  padding-block: 18px 0;
}
.watch-strip,
.tracker-clock,
.tracker-hero,
.tracker-calendar,
.tracker-faq {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--tracker-radius);
  background: var(--surface);
}
.watch-strip,
.tracker-clock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px var(--tracker-pad);
  gap: 6px 12px;
}
.watch-label,
.watch-links { display: flex; align-items: center; gap: 8px; }
.watch-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--peri-100);
  color: var(--peri-ink);
}
.watch-label { font-size: .925rem; line-height: 1.3; }
.watch-label p { color: var(--muted); font-size: .775rem; }
.watch-links { flex-wrap: wrap; gap: 5px; }
.watch-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 10px;
  border-radius: 10px;
  color: var(--peri-ink);
  font-size: .8125rem;
  font-weight: 640;
  text-decoration: none;
}
.watch-links a:hover { background: var(--peri-50); }
.watch-links .watch-follow { background: var(--peri-100); }
.tracker-clock { padding-block: 5px; background: var(--tint); }
.tracker-clock p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; font-size: .875rem; }
.tracker-clock [data-time-mode] { color: var(--muted); font-weight: 580; }
.tracker-clock time { font-variant-numeric: tabular-nums; font-weight: 680; }
.tracker-clock .seg button,
.tracker-calendar .seg button,
.tracker-signals .seg button { min-height: 34px; padding: .25rem .75rem; font-size: .8125rem; }

.tracker-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  border-radius: 26px;
  box-shadow: var(--shadow-1);
}
.tracker-status {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(20px, 3vw, 32px);
  min-height: 224px;
  border-start-start-radius: 25px;
  color: #f5fbf2;
  background: linear-gradient(127deg, #172f25 0%, #204132 56%, #29503d 100%);
}
.tracker-status h1 { position: relative; font-size: clamp(.9rem, .84rem + .25vw, 1.1rem); font-weight: 670; }
.tracker-verdict {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 9px;
}
.tracker-verdict .verdict {
  font-size: clamp(2rem, 1.18rem + 3vw, 3.8rem);
  font-weight: 780;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -.047em;
}
.tracker-verdict[data-kind="today"] .verdict { color: #ddfae3; }
.tracker-verdict .status-mark {
  inline-size: 36px; block-size: 36px;
  --signal: #b1d6be;
  background: rgba(246, 251, 246, .13);
  border-color: rgba(246, 251, 246, .4);
}
.tracker-verdict .status-mark[data-stage="done"] { --signal: #9bdaa9; }
.tracker-verdict .status-mark .pod { background: #204433; }
.tracker-scope { color: #dfece1; font-size: .87rem; position: relative; }
.reset-orbit {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.reset-orbit i {
  --orbit-size: 138px;
  position: absolute;
  width: var(--orbit-size);
  height: var(--orbit-size);
  border: 1px solid rgba(215, 235, 219, .21);
  border-radius: 50%;
  right: calc(8% + 36px - var(--orbit-size) / 2);
  top: calc(52% - var(--orbit-size) / 2);
}
.reset-orbit i:nth-child(2) { --orbit-size: 199px; }
.reset-orbit i:nth-child(3) { --orbit-size: 260px; }
.reset-orbit b {
  position: absolute;
  width: 12px; height: 12px;
  right: calc(8% + 91px); top: 35%;
  border-radius: 50%;
  background: #b5e7c3;
  box-shadow: 0 0 18px rgba(181, 231, 195, .5);
}
.tracker-hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.tracker-hero-actions .wish-compact,
.share-trigger {
  color: #f5fbf2;
  background: rgba(246, 251, 246, .10);
  border: 1px solid rgba(246, 251, 246, .42);
  min-height: 44px;
  cursor: pointer;
}
.tracker-hero-actions .wish-compact:hover,
.share-trigger:hover { background: rgba(246, 251, 246, .20); }
.tracker-hero-actions .wish-compact:focus-visible,
.share-trigger:focus-visible { outline-color: #bbefc7; }
.tracker-hero-actions .wish-compact[aria-pressed="true"] { background: #deefe2; color: #175335; }
.tracker-hero-actions .wish-count:empty { display: none; }
.share-trigger {
  display: inline-grid;
  place-items: center;
  width: 44px;
  border-radius: 50%;
  padding: 0;
}
.share-trigger svg { fill: currentColor; }
.tracker-share > .share-trigger::after { display: none; }
.tracker-share .pop-panel { color: var(--ink); }
.tracker-facts { display: grid; grid-template-rows: repeat(3, minmax(0, auto)); align-content: stretch; }
.tracker-fact { display: grid; align-content: center; gap: 3px; padding: 11px var(--tracker-pad); line-height: 1.4; }
.tracker-fact + .tracker-fact { border-top: 1px solid var(--line); }
.tracker-fact dt { font-size: .78rem; color: var(--muted); font-weight: 620; }
.tracker-fact dd { font-size: .875rem; color: var(--ink); font-weight: 680; }
.tracker-fact .tracker-fact-note { font-size: .76rem; color: var(--muted); font-weight: 460; }
.tracker-fact-note:empty { display: none; }
.confirmation-source { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.tracker-review { grid-column: 1 / -1; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.tracker-review > summary,
.tracker-faq > summary {
  display: list-item;
  min-height: 44px;
  align-content: center;
  padding: 7px var(--tracker-pad);
  cursor: pointer;
}
.tracker-review > summary:hover,
.tracker-faq > summary:hover { color: var(--peri-ink); }
.tracker-review time { font-weight: 640; }
.source-detail-body { padding: 0 var(--tracker-pad) var(--tracker-pad); }
.tracker-health { grid-column: 1 / -1; padding: 8px var(--tracker-pad); margin: 0; border-top: 1px solid var(--line); }

.tracker-replay { padding-block: 0; }
.tracker-replay,
.tracker-calendar,
.tracker-signals { scroll-margin-top: 14px; }
.tracker-replay .fold-card { border-radius: var(--tracker-radius); padding: 0; background: var(--peri-50); }
.tracker-replay .fold-sum { padding: 10px var(--tracker-pad); gap: 8px 12px; align-items: center; }
.tracker-replay .fold-kicker { color: var(--peri-ink); font-size: .75rem; font-weight: 680; }
.tracker-replay .fold-title { font-size: .93rem; }
.feature-trace { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; margin-inline-start: auto; }
.feature-trace i { width: 13px; height: 5px; border-radius: 99px; background: var(--line-2); }
.feature-trace [data-kind="signal"] { background: var(--plum-300); }
.feature-trace [data-kind="confirmed"] { background: var(--teal); }
.feature-trace [data-kind="rollout"] { background: var(--peri); }
.feature-trace [data-kind="scheduled"] { background: var(--amber); }

.tracker-calendar { padding: 0; box-shadow: var(--shadow-1); }
.tracker-calendar .cal-head { margin: 0; padding: 9px var(--tracker-pad); border-bottom: 1px solid var(--line); }
.tracker-calendar .cal-head .section-title { margin: 0; font-size: 1.02rem; }
.tracker-calendar .cal-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
.tracker-calendar .cal-layout > .cal { padding: 9px var(--tracker-pad) 12px; border: none; border-radius: 0; background: transparent; }
.tracker-calendar .cal-bar { margin: 0 0 6px; gap: 6px; }
.tracker-calendar .heat-caption { font-weight: 550; }
.tracker-calendar .heat-scroll { margin-inline: -5px; }
.tracker-calendar .heat { --cell: 13px; --gap: 3px; }
.tracker-calendar .heat-cell.s-out { box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.tracker-calendar .heat-cell[aria-pressed="true"] { outline-offset: 0; }
.tracker-calendar #heat-hint { font-size: .76rem; }
.tracker-calendar .legend { margin-top: 7px; gap: 4px 12px; }
.tracker-calendar .day-panel {
  margin: 0;
  border: 0;
  border-radius: 0 0 var(--tracker-radius) var(--tracker-radius);
  border-top: 1px solid var(--line);
  scroll-margin: 10px;
}
.tracker-calendar .cal-day.is-unchecked:not(.has-records) { color: var(--muted); background: transparent; }

.tracker-signals { padding-block: 6px 0; }
.tracker-section-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 6px 14px; margin-bottom: 8px;
}
.tracker-section-head .section-title { margin: 0; }
.tracker-section-head .list-count { margin: 3px 0 0; }
.signal-cards { display: grid; gap: 8px; }
.signal-card {
  padding: 12px var(--tracker-pad);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.signal-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: .78rem; color: var(--muted); }
.signal-meta time { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.signal-author { color: var(--peri-ink); font-weight: 660; }
.signal-card h3 { margin: 4px 0 2px; font-size: 1rem; line-height: 1.35; }
.signal-card h3 a { color: var(--ink); text-decoration: none; }
.signal-card h3 a:hover { text-decoration: underline; }
.signal-summary,
.signal-schedule { font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.signal-schedule { margin-top: 5px; }
.signal-actions { display: flex; flex-wrap: wrap; gap: 3px 16px; margin-top: 4px; }
.signal-actions a { display: inline-flex; align-items: center; min-height: 30px; font-size: .8rem; font-weight: 600; }
.signals-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px; }

.tracker-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tracker-links > a {
  display: grid;
  gap: 2px;
  padding: 10px var(--tracker-pad);
  border-radius: 13px;
  background: var(--tint);
  text-decoration: none;
  font-size: .875rem;
  line-height: 1.4;
}
.tracker-links > a:hover { background: var(--peri-100); }
.tracker-links > a > span { color: var(--muted); font-size: .78rem; }
.tracker-faq { font-size: .9rem; font-weight: 650; }
.tracker-faq .faq-list { padding: 0 var(--tracker-pad) var(--tracker-pad); }

@media (max-width: 680px) {
  .tracker-shell { --gutter: 12px; gap: 10px; padding-block: 12px 0; }
  .watch-label p { display: none; }
  .watch-icon { width: 26px; height: 26px; border-radius: 8px; }
  .watch-label { gap: 5px; font-size: .85rem; }
  .watch-links a { padding-inline: 8px; }
  .tracker-hero { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .tracker-status { min-height: 168px; border-radius: 19px 19px 0 0; padding: 16px var(--tracker-pad); }
  .tracker-status .tracker-scope { max-width: 35ch; }
  .reset-orbit { opacity: .74; }
  .tracker-fact { grid-template-columns: minmax(6.7rem, 1fr) minmax(0, 1.5fr); gap: 0 8px; padding-block: 9px; }
  .tracker-fact .tracker-fact-note { grid-column: 2; }
  .tracker-fact dt { align-self: baseline; }
  .tracker-hero-actions .tracker-share[open] { flex-basis: auto; }
  .tracker-status:has(.tracker-share[open]) { z-index: 2; }
  .tracker-share { position: static; }
  .tracker-share .pop-panel {
    position: absolute;
    inline-size: auto;
    inset-inline: var(--tracker-pad);
    top: calc(100% - 6px);
  }
  .tracker-replay .fold-main { flex-basis: 0; }
  .tracker-replay .fold-meta { display: none; }
  .tracker-replay [data-rp-pos] { display: none; }
  .tracker-calendar .heat { --cell: 21px; --gap: 4px; }
  .tracker-links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 370px) {
  .tracker-clock p { flex-direction: column; }
  .tracker-fact { grid-template-columns: minmax(6.7rem, .9fr) minmax(0, 1.5fr); }
}


/* Gemini Reset Time homepage ([data-board]) — original light instrument style + Wish pulse motion.
   Scoped to [data-board] so inner pages stay untouched. */
:root:has([data-board]) {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-sub: #f9fafb;
  --tint: #f1f4f7;
  --tint-2: #e6ebf0;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #586577;
  --line: #dfe4ea;
  --line-2: #c5ced8;

  --peri: #0f766e;
  --peri-ink: #0e635d;
  --peri-50: #f0faf8;
  --peri-100: #d5f3ee;
  --peri-200: #99ddd2;

  --teal: #16a34a;
  --teal-ink: #156534;
  --teal-100: #dcfce7;
  --teal-300: #86efac;

  --plum: #b45309;
  --plum-100: #fef3c7;
  --plum-300: #f5c35e;

  --amber: #9a4408;
  --amber-100: #fef3c7;

  --head-bg: #ffffff;
  --heat-empty: #e9edf1;
  --hatch-a: #f2f4f7;
  --hatch-b: #ffffff;
  --off-ink: #8894a4;
  --seg-hover: rgba(15, 23, 42, .05);
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .04);
  --active-bg: #0f766e;
  --active-ink: #ffffff;
  --rail-accent: #0f766e;
}
:root[data-theme="dark"]:has([data-board]) {
  --bg: #0b0e12;
  --surface: #12161c;
  --surface-sub: #161b22;
  --tint: #1a2029;
  --tint-2: #232b36;
  --ink: #f1f5f9;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --line: #252e3a;
  --line-2: #384454;

  --peri: #14b8a6;
  --peri-ink: #5eead4;
  --peri-50: #0d2524;
  --peri-100: #123836;
  --peri-200: #1e5b56;

  --teal: #22c55e;
  --teal-ink: #86efac;
  --teal-100: #0f2c1c;
  --teal-300: #1f6b3d;

  --plum: #f59e0b;
  --plum-100: #33220a;
  --plum-300: #78480d;

  --amber: #fbbf24;
  --amber-100: #33220a;

  --head-bg: #12161c;
  --heat-empty: #202731;
  --hatch-a: #181e26;
  --hatch-b: #12161c;
  --off-ink: #64748b;
  --seg-hover: rgba(255, 255, 255, .07);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .28);
  --active-bg: #14b8a6;
  --active-ink: #071917;
  --rail-accent: #14b8a6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):has([data-board]) {
    --bg: #0b0e12;
    --surface: #12161c;
    --surface-sub: #161b22;
    --tint: #1a2029;
    --tint-2: #232b36;
    --ink: #f1f5f9;
    --ink-2: #cbd5e1;
    --muted: #94a3b8;
    --line: #252e3a;
    --line-2: #384454;

    --peri: #14b8a6;
    --peri-ink: #5eead4;
    --peri-50: #0d2524;
    --peri-100: #123836;
    --peri-200: #1e5b56;

    --teal: #22c55e;
    --teal-ink: #86efac;
    --teal-100: #0f2c1c;
    --teal-300: #1f6b3d;

    --plum: #f59e0b;
    --plum-100: #33220a;
    --plum-300: #78480d;

    --amber: #fbbf24;
    --amber-100: #33220a;

    --head-bg: #12161c;
    --heat-empty: #202731;
    --hatch-a: #181e26;
    --hatch-b: #12161c;
    --off-ink: #64748b;
    --seg-hover: rgba(255, 255, 255, .07);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .28);
    --active-bg: #14b8a6;
    --active-ink: #071917;
    --rail-accent: #14b8a6;
  }
}

/* Header & shell width */
body:has([data-board]) .site-head {
  background: var(--head-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none;
}
body:has([data-board]) .head-row,
.board {
  max-width: 940px;
  --gutter: clamp(14px, 2.6vw, 24px);
}
body:has([data-board]) .head-row {
  min-height: 52px;
  padding-block: 6px;
  gap: 8px 10px;
}
body:has([data-board]) .brand { min-height: 36px; gap: 9px; }
body:has([data-board]) .brand-mark { width: 28px; height: 28px; }
body:has([data-board]) .brand-name { font-size: .95rem; font-weight: 700; letter-spacing: -.015em; }
body:has([data-board]) .brand-sub { display: none; }
body:has([data-board]) .tracker-history-link {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 580;
  text-decoration: none;
  transition: background-color .14s, border-color .14s, color .14s;
}
body:has([data-board]) .tracker-history-link:hover {
  background: var(--tint);
  border-color: var(--line-2);
  color: var(--ink);
  text-decoration: none;
}
body:has([data-board]) .menu-prefs > summary,
.tracker-explore > summary {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 580;
}
body:has([data-board]) .menu-prefs > summary:hover,
body:has([data-board]) .menu-prefs[open] > summary,
.tracker-explore > summary:hover,
.tracker-explore[open] > summary {
  background: var(--tint);
  border-color: var(--line-2);
  color: var(--ink);
}
body:has([data-board]) .language-switch { min-height: 34px; }
body:has([data-board]) .tracker-explore { display: block; flex: none; }
.tracker-explore > summary { white-space: nowrap; }
.tracker-explore-panel {
  left: auto;
  right: var(--gutter);
  z-index: 1;
  width: min(360px, calc(100% - var(--gutter) * 2));
  max-height: calc(100vh - 4.5rem);
  max-height: calc(100dvh - 4.5rem);
  overflow-y: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.tracker-explore-heading {
  padding: 4px 8px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 650;
}
.tracker-explore-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: .875rem;
  line-height: 1.3;
}
@media (min-width: 900px) {
  .tracker-explore { position: relative; }
  .tracker-explore-panel { right: 0; width: 360px; }
}
body:has([data-board]) .menu-prefs .seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
}

.board {
  --board-radius: 14px;
  --board-pad: 18px;
  display: grid;
  gap: 11px;
  padding-block: 14px 0;
}

/* Thin utility strips & recessed instrument segmented controls */
.util-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  min-width: 0;
}
.tz-strip { padding-block: 7px; }
.strip-lead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.strip-copy { display: grid; gap: 1px; min-width: 0; }
.strip-ico { color: var(--muted); flex: none; }
.strip-kicker {
  font-family: var(--mono);
  font-size: .71rem;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
.strip-sub { font-size: .8rem; color: var(--ink-2); line-height: 1.3; }
.strip-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.strip-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: .73rem;
  font-weight: 620;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .14s, border-color .14s, color .14s;
}
.strip-pill:hover {
  background: var(--tint);
  border-color: var(--line-2);
  color: var(--ink);
  text-decoration: none;
}
.strip-pill-solid {
  background: var(--active-bg);
  border-color: var(--active-bg);
  color: var(--active-ink);
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 620;
  letter-spacing: 0;
}
.strip-pill-solid:hover {
  background: var(--peri-ink);
  border-color: var(--peri-ink);
  color: var(--active-ink);
}
.tz-readout {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 9px;
  min-width: 0;
}
.tz-now { font-size: .83rem; font-weight: 650; color: var(--ink); }

.seg-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--tint);
  flex: none;
}
.seg-pill button {
  min-height: 27px;
  min-width: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .14s, color .14s, border-color .14s;
}
.seg-pill button:hover:not([aria-pressed="true"]):not([aria-selected="true"]) {
  color: var(--ink);
}
.seg-pill button[aria-pressed="true"],
.seg-pill button[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

/* Main horizontal status card — original quota-rail + capsule emblem (no dot matrix) */
.status-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(265px, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--board-radius);
  background: var(--surface);
  overflow: clip;
  min-width: 0;
}
.status-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rail-accent) 0%, var(--peri-200) 42%, transparent 88%);
  pointer-events: none;
}
.board[data-mood="yes"] .status-card::before {
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-300) 58%, transparent 100%);
}
.board[data-mood="soon"] .status-card::before {
  background: linear-gradient(90deg, var(--plum) 0%, var(--plum-300) 54%, transparent 100%);
}
.status-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 23px 24px 21px;
  min-width: 0;
  background: var(--surface);
}
.status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.status-question {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .95rem;
  font-weight: 630;
  color: var(--ink-2);
  letter-spacing: -.01em;
}
.grt-emblem { flex: none; overflow: visible; }
.grt-emblem .emblem-track { stroke: var(--line-2); fill: var(--surface-sub); }
.grt-emblem .emblem-fill { fill: var(--peri); transform-origin: 4px 9px; transition: fill .2s, transform .3s ease-out; }
.grt-emblem .emblem-arc { stroke: var(--plum); transition: stroke .2s; }
.board[data-mood="yes"] .grt-emblem .emblem-track { stroke: var(--teal-300); fill: var(--teal-100); }
.board[data-mood="yes"] .grt-emblem .emblem-fill { fill: var(--teal); transform: scaleX(1.32); }
.board[data-mood="yes"] .grt-emblem .emblem-arc { stroke: var(--teal-ink); }
.board[data-mood="soon"] .grt-emblem .emblem-track { stroke: var(--plum-300); fill: var(--amber-100); }
.board[data-mood="soon"] .grt-emblem .emblem-fill { fill: var(--plum); }
.status-card[data-wish-echo="on"] .grt-emblem .emblem-fill {
  animation: grtEmblemCharge .56s cubic-bezier(.22, 1, .36, 1) 1;
}

.scope-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-sub);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 580;
}
.status-answer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.board-word {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.95rem, 1.45rem + 1.8vw, 2.75rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--ink);
}
.board[data-mood="yes"] .board-word { color: var(--teal-ink); }
.board[data-mood="soon"] .board-word { color: var(--amber); }

/* Original Wish for a reset button (flat crisp border, no heavy offset shadow) + orbital pulse/trace */
.wish-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px 0 11px;
  border: 1px solid var(--peri-200);
  border-radius: 10px;
  background: var(--peri-50);
  color: var(--peri-ink);
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 640;
  letter-spacing: -.005em;
  line-height: 1;
  cursor: pointer;
  overflow: visible;
  transition: background-color .16s, border-color .16s, color .16s, transform .12s;
}
.wish-btn:hover { background: var(--peri-100); border-color: var(--peri); }
.wish-btn:active { transform: scale(.98); }
.wish-btn[aria-pressed="true"] { background: var(--teal-100); border-color: var(--teal-300); color: var(--teal-ink); }
.wish-btn[aria-pressed="true"]:hover { border-color: var(--teal); }
.wish-glyph { position: relative; z-index: 1; flex: none; color: currentColor; transform-origin: center; }
.wish-core { transform-origin: 9px 9.2px; opacity: .55; transition: opacity .16s, fill .16s; }
.wish-btn[aria-pressed="true"] .wish-core { opacity: 1; fill: var(--teal); }
.wish-label { position: relative; z-index: 1; }
.board .wish-count {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--peri-200);
  color: inherit;
  font-variant-numeric: tabular-nums;
}
.board .wish-btn[aria-pressed="true"] .wish-count { border-color: var(--teal-300); }

.wish-fx { position: absolute; inset: -1px; border-radius: 10px; pointer-events: none; overflow: visible; z-index: 0; }
.wish-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wish-ring rect {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 28 72;
  stroke-dashoffset: 100;
  opacity: 0;
}
.wish-wave {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid var(--teal);
  opacity: 0;
  transform: scale(1);
}
.wish-sparks { position: absolute; left: 19px; top: 50%; width: 0; height: 0; }
.wish-sparks i {
  position: absolute;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0;
  transform: translate(0, 0) scale(.4);
}
.wish-sparks i:nth-child(2), .wish-sparks i:nth-child(5) { background: var(--plum); width: 3.5px; height: 3.5px; }
.wish-sparks i:nth-child(3), .wish-sparks i:nth-child(6) { background: var(--peri); }

.wish-btn[data-wish-burst="on"] .wish-ring rect { animation: wishTrace .58s cubic-bezier(.22, 1, .36, 1) 1 forwards; }
.wish-btn[data-wish-burst="on"] .wish-wave { animation: wishWave .52s cubic-bezier(.16, 1, .3, 1) 1 forwards; }
.wish-btn[data-wish-burst="on"] .wish-glyph { animation: wishSpin .5s cubic-bezier(.2, .9, .3, 1) 1; }
.wish-btn[data-wish-burst="on"] .wish-core { animation: wishCorePop .44s cubic-bezier(.22, 1, .36, 1) 1; }
.wish-btn[data-wish-burst="on"] .wish-sparks i:nth-child(1) { --tx: -11px; --ty: -13px; animation: wishSpark .52s cubic-bezier(.16, 1, .3, 1) 1 forwards; }
.wish-btn[data-wish-burst="on"] .wish-sparks i:nth-child(2) { --tx: 5px; --ty: -16px; animation: wishSpark .56s cubic-bezier(.16, 1, .3, 1) .03s 1 forwards; }
.wish-btn[data-wish-burst="on"] .wish-sparks i:nth-child(3) { --tx: 16px; --ty: -10px; animation: wishSpark .5s cubic-bezier(.16, 1, .3, 1) .05s 1 forwards; }
.wish-btn[data-wish-burst="on"] .wish-sparks i:nth-child(4) { --tx: -12px; --ty: 12px; animation: wishSpark .52s cubic-bezier(.16, 1, .3, 1) .02s 1 forwards; }
.wish-btn[data-wish-burst="on"] .wish-sparks i:nth-child(5) { --tx: 4px; --ty: 16px; animation: wishSpark .56s cubic-bezier(.16, 1, .3, 1) .04s 1 forwards; }
.wish-btn[data-wish-burst="on"] .wish-sparks i:nth-child(6) { --tx: 16px; --ty: 11px; animation: wishSpark .5s cubic-bezier(.16, 1, .3, 1) .06s 1 forwards; }

@keyframes wishTrace {
  0% { stroke-dashoffset: 100; opacity: 0; }
  12% { opacity: .95; }
  82% { opacity: .85; }
  100% { stroke-dashoffset: -28; opacity: 0; }
}
@keyframes wishWave {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.07, 1.26); opacity: 0; }
}
@keyframes wishSpin {
  0% { transform: rotate(0deg) scale(1); }
  45% { transform: rotate(-200deg) scale(1.12); }
  100% { transform: rotate(-360deg) scale(1); }
}
@keyframes wishCorePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.5); }
  100% { transform: scale(1); }
}
@keyframes wishSpark {
  0% { transform: translate(0, 0) scale(.45); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(.2); opacity: 0; }
}
@keyframes grtEmblemCharge {
  0% { transform: scaleX(1); }
  45% { transform: scaleX(1.38); fill: var(--teal); }
  100% { transform: scaleX(1); }
}

.status-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: .78rem; color: var(--muted); }
.reviewed-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-sub);
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
}
.reviewed-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--peri); flex: none; }
.board[data-mood="yes"] .reviewed-dot { background: var(--teal); }
.board[data-mood="soon"] .reviewed-dot { background: var(--plum); }
.status-badge, .board-health {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--amber-100);
  color: var(--amber);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 640;
}

/* Right stacked facts ledger column */
.status-facts {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  border-inline-start: 1px solid var(--line);
  background: var(--surface-sub);
  min-width: 0;
}
.fact-cell {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 13px 18px;
  min-width: 0;
}
.fact-cell + .fact-cell { border-top: 1px solid var(--line); }
.fact-cell dt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact-ico { color: var(--muted); flex: none; }
.fact-val {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 6px;
  font-size: .86rem;
  font-weight: 620;
  color: var(--ink);
  line-height: 1.35;
}
.fact-link a,
.fact-anchor {
  color: var(--peri-ink);
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 640;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: .22em;
}
.fact-link a:hover,
.fact-anchor:hover { text-decoration-style: solid; }
.fact-age {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 540;
  color: var(--muted);
}
.fact-age::before { content: "("; }
.fact-age::after { content: ")"; }
.fact-sub { font-size: .78rem; font-weight: 460; color: var(--muted); }
.fact-detail { font-size: .76rem; color: var(--muted); }
.fact-detail a { color: var(--peri-ink); font-weight: 600; }

.status-badge:empty,
.fact-detail:empty,
.fact-age:empty,
.chance-mood:empty,
.board .wish-count:empty { display: none; }

/* Compact Reset Chance strip (24h / 7d) */
.chance-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  min-width: 0;
}
.chance-lead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
}
.chance-pct {
  font-size: 1.25rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.chance-strip[data-level="signal"] .chance-pct { color: var(--amber); }
.chance-strip[data-level="official"] .chance-pct { color: var(--peri-ink); }
.chance-bar {
  width: 108px;
  height: 6px;
  display: block;
  flex: none;
  overflow: visible;
}
.chance-track { stroke: var(--tint-2); stroke-width: 6; stroke-linecap: round; }
.chance-arc {
  stroke: var(--teal);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dasharray .24s ease-out;
}
.chance-strip[data-level="signal"] .chance-arc { stroke: var(--amber); }
.chance-strip[data-level="pending"] .chance-arc,
.chance-strip[data-level="official"] .chance-arc,
.chance-strip[data-level="stale"] .chance-arc { visibility: hidden; }
.chance-mood {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--tint);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
}
.chance-strip[data-level="signal"] .chance-mood { background: var(--amber-100); color: var(--amber); }
.chance-strip[data-level="official"] .chance-mood { background: var(--peri-100); color: var(--peri-ink); }
.chance-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.chance-detail { position: static; }
.chance-detail > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.chance-detail > summary::-webkit-details-marker { display: none; }
.chance-detail > summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform .15s;
}
.chance-detail[open] > summary {
  background: var(--tint);
  border-color: var(--line-2);
  color: var(--ink);
}
.chance-detail[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.chance-detail > summary:hover {
  background: var(--tint);
  border-color: var(--line-2);
  color: var(--ink);
}
.chance-popover {
  position: absolute;
  z-index: 25;
  right: 0;
  top: calc(100% + 6px);
  width: min(380px, 100%);
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 10px 26px -12px rgba(15, 23, 42, .16);
  font-size: .82rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.chance-popover a { color: var(--peri-ink); font-weight: 600; }
.chance-method { display: inline-block; margin-top: 6px; font-size: .78rem; }

/* Annual Reset Heatmap & Month Calendar card */
.board .tracker-calendar {
  --tracker-pad: var(--board-pad);
  border: 1px solid var(--line);
  border-radius: var(--board-radius);
  background: var(--surface);
  box-shadow: none;
  overflow: hidden;
}
.board .tracker-calendar .cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0;
  padding: 9px var(--board-pad);
  border-bottom: 1px solid var(--line);
}
.cal-head-left { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.cal-head-right { display: flex; align-items: center; gap: 8px; }
.board .tracker-calendar .cal-views { padding: 2px; }
.board .tracker-calendar .cal-views button {
  min-height: 27px;
  min-width: 48px;
  padding: 0 10px;
  font-size: .72rem;
}
.board .tracker-calendar .cal-views [role="tab"][aria-selected="true"] {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.board .tracker-calendar .cal-layout > .cal {
  padding: 12px var(--board-pad) 14px;
}
.board .tracker-calendar .cal-bar { margin: 0 0 8px; gap: 6px; }
.board .tracker-calendar .cal-month { font-size: .95rem; font-weight: 680; }
.board .tracker-calendar .cal-nav .icon-btn {
  width: 34px;
  height: 34px;
  font-size: 1.15rem;
  border-color: var(--line);
}
.board .tracker-calendar .cal-nav .btn-small {
  min-height: 34px;
  padding: 0 10px;
  font-size: .78rem;
  border-color: var(--line);
}
.board .tracker-calendar .heat-caption { font-size: .74rem; font-weight: 520; color: var(--muted); }
.board .tracker-calendar .heat-scroll { margin-inline: 0; padding: 4px 2px 6px; }
.board .tracker-calendar .heat { --cell: 13px; --gap: 2px; gap: 4px 8px; }
.board .tracker-calendar .heat-months,
.board .tracker-calendar .heat-dow { font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.board .tracker-calendar .heat-cell.s-out {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}
.board .tracker-calendar .heat-cell.s-future {
  background: transparent;
  box-shadow: none;
  border: 1px dashed var(--line-2);
}
.board .tracker-calendar .heat-cell.is-today {
  outline: 1.5px solid var(--ink);
  outline-offset: 1px;
}
.board .tracker-calendar .heat-cell[aria-pressed="true"] {
  outline: 2px solid var(--peri);
  outline-offset: 1px;
  z-index: 2;
}
.board .tracker-calendar .legend {
  justify-content: flex-end;
  margin-top: 10px;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--ink-2);
}
.board .tracker-calendar .cal-day { border-radius: 9px; }
.board .tracker-calendar .cal-day.is-today { border-color: var(--peri); }
.board .tracker-calendar .cal-day.is-today .cal-num { color: var(--peri-ink); font-weight: 700; }
.board .tracker-calendar .day-panel {
  border-radius: 0;
  padding: 14px var(--board-pad);
  background: var(--surface-sub);
  box-shadow: none;
}
.cal-noscript { padding: 0 var(--board-pad) 12px; }

/* Compact X team signals card */
.board-feed {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--board-radius);
  background: var(--surface);
  overflow: hidden;
  scroll-margin-top: 12px;
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  padding: 9px var(--board-pad);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.board-more {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  color: var(--peri-ink);
  text-decoration: none;
}
.board-more:hover { text-decoration: underline; }
.posts { border-top: 0; }
.post { border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 9px var(--board-pad);
  text-decoration: none;
  color: var(--ink);
  transition: background-color .12s;
}
.post-link:hover { background: var(--surface-sub); }
.post-ava { display: none; }
.post-body { min-width: 0; }
.post-top {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  color: var(--muted);
  font-size: .74rem;
}
.post-top b { font-family: var(--mono); font-weight: 620; color: var(--ink-2); }
.post-top time { font-family: var(--mono); font-size: .72rem; }
.post-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--amber-100);
  color: var(--amber);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 650;
}
.t-confirmed .post-chip { background: var(--teal-100); color: var(--teal-ink); }
.t-scheduled .post-chip,
.t-rollout .post-chip { background: var(--peri-100); color: var(--peri-ink); }
.post-title {
  display: block;
  margin-top: 2px;
  font-size: .875rem;
  font-weight: 560;
  line-height: 1.38;
  color: var(--ink);
}
.post-go { color: var(--muted); font-size: .85rem; }
.feed-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 8px var(--board-pad);
  border-top: 1px solid var(--line);
  background: var(--surface-sub);
}
.board-btn-quiet {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  min-height: 32px;
  color: var(--peri-ink);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 640;
  cursor: pointer;
}
.board-btn-quiet:hover { text-decoration: underline; }
.feed-sources {
  display: inline-block;
  margin-inline-start: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .75rem;
}
.feed-sources > summary {
  cursor: pointer;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.who-row { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 4px 0; }
.who-row .who { color: var(--peri-ink); font-family: var(--mono); font-size: .74rem; text-decoration: none; }
.who-row .who:hover { text-decoration: underline; }

/* Collapsed FAQ & minimal footer */
.board .tracker-faq {
  --tracker-pad: var(--board-pad);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: .85rem;
  font-weight: 600;
}
.board .tracker-faq > summary {
  padding: 8px var(--board-pad);
  min-height: 42px;
  color: var(--ink-2);
}
.board .tracker-faq .faq-list { padding: 0 var(--board-pad) 14px; }
.board .faq-item { padding: 10px 0; }
.board .faq-q { font-size: .88rem; font-weight: 620; color: var(--ink); }
.board .faq-item p { font-size: .84rem; font-weight: 400; color: var(--ink-2); line-height: 1.5; }

.board-footer { display: none; }
body:has([data-board]) .site-foot {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-block: 10px;
  background: var(--bg);
}
body:has([data-board]) .foot-grid { display: none; }
body:has([data-board]) .board-footer {
  display: flex;
  max-width: 940px;
  flex-wrap: wrap;
  gap: 2px 16px;
}
.board-footer a {
  color: var(--muted);
  font-size: .78rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.board-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Responsive stack for 390px mobile — zero horizontal overflow, single-row strips, heatmap above fold */
@media (max-width: 760px) {
  .status-card { grid-template-columns: minmax(0, 1fr); }
  .status-facts {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    grid-template-rows: auto;
  }
}
@media (max-width: 680px) {
  body:has([data-board]) .head-row { min-height: 46px; padding-block: 4px; --gutter: 12px; }
  body:has([data-board]) .tracker-history-link { min-height: 32px; padding: 0 10px; }
  .tracker-explore > summary { min-height: 32px; padding-inline: 9px; }
  body:has([data-board]) .language-switch { min-height: 32px; }
  body:has([data-board]) .menu-prefs > summary { min-height: 32px; min-width: 34px; padding: 0 9px; }
  .board { --gutter: 12px; --board-radius: 12px; --board-pad: 12px; gap: 8px; padding-block: 10px 0; }
  .util-strip { padding: 7px 12px; border-radius: 10px; gap: 6px 8px; }
  .tz-strip { padding-block: 6px; }
  .strip-sub, .strip-pill-desk { display: none; }
  .strip-pill { min-height: 30px; padding: 0 9px; font-size: .72rem; }
  .tz-readout { gap: 4px 6px; }
  .tz-now { font-size: .75rem; }
  .seg-pill button { min-height: 26px; min-width: 36px; padding: 0 8px; font-size: .69rem; }
  .status-main { padding: 15px 14px 12px; gap: 9px; }
  .status-question { font-size: .86rem; gap: 7px; }
  .grt-emblem { width: 28px; height: 16px; }
  .board-word { font-size: 1.9rem; }
  .wish-btn { min-height: 36px; padding: 0 12px 0 10px; font-size: .79rem; }
  .fact-cell { padding: 9px 14px; gap: 2px; }
  .fact-val { font-size: .82rem; }
  .chance-strip { padding: 8px 12px; border-radius: 10px; gap: 6px 8px; }
  .chance-pct { font-size: 1.15rem; }
  .chance-bar { width: 58px; }
  .chance-popover { left: 0; right: 0; width: auto; }
  .board .tracker-calendar .cal-head { padding: 8px 12px; }
  .board .tracker-calendar .cal-layout > .cal { padding: 9px 12px 12px; }
  .board .tracker-calendar .heat-caption { font-size: .7rem; }
  .board .tracker-calendar .heat { --cell: 18px; --gap: 3px; }
  .board .tracker-calendar .legend { justify-content: flex-start; margin-top: 8px; gap: 4px 10px; }
  .board-head { padding: 8px 12px; }
  .post-link { padding: 8px 12px; min-height: 46px; }
  .feed-foot { padding: 6px 12px; }
}
@media (max-width: 420px) {
  body:has([data-board]) .head-row { column-gap: 6px; }
  body:has([data-board]) .brand { gap: 6px; }
  body:has([data-board]) .brand-mark { width: 24px; height: 24px; }
  body:has([data-board]) .brand-name { font-size: .85rem; white-space: normal; text-wrap: balance; }
  body:has([data-board]) .tracker-history-link { padding-inline: 4px; }
  body:has([data-board]) .language-switch,
  body:has([data-board]) .menu-prefs > summary,
  .tracker-explore > summary { padding-inline: 6px; }
}
@media (max-width: 400px) {
  .chance-bar { display: none; }
  .chance-lead { column-gap: 8px; }
  .chance-mood { padding-inline: 6px; }
  .chance-actions { gap: 6px; }
  .chance-actions .seg-pill button { min-width: 34px; padding-inline: 5px; }
  .chance-detail > summary { padding-inline: 7px; }
  .scope-tag { padding-inline: 6px; font-size: .65rem; }
  .scope-prefix { display: none; }
}
@media (max-width: 359px) {
  .head-row,
  body:has([data-board]) .head-row { --gutter: 10px; column-gap: 6px; }
  .brand,
  body:has([data-board]) .brand { gap: 6px; }
  .brand-mark,
  body:has([data-board]) .brand-mark { width: 24px; height: 24px; }
  .brand-name,
  body:has([data-board]) .brand-name { font-size: .82rem; }
  body:has([data-board]) .tracker-history-link { display: none; }
  .language-switch,
  body:has([data-board]) .language-switch { padding-inline: 6px; font-size: .75rem; }
  body:has([data-board]) .menu-prefs > summary { min-width: 32px; padding-inline: 6px; }
  .board .tracker-calendar .legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .chance-arc, .wish-btn, .grt-emblem .emblem-fill { transition: none; }
  .wish-btn:active { transform: none; }
  .wish-btn[data-wish-burst="on"] .wish-ring rect,
  .wish-btn[data-wish-burst="on"] .wish-wave,
  .wish-btn[data-wish-burst="on"] .wish-glyph,
  .wish-btn[data-wish-burst="on"] .wish-core,
  .wish-btn[data-wish-burst="on"] .wish-sparks i,
  .status-card[data-wish-echo="on"] .grt-emblem .emblem-fill { animation: none !important; }
}
@media (forced-colors: active) {
  .seg-pill button[aria-pressed="true"],
  .seg-pill button[aria-selected="true"],
  .wish-btn[aria-pressed="true"] { outline: 2px solid Highlight; }
  .chance-arc, .grt-emblem { forced-color-adjust: none; }
  .tracker-calendar .mk { background: CanvasText; forced-color-adjust: none; }
  .tracker-calendar .heat-cell { border: 1px solid GrayText; }
  .tracker-calendar .heat-cell.s-rec { border-color: CanvasText; }
  .board .tracker-calendar button.cal-day[aria-pressed="true"],
  .board .tracker-calendar .heat-cell[aria-pressed="true"] { outline: 2px solid Highlight; }
}
