:root {
  color-scheme: dark;
  --bg: #101612;
  --panel: #1a2420;
  --line: #314038;
  --text: #f4efe4;
  --muted: #a8b5a4;
  --accent: #e0a15c;
  --ink: #1a140c;
  --map-height: min(46rem, 72vh);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% 0%, #24352b 0%, transparent 60%),
    var(--bg);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #101612;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(10, 16, 12, 0.9) 0%, rgba(10, 16, 12, 0.62) 46%, rgba(10, 16, 12, 0.18) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(16, 22, 18, 0.15) 34%, transparent 58%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #163024;
  mix-blend-mode: multiply;
  opacity: 0.16;
  pointer-events: none;
}

.hero .reel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero .reel-track {
  display: flex;
  height: 100%;
  width: 100%;
  margin: 0;
  transition: transform 0.7s ease;
}

.hero .reel-track figure {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
}

.hero .reel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero .reel-track figcaption {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  z-index: 2;
  max-width: min(22rem, 70%);
  color: var(--text);
  font-size: 0.72rem;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.hero .reel-track figcaption a { color: var(--accent); }

.hero > .reel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.7rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.hero > .reel-dots button {
  width: 0.58rem;
  height: 0.58rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 239, 228, 0.55);
  cursor: pointer;
}

.hero > .reel-dots button[aria-current="true"] { background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .hero .reel-track { transition: none; }
}

.top, main {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 2.4rem 0 2rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.55rem;
}

.brand {
  display: block;
  height: 42px;
  width: auto;
  margin: 0;
}

.links { margin: 0.7rem 0 0; display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; }
.links a.go,
button.go {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  font-weight: 650;
  box-shadow: 0 8px 18px rgba(224, 161, 92, 0.28);
}

button.go:hover { filter: brightness(1.08); border-color: var(--accent); }

button.go:disabled {
  background: #6a5436;
  color: rgba(244, 239, 228, 0.72);
  border-color: #6a5436;
  box-shadow: none;
  opacity: 1;
  cursor: default;
  filter: none;
}
.field-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.goal-actions { margin-top: 0.35rem; }

h1, h2 { margin: 0; font-weight: 650; }
h1 { font-size: 1.85rem; letter-spacing: -0.03em; }
h2 { font-size: 1rem; }

.how-dialog {
  width: min(40rem, calc(100% - 2rem));
  max-height: min(78vh, 44rem);
  overflow: auto;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.2rem;
}

.how-dialog::backdrop {
  background: rgba(8, 12, 10, 0.72);
}

.how-dialog p {
  line-height: 1.45;
  margin: 0.75rem 0 0;
}

.how-dialog form { margin-top: 1rem; }
.way-in {
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.eyebrow, .quiet, .status, .credit { color: var(--muted); }
.eyebrow {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
}

.hunt-line {
  margin: 0;
  flex: 1 1 18rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
}

.status, .quiet { margin: 0.35rem 0 0; }
.run-progress { margin: 0.8rem 0 0; }
.run-track {
  height: 9px;
  border-radius: 999px;
  background: #24352b;
  overflow: hidden;
}
.run-fill {
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e0a15c 0%, #ff4d2e 100%);
  transform: translateX(-120%);
  animation: run-slide 1.15s ease-in-out infinite;
}
.run-progress.done .run-fill {
  width: 100%;
  transform: none;
  animation: none;
  transition: width 0.45s ease;
}
.run-word {
  min-height: 1.1em;
  margin: 0.4rem 0 0;
  color: #ff4d2e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@keyframes run-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
.subpanel-bar { flex-wrap: wrap; }
.subpanel-bar .fold-toggle { margin-left: 0; }

.controls {
  margin: 1rem 0;
}

.picker {
  background: linear-gradient(180deg, #22302a 0%, var(--panel) 42%);
  border: 1px solid #3d4d44;
  border-radius: 16px;
  padding: 0.9rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.picker-row input,
.picker-row select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
}

.picker-row input { min-width: 12rem; flex: 1; }

.unit-list {
  margin-top: 0.55rem;
  max-height: 11.5rem;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.35rem;
}

.unit-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
}

.unit-row span { color: var(--muted); font-size: 0.78rem; }
.unit-row:hover { border-color: var(--accent); background: #22302a; }
.unit-row.active { background: rgba(224, 161, 92, 0.16); }

button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
}

button:hover { border-color: var(--accent); }

button.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(224, 161, 92, 0.12);
}

.map-switch button.active {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.stage {
  display: block;
}

.detail { margin-top: 1rem; }

.detail-lead p { max-width: 62rem; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.4rem;
  margin-top: 0.9rem;
}

.detail-grid section { min-width: 0; }

.detail-grid h2 { margin-bottom: 0.35rem; }

.map-frame {
  position: relative;
}

#map {
  height: var(--map-height);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.area-frame { margin: 0.7rem 0 0.9rem; }
#area-map {
  height: 22rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.area-box {
  position: absolute;
  z-index: 3;
  box-sizing: border-box;
  border: 2px solid var(--accent);
  background: rgba(224, 161, 92, 0.28);
  border-radius: 8px;
  touch-action: none;
  cursor: move;
  box-shadow: 0 0 0 1px rgba(26, 20, 12, 0.55);
}
.area-handle {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  touch-action: none;
}
.area-handle.nw { left: -18px; top: -18px; cursor: nwse-resize; }
.area-handle.ne { right: -18px; top: -18px; cursor: nesw-resize; }
.area-handle.sw { left: -18px; bottom: -18px; cursor: nesw-resize; }
.area-handle.se { right: -18px; bottom: -18px; cursor: nwse-resize; }
#area-run:disabled { opacity: 0.6; }
.layers-dock {
  position: absolute;
  z-index: 5;
  top: 0.65rem;
  left: 0.65rem;
  width: min(16.5rem, calc(100% - 4.4rem));
}

.layers-open {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.32rem 0.85rem 0.32rem 0.35rem;
  border-radius: 999px;
  background: rgba(16, 22, 18, 0.92);
  color: #f4efe4;
  border: 1px solid rgba(244, 239, 228, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.layers-mark {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.62rem;
  background:
    linear-gradient(#fff, #fff) 28% 32% / 46% 2px no-repeat,
    linear-gradient(#fff, #fff) 28% 50% / 46% 2px no-repeat,
    linear-gradient(#fff, #fff) 28% 68% / 46% 2px no-repeat,
    linear-gradient(90deg, #e0a15c 0%, #ff4d2e 100%);
}

.layers-kicker {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.7);
}

.layers-open strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.layers-panel {
  margin-top: 0.4rem;
  padding: 0.7rem 0.85rem 0.75rem;
  border-radius: 16px;
  background: rgba(16, 22, 18, 0.94);
  color: #f4efe4;
  border: 1px solid rgba(244, 239, 228, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  max-height: 24rem;
  overflow: auto;
}

.layers-panel[hidden] { display: none !important; }

.layers-panel fieldset {
  margin: 0.45rem 0 0;
  padding: 0;
  border: 0;
}

.layers-panel legend {
  margin-bottom: 0.15rem;
  color: #e0a15c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.layers-panel label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0;
  font-size: 0.92rem;
}

.layers-panel input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #ff4d2e;
}

.elev-slider {
  display: grid;
  gap: 0.2rem;
  padding: 0.2rem 0 0.35rem;
}

.elev-readout {
  color: #e0a15c;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.layers-panel input[type="range"] {
  width: 100%;
  height: 1.35rem;
  accent-color: #ff4d2e;
}

.layers-note {
  min-height: 1em;
  margin: 0.35rem 0 0;
  color: rgba(244, 239, 228, 0.72);
  font-size: 0.78rem;
}

.panel-card { padding: 0; overflow: hidden; }

.panel-bar,
.subpanel-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.panel-bar {
  min-height: 3.15rem;
  padding: 0.7rem 0.9rem;
}

.panel-card:not(.is-collapsed) > .panel-bar { border-bottom: 1px solid var(--line); }

.panel-bar h2 { font-size: 1.05rem; letter-spacing: -0.02em; }

.panel-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.panel-body { padding: 0.9rem 1rem 1rem; overflow-x: auto; }
.panel-body[hidden] { display: none !important; }

.fold-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.28rem 0.65rem;
  background: rgba(224, 161, 92, 0.1);
  border-color: rgba(224, 161, 92, 0.45);
  color: var(--accent);
  font-size: 0.8rem;
}

.panel-tools .fold-toggle { margin-left: 0; }

.chevron {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
}

.panel-card.is-collapsed .chevron,
.subpanel.is-collapsed .chevron {
  transform: rotate(-45deg) translate(-1px, 1px);
}

.subpanel {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 22, 18, 0.35);
}

.subpanel-bar { padding: 0.55rem 0.75rem; }
.subpanel-bar h3 { margin: 0; font-size: 0.95rem; font-weight: 650; }
.subpanel-body { padding: 0 0.75rem 0.8rem; }
.subpanel-body[hidden] { display: none !important; }

.index-note {
  position: absolute;
  z-index: 2;
  left: 0.6rem;
  bottom: 0.6rem;
  margin: 0;
  max-width: 16rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(16, 22, 18, 0.86);
  color: var(--text);
  font-size: 0.82rem;
}

.detail, .results {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.results { margin: 1rem 0 0; }

.traffic { padding: 2rem 0 3rem; }
.traffic h1 { margin-bottom: 0.4rem; }
.traffic .results { margin-top: 1rem; }
.traffic .results h2 { margin-top: 1rem; }
.traffic ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }

.section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.section-title h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.onx-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#onx-download { font-size: 0.92rem; }

.info-button {
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  border-radius: 50%;
  font-family: Georgia, "Iowan Old Style", serif;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1;
  color: var(--accent);
  border-color: var(--accent);
}

dl { display: grid; grid-template-columns: 9rem 1fr; gap: 0.45rem 0.75rem; margin: 0.8rem 0 0; }
dt { color: var(--muted); }
dd { margin: 0; }

.tools {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.tools .results { margin: 0; }

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

.check input { accent-color: var(--accent); }

.tool-table { max-height: 24rem; overflow: auto; }

#coord-input { min-width: 16rem; flex: 1.4; }

.results { overflow-x: auto; }
.panel-card.detail,
.panel-card.results { padding: 0; overflow: hidden; }
table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; vertical-align: middle; }
.spot-meta { margin: 0.15rem 0 0.2rem; }
table.spots { border-collapse: separate; border-spacing: 0 0.45rem; margin-top: 0.35rem; }
table.spots th {
  border: 0;
  padding: 0 0.85rem 0.05rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
table.spots td {
  background: rgba(26, 36, 32, 0.94);
  border: 0;
  padding: 0.8rem 0.85rem;
  vertical-align: top;
}
table.spots td:first-child { border-radius: 14px 0 0 14px; }
table.spots td:last-child { border-radius: 0 14px 14px 0; }
table.spots tbody tr.spot-pick { cursor: pointer; }
tr.own-pin { background: rgba(61, 140, 255, 0.14); }
tr.own-pin td:first-child { box-shadow: inset 3px 0 0 #3d8cff; }
tr.pin-off { opacity: 0.45; }
.pin-keep {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}
#drop-pin.armed { border-color: #3d8cff; color: #3d8cff; }
.pin-note {
  width: 100%;
  margin-top: 0.35rem;
  background: #101612;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}
.name-popup .maplibregl-popup-content {
  background: rgba(16, 22, 18, 0.9);
  color: #f4efe4;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  font-size: 0.82rem;
  box-shadow: none;
}
.name-popup .maplibregl-popup-tip { display: none; }
table.spots tbody tr:hover td,
table.spots tbody tr.chosen td { background: #22302a; }
table.spots tbody tr.chosen td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

.spot-popup .maplibregl-popup-content {
  background: #1c2621;
  color: var(--text);
  border: 1px solid #3d4d44;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.spot-popup .maplibregl-popup-content strong { display: block; }
.spot-popup .maplibregl-popup-content p { margin: 0.28rem 0 0; font-size: 0.85rem; line-height: 1.35; }
.spot-popup .maplibregl-popup-tip { border-top-color: #1c2621; }
.spot-popup .maplibregl-popup-close-button { color: var(--text); font-size: 1.1rem; }
table.spots td.quiet { background: transparent; }
.habitat { display: flex; gap: 0.7rem; align-items: center; min-width: 11rem; }
.spot-score {
  flex: none;
  min-width: 2.7rem;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  background: #6d7a68;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: center;
}
.spot-score.mid { background: #c4b49a; color: var(--ink); }
.spot-score.high { background: var(--accent); color: var(--ink); }
.spot-rank {
  display: inline-block;
  width: 1.25rem;
  margin-right: 0.35rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.spot-main { line-height: 1.35; }
.spot-sub { margin-top: 0.18rem; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.note-pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.82rem;
  white-space: nowrap;
}
.score-head { white-space: nowrap; }
.score-head .info-button, th .info-button { margin-left: 0.35rem; }
a { color: var(--accent); }

.hunt-list { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.hunt-list li { margin: 0.2rem 0; }

.credit {
  margin: 0.8rem 0 2rem;
  font-size: 0.78rem;
}

.dash { padding: 1.2rem 0 3rem; }
.dash h1 { margin-bottom: 0.35rem; }
.dash-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem 1rem 1rem;
  margin-top: 0.8rem;
}
.dash-note h2 { font-size: 1.05rem; }
.dash-note p { margin: 0.45rem 0 0; white-space: pre-wrap; }
.dash-note .advice { border-top: 1px solid var(--line); margin-top: 0.7rem; padding-top: 0.7rem; }

.beta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(24rem, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

button.beta-open {
  background: var(--accent);
  color: var(--ink);
  border: 0;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

button.beta-open:hover { color: var(--ink); background: #efb56d; }

.beta-panel {
  width: 100%;
  max-height: min(70vh, 34rem);
  overflow: auto;
  background: var(--panel);
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 0.95rem 1rem 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.beta-panel h2 { font-size: 1.15rem; }
.beta-panel label { display: block; margin-top: 0.7rem; }
.beta-panel textarea,
.beta-panel input {
  width: 100%;
  margin-top: 0.35rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}
.beta-panel textarea { min-height: 6.5rem; resize: vertical; }
.beta-actions { margin: 0.7rem 0 0; }
button.beta-send {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 700;
}
button.beta-send:hover { color: var(--ink); }
.beta-note { border-top: 1px solid var(--line); margin-top: 0.75rem; padding-top: 0.65rem; }
.beta-note p { margin: 0.25rem 0 0; white-space: pre-wrap; }
.beta-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.6rem 0; }
.beta-filters button.is-on { background: var(--accent); color: #1a140c; }
.beta-ticket { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.45rem; }
.beta-ticket select, .beta-ticket textarea { font: inherit; }
.beta-ticket textarea { flex: 1 1 16rem; min-height: 3.2rem; }
.beta-ref { color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }

@media (max-width: 800px) {
  .hero { min-height: 180px; }
  h1 { font-size: 1.45rem; }
  .brand { height: 34px; }
  .top { padding-top: 1.6rem; }
  .panel-body, .subpanel-body, .tool-table { overflow-x: visible; }
  .tool-table { max-height: none; }
  table.spots, .tool-table table,
  table.spots tbody, .tool-table tbody,
  table.spots tr, .tool-table tr,
  table.spots td, .tool-table td {
    display: block;
    width: auto;
  }
  table.spots thead, .tool-table thead { display: none; }
  table.spots { border-spacing: 0; }
  table.spots tr, .tool-table tr {
    margin: 0 0 0.75rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(26, 36, 32, 0.94);
  }
  table.spots td, .tool-table td {
    display: grid;
    grid-template-columns: 6.6rem minmax(0, 1fr);
    gap: 0.35rem 0.65rem;
    align-items: start;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 0.62rem 0.75rem;
    overflow-wrap: anywhere;
  }
  table.spots td:last-child, .tool-table td:last-child { border-bottom: 0; }
  table.spots td::before, .tool-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.35;
  }
  table.spots td.quiet, .tool-table td.quiet {
    display: block;
  }
  table.spots td.quiet::before, .tool-table td.quiet::before { content: none; }
  table.spots tr.chosen { box-shadow: inset 3px 0 0 var(--accent); }
  table.spots tr.chosen td:first-child { box-shadow: none; }
  .habitat { min-width: 0; }
  .note-pill { white-space: normal; }
  .detail-grid { grid-template-columns: 1fr; }
  #map { height: 22rem; margin-bottom: 1rem; }
  .map-frame { margin-bottom: 1rem; }
  #map { margin-bottom: 0; }
}
