/* ITHOPE Guard SOC console. Offline static UI, no external fonts/CDN. */
:root {
  --bg: #07090d;
  --bg-soft: #0d1117;
  --surface: #101720;
  --surface-2: #151d27;
  --surface-glass: rgba(10, 16, 22, .74);
  --line: rgba(184, 214, 232, .14);
  --line-strong: rgba(184, 214, 232, .28);
  --txt: #edf5f7;
  --txt-dim: #aab8c2;
  --txt-mute: #74838e;
  --accent: #53d7ee;
  --accent-2: #12b8d7;
  --green: #53d686;
  --green-bg: rgba(54, 181, 104, .13);
  --yellow: #f0c24b;
  --yellow-bg: rgba(240, 194, 75, .13);
  --red: #ff5e66;
  --red-bg: rgba(255, 94, 102, .14);
  --shadow: 0 18px 60px rgba(0, 0, 0, .34);
}

html[data-theme="light"] {
  --bg: #edf3f6;
  --bg-soft: #f7fafb;
  --surface: #ffffff;
  --surface-2: #edf3f6;
  --surface-glass: rgba(255, 255, 255, .78);
  --line: rgba(31, 45, 58, .14);
  --line-strong: rgba(31, 45, 58, .26);
  --txt: #101923;
  --txt-dim: #44515d;
  --txt-mute: #6f7a84;
  --accent: #087f99;
  --accent-2: #0aa6c3;
  --green: #13854b;
  --green-bg: rgba(19, 133, 75, .12);
  --yellow: #9b7107;
  --yellow-bg: rgba(155, 113, 7, .13);
  --red: #cf2f3a;
  --red-bg: rgba(207, 47, 58, .12);
  --shadow: 0 18px 54px rgba(36, 48, 61, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  overflow-x: hidden;
}

html { scrollbar-gutter: stable; }

body { min-height: 100vh; }

main section[id] { scroll-margin-top: 92px; }

button,
input { font: inherit; }

a {
  color: inherit;
  text-decoration: none;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
}

.topnav a,
.theme-option,
.adminbox label,
.kill-label,
.kill-btn,
.btn,
.hero-proof span,
.stat-head,
.pill,
.tag,
.cell-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.section-icon {
  width: 1.35em;
  height: 1.35em;
  color: var(--accent);
}

.mono,
code,
.tbl code {
  font-family: ui-monospace, "DejaVu Sans Mono", "Cascadia Code", "Liberation Mono", Menlo, Consolas, monospace;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 24px;
  background: rgba(7, 9, 13, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar > * { min-width: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(83, 215, 238, .42);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(83, 215, 238, .08);
  box-shadow: 0 0 28px rgba(83, 215, 238, .18);
  font-size: 19px;
}

.logo-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.65;
}

.brand-name {
  font-weight: 750;
  white-space: nowrap;
}

.brand-sub {
  margin-top: 1px;
  color: var(--txt-mute);
  font-size: 12px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--txt-dim);
}

.topnav a {
  border-radius: 8px;
  padding: 8px;
  transition: color .16s ease, background .16s ease;
}

.topnav a:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--txt);
}

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

.theme-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .045);
}

.theme-option {
  justify-content: center;
  cursor: pointer;
  min-width: 58px;
  border: 0;
  padding: 7px 10px;
  background: transparent;
  color: var(--txt-dim);
  font-weight: 800;
}

.theme-option[aria-pressed="true"] {
  background: rgba(83, 215, 238, .16);
  color: #a4f2ff;
}

.adminbox {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  background: rgba(255, 255, 255, .035);
}

.adminbox label {
  padding-left: 4px;
  color: var(--txt-mute);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-input {
  width: 120px;
  min-height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(5, 10, 14, .78);
  color: var(--txt);
  outline: none;
}

.admin-input:focus {
  border-color: rgba(83, 215, 238, .76);
  box-shadow: 0 0 0 3px rgba(83, 215, 238, .13);
}

.killbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.kill-label {
  color: var(--txt-mute);
  font-size: 12px;
  font-weight: 700;
}

.kill-btn,
.btn {
  justify-content: center;
  cursor: pointer;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .05);
  color: var(--txt);
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.kill-btn:hover,
.btn:hover {
  border-color: rgba(83, 215, 238, .72);
  box-shadow: 0 0 0 3px rgba(83, 215, 238, .08);
}

.kill-btn:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.kill-btn[aria-pressed="true"] {
  border-color: rgba(255, 94, 102, .9);
  background: var(--red-bg);
  color: #ffb6ba;
  box-shadow: 0 0 22px rgba(255, 94, 102, .26);
}

.btn-primary {
  border-color: rgba(83, 215, 238, .7);
  background: linear-gradient(180deg, #63e2f1, #13b7d4);
  color: #051216;
  box-shadow: 0 12px 34px rgba(18, 184, 215, .24);
}

.btn-primary:hover { border-color: rgba(237, 245, 247, .78); }

.btn-warn {
  border-color: rgba(240, 194, 75, .6);
  background: rgba(240, 194, 75, .1);
  color: #f6d777;
}

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

.btn-quiet {
  background: transparent;
  color: var(--txt-dim);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 340px;
  padding: 28px 24px 24px;
  border-bottom: 1px solid var(--line);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(7, 9, 13, .98) 0%, rgba(7, 9, 13, .86) 28%, rgba(7, 9, 13, .28) 62%, rgba(7, 9, 13, .72) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, .08), rgba(7, 9, 13, .82)),
    url("assets/ithope-openav-hero.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 150px;
  content: "";
  background: linear-gradient(180deg, rgba(7, 9, 13, 0), var(--bg));
}

.hero-content {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.hero-copy {
  max-width: 690px;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid rgba(83, 215, 238, .36);
  border-radius: 8px;
  padding: 4px 9px;
  background: rgba(83, 215, 238, .08);
  color: #a4f2ff;
  font-size: 12px;
  font-weight: 800;
}

.hero h1 {
  margin: 14px 0 10px;
  max-width: 680px;
  color: #f8fdff;
  font-size: 46px;
  line-height: .98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 620px;
  margin: 0;
  color: #d4e1e7;
  font-size: 18px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-proof span {
  border: 1px solid rgba(237, 245, 247, .14);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(7, 9, 13, .58);
  color: var(--txt-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.hero-command {
  width: min(720px, 100%);
  margin-top: 18px;
  border: 1px solid rgba(184, 214, 232, .22);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  min-width: 0;
}

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

.hero-command h2,
.card h2 {
  margin: 0;
  color: var(--txt);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-command h2 { font-size: 18px; }

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.input {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(5, 10, 14, .78);
  color: var(--txt);
  outline: none;
}

.input::placeholder { color: #6f7d87; }

.input:focus {
  border-color: rgba(83, 215, 238, .76);
  box-shadow: 0 0 0 3px rgba(83, 215, 238, .16);
}

.compact-input {
  flex: 1 1 150px;
  min-width: 130px;
}

.compact-select {
  flex: 0 1 150px;
  min-width: 140px;
  appearance: auto;
}

/* ---------- status ---------- */
.signal-band { padding: 18px 24px 0; }

.status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  width: min(1440px, 100%);
  margin: 0 auto;
}

.stat {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  min-width: 0;
}

.stat-label {
  display: block;
  color: var(--txt-mute);
  font-size: 12px;
  font-weight: 700;
}

.stat-head {
  color: var(--txt-mute);
}

.stat-head .ico,
.pill .ico,
.tag .ico,
.cell-main .ico {
  color: var(--accent);
}

.stat-value {
  display: block;
  margin-top: 8px;
  color: var(--txt);
  font-size: 28px;
  line-height: 1;
  font-weight: 850;
}

.stat.ok .stat-value { color: var(--green); }
.stat.warn .stat-value { color: var(--yellow); }
.stat.bad .stat-value { color: var(--red); }

/* ---------- layout ---------- */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 16px 24px 42px;
}

.span2 { grid-column: 1 / -1; }

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)),
    var(--surface);
  box-shadow: 0 14px 46px rgba(0, 0, 0, .22);
  min-width: 0;
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-title {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.section-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.section-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.fleet-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.client-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.agent-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .035);
  color: var(--txt-mute);
  font-size: 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.agent-command {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- AI immune memory ---------- */
.immune-card {
  padding: 18px;
}

.immune-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.immune-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.immune-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, .032);
}

.step-no {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(83, 215, 238, .42);
  border-radius: 8px;
  background: rgba(83, 215, 238, .09);
  color: #a4f2ff;
  font-size: 13px;
  font-weight: 850;
}

.step-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.step-label {
  color: var(--txt);
  font-size: 13px;
  font-weight: 850;
}

.step-meta {
  color: var(--txt-dim);
  font-size: 13px;
  font-weight: 750;
}

.step-controls {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  gap: 7px;
  min-width: 0;
}

.immune-key-input {
  width: 100%;
  min-width: 0;
}

.stable-action {
  min-width: 178px;
}

.immune-output {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.immune-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-self: start;
  min-width: 0;
}

.mini-stat {
  min-width: 0;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .035);
}

.mini-label {
  display: block;
  color: var(--txt-mute);
  font-size: 11px;
  font-weight: 800;
}

.mini-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--txt);
  font-size: 22px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.immune-trace {
  min-width: 0;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .032);
}

.trace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.trace-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--txt);
  font-size: 13px;
  font-weight: 850;
}

.trace-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.trace-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.trace-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(83, 215, 238, .1);
}

.trace-dot.ok { background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
.trace-dot.warn { background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-bg); }
.trace-dot.bad { background: var(--red); box-shadow: 0 0 0 4px var(--red-bg); }

.trace-row span {
  display: block;
  color: var(--txt-mute);
  font-size: 11px;
  font-weight: 800;
}

.trace-row strong {
  display: block;
  color: var(--txt);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.review-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.review-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .026);
  overflow: hidden;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.review-head h3 {
  margin: 0;
  color: var(--txt);
  font-size: 14px;
  line-height: 1.2;
}

.review-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 188px;
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
}

.review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  border: 1px solid rgba(184, 214, 232, .12);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .035);
}

.review-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-id {
  color: #a4f2ff;
  font-size: 12px;
  font-weight: 800;
}

.review-score {
  color: var(--txt-dim);
  font-size: 12px;
  font-weight: 800;
}

.review-reasons,
.review-path {
  min-width: 0;
  color: var(--txt-dim);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-empty {
  display: grid;
  place-items: center;
  min-height: 166px;
  color: var(--txt-mute);
  text-align: center;
}

/* ---------- messages ---------- */
.msg,
.global-err {
  margin: 12px 0 0;
  border: 1px solid rgba(255, 94, 102, .72);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--red-bg);
  color: #ffc2c5;
  font-size: 13px;
}

.msg.info {
  border-color: rgba(83, 215, 238, .55);
  background: rgba(83, 215, 238, .09);
  color: #b9f3fb;
}

.msg.ok {
  border-color: rgba(83, 214, 134, .58);
  background: var(--green-bg);
  color: #b7f4cd;
}

.global-err {
  width: min(1440px, calc(100% - 48px));
  margin: 12px auto 0;
}

/* ---------- scan result ---------- */
.scan-result,
.plan-result { margin-top: 14px; }

.verdict-line,
.plan-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 4px 11px;
  background: rgba(255, 255, 255, .05);
  color: var(--txt);
  font-weight: 800;
}

.badge-clean {
  border-color: rgba(83, 214, 134, .64);
  background: var(--green-bg);
  color: #a8f0c1;
}

.badge-suspicious {
  border-color: rgba(240, 194, 75, .64);
  background: var(--yellow-bg);
  color: #f7db84;
}

.badge-malicious {
  border-color: rgba(255, 94, 102, .72);
  background: var(--red-bg);
  color: #ffb3b7;
  box-shadow: 0 0 20px rgba(255, 94, 102, .2);
}

.badge-info {
  border-color: rgba(83, 215, 238, .56);
  background: rgba(83, 215, 238, .1);
  color: #b4f2fb;
}

.score-wrap,
.plan-meta {
  color: var(--txt-dim);
  font-size: 13px;
}

.score-wrap strong {
  color: var(--txt);
  font-size: 16px;
}

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

.kv .k,
.engines-title {
  color: var(--txt-mute);
  font-size: 12px;
  font-weight: 800;
}

.kv code {
  color: #a4f2ff;
  overflow-wrap: anywhere;
}

.engines { margin-top: 12px; }
.engines-title { margin-bottom: 6px; }

.engines-list,
.plan-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.engine,
.action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .045);
}

.engine .e-name {
  min-width: 90px;
  font-size: 12px;
  font-weight: 800;
}

.engine .e-result {
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}

.e-result.hit {
  background: var(--red-bg);
  color: #ffb3b7;
}

.e-result.clean {
  background: var(--green-bg);
  color: #a8f0c1;
}

.e-result.skip,
.e-result.error {
  background: rgba(255, 255, 255, .06);
  color: var(--txt-dim);
}

.engine .e-extra,
.e-extra {
  color: var(--txt-dim);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.action-item {
  display: block;
  border-left: 3px solid var(--accent);
}

.action-item .a-top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.action-item .a-type {
  color: #a4f2ff;
  font-weight: 800;
}

.tier-tag {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 2px 7px;
  color: var(--txt-dim);
  font-size: 11px;
}

.rev-yes {
  color: #a8f0c1;
  font-size: 12px;
}

.rev-no {
  color: #ffb3b7;
  font-size: 12px;
}

.action-item .a-reason {
  margin-top: 4px;
  color: var(--txt-dim);
  font-size: 12px;
}

/* ---------- tables ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, .05);
  color: var(--txt-dim);
  font-size: 12px;
  font-weight: 700;
}

.pill.ok {
  border-color: rgba(83, 214, 134, .58);
  background: var(--green-bg);
  color: #a8f0c1;
}

.pill.warn {
  border-color: rgba(240, 194, 75, .62);
  background: var(--yellow-bg);
  color: #f7db84;
}

.pill.bad {
  border-color: rgba(255, 94, 102, .68);
  background: var(--red-bg);
  color: #ffb3b7;
}

.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.table-wrap.scroll {
  max-height: 360px;
  overflow-y: auto;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tbl th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--line-strong);
  padding: 8px 10px;
  background: #111821;
  color: var(--txt-mute);
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.tbl td {
  border-bottom: 1px solid rgba(184, 214, 232, .09);
  padding: 9px 10px;
  vertical-align: middle;
}

.tbl tr:hover td { background: rgba(83, 215, 238, .045); }

.tbl .empty {
  padding: 18px;
  color: var(--txt-mute);
  text-align: center;
}

.tbl code {
  color: #a4f2ff;
  font-size: 12px;
}

.tbl .tok {
  color: var(--txt-dim);
  font-size: 12px;
}

.tbl td.bad {
  color: var(--red);
  font-weight: 800;
}

.path-cell {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, .05);
  color: var(--txt-dim);
  font-size: 12px;
  font-weight: 800;
}

.tag.malicious {
  border-color: rgba(255, 94, 102, .68);
  background: var(--red-bg);
  color: #ffb3b7;
}

.tag.suspicious {
  border-color: rgba(240, 194, 75, .6);
  background: var(--yellow-bg);
  color: #f7db84;
}

.tag.clean {
  border-color: rgba(83, 214, 134, .58);
  background: var(--green-bg);
  color: #a8f0c1;
}

.tag.acted,
.tag.decided { color: #f7db84; }

.tag.verified,
.tag.restore { color: #a8f0c1; }

.tag.failed { color: #ffb3b7; }

.footer {
  border-top: 1px solid var(--line);
  padding: 18px 24px 28px;
  color: var(--txt-mute);
  font-size: 12px;
  text-align: center;
}

html[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, .88);
}

html[data-theme="light"] .topnav a:hover,
html[data-theme="light"] .theme-switch,
html[data-theme="light"] .adminbox,
html[data-theme="light"] .hero-proof span,
html[data-theme="light"] .agent-hint,
html[data-theme="light"] .immune-step,
html[data-theme="light"] .immune-trace,
html[data-theme="light"] .review-panel,
html[data-theme="light"] .review-item,
html[data-theme="light"] .badge,
html[data-theme="light"] .pill,
html[data-theme="light"] .tag {
  background: rgba(16, 25, 35, .045);
}

html[data-theme="light"] .theme-option[aria-pressed="true"] {
  background: rgba(8, 127, 153, .12);
  color: #075f73;
}

html[data-theme="light"] .admin-input,
html[data-theme="light"] .input {
  background: rgba(255, 255, 255, .88);
}

html[data-theme="light"] .btn,
html[data-theme="light"] .kill-btn {
  background: #ffffff;
  color: #101923;
}

html[data-theme="light"] .btn-primary {
  background: linear-gradient(180deg, #5ed9e8, #10a8c4);
  color: #061216;
}

html[data-theme="light"] .btn-warn {
  background: rgba(240, 194, 75, .18);
  color: #7a5605;
}

html[data-theme="light"] .hero-visual {
  background-image:
    linear-gradient(90deg, rgba(237, 243, 246, .98) 0%, rgba(237, 243, 246, .88) 34%, rgba(237, 243, 246, .22) 68%, rgba(237, 243, 246, .62) 100%),
    linear-gradient(180deg, rgba(237, 243, 246, .06), rgba(237, 243, 246, .84)),
    url("assets/ithope-openav-hero.png");
}

html[data-theme="light"] .hero h1,
html[data-theme="light"] .hero-command h2,
html[data-theme="light"] .card h2 {
  color: #101923;
}

html[data-theme="light"] .lead {
  color: #253442;
}

html[data-theme="light"] .eyebrow,
html[data-theme="light"] .section-kicker {
  color: #075f73;
  background: rgba(8, 127, 153, .11);
}

html[data-theme="light"] .tbl th {
  background: #e7eef2;
}

html[data-theme="light"] .tbl tr:hover td {
  background: rgba(8, 127, 153, .05);
}

@media (max-width: 1500px) {
  .top-actions {
    display: none;
  }
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topnav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .top-actions {
    order: 4;
    width: 100%;
  }

  .adminbox {
    flex: 1 1 520px;
  }

  .admin-input {
    flex: 1;
    width: auto;
  }

  .killbox { margin-left: auto; }

  .status-strip,
  .grid { grid-template-columns: minmax(0, 1fr); }

  .immune-steps { grid-template-columns: minmax(0, 1fr); }

  .immune-output {
    grid-template-columns: minmax(0, 1fr);
  }

  .immune-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .span2 { grid-column: auto; }
}

@media (max-width: 680px) {
  .topbar { padding: 10px 14px; }

  .brand { min-width: 0; }

  .brand-sub,
  .killbox,
  .kill-label { display: none; }

  .topnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow-x: visible;
  }

  .topnav a {
    min-width: 0;
    padding: 6px 8px;
  }

  .hero {
    min-height: auto;
    padding: 24px 14px 18px;
  }

  .hero-copy,
  .hero-content,
  .hero-command,
  .lead {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .lead {
    white-space: normal;
    overflow-wrap: break-word;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual { background-position: 58% center; }

  .hero h1 {
    margin-top: 12px;
    font-size: 34px;
    line-height: 1.04;
  }

  .lead { font-size: 15px; }

  .hero-proof {
    display: none;
  }

  .hero-command {
    margin-top: 18px;
    padding: 12px;
  }

  .command-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .client-form,
  .adminbox {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .adminbox label {
    padding-left: 0;
  }

  .input,
  .admin-input,
  .btn { width: 100%; }

  .section-head {
    display: grid;
  }

  .step-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .stable-action {
    min-width: 0;
  }

  .review-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-actions {
    justify-content: flex-start;
  }

  .card h2 .btn,
  .card h2 .pill {
    width: auto;
  }

  .theme-switch {
    width: 100%;
  }

  .agent-hint {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .immune-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-band { padding: 14px 14px 0; }

  .grid { padding: 14px 14px 32px; }

  .stat { min-height: 74px; }

  .stat-value { font-size: 24px; }
}

@media (max-width: 420px) {
  .topbar { gap: 10px; }

  .kill-btn {
    min-height: 36px;
    padding: 7px 10px;
  }

  .hero h1 { font-size: 32px; }

  .immune-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
