:root {
  --ink: #e8ecf4;
  --muted: #9aa5ba;
  --faint: #657086;
  --paper: #10141f;
  --panel: #171d2b;
  --panel-raised: #1d2536;
  --line: #2c364a;
  --blue: #92b4ff;
  --blue-strong: #5d88ff;
  --cyan: #70d9dc;
  --critical: #ff6c74;
  --critical-bg: #381d28;
  --high: #f4af57;
  --high-bg: #382a1e;
  --medium: #d8c66b;
  --medium-bg: #38351e;
  --low: #7ad5ad;
  --low-bg: #18352f;
  --clear: #7aa6ff;
  --radius: 16px;
  --shadow: 0 14px 50px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .9em; }
.site-shell { min-height: 100vh; overflow: hidden; }

.topbar {
  align-items: center;
  border-bottom: 1px solid rgba(150, 169, 205, .15);
  display: flex;
  height: 68px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1320px;
  padding: 0 32px;
}
.brand { align-items: center; display: inline-flex; font-size: 20px; font-weight: 750; gap: 10px; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { align-items: center; background: linear-gradient(145deg, var(--blue-strong), #9b7dff); border-radius: 8px; display: inline-flex; font-family: Georgia, serif; font-size: 16px; font-style: italic; height: 28px; justify-content: center; width: 28px; }
.topbar nav { display: flex; gap: 24px; margin-left: auto; margin-right: 32px; }
.topbar nav a, .topbar-note { color: var(--muted); font-size: 13px; text-decoration: none; }
.topbar nav a:hover, .text-link:hover, .agent-link:hover, .table-link:hover { color: var(--blue); }
.topbar-note { border-left: 1px solid var(--line); padding-left: 28px; }

main { margin: 0 auto; max-width: 1240px; padding: 0 32px 72px; }
footer { border-top: 1px solid rgba(150,169,205,.15); color: var(--faint); display: flex; font-size: 12px; gap: 18px; justify-content: space-between; margin: 0 auto; max-width: 1320px; padding: 24px 32px 32px; }

.hero { border-bottom: 1px solid var(--line); padding: 68px 0 50px; position: relative; }
.hero:before { background: radial-gradient(circle, rgba(82, 126, 255, .16) 0, rgba(16,20,31,0) 68%); content: ""; height: 700px; pointer-events: none; position: absolute; right: -380px; top: -330px; width: 700px; }
.hero-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1.45fr) minmax(285px, .7fr); position: relative; }
.eyebrow { align-items: center; color: var(--blue); display: flex; font-size: 11px; font-weight: 750; gap: 7px; letter-spacing: .11em; text-transform: uppercase; }
.live-dot { background: var(--cyan); border-radius: 999px; box-shadow: 0 0 0 5px rgba(112, 217, 220, .1); height: 7px; width: 7px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 6vw, 76px); letter-spacing: -.065em; line-height: .98; margin: 20px 0 22px; max-width: 760px; }
h1 em { color: var(--blue); font-family: Georgia, serif; font-weight: 500; }
h2 { font-size: clamp(26px, 3.2vw, 37px); letter-spacing: -.04em; line-height: 1.06; margin-bottom: 0; }
h3 { font-size: 18px; letter-spacing: -.025em; line-height: 1.2; }
.hero-copy { color: #bec7d8; font-size: 18px; line-height: 1.6; max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button { align-items: center; border: 1px solid transparent; border-radius: 9px; display: inline-flex; font-size: 13px; font-weight: 700; gap: 8px; justify-content: center; min-height: 42px; padding: 0 17px; text-decoration: none; transition: background .17s ease, border-color .17s ease, transform .17s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue-strong); color: #fff; }
.button-primary:hover { background: #7499ff; }
.button-quiet { background: rgba(255,255,255,.025); border-color: var(--line); color: var(--ink); }
.button-quiet:hover { border-color: #63718a; }
.button-inverted { background: #f8f9fd; color: #192033; white-space: nowrap; }
.analysis-panel { align-self: end; background: rgba(24, 31, 47, .76); border: 1px solid rgba(137, 159, 205, .26); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.panel-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; margin-bottom: 12px; text-transform: uppercase; }
.scope-line { border-top: 1px solid var(--line); display: flex; font-size: 13px; gap: 12px; padding: 11px 0; }
.scope-line span { color: var(--blue); font-family: monospace; }
.analysis-panel p { color: var(--faint); font-size: 12px; line-height: 1.5; margin: 10px 0 0; }

.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); margin: 34px 0; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; display: flex; flex-direction: column; min-height: 126px; padding: 18px; }
.stat-card strong { font-size: 33px; letter-spacing: -.06em; line-height: 1.1; margin: 8px 0 auto; }
.stat-card > span:last-child { color: var(--muted); font-size: 12px; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.stat-critical { border-color: rgba(255, 108, 116, .55); }
.stat-critical strong { color: var(--critical); }

.enrichment-status, .report-enrichment { background: rgba(33, 41, 61, .66); border: 1px solid rgba(112, 217, 220, .25); border-radius: 12px; display: flex; gap: 20px; justify-content: space-between; padding: 16px 18px; }
.enrichment-status { margin: -15px 0 24px; }
.enrichment-status-copy { min-width: 0; }
.enrichment-status .eyebrow { color: var(--cyan); font-size: 9px; margin-bottom: 5px; }
.enrichment-status-heading { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.enrichment-status-heading > strong { color: var(--ink); font-size: 14px; }
.enrichment-status p, .report-enrichment p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 5px 0 0; max-width: 720px; }
.enrichment-mode { background: rgba(112, 217, 220, .11); border: 1px solid rgba(112, 217, 220, .23); border-radius: 999px; color: #a7e9eb; font-family: monospace; font-size: 9px; padding: 2px 7px; }
.enrichment-disclosure, .enrichment-detail { color: var(--faint) !important; font-size: 11px !important; }
.enrichment-operation-list { align-content: start; display: flex; flex: 0 1 540px; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.enrichment-operation { background: rgba(12, 17, 29, .45); border: 1px solid rgba(128, 151, 195, .22); border-radius: 8px; display: flex; flex-direction: column; min-width: 148px; padding: 8px 9px; }
.enrichment-operation > span { color: var(--muted); font-size: 10px; }
.enrichment-operation > strong { color: #9de8eb; font-size: 11px; font-weight: 750; text-transform: capitalize; }
.enrichment-operation > small { color: var(--faint); font-size: 9px; line-height: 1.35; margin-top: 2px; }
.enrichment-operation.is-incomplete { border-color: rgba(244,175,87,.58); }
.enrichment-operation.is-incomplete > strong { color: #f5c180; }
.enrichment-partial { border-color: rgba(244,175,87,.6); }
.enrichment-partial .enrichment-status-heading > strong { color: #f5c180; }
.enrichment-recorded { border-color: rgba(180,149,255,.48); }
.enrichment-recorded .enrichment-status-heading > strong { color: #d2c1ff; }
.enrichment-not-run, .enrichment-not-recorded { border-color: rgba(128,151,195,.3); }
.enrichment-not-run .enrichment-status-heading > strong, .enrichment-not-recorded .enrichment-status-heading > strong { color: #c3cbe0; }

.hero-finding { border: 1px solid rgba(255,108,116,.7); border-radius: var(--radius); box-shadow: 0 20px 65px rgba(0,0,0,.2); margin: 24px 0 56px; overflow: hidden; padding: 25px 27px 20px; position: relative; }
.hero-finding:before { background: radial-gradient(circle at top right, rgba(255,108,116,.22), transparent 42%); content: ""; inset: 0; pointer-events: none; position: absolute; }
.hero-finding > * { position: relative; }
.hero-finding.severity-high { border-color: rgba(244,175,87,.7); }
.hero-finding-kicker { align-items: center; color: #ffb1b5; display: flex; font-size: 11px; font-weight: 800; gap: 8px; letter-spacing: .09em; text-transform: uppercase; }
.severity-dot { background: currentColor; border-radius: 999px; height: 7px; width: 7px; }
.hero-finding-body { align-items: flex-end; display: flex; gap: 28px; justify-content: space-between; }
.hero-finding h2 { font-size: clamp(24px, 3vw, 38px); margin: 16px 0 12px; max-width: 780px; }
.hero-finding p { color: #d7dce7; font-size: 15px; margin: 0; max-width: 790px; }
.second-beat { background: linear-gradient(105deg, rgba(91, 70, 166, .20), rgba(27, 32, 53, .52)); border: 1px solid rgba(180, 149, 255, .44); border-radius: 13px; margin: -35px 0 56px; padding: 18px 22px 16px; position: relative; }
.second-beat:before { background: linear-gradient(90deg, #ad8dff, rgba(173,141,255,.12)); content: ""; height: 100%; left: 0; opacity: .75; position: absolute; top: 0; width: 3px; }
.second-beat > * { position: relative; }
.second-beat-intro { align-items: center; display: flex; gap: 16px; justify-content: space-between; }
.second-beat-kicker { color: #c9b8ff; font-size: 10px; font-weight: 800; letter-spacing: .09em; margin-bottom: 5px; text-transform: uppercase; }
.second-beat h2 { font-size: 20px; margin: 0; max-width: 850px; }
.second-beat-body { align-items: end; display: flex; gap: 20px; justify-content: space-between; margin-top: 10px; }
.second-beat-body p { color: #cbd2e3; font-size: 13px; margin: 0; max-width: 830px; }
.second-beat-body .text-link { flex: 0 0 auto; }
.second-beat-evidence { border-top: 1px solid rgba(201,184,255,.18); margin-top: 14px; padding-top: 12px; }

.section { border-top: 1px solid var(--line); padding: 58px 0; }
.section-heading { align-items: end; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 27px; }
.section-heading > p { color: var(--muted); font-size: 14px; margin: 0; max-width: 370px; }
.compact-heading { align-items: center; margin-bottom: 20px; }
.compact-heading h2 { font-size: 26px; margin-top: 7px; }
.config-section { background: linear-gradient(90deg, rgba(37,51,80,.35), rgba(37,51,80,0)); border-bottom: 1px solid var(--line); margin: 0 -32px; padding-left: 32px; padding-right: 32px; }
.config-form { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(230px, 1.5fr) minmax(180px, .7fr) minmax(170px, 1fr) auto; }
label { display: block; }
label > span { color: var(--muted); display: block; font-size: 12px; font-weight: 650; margin-bottom: 6px; }
label small { color: var(--faint); font-weight: 500; }
input, select, textarea { background: rgba(11,15,24,.55); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); min-height: 42px; outline: none; padding: 9px 11px; width: 100%; }
textarea { min-height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-strong); box-shadow: 0 0 0 3px rgba(93,136,255,.15); }
.form-status { color: var(--muted); font-size: 13px; margin: 11px 0 0; min-height: 20px; }
.form-status.error { color: #ffabb0; }
.form-status.success { color: var(--low); }

.filter-group { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; min-height: 32px; padding: 0 11px; }
.filter span { color: var(--ink); font-size: 10px; margin-left: 3px; }
.filter:hover, .filter.active { background: rgba(104,135,203,.12); border-color: #61739e; color: var(--ink); }
.finding-list { display: grid; gap: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finding-card { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--low); border-radius: 10px; display: flex; flex-direction: column; min-width: 0; padding: 20px; }
.finding-card.severity-critical { border-left-color: var(--critical); }
.finding-card.severity-high { border-left-color: var(--high); }
.finding-card.severity-medium { border-left-color: var(--medium); }
.finding-card.severity-low { border-left-color: var(--low); }
.finding-topline { align-items: center; display: flex; gap: 7px; margin-bottom: 15px; }
.severity-badge, .check-badge, .risk-pill { border-radius: 999px; font-size: 10px; font-weight: 750; letter-spacing: .05em; padding: 3px 8px; text-transform: uppercase; }
.severity-badge { background: var(--low-bg); color: var(--low); }
.severity-critical .severity-badge, .risk-critical { background: var(--critical-bg); color: #ffadb2; }
.severity-high .severity-badge, .risk-high { background: var(--high-bg); color: #f5c180; }
.severity-medium .severity-badge, .risk-medium { background: var(--medium-bg); color: #ebdc8a; }
.severity-low .severity-badge, .risk-low { background: var(--low-bg); color: var(--low); }
.risk-clear { background: #1d2e56; color: #aac3ff; }
.check-badge { background: #283248; color: #b6c0d5; }
.source-badge { border: 1px solid transparent; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .045em; padding: 3px 7px; text-transform: uppercase; white-space: nowrap; }
.source-deterministic { background: rgba(80, 164, 181, .13); border-color: rgba(112, 217, 220, .34); color: #9de8eb; }
.source-llm-generalized { background: rgba(152, 117, 255, .15); border-color: rgba(180, 149, 255, .45); color: #d2c1ff; }
.source-unclassified { background: rgba(244,175,87,.13); border-color: rgba(244,175,87,.42); color: #f5c180; }
.agent-link { color: var(--blue); font-family: monospace; font-size: 11px; margin-left: auto; text-decoration: none; }
.finding-card h3 { margin: 0 0 9px; }
.finding-card > p { color: #c2cada; font-size: 13px; margin-bottom: 18px; }
.finding-action { background: rgba(255,255,255,.035); border-radius: 7px; color: var(--muted); display: flex; flex-direction: column; font-size: 12px; gap: 3px; margin-top: auto; padding: 10px; }
.finding-action strong { color: var(--ink); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.evidence-trail { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.evidence-trail-hero { border-top: 1px solid rgba(255,255,255,.15); margin-top: 22px; padding-top: 14px; }
.finding-context { border-top: 1px solid rgba(112,217,220,.16); display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; padding-top: 10px; }
.finding-context-title { color: var(--cyan); display: block; font-size: 10px; font-weight: 750; letter-spacing: .04em; margin-right: 2px; text-transform: uppercase; }
.finding-context-title small { color: var(--faint); font-size: 9px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.context-link { background: rgba(112,217,220,.06); border: 1px solid rgba(112,217,220,.22); border-radius: 7px; color: #b4ecee; font-size: 10px; line-height: 1.35; padding: 4px 6px; text-decoration: none; }
.context-link:hover { background: rgba(112,217,220,.13); border-color: rgba(112,217,220,.52); }
.context-link small { color: var(--faint); font-size: 9px; }
.context-owasp { color: #c8d6ff; }
.context-framework { background: rgba(214,178,110,.07); border-color: rgba(214,178,110,.28); color: #ecd9b4; cursor: help; }
.score-badge { background: rgba(255,148,120,.09); border: 1px solid rgba(255,148,120,.32); border-radius: 7px; color: #ffc4ae; cursor: help; font-size: 10px; font-weight: 600; letter-spacing: .04em; padding: 3px 7px; text-transform: uppercase; }
.evidence-title { color: var(--faint); font-size: 10px; font-weight: 750; letter-spacing: .06em; margin-right: 2px; text-transform: uppercase; }
.evidence-chip { align-items: center; background: #111824; border: 1px solid #31405b; border-radius: 5px; display: inline-flex; gap: 5px; max-width: 100%; padding: 3px 6px; }
.evidence-chip small { color: var(--faint); font-size: 9px; white-space: nowrap; }
.evidence-chip code { color: #c8d7ff; font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.control-map { border-top: 1px solid rgba(150,169,205,.13); color: var(--faint); font-size: 10px; margin-top: 15px; padding-top: 10px; }
.no-filter-results { color: var(--muted); }

.map-section { padding-bottom: 64px; }
.graph-shell { background: #121824; border: 1px solid var(--line); border-radius: var(--radius); min-height: 450px; overflow: hidden; position: relative; }
#delegation-graph { display: block; height: 450px; width: 100%; }
.graph-legend { align-items: center; backdrop-filter: blur(8px); background: rgba(15,20,31,.75); border: 1px solid rgba(130,150,193,.25); border-radius: 8px; bottom: 15px; display: flex; flex-wrap: wrap; font-size: 11px; gap: 13px; padding: 7px 10px; position: absolute; right: 15px; }
.graph-legend span { align-items: center; display: inline-flex; gap: 5px; }
.legend-dot { background: var(--clear); border-radius: 50%; display: inline-block; height: 8px; width: 8px; }
.legend-dot.critical { background: var(--critical); }.legend-dot.high { background: var(--high); }.legend-dot.clear { background: var(--clear); }
.legend-line { background: #7083a7; display: inline-block; height: 1px; width: 15px; }

.certification-section { padding-bottom: 0; }
.text-link { color: var(--blue); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.risk-card-grid { display: grid; gap: 11px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mini-risk-card { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--clear); border-radius: 10px; display: block; min-height: 155px; padding: 15px; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.mini-risk-card:hover { background: var(--panel-raised); transform: translateY(-2px); }
.mini-risk-card.risk-critical { border-top-color: var(--critical); }.mini-risk-card.risk-high { border-top-color: var(--high); }.mini-risk-card.risk-medium { border-top-color: var(--medium); }.mini-risk-card.risk-low { border-top-color: var(--low); }
.mini-card-top { align-items: center; color: var(--muted); display: flex; font-size: 10px; justify-content: space-between; }
.mini-risk-card h3 { font-size: 15px; margin: 15px 0 4px; }.mini-risk-card p { color: var(--muted); font-size: 11px; margin: 0; }.review-state { color: var(--faint); font-size: 11px; text-transform: capitalize; }.mini-risk-card .review-state { display: block; margin-top: 15px; }

.empty-state { align-items: center; background: var(--panel); border: 1px solid rgba(255,108,116,.35); border-radius: var(--radius); display: flex; gap: 18px; margin: 44px 0; padding: 28px; }.empty-icon { align-items: center; background: var(--critical-bg); border-radius: 50%; color: var(--critical); display: flex; font-size: 21px; font-weight: 800; height: 38px; justify-content: center; width: 38px; }.empty-state h2, .empty-state h1 { font-size: 24px; margin-bottom: 6px; }.empty-state p { color: var(--muted); margin-bottom: 0; }.muted { color: var(--muted); }

/* Individual risk-card view */
.page-header, .report-header { border-bottom: 1px solid var(--line); padding: 42px 0 32px; }.back-link { color: var(--muted); display: inline-block; font-size: 13px; margin-bottom: 25px; text-decoration: none; }.back-link:hover { color: var(--blue); }.risk-header-grid { align-items: end; display: flex; gap: 30px; justify-content: space-between; }.risk-header h1 { font-size: clamp(42px,5vw,62px); margin: 9px 0 12px; }.risk-header p { color: #c2cada; font-size: 16px; margin: 0; max-width: 690px; }.risk-score { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; min-width: 155px; padding: 16px; }.risk-score span, .risk-score small { color: var(--muted); font-size: 11px; }.risk-score strong { color: var(--clear); font-size: 28px; letter-spacing: -.05em; line-height: 1.1; margin: 8px 0; text-transform: capitalize; }.risk-critical .risk-score strong { color: var(--critical); }.risk-high .risk-score strong { color: var(--high); }.risk-medium .risk-score strong { color: var(--medium); }.risk-low .risk-score strong { color: var(--low); }
.card-layout { display: grid; gap: 25px; grid-template-columns: minmax(0, 1fr) 310px; padding: 42px 0; }.card-main { display: flex; flex-direction: column; gap: 15px; }.detail-panel, .review-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 19px; }.detail-panel-header { align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; font-size: 11px; font-weight: 750; justify-content: space-between; letter-spacing: .06em; margin-bottom: 16px; padding-bottom: 12px; text-transform: uppercase; }.detail-panel-header small { color: var(--faint); font-size: 10px; font-weight: 550; letter-spacing: 0; text-transform: none; }.identity-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; margin: 0; }.identity-grid dt { color: var(--faint); font-size: 11px; margin-bottom: 3px; }.identity-grid dd { font-size: 14px; margin: 0; }.access-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }.access-list li { align-items: center; background: #111824; border: 1px solid #2d3b55; border-radius: 7px; display: flex; gap: 7px; padding: 6px 8px; }.access-list li > span { color: var(--faint); font-size: 10px; }.access-list .delegated-tool { border-color: rgba(244,175,87,.6); }.needed-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }.needed-grid h3 { font-size: 13px; margin-bottom: 7px; }.needed-grid ul { color: #cad2e2; font-size: 13px; margin: 0; padding-left: 18px; }.needed-grid p { font-size: 12px; margin: 0; }.card-findings { margin-top: 20px; }.card-findings .finding-card { margin-bottom: 12px; }.review-panel { align-self: start; position: sticky; top: 20px; }.review-panel h2 { font-size: 25px; margin: 9px 0 10px; }.review-panel > p { color: var(--muted); font-size: 13px; }.review-panel form { margin-top: 19px; }.review-panel label { margin-top: 13px; }.review-panel .button { margin-top: 16px; width: 100%; }.review-actions { border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; margin-top: 21px; padding-top: 17px; }.review-actions .button { margin: 0; }.review-approve { color: var(--low); }.review-revoke, .review-flag { color: var(--critical); }.review-pending { color: var(--high); }.clear-panel { align-items: center; background: var(--panel); border: 1px solid rgba(122,213,173,.3); border-radius: 12px; display: flex; gap: 14px; padding: 20px; }.clear-panel > span { color: var(--low); font-size: 28px; }.clear-panel h3 { margin: 0 0 3px; }.clear-panel p { color: var(--muted); font-size: 13px; margin: 0; }

/* Fleet report */
.report-title-row { align-items: end; display: flex; gap: 30px; justify-content: space-between; }
.report-header h1 { font-size: clamp(40px,5vw,60px); margin: 9px 0 12px; }
.report-header p { color: #bec7d8; font-size: 16px; margin: 0; max-width: 720px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
.report-meta { color: var(--faint); font-family: monospace; font-size: 11px; margin-top: 25px; }
.report-summary-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin: 32px 0; }
.report-summary-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; min-height: 120px; padding: 18px; }
.report-summary-card > span, .report-summary-card small { color: var(--muted); font-size: 12px; }
.report-summary-card strong { font-size: 25px; letter-spacing: -.045em; margin: auto 0 4px; }
.summary-critical { border-color: rgba(255,108,116,.45); }
.summary-critical strong { color: var(--critical); }
.report-section { border-top: 1px solid var(--line); padding: 34px 0; }
.report-prose { color: #c3ccdc; max-width: 800px; }
.report-enrichment { align-items: flex-start; margin: 0; }
.report-enrichment-summary { flex: 1 1 420px; min-width: 0; }
.threat-context-note { background: rgba(112,217,220,.05); border: 1px solid rgba(112,217,220,.23); border-radius: 10px; max-width: 820px; padding: 15px 16px; }
.threat-context-note strong { color: #b4ecee; font-size: 13px; }
.threat-context-note p { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.threat-context-note a { color: var(--blue); }
.table-wrap { border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
table { border-collapse: collapse; min-width: 660px; width: 100%; }
th, td { border-bottom: 1px solid rgba(150,169,205,.14); padding: 12px 14px; text-align: left; }
th { background: rgba(255,255,255,.025); color: var(--faint); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
td { color: #c5cedf; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td small { color: var(--faint); display: block; font-family: monospace; font-size: 10px; margin-top: 2px; }
.table-link { color: var(--blue); font-weight: 700; text-decoration: none; }
.report-findings { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0,1fr)); }

@media (max-width: 900px) {
  .hero-grid, .card-layout { grid-template-columns: 1fr; }.analysis-panel { max-width: 600px; }.stat-row { grid-template-columns: repeat(2,1fr); }.enrichment-status, .report-enrichment { align-items: flex-start; flex-direction: column; }.enrichment-operation-list { justify-content: flex-start; }.risk-card-grid { grid-template-columns: repeat(3,1fr); }.config-form { grid-template-columns: 1fr 1fr; }.config-form > .button { width: 100%; }.review-panel { position: static; }.report-title-row, .risk-header-grid { align-items: start; flex-direction: column; }.report-actions { justify-content: start; }.risk-score { width: 100%; }
}
@media (max-width: 650px) {
  .topbar { height: 60px; padding: 0 19px; }.topbar nav, .topbar-note { display: none; }main { padding: 0 19px 48px; }footer { align-items: start; flex-direction: column; padding: 20px 19px; }.hero { padding: 45px 0 36px; }.hero-grid { gap: 27px; }h1 { font-size: 45px; }.hero-copy { font-size: 16px; }.stat-row { gap: 8px; margin: 22px 0; }.stat-card { min-height: 105px; padding: 13px; }.stat-card strong { font-size: 27px; }.hero-finding { margin-bottom: 35px; padding: 19px; }.hero-finding-body, .second-beat-body { align-items: start; flex-direction: column; }.hero-finding h2 { font-size: 27px; }.second-beat { margin: -19px 0 35px; padding: 17px; }.second-beat-intro { align-items: start; }.second-beat h2 { font-size: 18px; }.section { padding: 39px 0; }.section-heading { align-items: start; flex-direction: column; gap: 16px; }.config-section { margin: 0 -19px; padding-left: 19px; padding-right: 19px; }.config-form, .finding-list, .report-findings { grid-template-columns: 1fr; }.tool-path { grid-column: auto; }.filter-group { gap: 5px; }.graph-shell, #delegation-graph { min-height: 360px; height: 360px; }.graph-legend { bottom: 10px; left: 10px; right: auto; }.risk-card-grid { grid-template-columns: repeat(2,1fr); }.mini-risk-card { min-height: 135px; padding: 12px; }.identity-grid, .needed-grid, .report-summary-grid { grid-template-columns: 1fr; }.card-layout { padding: 28px 0; }.page-header, .report-header { padding: 30px 0 25px; }.report-actions .button { font-size: 11px; padding: 0 10px; }.no-print { display: flex; }
}

@media print {
  :root { --paper: #fff; --panel: #fff; --panel-raised: #fff; --ink: #131722; --muted: #556072; --faint: #667085; --line: #d9dfeb; }
  body { background: #fff; color: #131722; }.topbar, footer, .no-print, .back-link { display: none !important; }main { max-width: none; padding: 0; }.report-header { padding-top: 0; }.finding-card, .detail-panel, .review-panel, .report-summary-card { break-inside: avoid; box-shadow: none; }.finding-card > p, .report-header p, .report-prose { color: #293244; }.evidence-chip, .access-list li { background: #f7f8fb; border-color: #ccd5e5; }.evidence-chip code { color: #263f72; }.risk-pill { border: 1px solid currentColor; }.table-wrap { overflow: visible; }
  /* Print/PDF layout: page margins, keep sections and tables whole, keep a
     heading with the content it introduces, and print links as plain black. */
  @page { margin: 1.5cm; }
  h1, h2, h3 { break-after: avoid; }
  .report-section, .report-summary-grid, .control-mapping, .review-panel, table { break-inside: avoid; }
  .report-section { break-before: auto; margin-top: 0; padding-top: 18px; }
  .report-header { break-after: avoid; border-bottom: 1px solid #d9dfeb; }
  a, a:visited { color: #131722 !important; text-decoration: none; }
  /* Dark-styled panels use hardcoded colors, not theme vars, so override them
     explicitly for legible black-on-white printing. */
  .report-enrichment, .enrichment-status, .enrichment-operation, .enrichment-mode {
    background: #fff !important; border-color: #ccd5e5 !important; break-inside: avoid;
  }
  .enrichment-operation { background: #f7f8fb !important; }
  .report-enrichment p, .enrichment-status p, .enrichment-operation > span,
  .enrichment-operation > small { color: #556072 !important; }
  .enrichment-status-heading strong, .enrichment-operation > strong, .enrichment-mode {
    color: #131722 !important;
  }
}
