:root {
  --medcat-blue: #0075c0;
  --medcat-amber: #ea9c44;
  --medcat-orange: #f8792c;
  --medcat-slate: #3a4356;
  --medcat-gray: #797c81;
  --medcat-pale-blue: #f3f9fe;
  --text-muted: #536273;
  --control-border: #768495;
  --focus-indicator: #17324d;
  --focus-contrast: #ffffff;
  --border: #d6eaf8;
  --surface: #ffffff;
  --danger: #b42318;
  --success: #067647;
  --radius-card: 20px;
  --radius-control: 999px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--medcat-slate); background: var(--surface); }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--focus-indicator); outline-offset: 3px; box-shadow: 0 0 0 2px var(--focus-contrast); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.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;
}

a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--medcat-slate); line-height: 1.15; }
h1 { font-size: clamp(2.35rem, 5vw, 4.6rem); letter-spacing: -.045em; margin-bottom: 1.35rem; }
h2 { font-size: clamp(1.85rem, 3vw, 2.7rem); letter-spacing: -.03em; margin-bottom: .8rem; }
h3 { font-size: 1.1rem; margin-bottom: .55rem; }
p { line-height: 1.65; }

.page-shell { width: min(1160px, calc(100% - 3rem)); margin: 0 auto; }
.landing-header { position: sticky; top: 0; z-index: 2; background: color-mix(in srgb, var(--surface) 94%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.header-content, .footer-content { min-height: 76px; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; min-height: 44px; text-decoration: none; min-width: 0; }
.brand img { width: 94px; height: auto; }
.brand-copy { display: grid; gap: .1rem; border-left: 1px solid var(--border); padding-left: .85rem; line-height: 1.15; }
.brand-copy strong { font-size: .9rem; }
.brand-copy small { color: var(--text-muted); font-size: .7rem; }
.landing-nav { margin-left: auto; display: flex; gap: 1.4rem; }
.landing-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .25rem .3rem; color: var(--text-muted); font-size: .9rem; text-decoration: none; }
.landing-nav a:hover { color: var(--medcat-blue); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.25rem; background: var(--medcat-blue); border: 1px solid var(--medcat-blue); border-radius: var(--radius-control); color: white; font-weight: 700; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.button:hover { background: #005d99; transform: translateY(-1px); }
.button-small { min-height: 44px; padding: .5rem 1rem; font-size: .9rem; }
.button-full { width: 100%; margin-top: .75rem; }

.hero-section { padding: clamp(4rem, 8vw, 7rem) 0; scroll-margin-top: 82px; background: linear-gradient(135deg, var(--medcat-pale-blue), #fff 58%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.hero-copy { max-width: 650px; }
.eyebrow { color: var(--medcat-blue); font-size: .75rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 1rem; }
.hero-summary { max-width: 610px; color: var(--text-muted); font-size: 1.13rem; margin-bottom: 1.8rem; }
.hero-note { color: var(--text-muted); font-size: .86rem; margin: 1rem 0 0; }
.upload-card { padding: clamp(1.75rem, 4vw, 2.5rem); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 16px 42px rgb(0 65 108 / 12%); }
.upload-card h2 { font-size: 1.55rem; margin-top: .9rem; }
.upload-card > p { color: var(--text-muted); font-size: .95rem; }
.upload-icon { display: grid; place-items: center; width: 42px; height: 42px; background: var(--medcat-pale-blue); border-radius: 14px; color: var(--medcat-blue); font-size: 1.45rem; font-weight: 700; }
.constraints { list-style: none; display: grid; gap: .65rem; padding: 1.3rem 0 0; margin: 1.25rem 0 0; border-top: 1px solid var(--border); color: var(--medcat-slate); font-size: .88rem; }
.constraints li { display: flex; gap: .55rem; align-items: center; }
.constraints li::before { content: "✓"; color: var(--success); font-weight: 800; }
.card-note { margin: 1.2rem 0 0; padding: .75rem .9rem; border-left: 3px solid var(--medcat-amber); background: #fff9f1; color: var(--medcat-slate) !important; font-size: .82rem !important; }
.upload-error {
  margin: 14px 0 0;
  color: #9f2d20;
  font-weight: 700;
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; scroll-margin-top: 82px; }
.section-tint { background: var(--medcat-pale-blue); }
.section-intro { max-width: 690px; margin-bottom: 2.4rem; }
.section-intro > p:last-child { color: var(--text-muted); }
.split-intro { display: flex; justify-content: space-between; gap: 2.5rem; max-width: none; align-items: end; }
.split-intro > p { max-width: 450px; margin: 0; }
.step-grid, .document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; padding: 0; margin: 0; list-style: none; }
.step-card, .document-grid li, .safety-panels article { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.step-card { padding: 1.5rem; }
.step-card span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #e7f4fc; color: var(--medcat-blue); font-size: .78rem; font-weight: 800; margin-bottom: 1rem; }
.step-card p { color: var(--text-muted); font-size: .92rem; margin-bottom: 0; }
.document-grid { grid-template-columns: repeat(5, 1fr); }
.document-grid li { display: flex; min-height: 122px; align-items: end; padding: 1.2rem; color: var(--medcat-slate); font-weight: 700; background: linear-gradient(160deg, var(--medcat-pale-blue), var(--surface)); }
.document-count { display: inline-block; margin: 1.25rem 0 0; padding: .4rem .7rem; border-radius: var(--radius-control); background: #fff3e6; color: #9c4d11; font-size: .84rem; font-weight: 700; }

.safety-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.safety-panels { display: grid; gap: 1rem; }
.safety-panels article { padding: 1.25rem 1.4rem; }
.safety-panels article h3 { color: var(--medcat-blue); }
.safety-panels article p { margin-bottom: 0; color: var(--text-muted); font-size: .92rem; }
.final-cta { padding: 3.5rem 0; background: var(--medcat-blue); }
.final-cta-content { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.final-cta .eyebrow { color: var(--focus-contrast); margin-bottom: .6rem; }
.final-cta h2 { max-width: 650px; margin-bottom: 0; color: white; }
.button-light { background: white; border-color: white; color: var(--medcat-blue); white-space: nowrap; }
.button-light:hover { background: #e8f6ff; }
footer { background: #263446; color: #dbe9f2; }
.footer-content { justify-content: space-between; min-height: 86px; }
.footer-content img { width: 104px; height: auto; filter: brightness(0) invert(1); }
.footer-content p { margin: 0; font-size: .8rem; }

.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 1.5rem; background: rgb(24 43 63 / 56%); }
.sample-chooser { width: min(100%, 620px); padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 24px 64px rgb(0 26 50 / 28%); }
.chooser-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.chooser-header .eyebrow { margin-bottom: .5rem; }
.chooser-header h2 { margin-bottom: 0; font-size: 1.6rem; }
.icon-button { display: inline-grid; place-items: center; flex: 0 0 auto; min-width: 44px; min-height: 44px; border: 1px solid var(--control-border); border-radius: 50%; background: var(--surface); color: var(--medcat-slate); font-size: 1.5rem; line-height: 1; }
.chooser-intro { margin: 1.25rem 0; color: var(--text-muted); font-size: .94rem; }
.scenario-list { display: grid; gap: .65rem; }
.scenario-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: .85rem 1rem; border: 1px solid var(--control-border); border-radius: 12px; background: var(--surface); color: var(--medcat-slate); font-weight: 700; text-align: left; }
.scenario-button:hover { border-color: var(--medcat-blue); background: var(--medcat-pale-blue); color: var(--medcat-blue); }

.app-shell { min-height: 100vh; background: var(--medcat-pale-blue); }
.workspace-header { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 max(1.5rem, calc((100% - 1160px) / 2)); border-bottom: 1px solid var(--border); background: var(--surface); }
.sample-file-name, .document-file-name { min-width: 0; overflow-wrap: anywhere; }
.sample-file-name { margin: 0; color: var(--text-muted); font-size: .9rem; }
.new-document-button { flex: 0 0 auto; }
.workspace-tabs { display: none; gap: .25rem; width: min(1160px, calc(100% - 3rem)); margin: 1.5rem auto 0; border-bottom: 1px solid var(--border); }
.workspace-tabs button { min-height: 44px; padding: .65rem 1rem; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--text-muted); font-weight: 700; }
.workspace-tabs button[aria-selected="true"] { border-bottom-color: var(--medcat-blue); color: var(--medcat-blue); }
.processing-content { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 1.5rem; width: min(1160px, calc(100% - 3rem)); margin: 1.5rem auto; }
.document-pane, .processing-status { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 8px 24px rgb(0 65 108 / 8%); }
.document-pane { display: grid; min-height: 520px; place-items: center; padding: 1.25rem; overflow: auto; }
.document-pane img { display: block; width: 100%; max-height: 620px; object-fit: contain; }
.document-pdf {
  width: 100%;
  min-height: 68vh;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
}
.preview-unavailable { max-width: 25rem; color: var(--text-muted); text-align: center; }
.processing-status { display: flex; align-items: center; gap: 1.25rem; min-height: 250px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.processing-status h1 { margin-bottom: .8rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.processing-status p:last-child { margin-bottom: 0; color: var(--text-muted); }
.processing-spinner { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; border: 4px solid #d9edf9; border-top-color: var(--medcat-blue); border-radius: 50%; animation: processing-spin .85s linear infinite; }

.workspace { display: grid; grid-template-columns: minmax(0, 58%) minmax(360px, 42%); width: min(1160px, calc(100% - 3rem)); margin: 1.5rem auto; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 8px 24px rgb(0 65 108 / 8%); overflow: hidden; }
.workspace-panel { min-width: 0; }
.document-review-pane { display: grid; grid-template-rows: auto minmax(360px, 1fr) auto; min-height: calc(100vh - 142px); border-right: 1px solid var(--border); background: #eef7fc; }
.document-toolbar, .document-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; background: var(--surface); }
.document-toolbar > * { min-width: 0; }
.document-toolbar { border-bottom: 1px solid var(--border); }
.document-footer { border-top: 1px solid var(--border); flex-wrap: wrap; }
.document-file-name { margin: 0; color: var(--medcat-slate); font-size: .88rem; font-weight: 800; }
.page-status { margin: .25rem 0 0; color: var(--text-muted); font-size: .8rem; }
.preview-controls { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 auto; flex-wrap: wrap; gap: .55rem; }
.zoom-controls, .page-controls, .page-thumbnails { display: inline-flex; align-items: center; gap: .45rem; }
.zoom-controls { color: var(--text-muted); font-size: .78rem; font-weight: 800; }
.zoom-controls .icon-button { min-width: 44px; min-height: 44px; font-size: 1.15rem; }
.rotate-button { min-width: 44px; min-height: 44px; gap: .35rem; white-space: nowrap; }
.document-stage { display: grid; min-width: 0; min-height: 0; place-items: safe center; padding: 1.5rem; overflow: auto; }
.document-image-frame { display: grid; min-width: max(100%, var(--preview-frame-inline-size, 0px)); min-height: max(100%, var(--preview-frame-block-size, 0px)); place-items: center; padding: 1rem; }
.document-page-image { display: block; width: var(--page-layout-width, min(100%, 680px)); max-width: none; height: auto; box-shadow: 0 12px 28px rgb(0 38 66 / 18%); transform: scale(var(--page-zoom, 1)) rotate(var(--page-rotation, 0deg)); transform-origin: center; transition: transform .18s ease; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem .85rem; border: 1px solid var(--control-border); border-radius: var(--radius-control); background: var(--surface); color: var(--medcat-blue); font-weight: 800; }
.secondary-button:hover:not(:disabled) { border-color: var(--medcat-blue); background: var(--medcat-pale-blue); }
button:disabled { cursor: not-allowed; opacity: .52; }
.page-thumbnail { display: grid; width: 44px; height: 44px; place-items: center; padding: 2px; border: 2px solid var(--control-border); border-radius: 7px; background: #e7f4fc; }
.page-thumbnail.is-selected { border-color: var(--medcat-blue); }
.page-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.check-information-button { display: none; }
.information-pane { display: flex; min-height: calc(100vh - 142px); flex-direction: column; padding: clamp(1.35rem, 3vw, 2.1rem); }
.information-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.information-heading .eyebrow { margin-bottom: .5rem; }
.information-heading h1 { margin-bottom: 0; font-size: clamp(1.65rem, 2.7vw, 2.25rem); }
.status-badge { display: inline-flex; align-items: center; flex: 0 0 auto; gap: .35rem; padding: .4rem .65rem; border-radius: var(--radius-control); background: #e7f8ef; color: var(--success); font-size: .75rem; font-weight: 800; }
.document-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px; margin: 1.4rem 0 1rem; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--border); }
.document-meta div { min-width: 0; padding: .7rem .8rem; background: var(--surface); }
.document-meta dt { margin-bottom: .2rem; color: var(--text-muted); font-size: .72rem; font-weight: 800; }
.document-meta dd { margin: 0; overflow-wrap: anywhere; color: var(--medcat-slate); font-size: .88rem; font-weight: 700; }
.document-meta code { padding: .12rem .35rem; border-radius: 4px; background: var(--medcat-pale-blue); color: var(--medcat-blue); }
.confidence-note { margin: 0 0 1rem; padding: .75rem .85rem; border-left: 3px solid var(--medcat-amber); background: #fff9f1; color: var(--medcat-slate); font-size: .82rem; line-height: 1.45; }
.field-scroller { min-height: 0; flex: 1 1 auto; overflow: auto; padding: .1rem .2rem 1.25rem; }
.result-section { padding: 1.15rem 0; border-top: 1px solid var(--border); }
.result-section:first-child { padding-top: 0; border-top: 0; }
.result-section > h2 { margin-bottom: .9rem; font-size: 1.05rem; }
.result-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.result-value { min-width: 0; padding: .75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.result-value dt, .collection-cell-label { margin-bottom: .3rem; color: var(--text-muted); font-size: .75rem; font-weight: 800; }
.result-value dt { display: block; }
.result-value dd { margin: 0; color: var(--medcat-slate); font-size: .92rem; font-weight: 700; overflow-wrap: anywhere; }
.result-list { display: grid; gap: .35rem; margin: 0; padding-left: 1.1rem; }
.result-collection { margin-top: .9rem; }
.result-collection > h3 { margin-bottom: .65rem; font-size: .92rem; }
.result-collection-table { width: 100%; table-layout: fixed; border: 1px solid var(--border); border-collapse: collapse; background: var(--surface); }
.result-collection-table th, .result-collection-table td { min-width: 0; padding: .7rem; border: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.result-collection-table thead th { background: var(--medcat-pale-blue); color: var(--text-muted); font-size: .75rem; font-weight: 800; }
.collection-index-heading, .collection-row-heading { width: 4.5rem; text-align: center !important; }
.collection-row-heading { color: var(--medcat-slate); font-size: .84rem; }
.collection-card-title, .collection-cell-label { display: none; }
.collection-cell { background: var(--surface); color: var(--medcat-slate); font-size: .88rem; font-weight: 700; }

.outcome-content { display: grid; align-items: center; width: min(760px, calc(100% - 3rem)); min-height: calc(100vh - 76px); margin: 0 auto; padding: 2rem 0; }
.outcome-content.has-preview { grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 1.5rem; width: min(1160px, calc(100% - 3rem)); }
.outcome-card, .outcome-preview { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 8px 24px rgb(0 65 108 / 8%); }
.outcome-card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.outcome-card h1 { margin-bottom: .85rem; font-size: clamp(2rem, 4vw, 3.25rem); }
.outcome-card > p:not(.eyebrow) { color: var(--text-muted); }
.outcome-card .eyebrow { margin: .85rem 0 .5rem; }
.outcome-detail { padding-top: 1rem; border-top: 1px solid var(--border); color: var(--medcat-slate) !important; font-size: .9rem; }
.outcome-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; font-size: 1.45rem; font-weight: 900; }
.outcome-icon.is-success { background: #e7f8ef; color: var(--success); }
.outcome-icon.is-error { background: #fff0ef; color: var(--danger); }
.outcome-preview { display: grid; min-height: 420px; place-items: center; padding: 1.25rem; overflow: auto; }
.outcome-preview img { display: block; width: 100%; max-height: 580px; object-fit: contain; }
.outcome-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }

@keyframes processing-spin { to { transform: rotate(360deg); } }

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

@media (max-width: 1023px) {
  .workspace { display: block; }
  .workspace-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .workspace-panel[hidden] { display: none; }
  .workspace-tabs button { width: 100%; }
  .document-review-pane, .information-pane { min-height: 0; border-right: 0; }
  .document-review-pane { grid-template-rows: auto minmax(350px, 1fr) auto; }
  .check-information-button { display: inline-flex; }
  .information-pane { min-height: calc(100vh - 170px); }
  .field-scroller { padding-bottom: 1.25rem; }
  .outcome-content.has-preview { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .landing-nav { display: none; }
  .header-content .button { margin-left: auto; }
  .hero-grid, .safety-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .upload-card { max-width: 640px; }
  .document-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .page-shell { width: min(100% - 2rem, 1160px); }
  .header-content { min-height: 66px; gap: .65rem; }
  .brand img { width: 78px; }
  .brand-copy strong { font-size: .75rem; }
  .brand-copy small { display: none; }
  .header-content .button { font-size: .8rem; padding: .45rem .75rem; }
  .landing-nav { display: none; }
  .landing-hero, .hero-grid, .support-grid, .safety-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .upload-card { max-width: 640px; }
  .split-intro, .final-cta-content { align-items: flex-start; flex-direction: column; }
  .step-grid, .document-grid { grid-template-columns: 1fr; }
  .document-grid li { min-height: auto; }
  .footer-content { align-items: flex-start; justify-content: center; flex-direction: column; padding: 1.25rem 0; gap: .75rem; }
  .modal-backdrop { align-items: end; padding: 0; }
  .sample-chooser { width: 100%; max-height: min(88vh, 700px); overflow: auto; border-bottom-right-radius: 0; border-bottom-left-radius: 0; }
  .workspace-header { min-height: 66px; padding: 0 1rem; gap: 1rem; }
  .workspace-header .brand img { width: 78px; }
  .sample-file-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
  .workspace-tabs, .processing-content { width: min(100% - 2rem, 1160px); }
  .workspace { width: min(100% - 2rem, 1160px); margin-top: 1rem; border-radius: 14px; }
  .workspace-tabs { margin-top: 1rem; }
  .document-toolbar, .document-footer { align-items: flex-start; flex-direction: column; }
  .document-toolbar { gap: .7rem; }
  .preview-controls { width: 100%; justify-content: space-between; }
  .rotate-button { flex: 0 0 auto; }
  .document-stage { min-height: 320px; padding: 1rem; }
  .document-image-frame { padding: .5rem; }
  .document-pdf { min-height: 56vh; }
  .page-controls { width: 100%; }
  .page-controls .secondary-button { flex: 1 1 0; }
  .page-thumbnails { order: -1; }
  .check-information-button { width: 100%; }
  .information-pane { padding: 1.25rem 1rem 0; }
  .information-heading { align-items: flex-start; flex-direction: column; }
  .document-meta { grid-template-columns: 1fr; }
  .field-scroller { overflow: visible; }
  .result-values { grid-template-columns: 1fr; }
  .result-collection-table { border: 0; background: transparent; }
  .result-collection-table thead { display: none; }
  .result-collection-table tbody { display: block; }
  .result-collection-row { display: block; margin-top: .75rem; padding: .9rem; border: 1px solid var(--border); border-radius: 12px; background: var(--medcat-pale-blue); }
  .result-collection-row > * { display: block; width: 100%; }
  .result-collection-table .collection-row-heading, .result-collection-table .collection-cell { padding: .65rem; border: 0; text-align: left !important; }
  .collection-row-heading { background: transparent; }
  .collection-row-number { display: none; }
  .collection-card-title, .collection-cell-label { display: block; }
  .collection-cell { margin-top: .5rem; border-radius: 8px !important; }
  .processing-content { grid-template-columns: 1fr; gap: 1rem; }
  .document-pane { order: 1; min-height: 310px; padding: .75rem; }
  .processing-status { order: 2; min-height: 0; padding: 1.4rem; }
  .outcome-content, .outcome-content.has-preview { display: flex; width: min(100% - 2rem, 1160px); min-height: calc(100vh - 66px); flex-direction: column; align-items: stretch; justify-content: center; padding: 1rem 0; gap: 1rem; }
  .outcome-preview { min-height: 250px; padding: .75rem; }
  .outcome-actions { position: sticky; bottom: 0; margin: 1.25rem -1rem -1rem; padding: .85rem 1rem max(.85rem, env(safe-area-inset-bottom)); background: var(--surface); }
  .outcome-actions > * { flex: 1 1 0; }
}
