:root {
  font-family: var(--rt-font-body);
  color: var(--ink);
  background: var(--canvas);
  /* Local aliases over generated tokens (tokens.css). Edit design/tokens.json, not these values. */
  --ink: var(--rt-color-text);
  --surface: var(--rt-color-surface);
  --canvas: var(--rt-color-canvas);
  --link: var(--rt-color-text-accent);
  --action: var(--rt-color-action-primary);
  --on-action: var(--rt-color-action-primary-text);
  --brand-field: var(--rt-color-brand-field);
  --on-brand: var(--rt-color-text-on-brand);
  --accent-on-brand: var(--rt-color-accent-on-brand);
  --toast: var(--rt-color-toast);
  --spark: var(--rt-color-coral);
  --quiet: var(--rt-color-quiet);
  --muted: var(--rt-color-text-muted);
  --line: var(--rt-color-hairline);
  --control: var(--rt-color-control-border);
  --focus-ring: var(--rt-color-focus);
  --display: var(--rt-font-display);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--canvas); }
::selection { background: var(--rt-color-selection); color: var(--ink); }
.shell { width: min(100% - 40px, 720px); margin: auto; }
.shell:has(.home:not([hidden])) { width: min(100% - 48px, 1120px); }
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; font: var(--rt-weight-display) 1.3rem/1 var(--display); letter-spacing: -.02em; }
.lockup img { width: 44px; height: 44px; border-radius: var(--rt-radius-mark); flex: none; }
.site-header nav { display: flex; align-items: center; gap: 34px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 650; }
.site-header .nav-action { background: var(--action); color: var(--on-action); padding: 13px 20px; border-radius: var(--rt-radius-control); }
main { padding: 30px 0 84px; }
h1, h2 { font-family: var(--display); font-weight: var(--rt-weight-display); letter-spacing: -.025em; color: var(--ink); }
h3 { font-family: var(--display); font-weight: var(--rt-weight-semibold); }
h1 { font-size: clamp(2.75rem, 9vw, 5.2rem); line-height: 1.08; margin: 14px 0 26px; max-width: 12ch; text-wrap: balance; }
h2 { font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.05; margin: 0 0 12px; max-width: 14ch; }
p { line-height: 1.6; }
.occasion { margin: 0; color: var(--link); font-size: .78rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.prompt { color: var(--ink); font: var(--rt-weight-medium) clamp(1.25rem, 3vw, 1.55rem)/1.45 var(--display); max-width: 34ch; margin: 0 0 38px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--rt-radius-card); }
.prompt::before { content: "“"; display: block; color: var(--link); font-size: 2.3rem; line-height: .5; margin-bottom: 12px; }
form { padding-top: 20px; }
.form-intro { color: var(--muted); max-width: 50ch; margin: 0 0 28px; }
.trust-note { margin: 0 0 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--rt-radius-control); background: var(--surface); }
.trust-note strong { display: block; margin-bottom: 4px; }
.trust-note p { margin: 0; color: var(--muted); font-size: .9rem; }
.choose-actions { display: flex; gap: 12px; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; transform: none; }
.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; }
.preview-wrap { margin-top: 26px; }
.preview-wrap video { display: block; width: 100%; max-height: 420px; background: var(--rt-color-media-canvas); border-radius: var(--rt-radius-card); }
#file-name { margin: 8px 0 0; font-size: .9rem; overflow-wrap: anywhere; }
.help { color: var(--muted); font-size: .87rem; margin: 12px 0 28px; }
.sparks { margin: 8px 0 28px; padding: 0; border: 0; min-width: 0; }
.sparks legend { padding: 0; margin-bottom: 4px; font: var(--rt-weight-display) 1.35rem/1.2 var(--display); color: var(--ink); }
.sparks .help { margin: 4px 0 14px; }
.spark-options { display: grid; gap: 10px; margin-bottom: 12px; }
.spark-option { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 0; padding: 14px 16px; border: 1px solid var(--control); border-radius: var(--rt-radius-control); background: var(--surface); font-weight: 400; cursor: pointer; }
.spark-option:has(input:checked) { border: 2px solid var(--rt-color-selected-border); padding: 13px 15px; background: var(--quiet); }
.spark-option:has(input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.spark-option input { margin: 0; }
.spark-kind { display: block; margin-bottom: 2px; color: var(--link); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.spark-text { display: block; color: var(--ink); font: var(--rt-weight-medium) 1.08rem/1.4 var(--display); }
#more-sparks { min-height: 44px; }
.mode { margin: 8px 0 24px; padding: 0; border: 0; min-width: 0; }
.mode legend { padding: 0; margin-bottom: 12px; font: var(--rt-weight-display) 1.35rem/1.2 var(--display); color: var(--ink); }
.mode-option { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 0 0 10px; padding: 16px; border: 1px solid var(--control); border-radius: var(--rt-radius-card); background: var(--surface); font-weight: 400; cursor: pointer; }
.mode-option:has(input:checked) { border: 2px solid var(--rt-color-selected-border); padding: 15px; background: var(--quiet); }
.mode-option:has(input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.mode-option input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--rt-color-selected-indicator); }
.mode-title { display: block; color: var(--ink); font: var(--rt-weight-display) 1.2rem/1.25 var(--display); }
.mode-detail { display: block; margin-top: 4px; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.step-title { margin: 8px 0 12px; color: var(--link); font-size: .85rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.step-title:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; border-radius: 4px; }
.step-actions { display: grid; justify-items: start; gap: 6px; margin: 18px 0 8px; }
.step-actions .btn-primary { margin-bottom: 4px; }
.step-actions .text-button { min-height: 44px; }
.parts-summary { list-style: none; margin: 12px 0 0; padding: 0; color: var(--muted); font-size: .95rem; }
.parts-summary li { padding: 4px 0; }
.parts-summary li::before { content: "○ "; color: var(--muted); }
.parts-summary li.ready { color: var(--ink); }
.parts-summary li.ready::before { content: "● "; color: var(--link); }
.upload-chips { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; color: var(--muted); font-size: .9rem; }
.upload-chips li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.upload-chips li[data-state="uploaded"] { color: var(--ink); }
.upload-chips li[data-state="failed"] { color: var(--ink); font-weight: 700; }
.finale-offer { margin: 20px 0 8px; padding: 18px; border: 1px dashed var(--control); border-radius: var(--rt-radius-card); background: var(--surface); }
.finale-offer strong { display: block; margin-bottom: 6px; color: var(--ink); font: var(--rt-weight-display) 1.15rem/1.25 var(--display); }
.finale-offer p { margin: 0 0 14px; color: var(--muted); }
.finale-offer-line { color: var(--ink); font-family: var(--display); font-weight: var(--rt-weight-medium); }
.finale-line { margin: 4px 0 24px; }
.momentum { margin: -8px 0 24px; color: var(--link); font-weight: 650; }
.momentum::before { content: "● "; color: var(--toast); }
.success .momentum { margin: 8px 0 20px; font-size: 1rem; }
.pass-mic { margin: -6vh 0 12vh; padding: 22px; border: 1px solid var(--line); border-radius: var(--rt-radius-card); background: var(--surface); }
.pass-mic h2 { font-size: clamp(1.5rem, 5vw, 2rem); max-width: none; }
.pass-mic p { color: var(--muted); }
.pass-mic form { display: grid; gap: 10px; justify-items: start; }
.pass-mic input { width: 100%; }
/* "Make one for someone": quiet, and only after the contributor's own story is in. */
.make-one { margin: -8vh 0 12vh; padding: 22px 0 0; border-top: 1px solid var(--line); }
.make-one h2 { font-size: clamp(1.4rem, 4.5vw, 1.8rem); max-width: none; }
.make-one p { color: var(--muted); margin: 0 0 8px; }
.make-one .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.via-note { display: inline-block; margin: 0 0 4px; padding: 12px 16px; border-radius: var(--rt-radius-control); background: var(--quiet); color: var(--ink); font-weight: 600; }
.pass-result { display: grid; gap: 8px; justify-items: start; margin-top: 16px; }
.pass-result p { color: var(--ink); font-weight: 650; }
.thanks { margin: 6vh 0 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--rt-radius-card); background: var(--surface); display: grid; gap: 10px; justify-items: start; }
.thanks h1 { margin: 0; }
.thanks h2 { margin: 0; font-size: clamp(1.5rem, 5vw, 2rem); max-width: none; }
.thanks p { margin: 0; color: var(--muted); }
.thanks .occasion { color: var(--ink); }
.thanks video { width: 100%; max-height: 70vh; border-radius: var(--rt-radius-sm); background: var(--rt-color-media-canvas); }
.due { margin: 6px 0 0; font-weight: 650; color: var(--ink); }
.field-help { margin: 7px 0 0; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
input[type=text], input[type=password] { width: 100%; min-height: 52px; border: 1px solid var(--control); background: var(--surface); color: var(--ink); border-radius: var(--rt-radius-control); padding: 14px 16px; font: inherit; caret-color: var(--link); }
.privacy-note { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--rt-radius-sm); background: var(--surface); }
.privacy-note h3 { margin: 0 0 8px; font-size: 1rem; }
.privacy-note p { margin: 0 0 14px; color: var(--muted); }
.consent-row { display: grid; grid-template-columns: 28px 1fr; align-items: start; gap: 10px; margin: 0; font-weight: 650; cursor: pointer; }
.consent-row input { margin: 0; }
.submit { display: flex; width: 100%; margin-top: 22px; }
progress { width: 100%; height: 10px; accent-color: var(--action); margin-top: 20px; }
#status { min-height: 1.6em; color: var(--link); font-size: .94rem; }
.state { padding: 13vh 0; }
.state p { font-size: 1.15rem; color: var(--muted); }
.success-mark { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--rt-color-status-success-bg); color: var(--rt-color-status-success); border: 2px solid var(--rt-color-status-success); box-sizing: border-box; font-size: 2rem; }
footer { border-top: 1px solid var(--line); padding: 26px 0 44px; color: var(--muted); font: 1rem var(--rt-font-body); }
footer a { color: inherit; }
.help-line { font-size: 1rem !important; }
.help-line a { color: var(--link); text-underline-offset: 3px; }
/* Privacy page (privacy.html) */
.legal { padding: 8px 0 56px; }
.legal .eyebrow { margin: 0; color: var(--link); font-size: .8rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.legal h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); max-width: 16ch; margin: 10px 0 12px; }
.legal h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); max-width: none; margin: 44px 0 12px; scroll-margin-top: 24px; }
.legal h3 { margin: 24px 0 6px; font-size: 1.05rem; color: var(--ink); }
.legal p, .legal li { font-size: 1.05rem; line-height: 1.6; }
.legal li { margin-bottom: 8px; }
.legal ul { padding-left: 1.2em; }
.legal a { color: var(--link); text-underline-offset: 3px; }
.legal a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }
.legal-updated { color: var(--muted); font-size: .95rem !important; margin: 0 0 20px; }
.legal-lede { font-size: 1.2rem !important; }
.legal-contents { margin: 28px 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--rt-radius-card); background: var(--surface); }
.legal-contents ul { margin: 0; }
.legal-contents li { margin-bottom: 4px; }
.consent-more { margin: 0 0 14px; }
.consent-more summary { min-height: 44px; display: flex; align-items: center; gap: 10px; list-style: none; color: var(--link); font-size: .94rem; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.consent-more summary::-webkit-details-marker { display: none; }
.consent-more summary::before { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--rt-duration-reveal) var(--rt-ease-standard); }
.consent-more[open] summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .consent-more summary::before { transition: none; } }
.consent-more[open] summary { margin-bottom: 8px; }
.privacy-link { display: inline-block; margin-top: 12px; color: var(--link); font-size: .94rem; text-underline-offset: 3px; }
.home { padding: 10px 0 54px; }
.home-hero { display: grid; grid-template-columns: .76fr 1.24fr; align-items: center; gap: 24px; min-height: 690px; }
.home-copy { position: relative; z-index: 2; }
.home h1 { font-size: clamp(4rem, 7vw, 6.8rem); max-width: 8.4ch; margin: 0 0 28px; }
.home-lede { max-width: 43ch; color: var(--muted); font-size: 1.08rem; margin: 0 0 32px; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.availability { max-width: 32ch; margin: 0; color: var(--muted); font-size: .9rem; }
.availability strong { color: var(--ink); }
.primary-link, .closing-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 38px; min-height: 58px; padding: 16px 22px; border-radius: var(--rt-radius-control); background: var(--action); color: var(--on-action); text-decoration: none; font-weight: 750; }
/* Only one coral action: when the organizer CTA is shown, the explainer link steps down. */
.hero-actions:has([data-organizer]:not([hidden])) .secondary-link { background: var(--surface); color: var(--ink); }
.text-link { color: var(--link); text-underline-offset: 6px; font-weight: 700; }
.hero-art { position: relative; align-self: stretch; min-height: 650px; margin-right: calc((100vw - min(100vw - 48px, 1120px)) / -2); overflow: hidden; }
.hero-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-art::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 20%; background: linear-gradient(90deg, var(--canvas), transparent); }
.annotation { position: absolute; font: italic 1rem/1.15 "Bradley Hand", "Segoe Print", cursive; color: var(--rt-navy); /* sits on the photo in both appearances */ transform: rotate(-5deg); }
.annotation-one { left: 29%; top: 44%; }
.annotation-two { right: 8%; bottom: 10%; transform: rotate(5deg); }
.annotation i { color: var(--spark); font-size: 1.4em; }
.known { position: relative; display: grid; grid-template-columns: 1fr .8fr; gap: 70px; align-items: center; padding: 118px 0 74px; border-top: 1px solid var(--line); }
.known h2 { max-width: 9ch; font-size: clamp(3.7rem, 7vw, 6.3rem); }
.known h2 em { color: var(--link); font-weight: var(--rt-weight-medium); }
.known > p { max-width: 43ch; font-size: 1.08rem; }
.known-note { position: absolute; right: 2%; top: 38px; color: var(--link); font: italic 1.15rem/1.35 "Bradley Hand", "Segoe Print", cursive; transform: rotate(-4deg); }
.how-it-works { padding: 48px 0 104px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding-top: 24px; border-top: 1px solid var(--control); }
.steps li > span { color: var(--spark); font: var(--rt-weight-display) 4.8rem/.75 var(--display); }
.steps li:nth-child(2) > span { color: var(--toast); }
.steps li:nth-child(3) > span { color: var(--link); }
.steps strong { font: var(--rt-weight-semibold) 1.85rem/1.05 var(--display); letter-spacing: -.03em; }
.steps p { margin: 16px 0 0; color: var(--muted); }
.coming-soon { max-width: 54ch; margin: 38px 0 0; color: var(--muted); scroll-margin-top: 24px; }
.coming-soon strong { color: var(--ink); }
.closing-line { position: relative; margin-inline: calc((100vw - min(100vw - 48px, 1120px)) / -2); padding: 88px max(24px, calc((100vw - min(100vw - 48px, 1120px)) / 2)); overflow: hidden; background: var(--brand-field); color: var(--on-brand); font: var(--rt-weight-display) clamp(2.8rem, 6vw, 5.4rem)/1.03 var(--display); letter-spacing: -.025em; }
.closing-line em { color: var(--accent-on-brand); font-weight: var(--rt-weight-medium); }
.closing-action { margin-top: 38px; background: var(--rt-white); color: var(--rt-navy); font: 750 .95rem/1 var(--rt-font-body); letter-spacing: 0; }
.closing-line :focus-visible { outline-color: var(--rt-white); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
section[tabindex="-1"]:focus { outline: none; }
@media (max-width: 560px) {
  .shell:has(.home:not([hidden])) { width: min(100% - 40px, 1120px); }
  .site-header { height: 76px; }
  .site-header nav > a:not(.nav-action) { display: none; }
  .site-header .nav-action { padding: 11px 13px; font-size: .76rem; }
  .lockup { font-size: 1.1rem; gap: 10px; }
  .lockup img { width: 40px; height: 40px; }
  main { padding-top: 22px; }
  .choose-actions { flex-direction: column; }
  .choose-actions button { width: 100%; }
  .home { padding-top: 18px; }
  .home-hero { grid-template-columns: 1fr; gap: 42px; min-height: auto; padding: 46px 0 76px; }
  .home h1 { font-size: clamp(3.5rem, 16vw, 5rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .primary-link { width: 100%; }
  .hero-art { min-height: 390px; margin: 0 -20px; }
  .hero-art > img { object-position: 72% center; }
  .hero-art::before { display: none; }
  .annotation-one { left: 8%; top: 8%; }
  .annotation-two { right: 6%; bottom: 5%; }
  .known { grid-template-columns: 1fr; gap: 16px; padding: 86px 0 56px; }
  .known h2 { font-size: clamp(3.6rem, 17vw, 5rem); }
  .known-note { position: static; margin-top: 12px; }
  .steps { grid-template-columns: 1fr; gap: 38px; }
  .how-it-works { padding-bottom: 82px; }
  .closing-line { margin-inline: -20px; padding: 72px 20px; }
  }
@media (max-width: 360px), (min-resolution: 2dppx) and (max-width: 560px) {
  .shell, .shell:has(.home:not([hidden])) { width: min(100% - 28px, 1120px); }
  .site-header { height: auto; min-height: 72px; padding: 12px 0; }
}
@media (forced-colors: active) {
  input[type=text], .privacy-note, .spark-option, .mode-option, .finale-offer { border: 2px solid ButtonText; }
  :focus-visible { outline-color: Highlight; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Concept styling is scoped to guided invitation screens during brand migration. */

body:has(#invite:not([hidden])) .shell { max-width: 560px; }
#invite .intro { margin-bottom: 24px; }
#invite #title { font: 700 1rem/1.35 system-ui, sans-serif; max-width: none; margin: 12px 0 8px; letter-spacing: 0; }
#invite .occasion { display: inline-block; padding: 8px 12px; border-radius: var(--rt-radius-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); letter-spacing: 0; text-transform: none; }
#invite .capture-progress { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
#invite .step-title, #invite #send-title { color: var(--ink); font: 850 clamp(2rem, 8vw, 2.75rem)/1.08 var(--display); letter-spacing: -.035em; text-transform: none; max-width: 16ch; margin: 0 0 16px; }
#invite .form-intro { font-size: 1.1rem; margin-bottom: 24px; }
#invite .spark-option:has(input:checked) { border-color: var(--rt-color-selected-border); background: var(--surface); }
#invite .choose-actions { flex-direction: column; }
#invite .step-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
#invite .parts-summary { font-size: .85rem; color: var(--muted); }
#invite #back-recording { display: block; min-height: 48px; margin-top: 16px; }
body:has(#invite:not([hidden])) .site-header nav { display: none; }


/* Shared v2 identity and action states. */
.lockup picture { display: flex; align-items: center; }
.lockup img.wordmark { width: 185px; height: auto; border-radius: 0; }
.nav-action, .primary-link { border: 1px solid var(--rt-color-action-primary-border); }
.site-header .nav-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.primary-link:active { transform: scale(.985); }
.prompt, .spark-text, .mode-detail { font-family: var(--rt-font-body); }
@media (max-width: 560px) { .lockup img.wordmark { width: 150px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-link:active { transform: none; }
}

/* Organizer launch toggles (featureFlags.organizerWeb). */
[data-organizer][hidden], [data-organizer-off][hidden] { display: none !important; }

/* Contributor flow shell (featureFlags.contributorFlow, W1 / DA2). Tokens only. */
.welcome { padding: 4vh 0 56px; display: grid; justify-items: start; gap: 4px; }
.welcome:focus-visible { outline: none; }
.welcome h1 { max-width: 16ch; font-size: clamp(2.2rem, 8vw, 3.6rem); margin: 6px 0 14px; overflow-wrap: anywhere; }
.welcome-face { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; margin-bottom: 14px; background: var(--rt-color-brand-field); color: var(--rt-color-text-on-brand); font: var(--rt-weight-display) 2.6rem/1 var(--display); }
.welcome-greeting { margin: 0; color: var(--ink); font: var(--rt-weight-display) 1.35rem/1.2 var(--display); }
.welcome-count { margin: 0 0 8px; color: var(--link); font-weight: 650; }
.welcome-reassure { margin: 0 0 var(--rt-space-4); color: var(--muted); max-width: 44ch; }
.welcome-start-note { margin: var(--rt-space-2) 0 0; color: var(--muted); font-size: var(--rt-text-small); }
.hub-on .welcome-start-note { display: none; } /* the hub's own privacy line already gives the time */
.send-visibility { margin: var(--rt-space-4) 0 var(--rt-space-2); color: var(--ink); font-weight: var(--rt-weight-semibold); max-width: 44ch; }
.welcome-facts { list-style: none; margin: 14px 0 26px; padding: 0; display: grid; gap: 12px; color: var(--ink); font-size: 1.05rem; max-width: 48ch; }
.welcome-facts li { padding-left: 22px; position: relative; line-height: 1.5; }
.welcome-facts li::before { content: "●"; position: absolute; left: 0; color: var(--link); font-size: .7rem; top: .45em; }
.welcome .btn-primary { width: 100%; max-width: 420px; }
.flow-nav { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 14px; margin: 0 0 8px; }
.flow-back { text-decoration: none; font-weight: 700; min-width: 44px; padding-right: 8px; }
.flow-progress-text { margin: 0; color: var(--ink); font-weight: 700; font-size: .95rem; text-align: right; overflow-wrap: anywhere; }
.flow-progress { grid-column: 1 / -1; height: 6px; border-radius: var(--rt-radius-pill); background: var(--line); overflow: hidden; }
.flow-progress-bar { width: var(--flow-progress, 0%); height: 100%; background: var(--rt-color-selected-border); transition: width var(--rt-duration-quick) var(--rt-ease-standard); }
@media (prefers-reduced-motion: reduce) { .flow-progress-bar { transition: none; } }
.flow-on #step-actions .text-button, .flow-on .choose-actions .btn { min-height: 44px; }

/* Contributor steps (W2 / W4 / DA3): Spark picker, full-screen record, review, edge states. Tokens only. */
body.flow-steps .intro { display: none; }
body.recording-screen { overflow: hidden; }
body.recording-screen .site-header, body.recording-screen footer { visibility: hidden; }
.flow-screen { display: grid; justify-items: start; gap: 0; }
.flow-screen .step-title { max-width: none; }
.flow-actions { width: 100%; }
.flow-actions .btn { width: 100%; }
.flow-notice { margin: 0 0 var(--rt-space-4); padding: var(--rt-space-3) var(--rt-space-4); border-radius: var(--rt-radius-control); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 1rem; }
.flow-notice .text-button { margin-left: var(--rt-space-2); }
.resume-strip { margin: 0 0 var(--rt-space-4); padding: var(--rt-space-3) var(--rt-space-4); border-radius: var(--rt-radius-control); background: var(--quiet); color: var(--ink); }
.resume-strip p { margin: 0; font-weight: 650; }
.startover-slot { display: grid; justify-items: start; }
.start-over-confirm { display: grid; justify-items: start; gap: var(--rt-space-2); padding: var(--rt-space-3) 0; width: 100%; }
.start-over-confirm .btn, .start-over-confirm .text-button, .remove-confirm .btn, .remove-confirm .text-button { width: 100%; max-width: 420px; min-height: 48px; justify-content: center; text-align: center; } /* the answers are as easy to hit as the primary buttons (device pass) */
.start-over-confirm p { margin: 0; color: var(--ink); }
.interrupted { margin: 0 0 var(--rt-space-4); padding: var(--rt-space-4); border-radius: var(--rt-radius-card); border: 2px solid var(--control); background: var(--surface); }
.interrupted h2 { font-size: 1.35rem; max-width: none; margin: 0 0 var(--rt-space-2); }
.interrupted p { margin: 0 0 var(--rt-space-2); color: var(--ink); }
.interrupted-actions { display: grid; justify-items: start; gap: var(--rt-space-2); margin-top: var(--rt-space-3); }
.interrupted-actions .btn { width: 100%; }
.review-upload { margin: var(--rt-space-3) 0; color: var(--ink); }
/* Review (#228): a centred 9:16 player no taller than about half the screen, so the actions stay in view. The hub's full-screen review below overrides this. */
#review-wrap { display: grid; justify-items: center; width: 100%; margin-top: var(--rt-space-3); }
#review-video { width: auto; max-width: 100%; height: min(46dvh, 420px); aspect-ratio: 9 / 16; object-fit: contain; }
#review-step > .flow-actions { position: sticky; bottom: 0; z-index: 2; padding: var(--rt-space-3) 0 max(var(--rt-space-3), env(safe-area-inset-bottom)); background: var(--rt-color-canvas); }
/* One coral action on the contributor screens (#234): "Start one" in the header is a quiet link. */
.flow-on .site-header .nav-action, .hub-on .site-header .nav-action { background: none; border: 0; padding-inline: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.blocked-steps { margin: 0 0 var(--rt-space-4); padding-left: 1.4em; color: var(--ink); display: grid; gap: var(--rt-space-2); line-height: 1.5; }
.hop { padding: 4vh 0 56px; display: grid; justify-items: start; gap: var(--rt-space-3); }
.hop:focus-visible { outline: none; }
.hop h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); max-width: 14ch; margin: 0; }
.hop p { margin: 0; color: var(--ink); font-size: 1.1rem; }
.hop-steps { margin: 0; padding-left: 1.4em; color: var(--ink); display: grid; gap: var(--rt-space-2); font-size: 1.1rem; }
.hop .btn-primary { width: 100%; max-width: 420px; }
.hop-link-label { color: var(--muted); font-size: .9rem; margin-top: var(--rt-space-3); }
.hop-link { padding: var(--rt-space-3) var(--rt-space-4); border: 1px solid var(--line); border-radius: var(--rt-radius-control); background: var(--surface); overflow-wrap: anywhere; user-select: all; font-size: .95rem; width: 100%; }

/* The record step is the camera, full screen; the Spark stays on top of it. */
.record-step { position: fixed; inset: 0; z-index: 20; display: grid; grid-template-rows: auto 1fr auto; background: var(--rt-color-media-canvas); color: var(--rt-color-media-text); height: 100vh; height: 100dvh; }
.camera-view { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--rt-color-media-canvas); }
.camera-view.mirrored { transform: scaleX(-1); }
.camera-top, .camera-bottom { position: relative; z-index: 1; }
.camera-top { display: flex; align-items: center; justify-content: space-between; gap: var(--rt-space-3); padding: max(var(--rt-space-3), env(safe-area-inset-top)) var(--rt-space-4) var(--rt-space-6); background: linear-gradient(var(--rt-scrim-strong), transparent); }
.camera-control { background: var(--rt-media-control); color: var(--rt-color-media-text); min-width: 48px; min-height: 48px; }
.camera-clock { margin: 0; font: var(--rt-weight-display) 1.25rem/1 var(--display); font-variant-numeric: tabular-nums; }
.camera-bottom { grid-row: 3; display: grid; justify-items: center; gap: var(--rt-space-3); padding: var(--rt-space-8) var(--rt-space-4) max(var(--rt-space-5), env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--rt-scrim-media) 28%); text-align: center; }
.record-spark { margin: 0; max-width: 34ch; font: var(--rt-weight-medium) 1.25rem/1.4 var(--display); }
.record-countdown { margin: 0; font: var(--rt-weight-display) 6rem/1 var(--display); font-variant-numeric: tabular-nums; color: var(--rt-color-media-text); text-shadow: 0 2px 12px rgb(0 0 0 / 0.5); }
.record-hint, .record-status { margin: 0; min-height: 1.4em; font-size: 1rem; color: var(--rt-color-media-text); }
.record-ring-wrap { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.record-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-track, .ring-fill { fill: none; stroke-width: 5; }
.ring-track { stroke: var(--rt-media-track); }
.ring-fill { stroke: var(--rt-color-media-text); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; }
.past-ring .ring-fill { stroke: var(--rt-color-accent-on-brand); }
.record-toggle { position: relative; width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--rt-color-media-text); background: var(--rt-color-action-primary); display: grid; place-items: center; padding: 0; }
.record-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--rt-color-action-primary-text); }
.recording .record-dot { border-radius: var(--rt-radius-sm); width: 24px; height: 24px; }
.record-links { display: flex; justify-content: center; }
.on-media { color: var(--rt-color-media-text); }
.record-step button:focus-visible { outline: 3px solid var(--rt-color-media-text); outline-offset: 3px; }
/* No usable in-page recorder (no MP4 recording): the phone's camera app does the recording. */
.record-step.native { position: static; display: block; height: auto; background: none; color: var(--ink); }
.record-step.native .camera-top { padding: 0 0 var(--rt-space-4); background: none; }
.record-step.native .camera-control { background: var(--quiet); color: var(--ink); }
.record-step.native .camera-bottom { padding: 0; background: none; justify-items: start; text-align: left; }
.record-step.native .record-spark, .record-step.native .record-status { color: var(--ink); }
.record-step.native .on-media { color: var(--link); }
.record-step.native #record-native { width: 100%; }
@media (forced-colors: active) {
  .record-toggle, .camera-control { border: 2px solid ButtonText; forced-color-adjust: none; }
  .interrupted, .flow-notice, .resume-strip { border: 2px solid ButtonText; }
}

/* W3: the Send screen's thumbnails, the thank-you extras, the closed page and the "Not [Name]?" refusal. */
.send-clips { list-style: none; margin: 0 0 var(--rt-space-4); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--rt-space-3); }
.send-clip { display: grid; gap: var(--rt-space-1); justify-items: start; }
.send-clip-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 260px; border-radius: var(--rt-radius-card); overflow: hidden; background: var(--rt-color-brand-field); }
.send-clip-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.send-clip-watch { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; min-height: 44px; border: 0; background: transparent; cursor: pointer; }
.send-clip-watch:focus-visible { outline: 3px solid var(--rt-color-media-text); outline-offset: -6px; }
.send-clip-play { width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, .55); position: relative; }
.send-clip-play::after { content: ""; position: absolute; left: 21px; top: 15px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--rt-color-media-text); }
.send-clip-lost { margin: 0; padding: var(--rt-space-3); color: var(--rt-color-text-on-brand); font-size: .95rem; }
.send-clip-name { font-weight: 700; color: var(--ink); }
.send-clip-status { font-size: var(--rt-text-caption); color: var(--muted); }
.send-clip[data-state="failed"] .send-clip-status { color: var(--ink); font-weight: var(--rt-weight-semibold); }
.send-clip[data-state="failed"] .send-clip-frame { outline: 2px solid var(--rt-color-status-error); outline-offset: -2px; }
.send-clip-retry, .send-clip-remove { min-height: 44px; }
.send-clip-retake { min-height: 44px; }
.sending-as { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rt-space-2); margin: 0 0 var(--rt-space-3); }
.sending-as p { margin: 0; font-weight: 650; color: var(--ink); }
.welcome-not-me { min-height: 44px; }
.success-number { margin: 0 0 var(--rt-space-3); font-weight: 700; color: var(--ink); }
.withdraw-link { margin-top: var(--rt-space-4); }
/* #232: on the redesigned flow, removal is a quiet text link, not an equal choice. The older page keeps its outlined button. */
.flow-on .withdraw-link { width: auto; min-height: 44px; padding: var(--rt-space-2) 0; border: 0; background: none; font: inherit; color: var(--rt-color-text-accent); text-decoration: underline; text-underline-offset: 3px; }
.flow-on .withdraw-link:hover:not(:disabled) { background-image: none; }
.remove-confirm { display: grid; justify-items: start; gap: var(--rt-space-2); padding: var(--rt-space-3) 0; width: 100%; }
.remove-confirm p { margin: 0; color: var(--ink); }
.another { display: grid; justify-items: start; gap: var(--rt-space-2); margin-top: var(--rt-space-4); max-width: 44ch; }
.another .help { margin: 0; }
.not-you, .closed { display: grid; justify-items: start; gap: var(--rt-space-2); }
@media (forced-colors: active) { .send-clip-play { border: 2px solid ButtonText; forced-color-adjust: none; } }

/* ---------- #251: the filmstrip hub (contributorHub) ---------- */
.hub-on .welcome-face, .hub-on .welcome-facts, .hub-on #welcome-occasion { display: none !important; }
.hub-on .welcome h1 { max-width: 18ch; font-size: clamp(1.9rem, 7vw, 2.8rem); margin: 2px 0 6px; }
.hub-eyebrow { margin: 0; color: var(--muted); font-size: var(--rt-text-small); font-weight: var(--rt-weight-semibold); }
.hub-strip { list-style: none; margin: var(--rt-space-5) 0 var(--rt-space-2); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rt-space-3); width: 100%; max-width: 360px; }
.hub-slot { display: grid; justify-items: center; gap: var(--rt-space-2); }
/* Tiles stay white in both appearances, like the brand field: the art is drawn for a light ground. */
.hub-tile { position: relative; width: 100%; aspect-ratio: 7 / 10; display: grid; place-items: center; padding: 0; cursor: pointer; overflow: hidden;
  background: var(--rt-white); color: var(--rt-navy); border: 1.5px dashed var(--control); border-radius: var(--rt-radius-control);
  transition: border-color var(--rt-duration-quick) var(--rt-ease-standard), transform var(--rt-duration-quick) var(--rt-ease-standard); }
.hub-tile:active { transform: scale(.97); }
.hub-tile:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.hub-tile:disabled { cursor: default; }
.hub-slot.next .hub-tile { border: 2.5px solid var(--rt-color-coral); }
.hub-slot[data-state="done"] .hub-tile { border: 1.5px solid var(--line); }
.hub-slot[data-state="failed"] .hub-tile { border: 2px solid var(--rt-color-status-error); }
.hub-label { font-weight: var(--rt-weight-semibold); text-align: center; line-height: 1.25; color: var(--ink); }
.hub-label small { display: block; font-size: var(--rt-text-caption); font-weight: var(--rt-weight-regular); color: var(--muted); }
.hub-meta:empty { display: none; }
.hub-meta { position: absolute; bottom: var(--rt-space-2); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px var(--rt-space-2); border-radius: var(--rt-radius-pill); background: var(--rt-white); text-align: center; font-size: var(--rt-text-micro); font-weight: var(--rt-weight-semibold); color: var(--rt-slate); font-variant-numeric: tabular-nums; }
.hub-slot.next .hub-meta { color: var(--rt-navy); }
.hub-slot[data-state="done"] .hub-meta { color: var(--rt-teal); }
.hub-ring { position: absolute; inset: 0; display: none; place-items: center; }
.hub-slot[data-state="uploading"] .hub-ring { display: grid; }
.hub-ring svg { width: 40%; height: auto; }
.hub-ring-track, .hub-ring-fill { fill: none; stroke-width: 4; }
.hub-ring-track { stroke: var(--rt-hairline); }
.hub-ring-fill { stroke: var(--rt-navy); stroke-linecap: round; transition: stroke-dashoffset var(--rt-duration-reveal) var(--rt-ease-standard); }
.hub-handling { display: none; }
.hub-on .hub-handling { display: block; margin: var(--rt-space-4) 0 var(--rt-space-5); color: var(--muted); font-size: var(--rt-text-caption); max-width: 44ch; } /* below the primary action, so a small phone never loses the button */
.hub-privacy { margin: var(--rt-space-3) 0 var(--rt-space-5); color: var(--muted); max-width: 44ch; }
.hub-problem { width: 100%; max-width: 420px; }
.hub-secondary { margin-top: var(--rt-space-2); }

/* The slot art: a waiting look, a done look, and a one-time change between them (.celebrate). */
.slot-art { width: 62%; height: auto; overflow: visible; }
.slot-art-spark { width: 58%; }
.hub-slot:not([data-state="done"]) .slot-art { opacity: .55; }
.hub-slot.next .slot-art, .hub-slot[data-state="uploading"] .slot-art { opacity: 1; }
.hub-slot[data-state="uploading"] .slot-art { opacity: .3; }
.art-body { fill: var(--rt-white); transition: fill .5s ease; }
.art-char { fill: var(--rt-coral); opacity: 0; transform-box: fill-box; transform-origin: center; }
.art-empty { fill: var(--rt-white); }
.art-pour { fill: var(--rt-gold); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.art-glint { fill: var(--rt-gold); }
.art-rim { fill: var(--rt-sky); }
.art-splash { fill: var(--rt-coral); opacity: 0; }
.art-bubble { fill: var(--rt-white); stroke: var(--rt-navy); stroke-width: 9; opacity: 0; }
.art-outline { fill: none; stroke: var(--rt-navy); stroke-width: 9; stroke-dasharray: 16 10; stroke-linecap: round; }
.art-spark { fill: var(--rt-coral); transform-box: fill-box; transform-origin: center; transform: scale(0); }
.hub-slot[data-state="done"] .art-body { fill: var(--rt-cream); }
.hub-slot[data-state="done"] .art-char { opacity: 1; }
.hub-slot[data-state="done"] .art-pour { transform: scaleY(1); }
.hub-slot[data-state="done"] .art-rim { fill: var(--rt-cream); }
.hub-slot[data-state="done"] .art-splash { opacity: 1; }
.hub-slot[data-state="done"] .art-outline { opacity: 0; }
.hub-slot[data-state="done"] .art-spark { transform: scale(1); }
.hub-slot.celebrate .art-char { animation: art-toast .8s ease-out; }
.hub-slot.celebrate .art-pour { animation: art-pour .9s cubic-bezier(.2, 0, 0, 1); }
.hub-slot.celebrate .art-splash { animation: art-fade .9s ease-out; }
.hub-slot.celebrate .art-bubble { animation: art-rise 1.4s ease-out .4s 3 both; }
.hub-slot.celebrate .art-bubble:nth-of-type(2) { animation-delay: .7s; }
.hub-slot.celebrate .art-bubble:nth-of-type(3) { animation-delay: 1s; }
.hub-slot.celebrate .art-spark { animation: art-pop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes art-toast { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: .75; } 60% { opacity: .35; } 100% { opacity: 1; transform: scale(1); } }
@keyframes art-pour { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes art-fade { 0%, 60% { opacity: 0; } 100% { opacity: 1; } }
@keyframes art-rise { 0% { opacity: 0; transform: translateY(40px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-160px); } }
@keyframes art-pop { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hub-slot.celebrate * { animation: none !important; } .art-body, .hub-ring-fill, .hub-tile { transition: none; } }

/* The Spark deck on the record screen. Inset from the screen edges so it never fights the browser's back swipe. */
.record-deck { grid-row: 2; align-self: start; position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--rt-space-2); padding: 0 var(--rt-space-4); width: 100%; }
.record-mood { margin: 0; display: flex; align-items: center; gap: var(--rt-space-2); font: var(--rt-weight-display) var(--rt-text-control)/1.2 var(--display); }
.record-mood::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rt-color-coral); }
.record-step[data-part="toast"] .record-mood::before { background: var(--rt-gold); }
.record-step[data-part="finale"] .record-mood::before, .record-step[data-part="story"] .record-mood::before { background: var(--rt-white); }
.deck-rail { display: flex; gap: var(--rt-space-3); width: 100%; max-width: 480px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: var(--rt-space-1) var(--rt-space-5); overscroll-behavior-x: contain; }
.deck-rail::-webkit-scrollbar { display: none; }
.deck-rail.locked { overflow-x: hidden; touch-action: none; }
.deck-card { flex: 0 0 calc(100% - var(--rt-space-8)); scroll-snap-align: center; margin: 0; padding: var(--rt-space-4); border-radius: var(--rt-radius-lg); background: var(--rt-scrim-media); color: var(--rt-color-media-text); text-align: left;
  transition: transform var(--rt-duration-reveal) var(--rt-ease-standard), opacity var(--rt-duration-reveal) var(--rt-ease-standard); }
.deck-card[aria-hidden="true"] { transform: rotate(2.5deg) scale(.96); opacity: .7; }
.deck-rail.single .deck-card { flex-basis: 100%; }
.deck-eyebrow { margin: 0 0 var(--rt-space-1); font-size: var(--rt-text-eyebrow); font-weight: var(--rt-weight-heavy); letter-spacing: .08em; text-transform: uppercase; color: var(--rt-color-accent-on-brand); }
.deck-text { margin: 0; font: var(--rt-weight-medium) var(--rt-text-subtitle)/1.35 var(--display); }
.deck-nav { display: flex; align-items: center; gap: var(--rt-space-3); }
.deck-nav[hidden] { display: none; }
.deck-arrow { min-width: 44px; min-height: 44px; }
.deck-pos { margin: 0; min-width: 4.5em; text-align: center; font-size: var(--rt-text-caption); font-variant-numeric: tabular-nums; }
.deck-hint { margin: 0; font-size: var(--rt-text-caption); }
.deck-read { margin: 0; max-width: 34ch; text-align: center; font-size: var(--rt-text-caption); font-weight: var(--rt-weight-semibold); }
.record-reassure { margin: 0; font-size: var(--rt-text-caption); }
/* #242: the Spark is read while talking, so it stays near the lens. Tighter top gap and card padding keep a long Spark
   inside the upper third on a 393 x 852 phone; the lines around the card get their own dark backing so they stay
   legible over a bright camera frame. */
.hub-on .camera-top { padding-bottom: var(--rt-space-2); }
.hub-on .deck-card { padding: var(--rt-space-3) var(--rt-space-4); }
.hub-on .deck-rail { padding-block: calc(var(--rt-space-1) / 2); }
.hub-on .deck-text { line-height: 1.3; }
.record-mood, .deck-nav, .deck-hint, .deck-read { background: var(--rt-scrim-media); border-radius: var(--rt-radius-pill); padding: calc(var(--rt-space-1) / 2) var(--rt-space-3); }
.deck-nav { padding: var(--rt-space-1); }
.record-step.native .record-mood, .record-step.native .deck-nav, .record-step.native .deck-hint, .record-step.native .deck-read { background: none; padding: 0; }
.record-step.native .record-deck { padding: 0 0 var(--rt-space-4); justify-items: start; }
.record-step.native .deck-card { background: var(--brand-field); color: var(--on-brand); }
.record-step.native .record-mood, .record-step.native .deck-read, .record-step.native .deck-pos, .record-step.native .deck-hint, .record-step.native .record-reassure { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .deck-card { transition: none; } .deck-card[aria-hidden="true"] { transform: none; } }

/* Device pass A4: keep the face clear. The mood line is for screen readers only on the camera screen (its words are in the
   Spark card's label and the screen title); the arrows flank the record button instead of forming a pill across the chin;
   the "Aim for about 20 seconds" and privacy lines are one small paragraph. */
.record-step:not(.native) .record-mood { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; background: none; }
.record-notes { margin: 0; max-width: 34ch; font-size: var(--rt-text-caption); line-height: 1.35; color: var(--rt-color-media-text); background: var(--rt-scrim-media); border-radius: var(--rt-radius-lg); padding: calc(var(--rt-space-1) / 2) var(--rt-space-3); }
.record-notes:not(:has(:not([hidden]))) { display: none; }
.record-notes .record-hint, .record-notes .record-reassure { min-height: 0; font-size: inherit; color: inherit; }
/* Fast taps on the arrows were read as a double-tap zoom, and the zoomed page then scrolled sideways. */
.record-step button, .record-step .deck-rail { touch-action: manipulation; }
.record-step { overflow-x: clip; }
.record-row { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; align-items: center; justify-items: center; width: 100%; max-width: 320px; row-gap: var(--rt-space-1); }
.record-row .deck-nav { display: contents; background: none; padding: 0; }
.record-row .deck-nav[hidden] { display: none; }
.record-row #deck-prev { grid-column: 1; grid-row: 1; justify-self: end; }
.record-row .record-ring-wrap { grid-column: 2; grid-row: 1; }
.record-row #deck-next { grid-column: 3; grid-row: 1; justify-self: start; }
.record-row .deck-pos { grid-column: 1 / -1; grid-row: 2; min-width: 0; background: var(--rt-scrim-media); border-radius: var(--rt-radius-pill); padding: 0 var(--rt-space-3); }
.record-row .deck-pos:empty { display: none; }
.record-step.native .record-notes, .record-step.native .record-row .deck-pos { background: none; padding: 0; color: var(--ink); }
.record-step.native .record-row { max-width: none; }
/* #242: at large text (or Safari's page zoom) a long Spark grew the card past the screen and pushed Record below the
   bottom edge of a screen that cannot scroll. The record button is the one thing that must always be reachable, so:
   the Spark row may shrink and a long Spark scrolls inside its card; the controls may scroll when they do not fit;
   and the record row is pinned to the bottom of that scroll so Record and the arrows stay on screen. At normal
   sizes nothing overflows and the layout is unchanged. */
.record-step:not(.native) { grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
.record-step:not(.native) .record-deck { align-self: stretch; min-height: 0; display: flex; flex-direction: column; align-items: center; }
.record-step:not(.native) .deck-rail { flex: 0 1 auto; min-height: 0; align-items: flex-start; }
.record-step:not(.native) .deck-card { max-height: 100%; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; }
.record-step:not(.native) .camera-bottom { min-height: 0; max-height: 72dvh; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none;
  /* The arrows and the record ring need 184px; on the narrowest layouts the side padding gives way first. */
  padding-inline: clamp(var(--rt-space-1), (100vw - 184px) / 2, var(--rt-space-4)); }
.record-step:not(.native) .camera-bottom::-webkit-scrollbar { display: none; }
.record-step:not(.native) .record-row { position: sticky; bottom: 0; z-index: 1; }

/* Review in place: the take plays full screen, with Use this and Retake. */
body.review-screen { overflow: hidden; }
body.review-screen .site-header, body.review-screen footer { visibility: hidden; }
.review-screen #review-step { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; gap: var(--rt-space-2); height: 100vh; height: 100dvh;
  padding: max(var(--rt-space-3), env(safe-area-inset-top)) var(--rt-space-4) max(var(--rt-space-5), env(safe-area-inset-bottom));
  background: var(--rt-color-media-canvas); color: var(--rt-color-media-text); }
.review-screen #review-step .step-title { width: 100%; max-width: none; margin: 0; font-size: var(--rt-text-subtitle); text-align: center; color: var(--rt-color-media-text); }
.review-screen #review-spark { width: 100%; margin: 0; text-align: center; color: var(--rt-color-media-text); }
/* The video fills the space the screen leaves it and no more. Sized by its own 9:16 ratio it ran about 640px tall and spilled
   over the privacy line and the buttons below it (device pass A5), so it is pinned inside the wrap instead. */
.review-screen #review-wrap { flex: 1; min-height: 0; margin: 0; position: relative; display: block; overflow: hidden; }
.review-screen #review-video { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; border-radius: var(--rt-radius-lg); }
.review-screen .review-upload, .review-screen #review-toss-text { color: var(--rt-color-media-text); margin: 0; text-align: center; }
.review-screen .review-upload .text-button { color: var(--rt-color-media-text); }
.review-screen #review-step > .flow-actions { position: static; padding: 0; background: none; margin: 0; }
.review-top { display: flex; }
.review-top[hidden] { display: none; }
.review-toss { display: grid; gap: var(--rt-space-2); padding: var(--rt-space-4); border-radius: var(--rt-radius-control); background: var(--rt-scrim-strong); }
.review-toss[hidden] { display: none; }
@media (forced-colors: active) { .hub-tile { border: 2px solid ButtonText; } .deck-card { border: 1px solid CanvasText; } }
