/* Existing Tech cards keep their artwork, tier styling and typography.
   The additional column holds each card's upgrade action. */
#carrierInfoPanel .carrierSystemLevelsV62770 .carrierSystemTileV62771.systemsUpgradeCard {
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
}
#carrierInfoPanel .carrierSystemTileV62771.systemsUpgradeCard[data-tech-tier]::after {
  content: none !important;
  display: none !important;
}
#carrierInfoPanel .systemsUpgradeCard > .carrierTechIconV62790.carrierOfficialIconV62795 {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#carrierInfoPanel .systemsUpgradeCard > .carrierTechIconV62790.carrierOfficialIconV62795::before,
#carrierInfoPanel .systemsUpgradeCard > .carrierTechIconV62790.carrierOfficialIconV62795::after {
  content: none !important;
  display: none !important;
}
#carrierInfoPanel .systemsUpgradeCard > div { min-width: 0; }
#carrierInfoPanel .systemsUpgradeCard .menuAuditLabelV62798 {
  max-width: 100%;
  flex-wrap: wrap;
}
#carrierInfoPanel .systemsUpgradeCard .menuAuditLabelV62798 > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#carrierInfoPanel .systemsUpgradeCard > .systemsUpgradeOpen {
  justify-self: end;
  align-self: center;
  min-height: 44px !important;
  max-width: 100%;
  padding: 8px 10px;
  font: 800 10px/1.4 system-ui, sans-serif !important;
  letter-spacing: .035em !important;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}
#carrierInfoPanel .systemsUpgradeCard > .systemsUpgradeOpen:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: -3px;
}

#carrierInfoPanel #systemUpgradeDialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(380px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: 85vh;
  max-height: 85dvh;
  overflow: auto;
  overscroll-behavior: contain;
  margin: auto;
  padding: 16px;
  border: 1px solid rgba(119, 230, 170, .3) !important;
  border-radius: 8px !important;
  background: #061821 !important;
  color: #edf9ff !important;
  font: 500 11px/1.4 system-ui, sans-serif;
  text-align: left;
}
#systemUpgradeDialog:not([open]) { display: none !important; }
#systemUpgradeDialog::backdrop { background: rgba(0, 7, 13, .76); }
#carrierInfoPanel #systemUpgradeDialog > header {
  display: flex;
  align-items: center;
  gap: 4px;
}
#carrierInfoPanel #systemUpgradeDialog > header > div {
  flex: 1;
  min-width: 0;
}
#carrierInfoPanel #systemUpgradeDialog > header small {
  color: #a9c1ce !important;
  font: 750 9px/1.4 system-ui, sans-serif !important;
}
#carrierInfoPanel #systemUpgradeTitle {
  margin: 4px 0 0;
  color: #edf9ff !important;
  font: 800 14px/1.35 system-ui, sans-serif !important;
  overflow-wrap: anywhere;
}
#carrierInfoPanel #systemUpgradeDialog .systemUpgradePreview {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
#carrierInfoPanel #systemUpgradeIcon {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#carrierInfoPanel #systemUpgradeDialog .systemUpgradePreview > div { min-width: 0; }
#carrierInfoPanel #systemUpgradeName {
  display: block;
  color: #edf9ff;
  font: 800 14px/1.4 system-ui, sans-serif !important;
  overflow-wrap: anywhere;
}
#carrierInfoPanel #systemUpgradeScope {
  display: block;
  margin-top: 4px;
  color: #a9c1ce;
  font: 750 10px/1.4 system-ui, sans-serif !important;
  overflow-wrap: anywhere;
}
#carrierInfoPanel #systemUpgradeDialog .systemUpgradeQuote,
#carrierInfoPanel #systemUpgradeDialog .systemUpgradeResources {
  margin: 12px 0;
  padding: 0 12px;
  border: 1px solid rgba(119, 230, 170, .3);
  border-radius: 8px;
  background: rgba(9, 29, 41, .7);
}
#carrierInfoPanel #systemUpgradeDialog .systemUpgradeQuote > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
#carrierInfoPanel #systemUpgradeDialog .systemUpgradeQuote > div + div,
#carrierInfoPanel #systemUpgradeDialog .systemUpgradeResource + .systemUpgradeResource {
  border-top: 1px solid rgba(126, 191, 215, .16);
}
#carrierInfoPanel #systemUpgradeDialog .systemUpgradeQuote dt {
  min-width: 0;
  color: #a9c1ce;
  font: 750 10px/1.4 system-ui, sans-serif !important;
  overflow-wrap: anywhere;
}
#carrierInfoPanel #systemUpgradeDialog .systemUpgradeQuote dd {
  min-width: 0;
  margin: 0;
  color: #edf9ff;
  font: 800 12px/1.4 system-ui, sans-serif !important;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}
#carrierInfoPanel #systemUpgradeDialog .systemUpgradeResource {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 0;
}
#carrierInfoPanel #systemUpgradeDialog .systemUpgradeResource > dt {
  min-width: 0;
  color: #a9c1ce;
  font: 750 10px/1.4 system-ui, sans-serif !important;
  overflow-wrap: anywhere;
}
#carrierInfoPanel #systemUpgradeDialog .systemUpgradeResource > dd {
  display: grid;
  grid-column: 2;
  gap: 4px;
  min-width: 0;
  margin: 0;
  text-align: right;
}
#carrierInfoPanel #systemUpgradeDialog .systemUpgradeResource > dd > b.required {
  display: block;
  min-width: 0;
  color: #edf9ff;
  font: 800 12px/1.4 system-ui, sans-serif !important;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}
#carrierInfoPanel #systemUpgradeDialog .systemUpgradeResource > dd > small.owned {
  display: block;
  min-width: 0;
  color: #a9c1ce;
  font: 500 10px/1.4 system-ui, sans-serif !important;
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}
#carrierInfoPanel #systemUpgradeMessage {
  margin: 12px 0;
  color: #ffd083 !important;
  font: 750 11px/1.45 system-ui, sans-serif !important;
  overflow-wrap: anywhere;
}
#carrierInfoPanel #systemUpgradeMessage:empty,
#carrierInfoPanel #systemUpgradeDialog [hidden] { display: none !important; }
#carrierInfoPanel #systemUpgradeDialog > footer { margin-top: 16px; }
#carrierInfoPanel #systemUpgradeDialog > footer > button,
#carrierInfoPanel #systemUpgradeDialog > header > [data-system-upgrade-close] {
  min-height: 44px !important;
  padding: 8px 10px;
  font: 800 10px/1.4 system-ui, sans-serif !important;
}
#carrierInfoPanel #systemUpgradeDialog > header > [data-system-upgrade-close] {
  flex: 0 0 44px;
  width: 44px;
  padding: 0;
  font: 400 24px/1 system-ui, sans-serif !important;
}
#carrierInfoPanel #systemUpgradeConfirm { flex: 1 1 180px; }
#carrierInfoPanel #systemUpgradeDialog button:disabled {
  opacity: .52;
  cursor: not-allowed;
}
#carrierInfoPanel #systemUpgradeDialog[aria-busy="true"],
#carrierInfoPanel #systemUpgradeDialog[aria-busy="true"] button:disabled { cursor: wait; }
#carrierInfoPanel #systemUpgradeDialog button:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: -3px;
}

/* Completed recipes use the existing quiet status colors within the owned dialog. */
#carrierInfoPanel .systemUpgradeResource[data-affordable="false"] .required{color:#f3b9a9}
#carrierInfoPanel .systemUpgradeResource[data-affordable="true"] .owned{color:#a7d9c5}
#carrierInfoPanel .systemUpgradeResource .required{overflow-wrap:anywhere}
