:root {
  /* Mapped onto the shared BZ theme (bz-theme.css), so the app matches blazexyz.com. Dark only, like the main site. */
  --bg: var(--bz-bg);
  --panel: var(--bz-surface);
  --panel-2: var(--bz-surface-2);
  --border: var(--bz-line);
  --text: var(--bz-text-hi);
  --muted: var(--bz-text-mid);
  --accent: var(--bz-accent);
  --accent-ink: var(--bz-bg);
  --ring: rgba(255, 255, 255, 0.09);
  --edge: rgba(var(--bz-glow-rgb), 0.24);
  --risk-none: #6e5f86;
  --risk-low: #d9c13f;
  --risk-medium: #f59a35;
  --risk-high: #f25a3c;
  --risk-critical: #ff2e7e;
  --ok: #3ccf8e;
  --shadow: var(--bz-glass-shadow);
  --radius: var(--bz-radius);
  --font: var(--bz-mono);
  --mono: var(--bz-mono);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: transparent;
  color: var(--text);
  font: 13px/1.6 var(--font);
  min-height: 100vh;
}
h1, h2, h3 { margin: 0; line-height: 1.25; }
a { color: var(--accent); }
code, pre { font-family: var(--mono); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

button, input, select, textarea { font: inherit; color: inherit; }
button {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
}
button:hover:not(:disabled) { border-color: var(--muted); }
button:disabled { opacity: 0.5; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.primary:hover:not(:disabled) { filter: brightness(1.08); border-color: var(--accent); }
button.ghost { background: transparent; }
button.small { padding: 4px 9px; font-size: 12px; }
button.big { width: 100%; padding: 11px; font-size: 15px; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
button.icon { padding: 6px; display: grid; place-items: center; }
button.icon svg { width: 18px; height: 18px; fill: currentColor; }

input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  min-width: 0;
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand circle { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.brand .r3 { stroke-dasharray: 4 3; opacity: 0.6; }
.brand .r1 { fill: var(--accent); stroke: none; }
.brand h1 { font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.brand p { margin: 0; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.only-results { display: none; }
body.has-results .only-results { display: inline-block; }

/* ---------- Layout ---------- */

.layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 360px;
  gap: 16px;
  padding: 16px 20px 24px;
  align-items: start;
}
body.input-collapsed .layout { grid-template-columns: minmax(0, 1fr) 360px; }
body.input-collapsed .input-panel { display: none; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.input-panel { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 78px; }
.input-panel.dragging { outline: 2px dashed var(--accent); outline-offset: -6px; }
.input-panel section { display: flex; flex-direction: column; gap: 10px; }
.input-panel h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.step { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--border); font-size: 11px; color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.field.inline { flex-direction: row; align-items: center; justify-content: space-between; color: var(--text); font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.center { justify-content: center; flex-wrap: wrap; }
.row input { flex: 1; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
textarea {
  height: 190px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.file-btn { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; cursor: pointer; background: var(--panel-2); }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border-radius: 999px; padding: 3px 10px; font-size: 12px; background: var(--panel-2); }
.chip span { color: var(--muted); margin-left: 3px; }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.active span { color: inherit; opacity: 0.8; }
.status { font-size: 12px; color: var(--muted); min-height: 18px; overflow-wrap: anywhere; }
.status.error { color: var(--risk-high); }
.status.ok { color: var(--ok); }
body.busy .status::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin 0.8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.log { list-style: none; margin: -8px 0 0; padding: 0; font-size: 12px; color: var(--muted); }
.log li::before { content: "✓ "; color: var(--ok); }
.fine { font-size: 11px; color: var(--muted); margin: 0; }

/* ---------- Empty state ---------- */

.workspace { min-width: 0; }
.empty {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 40px;
  text-align: center;
  min-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.empty h2 { font-size: 26px; max-width: 560px; letter-spacing: -0.02em; text-wrap: balance; }
.empty p { color: var(--muted); max-width: 560px; margin: 0; text-wrap: pretty; }
.features { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; text-align: left; max-width: 520px; }
.features li { padding-left: 22px; position: relative; color: var(--muted); }
.features li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.features b { color: var(--text); }
.hero-rings { position: relative; width: 150px; height: 150px; margin-bottom: 4px; }
.hero-rings span { position: absolute; inset: 0; border: 1.5px dashed var(--ring); border-radius: 50%; animation: pulse 3.6s ease-out infinite; }
.hero-rings span:nth-child(2) { animation-delay: 1.2s; }
.hero-rings span:nth-child(3) { animation-delay: 2.4s; }
.hero-rings i { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent); }
@keyframes pulse { from { transform: scale(0.15); opacity: 1; border-color: var(--accent); } to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-rings span { animation: none; opacity: 0.6; } .hero-rings span:nth-child(1) { transform: scale(0.4); } .hero-rings span:nth-child(2) { transform: scale(0.7); } }

/* ---------- Results ---------- */

.project-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 12px; }
.project-head h2 { font-size: 22px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 12px;
  white-space: normal;
  box-shadow: var(--shadow);
}
.stat:disabled { opacity: 1; cursor: default; }
.stat-value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-sub { color: var(--muted); font-size: 11px; margin-top: 2px; }
.stat.tone-bad .stat-value { color: var(--risk-high); }
.stat.tone-warn .stat-value { color: var(--risk-medium); }
.stat:nth-child(1) { grid-column: span 1; }
.sev-bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; gap: 1px; margin-top: 6px; background: var(--panel-2); }
.sev-seg { display: block; }

.warnings { margin: 0 0 12px; padding: 10px 14px 10px 30px; border: 1px solid color-mix(in srgb, var(--risk-medium) 45%, var(--border)); background: color-mix(in srgb, var(--risk-medium) 8%, var(--panel)); border-radius: var(--radius); font-size: 12px; color: var(--muted); }
.warnings li + li { margin-top: 3px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 8px 14px; color: var(--muted); font-weight: 500; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }

.view { position: relative; }
#view-graph {
  height: calc(100vh - 330px);
  min-height: 460px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.graph { position: absolute; inset: 0; }
.graph canvas { display: block; cursor: grab; touch-action: none; }
.graph canvas:active { cursor: grabbing; }
.graph-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.18);
}
.graph-tooltip span { color: var(--muted); }
.legend {
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  padding: 5px 9px;
  border-radius: 8px;
  pointer-events: none;
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .sep { opacity: 0.85; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.graph-controls { position: absolute; right: 10px; top: 10px; }

.band-none { --band: var(--risk-none); }
.band-low { --band: var(--risk-low); }
.band-medium { --band: var(--risk-medium); }
.band-high { --band: var(--risk-high); }
.band-critical { --band: var(--risk-critical); }
.dot[class*="band-"] { background: var(--band); }

.risk-pill {
  display: inline-block;
  min-width: 30px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 1px 7px;
  border-radius: 999px;
  color: var(--band);
  background: color-mix(in srgb, var(--band) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--band) 40%, transparent);
}
.ver { color: var(--muted); font-family: var(--mono); font-size: 11px; margin-left: 6px; }
.ver.big { font-size: 13px; margin-left: 0; }
.pkg-link { background: none; border: 0; padding: 0; color: var(--text); font-weight: 600; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.pkg-link:hover { color: var(--accent); text-decoration: underline; }

.sev-chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 5px; color: var(--sev); background: color-mix(in srgb, var(--sev) 15%, transparent); text-transform: capitalize; }
.sev-critical { --sev: var(--risk-critical); background-color: var(--risk-critical); }
.sev-high { --sev: var(--risk-high); background-color: var(--risk-high); }
.sev-medium { --sev: var(--risk-medium); background-color: var(--risk-medium); }
.sev-low { --sev: var(--risk-low); background-color: var(--risk-low); }
.sev-unknown { --sev: var(--muted); background-color: var(--muted); }
.sev-chip.sev-critical, .sev-chip.sev-high, .sev-chip.sev-medium, .sev-chip.sev-low, .sev-chip.sev-unknown { background-color: color-mix(in srgb, var(--sev) 15%, transparent); }

/* ---------- Direct deps ---------- */

.view-intro { margin: 0 0 12px; color: var(--muted); font-size: 13px; max-width: 760px; }
.direct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.dcard {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--band);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}
.dcard header { display: flex; align-items: start; gap: 10px; }
.rank { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.dname { flex: 1; min-width: 0; }
.inherited { text-align: right; display: flex; flex-direction: column; line-height: 1.1; }
.inherited b { font-size: 20px; font-variant-numeric: tabular-nums; }
.inherited span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.foot-bar { position: relative; height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.foot-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 3px; }
.foot-bar .excl { background: var(--accent); }
.dstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
.dstats div { display: flex; flex-direction: column; }
.dstats dt { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.dstats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sev-row { display: flex; flex-wrap: wrap; gap: 4px; font-size: 12px; }
.dextras { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- Table ---------- */

.table-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.table-tools input { width: 220px; }
.table-wrap { overflow: auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); max-height: calc(100vh - 360px); min-height: 300px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { position: sticky; top: 0; background: var(--panel-2); text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); padding: 0; z-index: 1; }
th > button, th:not(:has(button)) { padding: 8px 10px; }
th button { background: none; border: 0; border-radius: 0; width: 100%; text-align: left; color: inherit; font-weight: inherit; }
td { padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--panel-2); }
tbody tr.selected { background: color-mix(in srgb, var(--accent) 10%, transparent); }
td.issues { max-width: 320px; }
.issue { display: inline-block; font-size: 11px; padding: 0 6px; margin: 1px 3px 1px 0; border-radius: 4px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); }
.issue.lvl-critical, .issue.lvl-high { color: var(--risk-high); border-color: color-mix(in srgb, var(--risk-high) 40%, transparent); }
.issue.lvl-medium { color: var(--risk-medium); border-color: color-mix(in srgb, var(--risk-medium) 40%, transparent); }

/* ---------- Details ---------- */

.details { position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.details-empty { color: var(--muted); font-size: 13px; }
.dhead { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.dhead h2 { font-size: 19px; overflow-wrap: anywhere; letter-spacing: -0.01em; }
.risk-big { text-align: center; padding: 6px 12px; border-radius: 10px; color: var(--band); background: color-mix(in srgb, var(--band) 14%, transparent); display: flex; flex-direction: column; line-height: 1.1; }
.risk-big b { font-size: 24px; font-variant-numeric: tabular-nums; }
.risk-big span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.desc { margin: -6px 0 0; color: var(--muted); font-size: 13px; }
.links { display: flex; gap: 12px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.links button { margin-left: auto; }
.details section { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.details h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.issue-list, .vuln-list, .mini-list, .top-list, .chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.issue-list li { border-left: 3px solid var(--muted); padding: 2px 0 2px 10px; display: flex; flex-direction: column; font-size: 13px; }
.issue-list li span { color: var(--muted); font-size: 12px; white-space: pre-line; overflow-wrap: anywhere; }
.issue-list .lvl-critical { border-color: var(--risk-critical); }
.issue-list .lvl-high { border-color: var(--risk-high); }
.issue-list .lvl-medium { border-color: var(--risk-medium); }
.issue-list .lvl-low { border-color: var(--risk-low); }
.issue-list .lvl-ok { border-color: var(--ok); }
.vuln-list li { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.vuln-list p { margin: 4px 0 0; }
.vhead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.fix { font-size: 12px; }
.fix code { color: var(--ok); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; }
.facts dt { font-size: 11px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
.hint b { color: var(--text); }
.chain { gap: 0; counter-reset: chain; }
.chain li { position: relative; padding: 3px 0 3px 18px; font-size: 13px; }
.chain li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--edge); }
.chain li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 17px; bottom: -10px; width: 1px; background: var(--edge); }
.chain li:last-child::before { background: var(--accent); }
.scripts { margin: 0; padding: 8px 10px; background: var(--panel-2); border-radius: 8px; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mini-list { gap: 4px; max-height: 220px; overflow: auto; }
.mini-list li { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.mini-list .risk-pill { margin-left: auto; }
.top-list li { display: flex; gap: 10px; align-items: start; }
.top-list li > div { display: flex; flex-direction: column; min-width: 0; }
.top-list small { color: var(--muted); font-size: 12px; }
.top-list .ver { margin-left: 0; }

/* ---------- BZ theme: glass surfaces and type, as on blazexyz.com ---------- */

.panel, .empty, .stat, #view-graph, .dcard, .table-wrap {
  background: var(--bz-glass-bg);
  border: 1px solid var(--bz-glass-border);
}
.stat, .dcard { border-radius: var(--bz-radius-sm); }
.dcard { border-left: 3px solid var(--band); }
.vuln-list li, .scripts, .graph-tooltip { border-radius: var(--bz-radius-sm); }
.graph-tooltip { background: rgba(14, 9, 20, 0.88); backdrop-filter: var(--bz-glass-blur); -webkit-backdrop-filter: var(--bz-glass-blur); }
.legend { background: rgba(14, 9, 20, 0.7); }
th { background: var(--bz-surface-2); }
tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
input, select, textarea { background: rgba(0, 0, 0, 0.28); border-radius: var(--bz-radius-sm); }
input:focus, select:focus, textarea:focus { border-color: rgba(var(--bz-glow-rgb), 0.5); outline: none; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 1px solid rgb(var(--bz-glow-rgb)); outline-offset: 1px; }

.topbar {
  background: rgba(10, 7, 13, 0.62);
  backdrop-filter: var(--bz-glass-blur);
  -webkit-backdrop-filter: var(--bz-glass-blur);
  border-bottom-color: var(--bz-line);
  padding-left: 28px;
  padding-right: 28px;
}
.brand h1 { font-size: 0.8rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.brand p { color: var(--bz-text-lo); font-size: 11px; letter-spacing: 0.02em; }
.brand circle { stroke: var(--bz-accent); }
.brand .r1 { fill: var(--bz-accent); }
.topbar-actions .bz-home { margin-right: 10px; }

/* Buttons: quiet glass chips; the primary one is the main site's active tab. */
button { background: rgba(255, 255, 255, 0.04); border-radius: var(--bz-radius-sm); transition: border-color 0.2s, background 0.2s, color 0.2s; }
button:hover:not(:disabled) { border-color: rgba(var(--bz-glow-rgb), 0.45); }
button.primary {
  background: var(--bz-active-bg);
  border-color: rgba(var(--bz-glow-rgb), 0.38);
  color: var(--bz-text-hi);
  box-shadow: var(--bz-active-shadow);
  font-weight: 400;
}
button.primary:hover:not(:disabled) { filter: none; background: rgba(var(--bz-glow-rgb), 0.24); border-color: rgba(var(--bz-glow-rgb), 0.6); }
.topbar button, button.primary, button.big, .tabs button {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
button.big { font-size: 12px; padding: 12px; }
button.ghost { background: transparent; }
button.link { color: var(--bz-accent); text-decoration-color: rgba(var(--bz-glow-rgb), 0.45); }
.file-btn { background: rgba(255, 255, 255, 0.04); border-radius: var(--bz-radius-sm); }
.chip { background: rgba(255, 255, 255, 0.04); }
.chip.active { background: var(--bz-active-bg); border-color: rgba(var(--bz-glow-rgb), 0.38); color: var(--bz-text-hi); box-shadow: var(--bz-active-shadow); }
.tabs button[aria-selected="true"] { color: var(--bz-text-hi); }
.step { background: var(--bz-active-bg); border-color: rgba(var(--bz-glow-rgb), 0.38); }

/* Labels: small uppercase mono in the accent, as in the bio islands. */
.input-panel h2, .details h3 { font-size: 0.62rem; font-weight: 400; letter-spacing: 0.2em; color: rgba(var(--bz-glow-rgb), 0.9); }
.stat-label, .dstats dt, .inherited span, .facts dt, .risk-big span { letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; color: var(--bz-text-lo); }
.stat-value, .inherited b, .risk-big b { font-weight: 500; }

/* Display type: a light sans sentence with one word in script. */
.empty h2, .project-head h2, .dhead h2 { font-family: var(--bz-sans); font-weight: 300; letter-spacing: 0.01em; }
.empty h2 { font-size: 28px; line-height: 1.35; }
.empty p, .features li { font-size: 12.5px; line-height: 1.75; }
.features b { font-weight: 500; }
.features li::before { background: var(--bz-accent); box-shadow: 0 0 10px rgba(var(--bz-glow-rgb), 0.7); }
.hero-rings i { box-shadow: 0 0 0 6px rgba(var(--bz-glow-rgb), 0.18), 0 0 24px rgba(var(--bz-glow-rgb), 0.6); }

/* ---------- Responsive ---------- */

@media (max-width: 1600px) {
  .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .layout, body.input-collapsed .layout { grid-template-columns: 300px minmax(0, 1fr); }
  .details { grid-column: 1 / -1; position: static; max-height: none; }
}
@media (max-width: 760px) {
  .topbar { padding: 10px 16px; }
  .brand p, #export-json { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions button { padding: 6px 9px; font-size: 13px; }
  .layout, body.input-collapsed .layout { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 20px; gap: 12px; }
  .input-panel { position: static; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .empty { min-height: 0; padding: 32px 20px; }
  .empty h2 { font-size: 21px; }
  #view-graph { height: 70vh; min-height: 380px; }
  .legend .sep { display: none; }
  .table-tools input { width: 100%; }
  .dstats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .brand h1 { display: none; }
}
