/* Águia Mobile — mapa + menu sanduíche de veículos */

html.agon-mobile-app-html,
body.agon-mobile-app {
  height: 100%;
  width: 100%;
  overscroll-behavior: none;
  background: #c5d0db;
}

body.agon-mobile-app #loading {
  z-index: 200000;
}

body.agon-mobile-app #header,
body.agon-mobile-app #sidebar,
body.agon-mobile-app #widgets,
body.agon-mobile-app .agon-mobile-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

body.agon-mobile-app #bottombar,
body.agon-mobile-app #bottom-history,
body.agon-mobile-app #widgets {
  display: none !important;
  pointer-events: none !important;
}

body.agon-mobile-app #history-control-layers {
  display: none !important;
}

body.agon-mobile-app #mapWrap,
body.agon-mobile-app #map {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  z-index: 1 !important;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
}

body.agon-mobile-app #map-controls {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

body.agon-mobile-app #map-controls .btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: #f5f7fa !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .18) !important;
  border: 0 !important;
  margin: 0 !important;
}

body.agon-mobile-app .leaflet-popup-device {
  display: none !important;
}

/* Esconde restos / menu antigo */
#agon-sheet,
#agon-speedo,
#agon-map-chips,
#agon-map-status,
#agon-menu-btn,
#agon-drawer,
#agon-drawer-overlay,
#agon-panel-config {
  display: none !important;
}

/* Ações — lateral direita, acima da tabbar */
#agon-actions {
  position: fixed;
  right: 12px;
  left: auto;
  top: auto;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  transform: none;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.agon-tab-map #agon-actions {
  display: flex;
}

body:not(.agon-tab-map) #agon-actions,
body.agon-vsheet-open #agon-actions,
body.agon-history-mode #agon-actions {
  display: none;
}

/* Barra mínima do histórico no mapa */
#agon-history-bar {
  position: fixed;
  left: 12px;
  right: 126px;
  top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 70;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #f5f7fa;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .22);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

#agon-history-bar.is-open {
  display: flex;
}

.agon-history-bar__text {
  min-width: 0;
  flex: 1;
}

.agon-history-bar__text strong {
  display: block;
  font-size: 12px;
  color: #0f172a;
}

.agon-history-bar__text span {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Resumo do período — abaixo da barra do histórico (2 linhas no celular) */
#agon-history-summary {
  position: fixed;
  left: 12px;
  right: 126px;
  top: calc(58px + env(safe-area-inset-top, 0px));
  z-index: 69;
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 118, 110, .94);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

#agon-history-summary.is-open {
  display: flex;
}

.agon-history-summary__label {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8;
  margin-top: 2px;
}

.agon-history-summary__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#agon-history-summary strong,
.agon-history-summary__body strong {
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}

.agon-history-summary__body small,
#agon-history-summary [data-hs="line2"] {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  color: #ccfbf1;
  white-space: normal;
  overflow: visible;
}

/* Marcadores de bloqueio / âncora no histórico */
.agon-history-action-marker {
  background: transparent !important;
  border: 0 !important;
}

.agon-history-action-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .35);
  border: 2px solid #fff;
  color: #fff;
}

.agon-history-action-pin svg {
  display: block;
}

.agon-history-action-pin--lock {
  background: #b91c1c;
}

.agon-history-action-pin--unlock {
  background: #15803d;
}

.agon-history-action-pin--anchor-on {
  background: #0f766e;
}

.agon-history-action-pin--anchor-off {
  background: #64748b;
}

.agon-history-action-pin--phone-stopped {
  background: #475569;
}

.agon-history-side__trip.is-silent {
  cursor: default;
}

.agon-history-side__trip.is-silent .agon-history-side__kind {
  background: #475569;
  color: #fff;
}

.agon-history-bar__close {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
}

.agon-history-bar__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.agon-history-bar__btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

.agon-history-bar__btn.is-playing {
  background: #b45309;
}

.agon-history-bar__btn[data-h="stop"] {
  background: #334155;
}

.agon-history-play-marker {
  background: transparent !important;
  border: 0 !important;
}

.agon-history-play-pin {
  display: block;
  width: 28px;
  height: 42px;
  filter: drop-shadow(0 3px 6px rgba(15, 23, 42, .4));
  animation: agon-history-pin-pulse 1.6s ease-in-out infinite;
}

.agon-history-play-pin svg {
  display: block;
}

@keyframes agon-history-pin-pulse {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 3px 6px rgba(22, 163, 74, .45)); }
  50% { transform: translateY(-2px); filter: drop-shadow(0 6px 12px rgba(22, 163, 74, .7)); }
}

/* Lista compacta: dias + viagens (direita) */
#agon-history-side {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 8px;
  width: 108px;
  max-height: calc(100vh - 140px - env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(245, 247, 250, .96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .2);
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

#agon-history-side.is-open {
  display: flex;
}

.agon-history-side__days {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 34%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  border-bottom: 1px solid #d5dde6;
}

.agon-history-side__day {
  border: 0;
  border-radius: 8px;
  background: #e8eef4;
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 6px;
  text-align: center;
  line-height: 1.1;
}

.agon-history-side__day.is-active {
  background: #0f766e;
  color: #fff;
}

.agon-history-side__trips {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.agon-history-side__trip {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 5px 5px;
  text-align: left;
  line-height: 1.15;
}

.agon-history-side__trip.is-active {
  outline: 1.5px solid #1d4ed8;
  background: #eff6ff;
}

.agon-history-side__kind {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 800;
  margin-top: 1px;
}

.agon-history-side__trip.is-drive .agon-history-side__kind {
  background: #dbeafe;
  color: #1d4ed8;
}

.agon-history-side__trip.is-stop .agon-history-side__kind {
  background: #e2e8f0;
  color: #475569;
}

.agon-history-side__trip-main {
  min-width: 0;
  flex: 1;
}

.agon-history-side__trip-main b {
  display: block;
  font-size: 10px;
  font-weight: 700;
}

.agon-history-side__trip-main small,
.agon-history-side__trip-meta {
  display: block;
  margin-top: 1px;
  font-size: 8px;
  color: #64748b;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
  word-break: break-word;
}

.agon-history-side__trip-fuel {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-weight: 700;
  color: #0f766e;
  white-space: normal;
  line-height: 1.25;
}

.agon-history-side__empty {
  font-size: 9px;
  color: #94a3b8;
  padding: 8px 4px;
  text-align: center;
}

/* Botões do mapa: círculo do ícone + nome preto embaixo (sem quadrado) */
.agon-act-btn {
  width: 52px;
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  font-size: 18px;
  padding: 0;
  box-shadow: none !important;
}

.agon-act-btn__ico {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 50%;
  background: #1e293b;
  color: inherit;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
  flex: 0 0 44px;
}

.agon-act-btn__ico svg {
  width: 18px;
  height: 18px;
}

.agon-act-btn__label {
  display: block;
  max-width: 54px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  color: #0f172a;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agon-act-btn--map,
.agon-act-btn--share,
.agon-act-btn--locate,
.agon-act-btn--history,
.agon-act-btn--pay,
.agon-act-btn--refresh,
.agon-act-btn--lock.is-unlocked {
  color: #e2e8f0;
  background: transparent;
  border-color: transparent;
}

.agon-act-btn--map .agon-act-btn__ico,
.agon-act-btn--share .agon-act-btn__ico,
.agon-act-btn--locate .agon-act-btn__ico,
.agon-act-btn--history .agon-act-btn__ico,
.agon-act-btn--pay .agon-act-btn__ico,
.agon-act-btn--refresh .agon-act-btn__ico,
.agon-act-btn--lock.is-unlocked .agon-act-btn__ico {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.28);
}

.agon-act-btn--pay {
  color: #fde68a;
  position: relative;
}

.agon-pay-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(127, 29, 29, .45);
  pointer-events: none;
  z-index: 2;
}

.agon-config__item--pay {
  position: relative;
}

.agon-config__item--pay .agon-pay-badge {
  top: 10px;
  right: 12px;
}

.agon-act-btn--locate {
  color: #7dd3fc;
}

.agon-act-btn--locate.is-on {
  color: #e0f2fe;
}

.agon-act-btn--locate.is-on .agon-act-btn__ico {
  background: #0c4a6e;
  border-color: rgba(56, 189, 248, 0.55);
}

.agon-phone-marker {
  background: transparent !important;
  border: 0 !important;
}

.agon-phone-marker__pulse,
.agon-phone-marker__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.agon-phone-marker__pulse {
  width: 22px;
  height: 22px;
  background: rgba(14, 165, 233, 0.28);
  animation: agon-phone-pulse 1.8s ease-out infinite;
}

.agon-phone-marker__dot {
  width: 12px;
  height: 12px;
  background: #0ea5e9;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35);
}

@keyframes agon-phone-pulse {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.agon-act-btn--lock.is-locked {
  color: #fecaca;
  background: transparent;
}

.agon-act-btn--lock.is-locked .agon-act-btn__ico {
  background: #7f1d1d;
  border-color: rgba(248, 113, 113, 0.45);
}

.agon-act-btn.is-active {
  color: #fecaca;
  background: transparent;
}

.agon-act-btn.is-active .agon-act-btn__ico {
  background: #7f1d1d;
  border-color: rgba(248, 113, 113, 0.45);
}

.agon-act-btn:active:not(.is-busy) {
  filter: brightness(1.12);
}

.agon-act-btn.is-busy {
  opacity: .55;
  pointer-events: none;
}

/* Tabbar fixa — cool gray 12 (preta) */
#agon-tabbar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 150000 !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  min-height: 58px;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  background: #18181b !important;
  border-top: 1px solid #27272a !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .35) !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#agon-tabbar .agon-tab {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: #a1a1aa !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 6px 2px !important;
  margin: 0 !important;
  min-height: 48px;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  box-shadow: none !important;
}

#agon-tabbar .agon-tab.is-active {
  color: #fafafa !important;
}

#agon-tabbar .agon-tab__ico {
  display: block !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: inherit !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  filter: grayscale(.15);
}

#agon-tabbar .agon-tab.is-active .agon-tab__ico {
  filter: none;
}

#agon-tabbar .agon-tab__label {
  display: block !important;
  color: inherit !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* Painéis em meia tela (mapa continua visível em cima) */
#agon-panel-scrim {
  position: fixed;
  inset: 0;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 64;
  background: rgba(15, 23, 42, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

#agon-panel-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.agon-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: auto;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  height: min(52vh, 420px);
  z-index: 65;
  background: #cdd6e1;
  display: none !important;
  flex-direction: column;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, .2);
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.agon-panel--account {
  height: min(86vh, 720px);
}

.agon-panel--alerts {
  height: min(72vh, 580px);
}

.agon-alerts-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px !important;
}

.agon-alerts-tools {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agon-alerts-create {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  background: #0f172a;
  color: #fff;
  text-align: center;
  font-family: inherit;
}

.agon-alerts-push {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 12px 14px;
  background: #eff6ff;
  color: #0f172a;
  text-align: left;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .08);
}

.agon-alerts-push__ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #dbeafe;
  font-size: 22px;
  line-height: 1;
}

.agon-alerts-push__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agon-alerts-push__copy strong {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
}

.agon-alerts-push__copy small {
  font-size: 12px;
  color: #64748b;
  line-height: 1.3;
}

.agon-alerts-push.is-on {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.agon-alerts-push.is-on .agon-alerts-push__copy strong {
  color: #065f46;
}

.agon-alerts-push.is-on .agon-alerts-push__ico {
  border-color: #a7f3d0;
}

.agon-alerts-push.is-denied {
  background: #fff7ed;
  border-color: #fed7aa;
}

.agon-alerts-push.is-denied .agon-alerts-push__copy strong {
  color: #9a3412;
}

.agon-alert-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
  max-height: 72px;
  overflow: hidden;
}

.agon-alert-pills.is-expanded {
  max-height: none;
  overflow: visible;
}

.agon-alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d0d7e2;
  background: #f5f7fa;
  color: #64748b;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  max-width: 100%;
  line-height: 1.2;
}

.agon-alert-pill.is-on {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.agon-alert-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  flex: 0 0 auto;
}

.agon-alert-pill.is-on .agon-alert-pill__dot {
  background: #16a34a;
}

.agon-alert-pill__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.agon-alert-pills-toggle {
  border: 1px dashed #cbd5e1;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
}

.agon-alerts-section {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 2px 2px 0;
  flex: 0 0 auto;
}

#agon-alerts-list {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.agon-panel:not([hidden]),
.agon-panel.is-open {
  display: flex !important;
  visibility: visible;
  pointer-events: auto;
  z-index: 66;
}

.agon-panel__head {
  padding: 10px 16px 10px;
  background: #c5ced9;
  border-bottom: 1px solid #b8c2ce;
  flex: 0 0 auto;
}

.agon-panel__head:before {
  content: '';
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: #cbd5e1;
  margin: 0 auto 10px;
}

.agon-panel__head h1 {
  margin: 0;
  font-size: 17px;
  color: #0f172a;
  text-align: center;
}

.agon-panel__body {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
}

/* Ficha do veículo (modal com Street View + ações) */
#agon-vehicle-sheet {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 66;
  height: auto;
  max-height: min(92vh, 820px);
  background: #cdd6e1;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .28);
  transform: translateY(calc(100% + 88px));
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  overflow: hidden;
}

.agon-vsheet__follow {
  position: relative;
  flex: 0 0 190px;
  height: 190px;
  background: #e2e8f0;
}

.agon-vsheet__follow-map {
  width: 100%;
  height: 100%;
}

.agon-vsheet__follow-map .leaflet-control-container,
.agon-vsheet__follow-map .leaflet-control-attribution {
  display: none !important;
}

.agon-solo-marker {
  background: transparent !important;
  border: 0 !important;
}

.agon-solo-dot {
  display: block;
  width: 14px;
  height: 14px;
  margin: 13px auto;
  border-radius: 50%;
  background: #eab000;
  box-shadow: 0 0 0 4px rgba(234, 176, 0, .28);
}

.agon-vsheet__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.agon-vsheet__section {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}

.agon-vsheet__conn {
  margin: 0 0 4px;
}

.agon-vsheet__conn .agon-vsheet__section span {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #94a3b8;
  margin-left: 4px;
}

.agon-vsheet__conn-body {
  padding: 0 14px 10px;
}

.agon-vsheet__conn-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.agon-vsheet__conn-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
}

.agon-vsheet__conn-pill.is-online {
  background: #dcfce7;
  color: #166534;
}

.agon-vsheet__conn-pill.is-offline {
  background: #fee2e2;
  color: #991b1b;
}

.agon-vsheet__conn-meta {
  font-size: 12px;
  color: #64748b;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agon-vsheet__conn-bars {
  display: flex;
  gap: 1px;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  background: #e2e8f0;
  margin-bottom: 6px;
}

.agon-vsheet__conn-bar {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  background: #94a3b8;
}

.agon-vsheet__conn-bar.is-online { background: #22c55e; }
.agon-vsheet__conn-bar.is-offline { background: #ef4444; }
.agon-vsheet__conn-bar.is-mixed {
  background: linear-gradient(180deg, #22c55e 0%, #22c55e calc(var(--p) * 1%), #ef4444 calc(var(--p) * 1%), #ef4444 100%);
}
.agon-vsheet__conn-bar.is-empty { background: #cbd5e1; }

.agon-vsheet__conn-sum {
  font-size: 11px;
  color: #475569;
  margin-bottom: 6px;
}

.agon-vsheet__conn-drops {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agon-vsheet__conn-drop {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
}

.agon-vsheet__conn-drop b {
  color: #b91c1c;
  font-weight: 700;
  white-space: nowrap;
}

.agon-vsheet__conn-drop span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agon-vsheet__conn-drop.is-empty {
  color: #94a3b8;
  justify-content: flex-start;
}

.agon-vsheet__cfg {
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
}

.agon-vsheet__cmds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 12px;
}

.agon-vsheet__refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.agon-vsheet__refresh svg {
  width: 18px;
  height: 18px;
}

.agon-vsheet__refresh.is-busy {
  opacity: .6;
  pointer-events: none;
}

.agon-vsheet__cmd {
  border: 1px solid #d5dde6;
  background: #f5f7fa;
  color: #0f172a;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
}

.agon-vsheet__cmds-empty {
  display: none;
}

#agon-vehicle-sheet.is-open {
  transform: translateY(0);
}

.agon-vsheet__handle {
  width: 36px;
  height: 3px;
  border-radius: 99px;
  background: #cbd5e1;
  margin: 8px auto 0;
  flex: 0 0 auto;
}

.agon-vsheet__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px 8px;
}

.agon-vsheet__info {
  min-width: 0;
  flex: 1;
}

.agon-vsheet__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f5f7fa;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  margin-top: 2px;
}

.agon-vsheet__icon img {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

.agon-vsheet__icon .agon-vsheet__arrow {
  font-size: 18px;
  line-height: 1;
}

.agon-vsheet__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.agon-vsheet__meta {
  margin-top: 0;
  font-size: 11px;
  color: #64748b;
}

.agon-vsheet__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 2px;
}

.agon-vsheet__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.agon-vsheet__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.agon-vsheet__time,
.agon-vsheet__duration {
  margin-top: 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

.agon-vsheet__time {
  white-space: nowrap;
}

.agon-vsheet__duration {
  margin-top: 2px;
  color: #475569;
  font-weight: 600;
}

.agon-vsheet__addr {
  margin-top: 4px;
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agon-vsheet__chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 2px 12px 10px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 0 1 auto;
  align-content: start;
  max-height: 118px;
}

.agon-vsheet__chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f7fa;
  border: 1px solid #d5dde6;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}

.agon-vsheet__emoji {
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
}

.agon-vsheet__chip-text {
  min-width: 0;
  flex: 1;
}

.agon-vsheet__chip small {
  display: block;
  font-size: 9px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.agon-vsheet__chip b {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agon-vsheet__chip.is-na b {
  color: #94a3b8;
  font-weight: 600;
  font-size: 11px;
}

.agon-vsheet__street {
  flex: 0 0 auto;
  padding: 0 12px 8px;
  position: relative;
}

.agon-vsheet__street a {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  text-decoration: none;
}

.agon-vsheet__street img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.agon-vsheet__street > a > span {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  pointer-events: none;
}

.agon-vsheet__quick {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
  padding: 0 12px 12px;
  flex: 0 0 auto;
}

.agon-vsheet__qbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  border: 1px solid #d5dde6;
  border-radius: 10px;
  background: #f5f7fa;
  color: #0f172a;
  font-size: 9px;
  font-weight: 700;
  padding: 6px 2px;
  line-height: 1.1;
}

.agon-vsheet__qicon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: inherit;
}

.agon-vsheet__qicon svg {
  width: 15px;
  height: 15px;
}

.agon-vsheet__qbtn--history {
  color: #fff;
  background: #0f766e;
  border-color: #0d9488;
}

.agon-vsheet__qbtn--share {
  color: #fff;
  background: #16a34a;
  border-color: #15803d;
}

.agon-vsheet__qbtn.agon-act-btn--lock.is-unlocked {
  color: #15803d;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.agon-vsheet__qbtn.agon-act-btn--lock.is-locked {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}

.agon-vsheet__qbtn.is-active {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}

.agon-vsheet__sv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .62);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.agon-vsheet__sv-arrow--left {
  left: 18px;
}

.agon-vsheet__sv-arrow--right {
  right: 18px;
}

/* Alertas — padrão compacto + endereço limpo */
.agon-alert-card {
  background: #f5f7fa;
  border: 1px solid #d5dde6;
  border-radius: 14px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.agon-alert-card__main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px 14px;
}

.agon-alert-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.agon-alert-card__icon img {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.agon-alert-card__icon .agon-vsheet__arrow {
  font-size: 20px;
  line-height: 1;
}

.agon-alert-card__body {
  min-width: 0;
  flex: 1;
}

.agon-alert-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}

.agon-alert-card__title b {
  font-size: 15px;
}

.agon-alert-card__sub {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.agon-alert-card__addr {
  margin-top: 8px;
  font-size: 13px;
  color: #475569;
  line-height: 1.35;
}

.agon-vsheet__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 500;
  margin-left: auto;
  border: 0;
  background: rgba(245, 247, 250, .92);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
}

.agon-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #f5f7fa;
  border: 1px solid #d5dde6;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.agon-list-item.is-active {
  outline: 2px solid #93c5fd;
}

.agon-list-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.agon-list-item b {
  display: block;
  font-size: 15px;
  color: #0f172a;
}

.agon-list-item small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}

.agon-vehicle-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.agon-vehicle-card__icon img {
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
}

.agon-vehicle-card__icon .agon-vsheet__arrow {
  font-size: 24px;
  line-height: 1;
}

.agon-vehicle-card__body {
  min-width: 0;
  flex: 1;
}

.agon-vehicle-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.agon-vehicle-card__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 3px;
}

.agon-vehicle-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0;
  font-size: 12px;
  color: #64748b;
}

.agon-vehicle-card__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.agon-vehicle-card__time,
.agon-vehicle-card__duration {
  margin-top: 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

.agon-vehicle-card__time {
  white-space: nowrap;
}

.agon-vehicle-card__duration {
  margin-top: 2px;
  color: #475569;
  font-weight: 600;
}

.agon-vehicle-card__addr {
  margin-top: 4px;
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agon-empty {
  text-align: center;
  color: #94a3b8;
  padding: 40px 16px;
  font-size: 14px;
}

.agon-config__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px 22px;
  background: #f5f7fa;
  border: 1px solid #d5dde6;
  border-radius: 16px;
  margin-bottom: 14px;
}

.agon-config--home {
  padding-top: 14px;
}

.agon-config__card {
  background: #fff;
  border: 1px solid #d5dde6;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.agon-config--home .agon-config__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e8edf3;
  border-radius: 0;
  padding: 13px 14px;
  margin: 0;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  word-spacing: .04em;
  text-align: left;
  font-family: inherit;
  box-sizing: border-box;
}

.agon-config--home .agon-config__item:last-child {
  border-bottom: 0;
}

.agon-config__ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.agon-config__copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agon-config__copy strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0;
  word-spacing: .04em;
  line-height: 1.25;
}

.agon-config__copy small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0;
  word-spacing: .03em;
  line-height: 1.35;
}

.agon-config--home .agon-config__item--pay .agon-config__ico,
.agon-config--home .agon-config__item--wa .agon-config__ico {
  background: #eff6ff;
}

.agon-config--home .agon-config__item--wa .agon-config__ico {
  background: #ecfdf5;
}

.agon-config__logout {
  display: block;
  width: 100%;
  margin: 6px 0 4px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.agon-config--home .agon-config__hint {
  margin: 0 4px 8px;
  text-align: center;
}

.agon-config__version {
  margin: 4px 4px 18px;
  padding: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #94a3b8;
}

body.agon-night .agon-config__version {
  color: #64748b;
}

.agon-config__hello {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 14px;
  margin-bottom: 2px;
}

.agon-config__hello img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.agon-config__hello-text {
  min-width: 0;
  flex: 1;
}

.agon-config__hello-text strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: 0;
  word-spacing: .04em;
}

.agon-config__hello-text span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agon-config__brand img {
  border-radius: 16px;
}

.agon-config__brand strong {
  font-size: 17px;
  color: #0f172a;
}

.agon-config__brand span {
  font-size: 13px;
  color: #64748b;
  word-break: break-all;
}

.agon-config__phone {
  font-size: 12px !important;
  color: #475569 !important;
}

.agon-config__section {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 6px 4px 6px;
}

.agon-config__item {
  display: block;
  width: 100%;
  background: #f5f7fa;
  border: 1px solid #d5dde6;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 7px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  font-family: inherit;
  box-sizing: border-box;
}

.agon-config__item--danger {
  color: #b91c1c;
}

.agon-config__item--wa {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.agon-config__item--pay {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.agon-config__item--night,
.agon-config__item--phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agon-config__phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  border-radius: 14px;
}

.agon-config__phones-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.agon-config__phones-head strong {
  font-size: 13px;
  color: #0c4a6e;
}

.agon-config__phones-head small {
  font-size: 11px;
  color: #0369a1;
  font-weight: 700;
}

.agon-phone-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agon-phone-list__empty {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.agon-phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.agon-phone-row.is-this {
  border-color: #38bdf8;
  background: #e0f2fe;
}

.agon-phone-row.is-tracking {
  border-color: #0ea5e9;
}

.agon-phone-row__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.agon-phone-row__copy strong {
  font-size: 13px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agon-phone-row__badge {
  display: inline-block;
  width: fit-content;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #0369a1;
  background: #bae6fd;
  padding: 2px 6px;
  border-radius: 999px;
}

.agon-phone-row__state {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.agon-phone-row.is-tracking .agon-phone-row__state {
  color: #0369a1;
}

.agon-phone-add {
  appearance: none;
  border: 0;
  background: transparent;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  padding: 4px 2px 0;
  cursor: pointer;
}

.agon-config__phones .agon-config__item--phone {
  margin: 0;
  border-radius: 10px;
}

body.agon-night .agon-config__phones {
  background: #0f172a;
  border-color: #334155;
}

body.agon-night .agon-config__phones-head strong {
  color: #e2e8f0;
}

body.agon-night .agon-phone-row {
  background: #1e293b;
  border-color: #334155;
}

body.agon-night .agon-phone-row.is-this {
  background: #164e63;
  border-color: #22d3ee;
}

body.agon-night .agon-phone-row__copy strong {
  color: #f8fafc;
}


.agon-config--home .agon-config__item--night.is-on,
.agon-config--home .agon-config__item--phone.is-on,
.agon-config--home .agon-config__item--pay,
.agon-config--home .agon-config__item--wa {
  background: transparent;
  color: inherit;
}

.agon-config__toggle {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

.agon-config__item--night.is-on,
.agon-config__item--phone.is-on {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

.agon-config__item--night.is-on .agon-config__toggle,
.agon-config__item--phone.is-on .agon-config__toggle {
  background: #22c55e;
  color: #052e16;
}

.agon-payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.agon-payment-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.agon-payment-overlay--locked {
  z-index: 11000;
  background: #0f172a;
  opacity: 1;
  pointer-events: auto;
}

.agon-payment-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 121;
  height: min(88vh, 720px);
  background: #cdd6e1;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -16px 40px rgba(15, 23, 42, .28);
  transform: translateY(110%);
  transition: transform .22s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

.agon-payment-sheet.is-open {
  transform: translateY(0);
}

.agon-payment-sheet--locked {
  z-index: 11001;
  inset: 0;
  height: 100%;
  max-height: none;
  border-radius: 0;
  transform: none;
  background: #e8eef5;
  box-shadow: none;
}

.agon-payment-sheet--locked.is-open {
  transform: none;
}

.agon-payment-lockbanner {
  flex: 0 0 auto;
  padding: 18px 18px 12px;
  background: linear-gradient(180deg, #7f1d1d 0%, #991b1b 100%);
  color: #fff;
}

.agon-payment-lockbanner--compact {
  padding: 10px 14px;
}

.agon-payment-lockbanner__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agon-payment-lockbanner--compact h2 {
  margin: 0;
  font-size: 20px;
}

.agon-payment-lockbanner--compact .agon-payment-lockbanner__lead:not(:empty) {
  margin-top: 6px;
}

.agon-payment-lockbanner__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}

.agon-payment-lockbanner h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.agon-payment-lockbanner__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: .95;
}

.agon-payment-warning {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .16);
  border-left: 4px solid #fbbf24;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}

.agon-payment-warning--sheet {
  margin: 12px 14px 0;
  background: #fef3c7;
  color: #78350f;
}

/* prazo vencido: manchete grande e em negrito, texto de apoio e botão do WhatsApp */
.agon-payment-warning--expired {
  border-left-color: #fecaca;
  background: rgba(0, 0, 0, .22);
}

.agon-payment-warning--sheet.agon-payment-warning--expired {
  background: #fee2e2;
  color: #7f1d1d;
  border-left-color: #dc2626;
}

.agon-payment-warning__headline {
  display: block;
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
}

.agon-payment-warning__body {
  display: block;
  font-weight: 600;
}

.agon-payment-warning__wa {
  display: block;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #25d366;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.agon-payment-sheet__head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #b8c2ce;
  background: #c5ced9;
}

.agon-payment-sheet--locked .agon-payment-sheet__head {
  background: #d7dee8;
  border-bottom-color: #c5ced9;
}

.agon-payment-sheet__head strong {
  font-size: 15px;
  color: #0f172a;
}

.agon-payment-sheet__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
}

.agon-payment-sheet__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.agon-payment-sheet__error {
  margin: 24px 18px;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  color: #7f1d1d;
  font-size: 14px;
  line-height: 1.4;
}

.agon-payment-sheet__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #f5f7fa;
  min-height: 0;
}

/* Barra de abas some de vez com a conta bloqueada (so a folha de faturas fica) */
body.agon-payment-locked #agon-tabbar {
  display: none !important;
}

body.agon-payment-locked #agon-tabs,
body.agon-payment-locked .agon-panel,
body.agon-payment-locked .agon-fab-stack,
body.agon-payment-locked #agon-panel-scrim {
  pointer-events: none !important;
  visibility: hidden !important;
}

body.agon-night .agon-payment-sheet--locked {
  background: #0f172a;
}

body.agon-night .agon-payment-sheet--locked .agon-payment-sheet__head {
  background: #1e293b;
  border-bottom-color: #334155;
}

body.agon-night .agon-payment-sheet--locked .agon-payment-sheet__head strong {
  color: #e2e8f0;
}

.agon-config__item--disabled {
  opacity: .55;
  pointer-events: none;
}

.agon-config__hint {
  margin: 12px 4px;
  font-size: 12px;
  color: #94a3b8;
}

.agon-config__hint a {
  color: #1d4ed8;
}

.agon-account-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 18px;
}

.agon-account-form__back {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 0 8px;
}

.agon-account-form h2 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #0f172a;
}

.agon-account-form p {
  margin: 0 0 6px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.agon-account-form--devices h2 {
  font-size: 20px;
}

.agon-account-form--devices .agon-account-lead {
  margin: 0 0 12px;
  font-size: 14px;
  color: #334155;
  line-height: 1.45;
  font-weight: 600;
}

.agon-account-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 4px;
}

.agon-account-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d7e2;
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 15px;
  background: #f5f7fa;
  color: #0f172a;
  margin-bottom: 4px;
}

.agon-account-form__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.agon-account-btn {
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.agon-account-btn--primary {
  background: #0f172a;
  color: #fff;
}

.agon-account-btn--ghost {
  background: #f5f7fa;
  color: #334155;
}

.agon-account-btn--ok {
  background: #15803d;
  color: #fff;
}

.agon-account-btn--danger {
  background: #fff1f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.agon-pin-status {
  padding: 12px 14px;
  border-radius: 12px;
  background: #dcfce7;
  color: #166534;
  font-size: 15px;
  font-weight: 800;
}

.agon-pin-status--off {
  background: #e2e8f0;
  color: #0f172a;
}

.agon-account-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.agon-account-row .agon-account-btn {
  padding: 12px 12px;
  white-space: nowrap;
}

/* Sheet de confirmação */
#agon-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

#agon-sheet-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

#agon-action-sheet {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 110;
  max-width: 420px;
  margin: 0 auto;
  background: #cdd6e1;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .28);
  transform: translateY(120%);
  transition: transform .2s ease;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  overflow: hidden;
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
}

#agon-action-sheet.is-open {
  transform: translateY(0);
}

.agon-sheet-head {
  padding: 16px 16px 8px;
  flex: 0 0 auto;
}

.agon-sheet-head strong {
  display: block;
  font-size: 16px;
  color: #0f172a;
}

.agon-sheet-head span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
}

.agon-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px 14px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.agon-sheet-btn {
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.agon-sheet-btn--danger {
  background: #e53935;
  color: #fff;
}

.agon-sheet-btn--ok {
  background: #2e7d32;
  color: #fff;
}

.agon-sheet-btn--dark {
  background: #0f172a;
  color: #fff;
}

.agon-sheet-btn--ghost {
  background: #f5f7fa;
  color: #334155;
}

#agon-toast {
  position: fixed;
  left: 50%;
  top: calc(72px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(78vw, 280px);
  background: #0f172a;
  color: #fff;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.3;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

#agon-toast.is-on {
  opacity: 1;
}

/* Overlay enquanto o histórico carrega (evita sensação de app travado) */
#agon-history-loading {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

#agon-history-loading.is-on {
  opacity: 1;
  pointer-events: auto;
}

.agon-history-loading__card {
  width: min(86vw, 300px);
  background: #fff;
  border-radius: 16px;
  padding: 22px 18px 18px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .28);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

.agon-history-loading__spin {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  border-top-color: #0f766e;
  animation: agon-history-spin .7s linear infinite;
}

@keyframes agon-history-spin {
  to { transform: rotate(360deg); }
}

.agon-history-loading__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.agon-history-loading__meta {
  display: block;
  font-size: 13px;
  color: #475569;
  margin-bottom: 10px;
  line-height: 1.35;
}

.agon-history-loading__hint {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.35;
}

body.agon-night #agon-history-loading {
  background: rgba(2, 6, 23, .62);
}

body.agon-night .agon-history-loading__card {
  background: #0f172a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

body.agon-night .agon-history-loading__title {
  color: #f8fafc;
}

body.agon-night .agon-history-loading__meta {
  color: #cbd5e1;
}

body.agon-night .agon-history-loading__hint {
  color: #64748b;
}

body.agon-night .agon-history-loading__spin {
  border-color: #334155;
  border-top-color: #2dd4bf;
}

/* Avisos de evento (toastr) — mais compactos no PWA mobile */
body.agon-mobile-app #toast-container {
  top: calc(10px + env(safe-area-inset-top, 0px)) !important;
  right: 10px !important;
  left: auto !important;
  width: auto !important;
  max-width: min(72vw, 240px) !important;
  z-index: 130 !important;
}

body.agon-mobile-app #toast-container > div {
  width: min(72vw, 240px) !important;
  max-width: min(72vw, 240px) !important;
  margin: 0 0 6px !important;
  padding: 8px 10px 8px 36px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .22) !important;
  opacity: .96 !important;
  background-size: 16px 16px !important;
  background-position: 10px center !important;
}

body.agon-mobile-app #toast-container > div .toast-close-button {
  font-size: 14px !important;
  top: 2px !important;
  right: 4px !important;
}

body.agon-mobile-app #toast-container > div .toast-message {
  font-size: 11px !important;
  line-height: 1.25 !important;
}

body.agon-mobile-app #toast-container.toast-top-full-width > div,
body.agon-mobile-app #toast-container.toast-bottom-full-width > div {
  width: min(72vw, 240px) !important;
}

/* ========== Modo noturno PWA ========== */
html.agon-night,
body.agon-mobile-app.agon-night {
  background: #0b1220;
  color: #e2e8f0;
}

/* Mapa: só sombreia os tiles — markers/rota/pin ficam intactos */
body.agon-night .leaflet-container {
  background: #0b1220 !important;
}

body.agon-night .leaflet-tile-pane {
  filter: brightness(0.68) contrast(1.08) saturate(0.78);
}

body.agon-night .leaflet-tile-pane::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  background: rgba(8, 18, 40, 0.38);
}

body.agon-night #agon-history-bar {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

body.agon-night #agon-history-side {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.agon-night .agon-history-side__day,
body.agon-night .agon-history-side__trip {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

body.agon-night .agon-history-side__day.is-active,
body.agon-night .agon-history-side__trip.is-active {
  outline-color: #60a5fa;
  background: #172554;
}

body.agon-night .agon-panel,
body.agon-night .agon-panel__head,
body.agon-night .agon-panel__body {
  background: #0f172a;
  color: #e2e8f0;
  border-color: #334155;
}

body.agon-night .agon-panel__head h1 {
  color: #f8fafc;
}

body.agon-night .agon-panel__head:before {
  background: #334155;
}

body.agon-night #agon-panel-scrim.is-open {
  background: rgba(2, 6, 23, .55);
}

body.agon-night #agon-vehicle-sheet {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

body.agon-night .agon-vsheet__follow {
  background: #0f172a;
}

body.agon-night .agon-vsheet__handle {
  background: #475569;
}

body.agon-night .agon-vsheet__head h2,
body.agon-night .agon-vsheet__chip b,
body.agon-night .agon-vehicle-card__name {
  color: #f8fafc;
}

body.agon-night .agon-vsheet__chip.is-na b {
  color: #64748b;
}

body.agon-night .agon-vsheet__meta,
body.agon-night .agon-vsheet__time,
body.agon-night .agon-vsheet__duration,
body.agon-night .agon-vsheet__addr,
body.agon-night .agon-vehicle-card__status,
body.agon-night .agon-vehicle-card__time,
body.agon-night .agon-vehicle-card__duration,
body.agon-night .agon-vehicle-card__addr {
  color: #94a3b8;
}

body.agon-night .agon-vsheet__icon,
body.agon-night .agon-vsheet__close,
body.agon-night .agon-vsheet__chip {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

body.agon-night .agon-vsheet__chip small {
  color: #94a3b8;
}

body.agon-night .agon-vsheet__qbtn,
body.agon-night .agon-vsheet__cmd {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

body.agon-night .agon-vsheet__refresh {
  background: #eab000;
  color: #1a1200;
}

body.agon-night .agon-vsheet__section,
body.agon-night .agon-vsheet__cfg,
body.agon-night .agon-vsheet__cmds-empty {
  color: #94a3b8;
}

body.agon-night .agon-list-item,
body.agon-night .agon-vehicle-card {
  background: #1e293b;
  border-color: #334155;
}

body.agon-night .agon-vehicle-card__icon {
  background: #0f172a;
  border-color: #334155;
}

body.agon-night .agon-alert-card__icon {
  background: #0f172a;
  border-color: #334155;
}

body.agon-night .agon-list-item b {
  color: #f8fafc;
}

body.agon-night .agon-alerts-create {
  background: #e2e8f0;
  color: #0f172a;
}

body.agon-night .agon-alerts-push {
  background: #172554;
  border-color: #1e40af;
}

body.agon-night .agon-alerts-push__ico {
  background: #0f172a;
  border-color: #1e3a8a;
}

body.agon-night .agon-alerts-push__copy strong {
  color: #bfdbfe;
}

body.agon-night .agon-alerts-push__copy small {
  color: #94a3b8;
}

body.agon-night .agon-alerts-push.is-on {
  background: #052e16;
  border-color: #166534;
}

body.agon-night .agon-alerts-push.is-on .agon-alerts-push__copy strong {
  color: #bbf7d0;
}

body.agon-night .agon-alert-pill {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}

body.agon-night .agon-alert-pill.is-on {
  background: #14532d;
  border-color: #22c55e;
  color: #bbf7d0;
}

body.agon-night .agon-alert-pills-toggle {
  background: #1e293b;
  border-color: #475569;
  color: #cbd5e1;
}

body.agon-night .agon-alert-card {
  background: #1e293b;
  border-color: #334155;
}

body.agon-night .agon-alert-card__title b {
  color: #f8fafc;
}

body.agon-night .agon-alert-card__sub,
body.agon-night .agon-alert-card__addr {
  color: #94a3b8;
}

body.agon-night .agon-config__hello-text strong,
body.agon-night .agon-config__copy strong {
  color: #f8fafc;
}

body.agon-night .agon-config__hello-text span,
body.agon-night .agon-config__section,
body.agon-night .agon-config__hint,
body.agon-night .agon-config__copy small {
  color: #94a3b8;
}

body.agon-night .agon-config__card {
  background: #1e293b;
  border-color: #334155;
}

body.agon-night .agon-config--home .agon-config__item {
  background: transparent;
  border-bottom-color: #334155;
  color: #e2e8f0;
}

body.agon-night .agon-config__ico {
  background: #0f172a;
}

body.agon-night .agon-config__item {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.agon-night .agon-config__item--pay {
  background: #14532d;
  border-color: #22c55e;
  color: #bbf7d0;
}

body.agon-night .agon-config__item--wa {
  background: #064e3b;
  border-color: #34d399;
  color: #a7f3d0;
}

body.agon-night .agon-config--home .agon-config__item--pay,
body.agon-night .agon-config--home .agon-config__item--wa,
body.agon-night .agon-config--home .agon-config__item--night,
body.agon-night .agon-config--home .agon-config__item--night.is-on,
body.agon-night .agon-config--home .agon-config__item--phone,
body.agon-night .agon-config--home .agon-config__item--phone.is-on {
  background: transparent;
  color: inherit;
}

body.agon-night .agon-config__logout {
  color: #fca5a5;
}

body.agon-night .agon-config__item--danger {
  color: #fca5a5;
  background: #450a0a;
  border-color: #7f1d1d;
}

body.agon-night .agon-config__item--night,
body.agon-night .agon-config__item--phone {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

body.agon-night .agon-config__item--night .agon-config__toggle,
body.agon-night .agon-config__item--phone .agon-config__toggle {
  background: #334155;
  color: #cbd5e1;
}

body.agon-night .agon-config__item--night.is-on,
body.agon-night .agon-config__item--phone.is-on {
  background: #052e16;
  border-color: #22c55e;
  color: #ecfdf5;
}

body.agon-night .agon-config__item--night.is-on .agon-config__toggle,
body.agon-night .agon-config__item--phone.is-on .agon-config__toggle {
  background: #22c55e;
  color: #052e16;
}

body.agon-night .agon-account-form {
  color: #e2e8f0;
}

body.agon-night .agon-account-form h2 {
  color: #f8fafc;
}

body.agon-night .agon-account-form p,
body.agon-night .agon-account-form label {
  color: #94a3b8;
}

body.agon-night .agon-account-form input {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

body.agon-night .agon-account-form__back {
  color: #93c5fd;
}

body.agon-night .agon-account-form--devices .agon-account-lead {
  color: #e2e8f0;
}

body.agon-night .agon-pin-status {
  background: #14532d;
  color: #bbf7d0;
}

body.agon-night .agon-pin-status--off {
  background: #1e293b;
  color: #e2e8f0;
}

body.agon-night .agon-account-btn--danger {
  background: #451a1a;
  border-color: #7f1d1d;
  color: #fecaca;
}

body.agon-night .agon-device,
body.agon-night .agon-device-empty {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

body.agon-night .agon-device.is-here {
  background: #1e293b;
  border-color: #eab000;
}

body.agon-night .agon-device strong,
body.agon-night .agon-device__meta b {
  color: #f8fafc;
}

body.agon-night .agon-device__meta span {
  color: #cbd5e1;
}

body.agon-night .agon-device__chip {
  background: #1e293b;
  color: #e2e8f0;
}

body.agon-night .agon-device__chip.is-on {
  background: #14532d;
  color: #bbf7d0;
}

body.agon-night .agon-device__revoke {
  background: #3f1d1d;
  border-color: #7f1d1d;
  color: #fecaca;
}

body.agon-night #agon-action-sheet {
  background: #1e293b;
  color: #e2e8f0;
}

body.agon-night #agon-action-sheet .agon-sheet-head strong {
  color: #f8fafc;
}

body.agon-night #agon-action-sheet .agon-sheet-head span {
  color: #94a3b8;
}

body.agon-night #agon-sheet-overlay.is-open {
  background: rgba(2, 6, 23, .55);
}

body.agon-night .agon-payment-sheet {
  background: #1e293b;
}

body.agon-night .agon-payment-sheet__head {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

body.agon-night #agon-toast {
  background: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

body.agon-night .agon-empty {
  color: #64748b;
}

/* Resumo semanal */
.agon-weekly-digest {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.agon-weekly-digest__card {
  width: 100%;
  max-width: 420px;
  max-height: min(72vh, 560px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
  box-sizing: border-box;
}
.agon-weekly-digest__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.agon-weekly-digest__head strong {
  font-size: 18px;
  color: #0f172a;
}
.agon-weekly-digest__head span {
  font-size: 13px;
  color: #64748b;
}
.agon-weekly-digest__totals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.agon-weekly-digest__totals > div {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 10px 12px;
}
.agon-weekly-digest__totals b {
  display: block;
  font-size: 16px;
  color: #0f172a;
}
.agon-weekly-digest__totals small {
  color: #64748b;
  font-size: 11px;
}
.agon-weekly-digest__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.agon-weekly-digest__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.agon-weekly-digest__row b {
  font-size: 13px;
  color: #0f172a;
}
.agon-weekly-digest__row span {
  font-size: 12px;
  color: #64748b;
}
.agon-weekly-digest__more {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}
.agon-weekly-digest__ok {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  font-size: 14px;
}
body.agon-night .agon-weekly-digest__card {
  background: #0f172a;
  border: 1px solid #334155;
}
body.agon-night .agon-weekly-digest__head strong,
body.agon-night .agon-weekly-digest__totals b,
body.agon-night .agon-weekly-digest__row b {
  color: #f8fafc;
}
body.agon-night .agon-weekly-digest__totals > div {
  background: #1e293b;
}
body.agon-night .agon-weekly-digest__row {
  border-color: #334155;
}
body.agon-night .agon-weekly-digest__ok {
  background: #e2e8f0;
  color: #0f172a;
}



/* Lugares aprendidos — confirmação + pause */
.agon-place-prompt {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, 0.45);
  box-sizing: border-box;
}
.agon-place-prompt__card {
  width: 100%;
  max-width: 420px;
  max-height: min(70vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  box-sizing: border-box;
}
.agon-place-prompt__head strong {
  display: block;
  font-size: 16px;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
}
.agon-place-prompt__head span {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
}
.agon-place-prompt__addr {
  font-size: 13px;
  color: #334155;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.agon-place-prompt__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 8px;
}
.agon-place-prompt__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 4px;
}
.agon-place-prompt__yes,
.agon-place-prompt__no {
  border: 0;
  border-radius: 12px;
  padding: 12px 10px;
  font-weight: 700;
  font-family: inherit;
  font-size: 13px;
}
.agon-place-prompt__yes {
  background: #0f172a;
  color: #fff;
}
.agon-place-prompt__no {
  background: #e2e8f0;
  color: #0f172a;
}
.agon-places-pause {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 1px dashed #cbd5e1;
  background: transparent;
  color: #64748b;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
}
.agon-places-pause.is-paused {
  border-color: #f59e0b;
  color: #b45309;
  background: #fffbeb;
}
.agon-alert-pill.is-place.is-on {
  border-color: #22c55e;
}
body.agon-night .agon-place-prompt__card {
  background: #0f172a;
  border: 1px solid #334155;
}
body.agon-night .agon-place-prompt__head strong {
  color: #f8fafc;
}
body.agon-night .agon-place-prompt__addr {
  background: #1e293b;
  color: #e2e8f0;
}
body.agon-night .agon-place-prompt__opt {
  color: #cbd5e1;
}
body.agon-night .agon-place-prompt__yes {
  background: #e2e8f0;
  color: #0f172a;
}
body.agon-night .agon-place-prompt__no {
  background: #1e293b;
  color: #e2e8f0;
}
body.agon-night .agon-place-prompt__actions {
  background: #0f172a;
}

/* —— Stories (bolinhas) —— */
.agon-stories-rail {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 46;
  display: flex;
  gap: 10px;
  padding: 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  pointer-events: none;
}
.agon-stories-rail::-webkit-scrollbar { display: none; }
.agon-story-bubble {
  pointer-events: auto;
  flex: 0 0 auto;
  width: 68px;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}
.agon-story-bubble__ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
}
.agon-story-bubble.is-urgent .agon-story-bubble__ring {
  background: linear-gradient(135deg, #fb7185, #e11d48);
}
.agon-story-bubble.is-info .agon-story-bubble__ring {
  background: linear-gradient(135deg, #34d399, #059669);
}
.agon-story-bubble.is-promo .agon-story-bubble__ring {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}
.agon-story-bubble.is-seen .agon-story-bubble__ring {
  background: #94a3b8;
}
.agon-story-bubble__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 2px solid #fff;
}
.agon-story-bubble__label {
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  text-shadow: 0 1px 2px rgba(255,255,255,.8);
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.agon-night .agon-story-bubble__label {
  color: #f8fafc;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.agon-story-viewer {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}
.agon-story-viewer__card {
  width: 100%;
  max-width: 420px;
  max-height: min(70vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 18px;
  padding: 22px 18px 16px;
  position: relative;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  box-sizing: border-box;
}
.agon-story-viewer__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}
.agon-story-viewer__media {
  width: 100%;
  max-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 14px;
  background: #0f172a;
}
.agon-story-viewer__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
}
.agon-story-viewer__emoji {
  font-size: 36px;
  margin-bottom: 8px;
}
.agon-story-viewer__title {
  display: block;
  font-size: 20px;
  color: #0f172a;
  margin-bottom: 6px;
}
.agon-story-viewer__sub {
  display: block;
  font-size: 14px;
  color: #475569;
  margin-bottom: 18px;
}
.agon-story-viewer__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.agon-story-viewer__cta,
.agon-story-viewer__skip {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.agon-story-viewer__cta {
  background: #0f172a;
  color: #fff;
}
.agon-story-viewer.is-invoice .agon-story-viewer__cta {
  background: #e11d48;
}
.agon-story-viewer.is-weekly .agon-story-viewer__cta {
  background: #059669;
}
.agon-story-viewer__skip {
  background: #f1f5f9;
  color: #334155;
}
body.agon-night .agon-story-viewer__card {
  background: #0f172a;
  border: 1px solid #334155;
}
body.agon-night .agon-story-viewer__title { color: #f8fafc; }
body.agon-night .agon-story-viewer__sub { color: #cbd5e1; }
body.agon-night .agon-story-viewer__skip {
  background: #1e293b;
  color: #e2e8f0;
}
body.agon-night .agon-story-viewer__cta {
  background: #e2e8f0;
  color: #0f172a;
}
body:not(.agon-tab-map) .agon-stories-rail,
body.agon-vsheet-open .agon-stories-rail,
body.agon-history-mode .agon-stories-rail {
  display: none !important;
}

/* ---- Combustível estimado ---- */
.agon-act-btn--fuel {
  color: #fde68a;
}
.agon-act-btn--fuel .agon-act-btn__ico {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.28);
}

#agon-fuel-panel {
  position: fixed;
  inset: 0;
  z-index: 200500 !important;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
#agon-fuel-panel.is-open { display: flex; }
.agon-fuel-scrim {
  position: absolute;
  inset: 0;
  background: rgba(2, 12, 8, 0.55);
}
.agon-fuel-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f4faf6;
  border-radius: 18px 18px 0 0;
  padding: 12px 14px 0;
  box-shadow: 0 -8px 28px rgba(0,0,0,.25);
  color: #0f172a;
  margin-bottom: 0;
  padding-bottom: 0;
}
.agon-fuel-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex: 0 0 auto;
}
.agon-fuel-card__head strong {
  display: block;
  font-size: 16px;
  color: #0b3d2e;
}
.agon-fuel-card__head span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #3d6a55;
}
.agon-fuel-close {
  border: 0;
  background: #dceee4;
  color: #0b3d2e;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
}
.agon-fuel-scroll {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  min-height: 0;
}
.agon-fuel-hint { display: none; }
.agon-fuel-vehicle,
.agon-fuel-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.agon-fuel-vehicle label,
.agon-fuel-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #3d6a55;
}
.agon-fuel-vehicle input,
.agon-fuel-grid input {
  border: 1px solid #c5d8cc;
  border-radius: 10px;
  padding: 9px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.agon-fuel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.agon-fuel-stats > div {
  background: #fff;
  border: 1px solid #c5d8cc;
  border-radius: 10px;
  padding: 7px 9px;
}
.agon-fuel-stats span {
  display: block;
  font-size: 10px;
  color: #3d6a55;
  font-weight: 600;
}
.agon-fuel-stats strong {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  color: #0b3d2e;
}
.agon-fuel-tank-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}
.agon-fuel-tank {
  position: relative;
  width: 78px;
  height: 160px;
  border-radius: 16px;
  border: 2px solid #0b3d2e;
  background: linear-gradient(180deg, #e8f5ee 0%, #d5e8dc 100%);
  overflow: hidden;
  touch-action: none;
  flex: 0 0 auto;
}
.agon-fuel-tank__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  transition: height .35s ease, background .25s ease;
}
.agon-fuel-tank.is-mid .agon-fuel-tank__fill {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
}
.agon-fuel-tank.is-low .agon-fuel-tank__fill {
  background: linear-gradient(180deg, #fb7185 0%, #dc2626 100%);
}
.agon-fuel-tank.is-ok .agon-fuel-tank__fill {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
}
.agon-fuel-tank.is-mid {
  border-color: #b45309;
}
.agon-fuel-tank.is-low {
  border-color: #b91c1c;
}
.agon-fuel-tank.is-ok {
  border-color: #15803d;
}
.agon-fuel-tank.is-mid .agon-fuel-tank__label { color: #92400e; }
.agon-fuel-tank.is-low .agon-fuel-tank__label { color: #7f1d1d; }
.agon-fuel-tank.is-ok .agon-fuel-tank__label { color: #14532d; }
.agon-fuel-tank.is-mid .agon-fuel-tank__knob { border-color: #b45309; }
.agon-fuel-tank.is-low .agon-fuel-tank__knob { border-color: #b91c1c; }
.agon-fuel-tank.is-ok .agon-fuel-tank__knob { border-color: #15803d; }
.agon-fuel-tank__knob {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0b3d2e;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  z-index: 2;
  bottom: -12px;
}
.agon-fuel-tank__label {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #0b3d2e;
  z-index: 3;
}
.agon-fuel-tank-help {
  flex: 1;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.35;
}
.agon-fuel-tank-help small {
  color: #64748b;
}
.agon-fuel-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 10px));
  background: #f4faf6;
  border-top: 1px solid #d5e8dc;
  position: sticky;
  bottom: 0;
}
.agon-fuel-btn {
  border: 0;
  border-radius: 12px;
  padding: 14px 10px;
  font-size: 15px;
  font-weight: 800;
}
.agon-fuel-btn--save {
  background: #0b3d2e;
  color: #fff;
}
.agon-fuel-btn--level { display: none; }
@media (max-width: 420px) {
  .agon-fuel-vehicle,
  .agon-fuel-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Atualizar no sheet do veículo (largura total) */
.agon-vsheet__cmds [data-v="refresh"],
.agon-vsheet__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  height: 56px;
  border: 0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  background: #0b3d2e;
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .14);
}
.agon-vsheet__refresh svg {
  width: 22px;
  height: 22px;
}
.agon-vsheet__refresh.is-busy {
  opacity: 0.7;
}
body.agon-night .agon-vsheet__refresh {
  background: #14532d;
}

/* Tanque no header do sheet */
.agon-vsheet__fuel-gauge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  margin-right: 2px;
  border: 1px solid #c5d8cc;
  background: #f4faf6;
  border-radius: 12px;
  padding: 5px 8px 5px 6px;
  min-width: 72px;
  max-width: 92px;
  cursor: pointer;
}
.agon-vsheet__fuel-tank {
  position: relative;
  width: 18px;
  height: 34px;
  border-radius: 5px;
  border: 1.5px solid #0b3d2e;
  background: #e8f5ee;
  overflow: hidden;
  flex: 0 0 auto;
}
.agon-vsheet__fuel-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  transition: height .35s ease, background .25s ease;
}
.agon-vsheet__fuel-gauge.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.agon-vsheet__fuel-gauge.is-ok .agon-vsheet__fuel-tank { border-color: #15803d; }
.agon-vsheet__fuel-gauge.is-ok .agon-vsheet__fuel-fill {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
}
.agon-vsheet__fuel-gauge.is-ok .agon-vsheet__fuel-txt b { color: #14532d; }
.agon-vsheet__fuel-gauge.is-mid {
  border-color: #fde68a;
  background: #fffbeb;
}
.agon-vsheet__fuel-gauge.is-mid .agon-vsheet__fuel-tank { border-color: #b45309; }
.agon-vsheet__fuel-gauge.is-mid .agon-vsheet__fuel-fill {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
}
.agon-vsheet__fuel-gauge.is-mid .agon-vsheet__fuel-txt b { color: #92400e; }
.agon-vsheet__fuel-gauge.is-mid .agon-vsheet__fuel-txt small { color: #a16207; }
.agon-vsheet__fuel-gauge.is-low {
  border-color: #fecaca;
  background: #fff1f2;
}
.agon-vsheet__fuel-gauge.is-low .agon-vsheet__fuel-tank { border-color: #b91c1c; }
.agon-vsheet__fuel-gauge.is-low .agon-vsheet__fuel-fill {
  background: linear-gradient(180deg, #fb7185 0%, #dc2626 100%);
}
.agon-vsheet__fuel-gauge.is-empty {
  border-color: #e8d4a8;
  background: #fff8e8;
}
.agon-vsheet__fuel-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.1;
}
.agon-vsheet__fuel-txt b {
  font-size: 13px;
  font-weight: 800;
  color: #0b3d2e;
}
.agon-vsheet__fuel-txt small {
  font-size: 9px;
  font-weight: 700;
  color: #5a7a68;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 58px;
}
.agon-vsheet__fuel-gauge.is-low .agon-vsheet__fuel-txt b { color: #b91c1c; }
.agon-vsheet__fuel-gauge.is-low .agon-vsheet__fuel-txt small { color: #9f1239; }
.agon-vsheet__fuel-gauge.is-empty .agon-vsheet__fuel-txt b { color: #92400e; }
body.agon-night .agon-vsheet__fuel-gauge {
  background: #0f172a;
  border-color: #334155;
}
body.agon-night .agon-vsheet__fuel-txt b { color: #fde68a; }
body.agon-night .agon-vsheet__fuel-txt small { color: #94a3b8; }

/* Tanque flutuante no mapa removido — combustível só no sheet do veículo */
#agon-map-fuel {
  display: none !important;
}
.agon-map-fuel__label {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 7.5px;
  font-weight: 800;
  color: #5a7a68;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
.agon-map-fuel__mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}
.agon-map-fuel__tank {
  position: relative;
  width: 14px;
  height: 30px;
  border-radius: 4px;
  border: 1.5px solid #0b3d2e;
  background: #e8f5ee;
  overflow: hidden;
  flex: 0 0 auto;
}
.agon-map-fuel__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  transition: height .35s ease, background .25s ease;
}
#agon-map-fuel.is-ok {
  border-color: rgba(21, 128, 61, 0.28);
  background: rgba(240, 253, 244, 0.96);
}
#agon-map-fuel.is-ok .agon-map-fuel__tank { border-color: #15803d; }
#agon-map-fuel.is-ok .agon-map-fuel__fill {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
}
#agon-map-fuel.is-ok .agon-map-fuel__vals b,
#agon-map-fuel.is-ok .agon-map-fuel__name { color: #14532d; }
#agon-map-fuel.is-mid {
  border-color: #fde68a;
  background: rgba(255, 251, 235, 0.97);
}
#agon-map-fuel.is-mid .agon-map-fuel__tank { border-color: #b45309; }
#agon-map-fuel.is-mid .agon-map-fuel__fill {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
}
#agon-map-fuel.is-mid .agon-map-fuel__vals b,
#agon-map-fuel.is-mid .agon-map-fuel__name { color: #92400e; }
#agon-map-fuel.is-mid .agon-map-fuel__vals small,
#agon-map-fuel.is-mid .agon-map-fuel__label { color: #a16207; }
.agon-map-fuel__vals {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  line-height: 1.05;
}
.agon-map-fuel__vals b {
  font-size: 12px;
  font-weight: 800;
  color: #0b3d2e;
}
.agon-map-fuel__vals small {
  font-size: 8px;
  font-weight: 700;
  color: #5a7a68;
  white-space: nowrap;
}
.agon-map-fuel__name {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  color: #0b3d2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}
#agon-map-fuel.is-low {
  border-color: #fecaca;
  background: rgba(255, 241, 242, 0.97);
}
#agon-map-fuel.is-low .agon-map-fuel__tank { border-color: #b91c1c; }
#agon-map-fuel.is-low .agon-map-fuel__fill {
  background: linear-gradient(180deg, #fb7185 0%, #dc2626 100%);
}
#agon-map-fuel.is-low .agon-map-fuel__vals b,
#agon-map-fuel.is-low .agon-map-fuel__name { color: #b91c1c; }
#agon-map-fuel.is-low .agon-map-fuel__vals small,
#agon-map-fuel.is-low .agon-map-fuel__label { color: #9f1239; }
#agon-map-fuel.is-empty {
  border-color: #e8d4a8;
  background: rgba(255, 248, 232, 0.97);
}
#agon-map-fuel.is-empty .agon-map-fuel__vals b,
#agon-map-fuel.is-empty .agon-map-fuel__label,
#agon-map-fuel.is-empty .agon-map-fuel__vals small { color: #92400e; }
body.agon-night #agon-map-fuel {
  background: rgba(15, 23, 42, 0.94);
  border-color: #334155;
}
body.agon-night .agon-map-fuel__vals b,
body.agon-night .agon-map-fuel__name { color: #fde68a; }
body.agon-night .agon-map-fuel__label,
body.agon-night .agon-map-fuel__vals small { color: #94a3b8; }

body.agon-fuel-open #agon-tabbar {
  visibility: hidden;
  pointer-events: none;
}

.agon-fuel-model-wrap { position: relative; grid-column: 1 / -1; }
@media (min-width: 421px) {
  .agon-fuel-model-wrap { grid-column: auto; }
}
.agon-fuel-vehicle { grid-template-columns: 1.6fr 0.7fr 0.9fr; }
.agon-fuel-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
  background: #fff;
  border: 1px solid #c5d8cc;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  max-height: 220px;
  overflow: auto;
}
.agon-fuel-suggest__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e8f0eb;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
}
.agon-fuel-suggest__item:last-child { border-bottom: 0; }
.agon-fuel-suggest__item strong { font-size: 13px; color: #0b3d2e; }
.agon-fuel-suggest__item span { font-size: 11px; color: #5a7a68; }
.agon-fuel-suggest__item:active,
.agon-fuel-suggest__item:hover { background: #eef7f1; }
.agon-fuel-catalog-note {
  margin: -2px 0 10px;
  font-size: 12px;
  color: #5c4a1f;
  background: #fff8e8;
  border: 1px solid #e8d4a8;
  border-radius: 10px;
  padding: 8px 10px;
}

/* Painel combustível — modo travado + abastecimento em R$ */
.agon-fuel-locked {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 6px;
}
.agon-fuel-locked[hidden],
.agon-fuel-setup[hidden] { display: none !important; }
.agon-fuel-locked__meta {
  font-size: 13px;
  font-weight: 700;
  color: #0b3d2e;
  background: #fff;
  border: 1px solid #c5d8cc;
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.35;
}
.agon-fuel-daily {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.agon-fuel-daily label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #3d6a55;
}
.agon-fuel-daily input {
  border: 1px solid #c5d8cc;
  border-radius: 10px;
  padding: 11px 10px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.agon-fuel-daily-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.agon-fuel-btn--refill {
  background: #fde68a;
  color: #78350f;
}
.agon-fuel-unlock {
  margin-top: 4px;
  border: 1px dashed #9ab8a8;
  background: transparent;
  color: #3d6a55;
  border-radius: 12px;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 700;
}
.agon-fuel-unlock:active { background: #e8f5ee; }

/* Sugestão no sheet do veículo */
.agon-fuel-nudge {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  text-align: left;
  border: 1px solid #e8d4a8;
  background: linear-gradient(135deg, #fff8e8 0%, #fef3c7 100%);
  color: #5c4a1f;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  box-sizing: border-box;
}
.agon-fuel-nudge:active { filter: brightness(0.97); }

/* Combustível no resumo semanal */
.agon-weekly-digest__fuel {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e8;
  border: 1px solid #e8d4a8;
  color: #5c4a1f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
body.agon-night .agon-fuel-locked__meta,
body.agon-night .agon-fuel-daily input {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}
body.agon-night .agon-fuel-unlock {
  border-color: #475569;
  color: #94a3b8;
}
body.agon-night .agon-fuel-nudge,
body.agon-night .agon-weekly-digest__fuel {
  background: #1e293b;
  border-color: #475569;
  color: #fde68a;
}

/* Staff/admin no mesmo app (sem novo APK) — sem aba Cobranças */

/* Botão Nomes no mapa removido — controle só em Conta */
.agon-staff-names-fab {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  left: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
.agon-staff-names-fab__mark {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #0f172a;
  position: relative;
}
.agon-staff-names-fab__mark.is-off {
  color: #94a3b8;
}
.agon-staff-names-fab__mark.is-off::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 48%;
  height: 2px;
  background: #dc2626;
  transform: rotate(-18deg);
  border-radius: 2px;
}
.agon-staff-names-fab__cap {
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #64748b;
}
.agon-staff-names-fab.is-on {
  border-color: rgba(21, 128, 61, 0.28);
  background: rgba(240, 253, 244, 0.96);
}
.agon-staff-names-fab.is-on .agon-staff-names-fab__mark {
  color: #14532d;
}
.agon-staff-names-fab.is-on .agon-staff-names-fab__cap {
  color: #15803d;
}

/* FAB removido do mapa — nomes só em Conta */
body.agon-staff-app.agon-tab-map .agon-staff-names-fab,
body.agon-staff-app.agon-tab-map.agon-vsheet-open .agon-staff-names-fab,
body:not(.agon-tab-map) .agon-staff-names-fab,
body.agon-history-mode .agon-staff-names-fab,
body.agon-fuel-open .agon-staff-names-fab,
body.agon-payment-locked .agon-staff-names-fab,
body.agon-tab-billing .agon-staff-names-fab {
  display: none !important;
}
body.agon-night .agon-staff-names-fab {
  background: rgba(15, 23, 42, 0.94);
  border-color: #334155;
  color: #e2e8f0;
}
body.agon-night .agon-staff-names-fab__mark { color: #fde68a; }
body.agon-night .agon-staff-names-fab__cap { color: #94a3b8; }
body.agon-night .agon-staff-names-fab.is-on {
  background: rgba(20, 83, 45, 0.35);
  border-color: #166534;
}

/* Divulgação BACKGROUND_LOCATION (Play) + páginas legais internas */
.agon-bg-loc-list {
  margin: 12px 0 8px;
  padding-left: 1.15rem;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}
.agon-bg-loc-list li { margin: 6px 0; }
.agon-bg-loc-list b { color: #0f172a; }
body.agon-night .agon-bg-loc-list { color: #94a3b8; }
body.agon-night .agon-bg-loc-list b { color: #e2e8f0; }

.agon-account-form--legal .agon-legal-body {
  margin-top: 8px;
  padding-bottom: 28px;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
}
.agon-account-form--legal .agon-legal-body h2 {
  font-size: 1.05rem;
  color: #0f172a;
  margin: 1.25rem 0 .4rem;
}
.agon-account-form--legal .agon-legal-body h3 {
  font-size: .95rem;
  color: #64748b;
  margin: 1rem 0 .25rem;
}
.agon-account-form--legal .agon-legal-body a { color: #b45309; }
.agon-account-form--legal .agon-legal-body hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 1.1rem 0;
}
body.agon-night .agon-account-form--legal .agon-legal-body { color: #94a3b8; }
body.agon-night .agon-account-form--legal .agon-legal-body h2 { color: #f1f5f9; }
body.agon-night .agon-account-form--legal .agon-legal-body h3 { color: #94a3b8; }
body.agon-night .agon-account-form--legal .agon-legal-body a { color: #fbbf24; }
body.agon-night .agon-account-form--legal .agon-legal-body hr { border-color: #334155; }

/* Faturas: quando o site de cobranca nao pode ser exibido dentro do app, botao que abre em outra janela */
.agon-payment-sheet__external {
  padding: 28px 20px;
  text-align: center;
}
.agon-payment-sheet__external p {
  margin: 0 0 18px;
  color: #2f3b4d;
  font-size: 14px;
  line-height: 1.4;
}
.agon-payment-sheet__open {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  background: #f5a623;
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

/* Faturas: links dos Termos / Politica no rodape e texto aberto por cima da folha */
.agon-payment-sheet__legal {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #e2e8f0;
  border-top: 1px solid #cbd5e1;
  font-size: 12.5px;
  color: #64748b;
}
.agon-payment-sheet__legal a { color: #b45309; text-decoration: underline; }
.agon-payment-legal {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px calc(28px + env(safe-area-inset-bottom));
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
}
.agon-payment-legal__back {
  border: 0;
  background: #e2e8f0;
  color: #0f172a;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}
.agon-payment-legal h2 { margin: 14px 0 2px; font-size: 1.2rem; color: #0f172a; }
.agon-payment-legal__lead { margin: 0 0 8px; font-size: 12.5px; color: #64748b; }
.agon-payment-legal .agon-legal-body h2 { font-size: 1.05rem; color: #0f172a; margin: 1.25rem 0 .4rem; }
.agon-payment-legal .agon-legal-body h3 { font-size: .95rem; color: #64748b; margin: 1rem 0 .25rem; }
.agon-payment-legal .agon-legal-body a { color: #b45309; }
.agon-payment-legal .agon-legal-body hr { border: 0; border-top: 1px solid #e2e8f0; margin: 1.1rem 0; }
body.agon-night .agon-payment-sheet__legal { background: #1e293b; border-color: #334155; color: #94a3b8; }
body.agon-night .agon-payment-sheet__legal a { color: #fbbf24; }
body.agon-night .agon-payment-legal { background: #0f172a; color: #94a3b8; }
body.agon-night .agon-payment-legal__back { background: #1e293b; color: #e2e8f0; }
body.agon-night .agon-payment-legal h2,
body.agon-night .agon-payment-legal .agon-legal-body h2 { color: #f1f5f9; }
body.agon-night .agon-payment-legal .agon-legal-body a { color: #fbbf24; }
body.agon-night .agon-payment-legal .agon-legal-body hr { border-color: #334155; }

/* Conta inadimplente: faixa de uma linha (o aviso completo fica, recolhido, na página de pagamento) */
.agon-payment-lockbanner--compact { padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px; }
.agon-payment-lockbanner--compact h2 { font-size: 14.5px; font-weight: 800; letter-spacing: .01em; }
.agon-payment-lockbanner--compact h2::before { content: "\1F534\00a0"; font-size: 11px; }
.agon-payment-lockbanner--compact .agon-payment-sheet__logout { min-height: 28px; padding: 0 11px; font-size: 12px; }
.agon-payment-sheet--locked .agon-payment-sheet__legal { padding: 5px 12px calc(5px + env(safe-area-inset-bottom)); font-size: 11px; gap: 8px; }

/* Conta inadimplente: UMA barra fina (Suas faturas | Conta inadimplente | Sair), sem a faixa cinza de título */
.agon-payment-lockbanner__row--bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.agon-payment-lockbanner__row--bar .agon-payment-lockbanner__left { font-size: 12px; font-weight: 600; opacity: .85; justify-self: start; white-space: nowrap; }
.agon-payment-lockbanner__row--bar h2 { text-align: center; white-space: nowrap; margin: 0; line-height: 1.2; }
.agon-payment-lockbanner__row--bar h2::before { content: none; }
.agon-payment-lockbanner__row--bar .agon-payment-sheet__logout { justify-self: end; }
.agon-payment-sheet--locked .agon-payment-sheet__head { display: none !important; }
