:root {
  color-scheme: dark;
  --bg: #081017;
  --bg-2: #101a22;
  --surface: rgba(12, 23, 31, 0.94);
  --surface-strong: rgba(9, 17, 25, 0.96);
  --line: rgba(204, 220, 231, 0.14);
  --line-strong: rgba(204, 220, 231, 0.2);
  --muted: #94a8b6;
  --text: #eef7fb;
  --sun: #ffd36d;
  --cyan: #64d8ff;
  --red: #ff726f;
  --green: #a8e270;
  --panel-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.012)),
    var(--surface);
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.2);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(8, 16, 23, 0.2), #081017 48%),
    radial-gradient(circle at 18% 0%, rgba(100, 216, 255, 0.16), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(255, 211, 109, 0.07), transparent 28%),
    linear-gradient(135deg, #081017, #101a22 56%, #121817);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  appearance: none;
  cursor: pointer;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: clamp(150px, 21vh, 230px);
  display: flex;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: saturate(1.08) contrast(1.08);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 16, 0.94) 0%, rgba(5, 10, 16, 0.7) 48%, rgba(5, 10, 16, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 10, 16, 0.02), #081017 100%);
}

.hero__content {
  position: relative;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 9px;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  width: min(720px, 100%);
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.48rem, 2.55vw, 2.25rem);
  line-height: 1.07;
  letter-spacing: 0;
}

.hero__copy {
  width: min(760px, 100%);
  margin: 9px 0 0;
  color: #cfdee6;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 760px;
  margin-top: 13px;
}

.hero__facts span,
.hero-fact-button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: #d8e7ee;
  background: rgba(255, 255, 255, 0.058);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 740;
  backdrop-filter: blur(10px);
}

.hero-fact-button {
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.hero-fact-button:hover,
.hero-fact-button:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(100, 216, 255, 0.42);
  color: #f2fbff;
}

.hero-fact-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 216, 255, 0.16);
}

.hero-fact-button.is-active {
  background:
    linear-gradient(180deg, rgba(100, 216, 255, 0.18), rgba(100, 216, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  border-color: rgba(100, 216, 255, 0.58);
  box-shadow: 0 10px 24px rgba(5, 15, 24, 0.22);
  color: #f4fbff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero__actions .button {
  width: auto;
  min-width: 126px;
  min-height: 38px;
}

.share-button {
  width: 100%;
  min-width: 0;
  margin-top: -2px;
  padding-inline: 16px;
  box-shadow:
    0 10px 24px rgba(76, 207, 245, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.share-button:hover,
.share-button:focus-visible {
  background: linear-gradient(180deg, #9eeeff, #5bd8fa);
  box-shadow:
    0 12px 28px rgba(76, 207, 245, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.workspace {
  width: min(1400px, calc(100vw - 28px));
  margin: -12px auto 0;
  position: relative;
  z-index: 2;
}

.location-status,
.scale-lock {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
}

.scale-lock {
  display: grid;
  align-content: start;
  gap: 12px;
}

.location-status {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.scale-current {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.scale-art {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.scale-art svg {
  width: 46px;
  height: 46px;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.24));
}

.location-status strong,
.scale-lock strong {
  display: block;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.2;
}

.scale-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.location-status div span,
.scale-copy span,
.scale-summary {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.32;
}

.scale-copy strong {
  margin-bottom: 1px;
}

.scale-lock .scale-reduction {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
  min-width: 0;
  max-width: 100%;
  color: #9fb1bd;
  font-size: 0.86rem;
  white-space: nowrap;
}

.scale-lock .scale-reduction-value {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  color: #c8d8df;
  border-bottom: 1px dotted rgba(159, 177, 189, 0.62);
  cursor: help;
  outline: none;
}

.scale-reduction-value::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: max-content;
  max-width: min(320px, 70vw);
  padding: 8px 10px;
  color: #eef8fb;
  background: rgba(4, 12, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.25;
  text-align: left;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.scale-reduction-value:hover::after,
.scale-reduction-value:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.scale-reduction-value:focus-visible {
  color: #d9e8ee;
  border-bottom-color: rgba(100, 216, 255, 0.8);
}

.scale-summary {
  margin-top: -2px;
  padding-top: 10px;
  color: #c9d9e0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
}

.scale-range {
  width: 100%;
  height: 24px;
  margin: 2px 0 -2px;
  padding: 0;
  accent-color: var(--sun);
  appearance: none;
  background: transparent;
  border: 0;
}

.scale-range::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 211, 109, 0.9), rgba(100, 216, 255, 0.7));
  border-radius: 999px;
}

.scale-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  -webkit-appearance: none;
  background: #f7fbff;
  border: 3px solid #18242d;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(255, 211, 109, 0.5),
    0 8px 16px rgba(0, 0, 0, 0.34);
  appearance: none;
}

.scale-range::-moz-range-track {
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 211, 109, 0.9), rgba(100, 216, 255, 0.7));
  border-radius: 999px;
}

.scale-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #f7fbff;
  border: 3px solid #18242d;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(255, 211, 109, 0.5),
    0 8px 16px rgba(0, 0, 0, 0.34);
}

.scale-ticks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.scale-tick {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  padding: 6px 3px 5px;
  color: #9cafbb;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.scale-tick-art {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  opacity: 0.8;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.scale-tick-art svg {
  width: 24px;
  height: 24px;
  display: block;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.2));
}

.scale-tick-label {
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font: inherit;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scale-tick:hover,
.scale-tick:focus-visible {
  color: #eef8fb;
  background: rgba(100, 216, 255, 0.105);
  border-color: rgba(100, 216, 255, 0.36);
}

.scale-tick:hover .scale-tick-art,
.scale-tick:focus-visible .scale-tick-art {
  opacity: 1;
  transform: translateY(-1px);
}

.scale-tick:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 216, 255, 0.16);
}

.scale-tick.is-active {
  color: #eef8fb;
  background:
    linear-gradient(180deg, rgba(100, 216, 255, 0.2), rgba(255, 255, 255, 0.052)),
    rgba(7, 16, 24, 0.72);
  border-color: rgba(100, 216, 255, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    var(--shadow-soft);
}

.scale-tick.is-active .scale-tick-art {
  opacity: 1;
}

.status-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6fe38d;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 7px rgba(111, 227, 141, 0.18);
}

.status-dot.is-pulsing {
  animation: status-dot-pulse 2.2s ease-in-out infinite;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.status-dot.is-pulsing::after {
  background: radial-gradient(circle, rgba(111, 227, 141, 0.3) 0%, rgba(111, 227, 141, 0.14) 38%, rgba(111, 227, 141, 0) 72%);
  animation: status-dot-halo 2.2s ease-out infinite;
}

.status-dot.is-busy.is-pulsing::after {
  background: radial-gradient(circle, rgba(255, 211, 109, 0.3) 0%, rgba(255, 211, 109, 0.14) 38%, rgba(255, 211, 109, 0) 72%);
}

.status-dot.is-blocked.is-pulsing::after {
  background: radial-gradient(circle, rgba(255, 114, 111, 0.3) 0%, rgba(255, 114, 111, 0.14) 38%, rgba(255, 114, 111, 0) 72%);
}

.status-dot.is-busy {
  background: var(--sun);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 7px rgba(255, 211, 109, 0.18);
}

.status-dot.is-ready {
  background: var(--green);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 7px rgba(168, 226, 112, 0.2);
}

.status-dot.is-blocked {
  background: var(--red);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 7px rgba(255, 114, 111, 0.18);
}

@keyframes status-dot-pulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.42;
  }

  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

@keyframes status-dot-halo {
  0% {
    transform: scale(0.82);
    opacity: 0;
  }

  35% {
    transform: scale(1.45);
    opacity: 0.7;
  }

  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.control-group {
  display: flex;
  align-items: end;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 8px;
}

.control-group label {
  display: grid;
  gap: 7px;
  min-width: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  outline: none;
}

input:focus {
  border-color: rgba(100, 216, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(100, 216, 255, 0.16);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: #eaf7fb;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-weight: 780;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.button:hover,
.text-button:hover,
.maps-link:hover {
  border-color: rgba(100, 216, 255, 0.58);
}

.button:hover {
  background: rgba(255, 255, 255, 0.095);
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 216, 255, 0.18);
}

.button--primary {
  color: #06131a;
  background: linear-gradient(180deg, #91e9ff, #4ccff5);
  border: 0;
  font-weight: 850;
}

.button--primary:hover {
  background: linear-gradient(180deg, #a2efff, #5ed8fb);
}

.map-location-button {
  flex: 0 0 auto;
  color: #eaf7fb;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
  box-shadow: none;
}

.map-location-button:hover,
.map-location-button:focus-visible {
  background: rgba(255, 255, 255, 0.095);
  border-color: rgba(100, 216, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(100, 216, 255, 0.16);
}

.map-location-button.is-permission-cta {
  color: #06140f;
  background: linear-gradient(180deg, #8cf29d, #44c86d);
  border: 0;
  font-weight: 850;
  box-shadow:
    0 10px 24px rgba(68, 200, 109, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.map-location-button.is-permission-cta:hover,
.map-location-button.is-permission-cta:focus-visible {
  background: linear-gradient(180deg, #9bf5a9, #57d77f);
  border-color: transparent;
  box-shadow:
    0 12px 28px rgba(68, 200, 109, 0.28),
    0 0 0 3px rgba(95, 214, 126, 0.16);
}

.map-location-button:disabled {
  color: rgba(234, 247, 251, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  cursor: progress;
}

.map-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.map-actions .location-status {
  width: min(460px, 42vw);
  padding: 9px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.032)),
    rgba(6, 15, 22, 0.62);
  border-color: rgba(255, 255, 255, 0.09);
}

.map-actions .location-status .panel-kicker {
  margin-bottom: 4px;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.map-actions .location-status strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

.map-actions .location-status span:not(.status-dot) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  line-height: 1.25;
}

.map-actions .map-location-button {
  min-height: 34px;
  padding-inline: 11px;
  font-size: 0.8rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(360px, 0.86fr);
  gap: 16px;
  margin-top: 0;
}

.map-panel,
.side-panel > section,
.layout > .star-list {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-panel {
  min-width: 0;
  overflow: hidden;
}

.map-toolbar {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(7, 17, 25, 0.42);
  border-bottom: 1px solid rgba(204, 220, 231, 0.12);
}

.map-title {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.map-title .panel-kicker {
  margin: 0;
}

.map-toolbar h2,
.star-detail h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  font-weight: 820;
  line-height: 1.12;
  letter-spacing: 0;
}

.map-stage {
  position: relative;
  height: min(70vh, 760px);
  min-height: 540px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(160deg, #07111b, #0f2026 46%, #171b17);
  background-size: 56px 56px, 56px 56px, auto;
}

.google-frame,
.map-overlay {
  position: absolute;
  inset: 0;
}

.google-frame {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.78) contrast(0.96) brightness(0.76);
  pointer-events: none;
  will-change: transform;
}

.map-overlay {
  z-index: 2;
  overflow: hidden;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-overlay.is-dragging {
  cursor: grabbing;
}

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  clip-path: inset(0);
  pointer-events: none;
}

#overlayMarkers {
  position: absolute;
  inset: 0;
}

.map-frame-mask {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  width: 150px;
  height: 42px;
  background: rgba(8, 17, 24, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.map-frame-mask::after {
  content: "Scale map";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #d7e9ef;
  font-size: 0.78rem;
  font-weight: 850;
}

.overlay-marker {
  position: absolute;
  display: grid;
  grid-template-columns: 16px max-content;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(7, 16, 24, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 10px 6px 7px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  transform: translate(-8px, -50%);
  cursor: pointer;
  isolation: isolate;
  pointer-events: auto;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.overlay-marker.is-sun {
  background: rgba(23, 20, 8, 0.9);
  border-color: rgba(255, 211, 109, 0.55);
  z-index: 20;
}

.overlay-marker.is-active {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--marker-color, var(--cyan)) 38%, #071018),
      rgba(7, 16, 24, 0.98) 72%
    );
  border-color: color-mix(in srgb, var(--marker-color, var(--cyan)) 86%, #ffffff);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  padding-right: 12px;
  z-index: 28;
}

.overlay-marker:hover,
.overlay-marker:focus-visible {
  background: rgba(11, 28, 40, 0.95);
  border-color: color-mix(in srgb, var(--marker-color, var(--cyan)) 72%, #ffffff);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.4),
    0 0 0 3px color-mix(in srgb, var(--marker-color, var(--cyan)) 18%, transparent);
}

.overlay-marker.is-active:hover,
.overlay-marker.is-active:focus-visible {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--marker-color, var(--cyan)) 44%, #071018),
      rgba(7, 16, 24, 0.98) 72%
    );
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.overlay-marker:focus-visible {
  outline: none;
}

.marker-dot {
  width: 12px;
  height: 12px;
  z-index: 1;
  border-radius: 50%;
  background: var(--marker-color, var(--cyan));
  box-shadow: 0 0 18px color-mix(in srgb, var(--marker-color, var(--cyan)) 72%, transparent);
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.overlay-marker:hover .marker-dot,
.overlay-marker:focus-visible .marker-dot,
.overlay-marker.is-active .marker-dot {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.18),
    0 0 22px color-mix(in srgb, var(--marker-color, var(--cyan)) 90%, transparent);
  transform: scale(1.12);
}

.marker-text {
  display: grid;
  gap: 1px;
  z-index: 1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.05;
  position: relative;
  transition: color 160ms ease;
}

.marker-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlay-marker:hover .marker-text,
.overlay-marker:focus-visible .marker-text,
.overlay-marker.is-active .marker-text {
  color: #f8fdff;
}

.marker-text small {
  color: #b6c8d2;
  font-size: 0.67rem;
  font-weight: 760;
  transition: color 160ms ease;
}

.overlay-marker:hover .marker-text small,
.overlay-marker:focus-visible .marker-text small,
.overlay-marker.is-active .marker-text small {
  color: #d6e8ef;
}

.distance-line {
  stroke: rgba(100, 216, 255, 0.66);
  stroke-width: 2;
  stroke-dasharray: 7 7;
  vector-effect: non-scaling-stroke;
}

.reference-ring {
  fill-opacity: 0.08;
  stroke-width: 2.5;
  stroke-dasharray: 12 9;
  opacity: 0.78;
  vector-effect: non-scaling-stroke;
}

.reference-ring.is-active {
  fill-opacity: 0.12;
  stroke-width: 3.5;
  opacity: 0.96;
}

.map-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: grid;
  gap: 6px;
}

.map-control-button {
  min-width: 38px;
  height: 38px;
  color: #06131a;
  background: rgba(221, 247, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.map-control-button--fit {
  font-size: 0.78rem;
}

.map-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  max-width: min(450px, calc(100% - 32px));
  padding: 9px 11px;
  color: #d7e9ef;
  background: rgba(4, 12, 18, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  backdrop-filter: blur(12px);
}

.map-status.is-warning {
  color: #fff4ce;
  background: rgba(43, 27, 5, 0.78);
  border-color: rgba(255, 211, 109, 0.42);
}

.map-scale-ruler {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 136px;
  padding: 8px 10px;
  color: #d9e8ee;
  background: rgba(4, 12, 18, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.map-scale-ruler strong {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: right;
}

.map-scale-ruler span:last-child {
  color: #b8c9d2;
  font-size: 0.66rem;
  font-weight: 740;
  line-height: 1;
}

.map-scale-ruler__bar {
  position: relative;
  display: block;
  height: 10px;
  min-width: 46px;
  border-right: 2px solid #eef8fb;
  border-left: 2px solid #eef8fb;
}

.map-scale-ruler__bar::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #eef8fb;
  box-shadow: 0 0 12px rgba(100, 216, 255, 0.4);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 11px 16px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.35;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.map-legend strong {
  color: #e7f4f8;
  font-weight: 650;
  min-width: 0;
  overflow-wrap: anywhere;
}

.legend-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
}

.legend-dot--sun {
  background: var(--sun);
  box-shadow: 0 0 18px rgba(255, 211, 109, 0.7);
}

.legend-earth {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(100, 216, 255, 0.72);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(100, 216, 255, 0.13);
}

.legend-earth::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(100, 216, 255, 0.72);
  border-left: 1px solid rgba(100, 216, 255, 0.72);
  border-radius: 50%;
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.side-panel > section,
.layout > .star-list {
  min-width: 0;
  padding: 17px;
}

.star-detail {
  display: grid;
  gap: 14px;
}

.star-detail__header {
  display: grid;
  gap: 4px;
}

.star-detail .panel-kicker {
  margin-bottom: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid div {
  min-width: 0;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(100, 216, 255, 0.055), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.metric-grid span,
dt {
  display: block;
  color: #8fa4b2;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 850;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.maps-link {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  margin-top: 14px;
  color: #071118;
  background: var(--sun);
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
}

.maps-link.is-disabled {
  color: #97a8b3;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.detail-note {
  margin: 0;
  color: #c7d6de;
  font-size: 0.89rem;
  line-height: 1.48;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.detail-meta div {
  min-width: min(100%, 148px);
  flex: 1 1 148px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
}

dd {
  margin: 5px 0 0;
  color: #eff8fb;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.star-list {
  display: grid;
  gap: 16px;
}

.layout > .star-list {
  grid-column: 1 / -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    rgba(13, 24, 32, 0.92);
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-top: 0;
}

.star-list .panel-kicker {
  margin: 0 0 4px;
  color: #8fa4b2;
}

.list-title-group {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 9px;
}

.list-title {
  display: block;
  color: #f5fbff;
  font-size: 0.96rem;
  font-weight: 820;
  line-height: 1.15;
}

.list-count {
  display: block;
  margin-top: 0;
  color: #91a6b4;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

.filter-tab {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 12px;
  color: #a9bac5;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 820;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.filter-tab:hover,
.filter-tab:focus-visible {
  color: #eef8fb;
  background: rgba(100, 216, 255, 0.09);
  border-color: rgba(100, 216, 255, 0.22);
}

.filter-tab:focus-visible,
.text-button:focus-visible,
.star-row:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 216, 255, 0.16);
}

.filter-tab.is-active {
  color: #f3fbff;
  background:
    linear-gradient(180deg, rgba(100, 216, 255, 0.24), rgba(100, 216, 255, 0.11)),
    rgba(255, 255, 255, 0.05);
  border-color: rgba(100, 216, 255, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 7px 18px rgba(0, 0, 0, 0.12);
}

.text-button {
  min-height: 32px;
  padding: 0 12px;
  color: #bdefff;
  background: rgba(100, 216, 255, 0.075);
  border: 1px solid rgba(100, 216, 255, 0.18);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 820;
  white-space: nowrap;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.text-button:hover,
.text-button:focus-visible {
  color: #f2fbff;
  background: rgba(100, 216, 255, 0.12);
  border-color: rgba(100, 216, 255, 0.34);
}

.stars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 10px;
}

.star-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 8px;
  text-align: left;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.star-row:hover {
  background: rgba(255, 255, 255, 0.062);
  border-color: rgba(100, 216, 255, 0.2);
}

.star-row.is-shown {
  background:
    linear-gradient(180deg, rgba(100, 216, 255, 0.07), rgba(255, 255, 255, 0.034)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(100, 216, 255, 0.22);
}

.star-row.is-nearest .star-chip {
  display: inline-flex;
}

.star-row.is-selected {
  background:
    linear-gradient(180deg, rgba(100, 216, 255, 0.2), rgba(100, 216, 255, 0.075)),
    rgba(8, 21, 30, 0.92);
  border-color: rgba(100, 216, 255, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 10px 26px rgba(0, 0, 0, 0.2);
}

.star-row.is-selected .star-title {
  color: #f6fcff;
}

.star-row.is-selected .star-distance {
  color: #eefbff;
  background: rgba(100, 216, 255, 0.13);
  border-color: rgba(100, 216, 255, 0.28);
}

.star-row.is-selected .star-toggle {
  background: #9beaff;
  box-shadow:
    0 0 0 3px rgba(100, 216, 255, 0.12),
    0 0 16px rgba(100, 216, 255, 0.16);
}

.star-toggle {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #06131a;
  background: #c8f4ff;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
}

.star-toggle.is-off {
  color: transparent;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.star-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.star-title-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.star-title {
  min-width: 0;
  display: block;
  margin: 0;
  overflow: hidden;
  color: #f1f9fd;
  font-size: 0.96rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-chip {
  flex: 0 0 auto;
  display: none;
  min-height: 19px;
  align-items: center;
  padding: 0 6px;
  color: #ffe7a3;
  background: rgba(255, 211, 109, 0.1);
  border: 1px solid rgba(255, 211, 109, 0.2);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1;
}

.star-meta {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #95a9b6;
  font-size: 0.78rem;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-distance {
  justify-self: end;
  max-width: 150px;
  padding: 5px 9px;
  overflow: hidden;
  color: #deedf4;
  background: rgba(255, 255, 255, 0.058);
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-row:not(.is-shown) .star-title,
.star-row:not(.is-shown) .star-distance {
  color: #d6e5ec;
}

.star-row:not(.is-shown) .star-meta {
  color: #93a8b6;
}

.star-row:not(.is-shown) .star-distance {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.12);
}

.star-distance.is-scale-warning {
  position: relative;
  max-width: 132px;
  overflow: visible;
  color: #ffe29a;
  background: rgba(255, 211, 109, 0.14);
  border-color: rgba(255, 211, 109, 0.36);
  cursor: help;
  text-align: right;
  white-space: normal;
}

.star-distance.is-scale-warning::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: max-content;
  max-width: min(280px, 68vw);
  padding: 8px 10px;
  color: #f7fcff;
  background: rgba(5, 13, 19, 0.96);
  border: 1px solid rgba(255, 211, 109, 0.26);
  border-radius: 7px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  font-size: 0.74rem;
  font-weight: 720;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.star-distance.is-scale-warning:hover::after,
.star-row:focus-visible .star-distance.is-scale-warning::after {
  opacity: 1;
  transform: translateY(0);
}

.star-row:not(.is-shown) .star-distance.is-scale-warning {
  color: #ffe29a;
  background: rgba(255, 211, 109, 0.14);
  border-color: rgba(255, 211, 109, 0.36);
}

.seo-summary {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 17px;
  color: #c7d6de;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.seo-summary .panel-kicker {
  margin: 0 0 4px;
}

.seo-summary h2 {
  margin: 0;
  color: #f5fbff;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.2;
}

.seo-summary p {
  max-width: 900px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.48;
}

.seo-summary ul {
  display: grid;
  gap: 7px;
  max-width: 980px;
  margin: 0;
  padding-left: 18px;
  color: #aebfca;
  font-size: 0.86rem;
  line-height: 1.42;
}

.footer {
  width: min(1420px, calc(100% - 28px));
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  margin: 24px auto 32px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.footer a {
  color: #b9eefd;
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 238, 253, 0.26);
}

.footer a:hover {
  color: #e9faff;
  border-bottom-color: rgba(185, 238, 253, 0.62);
}

@media (max-width: 1180px) {
  .workspace {
    margin-top: -12px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .control-group--location,
  .control-group--maps {
    flex-wrap: wrap;
  }

  .side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 190px;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(5, 10, 16, 0.72), rgba(5, 10, 16, 0.92)),
      linear-gradient(180deg, rgba(5, 10, 16, 0.05), #081017 100%);
  }

  .hero__content {
    padding: 26px 0 34px;
  }

  .workspace {
    width: min(calc(100vw - 20px), 1420px);
    margin-top: -8px;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 6.4vw, 1.85rem);
  }

  .hero__copy {
    font-size: 0.86rem;
  }

  .hero__facts {
    gap: 7px;
    margin-top: 12px;
  }

  .hero__facts span {
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.7rem;
  }

  .hero__actions {
    display: flex;
  }

  .hero__actions .button {
    width: auto;
    min-height: 40px;
  }

  .scale-ticks {
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 4px;
  }

  .scale-tick {
    min-height: 50px;
    font-size: 0.68rem;
    padding-inline: 2px;
  }

  .scale-tick-art,
  .scale-tick-art svg {
    width: 22px;
    height: 22px;
  }

  .control-group {
    align-items: stretch;
  }

  .control-group,
  .map-toolbar,
  .side-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .map-toolbar {
    gap: 12px;
  }

  .list-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .button,
  .maps-link {
    width: 100%;
  }

  .map-actions {
    display: block;
  }

  .map-actions .location-status {
    grid-template-columns: 12px minmax(0, 1fr);
    width: 100%;
  }

  .map-location-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .map-stage {
    min-height: 420px;
    height: 58vh;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta div {
    flex-basis: 100%;
  }

  .star-row {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 68px;
  }

  .star-distance {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    margin-top: -1px;
  }

  .star-meta {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .hero__content {
    width: min(calc(100vw - 32px), 358px);
    margin-left: 16px;
    margin-right: auto;
  }

  .hero h1 {
    font-size: clamp(1.38rem, 7.4vw, 1.72rem);
  }

  .hero__facts span,
  .hero-fact-button {
    max-width: 100%;
    white-space: normal;
  }

  .workspace {
    width: calc(100vw - 16px);
    margin-left: 10px;
    margin-right: auto;
  }

  .map-toolbar,
  .side-panel > section,
  .layout > .star-list {
    padding: 14px;
  }

  .scale-ticks {
    grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  }

  .scale-tick {
    min-height: 52px;
    font-size: 0.72rem;
  }

  .filter-tab {
    flex: 1 1 calc(50% - 3px);
    min-width: 0;
  }

  .star-row {
    padding: 10px;
  }

  .overlay-marker {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 6px;
    max-width: min(184px, calc(100vw - 64px));
    padding: 5px 8px 5px 6px;
    transform: translate(-8px, -50%);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
  }

  .overlay-marker.is-active {
    padding-right: 10px;
  }

  .marker-dot {
    width: 10px;
    height: 10px;
  }

  .marker-text {
    display: grid;
    gap: 1px;
    min-width: 0;
    color: #f4fbff;
    font-size: 0.68rem;
    font-weight: 820;
    line-height: 1.08;
  }

  .marker-text small {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #c5d7df;
    font-size: 0.56rem;
    font-weight: 760;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-status {
    display: none;
  }

  .map-scale-ruler {
    right: 10px;
    bottom: 10px;
    min-width: 118px;
    max-width: calc(100% - 20px);
    padding: 7px 8px;
    gap: 4px;
  }

  .map-scale-ruler strong {
    max-width: 128px;
    font-size: 0.72rem;
  }

  .map-scale-ruler span:last-child {
    font-size: 0.6rem;
  }

  .map-scale-ruler__bar {
    height: 8px;
  }

  .map-controls {
    top: 12px;
    right: 12px;
  }

  .map-frame-mask {
    top: 8px;
    left: 8px;
    width: 122px;
    height: 40px;
  }

  .map-control-button {
    min-width: 34px;
    height: 34px;
  }

  .map-legend {
    display: grid;
    gap: 8px;
    padding: 12px 14px 14px;
    font-size: 0.78rem;
  }

  .map-legend span {
    align-items: flex-start;
    gap: 7px;
  }
}
