/*
 * Olympus — visual system.
 *
 * Principles, so this stays coherent as views get added:
 *   1. One neutral grey ramp. Colour means state (danger / warning / ok) and
 *      nothing else — never decoration, never category-coding data columns.
 *   2. Hierarchy comes from weight, size and whitespace. Not from borders,
 *      gradients, glows or boxes inside boxes.
 *   3. Sentence case everywhere. No uppercase micro-labels, no letter-spacing.
 *   4. Monospace is for machine data only: IDs, timestamps, paths, console,
 *      code. Never for interface chrome.
 *   5. Shadows only for things that float above the page (modal, toast, popup).
 */

:root {
  color-scheme: dark;

  /* Neutrals */
  --bg: #0a0a0b;
  --surface: #0f0f11;
  --surface-2: #141416;
  --surface-3: #1a1a1d;
  --line: #212124;
  --line-2: #2b2b30;

  /* Text */
  --text: #ebebed;
  --text-2: #9b9ba3;
  --muted: #6c6c75;

  /* The single accent. Used for focus, selection and the active nav item. */
  --accent: #8c9cf7;
  --accent-soft: rgba(140, 156, 247, .11);

  /* State. Desaturated on purpose — these sit on near-black. */
  --danger: #e0706c;
  --warn: #cca350;
  --ok: #63a97f;
  --danger-soft: rgba(224, 112, 108, .10);
  --warn-soft: rgba(204, 163, 80, .10);
  --ok-soft: rgba(99, 169, 127, .10);

  --radius: 10px;
  --radius-sm: 7px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;

  --pop: 0 16px 48px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-weight: 560; letter-spacing: -.012em; }

.app { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 240px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--line);
}
.brand { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 18px; flex: 0 0 auto; }
.brand-mark {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 7px; background: var(--surface-3); color: var(--text);
  font: 500 14px/1 var(--sans);
}
.brand-copy strong { display: block; font-size: 14px; font-weight: 560; }
.brand-copy span { display: none; }

.nav-scroll { flex: 1; padding: 4px 10px 16px; overflow-y: auto; }
.nav-scroll::-webkit-scrollbar { width: 8px; }
.nav-scroll::-webkit-scrollbar-thumb { border: 2px solid var(--bg); border-radius: 8px; background: var(--line-2); }

.nav-group { padding: 2px 0 6px; }
.nav-group + .nav-group { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.nav-group:not(:has(.nav-item:not([hidden]))) { display: none; }
.nav-sub[hidden] { display: none; }

.nav-label {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 8px 8px 5px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 560;
}
.nav-group.is-current .nav-label { color: var(--text); }

.nav-item {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--surface-3); color: var(--text); font-weight: 500; }
.nav-item.danger { color: var(--text-2); }
.nav-item.danger:hover { background: var(--danger-soft); color: var(--danger); }
/* The glyph column is gone — the labels carry it, and mixed unicode symbols
   read as clutter at this size. */
.nav-icon { display: none; }
.nav-text { flex: 1; font-size: 14px; }
.nav-badge {
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--text-2);
  font: 500 11px/1 var(--sans);
}
.nav-badge.red { background: var(--danger-soft); color: var(--danger); }
.nav-badge.live { display: none; }
.nav-badge:empty, .nav-badge[data-zero="true"] { display: none; }

/* Rank-gated groups use the same labelled stack as everyone else. */
.management-nav { margin: 0; padding: 0; border: 0; background: none; }
.management-nav[hidden] { display: none; }
.management-lock { display: none; }
.management-item { min-height: 32px; }

.sidebar-user {
  flex: 0 0 auto;
  margin: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 4px 9px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface-3); color: var(--text-2);
  font: 500 11px/1 var(--sans);
}
.user-meta { min-width: 0; }
.user-meta strong { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .online-dot { display: none; }
.sidebar-actions { grid-column: 2; display: flex; gap: 14px; margin-top: 2px; }
.sidebar-actions .text-button { padding: 0; font-size: 12px; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* ---------- Top bar ---------- */
.main { min-width: 0; grid-column: 2; }
.topbar {
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, .82);
  backdrop-filter: blur(12px);
}
.mobile-menu { display: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.crumb { min-width: 0; flex: 1; }
.crumb strong { display: block; font-size: 14px; font-weight: 500; }
.crumb span { display: none; }
.server-select { min-width: 150px; position: relative; }
.server-select select, .compact-select {
  width: 100%;
  appearance: none;
  height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
}
.server-select select:hover, .compact-select:hover { border-color: var(--line-2); color: var(--text); }
.server-select::after { content: "⌄"; position: absolute; right: 11px; top: 3px; color: var(--muted); pointer-events: none; }
.top-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.icon-button {
  position: relative; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-button:hover { border-color: var(--line-2); color: var(--text); }
.icon-button .notify {
  position: absolute; right: -4px; top: -4px; min-width: 15px; height: 15px;
  display: grid; place-items: center; border-radius: 8px;
  background: var(--danger); color: #fff; font: 500 10px/1 var(--sans);
}

/* ---------- Page frame ---------- */
.workspace { padding: 32px 28px 64px; max-width: 1480px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { margin: 0; font-size: 22px; line-height: 1.25; }
.page-heading p { margin: 6px 0 0; max-width: 68ch; color: var(--text-2); font-size: 14px; }
.timestamp { flex: 0 0 auto; color: var(--muted); font-size: 13px; text-align: right; }
/* The coloured-dot legend is gone; data columns are no longer colour-coded. */
.data-key { display: none; }

/* Data values inherit the text colour. Emphasis comes from weight. */
.data-player, .data-identity, .data-server, .data-action, .data-live, .data-staff { color: inherit; }
.data-danger { color: var(--danger); }
.steam-id, .grid-value, .time-value { color: var(--text-2); font-family: var(--mono); font-size: 12.5px; }
.server-value { color: var(--text-2); }

/* ---------- Stat row ---------- */
.metric-row, .ban-metric-row, .hierarchy-overview, .profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  border: 0;
  background: none;
}
.metric, .ban-metric, .hierarchy-stat, .profile-stat {
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}
.metric-label, .ban-metric span, .hierarchy-stat span, .profile-stat span {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  color: var(--text-2); font: 400 13px/1.3 var(--sans);
  letter-spacing: 0; text-transform: none;
}
.metric-value, .ban-metric strong, .hierarchy-stat strong, .profile-stat strong {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 8px;
  color: var(--text);
  font: 400 24px/1.1 var(--sans);
  letter-spacing: -.02em;
}
.metric-value small { color: var(--muted); font-size: 13px; }
.metric-trend { color: var(--text-2); font-size: 12px; }
.metric-trend.alert { color: var(--danger); }
/* State colour on a number only when the number *is* a problem. */
.metric[data-kind="danger"] .metric-value, .ban-metric.pending strong { color: var(--text); }
.mini-stat { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mini-stat span { color: var(--text-2); font-size: 13px; text-transform: none; }
.mini-stat strong { display: block; margin-top: 8px; font: 400 20px/1 var(--sans); letter-spacing: -.02em; }
.mini-stat:nth-child(n) strong { color: var(--text); }

/* ---------- Panels ---------- */
.dashboard-grid { display: grid; grid-template-columns: minmax(440px, 1.3fr) minmax(360px, .9fr); gap: 20px; align-items: start; }
.right-stack { display: grid; gap: 20px; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  overflow: hidden;
}
.panel-header {
  min-height: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: none;
}
.panel-title {
  min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 8px;
  font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.panel-title small { color: var(--muted); font-size: 13px; font-weight: 400; }
.panel-tools { display: flex; align-items: center; gap: 8px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.section-label { padding: 14px 16px 6px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.empty-note { padding: 40px 22px; color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- Buttons ---------- */
.text-button, .ghost-button, .primary-button, .danger-button {
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 450;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
  white-space: nowrap;
}
.ghost-button:hover { background: var(--surface-2); }
.primary-button { border-color: transparent; background: var(--text); color: var(--bg); font-weight: 500; }
.primary-button:hover { background: #fff; }
.danger-button { border-color: transparent; background: var(--danger-soft); color: var(--danger); }
.danger-button:hover { background: rgba(224, 112, 108, .18); }
.text-button {
  min-height: auto; padding: 4px 6px; border-color: transparent;
  color: var(--text-2); font-size: 13px;
}
.text-button:hover { background: var(--surface-2); color: var(--text); }
button:disabled { opacity: .45; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Form controls ---------- */
.input, .textarea, .search-input, .wiki-editor {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  transition: border-color .12s ease;
}
.input { height: 34px; padding: 0 10px; }
.textarea { min-height: 112px; padding: 9px 10px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .search-input:focus, .wiki-editor:focus { outline: 0; border-color: var(--accent); }
.input::placeholder, .textarea::placeholder, .search-input::placeholder { color: var(--muted); }
select.input { appearance: none; padding-right: 28px; cursor: pointer; }
.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 6px;
  color: var(--text-2); font: 400 13px/1.3 var(--sans);
  letter-spacing: 0; text-transform: none;
}
.field small.muted { display: block; margin-top: 6px; font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.inline-check { display: flex; align-items: center; gap: 8px; }
.inline-check input { width: auto; }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table th {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font: 400 12.5px/1.3 var(--sans);
  letter-spacing: 0; text-align: left; text-transform: none;
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13.5px;
  vertical-align: middle;
}
.data-table td strong, .data-table td b { color: var(--text); font-weight: 500; }
/* Row actions must stay on one line. Letting them wrap when the table is
   squeezed turns every row into a 150px-tall block on narrow screens. */
.data-table td:last-child { white-space: nowrap; }
.data-table td:last-child button + button { margin-left: 2px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--surface-2); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.text-red { color: var(--danger); }
.text-green { color: var(--ok); }
.dot-label { display: inline-flex; align-items: center; gap: 7px; }
.dot-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.dot-label.offline::before { background: var(--muted); }

/* ---------- Badges, chips, tags ---------- */
.source-badge, .status-badge, .tag, .ban-status, .chip, .file-type, .toggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  border: 0;
  border-radius: 20px;
  background: var(--surface-3);
  color: var(--text-2);
  font: 400 12px/1.6 var(--sans);
  letter-spacing: 0; text-transform: none; white-space: nowrap;
}
.status-badge.open, .ban-status.pending { background: var(--warn-soft); color: var(--warn); }
.status-badge.reviewing, .ban-status.reviewing { background: var(--accent-soft); color: var(--accent); }
.status-badge.resolved, .ban-status.approved { background: var(--ok-soft); color: var(--ok); }
.ban-status.declined { background: var(--surface-3); color: var(--muted); }
.chip { background: var(--surface-3); font-family: var(--mono); font-size: 12px; }
.chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1; }
.chip button:hover { color: var(--danger); }
.chip-grid { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px; }

/* Multi-select inside the form modal. Two columns keeps a long event list
   from pushing the save button below the fold. */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 4px; }
.check-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check-item input { accent-color: var(--accent); margin: 0; }
.check-item:hover { color: var(--text); }
@media (max-width: 620px) { .check-grid { grid-template-columns: 1fr; } }
.toggle { cursor: pointer; }
.toggle.on { background: var(--ok-soft); color: var(--ok); }
.suspect-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 8px;
  padding: 1px 7px; border: 0; border-radius: 20px;
  background: var(--warn-soft); color: var(--warn);
  font: 400 11.5px/1.6 var(--sans); letter-spacing: 0; cursor: help;
}
.filter-chip {
  flex: 0 0 auto; padding: 4px 11px;
  border: 1px solid transparent; border-radius: 20px;
  background: transparent; color: var(--text-2); font-size: 13px; cursor: pointer;
}
.filter-chip:hover { background: var(--surface-2); }
.filter-chip.active { background: var(--surface-3); color: var(--text); }

/* ---------- Callouts ---------- */
.warning-box, .virtual-note, .wiki-callout, .alert-banner, .wiki-banner, .management-access-banner, .ban-alert-control {
  margin-bottom: 20px; padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
}
/* Only the banners that are genuinely icon + copy get flex. Callouts hold
   prose with inline <code> and <strong>, which flex would break into columns. */
.alert-banner, .wiki-banner, .management-access-banner, .ban-alert-control {
  display: flex; align-items: flex-start; gap: 10px;
}
.warning-box, .virtual-note { display: block; }
.warning-box code, .virtual-note code, .wiki-callout code {
  padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .06);
  font: 400 12.5px/1.5 var(--mono);
}
.warning-box { border-color: rgba(224, 112, 108, .28); background: var(--danger-soft); color: #d3a5a2; }
.warning-box strong { color: #e8b8b4; font-weight: 500; }
.wiki-callout { display: grid; gap: 3px; margin: 20px 0; }
.wiki-callout strong { color: var(--text); font-size: 14px; font-weight: 500; }
.wiki-callout span { color: var(--text-2); font-size: 13.5px; }
.wiki-callout.warning { border-color: rgba(204, 163, 80, .28); background: var(--warn-soft); }
.wiki-callout.danger { border-color: rgba(224, 112, 108, .28); background: var(--danger-soft); }
.alert-banner { margin: 16px 28px 0; border-color: rgba(224, 112, 108, .35); background: var(--danger-soft); }
.alert-banner.hidden { display: none; }
.alert-banner .alert-banner-icon { color: var(--danger); font-size: 14px; }
.alert-banner .alert-banner-copy { flex: 1; }
.alert-banner .alert-banner-copy strong { display: block; color: var(--danger); font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.alert-banner .alert-banner-copy span { color: var(--text-2); }
.management-access-banner strong, .wiki-banner strong { color: var(--text); font-weight: 500; }
.wiki-banner > span { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
.wiki-banner p { flex: 1; margin: 0; color: var(--text-2); font-size: 13.5px; }
.management-access-banner > div { min-width: 0; flex: 1; }
.management-access-banner p { margin: 3px 0 0; color: var(--text-2); font-size: 13.5px; }
.management-shield {
  width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--surface-3); color: var(--text-2);
  font: 400 13px/1 var(--sans);
}
.access-denied { max-width: 460px; margin: 14vh auto 0; padding: 0; text-align: center; }
.access-denied .management-shield { width: 40px; height: 40px; margin: 0 auto 18px; font-size: 16px; }
.access-denied h2 { margin: 0; font-size: 19px; }
.access-denied p { margin: 10px 0 22px; color: var(--text-2); font-size: 14px; }

/* ---------- Reports feed ---------- */
.report-filters, .ban-request-filters { padding: 12px 16px; display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.feed { max-height: 640px; overflow-y: auto; }
.report-row { display: grid; grid-template-columns: 2px minmax(0, 1fr); border-bottom: 1px solid var(--line); background: none; transition: background .12s ease; }
.report-row:hover { background: var(--surface-2); }
.report-row.claimed { background: none; }
.report-row.removing { opacity: 0; transform: translateX(10px); }
.report-row:last-child { border-bottom: 0; }
.severity-bar { background: transparent; }
.report-row[data-severity="critical"] .severity-bar { background: var(--danger); }
.report-main { padding: 16px; }
.report-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.report-time, .ban-request-top time { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.report-reason { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.report-reason strong { font-size: 15px; font-weight: 500; color: var(--text); }
.report-reason span { color: var(--muted); font-size: 13px; }
.report-context { color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.player-link { color: var(--text); font-weight: 500; text-decoration: none; }
.player-link:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.report-meta, .ban-request-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 12.5px; }
.report-meta b, .ban-request-meta b { color: var(--text-2); font-weight: 400; }
.report-actions, .ban-request-actions { margin-top: 14px; padding-top: 12px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.ban-request-actions { justify-content: flex-end; }
.claim-owner { min-width: 0; flex: 1; color: var(--muted); font-size: 12.5px; }
.claim-owner strong { color: var(--text-2); font-weight: 500; }
.claim-report.is-unclaim { color: var(--text-2); }
.claim-report:disabled { color: var(--ok); opacity: 1; }
.report-delete { min-height: 28px; }

/* ---------- Ban requests ---------- */
.ban-request-panel { border-color: var(--line); }
.ban-alert-pulse { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--warn); animation: none; }
.ban-sound-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 0; border-radius: 20px; background: var(--surface-3); color: var(--text-2); font: 400 12px/1.6 var(--sans); letter-spacing: 0; }
.ban-request-feed { background: none; }
.ban-request-card { display: grid; grid-template-columns: 2px minmax(0, 1fr); border-bottom: 1px solid var(--line); background: none; transition: background .12s ease; }
.ban-request-card:last-child { border-bottom: 0; }
.ban-request-card:hover { background: var(--surface-2); }
.ban-request-card[hidden] { display: none; }
.ban-request-stripe { background: transparent; }
.ban-request-card[data-ban-priority="critical"] .ban-request-stripe { background: var(--danger); box-shadow: none; }
.ban-request-body { min-width: 0; padding: 16px; }
.ban-request-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ban-request-id { color: var(--muted); font: 400 12.5px/1 var(--mono); letter-spacing: 0; }
.ban-request-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ban-request-title .player-link { font-size: 15px; }
.ban-request-title > span { color: var(--text-2); font-size: 14px; font-weight: 400; }
.ban-request-evidence { margin: 8px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.ban-review-button { min-height: 30px; }
.ban-alert-control { align-items: center; }
.ban-alert-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--warn-soft); color: var(--warn); font: 400 14px/1 var(--sans); }
.ban-alert-control > div { min-width: 0; flex: 1; }
.ban-alert-control strong { display: block; color: var(--text); font-size: 14px; font-weight: 500; }
.ban-alert-control p { margin: 2px 0 0; color: var(--text-2); font-size: 13.5px; }
.sound-toggle.enabled { background: var(--ok-soft); color: var(--ok); border-color: transparent; }

/* ---------- Player search ---------- */
.search-panel { overflow: visible; position: relative; z-index: 4; }
.search-body { padding: 16px; }
.search-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; color: var(--text-2); font: 400 13px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.search-wrap { position: relative; display: flex; gap: 8px; }
.search-input-wrap { min-width: 0; flex: 1; position: relative; }
.search-input-wrap::before { content: "⌕"; position: absolute; left: 11px; top: 6px; color: var(--muted); font: 18px/1 var(--sans); }
.search-input { height: 34px; padding: 0 44px 0 32px; }
.key-hint { position: absolute; right: 8px; top: 7px; padding: 2px 6px; border-radius: 5px; background: var(--surface-3); color: var(--muted); font: 400 11px/1.4 var(--mono); }
.search-results { display: none; position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--pop); overflow: hidden; }
.search-results.visible { display: block; }
.search-result { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover { background: var(--surface-3); }
.search-result .avatar { width: 26px; height: 26px; }
.result-main strong { display: block; color: var(--text); font-size: 13.5px; font-weight: 500; }
.result-main span { display: block; color: var(--muted); font: 400 12px/1.5 var(--mono); }
.result-status { color: var(--ok); font-size: 12px; text-transform: none; }
.result-status.offline { color: var(--muted); }
.search-scopes { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 12.5px; }
.scope { padding-right: 10px; border-right: 1px solid var(--line); }
.scope:last-child { border: 0; }
.scope:nth-child(n) { color: var(--muted); }

/* ---------- Admin log ---------- */
.log-feed { max-height: 380px; overflow-y: auto; }
.log-row { display: grid; grid-template-columns: 78px 100px minmax(0, 1fr); gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.log-row:last-child { border-bottom: 0; }
.log-time { color: var(--muted); font: 400 12.5px/1.5 var(--mono); }
.log-admin { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-command { min-width: 0; color: var(--text-2); word-break: break-word; }
.log-command code { color: var(--text); font: 400 12.5px/1.5 var(--mono); }
.log-command .target { color: var(--text-2); }

/* ---------- Player profile ---------- */
.view { animation: viewIn .16s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.profile-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; margin-bottom: 24px; }
.identity { display: flex; gap: 14px; align-items: center; }
.identity-avatar.marker-ring.marker-red { border: 2px solid var(--danger); }
.identity-avatar.marker-ring.marker-amber { border: 2px solid var(--warn); }
.identity-avatar.marker-ring.marker-green { border: 2px solid var(--ok); }
.identity-avatar.marker-ring.marker-blue { border: 2px solid var(--accent); }
.identity-avatar.marker-ring.marker-purple { border: 2px solid #9b8fd4; }

.marker-dot {
  display: inline-block; width: 8px; height: 8px; margin-right: 6px;
  border-radius: 50%; vertical-align: middle;
}
.marker-dot.marker-red, .marker-swatch.marker-red { background: var(--danger); }
.marker-dot.marker-amber, .marker-swatch.marker-amber { background: var(--warn); }
.marker-dot.marker-green, .marker-swatch.marker-green { background: var(--ok); }
.marker-dot.marker-blue, .marker-swatch.marker-blue { background: var(--accent); }
.marker-dot.marker-purple, .marker-swatch.marker-purple { background: #9b8fd4; }

.marker-row { display: flex; gap: 6px; margin-top: 10px; }
.marker-swatch {
  width: 16px; height: 16px; padding: 0; border: 1px solid var(--line-2);
  border-radius: 50%; background: var(--surface-3); cursor: pointer;
}
.marker-swatch.marker-none { background: transparent; }
.marker-swatch.on { outline: 2px solid var(--text); outline-offset: 2px; }

.note-actions { display: flex; gap: 8px; margin-top: 8px; }
.timeline { padding: 8px 0; }
.timeline-row {
  display: grid; grid-template-columns: 150px 88px 1fr;
  gap: 12px; align-items: baseline; padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.timeline-kind { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.identity h1 { display: flex; align-items: center; gap: 10px; margin: 0 0 3px; font-size: 22px; }
.identity p { margin: 0; color: var(--muted); font: 400 12.5px/1.5 var(--mono); }
.tabs { display: flex; gap: 2px; padding: 4px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { flex: 0 0 auto; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.tab:hover { color: var(--text-2); }
.tab.active { border-bottom-color: var(--text); color: var(--text); }
.tab-content { min-height: 300px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px; }
.weapon-bar { display: grid; grid-template-columns: 110px 1fr 46px; gap: 12px; align-items: center; padding: 7px 16px; font-size: 13px; }
.bar-track { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.bar-fill { height: 100%; background: var(--line-2); }
.progress { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--line-2); }

/* ---------- Generic cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.content-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.content-card-head { min-height: 0; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.content-card-head strong { flex: 1; font-size: 13.5px; font-weight: 500; }
.content-card-body { padding: 16px; color: var(--text-2); font-size: 13.5px; }
.content-card-body p { margin: 0 0 10px; }
.content-card-body p:last-child { margin-bottom: 0; }

/* ---------- Scratchpad ---------- */
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.scratch-note { margin-bottom: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.scratch-note.done { opacity: .6; }
.note-top { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.note-top strong { flex: 1; color: var(--text); font-size: 14px; font-weight: 500; }
.note-top span { color: var(--muted); font-size: 12.5px; }
.scratch-note p { margin: 0; color: var(--text-2); font-size: 13.5px; }

/* ---------- Chat logs ---------- */
.chat-line { display: grid; grid-template-columns: 62px 64px 132px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.chat-line:hover { background: var(--surface-2); }
.chat-line.is-hit { background: var(--warn-soft); }
.chat-line[hidden] { display: none; }
.chat-time { color: var(--muted); font: 400 12.5px/1.4 var(--mono); }
.channel { color: var(--muted); font-size: 12.5px; text-transform: none; }
.channel.global, .channel.team, .channel.server { color: var(--muted); }
.chat-player { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 500; }
.chat-message { color: var(--text-2); word-break: break-word; }
.chat-line .text-button { justify-self: end; padding: 0 4px; }
.chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
mark.hl-warn, mark.hl-danger, mark.hl-ok, mark.hl-accent { padding: 0 3px; border-radius: 3px; font: inherit; }
mark.hl-warn { background: var(--warn-soft); color: var(--warn); }
mark.hl-danger { background: var(--danger-soft); color: var(--danger); }
mark.hl-ok { background: var(--ok-soft); color: var(--ok); }
mark.hl-accent { background: var(--accent-soft); color: var(--accent); }
.wb-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cap-list { margin: 0; padding: 12px 16px; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.cap-list li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.ctx-menu {
  position: fixed;
  z-index: 80;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--pop);
}
.ctx-menu[hidden] { display: none; }
.ctx-menu button {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.ctx-menu button:hover { background: var(--surface-3); }
.data-table tr.selected { background: var(--accent-soft); }

/* ---------- Live map ---------- */
.livemap-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.livemap-image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}
.livemap-image-field { flex: 1; min-width: 220px; }
.livemap-image-field span { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 12.5px; }
.livemap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}
.livemap-stage {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-height: calc(100vh - 220px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(20, 22, 28, .92), rgba(12, 13, 16, .98)),
    repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(255,255,255,.015) 36px);
}
.livemap-bg, .livemap-canvas, .livemap-pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.livemap-bg { object-fit: cover; opacity: .82; pointer-events: none; }
.livemap-canvas { pointer-events: none; }
.livemap-pins { z-index: 2; }
.livemap-pin {
  position: absolute;
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1.5px solid #0a0a0b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  background: var(--text-2);
}
.livemap-pin.sleeping { opacity: .45; }
.livemap-pin.selected { box-shadow: 0 0 0 3px var(--accent); z-index: 3; }
.livemap-pin-label {
  position: absolute;
  left: 13px;
  top: -7px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(10, 10, 11, .72);
  color: var(--text);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
}
.livemap-roster {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.livemap-roster-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.livemap-roster-row:hover, .livemap-roster-row.selected { background: var(--surface-2); }
.livemap-roster-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.livemap-swatch { width: 8px; height: 8px; border-radius: 50%; }
.livemap-popout { min-height: 100vh; padding: 16px 18px 20px; }
.livemap-popout .livemap-toolbar { margin-bottom: 12px; }
.livemap-layout-popout { height: calc(100vh - 72px); grid-template-rows: minmax(0, 1fr); }
.livemap-layout-popout .livemap-stage { max-height: none; height: 100%; }
.livemap-layout-popout .livemap-roster { max-height: none; height: 100%; }

/* ---------- Art logs ---------- */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.art-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.art-preview { height: 120px; display: grid; place-items: center; position: relative; border-bottom: 1px solid var(--line); background: var(--surface-3); color: var(--muted); font-size: 12.5px; letter-spacing: 0; }
.art-preview::after { content: "No preview"; }
.art-info { padding: 13px; }
.art-info strong { display: block; font-size: 13.5px; font-weight: 500; }
.art-info p { margin: 5px 0 12px; color: var(--muted); font-size: 12.5px; }
.art-actions { display: flex; gap: 7px; }

/* ---------- Managers / alerts ---------- */
.management-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
.manager-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px; }
.manager { padding: 13px; display: flex; gap: 11px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; cursor: pointer; text-align: left; }
.manager:hover { background: var(--surface-2); }
.manager.selected { border-color: var(--line-2); background: var(--surface-3); }
.manager .avatar { flex: 0 0 26px; }
.manager strong { display: block; font-size: 13.5px; font-weight: 500; }
.manager span { display: block; color: var(--muted); font-size: 12.5px; }
.availability { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.availability.away { background: var(--warn); }

/* ---------- Virtual admin view ---------- */
.spectate-toolbar { display: flex; align-items: end; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); background: none; }
.spectate-toolbar .field { flex: 1; margin: 0; }
.spectate-toolbar .input { border-color: var(--line-2); color: var(--text); font-family: var(--mono); letter-spacing: 0; }
.spectate-toolbar .primary-button { min-width: 140px; }
.spectate-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; padding: 16px; }
.spectate-main { min-width: 0; display: grid; gap: 12px; }
.spectate-stage { min-height: 400px; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.spectate-stage::before { content: none; }
.spectate-stage.connecting::after { content: none; }
.spectate-center { position: relative; z-index: 2; max-width: 420px; padding: 24px; text-align: center; }
.spectate-center strong { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 500; }
.spectate-center p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.spectate-crosshair { width: 26px; height: 26px; position: relative; margin: 0 auto 18px; opacity: .5; }
.spectate-crosshair::before, .spectate-crosshair::after { content: ""; position: absolute; background: var(--text-2); box-shadow: none; }
.spectate-crosshair::before { width: 26px; height: 1px; left: 0; top: 12px; }
.spectate-crosshair::after { width: 1px; height: 26px; left: 12px; top: 0; }
.spectate-hud { position: absolute; z-index: 3; inset: 12px; display: none; pointer-events: none; }
.spectate-stage.live .spectate-hud { display: block; }
.hud-top, .hud-bottom { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hud-top { top: 0; }
.hud-bottom { bottom: 0; align-items: flex-end; }
.hud-stack { display: grid; gap: 6px; }
.hud-stack.right { justify-items: end; }
.hud-chip { width: max-content; max-width: 250px; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(10, 10, 11, .8); color: var(--text-2); font: 400 12px/1.4 var(--mono); backdrop-filter: blur(4px); }
.hud-chip.live, .hud-chip.player, .hud-chip.server, .hud-chip.warning { border-color: var(--line-2); color: var(--text-2); }
.spectate-reticle { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%); border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; }
.spectate-reticle::before, .spectate-reticle::after { content: ""; position: absolute; background: rgba(255, 255, 255, .28); }
.spectate-reticle::before { width: 28px; height: 1px; left: -4px; top: 9px; }
.spectate-reticle::after { width: 1px; height: 28px; left: 9px; top: -4px; }
.spectate-side { display: grid; align-content: start; gap: 12px; }
.session-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.session-card h3 { margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); font: 500 13.5px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.session-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.session-row:last-child { border-bottom: 0; }
.session-row span:first-child { color: var(--muted); font-family: var(--sans); }
.session-row strong { min-width: 0; overflow: hidden; color: var(--text-2); font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.session-actions { display: grid; gap: 8px; padding: 14px; }
.session-actions button { width: 100%; }
.event-strip { display: grid; grid-template-columns: 76px 84px minmax(0, 1fr); gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.event-strip:last-child { border-bottom: 0; }
.event-strip .event-type { color: var(--text-2); font: 400 12.5px/1.4 var(--sans); }
.event-strip .event-time { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }

/* ---------- Leaderboard ---------- */
.leader-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.podium { position: relative; min-height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: none; }
.podium.first { border-color: var(--line-2); box-shadow: none; }
.rank { position: absolute; top: 12px; left: 14px; color: var(--muted); font: 400 12.5px/1 var(--mono); }
.podium .avatar { width: 38px; height: 38px; font-size: 13px; }
.podium strong { font-size: 14px; font-weight: 500; }
.podium span { color: var(--muted); font-size: 12.5px; }

.board-group { margin-bottom: 14px; }
.board-group .section-label { padding: 8px 2px 6px; }
.board-leaders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
}
.board-card {
  min-height: 78px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.board-card:hover { background: var(--surface-2); }
.board-card.active { background: var(--surface-3); border-color: var(--line-2); }
.board-card.empty { opacity: .55; }
.board-card small { color: var(--muted); font-size: 11px; font-weight: 500; }
.board-card strong { font-size: 13px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-card .board-value { color: var(--text-2); font: 400 12px/1.4 var(--mono); }

/* ---------- Staff hierarchy ---------- */
.hierarchy-ladder { display: grid; gap: 12px; }
.tier-card { --tier: var(--text-2); position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: none; }
.tier-card::before { content: none; }
.tier-management, .tier-senior-admin, .tier-admin, .tier-senior-mod, .tier-moderator, .tier-trial, .tier-inactive { --tier: var(--text-2); }
.tier-header { min-height: 0; display: flex; align-items: center; gap: 14px; padding: 16px; }
.tier-identity { min-width: 0; flex: 1; }
.tier-level { display: none; }
.tier-title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.tier-title-row h2 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.2; }
.tier-count { color: var(--muted); font-size: 13px; }
.responsibility-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); background: transparent; }
.responsibility-glyph { display: none; }
.tier-members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px 16px; }
.staff-member { min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: none; }
.staff-member.is-inactive { border-style: dashed; background: none; }
.staff-avatar { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-3); color: var(--text-2); font: 400 11px/1 var(--sans); }
.staff-member-copy { min-width: 0; flex: 1; }
.staff-member-copy strong { display: block; overflow: hidden; color: var(--text); font-size: 13.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.staff-member-copy > .staff-role { display: block; margin-top: 1px; overflow: hidden; color: var(--muted); font: 400 12.5px/1.4 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.member-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 12.5px; text-transform: none; }
.member-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.member-status.online { color: var(--muted); }
.member-status.away { color: var(--warn); }
.staff-identities { display: grid; gap: 4px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.staff-identity-row { min-width: 0; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 12.5px; }
.staff-identity-row span { color: var(--muted); }
.staff-identity-row code { min-width: 0; overflow: hidden; color: var(--text-2); font: 400 12.5px/1.4 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.responsibility-panel { padding: 14px 16px 16px; border-top: 1px solid var(--line); background: none; }
.responsibility-panel[hidden] { display: none; }
.responsibility-panel strong { display: block; margin-bottom: 8px; color: var(--muted); font: 400 12.5px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.responsibility-panel ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; list-style: none; }
.responsibility-panel li { position: relative; padding-left: 14px; color: var(--text-2); font-size: 13.5px; }
.responsibility-panel li::before { content: ""; position: absolute; left: 0; top: .68em; width: 4px; height: 1px; background: var(--line-2); }

/* ---------- Wiki ---------- */
.wiki-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 210px; gap: 20px; align-items: start; }
.wiki-sidebar { position: sticky; top: 80px; overflow: hidden; }
.wiki-search-wrap { padding: 14px; border-bottom: 1px solid var(--line); }
.wiki-search-wrap label { display: block; margin-bottom: 7px; color: var(--text-2); font: 400 13px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.wiki-nav { padding: 8px; }
.wiki-link { width: 100%; display: grid; gap: 2px; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-2); text-align: left; cursor: pointer; }
.wiki-link:hover { background: var(--surface-2); color: var(--text); }
.wiki-link.active { background: var(--surface-3); color: var(--text); }
.wiki-link span { font-size: 13.5px; font-weight: 450; }
.wiki-link small { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.wiki-owner { display: grid; gap: 3px; padding: 13px 14px; border-top: 1px solid var(--line); background: none; }
.wiki-owner > span { color: var(--muted); font: 400 12px/1.3 var(--sans); letter-spacing: 0; }
.wiki-owner strong { font-size: 13.5px; font-weight: 500; }
.wiki-owner small { color: var(--muted); font-size: 12.5px; }
.wiki-article { min-width: 0; overflow: hidden; }
.wiki-article-head { min-height: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px; border-bottom: 1px solid var(--line); background: none; }
.wiki-category { display: block; margin-bottom: 6px; color: var(--muted); font: 400 12.5px/1 var(--sans); letter-spacing: 0; }
.wiki-article-head h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.wiki-article-head p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.wiki-read-time { flex: 0 0 auto; padding: 2px 8px; border: 0; border-radius: 20px; background: var(--surface-3); color: var(--muted); font-size: 12px; }
.wiki-article-body { padding: 24px 22px; color: var(--text-2); font-size: 15px; line-height: 1.7; }
.wiki-article-body > p:first-child { margin-top: 0; color: var(--text); }
.wiki-article-body h3 { margin: 28px 0 8px; color: var(--text); font-size: 15px; font-weight: 550; }
.wiki-article-body ul, .wiki-article-body ol { margin: 8px 0; padding-left: 20px; }
.wiki-article-body li { margin: 6px 0; padding-left: 3px; }
.wiki-article-body li::marker { color: var(--muted); }
.wiki-rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wiki-rule-grid > div { min-height: 0; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: none; }
.wiki-rule-grid strong, .wiki-rule-grid span { display: block; }
.wiki-rule-grid strong { margin-bottom: 4px; color: var(--text); font-size: 13.5px; font-weight: 500; }
.wiki-rule-grid span { color: var(--text-2); font-size: 13px; }
.wiki-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
.wiki-table th, .wiki-table td { padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wiki-table th { background: none; color: var(--muted); font: 400 12.5px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.wiki-table td:first-child { color: var(--text); font-weight: 450; white-space: nowrap; }
.wiki-example { margin: 18px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.wiki-example span { color: var(--muted); font: 400 12.5px/1.3 var(--sans); letter-spacing: 0; }
.wiki-example p { margin: 6px 0 0; color: var(--text-2); }
.wiki-code { overflow-x: auto; margin: 12px 0 0; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font: 400 12.5px/1.6 var(--mono); }
.wiki-article-foot { min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); background: none; color: var(--muted); font-size: 13px; }
.wiki-article-foot div { display: flex; gap: 8px; }
.wiki-rail { display: grid; gap: 12px; }
.wiki-quick-links { display: grid; padding: 8px; }
.wiki-quick-links button { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-2); text-align: left; cursor: pointer; font-size: 13.5px; }
.wiki-quick-links button:hover { color: var(--text); background: var(--surface-2); }
.wiki-quick-links button span { color: var(--muted); font-size: 12.5px; }
.wiki-review { padding: 16px; border-color: var(--line); background: var(--surface); }
.wiki-review span, .wiki-review strong, .wiki-review p { display: block; }
.wiki-review span { color: var(--muted); font: 400 12.5px/1.3 var(--sans); letter-spacing: 0; }
.wiki-review strong { margin-top: 6px; color: var(--text); font-size: 16px; font-weight: 500; }
.wiki-review p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.wiki-editor { min-height: 320px; padding: 13px; font: 400 12.5px/1.7 var(--mono); }

/* ---------- Console ---------- */
.console-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.console-panel { min-width: 0; overflow: hidden; background: var(--surface); }
.console-toolbar { min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: none; }
.console-toolbar > div { display: flex; align-items: center; gap: 8px; }
.console-toolbar strong { font: 500 13.5px/1 var(--sans); }
.console-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: none; }
.console-dot.is-paused { background: var(--warn); }
.console-tools { gap: 4px !important; }
.console-output { height: min(58vh, 580px); min-height: 400px; overflow: auto; padding: 8px 0; background: var(--bg); }
.console-line { min-width: 600px; display: grid; grid-template-columns: 72px 70px minmax(0, 1fr); gap: 10px; padding: 3px 16px; border-left: 2px solid transparent; color: var(--text-2); font: 400 12.5px/1.65 var(--mono); }
.console-line:hover { border-left-color: var(--line-2); background: var(--surface-2); }
.console-line.new-line { animation: consoleIn .18s ease both; }
.console-line.is-filtered, .console-line.is-search-hidden { display: none; }
.console-line.is-long { cursor: pointer; }
.console-line.is-long:not(.expanded) code { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes consoleIn { from { opacity: 0; } }
.console-line time { color: var(--muted); }
.console-line code { color: var(--text-2); font: inherit; white-space: pre-wrap; word-break: break-word; }
.console-source { font-weight: 400; color: var(--muted); }

.log-output {
  height: min(62vh, 640px);
  overflow: auto;
  padding: 8px 0;
  background: var(--bg);
}
.log-line {
  display: grid;
  grid-template-columns: 136px 72px 64px minmax(72px, 140px) minmax(0, 1fr);
  gap: 8px 10px;
  padding: 4px 16px;
  border-left: 2px solid transparent;
  color: var(--text-2);
  font: 400 12.5px/1.55 var(--mono);
}
.log-line:hover { background: var(--surface-2); }
.log-line time, .log-source, .log-plugin { color: var(--muted); }
.log-line .log-plugin:empty { visibility: hidden; }
.log-line .log-level { color: var(--text-2); }
.log-line.level-error { border-left-color: var(--danger); }
.log-line.level-warning { border-left-color: var(--warn); }
.log-line.level-error .log-level { color: var(--danger); }
.log-line.level-warning .log-level { color: var(--warn); }
.log-line.level-info .log-level { color: var(--ok); }
.log-line code { color: var(--text-2); font: inherit; white-space: pre-wrap; word-break: break-word; }
.source-system, .source-rcon, .source-admin, .source-chat, .source-entity { color: var(--muted); }
.console-command { min-height: 0; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.console-command > span { color: var(--muted); font: 400 14px/1 var(--mono); text-align: center; }
.console-command input { min-width: 0; height: 32px; border: 0; background: transparent; color: var(--text); font: 400 13px/1 var(--mono); outline: 0; }
.console-notice { padding: 9px 16px; border-top: 1px solid var(--line); background: none; color: var(--muted); font-size: 12.5px; text-align: center; }
.console-side { display: grid; gap: 12px; }
.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; background: none; }
.health-grid > div { padding: 0; background: none; }
.health-grid span { display: block; color: var(--muted); font-size: 12.5px; text-transform: none; }
.health-grid strong { display: block; margin: 5px 0 7px; font: 400 16px/1 var(--sans); }
.health-grid i { height: 3px; display: block; overflow: hidden; border-radius: 2px; background: var(--surface-3); }
.health-grid i::before { content: ""; width: var(--health); height: 100%; display: block; background: var(--line-2); }
.command-shortcuts { display: grid; padding: 8px; }
.command-shortcuts .bookmark-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; }
.command-shortcuts button { display: grid; gap: 2px; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.command-shortcuts button:hover { background: var(--surface-2); }
.command-shortcuts .text-button { padding: 4px 8px; color: var(--muted); }
.command-shortcuts code { color: var(--text); font: 400 12.5px/1.4 var(--mono); }
.command-shortcuts span { color: var(--muted); font-size: 12.5px; }
.console-audit { padding: 16px; }
.console-audit > span { color: var(--muted); font: 400 12.5px/1.3 var(--sans); letter-spacing: 0; }
.console-audit strong { display: block; margin-top: 5px; font-size: 13.5px; font-weight: 500; }
.console-audit p { margin: 5px 0 0; color: var(--text-2); font-size: 13px; }

/* ---------- Files ---------- */
.files-layout { display: grid; grid-template-columns: 180px minmax(320px, 1fr) 300px; gap: 16px; align-items: start; }
.file-tree { overflow: hidden; }
.file-tree nav { padding: 8px; }
.file-tree nav button { width: 100%; min-height: 30px; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 5px 8px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-2); text-align: left; cursor: pointer; }
.file-tree nav button:hover { background: var(--surface-2); }
.file-tree nav button.active { background: var(--surface-3); color: var(--text); }
.file-tree nav button.depth-1 { padding-left: 20px; }
.file-tree nav button.depth-2 { padding-left: 32px; }
.file-tree nav button span { color: var(--muted); font-size: 12px; }
.file-tree nav button strong { overflow: hidden; font: 400 13px/1.3 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.file-tree nav button small { color: var(--muted); font-size: 12px; }
.storage-meter { padding: 14px; border-top: 1px solid var(--line); background: none; }
.storage-meter > div { display: flex; justify-content: space-between; gap: 8px; color: var(--text-2); font-size: 12.5px; }
.storage-meter > i { height: 3px; display: block; margin: 8px 0; overflow: hidden; border-radius: 2px; background: var(--surface-3); }
.storage-meter > i span { width: 48%; height: 100%; display: block; background: var(--line-2); }
.storage-meter small { color: var(--muted); font-size: 12px; }
.file-browser { min-width: 0; overflow: hidden; }
.file-toolbar { min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.file-toolbar > div { display: flex; align-items: center; gap: 6px; }
.file-breadcrumb { min-width: 0; overflow: hidden; font: 400 12.5px/1.4 var(--mono); white-space: nowrap; }
.file-breadcrumb span { color: var(--text-2); }
.file-breadcrumb b { color: var(--muted); font-weight: 400; }
.file-breadcrumb strong { color: var(--text); font-weight: 400; }
.file-table tr[data-file-path] { cursor: pointer; }
.file-table tr.selected td { background: var(--surface-3); }
.file-table tr.selected td:first-child { box-shadow: none; }
.file-kind { width: 18px; display: inline-block; color: var(--muted); font: 400 13px/1 var(--sans); }
.file-kind.folder, .file-kind.file { color: var(--muted); }
.file-footer { min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.file-editor { min-width: 0; overflow: hidden; }
.file-editor-head { min-height: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); background: none; }
.file-editor-head > div { min-width: 0; }
.file-editor-head span:first-child { display: block; color: var(--muted); font: 400 12px/1.3 var(--sans); letter-spacing: 0; }
.file-editor-head strong { display: block; margin-top: 4px; overflow: hidden; color: var(--text); font: 400 13px/1.3 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.file-editor-head small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-editor textarea { width: 100%; min-height: 360px; display: block; resize: vertical; padding: 14px; border: 0; border-bottom: 1px solid var(--line); background: var(--bg); color: var(--text-2); font: 400 12.5px/1.7 var(--mono); outline: 0; tab-size: 2; }
.file-editor textarea:focus { box-shadow: none; }
.file-editor-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px; }

/* ---------- Permissions ---------- */
.two-pane { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.pane-list { display: flex; flex-direction: column; padding: 8px; }
.pane-list button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-2); font: 13.5px var(--sans); text-align: left; cursor: pointer;
}
.pane-list button:hover { background: var(--surface-2); color: var(--text); }
.pane-list button.active { background: var(--surface-3); color: var(--text); box-shadow: none; }

/* ---------- Charts ---------- */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-box { padding: 16px; height: 230px; position: relative; }

/* ---------- Give-items basket ---------- */
.basket-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font: 400 13px var(--mono); }
.basket-row .basket-name { flex: 1; color: var(--text); }
.basket-row input { width: 72px; }

/* ---------- Modals ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 20px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.modal-backdrop.open { display: grid; }
.modal { width: min(560px, 100%); max-height: 88vh; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); box-shadow: var(--pop); }
.modal-head { min-height: 0; display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head strong { flex: 1; font-size: 15px; font-weight: 500; }
.close-button { width: 28px; height: 28px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; }
.close-button:hover { background: var(--surface-3); color: var(--text); }
.modal-body { padding: 18px; }
.modal-body .field:last-child { margin-bottom: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); background: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 120; right: 24px; bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 11px 14px; display: flex; gap: 10px; align-items: center;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface-2); box-shadow: var(--pop);
  color: var(--text); font-size: 13.5px;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: .18s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast > span:first-child { color: var(--ok); }

.sidebar-scrim { display: none; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .wiki-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .wiki-rail { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1120px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .feed { max-height: 520px; }
  .metric-row, .ban-metric-row, .hierarchy-overview, .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .art-grid { grid-template-columns: repeat(2, 1fr); }
  .management-grid { grid-template-columns: 1fr; }
  .spectate-layout { grid-template-columns: 1fr; }
  .livemap-layout, .livemap-layout-popout { grid-template-columns: 1fr; }
  .livemap-stage { max-height: none; }
  .spectate-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier-members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-layout { grid-template-columns: 1fr; }
  .console-side { grid-template-columns: 1fr 1fr 1fr; }
  .files-layout { grid-template-columns: 170px minmax(0, 1fr); }
  .file-editor { grid-column: 1 / -1; }
  .chart-grid, .two-pane { grid-template-columns: 1fr; }
}
@media (max-width: 840px) {
  .app { grid-template-columns: 1fr; }
  .main { grid-column: 1; }
  .sidebar { transform: translateX(-102%); transition: transform .2s ease; }
  .sidebar.open { transform: none; }
  .sidebar-scrim.open { display: block; }
  .mobile-menu { display: block; }
  .topbar { padding: 0 16px; }
  .top-status { display: none; }
  .workspace { padding: 24px 16px 48px; }
  .alert-banner { margin: 14px 16px 0; }
  .split-layout { grid-template-columns: 1fr; }
  .profile-head { grid-template-columns: 1fr; }
  .leader-top { grid-template-columns: 1fr; }
  .wiki-layout, .files-layout { grid-template-columns: 1fr; }
  .wiki-sidebar { position: static; }
  .wiki-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .wiki-rail, .console-side { grid-column: auto; grid-template-columns: 1fr; }
  .file-editor { grid-column: auto; }
}
@media (max-width: 620px) {
  .server-select { display: none; }
  .metric-row, .ban-metric-row, .hierarchy-overview, .profile-grid, .stat-cards { grid-template-columns: 1fr 1fr; }
  .page-heading { flex-direction: column; gap: 10px; }
  .timestamp { text-align: left; }
  .dashboard-grid { display: block; }
  .right-stack { margin-top: 16px; }
  .panel-header { flex-wrap: wrap; }
  .panel-tools { width: 100%; }
  .panel-tools select { flex: 1; }
  .report-top, .ban-request-top { flex-wrap: wrap; }
  .report-time, .ban-request-top time { width: 100%; margin-left: 0; }
  .report-actions { align-items: stretch; flex-wrap: wrap; }
  .ban-alert-control { align-items: flex-start; flex-wrap: wrap; }
  .ban-request-actions { align-items: stretch; flex-direction: column; }
  .ban-request-actions button { width: 100%; }
  .claim-owner { flex-basis: 100%; }
  .search-wrap { flex-direction: column; }
  .cards-grid, .art-grid, .manager-list { grid-template-columns: 1fr; }
  .chat-line { grid-template-columns: 52px 56px minmax(80px, 104px) minmax(170px, 1fr) auto; min-width: 520px; }
  .form-grid { grid-template-columns: 1fr; }
  .spectate-toolbar { align-items: stretch; flex-direction: column; }
  .spectate-toolbar .primary-button { width: 100%; }
  .spectate-stage { min-height: 300px; }
  .spectate-side { grid-template-columns: 1fr; }
  .identity { align-items: flex-start; }
  .button-row { width: 100%; }
  .button-row button { flex: 1 1 140px; }
  .tier-header { align-items: stretch; flex-direction: column; }
  .tier-members { grid-template-columns: 1fr; }
  .responsibility-panel ul { grid-template-columns: 1fr; }
  .wiki-nav, .wiki-rule-grid { grid-template-columns: 1fr; }
  .wiki-article-head, .wiki-article-foot { align-items: flex-start; flex-direction: column; }
  .wiki-article-body { padding: 18px; }
  .console-output { min-height: 340px; }
  .log-output { min-height: 280px; }
  .log-line { grid-template-columns: 72px 64px minmax(0, 1fr); }
  .log-line time { grid-column: 1; }
  .log-line .log-level { grid-column: 2; }
  .log-line .log-source, .log-line .log-plugin { display: none; }
  .log-line code { grid-column: 1 / -1; }
  .console-command { grid-template-columns: 14px minmax(0, 1fr); }
  .console-command .primary-button { grid-column: 1 / -1; }
  .file-toolbar, .file-footer { align-items: stretch; flex-direction: column; }
  .file-editor-head { flex-direction: column; }
  .health-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
