@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --font-ui: "Source Sans 3", sans-serif;
  --ink: #182b43;
  --muted: #52647a;
  --paper: #f3f6fa;
  --panel: #ffffff;
  --line: #d9e1eb;
  --blue: #245bc5;
  --blue-soft: #edf3ff;
  --rail: #172d4b;
  --green: #176146;
  --mint: #edf7f1;
  --coral: #a83832;
  --amber: #82541b;
  --amber-bg: #fff4df;
  --red-bg: #fff0ee;
  --radius: 6px;
  /* Shared evidence tokens must exist even when Review's reference stylesheet is disabled. */
  --rv-bg: var(--paper);
  --rv-surface: var(--panel);
  --rv-ink: var(--ink);
  --rv-ink-2: var(--muted);
  --rv-ink-3: var(--muted);
  --rv-line: var(--line);
  --rv-accent: var(--blue);
  --rv-before: #C9CFD8;
}
body { background: var(--paper); color: var(--ink); font: 15px/1.5 var(--font-ui); }
button, input, select, textarea { font-family: var(--font-ui); }
button { font-size: 14px; }
input, select, textarea { color: var(--ink); accent-color: var(--blue); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #83a9f1; outline-offset: 3px; }
::selection { background: #dbe8ff; color: #142f60; }
.app-shell { grid-template-columns: 196px minmax(0, 1fr); }
.sidebar { background: var(--rail); border-right: 0; padding: 26px 16px 20px; color: #e7eef9; display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0; }
.brand { display: flex; align-items: center; gap: 9px; color: white; padding: 0 2px; font-size: 23px; letter-spacing: -.5px; }
.brand-symbol { width: 29px; height: 29px; color: #eef4ff; }
.product-label { display: block; color: #a8bad4; font: 600 11px var(--font-ui); letter-spacing: .1em; margin: 18px 4px 28px; }
.sidebar nav { display: grid; gap: 5px; margin: 0; overflow: visible; }
.nav-link { color: #c1d0e5; min-height: 46px; padding: 11px 12px; border-radius: var(--radius); font: 600 15px var(--font-ui); gap: 12px; margin: 0; }
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-link:hover { background: #233c5d; color: white; }
.nav-link.active { background: #2b4c79; color: white; }
.nav-link:disabled { color: #a8bad4; opacity: 1; }
.nav-link b { background: #ecf2ff; color: #204882; font: 700 12px var(--font-ui); padding: 1px 7px; min-width: 23px; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.batch-card { display: flex; margin-top: 28px; width: 100%; align-items: center; justify-content: space-between; background: #223c5d; border: 1px solid #3d5473; padding: 12px; color: #f0f5ff; border-radius: var(--radius); }
.batch-card strong { font-size: 14px; }
.batch-card em { font: 12px var(--font-ui); color: #c2d1e7; }
.batch-card svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; flex-shrink: 0; }
.sidebar-note { display: block; color: #afc0d9; font-size: 12px; line-height: 1.8; padding: 14px 4px 0; margin: 0; }
.topbar { min-height: 72px; height: 72px; padding: 0 30px; background: var(--panel); border-bottom: 1px solid var(--line); z-index: 12; }
.topbar .eyebrow { font: 600 11px var(--font-ui); text-transform: none; letter-spacing: .03em; color: var(--muted); }
#datasetName { font-size: 15px; font-weight: 600; }
.header-actions { gap: 8px; }
.header-actions { flex-wrap: wrap; justify-content: flex-end; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 8px 10px; min-height: 40px; font-size: 14px; max-width: 100%; }
input[type=checkbox], input[type=radio] { flex-shrink: 0; accent-color: var(--blue); }
textarea { resize: vertical; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.check input { margin: 4px 0 0; }
.review-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0; }
.review-fields label, .dataset-setup > label { display: grid; gap: 6px; min-width: 0; }
.review-fields label.check { display: flex; }
.review-fields .wide-field { grid-column: 1 / -1; }
.dataset-setup > label { margin-block: 18px; }
.view-toolbar { display: flex; align-items: center; gap: 12px 18px; }
.view-toolbar > input { flex: 1 1 220px; }
.view-toolbar > span { margin-left: auto; white-space: nowrap; color: var(--muted); }
.cumulative-view .legend { display: flex; gap: 16px; }
.cumulative-view .legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cumulative-view .legend i { display: inline-block; width: 10px; height: 10px; }
.cumulative-view .legend .before { background: #899bb4; }
.cumulative-view .legend .after { background: var(--blue); }
.cumulative-view > .pairs { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.workspace-heading > label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.workspace-heading > label select { max-width: 300px; }
.sheet-grid table { min-width: 100%; }
.sheet-grid th { padding: 10px 12px; white-space: nowrap; }
.sheet-grid th small { display: block; margin-top: 3px; }
.sheet-grid thead { position: sticky; top: 0; z-index: 2; }
.sheet-grid .table-wrap { overscroll-behavior: contain; scrollbar-color: #a5b9d5 var(--paper); }
dialog > header, .cleaning-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
dialog > header h2 { margin: 0; }
.screen { max-width: 1600px; margin-inline: auto; padding: 28px 30px 40px; }
.page-head { margin-bottom: 22px; }
.page-head h1, .empty-state h1 { font: 600 29px/1.25 var(--font-ui); letter-spacing: -.6px; }
.page-head p { font-size: 14px; }
.page-head .eyebrow { display: none; }
.primary, .secondary, .ghost { min-height: 40px; border-radius: var(--radius); padding: 9px 15px; font-weight: 600; box-shadow: none; transition: background-color 150ms ease, border-color 150ms ease; }
.primary { background: var(--blue); border-color: var(--blue); color: white; }
.primary:hover:not(:disabled) { background: #1b49a4; border-color: #1b49a4; }
.secondary { border: 1px solid #becbdc; background: white; color: #274469; }
.secondary:hover:not(:disabled) { background: #f0f4fc; border-color: #809abd; }
.ghost { color: var(--muted); }
.ghost:hover:not(:disabled) { background: #edf2f8; color: var(--ink); }
.status-badge { border-radius: 4px; font: 600 12px var(--font-ui); padding: 4px 8px; background: #edf1f7; color: #4b5f7b; }
.status-badge.warning { color: #765019; background: var(--amber-bg); }
.status-badge.success { color: #1f6448; background: #e8f6ee; }
#originalPreview { position: fixed; z-index: 1100; top: 50%; left: 50%; display: flex; flex-direction: column; width: min(75vw, 1200px); height: min(75vh, 820px); transform: translate(-50%, -50%); overflow: hidden; border: 1px solid #becbdc; border-radius: 8px; background: white; box-shadow: 0 8px 24px #142c4d26; }
#originalPreview[hidden] { display: none; }
#originalPreview > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: white; }
#originalPreview > header > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; min-width: 0; }
#originalPreview > header strong { font-size: 17px; }
#originalPreviewSummary { color: var(--muted); font-size: 13px; }
#originalPreviewViewport { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; }
#originalPreviewTable { width: max-content; min-width: 100%; font-size: 13px; white-space: nowrap; }
#originalPreviewTable th, #originalPreviewTable td { padding: 8px 12px; }
#originalPreviewTable thead { position: sticky; top: 0; z-index: 3; }
#originalPreviewTable thead th { border-bottom: 1px solid #cbd6e4; background:var(--paper); }
#originalPreviewTable thead th:first-child { position:sticky; left:0; z-index:4; }
#originalPreviewTable tbody th { position: sticky; left: 0; z-index: 1; font-weight: 600; }
#originalPreviewViewport > button { margin: 12px; }
#originalPreviewViewport:focus-visible { outline:3px solid #83a9f1; outline-offset:-3px; }
.empty-state { max-width: 850px; margin: 54px auto 32px; padding: 34px 38px; background: white; border: 1px solid var(--line); border-radius: 10px; text-align: left; }
.source-icon { margin: 0 0 18px; width: 38px; height: 38px; border-radius: var(--radius); background: var(--blue-soft); color: var(--blue); font-size: 22px; }
.source-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
/* The import and resume tasks share one centered column and the same inset. */
.screen:has(> .empty-state) > .workspace-card { max-width:850px; margin-inline:auto; padding:24px 38px; }
.screen:has(> .sample-picker) > .workspace-card { max-width:720px; }
.primary, .secondary, .ghost { display:inline-flex; align-items:center; justify-content:center; gap:8px; text-align:center; }
.primary svg, .secondary svg, .ghost svg { flex-shrink:0; }
.page-head > div, .review-launch > div, .workspace-heading > div, .change-card header > div { min-width:0; }
.page-head > button, .review-launch > button, .change-card header > button { flex-shrink:0; }
.workspace-heading { flex-wrap:wrap; }
.review-launch > button { white-space:nowrap; }
.metric-grid article { min-width:0; overflow-wrap:anywhere; }
.change-card h2, .empty-panel, .workspace-card p { overflow-wrap:anywhere; }
.empty-state > .eyebrow { display: none; }
.empty-state h1 { max-width: 620px; font-size: 34px; margin: 10px 0 16px; }
.empty-state > p:not(.eyebrow) { margin: 0; max-width: 65ch; font-size: 16px; color: var(--muted); }
.source-actions { justify-content: flex-start; margin: 25px 0; }
.workflow-strip { margin: 30px 0 24px; gap: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.workflow-strip li { background: none; border: 0; border-radius: 0; padding: 0; }
.workflow-strip b { color: #29456c; font-size: 15px; }
.workflow-strip span { font-size: 13px; }
.ai-status { font: 12px var(--font-ui); }
.empty-state .ai-status { font-size: 12px !important; }
.review-launch { border: 1px solid #bfcee8; background: #edf3ff; border-radius: 8px; padding: 19px 22px; margin-bottom: 20px; }
.review-launch .eyebrow { display: none; }
.review-launch h2 { color: #183d77; font-size: 21px; margin: 0 0 5px; }
.review-launch p { color: #405d87; font-size: 14px; }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 8px; background: white; overflow: hidden; }
.metric-grid article { border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 17px 20px; }
.metric-grid article:last-child { border-right: 0; }
.metric-grid span { font: 600 12px var(--font-ui); color: var(--muted); letter-spacing: 0; }
.metric-grid strong { font-size: 25px; font-weight: 600; letter-spacing: -.4px; margin: 3px 0 5px; }
.metric-grid small { font-size: 12px; }
.column-profile, .workspace-card { border-radius: 8px; }
.column-profile header { padding: 18px 20px; }
.column-profile h2, .workspace-card h2 { font-size: 19px; font-weight: 600; }
.profile-table { font-size: 14px; }
.profile-table th, .profile-table td { padding: 12px 16px; }
.profile-table th, th { background: #edf2f8; color: #405676; font: 600 12px var(--font-ui); }
.profile-table tbody tr:hover { background: #f6f9fe; }
.profile-table small { font-size: 12px; }
.profile-finding { color: #214e9d; background: #edf3ff; border-color: #c8d8f4; font-size: 13px; padding: 6px 10px; }
.completeness-meter i { background: #3c72c6; }
.profile-clear { font-size: 13px; color: var(--muted); }
.coverage-note, .workspace-advanced { font-size: 14px; }
summary { font-size: 14px; color: #304b70; }
summary span { font-size: 13px; }
.workspace-card { padding: 20px; }
.workspace-card p { font-size: 14px; }
.workspace-message { font-size: 13px; }
.review-fields input, .review-fields select, .review-fields textarea, #cumulativeColumn { border-color: #bac9dc; border-radius: var(--radius); padding: 10px 12px; font: 14px var(--font-ui); }
.cleaning-context textarea:focus, .review-fields input:focus, .review-fields select:focus { border-color: #7395d3; }
.analysis-banner { padding: 13px 17px; gap: 20px; background: #edf2fa; border: 1px solid #d2dded; border-radius: var(--radius); margin: 18px 0; }
.analysis-banner b { font-size: 14px; color: #284f86; }
.analysis-banner p { font-size: 13px; color: #486386; }
.analysis-banner small { font-size: 12px; color: #486386; }
/* Opt-in UI region labels are positioned outside document flow. */
.debug-ui [data-ui] { outline: 1px dashed var(--blue); outline-offset: -1px; position: relative; }
.debug-ui [data-ui]::after { content: attr(data-ui); position: absolute; top: 0; right: 0; z-index: 4; padding: 1px 4px; background: var(--blue-soft); color: var(--ink); font: 11px/1.3 var(--font-ui); pointer-events: none; }
.debug-ui dialog[data-ui] { position: fixed; }
.analytical-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); min-width: 0; }
.analytical-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.analytical-heading h3 { margin: 0 0 6px; font-size: 21px; font-weight: 600; }
.analytical-heading p { margin: 0; max-width: 65ch; }
.analytical-heading button { flex-shrink: 0; }
.analysis-table-wrap { min-width:0; max-width:100%; overflow: auto; max-height: 360px; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); overscroll-behavior:contain; }
.analysis-table-wrap:focus-visible { outline:3px solid var(--blue); outline-offset:-3px; }
.analysis-table { width: 100%; min-width: 520px; }
.analysis-table th, .analysis-table td { padding: 10px 12px; font-size: 14px; }
.analysis-table th { text-align: left; }
.analysis-table tbody th { font-weight: 600; }
.analysis-table .ghost { padding: 4px 0; text-align: left; color: var(--blue); }
.analysis-table .is-selected { background: var(--blue-soft); }
.analytical-ai > small { color: var(--muted); font-size: 13px; }
.analytical-hold, .analytical-ai, .fill-provenance { padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--line); }
.analytical-hold summary, .fill-provenance summary { font-weight: 600; }
.analytical-hold .review-fields { margin-top: 16px; }
.analytical-hold .review-fields label[hidden] { display: none; }
.analytical-ai > small { display: block; margin: 8px 0 0; }
.pattern-explanation, .held-result { margin-top: 18px; }
.held-result h4 { text-transform: capitalize; }
.similar-treatment { margin: 18px 0; min-width: 0; }
.similar-treatment fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.similar-treatment legend { font-weight: 600; padding: 0 6px; }
.similar-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 16px; }
.similar-columns label { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.similar-columns input { flex-shrink: 0; }
.similar-banding { margin: 16px 0; }
.candidate-lenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 18px; }
.candidate-lenses > section, .record-band { min-width: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.capability-records > button, .candidate-comparison > button { margin-top: 12px; }
@media (max-width: 620px) {
  .analytical-heading { flex-direction: column; }
  .similar-columns { grid-template-columns: 1fr; }
  .cumulative-view > .pairs { gap: 8px; font-size: 11px; }
}
.review-fields { gap: 18px; }
.review-fields label { font-size: 14px; color: #354e70; }
.review-fields small { font-size: 12px; }
.cumulative-view .metrics { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; }
.cumulative-view .metrics > div { padding: 10px 0; }
.cumulative-view .metrics span { font-size: 12px; font-weight: 600; color: #526783; }
.cumulative-view .metrics b { font-size: 16px; font-weight: 600; color: #264b80; }
.cumulative-view .metrics small { font-size: 13px; }
.cumulative-view .legend { flex-wrap:wrap; margin-bottom:8px; color:#526783; }
.cumulative-view .bars { display:flex; align-items:stretch; height:120px; gap:5px; min-width:0; margin:12px 0 8px; border-bottom:1px solid #bdcde3; }
.cumulative-view .bars > .pairs { display:flex; align-items:flex-end; flex:1; gap:2px; min-width:0; height:100%; padding:0; }
.cumulative-view .bars .bar { display:block; flex:1 1 0; min-width:0; width:auto; height:0; border-radius:2px 2px 0 0; }
.cumulative-view .bars .before { background:#899bb4; }
.cumulative-view .bars .after { background:#245bc5; }
.cumulative-view > .pairs { color:#4a6383; font-size:12px; }
.cell-empty { color: #81502b; font-size: 13px; }
.evidence { background: #f1f5fc; color: #405c82; border-radius: var(--radius); padding: 14px; }
.change-card { border-radius: 8px; padding: 20px; }
.change-card header { padding: 0 0 17px; align-items: start; }
.change-card h2 { font-size: 20px; font-weight: 600; margin: 9px 0; }
.change-card header p { font-size: 14px; }
.change-card header small { font-size: 12px; color: var(--muted); }
.comparison { gap: 20px; padding: 20px 0; }
.comparison small { font: 600 12px var(--font-ui); color: #526783; }
.comparison p { font: 14px ui-monospace, monospace; overflow-wrap: anywhere; }
.decision-interpretation { border-top: 1px solid var(--line); padding-top: 15px; font-size: 14px; color: var(--muted); }
.sheet-grid { border-radius: 8px; }
.sheet-grid .table-wrap { max-height: 65vh; }
.sheet-grid table { font-size: 13px; }
.sheet-grid th { font-size: 13px; }
.sheet-grid th small { font: 12px var(--font-ui); color: #5b6e87; }
.sheet-grid td { padding: 10px 12px; }
.row-no { color: #5e7391; background: #edf2f9; }
.sheet-rail, .sheet-edge { background: #edf2f8; }
.sheet-legend { font-size: 13px; gap: 10px 18px; }
.sheet-type svg, .sheet-tab svg, .sheet-bubble svg, .sheet-grid td.flagged i svg { width: 16px; height: 16px; flex-shrink: 0; vertical-align: middle; }
.sheet-bubble { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.sheet-grid td.flagged i { display: inline-flex; gap: 3px; vertical-align: middle; }
.sheet-details { border-left-width: 1px; border-radius: 8px; }
.sheet-evidence > div { background: #f5f8fc; border-radius: var(--radius); }
.view-toolbar input { font-size: 14px; }
.view-toolbar span { font-size: 13px; }
dialog { border-color: #becce0; border-radius: 10px; box-shadow: 0 16px 36px #142c4d26; padding: 25px; }
dialog::backdrop { background: #142c4d66; }
.cleaning-dialog h2, #dialogContent h2 { font-size: 25px; font-weight: 600; letter-spacing: -.35px; }
.cleaning-dialog .eyebrow { display: none; }
.cleaning-dialog > p, #dialogContent > p { font-size: 14px; }
.rule-fields label { font-size: 14px; }
.rule-fields input, .rule-fields select, .rule-fields textarea { font-family: var(--font-ui); font-size: 14px; border-color: #bac9dc; }
.toast { background: #193757; border-radius: var(--radius); font-size: 14px; padding: 13px 17px; }
table, .metric-grid strong { font-variant-numeric: tabular-nums; }
.analysis-table-wrap, .profile-scroll { scrollbar-color: #a5b9d5 #f0f4fa; }
@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 178px minmax(0, 1fr); }
  .screen { padding: 24px; }
  .topbar { padding: 0 24px; }
  .sidebar { padding-inline: 12px; }
}
@media (max-width: 800px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows:auto minmax(0, 1fr); }
  .sidebar { position: relative; height: auto; display: block; padding: 15px 18px 0; }
  .brand { font-size: 22px; }
  .brand-symbol { width: 25px; height: 25px; }
  .product-label, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; gap: 6px; overflow: auto; padding: 12px 0 13px; margin: 0; }
  .nav-link { flex-shrink: 0; width: auto; min-height: 44px; padding: 10px 12px; }
  .nav-link svg { width: 16px; }
  .topbar { padding: 12px 18px; height: auto; min-height: 70px; }
  .screen { padding: 22px 18px 30px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid article:nth-child(2) { border-right: 0; }
  .metric-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .sidebar { padding-inline: 14px; }
  .nav-link { font-size: 14px; padding: 10px; gap: 7px; }
  .nav-link svg { display: none; }
  .screen { padding: 20px 14px 26px; }
  .topbar { padding: 11px 14px; }
  .header-actions .status-badge, .header-actions .ghost { display: none; }
  .header-actions .primary { padding: 9px 12px; font-size: 13px; }
  .page-head h1 { font-size: 26px; }
  .page-head { margin-bottom: 18px; }
  .empty-state { padding: 25px 20px; margin: 20px auto; }
  .empty-state h1 { font-size: 29px; }
  .empty-state > p:not(.eyebrow) { font-size: 15px; }
  .workflow-strip { grid-template-columns: 1fr; gap: 16px; }
  .source-actions { flex-wrap: wrap; gap: 8px; }
  .analysis-banner { gap: 7px; padding: 13px 14px; }
  .review-fields { grid-template-columns: 1fr; gap: 15px; }
  .comparison-metrics { grid-template-columns: 1fr; gap: 4px; }
  .workspace-card { padding: 18px; }
  .workspace-heading { display: block; }
  .workspace-actions { gap: 7px; }
  .sheet-grid { grid-template-columns: minmax(0, 1fr) 105px; }
  dialog { padding: 20px; }
  .view-toolbar > input, .view-toolbar > .check { flex-basis: 100%; }
  .view-toolbar > span { margin-left: 0; }
  .workspace-heading > label { flex-wrap: wrap; margin-top: 12px; }
  .workspace-heading > label select { width: 100%; max-width: 100%; }
  .saved-rule-list article { flex-wrap: wrap; }
  .review-fields .wide-field { grid-column: auto; }
  .screen:has(> .empty-state) > .workspace-card { padding:20px; }
  .primary, .secondary, .ghost, .profile-finding { min-height:44px; }
  .source-actions { align-items:stretch; }
  .source-actions > button { flex:1 1 140px; }
  .topbar { flex-wrap:wrap; }
  .topbar > div:first-child { flex:1 1 120px; }
  .header-actions { max-width:100%; flex-shrink:1; }
  .dialog-actions > button { flex:1 1 120px; }
}
@media (max-width: 700px) {
  #originalPreview { top:auto; bottom:2vh; width:90vw; height:78vh; transform:translateX(-50%); }
  #originalPreview > header { padding: 12px; }
  #originalPreviewTable th, #originalPreviewTable td { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .primary, .secondary, .ghost { transition: none; }
  .toast { transition: opacity 0s; transform: none; }
}
/* PEEK-02: isolate original-data inspection without covering the mode navigation. */
#originalPreviewBackdrop { position:fixed; z-index:1099; inset:var(--peek-top,0px) 0 0 var(--peek-left,196px); background:#142c4d40; backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); }
#originalPreviewBackdrop[hidden] { display:none; }
#historyOriginalPreview[hidden] { display:none; }
#originalPreview { top:calc(var(--peek-top,0px) + (100dvh - var(--peek-top,0px)) / 2); left:calc(var(--peek-left,196px) + (100vw - var(--peek-left,196px)) / 2); bottom:auto; width:min(1200px,calc(100vw - var(--peek-left,196px) - 48px)); height:min(820px,calc(100dvh - var(--peek-top,0px) - 64px)); transform:translate(-50%,-50%); }
#originalPreview > header { flex-shrink:0; }
#originalPreview > header strong { line-height:1.4; }
#originalPreviewSummary { overflow-wrap:anywhere; }
#originalPreviewTable tbody th { background:var(--paper); }
#originalPreviewViewport { scrollbar-color:#a5b9d5 var(--paper); }
.original-preview-open .topbar { z-index:12; }
@media (max-width:800px) {
  #originalPreview { width:calc(100vw - 24px); height:calc(100dvh - var(--peek-top,0px) - 32px); }
  #historyOriginalPreview { flex:1 1 auto; }
}
/* DISTILL-04: app-wide information hierarchy; supporting facts do not compete with evidence. */
.review-launch { background:none; border:0; border-block:1px solid var(--line); border-radius:0; padding:18px 0; }
.review-launch h2 { color:var(--ink); font-size:18px; }
.review-launch p { color:var(--muted); font-size:13px; }
.metric-grid strong { font-size:23px; }
.profile-finding { background:none; border-color:var(--line); }
.column-profile header h2 { margin:0; }
.decision-details { margin-top:16px; padding-top:12px; border-top:1px solid var(--line); }
.decision-details summary { font-size:13px; font-weight:400; }
.decision-details p { font-size:13px; }
.change-card h2 { font-size:18px; }
.report-downloads .workspace-actions { margin-top:16px; }
.export-options summary { font-size:14px; }
.export-option-fields { display:flex; flex-wrap:wrap; gap:12px 24px; margin-top:16px; }
.topbar .eyebrow { display:none; }
