
:root {
    color-scheme: light;
    font: 16px/1.5 system-ui, "Microsoft YaHei UI", sans-serif;
    color: #172b26;
    background: #f4f6f2;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1050px; margin: 0 auto; padding: 28px 20px; }
a { color: #0b6048; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1rem; }
header, .section-title, .code-title, .seat { display: flex; flex-wrap: wrap; gap: 10px 20px;
    align-items: center; justify-content: space-between; }
nav { display: flex; flex-wrap: wrap; gap: 14px; }
section, .center { margin-top: 20px; padding: 20px; border: 1px solid #d6dfd9;
    border-radius: 12px; background: #fff; }
.center { max-width: 465px; margin: 10vh auto 0; }
.center > * + *, section > * + * { margin-top: 14px; }
.muted, small { color: #475b54; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input, button { font: inherit; }
input:not([type=hidden]), button { min-height: 42px; border-radius: 7px; padding: 7px 12px; }
input:not([type=hidden]) { width: 100%; border: 1px solid #71867c; color: inherit; background: white; }
button, summary { cursor: pointer; }
button { border: 1px solid #147151; color: white; background: #147151; font-weight: 600; }
button.secondary { background: white; color: #0b6048; }
button.danger { background: white; border-color: #a43031; color: #9c2525; }
button:hover { filter: brightness(.92); }
:focus-visible { outline: 3px solid #1560ac; outline-offset: 3px; }
.form-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.form-row > div { flex: 1 1 230px; }
.login-form > * + * { margin-top: 14px; }
.records, .seats, .audit, .backups { list-style: none; margin-bottom: 0; padding: 0; }
.records > li, .audit > li { border-top: 1px solid #d6dfd9; padding: 12px 0; }
.seats { margin-top: 8px; }
.seats > li { background: #f4f6f2; padding: 8px 12px; border-radius: 6px; margin-top: 5px; }
.seat > div { min-width: 0; }
.seat small { display: block; }
code, output { overflow-wrap: anywhere; }
output { display: block; padding: 10px; background: #e9f2ec; border-radius: 6px;
    color: #0b503c; font: 700 1rem/1.5 ui-monospace, monospace; user-select: all; }
.inline-action { display: inline; }
.confirm { margin-top: 8px; color: #9c2525; }
.confirm button { display: block; margin-top: 5px; }
[role=alert] { color: #9c2525; }
