/* Rust.camp Admin: the only stylesheet of the admin SPA (web/admin). Colour system "Monochrome Signal (Royal Blue)", brand/BRAND.md 11:
   every colour comes from /css/tokens.css (loaded first), the top bar is the site navbar (/css/nav.css). Same cards, tables, buttons,
   chips and dialogs as the stats pages; no glow, no kicker, no endless animation. CSP: no inline styles, dynamic sizes via CSSOM only. */
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/roboto-condensed-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: optional; src: url("/fonts/inter-latin.woff2") format("woff2"); }

:root {
  --bg: var(--rc-bg); --bg-2: var(--rc-bg-2); --bg-3: var(--rc-bg-3); --raised: var(--rc-surface-raised);
  --ink: var(--rc-ink); --ink-2: var(--rc-ink-2); --ink-3: var(--rc-ink-3);
  --line: var(--rc-line); --line-2: var(--rc-line-2); --glass: var(--rc-glass); --glass-2: var(--rc-glass-2);
  --ok: var(--rc-ok); --warn: var(--rc-warn); --danger: var(--rc-danger); --danger-text: var(--rc-danger-text); --info: var(--rc-info);
  --ok-soft: color-mix(in srgb, var(--rc-ok) 12%, transparent); --warn-soft: color-mix(in srgb, var(--rc-warn) 12%, transparent);
  --danger-soft: color-mix(in srgb, var(--rc-danger) 12%, transparent); --info-soft: color-mix(in srgb, var(--rc-info) 12%, transparent);
  --radius: var(--rc-radius); --radius-sm: var(--rc-radius-sm);
  --font: var(--rc-font-text); --font-cond: var(--rc-font-display); --mono: var(--rc-font-mono);
  --s1: var(--rc-mode-cargo); --s2: var(--rc-mode-oilrig); --s3: var(--rc-mode-deathmatch); --s4: var(--rc-mode-duel);
  --nav-h: 64px; --abar-h: 48px; --wrap: min(100% - 32px, 1280px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--abar-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
body.has-modal { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3 { margin: 0; font-family: var(--font-cond); font-weight: 800; letter-spacing: .01em; line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
dd { text-wrap: pretty; }
small { font-size: 13px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
::selection { background: var(--rc-signal-soft); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--rc-scrollbar); border-radius: 10px; border: 2px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-color: var(--rc-scrollbar) transparent; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.wrap-text { overflow-wrap: anywhere; white-space: normal; }
.txt-ok { color: var(--ok); } .txt-danger { color: var(--danger-text); } .txt-warn { color: var(--warn); }
.ta-r { text-align: right; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--rc-signal); color: var(--rc-signal-ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--rc-signal-mark); outline-offset: 2px; border-radius: 6px; }
.ico { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.noscript { width: var(--wrap); margin: 40px auto; color: var(--ink-2); }
/* facts in one line, separated by a hairline; the separator that lands at the start of a wrapped line is clipped away */
.parts { display: inline-flex; flex-wrap: wrap; align-items: baseline; row-gap: 2px; margin-left: -11px; clip-path: inset(0 0 0 11px); vertical-align: baseline; }
.parts__i { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-left: 1px solid var(--line-2); line-height: 1.25; }

/* ---------- admin section bar (under the site navbar, like the stats section row) ---------- */
.abar { position: sticky; top: var(--nav-h); z-index: 50; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.abar__in { display: flex; align-items: center; gap: 16px; width: var(--wrap); margin-inline: auto; min-height: var(--abar-h); }
.abar--skel .abar__in { height: var(--abar-h); }
.abar__links { position: relative; display: flex; align-items: stretch; gap: 22px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; align-self: stretch; }
.abar__links::-webkit-scrollbar { display: none; }
.abar__link { position: relative; display: inline-flex; align-items: center; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .15s; }
.abar__link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--rc-signal-mark); transition: right .2s var(--ease); }
.abar__link:hover { color: var(--ink); }
.abar__link:hover::after, .abar__link[aria-current="page"]::after { right: 0; }
.abar__link[aria-current="page"] { color: var(--ink); }
.abar__link:focus-visible { outline-offset: -2px; }
.abar__tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.abar__tool { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raised); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: border-color .15s, color .15s; }
.abar__tool:hover { border-color: var(--rc-signal-mark); color: var(--ink); }
.abar__tool--icon { width: 36px; padding: 0; justify-content: center; }
.abar__tool .ico { width: 16px; height: 16px; }
kbd { font-size: 11px; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; color: var(--ink-3); background: var(--bg); }
.badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rc-signal); color: var(--rc-signal-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* live status pill */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raised); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink-2); transition: border-color .2s, background .2s, color .2s; }
.pill:hover { border-color: var(--rc-signal-mark); }
.pill__age { font-weight: 500; color: var(--ink-3); }
.pill--ok { color: var(--ok); border-color: color-mix(in srgb, var(--rc-ok) 35%, transparent); background: var(--ok-soft); }
.pill--warn { color: var(--warn); border-color: color-mix(in srgb, var(--rc-warn) 40%, transparent); background: var(--warn-soft); }
.pill--danger { color: var(--danger-text); border-color: color-mix(in srgb, var(--rc-danger) 45%, transparent); background: var(--danger-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.dot--neutral { background: var(--ink-3); }

/* ---------- page ---------- */
.app--shell, .app--boot { min-height: calc(100vh - var(--nav-h)); }
.page { width: var(--wrap); margin-inline: auto; padding: 28px 0 96px; outline: none; }
.page.is-in { animation: rise .26s var(--ease) both; }
@keyframes rise { from { opacity: .4; transform: translateY(6px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); }
.page-head__text { min-width: 0; }
.page-head__sub { color: var(--ink-2); margin-top: 8px; max-width: 72ch; overflow-wrap: anywhere; text-wrap: pretty; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.backlink { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--ink-3); font-size: 14px; margin-bottom: 10px; transition: color .15s; }
.backlink:hover { color: var(--ink); }
.section-title { font-size: 22px; margin: 32px 0 14px; }
.section-title--sm { font-size: 16px; margin: 12px 0 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 32px 0 14px; }
.section-head .section-title { margin: 0; }
.section-head > .toolbar { min-width: 0; max-width: 100%; }
.hint { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 14px; margin: -8px 0 16px; }
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.grid--dash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--dossier { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--server { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: 1 / -1; }
.stack { display: grid; gap: 16px; }

/* ---------- cards ---------- */
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card__head { display: flex; align-items: center; gap: 8px 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.card__title { font-size: 18px; font-weight: 700; letter-spacing: .02em; display: flex; align-items: baseline; gap: 8px; }
.card__sub { color: var(--ink-3); font-size: 13px; }
.card__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.card__actions > * { min-width: 0; max-width: 100%; }
.card__body { padding: 16px 20px 20px; }
.card__body--flush { padding: 12px 0 0; }
.card--table { overflow: hidden; }
.card--table > .card__head + .card__body--flush, .card--table .tbl-wrap { border-top: 0; }
.banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid; margin-bottom: 16px; overflow-wrap: anywhere; }
.banner .ico { margin-top: 2px; }
.banner--danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--rc-danger) 40%, transparent); } .banner--danger .ico { color: var(--danger-text); }
.banner--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--rc-warn) 35%, transparent); } .banner--warn .ico { color: var(--warn); }
.banner--info { background: var(--glass); border-color: var(--line-2); } .banner--info .ico { color: var(--rc-signal-text); }
.banner__list { margin: 6px 0 0; padding-left: 18px; list-style: disc; color: var(--ink-2); }
.banner-slot:empty { display: none; }
.kv { display: grid; margin: 0; }
.kv__row { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv__row:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.code { margin: 0; padding: 12px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; overflow: auto; max-height: 360px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.quote { margin: 0; padding: 10px 14px; border-left: 2px solid var(--rc-signal-mark); background: var(--glass); border-radius: 0 10px 10px 0; overflow-wrap: anywhere; }
.detail summary { cursor: pointer; color: var(--ink-2); font-size: 13px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 24px; }
.detail summary:hover { color: var(--ink); }
.detail[open] .code { margin-top: 8px; min-width: 260px; }
.more { display: flex; justify-content: center; padding: 16px; }
.more:empty { display: none; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--line); gap: 10px; flex-wrap: wrap; font-size: 14px; }
.pager:empty { display: none; }
.pager__btns { display: flex; gap: 8px; }

/* ---------- KPI strip (one card, hairline separators) ---------- */
.card--kpis { margin-bottom: 16px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: grid; gap: 2px; padding: 16px 20px; min-width: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); align-content: start; }
.kpi:nth-child(4n + 1) { border-left: 0; }
.kpi:nth-child(-n + 4) { border-top: 0; }
.kpi--skel { padding: 16px 20px; }
.kpi__label { color: var(--ink-3); font-size: 13px; }
.kpi__value { font-family: var(--font-cond); font-weight: 800; font-size: 30px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi__value small { font-size: 16px; color: var(--ink-3); font-weight: 600; }
.kpi__sub { font-size: 13px; color: var(--ink-3); min-width: 0; overflow: hidden; }
.kpi--link { padding: 0; transition: background .15s; }
.kpi--link:hover { background: var(--glass); }
.kpi__a { display: grid; gap: 2px; padding: 16px 20px; min-height: 100%; }
.kpi__a:focus-visible { outline-offset: -2px; }
.kpi--danger .kpi__value { color: var(--danger-text); } .kpi--warn .kpi__value { color: var(--warn); }
.kpis > .state { grid-column: 1 / -1; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raised); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s var(--ease), opacity .15s; text-decoration: none; }
.btn:hover:not(:disabled) { border-color: var(--rc-signal-mark); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: none; background: var(--bg-2); }
.btn:disabled { background: var(--rc-disabled); color: var(--ink-3); border-color: transparent; }
.btn--primary { background: var(--rc-signal); border-color: transparent; color: var(--rc-signal-ink); box-shadow: var(--rc-shadow-1); }
.btn--primary:hover:not(:disabled) { background: var(--rc-signal-hover); border-color: transparent; }
.btn--primary:active:not(:disabled) { background: var(--rc-signal-press); }
.btn--danger { background: var(--rc-danger); border-color: transparent; color: var(--rc-black); }
.btn--danger:hover:not(:disabled) { border-color: transparent; background: color-mix(in srgb, var(--rc-danger) 88%, var(--rc-white)); }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 32px; padding: 0 14px; font-size: 13px; }
.btn--xs { min-height: 28px; min-width: 28px; padding: 0 10px; font-size: 12px; gap: 5px; }
.btn--xs .ico { width: 14px; height: 14px; }
.btn--icon { padding: 0; width: 40px; } .btn--sm.btn--icon { width: 32px; } .btn--xs.btn--icon { width: 28px; }
.btn--block { width: 100%; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--ink-3); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner--sm { width: 12px; height: 12px; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink-2); transition: background .15s, color .15s, border-color .15s; flex: 0 0 auto; }
.iconbtn:hover:not(:disabled) { background: var(--glass-2); color: var(--ink); border-color: var(--line-2); }
.iconbtn:disabled { opacity: .4; }
.iconbtn--xs { width: 28px; height: 28px; }
.iconbtn--xs .ico { width: 14px; height: 14px; }
.iconbtn--danger:hover:not(:disabled) { color: var(--danger-text); background: var(--danger-soft); border-color: color-mix(in srgb, var(--rc-danger) 35%, transparent); }
.linkbtn { background: none; border: 0; padding: 2px 0; min-height: 24px; color: var(--ink); text-align: left; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.linkbtn:hover { text-decoration-color: var(--rc-signal-mark); }
.link { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; color: var(--rc-signal-text); font-size: 14px; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link .ico { width: 15px; height: 15px; }
.plink { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.plink:hover { color: var(--rc-signal-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; color: var(--ink-2); border: 1px solid var(--line); background: var(--glass); vertical-align: middle; }
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--ok { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--rc-ok) 30%, transparent); }
.chip--danger { color: var(--danger-text); background: var(--danger-soft); border-color: color-mix(in srgb, var(--rc-danger) 30%, transparent); }
.chip--warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--rc-warn) 30%, transparent); }
.chip--info { color: var(--rc-signal-text); background: var(--info-soft); border-color: color-mix(in srgb, var(--rc-info) 28%, transparent); }
.chip--accent { color: var(--rc-signal-text); background: var(--rc-signal-soft); border-color: var(--rc-signal-line); }
.chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }

/* ---------- inputs ---------- */
.input { width: 100%; min-height: 40px; padding: 0 12px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--ink); transition: border-color .15s; }
.input::placeholder { color: var(--ink-3); }
.input:hover:not(:disabled) { border-color: color-mix(in srgb, var(--rc-white) 26%, transparent); }
.input:focus { border-color: var(--rc-signal-mark); outline: 2px solid var(--rc-signal-mark); outline-offset: 0; }
.input:disabled { opacity: .6; cursor: not-allowed; }
textarea.input { padding: 10px 12px; resize: vertical; line-height: 1.45; }
select.input { padding-right: 34px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { background: var(--raised); }
.input--sm { min-height: 32px; font-size: 13px; padding: 0 10px; width: 96px; }
select.input--sm { width: auto; min-width: 120px; padding-right: 30px; }
.input--md { width: 150px; min-height: 36px; font-size: 13px; padding: 0 10px; }
select.input--md { width: 170px; }
.input--lg { min-height: 48px; font-size: 16px; }
.input--mono { font-family: var(--mono); font-size: 13px; }
.input.is-invalid { border-color: var(--danger); }
input[type="search"]::-webkit-search-cancel-button { filter: invert(.7); }
input[type="number"] { -moz-appearance: textfield; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 32px; color: var(--ink-2); cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: var(--rc-signal); margin: 0; }
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset legend { padding: 0; margin-bottom: 4px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: baseline; gap: 4px; }
.req { color: var(--rc-signal-text); }
.field__count { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.field__hint { font-size: 13px; color: var(--ink-3); }
.field__err, .form__err { font-size: 13px; color: var(--danger-text); }
.field__err:empty, .form__err:empty { display: none; }
.form__preview:empty { display: none; }
.form__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.form__actions--start { justify-content: flex-start; margin-top: 16px; }
.preview { padding: 10px 12px; border-radius: 10px; background: var(--glass); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 200px; width: auto; }
.flabel { display: grid; gap: 4px; font-size: 13px; color: var(--ink-3); font-weight: 600; min-width: 150px; flex: 1 1 150px; }
.dur { display: grid; gap: 8px; }
.dur__free { display: flex; gap: 8px; }
.dur__free .input--sm { width: 110px; }

/* ---------- modal + bottom sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--rc-black) 66%, transparent); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .16s; overflow-y: auto; }
.modal.is-in { opacity: 1; }
.modal__panel { width: 100%; background: var(--raised); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--rc-shadow); display: flex; flex-direction: column; max-height: calc(100vh - 40px); transform: translateY(8px) scale(.985); transition: transform .2s var(--ease); outline: none; }
.modal.is-in .modal__panel { transform: none; }
.modal__panel--sm { max-width: 480px; } .modal__panel--md { max-width: 640px; } .modal__panel--lg { max-width: 940px; }
.modal__panel--danger { border-top: 2px solid var(--danger); }
.modal__panel--search { align-self: start; margin-top: 8vh; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; position: relative; }
.modal__grip { display: none; }
.modal__title { font-size: 22px; }
.modal__body { padding: 4px 20px 18px; overflow-y: auto; display: grid; gap: 14px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.modal__msg { color: var(--ink-2); text-wrap: pretty; }
.modal__target { padding: 10px 12px; background: var(--glass); border-radius: 10px; overflow-wrap: anywhere; }
.modal__target code { color: var(--ink-3); font-size: 12px; }
.sheet__list { display: grid; gap: 4px; }
.sheet__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font-weight: 600; text-align: left; transition: background .15s, border-color .15s; }
.sheet__item:hover { border-color: var(--rc-signal-mark); }
.sheet__item--danger { color: var(--danger-text); }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: grid; gap: 8px; width: min(400px, calc(100vw - 36px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line-2); box-shadow: var(--rc-shadow); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease); }
.toast.is-in { opacity: 1; transform: none; } .toast.is-out { opacity: 0; transform: translateX(16px); }
.toast__ico { margin-top: 1px; color: var(--rc-signal-text); }
.toast--ok .toast__ico { color: var(--ok); } .toast--danger .toast__ico { color: var(--danger-text); } .toast--warn .toast__ico { color: var(--warn); }
.toast--danger { border-color: color-mix(in srgb, var(--rc-danger) 40%, transparent); }
.toast__text { flex: 1; display: grid; gap: 2px; font-size: 14px; overflow-wrap: anywhere; }
.toast__text strong { font-size: 14px; }
.toast__close { display: grid; place-items: center; width: 28px; height: 28px; background: none; border: 0; color: var(--ink-3); border-radius: 999px; }
.toast__close:hover { color: var(--ink); background: var(--glass-2); }
.toast__close .ico { width: 16px; height: 16px; }
.toast__action { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; font-size: 12px; min-height: 28px; }

/* ---------- drawer (my commands) ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--raised); border-left: 1px solid var(--line-2); box-shadow: var(--rc-shadow); z-index: 80; display: flex; flex-direction: column; transform: translateX(16px); opacity: 0; transition: transform .2s var(--ease), opacity .2s; }
.drawer.is-open { transform: none; opacity: 1; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 20px; }
.drawer__empty { padding: 24px 18px; }
.actlist { overflow-y: auto; padding: 10px; display: grid; gap: 8px; align-content: start; }
.actlist__item { padding: 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
.actlist__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.actlist__label { font-weight: 600; overflow-wrap: anywhere; }
.actlist__meta { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.actlist__err { margin-top: 6px; color: var(--danger-text); font-size: 13px; overflow-wrap: anywhere; }
.actlist__res summary { cursor: pointer; font-size: 13px; color: var(--ink-3); margin-top: 6px; min-height: 24px; }

/* ---------- states / skeletons (static, no shimmer) ---------- */
.state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 44px 20px; color: var(--ink-2); }
.state--compact { padding: 24px 14px; }
.state__ico { width: 34px; height: 34px; color: var(--ink-3); stroke-width: 1.5; }
.state--compact .state__ico { width: 24px; height: 24px; }
.state__title { font-weight: 700; color: var(--ink); font-size: 16px; font-family: var(--font); letter-spacing: 0; line-height: 1.4; }
.state__body { color: var(--ink-3); max-width: 46ch; font-size: 14px; overflow-wrap: anywhere; }
.state--error .state__ico { color: var(--danger-text); }
.state .btn { margin-top: 6px; }
.skel-wrap { display: grid; gap: 10px; }
.skel-wrap--block, .skel-wrap--tile { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.loading { padding: 16px 20px; }
.skel { border-radius: var(--radius-sm); background: var(--glass-2); }
.skel--row { height: 36px; } .skel--tile { height: 84px; } .skel--block { height: 128px; } .skel--chart { height: 200px; } .skel--kpi { height: 64px; }
.skel--title { height: 40px; width: min(360px, 70%); margin-bottom: 22px; }

/* ---------- tables (scroll inside the card) ---------- */
.tbl-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-wrap:focus-visible { outline-offset: -2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; } .tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl th.ta-r { text-align: right; }
.tbl th.ta-r .th-sort { flex-direction: row-reverse; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--glass); }
.tbl tr.is-click { cursor: pointer; }
.tbl tr.is-muted td { opacity: .6; }
.tbl__empty td { padding: 0 !important; }
.tbl__empty:hover { background: none !important; }
.th-sort { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; background: none; border: 0; padding: 2px 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.th-sort:hover, .th-sort.is-active { color: var(--ink); }
.th-sort__ico { width: 13px; height: 13px; opacity: .5; }
.th-sort.is-active .th-sort__ico { opacity: 1; color: var(--rc-signal-text); }
.tbl-foot, .tbl-head { padding: 12px 20px; font-size: 13px; border-top: 1px solid var(--line); }
.tbl-head { border-top: 0; border-bottom: 1px solid var(--line); }
.tbl--edit td { padding: 8px 10px; vertical-align: top; }
.tbl--edit th { padding: 10px; }
.tbl--edit .input--sm { width: 82px; }
.tbl--edit select.input--sm { width: auto; min-width: 120px; }
.tbl--edit .input--md { width: 128px; }
.tbl--edit select.input--md { width: 156px; }
.tbl--edit tr.is-new { animation: flash 1.6s var(--ease); }
@keyframes flash { from { background: var(--rc-signal-soft); } }
.col-act { width: 1%; }
.toolbar { display: flex; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.toolbar--inline { border: 0; padding: 0; }
.toolbar > * { min-width: 0; max-width: 100%; }
.toolbar--filters { align-items: flex-end; }
.toolbar__search { position: relative; flex: 0 1 340px; min-width: 200px; }
.toolbar__search--wide { flex-basis: 540px; }
.toolbar__search--sm { flex-basis: 220px; min-width: 160px; }
.toolbar__search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; width: 16px; height: 16px; }
.toolbar__search .input { padding-left: 36px; }
.toolbar__search--sm .input { min-height: 32px; font-size: 13px; }

/* ---------- segmented / tabs ---------- */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg--wrap { flex-wrap: wrap; border-radius: 18px; }
.seg__opt { min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-weight: 600; font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, color .15s; }
.seg__opt:hover { color: var(--ink); }
.seg__opt[aria-checked="true"] { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg__opt--danger[aria-checked="true"] { background: var(--danger-soft); color: var(--danger-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc-danger) 40%, transparent); }
.seg__count { font-size: 11px; color: var(--ink-3); }
.tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs__tab { position: relative; min-height: 44px; padding: 0 14px; background: none; border: 0; color: var(--ink-3); font-weight: 600; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; transition: color .15s; }
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { color: var(--ink); }
.tabs__tab::after { content: ""; position: absolute; left: 12px; right: 100%; bottom: -1px; height: 2px; background: var(--rc-signal-mark); transition: right .2s var(--ease); }
.tabs__tab[aria-selected="true"]::after { right: 12px; }
.tabs__tab:focus-visible { outline-offset: -2px; }
.tabs__count { font-size: 11px; padding: 0 7px; border-radius: 999px; background: var(--glass-2); color: var(--ink-2); }
[role="tabpanel"].is-in { animation: rise .2s var(--ease) both; }

/* ---------- switch (on = royal blue, the active state) ---------- */
.switch { display: inline-flex; align-items: center; min-width: 44px; min-height: 32px; padding: 0; background: none; border: 0; flex: 0 0 auto; }
.switch__track { position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--rc-disabled); border: 1px solid var(--line-2); transition: background .18s, border-color .18s; }
.switch__thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-2); box-shadow: var(--rc-shadow-1); transition: transform .2s var(--ease), background .18s; }
.switch[aria-checked="true"] .switch__track { background: var(--rc-signal); border-color: transparent; }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(20px); background: var(--rc-white); }
.switch:disabled:not(.is-pending) { opacity: .45; }
.switch.is-pending .switch__track { background: var(--rc-signal-soft); border-color: var(--rc-signal-line); }
.switch.is-pending .switch__thumb { background: var(--rc-signal-text); }
.switch:hover:not(:disabled) .switch__track { border-color: var(--rc-signal-mark); }
.switch--sm { min-width: 36px; }
.switch--sm .switch__track { width: 36px; height: 20px; }
.switch--sm .switch__thumb { width: 14px; height: 14px; }
.switch--sm[aria-checked="true"] .switch__thumb { transform: translateX(16px); }
.switch-label { font-size: 13px; color: var(--ink-3); font-weight: 600; }

/* ---------- players ---------- */
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--raised); color: var(--ink-2); font-weight: 800; font-size: 13px; overflow: hidden; flex: 0 0 auto; border: 1px solid var(--line-2); font-family: var(--font-cond); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar--sm { width: 30px; height: 30px; font-size: 11px; }
.avatar--xl { width: 84px; height: 84px; font-size: 28px; border-radius: 18px; }
.sid { display: inline-flex; align-items: center; gap: 4px; }
.sid__code { font-size: 12.5px; color: var(--ink-3); }
.pcell { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pcell--stack { display: grid; gap: 2px; justify-items: start; }
.rowactions { display: flex; gap: 2px; justify-content: flex-end; align-items: center; }
.rowactions__inline { display: flex; gap: 2px; }
.rowactions__more { display: none; }
.pstate { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; }
.pstate__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: 0 0 auto; }
.pstate--arena .pstate__dot { background: var(--ok); } .pstate--room .pstate__dot { background: var(--warn); } .pstate--lobby .pstate__dot { background: var(--rc-signal-mark); }
.elo { font-weight: 700; font-variant-numeric: tabular-nums; }
/* tier = name in ink + a calm colour marker with its own shape (BRAND.md 11) */
.tier { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink); }
.tier::before { content: ""; width: 9px; height: 9px; background: var(--rc-tier-unranked); clip-path: var(--rc-shape-ring); flex: 0 0 auto; }
.t-bronze.tier::before { background: var(--rc-tier-bronze); clip-path: var(--rc-shape-circle); }
.t-silver.tier::before { background: var(--rc-tier-silver); clip-path: var(--rc-shape-square); }
.t-gold.tier::before { background: var(--rc-tier-gold); clip-path: var(--rc-shape-diamond); }
.t-platinum.tier::before { background: var(--rc-tier-platinum); clip-path: var(--rc-shape-hexagon); }
.t-diamond.tier::before { background: var(--rc-tier-diamond); clip-path: var(--rc-shape-triangle); }
.t-elite.tier::before { background: var(--rc-tier-elite); clip-path: var(--rc-shape-shield); }
.t-legend.tier::before { background: var(--rc-tier-legend); clip-path: var(--rc-shape-star); }
.rank { color: var(--ink-3); font-weight: 700; font-family: var(--font-cond); font-size: 15px; }
.rank--top { color: var(--ink); }
/* mode marker: colour + shape from the tokens */
.mode-dot { display: inline-flex; align-items: center; gap: 8px; }
.mode-dot::before { content: ""; width: 9px; height: 9px; background: var(--ink-3); flex: 0 0 auto; }
.mode--cargo.mode-dot::before { background: var(--s1); clip-path: var(--rc-shape-circle); } .mode--oilrig.mode-dot::before { background: var(--s2); clip-path: var(--rc-shape-square); }
.mode--deathmatch.mode-dot::before { background: var(--s3); clip-path: var(--rc-shape-diamond); } .mode--duel.mode-dot::before { background: var(--s4); clip-path: var(--rc-shape-triangle); }

/* ---------- dashboard ---------- */
.rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 24px; }
.round { padding: 12px 0 4px; border-top: 2px solid var(--line-2); display: grid; gap: 10px; align-content: start; }
.round.mode--cargo { border-top-color: color-mix(in srgb, var(--s1) 60%, transparent); } .round.mode--oilrig { border-top-color: color-mix(in srgb, var(--s2) 60%, transparent); }
.round.mode--deathmatch { border-top-color: color-mix(in srgb, var(--s3) 60%, transparent); } .round.mode--duel { border-top-color: color-mix(in srgb, var(--s4) 60%, transparent); }
.round__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.round__mode { font-weight: 700; margin-right: 2px; }
.round__clock { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 700; font-size: 15px; }
.round__clock .ico { width: 15px; height: 15px; color: var(--ink-3); }
.round__rem.is-low { color: var(--warn); }
.round__players { display: grid; gap: 2px; font-size: 14px; }
.round__players li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.round__players li:last-child { border-bottom: 0; }
.round__score { font-weight: 700; }
.round__foot { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modelist { display: grid; }
.moderow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.moderow:last-child { border-bottom: 0; }
.moderow.is-off .moderow__title { color: var(--ink-3); }
.moderow__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.moderow__title { font-weight: 700; }
.moderow__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.arenasum { display: grid; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.arenasum:empty { display: none; }
.arenasum__row { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; transition: border-color .15s, background .15s; }
.arenasum__row:hover { border-color: var(--rc-signal-mark); background: var(--glass); }
.arenasum__row > .ico { margin-left: auto; color: var(--ink-3); }
.chart-sum { display: flex; gap: 18px; color: var(--ink-3); font-size: 14px; margin-bottom: 6px; }
.chart-sum strong { color: var(--ink); font-size: 17px; }
.minicounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--line); }
.minicounts:empty { display: none; }
.minicount { padding: 12px 12px 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.minicount:first-child { border-left: 0; padding-left: 0; }
.minicount__v { font-family: var(--font-cond); font-weight: 800; font-size: 22px; }
.minicount__k { font-size: 12px; color: var(--ink-3); }
.plist { display: grid; }
.plist__item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plist__item .plink { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist__item .pstate { font-size: 13px; color: var(--ink-2); max-width: 180px; overflow: hidden; }
.plist__ping { font-size: 13px; min-width: 48px; text-align: right; }
.plist__more { padding-top: 8px; }
.feed { display: grid; }
.feed__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed__item:last-child { border-bottom: 0; }
.feed__res { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.feed__res--error, .feed__res--timeout, .feed__res--expired { background: var(--danger); } .feed__res--denied, .feed__res--pending { background: var(--warn); border-radius: 1px; transform: rotate(45deg); }
.feed__text { overflow-wrap: anywhere; }
.feed__time { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* ---------- charts ---------- */
.chart { position: relative; }
.chart__plot { width: 100%; min-height: 120px; }
.chart__svg { display: block; overflow: visible; }
.chart__grid line { stroke: var(--line); stroke-width: 1; }
.chart__lbl { fill: var(--ink-3); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke: var(--s1); }
.chart__area { stroke: none; opacity: .14; fill: var(--s1); }
.chart__dot { stroke: var(--bg); stroke-width: 1.5; }
.chart__cross { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart__mark { stroke: var(--bg); stroke-width: 2; }
.chart__hit { fill: transparent; cursor: crosshair; }
.chart__line.s1, .spark__line.s1 { stroke: var(--s1); } .chart__line.s2 { stroke: var(--s2); } .chart__line.s3 { stroke: var(--s3); } .chart__line.s4 { stroke: var(--s4); }
.chart__area.s1, .spark__area.s1 { fill: var(--s1); } .chart__area.s2 { fill: var(--s2); } .chart__area.s3 { fill: var(--s3); } .chart__area.s4 { fill: var(--s4); }
.chart__dot.s1, .chart__mark.s1 { fill: var(--s1); } .chart__dot.s2, .chart__mark.s2 { fill: var(--s2); } .chart__dot.s3, .chart__mark.s3 { fill: var(--s3); } .chart__dot.s4, .chart__mark.s4 { fill: var(--s4); }
.chart__empty { padding: 30px; text-align: center; }
.chart__tip { position: absolute; z-index: 5; pointer-events: none; background: var(--raised); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 13px; box-shadow: var(--rc-shadow-1); min-width: 140px; }
.chart__tip-t { color: var(--ink-3); margin-bottom: 4px; }
.chart__tip-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.chart__tip-row span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.chart__tip-note { flex-basis: 100%; color: var(--ink-3); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__key { display: inline-block; width: 12px; height: 3px; border-radius: 2px; background: var(--s1); }
.legend__key.s2 { background: var(--s2); } .legend__key.s3 { background: var(--s3); } .legend__key.s4 { background: var(--s4); }

/* ---------- modes & arenas ---------- */
.modegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.modecard2 { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; align-content: start; transition: border-color .2s, background .2s; }
.modecard2.is-off { background: transparent; border-style: dashed; }
.modecard2.is-off h3 { color: var(--ink-3); }
.modecard2__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.modecard2__head h3 { font-size: 20px; margin-bottom: 4px; }
.modecard2__switch { display: flex; align-items: center; gap: 8px; }
.modecard2__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.modecard2__chips:empty { display: none; }
.modecard2__rounds { display: grid; gap: 8px; }
.mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.mstats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mstat { display: grid; gap: 1px; padding: 10px 10px 0; margin: 0; border-left: 1px solid var(--line); }
.mstat:first-child { border-left: 0; padding-left: 0; }
.mstats:not(.mstats--4) .mstat { border-left: 0; padding-left: 0; }
.mstat__v { font-family: var(--font-cond); font-weight: 800; font-size: 20px; margin: 0; overflow-wrap: anywhere; display: block; }
.mstat__k { font-size: 12px; color: var(--ink-3); text-transform: capitalize; display: block; }
.mstat dd, .mstat dt { margin: 0; }
.mstat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.arenagrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 20px; }
.arena { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.arena.is-busy { border-top-color: color-mix(in srgb, var(--rc-warn) 50%, transparent); }
.arena.is-bad { border-top-color: var(--danger); }
.arena.is-off { border-top-style: dashed; }
.arena.is-off .arena__id, .arena.is-off .arena__name { color: var(--ink-3); }
.arena__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.arena__id { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.arena__name { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arena__chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- player file ---------- */
.dossier { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.dossier__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px; }
.dossier__id { display: grid; gap: 8px; min-width: 0; }
.dossier__name { font-size: clamp(26px, 3.4vw, 36px); overflow-wrap: anywhere; }
.dossier__line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.dossier__status { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.dossier__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dossier__more { display: none; }
.dossier__panel { display: grid; gap: 16px; }
.dossier .tabs { margin-bottom: 0; }
.modecards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.modecard { padding: 14px 0 4px; border-top: 2px solid var(--line-2); display: grid; gap: 10px; }
.modecard.mode--cargo { border-top-color: color-mix(in srgb, var(--s1) 60%, transparent); } .modecard.mode--oilrig { border-top-color: color-mix(in srgb, var(--s2) 60%, transparent); }
.modecard.mode--deathmatch { border-top-color: color-mix(in srgb, var(--s3) 60%, transparent); } .modecard.mode--duel { border-top-color: color-mix(in srgb, var(--s4) 60%, transparent); }
.modecard__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.modecard__rating { display: flex; align-items: baseline; gap: 10px; }
.elo-big { font-family: var(--font-cond); font-size: 36px; font-weight: 800; line-height: 1; }

/* ---------- settings ---------- */
.account__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.account__id { display: grid; gap: 2px; min-width: 0; flex: 1 1 200px; }
.roles { display: grid; gap: 10px; color: var(--ink-2); }
.roles li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; }
.roles-help { margin-top: 16px; }

/* ---------- search / item picker ---------- */
.search, .picker { display: grid; gap: 10px; }
.search__hint { font-size: 13px; }
.search__list, .picker__list { display: grid; gap: 2px; max-height: 52vh; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.search__item, .picker__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.search__item[aria-selected="true"], .picker__item[aria-selected="true"] { box-shadow: inset 2px 0 0 var(--rc-signal-mark), inset 0 0 0 1px var(--line-2); }
.search__main { display: grid; min-width: 0; }
.search__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search__id { font-size: 12px; color: var(--ink-3); }
.search__meta { display: flex; gap: 6px; align-items: center; font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
.search__none, .picker__none { padding: 16px 10px; text-align: center; }
.picker__bar { display: grid; grid-template-columns: 1fr 200px; gap: 8px; }
.picker__item { grid-template-columns: minmax(0, 1fr) auto; }
.picker__item.is-current { box-shadow: inset 2px 0 0 var(--rc-signal-mark); }
.picker__name { font-weight: 600; }
.picker__sn { font-size: 12px; color: var(--ink-3); grid-column: 1; }
.picker__tags { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 260px; }

/* ---------- server ---------- */
.console { background: var(--bg-3); border: 0; border-left: 2px solid var(--line-2); border-radius: 0; min-height: 160px; max-height: 420px; overflow-y: auto; padding: 12px; font-family: var(--mono); font-size: 13px; display: grid; gap: 12px; align-content: start; }
.console__hint { color: var(--ink-3); font-family: var(--font); }
.console__cmd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.console__cmd code { color: var(--rc-signal-text); }
.console__out { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.console__out.is-error { color: var(--danger-text); }
.console__form { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.console__prompt { font-family: var(--mono); color: var(--rc-signal-text); font-weight: 700; }

/* ---------- kits ---------- */
.kits-meta { margin-bottom: 4px; }
.kitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.kitcard { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); transition: border-color .15s, transform .15s var(--ease); }
.kitcard:hover { border-color: var(--rc-signal-mark); transform: translateY(-1px); }
.kitcard__head { display: grid; gap: 4px; }
.kitcard__head h3 { font-size: 19px; }
.kitcard__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.kitcard__foot { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.kitcard__go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); font-weight: 600; }
.kitcard:hover .kitcard__go { color: var(--rc-signal-text); }
.page-head--kit { position: sticky; top: calc(var(--nav-h) + var(--abar-h)); z-index: 20; background: var(--bg); margin: -12px 0 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.page-head--kit h1 { font-size: 28px; }
.kit-summary:empty { display: none; }
.kit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.kit-main { display: grid; gap: 16px; min-width: 0; }
.kit-versions { position: sticky; top: calc(var(--nav-h) + var(--abar-h) + 96px); max-height: calc(100vh - var(--nav-h) - var(--abar-h) - 116px); overflow-y: auto; }
.kit-fields { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-start; }
.kfield { display: grid; gap: 6px; min-width: 150px; }
.kfield--row { display: flex; align-items: center; gap: 12px; }
.kfield__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.kfield__hint { font-size: 13px; color: var(--ink-3); max-width: 280px; }
.cellfield { display: grid; gap: 3px; }
.cell-err { font-size: 12px; color: var(--danger-text); max-width: 240px; }
.cell-err:empty { display: none; }
.itembtn { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0 8px; align-items: baseline; background: none; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; margin: -4px -6px; text-align: left; min-width: 180px; min-height: 36px; }
.itembtn:hover:not(:disabled) { border-color: var(--line-2); background: var(--glass); }
.itembtn:disabled { cursor: default; }
.itembtn.is-invalid { border-color: var(--danger); }
.itembtn__name { font-weight: 600; grid-column: 1 / -1; }
.itembtn__sn { font-size: 12px; color: var(--ink-3); }
.itembtn__cat { font-size: 12px; color: var(--ink-3); }
.mods { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; max-width: 280px; }
.mods.is-invalid { outline: 1px solid var(--danger); outline-offset: 3px; border-radius: 6px; }
.mods:empty::before { content: "–"; color: var(--ink-3); }
.modchip { display: inline-flex; align-items: center; gap: 2px; min-height: 28px; padding: 0 2px 0 10px; border-radius: 999px; background: var(--glass-2); color: var(--ink); font-size: 12px; border: 1px solid var(--line-2); }
.modchip__x { display: grid; place-items: center; width: 24px; height: 24px; border: 0; background: none; color: var(--ink-3); border-radius: 999px; padding: 0; }
.modchip__x:hover { background: var(--glass-2); color: var(--ink); }
.modchip__x .ico { width: 12px; height: 12px; }
.modadd { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--line-2); background: none; color: var(--ink-3); font-size: 12px; }
.modadd:hover { color: var(--ink); border-color: var(--rc-signal-mark); }
.modadd .ico { width: 13px; height: 13px; }
.json-editor { min-height: 280px; font-size: 13px; line-height: 1.5; tab-size: 2; white-space: pre; overflow: auto; }
.json-status { display: flex; gap: 6px; align-items: center; font-size: 13px; margin-top: 8px; }
.json-status--ok { color: var(--ok); } .json-status--err { color: var(--danger-text); }
.slothead { display: inline-flex; align-items: center; gap: 10px; }
.slotcount { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-2); }
.slotcount.is-full { color: var(--warn); } .slotcount.is-over { color: var(--danger-text); }
.slotmeter { width: 90px; height: 6px; border-radius: 3px; background: var(--glass-2); overflow: hidden; }
.slotmeter__fill { display: block; height: 100%; width: 0; background: var(--rc-signal-mark); border-radius: 3px; transition: width .25s var(--ease); }
.slotmeter__fill.is-over { background: var(--danger); }
.slot-empty { padding: 4px 2px; }
@media (min-width: 761px) {
  .slotcard .tbl { table-layout: fixed; }
  .slotcard th:nth-child(1) { width: 30%; } .slotcard th:nth-child(2) { width: 13%; } .slotcard th:nth-child(3) { width: 24%; }
  .slotcard th:nth-child(4) { width: 16%; } .slotcard th:nth-child(5) { width: 13%; } .slotcard th:nth-child(6) { width: 60px; }
  .slotcard .input--sm, .slotcard .input--md { width: 100%; max-width: 140px; }
}
.verlist { display: grid; padding: 8px; gap: 4px; }
.verlist__item { padding: 10px; border-radius: 10px; display: grid; gap: 4px; border: 1px solid transparent; transition: background .15s; }
.verlist__item:hover { background: var(--glass); }
.verlist__item.is-current { border-color: var(--rc-signal-line); background: var(--rc-signal-soft); }
.verlist__top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.verlist__time { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.verlist__note { color: var(--ink-2); overflow-wrap: anywhere; }
.verlist__actions { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.verlist__empty { padding: 14px 16px; }
.diff { display: grid; gap: 14px; }
.diff__stats { display: flex; gap: 6px; flex-wrap: wrap; }
.diff__group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 6px; font-family: var(--font); }
.diff__group ul { display: grid; gap: 3px; }
.diff__row { display: grid; grid-template-columns: 18px auto 1fr; gap: 4px 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; background: var(--glass); border-left: 2px solid var(--line-2); }
.diff__row--changed { border-left-color: var(--warn); }
.diff__row--added { border-left-color: var(--ok); background: var(--ok-soft); }
.diff__row--removed { border-left-color: var(--danger); background: var(--danger-soft); }
.diff__row--removed .diff__item strong { text-decoration: line-through; }
.diff__row > .ico { width: 14px; height: 14px; color: var(--ink-3); }
.diff__row--changed:has(> .ico) { grid-template-columns: 18px auto auto auto 1fr; }
.diff__sign { font-family: var(--mono); font-weight: 800; }
.diff__row--added .diff__sign { color: var(--ok); } .diff__row--removed .diff__sign { color: var(--danger-text); } .diff__row--changed .diff__sign { color: var(--warn); }
.diff__fields { display: flex; flex-wrap: wrap; gap: 4px 14px; grid-column: 3 / -1; }
.diff__field { white-space: nowrap; }
.diff__from { color: var(--danger-text); text-decoration: line-through; overflow-wrap: anywhere; }
.diff__to { color: var(--ok); overflow-wrap: anywhere; }
.diff__json { font-size: 12px; white-space: pre-wrap; display: block; max-width: 100%; }

/* ---------- gates (login, no access) ---------- */
.app--gate { min-height: calc(100vh - var(--nav-h)); display: grid; }
.gate { display: grid; place-items: center; padding: 48px 16px 80px; outline: none; }
.gate__card { width: min(460px, 100%); padding: 36px 32px; display: grid; gap: 16px; justify-items: center; text-align: center; animation: rise .3s var(--ease) both; }
.gate__product { font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: var(--rc-track-display); color: var(--ink-2); }
.gate__title { font-size: clamp(28px, 6vw, 36px); }
.gate__text { color: var(--ink-2); max-width: 38ch; text-wrap: pretty; }
.gate__ico { width: 40px; height: 40px; color: var(--ink-2); stroke-width: 1.5; }
.gate__id { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; padding: 10px 14px; background: var(--glass); border-radius: 12px; overflow-wrap: anywhere; }
.gate__id code { color: var(--ink-3); }
.gate__fine { font-size: 14px; }
.gate__signin { margin-top: 4px; }
.gate .state { padding: 8px; }
.mock-note { color: var(--warn); }

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .kit-layout { grid-template-columns: minmax(0, 1fr); }
  .kit-versions { position: static; max-height: none; }
}
@media (max-width: 1280px) {
  .grid--dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--dash > .span-2 { grid-column: 1 / -1; }
}
@media (max-width: 1099px) {
  :root { --nav-h: 56px; }
  .abar__search kbd { display: none; }
  .abar__search .abar__toollabel { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .abar__search { width: 36px; padding: 0; justify-content: center; }
}
@media (max-width: 1024px) {
  .grid--dossier, .grid--server { grid-template-columns: minmax(0, 1fr); }
  .grid--dossier > .span-2, .grid--server > .span-2 { grid-column: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(4n + 1) { border-left: 1px solid var(--line); }
  .kpi:nth-child(odd) { border-left: 0; }
  .kpi:nth-child(-n + 4) { border-top: 1px solid var(--line); }
  .kpi:nth-child(-n + 2) { border-top: 0; }
  .minicounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .minicount:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 759px) {
  :root { --abar-h: 46px; --wrap: calc(100% - 24px); }
  .abar__in { gap: 8px; }
  .abar__links { gap: 18px; }
  .pill { padding: 0 10px; gap: 6px; }
  .pill__age { display: none; }
  .page { padding: 20px 0 72px; }
  .page-head { margin-bottom: 16px; }
  .page-head--kit { margin: -8px 0 14px; padding: 10px 0; }
  .page-head--kit .page-head__actions .btn__label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .page-head--kit .page-head__actions .btn { padding: 0; width: 40px; }
  .grid, .grid--dash { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .grid--dash > * { grid-column: auto !important; }
  .kpi { padding: 12px 14px; }
  .kpi--link { padding: 0; }
  .kpi__a { padding: 12px 14px; }
  .kpi__value { font-size: 24px; }
  .minicounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .minicount { border-left: 0; padding-left: 0; }
  .card__head { padding: 14px 14px 0; }
  .card__body { padding: 14px; }
  .toolbar { padding: 12px 14px; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 14px; } .tbl th:last-child, .tbl td:last-child { padding-right: 14px; }
  .tbl-foot, .tbl-head, .pager, .loading { padding-left: 14px; padding-right: 14px; }
  .tbl .hide-sm { display: none; }
  .tbl td { white-space: nowrap; }
  .tbl td .wrap-text { white-space: normal; min-width: 160px; display: inline-block; }
  .rowactions__inline { display: none; }
  .rowactions__more { display: inline-grid; }
  .modecards { grid-template-columns: minmax(0, 1fr); }
  .dossier__head { grid-template-columns: auto minmax(0, 1fr); padding: 14px; gap: 14px; }
  .dossier__head .avatar--xl { width: 60px; height: 60px; font-size: 20px; border-radius: 14px; }
  .dossier__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .dossier__act { display: none; }
  .dossier__more { display: inline-flex; }
  .modal { padding: 0; align-items: end; place-items: end stretch; }
  .modal__panel { border-radius: 20px 20px 0 0; max-height: 92vh; max-width: none !important; transform: translateY(24px); }
  .modal__grip { display: block; position: absolute; left: 50%; top: 7px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-2); }
  .modal__panel--search { margin-top: 0; align-self: end; }
  .modal__foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .modal__foot .btn { flex: 1; }
  .modal__body { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .picker__bar { grid-template-columns: minmax(0, 1fr); }
  .picker__tags { display: none; }
  .toolbar__search { flex: 1 1 100%; }
  .kv__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .toasts { bottom: 12px; right: 12px; left: 12px; width: auto; }
  .drawer { top: auto; width: 100%; max-height: 80vh; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 20px 20px 0 0; transform: translateY(24px); }
  .roles li { grid-template-columns: minmax(0, 1fr); }
  .gate__card { padding: 28px 20px; }
  .mstats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mstats--4 .mstat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 419px) {
  .pill { width: 36px; padding: 0; justify-content: center; }
  .pill__text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .page.is-in, [role="tabpanel"].is-in, .gate__card, .tbl--edit tr.is-new { animation: none; }
  .btn, .kitcard, .modal__panel, .toast, .drawer, .switch__thumb, .abar__link::after, .tabs__tab::after { transition-property: background, border-color, color, opacity; transform: none !important; }
}
@media (forced-colors: active) {
  .switch__track { border: 1px solid CanvasText; }
  .switch[aria-checked="true"] .switch__thumb { background: Highlight; }
}
@media print { .abar, .toasts, .drawer { display: none; } }

/* ---------- feedback round 2 (06.11.2026): server grid, modes 2x2, arenas, zebra, kit editor ---------- */
.servergrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.servergrid__side { display: grid; gap: 16px; }
.servergrid__wide { grid-column: 1 / -1; }
.kv--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.kv--2col .kv__row { grid-template-columns: minmax(96px, 40%) 1fr; }
.kv--2col .kv__row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.tbl tbody tr:nth-child(even) { background: color-mix(in srgb, var(--rc-white) 2%, transparent); }
.tbl tbody tr:nth-child(even):hover, .tbl tbody tr:hover { background: var(--glass-2); }
.subtabs { display: flex; gap: 6px; margin: -6px 0 18px; }
.subtabs__link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 14px; transition: border-color .15s, color .15s, background .15s; }
.subtabs__link:hover { border-color: var(--rc-signal-mark); color: var(--ink); }
.subtabs__link[aria-current="page"] { background: var(--glass-2); color: var(--ink); border-color: var(--line-2); box-shadow: inset 0 -2px 0 var(--rc-signal-mark); }
.modegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.modecard2__head { align-items: center; }
.modecard2__title { flex: 1; min-width: 0; }
.modecard2__title h3 { margin-bottom: 2px; }
.modecard2__ids { font-family: var(--mono); font-size: 12px; }
.modethumb { width: 72px; height: 48px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; border: 1px solid var(--line); }
.modethumb--none { display: grid; place-items: center; background: var(--glass); }
.modethumb--none::before { width: 16px; height: 16px; }
.livegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; }
.livegrid__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.livegrid__row dt { color: var(--ink-3); font-size: 13px; }
.livegrid__row dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; }
.room { display: inline-flex; align-items: center; gap: 8px; }
.meter { width: 64px; height: 6px; border-radius: 3px; background: var(--glass-2); overflow: hidden; display: inline-block; }
.meter__fill { display: block; height: 100%; width: 0; background: var(--rc-signal-mark); border-radius: 3px; transition: width .3s var(--ease); }
.modes-rounds { margin-bottom: 16px; }
.toolbar__end { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.flabel--inline { flex: 0 0 auto; min-width: 0; display: flex; align-items: center; gap: 8px; }
.minimap { display: block; }
.minimap__bg { fill: var(--bg-3); stroke: var(--line-2); }
.minimap__dot { fill: var(--rc-signal-mark); }
.biome { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.biome::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ink-3); }
.biome--green::before { background: var(--rc-win); } .biome--desert::before { background: var(--rc-tier-gold); }
.biome--tundra::before { background: var(--rc-tier-platinum); } .biome--snow::before { background: var(--ink); } .biome--map::before { background: var(--rc-signal-mark); }
.arena__name { font-size: 14px; }
@media (max-width: 1024px) { .servergrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 899px) { .modegrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 759px) {
  .kv--2col { grid-template-columns: minmax(0, 1fr); }
  .livegrid { grid-template-columns: minmax(0, 1fr); }
  .toolbar__end { margin-left: 0; }
}

/* kit editor: icons, compact rows, weight share, drag order, picker grid, version timeline */
.itemico { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); object-fit: contain; }
.itemico--none { display: inline-grid; place-items: center; font-family: var(--font-cond); font-weight: 800; font-size: 12px; color: var(--ink-2); }
.itemico--weapon { border-color: var(--line-2); }
.itembtn { display: flex; align-items: center; gap: 10px; min-width: 200px; margin: -4px -6px; }
.itembtn__text { display: grid; min-width: 0; }
.itembtn__name { grid-column: auto; }
.skinfield { display: inline-flex; align-items: center; gap: 2px; }
.skinlink[hidden] { display: none; }
.weightcell { display: inline-flex; align-items: center; gap: 10px; }
.share { display: inline-flex; align-items: center; gap: 6px; min-width: 96px; }
.share__bar { width: 52px; height: 6px; border-radius: 3px; background: var(--glass-2); overflow: hidden; }
.share__fill { display: block; height: 100%; width: 0; background: var(--rc-signal-mark); transition: width .25s var(--ease); }
.share__txt { font-size: 12px; color: var(--ink-3); min-width: 40px; }
.col-drag { width: 1%; padding-right: 0 !important; }
.draghandle { display: inline-grid; place-items: center; width: 28px; height: 32px; border: 0; background: none; color: var(--ink-3); cursor: grab; border-radius: 6px; }
.draghandle:hover { color: var(--ink); background: var(--glass-2); }
.kit-items tr.is-drag { opacity: .5; }
.kit-items tr.is-over td { box-shadow: inset 0 2px 0 var(--rc-signal-mark); }
.tbl tr.grouprow th { padding: 14px 20px 6px; text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.tbl tbody tr.grouprow, .tbl tbody tr.grouprow:hover { background: var(--bg-2); }
.modal__panel--picker { max-width: 980px; }
.picker__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.picker__tab { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.picker__tab:hover { color: var(--ink); border-color: var(--line-2); }
.picker__tab[aria-checked="true"] { background: var(--glass-2); color: var(--ink); border-color: var(--line-2); box-shadow: inset 0 -2px 0 var(--rc-signal-mark); }
.picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; max-height: 56vh; overflow-y: auto; padding: 2px; margin: 0; }
.picker__cell { display: grid; justify-items: center; gap: 4px; padding: 10px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; min-width: 0; }
.picker__cell:hover { border-color: var(--line-2); background: var(--glass-2); }
.picker__cell[aria-selected="true"] { border-color: var(--rc-signal-mark); box-shadow: inset 0 0 0 1px var(--rc-signal-mark); }
.picker__cell.is-current { border-style: dashed; }
.picker__cell .itemico { width: 40px; height: 40px; }
.picker__cell .picker__name { font-size: 13px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.picker__cell .picker__sn { font-size: 11px; color: var(--ink-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; grid-column: auto; }
.picker__none { grid-column: 1 / -1; }
.diff__item { display: inline-flex; align-items: center; gap: 8px; }
.diff__item .itemico { width: 24px; height: 24px; border-radius: 6px; }
.apply-sum { font-weight: 600; }
.verlist--timeline { display: grid; gap: 0; padding: 8px 12px 12px 26px; position: relative; }
.verlist--timeline::before { content: ""; position: absolute; left: 16px; top: 18px; bottom: 18px; width: 2px; background: var(--line-2); }
.verlist--timeline .verlist__item { position: relative; border-radius: 10px; }
.verlist--timeline .verlist__item::before { content: ""; position: absolute; left: -15px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink-3); }
.verlist--timeline .verlist__item.is-current::before { background: var(--rc-signal-mark); border-color: var(--rc-signal-mark); }
@media (max-width: 759px) { .picker__grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } .itembtn { min-width: 170px; } }
.modecard2__h { font-size: 20px; margin-bottom: 2px; }
.modecard2.is-off .modecard2__h { color: var(--ink-3); }
.kit-items .input--sm, .slotcard .input--sm { width: 64px; }
.kit-items .input--md { width: 116px; }
.kit-items select.input--md { width: 140px; }
.kit-items td { padding-left: 8px; padding-right: 8px; }
.kit-items .itembtn { min-width: 180px; }
.kit-items .share { min-width: 80px; } .kit-items .share__bar { width: 40px; }
