:root {
  color-scheme: light;
  --page: #f3f1f3;
  --surface: #fff;
  --ink: #570621;
  --muted: #6f6770;
  --wine: #650421;
  --pink: #ca175a;
  --pink-dark: #ad104a;
  --pink-soft: #fff2f7;
  --border: #eee6e9;
  --shadow: 0 3px 7px rgb(54 15 30 / 4%), 0 12px 30px rgb(54 15 30 / 2%);
  font-family: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.5; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #8b1245; outline-offset: 4px; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 30; padding: 12px 18px; border-radius: 10px; color: #fff; background: var(--wine); transform: translateY(-170%); clip-path: inset(50%); }
.skip-link:focus { transform: translateY(0); clip-path: none; }

.app-shell { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: stretch; gap: 18px; width: calc(100% - 28px); max-width: 1660px; margin: 14px auto; min-height: calc(100vh - 28px); }
.sidebar { display: flex; flex-direction: column; align-items: center; min-height: 100%; padding: 22px 10px; border-radius: 21px; background: linear-gradient(160deg, #690727, #57001b 85%); color: #fff; }
.brand-mark { display: flex; justify-content: center; align-items: center; width: 54px; height: 54px; color: #fff; border-radius: 14px; }
.brand-mark > svg { width: 36px; height: 44px; }
.side-nav { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 38px; width: 100%; }
.side-link { display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 3px; width: 60px; min-height: 60px; padding: 12px; border-radius: 15px; color: #fff; transition: background .16s; }
.side-link .icon { width: 27px; height: 27px; }
.side-link > span { font-size: 9px; line-height: 1.2; }
.side-link.active { color: var(--pink); background: #fff; box-shadow: 0 6px 20px rgb(36 0 13 / 12%); }
.side-link:hover { background: rgb(255 255 255 / 12%); }
.side-link.active:hover { background: #fff2f7; }
.sidebar a:focus-visible { outline-color: #fff; outline-offset: 3px; }
.sidebar-caption { margin-top: auto; padding-top: 40px; color: #edcbd7; font-size: 9px; letter-spacing: 2px; writing-mode: vertical-rl; }
.main-content { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 38px; min-height: 72px; padding: 10px 26px; border: 1px solid #fff; border-radius: 19px; background: #fff; box-shadow: var(--shadow); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--wine); font-size: 30px; font-weight: 400; letter-spacing: -1.1px; white-space: nowrap; }
.wordmark strong { font-weight: 750; }
.wordmark-light { font-weight: 400; }
.top-nav { display: flex; align-self: stretch; align-items: stretch; gap: 34px; margin-left: 17px; font-size: 15px; }
.top-link { display: inline-flex; align-items: center; min-height: 44px; position: relative; white-space: nowrap; color: var(--muted); }
.top-link.current { color: var(--wine); font-weight: 650; }
.top-link.current::after { content: ""; position: absolute; height: 2px; bottom: -4px; left: 0; right: 0; background: var(--pink); }
.top-link:hover { color: var(--pink-dark); }
.top-actions { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.mode-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 4px 12px; border: 1px solid #d52b67; border-radius: 8px; color: #ac1148; background: #fffafb; font-size: 12px; line-height: 1.3; white-space: nowrap; }
.mode-badge[data-mode="real"] { border-color: #b4d9c8; background: #f2faf6; color: #276647; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; min-height: 44px; padding: 10px; border: 1px solid transparent; border-radius: 12px; color: var(--muted); background: transparent; transition: color .16s, background .16s; }
.icon-button:hover { color: var(--pink-dark); background: #fff0f5; }
.help-button .icon { width: 25px; height: 25px; }

.hero { position: relative; display: flex; align-items: center; min-height: 250px; padding: 28px 40px; overflow: hidden; isolation: isolate; border: 1px solid #fff; border-radius: 20px; background: linear-gradient(105deg, #fff 30%, #fffafb); box-shadow: var(--shadow); }
.hero-copy { position: relative; z-index: 1; max-width: 69%; }
h1 { font-size: clamp(34px, 4.05vw, 60px); line-height: 1.12; font-weight: 750; letter-spacing: -1.8px; }
.hero-description { margin-top: 13px; max-width: 48ch; color: var(--muted); font-size: clamp(16px, 1.55vw, 23px); line-height: 1.4; letter-spacing: -.3px; }
.hero-art { position: absolute; right: 0; top: 0; width: 49%; height: 100%; pointer-events: none; z-index: 0; }
.connection-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 1px 7px; min-width: 0; color: #655d65; font-size: 12px; }
.connection-label { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 290px; min-width: 0; }
.connection-label p, #connection-message { overflow-wrap: anywhere; }
.connection-dot { flex: 0 0 6px; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--pink); }
.mode-notice { flex: 1 1 310px; max-width: 620px; padding: 7px 11px; border: 1px solid #f2d5df; border-radius: 9px; background: #fff4f8; color: #82415a; font-size: 11px; line-height: 1.5; }
.text-button { min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #a81049; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { background: #ffeaf2; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.44fr) minmax(0, 1fr); gap: 18px; scroll-margin-top: 20px; }
.card { min-width: 0; padding: 23px; border: 1px solid #eae5e8; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; min-height: 32px; margin-bottom: 16px; }
.card-heading h2 { font-size: 26px; line-height: 1.3; font-weight: 750; letter-spacing: -.6px; }
.section-title { display: flex; align-items: center; gap: 10px; }
.section-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: var(--pink-dark); background: #fff0f5; }
.section-icon .icon { width: 20px; height: 20px; }
.quiet-label { color: var(--muted); font-size: 11px; }
.drop-zone { position: relative; display: grid; place-items: center; min-height: 292px; padding: 23px 18px; border: 1px dashed #ee7ba4; border-radius: 15px; background: #fff8fb; transition: background .16s, border-color .16s, box-shadow .16s; }
.drop-zone.is-dragging { background: #ffebf3; border-color: #b30f4c; box-shadow: 0 0 0 4px #ffe3ed; }
.drop-zone[data-state="selected"] { border-style: solid; border-color: #f1c4d5; background: #fff9fb; }
.drop-zone[aria-busy="true"] { border-color: #d75685; }
.upload-empty, .upload-selected { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; text-align: center; }
.upload-illustration { position: relative; width: 94px; height: 76px; margin-bottom: 12px; }
.upload-orbit { position: absolute; inset: 4px 9px; border-radius: 50%; background: #ffedf4; }
.video-tile { position: absolute; display: flex; align-items: center; justify-content: center; left: 4px; top: 7px; width: 75px; height: 56px; border: 2px solid #f0a0bd; border-radius: 8px; background: linear-gradient(145deg, #fff, #ffdbe9); color: #e77aa4; box-shadow: 0 5px 12px rgb(183 26 83 / 7%); }
.video-tile .icon { width: 49px; height: 40px; stroke-width: 1.5; }
.video-tile > span { display: none; }
.video-tile > .film-edge { display: block; position: absolute; top: 6px; bottom: 6px; left: 4px; width: 5px; background: repeating-linear-gradient(to bottom, #fff 0 6px, transparent 6px 12px); border-radius: 2px; }
.video-tile > .film-edge:last-child { left: auto; right: 4px; }
.upload-plus { position: absolute; right: -1px; bottom: 0; display: flex; align-items: center; justify-content: center; width: 43px; height: 43px; border: 3px solid #fff8fb; border-radius: 50%; background: var(--pink); color: #fff; font-size: 28px; line-height: 1; }
.upload-plus .icon { width: 25px; height: 25px; }
.upload-plus use[href="#i-arrow"] { transform: rotate(-90deg); transform-origin: center; }
.drop-zone h3 { font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.5px; }
.drop-description { margin-top: 5px; color: var(--muted); font-size: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; max-width: 100%; padding: 11px 20px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; line-height: 1.4; font-weight: 650; transition: background .16s, box-shadow .16s; }
.button .icon { width: 22px; height: 22px; }
.button-primary { color: #fff; background: var(--pink); box-shadow: 0 4px 10px rgb(177 13 73 / 7%); }
.button-primary:hover:not(:disabled) { background: var(--pink-dark); box-shadow: 0 5px 14px rgb(177 13 73 / 15%); }
.upload-empty .button { width: 262px; min-height: 48px; margin-top: 19px; font-size: 16px; }
.file-requirements { margin-top: 11px; color: var(--muted); font-size: 13px; }
.file-requirements > span { padding: 0 8px; }
.upload-footnote { display: flex; justify-content: center; align-items: flex-start; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 11px; text-align: center; }
.upload-footnote .icon { width: 14px; height: 14px; margin-top: 1px; }
.upload-footnote p { max-width: 64ch; }
.upload-error { margin-top: 12px; padding: 11px 13px; border: 1px solid #edbccd; border-radius: 10px; background: #fff1f4; color: #9b2347; font-size: 13px; overflow-wrap: anywhere; }
.selected-file-icon { display: flex; align-items: center; justify-content: center; position: relative; width: 52px; height: 52px; margin-bottom: 10px; border: 1px solid #f4bfd2; border-radius: 15px; color: var(--pink); background: #ffedf4; }
.selected-file-icon > .icon { width: 29px; height: 29px; }
.selected-check { position: absolute; right: -6px; bottom: -3px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 3px solid #fff9fb; border-radius: 50%; color: #fff; background: #347b5b; }
.selected-check .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.selection-label { margin-bottom: 5px; color: #8e3457; font-size: 12px; }
#file-name { max-width: 100%; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.file-size { margin-top: 5px; color: var(--muted); font-size: 12px; }
.selection-note { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.selection-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 13px; }
.button-secondary { color: #a21047; border-color: #e3b0c3; background: #fff; }
.button-secondary:hover:not(:disabled) { background: #ffeef4; }
.remove-button:hover { color: #ac1747; background: #ffebf1; }
.transfer-area { width: min(100%, 340px); margin-top: 14px; }
#transfer-progress { display: block; width: 100%; height: 7px; margin: 0 0 8px; appearance: none; overflow: hidden; border: 0; border-radius: 7px; accent-color: var(--pink); background: #f6dce6; }
#transfer-progress::-webkit-progress-bar { border-radius: 7px; background: #f6dce6; }
#transfer-progress::-webkit-progress-value { border-radius: 7px; background: var(--pink); }
#transfer-progress::-moz-progress-bar { border-radius: 7px; background: var(--pink); }
#transfer-label { color: #8c224a; font-size: 12px; }
.elapsed-time, #elapsed-time { min-height: 18px; margin-top: 4px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }

.result-card { display: flex; flex-direction: column; }
.result-state { padding: 4px 9px; border-radius: 8px; background: #fff3f7; color: #95435f; font-size: 10px; white-space: nowrap; }
.result-empty, .result-live { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 8px 2px 18px; text-align: center; }
.result-illustration { position: relative; width: 205px; height: 180px; margin: 2px 0 13px; }
.result-halo { position: absolute; left: 18px; top: 2px; width: 174px; height: 174px; border-radius: 50%; background: linear-gradient(135deg, #fff5f8, #fdebf0); }
.result-paper { position: absolute; display: flex; flex-direction: column; gap: 9px; left: 62px; top: 34px; width: 88px; height: 116px; padding: 24px 16px 16px; border: 1px solid #fff; border-radius: 11px; background: linear-gradient(130deg, #fff 60%, #fff9fb); box-shadow: 3px 7px 12px rgb(117 22 53 / 9%); }
.result-paper::after { content: ""; position: absolute; top: 0; right: 0; width: 24px; height: 24px; background: linear-gradient(45deg, #f1e2e7 50%, #fff6f9 51%); border-radius: 0 10px 0 5px; }
.paper-fold { display: none; }
.paper-ray { position: absolute; width: 18px; height: 3px; background: #ed99aa; border-radius: 2px; }
.ray-one { right: 7px; top: 69px; transform: rotate(-35deg); }
.ray-two { right: 4px; top: 91px; width: 13px; transform: rotate(15deg); }
.ray-three { left: 10px; top: 125px; width: 12px; transform: rotate(-15deg); }
.paper-mark { display: none; }
.paper-line { display: block; width: 48px; height: 5px; border-radius: 4px; background: #d9c5cd; }
.line-long { width: 53px; margin-top: 10px; }
.line-short { width: 35px; }
.paper-bottom { display: flex; gap: 4px; margin-top: 3px; }
.paper-bottom i { width: 16px; height: 5px; border-radius: 3px; background: #eddee4; }
.result-clock { position: absolute; right: 5px; bottom: 37px; color: #ed9baf; transform: rotate(-15deg); }
.result-clock .icon { width: 23px; height: 23px; }
.result-spark { position: absolute; left: 7px; bottom: 44px; color: #e99aa9; font-size: 25px; }
.result-empty h3, .result-live h3 { font-size: 23px; line-height: 1.3; font-weight: 700; letter-spacing: -.5px; }
.result-empty > p, .result-live > p { max-width: 37ch; margin-top: 9px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.result-icon-wrap { display: flex; align-items: center; justify-content: center; position: relative; width: 91px; height: 91px; margin: 10px 0 23px; border-radius: 50%; background: #fff0f6; color: var(--pink); }
#result-icon { width: 39px; height: 39px; stroke-width: 1.6; }
.result-live[data-state="processing"] .result-icon-wrap::after { content: ""; position: absolute; inset: -5px; border: 2px solid #f7d5e2; border-top-color: var(--pink); border-radius: 50%; animation: turn 1.8s linear infinite; }
.result-live[data-state="done"] .result-icon-wrap { color: #28704e; background: #edf8f1; }
.result-live[data-state="done"][data-verdict="violation"] .result-icon-wrap { color: #936015; background: #fff3dd; }
.result-live[data-state="done"][data-verdict="violation"] h3,
.result-live[data-state="done"][data-verdict="violation"] #result-count { color: #895813; }
.result-card:has(.result-live[data-state="done"][data-verdict="violation"]:not([hidden])) .result-state { color: #895813; background: #fff3dd; }
.result-live[data-state="done"][data-verdict="no_violation"] h3,
.result-live[data-state="done"][data-verdict="no_violation"] #result-count { color: #276647; }
.result-card:has(.result-live[data-state="done"][data-verdict="no_violation"]:not([hidden])) .result-state { color: #276647; background: #edf8f1; }
.result-live[data-state="failed"] .result-icon-wrap { color: #a82547; background: #fff0f3; }
.result-live[data-state="connection-lost"] .result-icon-wrap { color: #915d16; background: #fff5e3; }
.result-live .result-count, #result-count { margin-top: 14px; color: #71233f; font-size: 14px; font-weight: 650; }
.result-live .result-job-id, #result-job-id { max-width: 100%; margin-top: 12px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
#new-video { margin-top: 18px; }
#retry-action { margin-top: 8px; }
@keyframes turn { to { transform: rotate(360deg); } }

.guide-section { scroll-margin-top: 22px; }
.guide-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.guide-heading h2 { font-size: 18px; }
.guide-heading > span { color: var(--muted); font-size: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid #eae5e8; border-radius: 19px; background: #fff; box-shadow: var(--shadow); }
.steps > li { display: flex; align-items: center; justify-content: center; position: relative; min-width: 0; gap: 16px; padding: 19px 22px; }
.steps > li + li::before { content: ""; position: absolute; left: 0; width: 1px; height: 42px; background: #e8dfe3; }
.step-number { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; color: #ba1852; background: #fff0f6; font-size: 20px; font-weight: 650; }
.steps h3 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.4px; }
.steps p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.step-arrow { display: none; }
.guide-note { margin: 9px 3px 0; color: var(--muted); font-size: 11px; }
.footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px 16px; min-height: 20px; padding: 0 8px; color: var(--muted); font-size: 10px; }
.footer > span { display: inline-flex; align-items: center; gap: 8px; }
.footer .icon { width: 12px; height: 12px; }
.footer-dot { color: #9b7e89; }

.help-dialog { width: min(500px, calc(100% - 32px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px; border: 1px solid #eddae2; border-radius: 23px; background: #fff; color: var(--ink); box-shadow: 0 30px 90px rgb(65 5 29 / 19%); }
.help-dialog::backdrop { background: rgb(49 14 29 / 25%); backdrop-filter: blur(5px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dialog-heading .section-icon { width: 43px; height: 43px; border-radius: 13px; }
.dialog-heading .section-icon .icon { width: 23px; height: 23px; }
.dialog-help-icon { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; border-radius: 13px; color: var(--pink-dark); background: #fff0f5; }
.eyebrow { margin-bottom: 9px; color: #865166; font-size: 10px; font-weight: 650; letter-spacing: 1.2px; text-transform: uppercase; }
.help-dialog h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.7px; }
#help-intro, .dialog-copy { margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.dialog-notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 15px; border: 1px solid #f0d1dd; border-radius: 13px; color: #86425d; background: #fff3f8; font-size: 12px; line-height: 1.6; }
.dialog-notice .icon { width: 18px; height: 18px; margin-top: 2px; }
.dialog-action { width: 100%; margin-top: 24px; }
.noscript-note { max-width: 800px; margin: 20px auto; padding: 20px; border-radius: 12px; background: #fff; }

@media (max-width: 1180px) {
  .topbar { padding: 10px 22px; gap: 22px; }
  .top-nav { margin-left: 0; gap: 24px; font-size: 13px; }
  .top-actions { gap: 10px; }
  .wordmark { font-size: 27px; }
  .hero { min-height: 230px; padding: 26px 30px; }
  .card { padding: 20px; }
  .card-heading h2 { font-size: 23px; }
  .drop-zone { padding: 22px 15px; }
  .drop-zone h3 { font-size: 20px; }
  .drop-description { font-size: 13px; }
  .result-empty h3, .result-live h3 { font-size: 21px; }
  .result-empty > p, .result-live > p { font-size: 14px; }
  .steps > li { padding: 18px 16px; gap: 12px; }
  .step-number { flex-basis: 43px; width: 43px; height: 43px; font-size: 18px; }
  .steps h3 { font-size: 16px; }
}
@media (max-width: 1050px) {
  .top-nav { display: none; }
  .hero-copy { max-width: 76%; }
  .hero-art { width: 47%; opacity: .8; }
  .hero-description { max-width: 31ch; }
  .quiet-label { display: none; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 66px minmax(0, 1fr); gap: 13px; }
  .sidebar { padding: 18px 6px; }
  .side-link { width: 52px; min-height: 54px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 16px; }
  .result-card { min-height: 350px; }
  .result-empty, .result-live { padding-bottom: 16px; }
  .result-illustration { width: 205px; height: 165px; margin-top: -5px; }
  .result-halo { transform: scale(.9); transform-origin: top center; }
  .steps > li { align-items: flex-start; justify-content: flex-start; gap: 10px; padding: 18px 14px; }
  .steps h3 { font-size: 14px; }
  .steps p { font-size: 11px; }
  .step-number { flex-basis: 36px; width: 36px; height: 36px; font-size: 15px; }
}
@media (max-width: 740px) {
  .app-shell { grid-template-columns: 1fr; width: calc(100% - 20px); margin: 10px auto; min-height: calc(100vh - 20px); }
  .sidebar { display: none; }
  .main-content { gap: 13px; }
  .topbar { min-height: 66px; padding: 8px 18px; border-radius: 17px; }
  .hero { min-height: 218px; padding: 26px; border-radius: 18px; }
  .hero-copy { max-width: 100%; }
  .hero-art { display: none; }
  h1 { font-size: clamp(34px, 7vw, 48px); letter-spacing: -1.4px; }
  .hero-description { max-width: 35ch; font-size: 17px; }
  .connection-panel { gap: 7px 10px; padding: 0 5px; }
  .connection-label { flex-basis: 100%; }
  .mode-notice { flex-basis: 100%; max-width: none; }
  .card-heading h2 { font-size: 24px; }
  .steps { grid-template-columns: 1fr; border-radius: 18px; }
  .steps > li { align-items: center; gap: 16px; padding: 17px 23px; }
  .steps > li + li::before { top: 0; left: 23px; right: 23px; width: auto; height: 1px; }
  .step-number { flex-basis: 43px; width: 43px; height: 43px; font-size: 18px; }
  .steps h3 { font-size: 17px; }
  .steps p { font-size: 12px; }
  .footer { padding: 0 5px 4px; }
}
@media (max-width: 430px) {
  .topbar { flex-wrap: wrap; padding: 8px 13px; gap: 10px; }
  .wordmark { gap: 5px; font-size: 24px; letter-spacing: -.9px; }
  .top-actions { gap: 3px; }
  .mode-badge { padding: 4px 7px; font-size: 10px; }
  .hero { padding: 24px 21px; min-height: 213px; }
  h1 { font-size: 35px; }
  .hero-description { margin-top: 12px; font-size: 16px; }
  .card { padding: 18px; border-radius: 18px; }
  .card-heading { gap: 6px 10px; margin-bottom: 15px; }
  .card-heading h2 { font-size: 23px; }
  .drop-zone { min-height: 290px; padding: 22px 12px; }
  .drop-zone h3 { font-size: 19px; }
  .drop-description { max-width: 26ch; font-size: 13px; }
  .upload-empty .button { width: 100%; max-width: 262px; font-size: 15px; }
  .upload-footnote { font-size: 11px; text-align: left; }
  .result-empty h3, .result-live h3 { font-size: 21px; }
  .result-state { font-size: 9px; padding: 4px 7px; }
  .help-dialog { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
