/* ZaiHub: interface.
   A tool, not a page: four views, one visible at a time. No emoji anywhere,
   every glyph is an inline SVG from the set in app.js.
   Visual system: the zaigla.com editorial language. Light paper ground,
   hairline rules, Instrument Serif for the display moments, Google Sans Flex
   for the interface and a system mono for technical labels. One blue accent,
   amber reserved for a running clock, depth from soft shadow, never chrome. */

:root {
  --bg: #f7f8fb;
  --bg-2: #f2f4f9;
  --sunk: #eceff6;
  --card: #ffffff;
  --card-2: #f4f6fb;
  --card-3: #e9ecf4;
  --line: #e7e9f0;
  --line-2: #d9dce6;
  --hair: #f0f2f7;
  --ink: #0a0b0f;
  --dim: #545454;
  --faint: #6f7380;

  --accent: #3455fa;
  --accent-hi: #2040e3;
  --accent-lo: #1a34c9;
  --accent-ink: #ffffff;
  --accent-dim: rgba(52, 85, 250, .07);
  --accent-line: rgba(52, 85, 250, .3);
  --accent-glow: rgba(52, 85, 250, .3);

  --live: #b45309;
  --live-hi: #8a3d06;
  --live-dim: rgba(180, 83, 9, .08);
  --live-line: rgba(180, 83, 9, .3);

  --good: #0f7b4f;
  --good-dim: rgba(15, 123, 79, .08);
  --good-line: rgba(15, 123, 79, .28);

  --bad: #c0362c;
  --bad-dim: rgba(192, 54, 44, .07);
  --bad-line: rgba(192, 54, 44, .3);

  --sans: "Google Sans Flex", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --disp: var(--sans);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;

  --r-xl: 20px;
  --r-lg: 14px;
  --r: 10px;
  --r-sm: 8px;

  --sh-1: 0 1px 2px rgba(22, 28, 55, .05);
  --sh-2: 0 4px 16px -8px rgba(22, 28, 55, .14);
  --sh-3: 0 20px 48px -24px rgba(22, 28, 55, .24);
  --edge: inset 0 1px 0 #ffffff;
  --glow: 0 10px 28px -14px var(--accent-glow);

  --bar: 58px;
  --maxw: 1120px;
}

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

/* Every class that sets display would otherwise outrank the UA [hidden] rule
   and leave hidden elements on screen. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: .01em;
  /* Google Sans Flex ships 400 and 500 only. Left to itself the browser fakes
     600-700 and the text goes crunchy, so synthesis is off and every weight
     above 500 snaps back to the real medium cut. */
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-y: scroll;
}

/* Environment: one cool wash from the top-left and a fine dot rule under it,
   the same quiet paper the rest of zaigla.com sits on. Static on purpose.
   Both layers sit behind content and never take pointer events. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(58% 42% at 10% 0%, rgba(52, 85, 250, .07), transparent 66%),
    radial-gradient(44% 38% at 98% 2%, rgba(52, 85, 250, .04), transparent 70%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(rgba(22, 28, 55, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 62%);
  mask-image: linear-gradient(180deg, #000, transparent 62%);
}

::selection { background: rgba(52, 85, 250, .17); color: var(--ink); }

svg { display: block; flex: none; }
.i { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 15px; height: 15px; stroke-width: 1.9; }
.i.lg { width: 22px; height: 22px; stroke-width: 1.6; }
.i.xl { width: 28px; height: 28px; stroke-width: 1.5; }

b, strong { font-weight: 620; color: var(--ink); }

.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip {
  position: fixed; left: -9999px; top: 0; z-index: 400;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
  font-size: 13px; font-weight: 650;
}
.skip:focus { left: 0; }

/* ============================================================ type */

/* Instrument Serif has one cut. Everything set in it is pinned to 400 with
   serif-native tracking, so nothing asks the browser to invent a bold. */
.display, h2.title, .hero-title, .stat .sv, .stage .thing, .exec-task,
.counter .n, .runner-prompt, .runner-summary .big, .call-them, .call-grade {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.005em;
}

.display { font-size: clamp(28px, 3.9vw, 40px); line-height: 1.18; }
h2.title { font-size: clamp(23px, 2.6vw, 28px); line-height: 1.24; }
h3 { font-size: 15.5px; font-weight: 500; letter-spacing: 0; line-height: 1.35; }

.kicker {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.kicker.on { color: var(--accent); }
.sub { font-size: 14px; color: var(--dim); }
.hint { font-size: 12.5px; color: var(--faint); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ============================================================ top bar */

.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--bar);
  background: rgba(247, 248, 251, .82);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar .bar {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 10px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  margin-right: 8px;
}
.brand .bm {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--sh-2);
}
.brand .bm .i { width: 18px; height: 18px; stroke-width: 1.9; }
.brand .wm { font-size: 16.5px; font-weight: 500; letter-spacing: -.015em; }
.brand .wm i { font-style: normal; color: var(--accent); font-weight: 600; }

.tabs { display: flex; gap: 2px; }
.tab {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--dim); cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  transition: color .16s ease, background .16s ease;
}
.tab .i { width: 16px; height: 16px; opacity: .7; }
.tab:hover { color: var(--ink); background: var(--hair); }
.tab.on { color: var(--ink); background: var(--card-3); box-shadow: var(--edge); }
.tab.on .i { color: var(--accent); opacity: 1; }

.tools { margin-left: auto; display: flex; align-items: center; gap: 7px; }

.streak {
  display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: 12px; color: var(--dim);
  white-space: nowrap;
}
.streak .i { width: 13px; height: 13px; }
.streak b { color: var(--ink); font-weight: 600; }
.streak.hot { border-color: var(--live-line); background: var(--live-dim); color: var(--live); box-shadow: 0 0 22px -8px var(--live-line); }
.streak.hot b, .streak.hot .i { color: var(--live); }

.ico {
  width: 30px; height: 30px; display: grid; place-items: center; flex: none;
  border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: transparent; color: var(--dim); cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.ico:hover { color: var(--ink); border-color: var(--line-2); background: var(--hair); }
.ico.off { color: var(--faint); }
.ico.off:hover { color: var(--dim); }

.lang { display: flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; height: 30px; }
.lang button {
  border: 0; background: transparent; color: var(--faint);
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .06em;
  padding: 0 9px; cursor: pointer; transition: color .16s ease, background .16s ease;
}
.lang button:hover { color: var(--ink); background: var(--hair); }
.lang button.on { background: var(--accent); color: var(--accent-ink); }

/* ---- audio settings popover ---- */
.audio { position: relative; display: flex; }
.ico.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.audio-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  width: 236px; padding: 14px; box-sizing: border-box;
  background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: var(--sh-3);
  animation: rise .18s cubic-bezier(.2, .7, .3, 1);
}
.audio-pop .pop-title {
  display: flex; align-items: center; gap: 7px; margin-bottom: 12px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
}
.audio-pop .pop-title .i { width: 14px; height: 14px; color: var(--accent); }
.pop-row { margin-bottom: 13px; }
.pop-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.pop-lbl { font-size: 13px; color: var(--ink); font-weight: 550; }
.pop-val { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.pop-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 999px; background: var(--card-3); outline: none; cursor: pointer;
}
.pop-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--card-2); box-shadow: 0 0 0 1px var(--accent-line);
  cursor: pointer; transition: transform .12s ease;
}
.pop-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.pop-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--card-2);
  background: var(--accent); box-shadow: 0 0 0 1px var(--accent-line); cursor: pointer;
}
.pop-range:focus-visible { box-shadow: 0 0 0 2px var(--accent-glow); }
.btn.pop-test {
  width: 100%; margin-top: 3px; justify-content: center; gap: 7px;
  font-size: 12.5px; padding: 8px; border-radius: 999px;
}

/* ---- presence codex ---- */
.codex { list-style: none; margin: 22px 0 0; padding: 0; }
.codex-row {
  display: flex; gap: 20px; padding: 22px 0;
  border-top: 1px solid var(--line);
}
.codex-row:first-child { border-top: 0; padding-top: 4px; }
.codex-n {
  flex: none; min-width: 30px; padding-top: 2px;
  font-family: var(--mono); font-size: 15px; font-weight: 600;
  color: var(--accent); opacity: .9;
}
.codex-body { flex: 1; min-width: 0; }
.codex-act {
  margin: 0 0 7px; font-size: 18px; line-height: 1.32;
  font-weight: 600; color: var(--ink); letter-spacing: -.01em;
}
.codex-why { margin: 0; max-width: 64ch; font-size: 14px; line-height: 1.62; color: var(--dim); }
.codex-src { color: var(--accent-hi); font-weight: 600; }
.codex-close {
  margin: 30px 0 0; padding: 22px 24px;
  border: 1px solid var(--accent-line); background: var(--accent-dim);
  border-radius: var(--r-lg); box-shadow: var(--glow);
  font-size: 17px; line-height: 1.5; font-weight: 600; color: var(--ink);
}
@media (max-width: 560px) {
  .codex-row { gap: 14px; padding: 18px 0; }
  .codex-act { font-size: 16.5px; }
  .codex-close { font-size: 15.5px; padding: 18px 18px; }
}

/* ---- knowledge library: grouped principle cards, each a tap from its drill ---- */
.lib-group { margin-top: 30px; }
.lib-group:first-of-type { margin-top: 22px; }
.lib-grouphead {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.lib-gico {
  display: inline-flex; width: 30px; height: 30px; flex: none;
  align-items: center; justify-content: center; border-radius: var(--r-sm);
  background: var(--accent-dim); border: 1px solid var(--accent-line); color: var(--accent);
}
.lib-gico .i { width: 17px; height: 17px; }
.lib-grouphead h3 {
  margin: 0; font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.lib-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.lib-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--sh-1);
}
.lib-law {
  margin: 0 0 8px; font-size: 17px; line-height: 1.3;
  font-weight: 600; color: var(--ink); letter-spacing: -.01em;
}
.lib-src {
  margin: 0 0 12px; font-family: var(--mono);
  font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-hi);
}
.lib-note { margin: 0; font-size: 14px; line-height: 1.64; color: var(--dim); }
.lib-go {
  align-self: flex-start; margin-top: 16px; height: 34px; padding: 0 13px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .05em;
  color: var(--accent); background: var(--accent-dim); border-color: var(--accent-line);
}
.lib-go:hover { background: var(--accent-line); color: var(--ink); border-color: var(--accent-line); }
.lib-go .i { width: 15px; height: 15px; }
@media (max-width: 560px) {
  .lib-card { padding: 17px; }
  .lib-law { font-size: 16px; }
}

/* ============================================================ prompt vault
   Copy-and-go cards. Glass surface, one accent per card, the why folded away
   until asked for so the grid reads as a clean catalog first. */
.pv-grid { grid-template-columns: repeat(auto-fill, minmax(322px, 1fr)); }
.pv-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; box-shadow: var(--sh-1);
  transition: transform .2s cubic-bezier(.2, .7, .3, 1), border-color .2s ease, box-shadow .2s ease;
}
.pv-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  opacity: 0; transition: opacity .2s ease;
}
.pv-card:hover {
  transform: translateY(-3px); border-color: var(--line-2);
  box-shadow: var(--sh-2);
}
.pv-card:hover::before { opacity: 1; }
.pv-card.feat {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(52, 85, 250, .045), transparent 42%), var(--card);
}
.pv-card.feat:hover { box-shadow: var(--sh-2), var(--glow); }

.pv-top { display: flex; align-items: flex-start; gap: 13px; }
.pv-ico {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-dim); border: 1px solid var(--accent-line); color: var(--accent);
}
.pv-ico .i { width: 20px; height: 20px; }
.pv-meta { flex: 1 1 auto; min-width: 0; }
.pv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.pv-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px;
}
.pv-tag .i { width: 12px; height: 12px; opacity: .8; }
.pv-tag.lvl-quick { color: var(--good); border-color: var(--good-line); background: var(--good-dim); }
.pv-tag.lvl-medium { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.pv-tag.lvl-deep { color: var(--live); border-color: var(--live-line); background: var(--live-dim); }
.pv-title {
  margin: 0; font-family: var(--disp); font-size: 18px; line-height: 1.25;
  font-weight: 600; letter-spacing: -.01em; color: var(--ink);
}
.pv-badge {
  flex: none; align-self: flex-start;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--live-hi); background: var(--live-dim); border: 1px solid var(--live-line);
  border-radius: 999px; padding: 4px 9px;
}

.pv-quote { position: relative; margin: 16px 0 0; padding: 15px 15px 15px 42px;
  background: var(--sunk); border: 1px solid var(--hair); border-radius: var(--r); }
.pv-mark { position: absolute; top: 12px; left: 13px; color: var(--accent); opacity: .5; }
.pv-mark .i { width: 18px; height: 18px; }
.pv-text { margin: 0; font-size: 13.5px; line-height: 1.62; color: var(--ink); }

.pv-reveal {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .28s cubic-bezier(.2, .7, .3, 1);
}
.pv-reveal-in { overflow: hidden; min-height: 0; }
.pv-card.open .pv-reveal { grid-template-rows: 1fr; }
.pv-block { padding-top: 16px; }
.pv-block:first-child { padding-top: 18px; }
.pv-blabel {
  display: flex; align-items: center; gap: 7px; margin: 0 0 5px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-hi);
}
.pv-blabel .i { color: var(--accent); }
.pv-bnote { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--dim); }

/* Czech labels run long: the row wraps rather than pushing a button past the
   card edge. */
.pv-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); }
.pv-foot .btn { flex: 1 1 132px; min-width: 0; padding: 0 12px; font-size: 12.5px; }
.pv-copy {
  color: var(--accent); background: var(--accent-dim); border-color: var(--accent-line); font-weight: 500;
}
.pv-copy:hover { background: var(--accent-line); color: var(--ink); border-color: var(--accent-line); }
.pv-copy.ok { color: var(--good); background: var(--good-dim); border-color: var(--good-line); }
.pv-more { color: var(--dim); background: transparent; border-color: var(--line); }
.pv-more:hover { color: var(--ink); background: var(--card-2); }
.pv-more .i { transition: transform .22s ease; }
.pv-card.open .pv-more .i { transform: rotate(90deg); }

.pv-tip {
  max-width: 70ch; margin: 26px auto 0; padding: 15px 18px;
  font-size: 13.5px; line-height: 1.6; color: var(--dim);
  background: var(--card); border: 1px solid var(--hair);
  border-left: 2px solid var(--accent-line); border-radius: var(--r);
}
@media (max-width: 560px) {
  .pv-card { padding: 17px; }
  .pv-title { font-size: 17px; }
}

/* ---- sticky in-view wayfinding: know your track, jump without scrolling up ---- */
.catbar, .subnav {
  position: sticky; top: var(--bar); z-index: 40;
  display: flex; flex-wrap: wrap; gap: 9px;
  margin: 0 -24px 16px; padding: 12px 24px;
  background: linear-gradient(180deg, rgba(247, 248, 251, .96) 68%, rgba(247, 248, 251, .7));
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav { margin-bottom: 26px; }
.subnav-btn {
  border: 1px solid var(--line-2); background: var(--card); color: var(--dim);
  border-radius: 999px; padding: 8px 15px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.subnav-btn:hover { color: var(--ink); background: var(--card-2); }
/* block label in front of each group of playbook pills, so eight sections read
   as three short lists instead of one long row. */
.subnav-tag {
  display: inline-flex; align-items: center; align-self: center;
  padding-left: 6px; margin-right: -2px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}
.subnav-tag:not(:first-child) { border-left: 1px solid var(--hair); padding-left: 13px; margin-left: 4px; }
.subnav-btn.on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
#presence, .pb-anchor { scroll-margin-top: calc(var(--bar) + 64px); }
@media (max-width: 860px) {
  .catbar, .subnav { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  /* eight playbook sections plus their block labels wrap to four rows on a phone
     and eat half the viewport, so the bar scrolls sideways instead of stacking. */
  .subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav-btn { flex: 0 0 auto; }
}
.catchip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card); color: var(--dim);
  font-family: inherit; font-size: 14px; font-weight: 550;
  transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.catchip .i { width: 17px; height: 17px; opacity: .85; }
.catchip em {
  font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 999px; background: var(--hair); color: var(--faint);
}
.catchip:hover { color: var(--ink); border-color: var(--line-2); background: var(--card-2); }
.catchip.on {
  color: #fff; border-color: transparent;
  background: var(--ink);
  box-shadow: var(--sh-2);
}
.catchip.on .i { opacity: 1; }
.catchip.on em { background: rgba(255, 255, 255, .16); color: #fff; }
.cat-note { margin: 0 0 20px; font-size: 13.5px; line-height: 1.5; color: var(--faint); max-width: 62ch; }

/* ---- exercise cards (shared) ---- */
.ex .ex-stage {
  display: grid; place-items: center; min-height: 208px; margin: 4px 0 16px;
  padding: 22px; border-radius: var(--r-lg);
  background: radial-gradient(120% 120% at 50% 0%, var(--card-2), var(--card));
  border: 1px solid var(--line);
}
.ex.live .ex-stage { border-color: var(--accent-line); }
.ex-cue { margin-top: 16px; text-align: center; font-size: 13.5px; color: var(--dim); max-width: 34ch; }
.ex-labels { text-align: center; margin-top: 18px; }
.ex-phase { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: .01em; min-height: 24px; }
.ex-phasen { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-top: 2px; min-height: 18px; }

/* breathing orb */
.breath-wrap { display: grid; place-items: center; }
.breath-orb {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  transform: scale(.5); transition: transform linear;
  background: radial-gradient(circle at 50% 40%, var(--accent-dim), transparent 70%);
  border: 1px solid var(--accent-line);
}
.breath-orb .orb-core {
  width: 62%; height: 62%; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--accent-hi), var(--accent) 60%, var(--accent-lo));
  box-shadow: 0 0 40px -6px var(--accent-glow);
}
.breath-orb.big { transform: scale(1); }
.breath-orb[data-phase="hold"] { filter: saturate(1.15); }

/* stillness / gaze hold */
.hold-wrap { display: grid; place-items: center; }
.hold-ring {
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--line-2); position: relative;
  background: radial-gradient(circle at 50% 40%, var(--accent-dim), transparent 72%);
}
.ex.live .hold-ring { border-color: var(--accent-line); animation: holdpulse 4s ease-in-out infinite; }
@keyframes holdpulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 0 34px -4px var(--accent-glow); } }
.hold-num { font-family: var(--mono); font-size: 40px; font-weight: 600; color: var(--ink); }
.focal-dot {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 18px 2px var(--accent-glow);
}
.ex-focal .hold-num { font-size: 14px; color: var(--faint); position: absolute; bottom: -28px; }
.ex-focal .hold-ring { overflow: visible; margin-bottom: 20px; }

/* blink metronome */
.blink-wrap { display: grid; place-items: center; }
.blink-orb {
  width: 116px; height: 116px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--accent-hi), var(--accent) 60%, var(--accent-lo));
  opacity: .18; box-shadow: 0 0 30px -8px var(--accent-glow);
}
.ex.live .blink-orb { animation: blinkcue 4s ease-in-out infinite; }
@keyframes blinkcue {
  0%, 62% { opacity: .16; transform: scale(.97); }
  74% { opacity: 1; transform: scale(1); box-shadow: 0 0 46px -4px var(--accent-glow); }
  86%, 100% { opacity: .16; transform: scale(.97); }
}

/* pace teleprompter */
.pace-wrap { width: 100%; }
.pace-text { margin-top: 14px; text-align: center; font-size: 21px; line-height: 1.7; font-weight: 500; letter-spacing: .01em; }
.pace-text .pw { color: var(--faint); transition: color .25s ease; }
.pace-text .pw.on { color: var(--ink); }
.pace-text .pw.now { color: var(--accent-ink); background: var(--accent); border-radius: 5px; padding: 1px 4px; box-shadow: 0 0 20px -4px var(--accent-glow); }

/* reaction pause */
.pause-wrap { width: 100%; display: grid; place-items: center; gap: 12px; }
.pause-q { min-height: 26px; text-align: center; font-size: 17px; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .2s ease; }
.pause-q.show { opacity: 1; }
.pause-ring { width: 100%; max-width: 260px; height: 6px; border-radius: 999px; background: var(--card-3); overflow: hidden; }
.pause-ring i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); }
.pause-ring.fill i { width: 100%; transition: width 2s linear; }
.pause-ring.go i { background: var(--good); }
.pause-status { font-size: 14px; color: var(--faint); font-weight: 550; }
.pause-status.go { color: var(--good); }
.pause-count { font-size: 13px; color: var(--faint); }
.pause-count b { font-family: var(--mono); color: var(--accent); font-size: 15px; }

/* reflection */
.reflect-box { margin: 6px 0 14px; }
.reflect-row { margin-bottom: 14px; }
.reflect-lbl { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 550; color: var(--ink); }
.reflect-ta {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 52px;
  padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.5;
}
.reflect-ta:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 2px var(--accent-dim); }
.reflect-msg { margin-left: 12px; font-size: 13px; color: var(--good); opacity: 0; transition: opacity .2s ease; display: inline-flex; align-items: center; gap: 5px; }
.reflect-msg.show { opacity: 1; }

/* agency: the gap drill (execute) */
.exec-wrap { margin: 6px 0 14px; }
.exec-prompt { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--dim); }
.exec-in {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 58px;
  padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.5;
}
.exec-in:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 2px var(--accent-dim); }
.exec-go { display: none; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--accent-line); background: radial-gradient(120% 120% at 50% 0%, var(--accent-dim), var(--card)); }
.exec-live .exec-in, .exec-live .exec-prompt { display: none; }
.exec-live .exec-go { display: block; animation: rise .3s cubic-bezier(.2, .7, .3, 1); }
.exec-line { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.exec-task { font-size: 24px; line-height: 1.28; color: var(--ink); }

/* agency: Vipassana body scan */
.scan-wrap { display: grid; place-items: center; }
.scan-orb {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, var(--accent-dim), transparent 70%);
  border: 1px solid var(--accent-line); transform: scale(.9);
}
.scan-orb .orb-core {
  width: 60%; height: 60%; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--accent-hi), var(--accent) 60%, var(--accent-lo));
  box-shadow: 0 0 40px -6px var(--accent-glow);
}
.scan-orb.breathe { animation: scanbreathe 9s ease-in-out infinite; }
@keyframes scanbreathe { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1.06); } }
.scan-region { margin-top: 20px; min-height: 24px; text-align: center; font-size: 17px; font-weight: 600; color: var(--ink); opacity: 0; }
.scan-region.in { animation: regionfade 1s ease; opacity: 1; }
@keyframes regionfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* agency: daily compounding checklist */
.chk-list { display: grid; gap: 10px; margin: 6px 0 12px; }
.chk-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 13px 15px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--card); color: var(--dim); font: inherit; font-size: 14.5px; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.chk-item:hover { border-color: var(--line); }
.chk-box {
  flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); color: transparent; transition: all .18s ease;
}
.chk-box .i { width: 14px; height: 14px; }
.chk-item.on { color: var(--ink); border-color: var(--good-line); background: var(--good-dim); }
.chk-item.on .chk-box { background: var(--good); border-color: var(--good); color: #fff; }
.chk-txt { line-height: 1.4; }
.chk-msg { margin-top: 4px; min-height: 18px; font-size: 13px; color: var(--good); opacity: 0; transition: opacity .2s ease; display: inline-flex; align-items: center; gap: 6px; }
.chk-msg.show { opacity: 1; }

/* ============================================================ daily list */

.dl-perfect {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--good);
}
.dl-group { margin-top: 34px; }
.dl-ghead { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.dl-ghead h3 { font-size: 19px; letter-spacing: -.01em; }
.dl-ghead p { margin-top: 2px; font-size: 13.5px; color: var(--dim); max-width: 60ch; }
.dl-tally {
  margin-left: auto; flex: none; font-family: var(--mono); font-size: 11px;
  letter-spacing: .06em; color: var(--faint); padding: 5px 9px;
  border: 1px solid var(--line-2); border-radius: 999px;
}
.dl-tally.on { color: var(--good); border-color: var(--good-line); background: var(--good-dim); }
.dl-list { display: grid; gap: 9px; }
.dl-row {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card);
  transition: border-color .18s ease, background .18s ease;
}
.dl-row:hover { border-color: var(--line); }
.dl-row.on { border-color: var(--good-line); background: var(--good-dim); }
.dl-tick {
  flex: 1; display: flex; align-items: flex-start; gap: 12px; text-align: left;
  padding: 14px 15px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  border-radius: var(--r);
}
.dl-txt { line-height: 1.4; }
.dl-txt b { display: block; font-size: 15px; font-weight: 600; color: var(--dim); transition: color .18s ease; }
.dl-txt em { display: block; margin-top: 3px; font-style: normal; font-size: 13px; color: var(--faint); }
.dl-row.on .dl-txt b { color: var(--ink); }
.dl-row .chk-box { margin-top: 1px; }
.dl-row.on .chk-box { background: var(--good); border-color: var(--good); color: #fff; }
.dl-go {
  flex: none; width: 46px; border: 0; border-left: 1px solid var(--line-2);
  background: none; color: var(--faint); cursor: pointer; border-radius: 0 var(--r) var(--r) 0;
  display: grid; place-items: center; transition: color .18s ease, background .18s ease;
}
.dl-go:hover { color: var(--accent); background: var(--accent-dim); }
.dl-row.on .dl-go { border-left-color: var(--good-line); }

/* per-line consistency over the tracked window: the weak habit has to be
   visible without reading the heatmap column by column */
.dl-hit {
  margin-left: auto; align-self: center; flex: none;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  color: var(--faint); padding: 4px 7px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
}
.dl-hit.good { color: var(--good); border-color: var(--good-line); }
.dl-hit.weak { color: var(--live); border-color: var(--live-line); }

/* editing an earlier day */
.panel.past { border-color: var(--live-line); }
.kicker.warn { color: var(--live); }
.dl-back { padding: 0 24px 18px; }
.dl-back .i { transform: rotate(180deg); }

/* thirty-day record */
.dl-hist {
  margin-top: 18px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
  box-shadow: var(--sh-1);
}
.dl-hhead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dl-hhead h3 { font-size: 15px; font-weight: 600; }
.dl-hnote { font-size: 12.5px; color: var(--faint); }
.dl-grid { display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; max-width: 470px; }
.dl-cell {
  aspect-ratio: 1; padding: 0; cursor: pointer;
  border-radius: 4px; border: 1px solid var(--line); background: var(--sunk);
  transition: transform .14s ease, box-shadow .14s ease;
}
.dl-cell.l1, .dl-cell.l2, .dl-cell.l3 { border-color: transparent; }
.dl-cell.l1 { background: rgba(15, 123, 79, .22); }
.dl-cell.l2 { background: rgba(15, 123, 79, .5); }
.dl-cell.l3 { background: var(--good); }
.dl-cell.now { border-color: var(--live); box-shadow: 0 0 0 1px var(--live); }
.dl-cell.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.dl-cell:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.dl-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dl-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dl-stats .dl-stat {
  display: flex; align-items: center; gap: 8px; flex: 1 1 140px;
  padding: 10px 13px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--card-2);
}
.dl-stat .d-ico { display: grid; place-items: center; color: var(--faint); }
.dl-stat .i { width: 15px; height: 15px; }
.dl-stat b { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.dl-stat span:last-child { font-size: 12px; color: var(--faint); }
.dl-stat.on { border-color: var(--live-line); background: var(--live-dim); }
.dl-stat.on .d-ico, .dl-stat.on b { color: var(--live); }

/* ============================================================ hero */

.hero { padding: 6px 2px 30px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px 1px var(--accent-glow); animation: heropulse 2.6s ease-in-out infinite;
}
@keyframes heropulse { 0%, 100% { opacity: .45; transform: scale(.82); } 50% { opacity: 1; transform: scale(1); } }
.hero-title {
  font-size: clamp(38px, 6.4vw, 64px);
  /* Czech copy stacks a caron or a ring on top of the cap height, and
     Instrument Serif draws them tall: under ~1.14 they clip on the line above. */
  line-height: 1.14; letter-spacing: -.01em;
  margin-top: 18px; max-width: 15ch;
}
.hero-lede {
  margin-top: 18px; max-width: 52ch;
  font-size: clamp(15px, 1.55vw, 17px); line-height: 1.55; color: var(--dim);
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-pill {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--dim);
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card);
}
@media (max-width: 860px) {
  .hero { padding: 4px 0 22px; }
  .hero-title { margin-top: 13px; }
}

/* ============================================================ views */

main { padding: 34px 0 96px; }
.view { display: none; }
.view.on { display: block; animation: rise .3s cubic-bezier(.2, .7, .3, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.view-head { margin-bottom: 22px; }
.view-head h2 { margin-top: 6px; }
.view-head .sub { margin-top: 6px; max-width: 62ch; }

/* ============================================================ surfaces */

.panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh-1);
}

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
/* start, not stretch: a stretched drill card pins its timer row to the bottom
   of the tallest card in the row and leaves a dead void in the middle */
.grid.drills { grid-template-columns: repeat(auto-fill, minmax(324px, 1fr)); align-items: start; }

/* ============================================================ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  height: 38px; padding: 0 17px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  transition: background .16s ease, border-color .16s ease, transform .2s cubic-bezier(.16,1,.3,1), color .16s ease, box-shadow .28s cubic-bezier(.16,1,.3,1);
  white-space: nowrap;
}
.btn:hover { background: var(--card-2); border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn .i { width: 15px; height: 15px; }

.btn.primary {
  background: var(--ink);
  border-color: transparent; color: #fff;
  box-shadow: var(--sh-2);
}
.btn.primary:hover { background: #1a1a1a; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .4); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--dim); }
.btn.ghost:hover { color: var(--ink); background: var(--hair); box-shadow: none; }
.btn.danger { background: transparent; border-color: var(--bad-line); color: var(--bad); }
.btn.danger:hover { background: var(--bad-dim); border-color: var(--bad); }
.btn.hold { position: relative; overflow: hidden; }
.btn.hold .holdfill { position: absolute; inset: 0; width: 0; background: var(--bad-dim); pointer-events: none; transition: width .18s ease; }
.btn.hold.holding .holdfill { width: 100%; transition: width 1.5s linear; }
.btn.hold .holdlbl { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 999px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.btns { display: flex; gap: 7px; flex-wrap: wrap; }

/* ============================================================ today */

.today-top { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; padding: 30px 30px 24px; }
.today-top .sub { margin-top: 10px; max-width: 46ch; }
.today-top .display { margin-top: 10px; }
.today-top .title { margin-top: 8px; }

.ring { position: relative; width: 82px; height: 82px; flex: none; }
.ring svg { width: 82px; height: 82px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5.5; stroke-linecap: round; }
.ring .track { stroke: var(--line); }
.ring .fill { stroke: var(--accent); transition: stroke-dashoffset .6s cubic-bezier(.2, .7, .3, 1); }
.ring.met .fill { stroke: var(--good); }
.ring .rn {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: 16px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ring .rn small { font-size: 11px; color: var(--faint); }

.queue { list-style: none; border-top: 1px solid var(--line); }
.q {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 30px; border-bottom: 1px solid var(--line);
  background: none; border-left: 0; border-right: 0; border-top: 0;
  width: 100%; text-align: left; cursor: pointer; color: var(--ink);
  font-family: var(--sans); border-radius: 0;
  transition: background .16s ease;
}
.q:last-child { border-bottom: 0; }
.q:hover { background: var(--hair); }
.q:hover .q-go { color: var(--accent); transform: translateX(3px); }
.q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.q-n { font-family: var(--mono); font-size: 11px; color: var(--faint); width: 16px; flex: none; }
.q-ico {
  width: 34px; height: 34px; flex: none; border-radius: var(--r-sm);
  background: var(--card-3); color: var(--dim);
  display: grid; place-items: center; box-shadow: var(--edge);
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.q:hover .q-ico { color: var(--accent); transform: translateY(-1px); }
.q-t { font-size: 14.5px; font-weight: 560; flex: 1; }
.q-d { font-family: var(--mono); font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.q-go { color: var(--faint); transition: color .16s ease, transform .16s ease; }
.q.done .q-ico { background: var(--good-dim); color: var(--good); }
.q.done .q-t { color: var(--dim); }

.today-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 22px 30px; border-top: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.today-foot .done-msg { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--good); font-weight: 550; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 14px; margin-top: 16px; }
.stat {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 17px; box-shadow: var(--sh-1);
}
.stat .sl { display: flex; align-items: center; gap: 6px; color: var(--faint); }
.stat .sl span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.stat .sl .i { width: 13px; height: 13px; }
.stat .sv {
  font-size: 34px;
  font-variant-numeric: tabular-nums; margin-top: 8px; line-height: 1;
}
.stat .sv.hot { color: var(--live); }
.stat .sv.on { color: var(--accent); }
.stat .su { font-size: 11.5px; color: var(--faint); margin-top: 5px; }

/* ---- today cross-training cards ---- */
.tracks { margin-top: 34px; }
.track-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trackcard {
  position: relative; text-align: left; cursor: pointer; color: var(--ink);
  font-family: var(--sans);
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; display: flex; flex-direction: column;
  box-shadow: var(--sh-1);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.trackcard:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--sh-2); }
.trackcard:active { transform: translateY(0); }
.trackcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tc-top { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.tc-ico {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  background: var(--card-3); color: var(--dim); display: grid; place-items: center;
  box-shadow: var(--edge); transition: color .2s ease, background .2s ease;
}
.trackcard:hover .tc-ico { color: var(--accent); }
.tc-cat { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.tc-len { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.tc-title { font-family: var(--disp); font-size: 16px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.tc-brief { font-size: 13px; color: var(--dim); margin-top: 8px; line-height: 1.5; flex: 1; }
.tc-go {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  transition: gap .16s ease;
}
.tc-go .i { width: 13px; height: 13px; }
.trackcard:hover .tc-go { gap: 9px; }
.trackcard.done { border-color: var(--good-line); }
.trackcard.done .tc-ico { background: var(--good-dim); color: var(--good); }
.trackcard.done .tc-go { color: var(--good); }

/* ============================================================ drill card */

.drill {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 21px; display: flex; flex-direction: column;
  box-shadow: var(--sh-1);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.drill:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--sh-2); }
.drill:focus-visible, .drill.focused { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-dim); }
.drill.live { border-color: var(--live-line); box-shadow: 0 0 0 3px var(--live-dim); }
.drill.slip { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-dim); }

.d-top { display: flex; align-items: center; gap: 12px; }
.d-ico {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: var(--card-3); color: var(--dim); display: grid; place-items: center;
  box-shadow: var(--edge);
  transition: color .2s ease, background .2s ease;
}
.drill:hover .d-ico { color: var(--accent); }
.drill.live .d-ico { background: var(--live-dim); color: var(--live); }
.d-meta { flex: 1; min-width: 0; }
.d-meta .kicker { display: block; }
.d-len {
  font-family: var(--mono); font-size: 11px; color: var(--faint);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px;
}
.drill h3 { margin-top: 2px; }
.brief { font-size: 13.5px; color: var(--dim); margin-top: 10px; }

.rules { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.rule {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em;
  background: var(--hair); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 8px; color: var(--faint);
}

.stage {
  margin-top: 16px; background: var(--sunk);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 16px; text-align: center; min-height: 112px;
  display: grid; place-items: center;
  box-shadow: inset 0 1px 3px rgba(22, 28, 55, .06);
}
.stage .word { font-size: 21px; font-weight: 640; letter-spacing: -.015em; line-height: 1.3; }
.stage .word.sm { font-size: 14.5px; font-weight: 550; line-height: 1.5; color: var(--dim); }
.stage .word.idle { color: var(--faint); font-weight: 500; font-size: 14px; }
.stage .hint { margin-top: 6px; }
.stage .thing { font-size: 30px; color: var(--ink); }
.stage .ban { color: var(--live); font-style: normal; font-weight: 600; }

.beats { display: flex; gap: 5px; margin-top: 12px; }
.beat {
  flex: 1; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--hair); padding: 7px 4px; text-align: center;
  transition: background .2s ease, border-color .2s ease;
}
.beat .bk { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--faint); }
.beat .bt { font-size: 10.5px; color: var(--faint); }
.beat.on { background: var(--live-dim); border-color: var(--live-line); }
.beat.on .bk, .beat.on .bt { color: var(--live); }
.beat.past .bk { color: var(--good); }
.beat.past { opacity: .6; }

.reveal {
  margin-top: 12px; background: var(--good-dim);
  border: 1px solid var(--good-line); border-radius: var(--r);
  padding: 13px; text-align: left;
}
.reveal .lbl { display: flex; align-items: center; gap: 5px; color: var(--good); margin-bottom: 5px; }
.reveal p { font-size: 13.5px; color: var(--dim); }

.counter { display: flex; align-items: baseline; justify-content: center; gap: 9px; }
.counter .n {
  font-size: 48px;
  color: var(--good); font-variant-numeric: tabular-nums; line-height: 1;
}
.counter .n.bad { color: var(--bad); }
.counter .cl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.transcript {
  margin-top: 9px; font-size: 11.5px; color: var(--faint);
  font-family: var(--mono); min-height: 15px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: rtl; text-align: center;
}
.caught-list { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.caught-list span {
  font-family: var(--mono); font-size: 10.5px; background: var(--bad-dim);
  border: 1px solid var(--bad-line); color: var(--bad);
  border-radius: 5px; padding: 2px 7px;
}
.mic-note { margin-top: 9px; font-size: 11.5px; color: var(--live); display: flex; align-items: center; gap: 5px; justify-content: center; }
.mic-note .i { width: 12px; height: 12px; }

.bar-track { height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: auto; }
.bar-track i { display: block; height: 100%; width: 0; background: var(--live); box-shadow: 0 0 10px var(--live-line); transition: width .28s linear; }

.timer-row { padding-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.clock {
  font-family: var(--mono); font-size: 28px; font-weight: 650;
  letter-spacing: -.035em; font-variant-numeric: tabular-nums;
  min-width: 74px; color: var(--faint); transition: color .2s ease;
}
.clock.running { color: var(--live); }
.clock.done { color: var(--good); }

.steps { margin-top: 12px; padding-left: 17px; }
.steps li { font-size: 13.5px; color: var(--dim); margin-bottom: 6px; }

.note-box {
  margin-top: 14px; background: var(--card-2);
  border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: var(--r-sm); padding: 13px;
}
.note-box .lbl { display: flex; align-items: center; gap: 5px; color: var(--accent); margin-bottom: 5px; }
.note-box p { font-size: 13.5px; color: var(--dim); }
.note-box q { font-size: 14px; line-height: 1.55; color: var(--dim); }
.note-box.good { border-left-color: var(--good); }
.note-box.good .lbl { color: var(--good); }

.rep-flash {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--good); opacity: 0;
  transition: opacity .25s ease;
}
.rep-flash.show { opacity: 1; }
.rep-flash .i { width: 12px; height: 12px; }

/* ============================================================ playbook */

.items { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.item { border-left: 1px solid var(--line-2); padding-left: 14px; }
.item strong { display: block; font-size: 13.5px; }
.item p { font-size: 13.5px; color: var(--dim); margin-top: 2px; }

.prep { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.prep-row { display: flex; gap: 12px; align-items: flex-start; }
.prep-key {
  flex: none; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 8px; background: var(--accent-dim);
  border: 1px solid var(--accent-line); color: var(--accent);
  font-family: var(--mono); font-weight: 700; font-size: 12px;
}
.prep-row div strong { font-size: 13.5px; }
.prep-row div p { font-size: 13.5px; color: var(--dim); }

.swaps { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.swap {
  display: flex; align-items: center; gap: 9px;
  background: var(--hair); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 12px; font-size: 13.5px;
}
.swap .no { color: var(--faint); text-decoration: line-through; }
.swap .yes { color: var(--good); font-weight: 600; }
.swap .i { width: 13px; height: 13px; color: var(--faint); }

.field { margin-bottom: 12px; }
.field label {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .13em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%; background: var(--sunk); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px; color: var(--ink);
  font-family: var(--sans); font-size: 13.5px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { font-family: var(--mono); min-height: 92px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-dim); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field .cnt { font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 5px; }

.script-out {
  background: var(--sunk); border: 1px solid var(--line);
  border-left: 2px solid var(--accent); border-radius: var(--r-sm);
  padding: 15px; margin-top: 4px;
}
.script-out p { font-size: 14px; line-height: 1.6; color: var(--dim); }
.script-out p + p { margin-top: 9px; }
.script-out mark { background: var(--accent-dim); color: var(--accent-hi); border-radius: 3px; padding: 0 3px; }

.flashcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-top: 16px; }
.flash {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px; cursor: pointer; text-align: left;
  min-height: 104px; display: flex; flex-direction: column; gap: 7px;
  font-family: var(--sans); color: var(--ink);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.flash:hover { border-color: var(--line-2); background: var(--card-3); transform: translateY(-2px); }
.flash:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.flash .lbl { display: flex; align-items: center; gap: 5px; color: var(--bad); }
.flash .lbl .i { width: 12px; height: 12px; }
.flash .them { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.flash .ans { font-size: 13px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 7px; margin-top: auto; }
.flash .ans .lbl2 { display: flex; align-items: center; gap: 5px; color: var(--good); margin-bottom: 3px; }
.flash .ans .lbl2 .i { width: 12px; height: 12px; }
.flash .tap { display: flex; align-items: center; gap: 5px; color: var(--faint); margin-top: auto; }
.flash .tap .i { width: 12px; height: 12px; }

/* ============================================================ progress */

.goal-card, .level-card, .heat, .breakdown { margin-top: 12px; }
.level-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.level-top .lv { font-family: var(--disp); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.level-top .lv b { color: var(--accent); font-family: var(--mono); }
.level-top .xp { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.track { height: 6px; background: var(--sunk); border-radius: 999px; overflow: hidden; margin-top: 10px; border: 1px solid var(--line); }
.track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--good)); box-shadow: 0 0 12px var(--accent-glow); transition: width .6s cubic-bezier(.2, .7, .3, 1); }
.track i.live { background: var(--live); }
.track i.met { background: var(--good); }

.goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.goal-top span { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.goal-top b { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }

.sec-lbl { display: flex; align-items: center; gap: 6px; color: var(--faint); }
.sec-lbl span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.sec-lbl .i { width: 13px; height: 13px; }

.heat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
/* capped: 14 free columns across a full-width card blow the day cells up to 70px */
.heat-grid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; margin-top: 12px; max-width: 440px; }
.heat-cell { aspect-ratio: 1; border-radius: 4px; background: var(--sunk); border: 1px solid var(--line); }
.heat-cell.l1 { background: rgba(52, 85, 250, .18); border-color: transparent; }
.heat-cell.l2 { background: rgba(52, 85, 250, .4); border-color: transparent; }
.heat-cell.l3 { background: rgba(52, 85, 250, .66); border-color: transparent; }
.heat-cell.l4 { background: var(--accent); border-color: transparent; }
.heat-cell.today { border-color: var(--live); box-shadow: 0 0 0 1px var(--live); }
.heat-legend { display: flex; align-items: center; gap: 4px; }
.heat-legend .k { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.heat-legend .heat-cell { width: 10px; height: 10px; aspect-ratio: auto; }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 9px; margin-top: 12px; }
.badge {
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 13px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.badge .bi {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--sunk); color: var(--faint); border: 1px solid var(--line);
}
.badge .bn { font-size: 13px; font-weight: 600; margin-top: 9px; color: var(--faint); }
.badge .bd { font-size: 11.5px; color: var(--faint); margin-top: 2px; line-height: 1.45; opacity: .75; }
.badge.on { border-color: var(--live-line); background: linear-gradient(180deg, var(--live-dim), transparent); box-shadow: 0 0 24px -12px var(--live-line); }
.badge.on .bi { background: var(--live-dim); border-color: var(--live-line); color: var(--live); }
.badge.on .bn { color: var(--ink); }
.badge.on .bd { opacity: 1; color: var(--dim); }

.brow { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.brow .bn2 { font-size: 13px; color: var(--dim); width: 42%; flex: none; }
.brow .bt2 { flex: 1; height: 5px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.brow .bt2 i { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.brow .bv { font-family: var(--mono); font-size: 12px; width: 26px; text-align: right; font-variant-numeric: tabular-nums; }
.empty { font-size: 13.5px; color: var(--faint); margin-top: 9px; }

.prog-foot { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prog-foot p { font-size: 11.5px; color: var(--faint); }

/* ============================================================ toasts */

.toast-wrap {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 320; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: calc(100% - 32px); max-width: 360px;
}
.toast {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: var(--card); border: 1px solid var(--live-line);
  border-radius: var(--r); padding: 12px 15px;
  box-shadow: var(--sh-3);
  opacity: 0; transform: translateY(10px) scale(.97);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .3, 1);
}
.toast.in { opacity: 1; transform: none; }
.toast .ti {
  width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--live-dim); color: var(--live); border: 1px solid var(--live-line);
}
.toast .tl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--live); }
.toast .tn { font-size: 13.5px; font-weight: 600; margin-top: 1px; }

/* ============================================================ runner */

.runner {
  position: fixed; inset: 0; z-index: 300;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(52, 85, 250, .07) 0%, transparent 54%),
    var(--bg);
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.runner[hidden] { display: none; }

.runner-top { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.runner-step { font-family: var(--mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.runner-track { flex: 1; height: 4px; background: var(--sunk); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.runner-track i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); transition: width .4s cubic-bezier(.2, .7, .3, 1); }

.runner-body {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 16px;
  min-height: 0; overflow-y: auto;
}
.runner-kicker { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.runner-kicker .i { width: 14px; height: 14px; }
.runner-title { font-size: clamp(19px, 3.2vw, 23px); font-weight: 500; letter-spacing: -.005em; }
.runner-prompt {
  font-size: clamp(30px, 5.8vw, 50px);
  line-height: 1.1; max-width: 22ch;
}
.runner-prompt .thing { font-size: inherit; }
.runner-prompt .ban { color: var(--live); font-style: normal; }
.runner-prompt q { font-size: clamp(23px, 4.6vw, 35px); }
.runner-sub { font-size: 13.5px; color: var(--dim); max-width: 46ch; }
.runner-clock {
  font-family: var(--mono); font-size: clamp(66px, 15vw, 108px);
  font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  /* The clock is the loudest thing on the screen, so it stays in ink and lets
     the small live markers carry the amber. */
  color: var(--ink); line-height: 1;
}
.runner-clock.ready { color: var(--accent); }
.runner-clock.go { animation: pop .4s cubic-bezier(.2, .7, .3, 1); }
@keyframes pop { from { transform: scale(.7); opacity: .4; } }
.runner-rules { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.runner-beats { display: flex; gap: 5px; width: 100%; max-width: 420px; }

.runner-foot {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 20px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.runner-hint { font-family: var(--mono); font-size: 10.5px; color: var(--faint); width: 100%; text-align: center; }

.runner-summary { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.runner-summary .rs-ico {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--good-dim); border: 1px solid var(--good-line); color: var(--good);
  box-shadow: 0 0 40px -8px var(--good-line);
}
.runner-summary .big { font-size: clamp(28px, 5vw, 40px); }
.runner-summary .sum { font-family: var(--mono); font-size: 13px; color: var(--dim); }

/* ============================================================ call simulator */

.callband {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(52, 85, 250, .05), transparent 46%), var(--card);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px;
  box-shadow: var(--sh-2);
}
.callband .brief { max-width: 62ch; }
.call-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.call-pick {
  position: relative;
  text-align: left; cursor: pointer; color: var(--ink);
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 15px; display: flex; flex-direction: column; gap: 3px;
  transition: border-color .18s ease, background .18s ease, transform .12s ease, box-shadow .18s ease;
}
.cp-best {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--disp); font-size: 12px; font-weight: 700; letter-spacing: -.02em;
  border: 1px solid var(--good-line); background: var(--good-dim); color: var(--good);
}
.cp-best.live { border-color: var(--live-line); background: var(--live-dim); color: var(--live); }
.cp-best.bad { border-color: var(--bad-line); background: var(--bad-dim); color: var(--bad); }
.call-pick:hover { border-color: var(--accent-line); background: var(--card-3); transform: translateY(-2px); box-shadow: var(--glow); }
.call-pick:active { transform: translateY(0); }
.call-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cp-role { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cp-who { font-family: var(--disp); font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.cp-tone { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.cp-tone .i { width: 12px; height: 12px; color: var(--live); }

.call-dial { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cd-ring {
  width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-dim); border: 1px solid var(--accent-line); color: var(--accent);
  animation: dialpulse 1.1s ease-in-out infinite;
}
@keyframes dialpulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 14px transparent; }
}
.call-them {
  font-size: clamp(26px, 5vw, 40px); line-height: 1.14;
  max-width: 20ch; color: var(--ink);
}
.call-cue {
  width: 100%; max-width: 470px; text-align: left;
  background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 17px; display: flex; flex-direction: column; gap: 8px;
}
.cc-lbl { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.cc-txt { font-size: 14.5px; color: var(--dim); line-height: 1.45; }
.call-cue .runner-rules { justify-content: flex-start; }

/* live mic spectrum, drawn by makeMeter into this canvas */
.wave {
  width: 100%; max-width: 320px; height: 46px; display: block; margin: 2px auto 0;
  opacity: .95;
}
.counter + .wave { margin-top: 10px; }

.call-grade {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  font-size: 42px;
  border: 2px solid var(--good-line); background: var(--good-dim); color: var(--good);
  box-shadow: var(--sh-2);
  animation: gradepop .5s cubic-bezier(.2, .8, .3, 1);
}
.call-grade.live { border-color: var(--live-line); background: var(--live-dim); color: var(--live); box-shadow: 0 0 44px -10px var(--live-line); }
.call-grade.bad { border-color: var(--bad-line); background: var(--bad-dim); color: var(--bad); box-shadow: 0 0 44px -10px var(--bad-line); }
@keyframes gradepop { from { transform: scale(.6); opacity: 0; } }

.call-sum .call-score {
  width: 100%; max-width: 340px; margin: 4px 0 2px;
  display: flex; flex-direction: column; gap: 1px;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.csr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 15px; background: var(--card-2); }
.csr-l { font-size: 13px; color: var(--dim); }
.csr-v { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.csr-v.good { color: var(--good); }
.csr-v.bad { color: var(--bad); }
.csr-v.live { color: var(--live); }
.runner-summary .rs-ico.lose { background: var(--bad-dim); border-color: var(--bad-line); color: var(--bad); box-shadow: 0 0 40px -8px var(--bad-line); }

/* turn-by-turn recap on the scorecard */
.call-recap { width: 100%; max-width: 340px; margin: 8px 0 2px; text-align: left; }
.cr-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.cr-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--hair); }
.cr-row:first-of-type { border-top: 0; }
.cr-n { font-family: var(--mono); font-size: 11px; color: var(--faint); width: 14px; text-align: center; flex: none; }
.cr-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--good); box-shadow: 0 0 8px -1px var(--good-line); }
.cr-dot.live { background: var(--live); box-shadow: 0 0 8px -1px var(--live-line); }
.cr-dot.bad { background: var(--bad); box-shadow: 0 0 8px -1px var(--bad-line); }
.cr-l { flex: 1; font-size: 13px; color: var(--dim); }
.cr-w { font-family: var(--mono); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* ============================================================ mobile tab bar */

.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(247, 248, 251, .92);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .tb {
  display: flex; align-items: center; justify-content: space-around;
  height: 58px;
}
.tabbar button {
  flex: 1; min-width: 0; padding: 0 2px; height: 100%; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--faint); font-family: var(--sans); font-size: 10px; font-weight: 550;
  transition: color .16s ease;
}
.tabbar button .i { width: 20px; height: 20px; }
/* eight tabs on a 360px phone: let the label clip instead of wrapping */
.tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar button.on { color: var(--accent); }
.tabbar button.on .i { filter: drop-shadow(0 0 6px var(--accent-glow)); }

/* ============================================================ footer */

footer { border-top: 1px solid var(--line); padding: 34px 0 44px; margin-top: 24px; }
footer p { font-size: 14.5px; color: var(--dim); }
footer .sig {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin-top: 12px;
  display: flex; gap: 9px; align-items: center; flex-wrap: wrap;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

noscript p {
  max-width: var(--maxw); margin: 30px auto; padding: 14px 24px;
  border: 1px solid var(--live); border-radius: var(--r); color: var(--live);
}

/* ============================================================ responsive */

@media (max-width: 860px) {
  .tabs { display: none; }
  .brand .wm { display: none; }
  .topbar .bar { padding: 0 16px; gap: 8px; }
  .shell { padding: 0 16px; }
  main { padding: 22px 0 92px; }
  .tabbar { display: block; }

  .today-top { grid-template-columns: 1fr; padding: 22px 20px 20px; gap: 16px; }
  .today-top .ring { position: absolute; top: 22px; right: 20px; width: 60px; height: 60px; }
  .today-top .ring svg { width: 60px; height: 60px; }
  .today-top .ring .rn { font-size: 13px; }
  .panel { position: relative; }
  .today-top .display, .today-top .title { max-width: 72%; }
  .q { padding: 13px 20px; }
  .today-foot { padding: 18px 20px; }
  .today-foot .btn.lg { width: 100%; }
  .card, .drill { padding: 18px; }
  .heat-grid { grid-template-columns: repeat(7, 1fr); }
  .dl-grid { grid-template-columns: repeat(10, 1fr); }
  .dl-hist { padding: 18px; }
  .dl-back { padding: 0 20px 18px; }
  .dl-back .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .call-picks { grid-template-columns: 1fr; }
  .callband { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  body::before { animation: none; }
}
