/* Update Center ops workflows (async) */
/* —— Phase 5 operational workflows —— */
.uc-delta-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.uc-delta-chip {
  appearance: none;
  border: 1px solid var(--discovery-border);
  background: var(--discovery-surface, transparent);
  color: var(--discovery-text-body);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
}

.uc-badge--severity {
  text-transform: capitalize;
  font-weight: 600;
}

.uc-badge--sev-critical {
  background: rgba(180, 40, 40, 0.18);
  color: #e8a0a0;
  border: 1px solid rgba(180, 40, 40, 0.35);
}

.uc-badge--sev-high {
  background: rgba(190, 110, 30, 0.18);
  color: #ecc090;
  border: 1px solid rgba(190, 110, 30, 0.35);
}

.uc-badge--sev-medium {
  background: rgba(180, 160, 40, 0.16);
  color: #e0d080;
  border: 1px solid rgba(180, 160, 40, 0.3);
}

.uc-badge--sev-low {
  background: rgba(60, 120, 90, 0.16);
  color: #9dceb8;
  border: 1px solid rgba(60, 120, 90, 0.3);
}

html[data-theme="light"] .uc-badge--sev-critical {
  color: #8b1e1e;
}
html[data-theme="light"] .uc-badge--sev-high {
  color: #8a4b12;
}
html[data-theme="light"] .uc-badge--sev-medium {
  color: #6b5c10;
}
html[data-theme="light"] .uc-badge--sev-low {
  color: #1f5c40;
}


.uc-health {
  margin: 0 0 14px;
}

.uc-health-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--discovery-text);
}

.uc-health-hint {
  font-weight: 400;
  color: var(--discovery-text-body);
}

.uc-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.uc-health-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-left: 3px solid var(--discovery-border);
  text-decoration: none;
  color: inherit;
  min-height: 0;
}

.uc-health-card--risk {
  border-left-color: #c45c5c;
}

.uc-health-card--fresh {
  border-left-color: var(--uc-accent);
}

.uc-health-card--quiet {
  border-left-color: var(--discovery-border);
}

.uc-health-product {
  font-size: 12px;
  font-weight: 700;
}

.uc-health-meta {
  font-size: 11px;
  color: var(--discovery-text-body);
}

.uc-health-latest {
  font-size: 11px;
  line-height: 1.35;
  color: var(--discovery-text-muted, var(--discovery-text-body));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.uc-ops .uc-ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.25rem;
}

.uc-ops-list {
  margin: 0;
  padding-left: 1.1rem;
}

.uc-ops-list li {
  margin: 0.35rem 0;
}

.uc-ops-sev {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.uc-ops-meta {
  font-size: 0.85em;
  opacity: 0.75;
}

.uc-ops-empty {
  opacity: 0.8;
  font-style: italic;
}

.uc-ops-form {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
}

.uc-ops-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.uc-ops-form input,
.uc-ops-form textarea {
  font: inherit;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--discovery-border, #334);
  background: transparent;
  color: inherit;
}

.uc-ops-window {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--discovery-border, #334);
}

.uc-ops-check {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.uc-ops-window-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Phase 7 analytics dashboard */
.uc-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 1.25rem;
}

.uc-analytics-kpis > div,
.uc-analytics-kpis dl > div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--discovery-border, #334);
}

.uc-analytics-kpis dl {
  display: contents;
}

.uc-analytics-kpis dt {
  font-size: 0.75rem;
  opacity: 0.8;
}

.uc-analytics-kpis dd {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.uc-analytics-bars {
  list-style: none;
  margin: 0;
  padding: 0;
}

.uc-analytics-bars li {
  display: grid;
  grid-template-columns: minmax(5rem, 8rem) 1fr 2.5rem;
  gap: 8px;
  align-items: center;
  margin: 0.4rem 0;
  font-size: 0.85rem;
}

.uc-analytics-track {
  height: 8px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.uc-analytics-fill {
  display: block;
  height: 100%;
  background: var(--uc-accent, #0f62fe);
}

.uc-analytics-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.editorial-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.editorial-board-role {
  font-weight: 600;
  margin: 0.25rem 0;
}

.editorial-board-bio {
  margin: 0;
  opacity: 0.9;
}

/* —— UC docs / ops pages: shared Update Center visual DNA —— */
body[data-uc-ops].trust-family-page,
body.uc-docs-page.trust-family-page {
  --uc-accent: #0f62fe;
  --uc-accent-muted: rgba(15, 98, 254, 0.14);
  --uc-accent-border: rgba(15, 98, 254, 0.35);
  --uc-hero-accent: rgba(15, 98, 254, 0.18);
}

body[data-uc-ops] .trust-hero,
body.uc-docs-page .trust-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-large, 12px);
  border: 1px solid var(--uc-accent-border);
  border-left: 3px solid var(--uc-accent);
  background:
    linear-gradient(135deg, var(--uc-hero-accent), transparent 55%),
    var(--gradient-card, #131d33);
  box-shadow: var(--shadow-soft, none);
  padding: 20px 22px;
}

body[data-uc-ops] .trust-hero .badge,
body.uc-docs-page .trust-hero .badge {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--uc-accent);
  background: var(--uc-accent-muted);
  border: 1px solid var(--uc-accent-border);
  padding: 3px 9px;
  border-radius: 4px;
}

body[data-uc-ops] .trust-hero h1,
body.uc-docs-page .trust-hero h1 {
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

body[data-uc-ops] .trust-hero h1 span,
body.uc-docs-page .trust-hero h1 span {
  color: var(--uc-accent);
}

body[data-uc-ops] .trust-breadcrumb,
body.uc-docs-page .trust-breadcrumb {
  font-size: 12px;
  margin-bottom: 12px;
}

body[data-uc-ops] .page-wrap.trust-page,
body.uc-docs-page .page-wrap.trust-page {
  max-width: var(--container-max, 1200px);
}

@media (max-width: 768px) {
  body[data-uc-ops] .trust-hero,
  body.uc-docs-page .trust-hero {
    padding: 16px;
  }
}


