.module-system .ref-content-scroll,
.module-galaxy .ref-content-scroll {
  overflow: hidden;
}

.module-system .view-stage,
.module-galaxy .view-stage {
  height: 100%;
  min-height: 0;
  padding: 8px;
}

.space-map-page {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  gap: 6px;
  overflow: hidden;
}

.space-map-header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 9px 5px 11px;
  border: 1px solid rgba(94, 203, 255, .16);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8, 22, 38, .96), rgba(4, 13, 24, .9));
}

.space-map-header > div:first-child {
  min-width: 0;
}

.space-map-titleline {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.space-map-titleline .ref-eyebrow {
  font-size: 13px;
}

.space-map-titleline strong {
  color: #edf7ff;
  font-size: 15px;
  line-height: 1;
}

.space-map-titleline small {
  min-width: 0;
  color: #7f96aa;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.space-map-header h1 {
  margin: 0;
  font-size: 17px;
}

.space-map-header p {
  margin: 0;
  color: #91a7ba;
  font-size: 13px;
}

.space-map-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.space-map-actions .ref-primary-button,
.space-map-actions .ref-secondary-button {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 13px;
}

.space-map-frame-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(94, 203, 255, .18);
  border-radius: 12px;
  background: #020915;
  box-shadow: inset 0 0 60px rgba(24, 118, 177, .07), 0 18px 42px rgba(0, 0, 0, .24);
}

.space-map-frame-shell::before {
  content: "Sternkarte wird initialisiert …";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #7893aa;
  font-size: 13px;
  letter-spacing: .05em;
}

.space-map-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  border: 0;
  background: #020915;
}

.space-map-note {
  color: #6f879b;
  font-size: 13px;
}

@media (max-width: 1000px) {
  .module-system .view-stage,
  .module-galaxy .view-stage {
    padding: 6px;
  }
  .space-map-page {
    grid-template-rows: 38px minmax(0, 1fr);
    gap: 5px;
  }
  .space-map-header {
    min-height: 38px;
    padding: 4px 7px;
  }
  .space-map-titleline small {
    display: none;
  }
}
