*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  /* dark theme is NEUTRAL GRAY — no blue cast in any panel (user request) */
  --bg:#070708;--bg2:#0A0A0B;--panel:#141416;--card:#141416;
  --border:rgba(255,255,255,.06);--text:#F4F4F5;--dim:#98999C;--dim2:#B0B1B4;
  --green:#30D56B;--fuel:#FF7A1A;--amber:#FFC400;--red:#FF4D5A;--blue:#3B82F6;--gas:#16C0C8;--events:#A78BFA;
  --safe-b:env(safe-area-inset-bottom,0px);
  /* liquid-glass panel */
  --glass:rgba(23,23,25,.55);--glass-brd:rgba(255,255,255,.16);--glass-div:rgba(255,255,255,.07);
  --glass-hi:rgba(255,255,255,.16);
}
body.light{
  --glass:rgba(255,255,255,.72);--glass-brd:rgba(15,23,42,.08);--glass-div:rgba(15,23,42,.07);
  --glass-hi:rgba(255,255,255,.95);
}
html,body{height:100%;background:var(--bg);color:var(--text);
  font-family:"Inter",-apple-system,"SF Pro Text",system-ui,"Segoe UI",Roboto,sans-serif;font-size:14px;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;
  font-feature-settings:"cv11" 1,"ss01" 1;letter-spacing:-.006em}
body{overflow:hidden}
button{font-family:inherit;cursor:pointer}
/* доступность: видимый фокус с клавиатуры (раньше не было нигде; :focus-visible не трогает мышь/тач) */
:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:8px}
body.light :focus-visible{outline-color:#1a9e4b}
/* ═══ PREMIUM POLISH — iOS-like tactility, springy easings, refined liquid glass ═══ */
:root{ --spring:cubic-bezier(.34,1.4,.5,1); --ease-out:cubic-bezier(.22,1,.36,1); --ease:cubic-bezier(.33,1,.68,1); }
*{ -webkit-tap-highlight-color:transparent }                 /* kill the grey mobile tap-flash everywhere */
.tap{ transition:transform .26s var(--spring); will-change:transform }
.tap:active{ transform:scale(.95) }                          /* smooth spring-back on release */
/* springy press + smooth state changes for the common interactive rows/chips that scale or tint on :active */
.ncard,.sfchip,.evbtn,.vbtn,.db-btn,.db-x,.st-route-mini,.vundo-btn,.brief-nx,.brief-ava-guest,.vf-pre,
.sr-item,.ac-row,.fr-chip,.chat-row,.mus-row,.st-fav,.route-btn,.vpick-btn,.ncell{
  transition:transform .24s var(--spring), background-color .2s var(--ease-out), color .18s var(--ease-out),
    box-shadow .24s var(--ease-out), border-color .2s var(--ease-out), opacity .18s var(--ease-out) }
.ncell:active{ transform:scale(.98) }                        /* nearby list cells get a gentle press too */
/* custom scrollbars — thin, rounded, theme-aware (replaces the chunky OS one) */
*{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) transparent}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);border-radius:999px;border:2.5px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.34);background-clip:padding-box}
::-webkit-scrollbar-corner{background:transparent}
body.light *{scrollbar-color:rgba(0,0,0,.28) transparent}
body.light ::-webkit-scrollbar-thumb{background:rgba(0,0,0,.24);background-clip:padding-box}
body.light ::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.38);background-clip:padding-box}
/* The sheet's scroll areas hide the native scrollbar entirely (no reserved space → content is full width, never
   reflows). A smooth custom overlay thumb (#ovscroll) is drawn over them instead: it fades in on scroll and fades
   out when idle, floating over the content. */
.msheet-list, .card-body, .st-scroll{scrollbar-width:none}
.msheet-list::-webkit-scrollbar, .card-body::-webkit-scrollbar, .st-scroll::-webkit-scrollbar{width:0;height:0;display:none}
#ovscroll{position:fixed;width:5px;border-radius:999px;background:rgba(255,255,255,.36);opacity:0;
  transition:opacity .3s ease;pointer-events:none;z-index:660;box-shadow:0 1px 3px rgba(0,0,0,.35)}
body.light #ovscroll{background:rgba(0,0,0,.30);box-shadow:none}
body.dragging #ovscroll, body.collapsed #ovscroll, body.navdrag #ovscroll, body.station #ovscroll, body.chatopen #ovscroll{opacity:0!important}   /* never during a collapse/expand/tab motion or under an overlay */
@keyframes spin{to{transform:rotate(360deg)}}
/* Desktop/tablet: centred "phone frame" instead of stretched layout */
@media(min-width:600px){
  html{background:#060607}
  html.light{background:#e7ebf1}   /* светлая тема: фон «рамки» — мягкий нейтральный, НЕ чёрный (было #060607 при любой теме) */
  body{max-width:460px;margin:0 auto;overflow:hidden;transform:translateZ(0);   /* overflow:hidden — слайд карточки клипится рамкой, не вылезает в поля */
    box-shadow:0 0 0 1px rgba(255,255,255,.06),0 24px 70px rgba(0,0,0,.55)}
  body.light{box-shadow:0 0 0 1px rgba(15,23,42,.06),0 24px 70px rgba(30,45,70,.16)}   /* мягкая холодная тень рамки в светлой теме */
  #header,#map,#overlay,#panel{left:50%!important;width:460px!important;right:auto!important}
  #header{transform:translateX(-50%)}
  #map,#overlay{transform:translateX(-50%)}
  #panel{transform:translateX(-50%) translateY(100%)}
  #panel.open{transform:translateX(-50%) translateY(0)}
  .map-fab{right:calc(50% - 214px)!important}
}
@media(min-width:600px) and (max-width:899px){
  /* «телефон-рамка»: карточка/чат — на всю ширину колонки (как шапка/карта, тоже 460), иначе они были на 8px уже
     (left/right:edge) → шапка нависала над карточкой у верхних углов и сбоку просвечивала карта = «разрыв сверху». */
  #pane-station, body:not(.v-map) #pane-chat{left:0!important; right:0!important; width:auto!important}
}

#header{position:fixed;top:0;left:0;right:0;z-index:1200;height:72px;padding:0 14px;
  display:flex;align-items:center;gap:10px;
  background:rgba(9,9,10,.9);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0}
.brand-badge{width:32px;height:32px;flex-shrink:0;display:flex;align-items:center;justify-content:center;
  background:none;border:none;box-shadow:none;transition:transform .12s}
.brand-badge svg{width:30px;height:30px;filter:drop-shadow(0 0 4px rgba(48,213,107,.4))}
.brand.tap:active .brand-badge{transform:scale(.92)}
.wm{font-size:22px;font-weight:800;letter-spacing:-.015em;color:#fff;white-space:nowrap}
/* inline search field with a magnifier inside */
.search-ic{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--dim);pointer-events:none;z-index:1}
/* chevron collapse arrow (no circle) */
#collapse-btn{flex-shrink:0;width:34px;height:38px;padding:0;border:none;background:none;color:var(--dim);cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:transform .12s,color .16s}
#collapse-btn:hover{color:var(--text)}
#collapse-btn:active{transform:scale(.88)}
#collapse-btn .chev{width:22px;height:22px;transition:transform .3s ease}
body.collapsed #collapse-btn .chev{transform:rotate(180deg)}
.wm .g{color:var(--green);text-shadow:0 0 14px rgba(48,213,107,.4)}
@media(max-width:410px){.wm{display:none}}

#search-wrap{position:relative;flex:1;min-width:0}
/* ── focus-expand search: on focus the field smoothly grows over the logo and the right-side buttons; ✕ folds it back ── */
.brand, #header-geo, #collapse-btn{transition:max-width .34s cubic-bezier(.33,1,.68,1), opacity .2s ease, padding .34s cubic-bezier(.33,1,.68,1), transform .26s var(--spring)}
/* base max-widths ≈ the elements' REAL widths: max-width must animate from a concrete value (none→0 can't animate),
   and a value far above the real width makes the first part of the timeline a no-op (reads as a 2-step stumble) */
.brand{max-width:34px}   /* = реальная ширина бейджа-логотипа (32px, текста .wm в этом билде нет). Было 46px → 14px «мёртвой зоны» в начале анимации max-width давали спотыкание при раскрытии поиска */
#header-geo{max-width:42px}
#collapse-btn{max-width:36px}
body.searching #header .brand, body.searching #header-geo, body.searching #header #collapse-btn{
  max-width:0!important;opacity:0;padding:0!important;border-width:0!important;min-width:0!important;
  pointer-events:none;overflow:hidden}
body.searching #header{gap:0!important}
#city-input{transition:padding .34s cubic-bezier(.33,1,.68,1)}
#search-close{display:flex;position:absolute;right:5px;top:50%;transform:translateY(-50%) scale(.6);width:32px;height:32px;
  border:none;border-radius:50%;cursor:pointer;color:var(--dim);align-items:center;justify-content:center;
  background:none;
  opacity:0;pointer-events:none;transition:opacity .22s ease, transform .3s cubic-bezier(.33,1,.68,1)}
#search-close:active{color:var(--text)}
#search-close svg{width:16px;height:16px}
body.searching #search-close{opacity:1;pointer-events:auto;transform:translateY(-50%) scale(1)}
body.searching #city-input{padding-right:44px}
/* place button (desktop) — pill right of the logo that opens the country/city search */
.place-btn{display:none;align-items:center;justify-content:center;flex-shrink:0;width:42px;height:42px;
  margin-left:10px;background:rgba(255,255,255,.06);border:1px solid var(--border);border-radius:999px;color:#E8EAF0;cursor:pointer}
.place-btn:active{transform:scale(.95)}
.place-btn.active{border-color:rgba(48,213,107,.55);color:var(--green)}
.place-btn .pb-mag{width:19px;height:19px}
body.light .place-btn{background:rgba(0,0,0,.05);color:#0f1723}
/* collapse the left panel up to just the header row — panel slides/fades away
   smoothly OVER the map; the map itself never resizes (no jump) */
/* collapse: fold the panel up as ONE continuous roll — clip sweeps bottom→top with a
   staggered delay so the sections' cut edges line up into a single moving line; it stays
   in place (never flies off-screen). Expand reverses: one roll unrolling top→bottom. */
#filter, .msheet, #botnav{clip-path:inset(0 0 0 0)}
/* One menu, drawn by three responsive regimes (phone / 460-frame / desktop card). Give the four
   menu pieces ONE shared transition so that when the layout flips at a breakpoint they GLIDE to
   their new spot instead of snapping — the snap is what reads as "a second menu appearing".
   The list is a superset of every per-regime transition below, so all existing animations are kept. */
#header, #filter, .msheet, #botnav{ transition:
  top .42s cubic-bezier(.33,1,.68,1), bottom .42s cubic-bezier(.33,1,.68,1),
  left .42s cubic-bezier(.33,1,.68,1), right .42s cubic-bezier(.33,1,.68,1),
  width .42s cubic-bezier(.33,1,.68,1), height .42s cubic-bezier(.33,1,.68,1),
  transform .42s cubic-bezier(.33,1,.68,1), border-radius .3s ease,
  background .3s ease, box-shadow .3s ease !important; }
/* the header also animates its side paddings + flex gap — while searching they shrink so the field reaches the panel edges */
#header{ transition:
  top .42s cubic-bezier(.33,1,.68,1), bottom .42s cubic-bezier(.33,1,.68,1),
  left .42s cubic-bezier(.33,1,.68,1), right .42s cubic-bezier(.33,1,.68,1),
  width .42s cubic-bezier(.33,1,.68,1), height .42s cubic-bezier(.33,1,.68,1),
  transform .42s cubic-bezier(.33,1,.68,1), border-radius .3s ease,
  background .3s ease, box-shadow .3s ease,
  padding .34s cubic-bezier(.33,1,.68,1), gap .34s cubic-bezier(.33,1,.68,1) !important; }
#search-wrap{transition:margin .34s cubic-bezier(.33,1,.68,1)}
body.searching #header{padding-left:10px!important;padding-right:10px!important}
body.searching #search-wrap{margin:0!important}
/* switching bottom-nav tabs must be INSTANT (no slide) — the transition above is only for breakpoint reflow /
   collapse. go() adds body.switching around the layout change, then removes it after a forced reflow. */
body.switching #header, body.switching #filter, body.switching .msheet, body.switching #botnav,
body.switching .sheet-pane{ transition:none !important; }
/* ══ RAIL OF CARDS — the one-window menu. #srail is a horizontal flex track of 5 .tabcard; each card =
   a fixed-height strip (always shown) over a scrolling body. Switching tabs = translateX the rail.
   Collapsing = shrink the sheet to the strip height (the body clips away). Strip + body share the card,
   so they slide together by construction — no buffers, no clones, no ghosts. ══ */
#srail{flex:1;min-height:0;display:flex;width:100%;will-change:transform;transition:transform .34s cubic-bezier(.33,1,.68,1)}
body.navdrag #srail, body.switching #srail{transition:none}
.tabcard{flex:0 0 100%;width:100%;height:100%;display:flex;flex-direction:column;min-height:0}
.tabcard[data-view="map"] .msheet-head{display:none}   /* the strip filter is the map's header; the "Nearby" title stays hidden */
.card-strip{flex:0 0 var(--strip-h);height:var(--strip-h);display:flex;flex-direction:column;justify-content:center;
  padding:6px 16px;box-sizing:border-box}
body:not(.collapsed) .card-strip{border-bottom:1px solid var(--glass-div)}
.card-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 14px 26px}
.tabcard[data-view="map"] .card-strip{padding:0 12px}
.tabcard[data-view="map"] .card-body{overflow:hidden;display:flex;flex-direction:column;padding:0}
.tabcard[data-view="map"] #msheet-list{flex:1;min-height:0}
.msheet .drag{display:none}                 /* the pull gesture is handled by the invisible #sheet-grab overlay */
/* the marker-type filter, relocated into the map card's strip → full-width stretch row (PC design) */
.card-strip #filter{position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;z-index:auto!important;width:100%!important;height:64px!important;margin:0!important;padding:0!important;
  display:flex!important;gap:9px;justify-content:space-between;align-items:stretch;
  background:none!important;border:none!important;box-shadow:none!important;border-radius:0!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.card-strip #filter .fbtn{flex:1;align-items:center;justify-content:center;padding:0;border-radius:16px;border:none;
  background:rgba(255,255,255,.05);color:var(--dim);
  transition:background-color .24s var(--ease-out),color .18s var(--ease-out),transform .24s var(--spring)}
.card-strip #filter .fbtn:active{transform:scale(.93)}
.card-strip #filter .fbtn svg{transition:transform .3s var(--spring)}
.card-strip #filter .fbtn.on svg{transform:scale(1.06)}
body.light .card-strip #filter .fbtn{background:rgba(0,0,0,.04)}
.card-strip #filter .fbtn.on{background:rgba(255,255,255,.12);color:#fff}
.card-strip #filter .fbtn.on.f-fuel{background:rgba(255,122,26,.18);color:#FF8A3D}
.card-strip #filter .fbtn.on.f-ev{background:rgba(48,213,107,.18);color:#3ee27a}
.card-strip #filter .fbtn.on.f-gas{background:rgba(22,192,200,.20);color:#22cdd6}
.card-strip #filter .fbtn.on.f-events{background:rgba(255,77,90,.2);color:#FF6B76}
.card-strip #filter .fbtn.on.f-places{background:rgba(76,154,255,.2);color:#6FAEFF}
.card-strip #filter .fbtn.on.f-fav{background:rgba(255,196,0,.2);color:#FFC400}
.card-strip #filter .fbtn.on.f-weather{background:rgba(56,189,248,.2);color:#38BDF8}
.card-strip #filter.all-on .f-fuel{color:#FF8A3D}
.card-strip #filter.all-on .f-ev{color:#3ee27a}
.card-strip #filter.all-on .f-gas{color:#22cdd6}
.card-strip #filter.all-on .f-events{color:#FF6B76}
.card-strip #filter.all-on .f-places{color:#6FAEFF}
.card-strip #filter.all-on .f-fav{color:#FFC400}
.card-strip #filter .fbtn svg{width:27px;height:27px}
@media(min-width:900px){ #botnav{transition:top .42s cubic-bezier(.22,1,.36,1)} body.collapsed #botnav{top:calc(80px + var(--strip-h))!important;bottom:auto!important} }
/* ── MOBILE: non-map tabs become a full-screen panel over the map (expanded) or a compact bar (collapsed) ── */
@media(max-width:899px){
  /* ── The sheet is a floating glass card. Its HEIGHT animates between the strip (collapsed) and full
     (expanded); the bottom edge stays pinned above the floating nav. Horizontal tab-switching is the
     rail's own translateX and is independent of this height. Same geometry for every tab. ── */
  .msheet{left:var(--edge)!important; right:var(--edge)!important; width:auto!important;
    top:auto!important; bottom:calc(var(--nav-h) + var(--edge))!important;
    height:calc(100dvh - var(--top0) - var(--nav-h) - var(--edge))!important;
    border-radius:0!important; overflow:hidden!important; padding:0!important;   /* плоский верх: скругление теперь на шапке над шитом */
    transition:height .42s cubic-bezier(.22,1,.36,1)!important}
  body.collapsed .msheet{height:var(--strip-h)!important}   /* folds to exactly the strip, flush on the nav (symmetric, like PC) */
  body.navdrag .msheet, body.dragging .msheet{transition:none!important}
  body.station .mapctl, body.chatopen .mapctl{display:none!important}   /* карточка/чат поверх карты → прячем зум */
  /* зум-пилюля НЕПОДВИЖНА (одно место, над свёрнутым окном); при разворачивании меню НАКРЫВАЕТ её сверху (z-index ниже шита) */
  .mapctl{bottom:calc(var(--nav-h) + var(--strip-h) + var(--edge)*2 + 64px + 30px)!important; z-index:600!important}   /* ниже шита (650) → развёрнутое меню накрывает пилюлю; выше карты → тапается */
  /* чат — полный оверлей, меню прячем; КАРТОЧКА точки — ложится СВЕРХУ меню (окно НЕ пропадает), непрозрачная карточка его перекрывает */
  body.chatopen .msheet{opacity:0!important; pointer-events:none!important}
  body.station .msheet{pointer-events:none!important}
  /* ── LIQUID GLASS across all mobile surfaces (match the PC glass) ── */
  #header{background:var(--glass)!important; -webkit-backdrop-filter:blur(30px) saturate(1.7)!important; backdrop-filter:blur(30px) saturate(1.7)!important;
    border-bottom:1px solid var(--glass-brd)!important; box-shadow:inset 0 -1px 0 var(--glass-div), inset 0 1px 0 var(--glass-hi)!important}
  .msheet{background:var(--glass)!important; -webkit-backdrop-filter:blur(30px) saturate(1.7)!important; backdrop-filter:blur(30px) saturate(1.7)!important;
    box-shadow:0 -14px 40px rgba(0,0,0,.42), inset 0 0 0 1px var(--glass-brd), inset 0 1px 0 var(--glass-hi)!important; border-top:none!important}
  #botnav{background:var(--glass)!important; -webkit-backdrop-filter:blur(30px) saturate(1.7)!important; backdrop-filter:blur(30px) saturate(1.7)!important;
    border-top:1px solid var(--glass-brd)!important; box-shadow:inset 0 1px 0 var(--glass-hi)!important}
  /* search field = lighter liquid glass (more translucent than the header, subtle inset highlight) */
  #city-input{background:rgba(255,255,255,.07)!important; -webkit-backdrop-filter:blur(14px) saturate(1.5); backdrop-filter:blur(14px) saturate(1.5);
    border:1px solid var(--glass-hi)!important; box-shadow:inset 0 1px 0 rgba(255,255,255,.14)!important; border-radius:22px!important}
  body.light #city-input{background:rgba(0,0,0,.045)!important; border:1px solid rgba(0,0,0,.08)!important; box-shadow:none!important}
  #pane-chat .chat-slide{-webkit-backdrop-filter:blur(30px) saturate(1.7)!important; backdrop-filter:blur(30px) saturate(1.7)!important}
  /* КАРТОЧКА непрозрачная — ложится поверх меню и перекрывает его (backdrop-filter не нужен; overflow:hidden контейнера клипит слайд рамкой меню) */
  #pane-station .st-slide{background:rgba(25,26,31,.975)!important}
  body.light #pane-station .st-slide{background:rgba(246,247,250,.98)!important}
  /* ── FLOATING CHROME — nav is its own rounded card inset by --edge ── */
  /* header (logo+search) ПЕРЕНЕСЁН ВНИЗ: приклеен к верхней кромке шита → collapsed висит над стрипом,
     expanded поднимается ВМЕСТЕ с шитом к верху (единая панель, как сайдбар на ПК) */
  #header{top:auto!important; bottom:calc(var(--nav-h) + var(--edge) + var(--strip-h))!important;
    left:var(--edge)!important; right:var(--edge)!important; width:auto!important;
    border-bottom:none!important; border-radius:22px 22px 0 0!important;   /* было 26 — рассинхрон с #botnav (22) в «единой панели»; десктоп тоже 22 */
    box-shadow:0 -10px 30px rgba(0,0,0,.42), inset 0 0 0 1px var(--glass-brd), inset 0 1px 0 var(--glass-hi)!important;
    transition:bottom .42s cubic-bezier(.22,1,.36,1), opacity .2s ease!important}
  body:not(.collapsed) #header{bottom:calc(100dvh - var(--top0))!important}   /* expanded: шапка едет к верху вместе с шитом */
  body.navdrag #header, body.dragging #header{transition:none!important}       /* во время перетаскивания — без анимации (следует за пальцем)  */
  body.chatopen #header{opacity:0!important; pointer-events:none!important}                       /* чат — полный оверлей, поиск не нужен */
  /* шапка при открытой карточке видима и двигается через body.collapsed (как у обычных вкладок) — отдельного правила не нужно */
  /* СВЁРНУТО: шапка внизу → результаты поиска раскрываются ВВЕРХ (над полем, поверх карты) */
  #search-results{top:auto!important; bottom:calc(100% + 10px)!important; max-height:60vh; overflow-y:auto!important}
  /* РАЗВЁРНУТО: шапка уехала ВВЕРХ экрана → результаты падают ВНИЗ под поле */
  body:not(.collapsed) #search-results{top:calc(100% + 10px)!important; bottom:auto!important}
  #botnav{left:var(--edge)!important; right:var(--edge)!important; bottom:var(--edge)!important; width:auto!important;
    border-top:none!important; border-radius:0 0 22px 22px!important;
    box-shadow:0 12px 34px rgba(0,0,0,.42), inset 0 0 0 1px var(--glass-brd)!important}
  /* ── КАРТОЧКА ТОЧКИ: ВЫЕЗЖАЕТ справа налево ПОВЕРХ текущей страницы (как на десктопе), закрывается — уезжает
       вправо (та же анимация наоборот). Фон — прозрачное стекло как остальное меню (var(--glass)). ── */
  /* КАРТОЧКА = слайд-оверлей, ВЫЕЗЖАЕТ СПРАВА (translateX + анимация stSlideIn — глобальные правила выше, БЕЗ !important).
     Геометрия по состоянию: .expanded = ПОЛНАЯ (top0→над навом); :not(.expanded) = PEEK (полоска над навом, виден только .st-brief). */
  #pane-station{
    left:var(--edge)!important; right:var(--edge)!important; width:auto!important;
    border-radius:0!important; overflow:hidden!important; clip-path:none!important; padding:0!important;
    transition:top .42s cubic-bezier(.22,1,.36,1)!important; z-index:1160}   /* peek↔full по top; ТА ЖЕ кривая, что у #header/#sheet-grab → на доводке едут в лок-степ, без расхождения */
  body.navdrag #pane-station, body.dragging #pane-station{transition:none!important}
    /* overflow:hidden — слайд .st-slide КЛИПИТСЯ рамкой меню: карточка выезжает из ПРАВОЙ ГРАНИЦЫ меню и уходит в неё при закрытии,
       НЕ появляется отдельной панелью справа от экрана. Карточка непрозрачная → iOS-баг backdrop-filter+overflow не грозит. */
  #pane-station.on.expanded{ top:calc(var(--top0) - 1px)!important; bottom:calc(var(--nav-h) + var(--edge))!important; height:auto!important }   /* -1px: перекрытие с шапкой → без суб-пиксельного шва/разрыва */
  /* PEEK: явный top (не auto) — чтобы top↔top анимировался при разворачивании; высота = strip-h выходит из top+bottom */
  /* ⚠ 100% (layout-viewport / ICB), НЕ 100dvh — иначе на iOS с URL-баром 100dvh≠ICB и шапка(bottom) не совпадает
     с фикс. top карточки → РАЗРЫВ сверху. Все станционные позиции считаем от одного ICB, как и top0/bottom карточки. */
  #pane-station.on:not(.expanded){ top:calc(100% - var(--nav-h) - var(--edge) - var(--strip-h))!important; bottom:calc(var(--nav-h) + var(--edge))!important; height:auto!important }
  #pane-station .st-slide{border-radius:0!important; border-top:none!important; box-shadow:none!important; overflow:hidden!important}   /* ПЛОСКИЕ углы — карточка сливается с поиском в единую панель */
  /* ── ВЪЕЗД на МОБИЛЕ: НЕ через весь экран (translateX 104% летел от правого края = «появлялась справа»),
     а короткий сдвиг справа + проявление ПОВЕРХ меню. Перебивает глобальный stSlideIn специфичностью (body-префикс), без !important. ── */
  @keyframes stFadeSlideM{ from{opacity:0; transform:translateX(20px)} to{opacity:1; transform:translateX(0)} }
  body #pane-station .st-slide{transform:translateX(20px); opacity:0; transition:opacity .3s ease, transform .3s cubic-bezier(.33,1,.68,1)}
  body #pane-station.on .st-slide{transform:translateX(0); opacity:1; animation:stFadeSlideM .32s cubic-bezier(.33,1,.68,1) both}
  #pane-station:not(.on){pointer-events:none!important}
  body.station.st-expanded #header{bottom:calc(100% - var(--top0))!important}   /* шапка наверх; НИЗ = top0 = верх карточки (вплотную) */
  /* ЕДИНАЯ ПАНЕЛЬ: при открытой карточке ШАПКА = та же НЕПРОЗРАЧНАЯ поверхность, что и карточка (без стекла/блюра),
     вплотную и без шва → [лого+поиск] и карточка читаются как одно окно, не «прыгают» раздельно. */
  body.station #header{background:rgba(25,26,31,.975)!important; -webkit-backdrop-filter:none!important; backdrop-filter:none!important;
    box-shadow:0 -12px 34px rgba(0,0,0,.30), inset 0 1px 0 var(--glass-hi)!important}
  body.light.station #header{background:rgba(246,247,250,.98)!important;
    box-shadow:0 -12px 34px rgba(30,45,70,.14), inset 0 1px 0 rgba(255,255,255,.9)!important}
  /* «ХВОСТ» шапки — непрозрачное продолжение ВНИЗ за карточку (шапка z700 < карточки z1160): заливает ЛЮБОЙ зазор
     между низом шапки и верхом карточки тем же цветом (карта не просвечивает) в статике И при перетаскивании; где есть карточка — она хвост перекрывает. */
  body.station #header::after{content:''!important; position:absolute; top:calc(100% - 1px); left:0; right:0; height:60px;
    background:rgba(25,26,31,.975); pointer-events:none}
  body.light.station #header::after{background:rgba(246,247,250,.98)}
  /* ГРАБЕР карточки — верхний #sheet-grab (НАД поиском), едет вместе с шапкой: развёрнута→у верха, peek→над свёрнутой шапкой */
  body.station #sheet-grab{display:block!important}
  body.station.st-expanded #sheet-grab{top:calc(var(--top0) - 64px - 2px)!important}
  body.station:not(.st-expanded) #sheet-grab{top:calc(100% - var(--nav-h) - var(--edge) - var(--strip-h) - 64px - 2px)!important}
  /* чат-оверлей (отдельная механика) — прежняя геометрия */
  body:not(.v-map) #pane-chat{
    left:var(--edge)!important; right:var(--edge)!important; width:auto!important;
    top:var(--top0)!important; bottom:calc(var(--nav-h) + var(--edge))!important; height:auto!important;
    border-radius:22px 22px 0 0!important; overflow:hidden!important; clip-path:inset(0 round 22px 22px 0 0)}
}
/* ── 460 "phone frame" (600–899): the frame centres panels with left:50% (+ #header translateX(-50%)). The <900 float
   block above set them viewport-wide (left/right:edge, width:auto), which dragged the header off-centre and misaligned
   the sheet. Re-centre the floated panels WITHIN the 460 frame, inset by --edge (via margin-left so transform stays free
   for the collapse translateY). ── */
@media(min-width:600px) and (max-width:899px){
  /* selectors MATCH the float block's specificity so these win the horizontal (else its body-prefixed left/width leak through) */
  #header, #botnav,
  .msheet, #pane-station, body:not(.v-map) #pane-chat{
    left:calc(50% - 230px + var(--edge))!important; right:auto!important; width:calc(460px - var(--edge)*2)!important}
  #header{transform:none!important}
}
#city-input{width:100%;height:42px;padding:0 15px 0 40px;background:rgba(20,20,22,.9);border:1px solid var(--border);
  border-radius:16px;color:#fff;font-family:inherit;font-size:15px;outline:none}
#city-input:focus{border-color:rgba(48,213,107,.5)}
#city-input::placeholder{color:var(--dim)}
/* suggestions — glass-styled, but NEAR-OPAQUE: backdrop-filter can't sample the page from inside the blurred
   header (nested backdrop roots), so a translucent bg would just show the raw content behind, unblurred */
#search-results{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:2000;display:none;overflow:hidden;
  background:rgba(21,21,23,.97);
  border:1px solid var(--glass-brd);border-radius:18px;
  box-shadow:0 18px 46px rgba(0,0,0,.55), inset 0 1px 0 var(--glass-hi)}
body.light #search-results{background:rgba(255,255,255,.97)}
#search-results.open{display:block;animation:srIn .3s cubic-bezier(.33,1,.68,1)}
body.station #search-results, body.chatopen #search-results{display:none!important}   /* карточка/чат открыты → дропдаун поиска не показываем (никаких наложений) */
@keyframes srIn{from{opacity:0;transform:translateY(-10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.sr-item{display:flex;align-items:center;gap:11px;padding:11px 13px;cursor:pointer;font-size:14px;border-bottom:1px solid var(--glass-div);line-height:1.3}
.sr-item:last-child{border-bottom:none}.sr-item:active{background:rgba(255,255,255,.06)}
.sr-item.hi{background:rgba(255,255,255,.08)}   /* keyboard / hover highlight */
body.light .sr-item.hi{background:rgba(0,0,0,.05)}
/* quick categories + recent searches (shown on focus, before typing) */
.sr-cats{display:flex;gap:7px;overflow-x:auto;padding:11px 12px;scrollbar-width:none;border-bottom:1px solid var(--glass-div)}
.sr-cats::-webkit-scrollbar{display:none}
.sr-cat{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 12px;border:1px solid var(--glass-brd);
  border-radius:13px;background:rgba(255,255,255,.05);color:var(--text);font-family:inherit;font-size:11px;font-weight:600;cursor:pointer;transition:background .18s}
.sr-cat:hover{background:rgba(255,255,255,.1)}.sr-cat:active{transform:scale(.94)}
.sr-cat svg{width:20px;height:20px;color:var(--dim)}
.sr-recent-h{display:flex;align-items:center;justify-content:space-between;padding:10px 14px 6px;font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.5px;color:var(--dim)}
.sr-clear{border:none;background:none;color:var(--green);font-family:inherit;font-size:11px;font-weight:700;text-transform:none;letter-spacing:0;cursor:pointer;padding:2px 4px}
body.light .sr-cat{background:rgba(0,0,0,.04)}
.sr-ic{flex-shrink:0;width:36px;height:36px;border-radius:11px;display:flex;align-items:center;justify-content:center;
  color:#D7DADF;
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.05));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10), inset 0 1px 0 rgba(255,255,255,.14)}
.sr-ic svg{width:18px;height:18px}
body.light .sr-ic{color:#3E4652;background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,.6));box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}
.sr-txt{flex:1;min-width:0}
.sr-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sr-sub{font-size:12px;color:var(--dim);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr-dist{flex-shrink:0;font-size:11.5px;font-weight:700;color:var(--green);white-space:nowrap;
  background:rgba(48,213,107,.13);border:1px solid rgba(48,213,107,.22);padding:3px 9px;border-radius:999px}
.sr-empty{padding:14px;font-size:14px;color:var(--dim)}
.sr-loading{animation:srPulse 1.1s ease-in-out infinite}
@keyframes srPulse{0%,100%{opacity:.5}50%{opacity:1}}
/* searched-place card: rendered through the standard station-card machinery (kind:'place') — extras only */
.st-ic-pl{font-size:19px;display:flex;align-items:center;justify-content:center;color:#D7DADF}
.st-ic-pl svg{width:20px;height:20px}
body.light .st-ic-pl{color:#3E4652}
.pl-rm{color:var(--dim)}
.st-route-mini{flex-shrink:0;width:40px;height:40px;border-radius:13px;border:none;background:var(--green);color:#04140A;
  display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px rgba(48,213,107,.35)}
.st-route-mini svg{width:19px;height:19px}
.st-route-mini:active{transform:scale(.93)}
/* Navigator "Недавние" (search history) rows reuse .rt-stop */
.nv-hist-ic{font-size:16px;color:#C9CCD1}
.nv-hist-ic svg{width:17px;height:17px}
body.light .nv-hist-ic{color:#3E4652}
.rt-stop-nm .nv-hist-sub{display:block;font-size:11px;color:var(--dim);font-weight:400;margin-top:1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.hbtn{flex-shrink:0;width:42px;height:42px;border-radius:999px;border:1px solid var(--border);
  background:rgba(255,255,255,.06);color:#E8EAF0;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700}
.hbtn:active{transform:scale(.95)}
.hbtn svg{width:22px;height:22px}
#lang-btn{font-size:13px}
/* header geo button + Share/Install account rows are MOBILE-ONLY (desktop keeps share/install + geo where they were) */
#header-geo{display:none}
.mob-share{display:none}
.geo-btn.tracking{color:var(--green)!important;border-color:rgba(48,213,107,.5)!important}
@media(max-width:899px){
  #header-geo{display:flex}
  #header #share-btn, #header #install-btn{display:none}   /* moved into the Кабинет tab */
  #compass{display:none}                                   /* no map-rotation control on mobile */
  /* зум-пилюля больше НЕ прячется при развёрнутом меню (юзер: должна оставаться видимой) — позиционирование выше в основном мобильном блоке */
  .mob-share{display:block}
  #collapse-btn{display:none}                              /* mobile: the grab pill / tab-tap collapses — free the header's right for the geo button */
  /* map-info (i): tiny + subtle, в правом верхнем углу, но В САМОМ НИЗУ стека (z-index:2) — сидит на карте
     ПОД всеми окнами (шапка/карточка/меню перекрывают её), не висит поверх панелей */
  #attrib-btn{top:calc(78px + var(--safe-t,0px))!important; right:12px!important; width:26px!important; height:26px!important; opacity:.5; z-index:2!important}
  #attrib-btn svg{width:15px!important; height:15px!important}
  #attrib-btn:active{opacity:.85}
  #attrib-pop{top:calc(78px + var(--safe-t,0px))!important; right:44px!important; height:26px!important; line-height:24px!important; z-index:2!important}
}

/* filter — floating segmented pill over the map */
#filter{position:fixed;top:84px;left:50%;transform:translateX(-50%);z-index:700;display:flex;gap:3px;
  background:rgba(20,20,22,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border:1px solid var(--border);border-radius:999px;padding:4px;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.fbtn{border:none;background:transparent;color:var(--dim);font-family:inherit;
  padding:9px;border-radius:14px;display:flex;align-items:center;justify-content:center;transition:color .18s, background .18s}
.fbtn .flab, .fbtn .fdot{display:none}
.fbtn svg{width:23px;height:23px;display:block}
.fbtn.on{background:rgba(255,255,255,.12);color:#fff}
.fbtn.on.f-fuel{background:rgba(255,122,26,.18);color:#FF8A3D}
.fbtn.on.f-ev{background:rgba(48,213,107,.18);color:#3ee27a}
.fbtn.on.f-gas{background:rgba(22,192,200,.20);color:#22cdd6}
.fbtn.on.f-events{background:rgba(255,77,90,.2);color:#FF6B76}
.fbtn.on.f-places{background:rgba(76,154,255,.2);color:#6FAEFF}
.fbtn.on.f-fav{background:rgba(255,196,0,.2);color:#FFC400}
.fbtn.on.f-weather{background:rgba(56,189,248,.2);color:#38BDF8}
/* панель «Погода»: сейчас + осадки 2ч + контролы радара */
.wx-now{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:var(--glass);border:1px solid var(--glass-brd);box-shadow:inset 0 1px 0 var(--glass-hi);margin-bottom:10px}
.wx-ico{font-size:34px;line-height:1;flex:none}
.wx-t{font-size:26px;font-weight:800;letter-spacing:-.02em}
.wx-d{flex:1;min-width:0}
.wx-desc{font-size:13px;color:var(--dim);font-weight:600}
.wx-sub{font-size:11.5px;color:var(--dim);opacity:.8;margin-top:2px}
.wx-rain{padding:11px 12px;border-radius:14px;background:var(--glass);border:1px solid var(--glass-brd);margin-bottom:10px}
.wx-rain-t{font-size:13px;font-weight:700;margin-bottom:8px}
.wx-rain-t.soon{color:#38BDF8}
.wx-bars{display:flex;align-items:flex-end;gap:2px;height:34px}
.wx-bar{flex:1;min-width:2px;background:#38BDF8;border-radius:2px 2px 0 0;opacity:.85}
.wx-bar.dry{height:2px!important;background:var(--dim);opacity:.3}
.wx-bars-lb{display:flex;justify-content:space-between;font-size:10px;color:var(--dim);margin-top:4px}
.wx-radar{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:var(--glass);border:1px solid var(--glass-brd)}
.wx-play{width:38px;height:38px;flex:none;border:none;border-radius:11px;background:rgba(56,189,248,.18);color:#38BDF8;font-size:15px;cursor:pointer}
.wx-play:active{transform:scale(.95)}
.wx-frame{flex:1;font-size:12.5px;color:var(--dim);font-weight:600}
.wx-src{font-size:11px;color:var(--dim);margin-top:8px;text-align:center}   /* было 10.5px + opacity:.7 → ~3.1:1 в светлой; opacity убран */
.wx-now{position:relative}
.wx-pin{position:absolute;top:8px;right:8px;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:10px;
  border:1px solid var(--glass-brd);background:transparent;font-size:15px;cursor:pointer;opacity:.55;transition:opacity .15s,background .15s;filter:grayscale(1)}
.wx-pin.on{opacity:1;filter:none;background:rgba(56,189,248,.16);border-color:rgba(56,189,248,.45)}
.wx-pin:active{transform:scale(.94)}
.wx-soon{padding:9px 12px;border-radius:12px;background:rgba(56,189,248,.12);border:1px solid rgba(56,189,248,.3);color:#38BDF8;font-size:13px;font-weight:700;margin-bottom:10px}
.wx-hours{display:flex;gap:4px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:10px 8px;border-radius:14px;background:var(--glass);border:1px solid var(--glass-brd);box-shadow:inset 0 1px 0 var(--glass-hi);margin-bottom:4px}
.wx-hr{flex:1 0 44px;display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;border-radius:10px;padding:4px 2px;transition:background .15s,box-shadow .15s}
.wx-hr:active{transform:scale(.96)}
.wx-hr.sel{background:rgba(56,189,248,.14);box-shadow:inset 0 0 0 1px rgba(56,189,248,.45)}
.wx-hr-t{font-size:10.5px;color:var(--dim);font-weight:600}
.wx-hr-i{font-size:18px;line-height:1.2}
.wx-hr-v{font-size:12.5px;font-weight:750}
.wx-det{margin-top:6px;padding:11px 12px;border-radius:14px;background:var(--glass);border:1px solid var(--glass-brd);box-shadow:inset 0 1px 0 var(--glass-hi)}
.wx-det-h{font-size:13.5px;font-weight:750;margin-bottom:8px}
.wx-det-g{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px}
.wx-det-r{font-size:13px;font-weight:650;display:flex;align-items:baseline;gap:6px}
.wx-det-r span{font-size:11.5px;color:var(--dim);font-weight:600}
.wx-when{color:#38BDF8;font-weight:750}
/* закреплённая погода в полоске кабинета: крупный «сейчас» (формат карточки вкладки, компактно) + часы 14:00/16:00 */
.wx-pinned{display:flex;align-items:center;gap:10px;width:100%;min-width:0}
.wxp-main{flex:1;min-width:0;display:flex;align-items:center;gap:9px}
.wxp-ico{font-size:30px;line-height:1;flex:none}
.wxp-d{min-width:0;line-height:1.22}
.wxp-t{font-size:21px;font-weight:800;letter-spacing:-.02em}
.wxp-desc{font-size:11.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wxp-sub{font-size:9.5px;color:var(--dim);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wxp-hrs{display:flex;gap:5px;flex:none}
.wxp-h{display:flex;flex-direction:column;align-items:center;gap:0;line-height:1.3;padding:3px 5px;border-radius:9px;cursor:pointer;transition:background .15s,box-shadow .15s}
.wxp-h:active{transform:scale(.95)}
.wxp-h.sel{background:rgba(56,189,248,.14);box-shadow:inset 0 0 0 1px rgba(56,189,248,.45)}
.wxp-h span:first-child{font-size:8.5px;color:var(--dim);font-weight:650}
.wxp-h .i{font-size:14px}
.wxp-h .v{font-size:10.5px;font-weight:750}
/* «Дата и время» — эстетичный экран: градиент-фон, крупные часы с мигающим двоеточием, чипы, прогресс дня */
.clk-card{position:relative;padding:26px 16px 16px;border-radius:20px;overflow:hidden;text-align:center;margin-top:8px;
  background:radial-gradient(130% 150% at 12% -25%, rgba(129,140,248,.30), transparent 55%),
             radial-gradient(130% 150% at 112% 125%, rgba(56,189,248,.24), transparent 55%),
             linear-gradient(160deg,#131a2e,#0a0e1b);
  border:1px solid rgba(255,255,255,.10);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 10px 30px rgba(0,0,0,.28)}
body.light .clk-card{background:radial-gradient(130% 150% at 12% -25%, rgba(129,140,248,.20), transparent 55%),
             radial-gradient(130% 150% at 112% 125%, rgba(56,189,248,.18), transparent 55%),
             linear-gradient(160deg,#f7f9ff,#e9eefb);
  border-color:rgba(28,40,80,.12);box-shadow:0 8px 24px rgba(30,50,110,.10)}
.clk-time{display:flex;align-items:baseline;justify-content:center;gap:5px;line-height:1;font-variant-numeric:tabular-nums}
.clk-time #clk-hm{font-size:58px;font-weight:800;letter-spacing:-.03em;
  background:linear-gradient(180deg,#ffffff 20%,#93a8d8);-webkit-background-clip:text;background-clip:text;color:transparent}
body.light .clk-time #clk-hm{background:linear-gradient(180deg,#1b2540 25%,#4f6396);-webkit-background-clip:text;background-clip:text;color:transparent}
.clk-time .c{animation:clkBlink 2s steps(2,jump-none) infinite}
@keyframes clkBlink{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){
  .clk-time .c, .sr-loading, .mk2.sel .mk-pulse, .evx-ring, .brief-mus-nm.marq .marq-in, .nv-emoji, #splash .sp-logo{animation:none!important}
}
/* a11y: iOS не зумит страницу при фокусе на инпут ≥16px (десктоп-плотность не трогаем — только iOS Safari) */
@supports(-webkit-touch-callout:none){ #city-input,#vote-text,.vf-input,.chat-input input{font-size:16px} }
/* тап-зоны ≥44px для мелких ОДИНОЧНЫХ кнопок закрытия/назад — визуальный размер не меняем, хит-зону расширяем ::after (у соседних-в-ряд не трогаем — риск перекрытия) */
.db-x,.st-back,.adm-x,.story-x,.docmodal-x,.chat-back{position:relative}   /* #search-close УБРАН — он уже position:absolute; тот же ID-вес перебивал absolute→relative → кнопка в поток, #search-wrap выше, лупа съезжала вниз */
.db-x::after,.st-back::after,#search-close::after,.adm-x::after,.story-x::after,.docmodal-x::after,.chat-back::after{content:'';position:absolute;inset:-10px}
/* светлая тема: очень мелкие подписи — более тёмный --dim2 для контраста на светлых карточках */
body.light .wx-src,body.light .clk-bar-lb,body.light .wxp-sub,body.light .am-ev-l{color:var(--dim2)}
.clk-time .s{font-size:22px;font-weight:750;color:#38BDF8;opacity:.9;min-width:30px;text-align:left}
.clk-date{font-size:14.5px;font-weight:700;margin-top:9px;letter-spacing:.01em}
.clk-date::first-letter{text-transform:uppercase}
.clk-chips{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:11px}
.clk-chip{font-size:10.5px;font-weight:650;color:var(--dim);padding:4px 10px;border-radius:999px;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.10)}
body.light .clk-chip{background:rgba(28,40,80,.06);border-color:rgba(28,40,80,.10)}
.clk-bar{height:5px;border-radius:99px;background:rgba(255,255,255,.09);margin-top:15px;overflow:hidden}
body.light .clk-bar{background:rgba(28,40,80,.10)}
.clk-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#38BDF8,#818CF8);transition:width 1s linear}
.clk-bar-lb{font-size:10.5px;color:var(--dim);margin-top:5px}   /* было 9.5px + opacity:.8 → ~3.5:1 в светлой; opacity убран */
/* рельс виджетов полоски: трек 3×100%, плавный доезд; .drag = тянется за пальцем без транзишена */
/* overflow:clip + clip-margin — обрезаем СОСЕДЕЙ (они на 100% ширины в стороне), но НЕ режем тени/свечение
   активного виджета (в пределах clip-margin). Фолбэк overflow:hidden для старых браузеров. */
#strip-account{position:relative;overflow:hidden;overflow:clip;overflow-clip-margin:20px;touch-action:none;padding-left:0;padding-right:0}
.strip-rail{display:flex;will-change:transform}   /* транзишена в покое НЕТ — включается инлайном только на доезд (_stripGo) */
.strip-cell{flex:0 0 100%;min-width:0;display:flex;flex-direction:column;justify-content:center;padding:0 16px;box-sizing:border-box;
  overflow:hidden;overflow:clip;overflow-clip-margin:20px}
/* точки-индикатор виджетов полоски (плеер · погода · часы) */
.strip-dots{position:absolute;left:50%;bottom:0;transform:translateX(-50%);display:flex;gap:4px}
.strip-dots span{width:12px;height:12px;border-radius:50%;cursor:pointer;position:relative}
.strip-dots span::after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:4px;height:4px;border-radius:50%;background:var(--dim);opacity:.35;transition:opacity .2s,background .2s}
.strip-dots span.on::after{background:var(--green);opacity:1;width:6px;height:6px;box-shadow:0 0 6px rgba(48,213,107,.55)}   /* активная точка — зелёная, чуть крупнее, с мягким свечением */
.strip-arr{position:absolute;top:50%;transform:translateY(-50%);width:26px;height:44px;display:flex;align-items:center;justify-content:center;
  border:none;background:none;color:var(--dim);font-size:22px;font-weight:600;cursor:pointer;opacity:.55;transition:opacity .15s;padding:0;z-index:2}
.strip-arr:active{opacity:1}
.strip-arr[disabled]{opacity:.12;pointer-events:none}
.strip-arr.l{left:0}
.strip-arr.r{right:0}
.clk-brief{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-width:0}
.clkb-t{font-size:27px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;flex:none}
.clkb-t .s{font-size:14px;color:var(--dim);font-weight:700}
.clkb-d{display:flex;flex-direction:column;line-height:1.3;min-width:0;font-size:12px;font-weight:650}
.clkb-d .w{color:var(--dim);font-size:10.5px}
.clkb-d .w::first-letter,.clkb-d span:last-child::first-letter{text-transform:uppercase}
.fav-mk{width:30px;height:30px;display:flex;align-items:center;justify-content:center;font-size:17px;color:#FFC400;
  background:rgba(20,26,36,.88);border:1.5px solid rgba(255,196,0,.65);border-radius:50%;box-shadow:0 3px 10px rgba(0,0,0,.4);text-shadow:0 1px 2px rgba(0,0,0,.5)}
body.light .fav-mk{background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.2)}
/* "Все" active → every category icon glows in its own colour */
#filter.all-on .f-fuel{color:#FF8A3D}
#filter.all-on .f-ev{color:#3ee27a}
#filter.all-on .f-gas{color:#22cdd6}
#filter.all-on .f-events{color:#FF6B76}
#filter.all-on .f-places{color:#6FAEFF}
#filter.all-on .f-fav{color:#FFC400}
/* the marker filter now lives inside the Map card's strip — it's naturally off-screen on other tabs (no hide needed) */
body.v-map .msheet-head{display:none}
body.v-map .msheet-list{padding-top:2px}

/* mobile drag pill at the top of the bottom sheet — pull up (folded) to expand, pull down (open) to collapse.
   Stays visible in BOTH states; it rides between the folded-bar top and just under the header. */
#sheet-grab{display:none}
@media(max-width:899px){
  /* compact grab handle: a short strip that lives ABOVE the strip content so its pill never overlaps the buttons below */
  #sheet-grab{display:block;position:fixed;left:0;right:0;z-index:705;height:14px;touch-action:none;cursor:grab;
    transition:top .42s cubic-bezier(.22,1,.36,1)}   /* ТА ЖЕ кривая, что у #header/#pane-station → доводка в лок-степ */
  /* грабер поднят на высоту шапки (64px) — сидит над ПОИСКОМ, на самом верху нижней панели */
  body.collapsed #sheet-grab{top:calc(100dvh - var(--nav-h) - 90px - var(--edge) - 64px - 2px)}   /* верхняя кромка шапки (свёрнуто) */
  body:not(.collapsed) #sheet-grab{top:calc(var(--top0) - 64px - 2px)}          /* верхняя кромка шапки (развёрнуто) */
  body.chatopen #sheet-grab, body.station #sheet-grab{display:none}     /* чат и карточка точки — цельные слайд-оверлеи, грабер скрыт */
  #sheet-grab::before{content:'';position:absolute;top:8px;left:50%;transform:translateX(-50%);
    width:28px;height:3px;border-radius:999px;background:rgba(255,255,255,.30);pointer-events:none;box-shadow:0 1px 2px rgba(0,0,0,.3)}
  body.light #sheet-grab::before{background:rgba(0,0,0,.26)}
  body.v-map:not(.collapsed) #filter{top:var(--top0)!important}   /* the strip is the window's FIRST section; the grab pill overlays its top edge (same as collapsed) */
}

#loader{display:none!important}
.spin{width:22px;height:22px;border:2.5px solid rgba(255,255,255,.14);border-top-color:var(--green);border-radius:50%;animation:spin .7s linear infinite}
/* first-paint splash */
#splash{position:fixed;inset:0;z-index:4000;background:var(--bg,#070708);display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:22px;transition:opacity .55s ease}
#splash.gone{opacity:0;pointer-events:none}
#splash .sp-logo{width:74px;height:74px;animation:spPulse 1.7s ease-in-out infinite;filter:drop-shadow(0 6px 18px rgba(51,218,75,.35))}
#splash .sp-logo svg{width:100%;height:100%}
#splash .sp-ring{width:28px;height:28px;border-radius:50%;border:3px solid rgba(51,218,75,.22);border-top-color:#33DA4B;animation:spin .8s linear infinite}
body.light #splash{background:#f4f6f9}
@keyframes spPulse{0%,100%{transform:scale(1);opacity:.92}50%{transform:scale(1.09);opacity:1}}

#map{position:fixed;top:72px;left:0;right:0;bottom:0;background:var(--bg)}
.maplibregl-map,.maplibregl-canvas{background:transparent!important}

.map-fab{position:fixed;right:16px;bottom:calc(28px + var(--safe-b));z-index:700;
  transition:right .42s cubic-bezier(.33,1,.68,1), left .42s cubic-bezier(.33,1,.68,1), bottom .42s cubic-bezier(.33,1,.68,1)}
.map-fab .hbtn{width:50px;height:50px;border-radius:17px;font-size:22px;
  background:rgba(19,19,21,.82);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.12);box-shadow:0 6px 20px rgba(0,0,0,.4)}

#zoom-hint{position:fixed;bottom:calc(28px + var(--safe-b));left:50%;z-index:600;
  transform:translateX(-50%) translateY(0) scale(1);
  background:var(--glass);-webkit-backdrop-filter:blur(22px) saturate(1.7);backdrop-filter:blur(22px) saturate(1.7);
  border:1px solid var(--glass-brd);border-radius:999px;box-shadow:0 12px 32px rgba(0,0,0,.34),inset 0 1px 0 var(--glass-hi);
  padding:9px 18px;font-size:13px;color:var(--dim2);pointer-events:none;
  transition:opacity .38s ease, transform .42s cubic-bezier(.22,1,.36,1);max-width:78vw;text-align:center}
#zoom-hint.hidden,#zoom-hint.suppressed{opacity:0;transform:translateX(-50%) translateY(12px) scale(.94)}
body.light #zoom-hint{box-shadow:0 12px 30px rgba(30,40,60,.15),inset 0 1px 0 var(--glass-hi)}

#toast{position:fixed;bottom:calc(94px + var(--safe-b));left:50%;transform:translateX(-50%) translateY(10px) scale(.98);
  background:var(--glass);-webkit-backdrop-filter:blur(22px) saturate(1.7);backdrop-filter:blur(22px) saturate(1.7);
  border:1px solid var(--glass-brd);border-radius:999px;box-shadow:0 14px 36px rgba(0,0,0,.4),inset 0 1px 0 var(--glass-hi);
  padding:11px 22px;font-size:14px;color:var(--text);font-weight:500;
  z-index:3000;pointer-events:none;opacity:0;transition:opacity .3s ease,transform .34s cubic-bezier(.22,1,.36,1);white-space:nowrap;max-width:88vw;text-align:center}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0) scale(1)}
body.light #toast{box-shadow:0 14px 34px rgba(30,40,60,.16),inset 0 1px 0 var(--glass-hi)}
/* drive-by prompt (navigator): report a station / event you pass close to */
#driveby{position:fixed;top:calc(72px + var(--safe-t,0px));left:12px;right:12px;z-index:1250;display:flex;align-items:center;gap:10px;
  padding:11px 12px;border-radius:18px;background:var(--glass);-webkit-backdrop-filter:blur(30px) saturate(1.7);backdrop-filter:blur(30px) saturate(1.7);
  border:1px solid var(--glass-brd);box-shadow:0 14px 44px rgba(0,0,0,.5),inset 0 1px 0 var(--glass-hi);
  transform:translateY(-170%);transition:transform .34s cubic-bezier(.33,1,.68,1)}
#driveby.on{transform:translateY(0)}
.db-ic{flex:none;width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:20px;background:rgba(255,255,255,.06)}
.db-txt{flex:1;min-width:0}
.db-t{font-size:14px;font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.db-q{font-size:12.5px;color:var(--dim)}
.db-btn{flex:none;border:none;font-family:inherit;font-size:13px;font-weight:700;padding:9px 13px;border-radius:12px;cursor:pointer}
.db-y{background:var(--green);color:#06210F}
.db-n{background:rgba(255,90,106,.18);color:#FF8A93}
.db-x{flex:none;width:26px;height:26px;border:none;background:none;color:var(--dim);cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center}
.db-x svg{width:15px;height:15px}
.db-x:active,.db-btn:active{transform:scale(.93)}
.db-ic-cam{background:none!important} .db-ic-cam svg{width:26px;height:23px}
@media(min-width:900px){ #driveby{left:auto;right:22px;width:380px} }
/* speed-camera map marker — red camera icon + speed badge bottom-right (half size, slightly transparent) */
.cam-mk{width:22px;height:19px;position:relative;opacity:.8;filter:drop-shadow(0 1px 3px rgba(0,0,0,.5))}
/* shops/parkings — small round chips (lighter than station pins, denser data) */
.poi-mk{width:24px;height:24px;border-radius:8px;background:var(--glass);border:1.5px solid var(--pc);
  display:flex;align-items:center;justify-content:center;font-size:13px;opacity:.92;
  box-shadow:0 2px 8px rgba(0,0,0,.4);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.cam-mk svg{width:22px;height:19px;display:block}
.cam-sp{position:absolute;bottom:-5px;right:-6px;background:#ED1C1C;color:#fff;font-size:8.5px;font-weight:800;line-height:1.55;
  border-radius:5px;padding:0 3px;min-width:13px;text-align:center;border:1px solid #fff;box-shadow:0 1px 2px rgba(0,0,0,.35)}

/* premium pins: QUIET by default (just a depth shadow) — the coloured glow lights up only on the SELECTED marker */
.mk2{position:relative;cursor:pointer;filter:drop-shadow(0 1px 3px rgba(0,0,0,.4));animation:mkIn .2s cubic-bezier(.34,1.3,.64,1) both;transition:filter .18s ease}
.mk-inner{position:relative;transform-origin:50% 100%;transition:transform .18s ease}
.mk2 svg{display:block;position:relative;z-index:1}
.mk-pulse{position:absolute;left:3px;top:0;width:40px;height:40px;border-radius:50%;border:2px solid var(--marker-color);display:none;pointer-events:none}
.mk-check{display:none}
.mk2.voted .mk-check{display:block}
.mk2.sel{z-index:9;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3)) drop-shadow(0 0 14px var(--marker-color))}
.mk2.sel .mk-inner{transform:scale(1.18) translateY(-3px)}
.mk2.sel .mk-pulse{display:block;animation:mkPulse 1.8s ease-out infinite}
@keyframes mkIn{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}
@keyframes mkPulse{0%{opacity:.5;transform:scale(.9)}70%,100%{opacity:0;transform:scale(1.7)}}
/* hide the built-in map attributions — surfaced via the "i" button instead */
.maplibregl-ctrl-attrib, .maplibregl-ctrl-bottom-right{display:none!important}
#attrib-btn{position:fixed;top:calc(16px + var(--safe-t,0px));right:16px;z-index:701;width:34px;height:34px;border-radius:50%;cursor:pointer;
  background:var(--glass);-webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);
  border:1px solid var(--glass-brd);color:var(--dim);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.4)}
#attrib-btn:active{transform:scale(.92)}
#attrib-btn svg{width:19px;height:19px}
#attrib-pop{position:fixed;top:calc(16px + var(--safe-t,0px));right:58px;z-index:701;height:34px;line-height:32px;
  max-width:0;overflow:hidden;white-space:nowrap;opacity:0;padding:0;border-radius:999px;pointer-events:none;
  background:var(--glass);-webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);
  border:1px solid var(--glass-brd);color:var(--dim);font-size:11px;box-shadow:0 6px 18px rgba(0,0,0,.4);
  transition:max-width .38s cubic-bezier(.22,1,.36,1), opacity .25s ease, padding .38s cubic-bezier(.22,1,.36,1)}
#attrib-pop.show{max-width:70vw;opacity:1;padding:0 14px;pointer-events:auto}
#attrib-pop a{color:var(--green)}
/* (удалены мёртвые .leaflet-control-zoom / .leaflet-popup-* / .marker-cluster — Leaflet удалён, этих DOM нет) */

/* bottom-sheet panel */
#overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.55);z-index:1500}
#overlay.show{display:block}
#panel{position:fixed;left:0;right:0;bottom:0;z-index:1600;background:#070708;
  border-radius:26px 26px 0 0;border-top:1px solid var(--border);
  transform:translateY(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);
  max-height:88vh;max-height:88dvh;display:flex;flex-direction:column;padding-bottom:var(--safe-b);
  box-shadow:0 -18px 50px rgba(0,0,0,.55)}
#panel.open{transform:translateY(0)}
#panel-drag{width:42px;height:5px;border-radius:999px;background:rgba(255,255,255,.2);margin:11px auto 3px;flex-shrink:0}
#panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:6px 18px 14px;border-bottom:1px solid var(--border);flex-shrink:0}
#panel-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;padding:4px 10px;border-radius:999px;margin-bottom:8px}
.badge-fuel{background:rgba(255,122,26,.16);color:#FFB27A}
.badge-ev{background:rgba(48,213,107,.16);color:#5bf0a0}
#panel-title{font-size:19px;font-weight:700;line-height:1.25}
#panel-brand{font-size:13px;color:var(--dim);margin-top:3px}
#panel-close{flex-shrink:0;width:34px;height:34px;border-radius:999px;background:var(--card);border:1px solid var(--border);
  color:var(--dim2);font-size:16px;display:flex;align-items:center;justify-content:center}
#panel-body{overflow-y:auto;overscroll-behavior:contain;padding:16px 16px 24px}
.info-row{display:flex;gap:10px;font-size:14px;padding:11px 0;border-bottom:1px solid var(--border)}
.info-row .k{color:var(--dim);flex-shrink:0;width:120px}
.info-row .v{color:var(--text)}
.conn{display:inline-flex;align-items:center;gap:5px;background:rgba(48,213,107,.1);border:1px solid rgba(48,213,107,.28);
  border-radius:11px;padding:5px 10px;font-size:12.5px;margin:4px 6px 0 0}
.conn .kw{color:var(--green);font-weight:700}
#panel-note{margin-top:16px;font-size:13px;color:var(--dim2);line-height:1.5;background:rgba(59,130,246,.07);
  border:1px solid rgba(59,130,246,.22);border-radius:16px;padding:14px 15px}

/* voting */
.vote-box{margin-top:18px}
.vote-q{font-size:15px;color:var(--dim2);margin-bottom:12px;font-weight:500}
.vbtns{display:flex;flex-direction:column;gap:10px}
.vbtn{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:15px 16px;border-radius:18px;
  background:var(--glass);-webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);
  border:1px solid var(--glass-brd);box-shadow:inset 0 1px 0 var(--glass-hi);color:var(--text);font-family:inherit;font-size:15px;font-weight:600;cursor:pointer;transition:transform .1s}
.vbtn:active{transform:scale(.98)}
.vbtn.sel-green{background:rgba(48,213,107,.14);border-color:rgba(48,213,107,.5);color:#5bf0a0}
.vbtn.sel-amber{background:rgba(255,196,0,.14);border-color:rgba(255,196,0,.5);color:#FFD84D}
.vbtn.sel-red{background:rgba(255,77,90,.14);border-color:rgba(255,77,90,.5);color:#FF8A93}
.cmt-box{margin-top:11px;display:none}.cmt-box.show{display:block}
#vote-text{width:100%;padding:12px 14px;background:var(--card);border:1px solid var(--border);border-radius:16px;color:#fff;font-family:inherit;font-size:15px;resize:none;min-height:64px}
#vote-text:focus{outline:none;border-color:rgba(48,213,107,.5)}
.vsubmit{margin-top:10px;width:100%;height:52px;background:var(--green);border:none;border-radius:16px;color:#06210F;font-family:inherit;font-size:16px;font-weight:700;box-shadow:0 6px 18px rgba(48,213,107,.28)}
.vsubmit:disabled{opacity:.5}
.voted-banner{margin-top:18px;padding:16px;background:var(--card);border:1px solid var(--border);border-radius:20px}
.voted-banner .lbl{font-size:12px;font-weight:700;color:var(--green);text-transform:uppercase;letter-spacing:.04em}
.voted-banner .st{font-size:20px;font-weight:800;margin-top:8px}
.vdel{margin-top:13px;width:100%;height:44px;background:rgba(255,255,255,.05);border:1px solid var(--border);border-radius:14px;color:var(--dim2);font-family:inherit;font-size:14px}
.votes-list{margin-top:22px}
.vt-title{font-size:20px;font-weight:700;margin-bottom:12px}
.vt{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:13px 15px;margin-bottom:9px}
.vt-head{display:flex;justify-content:space-between;gap:8px}
.vt-st{font-size:15px;font-weight:600}.vt-date{font-size:13px;color:var(--dim);font-variant-numeric:tabular-nums}
.vt-text{font-size:13.5px;color:var(--dim2);margin-top:5px;line-height:1.45}
/* ── станционные отзывы: оценка 5★ + комментарии ── */
.reviews-wrap{margin-top:22px}
.rv-title{font-size:15px;font-weight:800;margin-bottom:10px}
.rv-head{display:flex;align-items:center;gap:14px;background:var(--card);border:1px solid var(--border);border-radius:16px;padding:14px 16px}
.rv-avg-n{font-size:34px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;min-width:52px;text-align:center}
.rv-head-r{display:flex;flex-direction:column;gap:3px}
.rv-stars-lg{font-size:19px;letter-spacing:2px;line-height:1}
.rv-cnt{font-size:12.5px;color:var(--dim)}
.rv-star{color:rgba(255,255,255,.18)}
.rv-star.on{color:#FFC400}
body.light .rv-star{color:rgba(0,0,0,.15)}
body.light .rv-star.on{color:#F5A700}
.rv-compose{margin-top:12px;background:var(--card);border:1px solid var(--border);border-radius:16px;padding:14px 16px}
.rv-compose-t{font-size:13px;font-weight:700;color:var(--dim2);margin-bottom:8px}
.rv-picker{display:flex;gap:4px;margin-bottom:10px}
.rv-picker .rv-star{font-size:30px;line-height:1;background:none;border:none;padding:2px 3px;cursor:pointer;transition:transform .1s}
.rv-picker .rv-star:active{transform:scale(.85)}
.rv-input{width:100%;min-height:60px;resize:vertical;background:rgba(255,255,255,.05);border:1px solid var(--border);border-radius:12px;color:var(--text);font-family:inherit;font-size:14px;padding:10px 12px;outline:none}
.rv-input:focus{border-color:rgba(48,213,107,.5)}
body.light .rv-input{background:rgba(0,0,0,.04)}
.rv-acts{display:flex;gap:8px;margin-top:10px}
.rv-submit{flex:1;height:44px;border:none;border-radius:13px;background:var(--green);color:#06210F;font-family:inherit;font-size:14.5px;font-weight:700;cursor:pointer}
.rv-submit:disabled{opacity:.55}
.rv-remove{height:44px;padding:0 16px;border:none;border-radius:13px;background:rgba(255,90,106,.14);color:#FF8A93;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
body.light .rv-remove{color:#d5333f}
.rv-list{margin-top:14px;display:flex;flex-direction:column;gap:9px}
.rv-item{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:11px 14px}
.rv-item.mine{border-color:rgba(48,213,107,.4)}
.rv-item-h{display:flex;align-items:center;gap:8px;font-size:12.5px}
.rv-item-h .rv-stars-sm{font-size:13px;letter-spacing:1px}
.rv-who{font-weight:700;color:var(--text)}
.rv-ago{color:var(--dim);margin-left:auto}
.rv-text{font-size:13.5px;color:var(--dim2);margin-top:5px;line-height:1.45;overflow-wrap:anywhere}
.s-green{color:#5bf0a0}.s-amber{color:#FFD84D}.s-red{color:#FF8A93}
/* СВЕТЛАЯ ТЕМА: статус-цвета ТЕКСТА заданы ярко (под тёмный фон) → на белых карточках почти невидимы (зелёный #5bf0a0 давал ~1.46:1).
   Затемняем до читаемых (та же конвенция, что у .vf-chip/.vpick-btn: green #159a49, red #e23c4e). Цветные БЕЙДЖИ (.pic-badge*) держат тёмный текст на цветном фоне — восстанавливаем явно. */
body.light .s-green,body.light .nsub.s-green,body.light .ncell-sub.s-green,body.light .brief-nx-ic.s-green,body.light .ncell-ic.s-green{color:#0d7f38}
body.light .s-amber,body.light .nsub.s-amber,body.light .ncell-sub.s-amber,body.light .brief-nx-ic.s-amber,body.light .ncell-ic.s-amber{color:#8a6200}
body.light .s-red,body.light .nsub.s-red,body.light .ncell-sub.s-red,body.light .brief-nx-ic.s-red,body.light .ncell-ic.s-red{color:#d5333f}
body.light .pic-badge.s-green,body.light .pic-badge.s-amber{color:#06210F}
/* акцентный зелёный var(--green)=#30D56B как ТЕКСТ на светлых карточках ~1.94:1 → тот же #159a49 */
body.light .sr-dist,body.light .voted-banner .lbl,body.light .brief-line b,body.light .brief-nx-d,body.light .nv-route{color:#0d7f38}
/* crowd "picture" of a station's status */
.pic-wrap{margin-top:18px}
.pic{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:14px}
.pic-none{font-size:13px;color:var(--dim);padding:12px 2px}
.pic-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pic-badge{font-size:14px;font-weight:800;padding:5px 12px;border-radius:10px;color:#06210F}
.pic-badge.s-green{background:#30D56B}.pic-badge.s-amber{background:#FFC400}.pic-badge.s-red{background:#FF5A6A;color:#fff}
.pic-badge.s-none{background:rgba(255,255,255,.1);color:var(--dim2)}
body.light .pic-badge.s-none{background:rgba(0,0,0,.06)}
.pic-meta{font-size:12.5px;color:var(--dim);font-variant-numeric:tabular-nums}
.pic-bar{display:flex;gap:3px;height:12px;margin:12px 0 10px;border-radius:7px;overflow:hidden}
.pic-seg{display:block;border-radius:3px;min-width:8px}
.pic-seg.s-green{background:#30D56B}.pic-seg.s-amber{background:#FFC400}.pic-seg.s-red{background:#FF5A6A}
.pic-legend{display:flex;flex-wrap:wrap;gap:12px}
.pic-lg{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--dim2)}
.pic-lg b{color:var(--text)}
.pic-dot{width:10px;height:10px;border-radius:50%;flex:none}
.pic-dot.s-green{background:#30D56B}.pic-dot.s-amber{background:#FFC400}.pic-dot.s-red{background:#FF5A6A}
.pic-upd{font-size:11px;color:var(--dim);margin-top:10px}
.pic-upd2{font-size:11.5px;color:var(--dim)}
/* verdict line under the confidence chart */
.pic-verdict{text-align:center;font-size:20px;font-weight:800;letter-spacing:-.01em;margin:11px 0 2px}
.pic-verdict.v-yes{color:#5bf0a0} .pic-verdict.v-no{color:#FF8A93} .pic-verdict.v-unsure{color:var(--dim2)}
/* −1…0…+1 confidence chart */
.vchart2{display:block;width:100%;height:118px;color:var(--text)}
.vchart-ends{position:absolute;right:7px;top:8px;bottom:8px;display:flex;flex-direction:column;justify-content:space-between;
  font-size:10px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;pointer-events:none;opacity:.85}
.vchart-ends .ce-yes{color:#5bf0a0} .vchart-ends .ce-no{color:#FF8A93}
/* За/Против vote chart */
.vchart-wrap{position:relative;margin:12px 0 10px;color:var(--text)}
.vchart{display:block;width:100%;height:88px}
.vchart-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;
  font-size:12px;color:var(--dim);padding:0 16px;pointer-events:none}
/* binary vote picker (Работает / Не работает) */
.vote-q{font-size:16px;font-weight:700;margin:20px 0 12px}
.vpick{display:flex;gap:10px}
.vpick-btn{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;padding:16px 8px;border-radius:18px;cursor:pointer;
  font-family:inherit;font-size:15px;font-weight:700;color:var(--text);transition:all .16s;
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));
  border:1px solid rgba(255,255,255,.10);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
body.light .vpick-btn{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.7));border-color:rgba(0,0,0,.07);box-shadow:inset 0 1px 0 #fff}
.vpick-btn svg{width:26px;height:26px}
.vpick-btn.up{color:#5bf0a0}.vpick-btn.down{color:#FF8A93}
.vpick-btn span{color:var(--text)}
.vpick-btn.up:active,.vpick-btn.up.sel{background:linear-gradient(180deg,rgba(48,213,107,.24),rgba(48,213,107,.11));border-color:rgba(48,213,107,.5)}
.vpick-btn.down:active,.vpick-btn.down.sel{background:linear-gradient(180deg,rgba(255,90,106,.22),rgba(255,90,106,.10));border-color:rgba(255,90,106,.5)}
/* vote sub-form */
#vote-form{margin-top:14px;display:flex;flex-direction:column;gap:12px}
#vote-form:empty{margin-top:0}
.vf-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.vf-lb{font-size:13px;font-weight:600;color:var(--dim2);letter-spacing:.01em}
.vf-step{display:flex;align-items:center;gap:12px}
.vf-step button{width:38px;height:38px;border-radius:12px;border:1px solid var(--glass-brd);
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.04));box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
  color:var(--text);font-size:21px;font-family:inherit;cursor:pointer;line-height:1;transition:transform .1s,background .15s,border-color .15s}
.vf-step button:active{transform:scale(.9);background:rgba(48,213,107,.16);border-color:rgba(48,213,107,.4)}
.vf-step b{min-width:26px;text-align:center;font-size:19px;font-weight:800;font-variant-numeric:tabular-nums}
.vf-chips,.vf-reasons{display:flex;flex-wrap:wrap;gap:8px}
.vf-chip,.vf-rsn{border:1px solid var(--glass-brd);background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.03));color:var(--dim2);cursor:pointer;
  font-family:inherit;font-size:13.5px;font-weight:600;padding:9px 15px;border-radius:12px;transition:transform .1s,background .15s,border-color .15s,color .15s}
.vf-chip:active,.vf-rsn:active{transform:scale(.94)}
.vf-chip.on{background:linear-gradient(180deg,rgba(48,213,107,.24),rgba(48,213,107,.10));border-color:rgba(48,213,107,.55);color:#30D56B}
.vf-rsn.on{background:linear-gradient(180deg,rgba(255,90,106,.20),rgba(255,90,106,.08));border-color:rgba(255,90,106,.5);color:#FF5A6A}
.vf-input{width:100%;box-sizing:border-box;padding:12px 14px;border-radius:13px;border:1px solid var(--glass-brd);outline:none;
  background:rgba(255,255,255,.05);color:var(--text);font-family:inherit;font-size:14px;transition:border-color .15s,background .15s}
.vf-input::placeholder{color:var(--dim)}
.vf-input:focus{border-color:rgba(48,213,107,.55);background:rgba(48,213,107,.05)}
.vf-presets{display:flex;flex-wrap:wrap;gap:7px;margin-top:-2px}
.vf-pre{border:1px solid var(--glass-brd);background:rgba(255,255,255,.035);color:var(--dim);cursor:pointer;font-family:inherit;font-size:12px;font-weight:500;padding:7px 12px;border-radius:11px;transition:transform .1s,background .15s,color .15s}
.vf-pre:active{background:rgba(48,213,107,.14);color:var(--text);transform:scale(.95)}
body.light .vf-pre{background:rgba(0,0,0,.03)}
body.light .vf-pre:active{background:rgba(48,213,107,.13)}
body.light .vf-input,body.light .vf-step button,body.light .vf-chip,body.light .vf-rsn{background:rgba(0,0,0,.035)}
body.light .vf-chip.on{background:linear-gradient(180deg,rgba(48,213,107,.16),rgba(48,213,107,.06));border-color:rgba(48,213,107,.45);color:#159a49}
body.light .vf-rsn.on{background:linear-gradient(180deg,rgba(255,90,106,.14),rgba(255,90,106,.05));border-color:rgba(255,90,106,.5);color:#e23c4e}
.vsubmit{width:100%;height:48px;border:none;border-radius:14px;color:#06210F;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;
  background:linear-gradient(180deg,#38e074,#28c162);box-shadow:0 8px 22px rgba(48,213,107,.32);transition:transform .1s,filter .15s}
.vsubmit:hover{filter:brightness(1.05)}
.vsubmit:active{transform:scale(.98)}
.vsubmit:disabled{opacity:.6;box-shadow:none}
.voted-banner .st{display:flex;align-items:center;gap:8px}
.voted-banner .st svg{width:20px;height:20px}
.voted-acts{display:flex;gap:10px;margin-top:13px}
.vchg{flex:1;height:48px;background:rgba(255,255,255,.06);border:1px solid var(--glass-brd);border-radius:14px;color:var(--text);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s,transform .1s}
.vchg:active{transform:scale(.98);background:rgba(255,255,255,.1)}
body.light .vchg{background:rgba(0,0,0,.04)}
body.light .vchg:active{background:rgba(0,0,0,.07)}
.voted-acts .vdel{flex:1;margin-top:0}
.vt-st{display:inline-flex;align-items:center;gap:6px}.vt-st svg{width:15px;height:15px}
/* bottom actions: wide route button + the favourite square beside it */
.st-actions{margin-top:auto;padding-top:22px;display:flex;flex-direction:row;align-items:stretch;gap:10px}
.st-actions .route-btn{flex:1;width:auto;margin-top:0}
.st-actions .st-fav{margin-left:0;width:52px;height:48px;min-height:0;border-radius:14px;flex:none}
/* quick actions row (share / open in maps / copy coords) on every card */
.st-share{display:flex;gap:7px;margin-top:16px}
.stsh{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:9px 4px;
  border:1px solid var(--glass-brd);border-radius:13px;background:rgba(255,255,255,.045);color:var(--text);
  font-family:inherit;font-size:11px;font-weight:600;cursor:pointer;transition:background .2s}
.stsh:hover{background:rgba(255,255,255,.08)}.stsh:active{transform:scale(.95)}
.stsh svg{width:20px;height:20px;color:var(--dim)}
.stsh-lg{font-size:18px;font-weight:800;line-height:20px;height:20px}
.stsh span:last-child{color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
body.light .stsh{background:rgba(0,0,0,.035)}
/* "Работает" details modal */
.vmodal{position:fixed;inset:0;z-index:2600;display:flex;align-items:center;justify-content:center;padding:20px;
  background:rgba(0,0,0,.42);-webkit-backdrop-filter:blur(12px) saturate(1.2);backdrop-filter:blur(12px) saturate(1.2);opacity:0;transition:opacity .3s var(--ease-out)}
.vmodal.on{opacity:1}
.vmodal-card{width:100%;max-width:344px;border-radius:26px;padding:22px 20px 20px;display:flex;flex-direction:column;gap:14px;
  background:linear-gradient(180deg,rgba(34,36,42,.72),rgba(24,26,30,.66));-webkit-backdrop-filter:blur(34px) saturate(1.4);backdrop-filter:blur(34px) saturate(1.4);
  border:1px solid rgba(255,255,255,.10);box-shadow:0 30px 80px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.10);
  transform:translateY(18px) scale(.94);transition:transform .42s var(--spring)}
.vmodal.on .vmodal-card{transform:none}
body.light .vmodal-card{background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(247,249,252,.82));border-color:rgba(15,23,42,.08);box-shadow:0 30px 80px rgba(30,45,70,.2),inset 0 1px 0 #fff}
.vmodal-h{display:flex;align-items:center;gap:11px;margin-bottom:1px}
.vmodal-ic{width:36px;height:36px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#04140a;
  background:linear-gradient(135deg,#38e074,#28c162);box-shadow:0 7px 18px rgba(48,213,107,.38),inset 0 1px 0 rgba(255,255,255,.35)}
.vmodal-ic svg{width:21px;height:21px}
.vmodal-t{font-size:18.5px;font-weight:800;color:var(--text);letter-spacing:-.01em}
.vmodal-timer{font-size:12.5px;font-weight:600;color:#C98A00;text-align:center;
  background:linear-gradient(180deg,rgba(255,196,0,.15),rgba(255,196,0,.06));border:1px solid rgba(255,196,0,.28);padding:8px 12px;border-radius:12px}
.vmodal-timer.done{color:var(--green);background:linear-gradient(180deg,rgba(48,213,107,.15),rgba(48,213,107,.06));border-color:rgba(48,213,107,.3)}
.vmodal-acts{display:flex;gap:10px;margin-top:4px}
.vmodal-acts .vchg{flex:1}
.vmodal-acts .vsubmit{flex:1}   /* одинаковая ширина с «Отмена» */
/* 10s undo bar */
.vundo{position:fixed;left:50%;bottom:calc(var(--nav-h) + 16px);transform:translate(-50%,16px);z-index:2500;
  display:flex;align-items:center;gap:14px;padding:10px 10px 10px 18px;border-radius:16px;
  background:var(--glass);-webkit-backdrop-filter:blur(24px) saturate(1.5);backdrop-filter:blur(24px) saturate(1.5);
  border:1px solid var(--glass-brd);box-shadow:0 16px 42px rgba(0,0,0,.42),inset 0 1px 0 var(--glass-hi);opacity:0;transition:opacity .22s,transform .22s;max-width:calc(100% - 24px)}
body.light .vundo{box-shadow:0 16px 42px rgba(30,45,70,.18),inset 0 1px 0 rgba(255,255,255,.9)}
.vundo.on{opacity:1;transform:translate(-50%,0)}
.vundo-t{font-size:13.5px;font-weight:600;color:var(--text);white-space:nowrap}
.vundo-btn{flex:none;border:none;cursor:pointer;font-family:inherit;font-size:13.5px;font-weight:700;color:#06210F;
  background:linear-gradient(180deg,#38e074,#28c162);padding:10px 15px;border-radius:12px;display:inline-flex;align-items:center;gap:6px;
  box-shadow:0 6px 16px rgba(48,213,107,.32);transition:transform .1s,filter .15s}
.vundo-btn:hover{filter:brightness(1.05)}
.vundo-btn b{font-variant-numeric:tabular-nums;min-width:14px;text-align:center}
.vundo-btn:active{transform:scale(.96)}

/* ── gdebenz-style map screen: floating bar over full-height map + "Nearby" sheet ── */
#map{top:0}
#header{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:none;height:64px;z-index:700}
#filter{top:70px}
.fdot{width:8px;height:8px;border-radius:999px;flex-shrink:0}
.map-fab{bottom:calc(42dvh + 14px)}
#zoom-hint{bottom:calc(42dvh + 14px)}
#toast{bottom:calc(42dvh + 60px)}
.msheet{position:fixed;left:0;right:0;bottom:0;z-index:650;height:42dvh;
  background:rgba(18,18,20,.92);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
  border-top:1px solid rgba(255,255,255,.1);border-radius:26px 26px 0 0;box-shadow:0 -12px 40px rgba(0,0,0,.5);
  display:flex;flex-direction:column;padding-bottom:var(--safe-b)}
.msheet .drag{width:42px;height:5px;border-radius:999px;background:rgba(255,255,255,.22);margin:10px auto 4px;flex-shrink:0}
.msheet-head{display:flex;align-items:baseline;justify-content:space-between;padding:4px 18px 10px;flex-shrink:0}
.msheet-head h3{font-size:18px;font-weight:700;color:var(--text)}
.msheet-head .cnt{font-size:13px;color:var(--dim)}
.msheet-list{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 12px 14px}
/* sub-filters that open under a category (grade / availability / connector …) */
#subfilter{flex-shrink:0;display:none}
#subfilter.on{display:block;padding:14px 16px 12px;border-bottom:1px solid var(--border)}
.sfgroup{margin-top:11px}
.sflabel{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.7px;color:var(--dim);margin:0 0 8px 3px}
.sfchips{display:flex;gap:7px;overflow-x:auto;padding-bottom:3px;scrollbar-width:none}
.sfchips::-webkit-scrollbar{display:none}
.sfchip{flex:none}
.sfchip{border:1px solid var(--glass-brd);background:rgba(255,255,255,.06);color:#C3CAD6;border-radius:12px;
  padding:8px 15px;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;white-space:nowrap;line-height:1;
  transition:background .16s,color .16s,box-shadow .16s,transform .1s}
.sfchip:hover{background:rgba(255,255,255,.1)}
.sfchip:active{transform:scale(.95)}
.sfchip.on{background:var(--green);color:#04120a;border-color:transparent;box-shadow:0 4px 12px rgba(48,213,107,.32)}
body.light .sfchip{background:rgba(0,0,0,.04);color:#3a4453}
body.light .sfchip.on{background:var(--green);color:#04120a}
/* station cluster bubbles — wrap is positioned by MapLibre (no transition!), inner holds visuals */
.wf-cl-wrap{cursor:pointer;will-change:transform}
.wf-cluster{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:14px;font-weight:800;color:#fff;background:rgba(22,22,24,.9);border:2px solid var(--green);
  box-shadow:0 1px 5px rgba(0,0,0,.28),0 0 0 4px rgba(48,213,107,.14);backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);transition:transform .12s}
.wf-cl-wrap:hover .wf-cluster{transform:scale(1.08)}
body.light .wf-cluster{background:rgba(255,255,255,.92);color:#0f1723;box-shadow:0 1px 5px rgba(0,0,0,.12),0 0 0 4px rgba(48,213,107,.16)}
/* event markers */
.evmk{position:relative;width:38px;height:38px;border-radius:50% 50% 50% 3px;transform:rotate(45deg);
  background:var(--evc);box-shadow:0 4px 12px rgba(0,0,0,.45),0 0 0 3px rgba(255,255,255,.14)}
.evmk span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;transform:rotate(-45deg);font-size:18px}
/* report buttons + list */
.evrep{padding:14px 3px 10px}
.evrep-t{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--dim);margin:2px 2px 9px}
.evrep-sub{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--dim);margin:16px 2px 9px;
  padding-top:14px;border-top:1px solid var(--border)}   /* divider between event-type filters and basemap-label toggles */
.evrep-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
/* one restrained accent for the whole panel — no per-type rainbow */
:root{--faccent:#5FB58A}
.evbtn{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--glass-brd);border-radius:13px;min-width:0;
  background:rgba(255,255,255,.035);color:var(--text);font-family:inherit;font-size:12.5px;font-weight:600;text-align:left;cursor:pointer;
  transition:background .2s,border-color .2s;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}   /* long-press = solo filter → no text-selection / iOS callout */
.evbtn:active{transform:scale(.97)}
.evbtn:disabled{opacity:.45}
.evbtn.on{border-color:color-mix(in srgb,var(--faccent) 42%,transparent);background:color-mix(in srgb,var(--faccent) 11%,transparent)}
.evbtn .evi{width:31px;height:31px;flex-shrink:0;border-radius:9px;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px var(--glass-brd);color:var(--dim);transition:background .2s,color .2s,box-shadow .2s}
.evbtn.on .evi{background:color-mix(in srgb,var(--faccent) 20%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--faccent) 36%,transparent);
  color:color-mix(in srgb,var(--faccent) 60%,var(--text))}
.evbtn .evi svg{width:18px;height:18px;display:block}
.evbl{min-width:0;line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.evbtn-all{width:100%;margin-bottom:8px;padding:13px 13px;gap:11px;font-size:15px;font-weight:700}
.evbtn-all .evi{width:38px;height:38px;border-radius:11px}
.evbtn-all .evi svg{width:22px;height:22px}
.evbtn-all .evbl{-webkit-line-clamp:1}
body.light .evbtn .evi{background:rgba(0,0,0,.04)}
.evrep-hint{font-size:11.5px;color:var(--dim);margin:10px 2px 0;line-height:1.4}
.evcard .ndist{display:flex;align-items:center;gap:6px}
.evdel{border:none;background:rgba(255,77,90,.15);color:#FF6B76;width:22px;height:22px;border-radius:7px;font-size:12px;cursor:pointer;line-height:1}
body.light .evbtn{background:rgba(0,0,0,.03)}
/* centre crosshair for placing an event */
#ev-cross{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:600;pointer-events:none;display:none}
#ev-cross.on{display:block}
.evx-ring{position:absolute;left:50%;top:50%;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;
  border:2px solid var(--green);box-shadow:0 0 0 2px rgba(0,0,0,.35),0 0 14px rgba(48,213,107,.5);animation:evxp 1.8s ease-out infinite}
.evx-dot{position:absolute;left:50%;top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--green);box-shadow:0 0 8px rgba(48,213,107,.9)}
@keyframes evxp{0%{transform:scale(.8);opacity:.9}70%{transform:scale(1.25);opacity:.25}100%{transform:scale(.8);opacity:.9}}
/* event popup */
.evpop{min-width:150px}
.evpop-h{font-size:15px;font-weight:700;display:flex;align-items:center;gap:7px}
.evpop-n{font-size:13px;color:var(--text);margin-top:6px}
.evpop-a{font-size:12px;color:var(--dim);margin-top:5px}
.evpop-del{margin-top:9px;border:none;background:rgba(255,77,90,.15);color:#FF6B76;border-radius:9px;padding:6px 12px;font-size:12.5px;font-weight:600;cursor:pointer;font-family:inherit}
.ncard{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:11px 13px;border-radius:18px;
  background:var(--card);border:1px solid var(--border);color:var(--text);font-family:inherit;margin-bottom:9px}
.ncard:active{background:rgba(255,255,255,.05)}
.nic{width:44px;height:44px;border-radius:13px;display:flex;align-items:center;justify-content:center;font-size:19px;flex-shrink:0;background:rgba(255,255,255,.05)}
.nic.ni-green{background:rgba(48,213,107,.14);color:#5bf0a0}.nic.ni-amber{background:rgba(255,196,0,.14);color:#FFD84D}
.nic.ni-red{background:rgba(255,77,90,.14);color:#FF8A93}.nic.ni-none{background:rgba(255,255,255,.05)}
.ntx{flex:1;min-width:0;display:flex;flex-direction:column}
.nnm{font-size:15px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nsub{font-size:13px;color:var(--dim);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nsub.s-green{color:#5bf0a0}.nsub.s-amber{color:#FFD84D}.nsub.s-red{color:#FF8A93}
.ndist{font-size:13px;color:var(--dim);flex-shrink:0;font-variant-numeric:tabular-nums}
.ns-empty{padding:26px 16px;text-align:center;color:var(--dim);font-size:14px;line-height:1.5}
/* collapsed per-tab brief */
.brief-row{display:flex;align-items:baseline;justify-content:center;gap:6px}
.brief-big{font-size:27px;font-weight:800;color:var(--text);line-height:1;letter-spacing:-1px}
.brief-unit{font-size:13px;color:var(--dim);font-weight:600}
.brief-line{font-size:16px;font-weight:600;color:var(--text);text-align:center}
.brief-line b{color:var(--green)}
.brief-mus{display:flex;align-items:center;gap:10px;width:100%;min-width:0}
.brief-mus .mus-ctl{width:54px;height:54px}
.brief-mus .mus-ctl svg{width:26px;height:26px}
.brief-mus .mus-play{width:50px;height:50px;box-shadow:0 4px 16px rgba(48,213,107,.45)}
.brief-mus .mus-play svg{width:24px;height:24px}
.brief-mus .mus-seek{height:6px}
.brief-mus .mus-seek::-webkit-slider-thumb{width:16px;height:16px}
.brief-mus .mus-seek::-moz-range-thumb{width:16px;height:16px}
.brief-ava{width:44px;height:44px;flex-shrink:0;border-radius:50%;object-fit:cover;border:2px solid var(--glass-brd);padding:0}
.brief-ava-ini{display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;text-transform:uppercase;
  background:rgba(48,213,107,.15);color:var(--green)}
.brief-ava-guest{background:rgba(255,255,255,.06);color:var(--dim);cursor:pointer;display:flex;align-items:center;justify-content:center}
.brief-ava-guest svg{width:24px;height:24px}
.brief-ava-guest:active{transform:scale(.94)}
.brief-mus-now{flex:1;min-width:0;display:flex;flex-direction:column;gap:9px}
.brief-mus-nm{display:block;min-width:0;font-size:16.5px;font-weight:700;color:var(--text);text-align:left;
  white-space:nowrap;overflow:hidden}
.marq-in{display:inline-block;will-change:transform}
.brief-mus-nm.marq .marq-in{animation:marq var(--marq-d,12s) linear infinite}
@keyframes marq{
  0%,9%{transform:translateX(0)}
  44%,56%{transform:translateX(var(--marq,0))}
  91%,100%{transform:translateX(0)}
}
#nav-sub{display:none}   /* the nav placeholder text is replaced by the on-route list / hints */
/* collapsed navigator with an active route: next on-route station + end-route (✕) */
.brief-navroute{display:flex;align-items:center;gap:9px;width:100%;min-width:0}
.brief-nx{flex:1;min-width:0;display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:12px;cursor:pointer;text-align:left;
  background:var(--glass);-webkit-backdrop-filter:blur(14px) saturate(1.5);backdrop-filter:blur(14px) saturate(1.5);
  border:1px solid var(--glass-brd);box-shadow:inset 0 1px 0 var(--glass-hi);color:var(--text);font-family:inherit}
.brief-nx:active{transform:scale(.98)}
.brief-nx-msg{justify-content:center;color:var(--dim);font-size:13px;font-weight:600}
.brief-nx-ic{width:19px;height:19px;flex-shrink:0;color:var(--dim);display:inline-flex;align-items:center;justify-content:center}
.brief-nx-ic svg{width:100%;height:100%}
.brief-nx-ic.s-green{color:#37D07B}.brief-nx-ic.s-amber{color:#FFC400}.brief-nx-ic.s-red{color:#FF5A6A}
.brief-nx-nm{flex:1;min-width:0;font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brief-nx-d{font-size:12.5px;font-weight:700;color:var(--green);flex-shrink:0}
.brief-x{width:44px;height:44px;flex-shrink:0;border:none;border-radius:12px;cursor:pointer;font-size:18px;line-height:1;
  background:rgba(255,77,90,.14);color:#FF6B76;display:flex;align-items:center;justify-content:center}
.brief-x:active{transform:scale(.94)}
.brief-btn{display:block;width:100%;margin-top:7px;height:40px;border:none;border-radius:13px;background:var(--green);color:#06210F;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
.brief-btn:active{transform:scale(.98)}
.brief-btn2{display:block;width:100%;margin-top:7px;height:40px;border-radius:13px;color:var(--text);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;
  background:var(--glass);-webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);border:1px solid var(--glass-brd)}
.brief-btn2:active{transform:scale(.98)}
/* nearby markers as a 3-column grid */
.ngrid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;padding-top:2px;transition:opacity .18s ease}
.ngrid.swap{opacity:0}   /* whole list fades out, then the new batch fades in (no per-item popping) */
.ncell{display:flex;flex-direction:row;align-items:center;gap:9px;min-width:0;
  padding:12px 13px;border-radius:16px;color:var(--text);font-family:inherit;cursor:pointer;text-align:left;
  background:var(--glass);-webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);
  border:1px solid var(--glass-brd);box-shadow:inset 0 1px 0 var(--glass-hi);
  transition:opacity .28s ease, transform .28s cubic-bezier(.22,1,.36,1), border-color .16s}
.ncell:hover{border-color:rgba(255,255,255,.28)}
.ncell:active{transform:scale(.97)}
.ncell.entering{opacity:0; transform:translateY(8px) scale(.98)}   /* fade+slide in for newly-appearing stations */
.ncell.leaving{opacity:0; transform:scale(.94); pointer-events:none}   /* fade out for ones leaving the view */
.ncell-ic{width:19px;height:19px;flex-shrink:0;color:var(--dim);display:inline-flex;align-items:center;justify-content:center}
.ncell-ic svg{width:100%;height:100%}
.ncell-ic.s-green{color:#37D07B}.ncell-ic.s-amber{color:#FFC400}.ncell-ic.s-red{color:#FF5A6A}
.ncell-tx{flex:1;min-width:0;font-size:13.5px;font-weight:700;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ncell-d{flex-shrink:0;font-size:12px;font-weight:600;color:var(--dim2);text-align:right;font-variant-numeric:tabular-nums}
.ncell-sub.s-green{color:#5bf0a0}.ncell-sub.s-amber{color:#FFD84D}.ncell-sub.s-red{color:#FF8A93}
.ncell-d{font-size:10.5px;color:var(--dim2);font-variant-numeric:tabular-nums}
/* 600–899 ("phone frame"): the sheet, header and nav are all edge-inset+centered by the block near the top of
   this file — no per-.msheet override here (a stale left:0/right:0 rule made the sheet 16px wider than the nav). */

/* ── Full desktop layout (≥900px): full-width map + left list + right detail drawer ── */
@media(min-width:900px){
  html{background:var(--bg)!important}
  body{max-width:none!important;margin:0!important;transform:none!important;box-shadow:none!important}
  #header{left:0!important;width:100%!important;transform:none!important;height:64px;padding:0 20px;z-index:1200;
    background:rgba(9,9,10,.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid var(--border)}
  #search-wrap{flex:0 1 440px;margin-left:14px}
  .msheet{left:0!important;right:auto!important;width:360px!important;top:64px;bottom:0;height:auto!important;
    transform:none!important;border-radius:0;border-top:none;border-right:1px solid var(--border);box-shadow:none;z-index:800;padding-bottom:0;overflow:hidden}
  /* collapse by animating `bottom` (a concrete length) instead of height — height:auto can't transition, so the old
     rule snapped instantly. Now the panel grows/shrinks smoothly down to the strip, mirroring the station card. */
  body.collapsed .msheet{bottom:calc(100dvh - var(--top0) - var(--strip-h))!important;height:auto!important}
  .msheet-head{padding:14px 18px 12px}
  #map{left:360px!important;right:0!important;width:auto!important;top:64px;transform:none!important}
  #overlay{left:0!important;width:100%!important;top:64px;transform:none!important}
  /* filter now lives in the Map card's strip; give it the desktop left-aligned look */
  .card-strip #filter{padding:0 16px}
  .tabcard[data-view="map"] .card-strip{border-bottom:1px solid var(--border)}
  #zoom-hint{left:calc(50% + 180px);bottom:22px}
  #toast{left:calc(50% + 180px);bottom:34px}
  .map-fab{right:22px!important;bottom:26px}
  #panel{left:auto!important;right:0!important;top:64px;bottom:0;width:400px!important;height:auto;max-height:none;
    border-radius:0;border-top:none;border-left:1px solid var(--border);transform:translateX(100%)!important;box-shadow:none}
  #panel.open{transform:translateX(0)!important;box-shadow:-18px 0 50px rgba(0,0,0,.5)}
  #panel-drag{display:none}
}

/* ── ГдеБЕНЗ-style: map controls, bottom nav, sub-views, light theme ── */
:root{--nav-h:calc(58px + var(--safe-b)); --st-brief-h:var(--strip-h);   /* the collapsed station/place card peek = exactly the tab strip height, so it matches the folded menu */
  --edge:8px;                              /* mobile: inset every chrome panel by this so the windows "float" over the map (like the desktop card) */
  --top0:calc(64px + var(--edge)*2);       /* content top = just below the floating header (header top:edge, height 64, + edge gap) */
  --strip-h:90px}                          /* the always-visible top strip of every tab card (uniform across tabs) */
@media(min-width:900px){ :root{--strip-h:78px} }   /* desktop: slightly shorter strip so the collapsed filter/brief sits a bit higher (placed AFTER the global def to win) */
.mapctl{position:fixed;right:14px;z-index:700;display:flex;flex-direction:column;gap:8px;bottom:calc(var(--nav-h) + 41dvh + 12px);
  transition:right .42s cubic-bezier(.33,1,.68,1), left .42s cubic-bezier(.33,1,.68,1), top .42s cubic-bezier(.33,1,.68,1), bottom .42s cubic-bezier(.33,1,.68,1)}
.mbtn{width:44px;height:44px;border-radius:14px;border:1px solid var(--glass-brd);background:var(--glass);
  backdrop-filter:blur(22px) saturate(1.7);-webkit-backdrop-filter:blur(22px) saturate(1.7);color:#E8EAF0;font-size:20px;font-weight:600;font-family:inherit;
  display:flex;align-items:center;justify-content:center;box-shadow:0 8px 26px rgba(0,0,0,.42),inset 0 1px 0 var(--glass-hi)}
.mbtn:active{transform:scale(.94)}
/* combined zoom pill (+ / −) */
.zoompill{display:flex;flex-direction:column;border-radius:15px;overflow:hidden;border:1px solid var(--glass-brd);
  background:var(--glass);-webkit-backdrop-filter:blur(22px) saturate(1.7);backdrop-filter:blur(22px) saturate(1.7);
  box-shadow:0 8px 26px rgba(0,0,0,.42),inset 0 1px 0 var(--glass-hi);align-self:center}
.zbtn{width:46px;height:42px;border:none;background:none;color:#E8EAF0;font-size:23px;font-weight:600;font-family:inherit;
  display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .12s}
.zbtn:first-child{border-bottom:1px solid var(--glass-div)}
.zbtn:active{background:rgba(255,255,255,.1)}
body.light .zbtn{color:#1a2330}
body.light .zbtn:active{background:rgba(0,0,0,.06)}
/* compass: grab the wide outer ring to spin it (and the map); location button sits in the centre */
.compass{position:relative;width:88px;height:88px;border-radius:50%;align-self:center;touch-action:none;cursor:grab;
  background:var(--glass);-webkit-backdrop-filter:blur(22px) saturate(1.7);backdrop-filter:blur(22px) saturate(1.7);
  border:1px solid var(--glass-brd);box-shadow:0 8px 26px rgba(0,0,0,.42),inset 0 1px 0 var(--glass-hi)}
.compass:hover{border-color:rgba(255,255,255,.32)}
.compass:active{cursor:grabbing}
/* inner circle marks the boundary of the grabbable outer ring */
.compass::after{content:'';position:absolute;inset:12px;border-radius:50%;border:1px dashed var(--glass-div);pointer-events:none}
.cmp-ring{position:absolute;inset:0;border-radius:50%;pointer-events:none;transition:transform .1s ease-out}
.cmp-n{position:absolute;left:50%;top:6px;transform:translateX(-50%);width:0;height:0;
  border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:11px solid #FF3B30;
  filter:drop-shadow(0 0 3px rgba(255,59,48,.55))}
.cmp-s{position:absolute;left:50%;bottom:7px;transform:translateX(-50%);width:0;height:0;
  border-left:5px solid transparent;border-right:5px solid transparent;border-top:9px solid #98A2B0}
.cmp-geo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:50%;
  border:1px solid var(--glass-brd);background:rgba(255,255,255,.09);color:#E8EAF0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:transform .1s,background .16s,color .16s}
.cmp-geo svg{width:20px;height:20px;transform:translate(1px,1px)}
.cmp-geo:active{transform:translate(-50%,-50%) scale(.9)}
.cmp-geo.tracking{color:var(--green);border-color:rgba(48,213,107,.5)}
.cmp-geo.following{background:var(--green);color:#06210F;border-color:var(--green)}
body.light .cmp-geo{color:#1a2330;background:rgba(0,0,0,.05)}
/* account-pane settings (theme + language moved here) */
.acct-set{margin:18px auto 0;max-width:300px;display:flex;flex-direction:column;gap:10px}
.acct-set-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:14px;
  background:var(--card);border:1px solid var(--border)}
.acct-set-row span{font-size:14px;color:var(--text)}
.set-seg{display:flex;border:1px solid var(--glass-brd);border-radius:10px;overflow:hidden}
.set-seg button{border:none;background:none;color:var(--dim);font-family:inherit;font-size:13px;font-weight:600;
  padding:7px 13px;cursor:pointer;transition:background-color .28s var(--ease-out),color .2s var(--ease-out)}
.set-seg button:active{transform:scale(.97)}
.set-seg button.on{background:var(--green);color:#04120a}
/* raster-fallback readability boost (dark theme uses the vector basemap instead) */
/* navigator: tilt the map into a heading-up perspective */
/* navigator uses the map's real perspective (native pitch+bearing) — no CSS transforms.
   markers stay quiet here too (glow = selection only); a stronger depth shadow keeps them readable on the tilted ground */
body.navmode .mk2{filter:drop-shadow(0 2px 5px rgba(0,0,0,.55))!important}
body.navmode .mk2.sel{filter:drop-shadow(0 2px 4px rgba(0,0,0,.3)) drop-shadow(0 0 14px var(--marker-color))!important}
.nav-ic{pointer-events:none}
.nav-mk{width:42px;height:42px;filter:drop-shadow(0 1px 3px rgba(0,0,0,.3));
  transform:scale(var(--nav-mk-scale,1));transform-origin:center center;transition:transform .12s linear}
.nav-mk svg{width:42px;height:42px;display:block}
.nav-mk-car{width:58px;height:58px;filter:drop-shadow(0 2px 5px rgba(0,0,0,.5))}
.nav-mk-car img{width:100%;height:100%;object-fit:contain;display:block;user-select:none;-webkit-user-drag:none}
#nav-live{padding:8px 4px 6px;text-align:center}
.nv-speed{display:flex;align-items:baseline;justify-content:center;gap:6px}
.nv-num{font-size:46px;font-weight:800;color:var(--text);line-height:1;letter-spacing:-1px}
.nv-unit{font-size:14px;color:var(--dim);font-weight:600}
.nv-acc{font-size:12px;color:var(--dim);margin-top:5px}
.nv-hint{color:var(--dim);font-size:14px;text-align:center;padding:16px 8px;line-height:1.45}
.nv-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:34px 22px}
.nv-emoji{font-size:56px;line-height:1;filter:drop-shadow(0 8px 16px rgba(0,0,0,.4));animation:nvBob 2.4s ease-in-out infinite}
.nv-car{width:158px;height:auto;display:block;user-select:none;-webkit-user-drag:none}
@keyframes nvBob{0%,100%{transform:translateY(0) rotate(-1.5deg)}50%{transform:translateY(-7px) rotate(1.5deg)}}
.nv-empty-t{color:var(--dim2);font-size:14px;line-height:1.5;max-width:260px;margin:0}
.nv-btn{display:block;width:calc(100% - 8px);margin:12px auto 0;text-align:center;background:var(--green)!important;color:#06210F!important}
.nv-btn2{display:block;width:calc(100% - 8px);margin:8px auto 0;border:1px solid var(--glass-brd);
  background:var(--glass);-webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);box-shadow:inset 0 1px 0 var(--glass-hi);
  color:var(--text);font-family:inherit;font-size:14px;font-weight:600;padding:12px;border-radius:14px;cursor:pointer;transition:transform .1s}
.nv-btn2:active{transform:scale(.98)}
.nv-route{text-align:center;font-size:16px;font-weight:700;color:var(--green);margin-top:10px}
/* (удалён мёртвый .rt-mode car/walk toggle — режим выбирается на этапе вариантов) */
/* route variants (после выбора точки): экономный / кратчайший / быстрый / пешком + «Поехали» */
.rt-vars{display:flex;flex-direction:column;gap:7px;margin-top:4px}
.rt-var{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border-radius:13px;cursor:pointer;text-align:left;
  background:var(--glass);-webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);
  border:1px solid var(--glass-brd);box-shadow:inset 0 1px 0 var(--glass-hi);color:var(--text);font-family:inherit;transition:transform .1s,border-color .16s,background .16s}
.rt-var:active{transform:scale(.98)}
.rt-var.sel{border-color:color-mix(in srgb,var(--green) 55%,transparent);background:color-mix(in srgb,var(--green) 12%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--green) 30%,transparent)}
.rt-var-ic{flex:none;width:34px;height:34px;display:flex;align-items:center;justify-content:center;font-size:18px;border-radius:10px;background:rgba(255,255,255,.06)}
.rt-var.sel .rt-var-ic{background:color-mix(in srgb,var(--green) 20%,transparent)}
body.light .rt-var-ic{background:rgba(0,0,0,.05)}
.rt-var-nm{flex:1;min-width:0;font-size:14px;font-weight:700}
.rt-var-d{flex:none;font-size:12.5px;font-weight:700;color:var(--dim)}
.rt-var.sel .rt-var-d{color:var(--green)}
.rt-gobig{display:flex;align-items:center;justify-content:center;gap:8px;width:calc(100% - 8px);margin:12px auto 0;padding:14px;border:none;border-radius:15px;
  background:var(--green);color:#06210F;font-family:inherit;font-size:16px;font-weight:800;letter-spacing:-.01em;cursor:pointer;box-shadow:0 8px 24px color-mix(in srgb,var(--green) 40%,transparent);transition:transform .1s}
.rt-gobig:active{transform:scale(.98)}
.nv-arr{color:var(--dim);font-weight:600}
/* route action buttons (share / open in external navigation) */
.nv-acts{display:flex;gap:7px;margin-top:10px}
.nv-act{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 4px;border:1px solid var(--glass-brd);
  border-radius:13px;background:rgba(255,255,255,.045);color:var(--dim);font-family:inherit;font-size:11px;font-weight:600;cursor:pointer;transition:background .2s}
.nv-act:hover{background:rgba(255,255,255,.08)}.nv-act:active{transform:scale(.96)}
.nv-act svg{width:19px;height:19px}
.nv-act span:last-child{color:var(--dim)}
body.light .nv-act{background:rgba(0,0,0,.035)}
/* stations along the route */
.rt-stops-t{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--dim);margin:16px 4px 8px}
.rt-stops{display:flex;flex-direction:column;gap:7px}
.rt-stop{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border-radius:13px;cursor:pointer;text-align:left;
  background:var(--glass);-webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);
  border:1px solid var(--glass-brd);box-shadow:inset 0 1px 0 var(--glass-hi);color:var(--text);font-family:inherit;transition:transform .1s,border-color .16s}
.rt-stop:active{transform:scale(.98)}
.rt-stop.next{border-color:rgba(48,213,107,.5);box-shadow:0 0 0 1px rgba(48,213,107,.25),inset 0 1px 0 var(--glass-hi)}
.rt-stop-ic{width:20px;height:20px;flex-shrink:0;color:var(--dim);display:inline-flex;align-items:center;justify-content:center}
.rt-stop-ic svg{width:100%;height:100%}
.rt-stop-ic.s-green{color:#37D07B}.rt-stop-ic.s-amber{color:#FFC400}.rt-stop-ic.s-red{color:#FF5A6A}
.rt-stop-nm{flex:1;min-width:0;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-stop-d{font-size:13px;font-weight:700;color:var(--dim);flex-shrink:0}
.rt-stop.next .rt-stop-d{color:var(--green)}
.dest-mk{width:38px;height:38px;filter:drop-shadow(0 0 6px rgba(255,77,90,.5)) drop-shadow(0 1px 2px rgba(0,0,0,.28))}
.dest-mk.pt-mk{filter:drop-shadow(0 0 7px rgba(48,213,107,.6)) drop-shadow(0 1px 2px rgba(0,0,0,.32))}   /* зелёная брошенная метка — зелёное свечение + тёмная тень, не красная */
.dest-mk svg{width:38px;height:44px;display:block}
#geo-btn.tracking{color:var(--green);border-color:rgba(48,213,107,.5)}
#geo-btn.following{background:var(--green);color:#06210F;border-color:var(--green);box-shadow:0 0 0 3px rgba(48,213,107,.25),0 6px 18px rgba(0,0,0,.4)}
/* live location marker */
.geo-ic{pointer-events:none}
.geo-dot{position:relative;width:28px;height:28px}
.geo-dot .gd-core{position:absolute;left:50%;top:50%;width:16px;height:16px;transform:translate(-50%,-50%);
  border-radius:50%;background:var(--green);border:2.5px solid #fff;box-shadow:0 0 0 1.5px rgba(0,0,0,.18)}
.geo-dot .gd-beam{position:absolute;left:50%;bottom:50%;width:30px;height:22px;transform:translateX(-50%);
  background:linear-gradient(to top,rgba(48,213,107,.55),rgba(48,213,107,0));clip-path:polygon(50% 100%,0 0,100% 0)}
/* .msheet geometry is fully defined by the mobile (<900) and desktop (≥900) blocks — no stale global override */
#zoom-hint{bottom:calc(var(--nav-h) + 41dvh + 12px)}
#toast{bottom:calc(var(--nav-h) + 41dvh + 58px)}
#botnav{position:fixed;left:0;right:0;bottom:0;z-index:1350;height:var(--nav-h);padding-bottom:var(--safe-b);
  display:flex;background:rgba(9,9,10,.96);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-top:1px solid var(--border)}
/* ── draggable nav pill: a glass oval under the active tab; grab it and slide — the tab screens follow like a slider ── */
#botnav{touch-action:none}
#nav-pill{position:absolute;top:7px;height:44px;width:64px;left:0;border-radius:999px;z-index:0;pointer-events:none;opacity:0;
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.05));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10), inset 0 1px 0 rgba(255,255,255,.14);
  transition:transform .34s cubic-bezier(.33,1,.68,1), width .34s cubic-bezier(.33,1,.68,1), opacity .25s ease}
#nav-pill.ready{opacity:1}
body.light #nav-pill{background:linear-gradient(180deg,rgba(0,0,0,.06),rgba(0,0,0,.03));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}
body.navdrag #nav-pill{transition:none}
/* the tab rail slides during a pill drag (see #srail / body.navdrag #srail above) — no ghosts, no buffers */
.navbtn{position:relative;z-index:1;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:none;background:none;
  color:var(--dim);font-family:inherit;font-size:10px;font-weight:600;letter-spacing:.005em;cursor:pointer;transition:color .18s}
.navbtn{transition:color .22s var(--ease-out)}
.navbtn.on{color:var(--green)}
.navbtn svg{transition:transform .38s var(--spring)}
.navbtn.on svg{transform:scale(1.12)}   /* active tab icon lifts a touch — subtle iOS emphasis */
.navbtn .nic-svg{font-size:19px;line-height:1}
.navbtn svg{width:21px;height:21px}
.navbtn .nlab{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
/* account pane */
.acct{display:flex;flex-direction:column;align-items:center;text-align:center;padding:26px 18px;gap:12px}
.acct-ic{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:rgba(48,213,107,.15);color:var(--green)}
.acct-ic svg{width:30px;height:30px}
.acct-h{font-size:19px;font-weight:700;color:var(--text)}
.acct-t{font-size:14px;color:var(--dim);line-height:1.5;max-width:280px}
.acct-btn{margin-top:4px;border:none;background:#2AABEE;color:#fff;font-family:inherit;font-size:15px;font-weight:600;
  padding:12px 22px;border-radius:14px;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.acct-btn:active{transform:scale(.97)}
.acct-photo{width:66px;height:66px;border-radius:50%;object-fit:cover;border:2px solid var(--glass-brd);box-shadow:0 4px 14px rgba(0,0,0,.4)}
.acct-ini{font-size:26px;font-weight:800;text-transform:uppercase}
.acct-note{font-size:12px;color:var(--dim)}
.tg-login{margin-top:6px;min-height:44px;display:flex;justify-content:center}
.acct-hero{display:flex;flex-direction:row;align-items:center;gap:16px;max-width:none;margin:0 auto;padding:20px 4px 8px;text-align:left}
.acct-hero .hero-txt{min-width:0;display:flex;flex-direction:column;gap:2px}
.acct-hero .acct-h{font-size:22px;line-height:1.15}
.acct-hero .acct-t{max-width:none}
.hero-add{margin-left:auto;flex:none;width:44px;height:52px;border:none;background:none;padding:0;cursor:pointer;
  display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 3px 9px rgba(48,213,107,.45));transition:transform .12s ease}
.hero-add svg{width:100%;height:100%;display:block}
.hero-add:hover{transform:translateY(-1px)}
.hero-add:active{transform:scale(.9)}
/* add-marker modal */
.am-card{gap:11px}
.am-menu{display:flex;flex-direction:column;gap:9px}
.am-opt{display:flex;align-items:center;gap:12px;width:100%;padding:13px;border:none;border-radius:15px;cursor:pointer;
  font-family:inherit;text-align:left;background:rgba(255,255,255,.05);color:var(--text)}
body.light .am-opt{background:rgba(0,0,0,.035)}
.am-opt:active{transform:scale(.99)}
.am-ic{width:44px;height:44px;flex:none;border-radius:13px;display:flex;align-items:center;justify-content:center;font-size:23px}
.am-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.am-tx b{font-size:15px;font-weight:700}
.am-tx span{font-size:12px;color:var(--dim)}
.am-back{align-self:flex-start;border:none;background:none;color:var(--dim);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;padding:0}
.am-hint{font-size:12.5px;color:var(--dim);line-height:1.4;margin:0}
.am-evgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px}
.am-ev{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border:1px solid var(--glass-brd);border-radius:13px;
  background:rgba(255,255,255,.04);color:var(--text);font-family:inherit;cursor:pointer}
.am-ev-i{font-size:22px}
.am-ev-l{font-size:9.5px;color:var(--dim);text-align:center;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.am-ev.on{border-color:var(--evc);background:color-mix(in srgb,var(--evc) 20%,transparent)}
.am-kinds{display:flex;gap:9px}
.am-kind{flex:1;padding:11px;border:1px solid var(--glass-brd);border-radius:12px;background:rgba(255,255,255,.04);color:var(--text);
  font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.am-kind.on{border-color:var(--green);background:rgba(48,213,107,.15);color:#5bf0a0}
.acct-logout{display:block;margin:14px auto 4px;color:var(--dim);
  background:color-mix(in srgb, var(--glass) 45%, transparent);
  -webkit-backdrop-filter:blur(24px) saturate(1.6);backdrop-filter:blur(24px) saturate(1.6);
  border:1px solid var(--glass-brd);box-shadow:inset 0 1px 0 var(--glass-hi);
  font-family:inherit;font-size:13.5px;font-weight:600;padding:13px 22px;border-radius:16px;cursor:pointer;max-width:none;width:100%}
.acct-logout:hover{color:#FF6B6B}
/* ── Admin panel ── */
.acct-admin-btn{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px auto 0;border:1px solid rgba(239,68,68,.35);
  background:rgba(239,68,68,.10);-webkit-backdrop-filter:blur(24px) saturate(1.6);backdrop-filter:blur(24px) saturate(1.6);
  box-shadow:0 10px 30px rgba(239,68,68,.10), inset 0 1px 0 rgba(255,255,255,.10);
  color:#FF8A8A;font-family:inherit;font-size:14px;font-weight:700;padding:13px 22px;border-radius:18px;cursor:pointer;max-width:none;width:100%}
.acct-admin-btn:active{transform:scale(.98)}
.admin-badge{background:#EF4444;color:#fff;font-size:11px;font-weight:800;border-radius:9px;padding:1px 7px}
#admin-modal{position:fixed;inset:0;z-index:2700;display:flex;align-items:flex-end;justify-content:center;
  background:rgba(5,5,6,.5);-webkit-backdrop-filter:blur(12px) saturate(1.2);backdrop-filter:blur(12px) saturate(1.2);opacity:0;transition:opacity .3s var(--ease-out)}
#admin-modal.on{opacity:1}
.adm-card{width:100%;max-width:560px;max-height:92dvh;display:flex;flex-direction:column;border-radius:24px 24px 0 0;overflow:hidden;
  background:var(--glass);-webkit-backdrop-filter:blur(34px) saturate(1.7);backdrop-filter:blur(34px) saturate(1.7);
  border:1px solid var(--glass-brd);box-shadow:0 -20px 60px rgba(0,0,0,.5),inset 0 1px 0 var(--glass-hi);
  transform:translateY(100%);transition:transform .44s cubic-bezier(.32,1.08,.42,1)}
#admin-modal.on .adm-card{transform:translateY(0)}
@media(min-width:600px){ #admin-modal{align-items:center} .adm-card{border-radius:24px;max-height:86dvh;transform:translateY(22px) scale(.96);transition:transform .42s var(--spring)} #admin-modal.on .adm-card{transform:none} }
.adm-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 12px;flex-shrink:0;border-bottom:1px solid var(--glass-div)}
.adm-title{font-size:18px;font-weight:800;color:var(--text)}
.adm-x{width:32px;height:32px;border:none;background:rgba(255,255,255,.08);color:var(--text);border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center}
.adm-x svg{width:16px;height:16px}
.adm-tabs{display:flex;gap:6px;overflow-x:auto;padding:12px 16px 4px;flex-shrink:0;scrollbar-width:none}
.adm-tabs::-webkit-scrollbar{display:none}
.adm-tab{flex:none;border:none;cursor:pointer;font-family:inherit;font-size:13px;font-weight:600;color:var(--dim);background:rgba(255,255,255,.06);padding:8px 14px;border-radius:12px}
.adm-tab.on{color:#06210F;background:var(--green)}
.adm-body{flex:1;min-height:0;overflow-y:auto;padding:14px 16px 22px}
.adm-alerts{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}
.adm-alert{padding:11px 14px;border-radius:13px;font-size:13.5px;font-weight:600}
.adm-alert.a-warn{background:rgba(255,196,0,.14);color:#FFD84D}.adm-alert.a-info{background:rgba(138,180,255,.14);color:#8AB4FF}
.adm-alert.a-ok{background:rgba(48,213,107,.12);color:#5bf0a0}
.adm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.adm-stat{background:rgba(255,255,255,.05);border:1px solid var(--glass-div);border-radius:15px;padding:13px 10px;text-align:center}
.adm-stat-v{font-size:22px;font-weight:800;color:var(--text);line-height:1.1}
.adm-stat-l{font-size:11px;color:var(--dim);margin-top:3px}
.adm-sub{font-size:13px;font-weight:700;color:var(--dim);margin:18px 2px 8px}
.adm-list{display:flex;flex-direction:column;gap:2px}
.adm-li{font-size:13.5px;color:var(--text);padding:6px 2px;border-bottom:1px solid var(--glass-div)}
.adm-dim{color:var(--dim);font-size:12px}
.adm-mod{display:flex;align-items:center;gap:10px;padding:12px 4px;border-bottom:1px solid var(--glass-div)}
.adm-mod-main{flex:1;min-width:0;font-size:14px;color:var(--text);line-height:1.4;overflow-wrap:anywhere}
.adm-mod-btns{display:flex;gap:6px;flex-shrink:0}
.adm-tag{display:inline-block;font-size:11px;font-weight:700;background:rgba(255,255,255,.1);color:var(--dim);padding:2px 8px;border-radius:8px;vertical-align:middle}
.adm-tag.s-green{background:rgba(48,213,107,.18);color:#5bf0a0}.adm-tag.s-red{background:rgba(255,90,106,.18);color:#FF8A93}
.adm-ok{border:none;background:var(--green);color:#06210F;font-family:inherit;font-size:13px;font-weight:700;padding:9px 13px;border-radius:11px;cursor:pointer;white-space:nowrap}
.adm-no{border:none;background:rgba(255,90,106,.16);color:#FF8A93;font-family:inherit;font-size:14px;font-weight:700;padding:9px 12px;border-radius:11px;cursor:pointer}
.adm-empty{text-align:center;color:var(--dim);font-size:14px;padding:34px 12px}
/* ── unified liquid-glass accordion cabinet (no borders) ── */
/* Telegram-style grouped settings: liquid-glass container holding rows split by dividers */
.ac-group{max-width:none;margin:16px auto 0;border-radius:20px;overflow:hidden;
  background:var(--glass);background:color-mix(in srgb, var(--glass) 58%, transparent);   /* more see-through than the base glass */
  -webkit-backdrop-filter:blur(30px) saturate(1.7);backdrop-filter:blur(30px) saturate(1.7);
  border:1px solid var(--glass-brd);
  box-shadow:0 10px 34px rgba(0,0,0,.28), inset 0 1px 0 var(--glass-hi)}
body.light .ac-group{box-shadow:0 10px 30px rgba(30,40,60,.10), inset 0 1px 0 var(--glass-hi)}
.ac-row + .ac-row .ac-head{border-top:1px solid var(--glass-brd)}
.ac-head{display:flex;align-items:center;gap:13px;width:100%;padding:14px 16px;border:none;background:none;cursor:pointer;
  font-family:inherit;text-align:left;color:var(--text)}
.ac-head:active{background:rgba(255,255,255,.04)}
body.light .ac-head:active{background:rgba(0,0,0,.03)}
/* monochrome premium chips: neutral glass square + single silver line icon (no colour patches) */
.ac-ic{width:30px;height:30px;flex:none;border-radius:9px;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.07);color:#D7DADF;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10), inset 0 1px 0 rgba(255,255,255,.14)}
.ac-ic svg{width:16.5px;height:16.5px}
body.light .ac-ic{background:rgba(0,0,0,.05);color:#3E4652;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.6)}
.ac-title{flex:1;min-width:0;font-size:15.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-val{font-size:13.5px;color:var(--dim);white-space:nowrap;max-width:44%;overflow:hidden;text-overflow:ellipsis}
.ac-chev{width:19px;height:19px;flex:none;color:var(--dim);transition:transform .3s cubic-bezier(.22,1,.36,1)}
.ac-row.open .ac-chev{transform:rotate(180deg)}
.ac-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .36s cubic-bezier(.22,1,.36,1)}
.ac-row.open .ac-body{grid-template-rows:1fr}
.ac-row.open + .ac-row .ac-head{border-top-color:transparent}
.ac-inner{overflow:hidden;min-height:0;padding:0 14px;transition:padding .36s cubic-bezier(.22,1,.36,1)}
.ac-row.open .ac-inner{padding:2px 14px 14px}
/* nav-marker chooser cards */
.nm-grid{display:flex;gap:9px}
.nm-card{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;padding:11px 6px;border-radius:14px;cursor:pointer;
  border:1px solid rgba(255,255,255,.09);color:var(--text);font-family:inherit;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.04));box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
body.light .nm-card{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.7));border-color:rgba(0,0,0,.06);box-shadow:inset 0 1px 0 #fff}
.nm-card.on{border-color:var(--green);background:rgba(48,213,107,.14)}
.nm-prev{width:46px;height:46px;display:flex;align-items:center;justify-content:center}
.nm-prev img{max-width:100%;max-height:100%;object-fit:contain}
.nm-prev svg{width:34px;height:34px}
.nm-lbl{font-size:12.5px;font-weight:600}
/* invite card (always-open glass) */
.inv-card{max-width:none;margin:12px auto 0;padding:15px 16px;border-radius:20px;
  background:var(--glass);background:color-mix(in srgb, var(--glass) 58%, transparent);
  -webkit-backdrop-filter:blur(30px) saturate(1.7);backdrop-filter:blur(30px) saturate(1.7);
  border:1px solid var(--glass-brd);
  box-shadow:0 10px 34px rgba(0,0,0,.28), inset 0 1px 0 var(--glass-hi)}
body.light .inv-card{box-shadow:0 10px 30px rgba(30,40,60,.10), inset 0 1px 0 var(--glass-hi)}
.inv-lb{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--dim);margin-bottom:9px}
/* rating activity list inside the rank accordion */
.rk-list{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.rk-item{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
body.light .rk-item{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.7));border-color:rgba(0,0,0,.06);box-shadow:inset 0 1px 0 #fff}
.rk-ic{font-size:18px;flex:none}
.rk-nm{flex:1;min-width:0;font-size:13.5px;color:var(--text)}
.rk-pts{font-size:12.5px;color:var(--green);font-weight:600;white-space:nowrap}
.rk-pts b{color:var(--text)}
.rk-hint{font-size:11.5px;color:var(--dim);line-height:1.45;margin-top:11px;text-align:center}
/* borderless settings rows inside the accordion */
.ac-inner .acct-set{gap:9px}
.ac-inner .acct-set-row{background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
body.light .ac-inner .acct-set-row{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.7));border-color:rgba(0,0,0,.06);box-shadow:inset 0 1px 0 #fff}
.ac-inner .mus-list{margin-top:0}
/* documents list + reader modal */
.doc-list{display:flex;flex-direction:column;gap:7px}
.doc-row{display:flex;align-items:center;gap:11px;width:100%;padding:12px 13px;border-radius:14px;cursor:pointer;
  font-family:inherit;text-align:left;color:var(--text);
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
body.light .doc-row{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.7));border-color:rgba(0,0,0,.06);box-shadow:inset 0 1px 0 #fff}
.doc-row:active{transform:scale(.99)}
.doc-ic{font-size:17px;flex:none}
.doc-nm{flex:1;min-width:0;font-size:13.5px;font-weight:600}
.doc-arr{width:18px;height:18px;flex:none;color:var(--dim)}
.docmodal{position:fixed;inset:0;z-index:2700;display:flex;align-items:center;justify-content:center;padding:16px;
  background:rgba(0,0,0,.42);-webkit-backdrop-filter:blur(12px) saturate(1.2);backdrop-filter:blur(12px) saturate(1.2);opacity:0;transition:opacity .3s var(--ease-out)}
.docmodal.on{opacity:1}
.docmodal-card{width:100%;max-width:460px;max-height:86vh;display:flex;flex-direction:column;border-radius:24px;overflow:hidden;
  background:linear-gradient(180deg,rgba(34,36,42,.74),rgba(24,26,30,.68));-webkit-backdrop-filter:blur(34px) saturate(1.4);backdrop-filter:blur(34px) saturate(1.4);
  border:1px solid rgba(255,255,255,.10);box-shadow:0 30px 80px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.10);
  transform:translateY(18px) scale(.95);transition:transform .42s var(--spring)}
.docmodal.on .docmodal-card{transform:none}
body.light .docmodal-card{background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(247,249,252,.82));border-color:rgba(15,23,42,.08);box-shadow:0 30px 80px rgba(30,45,70,.2),inset 0 1px 0 #fff}
.docmodal-h{display:flex;align-items:center;gap:10px;padding:17px 16px 13px;flex:none;border-bottom:1px solid var(--glass-brd)}
.docmodal-t{flex:1;min-width:0;font-size:16.5px;font-weight:800;color:var(--text);letter-spacing:-.01em}
.docmodal-x{width:34px;height:34px;flex:none;border:1px solid var(--glass-brd);border-radius:11px;cursor:pointer;color:var(--dim);
  background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s,transform .1s}
.docmodal-x:hover{background:rgba(255,255,255,.12);color:var(--text)}
.docmodal-x:active{transform:scale(.92)}
.docmodal-x svg{width:17px;height:17px}
body.light .docmodal-x{background:rgba(0,0,0,.04)}
body.light .docmodal-x:hover{background:rgba(0,0,0,.08)}
.docmodal-body{overflow-y:auto;padding:14px 18px 20px;color:var(--dim2);font-size:13.5px;line-height:1.6}
.docmodal-body h4{font-size:14.5px;font-weight:700;color:var(--text);margin:16px 0 6px}
.docmodal-body h4:first-of-type{margin-top:6px}
.docmodal-body p{margin:0 0 9px}
.docmodal-body .dm-upd{font-size:11.5px;color:var(--dim);margin-bottom:10px}
.docmodal-body b{color:var(--text)}
/* ── ОКНО УВЕДОМЛЕНИЙ (по тапу на логотип) + точка непрочитанных ── */
.brand{position:relative}
.brand-dot{position:absolute;top:0;right:-2px;width:9px;height:9px;border-radius:50%;background:#FF5A6A;border:2px solid var(--bg);box-shadow:0 0 6px rgba(255,90,106,.6);display:none;pointer-events:none}
.notif-modal{position:fixed;inset:0;z-index:2650;display:flex;align-items:center;justify-content:center;padding:16px;
  background:rgba(0,0,0,.42);-webkit-backdrop-filter:blur(12px) saturate(1.2);backdrop-filter:blur(12px) saturate(1.2);opacity:0;transition:opacity .3s var(--ease-out)}
.notif-modal.on{opacity:1}
.notif-card{width:100%;max-width:440px;max-height:80vh;display:flex;flex-direction:column;border-radius:22px;overflow:hidden;
  background:linear-gradient(180deg,rgba(34,36,42,.74),rgba(24,26,30,.68));-webkit-backdrop-filter:blur(34px) saturate(1.4);backdrop-filter:blur(34px) saturate(1.4);
  border:1px solid rgba(255,255,255,.10);box-shadow:0 30px 80px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.10);
  transform:translateY(18px) scale(.95);transition:transform .42s var(--spring)}
.notif-modal.on .notif-card{transform:none}
body.light .notif-card{background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(247,249,252,.82));border-color:rgba(15,23,42,.08);box-shadow:0 30px 80px rgba(30,45,70,.2),inset 0 1px 0 #fff}
.notif-h{display:flex;align-items:center;gap:10px;padding:16px 16px 12px;flex:none;border-bottom:1px solid var(--glass-brd)}
.notif-t{flex:1;min-width:0;font-size:16.5px;font-weight:800;color:var(--text);letter-spacing:-.01em}
.notif-body{overflow-y:auto;padding:8px 10px 14px}
.nt-item{display:flex;gap:12px;align-items:flex-start;padding:11px 8px;border-radius:12px}
.nt-item.tap{cursor:pointer;transition:background .15s} .nt-item.tap:active{background:rgba(255,255,255,.06)}
body.light .nt-item.tap:active{background:rgba(0,0,0,.04)}
.nt-ic{flex:none;width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:19px;background:color-mix(in srgb,var(--nc,#8AB4FF) 16%,transparent)}
.nt-tx{flex:1;min-width:0}
.nt-t{font-size:14.5px;font-weight:600;color:var(--text);line-height:1.3}
.nt-s{font-size:12px;color:var(--dim);margin-top:2px}
.nt-n{font-size:13px;color:var(--dim2);margin-top:4px;line-height:1.4;overflow-wrap:anywhere}
.notif-empty{text-align:center;color:var(--dim);font-size:14px;padding:44px 12px}
/* ── Лента: stories row ── */
.st-row{display:flex;gap:11px;overflow-x:auto;padding:1px 2px 2px;scrollbar-width:none}
.st-row::-webkit-scrollbar{display:none}
.st-ava-btn{flex:none;border:none;background:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;width:50px;padding:0}
.st-ring{width:44px;height:44px;flex-shrink:0;aspect-ratio:1;box-sizing:border-box;border-radius:50%;padding:2px;
  display:flex;align-items:center;justify-content:center;background:conic-gradient(from 210deg,var(--sc),#fff3,var(--sc))}
.st-ava{width:100%;height:100%;aspect-ratio:1;flex-shrink:0;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:19px;
  background:var(--panel,#141416)}
body.light .st-ava{background:#eef1f5}
.st-nm{font-size:10px;color:var(--dim2);max-width:50px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ── chat list ── */
/* Telegram-style flat list: rows split by a thin divider, no cards */
.chat-list{display:flex;flex-direction:column;gap:0}
.chat-row{display:flex;align-items:center;gap:12px;width:100%;padding:11px 6px;border:none;background:none;cursor:pointer;
  font-family:inherit;text-align:left;color:var(--text);border-bottom:1px solid var(--glass-brd)}
.chat-row:last-child{border-bottom:none}
.chat-row:active{background:rgba(255,255,255,.05)}
body.light .chat-row:active{background:rgba(0,0,0,.03)}
.chat-ava{width:46px;height:46px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;
  background:color-mix(in srgb,var(--cc) 24%,transparent);color:var(--cc)}
.chat-ava.sm{width:34px;height:34px;font-size:17px}
.chat-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.chat-nm{font-size:15px;font-weight:700;color:var(--text)}
.chat-last{font-size:12.5px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-arr{width:18px;height:18px;flex:none;color:var(--dim)}
/* right column of a chat row: last-message time + unread badge */
.chat-side{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:5px;min-width:34px;padding-left:6px}
.chat-time{font-size:11px;color:var(--dim);font-variant-numeric:tabular-nums}
.chat-unread{min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:var(--green);color:#04120a;
  font-size:11px;font-weight:800;line-height:1;display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 7px rgba(48,213,107,.35)}
.chat-row.unread .chat-nm{font-weight:800}
.chat-row.unread .chat-last{color:var(--text)}
/* ── chat view (fills the pane) ── */
/* chat = an overlay window that slides over the Лента, exactly like the station card (#pane-station) */
#pane-chat{position:fixed; left:0; right:0; bottom:var(--nav-h); z-index:1160; height:41dvh; display:block!important; overflow:hidden; padding:0; pointer-events:none}
#pane-chat .chat-slide{position:absolute; inset:0; display:flex; flex-direction:column; overflow:hidden;
  background:var(--glass); backdrop-filter:blur(30px) saturate(1.7); -webkit-backdrop-filter:blur(30px) saturate(1.7);
  border:1px solid var(--glass-brd); border-radius:26px 26px 0 0;
  box-shadow:0 18px 46px rgba(0,0,0,.5), inset 0 1px 0 var(--glass-hi);
  transform:translateY(103%); transition:transform .32s cubic-bezier(.33,1,.68,1)}
body.light #pane-chat .chat-slide{background:rgba(249,249,250,.96)}
#pane-chat.on{pointer-events:auto}
#pane-chat.on .chat-slide{transform:translateY(0)}
.chat-head{flex:none;display:flex;align-items:center;gap:11px;padding:12px 14px;border-bottom:1px solid var(--glass-brd)}
.chat-back{width:34px;height:34px;flex:none;border:none;background:none;cursor:pointer;color:var(--text);display:flex;align-items:center;justify-content:center}
.chat-back svg{width:22px;height:22px}
.chat-htxt{display:flex;flex-direction:column;min-width:0;line-height:1.22}
.chat-htitle{font-size:16px;font-weight:800;color:var(--text)}
.chat-hsub{font-size:11.5px;font-weight:500;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-msgs{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:2px;padding:14px}
.msg.gs{margin-top:9px}   /* extra space before the first message of a same-author run */
.msg-day{align-self:center;margin:12px 0 6px;font-size:11px;font-weight:700;color:var(--dim);letter-spacing:.01em;
  background:rgba(255,255,255,.06);padding:3px 12px;border-radius:999px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
body.light .msg-day{background:rgba(15,23,42,.06);color:var(--dim2)}
.msg-av.ghost{visibility:hidden}   /* keep the indent for grouped messages without repeating the avatar */
.chat-empty{margin:auto;font-size:13px;color:var(--dim);text-align:center;padding:20px}
.msg{display:flex;gap:8px;max-width:88%}
.msg.own{align-self:flex-end;flex-direction:row-reverse}
.msg.other,.msg.sys{align-self:flex-start}
.msg-av{width:30px;height:30px;flex:none;border-radius:50%;object-fit:cover;align-self:flex-end}
.msg-av-i{display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:#fff;background:linear-gradient(135deg,#2AABEE,#1E88C7)}
.msg-ic{width:34px;height:34px;flex:none;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:18px;
  background:color-mix(in srgb,var(--evc) 22%,transparent)}
.msg-b{padding:9px 12px;border-radius:16px;min-width:0;
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));
  border:1px solid rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
body.light .msg-b{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.7));border-color:rgba(0,0,0,.06);box-shadow:inset 0 1px 0 #fff}
.msg.own .msg-b{background:linear-gradient(180deg,rgba(48,213,107,.24),rgba(48,213,107,.11));border-color:rgba(48,213,107,.32)}
.msg.sys .msg-b{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.06)}
body.light .msg.sys .msg-b{background:rgba(0,0,0,.035)}
.msg.tap{cursor:pointer}
.msg-nm{font-size:12px;font-weight:700;color:var(--green);margin-bottom:2px}
.msg-h{font-size:13.5px;font-weight:600;color:var(--text)}
.msg-x{font-size:13.5px;color:var(--text);line-height:1.4;word-wrap:break-word;overflow-wrap:anywhere}
.msg-t{font-size:10.5px;color:var(--dim);margin-top:3px;text-align:right}
/* reaction chips under a message + the picker row inside the long-press menu */
.msg-reacts{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.rchip{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;cursor:pointer;font-size:13px;
  font-family:inherit;line-height:1.5;color:var(--text);border:1px solid var(--glass-brd);background:rgba(255,255,255,.06);
  transition:transform .12s var(--spring),background .15s}
.rchip .rc-n{font-size:11px;font-weight:800;color:var(--dim);font-variant-numeric:tabular-nums}
.rchip.mine{background:rgba(48,213,107,.18);border-color:rgba(48,213,107,.42)}
.rchip.mine .rc-n{color:var(--green)}
.rchip:active{transform:scale(.9)}
body.light .rchip{background:rgba(0,0,0,.04)}
body.light .rchip.mine{background:rgba(48,213,107,.14)}
.re-row{display:flex;gap:1px;padding:3px 2px 6px;margin-bottom:4px;border-bottom:1px solid var(--glass-div)}
.re-row.solo{border-bottom:none;margin-bottom:0;padding-bottom:3px}
.re-btn{width:40px;height:40px;border:none;background:none;border-radius:11px;cursor:pointer;font-size:21px;
  display:flex;align-items:center;justify-content:center;transition:transform .12s var(--spring),background .15s}
.re-btn:active{transform:scale(.85)}
.re-btn:hover{background:rgba(255,255,255,.08)}
body.light .re-btn:hover{background:rgba(0,0,0,.05)}
/* input bar rides INSIDE the glass slide — no nested backdrop-filter (expensive + composes badly), just a divider */
.chat-input{flex:none;display:flex;gap:9px;padding:11px 12px;border-top:1px solid var(--glass-div);background:rgba(255,255,255,.03)}
body.light .chat-input{background:rgba(0,0,0,.02)}
.chat-input input{flex:1;min-width:0;padding:12px 15px;border-radius:22px;color:var(--text);font-family:inherit;font-size:14.5px;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.045));
  border:1px solid rgba(255,255,255,.10);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
body.light .chat-input input{background:rgba(0,0,0,.04);border-color:rgba(0,0,0,.07);box-shadow:none}
.chat-send{width:46px;height:46px;flex:none;border:none;border-radius:50%;cursor:pointer;background:var(--green);color:#06210F;
  display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(48,213,107,.25), inset 0 1px 0 rgba(255,255,255,.35)}
.chat-send svg{width:20px;height:20px}
.chat-send:active{transform:scale(.94)}
.msg{-webkit-touch-callout:none}
.msg.own .msg-b{cursor:context-menu}
.msg-menu{position:fixed;z-index:2900;background:rgba(30,30,32,.96);-webkit-backdrop-filter:blur(20px) saturate(1.3);backdrop-filter:blur(20px) saturate(1.3);
  border:1px solid var(--glass-brd);border-radius:13px;box-shadow:0 12px 34px rgba(0,0,0,.5);padding:5px;min-width:150px}
body.light .msg-menu{background:rgba(255,255,255,.96)}
.msg-menu button{display:flex;align-items:center;gap:9px;width:100%;border:none;background:none;cursor:pointer;
  font-family:inherit;font-size:14px;font-weight:600;color:#FF6B6B;padding:10px 12px;border-radius:9px;text-align:left}
.msg-menu button:hover{background:rgba(255,107,107,.12)}
.msg-menu button svg{width:17px;height:17px}
.chat-readonly,.chat-login{flex:none;padding:13px;text-align:center;font-size:12.5px;color:var(--dim);border-top:1px solid var(--glass-brd)}
.chat-login .acct-btn{margin:0 auto}
/* ── story viewer ── */
.story{position:fixed;inset:0;z-index:2800;display:flex;align-items:center;justify-content:center;padding:14px;
  background:rgba(0,0,0,.82);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;transition:opacity .3s var(--ease-out)}
.story.on{opacity:1}
.story-card{position:relative;width:100%;max-width:420px;height:min(84vh,720px);border-radius:22px;overflow:hidden;
  background:radial-gradient(120% 90% at 50% 0%,color-mix(in srgb,var(--sc) 45%,#141416),#0d0d0e);
  display:flex;flex-direction:column;transform:scale(.92);transition:transform .44s var(--spring)}
.story.on .story-card{transform:none}
.story-bars{display:flex;gap:4px;padding:12px 12px 0}
.story-bar{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.28);overflow:hidden}
.story-fill{display:block;height:100%;width:0;background:#fff;border-radius:2px}
.story-fill.done{width:100%}
.story-fill.run{animation:storyfill 5.2s linear forwards}
@keyframes storyfill{from{width:0}to{width:100%}}
.story-top{display:flex;align-items:center;gap:10px;padding:14px 14px 0;z-index:2}
.story-ava{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;background:rgba(255,255,255,.16)}
.story-ch{flex:1;font-size:15px;font-weight:700;color:#fff}
.story-x{width:34px;height:34px;border:none;background:rgba(255,255,255,.15);border-radius:10px;color:#fff;cursor:pointer;opacity:.92;display:flex;align-items:center;justify-content:center;transition:background .15s,transform .1s}
.story-x:active{transform:scale(.92)}
.story-x svg{width:18px;height:18px}
.story-mid{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;padding:24px 26px}
.story-bigic{font-size:66px}
.story-title{font-size:23px;font-weight:800;color:#fff;line-height:1.2}
.story-text{font-size:15px;color:rgba(255,255,255,.82);line-height:1.5}
.story-nav{position:absolute;top:56px;bottom:0;width:38%;border:none;background:none;cursor:pointer;z-index:1}
.story-prev{left:0}.story-next{right:0}
/* user rating card */
.rate-card{max-width:320px;margin:6px auto 0;padding:15px;border-radius:18px;border:1px solid var(--glass-brd);
  background:linear-gradient(150deg,color-mix(in srgb,var(--rc) 20%,transparent),var(--glass));
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.rate-top{display:flex;align-items:center;gap:12px}
.rate-ic{width:46px;height:46px;flex:none;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:26px;
  background:color-mix(in srgb,var(--rc) 26%,transparent)}
.rate-info{display:flex;flex-direction:column;gap:1px;min-width:0}
.rate-rank{font-size:17px;font-weight:800;color:var(--text)}
.rate-score{font-size:12.5px;font-weight:600;color:var(--rc)}
.rate-stats{display:flex;gap:10px;margin-top:13px}
.rate-stat{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 6px;border-radius:12px;background:rgba(255,255,255,.05)}
body.light .rate-stat{background:rgba(0,0,0,.035)}
.rate-stat b{font-size:19px;font-weight:800;color:var(--text)}
.rate-stat span{font-size:10.5px;color:var(--dim);text-transform:uppercase;letter-spacing:.4px}
.rate-bar{height:7px;border-radius:4px;background:rgba(255,255,255,.1);margin-top:13px;overflow:hidden}
body.light .rate-bar{background:rgba(0,0,0,.08)}
.rate-fill{height:100%;border-radius:4px;background:var(--rc);transition:width .5s ease}
.rate-next{font-size:11px;color:var(--dim);text-align:center;margin-top:7px}
.acct-set-in{margin:0;max-width:none}
.acct-set-row.nm-row{flex-direction:column;align-items:stretch;gap:10px}
.nm-seg{width:100%}
.nm-seg button{flex:1;padding-left:6px;padding-right:6px}
/* thanks button in the event popup */
.evpop-thx{display:block;width:100%;margin-top:9px;border:none;cursor:pointer;font-family:inherit;font-size:13.5px;font-weight:700;
  color:#06210F;background:var(--green);padding:9px;border-radius:11px}
.evpop-thx.done,.evpop-thx:disabled{background:rgba(48,213,107,.18);color:var(--green);cursor:default}
.evpop-thx:not(:disabled):active{transform:scale(.97)}
.evpop-thxn{margin-top:8px;font-size:13px;font-weight:600;color:var(--dim)}
/* music player (liquid glass) */
.mus{max-width:320px;margin:20px auto 0;padding:14px;border-radius:18px;border:1px solid var(--glass-brd);
  background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.mus-head{display:flex;align-items:center;justify-content:space-between}
.mus-title{font-size:15px;font-weight:700;color:var(--text)}
.mus-hint{font-size:11.5px;color:var(--dim);margin:3px 0 10px}
.mus-player{display:flex;align-items:center;gap:8px;padding:10px;border-radius:14px;
  background:rgba(255,255,255,.05);border:1px solid var(--glass-brd);margin-bottom:10px}
body.light .mus-player{background:rgba(0,0,0,.035)}
.mus-ctl{width:36px;height:36px;flex:none;border:none;border-radius:50%;cursor:pointer;color:var(--text);
  background:rgba(255,255,255,.07);display:flex;align-items:center;justify-content:center}
.mus-ctl svg{width:18px;height:18px}
.mus-play{background:var(--green);color:#06210F;width:40px;height:40px}
.mus-play svg{width:20px;height:20px}
.mus-ctl:active{transform:scale(.92)}
.mus-now{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.mus-now-nm{font-size:13px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mus-seek{width:100%;height:4px;-webkit-appearance:none;appearance:none;border-radius:3px;
  background:rgba(255,255,255,.16);cursor:pointer}
body.light .mus-seek{background:rgba(0,0,0,.12)}
.mus-seek::-webkit-slider-thumb{-webkit-appearance:none;width:13px;height:13px;border-radius:50%;background:var(--green);cursor:pointer}
.mus-seek::-moz-range-thumb{width:13px;height:13px;border:none;border-radius:50%;background:var(--green);cursor:pointer}
.mus-list{display:flex;flex-direction:column;gap:5px;max-height:230px;overflow-y:auto}
/* premium glass rows (shared look for every list inside the cabinet accordions) */
.mus-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
body.light .mus-row{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.7));border-color:rgba(0,0,0,.06);box-shadow:inset 0 1px 0 #fff}
.mus-row.on{background:linear-gradient(180deg,rgba(48,213,107,.20),rgba(48,213,107,.09));border-color:rgba(48,213,107,.35)}
.mus-mini{width:32px;height:32px;flex:none;border:none;border-radius:50%;cursor:pointer;color:var(--text);
  background:rgba(255,255,255,.10);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center}
.mus-mini svg{width:15px;height:15px}
.mus-meta{flex:1;min-width:0;display:flex;flex-direction:column}
.mus-nm{font-size:13px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mus-ar{font-size:11px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mus-badge{font-size:9px;font-weight:700;text-transform:uppercase;color:var(--green);
  background:rgba(48,213,107,.14);padding:2px 5px;border-radius:6px;letter-spacing:.4px}
.mus-del{width:28px;height:28px;flex:none;border:none;background:none;color:var(--dim);cursor:pointer;
  display:flex;align-items:center;justify-content:center;border-radius:8px}
.mus-del svg{width:16px;height:16px}
.mus-del:hover{color:#FF6B6B;background:rgba(255,107,107,.1)}
.mus-empty{font-size:12.5px;color:var(--dim);text-align:center;padding:14px 6px}
.vh-ic{width:30px;height:30px;flex:none;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:15px;background:rgba(255,255,255,.06)}
body.light .vh-ic{background:rgba(0,0,0,.04)}
.vh-tap{cursor:pointer}.vh-tap:active{background:rgba(255,255,255,.05)}
.mus-ar.s-green{color:#5bf0a0}.mus-ar.s-red{color:#FF8A93}
.mus-add{display:block;margin-top:12px;text-align:center;padding:12px;border-radius:14px;cursor:pointer;
  font-size:14px;font-weight:600;color:#06210F;background:var(--green);
  box-shadow:0 8px 22px rgba(48,213,107,.22), inset 0 1px 0 rgba(255,255,255,.35)}
.mus-add:active{transform:scale(.98)}
.mus-bot{font-size:11.5px;color:var(--dim);text-align:center;margin-top:9px;line-height:1.45}
/* friends */
.fr-sec-t{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--dim);margin:16px 2px 8px}
.fr-invite{padding:13px;border-radius:15px;background:rgba(255,255,255,.04);border:1px solid var(--glass-brd)}
body.light .fr-invite{background:rgba(0,0,0,.03)}
.fr-invite .fr-sec-t{margin-top:0}
.fr-hint{font-size:12px;color:var(--dim);line-height:1.45;margin:0 0 10px}
.fr-linkrow{display:flex;gap:7px;align-items:center}
.fr-link{flex:1;min-width:0;font-family:inherit;font-size:12.5px;color:var(--text);padding:9px 11px;border-radius:11px;
  border:1px solid var(--glass-brd);background:rgba(255,255,255,.05)}
body.light .fr-link{background:rgba(0,0,0,.04)}
.fr-copy{flex:none;border:none;cursor:pointer;font-family:inherit;font-size:13px;font-weight:600;color:var(--text);
  padding:9px 13px;border-radius:11px;background:rgba(255,255,255,.09)}
.fr-copy:active{transform:scale(.96)}
.fr-share{width:100%;margin-top:9px}
.fr-list{display:flex;flex-direction:column;gap:7px}
.fr-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:13px;background:rgba(255,255,255,.04)}
body.light .fr-row{background:rgba(0,0,0,.03)}
.fr-ava{position:relative;width:38px;height:38px;flex:none;border-radius:50%;overflow:visible}
.fr-ava img{width:38px;height:38px;border-radius:50%;object-fit:cover;display:block}
.fr-ava-ini{display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;color:#fff;
  background:linear-gradient(135deg,#2AABEE,#1E88C7)}
.fr-dot{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;background:var(--green);
  border:2px solid var(--panel,#1a1c20)}
body.light .fr-dot{border-color:#fff}
.fr-meta{flex:1;min-width:0;display:flex;flex-direction:column}
.fr-nm{font-size:13.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fr-un{font-size:11px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fr-un.fr-online{color:var(--green);font-weight:600}
.fr-act{flex:none;border:none;cursor:pointer;font-family:inherit;font-size:12.5px;font-weight:600;
  padding:7px 12px;border-radius:10px}
.fr-ok{color:#06210F;background:var(--green)}
.fr-no{width:32px;height:32px;padding:0;color:var(--dim);background:rgba(255,255,255,.06);font-size:14px;
  display:flex;align-items:center;justify-content:center}
.fr-no:hover{color:#FF6B6B;background:rgba(255,107,107,.1)}
.fr-act:active{transform:scale(.95)}
.fr-empty{font-size:12.5px;color:var(--dim);text-align:center;padding:14px 6px}
.fr-demo{margin-top:18px;padding-top:14px;border-top:1px dashed var(--glass-brd);display:flex;flex-direction:column;gap:8px}
.fr-demo .acct-btn{width:100%}
.fr-demo-clr{border:none;cursor:pointer;font-family:inherit;font-size:12.5px;color:var(--dim);background:none;padding:4px}
.fr-demo-clr:hover{color:#FF6B6B}
.fr-loc{width:32px;height:32px;padding:0;font-size:15px;background:rgba(48,213,107,.14);
  display:flex;align-items:center;justify-content:center}
.fr-row-tap{cursor:pointer}
.fr-row-tap.sel{background:rgba(48,213,107,.13)}
.fr-row-tap:active{transform:scale(.99)}
.fr-mk-ic{width:34px;height:34px;flex:none;border-radius:10px;display:flex;align-items:center;justify-content:center;
  font-size:17px;background:color-mix(in srgb,var(--evc) 22%,transparent)}
/* selected friend detail card */
.fr-detail{padding:12px;border-radius:16px;margin-bottom:6px;background:rgba(255,255,255,.05);border:1px solid var(--glass-brd)}
body.light .fr-detail{background:rgba(0,0,0,.03)}
.fr-detail-head{display:flex;align-items:center;gap:10px}
.fr-detail .fr-sec-t{margin-top:14px}
.fr-goto{width:100%;margin-top:11px}
.fr-noloc{margin-top:10px;font-size:12px;color:var(--dim);text-align:center;padding:8px;border-radius:10px;background:rgba(255,255,255,.04)}
body.light .fr-noloc{background:rgba(0,0,0,.03)}
/* online-friend chips in the top brief */
.fr-chips{display:flex;gap:12px;width:100%;overflow-x:auto;padding:2px 0 4px;scrollbar-width:none}
.fr-chips::-webkit-scrollbar{display:none}
.fr-chip{flex:none;border:none;background:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;width:54px;padding:0}
.fr-chip-ava{position:relative;width:44px;height:44px;border-radius:50%;overflow:visible;
  border:2px solid var(--green);box-shadow:0 0 0 2px transparent}
.fr-chip.sel .fr-chip-ava{box-shadow:0 0 0 2px var(--green)}
.fr-chip-ava img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.fr-chip-ini{width:100%;height:100%;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:17px;font-weight:700;color:#fff;background:linear-gradient(135deg,#2AABEE,#1E88C7)}
.fr-chip-nm{font-size:11px;color:var(--text);max-width:54px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fr-share-row{display:flex;align-items:center;gap:12px;padding:11px 13px;margin-bottom:11px;border-radius:15px;
  background:rgba(48,213,107,.08);border:1px solid rgba(48,213,107,.2)}
.fr-share-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.fr-share-t{font-size:13.5px;font-weight:600;color:var(--text)}
.fr-share-h{font-size:11px;color:var(--dim);line-height:1.35}
.fr-tog{flex:none;width:46px;height:27px;border:none;border-radius:14px;cursor:pointer;padding:0;position:relative;
  background:rgba(255,255,255,.16);transition:background .18s}
.fr-tog.on{background:var(--green)}
body.light .fr-tog{background:rgba(0,0,0,.18)}   /* OFF-трек: белый rgba(255,255,255,.16) на бледной карточке был невидим в светлой теме */
.fr-tog-k{position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;
  transition:transform .18s;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.fr-tog.on .fr-tog-k{transform:translateX(19px)}
/* friend pins on the map */
.fp-pin{position:relative;width:46px;height:56px}
.fp-ava{position:absolute;top:0;left:3px;width:40px;height:40px;border-radius:50%;overflow:hidden;
  border:3px solid var(--green);background:#1E88C7;box-shadow:0 3px 10px rgba(0,0,0,.45)}
.fp-ava img{width:100%;height:100%;object-fit:cover;display:block}
.fp-ini{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:17px;font-weight:700;color:#fff}
.fp-pin::after{content:'';position:absolute;bottom:4px;left:50%;transform:translateX(-50%);
  width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-top:11px solid var(--green)}
.evmk-fr{opacity:.9;filter:saturate(.85)}
/* invite button in the friends brief */
.brief-fr{display:flex;align-items:center;gap:10px;width:100%;min-width:0}
.brief-fr .brief-line{flex:1;min-width:0}
.brief-inv{flex:none;border:none;cursor:pointer;font-family:inherit;font-size:12.5px;font-weight:600;color:#06210F;
  background:var(--green);padding:7px 13px;border-radius:11px}
.brief-inv:active{transform:scale(.96)}
/* news feed */
#news-list{padding:4px 2px 8px}
.news-card{border-radius:16px;padding:13px 15px;margin-bottom:10px;
  background:var(--glass);-webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);
  border:1px solid var(--glass-brd);box-shadow:inset 0 1px 0 var(--glass-hi)}
.news-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.news-h{font-size:15px;font-weight:700;color:var(--text)}
.news-d{font-size:12px;color:var(--dim);flex-shrink:0}
.news-x{font-size:13px;color:var(--dim2);line-height:1.5;margin-top:5px}
/* feed sub-tabs (Всё / Рядом / Обновления / Друзья) */
.feed-tabs{display:flex;gap:7px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none}
.feed-tabs::-webkit-scrollbar{display:none}
.feed-tab{flex:none;position:relative;border:none;cursor:pointer;font-family:inherit;font-size:13px;font-weight:600;
  color:var(--dim);background:rgba(255,255,255,.06);padding:8px 14px;border-radius:12px}
body.light .feed-tab{background:rgba(0,0,0,.04)}
.feed-tab.on{color:#06210F;background:var(--green)}
.feed-tab:active{transform:scale(.97)}
.feed-badge{margin-left:6px;font-size:10px;font-weight:800;color:#fff;background:#F43F5E;border-radius:9px;padding:1px 6px;vertical-align:middle}
.feed-tab.on .feed-badge{background:rgba(6,33,15,.35);color:#06210F}
.feed-card{padding:11px 13px}
.feed-tap{cursor:pointer}
.feed-tap:active{transform:scale(.99)}
.feed-row{display:flex;align-items:flex-start;gap:11px}
.feed-body{flex:1;min-width:0}
.feed-ic{flex:none;width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;
  font-size:19px;background:color-mix(in srgb,var(--evc) 22%,transparent)}
.feed-empty{font-size:13px;color:var(--dim);text-align:center;padding:26px 10px}
.sheet-pane{display:none;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 14px 30px}
.sheet-pane.on{display:block}
/* station card = a CLIP window sized to the panel (overflow:hidden) with the card sliding inside it,
   so the card is always confined to the panel — nothing ever shows outside it, over the map.
   the filter + nearby list stay visible UNDERNEATH (seen through the glass) — they never blank out.
   mobile: the inner card slides up. desktop (≥900 block): it slides in from the right. */
#pane-station{position:fixed; left:0; right:0; bottom:var(--nav-h); z-index:1160; height:41dvh;
  display:block!important; overflow:hidden; padding:0; pointer-events:none}
#pane-station .st-slide{position:absolute; inset:0; display:flex; flex-direction:column; overflow:hidden;
  /* стекло КАРТОЧКИ = стекло верхнего/нижнего меню (var(--glass) + blur(30) saturate(1.7)) во ВСЕХ состояниях/темах */
  background:var(--glass); backdrop-filter:blur(30px) saturate(1.7); -webkit-backdrop-filter:blur(30px) saturate(1.7);
  border-top:1px solid var(--glass-brd); border-radius:26px 26px 0 0; box-shadow:inset 0 1px 0 var(--glass-hi);
  transform:translateX(104%); transition:transform .36s cubic-bezier(.33,1,.68,1)}
/* ВЪЕЗД карточки СПРАВА — CSS-анимация (не transition): проигрывается сразу, как только .on совпал со свежим .st-slide
   (и при первом открытии, и при свапе). ⚠ transform в правилах ниже — БЕЗ !important, иначе !important-декларация
   перебивает анимацию в каскаде и карточка «замирает»/появляется резко. Приоритет над поздними правилами — специфичностью. */
@keyframes stSlideIn{ from{transform:translateX(104%)} to{transform:translateX(0)} }
/* .entering = the incoming card starts at its closed position so it can SLIDE IN (from the right on desktop, from
   below on mobile) even while the pane is already `.on` — used when swapping so the new card slides over the old. */
#pane-station .st-slide.entering{transform:translateY(103%)!important}
@media(min-width:900px){ #pane-station .st-slide.entering{transform:translateX(104%)!important} }
/* (убрано body.light .st-slide{background:.96} — карточка теперь var(--glass), прозрачная как меню) */
/* open station card behaves like the other tabs: opens as a COLLAPSED brief (name + confirm/reject + fav),
   only the top --st-brief-h peeks above the nav; .expanded reveals the full card (info + chart + Build route). */
#pane-station.on{pointer-events:none}                          /* empty area above the brief clicks through to the map */
#pane-station.on .st-slide{pointer-events:auto; transform:translateX(0); animation:stSlideIn .40s cubic-bezier(.33,1,.68,1) both}   /* въезд справа */
#pane-station.swapping .st-slide{transition-duration:.17s}   /* switching stations → quick fly-out / fly-in */
/* the station brief = a compact ONE-ROW top strip (icon + name + confirm/reject + favourite), same height as
   the other collapsed tabs; its fixed height sets the collapsed peek. Tap the name to expand for chart + route. */
.st-brief{flex:none;display:flex;align-items:center;padding:0 14px;min-height:var(--st-brief-h)}
/* mobile drag handle — grab the pill at the top of the card and pull up to expand / down to collapse or close */
.st-drag{display:none}
@media(max-width:899px){
  .st-brief{padding-top:6px}
}
.st-brief-top{display:flex;align-items:center;gap:10px;width:100%;min-width:0}
.st-brief-nm{display:flex;align-items:center;gap:9px;min-width:0;flex:1;cursor:pointer}
.st-brief .st-title{min-width:0;font-size:18.5px}
.st-brief .st-fav{margin-left:0;flex:none;width:38px;height:38px}
/* compact confirm/reject: small horizontal buttons, right of the name (full column-buttons style stays in the expanded flow) */
.st-brief .vote-box{margin:0;flex:none}
.st-brief .vote-q{display:none}
.st-brief .vpick{gap:7px;margin:0}
/* ✓/✗ на брифе — тонированное liquid-glass: зелёное стекло (Есть) / красное (Нет), с бликом и мягкой тенью */
.st-brief .vpick-btn{flex:none;flex-direction:row;width:40px;height:40px;padding:0;border-radius:13px;justify-content:center;
  border:1px solid var(--glass-brd); transition:transform .12s, background .15s, border-color .15s;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 5px 14px rgba(0,0,0,.20)}
.st-brief .vpick-btn span{display:none}   /* icon-only in the compact row → the name stays readable */
.st-brief .vpick-btn svg{width:22px;height:22px}
.st-brief .vpick-btn.up{background:linear-gradient(180deg,rgba(48,213,107,.24),rgba(48,213,107,.09));border-color:rgba(48,213,107,.42);color:#30D56B}
.st-brief .vpick-btn.down{background:linear-gradient(180deg,rgba(255,90,106,.22),rgba(255,90,106,.08));border-color:rgba(255,90,106,.42);color:#FF5A6A}
.st-brief .vpick-btn:active{transform:scale(.9)}
body.light .st-brief .vpick-btn{box-shadow:inset 0 1px 0 rgba(255,255,255,.95), 0 5px 14px rgba(30,45,70,.10)}
body.light .st-brief .vpick-btn.up{background:linear-gradient(180deg,rgba(48,213,107,.16),rgba(48,213,107,.05));border-color:rgba(48,213,107,.4);color:#159a49}
body.light .st-brief .vpick-btn.down{background:linear-gradient(180deg,rgba(255,90,106,.15),rgba(255,90,106,.05));border-color:rgba(255,90,106,.42);color:#e23c4e}
.st-brief #vote-form{display:none}   /* the follow-up form lives in the expanded body, not the brief row */
/* voted state, compact for the brief row */
.st-brief .voted-banner{display:flex;align-items:center;gap:8px;margin:0}
.st-brief .voted-banner .lbl{display:none}
.st-brief .voted-banner .st{font-size:14px;font-weight:700}
.st-brief .voted-acts{margin-top:0;gap:6px}
.st-brief .voted-acts .vchg,.st-brief .voted-acts .vdel{height:32px;padding:0 11px;font-size:12px;flex:none;border-radius:10px}
/* desktop: station card mirrors the menu. FULL = clean overlay over the whole column (top:80→bottom, slides in
   from the right). BRIEF (.on:not(.expanded)) = a 90px strip in the filter's slot; `.expanded` is kept in sync
   with `body.collapsed` (see toggleStationExpand), so when it's a brief the menu is collapsed too → the nearby
   list is already display:none and the nav is already glued below the filter, so nothing needs hiding/moving. */
@media(min-width:900px){
  /* express the brief via `bottom` (not height:auto) so brief↔full animates smoothly; the nav's top transition
     (v214) carries it down in sync. top stays 80; bottom slides between the 90px strip and the column bottom. */
  #pane-station{transition:bottom .42s cubic-bezier(.33,1,.68,1)}
  #pane-station.on:not(.expanded){bottom:calc(100dvh - var(--top0) - var(--strip-h))!important; height:auto!important}
  #pane-station.swapping{transition:none!important}   /* switching stations = only the card slides (translateX); don't also animate bottom */
}
.st-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px 18px;display:flex;flex-direction:column}
.st-titlerow{display:flex;align-items:center;gap:9px;min-width:0}
/* favourite toggle — a bookmark flag in the top-right of the station card (replaces the old bottom Save button) */
.st-fav{margin-left:auto;flex:none;width:40px;height:40px;border-radius:12px;border:1px solid var(--glass-brd);
  background:rgba(255,255,255,.05);color:var(--dim);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,color .15s,transform .12s}
.st-fav svg{width:22px;height:22px}
.st-fav:active{transform:scale(.9)}
.st-fav.on{background:rgba(48,213,107,.16);border-color:rgba(48,213,107,.45);color:#5bf0a0}
.st-fav.on .st-fav-ic{fill:currentColor}
body.light .st-fav{background:rgba(0,0,0,.04)}
.st-back{flex-shrink:0;width:26px;height:26px;padding:0;border:none;background:none;color:var(--text);cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:transform .12s,opacity .16s}
.st-back svg{width:24px;height:24px}
.st-back:hover{opacity:.6}
.st-back:active{transform:translateX(-3px)}
.st-ic{width:25px;height:25px;flex-shrink:0;color:var(--dim);display:inline-flex;align-items:center;justify-content:center}
.st-ic svg{width:100%;height:100%}
.st-title{min-width:0;font-size:22px;font-weight:800;color:var(--text);line-height:1.18;letter-spacing:-.01em;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-brand{font-size:13px;color:var(--dim);margin-top:4px}
.st-badge{font-size:11px;font-weight:700;letter-spacing:.02em;padding:4px 10px;border-radius:999px}
.st-badge.fuel{background:rgba(255,138,61,.16);color:#FF9B4D;border:1px solid rgba(255,138,61,.3)}
.st-badge.ev{background:rgba(48,213,107,.16);color:#3ED07B;border:1px solid rgba(48,213,107,.3)}
.scr-sub{font-size:14px;color:var(--dim);line-height:1.6;padding:16px 4px}
.sv-card{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:var(--card);border:1px solid var(--border);margin-bottom:10px;cursor:pointer}
.sv-card:active{background:rgba(255,255,255,.05)}
.sv-empty{padding:40px 16px;text-align:center;color:var(--dim);font-size:15px;line-height:1.6}
.vsave{margin-top:12px;width:100%;height:48px;border-radius:14px;color:var(--text);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;
  background:var(--glass);-webkit-backdrop-filter:blur(16px) saturate(1.6);backdrop-filter:blur(16px) saturate(1.6);
  border:1px solid var(--glass-brd);box-shadow:inset 0 1px 0 var(--glass-hi);transition:transform .1s}
.vsave:active{transform:scale(.98)}
.vsave.on{background:rgba(48,213,107,.14);border-color:rgba(48,213,107,.45);color:#5bf0a0}
.route-btn{margin-top:14px;width:100%;height:48px;background:var(--green);border:none;border-radius:14px;color:#06210F;
  font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;
  box-shadow:0 6px 18px rgba(48,213,107,.35)}
.route-btn:active{transform:scale(.98)}
@media(min-width:900px){
  .msheet{bottom:var(--nav-h)!important;height:auto}
  .mapctl{bottom:calc(var(--nav-h) + 16px)}
  #zoom-hint{bottom:calc(var(--nav-h) + 16px)}
  #toast{bottom:calc(var(--nav-h) + 26px)}
}
/* light theme */
body.light{--bg:#e9edf2;--bg2:#fff;--panel:#fff;--card:#f2f5f9;--border:rgba(0,0,0,.1);--text:#0f1723;--dim:#586371;--dim2:#3b4652}
body.light #header{background:rgba(255,255,255,.92)!important;border-bottom-color:rgba(0,0,0,.08)}
/* мобила, светлая тема: шапка с поиском — как остальные окна: прозрачнее, БЕЗ тени и БЕЗ белой разделительной полоски */
@media(max-width:899px){
  body.light #header{background:rgba(255,255,255,.72)!important; border-bottom:none!important;
    box-shadow:0 -12px 34px -18px rgba(30,45,70,.13), -16px 0 40px -20px rgba(30,45,70,.16), 16px 0 40px -20px rgba(30,45,70,.16), inset 0 1px 0 rgba(255,255,255,.85)!important}
  /* поле ввода и локатор — «вдавлены» внутрь, как нижние кнопки на окне вкладок */
  body.light #city-input, body.light .place-btn{
    background:rgba(0,0,0,.05)!important; border:1px solid transparent!important;
    box-shadow:inset 0 1.5px 3px rgba(0,0,0,.13), inset 0 0 0 1px rgba(0,0,0,.05)!important}
  /* кнопка навигации/геолокации в светлой теме — ПОНЯТНАЯ: зелёная стрелка на светло-зелёном фоне
     с зелёным кольцом (белая иконка .hbtn была не видна на светлом); активное отслеживание — залита зелёным */
  body.light #header-geo{color:var(--green)!important; background:rgba(48,213,107,.14)!important;
    border:1px solid transparent!important; box-shadow:inset 0 0 0 1.5px rgba(48,213,107,.5)!important}
  body.light #header-geo.tracking{color:#04120a!important; background:var(--green)!important;
    box-shadow:0 3px 10px rgba(48,213,107,.4)!important}
  /* ЕДИНОЕ матовое стекло для ВСЕХ частей меню (шапка/шит/навигация) — одинаковый фон .72 и одинаковое
     размытие (из общего mobile-glass блока), без разнобоя градиентов/подсветок/рамок на стыках. */
  body.light .msheet{background:rgba(255,255,255,.72)!important}   /* overflow:hidden обрезал бы drop-shadow → тень несут шапка+навигация (их размытие перекрывает короткую середину) */
  /* #botnav: снимаем clip-path (он резал тень И скруглял углы в квадрат) → мягкая тень «под меню» + скруглённый низ */
  body.light #botnav{background:rgba(255,255,255,.72)!important; border-top:none!important; clip-path:none!important;
    box-shadow:0 18px 42px -18px rgba(30,45,70,.20), -16px 0 40px -20px rgba(30,45,70,.16), 16px 0 40px -20px rgba(30,45,70,.16)!important}
  body.light #filter{background:transparent!important}   /* полоска фильтров живёт на стекле шита, без своей подложки */
}
body.light .msheet{background:rgba(255,255,255,.95)}
body.light #panel{background:#fff}
body.light #filter{background:rgba(255,255,255,.93)}
body.light .fbtn.on{background:rgba(0,0,0,.06);color:#0f1723}
body.light .mbtn{color:#1a2330}
body.light #botnav{background:rgba(255,255,255,.97)}
body.light #city-input,body.light #vote-text{background:rgba(0,0,0,.045);color:#0f1723}
body.light .wm{color:#0f1723}
/* ═══ Светлая тема — визуальная полировка: стекло, кнопки, тени ═══ */
/* плавающие стеклянные контролы (зум-пилюля, компас, кнопки на карте): мягкие ХОЛОДНЫЕ тени вместо тяжёлых чёрных */
body.light .zoompill, body.light .mbtn, body.light .compass, body.light .map-fab .hbtn, body.light .cmp-geo{
  box-shadow:0 8px 22px rgba(28,42,66,.16), inset 0 1px 0 rgba(255,255,255,.92)}
body.light .zoompill, body.light .mbtn{background:rgba(255,255,255,.84)}
body.light .zbtn{color:#182031}
body.light .zbtn:active{background:rgba(15,23,42,.06)}
body.light .compass{background:rgba(255,255,255,.84)}
body.light .cmp-geo{background:rgba(255,255,255,.7);color:#182031}
/* ФИКС: активная «Все» в свёрнутой полоске была белым текстом на светлом фоне (не видно). Тёмный текст + мягкая подложка. */
body.light .card-strip #filter .fbtn.f-both.on{background:rgba(15,23,42,.09)!important;color:#0f1723!important}
body.light .card-strip #filter .fbtn{background:rgba(15,23,42,.05)}
body.light .card-strip #filter .fbtn.on{color:#0f1723}
/* активная вкладка внизу — лёгкая зелёная подложка (созвучно зелёному тексту активной вкладки) */
body.light #nav-pill{background:linear-gradient(180deg, rgba(48,213,107,.16), rgba(48,213,107,.08));
  box-shadow:inset 0 0 0 1px rgba(48,213,107,.22), inset 0 1px 0 rgba(255,255,255,.5)}
/* нижняя навигация: неактивные подписи чуть темнее для читаемости на матовом стекле */
body.light .navbtn{color:#5a6472}
body.light .navbtn.on{color:#159a49}
/* карточки станций/мест в светлой теме — чистое стекло с холодной тенью */
body.light #pane-station .st-slide{box-shadow:0 -12px 34px rgba(28,42,66,.14), inset 0 1px 0 rgba(255,255,255,.9)}

/* ── Desktop (≥900): everything in a left sidebar column, map fills the rest, no top header ── */
@media(min-width:900px){
  #header{left:0!important;width:380px!important;right:auto!important;transform:none!important;top:0;height:64px;padding:0 14px;
    background:var(--bg)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
    border-bottom:1px solid var(--border);border-right:1px solid var(--border);z-index:1200}
  #header #share-btn,#header #install-btn{display:none}
  .place-btn{display:none}
  /* search is an inline field in the header (no toggle button) */
  #search-wrap{position:relative!important;flex:1 1 auto!important;min-width:0;margin:0 3px 0 13px!important;
    width:auto!important;max-width:none!important;top:auto!important;left:auto!important;display:block!important;z-index:auto}
  #city-input{background:rgba(255,255,255,.06)}
  #search-results{box-shadow:0 16px 40px rgba(0,0,0,.5);z-index:1400}
  body.light #city-input{background:rgba(0,0,0,.05)}
  body.light #search-results{box-shadow:0 16px 40px rgba(20,30,50,.15)}
  .wm{font-size:22px}
  .msheet{left:0!important;right:auto!important;width:380px!important;top:113px!important;bottom:var(--nav-h)!important;height:auto!important;
    transform:none!important;border-radius:0;border-top:none;border-right:1px solid var(--border);box-shadow:none;z-index:800;padding-bottom:0}
  .msheet .drag{display:none}
  .msheet-head{padding:15px 18px 11px}
  #botnav{left:0!important;width:380px!important;right:auto!important;border-right:1px solid var(--border);z-index:1100}
  #map{left:0!important;right:0!important;width:auto!important;top:0!important;transform:none!important}
  #overlay{left:0!important;width:100%!important;top:0;transform:none!important}
  #filter{left:0!important;right:auto!important;top:64px!important;transform:none!important;width:380px!important;
    justify-content:stretch;gap:6px;padding:9px 14px;background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none;
    border:none;border-bottom:1px solid var(--border);border-right:1px solid var(--border);border-radius:0;box-shadow:none;z-index:1150}
  #filter .fbtn{flex:1 1 0;min-width:0;align-self:stretch;justify-content:center;background:rgba(255,255,255,.05);padding:0;border-radius:16px}
  #filter .fbtn svg{width:27px;height:27px}
  #filter .fbtn.on{background:rgba(255,255,255,.12)}
  #filter .fbtn.on.f-fuel{background:rgba(255,122,26,.18)}
  #filter .fbtn.on.f-ev{background:rgba(48,213,107,.18)}
  #filter .fbtn.on.f-gas{background:rgba(22,192,200,.20)}
  #filter .fbtn.on.f-events{background:rgba(255,77,90,.2)}
  #filter .fbtn.on.f-places{background:rgba(76,154,255,.2)}
  #filter .fbtn.on.f-fav{background:rgba(255,196,0,.2)}
  #filter .fbtn.on.f-weather{background:rgba(56,189,248,.2)}
  body.light #filter{background:var(--bg)}
  body.light #filter .fbtn{background:rgba(0,0,0,.04)}
  .mapctl{right:20px!important;bottom:24px!important}
  #zoom-hint{left:calc(50% + 216px);bottom:20px}
  #toast{left:calc(50% + 216px);bottom:30px}
  #ev-cross{left:50%}
  #panel{left:auto!important;right:0!important;top:0!important;bottom:0;width:400px!important;height:auto;max-height:none;
    border-radius:0;border-top:none;border-left:1px solid var(--border);transform:translateX(100%)!important;box-shadow:none}
  #panel.open{transform:translateX(0)!important;box-shadow:-18px 0 50px rgba(0,0,0,.5)}
  #panel-drag{display:none}
}

/* ── Liquid-glass floating left panel (desktop) ── */
@media(min-width:900px){
  #header, #filter, .msheet, #botnav{
    background:var(--glass)!important;
    -webkit-backdrop-filter:blur(24px) saturate(1.7)!important; backdrop-filter:blur(24px) saturate(1.7)!important;
    border-left:1px solid var(--glass-brd)!important; border-right:1px solid var(--glass-brd)!important;
  }
  #header{left:16px!important; top:16px!important; width:408px!important; gap:7px!important; padding:0 14px 0 20px!important;
    border-top:1px solid var(--glass-brd)!important; border-bottom:1px solid var(--glass-div)!important;
    border-radius:22px 22px 0 0;
    box-shadow:-18px 0 38px -22px rgba(0,0,0,.6), 18px 0 38px -22px rgba(0,0,0,.6), 0 -14px 34px -18px rgba(0,0,0,.55), inset 0 1px 0 var(--glass-hi)}
  /* десктоп, светлая тема: шапка-поиск = то же матовое стекло, что и остальные панели (общий body.light #header
     с .92!important перебивал стекло из-за более высокой специфичности → шапка была непрозрачной, не glass).
     Тени переопределяем на МЯГКИЕ ХОЛОДНЫЕ: базовые rgba(0,0,0,.6) (для тёмной темы) в светлой давали тёмный
     ореол и делали шапку «другой», чем панель под ней. Единый лёгкий контур для всей плавающей колонки. */
  body.light #header{background:var(--glass)!important;
    box-shadow:-16px 0 34px -22px rgba(30,45,70,.15), 16px 0 34px -22px rgba(30,45,70,.15), 0 -12px 30px -18px rgba(30,45,70,.11), inset 0 1px 0 rgba(255,255,255,.92)!important}
  body.light .msheet{box-shadow:-16px 0 34px -22px rgba(30,45,70,.15), 16px 0 34px -22px rgba(30,45,70,.15)!important}
  body.light #botnav{box-shadow:-16px 0 34px -22px rgba(30,45,70,.15), 16px 0 34px -22px rgba(30,45,70,.15), 0 16px 34px -18px rgba(30,45,70,.15)!important}
  body.light.collapsed #filter, body.light.collapsed .msheet{box-shadow:-16px 0 34px -22px rgba(30,45,70,.15), 16px 0 34px -22px rgba(30,45,70,.15)!important}
  /* the marker filter is now the Map card's strip (inside .msheet), so the panel starts right below the header —
     no separate filter bar / gap. These #filter rules only affect it while it lives in the map card. */
  .msheet{left:16px!important; top:80px!important; width:408px!important; bottom:calc(var(--nav-h) + 16px)!important;
    border-radius:0!important; transition:bottom .42s cubic-bezier(.22,1,.36,1);
    box-shadow:-18px 0 38px -22px rgba(0,0,0,.6), 18px 0 38px -22px rgba(0,0,0,.6)}
  /* station card = clip window over the panel column (filter + nearby); the card slides in from the right,
     clipped by the window so nothing ever appears outside the panel, over the map */
  #pane-station{left:16px; right:auto; width:408px; top:80px; bottom:calc(var(--nav-h) + 16px); height:auto}
  #pane-station .st-slide{transform:translateX(104%); transition:transform .36s cubic-bezier(.33,1,.68,1);
    border-top:none; border-radius:0; border-left:1px solid var(--glass-brd); border-right:1px solid var(--glass-brd);
    box-shadow:inset 0 1px 0 var(--glass-hi)}
  #pane-station.on .st-slide{transform:translateX(0)}
  #pane-chat{left:16px; right:auto; width:408px; top:80px; bottom:calc(var(--nav-h) + 16px); height:auto}
  #pane-chat .chat-slide{transform:translateX(104%); transition:transform .36s cubic-bezier(.33,1,.68,1);
    border-top:none; border-radius:0; border-left:1px solid var(--glass-brd); border-right:1px solid var(--glass-brd)}
  #pane-chat.on .chat-slide{transform:translateX(0)}
  #botnav{left:16px!important; width:408px!important; bottom:16px!important;
    border-bottom:1px solid var(--glass-brd)!important; border-radius:0 0 22px 22px;
    box-shadow:-18px 0 38px -22px rgba(0,0,0,.6), 18px 0 38px -22px rgba(0,0,0,.6), 0 16px 36px -18px rgba(0,0,0,.6)}
  /* collapsed card: header (rounded top) + square middle + bottom nav (rounded bottom). Nothing rounds in the middle. */
  body.collapsed #filter, body.collapsed .msheet{border-radius:0!important;
    box-shadow:-18px 0 38px -22px rgba(0,0,0,.6), 18px 0 38px -22px rgba(0,0,0,.6)!important}
}

/* ═══════════ ЭКРАН-ВОРОТА (entry gate) ═══════════ */
#gate{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:22px;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;-webkit-font-smoothing:antialiased;
  background:radial-gradient(900px 520px at 50% -12%, #16241c 0%, #0b0b0d 62%), #0a0a0b}
#gate.hidden{display:none}
.gate-card{width:100%;max-width:400px;text-align:center;border-radius:24px;padding:32px 26px 26px;
  background:linear-gradient(180deg,#17171b,#121216);border:1px solid rgba(255,255,255,.09);
  box-shadow:0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06)}
.gate-logo{width:64px;height:64px;margin:0 auto 14px;border-radius:20px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg, rgba(48,213,107,.22), rgba(48,213,107,.05));border:1px solid rgba(48,213,107,.28);
  box-shadow:0 10px 28px rgba(48,213,107,.18)}
.gate-logo svg{width:34px;height:34px}
.gate-brand{color:#fff;font-size:23px;font-weight:800;letter-spacing:-.3px;margin:0 0 22px}
.gate-brand span{color:#30D56B}
#gate h2{color:#fff;font-size:16px;font-weight:700;margin:0 0 14px}
.gate-sub{color:#8A94A6;font-size:14px;margin:0 0 16px;line-height:1.45}
#gate-inp{width:100%;height:50px;padding:0 16px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);
  border-radius:14px;color:#fff;font-size:16px;font-family:inherit;outline:none;box-sizing:border-box;margin-bottom:12px;
  transition:border-color .15s, background .15s}
#gate-inp::placeholder{color:#6b7180}
#gate-inp:focus{border-color:rgba(48,213,107,.6);background:rgba(48,213,107,.06)}
.gate-btn{width:100%;height:50px;border:none;border-radius:14px;font-size:16px;font-weight:700;font-family:inherit;cursor:pointer;
  background:linear-gradient(180deg,#38e074,#28c162);color:#04120a;box-shadow:0 8px 22px rgba(48,213,107,.3);
  transition:transform .1s, filter .15s}
.gate-btn:hover{filter:brightness(1.05)}
.gate-btn:active{transform:scale(.98)}
.gate-err{color:#FF6B76;font-size:13px;margin-top:10px;min-height:16px}
.gate-opt{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:15px 16px;margin-top:10px;
  border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(255,255,255,.035);color:#fff;cursor:pointer;
  transition:background .15s, border-color .15s, transform .1s}
.gate-opt:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.16)}
.gate-opt:active{transform:scale(.985)}
.gate-opt-ic{font-size:26px;flex:none;width:30px;text-align:center}
.gate-opt b{display:block;font-size:15px;font-weight:600}
.gate-opt i{display:block;font-size:12.5px;color:#8A94A6;font-style:normal;margin-top:3px;line-height:1.35}
