@charset "UTF-8";
/* UI tokens in rem (1rem = root font-size; default browser ~16px). */
:root {
  /* BodyLabels + services/browser.js setzen --mw-dpr bei Resize; Startwert bis zum ersten Sync. */
  --mw-dpr: 1;
  --mw-coarse-pointer: 0;
  --ui-background: rgba(60, 60, 60, 0.5);
  /* Weicheres Gelb wie Flyout-Rand (statt #fb0). */
  --ui-accent: rgb(242, 223, 176);
  --ui-accent-line: rgba(242, 223, 176, 0.45);
  /* Innen-Trenner (z. B. Body-Control-Leiste), gleiche Stärke wie Außenrahmen wahrnehmbar */
  --ui-divider: color-mix(in srgb, var(--ui-accent-line) 65%, transparent);
  --ui-focus-ring: rgba(242, 223, 176, 0.65);
  /* Dezent, einheitlich für Hover-Zeilen + Fokus im Suchfeld */
  --ui-fill-hover: rgba(255, 255, 255, 0.07);
  --ui-fill-focus-soft: rgba(255, 255, 255, 0.09);
  --ui-radius-lg: 0.5rem;
  --ui-shadow-panel: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.28);
  --ui-border-width: 0.125rem;
  --ui-border: var(--ui-border-width) solid var(--ui-accent-line);
  --ui-border-disabled: 0.125rem solid #555;
  --ui-text-color: var(--ui-accent);
  --ui-text-color-disabled: #555;
  --ui-padding: 0.9375rem;
  --ui-input-background: transparent;
  --ui-input-background-active: rgba(60, 60, 60, 0.5);
  --ui-input-margin: 0 0 0.625rem;
  --ui-input-width: 11.25rem;
  --ui-input-padding: 0.3125rem;
  --ui-select-background-active: transparent;
}

html {
  font-size: 100%;
}

/*
 * Kompaktes Layout: leichte Root-Schrift-Anhebung mit DPR (Touch-Lesbarkeit).
 * Früher 0.38× — wirkte mit rem-UI zu groß; 0.1× hält ~16–19px Basis bei DPR 1–3.
 */
@media (max-width: 1024px), (max-aspect-ratio: 10/9), ((max-height: 540px) and (max-width: 1280px)) {
  html {
    font-size: calc(16px * (1 + 0.1 * min(2, max(0, var(--mw-dpr) - 1))));
  }
}
html,
body {
  margin: 0;
  padding: 0;
  /* Sichtbare Höhe (Tastatur): --mw-vvh aus VisualViewport, sonst dynamic viewport */
  height: var(--mw-vvh, 100dvh);
  min-height: var(--mw-vvh, 100dvh);
  overflow: hidden;
  background: #000;
  font-family: sans-serif, "helvetica", "arial";
}

body {
  font-size: 1rem;
  line-height: 1.35;
}

.hide {
  display: none;
}

input,
select {
  background: var(--ui-input-background);
  border: var(--ui-border);
  color: var(--ui-text-color);
  margin: var(--ui-input-margin);
  padding: var(--ui-input-padding);
  width: var(--ui-input-width);
  font: inherit;
}

input:focus,
select:focus {
  background: var(--ui-input-background-active);
  border: var(--ui-border);
}

select {
  width: calc(var(--ui-input-width) + var(--ui-input-padding) * 2 + var(--ui-border-width) * 2);
}

select,
::picker(select) {
  border-radius: 0;
  appearance: base-select;
}

option {
  background: #000;
  color: var(--ui-text-color);
}

option:hover {
  background: #333;
}

button {
  background: var(--ui-input-background);
  border: var(--ui-border);
  color: var(--ui-text-color);
  margin: var(--ui-input-margin);
  padding: var(--ui-input-padding);
  font: inherit;
}

button:disabled,
input:disabled,
select:disabled {
  border: var(--ui-border-disabled);
  color: var(--ui-text-color-disabled);
}

button:active,
button.enabled {
  border-color: #f00;
  color: #f00;
}

label {
  display: block;
  font-size: 0.75rem;
}

.ui .disabled {
  color: var(--ui-text-color-disabled);
  border-color: var(--ui-border-disabled);
}

.speed-control {
  border: var(--ui-border);
  padding: var(--ui-padding);
  color: var(--ui-text-color);
  background: var(--ui-background);
  width: 33%;
  min-width: 12.5rem;
  position: fixed;
  top: 0.9375rem;
  right: 0.9375rem;
}

.speed-control input {
  width: 100%;
}

.tooltip {
  position: absolute;
  color: #fff;
  pointer-events: none;
  font-size: 0.75rem;
}

@keyframes calc-spin {
  to {
    transform: rotate(360deg);
  }
}
.maneuver-control {
  border: var(--ui-border);
  padding: var(--ui-padding);
  color: var(--ui-text-color);
  background: var(--ui-background);
  position: fixed;
  bottom: calc(0.9375rem + var(--mw-vv-inset-bottom, 0px));
  left: 0.9375rem;
}

.maneuver-control .maneuver input {
  display: block;
}

.maneuver-control .head {
  border: 0.0625rem solid;
}

.maneuver-control .head > span {
  display: inline-block;
  padding: 0.5rem 0;
}

.maneuver-control .head .next,
.maneuver-control .head .prev {
  cursor: pointer;
  padding: 0.5rem 1rem;
  user-select: none;
}

.maneuver-control .head .prev {
  border-right: 0.0625rem solid;
}

.maneuver-control .head .next {
  border-left: 0.0625rem solid;
}

.maneuver-control button.calculate {
  width: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  --calc-progress: 0%;
  background: linear-gradient(to right, rgba(255, 187, 0, 0.28) 0%, rgba(255, 187, 0, 0.28) var(--calc-progress), transparent var(--calc-progress), transparent 100%), var(--ui-input-background);
}

.maneuver-control button.calculate.loading::after {
  content: "";
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  margin-left: 0.375rem;
  border: 0.125rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -0.3125rem;
  margin-top: -0.3125rem;
  animation: calc-spin 0.8s linear infinite;
}

.maneuver-control .orbit-height {
  width: calc(var(--ui-input-width) - 5.3125rem);
}

.body-control {
  border: var(--ui-border);
  padding: var(--ui-padding);
  padding-bottom: calc(var(--ui-padding) + env(safe-area-inset-bottom, 0px));
  color: var(--ui-text-color);
  background: var(--ui-background);
  position: fixed;
  left: 0;
  right: 0;
  /* Firefox Android u. a.: Layout-Viewport schrumpft nicht → Inset aus VisualViewport (browser.js) */
  bottom: var(--mw-vv-inset-bottom, 0px);
  /* Above View.js Stats panel (z-index 1100) */
  z-index: 1250;
  min-width: 0;
  box-sizing: border-box;
  font-size: 1rem;
}

/*
 * Desktop “card”: only on a sufficiently wide *and* landscape-ish viewport.
 */
@media (min-width: 1025px) and (min-aspect-ratio: 10/9) {
  .body-control {
    left: 0.75rem;
    right: auto;
    bottom: calc(0.75rem + var(--mw-vv-inset-bottom, 0px));
    max-width: min(26.25rem, 100vw - 1.5rem);
    padding-bottom: var(--ui-padding);
    border-radius: var(--ui-radius-lg);
    overflow: hidden;
    box-shadow: var(--ui-shadow-panel);
  }
  /* Mit offenem Flyout: gemeinsame Kante zur Leiste eckig (keine Doppel-Rundung). */
  .body-control:has(.body-control-popover:not([hidden])) {
    border-radius: 0 0 var(--ui-radius-lg) var(--ui-radius-lg);
  }
}
/*
 * Compact / mobile / tablet: full viewport width for the search row.
 */
@media (max-width: 1024px), (max-aspect-ratio: 10/9), ((max-height: 540px) and (max-width: 1280px)) {
  .body-control {
    left: 0;
    right: 0;
    max-width: none;
    width: 100%;
    /* Schmaler als --ui-padding (15px): Leiste näher an Browser-Chrome-Höhe */
    padding-top: 0.25rem;
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px));
    padding-left: max(0.375rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.375rem, env(safe-area-inset-right, 0px));
    font-size: 0.875rem;
  }
}
.body-control .head {
  border: 0.0625rem solid var(--ui-divider);
  display: flex;
  align-items: stretch;
}

.body-control .head > span {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

.body-control .head .next,
.body-control .head .prev {
  cursor: pointer;
  padding: 0.5rem 0;
  user-select: none;
  flex: 0 0 3rem;
  justify-content: center;
  align-self: stretch;
  min-height: 2.75rem;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--ui-accent-line) 28%, rgba(0, 0, 0, 0.42));
  /* Helle Glyphen auf dunklem Buttongrund */
  color: rgba(248, 238, 214, 0.96);
  line-height: 1;
  transition: background 0.12s ease, color 0.12s ease;
}

.body-control .head .body-control-arrow {
  width: 1.125rem;
  height: 1.375rem;
  display: block;
  flex-shrink: 0;
  shape-rendering: geometricPrecision;
}

.body-control .head .body-control-arrow path {
  fill: currentColor;
}

.body-control .head .prev {
  border-right: 0.0625rem solid var(--ui-divider);
}

.body-control .head .next {
  border-left: 0.0625rem solid var(--ui-divider);
}

@media (hover: hover) {
  .body-control .head .prev:hover,
  .body-control .head .next:hover {
    background: color-mix(in srgb, var(--ui-accent-line) 38%, rgba(0, 0, 0, 0.35));
    color: rgb(255, 250, 238);
  }
}
.body-control .head .prev:focus-visible,
.body-control .head .next:focus-visible {
  outline: 0.125rem solid var(--ui-focus-ring);
  outline-offset: -0.125rem;
  z-index: 1;
}

.body-control .body-search-wrap {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
}

.body-control .body-flyout-toggle {
  appearance: none;
  flex: 0 0 2.875rem;
  width: 2.875rem;
  min-width: 2.875rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  background: transparent;
  color: rgba(252, 246, 228, 0.98);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  transition: background 0.12s ease, color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.body-control .body-flyout-toggle-icon {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
  transition: transform 0.18s ease;
  shape-rendering: geometricPrecision;
}

.body-control .body-flyout-toggle-icon path {
  fill: rgba(252, 246, 228, 0.98);
}

.body-control .body-flyout-toggle:not(.is-collapsed) .body-flyout-toggle-icon {
  transform: rotate(180deg);
}

@media (hover: hover) {
  .body-control .body-flyout-toggle:hover {
    background: var(--ui-fill-hover);
    color: rgb(255, 252, 245);
  }
  .body-control .body-flyout-toggle:hover .body-flyout-toggle-icon path {
    fill: rgb(255, 252, 245);
  }
}
.body-control .body-flyout-toggle:focus-visible {
  outline: 0.125rem solid var(--ui-focus-ring);
  outline-offset: -0.125rem;
  z-index: 1;
  color: rgb(255, 252, 245);
}

.body-control .body-flyout-toggle:focus-visible .body-flyout-toggle-icon path {
  fill: rgb(255, 252, 245);
}

.body-control .body-search {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 0.45rem 0.5rem;
  border: 0;
  box-sizing: border-box;
  font: inherit;
  color: inherit;
  background: transparent;
  min-height: 2.75rem;
  outline: none;
  transition: background 0.12s ease;
}

.body-control .body-search::placeholder {
  color: inherit;
  opacity: 0.55;
}

/* Kein „Rahmen“: wie Baumzeilen-Hover, Tastatur nur minimal kräftiger */
.body-control .body-search:focus {
  background: var(--ui-fill-hover);
}

.body-control .body-search:focus-visible {
  background: var(--ui-fill-focus-soft);
}

/* Default: popover above the bar (desktop card). */
.body-control-popover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: 0.375rem;
  max-height: min(50dvh, 20rem);
  overflow-x: auto;
  overflow-y: auto;
  border: 0.0625rem solid var(--ui-accent-line);
  background: var(--ui-background);
  box-shadow: var(--ui-shadow-panel);
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.body-control-popover[hidden] {
  display: none !important;
}

.body-control-popover:has(.body-tree-empty:only-child) {
  max-height: none;
}

@media (max-width: 1024px), (max-aspect-ratio: 10/9), ((max-height: 540px) and (max-width: 1280px)) {
  /*
   * bottom = Abstand untere Kante Flyout → Oberkante .body-control (JS: --mw-body-control-stack).
   * top + bottom + height:auto füllt den sichtbaren Streifen direkt über der Leiste.
   */
  .body-control-popover {
    position: fixed;
    left: var(--mw-body-control-left, 0px);
    right: auto;
    width: var(--mw-body-control-width, 100%);
    max-width: var(--mw-body-control-width, 100%);
    top: env(safe-area-inset-top, 0px);
    bottom: var(--mw-body-control-stack, 5.75rem);
    height: auto;
    max-height: none;
    min-height: 0;
    margin-bottom: 0;
    border-radius: 0;
    box-sizing: border-box;
  }
  .body-control-popover:has(.body-tree-empty:only-child) {
    min-height: 2.5rem;
  }
  .body-control:has(.body-control-popover:not([hidden])) .body-control-popover {
    border-bottom: none;
    bottom: calc(var(--mw-body-control-stack, 5.75rem) - 1px);
  }
  .body-control .head .next,
  .body-control .head .prev {
    flex: 0 0 2rem;
    min-height: 2rem;
    max-height: 2rem;
    padding: 0.1875rem 0;
  }
  .body-control .head .body-control-arrow {
    width: 0.875rem;
    height: 1.0625rem;
  }
  .body-control .body-search {
    min-height: 2rem;
    max-height: 2rem;
    padding: 0.1875rem 0.3125rem;
    font-size: 0.8125rem;
  }
  .body-control .body-flyout-toggle {
    flex: 0 0 2rem;
    width: 2rem;
    min-width: 2rem;
    max-height: 2rem;
  }
  .body-control .body-flyout-toggle-icon {
    width: 0.875rem;
    height: 0.875rem;
  }
}
.body-control-tree {
  --mw-body-tree-indent: 14px;
  padding: 0.25rem 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  min-height: 0;
  /* Breiter als Flyout bei tiefen Einrückungen → nur horizontales Scrollen nötig */
  min-width: 100%;
  width: max-content;
  box-sizing: border-box;
}

.body-tree-empty {
  padding: 0.625rem 0.75rem;
  font-size: 0.75rem;
  opacity: 0.75;
  line-height: 1.4;
}

.body-tree-row {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  min-height: 2.75rem;
  padding: 0.0625rem 0.25rem 0.0625rem 0;
  padding-left: calc(var(--tree-depth, 0) * var(--mw-body-tree-indent, 14px) + 0.0625rem);
  user-select: none;
}

.body-tree-row.is-active {
  background: color-mix(in srgb, var(--ui-accent) 18%, transparent);
}

.body-tree-row.is-kb-highlight {
  outline: 0.125rem solid var(--ui-focus-ring);
  outline-offset: -0.125rem;
}

.body-tree-tw {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 0.375rem;
  opacity: 0.92;
  -webkit-tap-highlight-color: transparent;
}

.body-tree-tw:not(.is-leaf) {
  cursor: pointer;
}

.body-tree-tw.is-leaf {
  cursor: default;
  pointer-events: auto;
  visibility: visible;
}

.body-tree-select {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.body-tree-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
  letter-spacing: 0.015em;
}

@media (hover: hover) {
  .body-tree-tw:not(.is-leaf):hover {
    background: rgba(255, 255, 255, 0.14);
  }
  .body-tree-row:has(.body-tree-select:hover) {
    background: var(--ui-fill-hover);
  }
  .body-tree-row.is-active:has(.body-tree-select:hover) {
    background: color-mix(in srgb, var(--ui-accent) 22%, transparent);
  }
  .body-tree-row:has(.body-tree-tw:not(.is-leaf):hover):not(:has(.body-tree-select:hover)) {
    background: transparent;
  }
  .body-tree-row.is-active:has(.body-tree-tw:not(.is-leaf):hover):not(:has(.body-tree-select:hover)) {
    background: color-mix(in srgb, var(--ui-accent) 18%, transparent);
  }
}
.body-tree-tw:focus-visible {
  outline: 0.125rem solid var(--ui-focus-ring);
  outline-offset: 0.0625rem;
}

.body-tree-select:focus-visible {
  outline: 0.125rem solid var(--ui-focus-ring);
  outline-offset: 0.0625rem;
}

/*
 * Desktop-Karte: Flyout volle Fensterhöhe (oberer Rand = gleicher Abstand wie links/unten: 0.75rem),
 * untere Kante bündig zur Leiste (--mw-body-control-stack aus BodyControl.js).
 * Zeilen kompakter als auf Touch-Geräten.
 */
@media (min-width: 1025px) and (min-aspect-ratio: 10/9) {
  .body-control-popover {
    position: fixed;
    left: var(--mw-body-control-left, 0.75rem);
    right: auto;
    width: var(--mw-body-control-width, min(26.25rem, 100vw - 1.5rem));
    max-width: var(--mw-body-control-width, min(26.25rem, 100vw - 1.5rem));
    top: 0.75rem;
    bottom: var(--mw-body-control-stack, 5.75rem);
    margin-bottom: 0;
    max-height: none;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    border-radius: var(--ui-radius-lg) var(--ui-radius-lg) 0 0;
  }
  .body-control-popover:has(.body-tree-empty:only-child) {
    min-height: 2rem;
    max-height: none;
  }
  .body-control-tree {
    --mw-body-tree-indent: 12px;
    padding: 0.125rem 0;
    font-size: 0.75rem;
    line-height: 1.3;
  }
  .body-tree-empty {
    padding: 0.375rem 0.5rem;
    font-size: 0.6875rem;
  }
  .body-tree-row {
    min-height: 1.625rem;
    gap: 0.125rem;
    padding: 0.0625rem 0.25rem 0.0625rem 0;
    padding-left: calc(var(--tree-depth, 0) * var(--mw-body-tree-indent, 12px) + 0.0625rem);
  }
  .body-tree-tw {
    flex: 0 0 1.625rem;
    width: 1.625rem;
    min-width: 1.625rem;
    min-height: 1.625rem;
    font-size: 1rem;
    border-radius: 0.25rem;
  }
  .body-tree-select {
    min-height: 1.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
  }
  .body-control:has(.body-control-popover:not([hidden])) .body-control-popover {
    border-bottom: none;
    bottom: calc(var(--mw-body-control-stack, 5.75rem) - 1px);
  }
}
/*
 * Mobile-/Portrait-Baumzeilen: Diese Regel muss **nach** den Basis-.body-tree-*-Styles stehen,
 * sonst überschreibt $body-tree-hit (2.75rem) die kompakten Werte (gleiche Spezifität, spätere Quelle gewinnt).
 */
@media (max-width: 1024px), (max-aspect-ratio: 10/9), ((max-height: 540px) and (max-width: 1280px)) {
  .body-control-tree {
    --mw-body-tree-indent: 9px;
    padding: 0.03125rem 0;
    font-size: 0.6875rem;
    line-height: 1.175;
  }
  .body-tree-empty {
    padding: 0.28125rem 0.40625rem;
    font-size: 0.625rem;
    line-height: 1.22;
  }
  .body-tree-row {
    min-height: 1.5rem;
    gap: 0.0625rem;
    padding-top: 0.03125rem;
    padding-right: 0.15625rem;
    padding-bottom: 0.03125rem;
    padding-left: calc(var(--tree-depth, 0) * var(--mw-body-tree-indent, 9px) + 0.0625rem);
  }
  .body-tree-tw {
    flex: 0 0 1.5rem;
    width: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    font-size: 0.84375rem;
    border-radius: 0.21875rem;
  }
  .body-tree-select {
    min-height: 1.5rem;
    padding: 0.0625rem 0.21875rem;
    border-radius: 0.21875rem;
  }
  .body-tree-label {
    letter-spacing: 0.01em;
  }
}
.camera-ui {
  position: fixed;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1250;
  width: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--ui-text-color) 28%, transparent);
  border-radius: var(--ui-radius-md);
  background: var(--ui-background);
  color: var(--ui-text-color);
  box-shadow: var(--ui-shadow-panel);
  padding: 0;
  display: grid;
  grid-template-rows: 1.85rem minmax(10rem, 36vh) 1.85rem;
  gap: 0;
  pointer-events: auto;
  --camera-zoom-track-len: min(36vh, 16rem);
}

.camera-ui-focus-text {
  position: fixed;
  left: var(--mw-body-control-left, 0.75rem);
  width: var(--mw-body-control-width, min(26.25rem, 100vw - 1.5rem));
  bottom: calc(var(--mw-body-control-stack, 5.75rem) + 0.25rem);
  z-index: 1240;
  color: var(--ui-text-color);
  font-size: 0.68rem;
  pointer-events: none;
  white-space: nowrap;
}

.camera-ui-focus,
.camera-ui-distance {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: var(--ui-text-color);
  white-space: nowrap;
}

.camera-ui-zoom-btn {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ui-text-color);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-ui-zoom-btn:active {
  background: rgba(255, 255, 255, 0.14);
}

.camera-ui-zoom-track-wrap {
  position: relative;
  height: 100%;
  width: 100%;
  border-top: 1px solid color-mix(in srgb, var(--ui-text-color) 28%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ui-text-color) 28%, transparent);
}

.camera-ui-zoom-slider {
  position: absolute;
  inset: 0.3125rem 0;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
}

.camera-ui-zoom-track {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 0.36rem;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.camera-ui-zoom-fill {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 0.36rem;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ui-text-color) 55%, transparent) 0%, color-mix(in srgb, var(--ui-text-color) 35%, transparent) 100%);
}

.camera-ui-zoom-thumb {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -50%);
  width: 0.86rem;
  height: 0.86rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ui-text-color) 65%, transparent);
  background: color-mix(in srgb, var(--ui-background) 84%, white 16%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ui-background) 88%, black 12%);
}

.camera-ui-zoom-slider:focus-visible .camera-ui-zoom-thumb {
  box-shadow: 0 0 0 2px rgba(24, 40, 66, 0.85), 0 0 0 4px rgba(79, 148, 255, 0.45);
}

.camera-ui-distance {
  position: absolute;
  right: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  line-height: 1.15;
  max-width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1024px), (max-aspect-ratio: 10/9) {
  .camera-ui {
    right: 0.2rem;
    width: 2.1rem;
    grid-template-rows: 2rem minmax(12rem, 44vh) 2rem;
    --camera-zoom-track-len: min(44vh, 19rem);
  }
  .camera-ui-focus-text {
    bottom: calc(var(--mw-body-control-stack, 5.75rem) + 0.2rem);
    font-size: 0.68rem;
  }
  .camera-ui-distance {
    right: calc(100% + 0.45rem);
    max-width: 5.7rem;
  }
}
/** Cockpit-Mode-Prompt: nur Desktop (s. auch JS `COCKPIT_PROMPT_MIN_WIDTH_PX`). */
.cockpit-ui-join-overlay {
  display: none;
  position: fixed;
  /* Gleiche rechte Kante wie .camera-ui (0.4rem), sonst wirkt das Panel „eingezogen“. */
  right: calc(0.4rem + env(safe-area-inset-right, 0px));
  bottom: calc(0.75rem + var(--mw-vv-inset-bottom, 0px));
  z-index: 1258;
  pointer-events: none;
  width: max-content;
  max-width: min(13.5rem, 100vw - 1.5rem - env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  .cockpit-ui-join-overlay:not([hidden]) {
    display: block;
  }
}
.cockpit-ui-join-panel {
  pointer-events: auto;
  min-width: 10.5rem;
  border: var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: color-mix(in srgb, var(--ui-background) 94%, transparent);
  color: var(--ui-text-color);
  box-shadow: var(--ui-shadow-panel);
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  backdrop-filter: blur(6px);
}

.cockpit-ui-join-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.cockpit-ui-join-wip {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--ui-text-color) 68%, transparent);
  text-transform: none;
}

.cockpit-ui-join-status {
  font-size: 0.68rem;
  line-height: 1.35;
  color: color-mix(in srgb, var(--ui-text-color) 82%, transparent);
}

.cockpit-ui-join-hint {
  font-size: 0.6rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--ui-text-color) 65%, transparent);
}

.cockpit-ui-btn {
  appearance: none;
  border: var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-input-background-active);
  color: var(--ui-text-color);
  font: inherit;
  font-size: 0.8rem;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .cockpit-ui-btn:hover:not(:disabled) {
    background: var(--ui-fill-hover);
    border-color: var(--ui-focus-ring);
  }
}
.cockpit-ui-btn:focus-visible {
  outline: 0.125rem solid var(--ui-focus-ring);
  outline-offset: 0.125rem;
}

.cockpit-ui-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: var(--ui-text-color-disabled);
  border-color: var(--ui-border-disabled);
}

.cockpit-ui-btn--primary {
  width: 100%;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  padding: 0.4rem 0.65rem;
}

.cockpit-ui-session-controls {
  position: fixed;
  right: calc(0.4rem + env(safe-area-inset-right, 0px));
  bottom: calc(0.75rem + var(--mw-vv-inset-bottom, 0px));
  width: max-content;
  max-width: min(14rem, 100vw - 1.5rem - env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  z-index: 1260;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 10.5rem;
  max-width: min(14rem, 100vw - 1.5rem);
  pointer-events: auto;
}

/** Kartenansicht: über Body-Control-Leiste (--mw-body-control-stack aus BodyControl.js). */
.cockpit-ui-session-controls.cockpit-ui-session-controls--map {
  bottom: calc(var(--mw-body-control-stack, 5.75rem) + 0.5rem + var(--mw-vv-inset-bottom, 0px));
}

.cockpit-ui-session-controls[hidden] {
  display: none !important;
}

.cockpit-ui-join-overlay[hidden] {
  display: none !important;
}

.cockpit-ui-view-toggle {
  width: 100%;
  text-align: center;
}

.cockpit-ui-thrust-panel[hidden] {
  display: none !important;
}

.cockpit-ui-orient-panel[hidden] {
  display: none !important;
}

.cockpit-ui-rendezvous-panel[hidden] {
  display: none !important;
}

.cockpit-ui-rendezvous-panel {
  border: var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-background);
  color: var(--ui-text-color);
  box-shadow: var(--ui-shadow-panel);
  padding: 0.55rem 0.65rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cockpit-ui-rendezvous-toggle {
  width: 100%;
  text-align: center;
}

.cockpit-ui-rendezvous-toggle--active {
  border-color: var(--ui-focus-ring);
  background: color-mix(in srgb, var(--ui-accent) 22%, var(--ui-input-background-active));
  font-weight: 600;
}

.cockpit-ui-rendezvous-toggle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cockpit-ui-rendezvous-standoff-label {
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--ui-text-color) 90%, transparent);
}

.cockpit-ui-orient-panel {
  border: var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-background);
  color: var(--ui-text-color);
  box-shadow: var(--ui-shadow-panel);
  padding: 0.55rem 0.65rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cockpit-ui-orient-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
}

.cockpit-ui-orient-btn {
  padding: 0.38rem 0.2rem;
  font-size: 0.72rem;
  text-align: center;
  min-width: 0;
}

.cockpit-ui-orient-btn--active {
  border-color: var(--ui-focus-ring);
  background: color-mix(in srgb, var(--ui-accent) 22%, var(--ui-input-background-active));
  font-weight: 600;
}

.cockpit-ui-orient-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cockpit-ui-thrust-panel {
  border: var(--ui-border);
  border-radius: var(--ui-radius-lg);
  background: var(--ui-background);
  color: var(--ui-text-color);
  box-shadow: var(--ui-shadow-panel);
  padding: 0.55rem 0.65rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cockpit-ui-thrust-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ui-text-color) 85%, transparent);
}

.cockpit-ui-thrust-range {
  width: 100%;
  margin: 0;
  accent-color: var(--ui-accent);
  cursor: pointer;
}

.cockpit-ui-readout {
  position: fixed;
  left: calc(1.25rem + var(--mw-vv-inset-left, 0px));
  bottom: calc(1.25rem + var(--mw-vv-inset-bottom, 0px));
  z-index: 32;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  pointer-events: none;
  font: 0.8125rem monospace;
  color: #9fe3ff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}

.cockpit-ui-target-hud {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--ui-radius-lg);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 200, 120, 0.35);
  min-width: 8rem;
}

.cockpit-ui-target-hud[hidden] {
  display: none !important;
}

.cockpit-ui-target-hud__label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 200, 120, 0.85);
}

.cockpit-ui-target-hud__name {
  font-weight: 700;
  color: #ffc878;
}

.cockpit-ui-target-hud__dist {
  color: color-mix(in srgb, #9fe3ff 92%, #ffc878);
}

.cockpit-ui-nav-hud {
  white-space: pre-line;
  line-height: 1.35;
}

.asset-load-ui {
  position: fixed;
  left: 50%;
  top: calc(1rem + var(--mw-vv-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 1300;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border: var(--ui-border);
  border-radius: var(--ui-radius-md);
  background: rgba(0, 0, 0, 0.72);
  color: var(--ui-text-color);
  box-shadow: var(--ui-shadow-panel);
  pointer-events: none;
}

.asset-load-ui.is-hidden {
  display: none;
}

.asset-load-ui-spinner {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: asset-load-ui-spin 0.8s linear infinite;
}

.asset-load-ui-label {
  font-size: 0.8rem;
  line-height: 1.2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@keyframes asset-load-ui-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Größe folgt VisualViewport-Variablen (services/browser.js), sonst dynamic viewport */
#body-label-layer {
  width: var(--mw-vvw, 100vw);
  height: var(--mw-vvh, 100dvh);
}

.view-stats-panel {
  user-select: none;
}

.view-stats-compact-wrap {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1101;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-stats-compact {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 12, 18, 0.78);
  color: #d7f7ff;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  padding: 5px 7px;
  border-radius: 4px;
  user-select: none;
  white-space: pre;
  text-align: left;
  cursor: pointer;
}

.view-stats-bg-throttle {
  margin: 0;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #7ec8ff;
}

.view-stats-socket-led {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 1px;
  opacity: 0.5;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.view-stats-socket-led--tx {
  background: #d27822;
}

.view-stats-socket-led--rx {
  background: #32a85c;
}

.view-stats-socket-led.is-pulse {
  animation: mw-stats-socket-led-pulse 0.24s ease-out;
}

@keyframes mw-stats-socket-led-pulse {
  0% {
    opacity: 0.5;
    filter: brightness(1);
  }
  40% {
    opacity: 1;
    filter: brightness(1.75);
  }
  100% {
    opacity: 0.5;
    filter: brightness(1);
  }
}
.view-stats-compact.is-expanded {
  min-width: 66px;
}

.body-control,
.camera-ui,
.camera-ui-focus-text,
#body-label-layer,
.view-stats-compact-wrap,
.tooltip,
.planet-render-debug,
.dev-info,
.dev-build-stamp {
  transition: opacity 320ms ease;
}

body.mw-initial-ui-hidden .body-control,
body.mw-initial-ui-hidden .camera-ui,
body.mw-initial-ui-hidden .camera-ui-focus-text,
body.mw-initial-ui-hidden #body-label-layer,
body.mw-initial-ui-hidden .view-stats-compact-wrap,
body.mw-initial-ui-hidden .tooltip,
body.mw-initial-ui-hidden .planet-render-debug,
body.mw-initial-ui-hidden .dev-info,
body.mw-initial-ui-hidden .dev-build-stamp {
  opacity: 0;
  pointer-events: none;
}

/* Nur in `screen.scss` importiert — nicht in `screen.prod.scss` (Production-CSS). */
/* Oben rechts: Build-Zeitstempel / Version nur bei Dev-Bundle (main.ts setzt textContent) */
.dev-build-stamp {
  position: fixed;
  top: 0.9375rem;
  right: 0.9375rem;
  z-index: 1001;
  max-width: min(11rem, 100vw - 1.875rem);
  padding: 0.25rem 0.45rem;
  border: 0.0625rem solid rgba(176, 220, 255, 0.55);
  background: rgba(8, 18, 32, 0.78);
  color: #b0dcff;
  font: 0.6875rem/1.25 monospace;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dev-build-stamp:empty {
  display: none;
}

.dev-info .mw-globe-diag {
  margin: 0;
  max-height: none;
  overflow: visible;
  font-size: 0.65rem;
  line-height: 1.25;
  white-space: pre-wrap;
  word-break: break-word;
}

.dev-info {
  position: fixed;
  top: 0.9375rem;
  left: 0.9375rem;
  z-index: 1000;
  max-width: min(26.25rem, 100vw - 1.875rem);
  max-height: min(88vh, 48rem);
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
  color: #f2dfb0;
  font: 0.75rem/1.35 monospace;
  pointer-events: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 223, 176, 0.42) rgba(28, 16, 8, 0.72);
}

.dev-info > [data-group=mw-console] {
  order: -20;
}

.dev-info > [data-group=globe-relief-all] {
  order: -10;
}

.dev-info .mw-console-cap {
  pointer-events: auto;
  max-height: none;
  overflow: visible;
  font-size: 0.62rem;
  line-height: 1.25;
  word-break: break-word;
  background: rgba(48, 10, 10, 0.9);
  border: 0.0625rem solid rgba(255, 160, 160, 0.65);
  color: #ffd6d6;
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.125rem;
}

.dev-info .mw-console-cap strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #ffb0b0;
}

.dev-info .mw-console-line {
  margin: 0.2rem 0 0;
  padding: 0.15rem 0;
  border-top: 0.0625rem solid rgba(255, 200, 200, 0.2);
}

.dev-info .mw-globe-diag-wrap {
  pointer-events: auto;
}

.dev-info .mw-globe-diag-wrap summary {
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  outline: none;
}

.dev-info .mw-globe-diag-gpu {
  margin: 0.25rem 0 0;
  max-height: none;
  overflow: visible;
  border-top: 0.0625rem solid rgba(176, 220, 255, 0.35);
  padding-top: 0.35rem;
  color: #c8e8ff;
}

.dev-info > div {
  margin: 0 0 0.375rem;
  padding: 0.375rem 0.5rem;
  border: 0.0625rem solid rgba(242, 223, 176, 0.65);
  background: rgba(28, 16, 8, 0.72);
  white-space: normal;
  word-break: break-word;
}

.dev-info .galactic-gas-debug {
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: min(72vh, 35rem);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(242, 223, 176, 0.42) rgba(12, 8, 4, 0.85);
}

.dev-info .galactic-gas-debug::-webkit-scrollbar {
  width: 0.4375rem;
}

.dev-info .galactic-gas-debug::-webkit-scrollbar-track {
  background: rgba(12, 8, 4, 0.88);
  border-radius: 0.25rem;
  margin: 0.125rem 0;
}

.dev-info .galactic-gas-debug::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(242, 223, 176, 0.38), rgba(200, 170, 120, 0.32));
  border-radius: 0.25rem;
  border: 0.0625rem solid rgba(0, 0, 0, 0.35);
}

.dev-info .galactic-gas-debug::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(242, 223, 176, 0.55), rgba(200, 170, 120, 0.45));
}

.dev-info .galactic-gas-debug h4 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f2dfb0;
}

.dev-info .galactic-gas-debug .gas-d-vis {
  display: block;
  margin-bottom: 0.625rem;
  cursor: pointer;
}

.dev-info .galactic-gas-debug .gas-d-tier {
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
}

.dev-info .galactic-gas-debug .gas-d-tier select {
  max-width: 100%;
  margin-top: 0.25rem;
  padding: 0.1875rem 0.3125rem;
  font: 0.6875rem/1.2 monospace;
  color: #f2dfb0;
  background: rgba(0, 0, 0, 0.45);
  border: 0.0625rem solid rgba(242, 223, 176, 0.5);
  cursor: pointer;
}

.dev-info .galactic-gas-debug .gas-d-preset-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
}

.dev-info .galactic-gas-debug .gas-d-preset-btns button {
  pointer-events: auto;
  padding: 0.25rem 0.5rem;
  font: 0.625rem/1.2 monospace;
  color: #f2dfb0;
  background: rgba(0, 0, 0, 0.35);
  border: 0.0625rem solid rgba(242, 223, 176, 0.45);
  cursor: pointer;
}

.dev-info .galactic-gas-debug .gas-d-preset-btns button:hover {
  border-color: rgba(242, 223, 176, 0.85);
}

.dev-info .galactic-gas-debug .gas-d-built-presets {
  margin: 0 0 0.5rem;
  font-size: 0.625rem;
  opacity: 0.85;
  line-height: 1.35;
}

.dev-info .galactic-gas-debug .gas-d-json-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.dev-info .galactic-gas-debug .gas-d-json-tools button {
  pointer-events: auto;
  padding: 0.25rem 0.5rem;
  font: 0.625rem/1.2 monospace;
  color: #f2dfb0;
  background: rgba(0, 0, 0, 0.35);
  border: 0.0625rem solid rgba(242, 223, 176, 0.45);
  cursor: pointer;
}

.dev-info .galactic-gas-debug .gas-d-json-tools button:hover {
  border-color: rgba(242, 223, 176, 0.85);
}

.dev-info .galactic-gas-debug .gas-user-h {
  display: block;
  margin: 0.625rem 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(242, 223, 176, 0.95);
}

.dev-info .galactic-gas-debug .gas-user-save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.dev-info .galactic-gas-debug .gas-user-name {
  flex: 1 1 7.5rem;
  min-width: 0;
  padding: 0.25rem 0.375rem;
  font: 0.625rem/1.2 monospace;
  color: #f2dfb0;
  background: rgba(0, 0, 0, 0.45);
  border: 0.0625rem solid rgba(242, 223, 176, 0.45);
}

.dev-info .galactic-gas-debug .gas-user-save {
  pointer-events: auto;
  padding: 0.25rem 0.5rem;
  font: 0.625rem/1.2 monospace;
  color: #f2dfb0;
  background: rgba(0, 0, 0, 0.35);
  border: 0.0625rem solid rgba(242, 223, 176, 0.45);
  cursor: pointer;
}

.dev-info .galactic-gas-debug .gas-user-save:hover {
  border-color: rgba(242, 223, 176, 0.85);
}

.dev-info .galactic-gas-debug .gas-user-preset-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 10rem;
  overflow-y: auto;
}

.dev-info .galactic-gas-debug .gas-user-preset-li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
  margin-bottom: 0.375rem;
  font-size: 0.625rem;
  line-height: 1.35;
}

.dev-info .galactic-gas-debug .gas-user-preset-li span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

.dev-info .galactic-gas-debug .gas-user-preset-li button {
  pointer-events: auto;
  padding: 0.1875rem 0.4375rem;
  font: 0.625rem/1.2 monospace;
  color: #f2dfb0;
  background: rgba(0, 0, 0, 0.35);
  border: 0.0625rem solid rgba(242, 223, 176, 0.45);
  cursor: pointer;
}

.dev-info .galactic-gas-debug .gas-user-preset-li button:hover {
  border-color: rgba(242, 223, 176, 0.85);
}

.dev-info .galactic-gas-debug .gas-d-feats {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.0625rem solid rgba(242, 223, 176, 0.25);
}

.dev-info .galactic-gas-debug .gas-d-feats-h {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(242, 223, 176, 0.95);
}

.dev-info .galactic-gas-debug .gas-d-feat {
  display: block;
  margin: 0.25rem 0 0.125rem;
  font-size: 0.625rem;
  cursor: pointer;
  line-height: 1.35;
}

.dev-info .galactic-gas-debug .gas-d-feat input {
  margin-right: 0.375rem;
  vertical-align: middle;
}

.dev-info .galactic-gas-debug .gas-d-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.625rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
}

.dev-info .galactic-gas-debug .gas-d-row label {
  min-width: 0;
  overflow-wrap: break-word;
}

.dev-info .galactic-gas-debug .gas-d-row input[type=range] {
  grid-column: 1/-1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  cursor: pointer;
}

.dev-info .galactic-gas-debug .gas-d-val {
  text-align: right;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
}

.dev-info .galactic-gas-debug #gas-debug-reset {
  pointer-events: auto;
  margin-top: 0.625rem;
  padding: 0.3125rem 0.625rem;
  font: 0.6875rem/1.2 monospace;
  color: #f2dfb0;
  background: rgba(0, 0, 0, 0.35);
  border: 0.0625rem solid rgba(242, 223, 176, 0.55);
  cursor: pointer;
}

.dev-info .galactic-gas-debug #gas-debug-reset:hover {
  border-color: rgba(242, 223, 176, 0.95);
}

.dev-info .planet-globe-debug {
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: min(78vh, 38rem);
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 0.25rem;
  padding: 0.5rem 0.45rem 0.65rem;
  border: 0.0625rem solid rgba(180, 220, 255, 0.45);
  background: rgba(10, 20, 40, 0.82);
  color: #d8ecff;
  scrollbar-width: thin;
  scrollbar-color: rgba(180, 220, 255, 0.35) rgba(8, 16, 32, 0.9);
}

.dev-info .planet-globe-debug .pgd-h {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e8f4ff;
}

.dev-info .planet-globe-debug .pgd-sub {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  opacity: 0.92;
}

.dev-info .planet-globe-debug .pgd-hint {
  margin: 0 0 0.5rem;
  font-size: 0.625rem;
  line-height: 1.35;
  opacity: 0.88;
  color: rgba(220, 236, 255, 0.9);
}

.dev-info .planet-globe-debug .pgd-sh {
  display: block;
  margin: 0.5rem 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(220, 236, 255, 0.95);
}

.dev-info .planet-globe-debug .pgd-section:first-of-type .pgd-sh {
  margin-top: 0;
}

.dev-info .planet-globe-debug .pgd-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.65rem;
}

.dev-info .planet-globe-debug .pgd-row label {
  min-width: 0;
  overflow-wrap: break-word;
}

.dev-info .planet-globe-debug .pgd-row input[type=range] {
  grid-column: 1/-1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  cursor: pointer;
}

.dev-info .planet-globe-debug .pgd-val {
  text-align: right;
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
}

.dev-info .planet-globe-debug .pgd-btn {
  pointer-events: auto;
  margin-top: 0.5rem;
  padding: 0.28rem 0.55rem;
  font: 0.6875rem/1.2 monospace;
  color: #e8f4ff;
  background: rgba(0, 0, 0, 0.35);
  border: 0.0625rem solid rgba(180, 220, 255, 0.5);
  cursor: pointer;
}

.dev-info .planet-globe-debug .pgd-btn:hover {
  border-color: rgba(200, 235, 255, 0.9);
}

.dev-info .planet-render-debug {
  pointer-events: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: min(68vh, 28rem);
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 0.2rem;
  padding: 0.45rem 0.45rem 0.55rem;
  border: 0.0625rem solid rgba(170, 220, 255, 0.45);
  background: rgba(8, 20, 36, 0.84);
  color: #d8ecff;
}

.dev-info .planet-render-debug .prd-h {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e7f4ff;
}

.dev-info .planet-render-debug .prd-tree {
  max-height: min(60vh, 24rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.15rem;
}

.dev-info .planet-render-debug .prd-empty {
  font-size: 0.68rem;
  opacity: 0.85;
}

.dev-info .planet-render-debug .mw-planet-render-wrap {
  margin: 0.2rem 0;
  pointer-events: auto;
}

.dev-info .planet-render-debug .mw-planet-render-wrap summary {
  cursor: pointer;
  user-select: none;
  font-size: 0.68rem;
  font-weight: 600;
}

.dev-info .planet-render-debug .mw-planet-render-wrap.is-visible summary {
  color: var(--ui-text-color);
}

.dev-info .planet-render-debug .mw-planet-render-wrap.is-visible {
  border-left: 0.125rem solid var(--ui-accent-line);
  padding-left: 0.3rem;
}

.dev-info .planet-render-debug .mw-planet-render-wrap.is-full-active summary {
  color: #ff8d8d;
}

.dev-info .planet-render-debug .mw-planet-render-wrap.is-full-active {
  border-left-color: rgba(255, 120, 120, 0.8);
}

.dev-info .planet-render-debug .mw-planet-render-wrap.is-sprite-only summary {
  color: #9ec7ff;
}

.dev-info .planet-render-debug .mw-planet-render {
  margin: 0.2rem 0 0;
  font-size: 0.62rem;
  line-height: 1.25;
  white-space: pre-wrap;
  word-break: break-word;
}

.debug-progress {
  margin-top: 0.375rem;
  height: 0.375rem;
  border: 0.0625rem solid rgba(242, 223, 176, 0.5);
  background: rgba(0, 0, 0, 0.35);
}

.debug-progress-bar {
  height: 100%;
  background: rgba(242, 223, 176, 0.9);
}

/* aus ui.scss (nur für Dev-Overlay relevant) */
body > .dev-info {
  position: absolute;
  background: transparent;
  color: #fff;
}