/* Bug Me. A night canvas and one light: firefly yellow marks only what the person chooses or
   controls (the option they pick, the primary action, the mic, the lit stars). Everything else is
   quiet ink. Routes are symbols (○ settled for you, ◐ a quick check, ● needs you), not colours. */

:root {
  --night: #0f1226;
  --night-2: #171b33;
  --night-3: #1f2442;
  --line: #2a2f4d;
  --ink: #ecebf5;
  --ink-2: #9a9cb8;
  --ink-3: #8a8eae; /* at least 4.5:1 on every background shade (WCAG AA for small text) */
  --glow: #ffd84d;
  --glow-ink: #1a1500;
  --glow-soft: rgba(255, 216, 77, 0.14);
  --radius: 14px;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--body);
  color: var(--ink);
  background: var(--night);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
a:hover { text-decoration-color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--glow); color: var(--glow-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.quiet { color: var(--ink-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Bar ---------- */
.bar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px max(16px, 4vw); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font: 700 20px/1 var(--display); }
.bar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav { padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav:hover { color: var(--ink); }
.nav[aria-current="page"] { color: var(--ink); background: var(--night-3); }
.synthetic { margin-left: auto; font-size: 13px; color: var(--ink-3); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.synthetic:hover { color: var(--ink-2); }

.view { max-width: 860px; margin: 0 auto; padding: 24px max(16px, 4vw) 72px; }

/* ---------- Home ---------- */
.hero { text-align: left; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 4px 0 6px; }
.overnight { margin: 0 0 24px; color: var(--ink-2); font-size: 17px; }

/* The piles. The recommended one is the only place on Home with the accent. */
.piles { display: grid; gap: 14px; }
.pile { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--night-2); }
.pile h2 { font: 600 20px/1.25 var(--display); margin: 0 0 2px; }
.pile .quiet { margin: 0 0 8px; }
.pile .tally { margin: 0 0 14px; font: 14px var(--mono); color: var(--ink-2); white-space: pre-wrap; }
.pile.rec { padding: 22px 24px; border-color: var(--glow); background: linear-gradient(180deg, var(--glow-soft), transparent 70%), var(--night-2); }
.pile.rec h2 { font-size: clamp(22px, 3.4vw, 30px); }
.pile .eyebrow { margin: 0 0 6px; font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--glow); }
.peek { list-style: none; margin: 0 0 18px; padding: 0; color: var(--ink-2); font-size: 15px; }
.peek li { padding: 3px 0 3px 18px; position: relative; }
.peek li::before { content: "→"; position: absolute; left: 0; color: var(--ink-3); }
.other-piles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.all-clear { margin: 8px 0 0; }

.section-h { font-size: 15px; font-family: var(--body); font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; margin: 36px 0 10px; }
.agenda { margin-top: 12px; }
.agenda .item .q { font-size: 14.5px; color: var(--ink-2); }
.project-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 4px 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.pname { font: 600 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.pmeta { font-size: 13px; }
.items { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.item {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 10px; align-items: baseline;
  padding: 10px 8px; border-radius: 10px; text-decoration: none;
}
.item:hover { background: var(--night-2); }
.item .glyph { color: var(--ink-2); grid-row: span 2; }
.item .q { font-size: 15.5px; }
.item.pending { opacity: 0.6; }
.agenda .item { grid-template-columns: 28px 20px minmax(0, 1fr); }
.agenda .item .glyph { grid-row: auto; }
.agenda .change-note { grid-column: 3; }
.num { font: 13px var(--mono); color: var(--ink-3); text-align: right; }
.agenda .item.first { background: var(--night-2); }
.agenda .item.first .num { color: var(--glow); }
.change-note { display: block; grid-column: 2; font-size: 13px; color: var(--ink-2); }
.item.changed .change-note::before, .change-note::before { content: "↻ "; color: var(--glow); }
.list-block .items { margin-top: 0; }
.aside-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.aside-reason { grid-column: 1; color: var(--ink-2); font-size: 14px; }
.aside-item button { grid-row: span 2; grid-column: 2; }
.more-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; font-size: 15px; }

/* ---------- Buttons ---------- */
.primary {
  background: var(--glow); color: var(--glow-ink); border: 0; border-radius: 10px; padding: 11px 20px;
  font-weight: 700; cursor: pointer;
}
.primary.big { font-size: 17px; padding: 13px 28px; }
.primary:disabled { background: var(--night-3); color: var(--ink-3); cursor: not-allowed; }
.ghost { background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; cursor: pointer; color: var(--ink); }
.ghost:hover { border-color: var(--ink-3); }
.ghost.small { padding: 5px 10px; font-size: 14px; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }

/* ---------- Focus ---------- */
.focus-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 18px; font-size: 14px; }
.focus-bar a { text-decoration: none; color: var(--ink-2); }
.now:focus { outline: none; }
.card { animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card.steady { animation: none; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; color: var(--ink-3); font-size: 13px; }
.card .meta .glyph { color: var(--ink); font-size: 16px; }
.route-label { color: var(--ink-2); }
.chain { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.card h3 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.18; margin: 10px 0 18px; }
.resumed { border-left: 2px solid var(--ink-3); padding: 4px 0 4px 12px; color: var(--ink-2); font-size: 14px; }

/* The briefing comes before the question; the options are the big, obvious way to decide. */
.briefing { font-size: 17px; line-height: 1.6; color: var(--ink); margin: 12px 0 8px; max-width: 64ch; }
.decide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: start; margin: 6px 0 10px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 14px; }
.opt {
  position: relative; text-align: left; cursor: pointer; border-radius: 16px; padding: 18px 18px 16px;
  border: 2px solid var(--line); background: var(--night-2); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.opt:hover:not(:disabled), .opt:focus-visible { border-color: var(--glow); box-shadow: 0 0 0 4px var(--glow-soft); transform: translateY(-1px); }
.opt[aria-pressed="true"] { border-color: var(--glow); background: linear-gradient(180deg, var(--glow-soft), transparent), var(--night-2); }
.opt:disabled { cursor: default; transform: none; }
.opt:disabled:not([aria-pressed="true"]) { opacity: 0.55; }
.opt .key { position: absolute; top: 14px; right: 14px; font: 600 12px var(--mono); color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.opt .opt-label { display: block; font: 600 19px/1.25 var(--display); padding-right: 36px; margin-bottom: 8px; }
.opt .opt-desc { display: block; font-size: 14px; color: var(--ink-2); }
.procon { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.procon li { position: relative; padding: 2px 0 2px 20px; }
.procon li.pro::before { content: "+"; position: absolute; left: 3px; color: #8fd6a8; font-weight: 700; }
.procon li.con::before { content: "−"; position: absolute; left: 3px; color: #e8a0a0; font-weight: 700; }
.consequence { display: block; margin-top: 10px; font-size: 13.5px; color: var(--ink); }
.consequence::before { content: "⏱ "; color: var(--ink-3); }
.opt .agent-pick { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 8px; font-style: normal; }

/* Why: optional, to the side. */
.why-panel { border: 1px dashed var(--line); border-radius: 14px; padding: 12px; }
.why-panel label { display: block; font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.why-panel.conditions { border-style: solid; border-color: var(--glow); }
.why-panel .basis-row { flex-direction: column; }
.why-panel .mic { width: 100%; height: 40px; }
.why-panel .example { font-size: 13px; margin: 8px 0 0; }

/* Undo: a bar that drains while the answer waits to be sent. */
.undo-bar { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; margin: 4px 0 12px; padding: 12px 16px; border-radius: 12px; background: var(--night-3); border: 1px solid var(--line); }
.undo-bar .undo { color: var(--glow); font-weight: 700; }
.drain { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--glow); transform-origin: left; animation: drain var(--undo-ms, 4s) linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }

/* Other ways to answer: quieter than the options. Not now is a plain link. */
.other-ways { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 8px; }
.way { border: 1px solid var(--line); background: none; color: var(--ink-2); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.way:hover, .way[aria-pressed="true"] { color: var(--ink); border-color: var(--ink-3); }
.not-now { margin-left: auto; color: var(--ink-3); font-size: 14px; }
.mode-panel { margin: 4px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--night-2); }
.mode-panel label { display: block; font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
.mode-panel textarea { width: 100%; }
.mode-panel .row { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.ask-answer { margin-top: 12px; padding: 12px 14px; border-left: 2px solid var(--glow); background: var(--night-3); border-radius: 0 10px 10px 0; }
.ask-answer.missing { border-left-color: var(--ink-3); }
.ask-answer p { margin: 0 0 6px; }

.why { color: var(--ink-2); font-size: 15px; margin: 0 0 6px; }
.why q { color: var(--ink); font-style: normal; }
.why-mark { color: var(--glow); margin-right: 6px; }
details.more { margin: 10px 0 18px; color: var(--ink-2); font-size: 15px; }
details.more summary { cursor: pointer; color: var(--ink-3); font-size: 14px; }
details.more p { margin: 10px 0 0; }
.briefing-text { color: var(--ink); line-height: 1.6; }
.original q { color: var(--ink); }

.variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 4px 0 8px; }
.variant { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.variant h4 { margin: 0; padding: 8px 12px; font-size: 13px; background: var(--night-2); color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; }
.variant iframe { width: 100%; height: 400px; border: 0; display: block; }

.basis label, .punt label { display: block; font-size: 15px; color: var(--ink-2); margin: 16px 0 8px; }
.basis-row { display: flex; gap: 8px; align-items: stretch; }
textarea {
  flex: 1; min-height: 64px; resize: vertical; border-radius: 10px; border: 1px solid var(--line);
  background: var(--night-2); color: var(--ink); padding: 11px 13px; font-size: 15.5px;
}
textarea:focus { border-color: var(--ink-3); outline: none; }
textarea:disabled { opacity: 0.5; }
/* The voice firefly, top-right on every view. Its mood shows whether it is listening. */
.voice { position: fixed; top: 6px; right: max(10px, 2vw); z-index: 20; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.voice-btn { pointer-events: auto; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; position: relative; }
.voice-btn:focus-visible { outline: 2px solid var(--glow); outline-offset: 2px; }
.voice-mood { position: absolute; inset: 0; display: block; }
.voice-clip { width: 64px; height: 64px; display: block; }
.voice-clip.still { display: none; }
/* Off: a small microphone badge says the firefly is also the way to talk. */
.voice[data-state="off"] .voice-btn::after { content: "🎙"; position: absolute; right: 0; bottom: 2px; font-size: 13px; line-height: 1; background: var(--night-3); border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px; }
.voice[data-state="listening"] .voice-btn::after { content: ""; position: absolute; right: 4px; bottom: 6px; width: 10px; height: 10px; border-radius: 50%; background: #ff5d5d; box-shadow: 0 0 8px #ff5d5d; }
.voice[data-state="paused"] .voice-btn::after { content: ""; position: absolute; right: 4px; bottom: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.voice-heard { margin: 2px 0 0; max-width: 260px; text-align: right; font-size: 14px; color: var(--ink); font-style: italic; background: var(--night-2); border-radius: 10px; padding: 0 8px; }
.voice-heard:empty, .voice-note:empty { display: none; }
.voice-note { margin: 2px 0 0; max-width: 240px; text-align: right; font-size: 12px; color: var(--ink-3); }
.bar { padding-right: calc(max(10px, 2vw) + 72px); }
.mic { flex: none; width: 56px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; background: var(--night-2); color: var(--glow); font-size: 20px; }
.mic[aria-pressed="true"] { background: var(--glow); color: var(--glow-ink); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.7; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.actions .ghost { margin-left: auto; }

.punt { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--night-2); }
.lead { font: 600 20px/1.3 var(--display); margin: 0 0 12px; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: 14.5px; }
.chip-btn[aria-pressed="true"] { border-color: var(--glow); background: var(--glow-soft); }

.followup { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); animation: rise 0.3s ease; }
.followup p { margin: 0 0 10px; }
.followup.push { border-color: var(--ink-3); }
.followup .fact-edit { width: 100%; }
.senddown, .meta-line { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }
.rerouted { border-left: 2px solid var(--glow); padding: 6px 12px; font-size: 14.5px; }
.after-marks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.after-marks button[aria-pressed], .marks button { font-size: 13px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }
.after-marks button[aria-pressed="true"], .marks button[aria-pressed="true"] { border-color: var(--glow); color: var(--ink); }
.adjusted { color: var(--ink); font-size: 14px; border-left: 2px solid var(--glow); padding: 4px 0 4px 12px; margin: 10px 0; }
.example { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }

/* ---------- Between, pages ---------- */
.between { text-align: center; padding: 48px 0; }
.start-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 8px; }
.between .start-row { justify-content: center; margin: 24px 0; }
.glyph-big { font-size: 40px; color: var(--glow); margin: 0; }
.page h1 { font-size: clamp(28px, 4.4vw, 38px); margin: 8px 0 6px; }
.settled, .rules { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 0; }
.settled li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 10px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.settled li > :not(.glyph) { grid-column: 2; }
.settled .glyph { color: var(--glow); }
.settled-body .q { display: block; }
.settled .picked { display: block; color: var(--ink-2); font-size: 14.5px; }
.settled .picked::before { content: "→ "; color: var(--ink-3); }
.why-s summary { cursor: pointer; color: var(--ink-3); font-size: 13px; }
.why-s p { color: var(--ink-2); font-size: 14px; margin: 6px 0 0; }
.marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.settled li.changed { background: var(--glow-soft); border-radius: 10px; }
.rules li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rid { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 4px; }
.rtext { background: none; border: 0; padding: 0; text-align: left; cursor: text; color: var(--ink); font-size: 15.5px; }
.rtext:hover { text-decoration: underline dotted var(--ink-3); }
.rules textarea { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.facts, .note { padding-left: 18px; display: grid; gap: 8px; }
.facts .src { display: block; color: var(--ink-3); font-size: 13px; }
.facts li.new { color: var(--glow); }

dialog.ts { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: min(420px, calc(100vw - 32px)); background: var(--night-2); color: var(--ink); }
dialog.ts::backdrop { background: rgba(8, 10, 22, 0.75); }
dialog.ts h2 { font-size: 20px; margin: 0 0 8px; }
dialog.ts .ts-box { min-height: 70px; margin: 12px 0; }

/* ---------- Tours (driver.js, themed) ---------- */
/* The tour guides; it never blocks the page. driver.js turns off clicks everywhere but the highlighted
   element (.driver-active *); here the whole page stays usable and only the overlay ignores clicks. */
.driver-active * { pointer-events: auto; }
.driver-overlay, .driver-overlay * { pointer-events: none !important; }
.driver-popover.bm-tour { background: var(--night-3); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); max-width: min(340px, calc(100vw - 32px)); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8); }
.driver-popover.bm-tour .driver-popover-title { font: 600 18px/1.25 var(--display); color: var(--ink); }
.driver-popover.bm-tour .driver-popover-description { font: 15px/1.5 var(--body); color: var(--ink-2); }
.driver-popover.bm-tour .driver-popover-progress-text { color: var(--ink-3); font-size: 12px; }
.driver-popover.bm-tour .driver-popover-footer button { background: var(--glow); color: var(--glow-ink); border: 0; border-radius: 8px; padding: 7px 12px; font: 700 14px var(--body); text-shadow: none; }
.driver-popover.bm-tour .driver-popover-close-btn { color: var(--ink-3); }
.driver-popover.bm-tour .driver-popover-arrow-side-top { border-top-color: var(--night-3); }
.driver-popover.bm-tour .driver-popover-arrow-side-bottom { border-bottom-color: var(--night-3); }
.driver-popover.bm-tour .driver-popover-arrow-side-left { border-left-color: var(--night-3); }
.driver-popover.bm-tour .driver-popover-arrow-side-right { border-right-color: var(--night-3); }
.driver-popover.bm-tour button.bm-example { margin-top: 10px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: 14px var(--body); cursor: pointer; }
.tours-btn { background: none; border: 1px solid var(--line); cursor: pointer; }
dialog.tours { max-width: min(520px, calc(100vw - 32px)); }
.tour-list { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 4px; }
.tour-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px; cursor: pointer; color: var(--ink); }
.tour-item:hover { background: var(--night-3); }
.tour-blurb { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }

@media (max-width: 760px) {
  .decide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  /* Phone bar: logo and the synthetic label on the first line (clear of the corner firefly, which
     is 64px tall), then the views as one row that scrolls sideways instead of wrapping. */
  .bar { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 2px; padding: 8px 16px 6px; }
  .brand { grid-row: 1; grid-column: 1; min-height: 64px; }
  .synthetic { grid-row: 1; grid-column: 2; margin: 0 72px 0 0; justify-self: start; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bar nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .bar nav::-webkit-scrollbar { display: none; }
  .nav { white-space: nowrap; font-size: 14px; padding: 6px 9px; }
  /* What the firefly heard: a panel along the bottom of the screen, not a bubble over the menu. */
  .voice-says { position: fixed; left: 16px; right: 16px; bottom: 16px; pointer-events: none; background: var(--night-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
  .voice-says:not(:has(p:not(:empty))) { display: none; }
  .voice-says .voice-heard, .voice-says .voice-note { max-width: none; text-align: left; background: none; padding: 0; margin: 0; }
  .pile.rec { padding: 18px 16px; }
  .basis-row { flex-direction: column; }
  .mic { width: 100%; height: 46px; }
  .variant iframe { height: 340px; }
  .actions .ghost { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .voice-clip.moving { display: none; }
  .voice-clip.still { display: block; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
