/* Небо 31 — веб. Тот же язык, что в приложении: плоские списки с тонкими линиями, заголовки строчными,
   основная кнопка цвета текста, синий только для ссылок, круг — знак уровня тревоги, шрифт Golos Text.
   Цвета приходят из приложения (data/colors.json) и ставятся переменными на :root. */

:root {
  --ground: #F3F4F6; --surface: #FFFFFF; --raised: #FFFFFF; --sunken: #E8EBEF; --ink: #121820; --ink2: #3B4450;
  --muted: #68717E; --outline: #C8CED6; --hairline: #E1E5EA; --accent: #2452A4; --onAccent: #FFFFFF;
  --accentSoft: #E2E9F6; --danger: #DDA020; --uav: #D4482A; --missile: #7E1F63; --good: #1C8657; --warn: #A86A0C;
  --onDanger: #14100A; --onUav: #FFFFFF; --onMissile: #FFFFFF;
  --side: 420px; --scale: 1;
  color-scheme: light dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--ground); color: var(--ink);
  font: 15px/1.4 "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.ic { flex: none; display: block; }

#app { display: grid; grid-template-columns: calc(var(--side) * var(--scale)) 1fr; height: 100%; height: 100dvh;
  /* вырез и «остров» в альбомной ориентации, статус-бар у сайта на экране «Домой» (viewport-fit=cover) */
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); }
#mapui, .toast { zoom: var(--scale); }
/* подписи нижней панели растут не больше чем на 15 %: иначе на узком телефоне слипаются (как в приложении) */
#bottom { zoom: min(var(--scale), 1.15); }
#bottom .tab { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 1px; padding-right: 1px; }
/* для слабовидящих: ссылки подчёркнуты, линии и рамки плотнее, фокус с клавиатуры виден */
.lv a { text-decoration: underline; }
.lv .row, .lv .switch, .lv #tabs, .lv .subtabs { border-color: var(--outline); }
.lv .mgroup, .lv .search input { border: 2px solid var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lv :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.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; }
.lv .muted { color: var(--ink2); }
#side { zoom: var(--scale); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--hairline); background: var(--ground); }
#top { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 22px 8px; }
.brand { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.brand b { color: var(--accent); }
.brand small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.link { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding-top: 8px; }
.link i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.link.off i { background: var(--uav); }
.link.wait i { background: var(--outline); }

#tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--hairline); }
.tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 4px 11px; border: 0;
  background: none; cursor: pointer; color: var(--muted); font-size: 14px; border-bottom: 2px solid transparent; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--uav); }
.ink2 { color: var(--ink2); }
#panel { flex: 1; overflow-y: auto; padding: 4px 22px 32px; scrollbar-width: thin; scrollbar-color: var(--outline) transparent; }
/* системная полоса прокрутки — толстая серая и выбивалась из тёмной темы: тонкая, цвета линий */
#panel::-webkit-scrollbar { width: 8px; }
#panel::-webkit-scrollbar-thumb { background: var(--outline); border-radius: 4px; border: 2px solid var(--ground); }
#panel::-webkit-scrollbar-track { background: transparent; }
#bottom { display: none; }

#mapwrap { position: relative; min-width: 0; }
/* пока грузится библиотека карты и первые тайлы, здесь было чёрное поле — сайт выглядел сломанным.
   Контур области рисуется сразу и уходит, как только карта встала (класс ready ставит app.js) */
#map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: var(--ground) url(/web/img/oblast.svg) center / min(86%, 900px) no-repeat; }
#map.ready { background-image: none; }
#mapui { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; }
#mapui > * { pointer-events: auto; }

h2 { font-size: 20px; font-weight: 600; margin: 22px 0 8px; }
h3 { font-size: 16px; font-weight: 600; margin: 20px 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hair { height: 1px; background: var(--hairline); margin: 0; border: 0; }
.row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 500; }
.clickable { cursor: pointer; }
.clickable:hover .title { text-decoration: underline; text-decoration-color: var(--outline); }

/* строка тревоги: слева планка уровня, заголовок — место (вид угрозы у всех одинаковый и стоит ниже) */
.row.alert { padding-left: 13px; border-left: 3px solid var(--outline); }
.row.alert.danger { border-left-color: var(--danger); }
.row.alert.uav { border-left-color: var(--uav); }
.row.alert.missile { border-left-color: var(--missile); }
.row .src { color: var(--muted); }

/* сутки одной полосой: час — столбик */
.strip { margin: 16px 0 2px; }
.strip .bars { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.strip .b { flex: 1; height: 5px; border-radius: 2px; background: var(--hairline); }
.strip .b.danger { height: 14px; background: var(--danger); }
.strip .b.uav { height: 20px; background: var(--uav); }
.strip .b.missile { height: 20px; background: var(--missile); }
.strip .scale { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 7px; }

/* про звук — одной строкой внизу: наверху панели должно стоять главное, а не напоминание */
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 22px 0 0; }
.note .ic { margin-top: 1px; }

.mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mark.danger { background: var(--danger); color: var(--onDanger); }
.mark.uav { background: var(--uav); color: var(--onUav); }
.mark.missile { background: var(--missile); color: var(--onMissile); }
.mark.none { border: 1.5px solid var(--outline); color: var(--muted); }
.dotl { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dotl.danger { background: var(--danger); } .dotl.uav { background: var(--uav); } .dotl.missile { background: var(--missile); }
.tag { font-size: 13px; color: var(--accent); margin-left: 6px; font-weight: 500; }

.hero { margin: 14px -8px 6px; border-radius: 22px; padding: 20px 20px 18px; }
.hero.danger { background: var(--danger); color: var(--onDanger); }
.hero.uav { background: var(--uav); color: var(--onUav); }
.hero.missile { background: var(--missile); color: var(--onMissile); }
.hero .kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: .9; }
.hero .kicker .ring { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; opacity: .8; }
.hero .big { font-size: 30px; font-weight: 700; line-height: 1.15; margin: 10px 0 6px; letter-spacing: -0.01em; }
.hero .where { font-size: 17px; font-weight: 600; }
.hero .figs { display: flex; gap: 28px; margin: 12px 0 10px; }
.hero .figs span { display: block; font-size: 13px; opacity: .85; }
.hero .figs b { font-size: 22px; font-weight: 600; }
.hero .guide { display: flex; gap: 10px; font-size: 14px; border-top: 1px solid currentColor; border-top-color: rgba(127,127,127,.35); padding-top: 12px; }
.hero .text { font-size: 14px; margin-top: 10px; }
.hero button.more { background: none; border: 0; padding: 0; margin-top: 8px; font-size: 13px; cursor: pointer; opacity: .9; text-decoration: underline; }
.calm { padding: 22px 0 8px; }
.calm .big { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; margin: 4px 0 4px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--ground); font-weight: 500; }
.btn.secondary { background: var(--sunken); color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
/* нажимаемое — кнопкой, а не подчёркнутым текстом (15.10.2026, просьба владельца): .sm — вспомогательные действия в строке */
.btn.sm { padding: 8px 14px; border-radius: 10px; font-size: 14px; gap: 6px; min-height: 36px; }
.btn:hover:not(:disabled) { filter: brightness(1.08); }
a.btn { text-decoration: none; }
a.btn:hover { text-decoration: none; }
.iconbtn { background: none; border: 0; padding: 6px; border-radius: 10px; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.iconbtn:hover { background: var(--sunken); }
.banner { display: flex; gap: 12px; align-items: flex-start; background: var(--sunken); border-radius: 14px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.banner b { display: block; }
.banner .btns { margin: 10px 0 0; }
.banner .steps b { display: inline; }
.steps { list-style: none; counter-reset: step; margin: 12px 0 8px; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; min-height: 28px; font-size: 15px; line-height: 1.4; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: var(--accentSoft); color: var(--accent); }
.steps li.done::before { content: "✓"; background: var(--good); color: #fff; }
.shareic { vertical-align: -4px; margin: 0 2px; }
.note.ok { color: var(--good); margin-top: 8px; }
.tips { margin: 10px 0 8px; padding-left: 20px; display: grid; gap: 12px; font-size: 15px; line-height: 1.4; }
.tips b { font-weight: 600; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--hairline); cursor: pointer; }
.switch .grow { flex: 1; }
.switch input { -webkit-appearance: none; appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--outline); position: relative; cursor: pointer; flex: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); transition: left .15s; }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { left: 21px; }
.check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--outline); display: grid; place-items: center; flex: none; }
.check.on { background: var(--ink); border-color: var(--ink); color: var(--ground); }
select, input[type="range"] { font: inherit; }
select { background: var(--sunken); color: var(--ink); border: 0; border-radius: 10px; padding: 8px 10px;
         font-size: 16px; /* меньше 16px iOS Safari приближает страницу при выборе */ }

.subtabs { display: flex; border-bottom: 1px solid var(--hairline); margin: 8px 0 4px; }
.subtabs button { flex: 1; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.subtabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.day { font-weight: 600; margin: 18px 0 2px; }
.search { position: absolute; left: 12px; top: 12px; width: min(360px, calc(100% - 80px)); }
.search input { width: 100%; padding: 11px 12px 11px 38px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.search-ic { position: absolute; left: 11px; top: 11px; color: var(--muted); }
.hits { margin-top: 6px; background: var(--surface); border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.14);
        max-height: min(50vh, 360px); overflow-y: auto; overflow-x: hidden; }   /* низкий экран и клавиатура: нижние строки были недоступны */
.hits button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--hairline); }
.hits button:hover { background: var(--sunken); }
.hits small { color: var(--muted); display: block; }
/* пять одинаковых кружков столбиком выглядели наспех: масштаб — одной парой, вид карты — другой */
.mapbtns { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 10px; }
.mgroup { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 2px 10px rgba(0,0,0,.10); border: 1px solid var(--hairline); }
.mbtn { width: 44px; height: 44px; border: 0; border-radius: 0; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.mgroup .mbtn + .mbtn { border-top: 1px solid var(--hairline); }
.mbtn:hover { background: var(--sunken); }
.legend { position: absolute; right: 64px; top: 12px; width: 320px; max-height: calc(100% - 24px); overflow: auto; background: var(--surface); border-radius: 18px; padding: 14px 18px; box-shadow: 0 6px 24px rgba(0,0,0,.16); font-size: 14px; }
.legend .lrow { display: flex; gap: 12px; align-items: center; padding: 6px 0; color: var(--ink2); }
.legend .sw { width: 16px; height: 16px; border-radius: 4px; flex: none; }
.picking { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--ground); padding: 12px 16px; border-radius: 14px; display: flex; gap: 14px; align-items: center; }
.picking .btn { background: var(--ground); color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--ground); padding: 12px 16px; border-radius: 12px; z-index: 50; max-width: 90%; }

.maplibregl-popup-content { background: var(--surface); color: var(--ink); border-radius: 14px; padding: 12px 14px; font: 14px/1.4 "Golos Text", system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0,0,0,.18); max-width: 300px; }
.maplibregl-popup-tip { border-top-color: var(--surface) !important; border-bottom-color: var(--surface) !important; }
.maplibregl-popup-close-button { color: var(--muted); font-size: 18px; right: 4px; }
.pop .h { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.pop .s { color: var(--muted); font-size: 13px; margin-top: 4px; }
.maplibregl-ctrl-attrib { font-size: 11px; }

.foot { font-size: 13px; color: var(--muted); margin-top: 26px; }

/* телефон и узкое окно: вкладки внизу, карта — одна из вкладок */
@media (max-width: 820px) {
  #app { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  #side { zoom: var(--scale); }
  #side { border-right: 0; grid-row: 1; grid-column: 1; }
  #tabs { display: none; }
  #mapwrap { grid-row: 1; grid-column: 1; }
  #app:not(.map-open) #mapwrap { display: none; }
  #app.map-open #side { display: none; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }   /* над нижней панелью, а не поверх вкладок */
  #bottom { display: flex; grid-row: 2; border-top: 1px solid var(--hairline); background: var(--ground); padding-bottom: env(safe-area-inset-bottom, 0px); }
  #bottom .tab { flex-direction: column; gap: 2px; font-size: 12px; padding: 6px 2px 8px; border-bottom: 0; }
  /* выбранная вкладка — мягкая подложка под значком, как в приложении: чёрточку в 2 пикселя было не видно */
  #bottom .pill { position: relative; display: grid; place-items: center; width: 56px; height: 30px; border-radius: 15px; }
  #bottom .tab[aria-selected="true"] { font-weight: 600; }
  /* шесть вкладок у владельцев iPhone: «Настройки» не должны обрезаться */
  #bottom:has(.tab:nth-child(6)) .tab { font-size: 11px; letter-spacing: -0.01em; }
  /* iOS до 15.4 без :has(): подписи шести вкладок — сразу мельче */
  @supports not selector(:has(*)) { #bottom .tab { font-size: 11px; letter-spacing: -0.01em; } }
  #bottom .tab[aria-selected="true"] .pill { background: rgba(128, 128, 128, .16); background: color-mix(in srgb, var(--ink) 11%, transparent); }
  #bottom .pill .dot { position: absolute; top: 2px; right: 13px; width: 9px; height: 9px; border: 1.5px solid var(--ground); }
  #panel { padding: 4px 16px 24px; }
  #top { padding: 14px 16px 6px; }
  /* легенда стала длиннее (три раздела): не заходит под нижнюю панель вкладок */
  .legend { right: 12px; left: 12px; width: auto; top: 64px; max-height: calc(100% - 64px - 92px - env(safe-area-inset-bottom, 0px)); }
  .search { width: calc(100% - 80px); }
}

/* без JavaScript карта и звук не работают, но что происходит сейчас — страница обязана сказать */
.noscript { max-width: 640px; margin: 0 auto; padding: 24px 22px; }
.noscript h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 10px; }
.noscript ul { padding-left: 18px; }
.noscript li { margin: 6px 0; }

/* кто просил меньше движения — без пульсации и плавных переходов */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* ------------------------------------------------------------------ как в приложении, 24–25.09.2026 */

/* Сводка: тревоги по округам — силуэт округа цвета опасности, под ним места */
.group { margin-top: 6px; }
.ghead { display: flex; align-items: center; gap: 12px; padding: 12px 0 6px; }
.ghead .grow { flex: 1; min-width: 0; }
.gname { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.loud { color: var(--muted); display: inline-flex; }
.glyph { flex: none; width: 36px; }
.glyph path { stroke: var(--ink); stroke-opacity: .35; stroke-width: .5; }
.glyph.danger path { fill: var(--danger); } .glyph.uav path { fill: var(--uav); } .glyph.missile path { fill: var(--missile); }
.prow { display: flex; align-items: flex-start; gap: 10px; padding: 10px 6px 10px 0; margin-left: 12px; border-radius: 10px; position: relative; }
.prow + .prow { border-top: 1px solid var(--hairline); }
.prow::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--outline); }
.prow.danger::before { background: var(--danger); } .prow.uav::before { background: var(--uav); } .prow.missile::before { background: var(--missile); }
.prow .t { font-variant-numeric: tabular-nums; color: var(--ink2); min-width: 44px; padding-top: 1px; font-weight: 500; }
.prow .grow { flex: 1; min-width: 0; }
.prow .title { font-weight: 500; }
.prow .chev { color: var(--outline); margin-top: 2px; }
.prow:hover { background: var(--sunken); }
.more-rows { margin: 6px 0 4px 12px; }

/* главная карточка: при большой волне — короткая */
.hero .kicker .grow { flex: 1; }
.hero .go { display: flex; align-items: center; gap: 4px; font-size: 13px; margin-top: 10px; }
.hero.compact { padding: 16px 18px 14px; }
.hero.compact .big { font-size: 24px; margin: 8px 0 4px; }
.hero.compact .where { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero.compact .line { font-size: 13px; margin-top: 6px; }
.hero.compact .guide { margin-top: 10px; }
.hero:hover { filter: brightness(1.04); }

/* экран одной тревоги */
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 12px 8px 8px 0; cursor: pointer; font-size: 16px; color: var(--ink); }
.dhead { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); margin-top: 6px; }
.dhead .near { color: var(--accent); }
.dtitle { font-size: 26px; font-weight: 600; letter-spacing: -0.005em; margin: 8px 0 4px; line-height: 1.2; }
.dwhere { font-size: 18px; font-weight: 600; }
.figs2 { display: flex; gap: 28px; margin: 18px 0 10px; }
.figs2 span { display: block; font-size: 13px; color: var(--muted); }
.figs2 b { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.guide2 { display: flex; gap: 12px; border-top: 1px solid var(--hairline); padding-top: 16px; margin-top: 12px; }
.quote { margin: 8px 0; padding: 0 0 0 12px; border-left: 3px solid var(--outline); font-size: 15px; }
.quote.danger { border-left-color: var(--danger); } .quote.uav { border-left-color: var(--uav); } .quote.missile { border-left-color: var(--missile); }
.quote.good { border-left-color: var(--good); } .quote.muted { border-left-color: var(--muted); }
.btn.wide { width: 100%; justify-content: center; padding: 14px 16px; }

/* журнал: значок тревоги — зелёный после отбоя, серый после снятия по времени */
.jrow2 { display: grid; grid-template-columns: 46px 28px 1fr; gap: 12px 14px; padding: 12px 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.jrow2 .marks { display: flex; flex-direction: column; gap: 4px; }
.jrow2 .t { color: var(--ink2); font-variant-numeric: tabular-nums; padding-top: 4px; }
.jrow2 .title { font-weight: 500; }
.jrow2 .st { font-size: 13px; color: var(--muted); margin-top: 2px; }
.jrow2 .st.on { color: var(--uav); font-weight: 500; }
.jrow2 .st.cleared { color: var(--good); font-weight: 500; }
.jrow2 .jl { display: flex; gap: 8px; font-size: 14px; margin-top: 3px; }
.jrow2 .jl span { color: var(--ink2); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 1px; min-width: 38px; }
.jrow2:hover .title { text-decoration: underline; text-decoration-color: var(--outline); }
/* закончилась: кольцо, а не круг — красный и зелёный круги с одним значком неотличимы при дальтонизме (25.09.2026) */
.mark.ended { background: none; border: 1.8px solid var(--good); color: var(--good); position: relative; box-sizing: border-box; }
.mark.ended.bytime { border-color: var(--muted); color: var(--muted); }
.mark.ended .tick { position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--good); color: var(--ground); display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--ground); }
.post { margin-top: 12px; }
.post .ph { font-size: 13px; font-weight: 600; }
.post .quote { font-size: 14px; }

/* Округа: сёла под названием округа и их список */
.plink { display: inline-flex; align-items: center; gap: 2px; background: none; border: 0; padding: 3px 0; cursor: pointer; font-size: 13px; color: var(--muted); max-width: 100%; }
.plink.on { color: var(--accent); }
.plink:hover { text-decoration: underline; }
.big-t { font-size: 17px; font-weight: 600; }
.psearch { display: flex; align-items: center; gap: 10px; background: var(--sunken); border-radius: 12px; padding: 10px 14px; margin: 12px 0 4px; color: var(--muted); }
.psearch input { flex: 1; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; outline: none; }

/* подсказка на карте: как строки Сводки */
.pop + .pop { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.pop .pr { display: flex; gap: 8px; margin-top: 4px; }
.pop .pr .t { color: var(--ink2); font-variant-numeric: tabular-nums; }
.pop .btn.sm { margin-top: 8px; }

/* «Дрон: FPV» под заголовком тревоги (droneLine в приложении) */
.dline { font-size: 17px; font-weight: 600; margin-top: 2px; }
/* легенда карты: разделы и знаки дронов */
.legend .lhead { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; border-top: 1px solid var(--hairline); margin-top: 8px; padding: 10px 0 4px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.legend .lhead .grow { display: flex; flex-direction: column; }
.legend .lg { width: 26px; height: 26px; flex: none; object-fit: contain; }
.legend .lgm { width: 22px; height: 22px; flex: none; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }

/* «Звук» / «Без звука» у отмеченного округа */
.mutebtn { flex: none; align-self: flex-start; margin-top: 2px; min-height: 32px; padding: 4px 10px; border-radius: 16px; border: 1px solid var(--outline); background: var(--accentSoft, transparent); color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.mutebtn.off { background: transparent; color: var(--muted); }

/* «История опасностей» и «Сообщить об ошибке» */
.jtools { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.hdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 8px 0 12px; }
.hday { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); }
.hday b { color: var(--ink); font-size: 14px; }
.hbar { width: 100%; max-width: 34px; height: 56px; border-radius: 6px; background: var(--sunken); display: flex; align-items: flex-end; overflow: hidden; }
.hbar i { display: block; width: 100%; background: var(--uav); min-height: 0; }
.hcount { flex: none; min-width: 30px; text-align: center; font-weight: 700; padding: 2px 8px; border-radius: 14px; background: var(--accentSoft); color: var(--accent); }
/* период «Как часто» — как чипы «Сегодня · 3 дня · 7 дней» в приложении; строка места открывает его на карте */
.hperiod { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; }
.hperiod button { min-height: 32px; padding: 4px 12px; border-radius: 16px; border: 1px solid var(--outline); background: transparent; color: var(--ink2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hperiod button.on { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.hrow { cursor: pointer; }
.hrow:hover .title { text-decoration: underline; }
.topics { display: flex; flex-direction: column; margin: 8px 0; }
.topic { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--hairline); cursor: pointer; }
.topic input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.rtext { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--outline); background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.pushtest { margin: 4px 0 12px; }
.pushtest .btn { margin-bottom: 6px; }

/* поля форм («Близкий», «Предложения и улучшения») */
.field { display: grid; gap: 6px; margin: 14px 0; font-size: 14px; color: var(--ink2); }
.field select, .field input[type="text"] { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--sunken); border: 0; border-radius: 10px; padding: 11px 12px; }
.files { display: flex; flex-direction: column; margin: 8px 0; }
.files .row { align-items: center; padding: 8px 0; }
.files input[type="file"] { display: none; }

/* «Источник данных»: точка состояния канала, название, когда писал, кнопка «Перейти» */
.sdot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); flex: none; margin-top: 6px; }
.sdot.bad { background: var(--uav); }
.row .act { flex: none; align-self: center; }

/* «Частые вопросы»: вопрос — кнопка, ответ раскрывается под ним */
.faq { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--hairline); padding: 14px 0; cursor: pointer; font-weight: 500; }
.faq .grow { flex: 1; }
.faqa { padding: 4px 0 14px; color: var(--ink2); font-size: 14px; border-bottom: 1px solid var(--hairline); }
.faqa p { margin: 6px 0; }

/* тревога у близких на Сводке — не «моя», но пропасть не должна */
.banner.family { background: var(--accentSoft); }

/* «Простой режим»: один большой экран; цвет — уровень тревоги, зелёный — только когда проверено */
:root { --calm: #DDF3DF; }
.dk { --calm: #15351C; }
#simple { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 40; overflow: auto; display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center; background: var(--ground); color: var(--ink);
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
/* по центру — автополями крайних детей: при justify-content: center верх выше экрана не прокрутить (альбомная ориентация,
   iPhone SE, крупный шрифт) */
#simple > :first-child { margin-top: auto; }
#simple > :last-child { margin-bottom: auto; }
#simple.calm { background: var(--calm); }
#simple.danger { background: var(--danger); color: var(--onDanger); }
#simple.uav { background: var(--uav); color: var(--onUav); }
#simple.missile { background: var(--missile); color: var(--onMissile); }
#simple .s1 { font-size: 44px; font-size: clamp(34px, 9vw, 68px); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
#simple .s2 { font-size: 28px; font-size: clamp(22px, 5.4vw, 36px); font-weight: 500; line-height: 1.2; }
#simple .s3 { font-size: 22px; font-size: clamp(18px, 4.4vw, 26px); line-height: 1.25; }
#simple .sbtn { width: min(100%, 560px); min-height: 80px; margin-top: 14px; border: 0; border-radius: 16px; cursor: pointer;
  font-size: 26px; font-weight: 700; background: currentColor; }
#simple.danger .sbtn span { color: var(--danger); }
#simple.uav .sbtn span { color: var(--uav); }
#simple.missile .sbtn span { color: var(--missile); }
#simple .sleave { margin-top: 18px; padding: 14px 24px; border-radius: 14px; border: 2px solid currentColor; background: none; color: inherit;
  font-size: 20px; font-weight: 500; cursor: pointer; }
body.simple #app { display: none; }
.fam-row + .fam-row { margin-top: 10px; }
.fam-row .btns { margin: 6px 0 0; }
.banner .ic { margin-top: 1px; }

/* «Эфир» (26.10.2026): большая кнопка, состояние, лента голосовых */
.air-hero { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 16px; margin: 14px 0 6px; }
.air-hero .grow { flex: 1; min-width: 0; }
.air-play { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--ink); color: var(--ground); display: grid; place-items: center; cursor: pointer; flex: none; }
.air-hero.on .air-play { background: var(--uav); color: var(--onUav); }
.air-state { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.air-live, .tab .dot.live { width: 9px; height: 9px; border-radius: 50%; background: var(--uav); animation: air-pulse 1.4s ease-in-out infinite; }
.tab .dot.live { width: 7px; height: 7px; }
@keyframes air-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .air-live, .tab .dot.live { animation: none; } }
.air-item { align-items: flex-start; }
.air-item.cur { background: var(--accentSoft); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 12px; }
.air-one { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--outline); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.air-item.cur .air-one { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.air-day { font-size: 13px; color: var(--muted); padding: 14px 0 2px; text-transform: lowercase; }
.air-note { margin-top: 18px; }
