.broadcast-shell {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  gap: 0.65rem;
}

.overlay-section {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1rem;
  min-height: 6.5rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgba(9, 18, 30, 0.74);
}

.overlay-section__header {
  min-width: 0;
}

.overlay-section__header h2 {
  margin: 0.2rem 0;
  font-size: 1rem;
}

.overlay-section__header > p:last-child {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.overlay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  min-width: 0;
}

.overlay-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.6rem;
  align-content: center;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  background: rgba(12, 25, 39, 0.84);
}

.overlay-card h3,
.overlay-card p {
  margin: 0;
}

.overlay-card h3 {
  grid-column: 1;
  font-size: 0.92rem;
}

.overlay-card__identity {
  grid-column: 1;
  color: var(--ink-muted);
  font-size: 0.68rem;
}

.overlay-card__status {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.overlay-card__detail,
.overlay-card__asof {
  grid-column: 1 / 3;
  color: var(--ink-muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.overlay-card[data-status="NORMAL"] .overlay-card__status {
  color: #8fc9b5;
}

.overlay-card[data-status="WATCH"] .overlay-card__status,
.overlay-card[data-status="STALE"] .overlay-card__status {
  color: #d8b378;
}

.overlay-card[data-status="ALERT"] .overlay-card__status,
.overlay-card[data-status="SOURCE_ISSUE"] .overlay-card__status {
  color: #d99090;
}

@media (max-width: 1500px), (max-height: 820px) {
  .overlay-section {
    grid-template-columns: 8.6rem minmax(0, 1fr);
    min-height: 5.7rem;
    padding: 0.5rem 0.72rem;
  }
  .overlay-section__header > p:last-child,
  .overlay-card__identity {
    display: none;
  }
  .overlay-card {
    gap: 0.08rem 0.45rem;
    padding: 0.36rem 0.55rem;
  }
}

@media (max-height: 820px) and (min-width: 701px) {
  .broadcast-shell {
    gap: 0.42rem;
    padding: 0.5rem 1.25rem;
  }
  .test-state-banner {
    min-height: 1.65rem;
  }
  .broadcast-header h1 {
    font-size: 2.15rem;
  }
  .broadcast-header .subtitle {
    margin-top: 0.2rem;
    font-size: 0.82rem;
  }
  .display-pulse,
  .snapshot-stamp {
    min-height: 3.35rem;
    padding: 0.4rem 0.65rem;
  }
  .focus-card {
    padding: 0.8rem 1rem;
  }
  .focus-heading {
    padding-top: 0.35rem;
  }
  .focus-heading h2 {
    font-size: 2.25rem;
  }
  .focus-code {
    font-size: 2.5rem;
  }
  .focus-summary {
    margin-top: 0.35rem;
    font-size: 0.83rem;
  }
  .focus-coverage {
    margin-top: 0.1rem;
    font-size: 0.75rem;
  }
  .focus-metrics {
    margin-top: 0.55rem;
  }
  .focus-metric {
    padding-block: 0.4rem;
  }
  .focus-metric__value {
    font-size: 1.8rem;
  }
  .focus-metric__label {
    margin-top: 0.2rem;
    font-size: 0.66rem;
  }
  .focus-meta {
    padding-top: 0.35rem;
  }
  .focus-meta__item strong {
    font-size: 0.7rem;
  }
  .node-rail {
    height: 6.9rem;
  }
  .overlay-section {
    min-height: 5.1rem;
  }
}

@media (max-width: 700px) {
  .broadcast-shell {
    height: auto;
    min-height: 100svh;
    grid-template-rows: auto auto auto auto auto auto;
  }
  .overlay-section {
    grid-template-columns: 1fr;
  }
  .overlay-grid {
    grid-template-columns: 1fr;
  }
}
