:root {
  --bg: #fafafa; --frame: #f4f4f5; --frame-2: #e4e4e7; --card: #ffffff; --ink: #09090b; --ink-2: #3f3f46; --muted: #71717a; --faint: #a1a1aa; --rule: #f4f4f5; --on-accent: #ffffff;
  --accent: #059669; --accent-ink: #047857; --accent-soft: #ecfdf5; --accent-mid: #d1fae5; --accent-frame: #a7f3d0;
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --t-stop: #ea580c; --t-stop-bg: #ffedd5; --t-leak-bg: #fee2e2; --t-note-bg: #fef3c7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b; --frame: #18181b; --frame-2: #3f3f46; --card: #111113; --ink: #fafafa; --ink-2: #d4d4d8; --muted: #a1a1aa; --faint: #71717a; --rule: #27272a; --on-accent: #022c22;
    --accent: #10b981; --accent-ink: #6ee7b7; --accent-soft: #052e22; --accent-mid: #064e3b; --accent-frame: #065f46;
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.4); --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.5), 0 1px 2px -1px rgb(0 0 0 / 0.4);
    --t-stop: #fb923c; --t-stop-bg: #3a1d0c; --t-leak-bg: #3b1416; --t-note-bg: #3a2c0b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px 64px; }
.topnav .wrap { display: flex; align-items: center; gap: 4px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; margin-right: auto; text-decoration: none; }
.brand i { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; color: var(--on-accent); font-size: 13px; font-style: normal; }
.topnav a.nav, .topnav button.nav { font: inherit; font-size: 13px; color: var(--muted); font-weight: 500; padding: 5px 10px; border-radius: 9px; text-decoration: none; background: none; border: 0; cursor: pointer; }
.topnav a.nav:hover, .topnav button.nav:hover { background: var(--frame); color: var(--ink); }
.nav-form { display: contents; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); margin: 32px 0 0; }
h1 { font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; margin: 8px 0 10px; text-wrap: balance; }
.lede { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 56ch; margin: 0 0 24px; }
.frame { background: var(--frame); border-radius: 20px; padding: 2px; box-shadow: var(--shadow-xs); margin-bottom: 16px; }
.frame > .card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-xs); padding: 14px 18px; display: grid; gap: 10px; }
.frame.failed { background: var(--t-stop-bg); }
.frame.done { background: var(--accent-frame); }
.card b.title { font-size: 16px; font-weight: 500; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; }
label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
input[type=url], input[type=email] { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--frame-2); border-radius: 10px; padding: 9px 12px; width: 100%; }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button.primary, a.button { font: inherit; font-weight: 600; font-size: 13.5px; color: var(--on-accent); background: var(--accent); border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; justify-self: start; text-decoration: none; display: inline-block; }
button.primary:hover, a.button:hover { background: var(--accent-ink); }
button.button { font: inherit; font-weight: 600; font-size: 13.5px; color: var(--ink); background: var(--frame); border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; justify-self: start; }
button.button:hover { background: var(--frame-2); }
button.primary:disabled, button.button:disabled { opacity: 0.6; cursor: progress; }
.card p.form-error { color: var(--t-stop); background: var(--t-stop-bg); border-radius: 10px; padding: 8px 12px; }
.pill { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 8px; white-space: nowrap; display: inline-block; background: var(--frame); color: var(--muted); }
.pill.running, .pill.starting, .pill.delivering { background: var(--t-note-bg); color: var(--ink-2); }
.pill.done { background: var(--accent); color: var(--on-accent); }
.pill.failed { background: var(--t-leak-bg); color: var(--t-stop); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row .grow { margin-right: auto; }
ul.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
ul.events li { display: grid; grid-template-columns: 64px 70px minmax(0, 1fr); gap: 10px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--rule); }
ul.events li:first-child { border-top: 0; }
ul.events time { color: var(--faint); font-variant-numeric: tabular-nums; }
ul.events .kind { color: var(--muted); font-weight: 600; font-size: 12px; }
ul.events .message { color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-wrap; }
ul.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.list li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; padding: 10px 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow-xs); }
ul.list li a:hover { box-shadow: var(--shadow-sm); }
ul.list .when { color: var(--muted); font-size: 12.5px; }
.empty { color: var(--muted); font-size: 13.5px; margin: 0; }
code { font-size: 12.5px; background: var(--frame); padding: 1px 5px; border-radius: 5px; }
.card p.status-line { color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 56ch; }
ul.progress { list-style: none; margin: 0; padding: 0; display: grid; }
ul.progress li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 13.5px; }
ul.progress li:first-child { border-top: 0; }
ul.progress .label { color: var(--ink); font-weight: 500; }
ul.progress .state { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 8px; white-space: nowrap; background: var(--frame); color: var(--muted); }
ul.progress .state.checking { background: var(--t-note-bg); color: var(--ink-2); }
ul.progress .state.done { background: var(--accent-soft); color: var(--accent-ink); }
ul.progress .state.not_checked { background: var(--frame); color: var(--muted); }
.frame.failed .card p.status-line { color: var(--ink); }
@media (max-width: 720px) {
  .wrap { padding: 0 16px 48px; }
  h1 { font-size: 28px; }
}
