:root { --ink: #102a34; --teal: #197b83; }
* { box-sizing: border-box; }
html, body, #map { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; background: #000; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
#map { background: #000; }
.leaflet-container { background: #000; }
.catalog-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}
.map-header {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 64px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  color: white;
  background: rgba(7,20,24,.84);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}
.map-header a {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: rgba(255,255,255,.1);
  text-decoration: none;
  font-size: 1.15rem;
}
.map-header div { display: flex; flex-direction: column; line-height: 1.1; }
.map-header strong { font-size: .84rem; letter-spacing: .05em; }
.map-header span { margin-top: 3px; color: rgba(255,255,255,.68); font-size: .7rem; }
.coordinate-search {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 294px;
  display: flex;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: rgba(7,20,24,.84);
  backdrop-filter: blur(12px);
}
.coordinate-search input, .coordinate-search button {
  height: 31px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: .76rem;
}
.coordinate-search input { width: 112px; padding: 0 9px; color: white; outline: none; background: rgba(255,255,255,.11); }
.coordinate-search input::placeholder { color: rgba(255,255,255,.56); }
.coordinate-search button { padding: 0 13px; color: white; font-weight: 750; cursor: pointer; background: var(--teal); }
.display-settings {
  position: fixed;
  z-index: 1000;
  top: 76px;
  left: 12px;
  width: 210px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  color: white;
  background: rgba(7,20,24,.84);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
  font-size: .7rem;
}
.display-settings div { display: flex; justify-content: space-between; align-items: center; }
.display-settings output { color: #8ed7d8; font-variant-numeric: tabular-nums; }
.display-settings input { width: 100%; margin: 3px 0 8px; accent-color: var(--teal); }
.display-settings button {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  color: white;
  cursor: pointer;
  background: rgba(255,255,255,.1);
}
.map-status {
  position: fixed;
  z-index: 1000;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  color: rgba(255,255,255,.78);
  background: rgba(7,20,24,.82);
  backdrop-filter: blur(10px);
  font-size: .72rem;
  pointer-events: none;
}
#layer-label { color: white; font-weight: 750; }
#scale-label { color: #8ed7d8; }
#catalog-status { color: #9eb9c3; }
.catalog-popup .leaflet-popup-content-wrapper,
.catalog-popup .leaflet-popup-tip {
  color: white;
  background: #071418;
}
.catalog-popup .leaflet-popup-content {
  min-width: 252px;
  margin: 14px 16px;
  line-height: 1.4;
}
.catalog-popup__content { color: rgba(255,255,255,.88); }
.catalog-popup__title {
  display: block;
  margin-bottom: 9px;
  color: white;
  font-size: .92rem;
  letter-spacing: .01em;
}
.catalog-popup__details { margin: 0; }
.catalog-popup__details > div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 10px;
  padding: 4px 0;
  border-top: 1px solid rgba(255,255,255,.09);
}
.catalog-popup__details dt { color: #9eb9c3; }
.catalog-popup__details dd {
  margin: 0;
  color: white;
  font-variant-numeric: tabular-nums;
}
.catalog-popup__badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 750;
  line-height: 1.5;
  vertical-align: 1px;
}
.catalog-popup__badge.is-spec { color: #d5ffff; background: #177f86; }
.catalog-popup__badge.is-phot { color: #dbe5e8; background: #45575d; }
.catalog-popup__note { color: #9eb9c3; font-size: .68rem; }
.catalog-popup__mass-symbol {
  position: relative;
  bottom: -.12em;
  font-size: .62em;
  line-height: 0;
}
.leaflet-control-layers {
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 9px !important;
  color: white;
  background: rgba(7,20,24,.84) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.2) !important;
  backdrop-filter: blur(12px);
}
.leaflet-control-layers-expanded { padding: 11px 13px; }
.leaflet-control-layers label { margin: 5px 0; }
.leaflet-control-zoom a { color: var(--ink) !important; }
@media (max-width: 720px) {
  .map-header { left: 58px; }
  .coordinate-search { top: 72px; left: 12px; }
  .display-settings { top: 122px; width: 190px; }
  .coordinate-search input { width: 98px; }
  .map-status { gap: 8px; flex-wrap: wrap; }
  #coordinate-label { width: 100%; order: 3; }
}
