/* ============================================================
   Fbenz — design system (reference: Fineapp).
   Clean rounded cards · racing red accent · deep-navy dark + light.
   ============================================================ */
:root{
  --red:#E8132B; --red-2:#F0203A; --red-soft:rgba(232,19,43,.14);
  /* status semantics (distinct from brand red; always paired with icon+label) */
  --st-yes:#1FBF75; --st-queue:#F0A93A; --st-low:#F4C732; --st-no:#FF3B5C; --st-nodata:#8A8FA8;
  --st-yes-bg:rgba(31,191,117,.16); --st-queue-bg:rgba(240,169,58,.10);
  --st-low-bg:rgba(244,199,50,.18); --st-no-bg:rgba(255,59,92,.16); --st-nodata-bg:rgba(138,143,168,.16);
  --r:18px; --r-sm:12px; --r-lg:24px; --r-pill:999px;
  --f:"Manrope",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --sheet-max:520px; --panel-w:392px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --safe-b:env(safe-area-inset-bottom,0px);
  --maint-h:0px;   /* height of the tech-works banner, measured live (0 when hidden) */
}
html[data-theme="dark"]{
  --bg:#101225; --surface:#181A30; --surface-2:#1F2240; --surface-3:#262A4D;
  --text:#EEF0F8; --text-2:#A4A9C6; --text-3:#71769A;
  --line:rgba(255,255,255,.08); --line-2:rgba(255,255,255,.13);
  --btn-fill:#DFE2EF; --btn-fill-text:#15172A;   /* soft off-white CTA (pure white was too bright) */
  --shadow:0 18px 50px rgba(0,0,0,.45); --shadow-sm:0 6px 20px rgba(0,0,0,.35);
  --glow:radial-gradient(120% 90% at 100% 0%, rgba(232,19,43,.14), transparent 55%);
  /* darken the light "voyager" tiles into a clean dark map (no dark_all tile-edge banding) */
  --tile-filter:invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.85);
}
html[data-theme="light"]{
  --bg:#EEF0F5; --surface:#FFFFFF; --surface-2:#F5F6FA; --surface-3:#EBEDF3;
  --text:#181B2B; --text-2:#5A5F76; --text-3:#9499AE;
  --line:rgba(20,22,45,.09); --line-2:rgba(20,22,45,.14);
  --btn-fill:#23263C; --btn-fill-text:#FFFFFF;
  --shadow:0 18px 50px rgba(60,64,90,.20); --shadow-sm:0 6px 18px rgba(60,64,90,.14);
  --glow:radial-gradient(120% 90% at 100% 0%, rgba(232,19,43,.07), transparent 55%);
  --tile-filter:none;
  /* darker status hues for WCAG-AA contrast on the light surface */
  --st-yes:#0d8a4f; --st-queue:#b1620a; --st-low:#8a6d00; --st-no:#c41f37; --st-nodata:#565b73;
}
*{box-sizing:border-box}
/* No pinch / double-tap zoom of the UI — only the Leaflet map zooms. touch-action must sit on the
   element actually under the fingers, so disable zoom-gestures broadly, then hand the map back its
   own (none = Leaflet drives pan+pinch itself). */
*{touch-action:pan-x pan-y}
.leaflet-container,.leaflet-container *{touch-action:none}
html,body{height:100%;margin:0;overscroll-behavior:none}
body{
  font-family:var(--f); background:var(--bg); color:var(--text);
  overflow:hidden; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  font-size:15px; line-height:1.45;
  position:fixed; width:100%;   /* pin the layout so the keyboard can't drag the whole page (iOS) */
}
button{font-family:inherit;cursor:pointer;color:inherit;border:0;background:none}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2.5px solid var(--red);outline-offset:2px;border-radius:8px}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:8px}

/* ---------------- MAP ---------------- */
#map{position:fixed;inset:0;z-index:1;background:var(--bg)}
.leaflet-container{background:var(--bg);font-family:var(--f)}
.leaflet-tile-pane{filter:var(--tile-filter)}
.leaflet-control-zoom{display:none}   /* mobile zooms by pinch; desktop gets styled +/- buttons below */
@media (min-width:1024px){
  /* «.leaflet-bottom .leaflet-control-zoom» beats Leaflet's own margin rule so it clears FAB+tabbar */
  .leaflet-bottom .leaflet-control-zoom{display:flex;flex-direction:column;margin:0 24px 150px 0;border:0;
    border-radius:12px;overflow:hidden;box-shadow:var(--shadow-sm)}
  .leaflet-control-zoom a{width:40px;height:40px;line-height:40px;font-size:20px;font-weight:700;
    background:var(--surface);color:var(--text);border:1px solid var(--line)}
  .leaflet-control-zoom a:first-child{border-bottom:0}
  .leaflet-control-zoom a:hover{background:var(--surface-2);color:var(--red)}
  .leaflet-control-zoom a.leaflet-disabled{color:var(--text-3)}
}
.leaflet-control-attribution{
  background:transparent!important;color:var(--text-3)!important;font-size:10px;
  padding:2px 6px;backdrop-filter:blur(4px);
}
.leaflet-control-attribution a{color:var(--text-3)!important}

/* marker pin (status colored) */
.pin{
  width:30px;height:30px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);
  display:grid;place-items:center;border:2.5px solid #fff;
  box-shadow:0 4px 10px rgba(0,0,0,.4);
}
.pin svg{width:15px;height:15px;transform:rotate(45deg);fill:#fff}
.pin.s-yes{background:var(--st-yes)} .pin.s-queue{background:var(--st-queue)}
.pin.s-low{background:var(--st-low)} .pin.s-no{background:var(--st-no)}
.pin.s-nodata{background:var(--st-nodata)}
.pin.s-low svg{fill:#3a2f00}
/* ===== gdebenz-style pump pin (unbranded АЗС) — teardrop + fuel-pump glyph + status glow ===== */
.gpin{position:relative;width:34px;height:40px}
.gpin-body{position:absolute;left:50%;top:1px;width:30px;height:30px;margin-left:-15px;z-index:2;
  border-radius:50% 50% 50% 0;transform:rotate(-45deg);display:grid;place-items:center;
  border:2.5px solid #fff;box-shadow:0 4px 9px rgba(0,0,0,.42);background:var(--st-nodata)}
.gpin-body svg{width:16px;height:16px;transform:rotate(45deg);fill:#fff}
.gpin.s-yes .gpin-body{background:var(--st-yes)} .gpin.s-queue .gpin-body{background:var(--st-queue)}
.gpin.s-low .gpin-body{background:var(--st-low)} .gpin.s-no .gpin-body{background:var(--st-no)}
.gpin.s-nodata .gpin-body{background:var(--st-nodata)}
.gpin.s-low .gpin-body svg{fill:#3a2f00}
/* soft status glow behind the pin head (the gdebenz "halo" look) */
.gpin-glow{position:absolute;left:50%;top:4px;width:32px;height:32px;margin-left:-16px;z-index:1;
  border-radius:50%;background:var(--st-nodata);filter:blur(8px);opacity:.75}
.gpin.s-yes .gpin-glow{background:var(--st-yes)} .gpin.s-queue .gpin-glow{background:var(--st-queue)}
.gpin.s-no .gpin-glow{background:var(--st-no);opacity:.9} .gpin.s-low .gpin-glow{background:var(--st-low)}
.gpin.s-nodata .gpin-glow{opacity:.4}
.gpin.match .gpin-body{box-shadow:0 0 0 3px #FFC83A,0 4px 9px rgba(0,0,0,.5)}
.gpin.is-active{z-index:1000}
.gpin.is-active .gpin-body{transform:rotate(-45deg) scale(1.12)}
.gpin-just .gpin-body{animation:gpin-pop .55s var(--ease)}
@keyframes gpin-pop{0%{transform:rotate(-45deg) scale(.55)}55%{transform:rotate(-45deg) scale(1.18)}100%{transform:rotate(-45deg) scale(1)}}
/* user "you are here" dot */
.user-dot{width:16px;height:16px;border-radius:50%;background:#2b8cff;border:3px solid #fff;
  box-shadow:0 0 0 1.5px rgba(43,140,255,.5),0 2px 7px rgba(0,0,0,.45);position:relative}
.user-dot::before{content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;
  margin:-8px 0 0 -8px;border-radius:50%;background:rgba(43,140,255,.45);
  animation:userPulse 2.2s ease-out infinite}
@keyframes userPulse{0%{transform:scale(1);opacity:.7}100%{transform:scale(3);opacity:0}}
/* cluster bubble */
.cl{
  width:40px;height:40px;border-radius:50%;display:grid;place-items:center;
  font-weight:800;font-size:14px;color:#fff;border:3px solid rgba(255,255,255,.85);
  background:#3a3f63;box-shadow:0 6px 16px rgba(0,0,0,.4)}
.cl.big{width:50px;height:50px;font-size:16px}
/* cluster tinted by best status inside (visible when zoomed out) */
.cl.s-yes{background:var(--st-yes)} .cl.s-queue{background:var(--st-queue)}
.cl.s-low{background:var(--st-low);color:#3a2f00} .cl.s-no{background:var(--st-no)}
/* cluster pie ring: a conic-gradient of the status mix inside + a dark centre with the count */
.clp{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;position:relative;
  box-shadow:0 6px 16px rgba(0,0,0,.42)}
.clp::before{content:"";position:absolute;inset:5px;border-radius:50%;background:#1c1e30}
.clp span{position:relative;z-index:1;font-weight:800;font-size:14px;color:#fff}
.clp.big{width:54px;height:54px}.clp.big::before{inset:6px}.clp.big span{font-size:16px}

/* ===== FBENZ MARKER SYSTEM — "Living-Drop" (brand coin + status halo) =====
   brand = the COIN's fill (static). status = animated HALO + a static ring baked into the
   coin's box-shadow (so status reads even paused / reduced-motion / mid-pan). */
.leaflet-div-icon{background:transparent;border:0}
.fmk{position:relative;width:36px;height:36px;--sc:var(--st-nodata)}
.fmk i{position:absolute;top:50%;left:50%;border-radius:50%}
/* static status glow behind brand coins (gdebenz colored-halo look; separate from the sonar halo) */
.fmk::after{content:"";position:absolute;top:50%;left:50%;width:26px;height:26px;margin:-13px 0 0 -13px;
  border-radius:50%;background:var(--sc);filter:blur(8px);opacity:.55;z-index:0;pointer-events:none}
.fmk.s-nodata::after{opacity:.3}
.fmk.s-no::after{opacity:.8}
.fmk-coin{width:26px;height:26px;margin:-13px 0 0 -13px;display:grid;place-items:center;
  background:var(--bc,#3a3f63);color:var(--bf,#fff);font:800 12.5px/1 var(--f);letter-spacing:-.3px;
  box-shadow:0 0 0 2px #fff,0 0 0 4.5px var(--sc),0 3px 8px rgba(0,0,0,.45);z-index:3;user-select:none}
.fmk-coin svg{display:block;width:15px;height:15px;fill:currentColor}
.fmk-halo{width:26px;height:26px;margin:-13px 0 0 -13px;box-shadow:0 0 0 3px var(--sc);
  opacity:0;z-index:1;pointer-events:none}
.fmk.s-yes{--sc:var(--st-yes)} .fmk.s-queue{--sc:var(--st-queue)} .fmk.s-low{--sc:var(--st-low)}
.fmk.s-no{--sc:var(--st-no)} .fmk.s-nodata{--sc:var(--st-nodata)}
.fmk.s-nodata .fmk-coin{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--sc),0 3px 8px rgba(0,0,0,.45)}
.fmk.b-generic{--bc:var(--surface-3);--bf:var(--text-2)}
html[data-theme="dark"] .fmk.b-generic{--bf:#fff}   /* white pump on the dark generic coin */
.fmk-drop{width:17px;height:17px}.fmk-drop .body{fill:var(--red)}.fmk-drop .hl{fill:#fff}
/* gold ring = "this АЗС has the fuel you filtered for" */
.fmk.match .fmk-coin{box-shadow:0 0 0 2px #fff,0 0 0 4.5px var(--sc),0 0 0 7px #FFC83A,0 4px 9px rgba(0,0,0,.5)}
.fmk.is-active{z-index:1000}
.fmk.is-active .fmk-coin{transform:scale(1.1);transition:transform .14s var(--ease)}

/* ----- alive sonar halo: animate ONLY transform+opacity (GPU); runs only while map idle ----- */
.fmk.s-yes   .fmk-halo{animation:fb-sonar   2.6s var(--ease)  var(--d,0s) infinite}
.fmk.s-low   .fmk-halo{animation:fb-sonar   3.3s var(--ease)  var(--d,0s) infinite}
.fmk.s-queue .fmk-halo{animation:fb-shimmer 2.1s ease-in-out  var(--d,0s) infinite}
.fmk.s-no    .fmk-halo{animation:fb-sonar   1.25s var(--ease) var(--d,0s) infinite}
.fmk.s-nodata .fmk-halo{animation:none;opacity:0}
.fmk-halo{animation-play-state:paused}
.leaflet-container.fb-live .fmk-halo{animation-play-state:running}
.leaflet-dragging .fmk-halo,.leaflet-zoom-anim .fmk-halo{animation-play-state:paused}
@keyframes fb-sonar{0%{transform:scale(1);opacity:.5}70%{opacity:0}100%{transform:scale(2.1);opacity:0}}
@keyframes fb-shimmer{0%,100%{transform:scale(1);opacity:.18}50%{transform:scale(1.22);opacity:.48}}
/* "1 голос засчитан" — a real one-shot spring+ping, not a checkmark */
.fmk.fb-just .fmk-coin{animation:fb-pop .6s var(--ease)}
.fmk.fb-just .fmk-halo{animation:fb-ping .66s var(--ease);animation-play-state:running!important}
@keyframes fb-pop{0%{transform:scale(.5)}55%{transform:scale(1.16)}100%{transform:scale(1)}}
@keyframes fb-ping{0%{transform:scale(1);opacity:.85}100%{transform:scale(2.5);opacity:0}}

/* ---------- отметки водителей: список + «спасибо»/«не так» ---------- */
.rep-list{display:flex;flex-direction:column;gap:8px}
/* строки отметок v104: слева статусное «ребро» (быстрый скан столбца цветом), капсула с
   каплей-глифом, stagger-появление. Ребро — inset-тень, чтобы не трогать границу строки. */
.rep-row{display:flex;align-items:center;gap:10px;background:var(--surface);
  border:1px solid var(--line);border-radius:12px;padding:9px 12px 9px 14px;
  box-shadow:inset 3px 0 0 var(--line-2);
  animation:rep-in .26s var(--ease) both;animation-delay:var(--d,0s)}
.rep-row.s-yes{box-shadow:inset 3px 0 0 var(--st-yes)}
.rep-row.s-queue{box-shadow:inset 3px 0 0 var(--st-queue)}
.rep-row.s-low{box-shadow:inset 3px 0 0 var(--st-low)}
.rep-row.s-no{box-shadow:inset 3px 0 0 var(--st-no)}
@keyframes rep-in{from{opacity:0;transform:translateY(8px)}}
.rep-old{opacity:.72}
.rep-st{flex:0 0 auto;width:34px;height:34px;border-radius:11px;display:flex;align-items:center;
  justify-content:center;color:#fff}
.rep-st svg{width:19px;height:19px;fill:currentColor;
  animation:glyph-in .32s var(--ease) both;animation-delay:calc(var(--d,0s) + 60ms)}
@keyframes glyph-in{0%{transform:scale(.5);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
.rep-st.s-yes{background:var(--st-yes)} .rep-st.s-queue{background:var(--st-queue)}
.rep-st.s-low{background:var(--st-low);color:#3a2f00} .rep-st.s-no{background:var(--st-no)}
.rep-st.s-nodata{background:var(--st-nodata)}
/* современные браузеры: капля в цвет статуса на мягкой подложке-линзе (обе темы) */
@supports (background:color-mix(in srgb,red 14%,transparent)){
  .rep-st{background:color-mix(in srgb,var(--stc,var(--st-nodata)) 14%,transparent);color:var(--stc,var(--st-nodata))}
  .rep-st.s-yes{--stc:var(--st-yes);background:color-mix(in srgb,var(--st-yes) 14%,transparent);color:var(--st-yes)}
  .rep-st.s-queue{--stc:var(--st-queue);background:color-mix(in srgb,var(--st-queue) 16%,transparent);color:var(--st-queue)}
  .rep-st.s-low{--stc:var(--st-low);background:color-mix(in srgb,var(--st-low) 18%,transparent);color:var(--st-low)}
  .rep-st.s-no{--stc:var(--st-no);background:color-mix(in srgb,var(--st-no) 14%,transparent);color:var(--st-no)}
  .rep-st.s-nodata{background:color-mix(in srgb,var(--st-nodata) 16%,transparent);color:var(--st-nodata)}
  /* белая галка внутри полной капли «есть» остаётся белой на заливке самой капли */
}
.rep-fuels{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.rf{font-style:normal;font-size:10.5px;font-weight:800;padding:1px 6px;border-radius:var(--r-pill);
  border:1px solid var(--line);color:var(--text-3)}
.rf.on{color:var(--st-yes);border-color:var(--st-yes)}
.rf.off{text-decoration:line-through;opacity:.7}
.rep-at.is-old{display:inline-flex;align-items:center;gap:3px;color:var(--text-3);
  background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-pill);padding:2px 7px}
.rep-at.is-old svg{width:10px;height:10px;fill:currentColor;opacity:.85}
.vote-pop svg{animation:vote-pop .45s var(--ease)}
@keyframes vote-pop{0%{transform:scale(1)}35%{transform:scale(1.35) rotate(-9deg)}70%{transform:scale(.94)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){
  .rep-row,.ff-row,.rep-st svg,.vote-pop svg{animation:none}
}
.rep-main{flex:1;min-width:0}
.rep-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rep-author{font-size:11.5px;font-weight:800;color:var(--red)}
.rep-at{font-size:10.5px;color:var(--text-3);font-weight:600;flex:0 0 auto}
.rep-status{font-size:13.5px;color:var(--text);line-height:1.3;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.rep-votes{display:flex;gap:6px;flex:0 0 auto}
.rep-vote{display:flex;align-items:center;gap:4px;height:32px;padding:0 9px;border-radius:var(--r-pill);
  border:1px solid var(--line);background:var(--surface-2);color:var(--text-2);cursor:pointer;
  font:inherit;font-size:12px;font-weight:700;transition:transform .1s var(--ease),border-color .12s}
.rep-vote svg{width:14px;height:14px;fill:currentColor}
.rep-vote b{font-weight:800;min-width:0}
.rep-vote:active{transform:scale(.93)}
.rep-vote.up.on{background:var(--st-yes);border-color:var(--st-yes);color:#fff}
.rep-vote.down.on{background:var(--st-no);border-color:var(--st-no);color:#fff}
.rep-own{font-size:10.5px;font-weight:700;color:var(--text-3);border:1px dashed var(--line);
  border-radius:var(--r-pill);padding:4px 9px}

/* ---------- Fineapp promo modal ---------- */
.fpromo-backdrop{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;
  background:rgba(8,9,20,.55);backdrop-filter:blur(3px);opacity:0;transition:opacity .22s var(--ease);
  padding:24px}
.fpromo-backdrop.show{opacity:1}
.fpromo{width:min(92vw,340px);background:var(--surface);border:1px solid var(--line);
  border-radius:20px;padding:22px 20px 16px;text-align:center;
  box-shadow:0 18px 60px rgba(0,0,0,.45);transform:translateY(14px) scale(.97);
  transition:transform .22s var(--ease)}
.fpromo-backdrop.show .fpromo{transform:none}
.fpromo-coin{width:58px;height:58px;margin:0 auto 12px;border-radius:17px;background:var(--surface-2);
  border:1px solid var(--line);display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 4px var(--red-soft)}
.fpromo-coin img{width:36px;height:36px;object-fit:contain}
.fpromo h3{font-size:16.5px;font-weight:800;margin:0 0 7px;color:var(--text)}
.fpromo p{font-size:13.5px;line-height:1.45;color:var(--text-2);margin:0 0 15px}
.fpromo .btn{width:100%}
.fpromo .btn.btn-ghost{margin-top:8px}


/* ---------- плашка сети: офлайн / очередь отметок ---------- */
.net-chip{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(76px + var(--safe-b,0px));
  z-index:55;border:1px solid var(--line);background:var(--surface);color:var(--text-2);
  font:inherit;font-size:12.5px;font-weight:700;border-radius:var(--r-pill);padding:8px 14px;
  box-shadow:0 6px 24px rgba(0,0,0,.25);cursor:pointer}
.net-chip.q{border-color:var(--red);color:var(--red);box-shadow:0 0 0 3px var(--red-soft)}


/* ---------- умный поиск в «Ситуации» ---------- */
.list-search{display:flex;align-items:center;gap:9px;margin:10px 0 2px;background:var(--surface-2);
  border:1px solid var(--line);border-radius:12px;padding:0 12px;height:42px}
.list-search svg{width:17px;height:17px;fill:var(--text-3);flex:0 0 auto}
.list-search input{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:16px;
  color:var(--text);height:100%}
.list-search input:focus{outline:none}
.list-search input::placeholder{color:var(--text-3)}
#listSearchClear{width:26px;height:26px;border-radius:50%;border:0;background:var(--surface-3);
  display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
#listSearchClear svg{width:12px;height:12px}
.list-sug{display:flex;flex-direction:column;gap:4px;margin:6px 0 2px}
.sug-item{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:var(--surface);
  border-radius:11px;padding:8px 11px;font:inherit;font-size:13.5px;font-weight:700;color:var(--text);
  cursor:pointer;text-align:left}
.sug-item svg{width:15px;height:15px;fill:var(--red);flex:0 0 auto}
.sug-item small{margin-left:auto;color:var(--text-3);font-weight:600;font-size:11px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}
.sug-item:hover{border-color:var(--red)}
.sug-cat{font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  color:var(--text-3);margin:4px 2px 0}
.pill-trust svg{width:13px;height:13px;fill:currentColor;margin-right:4px}
.card-trust{display:flex;align-items:center;gap:6px;margin:7px 0 0;font-size:11.5px;font-weight:700;
  color:var(--st-yes)}
.card-trust svg{width:13px;height:13px;fill:currentColor}
/* карточка «Нет данных»: вместо серых пилюль всех топлив — приглашение отметить */
.card-invite{margin:12px 0 0;font-size:12.5px;line-height:1.4;color:var(--text-3)}
/* вместо «Да, подтверждаю», когда свежая отметка — ваша (самоподтверждение запрещено) */
.own-note{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:650;
  color:var(--text-3);line-height:1.35;padding:3px 2px}
.own-note svg{width:15px;height:15px;fill:currentColor;flex:0 0 auto}


/* FAQ-аккордеон в «О сервисе» */
.faq-list{display:flex;flex-direction:column;gap:8px}
.faq-item{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:11px 14px}
.faq-item summary{font-weight:800;font-size:14px;cursor:pointer;list-style:none;position:relative;padding-right:22px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";position:absolute;right:0;top:-2px;font-size:18px;color:var(--red);font-weight:800}
.faq-item[open] summary::after{content:"–"}
.faq-item p{color:var(--text-2);font-size:13.5px;line-height:1.5;margin:8px 0 0}

@media (prefers-reduced-motion:reduce){
  .fmk-halo{animation:none!important;opacity:0!important}
  .fmk:not(.s-nodata) .fmk-coin{box-shadow:0 0 0 2px #fff,0 0 0 5px var(--sc),0 0 9px -1px var(--sc),0 3px 8px rgba(0,0,0,.45)}
  .fmk.fb-just .fmk-coin{animation:none!important}
}

/* ---------------- TOP BAR ---------------- */
.topbar{
  position:fixed;z-index:20;top:var(--maint-h);left:0;right:0;height:64px;
  display:flex;align-items:center;gap:10px;padding:10px 14px;
  pointer-events:none;
}
.topbar>*{pointer-events:auto}
.brand{display:flex;align-items:center;gap:9px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-pill);
  padding:8px 15px 8px 12px;box-shadow:var(--shadow-sm);color:var(--text)}
.brand-mark{width:30px;height:24px}
/* speed-F glyph (Fine brand) + "benz" in the Fine wordmark face */
.brand{gap:7px;padding-left:13px}
/* full designer lockup (F gradient + «benz»); color drives the currentColor «benz» letters per theme */
.brand-logo{height:27px;width:auto;display:block;flex:0 0 auto;color:var(--text)}
.fine-f{height:27px;width:auto;display:block;flex:0 0 auto}
/* Questrial ≈ the geometric monoline face of the Fine wordmark (square terminals, regular weight) */
.brand-word{font-family:"Questrial",var(--f);font-weight:400;font-size:24px;letter-spacing:0;color:var(--text);line-height:1}
.fbenz-logo{height:30px;width:auto;display:block}
.city-btn{display:inline-flex;align-items:center;gap:5px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-pill);
  padding:9px 12px;font-weight:700;font-size:14px;box-shadow:var(--shadow-sm);max-width:42vw}
.city-btn .ic{width:17px;height:17px;fill:var(--red);flex:0 0 auto}
.city-btn .ic-chev{width:16px;height:16px;fill:var(--text-3);flex:0 0 auto}
.city-btn #cityName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-actions{margin-left:auto;display:flex;gap:8px}
.icon-btn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm)}
.icon-btn svg{width:21px;height:21px;fill:var(--text)}
.icon-btn.add-desktop svg{fill:var(--red)}
#themeBtn .ic-sun{display:none;stroke:var(--text);fill:none;stroke-width:2;stroke-linecap:round}
html[data-theme="light"] #themeBtn .ic-moon{display:none}
html[data-theme="light"] #themeBtn .ic-sun{display:block}

/* Fine cross-promo chip (top-right) → opens the fines-payment app */
.fine-chip{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 13px;border-radius:var(--r-pill);
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm);color:var(--text)}
.fine-chip img{height:18px;width:auto;display:block}
.fine-chip span{font-family:"Questrial",var(--f);font-weight:400;font-size:15px}
.fine-chip .fc-arr{width:13px;height:13px;fill:var(--text-3)}
.fine-chip:hover{border-color:var(--red)}
/* tight phone widths: the top row (logo + city + Fine) overflows → Fine becomes an icon-only chip */
@media (max-width:560px){
  .fine-chip{width:44px;padding:0;justify-content:center}
  .fine-chip span,.fine-chip .fc-arr{display:none}
  .fine-chip img{height:20px}
}

/* floating action row under the header: Поиск / Поделиться / Поддержать / тема (gdebenz-style) */
.actionbar{position:fixed;z-index:18;top:calc(var(--maint-h) + 62px);left:14px;right:14px;
  display:flex;gap:8px;justify-content:space-between;pointer-events:none}   /* раскидать по ширине (не липнуть влево) */
.actionbar>*{pointer-events:auto}
.act-pill{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;border-radius:var(--r-pill);
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm);
  font-weight:700;font-size:13px;color:var(--text);white-space:nowrap}
.act-pill svg{width:18px;height:18px;fill:currentColor}
.act-pill.act-ico{width:38px;padding:0;justify-content:center;flex:0 0 auto}
.act-support{color:var(--red)} .act-support svg{fill:var(--red)}
@media (max-width:1023px){ body[data-view="list"] .actionbar{opacity:0;pointer-events:none} }
/* «Есть бензин» (тумблер карты): показывать только АЗС с живым статусом yes.
   Активация = упругий pop + капля «подпрыгивает» + зелёное пульс-гало — тот же язык,
   что у живых пинов карты (halo), 99% траффа мобильный → анимация на тапе, не hover */
.act-avail svg{transition:transform .25s var(--ease)}
.act-avail[aria-pressed="true"]{color:#fff;border-color:var(--st-yes);
  background:linear-gradient(135deg,#25d184,#149d61);
  animation:avail-pop .5s var(--ease),avail-halo 2.4s ease-out .5s infinite}
.act-avail[aria-pressed="true"] svg{animation:avail-drip 1.9s ease-in-out .55s infinite}
@keyframes avail-pop{0%{transform:scale(1)}35%{transform:scale(.88)}68%{transform:scale(1.08)}100%{transform:scale(1)}}
@keyframes avail-halo{0%{box-shadow:0 0 0 0 rgba(31,191,117,.55)}70%{box-shadow:0 0 0 11px rgba(31,191,117,0)}100%{box-shadow:0 0 0 0 rgba(31,191,117,0)}}
@keyframes avail-drip{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-1.5px) scale(1.12)}}
/* very narrow phones: «Есть бензин» collapses to an icon so the search/avail/theme row never overflows
   right (adaptive под все ширины — кнопки не «улетают» за экран) */
@media (max-width:360px){
  #availBtn{width:38px;padding:0;justify-content:center}
  #availBtn .lbl{display:none}
}
@media (min-width:1024px){
  .actionbar{right:auto;width:auto}
  body[data-view="list"] .actionbar{left:calc(var(--panel-w) + 14px)}   /* clear the sidebar */
}

/* PWA install nudge — floats just under the action row */
.install-banner{position:fixed;z-index:17;top:calc(var(--maint-h) + 110px);left:14px;right:14px;
  display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);animation:ib-in .3s var(--ease)}
@keyframes ib-in{from{opacity:0;transform:translateY(-8px)}}
.install-banner[hidden]{display:none}
.ib-logo{width:34px;height:auto;flex:0 0 auto}
.ib-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
.ib-text b{font-size:14px;font-weight:800}
.ib-text span{font-size:11.5px;color:var(--text-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ib-add{flex:0 0 auto;background:var(--red);color:#fff;border:0;border-radius:var(--r-pill);
  padding:9px 15px;font-weight:800;font-size:13px;font-family:inherit}
.ib-close{flex:0 0 auto;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  background:var(--surface-2);border:0}
.ib-close svg{width:15px;height:15px;fill:var(--text-3)}
.install-steps{margin:14px 0 4px;padding-left:20px;color:var(--text);font-size:14.5px;line-height:1.7}
.install-steps li{margin-bottom:6px}
.ish-ic{display:inline-grid;place-items:center;width:20px;height:20px;vertical-align:-5px}
.ish-ic svg{width:17px;height:17px;fill:var(--red)}
/* hide the floating install nudge whenever the list/sidebar is open (it overlapped the filter on
   desktop, and the «Ещё» → «Добавить на экран» item keeps install reachable) */
body[data-view="list"] .install-banner{display:none}
@media (min-width:1024px){ .install-banner{right:auto;width:360px} }

/* ---------------- LIST PANEL ---------------- */
.panel{
  position:fixed;z-index:15;background:var(--surface);
  display:flex;flex-direction:column;background-image:var(--glow);
}
.panel-grip{display:none}
.panel-head{padding:10px 16px 4px;flex:0 0 auto}
/* mini FineApp logo above the centered situation summary (просили вернуть на главную) */
.panel-fine{display:flex;align-items:center;justify-content:center;gap:5px;padding:0 0 8px}
.panel-fine img{height:16px;width:auto;display:block}
.panel-fine span{font-family:"Questrial",var(--f);font-weight:400;font-size:13px;color:var(--text-2)}
.summary{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:10px;justify-content:center}
.summary::-webkit-scrollbar{display:none}
.chip{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;
  background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-pill);
  padding:7px 13px;font-weight:700;font-size:13px}
.chip .dot{width:9px;height:9px;border-radius:50%}
.chip b{font-weight:800}
.filter{padding-bottom:13px;border-bottom:1px solid var(--line)}
/* ОДНА строка: «Фильтры (N)» + токены активных фильтров (тап = снять). По центру, с воздухом.
   margin:auto на краях центрирует группу, но не ломает скролл при переполнении (в отличие от
   justify-content:center, который прячет левый край). Параметры — в шите filterSheet. */
.filter-bar{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:6px 0 2px}
.filter-bar::-webkit-scrollbar{display:none}
.filter-bar>:first-child{margin-left:auto}
.filter-bar>:last-child{margin-right:auto}
.filter-bar .pill{flex:0 0 auto;padding:7px 12px;font-size:12.5px}
.pill-more{display:inline-flex;align-items:center;gap:5px}
.pill-more svg{width:14px;height:14px;fill:currentColor}
.pill-more .pm-n{display:inline-grid;place-items:center;min-width:17px;height:17px;border-radius:9px;
  background:#fff;color:var(--red);font-size:11px;font-weight:800;padding:0 4px}
.pill-more[aria-pressed="true"] .pm-n{background:#fff;color:var(--red)}
/* токен активного фильтра: залит красным, крестик для снятия */
.tok{display:inline-flex;align-items:center;gap:6px;background:var(--red);border-color:var(--red);color:#fff}
.tok svg{width:11px;height:11px;fill:currentColor;opacity:.85}
/* кнопка «Последние отметки» рядом с «Фильтрами» */
.pill-feed{display:inline-flex;align-items:center;gap:5px}
.pill-feed svg{width:13px;height:13px;fill:currentColor}
/* шит «Последние отметки»: полный список */
.feed-full{display:flex;flex-direction:column;gap:8px}
.ff-row{animation:rep-in .26s var(--ease) both;animation-delay:var(--d,0s);
  display:flex;align-items:center;gap:11px;background:var(--surface-2);border:1px solid var(--line);
  border-radius:13px;padding:10px 12px;font:inherit;color:var(--text);cursor:pointer;
  text-align:left;transition:.15s}
.ff-row:hover{border-color:var(--red);transform:translateY(-1px)}
.ff-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ff-main b{font-weight:800;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ff-main small{font-weight:700;font-size:11.5px}
.ff-main small.s-yes{color:var(--st-yes)} .ff-main small.s-queue{color:var(--st-queue)}
.ff-main small.s-low{color:#9a7b06} .ff-main small.s-no{color:var(--st-no)}
.ff-main small.s-nodata{color:var(--st-nodata)}
.ff-at{flex:0 0 auto;color:var(--text-3);font-size:11px;font-weight:600;white-space:nowrap}
.ff-arr{flex:0 0 auto;width:16px;height:16px;fill:var(--text-3)}
/* шит «Фильтры»: топливо-соты, тумблер «точно есть», группы пилюль, футер */
.fs-fuel{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:10px}
.fs-fbtn{height:46px;border-radius:13px;background:var(--surface-2);border:1px solid var(--line);
  font:inherit;font-weight:800;font-size:15px;color:var(--text-2);cursor:pointer;transition:.15s}
.fs-fbtn[aria-pressed="true"]{background:var(--red);border-color:var(--red);color:#fff;
  box-shadow:0 4px 14px -4px var(--red)}
.fs-avail{display:flex;align-items:center;gap:11px;width:100%;padding:12px 14px;margin:0 0 8px;
  border-radius:14px;background:var(--surface-2);border:1px solid var(--line);cursor:pointer;
  font:inherit;text-align:left;color:var(--text);transition:.15s}
.fs-avail>svg{width:18px;height:18px;fill:var(--st-yes);flex:0 0 auto}
.fs-avail span{flex:1;font-weight:800;font-size:14px}
.fs-avail small{display:block;font-weight:600;font-size:11.5px;color:var(--text-3);margin-top:1px}
.fs-sw{flex:0 0 auto;width:44px;height:26px;border-radius:13px;background:var(--surface-3);
  border:1px solid var(--line);position:relative;transition:.2s}
.fs-sw::after{content:"";position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;
  background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.3);transition:.2s}
.fs-avail[aria-pressed="true"]{border-color:var(--st-yes)}
.fs-avail[aria-pressed="true"] .fs-sw{background:var(--st-yes);border-color:var(--st-yes)}
.fs-avail[aria-pressed="true"] .fs-sw::after{left:20px}
/* заголовки секций и ряды пилюль в шите — по центру (просьба владельца) */
#filterSheet .section-label{text-align:center}
#filterSheet h2{text-align:center}
.fs-row{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:6px;justify-content:center}
.fs-row .pill{display:inline-flex;align-items:center;gap:5px}
.fs-row .pill svg{width:13px;height:13px;fill:currentColor}
.fs-foot{display:flex;gap:10px;margin-top:16px}
.fs-foot .btn{flex:1;margin:0}
.pill-cash{display:inline-flex;align-items:center;gap:5px}
.pill-cash svg{fill:currentColor}
.pill-cash[aria-pressed="true"]{background:var(--st-yes);border-color:var(--st-yes);color:#fff}
.pill{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-pill);
  padding:7px 14px;font-weight:700;font-size:13px;color:var(--text-2);transition:.15s}
.pill[aria-pressed="true"]{background:var(--red);border-color:var(--red);color:#fff}
.pill-avail{display:inline-flex;align-items:center;gap:5px}
.pill-avail svg{width:14px;height:14px;fill:currentColor}
.pill-avail[aria-pressed="true"]{background:var(--st-yes);border-color:var(--st-yes);color:#fff}
/* About: status colour legend */
.legend{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;
  color:var(--text-2);font-size:13.5px;line-height:1.4}
.legend li{display:flex;align-items:flex-start;gap:9px}
.legend b{color:var(--text)}
.lg-dot{flex:0 0 auto;width:14px;height:14px;border-radius:50%;margin-top:1px;border:2px solid var(--surface)}
.list{flex:1;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px 16px calc(20px + var(--safe-b));display:flex;flex-direction:column;gap:12px}

/* station card (Fineapp) */
.card{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r);
  padding:14px;transition:transform .12s var(--ease),box-shadow .15s;cursor:pointer}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.card:active{transform:scale(.99)}
.card-top{display:flex;align-items:flex-start;gap:11px}
.logo{width:42px;height:42px;border-radius:12px;flex:0 0 auto;display:grid;place-items:center;
  font-weight:800;font-size:15px;color:#fff;letter-spacing:-.5px;position:relative;overflow:hidden}
/* real brand logo in a clean circular white badge (like company app icons) — logo.dev gives a
   crisp 128px transparent mark that sits centred; the brand-colour coin ring frames it. */
.blogo{position:absolute;inset:8%;width:84%;height:84%;border-radius:50%;background:#fff;
  object-fit:contain;padding:13%;box-shadow:0 0 0 1px rgba(0,0,0,.07)}
.card-name{flex:1;min-width:0}
.card-name h3{margin:0;font-size:15.5px;font-weight:800;letter-spacing:-.2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-name .addr{color:var(--text-3);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.badge{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;
  border-radius:var(--r-pill);padding:5px 10px;font-weight:800;font-size:12px}
.badge svg{width:13px;height:13px}
.badge.s-yes{color:var(--st-yes);background:var(--st-yes-bg)}
.badge.s-queue{color:var(--st-queue);background:var(--st-queue-bg)}
.badge.s-low{color:#9a7b06;background:var(--st-low-bg)}
.badge.s-no{color:var(--st-no);background:var(--st-no-bg)}
.badge.s-nodata{color:var(--st-nodata);background:var(--st-nodata-bg)}
.fuels{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 0}
.fuel{font-weight:800;font-size:11.5px;padding:4px 9px;border-radius:8px;
  background:var(--surface-3);color:var(--text-2);border:1px solid var(--line)}
.fuel.on{background:var(--st-yes-bg);color:var(--st-yes);border-color:transparent}
.fuel.no{background:var(--st-no-bg);color:var(--st-no);border-color:transparent;text-decoration:line-through;text-decoration-thickness:1.5px}
.fuel-empty{font-size:13px;font-weight:700;color:var(--text-3);padding:5px 0}
/* инфо-группа (км/время) слева, кнопки справа; при нехватке ширины кнопки переносятся
   вниз ЦЕЛОЙ группой и жмутся вправо — «Отметить» больше не подрезается краем карточки */
.card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px 10px;
  margin-top:13px;flex-wrap:wrap}
.card-info{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.card-acts{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-left:auto}
.meta{display:flex;align-items:center;gap:5px;color:var(--text-3);font-size:12px;font-weight:600;white-space:nowrap}
.meta .km{color:var(--text);font-weight:800}
.mini-btn{display:inline-flex;align-items:center;gap:5px;border-radius:var(--r-pill);
  padding:8px 13px;font-weight:800;font-size:12.5px;background:var(--surface-3);border:1px solid var(--line)}
.mini-btn svg{width:14px;height:14px;fill:currentColor}
.mini-btn.red{background:var(--red);color:#fff;border-color:var(--red)}

/* ad / cross-promo card in the situation list (currently Fine) — единый нейтральный стиль
   с tg-card: обычная рамка, бренд-цвет только в иконке (красная рамка+кольцо кричали в списке) */
.ad-card{display:flex;align-items:center;gap:12px;background:var(--surface-2);border:1px solid var(--line);
  border-radius:var(--r);padding:12px 13px;transition:transform .12s var(--ease)}
.ad-card:hover{transform:translateY(-2px)}
.ad-logo{width:42px;height:42px;border-radius:12px;background:#fff;display:grid;place-items:center;flex:0 0 auto;
  box-shadow:0 0 0 1px var(--line)}
.ad-logo img{width:30px;height:auto;display:block}
.ad-main{flex:1;min-width:0}
.ad-h{font-weight:800;font-size:14.5px;letter-spacing:-.2px}
.ad-s{color:var(--text-3);font-size:12.5px;margin-top:2px;line-height:1.3}
.ad-chev{width:18px;height:18px;fill:var(--text-3);flex:0 0 auto}
/* «Наш канал в Telegram» promo card — clean neutral card (no blue outline), blue только в иконке.
   Живёт внутри списка «Ситуация» → виден ТОЛЬКО при открытии раздела, не в свёрнутом пике (правило ниже). */
.tg-card{display:flex;align-items:center;gap:12px;background:var(--surface-2);
  border:1px solid var(--line);border-radius:var(--r);padding:12px 13px;
  transition:transform .12s var(--ease)}
.tg-card:hover{transform:translateY(-2px)}
@media (max-width:1023px){ body[data-view="map"] .tg-card{display:none} }   /* не показывать в свёрнутом пике */
.tg-ic{width:42px;height:42px;border-radius:12px;flex:0 0 auto;display:grid;place-items:center;
  background:linear-gradient(160deg,#37BBFE,#1E96C8)}
.tg-ic svg{width:23px;height:23px;fill:#fff;margin-left:-1px}
.tg-main{flex:1;min-width:0}
.tg-tag{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;
  color:#1E96C8;background:rgba(41,171,226,.15);border-radius:var(--r-pill);padding:2px 8px;margin-bottom:3px}
.tg-h{font-weight:800;font-size:14.5px;letter-spacing:-.2px}
.tg-s{color:var(--text-3);font-size:12.5px;margin-top:2px;line-height:1.3}
.tg-arr{width:18px;height:18px;fill:var(--text-3);flex:0 0 auto}
/* cheapest-price sort pill */
.pill-cheap{display:inline-flex;align-items:center;gap:5px}
.pill-cheap svg{width:14px;height:14px;fill:currentColor}
.pill-cheap[aria-pressed="true"]{background:var(--st-queue);border-color:var(--st-queue);color:#fff}
/* «Показать все» toggle */
.show-all{width:100%;padding:12px;border-radius:var(--r);background:var(--surface-2);border:1px solid var(--line);
  font-weight:800;font-size:13.5px;color:var(--text-2);transition:.15s}
.show-all:hover{color:var(--red);border-color:var(--red)}
/* full Fine wordmark at the list bottom (white badge so the black "ine" reads on dark too) */
.list-fine{display:flex;flex-direction:column;align-items:center;gap:7px;margin:6px 0 2px;padding:2px}
.list-fine span{font-size:11px;color:var(--text-3);font-weight:700;letter-spacing:.3px}
.list-fine a{display:inline-flex;align-items:center;gap:7px;background:#fff;border-radius:12px;
  padding:8px 16px;box-shadow:0 0 0 1px var(--line),var(--shadow-sm)}
.list-fine img{height:22px;width:auto;display:block}
.list-fine b{font-family:"Questrial",var(--f);font-weight:400;font-size:18px;color:#141414;letter-spacing:-.3px}

/* ---------------- FAB + TABBAR ---------------- */
.fab{position:fixed;z-index:16;width:50px;height:50px;border-radius:16px;
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);
  display:grid;place-items:center}
.fab svg{width:23px;height:23px;fill:var(--red)}
.fab.on svg{fill:#fff}.fab.on{background:var(--red);border-color:var(--red)}
/* вертикальная «ПОДЕЛИТЬСЯ»: при загрузке разворачивается со столбиком букв (заметность),
   через ~4с плавно сворачивается в компактную иконку 50×50 (место).
   ПК: ЛЕВЫЙ нижний угол карты — правый занят зум-контролом (right:24/bottom:150 накладывались). */
.share-fab{position:fixed;z-index:16;left:24px;bottom:150px;width:50px;padding:15px 0;
  border-radius:16px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);
  display:flex;flex-direction:column;align-items:center;cursor:pointer;overflow:hidden;
  transition:border-color .2s,padding .45s var(--ease)}
/* translateX(-1.5px): оптическая центровка — у share-глифа «чернила» тяжелее справа */
.share-fab svg{width:19px;height:19px;fill:var(--red);flex:0 0 auto;transform:translateX(-1.5px)}
.share-fab span{writing-mode:vertical-rl;text-orientation:upright;font-size:10px;font-weight:800;
  letter-spacing:2px;color:var(--text-2);max-height:0;max-width:0;opacity:0;margin-top:0;overflow:hidden;
  transition:max-height .5s var(--ease),opacity .3s,margin-top .5s var(--ease)}
.share-fab.exp span{max-height:150px;max-width:20px;opacity:1;margin-top:9px}
.share-fab:hover{border-color:var(--red)}
/* max-width обязателен: база 0 — без него столбик букв при hover-раскрытии оставался невидимым */
@media (hover:hover){.share-fab:hover span{max-height:150px;max-width:20px;opacity:1;margin-top:9px}}
/* ПК, открыт сайдбар «Рядом» — уехать за его правый край, чтобы не лечь под список */
@media (min-width:1024px){body[data-view="list"] .share-fab{left:calc(var(--panel-w) + 24px)}}
/* bottom tab bar — shown on BOTH mobile (full width) and desktop (over the map, right of sidebar) */
.tabbar{display:flex;position:fixed;z-index:25;left:0;right:0;bottom:0;
  background:var(--surface);border-top:1px solid var(--line);
  padding:8px 6px calc(8px + var(--safe-b));justify-content:space-around;box-shadow:0 -6px 24px rgba(0,0,0,.18)}
.tab{display:flex;flex-direction:column;align-items:center;gap:3px;color:var(--text-3);background:none;border:0;
  cursor:pointer;font-size:10.5px;font-weight:700;flex:1;min-width:0;padding:3px;font-family:inherit}
.tab span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.tab svg{width:24px;height:24px;fill:currentColor}
@media (max-width:400px){.tab{font-size:9.5px}}
.tab[aria-current="true"]{color:var(--text)}
.tab.tab-add svg{fill:var(--red)}
.tab.tab-add[aria-current="true"]{color:var(--red)}
/* light theme: the heavy dark drop-shadow reads as a dirty band — soften it */
html[data-theme="light"] .tabbar{box-shadow:0 -2px 14px rgba(20,22,45,.05)}

/* ---------------- SHEETS / MODALS ---------------- */
.backdrop{position:fixed;inset:0;z-index:30;background:rgba(8,9,20,.55);
  backdrop-filter:blur(3px);animation:fade .2s}
@keyframes fade{from{opacity:0}}
.sheet{position:fixed;z-index:31;background:var(--surface);background-image:var(--glow);
  box-shadow:var(--shadow);display:flex;flex-direction:column;
  left:50%;bottom:0;width:100%;max-width:var(--sheet-max);transform:translateX(-50%);
  border-radius:var(--r-lg) var(--r-lg) 0 0;max-height:88vh;max-height:88dvh;
  padding-bottom:var(--safe-b);animation:slideUp .28s var(--ease)}
@keyframes slideUp{from{transform:translate(-50%,100%)}to{transform:translate(-50%,0)}}
.sheet-grip{width:42px;height:5px;border-radius:3px;background:var(--line-2);margin:10px auto 4px;flex:0 0 auto}
.sheet-body{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px 20px 22px;min-height:0}
.sheet h2{font-size:20px;font-weight:800;letter-spacing:-.4px;margin:.2em 0 .1em}
.sheet .sub{color:var(--text-3);font-size:13px;margin:0 0 4px}
.sheet-close{position:absolute;top:12px;right:14px;width:34px;height:34px;border-radius:50%;
  background:var(--surface-2);display:grid;place-items:center;z-index:2}
.sheet-close svg{width:18px;height:18px;fill:var(--text-2)}
/* light theme: grey-on-light was washed out — darken the icon + outline the circle for contrast */
html[data-theme="light"] .sheet-close{background:#EDEFF5;border:1px solid var(--line-2)}
html[data-theme="light"] .sheet-close svg{fill:var(--text)}

/* station detail */
.st-head{display:flex;align-items:flex-start;gap:13px;padding-top:8px}
.st-head .logo{width:50px;height:50px;font-size:17px}
.st-title h2{margin:0}
.st-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:14px 0}
.st-stat{display:flex;align-items:center;gap:8px;background:var(--surface-2);
  border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;flex:1;min-width:130px}
.st-stat .n{font-size:19px;font-weight:800;line-height:1}
.st-stat .l{color:var(--text-3);font-size:11.5px;font-weight:600}
/* distance under the station name (gdebenz «X км от вас») */
.st-dist{margin:6px 0 0;font-size:13px;font-weight:700;color:var(--text-2)}

/* gdebenz-style status card: status-tinted panel with title + freshness + actions */
.st-card{margin:16px 0 2px;padding:16px;border-radius:18px;background:var(--st-nodata-bg);
  border:1px solid var(--line);box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.st-card.s-yes{background:linear-gradient(135deg, rgba(31,191,117,.16), rgba(31,191,117,.08))}
.st-card.s-queue{background:linear-gradient(135deg, rgba(240,169,58,.13), rgba(240,169,58,.055));border-color:rgba(240,169,58,.24)}
.st-card.s-low{background:var(--st-low-bg)} .st-card.s-no{background:var(--st-no-bg)}
.st-card-head{display:flex;align-items:flex-start;gap:14px}
.sts-icon{width:52px;height:52px;border-radius:15px;flex:0 0 auto;display:grid;place-items:center;
  background:rgba(12,15,34,.42);color:var(--st-nodata);box-shadow:inset 0 0 0 1px var(--line)}
html[data-theme="light"] .sts-icon{background:rgba(255,255,255,.72)}
.sts-icon svg{width:27px;height:27px;fill:currentColor}
.st-card.s-yes .sts-icon{color:var(--st-yes)} .st-card.s-queue .sts-icon{color:var(--st-queue)}
.st-card.s-low .sts-icon{color:var(--st-low)} .st-card.s-no .sts-icon{color:var(--st-no)}
.sts-info{min-width:0;padding-top:2px}
.sts-title{font-size:21px;font-weight:800;letter-spacing:-.4px;line-height:1.1;color:var(--st-nodata)}
.st-card.s-yes .sts-title{color:var(--st-yes)} .st-card.s-queue .sts-title{color:var(--st-queue)}
.st-card.s-low .sts-title{color:#9a7b06} .st-card.s-no .sts-title{color:var(--st-no)}
.sts-lead{color:var(--text);font-size:13.5px;font-weight:750;margin-top:6px;line-height:1.35;opacity:.9}
.sts-meta{color:var(--text-2);font-size:12.5px;font-weight:700;margin-top:4px;line-height:1.35}
.stale-badge{display:inline-flex;align-items:center;gap:6px;margin-top:10px;
  background:var(--surface);color:var(--text-3);font-size:12px;font-weight:700;
  padding:5px 11px;border-radius:var(--r-pill);border:1px solid var(--line)}
.stale-badge svg{width:13px;height:13px;fill:currentColor}
.st-card-actual{margin-top:15px;padding-top:14px;border-top:1px solid rgba(255,255,255,.10)}
html[data-theme="light"] .st-card-actual{border-top-color:var(--line)}
.actual-q{font-weight:800;font-size:14px;margin:0}
.actual-hint{margin:4px 0 10px;color:var(--text-2);font-size:12.5px;font-weight:700;line-height:1.35}
.actual-btns{display:flex;gap:9px}
.actual-btns .btn{margin:0;flex:1;font-size:13.5px;padding:12px 10px}
.btn-confirm{background:var(--st-yes);color:#fff}
.btn-changed{background:rgba(18,22,44,.68);color:var(--text);border:1px solid var(--line-2)}
html[data-theme="light"] .btn-changed{background:rgba(255,255,255,.72)}
.btn-share-sit{margin-top:9px;background:rgba(18,22,44,.62);color:var(--text);border:1px solid var(--line-2)}
html[data-theme="light"] .btn-share-sit{background:rgba(255,255,255,.72)}
.btn-share-sit svg{fill:currentColor;opacity:.9}
.section-label{font-size:11.5px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;
  color:var(--text-3);margin:18px 0 9px}

/* buttons */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;
  border-radius:14px;padding:15px;font-weight:800;font-size:15px;transition:.15s}
.btn svg{width:19px;height:19px;fill:currentColor}
.btn-red{background:var(--red);color:#fff}
.btn-red:active{background:var(--red-2)}
.btn-fill{background:var(--btn-fill);color:var(--btn-fill-text)}
.btn-ghost{background:var(--surface-2);color:var(--text);border:1px solid var(--line)}
.btn-row{display:flex;gap:10px;margin-top:10px}
.btn-row .btn{margin:0}

/* route app picker */
.route-sub{line-height:1.35}
.route-options{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.route-opt{display:flex;align-items:center;gap:13px;width:100%;padding:14px;
  border-radius:16px;background:var(--surface-2);border:1px solid var(--line);
  text-align:left;transition:.14s var(--ease)}
.route-opt:active{transform:translateY(1px);background:var(--surface-3)}
.route-opt b{display:block;font-size:15px;font-weight:850;color:var(--text);line-height:1.2}
.route-opt small{display:block;margin-top:3px;font-size:12px;font-weight:650;color:var(--text-2);line-height:1.3}
.route-ico{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;flex:0 0 auto;
  background:linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border:1px solid var(--line);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.route-ico svg{width:30px;height:30px;display:block}
.route-ico .ri-bg{fill:rgba(255,255,255,.12)}
.route-ico .ri-main{fill:var(--text-2)}
html[data-theme="light"] .route-ico{background:#F1F3F8;border-color:rgba(20,22,45,.08);box-shadow:none}
html[data-theme="light"] .route-ico .ri-bg{fill:#fff}
html[data-theme="light"] .route-ico .ri-main{fill:#5b6378}

/* vote: status grid + fuel select */
.status-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.status-opt{display:flex;align-items:center;gap:11px;background:var(--surface-2);
  border:2px solid var(--line);border-radius:var(--r);padding:14px;font-weight:800;font-size:15px;transition:.12s}
.status-opt .si{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:0 0 auto}
.status-opt .si svg{width:18px;height:18px;fill:#fff}
.status-opt[aria-pressed="true"]{border-color:currentColor;transform:translateY(-1px)}
.status-opt.s-yes[aria-pressed="true"]{color:var(--st-yes)} .status-opt.s-yes .si{background:var(--st-yes)}
.status-opt.s-queue[aria-pressed="true"]{color:var(--st-queue)} .status-opt.s-queue .si{background:var(--st-queue)}
.status-opt.s-low[aria-pressed="true"]{color:#9a7b06} .status-opt.s-low .si{background:var(--st-low)}
.status-opt.s-low .si svg{fill:#3a2f00}
.status-opt.s-no[aria-pressed="true"]{color:var(--st-no)} .status-opt.s-no .si{background:var(--st-no)}
.fuel-select{display:flex;gap:8px;flex-wrap:wrap}
.fuel-opt{font-weight:800;font-size:14px;padding:11px 16px;border-radius:12px;
  background:var(--surface-2);border:2px solid var(--line);color:var(--text-2)}
.fuel-opt[aria-pressed="true"]{background:var(--st-yes-bg);border-color:var(--st-yes);color:var(--st-yes)}
.presence-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.presence-opt{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-height:74px;
  background:var(--surface-2);border:2px solid var(--line);border-radius:var(--r);padding:14px 15px;
  color:var(--text-2);font-family:inherit;text-align:left;transition:.12s}
.presence-opt span{font-size:18px;font-weight:900;color:var(--text)}
.presence-opt small{font-size:12.5px;font-weight:700;line-height:1.25;color:var(--text-2)}
.presence-opt[aria-pressed="true"]{transform:translateY(-1px)}
.presence-opt.p-yes[aria-pressed="true"]{background:var(--st-yes-bg);border-color:var(--st-yes)}
.presence-opt.p-yes[aria-pressed="true"] span,.presence-opt.p-yes[aria-pressed="true"] small{color:var(--st-yes)}
.presence-opt.p-no[aria-pressed="true"]{background:var(--st-no-bg);border-color:var(--st-no)}
.presence-opt.p-no[aria-pressed="true"] span,.presence-opt.p-no[aria-pressed="true"] small{color:var(--st-no)}
.vote-details{margin-top:6px}
/* per-fuel vote marks (Есть/Нет per grade) */
.fmarks{display:flex;flex-direction:column;gap:8px}
.fmark{display:flex;align-items:center;gap:12px;background:var(--surface-2);border:1px solid var(--line);
  border-radius:var(--r);padding:8px 8px 8px 16px}
.fmark-label{font-weight:800;font-size:16px;flex:1}
.fmark-btns{display:flex;gap:6px}
.fm-btn{font-weight:800;font-size:13.5px;padding:9px 16px;border-radius:10px;
  background:var(--surface-3);border:2px solid var(--line);color:var(--text-2);transition:.12s}
.fm-btn.fm-yes[aria-pressed="true"]{background:var(--st-yes);border-color:var(--st-yes);color:#fff}
.fm-btn.fm-no[aria-pressed="true"]{background:var(--st-no);border-color:var(--st-no);color:#fff}
/* vote: optional price field shown next to «Есть/Нет» when fuel is present */
.fmark-right{display:flex;align-items:center;gap:8px}
/* iOS Safari auto-zooms the whole page on focus of any input whose font-size is < 16px, and since the
   viewport no longer locks user-scalable it doesn't reliably zoom back out. Keep every form control at
   >= 16px so focus never triggers the zoom (pinch-zoom stays available for accessibility). This base
   rule covers unstyled/future inputs (e.g. #addUrl); the class rules below are bumped to 16px too. */
input, textarea, select { font-size: 16px; }
.fm-price{width:66px;height:38px;border-radius:10px;border:2px solid var(--line);background:var(--surface-3);
  color:var(--text);font-family:inherit;font-weight:700;font-size:16px;text-align:center;outline:none;padding:0 6px}
.fm-price::placeholder{color:var(--text-3);font-weight:600}
.fm-price:focus-visible{border-color:var(--st-yes);outline:none}
/* per-fuel prices on card + detail */
.prices{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 0}
.price{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;padding:4px 9px;
  border-radius:8px;background:var(--surface-3);color:var(--text-2);border:1px solid var(--line)}
.price b{font-weight:800;color:var(--text);font-size:11.5px}
.price.hit{background:var(--st-yes-bg);color:var(--st-yes);border-color:transparent}
.price.hit b{color:var(--st-yes)}
/* vote: per-car limit field + «нет налички» toggle */
.extra-row{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap}
.limit-field{display:flex;align-items:center;gap:8px;background:var(--surface-2);border:2px solid var(--line);
  border-radius:12px;padding:0 6px 0 14px;font-weight:800;font-size:13.5px;color:var(--text-2);height:46px}
.limit-field input{width:54px;height:38px;border:0;background:none;text-align:center;font-family:inherit;
  font-weight:800;font-size:16px;color:var(--text);outline:none}
.cash-toggle{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--surface-2);
  border:2px solid var(--line);border-radius:12px;padding:10px 14px;font-weight:800;font-size:13.5px;
  color:var(--text-2);min-height:46px;height:auto;line-height:1.2;text-align:center}
.cash-toggle svg{width:18px;height:18px;fill:currentColor}
.cash-toggle[aria-pressed="true"]{background:var(--st-no-bg);border-color:var(--st-no);color:var(--st-no)}
/* station info badges (limit / no-cash) on cards + detail */
.itags{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 0}
.itag{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:800;padding:4px 9px;border-radius:8px}
.itag svg{width:13px;height:13px;fill:currentColor}
.itag-limit{background:var(--st-queue-bg);color:var(--st-queue)}
.itag-cash{background:var(--st-no-bg);color:var(--st-no)}
.itag-fuelcard{background:rgba(79,141,255,.14);color:#73a6ff}
html[data-theme="light"] .itag-fuelcard{background:rgba(47,112,217,.12);color:#2f70d9}
.cond-row{display:flex;gap:8px;flex-wrap:wrap}
.cond{flex:1 1 54px;text-align:center;font-weight:800;font-size:14px;padding:11px 10px;border-radius:12px;
  background:var(--surface-2);border:2px solid var(--line);color:var(--text-2)}
.cond[aria-pressed="true"]{border-color:var(--st-queue);color:var(--st-queue);background:var(--st-queue-bg)}
.data-source{margin:6px 0 0;color:var(--text-2);font-size:12px;font-weight:700}
.notif-list{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.notif-item{display:flex;gap:12px;align-items:flex-start;background:var(--surface-2);border:1px solid var(--line);
  border-radius:14px;padding:14px 15px}
.notif-item>svg{width:22px;height:22px;fill:var(--red);flex:0 0 auto;margin-top:1px}
.notif-body{font-size:14.5px;font-weight:600;line-height:1.4;color:var(--text)}
.notif-time{display:block;color:var(--text-3);font-size:11.5px;font-weight:600;margin-top:5px}

/* search sheet */
.sheet-search{top:var(--maint-h);bottom:auto;border-radius:0 0 var(--r-lg) var(--r-lg);max-height:80vh;max-height:80dvh;
  animation:slideDown .26s var(--ease)}
@keyframes slideDown{from{transform:translate(-50%,-100%)}to{transform:translate(-50%,0)}}
.search-field{display:flex;align-items:center;gap:10px;background:var(--surface-2);
  border:1px solid var(--line);border-radius:14px;padding:13px 15px;margin:6px 0 4px}
.search-field svg{width:20px;height:20px;fill:var(--text-3);flex:0 0 auto}
.search-field input{flex:1;border:0;background:none;color:var(--text);font-size:16px;font-family:inherit;outline:none}
.res{display:flex;flex-direction:column;gap:2px;margin-top:8px}
.res-item{display:flex;align-items:center;gap:12px;padding:13px 8px;border-radius:12px;border-bottom:1px solid var(--line)}
.res-item:hover{background:var(--surface-2)}
.res-item .logo{width:38px;height:38px;font-size:14px}
.res-item .ri-main{flex:1;min-width:0}
.res-item h4{margin:0;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.res-item .ri-sub{color:var(--text-3);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* me sheet */
.me-link{display:flex;align-items:center;gap:13px;padding:15px 6px;border-bottom:1px solid var(--line);font-weight:700}
.me-link svg{width:22px;height:22px;fill:var(--red);flex:0 0 auto}
.me-link .arr{margin-left:auto;fill:var(--text-3);width:18px;height:18px}
.me-link small{display:block;color:var(--text-3);font-weight:500;font-size:12.5px}

/* achievements / badges grid (our brand: red coin when earned, muted + progress while locked) */
.ach-label{display:flex;align-items:center;gap:8px}
.ach-label #badgesCount{color:var(--red);font-weight:800}
.ach-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:2px 0 6px}
.ach-load,.ach-err{grid-column:1/-1;text-align:center;color:var(--text-3);font-size:13px;padding:16px}
.ach{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;
  background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:13px 8px 11px}
.ach-ic{position:relative;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;
  background:var(--surface-3);color:var(--text-3)}
.ach-ic svg{width:25px;height:25px;fill:currentColor}
.ach.done .ach-ic{background:linear-gradient(150deg,var(--red),var(--red-2));color:#fff;
  box-shadow:0 5px 13px -3px rgba(232,19,43,.55)}
.ach-check{position:absolute;right:-3px;bottom:-3px;width:19px;height:19px;border-radius:50%;
  background:var(--st-yes);display:grid;place-items:center;border:2.5px solid var(--surface-2)}
.ach-check svg{width:11px;height:11px;fill:#fff}
.ach-t{font-size:11.5px;font-weight:800;line-height:1.2;color:var(--text-2);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.4em}
.ach.done .ach-t{color:var(--text)}
.ach-sub{font-size:10.5px;font-weight:700;color:var(--text-3)}
.ach.done .ach-sub{color:var(--st-yes)}
.ach-bar{width:100%;height:4px;border-radius:2px;background:var(--surface-3);overflow:hidden;margin-top:1px}
.ach-bar i{display:block;height:100%;background:var(--red);border-radius:2px}

/* trust-rating card (Phase 2) — tier-tinted: Новичок=muted, Надёжный=red, Эксперт=gold→red */
.rating-card{display:flex;align-items:center;gap:13px;padding:14px;border-radius:16px;margin:6px 0 2px;
  background:var(--surface-2);border:1px solid var(--line)}
.rating-load{padding:0;border:0;background:none;min-height:0}
.rating-card .rc-ic{width:46px;height:46px;border-radius:50%;flex:0 0 auto;display:grid;place-items:center;
  background:var(--surface-3);color:var(--text-3)}
.rating-card .rc-ic svg{width:26px;height:26px;fill:currentColor}
.rating-card.t-trusted{background:var(--red-soft);border-color:transparent}
.rating-card.t-trusted .rc-ic{background:linear-gradient(150deg,var(--red),var(--red-2));color:#fff}
.rating-card.t-expert{background:linear-gradient(135deg,rgba(245,170,30,.18),rgba(232,19,43,.13));border-color:transparent}
.rating-card.t-expert .rc-ic{background:linear-gradient(150deg,#F5AA1E,#E8132B);color:#fff}
.rc-body{flex:1;min-width:0}
.rc-tier{font-size:14.5px;font-weight:700}
.rc-tier b{font-weight:800}
.rc-sub{font-size:12px;color:var(--text-3);font-weight:600;margin-top:2px}
.rc-bar{height:5px;border-radius:3px;background:var(--surface-3);overflow:hidden;margin:8px 0 4px}
.rc-bar i{display:block;height:100%;background:var(--red);border-radius:3px}
.rc-next{font-size:11px;color:var(--text-3);font-weight:700}

/* per-station chat */
/* dedicated, framed scroll box — stays put even with 1000+ messages (no chaining to the card) */
.chat-list{display:flex;flex-direction:column;gap:8px;height:260px;overflow-y:auto;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;
  padding:10px;margin-top:4px;background:var(--bg);border:1px solid var(--line);border-radius:14px}
.chat-empty{margin:auto 0;color:var(--text-3);font-size:13px;text-align:center;padding:8px;line-height:1.45}
.chat-msg{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:9px 12px;flex:0 0 auto}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:3px}
.chat-tag{font-size:11.5px;font-weight:800;color:var(--red)}
.chat-at{font-size:10.5px;color:var(--text-3);font-weight:600;flex:0 0 auto}
.chat-text{font-size:14px;color:var(--text);line-height:1.35;word-break:break-word}
.chat-box{display:flex;gap:8px;margin-top:10px}
.chat-box input{flex:1;min-width:0;height:44px;border-radius:12px;border:1px solid var(--line);
  background:var(--surface-2);padding:0 14px;font-size:16px;font-family:inherit;color:var(--text)}
.chat-box input:focus-visible{outline:2px solid var(--red);outline-offset:1px}
.chat-send{position:relative;flex:0 0 auto;width:44px;height:44px;border-radius:12px;background:var(--red);
  border:0;display:grid;place-items:center;overflow:hidden}
.chat-send .cs-ic{width:20px;height:20px;fill:#fff}
.chat-send .cs-timer{display:none;position:relative;z-index:1;font-weight:800;font-size:14px;
  color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.chat-send:disabled:not(.cooling){opacity:.5}
/* rate-limited: send icon → animated depleting countdown ring + seconds left */
.chat-send.cooling{background:var(--surface-3)}
.chat-send.cooling .cs-ic{display:none}
.chat-send.cooling .cs-timer{display:block}
.chat-send.cooling::before{content:"";position:absolute;inset:0;z-index:0;
  background:conic-gradient(var(--red) calc(100% - var(--p,0%)), transparent 0)}

/* profile + Telegram login (me sheet) */
.profile-card{display:flex;align-items:center;gap:13px;background:var(--surface-2);border:1px solid var(--line);
  border-radius:var(--r);padding:14px;margin:6px 0 4px}
.profile-card.guest{flex-direction:column;align-items:stretch;text-align:center;gap:12px}
.pf-av{width:48px;height:48px;border-radius:50%;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;
  background:var(--red);color:#fff;font-weight:800;font-size:20px}
.pf-av img{width:100%;height:100%;object-fit:cover}
.pf-main{flex:1;min-width:0}
.pf-name{font-weight:800;font-size:16px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center}
.profile-card:not(.guest) .pf-name{justify-content:flex-start}
.pf-stats{color:var(--text-3);font-size:12.5px;margin-top:2px;font-weight:600}
.vbadge{font-size:11px;font-weight:800;color:var(--st-yes);background:var(--st-yes-bg);
  border-radius:var(--r-pill);padding:3px 9px}
.tg-login{display:flex;justify-content:center;min-height:42px}
/* feedback */
.fb-area{width:100%;min-height:110px;resize:vertical;background:var(--surface-2);border:1px solid var(--line);
  border-radius:14px;padding:13px 15px;color:var(--text);font-family:inherit;font-size:15px;outline:none}
.fb-area:focus-visible{outline:2.5px solid var(--red);outline-offset:2px}

/* geo prime */
.geo-prime{position:fixed;inset:0;z-index:40;display:grid;place-items:end center;
  background:linear-gradient(0deg,rgba(8,9,20,.75),rgba(8,9,20,.35));backdrop-filter:blur(2px)}
.geo-card{background:var(--surface);background-image:var(--glow);width:100%;max-width:var(--sheet-max);
  border-radius:var(--r-lg) var(--r-lg) 0 0;padding:30px 24px calc(26px + var(--safe-b));text-align:center;
  box-shadow:var(--shadow);animation:slideUp .3s var(--ease)}
.geo-emoji{font-size:46px}
.geo-card h2{font-size:23px;font-weight:800;letter-spacing:-.5px;margin:10px 0 6px}
.geo-card p{color:var(--text-2);font-size:14.5px;margin:0 auto 20px;max-width:330px}
.geo-card .btn{margin-top:10px}

/* safety / anti-fraud notice — slides up above the tab bar; pops every visit until «больше не показывать» */
.safety-pop{position:fixed;z-index:35;left:12px;right:12px;bottom:calc(80px + var(--safe-b));
  max-width:var(--sheet-max);margin:0 auto;background:var(--surface);background-image:var(--glow);
  border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);
  padding:16px 16px 14px;animation:sp-in .34s var(--ease)}
@keyframes sp-in{from{opacity:0;transform:translateY(18px)}}
.safety-pop[hidden]{display:none}
.sp-close{position:absolute;top:10px;right:10px;width:30px;height:30px;border-radius:50%;
  display:grid;place-items:center;background:var(--surface-2);border:0}
.sp-close svg{width:15px;height:15px;fill:var(--text-3)}
.sp-head{display:flex;align-items:center;justify-content:center;gap:10px;padding:0 28px}
.sp-ic{width:36px;height:36px;border-radius:11px;flex:0 0 auto;display:grid;place-items:center;background:var(--st-yes-bg)}
.sp-ic svg{width:21px;height:21px;fill:var(--st-yes)}
.sp-head b{font-size:16px;font-weight:800;letter-spacing:-.2px}
.sp-text{color:var(--text-2);font-size:13.5px;line-height:1.45;margin:11px 0 0;text-align:center}
.sp-never{width:100%;margin-top:14px;padding:12px;border-radius:12px;background:var(--surface-2);
  border:1px solid var(--line);color:var(--text-2);font-weight:800;font-size:13.5px;font-family:inherit}
.sp-never:hover{color:var(--text);border-color:var(--text-3)}
@media (min-width:1024px){.safety-pop{left:50%;right:auto;width:400px;margin-left:-200px;bottom:calc(96px + var(--safe-b))}}

/* toast */
.toast{position:fixed;z-index:50;left:50%;bottom:calc(26px + var(--safe-b));transform:translateX(-50%);
  background:#1b1d2e;color:#fff;border:1px solid rgba(255,255,255,.12);
  padding:13px 18px;border-radius:14px;font-weight:700;font-size:14px;max-width:90vw;text-align:center;
  box-shadow:var(--shadow);animation:toastIn .25s var(--ease)}
.toast.err{background:#3a1420;border-color:rgba(255,59,92,.4)}
.toast.ok{background:#0f2e22;border-color:rgba(31,191,117,.4)}
@keyframes toastIn{from{opacity:0;transform:translate(-50%,12px)}}

/* station detail: address + copy */
.addr-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.addr-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.copy-addr{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;
  border-radius:9px;background:var(--surface-2);border:1px solid var(--line-2);
  color:var(--text-2);font-weight:700;font-size:12.5px;font-family:inherit}
.copy-addr svg{width:14px;height:14px;fill:var(--text-3)}
.copy-addr:hover{color:var(--text);border-color:var(--text-3)}
.copy-addr:active{background:var(--surface-3);transform:scale(.97)}
/* "не подтверждено" warning + confirm */
.pending-warn{display:flex;align-items:center;gap:10px;background:var(--st-no-bg);
  border:1px solid var(--st-no);border-radius:var(--r);padding:11px 13px;margin:14px 0 0}
.pending-warn>svg{width:22px;height:22px;fill:var(--st-no);flex:0 0 auto}
.pending-warn .pw-text{flex:1;font-size:13px;font-weight:600;line-height:1.35}
.pending-warn .pw-btn{flex:0 0 auto;background:var(--st-no);color:#fff;font-weight:800;font-size:12.5px;
  padding:9px 14px;border-radius:var(--r-pill)}
.pending-warn.conflict-warn{background:var(--st-queue-bg);border-color:var(--st-queue)}
.pending-warn.conflict-warn>svg{fill:var(--st-queue)}
.pending-warn.conflict-warn .pw-btn{background:var(--st-queue);color:#211600}
/* maintenance banner (set from /admin) */
.maint-banner{position:fixed;z-index:45;left:0;right:0;top:0;background:var(--st-queue);color:#1a1200;
  font-weight:800;font-size:13.5px;text-align:center;padding:9px 16px;line-height:1.3;
  box-shadow:0 4px 14px rgba(0,0,0,.25)}
.maint-banner svg{width:16px;height:16px;fill:#1a1200;vertical-align:-3px;margin-right:6px}
@media (min-width:1024px){body.has-maint .panel{padding-top:calc(76px + var(--maint-h))}}

/* add-station pick mode */
.pick-mode{position:fixed;inset:0;z-index:28;pointer-events:none}
.pick-cross{position:absolute;left:50%;top:50%;transform:translate(-50%,-100%);z-index:2}
.pick-cross svg{width:46px;height:46px;fill:var(--red);filter:drop-shadow(0 6px 10px rgba(0,0,0,.5))}
.pick-cross::after{content:"";position:absolute;left:50%;bottom:-3px;transform:translateX(-50%);
  width:10px;height:5px;border-radius:50%;background:rgba(0,0,0,.35)}
.pick-bar{position:absolute;left:50%;bottom:calc(24px + var(--safe-b));transform:translateX(-50%);
  width:calc(100% - 32px);max-width:var(--sheet-max);pointer-events:auto;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--shadow);padding:14px 16px;text-align:center}
.pick-bar>span{display:block;font-weight:700;font-size:14px;margin-bottom:10px}
.pick-btns{display:flex;gap:10px}
.pick-btns .btn{margin:0}
/* pick-mode runs in map view (sidebar hidden → map is full screen), so centre on the whole viewport */

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
[hidden]{display:none!important}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* DESKTOP: left sidebar + right map */
@media (min-width:1024px){
  .panel{left:0;top:0;bottom:0;width:var(--panel-w);border-right:1px solid var(--line);
    box-shadow:var(--shadow);padding-top:76px;transition:transform .28s var(--ease)}
  /* «Карта» → sidebar hidden, map full screen. «Рядом» → sidebar slides in, map shifts over. */
  body[data-view="map"] .panel{transform:translateX(-100%);box-shadow:none}
  body[data-view="list"] .panel{transform:translateX(0)}
  #map{left:0;transition:left .28s var(--ease)}
  body[data-view="list"] #map{left:var(--panel-w)}
  /* list view: Fbenz logo floats over the MAP (top-left), FineApp rises to the top-centre of the sidebar */
  body[data-view="list"] .brand{margin-left:calc(var(--panel-w) + 4px);transition:margin-left .28s var(--ease)}
  body[data-view="list"] .panel{padding-top:calc(var(--maint-h) + 14px)}
  .topbar{left:0;width:100%;padding-right:24px}      /* full width so actions have room */
  .topbar .top-actions{margin-left:auto}
  .city-btn{max-width:150px}
  .fab{right:24px;bottom:88px}                        /* sit above the desktop tab bar */
  .tabbar{left:0;right:0}                             /* full width when the map is full screen */
  body[data-view="list"] .tabbar{left:var(--panel-w)}/* over the map only when the sidebar is open */
  .tab{font-size:11.5px;max-width:120px}             /* roomier targets on a wide screen */
  /* sheets become centered modals over the WHOLE screen (not just the map area) */
  .sheet,.sheet-search{
    left:50%;
    top:50%;bottom:auto;transform:translate(-50%,-50%);
    border-radius:var(--r-lg);max-height:86vh;max-height:86dvh;animation:modalIn .24s var(--ease);
  }
  .sheet .sheet-grip{display:none}
  .panel-foot{display:block}
}
@keyframes modalIn{from{opacity:0;transform:translate(-50%,-46%)}}

/* sidebar footer: contacts + ad (desktop only) */
.panel-foot{display:none;flex:0 0 auto;border-top:1px solid var(--line);
  padding:14px 18px calc(16px + var(--safe-b));background:var(--surface)}
/* ad slot → a real CTA card linking to Telegram (was a dashed placeholder) */
.ad-slot{display:flex;align-items:center;gap:11px;border:1px solid var(--line-2);border-radius:var(--r);
  padding:12px 14px;margin-bottom:14px;background:var(--surface-2);transition:border-color .15s,transform .12s var(--ease)}
.ad-slot:hover{border-color:var(--red);transform:translateY(-1px)}
.ad-slot>svg{width:22px;height:22px;fill:var(--red);flex:0 0 auto}
.ad-slot .ad-txt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.ad-slot .ad-txt b{font-weight:800;font-size:13.5px;color:var(--text)}
.ad-slot .ad-txt small{font-weight:600;font-size:11.5px;color:var(--text-3);margin-top:2px}
.ad-slot .ad-arr{width:16px;height:16px;fill:var(--text-3);flex:0 0 auto}
.foot-links{display:flex;align-items:center;justify-content:center;gap:8px 4px;flex-wrap:wrap;font-weight:700;font-size:13px}
.foot-links a{color:var(--text-2);padding:3px 0;transition:color .12s}
.foot-links a:not(:last-child)::after{content:"·";color:var(--text-3);margin-left:8px;font-weight:700}
.foot-links a:hover{color:var(--red)}
.foot-copy{color:var(--text-3);font-size:11px;line-height:1.4;margin-top:11px;text-align:center}
/* footer is desktop-only — this wins over the base display:none above (source order) */
@media (min-width:1024px){.panel-foot{display:block}}
html[data-theme="light"] .badge.s-low{color:#6a5c00}
.search-field input:focus-visible{outline:2.5px solid var(--red);outline-offset:2px;border-radius:8px}

/* MOBILE: full map + floating panel(bottom sheet) + tab bar */
@media (max-width:1023px){
  /* Constant-height sheet anchored at the bottom; map↔list is a PURE transform slide (no top/height
     jump → smooth). Collapsed = peek 132px; «Рядом» = slide fully up. dvh dodges the iOS vh quirk. */
  /* collapsed peek height: content (grip + Fineapp + summary chips) + the tab-bar + the device
     safe-area, so the «Есть/Очередь/Нет» chips ALWAYS clear the bottom tab bar on every device
     (was clipped on iPhone with a home-indicator → «границы съехали»). 170px matches JS PEEK. */
  .panel{left:0;right:0;bottom:0;height:calc(100dvh - 72px - var(--maint-h));
    border-radius:var(--r-lg) var(--r-lg) 0 0;
    box-shadow:0 -10px 40px rgba(0,0,0,.4);transition:transform .34s var(--ease);
    transform:translateY(calc(100% - 170px - var(--safe-b)));padding-bottom:calc(70px + var(--safe-b))}
  html[data-theme="light"] .panel{box-shadow:0 -8px 30px rgba(20,22,45,.08)}
  body[data-view="list"] .panel{transform:translateY(0)}
  .panel-grip{display:block;width:100%;padding:11px 0 4px;background:none;touch-action:none}
  .panel-grip span{display:block;width:42px;height:5px;border-radius:3px;background:var(--line-2);margin:0 auto}
  .panel-head{padding-top:2px;touch-action:none}
  .list{overscroll-behavior:contain;transform:translateZ(0)}   /* GPU layer → smoother scroll (фикс подёргиваний) */
  #map{bottom:0}
  .fab{right:16px;bottom:calc(192px + var(--safe-b))}   /* clear the collapsed panel peek */
  .share-fab{left:auto;right:16px;bottom:calc(254px + var(--safe-b))}   /* мобила: справа над геолокацией, как было */
  body[data-view="list"] .fab,
  body[data-view="list"] .share-fab{opacity:0;pointer-events:none}
  /* collapsed peek shows ONLY grip+Fineapp+summary; поиск и фильтр — строго по свайпу
     (на iPhone строка с лупой выглядывала из-под таббара на пару пикселей) */
  body[data-view="map"] .filter,
  body[data-view="map"] .list-search,
  body[data-view="map"] .list-sug{display:none}
  .status-grid{grid-template-columns:1fr 1fr}
  /* extra bottom room so the last line of a scrolled sheet clears the iOS Safari toolbar (dvh caps height) */
  .sheet-body{padding-bottom:calc(34px + var(--safe-b))}
}
@media (max-width:1023px){.add-desktop{display:none}}
@media (max-width:380px){.city-btn{max-width:38vw}}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}
