:root {
  --bg: #070b12;
  --panel: #0d1522;
  --panel2: #101b2c;
  --line: #1d2c44;
  --text: #e6edf6;
  --muted: #7d93b2;
  --accent: #22d3a6;
  --accent2: #38bdf8;
  --low: #22c55e;
  --medium: #f59e0b;
  --high: #f97316;
  --critical: #ef4444;
  /* Not green and not red on purpose: the page could not be read, so the honest colour is the one
     that promises nothing. A scam that blocks us used to render on the same green card as
     bloomberg.com, which also blocks us. Measured 2026-09-14. */
  --unknown: #94a3b8;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Segoe UI", Arial, sans-serif; }
body {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(34,211,166,.08), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(56,189,248,.08), transparent 40%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 32px 20px 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 38px; height: 38px; display: block; filter: drop-shadow(0 0 12px rgba(34,211,166,.35)); }
h1 { font-size: 20px; margin: 0; letter-spacing: .3px; }
.sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.card { background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-top: 22px; }
form { display: flex; gap: 10px; flex-wrap: wrap; }
input[type=text] {
  flex: 1 1 320px; padding: 14px 16px; font-size: 16px; color: var(--text);
  background: #060a11; border: 1px solid var(--line); border-radius: 12px; outline: none;
}
input[type=text]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,166,.15); }
button, .btn {
  padding: 14px 22px; font-size: 15px; font-weight: 700; color: #04120d;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); border: 0; border-radius: 12px;
  cursor: pointer; text-decoration: none; display: inline-block;
}
button:disabled { opacity: .6; cursor: default; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.toggle-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }

.bar { margin-top: 16px; font-family: "Consolas", "Courier New", monospace; font-size: 12.5px; color: var(--accent); letter-spacing: .4px; }
.current { margin-top: 8px; min-height: 18px; font-family: "Consolas", "Courier New", monospace; font-size: 12.5px; color: var(--accent2); }
.current::before { content: "◍ "; animation: blink 1s steps(1) infinite; }
.log {
  margin-top: 14px; background: #05080e; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; height: 300px; overflow: auto; font-family: "Consolas", "Courier New", monospace;
  font-size: 12.5px; line-height: 1.55;
}
.line { white-space: pre-wrap; word-break: break-word; opacity: 0; animation: appear .25s ease forwards; }
.line.head { color: var(--accent2); }
.line.muted { color: var(--muted); }
.line.stage { color: #cbd5e1; }
.line.stage.ok { color: #d1fae5; }
.line.find { color: #9fb3c8; }
.line.err { color: var(--critical); }
@keyframes appear { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.cursor::after { content: "▋"; color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 4px; }
@keyframes blink { 50% { opacity: 0; } }

.verdict { margin-top: 24px; animation: rise .4s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }
.vcard { border-radius: 18px; padding: 26px; border: 1px solid var(--line); background: #0a1220; }
.vband { font-size: 54px; font-weight: 800; letter-spacing: 2px; line-height: 1; }
.vsub { margin-top: 8px; color: var(--muted); font-size: 14px; }
.vreason { margin-top: 12px; font-size: 14px; color: #cbd5e1; }
.vhead { margin-top: 20px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.vtext { margin-top: 6px; font-size: 14px; color: #dbe6f3; line-height: 1.5; }
.vtext.action { padding: 12px 14px; border-radius: 10px; background: rgba(56,189,248,.08); border: 1px solid #1d2c44; }
.vlist.reasons { font-size: 15px; }
.btn.ghost { color: var(--text); background: #0e1a2b; border: 1px solid var(--line); }
.evidence { margin-top: 18px; max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.evidence table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.evidence th, .evidence td { text-align: left; padding: 7px 9px; border-bottom: 1px solid #16233a; vertical-align: top; word-break: break-word; }
.evidence th { position: sticky; top: 0; background: #0c1626; color: var(--muted); }
.vlist { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: #dbe6f3; }
.vlist li { margin: 4px 0; }
.chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: #bcd0e6; background: #0e1a2b; }
.vactions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

.band-low .vband { color: var(--low); text-shadow: 0 0 26px rgba(34,197,94,.35); }
.band-medium .vband { color: var(--medium); text-shadow: 0 0 26px rgba(245,158,11,.35); }
.band-high .vband { color: var(--high); text-shadow: 0 0 26px rgba(249,115,22,.4); }
.band-critical .vband { color: var(--critical); text-shadow: 0 0 30px rgba(239,68,68,.45); }
.band-unknown .vband { color: var(--unknown); text-shadow: 0 0 26px rgba(148,163,184,.3); }
.band-low { border-color: rgba(34,197,94,.4); }
.band-medium { border-color: rgba(245,158,11,.4); }
.band-high { border-color: rgba(249,115,22,.45); }
.band-critical { border-color: rgba(239,68,68,.5); }
.band-unknown { border-color: rgba(148,163,184,.45); }

.foot { color: var(--muted); font-size: 12px; margin-top: 26px; text-align: center; }

textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: .6rem .7rem;
  border-radius: 8px;
  border: 1px solid #2a3550;
  background: #0e1526;
  color: #e6ecff;
  resize: vertical;
  margin-bottom: .5rem;
}
textarea:focus { outline: 2px solid #4a7cff; outline-offset: 1px; }

/* The live evidence ticker.
   Every line is a real response from the target: its size, how long it took, and the first half of
   its SHA-256 — the same fingerprint that goes into the case file. Warm amber rather than the
   classic terminal green, because the point is to look like careful work rather than an intrusion. */
.line.hash { color: #d9a441; letter-spacing: .35px; }
.line.hash::selection { background: rgba(217,164,65,.25); }
.tally {
  margin-top: 8px; font-family: "Consolas", "Courier New", monospace; font-size: 12px;
  color: #b98b3a; letter-spacing: .4px; min-height: 16px;
}
