:root {
  color-scheme: dark;
  --muted: #8a9992;
  --line: #ffffff18;
  --accent: #bdd7c8;
  --panel: #080f14f5;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 12px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  height: var(--app-height, 100dvh);
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  background: #020405;
  color: #e2e9e5;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:hover {
  background: #ffffff0c;
  color: #fff;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button svg {
  pointer-events: none;
}
a {
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
.icon {
  display: block;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
button > [data-icon] {
  display: inline-flex;
  pointer-events: none;
}
#universe,
canvas,
#labels-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
canvas {
  touch-action: none;
}
header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 58px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#030608e8, #03060870);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1.7px;
  font-weight: 600;
  text-decoration: none;
  color: #edf2ef;
  white-space: nowrap;
}
.mark .icon {
  width: 27px;
  height: 27px;
}
.brand > span:last-child {
  font-size: 9px;
  color: #84958b;
  letter-spacing: 1.8px;
}
.live {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #92a298;
}
i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b5d3c0;
  box-shadow: 0 0 8px #aacdb933;
  margin-right: 7px;
  flex-shrink: 0;
}
.header-actions {
  display: flex;
  gap: 6px;
}
.header-actions button {
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
  background: #070d1190;
}
.header-actions .icon {
  width: 14px;
  height: 14px;
}
.header-actions button[aria-expanded="true"] {
  border-color: #b9d6c64d;
  background: #b9d6c611;
}
aside {
  position: absolute;
  left: 24px;
  top: 88px;
  width: 278px;
  max-height: calc(var(--app-height, 100dvh) - 176px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  background: linear-gradient(90deg, #03080be0 60%, #03080b00);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.explore-closed aside {
  opacity: 0;
  transform: translateX(-12px);
  visibility: hidden;
  pointer-events: none;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.6px;
  font-weight: 500;
  color: #8e9e94;
}
h1 {
  font-size: 23px;
  letter-spacing: -0.9px;
  font-weight: 400;
  margin: 13px 0 8px;
  flex-shrink: 0;
}
.intro {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 230px;
  margin: 0 0 18px;
  flex-shrink: 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #080e12c9;
  color: #91a298;
  flex-shrink: 0;
}
.search input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: #dce6df;
  font-size: 11px;
}
.search:focus-within {
  border-color: #b9d6c666;
}
.search .icon {
  width: 15px;
  height: 15px;
}
kbd {
  font: 10px inherit;
  border: 1px solid #ffffff20;
  padding: 1px 5px;
  border-radius: 3px;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin: 11px 0 7px;
  flex-shrink: 0;
}
.tabs button {
  height: 35px;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
}
.tabs button.active {
  color: #dfebe3;
  border-bottom: 1px solid var(--accent);
}
#objects {
  overflow: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #38433e transparent;
  overscroll-behavior: contain;
}
.object {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 39px;
  padding: 9px 8px;
  gap: 11px;
  text-align: left;
  border-radius: 4px;
  margin: 2px 0;
  border: 1px solid transparent;
}
.object.active {
  background: #a9c7b20e;
  border-color: #a9c7b225;
}
.object .dot {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color);
  box-shadow: inset -4px -3px 7px #000a;
}
.object .name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.object small {
  display: block;
  font-size: 8px;
  color: #798b80;
  margin-top: 3px;
}
.object .distance {
  font-size: 9px;
  color: #81978a;
  white-space: nowrap;
}
.object .distance .icon {
  width: 14px;
  height: 14px;
}
.catalog-foot {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  color: #8a9e91;
  font-size: 9px;
  flex-shrink: 0;
}
.catalog-foot button {
  margin-left: auto;
  width: 32px;
  height: 32px;
}
.catalog-foot .icon {
  width: 15px;
  height: 15px;
}
#result-summary {
  font-size: 9px;
  color: #8c9e92;
  padding: 5px 0;
  flex-shrink: 0;
}
#result-summary:empty {
  display: none;
}
.view-meta {
  position: absolute;
  left: 330px;
  top: 81px;
  z-index: 3;
  max-width: 320px;
}
.explore-closed .view-meta {
  left: 20px;
}
#focus-toggle {
  justify-content: flex-start;
  text-align: left;
  padding: 7px 9px;
  border-radius: 5px;
  gap: 10px;
  max-width: 100%;
  background: #04090c60;
  pointer-events: auto;
}
#focus-toggle > .icon {
  width: 18px;
  height: 18px;
  color: #99b5a5;
}
.focus-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
#focus-name {
  font-size: 11px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.focus-chevron {
  margin-left: 9px;
  color: #8da696;
}
.focus-chevron .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.15s;
}
#focus-toggle[aria-expanded="true"] .focus-chevron .icon {
  transform: rotate(180deg);
}
#details {
  margin: 8px 0 0;
  width: 300px;
  max-width: calc(100vw - 32px);
  padding: 19px;
  background: var(--panel);
  border: 1px solid #ffffff20;
  border-radius: 7px;
  box-shadow: 0 12px 35px #0006;
  max-height: calc(var(--app-height, 100dvh) - 230px);
  overflow: auto;
}
#details h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.detail-caption {
  font-size: 10px;
  line-height: 1.7;
  color: #94a89a;
  margin: 6px 0 13px;
}
dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px;
  font-size: 11px;
  margin: 18px 0;
}
dt {
  color: #8fa295;
}
dd {
  margin: 0;
  color: #d8e4db;
  text-align: right;
}
#live-distance {
  border-top: 1px solid var(--line);
  padding-top: 11px;
  font-variant-numeric: tabular-nums;
}
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.panel-actions button {
  padding: 8px 10px;
  min-height: 33px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10px;
  color: #c1d5c8;
}
.panel-actions .icon {
  width: 14px;
  height: 14px;
}
#control-panel {
  position: absolute;
  top: 70px;
  right: 22px;
  z-index: 6;
  width: 250px;
  padding: 19px;
  background: var(--panel);
  border: 1px solid #ffffff20;
  border-radius: 7px;
  box-shadow: 0 12px 35px #0006;
  max-height: calc(var(--app-height, 100dvh) - 150px);
  overflow: auto;
}
#control-panel label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 17px 0;
  color: #adbbb3;
  font-size: 11px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 20px;
  margin: 5px 0 0;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}
.view-tools {
  position: absolute;
  right: 22px;
  bottom: 84px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #070e12b0;
  overflow: hidden;
}
.view-tools button {
  width: 35px;
  height: 35px;
  border-bottom: 1px solid var(--line);
}
.view-tools button:last-child {
  border-bottom: 0;
}
.view-tools .icon {
  width: 16px;
  height: 16px;
}
footer {
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  height: 62px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: #050b10df;
}
.time-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}
.date-control {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#date {
  display: block;
  width: 140px;
  min-height: 23px;
  padding: 0;
  background: none;
  border: 0;
  color: #d7e2db;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.date-control .eyebrow {
  font-size: 7px;
  letter-spacing: 1px;
}
#play {
  width: 32px;
  height: 32px;
  border: 1px solid #ffffff30;
  border-radius: 50%;
}
#play .icon {
  width: 14px;
  height: 14px;
}
.divider {
  height: 25px;
  border-left: 1px solid var(--line);
}
.speed-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}
.speed-controls button {
  min-height: 32px;
}
#slower,
#faster {
  width: 26px;
  padding: 0;
}
#slower .icon,
#faster .icon {
  width: 14px;
  height: 14px;
}
#speed {
  font-size: 10px;
  min-width: 94px;
  font-variant-numeric: tabular-nums;
}
#now {
  font-size: 10px;
  min-height: 32px;
  color: #9fb2a5;
}
#now .icon {
  width: 13px;
  height: 13px;
}
.hints {
  font-size: 9px;
  color: #7d9284;
  white-space: nowrap;
}
.hints span {
  padding: 0 8px;
  color: #4e6455;
}
.label {
  position: absolute;
  font-size: 10px;
  color: #b8c8bd;
  white-space: nowrap;
  text-shadow: 0 1px 5px #000;
  pointer-events: none;
}
.label:before {
  content: "";
  display: inline-block;
  width: 13px;
  border-top: 1px solid #a9b8ae40;
  margin: 0 5px 3px 0;
}
#labels-layer {
  pointer-events: none;
}
#modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #000b;
  backdrop-filter: blur(9px);
  display: grid;
  place-items: center;
  padding: 20px;
}
article {
  max-width: 500px;
  max-height: 90dvh;
  overflow: auto;
  background: #0a1217;
  border: 1px solid #ffffff25;
  border-radius: 8px;
  padding: 30px;
  color: #a7b9ad;
  line-height: 1.9;
  font-size: 12px;
}
article h2 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 400;
  color: #e2ece6;
  margin: 16px 0;
}
#close-modal {
  float: right;
  width: 32px;
  height: 32px;
}
.fallback,
#loading {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 80vw;
  color: #bcd2c3;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 1.4px;
  padding: 16px;
  background: #050b10e0;
  border-radius: 5px;
}
@media (max-width: 900px) {
  .hints {
    display: none;
  }
  .live {
    display: none;
  }
}
@media (max-width: 800px) {
  header {
    height: calc(50px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0;
    gap: 8px;
  }
  .brand {
    font-size: 11px;
    gap: 6px;
    letter-spacing: 1.3px;
  }
  .brand > span:last-child {
    display: none;
  }
  .mark .icon {
    width: 23px;
    height: 23px;
  }
  .header-actions button {
    height: 34px;
    padding: 0 9px;
    font-size: 10px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions .icon {
    width: 13px;
    height: 13px;
  }
  aside {
    top: calc(70px + env(safe-area-inset-top));
    left: 16px;
    width: min(278px, calc(100vw - 74px));
    max-height: calc(
      var(--app-height, 100dvh) - 148px - env(safe-area-inset-top) -
        env(safe-area-inset-bottom)
    );
  }
  .intro {
    display: none;
  }
  h1 {
    font-size: 21px;
    margin: 11px 0 9px;
  }
  .search {
    margin-top: 13px;
    min-height: 38px;
    padding: 7px 9px;
  }
  .search input {
    font-size: 16px;
  }
  .tabs {
    gap: 20px;
  }
  .tabs button {
    height: 36px;
    font-size: 10px;
  }
  .object {
    min-height: 39px;
    font-size: 11px;
    padding: 9px 7px;
    gap: 10px;
  }
  .object .distance {
    font-size: 8px;
  }
  .catalog-foot {
    font-size: 8px;
    min-height: 38px;
  }
  .view-meta,
  .explore-closed .view-meta {
    left: 12px;
    top: calc(64px + env(safe-area-inset-top));
    max-width: calc(100vw - 24px);
  }
  body:not(.explore-closed) .view-meta {
    visibility: hidden;
  }
  #focus-toggle {
    padding: 6px;
    gap: 8px;
  }
  #focus-name {
    font-size: 10px;
    max-width: 220px;
  }
  #focus-toggle .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  #details {
    width: 285px;
    padding: 17px;
    max-height: calc(
      var(--app-height, 100dvh) - 190px - env(safe-area-inset-top) -
        env(safe-area-inset-bottom)
    );
  }
  #details h2 {
    font-size: 17px;
  }
  dl {
    font-size: 10px;
    gap: 9px;
  }
  .view-tools {
    right: 12px;
    bottom: calc(77px + env(safe-area-inset-bottom));
  }
  .view-tools button {
    width: 35px;
    height: 35px;
  }
  #control-panel {
    top: calc(61px + env(safe-area-inset-top));
    right: 12px;
    max-height: calc(var(--app-height, 100dvh) - 145px);
    width: min(260px, calc(100vw - 24px));
    padding: 18px;
  }
  footer {
    height: calc(58px + env(safe-area-inset-bottom));
    padding: 4px 10px calc(4px + env(safe-area-inset-bottom));
    gap: 0;
  }
  .time-controls {
    display: grid;
    grid-template-columns: 30px minmax(104px, 1fr) auto 27px;
    gap: 5px;
    width: 100%;
  }
  .date-control .eyebrow {
    font-size: 6px;
    letter-spacing: 0.5px;
  }
  #date {
    width: 100%;
    max-width: 140px;
    font-size: 11px;
    min-height: 23px;
  }
  #play {
    width: 29px;
    height: 29px;
  }
  .divider {
    display: none;
  }
  .speed-controls {
    gap: 0;
  }
  #slower,
  #faster {
    width: 21px;
  }
  #speed {
    font-size: 9px;
    min-width: 78px;
    padding: 0;
  }
  #now {
    width: 27px;
    padding: 0;
  }
  #now > span:last-child {
    display: none;
  }
  #now .icon {
    width: 15px;
    height: 15px;
  }
  .label {
    font-size: 9px;
  }
  article {
    padding: 23px;
    font-size: 11px;
  }
  article h2 {
    font-size: 22px;
  }
}
@media (max-width: 360px) {
  .header-actions button {
    padding: 0 7px;
  }
  .time-controls {
    grid-template-columns: 28px minmax(91px, 1fr) auto 23px;
    gap: 3px;
  }
  #speed {
    min-width: 69px;
    font-size: 8px;
  }
  #slower,
  #faster {
    width: 18px;
  }
  .header-actions {
    gap: 4px;
  }
}
@media (max-height: 500px) and (max-width: 950px) {
  aside {
    top: 62px;
    max-height: calc(var(--app-height, 100dvh) - 133px);
  }
  aside > .eyebrow,
  aside h1 {
    display: none;
  }
  .search {
    margin-top: 0;
  }
  .view-meta,
  .explore-closed .view-meta {
    top: 58px;
  }
  .view-tools {
    flex-direction: row;
  }
  #details {
    max-height: calc(var(--app-height, 100dvh) - 150px);
  }
  #control-panel {
    max-height: calc(var(--app-height, 100dvh) - 133px);
  }
}
@media (prefers-reduced-motion: reduce) {
  aside,
  .focus-chevron .icon {
    transition: none;
  }
}
/* Keep keyboard focus and off-screen labels from scrolling the app viewport. */
body {
  position: fixed;
  inset: 0;
}
#labels-layer {
  overflow: hidden;
  contain: layout paint;
}
#universe {
  overflow: hidden;
}
/* Unified floating panels */
:root {
  --panel: #0c141bed;
  --panel-border: #b8d6c51f;
  --panel-radius: 14px;
}
#catalog,
#control-panel,
#details {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow:
    0 16px 48px #0005,
    inset 0 1px #ffffff05;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
#catalog {
  padding: 20px;
  width: 300px;
  top: 80px;
  left: 20px;
  max-height: calc(var(--app-height, 100dvh) - 160px);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  margin-bottom: 16px;
}
.panel-heading h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: 7px 0 0;
}
.panel-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #8da69a;
}
.panel-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #ffffff0d;
  border-radius: 50%;
  color: #96aea0;
  flex-shrink: 0;
}
.panel-close .icon {
  width: 13px;
  height: 13px;
}
.panel-close:hover {
  background: #ffffff12;
  color: #e3efe7;
}
#catalog .panel-heading {
  margin-bottom: 0;
}
#catalog h1 {
  font-size: 21px;
  margin-top: 12px;
}
#catalog .intro {
  font-size: 10px;
  margin-bottom: 16px;
  line-height: 1.7;
}
.search {
  background: #03090e66;
  border-color: #bed3c61c;
  border-radius: 8px;
  padding: 10px;
}
.tabs {
  gap: 4px;
  padding: 3px;
  background: #02080c70;
  border: 1px solid #ffffff09;
  border-radius: 8px;
  margin: 12px 0;
}
.tabs button {
  flex: 1;
  height: 30px;
  padding: 0;
  font-size: 10px;
  border: 0 !important;
  border-radius: 5px;
}
.tabs button.active {
  background: #a6c6b317;
  color: #daeae0;
  box-shadow: 0 1px 4px #0003;
}
.object {
  padding: 10px 9px;
  min-height: 42px;
  border-radius: 7px;
  margin: 2px 0;
}
.object.active {
  background: #adcdb315;
  border-color: #b2cbb91a;
}
.catalog-foot {
  font-size: 8px;
  margin-top: 10px;
  min-height: 35px;
}
#control-panel {
  top: 70px;
  right: 20px;
  width: 300px;
  padding: 20px;
}
.brightness-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px;
  padding: 14px;
  border: 1px solid #ffffff0a;
  background: #ffffff03;
  border-radius: 9px;
  margin: 0 0 20px;
}
.brightness-control label {
  margin: 0 !important;
  font-size: 11px !important;
}
.brightness-control output {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: #c3dccd;
}
.brightness-control input {
  grid-column: 1 / -1;
  margin: 0;
}
.range-hints {
  display: flex;
  justify-content: space-between;
  grid-column: 1 / -1;
  color: #7f9689;
  font-size: 8px;
}
.settings-group > .eyebrow {
  display: block;
  margin: 0 0 5px 2px;
}
#control-panel .setting-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 11px;
  margin: 0;
  min-height: 62px;
  border-bottom: 1px solid #ffffff08;
}
.setting-row:last-child {
  border: 0 !important;
}
.setting-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #b4d2be08;
  color: #91af9d;
  flex-shrink: 0;
}
.setting-icon .icon {
  width: 15px;
  height: 15px;
}
.setting-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #ccdbd1;
  font-size: 11px;
}
.setting-copy small {
  font-size: 9px;
  color: #7e9688;
  font-weight: 400;
}
.setting-row input[role="switch"] {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 18px;
  position: relative;
  background: #2a3437;
  border: 1px solid #ffffff0a;
  border-radius: 12px;
  margin: 0;
  flex-shrink: 0;
  transition: background 0.15s;
}
.setting-row input[role="switch"]:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 10px;
  height: 10px;
  background: #87958e;
  border-radius: 50%;
  transition:
    transform 0.15s,
    background 0.15s;
}
.setting-row input[role="switch"]:checked {
  background: #8fb79c;
}
.setting-row input[role="switch"]:checked:before {
  background: #102218;
  transform: translateX(12px);
}
.panel-actions {
  margin-top: 16px;
  display: flex;
  gap: 7px;
}
.panel-actions button {
  flex: 1;
  border-radius: 7px;
  background: #c3dbc407;
  border-color: #bdd4c519;
  min-height: 35px;
  font-size: 10px;
  padding: 8px;
}
.panel-actions button:hover {
  background: #c3dbc414;
}
#details {
  padding: 20px;
  width: 300px;
}
#details .panel-heading {
  align-items: flex-start;
  margin-bottom: 5px;
}
#details h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}
#details .detail-caption {
  font-size: 10px;
  color: #8fa797;
  margin: 7px 0 14px;
  line-height: 1.65;
}
#details dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 16px 0;
  border: 1px solid #ffffff0c;
  border-radius: 9px;
  overflow: hidden;
  background: #ffffff02;
}
#details dt,
#details dd {
  padding: 11px 12px;
  border-bottom: 1px solid #ffffff07;
  font-size: 10px;
}
#details dt {
  color: #829a8c;
}
#details dd {
  color: #d6e4db;
  font-variant-numeric: tabular-nums;
}
#details dt:nth-last-child(2),
#details dd:last-child {
  border-bottom: 0;
}
#details #live-distance {
  border: 0;
  margin: 10px 0;
  padding: 0;
  font-size: 9px;
}
footer {
  height: 58px;
  background: #070e14e8;
  border-color: #b6cebe12;
}
.time-controls {
  gap: 12px;
}
.date-control .eyebrow {
  font-size: 6px;
  letter-spacing: 1px;
  color: #7f998a;
}
#date {
  font-size: 11px;
}
#speed {
  font-size: 10px;
  min-width: 90px;
}
.speed-controls {
  border: 1px solid #c5d8cb12;
  border-radius: 7px;
  padding: 0 2px;
  background: #ffffff02;
}
#slower,
#faster {
  width: 25px;
}
.speed-controls button {
  min-height: 30px;
}
#now {
  font-size: 9px;
}
.hints {
  font-size: 8px;
}
.view-tools {
  border-radius: 9px;
  background: #0b141bd9;
  border-color: #b8d6c51c;
}
.view-tools button {
  width: 36px;
  height: 36px;
}
.view-tools button:hover {
  background: #bdd7c70e;
}
#exit-immersive {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  z-index: 30;
  min-height: 40px;
  padding: 0 13px;
  gap: 9px;
  background: #091119cc;
  border: 1px solid #c6decd33;
  border-radius: 24px;
  color: #caddd0;
  backdrop-filter: blur(16px);
  font-size: 11px;
  box-shadow: 0 4px 20px #0004;
}
#exit-immersive .icon {
  width: 16px;
  height: 16px;
}
.immersive header,
.immersive footer,
.immersive #catalog,
.immersive #control-panel,
.immersive .view-meta,
.immersive .view-tools {
  display: none !important;
}
@media (max-width: 800px) {
  #catalog,
  #control-panel {
    top: calc(62px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    width: auto;
    padding: 18px;
    max-height: calc(
      var(--app-height, 100dvh) - 134px - env(safe-area-inset-top) -
        env(safe-area-inset-bottom)
    );
    border-radius: 13px;
  }
  #catalog h1 {
    font-size: 20px;
    margin: 8px 0 4px;
  }
  #catalog .panel-heading {
    margin-bottom: 2px;
  }
  #catalog .search {
    margin-top: 12px;
  }
  #catalog .intro {
    display: none;
  }
  .object {
    min-height: 42px;
  }
  .tabs button {
    height: 32px;
  }
  .panel-heading h2 {
    font-size: 18px;
  }
  #control-panel .setting-row {
    min-height: 59px;
  }
  .setting-copy {
    font-size: 11px;
  }
  .setting-copy small {
    font-size: 9px;
  }
  .brightness-control {
    padding: 13px;
    margin-bottom: 16px;
  }
  .panel-actions button {
    min-height: 38px;
  }
  #details {
    width: calc(100vw - 24px);
    max-width: 340px;
    padding: 18px;
    margin-top: 8px;
    max-height: calc(
      var(--app-height, 100dvh) - 177px - env(safe-area-inset-top) -
        env(safe-area-inset-bottom)
    );
  }
  .view-meta {
    z-index: 4;
  }
  .view-meta:has(#details:not([hidden])) {
    max-width: calc(100% - 24px);
  }
  footer {
    height: calc(54px + env(safe-area-inset-bottom));
    padding: 4px 10px calc(4px + env(safe-area-inset-bottom));
  }
  .time-controls {
    grid-template-columns: 29px minmax(91px, 1fr) auto 26px;
    gap: 7px;
  }
  .date-control {
    gap: 2px;
  }
  .date-control .eyebrow {
    font-size: 6px;
    letter-spacing: 0.45px;
  }
  #date {
    font-size: 11px;
    min-height: 22px;
    max-width: 140px;
  }
  #speed {
    min-width: 70px;
    font-size: 9px;
  }
  .speed-controls {
    padding: 0 1px;
  }
  #slower,
  #faster {
    width: 20px;
  }
  .speed-controls button {
    min-height: 29px;
  }
  #play {
    width: 29px;
    height: 29px;
  }
  #now {
    width: 26px;
  }
  .view-tools {
    bottom: calc(70px + env(safe-area-inset-bottom));
    right: 12px;
  }
  .view-tools button {
    width: 35px;
    height: 35px;
  }
  #exit-immersive {
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    min-height: 40px;
  }
  #catalog .catalog-foot {
    margin-top: 7px;
  }
  .panel-close {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 350px) {
  .time-controls {
    grid-template-columns: 28px minmax(80px, 1fr) auto 22px;
    gap: 4px;
  }
  #speed {
    min-width: 61px;
    font-size: 8px;
  }
  #slower,
  #faster {
    width: 17px;
  }
  #catalog,
  #control-panel {
    padding: 15px;
  }
  .setting-copy small {
    font-size: 8px;
  }
}
@media (max-height: 540px) {
  #catalog,
  #control-panel {
    max-height: calc(var(--app-height, 100dvh) - 136px);
  }
  #catalog .panel-heading {
    display: none;
  }
  #control-panel .setting-row {
    min-height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .setting-row input[role="switch"],
  .setting-row input[role="switch"]:before {
    transition: none;
  }
}
/* Restore the original open Explore language across every panel. */
#catalog,
#control-panel,
#details {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: linear-gradient(
    90deg,
    #03090eeb 0%,
    #03090ed9 72%,
    #03090e70 100%
  );
}
#catalog {
  padding: 16px 18px 8px;
  left: 12px;
  top: 78px;
  width: 300px;
}
#catalog h1 {
  font-size: 23px;
  font-weight: 400;
  margin: 13px 0 9px;
}
#catalog .intro {
  font-size: 11px;
  margin-bottom: 19px;
  line-height: 1.8;
}
.panel-heading {
  margin-bottom: 17px;
}
.panel-heading h2 {
  font-size: 20px;
  font-weight: 400;
  margin-top: 10px;
}
.panel-close {
  border: 0;
  border-radius: 4px;
  color: #81988b;
  width: 28px;
  height: 28px;
}
.panel-close:hover {
  background: #ffffff0a;
}
.panel-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.6px;
}
#catalog .panel-heading {
  margin-bottom: 0;
}
.search {
  border: 1px solid #ffffff1c;
  border-radius: 5px;
  background: #090f14a6;
  padding: 10px 11px;
}
.tabs {
  padding: 0;
  gap: 22px;
  margin: 13px 0 8px;
  border: 0;
  border-bottom: 1px solid #ffffff18;
  background: none;
  border-radius: 0;
}
.tabs button {
  flex: initial;
  height: 36px;
  border-radius: 0;
  padding: 0;
  font-size: 11px;
  box-shadow: none;
}
.tabs button.active {
  background: none;
  box-shadow: none;
  border-bottom: 1px solid #bdd7c8 !important;
}
.object {
  border-radius: 4px;
  padding: 10px 8px;
  min-height: 41px;
}
.object.active {
  background: #a9c7b20e;
  border-color: #a9c7b225;
}
.catalog-foot {
  border-color: #ffffff15;
  min-height: 39px;
}
#control-panel {
  padding: 20px;
  right: 20px;
  width: 290px;
  top: 70px;
}
.brightness-control {
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid #ffffff12;
  border-radius: 0;
  background: none;
  margin: 0 0 20px;
  gap: 12px;
}
.brightness-control label {
  font-size: 11px !important;
}
.settings-group > .eyebrow {
  margin-left: 0;
  font-size: 8px;
}
.setting-icon {
  background: none;
  border-radius: 0;
  width: 20px;
  height: 24px;
  color: #829d8c;
}
.setting-icon .icon {
  width: 16px;
  height: 16px;
}
#control-panel .setting-row {
  gap: 10px;
  min-height: 60px;
  border-color: #ffffff09;
}
.setting-copy {
  font-size: 11px;
}
.setting-copy small {
  font-size: 9px;
}
.panel-actions {
  padding-top: 3px;
  gap: 9px;
}
.panel-actions button {
  border: 1px solid #ffffff1b;
  border-radius: 4px;
  background: none;
  min-height: 34px;
  font-size: 10px;
}
.panel-actions button:hover {
  background: #ffffff09;
}
#details {
  padding: 18px 20px;
  width: 300px;
}
#details h2 {
  font-size: 19px;
  font-weight: 400;
}
#details dl {
  border: 0;
  border-radius: 0;
  background: none;
  margin: 17px 0;
}
#details dt,
#details dd {
  padding: 10px 0;
  border-bottom: 1px solid #ffffff0c;
}
#details #live-distance {
  padding-top: 11px;
  border-top: 1px solid #ffffff12;
}
.detail-caption {
  color: #899e90;
}
@media (max-width: 800px) {
  #catalog,
  #control-panel {
    top: calc(64px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    width: auto;
    padding: 17px 18px 10px;
    max-height: calc(
      var(--app-height, 100dvh) - 136px - env(safe-area-inset-top) -
        env(safe-area-inset-bottom)
    );
  }
  #catalog h1 {
    font-size: 21px;
    margin: 11px 0 8px;
  }
  #catalog .intro {
    display: none;
  }
  #catalog .search {
    margin-top: 14px;
  }
  .tabs {
    gap: 22px;
  }
  .tabs button {
    height: 36px;
    font-size: 11px;
  }
  .object {
    min-height: 41px;
    padding: 10px 7px;
  }
  .panel-heading h2 {
    font-size: 19px;
  }
  #control-panel .setting-row {
    min-height: 57px;
  }
  .brightness-control {
    padding-bottom: 16px;
    margin-bottom: 17px;
  }
  .panel-actions button {
    min-height: 36px;
  }
  #details {
    padding: 18px;
    width: calc(100vw - 24px);
    max-width: 320px;
  }
  #details h2 {
    font-size: 18px;
  }
  #details dt,
  #details dd {
    font-size: 10px;
    padding: 10px 0;
  }
  .panel-close {
    width: 30px;
    height: 30px;
  }
}
.app-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  border-top: 1px solid #ffffff10;
  margin-top: 18px;
  padding-top: 14px;
  font-size: 9px;
  color: #7f9989;
}
.app-controls > span {
  flex: 1;
  min-width: 110px;
}
.app-controls button {
  font-size: 9px;
  border: 1px solid #ffffff20;
  border-radius: 4px;
  padding: 7px 9px;
  color: #bad2c1;
}
.immersive .app-controls {
  display: none;
}
@media (max-width: 800px) {
  .settings-open .view-meta {
    visibility: hidden !important;
  }
  .settings-open .view-tools,
  .details-open .view-tools,
  body:not(.explore-closed) .view-tools {
    display: none;
  }
}
/* Avoid ghosted camera buttons behind the transparent desktop settings panel. */
.settings-open .view-tools{display:none}
