:root {
  --stage: #0c0b0a;
  --stage-2: #141210;
  --stage-3: #1c1916;
  --line: #29251f;
  --ui: #f2ece2;
  --muted: #8f8778;
  --paper: #f5f0e6;
  --paper-2: #ebe4d6;
  --ink: #1b1915;
  --ink-soft: #6a6255;

  --lands: #e39a2c;
  --roast: #e0533d;
  --inside: #8b7cf0;
  --dies: #81796c;
  --famous: #3fb4a6;
  --good: #7fd38f;

  /* Apple's own faces through the system stack (SF Pro on macOS and iOS; Apple's licence keeps SF off
     the web as a file), Inter with optical sizes everywhere else. The room speaks in sans; the script in Courier. */
  --display: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --script: "Courier Prime", "Courier New", monospace;
  --nums: var(--sans);
  --keys: ui-monospace, "SF Mono", "Cascadia Mono", monospace;

  --r: 16px;
  /* One spring for arrivals, one ease for everything else. */
  --spring: linear(0, 0.006 1.4%, 0.024 2.9%, 0.055 4.5%, 0.104 6.4%, 0.203 9.6%, 0.444 16.5%, 0.55 19.6%, 0.646 22.8%, 0.731 26%, 0.799 29.1%, 0.858 32.3%, 0.906 35.5%, 0.945 38.8%, 0.976 42.5%, 0.998 46.3%, 1.013 50.6%, 1.022 55.6%, 1.022 64.1%, 1);
  --t-spring: 620ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --t-fast: 180ms;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--stage);
  color: var(--ui);
  font: 15px/1.5 var(--sans);
  font-optical-sizing: auto;
  letter-spacing: -0.006em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* The light follows the work: on the paper while you write, on the panel while you review. */
.spot {
  position: fixed; inset: -20vh 0 auto 0; height: 110vh; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 46% 58% at 40% 6%, rgba(227,154,44,.15), rgba(227,154,44,.045) 45%, transparent 72%);
  transform: translateX(var(--sx, 0px)); transition: transform 1.1s var(--spring);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
button { font: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible, select:focus-visible {
  outline: 2px solid var(--lands); outline-offset: 2px;
}
kbd { font: 11px var(--keys); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; margin: 0 1px; color: var(--ui); }

/* ---------- header ---------- */
.top, .controls, .stage, .foot { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.top { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 36px; gap: 16px; flex-wrap: wrap; }
.mark { font: 650 60px/0.95 var(--display); letter-spacing: -0.05em; margin: 0; }
.tag { margin: 10px 0 0; color: var(--muted); font: 400 17px/1.3 var(--display); letter-spacing: -0.01em; }
.topactions { display: flex; gap: 8px; }

.ghost { background: transparent; border: 1px solid var(--line); color: var(--ui); border-radius: 999px; padding: 8px 16px; font-size: 13px; transition: border-color .2s, background .2s; }
.ghost:hover { border-color: #4a443a; background: rgba(255,255,255,.02); }
.ghost.kbd { padding: 8px 12px; font: 12px var(--keys); }
.ghost.kbd span { margin-right: 1px; }
.ghost.dark { color: var(--ink); border-color: #d2c8b5; }
.ghost.dark:hover { border-color: var(--ink-soft); background: rgba(0,0,0,.02); }
.primary { background: var(--lands); color: #1a1206; border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 14px; letter-spacing: -0.01em;
  transition: transform .3s var(--spring), filter .2s; }
.primary:hover { filter: brightness(1.06); }
.primary:active { transform: scale(.97); }
.primary:disabled { opacity: .45; cursor: progress; }

/* ---------- controls ---------- */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.group.age { margin-left: auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--stage-3); border: 1px solid var(--line); font-size: 13.5px;
  transition: border-color .2s; }
.chip.focus { border-color: var(--lands); }
.chip .name { background: none; border: 0; padding: 0; }
.chip .x { background: none; border: 0; color: var(--muted); width: 20px; height: 20px; border-radius: 50%; line-height: 1; padding: 0; }
.chip .x:hover { background: var(--line); color: var(--ui); }
@starting-style { .chip { opacity: 0; transform: scale(.9); } }
.chip { transition: opacity .3s, transform .4s var(--spring), border-color .2s; }
.add input { background: transparent; border: 1px dashed var(--line); color: var(--ui); border-radius: 999px; padding: 7px 14px; width: 140px; font: inherit; font-size: 13.5px; }
.add input::placeholder { color: var(--muted); }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--stage-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { background: none; border: 0; color: var(--muted); padding: 6px 13px; border-radius: 999px; font-size: 13px; white-space: nowrap; transition: color .2s, background .2s; }
.seg button[aria-pressed="true"] { background: var(--stage-3); color: var(--ui); box-shadow: inset 0 0 0 1px var(--line); }
.modes button { font-weight: 550; }
.route { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; counter-reset: stop; }
.route li { display: inline-flex; align-items: center; gap: 6px; }
.route li + li::before { content: "→"; color: var(--muted); font-size: 12px; margin-right: 2px; }
.route .chip .n { font: 11px var(--nums); color: var(--muted); margin-right: 2px; }

/* ---------- stage ---------- */
.stage { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
/* A tour sheet needs a column per stop: the panel takes the wider share. */
.stage.touring { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); }
.paper {
  background: var(--paper); color: var(--ink); border-radius: var(--r); --focus: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.04);
  display: flex; flex-direction: column; min-height: 580px; view-transition-name: paper;
}
.paper-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 26px 0; flex-wrap: wrap; }
.slug { font: 700 13px var(--script); letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.samples { display: flex; gap: 6px; flex-wrap: wrap; }
.samples button { background: var(--paper-2); border: 0; color: var(--ink-soft); font-size: 12px; padding: 5px 11px; border-radius: 999px; }
.samples button:hover { color: var(--ink); }

#script, .read {
  flex: 1; width: 100%; margin: 0; padding: 18px 26px 22px; border: 0; background: transparent;
  color: var(--ink); font: 17px/1.85 var(--script); resize: none; min-height: 460px;
}
#script::placeholder { color: var(--ink-soft); }
#script { field-sizing: content; }
.paper :focus-visible { outline-color: var(--ink) !important; }
#script:focus { outline: none; }
.read { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 72vh; overflow-y: auto; }
.where { display: block; font: 600 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 6px 0 2px; }

.ref {
  cursor: pointer; border-radius: 3px; padding: 0 1px; position: relative;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px;
  text-decoration-color: #cbbfa9;
  /* Underlines ink in, in reading order, when scores land or the focus city changes. */
  transition: background .2s, text-decoration-color 420ms var(--ease) calc(min(var(--i, 0), 40) * 18ms);
}
@starting-style { .ref { text-decoration-color: transparent; } }
.ref.static { cursor: default; }
.ref.static:hover { background: none; }
.ref:hover, .ref.sel { background: rgba(227,154,44,.16); }
.ref.wait { animation: pulse 1.4s ease-in-out infinite; text-decoration-style: dotted; }
.ref.v-lands { text-decoration-color: var(--lands); }
.ref.v-roast { text-decoration-color: var(--roast); }
.ref.v-inside { text-decoration-color: var(--inside); }
.ref.v-dies { text-decoration-color: var(--dies); text-decoration-style: wavy; text-decoration-thickness: 2px; }
.ref.v-famous, .ref.v-global { text-decoration-color: var(--famous); }
.ref.v-unscored, .ref.v-outside { text-decoration-color: #b9ae99; text-decoration-style: dashed; text-decoration-thickness: 2px; }
.ref.swapped { background: rgba(227,154,44,.16); }
@keyframes pulse { 50% { text-decoration-color: #e5dccb; } }

/* suggestions written into the paper, like tracked changes */
.sug { cursor: pointer; border-radius: 3px; }
.sug .old { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--ink-soft); }
.sug .new { background: rgba(227,154,44,.22); color: var(--ink); border-radius: 3px; padding: 0 2px; margin-left: 3px; }
.sug.drop .old { text-decoration-color: var(--roast); }
.sug.active { background: rgba(227,154,44,.12); box-shadow: 0 2px 0 var(--lands); }
.cutline { text-decoration: line-through; text-decoration-color: var(--roast); color: var(--ink-soft); }

.paper-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px 18px 26px; border-top: 1px solid var(--paper-2); flex-wrap: wrap; }
.status { font-size: 13px; color: var(--ink-soft); }
.actions { display: flex; gap: 8px; margin-left: auto; }

/* ---------- panel ---------- */
.panel { background: var(--stage-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; min-height: 580px; view-transition-name: panel; position: relative; }
.empty { color: var(--muted); font: 400 21px/1.4 var(--display); letter-spacing: -0.015em; padding: 26px 4px; }
.empty small { display: block; margin-top: 14px; font: 13px/1.6 var(--sans); }
.kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }

.board { width: 100%; border-collapse: collapse; table-layout: fixed; }
.board th, .board td { padding: 9px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.board th:first-child, .board td:first-child { text-align: left; width: 34%; padding-left: 0; }
.board thead th { border-bottom: 0; vertical-align: bottom; padding-bottom: 14px; }
.colhead { background: none; border: 0; color: var(--muted); padding: 6px 2px; width: 100%; border-radius: 10px; transition: background .2s; }
.colhead .c { font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.colhead .n, .score .n { font: 600 30px/1 var(--display); letter-spacing: -0.04em; color: var(--ui); display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
.n, .d, .from, .ms { font-variant-numeric: tabular-nums; }
.mark, h1, h2, .dname, .empty, .pair { text-wrap: balance; }
.why, .swhy, .foot span, .job, .boardnote, .callout p { text-wrap: pretty; }
.colhead .n i, .score .n i { font-size: 13px; font-style: normal; font-weight: 500; color: var(--muted); margin-left: 1px; }
.colhead.focus { background: var(--stage-3); }
.colhead.focus .c { color: var(--lands); }
.rowname { background: none; border: 0; text-align: left; padding: 0; width: 100%; }
.rowname b { font-weight: 550; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowname span { font-size: 11.5px; color: var(--muted); }
.rowname:hover b { color: var(--lands); }
.cell { display: inline-block; min-width: 62px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; padding: 4px 8px; border-radius: 999px; text-transform: lowercase; }
.cell.wait { color: var(--muted); }
.cell.wait::after { content: "·  ·  ·"; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.v-lands.cell { background: rgba(227,154,44,.16); color: var(--lands); }
.v-roast.cell { background: rgba(224,83,61,.16); color: #f07a66; }
.v-inside.cell { background: rgba(139,124,240,.16); color: #a99df6; }
.v-dies.cell { background: rgba(129,121,108,.14); color: var(--muted); }
.v-famous.cell, .v-global.cell { background: rgba(63,180,166,.15); color: #5fd0c2; }
.v-unscored.cell, .v-outside.cell { color: var(--muted); border: 1px dashed var(--line); }
.cell.low { box-shadow: inset 0 0 0 1px currentColor; background: transparent; }
.cell.low::before { content: "~"; margin-right: 2px; }
.cell.differs { box-shadow: 0 0 0 1.5px var(--ui); }
.boardnote { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.lens { display: inline-flex; background: var(--stage); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 10px; }
.lens button { background: none; border: 0; color: var(--muted); padding: 5px 12px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.lens button[aria-pressed="true"] { background: var(--stage-3); color: var(--ui); box-shadow: inset 0 0 0 1px var(--line); }
.lensnote { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.callout { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.callout p { margin: 0; flex: 1; min-width: 180px; font-size: 12.5px; color: var(--muted); }

/* ---------- detail ---------- */
.back { background: none; border: 0; color: var(--muted); padding: 0; font-size: 13px; margin-bottom: 14px; }
.back:hover { color: var(--ui); }
.dname { font: 650 34px/1.05 var(--display); letter-spacing: -0.035em; margin: 0; }
.dmeta { color: var(--muted); font-size: 13px; margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dmeta select { background: var(--stage-3); color: var(--ui); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font: inherit; font-size: 12.5px; max-width: 100%; }
.warn { color: #f0a28f; }
.job { margin: 16px 0 18px; font: 400 17px/1.4 var(--display); color: #d8cfbf; }
.job span { font: 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.crow { padding: 14px 0; border-top: 1px solid var(--line); }
.crow-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.crow-top .city { font-weight: 550; }
.vw { font: 600 15px var(--display); letter-spacing: -0.01em; }
.vw.v-lands { color: var(--lands); } .vw.v-roast { color: #f07a66; } .vw.v-inside { color: #a99df6; }
.vw.v-dies { color: var(--muted); } .vw.v-famous, .vw.v-global { color: #5fd0c2; } .vw.v-unscored, .vw.v-outside { color: var(--muted); }
.why { color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
.bars { display: grid; grid-template-columns: 52px 1fr 38px; gap: 6px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.bar { height: 6px; background: var(--stage-3); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; transition: width .7s var(--spring); }
.bar.k i { background: #cfc6b6; } .bar.l i { background: var(--lands); }
.math { font: 11.5px var(--nums); color: var(--muted); margin-top: 8px; line-height: 1.6; }
.elsewhere { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.elsewhere b { color: var(--ui); font-weight: 550; }

/* ---------- review: the suggestion cards ---------- */
.rhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.score { text-align: right; }
.score .from { font: 13px var(--nums); color: var(--muted); }
.score .n { display: inline; font-size: 40px; }
.score .d { font: 12px var(--nums); margin-left: 6px; }
.up { color: var(--good); } .down { color: #f07a66; }
.cards { display: grid; gap: 10px; }
.card { background: var(--stage-3); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  transition: opacity .35s, transform .5s var(--spring), border-color .2s; }
@starting-style { .card { opacity: 0; transform: translateY(8px) scale(.98); } }
.card.current { border-color: #5a5246; }
.card.accepted, .card.ignored { background: transparent; border-style: dashed; }
.card.accepted .pair, .card.ignored .pair, .card.accepted .diff, .card.ignored .diff { color: var(--muted); }
.done-line { font-size: 12.5px; margin: 8px 0 0; }
.card.accepted .done-line { color: var(--good); }
.card.ignored .done-line { color: var(--muted); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.act { font-size: 10.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.act.swap { color: var(--lands); } .act.drop { color: #f07a66; } .act.keep { color: var(--famous); }
.pair { font: 600 16px/1.3 var(--display); letter-spacing: -0.015em; margin: 8px 0 4px; }
.pair s { color: var(--muted); font-weight: 500; text-decoration-thickness: 1.5px; }
.pair .arrow { color: var(--muted); margin: 0 6px; font-weight: 400; }
.vchange { font-size: 11.5px; color: var(--muted); }
.diff { font: 13.5px/1.65 var(--script); color: #e6dece; margin: 8px 0; }
.diff ins { text-decoration: none; background: rgba(227,154,44,.22); border-radius: 3px; padding: 0 2px; color: var(--ui); }
.diff del { color: var(--muted); text-decoration-thickness: 1.5px; }
.card .swhy { font-size: 12.5px; color: var(--muted); margin: 0; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions .primary { padding: 7px 16px; font-size: 12.5px; }
.card-actions .ghost { padding: 7px 14px; font-size: 12.5px; }
.working { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lands); animation: blink 1s infinite; flex: none; }
.kept { margin-top: 14px; color: var(--muted); font-size: 12.5px; }
.kept summary { cursor: pointer; }
.kept li { margin: 6px 0; }
.sticky { position: sticky; bottom: -22px; margin: 16px -22px -22px; padding: 14px 22px 18px; background: linear-gradient(transparent, var(--stage-2) 30%); display: flex; gap: 8px; flex-wrap: wrap; border-radius: 0 0 var(--r) var(--r); }

.trace { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); max-height: 40vh; overflow-y: auto; }
.trace li { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.trace .who { font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.trace .what { color: #d0c7b6; }
.trace .ms { font: 11px var(--nums); color: var(--muted); white-space: nowrap; padding-top: 2px; }
.t-you .who { color: var(--ui); } .t-gemini .who { color: #a99df6; } .t-qloo .who { color: var(--lands); } .t-room .who { color: #5fd0c2; }
details.work { margin-top: 18px; }
details.work summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }

/* ---------- tour ---------- */
.sheet-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.sheet { border-collapse: collapse; min-width: 100%; }
.sheet th, .sheet td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 12.5px; }
.sheet th:first-child, .sheet td:first-child { position: sticky; left: 0; background: var(--stage-2); min-width: 112px; padding-left: 0; }
.stophead { background: none; border: 1px solid transparent; border-radius: 10px; padding: 6px 8px; text-align: left; min-width: 104px; }
.stophead:hover { border-color: var(--line); }
.stophead.on { border-color: var(--lands); }
.stophead .c { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.stophead .n { font: 600 22px/1.1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stophead .from { font: 11px var(--nums); color: var(--muted); }
.tcell { display: inline-block; max-width: 140px; }
.tcell.keep { color: var(--muted); }
.tcell.swap { color: var(--lands); }
.tcell.drop { color: #f07a66; text-decoration: line-through; }
.tcell.fine { color: var(--muted); }

/* ---------- popover, drop, palette ---------- */
.pop { margin: 0; inset: auto; border: 1px solid var(--line); background: var(--stage-2); color: var(--ui); border-radius: 14px; padding: 14px 16px; width: min(320px, calc(100vw - 32px));
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); position: fixed; }
.pop, dialog { opacity: 0; scale: .97;
  transition: opacity var(--t-fast) var(--ease), scale var(--t-spring) var(--spring), display var(--t-fast) allow-discrete, overlay var(--t-fast) allow-discrete; }
.pop:popover-open, dialog[open] { opacity: 1; scale: 1; }
@starting-style { .pop:popover-open, dialog[open] { opacity: 0; scale: .97; } }
@supports (position-area: block-end) {
  .anchor { anchor-name: --word; }
  .pop.anchored { position-anchor: --word; position-area: block-end span-inline-end; position-try-fallbacks: flip-block, flip-inline; margin: 8px 0 0; inset: auto; }
}
@keyframes rise { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.dropzone { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; text-align: center; background: rgba(12,11,10,.82);
  backdrop-filter: blur(6px); border: 2px dashed var(--lands); border-radius: 24px; margin: 14px; }
.dropzone p { font: 650 36px var(--display); letter-spacing: -0.04em; margin: 0; }
.dropzone small { color: var(--muted); margin-top: 8px; display: block; }
dialog { background: var(--stage-2); color: var(--ui); border: 1px solid var(--line); border-radius: var(--r); max-width: 580px; width: calc(100% - 32px); padding: 28px; }
dialog::backdrop { background: rgba(5,4,3,.72); backdrop-filter: blur(3px); }

dialog h2 { font: 650 28px/1.1 var(--display); letter-spacing: -0.035em; margin: 0 0 16px; }
dialog ol { padding-left: 20px; color: #d8cfbf; }
dialog li { margin-bottom: 8px; }
.legend { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 18px 0 16px; font-size: 13px; }
.legend dd { margin: 0; color: var(--muted); }
.keys { font-size: 12px; color: var(--muted); margin: 0 0 18px; }
.palette { padding: 0; max-width: 520px; margin-top: 14vh; overflow: hidden; }
.palette input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ui); font: 400 18px var(--display); padding: 18px 20px; outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette li { padding: 10px 14px; border-radius: 10px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
.palette li[aria-selected="true"] { background: var(--stage-3); }
.palette li small { color: var(--muted); font: 12px var(--nums); }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: 12.5px; }
.foot b { color: var(--ui); font-weight: 550; }
.foot a { color: var(--muted); }
.print { display: none; }

/* ---------- view transitions ---------- */
::view-transition-old(panel), ::view-transition-new(panel) { animation-duration: .32s; animation-timing-function: var(--ease); }
::view-transition-old(panel) { animation-name: vt-out; }
::view-transition-new(panel) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- small screens ---------- */

/* ---------- Picture: a frame is a script whose references are boxes ---------- */
.frame { padding: 16px 26px 4px; }
.frame-empty { border: 1.5px dashed var(--paper-2); border-radius: 12px; padding: 54px 28px; text-align: center; color: var(--ink-soft); }
.frame-empty p { margin: 0; font: 600 18px/1.3 var(--display); color: var(--ink); letter-spacing: -0.015em; }
.frame-empty .sub { margin-top: 8px; font: 13.5px/1.5 var(--sans); color: var(--ink-soft); }
.frame-stage { position: relative; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.frame-stage img { display: block; width: 100%; height: auto; }
.frame-stage .after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--wipe)); }
.wipe-line { position: absolute; top: 0; bottom: 0; left: var(--wipe); width: 2px; background: var(--paper); box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.frame-stage.busy img { filter: saturate(.75) brightness(.8); transition: filter .4s var(--ease); }
.frame-busy { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.frame-pill { position: absolute; right: 12px; bottom: 12px; background: rgba(12,11,10,.72); color: var(--ui); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; backdrop-filter: blur(6px); pointer-events: none; }
.frame-busy span { background: rgba(12,11,10,.72); color: var(--ui); padding: 7px 14px; border-radius: 999px; font-size: 13px; backdrop-filter: blur(6px); }
.frame-busy::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%); background-size: 220% 100%; animation: sweep 1.6s linear infinite; }
@keyframes sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.boxes { position: absolute; inset: 0; }
.box { position: absolute; border: 2px solid currentColor; border-radius: 9px; background: transparent; padding: 0; color: var(--muted);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35); transition: background .2s var(--ease), transform var(--t-spring) var(--spring); }
@starting-style { .box { opacity: 0; transform: scale(.96); } }
.box:hover, .box.sel { background: rgba(255,255,255,.08); }
.box.sel { border-width: 3px; }
.box.v-lands { color: var(--lands); } .box.v-roast { color: var(--roast); } .box.v-inside { color: var(--inside); }
.box.v-dies { color: #b9b1a3; } .box.off { color: rgba(245,240,230,.55); border-style: dashed; } .box.wait { color: rgba(245,240,230,.7); }
.pin { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: currentColor; font: 700 12px var(--sans); }
.box .pin { position: absolute; top: 6px; left: 6px; }
.box:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ui), 0 0 0 2px rgba(0,0,0,.5); }
span.box { pointer-events: none; }
.box:disabled { cursor: progress; }
.box .pin, .pin.small { color: inherit; }
.box .pin::after, .pin.small::after { content: none; }
.box .pin { text-shadow: none; }
.box > .pin { color: var(--stage); background: currentColor; }
.box.v-lands > .pin { background: var(--lands); } .box.v-roast > .pin { background: var(--roast); } .box.v-inside > .pin { background: var(--inside); }
.box.v-dies > .pin { background: #b9b1a3; } .box.off > .pin, .box.wait > .pin { background: var(--paper); }
.pin.small { min-width: 18px; height: 18px; font-size: 10.5px; background: var(--stage-3); color: var(--ui); margin-right: 8px; vertical-align: 1px; }
.wipe { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--ink-soft); }
.wipe input { flex: 1; accent-color: var(--lands); }
.strip { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.strip button { border: 0; padding: 0; background: none; flex: 0 0 auto; opacity: .55; transition: opacity .2s; }
.strip button.on, .strip button:hover { opacity: 1; }
.strip img { display: block; height: 52px; border-radius: 6px; }
.strip span { display: block; font: 11px var(--keys); color: var(--ink-soft); margin-top: 3px; }
.add.brand input { width: 150px; border-style: solid; }
.lede { color: #cfc6b6; font-size: 14.5px; margin: 10px 0 16px; }
.own { font-size: 13.5px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--stage-3); }
.own.rival { color: #f07a66; } .own.yours { color: var(--lands); } .own.near { color: #a99df6; }
.scs { display: grid; gap: 10px; }
.sc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sc.here { border-color: rgba(227,154,44,.45); background: rgba(227,154,44,.04); }
.schead { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sc .swhy { margin: 0 0 10px; font-size: 13px; color: #cfc6b6; }
.sc .swhy:last-child { margin-bottom: 0; }
.sc .shot { font-size: 12.5px; color: var(--muted); margin: 0; }
.badge { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--lands); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; }
.src { margin-top: 16px; font: 11.5px var(--keys); color: var(--muted); letter-spacing: .01em; }
.readback.ok { border-color: rgba(127,211,143,.45); }
.readback.miss { border-color: rgba(224,83,61,.5); }
.readback p { margin: 0 0 4px; }

@media (max-width: 960px) {
  .stage, .stage.touring { grid-template-columns: minmax(0, 1fr); }
  .paper, .panel { min-width: 0; }
  .paper, .panel { min-height: 0; }
  #script, .read { min-height: 300px; }
  .read { max-height: none; }
  .group.age { margin-left: 0; }
}
@media (max-width: 560px) {
  .top, .controls, .stage, .foot { padding-left: 16px; padding-right: 16px; }
  .mark { font-size: 46px; }
  .tag { font-size: 15px; }
  .topactions .kbd { display: none; }
  #script, .read { font-size: 15px; padding: 14px 16px; }
  .paper-head { padding: 14px 16px 0; }
  .paper-foot { padding: 12px 16px 16px; }
  .panel { padding: 16px; }
  .sticky { margin: 16px -16px -16px; padding: 12px 16px 16px; bottom: -16px; }
  .cell { min-width: 0; padding: 3px 5px; font-size: 10.5px; }
  .seg button { padding: 6px 8px; font-size: 12px; }
  .colhead .n { font-size: 24px; }
  .colhead .c { white-space: normal; overflow-wrap: anywhere; font-size: 11px; }
  .board th:first-child, .board td:first-child { width: 30%; }
  .cell { max-width: 100%; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
  .cell .long { display: none; }
}
@media (min-width: 561px) { .cell .short { display: none; } }
@media (prefers-reduced-motion: reduce) {
  :root { --spring: linear(0, 1); --t-spring: 0ms; --t-fast: 120ms; }
  .ref { transition-delay: 0s; }
  .spot { transition: none; }
  .ref.wait, .cell.wait::after, .dot { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- print: one set list per stop ---------- */
@media print {
  body { background: #fff; color: #111; }
  body > *:not(.print) { display: none !important; }
  .print { display: block; }
  .print section { break-after: page; padding: 8mm 4mm; }
  .print h1 { font: 650 28pt var(--display); letter-spacing: -0.03em; margin: 0; }
  .print .meta { color: #555; font: 10pt var(--sans); margin: 4px 0 14px; }
  .print .text { font: 12pt/1.7 var(--script); white-space: pre-wrap; }
  .print ins { text-decoration: none; background: #f6e3bf; }
  .print del { color: #999; }
  .print ul { font: 10pt var(--sans); color: #333; padding-left: 16px; }
}

.primary kbd { border-color: rgba(26,18,6,.3); color: #1a1206; }

/* ---------- Pitch: a brief in, their people and three ideas out. Ink is Qloo, pencil is Gemini. ---------- */
.pitch { padding: 18px 26px 22px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
#pitchBody { display: flex; flex-direction: column; gap: 14px; }
.brief-l { font: 600 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.brief-in { width: 100%; border: 0; border-bottom: 1.5px solid var(--paper-2); background: transparent; color: var(--ink);
  font: 21px/1.5 var(--script); resize: none; padding: 2px 0 10px; field-sizing: content; min-height: 2lh; }
.brief-in:focus { outline: none; border-bottom-color: var(--lands); }
.brief-in::placeholder { color: #b3a993; }
.bchips { display: flex; flex-wrap: wrap; gap: 6px; }
.bc { display: inline-flex; align-items: center; gap: 6px; background: var(--paper-2); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; color: var(--ink-soft); }
.bc img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; margin-left: -6px; }
.bc b { color: var(--ink); font-weight: 600; }
.bc small { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.bc.miss { background: transparent; border: 1px dashed #cbbfa9; }
.bc.kind { text-transform: lowercase; }
.perr { margin: 0; font-size: 13.5px; color: #a3412f; }
.perr.soft { color: var(--ink-soft); }
.pwork { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); margin: 0; }
.ideas-k { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 0;
  font: 600 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.ideas-k span { font: 12px var(--sans); letter-spacing: 0; text-transform: none; }
.ideas { display: grid; gap: 12px; }
.idea { background: #fbf8f1; border: 1px solid var(--paper-2); border-radius: 14px; padding: 16px 18px 14px;
  transition: opacity .35s, transform .5s var(--spring), border-color .2s; }
@starting-style { .idea { opacity: 0; transform: translateY(8px) scale(.985); } }
.idea.is-kept { border-color: var(--lands); box-shadow: 0 0 0 1px var(--lands) inset; }
.idea.unread { border-style: dashed; }
.idea-k { margin: 0; font: 600 10.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.kepttag { color: #9a5f0c; }
.idea-t { margin: 4px 0 2px; font: 650 22px/1.15 var(--display); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.idea-line { margin: 0 0 10px; font: 17px/1.45 var(--script); color: var(--ink); }
.idea-ins, .idea-body { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; color: #3f3a31; text-wrap: pretty; }
.idea-ins span { display: block; font: 600 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.ink { all: unset; cursor: pointer; font-weight: 650; color: var(--ink); border-radius: 3px;
  text-decoration: underline; text-decoration-color: var(--lands); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ink:hover { background: rgba(227,154,44,.16); }
.ink:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.ink.subj { cursor: default; text-decoration: none; }
.ink.subj:hover { background: none; }
.slots { display: grid; grid-template-columns: 58px 1fr; gap: 5px 10px; margin: 10px 0 8px; padding-top: 10px; border-top: 1px solid var(--paper-2); font-size: 13px; }
.slots dt { font: 600 10px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.slots dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.slots .swhy2 { font: 11.5px var(--nums); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mk { font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; }
.mk.yours { background: rgba(227,154,44,.2); color: #9a5f0c; }
.mk.rival { background: rgba(224,83,61,.14); color: #a3412f; }
.cstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 2px; font-size: 12px; }
.cstrip .sl { color: var(--ink-soft); margin-right: 2px; }
.sd { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }
.sd i { width: 8px; height: 8px; border-radius: 50%; background: #b9ae99; }
.sd.v-lands i { background: var(--lands); } .sd.v-roast i { background: var(--roast); } .sd.v-inside i { background: var(--inside); }
.sd.v-famous i, .sd.v-global i { background: var(--famous); } .sd.v-dies i { background: var(--dies); }
.sd.wait i { animation: blink 1.2s infinite; }
.idea-actions, .killwhy { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.idea-actions .ghost { padding: 6px 13px; font-size: 12.5px; }
.killwhy { align-items: center; font-size: 12.5px; color: var(--ink-soft); }
.killwhy button { background: var(--paper-2); border: 0; border-radius: 999px; padding: 5px 11px; font-size: 12px; color: var(--ink); }
.killwhy button:hover { background: #e2d8c5; }
.killwhy .x { background: none; font-size: 16px; padding: 0 6px; color: var(--ink-soft); }
.whatif { display: flex; gap: 8px; align-items: center; }
.whatif input { flex: 1; min-width: 0; border: 1px dashed #cbbfa9; background: transparent; color: var(--ink); border-radius: 999px; padding: 10px 16px; font: 14px var(--script); }
.whatif input::placeholder { color: #a89e88; }
.whatif input:focus { outline: none; border-style: solid; border-color: var(--lands); }
.rollout { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--paper-2); }
.slugline { font: 700 13px var(--script); letter-spacing: .06em; color: var(--ink-soft); margin: 0 0 10px; }
.rollwrap { overflow-x: auto; scrollbar-width: thin; }
.rolltable { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 13px; }
.rolltable th, .rolltable td { text-align: left; vertical-align: top; padding: 8px 8px; border-bottom: 1px solid var(--paper-2); }
.rolltable thead th { font: 600 10.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.rolltable tbody th { width: 96px; }
.rolltable tbody th b { display: block; font-weight: 600; }
.rolltable td p { margin: 0 0 4px; line-height: 1.45; color: #3f3a31; }
.rolltable .bv { font-size: 11.5px; color: var(--ink-soft); }
.rollactions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.role { display: inline-block; font-size: 10.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--stage-3); color: var(--muted); }
.role.role-open { background: rgba(127,211,143,.14); color: var(--good); }
.role.role-build { background: rgba(242,236,226,.08); color: var(--ui); }
.role.role-inside { background: rgba(242,236,226,.05); color: #cfc6b6; box-shadow: inset 0 0 0 1px var(--line); }
.role.role-wait, .role.role-thin { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.rolltable .role { background: var(--paper-2); color: var(--ink-soft); margin-top: 3px; }
.rolltable .role.role-open { background: rgba(127,211,143,.22); color: #2f6b3b; }

/* the panel: their people, where they gather, receipts */
.plede { color: #d8cfbf; font: 400 15px/1.5 var(--sans); margin: 12px 0 0; text-wrap: pretty; }
.threads { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.tw { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 11px; border-radius: 999px; background: rgba(227,154,44,.12); color: var(--lands); font-size: 13px; font-weight: 550; }
.tw i { font: 10.5px var(--nums); font-style: normal; color: var(--muted); }
.lanes { margin-top: 14px; border-top: 1px solid var(--line); }
.lrow { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.lrow .lab { font-size: 12px; color: var(--muted); }
.lchips { display: flex; flex-wrap: wrap; gap: 5px; }
.lc { background: var(--stage-3); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--ui); display: inline-flex; gap: 6px; align-items: baseline; max-width: 100%;
  transition: border-color .2s, opacity .3s, transform .45s var(--spring); }
@starting-style { .lc { opacity: 0; transform: translateY(4px); } }
.lc i { font: 10.5px var(--nums); font-style: normal; color: var(--lands); font-variant-numeric: tabular-nums; }
.lc:hover, .lc.on { border-color: var(--lands); }
.lc.mk-yours { box-shadow: inset 0 0 0 1px rgba(227,154,44,.6); }
.lc.mk-rival { text-decoration: line-through; text-decoration-color: #f07a66; }
.ghost-chip { width: 92px; height: 24px; animation: blink 1.2s infinite; }
.lrow.wait .lab { opacity: .6; }
.rawlift { margin-top: 12px; }
.subh { font: 650 18px/1.2 var(--display); letter-spacing: -0.02em; margin: 22px 0 6px; }
.wrow { padding: 11px 0; border-bottom: 1px solid var(--line); }
.wtop { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wtop b { font-weight: 600; }
.kl { font: 12px var(--nums); color: var(--ui); font-variant-numeric: tabular-nums; }
.pencil { color: var(--muted); }
.wline { margin: 4px 0 6px; font-size: 12.5px; color: var(--muted); }
.rooms { margin: 3px 0 0; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.rooms span { color: var(--muted); min-width: 92px; }
.rooms.wait { color: var(--muted); }
.vn { background: none; border: 0; padding: 0; color: #e6dece; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; font-size: 12.5px; }
.vn:hover, .vn.on { color: var(--lands); }
.vn:not(:last-child)::after { content: "·"; display: inline-block; margin-left: 6px; color: var(--muted); text-decoration: none; }
.receipt { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 18px 0 6px; }
.rc { background: var(--stage-3); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.rc span { display: block; font-size: 11.5px; color: var(--muted); }
.rc b { font: 600 22px/1.2 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rc.lift b { color: var(--lands); }
.rnote, .rwhy { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.req { margin: 12px 0 0; padding: 10px 12px; background: var(--stage); border: 1px solid var(--line); border-radius: 10px; font: 11px/1.5 var(--keys); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.rstrip { margin-top: 14px; display: grid; gap: 6px; }
.rsc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rsc b { min-width: 86px; font-weight: 550; }

@media (max-width: 560px) {
  .pitch { padding: 14px 16px 18px; }
  .brief-in { font-size: 18px; }
  .idea { padding: 14px 14px 12px; }
  .idea-t { font-size: 20px; }
  .lrow { grid-template-columns: 1fr; gap: 6px; }
  .whatif { flex-wrap: wrap; }
  .whatif input { flex-basis: 100%; }
  .rooms span { min-width: 0; width: 100%; }
}
@media print {
  .print h2 { font: 650 16pt var(--display); margin: 14px 0 4px; }
}

/* Pitch, after review: subject matches, unread ideas, steers, verdict words, quiet states */
button.bc { border: 0; font: inherit; font-size: 12.5px; cursor: pointer; }
button.bc:hover { background: #e2d8c5; }
.bc.unsure { box-shadow: inset 0 0 0 1px #c9a25a; }
.picker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.picker button { background: #fbf8f1; border: 1px solid var(--paper-2); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; color: var(--ink); }
.picker button.on { border-color: var(--lands); }
.picker small { color: var(--ink-soft); }
.unreadtag { color: #a3412f; }
.unreadnote { margin: 6px 0 0; font-size: 12.5px; color: #a3412f; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sd em { font-style: normal; color: var(--ink-soft); font-size: 11px; }
.answer { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.answer b { font-weight: 600; }
.answer .who { font: 650 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.answer .who-qloo { color: #9a5f0c; } .answer .who-gemini { color: #5b4fc4; } .answer .who-room { color: #2a7d72; }
.pencilline { color: var(--ink-soft); }
.steers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.steer { display: inline-flex; align-items: center; gap: 2px; background: var(--paper-2); border-radius: 999px; padding: 3px 4px 3px 10px; color: var(--ink); }
.steer .x { background: none; border: 0; color: var(--ink-soft); width: 20px; height: 20px; border-radius: 50%; padding: 0; }
.steer .x:hover { background: #e2d8c5; }
.ghost.dark:disabled { opacity: .45; cursor: default; }
.ghost.dark:disabled:hover { border-color: #d2c8b5; background: transparent; }
.killwhy button:disabled, .linkbtn:disabled { opacity: .45; }
.rollout:focus { outline: none; }
.samples button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .sd.wait i, .ghost-chip { animation: none; } }

/* Pitch: the key visual on an idea card */
.kv { margin: 0 0 12px; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.kv img { display: block; width: 100%; height: auto; }
.kv.wait { padding: 26px 16px; }
.kv figcaption { padding: 8px 12px 10px; font-size: 12.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.kv figcaption .who { font: 650 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #2a7d72; }
.kvacts { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.kvwhy summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.kvwhy p { margin: 6px 0 0; font: 12px/1.5 var(--keys); color: var(--ink-soft); }
.kvflag { flex-basis: 100%; color: #a3412f; }
