/* LOYAL Manager — granat + miedź */
:root {
  --navy: #0e1b33; --navy-2: #16294b; --navy-3: #203a66;
  --copper: #c47b3f; --copper-2: #de9a5f; --copper-soft: #f7ebe0;
  --bg: #f3f5f9; --card: #ffffff; --card-2: #f8f9fc; --text: #14203a; --muted: #67748b; --faint: #9aa5b8;
  --border: #e2e7ef; --border-2: #d3dae6; --focus: #3d7bff;
  --good: #16895c; --good-bg: #e3f5ec; --warn: #b8730f; --warn-bg: #fdf1dc; --bad: #c93b3b; --bad-bg: #fbe5e5;
  --info: #2f63c9; --info-bg: #e5edfc; --neutral-bg: #eef1f6;
  --shadow: 0 1px 2px rgba(14, 27, 51, .06), 0 4px 16px rgba(14, 27, 51, .06);
  --shadow-lg: 0 12px 48px rgba(14, 27, 51, .22);
  --radius: 14px; --radius-sm: 9px;
  --side: 248px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Armenian", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1426; --card: #121f38; --card-2: #0f1a30; --text: #e6ebf5; --muted: #9aa7bf; --faint: #6d7a93;
  --border: #22335a; --border-2: #2c4170; --copper-soft: #3a2a1d;
  --good-bg: #123a2b; --warn-bg: #3b2c12; --bad-bg: #3d1a1c; --info-bg: #16284d; --neutral-bg: #1a2945;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1426; --card: #121f38; --card-2: #0f1a30; --text: #e6ebf5; --muted: #9aa7bf; --faint: #6d7a93;
    --border: #22335a; --border-2: #2c4170; --copper-soft: #3a2a1d;
    --good-bg: #123a2b; --warn-bg: #3b2c12; --bad-bg: #3d1a1c; --info-bg: #16284d; --neutral-bg: #1a2945;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.noscript { padding: 40px; text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- układ ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #cfd8ea; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 22px; color: #fff; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--navy-3); display: grid; place-items: center; }
.brand .mark svg { width: 20px; height: 20px; stroke: var(--copper-2); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.brand b { font-size: 17px; letter-spacing: .14em; }
.brand small { display: block; font-size: 11px; color: var(--copper-2); letter-spacing: .08em; text-transform: uppercase; margin-top: -2px; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav .sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #7f8db0; padding: 16px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #cfd8ea; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.nav a.on { background: var(--navy-3); color: #fff; box-shadow: inset 3px 0 0 var(--copper); }
.nav a .cnt { margin-left: auto; background: var(--copper); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.side .foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
.side .who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--copper); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.side .who b { color: #fff; display: block; font-size: 13px; }
.side .who span { color: #8d9bbb; font-size: 11.5px; }
.side .foot .row { display: flex; gap: 6px; margin-top: 10px; }
.side .foot button { flex: 1; background: rgba(255,255,255,.06); border: 0; color: #cfd8ea; border-radius: 8px; padding: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; }
.side .foot button:hover { background: rgba(255,255,255,.12); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-bottom: 1px solid transparent; }
.top h1 { font-size: 21px; font-weight: 700; }
.top .sub { color: var(--muted); font-size: 13px; }
.top .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.burger { display: none; }
.content { padding: 8px 28px 48px; max-width: 1500px; width: 100%; }
.scrim { display: none; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .22s ease; }
  .shell.menu .side { transform: none; box-shadow: var(--shadow-lg); }
  .shell.menu .scrim { display: block; position: fixed; inset: 0; background: rgba(8,14,28,.45); z-index: 25; }
  .burger { display: inline-flex; }
  .top { padding: 12px 16px; }
  .top h1 { font-size: 18px; }
  .content { padding: 6px 16px 40px; }
}

/* ---------- elementy ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border-2); background: var(--card); color: var(--text);
  border-radius: var(--radius-sm); padding: 8px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; min-height: 36px; }
.btn:hover { background: var(--card-2); border-color: var(--faint); text-decoration: none; }
.btn.pri { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.pri:hover { background: var(--navy-3); }
.btn.cop { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn.cop:hover { background: #b06a31; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--neutral-bg); }
.btn.sm { padding: 5px 10px; min-height: 30px; font-size: 12.5px; }
.btn.icon { padding: 7px; min-width: 36px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.pri { background: var(--copper); border-color: var(--copper); } }
:root[data-theme="dark"] .btn.pri { background: var(--copper); border-color: var(--copper); }

.inp, select.inp, textarea.inp { width: 100%; border: 1px solid var(--border-2); background: var(--card); border-radius: var(--radius-sm); padding: 8px 11px; min-height: 36px; }
textarea.inp { min-height: 96px; resize: vertical; line-height: 1.45; }
.inp:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
label.f { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 5px; }
.field { margin-bottom: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 13px; color: var(--muted); user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--copper); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card > .hd { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card > .hd h3 { font-size: 15px; font-weight: 700; }
.card > .hd .more { margin-left: auto; font-size: 12.5px; }
.card > .bd { padding: 14px 18px 18px; }
.card.pad { padding: 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .g2, .g3 { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; display: block; color: inherit; }
a.kpi:hover { text-decoration: none; border-color: var(--border-2); transform: translateY(-1px); }
.kpi .lb { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.kpi .lb svg { color: var(--copper); }
.kpi .v { font-size: 28px; font-weight: 750; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi.accent::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--copper); }

/* odznaki */
.b { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--neutral-bg); color: var(--muted); white-space: nowrap; }
.b.good { background: var(--good-bg); color: var(--good); }
.b.warn { background: var(--warn-bg); color: var(--warn); }
.b.bad { background: var(--bad-bg); color: var(--bad); }
.b.info { background: var(--info-bg); color: var(--info); }
.b.cop { background: var(--copper-soft); color: var(--copper); }
.b.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mk { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; background: var(--navy); color: #fff; }
:root[data-theme="dark"] .mk { background: var(--navy-3); }

/* alerty */
.alerts { display: grid; gap: 8px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 11px; background: var(--info-bg); color: var(--text); border: 1px solid transparent; font-size: 13.5px; }
.alert svg { margin-top: 1px; color: var(--info); }
.alert.warn { background: var(--warn-bg); } .alert.warn svg { color: var(--warn); }
.alert.bad { background: var(--bad-bg); } .alert.bad svg { color: var(--bad); }
.alert.good { background: var(--good-bg); } .alert.good svg { color: var(--good); }
.alert a { margin-left: auto; font-weight: 600; white-space: nowrap; }

/* tabele */
.tbl-wrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700;
  padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--card-2); position: sticky; top: 0; white-space: nowrap; }
table.t th.sortable { cursor: pointer; user-select: none; }
table.t th.sortable:hover { color: var(--text); }
table.t th .arr { color: var(--copper); }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tbody tr { transition: background .1s; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr.click:hover { background: var(--card-2); }
table.t tbody tr.sel { background: var(--copper-soft); }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-main { font-weight: 600; }
.cell-sub { font-size: 12px; color: var(--muted); }
.clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: var(--faint); margin-bottom: 8px; }

/* pasek filtrów */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.toolbar .search { position: relative; flex: 1 1 240px; max-width: 360px; }
.toolbar .search svg { position: absolute; left: 10px; top: 9px; color: var(--faint); }
.toolbar .search .inp { padding-left: 34px; }
.toolbar select.inp { width: auto; min-width: 140px; }
.toolbar input[type=date].inp { width: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 16px 0; }
.chip { border: 1px solid var(--border-2); background: var(--card); border-radius: 99px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { border-color: var(--faint); color: var(--text); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .chip.on { background: var(--copper); border-color: var(--copper); }
.chip .n { font-size: 11px; opacity: .75; }
.pager { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.pager .spacer { flex: 1; }

/* szuflada szczegółów */
.drawer-scrim { position: fixed; inset: 0; background: rgba(8,14,28,.38); z-index: 60; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--card); z-index: 61; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: slide .2s ease; }
.drawer .dh { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.drawer .dh h2 { font-size: 18px; }
.drawer .dh .x { margin-left: auto; }
.drawer .db { padding: 18px 20px; overflow-y: auto; flex: 1; }
.drawer .df { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; background: var(--card-2); }
dl.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0; font-size: 13.5px; }
dl.kv dt { color: var(--muted); font-weight: 600; font-size: 12.5px; padding-top: 1px; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { dl.kv { grid-template-columns: 1fr; gap: 2px 0; } dl.kv dd { margin-bottom: 8px; } }
.statusbar { display: flex; flex-wrap: wrap; gap: 6px; }
.statusbar .chip.on { background: var(--copper); border-color: var(--copper); }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.timeline li { padding: 7px 0 7px 16px; border-left: 2px solid var(--border); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.timeline b { font-weight: 600; }
.sec-t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; }
.sec-t:first-child { margin-top: 0; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* okno dialogowe */
.modal-scrim { position: fixed; inset: 0; background: rgba(8,14,28,.5); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--card); border-radius: 16px; box-shadow: var(--shadow-lg); width: min(480px, 100%); max-height: 92vh; overflow: auto; animation: pop .16s ease; }
.modal.wide { width: min(640px, 100%); }
.modal .mh { padding: 20px 22px 0; }
.modal .mh h3 { font-size: 17px; }
.modal .mb { padding: 14px 22px; }
.modal .mf { padding: 14px 22px 20px; display: flex; gap: 8px; justify-content: flex-end; }
.secret { font-family: var(--mono); background: var(--card-2); border: 1px dashed var(--border-2); padding: 12px; border-radius: 10px; font-size: 15px; letter-spacing: .06em; text-align: center; user-select: all; overflow-wrap: anywhere; }

/* powiadomienia */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 11px; box-shadow: var(--shadow-lg); font-size: 13.5px; max-width: 380px; animation: pop .18s ease; display: flex; gap: 9px; align-items: flex-start; }
.toast.bad { background: var(--bad); }
.toast.good { background: #127a51; }
.toast svg { margin-top: 1px; }

/* wykresy */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 8px; }
.bars .bar { flex: 1; background: var(--copper); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; opacity: .9; }
.bars .bar:hover { opacity: 1; background: var(--copper-2); }
.bars .bar.zero { background: var(--border); }
.bars-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 6px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; margin: 8px 0; }
.hbar .track { background: var(--neutral-bg); border-radius: 99px; height: 9px; overflow: hidden; }
.hbar .fill { background: var(--copper); height: 100%; border-radius: 99px; }
.progress { background: var(--neutral-bg); border-radius: 99px; height: 7px; overflow: hidden; min-width: 90px; }
.progress > div { height: 100%; background: var(--good); border-radius: 99px; }
.progress.warn > div { background: var(--warn); }
.progress.bad > div { background: var(--bad); }

/* listy */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .t1 { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .t2 { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* logowanie */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(1200px 600px at 10% -10%, rgba(196,123,63,.18), transparent 60%),
  radial-gradient(900px 600px at 110% 110%, rgba(32,58,102,.55), transparent 60%), var(--navy); }
.auth .box { width: min(420px, 100%); background: var(--card); border-radius: 20px; padding: 32px 30px 28px; box-shadow: var(--shadow-lg); }
.auth .brand { color: var(--text); padding: 0 0 22px; }
.auth .brand .mark { background: var(--navy); }
.auth h2 { font-size: 20px; margin-bottom: 4px; }
.auth p.lead { color: var(--muted); margin: 0 0 20px; font-size: 13.5px; }
.auth .btn.pri { width: 100%; min-height: 42px; margin-top: 6px; }
.auth .err { background: var(--bad-bg); color: var(--bad); padding: 9px 12px; border-radius: 9px; font-size: 13px; margin-bottom: 14px; }
.auth .foot { text-align: center; font-size: 12px; color: var(--faint); margin-top: 18px; }
.code-inp { font-size: 24px; letter-spacing: .5em; text-align: center; font-family: var(--mono); }
.qr { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--border); width: fit-content; margin: 0 auto 12px; }
.qr img { width: 196px; height: 196px; image-rendering: pixelated; }
.steps { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: 13.5px; }
.steps li { margin: 4px 0; }

.loading { padding: 60px; text-align: center; color: var(--muted); }
.spin { width: 22px; height: 22px; border: 2.5px solid var(--border-2); border-top-color: var(--copper); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--text); border-bottom-color: var(--copper); }
.pill-status { display: inline-flex; align-items: center; gap: 6px; }
.deadline-soon { color: var(--bad); font-weight: 700; }
.kbd { font-family: var(--mono); font-size: 11.5px; border: 1px solid var(--border-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--muted); }

.pre { white-space: pre-wrap; }
.big { font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
a.hbar { color: inherit; } a.hbar:hover { text-decoration: none; } a.hbar:hover .fill { background: var(--copper-2); }
.list a.grow { color: inherit; } .list a.grow:hover { text-decoration: none; } .list a.grow:hover .t1 { color: var(--copper); }
.list .t2.wrap { white-space: normal; }
.list li > .b:first-child { min-width: 96px; justify-content: center; }

/* nagłówek: długi podtytuł nie spycha przycisków */
.top > div:nth-child(2) { min-width: 0; flex: 1 1 auto; }
.top .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .actions { flex: 0 0 auto; }
@media (max-width: 960px) {
  .top { flex-wrap: wrap; }
  .top .actions { width: 100%; margin-left: 0; }
  .top .actions .btn { flex: 1 1 auto; }
  .top .sub { white-space: normal; }
}
@media (max-width: 700px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 13px 14px; }
  .kpi .v { font-size: 23px; }
  .hide-sm { display: none; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .toolbar select.inp { flex: 1 1 140px; min-width: 0; }
  table.t td, table.t th { padding: 10px 9px; }
  .hbar { grid-template-columns: 110px 1fr 54px; }
}

/* przełącznik języka */
.side .foot button.lang-btn { flex: 0 0 44px; font-weight: 800; letter-spacing: .06em; font-size: 12px; }
.auth .lang-switch { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.auth .lang-switch button { background: none; border: 1px solid var(--border-2); border-radius: 99px; padding: 3px 12px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--muted); }
.auth .lang-switch button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
