/* Fonty na naszym serwerze (licencja SIL Open Font License) — bez łączenia z Google przy każdym wejściu. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/bricolage-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/bricolage-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/instrument-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/instrument-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Smart Ciuch — prototyp v2 „Na wieszaku”. Kolory z logo: zieleń #145240, grafit wieszaka #1E1D21. */
:root {
  --green: #145240;
  --green-deep: #0d3b2e;
  --green-soft: #dce9e1;
  --ink: #1e1d21;
  --muted: #5b625e;
  --line: #e2e5e1;
  --sage: #f1f4f1;
  --white: #ffffff;
  --marigold: #f3b93f;
  --danger: #b3261e;

  --display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --ui: 'Instrument Sans', system-ui, sans-serif;

  --pad: clamp(16px, 4vw, 48px);
  --max: 1480px;
  --staff-h: 0px;
  --bar-h: 120px;
  --rail-gap: clamp(14px, 1.6vw, 26px);
  --ease-swing: cubic-bezier(.3, 1.5, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--staff-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.5 var(--ui); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
h1, h2, h3 { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.proto-note { margin: 0; padding: 7px var(--pad); background: var(--sage); color: var(--muted); font-size: 13px; text-align: center; }
.placeholder { color: var(--muted); font-style: italic; }

/* ---------- Logo (plik przycięty do samego znaku, 760×554) ---------- */
.logo { --h: 128px; display: block; position: relative; overflow: hidden; height: var(--h); aspect-ratio: 1623 / 1183; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo-small { --h: 64px; }

/* ---------- Pasek obsługi ---------- */
.staff-bar { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--white); }
.staff-inner { max-width: var(--max); margin: 0 auto; padding: 8px var(--pad); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.staff-label { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; font-weight: 700; white-space: nowrap; }
.staff-label i { width: 9px; height: 9px; border-radius: 50%; background: var(--marigold); }
.sbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: none; color: var(--white); font-size: 14px; font-weight: 600; white-space: nowrap; }
.sbtn:hover { background: rgba(255,255,255,.12); }
.sbtn svg { width: 18px; height: 18px; stroke-width: 2.2; }
.sbtn-main { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.sbtn-main:hover { background: #f6c862; }
.sbtn-ghost { border-color: transparent; color: #c9ccca; font-weight: 500; }
.sbtn[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--ink); }
.sbtn[aria-pressed="true"] .count { background: var(--green-soft); }
.sbtn:disabled { opacity: .4; }
.sbtn .count { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 12px; }
.sdate { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; color: #c9ccca; }
.sdate input { height: 38px; padding: 0 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: none; color: var(--white); color-scheme: dark; }
.staff-spacer { flex: 1; }
.staff-inner :focus-visible { outline-color: var(--marigold); }

/* ---------- Nagłówek ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { max-width: var(--max); margin: 0 auto; padding: 10px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-links { display: flex; align-items: center; gap: 30px; font-weight: 500; font-size: 17px; }
.header-links a { text-decoration: none; padding: 6px 0; }
.header-links a:hover { color: var(--green); }
.fav-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 600; }
.fav-btn svg { width: 20px; height: 20px; }
.fav-btn.has-items svg { fill: var(--green); stroke: var(--green); }
.fav-count { font-variant-numeric: tabular-nums; }

/* ---------- Cykl kolekcji ---------- */
.cycle-wrap { max-width: var(--max); margin: 0 auto; padding: clamp(16px, 2.4vw, 32px) var(--pad) 0; }
.cycle { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 48px; padding: clamp(24px, 3.2vw, 44px) clamp(22px, 3.6vw, 52px); border-radius: 18px; background: var(--green); color: var(--white); }
.cycle-main { margin: 0; font: 700 clamp(26px, 3.3vw, 46px)/1.04 var(--display); letter-spacing: -.025em; max-width: 21ch; }
.cycle-sub { margin: 12px 0 0; color: #cfe0d6; font-size: 17px; max-width: 52ch; }
.cycle-side { display: grid; justify-items: end; gap: 14px; text-align: right; }
.cycle-count { display: flex; align-items: baseline; gap: 12px; }
.cycle-count b { font: 800 clamp(72px, 9vw, 132px)/.8 var(--display); letter-spacing: -.05em; color: var(--marigold); font-variant-numeric: tabular-nums; }
.cycle-count span { font-size: 18px; font-weight: 600; max-width: 6.5em; text-align: left; line-height: 1.2; }
.open-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: 15px; font-weight: 500; }
.open-pill i { width: 9px; height: 9px; border-radius: 50%; background: #9aa29d; flex: none; }
.open-pill.is-open i { background: #7be0a4; box-shadow: 0 0 0 3px rgba(123,224,164,.25); }

/* ---------- Perełki na drążku ---------- */
.pearls { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 4.4vw, 64px) 0 clamp(40px, 5vw, 72px) var(--pad); }
.pearls-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-right: var(--pad); }
.pearls-head h2 { font: 750 clamp(40px, 5vw, 76px)/.92 var(--display); letter-spacing: -.035em; color: var(--green); }
.pearls-head p { margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.rail-controls { display: flex; gap: 8px; flex: none; }
.round-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--white); }
.round-btn:hover { background: var(--ink); color: var(--white); }
.round-btn svg { width: 20px; height: 20px; stroke-width: 2.2; }
.rail { display: flex; gap: var(--rail-gap); overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px var(--pad) 12px 0; margin-top: 4px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail li { position: relative; flex: none; width: calc((min(100vw, var(--max)) - 2 * var(--pad) - 3 * var(--rail-gap)) / 4); scroll-snap-align: start; }
.rail-seg { position: absolute; top: 0; left: 0; width: 100%; height: auto; overflow: visible; color: var(--ink); }
.rail-seg path { stroke-width: 7px; stroke-linecap: butt; }
.hang { position: relative; transform-origin: 50% 3%; }
/* Rozbujanie tylko raz po wczytaniu; klasa znika po animacji, więc zjechanie kursorem jej nie powtarza. */
.hang.is-entering { animation: swing 1.7s var(--ease-swing) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
.hang:not(.is-entering):hover { animation: sway 1.9s cubic-bezier(.25, .8, .35, 1); }
.hanger { display: block; width: 100%; height: auto; color: var(--ink); position: relative; z-index: 2; margin-bottom: -4px; }
.hanger path, .rail-seg path { vector-effect: non-scaling-stroke; }
.hanger path { stroke-width: 6px; }
.rail .photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--sage); }
.rail .photo img { width: 100%; height: 100%; object-fit: cover; }
.rail .label-tag { position: absolute; left: 12px; bottom: 12px; }
.rail .flag { left: 12px; top: 12px; }
.rail-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; }
.rail-meta h3 { font: 500 17px/1.3 var(--ui); }
.rail-meta .price { font-size: 20px; }
.hang-open { all: unset; cursor: pointer; display: block; }
.hang-open::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.hang-open:focus-visible::after { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
.pearls-empty { margin: 20px var(--pad) 0 0; padding: 24px; border: 1.5px dashed #b9c4bd; border-radius: 14px; color: var(--muted); }

@keyframes swing {
  0% { transform: rotate(7deg); opacity: 0; }
  15% { opacity: 1; }
  45% { transform: rotate(-3.5deg); }
  70% { transform: rotate(1.4deg); }
  100% { transform: rotate(0); }
}
@keyframes sway { 0% { transform: rotate(0); } 14% { transform: rotate(6.5deg); } 36% { transform: rotate(-4deg); } 58% { transform: rotate(2.2deg); } 78% { transform: rotate(-.9deg); } 100% { transform: rotate(0); } }

/* ---------- Wszywka z rozmiarem ---------- */
.label-tag { display: inline-grid; place-items: center; min-width: 40px; height: 30px; padding: 0 9px; background: var(--white); color: var(--green); border-radius: 3px; font: 700 14px/1 var(--ui); letter-spacing: .02em; outline: 1px dashed rgba(20, 82, 64, .55); outline-offset: -4px; box-shadow: 0 1px 2px rgba(30, 29, 33, .12); }
.label-tag-lg { min-width: 64px; height: 52px; font-size: 20px; outline-offset: -5px; background: var(--sage); box-shadow: none; }

/* ---------- Plakietki ---------- */
.flag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2; }
.flag svg { width: 14px; height: 14px; stroke-width: 2; }
.flag-tag { background: var(--white); color: var(--green); box-shadow: 0 1px 2px rgba(30,29,33,.15); }
.chip-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font-size: 14px; font-weight: 600; }
.chip-tag svg { width: 15px; height: 15px; stroke-width: 2; }

/* ---------- Katalog ---------- */
.catalog { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 4vw, 56px) var(--pad) 80px; border-top: 1px solid var(--line); }
.catalog-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.catalog-head h2 { font: 700 clamp(30px, 3.2vw, 44px)/1 var(--display); letter-spacing: -.025em; }
.result-count { margin: 0; color: var(--muted); font-size: 17px; }

.catalog-bar { position: sticky; top: var(--staff-h); z-index: 15; margin: 18px calc(-1 * var(--pad)) 0; padding: 10px var(--pad) 0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar-row { display: flex; align-items: center; gap: 10px; }
.search { flex: 1; min-width: 0; max-width: 680px; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 18px; background: var(--sage); border: 1.5px solid transparent; border-radius: 999px; transition: border-color .15s, background .15s; }
.search:focus-within { border-color: var(--green); background: var(--white); }
.search svg { width: 20px; height: 20px; color: var(--green); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 16px; }
.search input::placeholder { color: #7a817d; }
.fav-btn-bar { margin-left: auto; height: 46px; }
.filter-open { display: none; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 600; flex: none; }
.filter-open svg { width: 20px; height: 20px; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--green); color: var(--white); font-size: 12px; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.cat small { margin-left: 5px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cat:hover { background: var(--sage); }
.cat[aria-pressed="true"] { background: var(--green); color: var(--white); }
.cat[aria-pressed="true"] small { color: #b9d3c5; }

.catalog-body { display: grid; grid-template-columns: 236px 1fr; gap: clamp(28px, 3.5vw, 56px); align-items: start; margin-top: 26px; }
.filters-side { position: sticky; top: calc(var(--staff-h) + var(--bar-h) + 20px); max-height: calc(100vh - var(--staff-h) - var(--bar-h) - 40px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.catalog-main { min-width: 0; }
.toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; }
.toolbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sort select { height: 44px; padding: 0 38px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1d21' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; appearance: none; font-weight: 500; }
.density { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.density button { width: 38px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: var(--muted); }
.density button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.density svg { width: 20px; height: 20px; stroke-width: 1.6; }

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font-size: 14px; font-weight: 600; }
.chip-x svg { width: 14px; height: 14px; stroke-width: 2.4; }
.chip-clear { background: none; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); font-weight: 500; }

.grid { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-flow: row dense; gap: 36px clamp(14px, 1.6vw, 24px); margin-top: 22px; }
.grid[data-density="small"] { --cols: 4; gap: 28px 14px; }
.card { position: relative; }
.card .photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--sage); }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .photo .zoom { position: absolute; inset: 0; opacity: 0; transform: scale(1.9); transition: opacity .25s; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .25s; }
@media (hover: hover) {
  .card:not(.is-sold):hover .photo .zoom, .card:not(.is-sold):hover .zoom-hint { opacity: 1; }
}
.card .label-tag { position: absolute; left: 10px; bottom: 10px; }
.card.is-sold .photo img { filter: grayscale(1); opacity: .5; }
.sold-veil { position: absolute; inset: 0; display: grid; place-items: center; }
.sold-veil span { padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 15px; }
.card.is-sold .meta h3, .card.is-sold .price { color: var(--muted); }
.save { position: absolute; top: 8px; right: 8px; z-index: 4; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); }
.save svg { width: 20px; height: 20px; }
.save[aria-pressed="true"] svg { fill: var(--green); stroke: var(--green); }
.save:active svg { transform: scale(.85); }
.meta { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding-top: 12px; }
.meta h3 { font: 500 16px/1.3 var(--ui); }
.card-open { all: unset; cursor: pointer; }
.card-open::after { content: ''; position: absolute; inset: 0; z-index: 3; }
.card-open:focus-visible::after { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
.price { margin: 0; font: 700 18px/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.old-price { margin-right: 6px; font: 500 14px/1.2 var(--ui); color: var(--muted); text-decoration-thickness: 1.5px; }
.price.is-disc { color: var(--green); }
.sub { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.sub .nr { font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid[data-density="small"] .meta h3 { font-size: 15px; }
.grid[data-density="small"] .price { font-size: 16px; }

/* narzędzia obsługi na karcie */
.staff-tools { position: absolute; top: 8px; right: 8px; z-index: 4; display: flex; gap: 6px; }
.tool { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 1px 3px rgba(30,29,33,.2); }
.tool svg { width: 19px; height: 19px; }
.tool:hover { background: var(--white); color: var(--green); }
.tool-pearl[aria-pressed="true"] { background: var(--marigold); color: var(--ink); }
.tool-pearl[aria-pressed="true"] svg { fill: currentColor; }
.tool-sold { background: var(--green); color: var(--white); }
.tool-sold:hover { background: var(--green-deep); color: var(--white); }

.tile { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 5; padding: clamp(18px, 2vw, 28px); border-radius: 3px; background: var(--green); color: var(--white); overflow: hidden; position: relative; }
.grid[data-density="small"] .tile { grid-column: span 2; aspect-ratio: auto; min-height: 200px; }
.grid[data-density="small"] .tile .hanger { width: 55%; right: -6%; bottom: 8%; }
.next-banner { margin: 0 0 18px; padding: 14px 18px; border: 1.5px dashed var(--marigold); border-radius: 12px; background: #fff8e6; font-weight: 600; }
.next-banner span { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; }
.tile .hanger { position: absolute; right: -14%; bottom: 14%; width: 100%; color: rgba(255,255,255,.14); }
.tile .hanger path { stroke-width: 9px; }
.tile h3 { font: 700 clamp(22px, 2.1vw, 30px)/1.05 var(--display); letter-spacing: -.02em; position: relative; }
.tile p { margin: 12px 0 0; color: #cfe0d6; position: relative; }
.tile .btn { align-self: flex-start; position: relative; }

.empty { grid-column: 1 / -1; padding: 56px 24px; text-align: center; background: var(--sage); border-radius: 14px; }
.empty h3 { font: 700 26px var(--display); }
.empty p { color: var(--muted); margin: 8px auto 20px; max-width: 46ch; }

.more { display: grid; justify-items: center; gap: 12px; margin-top: 52px; }
.more p { margin: 0; color: var(--muted); font-size: 15px; }
.more-bar { width: 220px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.more-bar span { display: block; height: 100%; background: var(--green); transition: width .3s; }

/* ---------- Filtry ---------- */
.f-group { padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.f-group:last-child { border-bottom: 0; }
.f-group h3 { font: 600 15px var(--ui); margin-bottom: 12px; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; padding: 3px; background: var(--sage); border-radius: 14px; }
.seg button { height: 38px; border: 0; border-radius: 11px; background: none; font-size: 14px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--green); font-weight: 700; box-shadow: 0 1px 3px rgba(30,29,33,.14); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes .label-tag { min-width: 48px; height: 40px; border: 0; cursor: pointer; box-shadow: none; background: var(--sage); color: var(--ink); outline-color: rgba(30,29,33,.25); }
.sizes .label-tag[aria-pressed="true"] { background: var(--green); color: var(--white); outline-color: rgba(255,255,255,.6); }
.sizes .label-tag:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.f-sub { margin: -4px 0 8px; font-size: 13px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 14px; font-weight: 500; }
.pill[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green-deep); font-weight: 700; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.swatch { aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(30,29,33,.18); background: var(--c); padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--green); }
.swatch:disabled { opacity: .25; }
.switches { display: grid; gap: 4px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 0; background: none; padding: 0; font: 600 15px var(--ui); min-height: 42px; text-align: left; }
.switch .track { width: 46px; height: 28px; border-radius: 999px; background: #c9cfcb; position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch[aria-pressed="true"] .track { background: var(--green); }
.switch[aria-pressed="true"] .track::after { transform: translateX(18px); }

/* ---------- Przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; transition: background .15s, color .15s; }
.btn svg { width: 20px; height: 20px; }
.btn-dark { background: var(--green); color: var(--white); }
.btn-dark:hover { background: var(--green-deep); }
.btn-light { background: var(--white); color: var(--green); }
.btn-light:hover { background: var(--green-soft); }
.btn-outline { background: var(--white); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: none; text-decoration: underline; text-underline-offset: 3px; }
.btn-danger { background: none; color: var(--danger); padding: 0 8px; }
.btn-danger:hover { text-decoration: underline; }
.btn-danger-fill { background: var(--danger); color: var(--white); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sage); flex: none; }
.icon-btn:hover { background: var(--green-soft); }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 2.1; }

/* ---------- Komis i wizyta ---------- */
.info-band { max-width: var(--max); margin: 0 auto 64px; padding: 0 var(--pad); display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.komis { display: grid; grid-template-columns: .9fr 1fr; background: var(--green); color: var(--white); border-radius: 18px; overflow: hidden; }
.komis-img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.komis-body { position: relative; padding: clamp(24px, 3vw, 44px); background: var(--green); }
.komis h2, .visit h2 { font: 700 clamp(28px, 2.8vw, 38px)/1.02 var(--display); letter-spacing: -.025em; }
.komis-body > p { color: #cfe0d6; margin: 12px 0 20px; max-width: 42ch; }
.steps { counter-reset: s; display: grid; gap: 14px; margin-bottom: 20px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; }
.steps li::before { content: counter(s); grid-row: span 2; font: 700 26px/1 var(--display); color: var(--marigold); }
.steps span { color: #cfe0d6; font-size: 15px; }
.komis-body .komis-note { margin: 0 0 6px; color: var(--white); font-weight: 600; }
.komis-body .placeholder { color: #a9c6b6; font-size: 14px; margin: 0; }
.visit { background: var(--sage); border-radius: 18px; padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; align-items: flex-start; }
.open-now { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; font-weight: 600; }
.open-now i { width: 9px; height: 9px; border-radius: 50%; background: #9aa29d; }
.open-now.is-open i { background: #2f9e5e; box-shadow: 0 0 0 3px rgba(47,158,94,.2); }
.visit dl { margin: 18px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.visit dt { font-size: 14px; color: var(--muted); }
.visit dd { margin: 2px 0 0; font-weight: 500; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 6px 0; border-bottom: 1px solid #dfe4e0; font-weight: 400; text-align: left; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--green); }
.visit .btn { margin-top: auto; }

.site-footer { border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 40px; display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0 auto 0 0; }
.company { font-style: normal; line-height: 1.55; }
.company b { color: var(--ink); font-weight: 600; }
.staff-link { border: 0; background: none; padding: 6px 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Okna ---------- */
dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(20, 30, 25, .55); backdrop-filter: blur(4px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px 22px; }
.sheet-head h2 { font: 700 24px var(--display); }
.sheet-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.drawer-note { margin: 0 22px 12px; color: var(--muted); font-size: 14px; }

.product { width: min(1180px, calc(100vw - 48px)); height: min(860px, calc(100vh - 48px)); max-width: none; max-height: none; border-radius: 16px; background: var(--white); overflow: hidden; }
.product[open] { display: grid; grid-template-rows: auto 1fr; animation: rise .22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.product-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--line); }
.product-pos { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.product-nav { display: flex; gap: 8px; }
.product-body { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 0; }
.gallery { display: grid; grid-template-rows: 1fr auto; gap: 12px; padding: 16px; min-height: 0; background: var(--sage); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; min-height: 0; border-radius: 4px; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; overflow: hidden; position: relative; background: var(--white); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; }
.thumbs:empty { display: none; }
.thumbs button { width: 64px; aspect-ratio: 4 / 5; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { overflow-y: auto; padding: 28px clamp(20px, 3vw, 40px) 32px; }
.p-cat { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.product-info h2 { font: 700 clamp(28px, 3vw, 40px)/1.02 var(--display); letter-spacing: -.025em; }
.p-brand { margin: 8px 0 0; font-size: 17px; }
.p-price { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 0; font: 750 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.p-price.is-disc { color: var(--green); }
.p-price .old-price { font-size: 20px; margin-right: 2px; }
.p-lowest { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.p-facts { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: center; margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.p-facts b { display: block; }
.p-facts div span { color: var(--muted); font-size: 14px; }
.p-nr { display: grid; place-items: center; min-width: 64px; height: 52px; padding: 0 10px; border-radius: 3px; background: var(--ink); color: var(--white); font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.p-until { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.p-actions .btn { flex: 1 1 auto; white-space: nowrap; }
.save-toggle[aria-pressed="true"] svg { fill: currentColor; }
.p-staff { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--ink); color: var(--white); }
.p-staff b { width: 100%; font-size: 14px; color: #c9ccca; font-weight: 600; }
.p-similar { margin-top: 34px; }
.p-similar h3 { font: 600 16px var(--ui); margin-bottom: 10px; }
.p-similar ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.p-similar button { all: unset; cursor: pointer; display: block; width: 100%; }
.p-similar button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.p-similar img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; background: var(--sage); }
.p-similar span { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; }

.sheet { width: min(560px, 100vw); max-width: none; max-height: 88dvh; margin: auto auto 0; border-radius: 18px 18px 0 0; background: var(--white); }
.sheet[open] { display: grid; grid-template-rows: auto 1fr auto; animation: up .25s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-body { overflow-y: auto; padding: 8px 20px 4px; }
.sheet-foot .btn-dark { flex: 1; }

.drawer { width: min(440px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; border-radius: 18px 0 0 18px; background: var(--white); }
.drawer[open] { display: grid; grid-template-rows: auto auto 1fr; animation: slide-in .25s ease-out; }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.fav-list { overflow-y: auto; padding: 0 16px 24px; display: grid; gap: 10px; align-content: start; }
.fav-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: 12px; position: relative; }
.fav-item:hover { background: var(--sage); }
.fav-thumb { width: 72px; aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; background: var(--sage); display: grid; place-items: center; color: #aab3ad; }
.fav-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fav-thumb .hanger { width: 80%; }
.fav-thumb .hanger path { stroke-width: 3px; }
.fav-item b { display: block; font-weight: 600; line-height: 1.3; }
.fav-item small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.fav-state { display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--sage); color: var(--muted); }
.fav-item.is-gone .fav-thumb img { filter: grayscale(1); opacity: .5; }
.fav-item.is-gone b { color: var(--muted); }
.fav-open { all: unset; cursor: pointer; }
.fav-open::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.fav-open:focus-visible::after { outline: 2px solid var(--green); border-radius: 12px; }
.fav-item .icon-btn { position: relative; z-index: 2; width: 38px; height: 38px; background: none; }
.fav-empty { padding: 32px 8px; text-align: center; color: var(--muted); }

.confirm { width: min(420px, calc(100vw - 32px)); border-radius: 18px; background: var(--white); }
.confirm[open] { animation: rise .18s ease-out; }
.confirm form { padding: 24px; }
.confirm h2 { font: 700 26px/1.1 var(--display); letter-spacing: -.02em; }
.confirm p { color: var(--muted); margin: 8px 0 0; }
.confirm-item { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.confirm-item:empty { display: none; }
.confirm-item img { width: 64px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.confirm-item b { display: block; }
.confirm-item small { color: var(--muted); }
.confirm-actions { display: flex; gap: 10px; margin-top: 22px; }
.confirm-actions .btn { flex: 1; }

.archive { width: min(760px, calc(100vw - 32px)); max-height: min(820px, calc(100dvh - 32px)); border-radius: 18px; background: var(--white); }
.archive[open] { display: grid; grid-template-rows: auto auto 1fr auto; }
.archive-list { overflow-y: auto; padding: 0 16px 16px; display: grid; gap: 6px; align-content: start; }
.arch-item { display: grid; grid-template-columns: auto 56px 1fr auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: 12px; }
.arch-item:hover { background: var(--sage); }
.arch-item input { width: 20px; height: 20px; accent-color: var(--green); }
.arch-item img { width: 56px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.arch-item b { display: block; line-height: 1.3; }
.arch-item small { color: var(--muted); font-size: 14px; }
.arch-item .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

.item-form { width: min(760px, 100vw); max-height: min(940px, 100dvh); border-radius: 18px; background: var(--white); }
.item-form[open] { animation: rise .2s ease-out; }
.item-form form { display: grid; grid-template-rows: auto 1fr auto; max-height: min(940px, 100dvh); }
.form-body { overflow-y: auto; padding: 4px 22px 20px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.flabel { font-weight: 600; font-size: 15px; }
.flabel em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input[type="text"], .field input[type="number"], .field select { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); font-size: 16px; }
.field input:focus, .field select:focus { border-color: var(--green); outline: 0; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.err { margin: 0; color: var(--danger); font-size: 14px; }
.err:empty { display: none; }
.photo-row { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-slot { position: relative; width: 104px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--sage); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .icon-btn { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; background: rgba(255,255,255,.95); }
.photo-slot .icon-btn svg { width: 16px; height: 16px; }
.photo-slot span { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 11.5px; font-weight: 600; }
.photo-add { width: 104px; aspect-ratio: 4 / 5; display: grid; place-content: center; justify-items: center; gap: 6px; border: 1.5px dashed #9aa29d; border-radius: 6px; background: none; color: var(--green); font-size: 13px; font-weight: 600; text-align: center; padding: 6px; }
.photo-add svg { width: 26px; height: 26px; }
.photo-add.is-main { border-color: var(--green); background: var(--green-soft); }
.fseg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; background: var(--sage); border-radius: 12px; }
.fseg button { height: 42px; border: 0; border-radius: 9px; background: none; font-size: 14px; font-weight: 500; }
.fseg button[aria-pressed="true"] { background: var(--white); color: var(--green); font-weight: 700; box-shadow: 0 1px 3px rgba(30,29,33,.14); }
.fsizes { display: flex; flex-wrap: wrap; gap: 6px; }
.fsizes .label-tag { min-width: 46px; height: 40px; border: 0; box-shadow: none; background: var(--sage); color: var(--ink); outline-color: rgba(30,29,33,.25); cursor: pointer; }
.fsizes .label-tag[aria-pressed="true"] { background: var(--green); color: var(--white); outline-color: rgba(255,255,255,.6); }
.field input.size-other { max-width: 280px; height: 42px; }
.fcolors { display: flex; flex-wrap: wrap; gap: 8px; }
.fcolors .swatch { width: 38px; height: 38px; }
.price-input { display: flex; align-items: center; gap: 8px; }
.price-input input { max-width: 160px; }
.ptype { gap: 6px; }
.ptype label { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.ptype input { width: 18px; height: 18px; accent-color: var(--green); }
.ptype em { font-style: normal; color: var(--muted); }
.form-foot { flex-wrap: wrap; }
.form-dest { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--green-soft); color: var(--green-deep); font-weight: 600; }
.form-dest.is-next { background: #fff4d9; color: #6b4d00; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 16px; background: var(--ink); color: var(--white); font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,.2); }

body.is-staff .proto-note { display: none; }

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
  .catalog-body { grid-template-columns: 1fr; }
  .filters-side { display: none; }
  .filter-open { display: inline-flex; }
  .info-band { grid-template-columns: 1fr; }
  .rail li { width: calc((100vw - 2 * var(--pad) - 2 * var(--rail-gap)) / 3); }
}
@media (max-width: 900px) {
  .logo { --h: 104px; }
  .cycle { grid-template-columns: 1fr; }
  .cycle-side { justify-items: start; text-align: left; }
  .grid { --cols: 2; }
  .grid[data-density="small"] { --cols: 3; }
  .komis { grid-template-columns: 1fr; }
  /* Telefon: stałe proporcje zamiast height:100% — Safari/Chrome na iPhonie różnie liczą procenty w siatce. */
  .komis-img { height: auto; min-height: 0; aspect-ratio: 16 / 7; display: block; }
  .product-body { grid-template-columns: 1fr; overflow-y: auto; }
  .gallery { min-height: auto; }
  .slide { aspect-ratio: 4 / 5; max-height: 72vh; }
  .product-info { overflow: visible; }
}
@media (max-width: 680px) {
  .proto-note { font-size: 12px; }
  .header-row { padding-top: 6px; padding-bottom: 6px; }
  .logo { --h: 84px; }
  .header-links { gap: 0; }
  .header-links a, .fav-label { display: none; }
  .fav-btn { padding: 0 13px; }
  .cycle-wrap { padding: 0; }
  .cycle { border-radius: 0; gap: 18px; }
  .cycle-count b { font-size: 76px; }
  .cycle-sub { font-size: 16px; }
  .pearls-head { align-items: flex-start; }
  .rail-controls { display: none; }
  .rail li { width: 70vw; max-width: 300px; }
  .catalog-bar { padding-top: 8px; }
  .search { height: 46px; padding: 0 14px; }
  .filter-open { padding: 0 12px; }
  .filter-open span:not(.badge) { display: none; }
  .fav-btn-bar { margin-left: 0; padding: 0 12px; }
  .cats { padding: 8px 0; }
  .cat { height: 36px; font-size: 14px; padding: 0 12px; }
  .toolbar { flex-direction: column-reverse; }
  .toolbar-right { width: 100%; }
  .sort { flex: 1; }
  .sort select { width: 100%; }
  .grid { --cols: 1; gap: 32px; }
  .grid[data-density="small"] { --cols: 2; gap: 26px 12px; }
  .grid[data-density="small"] .meta { grid-template-columns: 1fr; }
  .grid[data-density="small"] .meta h3 { font-size: 14px; }
  .grid[data-density="small"] .price { font-size: 16px; text-align: left; margin-top: 4px; }
  .grid[data-density="small"] .old-price { font-size: 13px; }
  .grid[data-density="small"] .sub { font-size: 13px; }
  .grid[data-density="small"] .label-tag { min-width: 34px; height: 26px; font-size: 13px; left: 8px; bottom: 8px; }
  .grid[data-density="small"] .flag { font-size: 12px; padding: 4px 8px; left: 8px; top: 8px; }
  .grid[data-density="small"] .flag svg { display: none; }
  .grid[data-density="small"] .tile h3 { font-size: 19px; }
  .grid[data-density="small"] .tile .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .grid[data-density="small"] .staff-tools { top: 6px; right: 6px; gap: 4px; flex-direction: column; }
  .grid[data-density="small"] .tool { width: 34px; height: 34px; }
  .info-band { padding: 0; gap: 0; }
  .komis, .visit { border-radius: 0; }
  .visit dl { grid-template-columns: 1fr; }
  .site-footer { flex-wrap: wrap; }
  .site-footer p { flex-basis: 100%; }
  .product { width: 100vw; height: 100dvh; border-radius: 0; }
  .product-top { padding: 8px 10px 8px 16px; }
  .gallery { padding: 0; gap: 8px; background: var(--white); }
  .slides { border-radius: 0; }
  .slide { max-height: none; }
  .thumbs { padding: 0 16px; }
  .product-info { padding: 20px 16px 0; }
  .p-actions { position: sticky; bottom: 0; margin: 22px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); z-index: 2; flex-wrap: nowrap; }
  .p-actions .btn { flex: 1 1 0; padding: 0 12px; font-size: 15px; white-space: normal; line-height: 1.2; }
  .p-similar { padding-bottom: 24px; }
  .p-similar ul { grid-template-columns: repeat(2, 1fr); }
  .drawer { border-radius: 0; }
  .archive, .item-form { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .item-form form { max-height: 100dvh; height: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .arch-item { grid-template-columns: auto 48px 1fr; }
  .arch-item .btn { grid-column: 2 / -1; justify-self: start; }
}

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

/* ---------- Menu „Więcej” w pasku obsługi ---------- */
.staff-more { position: relative; }
.staff-more .sbtn svg { width: 16px; height: 16px; transition: transform .15s; }
.staff-more .sbtn[aria-expanded="true"] { background: var(--white); border-color: var(--white); color: var(--ink); }
.staff-more .sbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.staff-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 280px; padding: 6px; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 12px 40px rgba(20, 30, 25, .25); }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font: 600 15px var(--ui); text-align: left; white-space: nowrap; }
.menu-item:hover:not(:disabled) { background: var(--sage); }
.menu-item:disabled { opacity: .4; }
.menu-item span { min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--sage); font-size: 12px; }
.menu-date { cursor: default; }
.menu-date input { height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.menu-muted { color: var(--muted); font-weight: 500; }
.staff-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
.staff-menu :focus-visible { outline-color: var(--green); }

/* ---------- v5: krótkie etykiety i zwarte elementy na telefonie ---------- */
.lbl-short, .st-short { display: none; }
@media (max-width: 680px) {
  .lbl-long, .st-long { display: none; }
  .lbl-short, .st-short { display: inline; }

  /* Pasek obsługi w jednym wierszu */
  .staff-inner { flex-wrap: nowrap; gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .staff-label { margin-right: 0; gap: 6px; font-size: 14px; }
  .sbtn { height: 36px; padding: 0 11px; font-size: 13.5px; }
  .sbtn svg { width: 16px; height: 16px; }
  .staff-spacer { display: none; }
  .staff-more { margin-left: auto; }
  .staff-menu { position: fixed; left: 8px; right: 8px; top: calc(var(--staff-h) + 4px); min-width: 0; }

  /* Zielony pasek: liczba dni i godziny w jednym wierszu, mniej tła */
  .cycle { gap: 14px; padding: 20px 16px 18px; }
  .cycle-sub { margin-top: 8px; }
  .cycle-side { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .cycle-count { align-items: center; gap: 8px; }
  .cycle-count b { font-size: 56px; }
  .cycle-count span { font-size: 15px; }
  .open-pill { padding: 7px 12px; font-size: 14px; white-space: nowrap; }
}

/* ---------- v6: zawieszka z zapowiedzią i pusty drążek ---------- */
/* Żółta metka z dziurką, w kształcie zawieszki cenowej */
.cycle-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 7px 16px 7px 22px; background: var(--marigold); color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.25; clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); border-radius: 0 6px 6px 0; }
.cycle-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }

.empty-rail { grid-column: 1 / -1; padding: 8px 16px 40px; text-align: center; }
.empty-bar { position: relative; display: flex; justify-content: center; gap: clamp(14px, 3vw, 40px); max-width: 760px; margin: 0 auto 30px; }
.empty-hanger { position: relative; width: clamp(92px, 14vw, 132px); }
.empty-hanger .rail-seg path { stroke-width: 5px; }
.empty-hanger .hanger path { stroke-width: 4.5px; }
.empty-swing { display: block; transform-origin: 50% 8%; }
.empty-swing.is-entering { animation: swing 1.7s var(--ease-swing) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.empty-swing:not(.is-entering):hover { animation: sway 1.9s cubic-bezier(.25, .8, .35, 1); }
.empty-swing .hanger { margin: 0; }
.empty-rail h3 { font: 750 clamp(30px, 3.4vw, 46px)/1 var(--display); letter-spacing: -.03em; color: var(--green); }
.empty-rail p { max-width: 46ch; margin: 12px auto 22px; color: var(--muted); font-size: 17px; }
@media (max-width: 680px) {
  .cycle-tag { margin-bottom: 12px; font-size: 14.5px; }
  .empty-hanger:nth-child(n + 4) { display: none; }
  .empty-rail h3 { font-size: 30px; }
}

/* ---------- v7: logowanie i role ---------- */
body:not(.is-owner) .owner-only { display: none !important; }
.login form { display: grid; gap: 14px; }
.login form > p:not(.err) { margin: -6px 0 4px; }
.login .field input { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); font-size: 16px; }
.login .field input:focus { border-color: var(--green); outline: 0; }
.login .confirm-actions { margin-top: 6px; }
.loading { grid-column: 1 / -1; padding: 48px 16px; text-align: center; color: var(--muted); }

/* ---------- v8: statystyki sprzedaży (właściciel) ---------- */
.sales { width: min(860px, calc(100vw - 32px)); }
.sales[open] { grid-template-rows: auto 1fr auto; }
.sales-body { overflow-y: auto; padding: 4px 20px 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { padding: 14px 16px; border-radius: 12px; background: var(--sage); }
.stat span { display: block; color: var(--muted); font-size: 14px; }
.stat b { display: block; margin-top: 6px; font: 750 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.stat small { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.stat.is-main { background: var(--green); color: var(--white); }
.stat.is-main span { color: #cfe0d6; }
.stat.is-main small { color: var(--marigold); }
.sales-h { font: 600 16px var(--ui); margin: 22px 0 8px; }
.sales-collections, .sales-list { display: grid; gap: 2px; }
.sales-collections li, .sales-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 9px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.sales-collections li:nth-child(odd), .sales-list li:nth-child(odd) { background: var(--sage); }
.sales-list li { grid-template-columns: auto 1fr auto auto; }
.sales-list time { color: var(--muted); font-size: 14px; white-space: nowrap; }
.sales-list small { display: block; color: var(--muted); font-size: 13px; }
.sales-list .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.sales-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sales-filter select, .sales-filter input { height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); font-size: 15px; }
.sales-range { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.sales-sum { margin: 12px 0 8px; font-weight: 600; }
.sales-empty { padding: 12px 10px; color: var(--muted); }
@media (max-width: 680px) {
  .sales { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .sales-list li { grid-template-columns: 1fr auto; }
  .sales-list time { grid-column: 1 / -1; }
}

/* ---------- v10: konta obsługi (właściciel) ---------- */
.acc-list { display: grid; gap: 6px; }
.acc-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--sage); }
.acc-list b { display: block; word-break: break-all; }
.acc-list small { color: var(--muted); font-size: 13px; }
.acc-role { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font-size: 12px; font-weight: 700; }
.acc-role.is-none { background: #fff1d6; color: #6b4d00; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.acc-actions .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.acc-form { display: grid; gap: 12px; max-width: 420px; }
.acc-form .field input { width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); font-size: 16px; }
.acc-form .btn { justify-self: start; }
.acc-note { margin: 14px 0 0; }
@media (max-width: 680px) { .acc-list li { grid-template-columns: 1fr; } .acc-actions { justify-content: flex-start; } }

/* ---------- v11: polityka prywatności i link w stopce ---------- */
.policy { max-width: 72ch; margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--pad) 64px; }
.policy h1 { font: 750 clamp(32px, 4vw, 48px)/1 var(--display); letter-spacing: -.03em; color: var(--green); }
.policy-date { margin: 10px 0 28px; color: var(--muted); }
.policy h2 { margin: 30px 0 8px; font: 700 22px/1.2 var(--display); }
.policy p { margin: 0 0 12px; line-height: 1.65; }
.policy a { color: var(--green); }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-links a { color: var(--muted); font-size: 13px; text-underline-offset: 3px; }
@media (max-width: 680px) { .footer-links { align-items: flex-start; } }
@media (max-width: 680px) { .header-links a.policy-back { display: inline; font-size: 15px; } }
