:root {
  --bg: #f6f7f9; --fg: #1d2330; --muted: #5d6577; --card: #fff; --line: #dde1e8;
  --accent: #5865f2; --link: #3b49df; --ok: #1f8f4e; --warn: #a76b00; --bad: #c0392b; --wait: #5d6577;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #16181d; --fg: #e6e8ee; --muted: #9aa1b2; --card: #1f2229; --line: #30343e; --link: #8ea1ff; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.7 system-ui, "Hiragino Sans", "Yu Gothic UI", sans-serif; }
header.top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; }
nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--fg); }
main a:not(.button) { color: var(--link); }
main { max-width: 760px; margin: 0 auto; padding: 24px 20px 48px; }
h1 { font-size: 1.6rem; margin: 0 0 16px; }
h2 { font-size: 1.1rem; margin: 0 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin: 16px 0; }
.button, button.button { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button.small { padding: 6px 14px; font-size: .92rem; }
nav .button { padding: 6px 14px; color: #fff; }
button.link { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
form.inline { display: inline; }
.form label { display: block; margin-bottom: 16px; font-weight: 600; }
.form input { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.form label.check { font-weight: 600; }
.form label.check input { display: inline; width: auto; margin: 0 6px 0 0; }
.actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 8px 0 0; }
.form small { display: block; font-weight: 400; color: var(--muted); }
.alert { padding: 10px 14px; border-radius: 8px; border: 1px solid; }
.alert.bad { color: var(--bad); }
.alert.ok { color: var(--ok); }
.hint, .meta { color: var(--muted); font-size: .92rem; margin: 4px 0; }
.request .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.request h2 { margin: 0; }
.badge { font-size: .85rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.badge.ok { color: var(--ok); } .badge.warn { color: var(--warn); } .badge.bad { color: var(--bad); } .badge.wait { color: var(--wait); }
.note { white-space: pre-wrap; border-left: 3px solid var(--line); padding-left: 12px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
.hash { word-break: break-all; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px; }
