/* Brainchild — "thinking room". Hand-written, no dependencies. Light, warm, calm. */
:root {
  --paper: #f6f1ea;
  --paper-2: #efe7dc;
  --surface: #fffdf9;
  --ink: #2b2420;
  --ink-2: #594f47;
  --ink-3: #6f645a;
  --line: #e6dccf;
  --line-2: #d9ccbc;
  --accent: #b5502a;
  --accent-ink: #9a4220;
  --accent-soft: #f6e2d4;
  --accent-wash: #fbf0e8;
  --think: #6a5a8c;
  --think-soft: #eee9f6;
  --ok: #3f7a4a;
  --warn-bg: #fbf3dc;
  --warn-line: #ecdcaa;
  --danger: #a3341f;

  --k-screen: #d08a5b; --k-flow: #9a7bb5; --k-feature: #6f9c86; --k-idea: #d4a53c;
  --k-decision: #5f8f5a; --k-question: #c26d8a; --k-step: #b9a99a;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", Georgia, ui-serif, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(70, 45, 25, .05), 0 1px 1px rgba(70, 45, 25, .03);
  --shadow-2: 0 1px 2px rgba(70, 45, 25, .05), 0 8px 22px -10px rgba(70, 45, 25, .22);
  --shadow-3: 0 2px 4px rgba(70, 45, 25, .06), 0 18px 40px -16px rgba(70, 45, 25, .30);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent);

  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 10px; }

/* ---------- shell ---------- */
.app { display: flex; flex-direction: column; height: 100dvh; max-width: 1360px; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.wordmark { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.project-title { color: var(--ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 10px; border-left: 1px solid var(--line-2); margin-left: 2px; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent-ink); background: var(--accent-wash); padding: 4px 10px; border-radius: 999px; }
.conn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.role-chip { font-size: 13px; color: var(--ink-2); background: var(--paper-2); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ghost-btn { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 6px 12px; min-height: 36px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.ghost-btn:hover { background: var(--paper-2); border-color: var(--ink-3); }

.banner { margin: 0 16px 8px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: #5a4a1c; padding: 8px 12px; border-radius: 12px; font-size: 14px; display: flex; gap: 8px; align-items: baseline; }
.banner b { font-weight: 600; flex: none; }

/* ---------- phone tabs ---------- */
.tabs { display: flex; gap: 4px; margin: 0 16px 10px; padding: 4px; background: var(--paper-2); border-radius: 14px; }
.tab { flex: 1; border: 0; background: transparent; padding: 9px 12px; min-height: 42px; border-radius: 11px; font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s var(--ease), color .2s, box-shadow .2s; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; animation: pop .35s var(--ease); }

.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.app[data-tab="chat"] .panel, .app[data-tab="board"] .chat { display: none; }
.chat, .panel { animation: fade-in .25s var(--ease); }

/* ---------- chat ---------- */
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.transcript-wrap { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 12px; scroll-behavior: smooth; overscroll-behavior: contain; }
.transcript { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.turn { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; animation: rise .35s var(--ease) both; }
.turn-me { align-self: flex-end; align-items: flex-end; }
.turn-who { font-size: 12px; font-weight: 500; color: var(--ink-3); margin: 0 6px 4px; letter-spacing: .01em; }
.turn-text { margin: 0; padding: 10px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.turn-talker .turn-text { border-top-left-radius: 6px; }
.turn-me .turn-text { background: var(--accent); border-color: var(--accent); color: #fff; border-top-right-radius: 6px; box-shadow: 0 6px 16px -10px rgba(181, 80, 42, .7); }
.turn-other .turn-text { background: var(--paper-2); border-color: var(--line); }
.turn.is-private .turn-text { background: var(--think-soft); border: 1px dashed #c9bde0; color: #463b5e; box-shadow: none; }
.turn.is-private.turn-me .turn-text { border-top-right-radius: 6px; }
.turn-text.is-redacted { font-style: italic; color: var(--think); }
.chat-hello { text-wrap: balance; font-family: var(--serif); font-size: 28px; line-height: 1.2; margin: 18px 0 8px; letter-spacing: -.01em; }
.chat-sub { margin: 0 0 18px; color: var(--ink-2); max-width: 34em; }
.chat-empty { animation: rise .5s var(--ease) both; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.starter { border: 1px solid var(--line-2); background: var(--surface); padding: 8px 14px; min-height: 40px; border-radius: 999px; color: var(--ink-2); font-size: 14px; cursor: pointer; text-align: left; transition: transform .15s var(--ease), border-color .15s, background .15s, color .15s; }
.starter:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }
.starter:active { transform: scale(.97); }

.typing { margin-top: 14px; animation: rise .3s var(--ease) both; }
.typing .turn-text { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: .35; animation: bounce 1.2s ease-in-out infinite; }
.typing .dot:nth-child(2) { animation-delay: .15s; } .typing .dot:nth-child(3) { animation-delay: .3s; }

.notice { margin: 0 16px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow-2); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; animation: rise .45s var(--ease) both; }
.notice-icon { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--think-soft); color: var(--think); display: grid; place-items: center; }
.notice-icon svg { width: 18px; height: 18px; }
.notice p { margin: 0; font-size: 14px; color: var(--ink-2); }
.notice p b { color: var(--ink); }
.notice-ok { justify-self: start; margin-top: 8px; border: 0; background: var(--ink); color: #fff; padding: 8px 16px; min-height: 40px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; transition: transform .15s var(--ease), background .15s; }
.notice-ok:hover { background: #45392f; }
.notice-ok:active { transform: scale(.97); }

.composer { padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); }
.composer-box { display: flex; align-items: flex-end; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: 6px 6px 6px 16px; box-shadow: var(--shadow-2); transition: border-color .2s, box-shadow .2s, background .2s; }
.composer-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-2); }
.input { flex: 1; resize: none; border: 0; background: transparent; font-size: 16px; line-height: 1.45; padding: 9px 0; min-height: 42px; max-height: 160px; }
.input:focus, .input:focus-visible { outline: none; box-shadow: none; }
.input::placeholder { color: #776b60; }
.send { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .15s var(--ease), background .15s, opacity .15s; }
.send svg { width: 20px; height: 20px; }
.send:hover { background: var(--accent-ink); }
.send:active { transform: scale(.92); }
.send:disabled { opacity: .45; cursor: default; transform: none; }
.send:focus-visible { border-radius: 50%; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 6px 0; flex-wrap: wrap; }
.think { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; min-height: 36px; user-select: none; }
.think input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.think input:checked + .switch { background: var(--think); }
.think input:checked + .switch::after { transform: translateX(14px); }
.think input:focus-visible + .switch { box-shadow: var(--focus); }
.composer.is-private .composer-box { background: var(--think-soft); border-color: #c9bde0; border-style: dashed; }
.composer.is-private .composer-box:focus-within { box-shadow: 0 0 0 4px #e2dbef, var(--shadow-2); border-color: var(--think); }
.composer.is-private .send { background: var(--think); }
.composer.is-private .think { color: var(--think); font-weight: 500; }
.composer-hint { margin: 0; font-size: 13px; color: var(--danger); min-height: 1em; text-align: right; flex: 1 1 auto; }

/* ---------- card panel ---------- */
.panel { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 32px; overscroll-behavior: contain; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 0 14px; position: sticky; top: 0; z-index: 2; background: var(--paper); }
.panel-head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; background: linear-gradient(var(--paper), rgba(246, 241, 234, 0)); pointer-events: none; }
.panel-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.panel-title { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.2; }
.seg { display: inline-flex; padding: 3px; background: var(--paper-2); border-radius: 999px; }
.seg-btn { border: 0; background: transparent; padding: 6px 14px; min-height: 34px; font-size: 14px; color: var(--ink-2); cursor: pointer; border-radius: 999px; transition: background .2s var(--ease), color .2s, box-shadow .2s; }
.seg-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); font-weight: 500; }

.scribe { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 4px 11px 4px 9px; border-radius: 999px; max-width: 100%; animation: fade-in .3s var(--ease); }
.scribe::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.scribe-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.scribe-thinking { color: var(--accent-ink); background: var(--accent-wash); border-color: var(--accent-soft); }
.scribe-thinking::before { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.scribe-error, .scribe-capped { color: var(--danger); background: #fbebe6; border-color: #f0cfc4; }
.scribe-error::before, .scribe-capped::before { background: var(--danger); }
.scribe.is-leaving { opacity: 0; transition: opacity .6s; }

.cards { display: flex; flex-direction: column; gap: 26px; }
.group { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: start; }
/* Full-width cards: these per-kind rules are what a partner page has always had, and they are
   the whole layout for a partner board -- a partner mode definition marks no kind `fullWidth`,
   so a partner card never carries `is-full` and this DOM is byte-identical to before the vocab
   move. `is-full` is the vocab-driven version (from /api/me `vocab.kinds[].fullWidth`) and is how
   a mode spans the row for a kind these rules do not cover (solo's `finding`), with no CSS edit. */
.group > .card.kind-flow, .group > .card.kind-question, .group > .card.kind-decision, .group > .card.kind-idea, .group > .card.is-full { grid-column: 1 / -1; }
.group-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.group-count { font-weight: 500; letter-spacing: 0; color: var(--ink-3); background: var(--paper-2); border-radius: 999px; padding: 0 8px; font-size: 12px; line-height: 20px; }
details.group-muted > summary { list-style: none; cursor: pointer; padding: 6px 0; border-radius: 8px; }
details.group-muted > summary::-webkit-details-marker { display: none; }
details.group-muted > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-left: 2px; transition: transform .2s var(--ease); }
details.group-muted[open] > summary::after { transform: rotate(45deg); }
details.group-muted { display: block; }
details.group-muted[open] > .card { margin-top: 10px; }
details.group-muted .card { background: var(--paper); box-shadow: none; }

.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 12px; box-shadow: var(--shadow-2); overflow-wrap: anywhere; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.card-head { display: flex; align-items: center; gap: 8px; padding-right: 64px; min-height: 22px; }
.kind-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; background: var(--k, var(--k-step)); }
.kind-screen { --k: var(--k-screen); } .kind-flow { --k: var(--k-flow); } .kind-feature { --k: var(--k-feature); }
.kind-idea { --k: var(--k-idea); } .kind-decision { --k: var(--k-decision); } .kind-question { --k: var(--k-question); }
.tag { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.status { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.status-decided { background: #e3efdf; color: #2f5d37; }
.status-maybe { background: #f8edcd; color: #6b5414; }
.status-parked { background: var(--paper-2); color: var(--ink-3); }
.card-title { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.3; margin: 6px 0 2px; letter-spacing: -.005em; }
.card-body { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); }
.card-date { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.card-park { position: absolute; top: 10px; right: 10px; border: 1px solid transparent; background: transparent; color: var(--ink-3); font-size: 13px; padding: 4px 10px; min-height: 32px; cursor: pointer; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; transition: background .15s, color .15s, border-color .15s, opacity .2s; }
.card-park svg { width: 14px; height: 14px; }
.card-park:hover { background: var(--paper-2); color: var(--ink); border-color: var(--line-2); }
.card-park:focus-visible { border-radius: 999px; }
@media (hover: hover) { .card .card-park { opacity: .8; } .card:hover .card-park, .card .card-park:focus-visible { opacity: 1; } }

.card.kind-question { background: linear-gradient(var(--surface), var(--surface)) padding-box; border-style: solid; }
.card.kind-question .card-title::before { content: "?"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: #f6e3ea; color: #8c3a58; font-family: var(--sans); font-size: 13px; font-weight: 700; vertical-align: 2px; }
.card.kind-decision { background: linear-gradient(135deg, #f7faf3, var(--surface) 60%); }

.steps { list-style: none; margin: 12px 0 2px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; counter-reset: step; }
.steps li { counter-increment: step; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ece5f3; color: #5b4a78; font-size: 12px; font-weight: 600; flex: none; }
.steps li + li { margin-left: 18px; position: relative; }
.steps li + li::after { content: ""; position: absolute; left: -18px; top: 50%; width: 12px; border-top: 1.5px solid var(--line-2); }
.step-ref { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.children { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 4px; }
.children li::before { content: "↳ "; color: var(--ink-3); }
.children-label { margin: 12px 0 0; font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.children-label + .children { margin-top: 4px; }
.children li.none { color: var(--ink-3); }
.children li.none::before { content: none; }

.is-fresh { animation: settle .6s var(--ease) both, glow 2.6s ease-out .1s; }
.steps li.is-fresh { animation: pop .45s var(--ease) both; }

/* ---------- app layout (card organization) ----------
   Used only when the mode presentation says `layout: "app"` (partner and solo). The rules
   above are the generic grouped board (decision, loops) and stay exactly as they were; this
   block styles the app board, which lives inside `.board`, and never matches the grouped DOM. */
.cards { container-type: inline-size; }
.cards:has(> .board) { gap: 18px; }
.kind-step { --k: var(--k-step); }
/* One workspace: the app on the left (journeys, screens, features), the state of the thinking on
   the right (open, loose, settled). Certainty reads the same everywhere:
   solid = settled, dashed = maybe, faint = parked. */

/* pulse: how far along the idea is */
.pulse { display: grid; gap: 8px; }
.pulse-bar { display: flex; gap: 3px; height: 6px; }
.pulse-seg { border-radius: 999px; min-width: 6px; transition: flex-grow .5s var(--ease); }
.seg-settled { --s: var(--k-decision); } .seg-shaping { --s: var(--ink-3); } .seg-maybe { --s: var(--k-idea); } .seg-open { --s: var(--k-question); }
.pulse-seg { background: var(--s); }
.pulse-seg.seg-shaping { background: var(--line-2); }
.pulse-seg.seg-maybe { background: repeating-linear-gradient(-45deg, var(--k-idea) 0 4px, #e9cf8f 4px 7px); }
.pulse-legend { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.pulse-item { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0; font-size: 13px; color: inherit; }
button.pulse-item { cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
button.pulse-item:hover { color: var(--ink); text-decoration-color: currentColor; }
.pulse-item b { font-weight: 600; color: var(--ink); }
.pulse-swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--s); }
.seg-shaping .pulse-swatch { background: var(--line-2); }

/* board: one column on phones, app + thinking side by side when there's room. The board is a
   query container so a split can be measured against the board itself, not the page. It is
   *named* `board` on purpose: the name keeps a shape inside a column (the journey track, below)
   from reaching past that column and querying the page instead. */
.board { display: grid; gap: 28px; container-type: inline-size; container-name: board; }
.col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
/* the main column is a query container too, and is named `main`: the compare columns size
   themselves against it, not against the page, so options sit side by side at the main column's
   width and stack only when that column itself gets narrow */
.col-main { container-type: inline-size; container-name: main; }
/* one column: the spine, then the recipe's shapes, then the thinking rail */
.board > [data-shape="spine"] { order: -1; }
.board > .col-main { order: 0; }
.board > .col-side { order: 1; }
@container (min-width: 760px) {
  .board.is-split { grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr); gap: 28px; align-items: start; }
  .board.is-split .col-side { position: relative; padding-left: 24px; }
  .board.is-split .col-side::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 0; border-left: 1px solid var(--line); }
}
/* the spine hangs the whole board: it spans both columns when there are two */
@container (min-width: 760px) {
  .board.is-split > [data-shape="spine"] { grid-column: 1 / -1; }
}
/* no rail to make room for: the shapes keep the whole width instead of a stranded narrow column */
@container (min-width: 760px) {
  .board:not(.is-split) > .col-main { grid-column: 1 / -1; }
}

.zone { scroll-margin-top: 72px; }
.zone.is-new { animation: rise .45s var(--ease) both; }
.zone-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin-bottom: 10px; }
.zone-title { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.005em; }
.zone-count { font-family: var(--sans); font-weight: 500; color: var(--ink-3); background: var(--paper-2); border-radius: 999px; padding: 0 8px; font-size: 12px; line-height: 20px; }
/* a to-do's own progress sits beside the heading, not inside the generic count bubble */
.zone-progress { font-size: 12.5px; color: var(--ink-3); }
.zone-sub { margin: 0; font-size: 13px; color: var(--ink-3); }

/* shared bits */
.eyebrow-k { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.glyph { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; color: var(--k); background: color-mix(in srgb, var(--k) 14%, var(--surface)); }
.glyph svg { width: 16px; height: 16px; }
.glyph-dot { width: 9px; height: 9px; border-radius: 3px; background: currentColor; opacity: .75; }
.pill { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.pill svg { width: 12px; height: 12px; }
.pill-settled { background: #e3efdf; color: #2f5d37; }
.pill-maybe { background: #f8edcd; color: #6b5414; }
.meta { font-size: 12.5px; color: var(--ink-3); }
.row-main { flex: 1; min-width: 0; }
.row-body { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }

.rels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.rels-label { font-size: 12px; color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 2px 10px 2px 8px; min-height: 26px; font-size: 12.5px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--k); color: var(--ink); background: color-mix(in srgb, var(--k) 8%, var(--surface)); }
.chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.chip.is-parked { opacity: .6; text-decoration: line-through; }
.chip svg { width: 13px; height: 13px; flex: none; color: var(--k); }
.chip-dot { width: 7px; height: 7px; border-radius: 2px; flex: none; background: var(--k, var(--k-step)); }
.chip:focus-visible { border-radius: 999px; }

.marks { display: flex; flex-wrap: wrap; gap: 6px; }
.mark { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; padding: 2px 9px; min-height: 24px; font-size: 12px; font-weight: 500; cursor: pointer; }
.mark svg { width: 12px; height: 12px; }
.mark-flow { justify-self: start; background: #ece5f3; color: #5b4a78; }
.mark-flow:hover { background: #e2d8ee; }
.mark-open { background: #f6e3ea; color: #8c3a58; }
.mark-open:hover { background: #f0d2dd; }
.mark-settled { background: #e3efdf; color: #2f5d37; }
.mark-settled:hover { background: #d4e7cf; }
.mark:focus-visible { border-radius: 999px; }

.inside { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.inside li { display: flex; align-items: center; gap: 6px; }
.inside-kind { font-size: 11.5px; color: var(--ink-3); }

.park { position: absolute; top: 8px; right: 8px; border: 1px solid transparent; background: transparent; color: var(--ink-3); font-size: 12.5px; padding: 3px 8px; min-height: 30px; cursor: pointer; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; transition: background .15s, color .15s, border-color .15s, opacity .2s; }
.park svg { width: 14px; height: 14px; }
.park .park-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.park:hover { background: var(--paper-2); color: var(--ink); border-color: var(--line-2); }
.park:focus-visible { border-radius: 999px; }
@media (hover: hover) {
  .park { opacity: 0; }
  [data-id]:hover > .park, .park:focus-visible { opacity: 1; }
  .park:hover .park-label { position: static; width: auto; height: auto; clip: auto; }
}

/* certainty, everywhere */
.is-maybe { border-style: dashed !important; }
.is-settled.journey, .is-settled.tile { border-color: color-mix(in srgb, var(--k-decision) 35%, var(--line)); }

/* relations light up */
.board [data-id], .parked [data-id] { transition: box-shadow .2s var(--ease), border-color .2s, background .2s, opacity .2s, transform .2s var(--ease); }
.is-related { box-shadow: 0 0 0 2px color-mix(in srgb, var(--k) 45%, transparent), var(--shadow-1) !important; }
.is-pinged { animation: ping 1.6s var(--ease); }

/* journeys: a route with stops */
.journey { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 12px; box-shadow: var(--shadow-2); overflow-wrap: anywhere; }
.zone-flow { display: flex; flex-direction: column; gap: 12px; }
.zone-flow .zone-head { margin-bottom: -2px; }
/* Narrow (phone) route: one stop per row, and the track itself is the scroller if a stop is wider
   than the column, so the last step is reachable without the page ever growing sideways. */
.track { list-style: none; margin: 14px 0 4px; padding: 0 0 0 2px; display: grid; gap: 0; overflow-x: auto; scrollbar-width: thin; }
.stop { position: relative; display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; align-items: start; padding-bottom: 14px; border-radius: 10px; }
.stop:last-child { padding-bottom: 2px; }
.stop::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; border-left: 2px solid color-mix(in srgb, var(--k-flow) 45%, var(--line)); }
.stop:last-child::before { display: none; }
.journey.is-maybe .stop::before { border-left-style: dashed; }
.stop-n { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ece5f3; color: #5b4a78; font-size: 12.5px; font-weight: 600; position: relative; z-index: 1; }
.stop:last-child .stop-n { background: #5b4a78; color: #fff; }
.stop-title { font-weight: 500; padding-top: 2px; line-height: 1.35; }
.stop.is-maybe .stop-title { color: var(--ink-2); font-style: italic; }
.stop-screen { justify-self: start; margin-top: 5px; }
/* A Path stop's own children (a talk's examples) are the stop's detail, not stops of their
   own: small text under the label, unnumbered, wrapping inside the column. */
.stop-subs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; grid-column: 2; }
.stop-sub { font-size: 12px; color: var(--ink-3); background: var(--paper-2); border-radius: 999px; padding: 1px 8px; max-width: 100%; overflow-wrap: anywhere; }
.is-flat-route .stop-subs { grid-column: auto; }
.stop.is-fresh { animation: pop .45s var(--ease) both; }
.track-empty { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); font-style: italic; }
.route-when { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.stop-when { grid-column: 2; font-size: 12px; color: var(--ink-3); }
/* A Path stop's tag is the kind word as product copy ("Feeling", "What I do"), not a small UI
   label: it keeps its own case, so no caps and no tracking. It is scoped to `.stop > .tag` — the
   pill markup the Path renderer draws — and not to `.tag` in general, because a generic card's head
   tag (`.card-head > .tag`) shares that class and keeps its own small-label look. */
.stop > .tag { display: inline-block; justify-self: start; width: max-content; max-width: 100%; margin-top: 4px; font-size: 11px; letter-spacing: normal; text-transform: none; color: var(--ink-3); background: var(--paper-2); border-radius: 999px; padding: 1px 7px; }
.link-sets-off { grid-column: 2; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.loop-closing { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }

/* a ghost: the shape's own outline, in the recipe's own words, until cards arrive */
.ghost { margin: 0; padding: 18px 16px; font-size: 14px; color: var(--ink-3); font-style: italic;
  border: 1.5px dashed var(--line-2); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 55%, var(--paper)); }
.ghost-path { border-radius: var(--r); }
.ghost-piles { border-style: dashed; }
.ghost-compare { border-style: dashed; }
.ghost-todo { padding: 10px 16px; border-radius: var(--r); }
.ghost-keepers { border-left-width: 4px; border-left-style: solid; border-left-color: var(--line-2); border-radius: 0 var(--r) var(--r) 0; }

/* spine: the one line it hangs on, full width above the columns */
.zone[data-shape="spine"] { display: flex; flex-direction: column; gap: 10px; }
.spine-list { display: grid; gap: 10px; }
.spine-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink-2); border-radius: 0 var(--r) var(--r) 0; padding: 14px 44px 14px 18px; box-shadow: var(--shadow-1); overflow-wrap: anywhere; }
.spine-card .spine-rule { position: absolute; left: -4px; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px; background: var(--ink-2); }
.spine-card.is-maybe { border-style: solid; border-left-style: dashed; }
.spine-card.is-maybe .spine-rule { background: repeating-linear-gradient(to bottom, var(--ink-3) 0 6px, transparent 6px 11px); }
.spine-card.is-settled { border-left-color: var(--k-decision); }
.spine-card.is-settled .spine-rule { background: var(--k-decision); }
.spine-text { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.28; letter-spacing: -.01em; margin: 0; }
.spine-card .card-body { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.spine-card .rels, .spine-card .marks { margin-top: 8px; }
.spine-more > summary { margin-left: 2px; }

/* piles: columns of small cards, each pile with its own title */
.pile { display: grid; gap: 10px; margin-bottom: 4px; }
.pile + .pile { margin-top: 14px; }
.pile .group-title { font-size: 12.5px; }
.pile .card { box-shadow: var(--shadow-1); }
/* the piles of one shape sit in a grid: stacked in a narrow column, side by side once the column
   they live in is wide enough for two readable piles (same container the compare columns use) */
.pile-grid { display: grid; gap: 14px; align-items: start; }

/* compare: options side by side, criteria across the top */
.criteria { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.criterion { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.criterion .chip-dot { opacity: .7; }
.compare { display: grid; gap: 12px; align-items: start; }
/* one column per option, side by side across the main column; they stack only when the column
   they live in is too narrow for two readable columns, not because the page is a phone. The query
   names the container (`main`, on `.col-main`): a bare `@container .col-main (...)` is not valid
   container-query syntax, so the whole block used to be dropped and the options always stacked. */
@container main (min-width: 460px) {
  .compare { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
  /* the piles of a shape share that same one-equal-column-per-item grid */
  .pile-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .pile + .pile { margin-top: 0; }
}
.option { position: relative; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 40px 14px 16px; box-shadow: var(--shadow-2); overflow-wrap: anywhere; }
.option > .card-head { padding-right: 24px; }
.option > .card-title { font-size: 18px; margin: 4px 0 2px; }
.option > .card-body { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.pill-chosen { background: color-mix(in srgb, var(--k-decision) 18%, var(--surface)); border-color: color-mix(in srgb, var(--k-decision) 45%, var(--line)); color: #2f5d37; font-weight: 600; }
.sides { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.side { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; }
.side-mark { flex: none; width: 14px; text-align: center; font-weight: 700; }
.side-pro .side-mark { color: var(--ok); }
.side-con .side-mark { color: var(--danger); }
.side-pro .side-mark::before { content: "+"; }
.side-con .side-mark::before { content: "\2212"; }
.side.none { color: var(--ink-3); font-style: italic; }
.side.none .side-mark { display: none; }
.side.is-fresh { animation: pop .45s var(--ease) both; }
.option .inside, .option .rels, .option .marks { margin-top: 10px; }

/* to-do: a checklist you can actually tick; the box is disabled only while a tick is in flight */
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 6px 4px; }
.task { display: flex; align-items: flex-start; gap: 10px; padding: 8px 40px 8px 10px; position: relative; border-radius: var(--r-sm); }
.task + .task::after { content: ""; position: absolute; left: 36px; right: 10px; top: -1px; border-top: 1px solid var(--line); }
.task-box { flex: none; margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--k-decision); }
.task-box:disabled { opacity: .55; cursor: default; }
.task-main { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; min-width: 0; }
.task-text { font-size: 15px; line-height: 1.4; cursor: pointer; }
.task-box:disabled + .task-main .task-text { cursor: default; }
.task-when { font-size: 12px; color: var(--ink-3); margin-left: auto; text-align: right; }
.task-who.is-unowned { color: #6b5414; background: #f8edcd; border-radius: 999px; padding: 1px 7px; }
.task-when.is-overdue, .task-overdue { color: var(--danger); font-weight: 600; }
.task.is-done .task-text { text-decoration: line-through; text-decoration-color: var(--line-2); color: var(--ink-3); }
/* a keeper whose exact words were never saved is a note, not a quote: no serif, no claim */
.keeper.is-unverified { border-left-color: var(--line-2); background: color-mix(in srgb, var(--surface) 55%, var(--paper)); }
.keeper-note { margin: 0; font-size: 15px; line-height: 1.4; }
.keeper-flag { display: inline-block; margin-top: 8px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); border-radius: 999px; padding: 1px 7px; }

/* keepers: the exact words, never reworded */
.keepers { display: grid; gap: 12px; }
.keeper { position: relative; margin: 0; padding: 14px 40px 14px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--k-question); border-radius: 0 var(--r) var(--r) 0; box-shadow: var(--shadow-1); overflow-wrap: anywhere; }
.keeper-text { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.4; white-space: pre-wrap; }
.keeper-who { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.keeper .rels { margin-top: 8px; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
/* The route runs left to right once the *board* is wide enough. The query is named `board` so it
   still resolves when the journey sits inside `.col-main`, which is itself a container: an
   unnamed query skips the board, matches the page instead, and lays the track out vertically in a
   desktop window. */
@container board (min-width: 520px) {
  /* wide: the route runs left to right */
  /* Four ordinary stops must fit the board's own width, last one included: the column floor is a
     quarter of the track minus its gutters and padding, so a fourth stop is never pushed past the
     edge. Longer routes still scroll inside the track, and the trailing padding keeps the final
     stop's own edge visible rather than flush against the clip. */
  .track { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); overflow-x: auto; scroll-padding-inline-end: 12px; padding: 2px 12px 6px 2px; scrollbar-width: thin; }
  .stop { grid-template-columns: minmax(0, 1fr); row-gap: 6px; align-content: start; padding: 0 12px 0 0; min-width: 0; overflow-wrap: anywhere; }
  .stop:last-child { padding-right: 0; }
  .stop::before { left: 30px; right: 4px; top: 12px; bottom: auto; border-left: 0; border-top: 2px solid color-mix(in srgb, var(--k-flow) 45%, var(--line)); }
  .journey.is-maybe .stop::before { border-top-style: dashed; }
  .stop-n { grid-row: auto; }
  .stop-screen { margin-top: 0; }
  /* A stop's own words give way before the track does: a long label or chip wraps or
     ellipsises inside its column, so a fourth stop can never be pushed past the edge. */
  .stop-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .stop > .tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stop-subs { min-width: 0; }
}

/* screens: phone-shaped tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; min-height: 168px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 26px 14px 12px; box-shadow: var(--shadow-2); overflow-wrap: anywhere; }
.tile-bar { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 34px; height: 5px; border-radius: 999px; background: var(--paper-2); }
.tile.is-settled .tile-bar { background: color-mix(in srgb, var(--k-decision) 45%, var(--paper-2)); }
.tile .park { top: 2px; right: 4px; }
.tile .card-head { padding-right: 0; }
.tile-title { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.25; margin: 4px 0 2px; }
.tile-body { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tile-foot .rels, .tile-foot .marks { display: contents; }
.tile-foot .rels { margin-top: 0; }
.tile .chip { font-size: 12px; }

/* features: a spec list */
.spec, .asks, .timeline, .notes-board, .parked-list { list-style: none; margin: 0; padding: 0; }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.row { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 44px 12px 12px; border: 1px solid transparent; border-radius: var(--r); }
.row + .row::after { content: ""; position: absolute; left: 50px; right: 12px; top: -1px; border-top: 1px solid var(--line); }
.row-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.row-title { font-weight: 600; line-height: 1.35; }
.row.is-maybe { border-color: var(--line-2); }
.row.is-maybe .row-title { color: var(--ink-2); }
.row .marks { margin-top: 8px; }

/* open questions: what needs her next */
.asks { display: grid; gap: 8px; }
.ask { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 40px 12px 12px; background: #fcf4f6; border: 1px solid #f0d8e1; border-radius: var(--r); }
.ask-mark { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #f3d9e3; color: #8c3a58; font-weight: 700; font-size: 14px; }
.ask-title { margin: 2px 0 0; font-family: var(--serif); font-size: 16.5px; font-weight: 600; line-height: 1.35; }

/* loose ideas: little notes */
.notes-board { display: flex; flex-wrap: wrap; gap: 10px; }
.note { position: relative; flex: 1 1 150px; max-width: 100%; padding: 12px 34px 12px 14px; background: #fdf7e6; border: 1px solid #efe1b5; border-radius: 4px 14px 14px 14px; box-shadow: var(--shadow-1); }
.note:nth-child(3n+1) { rotate: -.6deg; } .note:nth-child(3n+2) { rotate: .5deg; }
.note .park { top: 4px; right: 2px; }
.note-title { margin: 0; font-family: var(--serif); font-size: 15.5px; line-height: 1.35; }
.note-body { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.note .marks { margin-top: 8px; }

/* settled: a timeline */
.timeline { position: relative; display: grid; gap: 2px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; border-left: 2px solid #d6e5d1; }
.beat { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 6px 36px 8px 0; border-radius: 12px; }
.beat-dot { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #e3efdf; color: #2f5d37; border: 2px solid var(--paper); font-size: 12px; font-weight: 700; }
.beat-dot svg { width: 13px; height: 13px; }
.beat.kind-question .beat-dot { background: #f1e6ea; color: #8c3a58; }
.beat-title { margin: 1px 0 0; font-size: 15px; font-weight: 500; line-height: 1.4; }
.beat-q { margin: 1px 0 0; font-size: 13px; color: var(--ink-3); }
.beat-q + .beat-title { margin-top: 0; }
.beat-when { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.beat .rels { margin-top: 5px; }
.beat .park { top: 2px; right: 0; }
.more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 4px 36px; font-size: 13px; color: var(--ink-3); border-radius: 8px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after, .parked > summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); }
.more[open] > summary::after, .parked[open] > summary::after { transform: rotate(45deg); }

/* parked: a quiet drawer */
.parked { border-top: 1px solid var(--line); padding-top: 12px; }
.parked > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-3); padding: 4px 0; border-radius: 8px; }
.parked > summary::-webkit-details-marker { display: none; }
.parked-list { display: grid; gap: 2px; margin-top: 8px; }
.parked-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px 6px 8px; border-radius: 10px; font-size: 14px; color: var(--ink-3); }
.parked-row .chip-dot { opacity: .6; }
.parked-title { flex: 1; min-width: 0; text-decoration: line-through; text-decoration-color: var(--line-2); }
.unpark { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 2px 10px; min-height: 30px; font-size: 12.5px; cursor: pointer; }
.unpark svg { width: 13px; height: 13px; }
.unpark:hover { border-color: var(--ink-3); color: var(--ink); }
.unpark:focus-visible { border-radius: 999px; }
/* The journey card keeps the `card` class for its DOM; it uses the app layout metrics, not the
   grouped-card ones (no hover lift, no phone padding/title shrink). */
.board .journey { padding: 14px 16px 12px; }
.board .journey:hover { transform: none; box-shadow: var(--shadow-2); }
.board .journey > .card-head { padding-right: 40px; }
.board .journey > .card-title { font-size: 19px; }
.board .journey > .card-body { margin-top: 2px; }
/* Other kinds a mode adds to the app layout (solo findings) are generic cards inside a zone. */
.zone-extra { display: grid; gap: 12px; }

.empty { text-align: center; padding: 40px 12px 24px; max-width: 30em; margin: 0 auto; animation: rise .5s var(--ease) both; }
.empty-art { position: relative; width: 150px; height: 110px; margin: 0 auto 18px; }
.empty-art span { position: absolute; width: 88px; height: 64px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.empty-art span::before { content: ""; position: absolute; left: 12px; top: 14px; width: 10px; height: 10px; border-radius: 3px; background: var(--k); }
.empty-art span::after { content: ""; position: absolute; left: 12px; top: 34px; width: 52px; height: 7px; border-radius: 4px; background: var(--paper-2); }
.empty-art span:nth-child(1) { --k: var(--k-screen); left: 0; top: 30px; transform: rotate(-7deg); }
.empty-art span:nth-child(2) { --k: var(--k-flow); left: 31px; top: 6px; transform: rotate(3deg); z-index: 1; animation: float 6s ease-in-out infinite; }
.empty-art span:nth-child(3) { --k: var(--k-question); left: 62px; top: 38px; transform: rotate(9deg); }
.empty-title { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; }
.empty-copy { margin: 0; color: var(--ink-2); }

/* ---------- notes view ---------- */
.notes { animation: fade-in .3s var(--ease); }
.notes-doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 22px 20px; max-width: 46em; overflow-wrap: anywhere; }
.notes-doc h2 { font-family: var(--serif); font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; }
.notes-doc h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 24px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.notes-doc .md-meta { color: var(--ink-3); font-size: 13px; margin: 0; }
.notes-doc ul, .notes-doc ol { margin: 0; padding-left: 20px; }
.notes-doc li { margin: 4px 0; color: var(--ink-2); }
.notes-doc li strong { color: var(--ink); font-weight: 600; }
.notes-doc .md-empty { color: var(--ink-3); font-style: italic; margin: 0; font-size: 14px; }
.notes-doc .md-date { color: var(--ink-3); font-size: 12.5px; }
.notes-doc pre.md { white-space: pre-wrap; font: 14px/1.55 var(--mono); margin: 0; }
.notes-foot { margin: 16px 0 0; }
.dl { display: inline-flex; align-items: center; gap: 8px; color: #fff; background: var(--ink); text-decoration: none; padding: 10px 18px; min-height: 44px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .15s, transform .15s var(--ease); }
.dl svg { width: 18px; height: 18px; }
.dl:hover { background: #45392f; }
.dl:active { transform: scale(.97); }
.dl:focus-visible { border-radius: 999px; }

/* ---------- static pages (landing, denied) ---------- */
.static-page { min-height: 100%; display: grid; place-items: center; padding: 32px 20px; background:
  radial-gradient(1200px 600px at 85% -10%, #f3dfcf 0%, rgba(243, 223, 207, 0) 60%),
  radial-gradient(900px 500px at -10% 110%, #ece4f1 0%, rgba(236, 228, 241, 0) 60%), var(--paper); }
.static-card { width: 100%; max-width: 520px; animation: rise .6s var(--ease) both; }
.static-card-small { max-width: 440px; text-align: left; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.static-title { text-wrap: balance; font-family: var(--serif); font-size: clamp(34px, 8vw, 48px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 600; }
.static-copy { font-size: 17px; color: var(--ink-2); margin: 0 0 22px; max-width: 32em; }
.how { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.how li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.how b { color: var(--ink); font-weight: 600; }
.how-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.static-invite { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); color: var(--ink); font-size: 15px; }
.hero-art { position: relative; height: 128px; margin-bottom: 18px; }
.mini { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); font-family: var(--serif); font-size: 16px; white-space: nowrap; }
.mini b { font-weight: 600; }
.mini-1 { left: 0; top: 40px; transform: rotate(-5deg); animation: rise .7s var(--ease) .1s both; }
.mini-2 { left: 34%; top: 0; transform: rotate(2deg); z-index: 1; animation: rise .7s var(--ease) .25s both; }
.mini-3 { left: 58%; top: 66px; transform: rotate(6deg); animation: rise .7s var(--ease) .4s both; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes settle { from { opacity: 0; translate: 0 12px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes glow { 0% { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-2); border-color: #e9b79a; } 100% { box-shadow: var(--shadow-2); border-color: var(--line); } }
@keyframes pop { 0% { scale: .6; opacity: 0; } 70% { scale: 1.08; opacity: 1; } 100% { scale: 1; } }
@keyframes ping { 0%, 100% { box-shadow: var(--shadow-1); } 25%, 60% { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 5px #e9b79a; } }
@keyframes pulse { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .35; scale: .8; } }
@keyframes bounce { 0%, 60%, 100% { translate: 0 0; opacity: .35; } 30% { translate: 0 -4px; opacity: .8; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .is-fresh { outline: 2px solid #e9b79a; outline-offset: 2px; }
  .card:hover { transform: none; }
}

/* ---------- small phones ---------- */
@media (max-width: 599px) {
  .topbar { padding: 10px 16px 8px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .project-title { display: none; }
  .role-chip { display: none !important; }
  .ghost-btn { min-height: 34px; padding: 5px 12px; font-size: 13px; }
  .banner { font-size: 13px; padding: 6px 10px; line-height: 1.4; }
  .panel-title { font-size: 22px; }
  .card { padding: 12px 14px 10px; }
  .card-head { padding-right: 36px; }
  .card-park { padding: 4px 7px; top: 7px; right: 7px; }
  .card-park .park-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .card.kind-flow .card-park .park-label, .card.kind-question .card-park .park-label, .card.kind-decision .card-park .park-label, .card.kind-idea .card-park .park-label { position: static; width: auto; height: auto; clip: auto; }
  .card-title { font-size: 18px; }
  .steps { flex-direction: column; align-items: flex-start; gap: 8px; }
  .steps li + li { margin-left: 0; }
  .steps li + li::after { left: 16px; top: -9px; width: 0; height: 8px; border-top: 0; border-left: 1.5px solid var(--line-2); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { min-height: 150px; padding: 24px 12px 10px; }
  .tile-title { font-size: 16px; }
}

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  .group { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .group > .card.kind-question, .group > .card.kind-decision, .group > .card.kind-idea { grid-column: auto; }
  /* `is-full` is a deliberate per-mode choice (solo's finding is a paragraph, not a tile), so it
     survives the phone reset. No partner kind reaches this rule: none is marked fullWidth. */
  .group > .card.is-full { grid-column: 1 / -1; }
  .notes-doc { padding: 32px 36px; }
}
@media (min-width: 900px) {
  .topbar { padding: 18px 28px 14px; }
  .banner { margin: 0 28px 12px; }
  .tabs { display: none; }
  .stage { display: grid; grid-template-columns: minmax(360px, 420px) 1fr; gap: 24px; padding: 0 28px 24px; }
  .app[data-tab] .chat { display: flex; animation: none; }
  .app[data-tab] .panel { display: block; animation: none; padding: 0 4px 32px; }
  .chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
  .chat .notice { margin: 14px 14px 4px; box-shadow: none; background: var(--paper); }
  .transcript-wrap { padding: 16px 18px 12px; }
  .turn-text { box-shadow: none; }
  .turn-talker .turn-text { background: var(--paper); }
  .composer { padding: 10px 14px 14px; border-top: 1px solid var(--line); background: var(--surface); }
  .composer-box { box-shadow: none; background: var(--paper); }
  .composer-box:focus-within { box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
  .panel-head { padding-top: 4px; }
  .panel-title { font-size: 28px; }
}
@media (min-width: 1200px) {
  .stage { grid-template-columns: 440px 1fr; gap: 32px; }
}
