@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Inter-Variable.woff2') format('woff2-variations'),
       url('../fonts/Inter-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/JetBrainsMono-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/JetBrainsMono-Bold.woff2') format('woff2');
}

/* ============================================================
   SourceBans++ 2026 — NightPixel Dark Theme (Complet)
   ============================================================ */
:root,
html,
html.dark {
  color-scheme: dark;

  /* Brand NightPixel (Cyan & Blue) */
  --brand-50:  rgba(85, 214, 232, 0.08);
  --brand-100: rgba(85, 214, 232, 0.14);
  --brand-200: rgba(85, 214, 232, 0.25);
  --brand-300: #8be6f3;
  --brand-400: #55d6e8;
  --brand-500: #55d6e8;
  --brand-600: #477bff;
  --brand-700: #3566e6;
  --brand-800: #1e3a8a;
  --brand-900: #151f30;
  --brand-950: #090d16;

  /* Neutrals NightPixel */
  --zinc-50:  #edf4ff;
  --zinc-100: #edf4ff;
  --zinc-200: #263449;
  --zinc-300: #354966;
  --zinc-400: #91a0b5;
  --zinc-500: #91a0b5;
  --zinc-600: #64748b;
  --zinc-700: #263449;
  --zinc-800: #151f30;
  --zinc-900: #111827;
  --zinc-950: #090d16;

  /* Semantic NightPixel */
  --bg-page:    #090d16;
  --bg-surface: #111827;
  --bg-muted:   #151f30;
  --border:     #263449;
  --text:       #edf4ff;
  --text-muted: #91a0b5;
  --text-faint: #64748b;

  --accent:       #55d6e8;
  --accent-hover: #7bbdff;
  --accent-soft:  rgba(85, 214, 232, 0.12);
  --on-accent:    #07111b;

  --success:    #4ade80;
  --success-bg: rgba(74, 222, 128, 0.14);
  --warning:    #ff9b52;
  --warning-bg: rgba(255, 155, 82, 0.14);
  --danger:     #f87171;
  --danger-bg:  rgba(248, 113, 113, 0.14);
  --info:       #55d6e8;
  --info-bg:    rgba(85, 214, 232, 0.14);

  /* Type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-xs: 0.75rem; --fs-sm: 0.8125rem; --fs-base: 0.875rem;
  --fs-lg: 1rem; --fs-xl: 1.25rem; --fs-2xl: 1.5rem;

  /* Geometry */
  --radius-sm: 0.25rem; --radius-md: 0.375rem; --radius-lg: 0.5rem;
  --radius-xl: 0.75rem; --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.25);
  --shadow:    0 4px 12px 0 rgb(0 0 0 / 0.35);
  --shadow-lg: 0 14px 30px -3px rgb(0 0 0 / 0.5);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  background: radial-gradient(ellipse at 75% 0%, rgba(40, 111, 166, 0.18), transparent 55%), #090d16;
  color: var(--text);
  font-feature-settings: "cv02","cv03","cv04","cv11";
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ---- App shell ---- */
.app { min-height: 100vh; display: flex; }
.sidebar {
  width: 15rem; flex-shrink: 0; height: 100vh; position: sticky; top: 0;
  align-self: flex-start;
  background: #0b101b; border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.sidebar__brand { height: 3.5rem; padding: 0 1rem; display: flex; align-items: center; gap: 0.625rem; border-bottom: 1px solid var(--border); }
.sidebar__brand-mark { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.sidebar__nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 0.75rem 0.5rem; }
.sidebar__section { display: flex; flex-direction: column; gap: 0.125rem; margin-bottom: 1.25rem; }
.sidebar__section-label { padding: 0 0.75rem 0.375rem; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.sidebar__link {
  display: flex; align-items: center; gap: 0.625rem; padding: 0 0.75rem; height: 2rem;
  border-radius: var(--radius-md); color: var(--text); font-weight: 500;
  text-decoration: none; transition: background-color .15s; width: 100%; border: 0; background: transparent; text-align: left;
}
.sidebar__link svg { stroke-width: 1.5; }
.sidebar__link:hover { background: var(--bg-muted); }
.sidebar__link[aria-current="page"],
html.dark .sidebar__link[aria-current="page"] {
  background: linear-gradient(110deg, #55d6e8, #7bbdff);
  color: #07111b;
  font-weight: 700;
}
.sidebar__link-count { margin-left: auto; font-size: 0.625rem; padding: 0 0.375rem; height: 1rem; display: inline-flex; align-items: center; border-radius: var(--radius-sm); background: var(--bg-muted); color: var(--text-muted); font-variant-numeric: tabular-nums; }

.sidebar__accordion { display: flex; flex-direction: column; gap: 0.125rem; }
.sidebar__accordion-summary { cursor: pointer; list-style: none; user-select: none; }
.sidebar__accordion-summary::-webkit-details-marker { display: none; }
.sidebar__accordion-label { flex: 1; min-width: 0; }
.sidebar__accordion-chevron { margin-left: auto; width: 0.875rem; height: 0.875rem; color: var(--text-muted); transition: transform .15s ease; flex-shrink: 0; }
.sidebar__accordion[open] > .sidebar__accordion-summary .sidebar__accordion-chevron { transform: rotate(180deg); }
.sidebar__children { position: relative; display: flex; flex-direction: column; gap: 0.125rem; margin-left: 1.5rem; padding-left: 0.5rem; }
.sidebar__children::before { content: ""; position: absolute; left: 0; top: 0.125rem; bottom: 0.125rem; width: 1px; background: var(--border); pointer-events: none; }
.sidebar__link--child { height: 1.75rem; font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); }
.sidebar__link--child:hover { color: var(--text); }
.sidebar__link--child[aria-current="page"] { color: #07111b; }
@media (prefers-reduced-motion: reduce) { .sidebar__accordion-chevron { transition: none; } }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 3.5rem; position: sticky; top: 0; z-index: 30;
  background: rgba(9, 13, 22, 0.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.5rem; padding: 0 1.25rem;
}
.topbar__breadcrumbs { display: flex; align-items: center; gap: 0.375rem; font-size: var(--fs-base); color: var(--text-muted); }
.topbar__breadcrumbs > [aria-current] { color: var(--text); font-weight: 500; }
.topbar__search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid transparent; background: transparent;
  color: var(--text-muted); font-size: var(--fs-base);
  transition: background-color .15s, color .15s;
}
.topbar__search:hover { background: var(--bg-muted); color: var(--text); }
.topbar__search-label, .topbar__search-kbd { display: none; }
@media (max-width: 768px) { .topbar__search { width: 2.75rem; height: 2.75rem; } }

.theme-toggle__moon, .theme-toggle__system { display: none; }
html[data-theme-pref="dark"] .theme-toggle__sun { display: none; }
html[data-theme-pref="dark"] .theme-toggle__moon { display: inline-block; }
html[data-theme-pref="system"] .theme-toggle__sun { display: none; }
html[data-theme-pref="system"] .theme-toggle__system { display: inline-block; }
/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--bg-muted);
  --btn-color: var(--text);
  --btn-border: var(--border);
  --btn-bg-hover: #1d2b42;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.25rem; padding: 0 0.875rem; border-radius: var(--radius-md);
  font-size: var(--fs-base); font-weight: 500;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-color);
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--btn-bg-hover); }
.btn--primary {
  --btn-bg: linear-gradient(110deg, #55d6e8, #7bbdff);
  --btn-color: #07111b;
  --btn-border: transparent;
  --btn-bg-hover: linear-gradient(110deg, #6be0f0, #91c9ff);
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(85, 214, 232, 0.2);
}
.btn--secondary {
  --btn-bg: var(--bg-surface);
  --btn-color: var(--text);
  --btn-border: var(--border);
  --btn-bg-hover: var(--bg-muted);
}
.btn--secondary[aria-pressed="true"],
html.dark .btn--secondary[aria-pressed="true"] {
  --btn-bg: linear-gradient(110deg, #55d6e8, #7bbdff);
  --btn-color: #07111b;
  --btn-border: transparent;
  font-weight: 700;
}
.btn--ghost { --btn-bg: transparent; --btn-color: var(--text-muted); --btn-border: transparent; --btn-bg-hover: var(--bg-muted); }
.btn--ghost:hover { --btn-color: var(--text); }
.btn--danger { --btn-bg: var(--danger); --btn-color: #07111b; --btn-bg-hover: #ef4444; font-weight: 700; }
.btn--sm { height: 2rem; padding: 0 0.75rem; font-size: var(--fs-xs); }
.btn--icon { width: 2.25rem; padding: 0; }
.btn--xs { height: 1.5rem; width: 1.5rem; min-width: 1.5rem; }

.btn[data-loading="true"] { position: relative; cursor: progress; pointer-events: none; color: transparent !important; text-shadow: none !important; }
.btn[data-loading="true"] > * { visibility: hidden; }
.btn[data-loading="true"]::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 1em; height: 1em; margin: -0.5em 0 0 -0.5em;
  border-radius: 50%; border: 2px solid var(--btn-color, currentColor);
  border-right-color: transparent; border-top-color: transparent;
  animation: sbpp-btn-spin 0.6s linear infinite;
}
@keyframes sbpp-btn-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn[data-loading="true"]::after { animation-duration: 0.6s !important; animation-iteration-count: infinite !important; }
}

html.dark .btn[data-testid="login-steam"],
.btn[data-testid="login-steam"] {
  --btn-bg: #1b2838; --btn-color: #fff; --btn-border: #2a475e; --btn-bg-hover: #2a475e;
}

/* ---- Admin sub-tabs & Admin sidebar ---- */
.admin-tabs > [aria-current="page"],
html.dark .admin-tabs > [aria-current="page"] {
  background: var(--bg-surface);
  color: var(--cyan);
  border-bottom: 2px solid var(--cyan);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  font-weight: 600;
}
.admin-tabs__back { margin-left: auto; }
@media (max-width: 768px) {
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tabs > * { flex-shrink: 0; scroll-snap-align: start; }
  .admin-tabs > [aria-current="page"],
  html.dark .admin-tabs > [aria-current="page"] {
    background: linear-gradient(110deg, #55d6e8, #7bbdff);
    color: #07111b;
    border-bottom-color: transparent;
    border-radius: var(--radius-md);
  }
  .admin-tabs__back { margin-left: 0; }
}

.admin-sidebar { font-size: var(--fs-sm); margin-bottom: 1rem; }
.admin-sidebar__details { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-surface); }
.admin-sidebar__summary { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.625rem 0.875rem; font-weight: 600; cursor: pointer; list-style: none; user-select: none; }
.admin-sidebar__summary::-webkit-details-marker { display: none; }
.admin-sidebar__summary-label { display: inline-flex; align-items: center; gap: 0.5rem; }
.admin-sidebar__chevron { transition: transform .15s ease; color: var(--text-muted); }
.admin-sidebar__details[open] .admin-sidebar__chevron { transform: rotate(180deg); }
.admin-sidebar__nav { padding: 0.5rem 0.5rem 0.625rem; display: flex; flex-direction: column; gap: 0.125rem; }
@media (prefers-reduced-motion: reduce) { .admin-sidebar__chevron { transition: none; } }

.admin-sidebar-shell { padding: 1.5rem; max-width: 1400px; }
.admin-sidebar-content .page-section { padding: 0; max-width: none; }
@media (min-width: 1024px) {
  .admin-sidebar-shell { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
  .admin-sidebar { position: sticky; top: 4rem; align-self: start; margin-bottom: 0; }
  .admin-sidebar__details { border: none; background: transparent; }
  .admin-sidebar__summary { display: none; }
  .admin-sidebar__details .admin-sidebar__nav { display: flex !important; }
  .admin-sidebar__nav { padding: 0; }
  .admin-sidebar-content { min-width: 0; }
}

/* ---- Inputs & Multi-select ---- */
.input, .select, .textarea {
  width: 100%; height: 2.25rem; padding: 0 0.75rem;
  border-radius: var(--radius-md); background: #090d16;
  border: 1px solid var(--border); color: var(--text); font-size: var(--fs-base);
  font-family: inherit; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(85, 214, 232, 0.14); }
.textarea { height: auto; padding: 0.625rem 0.75rem; resize: vertical; min-height: 5rem; }
.input--with-icon { padding-left: 2rem; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.msel { position: relative; width: 100%; min-width: 14rem; }
.msel__trigger { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; height: 2.25rem; padding: 0 0.75rem; border-radius: var(--radius-md); background: #090d16; border: 1px solid var(--border); color: var(--text); font-size: var(--fs-base); font-family: inherit; cursor: pointer; text-align: left; }
.msel__trigger:focus-visible, .msel[data-open="true"] .msel__trigger { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(85, 214, 232, 0.14); }
.msel__trigger-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
.msel[data-has-value="true"] .msel__trigger-label { color: var(--text); }
.msel__chevron { width: 14px; height: 14px; flex-shrink: 0; color: var(--text-muted); transition: transform .15s; }
.msel[data-open="true"] .msel__chevron { transform: rotate(180deg); }
.msel__panel { position: absolute; z-index: 40; top: calc(100% + 0.25rem); left: 0; right: 0; max-height: 16rem; overflow-y: auto; padding: 0.35rem; border-radius: var(--radius-md); background: var(--bg-surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.msel__panel[hidden] { display: none !important; }
.msel__option { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: var(--radius-sm); cursor: pointer; font-size: var(--fs-sm); color: var(--text); }
.msel__option:hover, .msel__option:focus-within { background: var(--bg-muted); }
.msel__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.msel__chips:empty { display: none; }
.msel__chip { display: inline-flex; align-items: center; gap: 0.25rem; max-width: 100%; padding: 0.15rem 0.45rem; border-radius: 999px; background: var(--bg-muted); border: 1px solid var(--border); color: var(--text); font-size: var(--fs-xs); line-height: 1.3; }
.msel__chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msel__chip-remove { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; line-height: 1; }
.msel__chip-remove:hover { color: var(--text); background: var(--bg-surface); }

input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 1.125rem; height: 1.125rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #090d16; cursor: pointer; flex-shrink: 0; position: relative; transition: background-color .15s, border-color .15s; }
input[type="checkbox"]:hover { border-color: var(--cyan); }
input[type="checkbox"]:checked, input[type="checkbox"]:indeterminate { background: var(--cyan); border-color: var(--cyan); }
input[type="checkbox"]:checked::after { content: ""; position: absolute; inset: 0; display: block; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://w3.org' viewBox='0 0 16 16' fill='none' stroke='%2307111b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8 7 12 13 4'/%3E%3C/svg%3E"); background-size: 75% 75%; background-repeat: no-repeat; background-position: center; }
input[type="checkbox"]:indeterminate::after { content: ""; position: absolute; inset: 0; display: block; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://w3.org' viewBox='0 0 16 16' fill='none' stroke='%2307111b' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='3' y1='8' x2='13' y2='8'/%3E%3C/svg%3E"); background-size: 75% 75%; background-repeat: no-repeat; background-position: center; }
input[type="checkbox"]:disabled { opacity: 0.5; cursor: not-allowed; }

.file-input { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.label { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--text); margin-bottom: 0.375rem; }
/* ---- Card & Filters ---- */
.card { background: linear-gradient(145deg, rgba(21, 31, 48, 0.96), rgba(14, 22, 35, 0.96)); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.card__header h3 { margin: 0; font-size: var(--fs-base); font-weight: 600; color: var(--text); }
.card__header p { margin: 0.25rem 0 0; font-size: var(--fs-xs); color: var(--text-muted); }
.card__body { padding: 1.25rem; }
.card__body--compact { padding: 0.5rem 0.75rem; }
.filters-details { padding: 0; }
.filters-details > .filters-details__summary { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.625rem 1rem; font-weight: 600; cursor: pointer; list-style: none; border-radius: inherit; }
.filters-details[open] > .filters-details__summary { border-bottom: 1px solid var(--border); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.filters-details__summary::-webkit-details-marker { display: none; }
.filters-details__summary:hover { background: var(--bg-muted); }
.filters-details__summary-label { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.filters-details__count { font-weight: 500; font-size: var(--fs-xs); color: var(--text-muted); }
.filters-details__chevron { transition: transform .15s ease; color: var(--text-muted); flex-shrink: 0; }
.filters-details[open] .filters-details__chevron { transform: rotate(180deg); }
.filters-details__form { display: contents; }
.filters-details__header { border-bottom: none; padding-top: 0.5rem; }
.filters-details__body { display: block; }
.filters-details__body > form.card { margin: 0; border: none; border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
/* ---- Toast + Drawer + Palette ---- */
.toast-stack { position: fixed; top: 1rem; right: 1rem; z-index: 80; display: flex; flex-direction: column; gap: 0.5rem; width: min(22.5rem, calc(100vw - 2rem)); }
.toast { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 0.75rem; display: flex; gap: 0.75rem; animation: slide-in .2s ease; }
@keyframes slide-in { from { transform: translateX(100%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.drawer-backdrop { position: fixed; inset: 0; background: rgb(9 13 22 / 0.65); backdrop-filter: blur(4px); z-index: 50; }
.drawer { position: fixed; right: 0; top: 0; height: 100%; width: min(35rem, 100vw); background: #0c121e; border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); z-index: 51; display: flex; flex-direction: column; animation: slide-in .25s ease; }
.drawer .drawer__ids dd, .drawer .drawer__ban dd { min-width: 0; overflow-wrap: anywhere; }
.drawer a[href^="tel:"], .drawer a[href^="sms:"] { color: inherit; text-decoration: none; pointer-events: none; }
@media (max-width: 768px) {
  .drawer .drawer__ids, .drawer .drawer__ban { grid-template-columns: 4.5rem minmax(0, 1fr) !important; }
  .drawer .drawer__tabs { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .drawer .drawer__tabs > [role="tab"] { scroll-snap-align: start; flex-shrink: 0; }
}

html:has(#drawer-root[data-drawer-open="true"]) { overflow: hidden; }
@media (max-width: 768px) { html:has(#drawer-root[data-drawer-open="true"]) body { overflow: hidden; } }

.sidebar-backdrop { position: fixed; inset: 0; background: rgb(9 13 22 / 0.65); backdrop-filter: blur(4px); z-index: 40; display: none; }
.sidebar-backdrop[data-visible="true"] { display: block; }

.palette-backdrop { position: fixed; inset: 0; background: rgb(9 13 22 / 0.65); backdrop-filter: blur(4px); z-index: 60; display: grid; place-items: start center; padding-top: 10vh; }
.palette { width: min(36rem, calc(100vw - 2rem)); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.palette__input { display: flex; align-items: center; gap: 0.75rem; height: 3rem; padding: 0 1rem; border-bottom: 1px solid var(--border); }
.palette__input input { flex: 1; border: 0; outline: none; background: transparent; color: var(--text); font-size: var(--fs-base); }
.palette__row-meta { min-width: 0; flex: 1 1 0; }
.palette__row-hints { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.palette__row-hint { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.625rem; color: var(--text-faint); white-space: nowrap; }
.palette__row-hints kbd { display: inline-block; padding: 0.0625rem 0.25rem; border-radius: var(--radius-sm); background: #090d16; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.625rem; color: var(--text-muted); }
@media (max-width: 640px) { .palette__row-hint-label { display: none; } }

@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }
.skel { background: linear-gradient(90deg, #151f30 0, #1f2e47 40px, #151f30 80px); background-size: 200px 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) { .skel { animation-duration: 1.4s !important; animation-iteration-count: infinite !important; } }

/* ---- Queue rows & Grids ---- */
details.queue-row > summary { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; cursor: pointer; list-style: none; }
details.queue-row > summary::-webkit-details-marker { display: none; }
.queue-row__body { flex: 1 1 0; min-width: 0; }
.queue-row__date { flex-shrink: 0; white-space: nowrap; font-size: var(--fs-xs); color: var(--text-muted); }
details.queue-row > summary > .row-actions { flex-shrink: 0; display: flex; gap: 0.25rem; opacity: 1; }
@media (max-width: 768px) {
  details.queue-row > summary { flex-wrap: wrap; align-items: flex-start; }
  .queue-row__body { flex: 1 1 100%; }
  .queue-row__date { order: 2; flex: 1 1 auto; align-self: center; }
  details.queue-row > summary > .row-actions { order: 3; flex-wrap: wrap; justify-content: flex-end; gap: 0.375rem; }
}

.admin-server-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-server-access-grid > [data-testid="server-tile"], .admin-server-access-grid__hostname { min-width: 0; }
.admin-server-access-grid__hostname { overflow-wrap: anywhere; }
@media (max-width: 768px) { .admin-server-access-grid { grid-template-columns: minmax(0, 1fr); } }

.servers-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr)); }
@media (max-width: 768px) { .servers-grid { grid-template-columns: minmax(0, 1fr); } }

.ban-card__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.375rem; padding: 0 1rem 0.75rem; }
.log-cards, .admins-list-cards, .mods-list-cards, .mods-list-cards[hidden] { display: none; list-style: none; margin: 0; padding: 0; }
.log-card, .admins-list-card, .mods-list-card { border-bottom: 1px solid var(--border); }
.log-card:last-child, .admins-list-card:last-child, .mods-list-card:last-child { border-bottom: none; }
.log-card__summary { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; cursor: pointer; list-style: none; }
.log-card__summary::-webkit-details-marker { display: none; }
.log-card__title { flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: 500; word-break: break-word; }
.log-card__chevron { transition: transform .15s ease; color: var(--text-muted); flex-shrink: 0; }
.log-card[open] > summary .log-card__chevron { transform: rotate(90deg); }
.log-card__meta { display: none; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0 1rem 0.5rem; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text); }
.log-card[open] > .log-card__meta { display: flex; }
.log-card__body { padding: 0.75rem 1rem 1rem; background: var(--bg-muted); border-top: 1px solid var(--border); }
.admins-list-card__body, .mods-list-card__body { padding: 0.75rem 1rem 0.25rem; }

[data-mobile-menu] { display: none; }
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .sidebar.is-open { display: flex; position: fixed; inset: 0 auto 0 0; z-index: 41; box-shadow: var(--shadow-lg); }
  [data-mobile-menu] { display: inline-flex; }
}
@media (max-width: 768px) {
  .table { display: none; }
  .table.table--keep-mobile { display: table; }
  .ban-cards, .log-cards, .admins-list-cards, .mods-list-cards { display: block; }
  .scroll-x { overflow-x: visible; flex-wrap: wrap; row-gap: 0.5rem; }
}
@media (min-width: 769px) {
  .ban-cards, .log-cards, .admins-list-cards, .mods-list-cards { display: none; }
}

/* ---- Utilities & Extras ---- */
.flex { display: flex; } .flex-1 { flex: 1; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; }
.grid { display: grid; }
.overrides-add-grid { grid-template-columns: 1fr; }
.overrides-add-grid > * { min-width: 0; }
@media (min-width: 768px) { .overrides-add-grid { grid-template-columns: 8rem minmax(0, 1fr) 14rem; } }
.text-xs { font-size: var(--fs-xs); } .text-sm { font-size: var(--fs-sm); }
.text-muted { color: var(--text-muted); } .text-faint { color: var(--text-faint); }
.font-mono { font-family: var(--font-mono); }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.page-section { padding: 1.5rem; max-width: 1400px; }
.m-0 { margin: 0; } .mt-2 { margin-top: 0.5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; } .space-y-4 > * + * { margin-top: 1rem; } .space-y-6 > * + * { margin-top: 1.5rem; }
.scroll-x { overflow-x: auto; scrollbar-width: none; } .scroll-x::-webkit-scrollbar { display: none; }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.5rem; padding: 2.5rem 1.5rem; color: var(--text-muted); }
.empty-state[hidden] { display: none; }
.empty-state__icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-full); background: var(--bg-muted); color: var(--text-faint); display: grid; place-items: center; margin-bottom: 0.25rem; }
.empty-state__title { margin: 0; font-size: var(--fs-base); font-weight: 600; color: var(--text); }
.empty-state__body { margin: 0; font-size: var(--fs-sm); max-width: 28rem; }
.empty-state__actions { margin-top: 0.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }

.settings-actions { margin-bottom: 1.5rem; }
@media (max-width: 768px) { .settings-actions { margin-bottom: 2rem; } }

.settings-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.settings-fieldset__legend { display: block; width: 100%; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.settings-fieldset__title { display: block; font-size: var(--fs-base); font-weight: 600; color: var(--text); }
.settings-fieldset__hint { display: block; margin-top: 0.25rem; font-size: var(--fs-xs); color: var(--text-muted); }
.settings-fieldset__hint code { padding: 0 0.25rem; border-radius: var(--radius-sm); background: var(--bg-muted); color: var(--text); font-family: var(--font-mono); font-size: 0.875em; }
.settings-fieldset__body { padding: 1.25rem; }
.settings-fieldset__input { width: 100%; max-width: 18rem; }
.settings-fieldset__help { margin: 0.375rem 0 0; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.45; }
@media (max-width: 768px) { .settings-fieldset__input { max-width: 100%; } }
.permissions-card__body { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.permissions-side__heading { margin: 0 0 0.75rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.permissions-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.permissions-group { margin: 0; padding: 0.75rem 0.875rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: #090d16; }
.permissions-group__title { margin: 0 0 0.375rem; font-size: var(--fs-xs); font-weight: 600; color: var(--text); }
.permissions-group__list { list-style: disc; margin: 0; padding-left: 1.125rem; font-size: var(--fs-sm); color: var(--text); }
.permissions-group__list li + li { margin-top: 0.125rem; }
.permissions-empty { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
@media (min-width: 1024px) {
.permissions-card__body { grid-template-columns: 2fr 1fr; gap: 2rem; }
.permissions-grid--web { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) { .permissions-grid--web { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.app-footer { text-align: center; padding: 1.25rem 1rem; margin-top: auto; border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-faint); background: #080c13; }
.app-footer a { color: inherit; text-decoration: none; }
.app-footer a:hover, .app-footer a:focus-visible { color: var(--cyan); text-decoration: underline; }
.app-footer__sponsor i, .app-footer__sponsor svg { display: inline-block; vertical-align: -1px; margin-right: 0.35em; color: var(--cyan); }
.app-footer__sep { margin-inline: 0.35em; }
.dash-intro-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: stretch; }
.dash-intro-editor > .textarea { min-height: 14rem; }
.dash-intro-preview { position: relative; min-height: 14rem; padding: 0.75rem 1rem; border-radius: var(--radius-md); border: 1px solid var(--border); background: #090d16; overflow-y: auto; }
.dash-intro-preview__label { position: absolute; top: 0.375rem; right: 0.5rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.dash-intro-preview__body { font-size: var(--fs-sm); }
.dash-intro-preview__body > :first-child { margin-top: 0; }
.dash-intro-preview__body > :last-child { margin-bottom: 0; }
@media (max-width: 768px) { .dash-intro-editor { grid-template-columns: 1fr; } .dash-intro-preview { min-height: 8rem; } }
.announcement-strip { background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius-md); }
.announcement-strip > details > summary { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.875rem; cursor: pointer; list-style: none; font-size: var(--fs-sm); }
.announcement-strip > details > summary::-webkit-details-marker { display: none; }
.announcement-strip__title { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announcement-strip__date { flex: 0 0 auto; font-size: var(--fs-xs); }
.announcement-strip > details > summary::after { content: ''; flex: 0 0 auto; width: 0; height: 0; margin-left: 0.25rem; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--text-faint); transform: rotate(-90deg); transition: transform 150ms ease; }
.announcement-strip > details[open] > summary::after { transform: rotate(0deg); }
.announcement-strip__body { padding: 0 0.875rem 0.75rem; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-muted); }
.announcement-strip__link { display: inline-flex; align-items: center; gap: 0.25rem; margin: 0 0.875rem 0.75rem; font-size: var(--fs-sm); color: var(--cyan); text-decoration: none; }
.context-menu-target { cursor: context-menu; }
@media (pointer: coarse) and (hover: none) { .servers-rcon-hint { display: none; } }
.context-menu { position: fixed; z-index: 90; min-width: 12rem; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 0.25rem; display: flex; flex-direction: column; gap: 0.125rem; animation: context-menu-in 0.12s ease-out; font-size: var(--fs-sm); }
.context-menu__header { padding: 0.375rem 0.625rem 0.25rem; border-bottom: 1px solid var(--border); margin-bottom: 0.125rem; color: var(--text-muted); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 18rem; }
.context-menu__item { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.625rem; border-radius: var(--radius-sm); color: var(--text); background: transparent; border: 0; cursor: pointer; text-decoration: none; text-align: left; font: inherit; }
.context-menu__item:hover, .context-menu__item:focus, .context-menu__item:focus-visible { background: var(--bg-muted); color: var(--cyan); outline: none; }
@keyframes context-menu-in { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: translateY(0); } }
