.next-class-command {
  --command-accent: #2f78c4;
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(260px, 1.6fr) auto;
  gap: 28px;
  align-items: center;
  margin: 0 0 22px;
  padding: 22px 24px;
  border-left: 8px solid var(--command-accent);
  background: #102f38;
  color: #fff;
  box-shadow: 0 18px 48px rgba(16, 34, 54, 0.16);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tabs button.active,
.tabs button.active:hover {
  color: #fff;
}

.operations-health {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(340px, 1.2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 24px;
  border-left: 7px solid var(--gold);
  background: #102f38;
  color: #fff;
  box-shadow: 0 18px 48px rgba(16, 34, 54, 0.14);
}

.health-intro h2 {
  margin: 3px 0 5px;
  font-size: 25px;
}

.health-intro p {
  margin: 0;
  color: #c5d7d7;
}

.health-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #48666c;
}

.health-metrics > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 14px;
  background: #173f47;
}

.health-metrics strong {
  color: var(--gold);
  font-size: 24px;
}

.health-metrics span {
  color: #c5d7d7;
  font-size: 11px;
  font-weight: 700;
}

.health-followup {
  display: grid;
  gap: 9px;
}

.health-followup > strong {
  color: #fff;
}

.health-followup > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 94px;
  overflow: auto;
}

.health-followup button {
  padding: 7px 9px;
  border: 1px solid #789398;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}

.health-followup button:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.zoom-alert button {
  margin-top: 12px;
  padding: 8px 11px;
  border: 0;
  background: #2367d1;
  color: #fff;
  font-weight: 800;
}

.next-class-command.is-prepare {
  --command-accent: #4aa7dc;
  background: #153c54;
}

.next-class-command.is-soon {
  --command-accent: #f5ba3d;
  background: #4a3b16;
}

.next-class-command.is-urgent {
  --command-accent: #ff735e;
  background: #51251f;
  animation: command-alert 1.8s ease-in-out infinite;
}

.next-class-command.is-live {
  --command-accent: #55d6ba;
  background: #123f38;
}

.next-class-command.is-clear {
  --command-accent: #8da9a5;
  background: #e8efee;
  color: var(--navy);
}

.command-countdown,
.command-class {
  min-width: 0;
}

.command-countdown {
  display: grid;
  gap: 3px;
}

.command-kicker {
  color: var(--command-accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-countdown > strong {
  font-size: 27px;
  line-height: 1.1;
}

.command-countdown small,
.command-class > span {
  color: #c5d7d7;
}

.is-clear .command-kicker,
.is-clear p {
  color: var(--muted);
}

.command-class h2 {
  margin: 3px 0;
  font-size: 25px;
}

.command-class p {
  margin: 0;
  overflow: hidden;
  color: #d7e4e3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-following {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.command-following strong {
  color: var(--gold);
}

.command-actions {
  display: grid;
  gap: 8px;
  min-width: 130px;
}

.command-actions a,
.command-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #789398;
  background: transparent;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.command-actions .command-join {
  border-color: var(--command-accent);
  background: var(--command-accent);
  color: #102236;
}

.is-urgent .command-actions .command-join,
.is-soon .command-actions .command-join {
  color: #241c08;
}

.command-actions button:hover {
  background: #fff;
  color: var(--navy);
}

@keyframes command-alert {
  0%,
  100% {
    box-shadow: 0 18px 48px rgba(16, 34, 54, 0.16);
  }
  50% {
    box-shadow: 0 18px 54px rgba(242, 101, 75, 0.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  .next-class-command.is-urgent {
    animation: none;
  }
}

@media (max-width: 820px) {
  .operations-health {
    grid-template-columns: 1fr;
  }
  .next-class-command {
    grid-template-columns: 1fr auto;
  }
  .command-class {
    grid-column: 1;
  }
  .command-actions {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

@media (max-width: 560px) {
  .resource-grid article {
    min-height: 0;
    padding: 24px 20px;
  }
  .resource-grid article div {
    position: static;
    margin-top: 22px;
  }
  .operations-health {
    gap: 18px;
    padding: 19px;
  }
  .health-metrics {
    grid-template-columns: 1fr;
  }
  .next-class-command {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 19px;
  }
  .command-actions {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr 1fr;
  }
  .command-class p {
    white-space: normal;
  }
  .command-countdown > strong {
    font-size: 24px;
  }
}
