:root {
  color-scheme: dark;
  --bg: #0e0f13;
  --panel: #16181f;
  --panel-2: #1d2029;
  --line: #282c37;
  --text: #e7e9ee;
  --muted: #9aa0ad;
  --accent: #ffb454;
  --red: #ff5555;
  --green: #4caf50;
  --blue: #5cc8ff;
  --purple: #b58cff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.6 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px max(28px, calc((100vw - 1120px) / 2)); background: #0e0f13f5; border-bottom: 1px solid #ffffff08; backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand h1 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--red); box-shadow: none; }
.tag { font-size: 11px; color: var(--muted); }
.controls, .session { display: flex; align-items: center; gap: 12px; min-width: 0; }
.search input { width: 310px; max-width: 100%; padding: 10px 15px; color: var(--text); background: var(--panel-2); border: 1px solid transparent; border-radius: 24px; outline: none; font-size: 13px; }
.search input::placeholder { color: #a0a0a0; }
.search input:focus { border-color: #ffb45480; }
main { width: 100%; max-width: 1120px; padding: 46px 28px 72px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading h2 { margin: 0 0 8px; font-size: clamp(26px, 3.5vw, 32px); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
.eyebrow { margin: 0 0 8px; font-size: 11px; color: var(--muted); }
.page-description { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; }
.review-notice { padding: 13px 16px; margin-bottom: 24px; border: 1px solid #e7bc7838; border-left: 3px solid #dfb975; background: #e7bc7805; border-radius: 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.review-notice strong { display: block; color: #e6c795; font-weight: 500; }

.report-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 0 20px; }
.report-filters label { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.report-filters select { max-width: 180px; padding: 7px 25px 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: #d0d0d0; background: var(--bg); font-size: 12px; }
.result-count { margin-right: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
.card { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.4fr); min-width: 0; gap: 20px 26px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s ease; }
.card:hover { border-color: #3a4152; }
.card--selected { border-color: var(--accent); }
.card--busy { opacity: .5; pointer-events: none; }
.grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--cards .card { display: flex; flex-direction: column; gap: 18px; }
.card__head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.card-select { width: 16px; height: 16px; flex: none; margin: 3px 0 0; accent-color: var(--accent); }
.avatar { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--panel-2); image-rendering: pixelated; }
.who { flex: 1; min-width: 0; }
.name { font-size: 15px; font-weight: 600; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server { margin-top: 2px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct { display: inline-block; margin-top: 7px; padding: 1px 7px; border: 1px solid #484848; border-radius: 6px; font-size: 10px; color: #aaa; }
.acct--premium { color: var(--green); border-color: #4caf5050; background: #4caf500a; }
.acct--cracked { color: #ddc59d; border-color: #ddc59d40; }
.card__evidence { display: flex; flex-direction: column; gap: 9px; min-width: 0; width: 100%; }
.evidence-group__title { display: block; color: #d3d3d3; font-size: 12px; font-weight: 500; }
.chips, .sources { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip { max-width: 100%; padding: 3px 9px; border: 1px solid #454545; border-radius: 7px; background: var(--panel-2); color: #ccc; font-size: 11px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.chip--attack { color: var(--red); border-color: #ff555550; background: #ff55550a; }
.chip--keybind { color: var(--purple); border-color: #b58cff50; background: #b58cff0a; }
.chip--hotbar { color: #ffb454; border-color: #ffb45445; background: #ffb45409; }
.chip--use { color: var(--blue); border-color: #5cc8ff50; background: #5cc8ff0a; }
.evidence-group:not(.evidence-group--behavioral) .evidence-group__title { color: var(--blue); }
.chip--src { background: transparent; color: var(--muted); }
.src--mod { color: var(--blue); border-color: #5cc8ff50; }
.src--unknown, .src--external { color: #b8b8b8; }
.external-evidence { display: flex; flex-direction: column; gap: 12px; }
.evidence-group { min-width: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; }
.evidence-group--behavioral { border-color: var(--line); background: transparent; }
.evidence-group--behavioral .evidence-group__title { color: var(--accent); }
.evidence-note { margin: 3px 0 10px; color: #aaa; font-size: 11px; line-height: 1.6; }
.evidence-list { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; margin: 0; }
.evidence-list li { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; font-size: 12px; overflow-wrap: anywhere; }
.evidence-list li span { flex: none; margin-left: auto; color: #999; font-size: 10px; font-variant-numeric: tabular-nums; }
.source-details { color: var(--muted); font-size: 11px; }
.source-details summary { cursor: pointer; padding: 3px 0; }
.source-details .sources { padding-top: 8px; }
.card__foot { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 15px; margin-top: auto; width: 100%; border-top: 1px solid #3c3c3c; }
.time { color: #999; font-size: 11px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.btn, .logout, .del, .open { display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; border: 1px solid #4b4b4b; border-radius: 9px; background: var(--panel-2); color: #ddd; font-size: 12px; font-weight: 500; line-height: 1.5; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover:not(:disabled), .logout:hover { background: #3a3a3a; }
.btn--ghost { background: transparent; color: #bbb; }
.open { background: var(--accent); border-color: var(--accent); color: #0e0f13; }
.open:hover { background: #ffc777; border-color: #ffc777; }
.btn--danger, .del { background: transparent; border-color: #694848; color: #e5a6a6; }
.btn--danger:hover:not(:disabled), .del:hover:not(:disabled) { background: #493535; }
.more { display: flex; justify-content: center; padding-top: 26px; }
.status { padding: 46px 20px; color: var(--muted); text-align: center; font-size: 13px; }

.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; }
.toolbar__count { margin-right: auto; color: var(--muted); font-size: 12px; }
.select-all { display: flex; align-items: center; gap: 7px; color: #bbb; font-size: 12px; cursor: pointer; }
.select-all input, .scope input { accent-color: var(--accent); }
.gate { display: flex; min-height: 100vh; padding: 24px; }
.login-card { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 380px; padding: 28px; margin: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.login-card .brand { justify-content: center; }
.login-sub { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.login-card input { width: 100%; padding: 11px 14px; border: 1px solid #4b4b4b; border-radius: 10px; color: var(--text); background: var(--panel-2); }
.login-card button { padding: 10px 14px; border: 0; border-radius: 10px; background: var(--accent); color: #0e0f13; font-weight: 500; cursor: pointer; }
.login-err { margin: 0; color: var(--red); font-size: 12px; }
.gate-back { color: var(--muted); font-size: 12px; text-align: center; text-decoration: none; }
.gate-back:hover { color: var(--text); }
.dlg { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid #505050; border-radius: 18px; background: #292929; color: var(--text); box-shadow: 0 16px 60px #0006; }
.dlg::backdrop { background: #0008; backdrop-filter: blur(4px); }
.dlg__form { display: flex; flex-direction: column; gap: 16px; padding: 26px; }
.dlg__title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.dlg__who { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.dlg__body { margin: 0; color: #bbb; font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; }
.dlg__scope { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px; border: 1px solid #484848; border-radius: 10px; }
.scope { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.dlg__warn { margin: 0; color: #d2aaaa; font-size: 12px; }
.dlg__actions { display: flex; justify-content: flex-end; gap: 10px; }
.toasts { position: fixed; z-index: 20; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 9px; }
.toast { max-width: min(360px, calc(100vw - 40px)); padding: 12px 16px; border: 1px solid #505050; border-radius: 12px; background: var(--panel-2); color: #ddd; font-size: 13px; box-shadow: 0 8px 24px #0004; transition: opacity .2s ease, transform .2s ease; }
.toast--bad { border-color: #805454; }
.toast--ok { border-color: #617264; }
.toast--out { opacity: 0; transform: translateY(5px); }
.who-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .top { position: static; padding: 18px; flex-wrap: wrap; gap: 16px; }
  .top .brand { flex: 1 1 100%; }
  .controls { width: 100%; }
  .search { flex: 1; min-width: 0; }
  .search input { width: 100%; }
  main { padding: 28px 16px 48px; }
  .page-heading { align-items: flex-start; gap: 14px; }
  .report-filters { gap: 10px; }
  .result-count { width: 100%; }
  .report-filters label { flex: 1 1 120px; justify-content: space-between; }
  .report-filters select { max-width: 150px; min-width: 0; }
  .grid, .grid--cards { grid-template-columns: minmax(0, 1fr); }
  .card { display: flex; flex-direction: column; padding: 18px; gap: 18px; }
  .card__foot { align-items: flex-start; }
  .card__foot .actions { margin-left: auto; }
  .toolbar { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
