/* Digital Passport, Lifeboat section. Same brand family as the Passport app; one added accent (sea). */
:root {
  --navy: #1f3a5f;
  --cream: #f3e6c8;
  --gold: #f2c14e;
  --bg: #fbf7ee;
  --surface: #ffffff;
  --surface-2: #f3e6c8;
  --surface-3: #eadbb6;
  --ink: #1b2638;
  --ink-2: #4a5568;
  --line: #dccca6;
  --primary: #1f3a5f;
  --on-primary: #f3e6c8;
  --sea: #0b6b73;
  --sea-soft: #d8eeee;
  --on-sea: #ffffff;
  --danger: #b23a33;
  --danger-fill: #d6453d;
  --danger-bg: #fbe6e3;
  --success: #2e5a3c;
  --success-bg: #e2efe5;
  --warn: #7a5a00;
  --warn-bg: #fcf1d2;
  --bezel: #0d1522;
  --scrim: rgb(14 24 38 / 0.55);
  --shadow: 0 1px 2px rgb(31 58 95 / 0.08), 0 8px 24px rgb(31 58 95 / 0.1);
  --shadow-phone: 0 30px 80px rgb(14 24 38 / 0.35);
  --guilloche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='12' viewBox='0 0 60 12'%3E%3Cg fill='none' stroke='%23F2C14E' stroke-width='.8' stroke-opacity='.7'%3E%3Cpath d='M0 6 C10 0 20 0 30 6 S50 12 60 6'/%3E%3Cpath d='M0 6 C10 12 20 12 30 6 S50 0 60 6'/%3E%3C/g%3E%3C/svg%3E");
  --guilloche-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='12' viewBox='0 0 60 12'%3E%3Cg fill='none' stroke='%231F3A5F' stroke-width='.7' stroke-opacity='.16'%3E%3Cpath d='M0 6 C10 0 20 0 30 6 S50 12 60 6'/%3E%3Cpath d='M0 6 C10 12 20 12 30 6 S50 0 60 6'/%3E%3C/g%3E%3C/svg%3E");
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1826;
    --surface: #162436;
    --surface-2: #1d2f46;
    --surface-3: #263b56;
    --ink: #f3e6c8;
    --ink-2: #c9bfa8;
    --line: #2e4560;
    --primary: #9dbbe3;
    --on-primary: #0e1826;
    --sea: #5fd0d6;
    --sea-soft: #12353a;
    --on-sea: #0e1826;
    --danger: #ff8a80;
    --danger-bg: #3a1e20;
    --success: #7fcb97;
    --success-bg: #17301f;
    --warn: #f2c14e;
    --warn-bg: #352b10;
    --bezel: #05090f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
    --guilloche-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='12' viewBox='0 0 60 12'%3E%3Cg fill='none' stroke='%23F3E6C8' stroke-width='.7' stroke-opacity='.1'%3E%3Cpath d='M0 6 C10 0 20 0 30 6 S50 12 60 6'/%3E%3Cpath d='M0 6 C10 12 20 12 30 6 S50 0 60 6'/%3E%3C/g%3E%3C/svg%3E");
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px / 1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, dl, dd, figure, ol, ul { margin: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.sprite { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 0.85rem; }
.muted { color: var(--ink-2); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mono { font-family: var(--mono); }

/* site bar, as in the Passport app */
.sitebar { position: relative; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 12px 20px 18px; background: var(--navy); color: var(--cream); }
.sitebar::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--guilloche); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; color: var(--gold); }
.brand-name { font: 600 1.15rem var(--serif); }
.brand-name b { color: var(--gold); font-style: italic; }
.brand-line { font-size: 0.8rem; opacity: 0.85; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.tabs [role="tab"] { border: 0; background: none; color: var(--cream); padding: 8px 14px; border-radius: 8px; font-weight: 600; min-height: 40px; }
.tabs [role="tab"]:hover { background: rgb(243 230 200 / 0.12); }
.tabs [aria-selected="true"] { background: rgb(243 230 200 / 0.2); box-shadow: inset 0 -3px 0 var(--gold); }
.sitebar :focus-visible { outline-color: var(--gold); }

.sheet { max-width: 1280px; margin: 0 auto; padding: 24px 20px 48px; }
.page { display: grid; gap: 22px; min-width: 0; }
.page > * { min-width: 0; }
.eyebrow { font: 700 0.72rem / 1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sea); }
.h2 { font-size: 1.4rem; }
.label { font: 700 0.74rem / 1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

/* problem */
.problem { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .problem { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px 36px; } .problem .facts { grid-column: 1 / -1; } }
.display { font: 600 clamp(1.5rem, 3.4vw, 2.4rem) / 1.15 var(--serif); max-width: 24ch; text-wrap: balance; }
.lede { color: var(--ink-2); max-width: 54ch; font-size: 1.05rem; }
.facts { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--sea); border-radius: var(--radius); }
.fact-big { font: 700 1.9rem / 1 var(--serif); color: var(--sea); flex: none; }
.fact-icon { width: 30px; height: 30px; color: var(--sea); flex: none; }
.hero-fig { margin: 0; }
.hero-fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--surface-3); }
.hero-fig figcaption { font-size: 0.75rem; color: var(--ink-2); margin-top: 4px; }
.simulated { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--ink-2); padding: 8px 12px; background: var(--warn-bg); border-radius: 8px; }

/* buttons, chips, switch (Passport components) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.92rem; line-height: 1.2; text-decoration: none; transition: transform 0.08s ease, background 0.15s ease; }
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.btn-primary:hover:not(:disabled) { background: var(--primary); filter: brightness(1.12); }
.btn-sea { background: var(--sea); color: var(--on-sea); border-color: transparent; }
.btn-sea:hover:not(:disabled) { background: var(--sea); filter: brightness(1.1); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 0.84rem; }
.btn-block { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 0.85rem; }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font: 700 0.7rem / 1.4 var(--mono); background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.tag-sea { background: var(--sea-soft); color: var(--sea); }
.tag-red { background: var(--danger-bg); color: var(--danger); }
.tag-ok { background: var(--success-bg); color: var(--success); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); position: relative; margin: 0; cursor: pointer; flex: none; transition: background 0.15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px var(--scrim); transition: transform 0.15s; }
.switch input:checked { background: var(--sea); border-color: var(--sea); }
.switch input:checked::after { transform: translateX(18px); }

/* story controls */
.story { display: grid; gap: 10px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.story-top { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.story-bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.story-bar span { display: block; height: 100%; width: 0; background: var(--sea); transition: width 0.3s ease; }
.story-cap { font: 1.1rem / 1.4 var(--serif); min-height: 1.5em; }

/* stage: desktop frame + phone */
.stage { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; justify-items: center; }
.stage > * { min-width: 0; }
@media (min-width: 1100px) { .stage { grid-template-columns: 390px minmax(0, 1fr); justify-items: stretch; } }
.stage-h { margin-bottom: 8px; }

.phone { position: relative; width: 100%; max-width: 390px; height: 780px; border-radius: 48px; overflow: hidden; background: var(--bg); border: 10px solid var(--bezel); box-shadow: var(--shadow-phone); display: flex; flex-direction: column; }
@media (max-width: 440px) { .phone { border-width: 6px; border-radius: 28px; } }
.statusbar { flex: none; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font: 600 0.82rem var(--sans); position: relative; }
.notch { position: absolute; left: 50%; top: 7px; transform: translateX(-50%); width: 104px; height: 26px; border-radius: 18px; background: var(--bezel); }
.pbar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 10px; background: var(--navy); color: var(--cream); position: relative; }
.pbar::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--guilloche); }
.pbar .brand-name { font-size: 1rem; }
.pbar .brand-mark { width: 26px; height: 26px; }
.screens { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.screen { padding: 14px 16px 22px; display: grid; gap: 12px; align-content: start; }
.screen-h { font-size: 1.5rem; }
.tabbar { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 4px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.tabbar button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; color: var(--ink-2); font: 600 0.66rem var(--sans); border-radius: 10px; min-height: 48px; }
.tabbar .i { width: 22px; height: 22px; }
.tabbar [aria-current="page"] { color: var(--sea); }
.tabbar [aria-current="page"] .i { stroke-width: 2.5; }
.badge { position: absolute; top: 2px; right: 22%; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger-fill); color: var(--on-sea); font: 700 0.62rem / 16px var(--sans); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.card-flat { background: var(--surface-2); background-image: var(--guilloche-ink); border-color: transparent; }
.list { list-style: none; padding: 0; display: grid; gap: 8px; }

/* hold list */
.hold { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hold[aria-pressed="true"] { border-color: var(--sea); box-shadow: 0 0 0 2px var(--sea); }
.mono-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--cream); font: 600 0.95rem var(--serif); }
.hold-name { font-weight: 700; }
.hold-meta { font-size: 0.78rem; color: var(--ink-2); grid-column: 2 / -1; }
.hold-fresh { animation: pop 0.9s ease; }
@keyframes pop { 0% { background: var(--sea-soft); } 100% { background: var(--surface); } }
.vault-line { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.seal { color: var(--sea); }

/* watch */
.notice { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); width: 100%; text-align: left; }
.notice[aria-pressed="true"] { border-color: var(--sea); box-shadow: 0 0 0 2px var(--sea); }
.notice-new { animation: pop 1.6s ease; border-left: 5px solid var(--danger-fill); }
.ring { width: 84px; height: 84px; }
.ring .track { fill: none; stroke: var(--surface-3); stroke-width: 9; }
.ring .arc { fill: none; stroke: var(--danger-fill); stroke-width: 9; stroke-linecap: butt; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 0.6s ease; }
.ring .arc.ok { stroke: var(--sea); }
.ring text { font: 700 22px var(--serif); fill: var(--ink); text-anchor: middle; }
.ring .u { font: 700 9px var(--mono); letter-spacing: 0.08em; fill: var(--ink-2); }
.notice-name { font-weight: 700; }
.notice-src { font-size: 0.78rem; color: var(--ink-2); }

/* press and hold */
.holdbtn { position: relative; isolation: isolate; display: grid; place-items: center; gap: 2px; width: 100%; min-height: 76px; padding: 12px; border: 0; border-radius: 16px; background: var(--primary); color: var(--on-primary); font-weight: 700; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.holdbtn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sea); transform-origin: left; transform: scaleX(var(--p, 0)); }
.holdbtn:disabled { opacity: 0.6; cursor: not-allowed; }
.holdbtn small { font-weight: 500; opacity: 0.9; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; background: var(--sea); transition: width 0.25s ease; }
.checks { list-style: none; padding: 0; display: grid; gap: 6px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; }
.checks .i { margin-top: 2px; }
.ok { color: var(--success); }
.bad { color: var(--danger); }
.sample { display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: var(--surface-2); background-image: var(--guilloche-ink); }
.sample-page { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 10px; padding: 10px; background: var(--surface); border-radius: 8px; border: 1px solid var(--line); font-size: 0.8rem; }
.sample-img { grid-row: span 3; width: 64px; height: 64px; border-radius: 6px; background: var(--sea-soft); display: grid; place-items: center; color: var(--sea); }
.sample-line { height: 8px; border-radius: 4px; background: var(--surface-3); }
.leftout { padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--ink); font-size: 0.85rem; display: grid; gap: 4px; }
.leftout b { color: var(--warn); }

/* move, leave, will */
.dest { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; width: 100%; padding: 10px 12px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.dest[aria-pressed="true"] { border-color: var(--sea); box-shadow: 0 0 0 2px var(--sea); }
.steps-mini { list-style: none; padding: 0; display: grid; gap: 4px; font-size: 0.84rem; }
.steps-mini li { display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.steps-mini li.done { color: var(--ink); }
.steps-mini li.done .i { color: var(--success); }
.stamp { display: inline-grid; place-items: center; padding: 6px 10px; border: 2px solid var(--success); color: var(--success); border-radius: 6px; font: 700 0.72rem var(--mono); letter-spacing: 0.08em; transform: rotate(-3deg); }
.erase { display: grid; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.erase-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.heir { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; font-size: 0.88rem; }
select { min-height: 40px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); width: 100%; }

/* desktop frame */
.browser { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.tabstrip { display: flex; gap: 4px; padding: 8px 10px 0; background: var(--surface-3); font-size: 0.8rem; }
.btab { padding: 6px 14px; border-radius: 8px 8px 0 0; background: var(--surface); font-weight: 600; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.address { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--navy); color: var(--gold); }
.viewport { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 520px; }
@media (min-width: 760px) { .viewport { grid-template-columns: minmax(0, 1fr) 300px; } }
.mockpage { padding: 20px 22px; display: grid; gap: 12px; align-content: start; background: var(--surface); }
.mock-note { font: 600 0.72rem var(--mono); color: var(--warn); background: var(--warn-bg); padding: 4px 8px; border-radius: 6px; width: fit-content; }
.mock-banner { padding: 12px 14px; border-radius: 10px; background: var(--danger-bg); border-left: 5px solid var(--danger-fill); }
.mock-banner h3 { font-size: 1.15rem; }
.hot { background: none; border: 0; padding: 0 2px; font-weight: 700; color: var(--ink); text-decoration: underline wavy var(--sea); text-underline-offset: 4px; border-radius: 4px; }
.hot:hover, .hot.on { background: var(--sea-soft); }
.mock-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pop { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--sea); font-size: 0.88rem; }
.extpanel { display: grid; gap: 10px; align-content: start; padding: 14px; border-top: 1px solid var(--line); background: var(--bg); }
@media (min-width: 760px) { .extpanel { border-top: 0; border-left: 1px solid var(--line); } }
.extpanel h3 { font-size: 1.05rem; }
.cd { font: 700 1.5rem var(--serif); }
.cd.flash { animation: pop 1.2s ease; }
.live { display: flex; flex-direction: column; gap: 8px; }
.feed { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 0.85rem; }
.feed li { display: flex; gap: 8px; align-items: center; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; animation: pop 1.2s ease; }
.feed time { font: 0.75rem var(--mono); color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sea); flex: none; }
.frame-note { font-size: 0.8rem; color: var(--ink-2); }

/* diagram */
.diagram-wrap { display: grid; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.diagram { width: 100%; height: auto; max-width: 760px; }
.d-node rect { fill: var(--surface-2); stroke: var(--line); stroke-width: 2; transition: fill 0.3s, stroke 0.3s; }
.d-node.on rect { fill: var(--sea-soft); stroke: var(--sea); }
.d-node text { font: 700 26px var(--serif); fill: var(--ink); text-anchor: middle; }
.d-node .ic { fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.d-link { stroke: var(--ink-2); stroke-width: 3; stroke-dasharray: 3 7; stroke-linecap: round; fill: none; }
.d-link.on { stroke: var(--sea); }
.d-packet { fill: var(--gold); stroke: var(--navy); stroke-width: 2; opacity: 0; transition: transform 0.6s ease, opacity 0.3s; }
.d-cap { min-height: 2.9em; }

/* getting started */
.doc { max-width: 980px; margin: 0 auto; width: 100%; line-height: 1.55; }
.doc > h2 { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.2rem; display: grid; gap: 4px; }
.personas, .strip { list-style: none; padding: 0 !important; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.personas li, .strip li { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 4px; align-content: start; }
.strip .i { width: 30px; height: 30px; color: var(--sea); }
.avatar-lg { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--cream); font: 600 1.05rem var(--serif); }
.p-name { font-weight: 700; }
.pay { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; }
.pay dt { font-weight: 700; color: var(--sea); }
.pay hr { grid-column: 1 / -1; width: 100%; border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
@media (max-width: 600px) { .pay { grid-template-columns: minmax(0, 1fr); gap: 2px; } .pay dd { margin-bottom: 8px; } }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; background: var(--surface); }
caption { text-align: left; font: 600 1.3rem var(--serif); padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--line); }
thead th { background: var(--surface-2); }
.builds { list-style: none; padding: 0 !important; }
.builds li { padding: 8px 12px; border-left: 4px solid var(--sea); background: var(--surface); }

/* context tab */
.doc video { display: block; width: 100%; max-width: 1040px; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--bezel); box-shadow: 0 8px 0 var(--sea); }
.doc details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 10px 14px; }
.doc summary { font-weight: 700; cursor: pointer; min-height: 32px; }
.doc details[open] > summary { margin-bottom: 12px; }
.doc details > * + * { margin-top: 12px; }
.doc details h3 { margin-top: 22px; font-size: 1.2rem; }
.trace { padding: 8px 12px; border-left: 4px solid var(--sea); }
.trace + .trace { margin-top: 10px; }
.trace .meta { font-size: 0.8rem; color: var(--ink-2); font-weight: 600; }

/* toasts and footer */
.toasts { position: fixed; z-index: 50; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: 92vw; }
.toast { padding: 10px 16px; border-radius: 12px; background: var(--navy); color: var(--cream); font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow); animation: pop-in 0.2s ease; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px); } }
.footer { max-width: 1280px; margin: 0 auto; padding: 16px 20px 40px; font-size: 0.78rem; color: var(--ink-2); display: grid; gap: 4px; }

/* film mode: one screen at 1280 x 800 */
.film-cap { display: none; }
body.filming .problem, body.filming .simulated, body.filming .story, body.filming .diagram-wrap, body.filming .frame-note, body.filming .sitebar .tabs, body.filming .footer, body.filming .stage-h, body.filming .page > .card, body.filming .live { display: none; }
body.filming .sitebar { padding: 6px 20px 12px; }
body.filming .sheet { padding: 12px 20px 0; }
body.filming .stage { grid-template-columns: 390px minmax(0, 1fr); gap: 20px; }
body.filming .phone { height: 560px; }
body.filming .viewport { min-height: 470px; grid-template-columns: minmax(0, 1fr) 300px; }
body.filming .film-cap { display: block; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 14px 40px 18px; background: var(--navy); color: var(--cream); font: 600 1.9rem / 1.25 var(--serif); text-align: center; border-top: 6px solid var(--gold); }

@media (prefers-reduced-motion: reduce) {
  body:not(.filming) *, body:not(.filming) *::before, body:not(.filming) *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
