:root {
  --bg: #212121;
  --topbar-bg: rgba(33, 33, 33, 0.94);
  --overlay-bg: rgba(33, 33, 33, 0.76);
  --surface: #2f2f2f;
  --surface-soft: #282828;
  --surface-strong: #3a3a3a;
  --control-bg: #242424;
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --line: #3d3d3d;
  --brand: #f5f5f5;
  --brand-soft: #3a3a3a;
  --red: #ff6b68;
  --orange: #f0a35d;
  --yellow: #e7c565;
  --blue: #8ab4ff;
  --green: #79d792;
  --shadow: none;
}

:root[data-theme="light"] {
  --bg: #f7f7f4;
  --topbar-bg: rgba(222, 222, 222, 0.94);
  --overlay-bg: rgba(247, 247, 244, 0.76);
  --surface: #ffffff;
  --surface-soft: #f0f0ed;
  --surface-strong: #e7e7e3;
  --control-bg: #ffffff;
  --text: #202020;
  --muted: #62625e;
  --line: #deded8;
  --brand: #202020;
  --brand-soft: #e7e7e3;
  --red: #b4232a;
  --orange: #9a5a15;
  --yellow: #7a5b00;
  --blue: #2459b8;
  --green: #197b3a;
  --shadow: 0 10px 28px rgba(32, 32, 32, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: color-mix(in srgb, var(--text) 18%, transparent);
}

a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: var(--topbar-bg);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  color: var(--text);
  font-weight: 750;
}

.brand-logo {
  display: block;
  width: 114px;
  height: 48px;
  object-fit: contain;
}

:root[data-theme="light"] .brand-logo {
  filter: invert(1);
}

.theme-toggle {
  min-height: 34px;
  margin: 0;
  padding: 3px;
  gap: 2px;
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}

.theme-toggle span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
}

:root[data-theme="light"] .theme-toggle-sun,
:root:not([data-theme="light"]) .theme-toggle-moon {
  background: var(--surface);
  color: var(--text);
}

.page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero,
.snapshot-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin: 8px 0 26px;
}

.hero h1,
.snapshot-header h1 {
  font-size: 34px;
  line-height: 1.08;
  margin: 6px 0 12px;
  max-width: 760px;
  font-weight: 620;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--brand);
}

.muted, .subtext {
  color: var(--muted);
}

.subtext {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel,
.section,
.metric,
.warning-strip,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 22px;
  min-height: 290px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.panel:hover {
  border-color: color-mix(in srgb, var(--text) 28%, var(--line));
}

.panel.accent {
  border-color: var(--line);
  background: var(--surface);
}

.panel-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--text);
}

.panel-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel-icon.brand-icon svg {
  width: 28px;
  height: 28px;
}

.panel-icon.github-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
  stroke: none;
}

.panel h2,
.section h2 {
  font-size: 20px;
  margin: 16px 0 8px;
}

.panel p {
  color: var(--muted);
  line-height: 1.45;
  min-height: 62px;
}

label {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 750;
  color: #39465a;
  color: var(--muted);
}

input,
select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  font: inherit;
  background: var(--control-bg);
  color: var(--text);
}

input[type="file"] {
  padding: 8px;
}

input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  padding: 6px 10px;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background: var(--surface-strong);
}

input:focus,
select:focus,
button:focus-visible,
.button:focus-visible {
  outline: 2px solid rgba(245, 245, 245, 0.34);
  outline-offset: 2px;
}

input::placeholder {
  color: var(--muted);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--text) 28%, var(--line));
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  cursor: pointer;
}

button:hover,
.button:hover {
  border-color: color-mix(in srgb, var(--text) 42%, var(--line));
  text-decoration: none;
}

.repo-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.repo-suggestions button {
  min-height: 28px;
  margin: 0;
  padding: 0 9px;
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.repo-suggestions button:hover {
  color: var(--text);
  background: var(--surface-strong);
}

button.secondary,
.button.secondary {
  color: var(--text);
  background: var(--surface-strong);
}

button.small {
  min-height: 32px;
  margin: 0;
  padding: 0 10px;
  font-size: 12px;
}

button.active {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.section {
  margin-top: 16px;
  padding: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
}

.disclosure-section {
  padding: 0;
}

.disclosure-section > summary,
.finding-group > summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px 16px;
  align-items: center;
  padding: 16px 18px;
}

.disclosure-section > summary span,
.finding-group > summary span {
  font-size: 18px;
  font-weight: 850;
}

.disclosure-section > summary strong,
.finding-group > summary strong {
  color: var(--muted);
  font-size: 13px;
}

.disclosure-section > summary + .muted {
  padding: 0 18px;
}

.details-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-strong);
  font-size: 12px;
  font-weight: 850;
}

details[open] .details-action .details-open,
details:not([open]) .details-action .details-close {
  display: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  padding: 18px 20px;
  min-height: 114px;
}

.metric span {
  display: block;
  font-size: 26px;
  font-weight: 850;
  color: var(--brand);
}

.metric.danger span { color: var(--red); }
.metric.attention span { color: var(--yellow); }
.metric label {
  display: block;
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 850;
}

.metric small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.insight {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.insight strong {
  display: block;
  font-size: 18px;
  font-weight: 850;
  color: var(--text);
}

.insight span {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-weight: 800;
}

.insight small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td { border-bottom: 0; }

.pill,
.severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 850;
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  line-height: 1;
}

.pill.danger,
.severity.critical { background: rgba(255, 107, 104, 0.15); color: var(--red); }
.severity.high { background: rgba(240, 163, 93, 0.16); color: var(--orange); }
.severity.medium { background: rgba(231, 197, 101, 0.16); color: var(--yellow); }
.severity.low { background: rgba(138, 180, 255, 0.16); color: var(--blue); }
.severity.unknown { background: var(--surface-strong); color: var(--muted); }
.pill.safe { background: rgba(121, 215, 146, 0.14); color: var(--green); }
.pill.needs-version { background: var(--surface-strong); color: var(--muted); }

.severity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding: 0 18px 18px;
}

.source-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.source-card strong {
  display: block;
  color: var(--text);
  overflow-wrap: anywhere;
}

.source-card span,
.source-cell {
  color: var(--muted);
  font-size: 12px;
}

.source-cell {
  max-width: 260px;
  overflow-wrap: anywhere;
}

.source-cell strong,
.source-cell span {
  display: block;
}

.source-cell strong {
  color: var(--text);
  margin-bottom: 3px;
}

.warning-strip {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  margin-bottom: 14px;
  color: var(--yellow);
  background: rgba(231, 197, 101, 0.1);
}

.warning-strip summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.warning-strip summary span {
  color: var(--muted);
}

.warning-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.warning-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(231, 197, 101, 0.28);
}

.warning-item span {
  min-width: 0;
}

.warning-item strong {
  color: var(--text);
  white-space: nowrap;
}

.flash-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.flash {
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.flash.error {
  color: var(--red);
  background: rgba(255, 107, 104, 0.12);
  border-color: rgba(255, 107, 104, 0.32);
}

.flash.success {
  color: var(--green);
  background: rgba(121, 215, 146, 0.12);
  border-color: rgba(121, 215, 146, 0.32);
}

.status-form {
  display: grid;
  grid-template-columns: 160px 1fr 180px auto;
  gap: 10px;
  align-items: end;
}

.status-form label { margin: 0; }
.finding-form-row td { background: var(--surface-soft); }

.evidence-note {
  margin-bottom: 14px;
  padding: 12px 14px;
  color: #40516a;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  line-height: 1.45;
}

.finding-list {
  display: grid;
  gap: 10px;
}

.finding-groups {
  display: grid;
  gap: 10px;
}

.finding-group {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  overflow: hidden;
}

.finding-group > summary {
  background: var(--surface-soft);
}

.finding-group > summary small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.finding-group .finding-list {
  padding: 10px;
}

.finding-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  overflow: hidden;
}

.finding-main {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(260px, 2fr) minmax(260px, 260px) 144px;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.finding-package strong,
.finding-advisory a,
.finding-advisory strong {
  display: block;
  color: var(--text);
  font-weight: 850;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.finding-package span,
.finding-advisory span,
.finding-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.finding-package .depth-line {
  display: block;
  margin-top: 5px;
  color: #40516a;
  color: var(--muted);
  font-weight: 650;
}

.finding-advisory span {
  display: block;
  margin-top: 3px;
}

.finding-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.finding-actions {
  display: flex;
  justify-content: stretch;
}

.finding-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0 14px 12px;
}

.exposure-main {
  grid-template-columns: minmax(180px, 1.1fr) minmax(300px, 2fr) minmax(260px, 260px) 144px;
}

.monitor-advisory-panel {
  padding: 0 14px 14px;
}

.monitor-advisory-panel[hidden] {
  display: none;
}

.monitor-advisory-panel .manifest-advisory-list {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.status-cell {
  min-width: 210px;
  width: 210px;
}

.manifest-status-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.manifest-status-line .severity,
.manifest-status-line .pill,
.manifest-advisory-item .severity {
  width: 88px;
  justify-content: center;
}

.manifest-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.choose-graph-button,
.status-cell .manifest-action {
  width: 144px;
  border-color: color-mix(in srgb, var(--text) 28%, var(--line));
  background: var(--text);
  color: var(--bg);
  box-shadow: none;
}

.choose-graph-button:hover,
.status-cell .manifest-action:hover,
.graph-action-button:hover {
  background: color-mix(in srgb, var(--text) 86%, var(--bg));
  text-decoration: none;
}

.status-cell .manifest-action {
  margin-top: 8px;
}

.manifest-advisory-row td {
  padding-top: 0;
  background: var(--surface-soft);
}

.manifest-advisory-row[hidden],
.graph-choice-panel[hidden] {
  display: none;
}

.manifest-advisories {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  overflow: hidden;
}

.manifest-advisory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--surface-soft);
}

.manifest-advisory-heading strong {
  font-weight: 850;
  color: var(--text);
}

.manifest-advisory-heading span {
  color: var(--muted);
  font-size: 12px;
}

.manifest-advisory-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.manifest-advisory-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.manifest-advisory-item a {
  display: block;
  color: var(--text);
  font-weight: 850;
}

.manifest-advisory-item span:not(.severity),
.manifest-advisory-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.manifest-advisory-item button {
  width: 72px;
  justify-self: end;
}

.graph-action-button {
  width: 72px;
  border-color: color-mix(in srgb, var(--text) 28%, var(--line));
  background: var(--text);
  color: var(--bg);
}

.graph-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: stretch;
}

.graph {
  min-height: 300px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  overflow: auto;
}

.graph svg {
  display: block;
  max-width: none;
}

.graph-note {
  margin: 12px 12px 0;
  padding: 9px 11px;
  color: var(--yellow);
  background: rgba(231, 197, 101, 0.1);
  border: 1px solid rgba(231, 197, 101, 0.28);
  border-radius: 6px;
  font-size: 12px;
}

.graph-node {
  cursor: pointer;
  outline: none;
}

.graph-node rect {
  transition: filter 0.15s ease, stroke-width 0.15s ease;
}

.graph-node:hover rect,
.graph-node:focus rect,
.graph-node.selected rect {
  filter: drop-shadow(0 8px 12px rgba(22, 32, 51, 0.18));
  stroke-width: 3;
}

.graph-inspector {
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 16px;
  min-height: 300px;
}

.graph-inspector h3 {
  margin: 6px 0 4px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.graph-inspector h4 {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.inspector-version,
.small-copy {
  color: var(--muted);
  font-size: 12px;
}

.inspector-kind {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.inspector-kind.root { background: rgba(138, 180, 255, 0.16); color: var(--blue); }
.inspector-kind.affected { background: rgba(231, 197, 101, 0.16); color: var(--yellow); }
.inspector-kind.vulnerable { background: rgba(255, 107, 104, 0.15); color: var(--red); }
.inspector-kind.safe { background: rgba(121, 215, 146, 0.14); color: var(--green); }

.node-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.node-facts div {
  padding: 9px;
  border: 0;
  border-radius: 6px;
  background: var(--surface);
}

.node-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.node-facts dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.inspector-purl {
  margin-top: 10px;
  padding: 8px;
  color: var(--muted);
  background: var(--surface);
  border: 0;
  border-radius: 6px;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.inspector-purl span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}

.inspector-chain {
  padding: 8px;
  margin-top: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.path-table {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.path-row {
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.path-row strong { color: var(--text); }

.clear-dependencies {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  overflow: hidden;
}

.clear-dependencies > summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px 16px;
  align-items: center;
  padding: 14px;
  background: var(--surface-soft);
}

.clear-dependencies > summary span:first-child {
  font-weight: 850;
}

.clear-dependencies > summary strong {
  color: var(--muted);
  font-size: 13px;
}

.clear-dependencies .table-wrap {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  max-height: 520px;
  overflow: auto;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 900;
  padding: 16px;
  background: color-mix(in srgb, var(--bg) 82%, rgba(0, 0, 0, 0.74));
}

.modal-backdrop.visible {
  display: grid;
  place-items: center;
}

.graph-modal-panel {
  width: min(1380px, calc(100vw - 28px));
  height: min(880px, calc(100vh - 28px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.graph-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.graph-modal-header h2 {
  margin: 4px 0 4px;
}

.graph-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.graph-modal-actions button {
  margin: 0;
}

.graph-advisory {
  min-width: 0;
}

.graph-advisory .empty-state.compact {
  padding: 12px;
  text-align: left;
}

.advisory-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 14px;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-soft);
}

.advisory-summary h3 {
  margin: 4px 0 6px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.advisory-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.advisory-summary p + p {
  margin-top: 6px;
}

.advisory-meta {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.advisory-meta > span:not(.severity),
.advisory-meta > a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--surface);
  border: 0;
}

.graph-modal-panel .graph-workbench {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.graph-modal-panel .graph,
.graph-modal-panel .graph-inspector {
  min-height: 0;
  height: 100%;
}

.graph-modal-panel .graph {
  cursor: grab;
}

.graph-modal-panel .graph.dragging {
  cursor: grabbing;
}

.graph-modal-panel .graph-inspector {
  overflow: auto;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 1000;
  background: var(--overlay-bg);
  backdrop-filter: blur(5px);
}

.loading-overlay.visible {
  display: grid;
}

.loading-card {
  width: min(420px, calc(100% - 40px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.loading-card strong,
.loading-card span {
  display: block;
}

.loading-card strong {
  margin-top: 12px;
  font-size: 18px;
}

.loading-card span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid var(--surface-strong);
  border-top-color: var(--brand);
  animation: spin 0.9s linear infinite;
}

.loading-steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.loading-steps li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 13px;
}

.loading-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.loading-steps li.active {
  color: var(--text);
  font-weight: 800;
}

.loading-steps li.active::before {
  background: var(--brand);
}

.loading-steps li.done::before {
  background: var(--green);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.search {
  max-width: 280px;
  margin: 0;
}

.purl {
  max-width: 360px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 840px) {
  .hero,
  .snapshot-header,
  .section-heading {
    display: block;
  }
  .hero h1,
  .snapshot-header h1 {
    font-size: 32px;
  }
  .onboarding-grid,
  .metric-grid,
  .insight-grid,
  .status-form,
  .finding-main,
  .graph-workbench {
    grid-template-columns: 1fr;
  }
  .finding-actions { justify-content: flex-start; }
  .panel p { min-height: auto; }
  .search { max-width: none; margin-top: 12px; }
}
