:root {
  --ops-ink: #1d1d1f;
  --ops-muted: #6e6e73;
  --ops-line: rgba(29, 29, 31, 0.1);
  --ops-blue: #0071e3;
  --ops-green: #0a8f5a;
  --ops-red: #d92d20;
  --ops-panel: rgba(255, 255, 255, 0.72);
}

.ops-page {
  min-height: 100vh;
  color: var(--ops-ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 113, 227, 0.12), transparent 30%),
    linear-gradient(180deg, #f5f5f7, #ffffff 46%, #f5f5f7);
}

.ops-shell {
  width: min(calc(100% - 32px), 1180px);
  margin: 0 auto;
  padding: 78px 0 96px;
}

.ops-hero {
  max-width: 860px;
  margin-bottom: 26px;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 56px);
}

.ops-kicker,
.ops-label {
  margin: 0 0 12px;
  color: var(--ops-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.ops-hero p:not(.ops-kicker) {
  max-width: 680px;
  margin: 0;
  color: var(--ops-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.ops-console {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.ops-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.54)),
    radial-gradient(circle at 20% 0%, rgba(0, 113, 227, 0.08), transparent 34%);
  box-shadow:
    0 22px 60px rgba(29, 29, 31, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.ops-main {
  padding: 22px;
}

.ops-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  color: #f5f5f7;
  background: #1d1d1f;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background 180ms ease;
}

.ops-button.secondary {
  color: var(--ops-ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--ops-line);
}

.ops-button:hover {
  transform: translateY(-1px);
}

.ops-button:active {
  transform: translateY(0);
  opacity: 0.82;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.ops-metric {
  min-height: 112px;
  border: 1px solid var(--ops-line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.64);
}

.ops-metric span {
  display: block;
  color: var(--ops-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.ops-metric strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1;
}

.ops-metric small {
  display: block;
  margin-top: 8px;
  color: var(--ops-muted);
  font-weight: 700;
}

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

.ops-step {
  border: 1px solid var(--ops-line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.ops-step.is-active {
  border-color: rgba(0, 113, 227, 0.35);
  background: rgba(0, 113, 227, 0.08);
}

.ops-step span {
  color: var(--ops-blue);
  font-size: 0.76rem;
  font-weight: 800;
}

.ops-step strong {
  display: block;
  margin-top: 8px;
}

.ops-side {
  display: grid;
  gap: 18px;
}

.ops-panel {
  padding: 18px;
}

.ops-health {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.ops-ring {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--ops-green) var(--ops-score), rgba(29, 29, 31, 0.08) 0),
    rgba(255, 255, 255, 0.6);
}

.ops-ring strong {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 1.25rem;
}

.ops-status {
  margin: 0;
  color: var(--ops-muted);
  line-height: 1.55;
}

.ops-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ops-list li {
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.ops-list strong {
  display: block;
  margin-bottom: 4px;
}

.ops-list small {
  color: var(--ops-muted);
  line-height: 1.45;
}

.ops-code {
  min-height: 148px;
  overflow: auto;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 14px;
  padding: 14px;
  color: rgba(29, 29, 31, 0.78);
  background: rgba(29, 29, 31, 0.045);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 880px) {
  .ops-console,
  .ops-grid,
  .ops-pipeline {
    grid-template-columns: 1fr;
  }
}
