:root {
  --guard-bg: #0f172a;
  --guard-accent: #22c55e;
}
body { background: #f4f6f9; }
.bg-guard { background: var(--guard-bg); }
.brand-dot {
  display: inline-block; width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--guard-accent); margin-right: .5rem; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
}
.card { border: 1px solid #e5e7eb; border-radius: .6rem; }
.card-title, h2.h6 { font-weight: 600; color: #334155; }
.kpi .card-body { padding: .9rem 1rem; }
.kpi-label { font-size: .78rem; color: #64748b; line-height: 1.2; min-height: 2em; }
.kpi-value { font-size: 1.7rem; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi-sub { font-size: .75rem; color: #94a3b8; }
.kpi-alert { border-color: #f59e0b; background: #fffbeb; }
#kpi-success:not(.kpi-alert) .kpi-sub { visibility: hidden; }
.chart-box { position: relative; height: 260px; }
.status-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }
.status-dot.ok { background: #22c55e; }
.status-dot.bad { background: #dc2626; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.table td, .table th { white-space: normal; }
.table thead th { font-size: .78rem; color: #64748b; font-weight: 600; }
.score { display: inline-block; min-width: 3.2em; text-align: center; font-size: .75rem; font-weight: 600;
  border-radius: .3rem; padding: .1rem .35rem; font-variant-numeric: tabular-nums; }
.score-high { background: #fee2e2; color: #b91c1c; }
.score-mid { background: #fef3c7; color: #b45309; }
.score-low { background: #dcfce7; color: #15803d; }
.score-none { color: #94a3b8; }
.score-big { font-size: 1.8rem; font-weight: 700; padding: 0 .4rem; border-radius: .4rem; }
.code-input { font-size: 1.8rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.sev { display: inline-block; font-size: .72rem; font-weight: 600; border-radius: .3rem; padding: .1rem .4rem; white-space: nowrap; }
.sev-critical { background: #7f1d1d; color: #fff; }
.sev-high { background: #fee2e2; color: #b91c1c; }
.sev-medium { background: #fef3c7; color: #b45309; }
.sev-low, .sev-info { background: #e2e8f0; color: #475569; }
.finding-detail { white-space: pre-line; }
.disk-bar { display: block; width: 100%; height: 6px; border: 0; border-radius: 3px; background: #e5e7eb; overflow: hidden; appearance: none; }
.disk-bar::-webkit-progress-bar { background: #e5e7eb; }
.disk-bar::-webkit-progress-value { background: #2563eb; }
.disk-bar::-moz-progress-bar { background: #2563eb; }
.disk-bar-full::-webkit-progress-value { background: #dc2626; }
.disk-bar-full::-moz-progress-bar { background: #dc2626; }
.scroll-box { max-height: 360px; overflow-y: auto; }
.system-banner a { text-decoration: none; }
.login-wrap { max-width: 380px; margin: 12vh auto 0; }
.table .font-monospace { font-size: .9em; }
a.font-monospace { text-decoration: none; }
