/* ═══════════════════════════════════════════
   LIGHT THEME: Cargo, crew, passengers
   ═══════════════════════════════════════════ */

  [data-theme="light"] .cargo-item,

  [data-theme="light"] .module-reward-card,

  [data-theme="light"] .crew-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  }

  [data-theme="light"] .cargo-item {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }

  [data-theme="light"] .cargo-filter {
    background: linear-gradient(180deg, #e7e1d8, #dcd5ca);
    border: 1px solid #b8ad9e;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.3);
  }

  [data-theme="light"] .cargo-filter.active {
    background: rgba(139,58,0,0.18);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: inset 0 1px 3px rgba(139,58,0,0.15);
  }

  [data-theme="light"] .passenger-acquired-panel {
    background: rgba(21,128,61,0.05);
    border-color: var(--dim);
    border-left-color: var(--green);
  }

  [data-theme="light"] .passenger-death-panel {
    background: rgba(204,51,51,0.05);
    border-color: var(--dim);
    border-left-color: var(--red);
  }

  [data-theme="light"] .rarity-epic {
    color: #7c3aed;
  }

/* ── Auto-generated gap fills ── */

[data-theme="light"] .cargo-filter-selected {
  background: var(--bg2) !important;
  border: 1px solid #a89880 !important;
}
[data-theme="light"] .cargo-font-btn {
  background: var(--bg2) !important;
  border: 1px solid #a89880 !important;
}
[data-theme="light"] .cargo-font-btn:hover {
  border-color: #a89880 !important;
}
[data-theme="light"] .rarity-legendary {
  text-shadow: 0 0 6px rgba(139,58,0,0.3);
}
[data-theme="light"] .power-budget-systems {
  background: rgba(21,128,61,0.15);
}
[data-theme="light"] .power-budget-modules {
  background: rgba(139,58,0,0.2);
}
[data-theme="light"] .module-activate:hover:not(.disabled) {
  background: rgba(21,128,61,0.1);
}
[data-theme="light"] .module-deactivate:hover {
  background: rgba(190,18,60,0.1);
}
[data-theme="light"] .cargobay-filter {
  background: var(--bg2) !important;
  border: 1px solid #a89880 !important;
}
[data-theme="light"] .cargobay-filter:hover {
  border-color: #a89880 !important;
}
[data-theme="light"] .cargobay-filter.active {
  border-color: #8a7a68 !important;
}
[data-theme="light"] .rarity-border-legendary {
  box-shadow: 0 0 10px rgba(139,58,0,0.2), inset 0 0 10px rgba(139,58,0,0.05);
}
[data-theme="light"] .strip-activate:hover {
  background: rgba(0,0,0,0.05);
}
[data-theme="light"] .strip-deactivate:hover {
  background: rgba(21,128,61,0.1);
}
[data-theme="light"] .strip-airlock:hover {
  background: rgba(190,18,60,0.1);
}
[data-theme="light"] .airlock-confirm {
  background: rgba(190,18,60,0.06);
}
[data-theme="light"] .module-airlock-yes:hover {
  background: rgba(190,18,60,0.1);
}
[data-theme="light"] .crew-zoom-photo {
  box-shadow: 0 0 0 rgba(139,58,0,0.0);
}
[data-theme="light"] .crew-zoom-overlay.active .crew-zoom-photo {
  box-shadow: 0 0 30px rgba(139,58,0,0.15), 0 0 80px rgba(0,0,0,0.6);
}

[data-theme="light"] .rarity-rare { color: #2563eb; }
[data-theme="light"] .rarity-pill-rare { color: #2563eb; border-color: #2563eb; }
[data-theme="light"] .rarity-pill-epic { color: #7e22ce; border-color: #7e22ce; }
[data-theme="light"] .rarity-border-rare { color: #2563eb; }
[data-theme="light"] .rarity-border-epic { color: #7e22ce; }
[data-theme="light"] .cargobay-module-card.rarity-accent-rare { border-color: #2563eb; }

/* ===== LIGHT THEME: CREW + PASSENGERS PARITY ===== */
[data-theme="light"] .crew-card {
  background: linear-gradient(180deg, #f7f2eb 0%, #ece4d9 100%);
  border-color: #c9beb0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 12px 24px rgba(0,0,0,0.05);
}

[data-theme="light"] .crew-card::after {
  background: linear-gradient(135deg, rgba(139,58,0,0.05) 0%, transparent 52%);
}

[data-theme="light"] .crew-card-portrait {
  background: linear-gradient(180deg, #f3ede5 0%, #e7ded2 100%);
  border-color: #cec2b4;
}

[data-theme="light"] .crew-card-role {
  color: #8b3a00;
}

[data-theme="light"] .crew-card-tag {
  border-color: rgba(139,58,0,0.16);
  background: rgba(139,58,0,0.05);
  color: var(--dim);
}

[data-theme="light"] .crew-card-tag-danger {
  border-color: rgba(190,18,60,0.2);
  background: rgba(190,18,60,0.06);
  color: var(--red);
}

[data-theme="light"] .crew-card-name {
  color: var(--text);
}

[data-theme="light"] .crew-card-desc,
[data-theme="light"] .passenger-manifest-hint,
[data-theme="light"] .passenger-subtitle,
[data-theme="light"] .passenger-ring-count {
  color: var(--dim);
}

[data-theme="light"] .passenger-ring-title {
  color: var(--accent);
}

[data-theme="light"] .passenger-acquired {
  border-left-color: rgba(21,128,61,0.35);
}

[data-theme="light"] .passenger-unacquired {
  border-left-color: rgba(139,58,0,0.2);
}

[data-theme="light"] .passenger-dead {
  border-left-color: rgba(190,18,60,0.35);
}

[data-theme="light"] .passenger-locked {
  border-left-color: rgba(122,90,48,0.2);
}

[data-theme="light"] .passenger-progress-bar {
  background: rgba(139,58,0,0.08);
}

[data-theme="light"] .passenger-progress-fill {
  background: linear-gradient(90deg, #b45309 0%, #d97706 100%);
  box-shadow: 0 0 10px rgba(139,58,0,0.16);
}

[data-theme="light"] .passenger-portrait-dimmed {
  filter: brightness(0.55) saturate(0.45);
}

[data-theme="light"] .passenger-portrait-locked {
  filter: brightness(0.3) saturate(0) blur(1px);
}

[data-theme="light"] .crew-zoom-overlay.active {
  background: rgba(40,35,30,0.55);
}

/* Strong overrides for cargo/cargobay cards that inherit dark panel rules */
[data-theme="light"] .cargo-item,
[data-theme="light"] .module-reward-card,
[data-theme="light"] .cargobay-module-card {
  background: linear-gradient(180deg, #f7f2eb 0%, #ece4d9 100%) !important;
  border-color: #c9beb0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 12px 24px rgba(0,0,0,0.05) !important;
}

[data-theme="light"] .cargobay-card-actions {
  border-left-color: #d3c8ba;
  background: rgba(0,0,0,0.015);
}

[data-theme="light"] .cargobay-action-strip {
  color: var(--dim) !important;
  background: transparent !important;
}

[data-theme="light"] .strip-activate:hover {
  background: rgba(139,58,0,0.06);
  color: var(--accent) !important;
}

[data-theme="light"] .strip-deactivate {
  color: #15803d !important;
}

[data-theme="light"] .strip-deactivate:hover {
  background: rgba(21,128,61,0.08);
}

[data-theme="light"] .strip-airlock {
  border-top-color: #d3c8ba;
}

[data-theme="light"] .strip-airlock:hover {
  background: rgba(190,18,60,0.08);
}

[data-theme="light"] .strip-tooltip {
  background: #f8f3ed;
  border-color: #c9beb0;
  color: var(--text);
}

[data-theme="light"] .item-name,
[data-theme="light"] .module-system-tag {
  color: var(--text);
}

[data-theme="light"] .item-effect,
[data-theme="light"] .item-meta,
[data-theme="light"] .module-flavor,
[data-theme="light"] .module-net-detail {
  color: var(--dim);
}

[data-theme="light"] .module-positive {
  color: #15803d;
}

[data-theme="light"] .module-negative {
  color: var(--red);
}

[data-theme="light"] .airlock-confirm {
  background: rgba(190,18,60,0.05);
  border-top: 1px solid #d3c8ba;
}
