/* Keep every service readable if enhancement is unavailable. */
#explore-dialog:not(.windows-ready) .service-window {
  padding: 24px 0;
  border-bottom: 1px solid #c8dce222;
}
#explore-dialog:not(.windows-ready) .service-window-icon svg {
  width: 48px;
  height: 48px;
}
#explore-dialog .service-controls[hidden] { display: none; }

/* The service observatory: real content in a manually navigated glass-window deck. */
#explore-dialog.windows-ready {
  --window-ice: #c6e8ed;
  --window-ivory: #eee7d7;
  width: min(1040px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid #d5e5e449;
  border-radius: 30px;
  color: #f0f1eb;
  background:
    radial-gradient(ellipse at 8% 3%, #bed9d51c, transparent 44%),
    radial-gradient(ellipse at 97% 50%, #7ca6c21a, transparent 54%),
    linear-gradient(140deg, #151c22fa, #080e15fc 56%, #101820fc);
  box-shadow: 0 50px 150px #000c, 0 0 0 5px #d8e3e403, inset 0 1px #f4f1e51c;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #61727c #0b1219;
}

#explore-dialog.windows-ready::backdrop {
  background: #02060bd9;
  backdrop-filter: blur(18px) saturate(.7);
}

#explore-dialog.windows-ready .station-explore-inner {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 38px 40px 32px;
}

#explore-dialog.windows-ready .station-explore-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#e7f1ef4a .65px, transparent .85px);
  background-size: 71px 83px;
  mask-image: linear-gradient(#0009, transparent 65%);
  opacity: .5;
}

#explore-dialog.windows-ready .close-button {
  top: 23px;
  right: 22px;
  width: 43px;
  height: 43px;
  z-index: 4;
  background: #e5ecea08;
  border: 1px solid #d7e5e438;
  border-radius: 50%;
  color: #dce8e8;
  box-shadow: inset 0 1px #fff1;
}

#explore-dialog.windows-ready .close-button:hover {
  background: #e5ecea14;
  border-color: #d7e5e47a;
}

#explore-dialog.windows-ready .eyebrow {
  margin: 0 55px 0 0;
  font: 10px/1.5 "Courier New", monospace;
  letter-spacing: .18em;
  color: #b4c7cc;
}

#explore-dialog.windows-ready h2 {
  max-width: 790px;
  margin: 17px 40px 12px 0;
  padding: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 350;
  line-height: 1.14;
  letter-spacing: -.055em;
  text-wrap: balance;
  color: #f0f0e9;
}

#explore-dialog.windows-ready .station-explore-intro {
  max-width: 790px;
  color: #b6c3cc;
  font-size: .82rem;
  line-height: 1.8;
  margin: 0;
}

#explore-dialog.windows-ready .service-windows {
  position: relative;
  min-width: 0;
  margin: 25px -40px 0;
  padding: 0 0 2px;
  outline: none;
}

#explore-dialog.windows-ready .service-windows:focus-visible {
  outline: 2px solid #c6e8ed;
  outline-offset: -5px;
  border-radius: 20px;
}

#explore-dialog.windows-ready .service-deck {
  position: relative;
  isolation: isolate;
  height: 406px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  perspective: 1500px;
  touch-action: pan-y;
}

#explore-dialog.windows-ready .service-deck::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 91%;
  height: 200px;
  left: 4.5%;
  bottom: -100px;
  border: 1px solid #a8cedb2b;
  border-radius: 50%;
  box-shadow: 0 0 0 18px #b5d5dd03, 0 0 0 42px #b5d5dd03, 0 -18px 95px #b5d5dd08;
  transform: rotate(-6deg);
  pointer-events: none;
}

#explore-dialog.windows-ready .service-window {
  --window-offset: 0;
  --window-accent: #cae5e7;
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 15px;
  left: 50%;
  width: min(710px, calc(100% - 136px));
  height: calc(100% - 37px);
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  border: 1px solid #d1e2e657;
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 95% 0%, #b5d9e113, transparent 58%),
    linear-gradient(128deg, #29353de8, #111c25f7 48%, #111a23fa);
  box-shadow: 0 28px 55px #0008, 0 0 0 4px #e7f0e904, inset 0 1px #eaf4f31f;
  overflow: hidden;
  backface-visibility: hidden;
  transform: translateX(calc(-50% + var(--window-offset) * 83%)) translateZ(-130px) rotateY(calc(var(--window-offset) * -11deg)) scale(.87);
  transform-origin: 50% 50%;
  opacity: .28;
  filter: blur(.7px) saturate(.65);
  transition: transform .65s cubic-bezier(.22,.76,.2,1), opacity .5s ease, filter .5s ease, border-color .5s ease;
}

#explore-dialog.windows-ready .service-window[data-service="maps"],
#explore-dialog.windows-ready .service-window[data-service-key="maps"] {
  --window-accent: #b4d5e7;
}

#explore-dialog.windows-ready .service-window[data-service="content"],
#explore-dialog.windows-ready .service-window[data-service-key="content"] {
  --window-accent: #e7dcc1;
}

#explore-dialog.windows-ready .service-window[data-service="advertising"],
#explore-dialog.windows-ready .service-window[data-service-key="advertising"] {
  --window-accent: #c2cedf;
}

#explore-dialog.windows-ready .service-window.is-active {
  z-index: 3;
  opacity: 1;
  filter: none;
  border-color: #d9e8e477;
  transform: translateX(-50%) translateZ(0) rotateY(0) scale(1);
  box-shadow: 0 27px 70px #0009, 0 0 45px #bfd7db09, 0 0 0 4px #e7f0e905, inset 0 1px #f2f7ef38;
}

#explore-dialog.windows-ready .service-window.is-near {
  z-index: 2;
}

#explore-dialog.windows-ready .service-window.is-far {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-50% + var(--window-offset) * 83%)) translateZ(-250px) rotateY(calc(var(--window-offset) * -10deg)) scale(.76);
}

#explore-dialog.windows-ready .service-window:not(.is-active) {
  pointer-events: none;
}

#explore-dialog.windows-ready .service-window::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 18%;
  width: 44%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f2f0dca6, transparent);
  pointer-events: none;
}

#explore-dialog.windows-ready .service-window-top {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 23px;
  color: #b8cbd1;
  border-bottom: 1px solid #c5dce019;
  background: linear-gradient(90deg, #e7eeed06, #e7eeed00);
  font: 9px/1.5 "Courier New", monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#explore-dialog.windows-ready .service-window-top > span {
  min-width: 0;
}

#explore-dialog.windows-ready .service-window-top > :last-child {
  margin-left: auto;
}

#explore-dialog.windows-ready .service-window-lights,
#explore-dialog.windows-ready .service-window-dots-chrome,
#explore-dialog.windows-ready .window-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 31px;
  flex: 0 0 auto;
}

#explore-dialog.windows-ready .service-window-lights i,
#explore-dialog.windows-ready .service-window-dots-chrome i,
#explore-dialog.windows-ready .window-chrome i {
  display: block;
  width: 4px;
  height: 4px;
  border: 1px solid #d7e7e75c;
  border-radius: 50%;
}

#explore-dialog.windows-ready .service-window-lights i:first-child,
#explore-dialog.windows-ready .service-window-dots-chrome i:first-child,
#explore-dialog.windows-ready .window-chrome i:first-child {
  background: #dfebdc;
  border-color: #dfebdc;
  box-shadow: 0 0 8px #dfebdc30;
}

#explore-dialog.windows-ready .service-window-body {
  position: relative;
  display: flex;
  min-height: 0;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 32px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #627b85 transparent;
}

#explore-dialog.windows-ready .service-window-body:focus-visible {
  outline: 2px solid #c6e8ed;
  outline-offset: -5px;
}

#explore-dialog.windows-ready .service-window-icon {
  display: grid;
  place-items: center;
  position: absolute;
  top: 25px;
  right: 31px;
  width: 66px;
  height: 66px;
  border: 1px solid #c6e1e12c;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #f1eddb16, transparent 73%);
  color: var(--window-accent);
  box-shadow: inset -8px -9px 20px #070d143b, 0 0 35px #c5e4de06;
}

#explore-dialog.windows-ready .service-window-icon::before {
  content: "";
  position: absolute;
  inset: 14px -11px;
  border: 1px solid #c6e1e128;
  border-radius: 50%;
  transform: rotate(-33deg);
}

#explore-dialog.windows-ready .service-window-icon::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--window-accent);
  box-shadow: 0 0 10px #d5ece744;
}

#explore-dialog.windows-ready .service-window-icon svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.1;
}

#explore-dialog.windows-ready .service-window-body > p.service-window-kicker {
  display: block;
  max-width: calc(100% - 85px);
  color: var(--window-accent);
  font: 9px/1.5 "Courier New", monospace;
  letter-spacing: .17em;
  text-transform: uppercase;
  margin: 0 0 9px;
}

#explore-dialog.windows-ready .service-window h3 {
  max-width: calc(100% - 80px);
  margin: 0 0 17px;
  color: #f0f2ed;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

#explore-dialog.windows-ready .service-window-body > p {
  color: #c1ccd3;
  margin: 0 0 15px;
  max-width: 100%;
  font-size: .79rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

#explore-dialog.windows-ready .service-window .ledger-price {
  display: block;
  max-width: 100%;
  margin: auto 0 0;
  padding-top: 13px;
  border-top: 1px solid #cadbdd1e;
  color: #e9e2cf;
  font: 10px/1.7 "Courier New", monospace;
  letter-spacing: .015em;
}

#explore-dialog.windows-ready .service-window-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 35px;
  width: 100%;
  margin-top: auto;
  padding: 9px 0 0;
  border-top: 1px solid #bed8df15;
  color: #94aab6;
  background: transparent;
  font: 8px/1.5 "Courier New", monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

#explore-dialog.windows-ready .service-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-width: 0;
  margin: 2px 35px 0;
}

#explore-dialog.windows-ready .service-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #c7dce13b;
  border-radius: 50%;
  background: linear-gradient(145deg, #edf1e60c, #15212b4f);
  color: #dfe9e6;
  box-shadow: inset 0 1px #ecf5f017;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

#explore-dialog.windows-ready .service-arrow:hover {
  border-color: #d4e7e47a;
  background: #d4e6e014;
}

#explore-dialog.windows-ready .service-arrow:active {
  transform: scale(.94);
}

#explore-dialog.windows-ready .service-arrow svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.4;
}

#explore-dialog.windows-ready .service-window-count {
  min-width: 56px;
  color: #c9d9dc;
  font: 11px/1.5 "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  text-align: center;
  letter-spacing: .12em;
}

#explore-dialog.windows-ready .service-window-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

#explore-dialog.windows-ready .service-window-dots {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
}

#explore-dialog.windows-ready .service-window-dots button {
  display: grid;
  place-items: center;
  position: relative;
  width: 35px;
  min-width: 35px;
  height: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  color: transparent;
  font-size: 0;
}

#explore-dialog.windows-ready .service-window-dots button::after {
  content: "";
  width: 5px;
  height: 5px;
  border: 1px solid #b6cfd34f;
  border-radius: 50%;
  background: #b6cfd30a;
  transition: width .35s ease, background .35s ease, border-radius .35s ease;
}

#explore-dialog.windows-ready .service-window-dots button[aria-current="true"]::after {
  width: 23px;
  height: 3px;
  border-radius: 3px;
  border-color: #e6e9d9;
  background: #e6e9d9;
  box-shadow: 0 0 13px #d7e9dc28;
}

#explore-dialog.windows-ready .service-window-dots button:hover::after {
  background: #cbded6a6;
}

#explore-dialog.windows-ready .service-navigation-hint {
  margin: 0;
  color: #8fa5b2;
  font-size: .66rem;
  line-height: 1.7;
  text-align: center;
}

#explore-dialog.windows-ready .service-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

#explore-dialog.windows-ready .system-service-links {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  margin: 20px 0 0;
  padding: 11px 0 0;
  gap: 3px 21px;
  border: 0;
  border-top: 1px solid #c8dce222;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#explore-dialog.windows-ready .system-service-links a {
  min-height: 44px;
  padding: 3px 0;
  font-size: .7rem;
}

#explore-dialog.windows-ready .service-brief {
  margin: 21px 0 0;
  border-top: 1px solid #c8dce222;
  border-bottom: 1px solid #c8dce217;
}

#explore-dialog.windows-ready .service-brief > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 51px;
  padding: 13px 0;
  color: #c5d4d9;
  font-size: .74rem;
  font-weight: 450;
  cursor: pointer;
  list-style: none;
}

#explore-dialog.windows-ready .service-brief > summary::-webkit-details-marker {
  display: none;
}

#explore-dialog.windows-ready .service-brief > summary > span {
  display: none;
}

#explore-dialog.windows-ready .service-brief > summary::after {
  content: "+";
  flex-shrink: 0;
  color: #d6dfd1;
  font: 19px/1 "Courier New", monospace;
}

#explore-dialog.windows-ready .service-brief[open] > summary::after {
  content: "−";
}

#explore-dialog.windows-ready .service-brief .station-service-notes {
  border: 0;
  padding: 7px 0 0;
}

#explore-dialog.windows-ready .service-brief .station-explore-operator {
  padding-block: 17px 22px;
  margin-top: 20px;
}

#explore-dialog.windows-ready .station-explore-cta {
  min-height: 48px;
  margin-top: 22px;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(120deg, #f0ebd9, #d3e0dd);
  border: 1px solid #f2f1df91;
  box-shadow: 0 8px 25px #0003, inset 0 1px #fff8;
  color: #122028;
}

@media (max-width: 760px) {
  #explore-dialog.windows-ready {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 23px;
  }

  #explore-dialog.windows-ready .station-explore-inner {
    padding: 30px 25px 27px;
  }

  #explore-dialog.windows-ready .close-button {
    top: 15px;
    right: 14px;
    width: 39px;
    height: 39px;
  }

  #explore-dialog.windows-ready h2 {
    font-size: clamp(1.8rem, 5.1vw, 2.5rem);
    margin-top: 20px;
    margin-right: 12px;
  }

  #explore-dialog.windows-ready .station-explore-intro {
    font-size: .77rem;
    line-height: 1.8;
  }

  #explore-dialog.windows-ready .service-windows {
    margin: 22px -25px 0;
  }

  #explore-dialog.windows-ready .service-window {
    width: calc(100% - 82px);
    border-radius: 16px;
  }

  #explore-dialog.windows-ready .service-window-body {
    padding: 23px 25px 19px;
  }

  #explore-dialog.windows-ready .service-window h3 {
    font-size: 1.5rem;
  }

  #explore-dialog.windows-ready .service-window-icon {
    right: 24px;
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 520px) {
  #explore-dialog.windows-ready .station-explore-inner {
    padding: 28px 20px 24px;
  }

  #explore-dialog.windows-ready .eyebrow {
    font-size: 8px;
    letter-spacing: .14em;
  }

  #explore-dialog.windows-ready h2 {
    max-width: 100%;
    margin-top: 25px;
    margin-right: 0;
    font-size: 1.95rem;
    line-height: 1.13;
  }

  #explore-dialog.windows-ready .station-explore-intro {
    font-size: .76rem;
    line-height: 1.8;
  }

  #explore-dialog.windows-ready .service-windows {
    margin: 19px -20px 0;
  }

  #explore-dialog.windows-ready .service-deck {
    height: 505px;
  }

  #explore-dialog.windows-ready .service-window {
    top: 13px;
    width: calc(100% - 42px);
    height: calc(100% - 33px);
    border-radius: 15px;
    transform: translateX(calc(-50% + var(--window-offset) * 91%)) translateZ(-115px) rotateY(calc(var(--window-offset) * -9deg)) scale(.9);
  }

  #explore-dialog.windows-ready .service-window.is-active {
    transform: translateX(-50%) translateZ(0) rotateY(0) scale(1);
  }

  #explore-dialog.windows-ready .service-window.is-far {
    transform: translateX(calc(-50% + var(--window-offset) * 91%)) translateZ(-220px) scale(.8);
  }

  #explore-dialog.windows-ready .service-window-top {
    min-height: 44px;
    padding: 10px 18px;
    gap: 10px;
    font-size: 8px;
    letter-spacing: .11em;
  }

  #explore-dialog.windows-ready .service-window-body {
    padding: 25px 22px 21px;
  }

  #explore-dialog.windows-ready .service-window-icon {
    position: relative;
    top: auto;
    right: auto;
    width: 54px;
    height: 54px;
    margin: 0 0 21px 2px;
  }

  #explore-dialog.windows-ready .service-window-icon svg {
    width: 25px;
    height: 25px;
  }

  #explore-dialog.windows-ready .service-window-body > p.service-window-kicker {
    max-width: 100%;
    margin-bottom: 8px;
    font-size: 8px;
    letter-spacing: .14em;
  }

  #explore-dialog.windows-ready .service-window h3 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: 1.46rem;
    line-height: 1.17;
  }

  #explore-dialog.windows-ready .service-window-body > p {
    font-size: .75rem;
    line-height: 1.8;
    margin-bottom: 16px;
  }

  #explore-dialog.windows-ready .service-window .ledger-price {
    padding-top: 12px;
    font-size: 9px;
    line-height: 1.75;
  }

  #explore-dialog.windows-ready .service-window-footer {
    min-height: 33px;
    padding: 9px 0 0;
    font-size: 7px;
    gap: 10px;
  }

  #explore-dialog.windows-ready .service-controls {
    gap: 8px;
    margin-inline: 21px;
  }

  #explore-dialog.windows-ready .service-window-count {
    min-width: 47px;
    font-size: 10px;
  }

  #explore-dialog.windows-ready .service-window-indicator {
    flex-direction: column;
    gap: 0;
  }

  #explore-dialog.windows-ready .service-window-dots button {
    min-width: 30px;
    width: 30px;
  }

  #explore-dialog.windows-ready .service-brief {
    margin-top: 19px;
  }

  #explore-dialog.windows-ready .station-explore-cta {
    width: 100%;
    margin-top: 19px;
  }
}

@media (max-width: 370px) {
  #explore-dialog.windows-ready {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  #explore-dialog.windows-ready .station-explore-inner {
    padding-inline: 16px;
  }

  #explore-dialog.windows-ready h2 {
    font-size: 1.8rem;
  }

  #explore-dialog.windows-ready .service-windows {
    margin-inline: -16px;
  }

  #explore-dialog.windows-ready .service-deck {
    height: 560px;
  }

  #explore-dialog.windows-ready .service-window {
    width: calc(100% - 32px);
  }

  #explore-dialog.windows-ready .service-window-body {
    padding-inline: 19px;
  }

  #explore-dialog.windows-ready .service-controls {
    gap: 5px;
    margin-inline: 16px;
  }

  #explore-dialog.windows-ready .service-window-count {
    min-width: 42px;
    font-size: 9px;
  }

  #explore-dialog.windows-ready .service-window-dots button {
    min-width: 29px;
    width: 29px;
  }
}

body.lunar-paused #explore-dialog.windows-ready *,
body.lunar-paused #explore-dialog.windows-ready *::before,
body.lunar-paused #explore-dialog.windows-ready *::after {
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  #explore-dialog.windows-ready *,
  #explore-dialog.windows-ready *::before,
  #explore-dialog.windows-ready *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  #explore-dialog.windows-ready,
  #explore-dialog.windows-ready .service-window {
    border-color: CanvasText;
    box-shadow: none;
    background: Canvas;
  }

  #explore-dialog.windows-ready .service-window:not(.is-active) {
    visibility: hidden;
  }

  #explore-dialog.windows-ready .service-window-dots button::after {
    background: Canvas;
    border-color: ButtonText;
  }

  #explore-dialog.windows-ready .service-window-dots button[aria-current="true"]::after {
    background: Highlight;
    border-color: Highlight;
  }
}
