:root {
  --text: #17313b;
  --muted: #4e6a73;
  --cetaceans: #0b7285;
  --turtles: #2b8a3e;
  --grid: #d9e3e7;
  --error: #b02a37;
}

.gc-dashboard {
  color: var(--text);
  margin-top: 60px;
}

.gc-dashboard-shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.range-panel,
.stat,
.panel {
  border: 1px solid #e3ecef;
  border-radius: 4px;
  background: #fbfdfd;
}

.range-panel {
  padding: 8px 12px 10px;
  margin-bottom: 0;
}

.dashboard-top-row {
  margin-bottom: 16px;
}

.range-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 700;
}

.range-sliders {
  position: relative;
  height: 24px;
}

.range-sliders input[type="range"] {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  pointer-events: none;
  appearance: none;
  background: none;
  top: 4px;
}

.range-sliders input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #1f6f8b;
  pointer-events: auto;
  cursor: pointer;
}

.range-sliders input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #1f6f8b;
  pointer-events: auto;
  cursor: pointer;
}

.range-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 4px;
  border-radius: 999px;
  background: #d9e3e7;
  overflow: hidden;
}

.range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: linear-gradient(90deg, var(--cetaceans), var(--turtles));
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.stat {
  padding: 12px;
}

.stat .k {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.stat .v {
  margin-top: 4px;
  font-size: 1.55rem;
  font-weight: 700;
}

.panel {
  padding: 12px;
  margin-bottom: 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.panel h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #234750;
}

.viz-container {
  height: 305px;
  min-height: 305px;
  overflow: hidden;
  margin-top: 15px;
  border: 0;
  background: transparent;
}

.viz-container > canvas,
.viz-container > div {
  width: 100% !important;
  height: 100% !important;
}

#map-cetaceans,
#map-turtles {
  border-radius: 4px;
  border: 0;
  background: transparent;
}

.density-caption {
  margin-top: -8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .dashboard-top-row {
    margin-bottom: 14px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
  }
}
