/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  background: var(--tg-theme-bg-color, #ffffff);
  color: var(--tg-theme-text-color, #222222);
}

/* ===== Map ===== */
#map {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* ===== Header ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--tg-theme-bg-color, #ffffff);
  padding: 8px 12px 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#header-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tg-theme-text-color, #222222);
}

#legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.chip {
  font-size: 12px;
  line-height: 1.2;
  padding: 2px 6px;
  border-radius: 12px;
  background: rgba(0,0,0,0.06);
  white-space: nowrap;
}

/* ===== Обучалка «тапни кружок» (один показ новичку) ===== */
.tap-hint {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 92px;
  z-index: 1350;
  background: #1f1f1f;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  max-width: calc(100vw - 32px);
  text-align: center;
  cursor: pointer;
  animation: tapHintIn 0.4s ease;
}

@keyframes tapHintIn {
  from { transform: translateX(-50%) translateY(16px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

/* ===== Свёрнутый пузырёк воронки (постоянная точка входа) ===== */
.tg-bubble {
  position: fixed;
  left: 12px;
  bottom: 16px;
  /* Ниже карточки (1200) и панели замера (1300): открытые панели перекрывают
     пузырёк, он не мешает заполнять форму */
  z-index: 1150;
  display: flex;
  align-items: stretch;
  background: #16436b;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  max-width: calc(100vw - 24px);
}

.tg-bubble.hidden { display: none; }

.tg-bubble-open {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px 7px 9px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  text-align: left;
  min-width: 0;
}

.tg-bubble-ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0a2238;
  border: 2px solid rgba(255, 179, 0, 0.6);
  color: #ffb300;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tg-bubble-txt { display: flex; flex-direction: column; min-width: 0; }
.tg-bubble-title { font-size: 13px; font-weight: 700; white-space: nowrap; }
.tg-bubble-subs {
  font-size: 11.5px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 230px;
  transition: opacity 0.25s ease; /* плавная смена реплик карусели */
}
.tg-bubble-chat { font-size: 18px; flex-shrink: 0; }

.tg-bubble-close {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  padding: 0 12px 0 4px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== Воронка: окно-телефон с живой лентой канала ===== */
.tg-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-modal.hidden { display: none; }

.tg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 34, 56, 0.65);
  backdrop-filter: blur(2px);
}

.tg-phone {
  position: relative;
  width: 330px;
  max-width: calc(100vw - 36px);
  max-height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
  background: #e7ebf0;
  border: 10px solid #1a1a1c;
  border-radius: 44px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: tgPhoneIn 0.35s ease;
}

@keyframes tgPhoneIn {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.tg-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #1a1a1c;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

#tg-modal-close {
  position: absolute;
  top: 28px;
  right: 10px;
  z-index: 3;
  min-width: 40px;
  min-height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.tg-phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 30px 14px 10px;
  background: #16436b;
  color: #fff;
}

.tg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0a2238;
  border: 2px solid rgba(255, 179, 0, 0.6);
  color: #ffb300;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tg-title { font-size: 14px; font-weight: 700; line-height: 1.25; }
.tg-subs  { font-size: 12px; opacity: 0.8; }

.tg-feed {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px 4px;
  min-height: 180px;
}

.tg-msg {
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #222;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  word-break: break-word;
}

.tg-msg-src { font-size: 11px; color: #16436b; font-weight: 600; margin-bottom: 2px; }
.tg-msg-line { margin: 1px 0; }
.tg-msg-time { font-size: 10.5px; color: #98a2ad; text-align: right; margin-top: 2px; }

.tg-cta-wrap {
  padding: 8px 12px 16px;
  background: #e7ebf0;
}

.tg-cta-hint {
  font-size: 11.5px;
  color: #5d6a76;
  text-align: center;
  margin-bottom: 8px;
}

.tg-subscribe {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 12px;
  background: #2aabee;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.tg-subscribe:active { opacity: 0.8; }

/* Цифра «машин в очереди» внутри кружка маркера */
.queue-num-wrap {
  pointer-events: none;
  background: none;
  border: none;
}
.queue-num {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  pointer-events: none;
}

/* Бейдж паузы (⏸ пересменка / 🛢 слив) в правом верхнем уголке маркера.
   Фигуры рисуем CSS-ом, не эмодзи: одинаково на всех телефонах */
.pause-badge-wrap {
  pointer-events: none;
  background: none;
  border: none;
}
.pause-badge {
  position: absolute;
  left: 1px;   /* центр бейджа ≈ (+10px, −10px) от центра кружка радиуса 11 */
  top: -19px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #999999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
}
.pb-bar {
  width: 3px;
  height: 8px;
  background: #c77700;
  border-radius: 1px;
}
.pb-drop {
  width: 8px;
  height: 10px;
  background: #0b8f3a;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* Строки паузы в карточке станции */
.status-row.pause-row {
  color: #8a5a00;
  background: #fff6e0;
  border-radius: 8px;
  padding: 6px 9px;
  font-weight: 600;
}
.status-row.sliv-row {
  color: #0b5d1e;
  background: #e7f5e9;
  border-radius: 8px;
  padding: 6px 9px;
  font-weight: 600;
}

/* Включённые чипсы паузы в форме — в цвет своих плашек */
#chip-pause.chip-on {
  background: #fff6e0;
  border-color: #d9a300;
  color: #8a5a00;
}
#chip-sliv.chip-on {
  background: #e7f5e9;
  border-color: #2e7d32;
  color: #0b5d1e;
}

/* Кружок «нет данных» в легенде — как маркер на карте: белый с серой окантовкой */
.dot-nodata {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #9e9e9e;
  vertical-align: -2px;
}

#updated {
  font-size: 11px;
  color: #888;
  margin-top: 3px;
  min-height: 14px;
}

/* ===== Bottom Sheet ===== */
.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* На широких экранах панель не растягивается во весь монитор */
  max-width: 560px;
  margin: 0 auto;
  z-index: 1200;
  background: var(--tg-theme-bg-color, #ffffff);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
  max-height: 70vh;
  overflow-y: auto;
  padding: 12px 16px 24px;
  transition: transform 0.25s ease;
}

.sheet.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

/* Свёрнутая в полоску карточка: видна только шапка, карта открыта */
.sheet.peek {
  transform: translateY(calc(100% - 58px));
  overflow: hidden;
  cursor: pointer;
}

/* Кнопка-свёртка: коробка точно как у ✕ (44×44 от того же top) —
   поэтому полоска стоит ровно по центру крестика */
#sheet-collapse {
  position: absolute;
  top: 10px;
  right: 52px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

#sheet-collapse:hover {
  background: rgba(0, 0, 0, 0.07);
}

#sheet-collapse .collapse-bar {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--tg-theme-text-color, #222222);
}

#sheet-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--tg-theme-text-color, #222222);
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}

#sheet-close:hover {
  background: rgba(0,0,0,0.07);
}

/* Sheet content typography */
.sheet-station-name {
  font-size: 17px;
  font-weight: 700;
  margin-top: 2px;
  /* Справа две кнопки (свернуть + закрыть) — имя не должно под них залезать */
  padding-right: 96px;
  color: var(--tg-theme-text-color, #222222);
}

.sheet-station-meta {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-top: 14px;
  margin-bottom: 6px;
}

.status-row {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--tg-theme-text-color, #222222);
}

.age-label {
  font-size: 12px;
  color: #999;
}

.fuel-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  font-size: 14px;
  color: var(--tg-theme-text-color, #222222);
}

.fuel-row:last-child {
  border-bottom: none;
}

.fuel-name {
  width: 70px;
  font-weight: 600;
  flex-shrink: 0;
}

.report-count {
  font-size: 13px;
  color: #666;
  margin-top: 10px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:active {
  opacity: 0.75;
}

.btn-primary {
  background: #2196F3;
  color: #fff;
  width: 100%;
  margin-top: 14px;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #2196F3;
  color: #2196F3;
  width: 100%;
  margin-top: 8px;
}

/* Пульс кольца выбранной АЗС */
.sel-ring {
  animation: selPulse 1.6s ease-in-out infinite;
}

@keyframes selPulse {
  0%, 100% { stroke-opacity: 0.9; }
  50% { stroke-opacity: 0.2; }
}

/* Плашка «нажмите на карте, откуда начинается очередь» */
.pick-hint {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1f1f1f;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  max-width: calc(100vw - 32px);
}

.pick-hint.hidden {
  display: none;
}

/* Панель подтверждения замера хвоста (режим примерки) */
.pick-confirm {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  z-index: 1300;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 14px 16px;
  max-width: calc(100vw - 32px);
  width: 340px;
  text-align: center;
}

.pick-confirm.hidden {
  display: none;
}

.pick-confirm-text {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pick-confirm-place {
  font-size: 12.5px;
  color: #444;
  margin-bottom: 4px;
  min-height: 15px;
}

.pick-confirm input[type='search'] {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 6px;
  outline: none;
}

.pick-search-results {
  max-height: 170px;
  overflow-y: auto;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  margin-bottom: 6px;
}

.pick-search-results.hidden {
  display: none;
}

.pc-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.pick-confirm-note {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

.pick-confirm-btns {
  display: flex;
  gap: 10px;
}

.pc-btn {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.pc-ok {
  background: #43a047;
  color: #fff;
}

.pc-cancel {
  background: rgba(0, 0, 0, 0.07);
  color: #333;
}

.pick-hint button {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  min-height: 36px;
}

/* Быстрые чипы в форме отчёта */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.chip-btn {
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 18px;
  background: #fff;
  color: #333;
  padding: 8px 12px;
  font-size: 13px;
  min-height: 36px;
  cursor: pointer;
}

#chip-all.chip-on {
  background: #43a047;
  border-color: #43a047;
  color: #fff;
}

#chip-cards.chip-on {
  background: #b71c1c;
  border-color: #b71c1c;
  color: #fff;
}

#chip-nofuel.chip-on {
  background: #212121;
  border-color: #212121;
  color: #fff;
}

/* Пояснение под чипами: что попадёт в отчёт */
.chips-hint {
  font-size: 12px;
  color: #2e7d32;
  font-weight: 600;
  min-height: 16px;
  margin: 2px 0 6px;
}

/* «Только по приложению» — синяя подсветка выбора */
.seg-btn.active-app {
  background: #1976d2;
  color: #fff;
}

/* Четыре кнопки топлива в ряд на узких экранах */
.segment-ctrl[data-fuel] .seg-btn {
  font-size: 13px;
  padding-left: 4px;
  padding-right: 4px;
}

/* Погашенные кнопки топлива (режим «только по корп. картам») */
.seg-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Предупреждение «только по картам» в карточке */
.serving-warn {
  color: #b71c1c;
  font-weight: 600;
}

/* «Оплата по приложению» — предупреждение мягче, это не блокер */
.serving-note {
  color: #e65100;
  font-weight: 600;
}

.serving-hint {
  font-size: 12px;
  color: #888;
  margin: 2px 0 6px;
}

/* Контрол «Кого заправляют?»: четыре кнопки — переносим в две строки */
#serving-ctrl {
  flex-wrap: wrap;
}

#serving-ctrl .seg-btn {
  flex: 1 1 45%;
}

/* Две кнопки очереди в ряд: «Указать на карте» и «Очереди нет» */
.queue-btns {
  display: flex;
  gap: 8px;
}

.queue-btns .btn-outline {
  flex: 1;
  width: auto;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 14px;
}

#btn-no-queue.queue-none-on {
  background: #43a047;
  border-color: #43a047;
  color: #fff;
}

/* Свёрнутый ручной выбор уровня очереди */
.collapse-toggle {
  background: none;
  border: none;
  color: #2196F3;
  font-size: 14px;
  padding: 6px 0;
  min-height: 36px;
  cursor: pointer;
  display: block;
}

.radio-group.collapsed {
  display: none;
}

/* Результат замера хвоста в форме */
.pick-result {
  font-size: 13px;
  color: #2e7d32;
  font-weight: 600;
  margin-top: 6px;
  min-height: 18px;
}

/* Рекламный блок в карточке АЗС */
.promo-block {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.promo-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #b0a26e;
  margin-bottom: 2px;
}

/* Подписи брендов у маркеров АЗС */
.brand-label {
  background: rgba(255, 255, 255, 0.88);
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  color: #333;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
}

.brand-label::before {
  display: none; /* без стрелки-хвостика у ярлыка */
}

/* Плашка «подписаться на сводки» */
.sub-banner {
  position: fixed;
  left: 10px;
  bottom: 26px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  max-width: 72vw;
}

.sub-banner.hidden {
  display: none;
}

#sub-banner-link {
  background: none;
  border: none;
  padding: 9px 4px 9px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1976d2;
  cursor: pointer;
  text-align: left;
}

#sub-banner-close {
  background: none;
  border: none;
  padding: 9px 10px;
  font-size: 13px;
  color: #999;
  cursor: pointer;
}

/* Приглашение в канал после отчёта */
.sub-invite {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1b5e20;
}

.sub-invite .btn {
  margin-top: 10px;
}

/* Кнопка «где я» */
#btn-locate {
  position: fixed;
  right: 12px;
  bottom: 96px;
  z-index: 1000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 20px;
  cursor: pointer;
}

#btn-locate:active {
  transform: scale(0.94);
}

/* Поиск мест */
#search-box {
  position: relative;
  margin: 6px 0 4px;
}

#search-input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 15px;
  background: #fff;
  color: #222;
  outline: none;
  box-sizing: border-box;
}

#search-input:focus {
  border-color: #2196F3;
}

#search-results {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 1400;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  max-height: 40vh;
  overflow-y: auto;
}

#search-results.hidden {
  display: none;
}

.search-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 12px;
  font-size: 14px;
  color: #222;
  cursor: pointer;
  min-height: 44px;
}

.search-item:active {
  background: rgba(33, 150, 243, 0.08);
}

.search-item-sub {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.search-empty {
  padding: 12px;
  font-size: 13px;
  color: #888;
}

.search-group-title {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #999;
}

.search-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: baseline;
  border: 1.5px solid #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
}

.btn-submit {
  background: #43a047;
  color: #fff;
  flex: 1;
}

.btn-back {
  background: rgba(0,0,0,0.07);
  color: var(--tg-theme-text-color, #222222);
  flex: 1;
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* ===== Recent reports list ===== */
.reports-list {
  margin-top: 4px;
}

.report-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  font-size: 13px;
  color: var(--tg-theme-text-color, #222222);
}

.report-item:last-child {
  border-bottom: none;
}

.report-time {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 2px;
}

.report-comment {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
  font-style: italic;
}

/* ===== Form ===== */
.form-section-title {
  font-size: 14px;
  font-weight: 700;
  margin-top: 14px;
  margin-bottom: 8px;
  color: var(--tg-theme-text-color, #222222);
}

/* Queue radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0.1);
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
  color: var(--tg-theme-text-color, #222222);
}

.radio-label input[type="radio"] {
  accent-color: #2196F3;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.radio-label:has(input:checked) {
  border-color: #2196F3;
  background: rgba(33,150,243,0.07);
}

/* Fuel segment controls */
.fuel-segment-row {
  margin-bottom: 10px;
}

.fuel-segment-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--tg-theme-text-color, #222222);
}

.segment-ctrl {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(0,0,0,0.1);
}

.seg-btn {
  flex: 1;
  min-height: 44px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: var(--tg-theme-text-color, #222222);
  transition: background 0.15s, color 0.15s;
  padding: 0 4px;
}

.seg-btn + .seg-btn {
  border-left: 2px solid rgba(0,0,0,0.1);
}

.seg-btn.active-yes {
  background: #43a047;
  color: #fff;
}

.seg-btn.active-no {
  background: #e53935;
  color: #fff;
}

.seg-btn.active-unknown {
  background: #9e9e9e;
  color: #fff;
}

/* Comment textarea */
.comment-field {
  width: 100%;
  min-height: 72px;
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0.1);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  color: var(--tg-theme-text-color, #222222);
  background: var(--tg-theme-bg-color, #ffffff);
  margin-top: 4px;
}

.comment-field:focus {
  outline: none;
  border-color: #2196F3;
}

.validation-hint {
  color: #e53935;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.validation-hint.visible {
  display: block;
}

/* ===== Toasts ===== */
#toasts {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 360px;
}

.toast {
  background: rgba(30,30,30,0.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}
