: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; --grass: #7cc342;
}
* { 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); }
.mode .modetitle { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--grass); }
.mode .modetitle::before { content: ">"; color: var(--accent); margin-right: 8px; }

/* ---------- tabs / inputs ---------- */
.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(--grass); border-color: var(--grass); background: rgba(124, 195, 66, 0.08); }
.tab:focus-visible, .btn:focus-visible, .copy:focus-visible, .filter:focus-visible, a:focus-visible, .sel:focus-visible, .box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.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.tight { gap: 8px; }
.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; text-decoration: none; display: inline-block; }
.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; }
.btn.small { padding: 6px 12px; font-size: 12px; }
.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; }
.card.hero { border-color: rgba(124, 195, 66, 0.3); background: linear-gradient(180deg, #141a14, var(--panel)); }
.statusline2 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.subject { font-size: 22px; font-weight: 700; }
.pill { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.pill.small { font-size: 10px; padding: 2px 8px; }
.pill.taken { color: var(--bad); border-color: rgba(255, 107, 107, 0.45); background: rgba(255, 107, 107, 0.08); }
.pill.likely { color: var(--good); border-color: rgba(174, 241, 61, 0.4); background: rgba(174, 241, 61, 0.07); }
.pill.freed { color: var(--warn); border-color: rgba(255, 180, 84, 0.45); background: rgba(255, 180, 84, 0.08); }
.pill.legacy { color: var(--steam); border-color: rgba(102, 192, 244, 0.4); }
.pill.invalid { color: var(--muted); }
.pill.unverified { color: var(--warn); border-color: rgba(255, 180, 84, 0.45); }
.explain { margin: 6px 0 0; font-size: 14px; }
.note { font-size: 12px; color: var(--muted); margin: 10px 2px 0; }
.note.warn { color: var(--warn); }
.tiny { font-size: 11px; }
.explain a, .note a { color: var(--steam); }
.kv { display: grid; grid-template-columns: minmax(96px, 24%) 1fr; gap: 6px 14px; font-size: 13px; margin: 10px 0 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.kv code, .mono code { font: inherit; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; word-break: break-all; }
.copy { background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; font: inherit; font-size: 11px; cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--muted); }
.identity { display: flex; gap: 18px; align-items: center; }
.identity img { image-rendering: pixelated; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); 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; }
.textures { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.tex { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.tex img { image-rendering: pixelated; border-radius: 6px; border: 1px solid var(--border); background: var(--panel-2); }
.tex img.cape { width: 128px; height: auto; }
.tex .lab { font-weight: 600; }
.tex a.tiny { color: var(--steam); text-decoration: none; }
.sub2 { margin: 14px 0 6px; font-size: 11px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; }
.big { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(124, 195, 66, 0.1); color: var(--grass); border: 1px solid rgba(124, 195, 66, 0.3); font-family: inherit; }
.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); }
.card.since .chip { font-size: 13px; padding: 5px 12px; }
.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; align-items: baseline; }
.list li:last-child { border-bottom: 0; }
.list li > * { min-width: 0; }
.list .when { color: var(--muted); font-size: 12px; }
.list li.warn { color: var(--warn); }
.nm { font-weight: 600; }
.nm.old { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(139, 144, 160, 0.5); }
.avatars { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.av { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
.av img { image-rendering: pixelated; border-radius: 6px; border: 1px solid var(--border); background: var(--panel-2); }
.av img.cape { width: 96px; height: auto; }
pre.code { margin: 0; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; white-space: pre-wrap; word-break: break-all; }

/* ---------- bulk ---------- */
.bulkout { margin-top: 14px; }
.bulkhead { margin-bottom: 8px; }
.chip.filter { cursor: pointer; opacity: 0.75; }
.chip.filter.on, .chip.filter:hover { opacity: 1; outline: 1px solid currentColor; }
.chip.filter.taken { color: var(--bad); background: rgba(255, 107, 107, 0.08); border-color: rgba(255, 107, 107, 0.35); }
.chip.filter.likely { color: var(--good); background: rgba(174, 241, 61, 0.07); border-color: rgba(174, 241, 61, 0.35); }
.chip.filter.freed { color: var(--warn); background: rgba(255, 180, 84, 0.08); border-color: rgba(255, 180, 84, 0.35); }
.chip.filter.legacy { color: var(--steam); background: transparent; border-color: rgba(102, 192, 244, 0.4); }
.chip.filter.invalid, .chip.filter.unverified { color: var(--muted); background: transparent; border-color: var(--border); }
.chip.filter.unverified { color: var(--warn); }
.tablewrap { overflow-x: auto; margin-top: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td.mono { white-space: nowrap; }
td.mono code { font-size: 11px; }
td.mono .copy { margin-left: 6px; }
td.small { font-size: 11px; max-width: 320px; }

/* ---------- removal ---------- */
.removebox { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.removebox img.challenge { image-rendering: pixelated; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); }
.steps { margin: 0; padding-left: 20px; font-size: 13px; color: var(--muted); }
.steps li { margin-bottom: 8px; }
.removebox .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 560px) { .removebox { grid-template-columns: 1fr; } }

/* ---------- explainers / footer ---------- */
.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; }
.how a { color: var(--steam); }
.disclaimer { text-align: center; font-size: 11px; letter-spacing: 0.04em; color: var(--dim); margin: 0 0 8px; }
.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: 80px; height: 80px; }
  .subject { font-size: 18px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 6px; }
}
