/* =================================================================================================
   FTpanel — wyglad 2026: jasna szarosc, czarne "pigulki", akcent limonkowy (zmienny w ustawieniach),
   szklo (liquid glass) na plynacym, kolorowym tle, karty z wycieciem na przycisk, kreskowania i kropki.
   Zasady: czytelnosc przede wszystkim (akcent tylko jako tlo pod ciemnym tekstem albo przyciemniony
   --akcent-tekst), bez stylow inline (CSP), animacje wylaczane przy "ogranicz ruch".
   Zmienne --akcent* nadpisuje /wyglad.css (ustawienia panelu).
   ================================================================================================= */
:root {
  --akcent: #c7f33c;
  --na-akcencie: #0b0d0e;
  --akcent-jasny: #f3fcd4;
  --akcent-ciemny: #b4dc37;
  --akcent-tekst: #657b24;

  --tusz: #0b0d0e;
  --tekst: #17191c;
  --tekst-slaby: #686d76;
  --tlo: #e9eaed;
  --powierzchnia: #f3f4f6;
  --karta: #fafafb;
  --linia: rgba(15, 17, 20, .08);
  --linia-mocna: rgba(15, 17, 20, .14);
  --zielony: #1d7a3e; --zielony-tlo: #ddf7e4;
  --zolty: #8a5a00;   --zolty-tlo: #fff1c9;
  --czerwony: #b42318; --czerwony-tlo: #fee4e2;
  --szary: #4b5058;   --szary-tlo: #eceef1;

  --r-xl: 30px; --r-l: 24px; --r-m: 18px; --r-s: 12px;
  --szyna: 84px;
  --odstep: clamp(14px, 1.6vw, 22px);
  --ruch: cubic-bezier(.2, .8, .2, 1);
  --cien-szkla: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 -1px 0 rgba(255, 255, 255, .25) inset,
                0 18px 40px -18px rgba(15, 17, 20, .28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--tlo);
  color: var(--tekst);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--tusz); text-decoration: underline; text-decoration-color: var(--akcent-ciemny);
    text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--tusz); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0; }
code, .kod { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
.ukryte { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ikona { width: 20px; height: 20px; flex: none; }
.ikona-s { width: 16px; height: 16px; flex: none; }
.drobne { font-size: 12.5px; color: var(--tekst-slaby); }
.opis { color: var(--tekst-slaby); }
.liczby { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--akcent); outline-offset: 2px; border-radius: 10px; }

/* --- tlo: wolno plynace, rozmyte plamy koloru (pod szklem) --------------------------------------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 58%; top: -18%; background: var(--akcent);
                            animation: dryf-a 38s var(--ruch) infinite alternate; }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; left: -10%; top: 40%; background: #c9b6ff;
                            animation: dryf-b 46s var(--ruch) infinite alternate; }
.aurora span:nth-child(3) { width: 34vw; height: 34vw; left: 35%; top: 70%; background: #9fd6ff;
                            animation: dryf-c 52s var(--ruch) infinite alternate; }
.aplikacja .aurora span { opacity: .32; }
@keyframes dryf-a { to { transform: translate(-12vw, 14vh) scale(1.15); } }
@keyframes dryf-b { to { transform: translate(16vw, -12vh) scale(.9); } }
@keyframes dryf-c { to { transform: translate(-14vw, -18vh) scale(1.2); } }

/* --- szklo (liquid glass) ----------------------------------------------------------------------- */
.szklo {
  position: relative; isolation: isolate;
  background: linear-gradient(140deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--cien-szkla);
}
.szklo::before {                   /* odblask: przesuwa sie za kursorem (ftpanel.js ustawia --mx/--my) */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(240px circle at var(--mx, 25%) var(--my, 0%), rgba(255, 255, 255, .75), transparent 60%);
  opacity: .8; transition: opacity .3s;
}

/* szklo do czytania (wysuwane menu, menu konta): prawie nieprzezroczyste, zeby tekst byl wyrazny */
.wysuw.szklo, .konto-menu.szklo {
  background: linear-gradient(140deg, rgba(255, 255, 255, .97), rgba(248, 249, 251, .93));
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: var(--cien-szkla), 0 24px 48px -20px rgba(15, 17, 20, .35);
}

/* --- uklad aplikacji ---------------------------------------------------------------------------- */
.szyna {
  position: fixed; z-index: 40; left: 16px; top: 16px; bottom: 16px; width: var(--szyna);
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0;
  border-radius: var(--r-xl);
}
.logo { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; margin-bottom: 10px;
        background: var(--tusz); color: var(--akcent); font-weight: 700; letter-spacing: -.04em; font-size: 17px;
        text-decoration: none; transition: transform .3s var(--ruch); }
.logo:hover { transform: rotate(-6deg) scale(1.05); }
.szyna-menu { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; width: 100%; }
.szyna-poz { position: relative; }
.szyna-poz.dol { margin-top: auto; }
.szyna-ikona {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  color: var(--tekst); text-decoration: none;
  transition: background .25s var(--ruch), color .25s, transform .25s var(--ruch);
}
.szyna-ikona:hover { background: rgba(255, 255, 255, .85); transform: scale(1.06); }
.szyna-poz.aktywna .szyna-ikona { background: var(--tusz); color: #fff; }
.szyna-poz.aktywna .szyna-ikona::after {        /* limonkowa kropka aktywnej sekcji */
  content: ""; position: absolute; right: 4px; top: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--akcent); box-shadow: 0 0 0 2px var(--tusz);
}
.wysuw {                                          /* panel z narzedziami sekcji (najechanie / klawiatura) */
  position: absolute; left: calc(100% + 18px); top: -8px; min-width: 230px; padding: 10px;
  border-radius: var(--r-l); opacity: 0; visibility: hidden; transform: translateX(-6px) scale(.98);
  transform-origin: left top; transition: opacity .2s, transform .25s var(--ruch), visibility .2s;
}
.szyna-poz.dol .wysuw { top: auto; bottom: -8px; transform-origin: left bottom; }
.szyna-poz:hover .wysuw, .szyna-poz:focus-within .wysuw { opacity: 1; visibility: visible; transform: none; }
.wysuw::after { content: ""; position: absolute; left: -20px; top: 0; width: 20px; height: 100%; } /* most dla myszy */
.wysuw-tytul { padding: 6px 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em;
               text-transform: uppercase; color: var(--tekst-slaby); }
.wysuw a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px;
           border-radius: var(--r-s); color: var(--tekst); text-decoration: none; white-space: nowrap; }
.wysuw a:hover { background: var(--szary-tlo); }
.wysuw a.aktywna { background: var(--akcent); color: var(--na-akcencie); font-weight: 600; }

.obszar { margin-left: calc(var(--szyna) + 32px); padding: 28px 32px 48px 8px; min-width: 0; }
.naglowek { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
             position: relative; z-index: 30; }   /* menu konta nad pigulkami i kartami */
.okruszek { font-size: 13px; color: var(--tekst-slaby); margin-bottom: 6px; }
.tytul { font-size: clamp(30px, 3.6vw, 50px); font-weight: 400; letter-spacing: -.045em; line-height: 1.02; }
.tytul em { font-style: normal; color: var(--tekst-slaby); }

.konto { position: relative; flex: none; }
.konto-przycisk { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
                  cursor: pointer; list-style: none; }
.konto-przycisk::-webkit-details-marker { display: none; }
.awatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
          background: var(--akcent); color: var(--na-akcencie); font-weight: 650; }
.awatar-duzy { width: 52px; height: 52px; font-size: 19px; }
.konto-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 230px; padding: 8px;
              border-radius: var(--r-l); animation: pojaw .22s var(--ruch); }
.konto-menu a, .konto-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
  border: 0; border-radius: var(--r-s); background: none; color: var(--tekst); font: inherit; text-align: left;
  text-decoration: none; cursor: pointer; }
.konto-menu a:hover, .konto-menu button:hover { background: var(--szary-tlo); }
.konto-menu form { margin: 0; }

.pigulki { display: flex; gap: 8px; margin: 22px 0 4px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pigulki::-webkit-scrollbar { display: none; }
.pigulka { flex: none; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .7);
           border: 1px solid var(--linia); color: var(--tekst); text-decoration: none; white-space: nowrap;
           transition: background .2s, transform .2s var(--ruch); }
.pigulka:hover { background: #fff; transform: translateY(-1px); }
.pigulka.aktywna { background: var(--tusz); color: #fff; border-color: var(--tusz); }

.tresc { margin-top: 24px; max-width: 1480px; }

/* --- karty ---------------------------------------------------------------------------------------- */
.karta {
  position: relative; background: var(--karta); border-radius: var(--r-xl); padding: 24px;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 1px 2px rgba(15, 17, 20, .04);
  transition: transform .35s var(--ruch), box-shadow .35s var(--ruch);
}
a.karta { color: inherit; text-decoration: none; display: block; }
.karta.uniesienie:hover, a.karta:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -24px rgba(15, 17, 20, .35); }
.karta-ciemna { background: var(--tusz); color: #f3f4f6; border-color: var(--tusz); }
.karta-ciemna .opis, .karta-ciemna .drobne, .karta-ciemna .etykieta { color: #a3a8b0; }
.karta-akcent { background: var(--akcent); color: var(--na-akcencie); border-color: transparent; }
.karta-akcent .opis, .karta-akcent .drobne, .karta-akcent .etykieta { color: inherit; opacity: .72; }
.karta-gradient {
  color: #101216; border: 1px solid rgba(255, 255, 255, .6); overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #d9cbff 0%, #a9c9ff 45%, #b9f0dc 100%);
}
.karta-gradient::after {           /* polysk szkla na gradiencie */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120% 80% at 10% 0%, rgba(255, 255, 255, .7), transparent 55%),
              radial-gradient(60% 60% at 100% 100%, rgba(255, 255, 255, .35), transparent 70%);
}
.karta-wciecie {                    /* okragle wyciecie w rogu na przycisk ↗ */
  -webkit-mask: radial-gradient(circle 33px at calc(100% - 30px) 30px, transparent 32px, #000 33px);
  mask: radial-gradient(circle 33px at calc(100% - 30px) 30px, transparent 32px, #000 33px);
}
.rog { position: relative; display: flex; flex-direction: column; min-width: 0; }
.rog > .karta { flex: 1; display: flex; flex-direction: column; }
.przycisk-rog {
  position: absolute; z-index: 2; right: 8px; top: 8px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--tusz); background: var(--karta);
  border: 1px solid var(--linia-mocna); text-decoration: none;
  transition: transform .3s var(--ruch), background .2s;
}
.przycisk-rog:hover { transform: rotate(45deg); background: var(--akcent); color: var(--na-akcencie); }
.etykieta { font-size: 13px; color: var(--tekst-slaby); }
.liczba-duza { font-size: clamp(38px, 4.2vw, 58px); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.liczba-duza small { font-size: .38em; letter-spacing: -.01em; margin-left: 4px; opacity: .7; }
.naglowek-karty { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
                  margin-bottom: 16px; }
.siatka { display: grid; gap: var(--odstep); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.siatka + .siatka, .siatka + .karta, .karta + .karta, .karta + .siatka { margin-top: var(--odstep); }
.szeroka { grid-column: 1 / -1; }

/* wzory: kreskowanie i kropki */
.kreskowanie { background-image: repeating-linear-gradient(135deg, rgba(15, 17, 20, .16) 0 2px, transparent 2px 9px); }
.kropki { background-image: radial-gradient(rgba(15, 17, 20, .16) 1.3px, transparent 1.7px); background-size: 12px 12px; }

/* --- pulpit --------------------------------------------------------------------------------------- */
.pulpit { display: grid; gap: var(--odstep); grid-template-columns: repeat(12, 1fr); }
.pulpit > * { grid-column: span 4; min-height: 230px; display: flex; flex-direction: column; }
.pulpit > .rog > .karta { min-height: 230px; }
.pulpit > .w8 { grid-column: span 8; }
.pulpit > .w6 { grid-column: span 6; }
.kafel-dol { margin-top: auto; }
.postep { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin: 18px 0 14px; }
.postep span { height: 30px; border-radius: 999px; background: rgba(11, 13, 14, .12); }
.postep span.zrobione { background: var(--tusz); }
.postep span.teraz { background: #fff; box-shadow: 0 0 0 2px var(--tusz) inset; animation: puls 1.8s ease-in-out infinite; }
.postep span.potem { background-image: repeating-linear-gradient(135deg, rgba(11, 13, 14, .28) 0 2px, transparent 2px 7px);
                      background-color: transparent; }
.lista-stanu { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.lista-stanu li { display: flex; align-items: center; justify-content: space-between; gap: 12px;
                  padding: 10px 14px; border-radius: var(--r-m); background: rgba(255, 255, 255, .55); }
.karta-ciemna .lista-stanu li { background: rgba(255, 255, 255, .07); }
.kropka { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #1fbf5c; margin-right: 8px;
          box-shadow: 0 0 0 4px rgba(31, 191, 92, .18); }
.kropka.zla { background: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .18); }
.wykres-zapowiedz { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 18px; }
.wykres-zapowiedz span { flex: 1; border-radius: 14px; background: rgba(11, 13, 14, .07);
                         transform-origin: bottom; animation: rosnij 1s var(--ruch) both; }
.wykres-zapowiedz span.wyrozniony { background-color: transparent;
  background-image: repeating-linear-gradient(135deg, rgba(11, 13, 14, .3) 0 2px, transparent 2px 9px); }
.wykres-zapowiedz span:nth-child(1) { height: 38%; } .wykres-zapowiedz span:nth-child(2) { height: 55%; animation-delay: .05s; }
.wykres-zapowiedz span:nth-child(3) { height: 46%; animation-delay: .1s; } .wykres-zapowiedz span:nth-child(4) { height: 72%; animation-delay: .15s; }
.wykres-zapowiedz span:nth-child(5) { height: 96%; animation-delay: .2s; } .wykres-zapowiedz span:nth-child(6) { height: 64%; animation-delay: .25s; }
.wykres-zapowiedz span:nth-child(7) { height: 50%; animation-delay: .3s; }
.dymek { display: inline-block; padding: 6px 12px; border-radius: 12px; background: var(--akcent); color: var(--na-akcencie);
         font-weight: 600; font-size: 13px; }
.dziennik-mini { list-style: none; margin: 8px 0 0; padding: 0; }
.dziennik-mini li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--linia); }
.dziennik-mini li:last-child { border-bottom: 0; }

/* --- puste moduly ------------------------------------------------------------------------------- */
.pusta { display: grid; place-items: center; text-align: center; padding: 56px 24px; overflow: hidden; }
.pusta .kula { width: 150px; height: 150px; border-radius: 50%; margin-bottom: 22px; position: relative;
               background-image: radial-gradient(rgba(15, 17, 20, .3) 1.4px, transparent 1.8px); background-size: 10px 10px;
               -webkit-mask: radial-gradient(circle, #000 55%, transparent 72%); mask: radial-gradient(circle, #000 55%, transparent 72%);
               animation: obrot 40s linear infinite; }
.pusta > div { position: relative; display: flex; flex-direction: column; align-items: center; }
.pusta .kula-ikona { position: absolute; top: 43px; left: 50%; transform: translateX(-50%); display: grid; place-items: center;
                     width: 64px; height: 64px; border-radius: 50%; background: var(--akcent); color: var(--na-akcencie);
                     box-shadow: 0 0 0 10px var(--karta); }
.znacznik-kreski { display: inline-block; margin-top: 16px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
                   border: 1px solid var(--linia-mocna);
                   background-image: repeating-linear-gradient(135deg, rgba(15, 17, 20, .1) 0 2px, transparent 2px 8px); }

/* --- osoby (uzytkownicy) ------------------------------------------------------------------------ */
.osoby { display: grid; gap: var(--odstep); grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.osoba { min-height: 200px; display: flex; flex-direction: column; gap: 14px; }
.osoba-glowa { display: flex; align-items: center; gap: 14px; padding-right: 56px; }
.osoba-glowa p { font-size: 13px; color: var(--tekst-slaby); }
.karta-akcent .osoba-glowa p { color: inherit; opacity: .7; }
.karta-akcent .awatar { background: var(--tusz); color: var(--akcent); }
.osoba-dol { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.osoba-dol .liczba-duza { font-size: 40px; }
.karta-dodaj { display: grid; place-items: center; min-height: 200px; border: 2px dashed var(--linia-mocna);
               background-color: transparent; text-align: center; font-weight: 500; }
.karta-dodaj .plus { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%;
                     background: var(--tusz); color: var(--akcent); transition: transform .3s var(--ruch); }
.karta-dodaj:hover .plus { transform: rotate(90deg); }

/* --- formularze, przyciski ---------------------------------------------------------------------- */
.formularz { display: flex; flex-direction: column; gap: 14px; }
.formularz > label, .pole { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--tekst); }
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=color]), select, textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-m); border: 1px solid var(--linia-mocna);
  background: rgba(255, 255, 255, .85); font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
input:not([type=checkbox]):not([type=color]):focus, select:focus, textarea:focus {
  outline: none; border-color: var(--tusz); background: #fff; box-shadow: 0 0 0 4px var(--akcent-jasny);
}
.wybor { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; font-weight: 400 !important; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--tusz); }
.przycisk {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px;
  border: 0; border-radius: 999px; background: var(--tusz); color: #fff; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: transform .2s var(--ruch), background .2s, box-shadow .2s;
}
.przycisk:hover { box-shadow: 0 12px 24px -12px rgba(11, 13, 14, .6); transform: translateY(-1px); }
.przycisk:active { transform: scale(.97); }
.przycisk .strzalka { display: grid; place-items: center; width: 26px; height: 26px; margin-right: -10px; border-radius: 50%;
                      background: var(--akcent); color: var(--na-akcencie); transition: transform .3s var(--ruch); }
.przycisk:hover .strzalka { transform: rotate(45deg); }
.przycisk-drugi { background: rgba(255, 255, 255, .8); color: var(--tusz); border: 1px solid var(--linia-mocna); }
.przycisk-drugi:hover { background: #fff; box-shadow: none; }
.przycisk-akcent { background: var(--akcent); color: var(--na-akcencie); }
.przyciski { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.przyciski form { margin: 0; }
.w-linii { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.w-linii input { width: auto; }

/* przelaczniki-pigulki (macierz uprawnien) */
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-size: 13px;
             border: 1px solid var(--linia-mocna); background: rgba(255, 255, 255, .7); color: var(--tekst-slaby);
             transition: background .2s, color .2s, border-color .2s, transform .2s var(--ruch); user-select: none; }
.chip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .2s; }
.chip:hover span { transform: translateY(-1px); color: var(--tekst); }
.chip input:checked + span { background: var(--akcent); color: var(--na-akcencie); border-color: transparent; font-weight: 600; }
.chip input:checked + span::before { background: currentColor; }
.chip input:focus-visible + span { outline: 3px solid var(--tusz); outline-offset: 2px; }
.macierz { display: grid; gap: 4px; }
.macierz-sekcja { margin: 18px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--akcent-tekst); }
.macierz-wiersz { display: grid; grid-template-columns: minmax(170px, 1fr) auto; align-items: center; gap: 10px;
                  padding: 8px 10px; border-radius: var(--r-m); transition: background .2s; }
.macierz-wiersz:hover { background: rgba(255, 255, 255, .7); }
.macierz-chipy { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* probki koloru */
.probki { display: flex; flex-wrap: wrap; gap: 12px; }
.probka { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
          cursor: pointer; font-size: 12px; color: var(--tekst-slaby); }
.probka i { width: 52px; height: 52px; border-radius: 18px; display: block; border: 3px solid #fff;
            box-shadow: 0 0 0 1px var(--linia-mocna); transition: transform .25s var(--ruch); }
.probka:hover i { transform: translateY(-2px) rotate(-4deg); }
.probka.wybrana i { box-shadow: 0 0 0 2px var(--tusz); }
.probka-c7f33c i { background: #c7f33c; } .probka-9be7c4 i { background: #9be7c4; } .probka-8ecbff i { background: #8ecbff; }
.probka-c9b6ff i { background: #c9b6ff; } .probka-ffb38a i { background: #ffb38a; } .probka-4d6a9a i { background: #4d6a9a; }
.w-linii input.kolor, .kolor { width: 64px; height: 52px; padding: 3px; border-radius: 16px; border: 1px solid var(--linia-mocna); background: #fff; cursor: pointer; }
.podglad-akcentu { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

/* --- komunikaty, znaczniki ---------------------------------------------------------------------- */
.alert { padding: 13px 16px; border-radius: var(--r-m); margin-bottom: 16px; animation: pojaw .3s var(--ruch); }
.alert-blad { background: var(--czerwony-tlo); color: var(--czerwony); }
.alert-ok { background: var(--zielony-tlo); color: var(--zielony); }
.znacznik { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px;
            font-weight: 600; background: var(--szary-tlo); color: var(--szary); white-space: nowrap; }
.znacznik-zielony { background: var(--zielony-tlo); color: var(--zielony); }
.znacznik-zolty { background: var(--zolty-tlo); color: var(--zolty); }
.znacznik-czerwony { background: var(--czerwony-tlo); color: var(--czerwony); }
.znacznik-akcent { background: var(--akcent); color: var(--na-akcencie); }
.znacznik-ciemny { background: var(--tusz); color: #fff; }
.karta-akcent .znacznik { background: rgba(11, 13, 14, .1); color: inherit; }

/* --- tabele (na telefonie: karty) --------------------------------------------------------------- */
.tabela-owijka { overflow-x: auto; }
.tabela { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.tabela th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
             color: var(--tekst-slaby); padding: 4px 14px; white-space: nowrap; }
.tabela td { padding: 12px 14px; background: rgba(255, 255, 255, .65); vertical-align: top; }
.tabela td:first-child { border-radius: 14px 0 0 14px; }
.tabela td:last-child { border-radius: 0 14px 14px 0; }
.tabela tr:hover td { background: #fff; }
.tabela td.kod { max-width: 300px; word-break: break-word; font-size: 12px; }
.dane { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 16px 0; }
.dane dt { color: var(--tekst-slaby); }
.dane dd { margin: 0; }

/* --- strony wejscia (logowanie, 2FA, konfiguracja) ---------------------------------------------- */
.wejscie { display: grid; place-items: center; padding: 24px 16px; }
.wejscie .marka { position: fixed; left: 28px; top: 24px; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.wejscie .marka .logo { margin: 0; }
.karta-wejscie { width: 100%; max-width: 440px; padding: 34px 30px 30px; border-radius: 34px; animation: wejdz .7s var(--ruch) both; }
.karta-wejscie h1 { font-size: 34px; font-weight: 400; letter-spacing: -.045em; margin-bottom: 8px; }
.karta-wejscie .opis { margin-bottom: 20px; }
.karta-wejscie .przycisk { width: 100%; padding: 15px 22px; margin-top: 6px; }
.qr { display: grid; place-items: center; padding: 14px; margin: 4px auto; border-radius: var(--r-l); background: #fff; width: fit-content; }
.qr svg { width: 190px; height: 190px; display: block; }
.klucz code { display: block; padding: 12px 14px; border-radius: var(--r-m); background: rgba(255, 255, 255, .8);
              word-break: break-all; text-align: center; letter-spacing: .06em; }
.kody { columns: 2; gap: 24px; padding-left: 22px; margin: 16px 0; }
.kody li { margin: 6px 0; }
.kody code { font-size: 15px; letter-spacing: .05em; }
.krok-nr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-right: 8px;
           background: var(--tusz); color: var(--akcent); font-size: 13px; font-weight: 700; }
.formularz h2 { display: flex; align-items: center; margin-top: 10px; font-size: 17px; }

/* --- animacje ----------------------------------------------------------------------------------- */
@keyframes wejdz { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pojaw { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes puls { 50% { box-shadow: 0 0 0 2px var(--tusz) inset, 0 0 0 6px rgba(11, 13, 14, .1); } }
@keyframes rosnij { from { transform: scaleY(.1); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes obrot { to { transform: rotate(360deg); } }
.anim > * { animation: wejdz .6s var(--ruch) both; }
.anim > *:nth-child(2) { animation-delay: .06s; } .anim > *:nth-child(3) { animation-delay: .12s; }
.anim > *:nth-child(4) { animation-delay: .18s; } .anim > *:nth-child(5) { animation-delay: .24s; }
.anim > *:nth-child(6) { animation-delay: .3s; }  .anim > *:nth-child(n+7) { animation-delay: .36s; }
.naglowek { animation: wejdz .5s var(--ruch) both; }
.anim-wejdz { animation: wejdz .6s var(--ruch) both; }
.anim-wejdz + .anim-wejdz { margin-top: var(--odstep); animation-delay: .08s; }

/* --- telefon i tablet ----------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .pulpit > *, .pulpit > .w6, .pulpit > .w8 { grid-column: span 6; }
  .pulpit > :last-child { grid-column: span 12; }
}
@media (max-width: 900px) {
  .aurora span:nth-child(1) { width: 120vw; height: 120vw; left: 30%; top: -30%; }
  .aurora span:nth-child(2) { width: 100vw; height: 100vw; left: -45%; top: 45%; }
  .aurora span:nth-child(3) { width: 90vw; height: 90vw; left: 35%; top: 85%; }
  .szyna { left: 10px; right: 10px; top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; height: 70px;
           flex-direction: row; padding: 0 10px; border-radius: 26px; }
  .szyna > .logo { display: none; }
  .szyna-menu { flex-direction: row; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; height: 100%; gap: 4px;
                -webkit-mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 22px), transparent);
                mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 22px), transparent); padding: 0 8px; }
  .szyna-menu::-webkit-scrollbar { display: none; }
  .szyna-poz { scroll-snap-align: center; }
  .szyna-poz.dol { margin-top: 0; margin-left: auto; }
  .szyna-ikona { width: 50px; height: 50px; }
  .wysuw { display: none; }
  .obszar { margin-left: 0; padding: 18px 16px calc(110px + env(safe-area-inset-bottom)); }
  .tytul { font-size: 32px; }
  .konto-nazwa { display: none; }
  .konto-przycisk { padding: 4px; }
  .pulpit > *, .pulpit > .w6, .pulpit > .w8 { grid-column: 1 / -1; min-height: 0; }
  .karta { padding: 20px; border-radius: 26px; }
  .wejscie .marka { position: static; margin-bottom: 18px; justify-self: center; }
  .wejscie { align-content: center; }
}
@media (max-width: 700px) {
  .tabela thead { display: none; }
  .tabela, .tabela tbody, .tabela tr, .tabela td { display: block; width: 100%; }
  .tabela { border-spacing: 0; }
  .tabela tr { margin-bottom: 10px; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .65); }
  .tabela td { display: flex; gap: 12px; padding: 7px 14px; background: transparent !important; border-radius: 0 !important; }
  .tabela td:first-child { padding-top: 12px; } .tabela td:last-child { padding-bottom: 12px; }
  .tabela td[data-k]::before { content: attr(data-k); flex: 0 0 34%; color: var(--tekst-slaby); font-size: 12.5px; }
  .tabela td.kod { max-width: none; }
  .macierz-wiersz { grid-template-columns: 1fr; }
  .macierz-chipy { justify-content: flex-start; }
  .kody { columns: 1; }
}

/* --- mniej ruchu ---------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
