/* SOS Zdarzenie 0.1 – wygląd. Mapa jest tłem, wszystko inne unosi się nad nią. */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --card-2: #f1f4fa;
  --text: #121826;
  --muted: #5b667a;
  --line: #e2e7f0;
  --brand: #2f6bff;
  --brand-ink: #ffffff;
  --ok: #12925a;
  --warn: #c2620a;
  --danger: #e11d48;
  --shadow: 0 8px 28px rgba(16, 24, 40, .16);
  --radius: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c111d;
  --card: #151c2c;
  --card-2: #1d2740;
  --text: #eef2fb;
  --muted: #9aa7bf;
  --line: #27324b;
  --brand: #5b8cff;
  --brand-ink: #0b1020;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb4f72;
  --shadow: 0 8px 28px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

#map { position: fixed; inset: 0; z-index: 0; background: var(--bg); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.7); }
.leaflet-container { font: inherit; background: var(--bg); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--card) 80%, transparent) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }

/* Górny pasek */
.topbar {
  position: fixed; z-index: 500; top: calc(10px + var(--safe-t)); left: 10px; right: 10px;
  display: flex; align-items: center; gap: 8px; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; margin-right: auto;
  background: var(--card); border-radius: 999px; box-shadow: var(--shadow); font-weight: 700; letter-spacing: -.01em;
}
.brand span { white-space: nowrap; }
.pill {
  display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); font-weight: 600; white-space: nowrap;
}
.pill b { background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 1px 8px; font-size: 13px; }
.iconbtn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow);
}
.iconbtn:active, .pill:active, .fab:active, .fab-small:active { transform: scale(.96); }

.hint {
  position: fixed; z-index: 450; top: calc(66px + var(--safe-t)); left: 50%; transform: translateX(-50%);
  background: var(--card); color: var(--muted); padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow);
  font-size: 14px; max-width: calc(100vw - 24px); text-align: center;
}

/* Przyciski główne */
.fab {
  position: fixed; z-index: 500; left: 50%; bottom: calc(22px + var(--safe-b)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 30px 0 22px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink); font-size: 19px; font-weight: 700;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 45%, transparent);
}
.fab:active { transform: translateX(-50%) scale(.96); }
.btn112 {
  position: fixed; z-index: 500; left: 14px; bottom: calc(24px + var(--safe-b));
  display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 16px; border-radius: 999px;
  background: var(--danger); color: #fff; font-weight: 800; font-size: 18px; text-decoration: none;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--danger) 45%, transparent);
}
.fab-small {
  position: fixed; z-index: 500; right: 14px; bottom: calc(24px + var(--safe-b));
  display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%;
  background: var(--card); color: var(--brand); box-shadow: var(--shadow);
}

.crosshair {
  position: fixed; z-index: 400; left: 50%; top: 50%; width: 44px; height: 44px; margin: -44px 0 0 -22px;
  color: var(--brand); pointer-events: none; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35));
}

/* Punkty na mapie */
.pin {
  --c: #475569;
  position: relative; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50% 50% 50% 6px; transform: rotate(-45deg);
  background: var(--card); color: var(--c); border: 3px solid var(--c);
  box-shadow: 0 4px 12px rgba(0,0,0,.28); opacity: .82;
}
.pin svg { transform: rotate(45deg); }
.pin--ok { background: var(--c); color: #fff; opacity: 1; }
.pin--mine { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.pin b {
  position: absolute; top: -8px; right: -8px; transform: rotate(45deg); min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px; background: var(--ok); color: #fff; font-size: 12px; font-weight: 700;
  border: 2px solid var(--card);
}
.me-dot {
  width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(47, 107, 255, .25);
}

/* Wysuwany panel */
.backdrop { position: fixed; inset: 0; z-index: 900; background: rgba(8, 12, 22, .45); }
.sheet {
  position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(100%, 540px);
  max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--card); border-radius: 26px 26px 0 0; box-shadow: var(--shadow);
  animation: rise .22s ease-out;
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet__grip { width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: 10px auto 0; flex: none; }
.sheet__close { position: absolute; top: 12px; right: 12px; box-shadow: none; background: var(--card-2); width: 38px; height: 38px; }
.sheet__body { padding: 8px 20px calc(22px + var(--safe-b)); overflow-y: auto; overscroll-behavior: contain; }
.sheet h2 { margin: 6px 44px 4px 0; font-size: 22px; letter-spacing: -.02em; }
.sheet h3 { margin: 18px 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
.sub { color: var(--muted); margin: 0 0 14px; font-size: 15px; }

/* Kafelki kategorii */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat {
  --c: #475569;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 12px 6px;
  border: 0; border-radius: var(--radius); background: var(--card-2); text-align: center; font-size: 13.500px; font-weight: 600; line-height: 1.2;
}
.cat i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; }
.cat:active { transform: scale(.97); }
.alarm-row {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--danger) 12%, var(--card)); color: var(--text); text-decoration: none; font-size: 14.500px;
}
.alarm-row strong { color: var(--danger); }
.alarm-row i { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--danger); color: #fff; }

/* Formularze i przyciski */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 0 18px;
  border: 0; border-radius: 16px; background: var(--brand); color: var(--brand-ink); font-size: 17px; font-weight: 700;
}
.btn[disabled] { opacity: .55; cursor: default; }
.btn--ghost { background: var(--card-2); color: var(--text); }
.btn--ok { background: var(--ok); color: #fff; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--small { min-height: 44px; font-size: 15px; width: auto; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.stack { display: grid; gap: 12px; }
label.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
input[type="text"], input[type="password"], textarea, select {
  width: 100%; padding: 14px; border: 1.500px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font-weight: 400;
}
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
textarea { min-height: 84px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.500px; color: var(--text); font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--brand); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; text-decoration: underline; }
.err { color: var(--danger); font-size: 14.500px; margin: 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: 10px 0 16px; border-radius: 16px; background: var(--card-2); }
.tabs button { height: 44px; border: 0; border-radius: 12px; background: none; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* Podsumowanie zgłoszenia i karta zdarzenia */
.summary { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--card-2); }
.summary i, .ev-head i { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--c, #475569); color: #fff; }
.summary b { display: block; font-size: 17px; }
.summary small, .meta { color: var(--muted); font-size: 14px; }
.optional { display: grid; gap: 10px; margin: 12px 0 16px; }
.photo-prev { position: relative; }
.photo-prev img, .ev-photo { width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; display: block; }
.note { font-size: 13.500px; color: var(--muted); margin: 0; }

.ev-head { display: flex; align-items: center; gap: 14px; margin: 4px 40px 12px 0; }
.ev-head h2 { margin: 0; font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--card-2); font-size: 13px; font-weight: 600; color: var(--muted); }
.chip--ok { background: color-mix(in srgb, var(--ok) 16%, var(--card)); color: var(--ok); }
.chip--warn { background: color-mix(in srgb, var(--warn) 18%, var(--card)); color: var(--warn); }
.chip--bad { background: color-mix(in srgb, var(--danger) 14%, var(--card)); color: var(--danger); }
.ev-desc { margin: 0 0 12px; font-size: 16px; overflow-wrap: anywhere; }
.ev-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ev-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

/* Listy */
.list { display: grid; gap: 8px; }
.item {
  --c: #475569;
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 16px; background: var(--card-2); text-align: left;
}
.item i { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--c); color: #fff; }
.item b { display: block; font-size: 15.500px; }
.item small { color: var(--muted); font-size: 13.500px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62vw; }
.item .end { margin-left: auto; text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.menu-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 14px; border: 0; border-radius: 16px; background: none; font-weight: 600; text-align: left; text-decoration: none; color: var(--text); }
.menu-item:hover, .menu-item:active { background: var(--card-2); }
.menu-item svg { color: var(--muted); flex: none; }
.menu-item small { margin-left: auto; color: var(--muted); font-weight: 400; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }

.rep { padding: 16px; border-radius: var(--radius); background: var(--card-2); margin: 10px 0 6px; }
.rep__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rep__top b { font-size: 19px; }
.rep__bar { height: 10px; border-radius: 999px; background: var(--line); margin: 10px 0 8px; overflow: hidden; }
.rep__bar span { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.rules { padding-left: 20px; margin: 0; display: grid; gap: 8px; }

/* Komunikaty */
.toasts { position: fixed; z-index: 2000; left: 0; right: 0; top: calc(64px + var(--safe-t)); display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 12px; }
.toast {
  pointer-events: none; max-width: 480px; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--text); color: var(--bg);
  box-shadow: var(--shadow); font-size: 15px; font-weight: 600; text-align: left; animation: rise .2s ease-out;
}
.toast--bad { background: var(--danger); color: #fff; }

@media (max-width: 420px) {
  .brand span { display: none; }
  .brand { padding: 7px 8px; }
  .fab { padding: 0 24px 0 18px; font-size: 18px; }
}
@media (min-width: 900px) {
  /* Na dużym ekranie panel stoi nad przyciskiem 112, żeby go nie zasłaniać. */
  .sheet { left: 14px; right: auto; bottom: 96px; margin: 0; width: 420px; border-radius: 26px; max-height: calc(100dvh - 190px); }
  .sheet__grip { visibility: hidden; }
  .backdrop { background: transparent; }
}

/* ---------- Tablica zgłoszeń: duże okrągłe przyciski na cały ekran ---------- */
.pad {
  position: fixed; inset: 0; z-index: 800; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(14px + var(--safe-t)) 16px calc(20px + var(--safe-b));
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 14px; animation: rise .18s ease-out;
}
.pad > * { width: 100%; max-width: 620px; margin-inline: auto; }
.pad__head { display: flex; align-items: center; justify-content: space-between; }
.pad__head h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.pad__alarm { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px; background: var(--danger); color: #fff; text-decoration: none; font-size: 15px; line-height: 1.3; }
.pad__alarm i { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.pad__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; margin-block: auto; }
.pad-btn { --c: #475569; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center; }
.pad-btn i {
  display: grid; place-items: center; width: min(25vw, 104px); aspect-ratio: 1; border-radius: 50%; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c) 60%);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 38%, transparent), inset 0 0 0 4px rgba(255, 255, 255, .22);
}
.pad-btn i svg { width: 44%; height: 44%; }
.pad-btn:active i { transform: scale(.93); }
.pad__note { margin: 0 auto; color: var(--muted); font-size: 13.5px; text-align: center; }
@media (max-height: 760px) { .pad-btn i { width: min(20vw, 80px); } .pad__grid { gap: 10px 8px; } }
@media (prefers-reduced-motion: reduce) { .pad { animation: none; } }

/* Pasek odliczania po wybraniu rodzaju zgłoszenia */
.sendbar {
  position: fixed; z-index: 700; left: 10px; right: 10px; bottom: calc(100px + var(--safe-b)); margin: 0 auto; max-width: 520px;
  display: grid; gap: 12px; padding: 16px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); animation: rise .18s ease-out;
}
.sendbar__top { display: flex; align-items: center; gap: 12px; }
.sendbar__top i { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 50%; background: var(--c, #475569); color: #fff; }
.sendbar__top b { display: block; font-size: 18px; }
.sendbar__top small { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.sendbar__bar { height: 8px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.sendbar__bar span { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--brand); }
.sendbar__btns { display: grid; grid-template-columns: 1fr 1.25fr 1.15fr; gap: 8px; }
.sendbar__btns .btn { width: 100%; padding: 0 6px; font-size: 14.5px; min-height: 48px; }

/* ---------- Konto: dorosły / dziecko, e-mail, Google, Facebook ---------- */
input[type="email"] { width: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font-weight: 400; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kind { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 10px; border: 0; border-radius: 22px; background: var(--card-2); text-align: center; }
.kind i { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #fff; }
.kind--child i { background: #f59e0b; }
.kind b { font-size: 19px; }
.kind span { color: var(--muted); font-size: 13.5px; }
.kind:active { transform: scale(.98); }
.btn--social { background: var(--card); color: var(--text); border: 1.5px solid var(--line); font-size: 16px; }
.brandmark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 16px; }
.btn--google .brandmark { background: #4285f4; }
.btn--facebook .brandmark { background: #1877f2; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
input.code { font-size: 24px; letter-spacing: .16em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.note--box { padding: 11px 13px; border-radius: 14px; background: color-mix(in srgb, var(--warn) 13%, var(--card)); color: var(--text); }
.codebox { display: grid; gap: 2px; justify-items: center; padding: 18px; border-radius: 20px; background: var(--card-2); }
.codebox b { font-size: 34px; letter-spacing: .08em; }
.codebox small { color: var(--muted); }
/* ---------- Rodzina ---------- */
.fab-family { position: fixed; z-index: 500; right: 14px; bottom: calc(92px + var(--safe-b)); display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: #f59e0b; color: #1f1300; font-weight: 800; font-size: 17px; box-shadow: 0 8px 24px rgba(245, 158, 11, .45); }
.brand { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; }
.fdot { position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.fdot--ok { background: #22c55e; }
.fdot--bad { background: #ef4444; }
.fbuttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fbuttons .fbtn:first-child { grid-column: 1 / -1; flex-direction: row; text-align: left; font-size: 23px; }
.fbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 104px; padding: 14px 12px; border: 0; border-radius: 26px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 84%, #fff), var(--c) 60%); color: #fff; font-size: 17px; line-height: 1.2; font-weight: 800; text-align: center; box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent); }
.fbtn i { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .24); }
.fbtn:active { transform: scale(.98); }
.fhead { margin: 8px auto 0; font-size: 18px; }
.fhead small { margin-left: 8px; font-weight: 500; color: var(--muted); }
.fmsgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fmsg { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border: 0; border-radius: 20px; background: var(--card); font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; box-shadow: var(--shadow); }
.fmsg i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c); color: #fff; }
.fmsg:active { transform: scale(.98); }
.fmsgstate .fhint { margin: 0; font-size: 15px; }
.fmsgstate.fstate--ok .fhint { color: #fff; }
.fnote { position: fixed; z-index: 600; bottom: calc(100px + var(--safe-b)); left: 10px; right: 10px; max-width: 480px; margin: 0 auto; padding: 14px 16px; display: grid; gap: 10px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); border-left: 6px solid var(--c); }
.fnote__top { display: flex; align-items: center; gap: 12px; }
.fnote__top i { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--c); color: #fff; }
.fnote b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.fnote small { color: var(--muted); }
.fnote p { margin: 0; font-size: 14.5px; }
.fnote__btns { display: flex; gap: 8px; }
.fnote__btns .btn { flex: 1; padding: 0 8px; }
.fitem__btns { flex-wrap: wrap; }
.fcalls { display: grid; gap: 10px; }
.fcalls .btn, .falarm .btn { text-decoration: none; }
.fhint { margin: 0 auto; color: var(--muted); font-size: 15px; }
.fhint a { color: var(--brand); font-weight: 700; }
.fstate { display: grid; gap: 4px; padding: 18px; border-radius: 20px; background: var(--card-2); font-size: 17px; }
.fstate b { font-size: 21px; }
.fstate--bad { background: var(--danger); color: #fff; }
.fsteps { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px; }
.fstep { display: flex; gap: 14px; align-items: center; padding: 13px 16px; border-radius: 18px; background: var(--card); color: var(--muted); }
.fstep i { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--line); color: var(--muted); }
.fstep b { display: block; font-size: 17px; }
.fstep span { font-size: 14px; }
.fstep--done { color: var(--text); }
.fstep--done i { background: var(--ok); color: #fff; }
.family-alert { position: fixed; inset: 0; z-index: 1500; overflow-y: auto; background: var(--c, #e11d48); color: #fff; padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b)); display: flex; }
.falarm { width: 100%; max-width: 480px; margin: auto; display: grid; gap: 12px; justify-items: center; text-align: center; }
.falarm > i { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: rgba(255, 255, 255, .22); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .falarm > i { animation: none; } }
.falarm h2 { margin: 4px 0 0; font-size: 32px; overflow-wrap: anywhere; }
.falarm p { margin: 0; font-size: 16px; }
.falarm__type { font-size: 24px !important; font-weight: 800; }
.falarm__silent { padding: 12px 16px; border-radius: 16px; background: #111827; font-weight: 700; }
.falarm .btn { background: rgba(255, 255, 255, .2); color: #fff; }
.falarm .falarm__main { background: #fff; color: #111827; min-height: 64px; font-size: 19px; }
.falarm__note { opacity: .85; font-size: 14px !important; }
.kid-pin { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c); color: #fff; border: 4px solid #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 35%, transparent); }
.fitem { align-items: flex-start; }
.fitem__btns { display: flex; gap: 16px; margin-top: 8px; }
input[type="tel"] { width: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font-weight: 400; }
.penalty { padding: 14px 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--danger) 13%, var(--card)); margin: 0 0 8px; font-size: 14.5px; }
.penalty b { display: block; color: var(--danger); font-size: 16px; }
.reward { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.reward--on { color: var(--ok); font-weight: 700; }
.ev-actions__wide { grid-column: 1 / -1; min-height: 48px; font-size: 15px; }.fbtn small { display: block; font-size: 14px; font-weight: 600; opacity: .9; }

/* Starsze telefony bez color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .pad { background: var(--bg); }
  .alarm-row, .penalty, .chip--ok, .chip--warn, .chip--bad, .note--box { background: var(--card-2); }
  .pad-btn i, .fbtn { background: var(--c); }
}
.gcheck { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card-2); }
.gcheck > i { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; color: #fff; background: var(--danger); }
.gcheck--ok > i { background: var(--ok); }
.gcheck--ask > i { background: #f59e0b; }
.gcheck b { display: block; font-size: 15.5px; }
.gcheck span { color: var(--muted); font-size: 13.5px; }
.gcheck .btn { margin-left: auto; flex: none; padding: 0 14px; background: var(--card); }
.fstate--ok { background: var(--ok); color: #fff; }a.btn { text-decoration: none; }
