:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #16202c;
  --muted: #5a6877;
  --line: #d6dde5;
  --accent: #1e5aa8;
  --accent-ink: #ffffff;
  --good: #1b7a45;
  --warn: #9a5b00;
  --bad: #b3261e;
  --radius: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161d;
    --panel: #18212b;
    --ink: #e7edf3;
    --muted: #9aa8b6;
    --line: #2c3946;
    --accent: #6ea8ef;
    --accent-ink: #0b1622;
    --good: #5fcf8e;
    --warn: #e6b450;
    --bad: #ff8a80;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.brand span { font-weight: 400; color: var(--muted); margin-left: 6px; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a.current { border-bottom-color: var(--accent); }
#who { margin-left: auto; color: var(--muted); font-size: 14px; display: flex; gap: 12px; align-items: center; }
main { max-width: 1000px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 24px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 28px 0 10px; }
.muted { color: var(--muted); }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.row > .grow { flex: 1 1 240px; min-width: 0; }
.site-name { font-weight: 600; font-size: 17px; text-decoration: none; }
.pill {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.pill.live { color: var(--good); }
.pill.staged, .pill.waiting { color: var(--warn); }
.pill.failed { color: var(--bad); }
.pill.none { color: var(--muted); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 0; }
dt { color: var(--muted); }
dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
button, .button {
  font: inherit;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.danger { color: var(--bad); border-color: var(--bad); }
button:disabled { opacity: 0.5; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=number], select {
  font: inherit;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
}
form .field { margin-bottom: 12px; }
form .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; margin-right: 14px; color: var(--ink); }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.secret {
  display: block;
  padding: 10px;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 6px;
  margin: 8px 0;
  user-select: all;
}
.job {
  max-width: 1000px;
  margin: 12px auto 0;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.job.failed { border-color: var(--bad); }
.job.done { border-color: var(--good); }
.job pre { margin: 6px 0 0; white-space: pre-wrap; font-size: 13px; color: var(--muted); }
.notice { max-width: 560px; margin: 12vh auto; padding: 24px 16px; text-align: center; }
.problem { color: var(--bad); }
ul.plain { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 520px) {
  dl { grid-template-columns: 1fr; }
  dt { margin-top: 6px; }
}
