/* Orbit pilot card reference lock: centre the ship and controls as one balanced group. */
#spaceScreen.player-orbit-screen.active .player-bottom-hud.command-hud.space-combat-hud > .ship-panel.ship-display-panel-action {
  grid-template-columns: minmax(150px, 0.43fr) minmax(200px, 0.57fr) !important;
  grid-template-rows: 46px 52px 30px !important;
  align-content: center !important;
  column-gap: 14px !important;
  row-gap: 8px !important;
  padding: 9px 18px 8px !important;
  border-color: rgba(33, 219, 255, 0.92) !important;
  border-radius: 9px !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action::before,
#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action::after,
#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .ship-card-main::before,
#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .ship-mini-progress::before,
#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .ship-mini-progress::after {
  content: none !important;
  display: none !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action > .ship-card-main {
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action > .ship-hud-info-column {
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  display: grid !important;
  grid-template-rows: 46px 52px !important;
  gap: 6px !important;
  padding: 0 !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .ship-mini-progress {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  grid-template-rows: 22px 9px !important;
  column-gap: 10px !important;
  row-gap: 5px !important;
  align-content: center !important;
  align-items: center !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .level-badge {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  box-sizing: border-box !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  width: 52px !important;
  height: 44px !important;
  min-width: 52px !important;
  min-height: 44px !important;
  padding: 4px 3px !important;
  border: 1px solid rgba(42, 223, 255, 0.95) !important;
  border-radius: 7px !important;
  background: linear-gradient(180deg, rgba(5, 23, 42, 0.94), rgba(1, 10, 24, 0.96)) !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .level-badge span {
  color: #35dfff !important;
  font-size: 8px !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .level-badge strong {
  font-size: 24px !important;
  line-height: 0.92 !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .xp-row {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  color: #f4fbff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .xp-row span:first-child {
  color: #27d9ff !important;
  font-size: 13px !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .xp-row span:last-child {
  color: #f4fbff !important;
  font-size: 10px !important;
  text-align: right !important;
  white-space: nowrap !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .xp-bar {
  grid-column: 2 !important;
  grid-row: 2 !important;
  width: 100% !important;
  height: 7px !important;
  min-height: 7px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(8, 45, 67, 0.72) !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .xp-fill {
  height: 100% !important;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #12c3e8, #56edff) !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .hud-cargo-summary {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(76, 157, 214, 0.48) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, rgba(3, 19, 35, 0.9), rgba(0, 10, 23, 0.92)) !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .hud-cargo-icon {
  width: 24px !important;
  height: 24px !important;
  justify-self: center !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .hud-cargo-copy {
  display: grid !important;
  grid-template-rows: 11px 17px 4px !important;
  gap: 2px !important;
  justify-items: start !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .hud-cargo-copy > span {
  color: #35dfff !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .hud-cargo-copy > strong {
  color: #f4fbff !important;
  font-size: 17px !important;
  justify-self: start !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .hud-cargo-meter {
  width: 100% !important;
  height: 4px !important;
  border-radius: 999px !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .hud-cargo-summary em {
  display: none !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action > .ship-action-strip.ship-hud-action-row {
  grid-column: 2 !important;
  grid-row: 3 !important;
  width: 100% !important;
  height: 30px !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action #objectEngageBtn {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  height: 28px !important;
  min-height: 28px !important;
  border-radius: 5px !important;
  font-size: 16px !important;
  letter-spacing: 0.12em !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action > .ship-hud-action-row > #objectActionPanel,
#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .hud-engage-panel,
#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .hud-engage-panel:not(.visible),
#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .hud-engage-panel.visible,
#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action .hud-engage-panel .engage-action {
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action #hudShipImage {
  transform: translateY(-8px) scale(1.14) !important;
}

#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action > .ship-hud-info-column,
#spaceScreen.player-orbit-screen.active .ship-panel.ship-display-panel-action > .ship-hud-action-row {
  transform: translateX(-8px) !important;
}
