/* Studio Punktum — paleta z ~/.antygravity/marka.json (wektor logo + CSS strony), krój Barlow (OFL, lokalnie). */
@font-face { font-family: Barlow; font-weight: 400; font-display: swap;
  src: url(fonty/barlow-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Barlow; font-weight: 400; font-display: swap;
  src: url(fonty/barlow-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap;
  src: url(fonty/barlow-latin-ext-600.woff2) format("woff2");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap;
  src: url(fonty/barlow-latin-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --akcent: #F4EC56;      /* żółty — wektor logo */
  --tekst: #231F20;       /* ciemny szary — wektor logo */
  --czerwony: #F0506E;    /* CSS strony — tylko błędy i usuwanie */
  --tlo: #E4EEF0;
  --karta: #FFFFFF;
  --szary: #5F6668;
  --linia: #D3DDE0;
  --r: 13px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.45 Barlow, system-ui, sans-serif; background: var(--tlo); color: var(--tekst); }
h1, h2 { font-weight: 600; line-height: 1.2; margin: 0 0 8px; }
h1 { font-size: 24px; } h2 { font-size: 20px; }
p { margin: 0 0 13px; }
.ukryte { display: none !important; }
.male { font-size: 15px; color: var(--szary); }

/* układ */
header { display: flex; align-items: center; gap: 13px; padding: 8px 16px; background: var(--karta); border-bottom: 1px solid var(--linia); position: sticky; top: 0; z-index: 5; }
header img { height: 34px; width: auto; }
header .kto { margin-left: auto; font-size: 15px; color: var(--szary); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
nav { display: flex; gap: 5px; padding: 8px 16px; overflow-x: auto; }
nav button { flex: 0 0 auto; background: transparent; border: 1px solid var(--linia); color: var(--tekst); width: auto; margin: 0; padding: 8px 16px; }
nav button.aktywna { background: var(--tekst); color: #fff; border-color: var(--tekst); }
main { padding: 8px 16px 55px; max-width: 760px; margin: 0 auto; }
.karta { background: var(--karta); border: 1px solid var(--linia); border-radius: var(--r); padding: 21px; margin-bottom: 13px; }
.srodek { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.srodek .karta { width: min(377px, 100%); }
.srodek .logo { display: block; height: 55px; margin: 0 auto 13px; }

/* formularze */
label { display: block; font-size: 15px; color: var(--szary); margin-top: 13px; }
input, select, textarea { width: 100%; font: inherit; color: var(--tekst); padding: 12px; border: 1px solid var(--linia); border-radius: var(--r); margin-top: 5px; background: #fff; }
textarea { min-height: 89px; resize: vertical; }
button { font: inherit; font-weight: 600; padding: 12px 16px; border: 0; border-radius: var(--r); background: var(--akcent); color: var(--tekst); cursor: pointer; width: 100%; margin-top: 16px; }
button.drugi { background: transparent; border: 1px solid var(--linia); }
button.maly { width: auto; margin: 0; padding: 5px 13px; font-size: 15px; flex: 0 0 auto; }
button.usun { background: var(--czerwony); color: #fff; }
button:disabled { opacity: .55; cursor: default; }
.blad { background: #FDE7EC; color: #9B1C35; border-radius: 8px; padding: 8px 13px; margin-top: 13px; font-size: 15px; }
.info { background: #FFFBD6; border-radius: 8px; padding: 8px 13px; margin-top: 13px; font-size: 15px; word-break: break-all; }

/* listy */
.wiersz { display: flex; align-items: center; gap: 8px; padding: 13px 0; border-top: 1px solid var(--linia); flex-wrap: wrap; }
.wiersz:first-child { border-top: 0; }
.wiersz .opis { flex: 1 1 180px; min-width: 0; }
.wiersz .opis b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiersz select, .wiersz button { width: auto; margin: 0; padding: 8px 13px; font-size: 15px; }
.znacznik { font-size: 13px; padding: 2px 8px; border-radius: 21px; background: var(--tlo); }

/* biblioteka */
.filtry input, .filtry select { margin-top: 0; margin-bottom: 8px; }
.przyciski { display: flex; gap: 8px; }
.przyciski button { margin-top: 0; }
.siatka { display: grid; grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: 8px; }
.kafel { position: relative; margin: 0; padding: 0; aspect-ratio: 1; overflow: hidden; background: var(--karta); border: 3px solid transparent; border-radius: var(--r); }
.kafel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kafel .zastepcza { display: grid; place-items: center; height: 100%; font-size: 34px; }
.kafel .znak-wideo { position: absolute; top: 5px; right: 5px; background: rgba(35,31,32,.75); color: #fff; border-radius: 21px; font-size: 13px; padding: 2px 8px; }
.kafel .podpis { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 8px; background: rgba(35,31,32,.75); color: #fff; font-size: 13px; font-weight: 400; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kafel.wybrany { border-color: var(--czerwony); }
.kafel.wybrany::after { content: "✓"; position: absolute; top: 5px; left: 5px; background: var(--czerwony); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; }
dialog { border: 0; border-radius: var(--r); padding: 16px; width: min(610px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
dialog::backdrop { background: rgba(35,31,32,.6); }
dialog video, dialog img { width: 100%; max-height: 55vh; object-fit: contain; background: #000; border-radius: 8px; display: block; }
.pasek { height: 8px; background: var(--tlo); border-radius: 8px; overflow: hidden; margin-top: 5px; }
.pasek span { display: block; height: 100%; }
