:root {
  color-scheme: light dark;
  --background: #f0f4f3;
  --surface: #fff;
  --ink: #172b29;
  --line: #a4b8b1;
  --accent: #006a54;
  --button-text: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #131d20;
    --surface: #1d2b2e;
    --ink: #e4f2ee;
    --line: #668780;
    --accent: #89dec8;
    --button-text: #142521;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--ink); font: 16px/1.5 system-ui, sans-serif; }
main { max-width: 760px; margin: auto; padding: 24px 16px 48px; }
header, nav, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
header { justify-content: space-between; margin-bottom: 24px; }
.brand { font-weight: 750; }
section, #status { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 4vw, 28px); margin-block: 14px; }
h1, h2 { line-height: 1.15; margin-block: 0 .75rem; }
h1 { font-size: clamp(1.7rem, 5vw, 2.25rem); }
h2 { font-size: 1.28rem; }
p { margin-block: 0 1rem; }
form { display: grid; gap: 12px; margin-block: 14px 0; max-width: 420px; }
form p { margin: 0; }
label { display: grid; gap: 4px; }
.check { display: flex; align-items: center; }
button, input, select { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
input, select { width: 100%; color: var(--ink); background: var(--surface); }
input[type="checkbox"] { width: auto; }
button { justify-self: start; background: var(--accent); color: var(--button-text); font-weight: 600; cursor: pointer; }
button.secondary { background: var(--surface); color: var(--ink); }
button:disabled { opacity: .65; cursor: wait; }
a { color: var(--accent); }
#staff-list, #recovery-list { display: grid; gap: 8px; padding-left: 1.25rem; }
#factor-key, #recovery-list { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
dd { margin: 0; text-align: right; }
