:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

#mapa {
  position: fixed;
  inset: 0;
  background: #0d1117;
}

#painel {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  width: min(320px, calc(100vw - 24px));
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  font: 14px/1.45 system-ui, sans-serif;
  color: #e6edf3;
}

#painel header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

#painel header strong {
  font-size: 15px;
  letter-spacing: 0.4px;
}

#status {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.75;
  text-align: right;
}

.ponto {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6e7681;
  flex: none;
}

.ponto.ok {
  background: #2ea043;
  box-shadow: 0 0 8px rgba(46, 160, 67, 0.6);
}

.ponto.aviso {
  background: #d29922;
}

.ponto.errado {
  background: #f85149;
}

.linha {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  font-size: 13px;
}

.linha label {
  opacity: 0.55;
}

.oculto {
  display: none;
}

#form-token {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

#campo-token {
  flex: 1;
  min-width: 0;
  background: #161b22;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
}

#form-token button,
.segundo {
  background: #21262d;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  cursor: pointer;
}

#controles {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

#controles-fone {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

#controles-fone .grupo {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

#campo-wifi {
  flex: 1;
  min-width: 0;
  background: #161b22;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
}

.controles-status {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.75;
}

.controles-status.falha {
  color: #f85149;
  opacity: 1;
}

.lume-marcador {
  position: relative;
}

.lume-marcador .miolo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 12px 3px rgba(255, 77, 77, 0.55);
}

.lume-marcador .onda {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #ff4d4d;
  animation: pulsar 2s ease-out infinite;
}

@keyframes pulsar {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.leaflet-control-attribution {
  background: rgba(13, 17, 23, 0.7) !important;
  color: #8b949e !important;
  font-size: 10px !important;
}
