#participantsPanel {
  width: 300px;
  max-height: none;
  line-height: 1.1;
  padding-top: 6px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#participantsPanel .fw-semibold { font-size: .74rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
#channelSwitcherWrap {
  position: relative;
  background: linear-gradient(135deg, rgba(15,23,42,.88), rgba(30,41,59,.78));
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(2,6,23,.35);
  backdrop-filter: blur(6px);
}
#channelSwitcherBtn {
  width: 100%;
  font-size: .75rem;
  background: transparent;
  color: #f8fafc;
  border: 0;
  border-radius: 10px;
  min-height: 36px;
  line-height: 1.2;
  text-align: left;
  padding: .4rem 1.95rem .4rem .65rem;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
#channelSwitcherBtn:focus {
  outline: none;
  box-shadow: 0 0 0 .2rem rgba(56,189,248,.22);
}
#channelSwitcherWrap.single-channel #channelSwitcherBtn {
  cursor: default;
  opacity: 1;
}
#channelSwitcherChevron {
  position: absolute;
  right: .55rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.92);
  font-size: .72rem;
  pointer-events: none;
}
#channelSwitcherMenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 800;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 24px rgba(2,6,23,.22);
  max-height: 220px;
  overflow: auto;
  display: none;
}
#channelSwitcherWrap.open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
#channelSwitcherWrap.open #channelSwitcherMenu { display: block; }
.channel-switcher-item {
  width: 100%;
  border: 0;
  background: #f8fafc;
  color: #0f172a;
  text-align: left;
  padding: .5rem .65rem;
  font-size: .74rem;
}
.channel-switcher-item:hover,
.channel-switcher-item:focus { background: #e2e8f0; outline: none; }
.channel-switcher-item.active { background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.leaflet-popup-content-wrapper {
  border-radius: 10px;
}
.leaflet-popup-content {
  margin: 7px 8px;
  font-size: .76rem;
  line-height: 1.15;
}
.leaflet-popup-close-button {
  font-size: 14px !important;
  padding: 2px 6px 0 0 !important;
}
#participantMessages { font-size: .7rem; }
.traffic-alert-ping {
  animation: trafficAlertPing 1.3s ease-out 3;
}
@keyframes trafficAlertPing {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,.55); }
  70% { transform: scale(1.22); box-shadow: 0 0 0 14px rgba(239,68,68,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.participant-badge {
  background: rgba(15, 23, 42, .68);
  color: #fff;
  border-radius: 6px;
  padding: 3px 6px;
}
.role-badge {
  display: inline-block;
  margin-left: .28rem;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: .56rem;
  font-weight: 700;
  vertical-align: middle;
}
.role-adm { background:#dc2626; color:#fff; }
.role-mod { background:#2563eb; color:#fff; }
.role-vip { background:#a855f7; color:#fff; }
#pttBtn {
  transition: transform .08s ease, box-shadow .08s ease, filter .08s ease;
}
#pttBtn .ptt-wave {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.0);
  opacity: 0;
  pointer-events: none;
}
#pttBtn.is-pressed {
  transform: scale(0.94);
  box-shadow: 0 0 0 4px rgba(220,53,69,.28), 0 .25rem .7rem rgba(0,0,0,.35) !important;
  filter: brightness(1.08);
}
#pttBtn.is-pressed .wave1 { animation: pttWave 1.35s ease-out 0s infinite; }
#pttBtn.is-pressed .wave2 { animation: pttWave 1.35s ease-out .22s infinite; }
#pttBtn.is-pressed .wave3 { animation: pttWave 1.35s ease-out .44s infinite; }
#pttBtn.is-pressed .wave4 { animation: pttWave 1.35s ease-out .66s infinite; }
#pttBtn i {
  font-size: 2.8rem;
  position: relative;
  z-index: 2;
}
@keyframes pttWave {
  0% { transform: scale(.88); opacity: .82; border-color: rgba(255,255,255,.75); }
  100% { transform: scale(7.2); opacity: 0; border-color: rgba(255,255,255,0); }
}
#bottomLeftActions {
  position: fixed;
  left: .75rem;
  bottom: calc(env(safe-area-inset-bottom, 0px) + .75rem);
  z-index: 1800;
  display: flex;
  flex-direction: row;
  gap: .45rem;
  align-items: center;
}
#bottomLeftActions .btn {
  border-radius: 10px;
  box-shadow: 0 .2rem .5rem rgba(0,0,0,.2);
}
#cleanupAudioWrap {
  position: fixed;
  left: .75rem;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 6.6rem);
  z-index: 1800;
}
#cleanupAudioWrap .btn {
  border-radius: 14px;
  box-shadow: 0 .2rem .5rem rgba(0,0,0,.25);
}
#volumeControlWrap {
  position: fixed;
  left: .75rem;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 3.25rem);
  z-index: 1800;
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(15,23,42,.72);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: .32rem .62rem;
  box-shadow: 0 .2rem .5rem rgba(0,0,0,.25);
}
#volumeSlider {
  width: 120px;
  accent-color: #0d6efd;
}
#volumePct {
  font-size: .72rem;
  min-width: 34px;
  text-align: right;
  font-weight: 700;
}

/* GPS button near PTT (all users) */
#centerGpsBtn {
  position: fixed !important;
  right: 1rem !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8.3rem) !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  z-index: 2001 !important;
  background: linear-gradient(135deg,#0ea5e9,#2563eb) !important;
  border: 1px solid rgba(255,255,255,.55) !important;
  color: #fff !important;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.35) !important;
}

#radiusControl {
  position: fixed;
  right: .55rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1700;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: .45rem .28rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: #fff;
}
#radiusValue {
  font-size: .68rem;
  font-weight: 600;
}
#radiusSlider {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 32px;
  height: 190px;
  -webkit-appearance: slider-vertical;
  appearance: none;
  background: transparent;
}
#radiusSlider::-webkit-slider-runnable-track {
  width: 8px;
  background: rgba(255,255,255,.28);
  border-radius: 999px;
}
#radiusSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-left: -7px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #0d6efd;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
#radiusSlider::-moz-range-track {
  width: 8px;
  background: rgba(255,255,255,.28);
  border-radius: 999px;
}
#radiusSlider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0d6efd;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
#fuelStationsWidget {
  position: fixed;
  left: .75rem;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 13.4rem);
  z-index: 1760;
  background: rgba(15,23,42,.82);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: .34rem .5rem;
  min-width: 170px;
  box-shadow: 0 .2rem .5rem rgba(0,0,0,.25);
  font-size: .68rem;
}
#fuelStationsWidget { display: none; }
#fuelStationsWidget .ev-head { display:flex; align-items:center; justify-content:space-between; gap:.45rem; margin-bottom:.12rem; }
#fuelStationsCloseBtn { border:0; background:transparent; color:#cbd5e1; padding:0 .15rem; line-height:1; }
#fuelStationsCloseBtn:hover { color:#fff; }
#quickPoiLabel {
  position: fixed;
  left: .75rem;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 17.9rem);
  z-index: 1759;
  background: rgba(15,23,42,.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  padding: .12rem .28rem;
  font-size: .62rem;
  line-height: 1.1;
  box-shadow: 0 .2rem .5rem rgba(0,0,0,.25);
  display: inline-flex;
  align-items: center;
  gap: .28rem;
}
#quickPoiClearBtn { border:0; background:transparent; color:#cbd5e1; padding:0 .1rem; line-height:1; position:static; width:32px; height:auto; font-size:inherit; }
#quickPoiClearBtn:hover { color:#fff; }
#quickPoiStrip {
  position: fixed;
  left: .75rem;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 13rem);
  z-index: 1758;
  display: grid;
  grid-template-columns: repeat(6, 32px);
  gap: .3rem;
}
.quick-poi-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 .2rem .5rem rgba(0,0,0,.25);
}
.quick-poi-btn:hover { color:#fff; background: rgba(30,41,59,.86); }
#nearbyWidget {
  position: fixed;
  left: .75rem;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16.1rem);
  z-index: 1760;
  background: rgba(15,23,42,.82);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: .34rem .5rem;
  min-width: 170px;
  box-shadow: 0 .2rem .5rem rgba(0,0,0,.25);
  font-size: .68rem;
  display: none;
}
#nearbyWidget .near-head { display:flex; align-items:center; justify-content:space-between; gap:.45rem; margin-bottom:.12rem; }
#nearbyCloseBtn { border:0; background:transparent; color:#cbd5e1; padding:0 .15rem; line-height:1; }
#nearbyCloseBtn:hover { color:#fff; }
#weatherHazardWidget {
  position: fixed;
  left: .75rem;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 5.8rem);
  z-index: 1750;
  background: rgba(15,23,42,.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: .45rem .6rem;
  min-width: 170px;
  box-shadow: 0 .2rem .5rem rgba(0,0,0,.25);
  font-size: .72rem;
}
#weatherHazardWidget .weather-head { display:flex; align-items:center; justify-content:space-between; gap:.4rem; cursor:pointer; }
#weatherHazardWidget .weather-head-left { display:inline-flex; align-items:center; gap:.35rem; }
#weatherHazardTempCompact { display:none; font-size:.66rem; font-weight:700; color:#93c5fd; }
#weatherHazardWidget.weather-collapsed #weatherHazardTempCompact { display:inline; }
#weatherHazardToggleBtn { border:0; background:transparent; color:#cbd5e1; padding:0 .15rem; line-height:1; cursor:pointer; }
#weatherHazardToggleBtn:hover { color:#fff; }
#weatherHazardWidget.weather-collapsed .weather-body { display:none; }
body.weather-collapsed #quickPoiStrip {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8.4rem) !important;
}
body.weather-collapsed #quickPoiLabel {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 13rem) !important;
}
body.weather-collapsed #nearbyWidget {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 11.3rem) !important;
}
.leaflet-bottom.leaflet-left {
  margin-bottom: calc(env(safe-area-inset-bottom, 0px) + .2rem);
}
body.weather-collapsed .leaflet-bottom.leaflet-left {
  margin-bottom: calc(env(safe-area-inset-bottom, 0px) + .9rem);
}
#weatherHazardList { margin-top: .2rem; display:flex; flex-wrap:wrap; gap:.22rem; }
.weather-hz-chip { border-radius:4px; padding: .1rem .22rem; font-weight:600; font-size:.64rem; }
.weather-hz-low { background:#0d6efd; color:#fff; }
.weather-hz-medium { background:#f59e0b; color:#111; }
.weather-hz-high { background:#dc2626; color:#fff; }
.weather-hz-attrib { opacity:.65; font-size:.52rem; margin-top:.22rem; }
@media (max-width: 768px) {
  #participantsPanel {
    left: auto !important;
    right: 0 !important;
    top: 0 !important;
    bottom: auto !important;
    margin: 0 !important;
    width: 170px;
    max-height: none;
    opacity: .96;
    border-radius: 0 !important;
  }
  #participantsPanel .fw-semibold { font-size: .72rem; }
  #participantMessages { font-size: .66rem; }
  .leaflet-popup-content {
    margin: 6px 7px;
    font-size: .72rem;
  }
  #alertPhotoBtn {
    position: absolute !important;
    left: 74px !important;
    top: 48px !important;
    right: auto !important;
    bottom: auto !important;
    width: 46px !important;
    height: 46px !important;
    z-index: 655 !important;
    border-radius: 12px !important;
  }
  #pttBtn {
    position: fixed !important;
    right: .75rem !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + .75rem) !important;
    width: 24vw !important;
    height: 24vw !important;
    min-width: 84px;
    min-height: 84px;
    z-index: 2000 !important;
  }
  #pttBtn i {
    font-size: 2.25rem;
  }
  #centerGpsBtn {
    right: .9rem !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 6.9rem) !important;
    width: 50px !important;
    height: 50px !important;
    z-index: 2001 !important;
  }
  #bottomLeftActions .btn {
    padding: .32rem .62rem;
    font-size: .74rem;
  }
  #cleanupAudioWrap {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 6.35rem);
  }
  #cleanupAudioWrap .btn {
    padding: .3rem .56rem;
    font-size: .72rem;
  }
  #volumeControlWrap {
    padding: .28rem .5rem;
    gap: .3rem;
  }
  #volumeSlider {
    width: 88px;
  }
  #volumePct {
    font-size: .66rem;
    min-width: 30px;
  }
  #radiusControl {
    right: .35rem;
    padding: .38rem .2rem;
  }
  #radiusSlider {
    height: 135px;
  }
  .weather-hz-attrib { font-size:.5rem; }
}
.guest-card {
  width: min(92vw, 460px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.2);
  background: linear-gradient(160deg, rgba(15,23,42,.96), rgba(30,41,59,.95));
  color: #f8fafc;
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
  padding: 1rem 1rem .9rem;
}
#guestAuthBootstrapModal {
  pointer-events: none;
}
#guestAuthBootstrapModal .modal-dialog {
  width: min(92vw, 460px);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  pointer-events: auto;
}
#guestAuthBootstrapModal .modal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
}
#guestAuthBootstrapModal .guest-card {
  width: 100%;
}
body.guest-readonly .modal-backdrop.show {
  opacity: 0 !important;
  background: transparent !important;
  z-index: 5990 !important;
}
body.guest-readonly.guest-welcome-dim .modal-backdrop.show {
  opacity: .26 !important;
  background: rgba(2,6,23,.58) !important;
  pointer-events: none !important;
}
body.guest-readonly.guest-auth-dim .modal-backdrop.show {
  opacity: .38 !important;
  background: rgba(2,6,23,.72) !important;
  pointer-events: none !important;
}
#guestAuthBootstrapModal,
#guestAuthFormsModal,
#guestLegalModal,
#siteLegalModal {
  z-index: 6000 !important;
}
body .modal-backdrop.show {
  z-index: 5990 !important;
}
#guestAuthFormsModal .nav-tabs {
  border-bottom-color: rgba(255,255,255,.22);
}
#guestAuthFormsModal .nav-link {
  color: rgba(226,232,240,.82);
}
#guestAuthFormsModal .nav-link.active {
  color: #0f172a;
  background: #e2e8f0;
  border-color: rgba(255,255,255,.35);
}
#guestAuthFormsModal .form-label,
#guestAuthFormsModal .form-check-label,
#guestAuthFormsModal .small,
#guestAuthFormsModal .text-white-50 {
  color: #e2e8f0 !important;
}
#guestAuthFormsModal a { color: #93c5fd; }
#guestAuthFormsModal .form-control {
  background: rgba(255,255,255,.98);
  color: #0f172a;
  border: 1px solid #cbd5e1;
}
#guestAuthFormsModal .form-control::placeholder { color: #64748b; }
#guestAuthFormsModal .form-control:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 .2rem rgba(96,165,250,.22);
}
body.guest-readonly #quickPoiLabel,
body.guest-readonly #quickPoiStrip,
body.guest-readonly #nearbyWidget,
body.guest-readonly #fuelStationsWidget,
body.guest-readonly #weatherHazardWidget,
body.guest-readonly #alertPhotoBtn,
body.guest-readonly #pttBtn,
body.guest-readonly #toolPolice,
body.guest-readonly #toolAccident,
body.guest-readonly #toolCamera,
body.guest-readonly #toolRadar,
body.guest-readonly #toolTraffic,
body.guest-readonly #toolBlocked,
body.guest-readonly #toolObstacle,
body.guest-readonly #toolAnimal,
body.guest-readonly #toolWorks,
body.guest-readonly #volumeControl,
body.guest-readonly #alertCreateModal,
body.guest-readonly #showoffUploadModal {
  pointer-events: none !important;
}
body.guest-readonly #centerGpsBtn,
body.guest-readonly #centerGpsBtn * {
  pointer-events: auto !important;
  touch-action: manipulation;
}
body.guest-readonly #weatherHazardWidget {
  bottom: calc(env(safe-area-inset-bottom, 0px) + .75rem) !important;
}
body.guest-readonly #fuelStationsWidget {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8.3rem) !important;
}
body.guest-readonly #nearbyWidget {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 11rem) !important;
}
body.guest-readonly.weather-collapsed #fuelStationsWidget {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 3.4rem) !important;
}
body.guest-readonly.weather-collapsed #nearbyWidget {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 6.3rem) !important;
}
body.guest-readonly #quickPoiStrip {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8.1rem) !important;
}
body.guest-readonly #quickPoiLabel {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12.9rem) !important;
}
body.guest-readonly.weather-collapsed #quickPoiStrip {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 5.3rem) !important;
}
body.guest-readonly.weather-collapsed #quickPoiLabel {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 9.4rem) !important;
}

body.guest-readonly #radiusControl,
body.guest-readonly #alertPhotoBtn,
body.guest-readonly #volumeControlWrap {
  display: none !important;
}
