/* System Audytu – panel (etap 4). Bez zewnętrznych czcionek: Inter, jeśli jest w systemie, inaczej Segoe UI / systemowa. */
:root {
  --bg:#F4F6F9; --card:#FFFFFF; --ink:#111827; --ink2:#374151; --muted:#4B5563; --faint:#6B7280;
  --line:#E5E7EB; --line2:#F1F2F4; --side:#0F172A; --side2:#1E293B; --sideInk:#CBD5E1;
  --accent:#2563EB; --accentDark:#1D4ED8;
  --ok:#16A34A; --okBg:#DCFCE7; --okInk:#166534;
  --warn:#F59E0B; --warnBg:#FEF3C7; --warnInk:#92400E;
  --crit:#DC2626; --critBg:#FEE2E2; --critInk:#991B1B;
  --info:#6366F1; --infoBg:#E0E7FF; --infoInk:#3730A3;
  --off:#9CA3AF; --newc:#2563EB;
  --r:12px;
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font:14px/1.5 Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; background:var(--bg); color:var(--ink); }
a { color:var(--accentDark); text-decoration:none; }
a:hover { color:#1E3A8A; text-decoration:underline; }
h1 { font-size:26px; font-weight:700; margin:0; letter-spacing:-.2px; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
h2 { font-size:16px; font-weight:600; margin:0 0 12px; }
h3 { font-size:14px; font-weight:600; margin:16px 0 8px; }
code { font-size:12.5px; background:#F1F5F9; padding:1px 5px; border-radius:4px; }
.muted { color:var(--muted); }
.small { font-size:12.5px; }
.nowrap { white-space:nowrap; }
.grow { flex:1; }

/* ---------- układ: menu boczne + treść ---------- */
.app { display:flex; flex-wrap:wrap; min-height:100vh; }
.side { flex:1 1 232px; max-width:232px; background:var(--side); color:var(--sideInk); padding:20px 14px; display:flex; flex-direction:column; gap:3px; }
.side .brand { display:flex; align-items:center; gap:10px; padding:4px 10px 22px; color:#fff; font-weight:700; font-size:17px; }
.side a.nav { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:8px; color:var(--sideInk); font-size:14px; }
.side a.nav:hover { background:var(--side2); color:#fff; text-decoration:none; }
.side a.nav.active { background:var(--side2); color:#fff; font-weight:600; }
.side a.nav svg { flex:none; opacity:.85; }
.side .count { margin-left:auto; background:var(--warn); color:#111827; font-size:11px; font-weight:700; padding:1px 7px; border-radius:10px; }
.side .me { margin-top:auto; padding:14px 10px 0; border-top:1px solid var(--side2); font-size:13px; }
.side .me b { color:#fff; font-weight:600; display:block; }
.side .me span { color:#94A3B8; display:block; }
.side .me a { color:#93C5FD; }
.content { flex:999 1 560px; min-width:0; padding:24px 32px 48px; display:flex; flex-direction:column; gap:16px; }
.content > * { max-width:1500px; width:100%; }
.content > dialog, .content > .upbox { max-width:none; } /* nakładki na cały ekran – bez limitu szerokości treści */
@media (max-width:820px) {
  .side { max-width:none; flex-basis:100%; flex-direction:row; flex-wrap:wrap; padding:10px; }
  .side .brand { padding:4px 10px; flex-basis:100%; }
  .side .me { margin-top:0; border:0; padding:8px 12px; flex-basis:100%; }
  .content { padding:16px; }
}
.auth { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.auth .card { width:100%; max-width:420px; }
.auth .brand { display:flex; align-items:center; gap:10px; font-weight:700; font-size:20px; margin-bottom:18px; }

/* ---------- nagłówek strony ---------- */
.page-head { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.page-head .title { flex:1 1 260px; }
.page-head .sub { color:var(--muted); font-size:14px; margin-top:2px; }
.back { font-size:14px; }

/* ---------- karty, siatki ---------- */
.card, details.section { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:18px 20px; }
.card.narrow { max-width:440px; margin:40px auto; }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit, minmax(340px, 1fr)); gap:16px; }
.grid-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(380px, 1fr)); gap:16px; }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.card-head h2 { margin:0; }
details.section { padding:0 20px; }
details.section summary { cursor:pointer; padding:14px 0; font-weight:600; }
details.section[open] { padding-bottom:16px; }

/* ---------- formularze i przyciski ---------- */
label { display:block; margin-bottom:12px; font-size:13px; color:var(--ink2); font-weight:500; }
label.inline { display:inline-flex; gap:6px; align-items:center; margin:0; font-weight:400; }
label.inline + label.inline { margin-left:16px; }
input, select, textarea { font:inherit; font-size:14px; color:var(--ink); padding:8px 11px; border:1px solid #D1D5DB; border-radius:8px; background:#fff; }
input:focus, select:focus, textarea:focus { outline:2px solid #93C5FD; outline-offset:0; border-color:var(--accent); }
label input, label select, label textarea { display:block; width:100%; margin-top:5px; }
input[type=checkbox], input[type=radio] { width:auto; display:inline-block; margin:0; }
button, a.button { font:inherit; font-size:14px; font-weight:600; padding:9px 15px; border:0; border-radius:8px; background:var(--accent); color:#fff; cursor:pointer; display:inline-flex; align-items:center; gap:6px; text-decoration:none; }
button:hover, a.button:hover { background:var(--accentDark); color:#fff; text-decoration:none; }
button.secondary, a.button.secondary { background:#fff; color:var(--ink); border:1px solid #D1D5DB; }
button.secondary:hover, a.button.secondary:hover { background:#F8FAFC; }
button.danger { background:var(--crit); }
button.link { background:none; color:var(--critInk); padding:0; font-weight:500; }
button.link:hover { background:none; text-decoration:underline; color:var(--critInk); }
form.inline { display:inline; }
.row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:10px; }
.row.tight { margin:0; }
.row.tight input { min-width:220px; }
.actions { display:flex; flex-wrap:wrap; gap:8px; }
.actions form { display:flex; gap:6px; margin:0; }
.filters { display:flex; flex-wrap:wrap; gap:10px; align-items:center; background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:12px 14px; }
.filters input[type=search], .filters input[name=q] { flex:1 1 240px; min-width:0; }
fieldset { border:1px solid var(--line); border-radius:10px; padding:12px 16px; margin:14px 0; }
fieldset[disabled] { pointer-events:none; }
legend { font-weight:600; padding:0 6px; }
.perms { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:8px 16px; margin:8px 0 12px; }
label.perm { display:grid; grid-template-columns:auto 1fr; column-gap:8px; margin:0; font-weight:400; }
label.perm input { grid-row:span 2; margin-top:3px; }
label.perm .small { grid-column:2; }
input.code { font-size:20px; letter-spacing:4px; width:150px; text-align:center; }
code.big { font-size:17px; letter-spacing:1px; padding:4px 8px; }

/* ---------- przełączniki (chips, widok) ---------- */
.chips { display:flex; flex-wrap:wrap; gap:6px; }
.chip { font-size:13px; font-weight:600; padding:6px 12px; border-radius:16px; background:#fff; color:var(--ink2); border:1px solid #D1D5DB; }
.chip:hover { text-decoration:none; background:#F8FAFC; color:var(--ink); }
.chip.on { background:var(--ink); color:#fff; border-color:var(--ink); }
.chip .n { opacity:.7; margin-left:4px; }
.seg { display:inline-flex; border:1px solid #D1D5DB; border-radius:8px; overflow:hidden; margin-left:auto; }
.seg a { padding:7px 14px; font-size:13px; font-weight:600; color:var(--ink2); background:#fff; }
.seg a.on { background:var(--ink); color:#fff; }
.seg a:hover { text-decoration:none; }

/* ---------- komunikaty, plakietki ---------- */
.flash { padding:11px 15px; border-radius:10px; background:var(--okBg); color:var(--okInk); border:1px solid #BBF7D0; }
.flash.error { background:var(--critBg); color:var(--critInk); border-color:#FECACA; }
.flash.warn { background:var(--warnBg); color:var(--warnInk); border-color:#FDE68A; }
.badge { display:inline-block; font-size:11.5px; font-weight:700; padding:2px 9px; border-radius:10px; background:var(--warnBg); color:var(--warnInk); vertical-align:middle; letter-spacing:.2px; }
.badge.grey { background:#F1F5F9; color:#475569; }
.badge.ok { background:var(--okBg); color:var(--okInk); }
.badge.crit { background:var(--critBg); color:var(--critInk); }
.badge.warn { background:var(--warnBg); color:var(--warnInk); }
.badge.info { background:var(--infoBg); color:var(--infoInk); }
.badge.new { background:#DBEAFE; color:#1E40AF; }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; flex:none; background:var(--off); }
.dot.on, .dot.ok { background:var(--ok); }
.dot.off { background:var(--off); }
.dot.warn { background:var(--warn); }
.dot.crit { background:var(--crit); }
.dot.new { background:var(--newc); }
.dot.lg { width:12px; height:12px; }

/* ---------- tabele ---------- */
.scroll { overflow-x:auto; }
table { border-collapse:collapse; }
table.data { width:100%; background:var(--card); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; }
.card table.data, .tablebox table.data { border:0; border-radius:0; }
.tablebox { background:var(--card); border:1px solid var(--line); border-radius:var(--r); overflow-x:auto; }
table.data th, table.data td { padding:9px 12px; border-bottom:1px solid var(--line2); text-align:left; vertical-align:top; }
table.data th { background:#F8FAFC; font-weight:600; font-size:11.5px; text-transform:uppercase; letter-spacing:.4px; color:var(--ink2); white-space:nowrap; }
table.data tbody tr:hover td { background:#FAFBFD; }
table.list td { white-space:nowrap; }
table.kv th { text-align:left; padding:5px 18px 5px 0; color:var(--muted); font-weight:500; vertical-align:top; white-space:nowrap; }
table.kv td { padding:5px 0; }
dl.facts { display:grid; grid-template-columns:150px 1fr; gap:8px 12px; margin:0; }
dl.facts dt { color:var(--muted); }
dl.facts dd { margin:0; }
tr.revoked td { color:var(--faint); text-decoration:line-through; }
tr.revoked td:last-child { text-decoration:none; }
tr.warn td { background:#FFFBEB; }

/* ---------- pulpit ---------- */
.kpis { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:14px; }
.kpi { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:16px 18px; display:flex; flex-direction:column; gap:6px; color:var(--ink); }
.kpi:hover { text-decoration:none; border-color:#CBD5E1; color:var(--ink); }
.kpi .l { font-size:13px; color:var(--muted); font-weight:500; }
.kpi .v { display:flex; align-items:baseline; gap:8px; }
.kpi .v b { font-size:32px; font-weight:700; letter-spacing:-.5px; }
.kpi .v span { font-size:13px; font-weight:600; color:var(--muted); }
.meter { height:6px; background:#EEF0F3; border-radius:3px; overflow:hidden; }
.meter i { display:block; height:100%; border-radius:3px; background:var(--accent); }
.list-plain { list-style:none; margin:0; padding:0; }
.list-plain > li { display:flex; gap:12px; align-items:center; padding:10px 0; border-top:1px solid var(--line2); }
.list-plain > li:first-child { border-top:0; }
.ico { width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; flex:none; }
.ico.crit { background:var(--critBg); color:var(--critInk); }
.ico.warn { background:var(--warnBg); color:var(--warnInk); }
.ico.info { background:var(--infoBg); color:var(--infoInk); }
.bars { display:flex; flex-direction:column; gap:9px; }
.bars .b { display:grid; grid-template-columns:minmax(120px, 170px) 1fr 44px; align-items:center; gap:10px; font-size:13px; }
.bars .b .track { height:14px; background:#EEF0F3; border-radius:4px; overflow:hidden; }
.bars .b .track i { display:block; height:100%; border-radius:4px; background:var(--accent); }
.bars .b .n { text-align:right; font-weight:600; }
.stack { display:flex; height:26px; border-radius:6px; overflow:hidden; background:#EEF0F3; }
.legend { display:flex; flex-wrap:wrap; gap:14px; margin-top:12px; font-size:13px; color:var(--ink2); }
.legend span { display:inline-flex; align-items:center; gap:6px; }
.legend i { width:10px; height:10px; border-radius:2px; display:inline-block; }
.cols { display:grid; grid-template-columns:repeat(var(--n, 5), minmax(0, 1fr)); gap:8px; align-items:end; height:130px; }
.cols .c { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:4px; height:100%; }
.cols .c i { width:100%; border-radius:4px 4px 0 0; background:#93C5FD; display:block; min-height:3px; }
.cols .c i.hot { background:#B45309; }
.cols .c b { font-size:12px; }
.cols .c span { font-size:11px; color:var(--muted); text-align:center; }
.kind { width:10px; height:10px; border-radius:50%; flex:none; margin-top:6px; align-self:flex-start; }
.kind.hardware { background:#7C3AED; } .kind.software { background:#2563EB; } .kind.security { background:#B45309; } .kind.basic { background:#0F766E; }

/* ---------- komputery: kafelki sal ---------- */
.room { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:16px 18px; }
.room-head { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:12px; }
.room-head h2 { margin:0; font-size:17px; font-weight:700; }
.room-head .muted { font-size:13px; }
.room-head .pick { margin-left:auto; font-size:12.5px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:10px; }
.tile { position:relative; display:flex; flex-direction:column; gap:6px; padding:12px; border-radius:10px; border:1px solid var(--line); background:#fff; color:var(--ink); }
.tile:hover { text-decoration:none; border-color:#94A3B8; box-shadow:0 1px 4px rgba(15,23,42,.08); color:var(--ink); }
.tile.warn { border-color:#FCD34D; background:#FFFDF5; }
.tile.crit { border-color:#FCA5A5; background:#FFFBFB; }
.tile .name { display:flex; align-items:center; gap:8px; font-weight:600; font-size:14px; }
.tile .name span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tile .sub { font-size:12px; color:var(--muted); }
.tile .tags { display:flex; flex-wrap:wrap; gap:4px; }
.tile .tags span { font-size:11px; padding:2px 6px; border-radius:4px; background:#F1F5F9; color:#334155; }
.tile .problem { font-size:12px; font-weight:600; padding:4px 7px; border-radius:5px; }
.tile .problem.crit { background:var(--critBg); color:var(--critInk); }
.tile .problem.warn { background:var(--warnBg); color:var(--warnInk); }
.tile .problem.info { background:var(--infoBg); color:var(--infoInk); }
.tile .problem.new { background:#DBEAFE; color:#1E40AF; }
.tile .sel { position:absolute; top:10px; right:10px; }
.bulkbar { position:sticky; bottom:0; background:var(--side); color:#fff; border-radius:var(--r); padding:10px 14px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; box-shadow:0 -2px 10px rgba(15,23,42,.15); }
.bulkbar select { min-width:180px; }

/* ---------- karta komputera ---------- */
.pc-head { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:18px 20px; display:flex; flex-wrap:wrap; gap:16px; align-items:flex-start; }
.pc-head .who { flex:1 1 340px; display:flex; flex-direction:column; gap:6px; }
.pc-head .meta { font-size:14px; color:var(--ink2); }
.pc-head .meta2 { font-size:13px; color:var(--muted); }
.tabs { display:flex; flex-wrap:wrap; gap:2px; border-bottom:1px solid var(--line); }
.tabs a { padding:10px 14px; font-weight:600; color:var(--muted); border-bottom:2px solid transparent; margin-bottom:-1px; }
.tabs a:hover { color:var(--ink); text-decoration:none; }
.tabs a.on { color:var(--accentDark); border-bottom-color:var(--accent); }
.tabs a .n { font-weight:500; color:var(--faint); }
.health { display:grid; grid-template-columns:repeat(auto-fit, minmax(175px, 1fr)); gap:10px; }
.hcell { display:flex; flex-direction:column; gap:2px; padding:12px 14px; border-radius:10px; border:1px solid var(--line); background:#fff; }
.hcell .l { font-size:12px; color:var(--muted); font-weight:500; }
.hcell .v { font-size:17px; font-weight:700; }
.hcell .n { font-size:12px; font-weight:600; color:var(--muted); }
.hcell.ok .n { color:#15803D; }
.hcell.warn { border-color:#FCD34D; background:#FFFDF5; } .hcell.warn .n { color:var(--warnInk); }
.hcell.crit { border-color:#FCA5A5; background:#FFFBFB; } .hcell.crit .n { color:var(--critInk); }
.timeline { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:18px; }
.timeline > li { display:grid; grid-template-columns:130px 1fr; gap:16px; }
.timeline .when { font-size:13px; font-weight:600; color:var(--ink2); padding-top:1px; }
.timeline ul { list-style:none; margin:0; padding:0 0 0 16px; border-left:2px solid var(--line); display:flex; flex-direction:column; gap:7px; }
.timeline ul li { display:flex; gap:10px; align-items:baseline; }
.mark { width:20px; height:20px; flex:none; border-radius:5px; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; }
.mark.add { background:var(--okBg); color:var(--okInk); }
.mark.del { background:var(--critBg); color:var(--critInk); }
.mark.chg { background:#DBEAFE; color:#1E40AF; }
@media (max-width:640px) { .timeline > li { grid-template-columns:1fr; gap:6px; } dl.facts { grid-template-columns:1fr; } }
.photos { display:flex; flex-wrap:wrap; gap:12px; }
.photos figure { margin:0; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:6px; width:230px; }
.photos img { width:100%; height:160px; object-fit:cover; border-radius:6px; display:block; }
.photos figcaption { margin-top:5px; }
.photo-main { width:100%; height:220px; object-fit:cover; border-radius:10px; display:block; }
.photo-empty { height:200px; border-radius:10px; background:#EEF2F6; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:13px; text-align:center; padding:12px; }
.qr { background:#fff; display:inline-block; border:1px solid var(--line); border-radius:10px; padding:4px; }
.secret { background:#F8FAFC; border:1px solid var(--line); border-radius:10px; padding:10px 14px; margin:8px 0; display:grid; gap:6px; }
ol.steps li { margin-bottom:10px; }
.stats { display:flex; flex-wrap:wrap; gap:12px; }
.stats div { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:10px 16px; }
.stats b { font-size:18px; }
.empty { text-align:center; color:var(--muted); padding:32px 12px; }
.tile a.stretch { color:inherit; min-width:0; }
.tile a.stretch:hover { text-decoration:none; }
.tile a.stretch::after { content:""; position:absolute; inset:0; border-radius:10px; }
.tile .sel { z-index:2; }
.auth .card.narrow { margin:0; max-width:none; }
.grid-cards { align-items:start; }
/* Pomoc: kafelki układane kolumnami (bez pustych dziur pod krótkimi kafelkami) */
.grid-cards.help { display:block; columns:3 340px; column-gap:16px; }
.grid-cards.help > .card { break-inside:avoid; -webkit-column-break-inside:avoid; display:block; width:100%; margin:0 0 16px; }
.grid-cards.help > .card > :first-child { margin-top:0; }
.bulkbar { z-index:5; }
.bulkbar[hidden] { display:none; }

/* etap 5 */
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing:.3px; }
button.small { padding:3px 9px; font-size:12px; margin-left:6px; }
.card .filters { border:0; padding:0; background:none; }
.filters label { margin:0; display:flex; flex-direction:column; gap:3px; font-size:12px; }
.filters label select, .filters label input { margin-top:0; }
.filters label.check, label.check { flex-direction:row; align-items:center; gap:6px; font-weight:400; font-size:13px; }
label.check input { width:auto; display:inline; margin:0; }
.export-bar { margin-top:12px; padding-top:12px !important; border-top:1px solid var(--line) !important; border-radius:0 !important; }
.report-picker { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:10px; margin:16px 0; }
.report-card { display:flex; flex-direction:column; gap:4px; padding:12px 14px; border:1px solid var(--line); border-radius:var(--r); background:var(--card); color:inherit; text-decoration:none; }
.report-card span { font-size:12.5px; color:var(--muted); }
.report-card:hover { border-color:#93C5FD; }
.report-card.on { border-color:#2563EB; box-shadow:0 0 0 1px #2563EB inset; }
pre.code { background:#0F172A; color:#E2E8F0; padding:8px 10px; border-radius:6px; overflow:auto; font-size:12px; }
tr.dim td { opacity:.55; }
td.num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.row-actions { display:flex; flex-wrap:wrap; gap:4px; } .row-actions button.small { margin-left:0; }
.side .me .ver { font-size:11.5px; color:#64748B; margin-top:6px; }
.outdated { color:var(--warnInk); }
.flash.info { background:var(--infoBg); color:var(--infoInk); border-color:#BFDBFE; }
table.checklist td { vertical-align:middle; }
/* pasek postępu wysyłania */
.upbox { position:fixed; inset:0; background:rgba(15,23,42,.45); display:flex; align-items:center; justify-content:center; z-index:100; }
.upbox[hidden] { display:none; }
.upcard { background:#fff; border-radius:14px; padding:22px 24px; width:min(440px, 92vw); box-shadow:0 20px 50px rgba(0,0,0,.25); display:flex; flex-direction:column; gap:12px; }
.upcard b { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.upbar { height:10px; background:#E2E8F0; border-radius:6px; overflow:hidden; }
.upbar i { display:block; height:100%; width:0; background:#2563EB; border-radius:6px; transition:width .2s; }
.upinfo { display:flex; justify-content:space-between; gap:10px; font-size:12.5px; color:var(--muted); font-variant-numeric:tabular-nums; flex-wrap:wrap; }
.upinfo span:first-child { color:var(--ink); font-weight:600; }
.upcard button { align-self:flex-end; margin-left:0; }
.supportbar { display:flex; align-items:center; justify-content:space-between; gap:12px; background:#FFF7ED; border:1px solid #FDBA74; color:#9A3412; border-radius:10px; padding:10px 14px; margin-bottom:14px; font-size:13.5px; flex-wrap:wrap; }
.supportbar button { margin:0; }
details.support-start { position:relative; display:inline-block; }
details.support-start > summary { list-style:none; cursor:pointer; display:inline-block; }
details.support-start > summary::-webkit-details-marker { display:none; }
details.support-start .popover { position:absolute; right:0; top:calc(100% + 6px); z-index:30; width:340px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px; box-shadow:0 12px 30px rgba(15,23,42,.15); display:flex; flex-direction:column; gap:10px; white-space:normal; }
details.support-start .popover label { display:flex; flex-direction:column; gap:4px; font-size:12.5px; }
tr.tenant-detail > td { background:#F8FAFC; padding:16px 18px; }
tr.tenant-detail h3 { margin-top:0; }
details.support-start > summary { font-weight:600; font-size:12.5px; padding:5px 11px; border:1px solid #D1D5DB; border-radius:8px; background:#fff; color:var(--ink); }
details.support-start[open] > summary { border-color:var(--accent); color:var(--accent); }
fieldset.confirm-super { border:1px solid #FCA5A5; background:#FEF2F2; border-radius:10px; padding:12px 14px; margin:12px 0; display:flex; flex-direction:column; gap:10px; }
fieldset.confirm-super label { display:flex; flex-direction:column; gap:4px; max-width:360px; }
fieldset.confirm-super label.inline { flex-direction:row; align-items:center; gap:8px; max-width:none; }
a.button.danger, button.danger { background:#fff; color:#B91C1C; border:1px solid #FCA5A5; }
a.button.danger:hover, button.danger:hover { background:#FEF2F2; color:#991B1B; }
/* O programie */
.side .me a.about-link { display:block; font-size:11.5px; color:#94A3B8; margin-top:8px; text-decoration:none; }
.side .me a.about-link:hover, .side .me a.about-link.on { color:#fff; }
.about-head { display:flex; gap:18px; align-items:center; }
.about-head svg { flex:none; }
.about-name { font-size:26px; font-weight:700; letter-spacing:-.3px; }
pre.license { white-space:pre-wrap; font:12.5px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; background:#F8FAFC; border:1px solid var(--line); border-radius:10px; padding:16px; max-height:520px; overflow:auto; margin:0; }
.auth-foot { text-align:center; font-size:12px; color:#94A3B8; margin-top:18px; }
.auth-foot a { color:#64748B; }
dialog.modal { border:0; border-radius:14px; padding:22px 24px; width:min(460px, 92vw); box-shadow:0 24px 60px rgba(15,23,42,.3); color:var(--ink); }
dialog.modal::backdrop { background:rgba(15,23,42,.45); }
dialog.modal.ask h2 { margin:0 0 8px; font-size:17px; }
dialog.modal.ask p { margin:0; line-height:1.5; color:var(--ink2); white-space:pre-line; }
dialog.modal.ask .actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
dialog.modal.ask .actions button { margin:0; }
dialog.modal .btn-danger { background:#DC2626; color:#fff; border:0; }
dialog.modal .btn-danger:hover { background:#B91C1C; }
dialog.modal label { display:flex; flex-direction:column; gap:4px; font-size:13px; }
.notice-preview { width:360px; max-width:100%; background:#1F2937; color:#F9FAFB; border-radius:10px; padding:14px 16px; box-shadow:0 10px 30px rgba(0,0,0,.25); font-family:"Segoe UI", system-ui, sans-serif; }
.notice-preview .np-title { font-weight:600; margin-bottom:6px; }
.notice-preview .np-text { font-size:13px; line-height:1.45; color:#E5E7EB; margin-bottom:4px; }
.notice-preview .np-foot { display:flex; justify-content:space-between; align-items:center; margin-top:10px; font-size:13px; }
.notice-preview .np-link { color:#93C5FD; text-decoration:underline; }
.notice-preview .np-btn { background:#374151; padding:4px 14px; border-radius:6px; }
.lic-options { flex-basis:100%; border-top:1px dashed var(--line); padding-top:10px; margin-top:4px; display:flex; flex-direction:column; gap:8px; }
.lic-row { display:flex; flex-wrap:wrap; gap:6px 16px; align-items:center; font-size:13px; }
.lic-row b { font-weight:600; min-width:84px; }
.lic-pcs summary { cursor:pointer; font-size:13px; color:var(--accent); }
.lic-tools { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.lic-tools button.small { margin-left:0; }
.privacy-box { display:flex; gap:16px; align-items:flex-start; border-left:4px solid #F59E0B; background:#FFFBEB; }
.privacy-box h2 { margin:0 0 6px; font-size:16px; }
.privacy-box p { margin:0 0 6px; font-size:13.5px; line-height:1.55; }
.privacy-box .pb-icon { font-size:26px; line-height:1; }


/* ---------- ekran logowania: panel graficzny + formularz ---------- */
.auth-split { min-height:100vh; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(380px,1fr); background:#fff; }
.auth-hero { position:relative; overflow:hidden; color:#E2E8F0; padding:40px 48px; display:flex; flex-direction:column; gap:26px;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(37,99,235,.55), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(34,197,94,.22), transparent 60%),
    linear-gradient(160deg, #0B1220 0%, #0F172A 55%, #111C33 100%); }
.auth-hero::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.35;
  background-image:linear-gradient(rgba(148,163,184,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.08) 1px, transparent 1px);
  background-size:32px 32px; mask-image:linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image:linear-gradient(180deg, #000 0%, transparent 85%); }
.auth-hero > * { position:relative; }
.hero-brand { display:flex; align-items:center; gap:12px; font-weight:700; font-size:19px; color:#fff; }
.hero-copy h2 { font-size:clamp(28px, 3.1vw, 42px); line-height:1.12; letter-spacing:-.8px; margin:18px 0 12px; color:#fff; font-weight:750; }
.hero-copy p { margin:0; max-width:460px; font-size:15.5px; line-height:1.6; color:#94A3B8; }
.hero-art { position:relative; max-width:500px; width:100%; margin:6px 0 0; }
.hero-art svg { width:100%; height:auto; display:block; filter:drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.hero-art .pulse { transform-box:fill-box; transform-origin:center; animation:heroPulse 3s ease-in-out infinite; }
@keyframes heroPulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.55; transform:scale(1.45); } }
.hero-chip { position:absolute; display:flex; flex-direction:column; gap:2px; padding:10px 14px; border-radius:12px; font-size:12px; color:#CBD5E1;
  background:rgba(15,23,42,.78); border:1px solid rgba(148,163,184,.22); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  box-shadow:0 14px 30px rgba(0,0,0,.35); animation:heroFloat 6s ease-in-out infinite; }
.hero-chip b { color:#fff; font-size:13px; font-weight:600; }
.hero-chip span { display:flex; align-items:center; gap:6px; }
.hero-chip .d { width:8px; height:8px; border-radius:50%; display:inline-block; }
.hero-chip .d.ok { background:#22C55E; box-shadow:0 0 0 3px rgba(34,197,94,.2); }
.hero-chip .d.warn { background:#F59E0B; box-shadow:0 0 0 3px rgba(245,158,11,.2); }
.hero-chip.c1 { right:-6px; top:-14px; }
.hero-chip.c2 { left:auto; right:24px; bottom:-28px; animation-delay:-3s; }
@keyframes heroFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-7px); } }
.hero-points { list-style:none; margin:auto 0 0; padding-top:44px; padding:0; display:flex; flex-direction:column; gap:12px; font-size:14px; color:#CBD5E1; }
.hero-points li { display:flex; align-items:center; gap:12px; }
.hero-points svg { flex:none; width:34px; height:34px; padding:8px; border-radius:10px; background:rgba(37,99,235,.18); color:#93C5FD; border:1px solid rgba(147,197,253,.2); }
.hero-foot { font-size:12px; color:#64748B; }
.auth-main { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:40px 24px; background:#fff; }
.auth-box { width:100%; max-width:400px; }
.auth-mobile-brand { display:none !important; align-items:center; gap:10px; font-weight:700; font-size:18px; }
.auth-form h1 { font-size:30px; letter-spacing:-.6px; margin:0 0 6px; }
.auth-sub { margin:0 0 26px; color:var(--muted); font-size:15px; }
.auth-form .field { display:flex; flex-direction:column; gap:6px; margin:0 0 16px; font-size:13px; font-weight:600; color:var(--ink2); }
.auth-form .field input { margin:0; }
.input-ico { position:relative; display:block; }
.input-ico > svg { position:absolute; left:13px; top:50%; width:18px; height:18px; transform:translateY(-50%); fill:none; stroke:#94A3B8; stroke-width:1.8; stroke-linecap:round; pointer-events:none; }
.auth-form input { width:100%; height:46px; padding:0 14px; font-size:15px; border:1px solid #D1D5DB; border-radius:11px; background:#F9FAFB; transition:border-color .15s, box-shadow .15s, background .15s; }
.input-ico input { padding-left:42px; }
.input-ico input[type=password], .input-ico input#pwd { padding-right:46px; }
.auth-form input:focus { outline:none; background:#fff; border-color:var(--accent); box-shadow:0 0 0 4px rgba(37,99,235,.14); }
.auth-form input:focus + .pwd-eye svg, .input-ico:focus-within > svg { stroke:var(--accent); }
.pwd-eye { position:absolute; right:6px; top:50%; transform:translateY(-50%); width:36px; height:36px; margin:0; padding:0; display:grid; place-items:center; background:none; border:0; border-radius:8px; cursor:pointer; }
.pwd-eye:hover { background:#EEF2F7; }
.pwd-eye svg { width:19px; height:19px; fill:none; stroke:#94A3B8; stroke-width:1.8; }
.pwd-eye.on svg { stroke:var(--accent); }
.caps-warn { margin:-8px 0 12px; font-size:12.5px; color:var(--warnInk); }
.auth-submit { width:100%; height:48px; display:flex; align-items:center; justify-content:center; text-align:center; margin:6px 0 0; font-size:15px; font-weight:600; border-radius:11px; border:0; color:#fff; cursor:pointer;
  background:linear-gradient(180deg, #3B82F6, #2563EB); box-shadow:0 10px 24px rgba(37,99,235,.28); transition:transform .08s, box-shadow .15s; }
.auth-submit:hover { box-shadow:0 12px 28px rgba(37,99,235,.38); }
.auth-submit:active { transform:translateY(1px); }
.auth-submit.busy { opacity:.75; pointer-events:none; }
.auth-note { display:flex; align-items:center; gap:8px; margin:22px 0 0; font-size:12.5px; color:var(--faint); }
.auth-note svg { flex:none; width:16px; height:16px; fill:none; stroke:var(--ok); stroke-width:1.8; }
.auth-form .flash { margin-bottom:16px; }
.auth-box > .flash { margin-bottom:16px; }
.auth-main .auth-foot { margin-top:40px; }
@media (max-width:900px) {
  .auth-split { grid-template-columns:1fr; }
  .auth-hero { display:none; }
  .auth-main { background:linear-gradient(180deg, #EEF4FF 0%, #fff 40%); }
  .auth-mobile-brand { display:flex !important; margin-bottom:28px; }
}
@media (prefers-reduced-motion: reduce) { .hero-art .pulse, .hero-chip { animation:none; } }


/* ---------- wyraźny stan: Online / Offline ---------- */
.live { display:inline-flex; align-items:center; gap:6px; flex:none; padding:2px 9px 2px 8px; border-radius:999px; font-size:11.5px; font-weight:700; letter-spacing:.2px; line-height:18px; white-space:nowrap; }
.live::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; flex:none; }
.live.on { background:#DCFCE7; color:#15803D; box-shadow:inset 0 0 0 1px #86EFAC; }
.live.on::before { box-shadow:0 0 0 0 rgba(22,163,74,.55); animation:livePulse 2s ease-out infinite; }
.live.off { background:#F1F5F9; color:#475569; box-shadow:inset 0 0 0 1px #CBD5E1; }
.live.manual { background:#EEF2FF; color:#4338CA; box-shadow:inset 0 0 0 1px #C7D2FE; }
@keyframes livePulse { 0% { box-shadow:0 0 0 0 rgba(22,163,74,.55); } 80%,100% { box-shadow:0 0 0 6px rgba(22,163,74,0); } }
@media (prefers-reduced-motion: reduce) { .live.on::before { animation:none; } }
.tile .meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.tile .meta .sub { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.tile.is-off { background:#F8FAFC; border-style:dashed; border-color:#CBD5E1; }
.tile.is-off .name a { color:#475569; }
.tile.is-off.crit { border-color:#FCA5A5; }
.tile.is-off.warn { border-color:#FCD34D; }
