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

.ops-card,
.ops-health-actions {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ops-row-list {
  display: grid;
  gap: 10px;
}

.ops-row-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.ops-row-list b,
.ops-row-list small,
.ops-row-list span {
  display: block;
}

.ops-row-list small {
  margin-top: 4px;
  color: var(--muted);
}

.ops-row-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(56, 217, 255, 0.12);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.ops-row-list article.ok span {
  background: rgba(74, 222, 128, 0.13);
  color: var(--green);
}

.ops-row-list article.warn span {
  background: rgba(251, 191, 36, 0.13);
  color: var(--amber);
}

.ops-row-list article.error span {
  background: rgba(248, 113, 113, 0.13);
  color: #fca5a5;
}

.ops-health-actions {
  grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  align-items: center;
}

.ops-health-actions h2,
.ops-health-actions p {
  margin: 0;
}

.ops-health-actions p {
  margin-top: 4px;
  color: var(--muted);
}

.ops-health-actions button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 950;
  cursor: pointer;
}

.ops-secret-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.ops-secret-strip article {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.ops-secret-strip article.ok {
  border-color: rgba(74, 222, 128, 0.24);
}

.ops-secret-strip article.warn {
  border-color: rgba(251, 191, 36, 0.28);
}

.ops-secret-strip span,
.ops-secret-strip b {
  display: block;
}

.ops-secret-strip span {
  color: var(--muted);
}

.ops-secret-strip b {
  margin-top: 12px;
  color: var(--amber);
}

.ops-secret-strip article.ok b {
  color: var(--green);
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.ops-timeline {
  display: grid;
  gap: 10px;
}

.ops-timeline-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 170px;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.ops-timeline-row.selected {
  border-color: rgba(56, 217, 255, 0.42);
  background: rgba(56, 217, 255, 0.1);
}

.ops-timeline-row.warn {
  border-color: rgba(251, 191, 36, 0.22);
}

.ops-timeline-row.error {
  border-color: rgba(248, 113, 113, 0.28);
}

.ops-timeline-row span,
.ops-timeline-row em {
  color: var(--muted);
}

.ops-timeline-row em {
  font-style: normal;
  text-align: right;
}

.ops-stat-grid button {
  cursor: default;
}

@media (max-width: 1180px) {
  .ops-grid,
  .audit-layout {
    grid-template-columns: 1fr;
  }

  .ops-secret-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-health-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ops-row-list article,
  .ops-timeline-row,
  .ops-health-actions,
  .ops-secret-strip {
    grid-template-columns: 1fr;
  }

  .ops-timeline-row em {
    text-align: left;
  }
}
