.ops-dashboard { --ops-green:#087752; --ops-yellow:#9b5500; --ops-red:#b02b3c; --ops-unknown:var(--muted); display:grid; gap:18px; min-width:0; }
.ops-passing { --ops-state:var(--ops-green); }
.ops-warning { --ops-state:var(--ops-yellow); }
.ops-failed { --ops-state:var(--ops-red); }
.ops-unknown,.ops-stale { --ops-state:var(--ops-unknown); }
.ops-health-banner { display:flex; align-items:center; gap:22px; padding:22px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.ops-health-banner h2 { margin:0 0 5px; }
.ops-health-banner p { margin:0 0 6px; }
.ops-health-banner small { color:var(--muted); }
.ops-beacon { width:18px; height:18px; flex:none; border-radius:50%; background:var(--ops-state); box-shadow:0 0 0 7px color-mix(in srgb,var(--ops-state) 14%,transparent); }
.ops-health-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.ops-health-card { display:grid; text-align:left; gap:9px; padding:18px 14px; color:var(--ink); font:inherit; background:var(--surface); border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.ops-health-card[aria-expanded=true] { outline:2px solid var(--accent); outline-offset:1px; }
.ops-health-card strong { font-size:19px; }
.ops-health-card small { color:var(--muted); }
.ops-area-icon { font-size:22px; color:var(--muted); }
.ops-dot { display:inline-block; background:var(--ops-state,var(--muted)); width:8px; height:8px; border-radius:50%; flex:none; margin-right:6px; }
.ops-attention { border-left:4px solid var(--ops-yellow); background:var(--surface); padding:14px 18px; border-radius:0 8px 8px 0; }
.ops-attention p { margin:7px 0 0; }
.ops-issue-link { background:none; border:0; padding:0; text-decoration:underline; color:var(--link); font:inherit; cursor:pointer; }
.ops-expanded { background:var(--surface); padding:20px; border:1px solid var(--line); border-radius:12px; min-width:0; }
.ops-expanded-header { display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:16px; }
.ops-expanded-header h2 { margin:0; }
.ops-expanded-header [role=group] { display:flex; flex-wrap:wrap; gap:6px; }
.ops-expanded-header [aria-pressed=true] { background:var(--accent); color:var(--accent-foreground); }
.ops-check { display:flex; align-items:center; gap:10px; padding:12px 0; border-bottom:1px solid var(--line); }
.ops-check>div { flex:1; min-width:0; }
.ops-check p { margin:4px 0; overflow-wrap:anywhere; }
.ops-check small { color:var(--muted); }
.ops-check>span:last-child { font-size:12px; color:var(--ops-state); text-align:right; }
.ops-chart-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin:24px 0; }
.ops-chart { min-width:0; }
.ops-chart-heading { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.ops-chart-heading h3 { font-size:14px; margin:0; }
.ops-chart-heading strong { font-size:19px; white-space:nowrap; }
.ops-chart-plot { min-height:155px; display:grid; align-items:center; color:var(--muted); }
.ops-chart-plot svg { width:100%; display:block; }
.ops-axis { fill:var(--muted); font-size:10px; }
.ops-gridline { stroke:var(--line); stroke-width:1; }
.ops-trend { stroke:var(--accent); stroke-width:2; }
.ops-point { fill:var(--accent); }
.ops-chart p { font-size:11px; }
.ops-chart details { font-size:12px; }
.ops-chart details .table-wrap { max-height:250px; overflow:auto; }
.ops-advanced>summary { cursor:pointer; padding:14px 0; font-weight:700; }
.ops-advanced>nav { margin:12px 0; }
.platform-admin-content:has(.ops-dashboard) { display:block; }
.platform-admin-content:has(.ops-dashboard)>[data-operations-summary] { min-width:0; }
@media(max-width:1050px) { .platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) { grid-template-columns:minmax(0,1fr); } .platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) .platform-admin-sidebar nav { display:flex; flex-wrap:wrap; } }
@media(max-width:650px) { .ops-health-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .ops-chart-grid { grid-template-columns:minmax(0,1fr); } .ops-expanded { padding:12px; } .ops-check { align-items:flex-start; } .ops-check>span:last-child { max-width:80px; } .ops-health-card { min-height:140px; } }
@media(prefers-color-scheme:dark) { .ops-dashboard { --ops-green:#60d8ab; --ops-yellow:#ffc26b; --ops-red:#ff8e9d; } }

/* Operations uses the approved control-plane palette, independent of league skins. */
.platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) {
  --surface:#fff; --canvas:#f3f6fa; --ink:#18293e; --muted:#58697e; --line:#dce4ed;
  --surface-soft:#f7f9fc; --surface-muted:#eef2f7; --paper:#fff; --text:#18293e; --focus-ring:#156092;
  --accent:#156092; --accent-strong:#156092; --accent-foreground:#fff; --link:#156092;
  --brand-accent:#156092; --accent-soft:#e8f5fc;
  grid-template-columns:164px minmax(0,1fr); color:#18293e; background:#f3f6fa; color-scheme:light;
  font-family:system-ui,sans-serif;
}
.platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) .platform-admin-sidebar { background:#101e34; color:#d3deeb; padding:22px 12px; }
.platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) .platform-admin-sidebar h1 { color:#edf4ff; font-size:18px; }
.platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) .platform-admin-sidebar .eyebrow { color:#91e7ff; font-size:11px; }
.platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) .platform-admin-sidebar nav a { font-size:12px; font-weight:500; padding:9px; color:#d3deeb; }
.platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) .platform-admin-sidebar nav a[aria-current=page] { background:#91e7ff; color:#061b2b; }
.platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) .platform-admin-workspace { background:#f3f6fa; color:#18293e; }
.platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) .platform-admin-workspace-header { background:#fff; color:#18293e; }
.platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) .platform-admin-workspace-header h2 { color:#18293e; font-size:25px; }
.platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) .platform-admin-content { padding:24px; }
.ops-dashboard { --ops-green:#087752; --ops-yellow:#9b5500; --ops-red:#b02b3c; gap:16px; color:#18293e; font:14px/1.5 system-ui,sans-serif; }
.ops-dashboard h2 { color:#18293e; font-size:18px; }
.ops-dashboard h3 { color:#18293e; font-size:15px; }
.ops-health-banner { padding:17px 19px; gap:20px; border-radius:10px; }
.ops-health-banner h2 { font-size:18px; }
.ops-health-banner p { font-size:13px; }
.ops-health-cards { gap:10px; }
.ops-health-card { padding:14px 12px; gap:8px; border-radius:9px; }
.ops-health-card strong { font-size:17px; }
.ops-health-card>span:not(.ops-area-icon),.ops-health-card small { font-size:12px; }
.ops-area-icon { display:block; width:20px; height:20px; }
.ops-area-icon svg { display:block; width:20px; height:20px; }
.ops-attention { padding:12px 15px; border-left-width:3px; }
.ops-attention p { margin:4px 0 0; font-size:12px; }
.ops-attention summary { font-size:12px; margin-top:6px; cursor:pointer; }
.ops-expanded { padding:16px; }
.ops-section-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:2px 0 10px; }
.ops-section-heading h2 { margin:0; }
.ops-section-heading>span { color:var(--muted); font-size:12px; }
.ops-service-map { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.ops-service-group { background:var(--surface); border:1px solid var(--line); border-radius:9px; padding:15px; min-width:0; }
.ops-service-group h3 { display:flex; gap:8px; align-items:center; padding-bottom:10px; margin:0; border-bottom:1px solid var(--line); }
.ops-service-group h3 svg { width:20px; height:20px; }
.ops-service-row { display:flex; align-items:center; gap:6px; width:100%; text-align:left; border:0; border-bottom:1px solid var(--line); background:transparent; padding:11px 0; font:inherit; color:var(--ink); cursor:pointer; }
.ops-service-row:last-child { border-bottom:0; padding-bottom:0; }
.ops-service-row>span:nth-child(2) { flex:1; min-width:0; }
.ops-service-row strong { display:block; font-weight:500; }
.ops-service-row small { display:block; color:var(--muted); font-size:12px; }
.ops-service-state { color:var(--ops-state); font-size:11px; white-space:nowrap; }
.ops-resource-trends>summary,.ops-check-evidence>summary { padding:8px 0; cursor:pointer; color:var(--link); }
.ops-checks { margin-bottom:14px; }
.ops-checks>section { margin:8px 0; }
.ops-feed-legend { display:flex; flex-wrap:wrap; gap:14px; font-size:12px; margin:12px 0; }
.feed-up { color:#087752; } .feed-down { color:#b02b3c; } .feed-paused { color:#9b5500; } .feed-unknown { color:#64748b; }
.ops-reliability { min-width:0; margin:20px 0; padding:20px; border:1px solid #d9e4ee; border-radius:12px; background:#fff; color:#142b43; }
.ops-reliability h2 { margin:0 0 8px; }
.ops-reliability p { line-height:1.5; }
.ops-process-controls { display:flex; gap:10px; flex-wrap:wrap; align-items:end; }
.ops-process-controls label { display:grid; gap:4px; font-size:12px; }
.ops-process-controls input,.ops-process-controls select { min-height:34px; max-width:220px; border:1px solid #b9cbdc; border-radius:5px; padding:5px; font:inherit; }
.ops-reliability button { min-height:34px; padding:6px 10px; border:1px solid #b9cbdc; border-radius:5px; background:#f1f8fd; color:#163955; font:inherit; cursor:pointer; }
.ops-reliability button[aria-pressed=true] { background:#143e60; color:#fff; }
.ops-process-table { max-width:100%; overflow:auto; margin:12px 0; }
.ops-process-table table { width:100%; border-collapse:collapse; min-width:850px; font-size:12px; }
.ops-process-table th,.ops-process-table td { text-align:left; vertical-align:top; padding:12px 8px; border-bottom:1px solid #e1e9f0; max-width:240px; overflow-wrap:anywhere; }
.ops-process-table th { background:#f1f6fa; }
.ops-process-table small { display:block; color:#52687d; margin-top:5px; line-height:1.4; }
.ops-process-status { display:inline-block; border-radius:4px; padding:3px 6px; background:#e8eef4; }
.ops-process-status[data-state=COMPLETE],.ops-process-status[data-state=RECOVERED] { background:#e0f4e9; color:#08623f; }
.ops-process-status[data-state=FAILED],.ops-process-status[data-state=MISSED],.ops-process-status[data-state=STUCK] { background:#fce4e8; color:#95223a; }
.ops-process-status[data-state=PARTIAL],.ops-process-status[data-state=RETRY],.ops-process-status[data-state=HELD] { background:#fff0d4; color:#855400; }
@media(max-width:650px) { .ops-reliability { padding:12px; } .ops-process-controls { align-items:stretch; } }
.ops-feed-axis { display:flex; justify-content:space-between; color:var(--muted); font-size:11px; margin:16px 0 5px; }
.ops-feed-row { width:100%; display:grid; grid-template-columns:minmax(160px,1fr) minmax(120px,2fr) 80px; gap:14px; align-items:center; background:transparent; border:0; border-bottom:1px solid var(--line); padding:12px 0; font:inherit; color:var(--ink); text-align:left; cursor:pointer; }
.ops-feed-row[aria-expanded=true] { background:#edf6fc; }
.ops-feed-name { min-width:0; overflow-wrap:anywhere; }
.ops-feed-name strong { display:block; font-size:12px; font-weight:600; }
.ops-feed-name small { color:var(--muted); font-size:11px; }
.ops-feed-timeline { display:grid; grid-template-columns:repeat(48,minmax(0,1fr)); gap:2px; height:22px; }
.ops-feed-timeline>span { background:#e5eaf0; border-radius:2px; }
.ops-feed-timeline>.feed-up { background:#16a575; } .ops-feed-timeline>.feed-down { background:#d54a60; }
.ops-feed-timeline>.feed-paused { background:#e7a950; }
.ops-feed-status { text-align:right; font-size:12px; font-weight:600; }
.ops-feed-detail { border-top:2px solid #91e7ff; padding:16px 0; margin-top:12px; }
.ops-feed-detail .table-wrap { max-height:300px; overflow:auto; }
.ops-custom-window { display:flex; gap:8px; flex-wrap:wrap; align-items:center; font-size:12px; margin:10px 0; }
.ops-custom-window input { width:62px; padding:5px; font:inherit; border:1px solid var(--line); border-radius:5px; }
@media(max-width:900px) { .platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) { grid-template-columns:minmax(0,1fr); } .ops-service-map { grid-template-columns:minmax(0,1fr); } }
@media(max-width:650px) { .platform-admin-shell:has(.ops-dashboard,[data-admin-copy-editor]:not([hidden])) .platform-admin-content { padding:16px; } .ops-feed-row { grid-template-columns:1fr 80px; gap:8px; } .ops-feed-timeline { grid-column:1/-1; grid-row:2; } .ops-health-card { min-height:130px; } }
.ops-process-controls [hidden]{display:none!important}
