body .station .station-body:has(.hangar) {
  padding: 18px 28px 28px;
}
.hangar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.hangar-heading h2 {
  margin: 0;
  font-size: 18px;
}
.hangar-heading > span {
  color: #829aa9;
  font-size: 12px;
}
.hangar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.hangar-ship-card {
  min-width: 0;
  border: 1px solid #2c4555;
  border-radius: 10px;
  background: linear-gradient(135deg, #101f2d, #0a1621);
  padding: 20px 20px 0;
  position: relative;
}
.hangar-ship-card.is-active {
  border-color: #6aada1;
  box-shadow: inset 0 2px #8bcdbb;
}
.hangar-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}
.hangar-card-heading > div {
  min-width: 0;
}
.hangar-card-heading h3 {
  font-size: 20px;
  margin: 0 0 8px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.hangar-card-heading p {
  margin: 0;
  color: #91a9b9;
  font-size: 12px;
}
.hangar-badge {
  flex-shrink: 0;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 6px 8px;
  border: 1px solid #344b5b;
  color: #9cb3c2;
  border-radius: 4px;
}
.hangar-badge.active {
  color: #b7efdf;
  background: #15352f;
  border-color: #3c7569;
}
.hangar-card-body {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  margin: 10px -12px 0;
  padding: 12px;
}
.hangar-ship-art {
  position: absolute;
  width: 52%;
  height: 175px;
  object-fit: contain;
  right: 1%;
  top: 3px;
  transform: rotate(24deg);
  filter: drop-shadow(0 12px 14px #0009);
  pointer-events: none;
}
.hangar-card-stats {
  position: relative;
  z-index: 1;
  width: 48%;
}
.hangar-quality {
  color: #c1d6e1;
  font-size: 11px;
}
.hangar-card-stats dl {
  margin: 14px 0 8px;
}
.hangar-card-stats dl > div {
  margin: 0 0 12px;
}
.hangar-card-stats dt {
  color: #7e98a9;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.hangar-card-stats dd {
  margin: 0;
  font-size: 12px;
  color: #e2edf3;
}
.hangar-card-stats meter {
  width: 100%;
  height: 6px;
  display: block;
  border: none;
  background: #253744;
}
.hangar-card-stats meter::-webkit-meter-bar {
  background: #253744;
  border: none;
}
.hangar-card-stats meter::-webkit-meter-optimum-value {
  background: #83c6b5;
}
.hangar-card-stats meter.damaged::-webkit-meter-optimum-value {
  background: #d5a165;
}
.hangar-package-volume {
  display: block;
  margin-top: 9px;
  color: #7e98a9;
  font-size: 10px;
}
.hangar-card-station {
  color: #9fb7c5;
  font-size: 11px;
  margin: 8px 0 10px;
}
.hangar-loadout {
  font-size: 11px;
  color: #90aab9;
  margin-bottom: 14px;
}
.hangar-loadout summary {
  cursor: pointer;
  padding: 4px 0;
}
.hangar-loadout ul {
  line-height: 1.7;
  padding-left: 17px;
  margin: 8px 0;
}
.hangar-card-actions {
  border-top: 1px solid #263f4e;
  display: flex;
  gap: 10px;
  padding: 13px 0;
}
.hangar-action {
  position: relative;
  display: inline-flex;
  outline-offset: 3px;
}
.hangar-action button {
  display: grid;
  place-items: center;
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 5px;
  color: #b3ccd8;
  background: #132735;
  border: 1px solid #35515f;
}
.hangar-action button:hover:not(:disabled),
.hangar-action button:focus-visible {
  color: #d8fff3;
  border-color: #8ac8b9;
  background: #203f45;
}
.hangar-action button:disabled {
  opacity: 0.36;
  pointer-events: none;
}
.hangar-action::after {
  content: attr(data-help);
  position: absolute;
  z-index: 20;
  left: 0;
  bottom: calc(100% + 9px);
  width: max-content;
  max-width: 220px;
  padding: 9px 11px;
  border: 1px solid #496371;
  border-radius: 5px;
  color: #dfedf3;
  background: #07121b;
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 4px 16px #0009;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.hangar-action:hover::after,
.hangar-action:focus::after,
.hangar-action:focus-within::after {
  opacity: 1;
  visibility: visible;
}
.hangar .market-detail {
  max-width: 680px;
}
@media (min-width: 2100px) {
  .hangar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1199px) {
  .hangar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 749px) {
  body .station .station-body:has(.hangar) {
    padding: 16px;
  }
  .hangar-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hangar-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
}
