/* Astro Planner hub dashboard — Sky Intelligence + Tonight at a Glance sidebar */

.hub-dashboard-grid {
  align-items: start;
}

.hub-dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.hub-dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: sticky;
  top: 0.85rem;
  align-self: start;
  max-height: calc(100vh - 1.7rem);
  overflow: auto;
  scrollbar-width: thin;
}

.hub-dashboard-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hub-sky-intelligence-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.hub-sky-intelligence-heading h2 {
  margin-bottom: 0;
}

.hub-sky-intelligence-subtitle {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(245, 241, 232, 0.82);
}

.sky-intelligence-canvas-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(220px, 34vw, 360px);
  padding: 1.25rem;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 25%, rgba(212, 175, 55, 0.08), transparent 42%),
    radial-gradient(circle at 78% 68%, rgba(120, 160, 255, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.02);
}

.sky-intelligence-canvas-placeholder:not(:empty) {
  min-height: 0;
  padding: 0;
  border-style: solid;
  border-color: rgba(212, 175, 55, 0.22);
}

.sky-intelligence-preview {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sky-intelligence-preview--empty {
  justify-content: center;
}

.sky-intelligence-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 32vw, 320px);
  padding: 1.25rem;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 25%, rgba(212, 175, 55, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.02);
  text-align: center;
}

.sky-intelligence-placeholder p,
.sky-intelligence-empty-text {
  margin: 0;
  max-width: 36rem;
  color: rgba(245, 241, 232, 0.82);
  font-size: 0.88rem;
  line-height: 1.5;
}

.sky-intelligence-svg-wrap {
  width: 100%;
}

.sky-intelligence-svg,
.sky-planner-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 14px;
}

.sky-planner-svg {
  background: #030508;
}

.sky-planner-star {
  fill: rgba(245, 241, 232, 0.85);
}

.sky-planner-alt-arc {
  fill: none;
  stroke: rgba(212, 175, 55, 0.12);
  stroke-width: 0.75;
}

.sky-planner-alt-label {
  fill: rgba(212, 175, 55, 0.42);
  font-size: 8px;
  font-weight: 600;
}

.sky-planner-spoke {
  stroke: rgba(245, 241, 232, 0.05);
  stroke-width: 0.6;
}

.sky-planner-horizon {
  fill: none;
  stroke: rgba(212, 175, 55, 0.55);
  stroke-width: 1.6;
}

.sky-planner-custom-horizon {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.sky-planner-custom-horizon--custom {
  stroke: rgba(212, 175, 55, 0.92);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.28));
}

.sky-planner-custom-horizon--flat {
  stroke: rgba(212, 175, 55, 0.38);
  stroke-width: 1.3;
  stroke-dasharray: 4 5;
}

.sky-planner-custom-horizon-label {
  fill: rgba(245, 241, 232, 0.58);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sky-planner-milky-way {
  fill: none;
  stroke: rgba(140, 120, 220, 0.14);
  stroke-width: 14;
  stroke-linecap: round;
}

.sky-planner-moon-halo {
  fill: rgba(247, 235, 210, 0.1);
}

.sky-planner-moon-disc {
  fill: rgba(245, 241, 232, 0.92);
}

.sky-planner-moon-shadow {
  fill: rgba(12, 16, 26, 0.78);
}

.sky-planner-object-label {
  fill: rgba(245, 241, 232, 0.88);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sky-planner-target-glow {
  fill: rgba(212, 175, 55, 0.16);
}

.sky-planner-target {
  fill: #f7df9e;
  stroke: rgba(255, 241, 184, 0.85);
  stroke-width: 1.2;
}

.sky-planner-target.is-below-horizon {
  fill: rgba(212, 175, 55, 0.35);
  stroke: rgba(212, 175, 55, 0.45);
}

.sky-planner-target-track {
  stroke: rgba(247, 223, 158, 0.42);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.sky-planner-cardinal {
  fill: rgba(212, 175, 55, 0.78);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-anchor: middle;
}

.sky-planner-time-line {
  stroke: rgba(212, 175, 55, 0.35);
  stroke-width: 1;
}

.sky-planner-time-marker {
  fill: #f7df9e;
  stroke: rgba(255, 241, 184, 0.9);
  stroke-width: 1;
}

.sky-planner-time-marker-beam {
  stroke: rgba(247, 223, 158, 0.35);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.sky-planner-time-bound,
.sky-planner-time-selected {
  fill: rgba(245, 241, 232, 0.62);
  font-size: 8px;
  font-weight: 600;
}

.sky-planner-time-selected {
  fill: rgba(247, 223, 158, 0.92);
  font-size: 9px;
}

.sky-intelligence-status,
.sky-intelligence-footer {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(245, 241, 232, 0.78);
}

.sky-intelligence-footer {
  font-size: 0.76rem;
  color: rgba(212, 175, 55, 0.72);
}

.sky-intelligence-status-line,
.sky-intelligence-footer-line {
  display: block;
}

.sky-intelligence-target-callout {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.sky-intelligence-target-callout-name {
  color: #f7df9e;
  font-size: 0.88rem;
  font-weight: 600;
}

.sky-intelligence-target-callout-meta {
  color: rgba(245, 241, 232, 0.68);
  font-size: 0.76rem;
  line-height: 1.4;
}

.sky-intelligence-time-controls {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.sky-intelligence-time-hint,
.sky-intelligence-time-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(245, 241, 232, 0.82);
}

.sky-intelligence-time-note {
  font-size: 0.72rem;
  color: rgba(245, 241, 232, 0.55);
}

.sky-intelligence-time-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: rgba(245, 241, 232, 0.62);
}

.sky-intelligence-time-bound:first-child {
  text-align: left;
}

.sky-intelligence-time-bound:last-child {
  text-align: right;
}

.sky-intelligence-time-selected {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(212, 175, 55, 0.92);
  text-align: center;
  white-space: nowrap;
}

.sky-intelligence-time-slider {
  width: 100%;
  margin: 0;
  accent-color: #d4af37;
}

.sky-intelligence-time-jumps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.sky-intelligence-time-jumps-label {
  color: rgba(212, 175, 55, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sky-intelligence-time-jump-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sky-intelligence-time-jump {
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.sky-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.55rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.sky-timeline--empty {
  color: rgba(245, 241, 232, 0.62);
}

.sky-timeline-empty {
  margin: 0;
  font-size: 0.82rem;
}

.sky-timeline-heading {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.sky-timeline-heading strong {
  color: #f5f1e8;
  font-size: 0.86rem;
}

.sky-timeline-heading span {
  color: rgba(245, 241, 232, 0.62);
  font-size: 0.72rem;
  line-height: 1.35;
}

.sky-timeline-risk {
  width: fit-content;
  padding: 0.26rem 0.55rem;
  border: 1px solid rgba(214, 226, 244, 0.16);
  border-radius: 999px;
  background: rgba(214, 226, 244, 0.06);
  color: rgba(245, 241, 232, 0.78);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sky-timeline-risk--low {
  border-color: rgba(126, 231, 199, 0.28);
  background: rgba(126, 231, 199, 0.08);
  color: #d8fff2;
}

.sky-timeline-risk--moderate {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.08);
  color: #f7df9e;
}

.sky-timeline-risk--high {
  border-color: rgba(255, 193, 120, 0.32);
  background: rgba(255, 193, 120, 0.09);
  color: #ffe8c8;
}

.sky-timeline-selected-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0;
}

.sky-timeline-summary-row {
  min-width: 0;
  padding: 0.45rem 0.52rem;
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.sky-timeline-summary-row dt {
  margin: 0 0 0.18rem;
  color: rgba(245, 241, 232, 0.48);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sky-timeline-summary-row dd {
  margin: 0;
  color: rgba(245, 241, 232, 0.9);
  font-size: 0.74rem;
  line-height: 1.35;
}

.sky-timeline-metrics {
  display: grid;
  gap: 0.28rem;
  margin: 0;
}

.sky-timeline-metric {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.4rem;
  align-items: baseline;
}

.sky-timeline-metric dt {
  margin: 0;
  color: rgba(245, 241, 232, 0.52);
  font-size: 0.68rem;
  font-weight: 600;
}

.sky-timeline-metric dd {
  margin: 0;
  color: rgba(245, 241, 232, 0.9);
  font-size: 0.74rem;
  line-height: 1.35;
}

.sky-timeline-alerts {
  display: grid;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sky-timeline-alert {
  padding: 0.38rem 0.52rem;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.sky-timeline-alert--good {
  border: 1px solid rgba(126, 231, 199, 0.28);
  background: rgba(126, 231, 199, 0.08);
  color: #d8fff2;
}

.sky-timeline-alert--caution {
  border: 1px solid rgba(255, 193, 120, 0.28);
  background: rgba(255, 193, 120, 0.08);
  color: #ffe8c8;
}

.sky-timeline-alert--tip {
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.08);
  color: #f7df9e;
}

.sky-timeline-alert--info {
  border: 1px solid rgba(214, 226, 244, 0.18);
  background: rgba(214, 226, 244, 0.06);
  color: rgba(245, 241, 232, 0.82);
}

.sky-timeline-alerts-empty {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(245, 241, 232, 0.55);
}

.sky-timeline-chart {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sky-timeline-track {
  position: relative;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 193, 120, 0.18), rgba(70, 95, 140, 0.28) 28%, rgba(12, 18, 30, 0.92) 42%, rgba(12, 18, 30, 0.92) 72%, rgba(255, 193, 120, 0.18));
  overflow: visible;
}

.sky-timeline-dark-band {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.72);
  pointer-events: none;
}

.sky-timeline-imaging-band {
  position: absolute;
  top: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.42);
  pointer-events: none;
}

.sky-timeline-marker {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: rgba(245, 241, 232, 0.82);
  box-shadow: 0 0 0 2px rgba(4, 7, 12, 0.8);
  pointer-events: none;
}

.sky-timeline-marker--sunset,
.sky-timeline-marker--sunrise,
.sky-timeline-marker--darkness {
  background: #ffc178;
}

.sky-timeline-marker--moon {
  background: #e8edf5;
}

.sky-timeline-marker--window {
  width: 6px;
  height: 14px;
  margin: -7px 0 0 -3px;
  border-radius: 3px;
  background: rgba(212, 175, 55, 0.88);
}

.sky-timeline-marker.is-selected,
.sky-timeline-marker--selected {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: #fff1b8;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.28);
  z-index: 2;
}

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

.sky-timeline-axis {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: rgba(245, 241, 232, 0.58);
}

.sky-timeline-axis-selected {
  color: rgba(212, 175, 55, 0.92);
  font-weight: 600;
  text-align: center;
}

.sky-timeline-axis span:first-child {
  text-align: left;
}

.sky-timeline-axis span:last-child {
  text-align: right;
}

.sky-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.64rem;
  color: rgba(245, 241, 232, 0.55);
}

.sky-timeline-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.28rem;
  border-radius: 999px;
  vertical-align: -1px;
}

.sky-timeline-swatch--dark {
  background: rgba(8, 12, 22, 0.92);
  border: 1px solid rgba(214, 226, 244, 0.18);
}

.sky-timeline-swatch--window {
  background: rgba(212, 175, 55, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.sky-timeline-swatch--selected {
  background: #fff1b8;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.28);
}

.sky-timeline-note {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(245, 241, 232, 0.5);
}

.sky-intelligence-site-controls {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.sky-intelligence-site-summary {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(245, 241, 232, 0.82);
}

.sky-intelligence-site-summary strong {
  color: #f7df9e;
  font-weight: 600;
}

.sky-intelligence-site-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
}

.sky-intelligence-site-picker-label {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.78);
}

.sky-intelligence-site-select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  background: rgba(6, 6, 11, 0.72);
  color: rgba(245, 241, 232, 0.92);
  font: inherit;
  font-size: 0.84rem;
}

.sky-intelligence-site-select:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.55);
  outline-offset: 2px;
}

.sky-intelligence-site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sky-intelligence-map-link {
  align-self: flex-start;
}

.sky-intelligence-empty-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: clamp(160px, 24vw, 240px);
  padding: 1.1rem 1rem;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 25%, rgba(212, 175, 55, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.02);
}

.sky-intelligence-empty-title {
  margin: 0;
  font-size: 1rem;
  color: #f7df9e;
}

.custom-horizon-panel {
  display: grid;
  gap: 0.9rem;
}

.custom-horizon-card {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 175, 55, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.025);
}

.custom-horizon-card.is-editing {
  border-color: rgba(212, 175, 55, 0.42);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08), 0 18px 46px rgba(0, 0, 0, 0.22);
}

.custom-horizon-copy {
  display: grid;
  gap: 0.28rem;
}

.custom-horizon-kicker {
  margin: 0;
  color: rgba(212, 175, 55, 0.74);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-horizon-copy h3 {
  margin: 0;
  color: #f5f1e8;
  font-size: 1.1rem;
}

.custom-horizon-copy p {
  margin: 0;
  color: rgba(245, 241, 232, 0.68);
  font-size: 0.84rem;
  line-height: 1.45;
}

.custom-horizon-copy .custom-horizon-status {
  color: #f7df9e;
  font-size: 0.78rem;
}

.custom-horizon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.custom-horizon-toggle {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 38px;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 999px;
  color: rgba(245, 241, 232, 0.76);
  font-size: 0.76rem;
}

.custom-horizon-toggle input {
  accent-color: #d4af37;
}

.custom-horizon-editor {
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 16px;
  background: rgba(4, 7, 12, 0.38);
}

.horizon-editor-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  touch-action: none;
}

.horizon-editor-svg.is-editable {
  cursor: crosshair;
}

.horizon-editor-bg {
  fill: rgba(6, 9, 16, 0.92);
}

.horizon-editor-grid-line {
  stroke: rgba(245, 241, 232, 0.08);
  stroke-width: 1;
}

.horizon-editor-grid-line--az {
  stroke: rgba(212, 175, 55, 0.12);
}

.horizon-editor-axis-label {
  fill: rgba(245, 241, 232, 0.48);
  font-size: 11px;
  font-weight: 700;
}

.horizon-editor-fill {
  fill: rgba(212, 175, 55, 0.12);
}

.horizon-editor-line {
  fill: none;
  stroke: rgba(212, 175, 55, 0.94);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.24));
}

.horizon-editor-point {
  fill: #fff1b8;
  stroke: rgba(4, 7, 12, 0.88);
  stroke-width: 1.5;
}

.custom-horizon-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  color: rgba(245, 241, 232, 0.54);
  font-size: 0.72rem;
  line-height: 1.35;
}

.planner-dashboard-forecast-hero,
.imaging-forecast-hero {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(212, 175, 55, 0.1), rgba(4, 7, 12, 0.55));
}

.imaging-forecast-hero--partial,
.imaging-forecast-hero--loading {
  border-color: rgba(212, 175, 55, 0.22);
}

.imaging-forecast-kicker {
  margin: 0;
  color: rgba(212, 175, 55, 0.82);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.imaging-forecast-score {
  margin: 0;
  color: #f7df9e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.1;
}

.imaging-forecast-rating,
.imaging-forecast-lead {
  margin: 0;
  color: rgba(245, 241, 232, 0.72);
  font-size: 0.78rem;
  line-height: 1.45;
}

.imaging-forecast-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.imaging-forecast-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  background: rgba(4, 7, 12, 0.55);
  color: rgba(245, 241, 232, 0.88);
  font-size: 0.68rem;
  line-height: 1.25;
}

.imaging-forecast-pill strong {
  color: rgba(212, 175, 55, 0.78);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.imaging-forecast-pill--primary {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
}

.planner-dashboard-card {
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.planner-dashboard-card-highlight {
  border-color: rgba(212, 175, 55, 0.42);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0.02));
}

.planner-dashboard-card-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.planner-dashboard-card-heading h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.planner-dashboard-card-lead {
  margin: 0 0 0.55rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(245, 241, 232, 0.78);
}

.planner-dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
}

.planner-dashboard-rating-grid {
  margin-bottom: 0.55rem;
}

.planner-dashboard-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.planner-dashboard-metric strong {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.82);
}

.planner-dashboard-metric span {
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(245, 241, 232, 0.92);
  overflow-wrap: anywhere;
}

.planner-dashboard-rig-metric {
  grid-column: 1 / -1;
}

.planner-dashboard-rig-display {
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(245, 241, 232, 0.92);
}

.planner-dashboard-rig-name {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f7df9e;
}

.planner-dashboard-rig-items {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.planner-dashboard-rig-items li {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(245, 241, 232, 0.88);
}

.planner-dashboard-rig-items li::before {
  content: "✓";
  flex: 0 0 auto;
  color: rgba(212, 175, 55, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
}

.hub-sky-intelligence-panel .button,
.hub-dashboard-grid .glance-site-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease;
}

.hub-sky-intelligence-panel .button.primary,
.hub-dashboard-grid .glance-site-actions .button.primary {
  background: #f7df9e;
  color: #06060b;
  border: none;
}

.hub-sky-intelligence-panel .button.primary:hover,
.hub-sky-intelligence-panel .button.primary:focus-visible,
.hub-dashboard-grid .glance-site-actions .button.primary:hover,
.hub-dashboard-grid .glance-site-actions .button.primary:focus-visible {
  background: #fff1c2;
  color: #06060b;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(247, 223, 158, 0.25);
}

.hub-sky-intelligence-panel .button.secondary,
.hub-dashboard-grid .glance-site-actions .button.secondary {
  border: 1px solid rgba(247, 223, 158, 0.55);
  color: #f7df9e;
  background: transparent;
}

.hub-sky-intelligence-panel .button.secondary:hover,
.hub-sky-intelligence-panel .button.secondary:focus-visible,
.hub-dashboard-grid .glance-site-actions .button.secondary:hover,
.hub-dashboard-grid .glance-site-actions .button.secondary:focus-visible {
  border-color: rgba(247, 223, 158, 0.85);
  color: #fff7dc;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(247, 223, 158, 0.25);
}

.hub-sky-intelligence-panel .button:active:not(:disabled),
.hub-dashboard-grid .glance-site-actions .button:active:not(:disabled) {
  transform: translateY(0);
}

.hub-sky-intelligence-panel .button:disabled,
.hub-dashboard-grid .glance-site-actions .button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

@media (max-width: 1024px) {
  .hub-overview-grid.hub-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hub-dashboard-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 768px) {
  .planner-dashboard-metric-grid {
    grid-template-columns: 1fr;
  }

  .sky-intelligence-canvas-placeholder,
  .sky-intelligence-placeholder {
    min-height: 200px;
  }

  .sky-intelligence-time-labels {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sky-intelligence-time-bound:first-child,
  .sky-intelligence-time-bound:last-child,
  .sky-intelligence-time-selected {
    text-align: center;
  }

  .sky-timeline-selected-summary {
    grid-template-columns: 1fr;
  }

  .sky-timeline-metric {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }

  .sky-timeline-axis {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sky-timeline-axis span:first-child,
  .sky-timeline-axis span:last-child {
    text-align: center;
  }

  .sky-timeline-track {
    height: 32px;
  }

  .sky-intelligence-site-actions,
  .hub-dashboard-grid .glance-site-actions .button {
    width: 100%;
  }

  .sky-intelligence-site-actions {
    flex-direction: column;
  }

  .custom-horizon-actions,
  .custom-horizon-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .custom-horizon-actions .button,
  .custom-horizon-toggle {
    width: 100%;
    justify-content: center;
  }

  .horizon-editor-svg {
    min-height: 150px;
  }
}
/* Phase 7A — simplified Astro Planner experience */
.tools-hub-container {
  max-width: 1280px;
}

.hub-overview-grid.hub-dashboard-grid {
  grid-template-columns: minmax(0, 1.95fr) minmax(280px, 0.75fr);
  gap: 1.1rem;
}

.hub-featured-panel {
  padding: 0.95rem;
}

.hub-featured-panel #featured-target .featured-target-card {
  grid-template-columns: minmax(170px, 0.68fr) minmax(0, 1.45fr) !important;
  align-items: stretch;
}

.featured-target-note {
  margin: -0.25rem 0 0.7rem;
  color: rgba(245, 241, 232, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
}

.more-great-targets {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}

.more-great-targets-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.more-great-targets-heading h3 {
  margin: 0;
  color: #f5f1e8;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.more-great-targets-heading p {
  margin: 0;
  color: rgba(245, 241, 232, 0.62);
  font-size: 0.76rem;
}

.tonight-recommendation-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.tonight-recommendation-chip {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(245, 241, 232, 0.84);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tonight-recommendation-chip:hover,
.tonight-recommendation-chip:focus-visible,
.tonight-recommendation-chip.is-active {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.58);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.12);
  outline: none;
}

.tonight-rec-rating {
  color: #d4af37;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.tonight-rec-name {
  overflow: hidden;
  color: #f5f1e8;
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tonight-rec-type,
.tonight-recommendation-empty {
  color: rgba(245, 241, 232, 0.62);
  font-size: 0.7rem;
  line-height: 1.3;
}

.tonight-recommendation-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px dashed rgba(212, 175, 55, 0.24);
  border-radius: 12px;
}

.hub-sky-intelligence-panel {
  gap: 0.55rem;
  padding: 0.85rem;
}

.sky-intelligence-svg,
.sky-planner-svg {
  min-height: 470px;
  object-fit: cover;
}

.sky-intelligence-preview {
  gap: 0.55rem;
}

.sky-intelligence-time-controls,
.sky-intelligence-status,
.sky-intelligence-footer,
.sky-timeline,
.sky-advanced-panel {
  font-size: 0.88rem;
}

.planner-collapsible-heading,
.sky-advanced-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.planner-collapse-toggle,
.sky-advanced-toggle {
  flex: 0 0 auto;
  padding: 0.48rem 0.7rem;
  font-size: 0.68rem;
}

.planner-collapsible-body[hidden],
.sky-advanced-body[hidden] {
  display: none;
}

.planner-collapsible.is-collapsed {
  padding-bottom: 0.85rem;
}

.planner-collapsible.is-collapsed .hub-section-heading h2 {
  margin-bottom: 0;
}

.sky-advanced-panel {
  padding: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.sky-advanced-heading strong {
  display: block;
  color: #f5f1e8;
  font-size: 0.98rem;
}

.sky-advanced-heading span {
  display: block;
  margin-top: 0.12rem;
  color: rgba(245, 241, 232, 0.64);
  font-size: 0.74rem;
  line-height: 1.35;
}

.sky-advanced-body {
  margin-top: 0.7rem;
}

.sky-advanced-panel.is-collapsed {
  padding-bottom: 0.75rem;
}

.hub-dashboard-sidebar {
  gap: 0.7rem;
}

.hub-dashboard-cards {
  gap: 0.65rem;
}

.planner-dashboard-card {
  padding: 0.75rem;
}

@media (max-width: 980px) {
  .hub-overview-grid.hub-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hub-dashboard-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .sky-intelligence-svg,
  .sky-planner-svg {
    min-height: 380px;
  }
}

@media (max-width: 720px) {
  .hub-featured-panel #featured-target .featured-target-card {
    grid-template-columns: 1fr !important;
  }

  .more-great-targets-heading,
  .planner-collapsible-heading,
  .sky-advanced-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tonight-recommendation-strip {
    grid-template-columns: 1fr;
  }

  .tonight-rec-name {
    white-space: normal;
  }

  .sky-intelligence-svg,
  .sky-planner-svg {
    min-height: 300px;
  }

  .planner-collapse-toggle,
  .sky-advanced-toggle {
    width: 100%;
    justify-content: center;
  }
}
