/* Perri: graphite, a touch of glass ("D", approved). Loaded last, after app.css, feedback.css and feedback3.css.
   A calm neutral base (cool paper in light, graphite in dark), flat type and hairlines. Glass only on what floats: the
   input bar, menus, dialogs and the offline notice (a faint fill, a backdrop blur, a top
   edge a little brighter, a soft deep shadow). Cards in the scrolling page look the same but never blur: nothing with a
   backdrop-filter moves with a scroll. One green: Start listening, the three dots, the readiness bar. No other accent.
   The live answer screen gets the same light and dark tokens and nothing else: no glass behind answer text.

   Schemes: light tokens on :root; dark under prefers-color-scheme (unless data-theme="light") and data-theme="dark".
   Settings > Appearance sets data-theme on <html> (app/theme.js), before the first paint (index.html). */

/* ───────── Tokens: light ───────── */
:root {
  color-scheme: light;
  --bg: #eef0f2;
  --paper: #eef0f2;
  --raised: #ffffff;
  --side: #e6e8ea;
  --ink: #1b1c1d;
  --ink-2: #26282a;
  --muted: #53575b;
  --faint: #62666a;
  --line: rgba(20, 22, 24, 0.09);
  --line-strong: rgba(20, 22, 24, 0.18);
  --fill: rgba(20, 22, 24, 0.055);
  --sel: rgba(20, 22, 24, 0.07);
  --hover: rgba(20, 22, 24, 0.05);
  --hover-soft: rgba(20, 22, 24, 0.04);
  --chip: rgba(20, 22, 24, 0.045);
  --chip-edge: rgba(20, 22, 24, 0.1);
  --field: #ffffff;
  --field-edge: rgba(20, 22, 24, 0.14);
  --green: #127342;
  --green-down: #0d5a33;
  --green-ring: rgba(18, 115, 66, 0.7);
  --green-wash: rgba(18, 115, 66, 0.06);
  --set-pane: rgba(20, 22, 24, 0.022);
  --seg-on: #ffffff;
  --ok: var(--ink);
  --error: #a8321f;
  --stop: #c8372a;
  --stop-down: #ae2f23;
  --on-accent: #ffffff;
  --danger-fill: #fbefec;
  --warn-fill: #f3eee2;
  --warn-ink: #4d4230;
  --unread: #85898d;
  --switch-off: #c3c6ca;
  --switch-thumb: #ffffff;
  --scrim: rgba(16, 18, 20, 0.22);
  --scrim-dlg: rgba(16, 18, 20, 0.26);
  --ic-tint: 0.42;
  --r3: 18px;
  --side-w: 260px;
  --shadow: 0 1px 2px rgba(20, 22, 24, 0.04), 0 16px 36px -22px rgba(20, 22, 24, 0.22);
  --shadow-lg: 0 1px 2px rgba(20, 22, 24, 0.05), 0 28px 60px -24px rgba(20, 22, 24, 0.3);
  --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2353575b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* glass: the floating layers */
  --g-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.62));
  --g-dense: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 251, 252, 0.84));
  --g-solid: #f9fafb;
  --g-blur: blur(24px) saturate(130%);
  --g-edge: rgba(20, 22, 24, 0.08);
  --g-edge-top: rgba(255, 255, 255, 0.95);
  --g-sheen: rgba(255, 255, 255, 0.5);
  --g-shadow: 0 1px 2px rgba(20, 22, 24, 0.04), 0 16px 36px -22px rgba(20, 22, 24, 0.22);
  --g-shadow-lg: 0 1px 2px rgba(20, 22, 24, 0.05), 0 30px 64px -26px rgba(20, 22, 24, 0.34);
  /* the same look for cards that sit in a scrolling page (never blurred) */
  --card-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.64));
  /* what the blur has to catch: one soft neutral light top right, one low green light bottom left */
  --light-1: rgba(255, 255, 255, 0.9);
  --light-2: rgba(18, 115, 66, 0.07);
  /* Usage: the kinds. Graphite, with one muted warm tone, alternating dark and mid so each kind is at least 3:1 against
     the card and 2:1 against the kind it sits on in a stacked bar (measured; docs/SETTINGS-DESIGN.md). Green stays
     for good states and "now". */
  --u-meetings: #2b2d30; --u-context: #868a8f; --u-simulator: #5a4a2c; --u-voice: #a08e6c; --u-other: #45494e;
}

/* ───────── Tokens: dark (system, unless forced light) ───────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1a1a19; --paper: #1a1a19; --raised: #242423; --side: #212120;
    --ink: #ecebe7; --ink-2: #e2e1dc; --muted: #aeada8; --faint: #a3a29d;
    --line: rgba(255, 255, 255, 0.075); --line-strong: rgba(255, 255, 255, 0.15); --fill: rgba(255, 255, 255, 0.06); --sel: rgba(255, 255, 255, 0.08);
    --hover: rgba(255, 255, 255, 0.05); --hover-soft: rgba(255, 255, 255, 0.04);
    --chip: rgba(255, 255, 255, 0.055); --chip-edge: rgba(255, 255, 255, 0.09);
    --field: rgba(255, 255, 255, 0.045); --field-edge: rgba(255, 255, 255, 0.13);
    --error: #f0907e; --stop: #c8372a; --stop-down: #ae2f23;
    --danger-fill: rgba(240, 144, 126, 0.1); --warn-fill: rgba(232, 204, 150, 0.08); --warn-ink: #e4d7b9;
    --unread: #77766f; --switch-off: #4a4a47; --switch-thumb: #e4e3de;
    --scrim: rgba(0, 0, 0, 0.42); --scrim-dlg: rgba(0, 0, 0, 0.5);
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 20px 44px -22px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 1px 1px rgba(0, 0, 0, 0.3), 0 30px 64px -24px rgba(0, 0, 0, 0.8);
    --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23aeada8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --g-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.042));
    --g-dense: linear-gradient(180deg, rgba(46, 46, 45, 0.9), rgba(39, 39, 38, 0.88));
    --g-solid: #262625;
    --g-blur: blur(28px) saturate(120%);
    --g-edge: rgba(255, 255, 255, 0.075); --g-edge-top: rgba(255, 255, 255, 0.15); --g-sheen: rgba(255, 255, 255, 0.04);
    --g-shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 20px 44px -22px rgba(0, 0, 0, 0.7);
    --g-shadow-lg: 0 1px 1px rgba(0, 0, 0, 0.3), 0 32px 70px -24px rgba(0, 0, 0, 0.85);
    --card-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.038));
    --light-1: rgba(255, 255, 255, 0.045); --light-2: rgba(18, 115, 66, 0.1);
    --green-ring: rgba(79, 183, 128, 0.62); --green-wash: rgba(79, 183, 128, 0.07); --set-pane: transparent; --seg-on: rgba(255, 255, 255, 0.13);
    --u-meetings: #e4e2dc; --u-context: #807e79; --u-simulator: #cdb98c; --u-voice: #857a62; --u-other: #b2bec9;
  }
}
/* ───────── Tokens: dark (forced) ───────── */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1a19; --paper: #1a1a19; --raised: #242423; --side: #212120;
  --ink: #ecebe7; --ink-2: #e2e1dc; --muted: #aeada8; --faint: #a3a29d;
  --line: rgba(255, 255, 255, 0.075); --line-strong: rgba(255, 255, 255, 0.15); --fill: rgba(255, 255, 255, 0.06); --sel: rgba(255, 255, 255, 0.08);
  --hover: rgba(255, 255, 255, 0.05); --hover-soft: rgba(255, 255, 255, 0.04);
  --chip: rgba(255, 255, 255, 0.055); --chip-edge: rgba(255, 255, 255, 0.09);
  --field: rgba(255, 255, 255, 0.045); --field-edge: rgba(255, 255, 255, 0.13);
  --error: #f0907e; --stop: #c8372a; --stop-down: #ae2f23;
  --danger-fill: rgba(240, 144, 126, 0.1); --warn-fill: rgba(232, 204, 150, 0.08); --warn-ink: #e4d7b9;
  --unread: #77766f; --switch-off: #4a4a47; --switch-thumb: #e4e3de;
  --scrim: rgba(0, 0, 0, 0.42); --scrim-dlg: rgba(0, 0, 0, 0.5);
  --shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 20px 44px -22px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 1px 1px rgba(0, 0, 0, 0.3), 0 30px 64px -24px rgba(0, 0, 0, 0.8);
  --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23aeada8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --g-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.042));
  --g-dense: linear-gradient(180deg, rgba(46, 46, 45, 0.9), rgba(39, 39, 38, 0.88));
  --g-solid: #262625;
  --g-blur: blur(28px) saturate(120%);
  --g-edge: rgba(255, 255, 255, 0.075); --g-edge-top: rgba(255, 255, 255, 0.15); --g-sheen: rgba(255, 255, 255, 0.04);
  --g-shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 20px 44px -22px rgba(0, 0, 0, 0.7);
  --g-shadow-lg: 0 1px 1px rgba(0, 0, 0, 0.3), 0 32px 70px -24px rgba(0, 0, 0, 0.85);
  --card-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.038));
  --light-1: rgba(255, 255, 255, 0.045); --light-2: rgba(18, 115, 66, 0.1);
  --green-ring: rgba(79, 183, 128, 0.62); --green-wash: rgba(79, 183, 128, 0.07); --set-pane: transparent; --seg-on: rgba(255, 255, 255, 0.13);
    --u-meetings: #e4e2dc; --u-context: #807e79; --u-simulator: #cdb98c; --u-voice: #857a62; --u-other: #b2bec9;
}

/* ───────── Base ───────── */
html, body { background: var(--bg); }
body { color: var(--ink); }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline-color: var(--ink); }
/* The faint lights behind everything, for the glass to catch. Fixed and painted once: nothing here moves. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side, var(--light-1), transparent) calc(100% + 300px) -380px / 1100px 800px no-repeat,
    radial-gradient(closest-side, var(--light-2), transparent) -320px calc(100% + 340px) / 900px 700px no-repeat,
    radial-gradient(closest-side, var(--light-2), transparent) 42% calc(100% + 330px) / 700px 500px no-repeat;
}
.shell { position: relative; z-index: 1; }

/* ───────── Icons: duo-solid (dom.js PATHS). The old 1.5 stroke is gone. ───────── */
.ic { fill: none; stroke: none; overflow: visible; }
.ic .f { fill: currentColor; stroke: none; }
.ic .d { fill: currentColor; stroke: none; opacity: var(--ic-tint); }
.ic .s, .ic .sd { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.ic .sd { opacity: var(--ic-tint); }

/* ───────── The three dots: one glossy green ───────── */
.dots { color: var(--green); }
.dots i { background: radial-gradient(circle at 35% 30%, #4fb780 0%, #18804b 55%, #0f6038 100%); }

/* ───────── Glass: only on what floats, few and fixed ───────── */
.composer, .menu, dialog.dlg, .offline, .notice-line {
  border: 1px solid var(--g-edge); border-top-color: var(--g-edge-top);
  background: var(--g-fill);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  box-shadow: inset 0 1px 0 var(--g-sheen), var(--g-shadow);
}
/* Menus, dialogs and the notice sit over busy text: a denser fill keeps their own words clear. */
.menu, dialog.dlg, .offline, .notice-line { background: var(--g-dense); box-shadow: inset 0 1px 0 var(--g-sheen), var(--g-shadow-lg); }
/* The notice line floats over the scrolling page (fix round 5, minor 9): its own surface, so it never sits on text. */
.notice-line { padding: 7px 14px; border-radius: 14px; max-width: min(62ch, 100%); }
/* Cards in a scrolling page: the same edge, fill and shadow, never a blur. */
.conflict, .link-card, .prep-card, .note-card, .consent, .to-stage, .ctx {
  border: 1px solid var(--g-edge); border-top-color: var(--g-edge-top);
  background: var(--card-fill);
  box-shadow: inset 0 1px 0 var(--g-sheen), var(--g-shadow);
}
.note-card:hover, .to-stage:hover { border-color: var(--line-strong); border-top-color: var(--g-edge-top); }

/* ───────── Frame and sidebar: a flat panel on the left edge (sidebar.css) ───────── */
.drop-on { background: var(--fill) !important; box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ───────── Top bar and stage ───────── */
.title, .title.plain { color: var(--muted); }
.title .ico, .title-chev { color: var(--faint); }
button.title:hover, .title[aria-expanded="true"] { color: var(--ink); }
.stage-h { color: var(--ink); }
.stage .second, .stage .have { color: var(--muted); }
.stage .have { text-decoration-color: var(--line-strong); }
.stage .have:hover, .stage .have[aria-expanded="true"] { color: var(--ink); text-decoration-color: var(--muted); }
.stage .third { color: var(--faint); }
.read-line span { color: var(--unread); }

/* ───────── Controls: low-contrast rounded rectangles; the primary is ink, never a second accent ───────── */
.btn { background: var(--ink); color: var(--paper); }
.btn:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 84%, var(--paper)); }
.btn.plain { color: var(--ink); border: 1px solid var(--chip-edge); background: var(--chip); box-shadow: none; }
.btn.plain:hover:not(:disabled) { background: var(--fill); border-color: var(--line-strong); }
.btn.plain .ico { color: var(--ink); }
.btn.danger { background: var(--stop); color: var(--on-accent); }
.btn.danger:hover:not(:disabled) { background: var(--stop-down); }
.btn.danger-plain { color: var(--error); border: 1px solid var(--chip-edge); background: var(--chip); }
.btn.danger-plain:hover:not(:disabled) { background: var(--danger-fill); border-color: var(--error); color: var(--error); }
.btn.danger-plain:focus-visible { background: var(--chip); }
.btn:disabled { opacity: 0.5; }
.input { background: var(--field); border-color: var(--field-edge); color: var(--ink); }
.input:focus { border-color: var(--muted); box-shadow: 0 0 0 3px var(--fill); }
.select { background-color: var(--field); }
.select option { background: var(--raised); color: var(--ink); }
.seg { background: var(--chip); border-color: var(--chip-edge); }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 0 0 1px var(--chip-edge); }
.switch { background: var(--switch-off); }
.switch::after { background: var(--switch-thumb); }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { background: var(--paper); }
.icon-btn:hover, .icon-btn[aria-expanded="true"], .icon-btn[aria-current="page"] { background: var(--fill); }
.consent input, .ticks input, .check input, .private-check input { accent-color: var(--ink); }
kbd { border-color: var(--line-strong); color: var(--muted); }

/* ───────── The input bar: one large rounded panel ───────── */
.dock { background: none; padding-bottom: 14px; }
.composer { border-radius: 24px; padding: 7px; }
.composer:focus-within { border-color: var(--line-strong); border-top-color: var(--g-edge-top); }
body.dropping .composer { border-color: var(--green); box-shadow: 0 0 0 3px rgba(18, 115, 66, 0.14), var(--g-shadow); }
.composer-input { color: var(--ink); }
.composer-input::placeholder { color: var(--faint); }
.plus { color: var(--muted); border-radius: 13px; }
.plus:hover, .plus[aria-expanded="true"] { background: var(--fill); }
.send { color: var(--ink); }
.composer-for .for-k { color: var(--faint); }
.composer-for .for-t { color: var(--ink); }
.cards li { border-color: var(--chip-edge); background: var(--chip); }
.under-bar { color: var(--muted); }
.under-act, .under-act .ico { color: var(--muted); }
.under-act:hover, .under-act[aria-expanded="true"] { background: var(--fill); color: var(--ink); }
.to-stage { color: var(--muted); }

/* Start listening: the glossy green pill, the one accent. One highlight on the top half, nothing animated. */
.start { position: relative; overflow: hidden; isolation: isolate; border: 1px solid #0d5f37; background: linear-gradient(180deg, #1b8550 0%, #137345 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(0, 0, 0, 0.25); }
.start::after { content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 48%; border-radius: 22px 22px 14px 14px / 22px 22px 8px 8px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)); pointer-events: none; z-index: -1; }
.start > * { position: relative; }
.start .ico { --ic-tint: 0.6; }
.start:hover:not(:disabled) { background: linear-gradient(180deg, #187c4a, #0f673d); border-color: #0b5631; }
/* Not ready to listen (no keys, no voice yet): the same shape, quiet, no green. */
.start.wait { border-color: var(--chip-edge); background: var(--chip); color: var(--ink); box-shadow: none; }
.start.wait::after { display: none; }
.start.wait .ico { --ic-tint: 0.42; color: var(--muted); }
.start.wait:hover:not(:disabled) { background: var(--fill); border-color: var(--line-strong); }
.start:disabled { opacity: 0.55; }

/* ───────── The setup list and history: flat, hairlines ───────── */
.setup { border-top-color: var(--line); }
.setup-row { border-bottom-color: var(--line); }
.setup-title { color: var(--ink); }
.setup-sub { color: var(--muted); }
.mark.ring::before { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.mark.tick { color: var(--ink); }
.pv-badge { background: var(--fill); color: var(--ink); }
.eyes-tag { background: var(--fill); color: var(--muted); }
.next-time, .pv-gaps { background: var(--side); }
.banner { background: var(--fill); }
pre.qa-a, .doc-flag { background: var(--fill); }

/* ───────── Menus and dialogs ───────── */
.menu { border-radius: 14px; }
.menu > button:hover, .menu > button:focus-visible { background: var(--fill); }
.menu > button .ico { color: var(--muted); }
.menu > button.danger, .menu > button.danger .ico { color: var(--error); }
.menu hr { background: var(--line); }
.menu[popover] { color: var(--ink); }
dialog.dlg { color: var(--ink); border-radius: 20px; }
dialog.dlg::backdrop { background: var(--scrim-dlg); }
.set-side { background: var(--fill); border-right-color: var(--line); }
.set-link[aria-current="page"] { background: var(--sel); }
.pv-head { background: transparent; }
.search-bar { border-bottom-color: var(--line); }
.offline { color: var(--ink); border-radius: 14px; }

/* ───────── Code in the record (app/room.js answerEl): the live screen's code palette, on the page's own ink ───────── */
.qa-rich, .qa-a, .ps-a, .lt-a { --code-fg: #1f1f1f; --code-k: #0000ff; --code-x: #a300c8; --code-f: #74531f; --code-t: #1b6f85; --code-v: #001080; --code-s: #a31515; --code-n: #07774f; --code-c: #037403; --code-o: #1b6f85; --code-p: #6b6b6b; --code-a: #5b5b5b; --code-label: var(--muted); --code-bg: #ffffff; --code-edge: var(--line); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.qa-rich, .qa-a, .ps-a, .lt-a) { --code-fg: #d4d4d4; --code-k: #569cd6; --code-x: #c586c0; --code-f: #dcdcaa; --code-t: #4ec9b0; --code-v: #9cdcfe; --code-s: #ce9178; --code-n: #b5cea8; --code-c: #6a9955; --code-o: #4ec9b0; --code-p: #8c8c8c; --code-a: #a8a8a8; --code-bg: #1e1e1e; }
}
:root[data-theme="dark"] :is(.qa-rich, .qa-a, .ps-a, .lt-a) { --code-fg: #d4d4d4; --code-k: #569cd6; --code-x: #c586c0; --code-f: #dcdcaa; --code-t: #4ec9b0; --code-v: #9cdcfe; --code-s: #ce9178; --code-n: #b5cea8; --code-c: #6a9955; --code-o: #4ec9b0; --code-p: #8c8c8c; --code-a: #a8a8a8; --code-bg: #1e1e1e; }
/* A shell block in the record is a terminal too; any other block an editor panel with its language over it. */
pre.qa-code[data-lang="sh"] { --code-fg: #d4d4d4; --code-k: #569cd6; --code-x: #c586c0; --code-f: #dcdcaa; --code-t: #4ec9b0; --code-v: #9cdcfe; --code-s: #ce9178; --code-n: #b5cea8; --code-c: #6a9955; --code-o: #4ec9b0; --code-p: #8c8c8c; --code-a: #a8a8a8; --code-bg: #0a0a0a; --code-edge: rgba(255, 255, 255, 0.2); --code-label: rgba(255, 255, 255, 0.6); }
pre.qa-code {
  position: relative; color: var(--code-fg); background: var(--code-bg); border: 1px solid var(--code-edge); border-radius: 10px;
  padding: 10px 44px 10px 14px; font: 400 13.5px/1.55 var(--mono, ui-monospace), ui-monospace, Menlo, monospace; white-space: pre-wrap; font-variant-ligatures: none; tab-size: 2;
}
pre.qa-code[data-label]::before { content: attr(data-label); display: block; margin-bottom: 6px; font: 500 11.5px/16px "Mona Sans", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.04em; color: var(--code-label); }
pre.qa-code .cl.prompt::before { content: "$ "; color: var(--code-p); user-select: none; -webkit-user-select: none; }
pre.qa-code .code-copy { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--code-label); background: none; border: 0; cursor: pointer; }
pre.qa-code .code-copy:hover, pre.qa-code .code-copy:focus-visible { background: rgba(127, 127, 127, 0.16); }
pre.qa-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; }
pre.qa-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"); }
:is(.qa-rich, .qa-a, .ps-a, .lt-a) code.cd { color: var(--ink); }
.t-k { color: var(--code-k); } .t-kl { color: var(--code-k); font-weight: 600; } .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-s { color: var(--code-s); } .t-n { color: var(--code-n); } .t-c { color: var(--code-c); } .t-o { color: var(--code-o); } .t-p { color: var(--code-p); } .t-a { color: var(--code-a); }

/* ───────── The live screen: the same tokens, no glass, nothing smaller or fainter ───────── */
/* Dark: graphite instead of green-black. The dimmer states keep the steps they had. */
#live.lv {
  --ink: #171716;
  --cream: #f1f0ec;
  --cream-2: #a5a49f;
  --cream-3: rgba(241, 240, 236, 0.2);
  --lit: #8bdc8f;
  --lv-fg-rgb: 241, 240, 236;
  --lv-bg-rgb: 23, 23, 22;
  --lit-rgb: 139, 220, 143;
  --lv-ear: #b9b8b3;
}
/* Light: ink on cool paper. The step-back opacities are set so each state keeps the contrast it has in dark. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) #live.lv {
    --ink: #f3f4f5; --cream: #16171a; --cream-2: #55595d; --cream-3: rgba(22, 23, 26, 0.2);
    --lit: #127342; --lv-fg-rgb: 22, 23, 26; --lv-bg-rgb: 243, 244, 245; --lit-rgb: 18, 115, 66; --lv-ear: #45484c;
    --lv-said: 0.56; --lv-soft: 0.74; --lv-past: 0.52; --lv-struck: 0.52; --lv-struck-past: 0.34; --lv-q: 0.78;
    --code-fg: #1f1f1f; --code-k: #0000ff; --code-x: #a300c8; --code-f: #74531f; --code-t: #1b6f85; --code-v: #001080; --code-s: #a31515; --code-n: #07774f; --code-c: #037403; --code-o: #1b6f85; --code-p: #6b6b6b; --code-a: #5b5b5b; --code-label: rgba(var(--lv-fg-rgb), 0.66); --code-bg: #ffffff; --code-edge: rgba(var(--lv-fg-rgb), 0.1);
  }
}
:root[data-theme="light"] #live.lv {
  --ink: #f3f4f5; --cream: #16171a; --cream-2: #55595d; --cream-3: rgba(22, 23, 26, 0.2);
  --lit: #127342; --lv-fg-rgb: 22, 23, 26; --lv-bg-rgb: 243, 244, 245; --lit-rgb: 18, 115, 66; --lv-ear: #45484c;
  --lv-said: 0.56; --lv-soft: 0.74; --lv-past: 0.52; --lv-struck: 0.52; --lv-struck-past: 0.34; --lv-q: 0.78;
  --code-fg: #1f1f1f; --code-k: #0000ff; --code-x: #a300c8; --code-f: #74531f; --code-t: #1b6f85; --code-v: #001080; --code-s: #a31515; --code-n: #07774f; --code-c: #037403; --code-o: #1b6f85; --code-p: #6b6b6b; --code-a: #5b5b5b; --code-label: rgba(var(--lv-fg-rgb), 0.66); --code-bg: #ffffff; --code-edge: rgba(var(--lv-fg-rgb), 0.1);
}
/* The ear and End: the app's new controls. The ear is a quiet round chip; End the one red, glossy like Start. */
#live .lv-ear { background: rgba(var(--lv-fg-rgb), 0.05) !important; border-color: rgba(var(--lv-fg-rgb), 0.16) !important; color: var(--lv-ear); opacity: 1; --ic-tint: 0.5; }
#live .lv-ear:hover { background: rgba(var(--lv-fg-rgb), 0.1) !important; color: var(--cream); }
#live .lv-ear[aria-pressed="true"] { color: var(--cream); border-color: rgba(var(--lv-fg-rgb), 0.4) !important; }
#live .lv-end { position: relative; overflow: hidden; isolation: isolate; border: 1px solid #9f2a1f !important; background: linear-gradient(180deg, #d4402f 0%, #bf3426 100%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.25); }
#live .lv-end::after { content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 48%; border-radius: 22px 22px 14px 14px / 22px 22px 8px 8px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0)); pointer-events: none; z-index: -1; }
#live .lv-end:hover { background: linear-gradient(180deg, #c93b2b, #b03022) !important; }
#live .lv-end:active { background: var(--stop-down) !important; }
#live .lv-dots i { background: var(--lit); }
/* Earlier answers step back by the scheme's own amount (live.css keeps 0.4, the dark value). */
/* (Round 20: a gap's label and a note sit outside the response, so they keep full contrast.) */
#live .pair.past .q, #live .pair.past .r-in > * { opacity: var(--lv-past, 0.4); }
/* The quiet Settings word: a step stronger, so it reads at 4.5:1 in both schemes (at 0.6 it was 3.4 dark, 2.7 light). */
:root #live .lv-options { opacity: 0.88; }
:root #live .lv-dock:hover .lv-options, :root #live .lv-options[aria-expanded="true"] { opacity: 1; }

/* ───────── Fallbacks ───────── */
/* No backdrop blur here: the same layers, solid. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .composer, .menu, dialog.dlg, .offline, .notice-line { background: var(--g-solid); }
}
/* Asked for less transparency: solid fills, no blur. */
@media (prefers-reduced-transparency: reduce) {
  .composer, .menu, dialog.dlg, .offline, .notice-line { background: var(--g-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .conflict, .link-card, .prep-card, .note-card, .consent, .to-stage, .ctx { background: var(--raised); }
  body::before { display: none; }
}
/* ───────── Context (room.js contextCard, the "What's in Context" section, the level control, the category panel) ─────────
   A card in the scrolling stage: the card look, no blur. The level word and the gaps lead; the share is small and quiet.
   One green here: a small glossy dot before "Ready", like the three dots. Never green text. */
.ctx { max-width: 600px; padding: 20px 22px 18px; border-radius: var(--r3); }
.ctx-head { min-height: 20px; }
.ctx-k { font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; color: var(--faint); }
.ctx-upd { font-size: 12.5px; color: var(--muted); }
.ctx-upd.done { color: var(--faint); }
.ctx-level-row { margin-top: 10px; gap: 12px; }
.ctx-level { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.022em; color: var(--ink); }
.ctx-level.lv-ready { color: var(--ink); }
.ctx-level.lv-ready::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4fb780 0%, #18804b 55%, #0f6038 100%); }
/* Built from a line (src/context.js lineConfidence): ready for what general knowledge answers. The same dot, as a ring:
   ready, with the questions only the person can answer still open below. */
.ctx-level.lv-ready-for-the-general-questions::before { content: ""; flex: none; width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; border: 2px solid #18804b; }
.ctx-pct { font: 500 11.5px/1 var(--mono); letter-spacing: 0.02em; color: var(--faint); font-variant-numeric: tabular-nums; }
.ctx-why { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.ctx-of { margin-top: 2px; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ctx-gaps { margin-top: 18px; padding-top: 0; border-top: 0; }
.ctx-gaps-t { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.ctx-gaps .hrows { display: grid; gap: 8px; margin-top: 8px; }
.ctx-gaps .hrows > * { border-bottom: 0; }
.ctx-gaps .hrow { min-height: 52px; padding: 8px 8px 8px 14px; border: 1px solid var(--chip-edge); border-radius: 12px; background: var(--chip); }
.ctx-gaps .hrow-t { font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.ctx-gaps .hrow .link-btn { color: var(--muted); }
.ctx-gaps .more-btn { margin-top: 6px; }
.ctx-acts { margin-top: 14px; }
/* What's in Context, by level: flat, hairlines, like the rest of the history. */
.ctx-groups .ctx-group { margin-top: 18px; }
.ctx-groups .ctx-group-t { font-size: 10.5px; color: var(--faint); }
.ctx-groups .ctx-group-t .muted { color: var(--muted); }
/* "For:" beside "Telling Perri about": a quiet control in the input bar. */
.composer-for .for-level { color: var(--muted); }
.composer-for .for-level:hover, .composer-for .for-level[aria-expanded="true"] { color: var(--ink); }
.keep-ctx legend { color: var(--ink); }
.cat-context .cc-body { color: var(--ink); }
/* The category's panel (fix round 5, minor 6): wide enough for a note's title on one line, its actions wrapping under
   it rather than squeezing it into a narrow column; the head in line with the body. */
dialog.dlg.cat-context { width: min(560px, calc(100vw - 32px)); }
.cat-context .cc-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cat-context .cc-head > div { flex: 1; min-width: 0; }
.cat-context .cc-head .pv-sub { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.cat-context .hrow { flex-wrap: wrap; row-gap: 4px; }
.cat-context .hrow-t { flex: 1 1 240px; overflow-wrap: anywhere; }
.cat-context .hrow .row-acts { margin-left: auto; }
/* Behind and not catching up by itself (fix round 5, M11): a plain sentence, not a spinner. */
.ctx-stuck { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--chip); border: 1px solid var(--chip-edge); font-size: 13.5px; line-height: 1.45; color: var(--ink); }
/* Files' notes, by who each is for (fix round 5, M4): the same small mono heading as What's in Context. */
.fgroup + .fgroup { margin-top: 18px; }
.fgroup-t { padding: 14px 0 6px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .ctx { padding: 16px; }
  .ctx-level { font-size: 21px; }
}
/* A new meeting's bar has only the "For:" menu above the field (no label): a slimmer row, the menu at the right. */
.composer-for.only-level { padding: 2px 8px 0; }
.composer-for.only-level .for-level { height: 26px; }
/* Menus always fit the window (ui.js openMenu sets the max sizes); the options menu's two-way choices fill its width,
   each half on one line, and stack one above the other rather than ever cutting a label off. */
.menu { overscroll-behavior: contain; }
.menu-set .seg { display: flex; flex-wrap: wrap; width: 100%; max-width: 100%; box-sizing: border-box; }
.menu-set .seg button { flex: 1 1 auto; min-width: 0; padding: 0 10px; }
.menu-set-hint { margin-top: 6px; }

/* ───────── Settings: one frame, one card language, one control style (owner, 2026-11-28) ─────────
   The dialog's glass holds a quiet list on the left and, on the right, pages made of cards of rows: the card look of the
   scrolling page (never blurred), hairlines between rows. Every control is the same family: pill-shaped segmented
   choices, pill buttons (ink for the one thing to do, quiet otherwise, red words for a deletion), the switch, and a small
   state word. Green only marks a state that is on and good (a dot), and the chosen voice. */
dialog.panel.settings { border-radius: 22px; }
.set-side { background: var(--fill); }
.set-pane { background: var(--set-pane); }
.set-head h2 { color: var(--ink); }
.set-card { border: 1px solid var(--g-edge); border-top-color: var(--g-edge-top); background: var(--card-fill); box-shadow: inset 0 1px 0 var(--g-sheen), 0 1px 2px rgba(0, 0, 0, 0.035); }
/* One line always while it fits the row; only choices too long for the whole row fall onto a second line (never cut off). */
.set-row .seg { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 2px; border-radius: 19px; background: var(--chip); border: 1px solid var(--chip-edge); }
.set-row .seg button { flex: 1 1 0; min-width: max-content; display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.set-row .seg button:hover { color: var(--ink); }
.set-row .seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 0 1px var(--chip-edge); }
.set-row .btn { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.set-status { background: var(--chip); box-shadow: inset 0 0 0 1px var(--chip-edge); color: var(--ink); }
.set-status.on::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4fb780 0%, #18804b 55%, #0f6038 100%); }
.set-row.danger .btn.danger-plain { color: var(--error); }
.set-row .btn:disabled { opacity: 1; background: transparent; border-color: var(--line); color: var(--faint); cursor: default; }
@media (max-width: 640px) {
  .set-row .seg button { padding: 0 10px; font-size: 13.5px; }
  /* On a phone the dialog covers the page: solid, so nothing behind shows through. */
  dialog.panel.settings { background: var(--g-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .set-card { background: var(--raised); }
}
@media (prefers-reduced-motion: reduce) {
  .set-link, .set-link .ico, .set-head, .set-more > summary .ico, .sim-voice-card, .sim-play, .sim-voice-name::before { transition: none; }
}

/* The bar (the owner, 2026-11-30: "more sleek and more length. So more length and less height"): one slim row, wider
   than the reading column. "+", the field, Simulate and Start listening share the row while the text is one line; a
   second line (room.js composerFit) gives the field the bar's whole width with the controls beneath it, as before
   (the owner, 2026-11-28: a line squeezed between "+" and the buttons wrapped after a few words). Which meeting it is
   telling Perri about is a slim line above the bar; the settings, the plan's note and the privacy line a quiet one under. */
:root { --dock-w: 1040px; }
.dock-in { max-width: var(--dock-w); }
.dock .to-stage { right: 0; top: -52px; }
.composer { padding: 5px; border-radius: 22px; }
.composer-row { flex-wrap: nowrap; align-items: center; gap: 4px; row-gap: 2px; }
.composer-row .composer-input { flex: 1 1 auto; order: 0; height: 40px; max-height: 168px; padding: 8px 6px; font-size: 15.5px; line-height: 24px; }
.composer-row .plus { order: 0; width: 38px; height: 38px; margin: 0; border-radius: 12px; }
.composer-row .send { order: 1; width: 34px; height: 34px; margin: 0 2px 0 0; }
.composer:not(.two-rows) .composer-row .send[hidden] { display: none; }
.composer-row .sim-split { order: 2; margin-right: 4px; }
.composer-row .sim-btn { height: 38px; padding: 0 12px 0 11px; font-size: 13.5px; gap: 6px; }
.composer-row .sim-split .sim-btn { border-radius: 19px 0 0 19px; padding-right: 9px; }
.composer-row .sim-more { height: 38px; width: 28px; border-radius: 0 19px 19px 0; }
.composer-row .start { order: 3; height: 38px; margin: 0; }
.composer-row .start.labelled { padding: 0 16px 0 12px; gap: 7px; border-radius: 19px; font-size: 14.5px; }
.composer-row .start .ico { width: 19px; height: 19px; }
.composer.two-rows .composer-row { flex-wrap: wrap; }
.composer.two-rows .composer-row .composer-input { flex: 1 0 100%; order: -1; padding: 8px 9px; }
.composer.two-rows .composer-row .plus { margin-right: auto; }
.composer .cards { margin: 0 0 4px; }
.composer-len { padding: 2px 10px 1px; font-size: 12px; }
/* Above the bar: "Telling Perri about <meeting>" at the left, the For: menu at the right, small. */
.dock-in > .composer-for { align-items: center; gap: 8px; min-height: 24px; padding: 0 12px 5px 16px; font-size: 12px; }
.dock-in > .composer-for .for-k { font-size: 10px; line-height: 1.4; letter-spacing: 0.07em; }
.dock-in > .composer-for .for-t { font-size: 12.5px; }
.dock-in > .composer-for .for-level { height: 24px; padding: 0 6px; margin-right: -6px; border-radius: 6px; font-size: 12.5px; }
.dock-in > .composer-for .for-level:hover, .dock-in > .composer-for .for-level[aria-expanded="true"] { background: var(--fill); }
.dock-in > .composer-for.only-level { padding: 0 12px 5px 16px; }
.dock-in > .composer-for.only-level .for-level { height: 24px; }
/* Under the bar: one quiet line. */
.under-bar { min-height: 26px; margin-top: 5px; padding: 0 12px 0 16px; font-size: 12.5px; gap: 6px 16px; }
.under-act { height: 24px; font-size: 12.5px; gap: 4px; }
.under-r { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 2px 14px; min-width: 0; text-align: right; }
.under-r .composer-plan { padding: 0; margin: 0; font-size: 12.5px; text-align: right; }
.under-r .composer-plan[hidden] { display: none; }
@media (max-width: 640px) {
  /* A phone: the field has the whole width, the controls under it, always. */
  .composer-row { flex-wrap: wrap; }
  .composer-row .composer-input { flex: 1 0 100%; order: -1; padding: 8px 9px; }
  .composer-row .plus { margin-right: auto; }
  .composer:not(.two-rows) .composer-row .send[hidden] { display: grid; }
  .composer-row .sim-split .sim-btn { width: 40px; padding: 0; justify-content: center; }
  .composer-row .start.labelled { width: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .under-bar { flex-wrap: wrap; padding: 0 10px 0 12px; }
  .under-r { justify-content: flex-start; gap: 2px 8px; text-align: left; font-size: 12px; }
  .under-r .composer-plan { font-size: 12px; }
  .under-r .composer-plan { text-align: left; }
  .dock-in > .composer-for, .dock-in > .composer-for.only-level { padding: 0 8px 4px 12px; }
}

/* The Context card's close button, beside its "up to date" mark. */
.ctx-head-r { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.ctx-x { width: 28px; height: 28px; margin: -4px -6px -4px 0; }

/* ───────── Preparing (room.js prepView, tipsView, prepQuietView; the owner, 2026-11-28, items 15 and 16) ─────────
   A first build is the stage: a slim bar in the one green, the build's own step under it, the readiness word once the
   core has one, and one tip at a time on a card. The bar moves on its own between check-ins (slower as it nears the
   end of a step) and never goes back. A later update is one quiet line under the stage. Reduced motion: no sheen, no
   easing, no cross-fades; the bar still fills. */
.prep { width: min(380px, 100%); margin: 30px auto 0; }
.prep-bar { position: relative; display: block; height: 5px; border-radius: 99px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.prep-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green-down), var(--green) 70%, #2a9a62); transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1); overflow: hidden; }
.prep-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%); transform: translateX(-100%); animation: prep-sheen 2.8s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
.prep-bar.full .prep-fill::after { animation: none; opacity: 0; }
@keyframes prep-sheen { 0% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }
.prep-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 18px; margin-top: 13px; font-size: 14px; line-height: 1.4; }
.prep-step { color: var(--muted); transition: opacity 0.22s ease, transform 0.22s ease; }
.prep-step.out { opacity: 0; transform: translateY(3px); }
.prep-level { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink); animation: prep-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.prep-level[hidden] { display: none; }
.prep-level::before { content: ""; flex: none; width: 7px; height: 7px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--faint); }
.prep-level.lv-ready::before { border: 0; background: radial-gradient(circle at 35% 30%, #4fb780 0%, #18804b 55%, #0f6038 100%); }
.prep-level.lv-ready-for-the-general-questions::before, .prep-level.lv-mostly-ready::before { border-color: #18804b; }
@keyframes prep-rise { from { opacity: 0; transform: translateY(4px); } }
.prep-tips { width: min(30em, 100%); margin: 40px auto 0; padding: 18px 22px 10px; border-radius: 16px; border: 1px solid var(--g-edge); border-top-color: var(--g-edge-top); background: var(--card-fill); box-shadow: inset 0 1px 0 var(--g-sheen), var(--g-shadow); }
.prep-tip-t { min-height: 1.5em; font-size: 15px; line-height: 1.5; color: var(--ink-2); letter-spacing: -0.004em; transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), filter 0.38s ease; }
.prep-tip-t.out { opacity: 0; transform: translateY(5px); filter: blur(2px); }
.prep-tip-dots { display: flex; justify-content: center; gap: 0; margin-top: 8px; }
.prep-tip-dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.prep-tip-dot::before { content: ""; width: 5px; height: 5px; border-radius: 3px; background: var(--line-strong); transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s; }
.prep-tip-dot[aria-current="true"]::before { width: 14px; background: var(--muted); }
.prep-tip-dot:hover::before { background: var(--muted); }
.prep-tip-dot:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 0; }
.stage .prep + .third { margin-top: 20px; }
.prep-quiet { display: inline-flex; align-items: center; gap: 10px; margin: 16px auto 0; font-size: 13px; color: var(--faint); }
.prep-bar.sm { width: 64px; height: 3px; }
/* During a first build, the questions only the person can answer, answerable, under the tips: the Context card's gaps
   block alone, fading in when they arrive. */
.ctx-gaps-only { margin-top: 28px; }
.ctx-gaps-only .ctx-gaps { margin-top: 0; }
.ctx-gaps-only.arrive { animation: prep-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
@media (max-width: 560px) {
  .prep { margin-top: 24px; }
  .prep-tips { margin-top: 32px; padding: 16px 18px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .prep-fill, .prep-step, .prep-tip-t, .prep-tip-dot::before { transition: none; }
  .prep-fill::after { animation: none; display: none; }
  .prep-level, .ctx-gaps-only.arrive { animation: none; }
}
/* The Context card's gaps at phone width: the question takes the whole line, its two actions under it (it was squeezed
   into a column a word wide beside them). */
.ctx-gaps .hrow { flex-wrap: wrap; row-gap: 6px; }
.ctx-gaps .hrow-t { flex: 1 1 220px; min-width: 0; }
.ctx-gaps .hrow .row-acts { margin-left: auto; }

/* A few lines about the person (profile.js): a quiet card under the stage on an interview with nothing about them. */
.about-you { margin: 14px auto 0; max-width: 560px; width: 100%; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--card-fill, var(--raised)); text-align: left; }
.about-you-t { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.about-you-why { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.about-you-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.about-you-acts .btn .ico { margin-right: 6px; }
.about-you-skip { margin-left: auto; }
.about-you-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--faint, var(--muted)); }
.about-you-panel .about-row { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.about-you-panel .about-l { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.about-you-panel .about-in { min-height: 54px; resize: vertical; }
@media (max-width: 520px) { .about-you { padding: 12px 14px; } .about-you-skip { margin-left: 0; } }

/* Settings, Accounts (docs/ACCOUNTS.md): an account's controls in one wrapping row. */
.set-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.set-actions select.input { width: auto; min-width: 9em; }
