.earth-observatory-heading { margin-bottom: 22px; }
.earth-observatory-heading p a { display: inline-block; transition: color .2s var(--ease), transform .25s var(--ease); }
.earth-observatory-heading p a:hover, .earth-observatory-heading p a:focus-visible { color: var(--signal); transform: translateX(3px); }

.earth-lab-preview {
  display: block;
  margin-top: 14px;
  border: 1px solid rgba(21,32,25,.20);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(244,242,234,.72);
  box-shadow: 0 28px 72px rgba(21,32,25,.08);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
}
.earth-lab-preview:hover, .earth-lab-preview:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(166,70,36,.42);
  box-shadow: 0 36px 88px rgba(21,32,25,.13);
  outline: none;
}

.earth-preview-screen {
  position: relative;
  color: #eeece4;
  background:
    radial-gradient(circle at 68% 12%, rgba(73,119,95,.20), transparent 27%),
    radial-gradient(circle at 22% 88%, rgba(166,70,36,.12), transparent 30%),
    #101712;
  min-height: 550px;
  overflow: hidden;
}
.earth-preview-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.035), transparent 22%, transparent 78%, rgba(255,255,255,.025));
  mix-blend-mode: screen;
}

.earth-preview-topbar {
  height: 64px;
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(260px, 1.5fr) minmax(180px, .8fr);
  align-items: stretch;
  border-bottom: 1px solid rgba(241,239,231,.12);
  background: rgba(7,12,9,.60);
  backdrop-filter: blur(12px);
}
.earth-preview-brand, .earth-preview-title, .earth-preview-status { min-width: 0; display: flex; align-items: center; }
.earth-preview-brand { gap: 10px; padding: 0 18px; border-right: 1px solid rgba(241,239,231,.10); color: #f1efe7; font: 700 11px/1 var(--mono); letter-spacing: .055em; }
.earth-preview-brand > i { position: relative; width: 14px; height: 14px; border: 1px solid rgba(241,239,231,.76); border-radius: 50%; }
.earth-preview-brand > i::before, .earth-preview-brand > i::after { content: ""; position: absolute; background: rgba(241,239,231,.62); }
.earth-preview-brand > i::before { left: 6px; top: -3px; width: 1px; height: 18px; }
.earth-preview-brand > i::after { left: -3px; top: 6px; width: 18px; height: 1px; }
.earth-preview-title { padding: 0 20px; flex-direction: column; justify-content: center; align-items: flex-start; }
.earth-preview-title small { color: rgba(241,239,231,.46); font: 650 9px/1 var(--mono); letter-spacing: .15em; }
.earth-preview-title strong { margin-top: 6px; color: #f1efe7; font: 600 14px/1 var(--serif); letter-spacing: .08em; }
.earth-preview-status { justify-content: flex-end; gap: 13px; padding: 0 18px; border-left: 1px solid rgba(241,239,231,.10); color: rgba(241,239,231,.64); font: 700 9px/1 var(--mono); letter-spacing: .075em; }
.earth-preview-status span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid rgba(215,255,97,.22); border-radius: 999px; color: #d7ff61; }
.earth-preview-status span i { width: 6px; height: 6px; border-radius: 50%; background: #d7ff61; box-shadow: 0 0 10px rgba(215,255,97,.55); }
.earth-preview-status b { font-weight: 650; }

.earth-preview-workspace {
  display: grid;
  grid-template-columns: 188px minmax(0,1fr) 235px;
  min-height: 430px;
}
.earth-preview-layers, .earth-preview-inspector { background: rgba(9,14,11,.78); backdrop-filter: blur(8px); }
.earth-preview-layers { border-right: 1px solid rgba(241,239,231,.10); padding: 16px 14px 14px; }
.earth-preview-layers-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.earth-preview-layers-head span { color: #f1efe7; font: 700 11px/1 var(--mono); letter-spacing: .09em; }
.earth-preview-layers-head b { color: #d7ff61; font: 700 12px/1 var(--mono); }
.earth-preview-search { margin-top: 14px; padding: 9px 10px; border: 1px solid rgba(241,239,231,.14); border-radius: 8px; color: rgba(241,239,231,.38); font: 600 8px/1 var(--mono); letter-spacing: .045em; }
.earth-preview-layer-group { margin-top: 17px; }
.earth-preview-layer-group > span { display: block; margin-bottom: 7px; color: rgba(241,239,231,.40); font: 700 8px/1 var(--mono); letter-spacing: .11em; }
.earth-preview-layer-group b { display: flex; align-items: center; gap: 7px; min-height: 24px; color: rgba(241,239,231,.72); font: 600 9px/1.2 var(--sans); font-weight: 560; }
.earth-preview-layer-group b i { width: 7px; height: 7px; border-radius: 50%; background: rgba(241,239,231,.22); box-shadow: 0 0 0 3px rgba(241,239,231,.025); }
.earth-preview-layer-group b i.is-live { background: #8ed49b; }
.earth-preview-layer-group b i.is-warn { background: #ffbd66; }
.earth-preview-layer-group b i.is-fire { background: #e96343; }

.earth-preview-map {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 32%, rgba(72,112,91,.19), transparent 29%),
    radial-gradient(circle at 72% 66%, rgba(64,102,83,.14), transparent 26%),
    linear-gradient(180deg, #122019 0%, #0e1813 48%, #0b1410 100%);
}
.earth-preview-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(241,239,231,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,239,231,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.45));
}
.earth-preview-map-readout, .earth-preview-map-tag {
  position: absolute;
  z-index: 3;
  top: 14px;
  padding: 7px 9px;
  border: 1px solid rgba(241,239,231,.13);
  background: rgba(7,12,9,.72);
  color: rgba(241,239,231,.68);
  font: 650 8px/1 var(--mono);
  letter-spacing: .065em;
}
.earth-preview-map-readout { left: 14px; }
.earth-preview-map-tag { right: 14px; color: #d7ff61; }
.earth-preview-world { position: absolute; inset: 34px 0 34px; width: 100%; height: calc(100% - 68px); }
.earth-preview-graticule path { fill: none; stroke: rgba(241,239,231,.055); stroke-width: 1; vector-effect: non-scaling-stroke; }
.earth-preview-land path { fill: rgba(168,188,171,.14); stroke: rgba(214,224,215,.24); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.earth-preview-currents path { fill: none; stroke: rgba(113,192,170,.26); stroke-width: 1.6; stroke-dasharray: 5 8; vector-effect: non-scaling-stroke; }
.earth-preview-orbits ellipse { fill: none; stroke: rgba(231,220,192,.12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.earth-preview-points.is-cities circle { fill: #ead39a; opacity: .82; }
.earth-preview-points.is-fire circle { fill: #e96343; filter: drop-shadow(0 0 5px rgba(233,99,67,.52)); }
.earth-preview-event circle { fill: none; stroke: rgba(215,255,97,.52); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.earth-preview-event circle:last-child { stroke: rgba(215,255,97,.20); }
.earth-preview-legend { position: absolute; z-index: 3; left: 14px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 7px 9px; border: 1px solid rgba(241,239,231,.11); background: rgba(7,12,9,.67); border-radius: 8px; }
.earth-preview-legend span { display: inline-flex; align-items: center; gap: 5px; color: rgba(241,239,231,.52); font: 700 7px/1 var(--mono); letter-spacing: .07em; }
.earth-preview-legend i { width: 6px; height: 6px; border-radius: 50%; background: rgba(241,239,231,.28); }
.earth-preview-legend i.wind { background: #71c0aa; }
.earth-preview-legend i.fire { background: #e96343; }
.earth-preview-legend i.quake { background: #d7ff61; }
.earth-preview-legend i.orbit { background: #ead39a; }

.earth-preview-inspector { border-left: 1px solid rgba(241,239,231,.10); padding: 20px 18px; }
.earth-preview-inspector-kicker { display: flex; align-items: center; gap: 7px; color: rgba(241,239,231,.44); font: 700 8px/1 var(--mono); letter-spacing: .10em; }
.earth-preview-inspector-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #e96343; box-shadow: 0 0 8px rgba(233,99,67,.55); }
.earth-preview-inspector > strong { display: block; margin-top: 19px; color: #f1efe7; font: 500 19px/1.03 var(--serif); letter-spacing: -.02em; }
.earth-preview-inspector > p { margin: 10px 0 17px; color: rgba(241,239,231,.48); font: 500 10px/1.55 var(--sans); }
.earth-preview-inspector dl { margin: 0; border-top: 1px solid rgba(241,239,231,.10); }
.earth-preview-inspector dl div { display: grid; grid-template-columns: 73px minmax(0,1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid rgba(241,239,231,.08); }
.earth-preview-inspector dt { color: rgba(241,239,231,.36); font: 700 7px/1.35 var(--mono); letter-spacing: .09em; }
.earth-preview-inspector dd { margin: 0; color: rgba(241,239,231,.68); font: 650 8px/1.35 var(--mono); }
.earth-preview-source { display: block; margin-top: 16px; padding: 9px 10px; border: 1px solid rgba(241,239,231,.12); border-radius: 7px; text-align: center; color: rgba(241,239,231,.68); font: 700 8px/1 var(--mono); letter-spacing: .08em; }

.earth-preview-console {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(210px,.8fr) minmax(260px,1.6fr) minmax(90px,.45fr);
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-top: 1px solid rgba(241,239,231,.10);
  background: rgba(7,12,9,.78);
  color: rgba(241,239,231,.50);
  font: 700 8px/1 var(--mono);
  letter-spacing: .07em;
}
.earth-preview-console > span:last-child { color: #d7ff61; text-align: right; }
.earth-preview-timeline { position: relative; height: 1px; background: rgba(241,239,231,.18); }
.earth-preview-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 9px; background: repeating-linear-gradient(90deg, rgba(241,239,231,.18) 0 1px, transparent 1px 23px); }
.earth-preview-timeline i { position: absolute; z-index: 2; left: 61%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #d7ff61; box-shadow: 0 0 12px rgba(215,255,97,.45); }
.earth-preview-timeline b { position: absolute; left: 0; top: 0; width: 61%; height: 1px; background: rgba(215,255,97,.52); }

.earth-preview-caption { padding: 25px 30px 24px; background: rgba(244,242,234,.88); }
.earth-preview-caption-head, .earth-preview-caption-foot { display: flex; justify-content: space-between; gap: 24px; align-items: center; color: var(--muted); font: 700 11px/1.3 var(--mono); letter-spacing: .075em; }
.earth-preview-caption-main { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: clamp(28px,5vw,72px); align-items: end; margin-top: 21px; }
.earth-preview-caption-main strong { display: block; color: var(--fg); font: 540 clamp(30px,3.4vw,48px)/1 var(--serif); letter-spacing: -.04em; }
.earth-preview-caption-main p { margin: 12px 0 0; max-width: 850px; color: #4c594f; font: 400 clamp(14px,1.25vw,18px)/1.55 var(--sans); }
.earth-preview-open { display: inline-flex; align-items: center; gap: 14px; min-height: 46px; padding: 0 16px; border: 1px solid rgba(21,32,25,.18); border-radius: 999px; color: var(--muted); font: 700 11px/1 var(--mono); letter-spacing: .07em; white-space: nowrap; transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease); }
.earth-preview-open b { color: var(--signal); font-size: 16px; font-weight: 500; transition: transform .25s var(--ease); }
.earth-lab-preview:hover .earth-preview-open { color: var(--fg); border-color: rgba(166,70,36,.36); background: rgba(166,70,36,.035); }
.earth-lab-preview:hover .earth-preview-open b { transform: translate(3px,-3px); }
.earth-preview-caption-foot { margin-top: 25px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.earth-preview-caption-foot span:first-child { color: #59655d; }

@media (max-width: 1100px) {
  .earth-preview-workspace { grid-template-columns: 158px minmax(0,1fr) 205px; }
  .earth-preview-inspector { padding: 17px 14px; }
  .earth-preview-layer-group b { font-size: 8px; }
}

@media (max-width: 820px) {
  .earth-lab-preview { border-radius: 20px; }
  .earth-preview-screen { min-height: 460px; }
  .earth-preview-topbar { grid-template-columns: 150px minmax(0,1fr); }
  .earth-preview-status { display: none; }
  .earth-preview-title { border-left: 1px solid rgba(241,239,231,.10); }
  .earth-preview-workspace { grid-template-columns: 128px minmax(0,1fr); min-height: 350px; }
  .earth-preview-inspector { display: none; }
  .earth-preview-layers { padding: 13px 10px; }
  .earth-preview-layer-group { margin-top: 13px; }
  .earth-preview-layer-last { display: none; }
  .earth-preview-console { grid-template-columns: 1fr 90px; gap: 12px; }
  .earth-preview-timeline { display: none; }
  .earth-preview-caption { padding: 22px 22px 20px; }
  .earth-preview-caption-main { grid-template-columns: 1fr; align-items: start; }
  .earth-preview-open { justify-self: start; }
}

@media (max-width: 560px) {
  .earth-observatory-heading { margin-bottom: 14px; }
  .earth-lab-preview { margin-left: -2px; margin-right: -2px; border-radius: 16px; }
  .earth-preview-screen { min-height: 390px; }
  .earth-preview-topbar { grid-template-columns: 1fr; height: 54px; }
  .earth-preview-brand { display: none; }
  .earth-preview-title { border-left: 0; padding: 0 14px; }
  .earth-preview-workspace { grid-template-columns: 1fr; min-height: 286px; }
  .earth-preview-layers { display: none; }
  .earth-preview-map-readout { max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .earth-preview-map-tag { display: none; }
  .earth-preview-console { min-height: 50px; padding: 0 14px; }
  .earth-preview-caption-head, .earth-preview-caption-foot { align-items: flex-start; flex-direction: column; gap: 7px; }
  .earth-preview-caption-main strong { font-size: 30px; }
  .earth-preview-caption-main p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .earth-lab-preview, .earth-observatory-heading p a, .earth-preview-open b { transition: none; }
}
