@media (max-width: 1260px) {
  :root { --context-width: 250px; --rail-width: 190px; }
  .command-header { grid-template-columns: var(--rail-width) 150px 1fr 124px; }
  .resource-readout { min-width: 74px; padding: 0 9px; }.resource-readout small { display: none; }
  .atlas-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .crew-grid, .arsenal-grid, .research-grid, .faction-grid, .codex-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  :root { --context-width: 0px; }
  .context-rail { display: none; }
  .command-main { padding-right: 22px; padding-left: 22px; }
  .split-view { grid-template-columns: 1fr; }
  .atlas-field { min-height: auto; }.atlas-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  :root { --rail-width: 0px; --header-height: 58px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .sovereign-app { padding-right: 0; padding-left: 0; }
  .command-header { grid-template-columns: 1fr auto; height: var(--header-height); }.brand-command { padding: 0 11px; border-right: 0; }.brand-command b { font-size: 14px; }.brand-command small, .cycle-readout, .header-command { display: none; }.resource-deck { padding-right: 7px; }.resource-readout { min-width: 48px; padding: 0 6px; border: 0; }.resource-readout i { font-size: 9px; }.resource-readout b { font-size: 10px; }
  .command-rail { display: none; }.command-main { min-height: calc(100vh - var(--header-height)); padding: 18px 13px 28px; }.view-masthead { display: block; margin-bottom: 18px; }.view-masthead h1 { font-size: 31px; }.view-masthead > p { margin-top: 7px; text-align: left; }
  .mobile-command-nav { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(8,minmax(64px,1fr)); min-height: calc(62px + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom); overflow-x: auto; border-top: 1px solid var(--line); background: rgba(3,16,23,.95); backdrop-filter: blur(16px); scrollbar-width: none; }.mobile-command-nav::-webkit-scrollbar { display:none; }.mobile-command-nav button { display: grid; gap: 2px; min-width: 0; min-height: 58px; place-content: center; place-items: center; background: transparent; color: var(--foam-600); }.mobile-command-nav button i { font: 16px Georgia,serif; font-style: normal; }.mobile-command-nav button span { max-width: 58px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.mobile-command-nav button.is-active { color: var(--sonar-400); }
  .atlas-field { padding: 12px; }.atlas-grid { grid-template-columns: 1fr; }.region-command { min-height: 96px; }.three-column, .two-column { grid-template-columns: 1fr; }.crew-grid, .arsenal-grid, .research-grid, .faction-grid, .codex-grid { grid-template-columns: 1fr; }.combat-console { grid-template-columns: 1fr; }.combat-opponents { gap: 8px; }.combatant-large { width: 120px; }.combatant-large > i { width: 58px; height: 58px; }.operation-hero { min-height: 390px; padding: 18px; }.operation-hero::after { opacity: .55; right: -85px; }.stage-track { grid-template-columns: repeat(2,1fr); }.choice-command { grid-template-columns: 24px 1fr; }.choice-command em { grid-column: 2; text-align: left; }.mission-card { grid-template-columns: 38px minmax(0,1fr); }.mission-card > i { width: 36px; height: 36px; }.mission-card > em { grid-column: 2; justify-items: start; }
  .toast-region { right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); }.dialog-body { padding: 22px 16px; }
  .voyage-hud { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 11px 12px 28px; }.voyage-route strong { font-size: 17px; }.voyage-distance { grid-column: 1 / -1; grid-row: 2; }.voyage-cargo { display: none; }.voyage-system-actions { grid-column: 2; grid-row: 1; }.voyage-system-actions #voyage-retreat { font-size: 0; }.voyage-system-actions #voyage-retreat::after { content: "SALIR"; font-size: 8px; }.voyage-health { top: 92px; left: 12px; grid-template-columns: 78px 26px; }.voyage-health > span { display: none; }.voyage-combo { top: 92px; right: 12px; }.voyage-keyboard-hint { display: none; }.voyage-touch-controls { display: block; }.voyage-callout { top: 43%; }
}
@media (hover: none) and (pointer: coarse) { .voyage-keyboard-hint { display: none; }.voyage-touch-controls { display: block; } }
