body:not(.mobile-ui) #spotterPanel { display: none; }
body:not(.mobile-ui)[data-section="spotter"] #spotterPanel { display: block; }

.spotter-panel {
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto;
  padding: clamp(16px, 3vw, 28px);
  color: #e9f2ff;
  background: linear-gradient(145deg, rgba(13, 27, 44, .98), rgba(7, 17, 29, .98));
  border: 1px solid rgba(151, 196, 231, .22);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
  box-sizing: border-box;
}
.spotter-header h1, .spotter-hero h2, .spotter-list h2 { margin: 0; }
.spotter-header p { color: #adc1d4; margin: 8px 0 20px; }
.spotter-search {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(145px, 1fr) repeat(2, minmax(110px, .7fr)) auto;
  align-items: end;
  gap: 10px;
}
.spotter-search label { display: grid; gap: 6px; min-width: 0; color: #cad9e8; font-size: .88rem; }
.spotter-search input {
  width: 100%; min-width: 0; height: 44px; padding: 9px 11px; box-sizing: border-box;
  color: #f3f8ff; background: #101f30; border: 1px solid #40556c; border-radius: 10px;
  font: inherit; font-size: 1rem;
}
.spotter-search button, .spotter-map-actions button {
  min-height: 42px; padding: 9px 13px; color: #edf7ff; background: #173a55;
  border: 1px solid #4d7899; border-radius: 10px; font: inherit; font-weight: 650;
  touch-action: manipulation;
}
.spotter-search button { white-space: nowrap; }
.spotter-search button:focus-visible, .spotter-map-actions button:focus-visible,
.spotter-items button:focus-visible { outline: 3px solid #8bd1ff; outline-offset: 2px; }
.spotter-layout { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 2fr); gap: 18px; margin-top: 20px; }
.spotter-list, .spotter-detail { min-width: 0; padding: 16px; background: rgba(3, 12, 22, .45); border: 1px solid rgba(151, 196, 231, .16); border-radius: 15px; }
.spotter-list h2 { margin-bottom: 12px; font-size: 1.12rem; }
#spotterItems { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
#spotterItems li { display: flex; align-items: center; gap: 7px; min-width: 0; }
#spotterItems button { touch-action: manipulation; }
.spotter-select {
  flex: 1; min-width: 0; padding: 10px; color: #e6f4ff; background: #11253a;
  border: 1px solid #304a63; border-radius: 9px; text-align: left; overflow-wrap: anywhere;
}
.spotter-select[aria-pressed="true"] { border-color: #7bc8ff; background: #173a55; }
#spotterItems .ghost { flex: 0 0 auto; }
.spotter-detail.hidden { display: none; }
.spotter-hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.spotter-eyebrow { margin: 0 0 4px; color: #99aec2; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.spotter-hero h2 { font-size: clamp(1.35rem, 3vw, 2rem); overflow-wrap: anywhere; }
.spotter-hero p:last-child { margin: 5px 0 0; color: #bed0e0; }
.spotter-eta { display: grid; gap: 3px; flex: 0 0 auto; text-align: right; }
.spotter-eta span { color: #9fb3c7; font-size: .76rem; }
.spotter-eta strong { color: #fff; font-size: clamp(1.2rem, 3vw, 1.8rem); }
.spotter-evidence { margin: 14px 0; color: #d3e2ef; }
.spotter-map {
  width: 100%; height: clamp(220px, 34vw, 360px); min-height: 220px;
  overflow: hidden; background: radial-gradient(ellipse at center, #142a3b, #0b1825 76%);
  border: 1px solid #344d63; border-radius: 12px; touch-action: pan-x pan-y;
}
.spotter-route-svg { display: block; width: 100%; height: 100%; }
.spotter-map-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.spotter-map-actions button { min-width: 48px; }
.spotter-legend, .spotter-limitation { color: #aebfd0; font-size: .88rem; }
.spotter-limitation { padding: 10px 12px; border-left: 3px solid #e8bc69; background: rgba(232, 188, 105, .08); }
.spotter-panel .note { color: #afc0d0; }
@media (max-width: 760px) {
  body.mobile-ui #spotterPanel { display: block; width: 100%; max-width: 100%; margin: 0; padding: 14px; border-radius: 0; }
  .spotter-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .spotter-search button { grid-column: 1 / -1; width: 100%; white-space: normal; }
  .spotter-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .spotter-list, .spotter-detail { padding: 12px; }
  .spotter-hero { align-items: flex-start; }
  .spotter-map { height: min(54vh, 330px); min-height: 220px; }
}
