:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #334155;
  --line: #cbd5e1;
  --panel: #ffffff;
  --ground: #f1f5f9;
  --accent: #0f766e;
  --warn: #92400e;
  --stop: #9f1239;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: var(--ink); background: var(--ground); }
.site-header, main { max-width: 52rem; margin: 0 auto; padding: 1rem; }
.site-header h1 { margin: 1rem 0 0.25rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 0.5rem; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.status { font-weight: 600; }
#capacity[data-status="near"] .status { color: var(--warn); }
#capacity[data-status="at_limit"] .status, #capacity[data-status="paused"] .status { color: var(--stop); }
.meters { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.meters li { display: grid; grid-template-columns: 1fr 8rem 5rem; gap: 0.5rem; align-items: center; }
meter { width: 100%; }
form { display: grid; gap: 0.5rem; }
input[type="text"], input:not([type]) { font: inherit; padding: 0.5rem; border: 1px solid var(--muted); border-radius: 0.25rem; }
fieldset { border: 1px solid var(--line); border-radius: 0.25rem; }
.accents { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch { padding: 0.25rem 0.75rem; border-radius: 999px; color: #ffffff; }
.swatch-teal { background: #0f766e; }
.swatch-amber { background: #b45309; }
.swatch-violet { background: #6d28d9; }
.swatch-rose { background: #be123c; }
.swatch-slate { background: #334155; }
button { font: inherit; padding: 0.6rem 1rem; border: 0; border-radius: 0.25rem; background: var(--accent); color: #ffffff; cursor: pointer; }
button:disabled { background: #64748b; cursor: not-allowed; }
.error { color: var(--stop); min-height: 1.5em; }
.notice { border-left: 0.25rem solid var(--accent); padding: 0.5rem 1rem; background: #ecfdf5; }
.notice a { margin-right: 1rem; color: #065f46; }
.timeline { padding-left: 1.25rem; }
.timeline li { margin: 0.25rem 0; }
.timeline li[data-status="failed"] { color: var(--stop); }
.timeline li[data-status="retry"] { color: var(--warn); }
.step-status, .step-note { margin-left: 0.5rem; color: var(--muted); }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; }
.summary dd { margin: 0; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 0.25rem 0.5rem; }
@media (max-width: 40rem) {
  .meters li { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
