.ded-app {
  --paper: #F3F2F0;
  --surface: #FFFFFF;
  --surface-strong: #FFFFFF;
  --ink: #000000;
  --muted: color-mix(in srgb, #000000 62%, #FFFFFF);
  --faint: color-mix(in srgb, #000000 48%, #FFFFFF);
  --line: color-mix(in srgb, #000000 20%, #FFFFFF);
  --line-soft: color-mix(in srgb, #000000 10%, #FFFFFF);
  --green: #EB1700;
  --green-soft: color-mix(in srgb, #EB1700 10%, #FFFFFF);
  --amber: color-mix(in srgb, #EB1700 72%, #000000);
  --amber-soft: color-mix(in srgb, #EB1700 7%, #FFFFFF);
  --red: #EB1700;
  --red-soft: color-mix(in srgb, #EB1700 12%, #FFFFFF);
  --blue: color-mix(in srgb, #000000 66%, #FFFFFF);
  --blue-soft: color-mix(in srgb, #000000 7%, #FFFFFF);
  --shadow: 0 12px 32px color-mix(in srgb, #000000 9%, transparent);
  --radius: 10px;
  --font-sans: Arial, sans-serif;
  --font-serif: Arial, sans-serif;
}

:root[data-effective-theme="dark"] .ded-app,
:root[data-theme="dark"] .ded-app {
  --paper: #312C2A;
  --surface: color-mix(in srgb, #FFFFFF 7%, #312C2A);
  --surface-strong: color-mix(in srgb, #FFFFFF 11%, #312C2A);
  --ink: #FFFFFF;
  --muted: color-mix(in srgb, #FFFFFF 72%, #312C2A);
  --faint: color-mix(in srgb, #FFFFFF 55%, #312C2A);
  --line: color-mix(in srgb, #FFFFFF 25%, #312C2A);
  --line-soft: color-mix(in srgb, #FFFFFF 13%, #312C2A);
  --green: #EB1700;
  --green-soft: color-mix(in srgb, #EB1700 22%, #312C2A);
  --amber: color-mix(in srgb, #EB1700 78%, #FFFFFF);
  --amber-soft: color-mix(in srgb, #EB1700 16%, #312C2A);
  --red: color-mix(in srgb, #EB1700 78%, #FFFFFF);
  --red-soft: color-mix(in srgb, #EB1700 18%, #312C2A);
  --blue: color-mix(in srgb, #FFFFFF 78%, #312C2A);
  --blue-soft: color-mix(in srgb, #FFFFFF 12%, #312C2A);
  --shadow: 0 16px 38px color-mix(in srgb, #000000 34%, transparent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.ded-app {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.shell { width: min(1440px, 100%); margin: 0 auto; padding: 0 4vw; }

.masthead {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; width: fit-content; align-items: center; text-decoration: none; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 15px; letter-spacing: -.01em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.primary-nav { display: flex; align-items: center; gap: 5px; padding: 4px; }
.primary-nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 560; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--ink); background: var(--surface); outline: none; }
.primary-nav a.active { color: var(--green); background: var(--green-soft); }
.icon-button { width: 38px; height: 38px; padding: 9px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); cursor: pointer; }
.icon-button:hover, .icon-button:focus-visible { border-color: var(--green); outline: 3px solid color-mix(in srgb, var(--green), transparent 75%); }
.icon-button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ded-local-theme { justify-self: end; display: inline-flex; align-items: center; gap: 6px; min-width: 92px; min-height: 42px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); cursor: pointer; }
.ded-local-theme:hover, .ded-local-theme:focus-visible { border-color: var(--green); outline: 3px solid color-mix(in srgb, var(--green), transparent 72%); outline-offset: 2px; }
.ded-local-theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ded-local-theme__track { position: relative; width: 30px; height: 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.ded-local-theme__thumb { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); transition: transform .16s ease; }
html[data-theme-preference="dark"] .ded-local-theme__thumb { transform: translateX(14px); }
html[data-theme-preference="system"] .sp-theme__thumb { transform: translateX(7px); }

.hero { min-height: 0; padding: clamp(30px, 4vw, 54px) 0 28px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
h1 { margin: 16px 0 14px; font: 700 clamp(36px, 4.5vw, 64px)/1.02 var(--font-serif); letter-spacing: -.04em; max-width: 900px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: 12px; }
.hero-copy { margin: 0; max-width: 760px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.trust-statement, .no-remediation { max-width: 760px; margin: 14px 0 0; }
.trust-statement strong { color: var(--ink); }
.no-remediation { border-left: 3px solid var(--green); padding-left: 13px; color: var(--muted); font-size: 13px; }
.first-run-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.first-run-actions .action-button { min-width: 220px; text-align: left; }
.first-run-actions .action-button span { display: block; margin-top: 2px; font-size: 10px; opacity: .76; }
.first-run-panel { border-top: 4px solid var(--green); padding: 20px 0 0; }
.first-run-panel h2 { margin: 6px 0 16px; font-size: 25px; }
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.process-list li b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #FFFFFF; background: var(--green); }
.process-list strong { display: block; color: var(--ink); font-size: 13px; }
.sample-summary { margin-top: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); }
.sample-summary strong, .sample-summary span { display: block; }
.sample-summary span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.tell-boundary { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; align-items: start; margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tell-boundary h2 { margin: 5px 0 0; font-size: 18px; }
.tell-boundary p { margin: 0; color: var(--muted); font-size: 12px; }
.tell-boundary strong { color: var(--ink); }
.review-tools { display: grid; grid-template-columns: minmax(300px, 1fr) auto; gap: 16px; align-items: center; margin: 24px 0 28px; }
.search-wrap { position: relative; display: flex; align-items: center; width: min(720px, 100%); }
.search-wrap svg { position: absolute; left: 20px; width: 21px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-wrap input { width: 100%; height: 50px; padding: 0 54px; color: var(--ink); background: var(--surface-strong); border: 1px solid var(--line); border-radius: 6px; outline: none; }
.search-wrap input:focus { border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green), transparent 82%), var(--shadow); outline: 3px solid color-mix(in srgb, var(--green), transparent 72%); outline-offset: 2px; }
.search-wrap kbd { position: absolute; right: 18px; padding: 2px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; color: var(--faint); background: var(--surface); font-size: 11px; }

.view { animation: enter .24s ease-out both; padding-bottom: 70px; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 24px; }
.section-heading h2 { margin: 0; font: 500 34px/1.1 var(--font-serif); letter-spacing: -.025em; }
.section-heading p { max-width: 600px; margin: 8px 0 0; color: var(--muted); }
.section-kicker { color: var(--green); font-size: 11px; font-weight: 750; letter-spacing: .04em; }

.metric-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.metric { padding: 25px 24px 25px 0; }
.metric + .metric { padding-left: 24px; border-left: 1px solid var(--line); }
.metric strong { display: block; font: 500 32px/1 var(--font-serif); letter-spacing: -.03em; }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .75fr); gap: 28px; }
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.ded-stack-top-24 { margin-top: 24px; }
.ded-stack-top-14 { margin-top: 14px; }
.ded-section-nav { margin: 14px 0 0; border-bottom: 1px solid var(--line-soft); }
.panel h3 { margin: 0 0 18px; font-size: 16px; }
.panel > p { color: var(--muted); }
.priority-list, .evidence-list, .timeline, .learning-list { list-style: none; padding: 0; margin: 0; }
.priority-item { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.priority-item:first-child { border-top: 0; }
.priority-item:hover h4 { color: var(--green); }
.priority-item h4 { margin: 0 0 4px; font-size: 14px; }
.priority-item p { margin: 0; color: var(--muted); font-size: 13px; }
.severity-mark { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--faint); }
.severity-mark.critical, .severity-mark.high { background: var(--red); }
.severity-mark.medium { background: var(--amber); }
.severity-mark.low, .severity-mark.info { background: var(--blue); }
.arrow { color: var(--faint); }
.assurance-grid { display: grid; gap: 2px; }
.assurance { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.assurance:last-child { border: 0; }
.assurance span { color: var(--muted); font-size: 13px; }
.pill { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border-radius: 100px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pill.warn { background: var(--amber-soft); color: var(--amber); }
.pill.danger { background: var(--red-soft); color: var(--red); }
.pill.neutral { background: var(--line-soft); color: var(--muted); }

.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.filter-button, .sort-select { min-height: 38px; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--muted); padding: 7px 13px; cursor: pointer; }
.filter-button:hover, .filter-button:focus-visible, .filter-button.active { color: var(--green); background: var(--green-soft); border-color: transparent; outline: none; }
.sort-select { margin-left: auto; border-radius: 9px; background: var(--surface); color: var(--ink); }
.result-count { color: var(--muted); font-size: 12px; }
.finding-list { display: grid; gap: 12px; }
.finding-card { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; text-align: left; padding: 22px; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); }
.finding-card[data-severity="critical"], .finding-card[data-severity="high"] { border-left-color: var(--red); }
.finding-card:hover { box-shadow: var(--shadow); }
.finding-card h3 { margin: 0 0 7px; font-size: 18px; }
.finding-reason { margin: 0; color: var(--muted); font-size: 13px; }
.finding-evidence { margin: 13px 0 0; padding: 10px 12px; border-left: 2px solid var(--line); background: var(--paper); color: var(--ink); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.finding-evidence span { display: block; margin-bottom: 3px; color: var(--muted); font: 700 10px Arial, sans-serif; }
.finding-dimensions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.finding-dimensions span { display: inline-flex; gap: 4px; align-items: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.finding-dimensions b { color: var(--ink); }
.finding-action-column { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 16px; }
.finding-meta { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.finding-review-action { min-height: 40px; padding: 8px 12px; border: 1px solid var(--ink); border-radius: 4px; color: var(--surface); background: var(--ink); cursor: pointer; white-space: nowrap; }
.finding-review-action:hover, .finding-review-action:focus-visible { color: #FFFFFF; border-color: var(--green); background: var(--green); outline: 3px solid color-mix(in srgb, var(--green), transparent 72%); outline-offset: 2px; }
.sensitivity-explainer { margin: 0 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.sensitivity-explainer summary { cursor: pointer; font-weight: 700; }
.sensitivity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.sensitivity-grid div { padding-right: 14px; border-right: 1px solid var(--line); }
.sensitivity-grid div:nth-child(3n) { border-right: 0; }
.sensitivity-grid h3 { margin: 0 0 5px; font-size: 13px; }
.sensitivity-grid p { margin: 0; color: var(--muted); font-size: 11px; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); font: 500 24px var(--font-serif); }

.coverage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.coverage-card { padding: 22px; min-height: 150px; border-top: 3px solid var(--green); border-radius: 5px 5px var(--radius) var(--radius); background: var(--surface); }
.coverage-card.partial { border-color: var(--amber); }
.coverage-card.failed { border-color: var(--red); }
.coverage-card strong { display: block; font: 500 32px var(--font-serif); }
.coverage-card h3 { margin: 8px 0 5px; font-size: 14px; }
.coverage-card p { margin: 0; color: var(--muted); font-size: 12px; }
.detector-row { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr auto; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.detector-row progress { width: 100%; height: 7px; border: 0; border-radius: 10px; overflow: hidden; background: var(--line-soft); }
.detector-row progress::-webkit-progress-bar { background: var(--line-soft); }
.detector-row progress::-webkit-progress-value { background: var(--green); border-radius: 10px; }
.detector-row progress::-moz-progress-bar { background: var(--green); border-radius: 10px; }

.trust-gate { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .7fr); gap: 28px; margin: -18px 0 48px; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trust-copy h2, .local-scan-panel h2 { margin: 8px 0; font: 500 29px/1.1 var(--font-serif); }
.trust-copy p, .local-scan-panel p { color: var(--muted); }
.capability-preview { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.capability-preview b { display: inline-block; min-width: 90px; color: var(--ink); }
.mode-switch, .scan-controls { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.mode-button, .action-button { min-height: 42px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface-strong); cursor: pointer; }
.mode-button.active, .action-button.primary { color: #FFFFFF; border-color: var(--green); background: var(--green); }
.mode-button:focus-visible, .action-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--green), transparent 75%); }
.action-button.secondary { color: var(--muted); }
.action-button.danger { color: var(--red); }
.action-button:disabled { opacity: .45; cursor: not-allowed; }
.review-tools .mode-switch { margin-top: 0; justify-self: end; }
.trust-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-content: start; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trust-facts span { display: flex; gap: 8px; padding: 9px 18px 9px 0; margin-right: 18px; color: var(--muted); font-size: 11px; }
.trust-facts b { color: var(--ink); font-weight: 650; }
.trust-facts code { color: var(--ink); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.local-scan-panel { margin: -24px 0 48px; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--green); border-radius: var(--radius); background: var(--green-soft); }
.local-scan-panel[hidden] { display: none; }
.scan-status { padding: 12px 14px; border-radius: 9px; background: var(--surface); }
.scan-status[data-tone="success"] { color: var(--green); }
.scan-status[data-tone="warn"] { color: var(--amber); }
.scan-status[data-tone="error"] { color: var(--red); }
.local-scan-panel details { color: var(--muted); font-size: 12px; }
.local-scan-panel summary { cursor: pointer; color: var(--ink); font-weight: 650; }
.export-proof { margin-top: 18px; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.export-proof[hidden] { display: none; }
.export-proof h3 { margin: 5px 0; font-size: 20px; }
.export-proof p { margin: 0; }
.export-proof dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 16px 0 0; border: 1px solid var(--line); background: var(--line); }
.export-proof dl div { min-width: 0; padding: 12px; background: var(--surface); }
.export-proof dt { color: var(--muted); font-size: 10px; font-weight: 700; }
.export-proof dd { margin: 4px 0 0; overflow-wrap: anywhere; font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }

.evidence-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.check { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-weight: 900; font-size: 11px; }
.evidence-list h3 { margin: 0 0 4px; font-size: 14px; }
.evidence-list p { margin: 0; color: var(--muted); font-size: 12px; }
.identity-block { padding: 18px; border-radius: 12px; background: var(--paper); overflow-wrap: anywhere; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }

.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 12px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 24px 30px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.timeline strong { display: block; font-size: 13px; }
.timeline span { color: var(--muted); font-size: 12px; }
.learning-card { padding: 24px 0; border-top: 1px solid var(--line); }
.learning-card:first-child { border-top: 0; }
.learning-card h3 { margin: 8px 0; font: 500 22px var(--font-serif); }
.learning-card p { margin: 5px 0; color: var(--muted); }
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.flow span { padding: 7px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-soft); font-size: 11px; }
.flow b { color: var(--faint); font-weight: 400; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(13,20,16,.30); backdrop-filter: blur(2px); }
.drawer { position: fixed; z-index: 21; top: 0; right: 0; width: min(680px, 96vw); height: 100vh; overflow-y: auto; padding: 34px clamp(24px, 5vw, 48px); background: var(--surface-strong); box-shadow: var(--shadow); transform: translateX(102%); transition: transform .24s ease; }
.drawer.open { transform: translateX(0); }
.drawer-close { position: sticky; top: 0; float: right; z-index: 2; font-size: 23px; line-height: 15px; }
.drawer h2 { margin: 38px 0 12px; font: 700 36px/1.05 var(--font-serif); letter-spacing: -.025em; }
.drawer .narrative { color: var(--muted); font-size: 16px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 28px 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.detail-grid div { padding: 14px; background: var(--surface); }
.detail-grid span, .detail-section span { display: block; margin-bottom: 4px; color: var(--faint); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.detail-grid strong { font-size: 13px; }
.detail-section { padding: 18px 0; border-top: 1px solid var(--line-soft); }
.detail-section p { margin: 0; }
.detail-section h3 { margin: 0 0 6px; font-size: 15px; }
.detail-section .detail-label { margin-bottom: 6px; }
.detection-details { margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detection-details summary { cursor: pointer; font-weight: 700; }
.detection-details dl { display: grid; grid-template-columns: minmax(130px, .4fr) 1fr; gap: 8px 16px; margin: 16px 0 0; }
.detection-details dt { color: var(--muted); font-size: 11px; }
.detection-details dd { margin: 0; overflow-wrap: anywhere; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 38px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; }

@media (max-width: 900px) {
  .shell { padding: 0 24px; }
  .masthead { grid-template-columns: 1fr auto; }
  .primary-nav { grid-column: 1 / -1; order: 3; width: 100%; overflow-x: auto; padding: 10px 0; border-top: 1px solid var(--line-soft); }
  .masthead { height: auto; min-height: 76px; padding-top: 14px; }
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1fr; }
  .tell-boundary { grid-template-columns: 1fr 1fr; }
  .tell-boundary > div { grid-column: 1 / -1; }
  .review-tools { grid-template-columns: 1fr auto; }
  .split { grid-template-columns: 1fr; }
  .trust-gate { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .shell { padding: 0 16px; }
  .hero { padding-top: 56px; }
  h1 { font-size: 44px; }
  .metric-ribbon { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .coverage-grid { grid-template-columns: 1fr; }
  .finding-card { grid-template-columns: 1fr; }
  .finding-action-column { align-items: flex-start; }
  .finding-meta { justify-content: flex-start; }
  .sensitivity-grid { grid-template-columns: 1fr; }
  .sensitivity-grid div { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; }
  .tell-boundary { grid-template-columns: 1fr; }
  .tell-boundary > div { grid-column: auto; }
  .review-tools { grid-template-columns: 1fr; }
  .review-tools .mode-switch { justify-self: start; }
  .export-proof dl { grid-template-columns: 1fr; }
  .sort-select { width: 100%; margin-left: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  footer { display: block; }
  footer span { display: block; margin-top: 6px; }
}

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

@media print {
  .masthead, .review-tools, .local-scan-panel, .drawer, .drawer-backdrop, .first-run-actions, footer { display: none !important; }
  body, .panel, .finding-card, .coverage-card { color: #000000; background: #FFFFFF; box-shadow: none; }
  .shell { width: 100%; padding: 0; }
  .hero { min-height: 0; padding: 20px 0; }
  a { text-decoration: underline; }
}
