/* Catalogue page (handoff § 2). */
.map-card { padding: 12px 14px 22px; margin-bottom: 20px; }
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.map-title { font: 12px var(--sans); color: var(--muted); }
.cat-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.filters { flex: 0 0 220px; display: grid; gap: 18px; }
.f-sec { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 6px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-row label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.chip-count { color: var(--muted); }
.results { flex: 1 1 520px; min-width: 0; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.count { font-size: 20px; }
.results-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.results-table { width: 100%; min-width: 760px; border-collapse: collapse; font: 12.5px var(--mono); }
.results-table th { background: var(--surface-2); text-align: left; padding: 0; position: sticky; top: 0; }
.results-table th button {
  width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px;
  font: 500 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.results-table th.sorted button { color: var(--accent); }
.results-table td { padding: 9px 12px; border-bottom: 1px solid var(--row-line); white-space: nowrap; }
.results-table tbody tr { cursor: pointer; }
.results-table tbody tr:hover { background: var(--hover); }
.results-table tbody tr.selected { background: var(--accent-bg); }
.results-table .bno a { color: var(--accent); }
.results-table .name { font-family: var(--sans); white-space: normal; }
.results-table .dim { color: var(--faint); }
.results-table .soft { color: var(--muted); }
.empty { padding: 20px; color: var(--text-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.detail-panel { flex: 0 1 360px; min-width: 300px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
@media (max-width: 1100px) {
  .filters { flex: 1 1 100%; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .detail-panel { flex: 1 1 100%; position: static; max-height: none; }
}

.skymap { position: relative; }
.map-box {
  position: relative; height: 170px; border-radius: 4px; overflow: hidden;
  background: linear-gradient(180deg, #0e1411 0%, #1b241f 50%, #0e1411 100%);
}
.axis-b0 { position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line-strong); }
.axis-l0 { position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed var(--line-strong); }
.fp { position: absolute; border: 1px solid #384740; background: #ffffff05; border-radius: 2px; }
.fp.sel { border-color: var(--accent); background: #d9a55b22; }
.dot {
  position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: #5a554c;
}
.dot.hit { background: var(--accent); }
.dot.sel { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: var(--accent-hi); box-shadow: 0 0 0 2px var(--plate-black); z-index: 2; }
.dot:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; z-index: 3; }
.map-ticks { position: relative; height: 14px; margin-top: 6px; font-size: 10px; color: var(--faint); }
.map-ticks span { position: absolute; white-space: nowrap; }
.map-tools { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Zoom control and status, inside the map (top corners). */
.map-toggle {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 12px;
  font: 600 12px var(--sans); color: var(--on-accent); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 6px;
}
.map-toggle:hover { background: var(--accent-hi); }
.map-toggle-icon { display: inline-flex; }
.map-badge {
  position: absolute; top: 8px; left: 8px; z-index: 4; pointer-events: none;
  padding: 4px 8px; font: 11px var(--mono); color: var(--accent);
  background: #070a09cc; border: 1px solid var(--accent-line); border-radius: 4px;
}
@media (max-width: 600px) { .map-toggle { min-height: 44px; } .map-badge { display: none; } }
