/* AIRSPACE STANDOFF: Stores Management System (SMS) with Obsidian Glass */

.pylon-bay,
.pylon-rack-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.target-solution-box {
  border-radius: var(--radius-card);
  padding: 7px 9px;
  font-family: var(--font-untitled-sans);
  flex-shrink: 0;
  box-shadow: var(--glass-3d-card-shadow);
}

.target-solution-box.no-target {
  background: var(--glass-3d-well-bg);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  box-shadow: var(--glass-3d-well-shadow);
  color: var(--color-fog-veil);
  font-size: 0.58rem;
  text-align: center;
}

.target-solution-box.active-target {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.22) 0%, rgba(4, 10, 28, 0.75) 100%);
  border: 1px solid var(--theme-primary);
  border-top: 1px solid var(--theme-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 14px var(--theme-primary-dim);
}

.tsb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-pure-white);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 3px;
  margin-bottom: 3px;
}

.tsb-dist {
  color: var(--theme-accent);
  font-family: var(--font-dotdigital);
  font-weight: 700;
  text-shadow: 0 0 8px var(--theme-accent-glow);
}

.tsb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 4px;
  font-size: 0.60rem;
  color: var(--color-moon-mist);
}

.tsb-grid.hidden,
.tsb-empty.hidden {
  display: none;
}

.tsb-grid b {
  color: var(--color-pure-white);
  font-family: var(--font-dotdigital);
  font-weight: 700;
}

.autocannon-status-card {
  background: var(--glass-3d-card-bg);
  border: 1px solid var(--glass-3d-card-border);
  border-top: 1px solid var(--liquid-glass-border-top);
  border-radius: var(--radius-card);
  padding: 6px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
  box-shadow: var(--glass-3d-card-shadow);
}

.autocannon-status-card .pylon-top-row span#gun-ui-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  display: inline-block;
}

.autocannon-auto-badge {
  display: flex;
  justify-content: space-between;
  font-size: 0.56rem;
  font-family: var(--font-dotdigital);
  color: var(--color-moon-mist);
}

.armed-indicator {
  color: var(--stat-tier-2);
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 245, 160, 0.5);
}

.pylon-item-card {
  background: var(--glass-3d-card-bg);
  border: 1px solid var(--glass-3d-card-border);
  border-top: 1px solid var(--liquid-glass-border-top);
  border-radius: var(--radius-card);
  padding: 6px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.14s ease;
  box-shadow: var(--glass-3d-card-shadow);
}

.pylon-item-card.empty,
.pylon-item-card.depleted-rack,
.mob-compact-pylon.depleted-rack {
  opacity: 0.35;
}

.pylon-station-tag {
  font-size: 0.52rem;
  font-family: var(--font-dotdigital);
  font-weight: 700;
  padding: 2px 5px;
  border-radius: var(--radius-badge);
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.station-internal-tag {
  background: rgba(0, 245, 160, 0.22);
  border: 1px solid rgba(0, 245, 160, 0.5);
  color: var(--stat-tier-2);
}

.station-external-tag {
  background: rgba(2, 132, 199, 0.28);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: var(--theme-accent);
}

.station-centerline-tag {
  background: rgba(251, 191, 36, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

.pylon-top-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.pylon-name {
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.pylon-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.60rem;
  color: var(--color-moon-mist);
  width: 100%;
}

.pylon-ammo-counter {
  color: var(--stat-tier-2);
  font-family: var(--font-dotdigital);
  font-size: 0.64rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pylon-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.58rem;
  font-family: var(--font-dotdigital);
  color: var(--color-moon-mist);
  gap: 4px;
}

.pk-value-tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.pk-progress-bar-bg {
  height: 5px;
  background: var(--glass-3d-well-bg);
  border: 1px solid var(--glass-3d-well-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-3d-well-shadow);
  overflow: hidden;
}

.pk-progress-fill {
  height: 100%;
  background: var(--theme-accent);
  box-shadow: 0 0 8px var(--theme-accent);
  transition: width 0.14s ease;
}

.btn-fire-pylon {
  background: var(--glass-3d-btn-bg);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--liquid-glass-border-top);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 600;
  font-family: var(--font-untitled-sans);
  padding: 4px 10px;
  text-align: center;
  margin-top: 2px;
  cursor: pointer;
  border-radius: var(--radius-btn);
  box-shadow: var(--glass-3d-btn-shadow);
  transition: all 0.14s ease;
}

.btn-fire-pylon:hover:not(:disabled) {
  background: var(--glass-3d-btn-bg-hover);
  border-color: var(--theme-accent);
  border-top-color: #ffffff;
  transform: translateY(-1px);
}

.btn-fire-pylon:disabled {
  opacity: 0.35;
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--color-fog-veil);
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: none;
}

.mob-compact-cannon {
  grid-column: 1 / -1;
  background: var(--glass-3d-card-bg);
  border: 1px solid var(--glass-3d-card-border);
  border-top: 1px solid var(--liquid-glass-border-top);
  border-radius: var(--radius-card);
  padding: 5px 8px;
  margin-bottom: 3px;
  font-family: var(--font-untitled-sans);
  box-sizing: border-box;
  box-shadow: var(--glass-3d-card-shadow);
}

.mob-cannon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.mob-compact-pylon {
  background: var(--glass-3d-card-bg);
  border: 1px solid var(--glass-3d-card-border);
  border-top: 1px solid var(--liquid-glass-border-top);
  border-radius: var(--radius-card);
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3px;
  font-family: var(--font-untitled-sans);
  box-sizing: border-box;
  min-height: 72px;
  box-shadow: var(--glass-3d-card-shadow);
}

.mob-compact-pylon.empty {
  opacity: 0.35;
  border-style: dashed;
}

.mob-pylon-top-line {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.mob-pylon-name {
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.mob-pylon-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.58rem;
  color: var(--color-moon-mist);
  line-height: 1.2;
  width: 100%;
}

.mob-pylon-cap {
  color: var(--stat-tier-2);
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-dotdigital);
}

.mob-pylon-prob-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.58rem;
  color: var(--color-moon-mist);
  line-height: 1.2;
  width: 100%;
}

.mob-pylon-sub {
  color: var(--theme-accent);
  white-space: nowrap;
  font-size: 0.56rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mob-pylon-pk {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.60rem;
  font-family: var(--font-dotdigital);
}

.micro-spec-btn {
  background: var(--glass-3d-btn-bg);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--liquid-glass-border-top);
  color: var(--theme-accent);
  font-family: var(--font-untitled-sans);
  font-size: 0.54rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: var(--radius-badge);
  cursor: pointer;
}

.mob-fire-btn {
  width: 100% !important;
  padding: 3px 6px !important;
  font-size: 0.62rem !important;
  height: 24px !important;
  line-height: 1 !important;
  margin-top: 2px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px) {
  #pylon-rack,
  .pylon-rack-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
}