:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e2e6e5;
  background: #141817;
  font-size: 14px;
  font-synthesis: none;
  --muted: #a1aba6;
  --line: #303833;
  --green: #a4dbba;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { background: transparent; border: 1px solid #414b44; border-radius: 6px; padding: 9px 13px; min-height: 40px; }
button:hover { background: #252d28; }
button:disabled { opacity: .4; cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible,
a:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
input, select { background: #1b211d; border: 1px solid #414b44; border-radius: 6px; padding: 10px; min-height: 42px; max-width: 100%; }
label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
summary { color: var(--muted); padding: 10px 0; width: fit-content; }
summary:hover { color: #e2e6e5; }
details:not([open]) > :not(summary) { display: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); line-height: 1.6; }
.small { font-size: 12px; }
.main { max-width: 1080px; padding: 0 32px 32px; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 23px 0; border-bottom: 1px solid var(--line); margin-bottom: 36px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 600; margin: 0; }
.brand span { color: var(--muted); font-weight: 400; }
.text-button { border: 0; color: var(--muted); padding: 8px; }
.health-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.health-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; margin: 0; }
.health-heading > span { font-size: 13px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.dot.warning { background: #e7bd7c; }
.dot.error { background: #e39c9c; }
.health-more { font-size: 12px; margin-top: 5px; }
.health-more p { max-width: 650px; }
.health-details { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 16px 0; }
dt { color: var(--muted); margin-bottom: 6px; }
dd { margin: 0; }
.metrics { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 20px 0 10px; color: var(--muted); font-size: 13px; }
.metrics-scope { margin: 0 0 28px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.metrics strong { color: #e2e6e5; font-weight: 600; margin-right: 3px; font-variant-numeric: tabular-nums; }
.history { border-top: 1px solid var(--line); padding-top: 28px; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading h2 { font-size: 19px; font-weight: 500; margin: 0; }
.count { color: var(--muted); font-size: 13px; margin-left: 5px; }
.filter-panel { margin: 8px 0 18px; font-size: 12px; }
.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; padding: 12px 0; }
.filters select { min-width: 180px; }
.filters button { min-height: 42px; }
.table-wrap { position: relative; overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 400; font-size: 12px; padding: 12px; border-bottom: 1px solid var(--line); }
td { padding: 16px 12px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
td small { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; }
.row-model { max-width: 180px; white-space: normal; overflow-wrap: anywhere; }
.badge { display: inline-block; color: #c3cec8; font-size: 12px; }
.badge.completed { color: var(--green); }
.badge.processing, .badge.delivering { color: #a8cce5; }
.badge.queued, .badge.retrying, .badge.interrupted { color: #e7bd7c; }
.badge.failed { color: #efa4a4; }
.detail-button { font-size: 12px; }
.detail-cell { background: #1b211d; padding: 20px !important; white-space: normal; line-height: 1.7; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; overflow-wrap: anywhere; }
.detail-grid strong { display: block; color: #d9e1db; font-size: 12px; font-weight: 500; }
.detail-grid span, .detail-cell p, .attempt-list { font-size: 12px; }
.attempt-list { padding-left: 20px; overflow-wrap: anywhere; }
.empty { text-align: center; padding: 55px 16px; border-bottom: 1px solid var(--line); }
.empty h3 { font-size: 15px; font-weight: 500; margin: 0 0 10px; }
.empty p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.table-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; color: var(--muted); font-size: 12px; }
.table-footer > div { display: flex; gap: 8px; }
.table-footer button { font-size: 12px; }
.page-footer { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.page-footer > span:last-child { margin-left: auto; }
.notice { background: #30291f; color: #f1ce98; border-radius: 6px; padding: 14px; line-height: 1.6; margin-bottom: 24px; }
.notice.error { background: #382327; color: #f6b3b9; }
.demo-banner { background: #493b20; color: #ffe5a4; text-align: center; padding: 10px; font-size: 12px; }
.login-layout { display: grid; place-items: center; min-height: 100vh; padding: 28px; }
.login-card { width: 100%; max-width: 360px; }
.login-card .brand { margin-bottom: 40px; }
.login-card h1 { font-size: 24px; font-weight: 500; margin: 0 0 10px; }
.login-card > .muted { margin-bottom: 28px; }
.login-card input { width: 100%; margin-bottom: 22px; }
.primary { background: var(--green); border-color: var(--green); color: #14241a; font-weight: 600; }
.primary:hover { background: #b9e8cb; }
.login-card .primary { width: 100%; }
.login-card .small { margin-top: 24px; line-height: 1.8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 650px) {
  .main { padding: 0 20px 24px; }
  .topbar { padding: 17px 0; margin-bottom: 28px; }
  .health-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .health-heading h2 { font-size: 16px; }
  .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .filters > div { flex: 1 1 100%; }
  .filters select, .filters input { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .table-footer { flex-wrap: wrap; }
  .page-footer > span:last-child { margin-left: 0; }
}
