:root {
  color-scheme: light;
  --tlo: #f5f2ec;
  --papier: #fffdf9;
  --grafit: #161a1e;
  --tekst: #222527;
  --lekki: #56524e;
  --linia: #e3d9c9;
  --pomarancz: #ff7900;
  --pomarancz-hover: #ff9b49;
  --pomarancz-jasny: #fff1e5;
  --miedz: #963812;
  --obrys-fokusu: #963812;
  --promien: 14px;
  --cien-panelu: 0 2px 4px #3825110a, 0 12px 34px #38251108;
  --szyna: 244px;
  --oddech: clamp(20px, 3.5vw, 56px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--tekst);
  background: var(--tlo);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; }
body { margin: 0; min-width: 0; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1 { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 780; letter-spacing: -.055em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.22rem, 2.1vw, 1.48rem); font-weight: 730; letter-spacing: -.035em; }
h3 { font-size: 1.06rem; }
a { color: var(--miedz); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--obrys-fokusu); outline-offset: 4px; }
main:focus { outline: none; }

.skocz {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  translate: 0 -150%;
  padding: 12px 16px;
  background: var(--grafit);
  color: white;
  border-radius: 8px;
}
.skocz:focus { translate: 0 0; }

.ramka { max-width: 1440px; margin-inline: auto; padding: var(--oddech); }
.aplikacja { display: grid; grid-template-columns: var(--szyna) minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: 100svh; }
.aplikacja > .ramka { width: 100%; min-width: 0; }
.nawigacja-panelu {
  grid-row: 1 / -1;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: 100svh;
  padding: 25px 20px 20px;
  color: #eef0ef;
  background: linear-gradient(154deg, #262d32 -12%, var(--grafit) 59%);
  border-right: 1px solid #3b3d3e;
  box-shadow: inset 0 3px var(--pomarancz), 4px 0 22px #21150b1b;
  overflow-y: auto;
}
.stopka-panelu {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  width: calc(100% - 2 * var(--oddech));
  max-width: calc(1440px - 2 * var(--oddech));
  min-height: 54px;
  margin-inline: auto;
  border-top: 1px solid var(--linia);
  color: var(--lekki);
  font-size: .84rem;
}
.stopka-panelu a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.marka {
  display: block;
  width: 100%;
  max-width: 208px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 20px #0004;
  transition: box-shadow .2s;
}
.marka:hover { box-shadow: 0 6px 20px #0004, 0 0 0 1px var(--pomarancz-hover); }
.znak-marki {
  position: relative;
  display: block;
  aspect-ratio: 1143 / 730;
  overflow: hidden;
  border-radius: inherit;
  background: #fff;
}
.znak-marki img {
  /* Kadr 1143 × 730 od punktu (397, 32) źródła 1880 × 837. */
  position: absolute;
  inset: -4.384% auto auto -34.733%;
  width: 164.479%;
  max-width: none;
  height: auto;
}
.menu-panelu { display: grid; gap: 5px; margin-top: 31px; }
.menu-link { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 9px 12px; color: #e2e4e3; border: 1px solid transparent; border-radius: 8px; font-size: .91rem; font-weight: 650; text-decoration: none; transition: background-color .16s, color .16s; }
.menu-link:hover { color: white; background: #2e3438; }
.menu-link.aktywny { color: #ffd1a9; background: #3b2a20; border-color: #765536; box-shadow: inset 3px 0 var(--pomarancz); }
.menu-symbol { position: relative; flex: 0 0 20px; width: 20px; height: 20px; }
.menu-symbol::before, .menu-symbol::after { position: absolute; content: ""; }
.menu-symbol--palety::before {
  inset: 3px 2px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.menu-symbol--kolejka::before { inset: 4px 3px; border-block: 1.5px solid currentColor; }
.menu-symbol--kolejka::after { inset: 9px 3px auto; height: 1.5px; background: currentColor; }
.menu-symbol--smietnik::before { inset: 6px 5px 2px; border: 1.5px solid currentColor; border-radius: 0 0 3px 3px; }
.menu-symbol--smietnik::after { inset: 4px 3px auto; height: 1.5px; background: currentColor; }
.menu-symbol--allegro::before { inset: 7px 3px 2px; border: 1.5px solid currentColor; border-radius: 2px; }
.menu-symbol--allegro::after { inset: 3px 7px auto; height: 5px; border: 1.5px solid currentColor; border-radius: 4px 4px 0 0; }
.nawigacja-panelu :focus-visible { outline-color: var(--pomarancz-hover); }

.konto { display: grid; gap: 13px; margin-top: auto; padding-top: 22px; }
.konto-dane { display: flex; align-items: center; min-width: 0; gap: 9px; padding-top: 16px; border-top: 1px solid #384047; }
.konto-dane div { min-width: 0; }
.konto-dane strong { display: block; overflow: hidden; color: #fff; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.konto-dane div span { display: block; color: #bdc6c9; font-size: .71rem; }
.konto-avatar { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; background: #303b41; color: #f9d57f; border-radius: 50%; font-weight: 750; }
.wyloguj { justify-content: start; min-height: 42px; padding: 6px 10px; color: #e4e7e8; background: transparent; border-color: #465159; font-size: .78rem; }
.wyloguj:hover { background: #303b41; color: white; }
.wybor-stanowiska { position: relative; min-width: 0; }
.wybor-stanowiska summary {
  min-height: 44px;
  padding: 10px;
  border: 1px solid #626970;
  border-radius: 8px;
  color: #fff;
  font-size: .82rem;
  cursor: pointer;
}
.wybor-stanowiska form {
  position: absolute;
  z-index: 5;
  inset-inline-end: 0;
  inset-block-end: calc(100% + 6px);
  display: grid;
  gap: 3px;
  width: max(100%, 145px);
  padding: 5px;
  border: 1px solid #626970;
  border-radius: 8px;
  background: var(--grafit);
  box-shadow: 0 8px 18px #0006;
}
.wybor-stanowiska button { justify-content: start; color: #fff; background: transparent; }
.wybor-stanowiska button:hover { background: #303b41; }

.nawigacja { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; color: #667277; font-size: .84rem; font-weight: 650; overflow-wrap: anywhere; }
.nawigacja a { padding-block: 4px; }
.tytul-strony { display: flex; align-items: end; justify-content: space-between; gap: 18px 24px; margin-bottom: clamp(19px, 3.2vw, 35px); }
.tytul-strony > div { min-width: 0; }
.tytul-strony > a { flex-shrink: 0; }
.akcje-panelu { display: flex; flex-wrap: wrap; gap: 8px; }
.etykieta { color: #6e4a13; font-weight: 780; font-size: .73rem; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 8px; }
.produkt { margin-top: 7px; color: var(--lekki); overflow-wrap: anywhere; }
.sygnatura { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
h1.sygnatura { font-size: clamp(1.8rem, 4.2vw, 3.5rem); }

.metryki { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: clamp(21px, 3.1vw, 34px); }
.metryka { position: relative; min-width: 0; display: grid; gap: 5px; align-content: start; padding: clamp(15px, 2.4vw, 25px); background: var(--papier); border: 1px solid var(--linia); border-radius: var(--promien); }
.metryka > span:first-child { font-weight: 710; font-size: .88rem; }
.metryka > span:last-child { font-size: .75rem; }
.metryka > strong { font-size: clamp(2.24rem, 4vw, 3.2rem); line-height: 1.04; font-weight: 790; letter-spacing: -.075em; font-variant-numeric: tabular-nums; }
.metryka-glowna { isolation: isolate; overflow: hidden; color: #fff; background: #20292e; border-color: #20292e; }
.metryka-glowna::before { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(136deg, transparent 0 14px, #f7be4421 15px 16px, transparent 17px 24px); mask-image: linear-gradient(95deg, transparent 30%, black 95%); }
.metryka-glowna > strong { margin-block: 6px 3px; color: var(--pomarancz-hover); }
.metryka-glowna > span:last-child { color: #e2e7e8; }
.postep { min-width: 0; }
.postep-opis { display: flex; justify-content: space-between; align-items: baseline; gap: 5px 10px; margin: 0 0 6px; color: var(--lekki); font-size: .73rem; font-weight: 650; }
.postep-opis > span:last-child { flex-shrink: 0; color: #34444c; font-variant-numeric: tabular-nums; }
.postep-ukos { color: #727d83; }
progress { appearance: none; display: block; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 99px; background: #e9ece9; color: #a4650f; }
progress::-webkit-progress-bar { background: #e9ece9; }
progress::-webkit-progress-value { background: #aa6c13; border-radius: 99px; }
progress::-moz-progress-bar { background: #aa6c13; border-radius: 99px; }
.karta.postep-palety { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-bottom: 22px; padding: 17px 21px; }
.postep-palety .postep-opis { font-size: .82rem; }

.karta { min-width: 0; padding: clamp(17px, 2.5vw, 28px); border: 1px solid var(--linia); border-radius: var(--promien); background: var(--papier); box-shadow: var(--cien-panelu); }
.karta-listy { padding: 0; }
.karta-naglowek { display: flex; align-items: end; justify-content: space-between; gap: 14px 24px; padding: 22px clamp(15px, 2.4vw, 25px); }
.karta-naglowek .opis-listy { margin-top: 5px; }
.opis-listy { color: var(--lekki); font-size: .83rem; overflow-wrap: anywhere; }
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { border-top: 1px solid var(--linia); }
.akcje-palety { display: flex; flex-wrap: wrap; gap: 8px; }
.wiersz-z-miniatura { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; padding-inline-start: clamp(10px, 2vw, 22px); }
.miniatura-palety { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--linia); border-radius: 8px; overflow: hidden; background: #f1f3ef; }
.miniatura-palety img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pozycja-listy { display: grid; align-items: center; gap: 10px 20px; min-height: 84px; padding: 14px clamp(15px, 2.4vw, 25px); color: var(--tekst); text-decoration: none; transition: background-color .16s; }
.pozycja-listy:hover { background: #fff5e9; }
.pozycja-listy:focus-visible { outline-offset: -4px; border-radius: 8px; }
.wiersz-palety { grid-template-columns: 46px minmax(90px, 1.05fr) minmax(100px, .9fr) minmax(110px, .68fr) 16px; }
.wiersz-pozycji { grid-template-columns: minmax(130px, 2fr) minmax(100px, .86fr) minmax(100px, 1fr) 16px; }
.znak-palety, .pusty-znak { display: grid; place-items: center; width: 46px; height: 46px; background: #f5f1e7; color: #755320; border: 1px solid #ebe3d0; border-radius: 10px; font-size: 1.42rem; line-height: 1; }
.pozycja-glowna, .ilosci { display: grid; gap: 3px; min-width: 0; }
.pozycja-glowna strong { color: var(--tekst); font-size: 1.1rem; line-height: 1.23; letter-spacing: -.022em; }
.ilosci { gap: 2px; }
.ilosci strong { color: var(--tekst); }
.stan { display: flex; justify-content: end; }
.strzalka { justify-self: end; color: #725520; font-size: 1.2rem; }
.status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 8px; background: #eef0ee; border: 1px solid #dfe4e0; border-radius: 7px; color: #444f51; font-size: .71rem; line-height: 1.25; font-weight: 720; overflow-wrap: anywhere; }
.status::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.status-trwa { color: #724708; background: #fff1d5; border-color: #f2dbab; }
.status-gotowy { color: #176347; background: #e7f3ea; border-color: #cfe4d6; }
.status-zamkniety { color: #77392f; background: #f8efeb; border-color: #ebd5cd; }
.podsumowanie-job + .postep-job { margin-top: 14px; }
.siatka-statusow-job {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  gap: 10px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}
.siatka-statusow-job li { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 11px 12px; background: #f5f7f5; border-radius: 8px; }
.siatka-statusow-job strong { font-size: .85rem; font-variant-numeric: tabular-nums; }
.kolejka-job + .karta-listy { margin-top: 18px; }
.zrodlo-pozycji { margin-bottom: 18px; }
.zrodlo-pozycji h2 { margin-bottom: 10px; }
.zrodlo-pozycji .deklaracja-job, .zrodlo-pozycji .deklaracja-manifestu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 10px 15px;
  margin: 15px 0 0;
}
.deklaracja-job div { display: grid; gap: 3px; align-content: start; }
.zrodlo-pozycji .deklaracja-manifestu > div { display: grid; gap: 3px; align-content: start; min-width: 0; }
.deklaracja-manifestu .opis-manifestu { grid-column: 1 / -1; }
.strony { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 17px; padding: 14px; border-top: 1px solid var(--linia); color: var(--lekki); font-size: .83rem; }
.strony a { display: inline-flex; align-items: center; min-height: 44px; }
.pusto { display: grid; justify-items: center; gap: 10px; padding: clamp(25px, 5vw, 57px) 16px; border-top: 1px solid var(--linia); color: var(--lekki); text-align: center; overflow-wrap: anywhere; }
.pusto h3, .pusto h1 { color: var(--tekst); }
.pusto .przycisk { margin-top: 4px; }
.pusto-blad { margin-top: 25px; }
.pusto-male { margin-top: 15px; padding-block: 22px; border: 1px dashed #cbd1cb; border-radius: 10px; background: #f9faf8; }

.szukaj { width: min(100%, 460px); }
.szukaj label, .pole label { display: block; margin-bottom: 6px; color: #35434a; font-size: .81rem; font-weight: 700; }
.szukanie { display: flex; gap: 8px; }
.pole { margin-block: 0 15px; min-width: 0; overflow-wrap: anywhere; }
.karta h2 + .pole, .karta h2 + form, .karta h3 + dl { margin-top: 14px; }
input:not([type="hidden"]), select, textarea { width: 100%; min-width: 0; min-height: 44px; padding: 8px 11px; border: 1px solid #adb7b7; border-radius: 8px; color: var(--tekst); background: var(--papier); }
input::placeholder, textarea::placeholder { color: #616e71; opacity: 1; }
textarea { resize: vertical; }
input[type="file"]:not(#aparat) { padding: 5px 7px; font-size: .86rem; }
input::file-selector-button { padding: 5px 9px; margin-right: 8px; border: 0; border-radius: 5px; background: var(--pomarancz-jasny); color: #573619; font: inherit; cursor: pointer; }
button, .przycisk { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; max-width: 100%; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; background: var(--pomarancz); color: var(--grafit); font-size: .91rem; font-weight: 720; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .16s, border-color .16s; }
button:hover, .przycisk:hover { background: var(--pomarancz-hover); }
button:disabled { cursor: wait; opacity: .62; }
.drugorzedny { background: var(--papier); color: #34332f; border-color: #ad9f90; }
.drugorzedny:hover { background: #f7eee2; border-color: #957f63; }
.wskazowka { margin-top: 5px; color: var(--lekki); font-size: .79rem; }
.errorlist { margin: 6px 0 13px; padding-left: 21px; color: #922d21; font-size: .86rem; font-weight: 650; }
.komunikaty { display: grid; gap: 8px; margin-bottom: 15px; }
.komunikat { padding: 12px 14px; border: 1px solid #bad9c7; border-inline-start: 4px solid #448564; border-radius: 9px; color: #22583e; background: #eaf6ee; overflow-wrap: anywhere; }
.komunikat.blad { color: #822b24; background: #fff0ec; border-color: #e8bcb3; border-inline-start-color: #b65448; }
.komunikat.ostrzezenie { color: #62420d; background: #fff3d9; border-color: #e6ca94; border-inline-start-color: #ae721d; }
.komunikat.informacja { color: #364f5d; background: #edf3f6; border-color: #c7d6de; border-inline-start-color: #5a8397; }
.komunikat + .kolumny, .kolumny + .dodatkowa { margin-top: 16px; }

.tytul-pozycji { align-items: start; margin-bottom: 18px; }
.akcje-pozycji { display: grid; justify-items: end; gap: 9px; }
.szybkie-zdjecie { display: flex; flex-wrap: wrap; justify-content: end; align-items: start; gap: 8px; }
.przycisk-aparatu { position: relative; cursor: pointer; }
.przycisk-aparatu:focus-within { outline: 3px solid var(--obrys-fokusu); outline-offset: 4px; }
.przycisk-aparatu:has(input:disabled) { cursor: wait; opacity: .65; }
.przycisk-aparatu input#aparat { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; cursor: inherit; opacity: 0; }
.aparat-gotowy .zapisz-aparat { display: none; }
.ikona-aparatu { position: relative; display: inline-grid; place-items: center; width: 20px; height: 15px; border: 2px solid currentColor; border-radius: 4px; }
.ikona-aparatu::before { content: ""; position: absolute; top: -5px; left: 4px; width: 8px; height: 4px; border: 2px solid currentColor; border-radius: 4px 4px 0 0; }
.ikona-aparatu::after { content: ""; width: 7px; height: 7px; border: 2px solid currentColor; border-radius: 50%; }
.pusty-znak.ikona-aparatu { width: 24px; height: 17px; background: transparent; border: 2px solid currentColor; }
.qr-pozycji { width: fit-content; max-width: 100%; margin: 0 0 14px; border: 1px solid var(--linia); border-radius: 9px; background: var(--papier); }
.qr-pozycji summary { min-height: 44px; padding: 11px 13px; color: #33454d; font-size: .82rem; font-weight: 710; cursor: pointer; }
.qr-pozycji[open] summary { border-bottom: 1px solid var(--linia); }
.qr-pozycji > div { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 12px; }
.qr-pozycji img { display: block; max-width: 100%; height: auto; }
.qr-pozycji p { max-width: 220px; color: var(--lekki); font-size: .83rem; }
.deklaracja { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 19px; }
.deklaracja div { display: flex; align-items: baseline; gap: 8px; }
.deklaracja dt { color: var(--lekki); font-size: .82rem; }
.deklaracja dd { margin: 0; color: var(--tekst); font-size: .89rem; font-weight: 720; overflow-wrap: anywhere; }
.etapy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--linia); border-radius: var(--promien); background: var(--papier); }
.etapy a, .etap-niedostepny { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 10px clamp(8px, 2vw, 18px); color: var(--tekst); text-decoration: none; overflow-wrap: anywhere; }
.etapy a + a, .etap-niedostepny { border-left: 1px solid var(--linia); }
.etapy a:first-child { border-radius: var(--promien) 0 0 var(--promien); }
.etapy a:last-child { border-radius: 0 var(--promien) var(--promien) 0; }
.etap-niedostepny .etap-punkt { background: #edf0ee; color: #58646b; }
.etapy a:hover { background: var(--pomarancz-jasny); }
.etapy strong, .etapy small { display: block; }
.etapy strong { font-size: .88rem; }
.etapy small { color: var(--lekki); font-size: .72rem; }
.etap-punkt { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 50%; background: #f6e8ce; color: #774b0c; font-size: .74rem; font-weight: 740; }
.etap-punkt.zakonczony { background: #e3f1e8; color: #1b694c; }
.kolumny { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.dodatkowa { margin-top: 16px; }
.karta h2 + p, .karta > p + h3, .karta h2 + .szczegoly, .karta h2 + .pusty-znak { margin-top: 12px; }
.karta > p + p, .karta > p + form, .karta > form + p, .karta > dl + a { margin-top: 12px; }
.szczegoly { display: grid; grid-template-columns: minmax(105px, 40%) minmax(0, 1fr); gap: 0 10px; font-size: .88rem; }
.szczegoly dt, .szczegoly dd { margin: 0; padding: 8px 0; border-bottom: 1px solid #e5e9e6; overflow-wrap: anywhere; }
.szczegoly dt { color: var(--lekki); font-weight: 665; }
.szczegoly dd { color: var(--tekst); }
.nastepny-link { margin-top: 12px; }
.historia { padding-left: 20px; }

.galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 15px 0 0; padding: 0; list-style: none; }
.galeria li { min-width: 0; border: 1px solid var(--linia); border-radius: 10px; background: #f8faf8; overflow-wrap: anywhere; }
.galeria .miniatura { display: block; padding: 4px; }
.galeria img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #e7ebe8; border-radius: 6px; }
.galeria li > p, .galeria li > a:not(.miniatura) { margin: 5px 10px; font-size: .79rem; }
.galeria li > a:not(.miniatura) { display: block; margin-bottom: 9px; }
.naglowek-galerii-produktu { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 9px 20px; }
.naglowek-galerii-produktu .opis-listy { margin-top: 5px; }
.metadane-galerii-produktu { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 13px 0; font-size: .82rem; }
.metadane-galerii-produktu div { display: grid; gap: 2px; }
.metadane-galerii-produktu dt { color: var(--lekki); }
.metadane-galerii-produktu dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.narzedzia-galerii-produktu, .zapis-wyboru-produktu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px; background: #f4f6f4; border: 1px solid var(--linia); border-radius: 9px; }
.narzedzia-galerii-produktu { margin-top: 13px; }
.narzedzia-galerii-produktu form { min-width: 0; margin: 0; }
.galeria-ujec-produktu { grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr)); }
.galeria-ujec-produktu li { display: flex; flex-direction: column; }
.opis-ujecia-produktu { display: grid; gap: 2px; padding: 4px 9px 8px; font-size: .76rem; }
.opis-ujecia-produktu .opis-listy { font-size: .74rem; }
.kopia-produktu { color: #195b42; font-size: .74rem; font-weight: 650; }
.galeria-produktu h3 { margin-top: 20px; }
.naglowek-grupy-ujec { margin-top: 16px; }
.naglowek-grupy-ujec h3 { margin-top: 0; }
.naglowek-grupy-ujec p { margin-top: 4px; }
.wybor-ujecia-produktu { display: flex; align-items: center; gap: 7px; min-height: 44px; margin-top: auto; padding: 6px 9px; border-top: 1px solid var(--linia); color: #243740; font-size: .77rem; font-weight: 680; cursor: pointer; }
.wybor-ujecia-produktu:has(input:checked) { background: #fff3d7; }
.wybor-ujecia-produktu input[type="checkbox"] { flex: 0 0 17px; width: 17px; min-height: 17px; padding: 0; margin: 0; accent-color: #8a530b; cursor: pointer; }
.etykieta-ujecia { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.zapis-wyboru-produktu { justify-content: space-between; margin-top: 15px; }
.zapis-wyboru-produktu .wskazowka { margin: 0; }
.podglad-produktu-otwarty { overflow: hidden; }
.podglad-produktu {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #14191d;
  color: #f0f3f3;
}
.podglad-produktu[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.podglad-produktu::backdrop { background: #14191d; }
.podglad-produktu-gora, .podglad-produktu-dol { display: flex; align-items: center; justify-content: space-between; gap: 8px 15px; padding: 10px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left)); background: #222a2f; }
.podglad-produktu-gora { padding-top: max(10px, env(safe-area-inset-top)); }
.podglad-produktu-dol { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.podglad-produktu-gora p, .podglad-produktu-zrodlo p, .podglad-produktu-zrodlo a:not([href]) { color: #d3dadb; font-size: .82rem; }
.podglad-produktu-zrodlo { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; overflow-wrap: anywhere; }
.podglad-produktu-zrodlo a[href] { display: inline-flex; align-items: center; min-height: 44px; color: #ffcd70; font-size: .86rem; }
.podglad-produktu-dol nav { display: flex; gap: 8px; }
.podglad-produktu button, .podglad-produktu a[href] { touch-action: manipulation; }
.podglad-produktu :focus-visible { outline-color: var(--bursztyn); }
.pole-podgladu-produktu { display: grid; place-items: center; min-height: 0; padding: 8px; overflow: hidden; touch-action: none; }
.pole-podgladu-produktu img { display: block; width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.dodaj-zdjecia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 17px; margin-top: 16px; }
.dodaj-zdjecia button { justify-self: start; }
.wyniki-zdjec { max-width: 100%; min-width: 0; padding: 0 0 0 17px; margin: 7px 0; color: #205f45; font-size: .81rem; overflow-wrap: anywhere; }
.szybkie-zdjecie .wyniki-zdjec { flex-basis: 100%; }
.wynik-blad { color: #922d21; }
.odswiez-zdjecia { display: block; width: fit-content; color: #25434d; font-size: .81rem; font-weight: 690; padding: 6px 0; }

.ekran-logowania {
  min-height: 100svh;
  background: radial-gradient(ellipse at 6% 0, #ffd1a0a3, transparent 48%),
    linear-gradient(148deg, #f9f4ed, #e9e0d4);
}
.ekran-logowania .ramka { display: grid; align-content: center; min-height: 100svh; padding: clamp(16px, 5vw, 65px); }
.logowanie {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(0, 6fr);
  width: min(1180px, 100%);
  min-height: 610px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid #d7c8b7;
  border-radius: 23px;
  overflow: hidden;
  box-shadow: 0 25px 62px #3d24192b, 0 3px 11px #29150e16;
}
.logowanie-formularz { display: flex; flex-direction: column; justify-content: center; gap: 9px; min-width: 0; padding: clamp(24px, 4.3vw, 64px); }
.logo-logowania { width: min(314px, 100%); align-self: center; margin-bottom: 10px; }
.logowanie h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
.logowanie form { display: grid; margin-top: 13px; }
.logowanie button { justify-content: space-between; min-height: 49px; margin-top: 4px; padding-inline: 15px; }
.logowanie button span { transition: transform .18s ease-out; }
.logowanie button:hover span, .logowanie button:focus-visible span { transform: translateX(3px); }
.logowanie-formularz p.errorlist { padding: 9px 12px; border-inline-start: 3px solid #b65448; border-radius: 6px; background: #fff0ec; }
.logowanie-kadr {
  position: relative;
  isolation: isolate;
  min-height: 220px;
  overflow: hidden;
  border-inline-start: 3px solid var(--pomarancz);
  background: var(--grafit);
}
.logowanie-kadr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 63% 50%; }
.logowanie-kadr::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, #161a1e13, transparent 35%, transparent 72%, #161a1e36);
  pointer-events: none;
}

@media (max-width: 1050px) {
  :root { --szyna: 209px; }
  .nawigacja-panelu { padding-inline: 15px; }
  .pozycja-listy { gap: 10px 13px; }
  .wiersz-palety { grid-template-columns: 42px minmax(75px, 1.05fr) minmax(90px, .85fr) minmax(80px, .7fr) 14px; }
  .znak-palety { width: 40px; height: 40px; }
}
@media (max-width: 850px) {
  :root { --oddech: clamp(14px, 4vw, 33px); }
  html { scroll-padding-top: 160px; }
  .aplikacja { display: block; }
  .nawigacja-panelu { z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding: 12px var(--oddech) 0; height: auto; border: 0; overflow: visible; }
  .nawigacja-panelu .marka { width: clamp(120px, 34vw, 145px); max-width: 100%; border-radius: 8px; }
  .menu-panelu { grid-row: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
  .menu-link { min-height: 44px; padding: 6px 9px; border-radius: 7px 7px 0 0; }
  .menu-link.aktywny { box-shadow: inset 0 -3px var(--pomarancz); }
  .konto { grid-row: 1; grid-column: 2; display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; }
  .konto:has(.wybor-stanowiska) { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .konto:has(.wybor-stanowiska) > form { grid-column: 2; grid-row: 1; }
  .wybor-stanowiska { grid-column: 1 / -1; grid-row: 2; }
  .wybor-stanowiska form { inset-block: calc(100% + 6px) auto; }
  .konto-dane { padding: 0; border: 0; }
  .konto-dane strong { max-width: 25vw; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
  .konto-avatar { display: none; }
  .wyloguj { min-height: 44px; }
}
@media (max-width: 640px) {
  .tytul-strony, .karta-naglowek { align-items: start; flex-direction: column; }
  .tytul-strony > a { align-self: start; }
  .tytul-pozycji { gap: 13px; }
  .tytul-pozycji .akcje-pozycji { width: 100%; justify-items: start; }
  .szybkie-zdjecie { justify-content: start; }
  .qr-pozycji { display: none; }
  .metryki { gap: 6px; }
  .metryka { padding: 11px 8px; border-radius: 10px; }
  .metryka > span:first-child { font-size: .71rem; }
  .metryka > span:last-child { font-size: .65rem; }
  .metryka > strong { font-size: 2rem; }
  .metryka .postep-opis label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  .metryka .postep-opis { justify-content: end; }
  .karta.postep-palety { gap: 11px; padding: 14px 12px; }
  .karta-naglowek { gap: 13px; padding-block: 16px; }
  .szukaj { width: 100%; }
  .wiersz-palety { grid-template-columns: 34px minmax(0, 1fr) minmax(65px, .66fr) 13px; }
  .wiersz-palety .znak-palety { grid-row: 1; width: 32px; height: 32px; border-radius: 7px; font-size: 1.05rem; }
  .wiersz-palety .pozycja-glowna { grid-column: 2 / 4; }
  .wiersz-palety .postep-wiersza { grid-row: 2; grid-column: 2; }
  .wiersz-palety .stan { grid-row: 2; grid-column: 3; }
  .wiersz-palety .strzalka { grid-row: 1 / 3; grid-column: 4; }
  .wiersz-pozycji { grid-template-columns: minmax(0, 1fr) minmax(86px, .7fr) 14px; }
  .wiersz-pozycji .pozycja-glowna { grid-column: 1 / 3; }
  .wiersz-pozycji .ilosci { grid-column: 1; grid-row: 2; }
  .wiersz-pozycji .stan { grid-column: 2; grid-row: 2; }
  .wiersz-pozycji .strzalka { grid-column: 3; grid-row: 1 / 3; }
  .miniatura-palety { width: 44px; height: 44px; }
  .wiersz-z-miniatura .wiersz-pozycji { padding-inline-start: 8px; }
  .etapy a, .etap-niedostepny { gap: 5px; padding: 7px 5px; }
  .etapy strong { font-size: .72rem; }
  .etapy small { font-size: .64rem; }
  .etap-punkt { flex-basis: 19px; width: 19px; height: 19px; }
  .kolumny, .dodaj-zdjecia { grid-template-columns: 1fr; }
  .galeria-ujec-produktu { grid-template-columns: repeat(auto-fill, minmax(min(100%, 116px), 1fr)); gap: 8px; }
  .narzedzia-galerii-produktu > *, .narzedzia-galerii-produktu button, .zapis-wyboru-produktu button { width: 100%; }
  .podglad-produktu-dol { flex-wrap: wrap; }
  .podglad-produktu-dol nav { width: 100%; }
  .podglad-produktu-dol nav button { flex: 1; }
  .ekran-logowania .ramka { min-height: 100svh; padding: 12px; }
  .logowanie { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .logowanie-formularz { padding: clamp(19px, 6vw, 35px); }
  .logo-logowania { width: min(100%, 70vw, 275px); margin-bottom: 4px; }
  .logowanie-kadr { min-height: clamp(155px, 52vw, 255px); border-inline-start: 0; border-top: 3px solid var(--pomarancz); }
  .logowanie-kadr img { object-position: 58% 50%; }
}
@media (max-width: 480px) {
  .menu-link { gap: 6px; padding-inline: 7px; }
  .menu-symbol { flex-basis: 18px; width: 18px; }
  .wiersz-pozycji .ilosci { grid-column: 1 / 3; }
  .wiersz-pozycji .stan { grid-column: 1 / 3; grid-row: 3; justify-content: start; }
  .wiersz-pozycji .strzalka { grid-row: 1 / 4; }
  .miniatura-palety { align-self: start; margin-top: 14px; }
}
@media (max-width: 380px) {
  .menu-symbol { display: none; }
  .konto-dane strong { max-width: 20vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .logowanie button:hover span, .logowanie button:focus-visible span { transform: none; }
}
