/* ============================================================
   Wrab — дизайн-система.

   Токены бренда взяты как есть. Поверх них лежит один семантический слой статусов:
   краудсорсу нужно пять различимых состояний, а в брендовой палитре их столько нет.
   Правило простое — бирюза значит «живое»: работает сеть, есть топливо. Дальше по
   нарастанию беспокойства: жёлтый → оранжевый → красный. Серый значит «никто не отмечал».

   Шрифтов с чужих CDN здесь нет и не будет: сайт про то, как режут интернет, не должен
   зависеть от чужого домена. Личность держится на паре «плотный гротеск + моноширинный
   для данных»: коды регионов, счётчики и время набраны моноширинным, как в приборе.
   ============================================================ */
:root{
  /* --- бренд (wrab.club) --- */
  --color-bg:#0a0a0a; --color-bg-elevated:#131313; --color-bg-card:#17181a;
  --color-border:#242527; --color-border-strong:#363739;
  --color-fg:#fafafa; --color-fg-muted:#a1a1a1; --color-fg-dim:#6b6b6b;
  --color-accent:#3dd9d6; --color-accent-strong:#5de7e4; --color-accent-fg:#001414;
  --color-danger:#ef4444; --color-warning:#fbbf24;

  /* --- статусы (выведены из бренда; оранжевый — единственный добавленный тон,
         он разводит «мало» и «очередь», которые иначе сливаются) --- */
  --st-yes:var(--color-accent); --st-low:var(--color-warning); --st-queue:#f0883e;
  --st-no:var(--color-danger); --st-nodata:#8f8f8f;
  --st-ok:var(--st-yes); --st-throttled:var(--st-low); --st-down:var(--st-no);

  --r:10px; --r-sm:7px; --r-lg:16px; --r-pill:999px;
  --f:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --fm:ui-monospace,"SF Mono","Roboto Mono","JetBrains Mono",Menlo,Consolas,"DejaVu Sans Mono",monospace;
  --sheet-max:520px; --panel-w:392px; --appbar-h:56px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --safe-b:env(safe-area-inset-bottom,0px);
  --maint-h:0px;
}
html[data-theme="dark"]{
  --bg:var(--color-bg); --surface:var(--color-bg-elevated); --surface-2:var(--color-bg-card);
  --surface-3:#1e1f21;
  --text:var(--color-fg); --text-2:var(--color-fg-muted);
  /* fg-dim из бренда даёт 3.9:1 на чёрном — им рисуем штрихи и иконки, а мелкий текст
     набираем чуть светлее, чтобы держать 4.5:1 */
  --text-3:#8f8f8f;
  --line:var(--color-border); --line-2:var(--color-border-strong);
  --accent:var(--color-accent); --accent-strong:var(--color-accent-strong);
  --accent-fg:var(--color-accent-fg); --accent-ink:var(--color-accent);
  --accent-soft:rgba(61,217,214,.12);
  --btn-fill:#242527; --btn-fill-text:var(--color-fg);
  --shadow:0 24px 60px rgba(0,0,0,.6); --shadow-sm:0 8px 24px rgba(0,0,0,.5);
  --glow:radial-gradient(120% 80% at 50% 0%, rgba(61,217,214,.07), transparent 60%);
  --tile-filter:invert(1) hue-rotate(180deg) brightness(.84) contrast(.9) saturate(.22);
  color-scheme:dark;
}
html[data-theme="light"]{
  --bg:#fafafa; --surface:#ffffff; --surface-2:#f4f4f5; --surface-3:#ebebec;
  --text:#131313; --text-2:#52525b; --text-3:#6b6b6b;
  --line:#e4e4e5; --line-2:#c9cacb;
  /* заливка акцента на светлой теме темнее брендовой: белый текст поверх #3dd9d6 даёт 1.9:1,
     поверх #0b7371 — 5.7:1. Сам бирюзовый остаётся тоном, но в тексте живёт accent-ink. */
  --accent:#0b7371; --accent-strong:#095e5c; --accent-fg:#ffffff; --accent-ink:#0b6e6c;
  --accent-soft:rgba(15,141,138,.10);
  --btn-fill:#131313; --btn-fill-text:#fafafa;
  --shadow:0 20px 50px rgba(10,10,10,.14); --shadow-sm:0 6px 18px rgba(10,10,10,.10);
  --glow:radial-gradient(120% 80% at 50% 0%, rgba(15,141,138,.06), transparent 60%);
  --tile-filter:saturate(.55) contrast(.96);
  /* статусы на светлом уходят в тень, иначе текст на белом не добирает 4.5:1 */
  --st-yes:#0b6e6c; --st-low:#8a5a00; --st-queue:#a24a06; --st-no:#c02626; --st-nodata:#6b6b6b;
  color-scheme:light;
}

*{box-sizing:border-box}
*{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;
  font-size:15px; line-height:1.45; letter-spacing:-.006em;
  position:fixed; width:100%;
}
button{font-family:inherit;cursor:pointer;color:inherit;border:0;background:none}
a{color:inherit;text-decoration:none}
input,textarea,select{font-size:16px}   /* iOS иначе зумит страницу при фокусе */
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:8px}
.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}
.mono{font-family:var(--fm);font-variant-numeric:tabular-nums}

/* строчный эйбрау над заголовками — фирменная примета Wrab */
.eyebrow{font-family:var(--fm);font-size:11px;line-height:1.3;letter-spacing:.14em;
  color:var(--text-3);margin:0 0 6px;font-weight:500}
h2{letter-spacing:-.03em}

/* ============================================================
   ВЕРХНЯЯ ПАНЕЛЬ
   ============================================================ */
.appbar{position:fixed;z-index:30;top:var(--maint-h);left:0;right:0;height:var(--appbar-h);
  display:flex;align-items:center;gap:12px;
  padding:0 max(14px,env(safe-area-inset-left,0px)) 0 max(14px,env(safe-area-inset-right,0px));
  background:color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
@supports not (background:color-mix(in srgb,red 50%,transparent)){.appbar{background:var(--bg)}}
.brand{display:flex;align-items:center;gap:9px;color:var(--text);flex:0 0 auto}
.brand-mark{width:22px;height:22px;display:block;shape-rendering:crispEdges}
.brand-word{font-size:19px;font-weight:800;letter-spacing:-.03em}
@media (max-width:420px){.brand-word{display:none}}

/* переключатель разделов: один элемент, две правды */
.switch{margin-left:auto;display:flex;gap:2px;padding:3px;border-radius:var(--r-pill);
  background:var(--surface-2);border:1px solid var(--line)}
.switch-tab{padding:7px 16px;border-radius:var(--r-pill);font-size:13.5px;font-weight:700;
  color:var(--text-2);transition:color .15s,background .15s}
.switch-tab[aria-selected="true"]{background:var(--accent);color:var(--accent-fg)}
.switch-tab:hover{color:var(--text)}
.switch-tab[aria-selected="true"]:hover{color:var(--accent-fg)}
.icon-btn{width:38px;height:38px;border-radius:var(--r);display:grid;place-items:center;
  background:var(--surface-2);border:1px solid var(--line);flex:0 0 auto}
.icon-btn svg{width:19px;height:19px;fill:var(--text-2)}
.icon-btn:hover svg{fill:var(--text)}
#themeBtn .ic-sun{display:none;stroke:var(--text-2);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}

/* ============================================================
   РАЗДЕЛЫ
   ============================================================ */
.view{position:fixed;inset:calc(var(--appbar-h) + var(--maint-h)) 0 0 0}
html[data-tab="svyaz"] .view-fuel{display:none}
html[data-tab="toplivo"] .view-link{display:none}

/* ---------------- КАРТА ТОПЛИВА ---------------- */
#map{position:absolute;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}
@media (min-width:1024px){
  .leaflet-bottom .leaflet-control-zoom{display:flex;flex-direction:column;margin:0 24px 150px 0;border:0;
    border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow-sm)}
  .leaflet-control-zoom a{width:38px;height:38px;line-height:38px;font-size:19px;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(--accent-ink)}
  .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}
.leaflet-control-attribution a{color:var(--text-3)!important}
.leaflet-div-icon{background:transparent;border:0}

/* маркер-капля для безымянных АЗС */
.gpin{position:relative;width:34px;height:40px}
.gpin-body{position:absolute;left:50%;top:1px;width:28px;height:28px;margin-left:-14px;z-index:2;
  border-radius:50% 50% 50% 0;transform:rotate(-45deg);display:grid;place-items:center;
  border:2px solid var(--bg);box-shadow:0 4px 9px rgba(0,0,0,.5);background:var(--st-nodata)}
.gpin-body svg{width:15px;height:15px;transform:rotate(45deg);fill:var(--color-bg)}
.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-no .gpin-body svg{fill:#fff}
.gpin-glow{position:absolute;left:50%;top:4px;width:30px;height:30px;margin-left:-15px;z-index:1;
  border-radius:50%;background:var(--st-nodata);filter:blur(9px);opacity:.6}
.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:.85} .gpin.s-low .gpin-glow{background:var(--st-low)}
.gpin.s-nodata .gpin-glow{opacity:.3}
.gpin.match .gpin-body{box-shadow:0 0 0 3px var(--accent),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)}}

/* монета сети + гало статуса */
.fmk{position:relative;width:34px;height:34px;--sc:var(--st-nodata)}
.fmk i{position:absolute;top:50%;left:50%;border-radius:50%}
.fmk::after{content:"";position:absolute;top:50%;left:50%;width:24px;height:24px;margin:-12px 0 0 -12px;
  border-radius:50%;background:var(--sc);filter:blur(8px);opacity:.5;z-index:0;pointer-events:none}
.fmk.s-nodata::after{opacity:.22}
.fmk-coin{width:24px;height:24px;margin:-12px 0 0 -12px;display:grid;place-items:center;
  background:var(--bc,var(--surface-3));color:var(--bf,var(--text));
  font:800 11px/1 var(--f);letter-spacing:-.04em;
  box-shadow:0 0 0 1.5px var(--bg),0 0 0 3.5px var(--sc),0 3px 8px rgba(0,0,0,.5);z-index:3;user-select:none}
.fmk-halo{width:24px;height:24px;margin:-12px 0 0 -12px;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.b-generic{--bc:var(--surface-3);--bf:var(--text-2)}
.fmk.match .fmk-coin{box-shadow:0 0 0 1.5px var(--bg),0 0 0 3.5px var(--sc),0 0 0 6px var(--accent),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)}
.fmk.s-yes .fmk-halo{animation:sonar 2.6s var(--ease) var(--d,0s) infinite}
.fmk.s-low .fmk-halo{animation:sonar 3.3s var(--ease) var(--d,0s) infinite}
.fmk.s-queue .fmk-halo{animation:shimmer 2.1s ease-in-out var(--d,0s) infinite}
.fmk.s-no .fmk-halo{animation:sonar 1.3s var(--ease) var(--d,0s) infinite}
.fmk.s-nodata .fmk-halo{animation:none;opacity:0}
.fmk-halo{animation-play-state:paused}
.leaflet-container.wr-live .fmk-halo{animation-play-state:running}
.leaflet-dragging .fmk-halo,.leaflet-zoom-anim .fmk-halo{animation-play-state:paused}
@keyframes sonar{0%{transform:scale(1);opacity:.45}70%{opacity:0}100%{transform:scale(2.1);opacity:0}}
@keyframes shimmer{0%,100%{transform:scale(1);opacity:.16}50%{transform:scale(1.22);opacity:.44}}
.fmk.wr-just .fmk-coin{animation:coin-pop .6s var(--ease)}
.fmk.wr-just .fmk-halo{animation:ping .66s var(--ease);animation-play-state:running!important}
@keyframes coin-pop{0%{transform:scale(.5)}55%{transform:scale(1.16)}100%{transform:scale(1)}}
@keyframes ping{0%{transform:scale(1);opacity:.8}100%{transform:scale(2.5);opacity:0}}
.user-dot{width:14px;height:14px;border-radius:50%;background:var(--accent);border:2.5px solid var(--bg);
  box-shadow:0 0 0 1px var(--accent),0 2px 8px rgba(0,0,0,.5);position:relative}
.user-dot::before{content:"";position:absolute;left:50%;top:50%;width:14px;height:14px;
  margin:-7px 0 0 -7px;border-radius:50%;background:var(--accent);opacity:.45;
  animation:userPulse 2.4s ease-out infinite}
@keyframes userPulse{0%{transform:scale(1);opacity:.5}100%{transform:scale(3);opacity:0}}
/* кластер: кольцо-пирог по долям статусов + счётчик в центре */
.clp{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;position:relative;
  box-shadow:0 6px 18px rgba(0,0,0,.5)}
.clp::before{content:"";position:absolute;inset:5px;border-radius:50%;background:var(--surface)}
.clp span{position:relative;z-index:1;font-family:var(--fm);font-weight:600;font-size:13px;color:var(--text)}
.clp.big{width:52px;height:52px}.clp.big::before{inset:6px}.clp.big span{font-size:15px}

/* ---------------- ПЛАВАЮЩИЕ ЭЛЕМЕНТЫ КАРТЫ ТОПЛИВА ---------------- */
.actionbar{position:absolute;z-index:18;top:12px;left:14px;right:14px;
  display:flex;gap:8px;align-items:flex-start;justify-content:space-between;pointer-events:none;
  left:max(14px,env(safe-area-inset-left,0px));right:max(14px,env(safe-area-inset-right,0px))}
.actionbar>*{pointer-events:auto}
.actionbar-right{display:flex;gap:8px}
.city-btn{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 13px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  font-weight:700;font-size:13.5px;box-shadow:var(--shadow-sm);max-width:46vw}
.city-btn .ic{width:16px;height:16px;fill:var(--accent-ink);flex:0 0 auto}
.city-btn .ic-chev{width:15px;height:15px;fill:var(--text-3);flex:0 0 auto}
.city-btn #cityName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.act-pill{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 13px;border-radius:var(--r);
  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:17px;height:17px;fill:currentColor}
.act-pill.act-ico{width:38px;padding:0;justify-content:center;flex:0 0 auto}
.act-avail[aria-pressed="true"]{color:var(--accent-fg);background:var(--accent);border-color:var(--accent)}
@media (max-width:1023px){ body[data-view="list"] .actionbar{opacity:0;pointer-events:none} }
@media (max-width:400px){ #availBtn .lbl{display:none} #availBtn{width:38px;padding:0;justify-content:center} }
@media (min-width:1024px){
  .actionbar{right:auto;width:auto;left:24px;top:16px}
  body[data-view="list"] .actionbar{left:calc(var(--panel-w) + 24px)}
}
.fab{position:absolute;z-index:16;width:44px;height:44px;border-radius:var(--r);
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);
  display:grid;place-items:center}
.fab svg{width:21px;height:21px;fill:var(--text-2)}
.fab.on{background:var(--accent);border-color:var(--accent)}
.fab.on svg{fill:var(--accent-fg)}
.share-fab{position:absolute;z-index:16;width:44px;padding:12px 0;border-radius:var(--r);
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);
  display:flex;flex-direction:column;align-items:center;overflow:hidden;
  transition:border-color .2s,padding .4s var(--ease)}
.share-fab svg{width:17px;height:17px;fill:var(--text-2);flex:0 0 auto}
.share-fab span{writing-mode:vertical-rl;text-orientation:upright;font-family:var(--fm);font-size:9px;
  letter-spacing:2px;color:var(--text-3);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:18px;opacity:1;margin-top:8px}
.share-fab:hover{border-color:var(--line-2)}
@media (hover:hover){.share-fab:hover span{max-height:150px;max-width:18px;opacity:1;margin-top:8px}}

/* плашка сети: офлайн / очередь отметок */
.net-chip{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(74px + var(--safe-b));
  z-index:55;border:1px solid var(--line);background:var(--surface);color:var(--text-2);
  font-family:var(--fm);font-size:12px;border-radius:var(--r-pill);padding:8px 14px;
  box-shadow:var(--shadow-sm)}
.net-chip.q{border-color:var(--accent);color:var(--accent-ink)}

/* ---------------- ПАНЕЛЬ «РЯДОМ» ---------------- */
.panel{position:absolute;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;
  padding-left:max(16px,env(safe-area-inset-left,0px));
  padding-right:max(16px,env(safe-area-inset-right,0px))}
.summary{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:10px}
.summary>:first-child{margin-left:auto}
.summary>:last-child{margin-right:auto}
.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:6px 12px;font-size:12.5px;color:var(--text-2)}
.chip .dot{width:7px;height:7px;border-radius:2px}
.chip b{font-family:var(--fm);font-weight:600;color:var(--text)}
.filter{padding-bottom:12px;border-bottom:1px solid var(--line)}
.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}
.pill{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-pill);
  padding:7px 13px;font-weight:600;font-size:12.5px;color:var(--text-2);transition:.15s}
.pill:hover{color:var(--text);border-color:var(--line-2)}
.pill[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}
.pill-more,.pill-feed,.pill-cash,.pill-avail,.pill-cheap{display:inline-flex;align-items:center;gap:5px}
.pill-more svg,.pill-feed svg,.pill-cash svg,.pill-avail svg,.pill-cheap svg{width:13px;height:13px;fill:currentColor}
.pill-more .pm-n{display:inline-grid;place-items:center;min-width:16px;height:16px;border-radius:var(--r-sm);
  background:var(--accent-fg);color:var(--accent);font-family:var(--fm);font-size:10px;padding:0 3px}
.tok{display:inline-flex;align-items:center;gap:6px;background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}
.tok svg{width:10px;height:10px;fill:currentColor;opacity:.8}
.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:10px;
  padding-left:max(16px,env(safe-area-inset-left,0px));
  padding-right:max(16px,env(safe-area-inset-right,0px))}

/* карточка АЗС */
.card{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r);
  padding:13px;transition:border-color .15s,transform .12s var(--ease);cursor:pointer}
.card:hover{border-color:var(--line-2)}
.card:active{transform:scale(.995)}
.card-top{display:flex;align-items:flex-start;gap:11px}
.logo{width:38px;height:38px;border-radius:var(--r-sm);flex:0 0 auto;display:grid;place-items:center;
  font-weight:800;font-size:13px;color:#fff;letter-spacing:-.04em;position:relative;overflow:hidden}
.card-name{flex:1;min-width:0}
.card-name h3{margin:0;font-size:15px;font-weight:700;letter-spacing:-.02em;
  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-sm);padding:4px 8px;font-weight:700;font-size:11.5px}
.badge svg{width:12px;height:12px;fill:currentColor}
.badge.s-yes{color:var(--st-yes);background:var(--accent-soft)}
.badge.s-queue{color:var(--st-queue);background:rgba(240,136,62,.12)}
.badge.s-low{color:var(--st-low);background:rgba(251,191,36,.12)}
.badge.s-no{color:var(--st-no);background:rgba(239,68,68,.12)}
.badge.s-nodata{color:var(--st-nodata);background:var(--surface-3)}
.card-trust{display:flex;align-items:center;gap:6px;margin:8px 0 0;font-size:11.5px;color:var(--st-yes)}
.card-trust svg{width:12px;height:12px;fill:currentColor}
.card-invite{margin:10px 0 0;font-size:12.5px;line-height:1.4;color:var(--text-3)}
.fuels{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 0}
.fuel{font-family:var(--fm);font-size:11px;padding:3px 8px;border-radius:var(--r-sm);
  background:var(--surface-3);color:var(--text-3);border:1px solid transparent}
.fuel.on{background:var(--accent-soft);color:var(--st-yes)}
.fuel.no{background:rgba(239,68,68,.10);color:var(--st-no);text-decoration:line-through}
.fuel-empty{font-size:13px;color:var(--text-3);padding:5px 0}
.prices{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 0}
.price{display:inline-flex;align-items:center;gap:5px;font-family:var(--fm);font-size:11.5px;padding:3px 8px;
  border-radius:var(--r-sm);background:var(--surface-3);color:var(--text-2)}
.price b{color:var(--text)}
.price.hit{background:var(--accent-soft);color:var(--st-yes)}
.price.hit b{color:var(--st-yes)}
.itags{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 0}
.itag{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;padding:3px 8px;border-radius:var(--r-sm)}
.itag svg{width:12px;height:12px;fill:currentColor}
.itag-limit{background:rgba(240,136,62,.12);color:var(--st-queue)}
.itag-cash{background:rgba(239,68,68,.10);color:var(--st-no)}
.itag-fuelcard{background:var(--surface-3);color:var(--text-2)}
.card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px 10px;margin-top:12px;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-family:var(--fm);font-size:11.5px;white-space:nowrap}
.meta .km{color:var(--text)}
.mini-btn{display:inline-flex;align-items:center;gap:5px;border-radius:var(--r-sm);
  padding:7px 12px;font-weight:700;font-size:12.5px;background:var(--surface-3);border:1px solid var(--line)}
.mini-btn svg{width:13px;height:13px;fill:currentColor}
.mini-btn.red{background:var(--accent);color:var(--accent-fg);border-color:var(--accent)}
.show-all{width:100%;padding:11px;border-radius:var(--r);background:var(--surface-2);border:1px solid var(--line);
  font-weight:700;font-size:13px;color:var(--text-2)}
.show-all:hover{color:var(--text);border-color:var(--line-2)}
.panel-foot{display:none;flex:0 0 auto;border-top:1px solid var(--line);
  padding:14px 16px calc(16px + var(--safe-b));background:var(--surface)}
.foot-links{display:flex;align-items:center;justify-content:center;gap:8px 4px;flex-wrap:wrap;font-size:12.5px}
.foot-links a{color:var(--text-2);padding:3px 0}
.foot-links a:not(:last-child)::after{content:"·";color:var(--text-3);margin-left:8px}
.foot-links a:hover{color:var(--accent-ink)}
.foot-copy{color:var(--text-3);font-family:var(--fm);font-size:10.5px;line-height:1.5;margin-top:10px;text-align:center}

/* поиск в панели */
.list-search{display:flex;align-items:center;gap:9px;margin:10px 0 2px;background:var(--surface-2);
  border:1px solid var(--line);border-radius:var(--r);padding:0 12px;height:40px}
.list-search svg{width:16px;height:16px;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:24px;height:24px;border-radius:50%;background:var(--surface-3);
  display:grid;place-items:center;flex:0 0 auto}
#listSearchClear svg{width:11px;height:11px;fill:var(--text-2)}
.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:var(--r-sm);padding:8px 11px;font-size:13px;font-weight:600;color:var(--text);text-align:left}
.sug-item svg{width:14px;height:14px;fill:var(--accent-ink);flex:0 0 auto}
.sug-item small{margin-left:auto;color:var(--text-3);font-size:11px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}
.sug-item:hover{border-color:var(--line-2)}
.sug-cat{font-family:var(--fm);font-size:10.5px;letter-spacing:.12em;color:var(--text-3);margin:4px 2px 0}

/* нижняя навигация раздела «Топливо» */
.tabbar{display:flex;position:absolute;z-index:25;left:0;right:0;bottom:0;
  background:var(--surface);border-top:1px solid var(--line);
  padding:6px 6px calc(6px + var(--safe-b));justify-content:space-around;
  padding-left:max(6px,env(safe-area-inset-left,0px));
  padding-right:max(6px,env(safe-area-inset-right,0px))}
.tab{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--text-3);
  font-size:10.5px;font-weight:600;flex:1;min-width:0;padding:4px;max-width:160px}
.tab span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.tab svg{width:21px;height:21px;fill:currentColor}
.tab[aria-current="true"]{color:var(--accent-ink)}

/* установка приложения */
.install-banner{position:absolute;z-index:17;top:60px;left:14px;right:14px;
  left:max(14px,env(safe-area-inset-left,0px));right:max(14px,env(safe-area-inset-right,0px));
  display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--r);
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.ib-logo{width:26px;height:26px;flex:0 0 auto;color:var(--text);shape-rendering:crispEdges}
.ib-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.ib-text b{font-size:13.5px;font-weight:700}
.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(--accent);color:var(--accent-fg);border-radius:var(--r-sm);
  padding:8px 13px;font-weight:700;font-size:12.5px}
.ib-close{flex:0 0 auto;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2)}
.ib-close svg{width:13px;height:13px;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(--accent-ink)}
body[data-view="list"] .install-banner{display:none}
@media (min-width:1024px){ .install-banner{left:24px;right:auto;width:340px} }

/* ============================================================
   ШИТЫ И МОДАЛКИ
   ============================================================ */
.backdrop{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.6);
  backdrop-filter:blur(2px);animation:fade .2s}
@keyframes fade{from{opacity:0}}
.sheet{position:fixed;z-index:41;background:var(--surface);background-image:var(--glow);
  box-shadow:var(--shadow);display:flex;flex-direction:column;border:1px solid var(--line);border-bottom:0;
  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: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:38px;height:4px;border-radius:2px;background:var(--line-2);margin:10px auto 2px;flex:0 0 auto}
.sheet-body{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:8px 20px 22px;min-height:0;
  padding-left:max(20px,env(safe-area-inset-left,0px));
  padding-right:max(20px,env(safe-area-inset-right,0px))}
.sheet h2{font-size:21px;font-weight:800;letter-spacing:-.035em;margin:.1em 0 .35em;overflow-wrap:break-word}
.sheet .sub{color:var(--text-3);font-size:13px;margin:0 0 4px}
.sheet-close{position:absolute;top:10px;right:12px;width:32px;height:32px;border-radius:50%;
  background:var(--surface-2);display:grid;place-items:center;z-index:2;border:1px solid var(--line)}
.sheet-close svg{width:15px;height:15px;fill:var(--text-2)}
.sheet-search{top:calc(var(--appbar-h) + var(--maint-h));bottom:auto;
  border-radius:0 0 var(--r-lg) var(--r-lg);border:1px solid var(--line);border-top:0;max-height:80dvh;
  animation:slideDown .26s var(--ease)}
@keyframes slideDown{from{transform:translate(-50%,-100%)}to{transform:translate(-50%,0)}}
.section-label{font-family:var(--fm);font-size:10.5px;letter-spacing:.14em;
  color:var(--text-3);margin:18px 0 9px}

/* кнопки */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;
  border-radius:var(--r);padding:13px;font-weight:700;font-size:14.5px;transition:.15s;border:1px solid transparent}
.btn svg{width:18px;height:18px;fill:currentColor}
.btn-accent{background:var(--accent);color:var(--accent-fg)}
.btn-accent:hover{background:var(--accent-strong)}
.btn-fill{background:var(--btn-fill);color:var(--btn-fill-text)}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--line-2)}
.btn-ghost:hover{border-color:var(--text-3)}
.btn-row{display:flex;gap:10px;margin-top:10px}
.btn-row .btn{margin:0}

/* карточка АЗС в шите */
.st-head{display:flex;align-items:flex-start;gap:13px;padding-top:6px}
.st-head .logo{width:46px;height:46px;font-size:15px}
.st-title{flex:1;min-width:0}
.st-title h2{margin:0;padding-right:34px}
.st-dist{margin:6px 0 0;font-family:var(--fm);font-size:12.5px;color:var(--text-2)}
.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:28px;padding:0 10px;
  border-radius:var(--r-sm);background:var(--surface-2);border:1px solid var(--line);
  color:var(--text-2);font-family:var(--fm);font-size:11.5px}
.copy-addr svg{width:13px;height:13px;fill:var(--text-3)}
.copy-addr:hover{color:var(--text);border-color:var(--line-2)}
.st-card{margin:16px 0 2px;padding:16px;border-radius:var(--r);background:var(--surface-2);
  border:1px solid var(--line)}
.st-card.s-yes{border-color:rgba(61,217,214,.3)} .st-card.s-no{border-color:rgba(239,68,68,.3)}
.st-card-head{display:flex;align-items:flex-start;gap:14px}
.sts-icon{width:44px;height:44px;border-radius:var(--r-sm);flex:0 0 auto;display:grid;place-items:center;
  background:var(--surface-3);color:var(--st-nodata)}
.sts-icon svg{width:24px;height:24px;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}
.sts-title{font-size:19px;font-weight:800;letter-spacing:-.03em;line-height:1.15;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:var(--st-low)} .st-card.s-no .sts-title{color:var(--st-no)}
.sts-lead{color:var(--text);font-size:13.5px;margin-top:6px;line-height:1.35}
.sts-meta{color:var(--text-2);font-family:var(--fm);font-size:11.5px;margin-top:5px;line-height:1.4}
.stale-badge{display:inline-flex;align-items:center;gap:6px;margin-top:10px;
  background:var(--surface-3);color:var(--text-3);font-size:11.5px;
  padding:4px 10px;border-radius:var(--r-pill)}
.stale-badge svg{width:12px;height:12px;fill:currentColor}
.st-card-actual{margin-top:15px;padding-top:14px;border-top:1px solid var(--line)}
.actual-q{font-weight:700;font-size:14px;margin:0}
.actual-hint{margin:4px 0 10px;color:var(--text-2);font-size:12.5px;line-height:1.4}
.actual-btns{display:flex;gap:9px}
.actual-btns .btn{margin:0;flex:1;font-size:13.5px;padding:11px 10px}
.btn-confirm{background:var(--accent);color:var(--accent-fg)}
.btn-changed{background:var(--surface-3);color:var(--text);border-color:var(--line)}
.btn-share-sit{margin-top:9px;background:transparent;color:var(--text-2);border-color:var(--line)}
.data-source{margin:6px 0 0;color:var(--text-3);font-family:var(--fm);font-size:11px}
.pending-warn{display:flex;align-items:center;gap:10px;background:var(--surface-2);
  border:1px solid var(--st-no);border-radius:var(--r);padding:11px 13px;margin:14px 0 0}
.pending-warn>svg{width:20px;height:20px;fill:var(--st-no);flex:0 0 auto}
.pending-warn .pw-text{flex:1;font-size:12.5px;line-height:1.4}
.pending-warn .pw-btn{flex:0 0 auto;background:var(--st-no);color:#fff;font-weight:700;font-size:12.5px;
  padding:8px 13px;border-radius:var(--r-sm)}
.pending-warn.conflict-warn{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:#1a0e00}

/* лента отметок водителей */
.rep-list,.feed-full{display:flex;flex-direction:column;gap:8px}
.rep-row{display:flex;align-items:center;gap:10px;background:var(--surface-2);
  border:1px solid var(--line);border-radius:var(--r-sm);padding:9px 12px 9px 13px;
  box-shadow:inset 2px 0 0 var(--line-2);animation:rowIn .26s var(--ease) both;animation-delay:var(--d,0s)}
.rep-row.s-yes{box-shadow:inset 2px 0 0 var(--st-yes)}
.rep-row.s-queue{box-shadow:inset 2px 0 0 var(--st-queue)}
.rep-row.s-low{box-shadow:inset 2px 0 0 var(--st-low)}
.rep-row.s-no{box-shadow:inset 2px 0 0 var(--st-no)}
@keyframes rowIn{from{opacity:0;transform:translateY(6px)}}
.rep-old{opacity:.68}
.rep-st{flex:0 0 auto;width:30px;height:30px;border-radius:var(--r-sm);display:grid;place-items:center;
  background:var(--surface-3);color:var(--st-nodata)}
.rep-st svg{width:17px;height:17px;fill:currentColor}
.rep-st.s-yes{color:var(--st-yes)} .rep-st.s-queue{color:var(--st-queue)}
.rep-st.s-low{color:var(--st-low)} .rep-st.s-no{color:var(--st-no)}
.rep-main{flex:1;min-width:0}
.rep-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rep-author{font-family:var(--fm);font-size:11px;color:var(--accent-ink)}
.rep-at{font-family:var(--fm);font-size:10.5px;color:var(--text-3);flex:0 0 auto}
.rep-at.is-old{display:inline-flex;align-items:center;gap:3px;background:var(--surface-3);
  border-radius:var(--r-pill);padding:2px 7px}
.rep-at.is-old svg{width:10px;height:10px;fill:currentColor}
.rep-status{font-size:13px;color:var(--text);line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rep-fuels{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.rf{font-style:normal;font-family:var(--fm);font-size:10px;padding:1px 6px;border-radius:var(--r-sm);
  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-votes{display:flex;gap:6px;flex:0 0 auto}
.rep-vote{display:flex;align-items:center;gap:4px;height:30px;padding:0 9px;border-radius:var(--r-sm);
  border:1px solid var(--line);background:var(--surface-3);color:var(--text-2);
  font-family:var(--fm);font-size:11.5px;transition:transform .1s var(--ease),border-color .12s}
.rep-vote svg{width:13px;height:13px;fill:currentColor}
.rep-vote:active{transform:scale(.93)}
.rep-vote.up.on{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}
.rep-vote.down.on{background:var(--st-no);border-color:var(--st-no);color:#fff}
.rep-own,.own-note{font-family:var(--fm);font-size:10.5px;color:var(--text-3)}
.own-note{display:flex;align-items:center;gap:8px;line-height:1.4;padding:3px 2px;font-size:12px}
.own-note svg{width:14px;height:14px;fill:currentColor;flex:0 0 auto}
.vote-pop svg{animation:votePop .45s var(--ease)}
@keyframes votePop{0%{transform:scale(1)}35%{transform:scale(1.3)}70%{transform:scale(.95)}100%{transform:scale(1)}}
.chat-empty{margin:auto 0;color:var(--text-3);font-size:13px;text-align:center;padding:14px;line-height:1.5}
.ff-row{animation:rowIn .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:var(--r-sm);padding:10px 12px;color:var(--text);text-align:left;transition:.15s}
.ff-row:hover{border-color:var(--line-2)}
.ff-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ff-main b{font-weight:700;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ff-main small{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:var(--st-low)} .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-family:var(--fm);font-size:10.5px;white-space:nowrap}
.ff-arr{flex:0 0 auto;width:15px;height:15px;fill:var(--text-3)}

/* шит фильтров */
.fs-fuel{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:10px}
.fs-fbtn{height:44px;border-radius:var(--r-sm);background:var(--surface-2);border:1px solid var(--line);
  font-family:var(--fm);font-size:14px;color:var(--text-2);transition:.15s}
.fs-fbtn[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}
.fs-avail{display:flex;align-items:center;gap:11px;width:100%;padding:12px 14px;margin:0 0 8px;
  border-radius:var(--r);background:var(--surface-2);border:1px solid var(--line);
  text-align:left;color:var(--text);transition:.15s}
.fs-avail>svg{width:17px;height:17px;fill:var(--st-yes);flex:0 0 auto}
.fs-avail span{flex:1;font-weight:700;font-size:13.5px}
.fs-avail small{display:block;font-weight:400;font-size:11.5px;color:var(--text-3);margin-top:2px}
.fs-sw{flex:0 0 auto;width:40px;height:24px;border-radius:12px;background:var(--surface-3);
  border:1px solid var(--line);position:relative;transition:.2s}
.fs-sw::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;
  background:var(--text-3);transition:.2s}
.fs-avail[aria-pressed="true"]{border-color:var(--accent)}
.fs-avail[aria-pressed="true"] .fs-sw{background:var(--accent);border-color:var(--accent)}
.fs-avail[aria-pressed="true"] .fs-sw::after{left:18px;background:var(--accent-fg)}
#filterSheet .section-label,#filterSheet h2{text-align:center}
.fs-row{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:6px;justify-content:center}
.fs-foot{display:flex;gap:10px;margin-top:16px}
.fs-foot .btn{flex:1;margin:0}

/* форма отметки топлива */
.status-grid,.presence-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.status-opt{display:flex;align-items:center;gap:11px;background:var(--surface-2);
  border:1px solid var(--line);border-radius:var(--r);padding:13px;font-weight:700;font-size:14.5px;transition:.12s}
.status-opt .si{width:30px;height:30px;border-radius:var(--r-sm);display:grid;place-items:center;flex:0 0 auto}
.status-opt .si svg{width:16px;height:16px;fill:var(--color-bg)}
.status-opt[aria-pressed="true"]{border-color:currentColor}
.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:var(--st-low)} .status-opt.s-low .si{background:var(--st-low)}
.status-opt.s-no[aria-pressed="true"]{color:var(--st-no)} .status-opt.s-no .si{background:var(--st-no)}
.status-opt.s-no .si svg{fill:#fff}
.presence-opt{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;
  min-height:70px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r);
  padding:13px 14px;color:var(--text-2);text-align:left;transition:.12s}
.presence-opt span{font-size:17px;font-weight:800;color:var(--text);letter-spacing:-.03em}
.presence-opt small{font-size:12px;line-height:1.3;color:var(--text-2)}
.presence-opt.p-yes[aria-pressed="true"]{border-color:var(--st-yes);background:var(--accent-soft)}
.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"]{border-color:var(--st-no);background:rgba(239,68,68,.08)}
.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}
.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 14px}
.fmark-label{font-family:var(--fm);font-size:15px;flex:1}
.fmark-btns{display:flex;gap:6px}
.fmark-right{display:flex;align-items:center;gap:8px}
.fm-btn{font-weight:700;font-size:13px;padding:8px 14px;border-radius:var(--r-sm);
  background:var(--surface-3);border:1px solid var(--line);color:var(--text-2);transition:.12s}
.fm-btn.fm-yes[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}
.fm-btn.fm-no[aria-pressed="true"]{background:var(--st-no);border-color:var(--st-no);color:#fff}
.fm-price{width:64px;height:36px;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--surface-3);
  color:var(--text);font-family:var(--fm);font-size:16px;text-align:center;outline:none;padding:0 6px}
.fm-price::placeholder{color:var(--text-3)}
.fm-price:focus-visible{border-color:var(--accent)}
.fuel-select{display:flex;gap:8px;flex-wrap:wrap}
.fuel-opt{font-family:var(--fm);font-size:14px;padding:10px 15px;border-radius:var(--r-sm);
  background:var(--surface-2);border:1px solid var(--line);color:var(--text-2)}
.fuel-opt[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--st-yes)}
.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:1px solid var(--line);
  border-radius:var(--r-sm);padding:0 6px 0 13px;font-size:13px;color:var(--text-2);height:44px}
.limit-field input{width:52px;height:36px;border:0;background:none;text-align:center;
  font-family:var(--fm);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:1px solid var(--line);border-radius:var(--r-sm);padding:10px 14px;font-weight:700;font-size:13px;
  color:var(--text-2);min-height:44px;line-height:1.2;text-align:center}
.cash-toggle svg{width:16px;height:16px;fill:currentColor}
.cash-toggle[aria-pressed="true"]{background:rgba(239,68,68,.08);border-color:var(--st-no);color:var(--st-no)}
.cond-row{display:flex;gap:8px;flex-wrap:wrap}
.cond{flex:1 1 54px;text-align:center;font-family:var(--fm);font-size:13px;padding:10px;border-radius:var(--r-sm);
  background:var(--surface-2);border:1px solid var(--line);color:var(--text-2)}
.cond[aria-pressed="true"]{border-color:var(--st-queue);color:var(--st-queue)}

/* маршрут / поиск / справка */
.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:13px;
  border-radius:var(--r);background:var(--surface-2);border:1px solid var(--line);text-align:left;transition:.14s}
.route-opt:hover{border-color:var(--line-2)}
.route-opt b{display:block;font-size:14.5px;font-weight:700;color:var(--text)}
.route-opt small{display:block;margin-top:3px;font-size:12px;color:var(--text-2);line-height:1.3}
.route-ico{width:38px;height:38px;border-radius:var(--r-sm);display:grid;place-items:center;flex:0 0 auto;
  background:var(--surface-3);border:1px solid var(--line)}
.route-ico svg{width:26px;height:26px;display:block}
.route-ico .ri-bg{fill:var(--surface)}
.route-ico .ri-main{fill:var(--text-2)}
.search-field{display:flex;align-items:center;gap:10px;background:var(--surface-2);
  border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;margin:6px 0 4px}
.search-field svg{width:18px;height:18px;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:12px 8px;border-radius:var(--r-sm);
  border-bottom:1px solid var(--line)}
.res-item:hover{background:var(--surface-2)}
.res-item .logo{width:34px;height:34px;font-size:12px}
.res-item .ri-main{flex:1;min-width:0}
.res-item h4{margin:0;font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.res-item .ri-sub{color:var(--text-3);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.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:10px;height:10px;border-radius:3px;margin-top:5px}
.faq-list{display:flex;flex-direction:column;gap:8px}
.faq-item{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-sm);padding:11px 14px}
.faq-item summary{font-weight:700;font-size:13.5px;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-family:var(--fm);
  font-size:16px;color:var(--accent-ink)}
.faq-item[open] summary::after{content:"−"}
.faq-item p{color:var(--text-2);font-size:13px;line-height:1.55;margin:8px 0 0}

/* онбординг геопозиции */
.geo-prime{position:absolute;inset:0;z-index:40;display:grid;place-items:end center;
  background:rgba(0,0,0,.7)}
.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;border:1px solid var(--line);border-bottom:0;
  padding:26px 22px calc(22px + var(--safe-b));
  box-shadow:var(--shadow);animation:slideUp .3s var(--ease);max-height:100dvh;overflow-y:auto}
.geo-card h2{font-size:22px;font-weight:800;letter-spacing:-.035em;margin:0 0 8px}
.geo-card p{color:var(--text-2);font-size:14px;margin:0 0 18px;line-height:1.5}
.geo-card .btn+.btn{margin-top:9px}

/* сообщение о технических работах */
.maint-banner{position:fixed;z-index:45;left:0;right:0;top:0;background:var(--color-warning);color:#1a1200;
  font-weight:700;font-size:13px;text-align:center;padding:8px 16px;line-height:1.35}
.maint-banner svg{width:15px;height:15px;fill:#1a1200;vertical-align:-3px;margin-right:6px}

/* тост */
.toast{position:fixed;z-index:60;left:50%;bottom:calc(24px + var(--safe-b));transform:translateX(-50%);
  background:var(--surface);color:var(--text);border:1px solid var(--line-2);
  padding:12px 16px;border-radius:var(--r);font-size:13.5px;max-width:min(90vw,420px);text-align:center;
  box-shadow:var(--shadow);animation:toastIn .25s var(--ease)}
.toast.err{border-color:var(--st-no)}
.toast.ok{border-color:var(--accent)}
@keyframes toastIn{from{opacity:0;transform:translate(-50%,10px)}}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@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:14px;transition:transform .28s var(--ease)}
  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)}
  .fab{right:24px;bottom:84px}
  .share-fab{right:24px;bottom:140px}
  .tabbar{left:0;right:0}
  body[data-view="list"] .tabbar{left:var(--panel-w)}
  .panel-foot{display:block}
  .sheet,.sheet-search{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);
    border-radius:var(--r-lg);border:1px solid var(--line);max-height:86dvh;animation:modalIn .24s var(--ease)}
  .sheet .sheet-grip{display:none}
}
@keyframes modalIn{from{opacity:0;transform:translate(-50%,-46%)}}

@media (max-width:1023px){
  .panel{left:0;right:0;bottom:0;height:calc(100% - 10px);
    border-radius:var(--r-lg) var(--r-lg) 0 0;border:1px solid var(--line);border-bottom:0;
    box-shadow:0 -10px 40px rgba(0,0,0,.5);transition:transform .34s var(--ease);
    transform:translateY(calc(100% - 150px - var(--safe-b)));padding-bottom:calc(62px + var(--safe-b))}
  body[data-view="list"] .panel{transform:translateY(0)}
  .panel-grip{display:block;width:100%;padding:10px 0 4px;background:none;touch-action:none}
  .panel-grip span{display:block;width:38px;height:4px;border-radius:2px;background:var(--line-2);margin:0 auto}
  .panel-head{padding-top:2px;touch-action:none}
  .list{transform:translateZ(0)}
  .fab{right:16px;bottom:calc(172px + var(--safe-b))}
  .share-fab{right:16px;bottom:calc(226px + var(--safe-b))}
  body[data-view="list"] .fab,body[data-view="list"] .share-fab{opacity:0;pointer-events:none}
  body[data-view="map"] .filter,
  body[data-view="map"] .list-search,
  body[data-view="map"] .list-sug{display:none}
  .sheet-body{padding-bottom:calc(30px + var(--safe-b))}
}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .fmk-halo{opacity:0!important}
}

/* вторая кнопка статуса в форме отметки: «Очередь» */
.presence-opt.p-queue[aria-pressed="true"]{border-color:var(--st-queue);
  background:color-mix(in oklab, var(--st-queue) 14%, transparent)}
.presence-opt.p-queue[aria-pressed="true"] span{color:var(--st-queue)}

/* знак сети внутри капли: логотип или монограмма.
   Сама капля повёрнута на -45deg, поэтому содержимое разворачиваем обратно. */
.gpin-logo{width:18px;height:18px;object-fit:contain;display:block;
  background:#fff;border-radius:4px;padding:1.5px;transform:rotate(45deg)}
.gpin-mono{font-family:var(--fm);font-size:10px;font-weight:800;letter-spacing:.02em;
  color:#fff;line-height:1;transform:rotate(45deg)}
.gpin-body svg{transform:rotate(45deg)}
