  /* Archivo (SIL OFL 1.1, src/static/fonts/OFL.txt), self-hosted: no
     third-party request, and the headline font arrives with the page.
     One variable file per subset covers both weights (800, 900);
     latin-ext carries the Yoruba dotted letters (e.g. U+1EB9, U+1ECD). */
  @font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800 900; font-display: swap; src: url(/static/fonts/archivo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  @font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800 900; font-display: swap; src: url(/static/fonts/archivo-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
  :root { --cream: #FDFBF7; --ink: #141414; --stone: #E7E2D8; --grey: #55524A; --accent: #66202A; --pill-bg: #F2E9EB; --pill-border: #BC929B; --chip-text: #66202A; }
  * { box-sizing: border-box; }
  body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--cream); color: var(--ink); }
  main.phone { max-width: 380px; margin: 0 auto; background: var(--cream); border: 1px solid var(--stone); border-radius: 28px; overflow: hidden; overflow: clip; box-shadow: 0 18px 40px rgba(20,20,20,.14); position: relative; min-height: 600px; display: flex; flex-direction: column; }
  .top { padding: 14px 16px; border-bottom: 1px solid var(--stone); display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
  .word { font-weight: 700; font-size: 13px; color: var(--ink); text-decoration: none; border-radius: 6px; padding: 4px 2px; }
  .word:hover { color: var(--accent); }
  .word:focus-visible, #navBack:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  /* Navigation: the wordmark always goes home; the back arrow
     shows on every screen but home and steps back one screen,
     like the phone's back gesture. */
  .top-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
  #navBack { width: 30px; height: 30px; flex: none; border: 1px solid var(--stone); border-radius: 50%; background: transparent; color: var(--ink); padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  #navBack[hidden] { display: none; }
  #navBack:hover { border-color: var(--accent); color: var(--accent); }
  #navBack svg { display: block; }
  .top-right { display: flex; align-items: center; gap: 10px; }
  /* The header says where you are, nothing else to tap. */
  .where { font-size: 13px; font-weight: 700; color: var(--grey); }
  .pbody { padding: 18px 16px 20px; flex: 1; }
  h1 { font-family: "Archivo", system-ui, "Helvetica Neue", Arial, sans-serif; font-size: 28px; line-height: 1.05; letter-spacing: -0.02em; margin: 2px 0 6px; font-weight: 900; color: var(--ink); }
  .tip-line { font-size: 14px; line-height: 1.55; color: var(--grey); margin: 0 0 14px; }
  .area { font-size: 13.5px; margin: 0 0 14px; color: var(--grey); }
  .area b { color: var(--ink); }
  .area button { background: none; border: 0; color: var(--ink); text-decoration: underline; font-size: 13.5px; cursor: pointer; padding: 0 0 0 6px; }
  .sheet input[type="search"] { width: 100%; padding: 11px; border: 1px solid var(--stone); border-radius: 10px; font-size: 15px; margin: 10px 0 4px; }
  .detect { background: var(--ink); color: #fff; }
  .lga-list { margin-top: 6px; }
  .lga-row { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--stone); border-radius: 0; padding: 11px 2px; font-size: 15px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
  .lga-row .tick { color: var(--accent); font-weight: 800; }
  .sheet-note { font-size: 13px; color: var(--grey); margin: 8px 0 0; line-height: 1.5; }
  .sheet-note.err { color: #8a1f14; }
  .adult-check { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 12px 0 2px; }
  .adult-check input { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
  .cancel { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
  #lang, label[for="lang"] { display: none; }
  .microw { display: flex; flex-direction: column; align-items: center; padding: 0; }
  /* Tap to speak: one big solid burgundy circle. The label
     sits above it as its own line; a language pill sits
     under it. Tapping starts recording; tapping again
     while recording stops it. While recording the label
     reads "Listening…" and the mic glyph shows a stop
     square. No slide: a circle has no track to slide along. */
  #speakLabel { margin-top: 28px; color: var(--accent); font-size: 15px; font-weight: 700; }
  #micBtn { display: flex; align-items: center; justify-content: center; width: 140px; height: 140px; margin: 14px auto 0; padding: 0; background: var(--accent); color: #fff; border: 0; border-radius: 50%; cursor: pointer; user-select: none; -webkit-user-select: none; }
  #micBtn .speak-mic { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 32px; font-weight: 800; }
  /* A still ring marks the circle. It used to pulse forever,
     which pulls the eye away from reading (focus review). */
  #micBtn:not(.recording) { box-shadow: 0 0 0 8px var(--pill-bg); }
  #micBtn.recording { animation: none; box-shadow: none; }
  /* The language switcher lives in the header now: a small
     EN / PCM / YO segmented control (see .lang-seg). */
  /* Dark: the header and the hero go dark. The hero bleeds
     to the card edges (its negative margins match the
     .pbody padding) so the dark region is one block, as in
     the mockup. The header stays dark on the answer screen
     too: the script toggles .theme-dark on .top whenever
     dark is chosen. */
  .top.theme-dark { background: #171215; border-bottom-color: #171215; }
  .top.theme-dark .word { color: #fff; }
  .top.theme-dark .word:hover { color: #E8A7B2; }
  .top.theme-dark #navBack { border-color: #6B6466; color: #EDE8E9; }
  .top.theme-dark #navBack:hover { border-color: #E8A7B2; color: #E8A7B2; }
  .top.theme-dark .where { color: #B9B3B5; }
  /* The header sun/moon: one tap, any screen. Moon in light
     (tap for dark), sun in dark (tap for light). */
  .head-theme { width: 36px; height: 36px; flex: none; border: 1px solid var(--stone); border-radius: 50%; background: transparent; color: var(--ink); padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
  .head-theme:hover { border-color: var(--accent); color: var(--accent); }
  .head-theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .head-theme .ico-sun { display: none; }
  .top.theme-dark .head-theme { border-color: #6B6466; color: #EDE8E9; }
  .top.theme-dark .head-theme:hover { border-color: #E8A7B2; color: #E8A7B2; }
  .top.theme-dark .head-theme .ico-sun { display: block; }
  .top.theme-dark .head-theme .ico-moon { display: none; }
  .more-row .theme-phone, main.phone.theme-dark .more-row .theme-phone { display: block; background: none; box-shadow: none; border: 0; border-radius: 0; padding: 6px 0 0; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
  .more-row .theme-phone[hidden] { display: none; }
  main.phone.theme-dark .more-row .theme-phone { color: #E8A7B2; }
  main.phone.theme-dark .hero { background: #171215; margin: -18px -16px 0; padding: 18px 16px 28px; }
  main.phone.theme-dark .hero h1,
  main.phone.theme-dark .screen h1 { color: #fff; }
  main.phone.theme-dark .plan-list li.done b { color: #A39A9C; }
  main.phone.theme-dark .hero .tip-line { color: #B9B3B5; }
  main.phone.theme-dark .hero #speakLabel { color: #fff; }
  /* Full dark: when dark is chosen the whole page is dark,
     not just the hero. The class sits on body and on
     main.phone; the rules below cover everything the hero
     rules do not. The palette does not change: dark surfaces
     are #171215 (page) and #221C1F (cards, sheets, fields),
     light text is #EDE8E9, muted text #B9B3B5, and the
     burgundy accent stays the border and the left bar of the
     label and source blocks, with a lighter rose for links
     on dark. Light is untouched. */
  body.theme-dark { background: #171215; color: #EDE8E9; }
  main.phone.theme-dark { background: #171215; border-color: #332A2E; }
  main.phone.theme-dark #micBtn:not(.recording) { box-shadow: 0 0 0 8px #3A2126; }
  main.phone.theme-dark .type-instead { background: transparent; border-color: #6B6466; color: #EDE8E9; }
  main.phone.theme-dark .try-btn, main.phone.theme-dark .type-chip { background: #221C1F; border-color: #3A3236; color: #F2C9CF; }
  main.phone.theme-dark .try-btn small, main.phone.theme-dark .type-chip small, main.phone.theme-dark .type-lab, main.phone.theme-dark .type-sub, main.phone.theme-dark .type-note { color: #B9B3B5; }
  main.phone.theme-dark .type-title { color: #fff; }
  main.phone.theme-dark .voice-note summary { color: #EDE8E9; }
  main.phone.theme-dark .check-card { background: #221C1F; border-color: #3A3236; color: #EDE8E9; }
  main.phone.theme-dark .check-time, main.phone.theme-dark .check-list li.later { color: #B9B3B5; }
  main.phone.theme-dark .check-list li i { border-color: #6B6466; }
  main.phone.theme-dark label[for="q"] { color: #EDE8E9; }
  main.phone.theme-dark textarea { background: #221C1F; border-color: #3A3236; color: #EDE8E9; }
  main.phone.theme-dark .chip { background: #221C1F; border-color: #3A3236; color: #E8A7B2; }
  main.phone.theme-dark .chip.on { background: #3A2126; border-color: #66202A; color: #F2C9CF; }
  main.phone.theme-dark .area { color: #B9B3B5; }
  main.phone.theme-dark .area b { color: #fff; }
  main.phone.theme-dark .area button { color: #EDE8E9; }
  main.phone.theme-dark #status, main.phone.theme-dark #answerStatus { color: #B9B3B5; }
  main.phone.theme-dark #status.checking, main.phone.theme-dark #answerStatus.checking { background: #3A2126; border-color: #7A3A44; color: #F2C9CF; }
  main.phone.theme-dark #error, main.phone.theme-dark #answerError { color: #F0A8A0; }
  main.phone.theme-dark #youSaid { color: #B9B3B5; }
  main.phone.theme-dark .card { background: #221C1F; border-color: #332A2E; }
  main.phone.theme-dark #answerText { color: #fff; }
  main.phone.theme-dark .tc-label { background: #3A2126; color: #F2C9CF; box-shadow: 0 0 0 3px rgba(102,32,42,.25); }
  main.phone.theme-dark .tc-label.memory { border-color: #6B6466; background: #221C1F; color: #B9B3B5; box-shadow: 0 0 0 3px rgba(185,179,181,.10); }
  main.phone.theme-dark .tc-label.extrapolation { background: #221C1F; color: #F2C9CF; box-shadow: 0 0 0 3px rgba(102,32,42,.25); }
  main.phone.theme-dark .tc-label small { color: #B9B3B5; }
  main.phone.theme-dark #partialList li, main.phone.theme-dark #articleList li { border-top-color: #3A3236; }
  main.phone.theme-dark #partialList a, main.phone.theme-dark #articleList a { color: #fff; }
  main.phone.theme-dark #partialList .partial-year, main.phone.theme-dark #articleList .article-source, main.phone.theme-dark #articleList .article-snippet { color: #B9B3B5; }
  main.phone.theme-dark .quote-label { color: #B9B3B5; }
  main.phone.theme-dark #quoteBlock blockquote { border-top-color: #3A3236; color: #B9B3B5; }
  main.phone.theme-dark .meta { color: #B9B3B5; }
  main.phone.theme-dark .meta a { color: #fff; }
  main.phone.theme-dark #sourceLine { background: #2E1E23; border: 1px solid #5C323B; border-left: 4px solid var(--accent); }
  main.phone.theme-dark #sourceLine a { color: #E8A7B2; }
  main.phone.theme-dark #didYouMean { color: #B9B3B5; }
  main.phone.theme-dark #didYouMean button { color: #E8A7B2 !important; }
  main.phone.theme-dark .back { color: #EDE8E9; }
  main.phone.theme-dark #speakBtn { background: #EDE8E9; color: #171215; }
  main.phone.theme-dark footer { border-top-color: #332A2E; color: #B9B3B5; }
  main.phone.theme-dark .foot-row button { color: #EDE8E9; }
  body.theme-dark .sheet .box { background: #221C1F; }
  body.theme-dark .sheet h2 { color: #fff; }
  body.theme-dark .sheet p { color: #B9B3B5; }
  body.theme-dark .steps { color: #B9B3B5; }
  body.theme-dark .sheet input[type="search"] { background: #171215; border-color: #3A3236; color: #EDE8E9; }
  body.theme-dark .sheet-note { color: #B9B3B5; }
  body.theme-dark .sheet-note.err { color: #F0A8A0; }
  body.theme-dark .detect { background: #EDE8E9; color: #171215; }
  body.theme-dark .lga-row { color: #EDE8E9; border-bottom-color: #332A2E; }
  body.theme-dark .lga-row .tick { color: #E8A7B2; }
  body.theme-dark .cancel { background: transparent; color: #EDE8E9; border-color: #6B6466; }
  body.theme-dark .adult-check { color: #EDE8E9; }
  body.theme-dark .keep { background: #EDE8E9; color: #171215; }
  body.theme-dark .service { background: transparent; color: #EDE8E9; border-color: #6B6466; }
  body.theme-dark .skip { color: #EDE8E9 !important; }
  body.theme-dark #stepConsent .consent-body { color: #EDE8E9; }
  body.theme-dark #stepConsent .adult-check { background: #3A2126; border-color: #7A3A44; color: #fff; }
  body.theme-dark #stepConsent .choice-dark { background: #EDE8E9; color: #171215; }
  body.theme-dark #stepConsent .choice-light { background: transparent; color: #EDE8E9; border-color: #6B6466; }
  body.theme-dark #stepConsent .choice-light .choice-sub { color: #B9B3B5; }
  body.theme-dark #consentSkip { color: #B9B3B5 !important; }
  /* Speak or type: typing is a full-size second button. */
  .type-instead { display: block; width: 100%; margin-top: 24px; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); font-weight: 800; font-size: 15px; padding: 13px 18px; }
  label[for="q"] { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: var(--ink); }
  textarea { width: 100%; font: inherit; border: 1px solid var(--stone); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink); min-height: 84px; resize: vertical; }
  .row { display: flex; gap: 10px; margin-top: 12px; }
  button { font: inherit; border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer; }
  button:disabled { opacity: .55; cursor: default; }
  #askBtn { background: var(--accent); color: #fff; flex: 1; font-weight: 800; }
  .chips { display: grid; gap: 8px; margin-top: 16px; }
  .chip { width: 100%; text-align: left; background: #fff; border: 1px solid var(--stone); color: var(--chip-text); padding: 11px 12px; font-size: 14px; font-weight: 700; border-radius: 12px; }
  .chip.on { background: var(--pill-bg); border-color: var(--accent); }
  .try-line { margin-top: 12px; }
  #tryText { transition: opacity .25s ease; }
  #tryText.try-out { opacity: 0; }
  body.reading-calm #tryText { transition: none; }
  .try-btn, .type-chip { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--stone); border-radius: 14px; color: var(--chip-text); font-size: 14.5px; font-weight: 700; line-height: 1.35; padding: 12px 14px; cursor: pointer; }
  .try-btn small { display: block; font-size: 12px; font-weight: 600; color: var(--grey); margin-bottom: 2px; }
  .type-chip { margin-top: 8px; }
  .type-chip small { display: block; font-size: 12px; font-weight: 600; color: var(--grey); margin-top: 2px; }
  /* The typing screen. */
  .type-title { font-size: 24px; line-height: 1.15; margin: 4px 0 4px; font-weight: 800; }
  .type-sub { margin: 0 0 4px; color: var(--grey); font-size: 14px; }
  .type-lab { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); margin: 22px 0 0; }
  .type-note { font-size: 12px; color: var(--grey); margin: 6px 0 0; }
  #typeError { color: #8a1f14; font-size: 14px; margin-top: 8px; }
  #typeError:empty { display: none; }
  /* Checking: a still, three-line checklist. */
  #answerStatus.checklist { display: block; }
  #answerScreen.is-checking #card, #answerScreen.is-checking #followUps { display: none; }
  .check-card { background: #fff; border: 1px solid var(--stone); border-radius: 16px; padding: 14px 16px; color: var(--ink); }
  .check-title { display: block; font-size: 16px; }
  .check-time { display: block; font-size: 13px; color: var(--grey); margin-top: 2px; }
  .check-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
  .check-list li { display: flex; align-items: center; gap: 10px; }
  .check-list li i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--stone); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 800; }
  .check-list li.done i { background: var(--accent); border-color: var(--accent); color: #fff; }
  .check-list li.now { font-weight: 800; }
  .check-list li.now i { border-color: var(--accent); }
  .check-list li.later { color: var(--grey); }
  .microw #status { text-align: center; }
  .microw #status:empty { min-height: 0; margin: 0; }
  #status, #answerStatus { min-height: 22px; margin-top: 12px; font-size: 14px; color: var(--grey); }
  /* "Checking sources…" is highlighted: a pale rose pill with
     burgundy text and a gentle pulsing glow (blur-only, like the
     mic glow), so it is obvious the app is actively checking.
     The class is set by passing checking=true to
     setStatus/setAnswerStatus, and removed for anything else
     (Listening…, errors, empty). It is a state flag, not a
     match on the display text, so renaming the words cannot
     silently kill the glow. */
  #status.checking, #answerStatus.checking { display: inline-block; background: var(--pill-bg); border: 1px solid var(--pill-border); color: var(--accent); font-weight: 700; border-radius: 999px; padding: 6px 12px; }
  #error, #answerError { color: #8a1f14; font-size: 14px; margin-top: 10px; line-height: 1.5; }
  #youSaid { font-size: 13px; color: var(--grey); margin: 12px 0 4px; }
  @keyframes screenIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .screen-in { animation: screenIn .22s ease; }
  .screen-hidden { display: none; }
  #card { margin-top: 14px; }
  .onboard-step { display: none; }
  .onboard-step.on { display: block; animation: screenIn .22s ease; }
  .steps { font-size: 11px; font-weight: 700; color: var(--grey); margin: 0 0 8px; letter-spacing: .04em; text-transform: uppercase; }
  .skip { background: none !important; border: 0 !important; color: var(--ink) !important; text-decoration: underline; font-weight: 600 !important; }
  .tc-label { border: 2px solid var(--accent); background: var(--pill-bg); border-radius: 12px; padding: 12px; font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); box-shadow: 0 0 0 3px rgba(102,32,42,.10); }
  .tc-label.memory { border-color: var(--grey); background: #fff; color: var(--grey); box-shadow: 0 0 0 3px rgba(85,82,74,.10); }
  /* An extrapolated answer gets a dashed burgundy label box:
     it comes from the sources below, but no single article
     says it, so it must not read as a direct web check. */
  .tc-label.extrapolation { border: 2px dashed var(--accent); background: #fff; color: var(--accent); box-shadow: 0 0 0 3px rgba(102,32,42,.10); }
  .tc-label small { display: block; font-weight: 500; font-size: 13px; line-height: 1.45; margin-top: 4px; color: var(--grey); text-transform: none; letter-spacing: normal; }
  .card { background: #fff; border: 1px solid var(--stone); border-radius: 16px; padding: 14px; margin-top: 14px; }
  #answerText { margin: 6px 0; font-size: 15px; font-weight: 800; line-height: 1.55; }
  #partialList { margin: 10px 0 0; padding: 0; list-style: none; }
  #partialList li { padding: 6px 0; border-top: 1px solid var(--pill-border); font-size: 14px; line-height: 1.5; }
  #partialList li:first-child { border-top: 0; }
  #partialList a { color: var(--ink); font-weight: 700; }
  #partialList .partial-year { color: var(--grey); font-weight: 500; }
  #articleList { margin: 10px 0 0; padding: 0; list-style: none; }
  #articleList li { padding: 8px 0; border-top: 1px solid var(--pill-border); font-size: 14px; line-height: 1.5; }
  #articleList li:first-child { border-top: 0; }
  #articleList a { color: var(--ink); font-weight: 700; }
  #articleList .article-source { color: var(--grey); font-weight: 500; }
  #articleList .article-snippet { color: var(--grey); font-size: 13px; margin-top: 2px; }
  .quote-label { font-size: 12px; font-weight: 600; color: var(--grey); margin: 14px 0 4px; text-transform: uppercase; letter-spacing: .04em; }
  #quoteBlock blockquote { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--pill-border); border-left: 0; background: none; border-radius: 0; color: var(--grey); font-size: 13px; }
  .meta { font-size: 13px; color: var(--grey); margin-top: 8px; }
  .meta a { color: var(--ink); font-weight: 700; }
  /* The source is highlighted, not a plain grey line: a soft
     tinted block with a burgundy left bar, so where the
     answer came from is obvious at a glance. Hidden when
     there is no source (memory answers). */
  #sourceLine { margin-top: 10px; background: #F2E9EB; border: 1px solid #BC929B; border-left: 4px solid var(--accent); border-radius: 10px; padding: 10px 12px; }
  #sourceLine a { color: var(--accent); }
  #didYouMean { margin-top: 10px; font-size: 13px; color: var(--grey); }
  #didYouMean button { background: none !important; border: 0 !important; padding: 0 !important; color: var(--accent) !important; font-weight: 700 !important; font-size: 13px !important; text-decoration: underline; cursor: pointer; border-radius: 0 !important; }
  #locatorLine { margin-top: 6px; }
  #checkedLine { font-size: 12px; margin-top: 6px; }
  #generalLine { font-size: 12px; margin-top: 6px; }
  .back { background: none; border: 0; border-radius: 0; color: var(--ink); text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; display: block; margin: 12px 0 0; text-align: left; }
  .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
  #speakBtn { background: var(--ink); color: #fff; padding: 10px 14px; font-weight: 750; }
  footer { padding: 14px 16px 18px; border-top: 1px solid var(--stone); font-size: 12px; color: var(--grey); }
  .foot-row { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 0; }
  .voice-note summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 13px; }
  .foot-row button { background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font-size: 12px; padding: 0; }
  .foot-note { margin: 10px 0 0; line-height: 1.5; }
  .sheet { position: fixed; inset: 0; background: rgba(20,20,20,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
  .sheet.hidden { display: none; }
  .sheet .box { background: #fff; width: 100%; max-width: 380px; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 32px rgba(0,0,0,.25); padding: 16px 18px 20px; line-height: 1.55; max-height: 78vh; overflow: auto; }
  .sheet h2 { color: var(--ink); margin: 2px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
  #stepConsent .consent-body { font-size: 13px; color: var(--ink); }
  #stepConsent .choice-dark, #stepConsent .choice-light { display: block; width: 100%; text-align: left; border-radius: 12px; padding: 10px 14px; margin-top: 8px; }
  #stepConsent .choice-dark { background: var(--ink); color: #fff; }
  #stepConsent .choice-light { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
  #stepConsent .choice-title { display: block; font-size: 13.5px; font-weight: 700; }
  #stepConsent .choice-sub { display: block; font-size: 12px; font-weight: 400; margin-top: 2px; }
  #stepConsent .choice-dark .choice-sub { opacity: .85; }
  #stepConsent .choice-light .choice-sub { color: var(--grey); }
  /* The 18+ check is the main thing on the voice step: it
     leads, before the consent choices, as a large bold
     tinted block. Both consent buttons still need it ticked. */
  #stepConsent .adult-check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin: 12px 0 4px; background: var(--pill-bg); border: 1px solid var(--pill-border); border-radius: 12px; padding: 10px 12px; }
  #stepConsent .adult-check input { width: 20px; height: 20px; flex: none; }
  #stepConsent .sheet-note { font-size: 12px; }
  #consentSkip { font-size: 11px !important; color: var(--grey) !important; font-weight: 500 !important; display: block; width: auto; margin: 14px auto 0; padding: 4px 8px; text-align: center; }
  .sheet p { font-size: 13px; color: var(--grey); }
  /* The area picker and the language step use the same small,
     crisp type as step 1 (step label 11px, heading 20px, body
     13px): the picker's rows and buttons were 15–16px. */
  #areaSheet .lga-row { font-size: 13.5px; padding: 10px 2px; }
  #areaSheet input[type="search"] { font-size: 13px; }
  #areaSheet .detect, #areaSheet .cancel { font-size: 13.5px; }
  .sheet button { width: 100%; margin-top: 10px; }
  .keep { background: var(--ink); color: #fff; }
  .service { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
  /* Desktop (min-width 768px): a centred page column, not a
     phone frame. The 380px card with its radius and shadow
     floated in a wide empty viewport and read as a mockup;
     on desktop the page is a 640px column with no border,
     radius or shadow, and the headline is larger and a touch
     lighter (Archivo 800, not 900) so the heavy weight does
     not read as a black slab. Sheets become centred dialogs
     instead of bottom sheets. Mobile is untouched. */
  @media (min-width: 768px) {
    main.phone { max-width: 640px; border: 0; border-radius: 0; box-shadow: none; min-height: 100vh; }
    .top { padding: 18px 40px; }
    .pbody { padding: 32px 40px 40px; }
    h1 { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; }
    footer { padding: 18px 40px 24px; }
    .sheet { align-items: center; }
    .sheet .box { max-width: 420px; border-radius: 20px; }
    main.phone.theme-dark .hero { margin: -32px -40px 0; padding: 32px 40px 40px; }
  }
  /* Founder redesign: bottom tab bar, Ask home, Elections,
     Candidates, Report, More, and the new answer screen.
     The palette does not change: burgundy #66202A primary,
     burnt orange #D6541E for mic and voice moments only,
     dark surfaces #171215 and #221C1F, pale rose #F2E9EB.
     No green and no yellow anywhere. */
  .top .lang-seg { display: flex; border: 1px solid var(--stone); border-radius: 999px; overflow: hidden; flex: none; }
  .top .lang-seg button { border: 0; background: transparent; color: var(--grey); font-size: 11px; font-weight: 800; padding: 5px 8px; border-radius: 0; cursor: pointer; }
  .top .lang-seg button.on { background: var(--accent); color: #fff; }
  .tabbar { margin-top: auto; position: sticky; bottom: 0; z-index: 5; display: flex; background: #fff; border-top: 1px solid var(--stone); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar button { flex: 1; background: none; border: 0; border-radius: 10px; padding: 6px 2px 4px; color: var(--grey); font-size: 11px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .tabbar button .tab-ico { font-size: 17px; line-height: 1; }
  .tabbar button.active { color: var(--accent); }
  main.phone.answer-showing .tabbar { display: none; }
  .election-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; margin: 0 0 16px; }
  .election-pill .pill-num { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 0 4px; }
  .home-sub { font-size: 15px; line-height: 1.55; color: var(--grey); margin: 0 0 18px; }
  .free-line { font-size: 13px; color: var(--grey); text-align: center; margin: 20px 0 0; }
  /* The area line: one centred pill, "Answers for Alimosho,
     Lagos", that opens the picker. Same stone border and
     white fill as the other pills; the chevron is drawn, not
     a text glyph, so it sits on the baseline everywhere. */
  .area { text-align: center; }
  .area .area-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--stone); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 500; padding: 8px 14px; min-height: 36px; cursor: pointer; }
  .area .area-pill .area-k { color: var(--grey); white-space: nowrap; }
  .area .area-pill b { color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .area .area-pill .area-chev { flex: none; color: var(--grey); }
  .area .area-pill:hover { border-color: var(--pill-border); }
  .area .area-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .lga-group { font-size: 11px !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent) !important; margin: 16px 0 2px !important; }
  .lga-row small { display: block; font-weight: 500; color: var(--grey); font-size: 12px; }
  .lga-row[aria-current="true"] { color: var(--accent); }
  #areaNote:empty { display: none; }
  #areaNote.busy { color: var(--grey); }
  .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 4px 0 8px; }
  .tab-sub { font-size: 14px; line-height: 1.55; color: var(--grey); margin: 0 0 16px; }
  .askbar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--stone); border-radius: 999px; padding: 6px 6px 6px 12px; margin: 0 0 14px; }
  .askbar input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 14px; background: transparent; color: var(--ink); padding: 6px 0; }
  .askbar .askbar-mic { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
  .askbar .askbar-go { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; font-size: 15px; }
  .elex-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
  .elex-chips button { background: #fff; border: 1px solid var(--stone); color: var(--ink); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
  .countdown-card { background: #171215; color: #fff; border-radius: 16px; padding: 18px 16px; margin: 0 0 20px; }
  .countdown-card .cd-num { font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
  .countdown-card .cd-label { font-size: 13px; color: #B9B3B5; margin: 6px 0 12px; }
  .countdown-card .cd-date { font-size: 13.5px; line-height: 1.6; }
  .countdown-card a { color: #fff; font-weight: 700; }
  .steps-head { font-size: 15px; font-weight: 800; margin: 0 0 4px; }
  .steps-sub { font-size: 12.5px; color: var(--grey); margin: 0 0 12px; }
  .step { border-top: 1px solid var(--stone); padding: 14px 0; }
  .step .step-num { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: .05em; }
  .step h3 { font-size: 16px; margin: 4px 0 2px; }
  .step .step-when { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--grey); }
  .step p { font-size: 13.5px; color: var(--grey); line-height: 1.5; margin: 6px 0 10px; }
  .step .step-link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: underline; display: block; margin-top: 6px; text-align: left; }
  .step select { border: 1px solid var(--stone); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; padding: 9px 10px; width: 100%; margin-top: 8px; }
  /* Folded stages: one row each, the current one open. */
  details.step > summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer; }
  details.step > summary::-webkit-details-marker { display: none; }
  details.step > summary::after { content: "+"; margin-left: auto; font-size: 18px; font-weight: 700; color: var(--grey); }
  details.step[open] > summary::after { content: "\2212"; }
  details.step .step-sum { display: flex; flex-direction: column; }
  details.step .step-sum h3 { margin: 0; }
  details.step.current > summary .step-num { background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 7px; }
  .elex-ask-head { margin-top: 22px; }
  /* Your next step: the first thing on Elections. */
  .next-card { background: #fff; border: 1.5px solid var(--accent); border-radius: 18px; padding: 16px; margin: 0 0 16px; }
  .next-kick { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0; }
  .next-card h3 { font-size: 19px; margin: 4px 0 4px; }
  .next-desc { font-size: 14px; line-height: 1.5; color: var(--ink); margin: 0 0 12px; }
  .next-bar { height: 8px; border-radius: 999px; background: var(--stone); overflow: hidden; }
  .next-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
  .next-count { font-size: 12.5px; color: var(--grey); margin: 6px 0 12px; }
  .next-go { display: block; width: 100%; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; }
  .next-card .plan-btn { display: block; width: 100%; margin-top: 8px; background: transparent; color: var(--ink); border: 1px solid var(--stone); font-weight: 700; }
  .useful-head { font-size: 15px; font-weight: 800; margin: 20px 0 4px; }
  .useful-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-top: 1px solid var(--stone); border-radius: 0; padding: 13px 0; text-align: left; cursor: pointer; }
  .useful-row .useful-title { font-size: 14.5px; font-weight: 700; color: var(--ink); display: block; }
  .useful-row .useful-sub { font-size: 12.5px; color: var(--grey); display: block; margin-top: 2px; }
  .useful-row .useful-arrow { color: var(--grey); font-size: 15px; flex: none; }
  .nonpartisan { background: var(--pill-bg); border-radius: 16px; padding: 16px; margin: 20px 0 0; }
  .nonpartisan h3 { font-size: 16px; margin: 0 0 6px; }
  .nonpartisan p { font-size: 13.5px; line-height: 1.55; color: var(--ink); margin: 0 0 12px; }
  .nonpartisan a { display: inline-block; background: #fff; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 10px 16px; font-weight: 800; font-size: 13.5px; text-decoration: none; }
  .plan-view, .rumour-view { border-top: 1px solid var(--stone); padding-top: 14px; margin-top: 14px; }
  .plan-view h3, .rumour-view h3 { font-size: 16px; margin: 0 0 8px; }
  .plan-view ol { margin: 0 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.6; }
  .plan-view ol a, .rumour-view a { color: var(--accent); font-weight: 700; }
  .plan-view .plan-note, .rumour-view .rumour-note { font-size: 13px; color: var(--grey); line-height: 1.5; }
  .rumour-view textarea { min-height: 64px; }
  .rumour-view .rumour-verdict { font-size: 15px; font-weight: 800; margin: 12px 0 4px; }
  .rumour-view .rumour-answer { font-size: 14px; line-height: 1.55; margin: 6px 0; }
  .back-link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: underline; margin-bottom: 10px; }
  .ballot-card { background: #fff; border: 1px solid var(--stone); border-radius: 16px; padding: 16px; margin: 0 0 16px; }
  .ballot-card h3 { font-size: 16px; margin: 0 0 6px; }
  .ballot-card p { font-size: 13.5px; line-height: 1.55; color: var(--grey); margin: 0 0 10px; }
  .ballot-card a { color: var(--accent); font-weight: 700; }
  .tab-note { font-size: 13px; color: var(--grey); line-height: 1.55; }
  .report-promise { font-size: 13.5px; line-height: 1.55; background: var(--pill-bg); border-radius: 12px; padding: 12px; margin: 0 0 14px; }
  .report-field { font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
  .report-area-line { font-size: 13.5px; color: var(--grey); margin: 0 0 4px; }
  .report-area-line button { background: none; border: 0; padding: 0 0 0 6px; color: var(--ink); text-decoration: underline; font-size: 13.5px; cursor: pointer; }
  #reportStatus { font-size: 13.5px; margin-top: 10px; line-height: 1.5; }
  #reportDone p { font-size: 13.5px; line-height: 1.55; color: var(--grey); margin: 0; }
  .more-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--stone); padding: 14px 0; }
  .more-row:first-of-type { border-top: 0; }
  .more-row .more-title { display: block; font-size: 14.5px; font-weight: 700; }
  .more-row .more-sub { display: block; font-size: 12.5px; color: var(--grey); margin-top: 2px; }
  .more-row button { background: var(--ink); color: #fff; font-weight: 700; padding: 9px 14px; flex: none; }
  .more-row button.ghost { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
  .more-lang { display: flex; gap: 8px; }
  .more-lang button { background: #fff; color: var(--ink); border: 1px solid var(--stone); padding: 8px 12px; font-size: 13px; }
  .more-lang button.on { background: var(--pill-bg); border-color: var(--accent); color: var(--accent); }
  .charter-text { font-size: 13.5px; line-height: 1.6; color: var(--grey); margin: 0; }
  .answer-top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 4px; }
  .answer-top .close-btn { background: none; border: 0; color: var(--ink); font-size: 20px; font-weight: 700; cursor: pointer; padding: 4px 8px 4px 0; border-radius: 0; }
  #shareBtn { background: none; border: 1px solid var(--stone); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 7px 12px; cursor: pointer; }
  .you-asked { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); margin: 10px 0 4px; }
  #youSaid { font-size: 17px; font-weight: 800; line-height: 1.4; color: var(--ink); margin: 0 0 4px; }
  #answerText { font-size: 19px; }
  .voice-pill { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
  #speakBtn { background: var(--ink); color: #fff; padding: 11px 16px; font-weight: 750; display: inline-flex; align-items: center; gap: 8px; }
  #speakBtn .voice-dots { display: inline-flex; gap: 3px; }
  #speakBtn .voice-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; display: inline-block; animation: voiceDots 1s ease-in-out infinite; }
  #speakBtn .voice-dots i:nth-child(2) { animation-delay: .2s; }
  #speakBtn .voice-dots i:nth-child(3) { animation-delay: .4s; }
  @keyframes voiceDots { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
  .answer-pills { display: flex; gap: 8px; margin-top: 10px; }
  .answer-pills button { background: #fff; border: 1px solid var(--stone); color: var(--ink); padding: 9px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
  .answer-pills button.on { background: var(--pill-bg); border-color: var(--accent); color: var(--accent); }
  #sourceLine.sources { background: transparent; border: 0; border-left: 0; border-radius: 0; padding: 0; margin-top: 16px; }
  .sources-head { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); margin: 0 0 4px; }
  .source-row { display: block; width: 100%; background: none; border: 0; border-top: 1px solid var(--stone); border-radius: 0; padding: 11px 0; text-align: left; cursor: pointer; text-decoration: none; }
  .source-row .source-title { font-size: 14.5px; font-weight: 700; color: var(--ink); display: block; line-height: 1.4; }
  .source-row .source-meta { font-size: 12.5px; color: var(--grey); display: block; margin-top: 2px; }
  .follow-head { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); margin: 16px 0 4px; }
  .follow-up { display: block; width: 100%; background: none; border: 0; border-radius: 0; padding: 10px 0; border-top: 1px solid var(--stone); text-align: left; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
  .wrong-nudge { margin-top: 16px; padding: 12px 14px; background: var(--pill-bg); border-left: 3px solid var(--accent); border-radius: 10px; }
  .wrong-nudge p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
  #wrongAnswerBtn { background: none; border: 0; padding: 0; color: var(--accent); font-size: 14px; font-weight: 750; text-decoration: underline; cursor: pointer; margin-top: 8px; border-radius: 0; }
  #wrongAnswerNote:empty { display: none; }
  .wrong-nudge #wrongAnswerNote { margin-top: 6px; font-size: 13px; color: var(--grey); }
  #wrongAnswerNote { font-size: 13px; color: var(--grey); margin-top: 8px; line-height: 1.5; }
  #simplerNote, #detailNote { font-size: 13px; color: var(--grey); margin-top: 8px; line-height: 1.5; }
  .answer-askbar { display: flex; align-items: center; gap: 8px; background: var(--cream); border-top: 1px solid var(--stone); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); margin-top: 18px; }
  .answer-askbar input { flex: 1; min-width: 0; border: 1px solid var(--stone); border-radius: 999px; outline: none; font: inherit; font-size: 14px; background: #fff; color: var(--ink); padding: 10px 14px; }
  .answer-askbar .askbar-mic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
  .answer-askbar .askbar-go { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; font-size: 15px; }
  main.phone.theme-dark .top .lang-seg { border-color: #6B6466; }
  main.phone.theme-dark .top .lang-seg button { color: #B9B3B5; }
  main.phone.theme-dark .top .lang-seg button.on { background: var(--accent); color: #fff; }
  main.phone.theme-dark .tabbar { background: #171215; border-top-color: #332A2E; }
  main.phone.theme-dark .tabbar button { color: #B9B3B5; }
  main.phone.theme-dark .tabbar button.active { color: #E8A7B2; }
  main.phone.theme-dark .election-pill { background: #EDE8E9; color: #171215; }
  main.phone.theme-dark .election-pill .pill-num { background: var(--accent); color: #fff; }
  main.phone.theme-dark .home-sub { color: #B9B3B5; }
  main.phone.theme-dark .free-line { color: #B9B3B5; }
  main.phone.theme-dark .area .area-pill { background: #221C1F; border-color: #3A3236; color: #EDE8E9; }
  main.phone.theme-dark .area .area-pill .area-k, main.phone.theme-dark .area .area-pill .area-chev { color: #B9B3B5; }
  main.phone.theme-dark .area .area-pill b { color: #fff; }
  body.theme-dark .lga-group { color: #E8A7B2 !important; }
  body.theme-dark .lga-row small { color: #B9B3B5; }
  body.theme-dark .lga-row[aria-current="true"] { color: #E8A7B2; }
  body.theme-dark #areaNote.busy { color: #B9B3B5; }
  main.phone.theme-dark .eyebrow { color: #E8A7B2; }
  main.phone.theme-dark .tab-sub { color: #B9B3B5; }
  main.phone.theme-dark .askbar { background: #221C1F; border-color: #3A3236; }
  main.phone.theme-dark .askbar input { color: #EDE8E9; }
  main.phone.theme-dark .askbar input::placeholder { color: #B9B3B5; }
  main.phone.theme-dark .elex-chips button { background: #221C1F; border-color: #3A3236; color: #EDE8E9; }
  main.phone.theme-dark .countdown-card { background: #221C1F; border: 1px solid #332A2E; }
  main.phone.theme-dark .countdown-card .cd-label { color: #B9B3B5; }
  main.phone.theme-dark .step { border-top-color: #332A2E; }
  main.phone.theme-dark .next-card, main.phone.theme-dark .guide-card { background: #221C1F; border-color: #7A3A44; color: #EDE8E9; }
  main.phone.theme-dark .next-desc, main.phone.theme-dark .plan-b p, main.phone.theme-dark .plan-open { color: #EDE8E9; }
  main.phone.theme-dark .next-kick, main.phone.theme-dark .guide-pos { color: #E8A7B2; }
  main.phone.theme-dark .next-bar, main.phone.theme-dark .guide-dots i { background: #3A3236; }
  main.phone.theme-dark .guide-dots i.on { background: #E8A7B2; }
  main.phone.theme-dark .next-count, main.phone.theme-dark .guide-read, main.phone.theme-dark .plan-state-wrap summary, main.phone.theme-dark details.step > summary::after { color: #B9B3B5; }
  main.phone.theme-dark .next-card .plan-btn, main.phone.theme-dark .guide-back, main.phone.theme-dark .guide-mode { border-color: #6B6466; color: #EDE8E9; }
  main.phone.theme-dark .plan-list .plan-go { border-color: #E8A7B2; }
  main.phone.theme-dark .step .step-num { color: #E8A7B2; }
  main.phone.theme-dark .step p { color: #B9B3B5; }
  main.phone.theme-dark .step .step-when { color: #B9B3B5; }
  main.phone.theme-dark .step .step-link { color: #E8A7B2; }
  main.phone.theme-dark .step select { background: #221C1F; border-color: #3A3236; color: #EDE8E9; }
  main.phone.theme-dark .useful-row { border-top-color: #332A2E; }
  main.phone.theme-dark .useful-row .useful-title { color: #EDE8E9; }
  main.phone.theme-dark .useful-row .useful-sub { color: #B9B3B5; }
  main.phone.theme-dark .useful-row .useful-arrow { color: #B9B3B5; }
  main.phone.theme-dark .nonpartisan { background: #3A2126; }
  main.phone.theme-dark .nonpartisan p { color: #EDE8E9; }
  main.phone.theme-dark .nonpartisan a { background: transparent; color: #EDE8E9; border-color: #6B6466; }
  main.phone.theme-dark .plan-view, main.phone.theme-dark .rumour-view { border-top-color: #332A2E; }
  main.phone.theme-dark .plan-view .plan-note, main.phone.theme-dark .rumour-view .rumour-note { color: #B9B3B5; }
  main.phone.theme-dark .plan-view ol a, main.phone.theme-dark .rumour-view a { color: #E8A7B2; }
  main.phone.theme-dark .rumour-view textarea { background: #221C1F; border-color: #3A3236; color: #EDE8E9; }
  main.phone.theme-dark .back-link { color: #E8A7B2; }
  main.phone.theme-dark .ballot-card { background: #221C1F; border-color: #332A2E; }
  main.phone.theme-dark .ballot-card p { color: #B9B3B5; }
  main.phone.theme-dark .ballot-card a { color: #E8A7B2; }
  main.phone.theme-dark .tab-note { color: #B9B3B5; }
  main.phone.theme-dark .report-promise { background: #3A2126; color: #EDE8E9; }
  main.phone.theme-dark .report-area-line { color: #B9B3B5; }
  main.phone.theme-dark .report-area-line button { color: #EDE8E9; }
  main.phone.theme-dark #reportStatus { color: #B9B3B5; }
  main.phone.theme-dark #reportDone { border-color: #332A2E; }
  main.phone.theme-dark #reportDone p { color: #B9B3B5; }
  main.phone.theme-dark .more-row { border-top-color: #332A2E; }
  main.phone.theme-dark .more-row .more-sub { color: #B9B3B5; }
  main.phone.theme-dark .more-row button.ghost { background: transparent; color: #EDE8E9; border-color: #6B6466; }
  main.phone.theme-dark .more-lang button { background: #221C1F; color: #EDE8E9; border-color: #3A3236; }
  main.phone.theme-dark .more-lang button.on { background: #3A2126; border-color: #7A3A44; color: #F2C9CF; }
  main.phone.theme-dark .charter-text { color: #B9B3B5; }
  main.phone.theme-dark .answer-top .close-btn { color: #EDE8E9; }
  main.phone.theme-dark #shareBtn { border-color: #6B6466; color: #EDE8E9; }
  main.phone.theme-dark .you-asked { color: #B9B3B5; }
  main.phone.theme-dark #youSaid { color: #fff; }
  main.phone.theme-dark .answer-pills button { background: #221C1F; border-color: #3A3236; color: #EDE8E9; }
  main.phone.theme-dark .answer-pills button.on { background: #3A2126; border-color: #7A3A44; color: #F2C9CF; }
  main.phone.theme-dark #sourceLine.sources { background: transparent; border: 0; }
  main.phone.theme-dark .sources-head { color: #B9B3B5; }
  main.phone.theme-dark .source-row { border-top-color: #332A2E; }
  main.phone.theme-dark .source-row .source-title { color: #fff; }
  main.phone.theme-dark .source-row .source-meta { color: #B9B3B5; }
  main.phone.theme-dark .follow-head { color: #B9B3B5; }
  main.phone.theme-dark .follow-up { border-top-color: #332A2E; color: #E8A7B2; }
  main.phone.theme-dark #wrongAnswerBtn { color: #F2C9CF; }
  main.phone.theme-dark .wrong-nudge { background: #3A2126; border-left-color: #D6541E; }
  main.phone.theme-dark .wrong-nudge p { color: #EDE8E9; }
  main.phone.theme-dark .wrong-nudge #wrongAnswerNote { color: #B9B3B5; }
  main.phone.theme-dark #wrongAnswerNote { color: #B9B3B5; }
  main.phone.theme-dark #simplerNote, main.phone.theme-dark #detailNote { color: #B9B3B5; }
  main.phone.theme-dark .answer-askbar { background: #171215; border-top-color: #332A2E; }
  main.phone.theme-dark .answer-askbar input { background: #221C1F; border-color: #3A3236; color: #EDE8E9; }
  main.phone.theme-dark .answer-askbar input::placeholder { color: #B9B3B5; }
  @media (min-width: 768px) {
    .tabbar { max-width: 640px; margin-left: auto; margin-right: auto; left: 0; right: 0; }
  }
  /* Interactive voting plan and election-day guide. Same
     palette: burgundy accent, stone rules, pale rose fills. */
  .plan-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; }
  .plan-ring { flex: none; }
  .plan-ring circle { transition: stroke-dashoffset .35s ease; }
  .plan-head h3 { margin: 0; }
  .plan-progress { font-size: 13px; color: var(--grey); margin: 4px 0 0; font-weight: 700; }
  .plan-state-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--grey); margin: 6px 0 4px; }
  .plan-state { border: 1px solid var(--stone); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; padding: 9px 10px; width: 100%; margin: 0 0 10px; }
  main.phone.theme-dark .plan-state { background: #221C1F; border-color: #3A3236; color: #EDE8E9; }
  main.phone.theme-dark .plan-state-label { color: #B9B3B5; }
  .plan-list { list-style: none; margin: 0; padding: 0; }
  .plan-list li { border-top: 1px solid var(--stone); }
  .plan-h { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
  .plan-open { flex: 1; text-align: left; background: none; border: 0; border-radius: 0; padding: 0; color: var(--ink); cursor: pointer; }
  /* One item open at a time; done items fold. */
  .plan-b { display: none; padding: 0 0 14px 32px; }
  .plan-list li.open .plan-b { display: block; }
  .plan-b p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--ink); }
  .plan-list .plan-go { display: block; margin: 0 0 8px; text-align: center; border: 1px solid var(--accent); border-radius: 999px; padding: 11px 14px; text-decoration: none; font-size: 14px; }
  .plan-list .plan-go.plan-inline { width: 100%; text-decoration: none; border: 1px solid var(--accent); border-radius: 999px; padding: 11px 14px; }
  .plan-mark { display: block; width: 100%; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; }
  .plan-state-wrap { margin: 14px 0 6px; font-size: 13.5px; }
  .plan-state-wrap summary { cursor: pointer; color: var(--grey); }
  .plan-state-wrap[open] summary { margin-bottom: 8px; }
  .plan-list input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
  .plan-list b { display: block; font-size: 14.5px; }
  .plan-list a, .plan-list .plan-inline { display: inline-block; margin-top: 3px; font-size: 13px; color: var(--accent); font-weight: 700; }
  .plan-list .plan-inline { background: none; border: 0; padding: 0; border-radius: 0; text-decoration: underline; cursor: pointer; }
  .plan-list li.done b { color: var(--grey); text-decoration: line-through; text-decoration-color: var(--pill-border); }
  .plan-dates { background: var(--pill-bg); border-radius: 12px; padding: 12px; margin: 12px 0; font-size: 13.5px; line-height: 1.6; }
  .plan-dates .plan-offcycle { display: block; margin-top: 6px; color: var(--accent); font-weight: 700; }
  /* Election day, one step per card. */
  .guide-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0; }
  .guide-pos { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
  .guide-mode { background: none; border: 1px solid var(--stone); color: var(--ink); font-size: 13px; font-weight: 700; padding: 7px 12px; }
  #guideAll .guide-mode { margin: 6px 0 4px; }
  .guide-card { background: #fff; border: 1px solid var(--stone); border-radius: 18px; padding: 18px 16px; min-height: 210px; }
  .guide-read { font-size: 12.5px; color: var(--grey); margin: 0 0 6px; min-height: 1em; }
  .guide-card h4 { font-size: 24px; line-height: 1.15; margin: 0 0 8px; font-weight: 800; }
  .guide-card > p:not(.guide-read) { font-size: 17px; line-height: 1.55; margin: 0; }
  .guide-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0; }
  .guide-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--stone); }
  .guide-dots i.on { background: var(--accent); }
  .guide-pair { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
  .guide-back { background: transparent; border: 1px solid var(--stone); color: var(--ink); font-weight: 700; }
  .guide-next { background: var(--accent); color: #fff; font-weight: 800; }
  .guide-list { margin: 10px 0; padding-left: 22px; font-size: 14px; line-height: 1.6; }
  .guide-list li { padding: 4px 0; }
  .guide-callout { border-left: 4px solid var(--accent); background: var(--pill-bg); border-radius: 10px; padding: 10px 12px; margin: 12px 0; font-size: 13.5px; }
  .guide-callout p { margin: 4px 0 0; color: var(--ink); line-height: 1.55; }
  .plan-note a { color: var(--accent); font-weight: 700; }
  .plan-view .step-link { background: none; border: 0; border-radius: 0; padding: 0; color: var(--accent); font-weight: 700; font-size: 13.5px; text-decoration: underline; cursor: pointer; margin-top: 8px; }
  main.phone.theme-dark .plan-view .step-link { color: #E8A7B2; }
  main.phone.theme-dark .plan-list li { border-top-color: #332A2E; }
  main.phone.theme-dark .plan-list a, main.phone.theme-dark .plan-list .plan-inline { color: #E8A7B2; }
  main.phone.theme-dark .plan-progress { color: #B9B3B5; }
  main.phone.theme-dark .plan-dates, main.phone.theme-dark .guide-callout { background: #3A2126; color: #EDE8E9; }
  main.phone.theme-dark .guide-callout p { color: #EDE8E9; }
  main.phone.theme-dark .plan-dates .plan-offcycle { color: #F2C9CF; }
  main.phone.theme-dark .plan-note a { color: #E8A7B2; }
  /* Wide desktop (min-width 1024px): a real two-column page,
     not a phone column. The section nav moves to the top
     under the header; the Ask home puts the hero on the left
     and the type box, Try line and area on the right; the
     Elections tab keeps the steps on the left and the Also
     useful panel sticky on the right. The answer screen stays
     a readable 760px column. Colours are unchanged. */
  @media (min-width: 1024px) {
    main.phone { max-width: 1160px; }
    .top { padding: 18px 48px; }
    .pbody { padding: 40px 48px 56px; }
    .tabbar { order: -1; position: sticky; top: 0; bottom: auto; max-width: none; margin: 0; justify-content: flex-start; gap: 4px; padding: 8px 40px; border-top: 0; border-bottom: 1px solid var(--stone); }
    main.phone.theme-dark .tabbar { border-bottom-color: #332A2E; }
    /* Light: the nav strip is the page colour, not a white box
       between two lines, so the header reads as one band. */
    .top { border-bottom: 0; }
    .tabbar { background: var(--cream); }
    main.phone.theme-dark .tabbar { background: #171215; }
    .tabbar button { flex: none; flex-direction: row; gap: 8px; font-size: 13.5px; padding: 8px 14px; }
    .tabbar button.active { background: var(--pill-bg); }
    main.phone.theme-dark .tabbar button.active { background: #3A2126; }
    .top { order: -2; }
    #homeScreen:not(.screen-hidden) { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }
    #homeScreen > * { grid-column: 1 / -1; }
    #homeScreen > #electionPill { grid-column: 1; grid-row: 1; justify-self: start; }
    #homeScreen > .hero { grid-column: 1; grid-row: 2; margin-top: 0; padding-top: 0; }
    /* The dark hero bleeds up 32px (see the 768px rule), but in this
       grid the election pill sits in the row above the hero, so the
       bleed covers the pill's bottom half. The page behind is the
       same dark colour, so the bleed is invisible here: cancel the
       top bleed only. The headline does not move, the 32px of
       padding goes with the 32px of margin. Light is untouched,
       its hero has no margin or padding to cancel. */
    #homeScreen > .home-side { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: #fff; border: 1px solid var(--stone); border-radius: 20px; padding: 24px; }
    main.phone.theme-dark #homeScreen > .home-side { background: #221C1F; border-color: #332A2E; }
    #homeScreen .home-side .type-instead { margin-top: 0; }
    #homeScreen .home-side .free-line { text-align: left; }
    #homeScreen > footer { margin-top: 48px; }
    #homeScreen .hero h1 { font-size: 60px; line-height: 1.02; }
    #homeScreen .microw { align-items: flex-start; }
    #homeScreen #micBtn { margin-left: 0; }
    #electionsScreen:not(.screen-hidden) { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
    #electionsScreen > * { grid-column: 1; }
    #electionsScreen > .eyebrow, #electionsScreen > h1, #electionsScreen > .tab-sub { grid-column: 1 / -1; }
    #electionsScreen > h1 { font-size: 48px; }
    #electionsScreen > .tab-sub { max-width: 720px; }
    #electionsScreen > #electionAlso { grid-column: 2; grid-row: 4 / span 6; position: sticky; top: 72px; }
    #electionsScreen #electionAlso .useful-head { margin-top: 0; }
    #answerScreen, #candidatesScreen, #reportScreen, #moreScreen { max-width: 760px; margin: 0 auto; }
  }
  /* Respect the phone's "reduce motion" setting: no pulsing mic,
     no sliding screens, for people who find motion uncomfortable. */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  }

  /* Ask dock: one status strip for voice and checking on the
     tab screens (Elections, Candidates, More). Home and the
     answer screen keep their own status lines; Report uses
     its own note. Palette colours only: ink, burgundy, and
     burnt orange for the live-mic moment. */
  .ask-dock { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 9; width: calc(100% - 56px); max-width: 380px; min-height: 48px; box-sizing: border-box; display: flex; align-items: center; gap: 10px; background: var(--pill-bg); color: var(--accent); border: 1px solid var(--pill-border); border-radius: 999px; padding: 6px 6px 6px 16px; box-shadow: 0 10px 28px rgba(20,20,20,.22); font-size: 14px; font-weight: 700; }
  .ask-dock[hidden] { display: none; }
  .ask-dock-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
  .ask-dock.listening .ask-dock-dot { background: #D6541E; animation: dockPulse 1.1s ease-in-out infinite; }
  .ask-dock.checking .ask-dock-dot { animation: voiceDots 1.2s ease-in-out infinite; }
  .ask-dock.error { background: #fff; border-color: var(--accent); }
  .ask-dock-text { flex: 1; min-width: 0; }
  .ask-dock-btn { flex: none; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
  .ask-dock.checking .ask-dock-btn { display: none; }
  @keyframes dockPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(214,84,30,.6); } 50% { box-shadow: 0 0 0 7px rgba(214,84,30,0); } }
  main.phone.theme-dark .ask-dock { background: #3A2126; border-color: #7A3A44; color: #F2C9CF; }
  main.phone.theme-dark .ask-dock-dot { background: #F2C9CF; }
  main.phone.theme-dark .ask-dock.listening .ask-dock-dot { background: #D6541E; }
  main.phone.theme-dark .ask-dock-btn { background: #fff; color: #141414; }
  main.phone.theme-dark .ask-dock.error { background: #221C1F; border-color: #E8A7B2; }
  /* The small mics show they are live: burnt orange with the
     same glow as the big home mic, a square to stop. */
  /* Recording is a live state, so it may move; it stops when
     recording stops and honours reduced motion. */
  @keyframes micGlow { 0%, 100% { box-shadow: 0 0 4px 0 rgba(214,84,30,.30); } 50% { box-shadow: 0 0 18px 0 rgba(214,84,30,.50); } }
  .askbar-mic.recording, #reportMicBtn.recording { background: #D6541E; animation: micGlow 1.6s ease-in-out infinite; }
  #reportMicBtn.recording { color: #fff; border-color: #D6541E; }
  /* Desktop has no bottom tab bar, but the answer screen's ask bar
     sits at the bottom: the dock floats above it, not over it. */
  @media (min-width: 1024px) { .ask-dock { bottom: 24px; } main.phone.answer-showing .ask-dock { bottom: 96px; } }
  @media (prefers-reduced-motion: reduce) { .ask-dock, .ask-dock-dot, .askbar-mic.recording, #reportMicBtn.recording { animation: none !important; } }
  /* Conversation thread: earlier turns stay above the live
     answer as compact cards. The question is a soft blush
     bubble on the right (the person speaking), the answer sits
     left in plain ink (Towncrier replying), so the screen
     reads like a conversation. Palette unchanged: cream main,
     wine second, burnt orange kept for voice moments only. */
  .thread { display: none; margin: 6px 0 4px; }
  .thread-turn { padding: 10px 0 12px; border-bottom: 1px solid var(--stone); }
  .thread-q { margin: 0 0 8px auto; max-width: 85%; width: fit-content; background: var(--pill-bg); color: var(--accent); border-radius: 16px 16px 4px 16px; padding: 8px 12px; font-size: 14px; font-weight: 700; line-height: 1.4; }
  .thread-a { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .thread-meta { margin: 6px 0 0; font-size: 11.5px; color: var(--grey); letter-spacing: .02em; }
  /* Citations: small wine numbers after each claim, tied to
     the numbered source rows below. */
  #answerText .cite, .answer-short .cite, .answer-steps .cite { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; margin: 0 1px 0 3px; border-radius: 9px; background: var(--pill-bg); color: var(--accent); font-size: 10.5px; font-weight: 800; line-height: 1; vertical-align: 3px; text-decoration: none; }
  #answerText .cite:hover, #answerText .cite:focus-visible, .answer-short .cite:hover, .answer-steps .cite:hover, .answer-short .cite:focus-visible, .answer-steps .cite:focus-visible { background: var(--accent); color: #FFFFFF; outline: none; }
  .source-row.numbered { display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; }
  .source-row.numbered .source-no { grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; background: var(--pill-bg); color: var(--accent); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
  .source-row.flash { animation: srcFlash 1.2s ease-out; }
  @keyframes srcFlash { 0% { background: var(--pill-bg); } 100% { background: transparent; } }
  main.phone.theme-dark .thread-turn { border-bottom-color: #332A2E; }
  main.phone.theme-dark .thread-q { background: #3A2126; color: #F2C9CF; }
  main.phone.theme-dark .thread-a { color: #EDE8E9; }
  main.phone.theme-dark .thread-meta { color: #B9B3B5; }
  main.phone.theme-dark #answerText .cite, main.phone.theme-dark .answer-short .cite, main.phone.theme-dark .answer-steps .cite, main.phone.theme-dark .source-row.numbered .source-no { background: #3A2126; color: #F2C9CF; }
  main.phone.theme-dark #answerText .cite:hover { background: #7A3A44; color: #FFFFFF; }
  main.phone.theme-dark .source-row.flash { animation-name: srcFlashDark; }
  @keyframes srcFlashDark { 0% { background: #3A2126; } 100% { background: transparent; } }
  @media (prefers-reduced-motion: reduce) { .source-row.flash { animation: none; } }
  /* Empty status lines take no room, so the answer sits right
     under the question. */
  #answerStatus:empty { min-height: 0; margin: 0; }
  #didYouMean:empty, #answerError:empty { margin: 0; }
  #answerScreen.conversing .you-asked { display: none; }
  #answerScreen.conversing #youSaid { margin: 12px 0 10px auto; max-width: 85%; width: fit-content; background: var(--pill-bg); color: var(--accent); border-radius: 16px 16px 4px 16px; padding: 9px 13px; font-size: 15.5px; line-height: 1.4; }
  main.phone.theme-dark #answerScreen.conversing #youSaid { background: #3A2126; color: #F2C9CF; }
  /* Reduced motion: no slide-ins, no bouncing dots, no fades. */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  }

  /* Answer layout: "In short", then numbered steps, with a
     Steps / Paragraph switch. */
  .answer-short { margin: 0 0 10px; font-size: 17px; line-height: 1.45; font-weight: 700; color: var(--ink); }
  .answer-short-lab { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
  .answer-layout { display: inline-flex; border: 1px solid var(--stone); border-radius: 999px; padding: 2px; margin: 0 0 10px; }
  /* The switch hides itself for short answers (fewer than three
     sentences): its display rule must not override [hidden]. */
  .answer-layout[hidden] { display: none; }
  .answer-layout button { background: none; border: 0; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--grey); min-height: 32px; }
  .answer-layout button[aria-pressed="true"] { background: var(--ink); color: #fff; }
  .answer-steps { list-style: none; counter-reset: st; margin: 0 0 12px; padding: 0; }
  .answer-steps li { counter-increment: st; display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--stone); font-size: 15.5px; line-height: 1.5; }
  .answer-steps li::before { content: counter(st); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--pill-bg); color: var(--accent); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
  main.phone.theme-dark .answer-short { color: #EDE8E9; }
  main.phone.theme-dark .answer-layout, main.phone.theme-dark .answer-steps li { border-color: #332A2E; }
  main.phone.theme-dark .answer-layout button[aria-pressed="true"] { background: #EDE8E9; color: var(--ink); }
  main.phone.theme-dark .answer-steps li::before { background: #3A2126; color: #F2C9CF; }

  /* Reading and display (More tab). */
  .more-head { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin: 18px 0 2px; }
  .more-note { font-size: 12.5px; color: var(--grey); margin: 0 0 4px; }
  .more-row button.reading-switch { width: 46px; height: 28px; min-height: 28px; padding: 0; border-radius: 999px; background: var(--stone); border: 0; position: relative; flex: none; }
  .more-row button.reading-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
  .more-row button.reading-switch[aria-checked="true"] { background: var(--accent); }
  .more-row button.reading-switch[aria-checked="true"]::after { left: 21px; }
  .more-row button.reading-switch:disabled { opacity: .6; }
  main.phone.theme-dark .more-row button.reading-switch { background: #3A3236; }
  main.phone.theme-dark .more-row button.reading-switch[aria-checked="true"] { background: var(--accent); }
  /* Bigger text: the whole phone scales up. */
  main.phone.reading-big .pbody { zoom: 1.15; }
  /* Calm motion: no glowing, sliding or pulsing. */
  body.reading-calm *, body.reading-calm *::before, body.reading-calm *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }

  /* Report in three steps: what, when, details. */
  .report-prog { margin: 0 0 14px; }
  .report-prog-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 34px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
  .report-save { background: none; border: 1px solid var(--stone); color: var(--ink); font-size: 13px; font-weight: 700; padding: 7px 12px; letter-spacing: 0; text-transform: none; }
  .report-save[hidden] { display: none; }
  .report-segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
  .report-segs i { height: 6px; border-radius: 99px; background: var(--stone); }
  .report-segs i.done, .report-segs i.now { background: var(--accent); }
  .report-q { font-size: 17px; font-weight: 800; margin: 14px 0 10px; }
  .report-q span { font-weight: 400; font-size: 14px; color: var(--grey); margin-left: 4px; }
  .report-title { font-size: 24px; line-height: 1.15; margin: 4px 0 4px; font-weight: 800; }
  .report-sub { font-size: 13.5px; color: var(--grey); margin: 0 0 10px; line-height: 1.5; }
  .report-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .report-tile { display: block; text-align: left; background: #fff; border: 2px solid var(--stone); border-radius: 14px; padding: 14px 12px; min-height: 84px; color: var(--ink); cursor: pointer; }
  .report-tile svg { display: block; margin-bottom: 8px; color: var(--accent); }
  .report-tile b { font-size: 15px; }
  .report-tile.on, .report-big.on { border-color: var(--accent); background: var(--pill-bg); }
  .report-big { display: block; width: 100%; text-align: left; background: #fff; border: 2px solid var(--stone); border-radius: 14px; padding: 16px; margin-top: 10px; font-size: 16px; font-weight: 700; color: var(--ink); min-height: 56px; cursor: pointer; }
  .report-back { display: block; background: none; border: 0; padding: 12px 0; color: var(--accent); font-weight: 700; font-size: 14px; text-decoration: underline; border-radius: 0; }
  .report-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--stone); border-radius: 14px; padding: 10px 14px; margin: 0 0 8px; background: #fff; }
  .report-sum b { display: block; font-size: 15px; }
  .report-sum small { display: block; font-size: 12.5px; color: var(--grey); }
  .report-sum button { background: none; border: 1px solid var(--stone); color: var(--ink); font-size: 13px; font-weight: 700; padding: 7px 12px; }
  #reportText { margin-top: 6px; }
  .report-pair { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; margin: 12px 0 8px; }
  #reportMicBtn { background: transparent; color: var(--ink); border: 1px solid var(--ink); font-weight: 700; }
  #reportSubmit { background: var(--accent); color: #fff; font-weight: 800; }
  #reportDone { padding: 24px 0 8px; }
  #reportDone h3 { font-family: "Archivo", system-ui, "Helvetica Neue", Arial, sans-serif; font-size: 28px; font-weight: 900; margin: 12px 0 8px; }
  .report-ok { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
  .report-home { display: block; width: 100%; background: var(--accent); color: #fff; font-weight: 800; margin-top: 18px; }
  main.phone.report-flow .tabbar { display: none; }
  main.phone.theme-dark .report-cats button, main.phone.theme-dark .report-tile, main.phone.theme-dark .report-big, main.phone.theme-dark .report-sum { background: #221C1F; border-color: #3A3236; color: #EDE8E9; }
  main.phone.theme-dark .report-tile svg { color: #E8A7B2; }
  main.phone.theme-dark .report-tile.on, main.phone.theme-dark .report-big.on { background: #3A2126; border-color: #7A3A44; color: #F2C9CF; }
  main.phone.theme-dark .report-prog-row { color: #E8A7B2; }
  main.phone.theme-dark .report-segs i { background: #3A3236; }
  main.phone.theme-dark .report-segs i.done, main.phone.theme-dark .report-segs i.now { background: #E8A7B2; }
  main.phone.theme-dark .report-save, main.phone.theme-dark .report-sum button, main.phone.theme-dark #reportMicBtn { border-color: #6B6466; color: #EDE8E9; }
  main.phone.theme-dark .report-title, main.phone.theme-dark .report-q, main.phone.theme-dark #reportDone h3 { color: #fff; }
  main.phone.theme-dark .report-sub, main.phone.theme-dark .report-q span, main.phone.theme-dark .report-sum small { color: #B9B3B5; }
  main.phone.theme-dark .report-back { color: #E8A7B2; }
  /* Polling unit counts (src/field_reports). One task per screen,
     big targets, problems in amber (burnt orange), never red. */
  .count-card { background: var(--accent); color: #fff; border-radius: 18px; padding: 16px; margin: 0 0 16px; }
  .count-card[hidden], #countProg[hidden], .count-entry[hidden], #elexCountBtn[hidden], #elexLookupBtn[hidden] { display: none; }
  .count-card h3 { font-size: 19px; margin: 0 0 4px; color: #fff; }
  .count-card p { font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
  .count-card .next-go { background: #fff; color: var(--ink); }
  .count-card .count-kick { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; opacity: .85; }
  .count-card.soon { background: #fff; color: var(--ink); border: 1.5px solid var(--accent); }
  .count-card.soon h3 { color: var(--ink); }
  .count-card.soon .count-kick { color: var(--accent); opacity: 1; }
  .count-card.soon .count-ghost { margin: 0; }
  main.phone.theme-dark .count-card.soon { background: #221C1F; border-color: #7A3A44; color: #EDE8E9; }
  main.phone.theme-dark .count-card.soon h3 { color: #fff; }
  main.phone.theme-dark .count-card.soon .count-kick { color: #E8A7B2; }
  .count-home { display: block; width: 100%; text-align: left; background: var(--accent); color: #fff; border-radius: 14px; padding: 12px 14px; margin: 10px 0 18px; }
  .count-home[hidden] { display: none; }
  .count-home b { display: block; font-size: 15px; }
  .count-home span { display: block; font-size: 13px; opacity: .9; margin-top: 2px; }
  .count-entry small, .count-pick small { display: block; font-size: 13px; font-weight: 500; color: var(--grey); margin-top: 2px; }
  .count-entry { margin: 0 0 14px; }
  #countView h2 { font-size: 22px; line-height: 1.25; margin: 4px 0 6px; }
  .count-one { font-size: 15px; line-height: 1.5; color: var(--grey); margin: 0 0 14px; }
  .count-box { background: #fff; border: 1px solid var(--stone); border-radius: 16px; padding: 16px; margin: 0 0 14px; }
  .count-box h3 { font-size: 17px; margin: 0 0 4px; }
  .count-box p { font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
  .count-field { display: block; margin: 0 0 14px; }
  .count-field span { display: block; font-size: 15px; font-weight: 700; margin: 0 0 6px; }
  .count-field input, .count-party input { width: 100%; box-sizing: border-box; min-height: 56px; font-size: 22px; font-weight: 700; padding: 10px 14px; border: 2px solid var(--stone); border-radius: 14px; background: #fff; color: var(--ink); }
  .count-field input:focus, .count-party input:focus { border-color: var(--accent); outline: none; }
  .count-party { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 8px; align-items: center; margin: 0 0 10px; }
  .count-party input.count-pname { font-size: 18px; text-transform: uppercase; }
  .count-party button { background: none; border: 1px solid var(--stone); color: var(--ink); font-size: 13px; font-weight: 700; padding: 10px; min-height: 44px; }
  .count-add { background: none; border: 1px dashed var(--grey); color: var(--ink); font-weight: 700; width: 100%; min-height: 48px; margin: 0 0 14px; }
  .count-next { display: block; width: 100%; min-height: 56px; background: var(--accent); color: #fff; font-weight: 800; font-size: 16px; margin-top: 8px; }
  .count-next:disabled { opacity: .45; cursor: not-allowed; }
  .count-ghost { display: block; width: 100%; min-height: 52px; background: transparent; color: var(--ink); border: 1px solid var(--stone); font-weight: 700; font-size: 15px; margin-top: 10px; }
  .count-fix { border-left: 4px solid #D6541E; background: rgba(214, 84, 30, .09); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
  .count-fix b { display: block; margin-bottom: 2px; }
  .count-fix button { margin-top: 8px; background: none; border: 1px solid #D6541E; color: var(--ink); font-weight: 700; padding: 8px 12px; }
  .count-tick { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 700; line-height: 1.4; padding: 14px; border: 2px solid var(--stone); border-radius: 14px; margin: 14px 0 6px; cursor: pointer; }
  .count-tick input { width: 24px; height: 24px; flex: 0 0 auto; margin: 0; accent-color: var(--accent); }
  .count-quiet { font-size: 13px; color: var(--grey); margin: 8px 0 0; }
  .count-badge { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .03em; padding: 5px 10px; border-radius: 999px; background: var(--pill-bg); color: var(--accent); border: 1px solid var(--pill-border); margin: 0 0 8px; }
  .count-badge.flag { background: rgba(214, 84, 30, .1); border-color: #D6541E; color: var(--ink); }
  .count-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 10px; }
  .count-table th, .count-table td { text-align: left; padding: 8px 0; border-top: 1px solid var(--stone); }
  .count-table td:last-child { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
  .count-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); }
  .count-legal { font-size: 12.5px; line-height: 1.5; color: var(--grey); border-top: 1px solid var(--stone); padding-top: 10px; margin-top: 18px; }
  .count-err { color: var(--accent); font-weight: 700; font-size: 14px; margin: 6px 0 0; }
  main.phone.count-flow .tabbar { display: none; }
  main.phone.theme-dark .count-box, main.phone.theme-dark .count-field input, main.phone.theme-dark .count-party input, main.phone.theme-dark .count-tick { background: #221C1F; border-color: #3A3236; color: #EDE8E9; }
  main.phone.theme-dark .count-one, main.phone.theme-dark .count-quiet, main.phone.theme-dark .count-legal, main.phone.theme-dark .count-entry small, main.phone.theme-dark .count-pick small, main.phone.theme-dark .count-table th { color: #B9B3B5; }
  main.phone.theme-dark #countView h2, main.phone.theme-dark .count-box h3 { color: #fff; }
  main.phone.theme-dark .count-fix, main.phone.theme-dark .count-ghost, main.phone.theme-dark .count-add, main.phone.theme-dark .count-party button { color: #EDE8E9; border-color: #6B6466; }
  main.phone.theme-dark .count-fix { border-left-color: #D6541E; }
  main.phone.theme-dark .count-badge { background: #3A2126; border-color: #7A3A44; color: #F2C9CF; }
  main.phone.theme-dark .count-table th, main.phone.theme-dark .count-table td { border-color: #3A3236; }
  main.phone.theme-dark .count-err { color: #E8A7B2; }

  /* No answer: no Play, Simpler or More detail. */
  .answer-pills button[hidden], .voice-pill button[hidden], #speakBtn[hidden] { display: none; }
