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

.test-state-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 2.55rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(201, 155, 88, 0.56);
  border-radius: 0.8rem;
  background: rgba(201, 155, 88, 0.1);
  color: #e3c28a;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.test-state-banner strong {
  font-size: 0.93rem;
  font-weight: 780;
}

.test-state-banner span {
  color: #b9a47f;
  font-size: 0.72rem;
  font-weight: 680;
}

.focus-heading h2 {
  max-width: 48rem;
  font-size: clamp(2.6rem, 3.45vw, 4.25rem);
  line-height: 1;
}

.focus-coverage {
  position: relative;
  z-index: 1;
  min-height: 1.4em;
  margin: 0.45rem 0 0;
  color: var(--ink-faint);
  font-size: clamp(0.82rem, 0.88vw, 0.98rem);
  font-weight: 520;
  line-height: 1.35;
}

.focus-meta {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(12rem, 1.25fr);
  align-items: end;
}

.focus-meta__item--health {
  text-align: center;
}

.focus-meta__item--source {
  max-width: none;
}

.focus-meta__item strong {
  white-space: normal;
}

.node-rail__name {
  line-height: 1.18;
}

@media (max-width: 1500px), (max-height: 820px) {
  .broadcast-shell {
    padding-top: 0.75rem;
  }

  .test-state-banner {
    min-height: 2rem;
    padding: 0.38rem 0.78rem;
  }

  .test-state-banner strong {
    font-size: 0.78rem;
  }

  .test-state-banner span {
    font-size: 0.62rem;
  }

  .focus-heading h2 {
    font-size: clamp(2rem, 3.25vw, 3rem);
  }

  .focus-coverage {
    margin-top: 0.28rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 900px) {
  .test-state-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .focus-meta {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .focus-meta__item--health,
  .focus-meta__item--source {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .test-state-banner {
    transition: none;
  }
}

body[data-canary-state="stale"] .test-state-banner,
body[data-canary-state="unavailable"] .test-state-banner {
  border-color: rgba(207, 127, 125, 0.62);
  background: rgba(207, 127, 125, 0.1);
  color: #e6aaa8;
}

body[data-canary-state="stale"] .test-state-banner span,
body[data-canary-state="unavailable"] .test-state-banner span {
  color: #c99a98;
}

body[data-canary-state="unavailable"] .focus-card,
body[data-canary-state="unavailable"] .world-context,
body[data-canary-state="unavailable"] .node-rail {
  filter: saturate(0.35);
}

.load-error {
  position: fixed;
  z-index: 20;
  right: 2.5rem;
  bottom: 2rem;
  width: min(34rem, calc(100vw - 5rem));
  margin: 0;
  border-color: rgba(207, 127, 125, 0.55);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.38);
}

.load-error p:last-child {
  margin-bottom: 0;
}
