/* Divi by Proofline: public replay viewer. Cream and sea green, system fonts, no external requests. Phone layout at 360px, wider screens add a sidebar. */
:root {
  --cream: #f7f2e6; --surface: #fffdf7; --surface-2: #f0e9d9; --ink: #142b27; --muted: #56655e; --rule: #e0d6c1;
  --sea: #17675b; --sea-ink: #0f4c43; --sea-soft: #dcefe7; --on-sea: #fbf8f0;
  --good: #1b6842; --good-bg: #e1f1e6; --bad: #a3361f; --bad-bg: #f8e2da; --warn: #855706; --warn-bg: #f6e9cc;
  --ai: #574794; --ai-bg: #ebe7f6; --code: #38505a; --code-bg: #e3eaec; --mark: #ffe08a; --mark-ink: #3a2a00;
  --focus: #b45309; --banner-bg: #0f4c43; --banner-ink: #fbf8f0; --shadow: 0 1px 2px rgb(20 43 39 / 0.06), 0 6px 18px rgb(20 43 39 / 0.06);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 12px; --banner-h: 52px; --scroll-shade: rgb(20 43 39 / 0.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #0d1916; --surface: #13221e; --surface-2: #1a2c27; --ink: #ede7d8; --muted: #a2b1a9; --rule: #2a3d37;
    --sea: #5cc4ae; --sea-ink: #8fdcc9; --sea-soft: #173a33; --on-sea: #0b1613;
    --good: #76d3a1; --good-bg: #15342a; --bad: #f29680; --bad-bg: #3c1f18; --warn: #e8ba5e; --warn-bg: #352a12;
    --ai: #bcaff2; --ai-bg: #252042; --code: #b5c6cd; --code-bg: #1c2a2f; --mark: #e8c25a; --mark-ink: #1d1600;
    --focus: #f3b562; --banner-bg: #5cc4ae; --banner-ink: #0b1613; --shadow: none; --scroll-shade: rgb(0 0 0 / 0.55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 var(--sans); overflow-wrap: break-word }
p { margin: 0 }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; text-wrap: balance }
a { color: var(--sea-ink) }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px }
[tabindex="-1"]:focus { outline: none }
code, .mono { font-family: var(--mono); font-size: 0.88em; overflow-wrap: anywhere }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow) }
.skip:focus { top: 12px }
.small { font-size: 14px }
.muted { color: var(--muted) }
.ok { color: var(--good) }
.bad { color: var(--bad) }

/* ------------------------------------------------------------------ banner and header */
.banner { position: sticky; top: 0; z-index: 30; background: var(--banner-bg); color: var(--banner-ink); font-size: 13px; line-height: 1.4; padding: 8px 16px; text-align: center }
.banner p { max-width: 70rem; margin-inline: auto }
.top { padding-block: 18px 6px; display: grid; gap: 6px }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px }
.brand-by { font-weight: 500; color: var(--muted) }
.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px }
a.brand { color: inherit; text-decoration: none }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 15px; font-weight: 600 }
.site-nav a { color: var(--sea-ink); text-decoration: none; padding-block: 8px }
.site-nav a:hover { text-decoration: underline }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px } /* rebuild Nov 2026: Demo is the current item on the replay */
/* rebuild Nov 2026: the site's status line under the header, as on every English page. */
.status-line { color: var(--muted); font-size: 13px; line-height: 1.5; padding-block: 4px 10px }
.sl-dot { display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--warn) }
.mark { width: 30px; height: 30px; border-radius: 8px; background: var(--sea); color: var(--on-sea); display: grid; place-items: center; font-weight: 800 }
.brand-mark { width: 30px; height: 30px; flex: none; display: block }
h1 { font-size: clamp(22px, 5.6vw, 34px); line-height: 1.15; font-weight: 750 }
.h1-note { display: inline-block; vertical-align: middle; font-size: 13px; font-weight: 600; color: var(--sea-ink); background: var(--sea-soft); border-radius: 999px; padding: 2px 10px; letter-spacing: 0 }
.positioning { color: var(--muted); font-size: 15px }

/* ------------------------------------------------------------------ layout */
.layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); padding-block: 12px 24px }
.main-col, .side-col { min-width: 0 }
.side-col { display: grid; gap: 16px; align-content: start }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start }
  .side-col { position: sticky; top: calc(var(--banner-h) + 12px); max-height: calc(100vh - var(--banner-h) - 110px); overflow: auto; padding-bottom: 8px }
}
.stage { scroll-margin-top: calc(var(--banner-h) + 8px); outline: none }
.screen { animation: enter 0.25s ease-out }
@keyframes enter { from { opacity: 0; transform: translateY(6px) } }

/* ------------------------------------------------------------------ at a glance */
.glance[hidden] { display: none }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px }
@media (min-width: 560px) { .glance { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.glance-item { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 8px 10px; min-width: 0 }
.glance-item dt { font-size: 12px; color: var(--muted) }
.glance-item dd { margin: 0; font-weight: 650; font-size: 14.5px }
.glance-good dd { color: var(--good) }
.glance-bad { border-color: var(--bad); background: var(--bad-bg) }
.glance-bad dd { color: var(--bad) }

/* ------------------------------------------------------------------ step header */
.step-head { display: grid; gap: 8px; padding-block: 4px 4px }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sea-ink) }
.step-head h2 { font-size: clamp(22px, 5vw, 30px); line-height: 1.2; font-weight: 750 }
.cover-head h2 { font-size: clamp(26px, 6.4vw, 40px) }
.step-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--muted) }
.step-meta .who { color: var(--ink); font-weight: 600 }
.narration { font-size: 17px; max-width: 68ch }
.positioning + .narration { margin-top: 4px }
.step-head .positioning { font-size: 17px; font-weight: 600; color: var(--sea-ink) }

/* ------------------------------------------------------------------ panes */
.pane { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--accent, var(--rule)); border-radius: var(--radius); padding: 14px; margin-top: 16px; box-shadow: var(--shadow); display: grid; gap: 12px; min-width: 0 }
.side-col .pane { margin-top: 0 }
.pane-owner { --accent: var(--sea) }
.pane-reviewer { --accent: var(--good) }
.pane-alert { --accent: var(--bad) }
.pane-register { --accent: var(--warn) }
.pane-receipt { --accent: var(--sea-ink) }
.pane-clock { --accent: var(--warn) }
.pane-log { --accent: var(--code) }
.pane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap }
.pane-head h3 { font-size: 16.5px; font-weight: 700 }
.pane-sub { font-size: 14px; color: var(--muted) }
.subhead { font-size: 15px; margin-top: 4px }

/* ------------------------------------------------------------------ chips, callouts, tiles, key-value */
.chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: 12px; line-height: 1.3; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); overflow-wrap: anywhere; vertical-align: middle }
.chips { display: flex; flex-wrap: wrap; gap: 6px }
.chip-good { background: var(--good-bg); color: var(--good) }
.chip-bad { background: var(--bad-bg); color: var(--bad) }
.chip-warn, .chip-flag { background: var(--warn-bg); color: var(--warn) }
.chip-draft { background: var(--ai-bg); color: var(--ai) }
.chip-tag { background: transparent; border: 1px solid var(--rule); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px }
.chip-highlight { background: var(--sea); color: var(--on-sea) }
.chip-kind-human { background: var(--sea-soft); color: var(--sea-ink) }
.chip-kind-ai, .chip-scripted { background: var(--ai-bg); color: var(--ai) }
.chip-scripted { border: 1px dashed currentColor }
.chip-kind-code, .chip-code { background: var(--code-bg); color: var(--code) }
.status { font-family: var(--mono) }
.callout { border-left: 4px solid var(--rule); background: var(--surface-2); border-radius: 8px; padding: 10px 12px; display: grid; gap: 4px }
.callout-title { font-weight: 700 }
.callout-good { border-color: var(--good); background: var(--good-bg) }
.callout-good .callout-title { color: var(--good) }
.callout-bad { border-color: var(--bad); background: var(--bad-bg) }
.callout-bad .callout-title { color: var(--bad) }
.stage > .screen > .callout { margin-top: 16px }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px }
.tile { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0 }
.tile-value { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.2 }
.tile-label { font-size: 12.5px; color: var(--muted) }
.tile-good .tile-value { color: var(--good) }
.tile-bad .tile-value { color: var(--bad) }
.tile-warn .tile-value { color: var(--warn) }
.kv { margin: 0; display: grid; gap: 6px }
.kv-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 }
.kv dt { font-size: 13px; color: var(--muted) }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere }
@media (min-width: 520px) { .kv-row { grid-template-columns: 10.5em minmax(0, 1fr); gap: 10px } .kv dt { font-size: 14px } }
.kv-inline { display: flex; flex-wrap: wrap; gap: 6px 18px }
.kv-inline .kv-row { display: flex; gap: 6px; align-items: baseline }

/* ------------------------------------------------------------------ tables */
.scroll-x { overflow-x: auto; max-width: 100%; border-radius: 8px;
  /* Scroll cue: a shade shows on any side with more columns; surface-coloured covers scroll with the table and hide it at the ends. */
  background:
    linear-gradient(to right, var(--surface) 40%, transparent) left center / 28px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 40%, transparent) right center / 28px 100% no-repeat local,
    linear-gradient(to right, var(--scroll-shade), transparent) left center / 12px 100% no-repeat scroll,
    linear-gradient(to left, var(--scroll-shade), transparent) right center / 12px 100% no-repeat scroll }
table { width: 100%; border-collapse: collapse; font-size: 14px }
th, td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--rule) }
thead th { font-size: 12.5px; color: var(--muted); font-weight: 650 }
tbody th { font-weight: 600 }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap }
/* Phones: numeric headers may wrap ("Credit" over "(AED)") and cells pad less, so a three-column entry fits at 360px. */
@media (max-width: 479px) { thead th.num { white-space: normal } th, td { padding-inline: 5px } td.num { font-size: 13.5px } }
.row-bad > * { background: var(--bad-bg) }
.row-good > * { background: var(--good-bg) }

/* ------------------------------------------------------------------ chat, documents, proposals */
.thread { display: grid; gap: 10px }
.msg { max-width: min(100%, 560px); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px }
.msg-owner { margin-left: auto; background: var(--sea-soft); border-bottom-right-radius: 4px }
.msg-divi { margin-right: auto; background: var(--surface-2); border-bottom-left-radius: 4px }
.msg-refusal { background: var(--bad-bg) }
.msg-who { font-size: 12.5px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.msg-body { display: grid; gap: 8px; font-size: 15px }
.msg-sig { font-size: 12px; color: var(--muted) }
.proposal-mini { border: 1px solid var(--rule); background: var(--surface); border-radius: 8px; padding: 8px 10px; font-size: 14px }
.options { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px }
.option { display: inline-block; border: 1.5px solid var(--sea); color: var(--sea-ink); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600 }
.option-chosen { background: var(--sea); color: var(--on-sea) }
.doc { margin: 0; border: 1px dashed var(--muted); border-radius: 8px; background: var(--surface); overflow: hidden }
.doc figcaption { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; padding: 6px 10px; font-size: 12.5px; border-bottom: 1px dashed var(--rule) }
.doc-name { font-family: var(--mono); font-weight: 600; overflow-wrap: anywhere }
.doc-sha { color: var(--muted) }
.doc-text, .json { margin: 0; padding: 10px; font: 12.5px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; max-height: 280px; overflow: auto; background: var(--surface) }
.json { background: var(--surface-2); border-radius: 8px; max-height: 360px }
.doc-text.doc-full { max-height: none }
mark { background: var(--mark); color: var(--mark-ink); padding: 0 2px; border-radius: 2px }
.thread-toggle { border: 1px solid var(--rule); border-radius: 10px; background: var(--surface) }
.thread-toggle > summary { padding: 10px 12px; cursor: pointer; font-size: 14.5px }
.thread-toggle > .thread { padding: 0 12px 12px }
.thread-ref { font-family: var(--mono); font-weight: 700 }
.proposal { border: 1px solid var(--rule); border-radius: 10px; padding: 12px; background: var(--surface); display: grid; gap: 10px; min-width: 0 }
.stage > .screen > .proposal { margin-top: 16px }
.proposal-head { display: grid; gap: 4px }
.proposal-head h4 { font-size: 16px }
.proposal-meta { font-size: 14px; color: var(--muted) }
.flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px }
.flag { background: var(--warn-bg); border-radius: 8px; padding: 6px 10px; font-size: 14px }
.flag code { color: var(--warn); font-weight: 700 }
.checks { margin: 0; padding-left: 18px; columns: 2 12em; font-size: 14px }
.reasoning { margin: 0; border-left: 3px dashed var(--ai); padding: 4px 0 4px 12px; display: grid; gap: 4px; font-size: 14.5px }

/* ------------------------------------------------------------------ attempts and the activity log */
.attempt { border: 1px solid var(--rule); border-radius: 10px; padding: 12px; display: grid; gap: 8px; background: var(--surface) }
.attempt > header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap }
.attempt-by { font-weight: 650 }
.server-says { margin: 0; background: var(--bad-bg); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px }
.server-says .eyebrow { color: var(--bad) }
.log { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow: auto }
.log-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 8px 6px; border-bottom: 1px solid var(--rule); font-size: 13px }
.log-row.refused { background: var(--bad-bg); border-left: 3px solid var(--bad) }
.log-row.focus { outline: 2px solid var(--bad); outline-offset: -2px }
.log-seq { font-family: var(--mono); font-weight: 700 }
.log-time { color: var(--muted); font-variant-numeric: tabular-nums }
.log-actor { font-weight: 600 }
.log-action { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap }
.log-entity { flex-basis: 100%; color: var(--muted); font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere }
.log-callout { display: grid; gap: 4px }
.log-callout .log { max-height: none }
.seg-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px }
.seg { font: 600 13px var(--sans); min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer }
.seg:disabled { opacity: 0.45; cursor: default }
.seg[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink) }

/* ------------------------------------------------------------------ queue */
.bucket { display: grid; gap: 8px }
.bucket h4 { font-size: 15px; display: flex; gap: 8px; align-items: center }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.queue-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 10px; border: 1px solid var(--rule); border-radius: 10px; padding: 10px; background: var(--surface) }
.bucket-warn .queue-row { border-left: 4px solid var(--warn) }
.bucket-good .queue-row { border-left: 4px solid var(--good) }
.rank { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 750; font-size: 14px }
.queue-main { display: grid; gap: 4px; min-width: 0 }
.queue-title { font-size: 15px }
.queue-why { font-size: 14px }
.queue-total { grid-column: 2; font-weight: 700; font-variant-numeric: tabular-nums }
@media (min-width: 620px) { .queue-row { grid-template-columns: 30px minmax(0, 1fr) auto } .queue-total { grid-column: auto; text-align: right } }

/* ------------------------------------------------------------------ lists */
.cast, .highlights, .sources, .checklist, .signoffs, .decisions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.cast { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) }
.person { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; background: var(--surface) }
.person-ai { border-style: dashed; border-color: var(--ai) }
.person-name { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.highlights { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) }
.highlight { border-radius: 10px; padding: 12px; background: var(--sea-soft); display: grid; gap: 6px }
.highlight h4 { font-size: 15.5px; color: var(--sea-ink) }
.checklist li { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 8px }
.sources li, .decision { border-bottom: 1px solid var(--rule); padding-bottom: 10px; display: grid; gap: 2px }
.decision-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center }
.signoffs li { font-size: 15px }
.never { margin: 0; padding-left: 20px; display: grid; gap: 2px }
.downloads a { font-weight: 600 }

/* ------------------------------------------------------------------ deadline banner (G07 to G09) */
.dl-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.dl-date { border: 1px solid var(--rule); border-left: 4px solid var(--sea); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; background: var(--surface) }
.dl-date.dl-passed { border-left-color: var(--bad) }
.dl-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15.5px }
.dl-source code { font-size: 12px }
.dl-missing { color: var(--warn); font-weight: 600 }
[dir="rtl"] .dl-date { border-left-width: 1px; border-right: 4px solid var(--sea) }

/* ------------------------------------------------------------------ permission card, health line, lineage, control summary */
.perm-cols { display: grid; gap: 4px 20px; grid-template-columns: minmax(0, 1fr) }
@media (min-width: 720px) { .perm-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) } }
.perm { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px }
.perm li { border-bottom: 1px solid var(--rule); padding-bottom: 6px; display: grid; gap: 2px }
.perm-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px }
.perm-lacks .perm-name code { color: var(--bad); font-weight: 700 }
.health { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); display: grid; gap: 4px }
.health-line { font-weight: 600; font-size: 15px }
.chip-group { background: var(--surface-2); color: var(--ink); border: 1px solid var(--rule) }
.lineage { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--rule); margin-left: 6px }
.lineage-step { position: relative; padding: 8px 0 8px 16px; display: grid; gap: 2px }
.lineage-step::before { content: ""; position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--sea) }
.lineage-ai::before { border-color: var(--ai) }
.lineage-code::before { border-color: var(--code) }
.lineage-step.refused::before { border-color: var(--bad); background: var(--bad-bg) }
.lineage-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px }
.lineage-label { font-weight: 600; font-size: 15px }
.controls-lines { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14.5px }
.tpl { font: 11.5px var(--mono); color: var(--muted); white-space: nowrap }
.more-ar > .more-body { text-align: start }
.more-ar .controls-lines { padding-left: 0; padding-inline-start: 20px }
.raw-month { width: 100%; min-height: 9em; resize: vertical; font: 12.5px/1.5 var(--mono); padding: 8px 10px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); overflow-wrap: anywhere }

/* ------------------------------------------------------------------ receipt checker */
.check-status { border-radius: 12px; padding: 14px 16px; border: 1.5px solid var(--rule); background: var(--surface-2) }
.check-headline { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere }
.check-mark { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--surface); }
.is-match { background: var(--good-bg); border-color: var(--good); color: var(--good) }
.is-differs { background: var(--bad-bg); border-color: var(--bad); color: var(--bad) }
.fingerprints code.ok { color: var(--good) }
.fingerprints code.bad { color: var(--bad); font-weight: 700 }
.verifier { margin: 0; font: 12.5px/1.6 var(--mono); background: var(--surface-2); padding: 10px 12px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere }
.line-match { color: var(--good) }
.line-differs { color: var(--bad); font-weight: 700 }
.edit-table td, .edit-table th { vertical-align: middle }
.check-echo { font-weight: 700; font-size: 15px; overflow-wrap: anywhere }
.check-echo.ok { color: var(--good) }
.check-echo.bad { color: var(--bad) }
.amount-field { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end }
.amount-prefix { font-size: 13px; color: var(--muted) }
.amount-input { width: 7.6em; min-height: 42px; font: 15px var(--mono); text-align: right; padding: 6px 8px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink) }
.amount-input.changed { border-color: var(--bad); background: var(--bad-bg) }
.amount-input[aria-invalid="true"] { border-color: var(--bad); border-style: dashed }
.input-error { flex-basis: 100%; font-size: 12.5px; color: var(--bad); text-align: right }
.balance-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600 }
@media (max-width: 479px) {
  .edit-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
  .edit-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; border-bottom: 1px solid var(--rule); padding-block: 6px }
  .edit-table th[scope="row"] { grid-column: 1 / -1; border: 0; padding-bottom: 0 }
  .edit-table td { border: 0; display: grid; gap: 2px; justify-items: start; text-align: left; padding-top: 4px }
  .edit-table td::before { content: attr(data-label); font-size: 12px; color: var(--muted) }
  .edit-table .amount-input { width: 100%; text-align: left }
  .edit-table .amount-field { display: grid; width: 100% }
}

/* ------------------------------------------------------------------ buttons, details, contents */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--rule); background: var(--surface); color: var(--ink); font: 650 15px var(--sans); text-decoration: none; cursor: pointer; text-align: center }
.button:hover { border-color: var(--sea) }
.button-primary { background: var(--sea); border-color: var(--sea); color: var(--on-sea) }
.button-primary:hover { background: var(--sea-ink); border-color: var(--sea-ink) }
.button-quiet { background: transparent }
.button[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink) }
.button:disabled { opacity: 0.45; cursor: default }
.button-row { display: flex; flex-wrap: wrap; gap: 8px }
.next-cta { margin-top: 18px }
.more { border-top: 1px solid var(--rule); padding-top: 8px }
.stage > .screen > .more { margin-top: 16px }
.more > summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--sea-ink); padding-block: 4px }
.more-body { display: grid; gap: 8px; padding-top: 8px; font-size: 15px }
.more-body ul { margin: 0; padding-left: 20px; display: grid; gap: 4px }
.toc-wrap { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 12px }
.toc-wrap > summary { cursor: pointer; font-weight: 700 }
.toc { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px }
.toc a { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.35 }
.toc a:hover { background: var(--surface-2) }
.toc a[aria-current="step"] { background: var(--sea-soft); font-weight: 650 }
.toc-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-2) }
.toc-highlight .toc-n { background: var(--sea); color: var(--on-sea) }
.load-error { padding-block: 32px; display: grid; gap: 8px }

/* ------------------------------------------------------------------ controls */
.controls { position: sticky; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--rule); box-shadow: 0 -6px 18px rgb(20 43 39 / 0.07) }
.progress { position: relative; height: 6px; background: var(--rule); cursor: pointer }
.progress::before { content: ""; position: absolute; inset: -8px 0 -6px }
.progress-fill { display: block; height: 100%; background: var(--sea); transform-origin: left center; transform: scaleX(var(--progress, 0)); transition: transform 0.3s ease }
.controls-row { display: flex; align-items: center; gap: 8px; padding-block: 8px }
.counter { flex: 1; min-width: 0; text-align: center; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.controls .button { padding: 0 14px }
.play { position: relative; overflow: hidden }
.play-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor }
.play[aria-pressed="true"] .play-icon { width: 10px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor }
.play::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--sea); transform: scaleX(0); transform-origin: left center }
.play.ticking::after { animation: tick var(--dwell, 8s) linear forwards }
@keyframes tick { to { transform: scaleX(1) } }
@media (max-width: 380px) { .play-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) } .controls .button { padding: 0 12px } }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--sea-ink); color: var(--on-sea); padding-block: 28px 20px }
@media (prefers-color-scheme: dark) { .footer { background: var(--surface-2); color: var(--ink) } }
.footer-grid { display: grid; gap: 18px }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center } }
.footer-brand { font-weight: 800; font-size: 18px }
.footer-lead { font-size: 17px; font-weight: 600 }
.footer-sub { opacity: 0.85 }
.cta { display: flex; flex-wrap: wrap; gap: 10px }
.button-light { background: var(--on-sea); color: var(--sea-ink); border-color: var(--on-sea) }
.button-outline { background: transparent; color: inherit; border-color: currentColor; white-space: normal }
@media (prefers-color-scheme: dark) { .button-light { background: var(--sea); color: var(--on-sea); border-color: var(--sea) } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px }
@media (min-width: 760px) { .footer-links { grid-column: 1 / -1 } }
.footer-links a { color: inherit; text-underline-offset: 3px }
.fineprint { margin-top: 18px; font-size: 13px; opacity: 0.85 }
.footer-disc { margin-top: 8px; font-size: 14px; opacity: 0.9 }
.pane-static { scroll-margin-top: calc(var(--banner-h) + 48px) }
.pane-static h2 { font-size: 18px; line-height: 1.3 }
.pane-static ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px }
.footer :focus-visible { outline-color: var(--mark) }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}
