/* Battle, hangar, locked sections and persistent navigation. */
.command-context-strip {
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 8px 12px;
  border-left: 2px solid var(--command-gold);
  background: rgba(5, 18, 28, 0.72);
}

.command-context-strip > span {
  display: grid;
  min-width: 0;
}

.command-context-strip small {
  color: #829fae;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-context-strip strong {
  overflow: hidden;
  color: #f2fbff;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-text-button {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: var(--command-cyan);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.command-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.command-mode-card {
  align-content: start;
}

.command-mode-card p,
.command-training-card p,
.command-locked-page p {
  margin: 0;
  color: #9fc0cf;
  font-size: 0.78rem;
  line-height: 1.42;
  font-weight: 750;
}

.command-mode-card .command-primary {
  align-self: end;
  margin-top: auto;
}

.command-mode-card.is-locked {
  opacity: 0.56;
  border-color: rgba(126, 143, 154, 0.34);
  filter: saturate(0.45);
}

.command-training-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
}

.command-training-card > span:nth-child(2) {
  align-content: center;
  gap: 3px;
}

.command-training-actions {
  align-items: flex-end;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
}

.command-training-actions em {
  color: var(--command-gold);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.command-hangar-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.25fr);
  gap: 14px;
  align-items: start;
}

.command-hangar-active {
  align-content: start;
}

.command-saved-decks {
  align-content: start;
}

.command-icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid rgba(85, 214, 255, 0.42);
  border-radius: 3px;
  color: var(--command-cyan-soft);
  background: rgba(3, 21, 34, 0.88);
  font-size: 1rem;
  font-weight: 900;
}

.command-icon-button.is-danger {
  border-color: rgba(255, 101, 94, 0.42);
  color: #ffaca7;
}

.command-icon-button:hover,
.command-icon-button:focus-visible {
  border-color: #d9f8ff;
  color: #fff;
}

.command-deck-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.command-deck-row {
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(85, 214, 255, 0.22);
  background: rgba(2, 12, 21, 0.64);
}

.command-deck-row.is-active {
  border-color: rgba(126, 229, 142, 0.52);
  box-shadow: inset 3px 0 0 rgba(126, 229, 142, 0.74);
}

.command-deck-row-main {
  gap: 9px;
  min-width: 0;
}

.command-deck-row-main .command-deck-mark {
  width: 40px;
  height: 44px;
  font-size: 0.9rem;
}

.command-deck-row-main strong {
  overflow-wrap: anywhere;
  color: #edfaff;
  font-size: 0.82rem;
}

.command-deck-row-main small {
  margin-top: 2px;
  color: #7f9eac;
  font-size: 0.66rem;
  font-weight: 750;
}

.command-deck-row-actions {
  flex: 0 0 auto;
  gap: 5px;
}

.command-deck-row-actions > em {
  color: var(--command-green);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.command-locked-page {
  min-height: 350px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.command-auth-panel {
  width: min(480px, 100%);
}

.command-auth-panel .lobby-account {
  width: 100%;
}

.command-dock {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(820px, calc(100% - 28px));
  min-height: 68px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid rgba(85, 214, 255, 0.58);
  border-radius: 4px;
  background: rgba(2, 10, 17, 0.96);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.62), 0 0 22px rgba(85, 214, 255, 0.14);
  transform: translateX(-50%);
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.command-dock button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 52px;
  padding: 5px 4px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
}

.command-dock button > span {
  display: grid;
  place-items: center;
  color: #7095a6;
  font-size: 1.05rem;
  line-height: 1;
}

.command-dock button > strong {
  color: #83a8b8;
  font-size: 0.63rem;
  text-transform: uppercase;
}

.command-dock button.is-active {
  border-color: rgba(85, 214, 255, 0.42);
  background: rgba(9, 53, 76, 0.72);
  box-shadow: inset 0 0 16px rgba(85, 214, 255, 0.1);
}

.command-dock button.is-active > span,
.command-dock button.is-active > strong {
  color: #dff9ff;
}

.command-dock button:hover,
.command-dock button:focus-visible {
  border-color: rgba(85, 214, 255, 0.7);
}

.command-brand:focus-visible,
.command-player:focus-visible,
.command-text-button:focus-visible,
.command-icon-button:focus-visible,
.command-primary:focus-visible,
.command-secondary:focus-visible,
.command-quick-action:focus-visible,
.command-dock button:focus-visible {
  outline: 2px solid #d5f8ff;
  outline-offset: 2px;
}

.is-command-shell .lobby-mode-setup-screen {
  width: 100%;
}

.is-command-shell .lobby-mode-setup-header {
  margin-bottom: 4px;
}

.is-command-shell .lobby-online-status {
  max-width: 100%;
}

.lobby-compact-loadout {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(85, 214, 255, 0.44);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(7, 31, 48, 0.94), rgba(2, 10, 18, 0.96));
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.lobby-compact-loadout-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 54px;
  color: var(--command-cyan);
  background: rgba(3, 20, 33, 0.88);
  font-size: 1.35rem;
  clip-path: polygon(50% 0, 92% 24%, 92% 76%, 50% 100%, 8% 76%, 8% 24%);
}

.lobby-compact-loadout-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lobby-compact-loadout-copy > small {
  color: #84b5c9;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lobby-compact-loadout-copy strong,
.lobby-compact-loadout-copy select {
  color: #effaff;
  font-size: 0.92rem;
  font-weight: 900;
}

.lobby-compact-loadout-copy label {
  min-width: 0;
}

.lobby-compact-loadout-copy select {
  width: min(460px, 100%);
  min-height: 44px;
  padding: 8px 34px 8px 10px;
  border: 1px solid rgba(85, 214, 255, 0.44);
  border-radius: 3px;
  background: #061725;
}

.lobby-compact-loadout-copy em {
  color: #89adbc;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 750;
}

.lobby-compact-loadout-action {
  min-height: 44px;
  white-space: nowrap;
}
