/* Kroje według docs/STYLE_GUIDE.md (D-097): Barlow w tekście, Barlow Condensed w liczbach,
   napis DRYBLIN krojem Sedgwick Ave Display jak logo. Pliki TTF i licencje OFL w /assets. */
@font-face { font-family: Barlow; src: url('/assets/barlow-400.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Barlow; src: url('/assets/barlow-500.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Barlow; src: url('/assets/barlow-700.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/assets/barlow-condensed-700.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sedgwick Ave Display'; src: url('/assets/sedgwick-ave-display.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

/* Panel jest narzędziem: spokojne tło, normalne zdania, jedna mała odmiana tekstu (.small).
   Barwa administracji (D-059, właściciel 2026-10-03): czerwień #E05252 i jasna czerwień #FF9187 jako akcent.
   D-070: tła i linie w granacie jak okna w grze, aktywna pozycja menu wypełniona czerwienią jak panel admina
   w grze; zieleń zostaje tylko przy stanie „Działa” (D-062). */
:root {
  color-scheme: dark;
  --bg: #0a0e1a;
  --surface: #121a2e;
  --surface-2: #18213d;
  --line: #26324f;
  --fg: #eef1f8;
  --muted: #a3adc6;
  --red: #e05252;
  --red-light: #ff9187;
  --red-ink: #1c0606;
  --red-wash: #2b1a26;
  --ok: #a9cf8f;
  --warn: #e9bf7c;
  --bad: #ff9187;
  --pink: #ff3d9a;
  --font-num: 'Barlow Condensed', 'Bahnschrift', sans-serif;
  font-family: Barlow, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--fg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-size: 2.25rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.1875rem; font-weight: 700; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .5; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--red-light); outline-offset: 3px; }
/* main dostaje fokus programowo po zmianie widoku i ze skip-linku; obwódka wokół całej treści niczego nie wskazuje. */
main:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--fg); color: var(--bg); font-weight: 700; }
.skip-link:focus { top: 12px; }
/* Logo D-075: napis DRYBLIN, białe litery z twardym różowym cieniem, bez zmiany kolorów. */
.wordmark { padding: 0 .1em 4px 0; font: 400 1.75rem/1 'Sedgwick Ave Display', Barlow, sans-serif; text-transform: uppercase; text-decoration: none; color: #fff; text-shadow: .055em .055em 0 var(--pink); }
.boot { min-height: 100svh; display: flex; align-items: center; justify-content: center; gap: 24px; }
.boot p { color: var(--muted); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px;
  background: var(--red); color: var(--red-ink); font-weight: 700; text-decoration: none;
}
.button:hover:not(:disabled) { background: var(--red-light); }
.button.secondary { background: var(--surface-2); color: var(--fg); border-color: var(--line); }
.button.secondary:hover:not(:disabled), .button.quiet:hover:not(:disabled) { background: var(--red-wash); border-color: var(--red); }
.button.quiet { background: transparent; color: var(--fg); border-color: var(--line); }
.button.small { min-height: 40px; padding: 8px 16px; }
.button.discord { background: #5865f2; color: #fff; width: 100%; min-height: 54px; font-size: 1.0625rem; }

.tag { display: inline-block; font-weight: 700; white-space: nowrap; }
.tag.online { color: var(--ok); }
.tag.offline { color: var(--muted); }
.tag.maintenance { color: var(--warn); }
.tag.unavailable { color: var(--bad); }

/* Logowanie: jedno zadanie, blok na środku ekranu. */
.login-page { min-height: 100svh; padding: 40px 20px; display: grid; place-items: center; }
.login-card { width: min(100%, 28rem); display: grid; gap: 22px; text-align: center; }
.login-card .wordmark { justify-self: center; }
.login-card p { color: var(--muted); font-size: 1.0625rem; }
.login-alert { padding: 14px 16px; border-radius: 6px; background: var(--red-wash); color: var(--bad) !important; }
.login-return a { color: var(--fg); }

/* Układ po zalogowaniu. */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100svh; background: #0d1220; }
.workspace { background: var(--bg); }
.sidebar {
  position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 28px;
  padding: 28px 18px 20px; background: #0d1220; border-right: 1px solid var(--line); overflow-y: auto;
  transition: transform .25s ease;
}
.sidebar > .wordmark { padding: 0 12px; }
.sidebar nav { display: grid; gap: 22px; }
.nav-group { display: grid; gap: 2px; }
.nav-title { padding: 0 12px 6px; color: var(--muted); font-size: .875rem; }
.nav-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-link:hover { background: var(--surface); color: var(--fg); }
.nav-link.active { background: var(--red); color: #fff; font-weight: 700; }
.nav-link.active .count { background: #fff; color: var(--red); }
.count { min-width: 1.6rem; padding: 1px 6px; border-radius: 4px; background: var(--red); color: var(--red-ink); font-family: var(--font-num); font-size: .875rem; font-weight: 700; text-align: center; }
.side-bottom { margin-top: auto; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.identity { display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
.identity-text { flex: 1; min-width: 0; }
.identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity small { display: block; color: var(--muted); font-size: .9375rem; }
.logout { border: 1px solid var(--line); background: none; border-radius: 6px; padding: 8px 12px; }

.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 18px clamp(20px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.refresh-time { color: var(--muted); }
.mobile-toggle { display: none; margin-right: auto; border: 1px solid var(--line); background: none; border-radius: 6px; padding: 10px 16px; font-weight: 700; }
.main { padding: 36px clamp(20px, 3vw, 40px) 64px; max-width: 1180px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.page-heading p { color: var(--muted); margin-top: 10px; font-size: 1.0625rem; }
.page-heading .tag { margin-top: 12px; font-size: 1.0625rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 44px 0 16px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel.host { padding: 24px; display: grid; gap: 20px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.panel-heading p { color: var(--muted); margin-top: 6px; }
.panel-body { padding: 24px; }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.metric { display: grid; gap: 4px; }
.metric-label { color: var(--muted); }
.metric-number { font-family: var(--font-num); font-size: 1.625rem; font-weight: 700; line-height: 1.1; }
.metric-sub { color: var(--muted); font-size: .9375rem; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 8px 0 4px; }
.meter span { display: block; width: 0; height: 100%; background: var(--fg); transition: none; }

.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.server-card { display: grid; gap: 14px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.server-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.server-mode { color: var(--muted); }
.server-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0; }
.server-stats dt { color: var(--muted); }
.server-stats dd { font-family: var(--font-num); font-size: 1.625rem; font-weight: 700; line-height: 1.1; }
.server-card .button { justify-self: start; }

.empty { padding: 36px 24px; color: var(--muted); }
.empty strong { display: block; color: var(--fg); margin-bottom: 6px; }
.table-scroll { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 14px 24px; font-weight: 700; color: var(--muted); background: #141c33; white-space: nowrap; }
td { padding: 16px 24px; border-top: 1px solid var(--line); white-space: nowrap; }
td small { font-size: .9375rem; }
td.subtle { color: var(--muted); }
td.wrap { white-space: normal; min-width: 180px; max-width: 380px; }
.operation-ok { color: var(--ok); }
.operation-pending { color: var(--warn); }
.operation-error { color: var(--bad); }

.notice { padding: 16px 18px; border-radius: 6px; background: var(--surface-2); margin-bottom: 24px; }
.notice.warning { background: #2c2614; color: var(--warn); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 20px; }
.keyvalue { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.keyvalue:first-child { padding-top: 0; }
.keyvalue:last-child { border-bottom: 0; padding-bottom: 0; }
.keyvalue span { color: var(--muted); }
.keyvalue strong { text-align: right; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.action-item { display: block; padding: 16px 18px; text-align: left; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.action-item:hover:not(:disabled) { border-color: var(--red); background: var(--red-wash); }
.action-item strong { display: block; }
.action-item small { display: block; color: var(--muted); font-size: .9375rem; margin-top: 4px; }
.action-help { margin-top: 20px; color: var(--muted); max-width: 70ch; }

.view-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.view-tabs button { padding: 10px 18px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; }
.view-tabs button.active { background: var(--red-wash); color: var(--red-light); border-color: var(--red); }

label { display: block; margin: 20px 0 8px; font-weight: 700; }
input, textarea, select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #0b1222; }
select { padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: #7d88a6; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled { opacity: .55; }
select:disabled, input:disabled { opacity: .5; cursor: not-allowed; }
fieldset:disabled select:disabled, fieldset:disabled input:disabled { opacity: 1; }
textarea { resize: vertical; }
.access-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.access-form label { margin: 0; }
.access-form input { margin-top: 8px; }
.error-card { padding: 28px; border-radius: 8px; background: var(--red-wash); display: grid; gap: 14px; justify-items: start; }
.error-card p { color: var(--bad); }

dialog { width: min(34rem, calc(100% - 32px)); padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
dialog::backdrop { background: rgba(4, 7, 16, .72); }
#reason-field label { margin-top: 20px; }
#confirm-description { margin-top: 10px; }
.form-error { margin-top: 12px; color: var(--bad); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: 28rem; padding: 16px 20px; border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 600; box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.toast.error { background: #3a1c24; color: var(--bad); }
.noscript { padding: 24px; }

/* Moderacja: filtry, formularze, listy zgłoszeń i alertów, profil konta, harmonogram. */
.moderation { margin-bottom: 28px; }
.moderation-pending { color: var(--muted); margin-bottom: 28px; max-width: 70ch; }
.link-row { text-decoration: none; }
.link-row:hover strong, .link-row:hover span { color: var(--red-light); }
.state-active { color: var(--red-light); font-weight: 700; }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 16px; }
.toolbar .view-tabs { margin: 0; }
.field-inline { margin: 0; display: grid; gap: 6px; }
.field-inline input, .field-inline select { min-height: 42px; width: auto; min-width: 12rem; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: end; }
.form-grid label, .form-stack label { margin: 0; }
.form-grid input, .form-grid select, .form-stack input, .form-stack select, .form-stack textarea { margin-top: 8px; }
.form-stack { display: grid; gap: 18px; justify-items: start; }
.form-stack label { width: 100%; }
.span-all { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions p { flex: 1; min-width: 14rem; }
.linked { color: var(--muted); }
.link-button { border: 0; padding: 0; background: none; color: var(--red-light); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.pending { padding: 30px 24px; display: grid; gap: 6px; }
.pending strong { color: var(--red-light); }
.pending p { color: var(--muted); max-width: 62ch; }
.item-list { display: grid; gap: 12px; }
.item { display: grid; gap: 10px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.item-closed { background: transparent; }
.item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.item-head h3 { margin-right: auto; }
.item-meta { color: var(--muted); }
.item-text { max-width: 70ch; }
.state { font-weight: 700; }
.state.open, .state.confirmed { color: var(--red-light); }
.state.assigned { color: var(--warn); }
.state.closed, .state.dismissed, .state.legit_exception { color: var(--muted); }
.item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.item-actions .label { color: var(--muted); margin-left: 8px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.search-form { display: grid; grid-template-columns: minmax(0, 28rem) auto; gap: 12px; align-items: end; margin-bottom: 24px; }
.search-form label { margin: 0; }
.search-form input { margin-top: 8px; }
.note-form { display: grid; gap: 12px; justify-items: start; }
.note-form label { width: 100%; margin: 0; }
.note-form textarea { margin-top: 8px; }
.notes { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.notes li { padding-top: 14px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.notes small { display: block; margin-bottom: 4px; color: var(--muted); font-size: .9375rem; }
.notes-empty { margin-top: 18px; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.schedule-form { display: grid; gap: 18px; justify-items: start; }
.schedule-form > label:not(.check) { width: 100%; margin: 0; }
.schedule-form > label:not(.check) input { margin-top: 8px; }
.check { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; }
.check input { width: 20px; height: 20px; min-height: 20px; padding: 0; accent-color: var(--red); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.checks legend { padding: 0; margin-bottom: 10px; font-weight: 700; }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: min(290px, 86vw); transform: translateX(-102%); }
  .nav-open .sidebar { transform: none; }
  .mobile-toggle { display: inline-block; }
  .metrics, .server-grid, .detail-grid, .action-grid, .access-form, .form-grid, .search-form, .schedule-grid { grid-template-columns: minmax(0, 1fr); }
  .field-inline, .field-inline input, .field-inline select { width: 100%; min-width: 0; }
  .toolbar { display: grid; }
  .page-heading { flex-direction: column; }
  .topbar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .meter span { transition: none; }
}

/* Konsola POLL-18: istniejące kolory i fonty. */
.console-toolbar,.console-command{display:flex;gap:1rem;align-items:end;flex-wrap:wrap;margin-bottom:1rem}
.console-toolbar label,.console-command label{display:grid;gap:.4rem;min-width:0}
.console-toolbar label:has(input),.console-command label:has(input:not([type=checkbox])){flex:1 1 12rem}
.console-toolbar input,.console-toolbar select,.console-command input{max-width:100%;min-width:0}
.console-log{height:24rem;overflow:auto;overflow-wrap:anywhere;background:var(--panel,#0d1220);border:1px solid var(--line,#1c2540);padding:1rem;white-space:pre-wrap;font:14px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}
.console-line{color:var(--text,#f1f4fb)}.console-warning{color:#f2b33d}.console-error{color:#ff9d9d}
.console-result{border-top:1px solid var(--line,#1c2540);padding:.6rem 0}.console-result pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}
.console-access{margin-top:2rem}.console-access summary{cursor:pointer;margin-bottom:1rem}.console-access-list,#console-access-list{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:480px){.console-toolbar,.console-command{display:grid;grid-template-columns:minmax(0,1fr)}.console-toolbar button,.console-command button{width:100%}.console-log{height:20rem;padding:.6rem}}

/* D-109: przegląd serwerów i kolejka przed telemetrią utrzymania. */
:root {--surface:#0d1220;--surface-2:#111a2e;--line:#1c2540;--fg:#f1f4fb;--muted:#97a2bd;--ok:#3ddc84;--warn:#f2b33d}
.sidebar {background:#0a0f1c;gap:18px}
.sidebar-caption {color:var(--muted);padding:0 12px;margin-top:-10px}
.sidebar nav {gap:16px}
.server-tools {border-top:1px solid var(--line);padding-top:12px}
.server-tools summary {cursor:pointer;padding:8px 12px;color:var(--fg);font-weight:700;min-height:44px}
.server-tools .nav-group {padding-left:8px}
.server-tools summary:focus-visible {outline:3px solid var(--red-light);outline-offset:3px}
.nav-link {padding:9px 12px;min-height:44px}
.nav-link.active {background:#b73838}
.nav-link.active .count {color:#b73838}
.count {background:#b73838;color:#fff}
.main {max-width:1500px;padding-top:26px}
.page-heading {margin-bottom:26px}
h1,h2,h3 {font-family:var(--font-num)}
h1 {font-size:2.6rem}h2 {font-size:1.6rem}h3 {font-size:1.2rem}
.panel {border:0;border-radius:0;background:transparent;overflow:visible}
.panel-heading {padding:18px 0;border-bottom:1px solid var(--line)}
.panel-heading p:empty {display:none}
.panel-body {padding:20px 0}
.server-overview,.moderation,.audit-preview {margin-bottom:26px;border-bottom:1px solid var(--line)}
.server-grid {display:table;width:100%;table-layout:fixed}
.server-grid th:first-child {width:34%}
.server-grid th:last-child {width:18%}
.server-card {display:table-row;background:transparent;border:0;border-radius:0;padding:0}
.server-card>th,.server-card>td {padding:18px 16px;border:0;border-top:1px solid var(--line);white-space:normal;overflow-wrap:anywhere;background:transparent}
.server-card>th:first-child {padding-left:0}
.server-card small {font:400 .9rem/1.4 Barlow,sans-serif;display:block;margin-top:4px}
.server-manage {text-align:right}
.server-population {font-family:var(--font-num);font-size:1.25rem;font-weight:700}
.server-grid>thead th {background:transparent;padding:12px 16px;font-size:.9rem}
.server-grid>thead th:first-child {padding-left:0}
.mobile-label {display:none}
.case-row {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto auto;align-items:center;gap:24px;padding:18px 0;border-bottom:1px solid var(--line);text-decoration:none}
.case-row:hover {background:var(--surface-2)}
.case-row small {display:block;color:var(--muted)}
.case-row>span {min-width:0;overflow-wrap:anywhere}
.case-row time {font-size:.9rem;color:var(--muted)}
.case-state {color:var(--warn)}
.case-counts {display:flex;flex-wrap:wrap;gap:12px 28px;padding:12px 0}
.case-counts .keyvalue {border:0;gap:14px;padding:0}
.moderation-pending {padding:18px 0;color:var(--muted)}
.audit-preview .table-scroll {border:0}
.audit-preview th,.audit-preview td {padding:14px 16px;background:transparent}
.audit-preview th:first-child,.audit-preview td:first-child {padding-left:0}
.host {border-top:1px solid var(--line)}
.panel.host {padding:24px 0}
.action-grid {grid-template-columns:minmax(0,1fr)}
.action-item {border:0;border-radius:0;border-bottom:1px solid var(--line);background:transparent;min-height:72px}
.action-item:hover:not(:disabled) {background:var(--surface-2)}
.button {background:#b73838;color:#fff}
.button:hover:not(:disabled) {background:#c44040}
.button.secondary,.button.quiet {background:transparent}
.button.quiet:hover:not(:disabled),.button.secondary:hover:not(:disabled) {background:var(--surface-2)}
.metrics .metric-sub {font-size:.9rem}
@media(max-width:1100px){.server-grid th:first-child{width:28%}.server-card>th,.server-card>td{padding:16px 8px}.server-grid>thead th{padding:12px 8px}.server-grid .button{padding:8px 10px;font-size:.9rem}.case-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}}
@media(max-width:700px){.main{padding:20px 16px 40px}.server-grid,.server-grid>tbody{display:block}.server-grid>thead{display:none}.server-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:18px 0;border-top:1px solid var(--line)}.server-card>th,.server-card>td{display:block;border:0;padding:0}.server-card>th:first-child{width:100%;grid-column:1/-1}.server-card>td:last-child{width:100%;grid-column:1/-1;text-align:left}.mobile-label{display:block;color:var(--muted);font-family:Barlow,sans-serif;font-size:.9rem;font-weight:400}.server-grid .button{min-height:44px;width:100%;padding:10px}.case-row{gap:12px;font-size:.95rem}.case-row time{white-space:normal}.case-counts{display:block}.case-counts .keyvalue{padding:8px 0}.panel-heading{flex-wrap:wrap;gap:8px}.metrics{grid-template-columns:minmax(0,1fr);gap:20px}.topbar{flex-wrap:wrap;gap:12px;padding:16px}.refresh-time{font-size:.85rem}.table-scroll{max-width:100%}.server-tools{max-width:100%}}

h1,h2,h3 {font-family:Barlow,sans-serif}
.server-card h3 {color:var(--fg)}

.identity strong {overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}

.table-scroll:focus-visible {outline:3px solid var(--red-light);outline-offset:3px}
@media(max-width:700px) {
  .compact-audit,.compact-audit tbody {display:block;width:100%}
  .compact-audit thead {display:none}
  .compact-audit tr {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:18px 0;border-top:1px solid var(--line)}
  .audit-preview .compact-audit td {display:block;min-width:0;padding:0;border:0;white-space:normal;overflow-wrap:anywhere}
  .compact-audit td::before {content:attr(data-label);display:block;margin-bottom:4px;color:var(--muted);font-weight:400}
}

/* Spójna hierarchia narzędzi, tabela pozostaje odczytem rzeczywistych usług. */
.main{max-width:1440px;width:100%}
.page-heading h1{font-family:'Barlow Condensed',Barlow,sans-serif;font-size:42px}
.page-heading{margin-bottom:24px}
.panel-heading{padding-top:18px;padding-bottom:18px}
.ops-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
.ops-shortcuts .button{font-size:15px;min-height:44px}
.detail-grid>.panel{min-width:0}
.server-tools summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.panel.host{margin-top:32px}
.panel.host .metrics{gap:24px}
.server-overview .server-name small{line-height:1.4}
.identity .logout{min-height:44px}
.login-card .wordmark{font-size:40px}
@media(max-width:760px){.page-heading h1{font-size:34px}.ops-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ops-shortcuts .button{padding:10px 8px;white-space:normal}.topbar .refresh-time{flex:1;min-width:0}.topbar{gap:8px}.panel.host{margin-top:24px}.detail-grid{gap:24px}.panel-body{padding:16px}.action-item{gap:12px}.button.small{min-height:44px}}

/* Powrót do proporcji zatwierdzonego przeglądu, 2026-10-10. */
.sidebar>.wordmark{font-size:36px}.sidebar-caption{font-size:18px}.nav-link{font-size:17px;min-height:48px}.nav-link.active{background:#d53c43}.sidebar .nav-group{gap:4px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-heading{padding:16px 22px;min-height:66px}.panel-heading h2{font-size:28px;line-height:1.15}.panel-body{padding:20px 22px}.server-overview,.moderation,.audit-preview{margin-bottom:24px}.server-card>th:first-child,.server-grid>thead th:first-child{padding-left:28px}.server-card>th,.server-card>td{padding-top:14px;padding-bottom:14px}.server-grid>thead th{padding-top:11px;padding-bottom:11px;background:var(--surface-2)}.server-card small{font-size:16px}.server-card h3{font-size:20px}.server-manage{padding-right:28px!important}.server-manage .button{min-width:126px;border-color:#5975a5}.server-population{font-family:Barlow,sans-serif;font-size:18px}.case-row{padding:14px 22px;gap:20px}.case-counts{padding:10px 22px;background:var(--surface-2);font-size:14px}.moderation-pending{padding:20px 22px}.audit-preview th,.audit-preview td{padding:12px 22px}.audit-preview th:first-child,.audit-preview td:first-child{padding-left:28px}.audit-preview th{background:var(--surface-2)}.panel.host{padding:22px;margin-top:28px}.page-heading h1{font-family:Barlow,sans-serif;font-size:40px}.panel-heading>a{font-size:16px;color:#8aa4ff}.server-tools{margin-top:8px}
@media(min-width:901px){.workspace{position:relative}.topbar{position:absolute;right:0;top:0;z-index:1;border:0;padding:32px 32px;min-height:100px}.main{padding:32px 32px 48px 42px}.page-heading{min-height:76px;padding-right:330px;margin-bottom:24px}.sidebar{height:100svh}.sidebar .nav-link{gap:14px}}
@media(max-width:900px){.topbar{position:static}.main{padding-top:24px}.page-heading h1{font-size:34px}.panel-heading{padding:16px}.panel-heading h2{font-size:25px}.server-card>th:first-child,.server-grid>thead th:first-child{padding-left:16px}.server-card>th,.server-card>td{padding-right:10px}.server-manage{padding-right:16px!important}.server-manage .button{min-width:0}}
@media(max-width:700px){.server-card{padding:18px 16px}.server-card>th:first-child{padding-left:0}.server-card>th,.server-card>td{padding:0}.server-manage{padding-right:0!important}.case-row{padding:16px}.case-counts{padding:8px 16px}.audit-preview .compact-audit tr{padding:16px}.audit-preview .compact-audit td{padding:0}.audit-preview .compact-audit td:first-child{padding:0}.panel-heading>a{min-height:44px;display:inline-flex;align-items:center}.page-heading{margin-bottom:20px}.panel.host{padding:18px}.panel-body{padding:16px}}

.nav-icon{width:23px;height:23px;flex:none}.nav-label{flex:1}.sidebar .nav-link{gap:16px}.sidebar .nav-group>.nav-link{min-height:54px}.sidebar .server-tools .nav-link{min-height:44px}.side-bottom .identity{flex-wrap:wrap}.side-bottom .identity-text{flex-basis:100%}.side-bottom .identity .logout{width:100%;text-align:left}.sidebar .side-bottom{gap:12px}.sidebar .identity strong{color:var(--red-light)}

.server-card h3{line-height:1.2}.server-card small{line-height:1.35}.case-columns,.case-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,.65fr);gap:20px}.case-columns{padding:11px 22px;background:var(--surface-2);font-size:15px;color:var(--muted);font-weight:600}.case-row time{font-size:15px}.case-row small{font-size:15px}.case-state{font-size:16px}@media(max-width:900px){.case-columns{display:none}.case-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}}

.case-state.is-assigned{color:var(--muted)}.audit-preview .compact-audit td{font-size:16px}.audit-preview .compact-audit td small{font-size:15px}@media(min-width:901px){.audit-preview .compact-audit td{padding-top:11px;padding-bottom:11px}}
