@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-latin.260c81a4759b.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-cyrillic.de93fdc85e3d.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Orbitron";
  src: url("../fonts/Orbitron.a4ff8249fc28.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0f14;
  --bg-deep: #090b10;
  --surface: #131720;
  --surface-raised: #191e29;
  --surface-hover: #202633;
  --surface-inset: #10131a;
  --line: #2b3241;
  --line-strong: #3a4356;
  --text: #eef0f6;
  --text-soft: #c2c8d5;
  --muted: #929bad;
   --accent: #6f78ef;
   --accent-bright: #9aa0ff;
  --accent-wash: #222747;
  --clean: #91a99b;
  --info: #a9b5c7;
  --low: #9da9c7;
  --medium: #e2bc76;
  --high: #e7966e;
  --critical: #ed8286;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --radius-sm: 7px;
  --radius: 12px;
  --radius-lg: 17px;
  --shadow-panel: 0 16px 42px rgba(0, 0, 0, .24);
  --shadow-float: 0 22px 54px rgba(0, 0, 0, .42);
  --font-body: "Inter", system-ui, sans-serif;
  --type-caption: 11px;
  --type-small: 12px;
  --type-control: 13px;
  --type-body: 14px;
  --type-heading: 17px;
  --type-title: 32px;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --z-sticky: 10;
  --z-popover: 20;
  --z-toast: 50;
  --motion-fast: 140ms;
  --motion: 220ms;
  --bg2: var(--bg-deep);
  --panel: var(--surface);
  --panel2: var(--surface-raised);
  --panel3: var(--surface-hover);
  --accent2: var(--accent-bright);
  --suspicious: var(--medium);
  --cheat: var(--critical);
  --radius-token: var(--radius);
  --text2: var(--text-soft);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% -18rem, rgba(111, 120, 239, .13), transparent 44rem),
    var(--bg);
  font: var(--type-body)/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
}
::selection { color: #fff; background: #5963cc; }
a { color: var(--accent-bright); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: #c1c5ff; text-decoration: underline; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.025em; line-height: 1.25; }
h1 { margin-bottom: 0; font-size: clamp(25px, 3vw, var(--type-title)); font-weight: 750; }
h2 { margin-bottom: 14px; font-size: var(--type-heading); font-weight: 700; }
h3 { margin: 0 0 10px; color: var(--muted); font-size: var(--type-caption); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
p { margin-bottom: 10px; }
code, .mono { font-family: var(--mono); font-size: var(--type-small); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: var(--type-small); }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.right { text-align: right; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; z-index: 100; top: 8px; left: -9999px; padding: 9px 14px; color: #fff; background: #5059bd; border-radius: var(--radius-sm); }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

/* App shell */
.topbar {
  position: sticky;
  z-index: var(--z-sticky);
  top: 0;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  padding: 10px max(22px, calc((100vw - 1392px) / 2));
  border-bottom: 1px solid rgba(148, 160, 190, .12);
  background: rgba(13, 15, 20, .94);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .035em;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand .moon {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(190, 193, 255, .8);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #f0efff, #a4a7e7 42%, #4a4e82 74%);
  box-shadow: 0 0 20px rgba(111, 120, 239, .25);
}
.brand b { color: var(--accent-bright); font-weight: 500; }
.nav { display: flex; min-width: 0; align-items: center; gap: 3px; }
.nav a { position: relative; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-soft); font-size: 12px; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-raised); text-decoration: none; }
.nav a.active::after { position: absolute; right: 10px; bottom: -11px; left: 10px; height: 2px; background: var(--accent); content: ""; }
.nav .count { display: inline-grid; min-width: 19px; height: 19px; place-items: center; margin-left: 3px; padding: 0 5px; border: 1px solid rgba(226,188,118,.36); border-radius: 99px; color: #f0d39f; background: #2a251b; font-size: 10px; font-weight: 700; }
.who { display: flex; flex: none; align-items: center; gap: 10px; margin-left: auto; }
.who form, .lang-switch { margin: 0; }
.who > a { display: flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 12px; white-space: nowrap; }
.account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu .menu-body { min-width: min(230px, calc(100vw - 24px)); }
.role-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
main { width: min(100% - 44px, 1320px); min-height: calc(100vh - 130px); margin: 0 auto; padding: 30px 0 56px; }
footer.foot { padding: var(--space-4) var(--space-5) 25px; color: var(--muted); font-size: var(--type-caption); letter-spacing: .04em; text-align: center; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-head > div { min-width: 0; }
.page-head h1 { margin: 0; }
.lead { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.back { display: inline-flex; align-items: center; margin: 0 0 14px; color: var(--muted); font-size: 12px; }

/* Surfaces and layouts */
.card, .stat, .kpi {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255,255,255,.018), transparent 55%), var(--surface);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.card { padding: clamp(var(--space-4), 2vw, 22px); margin-bottom: var(--space-4); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card > :last-child > :last-child { margin-bottom: 0; }
.grid { display: grid; min-width: 0; gap: var(--space-4); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 330px); align-items: start; gap: 18px; }
.layout-side > * { min-width: 0; }
.stack, .stack-lg { display: flex; min-width: 0; flex-direction: column; gap: var(--space-3); }
.stack > *, .stack-lg > .card, .stack-lg > details.card { margin-bottom: 0; }
.stack-lg { gap: var(--space-4); }
.stats, .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin-bottom: 16px; }
.stat, .kpi { padding: 15px 16px; }
.stat .n, .kpi-n { color: var(--text); font-size: 27px; font-weight: 760; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .l, .kpi-l { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .035em; }
.stat.live .n { color: var(--accent-bright); }
.stat.bad .n, .kpi-bad .kpi-n { color: var(--critical); }
.stat.warn .n, .kpi-warn .kpi-n { color: var(--medium); }
.kpi-ok .kpi-n { color: var(--text-soft); }
.empty, .empty-state { padding: 30px 20px; color: var(--muted); text-align: center; }
.empty-state h2 { margin-bottom: 7px; color: var(--text); }

/* Tables: readable desktop rows, data-label cards on small screens */
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scrollbar-color: var(--line-strong) transparent; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 13px; border-bottom: 1px solid rgba(148,160,190,.11); text-align: left; vertical-align: top; }
th { position: sticky; z-index: 1; top: 0; color: var(--muted); background: var(--surface-raised); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
tbody tr:nth-child(even) td { background: rgba(255,255,255,.012); }
tbody tr:hover td, tr.clickable:focus-within td { background: rgba(129,138,255,.07); }
tbody tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
td.evidence { max-width: 430px; overflow-wrap: anywhere; color: var(--text-soft); font-family: var(--mono); font-size: 11px; }
tr:target td { background: #292e50 !important; }
.table-wrap .empty { padding: 24px; }

/* Labels and evidence states */
.badge { display: inline-flex; min-height: 23px; align-items: center; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-soft); background: #1a202b; font-size: 10px; font-weight: 700; letter-spacing: .02em; line-height: 1.25; white-space: nowrap; }
.v-CLEAN { color: var(--clean); border-color: #576c61; }
.sev-ok { color: var(--info); border-color: var(--line-strong); }
.v-SUSPICIOUS, .sev-MEDIUM { color: #e8c98f; border-color: #75613d; }
.v-CHEAT, .sev-CRITICAL { color: #f0a0a2; border-color: #804d52; }
.sev-HIGH { color: #efaa8c; border-color: #795541; }
.sev-LOW, .tone-incomplete { color: #bdc3ff; border-color: #4a507c; }
.v-INCONCLUSIVE, .sev-INFO { color: var(--info); }
.st-WAITING { color: var(--text-soft); }
.st-CONNECTED, .st-SCANNING { color: #c1c5ff; border-color: #4e568d; }
.st-SCANNING::before, .st-CONNECTED::before { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: var(--accent-bright); content: ""; animation: signal 1.7s ease-in-out infinite; }
.st-COMPLETED { color: #d0d7e3; }
.st-ABANDONED { color: #f0a0a2; }
.st-EXPIRED, .st-CANCELLED { color: var(--muted); }
.d-BANNED { color: #f0a0a2; }
.d-CLEARED { color: #c1cbbb; }
.d-REVIEW, .d-RECHECK { color: #e8c98f; }
.t-ok { color: #bdc8be; }
.t-warn { color: #efcf91; }
.t-bad { color: #f0a0a2; }
.t-info { color: var(--info); }
.tone-bad { color: #f0a0a2; border-color: #804d52; }
.tone-review { color: #e8c98f; border-color: #75613d; }
.tone-muted { color: var(--text-soft); }
.tone-none { color: #c2cada; border-color: #465064; }
.tone-ok { color: #c3d0c5; border-color: #526358; }
.badge.test { border-style: dashed; color: #e9ca91; background: #282318; }
.test-banner { padding: 11px 14px; margin-bottom: 16px; border: 1px dashed #75613d; border-radius: var(--radius); color: #e8c98f; background: #201c14; }
@keyframes signal { 50% { opacity: .4; } }

/* Inputs and actions */
form.inline { display: inline; }
label { display: block; margin-bottom: 6px; color: var(--text-soft); font-size: 12px; font-weight: 650; }
.field { min-width: 0; margin-bottom: 15px; }
.field .help { margin-top: 5px; color: var(--muted); font-size: 11px; }
.field .err, .errorlist { padding: 0; margin: 5px 0 0; color: #f0a0a2; font-size: 12px; list-style: none; }
.errorlist { padding: 10px 12px; border: 1px solid #674148; border-radius: var(--radius-sm); background: #24171d; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=search], input[type=email], input[type=tel], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--surface-inset);
  font: inherit;
  font-size: 13px;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid rgba(129,138,255,.22); outline-offset: 1px; }
input[aria-invalid="true"], .field:has(.err) input, .field:has(.err) select, .field:has(.err) textarea { border-color: #a55e66; }
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); vertical-align: -4px; margin: 0 8px 0 0; }
input[type=color] { width: 60px; min-height: 38px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-inset); }
.checkbox-row label, .perm-group li label { display: inline; font-weight: 500; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.filters input, .filters select { width: auto; min-width: 145px; }
.filters input[type=search] { min-width: min(240px, 100%); }
.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: #1b202a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--motion-fast), background-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}
.btn:hover { border-color: #6973d8; color: #fff; background: #242a38; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { border-color: #737de8; color: #fff; background: #555fca; }
.btn.primary:hover { border-color: #929aff; background: #626dd9; }
.btn.danger { border-color: #77464d; color: #f0a0a2; background: #251a20; }
.btn.danger:hover { border-color: #a45f68; background: #332027; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-soft); }
.btn.ghost:hover { border-color: var(--line-strong); background: var(--surface-hover); color: var(--text); }
.btn[aria-busy="true"] { cursor: progress; border-style: dashed; }
.btn.small { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.btn.big { min-height: 48px; padding: 11px 18px; font-size: 14px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.center { justify-content: center; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }

/* Feedback / status */
.messages { padding: 0; margin: 0 0 16px; list-style: none; }
.messages li { padding: 11px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.messages .success { border-color: #56685e; }
.messages .error { border-color: #804d52; }
.messages .warning { border-color: #75613d; }
.alert { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-soft); background: var(--surface-raised); }
.alert-icon { display: grid; width: 22px; height: 22px; flex: none; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: inherit; font-size: 12px; font-weight: 800; }
.alert-bad { border-color: #69434a; background: #21171c; }
.alert-bad .alert-icon { color: #f0a0a2; }
.alert-warn { border-color: #655637; background: #201c15; }
.alert-warn .alert-icon { color: #e8c98f; }
.alert-info .alert-icon { color: #c2cada; }
.notice { padding: 12px 14px; border: 1px solid #465064; border-radius: var(--radius); color: var(--text-soft); background: #171d27; }

/* Authentication and public player screens */
.auth { display: grid; width: 100%; min-height: 100dvh; margin: 0; place-items: center; padding: var(--space-6) 18px; background: radial-gradient(ellipse at 50% 20%, rgba(111,120,239,.13), transparent 32rem); }
.auth-title { margin-bottom: var(--space-6); font-size: 24px; }
.auth .card { width: min(100%, 460px); padding: clamp(22px, 5vw, 34px); box-shadow: var(--shadow-panel); }
.auth .brand { font-size: 21px; }
.auth-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.auth h2 { font-size: 22px; }
.auth .btn.primary { width: 100%; min-height: 48px; }
.public { width: min(100% - 36px, 760px); margin: 0 auto; padding: 30px 0 44px; }
.public .brand { justify-content: center; margin: 0 auto 26px; font-size: 22px; }
.public > .page-head { align-items: flex-start; }
.steps { padding: 0; margin: 0; counter-reset: step; list-style: none; }
.steps li { position: relative; min-height: 34px; padding: 2px 0 17px 44px; counter-increment: step; }
.steps li::before { position: absolute; top: 0; left: 0; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #495178; border-radius: 50%; color: #c1c5ff; background: #20243a; content: counter(step); font-size: 12px; font-weight: 700; }
.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.card.inner { margin-top: 10px; background: var(--surface-raised); }
.evidence-list { display: grid; gap: 9px; padding: 0; margin: 14px 0 0; list-style: none; }
.evidence-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; overflow-wrap: anywhere; }
.queue { overflow: hidden; margin-bottom: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.queue-decide { border-color: #66573c; }
.queue-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: rgba(255,255,255,.018); }
.queue-head h2 { margin: 0; font-size: 14px; }
.queue-head .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--muted); }
.queue-decide .dot { background: var(--medium); }
.queue-running .dot { background: var(--accent-bright); }
.queue-waiting .dot { background: #8995a9; }
.queue-head .muted { display: grid; min-width: 22px; height: 22px; place-items: center; margin-left: auto; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-inset); font-size: 10px; }
.queue-row { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 16px; padding: 13px 16px; border-top: 1px solid rgba(148,160,190,.12); }
.queue-main { flex: 1 1 190px; min-width: 0; }
.queue-main .player { color: var(--text); font-size: 14px; font-weight: 700; }
.queue-main .player:hover { color: var(--accent-bright); }
.queue-progress { display: flex; min-width: 180px; flex: 2 1 230px; flex-direction: column; gap: 6px; }
.code-inline { flex: 1 1 140px; color: var(--text); font-family: var(--mono); font-size: 18px; letter-spacing: .1em; }
.queue-row .actions { flex: 0 1 auto; }
.step-title { display: flex; align-items: center; gap: 10px; }
.step-title h2 { margin: 0; }

/* Check workflow and report */
.code-box { padding: 28px 20px; text-align: center; }
.code-box .code { margin: 10px 0 var(--space-3); color: var(--text); font-family: var(--mono); font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: .11em; user-select: all; }
.link-box { display: flex; gap: 8px; }
.link-box input { min-width: 0; font-family: var(--mono); font-size: 11px; }
.message-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-soft); background: var(--surface-inset); font-size: 13px; line-height: 1.7; white-space: pre-line; }
.progress { height: 10px; overflow: hidden; border: 1px solid var(--line); border-radius: 99px; background: #0c0f15; }
.progress > div { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #606bdd, #9299ff); transition: width 450ms ease; }
.verdict-card { color: var(--text); }
.verdict-card .verdict-label { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.verdict-card .verdict { margin: 5px 0 8px; font-size: clamp(25px, 3.2vw, 32px); font-weight: 780; letter-spacing: -.025em; }
.verdict-card p { max-width: 760px; margin: 0; color: var(--text-soft); font-size: 14px; }
.verdict-card.tone-review { border-color: #68583b; background: linear-gradient(140deg, rgba(226,188,118,.055), transparent 65%), var(--surface); }
.verdict-card.tone-review .verdict-label, .verdict-card.tone-review .verdict { color: #e8c98f; }
.verdict-card.tone-bad { border-color: #71464c; background: linear-gradient(140deg, rgba(237,130,134,.06), transparent 65%), var(--surface); }
.verdict-card.tone-bad .verdict-label, .verdict-card.tone-bad .verdict { color: #f0a0a2; }
.verdict-card.tone-ok { border-color: #505b53; background: var(--surface); }
.verdict-card.tone-ok .verdict-label, .verdict-card.tone-ok .verdict { color: #c3d0c5; }
.verdict-card.tone-none { border-color: #465064; background: linear-gradient(140deg, rgba(145,160,190,.045), transparent 65%), var(--surface); }
.verdict-card.tone-none .verdict-label, .verdict-card.tone-none .verdict { color: #c2cada; }
.verdict-card.tone-incomplete { border-color: #4a507c; background: #171a27; }
.verdict-card.tone-incomplete .verdict-label, .verdict-card.tone-incomplete .verdict { color: #bdc3ff; }
.verdict-card.tone-muted .verdict-label { color: var(--muted); }
.parts { padding-top: 13px; margin-top: 17px; border-top: 1px solid var(--line); }
.parts-head { margin-bottom: 8px; color: var(--text-soft); font-size: 11px; font-weight: 650; }
.parts ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.part { padding: 3px 8px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--text-soft); background: var(--surface-inset); font-size: 10px; }
.part-ok { color: var(--info); border-color: var(--line-strong); }
.part-bad { color: #f0a0a2; border-color: #71464c; }
.verify-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.verify-row > span:nth-child(2) { flex: 1 1 260px; }
.verif { color: var(--accent-bright); font-family: var(--mono); font-size: 16px; letter-spacing: .06em; }
.num { display: inline-grid; width: 28px; height: 28px; flex: none; place-items: center; border: 1px solid #495178; border-radius: 50%; color: #c1c5ff; background: #20243a; font-size: 12px; font-weight: 700; }
.assurance { display: grid; gap: 8px; margin: 0; }
.assurance-row { padding: 11px 13px; border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius-sm); background: var(--surface-inset); }
.assurance-row dt { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.assurance-row dd { margin: 7px 0 0 30px; }
.assurance-row ul { padding-left: 17px; margin: 0; }
.assurance-row li { margin: 2px 0; color: var(--text-soft); }
.assurance-mark { display: inline-grid; width: 21px; height: 21px; flex: none; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text-soft); background: #1c222e; font-size: 11px; }
.assurance-row.lvl-ok { border-left-color: #68796e; }
.assurance-row.lvl-ok .assurance-mark { border-color: #68796e; color: #c3d0c5; background: #252e29; }
.assurance-row.lvl-warn { border-left-color: var(--medium); }
.assurance-row.lvl-warn .assurance-mark { color: #e8c98f; }
.assurance-row.lvl-bad { border-left-color: var(--critical); }
.assurance-row.lvl-bad .assurance-mark { color: #f0a0a2; }
.assurance-row.lvl-info, .assurance-row.lvl-none { border-left-color: #77849a; }
.finding { display: flex; align-items: flex-start; gap: 13px; padding: 15px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.finding:first-of-type { border-top: 0; }
.finding-body { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.finding-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.tag { flex: none; align-self: flex-start; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted); background: var(--surface-inset); font-family: var(--mono); font-size: 10px; }
.path { color: var(--text-soft); font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; }
.why { color: var(--muted); font-size: 12px; }
details { min-width: 0; }
details > summary { cursor: pointer; color: var(--text-soft); font-weight: 600; }
details > summary::marker { color: var(--accent-bright); }
details > summary:hover { color: var(--text); }
details.extra { padding-top: 12px; border-top: 1px solid var(--line); }
details.extra[open] > summary, details.advanced[open] > summary { margin-bottom: 15px; }
details.other { padding-top: 12px; margin-top: 5px; border-top: 1px solid var(--line); }
details.other ul { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; margin: 12px 0 0; }
details.advanced h3 { margin-top: 0; }
.kv { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 7px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.flags { padding: 0; margin: 0; list-style: none; }
.flags li { display: flex; align-items: baseline; gap: 9px; padding: 8px 0; border-bottom: 1px solid rgba(148,160,190,.1); }
.flags li:last-child { border-bottom: 0; }
.flags .icon { width: 18px; flex: none; color: var(--text-soft); font-weight: 750; text-align: center; }
.decision-card .btn.decide { min-height: 48px; justify-content: flex-start; font-size: 13px; }
.decide-clean { border-color: #526358; color: #c3d0c5; }
.decide-clean:hover { background: #222a24; }
.decide-ban { border-color: #a4565e; color: #fff; background: #8f4149; }
.decide-ban:hover { border-color: #c16b73; background: #a24b54; }
.decide-recheck { border-color: #4a507c; color: #c1c5ff; }
.decide-recheck:hover { background: #222640; }
.decide-bar { display: none; }
.statement { padding: 12px 14px; margin: 0; border-left: 3px solid #5963bb; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-soft); background: var(--surface-inset); }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .menu-body { position: absolute; z-index: var(--z-popover); top: calc(100% + 7px); right: 0; display: flex; min-width: 230px; flex-direction: column; gap: 7px; padding: 9px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-raised); box-shadow: var(--shadow-float); }
.menu .menu-body form, .menu .menu-body .btn { width: 100%; margin: 0; }
.collector { margin-bottom: 0; }
.collector > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; color: var(--text); }
.collector-name { font-size: 14px; font-weight: 700; }
.collector-summary { flex-basis: 100%; font-size: 12px; font-weight: 400; }
.collector[open] > summary { margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 25px 0 12px; }
.section-head h2 { margin: 0; }
.section-head .filters { margin: 0; }
.more-filters { position: relative; }
.more-filters > summary { list-style: none; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters[open] > .filters { position: absolute; z-index: var(--z-popover); top: calc(100% + 7px); right: 0; display: flex; width: min(340px, 92vw); flex-direction: column; align-items: stretch; padding: 13px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-raised); box-shadow: var(--shadow-float); }
.more-filters[open] > .filters select { width: 100%; }
.parts-strip { margin-top: 14px; }
.timeline { padding: 0 0 0 14px; margin: 0; border-left: 1px solid var(--line-strong); list-style: none; }
.timeline li { position: relative; padding: 0 0 14px 15px; overflow-wrap: anywhere; }
.timeline li::before { position: absolute; top: 5px; left: -20px; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); content: ""; }
.timeline time { display: block; color: var(--muted); font-size: 11px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.segmented a { padding: 7px 11px; border-radius: 5px; color: var(--muted); font-size: 11px; font-weight: 650; }
.segmented a.active { color: var(--text); background: var(--surface-hover); text-decoration: none; }
.chart-wrap { max-width: 100%; overflow-x: auto; }
.chart { display: block; width: 100%; min-width: 560px; height: auto; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; }
.bar-bad { fill: var(--critical); background: var(--critical); }
.bar-review { fill: var(--medium); background: var(--medium); }
.bar-incomplete { fill: var(--accent); background: var(--accent); }
.bar-muted { fill: #778196; background: #778196; }
.bar-ok { fill: #82978a; background: #82978a; }
.bar-none { fill: #8995a9; background: #8995a9; }
.bar-decision-BANNED { background: var(--critical); }
.bar-decision-CLEARED { background: #82978a; }
.bar-decision-RECHECK, .bar-decision-REVIEW { background: var(--medium); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 17px; padding: 0; margin: 12px 0 0; color: var(--muted); font-size: 11px; list-style: none; }
.legend .swatch { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; vertical-align: 0; }
.hbar { margin-bottom: 14px; }
.hbar-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.hbar-track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--surface-hover); }
.hbar-fill { width: 0; height: 100%; border-radius: inherit; }
.rank { display: flex; flex-direction: column; gap: 9px; padding-left: 21px; margin: 0; }
.perm-group { margin-bottom: 14px; }
.perm-group ul { padding: 0; margin: 6px 0 0; list-style: none; }
.perm-group li { margin: 0 0 7px; }
.qr { display: inline-block; padding: 9px; border-radius: var(--radius-sm); background: #fff; }
.qr svg { display: block; max-width: 100%; height: auto; }
.recovery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; font-family: var(--mono); font-size: 14px; }
.recovery div { padding: 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-inset); text-align: center; }
.resolve-form { padding-top: 12px; border-top: 1px solid var(--line); }
.toast { position: fixed; z-index: var(--z-toast); right: 18px; bottom: 18px; max-width: min(420px, calc(100vw - 36px)); padding: 13px 16px; border: 1px solid #75613d; border-radius: var(--radius); color: var(--text); background: var(--surface-raised); box-shadow: var(--shadow-float); font-weight: 650; }
.toast + .toast { bottom: 82px; }
.toast:hover { border-color: var(--medium); text-decoration: none; }

@media (max-width: 1120px) {
  .topbar { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: thin; }
  .nav a.active::after { bottom: -6px; }
  .who { margin-left: auto; }
}
@media (max-width: 800px) {
  main { width: min(100% - 32px, 680px); padding-top: 22px; }
  .layout-side { grid-template-columns: minmax(0, 1fr); }
  .grid.two, .grid.three { grid-template-columns: minmax(0, 1fr); }
  .page-head { align-items: flex-start; }
  .page-head > .btn { flex: none; }
  .topbar { gap: 8px 12px; padding: 9px 16px; }
  .nav { gap: 1px; }
  .nav a { padding: 8px 9px; }
}
@media (max-width: 720px) {
  .topbar { position: static; }
  .who > a .muted { display: none; }
  .who { gap: 6px; }
  .who .btn { min-height: 34px; }
  main { width: min(100% - 28px, 620px); padding: 18px 0 44px; }
  .page-head { gap: 12px; margin-bottom: 17px; }
  .page-head .btn.big { min-height: 42px; padding: 8px 11px; font-size: 11px; }
  .lead { font-size: 12px; }
  .queue-row .btn, .queue-row .actions { width: 100%; }
  .queue-row .actions .btn { flex: 1 1 auto; }
  .section-head .filters { width: 100%; }
  .section-head .filters input[type=search] { flex: 1 1 100%; }
  .filters input, .filters select { min-width: 0; width: 100%; }
  .decide-bar { position: sticky; z-index: 4; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 10px max(14px, calc((100vw - 620px) / 2)) calc(10px + env(safe-area-inset-bottom)); margin: 16px calc((100vw - min(100vw - 28px, 620px)) / -2) -10px; border-top: 1px solid var(--line); background: rgba(13,15,20,.97); backdrop-filter: blur(12px); }
  .decide-bar .btn { min-height: 48px; padding: 6px 5px; font-size: 11px; line-height: 1.15; overflow-wrap: anywhere; white-space: normal; }
  .verdict-card .verdict { font-size: 24px; }
  .table-wrap { border-radius: var(--radius-sm); }
  table.cards-sm thead { display: none; }
  table.cards-sm, table.cards-sm tbody { display: block; width: 100%; }
  table.cards-sm tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 13px; border-bottom: 1px solid var(--line); }
  table.cards-sm tr.hidden { display: none; }
  table.cards-sm td { display: block; min-width: 0; padding: 0; border: 0; background: transparent !important; overflow-wrap: anywhere; }
  table.cards-sm td.c-player, table.cards-sm td.c-wide, table.cards-sm td[colspan] { grid-column: 1 / -1; }
  table.cards-sm.tight tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  table.cards-sm td.evidence { max-width: none; }
  table.cards-sm td:empty { display: none; }
  table.cards-sm td[data-label]::before { display: block; margin-bottom: 3px; color: var(--muted); content: attr(data-label); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  table.cards-sm tr:last-child { border-bottom: 0; }
  th, td { padding: 9px; }
  .verdict-banner .score { margin-left: 0; }
  .more-filters[open] > .filters { right: auto; left: 0; }
  .menu .menu-body { right: 0; left: auto; }
}
@media (max-width: 420px) {
  main { width: calc(100% - 24px); }
  .topbar { padding-right: 12px; padding-left: 12px; }
  .brand { font-size: 15px; }
  .brand .moon { width: 19px; height: 19px; }
  .who { gap: 5px; }
  .account-name { max-width: 88px; }
  .who > a { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .who > a .role-dot { margin-right: 2px; }
  .nav { margin-right: -12px; margin-left: -12px; padding: 0 12px; }
  .nav a { padding: 8px 7px; font-size: 11px; }
  .card { padding: 15px; }
  .page-head { flex-wrap: wrap; }
  .link-box { align-items: stretch; flex-direction: column; }
  .link-box .btn { width: 100%; }
  .code-box .code { font-size: 28px; letter-spacing: .08em; }
  .kv { grid-template-columns: minmax(90px, max-content) minmax(0,1fr); gap: 6px 10px; }
  .assurance-row dd { margin-left: 0; }
  .decide-bar { margin-right: -12px; margin-left: -12px; padding-right: 12px; padding-left: 12px; }
  .public { width: calc(100% - 24px); padding-top: 20px; }
  main.auth { width: 100%; padding: 14px; }
  .auth .card { padding: 21px; }
  .segmented { max-width: 100%; }
  .segmented a { padding: 7px 8px; }
  .table-wrap { max-width: calc(100vw - 24px); }
  .pager { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
