:root {
  --bg: #000926;        /* deep navy: the test hall */
  --bg-2: #071739;      /* one step lighter: tiles and steps */
  --light: #D6E6F3;     /* ice blue: the stage the run plays on */
  --surface: #0c2050;   /* panels inside product fragments */
  --surface-2: #17316e;
  --well: #030f33;      /* wells inside a panel: documents, meters */
  --ink: #D6E6F3;
  --muted: #A6C5D7;     /* powder blue */
  --accent: #0F52BA;    /* sapphire: money that stayed; the one action */
  --accent-hover: #1d63d1;
  --accent-text: #7fb0f5; /* sapphire lifted for text on navy */
  --on-accent: #ffffff;
  --loss: #ff5468;      /* money that left */
  --on-loss: #000926;
  --hazard: #ffc400;    /* crash-test yellow: planted text only */
  --hazard-ink: #1b1500;
  --font: "General Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace; /* taste-skill-ignore: only literal tool calls, results and config are set in it */
  --m: clamp(16px, 3vw, 40px);          /* the page's one outer margin */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); }
body { margin: 0; background: var(--bg); font: 400 var(--step-body)/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { outline: none; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--hazard); outline-offset: 3px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
code { font: 0.9em var(--mono); }
img, video { display: block; max-width: 100%; }
.loading, .err { padding: 40vh var(--m); color: var(--muted); }
.mark { width: 34px; height: 34px; flex: none; }

/* ---------- hero: two tones, a real run on the stage ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
.hero-left { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--m) var(--m); }
.home { position: absolute; top: var(--m); left: var(--m); display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 20px; }
.hero h1 { font-size: clamp(30px, 2.8vw, 44px); line-height: 1.06; max-width: 20ch; margin-bottom: 36px; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: block; }
.hero .sub { max-width: 42ch; margin-bottom: 32px; }
.actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 16px 26px; text-decoration: none; font: 600 17px/1 var(--font); border-radius: 4px; transition: transform .2s var(--ease), background .2s; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px) scale(.98); }
.link { font-weight: 500; }
.link:hover { color: var(--accent-text); }
.hero-right { background: var(--light); position: relative; display: grid; place-items: center; padding: 96px var(--m) var(--m); }
.top-link { position: absolute; z-index: 1; top: calc(var(--m) + 6px); right: var(--m); font-size: 15px; font-weight: 500; color: var(--bg); text-decoration: none; }
.top-link:hover { color: var(--accent); }

/* the replay fragment: product UI with its own conventions */
.replay { width: min(540px, 100%); min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.replay .seg { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg); border-radius: 8px; padding: 4px; gap: 4px; margin-bottom: 10px; }
.replay .seg button { all: unset; cursor: pointer; text-align: center; padding: 10px 4px; border-radius: 6px; font: 500 13px/1.2 var(--font); color: var(--muted); transition: background .2s, color .2s; }
.replay .seg button:hover { color: var(--ink); }
.replay .seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.replay .seg button:focus-visible { outline: 2px solid var(--hazard); }
.replay .panel { background: var(--bg); color: var(--ink); border-radius: 10px; padding: 18px; display: grid; gap: 14px; min-height: 520px; align-content: start; }
.replay .who { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.replay .who b { color: var(--ink); font-weight: 600; }
.replay .row { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.replay .row.on { opacity: 1; transform: none; }
.replay .lbl { color: var(--muted); font-size: 12.5px; margin-bottom: 5px; }
.replay .doc { margin: 0; background: var(--well); border-radius: 6px; padding: 10px 12px; font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.replay .doc.text { font: 14px/1.5 var(--font); }
.replay .call { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-weight: 600; }
.replay .call code { font: 600 13px/1.5 var(--mono); }
.replay .call .amt { color: var(--loss); white-space: nowrap; }
.replay .call .ret { color: var(--muted); font-weight: 400; }
.replay .meter { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; background: var(--well); border-radius: 6px; padding: 12px 14px; }
.replay .meter > span { color: var(--muted); }
.replay .meter b { font: 700 36px/1 var(--font); color: var(--loss); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.replay .claim { font-style: italic; border-left: 3px solid var(--muted); padding-left: 10px; }
.replay .stamp { display: inline-block; justify-self: start; background: var(--loss); color: var(--on-loss); font-weight: 600; font-size: 14.5px; padding: 7px 11px; border-radius: 4px; }
.replay .stamp.in { animation: stamp .35s var(--ease); }
.replay .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; margin-top: 12px; color: var(--bg); }
.replay .foot button { all: unset; cursor: pointer; font-weight: 600; }
.replay .foot button:hover, .replay .foot a:hover { color: var(--accent); }
.replay .foot a { color: var(--bg); font-weight: 500; }
@keyframes stamp { from { transform: scale(1.25) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
mark.planted { color: var(--hazard-ink); background: var(--hazard); padding: 0 3px; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- showcase: the policy switch, blown up ---------- */
.switch-field { position: relative; overflow: hidden; background: var(--loss); color: var(--on-loss); transition: background .5s var(--ease), color .5s; padding: 140px var(--m) 120px; }
.switch-field.saved { background: var(--accent); color: var(--on-accent); }
.switch-field h2 { font-size: clamp(56px, 9vw, 150px); line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.switch-field .sub { max-width: 44ch; margin-top: 28px; }
.switch-field .agents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; max-width: 640px; }
.switch-field .agents button { all: unset; cursor: pointer; padding: 10px 16px; border-radius: 999px; background: rgba(0,0,0,.16); font: 500 15px/1 var(--font); transition: background .2s; }
.switch-field .agents button:hover { background: rgba(0,0,0,.28); }
.switch-field .agents button[aria-pressed="true"] { background: var(--bg); color: var(--ink); }
.switch-field .agents button:focus-visible, .big-toggle button:focus-visible { outline: 3px solid var(--bg); }
.big-toggle { margin-top: 36px; font-size: clamp(22px, 1.9vw, 28px); }
.big-toggle button { all: unset; cursor: pointer; display: flex; align-items: center; gap: .45em; background: rgba(0,0,0,.2); border-radius: 999px; padding: .32em 1em .32em .36em; color: inherit; transition: background .2s; }
.big-toggle button:hover { background: rgba(0,0,0,.3); }
.big-toggle .track { width: 2.6em; height: 1.4em; border-radius: 999px; background: rgba(0,0,0,.38); position: relative; flex: none; }
.big-toggle .thumb { position: absolute; top: .12em; left: .12em; width: 1.16em; height: 1.16em; border-radius: 50%; background: var(--bg); transition: transform .45s var(--ease), background .45s; }
.switch-field.saved .big-toggle .thumb { transform: translateX(1.2em); background: var(--light); }
.big-toggle .lab { font: 600 .8em/1 var(--font); white-space: nowrap; letter-spacing: -0.01em; }
.switch-field .fine { margin-top: 40px; max-width: 52ch; font-size: 15px; }

/* ---------- proof: the board as tiles ---------- */
.board { padding: 200px var(--m) 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { background: var(--bg-2); padding: 24px; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.tile:hover { background: var(--surface); }
.tile:active { transform: scale(.99); }
.tile.head { grid-column: span 2; background: var(--light); color: var(--bg); }
.tile.head:hover { background: var(--light); }
.tile.head h2 { font-size: clamp(32px, 3.2vw, 52px); line-height: 1; max-width: 13ch; }
.tile.head p { max-width: 46ch; font-size: 17px; }
.tile.ours { background: var(--surface); }
.tile h3 { font-size: clamp(21px, 1.7vw, 26px); line-height: 1.1; }
.tile .src { color: var(--muted); font-size: 15px; }
.tile .nums { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.tile .lost { font: 700 clamp(34px, 3.2vw, 52px)/1 var(--font); letter-spacing: -0.03em; color: var(--loss); font-variant-numeric: tabular-nums; }
.tile .lost.zero { color: var(--accent-text); }
.tile .lost small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 8px; }
.lvl { display: inline-grid; place-items: center; width: 48px; height: 48px; font-weight: 700; font-size: 22px; border-radius: 50%; flex: none; }
.lvl-0 { background: var(--loss); color: var(--on-loss); }
.lvl-1 { background: var(--hazard); color: var(--hazard-ink); }
.lvl-2 { background: var(--accent); color: var(--on-accent); }
.board .after { margin-top: 18px; color: var(--muted); font-size: 16px; max-width: 80ch; }

/* ---------- how: call and response ---------- */
.how { padding: 220px var(--m) 0; display: grid; grid-template-columns: repeat(12, 1fr); }
.how > h2 { grid-column: 3 / span 8; font-size: var(--step-head); line-height: .98; margin-bottom: 72px; }
.exchange { grid-column: 3 / span 8; margin-bottom: 96px; }
.exchange > p { font-size: clamp(20px, 1.6vw, 24px); font-weight: 500; line-height: 1.3; max-width: 34ch; margin-bottom: 18px; }
.response { margin: 14px 0 0 clamp(0px, 6vw, 96px); }
.ui { background: var(--surface); border-radius: 8px; padding: 18px; font-size: 14px; overflow-wrap: anywhere; }
.ui .lbl { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.ui pre { margin: 0; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; background: var(--well); border-radius: 6px; padding: 12px; }
.ui .callrow { display: flex; justify-content: space-between; gap: 12px; font: 600 13.5px/1.5 var(--mono); }
.ui .bad { color: var(--loss); }
.ui .good { color: var(--accent-text); }
.ui table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ui td, .ui th { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--surface-2); font-weight: 500; }
.ui th { color: var(--muted); font-size: 12.5px; }
.ui tr:last-child td { border-bottom: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair .ui p + p { margin-top: 6px; color: var(--muted); }
.pair .ui strong { display: block; font-size: 16px; margin-bottom: 6px; }

/* ---------- close ---------- */
.close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; padding: 160px var(--m) 0; }
.marks { margin: 0; display: grid; gap: 8px; }
.marks div { background: var(--bg-2); padding: 22px 24px; display: flex; align-items: baseline; gap: 20px; }
.marks dt { font: 700 clamp(40px, 4vw, 64px)/1 var(--font); letter-spacing: -0.03em; color: var(--ink); min-width: 3ch; font-variant-numeric: tabular-nums; }
.marks dd { margin: 0; color: var(--muted); max-width: 30ch; }
.close .statement { font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; line-height: 1.15; max-width: 22ch; letter-spacing: -0.01em; }
.close .blank { display: inline-block; border-bottom: 3px solid var(--loss); }
.close .actions { margin-top: 32px; }
.close .after { margin-top: 18px; color: var(--muted); font-size: 16px; max-width: 46ch; }
.quiet { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 160px var(--m) 32px; font-size: 15px; color: var(--muted); }
.quiet a { color: var(--ink); text-decoration: none; }
.quiet a:hover { color: var(--accent-text); }

/* ---------- inner pages ---------- */
.inner { padding: var(--m); max-width: 1320px; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 72px; }
.topbar .home { position: static; }
.topbar nav { display: flex; gap: 22px; align-items: center; font-size: 16px; white-space: nowrap; }
.btn.small { padding: 11px 16px; font-size: 15px; }
.topbar nav a.btn { color: var(--on-accent); }
.topbar nav a { color: var(--muted); text-decoration: none; }
.page-sub { overflow-wrap: anywhere; }
.topbar nav a:hover { color: var(--ink); }
.page-h { font-size: clamp(36px, 4.4vw, 68px); line-height: 1; max-width: 18ch; }
.page-sub { color: var(--muted); margin: 18px 0 40px; max-width: 72ch; }
.page-sub a, .page-sub code { color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.stats div { background: var(--bg-2); padding: 20px; }
.stats > div > span { color: var(--muted); font-size: 15px; display: block; margin-bottom: 4px; }
.stats b { font: 700 34px/1.1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stats .lvl { width: 40px; height: 40px; font-size: 19px; vertical-align: middle; }
.share { margin-top: 18px; color: var(--muted); font-size: 15px; }
.runs h2 { font-size: 26px; margin: 72px 0 18px; }
.runlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.runlist a { display: block; padding: 16px 18px; background: var(--bg-2); text-decoration: none; height: 100%; transition: background .2s; }
.runlist a:hover { background: var(--surface); }
.runlist .g { display: block; font-weight: 600; }
.runlist .c { display: block; color: var(--muted); font-size: 14px; }
.runlist .o { display: block; margin-top: 8px; font-weight: 600; }
.runlist .o.bad { color: var(--loss); }
.runlist .o.ok { color: var(--accent-text); }
.run-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.timeline { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.step { background: var(--bg-2); padding: 16px 18px; border-radius: 6px; overflow-wrap: anywhere; }
.step { border-left: 4px solid transparent; }
.step.hit { border-left-color: var(--hazard); }
.step.pay { border-left-color: var(--loss); }
.step .who { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.step .callline { display: block; font: 600 14px/1.5 var(--mono); color: var(--accent-text); overflow-wrap: anywhere; }
.step.pay .callline { color: var(--loss); }
.step .line { font-size: 17px; }
.result { overflow-wrap: anywhere; margin: 8px 0 0; background: var(--well); border-radius: 4px; padding: 10px 12px; margin-top: 8px; font: 13px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.ledger { position: sticky; top: 20px; background: var(--bg-2); padding: 22px; border-radius: 8px; }
.ledger h3 { font-size: 20px; margin-bottom: 10px; }
.ledger .r { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.ledger .r span:first-child { color: var(--muted); }
.ledger .verdict { font: 700 28px/1.1 var(--font); margin: 14px 0 18px; letter-spacing: -0.01em; }
.claimq { font-style: italic; border-left: 3px solid var(--muted); padding-left: 12px; overflow-wrap: anywhere; }
.note { color: var(--muted); font-size: 15px; margin-top: 14px; }
.loss { color: var(--loss); } .kept { color: var(--accent-text); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .rise.in { opacity: 1; transform: none; }
  .rise.in + .rise.in { transition-delay: .08s; }
  .hero h1 .ln > span { transform: translateY(105%); animation: lineup .9s var(--ease) forwards; }
  .hero h1 .ln:nth-child(2) > span { animation-delay: .1s; }
  .hero h1 .ln:nth-child(3) > span { animation-delay: .2s; }
  @keyframes lineup { to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .replay .row { opacity: 1; transform: none; transition: none; }
  .switch-field, .big-toggle .thumb { transition: none; }
}

/* ---------- tablet and phone ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .how > h2, .exchange { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-left { padding-top: 112px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(28px, 7.4vw, 44px); max-width: none; }
  .hero-right { padding: 40px var(--m) 48px; }
  .top-link { display: none; }
  .replay .panel { min-height: 560px; }
  .replay .seg button { font-size: 12px; padding: 10px 2px; }
  .switch-field { padding: 96px var(--m) 96px; }
  .tile { min-height: 200px; padding: 18px; }
  .board, .how { padding-top: 140px; }
  .run-grid, .close { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .topbar nav a:not(.btn) { display: none; }
  .how { display: block; }
  .response { margin-left: 0; }
  .pair { grid-template-columns: 1fr; }
  .ledger { position: static; }
  .topbar { margin-bottom: 48px; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tile.head { grid-column: auto; }
}

/* ---------- live test ---------- */
.test .page-sub { max-width: 64ch; }
.testform { background: var(--bg-2); border-radius: 10px; padding: 24px; max-width: 860px; display: grid; gap: 10px; }
.testform .lbl { color: var(--muted); font-size: 15px; }
.testform textarea, .testform select { width: 100%; background: var(--well); color: var(--ink); border: 1px solid var(--surface-2); border-radius: 6px; padding: 14px; font: 15px/1.5 var(--font); }
.testform textarea { resize: vertical; min-height: 240px; }
.testform textarea:focus, .testform select:focus { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.formrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.formrow.submit { justify-content: flex-start; margin: 10px 0 0; }
.link-btn { all: unset; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.link-btn:hover { color: var(--accent-text); }
.btn:disabled { opacity: .55; cursor: progress; }
button.btn { border: 0; cursor: pointer; }
.msg.bad { color: var(--loss); }
.board-live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.lane { background: var(--bg-2); border-radius: 10px; padding: 18px; }
.lane-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 15px; }
.lane-h b { color: var(--ink); font-size: 18px; }
.lane-h strong { color: var(--loss); font-size: 26px; font-variant-numeric: tabular-nums; }
.lane ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.slot { display: grid; gap: 2px; padding: 11px 14px; border-radius: 6px; background: var(--well); border-left: 4px solid var(--surface-2); transition: background .3s, border-color .3s; }
.slot .g { font-weight: 600; font-size: 15px; }
.slot .o { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.slot.bad { border-left-color: var(--loss); }
.slot.bad .o { color: var(--loss); }
.slot.ok { border-left-color: var(--accent-text); }
.slot.ok .o { color: var(--accent-text); }
.slot:not(.done):not(.settled) .o { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.report { margin-top: 40px; background: var(--bg-2); border-radius: 10px; padding: 28px; max-width: 1100px; overflow-wrap: anywhere; }
.report p { max-width: 80ch; margin: 0 0 14px; }
.report strong { color: var(--ink); }
.report code { color: var(--ink); }
.report ul { margin: 0 0 14px; padding-left: 20px; }
.report li { margin-bottom: 6px; }
.tablewrap { overflow-x: auto; margin: 6px 0 22px; }
.report table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 640px; overflow-wrap: normal; word-break: normal; }
.report td:first-child { min-width: 9em; }
.report th, .report td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--surface-2); }
.report th { color: var(--muted); font-weight: 500; font-size: 13px; }
.report details { margin: 0 0 14px; }
.report summary { cursor: pointer; color: var(--accent-text); }
.report pre { background: var(--well); padding: 14px; border-radius: 6px; font: 12.5px/1.55 var(--mono); overflow-x: auto; }
@media (max-width: 860px) {
  .board-live { grid-template-columns: minmax(0, 1fr); }
  .testform, .report { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .slot:not(.done) .o { animation: none; } }

/* ---------- challenge ---------- */
.ch-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 860px; margin-bottom: 8px; }
.ch-stats div { background: var(--bg-2); padding: 18px 20px; border-radius: 8px; }
.ch-stats span { display: block; color: var(--muted); font-size: 15px; }
.ch-stats b { font: 700 34px/1.1 var(--font); font-variant-numeric: tabular-nums; }
.ch-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--well); border-radius: 8px; padding: 4px; margin-bottom: 8px; }
.ch-seg button { all: unset; cursor: pointer; text-align: center; padding: 11px 6px; border-radius: 6px; font: 500 15px/1.2 var(--font); color: var(--muted); }
.ch-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.ch-seg button:focus-visible { outline: 2px solid var(--hazard); }
.ch-task { background: var(--well); border-radius: 6px; padding: 14px; }
.ch-task p.task-text { font-size: 17px; margin-top: 4px; }
.ch-fields { display: grid; gap: 10px; }
.ch-fields label { display: grid; gap: 6px; }
.chform input { width: 100%; background: var(--well); color: var(--ink); border: 1px solid var(--surface-2); border-radius: 6px; padding: 12px 14px; font: 15px/1.4 var(--font); }
.chform input:focus { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ch-ledger .btn.small { color: var(--on-accent); text-decoration: none; }
.did .r { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; flex-wrap: wrap; }
@media (max-width: 600px) { .two, .ch-stats, .ch-seg { grid-template-columns: minmax(0, 1fr); } }
