/* Ops control-plane page — additive to console.css */

.system-chip {
  font-size: 0.8rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  margin-left: 0.25rem;
}
.system-chip.state-ok {
  background: color-mix(in srgb, var(--color-success) 18%, transparent);
}
.system-chip.state-degraded {
  background: color-mix(in srgb, var(--color-warning) 22%, transparent);
}
.system-chip.state-down {
  background: color-mix(in srgb, var(--color-critical) 22%, transparent);
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.6rem;
}

.ops-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
}
.ops-card .label { font-weight: 600; font-size: 0.9rem; }
.ops-card .detail { color: var(--muted); font-size: 0.8rem; margin-top: 0.25rem; }
.ops-card .state {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ops-card.state-ok .state { color: var(--color-success); }
.ops-card.state-quiet .state,
.ops-card.state-degraded .state { color: var(--color-warning); }
.ops-card.state-down .state { color: var(--color-critical); }

.ops-cta {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
.cta {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}
.cta-disabled,
.cta:disabled {
  opacity: 0.45;
  border-color: var(--border);
  background: transparent;
  color: inherit;
  cursor: not-allowed;
}

button.linkish {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

.ops-list .ops-card { margin-bottom: 0.5rem; }

#create-org-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
#create-org-form input {
  display: block;
  width: 100%;
  max-width: 22rem;
  margin-top: 0.25rem;
  font: inherit;
  padding: 0.35rem;
}
