/* ═══════════════════════════════════════════════════════════════════
   Przelicznik walut i ceny w Wietnamie — strona /currency (js/currency.js).
   Najpierw telefon: z niego się przelicza, stojąc przy straganie.
   Kolory z tokenów motywu (--hub-*), więc tryb ciemny przychodzi sam.

   Telefon: krótki nagłówek, przyklejone zakładki Przelicznik | Ceny,
   przelicznik na jednym ekranie, ceny w zwartych wierszach (~60 px)
   z przyklejonym paskiem filtrów. Od 900 px: oba panele obok siebie,
   przelicznik przyklejony z lewej, bez zakładek.
   ═══════════════════════════════════════════════════════════════════ */

/* styles.css daje body overflow-x: hidden — przy html też „hidden" body staje się
   własnym kontenerem przewijania, który nigdy się nie przewija, i position: sticky
   (zakładki, pasek filtrów) nie trzyma się niczego. „clip" przycina tak samo,
   ale kontenera przewijania nie tworzy. */
body { overflow-x: clip; overflow-y: visible; }

.cur-strona { padding: 0.75rem 0 6rem; background: var(--hub-bg); color: var(--hub-ink); min-height: 100vh; }
.cur-strona .container { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.cur-glowa h1 { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.25; }
.cur-glowa { position: relative; padding-right: 4.5rem; }
.cur-sos {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    display: inline-grid; place-items: center; min-width: 3.6rem; height: 2.2rem; padding: 0 0.75rem; border-radius: 999px;
    background: #dc2626; color: #fff; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; text-decoration: none;
}
@media (min-width: 900px) { .cur-sos { top: 0.4rem; transform: none; } }
/* Opis zostaje w DOM (wyszukiwarki, czytniki), ale na telefonie zabierał 70 px nad przelicznikiem. */
.cur-glowa p { display: none; }

/* ── Zakładki (telefon) ──────────────────────────────────────────── */
.cur-zakladki {
    position: sticky; top: var(--navbar-h, 0px); z-index: 30;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    margin: 0.6rem -1rem 0; padding: 0.5rem 1rem;
    background: var(--hub-bg);
}
.cur-zakladki button {
    height: 2.5rem; border: 1px solid var(--hub-hairline); border-radius: 12px; background: var(--hub-elev);
    color: var(--hub-ink-muted); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer;
}
.cur-zakladki button[aria-selected="true"] { background: var(--hub-ink); border-color: var(--hub-ink); color: var(--hub-bg); }
.cur-strona[data-zakladka="przelicznik"] .cur-panel-ceny,
.cur-strona[data-zakladka="ceny"] .cur-panel-przelicznik { display: none; }
.cur-panel-tytul { display: none; margin: 0 0 0.85rem; font-size: 1.1rem; }

/* ── Przelicznik ─────────────────────────────────────────────────── */
.cur-panel-przelicznik { padding-top: 0.35rem; }
.cur-kalk {
    position: relative; display: grid; gap: 6px;
    padding: 6px; border-radius: 20px; background: var(--hub-elev); border: 1px solid var(--hub-hairline);
}
.cur-wiersz {
    position: relative; display: flex; align-items: center; gap: 0.75rem; min-width: 0;
    height: 4.25rem; padding: 0 1rem 0 0.6rem; border-radius: 15px;
    background: var(--hub-bg); border: 1.5px solid transparent; cursor: text;
}
.cur-wiersz:focus-within { border-color: var(--hub-accent); box-shadow: 0 0 0 3px rgb(var(--hub-accent-rgb) / 0.16); }
.cur-wiersz input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--hub-ink);
    font: inherit; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; text-align: right;
    font-variant-numeric: tabular-nums;
}
.cur-wiersz input::placeholder { color: var(--hub-ink-muted); opacity: 0.45; }
.cur-znak {
    flex: none; display: grid; place-items: center; align-content: center; width: 3.4rem; height: 3rem;
    border-radius: 11px; background: rgb(var(--hub-ink-rgb) / 0.06); line-height: 1;
}
.cur-znak b { font-size: 1.15rem; }
.cur-znak small { margin-top: 2px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; color: var(--hub-ink-muted); }
.cur-znak-wybor { position: relative; cursor: pointer; }
.cur-znak-wybor select {
    appearance: none; -webkit-appearance: none; width: 100%; height: 100%; padding: 0 0.9rem 0 0.4rem;
    border: 0; border-radius: inherit; background: transparent; color: var(--hub-ink);
    font: inherit; font-size: 0.95rem; font-weight: 800; text-align: center; cursor: pointer;
}
.cur-znak-wybor::after {
    content: ''; position: absolute; right: 0.45rem; top: 50%; width: 5px; height: 5px; margin-top: -4px;
    border: solid var(--hub-ink-muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none;
}
/* Pełna postać wpisanego „150k" — pod kwotą, nie zabiera wysokości. */
.cur-pelna {
    position: absolute; right: 1rem; bottom: 0.3rem; font-size: 0.7rem; font-weight: 600;
    color: var(--hub-ink-muted); pointer-events: none;
}
.cur-zamien {
    position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
    border: 3px solid var(--hub-elev); background: var(--hub-ink); color: var(--hub-bg); cursor: pointer;
}
.cur-zamien svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.cur-kursbar { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin: 0.65rem 0 0; }
.cur-kurs { margin: 0; min-width: 0; font-size: 0.85rem; color: var(--hub-ink-muted); line-height: 1.35; }
.cur-kurs b { color: var(--hub-ink); font-variant-numeric: tabular-nums; }
.cur-offline {
    display: inline-block; margin-top: 0.15rem; padding: 0.05rem 0.45rem; border-radius: 999px;
    background: rgb(217 119 6 / 0.14); color: #b45309; font-size: 0.72rem; font-style: normal; font-weight: 600;
}
.cur-tryb { flex: none; display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--hub-hairline); background: var(--hub-elev); }
.cur-tryb button {
    min-height: 2rem; padding: 0 0.75rem; border: 0; border-radius: 999px; background: transparent; color: var(--hub-ink-muted);
    font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.cur-tryb button[aria-pressed="true"] { background: var(--hub-accent); color: var(--hub-on-accent, #10200f); }

/* Ściągawka banknotów: dotknięcie wpisuje kwotę; pod nominałem od razu przeliczenie. */
.cur-sciag-tytul {
    margin: 1.1rem 0 0.45rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--hub-ink-muted);
}
.cur-sciagawka { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cur-sciagawka button {
    position: relative; display: grid; gap: 1px; justify-items: start; min-width: 0;
    padding: 0.5rem 0.6rem 0.45rem 0.85rem; border-radius: 11px; overflow: hidden;
    border: 1px solid var(--hub-hairline); background: var(--hub-elev); color: var(--hub-ink);
    font: inherit; text-align: left; cursor: pointer;
}
.cur-sciagawka button::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--banknot); }
.cur-sciagawka button b { font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cur-sciagawka button small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; font-weight: 600; color: var(--hub-ink-muted); }
.cur-sciagawka button[aria-pressed="true"] { border-color: var(--banknot); background: color-mix(in srgb, var(--banknot) 12%, var(--hub-elev)); }
/* Wejście do arkusza banknotów — w miejscu dawnej uwagi o niebieskich 20k i 500k. */
.cur-poznaj {
    display: flex; align-items: center; gap: 0.75rem; width: 100%; margin-top: 6px; padding: 0.6rem 0.75rem;
    border-radius: 12px; border: 1px solid var(--hub-hairline); background: var(--hub-elev);
    color: var(--hub-ink); font: inherit; text-align: left; cursor: pointer;
}
.cur-poznaj > span:nth-child(2) { display: grid; gap: 1px; flex: 1; min-width: 0; }
.cur-poznaj b { font-size: 0.88rem; }
.cur-poznaj small { font-size: 0.74rem; color: var(--hub-ink-muted); line-height: 1.35; }
.cur-poznaj > svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--hub-ink-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cur-poznaj-mini { position: relative; flex: none; width: 2.6rem; height: 1.9rem; }
.cur-poznaj-mini i { position: absolute; width: 2.1rem; height: 1rem; border-radius: 3px; background: var(--banknot); box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); }
.cur-poznaj-mini i:first-child { left: 0; top: 0.15rem; transform: rotate(-8deg); }
.cur-poznaj-mini i:last-child { right: 0; bottom: 0.1rem; width: 2.35rem; transform: rotate(6deg); }

.cur-szczegoly { margin-top: 0.75rem; border-top: 1px solid var(--hub-hairline); }
.cur-szczegoly summary {
    display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem;
    font-size: 0.84rem; font-weight: 700; color: var(--hub-ink-muted); cursor: pointer; list-style: none;
}
.cur-szczegoly summary::-webkit-details-marker { display: none; }
.cur-szczegoly summary::after { content: '+'; font-size: 1.1rem; font-weight: 500; }
.cur-szczegoly[open] summary::after { content: '−'; }
.cur-szczegoly p { margin: 0 0 0.55rem; font-size: 0.8rem; line-height: 1.5; color: var(--hub-ink-muted); }

/* ── „Czy to uczciwa cena?" ──────────────────────────────────────── */
.cur-sprawdz {
    display: flex; align-items: center; gap: 0.65rem; width: 100%; margin-top: 6px; padding: 0.6rem 0.75rem;
    border: 0; border-radius: 12px; background: var(--hub-ink); color: var(--hub-bg);
    font: inherit; text-align: left; cursor: pointer;
}
.cur-sprawdz[hidden] { display: none; }
.cur-sprawdz > span { display: grid; gap: 1px; flex: 1; min-width: 0; }
.cur-sprawdz b { font-size: 0.9rem; }
.cur-sprawdz small { font-size: 0.74rem; opacity: 0.75; }
.cur-sprawdz svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cur-sprawdz svg:last-child { width: 16px; height: 16px; opacity: 0.7; }

.cur-oferta-info {
    display: flex; align-items: center; gap: 0.6rem; margin: 0.75rem 0 0; padding: 0.55rem 0.5rem 0.55rem 0.85rem;
    border-radius: 12px; background: var(--hub-ink); color: var(--hub-bg);
}
.cur-oferta-info[hidden] { display: none; }
.cur-oferta-info > span { flex: 1; min-width: 0; font-size: 0.82rem; line-height: 1.35; }
.cur-oferta-info b { margin-left: 0.25rem; font-variant-numeric: tabular-nums; }
.cur-oferta-info small { display: block; font-size: 0.74rem; opacity: 0.75; }
.cur-oferta-info button {
    flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%;
    background: rgb(255 255 255 / 0.14); color: inherit; cursor: pointer;
}
.cur-oferta-info svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Ocena w wierszu: kolor mówi więcej niż słowo, ale słowo zostaje (daltoniści, czytniki).
   Domyślny motyw strony jest ciemny (theme.css), więc jaśniejsze odcienie są bazą,
   a ciemniejsze wchodzą tylko w jasnym. */
:root { --cur-ok: #4ade80; --cur-tanio: #93c5fd; --cur-drozej: #fbbf24; --cur-drogo: #fb923c; --cur-bardzo: #f87171; }
:root[data-theme="light"] { --cur-ok: #15803d; --cur-tanio: #1d4ed8; --cur-drozej: #b45309; --cur-drogo: #c2410c; --cur-bardzo: #b91c1c; }
@media (prefers-color-scheme: light) {
    :root[data-theme="auto"] { --cur-ok: #15803d; --cur-tanio: #1d4ed8; --cur-drozej: #b45309; --cur-drogo: #c2410c; --cur-bardzo: #b91c1c; }
}
.cur-chip { padding: 0.1rem 0.45rem; border-radius: 999px; font-size: 0.72rem !important; font-weight: 700 !important;
    color: var(--cur-kolor) !important; background: color-mix(in srgb, var(--cur-kolor) 15%, transparent); }
:is(.cur-chip, .cur-werdykt).is-ok { --cur-kolor: var(--cur-ok); }
:is(.cur-chip, .cur-werdykt).is-tanio { --cur-kolor: var(--cur-tanio); }
:is(.cur-chip, .cur-werdykt).is-drozej { --cur-kolor: var(--cur-drozej); }
:is(.cur-chip, .cur-werdykt).is-drogo { --cur-kolor: var(--cur-drogo); }
:is(.cur-chip, .cur-werdykt).is-bardzo { --cur-kolor: var(--cur-bardzo); }

.cur-ocena { margin: 0.4rem 0 0.75rem; padding: 0.75rem; border-radius: 12px; background: var(--hub-bg); border: 1px solid var(--hub-hairline); }
.cur-ocena-pole { display: flex; align-items: center; gap: 0.6rem; }
.cur-ocena-pole span { flex: 1; font-size: 0.86rem; font-weight: 700; color: var(--hub-ink); }
.cur-ocena-pole input {
    width: 8.5rem; height: 2.6rem; padding: 0 0.7rem; border-radius: 10px; border: 1.5px solid var(--hub-hairline);
    background: var(--hub-elev); color: var(--hub-ink); font: inherit; font-size: 1.05rem; font-weight: 800;
    text-align: right; font-variant-numeric: tabular-nums;
}
.cur-ocena-pole input:focus { outline: 0; border-color: var(--hub-accent); }
.cur-werdykt-box > p { margin: 0.6rem 0 0 !important; }
.cur-werdykt { color: var(--hub-ink) !important; }
.cur-werdykt b { margin-right: 0.25rem; }
.cur-werdykt b { color: var(--cur-kolor); }
.cur-werdykt small { color: var(--hub-ink-muted); }
.cur-para { padding: 0.45rem 0.6rem; border-radius: 8px; background: color-mix(in srgb, var(--cur-ok) 12%, transparent); color: var(--hub-ink) !important; font-size: 0.8rem !important; }
.cur-werdykt-pusto { font-size: 0.8rem !important; }
/* Zdanie do pokazania sprzedawcy — duże, czytelne z odległości ręki. */
.cur-fraza { display: grid; gap: 0.15rem; margin-top: 0.6rem; padding: 0.7rem 0.8rem; border-radius: 12px; background: var(--hub-elev); border: 1px solid var(--hub-hairline); }
.cur-fraza small { font-size: 0.72rem; color: var(--hub-ink-muted); }
.cur-fraza b { font-size: 1.4rem; line-height: 1.25; color: var(--hub-ink); }
.cur-fraza span { font-size: 0.8rem; color: var(--hub-ink-muted); }
.cur-fraza a { margin-top: 0.3rem; font-size: 0.8rem; font-weight: 700; color: var(--hub-accent-strong, var(--hub-accent)); text-decoration: none; }
.cur-targ { font-size: 0.78rem !important; }

/* ── Arkusz „Jak wyglądają banknoty" ───────────────────────────────
   Telefon: arkusz od dołu na 92% wysokości; szeroki ekran: okno na środku. */
html.cur-bez-przewijania { overflow: hidden; }
.cur-arkusz {
    width: 100%; max-width: 100%; height: 92dvh; max-height: 92dvh; margin: auto 0 0; padding: 0;
    border: 0; border-radius: 20px 20px 0 0; background: var(--hub-bg); color: var(--hub-ink);
    box-shadow: 0 -8px 40px rgb(0 0 0 / 0.25); overflow: hidden;
}
.cur-arkusz[open] { display: flex; flex-direction: column; animation: cur-wjazd 0.22s ease-out; }
.cur-arkusz::backdrop { background: rgb(0 0 0 / 0.45); }
@keyframes cur-wjazd { from { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cur-arkusz[open] { animation: none; } }
.cur-arkusz-glowa {
    flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.9rem 0.75rem 0.7rem 1rem; border-bottom: 1px solid var(--hub-hairline);
}
.cur-arkusz-glowa h2 { margin: 0; font-size: 1.1rem; }
.cur-arkusz-zamknij {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%;
    background: rgb(var(--hub-ink-rgb) / 0.07); color: var(--hub-ink); cursor: pointer;
}
.cur-arkusz-zamknij svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cur-arkusz-tresc { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0.9rem 1rem 2rem; }
.cur-arkusz-lead { margin: 0 0 1rem; font-size: 0.88rem; line-height: 1.5; color: var(--hub-ink-muted); }
.cur-arkusz-h, .cur-bn-porownanie h3, .cur-bn-rady h3 {
    margin: 0 0 0.6rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hub-ink-muted);
}
.cur-arkusz a { color: var(--hub-accent-strong, var(--hub-accent)); font-weight: 700; text-decoration: none; }

/* Schemat banknotu. Szerokość to długość względem 500k (--dl), wysokość z proporcji. */
.cur-bn {
    position: relative; width: var(--dl, 100%); margin: 0; overflow: hidden; border-radius: 6px;
    background:
        radial-gradient(120% 90% at 85% 40%, rgb(255 255 255 / 0.22), transparent 60%),
        repeating-linear-gradient(115deg, rgb(255 255 255 / 0.06) 0 2px, transparent 2px 7px),
        var(--banknot);
    color: #fff; text-align: left; box-shadow: 0 1px 2px rgb(0 0 0 / 0.18), 0 4px 12px rgb(0 0 0 / 0.08);
    container-type: inline-size;
}
.cur-bn.is-foto { background: rgb(var(--hub-ink-rgb) / 0.06); }
.cur-bn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cur-bn-okno {
    position: absolute; top: 12%; left: 5%; width: 13%; height: 38%; border-radius: 4px;
    background: color-mix(in srgb, var(--hub-bg) 80%, transparent); border: 1px solid rgb(255 255 255 / 0.55);
}
.cur-bn.is-tyl .cur-bn-okno { left: auto; right: 5%; }
.cur-bn-nom {
    position: absolute; left: 5%; bottom: 9%; font-size: 13cqi; font-weight: 800; line-height: 1;
    letter-spacing: -0.02em; text-shadow: 0 1px 2px rgb(0 0 0 / 0.25); font-variant-numeric: tabular-nums;
}
.cur-bn-nom small { margin-left: 0.15em; font-size: 0.55em; font-weight: 700; opacity: 0.85; }
.cur-bn.is-tyl .cur-bn-nom { left: auto; right: 5%; }
.cur-bn-portret { position: absolute; right: 7%; bottom: 0; height: 82%; fill: rgb(255 255 255 / 0.22); }
.cur-bn-motyw {
    position: absolute; left: 5%; top: 12%; width: 62%; font-size: 6.2cqi; font-weight: 700; line-height: 1.2;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
}

.cur-bn-porownanie { margin-bottom: 1.4rem; padding: 0.9rem; border-radius: 16px; background: var(--hub-elev); border: 1px solid var(--hub-hairline); }
.cur-bn-para { display: grid; gap: 0.6rem; margin-bottom: 0.75rem; }
.cur-bn-para > div { display: flex; align-items: center; gap: 0.6rem; }
.cur-bn-para .cur-bn { flex: none; width: calc(var(--dl) * 0.74); }
.cur-bn-para small { font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.cur-bn-porownanie ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.cur-bn-porownanie li { font-size: 0.84rem; line-height: 1.45; }

.cur-bn-lista { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 1.1rem; }
.cur-bn-karta { padding-bottom: 1.1rem; border-bottom: 1px solid var(--hub-hairline); }
.cur-bn-karta:last-child { border-bottom: 0; }
.cur-bn-glowa { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.55rem; }
.cur-bn-glowa > b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.cur-bn-glowa > span:not(.cur-bn-boki) { font-size: 0.84rem; font-weight: 600; color: var(--hub-accent-strong, var(--hub-ink-muted)); }
.cur-bn-boki { margin-left: auto; display: inline-flex; padding: 2px; border-radius: 999px; border: 1px solid var(--hub-hairline); background: var(--hub-elev); }
.cur-bn-boki button {
    min-height: 1.8rem; padding: 0 0.65rem; border: 0; border-radius: 999px; background: transparent;
    color: var(--hub-ink-muted); font: inherit; font-size: 0.76rem; font-weight: 700; cursor: pointer;
}
.cur-bn-boki button[aria-pressed="true"] { background: var(--hub-ink); color: var(--hub-bg); }
.cur-bn-obroc { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.cur-bn-fakty { margin: 0.5rem 0 0.15rem; font-size: 0.78rem; color: var(--hub-ink-muted); font-variant-numeric: tabular-nums; }
.cur-bn-tyl { margin: 0; font-size: 0.84rem; line-height: 1.45; }
.cur-bn-tyl > span { color: var(--hub-ink-muted); }

.cur-bn-rady { padding: 0.9rem; border-radius: 16px; background: rgb(var(--hub-accent-rgb) / 0.08); }
.cur-bn-rady p { margin: 0 0 0.5rem; font-size: 0.84rem; line-height: 1.5; }
.cur-bn-rady p:last-child { margin-bottom: 0; }
.cur-bn-zrodlo { margin: 1rem 0 0; font-size: 0.76rem; line-height: 1.5; color: var(--hub-ink-muted); }

@media (min-width: 640px) {
    .cur-arkusz { width: min(560px, calc(100% - 2rem)); height: min(88vh, 860px); max-height: 88vh; margin: auto; border-radius: 20px; }
    .cur-bn-para .cur-bn { width: calc(var(--dl) * 0.6); }
}

/* ── Ceny ────────────────────────────────────────────────────────── */
/* Pasek filtrów przykleja się pod zakładkami (2.5rem + 2 × 0.5rem). */
.cur-pasek {
    position: sticky; top: calc(var(--navbar-h, 0px) + 3.5rem); z-index: 20;
    display: grid; gap: 0.45rem; margin: 0 -1rem; padding: 0.15rem 1rem 0.55rem;
    background: var(--hub-bg);
    border-bottom: 1px solid var(--hub-hairline);
}
.cur-pasek:empty { display: none; }
.cur-pasek-r1 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 6px; }
.cur-miasto, .cur-szukaj {
    position: relative; display: flex; align-items: center; min-width: 0; height: 2.6rem;
    border-radius: 12px; border: 1px solid var(--hub-hairline); background: var(--hub-elev);
}
.cur-miasto:focus-within, .cur-szukaj:focus-within { border-color: var(--hub-accent); }
.cur-miasto svg, .cur-szukaj svg {
    position: absolute; left: 0.65rem; width: 16px; height: 16px; fill: none; stroke: var(--hub-ink-muted);
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
.cur-miasto select {
    appearance: none; -webkit-appearance: none; width: 100%; height: 100%; min-width: 0;
    padding: 0 1.7rem 0 2.1rem; border: 0; border-radius: inherit; background: transparent; color: var(--hub-ink);
    font: inherit; font-size: 0.92rem; font-weight: 700; text-overflow: ellipsis; cursor: pointer;
}
.cur-miasto::after {
    content: ''; position: absolute; right: 0.75rem; top: 50%; width: 6px; height: 6px; margin-top: -5px;
    border: solid var(--hub-ink-muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none;
}
.cur-szukaj input {
    width: 100%; height: 100%; min-width: 0; padding: 0 0.6rem 0 2.1rem; border: 0; outline: 0;
    border-radius: inherit; background: transparent; color: var(--hub-ink); font: inherit; font-size: 0.92rem;
}
.cur-kategorie { display: flex; gap: 0.3rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem; }
.cur-kategorie::-webkit-scrollbar { display: none; }
.cur-kategorie button {
    flex: none; display: inline-flex; align-items: center; gap: 0.35rem; height: 2rem; padding: 0 0.7rem;
    border-radius: 999px; border: 1px solid var(--hub-hairline); background: transparent;
    color: var(--hub-ink); font: inherit; font-size: 0.8rem; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.cur-kategorie small { font-size: 0.7rem; font-weight: 600; color: var(--hub-ink-muted); font-variant-numeric: tabular-nums; }
.cur-kategorie button[aria-pressed="true"] { background: var(--hub-ink); border-color: var(--hub-ink); color: var(--hub-bg); }
.cur-kategorie button[aria-pressed="true"] small { color: inherit; opacity: 0.7; }

.cur-grupa h3 { margin: 1rem 0 0.35rem; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hub-ink-muted); }
.cur-grupa ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hub-hairline); border-radius: 14px; overflow: hidden; background: var(--hub-elev); }
.cur-cena { border-top: 1px solid var(--hub-hairline); }
.cur-cena:first-child { border-top: 0; }
.cur-cena-btn {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.75rem;
    width: 100%; min-height: 3.6rem; padding: 0.55rem 0.85rem; border: 0; background: transparent;
    color: var(--hub-ink); font: inherit; text-align: left; cursor: pointer;
}
.cur-cena.is-open .cur-cena-btn { background: rgb(var(--hub-accent-rgb) / 0.07); }
.cur-cena-co, .cur-cena-ile { display: grid; gap: 0.1rem; min-width: 0; }
.cur-cena-co b { font-size: 0.92rem; font-weight: 650; line-height: 1.3; }
.cur-cena-co small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.76rem; color: var(--hub-ink-muted); }
.cur-ok {
    display: inline-grid; place-items: center; width: 1rem; height: 1rem; margin-left: 0.15rem; vertical-align: 0.05em;
    border-radius: 50%; background: var(--hub-accent); color: var(--hub-on-accent, #10200f); font-size: 0.62rem; font-style: normal; font-weight: 800;
}
.cur-cena-ile { justify-items: end; text-align: right; }
.cur-cena-ile b { font-size: 0.95rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cur-cena-ile small { font-size: 0.76rem; font-weight: 600; color: var(--hub-accent-strong, var(--hub-ink-muted)); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cur-cena-wiecej { padding: 0.1rem 0.85rem 0.8rem; background: rgb(var(--hub-accent-rgb) / 0.07); }
.cur-cena-wiecej p { margin: 0 0 0.4rem; font-size: 0.82rem; line-height: 1.5; color: var(--hub-ink-muted); }
.cur-cena-wiecej .cur-cena-pelna { color: var(--hub-ink); font-weight: 600; }
.cur-cena-wiecej .cur-cena-kwota { color: var(--hub-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.cur-stan { font-size: 0.74rem !important; }
.cur-stan.is-ok { color: var(--hub-accent-strong, var(--hub-ink)) !important; font-weight: 600; }

.cur-edycja { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-top: 0.3rem; }
.cur-edycja label { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; }
.cur-edycja input[inputmode] { width: 7.5rem; height: 2.2rem; padding: 0 0.5rem; border-radius: 8px; border: 1px solid var(--hub-hairline); background: var(--hub-bg); color: var(--hub-ink); font: inherit; }
.cur-edycja > span { display: inline-flex; gap: 0.4rem; margin-left: auto; }
.cur-blad { flex-basis: 100%; margin: 0; font-size: 0.8rem; color: var(--hub-error, #b42318); }
.cur-blad[hidden] { display: none; }
.cur-pusto { padding: 1.5rem 0; text-align: center; color: var(--hub-ink-muted); }
.cur-zastrzezenie { margin: 1rem 0 0; font-size: 0.74rem; line-height: 1.5; color: var(--hub-ink-muted); }

.cur-btn {
    min-height: 2.2rem; padding: 0.3rem 0.85rem; border-radius: 999px; border: 1px solid var(--hub-hairline);
    background: transparent; color: var(--hub-ink); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.cur-btn.is-primary { border-color: transparent; background: var(--hub-fill, var(--hub-accent)); color: var(--hub-on-fill, #fff); }

@media (hover: hover) {
    .cur-cena-btn:hover { background: rgb(var(--hub-ink-rgb) / 0.04); }
    .cur-sciagawka button:hover, .cur-kategorie button:hover { border-color: var(--hub-accent); }
}

/* Wąskie telefony (iPhone SE, 360 px): mniejsza kwota, żeby 8 cyfr się mieściło. */
@media (max-width: 370px) {
    .cur-wiersz input { font-size: 1.5rem; }
    .cur-tryb button { padding: 0 0.55rem; }
}

/* ── Szeroki ekran: oba panele obok siebie, bez zakładek ─────────── */
@media (min-width: 900px) {
    .cur-strona { padding-top: 1.75rem; }
    .cur-glowa h1 { font-size: 2rem; }
    .cur-glowa p { display: block; margin: 0.4rem 0 1.5rem; max-width: 62ch; color: var(--hub-ink-muted); line-height: 1.55; }
    .cur-zakladki { display: none; }
    .cur-strona[data-zakladka] .cur-panel { display: block; }
    .cur-uklad { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 2rem; align-items: start; }
    .cur-panel-tytul { display: block; }
    .cur-panel-przelicznik {
        position: sticky; top: calc(var(--navbar-h, 0px) + 1rem); padding: 1.25rem;
        border-radius: 20px; border: 1px solid var(--hub-hairline); background: var(--hub-surface, var(--hub-elev));
    }
    .cur-pasek { top: var(--navbar-h, 0px); margin: 0; padding: 0.6rem 0; }
    .cur-kategorie { margin: 0; padding: 0; flex-wrap: wrap; }
}
