/* Clinic Wait Time demo: approved redesign (Milestone 4.5). Tokens first; every color below uses them. */
:root {
  color-scheme: light;
  --page: #F6F5F1; --surface: #FFFFFF; --surface-2: #F6F5F1; --surface-3: #ECE9E2;
  --ink: #16231F; --ink-2: #3A4450; --muted: #56635E; --faint: #8A948F;
  --line: #E6E3DC; --line-2: #DEDBD3; --axis: #C9CFD6; --ring: rgba(22,35,31,0.10);
  --accent: #0E6B5E; --accent-hover: #0A4F45; --accent-ink: #FFFFFF; --accent-soft: #E3F2EF; --accent-soft-ink: #0A4F45; --accent-line: #9CCFC5;
  --dark: #16231F; --dark-ink: #FFFFFF; --dark-ink-2: #E3ECE9; --dark-accent: #A9D9CF;
  --waiting: #EB6834; --inroom: #2A78D6; --told: #D9D7CF;
  --good: #0E6B5E; --good-soft: #E3F2EF; --good-ink: #0A4F45;
  --warn-soft: #FFF4E5; --warn-line: #F0C88A; --warn-ink: #5E3300;
  --crit: #C2352B; --crit-soft: #FDECEA; --crit-ink: #7A1F17;
  --note-soft: #FFF7D6; --note-line: #E5CF73; --note-ink: #4A3B00;
  --sim-soft: #F1ECFA; --sim-ink: #4D3A7A; --sim-line: #8C76BF; --sim-tile: #FBF9FE;
  --rule-soft: #EEF0F2; --rule-ink: #3A4450; --rule-line: #C9CFD6;
  --staff-soft: #FDF0E3; --staff-ink: #7A3E0E; --staff-line: #EDC49B;
  --bubble-in: #2A78D6; --bubble-in-ink: #FFFFFF;
  --without: #B7A58C;
  --phone-frame: #16231F; --phone-screen: #FBFAF7;
  --shadow: 0 12px 40px rgba(22,35,31,0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0F1513; --surface: #17201D; --surface-2: #1E2925; --surface-3: #26332E;
    --ink: #EEF3F1; --ink-2: #C9D3CF; --muted: #9AA8A2; --faint: #6F7C77;
    --line: #26332E; --line-2: #2E3C37; --axis: #3A4843; --ring: rgba(255,255,255,0.10);
    --accent: #3FA592; --accent-hover: #5BBBA8; --accent-ink: #06201B; --accent-soft: #143A33; --accent-soft-ink: #A9E0D4; --accent-line: #2B6B5F;
    --dark: #0A100E; --dark-ink: #FFFFFF; --dark-ink-2: #D3DFDB; --dark-accent: #8FD1C3;
    --waiting: #E5713F; --inroom: #4A90E8; --told: #3A4440;
    --good: #3FA592; --good-soft: #143A33; --good-ink: #A9E0D4;
    --warn-soft: #3A2A12; --warn-line: #7A5A24; --warn-ink: #F6D9A8;
    --crit: #E5605A; --crit-soft: #3D1A17; --crit-ink: #F5B8B2;
    --note-soft: #362F12; --note-line: #6E5F22; --note-ink: #F1E2A5;
    --sim-soft: #2A2340; --sim-ink: #D2C6F0; --sim-line: #7D68B5; --sim-tile: #221D33;
    --rule-soft: #232B30; --rule-ink: #C9D1D8; --rule-line: #44505A;
    --staff-soft: #3A2716; --staff-ink: #F3CDA8; --staff-line: #7A5432;
    --without: #8C7D68;
    --phone-frame: #000000; --phone-screen: #141B19;
    --shadow: 0 12px 40px rgba(0,0,0,0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0F1513; --surface: #17201D; --surface-2: #1E2925; --surface-3: #26332E;
  --ink: #EEF3F1; --ink-2: #C9D3CF; --muted: #9AA8A2; --faint: #6F7C77;
  --line: #26332E; --line-2: #2E3C37; --axis: #3A4843; --ring: rgba(255,255,255,0.10);
  --accent: #3FA592; --accent-hover: #5BBBA8; --accent-ink: #06201B; --accent-soft: #143A33; --accent-soft-ink: #A9E0D4; --accent-line: #2B6B5F;
  --dark: #0A100E; --dark-ink: #FFFFFF; --dark-ink-2: #D3DFDB; --dark-accent: #8FD1C3;
  --waiting: #E5713F; --inroom: #4A90E8; --told: #3A4440;
  --good: #3FA592; --good-soft: #143A33; --good-ink: #A9E0D4;
  --warn-soft: #3A2A12; --warn-line: #7A5A24; --warn-ink: #F6D9A8;
  --crit: #E5605A; --crit-soft: #3D1A17; --crit-ink: #F5B8B2;
  --note-soft: #362F12; --note-line: #6E5F22; --note-ink: #F1E2A5;
  --sim-soft: #2A2340; --sim-ink: #D2C6F0; --sim-line: #7D68B5; --sim-tile: #221D33;
  --rule-soft: #232B30; --rule-ink: #C9D1D8; --rule-line: #44505A;
  --staff-soft: #3A2716; --staff-ink: #F3CDA8; --staff-line: #7A5432;
  --without: #8C7D68;
  --phone-frame: #000000; --phone-screen: #141B19;
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); } a:hover { color: var(--accent-hover); }
button, select, input { font: inherit; color: inherit; }
select, input { background: var(--surface); border: 1px solid var(--axis); border-radius: 10px; padding: 6px 10px; }
input[type=number] { width: 6em; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.mono, .num, .time { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--crit-ink); font-weight: 600; }
.err:not(:empty) { display: block; margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: var(--crit-soft, transparent); border: 1px solid var(--crit-ink); }
.note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.wrap { max-width: 1376px; margin: 0 auto; padding: 20px 16px 48px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 720px) { .wrap { padding: 24px 32px 48px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px 22px; }
.h2 { font-size: 20px; font-weight: 800; margin: 4px 0 0; }
.h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.foot { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* buttons */
.btn, .seg button, .tabs button { border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding: 9px 14px; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 40px; }
.btn:hover:not(:disabled), .seg button:hover, .tabs button:hover { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--muted); border-style: dashed; border-color: var(--axis); }
.seg { display: inline-flex; gap: 0; }
.seg button { border-radius: 0; min-height: 36px; padding: 6px 10px; font-size: 13px; margin-left: -1px; }
.seg button:first-child { border-radius: 10px 0 0 10px; margin-left: 0; }
.seg button:last-child { border-radius: 0 10px 10px 0; }
.seg button.on { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.seg.small button { min-height: 30px; padding: 3px 9px; }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.k-sim { background: var(--sim-soft); color: var(--sim-ink); border: 1px dashed var(--sim-line); }
.k-ai { background: var(--accent-soft); color: var(--accent-soft-ink); border: 1px solid var(--accent-line); }
.k-rule { background: var(--rule-soft); color: var(--rule-ink); border: 1px solid var(--rule-line); }
.k-staff { background: var(--staff-soft); color: var(--staff-ink); border: 1px solid var(--staff-line); }
.k-out { background: var(--dark); color: var(--dark-ink); border: 1px solid var(--dark); }
.k-soon { background: transparent; color: var(--muted); border: 1px dashed var(--axis); }
.k-simdata, .k-model { background: var(--note-soft); color: var(--note-ink); border: 1px solid var(--note-line); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--rule-soft); color: var(--rule-ink); }
.pill.ok { background: var(--good-soft); color: var(--good-ink); }
.pill.bad { background: var(--crit-soft); color: var(--crit-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn-ink); }

/* header */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo { width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.brand-sub { font-size: 14px; color: var(--muted); }
.views { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.views a { text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.views a.on { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); font-weight: 700; }
.views-sep { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 4px 0 8px; }

/* run bar */
.runbar { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 20px; }
.runbar-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.runbar-start, .runbar-play, .scrub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.scrub { flex: 1 1 360px; }
.scrub input[type=range] { flex: 1 1 200px; accent-color: var(--accent); min-width: 140px; }
.clock { font-weight: 700; padding: 0 6px; }
.paths { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 3fr); gap: 12px; }
@media (max-width: 1000px) { .paths { grid-template-columns: 1fr; } }
.path { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface-2); }
.path > .field { flex: 1 1 0; }
.path-sim > .field { flex: 1 1 150px; }
.path-sim > .field-day { flex: 2 1 240px; }
.path-sim > .field-seed { flex: 1.4 1 230px; }
.stepnum { flex: none; width: 26px; height: 26px; margin-top: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--accent-soft); color: var(--accent-soft-ink); border: 1px solid var(--accent-line); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field-label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field select, .field input, .field .btn { min-height: 40px; width: 100%; }
.mix-row { display: flex; gap: 6px; }
.mix-row input { flex: 0 0 76px; width: 76px; }
.mix-row .btn { flex: 1 1 auto; width: auto; white-space: nowrap; }
.hint { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.hint .more { font-weight: 600; white-space: nowrap; }
.about-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px 24px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); font-size: 14px; }
@media (max-width: 800px) { .about-body { grid-template-columns: 1fr; } }
.about-body h3 { margin: 0 0 6px; font-size: 15px; }
.about-body p { margin: 0 0 8px; color: var(--ink); }
.about-body dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; }
.about-body dt { font-weight: 700; }
.about-body dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .about-body dl { grid-template-columns: 1fr; } .about-body dd { margin-bottom: 6px; } }
#about-close { justify-self: start; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.playbar { padding-top: 2px; }
.runbar-status:empty { display: none; }
.cap-cta { margin-top: 4px; }
.cap-cta[hidden] { display: none; }

/* clinic stage */
.view[hidden] { display: none !important; }
.view { display: flex; flex-direction: column; gap: 18px; }
.stage { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.caption { flex: 1 1 300px; min-width: 0; background: var(--dark); color: var(--dark-ink); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.cap-time { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--dark-accent); }
.caption h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.caption p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--dark-ink-2); }
.cap-why { margin-top: auto; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 14px 16px; }
.cap-why .eyebrow { color: var(--dark-accent); }
.cap-why p { font-size: 15px; margin-top: 4px; }
.col-head { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.phone-col { flex: 0 1 340px; min-width: 0; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone-ctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.phone { width: min(320px, 100%); height: 640px; border-radius: 44px; background: var(--phone-frame); padding: 12px; box-shadow: 0 24px 60px rgba(22,35,31,.18); }
.screen { width: 100%; height: 100%; border-radius: 34px; background: var(--phone-screen); overflow: hidden; display: flex; flex-direction: column; }
.phone-top { padding: 18px 20px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--surface-3); font-weight: 800; font-size: 15px; }
.phone-sim { font-size: 10.5px; font-weight: 600; color: var(--note-ink); background: var(--note-soft); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.phone-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.page { display: flex; flex-direction: column; gap: 10px; }
.page .pline { background: var(--surface); border: 1px solid var(--surface-3); border-radius: 18px; padding: 14px 16px; margin: 0; }
.page .pline .lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.page .pline .val { display: block; font-size: 17px; font-weight: 800; margin-top: 2px; }
.page .pline.first .val { font-size: 26px; letter-spacing: -.02em; line-height: 1.2; }
.page.declined .pline, .page.decline .pline, .page.none .pline { font-size: 17px; font-weight: 700; line-height: 1.35; }
.page .fresh { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0; }
.page .urgent { background: var(--crit-soft); color: var(--crit-ink); border-radius: 14px; padding: 10px 12px; font-size: 12.5px; line-height: 1.45; margin: 0; }
.thread-head { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.thread { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 86%; padding: 9px 13px; font-size: 14px; line-height: 1.4; border-radius: 18px; }
.bubble.in { align-self: flex-end; background: var(--bubble-in); color: var(--bubble-in-ink); border-radius: 18px 18px 4px 18px; }
.bubble.out { align-self: flex-start; background: var(--surface); border: 1px solid var(--surface-3); border-radius: 18px 18px 18px 4px; }
.bubble .when { display: block; font-size: 11px; opacity: .75; margin-bottom: 2px; }
.bubble .by { display: block; font-size: 11px; opacity: .7; margin-top: 4px; font-style: italic; }
.desk-col { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tablet { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; box-shadow: var(--shadow); min-width: 0; }
.tablet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sim-soft); color: var(--sim-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.who-name { font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface-2); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.stat .k { font-size: 12px; font-weight: 600; color: var(--muted); }
.stat .v { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; margin-top: 2px; }
.stat .s { font-size: 11.5px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.est { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.est dt { color: var(--muted); } .est dd { margin: 0; font-weight: 600; }
.sub-head { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 4px 0 6px; }
.flag { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn-ink); border-radius: 16px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 8px; }
.proposal { border: 1px solid var(--staff-line); background: var(--surface-2); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.proposal .ptitle { font-size: 15px; font-weight: 700; }
.proposal .row { display: flex; flex-wrap: wrap; gap: 8px; }
.proposal input { flex: 1 1 200px; border-radius: 12px; padding: 10px 12px; }
.proposal button { min-height: 40px; border-radius: 12px; padding: 8px 16px; font-weight: 700; cursor: pointer; border: 1px solid var(--axis); background: var(--surface); }
.proposal button[data-d="approved"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.decided-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; background: var(--good-soft); color: var(--good-ink); border-radius: 12px; padding: 9px 12px; margin-bottom: 6px; }
.decided-row.rej { background: var(--rule-soft); color: var(--rule-ink); }
details.line summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 10px 14px; border: 1px solid var(--axis); border-radius: 12px; display: inline-block; }
details.line[open] summary { margin-bottom: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; }
td { padding: 7px 8px; border-top: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; }
.scrollx { overflow-x: auto; }

/* behind the scenes strip */
.bts { display: flex; flex-direction: column; gap: 14px; }
.bts-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.key { display: flex; flex-wrap: wrap; gap: 8px; }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.steps .tag { font-size: 14px; padding: 8px 14px; }
.arrow { color: var(--faint); }
.bts-checks { display: flex; flex-wrap: wrap; gap: 12px; }
.check { flex: 1 1 340px; display: flex; gap: 14px; align-items: center; border-radius: 16px; padding: 14px 16px; }
.check.ok { background: var(--good-soft); color: var(--good-ink); }
.check.bad { background: var(--crit-soft); color: var(--crit-ink); }
.check.neutral { background: var(--rule-soft); color: var(--rule-ink); }
.check .eyebrow { color: inherit; }
.check .t { font-size: 15px; font-weight: 700; color: var(--ink); }
.check .s { font-size: 13px; }

/* views */
.view-head h1 { margin: 4px 0 0; font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lede { margin: 6px 0 0; font-size: 16px; color: var(--muted); max-width: 780px; line-height: 1.5; }

/* flow */
.flow-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.flow-main { flex: 3 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.flow-detail { flex: 1 1 300px; min-width: 0; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.flow-detail h2 { margin: 0; font-size: 22px; font-weight: 800; }
.flow-detail dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.flow-detail dt { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.flow-detail dd { margin: 2px 0 0; font-size: 14px; }
.flow-detail .today { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.lane { border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.lane.world { background: var(--sim-tile); border: 1px dashed var(--sim-line); }
.lane.product { background: var(--surface); border: 1px solid var(--line); }
.lane-title { font-weight: 800; font-size: 16px; }
.lane-sub { font-size: 13px; color: var(--muted); }
.nodes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.node { text-align: left; cursor: pointer; min-height: 56px; padding: 9px 13px; border-radius: 14px; display: flex; flex-direction: column; font: inherit; }
.node b { font-size: 14px; } .node span { font-size: 12px; opacity: .85; }
.node.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
.node.kind-sim { background: var(--sim-soft); color: var(--sim-ink); border: 1px dashed var(--sim-line); }
.node.kind-ai { background: var(--accent-soft); color: var(--accent-soft-ink); border: 1px solid var(--accent-line); }
.node.kind-rule { background: var(--rule-soft); color: var(--rule-ink); border: 1px solid var(--rule-line); }
.node.kind-staff { background: var(--staff-soft); color: var(--staff-ink); border: 1px solid var(--staff-line); }
.node.kind-out { background: var(--dark); color: var(--dark-ink); border: 1px solid var(--dark); }
.node.soon { background: transparent; color: var(--muted); border: 1px dashed var(--axis); }
.node.soon b::after { content: " · not built yet"; font-weight: 600; font-size: 11px; }
.side { border-top: 1px dashed var(--line-2); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.wall { display: flex; gap: 12px; align-items: center; background: var(--dark); color: var(--dark-ink-2); border-radius: 16px; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.wall svg { flex: none; color: var(--dark-accent); }
.checker { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; background: var(--good-soft); color: var(--good-ink); border-radius: 18px; padding: 16px 18px; }
.checker > div { flex: 1 1 280px; } .checker .t { font-weight: 800; color: var(--ink); }

/* promises */
.gates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 16px; }
.gate { background: var(--surface-2); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.gate .mark { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--good); }
.gate.bad .mark { background: var(--crit); }
.gate .t { font-size: 15px; font-weight: 700; line-height: 1.35; }
.gate .s { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--good-ink); }
.gate.bad .s { color: var(--crit-ink); }
.idtag { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 2px 6px; }
.goals { display: flex; flex-direction: column; gap: 10px; }
.goal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; border: 1px solid var(--surface-3); border-radius: 16px; padding: 14px 16px; }
.goal .what { flex: 1 1 300px; min-width: 0; }
.goal .what .t { font-weight: 700; }
.goal .what .s { font-size: 13px; color: var(--muted); }
.goal .bar { flex: 1 1 240px; min-width: 0; }
.track { position: relative; height: 10px; border-radius: 999px; background: var(--surface-3); }
.fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--good); min-width: 3px; }
.fill.bad { background: var(--crit); }
.tick { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--ink); }
.bar-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.seg-tabs { display: inline-flex; gap: 4px; background: var(--surface-2); border-radius: 14px; padding: 4px; }
.seg-tabs button { border: none; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 10px; cursor: pointer; }
.seg-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px var(--ring); }
.callout { display: flex; gap: 12px; align-items: flex-start; background: var(--note-soft); border: 1px solid var(--note-line); color: var(--note-ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.callout.info { background: var(--rule-soft); border-color: var(--rule-line); color: var(--rule-ink); }

/* results */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; min-width: 0; }
.tile .k { font-size: 13px; font-weight: 600; color: var(--muted); }
.tile .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .v .muted { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.tile .s { font-size: 12px; color: var(--muted); margin-top: 4px; }
.recon { font-size: 14px; }
.wbars { display: flex; flex-direction: column; gap: 14px; }
.wbar { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.wbar .d { grid-row: span 2; font-size: 14px; font-weight: 700; }
.wbar .b { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.wbar .b i { height: 14px; border-radius: 0 4px 4px 0; min-width: 3px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.limits { background: var(--dark); color: var(--dark-ink-2); border-radius: 24px; padding: 24px; display: flex; flex-wrap: wrap; gap: 20px; }
.limits > div { flex: 1 1 280px; } .limits h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--dark-ink); }
.limits p { margin: 8px 0 0; } .limits ul { flex: 2 1 420px; margin: 0; padding-left: 20px; line-height: 1.7; }
.results-grid { display: flex; flex-wrap: wrap; gap: 18px; }
.results-grid > section { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* actors */
.agents-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 12px 0; }
.agent { text-align: left; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; }
.agent.open { box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--accent); }
.agent-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.agent-detail h4 { margin: 0 0 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag-actor { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sim-soft); color: var(--sim-ink); border: 1px dashed var(--sim-line); }
.prompt { white-space: pre-wrap; background: var(--surface-2); border-radius: 12px; padding: 12px; max-height: 320px; overflow: auto; margin: 6px 0 10px; }
details > summary { cursor: pointer; }

/* inspector */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button.on { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.score td.status, td.status { font-weight: 700; white-space: nowrap; }
.status.pass { color: var(--good-ink); } .status.fail { color: var(--crit-ink); } .status.pending, .status.info, .status.untested { color: var(--muted); }
.evid { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.evid a, .linkish { cursor: pointer; text-decoration: underline; }
.evid a.dead { color: var(--muted); cursor: default; text-decoration: none; }
.timeline { overflow: auto; max-height: 520px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.timeline svg { display: block; font-size: 11px; }
.timeline text { fill: var(--ink-2); }
.timeline .axis text { fill: var(--muted); }
.timeline .row { cursor: pointer; }
.timeline .row:hover .bg, .timeline .row.sel .bg { fill: var(--surface-2); }
.tip { position: fixed; z-index: 10; background: var(--dark); color: var(--dark-ink); font-size: 12.5px; padding: 8px 10px; border-radius: 10px; pointer-events: none; max-width: 280px; }
.log { max-height: 420px; overflow: auto; font-size: 13px; }
.log .e { padding: 6px 4px; border-top: 1px solid var(--line); }
.log .e.focus { background: var(--warn-soft); }
.log .w { font-variant-numeric: tabular-nums; color: var(--muted); margin-right: 8px; }
.log .s { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-right: 6px; }

@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone { height: 600px; }
  .views-sep { width: 100%; margin: 4px 0 0; }
  .caption { padding: 22px; }
}
.seg-tabs { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 560px) { .card { padding: 16px; border-radius: 20px; } .limits { padding: 18px; } }
.tag.wrap { white-space: normal; }

/* evals screen: clickable promises and goals, eval cards, what the evals caught */
button.gate, button.goal { font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; }
button.gate { border: 1px solid transparent; }
button.goal { background: transparent; border: 1px solid var(--surface-3); }
button.gate:hover, button.goal:hover { border-color: var(--accent-line); }
button.gate:focus-visible, button.goal:focus-visible, a.check:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.gate.open, button.goal.open { border-color: var(--accent); }
a.check { text-decoration: none; cursor: pointer; border: 1px solid transparent; }
a.check:hover { border-color: currentColor; }
.evcard { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px 28px; margin-top: 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--accent-line); background: var(--surface); }
@media (max-width: 800px) { .evcard { grid-template-columns: 1fr; } }
.ev-parts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 14px; }
.ev-parts dt { font-weight: 700; color: var(--muted); }
.ev-parts dd { margin: 0; }
@media (max-width: 560px) { .ev-parts { grid-template-columns: 1fr; } .ev-parts dd { margin-bottom: 6px; } }
.ev-side { font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.ev-side p { margin: 0 0 8px; }
.ev-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.caught { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.caught-item { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.caught-item h3 { margin: 2px 0 0; font-size: 15.5px; line-height: 1.35; }
.caught-item p { margin: 0; }
.caught-item .fix { color: var(--muted); }

/* compact run bar on the behind-the-scenes screens */
#change-day { display: none; }
.runbar.compact { padding: 10px 14px; gap: 6px; border-radius: 16px; }
.runbar.compact .paths, .runbar.compact .about { display: none; }
.runbar.compact #change-day { display: inline-flex; }
.runbar.compact .scrub { flex: 1 1 260px; }

/* headline numbers (Evals, Results) */
.ev-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px 24px; }
.ev-head .big { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.ev-head .big.bad { color: var(--crit-ink); }
.ev-head .s { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.ev-head-note { grid-column: 1 / -1; }

/* how it connects: autonomy ladder and principles */
.ladder .rung { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); gap: 8px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.ladder .rung:first-of-type { border-top: none; }
.rung-l b { display: block; font-size: 14.5px; }
.rung-l span { font-size: 13px; color: var(--muted); }
.rung-c { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) { .ladder .rung { grid-template-columns: 1fr; } }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.principle { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink); text-decoration: none; border: 1px solid transparent; font-size: 13.5px; }
.principle:hover { border-color: var(--accent-line); }
.principle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.principle b { font-size: 14.5px; }
.principle span { color: var(--muted); }
.principle .link { color: var(--accent); font-weight: 600; margin-top: auto; }

/* clinic view in story order: what it looks like and is → the demo → behind it → what it's for */
body[data-view="clinic"] .brand-sub { display: none; }   /* the hero says it */
.hero { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px 48px; align-items: center; padding: 8px 0 4px; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-text { order: -1; } }
.hero-phone { display: flex; flex-direction: column; align-items: center; gap: 8px; }
/* clinic view: the play bar sticks to the bottom of the screen */
body[data-view="clinic"] .runbar { position: sticky; bottom: 10px; z-index: 30; margin: 0; background: var(--surface);
  box-shadow: 0 10px 40px rgba(0,0,0,.35), 0 0 0 1px var(--line-2); }
body[data-view="clinic"] .runbar .runbar-row, body[data-view="clinic"] .runbar .runbar-play, body[data-view="clinic"] .runbar .scrub { flex-wrap: nowrap; }
body[data-view="clinic"] .runbar .scrub { flex: 1 1 120px; min-width: 100px; }
body[data-view="clinic"] .runbar .scrub input { min-width: 0; width: 100%; }
body[data-view="clinic"] .runbar.compact #change-day, body[data-view="clinic"] .runbar #replay, body[data-view="clinic"] .runbar #live:disabled { display: none; }   /* setup sits by the phone */
@media (max-width: 1100px) {
  body[data-view="clinic"] .runbar #source { display: none; }
  body[data-view="clinic"] .runbar .runbar-status:has(#err:empty) { display: none; }
  body[data-view="clinic"] .runbar .btn { padding-inline: 10px; }
}
@media (max-width: 680px) { body[data-view="clinic"] .runbar .runbar-row, body[data-view="clinic"] .runbar .runbar-play { flex-wrap: wrap; } }
.hero-text h1 { margin: 6px 0 10px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
.hero-text .lede { font-size: clamp(16px, 1.6vw, 19px); max-width: 52ch; margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--good-soft); color: var(--good-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.btn.big { font-size: 17px; padding: 12px 22px; min-height: 50px; border-radius: 14px; }
.sec-head { display: flex; gap: 12px; align-items: flex-start; }
.sec-head h2 { margin: 0; font-size: clamp(20px, 2.2vw, 24px); font-weight: 800; letter-spacing: -.01em; }
.sec-head p { margin: 2px 0 0; }
.secnum { flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--accent-soft); color: var(--accent-soft-ink); border: 1px solid var(--accent-line); }
.demo-sec { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.demo-sec .caption { flex: none; flex-direction: row; align-items: flex-start; gap: 16px; padding: 18px 22px; border-radius: 18px; }
.demo-sec .cap-time { flex: none; padding-top: 3px; }
.cap-text h3 { margin: 0 0 4px; font-size: clamp(18px, 2vw, 22px); font-weight: 800; letter-spacing: -.01em; }
.cap-text p { font-size: 15px; }
@media (max-width: 560px) { .demo-sec .caption { flex-direction: column; gap: 6px; } }
.demo-sec .stage { justify-content: center; }
.setup > summary { cursor: pointer; list-style: none; padding: 2px 0; }
.setup > summary::-webkit-details-marker { display: none; }
.setup > summary::before { content: "▸ "; color: var(--accent); }
.setup[open] > summary::before { content: "▾ "; }
.setup-body { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.setup .path { background: transparent; border: none; padding: 0; }
.bts .key { display: flex; flex-wrap: wrap; gap: 6px; }
.bts .cap-why { margin: 0; background: var(--surface-2); border: none; }
.bts .cap-why .eyebrow { color: var(--accent); }
.bts .cap-why p { color: var(--ink); }
.teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.teaser { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-size: 13.5px; }
.teaser b { font-size: 15px; }
.teaser b::after { content: " →"; color: var(--accent); }
.teaser span { color: var(--muted); }
.teaser:hover { border-color: var(--accent-line); }
.teaser:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.purpose { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.purpose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.pcard { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 18px; }
.pcard b { font-size: 15.5px; }
.pcard p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.purpose .limits h3 { margin: 0 0 6px; font-size: 17px; }
.purpose .limits h3 { color: var(--dark-ink); } .purpose .limits a { color: var(--dark-accent); }
.demo-sec .stage { align-items: flex-start; }

/* "Watch the demo" lives in the play bar on the clinic view only */
#demo-bar, body[data-view] #demo-bar { display: none !important; }
body[data-view="clinic"] #demo-bar { display: inline-flex; }

/* "I'm here" on the patient page (display only; simulated patients decide) */
.imhere { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.imhere:empty { display: none; }
.imhere-btn { flex: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13.5px; background: var(--surface); }
.imhere-btn.done { background: var(--good-soft); border-color: var(--accent-line); color: var(--good-ink); }
.flag.ai { background: var(--surface); border-color: var(--line-2); color: inherit; }

/* Clarity pass (2026-11-30): cast line and "when something goes wrong" cards */
.cast { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; font-size: 14.5px; color: var(--ink-2, var(--ink)); max-width: 60ch; }
.cast .tag { margin-right: 6px; }
.wrong { margin: 28px 0 8px; }
.wrong-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.wcard { border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.wcard b { font-size: 14.5px; }
.wcard .says { font-size: 13.5px; background: var(--surface-2, var(--bg)); border-radius: 12px 12px 12px 4px; padding: 9px 12px; }
.wcard .why { font-size: 12.5px; color: var(--muted); }

/* Guided path card: stays on screen above the play bar while the page scrolls to each stop */
.tour { position: fixed; right: 24px; bottom: 120px; width: min(380px, calc(100% - 32px)); z-index: 40;
        display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.tour[hidden] { display: none; }
.tour h3 { margin: 0; font-size: 18px; }
.tour p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.tour-top { display: flex; justify-content: space-between; align-items: center; }
.tour-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.tour-focus { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 24px; }
@media (max-width: 760px) { .tour { right: 16px; bottom: 150px; } }

/* Narrative nav (2026-11-30): numbered story tabs, then a "More" menu */
.views .vnum { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11.5px; font-weight: 800; background: var(--line-2); margin-right: 4px; }
.views a.on .vnum { background: var(--accent); color: var(--dark); }
.more-menu { position: relative; }
.more-menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--muted); }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu summary::after { content: " ▾"; }
.more-menu.on summary { color: var(--ink); border-style: solid; }
.more-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.25); min-width: 180px; }
.more-list a { border: 0 !important; }
.next-link { margin: 18px 0 0; font-weight: 700; } .next-link a { color: var(--accent); text-decoration: none; }
body[data-view="evals"] .runbar, body[data-view="evolved"] .runbar, body[data-view="flow"] .runbar { display: none; }
/* How it evolved: decision cards */
.decisions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; margin-bottom: 18px; }
.dcard { border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.dcard h3 { margin: 0; font-size: 18px; }
.dcard dl { display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.dcard dt { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.dcard dd { margin: 0; }
.dcard .chose { background: var(--good-soft); color: var(--good-ink); border-radius: 10px; padding: 6px 10px; }

/* Evals redesign: accuracy strips and checklists */
.accs { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.acc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(160px, 1fr) auto; gap: 16px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.acc.open { border-color: var(--accent-line); }
.acc .t { font-weight: 700; font-size: 15px; } .acc .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.strip { position: relative; height: 28px; }
.strip .line { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line-2); border-radius: 2px; }
.strip .goalmark { position: absolute; top: 2px; width: 2px; height: 24px; background: var(--ink); opacity: .75; transform: translateX(-1px); }
.strip .dot { position: absolute; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); transform: translateX(-7px); }
.strip .dot.bad { background: var(--crit-ink, #e5534b); }
.strip .dot.held { background: transparent; border: 2px solid var(--accent); }
.strip .dot.held.bad { border-color: var(--crit-ink, #e5534b); }
.strip .dot.rep { background: var(--muted); }
.acc .pill, .chk .pill { white-space: nowrap; }
.pill.bad { background: var(--crit-soft); color: var(--crit-ink); }
.chks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px; margin-top: 14px; }
.chk { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.chk .mark { grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--good-soft); color: var(--good-ink); }
.chk.bad .mark { background: var(--crit-soft); color: var(--crit-ink); }
.chk .t { font-weight: 650; font-size: 14px; } .chk .s { font-size: 12px; color: var(--muted); }
.chk.open { border-color: var(--accent-line); }
.secline { display: flex; gap: 12px; align-items: center; margin: 22px 0 -6px; font-size: 20px; }
.ev-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
@media (max-width: 760px) { .acc { grid-template-columns: 1fr; gap: 10px; } }

/* "Did it help?" on the Evals screen: headline numbers, the rest behind "See all the numbers" */
#helped { display: flex; flex-direction: column; gap: 14px; }
#helped .ev-head { box-shadow: none; border: 1px solid var(--line-2); }
.allnums > summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.allnums[open] > summary { margin-bottom: 12px; }
.allnums { display: block; }
.allnums > *:not(summary) { margin-top: 12px; }

.decisions-sec { margin-top: 24px; }

.theme-toggle { font: inherit; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent-line); }

/* 1. one "Watch a day play out" button: the one by the headline; the play bar keeps Play/Pause */
#demo-bar, body[data-view] #demo-bar { display: none !important; }
/* 5. How it works: a one-line sequence of steps */
.seq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.seq .step { font: inherit; font-size: 13.5px; font-weight: 650; padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.seq .step.kind-sim { background: var(--sim-soft); color: var(--sim-ink); border: 1px dashed var(--sim-line); }
.seq .step.kind-ai { background: var(--accent-soft); color: var(--accent-soft-ink); border-color: var(--accent-line); }
.seq .step.kind-staff { background: var(--staff-soft); color: var(--staff-ink); border-color: var(--staff-line); }
.seq .step.kind-out { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.seq .step.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.seq .arr { color: var(--faint); }
.seq-card .wall { margin-top: 12px; }
