:root {
  color-scheme: dark;
  --page: #07090f;
  --site-bg-deep: #071120;
  --site-bg-night: #0b2146;
  --site-bg-haze: #2b5f8e;
  --ink: #f5f7fb;
  --muted: #aeb8c9;
  --soft: #77849b;
  --line: rgba(168, 186, 214, 0.22);
  --line-strong: rgba(184, 211, 246, 0.38);
  --panel: rgba(17, 23, 33, 0.86);
  --panel-solid: #101722;
  --panel-alt: #151d2b;
  --teal: #8fe7dd;
  --gold: #f4c76b;
  --rose: #ee7895;
  --violet: #b9a3ff;
  --green: #9be078;
  --blue: #80bfff;
  --danger: #ff8b72;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--page);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Aptos", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(83, 169, 255, 0.18), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(125, 235, 255, 0.12), transparent 25%),
    radial-gradient(circle at 80% 12%, rgba(242, 138, 46, 0.12), transparent 28%),
    linear-gradient(180deg, var(--site-bg-night) 0%, var(--site-bg-deep) 40%, #040915 100%);
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.95) 0 0.08rem, transparent 0.09rem),
    radial-gradient(circle at 35% 65%, rgba(255, 255, 255, 0.6) 0 0.07rem, transparent 0.08rem),
    radial-gradient(circle at 75% 38%, rgba(125, 235, 255, 0.9) 0 0.09rem, transparent 0.1rem),
    radial-gradient(circle at 84% 72%, rgba(255, 255, 255, 0.65) 0 0.06rem, transparent 0.08rem),
    radial-gradient(circle at 55% 18%, rgba(255, 255, 255, 0.55) 0 0.05rem, transparent 0.07rem);
  opacity: 0.34;
}

body::after {
  inset: auto -10vw -22vh;
  height: 40vh;
  background:
    radial-gradient(circle at 50% 100%, rgba(83, 169, 255, 0.2), transparent 45%),
    radial-gradient(circle at 30% 100%, rgba(125, 235, 255, 0.14), transparent 36%),
    radial-gradient(circle at 70% 100%, rgba(242, 138, 46, 0.1), transparent 30%);
  filter: blur(30px);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.58;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px clamp(12px, 1.6vw, 28px);
}

.app-shell.is-dragging {
  outline: 2px solid var(--teal);
  outline-offset: -8px;
}

.topbar,
.plan-hero,
.control-surface,
.tool-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(7, 17, 32, 0.68);
  box-shadow: 0 18px 60px rgba(3, 10, 23, 0.28);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}

.brand-icon {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy,
.brand-name,
.brand-tag {
  display: block;
}

.brand-name {
  font-size: 19px;
  font-weight: 830;
  line-height: 1;
}

.brand-tag {
  margin-top: 4px;
  color: rgba(248, 251, 255, 0.68);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.topbar-actions,
.hero-stats,
.panel-heading,
.control-surface,
.switch,
.field {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar-links {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  line-height: 0;
  text-decoration: none;
}

.app-store-badge img {
  display: block;
  width: 120px;
  height: 40px;
  object-fit: contain;
}

.app-store-badge--compact img {
  width: 112px;
  height: auto;
}

.header-support-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}

.header-support-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.header-support-link:hover,
.header-support-link:focus-visible {
  color: var(--ink);
}

.header-support-link:focus-visible {
  border-radius: 999px;
  outline: 2px solid rgba(143, 231, 221, 0.68);
  outline-offset: 3px;
}

.header-support-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  color: #b0f3ff;
  flex: 0 0 auto;
}

.header-support-icon svg {
  display: block;
  width: 1em;
  height: 1em;
}

.header-support-icon--support svg {
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-support-icon--facebook {
  color: #b0f3ff;
  font-size: 15px;
}

.button,
.icon-button {
  min-height: 38px;
  border: 1px solid rgba(143, 231, 221, 0.34);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(18, 33, 45, 0.94);
  padding: 8px 12px;
  font-weight: 760;
}

.button:hover,
.icon-button:hover {
  border-color: rgba(143, 231, 221, 0.7);
  background: rgba(24, 43, 58, 0.96);
}

.button:disabled:hover,
.icon-button:disabled:hover {
  border-color: rgba(143, 231, 221, 0.34);
  background: rgba(18, 33, 45, 0.94);
}

.button.secondary {
  border-color: rgba(244, 199, 107, 0.36);
}

.file-button {
  display: inline-flex;
  align-items: center;
}

.plan-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 6px clamp(4px, 1vw, 10px);
  border-radius: 8px;
  overflow: hidden;
  border-color: transparent;
  background:
    linear-gradient(90deg, rgba(125, 235, 255, 0.1), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0));
  box-shadow: none;
  backdrop-filter: none;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 840;
  text-transform: uppercase;
}

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

h1 {
  max-width: 940px;
  margin-bottom: 10px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.1;
}

.forecast-heading-title {
  min-width: 0;
}

.forecast-heading-title.has-night-select {
  width: min(100%, 420px);
}

.summary {
  max-width: 900px;
  margin-bottom: 0;
  color: rgba(248, 251, 255, 0.76);
  font-size: 16px;
  line-height: 1.45;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 6px;
  min-width: min(284px, 100%);
}

.metric {
  display: flex;
  min-height: 42px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  padding: 5px 8px;
  backdrop-filter: blur(18px);
}

.metric strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.metric span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 720;
}

.control-surface {
  position: sticky;
  top: 72px;
  z-index: 19;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  flex-wrap: wrap;
}

.forecast-site-controls {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.forecast-site-controls[hidden] {
  display: none;
}

.time-control {
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr);
  gap: 10px;
  align-items: center;
  flex: 1 1 380px;
}

.time-control label,
.field span,
.switch span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.current-time {
  min-width: 190px;
}

.current-time strong,
.current-time span {
  display: block;
}

.current-time strong {
  font-size: 16px;
}

.current-time span {
  color: var(--soft);
  font-size: 12px;
}

.switch {
  gap: 7px;
  min-height: 38px;
  user-select: none;
}

.switch input {
  accent-color: var(--teal);
}

.field {
  gap: 7px;
  min-height: 38px;
}

.field select,
.field input {
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(5, 9, 15, 0.72);
  padding: 6px 9px;
}

.coordinate-field input {
  width: 94px;
}

.small-field select {
  min-width: 160px;
  max-width: 260px;
}

.site-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 8px;
  align-items: end;
  flex: 1 1 420px;
  min-width: min(100%, 300px);
}

.site-search-field {
  align-items: stretch;
  flex-direction: column;
  gap: 6px;
}

.site-search-field input {
  width: 100%;
}

.site-search-button {
  min-height: 36px;
}

.site-import-button {
  min-height: 36px;
  align-self: end;
}

.site-detail-button {
  min-height: 36px;
  align-self: end;
}

.site-import-status {
  flex: 1 1 100%;
  min-height: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.site-import-status.is-error {
  color: #ff9aae;
}

.site-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
  max-height: 240px;
  overflow: auto;
  padding-top: 2px;
}

.site-results[hidden] {
  display: none;
}

.site-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: rgba(8, 12, 18, 0.66);
  padding: 8px 9px;
  text-align: left;
}

.site-result:hover,
.site-result:focus-visible {
  border-color: var(--line-strong);
  background: rgba(15, 24, 34, 0.9);
}

.site-result-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.site-result-copy strong,
.site-result-copy span {
  overflow-wrap: anywhere;
}

.site-result-copy strong {
  font-size: 13px;
}

.site-result-copy span,
.site-empty,
.site-attribution {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.site-result-source {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 780;
}

.site-empty,
.site-attribution {
  margin: 0;
}

.site-attribution a {
  color: var(--teal);
}

.section-jump {
  display: none;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.48fr) minmax(320px, 0.88fr);
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.tool-panel {
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
  scroll-margin-top: 148px;
}

.tonight-panel {
  grid-column: 1;
  grid-row: 1;
}

.chart-panel {
  min-height: 330px;
}

.analysis-stack {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  align-self: start;
}

.analysis-stack > .tool-panel {
  width: 100%;
}

.sky-control-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 4px 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 9, 15, 0.48);
  padding: 8px;
}

.sky-control-strip .time-control {
  flex: 1 1 340px;
}

.sky-panel svg {
  margin-top: 10px;
}

.detail-panel {
  grid-column: 3;
  grid-row: 1;
}

.forecast-panel {
  scroll-margin-top: 148px;
}

.schedule-altitude {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 148px;
}

.schedule-altitude .panel-heading {
  margin-bottom: 4px;
}

.schedule-altitude .panel-heading > div {
  min-width: 0;
}

.schedule-altitude h2 {
  font-size: 16px;
  white-space: nowrap;
}

.schedule-altitude .chart-readout {
  flex: 0 1 auto;
  max-width: 178px;
  min-height: 26px;
  overflow: hidden;
  padding: 4px 8px;
  text-overflow: ellipsis;
}

.panel-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading.compact {
  margin-bottom: 8px;
}

.status-pill,
.chart-readout {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(7, 9, 15, 0.52);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.timeline-axis {
  position: relative;
  height: 22px;
  margin: 2px 0 4px;
  color: var(--soft);
  font-size: 11px;
}

.timeline-axis span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.timeline-track {
  position: relative;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(4, 7, 12, 0.62);
  overflow: hidden;
}

.timeline-block,
.timeline-cursor {
  position: absolute;
}

.timeline-block {
  top: 7px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  opacity: 0.92;
}

.timeline-block.is-selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.timeline-cursor {
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.48), 0 0 16px rgba(143, 231, 221, 0.68);
}

.empty-state {
  width: 100%;
  border: 1px dashed rgba(184, 211, 246, 0.28);
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(143, 231, 221, 0.08), rgba(244, 199, 107, 0.045)),
    rgba(5, 9, 15, 0.42);
  padding: 14px;
}

.empty-state h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.empty-state p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.42;
}

.empty-state ul {
  display: grid;
  gap: 4px;
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.36;
}

.empty-chart-title {
  fill: #f5f7fb;
  font-size: 22px;
  font-weight: 820;
}

.empty-chart-subtitle {
  fill: #aeb8c9;
  font-size: 14px;
  font-weight: 720;
}

.target-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.target-list-item {
  position: relative;
}

.target-list-item.is-editing {
  z-index: 12;
}

.target-row-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.target-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: rgba(8, 12, 18, 0.54);
  padding: 10px;
  text-align: left;
}

.target-edit-button {
  width: 48px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(5, 9, 15, 0.62);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 840;
}

.target-edit-button:hover,
.target-edit-button:focus-visible,
.target-edit-button[aria-expanded="true"] {
  border-color: rgba(143, 231, 221, 0.72);
  color: var(--ink);
  background: rgba(18, 33, 45, 0.94);
}

.target-row:hover {
  border-color: var(--line-strong);
  background: rgba(18, 29, 42, 0.64);
}

.target-row.is-selected {
  border-color: rgba(143, 231, 221, 0.9);
  background: rgba(18, 29, 42, 0.78);
  box-shadow: 0 0 0 1px rgba(143, 231, 221, 0.18);
}

.target-row.is-active:not(.is-selected) {
  border-color: var(--line);
}

.target-row.is-active:not(.is-selected)::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 4px;
  width: 3px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(143, 231, 221, 0.46);
}

.target-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #061015;
  font-weight: 860;
}

.target-thumb-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}

.target-thumb,
.target-thumb-fallback {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #08101a;
}

.target-thumb {
  display: block;
  object-fit: cover;
}

.target-thumb-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.target-thumb-wrap .target-index {
  position: absolute;
  left: 5px;
  top: 5px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.46);
}

.target-copy {
  min-width: 0;
}

.target-name {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  font-weight: 820;
}

.target-name span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.target-name span:last-child {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.target-meta,
.target-observing {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.target-observing {
  margin-top: 4px;
  color: #c5cfdd;
}

.forecast-panel-body {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.forecast-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.forecast-density-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 9, 15, 0.42);
  padding: 2px;
}

.forecast-density-button {
  min-height: 24px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 820;
}

.forecast-density-button:hover,
.forecast-density-button:focus-visible,
.forecast-density-button.is-selected {
  color: var(--ink);
  background: rgba(143, 231, 221, 0.16);
}

.forecast-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.forecast-summary span,
.forecast-summary a {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(7, 9, 15, 0.42);
  padding: 4px 9px;
  text-decoration: none;
}

.forecast-summary a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.forecast-night-matrix,
.forecast-hourly-matrix {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  background: rgba(5, 9, 15, 0.42);
}

.forecast-night-matrix {
  margin-top: 8px;
}

.forecast-panel-body.is-density-medium .forecast-night-matrix {
  margin-top: 0;
}

.forecast-hourly-scroll {
  width: 100%;
  max-width: 100%;
  contain: layout paint;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 8px;
  scrollbar-color: rgba(143, 231, 221, 0.42) transparent;
}

.forecast-hourly-matrix {
  min-width: max-content;
  overflow: hidden;
}

.forecast-matrix-corner,
.forecast-row-label,
.forecast-night-tab,
.forecast-hour-header,
.forecast-matrix-cell {
  min-width: 0;
  min-height: 30px;
  border-right: 1px solid rgba(184, 211, 246, 0.15);
  border-bottom: 1px solid rgba(184, 211, 246, 0.15);
}

.forecast-matrix-corner,
.forecast-row-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.075);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 780;
}

.forecast-matrix-corner {
  min-height: 46px;
  color: var(--soft);
}

.forecast-row-label.sticky,
.forecast-matrix-corner.sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 1px 0 0 rgba(184, 211, 246, 0.15);
}

.forecast-cloud-disclosure {
  appearance: none;
  justify-content: space-between;
  width: 100%;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid rgba(184, 211, 246, 0.15);
  border-bottom: 1px solid rgba(184, 211, 246, 0.15);
  text-align: left;
}

.forecast-cloud-disclosure:hover,
.forecast-cloud-disclosure:focus-visible {
  color: var(--ink);
  background: rgba(143, 231, 221, 0.12);
}

.forecast-cloud-disclosure:focus-visible {
  outline: 2px solid rgba(143, 231, 221, 0.62);
  outline-offset: -2px;
}

.forecast-disclosure-indicator {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  opacity: 0.82;
  transition: transform 160ms ease;
}

.forecast-cloud-disclosure[aria-expanded="true"] .forecast-disclosure-indicator {
  transform: rotate(90deg);
}

.forecast-night-tab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 2px;
  border-top: 0;
  border-left: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  padding: 6px 7px;
  text-align: center;
}

.forecast-night-tab:hover,
.forecast-night-tab.is-selected {
  background: rgba(143, 231, 221, 0.14);
}

.forecast-night-tab.is-selected {
  box-shadow: inset 0 0 0 2px rgba(143, 231, 221, 0.52);
}

.forecast-night-tab strong {
  display: block;
  font-size: 13px;
  line-height: 1;
}

.forecast-night-tab span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.forecast-night-date-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
  justify-items: center;
}

.forecast-night-tab .forecast-night-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 860;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
}

.forecast-matrix-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: var(--cell-stroke, rgba(184, 211, 246, 0.15));
  color: var(--cell-fg, var(--ink));
  background: var(--cell-bg, rgba(255, 255, 255, 0.08));
  padding: 5px 6px;
  font-size: 12px;
  font-weight: 820;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.forecast-matrix-cell.is-banded {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.76),
    0 0 8px rgba(0, 0, 0, 0.44);
}

.forecast-matrix-cell.rating {
  font-size: 13px;
  letter-spacing: 0;
}

.forecast-hour-header.forecast-window-highlight,
.forecast-matrix-cell.forecast-window-highlight {
  border-color: var(--cell-stroke, rgba(184, 211, 246, 0.15));
}

.forecast-window-highlight.is-window-start {
  border-left: 2px solid var(--forecast-window-color, var(--teal));
}

.forecast-window-highlight.is-window-end {
  border-right: 2px solid var(--forecast-window-color, var(--teal));
}

.forecast-window-highlight.is-window-top {
  border-top: 2px solid var(--forecast-window-color, var(--teal));
}

.forecast-window-highlight.is-window-bottom {
  border-bottom: 2px solid var(--forecast-window-color, var(--teal));
}

.forecast-hour-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 820;
  text-align: center;
}

.forecast-selected-night {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 0 8px;
  min-width: 0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(143, 231, 221, 0.08), transparent 48%),
    rgba(5, 9, 15, 0.28);
  padding: 10px 12px;
}

.forecast-selected-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.forecast-selected-night h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.forecast-selected-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.forecast-selected-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(7, 9, 15, 0.48);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 760;
}

.forecast-night-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  min-width: 0;
}

.forecast-night-select span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.forecast-night-select select {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(5, 9, 15, 0.74);
  padding: 6px 8px;
  font-weight: 780;
}

.forecast-night-title-select {
  position: relative;
  display: inline-flex;
  width: 100%;
  max-width: 100%;
  min-height: 38px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(143, 231, 221, 0.1), transparent 60%),
    rgba(5, 9, 15, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.forecast-night-title-select::before,
.forecast-night-title-select::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.forecast-night-title-select::before {
  top: 0;
  right: 38px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.forecast-night-title-select::after {
  top: 50%;
  right: 14px;
  width: 9px;
  height: 9px;
  border-right: 3px solid var(--muted);
  border-bottom: 3px solid var(--muted);
  transform: translateY(-62%) rotate(45deg);
}

.forecast-night-title-select select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  padding: 5px 50px 6px 12px;
  font-size: 18px;
  font-weight: 840;
  line-height: 1.1;
}

.forecast-night-title-select select:focus-visible {
  outline: 2px solid rgba(143, 231, 221, 0.72);
  outline-offset: -2px;
}

.forecast-empty {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(5, 9, 15, 0.38);
  padding: 16px;
  font-size: 13px;
  font-weight: 740;
}

.forecast-empty.action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.forecast-refresh {
  min-height: 32px;
  padding: 6px 10px;
}

.target-detail,
.schedule-detail {
  min-height: 0;
}

.catalog-subject-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.catalog-subject-detail .detail-hero {
  min-height: 150px;
}

.catalog-subject-detail .detail-title {
  font-size: 20px;
}

.schedule-detail-card {
  margin-bottom: 16px;
  border: 1px solid rgba(143, 231, 221, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(143, 231, 221, 0.08), transparent 46%),
    rgba(7, 12, 18, 0.58);
  padding: 12px;
}

.schedule-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.schedule-detail-title-wrap {
  min-width: 0;
}

.schedule-detail-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 840;
  text-transform: uppercase;
}

.schedule-detail-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.schedule-badge {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(8, 12, 18, 0.7);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 780;
}

.schedule-badge.capture {
  border-color: rgba(244, 199, 107, 0.42);
  color: #ffe4a6;
}

.schedule-detail-grid,
.capture-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin-top: 12px;
}

.schedule-detail-card .detail-field strong {
  font-size: 13px;
}

.capture-detail-block,
.framing-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.schedule-detail-note,
.framing-metadata {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.framing-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.framing-controls {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.framing-mode-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 9, 15, 0.52);
  padding: 4px;
}

.framing-mode-button {
  min-width: 0;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  padding: 5px 7px;
  font-size: 12px;
  font-weight: 820;
}

.framing-mode-button:hover,
.framing-mode-button.is-selected {
  color: var(--ink);
  background: rgba(143, 231, 221, 0.14);
}

.framing-mode-button.is-selected {
  box-shadow: inset 0 0 0 1px rgba(143, 231, 221, 0.32);
}

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

.framing-select-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.framing-select-field span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 780;
}

.framing-select-field select {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(5, 9, 15, 0.74);
  padding: 6px 8px;
  font-size: 13px;
}

.framing-readout {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.framing-spec-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.framing-spec-item {
  min-width: 0;
  border: 1px solid rgba(184, 211, 246, 0.18);
  border-radius: 8px;
  background: rgba(5, 9, 15, 0.44);
  padding: 7px 8px;
}

.framing-spec-item span {
  display: block;
  color: var(--soft);
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

.framing-spec-item strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.framing-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-top: 10px;
  border: 1px solid rgba(184, 211, 246, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(143, 231, 221, 0.12), transparent 54%),
    #05080e;
}

.framing-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.framing-preview.is-image-missing::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "Survey cutout unavailable";
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-align: center;
}

.fov-rectangle {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 18px;
  min-height: 18px;
  border: 2px solid rgba(143, 231, 221, 0.95);
  background: rgba(143, 231, 221, 0.08);
  box-shadow:
    0 0 0 1px rgba(3, 8, 14, 0.82),
    0 0 20px rgba(143, 231, 221, 0.42);
  pointer-events: none;
}

.framing-center-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(3, 8, 14, 0.7);
  pointer-events: none;
}

.framing-center-mark::before,
.framing-center-mark::after {
  position: absolute;
  content: "";
  background: rgba(255, 255, 255, 0.78);
}

.framing-center-mark::before {
  left: -8px;
  right: -8px;
  top: 50%;
  height: 1px;
}

.framing-center-mark::after {
  top: -8px;
  bottom: -8px;
  left: 50%;
  width: 1px;
}

.framing-source {
  position: absolute;
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #eef4ff;
  background: rgba(3, 6, 11, 0.78);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 720;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.detail-hero {
  position: relative;
  min-height: 220px;
  margin-bottom: 14px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(143, 231, 221, 0.14), rgba(244, 199, 107, 0.08)),
    #080d15;
}

.detail-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-hero-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #eef4ff;
  background: rgba(3, 6, 11, 0.76);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 720;
  text-decoration: none;
}

.detail-hero.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 820;
}

.detail-title {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.05;
}

.detail-subtitle,
.detail-description,
.catalog-empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.detail-description {
  margin: 12px 0 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.detail-field {
  min-width: 0;
}

.detail-field span {
  display: block;
  color: var(--soft);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.detail-field strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8e1ee;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.schedule-add {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.schedule-add-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.schedule-add-heading h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.detail-add-button {
  min-height: 36px;
}

.place-source-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.place-source-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(10, 16, 24, 0.7);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
}

.place-source-links a:hover {
  border-color: rgba(143, 231, 221, 0.56);
}

.place-visuals {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.place-visual {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 12, 18, 0.56);
  padding: 10px;
}

.place-visual-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.place-visual-header h4 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.place-visual-header span,
.place-visual-caption {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.place-visual-caption {
  margin: 4px 0 0;
}

.astrosite-visuals {
  margin-top: 14px;
}

.astrosite-package-card .detail-grid {
  margin-top: 8px;
}

.astrosite-panorama-image {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border: 1px solid rgba(184, 211, 246, 0.24);
  border-radius: 8px;
  background: #050911;
}

.place-visual-bg {
  fill: #070d15;
  stroke: rgba(184, 211, 246, 0.28);
}

.place-sky-tile {
  shape-rendering: crispEdges;
}

.place-grid {
  stroke: rgba(168, 186, 214, 0.18);
  stroke-width: 1;
}

.place-grid.strong {
  stroke: rgba(143, 231, 221, 0.44);
  stroke-width: 1.4;
}

.place-dome {
  fill: #f4c76b;
  stroke: rgba(255, 233, 165, 0.32);
  stroke-width: 1;
}

.place-visual-label {
  fill: #cbd5e4;
  font-size: 11px;
  font-weight: 720;
  paint-order: stroke;
  stroke: #060a10;
  stroke-width: 3px;
  stroke-linejoin: round;
}

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

.search-field {
  display: grid;
  gap: 6px;
}

.search-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.search-field input,
.search-field select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(5, 9, 15, 0.74);
  padding: 8px 10px;
}

.catalog-results {
  display: grid;
  gap: 8px;
  max-height: 420px;
  margin-top: 12px;
  overflow: auto;
  padding-right: 2px;
}

.catalog-result {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 12, 18, 0.52);
  padding: 8px;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.schedule-editor {
  margin-top: 12px;
}

.schedule-editor:empty {
  display: none;
}

.schedule-edit-card {
  border: 1px solid rgba(143, 231, 221, 0.24);
  border-radius: 8px;
  background: rgba(5, 9, 15, 0.44);
  padding: 10px;
}

.schedule-edit-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 24;
  width: min(430px, 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.schedule-edit-popover::before {
  position: absolute;
  top: -7px;
  right: 22px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(143, 231, 221, 0.24);
  border-left: 1px solid rgba(143, 231, 221, 0.24);
  background: rgba(5, 9, 15, 0.92);
  content: "";
  transform: rotate(45deg);
}

.schedule-edit-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.schedule-edit-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 840;
  text-transform: uppercase;
}

.schedule-edit-header h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.15;
}

.schedule-edit-order {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 860;
}

.schedule-edit-close {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(7, 9, 15, 0.58);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 820;
}

.schedule-edit-close:hover,
.schedule-edit-close:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
}

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

.schedule-edit-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.schedule-edit-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.schedule-edit-field input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(5, 9, 15, 0.72);
  padding: 6px 8px;
}

.schedule-range-editor {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.schedule-range-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.schedule-range-labels span:nth-child(2) {
  color: var(--ink);
}

.schedule-range-labels span:last-child {
  text-align: right;
}

.schedule-range-control {
  --range-start: 0%;
  --range-end: 100%;
  position: relative;
  height: 32px;
}

.schedule-range-track,
.schedule-range-fill {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.schedule-range-track {
  border: 1px solid var(--line);
  background: rgba(5, 9, 15, 0.68);
}

.schedule-range-fill {
  left: var(--range-start);
  right: calc(100% - var(--range-end));
  background: linear-gradient(90deg, rgba(143, 231, 221, 0.78), rgba(244, 199, 107, 0.72));
  box-shadow: 0 0 18px rgba(143, 231, 221, 0.2);
}

.schedule-range-control input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 32px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  background: transparent;
}

.schedule-range-control input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
}

.schedule-range-control input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -5px;
  appearance: none;
  border: 2px solid #071018;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 4px 14px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.schedule-range-control input[type="range"]::-moz-range-track {
  height: 8px;
  background: transparent;
}

.schedule-range-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #071018;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 4px 14px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.schedule-edit-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 9px 0;
}

.schedule-edit-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(7, 9, 15, 0.48);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 760;
}

.schedule-edit-sky {
  height: 150px;
}

.schedule-edit-sky-bg {
  fill: rgba(6, 13, 22, 0.92);
  stroke: var(--line-strong);
}

.schedule-edit-sky-grid {
  stroke: rgba(184, 211, 246, 0.15);
  stroke-width: 1;
}

.schedule-edit-label {
  fill: var(--soft);
  font-size: 10px;
  font-weight: 760;
}

.schedule-edit-target-path,
.schedule-edit-moon-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schedule-edit-target-path {
  stroke-width: 3;
}

.schedule-edit-moon-path {
  stroke: rgba(232, 238, 248, 0.62);
  stroke-width: 2;
  stroke-dasharray: 4 5;
}

.schedule-edit-target-dot {
  stroke: #061018;
  stroke-width: 2;
}

.schedule-edit-moon-dot {
  fill: #e8eef8;
  stroke: #061018;
  stroke-width: 1.5;
}

.catalog-result:hover,
.catalog-result:focus-visible,
.catalog-result.is-active {
  border-color: var(--line-strong);
  background: rgba(15, 24, 34, 0.82);
}

.catalog-result:focus-visible {
  outline: 2px solid rgba(143, 231, 221, 0.68);
  outline-offset: 2px;
}

.catalog-result-image,
.catalog-result-fallback {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #09111b;
}

.catalog-result-image {
  object-fit: cover;
}

.catalog-result-fallback {
  display: grid;
  place-items: center;
  color: var(--soft);
  font-size: 10px;
  font-weight: 820;
}

.catalog-result-copy {
  min-width: 0;
}

.catalog-result-title {
  display: block;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.catalog-result-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.catalog-result-actions {
  display: grid;
  gap: 6px;
}

.mini-button {
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(18, 33, 45, 0.94);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.mini-button.secondary {
  border-color: rgba(244, 199, 107, 0.34);
  background: rgba(34, 29, 17, 0.88);
}

.mini-button:disabled {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(12, 17, 24, 0.74);
}

svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-bg {
  fill: #070d15;
  stroke: var(--line-strong);
}

.sky-brightness-overlay {
  opacity: 0.62;
}

.sky-brightness-tile {
  shape-rendering: crispEdges;
}

.site-path-preview-overlay {
  pointer-events: none;
  mix-blend-mode: screen;
}

.site-path-preview-segment {
  overflow: hidden;
}

.site-obstruction-overlay {
  pointer-events: none;
}

.site-obstruction-fill {
  fill: rgba(244, 199, 107, 0.22);
  stroke: none;
}

.site-obstruction-line {
  fill: none;
  stroke: rgba(244, 199, 107, 0.94);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-grid {
  stroke: rgba(168, 186, 214, 0.18);
  stroke-width: 1;
}

.chart-grid.strong {
  stroke: rgba(143, 231, 221, 0.52);
  stroke-width: 1.7;
}

.planning-line {
  stroke: rgba(155, 224, 120, 0.74);
  stroke-width: 1.6;
  stroke-dasharray: 7 7;
}

.chart-label {
  fill: #cbd5e4;
  font-size: 12px;
  font-weight: 720;
  paint-order: stroke;
  stroke: #060a10;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.chart-axis-label {
  fill: rgba(203, 213, 228, 0.88);
  font-size: 11px;
}

.target-curve {
  fill: none;
  stroke-width: 1.8;
  opacity: 0.46;
}

.target-curve.scheduled {
  stroke-width: 4;
  opacity: 0.95;
}

.target-curve.is-selected {
  stroke-width: 5.4;
  opacity: 1;
}

.current-line {
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.target-dot {
  stroke: #05080d;
  stroke-width: 1.5;
}

.target-dot.is-selected {
  stroke: #fff;
  stroke-width: 3;
}

.target-dot.is-active {
  stroke: var(--teal);
  stroke-width: 3;
}

.target-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 760;
  paint-order: stroke;
  stroke: #05080d;
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
}

.sky-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sky-path.full {
  stroke-width: 1.6;
  opacity: 0.34;
}

.sky-path.scheduled {
  stroke-width: 4.2;
  opacity: 0.88;
}

.sky-path.scheduled.is-selected {
  stroke-width: 6.2;
  opacity: 1;
}

.moon-path {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 8;
  opacity: 0.72;
}

.moon-dot {
  fill: #e8eef8;
  stroke: #111827;
  stroke-width: 2.4;
}

.moon-label {
  fill: #f3f7ff;
}

.error-banner {
  margin-top: 12px;
  border: 1px solid rgba(255, 139, 114, 0.42);
  border-radius: 8px;
  background: rgba(255, 139, 114, 0.12);
  color: #ffd6cc;
  padding: 10px 12px;
  font-size: 14px;
}

@media (max-width: 1280px) {
  .plan-hero,
  .workspace {
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  }

  .tonight-panel {
    grid-column: 1;
    grid-row: 1;
  }

  .analysis-stack {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .forecast-panel {
    grid-column: 2;
    grid-row: 1;
  }

  .sky-panel {
    grid-column: 2;
    grid-row: 2;
  }

  .detail-panel {
    grid-column: 1;
    grid-row: 2 / span 2;
  }

  .hero-stats {
    min-width: 0;
  }
}

@media (max-width: 920px) {
  .section-jump {
    position: sticky;
    top: 72px;
    z-index: 18;
    display: flex;
    gap: 8px;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(10, 15, 23, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 8px;
    overflow-x: auto;
    scrollbar-color: rgba(143, 231, 221, 0.42) transparent;
  }

  .section-jump a {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(5, 9, 15, 0.62);
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 820;
    text-decoration: none;
    white-space: nowrap;
  }

  .section-jump a:hover,
  .section-jump a:focus-visible {
    border-color: rgba(143, 231, 221, 0.64);
    color: var(--ink);
    background: rgba(18, 33, 45, 0.94);
  }

  .control-surface {
    position: static;
  }

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

  .analysis-stack {
    display: contents;
  }

  .tonight-panel,
  .forecast-panel,
  .sky-panel,
  .detail-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .forecast-panel {
    order: 1;
  }

  .tonight-panel {
    order: 2;
  }

  .detail-panel {
    order: 4;
  }

  .sky-panel {
    order: 5;
  }

  .tool-panel,
  .forecast-panel {
    scroll-margin-top: 138px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 10px;
  }

  .topbar,
  .plan-hero,
  .control-surface,
  .tool-panel {
    border-radius: 8px;
  }

  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .section-jump {
    top: 8px;
  }

  .tool-panel,
  .forecast-panel {
    scroll-margin-top: 70px;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .topbar-links {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .header-support-links {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .button,
  .icon-button,
  .file-button {
    justify-content: center;
    flex: 1 1 auto;
  }

  .plan-hero {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric {
    min-height: 40px;
    padding: 5px 6px;
  }

  .metric strong {
    font-size: 17px;
  }

  .control-surface {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-site-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-site-controls[hidden] {
    display: none;
  }

  .forecast-heading-actions {
    justify-content: flex-start;
  }

  .time-control,
  .current-time,
  .small-field,
  .site-search {
    grid-column: 1 / -1;
  }

  .time-control {
    grid-template-columns: 1fr;
  }

  .coordinate-field {
    align-items: stretch;
    flex-direction: column;
  }

  .coordinate-field input {
    width: 100%;
  }

  .schedule-edit-grid {
    grid-template-columns: 1fr;
  }

  .catalog-controls,
  .detail-grid,
  .schedule-detail-grid,
  .capture-detail-grid,
  .framing-picker-grid {
    grid-template-columns: 1fr;
  }

  .framing-spec-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-results {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .topbar-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-support-links {
    justify-content: center;
    flex: 1 1 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric {
    min-height: 38px;
    padding: 5px;
  }

  .metric strong {
    font-size: 16px;
  }

  .metric span {
    font-size: 9px;
    line-height: 1.15;
  }

  .target-name {
    display: block;
  }

  .target-name span:last-child {
    display: block;
    margin-top: 2px;
  }

  .target-row,
  .catalog-result {
    grid-template-columns: 1fr;
  }

  .target-thumb-wrap,
  .target-thumb,
  .target-thumb-fallback {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .catalog-result-image,
  .catalog-result-fallback {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .catalog-result-actions {
    justify-items: stretch;
  }
}
