/* ==========================================================================
   FeatureLabs ERP/CRM Kit — fle.css  (wersja 1.1.0)
   --------------------------------------------------------------------------
   Jedyny własny arkusz kitu. Cztery sekcje:
     1) TOKENY   — zmienne :root: paleta marki, neutrale ink, tła, kolory
                   semantyczne, gradienty, cienie, drabinka warstw (z-index).
     1b) TRYB CIEMNY — te same zmienne pod html.fle-dark + kilka nadpisań klas.
                   Paletę marki NADPISUJE <style>:root{…}</style>, który fle_head()
                   liczy z jednego koloru HEX (fle_config marka). Ten arkusz musi
                   być załadowany PRZED tym <style>, inaczej wygra kolor zapasowy.
     2) KLASY fle-* — tylko to, czego nie da się zapisać klasami Tailwinda.
     3) EDYTOR   — style edytora treści (fle_editor).
   Cała reszta wyglądu to klasy Tailwinda z assets/js/fle-tailwind.config.js.

   Format kolorów: kanały RGB „R G B" zamiast HEX, żeby działały modyfikatory
   przezroczystości Tailwinda (bg-brand-500/30 → rgb(R G B / 0.3)).
   ========================================================================== */


/* ==========================================================================
   1) TOKENY
   ========================================================================== */
:root {
    /* --- Paleta marki (zapas dla koloru domyślnego #4F46E5; fle_head() nadpisuje) --- */
    --brand-50-rgb:  241 240 253;
    --brand-100-rgb: 227 225 251;
    --brand-200-rgb: 199 196 247;
    --brand-300-rgb: 167 163 242;
    --brand-400-rgb: 123 116 236;
    --brand-500-rgb:  79  70 229;
    --brand-600-rgb:  67  60 195;
    --brand-700-rgb:  51  46 149;
    --brand-800-rgb:  36  32 103;
    --brand-900-rgb:  22  20  64;
    --brand-950-rgb:  12  11  34;

    /* gotowe rgb() do użycia w zwykłym CSS */
    --brand-50:  rgb(var(--brand-50-rgb));
    --brand-100: rgb(var(--brand-100-rgb));
    --brand-200: rgb(var(--brand-200-rgb));
    --brand-300: rgb(var(--brand-300-rgb));
    --brand-400: rgb(var(--brand-400-rgb));
    --brand-500: rgb(var(--brand-500-rgb));
    --brand-600: rgb(var(--brand-600-rgb));
    --brand-700: rgb(var(--brand-700-rgb));
    --brand-800: rgb(var(--brand-800-rgb));
    --brand-900: rgb(var(--brand-900-rgb));
    --brand-950: rgb(var(--brand-950-rgb));

    /* --- Neutrale „ink" — ciepła szarość, wspólna dla każdej marki --- */
    --ink-50-rgb:  250 250 248;
    --ink-100-rgb: 244 244 241;
    --ink-200-rgb: 231 230 225;
    --ink-300-rgb: 211 210 203;
    --ink-400-rgb: 168 167 160;
    --ink-500-rgb: 122 121 115;
    --ink-600-rgb:  88  87  83;
    --ink-700-rgb:  62  61  58;
    --ink-800-rgb:  38  38  36;
    --ink-900-rgb:  26  26  24;

    --ink-50:  rgb(var(--ink-50-rgb));
    --ink-100: rgb(var(--ink-100-rgb));
    --ink-200: rgb(var(--ink-200-rgb));
    --ink-300: rgb(var(--ink-300-rgb));
    --ink-400: rgb(var(--ink-400-rgb));
    --ink-500: rgb(var(--ink-500-rgb));
    --ink-600: rgb(var(--ink-600-rgb));
    --ink-700: rgb(var(--ink-700-rgb));
    --ink-800: rgb(var(--ink-800-rgb));
    --ink-900: rgb(var(--ink-900-rgb));

    /* --- Tła --- */
    --surface:      #FAFAF8;
    --surface-soft: #F4F4F1;
    --surface-mute: #EEEDE8;
    --surface-card: #FFFFFF;

    /* --- Kolory semantyczne — niezależne od marki.
           danger to celowo inna czerwień niż jakakolwiek czerwona marka. --- */
    --success-rgb: 22 163 74;     /* #16A34A */
    --warning-rgb: 245 165 36;    /* #F5A524 */
    --danger-rgb:  220 38 38;     /* #DC2626 */
    --info-rgb:    2 132 199;     /* #0284C7 */
    --orange-rgb:  234 88 12;     /* #EA580C */

    /* --- Serie wykresów: paleta kategorialna w STAŁEJ kolejności (identyczność serii, nie wielkość).
       Zwalidowana walidatorem metody dataviz na białym tle: pary sąsiednie ΔE ≥ 9,1 w symulacji
       daltonizmu, ≥ 19,6 bez symulacji. Sloty 3, 4 i 5 mają kontrast < 3:1, dlatego wykres zawsze
       ma wartości w legendzie lub tabeli. Nigdy nie dokładaj dziewiątego koloru — składaj resztę
       w „Pozostałe” albo dziel wykres. --- */
    --fle-serie-1-rgb: 42 120 214;    /* #2A78D6 niebieski */
    --fle-serie-2-rgb: 235 104 52;    /* #EB6834 pomarańczowy */
    --fle-serie-3-rgb: 27 175 122;    /* #1BAF7A morski */
    --fle-serie-4-rgb: 237 161 0;     /* #EDA100 żółty */
    --fle-serie-5-rgb: 232 123 164;   /* #E87BA4 różowy */
    --fle-serie-6-rgb: 0 131 0;       /* #008300 zielony */
    --fle-serie-7-rgb: 74 58 167;     /* #4A3AA7 fioletowy */
    --fle-serie-8-rgb: 227 73 72;     /* #E34948 czerwony */

    --success: rgb(var(--success-rgb));
    --warning: rgb(var(--warning-rgb));
    --danger:  rgb(var(--danger-rgb));
    --info:    rgb(var(--info-rgb));
    --orange:  rgb(var(--orange-rgb));

    /* --- Gradienty marki (klasy: bg-brand-gradient, bg-brand-gradient-2, bg-brand-soft, bg-brand-aurora, bg-mesh) --- */
    --brand-gradient:   linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 55%, var(--brand-400) 100%);
    --brand-gradient-2: linear-gradient(160deg, var(--brand-950) 0%, var(--brand-700) 45%, var(--brand-500) 100%);
    --brand-soft:       linear-gradient(135deg, var(--brand-50)  0%, var(--brand-100) 100%);
    --brand-aurora:     linear-gradient(120deg, var(--brand-500) 0%, var(--brand-400) 40%, var(--brand-200) 100%);
    --mesh:             radial-gradient(at 10% 0%,  var(--brand-100) 0px, transparent 50%),
                        radial-gradient(at 90% 10%, var(--brand-200) 0px, transparent 50%),
                        radial-gradient(at 50% 90%, var(--brand-50)  0px, transparent 50%);

    /* --- Cienie (klasy: shadow-soft, shadow-card, shadow-float, shadow-glow, shadow-inset-border) --- */
    --shadow-soft:         0 2px 10px -2px rgba(16, 24, 40, 0.06), 0 4px 20px -4px rgba(16, 24, 40, 0.04);
    --shadow-card:         0 4px 24px -6px rgba(16, 24, 40, 0.08), 0 8px 40px -12px rgba(16, 24, 40, 0.06);
    --shadow-float:        0 12px 40px -8px rgb(var(--brand-500-rgb) / 0.25);
    --shadow-glow:         0 0 0 6px      rgb(var(--brand-500-rgb) / 0.12);
    --shadow-inset-border: inset 0 0 0 1px rgba(16, 24, 40, 0.06);

    /* --- Drabinka warstw. W klasach Tailwinda używamy liczb (z-30, z-40, z-50, z-[60]…),
           zmienne są dla własnego CSS i dokumentacji, żeby nikt nie zgadywał. --- */
    --fle-z-sidebar:  30;
    --fle-z-dropdown: 30;
    --fle-z-topbar:   40;
    --fle-z-modal:    50;   /* warstwa 1 */
    --fle-z-modal-2:  60;   /* modal nad modalem, lightbox */
    --fle-z-modal-3:  70;   /* ostrzeżenie „niezapisane zmiany" */
    --fle-z-toast:    90;
    --fle-z-anticlip: 9999; /* panele przepięte na position:fixed, żeby rodzic ich nie uciął */
}

/* ==========================================================================
   1b) TRYB CIEMNY — klasa fle-dark na <html>
   Ustawia ją fle_head() przed narysowaniem strony (wpis localStorage „fle.motyw” albo
   fle_config motyw), przełącza fle_motyw_przelacznik() / FLE.motyw.ustaw().
   Zasada: trzy poziomy jasności (tło strony < karta < element na karcie), granice
   robią linie, nie cienie; skala ink odwrócona (50 = najciemniejsze tło na karcie,
   900 = tekst główny). Klasy Tailwinda z bielą i z ciemnym ink-900 dostają tu nowe
   znaczenie, więc w HTML komponentów nic nie trzeba zmieniać. Nowy kod pisz kolorami
   z palety (ink-*, brand-*, bg-white) — kolor spoza palety nie przełączy się.
   Własne reguły tylko dla trybu ciemnego: wariant Tailwinda dark: (fle-tailwind.config.js
   ma darkMode: ['selector', '.fle-dark']).
   ========================================================================== */
html.fle-dark {
    /* tła: schodki jasności */
    --surface:      #0d0f14;
    --surface-soft: #111318;   /* tło strony */
    --surface-mute: #1b1e27;
    --surface-card: #191c25;   /* karta */
    /* neutrale ink odwrócone */
    --ink-50-rgb:  31 35 45;
    --ink-100-rgb: 38 42 54;
    --ink-200-rgb: 56 61 77;    /* linie, obwódki — wyraźnie jaśniejsze niż karta */
    --ink-300-rgb: 80 86 104;
    --ink-400-rgb: 140 146 164;
    --ink-500-rgb: 168 174 190;
    --ink-600-rgb: 196 201 214;
    --ink-700-rgb: 216 220 230;
    --ink-800-rgb: 234 236 242;
    --ink-900-rgb: 246 247 250;
    /* cienie prawie niewidoczne na ciemnym — granice robią linie */
    --shadow-soft:         0 1px 2px rgb(0 0 0 / 0.5);
    --shadow-card:         0 10px 30px rgb(0 0 0 / 0.55);
    --shadow-float:        0 12px 28px rgb(0 0 0 / 0.6);
    --shadow-inset-border: inset 0 0 0 1px rgb(255 255 255 / 0.06);
    /* delikatne tła marki: jasne pastele z palety byłyby jasnymi plamami */
    --brand-soft: linear-gradient(135deg, rgb(var(--brand-500-rgb) / 0.14) 0%, rgb(var(--brand-500-rgb) / 0.24) 100%);
    --mesh:       radial-gradient(at 10% 0%,  rgb(var(--brand-500-rgb) / 0.18) 0px, transparent 50%),
                  radial-gradient(at 90% 10%, rgb(var(--brand-500-rgb) / 0.12) 0px, transparent 50%),
                  radial-gradient(at 50% 90%, rgb(var(--brand-500-rgb) / 0.10) 0px, transparent 50%);
    color-scheme: dark;
}
/* „białe” tła stają się kartą (biały TEKST zostaje biały) */
html.fle-dark .bg-white,
html.fle-dark .hover\:bg-white:hover { background-color: var(--surface-card); }
/* pola w fokusie (fle_input, szukajka listy): bez tego biale tlo + jasny tekst = niewidoczne pisanie (1.1.23) */
html.fle-dark .focus-within\:bg-white:focus-within,
html.fle-dark .focus\:bg-white:focus { background-color: var(--surface-card); }
html.fle-dark .bg-white\/95,
html.fle-dark .bg-white\/90        { background-color: rgb(25 28 37 / 0.92); }   /* górny pasek, pasek zakładek */
html.fle-dark .bg-white\/70        { background-color: rgb(25 28 37 / 0.75); }   /* nakładka ładowania */
html.fle-dark .ring-white          { --tw-ring-color: var(--surface-card); }    /* obwódki liczników i avatarów */
html.fle-dark .border-white        { border-color: var(--surface-card); }
html.fle-dark .ring-ink-900\/90    { --tw-ring-color: #000; }                   /* ramka telefonu */
@media (min-width: 1024px) { html.fle-dark .lg\:ring-ink-900\/90 { --tw-ring-color: #000; } }
/* elementy celowo ciemne w jasnym trybie: po odwróceniu skali byłyby jasne */
html.fle-dark .bg-ink-900          { background-color: #2b3040; }               /* toast informacyjny, ciemny segment */
html.fle-dark .bg-ink-900\/50,
html.fle-dark .bg-ink-900\/60,
html.fle-dark .bg-ink-900\/85,
html.fle-dark .bg-ink-900\/90      { background-color: rgb(0 0 0 / 0.65); }     /* tła pod oknami i menu */
/* kolor marki: tekst i delikatne tła muszą być jaśniejsze na ciemnym */
html.fle-dark .text-brand-800,
html.fle-dark .text-brand-700      { color: var(--brand-300); }
html.fle-dark .text-brand-600      { color: var(--brand-400); }
html.fle-dark .hover\:text-brand-700:hover,
html.fle-dark .hover\:text-brand-800:hover,
html.fle-dark .hover\:text-brand-600:hover { color: var(--brand-200); }
html.fle-dark .bg-brand-50,
html.fle-dark .bg-brand-50\/70,
html.fle-dark .hover\:bg-brand-50:hover    { background-color: rgb(var(--brand-500-rgb) / 0.16); }
html.fle-dark .bg-brand-50\/40,
html.fle-dark .bg-brand-50\/60,
html.fle-dark .hover\:bg-brand-50\/40:hover,
html.fle-dark .hover\:bg-brand-50\/60:hover,
html.fle-dark .focus\:bg-brand-50\/60:focus { background-color: rgb(var(--brand-500-rgb) / 0.10); }
html.fle-dark .bg-brand-100,
html.fle-dark .hover\:bg-brand-100:hover   { background-color: rgb(var(--brand-500-rgb) / 0.28); }
html.fle-dark .ring-brand-100,
html.fle-dark .ring-brand-100\/70,
html.fle-dark .ring-brand-100\/80,
html.fle-dark .hover\:ring-brand-100:hover { --tw-ring-color: rgb(var(--brand-500-rgb) / 0.35); }
html.fle-dark .border-brand-100    { border-color: rgb(var(--brand-500-rgb) / 0.35); }
html.fle-dark .ring-brand-200,
html.fle-dark .hover\:ring-brand-200:hover { --tw-ring-color: rgb(var(--brand-500-rgb) / 0.45); }
/* Klasy z wariantem stanu (zaznaczone, najechane) to osobne klasy Tailwinda — powyższe ich nie łapią (1.1.31).
   Kafelek fle_checkbox / fle_radio_group po zaznaczeniu: jasne tło + jasny napis = niewidoczna etykieta. */
html.fle-dark .has-\[\:checked\]\:bg-brand-50:has(:checked) { background-color: rgb(var(--brand-500-rgb) / 0.16); }
/* fle_segmented wariant ciemny: zaznaczona pozycja bez skryptu (zanim ruszy przesuwane tło) i kółko awatara na niej */
html.fle-dark .peer:checked ~ .peer-checked\:bg-ink-900 { background-color: #2b3040; }
html.fle-dark .peer:checked ~ * [class~="[.peer:checked~*_&]:text-ink-900"] { color: rgb(26 26 24); }
/* podgląd zdjęcia (fle_img_lightbox): przyciemnienie po najechaniu, nie rozjaśnienie */
html.fle-dark .group:hover .group-hover\:bg-ink-900\/30 { background-color: rgb(0 0 0 / 0.45); }
/* pomarańczowe tło z ciemnym napisem (liczniki, licznik przy zwiniętym menu, komunikat „ostrzeżenie”):
   napis zostaje ciemny jak w jasnym trybie, inaczej jasny na pomarańczowym (kontrast 1,9) */
html.fle-dark .bg-warning.text-ink-900 { color: rgb(26 26 24); }
/* linki w treści (fle_prose) i w edytorze: brand-700 na karcie byłby ciemny na ciemnym */
html.fle-dark .fle-prose a,
html.fle-dark .fle-editor__area a { color: var(--brand-300); }
/* kolory statusów: tła 10–15 % są OK, tekst statusów rozjaśniony */
html.fle-dark .text-success { color: #4ade80; }
html.fle-dark .text-danger  { color: #f87171; }
html.fle-dark .text-info    { color: #38bdf8; }
html.fle-dark .text-warning { color: #fbbf24; }
/* edytor treści: „biel” obszaru pisania to karta */
html.fle-dark .fle-editor { --fle-editor-white: var(--surface-card); }
/* mapa: kafelki OpenStreetMap przyciemnione filtrem, kontrolki na karcie */
html.fle-dark .leaflet-tile-pane { filter: brightness(0.7) invert(1) contrast(2.6) hue-rotate(195deg) saturate(0.35) brightness(0.85); }
html.fle-dark .leaflet-bar a,
html.fle-dark .leaflet-control-attribution { background-color: var(--surface-card); color: var(--ink-700); }
html.fle-dark .leaflet-bar a { border-bottom-color: var(--ink-200); }



/* ==========================================================================
   2) KLASY fle-*  (tylko to, czego Tailwind nie wyrazi jedną klasą)
   ========================================================================== */

/* Obwódka fokusu: przeglądarka (zwłaszcza Safari) rysuje ją po kliknięciu myszą w link czy przycisk,
   w kolorze akcentu systemu. Kit wyłącza ją; dla klawiatury komponenty mają własne pierścienie
   (klasy focus-visible:ring-*). */
:focus { outline: none; }
:focus:not(:focus-visible) { box-shadow: none; }
/* Tailwind focus:outline-none daje przy fokusie przezroczystą obwódkę 2px. Element z transition-all animował
   wtedy jej kolor z koloru tekstu do przezroczystego — po kliknięciu migała ciemna ramka. Kolor
   przezroczysty od początku = nie ma czego animować. */
.focus\:outline-none { outline-color: transparent; }

/* Przesuwane tło przełączników (fle_tabs w stylu segmenty, fle_segmented) — moduł „suwak” w fle.js.
   Jedno tło pod pozycjami jedzie do wybranej; pozycje są nad nim. */
[data-fle-suwak] { position: relative; isolation: isolate; }
[data-fle-suwak-tlo] {
    position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 0;
    opacity: 0; pointer-events: none; will-change: transform;
    transition: transform .34s cubic-bezier(0.22, 1, 0.36, 1), width .34s cubic-bezier(0.22, 1, 0.36, 1), height .34s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-fle-suwak-poz] { position: relative; z-index: 1; }
/* tło pozycji (szare po najechaniu) bez animacji — inaczej gasnąc leży przez chwilę na jadącym tle */
[data-fle-suwak-gotowy] [data-fle-suwak-poz] { transition-property: color, fill, stroke; }
[data-fle-suwak-gotowy] [data-fle-suwak-poz][aria-selected="true"],
[data-fle-suwak-gotowy] [data-fle-suwak-poz][aria-current],
[data-fle-suwak-gotowy] input:checked + [data-fle-suwak-poz] { background-color: transparent !important; box-shadow: none !important; }
/* pozycja, z której tło odjeżdża, ciemnieje od razu: tło zjeżdża z niej szybciej (po 60 ms zakrywa ~45%), niż trwało
   przejście koloru (0,2 s) — przez chwilę biały napis leżał na białym, dłużej, gdy strona się już przeładowywała (1.1.16).
   Pozycja, na którą tło wjeżdża, jaśnieje płynnie — jej kolor nadąża za tłem.
   Linki (fle_segmented z href) zmieniają kolor od razu w OBU pozycjach (1.1.17): po kliknięciu linku przeglądarka może już
   nie rysować nowych klatek strony (ruch tła liczy osobno, więc tło jedzie), a płynna zmiana koloru stała do przeładowania —
   nowa pozycja miała czarny napis na jadącym fioletowym tle. Zmiana w chwili kliknięcia rysuje się zawsze; biały napis
   odsłania się, gdy tło pod niego wjeżdża. Zakładki i radia (bez przeładowania) zostają płynne. */
[data-fle-suwak-gotowy] a[data-fle-suwak-poz],
[data-fle-suwak-gotowy] [data-fle-suwak-poz][aria-selected="false"],
[data-fle-suwak-gotowy] input:not(:checked) + [data-fle-suwak-poz] { transition-duration: 0s; }
@media (prefers-reduced-motion: reduce) { [data-fle-suwak-tlo] { transition: none; } }

/* Ukrycie natywnej kontrolki pod fasadą kitu BEZ display:none — dzięki temu
   przeglądarka nadal sprawdza required/min/max i formularz się nie wyśle z pustym polem. */
.fle-native-hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Pasek postępu: szerokość to wartość danych, przekazywana zmienną
   style="--fle-w: 42%" (jedyny dozwolony inline style w kicie). */
.fle-progress {
    width: var(--fle-w, 0%);
}

/* Postęp kołowy (fle_progress_kolo): długość łuku z --fle-w (liczba 0–100, bez %) dzięki pathLength="100" na <circle>. */
.fle-progress-kolo {
    stroke-dasharray: var(--fle-w, 0) 100;
    transition: stroke-dasharray .5s ease;
}

/* Szkielet ładowania (fle_skeleton): szary kształt z przesuwającym się połyskiem. Keyframes własne,
   bo animacje z konfiguracji Tailwinda powstają tylko dla klas obecnych w HTML. */
@keyframes fle-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.fle-skeleton {
    background: linear-gradient(90deg, rgb(var(--ink-200-rgb)) 0%, rgb(var(--ink-100-rgb)) 40%, rgb(var(--ink-200-rgb)) 80%);
    background-size: 400px 100%;
    animation: fle-shimmer 1.4s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .fle-skeleton { animation: none; }
}

/* Treść z edytora (fle_prose): Tailwind zeruje style nagłówków, list i tabel,
   tu je przywracamy — tylko wewnątrz .fle-prose, bez wpływu na resztę strony. */
.fle-prose { color: var(--ink-700); line-height: 1.65; }
.fle-prose h1 { font-size: 1.6rem;  font-weight: 700; margin: .6em 0 .3em; color: var(--ink-900); line-height: 1.2; }
.fle-prose h2 { font-size: 1.35rem; font-weight: 700; margin: .6em 0 .3em; color: var(--ink-900); line-height: 1.25; }
.fle-prose h3 { font-size: 1.15rem; font-weight: 600; margin: .55em 0 .3em; color: var(--ink-900); }
.fle-prose h4, .fle-prose h5, .fle-prose h6 { font-weight: 600; margin: .55em 0 .3em; color: var(--ink-900); }
.fle-prose p  { margin: .5em 0; }
.fle-prose ul { list-style: disc;    padding-left: 1.25rem; margin: .5em 0; }
.fle-prose ol { list-style: decimal; padding-left: 1.25rem; margin: .5em 0; }
.fle-prose a  { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.fle-prose img { max-width: 100%; height: auto; border-radius: .75rem; }
.fle-prose table { width: 100%; border-collapse: collapse; margin: .5em 0; }
.fle-prose td, .fle-prose th { border: 1px solid var(--ink-200); padding: .4rem .6rem; text-align: left; }
.fle-prose th { background: var(--ink-50); font-weight: 600; }
.fle-prose blockquote { border-left: 3px solid var(--brand-200); padding-left: .9rem; color: var(--ink-600); margin: .6em 0; }
/* 1.1.19: treść ze starszych edytorów (notatki, instrukcje) — pogrubienie, kod w linii i w bloku, linia pozioma */
.fle-prose b, .fle-prose strong { font-weight: 700; color: var(--ink-900); }
.fle-prose li { margin: .15em 0; }
.fle-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; background: var(--ink-100); color: var(--ink-800); padding: .1em .35em; border-radius: .35rem; }
/* długie linie kodu zawijają się (wcięcia zostają) — przewijanie w bok w środku strony gubi czytającego */
.fle-prose pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.6; background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: .75rem; padding: .8rem 1rem; white-space: pre-wrap; overflow-wrap: anywhere; margin: .6em 0; }
/* odstęp od nagłówka karty daje karta — pierwszy element treści (np. nagłówek) nie dokłada swojego */
.fle-prose > :first-child { margin-top: 0; }
.fle-prose > :last-child { margin-bottom: 0; }
.fle-prose pre code { background: transparent; padding: 0; font-size: inherit; }
.fle-prose hr { border: 0; border-top: 1px solid var(--ink-200); margin: 1em 0; }
.fle-prose iframe { max-width: 100%; width: 100%; aspect-ratio: 16 / 9; border-radius: .75rem; border: 0; }

/* Dymek przy zwiniętym menu bocznym: biała pigułka nakładana na wiersz menu
   (klon ikony + etykieta). Żyje w <body> jako position:fixed, bo <nav> ma
   overflow-y:auto i uciąłby go. Współrzędne ustawia fle.js z getBoundingClientRect.
   Wymiary muszą zgadzać się z wierszem menu (pl-2 pr-2 = .5rem, gap-3 = .75rem, rounded-2xl = 1rem). */
.fle-sidebar-tooltip {
    position: fixed;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem;
    border-radius: 1rem;
    background: var(--surface-card);   /* w trybie ciemnym karta; dawniej #fff = jasny napis na bieli (1.1.31) */
    box-shadow: var(--shadow-card);
    outline: 1px solid rgb(var(--brand-100-rgb) / 0.7);
    outline-offset: -1px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}
html.fle-dark .fle-sidebar-tooltip { outline-color: rgb(var(--brand-500-rgb) / 0.35); }
.fle-sidebar-tooltip.is-visible { opacity: 1; visibility: visible; }
.fle-sidebar-tooltip > span:last-child {
    width: 200px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    color: rgb(var(--ink-900-rgb));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Przy zwiniętym menu wiersz pod dymkiem nie może się podnosić (hover:-translate-y-px),
   inaczej jego biała pigułka wystawałaby spod dymka. */
@media (min-width: 1024px) {
    .fle-sidebar-collapsed [data-fle-sidebar] nav a:hover { transform: none; }
}

/* Dzwonek powiadomień (fle_dzwonek): co 2 s kołysanie z wygasającą amplitudą (ruch w pierwszych 42 % przebiegu, od razu
   po wejściu na stronę; do 1.1.40 co 4 s z ruchem na końcu przebiegu, łatwo go było przeoczyć) i poświata rozchodząca się wokół przycisku w kolorze marki. Klasa kołysania siedzi
   na <span>, nie na <i data-lucide> — Lucide podmienia ten tag na <svg>. */
.fle-dzwonek-swing {
    display: inline-flex;
    position: relative;   /* nad migajacym tlem (.fle-dzwonek-tlo) */
    transform-origin: top center;
    animation: fle-dzwonek-swing 2s ease-in-out infinite;
}
@keyframes fle-dzwonek-swing {
    0%        { transform: rotate(0deg); }
    6%        { transform: rotate(14deg); }
    12%       { transform: rotate(-12deg); }
    18%       { transform: rotate(9deg); }
    24%       { transform: rotate(-7deg); }
    30%       { transform: rotate(4deg); }
    36%       { transform: rotate(-2deg); }
    42%, 100% { transform: rotate(0deg); }
}
.fle-dzwonek-glow {
    position: absolute;
    inset: -22px;
    border-radius: 9999px;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle, rgb(var(--brand-500-rgb) / 0.60) 0%, rgb(var(--brand-500-rgb) / 0.34) 45%, rgb(var(--brand-500-rgb) / 0) 72%);
    animation: fle-dzwonek-glow 2s ease-out infinite;
}
@keyframes fle-dzwonek-glow {
    0%        { opacity: 0; transform: scale(0.7); }
    8%        { opacity: 1; transform: scale(1.5); }
    52%, 100% { opacity: 0; transform: scale(2.8); }
}
/* Tlo przycisku z powiadomieniami (1.1.41): kopia tla przycisku (background: inherit) co 500 ms ciemnieje i jasnieje o 25 %;
   osobna warstwa, zeby biala ikona nie szarzala razem z tlem. */
.fle-dzwonek-tlo {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    pointer-events: none;
    animation: fle-dzwonek-tlo 0.5s ease-in-out infinite alternate;
}
@keyframes fle-dzwonek-tlo {
    from { filter: brightness(0.75); }
    to   { filter: brightness(1.25); }
}
/* Dzwonek pilny (fle_dzwonek pilny => true, 1.1.41): czerwony przycisk, kolysanie i czerwona poswiata co 1 s. */
[data-fle-dzwonek="pilny"] .fle-dzwonek-swing,
[data-fle-dzwonek="pilny"] .fle-dzwonek-glow { animation-duration: 1s; }
[data-fle-dzwonek="pilny"] .fle-dzwonek-glow {
    background: radial-gradient(circle, rgb(var(--danger-rgb) / 0.65) 0%, rgb(var(--danger-rgb) / 0.36) 45%, rgb(var(--danger-rgb) / 0) 72%);
}
@media (prefers-reduced-motion: reduce) {
    .fle-dzwonek-swing, .fle-dzwonek-glow, .fle-dzwonek-tlo { animation: none; }
}

/* Znikanie toastu (FLE.toast / fle_toast): klasa dokładana przez fle.js tuż przed usunięciem elementu. */
@keyframes fle-toast-out {
    to { opacity: 0; transform: translateX(16px); }
}
.fle-toast-out {
    animation: fle-toast-out .35s ease-in forwards;
    pointer-events: none;
}


/* Tło w kolorze wykresu / pinezki (próbki legendy, pinezki mapy, skupiska). Nazwy jak w fle_wykres_kolory(). */
.fle-kolor-brand     { background-color: rgb(var(--brand-500-rgb)); }
.fle-kolor-brand-300 { background-color: rgb(var(--brand-300-rgb)); }
.fle-kolor-brand-700 { background-color: rgb(var(--brand-700-rgb)); }
.fle-kolor-success   { background-color: rgb(var(--success-rgb)); }
.fle-kolor-warning   { background-color: rgb(var(--warning-rgb)); }
.fle-kolor-danger    { background-color: rgb(var(--danger-rgb)); }
.fle-kolor-info      { background-color: rgb(var(--info-rgb)); }
.fle-kolor-orange    { background-color: rgb(var(--orange-rgb)); }
.fle-kolor-ink       { background-color: rgb(var(--ink-400-rgb)); }
.fle-kolor-ink-300   { background-color: rgb(var(--ink-300-rgb)); }
.fle-kolor-ink-700   { background-color: rgb(var(--ink-700-rgb)); }
.fle-kolor-serie-1   { background-color: rgb(var(--fle-serie-1-rgb)); }
.fle-kolor-serie-2   { background-color: rgb(var(--fle-serie-2-rgb)); }
.fle-kolor-serie-3   { background-color: rgb(var(--fle-serie-3-rgb)); }
.fle-kolor-serie-4   { background-color: rgb(var(--fle-serie-4-rgb)); }
.fle-kolor-serie-5   { background-color: rgb(var(--fle-serie-5-rgb)); }
.fle-kolor-serie-6   { background-color: rgb(var(--fle-serie-6-rgb)); }
.fle-kolor-serie-7   { background-color: rgb(var(--fle-serie-7-rgb)); }
.fle-kolor-serie-8   { background-color: rgb(var(--fle-serie-8-rgb)); }

/* Dymek nad pinezką na mapie (fle_mapa): Leaflet rysuje własny kontener z ostrymi rogami i cieniem,
   który odstaje od reszty interfejsu. */
.fle-mapa-popup .leaflet-popup-content-wrapper {
    border-radius: 1rem;
    box-shadow: 0 10px 30px -10px rgba(15, 12, 10, 0.25);
    padding: 0;
    font-family: inherit;
}
.fle-mapa-popup .leaflet-popup-content {
    margin: 0;
    padding: 0.875rem 1rem;
    line-height: 1.4;
}
.fle-mapa-popup .leaflet-popup-tip {
    box-shadow: none;
}
[data-fle-mapa-wrap] .leaflet-container {
    font-family: inherit;
}

/* Pola formularza w spoczynku (input, textarea, select, data, godzina, hasło): cienka
   obwódka i lekki cień, żeby jasnoszare pole nie zlewało się z białą kartą. Dokładamy
   do cienia Tailwinda (--tw-shadow), więc obwódka fokusu (ring-brand-500) i stany
   błąd / sukces działają jak dotąd. Stan spoczynku = klasy bg-ink-100/80 + ring-transparent,
   które kit i fle.js przełączają przy walidacji. */
.bg-ink-100\/80.ring-transparent {
    --tw-shadow: inset 0 0 0 1px rgb(var(--ink-300-rgb) / 0.75), 0 1px 2px rgb(15 14 26 / 0.05);
    --tw-shadow-colored: inset 0 0 0 1px rgb(var(--ink-300-rgb) / 0.75), 0 1px 2px rgb(15 14 26 / 0.05);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.bg-ink-100\/80.ring-transparent:hover {
    --tw-shadow: inset 0 0 0 1px rgb(var(--ink-400-rgb) / 0.8), 0 1px 2px rgb(15 14 26 / 0.06);
}

/* fle_kopiuj z samą ikoną: po skopiowaniu (data-fle-kopiuj-stan="ok", 2 s) „ptaszek” zamiast ikony (1.1.38) */
[data-fle-kopiuj-ikona="ok"],
[data-fle-kopiuj-stan="ok"] [data-fle-kopiuj-ikona="zwykla"] {
    display: none;
}
[data-fle-kopiuj-stan="ok"] [data-fle-kopiuj-ikona="ok"] {
    display: block;
}

/* ==========================================================================
   3) EDYTOR TREŚCI (fle_editor) — klasy .fle-editor*, obsługa w assets/js/fle-editor.js
   ========================================================================== */
.fle-editor {
    --fle-editor-brand:      rgb(var(--brand-500-rgb));
    --fle-editor-brand-weak: rgb(var(--brand-50-rgb));
    --fle-editor-brand-ring: rgb(var(--brand-200-rgb));
    --fle-editor-ink-900: rgb(var(--ink-900-rgb));
    --fle-editor-ink-700: rgb(var(--ink-700-rgb));
    --fle-editor-ink-600: rgb(var(--ink-600-rgb));
    --fle-editor-ink-500: rgb(var(--ink-500-rgb));
    --fle-editor-ink-300: rgb(var(--ink-300-rgb));
    --fle-editor-ink-200: rgb(var(--ink-200-rgb));
    --fle-editor-ink-100: rgb(var(--ink-100-rgb));
    --fle-editor-white: #FFFFFF;
    --fle-editor-danger: rgb(var(--danger-rgb));

    display: block;
    border: 1px solid var(--fle-editor-ink-200);
    border-radius: .9rem;
    background: var(--fle-editor-white);
    /* overflow widoczny: panel „Tabela” może wychodzić poza ramkę */
    overflow: visible;
    font-family: inherit;
    color: var(--fle-editor-ink-900);
}

.fle-editor.is-focused {
    border-color: var(--fle-editor-brand);
    box-shadow: 0 0 0 3px var(--fle-editor-brand-weak);
}

/* ---- Pasek narzędzi ---- */
.fle-editor__toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .15rem;
    padding: .4rem .5rem;
    border-bottom: 1px solid var(--fle-editor-ink-200);
    background: var(--fle-editor-ink-100);
    border-top-left-radius: .8rem;
    border-top-right-radius: .8rem;
}

.fle-editor__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .5rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border: 1px solid transparent;
    border-radius: .55rem;
    background: transparent;
    color: var(--fle-editor-ink-700);
    font-weight: 600; font-size: .82rem; line-height: 1; font-family: inherit;
    cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
    -webkit-user-select: none;
    user-select: none;
}
.fle-editor__btn:hover { background: var(--fle-editor-ink-200); }
.fle-editor__btn:active { transform: translateY(1px); }
.fle-editor__btn svg { width: 16px; height: 16px; pointer-events: none; }

/* stan aktywny (np. zaznaczone pogrubienie) */
.fle-editor__btn.is-active {
    background: var(--fle-editor-brand-weak);
    color: var(--fle-editor-brand);
    border-color: var(--fle-editor-brand-ring);
}

/* przyciski wyłączone (np. „Dodaj wiersz” poza tabelą) */
.fle-editor__btn:disabled,
.fle-editor__btn[aria-disabled="true"] {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

.fle-editor__divider {
    width: 1px;
    align-self: stretch;
    margin: .2rem .35rem;
    background: var(--fle-editor-ink-300);
}

.fle-editor__chev { width: 13px !important; height: 13px !important; opacity: .7; }

/* ---- Obszar edycji ---- */
.fle-editor__area {
    min-height: 21rem;
    max-height: 34rem;
    overflow-y: auto;
    padding: .85rem 1rem;
    font-size: .92rem;
    line-height: 1.6;
    outline: none;
}
.fle-editor__area:empty::before {
    content: attr(data-placeholder);
    color: var(--fle-editor-ink-500);
    pointer-events: none;
}
.fle-editor__area > *:first-child { margin-top: 0; }
.fle-editor__area p { margin: 0 0 .6rem; }
.fle-editor__area b, .fle-editor__area strong { font-weight: 700; }
/* listy i nagłówki z treści zapisanej wcześniej innym edytorem (edytor kitu ich nie tworzy, ale je
   pokazuje i zostawia) — reset Tailwinda zdejmuje im punktory i rozmiar (1.1.12) */
.fle-editor__area ul { list-style: disc;    padding-left: 1.25rem; margin: 0 0 .6rem; }
.fle-editor__area ol { list-style: decimal; padding-left: 1.25rem; margin: 0 0 .6rem; }
.fle-editor__area li { margin: .15rem 0; }
.fle-editor__area h1 { font-size: 1.4rem;  font-weight: 700; line-height: 1.25; margin: .9rem 0 .4rem; }
.fle-editor__area h2 { font-size: 1.2rem;  font-weight: 700; line-height: 1.3;  margin: .8rem 0 .4rem; }
.fle-editor__area h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: .7rem 0 .35rem; }
/* 1.1.19: jak w fle_prose — linki, kod i linia pozioma ze starszej treści widać też w edycji */
.fle-editor__area a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.fle-editor__area code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; background: var(--ink-100); padding: .1em .35em; border-radius: .35rem; }
.fle-editor__area pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: .75rem; padding: .8rem 1rem; overflow-x: auto; margin: 0 0 .6rem; }
.fle-editor__area pre code { background: transparent; padding: 0; }
.fle-editor__area hr { border: 0; border-top: 1px solid var(--ink-200); margin: .8rem 0; }
.fle-editor__area blockquote { border-left: 3px solid var(--brand-200); padding-left: .9rem; color: var(--ink-600); margin: 0 0 .6rem; }

/* tabele wewnątrz edytora (podgląd; w outputcie krawędzie są inline) */
.fle-editor__area table {
    border-collapse: collapse;
    width: 100%;
    margin: .25rem 0 .8rem;
}
.fle-editor__area th,
.fle-editor__area td {
    border: 1px solid var(--fle-editor-ink-300);
    padding: .4rem .6rem;
    min-width: 2.5rem;
    vertical-align: top;
}
.fle-editor__area th {
    background: var(--fle-editor-ink-100);
    font-weight: 700;
}
/* wyrównanie treści tabel jest WYMUSZONE do lewej — w każdej komórce
   i w każdym elemencie w środku (JS dodatkowo czyści text-align/align) */
.fle-editor__area table th,
.fle-editor__area table td,
.fle-editor__area table th *,
.fle-editor__area table td * { text-align: left !important; }
/* komórka aktywna (kursor w środku) */
.fle-editor__area td:focus,
.fle-editor__area th:focus { outline: 2px solid var(--fle-editor-brand); outline-offset: -2px; }

/* ---- Status bar (słowa / znaki) ---- */
.fle-editor__status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .9rem;
    padding: .4rem .8rem;
    border-top: 1px solid var(--fle-editor-ink-200);
    background: var(--fle-editor-ink-100);
    color: var(--fle-editor-ink-500);
    font-weight: 500; font-size: .72rem; line-height: 1; font-family: inherit;
    border-bottom-left-radius: .8rem;
    border-bottom-right-radius: .8rem;
}
.fle-editor__status b { color: var(--fle-editor-ink-700); font-weight: 600; }

/* ---- Popover „Tabela” ---- */
.fle-editor__pop-wrap { position: relative; display: inline-flex; }

.fle-editor__pop {
    position: absolute;
    /* zawsze w dół; nie jest przycinany, bo .fle-editor ma overflow:visible */
    top: calc(100% + .4rem);
    left: 0;
    z-index: 30;
    width: max-content;
    padding: .75rem;
    background: var(--fle-editor-white);
    border: 1px solid var(--fle-editor-ink-200);
    border-radius: .8rem;
    box-shadow: 0 12px 32px -8px rgba(16, 24, 40, .18);
}
.fle-editor__pop[hidden] { display: none; }

.fle-editor__pop-title {
    font-weight: 700; font-size: .82rem; line-height: 1; font-family: inherit;
    color: var(--fle-editor-ink-900);
    margin-bottom: .65rem;
}
.fle-editor__pop-hint {
    font-weight: 500; font-size: .68rem; line-height: 1.3; font-family: inherit;
    color: var(--fle-editor-ink-500);
    margin-top: .6rem;
    text-align: center;
}

/* predefiniowane tabele — karty z miniaturą */
.fle-editor__tcards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
    width: 15rem;
}
.fle-editor__tcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: .7rem .65rem .6rem;
    border: 1px solid var(--fle-editor-ink-200);
    border-radius: .7rem;
    background: var(--fle-editor-white);
    cursor: pointer;
    transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, transform .1s ease;
}
.fle-editor__tcard:hover {
    border-color: var(--fle-editor-brand);
    background: var(--fle-editor-brand-weak);
    box-shadow: 0 6px 16px -8px rgba(16, 24, 40, .2);
}
.fle-editor__tcard:active { transform: translateY(1px); }

/* miniatura tabeli */
.fle-editor__tprev {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
    padding: 4px;
    border: 1px solid var(--fle-editor-ink-200);
    border-radius: .4rem;
    background: var(--fle-editor-white);
}
.fle-editor__tcard:hover .fle-editor__tprev { border-color: var(--fle-editor-brand-ring); }
.fle-editor__tprev-row { display: flex; gap: 3px; }
.fle-editor__tprev-cell {
    flex: 1;
    height: 10px;
    border-radius: 2px;
    background: var(--fle-editor-ink-200);
    transition: background .14s ease;
}
/* wiersz nagłówka wyróżniony kolorem marki */
.fle-editor__tprev-head .fle-editor__tprev-cell { background: var(--fle-editor-brand); opacity: .85; }
.fle-editor__tcard:hover .fle-editor__tprev-row:not(.fle-editor__tprev-head) .fle-editor__tprev-cell { background: var(--fle-editor-brand-ring); }

.fle-editor__tcard-label {
    font-weight: 500; font-size: .74rem; line-height: 1; font-family: inherit;
    color: var(--fle-editor-ink-600);
}
.fle-editor__tcard-label b { font-weight: 700; color: var(--fle-editor-ink-900); }
.fle-editor__tcard:hover .fle-editor__tcard-label,
.fle-editor__tcard:hover .fle-editor__tcard-label b { color: var(--fle-editor-brand); }

/* ---- Menu „Usuń” (dropdown) ---- */
.fle-editor__menu {
    padding: .35rem;
    min-width: 11rem;
}
.fle-editor__menu-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    padding: .5rem .6rem;
    border: 0;
    border-radius: .55rem;
    background: transparent;
    color: var(--fle-editor-ink-700);
    font-weight: 500; font-size: .8rem; line-height: 1; font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}
.fle-editor__menu-item:hover { background: rgb(var(--danger-rgb) / .1); color: var(--fle-editor-danger); }
.fle-editor__menu-item svg { width: 16px; height: 16px; flex: none; }
/* pozycja nieaktywna (np. „Usuń wiersz” w chronionym nagłówku) */
.fle-editor__menu-item:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.fle-editor__menu-item:disabled:hover { background: transparent; color: var(--fle-editor-ink-700); }




/* ============================================================
   Mobile / touch
   ============================================================ */
@media (max-width: 640px) {
    /* większe pola dotykowe na pasku */
    .fle-editor__btn { height: 2.4rem; min-width: 2.4rem; }
    .fle-editor__btn svg { width: 18px; height: 18px; }
    /* 16px w obszarze edycji — iOS nie robi auto-zoomu przy focusie */
    .fle-editor__area { font-size: 16px; min-height: 16rem; }
    /* karty tabeli na całą szerokość popovera */
    .fle-editor__tcards { width: min(78vw, 18rem); }
}

@media (max-width: 460px) {
    /* na bardzo wąskich ekranach „Dodaj wiersz/kolumnę” = same ikony
       (etykiety chowamy, tytuł/tooltip zostaje) */
    .fle-editor__btn[data-cmd="addrow"] > span,
    .fle-editor__btn[data-cmd="addcol"] > span { display: none; }
}

/* stany sterowane przez fle.js: błąd walidacji formularza (required), tylko odczyt, przekroczony limit znaków */
.fle-editor.is-invalid { border-color: var(--fle-editor-danger); box-shadow: 0 0 0 3px rgb(var(--danger-rgb) / .15); }
.fle-editor.is-disabled { opacity: .7; }
.fle-editor.is-disabled .fle-editor__area { background: var(--fle-editor-ink-100); cursor: not-allowed; }
.fle-editor.is-over-limit .fle-editor__status [data-fle-editor-chars] { color: var(--fle-editor-danger); }
.fle-editor--niski .fle-editor__area { min-height: 12rem; }

/* ---- Powiększony edytor (przycisk „Powiększ edytor”, fle-editor.js: pelnyEkran) ---- */
.fle-editor__btn--prawo { margin-left: auto; }
.fle-editor-nakladka {
    position: fixed; inset: 0; z-index: 85;           /* nad oknami kitu (z-50…z-70 i blokującym z-80), żeby powiększyć też edytor z okna */
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    background: rgb(26 26 24 / .6);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    animation: fle-editor-tlo .18s ease-out backwards;
}
html.fle-dark .fle-editor-nakladka { background: rgb(0 0 0 / .65); }
.fle-editor-okno {
    width: min(94vw, max(50vw, 46rem));                /* ok. połowa ekranu, na mniejszych szerzej */
    height: 80vh;
    animation: fle-editor-okno .24s cubic-bezier(.22, 1, .36, 1) backwards;
}
.fle-editor--pelny {
    height: 100%;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 64px -12px rgb(0 0 0 / .35);
}
.fle-editor--pelny .fle-editor__area { flex: 1 1 auto; min-height: 0; max-height: none; padding: 1.25rem 1.5rem; font-size: 1rem; }
.fle-editor--pelny .fle-editor__status { border-bottom-left-radius: .8rem; border-bottom-right-radius: .8rem; }
@keyframes fle-editor-tlo { from { opacity: 0; } }
@keyframes fle-editor-okno { from { opacity: 0; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { .fle-editor-nakladka, .fle-editor-okno { animation: none; } }

