:root {
  --zenith-v48-line: #1d4254;
  --zenith-v48-text: #effaff;
  --zenith-v48-muted: #86a7b7;
  --zenith-v48-green: #43e8ae;
  --zenith-v48-yellow: #ffd66b;
  --zenith-v48-red: #ff667f;
}

.zenith-v48-monitor {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(44, 92, 116, .62);
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 5%, rgba(32, 168, 117, .14), transparent 28%),
    linear-gradient(145deg, rgba(10, 28, 41, .97), rgba(5, 16, 24, .97));
}

.zenith-v48-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.zenith-v48-head small,
.zenith-v48-panel header small {
  color: var(--zenith-v48-green);
  font-weight: 900;
  letter-spacing: .14em;
}

.zenith-v48-head h1 {
  margin: 6px 0 0;
  color: var(--zenith-v48-text);
  font-size: clamp(24px, 2.6vw, 38px);
}

.zenith-v48-head p {
  margin: 7px 0 0;
  color: var(--zenith-v48-muted);
}

.zenith-v48-head > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zenith-v48-head > div:last-child > span {
  color: var(--zenith-v48-muted);
  font-size: 10px;
}

.zenith-v48-head button {
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  color: #032018;
  background: linear-gradient(90deg, #79ffd4, #25c98a);
  cursor: pointer;
  font-weight: 900;
}

.zenith-v48-head button:disabled {
  opacity: .55;
  cursor: wait;
}

.zenith-v48-metrics {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0;
}

.zenith-v48-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(44, 92, 116, .45);
  border-radius: 10px;
  background: rgba(7, 23, 34, .8);
}

.zenith-v48-metric span,
.zenith-v48-metric strong,
.zenith-v48-metric small {
  display: block;
}

.zenith-v48-metric span {
  color: var(--zenith-v48-muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.zenith-v48-metric strong {
  margin-top: 6px;
  overflow: hidden;
  color: var(--zenith-v48-text);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zenith-v48-metric small {
  margin-top: 4px;
  color: var(--zenith-v48-muted);
  font-size: 8px;
}

.zenith-v48-metric.good { border-color: rgba(67, 232, 174, .45); }
.zenith-v48-metric.warn { border-color: rgba(255, 214, 107, .45); }
.zenith-v48-metric.bad { border-color: rgba(255, 102, 127, .52); }

.zenith-v48-two-column {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.zenith-v48-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(44, 92, 116, .52);
  border-radius: 11px;
  background: rgba(7, 23, 34, .84);
}

.zenith-v48-panel + .zenith-v48-panel {
  margin-top: 12px;
}

.zenith-v48-two-column .zenith-v48-panel + .zenith-v48-panel {
  margin-top: 0;
}

.zenith-v48-panel h2 {
  margin: 4px 0 0;
  color: var(--zenith-v48-text);
  font-size: 16px;
}

.zenith-v48-delivery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.zenith-v48-delivery-card {
  padding: 14px;
  border: 1px solid rgba(44, 92, 116, .4);
  border-radius: 9px;
  background: rgba(5, 18, 27, .72);
  text-align: center;
}

.zenith-v48-delivery-card span,
.zenith-v48-delivery-card strong {
  display: block;
}

.zenith-v48-delivery-card span {
  color: var(--zenith-v48-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.zenith-v48-delivery-card strong {
  margin-top: 7px;
  color: var(--zenith-v48-text);
  font-size: 22px;
}

.zenith-v48-delivery-card.sent,
.zenith-v48-delivery-card.delivered,
.zenith-v48-delivery-card.read {
  border-color: rgba(67, 232, 174, .42);
}

.zenith-v48-delivery-card.queued {
  border-color: rgba(255, 214, 107, .42);
}

.zenith-v48-delivery-card.failed {
  border-color: rgba(255, 102, 127, .52);
}

.zenith-v48-runtime {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.zenith-v48-runtime > div {
  padding: 10px;
  border: 1px solid rgba(44, 92, 116, .4);
  border-radius: 8px;
  background: rgba(5, 18, 27, .72);
}

.zenith-v48-runtime span,
.zenith-v48-runtime strong {
  display: block;
}

.zenith-v48-runtime span {
  color: var(--zenith-v48-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.zenith-v48-runtime strong {
  margin-top: 5px;
  color: var(--zenith-v48-text);
  font-size: 11px;
}

.zenith-v48-table-wrap {
  margin-top: 12px;
  overflow: auto;
  max-height: 280px;
  border: 1px solid rgba(44, 92, 116, .36);
  border-radius: 8px;
}

.zenith-v48-table-wrap table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.zenith-v48-table-wrap th,
.zenith-v48-table-wrap td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(44, 92, 116, .28);
  color: var(--zenith-v48-text);
  text-align: left;
  font-size: 9px;
}

.zenith-v48-table-wrap th {
  position: sticky;
  top: 0;
  color: var(--zenith-v48-muted);
  background: #081a26;
  text-transform: uppercase;
}

.zenith-v48-table-wrap td.good { color: var(--zenith-v48-green); }
.zenith-v48-table-wrap td.bad { color: var(--zenith-v48-red); }

@media (max-width: 1450px) {
  .zenith-v48-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .zenith-v48-two-column {
    grid-template-columns: 1fr;
  }

  .zenith-v48-delivery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .zenith-v48-head {
    flex-direction: column;
  }

  .zenith-v48-head > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  .zenith-v48-metrics,
  .zenith-v48-runtime,
  .zenith-v48-delivery {
    grid-template-columns: 1fr;
  }
}
