/* Wygląd aplikacji (kolejność reguł ma znaczenie – nowe reguły dopisuj na końcu sekcji). Kolory: css/theme.css */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }

body { background-color: var(--bg-color); color: var(--text-dark); min-height: 100vh; padding: 16px; display: flex; justify-content: center; align-items: flex-start; }

.container {
  background: var(--card-bg); width: 100%; max-width: 560px; padding: 30px; border-radius: 24px;
  box-shadow: var(--shadow); border: 2px solid var(--border-color); margin-bottom: 20px;
}
#dashboard-view { padding-bottom: 0; }
/* Dolne menu zawsze przy dolnej krawedzi ekranu, nawet gdy zakladka ma malo tresci */
#dashboard-view:not(.hidden) { display: flex; flex-direction: column; min-height: calc(100vh - 16px); min-height: calc(100dvh - 16px); margin-bottom: 0; }
body:has(#dashboard-view:not(.hidden)) { padding-bottom: 0; }
#dashboard-view > .bottom-nav { margin-top: auto; }
#dashboard-view > .tab-panel { margin-bottom: 16px; }

.header { text-align: center; margin-bottom: 24px; position: relative; }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; }
.brand-logo { display: block; height: 112px; width: auto; margin: 0 auto 8px; filter: drop-shadow(0 4px 8px rgba(30, 50, 80, 0.2)); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.header h1 { padding: 0 8px; font-size: 2rem; color: var(--brand); margin-bottom: 8px; }
.header p { font-size: 0.95rem; color: var(--text-muted); }
/* Pasek przycisków nad tytułem: nic nie nachodzi na tytuł ani powitanie */
.header-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 6px; min-height: 32px; }
.header-bar .hb-left { justify-self: start; } .header-bar .hb-center { justify-self: center; } .header-bar .hb-right { justify-self: end; }
.header-bar .hb-group { display: flex; gap: 6px; align-items: center; }
.header-bar .btn-notification, .header-bar .btn-lost, .header-bar .btn-admin, .header-bar .weather-chip { position: relative; top: auto; left: auto; right: auto; }
.header-bar .btn-lost.crossed { position: relative; }
/* Znak pierwszej pomocy wg ISO 7010 (biały krzyż na zielonym) – czerwony krzyż jest znakiem prawnie chronionym */
.btn-firstaid { background: var(--surface-3); border: none; padding: 5px 8px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; }
.fa-sign { width: 20px; height: 20px; border-radius: 4px; background: #009a44; position: relative; display: inline-block; }
.fa-sign::before, .fa-sign::after { content: ''; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 1px; }
.fa-sign::before { width: 12px; height: 4px; } .fa-sign::after { width: 4px; height: 12px; }
.btn-concern { background: var(--surface-3); border: none; padding: 5px 8px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; font-size: 1rem; line-height: 1.25; }
.btn-concern.dim { opacity: .5; }
.btn-concern.hidden { display: none; }
.concern-banner { background: #b54708; color: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 0.88rem; text-align: left; }
.concern-banner .btn-small { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.5); }
/* Dziś: pogoda + powietrze + UV */
.today-card { background: var(--info-bg); color: var(--info-text); border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; text-align: left; font-size: 0.9rem; }
.today-card.wx-warn { background: var(--warn-bg); color: var(--warn-text); }
.today-card.wx-bad { background: var(--danger-bg); color: var(--danger-text); }
.today-head { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.today-head strong { font-size: 0.95rem; line-height: 1.35; }
.today-x { flex: none; background: transparent; border: none; color: inherit; font-size: 1rem; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; opacity: .75; }
.today-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.today-chip { background: rgba(255,255,255,.55); color: inherit; border-radius: 999px; padding: 2px 9px; font-size: 0.78rem; font-weight: 600; }
[data-theme="dark"] .today-chip { background: rgba(0,0,0,.25); }
.today-tips { margin: 4px 0 6px 18px; padding: 0; line-height: 1.4; font-size: 0.84rem; }
.today-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.today-list { margin-top: 6px; }
.today-list .row { background: var(--surface); color: var(--text-dark); border-radius: 10px; margin-top: 6px; }
.want-btn { display: inline-block; margin: 8px 0 0 6px; background: var(--surface); color: var(--brand); border: 1px solid var(--border-color); border-radius: 999px; padding: 6px 12px; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.want-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.pack-group { margin-bottom: 10px; } .pack-group > strong { display: block; color: var(--brand); margin-bottom: 4px; font-size: 0.9rem; }
.pack-item { display: flex; gap: 8px; align-items: flex-start; padding: 6px 4px; border-bottom: 1px dashed var(--border-color); font-size: 0.9rem; cursor: pointer; }
.pack-item input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.bring-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed var(--border-color); font-size: 0.9rem; }
.bring-row span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bring-x { flex: none; background: none; border: none; color: var(--text-muted, inherit); font-size: 1.1rem; cursor: pointer; padding: 4px 8px; min-width: 36px; min-height: 36px; }
.bring-add { display: flex; gap: 6px; margin: 8px 0; }
.bring-add input { flex: 1; min-width: 0; }
.bring-sug { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.bring-sug button { font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--border-color); background: transparent; color: inherit; cursor: pointer; }
.pack-item.done span { text-decoration: line-through; opacity: .6; }
.month-big strong { display: block; color: var(--brand); font-size: 1rem; } .month-big div { font-weight: 600; margin-top: 2px; }
.rem-line { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.rescue-sec .rescue-body { padding: 0 10px 10px; text-align: left; }
.rescue-sec .row { gap: 6px; }
.btn-submit.off-fa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #00703a; color: #fff; margin-bottom: 6px; }
.btn-submit.off-fa-btn:hover { background: #005c30; }
/* Dostępność: widoczny fokus z klawiatury, ograniczenie animacji, większy tekst */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
html[data-fs="l"] .header-bar, html[data-fs="xl"] .header-bar { font-size: 16px; }
html[data-fs="xl"] .header-bar .hb-group { gap: 4px; }
.fa-sec { border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 8px; text-align: left; background: var(--surface-2); }
.fa-sec > summary { cursor: pointer; padding: 10px 12px; font-weight: 700; font-size: 0.95rem; list-style: none; }
.fa-sec > summary::-webkit-details-marker { display: none; }
.fa-sec[open] > summary { border-bottom: 1px solid var(--border-color); }
.fa-sec ol, .fa-sec ul { margin: 8px 12px 10px 30px; line-height: 1.5; font-size: 0.9rem; }
.fa-sec .fa-warn { margin: 0 12px 10px; font-size: 0.85rem; color: var(--danger-text); font-weight: 600; }

.btn-notification {
  position: absolute; top: 0; left: 0; background: var(--surface-3); color: var(--brand); border: none; padding: 6px 10px;
  border-radius: 8px; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 4px;
}
.btn-notification:hover { background: var(--border-color); }
/* Alert „Zgubione dziecko” */
.btn-lost { position: absolute; top: 34px; right: 0; background: var(--surface-3); border: none; padding: 6px 9px; border-radius: 8px; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 2px; }
.btn-lost.crossed { opacity: .8; filter: grayscale(1); position: absolute; }
.btn-lost.crossed::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: var(--danger-text); transform: rotate(-35deg); border-radius: 2px; }
.btn-lost.dim { opacity: .5; background: var(--danger-bg); }
.btn-lost.hidden { display: none; }
.lost-show { position: fixed; inset: 0; z-index: 5000; background: #fff; color: #111; overflow-y: auto; padding: 60px 16px 28px; text-align: center; }
.lost-show-head { background: #d92d20; color: #fff; font-weight: 800; font-size: 1.15rem; border-radius: 12px; padding: 12px; margin-bottom: 14px; letter-spacing: .02em; }
.lost-show-kid { margin-bottom: 18px; }
.lost-show-photo { width: 100%; max-width: 520px; max-height: 62vh; object-fit: contain; border-radius: 14px; background: #000; }
.lost-show-name { font-size: 1.6rem; font-weight: 800; margin-top: 8px; }
.lost-show-line { font-size: 1.1rem; margin-top: 4px; }
.lost-show-phone { font-size: 1.15rem; font-weight: 700; margin-top: 10px; background: #fff3c4; border-radius: 10px; padding: 10px; }
.lost-preview-face { width: 56px; height: 56px; border-radius: 12px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-size: 2rem; flex: none; }
.btn-lost.ready { background: var(--danger-bg); }
.btn-lost.active { background: #d92d20; animation: lostPulse 1.2s ease-in-out infinite; }
.btn-lost .lost-state { font-size: 0.65rem; }
@keyframes lostPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,45,32,.6); } 50% { box-shadow: 0 0 0 7px rgba(217,45,32,0); } }
.lost-banner { background: #d92d20; color: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 0.88rem; cursor: pointer; animation: lostPulse 1.6s ease-in-out infinite; text-align: left; }
.lost-photo-wrap { position: relative; overflow: hidden; border-radius: 10px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; background: #000; }
.lost-photo { width: 100%; max-height: 320px; object-fit: contain; display: block; pointer-events: none; -webkit-user-drag: none; border-radius: 10px; }
.lost-wm { position: absolute; inset: -60%; transform: rotate(-25deg); color: rgba(255,255,255,.4); font-size: 11px; font-weight: 600; line-height: 3.6; word-spacing: 6px; word-break: break-all; pointer-events: none; text-shadow: 0 0 3px rgba(0,0,0,.85); }
.lost-thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.lost-cfg-photo { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.lost-dispatch { white-space: pre-wrap; text-align: left; font-family: inherit; font-size: 0.85rem; margin: 6px 0 0; }
.lost-call { display: block; text-align: center; text-decoration: none; font-size: 1.05rem; }
.weather-chip { position: absolute; top: 0; right: 0; background: var(--surface-3); color: var(--brand); border: none; padding: 3px 7px; border-radius: 7px; font-size: 0.72rem; font-weight: 600; line-height: 1.2; cursor: pointer; opacity: .92; }
.weather-chip.wx-warn { background: var(--warn-bg); color: var(--warn-text); }
.weather-chip.wx-bad { background: var(--danger-bg); color: var(--danger-text); }
.weather-strip { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--info-bg); color: var(--info-text); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; font-size: 0.88rem; cursor: pointer; }
.weather-strip.wx-warn { background: var(--warn-bg); color: var(--warn-text); }
.weather-strip.wx-bad { background: var(--danger-bg); color: var(--danger-text); }
.wx-strip-ico { font-size: 1.8rem; line-height: 1; }

.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--text-dark); }
input, select, textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--border-color); border-radius: 12px; font-size: 0.95rem; outline: none; background-color: var(--surface-2); color: var(--text-dark); }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: .8; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); background-color: var(--surface); }
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; }
input[type="range"] { padding: 0; }
textarea { resize: vertical; }

.btn-submit { width: 100%; min-height: 52px; padding: 14px; box-shadow: 0 3px 10px rgba(46, 80, 132, 0.22); background-color: var(--primary); color: #fff; border: none; border-radius: 12px; font-size: 1.05rem; font-weight: 700; cursor: pointer; margin-top: 10px; transition: background-color 0.2s; }
.btn-submit:hover:not(:disabled) { background-color: var(--primary-hover); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.btn-submit.danger { background-color: var(--danger); }

.divider { text-align: center; margin: 15px 0; color: var(--text-muted); font-size: 0.9rem; position: relative; }
.divider::before, .divider::after { content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background-color: var(--border-color); }
.divider::before { left: 0; }
.divider::after { right: 0; }

.btn-google, .btn-facebook { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-google { background-color: #fff; color: #444; border: 2px solid var(--border-color); }
.btn-google:hover:not(:disabled) { background-color: #f8fafc; }
.btn-google img { width: 20px; height: 20px; }
.btn-facebook { background-color: #1877f2; color: #fff; }
.btn-facebook:hover:not(:disabled) { background-color: #1466d1; }
.fb-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #1877f2; font-weight: 900; font-size: 0.85rem; }

.auth-tabs { display: flex; background: var(--surface-3); border-radius: 12px; padding: 4px; margin-bottom: 18px; gap: 4px; }
.auth-tabs button { flex: 1; border: none; background: none; padding: 8px 4px; border-radius: 9px; font-weight: 600; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; }
.auth-tabs button.active { background: var(--surface); color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

.link-btn { background: none; border: none; color: var(--info-text); cursor: pointer; font-size: 0.85rem; text-decoration: underline; }

/* Zameldowanie */
.btn-checkin { width: 100%; min-height: 56px; box-shadow: 0 3px 10px rgba(201, 143, 85, 0.4); padding: 14px; background-color: var(--c-tan-strong); color: #3d2208; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background-color 0.2s, filter 0.2s; }
.btn-checkin:hover:not(:disabled) { filter: brightness(1.07); }
.btn-checkin:disabled { background-color: var(--c-tan-line) !important; color: var(--c-tan-ink) !important; box-shadow: none; cursor: not-allowed; }

.message { padding: 12px; border-radius: 12px; margin-bottom: 16px; display: none; font-size: 0.9rem; }
.message.error { background-color: var(--danger-bg); color: var(--danger-text); display: block; }
.message.success { background-color: var(--info-bg); color: var(--info-text); display: block; }

.hidden { display: none !important; }

/* Mapa i UI */
#map { height: 320px; width: 100%; border-radius: 16px; margin-bottom: 20px; border: 2px solid var(--border-color); background-color: var(--surface-3); }

.address-box { background: var(--surface-2); border: 1px solid var(--border-color); border-radius: 14px; padding: 12px 14px; margin: -6px 0 16px; }
.address-box label { color: var(--brand); }

.panel-checkin { text-align: center; padding: 20px; border: 2px solid var(--accent); border-radius: 16px; background-color: var(--accent-soft); margin-bottom: 20px; scroll-margin-top: 12px; }
.panel-checkin h3 { color: var(--accent-text); margin-bottom: 8px; }
.panel-checkin .chips { text-align: left; margin: 10px 0 14px; }
.panel-checkin .row-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.presence-box { margin-top: 16px; text-align: left; background: var(--surface); border: 2px solid var(--accent); border-radius: 14px; padding: 12px 14px; }
.presence-box h4 { margin: 0 0 8px; font-size: 1.05rem; color: var(--accent-text); }
.panel-checkin .subsection { margin-top: 16px; border-top: 1px dashed var(--border-color); padding-top: 12px; text-align: left; }

.filter-section { margin-bottom: 15px; background: var(--surface-2); padding: 15px; border-radius: 14px; border: 1px solid var(--border-color); }
.slider-container { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.slider-container input[type="range"] { flex: 1; margin-right: 15px; accent-color: var(--primary); }

.playground-list { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.playground-item { padding: 12px; background: var(--surface); border: 1px solid var(--border-color); border-radius: 12px; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; gap: 8px; }
.playground-item:hover { border-color: var(--primary); }
.fav-btn { background: var(--surface); border: 1px solid var(--border-color); border-radius: 50%; width: 30px; height: 30px; min-width: 30px; padding: 0; font-size: 1rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: none; }
.fav-btn.on { border-color: var(--rose); background: var(--rose-soft); }
.btn-nav { display: inline-block; margin-top: 8px; background: var(--btn-bg); color: #fff; border: none; border-radius: 10px; padding: 8px 14px; font-size: 0.88rem; font-weight: 600; cursor: pointer; }
.playground-info h4 { font-size: 0.95rem; color: var(--brand); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.playground-info p { font-size: 0.8rem; color: var(--text-muted); }
.btn-select-item { background: var(--btn-bg); color: #fff; border: none; padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; cursor: pointer; flex-shrink: 0; }
.btn-select-item:hover { background: var(--btn-bg-hover); }
.rank-badge { padding: 2px 6px; border-radius: 10px; font-size: 0.75rem; font-weight: bold; background: var(--info-bg); color: var(--info-text); }

/* Karty, wiersze, przyciski pomocnicze */
.tab-panel { padding-bottom: 6px; }
.card { background: var(--surface-2); border: 1px solid var(--border-color); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.card h3 { font-size: 1rem; color: var(--brand); margin-bottom: 10px; }
.card h3 .ic { color: var(--accent); margin-right: 2px; }
.card.accent { background: var(--info-bg); border-color: var(--info-line); }
.seek-alert { background: var(--accent-soft); border: 2px solid var(--accent); color: var(--accent-text); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-weight: 600; font-size: 0.88rem; text-align: center; cursor: pointer; }
.seek-box { background: var(--surface); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.seek-box.mine { border-color: var(--accent); background: var(--accent-soft); }
.seek-box.decided { border-color: var(--primary); }
.seek-box.ended { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-text); }
.seek-box h4 { font-size: 0.95rem; color: var(--brand); margin-bottom: 4px; }
.seek-box.mine h4 { color: var(--accent-text); }
.seek-meta { font-size: 0.8rem; color: var(--text-muted); }
.seek-crowd { font-size: 0.78rem; color: var(--info-text); background: var(--surface-2); border-radius: 8px; padding: 5px 8px; margin: 2px 0 6px; line-height: 1.35; }
.seek-crowd:empty { display: none; }
.seek-line { font-size: 0.86rem; padding: 3px 0; word-wrap: break-word; }
.seek-place { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 10px; margin: 6px 0; font-size: 0.88rem; background: var(--surface-2); cursor: pointer; }
.seek-place input { margin-top: 3px; transform: scale(1.15); }
.seek-place.disabled { opacity: 0.55; cursor: default; }
.seek-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sections-bar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.prof-group { display: flex; align-items: center; gap: 8px; margin: 22px 2px 8px; padding-bottom: 6px; border-bottom: 2px solid var(--border-color); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand); }
.prof-group .ic { color: var(--accent); font-size: 1.15rem; }
.sections-bar + .prof-group { margin-top: 4px; }
.card.collapsible > h3 { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 32px; margin-bottom: 0; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.card.collapsible:not(.collapsed) > h3 { margin-bottom: 10px; }
.card.collapsible > h3 .chev { margin-left: auto; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: transform .2s; }
.card.collapsible:not(.collapsed) > h3 .chev { transform: rotate(180deg); }
.card.collapsible.collapsed > .card-body { display: none; }
.card.collapsible > h3:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.grec-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 95; display: flex; align-items: center; justify-content: center; padding: 10px; }
.grec { background: var(--surface); color: var(--text-dark); border-radius: 18px; width: 100%; max-width: 560px; height: 100%; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); }
.grec-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-color); }
.grec-head .t { flex: 1; min-width: 0; }
.grec-head .t strong { display: block; color: var(--brand); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grec-head .t span { font-size: 0.75rem; color: var(--text-muted); }
.grec-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--surface-3); color: var(--text-dark); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.grec-body { flex: 1; overflow-y: auto; padding: 14px; -webkit-overflow-scrolling: touch; }
.grec-photos { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px 12px; padding: 0 14px 4px; }
.grec-photos img { height: 130px; width: auto; border-radius: 10px; flex: none; cursor: pointer; background: var(--surface-3); }
.grec-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.grec-rating .num { font-size: 1.6rem; font-weight: 700; }
.grec-stars { color: var(--star); letter-spacing: 1px; }
.grec-chip { display: inline-block; font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-dark); }
.grec-chip.ok { background: var(--ok-bg, var(--surface-3)); color: var(--ok-text, var(--brand)); }
.grec-chip.bad { background: var(--warn-bg); color: var(--warn-text); }
.grec-row { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border-color); font-size: 0.88rem; align-items: flex-start; }
.grec-row .ic { flex: none; width: 22px; text-align: center; }
.grec-row a, .grec-row .lnk { color: var(--brand); text-decoration: underline; background: none; border: none; padding: 0; font: inherit; cursor: pointer; text-align: left; word-break: break-all; }
.grec details summary { cursor: pointer; }
.grec-review { background: var(--surface-2); border: 1px solid var(--border-color); border-radius: 12px; padding: 10px; margin-bottom: 8px; font-size: 0.86rem; }
.grec-review .who { font-weight: 600; margin-bottom: 2px; }
.grec-foot { padding: 10px 14px; border-top: 1px solid var(--border-color); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grec-foot .src { flex: 1 0 100%; font-size: 0.7rem; color: var(--text-muted); }
.hint { font-size: 0.82rem; color: var(--text-muted); margin: 6px 0; }
.sub { font-size: 0.8rem; color: var(--text-muted); }
.banner { background: var(--info-bg); border: 1px solid var(--info-line); border-radius: 12px; padding: 12px; margin-bottom: 14px; font-size: 0.88rem; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.note { background: var(--info-bg); border: 1px solid var(--info-line); color: var(--info-text); border-radius: 10px; padding: 8px 10px; font-size: 0.85rem; }
.note.danger { background: var(--danger-bg); border-color: var(--danger); color: var(--danger-text); }
.note.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-text); }

.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 8px; }
.row .main { flex: 1 1 170px; min-width: 0; } /* przy ciasnym układzie (duża czcionka) przyciski przechodzą pod tekst zamiast go zasłaniać */
.row .actions { margin-left: auto; }
.row .title { font-weight: 600; font-size: 0.92rem; color: var(--brand); word-wrap: break-word; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.row.unread { border-color: var(--rose); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }

.btn-small { background: var(--btn-bg); color: #fff; border: none; padding: 8px 12px; min-height: 38px; border-radius: 10px; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; position: relative; }
.btn-small:hover:not(:disabled) { background: var(--btn-bg-hover); }
.btn-small.secondary { background: var(--surface-3); color: var(--brand); }
.btn-small.secondary:hover:not(:disabled) { background: var(--border-color); }
.btn-small.danger { background: var(--danger-bg); color: var(--danger-text); }
.btn-small.danger-solid { background: var(--danger); color: #fff; }
.btn-small:disabled { opacity: .55; cursor: not-allowed; }

.inline-form { display: flex; gap: 8px; margin-bottom: 10px; }
.inline-form input { flex: 1; padding: 10px 14px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.grid-2 > .form-group { min-width: 0; }
.grid-2 input, .grid-2 select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 400px) { #playdate-form .grid-2 { grid-template-columns: minmax(0, 1fr); } }
input[type="date"], input[type="time"] { min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.section-title { font-size: 0.95rem; color: var(--brand); margin: 14px 0 8px; }

/* Dzieci */
.child-row { border: 1px solid var(--border-color); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: var(--surface-2); position: relative; }
.child-row .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.child-row .grid .mini-field:last-child { grid-column: 1 / -1; }
.child-row input, .child-row select { padding: 9px 12px; }
.child-row label { font-size: 0.78rem; margin-bottom: 3px; }
.child-row .remove { margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 2px solid var(--border-color); border-radius: 20px; background: var(--surface); cursor: pointer; font-size: 0.85rem; font-weight: 500; margin: 0 6px 6px 0; }
.chip.on { border-color: var(--primary); background: var(--info-bg); }
.pg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pg-th { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: pointer; background: var(--surface-3); display: block; }
.rv-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rv-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; cursor: pointer; background: var(--surface-3); }
.rv-hint { font-size: 0.7rem; color: var(--text-muted); margin-top: 3px; }
.ph-note { font-size: 0.76rem; color: var(--text-muted); margin: 4px 0; line-height: 1.35; }
.ph-block { background: var(--warn-bg, var(--surface-2)); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 10px; font-size: 0.85rem; margin: 6px 0; }
.seek-hist-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 6px; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.seek-hist-head .chev { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: transform .2s; }
.seek-hist-head[aria-expanded="true"] .chev { transform: rotate(180deg); }
.seek-hist-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.seek-hist-list { overflow-y: auto; max-height: 440px; overscroll-behavior: contain; padding-right: 2px; }
.seek-hist-list.hidden { display: none; }
.my-rev-list { overflow-y: auto; max-height: 430px; overscroll-behavior: contain; padding-right: 2px; display: flex; flex-direction: column; gap: 10px; }
.my-rev { border: 1px solid var(--border-color); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.my-rev-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.my-rev-photos img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; cursor: pointer; background: var(--surface-3); }
.chip-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }

.switch-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.switch-row input { margin-top: 3px; transform: scale(1.2); }

.user-link { color: var(--brand); font-weight: 600; background: none; border: none; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; }
.user-link:hover { color: var(--primary-hover); }

/* Dolna nawigacja */
.bottom-nav { position: sticky; bottom: 0; margin: 16px -30px 0; display: flex; background: var(--card-bg); border-top: 1px solid var(--border-color); border-radius: 0 0 22px 22px; z-index: 20; }
.bottom-nav button { flex: 1; min-height: 58px; background: none; border: none; padding: 9px 2px 8px; font-size: 0.68rem; color: var(--text-muted); cursor: pointer; position: relative; }
.bottom-nav button .ico { display: block; font-size: 1.25rem; line-height: 1; }
.bottom-nav button .ico .ic { width: 24px; height: 24px; stroke-width: 1.8; }
.bottom-nav button.active::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.bottom-nav button.active .ico .ic { stroke-width: 2.3; }
.bottom-nav button.active { color: var(--brand); font-weight: 700; }
.nav-badge { position: absolute; top: 3px; left: calc(50% + 6px); background: var(--rose); color: #fff; border-radius: 10px; font-size: 0.62rem; min-width: 16px; padding: 1px 4px; line-height: 1.3; font-weight: bold; }

.btn-badge { position: absolute; top: -6px; right: -6px; background: var(--rose); color: #fff; border-radius: 10px; font-size: 0.65rem; min-width: 18px; padding: 2px 4px; line-height: 1.2; font-weight: bold; border: 2px solid var(--info-bg); }

/* Czat */
.chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.chat-messages { height: 340px; overflow-y: auto; background: var(--surface-2); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--border-color); }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 0.9rem; background: var(--surface); border: 1px solid var(--border-color); align-self: flex-start; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.mine { align-self: flex-end; background: var(--info-bg); border-color: var(--info-line); }
.msg.status { align-self: center; background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-text); font-size: 0.82rem; text-align: center; }
.msg .who { font-size: 0.72rem; font-weight: 700; color: var(--brand); margin-bottom: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.msg .who button { background: none; border: none; cursor: pointer; font-size: 0.7rem; opacity: .6; }
.msg-more { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.95rem; line-height: 1; padding: 0 4px; margin-left: auto; }
.msg-more.dm { float: right; margin: -2px -4px 0 6px; }
.msg .meta { font-size: 0.68rem; color: var(--text-muted); text-align: right; margin-top: 3px; white-space: normal; }
.msg img { max-width: 100%; max-height: 220px; border-radius: 10px; display: block; margin-bottom: 4px; cursor: pointer; }
.msg a { color: var(--info-text); }
.day-sep { text-align: center; font-size: 0.7rem; color: var(--text-muted); margin: 6px 0; }
.composer { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.composer input[type="text"] { flex: 1; padding: 10px 14px; }
.status-bar { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; }
.status-bar button { white-space: nowrap; }
.emoji-panel { display: grid; grid-template-columns: repeat(8, 1fr); background: var(--surface); border: 1px solid var(--border-color); border-radius: 12px; padding: 6px; margin-top: 6px; }
.emoji-panel button { background: none; border: none; font-size: 1.35rem; cursor: pointer; padding: 3px; }

/* Modal i toast */
.modal-backdrop { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100; }
.modal-head { position: sticky; top: -22px; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin: -22px -22px 12px; padding: 14px 12px 8px 22px; background: var(--surface); border-radius: 18px 18px 0 0; }
.modal-head h3 { margin: 0 !important; padding-top: 8px; flex: 1; }
.modal-x { flex: none; width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--surface-3); color: var(--text-dark); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.lost-show-x { position: fixed; top: 10px; right: 10px; z-index: 5001; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #111; background: #fff; color: #111; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.modal { background: var(--surface); color: var(--text-dark); border-radius: 18px; padding: 22px; width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto; }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: var(--btn-bg); color: #fff; padding: 10px 16px; border-radius: 20px; font-size: 0.85rem; z-index: 200; max-width: 90vw; text-align: center; }

/* Ekran ładowania */
#splash-view {
  position: fixed; inset: 0; background: var(--bg-color); z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.4s ease;
}
.splash-logo { height: 176px; width: auto; margin-bottom: 12px; filter: drop-shadow(0 6px 12px rgba(30, 50, 80, 0.22)); animation: logoBounce 1.4s ease-in-out infinite; }
@keyframes logoBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } } /* znacznik delikatnie podskakuje, jakby wskazywał miejsce na mapie */
@media (prefers-reduced-motion: reduce) { .splash-logo { animation: none; } }

/* Panel administratora */
.admin-name, .user-link.admin-name { color: var(--danger-text) !important; font-weight: 700; }
.btn-admin { position: absolute; top: 0; left: 52px; background: var(--danger-bg); color: var(--danger-text); border: none; padding: 6px 10px; border-radius: 8px; font-size: 0.9rem; cursor: pointer; }
.container.wide { max-width: 920px; }
.adm-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; }
.adm-nav button { white-space: nowrap; border: none; background: var(--surface-3); color: var(--brand); padding: 8px 12px; border-radius: 10px; font-size: 0.82rem; cursor: pointer; font-weight: 600; }
.adm-nav button.active { background: var(--danger); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat-tile { background: var(--surface); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; text-align: center; }
.stat-tile .num { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.stat-tile .lbl { font-size: 0.75rem; color: var(--text-muted); }
.bars { display: flex; align-items: flex-end; gap: 4px; padding-top: 6px; }
.bars .bcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bars .bar { width: 100%; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars .bval { font-size: 0.68rem; color: var(--text-muted); }
.bars .blbl { font-size: 0.66rem; color: var(--text-muted); margin-top: 2px; }
.banner-global { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-size: 0.9rem; text-align: center; }
#maintenance-view { position: fixed; inset: 0; background: var(--bg-color); z-index: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }

/* Statystyki miejsca, godziny, zdjęcia zgłoszeń */
.visit-chart { display: flex; align-items: flex-end; gap: 3px; height: 70px; margin: 8px 0 2px; }
.visit-chart .vcol { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.visit-chart .vbar { width: 100%; background: var(--primary); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.visit-chart .vbar.best { background: var(--accent); opacity: 1; }
.visit-chart .vbar.now { outline: 2px solid var(--brand); }
.visit-axis { display: flex; justify-content: space-between; font-size: 0.66rem; color: var(--text-muted); }
.day-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.day-chips button { border: 1px solid var(--border-color); background: var(--surface); color: var(--text-muted); border-radius: 14px; padding: 3px 9px; font-size: 0.75rem; cursor: pointer; }
.day-chips button.active { background: var(--info-bg); color: var(--brand); border-color: var(--primary); font-weight: 700; }
.hours-list { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.hours-list .today { color: var(--text-dark); font-weight: 700; }
.open-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--info-bg); color: var(--info-text); }
.open-badge.closed { background: var(--danger-bg); color: var(--danger-text); }
.alert-photo { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; margin-top: 6px; cursor: pointer; display: block; }

.place-card { display: block; width: 100%; text-align: left; margin-top: 4px; background: var(--surface-2); border: 1px solid var(--border-color); border-left: 4px solid var(--primary); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--text-dark); font: inherit; white-space: normal; }
.place-card .pc-title { font-weight: 700; color: var(--brand); font-size: 0.9rem; }
.place-card .pc-cta { font-size: 0.78rem; font-weight: 600; color: var(--info-text); margin-top: 4px; }
.offline-banner { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: min(560px, 100%); z-index: 150; background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-line); border-top: none; border-radius: 0 0 12px 12px; padding: 8px 12px; font-size: 0.82rem; text-align: center; box-shadow: var(--shadow); }
.map-offline { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 20px; color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 480px) {
  body { padding: 8px; }
  .container { padding: 20px 16px; }
  .bottom-nav { margin: 16px -16px 0; }
  #dashboard-view:not(.hidden) { min-height: calc(100vh - 8px); min-height: calc(100dvh - 8px); }
}

/* Przyciski w nagłówku: ikony liniowe w kolorach marki */
.btn-notification, .btn-concern { color: var(--brand); }
.btn-lost { color: var(--danger-text); }
.btn-lost.active, .btn-lost.active .ic { color: #fff; }
.header-bar .ic { width: 20px; height: 20px; }
.btn-notification, .btn-concern, .btn-lost, .btn-admin, .btn-firstaid { min-height: 36px; min-width: 36px; justify-content: center; }
/* Nagłówek ekranu głównego: niskie logo, żeby mapa była wyżej */
#dashboard-view .brand-logo { height: 88px; margin: 0 auto 4px; }

/* ===== Pastelowe odcienie z logo (data-hue) ===== */
[data-hue="blue"] { --h-soft: var(--c-blue-soft); --h-line: var(--c-blue-line); --h-ink: var(--c-blue-ink); --h-strong: var(--c-blue-strong); }
[data-hue="coral"] { --h-soft: var(--c-coral-soft); --h-line: var(--c-coral-line); --h-ink: var(--c-coral-ink); --h-strong: var(--c-coral-strong); }
[data-hue="green"] { --h-soft: var(--c-green-soft); --h-line: var(--c-green-line); --h-ink: var(--c-green-ink); --h-strong: var(--c-green-strong); }
[data-hue="yellow"] { --h-soft: var(--c-yellow-soft); --h-line: var(--c-yellow-line); --h-ink: var(--c-yellow-ink); --h-strong: var(--c-yellow-strong); }
[data-hue="tan"] { --h-soft: var(--c-tan-soft); --h-line: var(--c-tan-line); --h-ink: var(--c-tan-ink); --h-strong: var(--c-tan-strong); }

/* karty: pastelowe tło, kolorowy pasek u góry, ikona w kapsułce, tytuł w ciemnym odcieniu */
.card[data-hue] { background: var(--h-soft); border-color: var(--h-line); border-top: 4px solid var(--h-strong); }
.card[data-hue] > h3 { color: var(--h-ink); }
.card[data-hue] > h3 > .ic { box-sizing: content-box; width: 18px; height: 18px; padding: 6px; border-radius: 10px; background: var(--h-line); color: var(--h-ink); margin-right: 2px; }
.card[data-hue].collapsible > h3 .chev { background: var(--h-line); color: var(--h-ink); }
.card[data-hue] input, .card[data-hue] select, .card[data-hue] textarea { background-color: var(--card-bg); }
.card[data-hue] .btn-small.secondary { background: var(--h-line); color: var(--h-ink); }
.card[data-hue] .hint, .card[data-hue] .sub { color: var(--text-muted); }
/* nagłówki segmentów profilu */
.prof-group[data-hue] { color: var(--h-ink); border-bottom-color: var(--h-line); }
.prof-group[data-hue] .ic { box-sizing: content-box; width: 16px; height: 16px; padding: 5px; border-radius: 9px; background: var(--h-line); color: var(--h-ink); }
/* dolna nawigacja: każda zakładka ma swój kolor; aktywna ma pastelową „pigułkę” pod ikoną */
.bottom-nav button .ico { display: flex; align-items: center; justify-content: center; width: 54px; height: 30px; margin: 0 auto 2px; border-radius: 15px; transition: background-color .15s; }
.bottom-nav button[data-hue] .ico .ic { color: var(--h-strong); }
.bottom-nav button.active[data-hue] { color: var(--h-ink); }
.bottom-nav button.active[data-hue] .ico { background: var(--h-line); }
.bottom-nav button.active[data-hue] .ico .ic { color: var(--h-ink); }
.bottom-nav button.active[data-hue]::before { background: var(--h-strong); }
/* okna: cienki pasek w kolorach logo u góry */
.modal { background: linear-gradient(90deg, #c8574b 0 25%, #d9a93a 25% 50%, #6f9f72 50% 75%, #4f7fb8 75%) top / 100% 5px no-repeat, var(--surface); padding-top: 26px; }


/* ===== Tło: scenka z logo (niebo, chmurki, słońce, pagórki, balonik) w nagłówkach i na ekranie startowym =====
   Grafika wektorowa wbudowana w CSS (bez dodatkowych plików i zapytań); w ciemnym motywie przygaszona. */
.header { position: relative; isolation: isolate; }
.header::before { content: ''; position: absolute; z-index: -1; inset: -30px -30px -18px -30px; border-radius: 22px 22px 0 0;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 360 170%22 preserveAspectRatio=%22xMidYMax slice%22%3E%0A%3Ccircle cx=%22306%22 cy=%2240%22 r=%2217%22 fill=%22%23f6e3a1%22 opacity=%220.95%22/%3E%0A%3Cg fill=%22%23ffffff%22 opacity=%220.9%22%3E%3Cellipse cx=%2256%22 cy=%2242%22 rx=%2230%22 ry=%2212%22/%3E%3Cellipse cx=%2280%22 cy=%2233%22 rx=%2220%22 ry=%2214%22/%3E%3Cellipse cx=%2238%22 cy=%2236%22 rx=%2216%22 ry=%2210%22/%3E%0A%3Cellipse cx=%22232%22 cy=%2278%22 rx=%2224%22 ry=%229%22/%3E%3Cellipse cx=%22250%22 cy=%2271%22 rx=%2215%22 ry=%2211%22/%3E%3C/g%3E%0A%3Ccircle cx=%22330%22 cy=%2286%22 r=%228%22 fill=%22%23e58b80%22 opacity=%220.8%22/%3E%3Cpath d=%22M330 94 q-4 10 2 20%22 stroke=%22%238a9bb0%22 fill=%22none%22 opacity=%22.7%22/%3E%0A%3Cpath d=%22M0 170V128Q60 100 130 122T260 116T360 106V170Z%22 fill=%22%23cfe3cc%22/%3E%0A%3Cpath d=%22M0 170V146Q80 122 170 142T360 132V170Z%22 fill=%22%23b9d6b5%22/%3E%3C/svg%3E") center bottom / cover no-repeat, linear-gradient(#d9eaf7, rgba(217,234,247,0)); }
:root[data-theme="dark"] .header::before { background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 360 170%22 preserveAspectRatio=%22xMidYMax slice%22%3E%0A%3Ccircle cx=%22306%22 cy=%2240%22 r=%2217%22 fill=%22%23e0b64f%22 opacity=%220.55%22/%3E%0A%3Cg fill=%22%23ffffff%22 opacity=%220.16%22%3E%3Cellipse cx=%2256%22 cy=%2242%22 rx=%2230%22 ry=%2212%22/%3E%3Cellipse cx=%2280%22 cy=%2233%22 rx=%2220%22 ry=%2214%22/%3E%3Cellipse cx=%2238%22 cy=%2236%22 rx=%2216%22 ry=%2210%22/%3E%0A%3Cellipse cx=%22232%22 cy=%2278%22 rx=%2224%22 ry=%229%22/%3E%3Cellipse cx=%22250%22 cy=%2271%22 rx=%2215%22 ry=%2211%22/%3E%3C/g%3E%0A%3Ccircle cx=%22330%22 cy=%2286%22 r=%228%22 fill=%22%23c4685d%22 opacity=%220.6%22/%3E%3Cpath d=%22M330 94 q-4 10 2 20%22 stroke=%22%236c7f95%22 fill=%22none%22 opacity=%22.7%22/%3E%0A%3Cpath d=%22M0 170V128Q60 100 130 122T260 116T360 106V170Z%22 fill=%22%2321382b%22/%3E%0A%3Cpath d=%22M0 170V146Q80 122 170 142T360 132V170Z%22 fill=%22%231a2d22%22/%3E%3C/svg%3E") center bottom / cover no-repeat, linear-gradient(#1b2a3d, rgba(27,42,61,0)); }
.header p { position: relative; color: var(--text-dark); font-weight: 600; }
#splash-view::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 360 170%22 preserveAspectRatio=%22xMidYMax slice%22%3E%0A%3Ccircle cx=%22306%22 cy=%2240%22 r=%2217%22 fill=%22%23f6e3a1%22 opacity=%220.95%22/%3E%0A%3Cg fill=%22%23ffffff%22 opacity=%220.9%22%3E%3Cellipse cx=%2256%22 cy=%2242%22 rx=%2230%22 ry=%2212%22/%3E%3Cellipse cx=%2280%22 cy=%2233%22 rx=%2220%22 ry=%2214%22/%3E%3Cellipse cx=%2238%22 cy=%2236%22 rx=%2216%22 ry=%2210%22/%3E%0A%3Cellipse cx=%22232%22 cy=%2278%22 rx=%2224%22 ry=%229%22/%3E%3Cellipse cx=%22250%22 cy=%2271%22 rx=%2215%22 ry=%2211%22/%3E%3C/g%3E%0A%3Ccircle cx=%22330%22 cy=%2286%22 r=%228%22 fill=%22%23e58b80%22 opacity=%220.8%22/%3E%3Cpath d=%22M330 94 q-4 10 2 20%22 stroke=%22%238a9bb0%22 fill=%22none%22 opacity=%22.7%22/%3E%0A%3Cpath d=%22M0 170V128Q60 100 130 122T260 116T360 106V170Z%22 fill=%22%23cfe3cc%22/%3E%0A%3Cpath d=%22M0 170V146Q80 122 170 142T360 132V170Z%22 fill=%22%23b9d6b5%22/%3E%3C/svg%3E") center bottom / cover no-repeat; opacity: .95; }
:root[data-theme="dark"] #splash-view::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 360 170%22 preserveAspectRatio=%22xMidYMax slice%22%3E%0A%3Ccircle cx=%22306%22 cy=%2240%22 r=%2217%22 fill=%22%23e0b64f%22 opacity=%220.55%22/%3E%0A%3Cg fill=%22%23ffffff%22 opacity=%220.16%22%3E%3Cellipse cx=%2256%22 cy=%2242%22 rx=%2230%22 ry=%2212%22/%3E%3Cellipse cx=%2280%22 cy=%2233%22 rx=%2220%22 ry=%2214%22/%3E%3Cellipse cx=%2238%22 cy=%2236%22 rx=%2216%22 ry=%2210%22/%3E%0A%3Cellipse cx=%22232%22 cy=%2278%22 rx=%2224%22 ry=%229%22/%3E%3Cellipse cx=%22250%22 cy=%2271%22 rx=%2215%22 ry=%2211%22/%3E%3C/g%3E%0A%3Ccircle cx=%22330%22 cy=%2286%22 r=%228%22 fill=%22%23c4685d%22 opacity=%220.6%22/%3E%3Cpath d=%22M330 94 q-4 10 2 20%22 stroke=%22%236c7f95%22 fill=%22none%22 opacity=%22.7%22/%3E%0A%3Cpath d=%22M0 170V128Q60 100 130 122T260 116T360 106V170Z%22 fill=%22%2321382b%22/%3E%0A%3Cpath d=%22M0 170V146Q80 122 170 142T360 132V170Z%22 fill=%22%231a2d22%22/%3E%3C/svg%3E"); }
#splash-view { background: linear-gradient(#d9eaf7, var(--bg-color) 70%); }
:root[data-theme="dark"] #splash-view { background: linear-gradient(#1b2a3d, var(--bg-color) 70%); }
@media (max-width: 480px) { .header::before { inset: -20px -16px -18px -16px; } }

/* Logo z granatowymi literami: w ciemnym motywie jasna poświata, żeby napis był czytelny */
:root[data-theme="dark"] .brand-logo { filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff); }

/* ===== Podział: „Informacje o miejscu” + pasek „Zamelduj” nad dolnym menu ===== */
.panel-info { text-align: left; border-color: var(--border-color); background-color: var(--card-bg); }
.panel-info h3 { color: var(--brand); margin: 0; }
.info-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.panel-info .more-actions { margin: 10px 0 4px; }
.panel-info .row-actions { justify-content: flex-start; }
.more-toggle::after, .checkin-opts-toggle::after { content: '▾'; margin-left: 6px; font-size: 0.8em; }
.more-toggle[aria-expanded="true"]::after { content: '▴'; }
.checkin-opts-toggle::after { content: '▴'; }
.checkin-opts-toggle[aria-expanded="true"]::after { content: '▾'; }

.checkin-bar { position: sticky; bottom: var(--nav-h, 64px); z-index: 19; margin: 16px -30px 0; padding: 0; background: var(--card-bg); border-top: 1px solid var(--border-color); box-shadow: 0 -6px 16px rgba(30, 50, 80, 0.12); text-align: center; animation: barIn 0.25s ease-out; }
@keyframes barIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
#dashboard-view > .checkin-bar { margin-top: auto; }
#dashboard-view > .checkin-bar:not(.hidden) ~ .bottom-nav { margin-top: 0; }
.checkin-summary { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkin-summary.warn { color: var(--danger-text); font-weight: 600; }
.checkin-bar .btn-checkin { line-height: 1.2; }
.checkin-opts { max-height: 46vh; overflow-y: auto; text-align: left; padding: 4px 2px 8px; margin-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.checkin-opts .chips { text-align: left; margin: 4px 0 10px; }
.checkin-opts-toggle { background: none; border: none; color: var(--brand); font-weight: 700; font-size: 0.9rem; min-height: 40px; width: 100%; cursor: pointer; }
@media (max-width: 480px) { .checkin-bar { margin-left: -16px; margin-right: -16px; } }
@media (prefers-reduced-motion: reduce) { .checkin-bar { animation: none; } }

/* Uchwyt paska (bordowy, biały napis) + dwa równe przyciski po zameldowaniu */
.checkin-handle { position: relative; display: block; width: 100%; min-height: 28px; padding: 5px 12px; border: none; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkin-handle::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* większe pole dotyku nad uchwytem */
.checkin-bar .bar-body { padding: 10px 16px 4px; }
.checkin-bar.collapsed .bar-body { display: none; }
.checkin-bar.collapsed { box-shadow: 0 -2px 8px rgba(30, 50, 80, 0.1); }
.checkin-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Opcje zameldowania: etykiety nad polami w jednej linii, pola tej samej wysokości i równo od dołu */
.checkin-opts .grid-2 { align-items: end; margin-top: 8px !important; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.checkin-opts .grid-2 label { line-height: 1.2; font-size: 0.85rem; }
.checkin-opts .grid-2 input, .checkin-opts .grid-2 select { min-height: 48px; padding: 10px 8px 10px 12px; font-size: 0.88rem; }
.info-head h3 { font-size: 1.05rem; }
.info-head .btn-small { white-space: nowrap; flex: none; }

/* Pastelowo-żółte pole „Do zabrania” w Opcjach zameldowania */
.bring-box { background: #fff7de; border: 1px solid #f1e0a4; color: #5c4400; border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; font-size: 0.84rem; line-height: 1.4; text-align: left; }
.bring-box b { font-weight: 700; }
.bring-box .sub { color: #5c4400; opacity: 0.8; display: block; margin-top: 2px; font-size: 0.74rem; }
.checkin-place { font-size: 0.82rem; font-weight: 700; color: var(--brand); margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pdb-items { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.pdb-item { display: inline-flex; align-items: center; gap: 4px; background: var(--c-yellow-soft); border: 1px solid var(--c-yellow-line); color: var(--c-yellow-ink); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: .85rem; }
.pdb-x { border: 0; background: transparent; color: inherit; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; font-size: .8rem; line-height: 1; }

/* Samouczek i ekran powitalny */
.tut-hello { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; color: var(--text-dark); }
.tut-p { font-size: 0.9rem; line-height: 1.45; margin: 0 0 8px; text-align: left; color: var(--text-dark); }
.tut-ul { margin: 0 0 10px; padding-left: 20px; font-size: 0.88rem; line-height: 1.5; text-align: left; color: var(--text-dark); }
.tut-welcome { text-align: left; }
.tut-foot { font-size: 0.78rem; color: var(--text-muted, var(--text-dark)); opacity: .85; margin: 10px 0 0; text-align: left; line-height: 1.4; }
.tut-intro { font-size: 0.85rem; margin: 0 0 10px; text-align: left; opacity: .9; }
.tut-sec { border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 8px; overflow: hidden; background: var(--surface-2, transparent); }
.tut-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px; background: transparent; border: 0; color: var(--text-dark); font-size: 0.95rem; font-weight: 600; text-align: left; cursor: pointer; min-height: 48px; }
.tut-ico { font-size: 1.2rem; flex: none; }
.tut-t { flex: 1; }
.tut-chev { flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; margin-right: 4px; }
.tut-head[aria-expanded="true"] .tut-chev { transform: rotate(225deg) translate(-2px, -2px); }
.tut-body { padding: 2px 12px 12px; }
.tut-demo { position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 4px 0 12px; padding: 14px 8px 8px; border: 1px dashed var(--border-color); border-radius: 12px; }
.tut-demo > button { opacity: .95; }
.tut-tag { position: absolute; top: -9px; left: 10px; background: var(--card-bg, #fff); color: var(--text-dark); border: 1px solid var(--border-color); border-radius: 999px; padding: 0 8px; font-size: 0.68rem; line-height: 16px; }
.tut-bring { display: block; background: #fff7de; border: 1px solid #f1e0a4; color: #5c4400; border-radius: 12px; padding: 8px 12px; font-size: 0.84rem; width: 100%; box-sizing: border-box; text-align: left; }

/* Podgląd zdjęcia: poprzednie / następne */
.pv-stage { position: relative; }
.pv-counter { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.pv-nav.prev { left: 4px; } .pv-nav.next { right: 4px; }

/* Sekcja „Czego szukasz?” nad mapą: panel „Więcej” */
.search-more { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--border-color); }
.search-more .address-box { background: transparent; border: 0; padding: 0; margin: 0 0 14px; }
#search-section { margin-bottom: 12px; }
#btn-search-more { margin-top: 8px; }
.gres { display: flex; flex-direction: column; gap: 6px; }
.gres button { text-align: left; background: var(--surface); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 10px; color: var(--text-dark); cursor: pointer; font-size: 0.88rem; }
.gres button b { display: block; color: var(--brand); }
.gres button span { font-size: 0.78rem; opacity: .85; }

/* Gry i zabawy */
.btn-games { display: block; width: 100%; min-height: 44px; margin: 8px 0 0; background: var(--surface); border: 1.5px dashed var(--c-yellow-strong); border-radius: 12px; font-size: 1.05rem; font-weight: 800; letter-spacing: .2px; cursor: pointer; }
.btn-games-sm { font-weight: 800; }
.rb1 { color: var(--c-coral-ink); } .rb2 { color: var(--c-tan-ink); } .rb3 { color: var(--c-yellow-ink); } .rb4 { color: var(--c-green-ink); } .rb5 { color: var(--c-blue-ink); }
.gm { text-align: left; }
.gm-tools { border: 1px solid var(--border-color); border-radius: 12px; padding: 8px 10px; margin: 6px 0; }
.gm-tools > summary { cursor: pointer; font-weight: 700; color: var(--brand); font-size: 0.9rem; }
.gm-card { border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 8px; background: var(--surface-2); overflow: hidden; }
.gm-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: transparent; border: 0; color: var(--text-dark); text-align: left; cursor: pointer; min-height: 52px; }
.gm-head[aria-expanded="true"] .tut-chev { transform: rotate(225deg) translate(-2px, -2px); }
.gm-ico { font-size: 1.35rem; flex: none; }
.gm-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.gm-t b { font-size: 0.95rem; }
.gm-t .sub { font-size: 0.76rem; }
.gm-body { padding: 0 12px 12px; }
.gm-safe { font-size: 0.82rem; background: var(--c-coral-soft); color: var(--c-coral-ink); border: 1px solid var(--c-coral-line); border-radius: 10px; padding: 6px 10px; margin: 0 0 8px; }
.gm-tool { border: 1px dashed var(--border-color); border-radius: 12px; padding: 10px; margin-top: 8px; text-align: center; }
.gm-tool-t { font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; text-align: left; }
.gm-big { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 6px 0; color: var(--text-dark); }
.gm-big.gm-task { font-size: 1.15rem; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.gm-big.gm-done { color: var(--c-coral-ink); }
.gm-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 6px 0; }
.gm-score-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.gm-score-row input { flex: 1; min-width: 0; }
.gm-pts { min-width: 2.2em; font-size: 1.3rem; font-weight: 800; text-align: center; }
.gm-bingo { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-bottom: 6px; }
.gm-cell { min-height: 54px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--surface); color: var(--text-dark); font-size: 0.8rem; padding: 6px; cursor: pointer; }
.gm-cell.on { background: var(--c-green-soft); border-color: var(--c-green-strong); color: var(--c-green-ink); text-decoration: line-through; }
.gm-bingo-msg { font-weight: 700; min-height: 1.3em; margin-bottom: 6px; }
.gm-disclaimer { font-size: 0.76rem; color: var(--text-muted); line-height: 1.4; border-top: 1px dashed var(--border-color); padding-top: 8px; margin-top: 10px; }

.yard-btn.on { background: var(--c-green-soft); color: var(--c-green-ink); border: 1px solid var(--c-green-strong); }

/* Ekran ładowania na szerokich ekranach (komputer, tablet poziomo): wzgórza rozciągnięte na całą szerokość, słońce i chmury osobno – nic się nie ucina */
@media (min-aspect-ratio: 1/1) {
  #splash-view::after { height: 34%; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 96 360 74%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 170V128Q60 100 130 122T260 116T360 106V170Z%22 fill=%22%23cfe3cc%22/%3E%3Cpath d=%22M0 170V146Q80 122 170 142T360 132V170Z%22 fill=%22%23b9d6b5%22/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
  :root[data-theme="dark"] #splash-view::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 96 360 74%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 170V128Q60 100 130 122T260 116T360 106V170Z%22 fill=%22%2321382b%22/%3E%3Cpath d=%22M0 170V146Q80 122 170 142T360 132V170Z%22 fill=%22%231a2d22%22/%3E%3C/svg%3E"); }
  #splash-view::before { content: ''; position: absolute; left: 0; right: 0; top: 7%; height: 26%; z-index: -1; opacity: .95; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 15 360 80%22 preserveAspectRatio=%22xMidYMid meet%22%3E%3Ccircle cx=%22306%22 cy=%2240%22 r=%2217%22 fill=%22%23f6e3a1%22 opacity=%220.95%22/%3E%3Cg fill=%22%23ffffff%22 opacity=%220.9%22%3E%3Cellipse cx=%2256%22 cy=%2242%22 rx=%2230%22 ry=%2212%22/%3E%3Cellipse cx=%2280%22 cy=%2233%22 rx=%2220%22 ry=%2214%22/%3E%3Cellipse cx=%2238%22 cy=%2236%22 rx=%2216%22 ry=%2210%22/%3E%3Cellipse cx=%22232%22 cy=%2278%22 rx=%2224%22 ry=%229%22/%3E%3Cellipse cx=%22250%22 cy=%2271%22 rx=%2215%22 ry=%2211%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
  :root[data-theme="dark"] #splash-view::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 15 360 80%22 preserveAspectRatio=%22xMidYMid meet%22%3E%3Ccircle cx=%22306%22 cy=%2240%22 r=%2217%22 fill=%22%23e0b64f%22 opacity=%220.55%22/%3E%3Cg fill=%22%23ffffff%22 opacity=%220.16%22%3E%3Cellipse cx=%2256%22 cy=%2242%22 rx=%2230%22 ry=%2212%22/%3E%3Cellipse cx=%2280%22 cy=%2233%22 rx=%2220%22 ry=%2214%22/%3E%3Cellipse cx=%2238%22 cy=%2236%22 rx=%2216%22 ry=%2210%22/%3E%3Cellipse cx=%22232%22 cy=%2278%22 rx=%2224%22 ry=%229%22/%3E%3Cellipse cx=%22250%22 cy=%2271%22 rx=%2215%22 ry=%2211%22/%3E%3C/g%3E%3C/svg%3E"); }
}

/* Paszport podwórkowy */
.pp-progress { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.pp-bar { height: 100%; background: linear-gradient(90deg, var(--c-coral-strong), var(--c-yellow-strong), var(--c-green-strong), var(--c-blue-strong)); border-radius: 999px; transition: width .3s; }
.pp-group { margin-bottom: 12px; }
.pp-gt { font-weight: 700; font-size: 0.86rem; color: var(--brand); margin-bottom: 6px; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.pp-stamp { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; min-height: 96px; border-radius: 14px; border: 1.5px dashed var(--border-color); background: var(--surface); color: var(--text-muted); cursor: pointer; text-align: center; }
.pp-stamp .pp-ico { font-size: 1.6rem; filter: grayscale(1); opacity: .45; }
.pp-stamp .pp-t { font-size: 0.72rem; line-height: 1.25; }
.pp-stamp .pp-d { font-size: 0.66rem; opacity: .8; min-height: 1em; }
.pp-stamp.on { border: 2px solid var(--c-yellow-strong); background: var(--c-yellow-soft); color: var(--c-yellow-ink); }
.pp-stamp.on .pp-ico { filter: none; opacity: 1; transform: rotate(-6deg); }
.pp-stamp.on .pp-d { font-weight: 700; }
/* Pomysł dnia */
.idea-game { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.idea-ico { font-size: 2.2rem; }
.idea-game b { font-size: 1.05rem; }
.idea-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
#idea-days .chip:disabled { opacity: .5; }

/* Zachód słońca pod pogodą (prawy górny róg) */
.header-bar .hb-right { flex-direction: column; align-items: flex-end; gap: 3px; }
.sun-chip { white-space: nowrap; }
.sun-chip.sun-low { background: var(--warn-bg); color: var(--warn-text); }

.today-wx { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--c-blue-soft); border: 1px solid var(--c-blue-line); color: var(--c-blue-ink); }
.today-wx .sub { color: var(--c-blue-ink); }
.today-wx .chip { font-size: 0.8rem; }
.today-discover { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: var(--c-green-soft); border: 1px solid var(--c-green-line); color: var(--c-green-ink); }
.today-discover .main { flex: 1 1 180px; min-width: 0; }
.today-discover .sub { color: var(--c-green-ink); }
.today-discover .actions { display: flex; gap: 6px; margin-left: auto; }

/* Plan na weekend i wydarzenia */
.wk-sec { margin-bottom: 14px; }
.wk-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.wk-day { border: 1px solid var(--border-color); border-radius: 12px; padding: 8px 10px; background: var(--surface-2); font-size: 0.88rem; }
.wk-day b { display: block; }
.wk-day.best { border: 2px solid var(--c-green-strong); background: var(--c-green-soft); color: var(--c-green-ink); }
.wk-days > p { grid-column: 1 / -1; }
.ev-card { border: 1px solid var(--border-color); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface-2); }
.ev-card .sub { margin-top: 2px; }

.events-teaser { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 15px; padding: 10px 12px; border-radius: 14px; background: var(--c-yellow-soft); border: 1px solid var(--c-yellow-line); color: var(--c-yellow-ink); }
.events-teaser .main { flex: 1 1 200px; min-width: 0; }
.events-teaser .sub { color: var(--c-yellow-ink); }
.ev-on { background: var(--c-green-soft) !important; color: var(--c-green-ink) !important; border: 1px solid var(--c-green-strong) !important; }
.ev-going-n { font-weight: 600; margin-top: 4px; }
.ev-geo { margin-top: 6px; }
.seek-more { border: 1px dashed var(--border-color); border-radius: 12px; padding: 8px 10px; margin: 8px 0; }
.seek-more > summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; color: var(--brand); }

/* Wysyłanie poza Placowo (WhatsApp, SMS…) */
.so-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.so-btns .btn-small { flex: 1 1 140px; padding: 10px; }
.btn-small.so-wa { background: #128c4b; color: #fff; }
.btn-small.so-wa:hover:not(:disabled) { background: #0e7a40; }
.so-text { box-sizing: border-box; min-height: 150px; font-family: inherit; font-size: 0.88rem; line-height: 1.4; padding: 10px 12px; }
.so-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.so-row .so-open { padding: 10px 14px; }
.osm-more > summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--brand); }
.osm-more[open] > summary { margin-bottom: 4px; }
.ev-empty { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ev-empty .hint { flex: 1 1 220px; }

/* Jednorazowy dymek pod przyciskami bezpieczeństwa */
.safety-tip { position: absolute; left: 50%; transform: translateX(-50%); z-index: 30; width: min(320px, calc(100vw - 32px)); box-sizing: border-box; text-align: left;
  background: var(--surface); color: var(--text-dark); border: 2px solid var(--c-coral-strong); border-radius: 14px; padding: 12px 34px 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 0.88rem; line-height: 1.4; animation: tipIn .25s ease-out; }
.safety-tip::before { content: ''; position: absolute; top: -9px; left: 50%; width: 14px; height: 14px; background: var(--surface); border-left: 2px solid var(--c-coral-strong); border-top: 2px solid var(--c-coral-strong); transform: translateX(-50%) rotate(45deg); }
.safety-tip b { display: block; color: var(--c-coral-ink); margin-bottom: 4px; }
.safety-tip .safety-tip-l { margin-bottom: 8px; }
.safety-tip .safety-tip-x { position: absolute; top: 6px; right: 6px; background: transparent; border: none; font-size: 1rem; cursor: pointer; color: var(--text-muted); padding: 4px 6px; }
@keyframes tipIn { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .safety-tip { animation: none; } }
