:root {
  --bg: #0e0f12;
  --panel: #15171c;
  --panel-2: #111318;
  --border: #262a32;
  --line: #1c2028;
  --text: #e6e8ee;
  --muted: #8b90a0;
  --dim: #5d6373;
  --accent: #95d600;
  --accent-dim: #6f9f02;
  --accent-2: #9147ff;
  --good: #aef13d;
  --warn: #ffb454;
  --bad: #ff6b6b;
  --steam: #66c0f4;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--bg); }

/* ---------- global header ---------- */
.site { max-width: 860px; margin: 0 auto; padding: 32px 20px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand { display: block; line-height: 0; }
.brandLogo { width: min(480px, 86vw); height: auto; display: block; }
.crumbs { font: 12px/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); letter-spacing: 0.02em; text-align: center; }
.crumbs a, .crumbs a:visited { color: var(--accent); text-decoration: none; }
.crumbs a:hover { color: var(--good); }
.crumbs .sep { color: #3a4150; margin: 0 4px; }

/* ---------- layout ---------- */
.wrap { max-width: 860px; margin: 0 auto; padding: 36px 20px 48px; }
.head h1 { margin: 0 0 6px; font-size: 24px; font-weight: 650; }
.head h1::before { content: ">"; color: var(--accent); margin-right: 10px; }
.tagline { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.intro { margin: 0 0 14px; font-size: 13px; color: var(--muted); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--steam); border-color: var(--steam); background: rgba(102, 192, 244, 0.08); }
.tab:focus-visible, .btn:focus-visible, summary:focus-visible, a:focus-visible, .sel:focus-visible, .box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- inputs ---------- */
.lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.muted { color: var(--muted); font-weight: 400; }
.sel { width: 100%; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; }
.sel:focus { outline: none; border-color: var(--accent-dim); }
.box { width: 100%; min-height: 160px; resize: vertical; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 12px; font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace; }
.box:focus { outline: none; border-color: var(--accent-dim); }
.row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.row .sel { flex: 1 1 260px; }
.btn { background: var(--accent); color: #10130a; border: 0; border-radius: 8px; padding: 10px 18px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.statusline { color: var(--muted); font-size: 13px; }
.statusline.err { color: var(--warn); }
.statusline:not(:empty):not(.err)::after { content: "…"; }

/* ---------- report ---------- */
.report { display: grid; gap: 12px; margin-bottom: 20px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; overflow-wrap: anywhere; min-width: 0; }
.card h3 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card h3 .src { color: var(--dim); font-weight: 400; font-size: 11px; text-transform: none; letter-spacing: 0; margin-left: auto; }
.badge { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); text-transform: none; letter-spacing: 0; }
.badge.public { color: var(--good); border-color: rgba(174, 241, 61, 0.35); }
.badge.private { color: var(--warn); border-color: rgba(255, 180, 84, 0.35); }
.badge.unavailable { color: var(--bad); border-color: rgba(255, 107, 107, 0.35); }
.badge.stale { color: var(--warn); border-color: rgba(255, 180, 84, 0.35); }
.kv { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 5px 14px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.kv dd.good { color: var(--good); }
.kv dd.warn { color: var(--warn); }
.kv dd.bad { color: var(--bad); }
.identity { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.identity img { width: 80px; height: 80px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); flex: none; }
.identity .name { font-size: 20px; font-weight: 700; line-height: 1.2; }
.identity .sub { color: var(--muted); font-size: 12px; margin-top: 4px; }
.identity a { color: var(--steam); text-decoration: none; }
.note { font-size: 12px; color: var(--muted); margin: 10px 2px 0; }
.note.empty:empty { display: none; }
.list { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.list li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.list li > * { min-width: 0; }
.list .when { color: var(--muted); min-width: 92px; }
.list a { color: var(--steam); text-decoration: none; }
.list .d { display: block; color: var(--muted); font-size: 12px; }
.bars { display: flex; gap: 4px; align-items: flex-end; height: 44px; margin-top: 8px; }
.bars div { flex: 1; background: var(--steam); opacity: 0.65; border-radius: 2px 2px 0 0; min-height: 2px; position: relative; transition: opacity 0.15s; }
.bars div:hover { opacity: 1; }
.bars div span { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 9px; color: var(--muted); }
.spacer { height: 18px; }
.arith { font-size: 13px; padding: 10px 12px; background: var(--panel-2); border-radius: 8px; border: 1px solid var(--border); margin-bottom: 8px; }
.arith.hot { border-color: rgba(255, 180, 84, 0.5); }
.big { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--text); }
.big.quiet { font-size: 14px; color: var(--muted); font-weight: 600; margin: 12px 0 4px; }
.sub2 { margin: 14px 0 6px; font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(102, 192, 244, 0.1); color: var(--steam); border: 1px solid rgba(102, 192, 244, 0.3); }
.chip.changed { color: var(--warn); background: rgba(255, 180, 84, 0.08); border-color: rgba(255, 180, 84, 0.35); }
.chip.quiet { color: var(--muted); background: transparent; border-color: var(--border); }
.chip.ok { color: var(--good); background: rgba(174, 241, 61, 0.06); border-color: rgba(174, 241, 61, 0.3); }

/* ---------- hero cards ---------- */
.card.hero { border-color: rgba(102, 192, 244, 0.3); background: linear-gradient(180deg, #141a22, var(--panel)); }
.card.since .chip { font-size: 13px; padding: 5px 12px; }
.notes { margin: 0; padding: 0; list-style: none; }
.notes li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.notes li:last-child { border-bottom: 0; }
.notes .k { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 3px; color: var(--muted); }
.notes .k.timing { color: var(--steam); } .notes .k.activity { color: var(--good); } .notes .k.identity { color: var(--warn); } .notes .k.privacy { color: var(--muted); } .notes .k.clue { color: var(--accent-2); }
.notes .d { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- second-stage cards ---------- */
.card.pending { opacity: 0.7; }
.card.pending .note::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--steam); animation: blink 1s infinite alternate; vertical-align: middle; }
@keyframes blink { from { opacity: 0.2; } to { opacity: 1; } }
.cand { padding: 12px 0; border-top: 1px solid var(--line); }
.cand:first-of-type { border-top: 0; }
.identity.small { margin-bottom: 4px; }
.identity.small img { width: 44px; height: 44px; border-radius: 8px; }
.identity.small .name { font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lab { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.lab.strong { color: var(--warn); border-color: rgba(255, 180, 84, 0.45); }
.lab.notable { color: var(--steam); border-color: rgba(102, 192, 244, 0.45); }
.evidence { margin: 6px 0 0; padding: 0; list-style: none; }
.evidence li { display: grid; grid-template-columns: 80px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.evidence li:last-child { border-bottom: 0; }
.evidence .s { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 3px; color: var(--steam); }
.evidence .d { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; }
.coverage { font-size: 11px; color: var(--dim); margin: 8px 0 0; }
details.other { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
details.other summary { cursor: pointer; font-size: 12px; color: var(--muted); font-weight: 600; }
details.other summary:hover { color: var(--text); }
details.other .evidence .s { color: var(--dim); }

/* timeline rail */
.tl { position: relative; }
.tl li { align-items: flex-start; position: relative; padding-left: 18px; }
.tl li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.tl li::after { content: ""; position: absolute; left: 5.5px; top: 22px; bottom: -6px; width: 1px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl li.k-account::before { background: var(--good); } .tl li.k-social::before { background: var(--steam); } .tl li.k-identity::before { background: var(--warn); } .tl li.k-activity::before { background: var(--text); } .tl li.k-deformed::before { background: var(--accent-2); }
.tl .k { font-weight: 600; }
.tl .src { font-size: 11px; color: var(--dim); }
.avatars { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.av { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.av img { width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); }
.av.cur img { border-color: var(--steam); }
.av .cur { color: var(--steam); font-weight: 600; }

/* ---------- bulk table ---------- */
.tablewrap { overflow-x: auto; margin-top: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
td.good { color: var(--good); } td.warn { color: var(--warn); } td.bad { color: var(--bad); } td.muted { color: var(--muted); }

/* ---------- explainers / footer ---------- */
.mode .modetitle { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--steam); }
.mode .modetitle::before { content: ">"; color: var(--accent); margin-right: 8px; }
.how h2 { margin: 0 0 8px; font-size: 15px; font-weight: 650; }
.how h2::before { content: ">"; color: var(--accent); margin-right: 8px; }
.how p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.how p:last-of-type { margin-bottom: 0; }
.how strong { color: var(--text); font-weight: 600; }
.contact { text-align: center; font-size: 13px; color: var(--accent-2); padding: 0 20px 28px; }
.contact a { color: var(--accent-2); text-decoration: none; }

@media (max-width: 520px) {
  .site { padding-top: 24px; } .wrap { padding-top: 28px; }
  .identity img { width: 56px; height: 56px; }
  .card h3 .src { display: none; }
  .notes li, .evidence li { grid-template-columns: 1fr; gap: 2px; }
  .list .when { min-width: 80px; }
}
