:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --ink: #2a2118;
  --muted: #6e6253;
  --line: #e2d8c6;
  --accent: #a86b12;
  --accent-ink: #fffaf0;
  --good: #2f7d32;
  --warn: #b26a00;
  --bad: #b3261e;
  --code: #efe7d8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --surface: #221c16;
    --ink: #eee5d6;
    --muted: #a99c89;
    --line: #3a3026;
    --accent: #d9a441;
    --accent-ink: #1b1510;
    --good: #6cc070;
    --warn: #e0a43a;
    --bad: #ef7d74;
    --code: #2d251d;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 8px; flex-wrap: wrap; }
h1 { margin: 0; font: 700 2rem/1.1 Georgia, "Times New Roman", serif; letter-spacing: 0.01em; }
.tagline { margin: 4px 0 0; color: var(--muted); }
.nav { display: flex; gap: 20px; padding-bottom: 12px; overflow-x: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.is-online .dot { background: var(--good); }
.is-starting .dot { background: var(--warn); }
.is-offline .dot { background: var(--bad); }
section { padding: 28px 0 8px; }
h2 { margin: 0 0 8px; font: 700 1.5rem/1.2 Georgia, "Times New Roman", serif; }
h3 { margin: 0 0 12px; font-size: 1.15rem; }
.lead { margin: 0 0 16px; color: var(--muted); max-width: 680px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.button { display: inline-block; border: 0; border-radius: 8px; padding: 11px 18px; background: var(--accent); color: var(--accent-ink); font: 700 1rem/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(1.08); }
.button:disabled { opacity: 0.6; cursor: progress; }
.meta { margin: 8px 0 0; color: var(--muted); font-size: 0.875rem; }
.note { color: var(--muted); font-size: 0.875rem; margin: 12px 0 0; }
.steps { margin: 16px 0 0; padding-left: 1.3em; }
.steps li { margin: 4px 0; }
.hashes { margin-top: 16px; }
.hashes summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.hashes dl { margin: 12px 0 0; }
.hashes dt { font-weight: 600; margin-top: 8px; }
.hashes dd { margin: 2px 0 0; }
code, .hash { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.85rem; background: var(--code); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.status { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; }
.stat .label { color: var(--muted); font-size: 0.875rem; }
.stat .value { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.status .names, .status .meta { grid-column: 1 / -1; margin: 0; }
.names { overflow-wrap: anywhere; }
.state-online { color: var(--good); }
.state-starting { color: var(--warn); }
.state-offline { color: var(--bad); }
.notes article { margin-bottom: 16px; }
.notes h3 { font: 700 1.05rem/1.3 inherit; font-family: inherit; margin: 0 0 6px; color: var(--muted); }
.notes ul { margin: 0; padding-left: 1.3em; }
.notes li { margin: 3px 0; }
.form { display: grid; gap: 14px; max-width: 460px; }
.form label { display: grid; gap: 4px; font-weight: 600; }
.form input { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.result { margin: 0; min-height: 1.5em; font-weight: 600; }
.result.ok { color: var(--good); }
.result.err { color: var(--bad); }
.foot { padding-top: 24px; padding-bottom: 32px; color: var(--muted); font-size: 0.85rem; }
.hs-controls { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.hs-controls label { display: grid; gap: 4px; font-weight: 600; font-size: 0.875rem; flex: 1 1 200px; max-width: 320px; }
.hs-controls select, .hs-controls input { font: inherit; font-weight: 400; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.hs-controls select:focus, .hs-controls input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hs-scroll { overflow-x: auto; }
.hs-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hs-table th, .hs-table td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hs-table th { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.hs-table .num { text-align: right; }
.hs-table tbody tr:hover { background: var(--bg); }
.linklike { font: inherit; padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linklike:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hs-card { margin-top: 16px; }
.hs-card:empty { display: none; }
.hs-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hs-card-head h3 { margin-bottom: 8px; }
