:root {
  --bg: #080b10;
  --bg-soft: #0d131b;
  --surface: #111a24;
  --surface-2: #152331;
  --text: #f3f6f2;
  --muted: #94a3b4;
  --faint: #5f7080;
  --line: rgba(215, 231, 239, 0.18);
  --line-soft: rgba(215, 231, 239, 0.09);
  --cyan: #73e4ff;
  --cyan-strong: #18cce8;
  --lime: #d9ff5b;
  --orange: #ffba63;
  --max: 1440px;
  --header-height: 84px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --panel-wipe-duration: 1100ms;
  --panel-wipe-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 68% 6%, rgba(27, 98, 131, 0.17), transparent 28rem),
    radial-gradient(circle at 11% 73%, rgba(38, 68, 101, 0.14), transparent 25rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.is-booting { overflow: hidden; }
body.modal-open { overflow: hidden; }

button, a { font: inherit; }

a { color: inherit; text-decoration: none; }

button { border: 0; cursor: pointer; }

::selection { color: var(--bg); background: var(--lime); }

.boot-loader {
  position: fixed;
  z-index: 100;
  inset: 0;
  --boot-bracket-size: 42px;
  --boot-tl-left: clamp(72px, 10vw, 170px);
  --boot-tl-top: calc(var(--header-height) + 22px);
  --boot-br-right: clamp(28px, 5vw, 78px);
  --boot-br-bottom: 75px;
  --boot-cross-top: var(--boot-tl-top);
  --boot-cross-right: var(--boot-br-right);
  --boot-bracket-duration: 850ms;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px clamp(28px, 6vw, 96px) 52px;
  color: #b0bbc3;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(215, 231, 239, 0.06) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(215, 231, 239, 0.06) 50%, transparent calc(50% + 0.5px)),
    #11181f;
  background-size: 100% 100%, 100% 100%, auto;
  transition: opacity 850ms ease, visibility 850ms ease;
}

.boot-loader::before,
.boot-loader::after {
  content: "";
  position: absolute;
  z-index: 0;
  display: block;
  background: rgba(215, 231, 239, 0.34);
  transition: top 850ms ease, right 850ms ease, opacity 220ms ease;
}

.boot-loader::before { top: var(--boot-cross-top); left: 0; width: 100%; height: 1px; }
.boot-loader::after { top: 0; right: var(--boot-cross-right); width: 1px; height: 100%; }
.boot-loader.is-exiting { opacity: 0; visibility: hidden; }
.boot-loader.is-exiting::before { top: var(--boot-cross-top); opacity: 0; }
.boot-loader.is-exiting::after { right: var(--boot-cross-right); opacity: 0; }

.boot-loader-topline,
.boot-loader-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.boot-loader-topline { padding: 0 4px; color: #d6dfe5; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; letter-spacing: 0.12em; }
.boot-loader-mark { color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: 0.2em; }
.boot-loader-path { color: #6e7c86; font-size: 9px; }

.boot-loader-corner-brackets {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.boot-corner-bracket {
  position: absolute;
  display: block;
  left: calc(100% - var(--boot-cross-right) - (var(--boot-bracket-size) / 2));
  top: calc(var(--boot-cross-top) - (var(--boot-bracket-size) / 2));
  width: var(--boot-bracket-size);
  height: var(--boot-bracket-size);
  filter: drop-shadow(0 0 7px rgba(115, 228, 255, 0.18));
  transition: left var(--boot-bracket-duration) var(--panel-wipe-ease), top var(--boot-bracket-duration) var(--panel-wipe-ease);
}

.boot-corner-bracket--left {
  border-top: 1px solid rgba(115, 228, 255, 0.9);
  border-left: 1px solid rgba(115, 228, 255, 0.9);
}

.boot-corner-bracket--right {
  border-bottom: 1px solid rgba(115, 228, 255, 0.9);
  border-right: 1px solid rgba(115, 228, 255, 0.9);
}

.boot-loader.is-exiting .boot-loader-corner-brackets {
  opacity: 0.96;
  transition-delay: 60ms;
}

.boot-loader.is-exiting .boot-corner-bracket--left {
  left: var(--boot-tl-left);
  top: var(--boot-tl-top);
}

.boot-loader.is-exiting .boot-corner-bracket--right {
  left: calc(100% - var(--boot-br-right) - var(--boot-bracket-size));
  top: calc(100% - var(--boot-br-bottom) - var(--boot-bracket-size));
}

.boot-loader-center { position: absolute; left: 50%; top: 43%; width: min(42vw, 430px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.boot-orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(115, 228, 255, 0.38); border-radius: 50%; transform: translate(-50%, -50%) rotate(-28deg); }
.boot-orbit::after { content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.orbit-one { width: 54%; height: 27%; animation: boot-orbit 6s linear infinite; }
.orbit-two { width: 82%; height: 39%; border-color: rgba(217, 255, 91, 0.22); transform: translate(-50%, -50%) rotate(32deg); animation: boot-orbit-reverse 9s linear infinite; }
.boot-core { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 118px; height: 118px; overflow: visible; border: 1px solid var(--cyan); border-radius: 50%; background: rgba(17, 24, 31, 0.75); box-shadow: 0 0 36px rgba(115, 228, 255, 0.13); transform: translate(-50%, -50%); }
.boot-core::before, .boot-core::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(115, 228, 255, 0.56); }
.boot-core::before { z-index: 0; width: clamp(140px, 12vw, 172px); height: 1px; transform: translate(-50%, -50%); }
.boot-core::after { z-index: 0; width: 1px; height: clamp(140px, 12vw, 172px); transform: translate(-50%, -50%); }
.boot-core i, .boot-core b { position: absolute; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.boot-core i { left: 10px; top: 50%; transform: translateY(-50%); }
.boot-core b { right: 10px; top: 50%; background: var(--lime); transform: translateY(-50%); }
.boot-core span { position: relative; z-index: 2; color: var(--lime); font-size: 22px; letter-spacing: 0.18em; }
.boot-coordinate { position: absolute; color: #65727c; font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.08em; }
.coordinate-a { left: 1%; top: 31%; }
.coordinate-b { right: -2%; top: 65%; color: var(--cyan); }
.coordinate-c { left: 36%; bottom: 3%; }

.boot-loader-bottom { align-items: end; }
.boot-loader-caption { display: flex; flex-direction: column; flex: 0 0 220px; line-height: 1; }
.boot-caption-title { color: #eef4f5; font-size: clamp(22px, 3vw, 44px); font-weight: 800; letter-spacing: -0.06em; }
.boot-caption-subtitle { margin-top: 8px; color: #72818b; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.08em; }
.boot-caption-line { width: 70px; height: 1px; margin-top: 14px; background: var(--cyan); }
.boot-progress-wrap { flex: 1 1 auto; max-width: 930px; margin-left: auto; }
.boot-progress-frame { position: relative; height: 8px; padding: 2px 0; border-left: 6px solid #89959d; border-right: 6px solid #89959d; }
.boot-progress-track { display: block; position: relative; height: 2px; background: #7b878f; overflow: hidden; }
.boot-progress-track::after { content: ""; position: absolute; top: -1px; bottom: -1px; left: -18%; width: 18%; background: linear-gradient(90deg, transparent, #fff, var(--cyan), transparent); box-shadow: 0 0 12px var(--cyan); animation: boot-progress-scan 2.4s var(--ease) infinite; }
.boot-progress-track i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--cyan); box-shadow: 0 0 10px rgba(115, 228, 255, 0.7); transition: width 220ms ease-out; }
.boot-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; letter-spacing: 0.07em; }
.boot-loading-status { color: #d9e1e6; white-space: nowrap; }
.boot-loading-status > b { display: inline-block; margin-right: 7px; color: var(--cyan); font-size: 18px; font-weight: 400; line-height: 0; transform: translateY(2px); }
.boot-loading-status strong { color: var(--cyan); font-weight: 400; }
.boot-loading-status em { color: #697780; font-style: normal; }
.boot-loading-source { color: #687680; white-space: nowrap; }
.boot-loading-source b { margin-right: 22px; color: #d9e1e6; font-weight: 700; }

.starfield,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.starfield { z-index: 0; overflow: hidden; }

.starfield span {
  position: absolute;
  display: block;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(227, 245, 255, 0.74);
  box-shadow: 0 0 9px rgba(130, 221, 255, 0.55);
  animation: twinkle 4.5s ease-in-out infinite;
}

.grain {
  z-index: 10;
  opacity: 0.075;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  padding: 0 42px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(8, 11, 16, 0.92), rgba(8, 11, 16, 0.55));
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; width: max-content; gap: 12px; }

.brand-mark {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  transform: rotate(-26deg);
  transition: none;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 39px;
  background: var(--cyan);
  opacity: 0.64;
}

.brand-mark::before { transform: translate(-50%, -50%); }
.brand-mark::after { transform: translate(-50%, -50%) rotate(90deg); }

.brand-mark i,
.brand-mark b {
  position: absolute;
  display: block;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.brand-mark i { left: 6px; top: 6px; background: var(--lime); }
.brand-mark b { right: 5px; bottom: 7px; background: var(--cyan); }

.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 11px; letter-spacing: 0.2em; font-weight: 800; }
.brand-copy small { margin-top: 5px; color: var(--faint); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 8px; letter-spacing: 0.15em; }

.main-nav { display: flex; align-items: stretch; height: 100%; gap: 28px; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-link span { color: var(--faint); font-family: ui-monospace, monospace; font-size: 9px; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { transform: scaleX(1); }

.header-meta { justify-self: end; display: flex; align-items: center; gap: 10px; color: var(--faint); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; letter-spacing: 0.08em; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.meta-divider { width: 24px; height: 1px; background: var(--line); }
.menu-toggle { display: none; }

.section-rail {
  position: fixed;
  z-index: 15;
  left: 28px;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  transform: translateY(-42%);
}

.rail-label { color: var(--faint); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.16em; writing-mode: vertical-rl; transform: rotate(180deg); }
.rail-line { width: 1px; height: 50px; background: var(--line); }
.rail-item { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-family: ui-monospace, monospace; font-size: 9px; transition: color 180ms ease; }
.rail-item i { display: block; width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; transition: background 180ms ease, box-shadow 180ms ease; }
.rail-item:hover, .rail-item.is-active { color: var(--cyan); }
.rail-item.is-active i { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.scroll-scan {
  position: fixed;
  z-index: 18;
  right: clamp(28px, 5vw, 78px);
  bottom: 25px;
  left: clamp(72px, 10vw, 170px);
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 16px;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.scroll-scan-label, .scroll-scan-index { white-space: nowrap; }
.scroll-scan-index { color: var(--cyan); }

.scroll-track {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: rgba(215, 231, 239, 0.2);
}

.scroll-track::after {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -22%;
  width: 22%;
  background: linear-gradient(90deg, transparent, var(--cyan), #fff, transparent);
  box-shadow: 0 0 14px var(--cyan);
  animation: horizontal-scan 3.6s var(--ease) infinite;
}

.scroll-track i {
  position: absolute;
  z-index: 1;
  left: 0;
  top: -1px;
  bottom: -1px;
  display: block;
  width: var(--scroll-progress, 0%);
  background: var(--cyan);
  opacity: 0.6;
  transition: width 250ms ease-out;
}

.slide-controls {
  position: fixed;
  z-index: 18;
  right: clamp(18px, 3.5vw, 52px);
  bottom: clamp(116px, 14vh, 132px);
  display: flex;
  gap: 6px;
}

.slide-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 30px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(8, 11, 16, 0.72);
  font-size: 17px;
  line-height: 1;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.slide-controls button:hover,
.slide-controls button:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(115, 228, 255, 0.1);
  outline: none;
}

.page-transition {
  position: fixed;
  z-index: 40;
  inset: 0;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.page-transition.is-active { visibility: visible; opacity: 1; }

.transition-line,
.transition-trail {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
  transform: translate3d(-2px, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
}

.transition-line {
  z-index: 2;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: #fff;
  box-shadow: none;
  transform: translate3d(-2px, 0, 0);
}

.transition-trail {
  display: none;
}

.page-transition[data-direction="next"].is-active .transition-line { animation: page-wipe-next var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
.page-transition[data-direction="prev"].is-active .transition-line { animation: page-wipe-prev var(--panel-wipe-duration) var(--panel-wipe-ease) both; }

.panel-crosshair {
  position: absolute;
  z-index: 4;
  width: 42px;
  height: 42px;
  color: rgba(215, 231, 239, 0.48);
  pointer-events: none;
  opacity: 0.45;
  transform: scale(0.82);
  transition: color 500ms ease, opacity 500ms ease, transform 700ms var(--ease);
}

.panel-crosshair::before,
.panel-crosshair::after {
  content: "";
  position: absolute;
  display: block;
  background: currentColor;
}

.crosshair-tl {
  top: calc(var(--header-height) + 22px);
  left: clamp(72px, 10vw, 170px);
  background: radial-gradient(circle at 0 0, currentColor 0 2px, transparent 2.5px);
}

.crosshair-tl::before { top: 0; left: 0; width: 42px; height: 1px; }
.crosshair-tl::after { top: 0; left: 0; width: 1px; height: 42px; }

.crosshair-br {
  right: clamp(28px, 5vw, 78px);
  bottom: 75px;
  background: radial-gradient(circle at 100% 100%, currentColor 0 2px, transparent 2.5px);
}

.crosshair-br::before { right: 0; bottom: 0; width: 42px; height: 1px; }
.crosshair-br::after { right: 0; bottom: 0; width: 1px; height: 42px; }
.panel.is-current .panel-crosshair { color: var(--cyan); opacity: 0.9; transform: scale(1); }

.section-scan {
  position: absolute;
  z-index: 3;
  top: calc(var(--header-height) + 22px);
  left: 0;
  width: 100%;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

.section-scan::before {
  content: "";
  position: absolute;
  inset: 0 12%;
  background: repeating-linear-gradient(90deg, rgba(215, 231, 239, 0.16) 0 4px, transparent 4px 9px);
}

.section-scan span {
  position: absolute;
  top: -1px;
  left: -28%;
  width: 28%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), #fff, transparent);
  box-shadow: 0 0 20px rgba(115, 228, 255, 0.9);
}

.section-scan { display: none; }
.panel.is-current .section-scan { opacity: 1; }
.panel.is-current .section-scan span { animation: none; }

main { position: relative; z-index: 1; }

.panel {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + 76px) clamp(72px, 10vw, 170px) 80px;
  overflow: hidden;
}

.panel-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 0.5px), var(--line-soft) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), var(--line-soft) 50%, transparent calc(50% + 0.5px));
  background-size: 50% 100%, 100% 50%;
}

.panel-grid::before,
.panel-grid::after { content: ""; position: absolute; background: var(--line-soft); }
.panel-grid::before { left: 12%; top: 0; bottom: 0; width: 1px; }
.panel-grid::after { right: 12%; top: 0; bottom: 0; width: 1px; }
.panel-grid-dark { opacity: 0.19; }

.hero-panel { display: grid; grid-template-columns: minmax(320px, 0.78fr) minmax(480px, 1.22fr); align-items: center; gap: clamp(38px, 6vw, 110px); }
.hero-copy, .hero-visual, .section-heading, .signals-layout, .field-layout, .field-status, .manifesto-layout, .site-footer { position: relative; z-index: 2; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; letter-spacing: 0.13em; }
.eyebrow-bar { display: inline-block; width: 28px; height: 1px; background: currentColor; }
.hero-index, .manifesto-index { margin: 0 0 25px; color: var(--faint); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.11em; }

h1, h2, h3, p { margin-top: 0; }

h1, h2 { font-size: clamp(2.8rem, 5.2vw, 5.5rem); line-height: 0.94; letter-spacing: -0.08em; font-weight: 760; }
h1 { margin: 0 0 24px; }
h1 em, h2 em { color: var(--cyan); font-style: normal; }
.hero-intro { max-width: 430px; margin-bottom: 28px; color: var(--muted); font-size: 14px; line-height: 1.9; }

.hero-actions { display: flex; align-items: center; gap: 25px; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 178px; padding: 14px 15px 14px 18px; color: var(--bg); background: var(--lime); font-size: 12px; font-weight: 700; overflow: hidden; transition: background 180ms ease, transform 180ms ease; }
.button::after { content: ""; position: absolute; top: -30%; bottom: -30%; left: -30%; width: 18%; background: rgba(255, 255, 255, 0.72); transform: skewX(-22deg) translateX(-160%); transition: transform 500ms var(--ease); }
.button b { font-size: 18px; line-height: 1; font-weight: 400; }
.button:hover { background: #efffa5; transform: translateY(-2px); }
.button:hover::after { transform: skewX(-22deg) translateX(820%); }
.text-link, .arrow-link, .read-all { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-size: 11px; transition: color 180ms ease, gap 180ms ease; }
.text-link b, .arrow-link b, .read-all b { color: var(--cyan); font-size: 18px; line-height: 1; font-weight: 400; }
.text-link:hover, .arrow-link:hover, .read-all:hover { color: var(--cyan); gap: 17px; }
.hero-footnote { display: flex; gap: 25px; margin-top: clamp(24px, 7vh, 72px); color: var(--faint); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.08em; }

.hero-visual { width: min(100%, 670px, 72vh); justify-self: end; }
.visual-topline, .visual-bottomline { display: flex; justify-content: space-between; gap: 20px; color: var(--faint); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.09em; }
.visual-topline { margin-bottom: 14px; }
.visual-topline span:last-child { color: var(--lime); }
.visual-bottomline { margin-top: 13px; }
.apod-sync-line, .news-sync-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; color: var(--faint); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.06em; }
.apod-sync-line span:last-child { color: var(--cyan); }
.news-sync-line { margin-top: -4px; margin-bottom: 12px; }
#news-status { color: var(--orange); text-align: right; }
.visual-coordinates { color: var(--faint); }
.apod-frame { position: relative; aspect-ratio: 1.25 / 1; min-height: 0; border: 1px solid rgba(170, 224, 242, 0.42); background: #101b27; overflow: hidden; box-shadow: clamp(12px, 1.7vw, 22px) clamp(12px, 1.7vw, 22px) 0 rgba(25, 45, 61, 0.26); }
.apod-image-trigger { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; color: inherit; background: #101b27; text-align: left; cursor: zoom-in; }
.apod-image-trigger:focus-visible { outline: 2px solid var(--lime); outline-offset: -5px; }
.apod-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(0.84) contrast(1.08); opacity: 0.78; transition: opacity 600ms ease, transform 1.2s var(--ease), filter 700ms ease; }
.apod-frame.is-loaded .apod-image { opacity: 1; filter: saturate(0.94) contrast(1.08); }
.apod-frame:hover .apod-image { transform: scale(1.03); }
.apod-shade { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4, 7, 11, 0.03), rgba(4, 7, 11, 0.08) 42%, rgba(4, 7, 11, 0.88)); }
.apod-notice { position: absolute; z-index: 3; top: 18px; left: 22px; right: 22px; margin: 0; padding: 7px 10px; border-left: 2px solid var(--orange); color: #ffe0ad; background: rgba(8, 11, 16, 0.78); font-family: ui-monospace, monospace; font-size: 9px; line-height: 1.5; letter-spacing: 0.04em; }
.apod-notice[hidden], .moon-message[hidden], #news-status[hidden] { display: none; }
.apod-crosshair, .moon-crosshair { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; border: 1px solid rgba(115, 228, 255, 0.7); border-radius: 50%; transform: translate(-50%, -50%); opacity: 0.7; }
.apod-crosshair { z-index: 3; pointer-events: none; }
.apod-crosshair::before, .apod-crosshair::after, .moon-crosshair::before, .moon-crosshair::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--cyan); opacity: 0.7; }
.apod-crosshair::before, .moon-crosshair::before { width: 56px; height: 1px; transform: translate(-50%, -50%); }
.apod-crosshair::after, .moon-crosshair::after { height: 56px; width: 1px; transform: translate(-50%, -50%); }
.apod-crosshair i, .apod-crosshair b, .moon-crosshair i, .moon-crosshair b { position: absolute; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--lime); transform: translateY(-50%); }
.apod-crosshair i, .moon-crosshair i { left: -8px; }
.apod-crosshair b, .moon-crosshair b { right: -8px; }
.apod-corner { position: absolute; z-index: 3; width: 23px; height: 23px; border-color: var(--cyan); border-style: solid; opacity: 0.9; pointer-events: none; }
.corner-tl { left: 14px; top: 14px; border-width: 1px 0 0 1px; }
.corner-tr { right: 14px; top: 14px; border-width: 1px 1px 0 0; }
.corner-bl { left: 14px; bottom: 14px; border-width: 0 0 1px 1px; }
.corner-br { right: 14px; bottom: 14px; border-width: 0 1px 1px 0; }
.image-caption { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 30px; pointer-events: none; }
.image-caption > div { min-width: 0; }
.caption-kicker { display: block; margin-bottom: 7px; color: var(--cyan); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.13em; }
.image-caption strong { display: block; overflow: hidden; color: var(--text); font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.caption-date { flex: none; color: var(--lime); font-family: ui-monospace, monospace; font-size: 10px; }

.hero-orbit { position: absolute; z-index: 0; border: 1px solid rgba(115, 228, 255, 0.12); border-radius: 50%; pointer-events: none; }
.orbit-a { width: 580px; height: 280px; right: -230px; top: 16%; transform: rotate(-32deg); }
.orbit-b { width: 730px; height: 350px; right: -310px; top: 10%; transform: rotate(35deg); border-color: rgba(217, 255, 91, 0.07); }
.orbit-c { width: 380px; height: 190px; left: -260px; bottom: 3%; transform: rotate(-18deg); }

.observatory-next-hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: clamp(42px, 6vh, 72px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 32px;
  color: var(--cyan);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 500ms ease, transform 650ms var(--ease), visibility 0s linear 500ms;
}

.observatory-next-hint.is-idle {
  opacity: 0.88;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.observatory-next-hint-v {
  position: relative;
  display: block;
  width: 32px;
  height: 18px;
  animation: observatory-hint-breathe 2.6s ease-in-out infinite;
}

.observatory-next-hint-v::before,
.observatory-next-hint-v::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 16px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px rgba(115, 228, 255, 0.45);
}

.observatory-next-hint-v::before {
  left: 0;
  transform-origin: right center;
  transform: rotate(31deg);
}

.observatory-next-hint-v::after {
  right: 0;
  transform-origin: left center;
  transform: rotate(-31deg);
}

.observatory-next-hint:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 5px;
}

.signals-panel, .field-panel { background: rgba(10, 16, 23, 0.55); }
.signals-panel, .field-panel, .manifesto-panel { display: flex; flex-direction: column; justify-content: center; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin: 0 auto clamp(24px, 5vh, 58px); width: min(100%, var(--max)); }
.section-heading h2 { margin: 0; font-size: clamp(2.35rem, 4.4vw, 4.9rem); }
.heading-note { display: grid; grid-template-columns: auto 205px; align-items: start; gap: 25px; padding-bottom: 7px; color: var(--muted); }
.heading-note > span { color: var(--cyan); font-family: ui-monospace, monospace; font-size: 10px; }
.heading-note p { margin: 0; font-size: 12px; line-height: 1.7; }
.signals-layout, .field-layout { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr); gap: clamp(40px, 8vw, 135px); width: min(100%, var(--max)); margin: 0 auto; }

.featured-signal { position: relative; min-height: 462px; padding: 27px 30px 30px; border: 1px solid var(--line); background: linear-gradient(140deg, rgba(26, 45, 60, 0.94), rgba(12, 20, 29, 0.98)); overflow: hidden; }
.featured-signal::after { content: ""; position: absolute; right: -70px; bottom: -160px; width: 300px; height: 300px; border: 1px solid rgba(115, 228, 255, 0.26); border-radius: 50%; box-shadow: 0 0 0 25px rgba(115, 228, 255, 0.035), 0 0 0 60px rgba(115, 228, 255, 0.025); }
.featured-signal-top, .card-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--faint); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.09em; }
.signal-tag { color: var(--cyan); }
.signal-icon { position: relative; width: 94px; height: 94px; margin: 62px 0 35px; border: 1px solid var(--cyan); border-radius: 50%; }
.signal-icon::before, .signal-icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--cyan); opacity: 0.72; }
.signal-icon::before { width: 128px; height: 1px; transform: translate(-50%, -50%); }
.signal-icon::after { width: 1px; height: 128px; transform: translate(-50%, -50%); }
.signal-icon span { position: absolute; inset: 18px; display: block; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff5b4, #ffcc62 23%, #f78937 51%, rgba(240, 86, 43, 0.4) 68%, transparent 70%); box-shadow: 0 0 30px rgba(255, 166, 63, 0.45); }
.signal-kicker, .note-label { margin-bottom: 11px; color: var(--lime); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.11em; }
.featured-signal h3 { margin-bottom: 17px; font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.1; letter-spacing: -0.06em; }
.signal-summary { max-width: 450px; margin-bottom: 25px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.featured-signal-mark { position: absolute; right: 30px; top: 48%; color: rgba(115, 228, 255, 0.26); font-size: 70px; font-weight: 200; }

.news-tabs { display: flex; align-items: center; gap: 25px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.news-tab { position: relative; padding: 0 0 13px; color: var(--faint); background: transparent; font-size: 11px; transition: color 180ms ease; }
.news-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cyan); transform: scaleX(0); transition: transform 180ms ease; }
.news-tab:hover, .news-tab.is-active { color: var(--text); }
.news-tab.is-active::after { transform: scaleX(1); }
.news-list { min-height: 336px; }
.news-item { display: grid; grid-template-columns: 68px 1fr 16px; gap: 22px; align-items: center; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; text-align: left; transition: padding 180ms ease, background 180ms ease; }
.news-item:hover { padding-left: 10px; padding-right: 10px; background: rgba(115, 228, 255, 0.045); }
.news-item.is-hidden { display: none; }
.news-item > div:nth-child(2) { min-width: 0; }
.news-type { color: var(--cyan); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.08em; }
.news-item time { display: block; margin-top: 6px; color: var(--faint); font-family: ui-monospace, monospace; font-size: 9px; }
.news-item h3 { display: -webkit-box; max-width: 100%; margin: 0 0 5px; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; word-break: break-word; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-item p { display: -webkit-box; max-width: 100%; margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; word-break: break-word; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-arrow { color: var(--cyan); font-size: 18px; font-weight: 300; }
.read-all { margin-top: 18px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.08em; }

.field-layout { grid-template-columns: minmax(280px, 0.72fr) minmax(440px, 1.28fr); align-items: stretch; gap: clamp(24px, 5vw, 80px); }
.moon-card { position: relative; min-height: 490px; padding: 27px 30px 30px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(17, 29, 41, 0.95), rgba(9, 15, 22, 0.96)); overflow: hidden; }
.moon-card::before { content: "LUNAR / 29.53"; position: absolute; right: -37px; top: 44%; color: rgba(115, 228, 255, 0.09); font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: 0.15em; transform: rotate(-90deg); }
.moon-stage { position: relative; display: grid; place-items: center; height: 315px; }
.moon-orb { position: relative; width: 190px; height: 190px; border-radius: 50%; background: #080b10; box-shadow: 0 0 0 1px rgba(230, 250, 255, 0.55), 0 0 55px rgba(115, 228, 255, 0.25); overflow: hidden; }
.moon-orb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) contrast(1.08); transform: scale(1.02); }
.moon-crosshair { position: absolute; z-index: 2; width: 225px; height: 225px; border-color: rgba(115, 228, 255, 0.36); }
.moon-crosshair::before { width: 263px; background: rgba(115, 228, 255, 0.38); }
.moon-crosshair::after { height: 263px; background: rgba(115, 228, 255, 0.38); }
.moon-readout { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 5px 20px; }
.moon-readout span { color: var(--cyan); font-size: 14px; }
.moon-readout strong { color: var(--lime); font-family: ui-monospace, monospace; font-size: 30px; font-weight: 400; letter-spacing: -0.06em; }
.moon-readout small { grid-column: 1 / -1; color: var(--faint); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.1em; }
.moon-readout .moon-source { color: rgba(148, 163, 180, 0.72); font-size: 8px; }
.moon-readout .moon-message { color: var(--orange); font-size: 8px; line-height: 1.5; letter-spacing: 0.03em; }
.moon-footnote { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-family: ui-monospace, monospace; font-size: 8px; line-height: 1.5; letter-spacing: 0.05em; }
.moon-footnote span:last-child { color: var(--lime); text-align: right; }
.field-intelligence { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.location-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; align-items: end; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.location-control, .custom-coordinates label { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: var(--faint); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.08em; }
.location-control select, .custom-coordinates input { width: 100%; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 0; color: var(--text); background: rgba(17, 29, 41, 0.76); font-family: inherit; font-size: 10px; letter-spacing: 0; outline: none; }
.location-control select:focus, .custom-coordinates input:focus { border-color: var(--cyan); }
.location-control select option { color: #101821; background: #eaf4f2; }
.location-action, .coordinate-submit { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--cyan); color: var(--cyan); background: rgba(115, 228, 255, 0.06); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.04em; transition: color 180ms ease, background 180ms ease, border-color 180ms ease; }
.location-action span { font-size: 16px; line-height: 1; }
.location-action:hover, .coordinate-submit:hover { color: var(--bg); background: var(--cyan); }
.custom-coordinates { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.custom-coordinates[hidden] { display: none; }
.custom-coordinates input { height: 30px; color: var(--text); }
.coordinate-submit { height: 30px; border-color: var(--lime); color: var(--lime); }
.location-status { grid-column: 1 / -1; margin: 0; color: var(--faint); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.04em; }
.weather-card, .target-card { border: 1px solid var(--line); background: rgba(17, 29, 41, 0.72); }
.weather-card { padding: 14px 17px 13px; }
.weather-topline, .target-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--faint); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.08em; }
.weather-topline span:first-child, .target-topline span:first-child { color: var(--cyan); }
.weather-readout { display: flex; align-items: baseline; gap: 13px; margin: 10px 0 11px; }
.weather-readout strong { color: var(--lime); font-family: ui-monospace, monospace; font-size: 20px; font-weight: 400; white-space: nowrap; }
.weather-readout span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.weather-metrics, .target-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.weather-metrics span, .target-stats span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.weather-metrics b, .target-stats b { color: var(--text); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 400; white-space: nowrap; }
.weather-metrics small, .target-stats small { color: var(--faint); font-size: 8px; white-space: nowrap; }
.target-stats span:last-child { min-width: 0; }
.target-stats span:last-child b { white-space: normal; overflow-wrap: anywhere; word-break: break-word; line-height: 1.2; }
.weather-guidance { min-height: 27px; margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.weather-map-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--cyan); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.05em; }
.weather-map-link b { font-size: 15px; font-weight: 400; transition: transform 180ms ease; }
.weather-map-link:hover b { transform: translate(3px, -3px); }
.weather-card.is-good { border-color: rgba(217, 255, 91, 0.42); }
.weather-card.is-good .weather-readout strong { color: var(--lime); }
.weather-card.is-marginal { border-color: rgba(255, 186, 99, 0.5); }
.weather-card.is-marginal .weather-readout strong { color: var(--orange); }
.weather-card.is-poor { border-color: rgba(255, 133, 112, 0.5); }
.weather-card.is-poor .weather-readout strong { color: #ff9e89; }
.target-card { padding: 15px 17px 16px; background: linear-gradient(145deg, rgba(24, 42, 54, 0.9), rgba(10, 17, 25, 0.92)); }
.target-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 13px; }
.target-kind { color: var(--lime); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.09em; }
.target-status { color: var(--cyan); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.06em; text-align: right; }
.target-card h3 { margin: 7px 0 6px; color: var(--text); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.1; letter-spacing: -0.05em; }
.target-description { max-width: 600px; margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.target-stats { padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.target-stats b { color: var(--lime); }
.target-index { margin-top: 10px; padding: 8px 0 7px; border-bottom: 1px solid var(--line); }
.target-index-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--cyan); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.08em; }
.target-index-top b { color: var(--lime); font-size: 15px; font-weight: 400; white-space: nowrap; }
.target-factor-summary { margin: 5px 0 0; color: var(--muted); font-family: ui-monospace, monospace; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.target-guide { margin-top: 10px; }
.target-guide span { color: var(--cyan); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.08em; }
.target-guide p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.target-equipment { margin: 8px 0 0; color: var(--faint); font-size: 9px; line-height: 1.5; }
.field-notes { display: flex; flex-direction: column; }
.field-note-row { display: grid; grid-template-columns: 28px 1fr 17px; gap: 13px; align-items: start; min-height: 80px; padding: 3px 0 11px; border-bottom: 1px solid var(--line); }
.field-note-row + .field-note-row { padding-top: 11px; }
.note-number { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--cyan); color: var(--cyan); font-family: ui-monospace, monospace; font-size: 10px; }
.field-note-row h3 { margin: 0 0 4px; font-size: 14px; letter-spacing: -0.04em; }
.field-note-row p:last-child { max-width: 520px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.note-arrow { color: var(--cyan); font-size: 18px; transition: transform 180ms ease; }
.field-note-row:hover .note-arrow { transform: translate(4px, -4px); }
.field-status { display: flex; align-items: center; gap: 12px; width: min(100%, var(--max)); margin: 28px auto 0; color: var(--faint); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.08em; }
.field-reference { color: var(--faint); white-space: nowrap; }
.field-status a { color: var(--cyan); white-space: nowrap; transition: color 180ms ease; }
.field-status a:hover { color: var(--lime); }
.status-line { flex: 1; height: 1px; background: var(--line); }

.comets-panel { background: rgba(8, 15, 22, 0.48); }
.comet-layout { display: grid; grid-template-columns: minmax(320px, 0.78fr) minmax(430px, 1.22fr); gap: clamp(28px, 6vw, 92px); width: min(100%, var(--max)); margin: 0 auto; }
.comet-feature { position: relative; min-height: 385px; padding: 21px 24px 22px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(25, 45, 60, 0.93), rgba(10, 17, 25, 0.98)); overflow: hidden; }
.comet-feature::before { display: none; }
.comet-feature::after { content: ""; position: absolute; z-index: 0; right: -90px; bottom: -145px; width: 290px; height: 290px; border: 1px solid rgba(115, 228, 255, 0.22); border-radius: 50%; box-shadow: 0 0 0 26px rgba(115, 228, 255, 0.035), 0 0 0 60px rgba(115, 228, 255, 0.02); pointer-events: none; }
.comet-feature > * { position: relative; z-index: 2; }
.comet-flight { position: absolute !important; z-index: 3 !important; top: 10%; left: -78%; width: 260%; height: 3px; background: linear-gradient(90deg, transparent 0%, rgba(115, 228, 255, 0.16) 16%, rgba(115, 228, 255, 0.7) 40%, #ffffff 52%, rgba(115, 228, 255, 0.36) 70%, transparent 100%); opacity: 0; box-shadow: 0 0 12px rgba(115, 228, 255, 0.7); transform: rotate(-22deg) translate3d(48%, -42px, 0); animation: comet-flight-pass 16s linear infinite; will-change: transform, opacity; pointer-events: none; }
.comet-flight::after { content: ""; position: absolute; left: 5%; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 5px #ffffff, 0 0 13px var(--cyan), 0 0 24px rgba(115, 228, 255, 0.72); transform: translate(-50%, -50%); }
.comet-feature-top, .comet-index-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--faint); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.08em; }
.comet-feature-top span:first-child, .comet-index-top span:first-child { color: var(--cyan); }
.comet-orbit-mark { position: relative; display: grid; place-items: center; width: 74px; height: 74px; margin: 23px 0 19px; border: 1px solid var(--cyan); border-radius: 50%; animation: comet-float 7s ease-in-out infinite; will-change: transform; }
.comet-orbit-mark::before, .comet-orbit-mark::after { content: ""; position: absolute; left: 50%; top: 50%; background: rgba(115, 228, 255, 0.58); }
.comet-orbit-mark::before { width: 106px; height: 1px; transform: translate(-50%, -50%); }
.comet-orbit-mark::after { width: 1px; height: 106px; transform: translate(-50%, -50%); }
.comet-orbit-mark i, .comet-orbit-mark b { position: absolute; z-index: 1; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.comet-orbit-mark i { left: 8px; top: 10px; }
.comet-orbit-mark b { right: 8px; bottom: 10px; background: var(--cyan); }
.comet-orbit-mark span { position: relative; z-index: 2; color: var(--lime); font-size: 25px; transform: rotate(-25deg); }
.comet-orbit-mark i { animation: comet-pulse 2.8s ease-in-out infinite; }
.comet-kicker { margin: 0 0 7px; color: var(--lime); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.1em; }
.comet-feature h3 { max-width: 420px; margin: 0 0 9px; color: var(--text); font-size: clamp(1.55rem, 2.7vw, 2.35rem); line-height: 1.05; letter-spacing: -0.06em; }
.comet-feature-summary { max-width: 520px; margin: 0 0 15px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.comet-coordinates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.comet-coordinates span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.comet-coordinates b { overflow: hidden; color: var(--cyan); font-family: ui-monospace, monospace; font-size: 10px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.comet-coordinates small { color: var(--faint); font-size: 8px; }
.comet-feature-guidance { margin: 13px 0 14px; }
.comet-feature-guidance span { color: var(--cyan); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.09em; }
.comet-feature-guidance p { max-width: 520px; margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.comet-index { min-width: 0; }
.comet-list { margin-top: 9px; border-top: 1px solid var(--line); }
.comet-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 82px 15px; gap: 11px; align-items: center; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; text-align: left; transition: padding 180ms ease, background 180ms ease; }
.comet-row:hover, .comet-row.is-active { padding-left: 9px; padding-right: 9px; background: rgba(115, 228, 255, 0.07); }
.comet-row.is-active { border-bottom-color: rgba(115, 228, 255, 0.48); }
.comet-row-index { color: var(--faint); font-family: ui-monospace, monospace; font-size: 9px; }
.comet-row-main, .comet-row-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.comet-row-main b { overflow: hidden; color: var(--text); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.comet-row-main small, .comet-row-meta small { overflow: hidden; color: var(--faint); font-family: ui-monospace, monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.comet-row-meta { text-align: right; }
.comet-row-meta b { color: var(--lime); font-family: ui-monospace, monospace; font-size: 10px; font-weight: 400; }
.comet-row-arrow { color: var(--cyan); font-size: 17px; }
.comet-empty { margin: 0; padding: 18px 0; color: var(--muted); font-size: 11px; }
.comet-source-note { margin: 14px 0 0; color: var(--faint); font-size: 9px; line-height: 1.6; }
.comet-status { display: flex; align-items: center; gap: 12px; width: min(100%, var(--max)); margin: 25px auto 0; color: var(--faint); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.07em; }
.comet-status a { color: var(--cyan); transition: color 180ms ease; }
.comet-status a:hover { color: var(--lime); }

@media (min-width: 781px) {
  .field-panel { justify-content: flex-start; padding-top: calc(var(--header-height) + 48px); padding-bottom: 28px; }
  .field-panel .section-heading { margin-bottom: 28px; }
  .field-panel .field-notes { display: none; }
  .field-panel .location-form { gap: 6px 10px; padding-bottom: 7px; }
  .field-panel .weather-card { padding-top: 10px; padding-bottom: 10px; }
  .field-panel .weather-readout { margin: 7px 0 8px; }
  .field-panel .weather-guidance { min-height: 0; margin-top: 7px; }
  .field-panel .target-card { padding-top: 11px; padding-bottom: 11px; }
  .field-panel .target-header { margin-top: 8px; }
  .field-panel .target-description { margin-bottom: 8px; }
  .field-panel .target-index { margin-top: 6px; padding: 6px 0 5px; }
  .field-panel .target-index-top { font-size: 7px; }
  .field-panel .target-index-top b { font-size: 13px; }
  .field-panel .target-factor-summary { margin-top: 3px; font-size: 8px; }
  .field-panel .target-guide { margin-top: 7px; }
  .field-panel .target-equipment { margin-top: 5px; }
}

.manifesto-panel { min-height: 86svh; }
.manifesto-layout { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr); align-items: center; gap: 80px; width: min(100%, var(--max)); margin: 0 auto; }
.manifesto-copy h2 { max-width: 750px; margin: 0 0 24px; font-size: clamp(2.7rem, 5vw, 5.5rem); }
.manifesto-copy > p:last-child { max-width: 500px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.manifesto-diagram { position: relative; aspect-ratio: 1; max-width: min(430px, 48vh); justify-self: end; width: 100%; }
.diagram-system { position: absolute; inset: 0; transform-origin: center; will-change: opacity, transform; }
.manifesto-diagram.is-visible .diagram-system { animation: logo-entry 1200ms var(--ease) 120ms both; }
.diagram-ring { --ring-base-angle: 0deg; position: absolute; left: 50%; top: 50%; border: 1px solid rgba(115, 228, 255, 0.36); border-radius: 50%; transform: translate(-50%, -50%) rotate(var(--ring-base-angle)); transform-origin: center; overflow: visible; will-change: transform; }
.ring-one { width: 48%; height: 48%; }
.ring-two { width: 72%; height: 72%; border-color: rgba(217, 255, 91, 0.24); }
.ring-three { --ring-base-angle: -31deg; width: 98%; height: 33%; transform: translate(-50%, -50%) rotate(var(--ring-base-angle)); border-color: rgba(115, 228, 255, 0.2); }
.diagram-core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 110px; height: 110px; border: 1px solid var(--cyan); border-radius: 50%; background: rgba(8, 11, 16, 0.78); transform: translate(-50%, -50%); box-shadow: 0 0 35px rgba(115, 228, 255, 0.16); animation: mm-breathe 4.8s ease-in-out infinite; will-change: transform, box-shadow; }
.diagram-core span { color: var(--lime); font-size: 22px; letter-spacing: 0.15em; }
.diagram-core small { position: absolute; bottom: 21px; color: var(--cyan); font-size: 12px; }
.diagram-label { position: absolute; color: var(--faint); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.1em; }
.label-one { left: 4%; top: 22%; }
.label-two { right: 3%; top: 64%; color: var(--cyan); }
.label-three { left: 12%; bottom: 10%; color: var(--lime); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: min(100%, var(--max)); margin: clamp(18px, 7vh, 72px) auto 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.06em; }
.site-footer div { display: flex; align-items: center; gap: 18px; }
.site-footer strong { color: var(--text); font-size: 10px; }
.site-footer a { color: var(--cyan); transition: color 180ms ease; }
.site-footer a:hover { color: var(--lime); }

.modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 30px; visibility: hidden; opacity: 0; transition: visibility 300ms ease, opacity 300ms ease; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 4, 6, 0.82); backdrop-filter: blur(11px); }
.modal-dialog { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(300px, 1.1fr) minmax(280px, 0.9fr); width: min(100%, 1050px); max-height: min(720px, 90vh); border: 1px solid var(--line); background: var(--surface); box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.3); overflow: auto; transform: translateY(18px); transition: transform 300ms var(--ease); }
.modal.is-open .modal-dialog { transform: translateY(0); }
.modal-close { position: absolute; z-index: 2; right: 14px; top: 10px; width: 32px; height: 32px; color: var(--text); background: rgba(8, 11, 16, 0.64); font-size: 27px; font-weight: 200; line-height: 1; }
.modal-image-wrap { min-height: 360px; background: #080b10; }
.modal-image-wrap img { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.modal-copy { padding: 47px 42px 42px; }
.modal-copy h2 { margin: 0 0 10px; color: var(--text); font-size: clamp(2.3rem, 4vw, 4rem); letter-spacing: -0.07em; }
.modal-date, .modal-credit { color: var(--cyan); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.08em; }
.modal-copy > p:not(.eyebrow):not(.modal-date) { margin: 30px 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.translation-state { margin: 25px 0 8px !important; color: var(--lime) !important; font-family: ui-monospace, monospace; font-size: 9px !important; letter-spacing: 0.1em; }
.modal-copy #modal-explanation { margin: 0 0 20px; }
.translation-toggle { display: inline-flex; align-items: center; gap: 17px; padding: 8px 0 9px; border-bottom: 1px solid var(--cyan); color: var(--cyan); background: transparent; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.08em; transition: color 180ms ease, border-color 180ms ease, gap 180ms ease; }
.translation-toggle b { font-size: 16px; font-weight: 400; }
.translation-toggle:hover { gap: 23px; color: var(--lime); border-color: var(--lime); }
.modal-original { margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.modal-original[hidden] { display: none; }
.original-label { display: block; margin-bottom: 11px; color: var(--faint); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: 0.1em; }
.modal-original h3 { margin: 0 0 12px; color: var(--text); font-size: 15px; line-height: 1.4; }
.modal-original p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.original-image-link { display: inline-flex; align-items: center; gap: 17px; margin-top: 24px; padding: 8px 0 9px; border-bottom: 1px solid var(--cyan); color: var(--cyan); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.08em; transition: color 180ms ease, border-color 180ms ease, gap 180ms ease; }
.original-image-link:hover, .original-image-link:focus-visible { gap: 23px; color: var(--lime); border-color: var(--lime); }
.original-image-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.original-image-link[hidden] { display: none; }
.original-image-link b { font-size: 16px; font-weight: 400; }
.modal-credit { display: block; margin-top: 25px; }
.news-modal-dialog { grid-template-columns: minmax(300px, 1.05fr) minmax(300px, 0.95fr); width: min(100%, 1050px); }
.news-modal-media { position: relative; min-height: 360px; background: #080b10; overflow: hidden; }
.news-modal-media img, .news-modal-media video { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.news-modal-media img[hidden], .news-modal-media video[hidden] { display: none; }
.news-media-note { position: absolute; z-index: 1; left: 18px; bottom: 18px; padding: 6px 9px; color: var(--cyan); background: rgba(8, 11, 16, 0.78); font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: 0.08em; }
.news-modal-copy { max-width: 760px; padding-right: 42px; }
.news-modal-copy h2 { max-width: 690px; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1.05; }
.news-modal-guidance { margin: 25px 0 0 !important; color: var(--faint) !important; font-size: 11px !important; line-height: 1.7 !important; }
.news-source-link { margin-top: 18px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal-delay { transition-delay: 120ms; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes twinkle { 0%, 100% { opacity: 0.32; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes horizontal-scan { 0% { transform: translateX(0); } 100% { transform: translateX(650%); } }
@keyframes boot-progress-scan { 0% { transform: translateX(0); } 100% { transform: translateX(660%); } }
@keyframes boot-orbit { from { transform: translate(-50%, -50%) rotate(-28deg); } to { transform: translate(-50%, -50%) rotate(332deg); } }
@keyframes boot-orbit-reverse { from { transform: translate(-50%, -50%) rotate(32deg); } to { transform: translate(-50%, -50%) rotate(-328deg); } }
@keyframes logo-entry { from { opacity: 0; transform: scale(0.82) translate3d(0, 12px, 0); } 68% { opacity: 1; transform: scale(1.025) translate3d(0, -2px, 0); } to { opacity: 1; transform: scale(1) translate3d(0, 0, 0); } }
@keyframes comet-flight { 0% { opacity: 0.56; transform: rotate(-25deg) translate3d(-105px, -28px, 0); } 50% { opacity: 0.98; transform: rotate(-25deg) translate3d(12px, 4px, 0); } 100% { opacity: 0.56; transform: rotate(-25deg) translate3d(145px, 42px, 0); } }
@keyframes comet-flight-pass {
  0%, 100% { opacity: 0; transform: rotate(-22deg) translate3d(48%, -42px, 0); }
  12% { opacity: 0.72; transform: rotate(-22deg) translate3d(34%, -30px, 0); }
  26% { opacity: 0.96; transform: rotate(-22deg) translate3d(18%, -15px, 0); }
  74% { opacity: 0.96; transform: rotate(-22deg) translate3d(-28%, 24px, 0); }
  90% { opacity: 0.72; transform: rotate(-22deg) translate3d(-43%, 37px, 0); }
}
@keyframes mm-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 35px rgba(115, 228, 255, 0.16); }
  50% { transform: translate(-50%, -50%) scale(1.035); box-shadow: 0 0 48px rgba(115, 228, 255, 0.28), 0 0 12px rgba(217, 255, 91, 0.12); }
}
@keyframes observatory-hint-breathe {
  0%, 100% { opacity: 0.3; transform: translateY(0) scale(0.9); }
  50% { opacity: 1; transform: translateY(5px) scale(1.03); }
}
@keyframes comet-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -4px, 0); } }
@keyframes comet-pulse { 0%, 100% { opacity: 0.55; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.35); } }
@keyframes page-wipe-next { from { transform: translate3d(-2px, 0, 0); } to { transform: translate3d(calc(100vw + 2px), 0, 0); } }
@keyframes page-wipe-prev { from { transform: translate3d(calc(100vw + 2px), 0, 0); } to { transform: translate3d(-2px, 0, 0); } }
@keyframes page-wipe-next-vertical { from { transform: translate3d(0, -2px, 0); } to { transform: translate3d(0, calc(100dvh + 2px), 0); } }
@keyframes page-wipe-prev-vertical { from { transform: translate3d(0, calc(100dvh + 2px), 0); } to { transform: translate3d(0, -2px, 0); } }
@keyframes panel-mask-next-vertical { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(100% 0 0 0); } }
@keyframes panel-mask-prev-vertical { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes panel-reveal-next-vertical { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes panel-reveal-prev-vertical { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes panel-mask-next { from { clip-path: inset(0 0 0 0); -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { clip-path: inset(0 0 0 100%); -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes panel-mask-prev { from { clip-path: inset(0 0 0 0); -webkit-mask-position: 0 0; mask-position: 0 0; } to { clip-path: inset(0 100% 0 0); -webkit-mask-position: 100% 0; mask-position: 100% 0; } }
@keyframes panel-reveal-next { from { clip-path: inset(0 100% 0 0); -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { clip-path: inset(0 0 0 0); -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes panel-reveal-prev { from { clip-path: inset(0 0 0 100%); -webkit-mask-position: 0 0; mask-position: 0 0; } to { clip-path: inset(0 0 0 0); -webkit-mask-position: 100% 0; mask-position: 100% 0; } }

@media (min-width: 781px) {
  html, body { width: 100%; height: 100%; overflow: hidden; }
  main { position: relative; display: block; width: 100%; height: 100dvh; overflow: hidden; scrollbar-width: none; }
  main::-webkit-scrollbar { display: none; }
  main > .panel { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; overflow: hidden; visibility: hidden; opacity: 0; z-index: 0; clip-path: inset(0 0 0 0); }
  main > .panel.is-current { visibility: visible; opacity: 1; z-index: 1; }
  main > .panel.is-leaving { visibility: visible; opacity: 1; z-index: 1; }
  main > .panel.is-leaving.page-mask-next,
  main > .panel.is-leaving.page-mask-prev {
    contain: paint;
    will-change: clip-path, mask-position;
  }
  main > .panel.is-leaving.page-mask-next {
    -webkit-mask-image: linear-gradient(90deg, transparent 0 50%, #fff 50% 100%);
    mask-image: linear-gradient(90deg, transparent 0 50%, #fff 50% 100%);
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  main > .panel.is-leaving.page-mask-prev {
    -webkit-mask-image: linear-gradient(90deg, #fff 0 50%, transparent 50% 100%);
    mask-image: linear-gradient(90deg, #fff 0 50%, transparent 50% 100%);
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  main > .panel.is-leaving.page-mask-next.is-masking { animation: panel-mask-next var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  main > .panel.is-leaving.page-mask-prev.is-masking { animation: panel-mask-prev var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  main > .panel.is-transition-target {
    visibility: visible;
    opacity: 1;
    z-index: 3;
    contain: paint;
    backface-visibility: hidden;
    pointer-events: none;
    transform: translateZ(0);
    will-change: clip-path, mask-position;
  }
  main > .panel.is-transition-target.wipe-next {
    clip-path: inset(0 100% 0 0);
    -webkit-mask-image: linear-gradient(90deg, #fff 0 50%, transparent 50% 100%);
    mask-image: linear-gradient(90deg, #fff 0 50%, transparent 50% 100%);
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transform-origin: left center;
  }
  main > .panel.is-transition-target.wipe-next.is-wiping { animation: panel-reveal-next var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  main > .panel.is-transition-target.wipe-prev {
    clip-path: inset(0 0 0 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0 50%, #fff 50% 100%);
    mask-image: linear-gradient(90deg, transparent 0 50%, #fff 50% 100%);
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transform-origin: right center;
  }
  main > .panel.is-transition-target.wipe-prev.is-wiping { animation: panel-reveal-prev var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
}

body.is-panel-transitioning .grain { opacity: 0; }
body.is-panel-transitioning .starfield span { animation-play-state: paused; }

@media (min-width: 781px) and (max-height: 860px) {
  .panel { padding-top: calc(var(--header-height) + 38px); padding-bottom: 42px; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2 { font-size: clamp(2.35rem, 4.4vw, 4.5rem); }
  .hero-footnote { margin-top: 30px; }
  .featured-signal { min-height: 0; padding-top: 22px; padding-bottom: 22px; }
  .signal-icon { width: 72px; height: 72px; margin-top: 30px; margin-bottom: 20px; }
  .signal-icon span { inset: 13px; }
  .featured-signal h3 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); }
  .signal-summary { margin-bottom: 14px; }
  .news-tabs { gap: 18px; margin-bottom: 8px; }
  .news-tab { padding-bottom: 9px; }
  .news-sync-line { margin-top: -2px; margin-bottom: 6px; }
  .news-list { min-height: 0; }
  .news-item { grid-template-columns: 54px minmax(0, 1fr) 14px; gap: 14px; padding: 10px 0; }
  .news-item h3 { margin-bottom: 2px; font-size: 12px; line-height: 1.3; -webkit-line-clamp: 1; }
  .news-item p { font-size: 10px; line-height: 1.4; -webkit-line-clamp: 1; }
  .news-item time { margin-top: 3px; font-size: 8px; }
  .read-all { margin-top: 12px; }
  .moon-card { min-height: 360px; }
  .moon-stage { height: 225px; }
  .moon-orb { width: 150px; height: 150px; }
  .moon-crosshair { width: 183px; height: 183px; }
  .moon-crosshair::before { width: 215px; }
  .moon-crosshair::after { height: 215px; }
  .field-layout { gap: 24px; }
  .moon-card { min-height: 360px; padding: 20px 22px 22px; }
  .moon-stage { height: 225px; }
  .moon-orb { width: 150px; height: 150px; }
  .moon-crosshair { width: 183px; height: 183px; }
  .moon-crosshair::before { width: 215px; }
  .moon-crosshair::after { height: 215px; }
  .field-intelligence { gap: 9px; }
  .weather-card, .target-card { padding-top: 11px; padding-bottom: 11px; }
  .weather-readout { margin: 7px 0 8px; }
  .weather-guidance { min-height: 0; margin-top: 7px; }
  .target-header { margin-top: 8px; }
  .target-description { margin-bottom: 8px; }
  .target-guide { margin-top: 7px; }
  .target-equipment { margin-top: 5px; }
  .field-note-row { min-height: 0; padding-bottom: 7px; }
  .field-note-row + .field-note-row { padding-top: 7px; }
  .field-status { margin-top: 16px; }
  .comet-layout { gap: 34px; }
  .comet-feature { min-height: 340px; padding-top: 17px; padding-bottom: 17px; }
  .comet-orbit-mark { margin-top: 15px; margin-bottom: 12px; }
  .comet-feature h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
  .comet-status { margin-top: 15px; }
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 28px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; position: absolute; left: 0; right: 0; bottom: -46px; height: 46px; justify-content: center; gap: 24px; padding: 0 20px; border-bottom: 1px solid var(--line-soft); background: rgba(8, 11, 16, 0.86); }
  .header-meta { grid-column: 2; grid-row: 1; }
  .section-rail { display: none; }
  .scroll-scan { left: 28px; right: 28px; bottom: 18px; }
  .slide-controls { right: 28px; }
  .crosshair-tl { left: 35px; }
  .crosshair-br { right: 28px; }
  .boot-loader {
    --boot-tl-left: 35px;
    --boot-br-right: 28px;
    --boot-cross-top: var(--boot-tl-top);
    --boot-cross-right: var(--boot-br-right);
    padding: 32px 28px 38px;
  }
  .boot-loader::before { top: var(--boot-cross-top); }
  .boot-loader::after { right: var(--boot-cross-right); }
  .boot-loader-path { display: none; }
  .boot-loader-center { width: min(58vw, 400px); top: 39%; }
  .boot-loader-caption { flex-basis: 160px; }
  .boot-caption-title { font-size: 27px; }
  .boot-progress-wrap { max-width: 70%; }
  .boot-loading-source { display: none; }
  .panel { padding-left: clamp(35px, 7vw, 80px); padding-right: clamp(35px, 7vw, 80px); }
  .hero-panel { gap: 50px; }
  .signals-layout, .field-layout { gap: 36px; }
  .comet-layout { gap: 34px; }
}

@media (min-width: 781px) and (max-width: 900px) {
  .panel { padding-left: 32px; padding-right: 32px; }
  .hero-panel { grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr); gap: 24px; }
  .signals-layout, .field-layout, .comet-layout { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 22px; }
  .field-layout { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .hero-visual { width: min(100%, 62vh); }
  .section-heading { gap: 25px; }
  .heading-note { grid-template-columns: auto minmax(100px, 160px); gap: 14px; }
  .heading-note p { font-size: 10px; }
}

@media (min-width: 781px) and (max-height: 760px) {
  .panel { padding-top: calc(var(--header-height) + 28px); padding-bottom: 30px; }
  .signals-panel, .field-panel, .manifesto-panel { justify-content: flex-start; }
  .hero-panel { gap: 28px; }
  .hero-copy h1 { margin-bottom: 18px; font-size: clamp(3rem, 6vw, 5.7rem); }
  .hero-intro { max-width: 390px; margin-bottom: 20px; font-size: 12px; line-height: 1.65; }
  .hero-footnote { margin-top: 25px; }
  .hero-visual { max-width: 680px; }
  .visual-topline { margin-bottom: 7px; }
  .visual-bottomline { margin-top: 7px; }
  .apod-frame { min-height: 0; box-shadow: 14px 14px 0 rgba(25, 45, 61, 0.24); }
  .apod-sync-line { margin-top: 5px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading h2 { font-size: clamp(2.1rem, 4.4vw, 4rem); }
  .heading-note { grid-template-columns: auto minmax(120px, 180px); gap: 14px; }
  .heading-note p { font-size: 10px; line-height: 1.45; }
  .signals-layout, .field-layout { gap: 28px; min-height: 0; }
  .featured-signal { min-height: 270px; padding: 20px 22px 22px; }
  .signal-icon { width: 60px; height: 60px; margin: 24px 0 15px; }
  .signal-icon::before { width: 86px; }
  .signal-icon::after { height: 86px; }
  .signal-icon span { inset: 11px; }
  .signal-kicker, .note-label { margin-bottom: 7px; }
  .featured-signal h3 { margin-bottom: 9px; font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
  .signal-summary { margin-bottom: 12px; font-size: 10px; line-height: 1.5; }
  .news-tabs { gap: 15px; margin-bottom: 8px; }
  .news-tab { padding-bottom: 8px; font-size: 10px; }
  .news-sync-line { margin-top: -2px; margin-bottom: 5px; }
  .news-list { min-height: 0; }
  .news-item { grid-template-columns: 54px minmax(0, 1fr) 14px; gap: 12px; padding: 9px 0; }
  .news-item h3 { margin-bottom: 2px; font-size: 12px; line-height: 1.25; -webkit-line-clamp: 1; }
  .news-item p { font-size: 10px; line-height: 1.35; -webkit-line-clamp: 1; }
  .news-item time { margin-top: 3px; font-size: 8px; }
  .read-all { margin-top: 10px; }
  .moon-card { min-height: 285px; padding: 20px 22px 22px; }
  .moon-stage { height: 170px; }
  .moon-orb { width: 116px; height: 116px; }
  .moon-crosshair { width: 142px; height: 142px; }
  .moon-crosshair::before { width: 166px; }
  .moon-crosshair::after { height: 166px; }
  .moon-readout strong { font-size: 24px; }
  .field-note-row { min-height: 0; padding: 3px 0 9px; gap: 12px; }
  .field-note-row + .field-note-row { padding-top: 9px; }
  .field-note-row h3 { margin-bottom: 4px; font-size: 15px; }
  .field-note-row p:last-child { font-size: 10px; line-height: 1.45; }
  .field-status { margin-top: 15px; }
  .field-intelligence { gap: 7px; }
  .location-form { gap: 6px 8px; padding-bottom: 7px; }
  .location-control select, .location-action { height: 28px; font-size: 8px; }
  .location-status { font-size: 7px; }
  .weather-card, .target-card { padding: 9px 12px; }
  .weather-readout { margin: 5px 0 6px; }
  .weather-readout strong { font-size: 16px; }
  .weather-readout span, .weather-guidance, .target-description, .target-guide p { font-size: 9px; line-height: 1.35; }
  .weather-metrics b, .target-stats b { font-size: 9px; }
  .weather-metrics small, .target-stats small { font-size: 7px; }
  .weather-map-link { margin-top: 3px; font-size: 7px; }
  .target-header { margin-top: 5px; }
  .target-card h3 { margin: 4px 0; font-size: 1.25rem; }
  .target-description { margin-bottom: 5px; }
  .target-stats { padding: 7px 0; }
  .target-guide { margin-top: 5px; }
  .target-equipment { margin-top: 3px; font-size: 8px; }
  .field-note-row { grid-template-columns: 25px 1fr 14px; gap: 9px; padding-bottom: 5px; }
  .field-note-row + .field-note-row { padding-top: 5px; }
  .field-note-row h3 { font-size: 12px; }
  .field-note-row p:last-child { font-size: 8px; line-height: 1.3; }
  .comet-layout { gap: 24px; }
  .comet-feature { min-height: 285px; padding: 13px 17px; }
  .comet-orbit-mark { width: 54px; height: 54px; margin: 10px 0 8px; }
  .comet-orbit-mark::before { width: 78px; }
  .comet-orbit-mark::after { height: 78px; }
  .comet-orbit-mark span { font-size: 18px; }
  .comet-feature h3 { margin-bottom: 5px; font-size: 1.35rem; }
  .comet-feature-summary { margin-bottom: 7px; font-size: 8px; line-height: 1.4; }
  .comet-coordinates { padding: 7px 0; }
  .comet-coordinates b { font-size: 8px; }
  .comet-coordinates small, .comet-feature-guidance span { font-size: 7px; }
  .comet-feature-guidance { margin: 7px 0; }
  .comet-feature-guidance p { margin-top: 3px; font-size: 8px; line-height: 1.35; }
  .comet-row { padding: 7px 0; }
  .comet-row-main b { font-size: 10px; }
  .comet-row-main small, .comet-row-meta small, .comet-row-meta b { font-size: 7px; }
  .comet-source-note { margin-top: 7px; font-size: 7px; }
  .comet-status { margin-top: 8px; font-size: 7px; }
  .manifesto-layout { flex: 1 1 auto; min-height: 0; gap: 32px; }
  .manifesto-copy h2 { margin-bottom: 15px; font-size: clamp(2.8rem, 5.4vw, 5.2rem); }
  .manifesto-copy > p:last-child { font-size: 11px; line-height: 1.6; }
  .manifesto-diagram { max-width: min(35vw, 38vh, 330px); }
  .site-footer { flex-shrink: 0; margin-top: 18px; padding-top: 12px; }
}

@media (min-width: 781px) and (max-height: 660px) {
  :root { --header-height: 70px; }
  .site-header { height: var(--header-height); }
  .panel { padding-top: calc(var(--header-height) + 20px); padding-bottom: 22px; }
  .hero-panel { gap: 20px; }
  .hero-copy h1 { margin-bottom: 12px; font-size: clamp(2.7rem, 5.5vw, 4.8rem); }
  .hero-intro { max-width: 350px; margin-bottom: 14px; font-size: 11px; line-height: 1.5; }
  .hero-actions { gap: 15px; }
  .button { min-width: 150px; padding: 10px 12px 10px 14px; font-size: 10px; }
  .hero-footnote { margin-top: 15px; font-size: 8px; }
  .apod-frame { min-height: 0; }
  .section-heading { margin-bottom: 14px; }
  .section-heading h2 { font-size: clamp(1.9rem, 4.2vw, 3.5rem); }
  .heading-note { display: none; }
  .featured-signal { min-height: 220px; padding: 15px 17px; }
  .signal-icon { width: 48px; height: 48px; margin: 14px 0 9px; }
  .signal-icon::before { width: 68px; }
  .signal-icon::after { height: 68px; }
  .signal-icon span { inset: 8px; }
  .featured-signal h3 { font-size: 1.2rem; }
  .signal-summary { margin-bottom: 8px; font-size: 9px; line-height: 1.35; }
  .news-item { padding: 7px 0; }
  .news-item p { display: none; }
  .news-list { max-height: 218px; overflow: hidden; }
  .moon-card { min-height: 235px; padding: 15px 17px; }
  .moon-stage { height: 130px; }
  .moon-orb { width: 88px; height: 88px; }
  .moon-crosshair { width: 108px; height: 108px; }
  .moon-crosshair::before { width: 126px; }
  .moon-crosshair::after { height: 126px; }
  .moon-readout span { font-size: 12px; }
  .moon-readout strong { font-size: 20px; }
  .moon-readout small { font-size: 7px; }
  .field-note-row { padding-bottom: 6px; }
  .field-note-row + .field-note-row { padding-top: 6px; }
  .field-note-row h3 { font-size: 13px; }
  .field-note-row p:last-child { font-size: 9px; line-height: 1.3; }
  .field-status { margin-top: 9px; font-size: 8px; }
  .field-notes { display: none; }
  .moon-footnote { display: none; }
  .field-intelligence { gap: 5px; }
  .location-form { padding-bottom: 4px; }
  .location-status { display: none; }
  .weather-card, .target-card { padding: 7px 10px; }
  .weather-readout { margin: 3px 0 4px; }
  .weather-readout strong { font-size: 14px; }
  .weather-readout span { font-size: 8px; }
  .weather-guidance { display: none; }
  .weather-map-link { margin-top: 2px; }
  .target-card h3 { font-size: 1.1rem; }
  .target-description { display: none; }
  .target-guide { display: none; }
  .target-equipment { display: none; }
  .comet-feature { min-height: 235px; }
  .comet-feature-guidance { display: none; }
  .comet-status { margin-top: 5px; }
  .manifesto-copy h2 { margin-bottom: 8px; font-size: clamp(2.4rem, 4.7vw, 4.4rem); }
  .manifesto-copy > p:last-child { max-width: 410px; font-size: 10px; line-height: 1.45; }
  .manifesto-diagram { max-width: min(30vw, 32vh, 250px); }
  .site-footer { margin-top: 10px; padding-top: 8px; font-size: 8px; }
}

@media (min-width: 781px) and (max-height: 800px) {
  .signals-panel .section-heading { margin-bottom: 29px; }
  .field-panel { padding-top: calc(var(--header-height) + 10px); padding-bottom: 18px; }
  .field-panel .section-heading { margin-bottom: 18px; }
  .field-panel .section-heading h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
  .field-panel .location-form { gap: 4px 8px; padding-bottom: 4px; }
  .field-panel .location-control select, .field-panel .location-action { height: 26px; font-size: 8px; }
  .field-panel .location-status { font-size: 7px; }
  .field-panel .weather-card { padding: 8px 11px; }
  .field-panel .weather-readout { margin: 4px 0 5px; }
  .field-panel .weather-readout strong { font-size: 15px; }
  .field-panel .weather-readout span, .field-panel .weather-guidance { font-size: 8px; line-height: 1.3; }
  .field-panel .weather-guidance { display: none; }
  .field-panel .weather-map-link { margin-top: 3px; }
  .field-panel .target-card { padding: 8px 11px; }
  .field-panel .target-header { margin-top: 5px; }
  .field-panel .target-card h3 { margin: 4px 0; font-size: 1.25rem; }
  .field-panel .target-description, .field-panel .target-guide, .field-panel .target-equipment { display: none; }
  .field-panel .target-stats { padding: 7px 0; }
  .field-panel .field-status { margin-top: 10px; }
}

@media (min-width: 781px) and (max-width: 1100px) and (max-height: 760px) {
  .main-nav { bottom: -38px; height: 38px; gap: 14px; }
  .panel { padding-top: calc(var(--header-height) + 54px); }
  .field-panel { padding-top: calc(var(--header-height) + 10px); }
}

@media (min-width: 781px) and (max-height: 899px) {
  html, body { width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
  main { height: 100dvh; overflow: hidden; }
  main > .panel { height: 100dvh; min-height: 0; overflow: hidden; }
  .slide-controls { display: flex; }
  .heading-note { display: grid; }
  .news-list { max-height: none; overflow: visible; }
  .news-item p { display: -webkit-box; }
  .field-panel .field-notes { display: none; }
  .field-panel .weather-guidance { display: block; }
  .field-panel .target-description, .field-panel .target-guide, .field-panel .target-equipment { display: block; }
  .comet-feature-guidance { display: block; }
}

@media (max-width: 780px) {
  :root { --header-height: 70px; --panel-wipe-duration: 860ms; }
  .site-header { height: var(--header-height); padding: 0 18px; }
  .brand-copy small { display: none; }
  .header-meta { gap: 7px; font-size: 8px; }
  .header-meta .meta-divider, .header-meta span:last-child { display: none; }
  .main-nav { bottom: -42px; height: 42px; justify-content: flex-start; overflow-x: auto; gap: 14px; padding: 0 12px; }
  .scroll-scan { grid-template-columns: auto 1fr auto; gap: 10px; font-size: 7px; }
  .slide-controls { display: none; }
  .page-transition { display: block; }
  .transition-line { top: 0; right: auto; bottom: 0; left: 0; width: 1px; height: 100%; background: rgba(215, 231, 239, 0.82); box-shadow: none; transform: translate3d(-1px, 0, 0); }
  .transition-trail { display: none; }
  .page-transition[data-direction="next"].is-active .transition-line { animation: page-wipe-next var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  .page-transition[data-direction="prev"].is-active .transition-line { animation: page-wipe-prev var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  .panel-crosshair { width: 28px; height: 28px; opacity: 0.55; }
  .crosshair-tl { top: calc(var(--header-height) + 20px); left: 22px; }
  .crosshair-tl::before { width: 28px; }
  .crosshair-tl::after { height: 28px; }
  .crosshair-br { right: 22px; bottom: 28px; }
  .crosshair-br::before { width: 28px; }
  .crosshair-br::after { height: 28px; }
  .nav-link { font-size: 10px; }
  .boot-loader {
    --boot-bracket-size: 28px;
    --boot-tl-left: 22px;
    --boot-tl-top: calc(var(--header-height) + 20px);
    --boot-br-right: 22px;
    --boot-br-bottom: 28px;
    --boot-cross-top: var(--boot-tl-top);
    --boot-cross-right: var(--boot-br-right);
    padding: 28px 18px 30px;
  }
  .boot-loader::before { top: var(--boot-cross-top); }
  .boot-loader::after { display: block; top: 0; right: var(--boot-cross-right); height: 100%; }
  .boot-loader-center { width: min(78vw, 360px); top: 38%; }
  .boot-core { width: 92px; height: 92px; }
  .boot-core::before { width: clamp(140px, 44vw, 172px); }
  .boot-core::after { height: clamp(140px, 44vw, 172px); }
  .boot-core span { font-size: 17px; }
  .boot-coordinate { font-size: 7px; }
  .boot-loader-bottom { display: block; }
  .boot-loader-caption { margin-bottom: 30px; }
  .boot-caption-title { font-size: 25px; }
  .boot-progress-wrap { width: min(82vw, 320px); max-width: none; margin-left: 0; margin-right: auto; }
  .boot-progress-meta { font-size: 8px; }
  .coordinate-b { right: 14%; }
  main { overflow: visible; }
  .panel { min-height: auto; padding: calc(var(--header-height) + 52px) 22px 58px; overflow: visible; }
  .hero-panel { display: flex; flex-direction: column; align-items: stretch; gap: 32px; padding-top: calc(var(--header-height) + 62px); }
  h1, h2 { font-size: clamp(2.35rem, 10vw, 3.4rem); }
  .hero-intro { font-size: 13px; }
  .hero-footnote { margin-top: 28px; flex-wrap: wrap; gap: 10px 20px; }
  .hero-visual { width: min(100%, 620px, 68vh); align-self: center; }
  .apod-frame { min-height: 0; aspect-ratio: 1.2 / 1; }
  .image-caption { left: 15px; right: 15px; bottom: 15px; gap: 15px; }
  .image-caption strong { font-size: 14px; }
  .caption-date { font-size: 9px; }
  .visual-coordinates { display: none; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-heading h2, .manifesto-copy h2 { font-size: clamp(2.2rem, 10vw, 3.35rem); }
  .heading-note { display: block; margin-top: 25px; padding-left: 38px; }
  .heading-note p { margin-top: 10px; }
  .signals-layout, .field-layout, .comet-layout, .manifesto-layout { display: flex; flex-direction: column; gap: 28px; }
  .featured-signal { min-height: 0; }
  .signal-icon { margin-top: 30px; }
  .news-item { grid-template-columns: 58px 1fr 14px; gap: 12px; padding: 18px 0; }
  .news-item p { display: none; }
  .news-item h3 { font-size: 13px; }
  .moon-card { min-height: 0; }
  .moon-stage { height: clamp(190px, 34vh, 280px); }
  .moon-orb { width: clamp(128px, 42vw, 165px); height: clamp(128px, 42vw, 165px); }
  .moon-crosshair { width: clamp(154px, 50vw, 198px); height: clamp(154px, 50vw, 198px); }
  .moon-crosshair::before { width: clamp(182px, 59vw, 235px); }
  .moon-crosshair::after { height: clamp(182px, 59vw, 235px); }
  .field-note-row { grid-template-columns: 29px 1fr 15px; gap: 12px; min-height: auto; }
  .field-note-row h3 { font-size: 17px; }
  .field-note-row p:last-child { font-size: 11px; }
  .field-status { flex-wrap: wrap; margin-top: 38px; }
  .status-line { flex-basis: 60px; }
  .field-intelligence { gap: 16px; }
  .location-form { gap: 10px; }
  .weather-card, .target-card { padding: 16px; }
  .weather-readout strong { font-size: 20px; }
  .weather-readout span, .weather-guidance, .target-description, .target-guide p { font-size: 11px; }
  .target-card h3 { font-size: 1.55rem; }
  .field-note-row { min-height: auto; }
  .comet-feature { min-height: 0; padding: 20px; }
  .comet-orbit-mark { margin-top: 18px; }
  .comet-feature h3 { font-size: clamp(1.55rem, 8vw, 2.2rem); }
  .comet-feature-summary, .comet-feature-guidance p { font-size: 11px; }
  .comet-index { margin-top: 2px; }
  .comet-row { grid-template-columns: 28px minmax(0, 1fr) 78px 15px; gap: 9px; padding: 13px 0; }
  .comet-row-main b { font-size: 12px; }
  .manifesto-panel { min-height: auto; padding-bottom: 76px; }
  .manifesto-diagram { max-width: min(300px, 78vw, 42vh); margin: 10px auto 0; }
  .site-footer { flex-direction: column; align-items: flex-start; margin-top: 32px; gap: 16px; }
  .site-footer div { flex-direction: column; align-items: flex-start; gap: 5px; }
  .modal { padding: 15px; }
  .modal-dialog { display: block; max-height: 92vh; }
  .modal-image-wrap, .modal-image-wrap img { min-height: 230px; max-height: 42vh; }
  .news-modal-media, .news-modal-media img, .news-modal-media video { min-height: 230px; max-height: 42vh; }
  .modal-copy { padding: 30px 24px 28px; }
}

@media (max-width: 780px) {
  html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0 14px;
  }

  .header-meta {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    max-width: 112px;
    gap: 5px;
    overflow: hidden;
    font-size: 6px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .header-meta #header-location { overflow: hidden; text-overflow: ellipsis; }

  .menu-toggle {
    position: relative;
    grid-column: 3;
    grid-row: 1;
    display: grid;
    align-content: center;
    gap: 4px;
    width: 34px;
    height: 34px;
    padding: 8px;
    border: 1px solid var(--line);
    color: var(--cyan);
    background: rgba(8, 11, 16, 0.7);
  }

  .menu-toggle span {
    display: block;
    width: 16px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

  .main-nav {
    position: absolute;
    z-index: 21;
    top: 100%;
    bottom: auto;
    right: 14px;
    left: 14px;
    width: auto;
    grid-column: auto;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 0;
    padding: 6px 12px 8px;
    border: 1px solid var(--line);
    border-top: 0;
    background: rgba(8, 11, 16, 0.96);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.26);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav .nav-link {
    min-height: 36px;
    gap: 9px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 10px;
  }

  .main-nav .nav-link:last-child { border-bottom: 0; }
  .main-nav .nav-link span { font-size: 7px; }
  .main-nav .nav-link::after { bottom: -1px; height: 1px; }

  main {
    position: relative;
    display: block;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
  }

  main > .panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    z-index: 0;
    clip-path: inset(0 0 0 0);
  }

  main > .panel.is-current { visibility: visible; opacity: 1; z-index: 1; }
  main > .panel.is-leaving { visibility: visible; opacity: 1; z-index: 1; }
  main > .panel.is-leaving.page-mask-next,
  main > .panel.is-leaving.page-mask-prev {
    contain: paint;
    will-change: clip-path, mask-position;
  }

  main > .panel.is-leaving.page-mask-next {
    -webkit-mask-image: linear-gradient(90deg, transparent 0 50%, #fff 50% 100%);
    mask-image: linear-gradient(90deg, transparent 0 50%, #fff 50% 100%);
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  main > .panel.is-leaving.page-mask-prev {
    -webkit-mask-image: linear-gradient(90deg, #fff 0 50%, transparent 50% 100%);
    mask-image: linear-gradient(90deg, #fff 0 50%, transparent 50% 100%);
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }

  main > .panel.is-leaving.page-mask-next.is-masking { animation: panel-mask-next var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  main > .panel.is-leaving.page-mask-prev.is-masking { animation: panel-mask-prev var(--panel-wipe-duration) var(--panel-wipe-ease) both; }

  main > .panel.is-transition-target {
    visibility: visible;
    opacity: 1;
    z-index: 3;
    contain: paint;
    backface-visibility: hidden;
    pointer-events: none;
    transform: translateZ(0);
    will-change: clip-path, mask-position;
  }

  main > .panel.is-transition-target.wipe-next {
    clip-path: inset(0 100% 0 0);
    -webkit-mask-image: linear-gradient(90deg, #fff 0 50%, transparent 50% 100%);
    mask-image: linear-gradient(90deg, #fff 0 50%, transparent 50% 100%);
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transform-origin: left center;
  }

  main > .panel.is-transition-target.wipe-next.is-wiping { animation: panel-reveal-next var(--panel-wipe-duration) var(--panel-wipe-ease) both; }

  main > .panel.is-transition-target.wipe-prev {
    clip-path: inset(0 0 0 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0 50%, #fff 50% 100%);
    mask-image: linear-gradient(90deg, transparent 0 50%, #fff 50% 100%);
    -webkit-mask-size: 200% 100%;
    mask-size: 200% 100%;
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transform-origin: right center;
  }

  main > .panel.is-transition-target.wipe-prev.is-wiping { animation: panel-reveal-prev var(--panel-wipe-duration) var(--panel-wipe-ease) both; }

  .transition-line {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: rgba(215, 231, 239, 0.82);
    box-shadow: none;
    transform: translate3d(-1px, 0, 0);
  }

  .page-transition[data-direction="next"].is-active .transition-line { animation: page-wipe-next var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  .page-transition[data-direction="prev"].is-active .transition-line { animation: page-wipe-prev var(--panel-wipe-duration) var(--panel-wipe-ease) both; }

  main > .panel.is-leaving.page-mask-next,
  main > .panel.is-leaving.page-mask-prev,
  main > .panel.is-transition-target.wipe-next,
  main > .panel.is-transition-target.wipe-prev {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    will-change: clip-path;
  }

  main > .panel.is-leaving.page-mask-next.is-masking { animation: panel-mask-next var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  main > .panel.is-leaving.page-mask-prev.is-masking { animation: panel-mask-prev var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  main > .panel.is-transition-target.wipe-next { clip-path: inset(0 100% 0 0); transform-origin: left center; }
  main > .panel.is-transition-target.wipe-prev { clip-path: inset(0 0 0 100%); transform-origin: right center; }
  main > .panel.is-transition-target.wipe-next.is-wiping { animation: panel-reveal-next var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  main > .panel.is-transition-target.wipe-prev.is-wiping { animation: panel-reveal-prev var(--panel-wipe-duration) var(--panel-wipe-ease) both; }

  .panel {
    min-height: 0;
    padding: calc(var(--header-height) + 28px) 14px 48px;
  }

  .hero-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding-top: calc(var(--header-height) + 26px);
    padding-bottom: 42px;
  }

  h1, h2 { font-size: clamp(1.9rem, 8vw, 3rem); }
  h1 { margin-bottom: 13px; }
  .eyebrow { gap: 7px; margin-bottom: 12px; font-size: 8px; letter-spacing: 0.08em; }
  .eyebrow-bar { width: 20px; }
  .hero-index, .manifesto-index { margin-bottom: 14px; font-size: 7px; letter-spacing: 0.06em; }
  .hero-intro { margin-bottom: 16px; font-size: 10px; line-height: 1.55; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .button { min-width: 0; width: 100%; padding: 10px 10px 10px 12px; font-size: 10px; }
  .button b { font-size: 15px; }
  .text-link { gap: 7px; font-size: 9px; }
  .text-link b { font-size: 15px; }
  .hero-footnote { gap: 5px 10px; margin-top: 17px; font-size: 6px; line-height: 1.35; }
  .hero-visual { width: 100%; min-width: 0; }
  .visual-topline, .visual-bottomline, .apod-sync-line { gap: 8px; font-size: 6px; letter-spacing: 0.04em; }
  .visual-topline { margin-bottom: 7px; }
  .apod-frame { aspect-ratio: 1.4 / 1; box-shadow: 7px 7px 0 rgba(25, 45, 61, 0.26); }
  .image-caption { left: 9px; right: 9px; bottom: 9px; gap: 8px; }
  .caption-kicker { margin-bottom: 4px; font-size: 6px; }
  .image-caption strong { font-size: 10px; }
  .caption-date { font-size: 6px; }
  .visual-bottomline { margin-top: 6px; }
  .apod-sync-line { margin-top: 4px; }
  .apod-corner { width: 14px; height: 14px; }
  .corner-tl { left: 8px; top: 8px; }
  .corner-tr { right: 8px; top: 8px; }
  .corner-bl { left: 8px; bottom: 8px; }
  .corner-br { right: 8px; bottom: 8px; }
  .hero-orbit { opacity: 0.55; }
  .orbit-a { width: 300px; height: 145px; right: -185px; }
  .orbit-b { width: 390px; height: 190px; right: -220px; }
  .orbit-c { width: 260px; height: 130px; left: -175px; bottom: 45px; }

  .section-heading {
    display: flex;
    align-items: end;
    gap: 10px;
    width: 100%;
    margin: 0 auto 14px;
  }
  .section-heading h2, .manifesto-copy h2 { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .heading-note { display: block; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0 0 2px; }
  .heading-note > span { font-size: 8px; }
  .heading-note p { margin-top: 4px; font-size: 8px; line-height: 1.35; }

  .signals-panel, .field-panel, .manifesto-panel { justify-content: flex-start; }
  .signals-layout, .field-layout, .comet-layout, .manifesto-layout {
    display: grid;
    width: 100%;
    margin: 0;
    gap: 12px;
  }
  .signals-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .featured-signal { min-height: 0; padding: 12px; }
  .featured-signal-top, .card-topline { gap: 6px; font-size: 6px; letter-spacing: 0.04em; }
  .signal-date { display: none; }
  .signal-icon { width: 54px; height: 54px; margin: 20px auto 15px; }
  .signal-icon::before { width: 72px; }
  .signal-icon::after { height: 72px; }
  .signal-icon span { inset: 10px; }
  .signal-kicker, .note-label { margin-bottom: 7px; font-size: 6px; letter-spacing: 0.06em; }
  .featured-signal h3 { margin-bottom: 8px; font-size: clamp(0.9rem, 4vw, 1.25rem); line-height: 1.12; }
  .signal-summary { display: -webkit-box; margin-bottom: 10px; font-size: 8px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
  .featured-signal .arrow-link { gap: 5px; font-size: 7px; }
  .featured-signal .arrow-link b { font-size: 13px; }
  .featured-signal-mark { display: none; }
  .news-column { min-width: 0; }
  .news-tabs { gap: 8px; margin-bottom: 7px; }
  .news-tab { padding-bottom: 6px; font-size: 7px; }
  .news-sync-line { gap: 5px; margin: 0 0 4px; font-size: 6px; }
  .news-list { min-height: 0; }
  .news-item { grid-template-columns: 30px minmax(0, 1fr) 10px; gap: 5px; padding: 7px 0; }
  .news-type { display: block; overflow: hidden; font-size: 6px; white-space: nowrap; text-overflow: ellipsis; }
  .news-item h3 { margin-bottom: 2px; font-size: 8px; line-height: 1.25; -webkit-line-clamp: 2; }
  .news-item time { margin-top: 2px; font-size: 6px; }
  .news-arrow { font-size: 13px; }
  .read-all { margin-top: 7px; font-size: 7px; }
  .read-all b { font-size: 13px; }

  .field-panel { padding-top: calc(var(--header-height) + 24px); }
  .field-panel .section-heading { margin-bottom: 11px; }
  .field-layout { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: start; gap: 10px; }
  .moon-card { min-height: 0; padding: 11px 10px 10px; }
  .moon-stage { height: 142px; }
  .moon-orb { width: 94px; height: 94px; }
  .moon-crosshair { width: 113px; height: 113px; }
  .moon-crosshair::before { width: 132px; }
  .moon-crosshair::after { height: 132px; }
  .moon-readout { gap: 3px 6px; }
  .moon-readout span { font-size: 9px; }
  .moon-readout strong { font-size: 18px; }
  .moon-readout small { font-size: 6px; letter-spacing: 0.04em; }
  .moon-readout .moon-source { font-size: 5px; }
  .moon-footnote { flex-direction: column; gap: 3px; margin-top: 9px; padding-top: 8px; font-size: 6px; }
  .moon-footnote span:last-child { text-align: left; }
  .field-intelligence { gap: 7px; }
  .location-form { gap: 5px; padding-bottom: 6px; }
  .location-control, .custom-coordinates label { gap: 3px; font-size: 6px; }
  .location-control select, .custom-coordinates input { height: 25px; padding: 0 5px; font-size: 7px; }
  .location-action, .coordinate-submit { height: 25px; padding: 0 6px; gap: 3px; font-size: 6px; }
  .location-action span { font-size: 12px; }
  .location-status { font-size: 6px; line-height: 1.3; }
  .weather-card, .target-card { padding: 8px; }
  .weather-topline, .target-topline { gap: 5px; font-size: 6px; letter-spacing: 0.03em; }
  .weather-readout { display: block; margin: 5px 0 6px; }
  .weather-readout strong { display: block; font-size: 14px; }
  .weather-readout span { display: block; margin-top: 2px; font-size: 7px; line-height: 1.3; }
  .weather-metrics, .target-stats { gap: 4px; }
  .weather-metrics b, .target-stats b { font-size: 8px; }
  .weather-metrics small, .target-stats small { font-size: 6px; }
  .weather-guidance { min-height: 0; margin-top: 5px; font-size: 7px; line-height: 1.3; }
  .weather-map-link { gap: 4px; margin-top: 4px; font-size: 6px; }
  .weather-map-link b { font-size: 12px; }
  .target-header { gap: 5px; margin-top: 6px; }
  .target-kind, .target-status { font-size: 6px; letter-spacing: 0.03em; }
  .target-card h3 { margin: 5px 0 4px; font-size: 1rem; line-height: 1.08; }
  .target-description { margin-bottom: 6px; font-size: 7px; line-height: 1.35; }
  .target-stats { padding: 6px 0; }
  .target-guide { margin-top: 6px; }
  .target-guide span { font-size: 6px; }
  .target-guide p { margin-top: 3px; font-size: 7px; line-height: 1.3; }
  .target-equipment { margin-top: 5px; font-size: 6px; line-height: 1.3; }
  .field-notes { display: none; }
  .field-status { flex-wrap: wrap; gap: 5px; width: 100%; margin: 9px auto 0; font-size: 6px; letter-spacing: 0.03em; }
  .field-status .status-line { flex-basis: 28px; }
  .field-status .field-reference, .field-status a { display: none; }

  .comets-panel { padding-top: calc(var(--header-height) + 24px); }
  .comets-panel .section-heading { margin-bottom: 11px; }
  .comet-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 10px; }
  .comet-feature { min-height: 0; padding: 11px 10px; }
  .comet-feature-top, .comet-index-top { gap: 5px; font-size: 6px; letter-spacing: 0.03em; }
  .comet-orbit-mark { width: 48px; height: 48px; margin: 14px auto 12px; }
  .comet-orbit-mark::before { width: 68px; }
  .comet-orbit-mark::after { height: 68px; }
  .comet-orbit-mark span { font-size: 17px; }
  .comet-feature i, .comet-feature b { transform: scale(0.8); }
  .comet-kicker { margin-bottom: 5px; font-size: 6px; }
  .comet-feature h3 { margin-bottom: 6px; font-size: clamp(1rem, 4.7vw, 1.45rem); }
  .comet-feature-summary { margin-bottom: 8px; font-size: 7px; line-height: 1.35; }
  .comet-coordinates { grid-template-columns: repeat(2, 1fr); gap: 5px; padding: 7px 0; }
  .comet-coordinates b { font-size: 7px; }
  .comet-coordinates small { font-size: 6px; }
  .comet-feature-guidance { margin: 7px 0 8px; }
  .comet-feature-guidance span { font-size: 6px; }
  .comet-feature-guidance p { margin-top: 3px; font-size: 7px; line-height: 1.3; }
  .comet-feature .arrow-link { gap: 4px; font-size: 6px; }
  .comet-feature .arrow-link b { font-size: 12px; }
  .comet-list { margin-top: 6px; }
  .comet-row { grid-template-columns: 16px minmax(0, 1fr) 42px 9px; gap: 4px; padding: 6px 0; }
  .comet-row-index, .comet-row-main small, .comet-row-meta small { font-size: 6px; }
  .comet-row-main { gap: 2px; }
  .comet-row-main b { font-size: 8px; }
  .comet-row-meta { gap: 2px; }
  .comet-row-meta b { font-size: 7px; }
  .comet-row-arrow { font-size: 11px; }
  .comet-source-note { margin-top: 7px; font-size: 6px; line-height: 1.35; }
  .comet-status { flex-wrap: wrap; gap: 5px; width: 100%; margin: 9px auto 0; font-size: 6px; letter-spacing: 0.03em; }
  .comet-status .status-line, .comet-status a { display: none; }

  .manifesto-panel { padding-top: calc(var(--header-height) + 25px); padding-bottom: 45px; }
  .manifesto-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 10px; }
  .manifesto-copy h2 { margin-bottom: 12px; font-size: clamp(1.65rem, 7.2vw, 2.5rem); }
  .manifesto-copy > p:last-child { font-size: 8px; line-height: 1.5; }
  .manifesto-diagram { max-width: 100%; margin: 0 auto; }
  .diagram-core { width: 68px; height: 68px; }
  .diagram-core span { font-size: 14px; }
  .diagram-core small { bottom: 13px; font-size: 8px; }
  .diagram-label { font-size: 6px; letter-spacing: 0.05em; }
  .site-footer { gap: 5px; margin: 12px 0 0; padding-top: 10px; font-size: 6px; }
  .site-footer div { gap: 7px; }
  .site-footer strong { font-size: 7px; }

  .slide-controls {
    display: flex;
    right: 18px;
    bottom: 38px;
  }
  .slide-controls button { width: 32px; height: 27px; font-size: 15px; }
  .slide-controls button { font-size: 0; }
  .slide-controls #prev-panel::before { content: "↑"; font-size: 15px; }
  .slide-controls #next-panel::before { content: "↓"; font-size: 15px; }
  .scroll-scan { right: 22px; bottom: 17px; left: 22px; gap: 8px; }
}

@media (max-width: 360px), (max-height: 700px) and (max-width: 780px) {
  .panel { padding-left: 14px; padding-right: 14px; }
  .hero-panel { justify-content: flex-start; gap: 6px; padding-top: calc(var(--header-height) + 14px); padding-bottom: 32px; }
  h1, h2 { font-size: clamp(1.65rem, 8vw, 2.25rem); }
  .hero-intro { font-size: 8px; line-height: 1.45; }
  .hero-footnote { display: none; }
  .hero-intro { margin-bottom: 10px; }
  .apod-frame { aspect-ratio: 1.55 / 1; }
  .visual-bottomline, .apod-sync-line { display: none; }
  .section-heading { margin-bottom: 9px; }
  .section-heading h2, .manifesto-copy h2 { font-size: clamp(1.5rem, 7.5vw, 2rem); }
  .heading-note p { display: none; }
  .signals-layout, .field-layout, .comet-layout, .manifesto-layout { gap: 7px; }
  .featured-signal { padding: 9px; }
  .signal-icon { width: 42px; height: 42px; margin: 13px auto 9px; }
  .signal-icon::before { width: 56px; }
  .signal-icon::after { height: 56px; }
  .signal-icon span { inset: 8px; }
  .signal-summary, .featured-signal .arrow-link { display: none; }
  .news-tabs { gap: 5px; }
  .news-tab { font-size: 6px; }
  .news-item { grid-template-columns: 23px minmax(0, 1fr) 8px; gap: 3px; padding: 5px 0; }
  .news-item h3 { font-size: 7px; -webkit-line-clamp: 2; }
  .news-item time { display: none; }
  .read-all { display: none; }
  .field-panel { padding-top: calc(var(--header-height) + 15px); }
  .moon-card { padding: 8px; }
  .moon-stage { height: 98px; }
  .moon-orb { width: 68px; height: 68px; }
  .moon-crosshair { width: 82px; height: 82px; }
  .moon-crosshair::before { width: 96px; }
  .moon-crosshair::after { height: 96px; }
  .moon-readout span { font-size: 8px; }
  .moon-readout strong { font-size: 15px; }
  .moon-footnote { display: none; }
  .field-intelligence { gap: 5px; }
  .location-form { grid-template-columns: 1fr; gap: 2px; padding-bottom: 3px; }
  .location-action { width: 100%; }
  .location-status { display: none; }
  .weather-card, .target-card { padding: 6px; }
  .weather-readout span, .weather-guidance, .weather-map-link, .target-description, .target-guide, .target-equipment { display: none; }
  .target-card h3 { font-size: 0.88rem; }
  .target-stats { grid-template-columns: repeat(4, 1fr); padding: 4px 0; }
  .target-index { margin-top: 6px; padding: 5px 0 4px; }
  .target-factor-summary { display: none; }
  .field-panel .section-heading { margin-bottom: 0; }
  .field-panel .field-layout { margin-top: -4px; }
  .field-status { display: none; }
  .comet-feature { padding: 8px; }
  .comet-orbit-mark { width: 38px; height: 38px; margin: 9px auto 8px; }
  .comet-orbit-mark::before { width: 52px; }
  .comet-orbit-mark::after { height: 52px; }
  .comet-orbit-mark span { font-size: 14px; }
  .comet-feature-summary, .comet-feature-guidance, .comet-feature .arrow-link, .comet-source-note, .comet-status { display: none; }
  .comet-coordinates { padding: 5px 0; }
  .comet-row { grid-template-columns: 12px minmax(0, 1fr) 32px 7px; gap: 2px; padding: 4px 0; }
  .comet-row-main b, .comet-row-meta b { font-size: 6px; }
  .manifesto-panel { padding-top: calc(var(--header-height) + 18px); padding-bottom: 35px; }
  .manifesto-copy > p:last-child { font-size: 7px; }
  .diagram-core { width: 54px; height: 54px; }
  .diagram-core span { font-size: 11px; }
  .diagram-core small { bottom: 10px; font-size: 7px; }
  .site-footer { margin-top: 7px; padding-top: 7px; }
}

/* Keep fixed narrow panels readable while preserving their single-viewport layout. */
@media (max-width: 780px) {
  .eyebrow { font-size: 9px; }
  .hero-index, .manifesto-index { font-size: 8px; }
  .hero-intro { font-size: 12px; line-height: 1.5; }
  .text-link { font-size: 10px; }
  .visual-topline, .visual-bottomline, .apod-sync-line { font-size: 8px; }
  .caption-kicker { font-size: 8px; }
  .image-caption strong { font-size: 13px; }
  .caption-date { font-size: 8px; }

  .section-heading h2, .manifesto-copy h2 { font-size: clamp(1.75rem, 8vw, 2.8rem); }
  .heading-note > span { font-size: 10px; }
  .heading-note p { font-size: 10px; line-height: 1.4; }

  .featured-signal-top, .card-topline { font-size: 9px; }
  .signal-kicker, .note-label { font-size: 9px; }
  .featured-signal h3 { font-size: clamp(1.05rem, 4vw, 1.45rem); }
  .signal-summary { font-size: 11px; line-height: 1.45; }
  .featured-signal .arrow-link { font-size: 9px; }
  .news-tab { font-size: 9px; }
  .news-sync-line { font-size: 8px; }
  .news-type { font-size: 8px; }
  .news-item h3 { font-size: 11px; line-height: 1.25; }
  .news-item time { font-size: 8px; }
  .read-all { font-size: 9px; }

  .moon-readout span { font-size: 11px; }
  .moon-readout strong { font-size: 22px; }
  .moon-readout small { font-size: 8px; }
  .moon-readout .moon-source { font-size: 7px; }
  .moon-footnote { font-size: 8px; }
  .location-control, .custom-coordinates label { font-size: 8px; }
  .location-control select, .custom-coordinates input { font-size: 10px; }
  .location-action, .coordinate-submit { font-size: 9px; }
  .location-status { font-size: 8px; }
  .weather-topline, .target-topline { font-size: 8px; }
  .weather-readout strong { font-size: 18px; }
  .weather-readout span { font-size: 10px; }
  .weather-metrics b, .target-stats b { font-size: 10px; }
  .weather-metrics small, .target-stats small { font-size: 8px; }
  .weather-guidance, .target-description, .target-guide p { font-size: 10px; line-height: 1.4; }
  .weather-map-link { font-size: 8px; }
  .target-kind, .target-status { font-size: 8px; }
  .target-card h3 { font-size: clamp(1.2rem, 5vw, 1.7rem); }
  .target-guide span { font-size: 8px; }
  .target-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .target-guide p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .target-equipment { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; font-size: 9px; }
  .target-stats b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .target-stats span:last-child b { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .target-index { margin-top: 8px; padding: 6px 0 5px; }
  .target-index-top { font-size: 8px; }
  .target-index-top span { white-space: nowrap; }
  .target-index-top b { font-size: 14px; }
  .target-factor-summary { margin-top: 4px; font-size: 8px; line-height: 1.35; }
  .field-status { display: none; }

  .comet-feature-top, .comet-index-top { font-size: 8px; }
  .comet-kicker { font-size: 8px; }
  .comet-feature h3 { font-size: clamp(1.1rem, 4.7vw, 1.65rem); }
  .comet-feature-summary, .comet-feature-guidance p { font-size: 10px; line-height: 1.4; }
  .comet-coordinates b { font-size: 9px; }
  .comet-coordinates small, .comet-feature-guidance span { font-size: 8px; }
  .comet-feature .arrow-link { font-size: 9px; }
  .comet-row-index, .comet-row-main small, .comet-row-meta small { font-size: 8px; }
  .comet-row-main b { font-size: 10px; }
  .comet-row-meta b { font-size: 9px; }
  .comet-source-note, .comet-status { font-size: 8px; }

  .manifesto-copy > p:last-child { font-size: 10px; line-height: 1.5; }
  .diagram-label { font-size: 8px; }
  .site-footer { font-size: 8px; }
  .site-footer strong { font-size: 9px; }
}

@media (max-width: 360px) {
  .target-topline,
  .target-header {
    font-size: 7px;
    line-height: 1.35;
  }
  .target-topline span,
  .target-header span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .target-card h3 { font-size: 0.95rem; }
  .target-stats b { font-size: 8px; }
  .target-description,
  .target-guide,
  .target-equipment { display: none; }
}

/* Let the portrait signals panel use its full viewport without letting cached news push it taller. */
@media (max-width: 780px) {
  .signals-layout {
    flex: 1 1 auto;
    min-height: 0;
    align-self: stretch;
  }
  .featured-signal,
  .news-column {
    height: 100%;
    min-height: 0;
  }
  .news-column {
    display: flex;
    flex-direction: column;
  }
  .news-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
  .news-item.is-collapsed { display: none; }

  :root { --header-height: 92px; }
  .site-header {
    height: var(--header-height);
    grid-template-rows: 52px 40px;
  }
  .brand {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: center;
    justify-self: start;
  }
  .brand-copy small { display: block; margin-top: 3px; font-size: 7px; }
  .header-meta { grid-column: 2; grid-row: 1; }
  .menu-toggle { grid-column: 3; grid-row: 1; }

  .field-layout,
  .comet-layout {
    flex: 1 1 auto;
    min-height: 0;
    align-self: stretch;
    align-items: stretch;
  }
  .comets-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .moon-card,
  .field-intelligence,
  .comet-feature,
  .comet-index {
    height: 100%;
    min-height: 0;
  }
  .comet-index {
    display: flex;
    flex-direction: column;
  }
  .comet-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }
  .comet-row.is-collapsed { display: none; }

  .target-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "magnitude altitude window window"
      "constellation constellation constellation constellation";
    row-gap: 5px;
  }
  .target-stats span:nth-child(1) { grid-area: magnitude; }
  .target-stats span:nth-child(2) { grid-area: altitude; }
  .target-stats span:nth-child(3) { grid-area: window; }
  .target-stats span:nth-child(4) { grid-area: constellation; }
  .target-equipment { display: none; }
}

@media (min-width: 781px) {
  .news-list {
    max-height: max(220px, calc(100dvh - 330px));
    overflow: hidden;
  }
  .news-item.is-collapsed, .comet-row.is-collapsed { display: none; }
}

@media (min-width: 781px) and (max-height: 900px) {
  .field-panel .weather-guidance,
  .field-panel .target-description,
  .field-panel .target-guide,
  .field-panel .target-equipment { display: none; }
  .field-panel .target-index { margin-top: 5px; padding: 5px 0 4px; }
  .field-panel .target-factor-summary { margin-top: 2px; font-size: 7px; line-height: 1.3; }
  .field-panel .field-status { margin-top: 8px; font-size: 8px; }
}

@media (min-width: 781px) {
  .transition-line {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 1px;
    height: 100%;
    transform: translate3d(-2px, 0, 0);
  }

  .page-transition[data-direction="next"].is-active .transition-line { animation: page-wipe-next var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  .page-transition[data-direction="prev"].is-active .transition-line { animation: page-wipe-prev var(--panel-wipe-duration) var(--panel-wipe-ease) both; }

  main > .panel.is-leaving.page-mask-next,
  main > .panel.is-leaving.page-mask-prev,
  main > .panel.is-transition-target.wipe-next,
  main > .panel.is-transition-target.wipe-prev {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    will-change: clip-path;
  }

  main > .panel.is-leaving.page-mask-next.is-masking { animation: panel-mask-next var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  main > .panel.is-leaving.page-mask-prev.is-masking { animation: panel-mask-prev var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  main > .panel.is-transition-target.wipe-next { clip-path: inset(0 100% 0 0); transform-origin: left center; }
  main > .panel.is-transition-target.wipe-prev { clip-path: inset(0 0 0 100%); transform-origin: right center; }
  main > .panel.is-transition-target.wipe-next.is-wiping { animation: panel-reveal-next var(--panel-wipe-duration) var(--panel-wipe-ease) both; }
  main > .panel.is-transition-target.wipe-prev.is-wiping { animation: panel-reveal-prev var(--panel-wipe-duration) var(--panel-wipe-ease) both; }

  .slide-controls button { font-size: 0; }
  .slide-controls #prev-panel::before { content: "←"; font-size: 17px; }
  .slide-controls #next-panel::before { content: "→"; font-size: 17px; }
}

/* Final responsive pass: desktop gets horizontal room, portrait gets a vertical reading order. */
.moon-observation-note {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.moon-observation-note-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-family: ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}
.moon-observation-note-top span:first-child { color: var(--cyan); }
.moon-observation-note .target-description { margin: 7px 0 0; max-width: none; font-size: 10px; line-height: 1.55; }
.moon-observation-note .target-guide { margin-top: 9px; }
.moon-observation-note .target-guide span { font-size: 8px; }
.moon-observation-note .target-guide p { margin-top: 4px; font-size: 10px; line-height: 1.5; }
.moon-observation-note .target-equipment { margin: 7px 0 0; font-size: 9px; line-height: 1.45; }
.moon-observation-note .target-description, .moon-observation-note .target-guide, .moon-observation-note .target-equipment { display: block; }

.location-control { position: relative; }
.location-control input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  background: rgba(17, 29, 41, 0.76);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0;
  outline: none;
}
.location-control input:focus { border-color: var(--cyan); }
.location-control input::placeholder { color: var(--faint); }
.location-results {
  position: absolute;
  z-index: 8;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(8, 11, 16, 0.98);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.32);
}
.location-results[hidden] { display: none; }
.location-results button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  background: transparent;
  text-align: left;
}
.location-results button:last-child { border-bottom: 0; }
.location-results button:hover, .location-results button:focus-visible { color: var(--cyan); background: rgba(115, 228, 255, 0.08); outline: none; }
.location-results button b { font-size: 11px; font-weight: 600; }
.location-results button small { color: var(--faint); font-family: ui-monospace, monospace; font-size: 8px; white-space: nowrap; }
.location-no-result { margin: 0; padding: 9px 10px; color: var(--orange); font-size: 9px; line-height: 1.45; }

/* Next enters from the right; previous enters from the left. */
@keyframes page-wipe-next { from { transform: translate3d(100vw, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes page-wipe-prev { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(100vw, 0, 0); } }
@keyframes panel-mask-next { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 100% 0 0); } }
@keyframes panel-mask-prev { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes panel-reveal-next { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes panel-reveal-prev { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
main > .panel.is-transition-target.wipe-next { clip-path: inset(0 0 0 100%); transform-origin: right center; }
main > .panel.is-transition-target.wipe-prev { clip-path: inset(0 100% 0 0); transform-origin: left center; }

@media (min-width: 781px) {
  .location-form { grid-template-columns: minmax(0, 1fr) auto auto; }
}

@media (min-width: 1101px) {
  .panel { padding-left: clamp(48px, 5vw, 96px); padding-right: clamp(48px, 5vw, 96px); }
  .section-heading, .signals-layout, .field-layout, .field-status, .comet-layout, .manifesto-layout, .site-footer {
    width: 100%;
    max-width: 1600px;
  }
  .signals-panel, .comets-panel {
    justify-content: flex-start;
    padding-top: calc(var(--header-height) + 42px);
    padding-bottom: clamp(28px, 4vh, 52px);
  }
  .signals-panel .section-heading, .comets-panel .section-heading { margin-bottom: clamp(20px, 3vh, 34px); }
  .signals-layout { grid-template-columns: minmax(270px, 0.64fr) minmax(560px, 1.36fr); gap: clamp(44px, 5vw, 88px); align-items: start; }
  .comet-layout { grid-template-columns: minmax(280px, 0.64fr) minmax(560px, 1.36fr); gap: clamp(44px, 5vw, 88px); align-items: start; }
  .featured-signal, .comet-feature { min-height: 0; padding: 20px 24px 22px; }
  .featured-signal .signal-icon { width: 72px; height: 72px; margin: 28px 0 20px; }
  .featured-signal .signal-icon::before { width: 100px; }
  .featured-signal .signal-icon::after { height: 100px; }
  .signal-summary, .comet-feature-summary, .comet-feature-guidance p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; }
  .signal-summary { margin-bottom: 16px; font-size: 13px; line-height: 1.65; -webkit-line-clamp: 3; }
  .comet-feature-summary { margin-bottom: 11px; font-size: 11px; line-height: 1.55; -webkit-line-clamp: 2; }
  .comet-feature-guidance { margin: 10px 0 11px; }
  .comet-feature-guidance p { font-size: 11px; line-height: 1.5; -webkit-line-clamp: 2; }
  .news-column, .comet-index { display: flex; flex-direction: column; height: clamp(300px, calc(100dvh - 390px), 500px); min-height: 0; }
  .news-list, .comet-list { flex: 1 1 auto; height: auto; max-height: none; min-height: 0; overflow: hidden; }
  .news-tabs { gap: 28px; margin-bottom: 12px; }
  .news-tab { padding-bottom: 11px; font-size: 12px; }
  .news-sync-line { font-size: 9px; }
  .news-item { grid-template-columns: 72px minmax(0, 1fr) 18px; gap: 20px; padding: 12px 0; }
  .news-type, .news-item time { font-size: 10px; }
  .news-item h3 { font-size: 15px; line-height: 1.35; }
  .news-item p { font-size: 12px; line-height: 1.5; }
  .read-all { margin-top: 13px; font-size: 11px; }
  .comet-feature-top, .comet-index-top { font-size: 10px; }
  .comet-kicker { font-size: 10px; }
  .comet-coordinates b { font-size: 11px; }
  .comet-coordinates small, .comet-feature-guidance span { font-size: 9px; }
  .comet-row { grid-template-columns: 30px minmax(0, 1fr) 88px 17px; gap: 13px; padding: 10px 0; }
  .comet-row-index, .comet-row-main small, .comet-row-meta small { font-size: 9px; }
  .comet-row-main b { font-size: 13px; }
  .comet-row-meta b { font-size: 11px; }
  .comet-source-note, .comet-status { font-size: 10px; }
  .comet-index { height: clamp(300px, calc(100dvh - 520px), 390px); }
  .moon-observation-note .target-description, .moon-observation-note .target-guide p { font-size: 11px; }
  .moon-observation-note .target-equipment { font-size: 10px; }
  .field-panel { justify-content: flex-start; padding-top: calc(var(--header-height) + 28px); padding-bottom: 24px; }
  .field-panel .section-heading { margin-bottom: 18px; }
  .field-panel .section-heading h2 { font-size: clamp(2.8rem, 4vw, 4.3rem); }
  .field-panel .moon-card { min-height: 0; padding: 19px 22px 20px; }
  .field-panel .moon-stage { height: clamp(205px, 24vh, 245px); }
  .field-panel .moon-orb { width: 160px; height: 160px; }
  .field-panel .moon-crosshair { width: 190px; height: 190px; }
  .field-panel .moon-crosshair::before { width: 222px; }
  .field-panel .moon-crosshair::after { height: 222px; }
  .field-panel .moon-footnote { margin-top: 12px; padding-top: 9px; }
  .field-panel .field-intelligence { gap: 8px; }
  .field-panel .weather-card { padding-top: 10px; padding-bottom: 10px; }
  .field-panel .target-card { padding-top: 10px; padding-bottom: 10px; }
  .field-panel .field-status { margin-top: 12px; }
}

@media (min-width: 1101px) and (max-height: 760px) {
  .signals-panel, .comets-panel { padding-top: calc(var(--header-height) + 22px); padding-bottom: 24px; }
  .signals-panel .section-heading, .comets-panel .section-heading { margin-bottom: 16px; }
  .news-column, .comet-index { height: clamp(280px, calc(100dvh - 300px), 400px); }
  .featured-signal, .comet-feature { padding-top: 15px; padding-bottom: 16px; }
  .featured-signal .signal-icon { width: 58px; height: 58px; margin: 18px 0 12px; }
  .featured-signal .signal-icon::before { width: 82px; }
  .featured-signal .signal-icon::after { height: 82px; }
  .signal-summary { font-size: 11px; line-height: 1.45; -webkit-line-clamp: 2; }
  .news-item { padding: 8px 0; }
  .news-item p { -webkit-line-clamp: 1; }
  .comet-feature-summary, .comet-feature-guidance p { font-size: 9px; -webkit-line-clamp: 1; }
  .comet-row { padding: 7px 0; }
}

@media (max-width: 780px) {
  :root { --header-height: 92px; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 52px 40px; height: var(--header-height); padding: 0 14px; }
  .brand { grid-column: 1 / -1; grid-row: 2; align-self: center; justify-self: start; }
  .header-meta { grid-column: 1; grid-row: 1; justify-self: end; max-width: min(58vw, 210px); margin-right: 10px; gap: 5px; font-size: 7px; }
  .menu-toggle { grid-column: 2; grid-row: 1; }
  .panel { padding: calc(var(--header-height) + 24px) 14px 42px; }
  .hero-panel { justify-content: flex-start; gap: 9px; padding-top: calc(var(--header-height) + 22px); }
  .hero-copy h1 { font-size: clamp(1.6rem, 6.6vw, 2.45rem); line-height: 0.98; }
  .section-heading { display: block; margin-bottom: 12px; }
  .section-heading h2 { font-size: clamp(1.55rem, 6.8vw, 2.35rem); }
  .manifesto-copy h2 { font-size: clamp(1.65rem, 6.8vw, 2.4rem); }
  .heading-note { margin-top: 10px; padding: 0; }
  .heading-note p { margin-top: 4px; font-size: 9px; line-height: 1.4; }
  .signals-panel, .field-panel, .comets-panel, .manifesto-panel { justify-content: flex-start; }
  .signals-layout, .field-layout, .comet-layout, .manifesto-layout { display: flex; flex-direction: column; width: 100%; margin: 0; gap: 10px; min-height: 0; }
  .signals-layout, .field-layout, .comet-layout, .manifesto-layout { flex: 1 1 auto; }
  .featured-signal, .news-column, .moon-card, .field-intelligence, .comet-feature, .comet-index { height: auto; min-height: 0; }
  .featured-signal { flex: 0 0 auto; padding: 12px; }
  .signal-icon { width: 48px; height: 48px; margin: 12px auto 10px; }
  .signal-icon::before { width: 66px; }
  .signal-icon::after { height: 66px; }
  .signal-kicker { margin-bottom: 5px; }
  .featured-signal h3 { margin-bottom: 6px; font-size: clamp(1rem, 4vw, 1.3rem); }
  .signal-summary { display: -webkit-box; margin-bottom: 8px; font-size: 10px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .news-column, .comet-index { display: flex; flex: 1 1 0; flex-direction: column; }
  .news-list, .comet-list { flex: 1 1 auto; height: auto; max-height: none; min-height: 0; overflow: hidden; }
  .news-item { padding: 8px 0; }
  .news-item h3 { font-size: 11px; }
  .news-item p { display: none; }
  .read-all { flex: 0 0 auto; }
  .field-layout { gap: 9px; }
  .field-panel .field-layout { gap: 3px; }
  .field-panel .section-heading { display: flex; align-items: end; gap: 9px; margin-bottom: 7px; }
  .field-panel .section-heading > div:first-child { flex: 0 0 auto; }
  .field-panel .heading-note { flex: 1 1 auto; min-width: 0; margin: 0; }
  .field-panel .heading-note p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 8px; line-height: 1.3; }
  .moon-card { flex: 0 0 auto; padding: 11px 10px 10px; }
  .moon-stage { height: clamp(96px, 14vh, 124px); }
  .moon-orb { width: clamp(76px, 22vw, 104px); height: clamp(76px, 22vw, 104px); }
  .moon-crosshair { width: clamp(92px, 27vw, 126px); height: clamp(92px, 27vw, 126px); }
  .moon-crosshair::before { width: clamp(108px, 33vw, 148px); }
  .moon-crosshair::after { height: clamp(108px, 33vw, 148px); }
  .field-panel .moon-footnote { display: none; }
  .moon-observation-note { margin-top: 10px; padding-top: 8px; }
  .moon-observation-note-top { font-size: 7px; }
  .moon-observation-note .target-description { margin-top: 5px; font-size: 9px; line-height: 1.4; }
  .moon-observation-note .target-guide { margin-top: 6px; }
  .moon-observation-note .target-guide span { font-size: 7px; }
  .moon-observation-note .target-guide p { margin-top: 3px; font-size: 9px; line-height: 1.4; }
  .moon-observation-note .target-equipment { margin-top: 5px; font-size: 8px; line-height: 1.35; }
  .moon-observation-note .target-description, .moon-observation-note .target-guide, .moon-observation-note .target-equipment { display: block; }
  .field-intelligence { flex: 1 1 auto; gap: 7px; }
  .field-panel .field-intelligence { gap: 3px; }
  .location-form { grid-template-columns: minmax(0, 1fr) auto auto; gap: 5px; }
  .location-control input { height: 29px; padding: 0 7px; font-size: 9px; }
  .location-action { min-width: 0; height: 29px; padding: 0 8px; font-size: 8px; }
  .location-custom-toggle { grid-column: auto; justify-self: stretch; }
  .location-results button { min-height: 31px; padding: 6px 8px; }
  .location-results button b { font-size: 10px; }
  .location-results button small { font-size: 7px; }
  .custom-coordinates { gap: 6px; }
  .custom-coordinates input { height: 28px; font-size: 9px; }
  .coordinate-submit { height: 28px; padding: 0 8px; font-size: 8px; }
  .field-panel .location-status { font-size: 7px; line-height: 1.25; }
  .weather-card, .target-card { padding: 8px; }
  .field-panel .weather-readout { margin: 4px 0 5px; }
  .field-panel .weather-readout strong { font-size: 16px; }
  .field-panel .weather-readout span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; font-size: 8px; line-height: 1.3; }
  .field-panel .weather-guidance, .field-panel .weather-map-link { display: none; }
  .field-panel .weather-metrics { gap: 3px; }
  .field-panel .weather-metrics b { font-size: 9px; }
  .field-panel .weather-metrics small { font-size: 7px; }
  .field-panel .target-card h3 { margin: 4px 0; }
  .field-panel .target-stats { padding: 5px 0; }
  .field-panel .target-index { margin-top: 6px; padding: 5px 0 4px; }
  .field-panel .target-factor-summary { margin-top: 3px; font-size: 7px; line-height: 1.25; }
  .field-panel .moon-stage { height: clamp(82px, 11vh, 100px); }
  .field-panel .moon-orb { width: clamp(68px, 19vw, 88px); height: clamp(68px, 19vw, 88px); }
  .field-panel .moon-crosshair { width: clamp(82px, 24vw, 106px); height: clamp(82px, 24vw, 106px); }
  .field-panel .moon-crosshair::before { width: clamp(96px, 29vw, 124px); }
  .field-panel .moon-crosshair::after { height: clamp(96px, 29vw, 124px); }
  .field-panel .moon-observation-note { max-height: 80px; overflow: hidden; }
  .field-panel .moon-observation-note .target-description, .field-panel .moon-observation-note .target-guide p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  .field-panel .moon-observation-note .target-equipment { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  .field-panel .location-form { gap: 3px; padding-bottom: 4px; }
  .field-panel .location-status { display: none; }
  .field-panel .weather-readout span { display: none; }
  .field-panel .target-topline, .field-panel .target-header { font-size: 7px; }
  .field-panel .target-header { margin-top: 3px; }
  .field-panel .target-card { padding-top: 6px; padding-bottom: 6px; }
  .field-panel .target-card h3 { margin: 3px 0; font-size: 1.1rem; }
  .field-panel .target-stats { gap: 3px; padding: 4px 0; }
  .field-panel .target-stats b { font-size: 8px; }
  .field-panel .target-stats small { font-size: 6px; }
  .field-panel .target-index { margin-top: 3px; padding: 4px 0 3px; }
  .field-panel .target-index-top { font-size: 7px; }
  .field-panel .target-index-top b { font-size: 12px; }
  .field-panel .target-factor-summary { font-size: 6px; line-height: 1.2; }
  .target-card h3 { font-size: clamp(1.15rem, 5vw, 1.55rem); }
  .target-card .target-description, .target-card .target-guide, .target-card .target-equipment { display: none; }
  .comet-layout { gap: 9px; }
  .comet-feature { flex: 0 0 auto; padding: 11px 10px; }
  .comet-feature h3 { font-size: clamp(1.05rem, 4.7vw, 1.55rem); }
  .comet-feature-summary { font-size: 9px; line-height: 1.4; }
  .comet-feature-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  .comet-feature-guidance, .comet-feature .arrow-link { display: none; }
  .comet-index { min-height: 130px; }
  .comet-row { padding: 7px 0; }
  .comet-source-note { flex: 0 0 auto; font-size: 8px; }
  .comet-status { flex: 0 0 auto; margin-top: 7px; }
  .manifesto-layout { align-items: stretch; gap: 9px; }
  .manifesto-copy { flex: 0 0 auto; }
  .manifesto-copy > p:last-child { font-size: 10px; line-height: 1.5; }
  .manifesto-diagram { flex: 0 1 clamp(180px, 34vh, 285px); align-self: center; width: min(100%, 285px); max-width: min(72vw, 34vh); margin: 0 auto; }
  .site-footer { flex: 0 0 auto; margin-top: 8px; }
  .slide-controls { display: none; }
}

@media (max-width: 360px), (max-height: 700px) and (max-width: 780px) {
  .panel { padding-top: calc(var(--header-height) + 14px); padding-bottom: 28px; }
  .section-heading { margin-bottom: 8px; }
  .section-heading h2 { font-size: clamp(1.4rem, 6.4vw, 2rem); }
  .heading-note p { font-size: 8px; }
  .signals-layout, .field-layout, .comet-layout, .manifesto-layout { gap: 6px; }
  .featured-signal { padding: 9px; }
  .signal-icon { width: 38px; height: 38px; margin: 8px auto 7px; }
  .signal-icon::before { width: 52px; }
  .signal-icon::after { height: 52px; }
  .signal-summary { -webkit-line-clamp: 1; font-size: 8px; }
  .news-item { padding: 5px 0; }
  .news-item h3 { font-size: 8px; }
  .moon-card { padding: 8px; }
  .field-panel .moon-stage { height: 55px; }
  .field-panel .moon-orb { width: 48px; height: 48px; }
  .field-panel .moon-crosshair { width: 60px; height: 60px; }
  .field-panel .moon-crosshair::before { width: 70px; }
  .field-panel .moon-crosshair::after { height: 70px; }
  .field-panel .moon-readout { gap: 2px 5px; }
  .field-panel .moon-readout span { font-size: 7px; }
  .field-panel .moon-readout strong { font-size: 14px; }
  .field-panel .moon-readout small, .field-panel .moon-readout .moon-source, .field-panel .moon-readout .moon-message { display: none; }
  .field-panel .moon-observation-note { max-height: 36px; margin-top: 5px; padding-top: 5px; }
  .field-panel .moon-observation-note-top { font-size: 6px; }
  .field-panel .moon-observation-note .target-description { margin-top: 2px; font-size: 7px; line-height: 1.25; -webkit-line-clamp: 1; }
  .field-panel .moon-observation-note .target-guide, .field-panel .moon-observation-note .target-equipment { display: none; }
  .field-panel .location-form { gap: 2px; padding-bottom: 2px; }
  .field-panel .location-control, .field-panel .custom-coordinates label { gap: 1px; font-size: 5px; }
  .field-panel .location-control input { height: 23px; padding: 0 4px; font-size: 7px; }
  .field-panel .location-action, .field-panel .coordinate-submit { height: 23px; padding: 0 4px; font-size: 5px; }
  .field-panel .custom-coordinates { gap: 3px; }
  .field-panel .custom-coordinates input { height: 23px; padding: 0 4px; font-size: 7px; }
  .field-panel .weather-card { height: 55px; padding: 5px; overflow: hidden; }
  .field-panel .weather-topline { font-size: 5px; }
  .field-panel .weather-readout { margin: 2px 0 3px; }
  .field-panel .weather-readout strong { font-size: 12px; }
  .field-panel .weather-metrics { gap: 2px; }
  .field-panel .weather-metrics b { font-size: 7px; }
  .field-panel .weather-metrics small { font-size: 5px; }
  .field-panel .target-card { height: 100px; padding: 5px; overflow: hidden; }
  .field-panel .target-topline, .field-panel .target-header { font-size: 6px; }
  .field-panel .target-header { margin-top: 2px; }
  .field-panel .target-card h3 { margin: 2px 0; font-size: 0.88rem; }
  .field-panel .target-stats { gap: 2px; padding: 3px 0; }
  .field-panel .target-stats b { font-size: 7px; }
  .field-panel .target-stats small { font-size: 5px; }
  .field-panel .target-index { margin-top: 2px; padding: 3px 0 2px; }
  .field-panel .target-index-top { font-size: 6px; }
  .field-panel .target-index-top b { font-size: 10px; }
  .field-panel .target-factor-summary { display: none; }
  .field-panel .field-intelligence { gap: 3px; }
  .weather-guidance, .target-card .target-description, .target-card .target-guide, .target-card .target-equipment { display: none; }
  .comet-feature { padding: 8px; }
  .comet-feature-summary, .comet-feature-guidance, .comet-feature .arrow-link { display: none; }
  .comet-row { padding: 5px 0; }
  .comet-row-main b, .comet-row-meta b { font-size: 7px; }
  .manifesto-diagram { flex-basis: min(185px, 31vh); max-width: min(65vw, 31vh); }
  .site-footer { font-size: 7px; }
}

/* Narrow screens keep the same left/right framework, with compact content inside each side. */
@media (max-width: 780px) {
  .signals-layout, .field-layout, .comet-layout {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
    gap: 8px;
    height: auto;
  }
  .field-layout { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .featured-signal, .news-column, .moon-card, .field-intelligence, .comet-feature, .comet-index { height: 100%; min-height: 0; }
  .featured-signal, .comet-feature { overflow: hidden; }
  .news-column, .field-intelligence, .comet-index { min-width: 0; }
  .news-list, .comet-list { height: auto; flex: 1 1 auto; min-height: 0; overflow: hidden; }
  .location-form { grid-template-columns: minmax(0, 1fr) auto; }
  .location-custom-toggle { grid-column: 1 / -1; justify-self: start; }
  .moon-observation-note .target-guide { display: block; }
  .target-card .target-guide-slot { display: none; }
}

@media (min-width: 1101px) {
  .visual-topline, .visual-bottomline, .apod-sync-line { font-size: 10px; }
  .featured-signal-top, .card-topline, .comet-feature-top, .comet-index-top { font-size: 10px; }
  .signal-kicker, .note-label, .comet-kicker { font-size: 10px; }
  .news-type, .news-item time { font-size: 10px; }
  .moon-readout span { font-size: 15px; }
  .moon-readout small { font-size: 10px; }
  .moon-footnote { font-size: 10px; }
  .location-control, .custom-coordinates label { font-size: 10px; }
  .location-control input, .custom-coordinates input { font-size: 12px; }
  .location-action, .coordinate-submit { font-size: 10px; }
  .weather-topline, .target-topline { font-size: 10px; }
  .weather-readout strong { font-size: 22px; }
  .weather-readout span { font-size: 12px; }
  .weather-metrics b, .target-stats b { font-size: 12px; }
  .weather-metrics small, .target-stats small { font-size: 10px; }
  .weather-guidance, .target-description { font-size: 11px; }
  .weather-map-link { font-size: 9px; }
  .target-kind, .target-status, .target-index-top { font-size: 10px; }
  .target-index-top b { font-size: 16px; }
  .target-factor-summary { font-size: 10px; }
  .target-guide span { font-size: 10px; }
  .target-guide p { font-size: 11px; }
  .target-equipment { font-size: 10px; }
  .field-status { font-size: 10px; }
}

.target-guide-slot:empty { display: none; }
.target-card .target-guide-slot:not(:empty) { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.target-card .target-guide-slot .target-guide { margin-top: 0; }

@media (max-width: 780px) {
  .header-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: 1px;
    min-width: 0;
  }
  .header-meta .status-dot { grid-column: 1; grid-row: 1; margin-top: 1px; }
  .header-meta #header-location { grid-column: 2; grid-row: 1; min-width: 0; text-align: right; }
  .header-meta .meta-divider { display: none; }
  .header-meta #local-time {
    display: block;
    grid-column: 2;
    grid-row: 2;
    color: var(--cyan);
    font-size: 7px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: right;
  }
}

@media (max-width: 780px) {
  .weather-map-link { display: none !important; }
  .moon-weather-guidance-slot:not(:empty) { margin-top: auto; }
}

@media (min-width: 781px) {
  .field-panel .field-secondary-column {
    grid-template-rows: auto minmax(0, 1fr);
    align-self: stretch;
    align-content: start;
    height: 100%;
  }
  .field-panel .field-secondary-column .moon-card {
    height: 100%;
    min-height: 0;
    padding: 12px 16px 13px;
  }
  .field-panel .field-secondary-column .moon-stage { height: 180px; }
  .field-panel .field-secondary-column .moon-orb { width: 136px; height: 136px; }
  .field-panel .field-secondary-column .moon-crosshair { width: 162px; height: 162px; }
  .field-panel .field-secondary-column .moon-crosshair::before { width: 190px; }
  .field-panel .field-secondary-column .moon-crosshair::after { height: 190px; }
  .field-panel .field-secondary-column .moon-readout { gap: 3px 12px; }
  .field-panel .field-secondary-column .moon-footnote { margin-top: 10px; padding-top: 8px; }
  .field-panel .field-secondary-column .moon-weather-guidance-slot:not(:empty) { margin-top: auto; }
}

@media (max-width: 780px) {
  .field-primary-column .weather-map-link {
    display: inline-flex !important;
    align-items: center;
    margin-top: 4px;
    font-size: 7px;
  }
}

/* Restore readability in the compact observation field on narrow screens. */
@media (max-width: 780px) {
  .field-panel .target-topline,
  .field-panel .target-header,
  .field-panel .weather-topline,
  .field-panel .card-topline {
    font-size: 8px;
    line-height: 1.35;
  }
  .field-primary-column .target-card h3 {
    font-size: clamp(1.08rem, 5.4vw, 1.5rem);
    line-height: 1.12;
  }
  .field-primary-column .target-stats b,
  .field-primary-column .weather-metrics b {
    font-size: 10px;
  }
  .field-primary-column .target-stats small,
  .field-primary-column .weather-metrics small {
    font-size: 7.5px;
  }
  .field-primary-column .target-index-top {
    font-size: 8px;
  }
  .field-primary-column .target-index-top b {
    font-size: 14px;
  }
  .field-primary-column .target-factor-summary,
  .field-primary-column .target-description,
  .field-primary-column .target-guide p,
  .field-primary-column .target-equipment,
  .field-primary-column .weather-guidance,
  .moon-weather-guidance-slot .weather-guidance {
    font-size: 9px;
    line-height: 1.38;
  }
  .field-primary-column .target-guide span {
    font-size: 8px;
  }
  .field-primary-column .weather-readout strong {
    font-size: 17px;
  }
  .field-secondary-column .location-control,
  .field-secondary-column .custom-coordinates label,
  .field-secondary-column .location-status {
    font-size: 8px;
  }
  .field-secondary-column .location-action,
  .field-secondary-column .coordinate-submit,
  .field-primary-column .weather-map-link {
    font-size: 8px;
  }
  .field-secondary-column .moon-readout span {
    font-size: 11px;
  }
  .field-secondary-column .moon-readout strong {
    font-size: 22px;
  }
  .field-secondary-column .moon-readout small,
  .field-secondary-column .moon-footnote {
    font-size: 8px;
  }
}

/* Wide field layouts can also move crowded weather guidance into the moon card. */
@media (min-width: 781px) {
  .moon-weather-guidance-slot:not(:empty) {
    display: block;
    flex: 0 0 auto;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }
  .moon-weather-guidance-slot .weather-guidance {
    display: block;
    max-height: 5.2em;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
  }
}

/* Keep content inside the bracketed UI frame at both extremes. */
@media (min-width: 1280px) {
  :root { --desktop-frame-width: min(76vw, 1240px); }
  .panel {
    padding-left: max(48px, calc((100vw - var(--desktop-frame-width)) / 2));
    padding-right: max(48px, calc((100vw - var(--desktop-frame-width)) / 2));
  }
  .section-heading, .signals-layout, .field-layout, .field-status, .comet-layout, .comet-status, .manifesto-layout, .site-footer {
    width: 100%;
    max-width: var(--desktop-frame-width);
  }
}

@media (max-width: 780px) {
  :root { --mobile-frame-height: min(700px, calc(100dvh - var(--header-height) - 46px)); }
  .signals-layout, .field-layout, .comet-layout, .manifesto-layout {
    max-height: var(--mobile-frame-height);
  }
}

@media (max-width: 780px) {
  .field-panel .field-intelligence { min-height: 0; }
  .field-panel .target-card {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
  }
  .field-panel .moon-observation-note {
    max-height: none;
    overflow: visible;
  }
  .field-panel .moon-observation-note .target-description,
  .field-panel .moon-observation-note .target-equipment {
    display: block;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-line-clamp: unset;
  }
  .field-panel .moon-observation-note .target-guide { display: none; }
  .field-panel .target-card .target-guide-slot { display: block; min-height: 0; }
  .field-panel .target-card .target-guide-slot:not(:empty) { margin-top: 8px; padding-top: 8px; }
  .field-panel .target-card .target-guide { display: block; margin-top: 0; }
  .field-panel .target-card .target-guide p,
  .field-panel .target-card .target-factor-summary,
  .field-panel .target-card h3,
  .field-panel .target-card .target-stats span:last-child b,
  .field-panel .target-card .target-stats span:last-child small {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .field-panel .target-card .target-stats span:last-child b { line-height: 1.25; }
  .field-panel .location-control input,
  .field-panel .custom-coordinates input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* The wipe line and both panels are driven by one Web Animations timeline. */
.page-transition .transition-line,
main > .panel.is-leaving.page-mask-next.is-masking,
main > .panel.is-leaving.page-mask-prev.is-masking,
main > .panel.is-transition-target.wipe-next.is-wiping,
main > .panel.is-transition-target.wipe-prev.is-wiping {
  animation: none !important;
}

/* Observation field: the content order is part of the layout, not a breakpoint-specific reorder. */
.field-panel .field-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(20px, 3.2vw, 48px);
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
}

.field-primary-column,
.field-secondary-column {
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  gap: clamp(8px, 1.2vw, 14px);
}

.field-primary-column { grid-template-rows: minmax(0, 1.30fr) minmax(0, 0.70fr); }
.field-secondary-column { grid-template-rows: auto minmax(0, 1fr); }
.field-secondary-column .field-notes { display: none !important; }

.field-primary-column .target-card,
.field-primary-column .weather-card,
.field-secondary-column .moon-card {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.field-primary-column .target-card {
  display: flex;
  flex-direction: column;
}

.field-primary-column .weather-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.field-secondary-column .moon-card {
  display: flex;
  flex-direction: column;
}

.target-introduction {
  min-height: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.target-introduction-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-family: ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.target-introduction-top span:first-child { color: var(--cyan); }
.target-introduction-top span:last-child { text-align: right; }
.field-primary-column .target-description,
.field-primary-column .target-guide,
.field-primary-column .target-equipment { display: block; }
.field-primary-column .target-description { margin-top: 7px; }
.field-primary-column .target-guide-slot:not(:empty) { margin-top: 8px; padding-top: 8px; }
.field-primary-column .target-guide { margin-top: 0; }
.field-primary-column .target-description,
.field-primary-column .target-guide p,
.field-primary-column .target-equipment {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.field-primary-column .target-description,
.field-primary-column .target-guide p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.field-primary-column .target-guide p { -webkit-line-clamp: 2; }
.field-primary-column .target-equipment {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (min-width: 781px) {
  .field-panel .section-heading { flex: 0 0 auto; }
  .field-panel .field-status { flex: 0 0 auto; }
  .field-panel .field-status { margin-bottom: 18px; }
  .field-panel .target-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas: none;
  }
  .field-panel .target-stats span:nth-child(1),
  .field-panel .target-stats span:nth-child(2),
  .field-panel .target-stats span:nth-child(3),
  .field-panel .target-stats span:nth-child(4) { grid-area: auto; }
  .field-panel .target-topline span:first-child,
  .field-panel .target-header span:first-child { min-width: 0; }
  .field-panel .target-topline span:last-child,
  .field-panel .target-header span:last-child { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 780px) {
  .field-panel .field-layout {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    gap: 8px;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    align-self: stretch;
  }
  .field-primary-column,
  .field-secondary-column {
    gap: 8px;
  }
  .field-primary-column { grid-template-rows: minmax(0, 1.42fr) minmax(0, 0.58fr); }
  .field-secondary-column { grid-template-rows: auto minmax(0, 1fr); }
  .field-primary-column .target-card,
  .field-primary-column .weather-card,
  .field-secondary-column .moon-card { height: 100%; }

  .field-primary-column .target-card { padding: 11px 10px; }
  .field-primary-column .target-topline,
  .field-primary-column .target-header { gap: 5px; font-size: 7px; line-height: 1.3; }
  .field-primary-column .target-topline span:first-child,
  .field-primary-column .target-header span:first-child { min-width: 0; overflow-wrap: anywhere; }
  .field-primary-column .target-topline span:last-child,
  .field-primary-column .target-header span:last-child { flex: 0 0 auto; white-space: nowrap; }
  .field-primary-column .target-card h3 { margin: 5px 0 4px; font-size: clamp(1.08rem, 4.8vw, 1.45rem); line-height: 1.08; overflow-wrap: anywhere; }
  .field-primary-column .target-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "magnitude altitude window window"
      "constellation constellation constellation constellation";
    gap: 4px;
    padding: 6px 0;
  }
  .field-primary-column .target-stats span:nth-child(1) { grid-area: magnitude; }
  .field-primary-column .target-stats span:nth-child(2) { grid-area: altitude; }
  .field-primary-column .target-stats span:nth-child(3) { grid-area: window; }
  .field-primary-column .target-stats span:nth-child(4) { grid-area: constellation; }
  .field-primary-column .target-stats b { font-size: 9px; }
  .field-primary-column .target-stats small { font-size: 7px; }
  .field-primary-column .target-index { margin-top: 6px; padding: 5px 0 4px; }
  .field-primary-column .target-index-top { font-size: 7px; }
  .field-primary-column .target-index-top b { font-size: 13px; }
  .field-primary-column .target-factor-summary { margin-top: 3px; font-size: 7px; line-height: 1.3; }
  .target-introduction { margin-top: 8px; padding-top: 8px; }
  .target-introduction-top { flex-wrap: wrap; gap: 3px 8px; font-size: 7px; line-height: 1.25; }
  .target-introduction-top span:last-child { margin-left: auto; }
  .field-primary-column .target-description { margin-top: 5px; font-size: 9px; line-height: 1.4; }
  .field-primary-column .target-guide-slot:not(:empty) { margin-top: 6px; padding-top: 6px; }
  .field-primary-column .target-guide span { font-size: 7px; }
  .field-primary-column .target-guide p { margin-top: 3px; font-size: 9px; line-height: 1.4; }
  .field-primary-column .target-equipment { margin-top: 5px; font-size: 8px; line-height: 1.35; }

  .field-primary-column .weather-card { padding: 9px 10px; }
  .field-primary-column .weather-topline { gap: 5px; font-size: 7px; line-height: 1.25; }
  .field-primary-column .weather-topline span:last-child { flex: 0 0 auto; white-space: nowrap; }
  .field-primary-column .weather-readout { display: block; margin: 5px 0 6px; }
  .field-primary-column .weather-readout strong { display: block; font-size: 16px; }
  .field-primary-column .weather-readout span { display: -webkit-box; margin-top: 2px; overflow: hidden; font-size: 8px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .field-primary-column .weather-metrics { gap: 3px; }
  .field-primary-column .weather-metrics b { font-size: 9px; }
  .field-primary-column .weather-metrics small { font-size: 7px; }
  .field-primary-column .weather-guidance { display: -webkit-box; min-height: 0; margin: 5px 0 0; overflow: hidden; font-size: 8px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .field-primary-column .weather-map-link { display: none; }

  .field-secondary-column .location-form { grid-template-columns: minmax(0, 1fr) auto; gap: 5px; padding-bottom: 6px; }
  .field-secondary-column .location-custom-toggle { grid-column: 1 / -1; justify-self: start; }
  .field-secondary-column .location-control,
  .field-secondary-column .custom-coordinates label { gap: 3px; font-size: 7px; }
  .field-secondary-column .location-control input,
  .field-secondary-column .custom-coordinates input { height: 29px; font-size: 16px; }
  .field-secondary-column .location-action,
  .field-secondary-column .coordinate-submit { height: 29px; padding: 0 7px; font-size: 7px; }
  .field-secondary-column .location-status { font-size: 7px; line-height: 1.25; }
  .field-secondary-column .moon-card { padding: 11px 10px; }
  .field-secondary-column .moon-stage { height: clamp(106px, 17vh, 160px); }
  .field-secondary-column .moon-orb { width: clamp(78px, 21vw, 126px); height: clamp(78px, 21vw, 126px); }
  .field-secondary-column .moon-crosshair { width: clamp(94px, 26vw, 152px); height: clamp(94px, 26vw, 152px); }
  .field-secondary-column .moon-crosshair::before { width: clamp(112px, 32vw, 178px); }
  .field-secondary-column .moon-crosshair::after { height: clamp(112px, 32vw, 178px); }
  .field-secondary-column .moon-readout { gap: 3px 7px; }
  .field-secondary-column .moon-readout span { font-size: 10px; }
  .field-secondary-column .moon-readout strong { font-size: 20px; }
  .field-secondary-column .moon-readout small { font-size: 7px; }
  .field-secondary-column .moon-readout .moon-source { font-size: 6px; }
  .field-secondary-column .moon-footnote { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; padding-top: 8px; font-size: 7px; }
  .field-secondary-column .moon-footnote span:last-child { text-align: left; }
}

@media (max-width: 360px), (max-height: 700px) and (max-width: 780px) {
  .field-panel .field-layout { gap: 5px; }
  .field-primary-column,
  .field-secondary-column { gap: 5px; }
  .field-primary-column { grid-template-rows: minmax(0, 1.16fr) minmax(0, 0.84fr); }
  .field-primary-column .target-card { padding: 6px; }
  .field-primary-column .target-topline,
  .field-primary-column .target-header { font-size: 6px; }
  .field-primary-column .target-card h3 { margin: 3px 0; font-size: 0.9rem; }
  .field-primary-column .target-stats { gap: 2px; padding: 4px 0; }
  .field-primary-column .target-stats b { font-size: 7px; }
  .field-primary-column .target-stats small { font-size: 5px; }
  .field-primary-column .target-index { margin-top: 3px; padding: 3px 0 2px; }
  .field-primary-column .target-index-top { font-size: 6px; }
  .field-primary-column .target-index-top b { font-size: 10px; }
  .field-primary-column .target-factor-summary { display: none; }
  .target-introduction { margin-top: 5px; padding-top: 5px; }
  .target-introduction-top { font-size: 6px; }
  .field-primary-column .target-description { margin-top: 3px; font-size: 7px; line-height: 1.3; -webkit-line-clamp: 2; }
  .field-primary-column .target-guide-slot,
  .field-primary-column .target-equipment { display: none; }
  .field-primary-column .weather-card { padding: 6px; }
  .field-primary-column .weather-topline { font-size: 6px; }
  .field-primary-column .weather-readout { margin: 3px 0 4px; }
  .field-primary-column .weather-readout strong { font-size: 13px; }
  .field-primary-column .weather-readout span,
  .field-primary-column .weather-guidance { display: none; }
  .field-primary-column .weather-metrics { gap: 2px; }
  .field-primary-column .weather-metrics b { font-size: 7px; }
  .field-primary-column .weather-metrics small { font-size: 5px; }
  .field-secondary-column .location-form { gap: 2px; padding-bottom: 3px; }
  .field-secondary-column .location-control,
  .field-secondary-column .custom-coordinates label { gap: 1px; font-size: 5px; }
  .field-secondary-column .location-control input,
  .field-secondary-column .custom-coordinates input { height: 24px; font-size: 16px; }
  .field-secondary-column .location-action,
  .field-secondary-column .coordinate-submit { height: 24px; padding: 0 4px; font-size: 5px; }
  .field-secondary-column .location-status { display: none; }
  .field-secondary-column .moon-card { padding: 6px; }
  .field-secondary-column .moon-stage { height: 74px; }
  .field-secondary-column .moon-orb { width: 56px; height: 56px; }
  .field-secondary-column .moon-crosshair { width: 68px; height: 68px; }
  .field-secondary-column .moon-crosshair::before { width: 80px; }
  .field-secondary-column .moon-crosshair::after { height: 80px; }
  .field-secondary-column .moon-readout { gap: 2px 5px; }
  .field-secondary-column .moon-readout span { font-size: 7px; }
  .field-secondary-column .moon-readout strong { font-size: 14px; }
  .field-secondary-column .moon-readout small,
  .field-secondary-column .moon-readout .moon-source,
  .field-secondary-column .moon-readout .moon-message,
  .field-secondary-column .moon-footnote { display: none; }
}

@media (min-width: 781px) and (max-height: 800px) {
  .field-panel .target-introduction { margin-top: 7px; padding-top: 7px; }
  .field-panel .target-description { margin-top: 5px; -webkit-line-clamp: 2; }
  .field-panel .target-guide-slot { display: none; }
  .field-panel .target-guide,
  .field-panel .target-equipment { display: none; }
  .field-panel .weather-guidance { display: none; }
}

/* Final visual pass for the current desktop and mobile templates. */
.target-introduction { border-top: 0; }

.comet-feature .comet-flight {
  left: -135%;
  width: 360%;
  clip-path: inset(0 12%);
}

.comet-feature .comet-flight::after { left: 28%; }

@media (min-width: 1101px) {
  .field-panel .field-primary-column { grid-template-rows: minmax(0, 1.38fr) minmax(0, 0.62fr); }
  .field-panel .card-topline,
  .field-panel .target-topline,
  .field-panel .weather-topline { font-size: 11px; }
  .field-panel .target-introduction-top { font-size: 10px; }
  .field-panel .target-kind,
  .field-panel .target-status { font-size: 11px; }
  .field-panel .target-stats b,
  .field-panel .weather-metrics b { font-size: 13px; }
  .field-panel .target-stats small,
  .field-panel .weather-metrics small { font-size: 11px; }
  .field-panel .target-index-top { font-size: 11px; }
  .field-panel .target-index-top b { font-size: 17px; }
  .field-panel .target-factor-summary { font-size: 11px; }
  .field-panel .target-description,
  .field-panel .target-guide p,
  .field-panel .weather-guidance { font-size: 12px; }
  .field-panel .target-guide span { font-size: 11px; }
  .field-panel .target-equipment { font-size: 11px; }
  .field-panel .location-control,
  .field-panel .custom-coordinates label { font-size: 11px; }
  .field-panel .location-control input,
  .field-panel .custom-coordinates input { font-size: 13px; }
  .field-panel .location-action,
  .field-panel .coordinate-submit { font-size: 11px; }
  .field-panel .location-status { font-size: 9px; }
  .field-panel .weather-readout strong { font-size: 24px; }
  .field-panel .weather-readout span { font-size: 13px; }
  .field-panel .weather-map-link { font-size: 10px; }
  .field-panel .moon-readout span { font-size: 16px; }
  .field-panel .moon-readout strong { font-size: 31px; }
  .field-panel .moon-readout small { font-size: 11px; }
  .field-panel .moon-readout .moon-source { font-size: 9px; }
  .field-panel .moon-footnote { font-size: 11px; }
  .manifesto-copy h2 em { display: inline-block; white-space: nowrap; }
}

@media (max-width: 780px) {
  :root { --header-height: 78px; }
  .site-header {
    grid-template-rows: 44px 34px;
    height: var(--header-height);
  }
  .menu-toggle { width: 32px; height: 32px; padding: 7px; }
}

@keyframes signal-orb-breathe {
  0%, 100% { border-color: rgba(115, 228, 255, 0.72); box-shadow: 0 0 0 rgba(115, 228, 255, 0); }
  50% { border-color: rgba(147, 237, 255, 0.98); box-shadow: 0 0 24px rgba(115, 228, 255, 0.22), 0 0 6px rgba(217, 255, 91, 0.12); }
}

@keyframes signal-core-breathe {
  0%, 100% { opacity: 0.9; filter: saturate(0.94); }
  50% { opacity: 1; filter: saturate(1.12) brightness(1.08); }
}

@keyframes comet-orbit-breathe {
  0%, 100% { border-color: rgba(115, 228, 255, 0.78); box-shadow: 0 0 0 rgba(115, 228, 255, 0); }
  50% { border-color: rgba(147, 237, 255, 1); box-shadow: 0 0 26px rgba(115, 228, 255, 0.2), 0 0 8px rgba(217, 255, 91, 0.1); }
}

.signal-icon {
  animation: signal-orb-breathe 7.2s ease-in-out infinite;
  will-change: box-shadow, border-color;
}

.signal-icon span {
  animation: signal-core-breathe 6.4s ease-in-out infinite;
  will-change: opacity, filter;
}

.comet-orbit-mark {
  animation: comet-float 7s ease-in-out infinite, comet-orbit-breathe 8.4s ease-in-out infinite;
  will-change: transform, box-shadow, border-color;
}

@media (max-width: 780px) {
  :root { --header-height: 64px; }
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 1fr;
    height: var(--header-height);
    align-items: center;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    align-self: center;
    justify-self: start;
  }
  .brand-copy { min-width: 0; }
  .brand-copy strong,
  .brand-copy small { white-space: nowrap; }
  .header-meta {
    grid-column: 2;
    grid-row: 1;
    max-width: min(34vw, 132px);
    margin-right: 0;
    justify-self: end;
  }
  .header-meta #header-location,
  .header-meta #local-time {
    position: relative;
    left: -8px;
  }
  .menu-toggle {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 340px) {
  .brand { gap: 8px; }
  .brand-copy strong {
    font-size: 10px;
    letter-spacing: 0.16em;
  }
  .brand-copy small {
    font-size: 6px;
    letter-spacing: 0.1em;
  }
  .brand-mark {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 781px) {
  :root { --header-height: 72px; }
}

/* Align the narrow layout with the visible corner brackets. */
@media (max-width: 780px) {
  .panel {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 360px) {
  .panel {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 34px;
  }
}

/* Keep the recommendation metadata readable while removing dead vertical space. */
.field-primary-column .target-card h3 {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
}

.field-primary-column .target-index {
  margin-top: 3px;
  padding-top: 3px;
  padding-bottom: 2px;
}

.field-primary-column .target-index-top { line-height: 1.1; }
.field-primary-column .target-factor-summary {
  margin-top: 3px;
  line-height: 1.2;
}

.field-primary-column .target-introduction {
  margin-top: 6px;
  padding-top: 6px;
}

.field-primary-column .target-description { margin-top: 4px; }
.field-primary-column .target-introduction-top { line-height: 1.15; }

.field-primary-column .target-guide-slot:not(:empty) {
  margin-top: 5px;
  padding-top: 5px;
}

.field-primary-column .target-guide { margin-top: 0; line-height: 1.2; }
.field-primary-column .target-guide p { margin-top: 3px; line-height: 1.3; }
.field-primary-column .target-equipment { margin-top: 5px; line-height: 1.35; }

.field-panel .field-primary-column .target-guide-slot:not(:empty) {
  margin-top: 5px;
  padding-top: 5px;
}

@media (max-width: 780px) {
  .header-meta {
    position: relative;
    z-index: 22;
    overflow: visible;
    transform: translateX(-12px);
  }
  .header-meta .status-dot {
    position: relative;
    left: -2px;
    z-index: 1;
  }
  .header-meta #header-location,
  .header-meta #local-time {
    display: block;
    width: 100%;
    left: -4px;
    text-align: right;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
  }
  .header-meta #header-location {
    text-overflow: clip;
  }
}

/* Keep the live clock cyan in the wide header as well as on narrow screens. */
@media (min-width: 781px) {
  .header-meta #local-time { color: var(--cyan); }
}

/* Keep the grain layer stable while the vertical wipe overlaps two panels. */
body.is-panel-transitioning .grain { opacity: 0.075; }

/* Give the image metadata more breathing room and preserve RA/DEC on narrow screens. */
@media (min-width: 781px) {
  .hero-visual .visual-bottomline { margin-top: 18px; }
  .hero-visual .apod-sync-line { margin-top: 12px; }
}

@media (max-width: 780px) {
  .hero-visual .visual-bottomline {
    display: block;
    margin-top: 12px;
  }
  .hero-visual .visual-bottomline #apod-credit,
  .hero-visual .visual-bottomline .visual-coordinates {
    display: block;
    width: 100%;
  }
  .hero-visual .visual-bottomline #apod-credit {
    text-align: left;
    white-space: nowrap;
  }
  .hero-visual .visual-coordinates {
    margin-top: 1px;
    color: var(--cyan);
    text-align: right;
    white-space: nowrap;
  }
  .hero-visual .apod-sync-line {
    display: block;
    margin-top: 10px;
  }
  .hero-visual .apod-sync-line #apod-sync {
    display: block;
    width: 100%;
    text-align: left;
    white-space: nowrap;
  }
  .hero-visual .apod-sync-line #apod-timezone {
    display: block;
    width: 100%;
    text-align: right;
    white-space: nowrap;
  }
  .observatory-next-hint { bottom: 24px; }
}

/* Keep narrow observation copy available on compact and older mobile engines. */
@media (max-width: 780px) {
  .field-primary-column .target-card { overflow: visible; }
  .field-primary-column .target-guide-slot { display: block; }
  .field-primary-column .target-description,
  .field-primary-column .target-guide,
  .field-primary-column .target-equipment,
  .field-primary-column .weather-guidance {
    display: block;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .field-primary-column .target-description {
    max-height: 2.8em;
    -webkit-line-clamp: unset;
  }
  .field-primary-column .target-guide p {
    display: block;
    max-height: 2.8em;
    overflow: hidden;
    -webkit-line-clamp: unset;
  }
  .field-primary-column .target-equipment,
  .field-primary-column .weather-guidance {
    max-height: 1.45em;
    -webkit-line-clamp: unset;
  }
}

/* Older Android browsers may ignore dynamic viewport units. */
@media (max-width: 780px) {
  main { height: 100vh; }
  main > .panel { height: 100vh; }
}

@supports (height: 100dvh) {
  @media (max-width: 780px) {
    main { height: 100dvh; }
    main > .panel { height: 100dvh; }
  }
}

/* Compact mobile field layout: give the weather card room and keep target copy bounded. */
@media (max-width: 780px) {
  .field-primary-column { grid-template-rows: minmax(0, 1.28fr) minmax(0, 0.72fr); }
  .field-primary-column .target-card { overflow: hidden; }
  .field-primary-column .target-card h3 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .field-primary-column .target-factor-summary,
  .field-primary-column .target-description,
  .field-primary-column .target-guide-slot,
  .field-primary-column .target-guide,
  .field-primary-column .target-equipment {
    display: block;
  }
  .field-primary-column .target-factor-summary,
  .field-primary-column .target-description,
  .field-primary-column .target-guide p,
  .field-primary-column .target-equipment {
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-line-clamp: unset;
  }
  .field-primary-column .target-factor-summary,
  .field-primary-column .target-description,
  .field-primary-column .target-guide p { max-height: 2.8em; }
  .field-primary-column .target-equipment { max-height: 1.4em; }

  .field-primary-column .weather-map-link { display: none !important; }
  .field-primary-column .weather-guidance {
    display: block;
    max-height: 2.7em;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-line-clamp: unset;
  }
  .weather-guidance-slot { min-height: 0; }
  .moon-weather-guidance-slot:not(:empty) {
    display: block;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .moon-weather-guidance-slot .weather-guidance {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.35;
    max-height: 4.1em;
    overflow: hidden;
  }
}

@media (max-width: 360px), (max-height: 700px) and (max-width: 780px) {
  .field-primary-column { grid-template-rows: minmax(0, 1.08fr) minmax(0, 0.92fr); }
  .field-primary-column .target-factor-summary,
  .field-primary-column .target-description,
  .field-primary-column .target-guide-slot,
  .field-primary-column .target-guide,
  .field-primary-column .target-equipment { display: block; }
  .field-primary-column .target-factor-summary,
  .field-primary-column .target-guide p,
  .field-primary-column .target-equipment { max-height: 1.4em; }
  .field-primary-column .target-description { max-height: 2.6em; }
  .field-primary-column .weather-guidance { max-height: 1.35em; }
  .moon-weather-guidance-slot .weather-guidance { font-size: 7px; }
}

/* APOD metadata stays on two compact rows on narrow screens. */
@media (max-width: 780px) {
  .hero-visual .visual-bottomline {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-spacing: 0;
    margin-top: 8px;
    font-size: 7px;
    letter-spacing: 0.03em;
  }
  .hero-visual .visual-bottomline #apod-credit,
  .hero-visual .apod-sync-line #apod-sync {
    display: table-cell;
    width: 60%;
    min-width: 0;
    overflow: visible;
    color: var(--faint);
    text-align: left;
    text-overflow: clip;
    white-space: nowrap;
    vertical-align: baseline;
  }
  .hero-visual .visual-coordinates,
  .hero-visual .apod-sync-line #apod-timezone {
    display: table-cell;
    width: 40%;
    min-width: 0;
    overflow: visible;
    text-align: right;
    text-overflow: clip;
    white-space: nowrap;
    vertical-align: baseline;
  }
  .hero-visual .apod-sync-line {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-spacing: 0;
    margin-top: 6px;
    font-size: 7px;
    letter-spacing: 0.03em;
  }
}

/* Keep the weather map link available on every narrow screen. */
@media (max-width: 780px) {
  .field-panel .field-primary-column .weather-map-link {
    display: inline-flex !important;
    align-items: center;
    margin-top: 4px;
    font-size: 7px;
  }
}

/* Keep wide-screen weather guidance measurable so it can move into the moon card when crowded. */
@media (min-width: 781px) {
  .field-panel .weather-guidance-slot .weather-guidance {
    display: block;
    max-height: 3em;
    overflow: hidden;
  }
}

/* Final observation-field sizing: align the wide moon frame and restore narrow-screen readability. */
@media (min-width: 781px) {
  .field-panel .field-layout,
  .field-panel .field-primary-column,
  .field-panel .field-secondary-column {
    align-items: stretch;
    min-height: 0;
    height: 100%;
  }
  .field-panel .field-secondary-column {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .field-panel .field-secondary-column .moon-card {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 780px) {
  .field-panel .target-topline,
  .field-panel .target-header,
  .field-panel .weather-topline,
  .field-panel .card-topline {
    font-size: 8.5px;
    line-height: 1.3;
  }
  .field-panel .target-card h3 {
    font-size: clamp(1rem, 5.8vw, 1.55rem);
    line-height: 1.1;
  }
  .field-panel .target-stats b,
  .field-panel .weather-metrics b {
    font-size: 10px;
  }
  .field-panel .target-stats small,
  .field-panel .weather-metrics small {
    font-size: 7px;
  }
  .field-panel .target-index-top {
    font-size: 8.5px;
  }
  .field-panel .target-index-top b {
    font-size: 14px;
  }
  .field-panel .target-factor-summary,
  .field-panel .target-description,
  .field-panel .target-guide p,
  .field-panel .target-equipment,
  .field-panel .weather-guidance,
  .field-panel .moon-weather-guidance-slot .weather-guidance {
    font-size: 9px;
    line-height: 1.35;
  }
  .field-panel .target-description,
  .field-panel .target-guide p,
  .field-panel .target-equipment,
  .field-panel .weather-guidance,
  .field-panel .moon-weather-guidance-slot .weather-guidance {
    display: block;
  }
  .field-panel .target-description,
  .field-panel .target-guide p {
    max-height: 2.8em;
  }
  .field-panel .target-equipment,
  .field-panel .weather-guidance {
    max-height: 1.5em;
  }
  .field-panel .target-guide span {
    font-size: 8.5px;
  }
  .field-panel .weather-readout strong {
    font-size: 18px;
  }
  .field-panel .weather-readout span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .field-panel .weather-map-link {
    display: inline-flex !important;
    align-items: center;
    font-size: 8px;
  }
  .field-panel .location-control,
  .field-panel .custom-coordinates label,
  .field-panel .location-status {
    font-size: 8.5px;
  }
  .field-panel .location-action,
  .field-panel .coordinate-submit {
    font-size: 8.5px;
  }
  .field-panel .moon-readout span {
    font-size: 11px;
  }
  .field-panel .moon-readout strong {
    font-size: 22px;
  }
  .field-panel .moon-readout small {
    display: block;
    font-size: 8px;
  }
  .field-panel .moon-readout .moon-source {
    display: block;
    font-size: 7px;
  }
  .field-panel .moon-footnote {
    display: flex;
    font-size: 8px;
    line-height: 1.4;
  }
}

@media (max-width: 360px), (max-height: 700px) and (max-width: 780px) {
  .field-panel .target-topline,
  .field-panel .target-header,
  .field-panel .weather-topline,
  .field-panel .card-topline {
    font-size: 8px;
  }
  .field-panel .target-card h3 {
    font-size: 1rem;
  }
  .field-panel .target-stats b,
  .field-panel .weather-metrics b {
    font-size: 8.5px;
  }
  .field-panel .target-stats small,
  .field-panel .weather-metrics small {
    font-size: 6.5px;
  }
  .field-panel .target-index-top {
    font-size: 8px;
  }
  .field-panel .target-index-top b {
    font-size: 13px;
  }
  .field-panel .target-factor-summary,
  .field-panel .target-description,
  .field-panel .target-guide p,
  .field-panel .target-equipment,
  .field-panel .weather-guidance,
  .field-panel .moon-weather-guidance-slot .weather-guidance {
    font-size: 8.5px;
    line-height: 1.3;
  }
  .field-panel .target-description,
  .field-panel .target-guide p {
    max-height: 2.6em;
  }
  .field-panel .target-equipment,
  .field-panel .weather-guidance {
    max-height: 1.5em;
  }
  .field-panel .target-guide span {
    font-size: 8px;
  }
  .field-panel .weather-readout strong {
    font-size: 15px;
  }
  .field-panel .weather-readout span {
    display: -webkit-box;
    font-size: 8.5px;
    -webkit-line-clamp: 2;
  }
  .field-panel .weather-map-link {
    font-size: 8px;
  }
  .field-panel .location-control,
  .field-panel .custom-coordinates label,
  .field-panel .location-status,
  .field-panel .location-action,
  .field-panel .coordinate-submit {
    font-size: 8px;
  }
  .field-panel .moon-stage {
    height: 74px;
  }
  .field-panel .moon-orb {
    width: 56px;
    height: 56px;
  }
  .field-panel .moon-crosshair {
    width: 68px;
    height: 68px;
  }
  .field-panel .moon-crosshair::before {
    width: 80px;
  }
  .field-panel .moon-crosshair::after {
    height: 80px;
  }
  .field-panel .moon-readout span {
    font-size: 9px;
  }
  .field-panel .moon-readout strong {
    font-size: 18px;
  }
  .field-panel .moon-readout small {
    display: block;
    font-size: 7px;
  }
  .field-panel .moon-readout .moon-source {
    display: block;
    font-size: 6.5px;
  }
  .field-panel .moon-footnote {
    display: flex;
    font-size: 7.5px;
  }
}

@media (min-width: 361px) and (min-height: 701px) and (max-width: 780px) {
  .field-panel .field-primary-column {
    grid-template-rows: minmax(0, 1.35fr) minmax(0, 0.65fr);
  }
}

@media (max-width: 360px), (max-height: 700px) and (max-width: 780px) {
  .field-panel .field-primary-column {
    grid-template-rows: minmax(0, 1.18fr) minmax(0, 0.82fr);
  }
}

@media (max-width: 780px) {
  .field-panel .field-primary-column .weather-map-link {
    display: inline-flex !important;
    font-size: 8.5px;
  }
  .field-panel .moon-weather-guidance-slot .weather-guidance {
    max-height: 4.1em;
  }
  .field-panel .target-equipment {
    max-height: 2.7em;
  }
}

@media (max-width: 360px), (max-height: 700px) and (max-width: 780px) {
  .field-panel .field-primary-column .weather-map-link {
    font-size: 8px;
  }
  .field-panel .target-equipment {
    max-height: 2.6em;
  }
}

/* Keep moved weather guidance directly below the moon observation note. */
@media (min-width: 781px) {
  .field-panel .field-secondary-column .moon-weather-guidance-slot:not(:empty) {
    margin-top: 10px;
  }
}

@media (max-width: 780px) {
  .field-panel .field-secondary-column .moon-weather-guidance-slot:not(:empty) {
    margin-top: 6px;
  }
}

/* Give the target and weather column the requested six-to-four share. */
@media (min-width: 781px) {
  .field-panel .field-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

@media (max-width: 780px) {
  .field-panel .field-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

/* Keep the animated comet trail's head and tail behind the feature frame. */
.comet-feature::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  height: 20px;
  box-sizing: border-box;
  border-top: 1px solid rgba(170, 224, 242, 0.42);
  background: linear-gradient(145deg, rgba(25, 45, 60, 0.99), rgba(10, 17, 25, 0.99));
  pointer-events: none;
}

@media (max-width: 780px) {
  .comet-feature::before {
    height: 7px;
  }
}

/* Keep the recommendation's weather reference visible without expanding the frame. */
.target-weather-alert {
  min-width: 0;
  margin: 4px 0 0;
  color: var(--faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-weather-alert.is-loading,
.target-weather-alert.is-unavailable { color: var(--faint); }
.target-weather-alert.is-clear { color: var(--lime); }
.target-weather-alert.is-watch { color: var(--orange); }
.target-weather-alert.is-alert { color: #ff9e89; }

@media (max-width: 780px) {
  .field-panel .target-weather-alert {
    max-width: 100%;
    margin-top: 3px;
    font-size: 8px;
    line-height: 1.25;
  }
}

@media (max-width: 360px), (max-height: 700px) and (max-width: 780px) {
  .field-panel .target-weather-alert {
    font-size: 7px;
  }
}
