:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1c2230;
  --border: #2a3140;
  --text: #e6edf3;
  --muted: #8b949e;
  --dim: #6e7681;

  --critical: #f85149;
  --high: #fd8c3f;
  --medium: #e3b341;
  --low: #58a6ff;
  --info: #8b949e;
  --ok: #3fb950;

  --accent: #58a6ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

/* --- top bar --- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  /* Deliberately not sticky: the header contains the phase toggle and scan
     button, and a sticky element inside a tall scrolling report renders
     unpredictably (and breaks full-page capture). Keeping it static keeps the
     layout honest at any page height. */
  position: relative; z-index: 20;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.logo { font-size: 17px; font-weight: 650; letter-spacing: -0.2px; }
.tagline { color: var(--muted); font-size: 12.5px; }
.actions { display: flex; align-items: center; gap: 14px; }

.toggle { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.toggle input { accent-color: var(--accent); cursor: pointer; }
.toggle.disabled { opacity: 0.45; cursor: not-allowed; }

.btn {
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 7px 15px; font-size: 13px; font-weight: 550; cursor: pointer;
}
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn.primary { background: #1f6feb; border-color: #1f6feb; }
.btn.primary:hover:not(:disabled) { background: #2d7cf6; }
.btn:disabled { opacity: 0.55; cursor: default; }

/* --- banner --- */
.banner { padding: 10px 24px; font-size: 13px; border-bottom: 1px solid var(--border); }
.banner.err { background: rgba(248,81,73,0.14); color: #ffb4ae; }
.banner.warn { background: rgba(227,179,65,0.13); color: #f0d68a; }
.banner.info { background: rgba(88,166,255,0.12); color: #a9d0ff; }

main { max-width: 1240px; margin: 0 auto; padding: 22px 24px 60px; }

section { margin-bottom: 18px; }
.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px 18px;
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 12px; flex-wrap: wrap; }
.card-header h2 { margin: 0; font-size: 14.5px; font-weight: 600; }
.card-label { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; }
.card-note { color: var(--muted); font-size: 12.5px; margin: 2px 0 14px; max-width: 78ch; }
.card-note.inline { margin: 0; }

/* --- score --- */
.score-row { display: flex; align-items: center; gap: 14px; }
.grade { font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.score-value { font-size: 21px; font-weight: 600; }
.score-sub { color: var(--dim); font-size: 11.5px; }
.meter { height: 5px; background: var(--panel-2); border-radius: 3px; margin-top: 14px; overflow: hidden; }
.meter-fill { height: 100%; width: 0; border-radius: 3px; transition: width 0.45s ease, background 0.3s; }

.big-stat { font-size: 25px; font-weight: 600; }
.stat-sub { color: var(--dim); font-size: 11.5px; margin-top: 3px; }
.empty-inline { color: var(--dim); font-size: 12.5px; }

.sev-list { display: flex; flex-direction: column; gap: 5px; }
.sev-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.sev-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sev-count { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }

/* --- trifecta --- */
.trifecta { display: flex; align-items: stretch; gap: 10px; }
@media (max-width: 860px) { .trifecta { flex-direction: column; } .arrow { transform: rotate(90deg); } }
.leg {
  flex: 1; background: var(--panel-2);
  border: 1px solid var(--border); border-left: 3px solid var(--dim);
  border-radius: 7px; padding: 12px 14px;
  transition: border-color 0.3s, background 0.3s;
}
.leg.active { border-left-color: var(--critical); background: rgba(248,81,73,0.07); }
.leg.inactive { opacity: 0.5; }
.leg-title { font-weight: 600; font-size: 13px; }
.leg-desc { color: var(--dim); font-size: 11.5px; margin-top: 2px; }
.leg-servers { list-style: none; margin: 9px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.leg-servers li {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; background: rgba(248,81,73,0.16); color: #ffb4ae;
  border-radius: 4px; padding: 2px 7px;
}
.leg-servers li.none { background: transparent; color: var(--dim); }
.arrow { display: flex; align-items: center; color: var(--dim); font-size: 19px; }

.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge.neutral { background: var(--panel-2); color: var(--muted); }
.badge.ok { background: rgba(63,185,80,0.16); color: var(--ok); }
.badge.crit { background: rgba(248,81,73,0.17); color: var(--critical); }
.badge.warn { background: rgba(227,179,65,0.16); color: var(--medium); }

.inline-warn {
  margin-top: 12px; padding: 9px 12px; border-radius: 6px;
  background: rgba(248,81,73,0.1); border-left: 3px solid var(--critical);
  font-size: 12.5px; color: #ffc9c4;
}

/* --- table --- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th {
  text-align: left; padding: 8px 11px; color: var(--muted);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { padding: 9px 11px; border-bottom: 1px solid rgba(42,49,64,0.55); }
tbody tr:last-child td { border-bottom: none; }
td.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
td.center { text-align: center; }
.cap-yes { color: var(--critical); font-weight: 700; }
.cap-no { color: var(--dim); }
.pill { font-size: 10.5px; padding: 2px 7px; border-radius: 4px; background: var(--panel-2); color: var(--muted); }
.pill.danger { background: rgba(248,81,73,0.16); color: #ffb4ae; }
.pill.weak { background: rgba(227,179,65,0.14); color: #f0d68a; }
.empty { color: var(--dim); text-align: center; padding: 22px; font-size: 12.5px; }

/* --- drift --- */
.drift-item {
  padding: 10px 12px; border-radius: 6px; background: var(--panel-2);
  border-left: 3px solid var(--medium); margin-bottom: 8px; font-size: 12.5px;
}
.drift-item.new { border-left-color: var(--low); }
.drift-item.removed { border-left-color: var(--dim); }
.drift-tools { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; }
.tool-tag { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; padding: 2px 6px; border-radius: 4px; }
.tool-tag.added { background: rgba(63,185,80,0.16); color: #7ee787; }
.tool-tag.removed { background: rgba(248,81,73,0.14); color: #ffb4ae; }

/* --- trend --- */
svg.trend { width: 100%; height: 150px; display: block; }
.trend-axis { stroke: var(--border); stroke-width: 1; }
.trend-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.trend-area { fill: url(#trendGrad); }
.trend-dot { fill: var(--accent); }
.trend-dot.static { fill: var(--medium); }
.trend-label { fill: var(--dim); font-size: 9.5px; }
.trend-note { color: var(--muted); font-size: 11.5px; margin-top: 8px; max-width: 80ch; }
.legend-dot, .legend-diamond {
  display: inline-block; width: 8px; height: 8px; vertical-align: middle;
}
.legend-dot { background: var(--accent); border-radius: 50%; }
.legend-diamond { background: var(--medium); transform: rotate(45deg); }

/* --- findings --- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  border-radius: 13px; padding: 3px 11px; font-size: 11.5px; cursor: pointer;
}
.chip.active { background: #1f6feb; border-color: #1f6feb; color: #fff; }

.finding { border: 1px solid var(--border); border-radius: 7px; margin-bottom: 9px; overflow: hidden; }
.finding-head {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; cursor: pointer; background: var(--panel-2);
}
.finding-head:hover { background: #212938; }
.sev-tag {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; min-width: 62px; text-align: center;
}
.sev-critical { background: rgba(248,81,73,0.19); color: var(--critical); }
.sev-high { background: rgba(253,140,63,0.17); color: var(--high); }
.sev-medium { background: rgba(227,179,65,0.16); color: var(--medium); }
.sev-low { background: rgba(88,166,255,0.15); color: var(--low); }
.sev-info { background: rgba(139,148,158,0.15); color: var(--info); }

.finding-title { flex: 1; font-size: 13px; font-weight: 550; }
.finding-meta { color: var(--dim); font-size: 11px; display: flex; gap: 9px; align-items: center; flex-shrink: 0; }
.chev { color: var(--dim); transition: transform 0.2s; }
.finding.open .chev { transform: rotate(90deg); }

.finding-body { display: none; padding: 14px; border-top: 1px solid var(--border); }
.finding.open .finding-body { display: block; }
.fb-label { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.6px; margin: 13px 0 4px; }
.fb-label:first-child { margin-top: 0; }
.finding-body p { margin: 0; font-size: 12.5px; white-space: pre-wrap; }
.finding-body code { font-family: ui-monospace, Menlo, monospace; background: var(--panel-2); padding: 1px 4px; border-radius: 3px; font-size: 11.5px; }
.refs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.ref { font-size: 10.5px; background: var(--panel-2); color: var(--muted); padding: 2px 7px; border-radius: 4px; }
.ref.saf { background: rgba(88,166,255,0.16); color: #a9d0ff; font-weight: 600; }
pre.evidence {
  background: #0b0f16; border: 1px solid var(--border); border-radius: 6px;
  padding: 11px; overflow-x: auto; font-size: 11px; margin: 5px 0 0;
  font-family: ui-monospace, Menlo, monospace; color: #b9c4d0; max-height: 300px;
}

.foot { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 11.5px; padding-top: 8px; }
.foot a { color: var(--accent); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.hidden { display: none !important; }
.spin { display: inline-block; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ============ demo / tabs / detail additions ============ */

.badge.demo { background: rgba(88,166,255,0.2); color: #a9d0ff; }

.phase { display: flex; align-items: center; gap: 6px; }
.phase-label { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.seg {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  padding: 4px 10px; font-size: 11.5px; cursor: pointer;
}
.seg:first-of-type { border-radius: 5px 0 0 5px; }
.seg:last-of-type { border-radius: 0 5px 5px 0; border-left: none; }
.seg.active { background: #7d3c14; border-color: #a8501c; color: #ffd9c2; }
.seg[data-phase="benign"].active { background: #1a4d2e; border-color: #2a6b41; color: #b8f0cc; }

.delta { font-size: 11.5px; margin-top: 8px; color: var(--dim); }
.delta.worse { color: var(--critical); }
.delta.better { color: var(--ok); }

.tabs { display: flex; gap: 2px; margin: 20px 0 16px; border-bottom: 1px solid var(--border); }
.tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--muted); padding: 9px 16px; font-size: 13px; font-weight: 550;
  cursor: pointer; margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-count {
  display: inline-block; background: var(--panel-2); color: var(--muted);
  border-radius: 9px; padding: 1px 7px; font-size: 10.5px; margin-left: 5px;
}
/* An empty badge still paints its background, leaving a stray pill on tabs with
   nothing to count. */
.tab-count:empty { display: none; }
.tab-count.crit { background: rgba(248,81,73,0.2); color: var(--critical); }

.panel { display: none; }
.panel.active { display: block; }

tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: rgba(88,166,255,0.06); }
tbody tr.selected { background: rgba(88,166,255,0.1); }

.risk-cell { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.risk-pip { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.session-note { font-size: 10px; color: var(--dim); }

.detail-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.detail-head h2 { margin: 0; font-size: 15px; }
.detail-close {
  margin-left: auto; background: none; border: 1px solid var(--border);
  color: var(--muted); border-radius: 5px; padding: 3px 10px; font-size: 11.5px; cursor: pointer;
}
.detail-close:hover { color: var(--text); border-color: var(--accent); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 12.5px; margin: 12px 0 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; word-break: break-all; }

.tool { border: 1px solid var(--border); border-radius: 7px; margin-bottom: 8px; overflow: hidden; }
.tool-head {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--panel-2); cursor: pointer;
}
.tool-head:hover { background: #212938; }
.tool.flagged .tool-head { border-left: 3px solid var(--critical); }
.tool-name { font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 600; }
.tool-caps { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.cap-tag { font-size: 9.5px; padding: 1px 6px; border-radius: 3px; background: rgba(248,81,73,0.14); color: #ffb4ae; }
.cap-tag.exec { background: rgba(253,140,63,0.16); color: var(--high); }
.tool-body { display: none; padding: 12px; border-top: 1px solid var(--border); }
.tool.open .tool-body { display: block; }
.tool-desc {
  font-size: 12px; background: #0b0f16; border: 1px solid var(--border);
  border-radius: 5px; padding: 9px; margin: 4px 0 0; white-space: pre-wrap;
  font-family: ui-monospace, Menlo, monospace; color: #b9c4d0; max-height: 200px; overflow-y: auto;
}
.tool-desc .mark { background: rgba(248,81,73,0.35); color: #fff; border-radius: 2px; padding: 0 1px; font-weight: 700; }
.reveal-warn {
  font-size: 11.5px; color: #ffc9c4; background: rgba(248,81,73,0.1);
  border-left: 3px solid var(--critical); padding: 7px 10px; border-radius: 5px; margin-top: 8px;
}
.param-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.param { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; background: var(--panel-2); color: var(--muted); padding: 2px 7px; border-radius: 4px; }

.saf-tactic { margin-bottom: 16px; }
.saf-tactic h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin: 0 0 7px; font-weight: 600; }
.saf-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px;
  border-radius: 5px; font-size: 12.5px; margin-bottom: 3px; background: var(--panel-2);
}
.saf-row.gap { opacity: 0.5; background: transparent; border: 1px dashed var(--border); }
.saf-id { font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 600; min-width: 78px; }
.saf-row.covered .saf-id { color: var(--accent); }
.saf-rules { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.saf-rule { font-family: ui-monospace, Menlo, monospace; font-size: 10px; background: rgba(88,166,255,0.14); color: #a9d0ff; padding: 1px 6px; border-radius: 3px; }
.saf-gap-label { margin-left: auto; font-size: 10.5px; color: var(--dim); font-style: italic; }

/* ============ targets ============ */

.target-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.target-form input {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 8px 11px; font-size: 12.5px;
  font-family: ui-monospace, Menlo, monospace;
}
.target-form input:focus { outline: none; border-color: var(--accent); }
#targetUrl { flex: 1; min-width: 300px; }
#targetName { width: 190px; }

.probe-result {
  padding: 9px 12px; border-radius: 6px; font-size: 12.5px; margin-bottom: 10px;
  border-left: 3px solid var(--dim); background: var(--panel-2);
}
.probe-result.ok { border-left-color: var(--ok); color: #b8f0cc; }
.probe-result.bad { border-left-color: var(--critical); color: #ffc9c4; }
/* Amber, not red: a server requiring credentials is working correctly. */
.probe-result.auth { border-left-color: var(--medium); color: #f0e2b8; }

.hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.hint summary { cursor: pointer; color: var(--accent); }
.hint p { margin: 8px 0 4px; }
pre.cmd {
  background: #0b0f16; border: 1px solid var(--border); border-radius: 6px;
  padding: 11px; overflow-x: auto; font-size: 11.5px; margin: 4px 0;
  font-family: ui-monospace, Menlo, monospace; color: #b9c4d0;
}

.target-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  background: var(--panel-2); border-radius: 6px; margin-bottom: 7px;
  border-left: 3px solid var(--dim); font-size: 12.5px;
}
.target-item.up { border-left-color: var(--ok); }
.target-item.down { border-left-color: var(--critical); }
.target-item.auth { border-left-color: var(--medium); }
.target-item.off { opacity: 0.5; }
.target-name { font-weight: 600; min-width: 150px; }
.target-url { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--muted); }
.target-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.dot.up { background: var(--ok); }
.dot.down { background: var(--critical); }
.dot.auth { background: var(--medium); }

/* ---------- auth tab ---------- */

.auth-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 4px;
}
@media (max-width: 900px) { .auth-grid { grid-template-columns: 1fr; } }
.auth-h {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); margin: 0 0 8px; font-weight: 600;
}
.auth-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.auth-table td { padding: 5px 0; vertical-align: top; }
.auth-table td.k {
  color: var(--muted); width: 88px; white-space: nowrap; padding-right: 10px;
}
.auth-table td.v {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  word-break: break-all; color: var(--text);
}
.chain { margin: 0; padding-left: 20px; font-size: 11px; }
.chain li { margin-bottom: 6px; color: var(--muted); word-break: break-all; }
.chain code { color: var(--text); }

.pill {
  display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 10.5px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  font-family: ui-monospace, Menlo, monospace;
}
.pill.ok { color: var(--ok); border-color: rgba(63,185,80,0.4); }
.pill.warn { color: var(--medium); border-color: rgba(227,179,65,0.4); }
.pill.bad { color: var(--critical); border-color: rgba(248,81,73,0.4); }

.auth-notes { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.note {
  padding: 9px 12px; border-radius: 6px; font-size: 12.5px; line-height: 1.5;
  background: var(--panel-2); border-left: 3px solid var(--dim); color: var(--text);
}
.note.ok { border-left-color: var(--ok); }
.note.warn { border-left-color: var(--medium); }
.note.bad { border-left-color: var(--critical); }
.note.info { border-left-color: var(--accent); }
.note code {
  font-size: 11px; background: rgba(255,255,255,0.06); padding: 1px 4px;
  border-radius: 3px;
}

.auth-actions {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.auth-actions input {
  flex: 1; min-width: 220px; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 7px 10px; font-size: 12.5px;
}
.auth-actions input:focus { outline: none; border-color: var(--accent); }
.dim { color: var(--dim); }
.btn-sm {
  background: none; border: 1px solid var(--border); color: var(--muted);
  border-radius: 5px; padding: 3px 9px; font-size: 11px; cursor: pointer;
}
.btn-sm:hover { color: var(--text); border-color: var(--accent); }
.btn-sm.danger:hover { color: var(--critical); border-color: var(--critical); }
.config-item {
  font-family: ui-monospace, Menlo, monospace; font-size: 11.5px;
  padding: 7px 11px; background: var(--panel-2); border-radius: 5px;
  margin-bottom: 5px; color: var(--muted); word-break: break-all;
}

/* ============ schedule + remediation ============ */

.sched { display: flex; align-items: center; gap: 6px; }
.sched select {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 5px; padding: 4px 8px; font-size: 11.5px; cursor: pointer;
}
.sched select:focus { outline: none; border-color: var(--accent); }
.sched-status { font-size: 10.5px; color: var(--dim); min-width: 62px; }
.sched-status.on { color: var(--ok); }
.sched-status.busy { color: var(--medium); }

.fix-item { border: 1px solid var(--border); border-radius: 7px; margin-bottom: 9px; overflow: hidden; }
.fix-head { display: flex; align-items: center; gap: 10px; padding: 11px 13px; cursor: pointer; background: var(--panel-2); }
.fix-head:hover { background: #212938; }
.fix-num {
  font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--dim);
  min-width: 22px; text-align: right;
}
.fix-title { flex: 1; font-size: 13px; font-weight: 550; }
.fix-meta { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.fix-body { display: none; padding: 14px; border-top: 1px solid var(--border); }
.fix-item.open .fix-body { display: block; }
.fix-item.open .chev { transform: rotate(90deg); }

.badge-qw { background: rgba(63,185,80,0.18); color: #7ee787; font-size: 9.5px;
  padding: 2px 7px; border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.badge-effort { font-size: 9.5px; padding: 2px 7px; border-radius: 4px; background: var(--panel-2); color: var(--muted); }
.badge-effort.trivial { background: rgba(63,185,80,0.14); color: #7ee787; }
.badge-effort.moderate { background: rgba(227,179,65,0.14); color: #f0d68a; }
.badge-effort.structural { background: rgba(253,140,63,0.14); color: var(--high); }

ol.steps { margin: 6px 0 0; padding-left: 22px; }
ol.steps li { margin-bottom: 12px; font-size: 12.5px; }
.step-tags { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; align-items: center; }
.tag-effect { font-size: 9.5px; padding: 1px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.tag-effect.eliminates { background: rgba(63,185,80,0.16); color: #7ee787; }
.tag-effect.mitigates { background: rgba(227,179,65,0.16); color: #f0d68a; }
.tag-effect.detects { background: rgba(88,166,255,0.16); color: #a9d0ff; }
.tag-effect.verifies { background: var(--panel-2); color: var(--muted); }
.step-rationale { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
pre.step-cmd {
  background: #0b0f16; border: 1px solid var(--border); border-radius: 5px;
  padding: 8px 10px; margin: 5px 0 0; font-size: 11px; overflow-x: auto;
  font-family: ui-monospace, Menlo, monospace; color: #b9c4d0;
}
.not-a-fix {
  margin-top: 12px; padding: 9px 12px; border-radius: 6px; font-size: 12px;
  background: rgba(248,81,73,0.09); border-left: 3px solid var(--critical); color: #ffc9c4;
}
.also-resolves { margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.also-resolves code { font-size: 10.5px; }
