/* ==========================================================================
   Tupigo.pl — design system
   Tokeny → baza → komponenty → strony. Brak zewnętrznych fontów (stos systemowy).
   ========================================================================== */

:root {
  /* jasny motyw: czyste, chłodne tło (bez beżu), mocny kontrast tekstu, zieleń i koral marki Tupigo */
  --bg: #f7f9fa;
  --surface: #ffffff;
  --surface-2: #f1f4f6;
  --surface-3: #e3e8ec;
  --ink: #0f1a17;
  --ink-2: #566360;
  --line: #e2e8ec;
  --primary: #1f6f5c;
  --primary-hover: #17594a;
  --primary-ink: #ffffff;
  --primary-soft: #e3f3ed;
  --danger: #c0352b;
  --danger-soft: #fdecea;
  --success: #15803d;
  --success-soft: #e5f6ea;
  --warning: #a15c07;
  --warning-soft: #fdf4e3;
  --focus: #1f6f5c;
  --cat: #566360;
  --accent-1: #1f6f5c;
  --accent-2: #e8615a;
  --coral: #e8615a;
  --sun: #f6c445;
  --hero-glow: radial-gradient(60% 80% at 15% 0%, rgb(31 111 92 / 14%), transparent 70%), radial-gradient(50% 70% at 95% 10%, rgb(232 97 90 / 12%), transparent 70%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-1: 0 1px 2px rgb(15 26 23 / 5%), 0 1px 3px rgb(15 26 23 / 4%);
  --shadow-2: 0 10px 30px -10px rgb(15 26 23 / 18%), 0 2px 8px rgb(15 26 23 / 6%);
  --shadow-3: 0 -10px 40px rgb(15 26 23 / 14%);

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --topbar-h: 60px;
  --bottomnav-h: 0px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 150ms;
  --t: 260ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1211; --surface: #111a18; --surface-2: #17221f; --surface-3: #22302c;
    --ink: #eef4f2; --ink-2: #9fb0ab; --line: #22302c;
    --primary: #4fd1a5; --primary-hover: #74dcb8; --primary-ink: #04201a; --primary-soft: #133029;
    --danger: #ff8a80; --danger-soft: #3a1b19; --success: #6ee7a0; --success-soft: #12301f;
    --warning: #fbbf5a; --warning-soft: #33270f; --focus: #4fd1a5; --coral: #ff7a72; --accent-2: #ff7a72;
    --hero-glow: radial-gradient(60% 80% at 15% 0%, rgb(79 209 165 / 12%), transparent 70%), radial-gradient(50% 70% at 95% 10%, rgb(255 122 114 / 10%), transparent 70%);
    --shadow-1: 0 1px 2px rgb(0 0 0 / 45%); --shadow-2: 0 12px 32px -8px rgb(0 0 0 / 60%); --shadow-3: 0 -10px 40px rgb(0 0 0 / 55%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1211; --surface: #111a18; --surface-2: #17221f; --surface-3: #22302c;
  --ink: #eef4f2; --ink-2: #9fb0ab; --line: #22302c;
  --primary: #4fd1a5; --primary-hover: #74dcb8; --primary-ink: #04201a; --primary-soft: #133029;
  --danger: #ff8a80; --danger-soft: #3a1b19; --success: #6ee7a0; --success-soft: #12301f;
  --warning: #fbbf5a; --warning-soft: #33270f; --focus: #4fd1a5; --coral: #ff7a72; --accent-2: #ff7a72;
  --hero-glow: radial-gradient(60% 80% at 15% 0%, rgb(79 209 165 / 12%), transparent 70%), radial-gradient(50% 70% at 95% 10%, rgb(255 122 114 / 10%), transparent 70%);
  --shadow-1: 0 1px 2px rgb(0 0 0 / 45%); --shadow-2: 0 12px 32px -8px rgb(0 0 0 / 60%); --shadow-3: 0 -10px 40px rgb(0 0 0 / 55%);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- baza */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; outline: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4, h5 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
h2 { font-size: 1.25rem; }
.h4 { font-size: 1.05rem; }
.h5 { font-size: .95rem; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: var(--radius-sm); transition: top var(--t-fast); }
.skip-link:focus { top: 12px; color: var(--primary-ink); }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-xl { width: 48px; height: 48px; stroke-width: 1.5; color: var(--ink-2); margin: 0 auto 12px; }

/* ---------------------------------------------------------------- przyciski */
.btn {
  --btn-bg: var(--surface); --btn-ink: var(--ink); --btn-line: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-ink); font: 600 .95rem/1 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease);
}
.btn:hover { color: var(--btn-ink); background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { --btn-bg: var(--primary); --btn-ink: var(--primary-ink); --btn-line: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); }
.btn-secondary { --btn-bg: var(--surface); }
.btn-ghost { --btn-bg: transparent; --btn-line: transparent; }
.btn-danger { --btn-bg: var(--danger-soft); --btn-ink: var(--danger); --btn-line: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .875rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: transparent; color: inherit; cursor: pointer; transition: background var(--t-fast);
}
.icon-btn:hover { background: var(--surface-2); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: 8px; align-items: center; }

/* ---------------------------------------------------------------- topbar i nawigacja */
.topbar {
  position: sticky; top: 0; z-index: 500; height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.02em; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; }
.brand-name { font-size: 1.05rem; }
.topnav { display: flex; gap: 4px; }
.topnav a {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background var(--t-fast), color var(--t-fast);
}
.topnav a:hover { background: var(--surface-2); color: var(--ink); }
.topnav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

@media (max-width: 899px) {
  :root { --topbar-h: 56px; --bottomnav-h: calc(64px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--bottomnav-h); }
  .topnav {
    position: fixed; inset: auto 0 0 0; z-index: 600; height: var(--bottomnav-h); padding: 6px 8px env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line); justify-content: space-around;
  }
  .topnav a { flex-direction: column; gap: 2px; font-size: .72rem; padding: 6px 4px; border-radius: 14px; flex: 1 1 0; min-width: 0; max-width: 96px; text-align: center; }
  .topnav a span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topnav a .icon { width: 22px; height: 22px; }
  .topnav a[aria-current="page"] { background: transparent; }
  .topnav a[aria-current="page"] .icon { background: var(--primary-soft); border-radius: 999px; width: 22px; padding: 2px 12px; box-sizing: content-box; height: 22px; }
}
@media (max-width: 380px) { .brand-name { font-size: .95rem; } }
@media (max-width: 420px) {
  .topnav { padding-inline: 2px; }
  .topnav a { flex: 1 1 0; min-width: 0; padding: 6px 1px; font-size: .66rem; letter-spacing: -.01em; }
  .topnav a[aria-current="page"] .icon { width: 40px; padding: 2px 9px; }
}

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; z-index: 900; top: calc(var(--topbar-h) + 12px); left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 32px));
  padding: 8px 8px 8px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-2);
  border: 1px solid var(--line); animation: toast-in var(--t) var(--ease);
}
.toast-success .icon:first-child { color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-error .icon:first-child { color: var(--danger); }
.toast.is-leaving { animation: toast-out var(--t) var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---------------------------------------------------------------- strony tekstowe */
.page { width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px 16px 56px; }
.page.narrow { max-width: 720px; }
.page.center { text-align: center; }
.error-code { font-size: 4.5rem; font-weight: 800; line-height: 1; margin: 24px 0 8px; color: var(--surface-3); letter-spacing: -.04em; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; font-size: 1.05rem; }
.prose li { margin-bottom: .35em; }
.prose .placeholder { background: var(--warning-soft); color: var(--warning); padding: 0 .3em; border-radius: 4px; }
.notice { background: var(--warning-soft); color: var(--warning); padding: 12px 16px; border-radius: var(--radius-sm); }
.empty { text-align: center; padding: 40px 16px; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 24px 16px; display: grid; gap: 10px; }
.footer-brand { font-weight: 700; margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a, .site-footer .link-btn { color: var(--ink-2); font-size: .9rem; }
.site-footer p { margin: 0; }

/* ---------------------------------------------------------------- formularze */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: .95rem; }
.field .help { font-size: .85rem; color: var(--ink-2); }
.field .error { font-size: .875rem; color: var(--danger); display: flex; gap: 6px; align-items: center; }
.field .error .icon { width: 16px; height: 16px; }
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.code-input { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card + .card { margin-top: 16px; }
.auth-card { max-width: 440px; margin: 32px auto; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .875rem; margin: 8px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------------------------------------------------------------- kategorie: kropka z ikoną */
.cat-dot { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--cat); color: #fff; flex: none; }
.cat-dot .icon { width: 18px; height: 18px; }
.cat-dot-sm { width: 24px; height: 24px; }
.cat-dot-sm .icon { width: 14px; height: 14px; }
.cat-dot-lg { width: 72px; height: 72px; }
.cat-dot-lg .icon { width: 34px; height: 34px; stroke-width: 1.75; }

/* ---------------------------------------------------------------- eksplorator (mapa + lista) */
.page-home { height: 100dvh; overflow: hidden; padding-bottom: 0; }
.page-home main { display: flex; min-height: 0; }
.explorer { position: relative; flex: 1; display: grid; grid-template-columns: minmax(360px, 440px) 1fr; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.panel { display: flex; flex-direction: column; min-height: 0; overflow: hidden; background: var(--bg); border-right: 1px solid var(--line); z-index: 2; }
.map-wrap { position: relative; min-height: 0; }
.map { position: absolute; inset: 0; background: var(--surface-2); }
.sheet-handle { display: none; }

.search { position: relative; margin: 16px 16px 10px; }
.search .search-icon { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--ink-2); pointer-events: none; }
.search input {
  width: 100%; height: 50px; padding: 0 48px 0 46px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; box-shadow: var(--shadow-1); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.search-clear { position: absolute; right: 3px; top: 3px; }
.search-inline { max-width: 420px; margin: 24px auto; }

.chips { display: flex; gap: 8px; padding: 2px 16px 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; flex: none; scroll-snap-align: start;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 .875rem/1 var(--font); cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
}
.chip .icon { width: 16px; height: 16px; }
.chip:hover { border-color: var(--ink-2); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"], .chip[aria-expanded="true"], .chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-select { position: relative; padding-right: 8px; }
.chip-select select { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; padding: 0 18px 0 0; cursor: pointer; height: 100%; }
.chip-select::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.chip-select select:focus { outline: none; }
.chip-select:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: .75rem; }

.filters-panel { margin: 0 16px 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); animation: fade-down var(--t) var(--ease); }
.filters-panel fieldset { border: 0; margin: 0; padding: 0; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cat-group { margin: 14px 0 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.cat-group:first-of-type { margin-top: 4px; }
.filters-panel { max-height: min(70vh, 640px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 0; }
.filters-panel .filters-actions { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 16px; margin-top: 8px; border-top: 1px solid var(--line); }
.cat-option { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; cursor: pointer; font-size: .9rem; border: 1px solid transparent; transition: background var(--t-fast), border-color var(--t-fast); }
.cat-option:hover { background: var(--surface-2); }
.cat-option input { position: absolute; opacity: 0; pointer-events: none; }
.cat-option .cat-dot { width: 30px; height: 30px; }
.cat-option .cat-dot .icon { width: 16px; height: 16px; }
.cat-option:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); }
.cat-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px; }
.filters-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

.results-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 6px; min-height: 36px; }
.results-count { margin: 0; font-size: .875rem; color: var(--ink-2); font-weight: 600; }
.view-toggle { display: none; }

.results { list-style: none; margin: 0; padding: 0 12px 24px; overflow-y: auto; flex: 1; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.results-page { padding: 0; }
.result {
  position: relative; display: flex; align-items: stretch; border-radius: var(--radius); margin-bottom: 4px;
  transition: background var(--t-fast); animation: result-in var(--t) var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms);
}
.result:hover, .result.is-highlight { background: var(--surface); box-shadow: var(--shadow-1); }
@keyframes result-in { from { opacity: 0; transform: translateY(6px); } }
.result-link { flex: 1; display: flex; gap: 14px; padding: 10px; color: inherit; text-decoration: none; min-width: 0; border-radius: var(--radius); }
.result-link:hover { color: inherit; }
.result-media { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; flex: none; background: color-mix(in srgb, var(--cat) 14%, var(--surface)); display: grid; place-items: center; }
.result-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.result-media img:not([hidden]) + .cat-dot { position: absolute; left: 4px; bottom: 4px; width: 24px; height: 24px; }
.result-media img:not([hidden]) + .cat-dot .icon { width: 14px; height: 14px; }
.result-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-right: 32px; }
.result-title { font-weight: 700; line-height: 1.25; }
.result-meta { font-size: .85rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; color: var(--ink-2); }
.tag-open { color: var(--success); font-weight: 600; }
.tag-closed { color: var(--ink-2); }
.fav-btn { position: absolute; right: 4px; top: 4px; color: var(--ink-2); }
.fav-btn[aria-pressed="true"] { color: #d9304f; }
.fav-btn[aria-pressed="true"] .icon, .fav-toggle[aria-pressed="true"] .icon { fill: currentColor; animation: heart-pop 320ms var(--ease); }
@keyframes heart-pop { 40% { transform: scale(1.3); } }
.result-skeleton { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto 1fr; gap: 8px 14px; padding: 10px; }
.result-skeleton span { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; height: 14px; }
.result-skeleton span:first-child { grid-row: 1 / 4; height: 76px; border-radius: 12px; }
.result-skeleton span:nth-child(2) { width: 70%; height: 18px; }
.result-skeleton span:nth-child(3) { width: 45%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.results-empty { padding: 32px 12px; text-align: center; color: var(--ink-2); }

.map-btn {
  position: absolute; z-index: 450; right: 12px; bottom: 24px; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); display: grid; place-items: center; cursor: pointer;
}
.map-btn:hover { background: var(--surface-2); }
.map-btn.is-loading .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.map-hint {
  position: absolute; z-index: 450; top: 12px; left: 50%; translate: -50% 0; margin: 0; padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: .875rem; font-weight: 600; box-shadow: var(--shadow-2); animation: toast-in var(--t) var(--ease);
}

/* pinezki */
.pin-wrap { background: none; border: 0; }
.pin {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; rotate: -45deg;
  background: var(--cat); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / 30%);
  transition: transform var(--t-fast) var(--ease);
}
.pin .icon { width: 16px; height: 16px; rotate: 45deg; }
.pin-wrap:hover .pin, .pin-wrap.is-highlight .pin { transform: scale(1.18); }
.pin-wrap.is-highlight { z-index: 1000 !important; }
.cluster { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: .875rem; border: 3px solid color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: 0 2px 8px rgb(0 0 0 / 30%); }
.cluster-wrap { background: none; }
.leaflet-container { font: inherit; background: var(--surface-2); }
.leaflet-control-attribution { font-size: 11px; }
:root[data-theme="dark"] .leaflet-tile-pane { filter: brightness(.82) contrast(1.05) saturate(.85); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: brightness(.82) contrast(1.05) saturate(.85); } }
.leaflet-bar a { color: var(--ink); background: var(--surface); border-color: var(--line); }

/* --- mobile: dolny arkusz nad mapą */
@media (max-width: 899px) {
  .page-home .explorer { display: block; }
  .page-home .map-wrap { position: absolute; inset: 0; }
  .panel {
    --peek: 196px;
    position: absolute; left: 0; right: 0; bottom: 0; height: calc(100% - 8px); z-index: 460;
    border-right: 0; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-3);
    transform: translateY(calc(100% - var(--peek))); transition: transform var(--t) var(--ease); will-change: transform;
  }
  .panel[data-state="half"] { transform: translateY(45%); }
  .panel[data-state="full"] { transform: translateY(0); }
  .panel.is-dragging { transition: none; }
  .sheet-handle { display: flex; justify-content: center; align-items: center; width: 100%; height: 22px; border: 0; background: transparent; cursor: grab; touch-action: none; padding: 0; flex: none; }
  .sheet-grip { width: 40px; height: 5px; border-radius: 999px; background: var(--surface-3); }
  .search { margin-top: 2px; }
  .view-toggle { display: inline-flex; }
  .map-btn { bottom: calc(196px + 14px); transition: opacity var(--t-fast); }
  .panel:not([data-state="peek"]) ~ .map-wrap .map-btn { opacity: 0; pointer-events: none; }
  .cat-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- karta miejsca */
.place { max-width: 880px; margin: 0 auto; padding: 12px 16px 56px; width: 100%; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; font-size: .9rem; color: var(--ink-2); }
.breadcrumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.breadcrumbs a .icon { width: 18px; height: 18px; }
.breadcrumbs a:hover { color: var(--ink); }
.place-hero { display: grid; gap: 20px; }
.place-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface-2); view-transition-name: place-photo; }
.place-photo-empty { display: grid; place-items: center; aspect-ratio: 21 / 9; background: color-mix(in srgb, var(--cat) 14%, var(--surface)); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--ink-2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.facts { list-style: none; padding: 0; margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.fact { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.fact .icon { width: 18px; height: 18px; color: var(--ink-2); }
.fact-open { background: var(--success-soft); border-color: transparent; color: var(--success); }
.fact-open .icon { color: currentColor; }
.actions { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 12px; scrollbar-width: none; }
.actions::-webkit-scrollbar { display: none; }
.amen-pills { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink-2); font-size: .9rem; }
.amen-pills li { display: inline-flex; gap: 6px; align-items: center; }
.amen-pills .icon { width: 18px; height: 18px; color: var(--primary); }
.sections { display: grid; gap: 12px; }
.section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.section > h2 { font-size: 1.1rem; }
details.section { padding: 0; }
details.section > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; border-radius: var(--radius-lg); }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary h2 { margin: 0; font-size: 1.1rem; }
details.section > summary:hover { background: var(--surface-2); }
details.section > :not(summary) { margin-left: 20px; margin-right: 20px; }
details.section > :last-child { margin-bottom: 20px; }
details.section[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
details.section[open] > :not(summary) { animation: fade-down var(--t) var(--ease); }
.chevron { transition: rotate var(--t) var(--ease); color: var(--ink-2); }
details[open] .chevron { rotate: 180deg; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { width: 45%; }
.hours .today { font-weight: 700; }
.hours .today th, .hours .today td { font-weight: 700; color: var(--primary); }
.amen-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.amen-list li { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; }
.amen-list .icon { width: 18px; height: 18px; margin-top: 3px; }
.amen-yes .icon { color: var(--success); }
.amen-no { color: var(--ink-2); }
.amen-no .icon { color: var(--ink-2); }
.place-map { height: 260px; border-radius: var(--radius); overflow: hidden; margin-top: 12px; border: 1px solid var(--line); }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.link-list a, .link-list .link-btn { display: inline-flex; gap: 10px; align-items: center; padding: 6px 0; text-decoration: none; font-weight: 600; }
.link-list .link-btn { text-decoration: none; }
.place-foot { margin-top: 24px; }
.place-foot p { display: flex; gap: 6px; align-items: center; margin: 0 0 4px; }
.place-foot .icon { width: 16px; height: 16px; }
@media (min-width: 900px) {
  .place-hero { grid-template-columns: 1fr; }
  .place { padding-top: 20px; }
}

/* ---------------------------------------------------------------- baner cookies */
.cookie-banner { position: fixed; z-index: 950; left: 16px; right: 16px; bottom: calc(var(--bottomnav-h) + 16px); display: flex; justify-content: center; pointer-events: none; }
.cookie-card { pointer-events: auto; width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: 20px; animation: toast-in var(--t) var(--ease); max-height: calc(100dvh - 120px); overflow-y: auto; }
.cookie-card p { margin-bottom: 12px; }
.cookie-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.cookie-actions .btn { white-space: normal; }
.cookie-options { display: grid; gap: 12px; margin: 4px 0 16px; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }

/* ---------------------------------------------------------------- panel konta */
.account-grid { display: grid; gap: 16px; }
.session-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.session-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--surface-2); border-radius: 12px; font-size: .9rem; }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-primary { background: var(--primary-soft); color: var(--primary); }

/* ---------------------------------------------------------------- przejścia między stronami */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }
}

/* ---------------------------------------------------------------- ograniczenie ruchu */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }

/* ---------------------------------------------------------------- panel administratora */
.page-admin { --admin-nav-w: 260px; }
.admin { display: grid; grid-template-columns: var(--admin-nav-w) minmax(0, 1fr); gap: 28px; max-width: 1380px; margin: 0 auto; padding: 24px 20px 72px; width: 100%; }
.admin-mobilebar { display: none; }
.admin-nav { position: sticky; top: calc(var(--topbar-h) + 16px); align-self: start; max-height: calc(100dvh - var(--topbar-h) - 32px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; border-radius: var(--radius-lg); }
.admin-nav-inner { display: grid; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.admin-nav-title { margin: 14px 12px 4px; font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.admin-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; transition: background var(--t-fast), color var(--t-fast); }
.admin-nav a .icon { width: 18px; height: 18px; }
.admin-nav a:hover { background: var(--surface-2); color: var(--ink); }
.admin-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.admin-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.admin-nav a.admin-nav-site { font-size: .85rem; padding-block: 8px; }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.admin-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; }
.admin-main > h1, .admin-head h1 { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.85rem); letter-spacing: -.02em; line-height: 1.15; }
.admin-main > .muted, .admin-main > p.muted { max-width: 80ch; margin: -8px 0 0; }
.admin-main .card { padding: 22px 24px; box-shadow: var(--shadow-1); }
.admin-main > .card + .card { margin-top: 0; }
.admin-main .card > h2:first-child, .admin-main .card > .admin-head:first-child h2, .admin-main legend.h4 { font-size: 1.05rem; letter-spacing: -.01em; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-head h1, .admin-head h2 { margin: 0; }
.admin-head p { margin: 0; }
.alerts { display: grid; gap: 8px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); margin: 0; }
.alert p { margin: 2px 0 0; font-size: .9rem; }
.alert .icon { margin-top: 2px; }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }
.alert-success { background: var(--success-soft); color: var(--success); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.stat { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast), transform var(--t-fast) var(--ease); }
a.stat:hover { border-color: var(--primary); color: var(--ink); transform: translateY(-1px); }
.stat-value { font-size: 1.8rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.small-value { font-size: 1.15rem; }
.stat-label { font-size: .85rem; color: var(--ink-2); }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: var(--surface-2); font-weight: 700; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.table-compact th, .table-compact td { padding: 7px 12px; }
.table-title { display: inline-flex; gap: 10px; align-items: center; font-weight: 650; color: var(--ink); text-decoration: none; }
.table-title:hover { color: var(--primary); }
.nowrap { white-space: nowrap; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar .input { width: auto; flex: 1 1 200px; min-height: 44px; }
.toolbar select.input { flex: 0 1 200px; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form .input { width: auto; min-height: 36px; padding: 4px 10px; }
.input-narrow { width: 80px !important; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.pager a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.admin-form fieldset.card { margin: 0; display: grid; gap: 16px; min-width: 0; }
.admin-form legend { padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.admin-form legend + * { clear: both; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; }
.check-grid .check { font-size: .92rem; }
.map-editor { display: grid; gap: 10px; }
.admin-map { height: 340px; border-radius: var(--radius); border: 1px solid var(--line); }
.hours-editor { border-collapse: collapse; width: 100%; max-width: 560px; }
.hours-editor th, .hours-editor td { padding: 4px 8px 4px 0; text-align: left; font-weight: 500; }
.hours-editor thead th { font-size: .8rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.hours-editor input[type="time"] { min-height: 40px; padding: 4px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.hours-editor input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); }
.amen-editor { display: grid; gap: 6px; }
.amen-row { display: grid; grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1.2fr); gap: 10px; align-items: center; }
.amen-name { font-size: .95rem; }
.amen-note { min-height: 38px !important; padding: 6px 12px !important; font-size: .9rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 7px 14px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.seg label + label span { border-left: 1px solid var(--line); }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input[value="yes"]:checked + span { background: var(--success); color: #fff; }
.seg input[value="no"]:checked + span { background: var(--danger); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
.link-row { display: grid; grid-template-columns: 160px 1fr; gap: 8px; margin-bottom: 6px; }
.link-row select { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 10px; font: inherit; }
.admin-photo { border-radius: var(--radius); max-width: 320px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 8px; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }

@media (max-width: 899px) {
  .amen-row { grid-template-columns: 1fr auto; }
  .amen-note { grid-column: 1 / -1; }
  .link-row { grid-template-columns: 1fr; }
  .sticky-actions { bottom: var(--bottomnav-h); }
}

/* poprawki układu */
.with-icon { display: flex; gap: 8px; align-items: flex-start; }
.with-icon .icon { margin-top: 3px; color: var(--ink-2); }
details.section > table { width: calc(100% - 40px); }
.place-photo-empty { aspect-ratio: auto; height: clamp(140px, 22vw, 220px); }
/* backdrop-filter tworzy kontekst dla position:fixed — na telefonie dolne menu musi być liczone względem okna */
@media (max-width: 899px) {
  .topbar { backdrop-filter: none; background: var(--bg); }
}
@media (max-width: 899px) {
  .page-home { padding-bottom: var(--bottomnav-h); }
}
/* mapa we własnym kontekście warstw — kontrolki Leaflet nie nachodzą na arkusz z listą */
.map-wrap { z-index: 0; }

/* pasek postępu (szerokość przez klasy — bez stylów inline, zgodnie z CSP) */
.progress { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-bar { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width var(--t) var(--ease); width: 0; }
.progress-1 { width: 1%; }
.progress-2 { width: 2%; }
.progress-3 { width: 3%; }
.progress-4 { width: 4%; }
.progress-5 { width: 5%; }
.progress-6 { width: 6%; }
.progress-7 { width: 7%; }
.progress-8 { width: 8%; }
.progress-9 { width: 9%; }
.progress-10 { width: 10%; }
.progress-11 { width: 11%; }
.progress-12 { width: 12%; }
.progress-13 { width: 13%; }
.progress-14 { width: 14%; }
.progress-15 { width: 15%; }
.progress-16 { width: 16%; }
.progress-17 { width: 17%; }
.progress-18 { width: 18%; }
.progress-19 { width: 19%; }
.progress-20 { width: 20%; }
.progress-21 { width: 21%; }
.progress-22 { width: 22%; }
.progress-23 { width: 23%; }
.progress-24 { width: 24%; }
.progress-25 { width: 25%; }
.progress-26 { width: 26%; }
.progress-27 { width: 27%; }
.progress-28 { width: 28%; }
.progress-29 { width: 29%; }
.progress-30 { width: 30%; }
.progress-31 { width: 31%; }
.progress-32 { width: 32%; }
.progress-33 { width: 33%; }
.progress-34 { width: 34%; }
.progress-35 { width: 35%; }
.progress-36 { width: 36%; }
.progress-37 { width: 37%; }
.progress-38 { width: 38%; }
.progress-39 { width: 39%; }
.progress-40 { width: 40%; }
.progress-41 { width: 41%; }
.progress-42 { width: 42%; }
.progress-43 { width: 43%; }
.progress-44 { width: 44%; }
.progress-45 { width: 45%; }
.progress-46 { width: 46%; }
.progress-47 { width: 47%; }
.progress-48 { width: 48%; }
.progress-49 { width: 49%; }
.progress-50 { width: 50%; }
.progress-51 { width: 51%; }
.progress-52 { width: 52%; }
.progress-53 { width: 53%; }
.progress-54 { width: 54%; }
.progress-55 { width: 55%; }
.progress-56 { width: 56%; }
.progress-57 { width: 57%; }
.progress-58 { width: 58%; }
.progress-59 { width: 59%; }
.progress-60 { width: 60%; }
.progress-61 { width: 61%; }
.progress-62 { width: 62%; }
.progress-63 { width: 63%; }
.progress-64 { width: 64%; }
.progress-65 { width: 65%; }
.progress-66 { width: 66%; }
.progress-67 { width: 67%; }
.progress-68 { width: 68%; }
.progress-69 { width: 69%; }
.progress-70 { width: 70%; }
.progress-71 { width: 71%; }
.progress-72 { width: 72%; }
.progress-73 { width: 73%; }
.progress-74 { width: 74%; }
.progress-75 { width: 75%; }
.progress-76 { width: 76%; }
.progress-77 { width: 77%; }
.progress-78 { width: 78%; }
.progress-79 { width: 79%; }
.progress-80 { width: 80%; }
.progress-81 { width: 81%; }
.progress-82 { width: 82%; }
.progress-83 { width: 83%; }
.progress-84 { width: 84%; }
.progress-85 { width: 85%; }
.progress-86 { width: 86%; }
.progress-87 { width: 87%; }
.progress-88 { width: 88%; }
.progress-89 { width: 89%; }
.progress-90 { width: 90%; }
.progress-91 { width: 91%; }
.progress-92 { width: 92%; }
.progress-93 { width: 93%; }
.progress-94 { width: 94%; }
.progress-95 { width: 95%; }
.progress-96 { width: 96%; }
.progress-97 { width: 97%; }
.progress-98 { width: 98%; }
.progress-99 { width: 99%; }
.progress-100 { width: 100%; }
.coords { font-variant-numeric: tabular-nums; user-select: all; }
.results-more { list-style: none; padding: 8px 10px 16px; }
.section code { white-space: normal; overflow-wrap: anywhere; }
code { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- strony miast */
.city-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -8px -16px 18px; padding: 2px 16px; scroll-snap-type: x proximity; }
.city-tabs .chip { text-decoration: none; }
.city-tabs .chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.city-head { display: grid; gap: 16px; margin-bottom: 28px; }
.city-head h1 { margin: 0; letter-spacing: -.02em; text-wrap: balance; }
.city-all { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-lg); background: var(--primary); color: var(--primary-ink); text-decoration: none; max-width: 480px; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.city-all:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.city-all > span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.city-all strong { font-size: 1.35rem; letter-spacing: -.01em; }
.city-all-label { font-size: .9rem; opacity: .9; }
.city-all-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: color-mix(in srgb, var(--primary-ink) 16%, transparent); }
.city-section { margin-bottom: 32px; }
.city-section h2 { font-size: 1.15rem; margin: 0 0 12px; }
.idea-grid, .cat-tiles, .city-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.idea-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.idea { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; height: 100%; transition: border-color var(--t-fast), transform var(--t-fast) var(--ease); }
.idea .icon { grid-row: span 2; width: 24px; height: 24px; color: var(--primary); }
.idea-label { font-weight: 700; line-height: 1.25; }
.idea-count { font-size: .85rem; color: var(--ink-2); }
.idea:hover, .cat-tile:hover, .city-list a:hover { border-color: var(--ink-2); }
.idea:active, .cat-tile:active { transform: scale(.98); }
.cat-tiles { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.cat-tile { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color var(--t-fast), transform var(--t-fast) var(--ease); }
.cat-tile .cat-dot .icon { width: 18px; height: 18px; }
.cat-tile-name { flex: 1; font-weight: 600; line-height: 1.25; }
.cat-tile-count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); }
.top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px; }
.top-grid .result { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.top-grid .result-body { padding-right: 0; }
.city-list { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 20px; }
.city-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; font-weight: 600; }
.city-source { margin-top: 8px; }
@media (max-width: 480px) {
  .idea-grid { grid-template-columns: 1fr 1fr; }
  .idea { grid-template-columns: 1fr; padding: 12px; }
  .idea .icon { grid-row: auto; margin-bottom: 6px; }
  .top-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- panel: kontrolki formularzy */
/* checkbox */
.page-admin input[type="checkbox"], .check input[type="checkbox"], .switch-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; flex: none; display: inline-grid; place-content: center;
  border: 1.5px solid color-mix(in srgb, var(--ink-2) 55%, var(--line)); border-radius: 6px; background: var(--surface); cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.page-admin input[type="checkbox"]::before, .check input[type="checkbox"]::before, .switch-row input[type="checkbox"]::before {
  content: ""; width: 10px; height: 5px; margin-top: -3px; border: 2.5px solid var(--primary-ink); border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(0); transition: transform var(--t-fast) var(--ease);
}
.page-admin input[type="checkbox"]:hover, .check input[type="checkbox"]:hover { border-color: var(--primary); }
.page-admin input[type="checkbox"]:checked, .check input[type="checkbox"]:checked, .switch-row input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
.page-admin input[type="checkbox"]:checked::before, .check input[type="checkbox"]:checked::before, .switch-row input[type="checkbox"]:checked::before { transform: rotate(-45deg) scale(1); }
.page-admin input[type="checkbox"]:focus-visible, .check input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
.page-admin input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
/* przełącznik: <input type="checkbox" role="switch"> */
.page-admin input[type="checkbox"][role="switch"] { width: 42px; height: 24px; border-radius: 999px; place-content: center start; padding: 0 3px; background: var(--surface-3); border-color: transparent; }
.page-admin input[type="checkbox"][role="switch"]::before { width: 18px; height: 18px; margin: 0; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transform: none; transition: translate var(--t-fast) var(--ease); }
.page-admin input[type="checkbox"][role="switch"]:checked { background: var(--primary); }
.page-admin input[type="checkbox"][role="switch"]:checked::before { translate: 18px 0; transform: none; }
.check:has(input:checked) > span { color: var(--ink); }
.check-grid .check { padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; transition: background var(--t-fast), border-color var(--t-fast); }
.check-grid .check:hover { background: var(--surface-2); }
.check-grid .check:has(input:checked) { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.check-grid .check[hidden] { display: none; }
.check-filter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.check-filter .input { max-width: 320px; min-height: 40px; }
/* listy wyboru: własna strzałka */
.page-admin select { appearance: none; -webkit-appearance: none; padding-right: 38px !important; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.page-admin .input, .page-admin .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .page-admin .field select, .page-admin .field textarea, .page-admin .table select, .page-admin .table input:not([type="checkbox"]) {
  border-radius: 10px; border: 1px solid var(--line); background-color: var(--surface); color: var(--ink); font: inherit;
}
.page-admin .table .input, .page-admin .table select { min-height: 38px; padding: 6px 10px; }
.page-admin .input:hover, .page-admin .field input:hover, .page-admin .field select:hover, .page-admin .field textarea:hover { border-color: color-mix(in srgb, var(--ink-2) 45%, var(--line)); }

/* pole z podpowiedziami (combobox) */
.cb { position: relative; min-width: 160px; width: 100%; }
.cb-native { position: absolute !important; inset: 0; opacity: 0; pointer-events: none; }
.cb-field { position: relative; display: flex; align-items: center; }
.cb-text { width: 100%; min-height: 46px; padding: 10px 42px 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-overflow: ellipsis; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.cb-text:hover { border-color: color-mix(in srgb, var(--ink-2) 45%, var(--line)); }
.cb-text:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }
.cb-text[aria-invalid="true"] { border-color: var(--danger); }
.cb-input .cb-text, .table .cb-text { min-height: 40px; padding: 6px 38px 6px 12px; }
.cb-preview { position: absolute; left: 12px; display: grid; color: var(--ink); pointer-events: none; }
.cb-preview .icon { width: 18px; height: 18px; }
.cb-preview + .cb-text { padding-left: 40px; }
.cb-toggle { position: absolute; right: 4px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink-2); border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.cb-toggle:hover { background: var(--surface-2); color: var(--ink); }
.cb-toggle .icon { width: 18px; height: 18px; transition: rotate var(--t-fast) var(--ease); }
.cb.is-open .cb-toggle .icon { rotate: 180deg; }
.cb-list { position: fixed; z-index: 1200; margin: 0; padding: 6px; list-style: none; max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); animation: fade-down var(--t-fast) var(--ease); scrollbar-width: thin; }
.cb-list [role="option"] { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .92rem; line-height: 1.3; }
.cb-list [role="option"] > span { flex: 1; min-width: 0; }
.cb-list [role="option"] .icon { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.cb-list [role="option"] > .icon:last-child { color: var(--primary); }
.cb-list [role="option"].is-active { background: var(--primary-soft); color: var(--primary); }
.cb-list [role="option"].is-active .icon { color: var(--primary); }
.cb-list [aria-selected="true"] { font-weight: 700; }
.cb-list [aria-disabled="true"] { opacity: .5; cursor: default; }
.cb-list mark { background: color-mix(in srgb, var(--primary) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.cb-empty { padding: 8px 10px; color: var(--ink-2); font-size: .85rem; list-style: none; }
.toolbar .cb { flex: 0 1 220px; width: auto; }

@media (max-width: 899px) {
  .admin { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 12px 16px 72px; }
  .admin-mobilebar { display: flex; }
  .admin-nav { position: fixed; inset: 0; align-self: stretch; justify-self: stretch; z-index: 1100; max-height: none; border-radius: 0; background: rgb(0 0 0 / 0%); visibility: hidden; transition: background var(--t) var(--ease), visibility 0s linear var(--t); overflow: hidden; }
  .admin-nav-inner { position: absolute; inset: 0 auto 0 0; width: min(300px, 86vw); overflow-y: auto; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; translate: -100% 0; transition: translate var(--t) var(--ease); padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); }
  .admin-nav.is-open { visibility: visible; background: rgb(0 0 0 / 40%); transition: background var(--t) var(--ease); }
  .admin-nav.is-open .admin-nav-inner { translate: 0 0; }
  .admin-nav a { padding: 11px 12px; }
  body.admin-nav-open { overflow: hidden; }
  .admin-main .card { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-nav, .admin-nav-inner, .cb-list { transition: none; animation: none; }
}
.page-admin .table td:first-child > .input { min-width: 210px; }
.toolbar .cb-text { min-height: 44px; padding: 8px 38px 8px 12px; }

/* ---------------------------------------------------------------- import: reguły i mapowanie */
.rules { display: grid; gap: 8px; }
.rule { display: grid; grid-template-columns: auto minmax(140px, 1.2fr) minmax(130px, .9fr) minmax(110px, 1fr) auto minmax(150px, 1.2fr) minmax(130px, 1fr) minmax(110px, 1fr) auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.rule > [hidden], .rule .cb[hidden] { display: none; }
.rule-label { font-size: .8rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.rule .input, .rule select, .rule .cb-text { min-height: 40px; }
.rule select { padding: 6px 30px 6px 10px; border-radius: 10px; border: 1px solid var(--line); background-color: var(--surface); color: var(--ink); font: inherit; }
.map-table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.map-table td { min-width: 200px; }
@media (max-width: 1100px) {
  .rule { grid-template-columns: 1fr 1fr; }
  .rule-label { grid-column: 1 / -1; }
  .rule [data-repeat-remove] { justify-self: end; grid-column: 2; }
}

/* ---------------------------------------------------------------- synchronizacja: karty źródeł */
.sync-src { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.sync-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sync-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex: none; }
.sync-title { flex: 1 1 260px; min-width: 0; }
.sync-title h2 { margin: 0 0 2px; }
.sync-title p { margin: 0; }
.sync-progress { display: grid; gap: 6px; }
.sync-cond { border-top: 1px solid var(--line); padding-top: 10px; }
.sync-cond > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 650; color: var(--ink-2); list-style: none; }
.sync-cond > summary::-webkit-details-marker { display: none; }
.sync-cond > summary:hover, .sync-cond[open] > summary { color: var(--ink); }
.sync-cond[open] > summary { margin-bottom: 12px; }
.sync-tiles { max-height: 420px; overflow-y: auto; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.check-grid-sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* ---------------------------------------------------------------- zakładki */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: -1px; color: var(--ink-2); text-decoration: none; font-weight: 650; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.tab-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: .75rem; font-weight: 750; }

/* ---------------------------------------------------------------- moderacja propozycji */
.sugg { display: grid; gap: 14px; }
.sugg-head { display: flex; align-items: center; gap: 14px; }
.sugg-thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; }
.sugg-thumb-empty { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.sugg-title { flex: 1; min-width: 0; }
.sugg-title h2 { margin: 0 0 2px; }
.sugg-title p { margin: 0; }
.sugg-note { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-style: italic; }
.sugg-note .icon { flex: none; margin-top: 2px; }
.diff-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.diff { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color var(--t-fast), background var(--t-fast); }
.diff:has(.diff-pick input:checked) { border-color: color-mix(in srgb, var(--success) 45%, var(--line)); background: color-mix(in srgb, var(--success-soft) 45%, var(--surface)); }
.diff-pick { padding-top: 2px; }
.diff-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.diff-label { font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin: 0; }
.diff-values { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; }
.diff-old, .diff-new { position: relative; padding: 22px 12px 10px; border-radius: 10px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.diff-old { background: var(--danger-soft); color: color-mix(in srgb, var(--danger) 70%, var(--ink)); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.diff-new { background: var(--success-soft); color: color-mix(in srgb, var(--success) 70%, var(--ink)); font-weight: 600; }
.diff-tag { position: absolute; top: 6px; left: 12px; font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; opacity: .75; }
.diff-arrow { display: grid; place-items: center; color: var(--ink-2); }
.diff-long .diff-old, .diff-long .diff-new { max-height: 220px; overflow-y: auto; }
.diff-stale { display: flex; gap: 6px; align-items: center; margin: 0; font-size: .85rem; color: var(--warning); }
.diff-stale .icon { width: 16px; height: 16px; }
.photo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-tile { position: relative; display: block; border-radius: 12px; overflow: hidden; cursor: pointer; border: 3px solid transparent; aspect-ratio: 4 / 3; background: var(--surface-2); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile input { position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--surface); }
.photo-tile:has(input:checked) { border-color: var(--success); }
.photo-tile:has(input:not(:checked)) img { opacity: .4; filter: grayscale(1); }
.sugg-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.sugg-actions .input { flex: 1 1 260px; min-height: 44px; }
@media (max-width: 700px) {
  .diff-values { grid-template-columns: 1fr; }
  .diff-arrow { rotate: 90deg; justify-self: center; }
}

/* ---------------------------------------------------------------- formularz propozycji (strona publiczna) */
.suggest-page { max-width: 820px; }
.suggest-hero { display: flex; gap: 16px; align-items: center; margin: 8px 0 20px; }
.suggest-hero h1 { margin: 0 0 4px; }
.suggest-hero p { margin: 0; }
.suggest-hero-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: #fff; flex: none; box-shadow: var(--shadow-2); }
.suggest-hero-icon .icon { width: 26px; height: 26px; }
.suggest-form fieldset.card { display: grid; gap: 14px; margin: 0; min-width: 0; }
.suggest-form legend { display: flex; align-items: center; gap: 10px; float: left; width: 100%; margin-bottom: 6px; padding: 0; }
.suggest-form legend + * { clear: both; }
.suggest-form legend .icon { color: var(--primary); }
.suggest-more > summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.photo-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* ---------- API: dokumentacja i bloki kodu ---------- */
.code-block { position: relative; margin: 8px 0 16px; }
.code-block pre { margin: 0; padding: 14px 16px; padding-right: 96px; overflow-x: auto; background: #1b1f1d; color: #e8efe9; border-radius: var(--radius-sm); font-size: .84rem; line-height: 1.55; tab-size: 2; }
.code-block code { background: none; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
.code-block .code-copy { position: absolute; top: 8px; right: 8px; --btn-bg: rgba(255,255,255,.08); --btn-ink: #e8efe9; --btn-line: rgba(255,255,255,.18); }
.code-block .code-copy:hover { background: rgba(255,255,255,.16); color: #fff; }
.code-block .code-copy.is-copied { --btn-bg: var(--accent-1); --btn-line: var(--accent-1); color: #fff; }
.api-newkey { border: 2px solid var(--accent-1); }
.api-newkey h2 { display: flex; align-items: center; gap: 8px; }
.api-docs h3 { margin-top: 32px; scroll-margin-top: 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.api-docs ul, .api-docs ol { padding-left: 1.2em; display: grid; gap: 6px; }
.api-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.api-toc a { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; text-decoration: none; color: var(--ink); }
.api-toc a:hover { background: var(--surface-3); }
.method { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: #fff; font-family: ui-monospace, monospace; }
.method-post { background: #1f7a4d; }
.method-get { background: #2563a8; }
.method-delete { background: #b42b2b; }
.api-fields td:first-child { white-space: nowrap; }
.api-fields td:last-child code { white-space: nowrap; }
.h3 { font-size: 1.3rem; font-weight: 700; }

/* ---------- Weryfikacja zmian ---------- */
.rv { display: grid; gap: 14px; }
.rv-form { display: grid; gap: 10px; }
.rv-filters { display: grid; gap: 10px; margin: 14px 0; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-chips .chip { text-decoration: none; }
.rv-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.rv-filter-note { display: flex; gap: 8px; align-items: center; margin: 12px 0; }
.rv-src { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--ink); }
.rv-src .icon { width: 14px; height: 14px; }
.rv-field { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: 8px; min-width: 0; }
.rv-field legend { padding: 0 4px; }
.rv-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.rv-opt { position: relative; display: grid; gap: 6px; align-content: start; padding: 10px 12px 10px 38px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); overflow-wrap: anywhere; min-width: 0; }
.rv-opt > input[type="radio"] { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; accent-color: var(--primary); }
.rv-opt:hover { border-color: var(--ink-2); }
.rv-tag { font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.rv-val { font-size: .95rem; line-height: 1.45; }
.rv-opt .input { width: 100%; }
.rv-opt-old:has(input:checked) { border-color: var(--ink-2); background: var(--surface-2); }
.rv-opt-new:has(input:checked) { border-color: color-mix(in srgb, var(--success) 60%, var(--line)); background: var(--success-soft); }
.rv-opt-new:has(input:checked) .rv-val { font-weight: 650; }
.rv-opt-custom:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.rv-prev { display: flex; gap: 6px; align-items: center; margin: 0; font-size: .85rem; color: var(--ink-2); }
.rv-prev .icon { width: 16px; height: 16px; flex: none; }
.rv-hist th[scope="row"] { font-weight: 650; white-space: nowrap; }
.rv-dec { font-weight: 650; }
.rv-dec-new { color: var(--success); }
.rv-dec-old { color: var(--danger); }

/* ---------- Wydarzenia ---------- */
.events-page { max-width: 1100px; margin: 0 auto; padding: 16px; display: grid; gap: 18px; }
.events-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.events-head h1 { margin: 0 0 4px; }
.events-head p { margin: 0; }
.events-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chips .chip { text-decoration: none; }
.ev-city select { min-width: 220px; }
.ev-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.ev-card a { display: grid; height: 100%; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.ev-card a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.ev-media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--accent-1, var(--primary)), var(--primary-soft)); }
.ev-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-date { position: absolute; left: 12px; top: 12px; display: grid; place-items: center; min-width: 54px; padding: 6px 8px; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); line-height: 1.1; text-transform: uppercase; font-size: .72rem; font-weight: 700; }
.ev-date strong { font-size: 1.35rem; }
.ev-body { display: grid; gap: 6px; padding: 14px 16px 16px; align-content: start; }
.ev-when, .ev-where { display: flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--ink-2); }
.ev-when { color: var(--primary); font-weight: 650; }
.ev-when .icon, .ev-where .icon { width: 15px; height: 15px; flex: none; }
.ev-title { font-size: 1.08rem; font-weight: 750; line-height: 1.3; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tags .tag { font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.ev-tags .tag-free { background: var(--success-soft); color: var(--success); font-weight: 650; }
.ev-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ev-facts li { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.ev-facts .icon { color: var(--primary); }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.ev-dates li { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-weight: 600; }
.ev-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.ev-gallery img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; display: block; }
.event .contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.event .contact-list li { display: flex; gap: 8px; align-items: center; }
.place-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.place-events a { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.place-events a:hover { border-color: var(--ink-2); }
.place-events .ev-date { position: static; box-shadow: none; background: var(--primary-soft); color: var(--primary); }
.place-events .ev-title { font-size: 1rem; }

/* ================================================================ PANEL — odświeżony wygląd (nadpisuje wcześniejsze reguły) */
.page-admin { --admin-nav-w: 272px; background: color-mix(in srgb, var(--bg) 92%, var(--primary) 8%); }
.page-admin .site-footer { display: none; }

/* pasek postępu przy zapisie i przechodzeniu między stronami */
.admin-progress { position: fixed; z-index: 2000; top: 0; left: 0; height: 3px; width: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--primary), var(--accent-2, var(--primary-hover))); box-shadow: 0 0 10px var(--primary); }
.admin-progress.is-active { opacity: 1; animation: admin-progress 1.6s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes admin-progress { from { width: 0; } 30% { width: 45%; } to { width: 88%; } }
.admin-main[aria-busy="true"] { opacity: .6; transition: opacity .2s ease .15s; pointer-events: none; }

/* menu boczne */
.admin { gap: 32px; max-width: 1440px; padding: 24px 24px 80px; }
.admin-nav-inner { gap: 1px; padding: 12px; border-radius: 20px; box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--line) 70%, transparent); }
.admin-nav-user { display: flex; gap: 12px; align-items: center; padding: 8px 8px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.admin-avatar { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--primary-ink, #fff);
  background: linear-gradient(135deg, var(--primary), var(--accent-2, var(--primary-hover))); }
.admin-nav-who { display: grid; min-width: 0; line-height: 1.25; }
.admin-nav-who strong { font-size: .92rem; }
.admin-nav-who span { font-size: .78rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-nav-title { margin: 16px 12px 6px; font-size: .68rem; }
.admin-nav a { border-radius: 12px; padding: 9px 12px; }
.admin-nav a[aria-current="page"] { background: var(--primary); color: var(--primary-ink, #fff); box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent); }
.admin-nav a[aria-current="page"]::before { display: none; }
.admin-nav a[aria-current="page"] .nav-count { background: #fff; color: var(--danger); }
.admin-nav a.admin-nav-site { margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 14px; }

/* nagłówek strony i karty */
.admin-main { gap: 22px; }
.admin-head { padding-bottom: 2px; }
.admin-head h1 { font-weight: 800; }
.admin-main .card { border-radius: 20px; border-color: color-mix(in srgb, var(--line) 75%, transparent); box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 24px -12px rgb(0 0 0 / 14%); }
.admin-main .card > h2:first-child, .admin-main .card > .h4:first-child { margin-top: 0; }
.admin-main .btn { border-radius: 12px; }

/* statystyki pulpitu */
.stat-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.stat { position: relative; grid-template-columns: auto 1fr; grid-template-areas: "icon value" "icon label"; column-gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: 18px; border-color: color-mix(in srgb, var(--line) 75%, transparent); overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 120px; height: 120px; border-radius: 50%; background: var(--tone, var(--primary)); opacity: .07; }
.stat-icon { grid-area: icon; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--tone, var(--primary)); background: color-mix(in srgb, var(--tone, var(--primary)) 14%, transparent); }
.stat-icon .icon { width: 22px; height: 22px; }
.stat-value { grid-area: value; font-size: 1.65rem; }
.stat-label { grid-area: label; }
a.stat:hover { border-color: var(--tone, var(--primary)); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.tone-blue { --tone: #3b82f6; } .tone-amber { --tone: #d97706; } .tone-violet { --tone: #8b5cf6; } .tone-rose { --tone: #e11d48; } .tone-teal { --tone: var(--primary); } .tone-slate { --tone: #64748b; }
.alerts { gap: 10px; }
.alert { border-radius: 16px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.dash-quick { display: flex; flex-wrap: wrap; gap: 8px; }

/* tabele */
.table-wrap { border-radius: 18px; border-color: color-mix(in srgb, var(--line) 75%, transparent); box-shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 8px 24px -14px rgb(0 0 0 / 16%); }
.card .table-wrap { box-shadow: none; }
.table thead th { position: sticky; top: 0; z-index: 1; font-size: .72rem; letter-spacing: .06em; background: color-mix(in srgb, var(--surface-2) 85%, var(--surface)); }
.table tbody tr { transition: background var(--t-fast); }
.table td .btn-ghost { white-space: nowrap; }

/* formularze */
.page-admin .field label, .page-admin label.field-label { font-weight: 650; }
.page-admin .input, .page-admin .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .page-admin .field select, .page-admin .field textarea { border-radius: 12px; }
.admin-form .form-actions, .admin-main form > .form-actions { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; margin-top: 4px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-2); }

/* ---------------------------------------------------------------- telefon i tablet */
@media (max-width: 899px) {
  .admin { padding: 0 12px 96px; gap: 14px; }
  .admin-mobilebar { position: sticky; top: var(--topbar-h); z-index: 50; display: flex; align-items: center; gap: 10px; margin: 0 -12px; padding: 10px 12px;
    background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .admin-menu-btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-1); }
  .admin-menu-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .admin-mobilebar-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 750; font-size: 1.02rem; }
  .admin-mobilebar-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-mobilebar-title .icon { color: var(--primary); flex: none; }
  .admin-mobilebar-badge { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: var(--danger); color: #fff; font-weight: 750; font-size: .8rem; text-decoration: none; }
  .admin-mobilebar-badge .icon { width: 14px; height: 14px; }
  .admin-nav-inner { border-radius: 0 24px 24px 0; }
  .admin-head { gap: 10px; }
  .admin-head h1 { font-size: 1.4rem; }
  .admin-main .card { border-radius: 18px; padding: 16px 14px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { grid-template-columns: 1fr; grid-template-areas: "icon" "value" "label"; row-gap: 6px; padding: 14px; }
  .stat-icon { width: 36px; height: 36px; border-radius: 12px; }
  .stat-value { font-size: 1.35rem; }
  .stat-label { font-size: .78rem; }
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .toolbar > .input:first-child, .toolbar > .cb:first-child { grid-column: 1 / -1; }
  .toolbar .cb { width: 100%; flex: none; }
  .sugg-actions { display: grid; grid-template-columns: 1fr; }
  .sugg-actions .btn { width: 100%; justify-content: center; }
  .rv-bulk { display: grid; grid-template-columns: 1fr 1fr; }
  .rv-bulk > span { grid-column: 1 / -1; }
  .rv-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; }
  .rv-chips::-webkit-scrollbar { display: none; }
  .rv-chips .chip { flex: none; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs a { flex: none; }
  .code-block pre { font-size: .76rem; padding-right: 14px; padding-top: 48px; }
  .admin-form .form-actions, .admin-main form > .form-actions { bottom: calc(var(--bottomnav-h, 64px) + 8px); }
}

/* tabele jako karty na wąskim ekranie (etykiety kolumn dodaje admin-ui.js) */
@media (max-width: 720px) {
  .table-wrap:has(.table-stack) { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td, .table-stack th[scope="row"] { display: block; width: 100%; }
  .table-stack thead, .table-stack thead tr, .table-stack thead th { display: block; position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-stack td, .table-stack th[scope="row"] { overflow-wrap: anywhere; min-width: 0; }
  .table-stack code { white-space: normal !important; overflow-wrap: anywhere; }
  .table-stack tbody { display: grid; gap: 10px; }
  .table-stack tr { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
  .table-stack tbody tr:hover { background: var(--surface); }
  .table-stack td, .table-stack th[scope="row"] { display: grid; grid-template-columns: minmax(90px, 34%) minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 0; border: 0; text-align: left; white-space: normal; }
  .table-stack td::before, .table-stack th[scope="row"]::before { content: attr(data-label); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding-top: 3px; }
  .table-stack td:not([data-label])::before, .table-stack td[data-label=""]::before { display: none; }
  .table-stack td:not([data-label]), .table-stack td[data-label=""] { grid-template-columns: 1fr; }
  .table-stack td:first-child { grid-template-columns: 1fr; font-weight: 650; padding-top: 0; }
  .table-stack td:first-child::before { display: none; }
  .table-stack td:last-child { padding-bottom: 0; }
  .table-stack .nowrap { white-space: normal; }
  .table-stack td .inline-form, .table-stack td > .btn { display: inline-flex; }
  .page-admin .table-stack td:first-child > .input { min-width: 0; width: 100%; }
  .table-stack td > form.inline-form + .btn, .table-stack td > .btn + .btn { margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-progress.is-active { animation: none; width: 70%; }
  a.stat:hover { transform: none; }
}
@media (max-width: 899px) {
  .admin-main .btn { white-space: normal; max-width: 100%; height: auto; text-align: left; line-height: 1.25; padding-block: 8px; }
  .alert { padding: 10px 14px; font-size: .9rem; }
  .alert p { font-size: .82rem; }
}
@media (max-width: 720px) {
  .table-stack td { justify-items: start; }
  .table-stack td > .badge { justify-self: start; }
}
.alerts-box { border: 1px solid color-mix(in srgb, var(--warning) 30%, var(--line)); border-radius: 18px; background: var(--surface); padding: 4px 6px; }
.alerts-box > summary { display: flex; align-items: center; gap: 10px; padding: 10px 10px; cursor: pointer; font-weight: 700; color: var(--warning); list-style: none; }
.alerts-box > summary::-webkit-details-marker { display: none; }
.alerts-box > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--t-fast); }
.alerts-box[open] > summary::after { transform: rotate(-135deg); }
.alerts-box .alerts { padding: 0 4px 8px; }

/* ================================================================ EKSPLORATOR — odświeżony (nadpisuje wcześniejsze reguły) */
.panel { background: var(--surface); }
.search { margin: 16px 16px 12px; }
.search input { height: 52px; border-color: color-mix(in srgb, var(--line) 80%, transparent); box-shadow: 0 2px 10px rgb(0 0 0 / 6%), 0 0 0 1px color-mix(in srgb, var(--line) 50%, transparent); background: var(--surface); }
.search .search-icon { width: 20px; height: 20px; }

/* pasek szybkich filtrów: przewijany, z cieniowaniem krawędzi i strzałkami */
.chips-wrap { position: relative; }
.chips { padding: 2px 16px 12px; scroll-snap-type: none; }
.chips-wrap::before, .chips-wrap::after { content: ""; position: absolute; top: 0; bottom: 10px; width: 36px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity var(--t-fast); }
.chips-wrap::before { left: 0; background: linear-gradient(90deg, var(--surface) 30%, transparent); }
.chips-wrap::after { right: 0; background: linear-gradient(270deg, var(--surface) 30%, transparent); }
.chips-wrap.fade-start::before, .chips-wrap.fade-end::after { opacity: 1; }
.chips-arrow { position: absolute; top: 2px; z-index: 2; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-2); cursor: pointer; }
.chips-arrow-prev { left: 6px; }
.chips-arrow-next { right: 6px; }
.chips-arrow:hover { background: var(--surface-2); }
@media (hover: none), (max-width: 899px) { .chips-arrow { display: none !important; } }
.chip { height: 40px; padding: 0 14px; gap: 7px; border-color: color-mix(in srgb, var(--line) 85%, var(--ink-2)); white-space: nowrap; }
.chip .chip-caret { width: 14px; height: 14px; margin-left: -2px; opacity: .7; }
.chip[aria-pressed="true"], .chip.is-active, .chip[aria-expanded="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); box-shadow: 0 2px 10px color-mix(in srgb, var(--primary) 30%, transparent); }
.chip[aria-pressed="true"]::after { content: ""; width: 7px; height: 12px; margin: -3px 0 0 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chip-filters { font-weight: 700; }
.chip-filters .chip-count { background: var(--primary-ink); color: var(--primary); min-width: 20px; height: 20px; }
.chip-filters:not(.is-active) .chip-count { background: var(--primary); color: var(--primary-ink); }

/* aktywne filtry — widać od razu, co jest ustawione; każdy da się usunąć */
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.active-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 32px; padding: 0 8px 0 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); background: var(--primary-soft); color: var(--primary); font: 600 .82rem/1 var(--font); cursor: pointer; }
.active-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-chip .icon { width: 14px; height: 14px; flex: none; }
.active-chip:hover { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); }
.active-clear { height: 32px; padding: 0 10px; border: 0; background: none; color: var(--ink-2); font: 600 .82rem/1 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.active-clear:hover { color: var(--ink); }

/* nagłówek listy */
.results-head { padding: 4px 16px 8px; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.results-count { color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.results-count.is-busy::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface-3); border-top-color: var(--primary); animation: spin .8s linear infinite; }

/* karty wyników */
.results { padding: 4px 12px 24px; }
.result { margin-bottom: 8px; border: 1px solid transparent; border-radius: 18px; background: var(--surface); }
.result:hover, .result.is-highlight { border-color: color-mix(in srgb, var(--line) 80%, transparent); background: var(--surface); box-shadow: 0 6px 20px -8px rgb(0 0 0 / 22%); }
.result.is-highlight { border-color: var(--primary); }
.result-link { gap: 14px; padding: 8px; border-radius: 18px; align-items: center; }
.result-media { width: 92px; height: 92px; border-radius: 14px; }
.result-media .cat-dot { width: 40px; height: 40px; }
.result-body { gap: 4px; padding: 2px 36px 2px 0; }
.result-title { font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.result-meta { font-size: .84rem; }
.result-tags { gap: 4px; margin-top: 2px; }
.result-tags > span { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: .75rem; white-space: nowrap; }
.result-tags > .tag-open { background: var(--success-soft); color: var(--success); }
.result-tags > .tag-closed { background: var(--surface-2); color: var(--ink-2); }
.fav-btn { right: 6px; top: 6px; background: color-mix(in srgb, var(--surface) 85%, transparent); }
.results-empty { display: grid; justify-items: center; gap: 12px; padding: 40px 16px; }
.results-empty p { margin: 0; max-width: 34ch; }
.result-skeleton { grid-template-columns: 92px 1fr; }
.result-skeleton span:first-child { height: 92px; border-radius: 14px; }

/* klastry i pinezki */
.cluster { display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 22%, transparent); border: 0; box-shadow: none; padding: 5px; color: var(--primary-ink); }
.cluster > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 999px; background: var(--primary); border: 2px solid #fff; box-shadow: 0 3px 10px rgb(0 0 0 / 28%); font-weight: 800; font-size: .82rem; letter-spacing: -.01em; }
.cluster-m > span { background: color-mix(in srgb, var(--primary) 82%, #0b3d33); }
.cluster-l > span { background: var(--accent-2, #e07a3f); }
.cluster-l { background: color-mix(in srgb, var(--accent-2, #e07a3f) 24%, transparent); }
.cluster-wrap:hover .cluster > span { transform: scale(1.06); transition: transform var(--t-fast); }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow-2) !important; border-radius: 14px !important; overflow: hidden; }
.leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 20px !important; }
.map-btn { border-radius: 16px; width: 48px; height: 48px; border-color: transparent; }
.map-hint { background: var(--surface); color: var(--ink); border: 1px solid var(--line); max-width: calc(100% - 32px); text-align: center; white-space: normal; border-radius: 16px; }

/* okno filtrów (dialog) */
.filters-dialog { padding: 0; border: 0; border-radius: 24px; width: min(560px, calc(100vw - 32px)); max-height: min(86dvh, 820px); background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgb(0 0 0 / 35%); overflow: hidden; }
.filters-dialog[open] { display: flex; animation: fd-in var(--t) var(--ease); }
.filters-dialog.is-closing { animation: fd-out .18s ease forwards; }
.filters-dialog::backdrop { background: rgb(15 20 18 / 55%); }
@keyframes fd-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fd-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
.fd { display: flex; flex-direction: column; width: 100%; min-height: 0; margin: 0; }
.fd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.fd-head h2 { margin: 0; font-size: 1.15rem; }
.fd-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 22px 16px; }
.fd-section { border: 0; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fd-section:last-child { border-bottom: 0; }
.fd-section legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-weight: 800; font-size: 1rem; }
.fd-section legend + * { clear: both; }
.fd-legend-count { margin-left: 6px; font-weight: 600; font-size: .8rem; color: var(--primary); }
.fd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-pill { position: relative; }
.fd-pill input { position: absolute; opacity: 0; pointer-events: none; }
.fd-pill span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.fd-pill span .icon { width: 16px; height: 16px; }
.fd-pill span:hover { border-color: var(--ink-2); }
.fd-pill input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.fd-pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.fd-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; cursor: pointer; }
.fd-switch > span { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fd-switch > span > .icon { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.fd-switch strong { display: block; font-size: .95rem; }
.fd-switch small { display: block; color: var(--ink-2); font-size: .82rem; }
.fd-switch input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--surface-3); position: relative; cursor: pointer; transition: background var(--t-fast); margin: 0; }
.fd-switch input[type="checkbox"]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 30%); transition: translate var(--t-fast) var(--ease); }
.fd-switch input[type="checkbox"]:checked { background: var(--primary); }
.fd-switch input[type="checkbox"]:checked::before { translate: 18px 0; }
.fd-switch input[type="checkbox"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fd-search { position: relative; margin-bottom: 8px; }
.fd-search .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-2); pointer-events: none; }
.fd-search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; }
.fd-search input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.filters-dialog .cat-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 6px; }
.filters-dialog .cat-option { position: relative; padding: 8px 36px 8px 8px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.filters-dialog .cat-option .cat-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.filters-dialog .cat-option .cat-check { position: absolute; right: 10px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--primary); opacity: 0; transition: opacity var(--t-fast); }
.filters-dialog .cat-option:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); font-weight: 650; }
.filters-dialog .cat-option:has(input:checked) .cat-check { opacity: 1; }
.filters-dialog .cat-option[hidden], .filters-dialog .cat-block[hidden] { display: none; }
.fd-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.fd-foot .btn-primary { flex: 1; max-width: 300px; justify-content: center; min-height: 48px; border-radius: 14px; }
.fd-foot .btn-ghost { text-decoration: underline; text-underline-offset: 3px; }

/* --- telefon */
@media (max-width: 899px) {
  .panel.is-dragging { transform: translateY(var(--drag, 0)); }
  .leaflet-control-zoom { display: none; }
  .search { margin: 2px 12px 10px; }
  .chips { padding: 2px 12px 10px; }
  .active-filters { padding: 0 12px 10px; }
  .results { padding: 4px 8px 24px; }
  .result-media { width: 80px; height: 80px; }
  .filters-dialog { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .filters-dialog[open] { animation: fd-up var(--t) var(--ease); }
  .filters-dialog.is-closing { animation: fd-down .18s ease forwards; }
  @keyframes fd-up { from { transform: translateY(100%); } }
  @keyframes fd-down { to { transform: translateY(100%); } }
  .fd-body { padding: 4px 16px 16px; }
  .fd-head { padding: 12px 10px 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .filters-dialog[open], .filters-dialog.is-closing { animation: none; }
}

/* ---------- karta miejsca i formularze: nic nie chowa się poza ekranem */
.actions { flex-wrap: wrap; overflow: visible; margin-bottom: 16px; }
.actions > .btn, .actions > button, .actions > a { flex: 1 1 auto; justify-content: center; }
@media (max-width: 520px) {
  .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
  .actions > .btn, .actions > button, .actions > a { padding-inline: 10px; min-width: 0; }
}
fieldset { min-width: 0; }
.hours-editor { table-layout: fixed; }
.hours-editor th:first-child, .hours-editor td:first-child { width: 34%; }
.hours-editor th:last-child, .hours-editor td:last-child { width: 22%; text-align: center; }
.hours-editor input[type="time"] { width: 100%; min-width: 0; }
.hours-editor th, .hours-editor td { overflow-wrap: anywhere; }
@media (max-width: 420px) { .hours-editor thead th { font-size: .68rem; letter-spacing: 0; } .hours-editor input[type="time"] { padding: 4px; font-size: .9rem; } }
@media (max-width: 520px) {
  .hours-editor, .hours-editor tbody { display: block; width: 100%; }
  .hours-editor thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hours-editor tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .hours-editor tbody tr:last-child { border-bottom: 0; }
  .hours-editor th, .hours-editor td { display: block; width: auto !important; padding: 0; }
  .hours-editor tr > :first-child { grid-column: 1 / 3; grid-row: 1; font-weight: 700; }
  .hours-editor tr > :last-child { grid-column: 3; grid-row: 1 / 3; text-align: center; }
  .hours-editor tr > :last-child::before { content: attr(data-label); display: block; font-size: .7rem; color: var(--ink-2); margin-bottom: 4px; }
  .hours-editor tr > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .hours-editor tr > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .hours-editor input[type="time"] { font-size: 1rem; padding: 6px 8px; }
}

/* ---------------------------------------------------------------- duplikaty / podobne miejsca */
.dup-box { display: grid; gap: 10px; padding: 14px; border: 1px solid color-mix(in srgb, var(--warning) 40%, var(--line)); border-radius: 16px; background: var(--warning-soft); }
.dup-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--ink); }
.dup-title .icon { color: var(--warning); }
.dup-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.dup-card { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.dup-card-existing { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.dup-tag { font-size: .7rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.dup-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dup-pair { display: grid; gap: 12px; }
.dup-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag-src { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .78rem; font-weight: 600; text-decoration: none; }
a.tag-src:hover { color: var(--primary); background: var(--primary-soft); }
.tag-src .icon { width: 12px; height: 12px; }
.dup-scan .progress { margin-top: 12px; }
.sources-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sources-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; overflow-wrap: anywhere; }
@media (max-width: 720px) { .dup-actions .btn, .dup-actions .inline-form { width: 100%; } .dup-actions .inline-form .btn { width: 100%; justify-content: center; } }
/* przewijane paski (miasta, filtry wydarzeń): krawędź sygnalizuje, że jest więcej */
.city-tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); padding-right: 40px; }
.city-tabs .chip[aria-current="page"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.city-list a { transition: border-color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast); }
.city-list a:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-1); }

/* ---------------------------------------------------------------- karta miejsca v2: dwie kolumny, galeria, opinie */
.place { max-width: 1120px; }
.place-head { display: grid; gap: 14px; margin-bottom: 20px; }
.place-head .facts, .place-head .actions, .place-head .amen-pills { margin: 0; }
.place-media { position: relative; }
.place-media .place-photo { max-height: 440px; }
.place-media-more { position: absolute; right: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, #000 62%, transparent); color: #fff; font-weight: 650; font-size: .85rem; text-decoration: none; backdrop-filter: blur(4px); }
.place-media-more .icon { width: 16px; height: 16px; }
.place-headline { display: flex; gap: 16px; align-items: flex-start; }
.place-titles { min-width: 0; flex: 1; }
.place-titles h1 { margin: 0 0 6px; overflow-wrap: anywhere; }
.place-titles .eyebrow { margin-bottom: 6px; }
.place-titles .lead { margin: 8px 0 0; }
.place-badge { flex: none; width: 64px; height: 64px; border-radius: 18px; }
.place-badge .icon { width: 30px; height: 30px; }
.rating-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.rating-line > .icon { width: 18px; height: 18px; color: var(--ink-2); }
.rating-line > span:not(.stars) { color: var(--ink-2); }
.rating-line:hover > span:not(.stars) { text-decoration: underline; text-underline-offset: 3px; }
.place-layout { display: grid; gap: 12px; }
.place-main, .place-side { display: contents; }
.place-layout .section > h2 { margin: 0 0 12px; }
/* telefon: najważniejsze najpierw */
.o-about { order: 1; } .o-hours { order: 2; } .o-map { order: 3; } .o-photos { order: 4; } .o-prices { order: 5; }
.o-contact { order: 6; } .o-amen { order: 7; } .o-events { order: 8; } .o-reviews { order: 9; }
@media (min-width: 960px) {
  .place-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 20px; }
  .place-main, .place-side { display: grid; gap: 16px; min-width: 0; }
  .place-head.has-photo .place-media .place-photo { aspect-ratio: 21 / 9; }
}
.place-map { height: 220px; margin: 12px 0; isolation: isolate; position: relative; z-index: 0; }
.o-map .btn-block { justify-content: center; }
.price-big { font-size: 1.25rem; font-weight: 750; margin: 0 0 8px; }
.amen-groups { display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.amen-groups .amen-list { grid-template-columns: 1fr; }
.amen-groups h3 { margin: 4px 0 8px; }
.link-list a > span { display: grid; }
.link-host { font-weight: 400; font-size: .85rem; color: var(--ink-2); overflow-wrap: anywhere; }
.place-foot p { align-items: flex-start; }
.place-foot .icon { flex: none; margin-top: 2px; }

/* galeria: przewijany pasek */
.gallery { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: min(70%, 240px); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.gallery li { scroll-snap-align: start; display: grid; gap: 4px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform var(--t) var(--ease); }
.gallery a:hover img { transform: scale(1.03); }
.gallery-author { font-size: .75rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* gwiazdki: dwie warstwy, wypełnienie szerokością (klasy stars-0…100 co 5) */
.stars { position: relative; display: inline-block; line-height: 1; letter-spacing: 1px; font-size: 1rem; color: color-mix(in srgb, var(--ink-2) 35%, transparent); white-space: nowrap; vertical-align: middle; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #f5a524; width: 0; }
.stars-5 .stars-fill { width: 5%; } .stars-10 .stars-fill { width: 10%; } .stars-15 .stars-fill { width: 15%; } .stars-20 .stars-fill { width: 20%; }
.stars-25 .stars-fill { width: 25%; } .stars-30 .stars-fill { width: 30%; } .stars-35 .stars-fill { width: 35%; } .stars-40 .stars-fill { width: 40%; }
.stars-45 .stars-fill { width: 45%; } .stars-50 .stars-fill { width: 50%; } .stars-55 .stars-fill { width: 55%; } .stars-60 .stars-fill { width: 60%; }
.stars-65 .stars-fill { width: 65%; } .stars-70 .stars-fill { width: 70%; } .stars-75 .stars-fill { width: 75%; } .stars-80 .stars-fill { width: 80%; }
.stars-85 .stars-fill { width: 85%; } .stars-90 .stars-fill { width: 90%; } .stars-95 .stars-fill { width: 95%; } .stars-100 .stars-fill { width: 100%; }

/* opinie */
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.reviews-head h2 { margin: 0; }
.rvw-summary { display: grid; gap: 16px 28px; grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 16px; border-radius: 16px; background: var(--surface-2); margin-bottom: 16px; }
.rvw-score { display: grid; justify-items: center; gap: 4px; text-align: center; }
.rvw-score strong { font-size: 2.6rem; line-height: 1; font-weight: 800; }
.rvw-score .stars { font-size: 1.15rem; }
.rvw-dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rvw-dist li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) 2em; gap: 8px; align-items: center; font-size: .85rem; font-variant-numeric: tabular-nums; }
.rvw-dist .bar { display: block; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink-2) 18%, transparent); overflow: hidden; }
.rvw-dist .bar > span { display: block; height: 100%; background: #f5a524; border-radius: inherit; }
:where(.rvw-dist .bar > span) { width: 0; }
@media (max-width: 420px) { .rvw-summary { grid-template-columns: 1fr; } }
.rvw-mine { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; margin-bottom: 12px; }
.rvw-mine p { margin: 0 0 6px; }
.rvw-mine-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge-pending { background: var(--warning-soft); color: var(--warning); }
.badge-approved { background: var(--success-soft); color: var(--success); }
.badge-rejected { background: var(--danger-soft); color: var(--danger); }
.rvw-form-wrap { margin-bottom: 16px; }
.rvw-form-wrap > summary { list-style: none; display: inline-flex; cursor: pointer; }
.rvw-form-wrap > summary::-webkit-details-marker { display: none; }
.rvw-form-wrap[open] > summary { display: none; }
.rvw-form { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.rvw-form-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.rvw-delete { margin-top: 10px; }
.link-btn.danger { color: var(--danger); }
.link-btn .icon { width: 16px; height: 16px; }
/* wybór gwiazdek: radio w odwrotnej kolejności, zaznaczenie „rozlewa się” w lewo */
.star-input { border: 0; padding: 0; margin: 0; }
.star-input legend { padding: 0; margin-bottom: 6px; }
.star-input-row { position: relative; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; padding: 4px; border-radius: 8px; color: color-mix(in srgb, var(--ink-2) 45%, transparent); }
.star-input label .icon { width: 34px; height: 34px; transition: transform var(--t-fast) var(--ease), color var(--t-fast); }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a524; }
.star-input input:checked ~ label .icon, .star-input label:hover .icon, .star-input label:hover ~ label .icon { fill: currentColor; }
.star-input label:active .icon { transform: scale(.88); }
.star-input input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 1px; }
.rvw-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rvw { padding: 16px 0; border-top: 1px solid var(--line); }
.rvw-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.rvw-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 750; }
.rvw-who { display: grid; min-width: 0; }
.rvw-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvw-text { margin: 10px 0 0; overflow-wrap: anywhere; }
.rvw-report { margin-top: 6px; font-size: .82rem; }
.rvw-report > summary { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; color: var(--ink-2); list-style: none; }
.rvw-report > summary::-webkit-details-marker { display: none; }
.rvw-report .icon { width: 14px; height: 14px; }
.rvw-report form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rvw-report .input { flex: 1 1 200px; min-height: 36px; }
.rvw-more > summary { list-style: none; display: inline-flex; cursor: pointer; margin-top: 8px; }
.rvw-more > summary::-webkit-details-marker { display: none; }
.rvw-more[open] > summary { display: none; }
/* panel: moderacja opinii */
.rvw-mod { display: grid; gap: 10px; margin-top: 12px; padding: 18px; }
.rvw-mod-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rvw-mod-head h2 { margin: 0 0 2px; }
.rvw-rating { display: inline-flex; gap: 8px; align-items: center; }
.rvw-body { margin: 0; padding: 10px 14px; border-left: 3px solid var(--line); background: var(--surface-2); border-radius: 0 10px 10px 0; overflow-wrap: anywhere; }
/* ocena na liście wyników mapy */
.rating-tag { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: .8rem; color: var(--ink); }
.rating-tag::before { content: "\2605"; color: #f5a524; }

/* ---------------------------------------------------------------- dodawanie miejsca (mapa główna + formularz) */
.map-wrap .map-add { bottom: 84px; }
@media (max-width: 899px) { .map-wrap .map-add { bottom: calc(196px + 14px + 60px); } }
.map-add[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.map-tip { position: absolute; z-index: 460; left: 50%; bottom: 24px; translate: -50% 0; margin: 0; max-width: min(420px, calc(100% - 96px)); padding: 10px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); font-size: .875rem; font-weight: 600; text-align: center; box-shadow: var(--shadow-2); animation: toast-in var(--t) var(--ease); }
@media (max-width: 899px) { .map-tip { bottom: calc(196px + 24px); } }
.map.is-picking, .map.is-picking .leaflet-interactive { cursor: crosshair; }
.pin-new .pin { animation: pin-drop .35s var(--ease); }
@keyframes pin-drop { from { translate: 0 -14px; opacity: 0; } }
.add-popup .leaflet-popup-content { margin: 14px 16px; }
.add-popup .leaflet-popup-content-wrapper { border-radius: 16px; background: var(--surface); color: var(--ink); }
.add-popup .leaflet-popup-tip { background: var(--surface); }
.add-pop { display: grid; gap: 8px; font: inherit; }
.add-pop p { margin: 0; }
.add-pop-title { font-weight: 750; font-size: 1rem; }
.add-pop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.add-pop-list a { font-weight: 650; }
.add-pop-btn { display: grid; justify-items: center; text-align: center; gap: 0; min-height: 40px; height: auto; padding: 8px 12px; white-space: normal; text-decoration: none; }
.add-popup a.btn-primary { color: var(--primary-ink); }
.add-pop-kind { font-size: .75rem; font-weight: 500; opacity: .85; }

.add-map-wrap { position: relative; }
.add-map { height: 300px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); isolation: isolate; z-index: 0; }
@media (max-width: 600px) { .add-map { height: 260px; } }
.add-map-wrap .add-map-locate { right: 12px; bottom: 12px; z-index: 500; }
[data-add-coords].error { color: var(--danger); font-weight: 600; }
.osm-box { display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.osm-box p { margin: 0; }
.osm-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.osm-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.osm-cand { display: grid; min-width: 0; }
.osm-warn { padding: 10px 12px; border-radius: 12px; background: var(--warning-soft); color: var(--warning); }
.osm-warn a { color: inherit; font-weight: 700; }
.osm-note { display: flex; gap: 8px; align-items: flex-start; color: var(--success); }
.osm-note .icon { flex: none; margin-top: 2px; }
.req { color: var(--danger); }
.add-more { padding: 0; }
.add-more > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 18px 20px; cursor: pointer; }
.add-more > summary::-webkit-details-marker { display: none; }
.add-more > summary .h4 { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.add-more > summary .muted { grid-column: 1; }
.add-more > summary .chevron { grid-column: 2; grid-row: 1 / 3; }
.add-more-body { display: grid; gap: 14px; padding: 0 20px 20px; }
.add-more-body h3 { margin: 8px 0 0; }

/* szukanie w OpenStreetMap pod wynikami */
.osm-search { list-style: none; display: grid; gap: 8px; padding: 12px 4px 16px; }
.osm-search > .btn { white-space: normal; height: auto; min-height: 44px; padding: 10px 14px; line-height: 1.3; }
.osm-search p { margin: 0; }
.osm-search-title { font-weight: 700; }
.osm-search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.osm-search-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.osm-search-info { display: grid; gap: 2px; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; min-width: 0; }
.osm-search-info strong, .osm-search-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osm-search-info:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- dymki z wyjaśnieniami */
.tip-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: -4px 0 -4px 4px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; vertical-align: middle; flex: none; }
.tip-btn .icon { width: 17px; height: 17px; }
.tip-btn:hover, .tip-btn:focus-visible { background: var(--surface-2); color: var(--primary); }
.tip-pop { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; margin: 0; width: auto; max-width: none; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: .9rem; font-weight: 450; line-height: 1.45; text-align: left; text-transform: none; letter-spacing: normal; box-shadow: 0 12px 40px rgb(0 0 0 / 30%); overflow-wrap: anywhere; white-space: normal; }
.tip-pop a { color: inherit; text-decoration: underline; }
.tip-pop code { background: color-mix(in srgb, var(--bg) 18%, transparent); color: inherit; padding: 0 .3em; border-radius: 4px; }
.tip-pop:popover-open { animation: tip-in .15s var(--ease); }
@keyframes tip-in { from { opacity: 0; translate: 0 4px; } }
@media (min-width: 640px) { .tip-pop { inset: auto; width: max-content; max-width: min(340px, calc(100vw - 24px)); } }
@supports not selector(:popover-open) { .tip-pop:not(.is-open) { display: none; } .tip-pop.is-open { display: block; z-index: 2000; } }
.label-row { display: flex; align-items: center; gap: 2px; min-width: 0; }
.label-row > label { font-weight: 600; font-size: .95rem; }
h1 .tip-btn, h2 .tip-btn { width: 30px; height: 30px; }
.js .field > p.help:not(.help-keep):not([hidden]):not([id]) { display: none; }

/* ==========================================================================
   Marka Tupigo.pl, strona główna, filtr odległości, powiadomienia push
   ========================================================================== */
/* --coral i --sun są w tokenach na początku pliku (jasny i ciemny motyw) */
.brand-name { font-weight: 800; letter-spacing: -.03em; font-size: 1.25rem; }
.brand-tld { color: var(--coral); font-weight: 700; }
.footer-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-weight: 800; letter-spacing: -.02em; font-size: 1.1rem; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-tagline { flex-basis: 100%; font-weight: 400; letter-spacing: 0; font-size: .9rem; color: var(--ink-2); }

/* filtr odległości i dzwonek na mapie */
.fd-dist-from { margin: 10px 0 0; }
.map-wrap .map-notify { bottom: 144px; }
@media (max-width: 899px) { .map-wrap .map-notify { bottom: calc(196px + 14px + 120px); } }
.map-notify.is-on { background: var(--primary-soft); color: var(--primary); }

/* okno powiadomień */
.push-dialog { padding: 0; border: 0; border-radius: 24px; width: min(480px, calc(100vw - 32px)); max-height: 90dvh; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgb(0 0 0 / 35%); }
.push-dialog::backdrop { background: rgb(15 20 18 / 55%); }
.push-dialog[open] { animation: fd-in var(--t) var(--ease); }
.pd { display: grid; gap: 14px; padding: 20px; }
.pd p { margin: 0; }
.pd-head { display: flex; align-items: center; gap: 12px; }
.pd-head h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; flex: 1; }
.pd-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); flex: none; }
.pd-radius { border: 0; margin: 0; padding: 0; }
.pd-radius legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.pd-status:empty { display: none; }
.pd-status { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 600; }
.pd-status[data-kind="ok"] { background: var(--success-soft); color: var(--success); }
.pd-status[data-kind="error"] { background: var(--danger-soft); color: var(--danger); }
.pd-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pd-actions[hidden], .pd-radius[hidden] { display: none; }
@media (max-width: 639px) {
  .push-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .pd-actions .btn { flex: 1; }
}

/* ---------------------------------------------------------------- strona główna */
.landing { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px 64px; overflow-x: clip; }
.lp-hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px; padding: 48px 0 32px; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }
.lp-eyebrow .brand-mark { width: 28px; height: 28px; }
.lp-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 16px; }
.lp-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; margin: 0 0 24px; }
.lp-search { position: relative; display: flex; gap: 8px; max-width: 560px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.lp-search:focus-within { border-color: var(--primary); }
.lp-search-icon { position: absolute; left: 20px; top: 50%; translate: 0 -50%; color: var(--ink-2); pointer-events: none; }
.lp-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.02rem; padding: 10px 8px 10px 46px; color: var(--ink); }
.lp-search input:focus { outline: none; }
.lp-search .btn { border-radius: 999px; padding-inline: 22px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.lp-hero-art { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; }
.lp-blob { position: absolute; inset: 8%; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--sun) 55%, transparent), transparent 60%), radial-gradient(circle at 75% 70%, color-mix(in srgb, var(--coral) 35%, transparent), transparent 60%), var(--primary-soft); animation: lp-morph 14s ease-in-out infinite alternate; }
.lp-mark { position: absolute; width: 44%; height: 44%; left: 28%; top: 28%; filter: drop-shadow(0 18px 30px rgb(31 111 92 / 35%)); animation: lp-float 5s ease-in-out infinite; }
.lp-bubble { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-2); animation: lp-float 6s ease-in-out infinite; }
.lp-bubble .cat-dot { width: 42px; height: 42px; }
.lp-bubble-a { left: 2%; top: 14%; animation-delay: -1s; }
.lp-bubble-b { right: 4%; top: 6%; animation-delay: -2s; }
.lp-bubble-c { right: 0; top: 52%; animation-delay: -3s; }
.lp-bubble-d { left: 6%; bottom: 8%; animation-delay: -4s; }
.lp-bubble-e { left: 44%; bottom: 0; animation-delay: -5s; }
.lp-bubble-f { left: 0; top: 50%; animation-delay: -2.5s; width: 52px; height: 52px; }
.lp-bubble-f .cat-dot { width: 34px; height: 34px; }
@keyframes lp-float { 50% { translate: 0 -10px; } }
@keyframes lp-morph { to { border-radius: 58% 42% 45% 55% / 42% 58% 42% 58%; rotate: 12deg; } }
@media (prefers-reduced-motion: reduce) { .lp-blob, .lp-mark, .lp-bubble { animation: none; } }

.lp-stats { list-style: none; margin: 8px 0 0; padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.lp-stats li { display: grid; text-align: center; gap: 2px; }
.lp-stats strong { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.03em; color: var(--primary); }
.lp-stats span { color: var(--ink-2); font-size: .9rem; }

.lp-section { padding: 48px 0 0; }
.lp-section h2, .lp-push h2, .lp-final h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.025em; line-height: 1.2; margin: 0 0 20px; }
.lp-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.lp-section-head a { font-weight: 600; }
.lp-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-feature { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.lp-feature h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.lp-feature p { margin: 0; color: var(--ink-2); }
.lp-feature-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.lp-feature:nth-child(3n+2) .lp-feature-icon { background: color-mix(in srgb, var(--coral) 16%, var(--surface)); color: var(--coral); }
.lp-feature:nth-child(3n) .lp-feature-icon { background: color-mix(in srgb, var(--sun) 28%, var(--surface)); color: #a06a00; }

.lp-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.lp-cat { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; transition: border-color var(--t-fast), translate var(--t-fast); }
.lp-cat:hover { border-color: var(--cat); color: var(--ink); translate: 0 -2px; }
.lp-cat-name { flex: 1; min-width: 0; }
.lp-cat-n { color: var(--ink-2); font-size: .85rem; font-weight: 500; }

.lp-push { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 28px; margin-top: 48px; padding: 28px; border-radius: 28px; background: linear-gradient(135deg, #1f6f5c, #24806a 60%, #2b8f74); color: #fff; }
.lp-push h2 { margin-bottom: 8px; color: #fff; }
.lp-push p { margin: 0; color: rgb(255 255 255 / 88%); }
.lp-push-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: rgb(255 255 255 / 14%); }
.lp-push-icon .icon { width: 36px; height: 36px; }
.lp-push-actions { display: grid; gap: 10px; justify-items: start; }
.lp-push-actions .btn-primary { background: #fff; color: #1f6f5c; border-color: #fff; }
.lp-push-actions .btn-primary:hover { background: #f1f7f4; color: #185a4b; }
.lp-push-actions .btn-primary.is-on::after { content: "✓"; font-weight: 800; }
.lp-push-actions .small { display: flex; gap: 6px; align-items: center; max-width: 260px; }
.lp-push-actions .small .icon { width: 16px; height: 16px; flex: none; }

.lp-events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lp-event a { display: grid; gap: 6px; height: 100%; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.lp-event a:hover { border-color: var(--primary); color: var(--ink); }
.lp-event-date { display: inline-flex; gap: 6px; align-items: center; color: var(--coral); font-weight: 700; font-size: .9rem; }
.lp-event-date .icon { width: 16px; height: 16px; }

.lp-cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.lp-cities a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.lp-cities a:hover { border-color: var(--primary); color: var(--ink); }
.lp-cities a span:first-of-type { flex: 1; }
.lp-cities .icon { color: var(--primary); }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-steps li { padding: 20px; border-radius: var(--radius-lg); background: var(--surface-2); }
.lp-steps h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.lp-steps p { margin: 0; color: var(--ink-2); }
.lp-step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 800; }

.lp-faq-item { border-bottom: 1px solid var(--line); }
.lp-faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.lp-faq-item[open] summary::after { content: "\2013"; }
.lp-faq-item p { margin: 0 0 16px; color: var(--ink-2); max-width: 70ch; }

.lp-final { margin-top: 56px; padding: 36px 24px; text-align: center; border-radius: 28px; background: var(--primary-soft); }
.lp-final h2 { margin-bottom: 8px; }
.lp-final p { margin: 0; color: var(--ink-2); }
.lp-final .lp-actions { justify-content: center; }

@media (max-width: 899px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 24px; gap: 8px; }
  .lp-hero-art { order: -1; max-width: 240px; }
  .lp-features, .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-push { grid-template-columns: auto 1fr; }
  .lp-push-actions { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .lp-stats { grid-template-columns: 1fr 1fr; }
  .lp-features, .lp-steps { grid-template-columns: 1fr; }
  .lp-push { grid-template-columns: 1fr; padding: 22px; }
  .lp-push-icon { width: 56px; height: 56px; }
  .lp-search .btn { padding-inline: 16px; }
  .lp-actions .btn { flex: 1 1 auto; }
  .lp-bubble { width: 50px; height: 50px; border-radius: 16px; }
  .lp-bubble .cat-dot { width: 32px; height: 32px; }
}
@media (max-width: 639px) {
  .lp-eyebrow { display: none; }
  .lp-hero-art { max-width: 210px; }
  .lp-feature { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 16px; }
  .lp-feature-icon { grid-row: span 2; }
  .lp-feature h3 { margin: 0; align-self: end; }
  .lp-steps li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 16px; }
  .lp-step-n { grid-row: span 2; }
  .lp-steps h3 { margin: 0; }
}

/* ==========================================================================
   REDESIGN 2026 — czysty, nowoczesny wygląd (bez beżu). Nadpisuje wcześniejsze reguły.
   Kolory wyłącznie ze zmiennych; ciemny motyw działa przez te same tokeny.
   ========================================================================== */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.025em; font-weight: 750; }
h1 { letter-spacing: -.035em; }
::selection { background: color-mix(in srgb, var(--primary) 22%, transparent); }

/* nagłówek: szklany, jasny, nawigacja jako pigułki */
.topbar {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: 0 6px 24px -18px rgb(15 26 23 / 30%);
}
@media (min-width: 900px) {
  .topbar { padding: 0 24px; }
  .topnav { padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
  .topnav a { padding: 7px 14px; font-size: .92rem; }
  .topnav a:hover { background: var(--surface); }
  .topnav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
  .topnav a[aria-current="page"] .icon { color: var(--primary); }
}
@media (max-width: 899px) {
  /* backdrop-filter na .topbar zamyka position: fixed dolnej nawigacji w nagłówku — na telefonie pełne tło */
  .topbar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topnav { background: var(--surface); box-shadow: 0 -8px 24px -18px rgb(15 26 23 / 35%); }
  .topnav a[aria-current="page"] { color: var(--primary); }
}

/* przyciski */
.btn { font-weight: 650; transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease); }
.btn-primary { box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 60%, transparent); }
.btn-primary:hover { box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-secondary { box-shadow: var(--shadow-1); }
.btn-secondary:hover { border-color: color-mix(in srgb, var(--ink) 18%, var(--line)); background: var(--surface); }

/* pola, karty, chipy */
.input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea { background: var(--surface); border-radius: 12px; }
.card, .section { box-shadow: var(--shadow-1); }
.chip { background: var(--surface); box-shadow: var(--shadow-1); font-weight: 600; }
.chip:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }

/* eksplorator mapy */
.panel { background: var(--surface); }
.search input { background: var(--surface-2); border-color: transparent; border-radius: 14px; }
.search input:focus { background: var(--surface); }
.result:hover, .result.is-highlight { background: var(--surface-2); box-shadow: none; }
.map-btn { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }

/* listy: wydarzenia, miasta */
.ev-card a, .city-list a { box-shadow: var(--shadow-1); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast); }
.ev-card a:hover, .city-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.city-tabs .chip[aria-current="page"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* stopka */
.footer-inner { padding: 32px 16px 28px; gap: 14px; }
.site-footer nav a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- strona główna */
.landing { max-width: 1200px; }
.lp-hero {
  position: relative; isolation: isolate; margin: 16px 0 0; padding: 56px 48px;
  border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden;
}
.lp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-glow); }
.lp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 90% at 80% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 80% 40%, #000, transparent 75%);
}
.lp-eyebrow { padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: .95rem; margin-bottom: 20px; }
.lp-eyebrow .brand-mark { width: 24px; height: 24px; }
.lp-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; }
.lp-lead { font-size: 1.15rem; line-height: 1.6; }
.lp-search { padding: 8px; max-width: 600px; border-radius: 20px; box-shadow: 0 1px 2px rgb(15 26 23 / 5%), 0 20px 44px -18px rgb(15 26 23 / 30%); }
.lp-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent), 0 20px 44px -18px rgb(15 26 23 / 30%); }
.lp-search input { font-size: 1.05rem; min-height: 48px; }
.lp-search .btn { border-radius: 14px; min-height: 48px; padding-inline: 26px; }
.lp-actions { margin-top: 20px; }
.lp-hero-art { max-width: 400px; }
.lp-blob { background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--sun) 45%, transparent), transparent 60%), radial-gradient(circle at 75% 70%, color-mix(in srgb, var(--coral) 35%, transparent), transparent 60%), color-mix(in srgb, var(--primary) 16%, var(--surface)); }
.lp-bubble { border: 1px solid var(--line); border-radius: 18px; }

.lp-stats { margin-top: 20px; padding: 8px; gap: 0; border-radius: 24px; }
.lp-stats li { padding: 16px 8px; position: relative; }
.lp-stats li + li::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.lp-stats strong { font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.lp-stats li:nth-child(1) strong { color: var(--primary); }
.lp-stats li:nth-child(4) strong { color: var(--coral); }

.lp-section { padding-top: 72px; }
.lp-section > h2, .lp-section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 24px; }
.lp-section-head a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .92rem; }
.lp-section-head a:hover { border-color: var(--primary); }

.lp-features { gap: 16px; }
.lp-feature { padding: 24px; border-radius: 22px; box-shadow: var(--shadow-1); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast); }
.lp-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--primary) 25%, var(--line)); }
.lp-feature h3 { font-size: 1.1rem; margin-top: 16px; }
.lp-feature-icon { width: 48px; height: 48px; border-radius: 14px; }
.lp-feature:nth-child(3n) .lp-feature-icon { color: color-mix(in srgb, var(--sun) 50%, var(--ink)); }

.lp-cats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.lp-cat { border-radius: 16px; box-shadow: var(--shadow-1); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast); }
.lp-cat:hover { translate: none; transform: translateY(-2px); box-shadow: var(--shadow-2); }
.lp-cat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-cat-n { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); font-variant-numeric: tabular-nums; }

.lp-push {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 72px; padding: 36px; border-radius: 32px;
  background: radial-gradient(60% 120% at 100% 0%, rgb(232 97 90 / 45%), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgb(246 196 69 / 22%), transparent 60%), linear-gradient(135deg, #12493d, #1f6f5c 55%, #24806a);
  box-shadow: 0 30px 60px -30px rgb(18 73 61 / 60%);
}
.lp-push-icon { border-radius: 20px; background: rgb(255 255 255 / 14%); border: 1px solid rgb(255 255 255 / 20%); }
.lp-push-actions .btn-primary { background: #fff; color: #12493d; border-color: #fff; box-shadow: 0 10px 24px -10px rgb(0 0 0 / 45%); }
.lp-push-actions .small { color: rgb(255 255 255 / 85%); }

.lp-event a { border-radius: 18px; padding: 18px; box-shadow: var(--shadow-1); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast); }
.lp-event a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.lp-event-date { justify-self: start; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--coral) 12%, var(--surface)); }

.lp-cities a { border-radius: 14px; box-shadow: var(--shadow-1); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast); }
.lp-cities a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }

.lp-steps { gap: 16px; }
.lp-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-1); }
.lp-step-n { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--coral), color-mix(in srgb, var(--coral) 70%, var(--sun))); }

.lp-faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 20px; margin-bottom: 10px; box-shadow: var(--shadow-1); }
.lp-faq-item summary { padding: 18px 0; }
.lp-faq-item summary::after { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--primary-soft); font-size: 1.1rem; }
.lp-faq-item[open] { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }

.lp-final {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 72px; padding: 56px 24px; border-radius: 32px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.lp-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-glow); }
.lp-final h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; }

@media (max-width: 899px) {
  .lp-hero { padding: 32px 24px; border-radius: 28px; }
  .lp-hero-art { max-width: 220px; }
}
@media (max-width: 639px) {
  .landing { padding-inline: 12px; }
  .lp-hero { margin-top: 12px; padding: 24px 18px 28px; border-radius: 24px; }
  .lp-hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .lp-lead { font-size: 1.02rem; }
  .lp-hero-art { max-width: 180px; }
  .lp-search { border-radius: 16px; padding: 6px; }
  .lp-search input { padding-left: 40px; font-size: 1rem; }
  .lp-search-icon { left: 16px; }
  .lp-search .btn { border-radius: 12px; padding-inline: 16px; }
  .lp-stats { padding: 4px; }
  .lp-stats li:nth-child(3)::before { display: none; }
  .lp-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lp-section { padding-top: 48px; }
  .lp-push, .lp-final { margin-top: 48px; border-radius: 24px; padding: 24px 20px; }
}

/* ==========================================================================
   linki i Google — rozpoznawanie linków w formularzach, oceny i zdjęcia z Google
   ========================================================================== */
.link-quick { border: 2px solid color-mix(in srgb, var(--primary) 35%, var(--line)); }
.link-quick label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.link-quick input { font-size: 1.05rem; }
.link-detect { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--ink); animation: toast-in var(--t) var(--ease); }
.link-detect[hidden] { display: none; }
.link-logo { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; color: var(--ink-2); }
.link-logo img { width: 24px; height: 24px; object-fit: contain; }
.link-logo .icon { width: 18px; height: 18px; }
.link-logo-facebook { background: #1877f2; color: #fff; }
.link-logo-instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); color: #fff; }
.link-logo-google_maps { background: #fff; color: #4285f4; }
.link-logo-youtube { background: #ff0000; color: #fff; }
.link-detect-text { display: grid; min-width: 0; line-height: 1.3; }
.link-detect-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-detect-text small { color: var(--ink-2); }
.link-row { flex-wrap: wrap; }
.link-row .link-detect { flex-basis: 100%; margin-top: 0; }
.is-autofilled { animation: autofill-flash 2.4s ease; }
@keyframes autofill-flash { 0%, 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent); border-color: var(--primary); } }

/* oceny i zdjęcia z Google na karcie miejsca */
.gplace-card { display: grid; gap: 14px; }
.gplace-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.gplace-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.gplace-badge .icon { color: #4285f4; }
.gplace-score { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.gplace-stars { color: #f5a623; letter-spacing: 1px; }
.gplace-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.gplace-photos figure { margin: 0; }
.gplace-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); display: block; }
.gplace-photos figcaption { font-size: .75rem; color: var(--ink-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gplace-reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gplace-review { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.gplace-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gplace-review-head img { width: 32px; height: 32px; border-radius: 999px; }
.gplace-review-head .muted { font-size: .85rem; }
.gplace-review p { margin: 0; white-space: pre-line; }
.gplace-attr { font-size: .8rem; color: var(--ink-2); margin: 0; }

/* własne pola karty miejsca i ustawienia widoczności w panelu */
.cf-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; }
.cf-list li { display: flex; gap: 10px; align-items: flex-start; }
.cf-list li > .icon { color: var(--primary); flex: none; margin-top: 2px; }
.cf-list li > span { display: grid; }
.cf-label { font-size: .85rem; color: var(--ink-2); }
.cf-value { font-weight: 600; }
.cf-textarea { grid-column: 1 / -1; }
.pf-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 24px; }
.pf-group { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; }

/* ==========================================================================
   Animowane ikonki — po najechaniu na kafelek, kategorię, wynik, przycisk lub link
   (rakieta leci, fale falują, stópki chodzą…). Wyłączone przy „ogranicz ruch”.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .icon { transform-origin: 50% 50%; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use) {
    animation: ia-pop .5s var(--ease, ease) both;
  }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use[href$="#i-rocket"]) { animation: ia-rocket 1.1s ease-in-out infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use[href$="#i-waves"]) { animation: ia-waves 1s ease-in-out infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use[href$="#i-footprints"]) { animation: ia-walk .7s steps(2, jump-none) infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use[href$="#i-paw-print"]) { animation: ia-hop .6s ease-in-out infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use[href$="#i-sparkles"]) { animation: ia-twinkle 1s ease-in-out infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use[href$="#i-bell"]) { animation: ia-ring .9s ease-in-out infinite; transform-origin: 50% 8%; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use[href$="#i-radius"]),
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use[href$="#i-snowflake"]),
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use[href$="#i-ferris-wheel"]) { animation: ia-spin 2s linear infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use[href$="#i-cloud-rain"]) { animation: ia-rain .8s ease-in-out infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use[href$="#i-heart"]) { animation: ia-beat .9s ease-in-out infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use[href$="#i-star"]) { animation: ia-star 1.2s ease-in-out infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use[href$="#i-roller-coaster"]) { animation: ia-coaster 1.2s ease-in-out infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use:is([href$="#i-trees"], [href$="#i-tree-pine"], [href$="#i-tent-tree"], [href$="#i-leaf"])) { animation: ia-sway 1.4s ease-in-out infinite; transform-origin: 50% 100%; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use:is([href$="#i-flask-conical"], [href$="#i-coffee"], [href$="#i-milk"])) { animation: ia-bubble .8s ease-in-out infinite; transform-origin: 50% 100%; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use:is([href$="#i-book-open"], [href$="#i-map"])) { animation: ia-unfold .9s ease-in-out infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use:is([href$="#i-calendar"], [href$="#i-calendar-heart"], [href$="#i-ticket"])) { animation: ia-swing .8s ease-in-out infinite; transform-origin: 50% 0; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use:is([href$="#i-baby"], [href$="#i-puzzle"], [href$="#i-drama"])) { animation: ia-rock .9s ease-in-out infinite; transform-origin: 50% 90%; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use:is([href$="#i-bike"], [href$="#i-car"], [href$="#i-car-front"], [href$="#i-bus"], [href$="#i-sailboat"])) { animation: ia-drive .9s ease-in-out infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use:is([href$="#i-map-pin"], [href$="#i-locate-fixed"], [href$="#i-navigation"], [href$="#i-landmark"], [href$="#i-castle"])) { animation: ia-hop .7s ease-in-out infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use:is([href$="#i-music"], [href$="#i-party-popper"], [href$="#i-cake"])) { animation: ia-rock .6s ease-in-out infinite; }
  :is(a, button, label, summary, .lp-feature, .lp-cat, .result, .cat-option, .chip, .fact, .amen-pills li, .cf-list li):is(:hover, :focus-visible) .icon:has(use:is([href$="#i-sun"], [href$="#i-clock"])) { animation: ia-spin 3s linear infinite; }
}
@keyframes ia-pop { 40% { scale: 1.2; } 70% { scale: .95; } }
@keyframes ia-rocket { 0%, 100% { translate: 0 0; rotate: 0deg; } 15% { translate: -1px 1px; } 45% { translate: 4px -5px; rotate: 6deg; } 50% { translate: 4px -5px; opacity: 0; } 51% { translate: -4px 5px; opacity: 0; } 70% { translate: 0 0; opacity: 1; } }
@keyframes ia-waves { 0%, 100% { translate: 0 0; } 25% { translate: -2px 1px; } 75% { translate: 2px -1px; } }
@keyframes ia-walk { 0% { translate: 0 1px; rotate: -8deg; } 100% { translate: 0 -2px; rotate: 8deg; } }
@keyframes ia-hop { 0%, 100% { translate: 0 0; } 40% { translate: 0 -4px; } 60% { translate: 0 -4px; } 80% { translate: 0 1px; scale: 1.08 .92; } }
@keyframes ia-twinkle { 0%, 100% { scale: 1; rotate: 0deg; opacity: 1; } 50% { scale: 1.25; rotate: 20deg; opacity: .7; } }
@keyframes ia-ring { 0%, 100% { rotate: 0deg; } 15% { rotate: 16deg; } 30% { rotate: -14deg; } 45% { rotate: 10deg; } 60% { rotate: -6deg; } 75% { rotate: 2deg; } }
@keyframes ia-spin { to { rotate: 360deg; } }
@keyframes ia-rain { 0%, 100% { translate: 0 0; } 50% { translate: 0 2px; } }
@keyframes ia-beat { 0%, 100% { scale: 1; } 20% { scale: 1.25; } 40% { scale: 1; } 60% { scale: 1.15; } }
@keyframes ia-star { 0%, 100% { rotate: 0deg; scale: 1; } 50% { rotate: 72deg; scale: 1.2; } }
@keyframes ia-coaster { 0%, 100% { translate: -2px 0; rotate: -6deg; } 50% { translate: 2px -2px; rotate: 6deg; } }
@keyframes ia-sway { 0%, 100% { rotate: -6deg; } 50% { rotate: 6deg; } }
@keyframes ia-bubble { 0%, 100% { rotate: 0deg; } 25% { rotate: -8deg; } 75% { rotate: 8deg; } }
@keyframes ia-unfold { 0%, 100% { scale: 1 1; } 50% { scale: .82 1; } }
@keyframes ia-swing { 0%, 100% { rotate: 0deg; } 30% { rotate: 10deg; } 70% { rotate: -10deg; } }
@keyframes ia-rock { 0%, 100% { rotate: -8deg; } 50% { rotate: 8deg; } }
@keyframes ia-drive { 0%, 100% { translate: -2px 0; } 50% { translate: 2px 0; } }

/* Google: znaczki źródła na karcie, limity w panelu */
.gplace-sub { font-size: 1rem; margin: 6px 0 0; }
.gplace-src { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: color-mix(in srgb, #4285f4 14%, var(--surface)); color: #1a5fd0; white-space: nowrap; }
.gplace-review-head .gplace-src { margin-left: auto; }
.rating-google { margin-left: 12px; }
.rating-google .icon { color: #4285f4; }
.gl-used { font-weight: 700; display: block; }
.gl-bar { display: block; width: 140px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.gl-fill { display: block; height: 100%; background: var(--primary); }
.gl-bar.is-warn .gl-fill { background: #e8a33d; }
.gl-bar.is-full .gl-fill { background: var(--danger); }
.gl-stats { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.gl-stats li { display: grid; }
.gl-stats strong { font-size: 1.6rem; }
.gl-w-0 { width: 0%; }
.gl-w-5 { width: 5%; }
.gl-w-10 { width: 10%; }
.gl-w-15 { width: 15%; }
.gl-w-20 { width: 20%; }
.gl-w-25 { width: 25%; }
.gl-w-30 { width: 30%; }
.gl-w-35 { width: 35%; }
.gl-w-40 { width: 40%; }
.gl-w-45 { width: 45%; }
.gl-w-50 { width: 50%; }
.gl-w-55 { width: 55%; }
.gl-w-60 { width: 60%; }
.gl-w-65 { width: 65%; }
.gl-w-70 { width: 70%; }
.gl-w-75 { width: 75%; }
.gl-w-80 { width: 80%; }
.gl-w-85 { width: 85%; }
.gl-w-90 { width: 90%; }
.gl-w-95 { width: 95%; }
.gl-w-100 { width: 100%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gplace-src { color: #a8c7fa; background: rgb(66 133 244 / 22%); } }
:root[data-theme="dark"] .gplace-src { color: #a8c7fa; background: rgb(66 133 244 / 22%); }

/* ==========================================================================
   Panel: pulpit (do zrobienia, liczby, karty) i lista miejsc (filtry, źródła, weryfikacja)
   ========================================================================== */
.dash-todo { margin-bottom: 16px; }
.dash-todo h2 { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--ink-2); }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.todo { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--tone, var(--primary)); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast), translate var(--t-fast); }
.todo:hover { color: var(--ink); translate: 0 -1px; border-color: var(--tone, var(--primary)); }
.todo strong { font-size: 1.25rem; }
.todo > span:not(.todo-icon) { flex: 1; color: var(--ink-2); }
.todo-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--tone, var(--primary)); background: color-mix(in srgb, var(--tone, var(--primary)) 14%, transparent); }
.todo-icon .icon { width: 18px; height: 18px; }
.todo-go { color: var(--ink-2); width: 18px; height: 18px; }
.todo-done { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: var(--radius); background: var(--success-soft); color: var(--success); font-weight: 600; }

.kpi-strip { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.kpi { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon value" "icon label"; column-gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; height: 100%; }
a.kpi:hover { color: var(--ink); border-color: var(--tone, var(--primary)); }
.kpi-icon { grid-area: icon; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--tone, var(--primary)); background: color-mix(in srgb, var(--tone, var(--primary)) 14%, transparent); }
.kpi-icon .icon { width: 18px; height: 18px; }
.kpi-value { grid-area: value; font-size: 1.3rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.kpi-label { grid-area: label; font-size: .82rem; color: var(--ink-2); }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-bottom: 16px; align-items: start; }
.dash-card { margin: 0; display: grid; gap: 10px; }
.dash-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dash-card-head h2 { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.dash-card-head h2 > .icon { color: var(--primary); width: 18px; height: 18px; }
.quota-list, .src-list, .sys-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.quota-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.quota-label { font-size: .9rem; }
.quota-left { font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.quota-left strong { color: var(--ink); font-size: 1rem; }
.quota-left.is-empty strong { color: var(--danger); }
.quota-list .gl-bar { grid-column: 1 / -1; width: 100%; margin: 0; }
.src-list li { display: grid; gap: 0; }
.src-list a { display: flex; justify-content: space-between; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.src-list a:hover span { text-decoration: underline; }
.sys-list li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.sys-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.dash-vitals summary { cursor: pointer; display: flex; align-items: center; gap: 8px; margin: 0; }
.dash-vitals[open] summary { margin-bottom: 12px; }

/* lista miejsc */
.places-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.places-filters .input { width: auto; min-width: 0; max-width: 260px; }
.pf-search { position: relative; flex: 1 1 240px; }
.pf-search .icon { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--ink-2); width: 18px; height: 18px; pointer-events: none; }
.pf-search .input { width: 100%; max-width: none; padding-left: 38px; }
.places-table td { vertical-align: middle; }
.place-sub { display: block; margin: 2px 0 0 34px; }
.th-sort { color: inherit; text-decoration: none; white-space: nowrap; }
.th-sort:hover, .th-sort.is-active { color: var(--primary); }
.src-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; text-decoration: none; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.src-badge:hover { color: var(--ink); }
.src-osm { background: color-mix(in srgb, #7ebc6f 22%, var(--surface)); color: color-mix(in srgb, #3d7a2f 80%, var(--ink)); }
.src-registry { background: color-mix(in srgb, #3b82f6 16%, var(--surface)); color: color-mix(in srgb, #1d4ed8 80%, var(--ink)); }
.src-user, .src-admin { background: color-mix(in srgb, var(--coral, #e8615a) 18%, var(--surface)); color: color-mix(in srgb, #b4372f 80%, var(--ink)); }
.vrf { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.vrf-ok { color: var(--success); }
.vrf-mid { color: var(--warning); }
.vrf-old { color: var(--danger); }
.vrf-none { color: var(--ink-2); font-weight: 400; }
.pager { align-items: center; margin-top: 12px; }
.pager a { padding: 0 10px; }
.pager-gap { padding: 0 4px; color: var(--ink-2); }
@media (max-width: 720px) {
  .places-filters .input { max-width: none; flex: 1 1 45%; }
  .places-table th:nth-child(5), .places-table td:nth-child(5) { display: none; }
}
.dash-card-head > a { white-space: nowrap; flex: none; }
.dash-card-head h2 { flex: 1; min-width: 0; }
.sys-list strong { text-align: right; white-space: nowrap; }
.places-table th:first-child { width: 50%; }
.places-table td, .places-table th { padding-top: 10px; padding-bottom: 10px; }

/* panel → API: nowy klucz i zwijana dokumentacja */
.api-key-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.api-key { flex: 1 1 320px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 2px dashed var(--primary); font-size: 1rem; font-weight: 700; word-break: break-all; user-select: all; }
.api-newkey { border: 2px solid var(--primary); }
.api-sec { border-top: 1px solid var(--line); }
.api-sec > summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.api-sec[open] > summary { padding-bottom: 6px; }
.api-sec > :not(summary) { margin-left: 2px; }
/* przełączniki: pod dachem / na zewnątrz */
.setting-choice { border: 0; padding: 0; margin: 0 0 12px; }
.setting-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.setting-pill { position: relative; }
.setting-pill input { position: absolute; opacity: 0; pointer-events: none; }
.setting-pill span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.setting-pill input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.setting-pill input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; }
.rate-cell { white-space: nowrap; }
.rate { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; }
.rate + .rate { margin-top: 4px; }
.rate-src { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 6px; }
.rate-tupigo .rate-src { background: var(--primary-soft); color: var(--primary); }
.rate-google .rate-src { background: rgb(66 133 244 / 16%); color: #4285f4; }
.rate .muted { font-weight: 400; }

/* panel → weryfikacja zmian: tylko różnice, jeden wiersz na pole */
.rv-summary { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; font-weight: 600; }
.rv-summary .icon { width: 16px; height: 16px; color: var(--primary); }
.rv-rows { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.rv-row { display: grid; grid-template-columns: minmax(120px, 170px) 1fr auto; gap: 6px 14px; align-items: center; margin: 0; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.rv-row:last-child { border-bottom: 0; }
.rv-row:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.rv-row-label { float: left; padding: 0; font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.rv-diff { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; overflow-wrap: anywhere; }
.rv-diff del { color: var(--danger); background: var(--danger-soft); text-decoration-thickness: 1px; padding: 0 4px; border-radius: 4px; }
.rv-diff ins { color: var(--success); background: var(--success-soft); text-decoration: none; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.rv-del { color: var(--danger); }
.rv-arrow { color: var(--ink-2); }
.rv-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.rv-seg label { position: relative; }
.rv-seg input { position: absolute; opacity: 0; pointer-events: none; }
.rv-seg span { display: block; padding: 6px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--ink-2); }
.rv-seg label + label span { border-left: 1px solid var(--line); }
.rv-seg input:checked + span { background: var(--primary); color: var(--primary-ink); }
.rv-seg input[value="old"]:checked + span { background: var(--surface-3); color: var(--ink); }
.rv-seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: -2px; }
.rv-custom { display: none; grid-column: 2 / -1; }
.rv-row:has(input[value="custom"]:checked) .rv-custom { display: block; }
.rv-row:has(input[value="old"]:checked) .rv-diff ins, .rv-row:has(input[value="old"]:checked) .rv-new-val { opacity: .45; text-decoration: line-through; }
.rv-row .diff-stale, .rv-row .rv-prev { grid-column: 2 / -1; margin: 0; }
@media (max-width: 720px) {
  .rv-row { grid-template-columns: 1fr; }
  .rv-custom, .rv-row .diff-stale, .rv-row .rv-prev { grid-column: 1; }
}

/* Import AI */
.ai-form textarea { font-family: var(--font-mono, ui-monospace, monospace); font-size: .875rem; }
.ai-job .ai-bar { display: block; margin: .25rem 0 1rem; }
.ai-progress-text { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ai-items .ai-url { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-items td.small { min-width: 16rem; }

/* ---------------------------------------------------------------- karta miejsca v3: galeria-mozaika, kafelki, czytelne opinie */
.pl-hero { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin: 4px 0 18px; border-radius: var(--radius-lg); }
.pl-hero::-webkit-scrollbar { display: none; }
.pl-hero-1 { grid-auto-columns: 100%; }
.pl-shot { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-2); scroll-snap-align: start; aspect-ratio: 4 / 3; }
.pl-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease); }
.pl-shot:hover img { transform: scale(1.04); }
.pl-shot-src { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgb(0 0 0 / 55%); color: #fff; font-size: .72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(4px); }
.pl-shot-src .icon { width: 12px; height: 12px; flex: none; }
.pl-hero-all { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 650; font-size: .85rem; text-decoration: none; box-shadow: var(--shadow-2); }
.pl-hero-all .icon { width: 16px; height: 16px; }
@media (min-width: 720px) {
  .pl-hero { grid-auto-flow: row; overflow: hidden; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 190px 190px; }
  .pl-hero .pl-shot { aspect-ratio: auto; border-radius: 0; }
  .pl-hero .pl-shot:first-child { grid-row: span 2; }
  .pl-hero-1 { grid-template-columns: 1fr; grid-template-rows: 380px; }
  .pl-hero-1 .pl-shot:first-child { grid-row: auto; }
  .pl-hero-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 380px; }
  .pl-hero-2 .pl-shot:first-child { grid-row: auto; }
  .pl-hero-3 { grid-template-columns: 2fr 1fr; }
  .pl-hero-4 .pl-shot:nth-child(2) { grid-column: span 2; }
}

.pl-head { gap: 16px; }
.pl-head .place-headline { align-items: center; }
.pl-head .place-badge { width: 56px; height: 56px; border-radius: 16px; }
.pl-head h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 10px; }
.pl-ratings { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-rate { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; transition: border-color var(--t-fast); }
.pl-rate:hover { border-color: var(--primary); }
.pl-rate strong { font-weight: 750; }
.pl-rate .muted { color: var(--ink-2); }
.pl-rate > .icon { width: 16px; height: 16px; color: var(--ink-2); }
.pl-rate-star { color: #f5a623; }
.pl-rate-google > .icon { color: #4285f4; }
@media (max-width: 719px) { .pl-head .place-badge { display: none; } }

.pl-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
@media (min-width: 720px) { .pl-tiles { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); } }
@media (max-width: 719px) { .pl-tile { padding: 8px 10px; gap: 8px; } .pl-tile > .icon { width: 30px; height: 30px; padding: 7px; } .pl-hero .pl-shot { aspect-ratio: 16 / 11; } }
.pl-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.pl-tile > .icon { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.pl-tile > span { display: grid; min-width: 0; }
.pl-tile-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 650; }
.pl-tile-value { font-weight: 650; font-size: .92rem; overflow-wrap: anywhere; }
.pl-tile.fact-open > .icon { background: var(--success-soft); color: var(--success); }
.pl-tile.fact-open .pl-tile-value { color: var(--success); }
.pl-tile.fact-closed > .icon { background: var(--danger-soft); color: var(--danger); }

/* „Czytaj więcej” bez JS */
.pl-clamp { position: relative; max-height: 13.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.pl-more-toggle:checked + .pl-clamp { max-height: none; -webkit-mask-image: none; mask-image: none; }
.pl-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--primary); font-weight: 650; cursor: pointer; }
.pl-more .icon { width: 16px; height: 16px; transition: transform var(--t-fast); }
.pl-more-close, .pl-more-toggle:checked ~ .pl-more .pl-more-open { display: none; }
.pl-more-toggle:checked ~ .pl-more .pl-more-close { display: inline; }
.pl-more-toggle:checked ~ .pl-more .icon { transform: rotate(180deg); }
.pl-more-toggle:focus-visible ~ .pl-more { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* opinie z Google: skrócone, w dwóch kolumnach na szerokim ekranie */
.gplace-reviews { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.gplace-review { display: grid; gap: 6px; }
.gplace-review-head { margin-bottom: 0; }
.gplace-review-head > div { min-width: 0; flex: 1; }
.gplace-review-head .gplace-src { margin-left: auto; }
.gplace-clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.gplace-more { justify-self: start; font-size: .9rem; }
.gplace-photos { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.gplace-photos img { border-radius: 12px; }
.gplace-photos figcaption { font-size: .72rem; }

/* ---------------------------------------------------------------- Panel → Integracje */
.text-success { color: var(--success); }
.integ-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.integ-nav .chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.integ-nav .icon { width: 15px; height: 15px; }
.integ-form { display: grid; gap: 16px; }
.integ-card { display: grid; gap: 16px; min-width: 0; scroll-margin-top: calc(var(--topbar-h) + 12px); }
.integ-head { display: flex; align-items: flex-start; gap: 12px; }
.integ-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.integ-icon .icon { width: 20px; height: 20px; }
.integ-title { flex: 1; min-width: 0; }
.integ-title h2 { margin: 0 0 2px; }
.integ-title p { margin: 0; }
.integ-head .badge { flex: none; }
.integ-grid { display: grid; gap: 14px 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.integ-grid .field { margin: 0; min-width: 0; display: grid; gap: 6px; align-content: start; }
.integ-grid .field > label:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.integ-grid .field input:not([type="checkbox"]) { width: 100%; }
.integ-grid .help { margin: 0; }
.integ-wide { grid-column: 1 / -1; }
.integ-src { font-size: .7rem; font-weight: 650; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.integ-src-panel { background: var(--primary-soft); color: var(--primary); }
.integ-note { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.integ-code { overflow-wrap: anywhere; white-space: normal; }
.integ-save { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-2); backdrop-filter: blur(8px); }
.model-pick { display: grid; gap: 8px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--line); }
.model-pick p { margin: 0; }
.model-pick .icon { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; }
.mp-current { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mp-logo { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 1rem; }
.mp-logo .icon { width: 18px; height: 18px; }
.mp-cur-text { display: grid; gap: 1px; min-width: 0; flex: 1 1 180px; }
.mp-cur-text strong { overflow-wrap: anywhere; }
.mp-panel { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.mp-search { position: relative; }
.mp-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.model-pick .mp-search .icon { vertical-align: 0; }
.mp-search input { padding-left: 38px; width: 100%; }
.mp-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.mp-chips .chip { flex: none; }
.mp-chips .chip[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink, #fff); border-color: var(--primary); }
.mp-list { list-style: none; margin: 0; padding: 4px; display: grid; gap: 4px; max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overscroll-behavior: contain; }
.mp-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.mp-item .mp-logo { width: 32px; height: 32px; border-radius: 9px; font-size: .9rem; }
.mp-item:hover, .mp-item.is-active { background: var(--surface-2); }
.mp-item[aria-selected="true"] { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); }
.mp-item .badge { margin-left: auto; }
.mp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mp-foot > span { margin-right: auto; }
.mp-raw { margin-top: 4px; }
.model-pick-test { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 719px) {
  .integ-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 0 4px 4px; }
  .integ-nav .chip { flex: none; }
  .integ-save { bottom: calc(var(--bottomnav-h, 0px) + 8px); }
}
.ai-found { margin-top: 6px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.ai-found[hidden] { display: none; }
.ai-found p { margin: 0 0 6px; font-weight: 600; }
.ai-found ul { margin: 0; padding-left: 1.1rem; max-height: 12rem; overflow: auto; columns: 2 220px; font-family: var(--font-mono, ui-monospace, monospace); font-size: .8rem; }
.ai-rerun { display: grid; gap: 10px; }
.ai-rerun-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ai-rerun-bar .chip { cursor: pointer; }
.ai-items .ai-check { width: 2.2rem; text-align: center; }
.ai-items tbody tr:has(input[name="ids[]"]:checked) { background: var(--primary-soft); }
.ai-items tbody tr:has(input[name="ids[]"]:not(:disabled)) { cursor: pointer; }
.ai-rerun-run { display: grid; gap: 8px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.ai-rerun-run h3 { margin: 0; }
.ai-rerun-opts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; }
.ai-rerun-model { display: grid; gap: 4px; min-width: min(100%, 280px); }
.ai-rerun-run .btn { justify-self: start; }
.admin-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gl-thumb { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: 8px; margin-top: 4px; }
.ai-items .ai-when { white-space: nowrap; }
.ai-rerun-bar .chip[aria-current="page"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.ai-rerun-bar input[type="search"] { flex: 1 1 200px; min-width: 0; }

/* ---------------------------------------------------------------- karty „nowości” i „na zamówienie” */
.sc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.sc-card a { display: grid; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast); }
.sc-card a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.sc-photo { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.sc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-noimg { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 16px; }
.sc-noimg .icon { width: 26px; height: 26px; }
.sc-src { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / 55%); color: #fff; font-size: .7rem; font-weight: 600; }
.sc-src .icon { width: 11px; height: 11px; }
.sc-badge { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.sc-badge .icon { width: 13px; height: 13px; }
.sc-badge-new { background: var(--coral); color: #fff; }
.sc-badge-verified { background: var(--success-soft); color: var(--success); }
.sc-badge-mobile { background: var(--primary); color: var(--primary-ink); }
.sc-body { display: grid; gap: 4px; padding: 10px 12px 12px; align-content: start; }
.sc-meta { font-size: .75rem; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-name { font-size: 1rem; line-height: 1.25; }
.sc-desc { font-size: .88rem; color: var(--ink-2); }
.sc-foot { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; margin-top: 2px; }
.sc-rate { font-weight: 700; }
.sc-rate > span[aria-hidden] { color: #f5a623; }

/* przyciski-wybory (okazje) */
.chip-radio { position: relative; display: inline-flex; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; transition: background var(--t-fast), border-color var(--t-fast); }
.chip-radio input:checked + span { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* strona główna: atrakcje na zamówienie */
.lp-order { display: grid; gap: 18px 28px; margin-top: 48px; padding: 28px; border-radius: 28px; background: linear-gradient(135deg, color-mix(in srgb, var(--coral) 16%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.lp-order h2 { margin: 0 0 6px; }
.lp-order p { margin: 0; color: var(--ink-2); }
.lp-order-form { display: grid; gap: 12px; }
.lp-order-occ { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-order-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-order-row input { flex: 1 1 220px; min-width: 0; }
@media (min-width: 900px) { .lp-order { grid-template-columns: 1fr 1.2fr; align-items: center; } }

/* strona główna: zgłoś miejsce */
.lp-submit { display: grid; gap: 18px 28px; margin-top: 48px; padding: 28px; border-radius: 28px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line)); }
.lp-submit h2 { margin: 0 0 6px; }
.lp-submit p { margin: 0; color: var(--ink-2); }
.lp-submit-form { display: grid; gap: 12px; }
.lp-submit-form .field { margin: 0; }
@media (min-width: 900px) { .lp-submit { grid-template-columns: 1fr 1.4fr; align-items: start; } }

/* strona „Atrakcje na zamówienie” */
.on-order { max-width: 1120px; margin: 0 auto; padding: 12px 16px 56px; display: grid; gap: 14px; }
.oo-head h1 { margin: 6px 0; }
.oo-search { display: grid; gap: 12px; }
.oo-occasions { display: flex; flex-wrap: wrap; gap: 8px; }
.oo-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.oo-field { display: grid; gap: 4px; flex: 1 1 200px; }
.limits-table input { width: 7rem; }

/* ---------- Reklamy (promowane oferty) ---------- */
.sc-badge-ad { background: var(--ink); color: var(--surface); text-transform: uppercase; letter-spacing: .04em; }
.sc-ad > a { outline-offset: 2px; }
.sc-ad .sc-photo { background: var(--primary-soft); }
.ad-cell { display: flex; gap: 10px; align-items: center; }
.ad-cell img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.ad-cell > span { display: grid; gap: 2px; min-width: 0; }
.ad-cell .small { overflow-wrap: anywhere; }
.ad-preview { max-width: 240px; height: auto; border-radius: 10px; }
.ad-when { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; margin: 0; }
.ad-kpis { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ad-kpis li { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: grid; }
.ad-kpis strong { font-size: 1.4rem; }
.ad-kpis span { font-size: .82rem; color: var(--ink-2); }
.ad-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 14px; }
.ads-table td { vertical-align: middle; }

/* ---------- Pola plików (strefa przeciągnij/wybierz) ---------- */
.fu { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 2px dashed var(--line); border-radius: 16px; background: var(--surface-2); transition: border-color .15s, background-color .15s; cursor: pointer; }
.fu:hover, .fu.is-drag { border-color: var(--primary); background: var(--primary-soft); }
.fu:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.fu input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.fu-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary); color: var(--primary-ink, #fff); }
.fu-icon .icon { width: 22px; height: 22px; }
.fu-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.fu-text strong { font-size: .95rem; line-height: 1.3; }
.fu-hint { font-size: .8rem; color: var(--ink-2); }
.fu-btn { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .85rem; }
.fu-list { display: grid; gap: 8px; margin-top: 8px; }
.fu-list:empty { display: none; }
.fu-item { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.fu-item img, .fu-file { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.fu-file { display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .75rem; }
.fu-meta { display: grid; min-width: 0; flex: 1; }
.fu-name { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-size { font-size: .8rem; color: var(--ink-2); }
.fu-item.is-error, .fu-item.is-over { border-color: var(--danger); }
.fu-item.is-error .fu-size, .fu-item.is-over .fu-size { color: var(--danger); font-weight: 600; }
.fu-item.is-over img { opacity: .45; }
.fu-remove { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.fu-remove:hover { background: var(--danger-soft); color: var(--danger); }
.fu-remove .icon { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .fu { padding: 14px; gap: 12px; }
  .fu-btn { display: none; }
}

/* ==========================================================================
   TELEFONY 2026 — krótsza strona główna (przewijane karuzele), kompaktowe formularze,
   mniejszy baner cookies, wygodne pola i filtry w jednym przewijanym wierszu.
   ========================================================================== */
.add-map-wrap { position: relative; isolation: isolate; }
@media (max-width: 639px) {
  /* karuzele na stronie głównej: nowości, promowane, wydarzenia, funkcje, kroki */
  .landing .sc-grid, .lp-events, .lp-features, .lp-steps {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: -12px; padding: 4px 12px 12px; scroll-padding-inline: 12px;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .landing .sc-grid::-webkit-scrollbar, .lp-events::-webkit-scrollbar, .lp-features::-webkit-scrollbar, .lp-steps::-webkit-scrollbar { display: none; }
  .landing .sc-grid > li, .lp-events > li { flex: 0 0 74%; scroll-snap-align: start; }
  .lp-features > li, .lp-steps > li { flex: 0 0 82%; scroll-snap-align: start; }
  .landing .sc-photo { aspect-ratio: 16 / 10; }
  /* kategorie i miasta w dwóch kolumnach */
  .lp-cats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lp-cat { padding: 8px 10px 8px 8px; gap: 8px; font-size: .88rem; border-radius: 14px; }
  .lp-cat .cat-dot { width: 32px; height: 32px; flex: none; }
  .lp-cat-n { font-size: .72rem; padding: 1px 6px; }
  .lp-cities { grid-template-columns: 1fr 1fr; }
  .lp-cities a { gap: 8px; }
  .lp-cities .small { white-space: nowrap; margin-left: auto; }
  .lp-cat-name { white-space: normal; overflow: visible; line-height: 1.2; }
  .lp-section-head { align-items: center; }
  .lp-section-head h2 { font-size: 1.35rem; }
  /* filtry jako jeden przewijany wiersz */
  .ev-chips, .oo-occasions, .lp-order-occ {
    flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none;
  }
  .ev-chips::-webkit-scrollbar, .oo-occasions::-webkit-scrollbar, .lp-order-occ::-webkit-scrollbar { display: none; }
  .ev-chips > *, .oo-occasions > *, .lp-order-occ > * { flex: none; }
  .oo-fields .btn, .lp-order-row .btn { flex: 1 1 100%; justify-content: center; }
  /* karty i formularze: mniej pustego miejsca */
  .card { padding: 16px; border-radius: 18px; }
  .admin-main .card { padding: 16px; }
  .suggest-form fieldset.card { padding: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .sticky-actions { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .sticky-actions .btn { flex: 1; justify-content: center; }
  /* wygodne pola: 16 px (bez powiększania strony na iPhonie) i wyższe przyciski */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px; }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 38px; }
  /* baner cookies: mniejszy, przyciski obok siebie */
  .cookie-banner { left: 8px; right: 8px; bottom: calc(var(--bottomnav-h) + 8px); }
  .cookie-card { padding: 14px 16px; border-radius: 18px; }
  .cookie-card h2, .cookie-card .h4 { font-size: 1rem; margin-bottom: 4px; }
  .cookie-card p { font-size: .85rem; line-height: 1.45; margin-bottom: 10px; }
  .cookie-actions { grid-template-columns: 1fr 1fr; gap: 6px; }
  .cookie-actions .btn { min-height: 40px; padding: 8px 10px; font-size: .88rem; }
  .cookie-actions [data-cookie-customize] { grid-column: 1 / -1; order: 3; min-height: 34px; background: none; border: 0; box-shadow: none; text-decoration: underline; color: var(--ink-2); }
  .cookie-actions [data-cookie-save] { grid-column: 1 / -1; }
  /* panel admina */
  .admin-head { gap: 8px; }
  .admin-head-actions { width: 100%; }
  .table-compact th, .table-compact td { padding: 8px 6px; }
  .inline-form { display: inline-flex; }
  .ad-kpis strong { font-size: 1.15rem; }
  .mp-list { max-height: 55vh; }
}

/* ---------- Miasta: województwa ---------- */
.woj-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.woj-chips .chip { text-decoration: none; }
.woj-chips .chip[aria-current="page"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.city-name { display: grid; gap: 1px; min-width: 0; }
.city-region { font-size: .75rem; font-weight: 500; color: var(--ink-2); }
@media (max-width: 639px) {
  .woj-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .woj-chips::-webkit-scrollbar { display: none; }
  .woj-chips .chip { flex: none; }
  .city-list { grid-template-columns: 1fr 1fr; }
  .city-list a { padding: 10px 12px; }
}
.pending-banner { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--danger); font-weight: 500; }
.pending-banner span { flex: 1; }
.pending-banner:hover { filter: brightness(.97); }

/* ==========================================================================
   Weryfikacja zmian 2026 — karty z paskiem rodzaju, filtry w wierszach, przyciski decyzji przyklejone na telefonie
   ========================================================================== */
.rv { position: relative; overflow: clip; gap: 12px; }
.rv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--primary); }
.rv-kind-new::before { background: var(--success); }
.rv-kind-hide::before { background: var(--danger); }
.rv .sugg-head { align-items: flex-start; }
.rv .sugg-thumb { width: 52px; height: 52px; border-radius: 14px; }
.rv .sugg-title h2 { font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.rv .sugg-title p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; line-height: 1.5; }
.rv-filters { padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); gap: 8px; }
.rv-chips { align-items: center; gap: 6px; }
.rv-chips-label { flex: none; min-width: 58px; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.rv-chips .chip.is-active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.rv-chips .chip.is-active .chip-count { background: var(--primary-ink); color: var(--primary); }
.rv-rows { border-radius: 14px; }
.rv-row { padding: 10px 14px; }
.rv-more-fields { margin: -4px 0 4px; }
.rv-more-fields > summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; cursor: pointer; font-weight: 650; color: var(--primary); list-style: none; }
.rv-more-fields > summary::-webkit-details-marker { display: none; }
.rv-more-fields > summary .icon { width: 16px; height: 16px; transition: transform var(--t-fast); }
.rv-more-fields[open] > summary .icon { transform: rotate(180deg); }
.rv-more-fields .rv-rows { margin-top: 6px; }
.rv-note > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .88rem; color: var(--ink-2); list-style: none; }
.rv-note > summary::-webkit-details-marker { display: none; }
.rv-note > summary .icon { width: 15px; height: 15px; }
.rv-note .input { margin-top: 8px; width: 100%; }
.rv-actions { justify-content: flex-end; }
.rv-actions .btn-danger { margin-right: auto; }
@media (max-width: 719px) {
  .rv { padding: 14px 14px 0 18px; }
  .rv-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; }
  .rv-chips::-webkit-scrollbar { display: none; }
  .rv-chips > * { flex: none; }
  .rv-bulk { flex-direction: column; align-items: stretch; }
  .rv-row { grid-template-columns: 1fr; gap: 6px; padding: 10px 12px; }
  .rv-row-label { float: none; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
  .rv-custom, .rv-row .diff-stale, .rv-row .rv-prev { grid-column: 1; }
  .rv-seg { display: flex; width: 100%; }
  .rv-seg label { flex: 1; }
  .rv-seg span { text-align: center; padding: 9px 8px; font-size: .85rem; }
  .rv-diff { font-size: .95rem; }
  .rv-actions { position: sticky; bottom: 0; z-index: 3; margin: 0 -14px 0 -18px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .rv-actions .btn { width: 100%; justify-content: center; min-height: 46px; padding-inline: 8px; font-size: .9rem; }
  .rv-actions .btn-primary { grid-column: 1 / -1; order: -1; }
  .rv-actions .btn-danger { margin: 0; }
  .dup-actions .inline-form, .dup-actions .btn { width: 100%; }
  .dup-actions .btn { justify-content: center; }
  .photo-pick { grid-template-columns: repeat(2, 1fr); }
}
.submitter { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; color: var(--ink-2); }
.submitter .icon { width: 14px; height: 14px; }
.submitter code { font-size: .8rem; }
td .submitter { margin-top: 4px; }

/* ---------- Strona główna: wydarzenia (najbliższe / nowo dodane, w okolicy) ---------- */
.lp-ev-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 6px; }
.lp-ev-tabs .chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.lp-ev-tabs .chip .icon { width: 15px; height: 15px; }
.lp-ev-tabs .chip[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.lp-ev-all { margin-left: auto; font-weight: 650; }
.sc-badge-date { background: var(--surface); color: var(--coral); }
.sc-badge-right { left: auto; right: 8px; }
.sc-event .sc-noimg { background: color-mix(in srgb, var(--coral) 16%, var(--surface)); color: var(--coral); }
[data-lp-ev-list][aria-busy="true"] { opacity: .5; transition: opacity var(--t-fast); }
.lp-ev-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 18px; background: var(--surface); }
.lp-ev-empty p { margin: 0; flex: 1 1 260px; color: var(--ink-2); }
.sc-grid:empty { display: none; }
.rv-check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-size: .85rem; }
.rv-check-label { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink-2); }
.rv-check a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.rv-check a:hover { border-color: var(--primary); }
.rv-check .icon, .rv-link .icon { width: 14px; height: 14px; }
.rv-link { display: inline-flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
@media (min-width: 900px) { .rv-rows-new { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; } .rv-rows-new .rv-row { grid-template-columns: 1fr; border-right: 1px solid var(--line); } }
@media (max-width: 719px) { .rv-check { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .rv-check a { flex: none; } }
.rv-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; }
.rv-search-box { position: relative; flex: 1 1 320px; }
.rv-search-box .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-2); pointer-events: none; }
.rv-search-box .input { width: 100%; padding-left: 38px; min-height: 44px; }
.export-menu { position: relative; }
.export-menu > summary { list-style: none; cursor: pointer; }
.export-menu > summary::-webkit-details-marker { display: none; }
.export-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(340px, 90vw); display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.export-pop a { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.export-pop a:hover { background: var(--surface-2); }
.export-pop a > span { display: grid; gap: 2px; }
.export-pop .icon { flex: none; margin-top: 2px; color: var(--primary); }

/* ==========================================================================
   Pulpit 2026 — powitanie z szybkimi akcjami, duże kafle „Do zrobienia”, tydzień i kolejka zgłoszeń
   ========================================================================== */
.dash-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.dash-hero h1 { margin: 2px 0 4px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.dash-hero p { margin: 0; }
.dash-date { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-action { display: grid; justify-items: center; gap: 6px; min-width: 92px; padding: 12px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .82rem; font-weight: 650; box-shadow: var(--shadow-1); transition: transform var(--t-fast), border-color var(--t-fast); }
.dash-action:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--ink); }
.dash-action .icon { width: 22px; height: 22px; color: var(--primary); }
.dash-label { margin: 18px 0 8px; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.dash-todo { margin: 0; }
.dash-todo .todo-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.dash-todo .todo { padding: 14px 16px; border-radius: 16px; border-left-width: 1px; box-shadow: var(--shadow-1); background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 10%, var(--surface)), var(--surface)); }
.dash-todo .todo-icon { width: 42px; height: 42px; border-radius: 14px; }
.todo-text { display: grid; flex: 1; min-width: 0; }
.dash-todo .todo strong { font-size: 1.6rem; line-height: 1; letter-spacing: -.03em; }
.todo-text > span { color: var(--ink-2); font-size: .86rem; }
.dash-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; margin-top: 16px; }
.week-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.week-stats li { display: grid; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.week-stats strong { font-size: 1.4rem; letter-spacing: -.02em; }
.week-stats span { font-size: .8rem; color: var(--ink-2); }
.ai-week { display: grid; gap: 6px; }
.ai-week p { margin: 0; display: flex; align-items: center; gap: 6px; }
.ai-week .icon { width: 15px; height: 15px; color: var(--primary); }
.ai-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.ai-bar-ok { background: var(--success); } .ai-bar-skip { background: #f59e0b; } .ai-bar-err { background: var(--danger); }
.recent-list { list-style: none; margin: 0; padding: 0; display: grid; }
.recent-list a { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.recent-list li:last-child a { border-bottom: 0; }
.recent-list a:hover { background: var(--surface-2); }
.recent-main { display: grid; flex: 1; min-width: 0; }
.recent-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.recent-new { background: var(--success); } .recent-upd { background: var(--primary); }
@media (max-width: 899px) { .dash-row { grid-template-columns: 1fr; } }
@media (max-width: 639px) {
  .dash-hero { padding: 18px 16px; }
  .dash-actions { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .dash-action { min-width: 0; }
  .kpi-strip { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Karta miejsca i wydarzenia 2026 — równa siatka akcji na telefonie, przyklejony panel boczny,
   fakty wydarzenia w kafelkach, plakietka z datą na zdjęciu, stopka w karcie
   ========================================================================== */
.place .actions .btn-staff, .ev-actions .btn-staff { border-style: dashed; }
@media (min-width: 900px) {
  .place-side { position: sticky; top: 84px; align-self: start; }
  .place .actions a[href$="/zaproponuj-zmiany"], .ev-actions a[href$="/zaproponuj-zmiany"] { margin-left: auto; --btn-bg: transparent; }
}
@media (max-width: 719px) {
  .place .actions, .ev-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; margin: 0 0 14px; padding: 0; }
  .place .actions .btn, .ev-actions .btn { flex-direction: column; justify-content: center; gap: 4px; min-height: 64px; padding: 8px 4px; border-radius: 16px; font-size: .78rem; line-height: 1.15; text-align: center; white-space: normal; }
  .place .actions .btn .icon, .ev-actions .btn .icon { width: 20px; height: 20px; margin: 0; }
  .place .actions .btn-primary, .ev-actions .btn-primary { grid-column: span 1; }
}
.place-foot { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.place-foot p { margin: 0; padding: 4px 0; }

/* wydarzenie */
.event .place-hero { position: relative; }
.ev-badge { position: absolute; left: 14px; top: 14px; display: grid; justify-items: center; min-width: 64px; padding: 8px 10px; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); line-height: 1; z-index: 1; }
.ev-badge b { font-size: 1.7rem; letter-spacing: -.03em; }
.ev-badge span { margin-top: 3px; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--coral); }
.event .place-photo { border-radius: 22px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ev-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; margin: 4px 0 14px; }
.ev-facts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; min-width: 0; }
.ev-facts li .icon { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral); }
.ev-facts li span { min-width: 0; overflow-wrap: anywhere; }
.event .section { margin-top: 12px; }
.event .section > h2 { margin: 0 0 10px; font-size: 1.15rem; }
.ev-dates li { padding: 8px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 600; font-size: .92rem; }
@media (max-width: 639px) {
  .event .place-photo { border-radius: 18px; }
  .ev-facts { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Komunikaty 2026 — przewiewne, z ikoną w kółku i paskiem koloru; na telefonie na całą szerokość
   ========================================================================== */
.toast { align-items: flex-start; gap: 12px; padding: 14px 10px 14px 14px; width: min(520px, calc(100vw - 24px)); max-width: none;
  border-radius: 18px; border: 1px solid var(--line); border-left: 5px solid var(--primary); box-shadow: 0 18px 40px -18px rgb(0 0 0 / 45%), var(--shadow-2);
  font-size: .95rem; line-height: 1.5; animation: toast-pop .35s cubic-bezier(.2, .9, .3, 1.3); }
.toast > .icon:first-child { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.toast > span { flex: 1; min-width: 0; padding-top: 5px; overflow-wrap: anywhere; }
.toast .icon-btn { flex: none; margin-top: 0; }
.toast-success { border-left-color: var(--success); }
.toast-success > .icon:first-child { background: var(--success-soft); color: var(--success); }
.toast-error { border-color: var(--line); border-left-color: var(--danger); }
.toast-error > .icon:first-child { background: var(--danger-soft); color: var(--danger); }
.toast-info > .icon:first-child { background: var(--primary-soft); color: var(--primary); }
@keyframes toast-pop { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
.alert { padding: 14px 16px; gap: 12px; line-height: 1.5; border-radius: 16px; }
.alert > .icon:first-child { flex: none; margin-top: 2px; }
.alert p { margin: 4px 0 0; }

/* ---------- „Znasz fajne miejsce?” ---------- */
.lp-submit { gap: 22px 32px; padding: 28px; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 12%, var(--surface)), var(--surface) 60%); }
.lp-submit-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.lp-submit-badge .icon { width: 14px; height: 14px; }
.lp-submit-text h2 { margin: 0 0 6px; }
.lp-submit-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.lp-submit-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; line-height: 1.4; }
.lp-submit-steps li > span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: 800; font-size: .9rem; }
.lp-submit-form { gap: 14px; padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.lp-url { position: relative; display: block; }
.lp-url .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-2); pointer-events: none; }
.lp-url input { width: 100%; min-height: 52px; padding-left: 44px !important; font-size: 1rem; }
.lp-src-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lp-src-chips > span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.lp-src-chips .icon { width: 12px; height: 12px; }
.lp-or { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.lp-or::before, .lp-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lp-more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 650; color: var(--primary); list-style: none; }
.lp-more > summary::-webkit-details-marker { display: none; }
.lp-more > summary .icon { width: 16px; height: 16px; transition: transform var(--t-fast); }
.lp-more[open] > summary .icon { transform: rotate(45deg); }
.lp-more[open] { display: grid; gap: 12px; }
.lp-submit-btn { width: 100%; justify-content: center; min-height: 50px; font-size: 1rem; }
@media (max-width: 639px) {
  .lp-submit { padding: 20px 16px; border-radius: 24px; }
  .lp-submit-form { padding: 16px; }
}

/* ---------- hero na telefonie: wyszukiwarka bez uciętego tekstu ---------- */
@media (max-width: 479px) {
  .lp-search .btn { padding-inline: 12px; }
  .lp-search input::placeholder { font-size: .92rem; }
  .lp-hero-art { max-width: 160px; }
  .lp-bubble { width: 44px; height: 44px; border-radius: 14px; }
  .lp-bubble .cat-dot { width: 28px; height: 28px; }
}

/* ---------- stopka 2026 ---------- */
.footer-inner { padding: 36px 16px 24px; gap: 22px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.footer-about { display: grid; gap: 8px; align-content: start; }
.footer-about .footer-tagline { margin: 0; color: var(--ink-2); font-size: .92rem; max-width: 30ch; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.site-footer .footer-col { display: grid; gap: 8px; align-content: start; }
.footer-h { margin: 0 0 2px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.site-footer .footer-col a, .site-footer .footer-col .link-btn { color: var(--ink-2); font-size: .92rem; text-decoration: none; text-align: left; padding: 2px 0; }
.site-footer .footer-col a:hover, .site-footer .footer-col .link-btn:hover { color: var(--primary); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); }
.footer-licenses { flex: 1 1 320px; text-align: right; }
.footer-licenses > summary { cursor: pointer; display: inline-block; }
.footer-licenses[open] { text-align: left; }
.footer-licenses p { margin: 8px 0 0; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 899px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 479px) {
  .footer-top { gap: 20px 12px; }
  .footer-licenses { text-align: left; flex-basis: 100%; }
  .footer-cta .btn { flex: 1; justify-content: center; }
}
@media (max-width: 639px) {
  .lp-steps li { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .lp-steps .lp-step-n { grid-row: auto; }
  .lp-steps h3 { font-size: 1.05rem; }
  .lp-features .lp-feature { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .lp-features .lp-feature-icon { grid-row: auto; }
}
.io-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.io-card { position: relative; display: grid; gap: 10px; align-content: start; }
.io-card h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.io-card h2 .icon { color: var(--primary); }
.io-step { position: absolute; right: 14px; top: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.io-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.io-tips { margin: 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.5; }
.io-diff del { color: var(--danger); text-decoration-thickness: 1px; }
.io-diff ins { color: var(--success); text-decoration: none; font-weight: 600; }
.io-confirm { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ==========================================================================
   Karta miejsca 2026 — gwiazdki z animacją, karty ocen, galeria (lightbox), animacja odkrywania kontaktu
   ========================================================================== */
/* gwiazdki: szara gwiazdka + złote wypełnienie (pełne / połowa), wypełnianie po kolei */
.rstars { display: inline-flex; gap: 2px; vertical-align: middle; line-height: 1; --star: 18px; }
.rstars .st { position: relative; width: var(--star); height: var(--star); display: inline-block; }
.rstars .st::before, .rstars .st::after { content: "\2605"; position: absolute; inset: 0; font-size: var(--star); line-height: 1; font-style: normal; }
.rstars .st::before { color: color-mix(in srgb, var(--ink-2) 28%, transparent); }
.rstars .st::after { color: #f5a524; overflow: hidden; width: 0; }
.rstars .st-full::after { width: 100%; }
.rstars .st-half::after { width: 50%; }
.rstars-sm { --star: 14px; }
.rstars-lg { --star: 26px; gap: 3px; }
.rstars-empty .st::before { color: color-mix(in srgb, #f5a524 45%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .rstars .st { animation: star-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
  .rstars .st::after { animation: star-fill .5s ease-out both; }
  .rstars .st:nth-child(1), .rstars .st:nth-child(1)::after { animation-delay: .05s; }
  .rstars .st:nth-child(2), .rstars .st:nth-child(2)::after { animation-delay: .13s; }
  .rstars .st:nth-child(3), .rstars .st:nth-child(3)::after { animation-delay: .21s; }
  .rstars .st:nth-child(4), .rstars .st:nth-child(4)::after { animation-delay: .29s; }
  .rstars .st:nth-child(5), .rstars .st:nth-child(5)::after { animation-delay: .37s; }
  .rate-card:hover .rstars .st { animation: star-wiggle .5s ease both; }
}
@keyframes star-pop { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
@keyframes star-fill { from { width: 0; } }
@keyframes star-wiggle { 40% { transform: scale(1.18) rotate(8deg); } }

/* karty ocen w nagłówku */
.rate-cards { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 4px; }
.rate-card { display: grid; gap: 4px; min-width: 150px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1); transition: transform var(--t-fast), border-color var(--t-fast); }
.rate-card:hover { transform: translateY(-2px); border-color: #f5a524; color: var(--ink); }
.rate-src { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.rate-src .icon { width: 14px; height: 14px; }
.rate-logo { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; background: var(--primary); color: var(--primary-ink); font-size: .65rem; }
.rate-main { display: flex; align-items: center; gap: 8px; }
.rate-num { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.rate-count { font-size: .8rem; color: var(--ink-2); }
.rate-empty .rate-count { color: var(--primary); font-weight: 650; }

/* podsumowanie opinii i Google */
.rvw-score strong { font-size: 2.8rem; }
.gplace-scorebox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.gplace-score { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.gplace-review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .82rem; }
.gplace-open { display: block; cursor: zoom-in; }

/* galeria (lightbox) */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 2000; display: grid; grid-template-rows: auto 1fr auto; background: rgb(8 10 12 / 94%); color: #fff; opacity: 0; transition: opacity .2s ease; touch-action: pan-y; }
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; }
.lb-count { font-weight: 700; font-size: .9rem; opacity: .85; }
.lb-stage { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 0; }
.lb-fig { margin: 0; display: grid; justify-items: center; gap: 10px; min-height: 0; height: 100%; align-content: center; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 190px); object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgb(0 0 0 / 50%); user-select: none; -webkit-user-drag: none; }
.lb-cap { font-size: .85rem; opacity: .85; text-align: center; padding: 0 12px; }
.lb-cap a { color: #fff; text-decoration: underline; }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 8px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 12%); color: #fff; cursor: pointer; transition: background .15s, transform .15s; }
.lb-btn:hover { background: rgb(255 255 255 / 24%); transform: scale(1.06); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px 16px; scrollbar-width: none; justify-content: safe center; }
.lb-thumb { flex: none; width: 58px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #222; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.lb-thumb[aria-current="true"] { opacity: 1; border-color: #fff; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-in { animation: lb-zoom .28s ease both; }
.lb-in-r { animation: lb-from-r .28s ease both; }
.lb-in-l { animation: lb-from-l .28s ease both; }
@keyframes lb-zoom { from { opacity: 0; transform: scale(.94); } }
@keyframes lb-from-r { from { opacity: 0; transform: translateX(40px); } }
@keyframes lb-from-l { from { opacity: 0; transform: translateX(-40px); } }
@media (max-width: 639px) {
  .lb-stage { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 40px; height: 40px; background: rgb(0 0 0 / 35%); }
  .lb-prev { left: 0; } .lb-next { right: 0; }
  .lb-img { max-height: calc(100dvh - 170px); border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .lb-in, .lb-in-r, .lb-in-l { animation: none; } .lb { transition: none; } }
.pl-shot, .gallery a { cursor: zoom-in; }

/* odkrywanie telefonu i e-maila */
.is-revealing { position: relative; pointer-events: none; }
.is-revealing .icon { animation: ring .5s ease-in-out infinite; }
@keyframes ring { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.reveal-pop { animation: reveal-pop .6s cubic-bezier(.2, 1.3, .4, 1) both; border-radius: 8px; }
a.reveal-pop:not(.btn) { display: inline-block; padding: 2px 6px; margin: -2px -6px; font-weight: 700; letter-spacing: .01em; }
@keyframes reveal-pop {
  0% { opacity: 0; transform: translateY(6px) scale(.9); filter: blur(4px); background: color-mix(in srgb, var(--primary) 35%, transparent); }
  60% { opacity: 1; transform: none; filter: none; background: color-mix(in srgb, var(--primary) 22%, transparent); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .reveal-pop, .is-revealing .icon { animation: none; } }

/* przejrzystość i brak wychodzenia poza pola */
.place .section { min-width: 0; overflow-wrap: anywhere; }
.place .link-list a, .place .link-list .link-btn { min-width: 0; }
.place .link-list span, .place .with-icon span, .pl-tile-value, .coords { min-width: 0; overflow-wrap: anywhere; }
.place table.hours { width: 100%; table-layout: fixed; }
.place table.hours th { width: 46%; }
.pl-tile { min-width: 0; }
@media (max-width: 719px) {
  .rate-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .rate-card { min-width: 0; }
  .rate-num { font-size: 1.3rem; }
  .place .section { padding: 16px; border-radius: 18px; }
  .place-layout { gap: 10px; }
}

/* ==========================================================================
   Jednolite odstępy 2026 — w kontenerach z `gap` odstęp między elementami wyznacza wyłącznie `gap`
   (marginesy akapitów, legend, podpowiedzi i kart dodawały się do gap i dawały nierówne przerwy)
   ========================================================================== */
:root { --sp-field: 6px; --sp-form: 16px; --sp-card: 12px; --sp-page: 20px; }
.form, .integ-form, .admin-form fieldset.card, .suggest-form fieldset.card, .add-more-body { gap: var(--sp-form); }
.field { gap: var(--sp-field); }
.dash-card, .io-card, .sync-src { gap: var(--sp-card); }
.admin-main { gap: var(--sp-page); }
.admin-main > *, .form > *, .integ-form > *, .field > *, fieldset.card > *, form.card > *, .card.form > *,
.add-more-body > *, .dash-card > *, .io-card > *, .sync-src > *, .map-editor > *, .dash-row > *, .dash-grid > *,
.io-grid > *, .events-page > *, .on-order > *, .rv-list > * { margin-block: 0; }
:is(.admin-main, .form, .integ-form, .dash-grid, .dash-row, .io-grid) > .card + .card { margin-top: 0; }
/* legenda pływająca = zwykły element siatki, więc odstęp pod nią to gap (bez dodatkowego marginesu) */
.admin-form legend, .suggest-form legend, fieldset.field > legend, fieldset.card > legend { float: left; width: 100%; padding: 0; margin: 0; }
:is(.admin-form, .suggest-form, fieldset.field, fieldset.card) legend + * { clear: both; }
/* śródtytuł w karcie formularza: więcej miejsca nad, mniej pod */
:is(fieldset.card, form.card, .card.form, .add-more-body) > :is(h3, .h5):not(:first-child) { margin: 8px 0 -6px; }
/* etykieta sekcji pulpitu bliżej swojej treści */
.admin-main > .dash-label { margin: 4px 0 -10px; }
/* podtytuł pod nagłówkiem strony */
.admin-main > .admin-head + p.muted, .admin-main > h1 + p.muted { margin-top: -10px; }
/* ostatni element w karcie bez dolnego marginesu (karta ma własny padding) */
.card > :last-child, .section > :last-child { margin-bottom: 0; }
.card > :first-child, .section > :first-child { margin-top: 0; }
/* jedna szerokość kolumny na stronach-siatkach — przewijane rzędy chipów nie rozpychają strony */
.events-page, .on-order { grid-template-columns: minmax(0, 1fr); }
.events-filters > *, .ev-chips { min-width: 0; max-width: 100%; }
@media (max-width: 639px) {
  :root { --sp-form: 14px; --sp-card: 10px; --sp-page: 16px; }
  .admin-main > .dash-label { margin: 2px 0 -8px; }
  .card.add-more { padding: 0; }
  .add-more > summary { padding: 16px; }
  .add-more-body { padding: 0 16px 16px; }
}
.card.add-more { padding: 0; }
fieldset.card > legend { font-weight: 750; }
fieldset.card > legend.h4 { font-size: 1.05rem; }
@media (max-width: 639px) {
  .map-editor .actions { display: grid; gap: 6px; }
  .map-editor .actions .btn { width: 100%; }
}
.rv-search-box { flex: 1 1 220px; min-width: 0; }
@media (max-width: 639px) { .rv-search > .btn { flex: none; min-height: 44px; } }
@media (max-width: 639px) {
  .places-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .places-filters > .pf-search, .places-filters > .btn { grid-column: 1 / -1; }
  .places-filters > select.input, .places-filters > .cb, .places-filters > .input { width: 100%; max-width: none; min-width: 0; flex: none; }
}
/* długie napisy na przyciskach łamią się zamiast wychodzić poza ekran */
@media (max-width: 639px) {
  .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; padding-block: 6px; }
  .table .btn, .chip, .sticky-actions .btn, .form-actions .btn, .btn-sm { white-space: nowrap; }
  .sticky-actions .btn, .form-actions .btn { padding-block: 0; }
}
/* nagłówek strony wydarzenia: nadtytuł, tytuł i wstęp jeden pod drugim (nie w trzech kolumnach) */
.event .place-hero { grid-template-columns: minmax(0, 1fr); }
.event .place-headline { display: grid; gap: 8px; min-width: 0; }
.event .place-headline > * { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.event .place-headline .eyebrow { display: flex; align-items: center; gap: 8px; }

/* Telefon: hero bez rozpychania (większa czcionka systemowa) i zwarta stopka */
.lp-hero { grid-template-columns: minmax(0, 1fr); }
.lp-hero > *, .lp-hero-text > * { min-width: 0; }
@media (max-width: 639px) {
  .footer-inner { padding: 18px 16px 16px; gap: 14px; }
  .footer-about .footer-brand, .footer-about .footer-tagline { display: none; }
  .footer-about { gap: 0; }
  .footer-cta { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .footer-cta .btn { padding-inline: 8px; gap: 6px; font-size: .85rem; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 12px; }
  .site-footer .footer-col { gap: 0; }
  .footer-h { margin: 0 0 4px; font-size: .7rem; }
  .site-footer .footer-col a, .site-footer .footer-col .link-btn { font-size: .85rem; padding: 4px 0; line-height: 1.3; }
  .site-footer .footer-col:last-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; column-gap: 14px; }
  .site-footer .footer-col:last-child > .footer-h { flex-basis: 100%; }
  .footer-bottom { padding-top: 10px; font-size: .78rem; gap: 4px 16px; }
  .footer-licenses { flex-basis: auto; }
}
/* karty ocen: jednakowy nagłówek źródła (bez niebieskiej plakietki rozciągniętej na całą szerokość) */
.rate-card .rate-src { background: none; padding: 0; border-radius: 0; justify-self: start; color: var(--ink-2); }
/* „+ Dodaj uwagę…”: ikona przy pierwszej linii, gdy napis się zawija */
.lp-more > summary { align-items: flex-start; line-height: 1.35; }
.lp-more > summary .icon { margin-top: .12em; flex: none; }
@media (max-width: 719px) {
  /* podpis zdjęcia u góry, żeby nie wchodził pod przycisk „Wszystkie zdjęcia” */
  .pl-shot-src { top: 8px; bottom: auto; }
  .pl-hero-all { right: 10px; bottom: 10px; padding: 7px 12px; font-size: .8rem; }
}
@media (max-width: 639px) {
  .lp-submit { padding: 18px 12px; }
  .lp-submit-form { padding: 16px 14px; }
  .lp-submit-steps li { font-size: .95rem; }
  .lp-submit-steps li > span { width: 26px; height: 26px; font-size: .82rem; }
}
/* Weryfikacja: pola kontaktowe i linki jako piktogramy */
.rv-row-ico .rv-row-label { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); cursor: help; }
.rv-row-ico .rv-row-label .icon { width: 18px; height: 18px; }
.rv-row.rv-row-ico { grid-template-columns: 34px minmax(0, 1fr) auto; }
.rv-row-ico .rv-custom, .rv-row-ico .diff-stale, .rv-row-ico .rv-prev { grid-column: 2 / -1; }
@media (max-width: 639px) {
  .rv-row.rv-row-ico { grid-template-columns: 30px minmax(0, 1fr); gap: 8px 10px; }
  .rv-row-ico .rv-row-label { float: left; width: 30px; height: 30px; border-radius: 9px; }
  .rv-row-ico .rv-row-label .icon { width: 16px; height: 16px; }
  .rv-row-ico .rv-seg, .rv-row-ico .rv-custom, .rv-row-ico .diff-stale, .rv-row-ico .rv-prev { grid-column: 1 / -1; }
  .rv-row-ico .rv-diff { align-self: center; }
  /* „Sprawdź:” — same ikony */
  .rv-check { gap: 8px; }
  .rv-check-label { font-size: 0; gap: 0; }
  .rv-check-label .icon { width: 16px; height: 16px; }
  .rv-check a { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .rv-check a .icon { width: 18px; height: 18px; }
  .rv-check a > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 900px) { .rv-rows-new .rv-row.rv-row-ico { grid-template-columns: 34px minmax(0, 1fr); } .rv-rows-new .rv-row-ico .rv-seg { grid-column: 1 / -1; justify-self: start; } }
/* Weryfikacja: szybkie linki (strona, edytuj, historia, napisz) jako ikony z podpisem; krótkie etykiety przycisków na telefonie */
.rv-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.rv-quick a { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .8rem; font-weight: 650; text-decoration: none; }
.rv-quick a:hover { border-color: var(--primary); color: var(--primary); }
.rv-quick .icon { width: 15px; height: 15px; }
.rv-quick b { font-weight: 800; color: var(--primary); }
.lbl-short { display: none; }
@media (max-width: 639px) {
  .rv-quick a { width: 36px; height: 36px; min-height: 0; padding: 0; justify-content: center; position: relative; }
  .rv-quick a > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rv-quick a:has(b) { width: auto; padding: 0 10px; }
  .rv-actions .lbl-full { display: none; }
  .rv-actions .lbl-short { display: inline; }
  .rv-actions { display: flex; gap: 6px; }
  .rv-actions .btn { flex: 1 1 auto; width: auto; min-width: 0; padding-inline: 10px; gap: 6px; }
  .rv-actions .btn-primary { flex-grow: 1.6; }
  .rv-actions .btn-primary { grid-column: auto; order: 3; }
  .rv-actions .btn-danger { order: 1; }
  .rv-actions .btn-secondary { order: 2; }
  .rv-actions .btn { white-space: nowrap; font-size: .86rem; }
}
/* posty z Facebooka na karcie miejsca */
.fbfeed { display: grid; gap: 12px; }
.fbfeed h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.fbfeed h2 .icon { color: #1877f2; }
.fbfeed > p { margin: 0; }
.fbfeed > p a { display: inline-flex; align-items: center; gap: 4px; }
.fbfeed > p .icon { width: 14px; height: 14px; }
.fbfeed-box { display: grid; justify-items: center; min-width: 0; }
.fbfeed-gate { width: 100%; display: grid; gap: 10px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line); background: var(--surface-2); }
.fbfeed-gate p { margin: 0; }
.fbfeed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fbfeed-frame { display: block; width: 100%; max-width: 500px; height: 640px; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
/* Import AI: status „nie istnieje” */
.badge-muted { background: var(--surface-3); color: var(--ink-2); }

/* ==========================================================================
   Znak Tupigo 2026: pinezka z sercem — „tup, tup” (dwa kroki) i podskok, co kilka sekund
   ========================================================================== */
.tg-mark { overflow: visible; }
.tg-mark .tg-bg { fill: #1f6f5c; }
.tg-mark .tg-glow { fill: #2f9a7c; opacity: .55; }
.tg-mark .tg-shadow { fill: #0b2e26; opacity: .35; transform-box: fill-box; transform-origin: center; }
.tg-mark .tg-step { fill: #ffb4a8; }
.tg-mark .tg-pin-body { fill: #fff; }
.tg-mark .tg-heart { fill: #e8615a; transform-box: fill-box; transform-origin: center; }
.tg-mark .tg-pin { transform-box: view-box; transform-origin: 24px 34.6px; }
@media (prefers-reduced-motion: no-preference) {
  .tg-mark .tg-pin { animation: tg-hop 5.5s cubic-bezier(.3, .7, .4, 1) 1s infinite; }
  .tg-mark .tg-shadow { animation: tg-shadow 5.5s cubic-bezier(.3, .7, .4, 1) 1s infinite; }
  .tg-mark .tg-heart { animation: tg-beat 5.5s ease-in-out 1s infinite; }
  .tg-mark .tg-step-1 { animation: tg-step1 5.5s ease-out 1s infinite; }
  .tg-mark .tg-step-2 { animation: tg-step2 5.5s ease-out 1s infinite; }
  /* najechanie na logo: od razu jeden szybki podskok */
  .brand:hover .tg-mark .tg-pin, .brand:focus-visible .tg-mark .tg-pin { animation: tg-hop-now .7s cubic-bezier(.3, .7, .4, 1); }
  .brand:hover .tg-mark .tg-shadow, .brand:focus-visible .tg-mark .tg-shadow { animation: tg-shadow-now .7s cubic-bezier(.3, .7, .4, 1); }
}
@keyframes tg-step1 { 0%, 4% { opacity: .25; transform: translate(10.4px, 38.2px) rotate(-18deg) scale(.8); } 9% { opacity: 1; transform: translate(10.4px, 38.2px) rotate(-18deg) scale(1.15); } 13%, 80% { opacity: 1; transform: translate(10.4px, 38.2px) rotate(-18deg) scale(1); } 100% { opacity: .25; transform: translate(10.4px, 38.2px) rotate(-18deg) scale(.8); } }
@keyframes tg-step2 { 0%, 13% { opacity: .25; transform: translate(15.2px, 33.4px) rotate(8deg) scale(.8); } 18% { opacity: 1; transform: translate(15.2px, 33.4px) rotate(8deg) scale(1.15); } 22%, 80% { opacity: 1; transform: translate(15.2px, 33.4px) rotate(8deg) scale(1); } 100% { opacity: .25; transform: translate(15.2px, 33.4px) rotate(8deg) scale(.8); } }
@keyframes tg-hop {
  0%, 22% { transform: none; }
  26% { transform: translateY(1px) scale(1.08, .9); }
  34% { transform: translateY(-6px) scale(.95, 1.06); }
  41% { transform: translateY(0) scale(1.1, .88); }
  46% { transform: translateY(-1.6px) scale(.98, 1.03); }
  51%, 100% { transform: none; }
}
@keyframes tg-shadow { 0%, 26% { transform: none; opacity: .35; } 34% { transform: scale(.6); opacity: .18; } 41% { transform: scale(1.12); opacity: .4; } 51%, 100% { transform: none; opacity: .35; } }
@keyframes tg-beat { 0%, 40% { transform: none; } 45% { transform: scale(1.25); } 50% { transform: scale(.95); } 55%, 100% { transform: none; } }
@keyframes tg-hop-now { 0% { transform: none; } 20% { transform: translateY(1px) scale(1.08, .9); } 50% { transform: translateY(-6px) scale(.95, 1.06); } 75% { transform: translateY(0) scale(1.1, .88); } 100% { transform: none; } }
@keyframes tg-shadow-now { 50% { transform: scale(.6); opacity: .18; } 75% { transform: scale(1.12); } }
/* Import AI: wybór „Naraz” */
.ai-parallel { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--ink-2); }
.ai-parallel select { min-height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.ai-parallel .cb { min-width: 72px; }
/* wydarzenia: „za ile dni” */
.ev-countdown { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: .78rem; font-weight: 750; white-space: nowrap; }
.ev-countdown .icon { width: 13px; height: 13px; }
.ev-countdown.is-now { background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--coral); }
.ev-media .ev-countdown { position: absolute; top: 10px; right: 10px; background: var(--surface); box-shadow: var(--shadow-1); }
.ev-media .ev-countdown.is-now { background: var(--coral); color: #fff; }
.sc-badge-countdown { background: var(--surface); color: var(--primary); font-weight: 750; }
.sc-badge-countdown .icon { width: 12px; height: 12px; }
/* dodawanie wydarzenia: wybór wykrytych grafik */
.pick-dialog { border: 0; padding: 0; border-radius: 20px; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3, 0 20px 60px rgb(0 0 0 / 30%)); }
.pick-dialog::backdrop { background: rgb(8 12 10 / 55%); }
.pick-card { display: grid; gap: 12px; padding: 18px; }
.pick-card h2, .pick-card p { margin: 0; }
.pick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 50dvh; overflow: auto; }
.pick-tile { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); cursor: pointer; background: var(--surface-2); aspect-ratio: 4 / 3; }
.pick-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-tile input { position: absolute; opacity: 0; }
.pick-mark { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgb(0 0 0 / 35%); color: transparent; font-weight: 800; font-size: .85rem; }
.pick-tile:has(input:checked) { border-color: var(--primary); }
.pick-tile:has(input:checked) .pick-mark { background: var(--primary); color: var(--primary-ink); }
.pick-tile:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.pick-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 479px) { .pick-actions .btn { flex: 1 1 100%; } .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   Strona miasta 2026: nagłówek z liczbami, kolorowe pomysły na wyjście, nagłówki sekcji z piktogramami
   ========================================================================== */
.city-hero { position: relative; display: grid; gap: 16px; margin: 4px 0 28px; padding: 20px; border-radius: 24px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #2f9a7c 0%, transparent 55%), linear-gradient(135deg, #1f6f5c, #16584a); box-shadow: var(--shadow-2); }
.city-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgb(255 255 255 / 7%); pointer-events: none; }
.city-hero-title { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.city-hero-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgb(255 255 255 / 14%); }
.city-hero-icon .icon { width: 26px; height: 26px; }
.city-hero h1 { margin: 0; color: #fff; font-size: clamp(1.35rem, 4.5vw, 2rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.city-hero-region { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 4px; font-size: .8rem; font-weight: 700; opacity: .85; }
.city-hero-region .icon { width: 13px; height: 13px; }
.city-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: relative; z-index: 1; }
.city-stats a { display: grid; justify-items: start; gap: 2px; height: 100%; padding: 12px; border-radius: 16px; background: rgb(255 255 255 / 12%); color: #fff; text-decoration: none; transition: background var(--t-fast), transform var(--t-fast) var(--ease); }
.city-stats a:hover { background: rgb(255 255 255 / 20%); transform: translateY(-1px); color: #fff; }
.city-stats strong { font-size: 1.35rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.city-stats a > span:last-child { font-size: .78rem; line-height: 1.2; opacity: .88; }
.city-stat-icon { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 4px; border-radius: 10px; background: #fff; color: #1f6f5c; }
.city-stat-icon .icon { width: 16px; height: 16px; }
.city-stat-ev { color: var(--coral); }
.city-stat-cat { color: #b7791f; }
.city-hero-btn { position: relative; z-index: 1; justify-self: start; background: #fff; color: #1f6f5c; border-color: #fff; }
.city-hero-btn:hover { background: #f1f7f4; color: #16584a; }
.city-h { display: flex; align-items: center; gap: 8px; }
.city-h .icon { width: 20px; height: 20px; color: var(--primary); }
/* pomysły na wyjście: kolor i piktogram w kółku */
.idea { --idea: var(--primary); grid-template-columns: auto 1fr; column-gap: 12px; padding: 12px 14px; border-radius: 16px; }
.idea .idea-icon { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: color-mix(in srgb, var(--idea) 14%, var(--surface)); color: var(--idea); }
.idea .idea-icon .icon { width: 22px; height: 22px; color: inherit; margin: 0; }
.idea:hover { border-color: var(--idea); }
.idea-rain { --idea: #2b6cb0; }
.idea-outdoor { --idea: #2f855a; }
.idea-free { --idea: #b7791f; }
.idea-toddler { --idea: #d53f8c; }
.idea-birthday { --idea: #805ad5; }
.cat-tile { border-radius: 14px; }
.cat-tile-count { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); font-size: .82rem; }
@media (max-width: 639px) {
  .city-hero { padding: 16px; border-radius: 20px; gap: 14px; }
  .city-hero-icon { width: 44px; height: 44px; border-radius: 14px; }
  .city-stats a { padding: 10px; }
  .city-stats strong { font-size: 1.15rem; }
  .city-hero-btn { justify-self: stretch; justify-content: center; }
  .idea-grid { grid-template-columns: 1fr 1fr; }
  .idea { grid-template-columns: 1fr; padding: 12px; }
  .idea .idea-icon { grid-row: auto; margin-bottom: 8px; width: 38px; height: 38px; }
}

/* ==========================================================================
   Lista miast 2026: nagłówek z liczbami i wyszukiwarką, kolorowe karty dużych miast, zwarta lista pozostałych
   ========================================================================== */
.cities-hero { margin-bottom: 16px; }
.city-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.city-stat { display: grid; justify-items: start; gap: 2px; height: 100%; padding: 12px; border-radius: 16px; background: rgb(255 255 255 / 12%); color: #fff; }
.city-stat strong { font-size: 1.35rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.city-stat > span:last-child { font-size: .78rem; line-height: 1.2; opacity: .88; }
.cities-search { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 48px; border-radius: 14px; background: #fff; color: var(--ink-2, #55534d); box-shadow: 0 6px 20px rgb(0 0 0 / 12%); }
.cities-search .icon { flex: none; width: 18px; height: 18px; }
.cities-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: #1c1d1a; min-height: 46px; }
.cities-page .woj-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 22px; padding-bottom: 2px; }
.cities-page .woj-chips::-webkit-scrollbar { display: none; }
.cities-page .woj-chips .chip { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.cities-page .woj-chips .chip .icon { width: 15px; height: 15px; }
/* karty dużych miast */
.city-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.city-card { --hue: #1f6f5c; display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1);
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--hue) 10%, transparent), transparent 60%); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast); }
.city-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--hue) 45%, var(--line)); color: var(--ink); }
.city-card-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--hue); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--hue) 35%, transparent); }
.city-card-icon .icon { width: 22px; height: 22px; }
.city-card-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.city-card-name { font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.city-card-region { font-size: .78rem; color: var(--ink-2); }
.city-card-count { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--hue) 12%, var(--surface)); color: var(--hue); font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums; }
.city-card-count .icon { width: 13px; height: 13px; }
.c-hue-0 { --hue: #1f6f5c; } .c-hue-1 { --hue: #2b6cb0; } .c-hue-2 { --hue: #c05621; } .c-hue-3 { --hue: #805ad5; }
.c-hue-4 { --hue: #b83280; } .c-hue-5 { --hue: #2c7a7b; } .c-hue-6 { --hue: #b7791f; } .c-hue-7 { --hue: #c53030; }
/* pozostałe miejscowości */
.cities-page .city-list { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.cities-page .city-list a { align-items: center; padding: 10px 14px; border-radius: 14px; }
.cities-page .city-name { display: grid; gap: 1px; min-width: 0; }
.cities-page .city-region { font-size: .75rem; font-weight: 500; color: var(--ink-2); }
.city-count { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .city-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .city-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .city-card-icon { width: 38px; height: 38px; border-radius: 12px; }
  .city-card-icon .icon { width: 19px; height: 19px; }
  .city-card-name { font-size: .98rem; }
  .cities-page .city-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .cities-page .city-list a { padding: 9px 11px; }
}
/* wydarzenie bez grafiki: kolorowe tło z konfetti, balonikami i piktogramem */
.ev-ph { --hue: #1f6f5c; position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 16% 24%, rgb(255 255 255 / 40%) 0 5px, transparent 6px),
    radial-gradient(circle at 84% 26%, rgb(255 255 255 / 28%) 0 9px, transparent 10px),
    radial-gradient(circle at 72% 80%, rgb(255 255 255 / 32%) 0 5px, transparent 6px),
    radial-gradient(circle at 30% 78%, rgb(255 214 102 / 90%) 0 4px, transparent 5px),
    radial-gradient(circle at 56% 14%, rgb(255 170 160 / 95%) 0 4px, transparent 5px),
    radial-gradient(circle at 92% 62%, rgb(255 214 102 / 80%) 0 3px, transparent 4px),
    radial-gradient(circle at 8% 60%, rgb(255 170 160 / 80%) 0 3px, transparent 4px),
    radial-gradient(130% 130% at 0% 0%, color-mix(in srgb, var(--hue) 55%, #fff) 0%, var(--hue) 55%, color-mix(in srgb, var(--hue) 70%, #000) 100%); }
/* baloniki */
.ev-ph::before, .ev-ph::after { content: ""; position: absolute; border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%; background: rgb(255 255 255 / 16%); }
.ev-ph::before { width: 22%; aspect-ratio: .8; left: 8%; bottom: -6%; transform: rotate(-12deg); }
.ev-ph::after { width: 15%; aspect-ratio: .8; right: 9%; top: 6%; transform: rotate(14deg); background: rgb(255 255 255 / 12%); }
.ev-ph-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: #fff; color: var(--hue); box-shadow: 0 10px 26px rgb(0 0 0 / 22%); transform: rotate(-6deg); }
.ev-ph-icon .icon { width: 30px; height: 30px; }
.sc-photo .ev-ph-icon { width: 52px; height: 52px; border-radius: 18px; }
.sc-photo .ev-ph-icon .icon { width: 24px; height: 24px; }
.ev-media .ev-date, .ev-media .ev-countdown, .sc-photo .sc-badge { z-index: 2; }
.ev-ph-hero { position: relative; overflow: hidden; border-radius: inherit; }
.ev-ph-hero .ev-ph-icon { width: 84px; height: 84px; border-radius: 26px; }
.ev-ph-hero .ev-ph-icon .icon { width: 40px; height: 40px; }
@media (max-width: 639px) {
  .city-card-body { flex: 1 1 auto; align-content: start; }
  .city-card-count { margin-top: auto; }
}
.cities-page .city-list a { height: 100%; }
@media (min-width: 640px) {
  .city-stats-2, .cities-search { max-width: 560px; }
  .cities-hero { padding: 28px; }
}
/* karta wydarzenia nie może być szersza niż kolumna (długi tekst rozpychał siatkę i ucinał plakietkę „dziś”) */
.ev-card a { grid-template-columns: minmax(0, 1fr); }
.ev-card a > * { min-width: 0; }
.ev-card .ev-where, .ev-card .ev-title { overflow-wrap: anywhere; }
/* kolory teł bez grafiki — po domyślnym kolorze .ev-ph, żeby go nadpisywały */
.ev-ph.c-hue-0 { --hue: #1f6f5c; } .ev-ph.c-hue-1 { --hue: #2b6cb0; } .ev-ph.c-hue-2 { --hue: #c05621; } .ev-ph.c-hue-3 { --hue: #805ad5; }
.ev-ph.c-hue-4 { --hue: #b83280; } .ev-ph.c-hue-5 { --hue: #2c7a7b; } .ev-ph.c-hue-6 { --hue: #b7791f; } .ev-ph.c-hue-7 { --hue: #c53030; }
/* administrator: menu „Oznacz jako główne” przy zdjęciach z Google */
.gmain-menu { position: fixed; z-index: 3000; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3, 0 18px 50px rgb(0 0 0 / 25%)); }
.gmain-menu button { display: block; width: 100%; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.gmain-menu button:hover, .gmain-menu button:focus-visible { background: var(--primary-soft); color: var(--primary); outline: none; }
.gmain-toast { position: fixed; left: 50%; bottom: calc(var(--bottomnav-h, 0px) + 20px); z-index: 3001; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 12px; background: var(--primary); color: var(--primary-ink); font-weight: 650; box-shadow: var(--shadow-2); }
.gmain-toast.is-error { background: var(--danger); color: #fff; }
img.gmain-chosen { outline: 3px solid var(--primary); outline-offset: -3px; }
[data-gmain-url] img[data-gphoto], [data-gmain-url] .gplace-photos img { -webkit-touch-callout: none; }

/* ==========================================================================
   Przyjaźniejsza paleta 2026: ciepłe, kremowe tło, świeższa zieleń, żywszy koral i słoneczny żółty.
   Nadpisuje tokeny z początku pliku (jasny i ciemny motyw); kontrast tekstu na przyciskach ≥ 4,5:1.
   ========================================================================== */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f6f1e9;
  --surface-3: #ece5d9;
  --ink: #2b2723;
  --ink-2: #6b635a;
  --line: #ebe4d8;
  --primary: #1a7f66;
  --primary-hover: #146a55;
  --primary-ink: #ffffff;
  --primary-soft: #e1f3ea;
  --focus: #1a7f66;
  --accent-1: #1a7f66;
  --coral: #ef6a5e;
  --accent-2: #ef6a5e;
  --sun: #ffc94a;
  --warning-soft: #fff4dc;
  --hero-glow: radial-gradient(60% 80% at 12% 0%, rgb(26 127 102 / 13%), transparent 70%), radial-gradient(50% 70% at 95% 8%, rgb(239 106 94 / 13%), transparent 70%), radial-gradient(45% 60% at 60% 100%, rgb(255 201 74 / 14%), transparent 70%);
  --shadow-1: 0 1px 2px rgb(70 50 30 / 6%), 0 1px 3px rgb(70 50 30 / 5%);
  --shadow-2: 0 12px 30px -10px rgb(70 50 30 / 20%), 0 2px 8px rgb(70 50 30 / 7%);
  --shadow-3: 0 -10px 40px rgb(70 50 30 / 15%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110f; --surface: #1a1815; --surface-2: #221f1b; --surface-3: #2d2924;
    --ink: #f4efe8; --ink-2: #b4aa9e; --line: #2d2924;
    --primary: #5fd4ac; --primary-hover: #82dfbf; --primary-ink: #05211a; --primary-soft: #16302a; --focus: #5fd4ac;
    --coral: #ff8278; --accent-2: #ff8278; --sun: #ffd46b;
    --hero-glow: radial-gradient(60% 80% at 12% 0%, rgb(95 212 172 / 12%), transparent 70%), radial-gradient(50% 70% at 95% 8%, rgb(255 130 120 / 10%), transparent 70%);
    --shadow-1: 0 1px 2px rgb(0 0 0 / 45%); --shadow-2: 0 12px 32px -8px rgb(0 0 0 / 60%); --shadow-3: 0 -10px 40px rgb(0 0 0 / 55%);
  }
}
:root[data-theme="dark"] {
  --bg: #12110f; --surface: #1a1815; --surface-2: #221f1b; --surface-3: #2d2924;
  --ink: #f4efe8; --ink-2: #b4aa9e; --line: #2d2924;
  --primary: #5fd4ac; --primary-hover: #82dfbf; --primary-ink: #05211a; --primary-soft: #16302a; --focus: #5fd4ac;
  --coral: #ff8278; --accent-2: #ff8278; --sun: #ffd46b;
  --hero-glow: radial-gradient(60% 80% at 12% 0%, rgb(95 212 172 / 12%), transparent 70%), radial-gradient(50% 70% at 95% 8%, rgb(255 130 120 / 10%), transparent 70%);
  --shadow-1: 0 1px 2px rgb(0 0 0 / 45%); --shadow-2: 0 12px 32px -8px rgb(0 0 0 / 60%); --shadow-3: 0 -10px 40px rgb(0 0 0 / 55%);
}
/* nagłówki stron (miasto, lista miast) w nowej zieleni */
.city-hero { background: radial-gradient(120% 140% at 100% 0%, #2fa483 0%, transparent 55%), radial-gradient(80% 90% at 0% 100%, rgb(255 201 74 / 22%), transparent 60%), linear-gradient(135deg, #1a7f66, #136352); }
.city-hero-btn, .city-stat-icon { color: #1a7f66; }
.ev-media .ev-countdown.is-now { background: #fff; color: #d6463a; }
