.workspace-admin .admin-fetch-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 48px;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  font-size: .875rem;
}
.admin-fetch-bar .spinner-border { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.workspace-admin [aria-busy="true"] { cursor: progress; }
.workspace-admin button:disabled { cursor: wait; }

body.operations-dashboard {
  --ops-bg: #eaf0f7;
  --ops-surface: #fff;
  --ops-border: #cedae8;
  --ops-text: #1c2b42;
  --ops-muted: #53657b;
  --ops-soft: #f1f5fa;
  --ops-good: #116b4b;
  --ops-good-bg: #e8f6ee;
  --ops-warn: #865600;
  --ops-warn-bg: #fff4d8;
  --ops-bad: #b42332;
  --ops-bad-bg: #fff0f1;
  background: var(--ops-bg);
  color: var(--ops-text);
}
body.operations-dashboard.ops-dark {
  --ops-bg: #0c1421;
  --ops-surface: #141f30;
  --ops-border: #334259;
  --ops-text: #e8eef7;
  --ops-muted: #b1c0d4;
  --ops-soft: #1a293d;
  --ops-good: #85e0ae;
  --ops-good-bg: #14392c;
  --ops-warn: #f4d181;
  --ops-warn-bg: #43361a;
  --ops-bad: #ffabb5;
  --ops-bad-bg: #442733;
  --color-background: var(--ops-bg);
  --color-surface: var(--ops-surface);
  --color-text: var(--ops-text);
  --color-text-muted: var(--ops-muted);
  --color-border: var(--ops-border);
}
body.operations-dashboard .wrapper { background: var(--ops-bg); }
body.operations-dashboard .main-panel > .ops-shell { padding: 1.5rem 0 !important; max-width: 1800px; }
.ops-shell { display: grid; gap: 1.25rem; }
.ops-hero { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 1.5rem; padding: 1.5rem; border-radius: 14px; background: #1b3857; color: #fff; }
.ops-hero h1 { color: #fff; font-size: clamp(1.6rem, 2.5vw, 2.1rem); margin: 0 0 .5rem; }
.ops-hero p { color: #d6e4f3; margin: 0; max-width: 42rem; }
.ops-eyebrow { color: #bed6ed; text-transform: uppercase; font-size: .7rem; font-weight: 700; letter-spacing: .08em; margin-bottom: .5rem; }
.ops-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.ops-controls { display: grid; justify-items: end; gap: .75rem; }
.ops-button, a.ops-button { display: inline-flex; gap: .5rem; align-items: center; justify-content: center; min-height: 42px; border: 1px solid #9ab4ce; padding: .5rem .8rem; border-radius: 8px; color: #fff; background: #24486c; font-size: .8125rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.ops-button:hover, a.ops-button:hover { color: #fff; background: #335e88; }
.ops-button--primary { background: #f2f7ff; color: #183a60; border-color: #f2f7ff; }
.ops-button--primary:hover { background: #dfeaff; color: #183a60; }
.ops-refresh-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: #d6e4f3; font-size: .75rem; }
.ops-request { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; font-size: .875rem; color: var(--ops-muted); }
.ops-request .spinner-border { width: 1rem; height: 1rem; }
.ops-data-age { margin-left: auto; }
.ops-error { color: var(--ops-bad); background: var(--ops-bad-bg); border: 1px solid var(--ops-border); border-radius: 10px; padding: .8rem 1rem; }
.ops-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.ops-metric, .ops-card { border: 1px solid var(--ops-border); background: var(--ops-surface); border-radius: 13px; padding: 1.1rem; min-width: 0; }
.ops-metric__label { font-size: .8rem; color: var(--ops-muted); margin-bottom: .4rem; }
.ops-metric__value { font-size: 2rem; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ops-text); }
.ops-metric__meta { color: var(--ops-muted); font-size: .75rem; margin-top: .5rem; }
.ops-metric--bad .ops-metric__value { color: var(--ops-bad); }
.ops-metric--warn .ops-metric__value { color: var(--ops-warn); }
.ops-section-title { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.ops-section-title h2 { color: var(--ops-text); font-size: 1rem; margin: 0; font-weight: 700; }
.ops-section-title p, .ops-note { font-size: .75rem; color: var(--ops-muted); margin: .4rem 0 0; }
.ops-card a:not(.ops-button), .ops-footer a { color: var(--ops-text); text-decoration: underline; text-underline-offset: 3px; }
.ops-health { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.ops-health-item { border: 1px solid var(--ops-border); border-radius: 10px; padding: .9rem; display: grid; gap: .5rem; align-content: start; }
.ops-health-item__heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.ops-health-item strong { color: var(--ops-text); font-size: .85rem; }
.ops-health-item p { color: var(--ops-muted); margin: 0; font-size: .75rem; }
.ops-tag { display: inline-flex; align-items: center; padding: .15rem .5rem; border-radius: 6px; font-size: .7rem; font-weight: 700; background: var(--ops-soft); color: var(--ops-muted); white-space: nowrap; }
.ops-tag--good { background: var(--ops-good-bg); color: var(--ops-good); }
.ops-tag--warn { background: var(--ops-warn-bg); color: var(--ops-warn); }
.ops-tag--bad { background: var(--ops-bad-bg); color: var(--ops-bad); }
.ops-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ops-stack { display: grid; gap: 1rem; }
.ops-list { display: grid; gap: .65rem; padding: 0; margin: 0; list-style: none; }
.ops-list-item { border: 1px solid var(--ops-border); border-radius: 9px; padding: .8rem; overflow-wrap: anywhere; }
.ops-list-item__title { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: .8125rem; font-weight: 600; }
.ops-list-item p { font-size: .75rem; color: var(--ops-muted); margin: .35rem 0 0; }
.ops-list-item--bad { border-left: 3px solid var(--ops-bad); }
.ops-list-item--warn { border-left: 3px solid var(--ops-warn); }
.ops-empty { font-size: .8125rem; color: var(--ops-muted); padding: .8rem 0; }
.ops-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.ops-count { padding: .75rem .5rem; background: var(--ops-soft); border-radius: 9px; color: var(--ops-muted); font-size: .7rem; text-align: center; }
.ops-count strong { display: block; font-size: 1.3rem; color: var(--ops-text); font-variant-numeric: tabular-nums; }
.ops-definition { padding: 0; margin: .9rem 0; }
.ops-definition > div { display: flex; justify-content: space-between; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--ops-border); font-size: .8125rem; }
.ops-definition dt { color: var(--ops-muted); font-weight: 400; }
.ops-definition dd { margin: 0; color: var(--ops-text); font-weight: 600; text-align: right; }
.ops-footer { color: var(--ops-muted); font-size: .75rem; }
.ops-source-table { width: 100%; font-size: .75rem; color: var(--ops-text); }
.ops-source-table th, .ops-source-table td { padding: .5rem; text-align: left; border-bottom: 1px solid var(--ops-border); }
.ops-source-table th { color: var(--ops-muted); }
.ops-source-details > summary { color: var(--ops-muted); cursor: pointer; font-size: .8rem; }
body.ops-wallboard #sidebar, body.ops-wallboard .sidebar-overlay, body.ops-wallboard .app-header, body.ops-wallboard [data-action="sidebar-open"] { display: none !important; }
body.ops-wallboard .wrapper > .main-panel { width: 100% !important; margin: 0 !important; padding: 0 clamp(1rem, 3vw, 3rem) 1.5rem !important; }
body.ops-wallboard .ops-shell { max-width: none; }
body.ops-wallboard #wallboardExit { display: inline-flex !important; }
.operations-dashboard :is(button, a, summary):focus-visible { outline: 3px solid #5ca6f5; outline-offset: 3px; }
@media (min-width: 1800px) { body.ops-wallboard .ops-metric__value { font-size: 2.5rem; } }
@media (max-width: 1100px) { .ops-health { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ops-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .ops-content-grid { grid-template-columns: 1fr; }
  .ops-hero { padding: 1.1rem; }
  .ops-controls { justify-items: start; }
  .ops-health { grid-template-columns: 1fr; }
  .ops-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ops-data-age { margin-left: 0; width: 100%; }
}
@media (max-width: 400px) { .ops-overview { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .operations-dashboard .spinner-border, .admin-fetch-bar .spinner-border { animation: none; } }
