:root {
  color-scheme: light;
  --ink: #15283d;
  --muted: #596b7c;
  --border: #dfe6ec;
  --blue: #285b85;
  --surface: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f6f8;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
body::before { content: ""; display: block; height: 6px; background: var(--ink); }
.shell { width: min(100% - 48px, 980px); margin: 76px auto 40px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.eyebrow { text-transform: uppercase; letter-spacing: .17em; font-size: .75rem; font-weight: 700; color: var(--blue); margin: 0 0 14px; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.12; margin: 0 0 14px; }
.subtitle { margin: 0; color: var(--muted); line-height: 1.6; }
.refresh-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 18px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); border: 1px solid #c9d5df; background: var(--surface); border-radius: 10px; cursor: pointer; white-space: nowrap; }
.refresh-button svg { width: 19px; height: 19px; }
.refresh-button:hover { background: #eaf0f5; }
.refresh-button:disabled { cursor: wait; opacity: .65; }
.refresh-button:focus-visible { outline: 3px solid #80afd5; outline-offset: 4px; }
.status-card { padding: 34px 38px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 32px #14283e07; }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
h2 { margin: 0; font-size: 1.06rem; font-weight: 650; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: .8rem; font-weight: 650; color: #586575; background: #eef1f4; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.status-badge[data-tone="running"] { color: #285b85; background: #e9f1f8; }
.status-badge[data-tone="success"] { color: #20654d; background: #e7f4ee; }
.status-badge[data-tone="warning"] { color: #805b1c; background: #fbf2df; }
.status-badge[data-tone="error"] { color: #9a3940; background: #fbecef; }
.status-description { min-height: 1.5em; color: var(--muted); font-size: .93rem; line-height: 1.6; margin: 20px 0 36px; }
.progress-summary { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.metric-label { font-size: .8rem; margin: 0 0 12px; color: var(--muted); }
.count { font-size: clamp(2.1rem, 6vw, 3.1rem); font-weight: 650; letter-spacing: -.04em; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.count-divider, #total { color: #81909e; font-weight: 450; }
.percentage { margin: 0 0 3px; font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.progress-track { width: 100%; height: 12px; border-radius: 6px; background: #edf1f5; overflow: hidden; }
.progress-fill { width: 0%; height: 100%; background: var(--blue); }
.progress-track[data-tone="success"] .progress-fill { background: #2d785b; }
.progress-track[data-tone="warning"] .progress-fill { background: #a38144; }
.progress-track[data-tone="error"] .progress-fill { background: #a34e55; }
.progress-caption { color: var(--muted); font-size: .8rem; line-height: 1.5; margin: 14px 0 30px; }
.timestamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--border); margin: 0; padding-top: 26px; }
.timestamps dt { font-size: .75rem; color: var(--muted); margin-bottom: 10px; }
.timestamps dd { margin: 0; font-size: .85rem; font-variant-numeric: tabular-nums; line-height: 1.7; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; font-size: .75rem; color: var(--muted); line-height: 1.7; }
.page-footer p { margin: 0; }
.noscript { padding: 16px; border: 1px solid var(--border); background: white; color: var(--ink); }
@media (max-width: 640px) {
  .shell { width: min(100% - 32px, 980px); margin-top: 40px; }
  .page-header { align-items: flex-start; flex-direction: column; gap: 22px; margin-bottom: 26px; }
  .status-card { padding: 24px; }
  .card-topline { align-items: flex-start; flex-direction: column; gap: 14px; }
  .status-description { margin-bottom: 28px; }
  .timestamps { grid-template-columns: 1fr; gap: 18px; }
  .timestamps dt { margin-bottom: 3px; }
  .page-footer { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Keep the queue distinct from the active run on narrow and wide screens. */
.status-card + .status-card { margin-top: 24px; }
