/* Story Den: warm paper, one indigo ink, hand-drawn line art (art.js).
   Accessibility floor from the brief: body text >= 20px, questions >= 26px,
   record button >= 88pt with a label, dark text on light backgrounds. */
:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --card: #fffdf9;
  --ink: #1f1b2e;
  --muted: #5f5a6d;
  --line: rgba(31, 27, 46, 0.12);
  --accent: #2f1fd1;
  --accent-press: #2416ad;
  --accent-soft: rgba(47, 31, 209, 0.08);
  --accent-edge: rgba(47, 31, 209, 0.32);
  --glow: #ffb547;
  --glow-soft: #fff0d6;
  --danger: #c93a2b;
  --warn: #8a4b00;
  --error-bg: #fff0ed;
  --error-edge: #f0b5ab;
  --shadow: 0 1px 2px rgba(31, 27, 46, 0.05), 0 10px 28px -14px rgba(31, 27, 46, 0.22);
  --lift: 0 2px 4px rgba(31, 27, 46, 0.06), 0 18px 36px -16px rgba(31, 27, 46, 0.3);
  --font: Figtree, ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* Older names used further down. */
  --blue: var(--accent);
  --blue-light: var(--accent);
  --glass: var(--card);
  --glass-strong: var(--card);
  --glass-edge: var(--line);
  --soft-shadow: var(--shadow);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background-color: var(--paper);
  /* A faint dot grid, like a notebook page. */
  background-image: radial-gradient(circle at 1px 1px, rgba(47, 31, 209, 0.09) 1.1px, transparent 1.6px);
  background-size: 24px 24px;
  color: var(--ink);
  font: 500 20px/1.5 var(--font);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
body[data-view="interview"] { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.loading { padding: 40px 20px; color: var(--muted); font-weight: 700; text-align: center; }
.art { display: block; color: var(--accent); flex-shrink: 0; }

/* Pages slide in when you move between them (see route() in app.js). */
#app.enter > .page { animation: rise 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 58px; padding: 14px 24px;
  border: 0; border-radius: 16px;
  background: var(--accent); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px -10px rgba(47, 31, 209, 0.7);
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:active { transform: translateY(1px) scale(0.985); background: var(--accent-press); }
.btn.secondary { background: var(--card); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent-edge); }
.btn.secondary:active { background: var(--accent-soft); }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; }
.btn.quiet:active { background: rgba(31, 27, 46, 0.05); }
.btn.danger { background: var(--danger); box-shadow: 0 8px 18px -10px rgba(201, 58, 43, 0.7); }
.btn.small { min-height: 46px; padding: 8px 16px; font-size: 18px; border-radius: 14px; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.block { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; text-decoration: none; cursor: pointer; }
.linklike.muted { color: var(--muted); }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin: 0 0 16px;
}
.card > h2:first-child { margin-top: 0; }

/* ---------- app chrome: top bar and bottom tabs ---------- */
.appbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 -16px 6px; padding: calc(env(safe-area-inset-top) + 8px) 16px 8px;
  background: rgba(246, 241, 232, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; margin: 0; }
.brand .art { width: 40px; height: 40px; }
.brand span, .wordmark { font: 600 24px/1 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.appbar-actions { display: flex; align-items: center; gap: 16px; font-size: 18px; }
.appbar-actions a { text-decoration: none; }

.tabbar {
  position: fixed; z-index: 10; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 10px);
  max-width: 480px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 4px;
  padding: 6px 10px;
  background: rgba(255, 253, 249, 0.92);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--lift);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 8px;
  color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 700;
}
.tab .art { width: 30px; height: 30px; color: currentColor; }
.tab.on { color: var(--accent); }
.tab.new { color: var(--accent); padding: 0 14px 2px; }
.tab.new .plus {
  display: grid; place-items: center; width: 58px; height: 58px; margin-top: -26px; border-radius: 20px;
  background: var(--accent); color: #fff; box-shadow: 0 10px 22px -8px rgba(47, 31, 209, 0.75);
  transform: rotate(-4deg); transition: transform 0.15s ease;
}
.tab.new:active .plus { transform: rotate(0) scale(0.95); }
.tab.new .plus .art { width: 30px; height: 30px; color: #fff; }

/* ---------- pages ---------- */
.page { max-width: 640px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 20px) 16px 56px; }
.page:has(> .appbar) { padding-top: 0; }
.page.has-tabs { padding-bottom: calc(env(safe-area-inset-bottom) + 118px); }
.page.wide { max-width: 860px; }
.hero { padding: 10px 2px 18px; }
.hero h1 { font: 600 clamp(32px, 8.4vw, 44px)/1.1 var(--serif); letter-spacing: -0.015em; margin: 6px 0 10px; }
.hero .lede { margin: 0 0 16px; }
.hero .row { margin-top: 4px; }
.hero-art { width: 92px; height: 92px; margin: 0 0 10px; }
.hero.welcome { text-align: center; padding-top: 24px; }
.hero.welcome .hero-art { width: 132px; height: 132px; margin: 0 auto 4px; }
.hero.welcome .wordmark { margin: 0 0 18px; color: var(--accent); }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.title-row h1 { margin: 0; }
.eyebrow {
  display: inline-block; margin: 0 0 4px; padding: 6px 12px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font: 500 17px/1.25 var(--mono); letter-spacing: 0.01em;
}
.page h2 { font: 600 26px/1.2 var(--serif); letter-spacing: -0.01em; margin: 28px 0 12px; }
.section-title { margin: 28px 2px 12px; }
.lede { color: var(--muted); }
.back { font-weight: 700; text-decoration: none; }

.field { display: block; margin: 0 0 20px; }
.field > span { display: block; font-weight: 800; margin-bottom: 8px; }
.field em { font-style: normal; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 58px; padding: 14px 18px;
  border: 0; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 600;
}
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235f5a6d' stroke-width='2.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 20px center; padding-right: 48px; }
.field textarea { min-height: 104px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a8595; font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft); }
.field small { display: block; color: var(--muted); font-size: 20px; margin-top: 6px; }
.seeded input + input { margin-top: 10px; }

.notice { padding: 16px 18px; border-radius: 18px; background: var(--glow-soft); box-shadow: inset 0 0 0 1.5px #f1cf92; margin: 0 0 16px; }
.notice.error { background: var(--error-bg); box-shadow: inset 0 0 0 1.5px var(--error-edge); }
.past ul { list-style: none; padding: 0; margin: 0; }
.past li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.past li:first-child { border-top: 0; }
.past .meta { color: var(--muted); }

/* ---------- home, the setup steps, choices ---------- */
.choices { display: flex; flex-direction: column; gap: 14px; }
.choice {
  display: flex; flex-direction: column; gap: 2px; text-align: left; width: 100%;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 22px; cursor: pointer; text-decoration: none; color: var(--ink);
  background: var(--card); box-shadow: var(--shadow); transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.choice:active { transform: scale(0.98); }
.choice strong { font-size: 23px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.choice span { color: var(--muted); font-weight: 600; }
.choice:has(> .art) { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; align-items: center; }
.choice > .art { grid-row: 1 / span 2; width: 52px; height: 52px; }
.choice.feature { display: flex; align-items: center; text-align: center; padding: 20px 22px 22px; gap: 2px; }
.choice.feature > .art { width: 68px; height: 68px; margin: 0 0 6px; }
.choice.feature strong { font: 600 27px/1.2 var(--serif); letter-spacing: -0.01em; }
.home-choices { gap: 18px; margin-top: 4px; }
.choice.tilt { transform: rotate(-1.2deg); }
.choice.tilt:active { transform: rotate(-1.2deg) scale(0.98); }
.wizard .choices { margin-bottom: 4px; }
/* Steps that are just a choice: the options are the cards, no box around them. */
.wizard:has(> .choices) { background: none; border: 0; box-shadow: none; padding: 0; }
.wizard:has(.field) .choice { box-shadow: none; background: #fff; }
.wizard .choice:active { background: var(--accent-soft); }
.wizard .add { margin-top: 10px; }
.wizard input[name="seed"] + input[name="seed"] { margin-top: 10px; }
.progress { height: 8px; max-width: 220px; margin: 12px 0 14px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.35s ease; }

/* ---------- your stories ---------- */
.catalog-row { margin-bottom: 14px; }
.catalog-row .catalog-item { margin-bottom: 0; }
.catalog-item {
  display: grid; grid-template-columns: 54px 1fr; column-gap: 14px; align-items: center;
  text-decoration: none; color: var(--ink); transition: transform 0.14s ease;
}
.catalog-item:active { transform: scale(0.985); }
.catalog-item > :not(.avatar) { grid-column: 2; }
.avatar {
  grid-row: 1 / span 3; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px;
  background: var(--accent-soft); color: var(--accent); font: 600 26px/1 var(--serif);
}
.avatar.done { background: var(--glow-soft); }
.avatar .art { width: 38px; height: 38px; }
.catalog-item .who { font-size: 23px; font-weight: 800; line-height: 1.25; }
.catalog-item .what { color: var(--muted); font-weight: 600; }
.catalog-item .state { margin-top: 4px; color: var(--muted); font: 500 17px/1.3 var(--mono); }
.catalog-item .state.done { color: var(--accent); }
.empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 22px; }
.empty .art { width: 96px; height: 96px; }
.empty p { margin: 4px 0 12px; }

/* ---------- deleting, invites, family links ---------- */
.delete-row { display: flex; flex-direction: column; gap: 10px; padding: 12px 8px 0; font-weight: 700; }
.delete-row .row { gap: 10px; }
.page-delete { align-items: center; text-align: center; margin-top: 24px; }
.remove-story { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; font-weight: 700; }
.invite-message, .credentials pre, .share-url {
  white-space: pre-wrap; word-break: break-word; background: #fff; border-radius: 14px; padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--line); font: 600 20px/1.5 var(--font);
}
.share-url { word-break: break-all; font-weight: 700; }
.made-with { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-weight: 700; margin-top: 28px; }
.made-with .art { width: 34px; height: 34px; }
.hero > .brand { margin-bottom: 14px; }
.people { list-style: none; padding: 0; margin: 0; }
.people li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.people li:first-child { border-top: 0; }
.people .meta, .past .meta { color: var(--muted); font-size: 20px; }

/* ---------- stories ---------- */
.story { padding: 24px 22px; }
.story blockquote {
  margin: 0 0 18px; padding: 2px 0 2px 18px; border-left: 4px solid var(--glow);
  font: 500 23px/1.4 var(--serif); color: var(--ink);
}
.story h2 { font: 600 28px/1.2 var(--serif); margin: 0 0 4px; }
.story .when { color: var(--muted); font: 500 17px/1.3 var(--mono); margin: 0 0 16px; }
.story .listen { width: 100%; white-space: normal; text-align: center; margin-bottom: 18px; }
.story-text p { margin: 0 0 14px; line-height: 1.65; }
/* Hand-drawn pictures: the cream paper blends into the card. */
.story-art {
  position: relative; margin: 6px 0 20px; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden;
  background: #fbf5ea;
}
.story-art.lead { margin: -8px -8px 20px; }
.story-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; mix-blend-mode: multiply; }
.story-art.drawn img { opacity: 1; }
.sketching {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--muted); font: 500 17px/1.2 var(--mono); transition: opacity 0.4s ease;
}
.sketching .art { width: 56px; height: 56px; animation: write 1.6s ease-in-out infinite; transform-origin: 20% 85%; }
.story-art.drawn .sketching { opacity: 0; }
.rewrite { text-align: center; }
.waiting { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.waiting .row { justify-content: center; }

/* ---------- conversation screens ---------- */
.interview {
  display: flex; flex-direction: column; gap: 10px;
  height: 100dvh; max-width: 720px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 12px) 12px calc(env(safe-area-inset-bottom) + 12px);
}
.sheet {
  flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
  overflow: hidden;
}
.history {
  flex: 0 1 auto; max-height: 24dvh; overflow-y: auto;
  padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid var(--line); background: rgba(246, 241, 232, 0.5);
}
.history:empty { display: none; }
.bubble { max-width: 86%; padding: 11px 16px; border-radius: 20px; font-weight: 600; }
.bubble.q { align-self: flex-start; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 6px; }
.bubble.a { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.bubble.a.pending { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.bubble .tag { display: block; font-size: 18px; font-weight: 800; opacity: 0.85; }
.question-card { padding: 18px 20px 22px; }
.question { font-size: clamp(28px, 7.4vw, 38px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 0; }

.action {
  flex: 1 1 auto; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  padding: 12px 4px; min-height: 230px; text-align: center; overflow-y: auto;
}
.action .row { justify-content: center; }
.action > .bubble.a { max-width: 100%; align-self: stretch; text-align: left; }
.record-label { font-size: 24px; font-weight: 800; margin: 0; }
.status { font-size: 24px; font-weight: 800; margin: 0; }
.message { max-width: 34em; margin: 0; font-weight: 700; }
.message.error { padding: 16px 18px; border-radius: 18px; background: var(--error-bg); box-shadow: inset 0 0 0 1.5px var(--error-edge); text-align: left; }
.heard {
  max-width: 34em; max-height: 7.5em; overflow-y: auto; margin: 0; padding: 0 8px;
  color: var(--muted); font-size: 20px; font-weight: 600; text-align: center;
}
.heard:empty { display: none; }
.intro { width: 100%; max-width: 560px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px 20px; box-shadow: var(--shadow); }
.intro-title { font: 600 24px/1.2 var(--serif); margin: 0 0 8px; }
.intro ol { margin: 0 0 10px; padding-left: 24px; }
.intro li { margin-bottom: 6px; }
.intro li::marker { color: var(--accent); font-weight: 800; }
.intro p { margin: 0; }
.btn.start { min-height: 66px; padding: 16px 34px; font-size: 22px; border-radius: 20px; }

.spinner { width: 56px; height: 56px; border-radius: 50%; border: 6px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
.spinner.small { display: inline-block; width: 22px; height: 22px; border-width: 4px; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.art.writing { width: 84px; height: 84px; animation: write 1.6s ease-in-out infinite; transform-origin: 20% 85%; }
@keyframes write { 0%, 100% { transform: rotate(-4deg) translateX(-4px); } 50% { transform: rotate(4deg) translateX(6px); } }

/* The listening orb: sound bars that follow the voice. */
.orb {
  flex-shrink: 0; width: 144px; height: 144px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--lift);
}
.orb.speaking { background: var(--accent); box-shadow: 0 16px 36px -12px rgba(47, 31, 209, 0.7); cursor: pointer; }
.orb.start { cursor: pointer; }
.bars { display: flex; align-items: center; gap: 8px; height: 76px; }
.bars i { display: block; width: 10px; border-radius: 5px; background: var(--accent); height: calc(14px + var(--level, 0) * var(--k, 1) * 60px); transition: height 0.12s linear; }
.bars i:nth-child(1), .bars i:nth-child(5) { --k: 0.45; }
.bars i:nth-child(2), .bars i:nth-child(4) { --k: 0.8; }
.bars i:nth-child(3) { --k: 1; }
.orb.speaking .bars i { background: #fff; animation: talk 1.1s ease-in-out infinite; }
.orb.speaking .bars i:nth-child(2) { animation-delay: 0.15s; }
.orb.speaking .bars i:nth-child(3) { animation-delay: 0.3s; }
.orb.speaking .bars i:nth-child(4) { animation-delay: 0.45s; }
.orb.speaking .bars i:nth-child(5) { animation-delay: 0.6s; }
@keyframes talk { 0%, 100% { height: 16px; } 50% { height: 52px; } }
.orb.paused .bars i { background: #cfc9d8; }
.orb.small { width: 96px; height: 96px; }
.orb.small .bars { height: 52px; gap: 6px; }
.orb.small .bars i { width: 8px; }

.operator {
  flex: 0 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  padding: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.operator:empty, .operator[hidden] { display: none; }
.operator .count { color: var(--muted); font-weight: 800; margin-right: auto; }
.operator .btn { min-height: 52px; padding: 8px 14px; flex: 1 1 auto; }
.operator .hint, .operator .sync, .operator .confirm { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 10px; }
.operator .hint { color: var(--accent); font-weight: 800; }
.operator .sync { color: var(--warn); font-weight: 700; }
.operator .confirm { font-weight: 800; }

/* Tap-to-answer leftovers (unreachable, kept until that code is removed). */
.record { width: 144px; height: 144px; border-radius: 50%; border: 0; background: var(--card); display: grid; place-items: center; flex-shrink: 0; }
.record .dot { width: 64px; height: 64px; border-radius: 50%; background: var(--danger); }
.timer { font: 800 30px/1 var(--font); font-variant-numeric: tabular-nums; margin: 0; }
.gist { width: 100%; max-width: 560px; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.gist .field { margin: 0; }
.gist textarea { width: 100%; min-height: 110px; }

/* ---------- prompter: suggestions while two people talk ---------- */
.interview.prompter .action { justify-content: flex-start; gap: 18px; padding-top: 4px; }
.suggestion {
  flex-shrink: 0; width: 100%; text-align: left; transition: opacity 0.2s ease;
  background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 18px 20px; box-shadow: var(--lift);
}
.suggestion.dim { opacity: 0.6; }
.suggest-text { font-size: clamp(28px, 7.4vw, 36px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 14px; }
.captions {
  flex-shrink: 0; width: 100%; margin: 0; padding: 12px 16px; border-radius: 18px; text-align: left;
  background: rgba(255, 253, 249, 0.7); border: 1px dashed var(--accent-edge); color: var(--ink); font-weight: 600;
}
.captions:empty { display: none; }

/* ---------- admin: review page ---------- */
.review-turn {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 20px; margin: 0 0 14px;
}
.review-turn .q { font-size: 24px; line-height: 1.3; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.015em; }
.review-turn .why { color: var(--muted); font-style: italic; margin: 0 0 10px; }
.review-turn audio { width: 100%; margin: 6px 0; }
.review-turn .answer { white-space: pre-wrap; margin: 6px 0; }
.review-turn .plan { margin: 0 0 6px; font-weight: 700; }
.facts { color: var(--muted); font-size: 20px; }
.summary-box { background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding: 14px 16px; white-space: pre-wrap; }
.lead-in { font-size: 22px; line-height: 1.35; font-weight: 700; color: var(--muted); margin: 6px 0 2px; }
.lead { color: var(--muted); font-weight: 600; }
.review-turn .move, .status.complete, .status.started, .status.colour, .decision {
  display: inline-block; font: 500 15px/1 var(--mono); letter-spacing: 0.02em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 8px; vertical-align: middle;
}
.review-turn .move, .decision { color: var(--accent); background: var(--accent-soft); }
.status.complete { background: #dff5e6; color: #146c34; }
.status.started { background: var(--glow-soft); color: var(--warn); }
.status.colour { background: #eceaf0; color: var(--muted); }
.decision.switch { background: #efe3ff; color: #5b2aa8; }
.decision.seek_episode { background: var(--glow-soft); color: var(--warn); }
.producer { color: #5b2aa8; font-weight: 700; margin: 0 0 8px; }
.ledger .tally { font-size: 22px; margin: 0 0 10px; }
.ledger ul { list-style: none; padding: 0; margin: 0; }
.ledger li { padding: 8px 0; border-top: 1px solid var(--line); }

/* ---------- admin: blind model comparison ---------- */
.cut .context { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cut h2 { font-size: 22px; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%;
  padding: 16px 18px; border: 0; border-radius: 18px; background: #fff; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: transform 0.12s ease;
}
.option:active { transform: scale(0.99); }
.option.picked { background: var(--accent-soft); box-shadow: inset 0 0 0 2.5px var(--accent); }
.option .letter { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.option.picked .letter { background: var(--accent); color: #fff; }
.option .text { font-size: 22px; line-height: 1.35; font-weight: 700; }
.option .flags { display: block; font-size: 18px; font-weight: 800; color: #9a4400; margin-top: 6px; }
.option .who { display: block; font-size: 18px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.reveal-row { margin: 24px 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 18px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 800; }
#rounds { list-style: none; padding: 0; margin: 16px 0 0; }
#rounds li { padding: 10px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  table thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 2px 0; white-space: normal; display: flex; justify-content: space-between; gap: 12px; }
  td::before { content: attr(data-label); color: var(--muted); font-weight: 700; }
  td[data-label="Model"] { font-weight: 800; font-size: 20px; }
  td[data-label="Model"]::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  #app.enter > .page, .spinner, .art.writing, .sketching .art, .orb.speaking .bars i { animation: none; }
  .orb.speaking .bars i { height: 36px; }
  .btn, .choice, .bars i, .progress i, .catalog-item { transition: none; }
}
