/* Compass design system. The look comes from the book's cover (Designing Network Automation at Scale):
   deep navy, the helix's blue, its green section, cyan sparks; squared condensed headings over Inter.
   Colours carry meaning: blue = an action, or work in progress; green = done, automated; amber = needs you.
   Fonts are served from here (no third-party requests: privacy, and the CSP stays 'self'). /design shows
   every component. */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Saira Semi Condensed"; src: url("fonts/saira-semicondensed-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Saira Semi Condensed"; src: url("fonts/saira-semicondensed-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* brand */
  --navy-950: #04091e; --navy-900: #071430; --navy-800: #0d1f45; --navy-700: #16305f; --navy-600: #1f4180;
  --helix-blue: #4a9eff; --helix-green: #4cd97b; --cyan: #7fd8ff; --on-navy: #e8f4ff; --on-navy-muted: #a0c8ff;
  /* surfaces and ink */
  --bg: #f5f8fc; --surface: #ffffff; --soft: #eef3fa; --line: #dbe3ef; --line-strong: #b9c7dc;
  --fg: #0b1630; --muted: #4a5878;
  /* meaning (text-safe shades on white; fills for bars and chips) */
  --accent: #1f6fd1; --accent-strong: #0d4fa3; --accent-soft: #e3efff; --accent-ink: #1a5fb8;
  --ok: #17803e; --ok-fill: #4cd97b; --ok-soft: #dff7e8; --ok-ink: #146b34;
  --warn-fill: #f2b544; --warn: #fdf1d8; --warn-ink: #7a5300; --warn-line: #f2d48f;
  --danger: #b42318; --danger-soft: #fde8e8;
  --idle-soft: #e4ebf5; --idle-ink: #3b4a6b;
  /* type, shape */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Saira Semi Condensed", "Inter", system-ui, sans-serif;
  --radius: 12px; --radius-sm: 8px; --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(4, 9, 30, .06), 0 2px 8px rgba(4, 9, 30, .04);
}

* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--fg); background: var(--bg); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .01em; line-height: 1.12; }
h1 { font-size: 2.1rem; margin: .6rem 0 1rem; text-transform: uppercase; }
h2 { font-size: 1.35rem; margin-top: 1.8rem; text-transform: uppercase; letter-spacing: .03em; }
h3 { font-size: 1.15rem; font-weight: 600; }
.doc h1, .doc h2, .doc h3 { text-transform: none; }
a { color: var(--accent); } a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--helix-blue); outline-offset: 2px; }
.page-head { margin: .4rem 0 1.4rem; } .page-head h1 { margin: .25rem 0 .4rem; } .lede { margin: 0; font-size: 1.05rem; color: var(--muted); max-width: 46rem; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* the header: navy chrome with the helix mark, the navigation inside it */
.top { display: flex; gap: 1.2rem; align-items: center; padding: .6rem 1.5rem; background: var(--navy-950); color: var(--on-navy); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--on-navy); text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: .05em; font-size: 1.05rem; }
.brand:hover { color: #fff; } .brand b { color: var(--helix-blue); font-weight: 700; }
.env { font-size: .75rem; color: var(--on-navy-muted); border: 1px solid var(--navy-600); border-radius: var(--radius-pill); padding: 0 .55rem; }
.who { color: var(--on-navy-muted); font-size: .88rem; }
.top button.link { color: var(--on-navy-muted); text-decoration: none; font-size: .88rem; } .top button.link:hover { color: #fff; text-decoration: underline; }
.nav { display: flex; gap: .2rem; flex-wrap: wrap; align-items: center; padding: .35rem 1.5rem; background: var(--navy-900); font-size: .93rem; }
.nav a { padding: .4rem .8rem; border-radius: var(--radius-sm); color: var(--on-navy-muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: #fff; background: var(--navy-800); }
.nav a.here { background: var(--navy-700); color: #fff; }
.views { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--on-navy-muted); }
.views a { padding: .25rem .7rem; border: 1px solid var(--navy-600); color: var(--on-navy-muted); text-decoration: none; border-radius: 0; }
.views a:first-of-type { border-radius: var(--radius-sm) 0 0 var(--radius-sm); } .views a:last-of-type { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-left: -1px; }
.views a.on { background: var(--helix-blue); border-color: var(--helix-blue); color: var(--navy-950); font-weight: 600; }

main { max-width: 1040px; margin: 0 auto; padding: 1.6rem 16px 4rem; }
.muted { color: var(--muted); font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; } th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
input, textarea, select { font: inherit; padding: .55rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--fg); min-height: 44px; }
textarea { width: 100%; resize: vertical; }
input[type=checkbox], input[type=radio] { min-height: 0; accent-color: var(--accent); }

/* buttons: primary (blue), secondary (outline), link, danger */
button, .button { font: 500 .95rem var(--font); padding: .55rem 1.05rem; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; text-decoration: none; color: var(--fg); display: inline-flex; align-items: center; gap: .4rem; }
button:hover, .button:hover { border-color: var(--accent); color: var(--fg); }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.danger { border-color: var(--danger); color: var(--danger); }
button.link { border: 0; background: none; color: var(--accent); padding: .2rem .3rem; text-decoration: underline; min-height: 0; }
button:disabled { opacity: .5; cursor: wait; }
form.inline { display: inline; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .6rem 0; }
.stack { display: grid; gap: .6rem; max-width: 640px; }
.choice { display: block; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
img { max-width: 100%; height: auto; }

/* status chips, progress, stat tiles, cards, notices */
.chip { display: inline-block; font-size: .8rem; font-weight: 600; padding: .2rem .65rem; border-radius: var(--radius-pill); background: var(--idle-soft); color: var(--idle-ink); white-space: nowrap; }
.chip.done, .chip.needs { border: 0; }
.chip.doing { background: var(--accent-soft); color: var(--accent-ink); } .chip.done { background: var(--ok-soft); color: var(--ok-ink); }
.chip.needs { background: var(--warn); color: var(--warn-ink); } .chip.bad { background: var(--danger-soft); color: var(--danger); }
.chip.top { background: var(--navy-950); color: var(--cyan); letter-spacing: .08em; }
.bar { display: flex; gap: 2px; height: 10px; border-radius: 6px; background: var(--idle-soft); overflow: hidden; min-width: 80px; }
.bar > span { display: block; border: 0; border-radius: 0; padding: 0; background: none; }
.bar > .done { background: var(--ok-fill); } .bar > .doing { background: var(--helix-blue); }
.pct-0 { width: 0%; } .pct-5 { width: 5%; } .pct-10 { width: 10%; } .pct-15 { width: 15%; } .pct-20 { width: 20%; } .pct-25 { width: 25%; } .pct-30 { width: 30%; } .pct-35 { width: 35%; } .pct-40 { width: 40%; } .pct-45 { width: 45%; } .pct-50 { width: 50%; } .pct-55 { width: 55%; } .pct-60 { width: 60%; } .pct-65 { width: 65%; } .pct-70 { width: 70%; } .pct-75 { width: 75%; } .pct-80 { width: 80%; } .pct-85 { width: 85%; } .pct-90 { width: 90%; } .pct-95 { width: 95%; } .pct-100 { width: 100%; }
.bar-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0; }
.stat { background: var(--navy-900); color: var(--on-navy); border-radius: var(--radius); padding: 1rem 1.2rem; }
.stat .label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.stat .value { font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1.1; }
.stat .value small { font-size: 1rem; color: var(--on-navy-muted); font-weight: 600; }
.stat .sub { font-size: .88rem; color: var(--on-navy-muted); }
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow); }
.card.needs { border: 2px solid var(--warn-fill); }
.todo { display: grid; gap: .75rem; margin: 1rem 0; }
.todo-item { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.todo-item.needs { border: 2px solid var(--warn-fill); }
.todo-item .what { flex: 1 1 20rem; min-width: 0; }
.todo-item .title { font-weight: 600; font-size: 1.05rem; }
.todo-item .kind { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--warn-ink); }
.todo-item .sub { font-size: .9rem; color: var(--muted); }
.notice { background: var(--warn); border: 1px solid var(--warn-line); border-radius: var(--radius-sm); padding: .75rem 1rem; }
.info { background: var(--accent-soft); border: 1px solid #c4dbfb; border-radius: var(--radius-sm); padding: .75rem 1rem; }
.navy-band { position: relative; overflow: hidden; background: var(--navy-950); color: var(--on-navy); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.navy-band h1, .navy-band h2 { margin: .2rem 0; } .navy-band .eyebrow { color: var(--cyan); }
.navy-band .helix { position: absolute; right: 0; top: 0; height: 100%; width: auto; opacity: .9; pointer-events: none; }
.navy-band > :not(.helix) { position: relative; }
.navy-band a { color: var(--cyan); }
.green { color: var(--helix-green); } .on-navy-muted { color: var(--on-navy-muted); max-width: 40rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.swatch { display: flex; gap: .8rem; align-items: center; }
.sw { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; }
.sw-navy { background: var(--navy-950); } .sw-blue { background: var(--helix-blue); } .sw-green { background: var(--helix-green); }
.sw-cyan { background: var(--cyan); } .sw-amber { background: var(--warn-fill); }

/* ---- the app's pages (kept classes, on the tokens above) ---- */
blockquote { margin: .8rem 0; padding: .6rem 1rem; background: var(--warn); border-left: 4px solid var(--warn-fill); border-radius: 6px; }
.copy { width: 100%; font-family: ui-monospace, monospace; font-size: .85rem; }
.tag { font-size: .75rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; color: var(--muted); }
.disclosure { font-size: .92rem; background: var(--soft); border-radius: 8px; padding: .7rem 1rem; }
.parts { list-style: none; padding: 0; } .parts li { padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.parts li.completed::before { content: "✓ "; color: var(--ok); } .parts li.todo::before { content: "○ "; color: var(--muted); }
.parts li.stopped::before, .parts li.interrupted::before, .parts li.aborted::before { content: "◐ "; color: var(--warn-ink); }
#chat { max-width: 760px; }
.log { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .7rem; }
.log li { padding: .6rem .9rem; border-radius: 10px; max-width: 88%; white-space: pre-wrap; }
.log li.interviewer { background: var(--accent-soft); border: 1px solid #c4dbfb; }
.log li.you { background: var(--ok-soft); border: 1px solid #b9e8cb; justify-self: end; }
.log .who { display: block; font-size: .75rem; color: var(--muted); }
.question { background: var(--surface); border: 1px solid var(--accent); border-radius: 10px; padding: .8rem 1rem; white-space: pre-wrap; margin-bottom: .8rem; }
.part { color: var(--muted); font-size: .85rem; margin: 1rem 0 .3rem; }
.note, .why { color: var(--muted); font-size: .9rem; white-space: pre-wrap; margin: .3rem 0; }
.why { border-left: 3px solid var(--line); padding-left: .7rem; }
.checkpoint, .done:not(.chip):not(.bar *) { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
.htmx-indicator { opacity: 0; color: var(--muted); transition: opacity .2s; } .htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.error { color: var(--danger); }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .5rem 1.4rem 1.2rem; overflow-x: auto; }
.doc table { font-size: .88rem; } .section { margin-top: 2rem; }
@media (max-width: 600px) { .top { gap: .4rem .9rem; padding: .5rem 1rem; } .brand .long, .env { display: none; }
  .who { font-size: .8rem; } .nav { padding: .3rem .6rem; } main { padding-top: 1rem; } h1 { font-size: 1.7rem; } .log li { max-width: 100%; } }
fieldset.choices { border: 0; padding: 0; margin: 0 0 .6rem; display: grid; gap: .4rem; }
fieldset.choices legend { color: var(--muted); font-size: .85rem; margin-bottom: .3rem; }
fieldset.choices .choice { cursor: pointer; }
fieldset.choices .choice:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.llm { border-radius: 8px; padding: .55rem .9rem; margin-bottom: 1rem; border: 1px solid var(--line); background: var(--surface); }
.llm.anthropic { border-color: #c4dbfb; background: var(--accent-soft); } .llm.ollama { border-color: #d9c7f5; background: #f5effe; }
.llm.offline { border-color: #e5e7eb; background: #f6f6f4; }
.answers { list-style: none; padding: 0; display: grid; gap: .5rem; }
.answers li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; }
.answers .q { color: var(--muted); font-size: .9rem; margin-bottom: .2rem; }
.answers li:target { border-color: var(--accent); }
textarea.editor { font-family: ui-monospace, monospace; font-size: .88rem; min-height: 28rem; }
.stack:has(textarea.editor) { max-width: none; }
.followup { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: 1.2rem; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--soft); }
details summary { cursor: pointer; color: var(--accent); margin: .6rem 0; }
.acting { background: var(--warn); border-bottom: 1px solid var(--warn-line); padding: .45rem 1.2rem; font-size: .92rem;
  position: sticky; top: 0; z-index: 10; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.scroll { overflow-x: auto; }
table.progress th { font-size: .8rem; font-weight: 600; } table.progress td.mark { text-align: center; }
.spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -.15em; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.busy { display: inline-flex; gap: .45rem; align-items: center; color: var(--fg); }
.htmx-indicator { display: inline-flex; gap: .45rem; align-items: center; }
button.small { padding: .2rem .7rem; font-size: .88rem; }
table.coverage td { padding: .55rem .4rem; border-bottom: 1px dashed var(--line); vertical-align: middle; }
table.coverage td.state { white-space: nowrap; color: var(--muted); font-size: .9rem; }
table.coverage td.jump { white-space: nowrap; font-size: .9rem; width: 1%; padding-left: 1rem; }
table.coverage td.jump button.link { padding: 0; }
.coverage tr.st-done .state { color: var(--ok); } .coverage tr.st-partial .state { color: var(--warn-ink); }
.titlebar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.titlebar h1 { margin: .4rem 0; } .titlebar h1 .muted { font-size: .9rem; font-weight: 400; }
table.compact td, table.compact th { padding: .35rem .4rem; font-size: .9rem; }
.nowrap { white-space: nowrap; }
details.section { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: .4rem; }
details.danger-zone summary { color: var(--danger); }
.hero { border: 1px solid var(--accent); background: var(--surface); border-radius: 10px; padding: .9rem 1.1rem; margin: .6rem 0 .8rem; }
.hero p { margin: .5rem 0 0; }
.hero.locked { border-color: var(--line); }
button.big { font-size: 1.1rem; padding: .6rem 1.4rem; }
.upgrade { background: var(--warn); border: 1px solid var(--warn-line); border-radius: 8px; padding: .5rem .8rem; }
button.locked:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.6);    /* its own colour, faded, with the lock */
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 6px, transparent 6px 12px); }
.plan-banner { background: var(--accent-soft); border: 1px solid #c4dbfb; border-left: 5px solid var(--helix-blue); border-radius: 8px;
  padding: .6rem 1rem; margin: 0 0 1rem; }
.plan-banner p { margin: .2rem 0; }
.locked-button { display: inline-block; cursor: help; }
details.part-report summary { font-size: .95rem; }
table.views { margin: .3rem 0; }
table.views td { padding: .6rem .4rem; vertical-align: middle; border-bottom: 1px solid var(--line); }
table.views .role { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
table.views .answer { color: var(--fg); }
table.views td.state { width: 1%; white-space: nowrap; text-align: right; }
table.views td.act { width: 1%; white-space: nowrap; text-align: right; }
table.views td.act button { min-width: 8.5rem; }
.pill { font-size: .8rem; border-radius: 99px; padding: .1rem .6rem; border: 1px solid var(--line); }
.pill.open { background: var(--warn); border-color: var(--warn-line); }
form.everyone { margin-top: .5rem; }
.warning { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--warn); border: 1px solid var(--warn-line); border-left: 4px solid var(--warn-fill); border-radius: 8px; padding: .8rem 1rem; margin-bottom: 1rem; }
.warning .button { white-space: nowrap; }
.warning > div { flex: 1 1 28rem; }
.ai-note { font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); padding: 0 0 .6rem; margin: .4rem 0 1rem; }
.ask { background: var(--accent-soft); border: 1px solid #c4dbfb; border-left: 4px solid var(--accent); border-radius: 10px;
  padding: .8rem 1rem; margin: 1rem 0 .9rem; }
.ask .who, form.reply > .who { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .03em; }
.ask .text { white-space: pre-wrap; font-size: 1.05rem; }
form.reply { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
form.reply textarea { background: #fcfcfd; }
.pill.failed { background: #fde8e8; border-color: #f5c2c2; color: var(--danger); }
.about { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
tr.unread td { background: var(--warn); }
.inline-check { display: inline-flex; gap: .3rem; align-items: center; margin: .15rem .8rem .15rem 0; font-size: .9rem; }
details.parts-pick { flex-basis: 100%; } details.manage summary { font-size: .88rem; }
details.manage form { margin: .5rem 0; max-width: 28rem; }
.rating { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .4rem 0 1rem; }
.stars { display: inline-flex; flex-direction: row-reverse; }
.stars input { position: absolute; opacity: 0; width: 0; }
.stars label { font-size: 1.6rem; color: #d1d5db; cursor: pointer; padding: 0 .08rem; line-height: 1; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #e0a800; }
.stars input:focus-visible + label { outline: 2px solid var(--accent); }
.stars-shown { color: #e0a800; letter-spacing: .05em; }
table.views td.act form { margin: .15rem 0; }
.person-actions { font-size: .85rem; margin-top: .2rem; } .person-actions details.manage { display: inline-block; }
table.progress td:first-child { min-width: 16rem; }
table.people th { font-size: .78rem; vertical-align: bottom; }
.ask-toggle { display: inline-flex; gap: .3rem; align-items: center; cursor: pointer; }
.ask-toggle input:not(:checked) + span { opacity: .35; }
tr.invite-row td { background: var(--soft); }
tr.invite-row input[type=email] { width: 100%; min-width: 14rem; }
button.danger-link { color: var(--danger); }
main:has(table.people) { max-width: 1320px; }

/* sortable tables (app.js): a header is a button-like target, the sorted one shows its direction */
thead th:not(:empty) { cursor: pointer; user-select: none; }
thead th:not(:empty):hover { text-decoration: underline; }
thead th[aria-sort="ascending"]::after { content: " ▲"; font-size: .75em; }
thead th[aria-sort="descending"]::after { content: " ▼"; font-size: .75em; }

/* resolved disagreements: the history of how each was settled */
section.resolved { opacity: .9; }
ol.history { margin: .25rem 0 .5rem; padding-left: 1.25rem; font-size: .92em; }
ol.history li { margin: .15rem 0; }
.stars-avg { color: #e0a800; letter-spacing: .05em; white-space: nowrap; }
.ref-badge { display: inline-block; font-size: .72em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  vertical-align: middle; padding: .15em .55em; border-radius: 999px; background: var(--accent); color: #fff; }
.ai-use { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
progress.meter { width: 140px; height: 8px; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; accent-color: var(--accent); }
progress.meter::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
progress.meter::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress.meter::-moz-progress-bar { background: var(--accent); }
progress.meter.high::-webkit-progress-value { background: var(--danger); }
progress.meter.high::-moz-progress-bar { background: var(--danger); }
.domains { display: flex; flex-wrap: wrap; gap: .4rem; }
.domains .choice { flex: 0 1 auto; }
.asks { display: grid; gap: .5rem; margin: .6rem 0; }
.ask-q { background: var(--soft); border-radius: 8px; padding: .5rem .8rem; }
.ask-a { padding: 0 .2rem .4rem; border-bottom: 1px solid var(--line); }
.ask-page { display: flex; flex-direction: column; gap: 1rem; max-width: 820px; }
.thread { display: grid; gap: 1rem; }
.turn { display: grid; gap: .4rem; }
.bubble { padding: .6rem .9rem; border-radius: 14px; max-width: 85%; }
.bubble.me { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.bubble.them { justify-self: start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.starters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.starters p { grid-column: 1 / -1; margin: 0; }
.starters form { display: flex; }
button.starter { flex: 1; text-align: left; padding: .7rem .9rem; border-radius: 10px; background: var(--surface);
  border: 1px solid var(--line); line-height: 1.35; }
button.starter:hover, button.starter:focus-visible { border-color: var(--accent); background: var(--soft); }
@media (max-width: 600px) { .starters { grid-template-columns: 1fr; } }
.composer { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; padding: .6rem 0;
  background: var(--bg); border-top: 1px solid var(--line); }
.composer textarea { flex: 1 1 20rem; width: auto; min-width: 0; }
.composer > button { flex: 0 0 auto; }
.composer .htmx-indicator { flex-basis: 100%; }
.bubble.typing { color: var(--muted); display: inline-flex; gap: .45rem; align-items: center; }
.ask-toggle .saved { font-size: .72rem; margin-left: .2rem; }
.ask-toggle .saved.ok { color: var(--ok, #2e7d32); }
.ask-toggle .saved.failed { color: #b42318; }
.checkin td { vertical-align: top; } .checkin textarea { min-width: 14rem; } .checkin input { width: 100%; margin-top: .3rem; }
.chart-box { margin: .8rem 0; } .chart-box figcaption { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; font-size: .9rem; }
.chart { width: 100%; max-width: 680px; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.chart .dashed { stroke-dasharray: 5 4; }
.chart .s-landed { stroke: var(--accent); } .chart circle.s-landed { fill: var(--accent); stroke: var(--bg, #fff); stroke-width: 2; }
.chart .s-planned { stroke: var(--muted); } .chart circle.s-planned { fill: var(--muted); stroke: var(--bg, #fff); stroke-width: 2; }
.legend { color: var(--muted); font-size: .85rem; } .legend .key { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--accent); vertical-align: middle; margin: 0 .2rem 0 .6rem; }
.legend .key.s-planned { border-top-color: var(--muted); } .legend .key.dashed { border-top-style: dashed; }
details.card { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; margin: .6rem 0; background: var(--surface); }
form.card { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; margin: .6rem 0; }
form.stack label { display: block; margin: .4rem 0; } form.stack textarea, form.stack input[name="name"] { width: 100%; }

/* two columns: the work, and a side column that drops under it on a phone */
.split { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; margin-top: 1.2rem; }
.split-main { flex: 999 1 560px; min-width: 0; }
.split-side { flex: 1 1 280px; display: grid; gap: 1rem; }
.side-note p { color: var(--on-navy-muted); font-size: .92rem; margin: .5rem 0; } .side-note p strong { color: var(--on-navy); }
.side-note .button { margin-top: .4rem; background: transparent; color: var(--on-navy); border-color: var(--helix-blue); }
.side-note .button:hover { background: var(--navy-700); color: #fff; }
.small-print p { font-size: .9rem; color: var(--muted); margin: .4rem 0; }
ul.plain { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .5rem; }
details.done-parts summary { color: var(--ok); font-weight: 600; }

/* the chat: a navy head, bubbles, the answer box below; one column, phone first */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat { max-width: 760px; margin: 0 auto; display: grid; gap: 1rem; }
.chat-head { display: flex; gap: .8rem; align-items: center; background: var(--navy-950); color: var(--on-navy); border-radius: var(--radius); padding: .8rem 1rem; }
.chat-head .eyebrow { color: var(--cyan); }
.chat-head .back { color: var(--on-navy); text-decoration: none; font-size: 1.3rem; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.chat-head .back:hover { background: var(--navy-800); }
.chat-title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.chat .thread { display: grid; gap: .7rem; }
.chat .bubble { white-space: pre-wrap; line-height: 1.5; }
.chat .bubble.them { box-shadow: var(--shadow); }
.chat .bubble.current { border: 2px solid var(--helix-blue); font-size: 1.05rem; }
.composer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.composer-actions .primary { min-width: 6rem; justify-content: center; }
.done-note { margin: 0; }
.ai-note { max-width: 760px; margin: 1rem auto 0; border: 0; text-align: center; }

/* the owner's overview: setup steps, the answers table, the side column of what needs them */
.titlebar .page-head { margin-bottom: .6rem; }
ol.steps { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
ol.steps li { display: flex; gap: .6rem; align-items: flex-start; } ol.steps li .chip { margin-top: .1rem; }
ol.steps .muted { font-size: .85rem; }
table.answered td { vertical-align: middle; } table.answered td:last-child { width: 32%; }
.side-title { margin: 0; font-size: 1.1rem; }
.split-side .card p { margin: .35rem 0; }

/* workflows: the list on the side, each workflow's band with its figures and the strip of its steps */
.wf-list { position: sticky; top: 1rem; }
.wf-link { display: grid; gap: .35rem; text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.wf-link:hover { border-color: var(--accent); color: var(--fg); } .wf-link.add { color: var(--accent); font-weight: 600; text-align: center; border-style: dashed; }
section.wf { margin-bottom: 2.5rem; scroll-margin-top: 1rem; } section.wf h2 { margin: 0 0 .2rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
section.wf > .card, section.wf > details, section.wf > .row { margin-top: 1rem; }
.wf-band { margin-top: .8rem; padding: 1.2rem 1.4rem; }
.wf-figures { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.wf-figures .big { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.wf-figures .small { font-size: .85rem; color: var(--on-navy-muted); }
ol.strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
ol.strip li { font-size: .78rem; line-height: 1.25; padding: .45rem .55rem; border-radius: var(--radius-sm); min-height: 3.2rem; overflow: hidden; }
ol.strip li .n { display: block; font-family: var(--display); font-weight: 700; font-size: .85rem; opacity: .75; }
ol.strip li.soon { background: var(--helix-green); color: var(--navy-950); font-weight: 600; }
ol.strip li.later { background: var(--helix-blue); color: var(--navy-950); font-weight: 600; }
ol.strip li.gone { background: var(--navy-700); color: var(--on-navy-muted); border: 1px dashed var(--on-navy-muted); text-decoration: line-through; }
.strip-legend { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .7rem; font-size: .8rem; color: var(--on-navy-muted); }
.strip-legend .k { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; vertical-align: -.1rem; margin-right: .3rem; }
.k.soon { background: var(--helix-green); } .k.later { background: var(--helix-blue); } .k.gone { border: 1px dashed var(--on-navy-muted); }
table.shows td:first-child { width: 30%; font-weight: 600; }
.wf-link .chip { justify-self: start; }

/* the report: a cover band, its sections on the side, the text set for reading */
.report-cover { padding: 1.4rem 1.8rem 1.8rem; }
.report-cover h1 { font-size: 2.6rem; margin: .3rem 0 .9rem; max-width: 40rem; }
.report-cover .cover-top { margin: 0 0 1rem; } .report-cover .cover-top a { color: var(--on-navy-muted); text-decoration: none; font-size: .9rem; }
.report-cover .ref-badge { background: var(--helix-green); color: var(--navy-950); }
.button.on-navy { background: transparent; color: var(--on-navy); border-color: var(--helix-blue); }
.button.on-navy:hover { background: var(--navy-700); color: #fff; }
.report-layout .split-side { flex: 0 1 260px; }
@media (max-width: 900px) { .report-toc { order: 2; position: static; max-height: none; } }
.report-toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
nav.toc { display: grid; gap: 2px; font-size: .9rem; margin: .4rem 0 .6rem; }
nav.toc a { padding: .4rem .7rem; border-radius: var(--radius-sm); color: var(--fg); text-decoration: none; border-left: 3px solid transparent; }
nav.toc a:hover { background: var(--accent-soft); border-left-color: var(--helix-blue); color: var(--accent-ink); }
.small-links { font-size: .82rem; }
.report-doc { padding: 1rem 2rem 1.6rem; font-size: 1.02rem; line-height: 1.7; }
.report-doc h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; font-size: 1.5rem; margin-top: 2.2rem;
  padding-top: 1.2rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.report-doc h3 { font-family: var(--display); font-size: 1.2rem; scroll-margin-top: 1rem; }
.report-doc table { font-size: .9rem; line-height: 1.45; } .report-doc th { background: var(--soft); }
.report-doc blockquote { background: var(--accent-soft); border-left-color: var(--helix-blue); }
@media (min-width: 1100px) { main:has(.report-layout) { max-width: 1240px; } }

/* line icons sit on the text's baseline, in its colour */
svg.icon { vertical-align: -.2em; flex-shrink: 0; }
.todo-item .title svg.icon { color: var(--accent); margin-right: .15rem; }
table.answered svg.icon { color: var(--muted); margin-right: .2rem; }

/* entry pages: the cover's band, then the content below it, narrower */
.navy-band.welcome { max-width: 760px; margin: 1rem auto 0; padding: 2.4rem 2rem; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; }
.navy-band.welcome h1 { font-size: 2.4rem; margin: .3rem 0 0; max-width: 28rem; }
.welcome-body { max-width: 760px; margin: 1.4rem auto 0; }
.welcome-body .stack { max-width: none; }
/* the remaining pages: cards for repeated items, the People table's marks */
section.followup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0; box-shadow: var(--shadow); border-top: 1px solid var(--line); }
section.followup h2 { margin-top: .3rem; }
section.followup .tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--warn-ink); border: 0; padding: 0; }
.answers li { box-shadow: var(--shadow); border-radius: var(--radius); padding: .8rem 1rem; }
.answers .q { font-size: .88rem; }
.question { border-color: var(--helix-blue); border-width: 2px; border-radius: var(--radius); }
table.people { background: var(--surface); border-radius: var(--radius); }
table.people td.mark, table.people th { text-align: center; }
table.people td.mark .ask-toggle span:first-of-type { font-weight: 700; }
table.people tbody tr:hover td { background: var(--soft); }
.disclosure { background: var(--accent-soft); border: 1px solid #c4dbfb; border-radius: var(--radius-sm); }
.doc { border-radius: var(--radius); box-shadow: var(--shadow); }

/* charts: landed is done (the darker green, readable on white), planned stays muted */
.chart .s-landed { stroke: var(--ok); } .chart circle.s-landed { fill: var(--ok); }
.legend .key { border-top-color: var(--ok); }

/* dark mode: the same tokens on the cover's own navy. It follows the device's setting unless the person
   chose one in the header (data-theme on <html>: light | dark; static/theme.js sets it before the page draws).
   Text keeps 4.5:1; filled buttons and bubbles take navy text on the helix blue. */
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; } :root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050b1f; --surface: #0b1733; --soft: #102042; --line: #1e3260; --line-strong: #2e4780;
    --fg: #e8f4ff; --muted: #a8bddb;
    --accent: #4a9eff; --accent-strong: #7fb8ff; --accent-soft: #10264d; --accent-ink: #a8cdff;
    --ok: #4cd97b; --ok-soft: #0f3324; --ok-ink: #8eeab0;
    --warn: #33270a; --warn-ink: #f6cf7a; --warn-line: #6b5013;
    --danger: #ff8a7a; --danger-soft: #3d1410; --idle-soft: #172a52; --idle-ink: #bccbe6;
    --shadow: none;
  }
  :root:not([data-theme="light"]) .primary, :root:not([data-theme="light"]) .primary:hover, :root:not([data-theme="light"]) .bubble.me, :root:not([data-theme="light"]) .views a.on { color: var(--navy-950); }
  :root:not([data-theme="light"]) .stat, :root:not([data-theme="light"]) .side-note, :root:not([data-theme="light"]) .chat-head, :root:not([data-theme="light"]) .navy-band { border: 1px solid var(--line); }
  :root:not([data-theme="light"]) .chip.top { border: 1px solid var(--navy-600); }
  :root:not([data-theme="light"]) .info, :root:not([data-theme="light"]) .disclosure { border-color: var(--line-strong); }
  :root:not([data-theme="light"]) .llm.anthropic, :root:not([data-theme="light"]) .llm.ollama, :root:not([data-theme="light"]) .llm.offline { background: var(--surface); border-color: var(--line); }
  :root:not([data-theme="light"]) input, :root:not([data-theme="light"]) textarea, :root:not([data-theme="light"]) select { background: var(--soft); }
  :root:not([data-theme="light"]) .report-doc th { background: var(--soft); }
  :root:not([data-theme="light"]) .stars label { color: #3a4c74; }
  :root:not([data-theme="light"]) ol.strip li.gone { background: var(--navy-800); }
}
:root[data-theme="dark"] {
    --bg: #050b1f; --surface: #0b1733; --soft: #102042; --line: #1e3260; --line-strong: #2e4780;
    --fg: #e8f4ff; --muted: #a8bddb;
    --accent: #4a9eff; --accent-strong: #7fb8ff; --accent-soft: #10264d; --accent-ink: #a8cdff;
    --ok: #4cd97b; --ok-soft: #0f3324; --ok-ink: #8eeab0;
    --warn: #33270a; --warn-ink: #f6cf7a; --warn-line: #6b5013;
    --danger: #ff8a7a; --danger-soft: #3d1410; --idle-soft: #172a52; --idle-ink: #bccbe6;
    --shadow: none;
}
:root[data-theme="dark"] .primary, :root[data-theme="dark"] .primary:hover, :root[data-theme="dark"] .bubble.me, :root[data-theme="dark"] .views a.on { color: var(--navy-950); }
:root[data-theme="dark"] .stat, :root[data-theme="dark"] .side-note, :root[data-theme="dark"] .chat-head, :root[data-theme="dark"] .navy-band { border: 1px solid var(--line); }
:root[data-theme="dark"] .chip.top { border: 1px solid var(--navy-600); }
:root[data-theme="dark"] .info, :root[data-theme="dark"] .disclosure { border-color: var(--line-strong); }
:root[data-theme="dark"] .llm.anthropic, :root[data-theme="dark"] .llm.ollama, :root[data-theme="dark"] .llm.offline { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] input, :root[data-theme="dark"] textarea, :root[data-theme="dark"] select { background: var(--soft); }
:root[data-theme="dark"] .report-doc th { background: var(--soft); }
:root[data-theme="dark"] .stars label { color: #3a4c74; }
:root[data-theme="dark"] ol.strip li.gone { background: var(--navy-800); }
.theme-toggle { color: var(--on-navy-muted); font-size: .85rem; }

/* People: the table on a laptop, one card per person on a phone */
.people-cards { display: none; gap: .8rem; }
@media (max-width: 700px) {
  .people-table, .table-help { display: none; } .people-cards { display: grid; }
  .person-card { display: grid; gap: .5rem; } .person-card .row { margin: .2rem 0 0; }
  .person-parts { display: grid; gap: .35rem; margin-top: .4rem; } .person-parts .choice { display: flex; gap: .5rem; align-items: center; }
}

/* Ask beside the report: a button in the corner opens a panel on the right; a full-height sheet on a phone */
details.ask-drawer > summary { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 20; list-style: none; box-shadow: 0 6px 20px rgba(4, 9, 30, .25); margin: 0; }
details.ask-drawer > summary::-webkit-details-marker { display: none; }
details.ask-drawer[open] > summary { bottom: auto; top: 1rem; right: 1rem; }
.ask-drawer-body { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 15; overflow-y: auto;
  background: var(--bg); border-left: 1px solid var(--line); padding: 4.2rem 1.2rem 1.2rem; box-shadow: -10px 0 30px rgba(4, 9, 30, .18); }
.ask-drawer-body .starters { grid-template-columns: 1fr; }
@media (min-width: 1300px) { body:has(details.ask-drawer[open]) main { margin-right: 460px; } }

/* admin pages: wider, cards in a grid, people as rows with real buttons */
main:has(table.orgs), main:has(.admin-grid) { max-width: 1320px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1.2rem; align-items: start; margin-top: 1rem; }
.admin-grid .card h2, #activity .card h2 { margin-top: .2rem; }
#activity { display: grid; gap: 1.2rem; }
ul.people-admin li { display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: .5rem 0; border-bottom: 1px solid var(--line); }
ul.people-admin .row { margin: 0; }
button.small, .button.small { min-height: 36px; padding: .3rem .8rem; font-size: .88rem; }
.feedback-text { white-space: pre-wrap; margin: .4rem 0 0; }
.crumb { margin: 0 0 .2rem; font-size: .9rem; }
.ai-backend p { margin: .3rem 0 0; }
.split-main > .card + .card { margin-top: 1rem; }

.quick-filters { display: flex; gap: .4rem; margin: 1rem 0 .6rem; }
.quick-filters a { padding: .35rem .9rem; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: var(--fg); text-decoration: none; font-size: .9rem; font-weight: 500; }
.quick-filters a:hover { border-color: var(--accent); }
.quick-filters a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .quick-filters a.on { color: var(--navy-950); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quick-filters a.on { color: var(--navy-950); } }
.frozen-banner { margin: 0; border-radius: 0; border-left: 0; border-right: 0; justify-content: center; }
section.card.maintenance.needs { border: 2px solid var(--warn-fill); }

/* the public landing page */
main:has(.landing-hero) { max-width: 1180px; }
.landing-hero { display: flex; gap: 2rem; align-items: center; justify-content: space-between; padding: 3rem 2.6rem; margin-top: .4rem; }
.landing-hero .hero-text { max-width: 640px; position: relative; }
.landing-hero h1 { font-size: 2.9rem; line-height: 1.04; margin: .5rem 0 1rem; }
.landing-hero .eyebrow em { font-style: normal; color: var(--on-navy); }
.landing-hero .hero-mark { position: relative; color: var(--on-navy); flex-shrink: 0; }
.landing-hero .row { margin-top: 1.4rem; }
.small-print-on-navy { font-size: .85rem; color: var(--on-navy-muted); margin: .8rem 0 0; }
.landing-section { margin: 3.4rem 0 0; }
.landing-section h2 { font-size: 1.9rem; margin: .3rem 0 .6rem; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.pillar { display: flex; flex-direction: column; gap: .5rem; }
.pillar-figure { width: 100%; height: auto; max-height: 150px; background: var(--soft); border-radius: var(--radius-sm); padding: .6rem; }
.pillar h3 { font-size: 1.3rem; margin: .4rem 0 0; text-transform: uppercase; letter-spacing: .02em; }
.pillar p { margin: 0; color: var(--muted); }
.venn-labels { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.k-blue { color: var(--accent); } .k-green { color: var(--ok); } .k-cyan { color: #1b7fa8; }
ol.staircase { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; }
ol.staircase li { border-radius: var(--radius) var(--radius) 0 0; padding: .9rem .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-bottom: 4px solid var(--idle-soft); }
ol.staircase .n { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; }
ol.staircase strong { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
ol.staircase .d { font-size: .86rem; color: var(--muted); }
ol.staircase .step-1 { min-height: 150px; } ol.staircase .step-2 { min-height: 185px; border-bottom-color: var(--helix-blue); }
ol.staircase .step-3 { min-height: 220px; border-bottom-color: var(--helix-blue); } ol.staircase .step-4 { min-height: 255px; border-bottom-color: var(--helix-green); }
ol.staircase .step-5 { min-height: 290px; background: var(--navy-900); color: var(--on-navy); border-color: var(--navy-900); border-bottom-color: var(--helix-green); }
ol.staircase .step-5 .d { color: var(--on-navy-muted); }
@media (max-width: 760px) { ol.staircase { grid-template-columns: 1fr; } ol.staircase li { min-height: 0 !important; border-radius: var(--radius); } }
.dim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .8rem; margin-top: 1rem; }
.dim { display: flex; gap: .8rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.dim svg.icon { color: var(--accent); margin-top: .1rem; }
.dim p { margin: .2rem 0 0; font-size: .88rem; color: var(--muted); }
ol.method { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; counter-reset: none; }
ol.method li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; border-top: 4px solid var(--helix-blue); }
ol.method li:last-child { border-top-color: var(--helix-green); }
ol.method .n { display: inline-flex; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy-950); color: var(--cyan); font-family: var(--display); font-weight: 700; align-items: center; justify-content: center; margin-right: .5rem; }
ol.method strong { font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; }
ol.method p { margin: .5rem 0 0; font-size: .9rem; color: var(--muted); }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.benefits h3 { margin: 0 0 .3rem; font-size: 1.15rem; } .benefits p { margin: 0; color: var(--muted); font-size: .93rem; }
.contact-section { margin-bottom: 2rem; }
.contact-form .row.two > label { flex: 1 1 14rem; } .contact-form input, .contact-form textarea { width: 100%; }
.contact-form label { display: grid; gap: .3rem; font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) { .landing-hero { flex-direction: column; align-items: flex-start; padding: 2rem 1.4rem; } .landing-hero h1 { font-size: 2.1rem; } .landing-hero .hero-mark { display: none; } }
.landing-hero .helix { width: 52%; opacity: .55; }

a.who { color: var(--on-navy-muted); text-decoration: none; } a.who:hover { color: #fff; text-decoration: underline; }
.small-print-on-navy a { color: var(--cyan); }
.contact-form select { width: 100%; }
td.note-cell { max-width: 22rem; font-size: .88rem; color: var(--muted); }

/* Public page: About section and footer (about.yaml) */
.about-person { display: flex; gap: 1.2rem; align-items: flex-start; }
.about-person h3 { margin: 0 0 .2rem; }
.about-role { color: var(--muted, inherit); margin: 0 0 .8rem; }
.about-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem .9rem; margin: .7rem 0 0; font-size: .92rem; }
.facts dt { color: var(--on-navy-muted); }
.facts dd { margin: 0; color: var(--on-navy); overflow-wrap: anywhere; }
.facts a { color: var(--on-navy); }
.site-footer { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 3.4rem 0 1.5rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted, inherit); }
@media (max-width: 560px) { .about-person { flex-direction: column; } }

/* The About page */
.about-hero { display: flex; gap: 1.6rem; align-items: center; }
.about-hero .about-photo { width: 128px; height: 128px; border: 3px solid var(--helix-blue); }
.about-hero .about-role { color: var(--on-navy-muted); } .about-hero .about-role em { color: var(--on-navy); }
.about-hero .button { background: transparent; color: var(--on-navy); border-color: var(--helix-blue); }
.about-body h2 { margin: 2rem 0 .6rem; font-size: 1.35rem; }
ol.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line); }
ol.timeline > li { position: relative; margin: 0 0 1.3rem; }
ol.timeline > li::before { content: ""; position: absolute; left: -1.53rem; top: .35rem; width: .7rem; height: .7rem;
  border-radius: 50%; background: var(--helix-blue); }
ol.timeline > li:first-child::before { background: var(--helix-green); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 0; }
.tags .chip { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .55rem; }
.chip.tag-practicing { background: var(--accent-soft); color: var(--accent-ink); }
.chip.tag-consulting { background: var(--ok-soft); color: var(--ok-ink); }
.timeline-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; }
ol.timeline ul { margin: .4rem 0 0; padding-left: 1.1rem; }
ul.ref-list { list-style: none; padding: 0; margin: 0; }
ul.ref-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.ref-meta { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
ul.book-list { list-style: none; padding: 0; margin: .6rem 0 .4rem; }
ul.book-list li { margin: 0 0 .7rem; } ul.book-list a { color: var(--on-navy); }
ul.book-list span { display: block; font-size: .85rem; color: var(--on-navy-muted); }
.side-note + .side-note { margin-top: 1rem; }
@media (max-width: 560px) { .about-hero { flex-direction: column; align-items: flex-start; } }

/* The public page: the byline, the report placeholder, questions; the privacy notice */
.hero-by { color: var(--on-navy-muted); font-size: .92rem; margin: 1rem 0 0; }
.hero-by a { color: var(--on-navy); }
.report-placeholder { margin-top: 1rem; padding: 2.2rem 1rem; text-align: center; border: 2px dashed var(--line);
  border-radius: var(--radius); color: var(--muted); }
.faq { max-width: 52rem; margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--line); padding: .3rem 0; }
.faq summary { font-weight: 600; color: var(--fg); margin: .6rem 0; }
.faq details p { margin: .2rem 0 .9rem; color: var(--muted); }
.legal { max-width: 46rem; } .legal h2 { margin: 1.8rem 0 .4rem; font-size: 1.2rem; }
.legal table { width: 100%; }
.landing-hero h1 .cyan { color: var(--cyan); }
ol.hero-cycle { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1rem 0 1.2rem; }
ol.hero-cycle li { font-size: .8rem; font-weight: 600; color: var(--on-navy); border: 1px solid var(--helix-blue);
  border-radius: var(--radius-pill); padding: .2rem .7rem; }
ol.hero-cycle li:not(:last-child)::after { content: "→"; margin-left: .55rem; color: var(--helix-green); }
ol.hero-cycle li:last-child { border-color: var(--helix-green); }
ol.hero-cycle li:last-child::after { content: "↻"; margin-left: .45rem; color: var(--helix-green); }

/* The demo (a read-only organization): a banner, and no forms but Ask and feedback (the server refuses the rest) */
.demo-banner { width: calc(100% - 32px); max-width: calc(1040px - 32px); margin: 1rem auto 0; }
body.demo main form[method="post"]:not(.demo-ok), body.demo main [hx-post]:not(.demo-ok) { display: none; }

/* Pricing: the tiers side by side */
table.pricing { width: 100%; border-collapse: collapse; }
table.pricing th, table.pricing td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.pricing thead th { background: var(--soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.pricing td.tier { font-weight: 700; white-space: nowrap; }
table.pricing td.price { white-space: nowrap; color: var(--muted); }
table.pricing td.num { white-space: nowrap; }

/* The header: the brand, the site's pages next to it, the person (or sign in and join) at the end */
.site-links { display: flex; gap: 1.4rem; align-items: center; margin-left: 1.2rem; }
.site-links a { color: var(--on-navy); text-decoration: none; font-size: .92rem; font-weight: 500; padding: .35rem 0; border-top: 2px solid transparent; border-bottom: 2px solid transparent; }
.site-links a:hover { color: #fff; }
.site-links a[aria-current="page"] { color: #fff; border-bottom-color: var(--helix-blue); }
.top-end { display: flex; gap: 1.1rem; align-items: center; margin-left: auto; }
.top-end .join { min-height: 36px; padding: .35rem .9rem; font-size: .88rem; }
.top a.who[aria-current="page"] { color: #fff; }
@media (max-width: 980px) { .top .brand .long, .top-end .theme-toggle { display: none; } .site-links { margin-left: .4rem; } }
@media (max-width: 640px) { .site-links { order: 3; width: 100%; margin-left: 0; gap: 1.1rem; } .top-end { gap: .8rem; } }
@media (max-width: 420px) { .top-end .join { display: none; } }

/* Private mode: the one page people not signed in see */
.private-page main { max-width: 28rem; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
