:root {
    --bg: #f4f5f7;
    --card: #ffffff;
    --text: #1d2129;
    --muted: #6b7280;
    --line: #e3e5e8;
    --accent: #2f6fde;
    --ok: #18794e;
    --bad: #c0362c;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #16181c;
        --card: #1f2227;
        --text: #e6e8eb;
        --muted: #9aa1ab;
        --line: #30343b;
        --accent: #5b8ff0;
        --ok: #4cc38a;
        --bad: #f0786d;
    }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.wrap { max-width: 1050px; margin: 0 auto; padding: 0 16px; }
header { background: var(--card); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 54px; gap: 12px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.brand span { font-weight: 400; color: var(--muted); }
main { padding-top: 20px; padding-bottom: 40px; }
h1 { font-size: 22px; margin: 0 0 12px; }
h2 { font-size: 17px; margin: 0 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; }
.center { max-width: 420px; margin: 60px auto; text-align: center; }
.muted { color: var(--muted); font-size: 13px; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
code { background: var(--bg); padding: 1px 5px; border-radius: 4px; }
label { display: block; margin-bottom: 10px; }
label input { display: block; width: 100%; margin-top: 3px; }
label.check { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
label.check input { display: inline; width: auto; margin: 0; }
input, select, button, .button { font: inherit; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
button, .button { background: var(--accent); border-color: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.small { padding: 3px 8px; font-size: 13px; background: var(--card); color: var(--text); border-color: var(--line); }
button.link { background: none; border: none; color: var(--accent); padding: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row input[name="name"], .row input[name="github_token"] { flex: 1 1 240px; }
.inline { display: inline; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--card); }
.flash.ok { border-color: var(--ok); }
.flash.error { border-color: var(--bad); color: var(--bad); }
.newkey { border-color: var(--accent); }
.keyrow { display: flex; gap: 8px; }
.keyrow input { flex: 1; font-family: ui-monospace, Consolas, monospace; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; border-top: none; }
td.actions { white-space: nowrap; }
td.actions form { margin-right: 4px; }
tr.blocked td, tr.expired td { opacity: .6; }
details summary { cursor: pointer; color: var(--muted); margin: 6px 0; }
