/*
 * NetHero — unified design system
 *
 * Refined dark-mode palette, consistent typography, accessible interactive
 * states, and shared component styles applied across all templates.
 */

/* ── Design tokens ──────────────────────────────────────────────────────────── */
:root {
  /* Background layers */
  --bg:       #0f1623;   /* page background — deep navy */
  --surface:  #151f30;   /* card / panel surface */
  --surface2: #1b2a3f;   /* raised within card (inputs, code blocks) */
  --surface3: #212f4a;   /* hover within surface2 */
  --border:   #273550;   /* subtle separator */
  --border2:  #374d68;   /* more visible divider */

  /* Text */
  --text:     #dce8f5;   /* body — cool white, not blinding */
  --text-dim: #9ab0c8;   /* muted body copy */
  --muted:    #7a97b4;   /* labels, captions, secondaries */
  --info:     #5a7899;   /* very quiet — placeholder-level */

  /* Accent (blue) */
  --accent:      #5ba0f8;
  --accent-dim:  rgba(91,160,248,.18);
  --accent-glow: rgba(91,160,248,.35);

  /* Semantic status */
  --ok:   #3dd68c;
  --warn: #f9c645;
  --err:  #f06f6f;
  --crit: #e84040;
  --ok-dim:   rgba(61,214,140,.14);
  --warn-dim: rgba(249,198,69,.12);
  --err-dim:  rgba(240,111,111,.14);

  /* Spacing scale */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;

  /* Type scale */
  --fs-xs:  11px;
  --fs-sm:  13px;
  --fs-md:  15px;
  --fs-base: 16px;
  --fs-lg:  18px;
  --fs-xl:  21px;
  --fs-2xl: 26px;
  --fs-3xl: 32px;

  /* Radii */
  --radius:    8px;
  --radius-sm: 5px;
  --radius-lg: 12px;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Courier New', monospace;

  /* Transitions */
  --tr: 150ms ease;
}

/* ── Reset / base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--fs-base); scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Focus ring ─────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Remove outline from mouse but keep for keyboard */
:focus:not(:focus-visible) { outline: none; }

/* ── Links ──────────────────────────────────────────────────────────────────── */
a { color: var(--accent); text-decoration: none; transition: color var(--tr); }
a:hover { color: #93c5fd; text-decoration: underline; }

/* ── Scrollbar (webkit) ─────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Selection ──────────────────────────────────────────────────────────────── */
::selection { background: rgba(91,160,248,.3); color: var(--text); }

/* ── Page shell ─────────────────────────────────────────────────────────────── */
.page { max-width: 1120px; margin: 0 auto; padding: 28px 24px; }
@media (max-width: 600px) { .page { padding: 16px 14px; } }

/* ── Typography helpers ─────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { line-height: 1.7; }

.label-upper {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ── Page heading patterns ───────────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.page-title {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.page-intro {
  font-size: clamp(15px, 1.7vw, 17px);
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
}

/* ── Status dot ──────────────────────────────────────────────────────────────── */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.status-dot-ok   { background: var(--ok);   box-shadow: 0 0 6px rgba(61,214,140,.5); }
.status-dot-warn { background: var(--warn);  box-shadow: 0 0 6px rgba(249,198,69,.4); }
.status-dot-err  { background: var(--err);   box-shadow: 0 0 6px rgba(240,111,111,.4); }
.status-dot-muted { background: var(--muted); }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--text);
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 22px;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; }
a.brand { text-decoration: none; color: inherit; }
.brand img { height: 36px; width: 36px; object-fit: contain; flex-shrink: 0; }
.brand h1 { font-size: var(--fs-xl); letter-spacing: -.02em; font-weight: 700; }
.brand p  { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }

.page-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 18px 24px; text-align: center; }
.page-footer a { color: var(--muted); font-size: var(--fs-sm); text-decoration: none; padding: 4px 10px; border-radius: var(--radius-sm); }
.page-footer a:hover { color: var(--text); background: var(--surface2); }

/* nav as direct header child always pushes to the right edge */
header > .nav { margin-left: auto; }

.nav { display: flex; gap: 2px; font-size: var(--fs-sm); align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface2); text-decoration: none; }
.nav a.active { color: var(--accent); background: var(--accent-dim); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: var(--fs-md);
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: background var(--tr), box-shadow var(--tr), transform 80ms ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: .01em;
}
.btn:hover  { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4a91f0; box-shadow: 0 4px 16px rgba(91,160,248,.3); color: #fff; }

.btn-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border2); }
.btn-secondary:hover { background: var(--surface3); color: var(--text); }

.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent-glow); }
.btn-ghost:hover { background: var(--accent-dim); color: var(--accent); }

.btn-danger { background: var(--err-dim); color: var(--err); border: 1px solid rgba(240,111,111,.3); }
.btn-danger:hover { background: rgba(240,111,111,.22); color: var(--err); }

.btn-sm { padding: 6px 14px; font-size: var(--fs-sm); border-radius: var(--radius-sm); }
.btn-xs { padding: 3px 10px; font-size: var(--fs-xs); border-radius: 4px; }
.btn-full { width: 100%; }

.btn:disabled, button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Download / nav buttons */
.dl-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text-dim);
  white-space: nowrap;
  transition: background var(--tr), color var(--tr);
}
.dl-btn:hover { background: var(--surface3); color: var(--text); text-decoration: none; }
.dl-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.dl-btn.primary:hover { background: #4a91f0; color: #fff; }

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 18px;
}
@media (max-width: 600px) { .card { padding: 16px 18px; } }

.card-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1;
}

/* ── Form controls ──────────────────────────────────────────────────────────── */
label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.4;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 9px 13px;
  font-size: var(--fs-sm);
  font-family: var(--font);
  line-height: 1.5;
  transition: border-color var(--tr), box-shadow var(--tr);
}
input::placeholder, textarea::placeholder { color: var(--info); }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,160,248,.2);
}
select option { background: var(--surface); color: var(--text); }
textarea { resize: vertical; min-height: 90px; }

/* Checkbox / radio */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ── Tables ─────────────────────────────────────────────────────────────────── */
.table-base {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.table-base th {
  text-align: left;
  padding: 8px 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.table-base td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.table-base tr:last-child td { border-bottom: none; }
.table-base tbody tr:hover td { background: var(--surface2); }
.table-base td a { color: var(--accent); }

/* Key-value table */
.kv-table { width: 100%; font-size: var(--fs-sm); border-collapse: collapse; }
.kv-table td { padding: 6px 0; vertical-align: top; }
.kv-table td:first-child { color: var(--muted); width: 180px; padding-right: 14px; }

/* ── Badges / status ────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
}
.badge-ok     { background: var(--ok-dim);   color: var(--ok); }
.badge-warn   { background: var(--warn-dim); color: var(--warn); }
.badge-err    { background: var(--err-dim);  color: var(--err); }
.badge-crit   { background: rgba(232,64,64,.2); color: #fca5a5; }
.badge-info   { background: rgba(90,120,153,.15); color: var(--muted); }
.badge-accent { background: var(--accent-dim); color: var(--accent); }

/* Severity badges (for findings) */
.sev { display: inline-block; padding: 2px 8px; border-radius: 4px;
       font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.sev-critical { background: rgba(220,38,38,.2);  color: #fca5a5; }
.sev-error    { background: rgba(240,111,111,.2); color: #f87171; }
.sev-warning  { background: rgba(249,198,69,.18); color: #fcd34d; }
.sev-info     { background: rgba(90,120,153,.18); color: var(--muted); }

/* ── Status chips ───────────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.status-issues_found { background: var(--err-dim);  color: var(--err);  border: 1px solid rgba(240,111,111,.3); }
.status-success      { background: var(--ok-dim);   color: var(--ok);   border: 1px solid rgba(61,214,140,.3); }

/* ── Progress / bar ─────────────────────────────────────────────────────────── */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: var(--fs-sm); }
.bar-label { width: 160px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.bar-track { flex: 1; background: var(--surface2); border-radius: 3px; height: 7px; }
.bar-fill  { height: 7px; border-radius: 3px; background: var(--accent); transition: width .4s ease; }
.bar-val   { width: 32px; text-align: right; color: var(--muted); }

/* ── Toast notifications ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 500;
  z-index: 3000;
  display: none;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  max-width: 360px;
}

/* ── Modal base ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  width: min(700px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: var(--fs-lg); font-weight: 700; }
.modal-body   { padding: 22px 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── Accordion / details ────────────────────────────────────────────────────── */
details summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  color: var(--muted);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  transition: color var(--tr);
}
details summary::-webkit-details-marker { display: none; }
details summary:hover { color: var(--text); }

.section-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-bottom: 12px;
  transition: color var(--tr);
}
.section-toggle:hover { color: var(--text); }

/* ── Scan check-item grid ────────────────────────────────────────────────────── */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--tr), background var(--tr);
}
.check-item:hover { border-color: var(--border2); background: var(--surface3); }
.check-item input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }
.check-item .lbl  { font-size: var(--fs-sm); font-weight: 500; color: var(--text-dim); }
.check-item .desc { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }

/* ── Toggle rows ────────────────────────────────────────────────────────────── */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row label { margin: 0; cursor: pointer; font-size: var(--fs-sm); color: var(--text-dim); }
.toggle-row .toggle-desc { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }

/* ── Utility layout ─────────────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-1 { gap: var(--sp-1); } .gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); } .gap-6 { gap: var(--sp-6); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── Error block ────────────────────────────────────────────────────────────── */
.error-block {
  background: var(--err-dim);
  border: 1px solid rgba(240,111,111,.3);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  color: var(--err);
  font-size: var(--fs-sm);
}
.error-block pre {
  font-size: var(--fs-xs);
  margin-top: 8px;
  white-space: pre-wrap;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ── Evidence blocks ────────────────────────────────────────────────────────── */
.evidence-block {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 10px;
  font-size: var(--fs-sm);
  border-left: 3px solid var(--border2);
}
.evidence-meta { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 6px; }
.evidence-raw  {
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: pre-wrap;
  color: var(--text-dim);
  max-height: 180px;
  overflow-y: auto;
}

/* ── Grafana CTA ─────────────────────────────────────────────────────────────── */
.grafana-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 18px;
}
.grafana-cta .grafana-icon { font-size: 26px; }
.grafana-cta .grafana-text { flex: 1; }
.grafana-cta .grafana-text strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.grafana-cta .grafana-text span   { font-size: var(--fs-xs); color: var(--muted); }
.grafana-cta a.btn { background: #e05900; color: #fff; border: none; }
.grafana-cta a.btn:hover { background: #c44e00; text-decoration: none; }

/* ── Promote button ─────────────────────────────────────────────────────────── */
.promote-btn {
  background: var(--accent-dim);
  border: 1px solid rgba(91,160,248,.3);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 4px 11px;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--tr);
  font-family: var(--font);
}
.promote-btn:hover { background: rgba(91,160,248,.28); }

/* ── YAML preview ───────────────────────────────────────────────────────────── */
.promote-yaml {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  white-space: pre-wrap;
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
}

/* ── Back link ──────────────────────────────────────────────────────────────── */
.back-link {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--tr);
}
.back-link:hover { color: var(--text); text-decoration: none; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--info);
  line-height: 1.7;
}

/* ── Probe tiles ────────────────────────────────────────────────────────────── */
.probe-tile {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  border-left: 3px solid var(--border);
}
.probe-tile.pass { border-left-color: var(--ok); }
.probe-tile.fail { border-left-color: var(--err); }
.probe-tile.skip { border-left-color: var(--info); }
.probe-name { font-size: var(--fs-sm); font-weight: 600; }
.probe-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; }
.probe-icon { float: right; font-size: 15px; }

/* ── Scan-list empty state ──────────────────────────────────────────────────── */
.empty-state {
  color: var(--muted);
  font-size: var(--fs-sm);
  padding: 32px;
  text-align: center;
  line-height: 1.8;
}

/* ── Responsive image ───────────────────────────────────────────────────────── */
img { max-width: 100%; height: auto; }

/* ── Stat cards (dashboard) ─────────────────────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat-label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.stat-value { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stat-sub   { font-size: var(--fs-xs); color: var(--muted); margin-top: 5px; }
.v-accent { color: var(--accent); }
.v-err    { color: var(--err); }
.v-warn   { color: var(--warn); }
.v-ok     { color: var(--ok); }
.v-muted  { color: var(--muted); }

/* ── Health banner (dashboard) ──────────────────────────────────────────────── */
.health-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: var(--radius); margin-bottom: 22px;
  border: 1px solid var(--border2);
}
.health-banner.healthy { background: rgba(61,214,140,.05); border-color: rgba(61,214,140,.22); }
.health-banner.issues  { background: rgba(240,111,111,.06); border-color: rgba(240,111,111,.28); }
.health-banner.no-data { background: var(--surface); }
.health-body { flex: 1; }
.health-title { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 2px; }
.health-body p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; margin: 0; }

/* ── Scan list (dashboard) ──────────────────────────────────────────────────── */
.scan-list { list-style: none; }
.scan-item { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.scan-item:last-child { border-bottom: none; }
.scan-row-top { display: flex; align-items: center; gap: 8px; }
.scan-target  { font-size: var(--fs-sm); font-weight: 600; color: var(--text-dim); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-row-bot { display: flex; align-items: center; gap: 8px; }
.scan-when    { font-size: var(--fs-xs); color: var(--info); flex: 1; }
.scan-count   { font-size: var(--fs-xs); color: var(--muted); }
.scan-link    { font-size: var(--fs-xs); color: var(--accent); }
.badge-issues { background: rgba(240,111,111,.15); color: var(--err); }
.badge-ok     { background: rgba(61,214,140,.12);  color: var(--ok); }

/* ── Quick scan CTA (dashboard) ─────────────────────────────────────────────── */
.quick-scan {
  background: linear-gradient(135deg, rgba(91,160,248,.1) 0%, var(--surface) 100%);
  border: 1px solid rgba(91,160,248,.25);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-align: center;
}
.quick-scan h3 { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 6px; }
.quick-scan p  { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 14px; line-height: 1.5; }

/* ── Grafana CTA (dashboard variant) ────────────────────────────────────────── */
.grafana-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px;
}
.grafana-row .g-text { flex: 1; }
.grafana-row .g-text strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.grafana-row .g-text span   { font-size: var(--fs-xs); color: var(--muted); }
.grafana-row a.g-btn {
  background: #e05900; color: #fff; border: none; border-radius: var(--radius);
  padding: 7px 16px; font-size: var(--fs-xs); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.grafana-row a.g-btn:hover { background: #c44e00; text-decoration: none; }

/* ── Print ──────────────────────────────────────────────────────────────────── */
@media print {
  body { background: #fff; color: #000; }
  header, footer, .btn, .modal-overlay { display: none !important; }
}
