/* Deckpost — app shell styles.
   Tokens and component rules taken from design/screens.html (E-Ink / Paper, DEC-027), which is
   the approved design for this phase. Nothing here is fetched: no font, no image, no icon —
   this file is served under `default-src 'self'` and would refuse an outside request anyway. */

/* PHASE 02 RESKIN (DEC-127): the phase-01 token NAMES are kept — every older rule below reads
   them — but their VALUES now come from the approved phase-02 design,
   design/phase02/deckpost-phase02.html `:root` (both themes). The E-Ink / Paper palette is gone.
   The design's own token names (--bg, --card, --text…) are defined alongside, and new rules use
   those. Nothing here is fetched: the font stacks are system fonts only (CSP default-src 'self'). */
:root {
  --bg:#F2F2F7; --card:#FFFFFF; --card-2:#E9E9EE; --line:rgba(60,60,67,.12);
  --text:#000; --text-2:rgba(60,60,67,.74); --text-3:rgba(60,60,67,.74);
  --accent-fill:#3F5BEA; --accent-ink:#fff;
  --ring-cpu:#3F5BEA; --ring-mem:#7489F0; --ring-disk:#A9B6F6;
  --sheet:#FFFFFF; --field:#EFEFF4;
  --r-card:22px; --r-row:16px; --r-ctl:12px;
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",system-ui,"Segoe UI",Roboto,sans-serif;
  --round:ui-rounded,"SF Pro Rounded",-apple-system,system-ui,"Segoe UI",sans-serif;

  --paper:        var(--card);
  --paper-raised: var(--card);
  --paper-sunk:   var(--bg);
  --ink:          var(--text);
  --ink-soft:     var(--text-2);
  --ink-faint:    var(--text-3);
  --rule:         var(--line);
  --rule-strong:  rgba(60,60,67,.29);
  --accent:       #3F5BEA;
  --accent-wash:  color-mix(in srgb, var(--accent) 12%, transparent);
  --danger:       #D70015;
  --danger-wash:  color-mix(in srgb, var(--danger) 12%, transparent);

  --font-ui: var(--sans);
  --font-read: var(--sans);

  --tap: 44px;
  --radius: var(--r-ctl);
  --speed: 150ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:#000; --card:#1C1C1E; --card-2:#2C2C2E; --line:rgba(255,255,255,.09);
    --text:#fff; --text-2:rgba(235,235,245,.66); --text-3:rgba(235,235,245,.55);
    --accent-fill:#4F63F0;
    --ring-cpu:#6E86FF; --ring-mem:#9CABFF; --ring-disk:#C8D0FF;
    --sheet:#1C1C1E; --field:#2C2C2E;
    --rule-strong:  rgba(84,84,88,.65);
    --accent:       #6E86FF;
    --danger:       #FF453A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

/* BROWSER-QA B4: `app/index.html`'s hidden icon/scene sprite used to carry its own
   `style="position:absolute"` — the app shell is served under `Content-Security-Policy:
   default-src 'self'` (docs/spec/API.md), with no `'unsafe-inline'` on `style-src`, so a real
   browser refuses that inline style outright and logs it on every single page load. The refused
   style also had a visible side effect, not only a console line: still `position:static`, the
   sprite kept taking one full line of block height on every screen (~26px), which is where the
   reported stray page scroll came from. Moved here, where the same policy allows it. */
.icon-sprite { position: absolute; }
body {
  background: var(--paper-sunk);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
}

#app { min-height: 100%; display: flex; flex-direction: column; }

.screen { flex: 1 1 auto; min-height: 0; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.screen.center { justify-content: center; }

label.fld { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }

input.txt {
  width: 100%; min-height: var(--tap);
  font: inherit; font-size: 16px; /* never below 16 — iOS zooms the page on focus */
  color: var(--ink); background: var(--paper-raised);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  padding: 10px 12px;
}
/* Where the keyboard is.
 *
 * The approved design specifies a three-pixel accent ring on every focusable thing and says it
 * is never removed. This stylesheet had no focus styling at all, so anyone navigating by
 * keyboard — which on this app means anyone who cannot use a touchscreen — could not see where
 * they were. Found by browser QA walking the app with the Tab key rather than reading the code.
 *
 * `:focus-visible` rather than `:focus`, so a ring appears for the keyboard and not around a
 * button somebody has just tapped. The offsets differ per control for the same reason they do
 * in the design: inside on the deck rows, where an outside ring would be clipped by the list. */
input.txt:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* AFTER the focus rule, which is where the design puts it, and the order is the whole point.
 *
 * These two have the same weight, so whichever is written last wins. With the wrong-password red
 * written first, focusing the box replaced it with the accent colour — and the app moves the
 * cursor into the box the moment it refuses, so the red was never on screen for a single frame.
 * Browser QA found it by being refused and looking, which is not something reading the rule can
 * do. A box that is both focused and wrong is now wrong first: the ring says where you are, the
 * border says what is the matter. */
input.txt[aria-invalid="true"] { border-color: var(--danger); }

.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
a.deck:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 6px; }
.deckbar a:focus-visible,
.deckbar a.next:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); width: 100%;
  font: inherit; font-size: 15px; font-weight: 600;
  border-radius: var(--radius); border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  cursor: pointer; padding: 0 16px;
  transition: background var(--speed) linear, color var(--speed) linear, border-color var(--speed) linear;
}
.btn[disabled] { background: var(--paper-sunk); color: var(--ink-faint); border-color: var(--rule-strong); cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.inline { width: auto; min-width: 120px; }

.msg {
  margin: 0; font-size: 14px; line-height: 1.5;
  padding: 10px 12px; border-radius: var(--radius);
  border-left: 3px solid var(--rule-strong);
  background: var(--paper-sunk); color: var(--ink-soft);
}
.msg.err   { border-left-color: var(--danger); background: var(--danger-wash); color: var(--ink); }
.msg.ok    { border-left-color: var(--accent); background: var(--accent-wash); color: var(--ink); }
.msg.quiet { border-left-color: var(--rule-strong); }

ul.decks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
ul.decks li + li { border-top: 1px solid var(--rule); }

a.deck {
  display: flex; align-items: baseline; gap: 10px;
  min-height: var(--tap);
  padding: 12px 4px; text-decoration: none; color: inherit;
}
a.deck .t {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--font-read); font-size: 16px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
a.deck .w { flex: none; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
a.deck .mark { flex: none; width: 18px; height: 18px; color: var(--ink-faint); align-self: center; }
a.deck .col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
a.deck .sub { font-size: 13px; line-height: 1.4; color: var(--ink-faint); }
a.deck .sub.gap { color: var(--danger); }

.part-missing {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--tap); padding: 12px 4px;
  font-size: 14px; line-height: 1.4; color: var(--ink-soft);
}
.part-missing .ic { flex: none; width: 16px; height: 16px; color: var(--danger); }

.empty { text-align: center; color: var(--ink-soft); font-size: 15px; padding: 0 8px; }

/* Loading — skeleton rows at the real row height, so nothing jumps when the decks land.
   Deliberately unanimated: the design's own Motion rule allows only a 150ms colour change on a
   tap, nothing that moves — so these never shimmer, in or out of prefers-reduced-motion. */
.screen.loading { gap: 0; }
.skel { background: var(--paper-sunk); border-radius: 4px; height: 12px; }
.skel.t { height: 15px; width: 78%; }
.skel.t2 { height: 15px; width: 54%; }
.skel.w { width: 46px; height: 11px; }
.skel-row { display: flex; align-items: baseline; gap: 10px; padding: 13px 4px; min-height: var(--tap); }
.skel-row + .skel-row { border-top: 1px solid var(--rule); }
.skel-row .col { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; }

.notif { flex: none; margin-top: auto; border-top: 1px solid var(--rule); padding-top: 14px; }

.deckbar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 10px; border-bottom: 1px solid var(--rule);
}
.deckbar a {
  display: inline-flex; align-items: center; gap: 6px;
  /* BROWSER-QA S3/S6: was 36px — under the 44px tap-target rule this app holds to everywhere
     else (item 13's own fix already covers every OTHER control this size). */
  min-height: var(--tap); padding: 0 10px 0 6px; margin-left: -6px;
  font-size: 14px; font-weight: 600;
  color: var(--ink); text-decoration: none; border-radius: 8px;
}
.deckbar .t {
  flex: 1 1 auto; min-width: 0; text-align: right;
  font-family: var(--font-read); font-size: 13px; color: var(--ink-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.deckbar .t.mid {
  text-align: center; font-family: var(--font-ui); font-weight: 600; color: var(--ink-soft);
}
.deckbar a.next { margin-left: 0; margin-right: -6px; padding: 0 6px 0 10px; }
.deckbar .spacer { flex: none; width: 104px; }

/* The deck fills the screen under the app's own strip. `height: 100%` was here and resolved
   against `#app`, which carries only a MINIMUM height — a percentage height against a parent of
   indeterminate height is not resolvable at all, so the browser fell back to the frame's default
   box and the deck appeared in a 150-pixel band with the rest of the screen empty. Found by
   browser QA on the production image. The static unit comes first so a browser that does not
   know `dvh` still gets a definite height; the dynamic one then keeps the deck clear of the
   iPhone's own toolbar as it appears and disappears. */
.deck-screen { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.deck-screen iframe { flex: 1 1 auto; min-height: 0; border: 0; width: 100%; }

/* THE DECK ITSELF HAS NO FOCUS RING, AND THIS IS WHERE THE ATTEMPT IS RECORDED.
 *
 * It is the one focusable thing on this screen with nothing to show for it. The design states a
 * rule rather than a list — "a 3 px accent ring on everything reachable by keyboard, never
 * removed, only offset" — and the deck is reachable by keyboard; that is how it gets scrolled
 * without a mouse.
 *
 * A rule was written here, `.deck-screen iframe:focus-visible`, and it was WRONG — not wrong in
 * what it drew, but in believing the state ever happens. Browser QA found it by tabbing: the ring
 * never appeared, though forcing the state on drew it exactly as promised.
 *
 * Measured in three surfaces of ONE browser (Chrome), reaching the deck by Tab, by click, and by
 * script. No surface disagreed on any row — but Firefox and Safari are unmeasured, and this note
 * must not be read as saying otherwise:
 *
 *   tab onto the deck  →  document.activeElement IS the iframe
 *                         iframe:focus          false
 *                         iframe:focus-visible  false   ← so the rule could never fire
 *                         .deck-screen:focus-within     FALSE
 *
 * `:focus-within` is NOT the way out. It reads true only when `iframe.focus()` is called from
 * script, or when the Decks back link has focus — that link sits inside `.deck-screen`, so a rule
 * hung on `:focus-within` would ring the whole deck screen while the user is focused on the back
 * link, which already has its own ring. Worth checking Firefox and Safari before choosing;
 * everything above is Chrome.
 *
 * THE FOURTH LINE USED TO SAY TRUE, and how that happened is worth more than the line. It was
 * measured — but measured by calling `iframe.focus()` from a script and then asking, which is not
 * what a person does and is the one route that produces TRUE. A measurement taken by doing
 * something the user never does, written down as what happens when the user does it. The rest of
 * this file is about the service stating things that are not so; this is a comment doing it, in
 * the note explaining a fix for exactly that.
 *
 * So the rule is gone rather than left in place looking like a fix, the item stays open on the
 * owner's list where browser QA put it, and the next person starts from real numbers instead of
 * from the beginning. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; }
}

/* ================================================================================================
   Phase 02 — Summary · Projects · Files, Account, Server.
   DASH-5: every size below is a `rem` (relative to the root, which itself never sets a fixed
   size), so it scales with the phone's own Dynamic Type setting rather than a pixel the owner
   cannot change — unlike this file's phase-01 rules above, which predate that requirement and are
   left as they are (untouched, so as not to risk the locked phase-01 tests that read them).

   Tokens below (--accent-2/--ok/--bad/--ask/--glass…) are carried over from the approved design,
   `design/phase02/deckpost-phase02.html` at 2160bd7 — DEC-072. An earlier pass here (recorded as
   DEC-lane02-4-4) used only the plain phase-01 tokens; the coordinator rejected that as "not
   acceptable" on round 2, so this section now carries the design's own glass/gradient/status
   colours, in both themes, alongside the phase-01 palette above which stays exactly as it was.
   Scene art (the five SVG project photos, DEC-110) and the desktop-only screens (Ask sheet,
   sliding Answer sheet motion) are NOT yet built into this file — see decisions/lane-02-4.md for
   exactly what is still missing and why. */

:root {
  --glass:        rgba(255,255,255,.82);
  --glass-line:   rgba(0,0,0,.08);
  --glass-hi:     rgba(255,255,255,.7);
  --ok:           #1A7431;
  --bad:          #D70015;
  /* browser-qa-4eadc38, S-new-5: the question card's "Answered"/"Blocking" pills draw white text
     on top of --ok/--bad — in light mode that is this same pair, already measuring 5.9:1/5.4:1
     (report's own numbers) — kept as its own token pair, not aliased to --ok/--bad directly, so
     dark mode below can hold a DIFFERENT value for the pill than for --ok/--bad's other uses
     (the Server screen's status text, the history strip) without touching those. */
  --pill-ok:      var(--ok);
  --pill-bad:     var(--bad);
  /* browser-qa-810b7d1, S-11-4: same pill-token pattern as --pill-ok/--pill-bad just above —
     the "Waiting to send" pill drew white text on --ink-soft directly, which light mode's own
     #4A4A4A passes comfortably (~8.9:1) but dark mode's own, much lighter #BDB7AC measured only
     1.99:1 (missed in the S-new-5 contrast sweep, since that sweep only checked --pill-ok/-bad,
     never the pre-existing .wait pill). A distinct token, not a second use of --ink-soft, so dark
     mode below can hold a DIFFERENT value here without touching --ink-soft's own other uses
     (labels, muted text) at all.
  */
  --pill-wait:    var(--ink-soft);
  --ask:          #F29100;
  --ask-tx:       #A34B00;
  /* BROWSER-QA S5: the "Waiting on you" card's own gradient, darkened from the design's original
     #5C7CFA/#3B5BDB — white text over the light end measured ~3.7:1, under the PRD's 4.5:1 rule.
     #3550C4 -> #1F2E7A keeps the same hue and measures ~6.8:1 at the lighter end and ~12:1 at the
     darker one (WCAG relative-luminance formula, checked by hand). */
  --q1: #3550C4; --q2: #1F2E7A;
}
@media (prefers-color-scheme: dark) {
  :root {
    --glass:      rgba(38,38,40,.80);
    --glass-line: rgba(255,255,255,.14);
    --glass-hi:   rgba(255,255,255,.10);
    --ok:         #30D158;
    --bad:        #FF453A;
    /* browser-qa-4eadc38, S-new-5: white on dark mode's own brighter --ok/--bad (rgb(48,209,88),
       rgb(255,69,58)) measured ~2.0:1 / ~3.4:1 on the pills — under the PRD's 4.5:1 rule, even
       though those same tokens are fine for OTHER dark-mode uses (status text on the page's own
       dark background, not white text on the colour itself). The pill tokens reuse light mode's
       own already-passing hex values verbatim (5.9:1/5.4:1, this report's own numbers) rather than
       inventing a third pair of greens/reds. */
    --pill-ok:    #1A7431;
    --pill-bad:   #D70015;
    /* S-11-4: light mode's own already-passing hex (--ink-soft's light value), reused verbatim —
       same "measure it once, reuse it" approach as --pill-ok/--pill-bad above, not a new colour. */
    --pill-wait:  #4A4A4A;
    --ask:        #FF9F0A;
    --ask-tx:     #FF9F0A;
    /* BROWSER-QA S5: dark mode measured ~3.2:1 with the design's original #6E86FF/#4C63D2 —
       darkened the same way as the light tokens above, for the same reason. */
    --q1: #33449E; --q2: #1B2760;
  }
}

.tabshell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.tabshell > .screen, .tabshell > .summary { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

.topbar { flex: none; display: flex; justify-content: flex-end; padding: 8px 12px; }
.topbar .avatar {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--tap); min-height: var(--tap); border-radius: 999px;
  background: var(--paper-raised); border: 1px solid var(--rule-strong);
  color: var(--ink); text-decoration: none; font-size: 0.8rem; padding: 0 10px;
}
.topbar .avatar:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* The floating glass tab bar (design's `.navbar-c`) — blur is skipped, not merely muted, under
   reduced motion/transparency, per the design's own rule that glass is a decoration, not content. */
.tabbar {
  flex: none; display: flex; margin: 0 10px 10px; padding: 4px;
  border-radius: 18px; border: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
@media (prefers-reduced-motion: reduce) {
  .tabbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper-raised); }
}
.tabbar .tab {
  flex: 1 1 0; min-height: var(--tap); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font: inherit; font-size: 0.85rem; font-weight: 600;
  background: transparent; border: 0; color: var(--ink-faint); cursor: pointer;
}
.tabbar .tab[aria-selected="true"] { color: var(--accent); background: var(--glass-hi); }
.tabbar .tab:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* Summary — the tile grid and its offline pill (DASH-1, DASH-2, DASH-4) */
.summary { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.summary .pill {
  margin: 0; font-size: 0.85rem; padding: 8px 12px; border-radius: var(--radius);
  background: var(--accent-wash); color: var(--ink); border-left: 3px solid var(--accent);
}
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  background: var(--paper-raised); border: 1px solid var(--glass-line);
  border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.tile h5 { margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.tile .lbl { display: block; }
.tile .big { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .tls { display: flex; flex-direction: column; gap: 2px; font-size: 0.75rem; color: var(--ink-faint); }
/* Item 13: 44px is the minimum comfortable tap target — this pill measured 36px. */
.tile .see-all { margin-top: 4px; min-height: var(--tap); font-size: 0.8rem; }

.tile-list { display: flex; flex-direction: column; gap: 10px; }
/* Item 13: 44px minimum, was 36px. */
.tile-list [data-action="back-to-summary"] { align-self: flex-start; min-height: var(--tap); font-size: 0.85rem; }

/* Questions (QA-1, QA-2, DASH-3) — the design's own blue "Waiting on you" card, gradient-filled;
   a plain question keeps a neutral card so Blocking's red pill and this card's own colour do not
   both compete for "urgent" at once. */
.qlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.qcard {
  border-radius: var(--radius); padding: 0.85rem; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(160deg, var(--q1), var(--q2)); color: #fff;
  position: relative; overflow: hidden;
}
.qcard .qh { display: flex; justify-content: space-between; font-size: 0.8rem; opacity: 0.85; }
.qcard p { margin: 0; font-size: 0.95rem; }
.qcard .acts { display: flex; align-items: center; gap: 10px; }
.qcard .bpill {
  font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--pill-bad);
  border-radius: 999px; padding: 2px 10px;
}
/* Item 13: 44px minimum tap target (was 36px) — this is the Answer button.
   BROWSER-QA S5: its own translucent white background over the card's now-darker gradient
   (above) still measured under 4.5:1 for the "Answer" label — a darker, more opaque overlay
   raises it comfortably past that, in both themes, without needing a separate dark-mode value. */
.qcard .btn-w {
  min-height: var(--tap); font-size: 0.85rem; font-weight: 600; border-radius: 999px; border: 0;
  background: rgba(0,0,0,.35); color: #fff; padding: 0 14px;
}
.answer-form { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.answer-form textarea { min-height: 72px; font: inherit; font-size: 1rem; padding: 8px; border-radius: var(--radius); border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); }

/* The Answer sheet (design's "10 Answer sheet", S9/S9b) and the Ask sheet (S13/S14) share this
   sliding-sheet shell — `.sheetwrap`/.dim/.sheet` — built once here for both. */
.sheetwrap { position: fixed; inset: 0; z-index: 20; }
.sheetwrap .dim { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 85vh; overflow-y: auto;
  background: var(--paper-raised); border-radius: 1.6rem 1.6rem 0 0;
  padding: 0.5rem 1rem 1.25rem; box-shadow: 0 -10px 40px rgba(0,0,0,.35);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.grab { width: 2.25rem; height: 0.3rem; border-radius: 0.15rem; background: var(--rule-strong); margin: 0 auto; }
.sh-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.sh-top .ey { font-size: 0.8rem; color: var(--ink-faint); }
.sh-top .qleft { margin-left: auto; font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); }
/* Item 13: 44px minimum tap target (was 2rem = 32px) — the sheet's own close button. */
.xbtn {
  flex: none; width: var(--tap); height: var(--tap); border-radius: 999px; border: 0;
  background: var(--paper-sunk); color: var(--ink-soft); display: grid; place-items: center; cursor: pointer;
}
.sheet h6 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin: 0; }
.choices { display: flex; gap: 0.5rem; }
.choices .chip {
  flex: 1; height: var(--tap); border-radius: 999px; border: 1px solid var(--rule-strong);
  background: var(--paper-sunk); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.choices .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sheet .field {
  min-height: 6rem; font: inherit; font-size: 1rem; padding: 0.75rem;
  border-radius: var(--radius); border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink);
}
.btn.gray { background: var(--paper-sunk); color: var(--ink); border-color: var(--rule-strong); }
.done-state { text-align: center; padding: 0.5rem 0 1rem; }
.done-state .ck.big {
  width: 3.5rem; height: 3.5rem; margin: 0 auto 0.75rem; border-radius: 999px;
  background: var(--accent); color: var(--paper); font-size: 1.75rem; display: grid; place-items: center;
}
.done-state h6 { margin: 0; }
.hint { font-size: 0.8rem; color: var(--ink-faint); text-align: center; margin: 0.5rem 0 0; }
.nextq { text-align: center; font-size: 0.9rem; }
.nextq .ey { display: block; font-size: 0.8rem; color: var(--ink-faint); }

/* The Ask sheet (S13/S14, ASK-1..5) and its report-view trigger. */
.askpill {
  position: absolute; right: 1rem; bottom: 1.1rem; height: 3rem; padding: 0 1rem;
  border-radius: 1.5rem; border: 0; font-weight: 700; font-size: 1rem;
  background: linear-gradient(160deg, var(--q1), var(--q2)); color: #fff; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.askpill[disabled] { opacity: 0.5; box-shadow: none; cursor: default; }
.deck-screen { position: relative; } /* .askpill's own absolute positioning anchors here */

.quote {
  border-left: 3px solid var(--accent); background: var(--paper-sunk); color: var(--ink-soft);
  border-radius: 0.4rem 0.75rem 0.75rem 0.4rem; padding: 0.5rem 0.75rem; font-size: 0.9rem;
}
.ans { font-size: 1rem; line-height: 1.45; margin: 0; }
.ans + .ans { margin-top: 0.75rem; }
.me {
  margin: 0.5rem 0 0.5rem auto; max-width: 80%; width: fit-content;
  background: var(--accent); color: var(--paper); border-radius: 1.1rem 1.1rem 0.25rem 1.1rem;
  padding: 0.5rem 0.75rem; font-size: 0.9rem;
}
.convo { display: flex; flex-direction: column; }
.askin { display: flex; gap: 0.5rem; align-items: center; }
.askin .f {
  flex: 1; min-height: var(--tap); border-radius: 1.375rem; background: var(--paper-sunk);
  display: flex; align-items: center; padding: 0 1rem; color: var(--ink); font-size: 1rem;
}
.askin .f[contenteditable="false"] { color: var(--ink-faint); }
.send {
  flex: none; width: var(--tap); height: var(--tap); border-radius: 999px; border: 0;
  background: var(--accent); color: #fff; font-size: 1.1rem; display: grid; place-items: center; cursor: pointer;
}
.send[disabled] { background: var(--paper-sunk); color: var(--ink-faint); cursor: default; }
.usage { font-size: 0.8rem; color: var(--ink-faint); }
.usage .ub { height: 4px; border-radius: 2px; background: var(--paper-sunk); margin-top: 0.5rem; overflow: hidden; }
.usage .ub i { display: block; height: 100%; background: var(--ok); }
.limit {
  background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad);
  border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.9rem; font-weight: 600;
}
.limit small { display: block; font-weight: 400; color: var(--ink-soft); margin-top: 0.2rem; }

/* The Projects tab's hero carousel (S7, "06 Project cards"). scroll-snap, not an animation, so it
   is not itself gated by prefers-reduced-motion — only the smooth-scroll EASE between snap points
   is, per the design's own "respect reduced motion" rule for anything that moves on its own. */
.carousel {
  display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 1rem 0.25rem; scroll-behavior: smooth; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .carousel { scroll-behavior: auto; } }
.hero {
  flex: 0 0 100%; height: 27.5rem; border-radius: 1.6rem; overflow: hidden; position: relative;
  scroll-snap-align: center; color: #fff; text-decoration: none; display: block;
  box-shadow: 0 1rem 2.25rem rgba(0,0,0,.4);
  background: radial-gradient(110% 75% at 30% 18%, #A9B8FF, #5068F0 45%, #1C2378); /* .nophoto's own gradient, doubling as the base under a real scene */
}
.hero > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .shade { position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.3)); }
.hero .pillg { position: absolute; top: 0.875rem; left: 0.875rem; display: flex; gap: 0.5rem; }
.hero .gp {
  height: 1.875rem; padding: 0 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  display: inline-flex; align-items: center; color: #fff;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hero .gp.q { background: rgba(255,159,10,.9); border-color: transparent; color: #000; }
.hero .name {
  position: absolute; left: 1rem; right: 1rem; bottom: -0.1em; text-align: center;
  font-weight: 700; font-size: 3.5rem; letter-spacing: -0.045em; line-height: 1;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.7));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.hero .name.s { font-size: 2.3rem; } /* the design's own "long names get smaller letters" tier */
.pdots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.75rem; }
.pdots i { width: 0.45rem; height: 0.45rem; border-radius: 999px; background: var(--rule-strong); }
.pdots i.on { background: var(--ink); width: 1.1rem; border-radius: 0.25rem; }
@media (prefers-reduced-motion: reduce) { .pdots i { transition: none; } }

/* Sessions (SESS-2) */
ul.sessions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
ul.sessions li + li { border-top: 1px solid var(--rule); }
a.session { display: flex; flex-wrap: wrap; gap: 4px 10px; min-height: var(--tap); padding: 10px 4px; text-decoration: none; color: inherit; font-size: 0.85rem; }
a.session .project { font-weight: 700; flex-basis: 100%; }
a.session .time { color: var(--ink-faint); margin-left: auto; }

/* Projects and Files rows */
ul.pcards, ul.apps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
a.pcard, a.approw, a.frow {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  min-height: var(--tap); padding: 12px; text-decoration: none; color: inherit;
  background: var(--paper-raised); border: 1px solid var(--glass-line); border-radius: var(--radius);
}
a.frow .tx { display: flex; flex-direction: column; }
a.frow .tx small { color: var(--ink-faint); font-size: 0.75rem; }

/* DEC-110's scene art — a project's own drawn photo, at every size the design draws it: a small
   row thumbnail (`.thumb`, `.qth`, `.tth`), and the full-bleed folder/project header (`.phero`).
   `.nophoto` is the ONLY fallback (a plain gradient, no drawn scene) — there is no "Add photo"
   control anywhere in this file. */
.thumb, .qth {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; overflow: hidden; flex: none;
  background: radial-gradient(120% 80% at 30% 20%, #8A7CFF, #3B2F9E 55%, #1A1552);
}
.qth { width: 2.25rem; height: 2.25rem; border-radius: 0.6rem; }
.thumb svg, .qth svg, .phero > svg { width: 100%; height: 100%; display: block; }

a.pcard { position: relative; }
a.frow {
  position: relative; overflow: hidden; color: #fff; min-height: 5.25rem;
  background: radial-gradient(80% 120% at 10% 50%, #7E93FF, #1F2A7A);
}
a.frow .bgs {
  position: absolute; inset: -1.5rem; width: calc(100% + 3rem); height: calc(100% + 3rem);
  filter: blur(22px) saturate(1.5); transform: scale(1.1);
}
a.frow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.72) 75%);
}
a.frow > *:not(.bgs) { position: relative; z-index: 1; }
a.frow .thumb { background: transparent; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
a.frow .tx b { font-weight: 700; }
a.frow .tx small { color: rgba(255,255,255,.82); }
a.frow.nophoto { background: radial-gradient(80% 120% at 10% 50%, #7E93FF, #1F2A7A); }

/* BROWSER-QA S1: this used to be a flex row (`align-items:flex-end; justify-content:center`),
   which laid the scene `<svg>` and the `.name` div out SIDE BY SIDE — the name squeezed into a
   narrow strip at the right, clipped, at every width. The svg is now an absolutely-positioned
   background layer (the same pattern `.hero` already uses), and `.name` is centred over it. */
/* browser-qa-4eadc38, S-new-1: `.phero` is a flex child of the scrolling `.screen` column
   (`.screen { display: flex; flex-direction: column; }`) — with no `flex-shrink` of its own, the
   default (1) let the browser squeeze its fixed 14rem height down as the rest of the column
   (phase list, question cards) grew past the viewport, down to a clipped 38px strip on a project
   with a long question list. `flex-shrink: 0` keeps it at its own reported height always;
   `.screen`'s own scrolling is what should absorb extra content, not this header. */
.phero {
  position: relative; height: 14rem; flex-shrink: 0; margin: 0 -1rem 1rem; overflow: hidden; color: #fff;
  background: radial-gradient(110% 75% at 30% 18%, #A9B8FF, #5068F0 45%, #1C2378);
}
.phero > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.phero .name {
  position: absolute; left: 1rem; right: 1rem; bottom: 0; z-index: 1;
  padding-bottom: 0.75rem; text-align: center; font-weight: 700; font-size: 1.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* BROWSER-QA S1: `.phero`'s own `-1rem` bleed assumes 1rem of horizontal padding on whatever
   screen it sits in to "eat" — the Project page's `.screen` has exactly that, but the Files
   folder screen (`.deck-screen`, shared with the plain iframe deck view, which must stay
   padding-free so the frame is edge to edge) did not, so the same bleed overflowed the viewport
   by 1rem and produced a 16px sideways scroll on every width. `.folder-screen` restores just
   enough padding for the header's own bleed to land flush, without touching `.deck-screen` on
   its own (the iframe view). */
.deck-screen.folder-screen { padding: 0 1rem; }

/* Server (MON), DEC-112 — status text and the real up/down history strip, no resource chart. */
.approw .st.up  { color: var(--ok); }
.approw .st.bad { color: var(--bad); }
.strip { display: flex; gap: 1.5px; height: 16px; margin: 2px 0 0; }
.strip i { flex: 1 1 0; min-width: 1px; border-radius: 1px; background: var(--ok); opacity: 0.55; }
.strip i.d { background: var(--bad); opacity: 1; }

/* Account (DASH-6) */
ul.toggles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
ul.toggles li + li { border-top: 1px solid var(--rule); }
.togrow { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); padding: 8px 4px; font-size: 0.95rem; }
.togrow input[type="checkbox"] { width: 44px; height: 26px; }

/* File actions menu (FILE-2) */
/* Item 13: 44px minimum tap target on both axes now (height was 36px) — the ••• menu. */
.menu-trigger {
  min-width: var(--tap); min-height: var(--tap); margin-left: auto;
  background: transparent; border: 0; color: var(--ink); font-size: 1.1rem; cursor: pointer;
}
[role="menu"] {
  position: absolute; right: 12px; top: 48px; z-index: 5;
  background: var(--paper-raised); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); display: flex; flex-direction: column; overflow: hidden;
}
[role="menuitem"] {
  min-height: var(--tap); min-width: 160px; text-align: left; padding: 0 16px;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule); color: var(--ink);
  font: inherit; font-size: 0.9rem; cursor: pointer;
}
[role="menuitem"]:last-child { border-bottom: 0; }
.deckbar { position: relative; }

/* DEC-085's Import card (design's "S1 Summary, first run"), shown above Summary's own tile grid. */
.card {
  background: var(--paper-raised); border: 1px solid var(--glass-line, var(--rule-strong));
  border-radius: var(--radius); padding: 12px; margin-bottom: 12px;
}
.card.import h4 { margin: 0 0 8px; font-size: 1rem; }
.irow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.irow:first-of-type { border-top: 0; }
.irow .tx { flex: 1; display: flex; flex-direction: column; }
.irow .tx b { font-size: 0.95rem; font-weight: 600; }
.card.import .btn { margin-top: 10px; width: 100%; min-height: var(--tap); }

/* Item 2 / DEC-083: a question card's own "Waiting to send" pill, alongside Blocking's. */
.qcard .bpill.wait { background: var(--pill-wait); }

/* BROWSER-QA B1: an answered question's own mark, in place of the Answer button. */
.qcard .bpill.answered { background: var(--pill-ok); }

/* Item 5(b) / MON-6: current, read-only CPU/RAM/disk numbers — the Server screen and app detail. */
.reslines { margin: 4px 0; }
.approw .res { font-size: 0.75rem; color: var(--ink-faint); margin-left: 8px; }

/* Item 11: "Thinking…" while an Ask request is in flight. */
.thinking { opacity: 0.8; }

/* BROWSER-QA S6: a shared, styled in-page back link ("Projects", "Server", "Summary" on the
   Apps tile) — these used to be bare browser-default `<a>` tags, 26px tall. */
.backlink {
  display: inline-flex; align-items: center; align-self: flex-start;
  min-height: var(--tap); padding: 0 4px; margin-left: -4px;
  font-size: 0.85rem; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 8px;
}
.backlink:focus-visible { outline: 3px solid var(--accent); outline-offset: -2px; }

/* BROWSER-QA B3: the project page's progress bar and numbered phase list, built from the two
   numbers `GET /api/projects` names ("X/Y") plus the project's own `current` text — see
   app.js's `buildPhaseSection` for what it deliberately does not invent. */
/* browser-qa-4eadc38, S-new-2: `.phead` (the "Phase X of Y" / current-text line) had no rule of
   its own at all — the `<b>` and `<span>` app.js's `buildPhaseSection` appends sat with no gap,
   reading as one run-together word ("Phase 5 of 8Cutting…"). */
.phead { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
/* browser-qa-4eadc38, S-new-2: the track shared the page's own background (`--paper-sunk`), so it
   measured 1.00:1 against it in both themes — a floating fill line with no visible 100% end. A
   visibly distinct track (`--rule-strong`, already used elsewhere for this exact border/track
   role) is what makes the fill's own progress legible at all. */
.pbar { height: 8px; border-radius: 4px; background: var(--rule-strong); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.plist li {
  display: flex; align-items: center; gap: 10px; min-height: var(--tap);
  padding: 8px 4px; border-top: 1px solid var(--rule); font-size: 0.9rem;
}
.plist li:first-child { border-top: 0; }
.plist .tn { width: 1.5rem; flex: none; text-align: center; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.plist li.done { color: var(--ink-soft); }
.plist li.cur { font-weight: 600; color: var(--ink); }
.plist li.next { color: var(--ink-faint); }

/* BROWSER-QA S10: DEC-102's "Not on server yet" is not a down state — its own history slots now
   read neutral grey, never the same red a real down slot draws. */
.strip i.n { background: var(--ink-faint); opacity: 0.55; }

/* BROWSER-QA S9: the explanation shown when a report never answers the app's own selection
   bridge at all (no Ask helper script — every deck uploaded before phase 02). */
.askhint { position: absolute; right: 1rem; bottom: 4.5rem; max-width: 60%; text-align: right; }

/* ================================================================================================
   PHASE 02 RESKIN — shell and shared controls (DEC-127).
   Every value below is the approved design's own (design/phase02/deckpost-phase02.html, committed
   at bd529e6): the page title, avatar, floating glass tab bar, buttons, cards and the two sliding
   sheets. Per-screen rules live in app/skin/*.css, loaded after this file. Earlier rules above are
   left in place (locked tests read several of them) and are overridden here, not deleted.
   ================================================================================================ */

body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; line-height: 1.3;
}
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-family: var(--round); font-variant-numeric: tabular-nums; }

/* Page title, date and avatar (design "01 Header", `.lt`). */
.tabshell { position: relative; }
.tabshell > .screen, .tabshell > .summary, .tabshell > .folder-screen { padding-bottom: 112px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 16px 4px; }
.topbar.inner { justify-content: flex-end; padding-top: 8px; padding-bottom: 0; }
.lt-title h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--text); }
.lt-title small { display: block; font-size: 15px; color: var(--text-2); margin-top: 2px; }
.topbar .avatar {
  width: var(--tap); height: var(--tap); min-width: var(--tap); min-height: var(--tap); padding: 0;
  border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center;
  color: var(--accent); position: relative;
}
.topbar .avatar i {
  width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid var(--accent);
  display: grid; place-items: center; color: var(--accent); font-size: 22px; font-style: normal;
}

/* Floating glass tab bar (design "02 Tab bar"): a 300x64 capsule over the content, selected tab
   in a lighter pill in brand blue, icon above label. */
.tabbar {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 15; width: 300px; max-width: calc(100% - 32px); height: 64px; margin: 0;
  border-radius: 32px; display: flex; padding: 4px; gap: 2px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 10px 30px rgba(0,0,0,.18);
}
@media (prefers-color-scheme: dark) { .tabbar { box-shadow: inset 0 1px 0 var(--glass-hi), 0 10px 30px rgba(0,0,0,.35); } }
.tabbar .tab {
  flex: 1; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; font-size: 11px; font-weight: 600; color: var(--text-2); min-height: var(--tap); position: relative;
}
.tabbar .tab svg { font-size: 22px; }
.tabbar .tab[aria-selected="true"] { background: var(--glass-hi); color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .tabbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--card); }
}

/* Buttons, fields and messages */
.btn {
  height: 50px; min-height: var(--tap); border-radius: var(--r-ctl); border: 0;
  background: var(--accent-fill); color: var(--accent-ink); font-size: 17px; font-weight: 600;
}
.btn[disabled] { background: var(--accent-fill); color: var(--accent-ink); opacity: .4; cursor: not-allowed; }
.btn.ghost, .btn.gray { background: var(--field); color: var(--text); border: 0; }
.btn.inline { height: var(--tap); padding: 0 24px; font-size: 15px; border-radius: 22px; }
input.txt { background: var(--card); border: 1.5px solid transparent; border-radius: var(--r-ctl); min-height: 52px; padding: 0 16px; font-size: 17px; }
input.txt[aria-invalid="true"] { border-color: var(--bad); }
label.fld { color: var(--text-2); }
.msg { border-left: 0; border-radius: var(--r-ctl); background: var(--card); color: var(--text-2); padding: 12px 16px; font-size: 15px; }
.msg.err { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); font-weight: 600; }
.msg.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.msg.quiet { background: transparent; padding-left: 4px; padding-right: 4px; color: var(--text-2); font-size: 13px; }
.card { background: var(--card); border: 0; border-radius: var(--r-card); padding: 16px; }
.card h4 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.backlink { color: var(--accent); font-size: 17px; font-weight: 400; gap: 2px; }
.backlink::before { content: "\2039"; font-size: 28px; line-height: 1; margin-right: 4px; transform: translateY(-2px); }
.skel { background: var(--card-2); border-radius: 8px; }

/* Offline pill (design "13 Status pills", island style) */
.summary .pill, .screen > .pill {
  align-self: center; display: inline-flex; align-items: center; gap: 12px; min-height: 34px;
  padding: 6px 16px; border-radius: 20px; border: 0; background: #000; color: #fff;
  font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
@media (prefers-color-scheme: dark) { .summary .pill, .screen > .pill { box-shadow: 0 0 0 1px rgba(255,255,255,.12); } }

/* The two sliding sheets (design "10 Sheets"): Answer and Ask share this shell. */
.sheetwrap .dim { background: rgba(0,0,0,.45); animation: dp-fade 240ms ease both; }
.sheet {
  background: var(--sheet); border-radius: 30px 30px 0 0; padding: 8px 16px 20px;
  box-shadow: 0 -10px 40px rgba(0,0,0,.35); gap: 12px;
  animation: dp-sheet-in 340ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes dp-sheet-in { from { transform: translateY(100%); } }
@keyframes dp-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheetwrap .dim { animation: none; } }
.grab { width: 36px; height: 5px; border-radius: 3px; background: var(--text-3); margin: 0 auto 4px; }
.sh-top b { font-size: 17px; }
.sh-top .ey, .sheet .ey { font-size: 13px; color: var(--text-2); }
.xbtn { background: var(--field); color: var(--text-2); font-size: 15px; }
.sheet h6 { font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.sheet .field, .answer-form textarea {
  background: var(--field); border: 0; border-radius: var(--r-ctl); padding: 12px 16px;
  font-size: 17px; min-height: 110px; color: var(--text); line-height: 1.4;
}
.choices .chip { height: var(--tap); border: 0; border-radius: 18px; background: var(--field); color: var(--text); font-size: 15px; }
.choices .chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.hint { font-size: 13px; color: var(--text-2); }
.done-state .ck.big { background: var(--accent-fill); color: #fff; }
.nextq { background: var(--field); border-radius: var(--r-ctl); padding: 12px 16px; text-align: left; }
.nextq b { display: block; font-size: 17px; margin-top: 4px; }
.quote { border-left: 3px solid var(--accent); background: var(--field); color: var(--text-2); border-radius: 6px 12px 12px 6px; padding: 8px 12px; font-size: 15px; }
.ans { font-size: 17px; line-height: 1.45; }
.me { background: var(--accent-fill); color: #fff; border-radius: 18px 18px 4px 18px; padding: 8px 12px; font-size: 15px; }
.askin .f { height: var(--tap); border-radius: 22px; background: var(--field); color: var(--text); font-size: 17px; }
.askin .f[contenteditable="false"] { color: var(--text-3); }
.send { background: var(--accent-fill); color: #fff; font-size: 17px; }
.send[disabled] { background: var(--field); color: var(--text-3); }
.usage { font-size: 13px; color: var(--text-2); }
.usage .ub { background: var(--field); }
.usage .ub i { background: var(--accent); }
.limit { border-radius: var(--r-ctl); padding: 12px 16px; font-size: 15px; }
.limit small { color: var(--text-2); }
.askpill {
  background: var(--accent-fill); color: #fff; border: 0; height: 48px; border-radius: 24px; padding: 0 16px;
  font-size: 17px; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.25);
  display: flex; align-items: center; gap: 8px; animation: dp-pop 260ms cubic-bezier(.3,1.4,.5,1) both;
}
@keyframes dp-pop { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .askpill { animation: none; } }

/* Menus */
[role="menu"] { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
[role="menuitem"] { border-bottom-color: var(--line); color: var(--text); font-size: 17px; }
