/* Unmodified private App fonts restored from the completed rounded-r1 source. */
@font-face {
  font-family: "Kanjian MiSans";
  src: url("/assets/design-study/MiSans-Regular.otf?v=8e9caa6f34f27c6baad1ecf0058cc13e1801efff698bc23e6e0b095d9a9ed9cb") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kanjian Noto";
  src: url("/assets/design-study/NotoSansSC-VF.ttf?v=a3041811a78c361b1de50f953c805e0244951c21c5bd412f7232ef0d899af0da") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #fff;
  --surface: #fff;
  --surface-inset: #f1efe9;
  --control-line: #858c99;
  --ink: #18212b;
  --muted: #52606d;
  --line: #deddd9;
  --accent: #244fe0;
  --accent-soft: #eaf0fd;
  --error: #b53b35;
  --radius-photo: 24px;
  --radius-control: 14px;
  --radius-panel: 24px;
  --radius-inset: 8px;
  --radius-rail: 20px;
  --shadow-photo: 0 1px 2px rgb(24 33 43 / 6%), 0 12px 28px -8px rgb(24 33 43 / 12%);
  --shadow-control: inset 0 1px 0 rgb(255 255 255 / 18%), 0 2px 4px rgb(20 45 125 / 10%), 0 8px 18px rgb(20 45 125 / 12%);
  --shadow-surface: 0 1px 3px rgb(24 33 43 / 4%), 0 8px 24px rgb(24 33 43 / 5%);
  --shadow-dialog: 0 4px 12px rgb(24 33 43 / 8%), 0 24px 72px rgb(24 33 43 / 18%);
  --display: "Microsoft YaHei", sans-serif;
  --body: "Microsoft YaHei", sans-serif;
  --utility: "Microsoft YaHei", sans-serif;
  --secondary: #52606d;
  --cobalt: #244fe0;
  --page-gutter: clamp(32px, 6.67vw, 120px);
  --photo-left: 34%;
  --headline-size: clamp(68px, 7.5vw, 120px);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a, label { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; opacity: .55; }
a[aria-disabled="true"] { pointer-events: none; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.35; letter-spacing: .01em; }
h2 { font-size: 30px; line-height: 1.4; letter-spacing: .01em; }
h3 { font-size: 20px; line-height: 1.5; }
.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-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 20px; border-radius: 999px; background: var(--accent); color: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 88px; max-width: 1440px; padding: 0 48px; margin: auto; display: flex; align-items: center; gap: 38px; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-cn { font-family: var(--body); font-size: 28px; font-weight: 500; letter-spacing: .06em; line-height: 1; }
.brand-en { font-family: var(--utility); font-size: 10px; color: var(--muted); letter-spacing: .12em; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: var(--radius-rail); background: var(--surface-inset); }
.main-nav a { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 9px 19px; border-radius: var(--radius-control); font-size: 13px; color: var(--muted); transition: color 160ms, background 160ms, box-shadow 160ms; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgb(24 33 43 / 9%); }
.header-note { color: var(--muted); font-size: 11px; }
main { max-width: 1440px; margin: auto; padding: 34px 48px 76px; outline: none; }
.view { animation: appear 260ms ease-out; }
.eyebrow, .section-kicker { font-size: 12px; font-weight: 600; color: var(--muted); }
.eyebrow { margin-bottom: 18px; }
.view-heading { position: relative; }
.heading-note { color: var(--muted); font-size: 15px; line-height: 1.85; }
.camera-layout { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; column-gap: clamp(38px, 6vw, 84px); row-gap: 28px; align-items: start; }
.camera-heading { grid-column: 1; grid-row: 1; z-index: 1; padding-top: clamp(24px, 5vh, 60px); }
.camera-heading .eyebrow { color: var(--muted); }
.camera-heading h1 { font-size: clamp(48px, 5vw, 68px); line-height: 1.32; letter-spacing: .025em; }
.camera-heading h1 > span { color: var(--ink); }
.camera-heading .heading-note { margin-top: 22px; max-width: 32ch; }
.camera-figure { grid-column: 2; grid-row: 1 / 3; }
.photo-object { min-width: 0; }
.photo-stage { position: relative; border: 1px solid rgb(255 255 255 / 90%); background: var(--surface); border-radius: var(--radius-photo); box-shadow: var(--shadow-photo); overflow: hidden; }
.photo-stage img, .photo-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.sample-stage { height: clamp(460px, calc(100svh - 210px), 660px); padding: 8px; background: var(--surface); }
.sample-stage img, .sample-stage video { border-radius: calc(var(--radius-photo) - 9px); }
.sample-stage img { object-fit: cover; object-position: center 48%; }
.sample-stage.is-live video { object-fit: cover; }
.camera-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 11px 0 0; font-size: 11px; color: var(--muted); }
.camera-caption #camera-caption { display: none; }
#camera-stage.is-live + .camera-caption #camera-caption { display: inline; }
#camera-stage.is-live + .camera-caption .sample-source { display: none; }
.sample-source { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); }
.sample-source:hover { color: var(--accent); }
.stage-stop { position: absolute; z-index: 2; right: 18px; top: 18px; border: 1px solid var(--line); border-radius: var(--radius-control); box-shadow: var(--shadow-surface); background: var(--canvas); color: var(--ink); min-height: 44px; padding: 8px 16px; font-size: 12px; }
.action-column { min-width: 0; }
.camera-actions { grid-column: 1; grid-row: 2; z-index: 1; width: min(100%, 430px); }
.camera-main-actions { display: grid; grid-template-columns: 1fr 1.08fr; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-rail); background: var(--surface); box-shadow: var(--shadow-surface); }
.button { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 14px 24px; border: 1px solid transparent; border-radius: var(--radius-control); font-size: 14px; font-weight: 500; line-height: 1.45; transition: background 160ms, border-color 160ms, transform 160ms, box-shadow 160ms; }
.button-primary { background: var(--accent); color: var(--surface); box-shadow: var(--shadow-control); }
.button-primary:hover:not(:disabled) { background: #1647bc; transform: translateY(-1px); }
.button-primary:active:not(:disabled) { transform: translateY(0); }
.button-secondary { background: var(--surface); border-color: var(--control-line); color: var(--ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 85%), 0 2px 3px rgb(24 33 43 / 3%); }
.button-secondary:hover:not(:disabled) { background: var(--canvas); border-color: var(--muted); }
.button-danger { background: var(--error); box-shadow: 0 2px 4px rgb(110 28 24 / 10%); }
.button-danger:hover:not(:disabled) { background: #962e29; }
.button > span[aria-hidden] { font-size: 19px; line-height: 1; }
.camera-main-actions .button { padding-inline: 16px; white-space: nowrap; }
.text-button { min-height: 44px; display: inline-flex; align-items: center; border: 0; border-radius: var(--radius-inset); background: none; color: var(--ink); padding: 7px 0; text-align: left; font-size: 13px; line-height: 1.65; }
.text-button:hover:not(:disabled) { color: var(--accent); }
.text-button > span { display: inline-block; margin-left: 7px; }
.sample-choice { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 23px; }
.sample-choice > span { color: var(--muted); font-size: 11px; }
.small-print { color: var(--muted); font-size: 11px; line-height: 1.85; }
.camera-footnote { margin-top: 16px; max-width: 410px; }
.inline-message { font-size: 13px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.inline-message:not(:empty) { margin-top: 16px; margin-bottom: 16px; }
.inline-message[data-tone="error"] { color: var(--error); padding: 12px 14px; border-left: 3px solid var(--error); border-radius: 0 var(--radius-inset) var(--radius-inset) 0; background: var(--surface); }
.stage-message { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 26px; background: rgba(247, 245, 240, .94); color: var(--ink); font-size: 13px; }
.spinner { display: inline-block; height: 18px; width: 18px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 750ms linear infinite; }
.photo-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, .95fr); gap: 44px; align-items: start; }
.selection-layout > .photo-object { position: sticky; top: 24px; }
.selection-actions { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--shadow-surface); }
.page-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 28px; font-size: 12px; color: var(--muted); }
.back-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); padding: 7px 0; border-radius: var(--radius-inset); }
.back-link:hover { color: var(--accent); }
.selection-stage, .source-stage { aspect-ratio: 1.05; max-height: 680px; }
.selection-stage img, .source-stage img { padding: 20px; object-fit: contain; filter: none; }
.preview-caption { padding-top: 14px; font-size: 12px; font-weight: 500; color: var(--ink); }
.signature-strip { min-width: 0; min-height: 58px; display: flex; gap: 17px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.signature-name { font-family: var(--body); color: var(--ink); font-size: 20px; font-weight: 500; line-height: 1; letter-spacing: .06em; }
.signature-rule { flex: 1; }
.signature-strip > span { min-width: 0; overflow-wrap: anywhere; }
.signature-end { font-family: var(--utility); font-size: 11px; color: var(--ink); overflow-wrap: anywhere; }
.action-column .section-kicker { margin-bottom: 16px; color: var(--muted); }
.body-note { color: var(--muted); line-height: 1.9; margin-bottom: 22px; font-size: 14px; }
.selection-actions h1 { font-size: clamp(30px, 2.8vw, 40px); margin-bottom: 12px; }
.recipe-options { min-width: 0; padding: 0; margin: 0 0 18px; border: 0; display: grid; gap: 10px; }
.recipe-option { position: relative; min-height: 72px; display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid var(--line); background: var(--canvas); border-radius: var(--radius-control); cursor: pointer; transition: border-color 160ms, background 160ms, box-shadow 160ms; }
.recipe-option:hover:not(:has(input:disabled, input:checked)) { border-color: var(--muted); box-shadow: var(--shadow-surface); }
.recipe-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.recipe-option:has(input:disabled) { cursor: default; opacity: .65; }
.recipe-option input { position: absolute; right: 18px; opacity: 0; }
.recipe-option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.recipe-swatch { height: 40px; width: 36px; flex-shrink: 0; border-radius: var(--radius-inset); background: linear-gradient(140deg, #aab3bc 0%, #e8edf1 52%, #bbc5ce 100%); }
.swatch-daylight { background: linear-gradient(140deg, #c0b6a8 0%, #f0e5d1 52%, #d5c8ad 100%); }
.swatch-negative { background: linear-gradient(140deg, #b2b5ac 0%, #eee9e1 52%, #c3bbb2 100%); }
.swatch-monochrome { background: #777b80; }
.recipe-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.recipe-copy strong { font-size: 14px; font-weight: 600; }
.recipe-copy > span { font-size: 12px; color: var(--muted); }
.recipe-check { margin-left: auto; width: 16px; height: 16px; border: 1px solid var(--muted); border-radius: 50%; flex-shrink: 0; }
.recipe-option:has(input:checked) .recipe-check { border: 5px solid var(--accent); }
.detail-toggle { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 18px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); cursor: pointer; transition: border-color 160ms, background 160ms, box-shadow 160ms; }
.detail-toggle:hover:not(:has(input:disabled, input:checked)) { border-color: var(--muted); box-shadow: var(--shadow-surface); }
.detail-toggle:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.detail-toggle:has(input:disabled) { cursor: default; opacity: .55; }
.detail-toggle:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.detail-toggle input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--accent); cursor: inherit; }
.detail-toggle > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.detail-toggle strong { font-size: 14px; font-weight: 600; }
.detail-note { font-size: 11px; color: var(--muted); }
.selection-options .detail-toggle + .small-print { margin-top: 0; margin-bottom: 20px; }
.selection-primary .button, .selection-actions > .button { width: 100%; }
.selection-actions > .button { margin-top: 10px; }
.save-preview { display: block; margin: 15px auto 0; width: fit-content; color: var(--muted); }
.selection-actions .small-print { margin-top: 22px; }
/* Presentation follows the existing collect button state; no lifecycle logic changes. */
.selection-layout:has(#collect-work:not([hidden])) .selection-options { display: none; }
.selection-layout:has(#collect-work:not([hidden])) .selection-actions { align-self: start; }
.selection-layout:has(#collect-work:not([hidden])) .selection-primary { padding-top: 18px; border-top: 1px solid var(--line); }
.selection-layout:has(#collect-work:not([hidden])) .preview-caption { color: var(--accent); }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; }
.collection-heading .eyebrow { color: var(--muted); margin-bottom: 16px; }
.collection-new { min-height: 46px; padding: 12px 22px; }
.count-note { font-variant-numeric: tabular-nums; font-family: var(--utility); font-size: 18px; font-weight: 400; color: var(--muted); margin-left: 22px; letter-spacing: 0; }
.collection-note { font-size: 13px; color: var(--muted); margin: 16px 0 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
.work-card { min-width: 0; }

.work-photo-link { display: block; border-radius: var(--radius-photo); }
.work-photo { aspect-ratio: 1.15; background: var(--surface); border-radius: var(--radius-photo); box-shadow: var(--shadow-photo); overflow: hidden; transition: box-shadow 180ms; }
.work-photo img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.work-photo-link:hover .work-photo, .work-photo-link:focus-visible .work-photo { box-shadow: 0 0 0 2px var(--accent), var(--shadow-photo); }
.work-card .signature-strip { min-height: 36px; padding: 10px 2px 0; gap: 12px; border: 0; }
.work-card .signature-strip > span:nth-child(2) { display: none; }
.work-card .signature-name { display: none; }
.work-card .signature-end { font-size: 10px; color: var(--muted); }
.work-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 5px 16px; margin-top: 8px; }
.work-name { font-size: 21px; overflow-wrap: anywhere; }
.work-date { font-size: 11px; color: var(--muted); }
.work-tools { padding-bottom: 10px; margin-top: 14px; border-top: 1px solid var(--line); }
.download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.download-row a { min-height: 44px; display: inline-flex; align-items: center; padding: 7px 0; border-radius: var(--radius-inset); font-size: 12px; }
.download-row a:hover { color: var(--accent); }
.work-secondary-tools { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.work-secondary-tools .text-button { color: var(--muted); font-size: 12px; }
.work-secondary-tools .text-button:hover { color: var(--accent); }
.work-secondary-tools [data-work-action="remove"]:hover, .remove-source:hover { color: var(--error); }
.empty-state { text-align: center; padding: 65px 20px 40px; }
.empty-state h1 { font-size: 42px; }
.empty-state h2 { font-size: 30px; }
.empty-state p:not(.eyebrow) { margin: 20px 0 28px; color: var(--muted); font-size: 14px; }
.empty-state .button { width: fit-content; min-width: 190px; margin: 0 auto; }
.empty-frame { width: 128px; height: 144px; border: 1px solid var(--line); border-radius: var(--radius-control); box-shadow: var(--shadow-surface); margin: 0 auto 30px; display: flex; align-items: flex-end; padding: 16px; background: var(--surface); }
.empty-frame span { border-top: 1px solid var(--line); padding-top: 9px; width: 100%; font-family: var(--display); font-size: 20px; text-align: left; }
.source-record h1 { font-size: clamp(34px, 3vw, 44px); line-height: 1.4; margin-bottom: 24px; }
.record-details { margin: 0 0 22px; padding: 4px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); font-size: 13px; }
.record-details div { display: grid; grid-template-columns: 78px 1fr; gap: 15px; margin-top: 12px; }
.record-details dt { color: var(--muted); }
.record-details dd { margin: 0; overflow-wrap: anywhere; }
.mono { font-family: var(--utility); }
.source-boundary { font-size: 12px; color: var(--muted); line-height: 1.9; margin-bottom: 22px; }
.source-record .download-row { border-top: 1px solid var(--line); padding: 13px 0 18px; }
.source-record > .button { width: 100%; margin-bottom: 13px; min-height: 48px; font-size: 13px; }
.remove-source { margin-top: 12px; color: var(--muted); }
.verification-panel { margin-top: 48px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-surface); background: var(--surface); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; }
.verification-intro .section-kicker { color: var(--muted); margin-bottom: 16px; }
.verification-intro h2 { margin-bottom: 18px; }
.verification-intro > p:last-child { font-size: 13px; line-height: 2; color: var(--muted); }
.verification-action form { display: flex; flex-direction: column; gap: 12px; }
.file-picker { min-width: 0; position: relative; display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 54px; padding: 13px 21px; border: 1px solid var(--control-line); border-radius: var(--radius-control); background: var(--canvas); font-size: 13px; cursor: pointer; }
.file-picker > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-picker > span:last-of-type { font-size: 20px; }
.file-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-picker:hover:not(:has(input:disabled)) { border-color: var(--muted); }
.file-picker:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.file-picker:has(input:disabled) { opacity: .55; cursor: default; }
.verification-result { padding: 24px 0; margin-top: 17px; border-top: 1px solid var(--line); }
.result-caption { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.verification-result h3 { font-size: 20px; margin-bottom: 12px; }
.verification-result > p:last-child { font-size: 12px; color: var(--muted); line-height: 1.9; }
.verification-result[data-result="exact_file_match"] h3, .verification-result[data-result="compressed_image_match"] h3 { color: var(--accent); }
.verification-result[data-result="edit_detected"] h3, .verification-result[data-result="record_mismatch"] h3 { color: var(--error); }
.site-footer { max-width: 1440px; margin: auto; padding: 27px 48px 32px; border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 11px; }
.site-footer > span { color: var(--ink); font-weight: 600; }
.site-footer p { margin-left: auto; }
.site-footer .text-button { font-size: 11px; color: var(--accent); }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); max-width: min(90vw, 520px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--ink); padding: 15px 24px; font-size: 13px; text-align: center; z-index: 25; box-shadow: var(--shadow-surface); overflow-wrap: anywhere; }
.remove-dialog { width: min(490px, calc(100% - 40px)); padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--shadow-dialog); color: var(--ink); background: var(--surface); }
.remove-dialog::backdrop { background: rgba(32, 35, 40, .35); }
.remove-dialog .section-kicker { margin-bottom: 16px; color: var(--error); }
.remove-dialog h2 { margin-bottom: 20px; font-size: 29px; }
.remove-dialog p:not(.section-kicker) { font-size: 13px; color: var(--muted); line-height: 1.9; }
.remove-dialog .mono { padding-top: 16px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.dialog-actions .button { font-size: 13px; padding: 12px; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1600px) {
  main { padding-top: 54px; }
  .camera-heading { padding-top: 65px; }
}
@media (max-width: 1100px) {
  .site-header { padding-inline: 34px; gap: 25px; }
  main { padding: 28px 34px 65px; }
  .camera-layout { column-gap: 38px; row-gap: 27px; }
  .camera-heading h1 { font-size: 52px; }
  .camera-heading .heading-note { font-size: 14px; }
  .camera-main-actions { gap: 8px; }
  .camera-main-actions .button { gap: 8px; padding-inline: 12px; font-size: 13px; }
  .photo-layout { gap: 28px; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); }
  .selection-actions { padding: 22px; }
  .works-grid { gap: 40px; }
  .verification-panel { gap: 35px; padding: 28px; }
  .site-footer { padding-inline: 34px; }
}
@media (max-width: 760px) {
  :root { --radius-photo: 20px; }
  .site-header { min-height: 78px; padding: 0 22px; gap: 12px; }
  .brand { gap: 9px; }
  .brand-cn { font-size: 28px; }
  .brand-en { font-size: 8px; }
  .main-nav { gap: 0; padding: 3px; }
  .main-nav a { padding: 8px 11px; font-size: 12px; }
  .header-note { display: none; }
  main { padding: 24px 22px 48px; }
  h1 { font-size: 38px; }
  .camera-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; row-gap: 20px; }
  .camera-heading { grid-column: 1; grid-row: 1; padding-top: 0; }
  .camera-heading .eyebrow { margin-bottom: 14px; font-size: 11px; }
  .camera-heading h1 { font-size: clamp(34px, 9vw, 48px); }
  .camera-heading .heading-note { margin-top: 16px; font-size: 12px; }
  .desktop-break { display: none; }
  .camera-figure { grid-column: 1; grid-row: 2; margin-left: 0; }
  .sample-stage { height: clamp(210px, 31svh, 330px); }
  .sample-stage img { object-position: center 40%; }
  .camera-caption { padding: 8px 0 0; font-size: 11px; gap: 5px 16px; }
  .camera-actions { grid-column: 1; grid-row: 3; width: 100%; }
  .camera-main-actions { gap: 8px; padding: 5px; }
  .camera-main-actions .button { min-height: 51px; gap: 9px; padding: 13px 14px; font-size: 13px; }
  .sample-choice { margin-top: 11px; gap: 7px 16px; justify-content: space-between; }
  .sample-choice .text-button { font-size: 12px; }
  .sample-choice > span { font-size: 11px; }
  .camera-footnote { margin-top: 10px; font-size: 11px; }
  .button { min-height: 52px; font-size: 14px; }
  .photo-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .selection-layout > .photo-object { position: static; }
  .selection-actions { padding: 22px 18px; }
  .page-topline { margin-bottom: 22px; font-size: 11px; }
  .selection-stage, .source-stage { aspect-ratio: 1.05; max-height: 680px; }
  .selection-stage img, .source-stage img { padding: 13px; }
  .signature-strip { min-height: 51px; padding: 14px 0; gap: 12px; }
  .signature-name { font-size: 19px; }
  .signature-end { font-size: 10px; }
  .selection-actions .section-kicker { margin-bottom: 10px; font-size: 11px; }
  .selection-actions h1 { font-size: 34px; margin-bottom: 12px; }
  .selection-actions .body-note { font-size: 13px; margin-bottom: 24px; }
  .recipe-options { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
  .recipe-option { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 120px; padding: 12px; }
  .recipe-swatch { height: 31px; width: 34px; }
  .recipe-copy > span { font-size: 11px; }
  .detail-toggle { padding: 14px; gap: 12px; }
  .recipe-check { position: absolute; top: 20px; right: 14px; }
  .recipe-option input { top: 20px; right: 14px; }
  .selection-primary { padding-top: 8px; }
  .selection-actions .small-print { margin-top: 20px; }
  .collection-heading { align-items: flex-end; gap: 14px; padding-top: 8px; }
  .collection-heading .eyebrow { margin-bottom: 13px; font-size: 11px; }
  .collection-heading h1 { font-size: 34px; }
  .collection-new { min-height: 44px; font-size: 12px; padding: 11px 14px; flex-shrink: 0; }
  .collection-new > span { font-size: 17px; }
  .count-note { margin-left: 12px; font-size: 14px; }
  .collection-note { font-size: 12px; margin: 19px 0 34px; }
  .works-grid { gap: 38px; grid-template-columns: minmax(0, 1fr); }
  .work-photo { aspect-ratio: 1.06; }
  .work-photo img { padding: 13px; }
  .work-meta { margin-top: 6px; }
  .work-name { font-size: 19px; }
  .work-date { font-size: 11px; }
  .work-secondary-tools { gap: 23px; }
  .work-secondary-tools .text-button { padding-top: 9px; }
  .empty-state { padding: 44px 0; }
  .empty-state h1 { font-size: 33px; }
  .empty-state h2 { font-size: 27px; }
  .empty-state p:not(.eyebrow) { font-size: 13px; }
  .source-layout { gap: 30px; }
  .source-record h1 { font-size: 35px; margin-bottom: 26px; }
  .source-record h1 br { display: none; }
  .source-record .section-kicker { font-size: 11px; margin-bottom: 12px; }
  .record-details div { grid-template-columns: 76px 1fr; }
  .source-record > .button { font-size: 12px; }
  .verification-panel { margin-top: 38px; padding: 24px 20px; grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .verification-intro h2 { font-size: 28px; }
  .verification-intro > p:last-child { font-size: 12px; }
  .verification-result h3 { font-size: 19px; }
  .site-footer { padding: 25px 22px calc(27px + env(safe-area-inset-bottom)); gap: 10px; display: block; }
  .site-footer p { margin-top: 7px; font-size: 10px; }
  .toast { bottom: calc(20px + env(safe-area-inset-bottom)); width: max-content; }
  .remove-dialog { padding: 27px; }
}
@media (max-width: 380px) {
  .site-header { padding-inline: 18px; }
  main { padding: 20px 18px 44px; }
  .brand-en { display: none; }
  .camera-layout { row-gap: 17px; }
  .camera-heading h1 { font-size: 34px; }
  .camera-heading .heading-note { margin-top: 13px; }
  .sample-stage { height: clamp(210px, 29svh, 270px); }
  .camera-main-actions { gap: 8px; }
  .camera-main-actions .button { font-size: 12px; padding-inline: 11px; }
  .sample-choice > span { font-size: 11px; }
  .recipe-options { grid-template-columns: minmax(0, 1fr); }
  .recipe-option { flex-direction: row; align-items: center; min-height: 76px; padding-right: 36px; }
  .recipe-check, .recipe-option input { top: calc(50% - 8px); right: 12px; }
  .collection-heading h1 { font-size: 30px; }
  .count-note { margin-left: 8px; }
  .collection-new { font-size: 11px; padding-inline: 12px; }
  .site-footer { padding-inline: 18px; }
}
@media (max-width: 340px) {
  .site-header { flex-wrap: wrap; padding-block: 14px; gap: 14px; }
  .main-nav { margin-left: auto; }
  .camera-main-actions { grid-template-columns: minmax(0, 1fr); }
  .collection-heading { flex-wrap: wrap; }
  .dialog-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .recipe-option:has(input:checked), .main-nav a[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -2px; }
  .recipe-check { forced-color-adjust: none; border-color: CanvasText; }
  .recipe-option:has(input:checked) .recipe-check { border-color: Highlight; }
  .recipe-option:has(input:focus-visible), .main-nav a:focus-visible { outline: 3px solid CanvasText; outline-offset: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view, .spinner { animation: none; }
  .button, .main-nav a, .recipe-option, .detail-toggle, .work-photo { transition: none; }
  .button-primary:hover:not(:disabled) { transform: none; }
}

/* Restored rounded-r1 photographic entrance. Geometry, type and crop values
   below come from src/web/design-study/styles.css, not revision4's grid hero. */
.site-header { height: 100px; min-height: 100px; max-width: none; padding-inline: var(--page-gutter); justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 5px; font-size: 32px; line-height: 1; letter-spacing: -0.03em; }
.wordmark .brand-cn { font-family: var(--body); font-size: inherit; font-weight: 400; line-height: 1; letter-spacing: inherit; }
.wordmark-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.site-nav { display: flex; align-items: center; gap: 38px; font-size: 15px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.site-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; font-size: inherit; border-radius: 0; }
.site-nav a:hover { color: var(--cobalt); }
.site-nav a[aria-current="page"] { color: var(--cobalt); background: transparent; box-shadow: none; }
.trial-menu { position: relative; flex: none; }
.trial-menu summary { min-height: 40px; padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 13px; line-height: 22px; cursor: pointer; list-style: none; }
.trial-menu summary::-webkit-details-marker { display: none; }
.trial-menu summary::after { content: "⌄"; margin-left: 10px; color: var(--muted); }
.trial-menu summary:focus-visible, .trial-reset:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.trial-menu-panel { position: absolute; z-index: 80; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 48px)); padding: 22px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; box-shadow: 0 12px 36px rgb(24 33 43 / 12%); }
.trial-menu-title { margin: 0 0 12px; font-size: 15px; font-weight: 400; }
.trial-menu-panel { max-height: calc(100dvh - 110px); overflow-y: auto; }
.trial-menu-title strong { margin-left: 10px; font-weight: 500; }
.trial-menu-note { margin: 12px 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.trial-menu-usage { display: flex; justify-content: space-between; gap: 16px; margin: 10px 0; font-size: 13px; }
.trial-reset { width: 100%; min-height: 42px; margin-top: 8px; border: 1px solid #e5e7eb; border-radius: 10px; color: var(--ink); background: #f7f7f7; font-size: 13px; }
.trial-reset:hover:not(:disabled) { background: #efefef; }
@media (min-width: 761px) and (max-width: 1100px) {
  .site-header { gap: 14px; }
  .site-header .site-nav { gap: 16px; font-size: 13px; }
}
@media (max-width: 760px) {
  .trial-menu { order: 2; }
  .site-header .site-nav { order: 3; }
}
main:has(#view-camera:not([hidden])) { max-width: none; padding: 0; }
#view-camera { animation: none; }
.entrance { position: relative; min-height: 700px; height: calc(100svh - 100px); max-height: 960px; isolation: isolate; container-type: inline-size; }
.hero-photo { position: absolute; inset: 0 0 40px var(--photo-left); margin: 0; overflow: hidden; }
/* Keep the camera frame anchored when a browser injects inline positioning. */
#view-camera .hero-photo { position: absolute !important; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-photo figcaption { position: absolute; bottom: 20px; right: 26px; font-size: 11px; color: #fff; }
.hero-copy { position: relative; z-index: 1; pointer-events: none; margin-left: var(--page-gutter); padding-top: clamp(100px, 15.8vh, 170px); width: calc(100% - var(--page-gutter)); }
.hero-copy h1, .photo-type > div { margin: 0; font-weight: 400; font-size: var(--headline-size); line-height: 1.2; letter-spacing: -0.025em; white-space: nowrap; }
.hero-description { margin: 35px 0 0; max-width: 345px; color: var(--secondary); font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 31px; }
.entrance-page .button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 56px; padding: 14px 24px; border: 0; font-weight: 400; font-size: 16px; line-height: 1.4; white-space: nowrap; }
.entrance-page .button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.entrance-page .button-primary { color: #fff; background: var(--cobalt); }
.entrance-page .button-primary:hover:not(:disabled) { background: #1c3eb3; transform: translateY(-1px); }
.entrance-page .button-primary:active:not(:disabled) { transform: translateY(0); }
.entrance-page .button-text { background: transparent; color: var(--ink); box-shadow: none; }
.entrance-page .button-text:hover:not(:disabled) { color: var(--cobalt); }
.preview-note { margin: 29px 0 0; font-size: 12px; line-height: 1.7; color: #65727e; }
.photo-type { position: absolute; z-index: 2; inset: 0 0 40px var(--photo-left); overflow: hidden; pointer-events: none; }
.photo-type > div { color: #fff; position: absolute; top: clamp(100px, 15.8vh, 170px); left: calc(var(--page-gutter) - 34cqw); }
body:has(#view-camera:not([hidden])) .site-footer { max-width: none; margin-top: 64px; padding: 28px var(--page-gutter) 36px; border-top: 0; font-size: 12px; line-height: 1.9; }

/* The existing real camera and sample hooks live inside the restored composition. */
.camera-stage { position: relative; width: 100%; height: 100%; }
.camera-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-copy h1, .hero-description, .hero-copy .camera-actions { pointer-events: auto; }
.hero-copy .camera-actions { grid-column: auto; grid-row: auto; width: auto; }
.hero-copy .inline-message, .hero-copy .camera-footnote { max-width: 345px; }
.hero-copy .sample-choice { max-width: 345px; margin-top: 8px; gap: 4px 16px; }
.hero-copy #camera-caption { display: none; }
.mobile-photo-credit { display: none; margin: 0; }
.mobile-photo-credit a { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--radius-inset); font-size: 11px; color: var(--muted); }
.mobile-photo-credit a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.revision-label { margin-left: 8px; font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.hero-photo .sample-source { color: #fff; font-size: 11px; }
#view-camera:has(#camera-stage.is-live) .photo-type { display: none; }
#view-camera:has(#camera-stage.is-live) .hero-credit { display: none; }
#view-camera:has(#camera-stage.is-live) .mobile-photo-credit { display: none; }
#view-camera:has(#camera-stage.is-live) #camera-caption { display: inline; }
/* Live capture, pending camera permission and failed sample states must not sit
   below the decorative type layer. The real h1 remains present for assistive tech. */
#view-camera:has(#camera-loading:not([hidden])) .photo-type,
#view-camera:has(#example-error:not([hidden])) .photo-type { display: none; }
.hero-photo .stage-message { z-index: 3; }
.hero-photo .stage-stop { z-index: 4; }

/* Rounded-r1 surface values, preserved rather than reinterpreted. */
.entrance-page {
  --photo-right: clamp(20px, 2.1vw, 32px);
  --radius-photo: 24px;
  --radius-control: 14px;
  --shadow-photo: 0 2px 6px rgb(24 33 43 / 5%), 0 18px 40px rgb(24 33 43 / 9%);
  --shadow-control: inset 0 1px 0 rgb(255 255 255 / 18%), 0 2px 4px rgb(20 45 125 / 10%), 0 8px 18px rgb(20 45 125 / 12%);
}
.entrance-page .hero-photo, .entrance-page .photo-type { right: var(--photo-right); border-radius: var(--radius-photo); }
.entrance-page .hero-photo { background: #f1ede7; box-shadow: var(--shadow-photo); }
.entrance-page .hero-photo::after { content: ""; position: absolute; inset: 0; border: 1px solid rgb(255 255 255 / 20%); border-radius: inherit; pointer-events: none; }
.entrance-page .hero-photo figcaption { padding: 0 10px; border: 1px solid rgb(255 255 255 / 16%); border-radius: 9px; background: rgb(24 33 43 / 48%); }
.entrance-page .button { border-radius: var(--radius-control); transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.entrance-page .button-primary { box-shadow: var(--shadow-control); }
.entrance-page .button-text { padding-inline: 12px; }
.entrance-page .button-text:hover:not(:disabled), .entrance-page .button-text:focus-visible { background: #f4f6f8; }

@media (min-width: 1101px) {
  .entrance-page .hero-actions { gap: 14px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  :root { --photo-left: 43%; --headline-size: 6.3vw; }
  .hero-description { font-size: 16px; }
  .hero-copy { padding-top: 130px; }
  .photo-type > div { top: 130px; left: calc(var(--page-gutter) - 43cqw); }
  .entrance-page .hero-actions { gap: 8px; }
}
@media (max-width: 760px) {
  :root { --page-gutter: 24px; --headline-size: clamp(38px, 12.3vw, 64px); }
  .site-header { height: 80px; min-height: 80px; }
  .wordmark { font-size: 28px; }
  .site-nav { gap: 20px; font-size: 13px; }
  .site-nav a { gap: 5px; }
  .entrance { height: auto; min-height: 704px; max-height: none; padding-bottom: 28px; }
  .hero-photo { left: 18.5%; top: 0; bottom: auto; }
  .hero-photo img { object-position: 48% 40%; }
  .hero-photo figcaption { display: none; }
  .hero-copy { margin: 0; padding: 274px var(--page-gutter) 0; width: 100%; }
  .hero-copy h1 { position: relative; padding: 19px 18px 16px 0; margin: 0 -1px 0 0; background: #fff; width: fit-content; line-height: 1.22; letter-spacing: -0.025em; }
  .hero-description { position: relative; background: #fff; font-size: 15px; line-height: 1.9; margin: 18px 0 0; padding-top: 8px; }
  .hero-actions { flex-wrap: wrap; gap: 4px 20px; margin-top: 24px; }
  .hero-actions .button-primary { flex: 1; min-height: 56px; justify-content: space-between; }
  .hero-actions .button-text { width: 100%; min-height: 48px; }
  .preview-note { margin-top: 18px; text-align: center; font-size: 11px; }
  .photo-type { display: none; }
  .hero-copy .sample-choice { margin-inline: auto; }
  .mobile-photo-credit { display: block; margin-top: 4px; }
  .entrance-page { --photo-right: var(--page-gutter); --radius-photo: 20px; --mobile-photo-end: 274px; --mobile-photo-image-height: calc(309px + 2.44 * var(--headline-size)); }
  .entrance-page .hero-photo { height: var(--mobile-photo-end); }
  .entrance-page .hero-copy { padding-top: var(--mobile-photo-end); }
  .entrance-page .hero-photo img { width: calc(100% + var(--photo-right)); max-width: none; height: var(--mobile-photo-image-height); }
}
@media (prefers-reduced-motion: reduce) {
  .entrance-page .button { transition: none; }
  .entrance-page .button-primary:hover:not(:disabled) { transform: none; }
}

/* Complete project homepage. Scoped surfaces retain the cumulative workspace. */
:root { --home-paper: #f5f5f1; --home-dark: #10141d; --home-dark-panel: #1a202c; --home-dark-text: #f8f9fc; --home-dark-muted: #bac3d4; }
body:has(#view-home:not([hidden])) .site-header { position: sticky; top: 0; z-index: 15; background: rgb(255 255 255 / 94%); backdrop-filter: blur(16px); border-bottom: 1px solid rgb(24 33 43 / 8%); }
main:has(#view-home:not([hidden])) { max-width: none; padding: 0; }
body:has(#view-home:not([hidden])) .workspace-footer { display: none; }
.homepage { animation: none; }
.homepage section[tabindex="-1"] { scroll-margin-top: 118px; outline: none; }
.homepage section[tabindex="-1"]:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -4px; }
.homepage .home-entrance { min-height: 720px; }
.homepage .hero-description { max-width: 355px; }
.home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 30px; max-width: 400px; pointer-events: auto; }
.home-hero-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 12px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; background: var(--cobalt); border-radius: 50%; }
.homepage .hero-copy .mobile-photo-credit { pointer-events: auto; }
.home-scroll-cue { position: absolute; bottom: 35px; left: var(--page-gutter); display: flex; align-items: center; gap: 40px; min-height: 44px; font-size: 11px; color: var(--muted); }
.home-scroll-cue span:last-child { font-size: 20px; }
.home-container { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.home-section { padding-block: 106px; }
.homepage h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.25; letter-spacing: -.025em; font-weight: 400; }
.homepage h3 { font-weight: 400; letter-spacing: -.012em; }
.home-kicker { margin-bottom: 27px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.home-lede { margin-top: 24px; max-width: 700px; font-size: 17px; line-height: 1.95; color: var(--muted); }
.home-section-heading { display: flex; gap: 56px; justify-content: space-between; align-items: flex-end; margin-bottom: 52px; }
.home-heading-aside { font-size: 15px; color: var(--muted); line-height: 1.9; padding-bottom: 5px; }
.home-dark { background: var(--home-dark); color: var(--home-dark-text); }
.home-dark .home-kicker, .home-dark .home-lede { color: var(--home-dark-muted); }
.home-workflow-ribbon { background: #18213a; color: #e3eaff; padding: 24px 0; overflow: hidden; }
.home-workflow-ribbon > div { width: min(1300px, calc(100% - 80px)); margin: auto; display: flex; justify-content: space-between; gap: 22px; align-items: center; white-space: nowrap; font-size: 13px; }
.home-workflow-ribbon i { font-style: normal; color: #94acff; font-size: 12px; }
.home-context { padding-top: 112px; }
.home-question-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }
.home-question-grid article { padding: 32px; border: 1px solid #333b4d; border-radius: 20px; background: #181e2a; }
.home-index { font-family: var(--utility); font-size: 50px; letter-spacing: -.04em; color: #8ca8ff; line-height: 1; }
.home-question-grid h3 { margin-top: 24px; font-size: 23px; }
.home-question-grid p { margin-top: 14px; font-size: 14px; color: var(--home-dark-muted); line-height: 1.9; }
.home-product { background: var(--home-paper); }
.home-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home-product-card { display: flex; flex-direction: column; padding: 34px; background: #fff; border: 1px solid #dcdfe2; border-radius: 24px; overflow: hidden; }
.home-card-topline { display: flex; align-items: center; justify-content: space-between; color: var(--cobalt); font-size: 12px; margin-bottom: 29px; }
.home-product-card h3 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.4; }
.home-product-card > p { margin-top: 22px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.home-mini-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 30px 0; }
.home-mini-photos img { width: 100%; height: auto; aspect-ratio: .74; object-fit: cover; object-position: 50% 30%; border-radius: 12px; display: block; }
.home-mini-photos figcaption { margin-top: 9px; font-size: 11px; color: var(--muted); }
.home-text-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; width: fit-content; margin-top: auto; color: var(--cobalt); font-size: 14px; border-radius: 4px; }
.home-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-record-preview { background: #f4f6fa; border: 1px solid #e0e5ef; border-radius: 16px; margin: 30px 0; padding: 23px; flex: 1; }
.home-record-preview-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid #dbe1eb; }
.home-record-preview-title > span:first-child { font-size: 25px; }
.home-record-preview-title > span:last-child { font-size: 10px; color: var(--muted); }
.home-record-preview dl { margin: 0; }
.home-record-preview dl > div { display: grid; grid-template-columns: 102px 1fr; gap: 15px; margin-top: 16px; font-size: 12px; }
.home-record-preview dt { color: var(--muted); }
.home-record-preview dd { margin: 0; }
.home-proof { background: #101725; }
.home-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 32px 0; margin: 44px 0 40px; border-top: 1px solid #364155; border-bottom: 1px solid #364155; list-style: none; }
.home-steps li > span { display: block; color: #90aaff; font-size: 12px; margin-bottom: 13px; }
.home-steps strong { font-size: 18px; font-weight: 400; }
.home-steps p { color: var(--home-dark-muted); font-size: 12px; margin-top: 9px; }
.home-proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home-proof-panel { min-width: 0; padding: 32px; border: 1px solid #364155; border-radius: 20px; background: #192232; }
.home-panel-label { color: #a8bdff; font-size: 12px; margin-bottom: 17px; }
.home-proof-panel h3 { font-size: 26px; line-height: 1.45; }
.home-proof-panel > p:not(.home-panel-label) { color: var(--home-dark-muted); margin-top: 17px; font-size: 14px; line-height: 1.9; }
.home-proof-note { display: flex; gap: 18px; align-items: flex-start; border-top: 1px solid #3a4456; margin-top: 26px; padding: 25px 0 16px; }
.home-proof-note > span { color: #a8bdff; font-size: 24px; }
.home-proof-note strong { font-size: 14px; font-weight: 400; }
.home-proof-note p { color: var(--home-dark-muted); font-size: 12px; margin-top: 6px; }
.home-dark .home-text-link { color: #a8bdff; }
.home-result-meanings { margin: 25px 0 0; }
.home-result-meanings > div { padding-block: 15px; border-top: 1px solid #3a4456; }
.home-result-meanings dt { color: #e8ecf6; font-size: 14px; }
.home-result-meanings dd { margin: 5px 0 0; color: var(--home-dark-muted); font-size: 12px; }
.home-proof-panel > .home-fineprint { font-size: 11px !important; }
.home-proof-boundary { margin-top: 30px; color: var(--home-dark-muted); font-size: 12px; }
.home-experience { background: #fff; }
.home-experience-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.home-experience-copy .home-lede { font-size: 15px; }
.home-style-options { border: 0; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-style-options legend { padding: 0 0 12px; font-size: 12px; color: var(--muted); }
.home-style-options label { cursor: pointer; position: relative; min-width: 0; }
.home-style-options input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: inherit; }
.home-style-options label > span { display: flex; align-items: center; gap: 13px; min-height: 59px; padding: 12px 15px; border: 1px solid #b1b8c3; border-radius: 12px; font-size: 12px; transition: border-color 160ms, background 160ms; }
.home-style-options strong { color: var(--muted); font-size: 15px; font-weight: 400; }
.home-style-options input:checked + span { color: var(--cobalt); background: var(--accent-soft); border-color: var(--cobalt); }
.home-style-options input:checked + span strong { color: var(--cobalt); }
.home-style-options input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.home-sample-note { margin: 22px 0 27px; font-size: 11px; line-height: 1.9; color: var(--muted); }
.home-experience-copy > .button { width: fit-content; font-size: 14px; }
.home-comparison { position: relative; aspect-ratio: 2 / 2.7; border-radius: 24px; overflow: hidden; isolation: isolate; background: #e4e0d8; touch-action: pan-y; user-select: none; cursor: ew-resize; }
.home-comparison > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.home-comparison-style { clip-path: inset(0 0 0 var(--home-reveal, 50%)); }
.home-compare-labels { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; gap: 14px; color: #fff; font-size: 11px; }
.home-compare-labels span { padding: 5px 10px; background: rgb(12 20 34 / 72%); border: 1px solid rgb(255 255 255 / 25%); border-radius: 6px; }
.home-comparison-divider { position: absolute; top: 0; bottom: 0; left: var(--home-reveal, 50%); width: 2px; transform: translateX(-1px); background: #fff; box-shadow: 0 0 4px rgb(0 0 0 / 25%); pointer-events: none; }
.home-comparison-divider > span { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #172136; font-size: 21px; box-shadow: 0 1px 10px rgb(0 0 0 / 15%); }
.home-comparison-controls { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: center; margin-top: 22px; font-size: 11px; color: var(--muted); }
.home-comparison-controls input { grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 4px 0 0; height: 44px; accent-color: var(--cobalt); cursor: ew-resize; }
.home-comparison-controls output { grid-column: 2; grid-row: 1; font-variant-numeric: tabular-nums; }
.home-comparison-figure figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; font-size: 10px; color: var(--muted); }
.home-comparison-figure figcaption a { min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.home-uses { background: var(--home-paper); }
.home-use-list { border-top: 1px solid #cbd0d6; }
.home-use-list article { display: grid; grid-template-columns: 130px minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 34px; border-bottom: 1px solid #cbd0d6; }
.home-use-list article > span { font-size: 12px; color: var(--cobalt); }
.home-use-list h3 { font-size: 25px; line-height: 1.45; }
.home-use-list p { font-size: 13px; color: var(--muted); line-height: 1.9; }
.home-boundaries { background: #eaf0fc; }
.home-boundary-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; }
.home-boundaries h2 { font-size: clamp(30px, 3vw, 42px); }
.home-boundaries .home-lede { font-size: 14px; }
.home-boundary-columns { display: grid; gap: 27px; }
.home-boundary-columns h3 { font-size: 18px; margin-bottom: 12px; }
.home-boundary-columns p { margin: 0 0 10px; font-size: 13px; line-height: 1.9; color: #3a4b64; }
.home-boundary-columns .home-text-link { font-size: 13px; }
.home-faq { background: #171b24; }
.home-faq .home-kicker, .home-faq h2 { text-align: center; }
.home-faq-list { max-width: 850px; margin: 48px auto 0; display: grid; gap: 12px; }
.home-faq details { border: 1px solid #3c4350; border-radius: 16px; background: #222731; }
.home-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; padding: 21px 27px; min-height: 70px; font-size: 16px; list-style: none; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary > span { font-size: 23px; color: #a8bdff; flex-shrink: 0; transition: transform 160ms; }
.home-faq details[open] summary > span { transform: rotate(45deg); }
.home-faq details[open] summary { color: #b6c8ff; }
.home-faq details > p { padding: 0 27px 25px; font-size: 14px; line-height: 1.95; color: var(--home-dark-muted); }
.home-faq summary:focus-visible { outline: 3px solid #a8bdff; outline-offset: 4px; border-radius: 16px; }
.home-closing { position: relative; overflow: hidden; color: #fff; padding-block: 112px; background: radial-gradient(ellipse at 90% 100%, #486dc0 0, transparent 55%), radial-gradient(ellipse at 0% 0%, #214fa7 0, transparent 55%), #101e3e; }
.home-closing .home-kicker { color: #c4d2f0; }
.home-closing h2 { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.25; }
.home-closing-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 37px; }
.home-closing-actions .button-primary { background: #fff; color: #143977; box-shadow: none; }
.home-closing-actions .button-primary:hover { background: #eaf0fc; }
.home-closing-actions .button-secondary { background: transparent; color: #fff; border-color: #a3b8e0; box-shadow: none; }
.home-closing-actions .button-secondary:hover { background: rgb(255 255 255 / 9%); }
.home-closing .home-container > p:last-child { color: #c4d2f0; font-size: 12px; margin-top: 25px; }
.home-footer { padding: 68px 0 30px; background: #fff; }
.home-footer-top { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 50px; align-items: start; padding-bottom: 54px; }
.home-footer-top .wordmark { font-size: 42px; width: fit-content; min-height: 44px; }
.home-footer-top > p { font-size: 18px; line-height: 1.8; }
.home-footer-top nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.home-footer nav a { display: flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); }
.home-footer nav a:hover { color: var(--cobalt); }
.home-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 25px; padding-top: 25px; border-top: 1px solid #dee1e6; font-size: 10px; color: var(--muted); }
.home-footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 1100px) {
  .home-container { width: calc(100% - 68px); }
  .home-section { padding-block: 85px; }
  .homepage .home-entrance { min-height: 730px; }
  .home-hero-actions { max-width: 310px; gap: 8px; }
  .home-hero-actions .button { font-size: 14px; padding-inline: 16px; }
  .home-experience-layout { gap: 44px; }
  .home-product-card, .home-proof-panel { padding: 26px; }
  .home-question-grid article { padding: 26px; }
  .home-use-list article { grid-template-columns: 100px 1fr 1fr; gap: 24px; }
  .home-use-list h3 { font-size: 21px; }
  .home-boundary-layout { gap: 44px; }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; height: auto; min-height: 88px; padding-block: 17px 11px; row-gap: 7px; }
  .site-nav { gap: 19px; font-size: 12px; width: 100%; margin-left: 0; justify-content: space-between; }
  .site-nav a { min-height: 38px; }
  .home-container { width: calc(100% - 48px); }
  .home-section { padding-block: 68px; }
  .homepage section[tabindex="-1"] { scroll-margin-top: 130px; }
  .homepage .home-entrance { min-height: 0; padding-bottom: 36px; }
  .homepage .hero-description { max-width: 100%; margin-top: 14px; }
  .home-hero-actions { max-width: none; margin-top: 23px; gap: 10px; }
  .home-hero-actions .button-primary { flex: 1; justify-content: space-between; }
  .home-hero-actions .button-text { width: auto; font-size: 12px; padding-inline: 7px; gap: 6px; }
  .home-hero-note { margin-top: 18px; font-size: 11px; }
  .home-scroll-cue { position: static; margin: 5px 24px 0; justify-content: space-between; }
  .home-desktop-break { display: none; }
  .home-workflow-ribbon { padding-block: 19px; }
  .home-workflow-ribbon > div { width: calc(100% - 48px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; font-size: 11px; white-space: normal; }
  .home-workflow-ribbon i { display: none; }
  .homepage h2 { font-size: clamp(32px, 8.8vw, 46px); }
  .home-kicker { margin-bottom: 22px; font-size: 11px; }
  .home-lede { font-size: 14px; margin-top: 23px; }
  .home-question-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .home-question-grid article { display: grid; grid-template-columns: 55px 1fr; column-gap: 18px; padding: 24px; }
  .home-index { grid-row: 1 / 3; font-size: 38px; padding-top: 4px; }
  .home-question-grid h3 { margin-top: 0; font-size: 21px; }
  .home-question-grid p { margin-top: 10px; font-size: 13px; }
  .home-section-heading { display: block; margin-bottom: 31px; }
  .home-heading-aside { margin-top: 22px; font-size: 13px; }
  .home-product-grid, .home-proof-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .home-product-card { padding: 25px; border-radius: 20px; }
  .home-product-card h3 { font-size: 29px; }
  .home-product-card > p { margin-top: 16px; font-size: 13px; }
  .home-card-topline { margin-bottom: 22px; }
  .home-record-preview { padding: 19px; }
  .home-record-preview dl > div { grid-template-columns: 92px 1fr; gap: 10px; font-size: 11px; }
  .home-steps { grid-template-columns: 1fr 1fr; margin-top: 32px; padding-block: 27px; gap: 28px 20px; }
  .home-steps strong { font-size: 17px; }
  .home-steps p { font-size: 11px; }
  .home-proof-panel { padding: 25px; }
  .home-proof-panel h3 { font-size: 24px; }
  .home-proof-panel > p:not(.home-panel-label) { font-size: 13px; }
  .home-proof-boundary { font-size: 11px; }
  .home-experience-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .home-experience-copy > .button { width: 100%; font-size: 13px; }
  .home-comparison { aspect-ratio: 2 / 2.6; border-radius: 20px; }
  .home-style-options { margin-top: 25px; }
  .home-sample-note { margin-block: 20px; }
  .home-compare-labels { inset: 16px 14px auto; font-size: 9px; }
  .home-use-list article { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 27px; }
  .home-use-list h3 { font-size: 23px; }
  .home-boundary-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .home-boundary-columns { gap: 22px; padding-top: 26px; border-top: 1px solid #c1cde6; }
  .home-boundary-columns h3 { font-size: 19px; }
  .home-faq-list { margin-top: 32px; gap: 10px; }
  .home-faq summary { font-size: 14px; padding: 19px 20px; gap: 20px; }
  .home-faq details > p { font-size: 12px; padding: 0 20px 23px; }
  .home-closing h2 { font-size: clamp(37px, 10vw, 58px); }
  .home-closing-actions { margin-top: 30px; }
  .home-closing-actions .button { width: 100%; font-size: 14px; justify-content: space-between; }
  .home-footer { padding-block: 44px 24px; }
  .home-footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-bottom: 31px; }
  .home-footer-top .wordmark { font-size: 34px; }
  .home-footer-top > p { font-size: 15px; }
  .home-footer-top nav { grid-column: 1 / -1; gap: 3px 24px; }
  .home-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 21px; }
}
@media (max-width: 380px) {
  .home-container { width: calc(100% - 40px); }
  .site-nav { gap: 12px; font-size: 11px; }
  .home-hero-actions { flex-direction: column; align-items: stretch; }
  .home-hero-actions .button-text { justify-content: center; }
  .home-question-grid article { grid-template-columns: 42px 1fr; gap: 14px; padding: 20px; }
  .home-style-options label > span { gap: 9px; padding-inline: 12px; font-size: 11px; }
  .home-product-card, .home-proof-panel { padding: 22px; }
}
@keyframes home-title-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes home-photo-in {
  from { transform: scale(1.025); }
  to { transform: scale(1); }
}
@keyframes home-answer-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Both title layers share one clock; the white clipping window never moves. */
.homepage[data-motion-enabled].home-entering .hero-copy h1,
.homepage[data-motion-enabled].home-entering .photo-type > div {
  animation: home-title-in 600ms cubic-bezier(.2,.7,.2,1) 70ms both;
}
.homepage[data-motion-enabled].home-entering .hero-photo img {
  animation: home-photo-in 600ms cubic-bezier(.2,.7,.2,1) both;
}
.homepage[data-motion-enabled].home-entering .home-hero-actions {
  animation: home-title-in 600ms cubic-bezier(.2,.7,.2,1) 140ms both;
}
.homepage[data-motion-enabled] .home-section > .home-container {
  transition: opacity 450ms ease, transform 450ms cubic-bezier(.2,.7,.2,1);
}
.homepage[data-motion-enabled] .home-reveal-pending {
  opacity: 0; transform: translateY(14px);
}
.homepage[data-motion-enabled] .home-section > .home-reveal-immediate { transition: none; }
.homepage[data-motion-enabled] .button span,
.homepage[data-motion-enabled] .home-text-link span { transition: transform 180ms ease; }
.homepage[data-motion-enabled] .button:is(:hover, :focus-visible) span,
.homepage[data-motion-enabled] .home-text-link:is(:hover, :focus-visible) span { transform: translateX(4px); }
.homepage[data-motion-enabled] .button:active { transform: translateY(1px); }
.homepage[data-motion-enabled] .home-faq details[open] > p { animation: home-answer-in 200ms ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .homepage *, .homepage *::before, .homepage *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .homepage .home-reveal-pending { opacity: 1 !important; transform: none !important; }
}
.home-sample-error { font-size: 12px; color: var(--error); padding-top: 15px; }

/* Beta rev7: full viewport entrance and continuous, controllable workflow. */
html { scroll-behavior: smooth; }
.homepage .home-entrance {
  height: auto;
  min-height: calc(100svh - 100px);
  min-height: calc(100dvh - 100px);
  padding-bottom: 110px;
  max-height: none;
}
.home-workflow-ribbon { position: relative; padding-block: 24px; }
.home-workflow-ribbon > .home-workflow-track {
  display: flex; grid-template-columns: none; white-space: nowrap;
  width: max-content; margin: 0; gap: 0;
  justify-content: flex-start;
  animation: home-workflow-drift 36s linear infinite;
  will-change: transform;
}
.home-workflow-group {
  flex: 0 0 auto; display: flex; align-items: center;
  justify-content: space-around; gap: 44px;
  min-width: 100vw; padding-inline: 34px; box-sizing: border-box;
}
@keyframes home-workflow-drift { to { transform: translateX(-50%); } }
.home-workflow-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  color: #e3eaff; background: #18213a; border: 1px solid #66779d;
  border-radius: 50%; cursor: pointer; box-shadow: 0 0 16px 8px #18213a;
}
.home-workflow-toggle input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.home-workflow-toggle:focus-within { outline: 3px solid #a5baff; outline-offset: 3px; }
.home-workflow-toggle .ribbon-play { display: none; font-size: 11px; }
.home-workflow-toggle:has(input:checked) .ribbon-play { display: block; }
.home-workflow-toggle:has(input:checked) .ribbon-pause { display: none; }
.home-workflow-ribbon:has(input:checked) .home-workflow-track,
.home-workflow-ribbon:hover .home-workflow-track,
.home-workflow-ribbon:focus-within .home-workflow-track { animation-play-state: paused; }
.home-product-card, .home-question-grid article, .home-proof-panel {
  transition: transform 240ms cubic-bezier(.2,.7,.2,1), box-shadow 240ms ease, border-color 240ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .home-product-card:hover, .home-question-grid article:hover, .home-proof-panel:hover {
    transform: translateY(-6px); box-shadow: 0 18px 40px rgb(10 22 46 / 14%); border-color: #8c9ebd;
  }
}
.home-product-card:focus-within { box-shadow: 0 14px 36px rgb(10 22 46 / 14%); border-color: #8c9ebd; }
@media (max-width: 760px) {
  .homepage .home-entrance {
    height: auto; min-height: calc(100svh - 110px); min-height: calc(100dvh - 110px);
    display: flex; flex-direction: column; padding-bottom: 24px;
  }
  .homepage .home-scroll-cue { margin-top: auto; padding-top: 18px; }
  .home-workflow-group { gap: 28px; padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-workflow-ribbon > .home-workflow-track { animation: none; width: 100%; will-change: auto; }
  .home-workflow-group { min-width: 0; width: 100%; flex-wrap: wrap; justify-content: center; gap: 14px 20px; white-space: normal; }
  .home-workflow-group[aria-hidden="true"], .home-workflow-toggle { display: none; }
  .home-product-card, .home-question-grid article, .home-proof-panel { transition: none; }
  .home-product-card:hover, .home-question-grid article:hover, .home-proof-panel:hover { transform: none; }
}

.homepage .hero-copy { padding-top: clamp(40px, 12svh, 170px); }
.homepage .photo-type > div { top: clamp(40px, 12svh, 170px); }
.homepage .home-hero-note { line-height: 1.8; max-width: 360px; }
@media (max-width: 760px) {
  body:has(#view-home:not([hidden])) .site-header { height: auto; min-height: 110px; }
  .homepage .home-entrance { --mobile-photo-end: clamp(140px, 29svh, 274px); }
  .homepage .hero-copy { padding-top: var(--mobile-photo-end); }
}
@media (min-width: 761px) and (max-height: 650px) {
  .homepage .hero-copy, .homepage .photo-type > div { --headline-size: clamp(36px, 6vw, 70px); }
  .homepage .hero-description { margin-top: 22px; font-size: 16px; }
  .homepage .home-hero-actions { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Public operations show coarse server phases; motion never represents progress. */
.photo-stage.is-processing::before {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0 20px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 46%, rgba(47, 84, 255, .07) 49%, rgba(47, 84, 255, .38) 50%, rgba(47, 84, 255, .07) 51%, transparent 54%);
  animation: processing-scan 3.6s ease-in-out infinite;
}
.photo-stage.is-processing::after, .photo-stage.is-queued::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 16px;
  border: 1px solid rgba(47, 84, 255, .32);
  border-radius: 10px;
  pointer-events: none;
}
.photo-stage.is-processing::after { animation: processing-frame 3.6s ease-in-out infinite; }
body[data-deployment="public"] #preview-loading { background: transparent; pointer-events: none; }
body[data-deployment="public"] #preview-loading > * { display: none; }
.standalone-verification .verification-intro { max-width: 680px; margin-bottom: 34px; }
.public-verification-layout { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); }
.public-verification-layout .verification-action { padding-top: 0; }
.code-picker { display: grid; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.code-picker input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-inset); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.code-picker input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.held-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 28px; letter-spacing: .08em; }
#public-held-stage:has(img:not([hidden])) .held-placeholder { display: none; }
#selection-transfers { margin-top: 12px; }
#source-missing-verify { margin: 16px auto; display: flex; width: fit-content; }
@keyframes processing-scan { 0%, 100% { transform: translateY(-38%); opacity: .35; } 50% { transform: translateY(38%); opacity: .85; } }
@keyframes processing-frame { 0%, 100% { opacity: .45; } 50% { opacity: .9; } }
@media (max-width: 760px) {
  .public-verification-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .standalone-verification .verification-intro { margin-bottom: 26px; }
  .photo-stage.is-processing::before { inset-inline: 13px; }
  .photo-stage.is-processing::after, .photo-stage.is-queued::after { inset: 10px; }
  body[data-deployment="public"] .site-nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-stage.is-processing::before { animation: none; opacity: .22; transform: none; }
  .photo-stage.is-processing::after { animation: none; opacity: .65; }
}

.beta-badge { margin-left: 7px; padding: 5px 8px; border: 1px solid #d8e1f7; border-radius: 7px; background: #f3f6ff; color: #425b9d; font-size: 11px; line-height: 1; letter-spacing: .06em; align-self: center; }

.home-workflow-group i { display: inline; }
