/* V08 · Primero explorar; los datos y ajustes aparecen cuando se abren.
   Los iconos son señales de navegación dibujadas en CSS/SVG, no mapas científicos. */
:root {
  --explore-blue: #94c8ff;
  --explore-purple: #ccbaff;
}
.view-toolbar {
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
}
.view-toolbar .explore-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  flex: 1;
  max-width: 790px;
  min-width: 0;
}
.view-toolbar .explore-actions button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
  padding: 8px 12px;
  text-align: left;
  color: #c5d2e9;
  border: 1px solid #36445f;
  border-radius: 12px;
  background: linear-gradient(130deg, #162438, #141b2e);
  transition:
    border-color 0.16s,
    background 0.16s;
}
.view-toolbar .explore-actions button:hover {
  border-color: #849cbe;
  background: #22314c;
}
.view-toolbar .explore-actions button.selected {
  background: linear-gradient(120deg, #28365b, #292843);
  border-color: #a499dc;
  color: #f4f1ff;
  box-shadow: inset 0 1px #dfd1ff12;
}
.view-toolbar .explore-actions button span {
  display: block;
  font-size: inherit;
  margin: 0;
  opacity: 1;
}
.explore-copy {
  min-width: 0;
}
.explore-copy strong {
  font-size: 13px;
  font-weight: 650;
  display: block;
}
.explore-copy small {
  display: block;
  color: #a9bcd7;
  font-size: 10px;
  margin-top: 3px;
  line-height: 1.3;
}
.explore-actions .explore-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  position: relative;
}
.explore-icon.explore-planets {
  border-radius: 50%;
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  margin: 0 2px;
  background: radial-gradient(circle at 32% 25%, #ffd8a3, #cb8a6e 50%, #66597d 82%);
  box-shadow: inset -5px -3px 6px #231c435f;
}
.explore-planets::after {
  content: '';
  position: absolute;
  inset: 8px -6px;
  border: 2px solid #c9b4e6bd;
  border-radius: 50%;
  transform: rotate(-30deg);
}
.explore-icon.explore-moon {
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 32%, #777e9960 0 10%, transparent 11%),
    radial-gradient(circle at 60% 67%, #69758c70 0 13%, transparent 14%),
    radial-gradient(circle at 70% 25%, #70788c60 0 7%, transparent 8%),
    radial-gradient(circle at 30% 28%, #dce5f6, #91a2bd 66%, #455476 87%);
}
.explore-sky {
  color: #8dcdee;
}
.explore-sky svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
#immersive-toggle {
  min-height: 44px;
  padding: 9px 12px;
  color: #c6cbea;
  border-color: #5a5780;
  background: #25233b;
}
.shared-instant {
  margin: 7px 1px 9px;
  color: #a9bdd6;
}
.scene-shell,
.split-view .scene-shell {
  height: clamp(390px, 58vh, 640px);
}
.planet-navigation {
  top: 10px;
  left: 10px;
  width: min(244px, calc(100% - 132px));
  min-height: 44px;
  padding: 4px 7px;
  gap: 7px;
  border-color: #7788b652;
  background: #122039e3;
  backdrop-filter: blur(10px);
}
.planet-navigation select {
  min-width: 0;
  max-width: none;
  width: 100%;
  min-height: 34px;
  padding: 5px 5px;
  font-size: 12px;
  background: transparent;
  border-color: transparent;
}
.destination-icon {
  display: block;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 30% 25%, #ffe1ab, #e99d58 60%, #704751);
  box-shadow: inset -5px -2px 6px #080a1750;
}
.destination-icon[data-destination='mercury'],
.destination-icon[data-destination='moon'] {
  background: radial-gradient(circle at 30% 25%, #dfddcf, #9e9e9d 60%, #505265);
}
.destination-icon[data-destination='venus'] {
  background: linear-gradient(30deg, #9c6647, #e6be87 50%, #f1dab4);
}
.destination-icon[data-destination='earth'] {
  background:
    radial-gradient(ellipse at 28% 20%, #9cac73 0 18%, transparent 20%),
    radial-gradient(ellipse at 48% 70%, #91a878 0 19%, transparent 21%),
    radial-gradient(circle at 30% 25%, #75c5f5, #326eab 70%);
}
.destination-icon[data-destination='mars'] {
  background: radial-gradient(circle at 35% 30%, #e3a67c, #b86149 65%, #643b46);
}
.destination-icon[data-destination='jupiter'] {
  background: repeating-linear-gradient(
    5deg,
    #b69c7f 0 5px,
    #dfc8a6 5px 9px,
    #b88169 9px 12px
  );
}
.destination-icon[data-destination='saturn'] {
  background: linear-gradient(10deg, #bea178, #e9d6a9);
}
.destination-icon[data-destination='saturn']::after {
  content: '';
  position: absolute;
  inset: 7px -5px;
  border: 2px solid #cdbc9fc0;
  border-radius: 50%;
  transform: rotate(-30deg);
}
.destination-icon[data-destination='uranus'] {
  background: radial-gradient(circle at 35% 25%, #b6e9e6, #77bdc4 70%, #478593);
}
.destination-icon[data-destination='neptune'] {
  background: radial-gradient(circle at 35% 25%, #79a3ee, #4569bf 70%, #243f7d);
}
.destination-icon[data-destination='surface'],
.destination-icon[data-destination='terrain'],
.destination-icon[data-destination='ground'],
.destination-icon[data-destination='pair'] {
  background: radial-gradient(circle at 30% 25%, #dce5f6, #91a2bd 66%, #455476 87%);
}
.camera-views {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  color: #dee6fa;
}
.camera-views > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #7788b652;
  border-radius: 9px;
  background: #122039e3;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.camera-views > summary::-webkit-details-marker {
  display: none;
}
.camera-views > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}
.camera-views[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 3px;
}
.camera-views > summary:hover {
  background: #263656;
}
.camera-views-content {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 265px;
  max-width: calc(100vw - 42px);
  max-height: min(390px, calc(58vh - 70px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid #566787;
  border-radius: 12px;
  background: #152238fa;
  box-shadow: 0 12px 30px #0007;
}
.menu-eyebrow {
  display: block;
  margin: 1px 7px 7px;
  color: #9fb4d4;
  font-size: 9px;
  letter-spacing: 0.1em;
}
.camera-views .view-tabs {
  position: static;
  display: grid;
  width: 100%;
  max-width: none;
  padding: 0;
  gap: 2px;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
  backdrop-filter: none;
}
.camera-views .view-tabs button {
  width: 100%;
  min-height: 38px;
  padding: 9px;
  text-align: left;
  font-size: 12px;
  white-space: normal;
}
.camera-views .view-tabs button.selected {
  background: #3b3c62;
  color: #f3eaff;
}
.comparison-actions {
  display: grid;
  gap: 5px;
  padding-top: 9px;
  margin-top: 7px;
  border-top: 1px solid #526080;
}
.comparison-actions button {
  min-height: 38px;
  text-align: left;
  font-size: 11px;
}
.camera-views summary:focus-visible,
.time-travel summary:focus-visible {
  outline: 2px solid #c3b4ff;
  outline-offset: 3px;
}
.lunar-map {
  top: 68px;
}
#observatory-stage.is-immersive .camera-views {
  display: none;
}
#observatory-stage.is-immersive .lunar-map {
  top: 12px;
}
.time-console {
  margin-top: 9px;
  background: linear-gradient(105deg, #2e2836, #15263e 75%);
  border-color: #514a67;
}
.time-console .timeline {
  align-items: center;
  padding: 10px 12px;
}
.time-console .speed-field {
  flex-direction: row;
  align-items: center;
  gap: 9px;
}
.time-console .time-buttons button,
.time-console .speed-field select {
  min-height: 40px;
}
.time-console .timeline-hint {
  max-width: 310px;
  color: #bdc5d9;
  font-size: 10px;
}
.time-travel {
  border-top: 1px solid #74668540;
}
.time-travel > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  cursor: pointer;
  padding: 10px 13px;
  min-height: 40px;
  color: #dbcafa;
  font-size: 12px;
}
.time-travel > summary::-webkit-details-marker {
  display: none;
}
.time-travel > summary::before {
  content: '+';
  font-size: 19px;
  line-height: 1;
  width: 10px;
  font-weight: 300;
}
.time-travel[open] > summary::before {
  content: '−';
}
.time-travel summary small {
  color: #aebcd4;
  font-size: 10px;
}
.date-explorer {
  display: flex;
  align-items: end;
  gap: 15px;
  padding: 5px 12px 10px;
}
.date-explorer p {
  font-size: 11px;
  line-height: 1.5;
  color: #afbdd4;
  margin: 0 0 4px;
  max-width: 350px;
}
.time-console .date-explorer .date-field {
  flex: 0 1 235px;
}
.time-console .date-explorer input {
  width: 100%;
}
.discovery-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 2px 8px;
}
.discovery-heading h2 {
  margin: 0;
  font-weight: 550;
  font-size: 14px;
  color: #e6e8f5;
  letter-spacing: 0;
}
.discovery-heading p {
  margin: 0;
  font-size: 11px;
  color: #91a6c2;
}
.dashboard-grid {
  margin-top: 0;
}
.compact-panel > .discovery-summary,
#inspector-panel > .discovery-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 11px 13px;
  min-height: 63px;
}
.discovery-summary::-webkit-details-marker {
  display: none;
}
.discovery-summary::after {
  content: '+';
  font-size: 22px;
  line-height: 1;
  color: #aebbd8;
  margin-left: auto;
  font-weight: 300;
}
details[open] > .discovery-summary::after {
  content: '−';
}
.summary-copy strong {
  display: block;
  font-weight: 600;
  color: #e0e9ff;
  font-size: 12px;
}
.summary-copy small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: #acbdd6;
  margin-top: 2px;
  line-height: 1.4;
}
.summary-icon {
  display: grid;
  place-items: center;
  flex: 0 0 33px;
  width: 33px;
  height: 33px;
  background: #80a9dd14;
  color: #a2ceff;
  border: 1px solid #8cabd325;
  border-radius: 9px;
}
.summary-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tour-panel .summary-icon,
.calendar-panel .summary-icon {
  color: #cfb9ff;
  background: #bfa0e115;
  border-color: #b295dc25;
}
.saved-panel .summary-icon {
  color: #9bd4e7;
}
.sky-controls .summary-icon {
  color: #ddc9f1;
}
.compact-panel > summary:hover,
#tonight-view summary:hover {
  background: #b0c9ff08;
}
#tonight-view .tonight-panel {
  background: linear-gradient(125deg, #173748, #1b2a43);
  border-color: #486980;
}
#tonight-view .tonight-panel > summary {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr) 16px;
  grid-template-areas: 'icon title expand' 'icon subtitle expand';
  min-height: 63px;
  gap: 1px 10px;
  padding: 11px 13px;
}
#tonight-view .tonight-panel > summary::before {
  content: '◔';
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  font-size: 25px;
  color: #b5def8;
  border: 1px solid #8cabd325;
  border-radius: 9px;
  background: #80a9dd14;
}
#tonight-view .tonight-panel > summary::after {
  grid-area: expand;
}
#tonight-view .tonight-panel > summary > span:first-child {
  grid-area: title;
}
#tonight-view .tonight-panel .tonight-summary {
  grid-area: subtitle;
  margin-left: 0;
  text-align: left;
  font-size: 10px;
  max-width: none;
}
.details-heading {
  margin: 17px 2px 8px;
  font-size: 11px;
  color: #99acc7;
}
#photography-options {
  margin: 0 0 8px;
}
#inspector-panel {
  margin-top: 8px;
}
#inspector-panel > .discovery-summary {
  min-height: 54px;
}
.settings-grid {
  margin-top: 8px;
}
/* Al comparar, ambas columnas comparten la misma altura. La escena ocupa el
   espacio restante con flex; su lienzo absoluto no decide la altura de la fila.
   Esto evita el hueco bajo el espacio sin un segundo cálculo en JavaScript. */
@media (min-width: 761px) {
  #observatory-stage:not(.is-immersive) #views-grid.split-view {
    align-items: stretch;
  }
  #observatory-stage:not(.is-immersive) .split-view #space-workspace {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  #observatory-stage:not(.is-immersive) .split-view .scene-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  #observatory-stage:not(.is-immersive) .split-view .scene-shell {
    flex: 1 1 auto;
    height: auto;
    min-height: clamp(390px, 58vh, 640px);
  }
  #observatory-stage:not(.is-immersive)
    .split-view
    :is(#resource-status, #event-transport) {
    flex: 0 0 auto;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .view-toolbar .explore-actions button {
    gap: 8px;
    padding: 8px;
  }
  .explore-copy small {
    max-width: 120px;
  }
  .explore-copy strong {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .view-toolbar {
    flex-wrap: wrap;
    gap: 7px;
  }
  .view-toolbar .explore-actions {
    flex-basis: 100%;
    max-width: none;
    gap: 6px;
  }
  .view-toolbar .explore-actions button {
    min-height: 56px;
    gap: 8px;
    padding: 8px;
  }
  .view-toolbar .explore-actions button span {
    display: block;
  }
  .explore-copy strong {
    font-size: 12px;
  }
  .explore-copy small {
    font-size: 9px;
  }
  #immersive-toggle {
    min-height: 34px;
    font-size: 11px;
    padding: 7px 10px;
    margin-left: auto;
  }
  .shared-instant {
    font-size: 10px;
    margin: 5px 0 8px;
  }
  .scene-shell,
  .split-view .scene-shell {
    height: 430px;
    min-height: 0;
  }
  .camera-views-content {
    max-height: 335px;
  }
  .time-console .timeline {
    gap: 8px;
  }
  .time-console .speed-field {
    flex: 1 1 180px;
    gap: 7px;
  }
  .time-console .speed-field select {
    width: 100%;
    min-width: 0;
  }
  .time-console .timeline-hint {
    display: none;
  }
  .date-explorer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .date-explorer p {
    margin: 0;
  }
}
@media (max-width: 450px) {
  .header {
    align-items: center;
  }
  .header-right > .button {
    font-size: 10px;
  }
  .view-toolbar .explore-actions button {
    flex-direction: column;
    text-align: center;
    gap: 4px;
    min-height: 64px;
    padding: 7px 4px;
  }
  .explore-actions .explore-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
  .explore-copy strong {
    font-size: 11px;
  }
  .explore-copy small {
    display: none;
  }
  .scene-shell,
  .split-view .scene-shell {
    height: 430px;
  }
  .planet-navigation {
    left: 8px;
    width: calc(100% - 118px);
    padding: 3px 6px;
    gap: 5px;
  }
  .planet-navigation select {
    font-size: 11px;
    padding: 5px 0;
  }
  .destination-icon {
    flex-basis: 21px;
    width: 21px;
    height: 21px;
  }
  .camera-views {
    right: 8px;
  }
  .camera-views > summary {
    padding: 9px 10px;
    font-size: 11px;
    gap: 8px;
  }
  .time-console .timeline {
    padding: 9px;
  }
  .time-console .time-buttons {
    flex: 1 1 100%;
  }
  .time-console .time-buttons button {
    flex: 1;
  }
  .time-console .speed-field {
    flex: 1 1 100%;
  }
  .time-console .speed-field > span {
    font-size: 10px;
  }
  .time-travel > summary {
    gap: 9px;
  }
  .time-travel summary small {
    display: none;
  }
  .time-console .date-explorer .date-field {
    flex-basis: 100%;
  }
  .summary-copy small {
    font-size: 10px;
  }
  .discovery-heading {
    margin-top: 14px;
  }
  .lunar-map {
    top: 65px;
  }
}
@media (pointer: coarse) {
  .camera-views .view-tabs button,
  .comparison-actions button,
  #immersive-toggle,
  .time-console .time-buttons button,
  .time-console .speed-field select,
  .compact-panel > summary,
  .time-travel > summary {
    min-height: 44px;
  }
}
