/* ═══════════════════════════════════════════════════════════════════════════
   PANELO · TRYBY KONTRASTU „wyższy” i „wysoki” (rejestr 264, 27.11.2026)
   Właściciel: „tryb kontrastu wygląda w całej aplikacaji źle i jest niedopraowany.”

   Jedyny arkusz reguł html[data-contrast] panelu warsztatu. Ładowany PO wszystkich panelo-*.css.
   Zastępuje stare bloki CL-036 z index.html (paleta sprzed Panelo: zielony akcent, szare tła, czarne
   przyciski pod kursorem, pasek ze zdjęciem) i rozproszone poprawki z panelo.css, panelo-organizacja.css
   i panelo-zlecenia.css.

   Zasady:
   • standard (brak atrybutu albo data-contrast="standard") = żadna reguła z tego pliku nie działa;
   • wygląd zostaje Panelo: te same kształty, kroje, kolory marki (niebieski #003CFF, atrament, mięta),
     tła stron i kart bez zmian; zmienia się tylko czytelność;
   • „wyższy”: tekst drugorzędny i wyciszony ≥ 4,5:1 na każdej powierzchni, ramki kart, pól i pigułek ≥ 3:1,
     fokus z klawiatury 2 px;
   • „wysoki”: każdy tekst ≥ 7:1 (atrament albo biel), obrysy 2 px ≥ 4,5:1, pigułki z obrysem,
     bez półprzezroczystości i cieni, jednolite tła pod tekstem (bez gradientów pod napisami);
   • wszystko przez tokeny (--pn-*, --ink*, --muted*, --line*, --field-line*): komponenty biorą je same;
     reguły elementów tylko tam, gdzie element ma literał koloru albo kształt bez krawędzi.
   Kontrola: frontend/tests/wyglad/kontrast-tokenow.mjs (tokeny z prawdziwej kaskady),
   frontend/tests/wyglad/fundament.mjs (żywe komponenty), frontend/tests/uwagi-1127-kontrast.mjs (ekrany).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokeny ───────────────────────────────────────────────────────────────
   Specyficzność (0,2,1) wygrywa z blokami motywu Panelo (0,1,1). Tła (--bg, --panel, --pn-soft, --chip…)
   zostają z motywu: tryb kontrastu nie przyciemnia stron na szaro. */
html:not([data-theme="dark"])[data-contrast="more"]{
  --pn-ink:#0b0b19;--ink:#0b0b19;
  --pn-ink-2:#2a2d3b;--ink-2:#2a2d3b;
  --pn-muted:#4f5366;--muted:#4f5366;--muted-2:#53576a;
  --pn-icon:#1a1d24;--mark-neutral:#6a6f84;
  --pn-border:#858ba0;--pn-border-2:#767c92;--edge:#858ba0;
  --line:#767c92;--line-2:#858ba0;--line-strong:#5b6075;
  --field-line:#767c92;--field-line-hover:#4a4f63;
  --toggle-off:#767c92;--sb-thumb:#9aa0b4;
  --pn-sep:rgba(11,11,25,.26);
  --pn-blue-line:#6f8dff;
  --red:#bf2d33;--amber:#975600;--violet:#6350d6;
  --red-text:#b6242c;--amber-text:#845401;--accent-text:#1f6a12;--violet-text:#4d41a1;
  --on-amber:#ffffff;
  --focus-ring:0 0 0 3px rgba(0,60,255,.3);
}
html:not([data-theme="dark"])[data-contrast="high"]{
  --pn-ink:#0b0b19;--ink:#0b0b19;
  --pn-ink-2:#15171f;--ink-2:#15171f;
  --pn-muted:#2f3242;--muted:#2f3242;--muted-2:#33364a;
  --pn-icon:#0b0b19;--mark-neutral:#4a4f63;
  --pn-border:#5b6075;--pn-border-2:#5b6075;--edge:#5b6075;
  --line:#5b6075;--line-2:#5b6075;--line-strong:#3a3e50;
  --field-line:#4a4f63;--field-line-hover:#0b0b19;
  --toggle-off:#5b6075;--sb-thumb:#6f7489;
  --pn-sep:#8d93a8;
  /* niebieski marki o krok ciemniej: biel na nim i on na jasnych powierzchniach ≥ 7:1 */
  --pn-blue:#0033dd;--pn-blue-2:#0033dd;--pn-blue-3:#002bbd;--pn-blue-line:#0033dd;
  --blue:#0033dd;--blue-vivid:#0033dd;--accent:#0033dd;--primary:#0033dd;--primary-text:#0033dd;--focus:#0033dd;
  --primary-hover:#002bbd;--primary-active:#0024a0;
  --red:#a3161e;--amber:#6a3000;--violet:#4629ae;
  --red-text:#8a0010;--amber-text:#6a3000;--accent-text:#125100;--violet-text:#4629ae;
  --on-amber:#ffffff;--ink-tile-muted:#ffffff;
}
html[data-theme="dark"][data-contrast="more"]{
  --pn-ink:#ffffff;--ink:#ffffff;
  --pn-ink-2:#e2e4ef;--ink-2:#e2e4ef;
  --pn-muted:#c3c6d8;--muted:#c3c6d8;--muted-2:#bfc2d6;
  --pn-icon:#f0f1f8;--mark-neutral:#9195b2;
  --pn-border:#6c7094;--pn-border-2:#7a7ea3;--edge:#6c7094;
  --line:#7a7ea3;--line-2:#6c7094;--line-strong:#9195b2;
  --field-line:#7a7ea3;--field-line-hover:#a3a7c2;
  --toggle-off:#7a7ea3;--sb-thumb:#5f6385;
  --pn-sep:rgba(255,255,255,.26);
  --pn-blue-line:#7e98ff;
  --primary-text:#9db4ff;--focus:#9db4ff;
  --focus-ring:0 0 0 3px rgba(157,180,255,.4);
}
html[data-theme="dark"][data-contrast="high"]{
  --pn-ink:#ffffff;--ink:#ffffff;
  --pn-ink-2:#f2f3f8;--ink-2:#f2f3f8;
  --pn-muted:#e3e5f0;--muted:#e3e5f0;--muted-2:#dfe1ee;
  --pn-icon:#ffffff;--mark-neutral:#c3c6d8;
  --pn-border:#a3a7c2;--pn-border-2:#a3a7c2;--edge:#a3a7c2;
  --line:#a3a7c2;--line-2:#9195b2;--line-strong:#c3c6d8;
  --field-line:#a3a7c2;--field-line-hover:#e3e5f0;
  --toggle-off:#9195b2;--sb-thumb:#7a7ea3;
  --pn-sep:#6c7094;
  /* niebieski marki ciemniej (biel na nim ≥ 7:1); niebieski jako tekst na granacie: jasny odcień */
  --pn-blue:#0a3ae0;--pn-blue-2:#0a3ae0;--pn-blue-3:#0a3ae0;--pn-blue-line:#9db4ff;
  --blue:#0a3ae0;--accent:#0a3ae0;--primary:#0a3ae0;--primary-hover:#0b33c4;--primary-active:#0a2ca8;
  --primary-text:#9db4ff;--blue-vivid:#9db4ff;--focus:#9db4ff;
  --red:#ffa3a2;--red-text:#ffa3a2;--amber-text:#e9b45e;--violet-text:#b5a7fd;
  --ink-tile-muted:#0b0b19;
  /* mięta (wybrany kafel, karta sumy) jaśniejsza: atrament na niej ≥ 7:1 */
  --pn-mint:#8fc4be;
}
/* panel (.pn-app) ma własne kolory znaczeniowe bursztynu i fioletu (panelo.css): te same kroki co wyżej */
html:not([data-theme="dark"])[data-contrast="more"] .pn-app{--amber:#975600;--amber-text:#845401;--violet:#6350d6;--violet-text:#4d41a1}
html:not([data-theme="dark"])[data-contrast="high"] .pn-app{--amber:#6a3000;--amber-text:#6a3000;--violet:#4629ae;--violet-text:#4629ae}
/* wspólne dla obu motywów */
html:is([data-contrast="more"],[data-contrast="high"]){
  --red-line:var(--red);--amber-line:var(--amber);
}
html[data-contrast="more"]{--disabled-opacity:.7}
html[data-contrast="high"]{
  --disabled-opacity:1;
  --focus-ring:0 0 0 2px var(--panel),0 0 0 4px var(--focus);
  --shadow-xs:none;--shadow-card:none;--shadow-btn-hover:none;--shadow-btn-hover-dark:none;
  --shadow-pop:0 0 0 2px var(--pn-border),0 24px 60px -18px rgba(6,3,28,.45);
  --scrim:rgba(6,3,28,.72);
}

/* ── 2. Przełączanie motywu i kontrastu bez opóźnionych kolorów (UI-60, K4) ───────────────
   Appearance.apply() (index.html, #wl-appearance) dodaje klasę na dwie klatki przy zmianie motywu albo kontrastu. */
html.wl-look-switch,html.wl-look-switch *,html.wl-look-switch *::before,html.wl-look-switch *::after{transition:none!important}

/* ── 3. Kółko zwijania menu (przeniesione z panelo.css bez zmian) ───────────────────────────
   standard, ciemny motyw: kółko przyciemnia niebieski zamiast go rozjaśniać (biel ≥ 4,5:1);
   wyższy i wysoki: bez wypełnienia, biały obrys. */
html[data-theme="dark"]:not([data-contrast="more"]):not([data-contrast="high"]) .pn-app .side .side-toggle{background:rgba(6,3,28,.24)}
html[data-theme="dark"]:not([data-contrast="more"]):not([data-contrast="high"]) .pn-app .side .side-toggle:hover{background:rgba(6,3,28,.4)}
html:is([data-contrast="more"],[data-contrast="high"]) .pn-app .side .side-toggle{background:transparent;box-shadow:inset 0 0 0 1.5px #fff}

/* ── 4. Ramki kart: cienka wyraźna linia zamiast grubej szarej ramki ──────────────────────
   Karty Panelo mają ramkę 4 px w kolorze --pn-border. Gruba ramka w ciemnym tonie (stare tryby) dawała ciężkie,
   szare obramowania wokół każdej karty. W trybach kontrastu ta sama ramka ma 2 px, a jej kolor (--pn-border) daje
   „wyższy” ≥ 3:1 i „wysoki” ≥ 4,5:1. Zmieniana jest tylko szerokość: karta, która w standardzie nie ma ramki
   (border:0, pasek narzędzi, lista bez ramki), nadal jej nie ma. Lista: reguły z „4px solid var(--pn-border)” w panelo*.css. */
html:is([data-contrast="more"],[data-contrast="high"]) :is(.pn-card,.window .card,.window .kb-col,.window .dash-card,.window .stat,.window .kpi,.pn-more-card,.pn-app .pn-navcard,
  .window .ds .om-actions>.zn-oc,.window .ds .om-actions>.vsms,.window .ds .om-actions>.rb-order,.window .zn-tab .zlf,.window .zn-tab .pn-stats.zn-stats,.ip-win .ip-det,.ip-win .ip-sdet,
  .window .kat-grid .card.filters,.window .cmp-tray,.window .zao-inv,.window .cn2-watch,.window .cn2-bulk,.kat2 .kat-strip,.kat2 .kat-drawer,.quote-detail .quote-main>.doc-panel,.kat2 .card.filters.cn2-strip,.quote-more-pop,
  .zao-note-card,.zao-side-sec,.pn-app .pno-stats,.pn-app .remtab-wrap .pno-agenda,.pn-app .ust-wrap .ust-nav,.pn-app .ust-wrap .ust-card,.pn-app .ust-wrap .ust-save,.pn-app .ust-wrap .ust-frame.flat>.card-h,
  .pn-app .pno-sup,.pn-app .ust-wrap .czs-two>.card,.pn-app .ust-wrap .ust-frame .card.czs-card,.pn-app .ust-wrap .ust-frame .card.czs-pv,.pn-app .pr-wrap .pr-lv-card,.pn-app .ust-wrap .u3-prev,
  .pn-app .pr3-bill,.pn-app .pr3-abs-empty,.pn-app .ust-wrap .ust-page .ust-card,.pn-crash-card,.window .zn-tab .zn-tb .search.zn-search){border-width:2px}
html:is([data-contrast="more"],[data-contrast="high"]) :is(html .pn-msgbar,html .window .zn-tab .zn-head .pn-msgbar.zn-att){border-width:2px!important}

/* ── 5. Pola, przyciski, przełączniki ──────────────────────────────────────────────────────
   Kolor krawędzi z tokenów (--field-line, --pn-border-2); w „wysokim” obrys 2 px (box-sizing: border-box, wymiary bez zmian). */
html[data-contrast="high"] .window :is(.input,.sp-trigger,.tp-trigger,.dp-trigger,.msel-trigger,select,textarea,.textarea,input[type=text],input[type=email],input[type=tel],input[type=number],input[type=search],input[type=password],input[type=date],input[type=time]):not(.modal-title):not([type=checkbox]):not([type=radio]){border-width:2px}
html[data-contrast="high"] .window .btn{border-width:2px}
/* pola-pigułki na jasnoniebieskiej powierzchni (szukaj, listy wyboru w Ustawieniach, paski filtrów) mają w standardzie
   przezroczystą krawędź: w trybach kontrastu widoczna linia pola. Najechanie, fokus i otwarta lista zostają ze swoimi kolorami. */
html:is([data-contrast="more"],[data-contrast="high"]) .window :is(.input,.sp-trigger,.tp-trigger,.dp-trigger,.msel-trigger,select,textarea,.textarea,.search,input[type=text],input[type=email],input[type=tel],input[type=number],input[type=search],input[type=password],input[type=date],input[type=time]):not(.modal-title):not([type=checkbox]):not([type=radio]):not(:hover):not(:focus):not(:focus-within):not(.open){border-color:var(--field-line)!important}
html[data-contrast="high"] .window .search{border-width:2px}
/* przyciski-ikony w kółkach (nagłówek, karty) i okrągłe strzałki: obrys, bo jasne koło na białym nie ma krawędzi */
html:is([data-contrast="more"],[data-contrast="high"]) .window :is(.iconbtn:not(.on),.pn-arrow){box-shadow:inset 0 0 0 1.5px var(--pn-border-2)}
html[data-contrast="high"] .window :is(.iconbtn:not(.on),.pn-arrow){box-shadow:inset 0 0 0 2px var(--pn-border-2)}
html:is([data-contrast="more"],[data-contrast="high"]) .pn-app .appbar .iconbtn:not(.dropdown *):not(.callbar *):not(.on){box-shadow:inset 0 0 0 1.5px var(--pn-border-2)}
html[data-contrast="high"] .pn-app .appbar .iconbtn:not(.dropdown *):not(.callbar *):not(.on){box-shadow:inset 0 0 0 2px var(--pn-border-2)}
/* przyciski niszczące: czerwień, na której biały napis ma ≥ 4,5:1 (wyższy) i ≥ 7:1 (wysoki) */
html[data-contrast="more"] .window .btn.danger{background:#c8102e;border-color:#c8102e}
html[data-contrast="high"] .window .btn.danger{background:#a50e25;border-color:#a50e25}
html[data-contrast="more"]:not([data-theme="dark"]) .window .btn.danger-line{border-color:#b6242c;color:#b6242c}
html[data-contrast="high"]:not([data-theme="dark"]) .window .btn.danger-line{border-color:#8a0010;color:#8a0010}
html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"]) .window .btn.danger-line{border-color:var(--red);color:var(--red)}

/* ── 6. Pigułki i wiersze list ─────────────────────────────────────────────────────────────
   Zakładki-pigułki (.pn-tab) to przyciski: obwódka w obu trybach. Wiersz listy (.pn-item) dostaje obwódkę, powierzchnia
   listy (.pn-items) nie (leży już w karcie z linią, druga ramka wokół listy była zbędna). Znaczniki stanu (.pn-tag2),
   ikony kafli i liczb: obwódka tylko w „wysokim”. Obwódka wewnętrzna (box-shadow inset) nie zmienia wymiarów. */
html:is([data-contrast="more"],[data-contrast="high"]) .window .pn-tab:not([aria-pressed="true"]):not([aria-selected="true"]){box-shadow:inset 0 0 0 1.5px var(--pn-border-2)}
html[data-contrast="high"] .window .pn-tab:not([aria-pressed="true"]):not([aria-selected="true"]){box-shadow:inset 0 0 0 2px var(--pn-border-2)}
/* przełączniki segmentowe (.seg: menu Wygląd, „Osoba prywatna / Firma”, widoki) i chipy-przyciski: obwódka całego przełącznika */
html:is([data-contrast="more"],[data-contrast="high"]) :is(.window,body) :is(.seg,button.chip){box-shadow:inset 0 0 0 1.5px var(--pn-border-2)}
html[data-contrast="high"] :is(.window,body) :is(.seg,button.chip){box-shadow:inset 0 0 0 2px var(--pn-border-2)}
/* wybrana pigułka: obwódka w kolorze jej wypełnienia (kształt daje atrament, bez jasnej linii na krawędzi) */
html:is([data-contrast="more"],[data-contrast="high"]) .window .pn-tab:is([aria-pressed="true"],[aria-selected="true"]){box-shadow:inset 0 0 0 1.5px var(--pn-ink)}
/* wiersz: obwódka domyślna o najniższej specyficzności (:where), więc najechanie, zaznaczenie i wiersze celowo bez
   krawędzi (wiersz w wierszu, przezroczyste pole kliknięcia) zachowują swój wygląd */
:where(html[data-contrast="more"] .window) .pn-item:not(:hover){box-shadow:inset 0 0 0 1px var(--pn-border-2)}
:where(html[data-contrast="high"] .window) .pn-item:not(:hover){box-shadow:inset 0 0 0 1.5px var(--pn-border-2)}
html[data-contrast="high"] .window .pn-tag2.pn-tag2:not(.ink):not(.blue){box-shadow:inset 0 0 0 1.5px var(--pn-border-2)!important}
html[data-contrast="high"] .window :is(.pn-q-ic,.pn-stat-ic){box-shadow:inset 0 0 0 1.5px var(--pn-border-2)}

/* ── 7. Fokus z klawiatury: kontur 2 px na każdym elemencie interaktywnym ─────────────────── */
html:is([data-contrast="more"],[data-contrast="high"]) :is(button,a[href],[tabindex]:not([tabindex="-1"]),summary,.toggle):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
html:is([data-contrast="more"],[data-contrast="high"]) :is(.input,.select,.textarea,input,select,textarea):focus-visible{outline:none}
/* na niebieskim bloku menu i na banerach kontur biały */
html:is([data-contrast="more"],[data-contrast="high"]) :is(.pn-app .side,.pn-hero,.pn-app .ust-wrap .ust-ph) :is(button,a[href],[tabindex]:not([tabindex="-1"])):focus-visible{outline-color:#fff}
html[data-contrast="high"] .window :is(.input,textarea,.textarea,input,select){transition:none}

/* ── 8. Stany nieaktywne w „wysokim”: pełne krycie (czytelny tekst), przerywana krawędź mówi „nieaktywne” ── */
html[data-contrast="high"] .window .btn:disabled,html[data-contrast="high"] .window .btn.primary:disabled,html[data-contrast="high"] .window .btn.primary:disabled:hover{opacity:1;border-style:dashed;border-color:var(--pn-border-2);background:var(--panel);color:var(--muted);box-shadow:none}
html[data-contrast="high"] .window :is(.input,.select,.textarea,input,select,textarea,.msel-trigger):disabled{border-style:dashed;color:var(--muted);background:var(--pn-soft)}
html[data-contrast="high"] .window :is(.toggle,.iconbtn,.pn-tab):disabled{opacity:1;outline:1.5px dashed var(--muted);outline-offset:2px}

/* ── 9. Banery (Pulpit, nagłówki zakładek, Ustawienia) ───────────────────────────────────
   Podpisy pełną bielą; w „wysokim” jednolity ciemniejszy niebieski zamiast gradientu (biel ≥ 7:1). */
html:is([data-contrast="more"],[data-contrast="high"]) :is(.pn-hero p,.pn-hero .day-heading p,.pn-hero .pn-hero-lead,.pn-app .ust-wrap .ust-ph p,.pn-app .ust-wrap .ust-ph .ust-ph-k){color:#fff!important;opacity:1}
html:is([data-contrast="more"],[data-contrast="high"]) .pn-hero :is(.pn-hero-tag,.pn-pill:not(.ghost)){color:var(--pn-black)!important}
html[data-contrast="high"] :is(.pn-hero.pn-hero.pn-hero,.pn-app .ust-wrap .ust-ph){background:#0029b8!important}
html[data-contrast="high"] .pn-app .appbar .pn-user .avatar-btn{background:#0029b8!important}
/* podpisy nad tytułem banerów zakładek (np. „Telefon warsztatu”) pełną bielą */
html:is([data-contrast="more"],[data-contrast="high"]) .pn-hero :is(.tel-hero-k,[class$="-hero-k"]){color:#fff!important;opacity:1}
/* podsumowanie dokumentu depozytu (jasny motyw, jasna karta): etykiety atramentem bez przezroczystości */
html:not([data-theme="dark"])[data-contrast="high"] .window .dd-document .dd-actions .doc-summary dt{color:#2f3242}
/* wybrany kafel stanowiska (Ustawienia → Stanowiska): podpis bez przezroczystości (ciemny „wysoki” miał 6,4:1) */
html:not([data-theme="dark"])[data-contrast="high"] .pn-app .ustp-st.on .ustp-st-m{color:#fff}
html[data-theme="dark"][data-contrast="high"] .pn-app .ustp-st.on .ustp-st-m{color:#2f3242}
/* jednostka w polach liczb na miętowej karcie (rabat %, cena w porównaniu ofert): atrament bez przezroczystości */
html[data-contrast="high"] .window :is(.ofx-pct,.of-cmp-price) .of-num-u{color:#2f3242}

/* ── 10. Podpowiedzi w pustych polach, paski przewijania, okna i menu ──────────────────── */
html:is([data-contrast="more"],[data-contrast="high"]) ::placeholder{color:var(--muted);opacity:1}
html:is([data-contrast="more"],[data-contrast="high"]) .tp-ph{color:var(--muted)}
html:is([data-contrast="more"],[data-contrast="high"]) ::-webkit-scrollbar-thumb{background:var(--sb-thumb);background-clip:padding-box;border:2px solid transparent}
html:is([data-contrast="more"],[data-contrast="high"]) ::-webkit-scrollbar-thumb:hover{background:var(--line-strong);background-clip:padding-box;border:2px solid transparent}
@supports (-moz-appearance: none) {
  html:is([data-contrast="more"],[data-contrast="high"]) *{scrollbar-color:var(--sb-thumb) transparent}
}
/* suwaki zakresu (filtry Katalogu, głośność słuchawki): niewypełniona część toru w kolorze ramki */
html:is([data-contrast="more"],[data-contrast="high"]) :is(.filters,.volmix,.ph-audio){--range-rest:var(--pn-border-2)}
/* okna i menu: krawędź zamiast samego cienia (na przyciemnionym tle i na treści pod spodem) */
html:is([data-contrast="more"],[data-contrast="high"]) :is(.modal,.ds){outline:1.5px solid var(--pn-border);outline-offset:-1.5px}
html[data-contrast="high"] :is(.modal,.ds){outline-width:2px;outline-offset:-2px}
html:is([data-contrast="more"],[data-contrast="high"]) .window :is(.dropdown,.pn-pop,.sp-pop,.tp-pop,.dp-pop,.ctx,.zld-pop){border-color:var(--pn-border)}

/* ── 11. Liczby i podpisy z wyblakłą końcówką albo przygaszone przezroczystością ───────────
   Wyblakła końcówka kwot („,00”) i przygaszone podpisy pól wolnego okna w Zleceniach: w trybach kontrastu czytelne. */
html:is([data-contrast="more"],[data-contrast="high"]) .pn-app .ust-wrap :is(.pn-sum-n,.ust-big) i{color:inherit}
/* wyblakła końcówka kwot w kartach sum, nagłówkach i wartościach wierszy: „wyższy” mniej wyblakła (65% koloru liczby,
   w obu motywach, także na miętowej karcie), „wysoki” pełnym kolorem liczby */
html[data-contrast="more"] :is(.pn-sum-n,.of-sum-n,.ip-sum-n,.ustp-dep-big,.dpz-zone-big,.zn-oh-sumv,.pn-stat-v) i{color:color-mix(in srgb,currentColor 65%,transparent)!important}
html[data-contrast="high"] :is(.pn-sum-n,.of-sum-n,.ip-sum-n,.ust-big,.ustp-dep-big,.dpz-zone-big,.pn-item-val,.zn-oh-sumv,.zn-fact.f-val,.pn-stat-v) i{color:inherit!important}
html[data-contrast="more"] .window .zn-tab .zn-fslot{opacity:.88}
html[data-contrast="high"] .window .zn-tab .zn-fslot{opacity:1}

/* ── 12. Zlecenia: powierzchnie siatki liczone z --pn-border-2 ─────────────────────────────
   Pas przeszłości, godziny poza pracą i blokady mieszają kolor ramki z tłem siatki. Ramka w trybach kontrastu jest
   ciemna, więc te pasy robiły się szarymi plamami: zostają w odcieniu standardowym (tekst na nich i tak z tokenów). */
html:not([data-theme="dark"]):is([data-contrast="more"],[data-contrast="high"]) .window .zn-tab :is(.zn-off,.zn-past,.zn-blk){--pn-border-2:#e3e7f1}
html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"]) .window .zn-tab :is(.zn-off,.zn-past,.zn-blk){--pn-border-2:rgba(255,255,255,.11)}
/* ciemny wysoki ma jaśniejszą miętę (atrament na miętowych znacznikach ≥ 7:1); wolne okna siatki z białym napisem zostają
   w odcieniu liczonym z mięty standardowej (biel ≥ 7:1) */
html[data-theme="dark"][data-contrast="high"] .window .tabwrap.zn-tab{--zn-free:color-mix(in srgb,#5f8d88 34%,var(--pn-mint-2));--zn-free-2:color-mix(in srgb,#5f8d88 20%,var(--pn-mint-2))}

/* ── 13. Ciemny wysoki: niebieskie wypełnienia z jasną krawędzią ───────────────────────────
   Biały napis na niebieskim wymaga ciemnego niebieskiego (≥ 7:1), a ciemny niebieski ginie na granacie strony (2,4:1).
   Kształt przycisku głównego, włączonego przełącznika i niebieskiej pigułki wyznacza jasnoniebieska krawędź (≥ 4,5:1). */
html[data-theme="dark"][data-contrast="high"] .window :is(.btn.primary,.btn.blue){border-color:var(--pn-blue-line)}
html[data-theme="dark"][data-contrast="high"] .window .toggle.on{box-shadow:inset 0 0 0 2px var(--pn-blue-line)}
html[data-theme="dark"][data-contrast="high"] .window .pn-pill:not(.dark){border-color:var(--pn-blue-line)}

/* ── 13b. Szyna otwartych dokumentów: podpisy wybranej karty pełnym kolorem karty w „wysokim” (były półprzezroczyste) ── */
html[data-contrast="high"] .window .ds-rail .ds-tab.active :is(.ds-tab-kind,.ds-tab-sub){color:inherit!important}

/* ── 14. Kolory znaczeniowe zapisane literałem (czerwień, zieleń) ───────────────────────────
   Tekst statusu w jasnym motywie: „wyższy” ≥ 4,5:1, „wysoki” ≥ 7:1 (tokeny --red-text, --accent-text). */
html:not([data-theme="dark"]):is([data-contrast="more"],[data-contrast="high"]) :is(.pn-stat.ok .pn-stat-v,.pn-app .an-wrap .an-trend.ok .an-tri){color:var(--accent-text)}
html:not([data-theme="dark"])[data-contrast="high"] .window .tabwrap.zn-tab{--zn-done:var(--accent-text);--zn-red:var(--red-text)}
html:not([data-theme="dark"])[data-contrast="more"] .window .tabwrap.zn-tab,html[data-theme="dark"][data-contrast="high"] .window .tabwrap.zn-tab{--zn-red:var(--red-text)}
/* znacznik „teraz” na osi godzin (Dzień, Tydzień): biały napis na czerwieni ≥ 4,5:1 i ≥ 7:1 (UI-13) */
html[data-contrast="more"] .window .zn-tab .zn-now-t{background:#c8102e}
html[data-contrast="high"] .window .zn-tab .zn-now-t{background:#a50e25}

/* ── 16. Zlecenia: grupa narzędzi i znacznik „po czasie” ───────────────────────────────────
   Grupa „Wszystkie stanowiska | Filtry | Wolny termin” to jasna pigułka bez krawędzi z przyciskami bez ramek: w trybach
   kontrastu krawędź ma cała grupa (jak pole), nie każdy przycisk. Znacznik „po czasie” / „przełożona” na karcie wizyty
   (kilka warstw reguł z !important w panelo-zlecenia.css) czerwienią tekstu statusu w obu motywach. */
html:is([data-contrast="more"],[data-contrast="high"]) .window .zn-tab .zn-tools{box-shadow:inset 0 0 0 1.5px var(--field-line)}
html[data-contrast="high"] .window .zn-tab .zn-tools{box-shadow:inset 0 0 0 2px var(--field-line)}
html:is([data-contrast="more"],[data-contrast="high"]) :is(.window,body) .zn-tab.zn-tab.zn-tab .kbc-pill.zn-tag:is(.late,.is-late,.is-wait,.resched,.noshow,.pilne){color:var(--red-text)!important}
/* ciemny „wysoki”: znacznik leży na jaśniejszej, półprzezroczystej pigułce karty, więc czerwień jaśniejsza (≥ 7:1) */
html[data-theme="dark"][data-contrast="high"] :is(.window,body) .zn-tab.zn-tab.zn-tab .kbc-pill.zn-tag:is(.late,.is-late,.is-wait,.resched,.noshow,.pilne){color:#ffd0cf!important}
/* przyciski-pigułki bez ramki w nagłówkach dnia i tygodnia oraz w wolnych oknach listy („Dziś”, „Odwołaj dzień lub godziny”,
   „Umów”): obwódka jak pigułki zakładek */
html:is([data-contrast="more"],[data-contrast="high"]) .window .zn-tab :is(.zn-bh .zn-nav .btn.sm,.zn-bh .btn.sm.zn-pillbtn,.zn-lfree .btn.sm.zn-lumow,.zn-wh .zn-dhbtn-w.btn.sm,.zn-wnone .btn.sm):not(.primary){box-shadow:inset 0 0 0 1.5px var(--pn-border-2)}
html[data-contrast="high"] .window .zn-tab :is(.zn-bh .zn-nav .btn.sm,.zn-bh .btn.sm.zn-pillbtn,.zn-lfree .btn.sm.zn-lumow,.zn-wh .zn-dhbtn-w.btn.sm,.zn-wnone .btn.sm):not(.primary){box-shadow:inset 0 0 0 2px var(--pn-border-2)}

/* ── 15. Teksty statusów i marki zapisane literałem w arkuszach panelu ─────────────────────
   Listy wygenerowane z panelo*.css (reguły z color:#c21c2c, #d61f31, #d4202f, #e0283a, #ee273a, #c7373a, #9a5800, #a35f00,
   #2c8a1c, #237a17, #2c7a1c; w ciemnym róże #ff7a86…#ff9aa3; color:var(--pn-blue|--blue|--primary|--accent); bez ikon).
   Każdy selektor osobno i dosłownie: :where(<tryb>) :is(<selektor>), więc specyficzność = oryginał: reguła wygrywa
   z regułą bazową (ten arkusz jest ostatni), a stany o większej specyficzności (wybrany dzień, wybrany kafel, ciemny motyw
   z własnym kolorem) zachowują swój kolor. Pomijane selektory, którym inna reguła daje kolor spoza grupy.
   !important tylko tam, gdzie ma je oryginał. Generator: wspolpraca/analizy/claude/2026-11-27-uwagi-stuczyka/raport-kontrast.md, sekcja 3. */
/* jasny „wysoki”: literały (--red-text) w tekstach panelu */
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-logout:hover),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-app .appbar .callbar .cb-label),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .btn.danger-line),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-stat.warn .pn-stat-v),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .ctx-i.danger),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-nx-row.late .pn-nx-sub em),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.modal.unsaved-dlg .unsaved-blocked),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.modal.unsaved-dlg .btn.danger-line),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-tag2.red),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-msg.warn .pn-msg-t strong),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-app .appbar .pn-cs-ph-t span.is-off),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-app .appbar .pn-cs-err),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.t2-net-cmp.is-hi),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(html .kat2 .kat-prices .t2-net-cmp.is-hi),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-dash .dash-reminder-imp),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-dash .dash-alert-gh em),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-dash .dash-call .pn-item-thumb.miss),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window :is(.zn-tab,.zn-peek) .kbc-pill:is(.resched,.pilne)),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .zn-oh .st-pill.pilne),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .ds .om-actions .sb.danger),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .ds .om-actions .sb.danger:hover:not(:disabled)),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .zn-tab .zn-flag.zn-cwait),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .ds .ol-tab .ol-sub.ol-bad),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .ds .ol-tab>tfoot>tr>td.ol-k.ol-bad),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .zn-oh .zn-oh-chips .chip:is(.amber,.red)),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .lmp-sync-hint),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(:is(.window,body) .vsms-set-sub.warn),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(:is(.window,body) .vsms-opt-sub.warn),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(:is(.window,body) .vsms-line.warn .vsms-t),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.ofv .ofv-del),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .kli-actions .pn-q.danger),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.dpz-list .dpz-group.g-poterminie .dpz-group-h),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .dpz-leg-i.overdue),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .dpz-shelf-cm.over),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .kli-doc .kli-ord .st-pill:is(.cancel,.pilne)),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-dir.miss.miss.miss),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-outcome:is(.miss,.red)),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .pn-tag2.tel-outcome.red),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .dpz-doc-tiles .dpz-fact.warn .dpz-fact-l),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.dpz-day.has .dpz-day-c.red),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .dd-more-pop>.btn.danger-line),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-add-client .tel-dlg-msg.err),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-live-reg.warn),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-live-hero p.tel-live-note.warn),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-live-hero .pn-pill.tel-hangup),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-live-warn),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window :is(.tel-tab,.tel-dlg) .pn-pill.ph-del:hover:not(:disabled)),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-set-card .ph-warn),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-dlg .ph-warn),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .ph-flow .ph-flow-warn b),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .ph-flow .ph-amber),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-set-card .ph-amber),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-dlg .tel-dlg-msg.warn),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .callbar .cb-warn),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .callbar .btn.cb-fix),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-sms .sms-msg.warn),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-detail-err),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(:is(.window,body) .sale-pn .sale-err),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .cen-pn .cen-pn-warn),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .of-nip-msg),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .ofx-err),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .ofx-tiles [role="alert"]),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.zao-note-msg.err),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.ord-note-err),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-app .ust-wrap .czs-advice b),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-app .ust-wrap .u3-wh-cell.over b),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-app .pr3-abs-del:hover),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-app .remtab-wrap .rem-item.late .rem-time),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-app .remtab-wrap .rem-item .rem-del:hover),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-app .pno-notif .pno-nt-mini.del:hover),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(html .usl-groups-pn .usl-category-row.is-removed .usl-group-no),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(html .modal.pn-cf[data-tone="warn"] .modal-icon),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.modal.pn-cf .pn-cf-warn),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(html .modal.unsaved-dlg.pn-cf .unsaved-blocked),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.modal.pn-cf .pn-tag2.pn-cf-miss),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.modal:is(.pn-cf,.pk-confirm) .btn.danger-line),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.modal:is(.pn-cf,.pk-confirm) .btn.danger-line:hover:not(:disabled)),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.modal.pn-cf>.dpz-error),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.ord-summary .ord-sum-note.is-err),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.ord-summary .ord-sum-diffs-h),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.ord-summary .ord-sum-diff .pn-item-thumb),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.ord-summary .pn-tag2.pn-tag2-warn),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.ord-summary .ord-prod-n.is-low),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-gate .pn-gate-msg.is-err p),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-gate .btn.danger-line),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-app .main>.acc-bar.amber b){color:var(--red-text)}
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(html .pn-tag2.red),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-miss),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(html :is(.window,body) :is(.zn-tab,.zn-peek) .kbc-pill:is(.resched,.pilne,.late)),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.modal.pn-cf .pn-cf-red){color:var(--red-text)!important}
/* jasny „wysoki”: literały (--amber-text) w tekstach panelu */
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .dpz-leg-i.s-amber),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .dpz-shelf-cm.full),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .kli-doc .kli-ord .st-pill.hold),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .pk-modal .chip.amber:not(.dpz-tag)),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .dd-document .chip.amber:not(.dpz-tag)),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .tel-outcome.amber){color:var(--amber-text)}
/* jasny „wysoki”: literały (--accent-text) w tekstach panelu */
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-stat.ok .pn-stat-v),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.window .of-cmp-price .of-p-best),
:where(html:not([data-theme="dark"])[data-contrast="high"]) :is(.pn-app .an-wrap .an-trend.ok .an-tri){color:var(--accent-text)}
/* ciemny „wysoki”: czerwień tekstu z reguł ciemnego motywu (#ff7a86, #ff7d89, #ff8a94, #ff8b95, #ff9aa3) */
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .ctx-i.danger),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-nx-row.late .pn-nx-sub em),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-app .appbar .live-status.live-session),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-tag2.red),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-msg.warn .pn-msg-t strong),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .kat2 .kat-prices .t2-net-cmp.is-hi),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-dash .dash-reminder-imp),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-dash .dash-alert-gh em),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-dash .dash-call .pn-item-thumb.miss),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window :is(.zn-tab,.zn-peek) .kbc-pill:is(.resched,.pilne)),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .ds .om-actions .sb.danger),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .zn-tab .zn-flag.zn-cwait),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .zn-oh .zn-oh-prio:has(.toggle.on)),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .zn-oh .zn-oh-chips .chip:is(.amber,.red)),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] :is(.window,body) .sched-overview .sch-tg-full),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] :is(.window,body) .sched-overview .sched-ovcal .mc-d.lv-full .dn),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .lmp-sync-hint),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] :is(.window,body) :is(.vsms-set-sub,.vsms-opt-sub).warn),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] :is(.window,body) .vsms-line.warn .vsms-t),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window :is(.kli-stats,.dpz-stats,.tel-stats) .pn-stat.warn .pn-stat-v),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .kli-actions .pn-q.danger),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .dpz-list .dpz-group.g-poterminie .dpz-group-h),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .dpz-leg-i.overdue),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .dpz-shelf-cm.over),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .dpz-due-t.red),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .kli-doc .kli-ord .st-pill:is(.cancel,.pilne)),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .tel-dir.miss.miss.miss),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .tel-outcome:is(.miss,.red)),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .pn-tag2.tel-outcome.red),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .dpz-doc-tiles .dpz-fact.warn .dpz-fact-l),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window :is(.kli-tab,.dpz-tab,.tel-tab,.pk-modal,.kli-veh-modal,.dd-document) .btn.danger-line),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window :is(.kli-tab,.dpz-tab,.tel-tab,.pk-modal,.kli-veh-modal,.dd-document) .pn-q.danger),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window :is(.kli-tab,.dpz-tab,.tel-tab,.pk-modal,.kli-veh-modal,.dd-document) .kli-q.danger),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .dd-more-pop>.btn.danger-line),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .tel-add-client .tel-dlg-msg.err),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .tel-add-client .tel-dlg-msg.warn),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .tel-live-warn),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window :is(.tel-set-card,.tel-dlg) .ph-warn),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .ph-flow .ph-flow-warn b),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .callbar .cb-warn),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .tel-detail-err),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] :is(.window,body) .sale-pn .sale-err),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .of-nip-msg:not(.ok)),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .ofx-err),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .ofx-tiles [role="alert"]),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .zao-note-msg.err),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .ord-note-err),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .window .zx-stats .pn-stat.warn .pn-stat-v),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-app .pno-tile.warn .pno-tile-v),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-app .ust-wrap .czs-advice b),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-app .ust-wrap .u3-wh-cell.over b),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-app .pr3-abs-del:hover),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-app .remtab-wrap .rem-item.late .rem-time),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .modal.pn-cf[data-tone="warn"] .modal-icon),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .modal.pn-cf .pn-cf-warn),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .modal.pn-cf .unsaved-blocked),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .modal.pn-cf .pn-tag2.pn-cf-miss),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .modal:is(.pn-cf,.pk-confirm) .btn.danger-line),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .modal:is(.pn-cf,.pk-confirm) .btn.danger-line:hover:not(:disabled)),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .modal.pn-cf>.dpz-error),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .ord-summary .ord-sum-note.is-err),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .ord-summary .ord-sum-diffs-h.ord-sum-diffs-h),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .ord-summary .pn-tag2.pn-tag2-warn),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .ord-summary .ord-prod-n.is-low),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-gate .pn-gate-msg.is-err p),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-app .main>.acc-bar.amber b),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-app .ust-wrap .u2-unsaved){color:var(--red-text)}
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-tag2.red),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .pn-miss),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] :is(.window,body) :is(.zn-tab,.zn-peek) .kbc-pill:is(.resched,.pilne,.late)),
:where(html[data-contrast="high"]) :is(html[data-theme="dark"] .modal.pn-cf .pn-cf-red){color:var(--red-text)!important}
/* ciemny „wyższy” i „wysoki”: tekst w kolorze marki (#1F55FF ma na granacie 3,3:1) jasnym odcieniem */
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .appbar .iconbtn:not(.dropdown *):not(.callbar *):hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-logout),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .btn:not(.primary):not(.danger):not(.danger-line):not(.blue):hover:not(:disabled)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .iconbtn:where(:not(.primary,.danger,.danger-line)):hover:not(:disabled)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .sb:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .link),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window button.chip:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-more:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-pill:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-stat:hover .pn-stat-go),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .dp-presets button:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .dp-d.today),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-nx-tile.on b),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-nx-check:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.modal.unsaved-dlg .btn:hover:not(:disabled)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-msgbar-nav button:hover:not(:disabled)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .appbar .pn-cs-bar .pn-cs-off),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-rem-pager button:hover:not(:disabled)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-dash .day-no-attention .link),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .zn-tab .zn-colh-u .zlg-chip:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .zn-tab .zn-gmore),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .zn-tab .zn-wh-t:hover b),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .zn-tab .zn-wfree:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .ds .om-actions .sb:hover:not(:disabled)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .ds .ol-tab .ol-sub:is(.ol-fix,.ol-cat)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .ds .om-drow:focus-within>.om-drow-ed),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .zn-oh .zn-oh-sum:hover .zn-oh-sumv),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(:is(.window,body) .sched-overview .sched-ovcal .mc-d.hp-next .dn),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.kli-list .kli-more),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .dpz-toolbar .dpz-filter-trigger.active),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .dpz-free),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .dpz-free:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .dpz-free:focus-visible),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .tel-dir.tel-dir.tel-dir:not(.out):not(.miss)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window :is(.tel-tab,.tel-dlg) .pn-pill.ghost:hover:not(:disabled)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .tel-set-card .btn.sm:hover:not(:disabled)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .ph-flow .ph-flow-when .muted),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .tel-save-ok),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .tel-sms .sms-expand),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .cmp-tray-go:hover .pn-arrow),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .remtab-wrap .mc-d.today .dn),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .pno-rem-modal .rem-mode:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .pno-rem-modal .rem-cat:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .an-wrap .an-wallet .pn-more:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app button.pno-ds-ck:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .pno-pill:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .ustp-st-ch),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .ustp-veh-p:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .ust-wrap .u3-theme-ck),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .an-wrap .an-sz-list .pn-tab:not([aria-pressed="true"]):hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .remtab-wrap .rem-item .rem-ck:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .remtab-wrap .remtab .mc-d.today .dn),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.modal:is(.pn-cf,.pk-confirm) .btn:hover:not(:disabled)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.modal.pn-cf .pn-cf-chip:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-dash .dlu-dash-n:hover){color:var(--primary-text)}
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(:is(.window,body) .sched-overview .sch-tg-next){color:var(--primary-text)!important}
/* ciemny „wyższy” i „wysoki”: literały (--red-text) bez reguły ciemnego motywu */
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-logout:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .appbar .callbar .cb-label),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .btn.danger-line),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-stat.warn .pn-stat-v),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.modal.unsaved-dlg .unsaved-blocked),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.modal.unsaved-dlg .btn.danger-line),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .appbar .pn-cs-ph-t span.is-off),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .appbar .pn-cs-err),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.t2-net-cmp.is-hi),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .zn-oh .st-pill.pilne),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .ds .om-actions .sb.danger:hover:not(:disabled)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .ds .ol-tab .ol-sub.ol-bad),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .ds .ol-tab>tfoot>tr>td.ol-k.ol-bad),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(:is(.window,body) .vsms-set-sub.warn),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(:is(.window,body) .vsms-opt-sub.warn),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.ofv .ofv-del),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.dpz-day.has .dpz-day-c.red),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .tel-live-reg.warn),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .tel-live-hero p.tel-live-note.warn),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .tel-live-hero .pn-pill.tel-hangup),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window :is(.tel-tab,.tel-dlg) .pn-pill.ph-del:hover:not(:disabled)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .tel-set-card .ph-warn),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .tel-dlg .ph-warn),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .ph-flow .ph-amber),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .tel-set-card .ph-amber),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .tel-dlg .tel-dlg-msg.warn),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .callbar .btn.cb-fix),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .tel-sms .sms-msg.warn),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .cen-pn .cen-pn-warn),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .of-nip-msg),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .remtab-wrap .rem-item .rem-del:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-app .pno-notif .pno-nt-mini.del:hover),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(html .usl-groups-pn .usl-category-row.is-removed .usl-group-no),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(html .modal.unsaved-dlg.pn-cf .unsaved-blocked),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.ord-summary .ord-sum-diffs-h),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.ord-summary .ord-sum-diff .pn-item-thumb),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-gate .btn.danger-line){color:var(--red-text)}
/* ciemny „wyższy” i „wysoki”: literały (--amber-text) bez reguły ciemnego motywu */
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .dpz-leg-i.s-amber),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .pk-modal .chip.amber:not(.dpz-tag)),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .dd-document .chip.amber:not(.dpz-tag)){color:var(--amber-text)}
/* ciemny „wyższy” i „wysoki”: literały (--accent-text) bez reguły ciemnego motywu */
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.pn-stat.ok .pn-stat-v),
:where(html[data-theme="dark"]:is([data-contrast="more"],[data-contrast="high"])) :is(.window .of-cmp-price .of-p-best){color:var(--accent-text)}
