/* Runtime Parity Lab: local system fonts, semantic colors, no remote assets. */
:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --app-bg: #f5f6fa;
  --surface: #ffffff;
  --surface-soft: #f8f9fc;
  --surface-hover: #eef0f6;
  --canvas: #eceef4;
  --text: #202438;
  --text-secondary: #50586e;
  --text-muted: #606a7e;
  --line: #e0e4ed;
  --line-strong: #c7cddb;
  --accent: #5c4ce2;
  --on-accent: #ffffff;
  --accent-hover: #4938c9;
  --accent-soft: #efedff;
  --accent-text: #5140ce;
  --original: #147b76;
  --original-soft: #e8f5f2;
  --success: #166b47;
  --success-soft: #e9f6ee;
  --warning: #805311;
  --warning-soft: #fff4dc;
  --danger: #b12f46;
  --danger-soft: #fff0f2;
  --info: #275cbb;
  --info-soft: #edf3ff;
  --focus: #4a56e6;
  --shadow: 0 3px 14px #23315408;
  --dialog-shadow: 0 24px 90px #17213c30, 0 2px 14px #17213c0d;
  --radius: 10px;
  --header-height: 64px;
  font-family: var(--font);
  font-size: 13px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-appearance="dark"] {
  color-scheme: dark;
  --app-bg: #111520;
  --surface: #1a1f2d;
  --surface-soft: #202635;
  --surface-hover: #292f42;
  --canvas: #121722;
  --text: #edf0fa;
  --text-secondary: #bdc5d8;
  --text-muted: #a2aec5;
  --line: #333b50;
  --line-strong: #4a5570;
  --accent: #a596ff;
  --on-accent: #191326;
  --accent-hover: #b9adff;
  --accent-soft: #302947;
  --accent-text: #c8bfff;
  --original: #78d5c5;
  --original-soft: #1f3838;
  --success: #84deb0;
  --success-soft: #213d32;
  --warning: #f0c782;
  --warning-soft: #3e3323;
  --danger: #ff9aab;
  --danger-soft: #432937;
  --info: #a1c2ff;
  --info-soft: #263550;
  --focus: #bdadff;
  --shadow: 0 3px 14px #00000018;
  --dialog-shadow: 0 24px 90px #00000065;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--app-bg); }
button, input, select, textarea { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:not(:disabled), select:not(:disabled), summary { cursor: pointer; }
button:disabled, select:disabled { cursor: not-allowed; }
button:disabled { opacity: .48; }
input, select { min-width: 0; color: var(--text); }
a { color: var(--accent-text); }
h1, h2, h3, p { margin: 0; }
button { border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
iframe:focus-visible { outline-offset: -4px; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.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: -80px; left: 12px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 8px; }
.app-shell { height: 100vh; height: 100dvh; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
.app-header { height: var(--header-height); min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--surface); z-index: 30; }
.brand-block, .header-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: #5c4ce2; box-shadow: 0 4px 10px #5c4ce222; }
.brand-mark .icon { width: 23px; height: 23px; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 15px; font-weight: 740; letter-spacing: -.35px; white-space: nowrap; }
.brand-name > span { font-weight: 480; color: var(--text-secondary); }
.brand-subtitle { font-size: 10px; color: var(--text-muted); letter-spacing: .08px; white-space: nowrap; }
.local-label { margin-left: 12px; padding: 5px 7px; color: var(--text-muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 4px; font-size: 9px; letter-spacing: .95px; font-weight: 700; white-space: nowrap; }
.header-actions { gap: 5px; }
.header-divider { width: 1px; height: 22px; margin: 0 7px; background: var(--line); }
.connection-state { display: inline-flex; align-items: center; gap: 7px; margin-right: 11px; font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); flex: 0 0 auto; }
.status-dot[data-tone="success"] { background: var(--success); }
.status-dot[data-tone="warning"] { background: var(--warning); }
.status-dot[data-tone="danger"] { background: var(--danger); }
.status-dot[data-tone="info"] { background: var(--info); }
.status-dot[data-tone="pending"] { background: var(--accent); animation: breathe 1.5s ease-in-out infinite; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; background: transparent; border-radius: 7px; transition: background .14s, border-color .14s, color .14s; min-height: 34px; flex: 0 0 auto; font-size: 12px; font-weight: 620; line-height: 1.2; }
.button { padding: 8px 12px; }
.button .icon { width: 15px; height: 15px; }
.button.small { min-height: 29px; padding: 6px 9px; font-size: 11px; }
.button.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 4px #5247d018; }
.button.primary:not(:disabled):hover { background: var(--accent-hover); }
.button.secondary { background: var(--surface); border-color: var(--line-strong); }
.button.secondary:not(:disabled):hover { background: var(--surface-soft); border-color: var(--text-muted); }
.button.quiet { color: var(--text-secondary); }
.button.quiet:not(:disabled):hover { background: var(--surface-hover); color: var(--text); }
.button.danger { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.button.ai-button { color: var(--accent-text); border-color: var(--accent-text); background: var(--accent-soft); }
.button.ai-button:not(:disabled):hover { background: var(--surface-hover); }
.icon-button { width: 34px; padding: 0; color: var(--text-secondary); }
.icon-button:not(:disabled):hover { color: var(--text); background: var(--surface-hover); }
.icon-button.small { width: 27px; min-height: 27px; }
.icon-button.small .icon { width: 15px; height: 15px; }
.catalog-toggle, .catalog-close { display: none; }
.export-button { margin-left: 6px; }
.app-body { display: grid; grid-template-columns: 247px minmax(0, 1fr); flex: 1; min-height: 0; }

/* Searchable source catalog */
.case-browser { display: flex; flex-direction: column; gap: 13px; min-height: 0; padding: 20px 14px 0; background: var(--surface); border-right: 1px solid var(--line); }
.catalog-heading { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.catalog-heading h2 { font-size: 13px; font-weight: 680; letter-spacing: -.15px; }
.count-badge { color: var(--text-muted); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font: 10px/1.6 var(--mono); }
.search-field { position: relative; display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 7px; min-height: 35px; background: var(--surface-soft); padding: 0 8px; gap: 7px; }
.search-field:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search-field > .icon { width: 15px; height: 15px; color: var(--text-muted); }
.search-field input { padding: 8px 0; width: 100%; outline: none; background: transparent; border: 0; font-size: 11px; }
.search-field input::placeholder { color: var(--text-muted); opacity: 1; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-clear { display: grid; place-items: center; width: 23px; height: 27px; background: transparent; color: var(--text-secondary); border-radius: 4px; }
.search-clear .icon { width: 13px; height: 13px; }
.segmented { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); padding: 3px; gap: 2px; }
.segmented > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 9px; border-radius: 4px; color: var(--text-secondary); background: transparent; font-size: 11px; font-weight: 550; white-space: nowrap; min-height: 28px; }
.segmented > button:hover { color: var(--text); background: var(--surface-hover); }
.segmented > button[aria-pressed="true"] { background: var(--surface); color: var(--accent-text); box-shadow: 0 1px 4px #26345016; font-weight: 650; }
.kind-filter { display: flex; }
.kind-filter > button { flex: 1; min-width: 0; padding: 5px 3px; font-size: 9px; min-height: 25px; }
.kind-filter > button[data-kind="all"] { flex: .55; }
.kind-filter > button[data-kind="component"] { flex: 1.2; }
.catalog-list { flex: 1; min-height: 90px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -7px; padding: 0 7px 16px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.catalog-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 9px 2px 0; flex: 0 0 auto; }
.catalog-page-summary { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: var(--text-secondary); font-size: 10px; font-variant-numeric: tabular-nums; }
.catalog-page-summary > span { color: var(--text-muted); font-size: 9px; }
.catalog-page-controls { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.catalog-page-controls > span { min-width: 42px; text-align: center; color: var(--text-muted); font: 10px var(--mono); }
.catalog-page-controls .icon-button { border-color: var(--line-strong); }
.previous-page .icon { transform: rotate(180deg); }
.catalog-group + .catalog-group { margin-top: 18px; }
.catalog-group-heading { display: flex; align-items: center; gap: 6px; margin: 4px 5px 8px; color: var(--text-muted); font-size: 10px; letter-spacing: .75px; font-weight: 650; text-transform: uppercase; }
.catalog-group-heading .icon { width: 12px; height: 12px; }
.catalog-group-heading > span:last-child { margin-left: auto; font: 10px var(--mono); letter-spacing: 0; }
.case-item { width: 100%; display: flex; align-items: flex-start; gap: 9px; text-align: left; padding: 10px 8px; border: 1px solid transparent; border-radius: 7px; margin: 2px 0; background: transparent; position: relative; }
.case-item:hover { background: var(--surface-soft); }
.case-item[aria-current="true"] { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 24%, var(--line)); }
.case-item[aria-current="true"]::before { content: ""; position: absolute; width: 3px; height: 18px; left: -1px; top: 12px; background: var(--accent); border-radius: 0 2px 2px 0; }
.case-item > .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--text-muted); }
.case-item[aria-current="true"] > .icon { color: var(--accent-text); }
.case-item-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.case-item-title { font-size: 12px; font-weight: 580; line-height: 1.4; overflow-wrap: anywhere; }
.case-item-subtitle { color: var(--text-muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.case-item-meta { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.case-item > .status-dot { margin-top: 6px; width: 5px; height: 5px; }
.case-tag { padding: 1px 4px; color: var(--text-muted); border: 1px solid var(--line); border-radius: 3px; font-size: 9px; line-height: 1.4; }
.catalog-empty { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 18px 8px; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.catalog-empty .icon { width: 24px; height: 24px; opacity: .8; }
.catalog-empty .button { margin-top: 2px; }
.catalog-footer { margin: auto -14px 0; padding: 14px 18px 16px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.coverage-title { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-secondary); font-weight: 650; }
.coverage-title > .icon { width: 13px; height: 13px; }
.coverage-title .icon-button { margin-left: auto; width: 22px; min-height: 22px; }
.coverage-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 0; gap: 8px; }
.coverage-stats > div { display: flex; flex-direction: column; gap: 4px; }
.coverage-stats strong { font-size: 19px; letter-spacing: -.6px; font-weight: 640; font-variant-numeric: tabular-nums; }
.coverage-stats span { font-size: 10px; color: var(--text-muted); }
.catalog-footer > p { font-size: 10px; color: var(--text-muted); line-height: 1.55; }

/* The canvas gets all space left after the compact controls. */
.workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0 22px; overflow: hidden; outline-offset: -3px; }
.connection-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 12px; border: 1px solid color-mix(in srgb, var(--warning) 26%, var(--line)); border-radius: 7px; background: var(--warning-soft); color: var(--warning); }
.connection-banner > .icon { width: 19px; height: 19px; }
.connection-banner > div { flex: 1; min-width: 0; }
.connection-banner strong { font-size: 12px; }
.connection-banner p { font-size: 11px; margin-top: 3px; line-height: 1.45; overflow-wrap: anywhere; }
.connection-banner .button { color: var(--text); }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; padding: 16px 0 14px; flex: 0 0 auto; }
.case-heading-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .08px; color: var(--text-muted); }
.eyebrow-separator { color: var(--line-strong); }
h1 { font-size: 23px; line-height: 1.2; font-weight: 650; letter-spacing: -.7px; margin-top: 5px; overflow-wrap: anywhere; }
.case-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 6px; font-size: 10px; color: var(--text-muted); line-height: 1.4; }
.case-meta .meta-divider { color: var(--line-strong); }
.meta-chip { color: var(--text-secondary); background: var(--surface); border: 1px solid var(--line); padding: 2px 5px; border-radius: 4px; font-size: 9px; }
.case-heading-status { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; font-size: 10px; font-weight: 600; line-height: 1.2; border-radius: 5px; padding: 5px 7px; border: 1px solid transparent; }
.badge.neutral { color: var(--text-secondary); background: var(--surface-hover); }
.badge.success { color: var(--success); background: var(--success-soft); }
.badge.warning { color: var(--warning); background: var(--warning-soft); }
.badge.danger { color: var(--danger); background: var(--danger-soft); }
.badge.info, .badge.pending { color: var(--info); background: var(--info-soft); }
.badge .icon { width: 11px; height: 11px; }
.comparison-toolbar { display: flex; align-items: center; gap: 16px; min-height: 47px; padding: 0 0 12px; flex: 0 0 auto; }
.lens-control .icon { width: 14px; height: 14px; }
.viewport-controls { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.select-control { display: flex; align-items: center; gap: 5px; min-height: 32px; padding-left: 9px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; }
.select-control > .icon { color: var(--text-muted); width: 15px; height: 15px; }
.select-control select { border: 0; background: transparent; padding: 6px 24px 6px 4px; font-size: 11px; min-height: 31px; }
.zoom-select { padding-left: 5px; }
.theme-summary { display: flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--text-muted); font-size: 10px; }
.theme-summary strong { color: var(--text-secondary); font-weight: 550; }
.theme-swatch { width: 11px; height: 11px; border: 2px solid #fff; outline: 1px solid #b9b1ee; border-radius: 50%; background: #6b5ed2; }
.comparison-stage { flex: 1 1 auto; min-height: 210px; min-width: 0; display: flex; gap: 14px; padding-bottom: 12px; }
.paired-canvases { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; min-height: 0; min-width: 0; flex: 1; }
.comparison-stage[data-lens="stacked"] .paired-canvases { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.comparison-stage[data-lens="inspect"] .paired-canvases { gap: 10px; }
.runtime-card { display: flex; flex-direction: column; min-height: 0; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.runtime-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; min-height: 59px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.runtime-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.runtime-title > div { min-width: 0; }
.runtime-index { width: 27px; height: 27px; display: grid; place-items: center; background: var(--original-soft); color: var(--original); border-radius: 6px; font: 10px var(--mono); flex: 0 0 auto; }
.current-card .runtime-index { color: var(--accent-text); background: var(--accent-soft); }
.runtime-title h2 { font-size: 12px; font-weight: 670; letter-spacing: -.15px; line-height: 1.5; }
.source-caption { display: block; color: var(--text-muted); font-size: 9px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.runtime-header-end { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.runtime-header-end .badge { padding: 4px 6px; font-size: 9px; }
.canvas-host { position: relative; flex: 1 1 auto; min-height: 0; min-width: 0; overflow: hidden; background: var(--canvas); background-image: radial-gradient(var(--line-strong) .65px, transparent .65px); background-size: 12px 12px; }
.canvas-host[data-zoom="actual"] { overflow: auto; overscroll-behavior: contain; }
.frame-viewport { position: absolute; top: 0; left: 0; transform-origin: 0 0; background: #fff; }
.frame-viewport:empty { display: none; }
.frame-viewport iframe { display: block; border: 0; background: #fff; width: 100%; height: 100%; }
.canvas-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 28px; text-align: center; background: color-mix(in srgb, var(--surface) 78%, transparent); overflow: auto; }
.empty-graphic { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 12px #172b4808; color: var(--original); margin-bottom: 4px; }
.current-card .empty-graphic { color: var(--accent-text); }
.empty-graphic .icon { width: 24px; height: 24px; }
.canvas-empty h3 { font-size: 14px; line-height: 1.4; font-weight: 600; }
.canvas-empty p { font-size: 11px; line-height: 1.65; color: var(--text-muted); max-width: 290px; overflow-wrap: anywhere; }
.canvas-empty .empty-detail { color: var(--warning); font: 10px/1.6 var(--mono); max-height: 90px; overflow: auto; }
.canvas-empty .button { margin-top: 7px; }
.runtime-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 12px; min-height: 28px; border-top: 1px solid var(--line); background: var(--surface-soft); color: var(--text-muted); font-size: 9px; flex: 0 0 auto; }
.footer-theme { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer-dimensions { white-space: nowrap; font: 9px var(--mono); }
.inline-inspector { width: 300px; min-width: 240px; flex: 0 0 300px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.inspector-heading { display: flex; gap: 7px; align-items: center; padding: 14px 13px; border-bottom: 1px solid var(--line); }
.inspector-heading .icon { width: 15px; height: 15px; color: var(--accent-text); }
.inspector-heading h2 { font-size: 12px; font-weight: 600; }
#inspector-content { overflow: auto; min-height: 0; padding: 14px 13px; scrollbar-width: thin; }
.inspector-section + .inspector-section { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.inspector-section h3 { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .7px; font-weight: 650; margin-bottom: 10px; }
.inspector-section > p { font-size: 11px; color: var(--text-secondary); line-height: 1.6; overflow-wrap: anywhere; }
.key-value { display: grid; grid-template-columns: minmax(70px, .6fr) minmax(0, 1fr); gap: 7px 10px; font-size: 11px; margin: 0; }
.key-value dt { color: var(--text-muted); line-height: 1.6; }
.key-value dd { margin: 0; color: var(--text-secondary); line-height: 1.6; overflow-wrap: anywhere; }
.key-value dd.mono { font: 10px/1.6 var(--mono); }
.inspector-section .badge { margin-bottom: 9px; }

/* Flow execution remains visible beside the full-height canvas. */
.flow-dock { flex: 0 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px 9px; box-shadow: var(--shadow); margin-bottom: 12px; }
.flow-primary { display: flex; align-items: center; gap: 9px; min-height: 37px; }
.flow-selection { min-width: 145px; max-width: 310px; display: flex; flex-direction: column; gap: 2px; }
.flow-selection > label { color: var(--text-muted); font-size: 9px; font-weight: 550; }
.flow-selection > select { color: var(--text); font-weight: 580; font-size: 12px; border: 0; padding: 3px 22px 3px 0; background: transparent; min-height: 23px; max-width: 310px; }
.flow-selection > select:disabled { opacity: .6; }
.run-button { min-width: 119px; }
.run-button .icon { width: 14px; height: 14px; fill: currentColor; stroke-width: 1.2; }
.fixture-guard { display: inline-flex; gap: 5px; align-items: center; font-size: 9px; color: var(--text-muted); margin-left: 4px; }
.fixture-guard .icon { width: 12px; height: 12px; }
.ai-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-left: auto; padding-left: 12px; border-left: 1px solid var(--line); }
.ai-label { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text); font-size: 11px; font-weight: 600; margin-right: 3px; }
.ai-label .icon { width: 15px; height: 15px; }
.ai-label .status-dot { width: 4px; height: 4px; }
.ai-depth { display: inline-flex; align-items: center; gap: 3px; color: var(--text-muted); font-size: 9px; white-space: nowrap; min-height: 29px; padding-right: 2px; }
.ai-depth input { width: 12px; height: 12px; margin: 0; accent-color: var(--accent); }
.flow-secondary { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.flow-stages { display: flex; flex-wrap: wrap; gap: 3px 14px; list-style: none; padding: 0; margin: 0; }
.flow-stage { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: var(--text-muted); white-space: nowrap; }
.stage-marker { width: 12px; height: 12px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font: 7px var(--mono); color: var(--text-muted); }
.stage-marker .icon { width: 9px; height: 9px; }
.flow-stage[data-status="observed"] { color: var(--info); }
.flow-stage[data-status="observed"] .stage-marker { color: var(--info); border-color: var(--info); background: var(--info-soft); }
.flow-stage[data-status="running"] { color: var(--accent-text); }
.flow-stage[data-status="running"] .stage-marker { border-color: var(--accent); background: var(--accent-soft); animation: breathe 1.5s infinite; }
.flow-stage[data-status="blocked"], .flow-stage[data-status="failed"] { color: var(--warning); }
.flow-stage[data-status="blocked"] .stage-marker, .flow-stage[data-status="failed"] .stage-marker { color: var(--warning); border-color: var(--warning); background: var(--warning-soft); }
.flow-hint { color: var(--text-muted); font-size: 9px; margin-left: auto; text-align: right; max-width: 390px; line-height: 1.4; }
.scratch-banner { display: flex; align-items: center; gap: 7px; border-top: 1px solid var(--line); margin-top: 9px; padding-top: 9px; color: var(--accent-text); font-size: 11px; }
.scratch-banner > .icon { width: 14px; height: 14px; }
.scratch-banner > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.scratch-banner .button { color: var(--accent-text); }

/* Evidence is collapsed by default to keep the runtime canvases large. */
.evidence-drawer { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; flex: 0 0 auto; }
.evidence-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 39px; padding: 0 9px 0 4px; }
.evidence-tabs { display: flex; align-items: center; gap: 2px; min-width: 0; }
.evidence-tab { min-height: 37px; display: flex; align-items: center; gap: 6px; background: transparent; color: var(--text-muted); padding: 0 11px; font-size: 11px; border-bottom: 2px solid transparent; white-space: nowrap; }
.evidence-tab .icon { width: 13px; height: 13px; }
.evidence-tab[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 600; }
.evidence-tab:hover { color: var(--text); }
.tab-count { font: 9px var(--mono); padding: 2px 4px; border-radius: 4px; background: var(--surface-hover); color: var(--text-muted); }
.evidence-tab[aria-selected="true"] .tab-count { color: var(--accent-text); background: var(--accent-soft); }
.evidence-toolbar-end { display: flex; align-items: center; gap: 10px; }
.evidence-scope { font-size: 9px; color: var(--text-muted); white-space: nowrap; }
.evidence-toggle .icon { transition: transform .2s; transform: rotate(180deg); }
.evidence-drawer[data-open="true"] .evidence-toggle .icon { transform: rotate(0); }
.evidence-panels { border-top: 1px solid var(--line); height: 228px; max-height: 31vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.evidence-panel { padding: 14px 16px; min-height: 100%; }
.panel-empty { min-height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: var(--text-muted); text-align: center; }
.panel-empty > .icon { width: 21px; height: 21px; }
.panel-empty > p { font-size: 12px; line-height: 1.5; }
.panel-empty > span { font-size: 10px; line-height: 1.5; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-row { display: grid; grid-template-columns: 74px 18px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 8px 0; }
.timeline-row + .timeline-row { border-top: 1px solid var(--line); }
.timeline-time { color: var(--text-muted); font: 10px/1.8 var(--mono); white-space: nowrap; }
.timeline-symbol { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--info-soft); color: var(--info); }
.timeline-symbol .icon { width: 11px; height: 11px; }
.timeline-symbol.warning { background: var(--warning-soft); color: var(--warning); }
.timeline-symbol.danger { background: var(--danger-soft); color: var(--danger); }
.timeline-copy { min-width: 0; }
.timeline-copy strong { display: block; font-size: 11px; font-weight: 580; line-height: 1.55; overflow-wrap: anywhere; }
.timeline-copy p { font-size: 10px; color: var(--text-muted); line-height: 1.6; margin-top: 2px; overflow-wrap: anywhere; }
.timeline-row .badge { font-size: 9px; padding: 3px 5px; }
.results-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.results-summary > span:last-child { margin-left: auto; color: var(--text-muted); font-size: 10px; }
.results-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.results-table th { padding: 7px 9px; text-align: left; color: var(--text-muted); font-size: 9px; letter-spacing: .5px; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid var(--line-strong); background: var(--surface-soft); }
.results-table td { padding: 8px 9px; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; line-height: 1.55; }
.results-table tr:last-child td { border-bottom: 0; }
.results-table td:first-child { width: 34%; }
.results-table td:last-child { width: 90px; }
.result-detail { color: var(--text-muted); display: block; font-size: 10px; margin-top: 3px; }
.result-category { color: var(--text-muted); font-size: 10px; }
.results-note { color: var(--text-muted); font-size: 10px; line-height: 1.6; margin-top: 10px; }
.capture-issue { color: var(--warning); background: var(--warning-soft); border-radius: 5px; padding: 8px 10px; margin-bottom: 10px; }
.run-history-control { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 10px; color: var(--text-muted); margin-bottom: 11px; }
.run-history-control select { min-height: 29px; padding: 4px 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; font-size: 10px; max-width: 100%; }
.diff-details { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.diff-details summary { font-size: 11px; color: var(--text-secondary); }
.code-block { background: var(--surface-soft); color: var(--text-secondary); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; font: 10px/1.7 var(--mono); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; tab-size: 2; max-height: 300px; }
.input-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 22px; }
.input-grid > div { min-width: 0; }
.input-grid h3, .review-content h3 { font-size: 12px; font-weight: 620; margin-bottom: 10px; }
.input-digests { margin-top: 14px; }
.input-note { font-size: 10px; color: var(--text-muted); line-height: 1.6; margin-top: 10px; }
.input-details { margin-top: 12px; }
.input-details summary { font-size: 11px; color: var(--text-secondary); }
.review-header { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.review-header h3 { margin: 0; }
.review-scope { color: var(--text-muted); font-size: 10px; margin-left: auto; }
.review-content > p { color: var(--text-secondary); font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-content > ul { padding-left: 20px; color: var(--text-secondary); font-size: 11px; line-height: 1.8; }
.review-provenance { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 11px; }
.review-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; border: 1px solid var(--line); border-radius: 7px; padding: 11px 13px; margin: 13px 0; background: var(--surface-soft); }
.review-metric { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.review-metric > span { font-size: 9px; color: var(--text-muted); }
.review-metric > strong { font-size: 11px; font-weight: 580; color: var(--text-secondary); overflow-wrap: anywhere; line-height: 1.6; }
.workspace-footer { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; min-height: 29px; font-size: 9px; color: var(--text-muted); flex: 0 0 auto; }
.workspace-footer > span:last-child { white-space: nowrap; }
.spinner { width: 17px; height: 17px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; flex: 0 0 auto; }

/* Native dialogs supply focus containment and Escape behavior. */
.app-dialog { color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 0; box-shadow: var(--dialog-shadow); max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); width: 780px; }
.app-dialog::backdrop { background: #151c3a61; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.dialog-heading .eyebrow { color: var(--accent-text); font-size: 10px; letter-spacing: .4px; margin-bottom: 5px; }
.dialog-heading h2 { font-size: 21px; font-weight: 640; letter-spacing: -.5px; }
.dialog-body { padding: 22px 24px; overflow: auto; }
.dialog-body > p { font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
.dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--surface-soft); border-radius: 0 0 14px 14px; }
.dialog-footer > span { margin-right: auto; color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.source-detail { border: 1px solid var(--line); border-radius: 8px; padding: 16px; min-width: 0; }
.source-detail h3 { font-size: 13px; margin: 0 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.source-detail .key-value { margin-top: 15px; font-size: 11px; grid-template-columns: 85px minmax(0, 1fr); }
.source-issues { margin: 14px 0 0; padding-left: 15px; font-size: 10px; line-height: 1.7; color: var(--warning); overflow-wrap: anywhere; }
.source-dependencies { margin-top: 13px; font-size: 11px; color: var(--text-secondary); }
.source-scope-note { margin-top: 19px; padding: 12px 13px; border-radius: 7px; background: var(--info-soft); font-size: 11px; line-height: 1.6; color: var(--info); }
.enhance-dialog { width: 480px; }
.enhance-illustration { display: flex; align-items: center; gap: 12px; color: var(--accent-text); margin-bottom: 19px; }
.enhance-illustration .icon { width: 34px; height: 34px; stroke-width: 1.3; }
.enhance-illustration .icon:last-child { width: 21px; height: 21px; }
.dialog-callout { display: flex; align-items: flex-start; gap: 8px; padding: 12px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; margin-top: 16px; color: var(--text-secondary); font-size: 11px; line-height: 1.65; }
.dialog-callout .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--original); }
.dialog-error { color: var(--danger) !important; font-size: 11px !important; margin-top: 14px; }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 80; pointer-events: none; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 9px; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 9px; box-shadow: var(--dialog-shadow); color: var(--text); background: var(--surface); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.toast .icon { color: var(--info); width: 16px; height: 16px; margin-top: 2px; }
.toast.warning .icon { color: var(--warning); }
.noscript-message { position: fixed; inset: 40% 20%; background: var(--warning-soft); color: var(--warning); border: 1px solid var(--warning); padding: 24px; border-radius: 9px; z-index: 100; line-height: 1.7; }
.print-summary { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .45; } }

@media (min-width: 1700px) {
  .app-body { grid-template-columns: 264px minmax(0, 1fr); }
  .workspace { padding-left: 26px; padding-right: 26px; }
  .comparison-stage, .paired-canvases { gap: 18px; }
  .case-browser { padding-left: 17px; padding-right: 17px; }
  .catalog-footer { margin-left: -17px; margin-right: -17px; padding-left: 21px; padding-right: 21px; }
  .runtime-card-header { padding: 12px 16px; }
  .inline-inspector { width: 330px; flex-basis: 330px; }
}

@media (max-width: 1350px) {
  .app-header { padding: 0 16px; }
  .local-label { display: none; }
  .workspace { padding: 0 16px; }
  .theme-summary { display: none; }
  .fixture-guard { display: none; }
  .comparison-toolbar { gap: 10px; }
  .lens-control > button { padding: 5px 7px; }
  .flow-hint { max-width: 220px; }
  .flow-stages { gap: 3px 9px; }
  .runtime-title h2 { font-size: 11px; }
  .runtime-card-header { padding: 10px; }
  .runtime-index { width: 23px; height: 23px; }
  .inline-inspector { width: 265px; flex-basis: 265px; min-width: 220px; }
  .comparison-stage[data-lens="inspect"] .paired-canvases { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 1050px) {
  .app-body { grid-template-columns: 215px minmax(0, 1fr); }
  .brand-subtitle { display: none; }
  .connection-state { margin-right: 4px; }
  .connection-state > span:last-child { display: none; }
  .header-source { padding-left: 7px; padding-right: 7px; }
  .case-browser { padding-left: 11px; padding-right: 11px; }
  .catalog-footer { margin-left: -11px; margin-right: -11px; }
  .comparison-toolbar { flex-wrap: wrap; gap: 7px; }
  .viewport-controls { margin-left: auto; }
  .select-control select { font-size: 10px; padding-right: 18px; }
  .zoom-select { display: none; }
  .ai-controls { gap: 4px; padding-left: 8px; }
  .ai-controls .button { padding: 6px; }
  .ai-label > span:not(.status-dot) { display: none; }
  .flow-primary { flex-wrap: wrap; }
  .flow-selection { min-width: 120px; max-width: 220px; }
  .flow-selection > select { max-width: 220px; }
  .flow-secondary { flex-wrap: wrap; }
  .flow-hint { max-width: none; text-align: left; margin-left: 0; }
  .evidence-scope { display: none; }
  .evidence-tab { padding-left: 8px; padding-right: 8px; font-size: 10px; }
  .runtime-header-end .frame-retry { display: none; }
  .runtime-card-footer { padding-left: 9px; padding-right: 9px; }
  .footer-theme { max-width: 58%; }
}

@media (max-width: 900px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .catalog-toggle { display: inline-flex; }
  .case-browser { position: fixed; left: 0; top: var(--header-height); bottom: 0; width: min(310px, calc(100vw - 40px)); z-index: 45; box-shadow: 10px 0 40px #10234220; transform: translateX(-110%); visibility: hidden; transition: transform .2s, visibility .2s; }
  .catalog-open .case-browser { transform: translateX(0); visibility: visible; transition: transform .2s; }
  .catalog-close { display: inline-flex; margin-left: auto; }
  .catalog-scrim { position: fixed; inset: var(--header-height) 0 0; background: #10183269; z-index: 40; }
  .workspace { padding-left: 18px; padding-right: 18px; }
  .connection-state > span:last-child { display: inline; }
  .comparison-toolbar { flex-wrap: nowrap; }
  .zoom-select { display: flex; }
  .lens-control > button { padding-left: 8px; padding-right: 8px; }
  .ai-controls { gap: 6px; padding-left: 12px; }
  .ai-controls .button { padding-left: 8px; padding-right: 8px; }
  .ai-label > span:not(.status-dot) { display: inline; }
  .runtime-header-end .frame-retry { display: inline-flex; }
  .evidence-tab { font-size: 11px; }
}

@media (max-width: 700px) {
  :root { --header-height: 60px; }
  .app-shell { min-height: 100vh; min-height: 100dvh; height: auto; overflow: visible; }
  .app-header { padding: 0 10px; gap: 5px; }
  .brand-block { gap: 6px; }
  .brand-mark { width: 29px; height: 29px; border-radius: 8px; }
  .brand-mark .icon { width: 19px; height: 19px; }
  .brand-name { font-size: 13px; }
  .header-actions { gap: 2px; }
  .connection-state, .header-divider { display: none; }
  .header-source { display: inline-flex; width: 29px; min-height: 32px; padding: 0; }
  .header-source > span { display: none; }
  .export-button { padding: 7px 8px; margin-left: 2px; }
  .export-button > span { display: none; }
  .export-button .icon { width: 15px; height: 15px; }
  .header-actions > .icon-button { width: 29px; min-height: 32px; }
  .catalog-toggle { width: 28px; }
  .app-body { min-height: 0; flex: 1; }
  .workspace { padding: 0 12px; overflow: visible; }
  .workspace-heading { min-height: 90px; padding: 15px 0 12px; gap: 7px; align-items: flex-start; }
  h1 { font-size: 20px; letter-spacing: -.5px; }
  .case-heading-status { gap: 5px; padding-top: 14px; }
  .case-heading-status .button { padding: 5px; font-size: 10px; }
  .case-heading-status .button > span { display: none; }
  .case-meta { font-size: 9px; }
  .comparison-toolbar { flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 10px; }
  .lens-control { flex: 1; }
  .lens-control > button { flex: 1; font-size: 10px; min-height: 30px; padding: 5px 7px; }
  .viewport-controls { width: 100%; margin-left: 0; justify-content: space-between; }
  .viewport-select { flex: 1; }
  .viewport-select select { width: 100%; font-size: 11px; }
  .zoom-select { display: flex; }
  .comparison-stage { flex: none; min-height: 0; flex-direction: column; gap: 10px; }
  .paired-canvases, .comparison-stage[data-lens="stacked"] .paired-canvases, .comparison-stage[data-lens="inspect"] .paired-canvases { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: 11px; }
  .runtime-card { height: 367px; min-height: 280px; }
  .canvas-host { min-height: 190px; }
  .runtime-card-header { padding: 10px 12px; min-height: 53px; }
  .runtime-title h2 { font-size: 12px; }
  .runtime-card-footer { min-height: 27px; }
  .source-caption { max-width: 190px; }
  .canvas-empty { padding: 20px; }
  .inline-inspector { width: 100%; min-width: 0; flex: none; max-height: 450px; }
  .flow-dock { padding: 10px; margin-bottom: 10px; }
  .flow-primary { gap: 9px; flex-wrap: wrap; }
  .flow-selection { flex: 1; max-width: calc(100% - 125px); min-width: 0; }
  .flow-selection > select { max-width: 100%; font-size: 11px; }
  .run-button { min-width: 115px; font-size: 11px; }
  .ai-controls { width: 100%; margin-left: 0; border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; justify-content: flex-end; gap: 7px; }
  .ai-label { margin-right: auto; font-size: 11px; flex: 1 1 calc(100% - 70px); }
  .ai-controls .button { min-height: 32px; padding: 6px 10px; flex: 1; }
  .ai-controls .ai-compare { flex: 1 1 100%; }
  .review-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-secondary { gap: 8px; padding-top: 10px; }
  .flow-stages { width: 100%; gap: 7px 12px; }
  .flow-stage { font-size: 9px; }
  .flow-hint { font-size: 9px; line-height: 1.6; }
  .evidence-toolbar { padding-right: 4px; gap: 0; }
  .evidence-tabs { flex: 1; gap: 0; justify-content: space-between; }
  .evidence-tab { padding: 0 5px; gap: 4px; font-size: 9px; }
  .evidence-tab .icon { display: none; }
  .tab-count { font-size: 8px; padding: 2px 3px; }
  .evidence-toggle { width: 26px; }
  .evidence-panels { height: auto; max-height: 450px; min-height: 190px; }
  .evidence-panel { padding: 13px 11px; }
  .timeline-row { grid-template-columns: 57px 15px minmax(0, 1fr); gap: 7px; }
  .timeline-time { font-size: 8px; }
  .timeline-row > .badge { grid-column: 3; justify-self: start; }
  .timeline-copy strong { font-size: 10px; }
  .input-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .results-table th, .results-table td { padding-left: 5px; padding-right: 5px; }
  .results-table td { font-size: 10px; }
  .results-table td:first-child { width: 40%; }
  .results-table td:last-child { width: 65px; }
  .results-table .badge { font-size: 9px; padding: 4px; }
  .results-summary > span:last-child { margin-left: 0; width: 100%; }
  .workspace-footer { flex-wrap: wrap; gap: 4px; padding: 9px 1px 13px; line-height: 1.5; font-size: 8px; }
  .connection-banner { padding: 9px; gap: 8px; }
  .connection-banner strong { font-size: 11px; }
  .connection-banner p { font-size: 10px; }
  .connection-banner > .icon { display: none; }
  .source-grid { grid-template-columns: minmax(0, 1fr); }
  .dialog-heading, .dialog-body { padding: 18px; }
  .dialog-heading h2 { font-size: 19px; }
  .dialog-footer { padding: 13px 18px; flex-wrap: wrap; }
  .dialog-footer > span { flex: 1 1 100%; font-size: 9px; }
  .dialog-footer .button { font-size: 11px; padding-left: 10px; padding-right: 10px; }
  .toast-region { right: 12px; bottom: 14px; }
  .toast { font-size: 11px; }
  .scratch-banner { flex-wrap: wrap; font-size: 10px; }
  .scratch-banner > span { flex: 1 1 70%; }
}

@media (max-width: 390px) {
  .brand-block { gap: 5px; }
  .app-header { padding-left: 8px; padding-right: 8px; }
  .header-actions > .icon-button { width: 27px; }
  .brand-name { font-size: 12px; }
  .lens-control > button { padding-left: 5px; padding-right: 5px; }
  .flow-stages { gap: 7px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .button, .icon-button, .segmented > button, .case-item, .badge, .status-dot, .stage-marker { border: 1px solid ButtonText; }
  .case-item[aria-current="true"], .segmented > button[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
  .canvas-host { background-image: none; }
}

@media print {
  :root { color-scheme: light; }
  body { color: #162035; background: #fff; font-size: 11px; }
  .app-shell, .toast-region, .app-dialog, .skip-link, .noscript-message { display: none !important; }
  .print-summary { display: block; }
  .print-summary > header { border-bottom: 2px solid #5c4ce2; padding-bottom: 12px; margin-bottom: 16px; }
  .print-summary h1 { font-size: 24px; margin: 0 0 7px; }
  .print-summary h2 { font-size: 15px; margin: 20px 0 10px; }
  .print-summary p { margin: 6px 0; line-height: 1.6; color: #445065; }
  .print-summary .key-value { grid-template-columns: 130px 1fr; }
  .print-summary .key-value dt, .print-summary .key-value dd { color: #162035; font-size: 10px; }
  .print-summary .source-grid { gap: 14px; }
  .print-summary .source-detail { border-color: #b9c0cf; }
  .print-summary .source-detail h3 { font-size: 12px; }
  .print-summary .badge { color: #162035; border: 1px solid #b9c0cf; background: #fff; }
  .print-summary .results-table { font-size: 10px; }
  .print-summary .results-table th, .print-summary .results-table td { border-color: #d5d9e1; color: #162035; }
  .print-summary .results-table th { background: #f2f3f6; }
  .print-summary .timeline-copy p, .print-summary .timeline-time { color: #445065; }
  .print-summary .timeline-row { break-inside: avoid; }
  .print-summary .source-detail, .print-summary .results-table tr { break-inside: avoid; }
  .print-summary details, .print-summary .icon-button { display: none; }
  @page { margin: 16mm; }
}
