/* redactify me — console */
:root {
  --bg: #07080b;
  --panel: #0d1016;
  --panel-2: #11151d;
  --line: #1f2531;
  --line-hi: #2e3647;
  --text: #e6e9f0;
  --muted: #8b95a8;
  --dim: #566074;
  --amber: #f0b34c;
  --ok: #5fd394;
  --bad: #ef6a63;
  --info: #6ec4e8;
  --violet: #b69cff;
  --mono: "JetBrains Mono", "Cascadia Code", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 10px;
  --pad: clamp(14px, 3.2vw, 24px);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: #0f0f11; color: var(--text); font: 13.5px/1.55 var(--mono); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; background: #0f0f11; }
body.booting { overflow: hidden; }
a { color: var(--info); text-decoration: none; }
button { font: inherit; color: inherit; }
input { font: inherit; }
code { color: var(--amber); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.dim { color: var(--dim); }

.dots { display: inline-flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff605c; display: block; }
.dots i:nth-child(2) { background: #ffbd44; }
.dots i:nth-child(3) { background: #00ca4e; }

/* ================= GHOSTTY TUI ================= */
.tui {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.tui.leaving { opacity: 0; transform: scale(1.03); }
.term {
  width: min(680px, 100%); height: min(560px, calc(100dvh - 84px));
  display: flex; flex-direction: column;
  background: #0f0f11; border: 1px solid rgba(255, 255, 255, .17); border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px 6px;
  background: transparent; border-bottom: 0; font-size: 12px;
}
.term-title { color: var(--muted); flex: 1; text-align: center; }
.term-meta { color: var(--dim); }
body:not(.god-mode) .term-title, body:not(.god-mode) .term-meta { display: none; }
.term-body { flex: 1; overflow-y: auto; padding: 10px clamp(16px, 3.2vw, 24px) 22px; scroll-behavior: smooth; }
.term-body::-webkit-scrollbar { width: 6px; } .term-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }
.tui-foot { margin-top: 16px; color: #737885; font-size: 11.5px; text-align: center; line-height: 1.6; }
.tui-foot a, .tui-foot .link-btn { color: #9ea5b5; font-size: 11.5px; }
.tui-foot a:hover, .tui-foot .link-btn:hover { color: #e6e9f0; text-decoration: underline; }

.cmd-line { display: flex; align-items: baseline; gap: 9px; font-size: clamp(14px, 2.2vw, 15.5px); font-weight: 600; margin-bottom: 12px; }
.ps1 { color: #00ca4e; }
.cmd { color: #e6e9f0; }
.cmd-arg { color: #9ea5b5; }
.caret { color: #e6e9f0; animation: blink 1s steps(2, start) infinite; font-weight: 400; }
.caret.off { display: none; }
@keyframes blink { to { visibility: hidden; } }

.launch-prompt { color: #9ea5b5; font-size: 13.5px; margin: 14px 0 8px; }
.intake { border-top: 0; padding-top: 0; margin-bottom: 8px; }
.intake-extra { margin: -4px 0 8px; }
.intake-extra .cli-prompt-q { margin-top: 4px; }
.ask { display: flex; align-items: center; gap: 9px; padding: 2px 0; font-size: 13.5px; }
.ask .q, .q-text .q { color: #00ca4e; font-weight: 700; }
.ask label, .ask .fl { color: var(--text); font-weight: 600; white-space: nowrap; }
.ask .chev { color: #00ca4e; font-weight: 700; }
.ask input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #e6e9f0; padding: 4px 0;
  caret-color: #00ca4e; font-size: 16px; /* 16px stops iOS zoom */
}
.ask input:focus { outline: 0; }
.ask input::placeholder { color: #464b57; }
.ask.answered input { color: #c7cdd9; }
.ask.answered .chev, .ask.answered .q { color: #565d6c; }
.hint { color: var(--dim); font-size: 11.5px; margin-top: 6px; }
.hint.err { color: var(--bad); }

/* 3-line initiation sequence */
.init-seq { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.init-ln {
  display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: #8c93a3;
  animation: rise .2s ease both;
}
.init-ln .gt { color: #525866; font-weight: 700; flex: none; }
.init-ln .ilbl { color: #9ea5b5; }
.init-ln .ist { font-weight: 700; flex: none; min-width: 14px; }
.init-ln .idt { color: #5c6373; font-size: 11.5px; margin-left: 4px; }
.init-ln.running .gt { color: #e6e9f0; }
.init-ln.running .ilbl { color: #e6e9f0; }
.init-ln.running .ist { color: #e6e9f0; }
.init-ln.done .gt { color: #525866; }
.init-ln.done .ilbl { color: #c7cdd9; }
.init-ln.done .ist { color: #00ca4e; }
.init-ln.fail .ist { color: var(--bad); }

/* builder — pure inline CLI transcript */
.builder { border-top: 0; padding-top: 12px; margin-top: 4px; }
.cli-gap { height: 10px; }
.cli-line { font-size: 13px; line-height: 1.55; color: #b7becd; animation: rise .18s ease both; }
.cli-line.dim { color: #6e7585; }
.cli-line.strong { color: #e6e9f0; }
.cli-line.ok { color: #00ca4e; }
.cli-line.warn { color: var(--amber); }
.cli-line.err { color: var(--bad); }
.cli-block { padding: 4px 0 6px 14px; display: flex; flex-direction: column; gap: 2px; animation: rise .18s ease both; }
.cli-block .cli-primary { color: #e6e9f0; font-weight: 600; font-size: 13.5px; }
.cli-block .cli-sub { color: #8c93a3; font-size: 12.5px; }
.cli-opt {
  display: flex; align-items: center; flex-wrap: wrap; width: 100%; text-align: left; background: none; border: 0;
  padding: 10px 0 10px 14px; min-height: 44px;
  font-size: 13px; line-height: 1.45; color: #c7cdd9; cursor: pointer;
}
.cli-opt:hover { color: #ffffff; }
.cli-opt .cli-k { color: #00ca4e; margin-right: 8px; }
.cli-opt .cli-m { color: #6c7385; margin-left: 6px; font-size: 12px; }
.cli-inline-act {
  background: none; border: 0; padding: 8px 6px; margin: -6px -2px; color: #9ea5b5; cursor: pointer; font: inherit;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,.22); text-underline-offset: 2px;
}
.cli-inline-act:hover { color: #e6e9f0; text-decoration-color: #00ca4e; }
.cli-prompt-q { color: #9ea5b5; font-size: 13px; margin-top: 8px; animation: rise .18s ease both; }
.cli-input-row { display: flex; align-items: center; gap: 9px; padding: 2px 0; font-size: 13.5px; }
.cli-input-row .chev { color: #00ca4e; font-weight: 700; flex: none; }
.cli-input-row.answered .chev { color: #565d6c; }
.cli-input-row input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: #e6e9f0; padding: 4px 0; caret-color: #00ca4e; font-size: 16px;
}
.cli-input-row input::placeholder { color: #464b57; }
.cli-input-row.answered input { color: #c7cdd9; }
.cli-go {
  flex: none; background: transparent; color: #00ca4e; border: 1px solid rgba(0,202,78,.45); border-radius: 4px;
  font: inherit; font-size: 13px; padding: 6px 12px; min-height: 36px; cursor: pointer;
}
.cli-go:active { background: rgba(0,202,78,.12); }
.cli-input-row.answered .cli-go, .ask.answered .cli-go { display: none; }
.phase-row { font-size: 13px; line-height: 1.55; padding: 2px 0; animation: rise .2s ease both; }
.phase-row .gt { color: #525866; font-weight: 700; margin-right: 8px; }
.phase-row .plbl { color: #c7cdd9; }
.phase-row.running .plbl { color: #e6e9f0; }
.phase-row .pst { font-weight: 700; margin-left: 7px; color: #e6e9f0; }
.phase-row.done .pst { color: #00ca4e; }
.phase-row .pdt { color: #6c7385; font-size: 12px; margin-left: 8px; }
.sweep { margin-bottom: 10px; }
.sweep-head { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; }
.sweep-head .spin { color: var(--amber); width: 14px; }
.sweep.done .spin { color: var(--ok); }
.sweep-n { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 7px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), #ffd27f); transition: width .3s ease; }
.sweep.done .bar-fill { background: var(--ok); width: 100% !important; }

.tag { flex: none; min-width: 52px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.tag.hit { color: var(--amber); } .tag.bad { color: var(--bad); } .tag.okt { color: var(--ok); }
.tag.ai { color: var(--violet); } .tag.you { color: var(--info); }
.say-ln .say { color: var(--text); }
.think-ln .sp { color: var(--violet); }
.lock-ln { color: var(--ok); }

.conf { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-size: 11.5px; color: var(--muted); }
.conf-bar { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.conf-fill { display: block; height: 100%; width: 0; background: var(--amber); transition: width .6s cubic-bezier(.2,.8,.2,1), background .3s; }
.conf.high .conf-fill { background: var(--ok); }
.conf-v { width: 38px; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }

.question { margin-top: 10px; padding: 12px; border: 1px solid var(--line-hi); border-radius: 8px; background: rgba(255,255,255,.015); animation: rise .25s ease both; }
.q-text { font-weight: 700; margin-bottom: 8px; }
.opts { display: flex; flex-direction: column; gap: 3px; }
.opt { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 8px 10px; cursor: pointer; min-height: 40px; }
.opt-n { color: var(--dim); flex: none; }
.opt-l { flex: 1; min-width: 0; }
.opt-s { color: var(--dim); font-size: 11px; flex: none; }
.opt.sel { border-color: rgba(240,179,76,.45); background: rgba(240,179,76,.08); }
.opt.sel .opt-n, .opt.sel .opt-l { color: var(--amber); }
.opt:focus-visible { outline: 1px dashed var(--amber); }

.id-card { border: 1px solid var(--line); border-left: 3px solid var(--ok); border-radius: 6px; padding: 10px 12px; margin: 0 0 10px; background: #0b0e13; }
.id-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.id-age { margin-left: 10px; color: var(--amber); }
.id-row { display: flex; gap: 10px; font-size: 12.5px; color: #cdd3df; }
.id-row span { width: 64px; flex: none; color: var(--dim); }
.facts { display: flex; flex-direction: column; gap: 2px; }

/* ================= DASHBOARD ================= */
.dash { max-width: 1180px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) clamp(12px, 3vw, 28px) max(24px, env(safe-area-inset-bottom)); opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.dash.in { opacity: 1; transform: none; }
.dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 2px 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.logo-arg { color: var(--amber); }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.chip-btn { background: var(--panel-2); border: 1px solid var(--line-hi); border-radius: 7px; padding: 7px 12px; font-size: 12px; cursor: pointer; color: var(--muted); min-height: 34px; }
.chip-btn:hover { color: var(--text); border-color: #3d475c; }
.chip-btn.primary { background: var(--amber); border-color: var(--amber); color: #1a1405; font-weight: 700; }
.chip-btn[aria-pressed="true"] { color: var(--amber); border-color: rgba(240,179,76,.5); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.k { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; }
.pill { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-hi); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(95,211,148,.4); background: rgba(95,211,148,.08); }
.pill.bad { color: var(--bad); border-color: rgba(239,106,99,.4); background: rgba(239,106,99,.08); }
.pill.amber { color: var(--amber); border-color: rgba(240,179,76,.4); background: rgba(240,179,76,.08); }

.hero { display: grid; grid-template-columns: minmax(180px, 230px) 1fr; gap: 14px; margin-bottom: 14px; }
.grade { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; --g: var(--bad); border-color: color-mix(in srgb, var(--g) 45%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--g) 14%, transparent), var(--panel) 70%); }
.grade.g-a { --g: var(--ok); } .grade.g-b { --g: var(--info); } .grade.g-c { --g: var(--amber); }
.grade-letter { font-size: clamp(64px, 11vw, 96px); line-height: 1; font-weight: 800; color: var(--g); text-shadow: 0 0 40px color-mix(in srgb, var(--g) 35%, transparent); }
.grade-meter { width: 100%; max-width: 150px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.grade-meter span { display: block; height: 100%; background: var(--g); width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1) .2s; }
.grade-sub { color: var(--muted); font-size: 12px; }

.summary .headline { font-size: clamp(17px, 2.3vw, 22px); line-height: 1.3; margin: 0 0 8px; font-weight: 800; letter-spacing: -.01em; }
.sum-text { margin: 0 0 14px; color: #c9cfdb; max-width: 78ch; }
.who { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.kv span:first-child { color: var(--dim); margin-right: 7px; }
.kv b { color: var(--amber); font-weight: 700; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag-chip { font-size: 11px; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line-hi); color: var(--muted); }
.tag-chip.hot { color: var(--bad); border-color: rgba(239,106,99,.35); background: rgba(239,106,99,.06); }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px; padding: 10px 12px; }
.row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.row-t { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.row-y { color: var(--bad); font-size: 12px; flex: none; }
.row-d { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.row-link { font-size: 12px; flex: none; padding: 2px 0 2px 8px; }
.row.broker { border-left: 3px solid var(--amber); }
.row.broker.paid { border-left-color: var(--violet); }
.mini { margin-left: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); font-weight: 600; }
.mini.agent { color: var(--muted); }
.mini.agent.running { color: var(--amber); }
.mini.agent.ok { color: var(--ok); }
.mini.agent.bad { color: var(--bad); }
.mini.bad-tag { color: var(--bad); }
.mini.ok-tag { color: var(--ok); }
.stealer-box { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin-bottom: 8px; font-size: 12px; }
.stealer-box.ok { color: var(--ok); border-color: rgba(66,211,146,.22); background: rgba(66,211,146,.05); }
.stealer-box.bad { border-color: rgba(244,91,105,.35); background: rgba(244,91,105,.07); }
.stealer-item { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); font-size: 12px; }
details.br-det summary { list-style: none; cursor: pointer; }
details.br-det summary::-webkit-details-marker { display: none; }
details.br-det summary .row-t::after { content: " ▾"; color: var(--dim); font-size: 11px; }
details.br-det[open] summary .row-t::after { content: " ▴"; }
.br-body { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; color: var(--muted); }
.br-txt { margin: 0 0 6px; line-height: 1.45; }
.br-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--dim); font-size: 11.5px; }
.br-ex { font-family: var(--mono, monospace); font-size: 11.5px; color: var(--fg); margin: 4px 0; }
details.more-det { margin-top: 6px; }
details.more-det > summary { cursor: pointer; color: var(--dim); font-size: 12px; padding: 4px 2px; }
.row-links { display: flex; gap: 6px; flex: none; }
.optout-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.optout-meta { font-size: 12px; color: var(--muted); }
.optout-meta a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.optout-extras { display: flex; flex-direction: column; gap: 6px; margin: -4px 0 12px; }
.optout-extras .ox-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.optout-extras input { background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font: inherit; font-size: 12.5px; padding: 5px 8px; }
.optout-extras #opt-street { flex: 1 1 200px; min-width: 0; }
.optout-extras #opt-zip { width: 72px; }
.optout-extras .ox-note { font-size: 11px; color: var(--dim); }
.otp-box { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.otp-step { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.otp-step input { flex: 1 1 180px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; font: inherit; font-size: 13px; }
.otp-msg { font-size: 12px; color: var(--muted); }
.otp-msg.ok { color: var(--ok); }
.otp-msg.err { color: var(--bad); }
.opt-note { margin-top: 5px; font-size: 11.5px; color: var(--ok); }
.opt-note.action { color: var(--amber); }
.opt-note.warn { color: var(--muted); }
.opt-note .opt-t { color: var(--dim); }
.opt-note .opt-acts { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; margin-left: 8px; }
.opt-note .opt-act { color: var(--text); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.opt-note .opt-act.alt { color: var(--muted); }
.opt-action { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.02); font-size: 12px; display: flex; flex-direction: column; gap: 7px; }
.opt-action .oa-title { color: var(--text); }
.opt-action .oa-opts { display: flex; flex-direction: column; gap: 5px; }
.opt-action .oa-opt { display: flex; align-items: center; gap: 7px; color: var(--muted); cursor: pointer; }
.opt-action .oa-opt .oa-match { color: var(--ok); font-size: 11px; }
.opt-action .oa-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opt-action input[type="text"] { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font: inherit; font-size: 12.5px; width: 140px; }
.opt-action .oa-err { color: var(--bad); font-size: 11.5px; }
.optout-extras .ox-mask { font-size: 11.5px; color: var(--muted); }
.mini.agent.warn { color: var(--amber); }
@media (max-width: 520px) { .opt-note .opt-acts { display: flex; margin: 4px 0 0; } .opt-note .opt-act { white-space: normal; } }
.empty { color: var(--ok); font-size: 12.5px; padding: 10px 2px; }
.empty.muted { color: var(--dim); }
.more { color: var(--dim); font-size: 12px; padding: 2px 2px 0; }

.dash-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--dim); font-size: 11px; padding: 16px 2px 0; }

.turnstile-box { margin-top: 10px; }
.capture { margin-top: 14px; }
.cap-text { color: var(--muted); font-size: 13px; margin: 4px 0 12px; line-height: 1.5; }
.cap-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cap-form input[type="email"] { flex: 1 1 220px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; font: inherit; font-size: 13px; }
.cap-chk { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); cursor: pointer; }
.cap-msg { margin-top: 9px; font-size: 12px; }
.cap-msg.ok { color: var(--ok); }
.cap-msg.err { color: var(--bad); }

/* legal deletion requests (statutory email blast) */
.blast-card { margin-top: 14px; }
.blast-ids { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 10px; font-size: 12px; }
.blast-ids-k { flex: 1 0 100%; color: var(--dim); font-size: 11.5px; }
.blast-id { display: inline-flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--text); cursor: pointer; }
.blast-id.fixed { cursor: default; color: var(--muted); }
.blast-id input { margin: 0; accent-color: var(--amber); }
#blast-state-row { margin: 0 0 10px; }
#blast-state-row input { text-transform: uppercase; max-width: 280px; }
.blast-prev { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); }
.blast-prev > summary { cursor: pointer; padding: 9px 12px; color: var(--amber); font-size: 12.5px; list-style: none; min-height: 24px; display: flex; align-items: center; }
.blast-prev > summary::-webkit-details-marker { display: none; }
.blast-prev > summary::before { content: "+"; display: inline-block; width: 14px; color: var(--dim); }
.blast-prev[open] > summary::before { content: "-"; }
.blast-meta { padding: 0 12px 8px; font-size: 11.5px; color: var(--text); display: grid; gap: 2px; word-break: break-word; }
.blast-meta span:first-child { display: inline-block; min-width: 64px; color: var(--dim); }
.blast-body { margin: 0; padding: 12px; border-top: 1px solid var(--line); max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  font: 12px/1.55 var(--mono); color: var(--text); background: var(--bg); border-radius: 0 0 8px 8px; }
.blast-chk { margin: 0 0 10px; font-size: 12.5px; color: var(--text); }
.blast-chk input { width: 16px; height: 16px; accent-color: var(--amber); flex: none; }
.blast-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#btn-blast:disabled, #btn-blast-code:disabled, #btn-blast-verify:disabled { opacity: .45; cursor: not-allowed; }

.opt.checked { border-color: var(--ok); background: rgba(66,211,146,.08); }
.opt-chk { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; color: var(--ok); flex: none; margin-right: 4px; }
.opt.checked .opt-chk { border-color: var(--ok); }
.multi-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.deep-card { margin-bottom: 14px; }
.attr-av { width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; margin-right: 7px; object-fit: cover; }
.osint-gate { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.priv-modal { background: var(--card, #0f1219); color: var(--fg, #e6edf3); border: 1px solid var(--line); border-radius: 12px; max-width: 520px; padding: 18px; font-size: 13px; line-height: 1.5; }
.priv-modal::backdrop { background: rgba(0,0,0,.72); }
.priv-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 10px; }

/* ================= GOD MODE SHELL ================= */
body.god-mode::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
}
body.god-mode {
  background-color: #07050c;
  background-image:
    radial-gradient(980px 540px at 14% -8%, rgba(245,197,66,.13), transparent 58%),
    radial-gradient(920px 520px at 88% -4%, rgba(168,85,247,.16), transparent 60%),
    radial-gradient(740px 440px at 50% 108%, rgba(217,70,239,.1), transparent 60%);
}
body.god-mode .term {
  width: min(940px, 100%); height: min(780px, calc(100dvh - 46px));
  background: rgba(11, 8, 17, .96);
  border: 1px solid rgba(245,197,66,.38);
  box-shadow: 0 34px 110px rgba(0,0,0,.85), 0 0 46px rgba(168,85,247,.16), 0 0 18px rgba(245,197,66,.08), inset 0 1px 0 rgba(245,197,66,.26);
}
body.god-mode .term-bar {
  background: linear-gradient(90deg, rgba(245,197,66,.07), rgba(168,85,247,.08), rgba(16,12,24,.95));
  border-bottom: 1px solid rgba(192,132,252,.22);
  padding: 10px 14px;
}
body.god-mode .term-body { display: flex; flex-direction: column; padding-top: 14px; }
body.god-mode .ascii-banner, body.god-mode .cmd-line, body.god-mode .intake, body.god-mode .intake-extra, body.god-mode .init-seq { display: none; }
.ln { display: flex; gap: 10px; align-items: baseline; padding: 1.5px 0; font-size: 12.5px; color: #cdd3df; animation: rise .22s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(3px); } }
.ln.warn { color: var(--amber); }
.boot { margin-bottom: 12px; }
.led {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle;
  background: #00ca4e; box-shadow: 0 0 8px #00ca4e;
  animation: pulse-led 2.2s ease-in-out infinite;
}
body.god-mode .led { background: #f5c542; box-shadow: 0 0 10px #f5c542, 0 0 18px #c084fc; }
@keyframes pulse-led { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* Enchanted Golden Apple */
.gapple-brand { display: flex; align-items: center; gap: 9px; }
.gapple {
  width: 28px; height: 28px; flex: none; image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(192,132,252,.65)) drop-shadow(0 0 10px rgba(245,197,66,.45));
  animation: gapple-float 2.8s ease-in-out infinite;
}
.gapple-glint-wrap { mix-blend-mode: screen; }
.gapple-glint { transform-box: view-box; }
.gapple-glint.g1 { animation: glint-sweep 2.4s linear infinite; }
.gapple-glint.g2 { animation: glint-sweep 2.4s linear -0.8s infinite; }
.gapple-glint.g3 { animation: glint-sweep 2.4s linear -1.6s infinite; }
@keyframes glint-sweep {
  0% { transform: translate(-10px, 0) skewX(-32deg); }
  100% { transform: translate(38px, 0) skewX(-32deg); }
}
@keyframes gapple-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}

.ascii-banner {
  margin: 0 0 12px; padding: 0; font-size: clamp(9.5px, 1.55vw, 12px); line-height: 1.18; letter-spacing: .04em;
  color: #d8dce6;
  user-select: none;
  animation: rise .22s ease both;
}
.telem-strip {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1px dashed var(--line); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em;
}
.telem-strip span:first-child { color: var(--ok); }

.op-shell { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.op-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 7px 10px; margin-bottom: 10px; border-radius: 9px;
  background: linear-gradient(90deg, rgba(245,197,66,.08), rgba(168,85,247,.11) 55%, rgba(245,197,66,.05));
  border: 1px solid rgba(245,197,66,.26);
}
.op-badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em;
  background: linear-gradient(90deg, #fde047, #f5c542 45%, #d8b4fe 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.op-modes { display: inline-flex; background: rgba(0,0,0,.35); border: 1px solid rgba(192,132,252,.22); border-radius: 7px; padding: 2px; gap: 2px; }
.op-mode {
  background: transparent; border: 0; border-radius: 5px; padding: 3px 9px; font-size: 11px;
  color: var(--muted); cursor: pointer; transition: .15s;
}
.op-mode:hover { color: var(--text); }
.op-mode.active {
  background: linear-gradient(90deg, rgba(245,197,66,.22), rgba(168,85,247,.26));
  color: #fef08a; box-shadow: inset 0 0 0 1px rgba(245,197,66,.35);
}
.op-head { max-width: 100%; min-width: 0; }
.op-head-btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin-left: auto; min-width: 0; max-width: 100%; }
.op-head-btns .chip-btn { white-space: nowrap; }
@media (max-width: 640px) {
  .op-head { gap: 6px 8px; padding: 6px 8px; }
  .op-modes { flex-wrap: wrap; max-width: 100%; }
  .op-head-btns { margin-left: 0; justify-content: flex-start; width: 100%; }
  .op-head-btns .chip-btn { padding: 4px 8px; font-size: 11px; }
}
/* demo-privilege God Mode: no admin surfaces (server enforces too) */
body.god-demo #btn-op-stats, body.god-demo #btn-op-lab, body.god-demo #btn-op-email,
body.god-demo .op-chk.osint, body.god-demo #op-cost { display: none !important; }
.op-cost { font-size: 11px; color: #fde047; margin-right: 4px; }
.op-log {
  flex: 1; overflow-y: auto; padding: 4px 2px 12px; display: flex; flex-direction: column; gap: 9px;
  min-height: 220px;
}
.op-log::-webkit-scrollbar { width: 6px; }
.op-log::-webkit-scrollbar-thumb { background: rgba(192,132,252,.32); border-radius: 3px; }
.op-ready { font-size: 11.5px; color: var(--dim); padding: 2px 4px; }
.op-msg { padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.55; }
.op-msg.user { background: rgba(245,197,66,.08); border: 1px solid rgba(245,197,66,.26); align-self: flex-end; max-width: 92%; }
.op-msg.ai { background: rgba(255,255,255,.022); border: 1px solid rgba(192,132,252,.2); border-left: 3px solid #f5c542; }
.op-msg.ai h2, .op-msg.ai h3 { font-size: 12.5px; color: #fde047; margin: 10px 0 4px; letter-spacing: .05em; text-transform: uppercase; }
.op-msg.ai h2:first-child, .op-msg.ai h3:first-child { margin-top: 0; }
.op-msg.ai ul, .op-msg.ai ol { margin: 4px 0 6px 18px; padding: 0; }
.op-msg.ai li { margin: 2px 0; }
.op-msg.ai p { margin: 4px 0; }
.op-hr { border: 0; border-top: 1px dashed rgba(192,132,252,.25); margin: 8px 0; }
.op-tbl-wrap { overflow-x: auto; margin: 6px 0; }
.op-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.op-tbl th, .op-tbl td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.op-tbl th { color: #d8b4fe; font-weight: 600; text-transform: uppercase; font-size: 10.5px; letter-spacing: .05em; }
.op-msg.err { background: rgba(239,106,99,.08); border: 1px solid rgba(239,106,99,.3); color: var(--bad); }
.op-think { font-size: 11px; color: #c084fc; padding: 2px 8px; border-left: 2px solid rgba(192,132,252,.4); }
.op-think summary { cursor: pointer; user-select: none; color: #d8b4fe; }
.op-think p { margin: 4px 0 2px; color: var(--muted); white-space: pre-wrap; line-height: 1.4; }
.op-trace { font-size: 11.5px; color: var(--muted); padding: 3px 8px; border-left: 2px solid rgba(192,132,252,.35); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op-trace.ok { border-left-color: #f5c542; }
.op-trace.fail { border-left-color: var(--bad); }
.op-trace .t-name { color: #fde047; font-weight: 600; }
.op-trace .t-args { color: var(--dim); }
.op-trace .t-sum { color: #d8b4fe; }
.op-trace.fail .t-sum { color: var(--bad); }
.op-form {
  display: flex; align-items: center; gap: 8px; padding-top: 10px; margin-top: auto;
  border-top: 1px solid rgba(245,197,66,.22); flex-wrap: wrap;
}
.op-ps1 { color: #f5c542; font-weight: 700; flex: none; text-shadow: 0 0 8px rgba(245,197,66,.4); }
.op-form input[type="text"] {
  flex: 1 1 220px; background: rgba(7,5,12,.92); color: var(--text); border: 1px solid rgba(192,132,252,.28);
  border-radius: 7px; padding: 8px 11px; font-size: 13px; outline: none;
}
.op-form input[type="text"]:focus { border-color: #f5c542; box-shadow: 0 0 0 2px rgba(245,197,66,.16), 0 0 14px rgba(168,85,247,.2); }
.op-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #d8b4fe; cursor: pointer; user-select: none; }
.op-chk.osint { color: #fde047; }
body.god-mode .chip-btn.primary {
  background: linear-gradient(135deg, #f5c542, #c084fc); color: #09060f; border: 0; font-weight: 700;
}
.op-email-bar {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin-bottom: 8px; border-radius: 8px;
  background: rgba(245,197,66,.06); border: 1px solid rgba(245,197,66,.26); flex-wrap: wrap;
}
.op-email-bar[hidden] { display: none; }
.op-email-bar input {
  flex: 1 1 220px; background: rgba(7,5,12,.92); color: var(--text); border: 1px solid rgba(192,132,252,.28);
  border-radius: 6px; padding: 6px 10px; font-size: 12px; outline: none;
}
.op-email-msg { font-size: 11.5px; color: #fde047; }
.op-media-strip {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 10px; border-radius: 8px;
  background: rgba(168,85,247,.07); border: 1px solid rgba(192,132,252,.24);
}
.op-media-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 74px;
  text-decoration: none; color: #d8b4fe; font-size: 10.5px; text-align: center;
}
.op-media-item img {
  width: 58px; height: 58px; object-fit: cover; border-radius: 8px;
  border: 1px solid rgba(245,197,66,.45); background: #0d0a14;
}
.op-inline-img {
  max-width: 110px; max-height: 110px; border-radius: 8px; border: 1px solid rgba(245,197,66,.4);
  vertical-align: middle; margin: 4px 6px 4px 0;
}
body.redacted .op-media-item img, body.redacted .op-inline-img { filter: blur(12px); }

/* Consumer v12: alive sweep ticker, intake self-check, soft-gated preview, snapshot diff */
.intake-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--dim);
}
.self-chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); }
.link-btn {
  background: none; border: 0; padding: 0; color: var(--info); font: inherit; font-size: 11.5px; cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.sweep-clock { font-size: 11px; color: var(--dim); margin-left: auto; margin-right: 8px; font-variant-numeric: tabular-nums; }
.sweep-sub {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
  margin-top: 7px; font-size: 11.5px;
}
.sweep-quip { color: var(--info); font-style: italic; }
.sweep-sites { color: var(--dim); font-size: 10.5px; }
.sweep:not(.done) .bar-fill {
  background: linear-gradient(90deg, var(--ok), var(--info), var(--ok));
  background-size: 200% 100%;
  animation: sweep-shimmer 2.2s linear infinite;
}
@keyframes sweep-shimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.soft-preview {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 9px 10px; border-radius: 8px;
  background: rgba(255,255,255,.02); border: 1px dashed var(--line-hi); align-items: center;
}
.soft-preview[hidden] { display: none; }
.soft-chip {
  font-size: 11.5px; padding: 3px 8px; border-radius: 6px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted);
}
.soft-chip b { filter: blur(4px); user-select: none; color: var(--amber); padding: 0 2px; }
.soft-chip.live b { filter: none; color: var(--text); }
.snap-banner {
  margin-bottom: 14px; padding: 10px 14px; border-radius: 9px; font-size: 12.5px;
  background: rgba(110,196,232,.08); border: 1px solid rgba(110,196,232,.3); color: var(--text);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.snap-banner[hidden] { display: none; }
.mini.diff-gone { background: rgba(95,211,148,.16); color: var(--ok); border-color: rgba(95,211,148,.35); }
.mini.diff-back { background: rgba(239,106,99,.16); color: var(--bad); border-color: rgba(239,106,99,.35); }
.mini.diff-new { background: rgba(240,180,86,.16); color: var(--amber); border-color: rgba(240,180,86,.35); }
.mini.ver { background: rgba(95,211,148,.14); color: var(--ok); border-color: rgba(95,211,148,.35); }
.mini.chk { background: rgba(255,255,255,.04); color: var(--dim); }

/* redaction */
body.redacted .pii { color: transparent; background: #2a3040; border-radius: 3px; user-select: none; }

/* ================= responsive ================= */
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  html, body { font-size: 13px; }
  .otp-step input, .cap-form input[type="email"], .op-form input[type="text"], .op-email-bar input { font-size: 16px; }
  .hero { grid-template-columns: 1fr; }
  .grade { flex-direction: row; justify-content: flex-start; text-align: left; gap: 16px; }
  .grade .k { display: none; }
  .grade-letter { font-size: 60px; }
  .grade-meter { display: none; }
  .grade-sub::before { content: "exposure grade · "; color: var(--dim); }
  .term { height: calc(100dvh - 64px); border-radius: 10px; }
  .tui-foot { font-size: 10px; }
  .boot-ln .dt { display: none; }
  .tag { min-width: 44px; }
  .dash-bar { flex-direction: column; align-items: stretch; }
  .dash-actions { justify-content: stretch; }
  .chip-btn { flex: 1; }
  .who { flex-direction: column; gap: 4px; }
  /* deletion-request card: >=44px taps, >=16px inputs (no iOS zoom) */
  .blast-card .chip-btn, .blast-card .otp-step input, #blast-state-row input { min-height: 44px; font-size: 16px; }
  .blast-prev > summary { min-height: 44px; font-size: 14px; }
  .blast-chk { min-height: 44px; font-size: 14px; }
  .blast-chk input { width: 22px; height: 22px; }
  .blast-id { min-height: 36px; padding: 4px 12px; }
  .blast-id input { width: 18px; height: 18px; }
  .blast-body { font-size: 12.5px; max-height: 60vh; }
  .blast-bar .chip-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* v17 reply tracker (#track=<token>) */
.track-view { max-width: 860px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) clamp(12px, 3vw, 28px) max(24px, env(safe-area-inset-bottom)); }
.track-counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.track-rows .track-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); font-size: 13px; }
.track-row .tb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-row .tu { color: var(--dim); font-size: 11px; margin-left: 8px; }
.track-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; }
.pill.info { color: var(--info, #7cb7ff); border-color: rgba(124,183,255,.4); background: rgba(124,183,255,.08); }
.supp-list { margin: 8px 0 0; font-size: 12px; }
.supp-list .supp-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.supp-list .supp-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* v19 live view ("tap to verify") */
.live-box { margin: 0 0 12px; border: 1px solid var(--line, #2a2a30); border-radius: 10px; padding: 8px 10px; }
.live-box.verify { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; }
.live-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 12.5px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: livepulse 2.4s ease-in-out infinite; }
.live-box.verify .live-dot { background: var(--amber); }
@keyframes livepulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.live-msg { color: var(--muted); }
.live-box.verify .live-msg { color: var(--amber); font-weight: 600; }
.live-link { color: var(--text); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.live-box.verify .live-link { font-size: 14px; padding: 6px 10px; border: 1px solid var(--amber); border-radius: 8px; text-decoration: none; }
.live-frame-wrap { margin-top: 8px; position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 70vh; }
.live-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; background: #000; }
@media (max-width: 640px) { .live-frame-wrap { aspect-ratio: 9 / 14; } .live-head { font-size: 13.5px; } }
/* v19 God Mode lab panel */
.lab-panel { display: grid; gap: 10px; }
.lab-run { border: 1px solid var(--line, #2a2a30); border-radius: 8px; padding: 8px; font-size: 12px; }
.lab-run-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.lab-site { margin-top: 6px; display: grid; gap: 4px; }
.lab-site .lab-reason { color: var(--muted); word-break: break-word; }
.lab-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.lab-thumbs figure { margin: 0; flex: 0 0 auto; width: 150px; cursor: zoom-in; }
.lab-thumbs img { width: 150px; height: 94px; object-fit: cover; object-position: top; border-radius: 4px; border: 1px solid var(--line, #2a2a30); background: #111; }
.lab-thumbs figcaption { font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab-step-detail { white-space: pre-wrap; font-size: 11px; max-height: 300px; overflow: auto; background: rgba(255,255,255,.03); padding: 6px; border-radius: 6px; }
.lab-big { width: 100%; border-radius: 6px; }
