:root {
  --bg: #0c0f0d;
  --surface: #111511;
  --surface-2: #171c18;
  --line: #303730;
  --line-strong: #566057;
  --text: #ece8e0;
  --muted: #9ba19b;
  --faint: #6f756f;
  --accent: #3fa17e;
  --accent-light: #72c5a5;
  --danger: #d96852;
  --danger-soft: rgba(217, 104, 82, 0.12);
  --ok: #7dbb83;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --display: "Archivo Black", "Arial Black", sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body {
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 18%, rgba(63, 161, 126, 0.07), transparent 28%),
    var(--bg);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.16;
  background-image: repeating-linear-gradient(0deg, transparent 0 4px, rgba(0, 0, 0, 0.24) 4px 6px);
}

button { font: inherit; }
button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: -60px;
  z-index: 120;
  padding: 12px 16px;
  color: var(--bg);
  background: var(--accent-light);
}
.skip-link:focus { top: 18px; }

.app {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 76px 1fr;
  gap: 14px;
  padding: 14px;
}

.topbar {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto 1fr 280px auto;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(17, 21, 17, 0.94);
  padding: 11px 14px;
}

.brand-lockup, .subject-lockup, .scan-clock, .progress-copy, .header-actions {
  display: flex;
  align-items: center;
}

.brand-lockup { gap: 12px; white-space: nowrap; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--bg);
  background: var(--accent);
  font-family: var(--display);
  font-size: 23px;
}
.brand-name {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.03em;
}
.brand-context {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.subject-lockup {
  gap: 10px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.subject-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--accent-light);
  font-weight: 700;
}
.subject-lockup strong, .subject-lockup small { display: block; }
.subject-lockup strong { font-size: 13px; }
.subject-lockup small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.scan-clock {
  justify-self: end;
  gap: 14px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}
.scan-clock strong {
  min-width: 70px;
  color: var(--text);
  font-family: var(--display);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.progress-lockup { min-width: 0; }
.progress-copy {
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.progress-copy span:first-child { color: var(--accent-light); }
.progress-track { height: 4px; background: #222822; overflow: hidden; }
.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.header-actions { gap: 7px; }
.header-actions button, .report-actions button, .dialog-heading button {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--text);
  background: transparent;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 10px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.header-actions button:hover, .report-actions button:hover, .dialog-heading button:hover {
  color: var(--bg);
  border-color: var(--accent);
  background: var(--accent);
}
.header-actions button:active, .report-actions button:active, .dialog-heading button:active {
  transform: translateY(1px);
}

.scan-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(560px, 1fr) 340px;
  gap: 14px;
}
.profile-column, .evidence-column {
  min-height: 0;
  display: grid;
  gap: 14px;
}
.profile-column { grid-template-rows: minmax(0, 1.1fr) minmax(250px, 0.9fr); }
.evidence-column { grid-template-rows: minmax(220px, 0.8fr) minmax(0, 1.2fr); }

.box {
  min-height: 0;
  border: 1px solid var(--line);
  background: rgba(17, 21, 17, 0.94);
  overflow: hidden;
}
.box-heading {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.box-heading h2 {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.box-heading span {
  color: var(--accent-light);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.profile-rows { padding: 4px 14px 10px; }
.profile-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #252b26;
}
.profile-row:last-child { border-bottom: 0; }
.profile-key {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.profile-value {
  min-width: 0;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.profile-value.is-found { color: var(--text); }
.profile-value.is-sensitive { color: #ef9c89; }
.profile-value.is-flashing { animation: profile-hit 700ms ease; }
@keyframes profile-hit { 45% { background: var(--danger-soft); } }

.metric-grid {
  height: calc(100% - 42px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.metric {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric:nth-child(2n) { border-right: 0; }
.metric:nth-child(n+3) { border-bottom: 0; }
.metric strong {
  font-family: var(--display);
  font-size: clamp(32px, 3.2vw, 54px);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
}
.metric span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.metric-danger strong { color: var(--danger); }

.vector-column {
  display: grid;
  grid-template-rows: 42px 1fr;
}
.vector-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
}
.vector {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 11px 12px;
  border: 0;
  color: var(--muted);
  background: var(--surface);
  text-align: left;
  cursor: default;
  opacity: 0.56;
  transition: color 220ms ease, background 220ms ease, opacity 220ms ease, transform 220ms ease;
}
.vector-index, .vector-state, .vector-confidence {
  font-size: 8px;
  letter-spacing: 0.11em;
}
.vector-index { color: var(--faint); }
.vector-name {
  max-width: 20ch;
  color: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}
.vector-footer { display: flex; justify-content: space-between; align-items: end; }
.vector-state { color: var(--faint); }
.vector-confidence { display: none; color: var(--danger); }
.vector.is-scanning {
  z-index: 1;
  color: var(--text);
  background: #18241f;
  box-shadow: inset 0 -3px 0 var(--accent);
  opacity: 1;
}
.vector.is-scanning::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
  animation: sweep-slot 2.8s ease-in-out infinite;
}
@keyframes sweep-slot {
  0% { transform: scaleX(0.05); opacity: 0.45; }
  70%, 100% { transform: scaleX(1); opacity: 1; }
}
.vector.is-hit {
  color: var(--text);
  background: linear-gradient(135deg, rgba(217, 104, 82, 0.18), rgba(217, 104, 82, 0.06));
  box-shadow: inset 4px 0 0 var(--danger);
  opacity: 1;
  cursor: pointer;
}
.vector.is-hit:hover { background: rgba(217, 104, 82, 0.22); transform: translateY(-1px); }
.vector.is-hit .vector-state, .vector.is-hit .vector-confidence { color: #f09c88; }
.vector.is-hit .vector-confidence { display: block; }
.vector.is-clear { color: var(--muted); opacity: 0.82; }
.vector.is-clear .vector-state { color: var(--ok); }
.vector.is-locked { opacity: 0.42; }

.log-box, .recovered-box {
  display: grid;
  grid-template-rows: 42px 1fr;
}
.terminal, .feed {
  min-height: 0;
  overflow: hidden;
  padding: 12px 14px;
  font-size: 10px;
  line-height: 1.55;
}
.terminal-line { margin-bottom: 7px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal-line .prompt { color: var(--accent-light); }
.terminal-line.is-hit { color: #f09c88; }
.terminal-line.is-clear { color: var(--ok); }
.terminal-line.is-locked { color: var(--faint); }

.feed {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}
.feed-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid #29302a;
  background: var(--surface-2);
  animation: feed-in 340ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes feed-in { from { opacity: 0; transform: translateX(10px); } }
.feed-type { color: var(--accent-light); font-size: 8px; letter-spacing: 0.08em; }
.feed-copy { min-width: 0; }
.feed-copy strong, .feed-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-copy strong { font-size: 10px; }
.feed-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.feed-confidence { color: #f09c88; font-size: 9px; text-align: right; }

.start-overlay, .report-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 72px);
  background:
    linear-gradient(90deg, rgba(12, 15, 13, 0.98), rgba(12, 15, 13, 0.89)),
    radial-gradient(circle at 80% 20%, rgba(63, 161, 126, 0.14), transparent 34%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 420ms ease;
}
.start-overlay.is-visible, .report-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.start-shell {
  width: min(1480px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.6fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: center;
}
.briefing-label {
  color: var(--accent-light);
  font-size: 12px;
  letter-spacing: 0.16em;
}
.start-copy h1 {
  max-width: 930px;
  margin: 24px 0 22px;
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.start-copy > p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 24px);
  line-height: 1.5;
  text-wrap: pretty;
}
.authorization {
  max-width: 760px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  margin-top: 28px;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.authorization strong { color: var(--danger); font-size: 11px; letter-spacing: 0.1em; }
.authorization span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.start-button {
  min-width: 360px;
  display: inline-flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 28px;
  border: 0;
  border-radius: 0;
  padding: 19px 22px;
  color: #07100c;
  background: var(--accent-light);
  font-family: var(--display);
  font-size: 17px;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}
.start-button:hover { background: #8bd4b8; transform: translate(-3px, -3px); }
.start-button:active { transform: translateY(1px); }
.start-button span { font-family: var(--mono); font-size: 14px; }

.start-score {
  border: 1px solid var(--line-strong);
  background: rgba(17, 21, 17, 0.82);
}
.start-score > span, .start-score > strong { display: block; padding: 20px 24px; }
.score-label { color: var(--muted); font-size: 10px; letter-spacing: 0.14em; }
.start-score > strong {
  padding-top: 0;
  font-family: var(--display);
  font-size: clamp(34px, 3vw, 58px);
  line-height: 1;
  letter-spacing: -0.05em;
}
.start-score dl { margin: 8px 0 0; }
.start-score dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}
.start-score dt { color: var(--muted); font-size: 10px; }
.start-score dd { margin: 0; font-size: 11px; text-align: right; }
.danger { color: var(--danger); }

.vector-dialog {
  width: min(680px, calc(100vw - 40px));
  max-height: 80dvh;
  padding: 0;
  border: 1px solid var(--danger);
  border-radius: 0;
  color: var(--text);
  background: var(--surface);
}
.vector-dialog::backdrop { background: rgba(5, 7, 6, 0.84); backdrop-filter: blur(6px); }
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading strong { font-size: 12px; }
.dialog-body { max-height: calc(80dvh - 64px); overflow-y: auto; padding: 10px 18px 18px; }
.dialog-item {
  display: grid;
  grid-template-columns: 74px 1fr 48px;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.dialog-item:last-child { border-bottom: 0; }
.dialog-item span { color: var(--accent-light); font-size: 9px; }
.dialog-item strong, .dialog-item small { display: block; }
.dialog-item strong { font-size: 11px; }
.dialog-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.dialog-item b { color: var(--danger); font-size: 10px; text-align: right; }

.report-overlay {
  z-index: 50;
  place-items: stretch;
  padding: 14px;
  background: var(--bg);
}
.report-shell {
  min-height: 0;
  display: grid;
  grid-template-rows: 92px 1fr;
}
.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 30px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.report-header > div:first-child { display: flex; align-items: baseline; gap: 18px; }
.report-header span { color: var(--muted); font-size: 16px; letter-spacing: 0.12em; }
.report-header strong { font-family: var(--display); font-size: 36px; letter-spacing: -0.04em; }
.report-actions { display: flex; align-items: center; gap: 8px; }
.report-actions > span { color: var(--accent-light); }
.report-actions button { padding: 13px 17px; font-size: 15px; }

#reportContent { min-height: 0; padding-top: 18px; }
.report-grid {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  grid-template-rows: 360px minmax(0, 1fr);
  gap: 18px;
}
.report-verdict, .report-paths, .report-inventory {
  border: 1px solid var(--line);
  background: var(--surface);
}
.report-verdict {
  min-height: 0;
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  overflow: hidden;
}
.verdict-score {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid var(--line);
}
.verdict-score span { color: var(--muted); font-size: 14px; letter-spacing: 0.12em; }
.verdict-score strong {
  margin-top: 16px;
  color: var(--danger);
  font-family: var(--display);
  font-size: clamp(108px, 6.5vw, 138px);
  line-height: 0.76;
  letter-spacing: -0.08em;
}
.verdict-score b { margin-top: 18px; color: var(--danger); font-family: var(--display); font-size: 30px; }
.verdict-copy { min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: 24px; overflow-y: auto; }
.verdict-copy h1 { margin: 0; font-family: var(--display); font-size: 36px; line-height: 1; letter-spacing: -0.04em; }
.verdict-copy p { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.report-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  background: var(--line);
  border: 1px solid var(--line);
}
.report-risk-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 10px;
  padding: 10px 12px;
  background: #101411;
  box-shadow: inset 3px 0 0 var(--accent);
}
.report-risk-card.is-high, .report-risk-card.is-severe { box-shadow: inset 3px 0 0 var(--danger); }
.report-risk-card span { color: var(--muted); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.report-risk-card strong { grid-row: 1 / 3; grid-column: 2; color: var(--accent-light); font-family: var(--display); font-size: 34px; line-height: 0.9; }
.report-risk-card.is-high strong, .report-risk-card.is-severe strong { color: var(--danger); }
.report-risk-card small { color: var(--faint); font-size: 8px; letter-spacing: 0.08em; }
.report-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--line); }
.report-stat { padding: 12px 10px 0 0; }
.report-stat strong, .report-stat span { display: block; }
.report-stat strong { font-family: var(--display); font-size: 28px; }
.report-stat span { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.report-paths, .report-inventory { min-height: 0; overflow: hidden; }
.report-section-title {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.path-grid {
  height: calc(100% - 58px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.path-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 7px 18px;
  padding: 16px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.path-item:nth-child(2n) { border-right: 0; }
.path-item:nth-last-child(-n+2) { border-bottom: 0; }
.path-item strong { font-size: 19px; }
.path-item b { color: var(--danger); font-family: var(--display); font-size: 30px; }
.path-item small { color: var(--muted); font-size: 14px; }

.report-inventory { grid-column: 1 / -1; }
.inventory-grid {
  height: calc(100% - 58px);
  min-height: 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
}
.inventory-group {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 58px 1fr;
  border-right: 1px solid var(--line);
}
.inventory-group:last-child { border-right: 0; }
.inventory-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.inventory-group h3 { margin: 0; color: var(--accent-light); font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; }
.inventory-group header span { color: var(--muted); font-size: 14px; }
.inventory-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #1a211c;
}
.inventory-scroll::-webkit-scrollbar { width: 12px; }
.inventory-scroll::-webkit-scrollbar-track { background: #1a211c; }
.inventory-scroll::-webkit-scrollbar-thumb { background: var(--accent); border: 3px solid #1a211c; }
.inventory-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 58px;
  gap: 16px;
  align-items: start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.inventory-item:last-child { border-bottom: 0; }
.inventory-item.is-possible { box-shadow: inset 4px 0 0 #c99b55; }
.inventory-item.is-informational { box-shadow: inset 4px 0 0 var(--accent); }
.inventory-kind { color: var(--accent-light); font-size: 13px; letter-spacing: 0.08em; }
.inventory-copy { min-width: 0; }
.inventory-copy strong, .inventory-copy span, .inventory-copy small { display: block; overflow-wrap: anywhere; }
.inventory-copy strong { color: var(--text); font-size: 20px; line-height: 1.25; }
.inventory-copy span { margin-top: 5px; color: var(--muted); font-size: 15px; line-height: 1.35; }
.inventory-copy small { margin-top: 6px; color: var(--faint); font-size: 13px; line-height: 1.3; }
.inventory-item > b { color: var(--danger); font-size: 18px; text-align: right; }
.inventory-item > b small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: 0.05em; }
.inventory-item.is-possible > b { color: #d8ae6c; }
.inventory-item.is-informational > b { color: var(--accent-light); }

@media (max-width: 1080px) {
  .app { grid-template-rows: auto 1fr; }
  .topbar { grid-template-columns: 1fr auto; }
  .brand-context, .subject-lockup, .scan-clock { display: none; }
  .progress-lockup { grid-column: 1 / -1; grid-row: 2; }
  .scan-layout { grid-template-columns: 250px 1fr; }
  .evidence-column { display: none; }
  .start-shell { grid-template-columns: 1fr; }
  .start-score { display: none; }
  .start-overlay { padding: 20px 30px; }
  .start-copy h1 { margin: 16px 0; font-size: 54px; }
  .start-copy > p { font-size: 17px; line-height: 1.4; }
  .authorization { margin-top: 18px; padding: 11px 0; }
  .start-button { margin-top: 18px; padding: 15px 20px; }
}

@media (max-width: 720px) {
  body { overflow: auto; }
  .app { min-height: 100dvh; height: auto; padding: 8px; }
  .topbar { gap: 10px; }
  .brand-name { font-size: 14px; }
  .header-actions button { padding: 8px; font-size: 8px; }
  .scan-layout { grid-template-columns: 1fr; }
  .profile-column { grid-template-rows: auto auto; }
  .vector-column { min-height: 720px; }
  .vector-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(9, 1fr); }
  .start-overlay { overflow-y: auto; align-items: start; padding: 24px 18px; }
  .start-copy h1 { font-size: 48px; }
  .start-button { min-width: 0; width: 100%; font-size: 14px; }
  .authorization { grid-template-columns: 1fr; gap: 8px; }
  .report-overlay { position: absolute; min-height: 100dvh; overflow-y: auto; }
  .report-shell { display: block; }
  .report-header, .report-header > div:first-child { align-items: flex-start; flex-direction: column; padding: 14px; }
  .report-actions { flex-wrap: wrap; }
  .report-grid { display: block; }
  .report-grid > section { margin-top: 10px; }
  .report-verdict { grid-template-columns: 1fr; }
  .verdict-score { border-right: 0; border-bottom: 1px solid var(--line); }
  .report-risk-grid { grid-template-columns: 1fr 1fr; }
  .path-grid, .inventory-grid { display: block; height: auto; }
  .path-item, .inventory-group { border-right: 0; border-bottom: 1px solid var(--line); }
  .inventory-group { display: block; }
  .inventory-scroll { max-height: none; overflow: visible; }
}

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

@media print {
  body { overflow: visible; background: white; color: black; }
  body::after, .app, .report-actions { display: none !important; }
  .report-overlay { position: static; display: block; opacity: 1; visibility: visible; padding: 0; background: white; color: black; }
  .report-shell { display: block; }
  .report-header, .report-verdict, .report-paths, .report-highlights, .report-categories { color: black; background: white; border-color: #bbb; }
  .report-grid { display: block; }
  .report-grid > section { margin-top: 12px; break-inside: avoid; }
}
