:root {
  color: #edf1f7;
  background: #0b0f16;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgb(62 90 130 / 18%), transparent 32rem),
    #0b0f16;
}

a {
  color: #a8c7ff;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 2.75rem;
  border: 1px solid #3d4757;
  border-radius: 0.65rem;
  padding: 0.65rem 1rem;
  color: #edf1f7;
  background: #171e29;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover:not(:disabled) {
  border-color: #7fa8ed;
  background: #202a39;
}

button:disabled {
  color: #7d8797;
  cursor: not-allowed;
}

:where(a, button, summary):focus-visible {
  outline: 3px solid #9fc2ff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  border-radius: 0.4rem;
  padding: 0.55rem 0.8rem;
  color: #08101d;
  background: #c9dcff;
}

.skip-link:focus {
  transform: translateY(0);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid #232b38;
  padding: 1.25rem clamp(1rem, 4vw, 4rem);
  background: rgb(11 15 22 / 88%);
}

header h1,
h2,
h3,
p {
  margin-block-start: 0;
}

header h1 {
  margin-block-end: 0;
  font-size: 1.25rem;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: #edf1f7;
  text-decoration: none;
}

nav span {
  color: #727d8e;
}

main {
  width: min(74rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

.eyebrow {
  margin-block-end: 0.35rem;
  color: #8da6ca;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary,
.section-heading,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.summary h2,
.section-heading h2,
.actions h2 {
  margin-block-end: 0.55rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.summary p,
.actions p,
.section-heading p {
  margin-block-end: 0;
  color: #a7b0be;
}

.announcement {
  min-height: 1.5rem;
  margin: 1.25rem 0;
  color: #b8d0f6;
}

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

.card,
.occupancy,
.actions,
.warnings {
  border: 1px solid #293241;
  border-radius: 1rem;
  background: rgb(19 25 35 / 92%);
  box-shadow: 0 1.3rem 3rem rgb(0 0 0 / 18%);
}

.card {
  padding: 1.4rem;
}

.card.production {
  border-color: #30503f;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card h3,
.slot h3 {
  margin-block-end: 0;
}

.badge,
.routing {
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  color: #bfc9d7;
  background: #242d3a;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.good,
.routing {
  color: #9ce3ba;
  background: #173627;
}

.badge.bad {
  color: #ffb5ad;
  background: #44221f;
}

dl {
  margin: 1.75rem 0;
}

dl div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid #2b3442;
  padding: 0.8rem 0;
}

dt {
  color: #8f99a8;
}

dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.environment-link {
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.occupancy {
  margin-top: 1rem;
  padding: 1.4rem;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.slot {
  border: 1px solid #303a49;
  border-radius: 0.8rem;
  padding: 1.25rem;
  background: #0e141d;
}

.slot > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.slot-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.blue-slot .slot-dot {
  background: #659eff;
  box-shadow: 0 0 1rem rgb(101 158 255 / 65%);
}

.green-slot .slot-dot {
  background: #58d68d;
  box-shadow: 0 0 1rem rgb(88 214 141 / 55%);
}

.slot strong {
  display: block;
  margin-top: 1.2rem;
  font-size: 2.6rem;
}

.slot > p {
  margin-block-end: 0.7rem;
  color: #919cab;
}

.slot .release-id {
  overflow-wrap: anywhere;
  color: #c2cad5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.routing:empty {
  display: none;
}

.actions {
  margin-top: 1rem;
  padding: 1.4rem;
}

.action-buttons,
.dialog-actions {
  display: flex;
  gap: 0.7rem;
}

button.primary {
  border-color: #7fa8ed;
  color: #08111f;
  background: #a8c7ff;
}

button.primary:hover:not(:disabled) {
  color: #050a12;
  background: #c4d9ff;
}

.warnings {
  margin-top: 1rem;
  padding: 1rem 1.4rem;
  color: #ffd29f;
}

.warnings summary {
  cursor: pointer;
  font-weight: 700;
}

dialog {
  width: min(30rem, calc(100% - 2rem));
  border: 1px solid #3d4859;
  border-radius: 1rem;
  padding: 1.4rem;
  color: #edf1f7;
  background: #151c27;
}

dialog::backdrop {
  background: rgb(0 0 0 / 72%);
}

dialog form > p:not(.eyebrow) {
  color: #b1bac8;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 1.5rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  header,
  .summary,
  .section-heading,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  header {
    gap: 1rem;
  }

  .cards,
  .slot-grid {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    flex-direction: column-reverse;
  }

  .action-buttons button {
    width: 100%;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
