html, body { margin: 0; padding: 0; height: 100%; }
#map { width: 100%; height: 100vh; }

#st-legend {
  position: absolute;
  bottom: 36px; left: 10px;
  background: rgba(20,20,28,0.88); color: #e8e8e8;
  padding: 10px 14px; border-radius: 6px; z-index: 10;
  font-size: 12px; backdrop-filter: blur(4px);
}
.st-legend-title { font-weight: 600; margin-bottom: 5px; }
.st-legend-row { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.st-dot {
  display: inline-block; width: 12px; height: 12px;
  border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.25);
}
.st-dot-count  { background: rgba(255,68,68,0.65); }
.st-dot-nodata { background: rgba(255,255,0,0.7); }

#st-time-control {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.st-ctrl-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.st-ctrl-row label {
  width: 28px;
  flex-shrink: 0;
  color: #aaa;
  font-size: 11px;
}

#st-day-select {
  flex: 1;
  background: rgba(40,40,50,0.9);
  color: #e8e8e8;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 11px;
  cursor: pointer;
}

#st-hour-slider {
  flex: 1;
  accent-color: #7fcdbb;
  cursor: pointer;
}

#st-hour-label {
  width: 70px;
  text-align: right;
  font-size: 11px;
  color: #ccc;
  flex-shrink: 0;
}

.st-ctrl-update { justify-content: flex-end; margin-top: 6px; }

#st-update-btn { display: none; }
#st-update-btn {
  background: rgba(127,205,187,0.2);
  color: #7fcdbb;
  border: 1px solid rgba(127,205,187,0.5);
  border-radius: 3px;
  padding: 3px 12px;
  font-size: 11px;
  cursor: pointer;
}
#st-update-btn:hover { background: rgba(127,205,187,0.35); }

#st-legend-status {
  font-size: 11px;
  color: #aaa;
  margin-top: 5px;
  min-height: 14px;
}

#st-tip {
  position: fixed;
  background: rgba(20,20,28,0.95); color: #e8e8e8;
  padding: 8px 12px; border-radius: 4px;
  font-family: sans-serif; font-size: 12px; line-height: 1.6;
  pointer-events: none; z-index: 9999;
  display: none; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
#st-tip h4 { margin: 0 0 2px; color: #7fcdbb; font-size: 13px; font-weight: 600; }
