/* BlueEDR interface.
   Dark analyst console. Flat panels, one blue accent, severity color carries
   meaning. Radius is small and deliberate; no glow, no glass, no grid. */

:root {
  --bg: #0b0f14;
  --bg-soft: #0d1219;
  --panel: #111821;
  --panel-2: #151d28;
  --panel-3: #1a2431;
  --line: #1f2a36;
  --line-2: #2b3847;
  --text: #dde5ee;
  --text-2: #aab8c7;
  --muted: #7f90a3;
  --faint: #5c6c7f;
  --accent: #4a9eff;
  --accent-2: #2f7fd6;
  --accent-ink: #04121f;
  --accent-dim: #16324d;
  --crit: #ff5a6e;
  --high: #ff9d4d;
  --med: #ffd34d;
  --low: #4a9eff;
  --info: #8b9bb0;
  --ok: #3ddc97;
  --r-xs: 3px;
  --r-sm: 5px;
  --r: 7px;
  --r-lg: 10px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo,
    Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --maxw: 1160px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.hidden {
  display: none !important;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  z-index: 50;
  border-radius: 0 0 var(--r) 0;
  font-weight: 600;
}

.skip:focus {
  left: 0;
}

.mono {
  font-family: var(--mono);
}

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

.accent {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex: 0 0 auto;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 550;
  padding: 8px 11px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text);
  background: var(--panel);
  text-decoration: none;
}

.nav-link.active {
  color: var(--text);
  border-color: var(--line-2);
  background: var(--panel);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang {
  display: inline-flex;
  align-items: center;
}

.lang select {
  appearance: none;
  background: var(--panel);
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 7px 26px 7px 10px;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.credit-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-sm);
  padding: 6px 10px;
}

.credit-chip b {
  color: var(--accent);
  font-weight: 700;
}

.credit-chip:hover {
  text-decoration: none;
  border-color: var(--line-2);
  color: var(--text);
}

.user-chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------- buttons */

.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 9px 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.btn:hover {
  background: var(--panel-3);
  border-color: var(--faint);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn.primary:hover {
  background: #5aa8ff;
  border-color: #5aa8ff;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn.ghost:hover {
  color: var(--text);
  border-color: var(--faint);
  background: var(--panel);
}

.btn.danger {
  color: var(--crit);
  border-color: #40222a;
  background: transparent;
}

.btn.danger:hover {
  background: #1c1116;
  border-color: #5a2a34;
}

.btn.small {
  padding: 5px 10px;
  min-height: 30px;
  font-size: 12.5px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.block {
  width: 100%;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  flex: 0 0 auto;
}

.btn.primary .spinner {
  border-color: rgba(4, 18, 31, 0.3);
  border-top-color: var(--accent-ink);
}

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

/* ----------------------------------------------------------- page shell */

.view {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 20px 80px;
  min-height: 60vh;
}

.view:focus {
  outline: none;
}

.page-head {
  margin-bottom: 26px;
  max-width: 720px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.lead {
  color: var(--text-2);
  font-size: 15.5px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 14px;
}

.section-head h2 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 600;
  white-space: nowrap;
}

.section-head .count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  padding: 1px 7px;
}

.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.card-pad {
  padding: 18px 20px;
}

/* ------------------------------------------------------------- landing */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 18px 0 8px;
}

.hero h1 {
  font-size: 42px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero .lead {
  font-size: 16.5px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.pipeline {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px;
}

.stage {
  display: flex;
  gap: 13px;
  padding: 15px 14px;
  border-radius: var(--r);
}

.stage + .stage {
  border-top: 1px solid var(--line);
}

.stage-idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
}

.stage h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.stage p {
  color: var(--muted);
  font-size: 13.5px;
}

.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.req-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.req-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  color: var(--text-2);
}

.req-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
  flex: 0 0 auto;
  margin-top: 1px;
}

/* ---------------------------------------------------------------- scan */

.scan-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.drop {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  padding: 46px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.drop:hover,
.drop.over {
  border-color: var(--accent);
  background: var(--panel);
}

.drop-mark {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  color: var(--muted);
}

.drop:hover .drop-mark,
.drop.over .drop-mark {
  color: var(--accent);
}

.drop-big {
  font-size: 16px;
  font-weight: 600;
}

.drop-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.drop-range {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin-top: 16px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  border-radius: var(--r);
  padding: 13px 15px;
  margin-top: 14px;
}

.file-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  flex: 0 0 auto;
}

.file-name {
  font-family: var(--mono);
  font-size: 13.5px;
  word-break: break-all;
}

.file-meta {
  color: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
  margin-top: 3px;
}

.options {
  padding: 4px 0;
}

.opt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 4px;
  cursor: pointer;
}

.opt + .opt {
  border-top: 1px solid var(--line);
}

.opt input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.opt-title {
  font-weight: 600;
  font-size: 14px;
}

.opt-hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.cost-table {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.cost-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  padding: 4px 0;
}

.cost-line.total {
  color: var(--text);
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
}

.cost-line .v {
  color: var(--accent);
}

.status-line {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  min-height: 20px;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* -------------------------------------------------------------- report */

.verdict-band {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr;
  gap: 22px;
  border: 1px solid var(--line-2);
  border-top-width: 3px;
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: 20px;
  align-items: center;
}

.verdict-band.sev-critical {
  border-top-color: var(--crit);
}

.verdict-band.sev-high {
  border-top-color: var(--high);
}

.verdict-band.sev-medium {
  border-top-color: var(--med);
}

.verdict-band.sev-low {
  border-top-color: var(--low);
}

.verdict-band.sev-info {
  border-top-color: var(--info);
}

.verdict-band.sev-clean {
  border-top-color: var(--ok);
}

.vb-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.vb-verdict {
  font-size: 27px;
  font-weight: 700;
  margin-top: 2px;
}

.sev-critical .vb-verdict {
  color: var(--crit);
}

.sev-high .vb-verdict {
  color: var(--high);
}

.sev-medium .vb-verdict {
  color: var(--med);
}

.sev-low .vb-verdict {
  color: var(--low);
}

.sev-info .vb-verdict {
  color: var(--info);
}

.sev-clean .vb-verdict {
  color: var(--ok);
}

.vb-file {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  word-break: break-all;
}

.vb-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  padding: 2px 7px;
}

.tag.accent {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.meter-num {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
}

.meter-num span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.meter {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  margin-top: 9px;
}

.meter-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.5s ease;
}

.sev-critical .meter-fill {
  background: var(--crit);
}

.sev-high .meter-fill {
  background: var(--high);
}

.sev-medium .meter-fill {
  background: var(--med);
}

.sev-low .meter-fill {
  background: var(--low);
}

.sev-clean .meter-fill {
  background: var(--ok);
}

.stages {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.stage-stat {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 11px 12px;
  background: var(--bg-soft);
}

.stage-stat .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stage-stat .v {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

.stage-stat .s {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* chips */

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 16px;
}

.chip {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.chip:hover {
  color: var(--text);
}

.chip.active {
  color: var(--text);
  border-color: var(--faint);
  background: var(--panel-3);
}

.chip.active.sev-critical {
  color: var(--crit);
  border-color: var(--crit);
}

.chip.active.sev-high {
  color: var(--high);
  border-color: var(--high);
}

.chip.active.sev-medium {
  color: var(--med);
  border-color: var(--med);
}

.chip.active.sev-low {
  color: var(--low);
  border-color: var(--low);
}

/* findings */

.finding {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: var(--r);
  background: var(--panel);
  margin-bottom: 9px;
  overflow: hidden;
}

.finding.sev-critical {
  border-left-color: var(--crit);
}

.finding.sev-high {
  border-left-color: var(--high);
}

.finding.sev-medium {
  border-left-color: var(--med);
}

.finding.sev-low {
  border-left-color: var(--low);
}

.finding.sev-info {
  border-left-color: var(--info);
}

.finding.weak {
  opacity: 0.72;
}

.finding-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
}

.finding-head:hover {
  background: var(--bg-soft);
}

.sev {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: var(--r-xs);
  border: 1px solid currentColor;
  flex: 0 0 auto;
}

.sev-critical .sev {
  color: var(--crit);
}

.sev-high .sev {
  color: var(--high);
}

.sev-medium .sev {
  color: var(--med);
}

.sev-low .sev {
  color: var(--low);
}

.sev-info .sev {
  color: var(--info);
}

.ftitle {
  font-weight: 600;
  flex: 1;
  font-size: 14.5px;
}

.caret {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  flex: 0 0 auto;
}

.finding-body {
  padding: 2px 16px 16px;
  border-top: 1px solid var(--line);
}

.desc {
  color: var(--text-2);
  font-size: 14px;
  margin: 13px 0;
}

.kv {
  display: flex;
  gap: 10px;
  font-size: 13px;
  margin: 6px 0;
  align-items: baseline;
}

.kv-k {
  font-family: var(--mono);
  color: var(--muted);
  min-width: 82px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.kv-v {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  word-break: break-word;
}

.evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.evidence code {
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 3px 7px;
  border-radius: var(--r-xs);
  word-break: break-all;
}

.fix {
  margin-top: 14px;
  padding: 12px 13px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ok);
}

.fix .k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ok);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fix .v {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-2);
}

/* facts */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.fact {
  background: var(--panel);
  padding: 11px 13px;
}

.fact-k {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fact-v {
  font-family: var(--mono);
  font-size: 12.5px;
  margin-top: 4px;
  word-break: break-all;
}

.fact-v.good {
  color: var(--ok);
}

.fact-v.bad {
  color: var(--high);
}

/* tables */

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

table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
}

table.tbl th,
table.tbl td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.tbl th {
  color: var(--muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--panel-2);
  position: sticky;
  top: 0;
}

table.tbl tbody tr:hover {
  background: var(--bg-soft);
}

table.tbl tr:last-child td {
  border-bottom: none;
}

.perm {
  font-weight: 700;
}

.perm.RWX {
  color: var(--crit);
}

.perm.R-X {
  color: var(--ok);
}

/* imports */

.imports {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.import-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 11px 13px;
}

.import-dll {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 6px;
}

.import-funcs {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
  word-break: break-word;
}

/* dynamic */

.loading-card {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}

.loading-card .spinner {
  width: 20px;
  height: 20px;
  border-width: 3px;
  color: var(--accent);
}

.loading-title {
  font-weight: 600;
  font-size: 14px;
}

.loading-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.events-wrap {
  max-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: auto;
}

.ev {
  margin: 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-soft);
}

.ev-head {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding: 7px 11px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.hexdump {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-2);
  padding: 10px 12px;
  overflow-x: auto;
  white-space: pre;
}

.ev-decoded {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ok);
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  word-break: break-all;
}

.ev-enc {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  padding: 1px 5px;
  margin-right: 8px;
}

/* misc */

.empty {
  color: var(--muted);
  font-size: 13.5px;
  padding: 22px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
}

.empty.good {
  border-color: #1f4a33;
  color: var(--ok);
}

.empty strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 4px 0 14px;
}

.error-box {
  border: 1px solid #4a2630;
  background: #180f13;
  color: #ffb3be;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 12.5px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

/* ---------------------------------------------------------- auth forms */

.auth-wrap {
  max-width: 430px;
  margin: 20px auto 0;
}

.auth-wrap .card {
  padding: 26px 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  padding: 10px 12px;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--accent);
  outline: none;
}

.captcha-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.captcha-img {
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--panel-2);
  flex: 1;
  min-height: 64px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.captcha-img svg {
  display: block;
  width: 100%;
  height: auto;
}

.auth-alt {
  text-align: center;
  margin-top: 16px;
  font-size: 13.5px;
}

.form-error {
  margin-top: 14px;
}

/* ------------------------------------------------------------ history */

.hist-file {
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
  text-align: left;
}

.hist-file:hover {
  text-decoration: underline;
}

.vbadge {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  border: 1px solid currentColor;
}

.vbadge.sev-critical {
  color: var(--crit);
}

.vbadge.sev-high {
  color: var(--high);
}

.vbadge.sev-medium {
  color: var(--med);
}

.vbadge.sev-low {
  color: var(--low);
}

.vbadge.sev-info {
  color: var(--info);
}

.vbadge.sev-clean {
  color: var(--ok);
}

/* ------------------------------------------------------------ profile */

.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
}

.balance-num {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin: 8px 0 6px;
}

.balance-num small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--r);
  background: var(--panel-3);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  flex: 0 0 auto;
}

.id-name {
  font-size: 17px;
  font-weight: 650;
  word-break: break-all;
}

.id-meta {
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: 3px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.stat {
  background: var(--panel);
  padding: 14px 15px;
}

.stat .k {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.stat .v {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  margin-top: 5px;
}

/* ----------------------------------------------------------- modal/toast */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 11, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 40;
}

.modal-card {
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  padding: 20px 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-head h3 {
  font-size: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--panel-3);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  z-index: 60;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------------------------------- foot */

.foot {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.foot-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 20px 50px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 26px;
  align-items: start;
}

.brand-text {
  font-weight: 700;
  font-size: 15px;
}

.foot-tag {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 6px;
}

.foot-note {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero,
  .feature,
  .scan-grid,
  .profile-grid,
  .foot-in {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 33px;
  }
  .verdict-band {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .nav-in {
    padding: 8px 14px;
    gap: 8px 12px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 6px;
  }
  .nav-right {
    margin-left: auto;
  }
  .view {
    padding: 24px 14px 60px;
  }
  .h1 {
    font-size: 24px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .stages {
    grid-template-columns: 1fr;
  }
  .balance-num {
    font-size: 36px;
  }
  table.tbl th,
  table.tbl td {
    padding: 7px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
