
:root { color-scheme: light dark; --accent: #0b6e4f; --muted: #6b7280; --line: #d1d5db; --bg: #fff; --fg: #111827; --danger: #b91c1c; }
@media (prefers-color-scheme: dark) { :root { --bg: #111418; --fg: #e5e7eb; --line: #374151; --muted: #9ca3af; } }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--fg); }
a { color: var(--accent); }
header.top { display: flex; gap: 1rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
header.top .brand { font-weight: 700; text-decoration: none; margin-right: auto; }
header.top form { margin: 0; }
nav.tabs { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .5rem 1rem; border-bottom: 1px solid var(--line); }
nav.tabs .site { font-weight: 600; margin-right: .5rem; }
nav.tabs a[aria-current] { font-weight: 600; text-decoration: none; color: var(--fg); }
main { max-width: 64rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.5rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td.actions { white-space: nowrap; }
td.actions form { display: inline; margin: 0 .5rem 0 0; }
label { display: block; margin: .5rem 0; }
label.check { display: flex; gap: .5rem; align-items: center; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; max-width: 32rem; padding: .4rem .5rem; font: inherit; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; }
input[type=number] { max-width: 6rem; }
button, .button { display: inline-block; padding: .45rem 1rem; font: inherit; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; }
button.link { background: none; color: var(--accent); padding: 0; text-decoration: underline; }
button.danger { background: var(--danger); }
form.inline { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; margin: 1rem 0; }
.card h2, .card h3 { margin-top: 0; }
fieldset.field-row { border: 1px solid var(--line); border-radius: 8px; margin: .75rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0 1rem; align-items: end; }
fieldset.field-row legend { font-weight: 600; }
.hint, .muted { color: var(--muted); font-size: .9rem; }
.notice { background: color-mix(in srgb, var(--accent) 12%, transparent); padding: .5rem .75rem; border-radius: 6px; }
.error { color: var(--danger); }
div.error { border: 1px solid var(--danger); border-radius: 6px; padding: .25rem .75rem; }
.badge { font-size: .8rem; padding: 0 .4rem; border-radius: 4px; background: #f59e0b; color: #111; }
.filters a { margin-right: .75rem; }
.filters a[aria-current] { font-weight: 600; text-decoration: none; color: var(--fg); }
.filters .right { float: right; }
dl.lead { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: .25rem 1rem; }
dl.lead dt { color: var(--muted); }
dl.lead dd { margin: 0; overflow-wrap: anywhere; }
dl.lead dd.text { white-space: pre-wrap; }
pre.code, code.secret { display: block; padding: .75rem; border-radius: 6px; background: color-mix(in srgb, var(--fg) 8%, transparent); overflow-x: auto; white-space: pre; user-select: all; }
