.skyscope-page .skyscope-hero .page-hero-inner {
  padding-top: clamp(64px, 8vw, 108px);
  padding-bottom: clamp(64px, 8vw, 108px);
}

.skyscope-page .skyscope-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.skyscope-page .skyscope-content {
  display: grid;
  gap: 56px;
}

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

.skyscope-page .skyscope-status h2,
.skyscope-page .section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.skyscope-page .skyscope-section-label {
  margin: 0 0 8px;
  color: #ffc274;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skyscope-page .receiver-summary {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.skyscope-page .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.9rem;
  font-weight: 800;
}

.skyscope-page .status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8f8794;
  box-shadow: 0 0 0 4px rgba(143, 135, 148, 0.12);
}

.skyscope-page .status-badge[data-state="online"] .status-dot {
  background: #6fd8a0;
  box-shadow: 0 0 0 4px rgba(111, 216, 160, 0.14), 0 0 18px rgba(111, 216, 160, 0.5);
}

.skyscope-page .status-badge[data-state="stale"] .status-dot {
  background: #ffc274;
  box-shadow: 0 0 0 4px rgba(255, 194, 116, 0.14), 0 0 18px rgba(255, 194, 116, 0.4);
}

.skyscope-page .status-badge[data-state="offline"] .status-dot {
  background: #ff6b72;
  box-shadow: 0 0 0 4px rgba(255, 107, 114, 0.14);
}

.skyscope-page .status-time,
.skyscope-page .connection-notice {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.skyscope-page .connection-notice {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px solid rgba(255, 194, 116, 0.18);
  border-radius: 14px;
  background: rgba(255, 194, 116, 0.07);
}

.skyscope-page .connection-notice[hidden] {
  display: none;
}

.skyscope-page .section-heading,
.skyscope-page .aircraft-group-heading,
.skyscope-page .aircraft-title-row,
.skyscope-page .pass-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.skyscope-page .section-heading {
  margin-bottom: 20px;
}

.skyscope-page .section-date,
.skyscope-page .section-count,
.skyscope-page .aircraft-group-heading span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.skyscope-page .passes-heading-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.skyscope-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skyscope-page .stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.skyscope-page .stat-card-wide {
  grid-column: span 2;
}

.skyscope-page .stat-value {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.055em;
}

.skyscope-page .stat-value-small {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.skyscope-page .stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.skyscope-page .aircraft-group + .aircraft-group {
  margin-top: 18px;
}

.skyscope-page .aircraft-group-heading {
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.skyscope-page .aircraft-group-heading h3,
.skyscope-page .aircraft-title-row h4 {
  margin: 0;
}

.skyscope-page .aircraft-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skyscope-page .aircraft-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.skyscope-page .aircraft-title-row {
  align-items: center;
  margin-bottom: 18px;
}

.skyscope-page .aircraft-title-row h4 {
  overflow: hidden;
  font-size: 1.13rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skyscope-page .aircraft-identity {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin: -6px 0 18px;
}

.skyscope-page .aircraft-type,
.skyscope-page .aircraft-owner {
  margin: 0;
}

.skyscope-page .aircraft-type {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
}

.skyscope-page .aircraft-owner {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.skyscope-page .aircraft-flag {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(255, 194, 116, 0.24);
  border-radius: 8px;
  background: rgba(255, 194, 116, 0.07);
  color: #ffc274;
  font-size: 0.72rem;
  font-weight: 800;
}

.skyscope-page .icao-code {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #ffc274;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.skyscope-page .aircraft-metrics,
.skyscope-page .pass-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.skyscope-page .aircraft-metric {
  min-width: 0;
}

.skyscope-page .aircraft-metric dt {
  color: #8f8794;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skyscope-page .aircraft-metric dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 750;
}

.skyscope-page .passes-list {
  display: grid;
  gap: 8px;
}

.skyscope-page .pass-row {
  overflow: hidden;
  padding: 0;
}

.skyscope-page .pass-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.skyscope-page .pass-summary::-webkit-details-marker {
  display: none;
}

.skyscope-page .pass-summary::after {
  content: "+";
  width: 24px;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.skyscope-page .pass-row[open] .pass-summary::after {
  content: "−";
}

.skyscope-page .pass-summary:focus-visible {
  outline: 2px solid #ffc274;
  outline-offset: -3px;
}

.skyscope-page .pass-summary-main {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.skyscope-page .pass-summary-main > span:not(:first-child)::before {
  content: "·";
  margin: 0 8px;
  color: #8f8794;
}

.skyscope-page .pass-operator {
  color: var(--text);
  font-weight: 850;
}

.skyscope-page .pass-callsign,
.skyscope-page .pass-time-range {
  font-weight: 750;
}

.skyscope-page .pass-route,
.skyscope-page .pass-type,
.skyscope-page .pass-time-range {
  color: var(--muted);
}

.skyscope-page .pass-distance {
  color: #ffc274;
  font-size: 0.95rem;
  font-weight: 850;
  white-space: nowrap;
}

.skyscope-page .pass-technical {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.skyscope-page .empty-state {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.skyscope-page .passes-list > .empty-state {
  padding: 28px;
}

@media (max-width: 760px) {
  .skyscope-page .skyscope-status,
  .skyscope-page .stats-grid,
  .skyscope-page .aircraft-list {
    grid-template-columns: 1fr;
  }

  .skyscope-page .receiver-summary {
    justify-items: start;
  }

  .skyscope-page .stat-card-wide {
    grid-column: auto;
  }

  .skyscope-page .stat-card {
    min-height: 126px;
  }

  .skyscope-page .section-heading,
  .skyscope-page .pass-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .skyscope-page .passes-heading-meta {
    justify-items: start;
  }

  .skyscope-page .pass-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 14px;
  }

  .skyscope-page .pass-summary-main {
    grid-column: 1 / -1;
  }

  .skyscope-page .pass-distance {
    grid-column: 1;
    grid-row: 2;
  }

  .skyscope-page .pass-summary::after {
    grid-column: 2;
    grid-row: 2;
  }

  .skyscope-page .pass-technical {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px 14px;
  }
}
