@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/IBMPlexSans-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/IBMPlexMono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/IBMPlexMono-500.woff2") format("woff2");
}

/* sveaintel.com — black tool design. Mono-dominant, dense, flat.
   One accent (violet #8b5cf6), no gradients, no glow, no decoration. */

:root {
  --bg: #050505;
  --raised: #0c0c0c;
  --inset: #020202;
  --line: #222;
  --line-soft: #161616;
  --ink: #ededed;
  --mute: #8a8a8a;
  --dim: #4d4d4d;
  --accent: #8b5cf6;
  --accent-ink: #fff;
  --found: #a78bfa;
  --found-bg: rgba(139, 92, 246, 0.08);
  --running: #7dd3fc;
  --error: #f87171;
  --live: #22c55e;
  --font-data: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

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

::selection { background: var(--accent); color: var(--bg); }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

.mono { font-family: var(--font-data); }
.text-mute { color: var(--mute); }
.text-dim { color: var(--dim); }
.text-ink { color: var(--ink); }
.text-accent { color: var(--accent); }
.text-error { color: var(--error); }
.text-live { color: var(--live); }

.hidden-cls { visibility: hidden; }

/* ---------- top nav: floating frosted-glass bar (osint.industries pattern) ---------- */

.topnav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 10px 16px 0;
  background: transparent;
  border: none;
}

.topnav .nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  min-height: 56px;
  margin: 0 auto;
  padding: 0 10px 0 18px;
  border: 1px solid #303031;
  border-radius: 10px;
  background: rgba(5, 5, 5, 0.6);
  -webkit-backdrop-filter: blur(20px) brightness(0.85);
  backdrop-filter: blur(20px) brightness(0.85);
  box-shadow: 0 3px 11px 5px rgba(0, 0, 0, 0.34);
}

.topnav .brand {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--ink);
}

.topnav .brand em { font-style: normal; color: var(--accent); }

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

.topnav .links a {
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.12s, background 0.12s;
}

.topnav .links a:hover { color: var(--ink); background: rgba(237, 237, 237, 0.05); }

.topnav .actions { display: flex; gap: 8px; align-items: center; }

.topnav .nav-cta { gap: 7px; letter-spacing: 0.02em; }

.topnav .nav-cta svg { width: 13px; height: 13px; }

@media (max-width: 860px) {
  .topnav { padding: 8px 10px 0; }
  .topnav .links { display: none; }
}

/* ---------- buttons: mono, sharp ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-data);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s, opacity 0.12s;
}

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

.btn-primary { background: var(--accent); color: #0a0a0a; font-weight: 500; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.15); }

.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover:not(:disabled) { border-color: var(--dim); }

.btn-danger { border-color: rgba(248, 113, 113, 0.35); color: var(--error); background: transparent; }
.btn-danger:hover:not(:disabled) { border-color: var(--error); }

.btn-sm { height: 30px; padding: 0 11px; font-size: 11.5px; }

/* ---------- inputs ---------- */

.input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--inset);
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.12s;
}

.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--accent); }

.form-error {
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.05);
  color: var(--error);
  border-radius: 4px;
  padding: 9px 12px;
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.5;
}

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

.frame { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.hero { text-align: center; padding: 84px 0 20px; }

.kicker {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--dim);
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(34px, 5.5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 18px 0 0;
  color: var(--ink);
}

.hero .lede {
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 480px;
  margin: 18px auto 30px;
}

/* the scan bar — front and center */
.scanbar {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.scanbar .input {
  flex: 1;
  height: 46px;
  font-size: 13.5px;
}

.scanbar .btn { height: 46px; padding: 0 26px; font-weight: 500; }

.scan-note {
  font-family: var(--font-data);
  font-size: 10.5px;
  color: var(--dim);
  margin-top: 10px;
}

.scan-note a { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }

/* stats strip */
.statline {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px auto 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  width: 100%;
  max-width: 640px;
}

.statline .unit {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 14px 10px;
  border-right: 1px solid var(--line-soft);
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--dim);
}

.statline .unit:last-child { border-right: none; }

.statline b {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

/* ---------- section scaffolding ---------- */

.sect { max-width: 880px; margin: 0 auto; padding: 52px 20px; border-top: 1px solid var(--line-soft); }

.sect-kicker {
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 22px;
}

.sect h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

/* how it works — numbered rows */
.steps { display: grid; }

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line-soft);
}

.step .n { font-family: var(--font-data); font-size: 11.5px; color: var(--accent); padding-top: 2px; }

.step .t { font-weight: 600; font-size: 14px; margin-bottom: 3px; }

.step .d { color: var(--mute); font-size: 13px; line-height: 1.6; }

/* coverage — dense mono block */
.coverage {
  font-family: var(--font-data);
  font-size: 12.5px;
  line-height: 2.15;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--raised);
  padding: 18px 22px;
  overflow-wrap: anywhere;
}

.coverage .cat { color: var(--dim); }

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

.coverage-note {
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--dim);
  margin-top: 10px;
}

/* faq */
.faq-item { padding: 14px 0; border-top: 1px solid var(--line-soft); }

.faq-item b { font-size: 13.5px; }

.faq-item p { color: var(--mute); font-size: 13px; line-height: 1.65; margin-top: 5px; }

/* responsible use */
.resp {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
  padding: 13px 16px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.resp .tag { font-family: var(--font-data); font-size: 10.5px; color: var(--error); flex: none; }

.resp .text { color: var(--mute); font-size: 12.5px; line-height: 1.6; }

/* cta */
.cta { text-align: center; padding: 72px 20px; border-top: 1px solid var(--line-soft); }

.cta h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 20px; }

.cta .sub { color: var(--mute); font-size: 13px; margin-bottom: 24px; }

/* footer */
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--dim);
}

/* ---------- app pages (results / login / register) ---------- */

.appnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.appnav .brand { font-family: var(--font-data); font-size: 13px; color: var(--ink); }

.appnav .links { display: flex; gap: 20px; }

.appnav .links a {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--mute);
  transition: color 0.12s;
}

.appnav .links a:hover { color: var(--ink); }

.appnav .actions { display: flex; gap: 8px; align-items: center; }

.page { max-width: 880px; margin: 0 auto; padding: 34px 20px 60px; }

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

.page-head .target {
  font-family: var(--font-data);
  font-size: 15px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.page-head .sub { font-family: var(--font-data); font-size: 11px; color: var(--dim); margin-top: 4px; }

.head-actions { display: flex; gap: 8px; align-items: center; }

.status-banner {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 18px;
}

.statline-page {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.statline-page .unit {
  padding: 12px 16px;
  border-right: 1px solid var(--line-soft);
  font-family: var(--font-data);
}

.statline-page .unit:last-child { border-right: none; }

.statline-page .k {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}

.statline-page .v { font-size: 20px; color: var(--ink); }

.statline-page .v.acc { color: var(--accent); }
.statline-page .v.err { color: var(--error); }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }

.tab {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--mute);
  padding: 9px 15px;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s;
}

.tab:hover { color: var(--ink); }

.tab-active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- answer cards (board + terminal preview) ---------- */

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

.cell {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--raised);
  font-size: 13px;
  transition: border-color 0.12s, background 0.12s;
}

button.cell { cursor: pointer; text-align: left; }

button.cell:hover { border-color: var(--dim); }

.cell-head { display: flex; align-items: center; gap: 9px; }

.cell-logo {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  flex: none;
  background: var(--inset);
}

.cell-name {
  font-weight: 500;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-badge {
  font-family: var(--font-data);
  font-size: 9px;
  letter-spacing: 0.08em;
  border-radius: 3px;
  padding: 2px 7px;
  border: 1px solid currentColor;
  flex: none;
}

.cell-fields {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
  font-family: var(--font-data);
  font-size: 11px;
}

.cell-field { display: flex; justify-content: space-between; gap: 10px; }

.cell-field b { font-weight: 400; color: var(--dim); }

.cell-field span { color: var(--mute); text-align: right; overflow-wrap: anywhere; }

.cell-pnr {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 9px;
  color: var(--accent);
}

.cell-found { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.06); }
.cell-found .cell-badge, .cell-found .cell-name { color: var(--accent); }
button.cell-found:hover { border-color: var(--accent); }

.cell-running .cell-badge { color: var(--running); animation: blink 1.2s ease-in-out infinite; }

.cell-error { border-color: rgba(248, 113, 113, 0.3); }
.cell-error .cell-badge { color: var(--error); }

.cell-queued { color: var(--dim); }

@keyframes blink { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ---------- scan terminal (results page live box) ---------- */

.terminal {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--inset);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--dim);
}

.terminal-body { padding: 13px; display: grid; gap: 7px; }

/* ---------- dossier ---------- */

.dossier { display: grid; gap: 12px; }

/* Two columns only when the main column has real room — the 220px sidebar
   eats viewport width, so the old 900px viewport breakpoint fired while the
   dossier itself was still ~650px wide and the 300px rail crushed it. */
@media (min-width: 1140px) { .dossier { grid-template-columns: minmax(260px, 320px) 1fr; align-items: start; } }

.rail { display: grid; gap: 12px; }

.rail-panel {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--raised);
  padding: 16px;
}

.rail-label {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 10px;
}

.bar { height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }

.bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

.ev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: var(--inset);
  border-radius: 3px;
  padding: 2px 8px;
  font-family: var(--font-data);
  font-size: 10px;
  color: var(--mute);
}

.dem-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 13px; }

.dem-value { font-family: var(--font-data); font-size: 12px; color: var(--ink); }

.dem-line { font-family: var(--font-data); font-size: 10px; color: var(--dim); margin-top: 2px; }

.narrative { font-size: 14px; line-height: 1.7; color: var(--ink); }

.scope {
  border-top: 1px solid var(--line-soft);
  margin-top: 16px;
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--mute);
}

.scope b { color: var(--ink); display: block; margin-bottom: 4px; }

.verdict-panel {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--raised);
  padding: 16px;
}

.weak-panel { opacity: 0.7; }

/* ---------- popover / toast ---------- */

.pop {
  position: fixed;
  z-index: 40;
  width: min(340px, calc(100vw - 32px));
  background: var(--raised);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 13px 15px;
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.6);
}

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

.pop-name { font-weight: 600; font-size: 14px; }

.pop-found, .pop-errored {
  font-family: var(--font-data);
  font-size: 9px;
  letter-spacing: 0.08em;
  border-radius: 3px;
  padding: 2px 8px;
  border: 1px solid currentColor;
}

.pop-found { color: var(--accent); }
.pop-errored { color: var(--error); }

.pop-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
  margin-top: 8px;
  font-family: var(--font-data);
  font-size: 11px;
}

.pop-key { color: var(--dim); flex: none; }

.pop-val { color: var(--ink); text-align: right; overflow-wrap: anywhere; }

.pop-detail { color: var(--mute); font-size: 12px; line-height: 1.6; margin-top: 6px; }

.pop-cause { font-family: var(--font-data); font-size: 11px; color: var(--dim); }

.pop-empty { color: var(--mute); font-size: 12px; margin-top: 8px; }

.pop-foot {
  font-family: var(--font-data);
  font-size: 9.5px;
  color: var(--dim);
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}

.empty-panel {
  border: 1px dashed var(--line);
  border-radius: 5px;
  padding: 26px;
  text-align: center;
  color: var(--mute);
  font-size: 13px;
}

.empty-title { font-weight: 600; color: var(--ink); margin-bottom: 5px; font-size: 14px; }

.empty-hint { font-family: var(--font-data); font-size: 10.5px; color: var(--dim); margin-top: 5px; }

.empty-action { display: inline-flex; margin-top: 12px; }

.grid-status {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--dim);
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 16px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--ink);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.6);
  max-width: min(480px, calc(100vw - 32px));
}

.toast-error { border-color: rgba(248, 113, 113, 0.4); }

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

.auth-wrap { max-width: 380px; margin: 56px auto 72px; padding: 0 20px; }

.auth-title { font-family: var(--font-data); font-size: 20px; margin-bottom: 6px; }

.auth-sub { color: var(--mute); font-size: 13px; margin-bottom: 26px; }

.auth-field { margin-bottom: 14px; }

.auth-field label {
  display: block;
  font-family: var(--font-data);
  font-size: 10.5px;
  color: var(--dim);
  margin-bottom: 6px;
}

.auth-switch { margin-top: 16px; font-size: 13px; color: var(--mute); }

.auth-switch a { color: var(--accent); }

.fine-print {
  font-family: var(--font-data);
  font-size: 10px;
  color: var(--dim);
  line-height: 1.8;
  margin-top: 24px;
}

/* ---------- motion ---------- */

@keyframes blink { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .cell-running { animation: none; }
}

/* ---------- dossier panel vocabulary (profile.js) ---------- */

.rail-sub { font-size: 12.5px; color: var(--mute); line-height: 1.6; }

.rail-kicker {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}

.verdict-panel {
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--bg-inset);
  padding: 16px;
}

.dem-label {
  font-family: var(--font-data);
  font-size: 10.5px;
  color: var(--mute);
}

.dem-value-hi { color: var(--accent); }

.empty-title { font-weight: 600; color: var(--ink); margin-bottom: 5px; font-size: 14px; }

.btn-cta { background: var(--accent); color: #050505; font-weight: 500; }

.scan-input { height: 44px; }

.scan-btn { height: 44px; padding: 0 22px; }

.btn-lg { height: 46px; padding: 0 28px; font-size: 14px; }

/* ============================================================
   console shell + page vocabulary (frontend/*.html markup)
   ============================================================ */

.shell { display: flex; min-height: 100vh; }

.side {
  position: sticky;
  top: 0;
  width: 220px;
  flex: none;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 22px 18px;
  gap: 6px;
}

.side-brand {
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 24px;
}

.side-brand i { font-style: normal; color: var(--accent); }

.side-label {
  font-family: var(--font-data);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 18px 0 8px;
}

.side-link {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 4px;
  font-family: var(--font-data);
  font-size: 12.5px;
  color: var(--mute);
  transition: color 0.12s, background 0.12s;
}

.side-link:hover { color: var(--ink); background: rgba(237, 237, 237, 0.04); }

.side-link-active { color: var(--accent); }

.side .btn-outline { width: 100%; margin-top: 14px; }

.side-spacer { flex: 1; }

.side-actions { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }

.side-foot {
  font-family: var(--font-data);
  font-size: 10px;
  color: var(--dim);
  line-height: 1.8;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.content { flex: 1; }

.content { max-width: 920px; width: 100%; margin: 0 auto; padding: 0 36px 56px; }

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: none; border-bottom: 1px solid var(--line); }
  .side-label, .side-foot { display: none; }
  .content { padding: 0 20px 48px; }
}

.topline {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 0 26px;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--dim);
}

.topline .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
}

.topline .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s ease-in-out infinite;
}

.console-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: start;
  padding: 40px 0 52px;
}

@media (max-width: 980px) { .console-hero { grid-template-columns: 1fr; } }

.console-title {
  font-family: var(--font-body);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

.console-title span { color: var(--accent); }

.console-lede {
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.75;
  margin: 20px 0 26px;
  max-width: 460px;
}

.console-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.terminal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--inset);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--dim);
}

.terminal-body { padding: 14px; display: grid; gap: 7px; }

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

.workspace { padding: 52px 0; border-top: 1px solid var(--line-soft); }

.ws-label {
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}

.step-list { display: grid; }

.step-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.step-num { font-family: var(--font-data); font-size: 12px; color: var(--accent); padding-top: 2px; }

.step-title { font-size: 14px; font-weight: 600; margin-bottom: 3px; }

.step-text { color: var(--mute); font-size: 13px; line-height: 1.65; }

.cov-line {
  font-family: var(--font-data);
  font-size: 12.5px;
  line-height: 2.1;
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--raised);
  padding: 16px 20px;
  overflow-wrap: anywhere;
}

details.faq { border-top: 1px solid var(--line-soft); padding: 13px 0; }

details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq summary::after { content: "+"; font-family: var(--font-data); color: var(--accent); }

details.faq[open] summary::after { content: "−"; }

details.faq p { color: var(--mute); font-size: 13px; line-height: 1.65; margin-top: 7px; }

.resp {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
  padding: 12px 16px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.resp-tag { font-family: var(--font-data); font-size: 10.5px; color: var(--error); flex: none; }

.resp-text { color: var(--mute); font-size: 12.5px; line-height: 1.6; }

.cta-band {
  border-top: 1px solid var(--line-soft);
  padding: 60px 20px;
  text-align: center;
}

.cta-band h2 { font-family: var(--font-data); font-size: 22px; font-weight: 500; margin-bottom: 18px; }

.cta-band p { color: var(--mute); font-size: 13px; margin-bottom: 22px; }

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

.page-head .target {
  font-family: var(--font-data);
  font-size: 15px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.page-head .sub { font-family: var(--font-data); font-size: 11px; color: var(--dim); margin-top: 4px; }

.head-actions { display: flex; gap: 8px; align-items: center; }

.status-banner {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 18px;
}

.status-card { display: flex; align-items: center; gap: 10px; }

.statline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 22px;
}

.statline .unit {
  padding: 12px 16px;
  border-right: 1px solid var(--line-soft);
  font-family: var(--font-data);
}

.statline .unit:last-child { border-right: none; }

.statline .k {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}

.statline .v { font-size: 20px; color: var(--ink); }

.statline .v.acc { color: var(--accent); }
.statline .v.err { color: var(--error); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }

.tab {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--mute);
  padding: 9px 15px;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s;
}

.tab:hover { color: var(--ink); }

.tab-active { color: var(--accent); border-bottom-color: var(--accent); }

.auth-wrap { max-width: 380px; margin: 56px auto 72px; padding: 0 20px; }

.auth-title { font-family: var(--font-data); font-size: 20px; margin-bottom: 6px; }

.auth-sub { color: var(--mute); font-size: 13px; margin-bottom: 26px; }

.auth-field { margin-bottom: 14px; }

.auth-field label {
  display: block;
  font-family: var(--font-data);
  font-size: 10.5px;
  color: var(--dim);
  margin-bottom: 6px;
}

.auth-switch { margin-top: 16px; font-size: 13px; color: var(--mute); }

.auth-switch a { color: var(--accent); }

.btn-lg { height: 46px; padding: 0 28px; font-size: 14px; }

.btn-cta { background: var(--accent); color: var(--bg); font-weight: 500; }
.btn-cta:hover:not(:disabled) { filter: brightness(1.12); }

.grid-status {
  margin-top: 16px;
  text-align: center;
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--dim);
}

/* ---------- dossier (profile.js) ---------- */

.dossier { display: grid; gap: 12px; }

/* Two columns only when the main column has real room — the 220px sidebar
   eats viewport width, so the old 900px viewport breakpoint fired while the
   dossier itself was still ~650px wide and the 300px rail crushed it. */
@media (min-width: 1140px) { .dossier { grid-template-columns: minmax(260px, 320px) 1fr; align-items: start; } }

.rail { display: grid; gap: 12px; }

.panel-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--raised);
  padding: 16px;
}

.rail-kicker {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}

.rail-label {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 12px 0 8px;
}

.rail-sub { font-size: 12.5px; color: var(--mute); line-height: 1.6; }

.bar { height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; }

.bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

.ev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: var(--inset);
  border-radius: 3px;
  padding: 2px 8px;
  font-family: var(--font-data);
  font-size: 10px;
  color: var(--mute);
}

.verdict-panel {
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--inset);
  padding: 16px;
}

.dem-label {
  font-family: var(--font-data);
  font-size: 10.5px;
  color: var(--mute);
}

.dem-value-hi { color: var(--accent); }

.segments-grid { display: grid; gap: 10px; }

.segment-card {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--raised);
  padding: 13px 15px;
}

.segment-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }

.segment-name { font-weight: 600; font-size: 13.5px; }

.segment-conf { font-family: var(--font-data); font-size: 11px; color: var(--mute); }

.segment-mark { font-family: var(--font-data); font-size: 10px; color: var(--accent); }

.segment-ev { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.src-mark { font-family: var(--font-data); font-size: 10px; padding: 2px 8px; border-radius: 3px; border: 1px solid var(--line); color: var(--dim); }

.src-geo { color: var(--accent); border-color: rgba(94, 234, 212, 0.3); }

.src-int { color: var(--dim); }

.weak-panel { opacity: 0.7; }

.tl { display: grid; }

.tl-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
}

.tl-meta { font-family: var(--font-data); font-size: 10.5px; color: var(--dim); }

.empty-panel {
  border: 1px dashed var(--line);
  border-radius: 5px;
  padding: 26px;
  text-align: center;
  color: var(--mute);
  font-size: 13px;
}

.empty-title { font-weight: 600; color: var(--ink); margin-bottom: 5px; font-size: 14px; }

.empty-hint { font-family: var(--font-data); font-size: 10.5px; color: var(--dim); margin-top: 5px; }

.empty-action { display: inline-flex; margin-top: 12px; }

.narrative { font-size: 14px; line-height: 1.7; color: var(--ink); }

.scope {
  border-top: 1px solid var(--line-soft);
  margin-top: 16px;
  padding-top: 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--mute);
}

.scope b { color: var(--ink); display: block; margin-bottom: 4px; }


/* ---------- new-scan bar (results page) ---------- */

.new-scan-bar { display: flex; gap: 10px; flex-wrap: wrap; }

.new-scan-bar .input {
  flex: 1;
  min-width: 240px;
  height: 44px;
}

.new-scan-bar .btn { height: 44px; padding: 0 22px; }

.new-scan-bar .input.hidden { display: none; }

/* ============================================================
   landing v3 — full-height hero, live report preview, feature grid
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 20px 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  width: 720px;
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.13), transparent 65%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero .kicker { font-size: 11.5px; }

.hero h1 {
  font-size: clamp(42px, 7.2vw, 82px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 960px;
  margin: 22px auto 0;
}

.hero .lede { font-size: 16.5px; max-width: 580px; margin: 24px auto 36px; }

.scanbar { max-width: 640px; gap: 12px; }

.scanbar .input {
  height: 56px;
  font-size: 15px;
  padding: 0 18px;
  border-radius: 6px;
  border-color: var(--line);
}

.scanbar .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }

.scanbar .btn { height: 56px; padding: 0 34px; font-size: 14px; border-radius: 6px; }

.scan-note { margin-top: 14px; }

/* --- live report preview --- */

.viewport {
  width: min(900px, 100%);
  margin: 64px auto 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--inset);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  text-align: left;
  overflow: hidden;
}

.vp-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--dim);
}

.vp-dots { display: inline-flex; gap: 5px; }

.vp-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }

.vp-title { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vp-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.vp-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s ease-in-out infinite;
}

.vp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.vp-cell {
  background: var(--raised);
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: baseline;
  opacity: 0;
  transform: translateY(6px);
  animation: vpIn 0.45s ease forwards;
}

.vp-cell:nth-child(1) { animation-delay: 0.15s; }
.vp-cell:nth-child(2) { animation-delay: 0.35s; }
.vp-cell:nth-child(3) { animation-delay: 0.55s; }
.vp-cell:nth-child(4) { animation-delay: 0.75s; }
.vp-cell:nth-child(5) { animation-delay: 0.95s; }
.vp-cell:nth-child(6) { animation-delay: 1.15s; }
.vp-cell:nth-child(7) { animation-delay: 1.35s; }
.vp-cell:nth-child(8) { animation-delay: 1.55s; }

@keyframes vpIn {
  to { opacity: 1; transform: none; }
}

.vp-name { font-family: var(--font-data); font-size: 12px; color: var(--ink); }

.vp-badge {
  font-family: var(--font-data);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}

.vp-badge.ok { color: var(--found); background: var(--found-bg); }

.vp-badge.no { color: var(--dim); }

.vp-badge.run { color: var(--running); animation: blink 1.2s ease-in-out infinite; }

.vp-ev {
  grid-column: 1 / -1;
  font-family: var(--font-data);
  font-size: 10.5px;
  color: var(--dim);
}

.vp-sum {
  display: flex;
  gap: 26px;
  padding: 12px 16px;
  font-family: var(--font-data);
  font-size: 11.5px;
  color: var(--dim);
  opacity: 0;
  animation: vpIn 0.45s ease 1.9s forwards;
}

.vp-sum b { color: var(--ink); font-weight: 500; }

.vp-time { margin-left: auto; color: var(--accent); }

/* --- stat band --- */

.band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.band-unit {
  text-align: center;
  padding: 30px 14px;
  border-right: 1px solid var(--line-soft);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.band-unit:last-child { border-right: none; }

.band-unit b {
  display: block;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
  margin-bottom: 6px;
}

@media (max-width: 700px) {
  .band { grid-template-columns: repeat(2, 1fr); }
  .band-unit { border-bottom: 1px solid var(--line-soft); }
}

/* --- features grid --- */

.sect { max-width: 1020px; padding: 72px 20px; }

.sect h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 34px; }

.feat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) { .feat { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 580px) { .feat { grid-template-columns: 1fr; } }

.feat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
  padding: 22px 20px;
  transition: border-color 0.15s, transform 0.15s;
}

.feat-card:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateY(-2px); }

.feat-ico {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.07);
  color: var(--accent);
  margin-bottom: 16px;
}

.feat-ico svg { width: 19px; height: 19px; }

.feat-card h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }

.feat-card p { color: var(--mute); font-size: 13px; line-height: 1.65; }

/* --- how it works: three cards --- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }

.how-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
  padding: 24px 20px 20px;
  overflow: hidden;
}

.how-n {
  font-family: var(--font-data);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(139, 92, 246, 0.45);
  display: block;
  margin-bottom: 18px;
}

.how-step .t { font-size: 15px; font-weight: 600; margin-bottom: 6px; }

.how-step .d { color: var(--mute); font-size: 13px; line-height: 1.65; }

/* --- cta scale-up --- */

.cta { padding: 120px 20px; position: relative; overflow: hidden; }

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -260px;
  width: 640px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1), transparent 65%);
  pointer-events: none;
}

.cta h2 { font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -0.03em; margin-bottom: 14px; position: relative; }

.cta .sub { font-size: 14px; margin-bottom: 30px; position: relative; }

.cta .btn { position: relative; }

@media (max-width: 860px) {
  .hero { min-height: 0; padding: 56px 20px 44px; }
  .vp-grid { grid-template-columns: repeat(2, 1fr); }
  .viewport { margin-top: 48px; }
}



.form-ok {
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.07);
  color: var(--accent);
  border-radius: 4px;
  padding: 9px 12px;
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- extracted-data rows (profile.js x-panel) ---------- */

.x-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
  font-size: 12.5px;
}

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

.x-key { font-family: var(--font-data); font-size: 11px; color: var(--dim); flex: none; }

.x-val { color: var(--ink); text-align: right; overflow-wrap: anywhere; }

.x-empty { font-size: 12.5px; color: var(--mute); padding: 4px 0; }

.x-foot { font-family: var(--font-data); font-size: 10px; color: var(--dim); margin-top: 10px; }

/* ---------- demographics readability (dossier left rail) ---------- */
/* The label, value and evidence line used to share one flex row and read as
   one cramped line. Stacked with separators instead: label+value on a line,
   confidence bar, then evidence on its own line. */
.dem-row { display: block; padding: 11px 0 13px; }

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

.dem-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--mute);
  margin: 0;
}

.dem-row .bar { margin-top: 8px; }

.dem-ev {
  display: block;
  margin-top: 7px;
  font-family: var(--font-data);
  font-size: 10.5px;
  color: var(--dim);
  line-height: 1.7;
}

/* ---------- bulk search ---------- */

#bulk-input {
  width: 100%;
  height: auto;
  padding: 12px 14px;
  line-height: 1.8;
  resize: vertical;
  font-size: 13px;
}

.bulk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.bulk-rows { display: grid; gap: 6px; }

.bulk-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
  padding: 9px 14px;
  font-size: 12.5px;
}

.bulk-email { font-family: var(--font-data); color: var(--ink); overflow-wrap: anywhere; }

.bulk-state { font-family: var(--font-data); font-size: 11px; color: var(--mute); text-align: right; }

.bulk-state a { color: var(--accent); }

.bulk-open { flex: none; }

.bulk-row.bulk-hidden { display: none; }

.bulk-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--dim);
}

.bulk-filter { width: auto; height: 34px; padding: 0 8px; }

/* ---------- admin panel ---------- */

.admin-table { display: grid; gap: 6px; }

.admin-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
  padding: 9px 14px;
  font-size: 12.5px;
}

.admin-cell { font-family: var(--font-data); font-size: 11.5px; color: var(--mute); overflow-wrap: anywhere; }

.admin-main { color: var(--ink); flex: 1; min-width: 0; }

.admin-main[href] { color: var(--accent); }

.admin-dim { color: var(--dim); }

.admin-empty {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 18px;
  text-align: center;
  color: var(--dim);
  font-size: 12.5px;
}

/* ---------- footer ---------- */

.foot-v2 {
  border-top: 1px solid var(--line);
  background: var(--raised);
  margin-top: auto;
}

.foot-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1020px;
  margin: 0 auto;
  padding: 40px 20px 32px;
}

.foot-brandcol .side-brand { font-family: var(--font-data); font-size: 13px; color: var(--ink); }

.foot-brandcol .side-brand i { font-style: normal; color: var(--accent); }

.foot-brandcol p {
  color: var(--mute);
  font-size: 12.5px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 300px;
}

.foot-col { display: grid; gap: 9px; align-content: start; }

.foot-h {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}

.foot-col a, .foot-col span {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--mute);
  /* the grid would stretch every link to the full column width, making the
     whole row clickable/hoverable — clamp each element to its own text */
  justify-self: start;
  width: fit-content;
}

.foot-col a:hover { color: var(--ink); }

.foot-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-top: 1px solid var(--line-soft);
  max-width: 1020px;
  margin: 0 auto;
  padding: 16px 20px 22px;
  font-family: var(--font-data);
  font-size: 10.5px;
  color: var(--dim);
}

@media (max-width: 760px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .foot-inner { grid-template-columns: 1fr; }
}

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

.history-rows { display: grid; gap: 6px; }

.hist-row {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
  padding: 9px 14px;
  font-size: 12.5px;
}

.hist-email {
  font-family: var(--font-data);
  color: var(--ink);
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hist-state { font-family: var(--font-data); font-size: 11px; color: var(--mute); }

.hist-date { font-family: var(--font-data); font-size: 10.5px; color: var(--dim); }

/* ---------- export menu ---------- */

.export-wrap { position: relative; display: inline-flex; }

.export-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--raised);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.export-menu button {
  text-align: left;
  border: none;
  background: none;
  color: var(--mute);
  font-family: var(--font-data);
  font-size: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}

.export-menu button:hover { color: var(--ink); background: rgba(237, 237, 237, 0.05); }

/* Answer cards appear the moment their answer lands — no entrance
   animation: every variant (translate, scale, fade-delay) showed a
   frame of visual overlap or flicker against the grid. Instant is
   correct here. */

.admin-errblock {
  border-left: 2px solid var(--error);
  background: rgba(248, 113, 113, 0.05);
  border-radius: 0 4px 4px 0;
  padding: 6px 14px;
  margin: -2px 0 6px 14px;
  display: grid;
  gap: 2px;
}

.admin-errline {
  font-family: var(--font-data);
  font-size: 10.5px;
  color: var(--error);
  overflow-wrap: anywhere;
}

.export-btn { gap: 6px; }

.export-chev { width: 12px; height: 12px; transition: transform 0.15s; }

.export-btn[aria-expanded="true"] .export-chev { transform: rotate(180deg); }

/* ---------- language toggle ---------- */

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: none;
  color: var(--dim);
  font-family: var(--font-data);
  font-size: 10.5px;
  padding: 5px 9px;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}

.lang-btn:hover { color: var(--ink); }

.lang-btn:last-child { border-left: 1px solid var(--line); }

/* phones: the nav actions crowd — shrink the toggle and let the actions
   row wrap onto its own line under the brand */
@media (max-width: 640px) {
  /* the 4-up statline (min 130px per unit) forces horizontal overflow at
     phone widths — wrap it and let the preview scale down */
  .statline { flex-wrap: wrap; max-width: 100%; }
  .statline .unit { min-width: 0; flex: 1 1 40%; }
  .scanbar { max-width: 100%; }
  .viewport { width: 100%; }
}

@media (max-width: 560px) {
  .topnav .nav-shell { flex-wrap: wrap; padding-bottom: 8px; }
  .topnav .actions {
    flex-basis: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .lang-toggle { order: -1; }
  .lang-btn {
    font-size: 9.5px;
    padding: 4px 6px;
  }
  .topnav .actions .btn { padding: 0 10px; }
  /* the scan-now button keeps just its icon at this width */
  .topnav .nav-cta span[data-i18n] { display: none; }
}

/* ---------- 404 ---------- */

.nf-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.nf-code {
  font-family: var(--font-data);
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(139, 92, 246, 0.55);
  line-height: 1;
}

.nf-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 10px;
}

.nf-text {
  color: var(--mute);
  font-size: 13.5px;
  margin-top: 8px;
}

/* ---------- mobile / narrow screens ---------- */

@media (max-width: 640px) {
  /* board: cards go single-column */
  .board { grid-template-columns: 1fr !important; }

  /* stat tiles: 2×2 */
  .stats { grid-template-columns: repeat(2, 1fr) !important; }

  /* result page head stacks */
  .page-head { flex-direction: column; align-items: flex-start; }
  .head-actions { flex-wrap: wrap; }

  /* history + bulk rows wrap instead of overflowing */
  .hist-row, .bulk-row { flex-wrap: wrap; }
  .bulk-open { margin-left: auto; }

  /* tabs scroll horizontally instead of squeezing */
  .tabs { overflow-x: auto; }

  /* auth pages: the wrap already narrows; give the toggle air */
  .auth-wrap { margin-top: 24px; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr !important; }
  .stat-v { font-size: 18px !important; }

  /* sidebar collapses to a top strip */
  .shell { flex-direction: column; }
  .side {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 4px !important;
    padding: 10px 14px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .side-label { display: none; }
  .side-spacer { display: none; }
  .side .btn-outline { width: auto; margin-top: 0; }

  /* footer stacks tighter */
  .foot-inner { grid-template-columns: 1fr; gap: 20px; }
  .foot-base { flex-direction: column; gap: 6px; }
}

/* ---------- phone: last-in-cascade so it wins over landing v3 ---------- */
@media (max-width: 640px) {
  /* the hero's fixed widths (lede 580px, h1 min 42px) overflow a 390px
     phone — cap everything to the real column */
  .hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .hero .lede { max-width: 100%; }
	.hero, .scanbar, .viewport, .statline, .feat, .how-grid, .sect, .resp, .cta, .foot-v2, .foot-inner { max-width: 100%; }
  .feat, .how-grid { grid-template-columns: 1fr; }
  body { overflow-x: clip; }
}

/* ---------- phone caps: last in cascade ---------- */

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .hero .lede { max-width: 100%; }
  .scanbar, .viewport, .statline { max-width: 100%; }
  /* the 4 statline units (min 130px each) are what force the body wider
     than a phone viewport — wrap them 2×2 */
  .statline { flex-wrap: wrap; }
  .statline .unit { min-width: 0; flex: 1 1 40%; }
  .viewport .vp-grid { grid-template-columns: repeat(2, 1fr); }
}
