/* The live screen. Ink background, paper text, the three dots lit in light green.
   Every state has its own cue in a fixed place, told apart by motion and shape, never by colour alone. */
.lv {
  --ink: #101411;
  --cream: #f8f7f2;
  --cream-2: #979894;
  --cream-3: rgba(248, 247, 242, 0.2);
  --lit: #8bdc8f;
  --stop: #d0392b;
  --stop-down: #b83024;
  /* The same colours as triplets, for the see-through tints (glass.css redefines them per scheme in the app). */
  --lv-fg-rgb: 248, 247, 242;
  --lv-bg-rgb: 16, 20, 17;
  --lit-rgb: 139, 220, 143;
  --lv-ear: #b7b7b3;
  --lv-on-stop: #fff;
  /* How far back each quieter state steps (opacity), kept as tokens so a light scheme can match the dark one's contrast. */
  --lv-said: 0.42;
  --lv-soft: 0.66;
  --lv-past: 0.4;
  --lv-struck: 0.38;
  --lv-struck-past: 0.24;
  --lv-q: 0.74;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --roll: 620ms;
  --col: min(calc(100% - 48px), 1040px);
  --r-size: clamp(26px, 1.4rem + 1.9vw, 50px);
  --q-size: clamp(17px, 0.9rem + 0.35vw, 21px);
  --runway: 2400px; /* RUNWAY in live.js */
  --col-gap: 52px;
  --xf: 180ms;
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) auto 104px;
  background: var(--ink);
  color: var(--cream);
  font-family: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.lv[hidden] { display: none; }
.lv :focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
.lv ::selection { background: var(--cream); color: var(--ink); }
.lv button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.lv svg { display: block; fill: none; stroke: none; overflow: visible; }
/* Duo-solid icon layers (live.js ICONS): solid, second tone, firm stroke, stroke in the second tone. */
.lv svg .f { fill: currentColor; }
.lv svg .d { fill: currentColor; opacity: var(--ic-tint, 0.42); }
.lv svg .s, .lv svg .sd { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.lv svg .sd { opacity: var(--ic-tint, 0.42); }

/* ───────── The corner: dots, name, one tiny label ───────── */
.lv-top { display: flex; align-items: center; padding: 0 28px; }
.lv-id { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; }
.lv-name { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; color: var(--cream); }
.lv-state { font: 500 12px/1 "Geist Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-2); padding-left: 2px; transition: opacity 0.4s; }
.lv-dots { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 46px; height: 20px; }
.lv-dots i {
  display: block; flex: none; width: 10px; height: 10px; border-radius: 6px; background: var(--lit);
  transition: width 0.45s var(--ease), height 0.45s var(--ease), opacity 0.45s, background 0.3s, box-shadow 0.3s;
  animation: lv-breathe 3.6s ease-in-out infinite;
}
.lv-dots i:nth-child(2) { animation-delay: 0.3s; }
.lv-dots i:nth-child(3) { animation-delay: 0.6s; }
.lv[data-lost="1"] .lv-dots i { animation: none; opacity: 0.35; transform: none; background: var(--cream-2); box-shadow: none; }
@keyframes lv-breathe { 0%, 100% { opacity: 0.5; transform: scale(0.82); } 50% { opacity: 1; transform: scale(1); } }

/* Hearing the other person: the dots answer back, a quick ripple running through them. */
.lv[data-activity="other"] .lv-dots i { animation: lv-hear 0.95s ease-in-out infinite; opacity: 1; }
.lv[data-activity="other"] .lv-dots i:nth-child(2) { animation-delay: 0.14s; }
.lv[data-activity="other"] .lv-dots i:nth-child(3) { animation-delay: 0.28s; }
@keyframes lv-hear { 0%, 100% { transform: scale(0.75); } 40% { transform: scale(1.45); } }

/* Hearing you: quieter, and a different shape. The dots flatten into three low dashes and step back. */
.lv[data-activity="user"] .lv-dots i { width: 12px; height: 3px; border-radius: 2px; animation: lv-step-back 2.8s ease-in-out infinite; }
.lv[data-activity="user"] .lv-dots i:nth-child(2) { animation-delay: 0.2s; }
.lv[data-activity="user"] .lv-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes lv-step-back { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.55; } }

/* Paused: hollow and still. */
.lv[data-paused="1"] .lv-dots i { width: 10px; height: 10px; border-radius: 6px; animation: none; transform: none; background: transparent; box-shadow: inset 0 0 0 1.5px var(--cream-2); opacity: 1; }

/* Round 21 (the owner: "just the three dots moving to the audibles with listening… labeled tiny"; no speaker pill): the
   word beside the dots is one tiny label, "Listening…" or "Thinking…" (data-label), in the screen's mono label style at
   full --cream-2 (4.5:1 or better on --ink in both schemes). Hearing you, paused, not listening: no label; it fades out
   in place (hidden, not emptied), so nothing beside it moves. */
.lv-dots { width: 52px; }
.lv-dots i { width: 11px; height: 11px; }
.lv-state { font-size: 11.5px; letter-spacing: 0.08em; color: var(--cream-2); padding-left: 0; opacity: 1; transition: opacity 0.3s, visibility 0s; }
.lv:not([data-label="listening"]):not([data-label="thinking"]) .lv-state { opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }

/* The dots following the sound (live.js setLevel): the frame loop writes each dot's transform and opacity, so the
   activity-driven keyframes step aside while it does. The user's own voice keeps its dashes. */
.lv[data-level="1"]:not([data-activity="user"]) .lv-dots i { animation: none; transition: width 0.45s var(--ease), height 0.45s var(--ease), background 0.3s, box-shadow 0.3s; }

/* Round 20, the rule: the answer's place only ever holds words to say. A gap's or a failure's status is this small label
   at the lower corner of the pair, outside the response: monospaced capitals like the other labels, muted, in a quiet
   outline, so it reads at a glance and can never be taken for the script. A note under an answer (a part the notes do
   not cover) uses the same label, then the part in small quiet type. */
.lv-tag {
  flex: none; align-self: flex-start; display: inline-flex; align-items: center; margin: 0.5em 0 0; padding: 5px 9px 5px;
  border: 1px solid var(--cream-3); border-radius: 999px;
  font: 500 11.5px/1 "Geist Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-2);
}
/* (A gap's line is short: its response does not stretch, so the label sits right under the line, at its corner.) */
.pair.say-line .r { flex: 0 1 auto; }
.lv-cue { flex: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0.5em 0 0; font-size: 15px; line-height: 1.4; font-weight: 450; color: var(--cream-2); }
.lv-cue .lv-tag { margin: 0; }

/* ───────── The stage: the rolling pairs ───────── */
/* The stage is a real scroller (round 17). Live, it rests at the bottom of an empty runway (the live layout sits below
   it), so the first movement up is the browser's own scroll; looking back, it holds the pairs as one column. */
.lv-stage {
  position: relative; overflow-x: hidden; overflow-y: scroll; scrollbar-width: none; overscroll-behavior: contain; overflow-anchor: none;
  -webkit-overflow-scrolling: touch; touch-action: pan-y;
}
.lv-stage::-webkit-scrollbar { display: none; }
.lv:not(.can-look) .lv-stage { overflow-y: hidden; } /* nothing earlier to look back at */
.lv-runway { position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--runway) + 100%); visibility: hidden; pointer-events: none; }
/* Over the stage (it does not scroll with it): earlier pairs fade out as they roll off the top. Looking back it is a
   thin edge, so every line reads at full contrast. */
.lv-fade, .lv-ghosts { grid-row: 2 / 3; grid-column: 1; position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.lv-fade {
  height: calc(var(--anchor, 200px) * 0.7); z-index: 2; transform-origin: 50% 0; transition: transform var(--xf) var(--ease);
  background: linear-gradient(to bottom, var(--ink), rgba(var(--lv-bg-rgb), 0));
}
.lv-empty {
  position: absolute; left: 0; right: 0; top: calc(var(--runway) + var(--anchor, 27vh)); width: var(--col); margin: 0 auto;
  font-size: var(--q-size); line-height: 1.5; color: var(--cream-2); padding-right: 30%;
}
.lv-measure { position: absolute; left: 0; right: 0; top: 0; visibility: hidden; pointer-events: none; }

.pair {
  position: absolute; left: 0; right: 0; top: var(--runway); width: var(--col); margin: 0 auto;
  display: flex; flex-direction: column;
  transition: transform var(--roll) var(--ease), opacity var(--roll) var(--ease), max-height var(--roll) var(--ease);
  will-change: transform;
}
.pair.entering { opacity: 0; }
.pair.leaving { opacity: 0 !important; transition: opacity 0.25s; }
.pair.gone { opacity: 0 !important; }
/* Looking back (round 13; scrolled natively since round 17): wheel, trackpad, finger, a held mouse button or the keys;
   no scrollbar. While he reads earlier pairs, a quiet pill at the bottom says a newer answer is there and takes him back. */
.lv.dragging .lv-stage { -webkit-user-select: none; user-select: none; cursor: grabbing; }

/* The column: every pair in order at one readable size and full contrast, code whole. The live pair keeps its live box
   at the end, so the bottom of the column is exactly the live layout. Nothing in it animates size or position. */
.lv.col .lv-runway { position: relative; width: auto; height: var(--anchor, 200px); }
.lv.col .lv-stage > .pair { position: relative; top: auto; transform: none; margin: 0 auto var(--col-gap); will-change: auto; opacity: 1; transition: opacity var(--xf) linear; }
.lv.col .lv-stage > .pair.now { margin-bottom: 0; }
.lv.col .lv-stage > .pair.leaving { position: absolute; }
.lv.col .pair .q, .lv.col .pair .r, .lv.col .pair .r-in, .lv.col .ln { transition: none; }
.lv.col .lv-stage > .pair:not(.now) .r { flex: none; overflow: visible; max-height: none; padding-bottom: 0; -webkit-mask-image: none; mask-image: none; }
.lv.col .lv-stage > .pair:not(.now) .more-hint, .lv.col .lv-stage > .pair:not(.now) .think { display: none; }
/* the said-part fade, the checking look and the reading roll belong to the live pair only */
.lv.col .lv-stage > .pair:not(.now) .ln.said { opacity: 1; }
.lv.col .lv-stage > .pair:not(.now) .r-in { opacity: 1; font-weight: 500; }
.lv.col .lv-stage > .pair:not(.now) .q::after { display: none; }
.lv.col .lv-fade { transform: scaleY(0.22); }

/* Changing look: the outgoing look (copies laid over the stage) fades out while the incoming one fades in. */
.lv-ghosts { bottom: 0; overflow: hidden; z-index: 1; }
.lv-ghost-set { position: absolute; inset: 0; transition: opacity var(--xf) linear; }
.lv-ghost-set.out { opacity: 0; }
/* back to live from further up: the column drifts up and away while the live layout rises into place */
.lv-ghost-set.up { transform: translateY(-56px) !important; transition: opacity var(--xf) linear, transform calc(var(--xf) * 1.5) var(--ease); }
.lv.rise0 .lv-stage { transform: translateY(40px); transition: none; }
.lv.rise1 .lv-stage { transition: transform calc(var(--xf) * 1.5) var(--ease); }
.lv-ghost-set * { animation: none !important; transition: none !important; }
.lv.snap .pair .q, .lv.snap .pair .r, .lv.snap .pair .r-in, .lv.snap .ln { transition: none !important; }
.lv.xf0 .lv-stage > .pair:not(.xf-keep) { opacity: 0 !important; transition: none !important; }
.lv.xf1 .lv-stage > .pair:not(.xf-keep) { transition: opacity var(--xf) linear !important; }

.lv .lv-back { /* .lv: above the plain button reset, so its ink background and edge show over the text */
  grid-row: 2 / 3; grid-column: 1; /* the stage's grid area (an absolute grid child: both lines, or it runs to the edge) */
  position: absolute; left: 50%; bottom: 14px; z-index: 3; transform: translateX(-50%); max-width: calc(100% - 32px);
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px 0 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  border: 1px solid var(--cream-3); border-radius: 15px; background: var(--ink);
  font: 500 12px/1 "Geist Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-2);
  animation: lv-fade 0.35s both;
}
.lv-back::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lv .lv-back:hover, .lv .lv-back:focus-visible { color: var(--cream); border-color: var(--cream-2); }
.lv-back[hidden] { display: none; }
.lv.still .pair { transition: opacity 0.25s; }

.pair .q { overflow-wrap: anywhere;
  margin: 0 0 0.9em; max-width: 46em; font-size: var(--q-size); line-height: 1.42; font-weight: 450; color: rgba(var(--lv-fg-rgb), var(--lv-q));
  transition: font-size var(--roll) var(--ease), color var(--roll), margin var(--roll);
}
.pair .q:empty { min-height: 1.42em; }
.pair .r {
  position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; /* at its edge, the next gesture moves the pairs */
  font-size: var(--r-size); line-height: 1.27; font-weight: 500; letter-spacing: -0.016em;
  transition: font-size var(--roll) var(--ease), color var(--roll);
  padding-bottom: 0.6em;
}
.pair .r::-webkit-scrollbar { display: none; }
.pair .r.has-more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2.2em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 2.2em), transparent); }
.pair .r.scrolled { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 0.3em, #000 calc(100% - 2.2em), transparent); mask-image: linear-gradient(to bottom, transparent, #000 0.3em, #000 calc(100% - 2.2em), transparent); }
.pair .r.scrolled:not(.has-more) { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 0.3em); mask-image: linear-gradient(to bottom, transparent, #000 0.3em); }
.pair .r-in { max-width: 21em; }

/* lines: the said part fades a little and stays readable */
.ln { color: var(--cream); transition: opacity 0.7s var(--ease); text-wrap: pretty; overflow-wrap: anywhere; }
.ln + .ln { margin-top: 0.28em; }
.ln.said { opacity: var(--lv-said); }
/* A long answer in two parts (deep Context follow-up): the first two lines, the direct answer, at full size; the rest
   just below, a little smaller, to continue into. Only the size and a small gap change: the solid, tentative, said and
   struck looks apply to both parts exactly as before. */
.ln.more { font-size: 0.84em; line-height: 1.42; }
.ln.more-first { margin-top: 0.7em; }
.ln .w { animation: lv-ink 0.32s ease-out both; }
@keyframes lv-ink { from { opacity: 0; } }

/* Code (Kyle, 2026-11-28: "so that I can easily read the code and know that part is code"; 2026-11-29: "Color code
   for the code should match what users are used to software"). The sayable line stays large; code sits under it in
   the code font, coloured by role the way VS Code's default themes colour them (public/highlight.js names the roles):
   Dark+ here, Light+ in the light scheme (glass.css). Two looks by kind: a shell block is a terminal (always dark, a
   quiet "$" before each command), anything else an editor panel in the theme's colours. A block of three lines or
   more carries a header with its language and a copy button; one or two lines are a compact strip a size larger.
   A long line wraps (never a sideways scroll: the reader is glancing, and a narrow screen has no room to pan) with a
   hanging indent under its own indentation, so a wrapped line never reads as a new one. */
.lv {
  --code-size: max(13.5px, 0.42em);
  --code-fg: #d4d4d4;
  --code-k: #569cd6;  /* keyword, declaration, literal */
  --code-x: #c586c0;  /* control flow, import, a pipe */
  --code-f: #dcdcaa;  /* function, method, decorator, a command */
  --code-t: #4ec9b0;  /* type, class, table */
  --code-v: #9cdcfe;  /* variable, property, JSON key */
  --code-s: #ce9178;  /* string */
  --code-n: #b5cea8;  /* number */
  --code-c: #6a9955;  /* comment */
  --code-o: #4ec9b0;  /* shell flag */
  --code-p: #8c8c8c;  /* a prompt */
  --code-a: #a8a8a8;  /* punctuation */
  --code-label: rgba(var(--lv-fg-rgb), 0.62);
  --code-bg: rgba(var(--lv-fg-rgb), 0.055);
  --code-edge: rgba(var(--lv-fg-rgb), 0.08);
  /* The terminal: the same in both schemes, as terminals are. */
  --term-bg: #0a0a0a;
  --term-edge: rgba(255, 255, 255, 0.2); /* a clear edge: on the dark screen the terminal is a separate surface */
}
.ln.code {
  --pad: 1em;
  --pre: 0;
  position: relative;
  font: 400 var(--code-size)/1.55 "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0; white-space: pre-wrap; overflow-wrap: anywhere;
  font-variant-ligatures: none; tab-size: 2;
  color: var(--code-fg); direction: ltr; unicode-bidi: isolate; text-align: left; text-wrap: wrap;
  background: var(--code-bg); box-shadow: inset 1px 0 0 var(--code-edge), inset -1px 0 0 var(--code-edge); margin-top: 0;
  padding: 0 var(--pad) 0 calc(var(--pad) + (var(--ind, 0) + var(--pre) + 2) * 1ch); text-indent: calc((var(--ind, 0) + var(--pre) + 2) * -1ch);
}
.ln.code.code-short { --code-size: max(15px, 0.56em); padding-right: 3em; }
/* The terminal: dark in both schemes, Dark+ colours, each command after a quiet "$" (drawn here, not part of the line,
   so a copy is only the command). A line the model wrote with its own "$" keeps it, and then the page adds none. */
.ln.code.term {
  --code-fg: #d4d4d4; --code-f: #dcdcaa; --code-t: #4ec9b0; --code-o: #4ec9b0; --code-v: #9cdcfe; --code-s: #ce9178; --code-n: #b5cea8; --code-c: #6a9955;
  --code-x: #c586c0; --code-k: #569cd6; --code-p: #8c8c8c; --code-a: #a8a8a8; --code-label: rgba(255, 255, 255, 0.6);
  --code-bg: var(--term-bg); --code-edge: var(--term-edge);
}
.ln.code.prompt { --pre: 2; }
.ln.code.prompt::before { content: "$ "; color: var(--code-p); user-select: none; -webkit-user-select: none; }
/* A code line said (or struck) greys its text, not its panel: the block stays one even panel while it fades line by line. */
.ln.code.said, .ln.code.struck { opacity: 1; }
.ln.code.said > *, .ln.code.said::before { opacity: var(--lv-said); transition: opacity 0.7s var(--ease); }
.ln.code.struck > * { opacity: var(--lv-struck); }
.ln.code.said > .code-copy { opacity: 1; }
.lv.col .lv-stage > .pair:not(.now) .ln.code.said > *, .pair.past .ln.code.said > * { opacity: 1; }
.t-k { color: var(--code-k); }
.t-kl { color: var(--code-k); font-weight: 600; } /* a SQL clause opening a line: the query's shape */
.t-x { color: var(--code-x); }
.t-f { color: var(--code-f); }
.t-t { color: var(--code-t); }
.t-v { color: var(--code-v); }
.t-a { color: var(--code-a); }
.t-s { color: var(--code-s); }
.t-n { color: var(--code-n); }
.t-c { color: var(--code-c); }
.t-o { color: var(--code-o); white-space: nowrap; } /* a flag never breaks after its "--" */
.t-p { color: var(--code-p); }
/* Inline code in a sentence: the code font, lighter and smaller than the words around it, on a faint tint, kept left
   to right inside any language. It flows with the sentence and wraps only at its own spaces (each word is kept whole,
   .nb: never "--" on one line and "previous" on the next); a chip of 24 characters or fewer moves to the next line whole.
   A command inside a sentence keeps its colours (the editor colours, readable on the page's own background). */
.ln .cd, .depth .cd {
  display: inline; white-space: pre-wrap; -webkit-box-decoration-break: clone; box-decoration-break: clone; text-indent: 0;
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.62em; line-height: 1.3; font-weight: 400; letter-spacing: -0.01em;
  color: var(--cream); background: var(--code-bg); box-shadow: inset 0 0 0 1px var(--code-edge); border-radius: 0.3em; padding: 0.08em 0.34em; margin: 0 0.04em;
  direction: ltr; unicode-bidi: isolate; vertical-align: 0.08em;
}
.depth .cd { font-size: 0.86em; vertical-align: 0.04em; }
.ln .cd.short { display: inline-block; }
.ln .cd .nb { white-space: nowrap; }
.r-in { max-width: 21em; }
.pair .r-in:has(.code) { max-width: none; }
.ln.code.code-first { padding-top: 0.75em; border-radius: 12px 12px 0 0; box-shadow: inset 1px 0 0 var(--code-edge), inset -1px 0 0 var(--code-edge), inset 0 1px 0 var(--code-edge); }
.ln.code.code-last { padding-bottom: 0.75em; border-radius: 0 0 12px 12px; box-shadow: inset 1px 0 0 var(--code-edge), inset -1px 0 0 var(--code-edge), inset 0 -1px 0 var(--code-edge); }
.ln.code.code-first.code-last { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--code-edge); }
.ln.code.code-short.code-first { padding-top: 0.6em; }
.ln.code.code-short.code-last { padding-bottom: 0.6em; }
/* The header of a longer block: its language, quiet, and room for the copy button. */
.ln.code.has-head { padding-top: calc(0.75em + 26px); }
.ln.code.has-head::after {
  content: attr(data-label); position: absolute; left: var(--pad); top: 10px; text-indent: 0;
  font: 500 11.5px/16px "Mona Sans", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.04em; color: var(--code-label); pointer-events: none;
}
/* Copy: a quiet icon button at the block's top right (its icon drawn here: nothing under a line carries markup). */
.ln.code .code-copy {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 7px; text-indent: 0;
  display: grid; place-items: center; color: var(--code-label); opacity: 0.75; transition: opacity 0.15s, background 0.15s;
}
.ln.code.code-short .code-copy { top: 50%; transform: translateY(-50%); }
.ln.code.code-short.code-first:not(.code-last) .code-copy { top: 6px; transform: none; }
.ln.code .code-copy::before {
  content: ""; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='7' y='7' width='10' height='10' rx='2.4'/%3E%3Cpath d='M13 4.6A1.9 1.9 0 0 0 11.2 3H5a2 2 0 0 0-2 2v6.2A1.9 1.9 0 0 0 4.6 13'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='7' y='7' width='10' height='10' rx='2.4'/%3E%3Cpath d='M13 4.6A1.9 1.9 0 0 0 11.2 3H5a2 2 0 0 0-2 2v6.2A1.9 1.9 0 0 0 4.6 13'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ln.code .code-copy.copied::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.6 3.4 7.4-7.8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.6 3.4 7.4-7.8'/%3E%3C/svg%3E");
}
.ln.code .code-copy:hover, .ln.code .code-copy:focus-visible, .ln.code .code-copy.copied { opacity: 1; background: rgba(127, 127, 127, 0.16); }
.pair.past .code-copy { display: none; }
/* Rolled up, a pair shows its first words: a code panel under them would only peek in as a bar. */
.pair.past .ln:not(.code) ~ .ln.code { display: none; }
.ln:not(.code) + .ln.code { margin-top: 1em; }
.ln.code + .ln:not(.code) { margin-top: 0.5em; }
.ln.code.code-last + .ln.code.code-first { margin-top: 0.6em; }

/* An explanation laid out to follow while speaking: a step the model wrote as a list line hangs under its marker (a
   quiet dot for "-", its own number for "1."), so the steps read as steps; the detail after the first lines is a
   little quieter than the line to say; a key term the model marked is a step firmer, never louder. */
.ln.item { position: relative; padding-left: 1.05em; }
.ln.item:not(.num)::before { content: ""; position: absolute; left: 0.28em; top: 0.6em; width: 0.24em; height: 0.24em; border-radius: 50%; background: rgba(var(--lv-fg-rgb), 0.5); }
.ln.item.num { padding-left: 1.05em; text-indent: -1.05em; font-variant-numeric: tabular-nums; }
.ln.item + .ln.item { margin-top: 0.22em; }
.ln:not(.item) + .ln.item, .ln.item + .ln:not(.item):not(.code) { margin-top: 0.45em; }
.pair .ln.more-first.more-first { margin-top: 0.7em; }
.ln.more:not(.said):not(.struck) { color: rgba(var(--lv-fg-rgb), 0.9); }
.ln .em, .depth .em { font-weight: 600; }

.pair.nin .ln { color: var(--cream-2); font-style: italic; font-weight: 450; }
/* A tentative answer: shown before the other person finished. Slightly softer, with a small thinking mark beside
   the question, until it is final. A replacement happens in place. */
/* Round 11: obviously provisional at a glance from a metre away, and never broken-looking. While the other person is
   still talking, the question carries a quiet "still listening" marker (a pill with three slow dots), and the response
   is drawn in a light weight and a step dimmer. When it becomes final the weight and the brightness settle in place;
   nothing moves. */
.pair .r-in { transition: opacity 0.35s, font-weight 0.35s; }
.pair.tentative .r-in { opacity: var(--lv-soft); font-weight: 300; }
.pair.tentative .q::after {
  content: "still listening"; display: inline-flex; align-items: center; margin-left: 0.7em; padding: 0.12em 0.7em 0.14em 1.9em; vertical-align: 0.08em;
  border: 1px solid rgba(var(--lv-fg-rgb), 0.28); border-radius: 1em; font: 500 0.62em/1.3 "Geist Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-2);
  background:
    radial-gradient(circle, var(--lit) 0.15em, transparent 0.18em) 0.45em 50% / 0.4em 0.4em no-repeat,
    radial-gradient(circle, var(--lit) 0.15em, transparent 0.18em) 0.85em 50% / 0.4em 0.4em no-repeat,
    radial-gradient(circle, var(--lit) 0.15em, transparent 0.18em) 1.25em 50% / 0.4em 0.4em no-repeat;
  animation: tent 1.6s ease-in-out infinite; }
@keyframes tent { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pair.tentative .q::after { animation: none; } }
/* Round 13: "checking". The other person has finished, and a check against the notes may still change the answer: the
   same provisional weight and brightness as a tentative answer, and the same pill, with one slow dot and the word
   "checking". Both pills are the same width (the font is monospaced), so going from one to the other moves nothing.
   When the check is in, the answer settles in place to its solid look; nothing about it changes after that. */
.pair.tentative .q::after, .pair.checking .q::after { min-width: 15ch; justify-content: flex-start; }
.pair.checking .r-in { opacity: var(--lv-soft); font-weight: 300; }
.pair.checking:not(.tentative) .q::after {
  content: "checking"; display: inline-flex; align-items: center; margin-left: 0.7em; padding: 0.12em 0.7em 0.14em 1.9em; vertical-align: 0.08em;
  border: 1px dashed rgba(var(--lv-fg-rgb), 0.28); border-radius: 1em; font: 500 0.62em/1.3 "Geist Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-2);
  background: radial-gradient(circle, var(--lit) 0.15em, transparent 0.18em) 0.85em 50% / 0.4em 0.4em no-repeat;
  animation: tent 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pair.checking .q::after { animation: none; } }
/* A line the check found unsupported while the user was already saying it: struck through where it stands. */
.ln.struck { opacity: var(--lv-struck); text-decoration: line-through; text-decoration-thickness: 0.06em; text-decoration-color: var(--cream-2); }
.pair.past .ln.struck { opacity: 0.6; }
/* (inline code is its own box, which a line's strike does not reach: it is struck too) */
.ln.struck .cd { text-decoration: line-through; text-decoration-thickness: 0.06em; text-decoration-color: var(--cream-2); }

.more-hint {
  flex: none; align-self: flex-start; margin: 6px 0 2px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px;
  border: 1px solid var(--cream-3); border-radius: 15px; background: var(--ink);
  font: 500 12px/1 "Geist Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-2);
}
.more-hint::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.more-hint:hover { color: var(--cream); border-color: var(--cream-2); }
.more-hint[hidden] { display: none; }

/* earlier pairs: smaller, dimmer, two lines of the response at most */
/* (Round 19: the dimming is on the pair's question and lines, not on the label or the note: at 0.4 on a small size they
   read at about 2:1. They stay at full contrast, and readable in size, when their answer moves up.) */
.pair.past .q, .pair.past .r-in > * { opacity: 0.4; }
.pair.past .r-in > .ln.struck { opacity: var(--lv-struck-past); }
.pair.past .lv-cue { font-size: 14px; }
.pair.past .lv-tag { margin-top: 0.35em; }
.pair.past .q { font-size: 14px; margin-bottom: 0.4em; color: var(--cream-2); }
.pair.past .r { font-size: clamp(16px, 0.75rem + 0.6vw, 22px); overflow: hidden; max-height: 2.82em; padding-bottom: 0; -webkit-mask-image: linear-gradient(to bottom, #000 38%, transparent 96%); mask-image: linear-gradient(to bottom, #000 38%, transparent 96%); }
.pair.past .ln.said { opacity: 1; }
.pair.past .more-hint, .pair.past .think { display: none; }

/* ───────── Thinking: a livelier mark right where the response will land ───────── */
.think { display: flex; align-items: center; gap: 0.22em; height: 1.27em; }
.think i { display: block; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--lit); animation: lv-pop 0.34s cubic-bezier(0.3, 1.6, 0.5, 1) both, lv-think 0.9s ease-in-out 0.34s infinite; }
.think i:nth-child(2) { animation-delay: 0.05s, 0.46s; }
.think i:nth-child(3) { animation-delay: 0.1s, 0.58s; }
.think .slow { margin-left: 0.6em; font-size: 0.42em; font-weight: 450; letter-spacing: 0; color: var(--cream-2); }
@keyframes lv-pop { from { transform: scale(0); opacity: 0; } }
@keyframes lv-think { 0%, 100% { transform: translateY(0); opacity: 0.55; } 35% { transform: translateY(-0.32em); opacity: 1; } }

/* ───────── The notice slot: plain words, each kind with its own mark ───────── */
.lv-notices { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 16px 10px; min-height: 40px; justify-content: flex-end; }
.nt { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 34px; padding: 4px 6px 4px 12px; border: 1px solid var(--cream-3); border-radius: 18px; font-size: 15px; line-height: 1.3; color: var(--cream); animation: lv-rise 0.35s var(--ease) both; }
.nt-ic { flex: none; color: var(--cream-2); }
.nt-text { padding-right: 6px; }
.nt-act { flex: none; height: 26px; padding: 0 12px !important; border-radius: 13px; background: rgba(var(--lv-fg-rgb), 0.1) !important; font-size: 14px; font-weight: 500; }
.nt-act:hover { background: rgba(var(--lv-fg-rgb), 0.18) !important; }
.nt[data-kind="info"], .nt[data-kind="paused"] { border-color: transparent; }
.nt[data-kind="paused"] .nt-ic { color: var(--cream); }
.nt[data-kind="reconnecting"] .nt-ic svg { animation: lv-spin 1.4s linear infinite; }
.nt[data-kind="cant_hear_other"] .nt-ic .wave { animation: lv-wave 1.8s ease-in-out infinite; }
.nt[data-kind="cant_hear_other"] .nt-ic .w2 { animation-delay: 0.3s; }
.nt[data-kind="attribution"] .nt-ic svg { animation: lv-sway 2.4s ease-in-out infinite; transform-origin: 50% 70%; }
.nt[data-kind="service"], .nt[data-kind="budget"] { border-style: dashed; }
@keyframes lv-rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes lv-spin { to { transform: rotate(360deg); } }
@keyframes lv-wave { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }
@keyframes lv-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* ───────── The dock: ear and End, and the fuller bar ───────── */
.lv-dock { position: relative; display: flex; align-items: flex-start; justify-content: center; padding-top: 18px; }
.lv-pair { display: flex; align-items: center; gap: 24px; position: relative; }
.lv-ear { min-width: 84px; height: 44px; padding: 0 16px !important; display: grid; place-items: center; font-size: 14px; white-space: nowrap; border: 1px solid rgba(var(--lv-fg-rgb), 0.3) !important; border-radius: 22px; color: var(--lv-ear); opacity: 0.8; transition: opacity 0.3s, background 0.2s, color 0.2s; }
.lv-ear .off { display: none; }
.lv-ear[aria-pressed="true"] { opacity: 1; color: var(--cream); border-color: var(--cream-2) !important; }
.lv-ear[aria-pressed="true"] .on, .lv-ear[aria-pressed="true"] > .ic:first-child { display: none; }
.lv-ear[aria-pressed="true"] .off { display: grid; }
.lv-dock:hover .lv-ear, .lv-ear:focus-visible { opacity: 1; }
.lv-ear:hover { background: rgba(var(--lv-fg-rgb), 0.08) !important; color: var(--cream); }
.lv-end { height: 44px; padding: 0 26px !important; border-radius: 22px; background: var(--stop) !important; color: var(--lv-on-stop) !important; font-weight: 600; font-size: 16px; letter-spacing: 0.01em; margin-left: 8px; }
.lv-end:active { background: var(--stop-down) !important; }
.lv-end:disabled { opacity: 1; cursor: default; }
/* Settings, the ear, End (and the Simulator's Next question) are one group, centred as a whole (fix round 5, minor 16:
   the pair was centred and Settings hung off its left, so the group sat about 50px left of centre). The fuller bar
   opens beside or above the group without moving it. */
.lv-left { position: relative; display: flex; align-items: center; gap: 12px; }
.lv-left > .lv-more { position: absolute; right: calc(100% + 4px); top: 0; }
.lv-more-sep { width: 1px; height: 20px; background: var(--cream-3); margin: 0 4px; }
.lv-options { height: 44px; padding: 0 12px !important; border-radius: 22px; color: var(--cream-2) !important; font-size: 14px; opacity: 0.6; transition: opacity 0.3s, background 0.2s; white-space: nowrap; }
.lv-options:hover, .lv-options[aria-expanded="true"], .lv-dock:hover .lv-options { opacity: 1; }
.lv-options:hover { background: rgba(var(--lv-fg-rgb), 0.08) !important; }

.lv-more {
  display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 4px 0 14px;
  border: 1px solid var(--cream-3); border-radius: 22px; background: var(--ink); animation: lv-rise 0.3s var(--ease) both; white-space: nowrap;
}
.lv-more[hidden] { display: none; }
.lv-more-label { color: var(--cream-2); font: 500 11px/1 "Geist Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.lv-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 18px; }
.lv-hint { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.lv-seg button { height: 32px; padding: 0 12px !important; border-radius: 16px; font-size: 14px; color: var(--cream-2) !important; transition: background 0.2s, color 0.2s; }
.lv-seg button.on { background: rgba(var(--lv-fg-rgb), 0.13) !important; color: var(--cream) !important; }
.lv-seg button:hover:not(.on) { color: var(--cream) !important; }

/* Narrower laptops: the fuller bar has no room beside the pair, so it rises above it instead. */
@media (max-width: 1599px) {
  .lv-pair { position: static; }
  .lv-dock { position: relative; }
  .lv-left { position: static; }
  .lv-left > .lv-more { position: absolute; left: 50%; right: auto; top: auto; bottom: calc(100% - 6px); transform: translateX(-50%); animation: lv-fade 0.3s both; }
  /* The bar rises where the notices sit: they step up above it, so "Paused. I'm not listening." is never covered
     (round 8 browser report, should-fix 8). Moved with a transform, so nothing else on the screen shifts. */
  .lv-notices { position: relative; z-index: 3; transition: transform 0.3s var(--ease); }
  .lv.more-open .lv-notices { transform: translateY(-58px); }
}
@keyframes lv-fade { from { opacity: 0; } }

/* ───────── Beat two: the depth under the line (docs/ANSWER-DEPTH.md) ───────── */
/* It arrives whole a few seconds after the answer is solid, below it in the same scroll, so the line being read never
   moves. Quieter and smaller than the line: a short hairline above it, then one to three sentences in the reading size of
   a long answer's second part, and an optional bridge a step dimmer. It fades in where it lands; nothing travels. A web
   source, when one backed it (Deep), is the same small outlined label as a gap's, then the site names. */
.depth {
  --depth-size: clamp(17px, 0.7rem + 0.75vw, 24px);
  position: relative; max-width: 32em; margin: 1.05em 0 0; padding-top: 0.95em;
  font-size: var(--depth-size); line-height: 1.42; font-weight: 450; letter-spacing: -0.008em; color: rgba(var(--lv-fg-rgb), 0.8);
  animation: lv-depth-in 0.6s var(--ease) both;
}
.depth::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 2px; border-radius: 1px; background: rgba(var(--lit-rgb), 0.75); }
.depth-more { margin: 0; text-wrap: pretty; overflow-wrap: anywhere; }
.depth-more + .depth-more { margin-top: 0.3em; }
.depth-next { margin: 0.55em 0 0; color: rgba(var(--lv-fg-rgb), 0.62); text-wrap: pretty; }
.depth-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0.8em 0 0; font-size: 13px; line-height: 1.3; }
.depth-src .depth-tag { margin: 0; }
.depth-site { color: var(--cream-2); text-decoration: none; border-bottom: 1px solid var(--cream-3); }
.depth-site:hover, .depth-site:focus-visible { color: var(--cream); border-color: var(--cream-2); }
span.depth-site { border-bottom: 0; } /* a source with no safe address: its name, not a link */
@keyframes lv-depth-in { from { opacity: 0; } }
/* Rolled up, only the line stays (as today); looking back, the depth is there with its pair. */
.pair.past .depth { display: none; }
.lv.col .lv-stage > .pair:not(.now) .depth { animation: none; }
/* Checking or tentative never carry depth (it comes only after solid), so no other state needs a look. */

/* ───────── Phone width ───────── */
@media (max-width: 640px) {
  .lv { --col: calc(100% - 32px); --col-gap: 36px; grid-template-rows: 56px minmax(0, 1fr) auto 92px; }
  .lv-top { padding: 0 16px; }
  .pair .r-in { max-width: none; }
  .depth { --depth-size: 16.5px; max-width: none; margin-top: 0.9em; padding-top: 0.8em; }
  .lv-left { position: static; margin-right: -8px; }
  .lv-options { padding: 0 8px !important; }
  .lv-pair { gap: 16px; position: static; }
  .lv-left > .lv-more { position: absolute; left: 16px; right: 16px; bottom: calc(100% + 8px); transform: none; flex-wrap: wrap; justify-content: center; height: auto; padding: 10px 8px 8px; border-radius: 18px; white-space: normal; row-gap: 6px; }
  .lv-more-sep { flex-basis: 100%; height: 0; }
  .lv.more-open .lv-notices { visibility: hidden; }
  .nt { font-size: 14px; }
  .lv-dock { padding-top: 14px; }
}

/* ───────── Reduced motion: cues change shape or opacity, nothing travels ───────── */
@media (prefers-reduced-motion: reduce) {
  .lv { --roll: 1ms; }
  /* Listening, still: the dots and their label, nothing moving (live.js does not follow the level here). */
  .lv-dots i { animation: none; transform: none; opacity: 0.9; }
  .lv[data-activity="other"] .lv-dots i { animation: lv-hear-still 0.95s steps(2, jump-none) infinite; width: 12px; height: 12px; }
  @keyframes lv-hear-still { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
  .think i { animation: lv-think-still 1s ease-in-out infinite; }
  @keyframes lv-think-still { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
  .nt[data-kind="reconnecting"] .nt-ic svg { animation: lv-wave 1.6s ease-in-out infinite; }
  .nt[data-kind="attribution"] .nt-ic svg { animation: none; }
  .nt, .lv-more { animation: none; }
  .ln .w { animation: none; }
  .depth { animation: lv-depth-in 0.2s linear both; }
  .pair { transition: opacity 0.2s; }
  .pair .q, .pair .r { transition: none; }
  .lv { --xf: 1ms; }
  .lv.col .lv-stage > .pair, .lv-fade { transition: none; }
}
