/* «Воздух» — the phone app view (owner 2026-09-27, D-M5..D-M7; app-style pass 2026-09-29: «make
   it ideal as an app — only the map, items inside the map»). The map IS the screen: one slim top
   row, a small AQI card, a colour scale on the edge, a round «Рядом со мной» button and a one-line
   peek at the bottom; everything else is one tap away. Colours ride CSS classes (the CSP refuses
   inline style=""); band colours are EcoEsep's softened set over the US EPA bands (aqi.js DISPLAY).
   Redesign part 1 (owner 2026-10-01, «the map is the app»): the bottom sheet has three states (folded · peek · expanded), the
   AQI card is compact, the colour layer's state is a chip beside the layers button. Cards 16–20 px round, the sheet 24 px at
   the top, no shadow stronger than 0 4px 16px rgba(0,0,0,.10), touch targets ≥ 44 px, text 20 px (primary) / 14–16 px / 12–13 px
   (meta); no colour outside the AQI palette, the teal brand and the greys already here.
   Redesign part 2 (owner 2026-10-01, spec §34: «Desktop should not simply stretch the mobile sheet … bottom compact forecast strip …
   Height 100–130 px · Do not use a giant bottom sheet on desktop»): from 900 px the city's summary is ONE strip along the bottom
   (the advice | the next hours | «Подробный анализ: Алматы →»), and the sheet becomes ONE drawer on the right, closed until the
   reader asks; a tablet keeps the part-1 sheet, two thirds wide and centred, a phone the whole width. */
html, body { margin: 0; height: 100%; overflow: hidden; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d2b3a; background: #eef2f6; -webkit-tap-highlight-color: transparent; }
.a-map { position: fixed; inset: 0; z-index: 1; }

/* top: city + menu, then the AQI card */
.a-top { position: fixed; top: 0; left: 0; right: 0; z-index: 900; padding: calc(10px + env(safe-area-inset-top)) 12px 0; pointer-events: none; }
.a-top > * { pointer-events: auto; }
.a-toprow { display: flex; align-items: center; gap: 8px; pointer-events: none; }
.a-toprow > * { pointer-events: auto; }
.a-spacer { flex: 1; pointer-events: none; }
.a-citypill { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; box-sizing: border-box; background: #fff; border-radius: 22px; padding: 0 6px 0 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.10); max-width: 62vw; }
.a-pin { flex: 0 0 auto; }
.a-city { font-size: 16px; font-weight: 700; color: #1d2b3a; background: transparent; border: 0; padding: 9px 6px 9px 0; min-width: 0; max-width: 100%; min-height: 44px; }
.a-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.10); font-size: 20px; line-height: 1; color: #1d2b3a; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.a-btn[aria-expanded="true"] { background: #e7f3f1; }
/* «Рядом со мной» (owner 2026-09-30: «put the text back»): a labelled pill right under the AQI card. A flex box drops the space
   after «◎» (the text before the label is its own flex item, and a trailing space collapses) — the gap keeps «◎ Рядом» apart
   (retest 2026-10-01 A1-N) */
.a-near { display: inline-flex; align-items: center; gap: 0.3em; margin-top: 8px; min-height: 44px; box-sizing: border-box; border: 0; border-radius: 22px; padding: 9px 14px; background: #0a4f4c; color: #fff; font: inherit; font-size: 14px; font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,0.10); cursor: pointer; }

/* the AQI card, compact (owner 2026-10-01, item 7): number + «AQI», the band, ONE concentration line, whose number it is */
.a-badge { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 10px; width: min(330px, calc(100vw - 84px)); border: 0; background: #fff; border-radius: 18px; padding: 8px 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.10); text-align: left; cursor: pointer; font: inherit; color: inherit; box-sizing: border-box; }
.a-badge[hidden] { display: none; }
.a-card-row { display: flex; align-items: center; gap: 10px; }
.a-card-txt { display: block; min-width: 0; }
.a-num { font-size: 26px; font-weight: 800; line-height: 1; border-radius: 12px; padding: 5px 8px; min-width: 48px; text-align: center; }
.a-num small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .05em; margin-top: 2px; opacity: .8; }
.a-band { display: block; font-size: 20px; font-weight: 700; line-height: 1.15; }
.a-sub { display: block; font-size: 13px; color: #5a6875; margin-top: 2px; }
/* owner 2026-09-30: the leading pollutant's number and «vs usual» under the band; «данных мало» in amber */
.a-conc { color: #1d2b3a; font-weight: 600; }
.a-thin { color: #8a5a00; }
.a-mode-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #0a4f4c; background: #e7f3f1; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
/* the scale: from 700 px the bar of the bands; a phone shows a small step indicator instead (one step per band, the current one
   marked); a tap on the card opens the whole scale with its numbers (0 50 100 150 200 300), inside the card */
.a-bar { display: block; width: 100%; height: 10px; margin-top: 2px; border-radius: 4px; overflow: hidden; }
.a-steps { display: none; margin-top: 2px; }
@media (max-width: 699px) {
  .a-badge > .a-steps { display: block; }
  .a-badge > .a-bar { display: none; }
}
.a-scale { display: block; }
.a-ticks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; font-size: 12px; color: #5a6875; margin-top: 3px; }

/* the colour layer's state (owner 2026-10-01, item 5): a small chip by the layers button — under the card, right-aligned, on a
   phone; left of the layers button from 700 px. A tap opens the layers box, which keeps the whole explanation. 32 px tall, its
   touch target 44 px */
.a-mapchip { position: relative; display: block; width: max-content; max-width: calc(100vw - 24px); margin: 12px 0 0 auto; min-height: 32px; box-sizing: border-box; border: 0; border-radius: 16px; padding: 0 12px; background: #fff; color: #0a4f4c; font: inherit; font-size: 13px; font-weight: 600; line-height: 32px; text-align: left; box-shadow: 0 4px 16px rgba(0,0,0,0.10); cursor: pointer; }
.a-mapchip::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
.a-mapchip[hidden] { display: none; }
.a-badge[hidden] + .a-mapchip { margin-top: 64px; }
.a-mapchip[aria-expanded="true"] { background: #e7f3f1; }
.a-mapchip-t { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.a-mapchip-none, .a-mapchip-fail { color: #8a5a00; }
@media (min-width: 700px) {
  .a-mapchip { position: fixed; top: calc(68px + env(safe-area-inset-top)); right: 64px; margin: 0; max-width: 260px; z-index: 905; }
}

/* the bottom sheet (owner 2026-10-01, part 1): three states — folded (two short lines), peek, expanded (60–80 % of the screen,
   its text scrolls); the handle is always there. The state rides data-state; a drag follows the finger (a transform set from the
   script through the CSSOM — never a style="" attribute); a move between states slides 220 ms ease-out, none when the reader
   asks for reduced motion (the media query, and data-motion="reduce" the script sets from it). Never a modal: the map stays live */
.a-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -4px 16px rgba(0,0,0,0.10); padding: 0 16px calc(12px + env(safe-area-inset-bottom)); box-sizing: border-box; touch-action: none; transition: transform 220ms ease-out; }
/* a white skirt under the sheet: a sheet slid up (a drag, a fold) never shows the map below its bottom edge */
.a-sheet::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: #fff; }
.a-sheet.a-drag, .a-sheet.a-snap, .a-sheet[data-motion="reduce"] { transition: none; }
@media (prefers-reduced-motion: reduce) { .a-sheet { transition: none; } }
.a-sheet-body { overflow-y: auto; overscroll-behavior: contain; }
.a-sheet[data-state="collapsed"] .a-sheet-body { max-height: 80px; overflow: hidden; }
/* «Загрузка…», or a load that failed with its «Повторить»: never clipped (audit A-01) */
.a-sheet.a-boot .a-sheet-body { max-height: none; overflow: visible; }
.a-sheet[data-state="peek"] .a-sheet-body { max-height: 196px; }
.a-sheet.a-sel[data-state="peek"] .a-sheet-body { max-height: 46dvh; }
/* folded and peeking, a finger anywhere on the sheet drags it: touch-action counts only up to the nearest scroll container — the
   body — so the body says it too (the browser would take the pan for itself and cancel the drag) */
.a-sheet[data-state="collapsed"] .a-sheet-body, .a-sheet[data-state="peek"] .a-sheet-body { touch-action: none; }
/* expanded: the text scrolls by touch; only the handle drags */
.a-sheet[data-state="expanded"] { touch-action: auto; }
.a-sheet[data-state="expanded"] .a-sheet-body { min-height: 56dvh; max-height: 72dvh; }
.a-grab { display: block; position: relative; width: 100%; height: 28px; border: 0; padding: 0; background: transparent; cursor: grab; touch-action: none; }
.a-grab::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 44px; }
.a-grab::after { content: ""; position: absolute; left: 50%; top: 10px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #c3ccd6; }
/* folded: line 1 the short advice + «›», line 2 one compact row */
.a-sum { display: block; width: 100%; min-height: 44px; padding: 0 0 2px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.a-sum-l1 { display: flex; align-items: flex-start; gap: 8px; }
.a-sum-adv { flex: 1; min-width: 0; font-size: 20px; font-weight: 700; line-height: 1.25; color: #1d2b3a; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.a-sum-chev { flex: 0 0 auto; font-size: 22px; line-height: 1.1; color: #5a6875; }
.a-sum-l2 { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: #5a6875; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-sum-warn { color: #7a3b00; font-weight: 600; }
/* peek and expanded: the advice with «Подробнее ›» / «Свернуть ⌄» beside it, then the facts */
.a-pk-top { display: flex; align-items: flex-start; gap: 10px; }
.a-pk-adv { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: #1d2b3a; }
.a-more { flex: 0 0 auto; min-height: 44px; margin: -11px -6px 0 0; padding: 0 6px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #0a4f4c; cursor: pointer; white-space: nowrap; }
.a-pm { font-size: 15px; color: #1d2b3a; }
.a-best { font-size: 15px; font-weight: 600; color: #0a5a57; }
.a-upd { margin-top: 8px; font-size: 12px; color: #5a6875; }
.a-stale { font-size: 14px; font-weight: 700; }
/* «Почему?» and «Надёжность» (expanded): facts the server decided, ✓ / ✗ */
.a-why { margin-top: 14px; }
.a-why-h { font-size: 15px; font-weight: 700; color: #1d2b3a; }
.a-why-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; line-height: 1.45; color: #1d2b3a; }
.a-why-li + .a-why-li { margin-top: 4px; }
.a-why-m { display: inline-block; width: 1.2em; font-weight: 800; }
.a-why-ok .a-why-m { color: #0a4f4c; }
.a-why-no .a-why-m { color: #7a3b00; }
/* W-3 A5: where the wind model is weak here, the note under the weather model's line (muted, its own line) */
.a-why-note { display: block; margin-left: 1.2em; font-size: 12px; color: #5a6875; }
.a-rel { font-size: 14px; font-weight: 600; }
.a-rel-good { color: #0a4f4c; }
.a-rel-limited { color: #7a3b00; }
.a-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a-h { font-size: 14px; font-weight: 700; }
.a-muted { font-size: 12px; color: #5a6875; }
.a-line { font-size: 13px; color: #33475b; margin-top: 8px; line-height: 1.4; }
.a-warn { color: #7a3b00; background: #fff4e5; border-radius: 8px; padding: 6px 9px; }
/* «Отчёт о месте» (owner 2026-09-29): text only, in the same sheet, nearly full height */
.a-sheet.a-report[data-state="expanded"] .a-sheet-body { max-height: 76dvh; }
.a-rep-list { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: #1d2b3a; }
.a-rep-list li + li { margin-top: 6px; }
.a-rep-h { margin: 14px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #5a6875; }
.a-rep-h2 { margin-top: 10px; }
.a-months { font-size: 13px; line-height: 1.6; }
/* owner 2026-09-29 batch: best time, hourly forecast, my places, advice for, share */
.a-who { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.a-menu-note { margin: 4px 2px 10px; font-size: 12px; }
.a-save-row { align-items: center; }
.a-usual { color: #1d2b3a; }
.a-act-main { background: #0a4f4c; color: #fff; border-color: #0a4f4c; }
.a-details { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e6eaef; }
/* owner 2026-09-30: on a phone, «where am I» is asked once, kindly */
.a-ask { background: #e7f3f1; border: 1px solid #b5d9d4; border-radius: 16px; padding: 10px 12px; margin: 2px 0 10px; }
.a-ask-t { font-size: 14.5px; font-weight: 700; color: #0a4f4c; margin-bottom: 3px; }
.a-ask .a-actions { margin-top: 8px; }
/* S-06: the data-quality notes fold into one line */
.a-qc { margin-top: 8px; }
.a-qc > summary { font-size: 13px; color: #33475b; cursor: pointer; list-style: none; }
.a-qc > summary::-webkit-details-marker { display: none; }
.a-qc > summary::after { content: " ›"; color: #5a6875; }
.a-qc[open] > summary::after { content: " ⌄"; }
.a-frow-h { margin-top: 10px; font-size: 11px; color: #5a6875; }
.a-frow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: 4px; }
.a-frc { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.a-frt { font-size: 11px; color: #5a6875; }
.a-dot { display: block; width: 12px; height: 12px; border-radius: 50%; }
.a-frn { font-size: 13px; font-weight: 700; color: #1d2b3a; }
.a-analysis { display: flex; align-items: center; gap: 10px; min-height: 44px; box-sizing: border-box; margin-top: 10px; padding: 11px 14px; border-radius: 16px; background: #f2f5f8; color: #1d2b3a; text-decoration: none; font-size: 14px; font-weight: 600; }
.a-analysis .a-chev { margin-left: auto; font-size: 18px; color: #5a6875; }
.a-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 11px; color: #5a6875; margin-top: 8px; }
.a-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 3px; vertical-align: -1px; }
.a-chips { display: flex; flex-wrap: wrap; gap: 12px 6px; margin-top: 8px; }
.a-chip { display: inline-flex; align-items: center; min-height: 32px; box-sizing: border-box; border: 0; border-radius: 8px; padding: 4px 9px; font-size: 12px; font-weight: 700; }
/* a chip that switches the layer is a 44 px touch target around its 32 px pill (the rows stand 12 px apart) */
button.a-chip { position: relative; cursor: pointer; font-family: inherit; }
button.a-chip::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
.a-fc { border-radius: 8px; padding: 1px 7px; font-size: 12px; font-weight: 700; }
.a-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.a-act { min-height: 44px; box-sizing: border-box; border: 1px solid #c3ccd6; background: #fff; border-radius: 12px; padding: 9px 14px; font-size: 14px; color: #0a4f4c; text-decoration: none; cursor: pointer; font-weight: 600; }
.a-ev { font-size: 10px; font-weight: 700; text-transform: uppercase; border-radius: 6px; padding: 1px 5px; margin-left: 4px; background: #e8f0f9; color: #1d4f85; }
.a-ev-sensor { background: #fbf1df; color: #7a4b00; }
.a-ev-model { background: #efeafa; color: #4b2f8a; }


/* the menu: layers (what to show), languages, the full version */
.a-menu-pop { position: fixed; top: calc(62px + env(safe-area-inset-top)); right: 12px; z-index: 1000; background: #fff; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.10); padding: 12px; min-width: 220px; max-width: calc(100vw - 24px); box-sizing: border-box; }
.a-menu-pop[hidden] { display: none; }
.a-menu-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #5a6875; margin: 2px 2px 6px; }
.a-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.a-modes .a-menu-h { flex-basis: 100%; }
.a-mode { flex: 0 0 auto; min-height: 44px; border: 0; border-radius: 16px; padding: 7px 13px; font-size: 14px; font-weight: 600; background: #f2f5f8; color: #1d2b3a; cursor: pointer; }
.a-mode[aria-pressed="true"] { background: #0a4f4c; color: #fff; }
.a-menu-pop .a-langs, .a-panel .a-langs { display: flex; gap: 6px; margin-bottom: 8px; }
.a-menu-pop .a-langs button, .a-menu-pop a, .a-menu-pop [data-place], .a-panel .a-langs button, .a-panel a, .a-panel [data-place] { display: block; width: 100%; min-height: 44px; text-align: left; border: 0; background: #f2f5f8; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: #1d2b3a; text-decoration: none; margin-top: 6px; cursor: pointer; box-sizing: border-box; font-family: inherit; }
.a-menu-pop .a-langs button, .a-panel .a-langs button { width: auto; flex: 1; text-align: center; margin: 0; }
.a-menu-pop .a-langs button[aria-pressed="true"], .a-panel .a-langs button[aria-pressed="true"] { background: #0a4f4c; color: #fff; }
.a-toast { position: fixed; left: 50%; bottom: 250px; transform: translateX(-50%); z-index: 1100; background: rgba(29,43,58,0.92); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 13px; max-width: 86vw; text-align: center; }
.a-toast[hidden] { display: none; }
/* AQI bands in EcoEsep's display palette (owner 2026-09-29; same bands and order as US EPA, softer — server/services/aqi.js DISPLAY) */
.a-good { background: #4CBF6B; color: #0e3a1a; }
.a-moderate { background: #F2CF3C; color: #3f3300; }
.a-usg { background: #F4973B; color: #3b1e05; }
.a-unhealthy { background: #D2453B; color: #fff; }
.a-very_unhealthy { background: #8A5BB0; color: #fff; }
.a-hazardous { background: #7D2A45; color: #fff; }
.a-none { background: #e6eaef; color: #5a6875; }
.leaflet-control-attribution { font-size: 9px; margin-bottom: 124px !important; }
/* a tablet (700–899 px): the same three states, the sheet two thirds wide and centred */
@media (min-width: 700px) and (max-width: 899px) {
  .a-sheet { left: 17vw; right: 17vw; }
}
/* a desktop (≥ 900 px — redesign part 2, owner 2026-10-01): the map stays primary; along the bottom ONE strip, 100–130 px tall — the
   advice with «Подробнее ›» | the next hours | «Подробный анализ: Алматы →» (no shadow stronger than the rest, no borders between the
   parts: space parts them); on the right ONE drawer for everything else (the details, a station, a place, its report) — #a-sheet, under
   the layers button, above the strip and the map credit, closed («collapsed», or while the city is still loading) until the reader
   asks, its text scrolling inside; the handle is its «×»; it fades in from the right in 200 ms, not at all with reduced motion.
   Below 900 px there is no strip */
.a-strip { display: none; }
@media (min-width: 900px) {
  .a-strip { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 950; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: 100px; max-height: 130px; overflow-y: auto; box-sizing: border-box; padding: 12px 18px; background: #fff; border-radius: 18px; box-shadow: 0 4px 16px rgba(0,0,0,0.10); }
  .a-strip[hidden] { display: none; }
  .a-strip-now, .a-strip-fc { min-width: 0; }
  .a-strip-boot { grid-column: 1 / -1; }
  .a-strip-top { display: flex; align-items: flex-start; gap: 10px; }
  .a-strip-adv { flex: 1; min-width: 0; font-size: 20px; font-weight: 700; line-height: 1.25; color: #1d2b3a; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .a-strip .a-more[aria-expanded="true"] { background: #e7f3f1; border-radius: 12px; }
  .a-strip-meta { margin-top: 4px; font-size: 13px; line-height: 1.4; color: #5a6875; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .a-strip-warn { color: #7a3b00; font-weight: 600; }
  .a-strip-fc .a-frow-h { margin-top: 0; }
  .a-strip-line { font-size: 15px; font-weight: 600; line-height: 1.35; color: #0a5a57; }
  .a-strip-none { font-size: 13px; color: #5a6875; }
  .a-strip-note { font-size: 12px; line-height: 1.3; color: #5a6875; }
  .a-strip-cta .a-analysis { margin-top: 0; max-width: 320px; }
  .a-sheet { left: auto; right: 12px; top: calc(112px + env(safe-area-inset-top)); bottom: calc(176px + env(safe-area-inset-bottom)); width: 380px; max-width: calc(100vw - 24px); display: flex; flex-direction: column; border-radius: 18px; padding: 0 16px 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.10); touch-action: auto; animation: a-drawer-in 200ms ease-out; }
  .a-sheet::after { display: none; }
  .a-sheet[data-state="collapsed"], .a-sheet.a-boot { display: none; }
  /* the layers box and the ⋯ menu stand to the left of an open drawer, never over its top (part 2 follow-up, 2026-10-01) */
  .a-drawer-open .a-layers-pop, .a-drawer-open .a-menu-pop { right: calc(12px + 380px + 12px); }
  .a-sheet[data-state] .a-sheet-body, .a-sheet.a-sel[data-state] .a-sheet-body, .a-sheet.a-report[data-state] .a-sheet-body { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; touch-action: auto; }
  .a-sheet[data-motion="reduce"] { animation: none; }
  .a-grab { flex: 0 0 auto; align-self: flex-end; width: 44px; height: 44px; margin: 4px -10px -4px 0; border-radius: 50%; cursor: pointer; touch-action: auto; }
  .a-grab::before { display: none; }
  .a-grab::after { content: "×"; position: static; display: block; width: auto; height: auto; margin: 0; border-radius: 0; background: none; font-size: 26px; line-height: 44px; text-align: center; color: #5a6875; }
  .a-grab:hover { background: #f2f5f8; }
  .a-toast { bottom: 160px; }
  .leaflet-control-attribution { margin-bottom: 150px !important; }
}
@media (min-width: 900px) and (prefers-reduced-motion: reduce) { .a-sheet { animation: none; } }
/* a fade only (retest 29: a sideways start put the drawer 12 px past a 1440 px edge mid-animation) */
@keyframes a-drawer-in { from { opacity: 0; } to { opacity: 1; } }

/* UX-01 (audit 2026-09-30): zoom is no longer locked, so a phone must not zoom into a form control on focus —
   iOS does that below 16 px */
@media (max-width: 699px) { input, select, textarea { font-size: 16px !important; } }

/* owner 2026-09-30 «light»: one top row (city · «◎ Рядом» · ⋯), a compact card, a one-line legend on «Карта» */
.a-toprow .a-citypill { flex: 0 1 auto; min-width: 0; max-width: 56vw; }
.a-toprow .a-near { flex: 0 0 auto; margin-top: 0; padding: 10px 13px; }
.a-toprow .a-btn { flex: 0 0 auto; }
.a-near-s { display: none; }
@media (max-width: 380px) { .a-near-l { display: none; } .a-near-s { display: inline; } }
/* owner 2026-10-01 (item 8): once the reader's place is known, «◎» alone — a round button, in the brand colour while that place is
   the one shown */
.a-toprow .a-near.a-near-icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; background: #fff; color: #0a4f4c; font-size: 20px; }
.a-toprow .a-near.a-near-on { background: #0a4f4c; color: #fff; }

/* layers, Leaflet style (owner 2026-09-30: «like other maps»): one square button under ⋯; its box opens below it */
.a-layers-btn { position: fixed; top: calc(62px + env(safe-area-inset-top)); right: 12px; z-index: 905; width: 44px; height: 44px; padding: 0; border: 1px solid #d3dbe4; border-radius: 10px; background: #fff url(/vendor/leaflet/images/layers.png) center / 26px 26px no-repeat; box-shadow: 0 4px 16px rgba(0,0,0,0.10); cursor: pointer; }
@media (min-resolution: 2dppx) { .a-layers-btn { background-image: url(/vendor/leaflet/images/layers-2x.png); } }
.a-layers-btn[aria-expanded="true"] { background-color: #e7f3f1; border-color: #b5d9d4; }
.a-layers-pop { position: fixed; top: calc(112px + env(safe-area-inset-top)); right: 12px; z-index: 1000; width: 250px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 260px); overflow-y: auto; box-sizing: border-box; background: #fff; border: 1px solid #e3e9f0; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.10); padding: 10px 12px; font-size: 14px; }
.a-layers-pop[hidden] { display: none; }
.a-lay-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #5a6875; margin-bottom: 2px; }
.a-lay-row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; color: #1d2b3a; cursor: pointer; }
.a-lay-row input { margin: 0; accent-color: #0a4f4c; }
.a-lay-sub { padding-left: 22px; }
.a-lay-sep { border-top: 1px solid #e6eaef; margin: 6px 0; }
.a-lay-note { font-size: 12px; line-height: 1.4; color: #5a6875; margin-top: 4px; }
