:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1f2630;
  --line: #2a323d;
  --text: #f1f4f8;
  --muted: #9aa5b4;
  --faint: #6b7686;
  --accent: #3d9bff;
  --ok: #2bd98b;
  --red: #ff453a;
  --red-soft: rgba(255, 69, 58, .16);
  --yellow: #ffcc00;
  --yellow-soft: rgba(255, 204, 0, .16);
  --uav: #ff8a1f;
  --jet: #ff5a1f;
  --missile: #ff3b5c;
  --ballistic: #e5195e;
  --kab: #d9773a;
  --recon: #3d9bff;
  --fpv: #f5c518;
  --aviation: #a970ff;
  --mine: #2bd9a8;
  --radius: 18px;
  --on-accent: #ffffff;
  --chip-radius: 999px;
  --safe-top: max(env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px) + var(--tg-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
  --nav-h: 64px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef1f5;
  --panel: #ffffff;
  --panel-2: #f1f4f8;
  --line: #dde3ea;
  --text: #121820;
  --muted: #5b6676;
  --faint: #8a95a5;
  --red-soft: rgba(255, 69, 58, .12);
  --yellow-soft: rgba(230, 170, 0, .14);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 500 15px/1.4 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden;
  overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
a { color: var(--accent); text-decoration: none; }
#map { position: fixed; inset: 0; }
#ui { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
#ui > * { pointer-events: auto; }
.maplibregl-ctrl-attrib { font-size: 10px; background: rgba(0,0,0,.35) !important; color: #aab; }
.maplibregl-ctrl-attrib a { color: #ccd; }
.maplibregl-ctrl-bottom-right { bottom: calc(var(--nav-h) + var(--safe-bottom) + 4px); }

/* ---------- top bar ---------- */
.top { position: absolute; left: 12px; right: 12px; top: calc(var(--safe-top) + 10px); display: flex; gap: 8px; align-items: center;
  pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.brand svg { width: 22px; height: 22px; }
.brand b { font-weight: 800; letter-spacing: .2px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(43,217,139,.6); animation: pulse 2s infinite; }
.live.off i { background: var(--red); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,217,139,.55); } 70% { box-shadow: 0 0 0 7px rgba(43,217,139,0); } 100% { box-shadow: 0 0 0 0 rgba(43,217,139,0); } }
.top .sp { flex: 1; }
.round { width: 42px; height: 42px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.round svg { width: 21px; height: 21px; }
.round.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- banners ---------- */
.banners { position: absolute; left: 12px; right: 12px; top: calc(var(--safe-top) + 62px); display: flex; flex-direction: column; gap: 6px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-weight: 700; color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.banner small { display: block; font-weight: 600; opacity: .9; font-size: 12px; }
.banner.ballistic { background: var(--ballistic); animation: blink 1.4s ease-in-out infinite; }
.banner.mig31k { background: #6b3fd6; }
.banner.stale { background: #4a5260; }
@keyframes blink { 50% { filter: brightness(1.25); } }
.chips-area { display: flex; gap: 6px; flex-wrap: wrap; }
.achip { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.achip.kab { color: var(--kab); } .achip.aviation { color: var(--aviation); } .achip.missile { color: var(--missile); } .achip.uav { color: var(--uav); }

/* ---------- status card ---------- */
.status { position: absolute; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.status .row { display: flex; align-items: center; gap: 12px; }
.status .dot { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; }
.status .dot.calm { background: rgba(43,217,139,.14); color: var(--ok); }
.status .dot.red { background: var(--red-soft); color: var(--red); }
.status .dot.yellow { background: var(--yellow-soft); color: var(--yellow); }
.status h2 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.2; }
.status p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.status .near { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.nearrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--panel-2); text-align: left; width: 100%; }
.nearrow .ti { width: 28px; height: 28px; flex: none; }
.nearrow b { font-weight: 800; }
.nearrow span { color: var(--muted); font-size: 13px; }
.nearrow .km { margin-left: auto; font-weight: 800; white-space: nowrap; }
.nearrow.hot { box-shadow: inset 0 0 0 1.5px var(--red); }
.status .cta { margin-top: 10px; display: flex; gap: 8px; }

/* ---------- bottom nav ---------- */
.nav { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: var(--panel); border-top: 1px solid var(--line); display: flex; z-index: 5; }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--faint); }
.nav button svg { width: 24px; height: 24px; }
.nav button.on { color: var(--accent); }
.nav .badge { position: absolute; margin-left: 22px; margin-top: -26px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red);
  color: #fff; font-size: 10px; display: grid; place-items: center; }

/* ---------- sheet ---------- */
.sheet { position: absolute; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-bottom)); max-height: 74vh; height: 74vh; background: var(--bg);
  border-top-left-radius: 22px; border-top-right-radius: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column;
  box-shadow: 0 -10px 30px rgba(0,0,0,.35); z-index: 4; }
.sheet.enter { animation: up .18s ease-out; }
.slot { display: contents; }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
.sheet header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; }
.sheet header h1 { margin: 0; font-size: 21px; font-weight: 800; flex: 1; }
.sheet .scroll { overflow-y: auto; padding: 4px 16px 24px; flex: 1; -webkit-overflow-scrolling: touch; }
.seg { display: flex; background: var(--panel-2); border-radius: 12px; padding: 3px; gap: 3px; margin: 0 16px 6px; }
.seg button { flex: 1; padding: 7px 6px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.2); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; border-radius: 14px;
  background: var(--panel-2); font-weight: 800; border: 1px solid var(--line); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.block { width: 100%; }
.btn svg { width: 19px; height: 19px; }

/* feed */
.post { padding: 12px 0; border-bottom: 1px solid var(--line); }
.post .h { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; color: var(--muted); }
.post .h b { color: var(--text); font-weight: 800; font-size: 13px; }
.post .h .k { font-size: 10.5px; padding: 1px 6px; border-radius: 6px; background: var(--panel-2); text-transform: uppercase; letter-spacing: .3px; }
.post .tx { white-space: pre-line; margin-top: 4px; font-size: 14.5px; }
.post .ps { margin-top: 6px; display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--accent);
  background: rgba(61,155,255,.1); padding: 4px 8px; border-radius: 8px; }

/* places */
.place { display: flex; gap: 12px; align-items: center; }
.place .pi { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(43,217,139,.14); color: var(--mine); flex: none; }
.place .pi.red { background: var(--red-soft); color: var(--red); }
.place .pi.yellow { background: var(--yellow-soft); color: var(--yellow); }
.place b { font-size: 16px; font-weight: 800; }
.place .grow { flex: 1; min-width: 0; }
.place .grow div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.input { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-size: 16px; outline: none; }
.input:focus { border-color: var(--accent); }
.results { margin-top: 8px; }
.result { width: 100%; text-align: left; padding: 11px 12px; border-radius: 12px; display: block; }
.result:active, .result:hover { background: var(--panel-2); }
.result small { color: var(--muted); display: block; }
.chipset { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip { padding: 8px 13px; border-radius: var(--chip-radius); background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.range { width: 100%; accent-color: var(--accent); }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle:last-child { border-bottom: 0; }
.toggle div { flex: 1; }
.toggle small { display: block; color: var(--muted); font-size: 12.5px; }
.sw { width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.sw.on { background: var(--ok); }
.sw.on::after { left: 21px; }

/* threat popup */
.pop { position: absolute; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px); background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 3; }
.pop .row { display: flex; gap: 12px; align-items: center; }
.pop .ti { width: 44px; height: 44px; flex: none; }
.pop h2 { margin: 0; font-size: 18px; font-weight: 800; }
.pop .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: var(--panel-2); color: var(--muted); }
.tag.hi { color: var(--ok); } .tag.lo { color: var(--yellow); } .tag.red { color: var(--red); }
.srcs { margin-top: 10px; font-size: 13px; color: var(--muted); }
.srcs a { font-weight: 700; margin-right: 8px; white-space: nowrap; }
.x { width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; flex: none; }
.x svg { width: 18px; height: 18px; }

/* filters */
.filters { position: absolute; right: 12px; top: calc(var(--safe-top) + 60px); background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.35); min-width: 210px; }
.filters button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-weight: 700; text-align: left; }
.filters button.off { opacity: .4; }
.filters .ti { width: 22px; height: 22px; }

.legend { display: grid; grid-template-columns: 30px 1fr; gap: 8px 10px; align-items: center; }
.legend .ti { width: 28px; height: 28px; }
.sw-red { width: 22px; height: 16px; border-radius: 4px; background: rgba(255,69,58,.45); border: 1.5px solid var(--red); }
.sw-yel { width: 22px; height: 16px; border-radius: 4px; background: rgba(255,204,0,.35); border: 1.5px solid var(--yellow); }

.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat div { background: var(--panel-2); border-radius: 12px; padding: 10px; }
.stat b { display: block; font-size: 22px; font-weight: 800; }
.stat span { font-size: 12px; color: var(--muted); }
.bar { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--uav); }
.obl { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.obl .n { width: 150px; font-weight: 700; }
.obl .g { flex: 1; }
.obl .c { width: 34px; text-align: right; font-weight: 800; }

.gate { position: absolute; inset: 0; background: var(--bg); z-index: 20; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--safe-top) + 24px) 22px calc(var(--safe-bottom) + 24px); gap: 14px; }
.gate h1 { font-size: 24px; margin: 0; font-weight: 800; }
.gate p { margin: 0; color: var(--muted); white-space: pre-line; }
.gate .now { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.toast { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-bottom) + 150px); background: #000c;
  color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 700; z-index: 30; max-width: 90%; text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.disclaimer { font-size: 12.5px; color: var(--faint); margin-top: 12px; }
.mt { margin-top: 12px; }
.row2 { display: flex; gap: 8px; }
.row2 > * { flex: 1; }

.chip .ti { width: 20px; height: 20px; vertical-align: -5px; margin-right: 1px; }
img.ti { display: block; flex: none; }
.chip img.ti { display: inline-block; }

/* ================= skins (Ще → Вигляд, ?skin=) ================= */
/* Графіт і бурштин — tactical: neutral graphite, amber, tighter corners, small-caps labels */
:root[data-skin="amber"] { --bg: #111111; --panel: #1a1a1a; --panel-2: #242424; --line: #333333; --text: #f2efe9; --muted: #a8a29a;
  --faint: #7a746c; --accent: #ffb020; --on-accent: #1a1300; --radius: 10px; --chip-radius: 8px; }
[data-skin="amber"] .brand, [data-skin="amber"] .round, [data-skin="amber"] .achip { border-radius: 10px; }
[data-skin="amber"] .nav button { text-transform: uppercase; letter-spacing: .8px; font-size: 10.5px; }
[data-skin="amber"] .status h2, [data-skin="amber"] .pop h2, [data-skin="amber"] .sheet header h1 { letter-spacing: .2px; }
[data-skin="amber"] .km { font-variant-numeric: tabular-nums; color: var(--accent); }
[data-skin="amber"] .sheet { border-top-left-radius: 12px; border-top-right-radius: 12px; }

/* Червона тривога — the alert level paints the whole card header */
:root[data-skin="alert"] { --bg: #120f0f; --panel: #1b1616; --panel-2: #261f1f; --line: #3a2e2e; --text: #f6efee; --muted: #b3a3a1;
  --accent: #ff453a; --on-accent: #ffffff; }
[data-skin="alert"] .status, [data-skin="alert"] .pop { padding-top: 0; overflow: hidden; }
[data-skin="alert"] .status > .row:first-of-type, [data-skin="alert"] .status > .chipset + .row { margin: 0 -16px 0; padding: 14px 16px; }
[data-skin="alert"] .status.lvl-red > .row { background: #b3241b; }
[data-skin="alert"] .status.lvl-yellow > .row { background: #8a6d00; }
[data-skin="alert"] .status.lvl-calm > .row { background: #1d5c3c; }
[data-skin="alert"] .status > .row h2, [data-skin="alert"] .status > .row p { color: #fff; }
[data-skin="alert"] .status > .row .dot { background: rgba(255,255,255,.18); color: #fff; }
[data-skin="alert"] .status .chipset { padding-top: 12px; }
[data-skin="alert"] .pop > .row { margin: 0 -16px; padding: 14px 16px; background: var(--panel-2); }
[data-skin="alert"] .nav button.on { color: #fff; background: var(--accent); border-radius: 14px; margin: 8px 4px; }

/* Світлі картки — white panels over the dark map, best in daylight */
:root[data-skin="light"] { --panel: #ffffff; --panel-2: #eef2f7; --line: #dfe5ec; --text: #111821; --muted: #556170; --faint: #8b96a5;
  --accent: #0a66ff; --on-accent: #ffffff; --bg: #f2f4f7; }
[data-skin="light"] .sheet { background: #f2f4f7; }
[data-skin="light"] .nearrow.hot { box-shadow: inset 0 0 0 1.5px #e0261a; }
[data-skin="light"] .status, [data-skin="light"] .pop, [data-skin="light"] .brand, [data-skin="light"] .round { box-shadow: 0 8px 24px rgba(0,0,0,.35); border-color: transparent; }

/* Синьо-жовтий */
:root[data-skin="ua"] { --bg: #08214a; --panel: #0d2b5e; --panel-2: #143a78; --line: #21498c; --text: #ffffff; --muted: #b9c8e8; --faint: #8fa5d1;
  --accent: #ffd500; --on-accent: #0a1f44; }
[data-skin="ua"] .nav button.on { color: var(--accent); }
[data-skin="ua"] .nav { border-top: 2px solid var(--accent); }

/* Мінімал — floating pill bar with icons only, flat panels, no borders */
:root[data-skin="mini"] { --bg: #0b0d10; --panel: #14171c; --panel-2: #1d2128; --line: #1d2128; --text: #f3f5f7; --muted: #8d96a3;
  --accent: #f3f5f7; --on-accent: #0b0d10; --nav-h: 58px; --radius: 22px; }
[data-skin="mini"] .nav { left: 50%; right: auto; transform: translateX(-50%); width: min(92%, 360px); bottom: calc(var(--safe-bottom) + 10px);
  height: 58px; padding-bottom: 0; border-radius: 29px; border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
[data-skin="mini"] .nav button { font-size: 0; gap: 0; }
[data-skin="mini"] .nav button.on { color: var(--accent); }
[data-skin="mini"] .nav button.on svg { background: rgba(255,255,255,.12); border-radius: 12px; padding: 6px; width: 36px; height: 36px; }
[data-skin="mini"] .status, [data-skin="mini"] .pop { bottom: calc(var(--safe-bottom) + 80px); border: 0; }
[data-skin="mini"] .sheet { bottom: 0; padding-bottom: calc(var(--safe-bottom) + 76px); }
[data-skin="mini"] .brand { border: 0; background: transparent; box-shadow: none; padding-left: 2px; }
[data-skin="mini"] .round { border: 0; }
[data-skin="mini"] .maplibregl-ctrl-bottom-right { bottom: calc(var(--safe-bottom) + 76px); }

/* Як єСвітло — the brand family: navy, sunflower yellow, ink outlines */
:root[data-skin="brand"] { --bg: #18203a; --panel: #1e2740; --panel-2: #26304d; --line: #141a2b; --text: #fffdf8; --muted: #b9c0d6; --faint: #8a93ad;
  --accent: #ffd23f; --on-accent: #141a2b; --radius: 18px; }
[data-skin="brand"] .status, [data-skin="brand"] .pop, [data-skin="brand"] .brand, [data-skin="brand"] .round, [data-skin="brand"] .card,
[data-skin="brand"] .achip { border: 2.5px solid #141a2b; box-shadow: 0 4px 0 #141a2b; }
[data-skin="brand"] .btn { border: 2.5px solid #141a2b; box-shadow: 0 3px 0 #141a2b; }
[data-skin="brand"] .brand b { font-family: Unbounded, Manrope, sans-serif; font-weight: 800; }
[data-skin="brand"] .nav { border-top: 2.5px solid #141a2b; }
[data-skin="brand"] .nav button.on { color: var(--accent); }
[data-skin="brand"] .nearrow { border: 2px solid #141a2b; }

/* Смарагд — deep teal-black, emerald accent */
:root[data-skin="emerald"] { --bg: #0a1412; --panel: #0f1d1a; --panel-2: #152824; --line: #1f3833; --text: #eefaf6; --muted: #9dbdb4;
  --accent: #23c48e; --on-accent: #04130e; }

/* Фіолетова ніч */
:root[data-skin="violet"] { --bg: #110e1a; --panel: #181426; --panel-2: #221c35; --line: #2f2747; --text: #f4f1fb; --muted: #ada3c7;
  --accent: #9b7bff; --on-accent: #ffffff; }

/* ================= ad funnel (intro → add home → allow messages) ================= */
.intro { position: absolute; inset: 0; z-index: 30; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5,8,14,.85) 0, rgba(5,8,14,0) 34%, rgba(5,8,14,0) 70%, rgba(5,8,14,.75) 100%); }
.intro-top { position: absolute; left: 20px; right: 20px; top: calc(var(--safe-top) + 26px); text-align: center; animation: capin .5s ease-out; }
.intro-cap { font-family: Unbounded, Manrope, sans-serif; font-weight: 800; font-size: 25px; line-height: 1.2; color: #fff; text-wrap: balance; }
.intro-sub { margin-top: 8px; color: #c9d0e6; font-weight: 700; font-size: 15px; }
.intro-skip { position: absolute; right: 14px; bottom: calc(var(--safe-bottom) + 20px); pointer-events: auto; background: rgba(255,255,255,.14);
  color: #fff; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 999px; }
@keyframes capin { from { opacity: 0; transform: translateY(-8px); } }
.funnel { position: absolute; inset: 0; z-index: 31; background: rgba(5,8,14,.5); display: flex; align-items: flex-end; animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } }
.fcard { width: 100%; background: var(--panel); border-radius: 26px 26px 0 0; padding: 22px 18px calc(var(--safe-bottom) + 16px);
  display: flex; flex-direction: column; gap: 12px; animation: up .22s ease-out; max-height: 88vh; overflow-y: auto; }
.fcard h2 { margin: 0; font-family: Unbounded, Manrope, sans-serif; font-weight: 800; font-size: 22px; line-height: 1.25; text-wrap: balance; }
.fcard h2 em { font-style: normal; color: var(--sun, #ffd23f); }
:root:not([data-skin]) .fcard h2 em, [data-skin="night"] .fcard h2 em { color: #ffd23f; }
.fcard p { margin: 0; }
.demo-msg { position: relative; background: #182533; color: #f5f5f5; border-radius: 18px 18px 18px 6px; padding: 12px 14px; font-size: 15px; line-height: 1.4; }
.demo-tag { position: absolute; top: -9px; right: 10px; background: var(--panel-2); color: var(--muted); font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px; padding: 2px 7px; border-radius: 6px; }
.ben { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.proof { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.btn.big { padding: 16px; font-size: 17px; }
.later { color: var(--muted); font-weight: 700; padding: 6px; align-self: center; }
.fcard .results { max-height: 40vh; overflow-y: auto; }
.intro-cv { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1; }
.intro-count { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-bottom) + 90px); text-align: center;
  font-family: Unbounded, Manrope, sans-serif; font-weight: 800; font-size: 64px; color: #fff; line-height: 1; text-shadow: 0 4px 0 rgba(0,0,0,.5); }
.intro-count small { display: block; font-family: Manrope, sans-serif; font-size: 16px; color: #c9d0e6; margin-top: 4px; }
.intro-note { position: absolute; left: 14px; right: 14px; top: calc(var(--safe-top) + 120px); background: #182533; color: #f5f5f5; border-radius: 18px;
  padding: 14px 16px; font-size: 16px; line-height: 1.4; box-shadow: 0 12px 30px rgba(0,0,0,.5); animation: drop .45s cubic-bezier(.2,1.4,.4,1); }
.intro-note .demo-tag { top: -9px; }
@keyframes drop { from { transform: translateY(-140px); opacity: 0; } }

/* ОП «через заявку»: what to press in the channel (02.11) */
.gate .gsteps { text-align: left; margin: 4px auto 12px; padding-left: 22px; max-width: 320px; font-size: 14px; line-height: 1.5; color: var(--muted, #9aa6b4); }
.gate .gsteps b { color: var(--text, #e9eef4); }

/* «Дозволити попередження» banner over the map (02.11) */
.banner.wperm { align-items: center; background: color-mix(in srgb, var(--accent, #2bd98b) 16%, var(--panel, #151b23)); border-color: var(--accent, #2bd98b); }
.banner.wperm small { display: block; opacity: .75; }
.banner.wperm .btn { flex: none; margin-left: auto; white-space: nowrap; }
