:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #121922;
  --panel-2: #16202b;
  --line: #273341;
  --text: #f2f5f7;
  --muted: #8794a3;
  --cyan: #42c7d7;
  --green: #45d483;
  --amber: #f2b84b;
  --red: #f06f6f;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 80% -20%, #17313b 0, transparent 36%), var(--bg); color: var(--text); font: 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button { font: inherit; }
.shell { width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 28px; }
.topbar, .section-head, .workers-head, footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar { margin-bottom: 28px; }
.eyebrow { margin: 0 0 7px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .17em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1; letter-spacing: -.045em; }
h2 { margin-bottom: 0; font-size: 22px; letter-spacing: -.02em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.status-pill, button { border: 1px solid var(--line); background: rgba(18, 25, 34, .8); color: var(--text); border-radius: 999px; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; font-weight: 700; }
.status-pill span { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 5px rgba(135,148,163,.1); }
.status-pill.running span, .status-pill.complete span { background: var(--green); box-shadow: 0 0 0 5px rgba(69,212,131,.12); animation: pulse 1.8s infinite; }
.status-pill.cooldown span, .status-pill.attention span { background: var(--amber); box-shadow: 0 0 0 5px rgba(242,184,75,.12); }
.status-pill.stopped span, .status-pill.stalled span, .status-pill.error span { background: var(--red); box-shadow: 0 0 0 5px rgba(240,111,111,.12); }
@keyframes pulse { 50% { opacity: .45; } }
button { cursor: pointer; padding: 10px 15px; }
button:hover { border-color: #4a5d70; background: var(--panel-2); }
.hero-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 12px; }
.metric, .panel { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(22,32,43,.94), rgba(15,22,30,.96)); border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.16); }
.metric { min-height: 148px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.metric.primary { border-color: rgba(66,199,215,.42); background: linear-gradient(145deg, rgba(25,59,67,.94), rgba(16,27,35,.96)); }
.metric span, .metric small { color: var(--muted); }
.metric strong { font-size: clamp(25px, 2.5vw, 40px); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric small { font-size: 12px; }
.panel { padding: 24px; margin-top: 12px; }
.freshness, .service-state { margin: 0; color: var(--muted); font-size: 13px; }
.progress-track { height: 12px; margin: 24px 0 22px; overflow: hidden; border-radius: 999px; background: #0a0f14; border: 1px solid #26313d; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width .6s ease; }
.chart-wrap { border-top: 1px solid var(--line); padding-top: 18px; }
.chart-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
#sparkline { width: 100%; height: 170px; margin-top: 8px; overflow: visible; }
.workers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.worker { padding: 17px; border-radius: 14px; background: #0e151d; border: 1px solid #26323f; }
.worker-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.worker-id { font-weight: 850; }
.worker-status { max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--green); font-size: 12px; font-weight: 750; }
.worker-status.cooldown { color: var(--amber); }
.worker-status.error { color: var(--red); }
.worker dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; font-size: 12px; }
.worker dt { color: var(--muted); }
.worker dd { margin: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
footer { padding: 20px 2px 0; color: var(--muted); font-size: 12px; }
@media (max-width: 1080px) { .hero-grid { grid-template-columns: repeat(3, 1fr); } .workers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .shell { width: min(100% - 22px, 1320px); padding-top: 22px; } .topbar, .section-head, footer { align-items: flex-start; flex-direction: column; } .header-actions { width: 100%; justify-content: space-between; } .hero-grid { grid-template-columns: repeat(2, 1fr); } .metric { min-height: 132px; } .workers { grid-template-columns: 1fr; } .panel { padding: 18px; } }
