:root {
  --bg: #fbfaf8;
  --panel: #ffffff;
  --ink: #1d1c1a;
  --muted: #6b6862;
  --line: #e4e1db;
  --accent: #b4441b;
  --accent-ink: #ffffff;
  --ok: #2f7a4d;
  --off: #8a8780;
  --bad: #a3271f;
  --code-bg: #f3f1ec;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --panel: #1f1e1c;
    --ink: #ece9e3;
    --muted: #9a968e;
    --line: #33312e;
    --accent: #e8703f;
    --accent-ink: #1a1009;
    --ok: #6cc08a;
    --off: #8a8780;
    --bad: #ef8078;
    --code-bg: #262422;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
main { max-width: 44rem; margin: 0 auto; padding: 2rem 1rem 4rem; }
header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
h1 { font-size: 1.25rem; margin: 0; letter-spacing: -0.01em; }
h1 span { color: var(--accent); }
h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 0.75rem; font-weight: 600; }
p { margin: 0 0 0.75rem; }
.who { color: var(--muted); font-size: 0.9rem; display: flex; gap: 0.75rem; align-items: baseline; flex-wrap: wrap; }
section {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.25rem; margin-bottom: 1rem;
}
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.state { font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.state::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--off); }
.state.running::before { background: var(--ok); }
.state.unknown::before { background: var(--bad); }
.muted { color: var(--muted); font-size: 0.9rem; }
.error {
  border: 1px solid var(--bad); color: var(--bad); border-radius: 8px;
  padding: 0.6rem 0.8rem; margin-bottom: 1rem; font-size: 0.95rem;
}
pre, code, textarea, .fp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }
pre {
  background: var(--code-bg); border-radius: 6px; padding: 0.7rem 0.8rem; margin: 0 0 0.5rem;
  overflow-x: auto; white-space: pre;
}
button, .button {
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 6px; padding: 0.4rem 0.9rem; text-decoration: none; display: inline-block;
}
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.link { border: 0; background: none; padding: 0; color: var(--muted); font-weight: 400; text-decoration: underline; }
button.link:hover { color: var(--bad); }
button:focus-visible, .button:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
form { margin: 0; }
ul.keys { list-style: none; margin: 0 0 1rem; padding: 0; }
ul.keys li {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
}
ul.keys li > div { min-width: 0; }
.fp { overflow-wrap: anywhere; display: block; }
textarea {
  width: 100%; min-height: 5.5rem; resize: vertical; padding: 0.6rem;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink);
  margin-bottom: 0.6rem;
}
label { display: block; font-size: 0.9rem; margin-bottom: 0.35rem; }
.signin { display: flex; gap: 0.75rem; flex-wrap: wrap; }
