:root { color-scheme: dark; background: #0e141d; color: #edf2f9; font: 15px/1.5 system-ui, sans-serif; --line: #303a49; --muted: #a9b7c8; --accent: #f5aa78; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 1080px; margin: 0 auto; padding: 24px 20px 48px; }
header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.brand { color: var(--accent); font-weight: 700; }
h1, h2, p { margin: 0 0 .6rem; }
h1 { font-size: 2rem; }
h2 { font-size: 1.24rem; }
p, small, dt, label { color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
a { color: var(--accent); text-underline-offset: 3px; }
section, dialog { margin-bottom: 16px; padding: 18px; background: #151d28; border: 1px solid var(--line); border-radius: 12px; }
dialog { width: min(420px, 94vw); margin: auto; color: inherit; }
dialog::backdrop { background: #0009; }
section[id] { scroll-margin-top: 12px; }
.metrics, .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px,1fr)); gap: 10px; }
.metrics div { background: #101721; border: 1px solid var(--line); padding: 10px 12px; border-radius: 8px; }
dd { margin: 3px 0 0; font-size: 1.1rem; font-weight: 650; }
form, label { display: grid; gap: 7px; }
form { gap: 11px; }
input, select, button { font: inherit; color: inherit; border: 1px solid #495364; border-radius: 7px; background: #101721; padding: 7px 10px; min-width: 0; }
button { cursor: pointer; background: #202a39; justify-self: start; }
.primary { color: #251b14; background: var(--accent); border-color: var(--accent); font-weight: 700; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
#notice { padding: 10px 13px; background: #202a39; border-radius: 8px; color: #e6edf7; }
#enroll-qr { background: #fff; border-radius: 6px; }
#enroll-secret { overflow-wrap: anywhere; user-select: all; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; }
th,td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }
