.sq-ind-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(6, 12, 22, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.sq-ind-dialog {
  width: min(1140px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0e1d30 0%, #091421 100%);
  border: 1px solid rgba(94, 212, 243, 0.35);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  color: #edf4fb;
  font-family: inherit;
  overflow: hidden;
}

.sq-ind-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(15, 31, 51, 0.95);
  border-bottom: 1px solid rgba(94, 212, 243, 0.22);
}

.sq-ind-head-title h2 {
  margin: 0;
  font-size: 19px;
  color: #fff;
}

.sq-ind-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5ed4f3;
}

.sq-ind-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sq-ind-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(8, 17, 29, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.sq-ind-tab {
  border: 1px solid rgba(94, 212, 243, 0.28);
  background: #10243a;
  color: #cde3f7;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.sq-ind-tab.active {
  background: linear-gradient(180deg, #1b4b6e 0%, #133650 100%);
  border-color: #5ed4f3;
  color: #fff;
  font-weight: 600;
}

.sq-ind-tab.owner-tab {
  border-color: rgba(237, 191, 96, 0.45);
  color: #ffdca3;
}

.sq-ind-tab.owner-tab.active {
  background: linear-gradient(180deg, #4b3915 0%, #30240c 100%);
  border-color: #edbf60;
  color: #fff5df;
}

.sq-ind-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sq-ind-banner {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(94, 212, 243, 0.35);
  background: rgba(21, 47, 74, 0.65);
  font-size: 13px;
}

.sq-ind-banner.err {
  border-color: rgba(255, 107, 107, 0.65);
  background: rgba(84, 24, 30, 0.65);
  color: #ffd5d5;
}

.sq-ind-banner.warn {
  border-color: rgba(237, 191, 96, 0.65);
  background: rgba(68, 49, 15, 0.65);
  color: #ffe8b8;
}

.sq-ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 12px;
}

.sq-ind-card {
  background: rgba(15, 31, 49, 0.85);
  border: 1px solid rgba(94, 212, 243, 0.22);
  border-radius: 11px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sq-ind-card.active-planet {
  border-color: #65d3c5;
  box-shadow: 0 0 0 1px rgba(101, 211, 197, 0.45);
}

.sq-ind-card-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sq-ind-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: contain;
  padding: 3px;
  border: 1px solid rgba(130, 212, 238, 0.24);
  background: rgba(14, 34, 54, 0.28);
  flex-shrink: 0;
}

.sq-ind-card h4,
.sq-ind-card h3 {
  margin: 0;
  font-size: 15px;
  color: #fff;
}

.sq-ind-muted {
  color: #9ab8d4;
  font-size: 12px;
  margin: 0;
}

.sq-ind-btn {
  border: 1px solid #4ca6c8;
  background: #164060;
  color: #fff;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.sq-ind-btn:hover:not(:disabled) {
  background: #1d547c;
}

.sq-ind-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.sq-ind-btn.gold {
  border-color: #edbf60;
  background: #554014;
  color: #fff3d6;
}

.sq-ind-btn.danger {
  border-color: #e26d6d;
  background: #612024;
  color: #ffdede;
}

.sq-ind-btn.ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.sq-ind-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.sq-ind-input,
.sq-ind-select {
  background: #07111e;
  color: #f0f6fc;
  border: 1px solid rgba(94, 212, 243, 0.35);
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 13px;
}

.sq-ind-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.sq-ind-progress > div {
  height: 100%;
  background: linear-gradient(90deg, #3ac9b0, #5ed4f3);
  transition: width 0.4s linear;
}

.sq-ind-badge {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(94, 212, 243, 0.16);
  color: #9be8ff;
  border: 1px solid rgba(94, 212, 243, 0.28);
}

.sq-ind-badge.gold {
  background: rgba(237, 191, 96, 0.16);
  color: #ffdca3;
  border-color: rgba(237, 191, 96, 0.4);
}

.sq-ind-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sq-ind-table th,
.sq-ind-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.sq-ind-nav-pill {
  border: 1px solid rgba(94, 212, 243, 0.45);
  background: #102a42;
  color: #b8eeff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .sq-ind-overlay { padding: 6px; }
  .sq-ind-dialog { max-height: 96vh; }
  .sq-ind-head { padding: 10px 12px; }
  .sq-ind-body { padding: 12px; }
}

.sq-ind-card.crown-card { border-color: rgba(237, 191, 96, 0.65); background: linear-gradient(180deg, rgba(46, 35, 14, 0.85) 0%, rgba(20, 17, 13, 0.9) 100%); }

/* === 0.45.2 NATIVE GALAXY & SHOP INTEGRATION === */
.world-header .atlas-systems-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid rgba(99, 227, 245, 0.52);
  background: linear-gradient(135deg, rgba(19, 54, 74, 0.92), rgba(11, 29, 44, 0.92));
  color: #bcefff;
  font: 700 12px/1 "Exo 2", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(70, 200, 232, 0.16);
  transition: border-color .18s, background .18s, transform .15s;
}
.world-header .atlas-systems-toggle:hover,
.world-header .atlas-systems-toggle.active {
  border-color: #8bf0ff;
  background: linear-gradient(135deg, rgba(29, 79, 106, 0.96), rgba(15, 44, 65, 0.96));
  color: #fff;
}
.map-body.map-star::before {
  content: none;
  background: transparent;
}
.map-body.map-star > img {
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 20px var(--body-accent, #63e3f5));
}
.atlas-world .siege-atlas-scroll .atlas-destination:has(.route-tank-box),
.atlas-world .atlas-destination:has(.route-tank-box) {
  bottom: 8px;
  left: 18px;
  top: auto;
  width: 296px;
  max-width: min(296px, calc(100% - 24px));
  max-height: calc(100% - 14px);
  padding: 9px 12px 10px;
}
.atlas-world .atlas-destination:has(.route-tank-box) .route-target-title {
  margin-bottom: 3px;
  gap: 9px;
}
.atlas-world .atlas-destination:has(.route-tank-box) .route-target-title img {
  width: 32px;
  height: 32px;
}
.atlas-world .atlas-destination:has(.route-tank-box) .route-target-title h3 {
  font-size: calc(16px * var(--sq-font-scale, 1));
}
.atlas-world .atlas-destination:has(.route-tank-box) .route-summary {
  margin: 4px 0;
  padding-bottom: 4px;
  font-size: 11px;
}
.route-tank-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0;
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid rgba(99, 227, 245, 0.25);
  background: rgba(8, 22, 36, 0.72);
}
.atlas-world .atlas-destination:has(.route-tank-box) .route-card-bottom {
  margin-top: 5px;
  padding-top: 5px;
}
.atlas-world .atlas-destination:has(.route-tank-box) .flight-start-btn {
  min-height: 32px;
  padding: 6px 12px;
}
.route-tank-box label {
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #88b9cc;
  font-weight: 700;
}
.route-tank-select {
  width: 100%;
  background: #0a1b2b;
  color: #e4f6ff;
  border: 1px solid rgba(110, 178, 204, 0.38);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 12px;
  font-family: inherit;
}
.route-tank-warning {
  font-size: 12px;
  line-height: 1.45;
  color: #ffd791;
  margin: 2px 0;
}
.atlas-surface-btn {
  width: 100%;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 7px;
  border: 1px solid rgba(95, 224, 198, 0.55);
  background: linear-gradient(135deg, rgba(26, 78, 72, 0.9), rgba(14, 42, 46, 0.92));
  color: #cafff1;
  font: 700 12px/1.2 "Exo 2", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.atlas-surface-btn:hover {
  border-color: #95ffea;
  background: linear-gradient(135deg, rgba(35, 103, 94, 0.95), rgba(19, 57, 62, 0.95));
  color: #ffffff;
}
.atlas-911-inline-btn {
  width: 100%;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid rgba(242, 118, 118, 0.45);
  background: rgba(92, 26, 32, 0.65);
  color: #ffd7d7;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.atlas-911-inline-btn:hover {
  background: rgba(122, 34, 42, 0.85);
  border-color: #ff9a9a;
}
.sq-ind-head,
.sq-ind-tabs {
  flex-shrink: 0;
}
.atlas-world .siege-atlas-scroll .atlas-destination {
  bottom: 10px;
  max-height: calc(100% - 16px);
  padding: 10px 13px;
}
.atlas-world .siege-atlas-scroll .atlas-destination .route-target-title h3 {
  font-size: calc(17px * var(--sq-font-scale, 1));
  line-height: 1.15;
}
.atlas-world .siege-atlas-scroll .atlas-destination .route-summary {
  margin: 6px 0;
  padding-bottom: 6px;
}
.atlas-world .siege-atlas-scroll .atlas-destination .atlas-sovereignty-card {
  margin: 5px 0;
  padding: 6px 9px;
}
.atlas-world .siege-atlas-scroll .atlas-destination .route-card-bottom {
  margin-top: 6px;
  padding-top: 6px;
}
.planet-orbit-world:has(.planet-surface-btn) .planet-heading {
  top: 4%;
  width: 340px;
  max-width: min(360px, 42vw);
  max-height: calc(100% - 20px);
}
.planet-orbit-world:has(.planet-surface-btn) .planet-heading h1 {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.1;
  margin: 6px 0 4px;
  letter-spacing: 0.8px;
}
.planet-orbit-world:has(.planet-surface-btn) .planet-coordinates {
  margin-top: 8px;
}
.planet-orbit-world:has(.planet-surface-btn) .planet-heading .planet-description {
  margin-top: 7px;
  line-height: 1.45;
  max-width: 310px;
}
.planet-orbit-world:has(.planet-surface-btn) .planet-heading-actions {
  margin-top: 10px;
  gap: 6px;
  max-width: 245px;
}
.planet-orbit-world:has(.planet-surface-btn) .planet-sector-btn {
  padding: 8px 13px;
  font-size: calc(12px * var(--sq-font-scale, 1));
}
.planet-sector-btn.planet-surface-btn {
  border-color: rgba(99, 232, 206, 0.58);
  background: linear-gradient(135deg, rgba(22, 74, 70, 0.88), rgba(11, 41, 46, 0.9));
  color: #c8fff4;
}
.planet-sector-btn.planet-surface-btn:hover {
  border-color: #8effea;
  color: #ffffff;
}
.flight-interstellar-warp {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(215px, 40vw);
  height: min(215px, 40vw);
  margin: 0 auto 28px;
  z-index: 3;
}
.flight-ship-stage:has(.flight-interstellar-warp) .flight-ship-designation {
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-size: calc(8.5px * var(--sq-font-scale, 1));
  letter-spacing: 1.3px;
}
.flight-interstellar-warp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 36px rgba(96, 224, 255, 0.55));
}
.exchange-search-bar {
  display: grid;
  grid-template-columns: minmax(170px, 1.4fr) minmax(130px, 1fr) minmax(145px, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}
.exchange-search-bar input,
.exchange-search-bar select,
.workshop-stock-filters input,
.workshop-stock-filters select,
.sq-clan-search {
  background: #081726;
  color: #d9eef6;
  border: 1px solid rgba(138, 180, 184, 0.3);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-family: inherit;
  min-width: 0;
}
.exchange-search-bar input:focus,
.exchange-search-bar select:focus,
.workshop-stock-filters input:focus,
.workshop-stock-filters select:focus,
.sq-clan-search:focus {
  outline: none;
  border-color: #7ee3d2;
}
.workshop-stock-filters {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) minmax(105px, 1fr) minmax(105px, 1fr) auto;
  gap: 6px;
  align-items: center;
  margin: 10px 0 8px;
  flex-shrink: 0;
}
.sq-storage-filter {
  display: none !important;
}
.workshop-stock-filters .sq-storage-count {
  font-size: 11px;
  color: #88b4c4;
  white-space: nowrap;
  padding: 0 4px;
}
.workshop-industry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid rgba(99, 227, 245, 0.45);
  background: rgba(16, 48, 66, 0.78);
  color: #bcefff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.workshop-industry-btn:hover {
  border-color: #8af0ff;
  color: #fff;
}
.trade-industry-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.trade-industry-qty label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8eb7c6;
}
.trade-industry-qty input {
  width: 68px;
  background: #081726;
  color: #e6f6fc;
  border: 1px solid rgba(138, 180, 184, 0.35);
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 12px;
  text-align: center;
}
.trade-industry-notice {
  margin: 0 22px 10px;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid rgba(114, 226, 200, 0.42);
  background: rgba(20, 62, 58, 0.55);
  color: #cbfff2;
  font-size: 12px;
}
.trade-industry-notice.err {
  border-color: rgba(242, 118, 118, 0.55);
  background: rgba(84, 24, 30, 0.6);
  color: #ffd8d8;
}
@media (max-width: 720px) {
  .exchange-search-bar { grid-template-columns: 1fr; }
  .workshop-stock-filters { grid-template-columns: 1fr 1fr; }
  .world-header .atlas-systems-toggle { padding: 0 9px; font-size: 10px; }
}

/* SQ-0.46.0-VECTOR-POLISH */
/* === 1. 3D Planet Surface Stage & Hex Grid === */
.sq-ind-body > * {
  flex-shrink: 0;
}
.sq-planet-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.sq-planet-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sq-planet-surface-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(114, 212, 240, 0.34);
  background: #06101c;
  min-height: 360px;
  flex-shrink: 0;
  margin-bottom: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 0 42px rgba(0, 0, 0, 0.36);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 8px;
}
.sq-planet-surface-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  filter: saturate(1.08) brightness(0.97) contrast(1.04);
}
.sq-planet-surface-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 64% 38% at 18% 8%, rgba(4, 12, 22, 0.58) 0%, rgba(4, 12, 22, 0.14) 68%, rgba(4, 12, 22, 0) 100%);
}
.sq-planet-surface-hud {
  position: relative;
  z-index: 2;
  padding: 12px 18px 0;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.92);
}
.sq-planet-surface-hud h3 {
  margin: 2px 0 0;
  font-size: 20px;
  color: #f4fbff;
}
.sq-planet-iso-plane {
  position: relative;
  z-index: 3;
  width: calc(100% - 24px);
  margin: -6px auto 4px;
  flex-shrink: 0;
}
.sq-planet-iso-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.sq-iso-face {
  transition: fill 0.16s ease, stroke 0.16s ease, stroke-width 0.16s ease;
}
.sq-iso-cell-gfx.hovered.empty .sq-iso-face {
  fill: rgba(72, 166, 224, 0.25);
  stroke: #b8e8ff;
  stroke-width: 2;
}
.sq-iso-cell-gfx.hovered.empty .sq-iso-corner-light {
  stroke: #e4f8ff;
  stroke-width: 2;
}
.sq-iso-cell-gfx.selected .sq-iso-face {
  filter: drop-shadow(0 0 8px rgba(255, 228, 120, 0.5));
}
.sq-iso-front-rim {
  transition: stroke 0.15s ease, stroke-opacity 0.15s ease, stroke-width 0.15s ease;
  pointer-events: none;
}
.sq-iso-front-rim.hovered:not(.selected) {
  stroke-opacity: 0.92;
  stroke-width: 2;
}
.sq-iso-empty-code {
  font-family: "Exo 2", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  fill: #d8f3ff;
  paint-order: stroke fill;
  stroke: rgba(4, 13, 25, 0.92);
  stroke-width: 3.4px;
  stroke-linejoin: round;
  pointer-events: none;
}
.sq-iso-empty-plus {
  font-size: 26px;
  font-weight: 400;
  fill: #b8eaff;
  paint-order: stroke fill;
  stroke: rgba(4, 13, 25, 0.9);
  stroke-width: 3.6px;
  stroke-linejoin: round;
  pointer-events: none;
}
.sq-iso-empty-lbl {
  font-size: 10.5px;
  font-weight: 600;
  fill: #e6f6ff;
  paint-order: stroke fill;
  stroke: rgba(4, 13, 25, 0.92);
  stroke-width: 3.2px;
  stroke-linejoin: round;
  pointer-events: none;
}
.sq-iso-building-art {
  pointer-events: none;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.52));
}
.sq-iso-hit-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sq-planet-iso-cell {
  position: absolute;
  border: 0;
  background: transparent;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  outline: none;
}
.sq-iso-code {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-family: "Exo 2", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(5, 14, 26, 0.84);
  border: 1px solid rgba(154, 218, 248, 0.36);
  color: #dff2ff;
  z-index: 4;
}
.sq-iso-labor {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 6px;
  background: rgba(24, 152, 98, 0.92);
  border: 1px solid rgba(144, 255, 206, 0.68);
  color: #f4fff9;
  z-index: 5;
  white-space: nowrap;
}
.sq-iso-pill {
  position: absolute;
  transform: translateX(-50%);
  pointer-events: none;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(6, 14, 26, 0.88);
  border: 1px solid rgba(130, 212, 238, 0.45);
  color: #f4f9ff;
  white-space: nowrap;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
  z-index: 5;
}
.sq-iso-pill.kind-warehouse { border-color: rgba(74, 228, 213, 0.72); }
.sq-iso-pill.kind-digger    { border-color: rgba(244, 185, 90, 0.72); }
.sq-iso-pill.kind-factory   { border-color: rgba(217, 126, 248, 0.72); }
.sq-iso-pill.kind-probe     { border-color: rgba(108, 216, 255, 0.72); }
.sq-iso-pill.selected       { border-color: #ffe885; color: #fff8d6; }
.sq-ind-deploy-preview {
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(10, 24, 40, 0.72);
  border: 1px solid rgba(114, 212, 232, 0.25);
}
.sq-ind-deploy-preview b {
  display: block;
  font-size: 13px;
  color: #eef9ff;
}
.sq-ind-deploy-preview p {
  margin: 2px 0 0;
}
.sq-planet-inspector {
  border-color: rgba(120, 218, 244, 0.35);
}
.sq-deposit-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.sq-deposit-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(10, 22, 36, 0.75);
  border: 1px solid rgba(114, 212, 232, 0.25);
}
.sq-deposit-chip.depleted {
  opacity: 0.58;
  border-color: rgba(242, 118, 118, 0.4);
}

/* === 2. Specialized My Ship Tank & Hangar Hex Dialogs === */
.sq-tank-hex-dialog,
.sq-hangar-hex-dialog {
  width: min(700px, calc(100vw - 16px)) !important;
  max-height: min(92dvh, 880px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sq-tank-hex-dialog > header,
.sq-hangar-hex-dialog > header,
.sq-hex-hero,
.sq-hex-alert,
.sq-hex-footer {
  flex-shrink: 0;
}
.sq-tank-refuel-panel {
  overflow-y: visible;
  flex-shrink: 0;
}
.sq-hex-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(10, 24, 38, 0.82);
  border: 1px solid rgba(114, 212, 232, 0.28);
  margin-bottom: 12px;
}
.sq-hex-hero img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(130, 220, 245, 0.32);
  background: rgba(14, 34, 54, 0.24);
}
.sq-hex-hero-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sq-hex-hero-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #eaf8ff;
}
.sq-hex-hero-row b {
  min-width: 0;
  font-size: 13px;
}
.sq-hex-hero-row span {
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
}
.sq-hex-hero-info small,
.sq-hex-hint {
  font-size: 12px;
  color: #9ec0d2;
}
.sq-hex-meter {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.sq-hex-meter > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #32d6c4, #6ee8ff);
  border-radius: 99px;
  transition: width 0.2s ease;
}
.sq-hex-alert {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 7px;
  background: rgba(110, 26, 36, 0.7);
  border: 1px solid rgba(250, 120, 120, 0.55);
  color: #ffdada;
  font-size: 12px;
}
.sq-tank-refuel-panel {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(12, 25, 40, 0.72);
  border: 1px solid rgba(114, 212, 232, 0.2);
  margin-bottom: 12px;
}
.sq-tank-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #b4d2e0;
}
.sq-tank-sources button {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(118, 200, 224, 0.35);
  background: rgba(14, 34, 52, 0.75);
  color: #cde9f6;
  font-size: 12px;
  cursor: pointer;
}
.sq-tank-sources button.active {
  border-color: #5ee6d8;
  background: rgba(26, 84, 88, 0.85);
  color: #ffffff;
}
.sq-tank-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sq-tank-controls > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #a9cada;
}
.sq-tank-controls select,
.sq-tank-num {
  background: #081523;
  color: #eefaff;
  border: 1px solid rgba(118, 200, 224, 0.35);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 13px;
}
.sq-tank-slider-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.sq-tank-slider-row input[type="range"] {
  flex: 1;
  min-width: 140px;
  accent-color: #5ee6d8;
}
.sq-tank-num {
  width: 72px;
  text-align: center;
}
.sq-primary-btn,
.sq-secondary-btn,
.sq-danger-btn,
.sq-mini-btn {
  border-radius: 7px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.sq-primary-btn {
  background: linear-gradient(135deg, #219996, #32c9b8);
  color: #03191b;
}
.sq-secondary-btn {
  background: rgba(26, 62, 86, 0.82);
  border-color: rgba(118, 210, 238, 0.4);
  color: #dff5ff;
}
.sq-danger-btn {
  background: rgba(102, 28, 36, 0.82);
  border-color: rgba(242, 118, 118, 0.45);
  color: #ffdcdc;
}
.sq-mini-btn {
  padding: 5px 9px;
  background: rgba(24, 58, 82, 0.88);
  border-color: rgba(118, 200, 224, 0.35);
  color: #e4f7ff;
}
.sq-primary-btn:disabled,
.sq-secondary-btn:disabled,
.sq-danger-btn:disabled,
.sq-mini-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sq-hex-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sq-hangar-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.sq-hangar-col {
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(9, 20, 32, 0.72);
  border: 1px solid rgba(114, 212, 232, 0.2);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sq-hangar-col h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #dff5ff;
  flex-shrink: 0;
}
.sq-hangar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  max-height: 230px;
  overflow-y: auto;
}
.sq-hangar-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border-radius: 7px;
  background: rgba(15, 32, 49, 0.75);
  border: 1px solid rgba(118, 200, 224, 0.2);
}
.sq-hangar-card img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}
.sq-hangar-card > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sq-hangar-card b {
  font-size: 12px;
  color: #eef9ff;
}
.sq-hangar-card small {
  font-size: 11px;
  color: #95b8c9;
}

/* === 3. Admin Panel: Vector & Industry === */
.sq-adm-industry-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sq-adm-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.sq-adm-header h2 {
  margin: 2px 0 4px;
  font-size: 22px;
}
.sq-adm-header p {
  margin: 0;
  color: #9cb9c9;
  font-size: 13px;
}
.sq-adm-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sq-adm-subtab {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(13, 27, 42, 0.85);
  border: 1px solid rgba(116, 198, 220, 0.28);
  color: #bfe0ef;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sq-adm-subtab.active {
  background: rgba(24, 86, 98, 0.88);
  border-color: #62e6d8;
  color: #ffffff;
}
.sq-adm-banner {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(102, 226, 200, 0.45);
  background: rgba(16, 62, 60, 0.65);
  color: #d6fff4;
  font-size: 13px;
}
.sq-adm-banner.err {
  border-color: rgba(242, 118, 118, 0.6);
  background: rgba(88, 24, 30, 0.72);
  color: #ffd8d8;
}
.sq-adm-planet-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.sq-adm-planet-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(11, 22, 36, 0.84);
  border: 1px solid rgba(116, 198, 220, 0.24);
  color: #e4f6ff;
  text-align: left;
  cursor: pointer;
}
.sq-adm-planet-pill.active {
  border-color: #63e3f5;
  background: rgba(20, 58, 76, 0.88);
  box-shadow: 0 0 0 1px rgba(99, 227, 245, 0.35);
}
.sq-adm-planet-pill img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.sq-adm-planet-pill b {
  display: block;
  font-size: 13px;
}
.sq-adm-planet-pill small {
  display: block;
  font-size: 11px;
  color: #95b9ca;
}
.sq-adm-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(10, 21, 35, 0.82);
  border: 1px solid rgba(114, 198, 222, 0.24);
  margin-bottom: 12px;
}
.sq-adm-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #eaf8ff;
}
.sq-adm-muted {
  margin: 0 0 10px;
  font-size: 12px;
  color: #95b7c8;
}
.sq-adm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sq-adm-row:last-child {
  border-bottom: none;
}
.sq-adm-add-row {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(118, 200, 224, 0.3);
}
.sq-adm-wipe-row {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(242, 118, 118, 0.28);
  justify-content: space-between;
}
.sq-adm-input,
.sq-adm-select {
  background: #071320;
  color: #edf9ff;
  border: 1px solid rgba(118, 198, 222, 0.35);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
}
.sq-adm-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(118, 198, 222, 0.35);
  background: rgba(22, 52, 74, 0.85);
  color: #e6f7ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.sq-adm-btn.primary {
  background: linear-gradient(135deg, #1f9b93, #35c7b7);
  border-color: transparent;
  color: #031a1d;
}
.sq-adm-btn.danger {
  background: rgba(108, 26, 36, 0.86);
  border-color: rgba(242, 118, 118, 0.55);
  color: #ffdede;
}
.sq-adm-lbl,
.sq-adm-field {
  font-size: 12px;
  color: #9ec0d2;
}
.sq-adm-code {
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #8ee4f4;
}
.sq-adm-badge,
.sq-adm-tag {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 99px;
  background: rgba(34, 96, 118, 0.5);
  color: #d6f5ff;
}
.sq-adm-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.sq-adm-setting-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #9ec0d2;
}


/* === 0.47.3 Responsive 2.5D Isometric Planet Surface Rules === */
@media (max-width: 640px) {
  .sq-planet-iso-plane {
    width: calc(100% - 10px);
    margin: 0 auto 2px;
  }
  .sq-iso-code {
    font-size: 9px;
    padding: 1px 4px;
  }
  .sq-iso-labor {
    font-size: 8.5px;
    padding: 1px 5px;
  }
  .sq-iso-pill {
    font-size: 9px;
    padding: 1.5px 6px;
    max-width: 98px;
  }
}

/* Atlas owned checkmark badge */
.map-owned-check {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2be59e, #129c68);
  color: #052216;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d4ffec;
  box-shadow: 0 0 12px rgba(43, 229, 158, 0.78);
  z-index: 6;
  pointer-events: none;
}

/* Tank drain panel & warehouse/cargo addon */
.sq-tank-drain-panel {
  margin-top: 8px;
  border-color: rgba(120, 200, 240, 0.25);
}
.sq-storage-cargo-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(110, 200, 235, 0.28);
  background: rgba(10, 22, 36, 0.72);
}
.sq-storage-cargo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
  color: #e4f3ff;
}
.sq-storage-cargo-head span { font-size: 12px; color: #9fc5e6; }
.sq-storage-cargo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sq-storage-cargo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(16, 36, 56, 0.65);
  border: 1px solid rgba(130, 210, 240, 0.16);
}
.sq-storage-cargo-meta { display: flex; flex-direction: column; gap: 2px; }
.sq-storage-cargo-meta b { font-size: 13px; color: #eef7ff; }
.sq-storage-cargo-meta small { font-size: 11px; color: #9dc0dd; }
.sq-storage-cargo-act { display: flex; align-items: center; gap: 8px; }

/* Business Center: Industry mode switcher & cards */
.sq-biz-mode-switch {
  display: flex;
  gap: 8px;
  padding: 0 24px 10px;
  flex-wrap: wrap;
}
.sq-biz-mode-switch button {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(130, 210, 245, 0.25);
  background: rgba(14, 28, 46, 0.72);
  color: #b8d3eb;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.sq-biz-mode-switch button.active {
  background: rgba(40, 118, 162, 0.45);
  border-color: #6cd8ff;
  color: #ffffff;
}
.sq-biz-ind-wrap { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; overflow: hidden; }
.sq-biz-ind-body { min-height: 0; flex: 1; overflow: hidden; }
.sq-biz-ind-compose { overflow-y: auto; max-height: 100%; min-height: 0; }
.sq-biz-ind-compose .business-compose-content { padding-bottom: 14px; }
.sq-biz-ind-wrap .business-market { overflow-y: auto; max-height: 100%; min-height: 0; }
.sq-biz-ind-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sq-biz-ind-form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #b8d3eb; }
.sq-biz-ind-form select,
.sq-biz-ind-form input {
  background: rgba(8, 18, 32, 0.85);
  border: 1px solid rgba(130, 210, 245, 0.28);
  border-radius: 8px;
  padding: 6px 9px;
  color: #eef7ff;
  font-size: 12.5px;
}
.sq-biz-ind-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sq-biz-ind-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(8, 22, 38, 0.72);
  border: 1px solid rgba(130, 210, 245, 0.18);
  font-size: 12px;
  color: #b8d3eb;
}
.sq-biz-ind-summary b { color: #ffd980; }
.sq-biz-ind-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.sq-biz-ind-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(12, 28, 46, 0.76);
  border: 1px solid rgba(130, 210, 245, 0.24);
}
.sq-biz-ind-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sq-biz-ind-card-head b { font-size: 14px; color: #f2f8ff; }
.sq-biz-ind-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(48, 126, 176, 0.34);
  border: 1px solid rgba(110, 210, 250, 0.45);
  color: #d6f1ff;
  white-space: nowrap;
}
.sq-biz-ind-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12px; color: #9fc3e2; }
.sq-biz-ind-card-meta b { color: #eef7ff; }
.sq-biz-ind-card-people { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #a9c7e0; }
.sq-biz-ind-note { color: #ffcf75; font-weight: 600; }
.sq-biz-ind-card-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }

/* === 0.47.1 Responsive polish across 375px .. 2560x1440 === */
.sq-ind-overlay *,
.sq-adm-industry-wrap *,
.sq-biz-ind-wrap *,
.sq-storage-cargo-panel *,
.sq-tank-hex-dialog *,
.sq-hangar-hex-dialog * {
  box-sizing: border-box;
}
.sq-ind-select,
.sq-ind-input,
.sq-ind-card,
.sq-adm-card,
.sq-adm-industry-wrap,
.sq-storage-cargo-panel {
  min-width: 0;
  max-width: 100%;
}
.sq-ind-row > *,
.sq-adm-row > * {
  min-width: 0;
  max-width: 100%;
}
.sq-adm-select {
  max-width: 100%;
  min-width: 0;
  flex: 1 1 180px;
}
.sq-storage-cargo-panel {
  overflow: hidden;
}
.sq-storage-cargo-meta {
  min-width: 0;
  flex: 1 1 160px;
}
.sq-storage-cargo-act {
  flex-wrap: wrap;
}
.sq-biz-ind-form select,
.sq-biz-ind-form input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 1650px) {
  .sq-ind-dialog {
    width: min(1240px, 95vw);
    max-height: min(92dvh, 960px);
  }
  .sq-adm-planet-pills {
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  }
}

@media (max-height: 760px) {
  .sq-planet-surface-stage {
    min-height: 290px;
    padding-bottom: 4px;
  }
  .sq-planet-surface-hud h3 {
    font-size: 18px;
  }
  .sq-tank-hex-dialog,
  .sq-hangar-hex-dialog {
    max-height: min(94dvh, 94vh);
  }
  .atlas-world .atlas-destination:has(.route-tank-box) {
    max-height: calc(100% - 14px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 900px) {
  .sq-ind-dialog {
    width: 100%;
    max-height: 95dvh;
  }
  .sq-adm-planet-pills {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  }
}

@media (max-width: 850px) {
  .sq-biz-ind-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .map-owned-check {
    width: 19px;
    height: 19px;
    font-size: 11px;
    border-width: 1.5px;
    top: 0;
    right: 0;
  }
}

@media (max-width: 800px), (max-height: 780px) {
  .planet-orbit-world:has(.planet-surface-btn) .planet-heading {
    max-width: min(360px, calc(100% - 20px));
  }
  .planet-orbit-world:has(.planet-surface-btn) .planet-heading-actions {
    max-width: none;
  }
}

@media (max-width: 760px), (max-height: 540px) {
  .sq-biz-mode-switch {
    padding: 0 12px 8px;
    gap: 6px;
  }
  .sq-biz-ind-wrap {
    overflow-y: auto;
    overflow-x: hidden;
  }
  .sq-biz-ind-body {
    display: flex !important;
    flex-direction: column;
    overflow: visible !important;
    flex: none;
  }
  .sq-biz-ind-compose {
    max-height: none;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(130, 210, 245, 0.22);
    flex-shrink: 0;
  }
  .sq-biz-ind-wrap .business-market {
    max-height: none;
    overflow: visible;
    flex-shrink: 0;
  }
}

@media (max-width: 760px) {
  .sq-planet-surface-stage {
    min-height: 240px;
  }
  .sq-ind-grid {
    grid-template-columns: 1fr;
  }
  .sq-adm-header {
    flex-direction: column;
    align-items: stretch;
  }
  .sq-adm-header h2 {
    font-size: 18px;
  }
  .sq-adm-planet-pills {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  }
  .sq-adm-settings-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  }
  .sq-adm-row {
    gap: 6px;
  }
  .sq-adm-wipe-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px), (max-height: 560px) {
  .atlas-world .siege-atlas-scroll .atlas-destination:has(.route-tank-box),
  .atlas-world .atlas-destination:has(.route-tank-box) {
    left: 8px;
    bottom: 8px;
    width: min(calc(100% - 16px), 320px);
    max-height: min(62dvh, calc(100% - 14px), 380px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sq-hangar-columns {
    grid-template-columns: 1fr;
    overflow: visible;
    flex: none;
  }
  .sq-hangar-list {
    max-height: 185px;
  }
}

@media (max-width: 520px) {
  .sq-ind-head-title h2 {
    font-size: 16px;
  }
  .sq-ind-tabs {
    padding: 8px 10px;
  }
  .sq-ind-tab {
    padding: 6px 10px;
    font-size: 12px;
  }
  .sq-planet-surface-hud {
    padding: 10px 12px 0;
  }
  .sq-planet-surface-hud h3 {
    font-size: 16px;
  }
  .sq-iso-code {
    font-size: 8.5px;
    padding: 1px 4px;
  }
  .sq-iso-labor {
    font-size: 8px;
    padding: 1px 4px;
  }
  .sq-iso-pill {
    font-size: 8.5px;
    padding: 1.5px 5px;
    max-width: 88px;
  }
  .sq-tank-hex-dialog,
  .sq-hangar-hex-dialog {
    width: calc(100vw - 10px) !important;
  }
  .sq-hex-hero {
    padding: 9px 10px;
    gap: 10px;
  }
  .sq-hex-hero img {
    width: 52px;
    height: 52px;
  }
  .sq-tank-slider-row input[type="range"] {
    min-width: 100%;
  }
  .sq-hex-footer > button {
    width: 100%;
  }
  .sq-storage-cargo-act {
    width: 100%;
    justify-content: space-between;
  }
  .sq-storage-cargo-act input {
    flex: 1 1 64px;
    min-width: 0;
  }
  .sq-biz-ind-row2,
  .sq-biz-ind-card-meta {
    grid-template-columns: 1fr;
  }
  .sq-biz-mode-switch button {
    flex: 1 1 auto;
    font-size: 12px;
    padding: 7px 10px;
  }
}

@media (max-width: 420px) {
  .world-header .atlas-systems-toggle {
    min-height: 30px;
    padding: 0 8px;
    font-size: 10px;
  }
}

/* === Portalized Hex Tank / Hangar Dialogs & Mobile Safe Offsets === */
.sq-hex-portal-shade {
  position: fixed !important;
  inset: 0 !important;
  z-index: 12000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) !important;
  background: rgba(3, 10, 18, 0.8) !important;
  backdrop-filter: blur(4px);
}
.sq-hex-portal-shade .sq-tank-hex-dialog,
.sq-hex-portal-shade .sq-hangar-hex-dialog {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
  max-height: min(92dvh, 880px);
}
@media (max-width: 520px) {
  .sq-hex-portal-shade {
    padding: 6px !important;
  }
  .sq-hex-portal-shade .sq-tank-hex-dialog,
  .sq-hex-portal-shade .sq-hangar-hex-dialog {
    padding: 12px;
    max-height: calc(100dvh - 16px);
  }
}
@media (max-width: 900px) {
  .scene-modal-layer:has(.admin-console) {
    position: fixed;
    inset: 0;
    z-index: 1450;
    padding: 6px;
    background: #030b17;
    align-items: stretch;
  }
  .game-shell.has-maintenance .scene-modal-layer:has(.admin-console) {
    top: 52px;
    max-height: calc(100dvh - 52px);
  }
}
@media (max-width: 650px) {
  body:has(.maintenance-banner) .scene-modal-layer.page-overlay-layer,
  body:has(.maintenance-banner) .scene-modal-layer:has(.admin-console) {
    top: 94px;
    max-height: calc(100dvh - 94px);
  }
  .sq-adm-dep-row {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* === Barrel Fuel & Archive Resource Cards in Ship Storage/Hold & Industry === */
.sq-barrel-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.sq-barrel-item {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}
.sq-barrel-qty-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #e9fffb;
  background: rgba(24, 108, 128, 0.72);
  border: 1px solid rgba(114, 232, 212, 0.48);
  pointer-events: none;
}
.sq-barrel-ore-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
}
.sq-barrel-ore-gem {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transform: rotate(45deg);
  background: radial-gradient(circle at 35% 30%, #ffffffb0 0%, var(--ore-accent, #88c2cf) 48%, #0a1f32 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 12px color-mix(in srgb, var(--ore-accent, #88c2cf) 55%, transparent);
}
.sq-barrel-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}
.sq-barrel-num {
  width: 42px;
  min-width: 0;
  height: 24px;
  padding: 2px 4px;
  border-radius: 3px;
  border: 1px solid rgba(124, 198, 236, 0.35);
  background: rgba(8, 22, 38, 0.88);
  color: #eef7ff;
  font-size: 11px;
  text-align: center;
}
.workshop-storage-board {
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)) !important;
}
.workshop-storage-view {
  overflow-y: auto;
}
.workshop-storage-view .workshop-stock-filters {
  grid-template-columns: 1fr 1fr;
}
.workshop-storage-view .workshop-stock-grid {
  min-height: 200px;
}
.workshop-storage-view .sq-barrel-actions {
  gap: 3px;
}
.workshop-storage-view .sq-barrel-num {
  width: 38px;
}
.sq-barrel-max-btn,
.sq-barrel-move-btn {
  height: 24px;
  padding: 0 7px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid rgba(126, 232, 212, 0.35);
  background: rgba(19, 54, 78, 0.78);
  color: #d6f7ff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sq-barrel-max-btn {
  border-color: rgba(132, 186, 222, 0.32);
  background: rgba(14, 38, 58, 0.72);
  color: #a9d0ee;
}
.sq-barrel-move-btn {
  flex: 1 1 auto;
}
.sq-barrel-max-btn:hover:not(:disabled),
.sq-barrel-move-btn:hover:not(:disabled) {
  background: rgba(34, 96, 128, 0.9);
  border-color: rgba(126, 232, 212, 0.7);
  color: #ffffff;
}
.sq-barrel-max-btn:disabled,
.sq-barrel-move-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sq-ind-mini-art {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(8, 24, 40, 0.75);
  border: 1px solid rgba(126, 232, 212, 0.25);
  padding: 2px;
  flex-shrink: 0;
}
.sq-ind-fuel-row {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.sq-storage-cargo-meta:has(.sq-ind-mini-art) {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.sq-storage-cargo-meta:has(.sq-ind-mini-art) > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sq-storage-planet-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(124, 198, 236, 0.18);
}
.workshop-hex-current {
  flex-shrink: 0;
}
.workshop-hex-dialog .workshop-stock-filters {
  margin: 10px 0 8px;
}
.workshop-hex-dialog .workshop-stock-empty button {
  margin-top: 10px;
}
@media (max-width: 720px), (max-height: 700px) {
  .workshop-hex-dialog {
    padding: 12px 12px 10px;
  }
  .workshop-hex-dialog > header {
    padding-bottom: 8px;
  }
  .workshop-hex-dialog h3 {
    font-size: calc(18px * var(--sq-font-scale, 1));
    margin: 2px 0 4px;
  }
  .workshop-hex-current {
    margin: 8px 0;
    padding: 8px 10px;
  }
  .workshop-hex-dialog .workshop-stock-filters {
    margin: 6px 0;
    gap: 5px;
  }
}

/* 0.49.0: Resource Exchange + Digger Wear + Factory Craft Preview */
.sq-ex-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0 12px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(8, 22, 36, 0.72);
  border: 1px solid rgba(133, 217, 206, 0.22);
}
.sq-ex-mode-switch button {
  border: 0;
  border-radius: 7px;
  padding: 7px 8px;
  background: transparent;
  color: #9cb9cb;
  font: inherit;
  font-size: calc(12px * var(--sq-font-scale, 1));
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.sq-ex-mode-switch button.active {
  background: linear-gradient(135deg, rgba(61, 179, 170, 0.32), rgba(45, 118, 166, 0.35));
  color: #e9f9ff;
  box-shadow: inset 0 0 0 1px rgba(133, 217, 206, 0.4);
}
.sq-ex-qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sq-ex-qty-row input {
  flex: 1 1 auto;
}
.sq-ex-max-btn {
  border: 1px solid rgba(133, 217, 206, 0.35);
  border-radius: 7px;
  background: rgba(16, 48, 68, 0.75);
  color: #b7eaf1;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}
.sq-ex-max-btn:hover {
  background: rgba(29, 78, 108, 0.9);
  color: #ffffff;
}
.sq-ex-buy-qty-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.sq-ex-buy-qty-box input {
  flex: 1 1 auto;
  min-width: 90px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(133, 217, 206, 0.32);
  background: rgba(8, 22, 36, 0.85);
  color: #e9f5ff;
  font-size: 14px;
  font-weight: 700;
}
.sq-ex-buy-qty-box button {
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid rgba(133, 217, 206, 0.28);
  background: rgba(18, 46, 66, 0.78);
  color: #d7eef9;
  font-weight: 700;
  cursor: pointer;
}
.sq-ex-res-offer .exchange-offer-art img {
  object-fit: contain;
  padding: 8px;
}

.sq-ind-wear-box {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(10, 26, 40, 0.65);
  border: 1px solid rgba(126, 232, 212, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sq-ind-wear-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #d9f1ff;
}
.sq-ind-wear-bar {
  height: 7px;
  border-radius: 99px;
  background: rgba(6, 14, 24, 0.85);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sq-ind-wear-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.25s ease;
}
.sq-ind-wear-fill.ok { background: linear-gradient(90deg, #3bd39d, #6debc4); }
.sq-ind-wear-fill.warn { background: linear-gradient(90deg, #e5a93c, #f6cf65); }
.sq-ind-wear-fill.crit { background: linear-gradient(90deg, #df4b4b, #ff7676); }

.sq-ind-recipe-preview {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(9, 25, 42, 0.72);
  border: 1px solid rgba(126, 232, 212, 0.22);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sq-ind-recipe-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sq-ind-recipe-head .sq-ind-mini-art {
  width: 40px;
  height: 40px;
}
.sq-ind-recipe-ings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sq-ind-ing-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 5px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.sq-ind-ing-chip .sq-ind-mini-art {
  width: 20px;
  height: 20px;
  padding: 1px;
}
.sq-ind-ing-chip.ok {
  background: rgba(34, 128, 92, 0.24);
  border-color: rgba(86, 224, 168, 0.42);
  color: #b8ffe1;
}
.sq-ind-ing-chip.miss {
  background: rgba(145, 45, 52, 0.26);
  border-color: rgba(242, 108, 118, 0.45);
  color: #ffc5cb;
}

/* === 0.50.0: Factory Queue === */
.sq-ind-factory-queue {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 6px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}
.sq-ind-queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(94, 212, 243, 0.24);
  background: rgba(10, 25, 42, 0.72);
}
.sq-ind-queue-item.active {
  border-color: rgba(101, 211, 197, 0.55);
  background: linear-gradient(90deg, rgba(22, 68, 76, 0.52) 0%, rgba(12, 30, 49, 0.78) 100%);
}
.sq-ind-queue-item.queued {
  border-style: dashed;
  border-color: rgba(130, 194, 232, 0.3);
}
.sq-ind-queue-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sq-ind-queue-info b {
  font-size: 13px;
  color: #f3f9ff;
}
.sq-ind-btn.danger-txt {
  color: #ffb8bd;
  border-color: rgba(226, 109, 109, 0.42);
}
.sq-ind-btn.danger-txt:hover:not(:disabled) {
  background: rgba(130, 34, 42, 0.45);
  color: #ffe3e6;
}

/* === 0.50.0: Planet Depletion States (Client, Atlas, Orbit, Admin) === */
.sq-ind-card.is-depleted {
  border-color: rgba(244, 179, 80, 0.5);
  background: linear-gradient(180deg, rgba(46, 30, 14, 0.65) 0%, rgba(18, 22, 34, 0.85) 100%);
}
.sq-ind-depleted-pill {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #ffd388;
}
.sq-ind-badge.depleted {
  background: rgba(235, 160, 56, 0.22);
  border: 1px solid rgba(244, 190, 96, 0.52);
  color: #ffe2ad;
}
.sq-ind-depleted-banner {
  line-height: 1.45;
}
.sq-adm-planet-pill.depleted {
  border-color: rgba(238, 172, 72, 0.52);
}
.sq-adm-depleted-card {
  border-color: rgba(244, 182, 82, 0.55) !important;
  background: rgba(62, 42, 16, 0.45) !important;
}
.planet-depleted-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffe3ad;
  background: rgba(74, 46, 14, 0.78);
  border: 1px solid rgba(242, 184, 92, 0.58);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.map-body.map-depleted img {
  filter: saturate(0.45) brightness(0.82);
}
.map-owner-label.depleted {
  color: #ffd484 !important;
}

/* === 0.50.0: Guide Button & Animated Instruction Modal === */
.sq-ind-guide-btn {
  margin-left: auto;
  border-color: rgba(101, 211, 197, 0.58);
  background: linear-gradient(180deg, rgba(22, 68, 88, 0.9) 0%, rgba(14, 42, 62, 0.95) 100%);
  color: #bdfbf0;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(94, 212, 243, 0.16);
}
.sq-ind-guide-btn:hover {
  border-color: #6fe8d8;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(101, 211, 197, 0.3);
}

.sq-ind-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 12500;
  background: rgba(4, 9, 18, 0.84);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  animation: sqGuideFadeIn 0.22s ease-out both;
}
.sq-ind-guide-dialog {
  width: min(980px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top right, rgba(38, 108, 148, 0.22), transparent 52%), linear-gradient(180deg, #0d1d31 0%, #071220 100%);
  border: 1px solid rgba(101, 211, 197, 0.42);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.78);
  color: #edf5fc;
  overflow: hidden;
  animation: sqGuidePopIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sq-ind-guide-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(12, 28, 48, 0.94);
  border-bottom: 1px solid rgba(94, 212, 243, 0.22);
}
.sq-ind-guide-head h3 {
  margin: 2px 0 0;
  font-size: 18px;
  color: #fff;
}
.sq-ind-guide-x {
  min-width: 34px;
  padding: 6px 10px;
  font-weight: 700;
}
.sq-ind-guide-body {
  padding: 16px 18px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sq-guide-flow {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(8, 20, 35, 0.85);
  border: 1px solid rgba(94, 212, 243, 0.24);
  overflow-x: auto;
}
.sq-guide-step {
  flex: 1 1 0;
  min-width: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(17, 41, 66, 0.7);
  border: 1px solid rgba(94, 212, 243, 0.24);
  animation: sqGuideCardUp 0.36s ease-out both;
  animation-delay: calc(var(--st-i, 0) * 60ms);
}
.sq-guide-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #071926;
  background: linear-gradient(135deg, #6fe8d8, #5ed4f3);
  margin-bottom: 2px;
}
.sq-guide-step b {
  font-size: 12.5px;
  color: #ffffff;
}
.sq-guide-step small {
  font-size: 11px;
  color: #93bedf;
}
.sq-guide-arrow {
  position: relative;
  flex: 0 0 26px;
  align-self: center;
  height: 3px;
  border-radius: 99px;
  background: rgba(94, 212, 243, 0.22);
  overflow: hidden;
}
.sq-guide-pulse {
  position: absolute;
  inset: 0;
  width: 60%;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #6fe8d8, transparent);
  animation: sqGuidePulseFlow 1.7s linear infinite;
}

.sq-guide-cards {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sq-guide-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(13, 29, 48, 0.86);
  border: 1px solid rgba(94, 212, 243, 0.24);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: sqGuideCardUp 0.38s ease-out both;
  animation-delay: calc(var(--gd-i, 0) * 55ms + 80ms);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.sq-guide-card:hover {
  transform: translateY(-2px);
}
.sq-guide-card.accent-cyan { border-top: 2px solid #5ed4f3; }
.sq-guide-card.accent-blue { border-top: 2px solid #63a4ff; }
.sq-guide-card.accent-amber { border-top: 2px solid #f4bd5a; }
.sq-guide-card.accent-violet { border-top: 2px solid #d97ef8; }
.sq-guide-card.accent-rose { border-top: 2px solid #ff8c7a; }
.sq-guide-card.accent-teal { border-top: 2px solid #57efe0; }

.sq-guide-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sq-guide-card-num {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(94, 212, 243, 0.16);
  color: #9be8ff;
}
.sq-guide-card-head h4 {
  margin: 0;
  font-size: 14.5px;
  color: #fff;
}
.sq-guide-list {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.42;
  color: #cbe0f3;
}

.sq-ind-guide-foot {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: rgba(9, 21, 36, 0.95);
  border-top: 1px solid rgba(94, 212, 243, 0.18);
}

@keyframes sqGuideFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sqGuidePopIn {
  from { opacity: 0; transform: translateY(10px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sqGuideCardUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sqGuidePulseFlow {
  from { transform: translateX(-120%); }
  to { transform: translateX(220%); }
}

@media (max-width: 820px) {
  .sq-guide-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    overflow-x: visible;
  }
  .sq-guide-step {
    min-width: 0;
  }
  .sq-guide-cards {
    grid-template-columns: 1fr;
  }
  .sq-guide-arrow {
    display: none;
  }
}

.sq-ind-sys-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.sq-adm-sys-group-title {
  margin: 12px 0 6px;
  font-family: "Exo 2", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #82d4ec;
}
.sq-adm-sys-group-title:first-child {
  margin-top: 2px;
}
