:root {
  --bg: #0c0e12;
  --panel: #141821;
  --panel-2: #1b2030;
  --line: #2a3144;
  --text: #e8edf7;
  --muted: #8b95ab;
  --hit: #ff5d6c;
  --miss: #3dd68c;
  --skip: #f5c14a;
  --off: #5b6478;
  --accent: #7aa2ff;
  --observe: #c084fc;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 13px/1.45 ui-sans-serif, system-ui, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
button { cursor: pointer; }
button.primary { background: #2a4d9b; border-color: #3d63c4; }
button.ghost { background: transparent; }
button.on { background: #243152; border-color: var(--accent); color: #fff; }
textarea { width: 100%; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
input, select { width: 100%; }
label { display: block; margin: 8px 0; color: var(--muted); font-size: 11px; letter-spacing: .02em; text-transform: uppercase; }
h2 { margin: 0 0 10px; font-size: 13px; font-weight: 650; }
h3 { margin: 16px 0 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.top { display: flex; align-items: center; gap: 18px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #10141c; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; gap: 10px; align-items: center; min-width: 240px; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg,#7aa2ff,#c084fc); display: grid; place-items: center; font-weight: 800; color: #0c0e12; }
.sub { color: var(--muted); font-size: 11px; }
.tabs { display: flex; gap: 6px; flex: 1; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.pill.ok { color: var(--miss); border-color: #245c42; }
.pill.dim { color: var(--muted); }
.view { display: none; }
.view.on { display: grid; }
#view-lab { grid-template-columns: 260px 280px 1fr 1.1fr; gap: 1px; background: var(--line); min-height: calc(100vh - 56px); }
.col { background: var(--bg); padding: 14px; overflow: auto; max-height: calc(100vh - 56px); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tri { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.checks { display: flex; flex-direction: column; gap: 4px; }
.checks label { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--text); }
.hint { color: var(--muted); font-weight: 400; font-size: 11px; text-transform: none; letter-spacing: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
#method-grid { display: flex; flex-direction: column; gap: 4px; }
.mchip { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: var(--panel); }
.mchip .k { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.mchip .role { font-size: 10px; text-transform: uppercase; color: var(--off); }
.mchip.consider { border-color: #3d63c4; }
.mchip.observe { border-color: #6b3fa0; }
.mchip.off { opacity: .55; }
.tag { font-size: 9px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.verdict { padding: 16px; border-radius: 10px; font-size: 22px; font-weight: 750; letter-spacing: .04em; text-align: center; border: 1px solid var(--line); }
.verdict.idle { color: var(--muted); }
.verdict.bot { background: #2a1216; color: var(--hit); border-color: #6b2430; }
.verdict.human { background: #10261c; color: var(--miss); border-color: #245c42; }
.scorebar { margin: 10px 0; font-size: 12px; color: var(--muted); }
.scorebar .bar { height: 6px; background: #222838; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.scorebar .fill { height: 100%; background: linear-gradient(90deg, #3dd68c, #f5c14a, #ff5d6c); }
.facts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.fact { font-size: 11px; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--line); }
.fact.yes { color: var(--hit); border-color: #6b2430; }
.notes { color: var(--skip); font-size: 12px; margin-bottom: 10px; }
.mres { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0; background: var(--panel); }
.mres.hit { border-color: #6b2430; }
.mres.signal { border-color: #7a5b16; }
.mres.needs_data { border-color: #7a5b16; }
.mres.head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mres .st { font-size: 11px; text-transform: uppercase; }
.mres .st.hit { color: var(--hit); }
.mres .st.miss { color: var(--miss); }
.mres .st.signal, .mres .st.needs_data { color: var(--skip); }
.reasons { margin: 6px 0 0; padding: 0; list-style: none; }
.reasons li { display: flex; gap: 8px; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--muted); }
.reasons li.hit { color: #ffb4bb; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; padding: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.card h3 { margin: 0 0 6px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.card p { margin: 0 0 8px; color: var(--muted); }
.sigs { display: flex; flex-wrap: wrap; gap: 4px; }
.code { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow: auto; max-height: calc(100vh - 120px); font-size: 12px; }
.fp-pane { padding: 16px; }
.history { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.hitem { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: pointer; }
.hitem:hover { border-color: var(--accent); }
@media (max-width: 1200px) {
  #view-lab { grid-template-columns: 1fr 1fr; }
}
