/* естьбенз.рф — мобильный интерфейс. Сначала телефон, ПК потом. */

:root {
  --bg: #F4F6FA;
  --panel: #FFFFFF;
  --ink: #101828;
  --dim: #5A6678;
  --line: rgba(16, 24, 40, .10);
  --brand: #0E7C66;
  --brand-soft: #E6F4F0;

  --ok: #12A150;
  --low: #E8A305;
  --no: #E5484D;
  --unknown: #98A2B3;

  --shadow: 0 8px 28px rgba(16, 24, 40, .16);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabh: 62px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220; --panel: #141C2B; --ink: #E9EEF6; --dim: #93A0B4;
    --line: rgba(255, 255, 255, .09);
    --brand: #2DD4A7; --brand-soft: rgba(45, 212, 167, .14);
    --ok: #29C26A; --low: #FFC53D; --no: #FF5C61; --unknown: #7C8798;
    --shadow: 0 8px 28px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* КРИТИЧНО: любое правило с display перебивает атрибут hidden из UA-стилей.
   Из-за этого список (display:flex) висел поверх карты, хотя в коде считался
   скрытым. Одно правило закрывает это для всех элементов сразу. */
[hidden] { display: none !important; }

html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--bg); color: var(--ink);
  font: 15px/1.45 -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.view { position: fixed; inset: 0; bottom: calc(var(--tabh) + var(--safe-b)); }
#map { position: absolute; inset: 0; }

/* ── Шапка карты ───────────────────────────────────────────────── */
.top {
  position: absolute; z-index: 20; left: 0; right: 0; top: 0;
  padding: calc(var(--safe-t) + 10px) 12px 8px;
  display: flex; align-items: center; gap: 10px; pointer-events: none;
}
.brand {
  pointer-events: auto; font-weight: 800; font-size: 19px; letter-spacing: -.4px;
  padding: 8px 13px; border-radius: 13px; background: var(--panel); box-shadow: var(--shadow);
}
.brand span { color: var(--brand); }
.city {
  pointer-events: auto; margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 600; color: var(--ink);
  padding: 9px 14px; border: 0; border-radius: 13px;
  background: var(--panel); box-shadow: var(--shadow); cursor: pointer;
}
.city .ic { width: 17px; height: 17px; fill: none; stroke: var(--brand); stroke-width: 1.9; }


/* ── Сводка ────────────────────────────────────────────────────── */
.summary {
  position: absolute; z-index: 20; left: 12px; right: 12px; bottom: 14px;
  padding: 12px 15px; border-radius: 15px; background: var(--panel); box-shadow: var(--shadow);
  font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.summary b { font-size: 19px; font-weight: 800; }
.summary .sub { color: var(--dim); font-weight: 500; font-size: 13px; }

.geo {
  position: absolute; z-index: 20; right: 12px; bottom: 164px;
  width: 46px; height: 46px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--panel); box-shadow: var(--shadow); display: grid; place-items: center;
}
.geo svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }

/* ── Маркеры ───────────────────────────────────────────────────── */

/* ── Шторки ────────────────────────────────────────────────────── */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(6, 10, 18, .45); }
.sheet {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 84vh; overflow-y: auto;
  padding: 8px 16px calc(var(--safe-b) + 20px);
  background: var(--panel); box-shadow: var(--shadow); border-radius: 20px 20px 0 0;
  animation: up .22s cubic-bezier(.22, 1, .36, 1);
}
@keyframes up { from { transform: translateY(100%); } }
.sheet-grab { width: 38px; height: 4px; border-radius: 3px; background: var(--line); margin: 4px auto 12px; }
.sheet-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: var(--bg); color: var(--dim); font-size: 15px; cursor: pointer;
}

.st-name { font-size: 20px; font-weight: 800; margin: 2px 0 3px; letter-spacing: -.3px; }
.st-addr { color: var(--dim); font-size: 14px; }
.st-when { margin-top: 9px; font-size: 13px; color: var(--dim); }
.st-when.fresh { color: var(--ok); font-weight: 600; }
.st-when.stale { color: var(--low); font-weight: 600; }

.badge-src {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 7px; margin-top: 8px;
}
.badge-src.official { background: var(--brand-soft); color: var(--brand); }
.badge-src.crowd { background: rgba(127, 127, 127, .15); color: var(--dim); }

.rows { margin: 14px 0 4px; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.row .f { font-weight: 700; width: 58px; }
.row .dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.row .s { font-weight: 600; }
.row .meta { font-size: 12px; color: var(--dim); font-weight: 500; }
.row .p { margin-left: auto; font-weight: 800; font-size: 16px; }
.row .p small { font-weight: 600; color: var(--dim); font-size: 12px; }
.row.is-yes .s { color: var(--ok); }
.row.is-no .s { color: var(--no); }
.row.is-unknown .s { color: var(--dim); }
.row.is-conflict .s { color: var(--low); }

.src { margin-top: 12px; padding: 10px 12px; border-radius: 11px; background: var(--brand-soft); font-size: 12.5px; line-height: 1.4; }
.acts { display: flex; gap: 9px; margin-top: 14px; }
.acts a, .acts button {
  flex: 1; text-align: center; text-decoration: none; font: inherit; font-weight: 700;
  cursor: pointer; padding: 14px 10px; border-radius: 13px; border: 0;
}
.acts .primary { background: var(--brand); color: #fff; }
.acts .ghost { background: var(--bg); color: var(--ink); border: 1.5px solid var(--line); }
.mark-cta {
  width: 100%; margin-top: 10px; padding: 15px; border: 0; border-radius: 13px;
  background: var(--ok); color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer;
}

/* ── Флоу отметки ──────────────────────────────────────────────── */
.mk-h { font-size: 19px; font-weight: 800; margin: 2px 0 4px; }
.mk-step { font-size: 12px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .5px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 9px; margin: 12px 0; }
.mk-grid button {
  font: inherit; font-weight: 700; padding: 16px 8px; border-radius: 13px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
}
.mk-grid button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.mk-grid button.yes[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }
.mk-grid button.no[aria-pressed="true"] { background: var(--no); border-color: var(--no); }
.mk-price { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.mk-price input {
  flex: 1; font: inherit; font-size: 17px; font-weight: 700; padding: 13px 14px;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
}
.mk-note { font-size: 12px; color: var(--dim); margin-top: 10px; line-height: 1.4; }
.mk-geo { font-size: 12.5px; font-weight: 700; margin-top: 8px; }
.mk-geo.on { color: var(--ok); }
.mk-geo.off { color: var(--dim); }

/* ── Чат ───────────────────────────────────────────────────────── */
.chat-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  padding: calc(var(--safe-t) + 12px) 16px 12px;
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.chat-title { font-weight: 800; font-size: 17px; }
.chat-sub { color: var(--dim); font-size: 12.5px; }
.linkbtn { margin-left: auto; font: inherit; font-weight: 700; color: var(--brand); background: none; border: 0; cursor: pointer; }
.chat-feed {
  position: absolute; top: 0; bottom: 62px; left: 0; right: 0;
  padding: calc(var(--safe-t) + 74px) 12px 12px; overflow-y: auto;
}
.msg { margin-bottom: 12px; }
.msg-head { font-size: 11.5px; color: var(--dim); margin-bottom: 3px; display: flex; gap: 8px; }
.msg-st { display: inline-block; font-size: 11px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.msg-report { font: inherit; font-size: 11.5px; color: var(--dim); background: none; border: 0; cursor: pointer; padding: 4px 0 0; }
.chat-empty { text-align: center; color: var(--dim); padding: 40px 20px; font-size: 14px; }
.chat-form {
  position: absolute; bottom: 0; left: 0; right: 0; display: flex; gap: 8px;
  padding: 10px 12px; background: var(--panel); border-top: 1px solid var(--line);
}
.chat-form input {
  flex: 1; font: inherit; font-size: 15px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
}
.chat-form button {
  width: 46px; border: 0; border-radius: 12px; background: var(--brand); color: #fff;
  font-size: 19px; font-weight: 800; cursor: pointer;
}

/* ── Ещё ───────────────────────────────────────────────────────── */
.more-wrap { height: 100%; overflow-y: auto; padding: calc(var(--safe-t) + 20px) 16px 24px; }
.more-stat { color: var(--dim); font-size: 13.5px; margin-bottom: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 15px 16px; margin-bottom: 12px; }
.card h2 { font-size: 15px; font-weight: 800; margin: 0 0 8px; }
.card p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--dim); }
.card p b { color: var(--ink); }
.rules { margin: 0 0 8px; padding-left: 18px; color: var(--dim); font-size: 13.5px; line-height: 1.7; }
.dim { color: var(--dim); font-size: 12.5px; }
.attrib { color: var(--dim); font-size: 11.5px; line-height: 1.5; text-align: center; padding: 8px 10px 0; }

/* ── Таббар ────────────────────────────────────────────────────── */
.tabbar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  height: calc(var(--tabh) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--panel); border-top: 1px solid var(--line);
}
.tabbar button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font: inherit; font-size: 11px; font-weight: 650;
  border: 0; background: none; color: var(--dim); cursor: pointer;
}
.tabbar button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.tabbar button.on { color: var(--brand); }
.badge {
  position: absolute; top: 6px; right: 50%; margin-right: -22px;
  min-width: 8px; height: 8px; border-radius: 5px; background: var(--no);
}

/* ── Дисклеймер и тост ─────────────────────────────────────────── */
.disclaimer {
  position: fixed; z-index: 60; left: 12px; right: 12px;
  bottom: calc(var(--tabh) + var(--safe-b) + 12px);
  padding: 14px 16px; border-radius: 15px; background: var(--panel); box-shadow: var(--shadow);
  font-size: 12.5px; line-height: 1.5; color: var(--dim);
}
.disclaimer b { color: var(--ink); display: block; margin-bottom: 4px; }
.disclaimer button {
  display: block; margin: 10px 0 0 auto; font: inherit; font-weight: 700;
  color: var(--brand); background: none; border: 0; cursor: pointer; padding: 4px 2px;
}
.toast {
  position: fixed; z-index: 70; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabh) + var(--safe-b) + 20px);
  padding: 12px 18px; border-radius: 13px; max-width: 88vw;
  background: var(--ink); color: var(--bg); font-weight: 650; font-size: 14px;
  box-shadow: var(--shadow); text-align: center;
}

.maplibregl-ctrl-attrib { font-size: 10px; }

/* Справочная цена: видно, что она из внешнего источника и датирована. */
.row .p.ref { color: var(--dim); font-weight: 700; }
.row .psrc { font-size: 10.5px; font-weight: 600; color: var(--dim); opacity: .85; text-align: right; }

/* ── Экран «Сводка» ────────────────────────────────────────────── */
.pulse-wrap { height: 100%; overflow-y: auto; padding: calc(var(--safe-t) + 18px) 16px 24px; }
.pulse-h { font-size: 26px; font-weight: 800; letter-spacing: -.6px; margin: 0 0 6px; }
.pulse-sub { color: var(--dim); font-size: 13px; line-height: 1.45; margin: 0 0 16px; }

.pulse-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 16px; }
.pcard {
  background: var(--panel); border: 1.5px solid transparent; border-radius: 14px;
  padding: 12px 13px; cursor: pointer; box-shadow: var(--shadow);
}
.pcard.on { border-color: var(--brand); }
.pc-t { font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .4px; }
.pc-n { display: flex; align-items: baseline; gap: 5px; margin: 3px 0 4px; }
.pc-n b { font-size: 26px; font-weight: 800; letter-spacing: -.8px; }
.pc-n span { font-size: 12px; color: var(--dim); font-weight: 600; }
.tr { font-size: 11.5px; font-weight: 700; }
.tr.up { color: var(--ok); }
.tr.down { color: var(--no); }
.tr.flat { color: var(--dim); font-weight: 600; }

.chart-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 12px; scrollbar-width: none; }
.chart-tabs::-webkit-scrollbar { display: none; }
.ctab {
  flex: 0 0 auto; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 6px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: transparent; color: var(--dim);
}
.ctab.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.chart { width: 100%; height: 110px; display: block; }
.ch-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ch-area { fill: var(--brand); opacity: .13; stroke: none; }
.chart-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-top: 4px; }
.chart-empty { text-align: center; padding: 22px 8px; }
.chart-empty b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.chart-empty span { font-size: 12.5px; color: var(--dim); }

.fev { display: grid; grid-template-columns: 46px 1fr; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fev:last-child { border-bottom: 0; }
.fev-t { font-size: 12px; font-weight: 700; color: var(--dim); }
.fev-x { font-size: 14px; font-weight: 600; }
.fev.good .fev-x { color: var(--ok); }
.fev.bad .fev-x { color: var(--no); }
.fev-w { grid-column: 2; font-size: 12.5px; color: var(--dim); }

/* ── Сводка в режиме готового ответа ───────────────────────────── */
.summary.answer { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 13px 14px; }
.ans-main { min-width: 0; flex: 1; }
.ans-top { font-size: 11.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .4px; }
.ans-name { font-size: 18px; font-weight: 800; letter-spacing: -.3px; margin: 1px 0 1px;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ans-addr { font-size: 12.5px; color: var(--dim); font-weight: 500;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ans-addr b { color: var(--ink); font-weight: 700; }
.ans-go {
  flex: 0 0 auto; width: 42px; height: 42px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 20px; font-weight: 700;
}

/* .summary b задаёт 19px — в строке адреса это ломает вёрстку */
.summary.answer .ans-addr b { font-size: 12.5px; font-weight: 700; }

/* ── Шапка карточки АЗС: плитка сети + название + адрес ────────── */
.st-head { display: flex; gap: 12px; align-items: flex-start; padding-right: 40px; }
.st-logo {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -.5px;
}
.st-headtext { min-width: 0; }
.st-hours { font-size: 12.5px; color: var(--dim); margin-top: 2px; }

/* ── Знакомство перед первым сообщением в чат ──────────────────── */
.name-ask h2 { font-size: 21px; font-weight: 800; margin: 4px 0 6px; letter-spacing: -.3px; }
.name-ask p { color: var(--dim); font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; }
.name-ask input {
  width: 100%; font: inherit; font-size: 17px; font-weight: 600;
  padding: 14px 15px; border-radius: 13px; margin-bottom: 10px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
}
.name-ask input:focus { outline: none; border-color: var(--brand); }
.name-err { color: var(--no); font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.name-ask .dim { font-size: 11.5px; margin-top: 12px; margin-bottom: 0; }
.msg-who { font-weight: 800; color: var(--brand); }

/* «Вы здесь» */
.me {
  width: 18px; height: 18px; border-radius: 50%;
  background: #1C7ED6; border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(28, 126, 214, .22), 0 2px 6px rgba(0,0,0,.3);
}

/* ── Настоящие логотипы сетей ──────────────────────────────────── */

/* В карточке места больше — показываем полный логотип */
.st-logo.img { background: #fff; border: 1.5px solid var(--line); padding: 6px; }
.st-logo.img img { width: 100%; height: 100%; object-fit: contain; }

/* ── Список АЗС ────────────────────────────────────────────────── */
.listwrap {
  position: absolute; z-index: 22; inset: calc(var(--safe-t) + 112px) 0 0 0;
  background: var(--bg); display: flex; flex-direction: column;
}
.list-tools { padding: 10px 12px 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
#list-search {
  width: 100%; font: inherit; font-size: 15px; padding: 11px 14px;
  border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--panel); color: var(--ink);
}
#list-search:focus { outline: none; border-color: var(--brand); }
.list-filters { display: flex; gap: 7px; overflow-x: auto; margin-top: 9px; scrollbar-width: none; }
.list-filters::-webkit-scrollbar { display: none; }
.lf {
  flex: 0 0 auto; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 7px 13px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--panel); color: var(--dim);
}
.lf.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.list-body { flex: 1; overflow-y: auto; padding: 4px 12px calc(var(--safe-b) + 20px); }
.list-empty { text-align: center; color: var(--dim); padding: 40px 20px; line-height: 1.6; }

.li {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; margin-top: 8px; border-radius: 14px;
  background: var(--panel); border: 1.5px solid transparent; color: var(--ink);
  box-shadow: 0 1px 3px rgba(16,24,40,.06);
}
.li.is-yes { border-color: rgba(18,161,80,.35); }
.li.is-no { opacity: .72; }

.li-logo {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.li-logo img { width: 26px; height: 26px; object-fit: contain; }
.li-logo.mono { color: #fff; font-weight: 800; font-size: 15px; border: 0; }

.li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.li-top { display: flex; align-items: baseline; gap: 8px; }
.li-top b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-st { font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.li.is-yes .li-st { color: var(--ok); }
.li.is-no .li-st { color: var(--no); }
.li.is-conflict .li-st { color: var(--low); }
.li.is-unknown .li-st { color: var(--dim); }
.li-sub { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-meta { font-size: 11.5px; color: var(--dim); opacity: .85; }

.li-right { flex: 0 0 auto; text-align: right; }
.li-price { display: block; font-size: 16px; font-weight: 800; }
.li-price.cheap { color: var(--ok); }
.li-dist { display: block; font-size: 12px; color: var(--dim); font-weight: 600; }

/* Переключатель карта/список */
/* На карте кнопка стоит НАД сводкой, в списке — внизу: сводки там нет */
.modebtn {
  position: absolute; z-index: 24; right: 12px; bottom: 113px;
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  padding: 10px 14px; border: 0; border-radius: 13px;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
}
.modebtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor;
               stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* В списке кнопка режима стоит внизу — оставляем ей место, чтобы не закрывала строки */
.listwrap .list-body { padding-bottom: calc(var(--safe-b) + 68px); }
.li-price.ref { color: var(--dim); font-weight: 700; }
.li-refnote { display: block; font-size: 10px; color: var(--dim); font-weight: 600; }

/* Избранное и «Поделиться» в карточке */
.acts2 { display: flex; gap: 9px; margin-top: 9px; }
.ghost2 {
  flex: 1; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 12px 10px; border-radius: 12px;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
}
.li-fav { color: var(--low); font-size: 13px; }

/* ── Вкладки в карточке АЗС ────────────────────────────────────── */
.cardtabs { display: flex; gap: 6px; margin: 16px 0 10px; padding: 4px;
            background: var(--bg); border-radius: 12px; }
.ct { flex: 1; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
      padding: 9px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--dim); }
.ct.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.1); }
.tab-empty { text-align: center; color: var(--dim); font-size: 13.5px; line-height: 1.6; padding: 22px 10px; }

/* Отметки */
.mk { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mk:last-of-type { border-bottom: 0; }
.mk-l { flex: 1; min-width: 0; }
.mk-l b { font-size: 14px; font-weight: 700; }
.mk.is-yes b { color: var(--ok); }
.mk.is-no b { color: var(--no); }
.mk.is-low b { color: var(--low); }
.mk-onsite { font-size: 10.5px; font-weight: 700; color: var(--brand);
             background: var(--brand-soft); padding: 2px 6px; border-radius: 6px; margin-left: 6px; }
.mk-meta { font-size: 12px; color: var(--dim); margin-top: 2px; }
.mk-thx { flex: 0 0 auto; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
          padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line);
          background: transparent; color: var(--ink); }
.mk-thx.done { border-color: var(--brand); color: var(--brand); }
.mk-mine { flex: 0 0 auto; font-size: 12px; color: var(--dim); font-weight: 600; }

/* Комментарии */
.cm { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cm-h { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
.cm-h b { color: var(--brand); font-weight: 800; }
.cm-b { font-size: 14.5px; margin-top: 3px; line-height: 1.45; }
.cm-rep { font: inherit; font-size: 11px; color: var(--dim); background: none;
          border: 0; padding: 4px 0 0; cursor: pointer; }
.cm-form { display: flex; gap: 8px; margin-top: 12px; }
.cm-form input { flex: 1; font: inherit; font-size: 15px; padding: 12px 14px;
                 border-radius: 12px; border: 1.5px solid var(--line);
                 background: var(--bg); color: var(--ink); }
.cm-form input:focus { outline: none; border-color: var(--brand); }
.cm-form button { flex: 0 0 auto; width: 46px; border: 0; border-radius: 12px;
                  background: var(--brand); color: #fff; font-size: 19px; cursor: pointer; }
.cm-note { font-size: 11px; color: var(--dim); margin-top: 8px; }

/* ── Подписка «сообщить, когда появится» ───────────────────────── */
.subbtn {
  width: 100%; margin-top: 12px; padding: 13px; border-radius: 13px; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 700;
  border: 1.5px dashed var(--line); background: transparent; color: var(--ink);
}
.subbtn.on { border-style: solid; border-color: var(--brand);
             background: var(--brand-soft); color: var(--brand); }

/* Всплывающее уведомление */
.notif {
  position: fixed; z-index: 80; left: 12px; right: 12px;
  top: calc(var(--safe-t) + 12px);
  padding: 14px 16px; border-radius: 16px;
  background: var(--panel); box-shadow: var(--shadow);
  border: 1.5px solid var(--brand);
  animation: down .25s cubic-bezier(.22,1,.36,1);
}
@keyframes down { from { transform: translateY(-120%); } }
.notif-t { font-size: 16px; font-weight: 800; }
.notif-s { font-size: 13px; color: var(--dim); margin-top: 2px; }
.notif-a { display: flex; gap: 8px; margin-top: 11px; }
.notif-a button {
  flex: 1; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 10px; border-radius: 11px; border: 0;
}
.notif-go { background: var(--brand); color: #fff; }
.notif-x { background: var(--bg); color: var(--ink); border: 1.5px solid var(--line) !important; }

/* ── Профиль ───────────────────────────────────────────────────── */
.prof { background: var(--panel); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.prof-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.prof-sub { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prof-grid div { display: flex; flex-direction: column; }
.prof-grid b { font-size: 20px; font-weight: 800; }
.prof-grid span { font-size: 11.5px; color: var(--dim); }
.prof-hint { margin-top: 14px; padding: 11px 13px; border-radius: 11px;
             background: var(--brand-soft); font-size: 13px; line-height: 1.45; }

.actrow { display: flex; gap: 9px; margin: 12px 0 16px; }
.actbtn {
  flex: 1; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 13px 10px; border-radius: 13px;
  background: var(--panel); color: var(--ink); border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.actbtn span:first-child { font-size: 17px; color: var(--brand); }

.fixbtn {
  width: 100%; margin-top: 9px; padding: 11px; border: 0; border-radius: 11px;
  background: none; color: var(--dim); font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; text-decoration: underline;
}
.sg-cur { font-size: 13px; color: var(--dim); background: var(--bg);
          padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.sg-gone { width: 100%; margin-top: 9px; }

/* Ручной выбор темы перебивает системную */
:root[data-theme="light"] {
  --bg: #F4F6FA; --panel: #FFFFFF; --ink: #101828; --dim: #5A6678;
  --line: rgba(16,24,40,.10); --brand: #0E7C66; --brand-soft: #E6F4F0;
  --ok: #12A150; --low: #E8A305; --no: #E5484D; --unknown: #98A2B3;
  --shadow: 0 8px 28px rgba(16,24,40,.16);
}
:root[data-theme="dark"] {
  --bg: #0B1220; --panel: #141C2B; --ink: #E9EEF6; --dim: #93A0B4;
  --line: rgba(255,255,255,.09); --brand: #2DD4A7; --brand-soft: rgba(45,212,167,.14);
  --ok: #29C26A; --low: #FFC53D; --no: #FF5C61; --unknown: #7C8798;
  --shadow: 0 8px 28px rgba(0,0,0,.5);
}

/* Правка своей отметки */
.mk-edit { font: inherit; font-size: 12px; font-weight: 700; color: var(--brand);
           background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.mk-sec { font-size: 11.5px; font-weight: 700; color: var(--brand);
          text-transform: uppercase; letter-spacing: .4px; margin: 14px 0 7px; }
.mk-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.mo { font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
      padding: 10px 14px; border-radius: 11px;
      border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.mo.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Первый запуск ─────────────────────────────────────────────── */
.onb {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center;
  background: rgba(6, 10, 18, .55); padding: 16px;
}
.onb-card {
  width: 100%; max-width: 460px; background: var(--panel);
  border-radius: 20px; padding: 22px 20px calc(var(--safe-b) + 18px);
  box-shadow: var(--shadow); animation: up .26s cubic-bezier(.22,1,.36,1);
}
.onb-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.onb-dots i { width: 22px; height: 4px; border-radius: 3px; background: var(--line); }
.onb-dots i.on { background: var(--brand); }
.onb-card h2 { font-size: 23px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 9px; }
.onb-card p { font-size: 14.5px; line-height: 1.55; color: var(--dim); margin: 0 0 18px; }
.onb-card p b { color: var(--ink); }
.onb-skip { width: 100%; margin-top: 8px; padding: 11px; border: 0; background: none;
            color: var(--dim); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }

/* В режиме списка сводки и геокнопки нет — кнопка опускается вниз */
#view-map.listmode .modebtn { bottom: 14px; }
.badge-src.partial { background: rgba(232,163,5,.15); color: var(--low); }

/* ── Чат: аватарки, ответы, пузыри ─────────────────────────────── */
.msg { display: flex; gap: 9px; padding: 8px 0; align-items: flex-start; }
.msg-av {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: -.3px;
}
.msg-main { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--dim); }
.msg-who { font-weight: 800; color: var(--ink); font-size: 13.5px; }

.msg-re {
  display: block; width: 100%; text-align: left; cursor: pointer;
  margin: 5px 0 4px; padding: 6px 10px; border: 0;
  border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0;
  background: var(--brand-soft); font: inherit;
}
.msg-re b { display: block; font-size: 12px; color: var(--brand); font-weight: 800; }
.msg-re span { display: block; font-size: 12.5px; color: var(--dim);
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.msg-bubble {
  background: var(--panel); border-radius: 4px 14px 14px 14px;
  padding: 10px 13px; font-size: 15px; line-height: 1.45;
  box-shadow: 0 1px 3px rgba(16,24,40,.08); word-break: break-word;
}
.msg.own .msg-bubble { background: var(--brand-soft); }
.msg-st { display: block; font-size: 11.5px; font-weight: 700; color: var(--brand); margin-bottom: 3px; }

.msg-acts { display: flex; gap: 12px; margin-top: 5px; }
.msg-acts button { font: inherit; font-size: 11.5px; background: none; border: 0;
                   padding: 2px 0; cursor: pointer; color: var(--dim); }
.msg-reply { font-weight: 700; color: var(--brand) !important; }
.msg.flash .msg-bubble { animation: flash 1.2s ease; }
@keyframes flash { 0%,100% { background: var(--panel); } 30% { background: var(--brand-soft); } }

/* Панель «отвечаем на…» над полем ввода */
.reply-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; margin: 0 12px; border-radius: 12px 12px 0 0;
  background: var(--brand-soft); border-left: 3px solid var(--brand);
}
.rb-text { min-width: 0; flex: 1; font-size: 12.5px; }
.rb-text b { display: block; color: var(--brand); font-weight: 800; }
.rb-text span { display: block; color: var(--dim);
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar button { flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 50%;
                    background: var(--panel); color: var(--dim); font-size: 13px; cursor: pointer; }

/* ── Профиль: шапка «Водитель / анонимно / Войти» ──────────────── */
.prof-top { display: flex; align-items: center; gap: 12px; }
.prof-av {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-size: 17px; font-weight: 800; border: 2px dashed var(--line);
}
.prof-who { min-width: 0; flex: 1; }
.prof-name { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.prof-login {
  flex: 0 0 auto; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 10px 20px; border: 0; border-radius: 12px;
  background: var(--brand); color: #fff;
}
.prof-grid { margin-top: 16px; }

.sec-h { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin: 22px 0 10px; }

/* Радар «Мои АЗС» */
.radar-empty { background: var(--panel); border-radius: 18px; padding: 26px 20px; text-align: center; }
.radar-ic { font-size: 34px; margin-bottom: 10px; }
.radar-empty h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.3px; }
.radar-empty p { font-size: 13.5px; color: var(--dim); line-height: 1.5; margin: 0 0 16px; }
.radar-legend { display: inline-flex; flex-direction: column; gap: 8px; text-align: left;
                background: var(--bg); padding: 13px 16px; border-radius: 13px; margin-bottom: 18px; }
.radar-legend span { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; }
.d { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.d.ok { background: var(--ok); } .d.no { background: var(--no); } .d.low { background: var(--low); }

.radar-sec { font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase;
             letter-spacing: .4px; margin: 18px 0 8px; }
.rev { display: grid; grid-template-columns: 10px 42px 1fr; gap: 3px 9px;
       align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rev-t { font-size: 12px; font-weight: 700; color: var(--dim); }
.rev-x { font-size: 14px; font-weight: 600; }
.rev.good .rev-x { color: var(--ok); } .rev.bad .rev-x { color: var(--no); }
.rev-w { grid-column: 3; font-size: 12.5px; color: var(--dim); }

.fchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.fchip { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.fchip.yes { background: rgba(18,161,80,.16); color: var(--ok); }
.fchip.no { background: rgba(229,72,77,.14); color: var(--no); }
.fchip.conflict { background: rgba(232,163,5,.16); color: var(--low); }

/* Топливные карты в карточке АЗС */
.fcard-line {
  margin-top: 10px; padding: 10px 12px; border-radius: 11px;
  font-size: 13.5px; font-weight: 700;
  background: rgba(127,127,127,.12); color: var(--ink);
}
.fcard-line.yes { background: var(--brand-soft); color: var(--brand); }
.fcard-line.no { background: rgba(229,72,77,.12); color: var(--no); }
.fcard-line span { display: block; font-size: 11.5px; font-weight: 600; color: var(--dim); margin-top: 2px; }

/* ── Кнопки входа ──────────────────────────────────────────────── */
.login-sheet p { margin-bottom: 16px; }
.login-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

.lbtn {
  width: 100%; display: flex; align-items: center; gap: 12px;
  font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
  padding: 14px 18px; border: 0; border-radius: 16px; color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: transform .12s ease, filter .12s ease;
}
.lbtn:active { transform: scale(.985); filter: brightness(.94); }
.lbtn-ic {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .22);
}
.lbtn-ic svg { width: 17px; height: 17px; }
.li-letter { font-size: 15px; font-weight: 900; line-height: 1; }
.lbtn-t { flex: 1; text-align: center; margin-right: 30px; }

/* MAX — фирменный градиент сине-фиолетовый */
.lbtn.max { background: linear-gradient(100deg, #4A9DF5 0%, #7B4FE0 55%, #9B3FE8 100%); }
/* Яндекс ID — их красно-оранжевый */
.lbtn.ya { background: #FC3F1D; }
/* Telegram — их голубой градиент */
.lbtn.tg { background: linear-gradient(100deg, #37AEE2 0%, #1E96C8 100%); }
/* Google — светлая по их гайдлайну: белая кнопка с рамкой */
.lbtn.google {
  background: #fff; color: #1F1F1F;
  border: 1.5px solid rgba(16, 24, 40, .16); box-shadow: 0 2px 8px rgba(16, 24, 40, .1);
}
.lbtn.google .lbtn-ic { background: transparent; }
.lbtn.google .li-letter.g {
  font-size: 19px; font-weight: 900;
  background: conic-gradient(from -45deg, #EA4335 0deg 90deg, #FBBC05 90deg 180deg,
              #34A853 180deg 270deg, #4285F4 270deg 360deg);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
  .lbtn.google { background: #F7F8FA; }
}
:root[data-theme="dark"] .lbtn.google { background: #F7F8FA; }

/* ── Выгода: главный денежный аргумент ─────────────────────────── */
.save-line {
  margin-top: 12px; padding: 12px 14px; border-radius: 13px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13.5px; font-weight: 700; line-height: 1.45;
}
.save-line.best { background: var(--ok); color: #fff; }
.save-line b { display: block; font-size: 17px; font-weight: 800; margin-top: 1px; }
.save-line span { display: block; font-size: 12px; font-weight: 600; opacity: .85; margin-top: 2px; }

.conf-line {
  margin-top: 10px; padding: 10px 12px; border-radius: 11px;
  background: rgba(232,163,5,.14); color: var(--low);
  font-size: 12.5px; font-weight: 600; line-height: 1.45;
}

.li-best {
  display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .3px;
  color: #fff; background: var(--ok); padding: 2px 6px; border-radius: 5px;
  margin-bottom: 3px; text-transform: uppercase;
}
.ans-save { color: var(--ok); }

/* ── Главный блок статуса в карточке ───────────────────────────── */
.stat-box {
  margin-top: 14px; padding: 16px; border-radius: 16px;
  background: var(--bg); border: 1.5px solid var(--line);
}
.stat-box.is-yes { background: var(--brand-soft); border-color: rgba(18,161,80,.3); }
.stat-box.is-no { background: rgba(229,72,77,.10); border-color: rgba(229,72,77,.25); }
.stat-box.is-conflict { background: rgba(232,163,5,.10); border-color: rgba(232,163,5,.28); }

.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat-word { font-size: 22px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.stat-word span { display: block; font-size: 12px; font-weight: 700; color: var(--dim);
                  letter-spacing: 0; margin-top: 2px; }
.stat-box.is-yes .stat-word { color: var(--ok); }
.stat-box.is-no .stat-word { color: var(--no); }
.stat-box.is-conflict .stat-word { color: var(--low); }
.stat-pct { font-size: 26px; font-weight: 800; color: var(--dim); letter-spacing: -1px; }

.stat-meta { font-size: 12.5px; color: var(--dim); margin-top: 6px; }
.stat-bar { height: 6px; border-radius: 4px; background: rgba(127,127,127,.2);
            margin: 10px 0 4px; overflow: hidden; }
.stat-bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
.stat-conf-t { font-size: 11.5px; color: var(--dim); font-weight: 600; }

.stat-ask { font-size: 14px; font-weight: 700; margin: 14px 0 8px; }
.stat-btns { display: flex; gap: 8px; }
.stat-btns button {
  flex: 1; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 13px 8px; border-radius: 12px; border: 0; line-height: 1.25;
}
.sb-yes { background: var(--ok); color: #fff; }
.sb-yes:disabled { opacity: .6; }
.sb-no { background: var(--panel); color: var(--ink); border: 1.5px solid var(--line) !important; }
.sb-share {
  width: 100%; margin-top: 8px; font: inherit; font-size: 13.5px; font-weight: 700;
  padding: 11px; border-radius: 12px; cursor: pointer;
  background: transparent; color: var(--dim); border: 1.5px solid var(--line);
}

/* ── «Еду туда»: предупреждение об очереди, которая только собирается ── */
.going-line {
  margin-top: 10px; padding: 11px 13px; border-radius: 12px;
  background: rgba(232,163,5,.13); color: var(--low);
  font-size: 13.5px; font-weight: 700; line-height: 1.4;
}
.going-line b { font-weight: 800; }
.going-line span { display: block; font-size: 11.5px; font-weight: 600;
                   color: var(--dim); margin-top: 2px; }
.going-btn {
  width: 100%; margin-top: 9px; padding: 13px; border-radius: 13px; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 700;
  background: transparent; color: var(--ink); border: 1.5px dashed var(--line);
}
.going-btn.on { border-style: solid; border-color: var(--low);
                background: rgba(232,163,5,.12); color: var(--low); }

/* Предупреждение, когда данные перестали обновляться */
.stale-warn {
  padding: 12px 14px; border-radius: 13px; margin-bottom: 12px;
  background: rgba(232,163,5,.14); color: var(--low);
  font-size: 13.5px; font-weight: 700; line-height: 1.4;
}
.stale-warn span { display: block; font-size: 12px; font-weight: 600;
                   color: var(--dim); margin-top: 3px; }

  /* ⚠️ position ОБЯЗАТЕЛЬНО absolute, и своего transform быть не должно.
     Карта позиционирует метку через inline-transform от угла контейнера.
     С position:relative метки остаются в потоке документа, смещение считается
     от их места в потоке — метки встают мимо и «тянутся к центру» при зуме. */
  position: absolute; top: 0; left: 0;
  cursor: pointer; will-change: transform;
  display: flex; align-items: center; gap: 4px;
}

/* Цена крупно в шапке блока, когда наличия нет (Лукойл, независимые) */
.stat-box.has-price { background: var(--brand-soft); border-color: rgba(14,124,102,.28); }
.stat-price { font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -.8px; white-space: nowrap; }
.stat-price small { font-size: 13px; font-weight: 700; color: var(--dim); }

/* ── Кластер: кружок с числом и кольцом есть/нет ───────────────── */
.cluster {
  position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; cursor: pointer;
  display: grid; place-items: center;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.28));
}
.cluster svg { position: absolute; inset: 0; width: 48px; height: 48px; }
.cluster span {
  position: relative; font-weight: 800; font-size: 15px; color: var(--ink);
  z-index: 1;
}
/* Белая заливка под числом, чтобы кольцо не мешало читать */
.cluster::before {
  content: ''; position: absolute; width: 30px; height: 30px; border-radius: 50%;
  background: #fff;
}

/* ── Метка заправки: логотип сети + ценник снизу ───────────────── */
.pin {
  position: absolute; top: 0; left: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  will-change: transform;
}
.pin .ic {
  width: 34px; height: 34px; border-radius: 10px; overflow: hidden;
  background: #fff; border: 2.5px solid #fff;
  box-shadow: 0 2px 7px rgba(0,0,0,.35);
  display: grid; place-items: center;
}
.pin .ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pin .ic .mono { width: 100%; height: 100%; display: grid; place-items: center;
                 color: #fff; font-weight: 800; font-size: 14px; }
/* обводка значка по наличию выбранного топлива */
.pin.yes .ic { border-color: var(--ok); box-shadow: 0 0 0 1.5px var(--ok), 0 2px 7px rgba(0,0,0,.35); }
.pin.no  .ic { border-color: var(--no); box-shadow: 0 0 0 1.5px var(--no), 0 2px 7px rgba(0,0,0,.35); }
.pin.conflict .ic { border-color: var(--low); box-shadow: 0 0 0 1.5px var(--low), 0 2px 7px rgba(0,0,0,.35); }
.pin.dim { opacity: .5; }
.pin.dim b { display: none; }
/* ценник — «язычок» под значком */
.pin b {
  margin-top: -5px; position: relative; z-index: 2;
  font-size: 11.5px; font-weight: 800; line-height: 1;
  padding: 3px 6px; border-radius: 7px;
  background: #fff; color: #101828;
  box-shadow: 0 2px 6px rgba(0,0,0,.28);
}
.pin b.cheap { background: var(--ok); color: #fff; }
.pin b.ref { background: #EEF1F5; color: #5A6678; font-weight: 700; }

/* Кнопка правки владельца (видна только с токеном модератора) */
.ownerfix {
  width: 100%; margin-top: 8px; padding: 12px; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 700;
  background: rgba(14,124,102,.12); color: var(--brand); border: 1.5px dashed var(--brand);
}

/* ── Лента отметок на карточке (как у конкурента) ──────────────── */
.mk { display: flex; gap: 11px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mk:last-child { border-bottom: 0; }
.mk-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: grid;
         place-items: center; font-size: 18px; background: var(--bg); }
.mk-ic.yes { background: var(--brand-soft); }
.mk-ic.no { background: rgba(229,72,77,.12); }
.mk-l { flex: 1; min-width: 0; }
.mk-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mk-top b { font-size: 15px; font-weight: 800; }
.mk.is-yes .mk-top b { color: var(--ok); }
.mk.is-no .mk-top b { color: var(--no); }
.mk-time { font-size: 12.5px; color: var(--dim); flex: 0 0 auto; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.mk-fuel { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 7px;
           background: var(--bg); color: var(--ink); }
.mk-onsite { font-size: 11.5px; font-weight: 700; color: var(--ok);
             background: var(--brand-soft); padding: 3px 8px; border-radius: 7px; }
.mk-meta { font-size: 12px; color: var(--dim); margin-top: 5px; }
.mk-act { flex: 0 0 auto; align-self: center; }
.mk-thx { font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
          padding: 7px 12px; border-radius: 10px; border: 1.5px solid var(--line);
          background: transparent; color: var(--ink); }
.mk-thx.done { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.mk-edit { font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
           background: none; border: 0; color: var(--brand); text-decoration: underline; }
.mk-you { font-size: 12px; color: var(--dim); font-weight: 600; }

/* Строка уверенности со шкалой «N из 10» */
.stat-confrow { display: flex; justify-content: space-between; font-size: 12.5px;
                color: var(--dim); margin-bottom: 6px; }
.stat-confrow b { font-weight: 800; }
.conf-высокая { color: var(--ok); }
.conf-средняя { color: var(--low); }
.conf-низкая, .conf-оченьнизкая { color: var(--no); }

.ghost2.danger { border-color: var(--no) !important; color: var(--no) !important; }

/* Чип «Все» — выделен как основной режим */

/* ── Плашки фильтров над картой ────────────────────────────────── */
.filters {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(var(--safe-t) + 60px);
  display: flex; gap: 8px; padding: 4px 12px 8px; overflow-x: auto; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.fbtn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  padding: 9px 14px; border-radius: 12px; border: 1.5px solid transparent;
  background: var(--panel); color: var(--ink); box-shadow: var(--shadow);
}
.fbtn svg { width: 17px; height: 17px; fill: none; stroke: var(--brand);
            stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fbtn i { font-style: normal; font-size: 11px; color: var(--dim); }
.fbtn.on { border-color: var(--brand); background: var(--brand-soft); }
.fbtn.on svg { stroke: var(--brand); }

/* Шторка выбора */
.fsheet {
  position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; max-height: 76vh;
  display: flex; flex-direction: column;
  padding: 8px 0 calc(var(--safe-b) + 12px);
  background: var(--panel); box-shadow: var(--shadow); border-radius: 20px 20px 0 0;
  animation: up .22s cubic-bezier(.22,1,.36,1);
}
.fsheet-h { display: flex; align-items: center; justify-content: space-between;
            padding: 4px 18px 10px; }
.fsheet-h b { font-size: 17px; font-weight: 800; }
.fsheet-h button { width: 30px; height: 30px; border: 0; border-radius: 50%;
                   background: var(--bg); color: var(--dim); font-size: 14px; cursor: pointer; }
.fsheet-body { flex: 1; overflow-y: auto; padding: 0 12px; }
.fopt { display: flex; align-items: center; gap: 12px; padding: 13px 8px;
        border-bottom: 1px solid var(--line); cursor: pointer; }
.fopt-box { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px;
            border: 2px solid var(--line); display: grid; place-items: center;
            color: #fff; font-weight: 800; font-size: 14px; }
.fopt.on .fopt-box { background: var(--brand); border-color: var(--brand); }
.fopt-t { flex: 1; font-size: 15px; font-weight: 600; }
.fopt-n { font-size: 13px; color: var(--dim); font-weight: 700; }
.fsheet-foot { display: flex; gap: 10px; padding: 12px 16px 0; }
.fsheet-all { flex: 1; padding: 14px; border-radius: 13px; border: 1.5px solid var(--line);
              background: transparent; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.fsheet-ok { flex: 1; padding: 14px; border-radius: 13px; border: 0;
             background: var(--brand); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
