/* Route-level production finish. Loaded after each legacy route stylesheet so the
   command system can evolve coherently without coupling domain layouts together. */

:root {
  --production-frame: color-mix(in srgb, var(--command-cyan) 24%, transparent);
  --production-frame-hot: color-mix(in srgb, var(--command-cyan) 54%, transparent);
  --production-glass: color-mix(in srgb, var(--command-panel) 92%, transparent);
  --production-wash: color-mix(in srgb, var(--command-cyan) 7%, transparent);
}

body[data-command-surface] {
  color: var(--command-ink);
  background:
    radial-gradient(ellipse at 50% -15%, rgba(44, 128, 151, .2), transparent 42%),
    linear-gradient(155deg, #07131c 0%, var(--command-void) 56%, #020407 100%);
}

body[data-command-surface] :where(input, select, textarea) {
  border-color: var(--production-frame);
  border-radius: 3px;
  color: var(--command-ink);
  background-color: rgba(3, 10, 15, .84);
}

body[data-command-surface] :where(input, select, textarea)::placeholder { color: #708a95; opacity: 1; }
body[data-command-surface] :where(input, select, textarea):focus { border-color: var(--command-cyan); box-shadow: 0 0 0 3px rgba(109, 231, 242, .09); }

body[data-command-surface] :where(.btn, .chip, .action, .small-button, .text-button, .primary-button, .secondary-button, .copy-button, .lane-action, .admin-tab, .tab) {
  border-radius: 3px;
}

@media (hover: hover) and (pointer: fine) {
  body[data-command-surface] :where(.btn, .chip, .action, .small-button, .primary-button, .secondary-button, .copy-button, .lane-action):not(:disabled):hover {
    border-color: var(--production-frame-hot);
  }
}

body[data-command-surface] :where(.btn, .chip, .action, .small-button, .primary-button, .secondary-button, .copy-button, .lane-action):not(:disabled):active {
  transform: scale(.98);
  transition-duration: 60ms;
}

/* Main console */
body[data-command-surface='main-console'] { background: #02070c; }
body[data-command-surface='main-console'] .scanlines { display: none; }
body[data-command-surface='main-console'] .nebula { opacity: .6; animation-duration: 28s; }
body[data-command-surface='main-console'] .vignette { opacity: .72; }

body[data-command-surface='main-console'] .console-header {
  min-height: 76px;
  padding: 12px clamp(14px, 2vw, 30px);
  border-bottom-color: var(--production-frame);
  background: rgba(2, 8, 12, .9);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
}

body[data-command-surface='main-console'] .console-header::after {
  position: absolute;
  right: clamp(14px, 2vw, 30px);
  bottom: -1px;
  width: min(28vw, 320px);
  height: 1px;
  content: '';
  background: linear-gradient(90deg, transparent, var(--command-amber));
}

body[data-command-surface='main-console'] .sigil {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(244, 200, 106, .5);
  border-radius: 2px;
  clip-path: polygon(20% 0, 80% 0, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0 80%, 0 20%);
  background: radial-gradient(circle, rgba(109, 231, 242, .2), rgba(4, 13, 20, .96) 68%);
  box-shadow: inset 0 0 20px rgba(109, 231, 242, .12);
}

body[data-command-surface='main-console'] .sigil::before { inset: 9px; border-radius: 50%; border-color: rgba(109, 231, 242, .38); }
body[data-command-surface='main-console'] .sigil::after { inset: 16px 9px; border-width: 1px 0; border-radius: 0; border-color: rgba(244, 200, 106, .68); }
body[data-command-surface='main-console'] .brand-title { font-size: clamp(15px, 1.5vw, 20px); letter-spacing: .09em; }
body[data-command-surface='main-console'] .brand-kicker { color: var(--command-amber); }

body[data-command-surface='main-console'] .header-right,
body[data-command-surface='main-console'] .console-footer {
  border-radius: 3px;
  border-color: var(--production-frame);
  background: rgba(5, 14, 20, .82);
}

body[data-command-surface='main-console'] .console-main {
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  width: min(1720px, 100%);
  margin-inline: auto;
  padding: clamp(10px, 1.5vw, 22px) clamp(10px, 2vw, 30px);
  gap: clamp(10px, 1.2vw, 18px);
}

body[data-command-surface='main-console'] .panel {
  border-radius: 4px;
  border-color: var(--production-frame);
  background: linear-gradient(145deg, rgba(8, 22, 30, .94), rgba(3, 10, 15, .9));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 18px 46px rgba(0, 0, 0, .28);
}

body[data-command-surface='main-console'] .panel::before {
  inset: 8px;
  border-radius: 1px;
  border-color: rgba(109, 231, 242, .07);
}

body[data-command-surface='main-console'] .panel-title-row { border-bottom: 1px solid rgba(109, 231, 242, .1); }
body[data-command-surface='main-console'] .panel-kicker { color: var(--command-cyan); }
body[data-command-surface='main-console'] .info-content { border-radius: 2px; background: rgba(2, 8, 12, .54); }

body[data-command-surface='main-console'] .tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding-top: 10px;
}

body[data-command-surface='main-console'] .tab {
  min-height: 40px;
  border-color: rgba(109, 231, 242, .12);
  background: rgba(4, 12, 17, .7);
}

body[data-command-surface='main-console'] .tab.active {
  color: #031014;
  border-color: var(--command-cyan);
  background: var(--command-cyan);
}

body[data-command-surface='main-console'] .display {
  border-radius: 3px;
  border-color: rgba(244, 200, 106, .24);
  background: radial-gradient(circle at center, rgba(42, 155, 174, .12), rgba(2, 8, 12, .88) 64%);
  box-shadow: inset 0 0 70px rgba(109, 231, 242, .06);
}

body[data-command-surface='main-console'] .reticle {
  animation: none;
  opacity: .48;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(109, 231, 242, .13) 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 49.9%, rgba(109, 231, 242, .13) 50%, transparent 50.1%),
    radial-gradient(circle, transparent 0 18%, rgba(109, 231, 242, .13) 18.2% 18.5%, transparent 18.7% 38%, rgba(109, 231, 242, .08) 38.2% 38.4%, transparent 38.6%);
}

body[data-command-surface='main-console'] .reticle::after { animation-duration: 6s; opacity: .2; }
body[data-command-surface='main-console'] .display-label { border-radius: 2px; background: rgba(2, 9, 13, .78); }
body[data-command-surface='main-console'] .node { border-radius: 2px; background: rgba(3, 12, 17, .86); }
body[data-command-surface='main-console'] .node-dot { animation-duration: 2.4s; }

/* Rules archive */
body[data-command-surface='rules-archive'] .space-backdrop::after { background: none; }
body[data-command-surface='rules-archive'] .rules-header { background: rgba(2, 8, 12, .94); border-bottom-color: var(--production-frame); }
body[data-command-surface='rules-archive'] .brand-mark { clip-path: polygon(20% 0, 80% 0, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0 80%, 0 20%); transform: none; }
body[data-command-surface='rules-archive'] .rules-controls { background: rgba(2, 8, 12, .93); }
body[data-command-surface='rules-archive'] .rules-metrics,
body[data-command-surface='rules-archive'] .search-field { background: rgba(4, 14, 20, .88); }
body[data-command-surface='rules-archive'] .rule-section summary { transition: color var(--command-fast) ease, background-color var(--command-fast) ease; }
body[data-command-surface='rules-archive'] .section-title { color: var(--command-ink); }
body[data-command-surface='rules-archive'] .section-body { max-width: 980px; }
body[data-command-surface='rules-archive'] .loading-state span { position: relative; overflow: hidden; background: rgba(109, 231, 242, .025); animation: none; }
body[data-command-surface='rules-archive'] .loading-state span::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(109, 231, 242, .11), transparent);
  transform: translateX(-100%);
  animation: command-skeleton 1.35s linear infinite;
}
@keyframes command-skeleton { to { transform: translateX(100%); } }

/* Staff surfaces */
body[data-command-surface='admin-console'],
body[data-command-surface='support-console'] { min-height: 100vh; background-attachment: fixed; }

body[data-command-surface='admin-console'] .topbar,
body[data-command-surface='support-console'] .topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 68px;
  padding: 10px clamp(12px, 2vw, 26px);
  border-bottom-color: var(--production-frame);
  background: rgba(2, 8, 12, .94);
  backdrop-filter: blur(16px);
}

body[data-command-surface='admin-console'] .topbar h1,
body[data-command-surface='support-console'] .topbar h1 { letter-spacing: .09em; text-transform: uppercase; }

body[data-command-surface='admin-console'] .topbar .btn,
body[data-command-surface='support-console'] .topbar .btn {
  border-color: var(--production-frame-hot);
  color: var(--command-cyan);
  background: rgba(109, 231, 242, .06);
}

body[data-command-surface='admin-console'] .layout {
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  max-width: 1640px;
  padding: 16px;
}

body[data-command-surface='admin-console'] .admin-tabs {
  position: sticky;
  top: 84px;
  display: grid;
  grid-column: 1;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--production-frame);
  background: rgba(3, 11, 16, .9);
}

body[data-command-surface='admin-console'] .admin-tabs::before {
  padding: 8px 10px 11px;
  border-bottom: 1px solid var(--production-frame);
  color: var(--command-amber);
  content: 'OPERATIONS INDEX';
  font: 700 10px Orbitron, sans-serif;
  letter-spacing: .14em;
}

body[data-command-surface='admin-console'] .admin-tab {
  width: 100%;
  min-height: 46px;
  padding: 9px 10px;
  border: 0;
  border-left: 2px solid transparent;
  text-align: left;
  background: transparent;
}

body[data-command-surface='admin-console'] .admin-tab.active {
  color: var(--command-cyan-bright);
  border-left-color: var(--command-cyan);
  background: rgba(109, 231, 242, .1);
}

body[data-command-surface='admin-console'] .admin-panel { grid-column: 2; }

body[data-command-surface='admin-console'] .panel,
body[data-command-surface='support-console'] .panel {
  border-radius: 3px;
  border-color: var(--production-frame);
  background: linear-gradient(145deg, rgba(8, 22, 30, .94), rgba(3, 10, 15, .92));
  box-shadow: inset 0 1px rgba(255, 255, 255, .03), 0 18px 42px rgba(0, 0, 0, .18);
}

body[data-command-surface='admin-console'] :where(.builder, .card, .fold, .watchdog-card, .server-tool-panel, .server-target-bar, .ticket-support-sidebar, .ticket-support-main),
body[data-command-surface='support-console'] :where(.backup-list, .backup-entry, #thread, .ticket-item, .message) {
  border-radius: 3px;
  border-color: rgba(109, 231, 242, .16);
  background-color: rgba(3, 11, 16, .58);
}

body[data-command-surface='admin-console'] .fold > summary { background: rgba(8, 25, 34, .78); }
body[data-command-surface='admin-console'] .btn.primary,
body[data-command-surface='support-console'] .btn.primary { color: #001116; border-color: var(--command-cyan); background: var(--command-cyan); font-weight: 700; }

body[data-command-surface='admin-console'] .btn.danger { color: #ffd8d4; border-color: rgba(255, 121, 112, .58); background: rgba(255, 121, 112, .12); }
body[data-command-surface='admin-console'] :where(table, .table-wrap) { border-radius: 2px; }
body[data-command-surface='admin-console'] thead { background: rgba(7, 26, 35, .96); }

body[data-command-surface='support-console'] .layout {
  grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
  gap: 16px;
  max-width: 1420px;
  padding: 16px;
}

body[data-command-surface='support-console'] .ticket-item { border-left: 2px solid transparent; }
body[data-command-surface='support-console'] .ticket-item.is-active { border-left-color: var(--command-cyan); background: rgba(109, 231, 242, .09); }
body[data-command-surface='support-console'] .message.staff.other { border-left: 2px solid var(--command-amber); }

/* Fleet point console */
body[data-command-surface='points-console'] .backdrop { opacity: .35; background: radial-gradient(circle at 50% 0%, rgba(109, 231, 242, .13), transparent 48%); }
body[data-command-surface='points-console'] .topbar { background: rgba(2, 8, 12, .94); border-bottom-color: var(--production-frame); }
body[data-command-surface='points-console'] .back-link { border-radius: 3px; border-color: var(--production-frame-hot); background: rgba(109, 231, 242, .06); }

body[data-command-surface='points-console'] .app-shell {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  width: min(1600px, calc(100% - 32px));
}

body[data-command-surface='points-console'] .builder-panel,
body[data-command-surface='points-console'] .result-panel {
  min-width: 0;
  border-radius: 3px;
  border-color: var(--production-frame);
  background: linear-gradient(145deg, rgba(8, 22, 30, .94), rgba(3, 10, 15, .92));
  box-shadow: inset 0 1px rgba(255, 255, 255, .03), 0 18px 42px rgba(0, 0, 0, .2);
}

body[data-command-surface='points-console'] .builder-panel { position: sticky; top: 84px; }
body[data-command-surface='points-console'] .block-costs { min-width: 0; }
body[data-command-surface='points-console'] .table-wrap { position: relative; max-width: 100%; overflow: auto; border: 1px solid rgba(109, 231, 242, .14); }
body[data-command-surface='points-console'] table { border-collapse: separate; border-spacing: 0; }
body[data-command-surface='points-console'] thead th { position: sticky; z-index: 3; top: 0; background: #071923; }
body[data-command-surface='points-console'] :where(th, td):first-child { position: sticky; z-index: 2; left: 0; background: #07131b; }
body[data-command-surface='points-console'] thead th:first-child { z-index: 4; background: #071923; }

/* Galactic holotable */
body[data-command-surface='galactic-map'] { background: #010609; }
body[data-command-surface='galactic-map'] .map-stage { position: fixed; inset: 0; }
body[data-command-surface='galactic-map'] #scene-container { background: radial-gradient(circle at center, #07141b, #010609 70%); }

body[data-command-surface='galactic-map'] .topbar {
  min-height: 70px;
  padding: 10px 18px;
  border-bottom-color: var(--production-frame);
  background: rgba(2, 8, 12, .9);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

body[data-command-surface='galactic-map'] .home-link {
  width: 48px;
  height: 48px;
  border: 1px solid var(--command-cyan);
  border-radius: 2px;
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
  color: var(--command-cyan-bright);
  background: rgba(109, 231, 242, .08);
}

body[data-command-surface='galactic-map'] .topbar-title strong { color: var(--command-cyan-bright); letter-spacing: .1em; }
body[data-command-surface='galactic-map'] .topbar-title span { color: var(--command-amber); text-transform: uppercase; letter-spacing: .08em; }
body[data-command-surface='galactic-map'] .target-search input { border-radius: 2px 0 0 2px; background: rgba(2, 10, 14, .88); }
body[data-command-surface='galactic-map'] .target-search button { border-radius: 0 2px 2px 0; color: #001116; background: var(--command-cyan); }

body[data-command-surface='galactic-map'] .panel {
  border-radius: 3px;
  border-color: var(--production-frame);
  background: linear-gradient(145deg, rgba(7, 20, 27, .95), rgba(2, 9, 13, .93));
  box-shadow: inset 0 1px rgba(255, 255, 255, .03), 0 20px 55px rgba(0, 0, 0, .3);
  backdrop-filter: blur(14px);
}

body[data-command-surface='galactic-map'] .panel::before {
  position: absolute;
  z-index: 4;
  inset: 7px auto auto 7px;
  width: 26px;
  height: 26px;
  border-top: 1px solid var(--command-cyan);
  border-left: 1px solid var(--command-cyan);
  pointer-events: none;
  content: '';
  opacity: .5;
}

body[data-command-surface='galactic-map'] .tactical-panel { width: 360px; }
body[data-command-surface='galactic-map'] .detail-panel { width: 410px; }
body[data-command-surface='galactic-map'] .panel-heading { background: rgba(6, 22, 29, .72); }
body[data-command-surface='galactic-map'] .eyebrow { color: var(--command-amber); }
body[data-command-surface='galactic-map'] .workspace-tab,
body[data-command-surface='galactic-map'] .info-tab { border-radius: 0; }
body[data-command-surface='galactic-map'] .workspace-tab.active,
body[data-command-surface='galactic-map'] .info-tab.active { color: var(--command-cyan-bright); background: rgba(109, 231, 242, .07); }
body[data-command-surface='galactic-map'] .intel-banner { border-radius: 2px; background: rgba(44, 97, 67, .15); }
body[data-command-surface='galactic-map'] .planet-row.selected { box-shadow: inset 2px 0 var(--command-cyan); }

.map-instrument-rail {
  position: fixed;
  z-index: 15;
  top: 84px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 830px);
  padding: 7px 12px;
  border: 1px solid rgba(109, 231, 242, .2);
  color: var(--command-muted);
  background: rgba(2, 9, 13, .7);
  font: 600 10px Orbitron, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateX(-50%);
  pointer-events: none;
}

.map-instrument-rail strong { color: var(--command-cyan-bright); font-weight: 600; }
.map-instrument-divider { width: 1px; height: 13px; background: rgba(109, 231, 242, .22); }

.map-reticle {
  position: fixed;
  z-index: 10;
  top: 50%;
  left: 50%;
  width: clamp(190px, 22vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(109, 231, 242, .08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map-reticle::before,
.map-reticle::after { position: absolute; content: ''; background: rgba(109, 231, 242, .12); }
.map-reticle::before { top: 50%; left: -18px; right: -18px; height: 1px; }
.map-reticle::after { top: -18px; bottom: -18px; left: 50%; width: 1px; }

.map-legend {
  position: fixed;
  z-index: 15;
  right: 438px;
  bottom: 18px;
  display: flex;
  gap: 12px;
  padding: 7px 10px;
  border-left: 1px solid var(--command-amber);
  color: var(--command-muted);
  background: rgba(2, 9, 13, .66);
  font-size: 11px;
  pointer-events: none;
}

.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--command-cyan); box-shadow: 0 0 8px rgba(109, 231, 242, .4); }
.map-legend span:nth-child(2) i { border-radius: 0; background: var(--command-amber); }
.map-legend span:nth-child(3) i { width: 16px; height: 2px; border-radius: 0; background: #75c9f1; }

.map-loading {
  position: fixed;
  z-index: 12;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
  padding: 20px;
  color: var(--command-muted);
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity var(--command-spatial) var(--command-ease-enter), visibility var(--command-spatial) step-end;
}

.map-loading[hidden] { display: grid !important; opacity: 0; visibility: hidden; }
.map-loading strong { color: var(--command-cyan-bright); font: 600 13px Orbitron, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.map-loading-indicator { width: 120px; height: 2px; overflow: hidden; background: rgba(109, 231, 242, .14); }
.map-loading-indicator::after { display: block; width: 45%; height: 100%; content: ''; background: var(--command-cyan); animation: map-uplink 1.4s linear infinite; }
.map-loading.error strong { color: var(--command-red); }
.map-loading.error .map-loading-indicator::after { background: var(--command-red); animation: none; }
@keyframes map-uplink { from { transform: translateX(-110%); } to { transform: translateX(330%); } }

@media (max-width: 1180px) {
  body[data-command-surface='galactic-map'] .tactical-panel { width: 310px; }
  body[data-command-surface='galactic-map'] .detail-panel { width: 350px; }
  .map-instrument-rail { max-width: calc(100vw - 710px); }
  .map-legend { right: 378px; }
}

@media (max-width: 960px) {
  body[data-command-surface='main-console'] .console-main { grid-template-columns: 1fr; }
  body[data-command-surface='main-console'] .display-panel .display { display: block; min-height: 220px; }
  body[data-command-surface='main-console'] .display-panel .reticle,
  body[data-command-surface='main-console'] .display-panel .display-label { display: block; }
  body[data-command-surface='main-console'] .display-panel .node { display: none; }
  body[data-command-surface='main-console'] .display-panel .mobile-nav { margin-top: 10px; }

  body[data-command-surface='admin-console'] .layout { grid-template-columns: 1fr; padding: 10px; }
  body[data-command-surface='admin-console'] .admin-tabs {
    position: static;
    grid-column: 1;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    overflow-x: auto;
  }
  body[data-command-surface='admin-console'] .admin-tabs::before { display: none; }
  body[data-command-surface='admin-console'] .admin-tab { min-width: 130px; text-align: center; border-left: 0; border-bottom: 2px solid transparent; }
  body[data-command-surface='admin-console'] .admin-tab.active { border-bottom-color: var(--command-cyan); }
  body[data-command-surface='admin-console'] .admin-panel { grid-column: 1; }

  body[data-command-surface='support-console'] .layout,
  body[data-command-surface='points-console'] .app-shell { grid-template-columns: 1fr; }
  body[data-command-surface='points-console'] .builder-panel { position: static; }

  .map-instrument-rail { top: 70px; max-width: calc(100vw - 24px); white-space: nowrap; }
  .map-instrument-rail span:nth-of-type(2), .map-instrument-rail .map-instrument-divider:nth-of-type(2) { display: none; }
  .map-reticle { top: 45%; width: min(56vw, 280px); }
  .map-legend { right: auto; bottom: 74px; left: 50%; transform: translateX(-50%); white-space: nowrap; }

  body[data-command-surface='galactic-map'] .panel { border-radius: 8px 8px 0 0; }
  body[data-command-surface='galactic-map'] .mobile-nav { border-radius: 3px; background: rgba(2, 10, 14, .94); }
}

@media (max-width: 640px) {
  body[data-command-surface='main-console'] .console-main { padding: 8px; }
  body[data-command-surface='main-console'] .console-header { min-height: 64px; }
  body[data-command-surface='main-console'] .panel { border-radius: 3px; }
  body[data-command-surface='main-console'] .display-panel .display { min-height: 180px; margin-inline: 8px; }
  body[data-command-surface='main-console'] .display-panel .mobile-nav { grid-template-columns: repeat(2, 1fr); padding: 8px; }

  body[data-command-surface='rules-archive'] .rules-controls { backdrop-filter: none; }
  body[data-command-surface='rules-archive'] .section-body { padding-left: 34px; }

  body[data-command-surface='points-console'] .app-shell { width: calc(100% - 16px); }
  body[data-command-surface='points-console'] .builder-panel,
  body[data-command-surface='points-console'] .result-panel { border-radius: 3px; }
  body[data-command-surface='points-console'] .table-wrap::after {
    position: sticky;
    right: 8px;
    bottom: 8px;
    float: right;
    padding: 3px 7px;
    border: 1px solid var(--production-frame);
    color: var(--command-muted);
    background: rgba(2, 9, 13, .92);
    content: 'SCROLL ↔';
    font-size: 10px;
    letter-spacing: .08em;
    pointer-events: none;
  }

  .map-instrument-rail { gap: 8px; font-size: 9px; }
  .map-instrument-rail .map-instrument-divider,
  .map-instrument-rail span:nth-of-type(3) { display: none; }
  .map-legend { gap: 8px; font-size: 10px; }
}

@media (hover: none), (pointer: coarse) {
  body[data-command-surface] :where(button, a):hover { transform: none !important; }
}

@media (pointer: coarse), (max-width: 960px) {
  body[data-command-surface] :where(button, input:not([type='hidden']), select, textarea, summary, a[href]) {
    min-width: 44px;
    min-height: 44px;
  }

  body[data-command-surface] a[href] {
    display: inline-flex;
    align-items: center;
  }
}

body[data-command-surface] dialog { overscroll-behavior: contain; }

@media (prefers-reduced-motion: reduce) {
  body[data-command-surface='main-console'] .nebula,
  body[data-command-surface='main-console'] .reticle::after,
  body[data-command-surface='main-console'] .node-dot,
  .map-loading-indicator::after { animation: none !important; }
  body[data-command-surface='rules-archive'] .loading-state span::after { animation: none !important; }
}
