:root {
  --surface-000: #0b0d10;
  --surface-100: #12151a;
  --surface-200: #1a1e25;
  --surface-300: #232830;
  --line: #2a3039;
  --border: #68727f;
  --ink: #e8ebef;
  --ink-muted: #9aa3ae;
  --ink-faint: #7d8692;
  --brand: #c6f24e;
  --brand-hover: #d6f77a;
  --on-brand: #0b0d10;
  --verdict-clean: #5aa9ff;
  --verdict-clean-bg: #12263d;
  --verdict-suspicious: #e8b33a;
  --verdict-suspicious-bg: #2e2410;
  --verdict-cheat: #b48cff;
  --verdict-cheat-bg: #261a3d;
  --verdict-malicious: #ff6b4a;
  --verdict-malicious-bg: #3a1812;
  --verdict-pending: var(--ink-muted);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.55);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-display: Unbounded, "Arial Black", sans-serif;
  --font-sans: Onest, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--surface-000); }
body { background: var(--surface-000); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 22px; margin: 0; min-height: 100vh; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.icon { width: 16px; height: 16px; flex: none; }

/* Header */
.rem-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: var(--space-6); min-height: 56px; padding: 0 var(--space-6); background: var(--surface-000); border-bottom: 1px solid var(--line); }
.rem-header-mark { font: 700 16px/20px var(--font-display); color: var(--brand); letter-spacing: -.01em; white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.rem-header-mark:hover { color: var(--brand); }
.rem-header-mark .icon { width: 20px; height: 20px; }
.rem-nav { display: flex; gap: var(--space-1); flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.rem-nav a { font: 500 14px/20px var(--font-sans); color: var(--ink-muted); text-decoration: none; padding: 6px var(--space-3); border-radius: var(--radius-md); white-space: nowrap; }
.rem-nav a:hover { background: var(--surface-300); color: var(--ink); }
.rem-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.rem-header-user { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); font: 500 13px/18px var(--font-sans); color: var(--ink-muted); }
.rem-header-user a { color: var(--ink-muted); text-decoration: none; display: inline-flex; align-items: center; gap: var(--space-2); }
.rem-header-user a:hover { color: var(--ink); }
.rem-header-user form { margin: 0; }

/* Layout */
.page { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-8) 48px 48px; max-width: 1440px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.page-head > div { display: flex; flex-direction: column; gap: 6px; }
.h1 { font: 600 28px/34px var(--font-display); }
.h2 { font: 600 18px/24px var(--font-sans); }
.lead { color: var(--ink-muted); }
.crumbs { font-size: 13px; line-height: 18px; color: var(--ink-muted); display: flex; gap: var(--space-2); flex-wrap: wrap; }
.crumbs a { color: var(--ink-muted); }
.crumbs span[aria-current] { color: var(--ink); }
.panel { background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.panel-flag { border-color: var(--verdict-malicious); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.rem-label { font: 600 11px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--space-8); align-items: start; }
.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.center { display: flex; justify-content: center; }
.empty { padding: var(--space-8); text-align: center; color: var(--ink-muted); background: var(--surface-100); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.notice { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-200); border: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.notice-bad { border-color: var(--verdict-malicious); color: var(--verdict-malicious); background: var(--verdict-malicious-bg); }
.notice-ok { border-color: var(--brand); }

/* Buttons and fields */
.rem-btn { font: 600 14px/20px var(--font-sans); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; }
.rem-btn-sm { height: 32px; padding: 0 var(--space-3); font-size: 13px; }
.rem-btn-primary { background: var(--brand); color: var(--on-brand); }
.rem-btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.rem-btn-secondary { background: var(--surface-200); color: var(--ink); border-color: var(--border); }
.rem-btn-secondary:hover { background: var(--surface-300); color: var(--ink); }
.rem-btn-ghost { background: transparent; color: var(--ink-muted); }
.rem-btn-ghost:hover { background: var(--surface-300); color: var(--ink); }
.rem-btn-danger { background: var(--verdict-malicious-bg); color: var(--verdict-malicious); border-color: var(--verdict-malicious); }
.rem-btn-danger:hover { color: var(--verdict-malicious); filter: brightness(1.15); }
.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.btn-row form { margin: 0; }
.rem-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rem-field-label { font: 600 13px/18px var(--font-sans); color: var(--ink); }
.rem-input, .rem-select, .rem-textarea { font: 400 15px/22px var(--font-sans); color: var(--ink); background: var(--surface-200); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 9px var(--space-3); outline: none; width: 100%; }
.rem-input::placeholder, .rem-textarea::placeholder { color: var(--ink-faint); }
.rem-input:focus-visible, .rem-select:focus-visible, .rem-textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rem-input-mono { font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.rem-textarea { resize: vertical; min-height: 88px; }
.rem-field-hint { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.rem-field-error .rem-input { border-color: var(--verdict-malicious); }
.rem-field-error .rem-field-hint { color: var(--verdict-malicious); }

/* Verdict badge */
.rem-verdict { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 8px 0 6px; border-radius: var(--radius-sm); font: 600 11px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.rem-verdict .icon { width: 14px; height: 14px; }
.rem-verdict-lg { height: 28px; font-size: 12px; padding: 0 10px 0 8px; }
.rem-verdict-clean { background: var(--verdict-clean-bg); color: var(--verdict-clean); }
.rem-verdict-suspicious { background: var(--verdict-suspicious-bg); color: var(--verdict-suspicious); }
.rem-verdict-cheat { background: var(--verdict-cheat-bg); color: var(--verdict-cheat); }
.rem-verdict-malicious { background: var(--verdict-malicious-bg); color: var(--verdict-malicious); }
.rem-verdict-pending, .rem-verdict-skipped, .rem-verdict-failed { background: var(--surface-300); color: var(--verdict-pending); }

/* Mod card */
.rem-mod { display: flex; flex-direction: column; background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; }
.rem-mod-flag { border-color: var(--verdict-malicious); }
.rem-mod-cheat { border-color: var(--verdict-cheat); }
.rem-mod-cover { aspect-ratio: 16 / 9; background: var(--surface-200); display: block; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); }
.rem-mod-body { flex: 1; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.rem-mod-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.rem-mod-id { font: 400 12px/16px var(--font-mono); color: var(--ink-faint); }
.rem-mod-title { font: 600 18px/24px var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.rem-mod-title a { color: inherit; text-decoration: none; }
.rem-mod-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rem-mod-ext { display: inline-flex; align-items: center; gap: 4px; font: 500 13px/18px var(--font-sans); color: var(--brand); text-decoration: none; }
.rem-mod-ext:hover { text-decoration: underline; text-underline-offset: 3px; }
.rem-mod-ext .icon { width: 14px; height: 14px; }
.rem-mod-desc { color: var(--ink-muted); font: 400 14px/20px var(--font-sans); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rem-ai { background: var(--surface-200); border-radius: var(--radius-md); padding: var(--space-3); display: flex; flex-direction: column; gap: 6px; }
.rem-ai-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.rem-ai-text { font: 400 14px/20px var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.rem-ai-conf { font: 400 12px/16px var(--font-mono); color: var(--ink-faint); }
.rem-mod-foot { margin-top: auto; display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.rem-mod-foot a { color: var(--ink-muted); text-decoration: none; }
.rem-mod-foot a:hover { color: var(--ink); }
.rem-mod-foot .rem-comments { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.rem-mod-foot .icon { width: 14px; height: 14px; }
.rem-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-300); color: var(--ink); display: inline-grid; place-items: center; font: 600 11px/1 var(--font-sans); flex: none; overflow: hidden; }
.rem-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rem-avatar-xl { width: 80px; height: 80px; font: 600 28px/1 var(--font-display); }

/* Stat tile */
.rem-stat { background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.rem-stat-value { font: 600 32px/36px var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.rem-stat-brand .rem-stat-value { color: var(--brand); }
.rem-stat-malicious .rem-stat-value { color: var(--verdict-malicious); }
.rem-stat-cheat .rem-stat-value { color: var(--verdict-cheat); }
.rem-stat-suspicious .rem-stat-value { color: var(--verdict-suspicious); }
.rem-stat-sub { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }

/* Filters */
.toolbar { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding-top: var(--space-2); }
.chips { display: flex; gap: var(--space-2); flex-wrap: wrap; flex: 1; }
.chip { height: 36px; padding: 0 14px; border-radius: var(--radius-md); border: 1px solid var(--line); background: transparent; color: var(--ink-muted); font: 500 14px/20px var(--font-sans); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.chip:hover { background: var(--surface-300); color: var(--ink); }
.chip[aria-current="true"] { border-color: var(--brand); background: var(--surface-200); color: var(--ink); font-weight: 600; }
.chip .icon { width: 14px; height: 14px; }
.search { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.search label { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; color: var(--ink-muted); }
.search .rem-select, .search .rem-input { height: 36px; padding: 0 10px; font-size: 14px; line-height: 20px; width: auto; }
.search .rem-input { width: 240px; }
.segmented { display: flex; padding: 4px; gap: 4px; background: var(--surface-100); border: 1px solid var(--line); border-radius: 10px; }
.segmented a { height: 32px; padding: 0 14px; border-radius: 6px; color: var(--ink-muted); font: 500 13px/32px var(--font-sans); text-decoration: none; white-space: nowrap; }
.segmented a[aria-current="true"] { background: var(--surface-300); color: var(--ink); font-weight: 600; }
.segmented a:hover { color: var(--ink); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs span { height: 44px; padding: 0 16px; color: var(--ink); font: 600 14px/44px var(--font-sans); box-shadow: inset 0 -2px 0 var(--brand); white-space: nowrap; }

/* Tables */
.rem-table-wrap { background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: auto; }
.rem-table { width: 100%; border-collapse: collapse; font: 400 14px/20px var(--font-sans); }
.rem-table th { background: var(--surface-200); text-align: left; font: 600 11px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding: 10px var(--space-3); white-space: nowrap; }
.rem-table td { padding: var(--space-3); border-top: 1px solid var(--line); color: var(--ink); white-space: nowrap; vertical-align: middle; }
.rem-table tr:hover td { background: var(--surface-300); }
.rem-table tr:hover td .faint { color: var(--ink-muted); }
.rem-table .rem-num { text-align: right; font-variant-numeric: tabular-nums; }
.rem-table .rem-num-mal { color: var(--verdict-malicious); font-weight: 600; }
.rem-table .rem-num-cheat { color: var(--verdict-cheat); font-weight: 600; }
.rem-table .rem-zero { color: var(--ink-faint); font-weight: 400; }
.rem-table a { color: var(--ink); text-decoration: none; }
.rem-table a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rem-table .wrap { white-space: normal; min-width: 200px; }
.rem-user { display: flex; align-items: center; gap: var(--space-2); }
.rem-user-id { font: 400 12px/16px var(--font-mono); color: var(--ink-faint); }
.rem-bar { display: flex; gap: 2px; width: 160px; height: 8px; }
.rem-bar span, .compo span { border-radius: 2px; min-width: 2px; }
.b-clean { background: var(--verdict-clean); }
.b-suspicious { background: var(--verdict-suspicious); }
.b-cheat { background: var(--verdict-cheat); }
.b-malicious { background: var(--verdict-malicious); }
.b-other { background: var(--surface-300); }
.compo { display: flex; gap: 2px; height: 16px; }
.legend { display: flex; gap: var(--space-6); flex-wrap: wrap; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend b { color: var(--ink); font-weight: 600; }

/* Mod page */
.cover-lg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); display: block; background: var(--surface-200); }
.cover-lg.flag { border-color: var(--verdict-malicious); }
.conclusion { font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.findings { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.finding { display: grid; grid-template-columns: 136px 240px minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.finding .file { font: 400 13px/24px var(--font-mono); color: var(--ink-muted); overflow-wrap: anywhere; }
.finding .text { font-size: 14px; line-height: 24px; overflow-wrap: anywhere; }
.workshop-desc { font-size: 15px; line-height: 22px; color: var(--ink-muted); white-space: pre-line; overflow-wrap: anywhere; max-height: 480px; overflow: auto; }
.meta { margin: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); row-gap: 10px; column-gap: var(--space-3); font-size: 14px; line-height: 20px; }
.meta dt { color: var(--ink-muted); }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.meta a { color: var(--ink); }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--line); min-width: 0; }
.list-row > div { display: flex; flex-direction: column; min-width: 0; }
.list-row a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.list-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.small { font-size: 13px; line-height: 18px; }

/* Comments */
.rem-comment { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.rem-comment-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rem-comment-meta { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.rem-comment-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.rem-comment-meta a.plain { font-weight: 400; }
.rem-comment-text { font: 400 15px/22px var(--font-sans); color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.comment-form { display: flex; flex-direction: column; gap: var(--space-2); padding-bottom: var(--space-2); }

/* Charts */
.chart { position: relative; height: 224px; display: flex; align-items: flex-end; gap: 12px; padding-left: 36px; border-bottom: 1px solid var(--border); }
.chart .bar { position: relative; flex: 1 1 0; display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 4px 4px 0 0; overflow: hidden; min-width: 4px; }
.chart .bar:hover { filter: brightness(1.15); }
.chart .solo { background: var(--brand); }
.chart .grid-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.chart .grid-line span { position: absolute; left: 0; top: -9px; font: 400 11px/16px var(--font-mono); color: var(--ink-faint); background: var(--surface-100); padding-right: 4px; }
.chart-labels { display: flex; gap: 12px; padding-left: 36px; margin-top: -4px; }
.chart-labels span { flex: 1 1 0; text-align: center; font-size: 12px; line-height: 16px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; }
.rank { display: grid; grid-template-columns: 28px minmax(0, 1fr) 150px 200px 56px; gap: var(--space-4); align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.rank a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.rank .track { height: 8px; background: var(--surface-300); border-radius: 4px; overflow: hidden; }
.rank .track div { height: 8px; background: var(--ink-muted); border-radius: 4px; }

/* Profile */
.profile { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.profile-main { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 240px; }
.profile-title { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.profile-meta { display: flex; gap: var(--space-4); flex-wrap: wrap; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.profile-meta a { color: var(--ink); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--radius-sm); font: 600 11px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; }
.tag-bad { background: var(--verdict-malicious-bg); color: var(--verdict-malicious); }
.tag-admin { background: var(--surface-300); color: var(--brand); }

/* Invite gate */
.gate-page { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-6); padding: var(--space-8) 16px; overflow: hidden; }
.gate-radar { position: absolute; right: -240px; bottom: -240px; width: 720px; height: 720px; pointer-events: none; }
.gate-radar circle { fill: none; stroke: var(--line); stroke-width: 2; }
.gate-radar line { stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.gate-radar .blip { fill: var(--brand); stroke: none; }
.rem-gate { position: relative; width: 400px; max-width: 100%; background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.rem-gate-mark { margin: 0; font: 700 20px/24px var(--font-display); color: var(--brand); letter-spacing: -.01em; }
.rem-gate-title { font: 600 18px/24px var(--font-sans); }
.rem-gate-text { color: var(--ink-muted); font: 400 14px/20px var(--font-sans); }
.rem-gate .rem-btn { width: 100%; }
.rem-gate-alt { text-align: center; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.rem-gate-alt a { color: var(--ink); }

@media (max-width: 1200px) {
  .rem-header { flex-wrap: wrap; row-gap: 0; padding-top: var(--space-2); }
  .rem-nav { order: 3; flex-basis: 100%; }
  .split { grid-template-columns: minmax(0, 1fr) 340px; }
  .finding { grid-template-columns: 120px minmax(0, 1fr); }
  .finding .text { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .page { padding: var(--space-6) var(--space-4) var(--space-8); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .halves { grid-template-columns: minmax(0, 1fr); }
  .rank { grid-template-columns: 24px minmax(0, 1fr) auto 48px; }
  .rank .track { display: none; }
  .rem-header { gap: var(--space-3); padding: 0 var(--space-4); }
  .rem-header-user .name { display: none; }
  .gate-radar { width: 480px; height: 480px; right: -180px; bottom: -180px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .h1 { font-size: 24px; line-height: 30px; }
  .rem-stat-value { font-size: 26px; line-height: 30px; }
  .search, .search label, .search .rem-input { width: 100%; }
  .search .rem-select { flex: 1; }
  .meta { grid-template-columns: 120px minmax(0, 1fr); }
  .chart, .chart-labels { gap: 4px; }
}
