:root { color-scheme: light dark; font-family: -apple-system, system-ui, sans-serif; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: Canvas; color: CanvasText; }
.card { width: min(360px, 100% - 32px); padding: 24px; border-radius: 16px; box-shadow: 0 4px 24px #0002; }
h1 { font-size: 22px; margin: 0 0 16px; }
label { display: grid; gap: 4px; margin-bottom: 12px; font-size: 14px; }
input, button { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid #8886; }
button { width: 100%; background: #0a6cff; color: #fff; border: 0; }
button:disabled { opacity: .5; }
.card:has(#home:not([hidden])) { width: min(760px, 100% - 32px); }
h2 { font-size: 17px; margin: 20px 0 8px; }
.error { color: #d33; font-size: 14px; min-height: 1em; }
#logout { width: auto; }
#audit { overflow-x: auto; }
table { border-collapse: collapse; font-size: 13px; width: 100%; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #8883; white-space: nowrap; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.row input { flex: 1 1 160px; }
.row button { width: auto; }
.note { font-size: 13px; }
.note input { width: 100%; margin-top: 6px; font-size: 12px; }
td { vertical-align: top; }
.actions { display: flex; flex-direction: column; gap: 4px; }
button.small { width: auto; padding: 4px 8px; font-size: 12px; background: #8882; color: inherit; }
label.inline { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
select { font: inherit; padding: 4px; border-radius: 6px; }
.codes { font-family: ui-monospace, monospace; columns: 2; }
.key { font-family: ui-monospace, monospace; font-size: 15px; letter-spacing: .05em; }
#qr { display: block; width: 220px; height: 220px; margin: 8px auto; shape-rendering: crispEdges; }
.muted { opacity: .65; font-size: 13px; }
