/*!
 * Fixspot — © 2026 Dominik Gonsiorczyk · DG Project. Wszelkie prawa zastrzeżone.
 * Utwór chroniony prawem autorskim. Kopiowanie, rozpowszechnianie i modyfikowanie bez
 * pisemnej zgody autora jest zabronione. Zob. LICENSE.txt.
 */
/* GENEROWANE przez tools/gen-dark.js z app.css — nie edytuj ręcznie. Ręczne poprawki: sekcja na dole. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12141b; --panel: #1b1e27; --border: #2f3342; --text: #e6e8ef; --muted: #9aa1b5;
  --accent: #9159CC; --danger: #ff6b61; --warn: #e0a43a; --ok: #4cc37f;
}
html[data-theme="dark"] .field input, html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea, html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { background: #151821; color: var(--text); border-color: var(--border); }
html[data-theme="dark"] ::placeholder { color: #6c7388; }
html[data-theme="dark"] .modal, html[data-theme="dark"] #notifPanel, html[data-theme="dark"] .btn { background: var(--panel); color: var(--text); }
html[data-theme="dark"] .btn.primary { background: var(--accent); color: #fff; }
html[data-theme="dark"] .btn.danger { background: #c4372f; color: #fff; }
html[data-theme="dark"] .btn.ghost { background: transparent; }
html[data-theme="dark"] a { color: #c4a6ee; }
html[data-theme="dark"] #topBar { background: var(--panel); }
html[data-theme="dark"] #sideNav { background: #0d0e13; }
html[data-theme="dark"] .modal-backdrop { background: rgba(0,0,0,.65); }
html[data-theme="dark"] .stag-ok, html[data-theme="dark"] .stag-planned { background: #16301f; color: #86e0a3; }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea { background: #242424; }
html[data-theme="dark"] .btn { background: #242424; }
html[data-theme="dark"] .error-box { background: #3c1f1c; border: 1px solid #593532; }
html[data-theme="dark"] .note-box { background: #1b2239; color: #aabae8; border: 1px solid #2d344f; }
html[data-theme="dark"] #notifPanel { background: #242424; }
html[data-theme="dark"] .notif-item { border-bottom: 1px solid #292930; }
html[data-theme="dark"] .notif-item:hover { background: #1c2135; }
html[data-theme="dark"] tr.clickable:hover { background: #1d2333; }
html[data-theme="dark"] .pill.st-Nowe { background: #1e253f; color: #a19dde; }
html[data-theme="dark"] .pill.st-DoPrzypisania { background: #4c4424; color: #f2c2a5; }
html[data-theme="dark"] .pill.st-Zlecono { background: #224548; color: #b5e0ee; }
html[data-theme="dark"] .pill.st-WRealizacji { background: #1f2e42; color: #96a9e8; }
html[data-theme="dark"] .pill.st-Oczekuje { background: #3f1e1e; color: #eaa2a2; }
html[data-theme="dark"] .pill.st-DoWeryfikacji { background: #351c3c; color: #e6a7eb; }
html[data-theme="dark"] .pill.st-Zamkniete { background: #1f432b; color: #beedd0; }
html[data-theme="dark"] .pill.p-Krytyczny { background: #3f1e1e; color: #eaa2a2; }
html[data-theme="dark"] .pill.p-Wysoki { background: #453520; color: #efb4a1; }
html[data-theme="dark"] .pill.p-Normalny { background: #1d2b38; color: #c8d0dc; }
html[data-theme="dark"] .pill.p-Niski { background: #1b2734; color: #abb4c0; }
html[data-theme="dark"] .pill.lvl-0 { background: #1f432b; color: #beedd0; }
html[data-theme="dark"] .pill.lvl-1 { background: #4e4a25; color: #f2d1ac; }
html[data-theme="dark"] .pill.lvl-2 { background: #3f1e1e; color: #eaa2a2; }
html[data-theme="dark"] .modal { background: #242424; }
html[data-theme="dark"] .zone-row .result-btns button { background: #242424; }
html[data-theme="dark"] .zone-row .result-btns button.active-Dobry { background: #1f432b; border-color: #4c8862; }
html[data-theme="dark"] .zone-row .result-btns button.active-Uwaga { background: #3f1e1e; border-color: #693b3b; }
html[data-theme="dark"] .zone-row .result-btns button.active-Krytyczny { background: #4a2323; border-color: #905151; }
html[data-theme="dark"] .zone-row .result-btns button.active-NieDotyczy { background: #1d2b38; border-color: #3d4a5a; }
html[data-theme="dark"] .maint-system { border-left: 4px solid var(--mc, #6f7e92); background: var(--mc-bg, #1b2734); }
html[data-theme="dark"] .maint-chip { background: var(--mc, #525f72); }
html[data-theme="dark"] .maint-c0 { --mc-bg: #1b2239; }
html[data-theme="dark"] .maint-c1 { --mc-bg: #1c3b2c; }
html[data-theme="dark"] .maint-c2 { --mc-bg: #3a341b; }
html[data-theme="dark"] .maint-c3 { --mc-bg: #311936; }
html[data-theme="dark"] .maint-c4 { --mc-bg: #371a1a; }
html[data-theme="dark"] .maint-c5 { --mc-bg: #1b2239; }
html[data-theme="dark"] .maint-c6 { --mc-bg: #1b3932; }
html[data-theme="dark"] .maint-c7 { --mc-bg: #392c1b; }
html[data-theme="dark"] .maint-cost-badge { background: #1d2b38; color: #c8d0dc; }
html[data-theme="dark"] .maint-cost-badge.zero { background: #1b2734; }
html[data-theme="dark"] .inv-category { background: #1b3932; }
html[data-theme="dark"] .inv-qty { background: #1e253f; color: #a19dde; }
html[data-theme="dark"] .inv-qty.low { background: #3f1e1e; color: #eaa2a2; }
html[data-theme="dark"] .adv-round.closed { border-left: 4px solid #6f7e92; background: #1f1f2e; }
html[data-theme="dark"] .pill.adv-open { background: #1e253f; color: #a19dde; }
html[data-theme="dark"] .pill.adv-closed { background: #1d2b38; color: #bdc5d1; }
html[data-theme="dark"] td.editable:hover { background: #1b2239; }
html[data-theme="dark"] td.editable input { background: #242424; }
html[data-theme="dark"] tr.inv-total td { background: #1f262e; }
html[data-theme="dark"] .task-banner.warn { background: #3a341b; color: #f2c2a5; border: 1px solid #7b7045; }
html[data-theme="dark"] .task-banner.board { background: #311936; color: #e6a7eb; border: 1px solid #432949; }
html[data-theme="dark"] .task-progress { background: #1b2134; }
html[data-theme="dark"] .photo-tile-body { background: #202637; }
html[data-theme="dark"] .doc-chip { background: #1b2134; }
html[data-theme="dark"] .chat-count { background: #1b2239; }
html[data-theme="dark"] .chat-panel { background: #1b2134; }
html[data-theme="dark"] .chat-msg { background: #242424; }
html[data-theme="dark"] .chat-msg.mine { background: #1c243c; border-color: #2d344f; }
html[data-theme="dark"] .chat-file { background: #242424; }
html[data-theme="dark"] .chat-file:hover { background: #2d1e39; }
html[data-theme="dark"] .chat-chip { background: #242424; }
html[data-theme="dark"] .chat-input { background: #242424; }
@media (max-width: 820px) {
html[data-theme="dark"] .tasks-table tr { background: #242424; }
}
html[data-theme="dark"] .hint-btn { border: 1px solid #72788d; background: #242424; color: #b5b8c5; }
html[data-theme="dark"] .hint-btn:hover { background: #202539; }
html[data-theme="dark"] .hint-text { color: #bfc2cf; background: #1a2238; }
html[data-theme="dark"] .focus-pill { background: #1c263c; color: #9fb3e9; }
html[data-theme="dark"] .task-people h4 { color: #c8cbd8; }
html[data-theme="dark"] .pill.warranty-on { background: #20432a; color: #bbe9c8; }
html[data-theme="dark"] .pill.warranty-off { background: #262b37; color: #aeb1bd; }
html[data-theme="dark"] .rec-row.rec-late td.rec-due { color: #df9d9d; }
html[data-theme="dark"] .rec-row.rec-soon td.rec-due { color: #fadea8; }
html[data-theme="dark"] .stag-ok,
html[data-theme="dark"] .stag-planned { background: #364621; color: #dbf5c8; }
html[data-theme="dark"] .stag-soon { background: #453720; color: #f8ddbd; }
html[data-theme="dark"] .stag-overdue,
html[data-theme="dark"] .stag-expired { background: #3c1c1c; color: #e8b3b3; }
html[data-theme="dark"] .stag-noprotocol,
html[data-theme="dark"] .stag-none { background: #262b37; color: #d4d4d2; }
html[data-theme="dark"] .list-row { border: 1px solid #2e3342; background: #242424; }
html[data-theme="dark"] .list-row.clickable:hover { background: #1a2237; }
html[data-theme="dark"] .catalog-list { border: 1px solid #2e3342; }
html[data-theme="dark"] .defect-row { border: 1px solid #2e3342; background: #242424; }
html[data-theme="dark"] .cost-box { background: #1d2333; }
html[data-theme="dark"] .focus-clear { color: #9fb3e9; }
html[data-theme="dark"] .inv-category { background: var(--ic-bg, #1b3932); }
html[data-theme="dark"] .inv-c0 { --ic-bg: #1b2239; }
html[data-theme="dark"] .inv-c1 { --ic-bg: #1c3b2c; }
html[data-theme="dark"] .inv-c2 { --ic-bg: #3a341b; }
html[data-theme="dark"] .inv-c3 { --ic-bg: #311936; }
html[data-theme="dark"] .inv-c4 { --ic-bg: #371a1a; }
html[data-theme="dark"] .inv-c5 { --ic-bg: #1b2239; }
html[data-theme="dark"] .inv-c6 { --ic-bg: #1b3932; }
html[data-theme="dark"] .inv-c7 { --ic-bg: #392c1b; }
html[data-theme="dark"] .btn.ghost.danger { border-color: #5f3836; }
html[data-theme="dark"] .task-banner.danger { background: #371a1a; color: #eaa2a2; border: 1px solid #4d2b2b; }
html[data-theme="dark"] .chip-warn { background: #392c1b; color: #efb4a1; }
html[data-theme="dark"] .lamp { background: #525f72; }
html[data-theme="dark"] .lamp-grey { background: #525f72; }
html[data-theme="dark"] .progress { background: #2e3239; }
html[data-theme="dark"] .sub-title { background: #242424; }
html[data-theme="dark"] .sub-meta select,
html[data-theme="dark"] .sub-meta input { background: #242424; }
html[data-theme="dark"] .att-kind { background: #1b2239; color: #a19dde; }
html[data-theme="dark"] .att-kind.att-2 { background: #3f1e1e; color: #eaa2a2; }
html[data-theme="dark"] .att-kind.att-3 { background: #453520; color: #efb4a1; }
html[data-theme="dark"] .att-kind.att-0 { background: #1f432b; color: #beedd0; }
html[data-theme="dark"] .att-kind.att-1 { background: #4e4a25; color: #f2d1ac; }
html[data-theme="dark"] .seg { background: #242424; }
html[data-theme="dark"] .cal-dot.ev-task,
html[data-theme="dark"] .cal-ev.ev-task { background: #1f2e42; border-color: #425a75; color: #aabae8; }
html[data-theme="dark"] .cal-dot.ev-subtask,
html[data-theme="dark"] .cal-ev.ev-subtask { background: #1e253f; border-color: #3b4369; color: #a19dde; }
html[data-theme="dark"] .cal-dot.ev-inspection,
html[data-theme="dark"] .cal-ev.ev-inspection { background: #1f432b; border-color: #4c8862; color: #beedd0; }
html[data-theme="dark"] .cal-dot.ev-contract,
html[data-theme="dark"] .cal-ev.ev-contract { background: #4e4a25; border-color: #a79c63; color: #f2d1ac; }
html[data-theme="dark"] .cal-dot.ev-recurring,
html[data-theme="dark"] .cal-ev.ev-recurring { background: #2b1c3c; border-color: #48345d; color: #c49ae6; }
html[data-theme="dark"] .cal-ev.ev-p-Krytyczny { background: #3f1e1e; border-color: #693b3b; color: #eaa2a2; }
html[data-theme="dark"] .cal-ev.ev-p-Wysoki { background: #453520; border-color: #8a6d4e; color: #efb4a1; }
html[data-theme="dark"] .cal-month th.cal-wk,
html[data-theme="dark"] .cal-month td.cal-wk { background: #1d2b38; }
html[data-theme="dark"] .cal-month td.cal-day { background: #242424; }
html[data-theme="dark"] .cal-month td.cal-day.other { background: #1b2734; }
html[data-theme="dark"] .cal-month td.cal-day.weekend { background: #272727; }
html[data-theme="dark"] .cal-month td.cal-day.today { background: #2d1e39; }
html[data-theme="dark"] .cal-wcol { background: #242424; }
html[data-theme="dark"] .cal-wcol.today { background: #2d1e39; }
html[data-theme="dark"] .cal-wcol.weekend { background: #272727; }
html[data-theme="dark"] .pill.ev-pill-task { background: #1f2e42; color: #aabae8; }
html[data-theme="dark"] .pill.ev-pill-subtask { background: #1e253f; color: #a19dde; }
html[data-theme="dark"] .pill.ev-pill-inspection { background: #1f432b; color: #beedd0; }
html[data-theme="dark"] .pill.ev-pill-contract { background: #4e4a25; color: #f2d1ac; }
html[data-theme="dark"] .pill.ev-pill-recurring { background: #2b1c3c; color: #c49ae6; }
html[data-theme="dark"] .g-label { background: #242424; }
html[data-theme="dark"] .g-clickable:hover { background: #1a2237; }
html[data-theme="dark"] .g-head { background: #1b2734; }
html[data-theme="dark"] .g-head .g-label { background: #1b2734; }
html[data-theme="dark"] .g-hrow.top { background: #202b39; }
html[data-theme="dark"] .g-facrow { background: #202b39; }
html[data-theme="dark"] .g-facrow .g-label { background: #202b39; }
html[data-theme="dark"] .g-facrow .g-track { background: #202b39; }
html[data-theme="dark"] .g-sublabel { background: #1f1f2b; }
html[data-theme="dark"] .g-bar { background: #3c5a7f; }
html[data-theme="dark"] .g-subbar { background: #525f72 !important; }
html[data-theme="dark"] .g-subbar.done { background: #36724b !important; }
html[data-theme="dark"] .lg-approx { background: #2f4965; }
html[data-theme="dark"] .task-banner.ok { background: #1b3924; color: #beedd0; border: 1px solid #345d42; }
html[data-theme="dark"] .chip-ok { background: #1f432b; color: #beedd0; }
html[data-theme="dark"] .fac-tile { background: #242424; }
html[data-theme="dark"] .fac-tile:hover { border-color: #414b73; }
html[data-theme="dark"] .fac-tile.active { background: #2e1d38; }
html[data-theme="dark"] .fac-tile.all { background: #1b2734; }
html[data-theme="dark"] .fac-tile.all.active { background: #1a2136; }
html[data-theme="dark"] .fac-stats .fs-red { color: #e99191; }
html[data-theme="dark"] .fac-stats .fs-blue { color: #809be8; }
html[data-theme="dark"] .ins-sec { background: #242424; }
html[data-theme="dark"] .ins-sec > summary.ins-sec-head { background: #1d263b; }
html[data-theme="dark"] .ins-sec > summary.ins-sec-head::before { color: #bec1cf; }
html[data-theme="dark"] .ins-sec > summary.ins-sec-head:hover { background: #1f2942; }
html[data-theme="dark"] .stag-noprotocol { border: 1px dashed #7d7b71; }
html[data-theme="dark"] .ins-noproto { background: #3c331c; color: #fbe3b1; border: 1px solid #726540; }
html[data-theme="dark"] .ins-acct-ok { color: #beedd0; }
html[data-theme="dark"] .dropbox { border: 2px dashed #4d556c; background: #1b2134; }
html[data-theme="dark"] .drop-active { background: #2d1e39; }
html[data-theme="dark"] .dropbox.drop-active { background: #2d1e39; }
html[data-theme="dark"] .ord-late { color: #df9d9d; }
html[data-theme="dark"] .ord-soon { color: #ecc590; }
html[data-theme="dark"] .prio-chip { background: #242424; }
html[data-theme="dark"] .prio-chip.active { background: #2d1e39; color: #d1c0e0; }
html[data-theme="dark"] .opt-chip.active { background: #2d1e39; color: #d1c0e0; }
html[data-theme="dark"] .opt-sec { background: #192233; }
html[data-theme="dark"] .file-thumb { background: #242733; }
html[data-theme="dark"] .exec-block { background: #192233; }
html[data-theme="dark"] .exec-opt { background: #242424; }
html[data-theme="dark"] .exec-opt.active { background: #2d1e39; color: #d1c0e0; }
html[data-theme="dark"] .task-banner.info { background: #1b2239; color: #aabae8; border: 1px solid #2d344f; }
html[data-theme="dark"] .chip-red { background: #3f1e1e; color: #eaa2a2; }
html[data-theme="dark"] .chip-info { background: #1e253f; color: #a19dde; }
html[data-theme="dark"] .ack-tile { background: #2e1d38; }
html[data-theme="dark"] .protocol-tile { background: #2e1d38; }
html[data-theme="dark"] .protocol-tile:hover,
html[data-theme="dark"] .protocol-tile.drop-active { background: #1d253d; }
html[data-theme="dark"] .protocol-title { color: #aabae8; }
html[data-theme="dark"] .tile-num { background: #242424; }
html[data-theme="dark"] tr.has-unread { background: #351f19; }
html[data-theme="dark"] tr.has-unread:hover { background: #3a211b; }
html[data-theme="dark"] .inbox-card.has-unread { border-color: #693b3b; }
html[data-theme="dark"] .inbox-row:hover { background: #1d2333; }
html[data-theme="dark"] .inbox-row.unread { background: #351f19; }
html[data-theme="dark"] .chat-newbar { background: #3f1e1e; color: #eaa2a2; }
html[data-theme="dark"] .card.hist-late { border-color: #693b3b; }
html[data-theme="dark"] .card.hist-late .hist-num { color: #e99191; }
html[data-theme="dark"] .attention-card { background: #3a341b; }
html[data-theme="dark"] .attn-row { border-top: 1px solid #7b7045; }
html[data-theme="dark"] .attn-row:hover { background: #4c4424; }
html[data-theme="dark"] .attn-row.attn-withdrawn { background: #371a1a; }

/* ręczne poprawki */
html[data-theme="dark"] .error-box { background: #3a1c1a; color: #ff9a92; border-color: #6a2b27; }
html[data-theme="dark"] .note-box { background: #1b2447; color: #b7c6ff; border-color: #2f3d7a; }
html[data-theme="dark"] .hint-btn { background: #232736; color: #b7bdd1; border-color: #4b5168; }
html[data-theme="dark"] .hint-text { background: #20253a; color: #c3c9de; }
html[data-theme="dark"] tr.clickable:hover, html[data-theme="dark"] .list-row.clickable:hover { background: #232736; }
html[data-theme="dark"] .lightbox-backdrop { background: rgba(0,0,0,.92); }
