* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--nf-text); background: var(--nf-canvas); font: 16px/1.6 system-ui, sans-serif; }
.site-header { width: min(1120px, calc(100% - 48px)); margin: auto; padding: 28px 0; border-bottom: 1px solid var(--nf-grid); }
.site-header img { display: block; max-width: 100%; }
.auth-panel { max-width: 480px; margin: 72px auto 80px; padding: 0 24px; }
.eyebrow { color: var(--nf-muted); text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; }
h1 { color: var(--nf-strong); font-weight: 500; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.12; letter-spacing: -.04em; margin: 18px 0; }
h2 { font-size: 1.1rem; font-weight: 600; margin-top: 32px; }
label { display: block; margin: 22px 0 7px; font-size: .85rem; font-weight: 600; }
input, button { font: inherit; border-radius: 5px; }
input[type="email"], input[type="url"] { width: 100%; padding: 12px; color: var(--nf-text); background: var(--nf-surface); border: 1px solid var(--nf-stroke); }
button { display: block; width: 100%; margin-top: 24px; padding: 13px 16px; background: var(--nf-interactive); color: var(--nf-text-on-interactive, white); border: 1px solid var(--nf-interactive); cursor: pointer; }
button span { float: right; }
button:hover { filter: brightness(.94); }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 2px solid var(--nf-interactive); outline-offset: 4px; }
.secondary { background: transparent; color: var(--nf-interactive); }
.text-button { background: transparent; border-color: transparent; color: var(--nf-interactive); padding: 5px; }
.muted, .footnote { color: var(--nf-muted); font-size: .85rem; }
.footnote { margin-top: 40px; border-top: 1px solid var(--nf-grid); padding-top: 20px; }
.notice, #status:not(:empty) { border-left: 3px solid var(--nf-interactive); padding: 10px 14px; background: var(--nf-selected); font-size: .9rem; }
.notice p:first-child { margin-top: 0; }
.notice p:last-child { margin-bottom: 0; }
#status[data-error="true"] { border-color: var(--nf-status-danger); }
.optional { display: block; color: var(--nf-muted); font-weight: 400; font-size: .75rem; }
.check-state { min-height: 1.4em; font-size: .75rem; color: var(--nf-muted); margin: 10px 0 0; }
.check-state[data-state="ready"]::before { content: '✓ '; }
.inset-panel { border-top: 1px solid var(--nf-grid); margin-top: 24px; padding-top: 4px; font-size: .9rem; }
.inset-panel h2 { margin-top: 18px; }
.identity-email { overflow-wrap: anywhere; font-weight: 500; }
fieldset { padding: 0; margin: 24px 0; border: 0; }
legend { font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.choice { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; font-weight: 400; cursor: pointer; }
.choice input { flex: 0 0 auto; width: 16px; height: 16px; margin: 5px 0 0; accent-color: var(--nf-interactive); }
.choice small { display: block; color: var(--nf-muted); font-size: .78rem; line-height: 1.45; margin-top: 3px; }
.qr-card { text-align: center; border: 1px solid var(--nf-stroke); border-radius: 8px; padding: 20px 12px 8px; background: var(--nf-surface); }
.qr-card canvas { display: block; margin: 0 auto; max-width: 100%; width: min(100%, 340px); height: auto; image-rendering: pixelated; background: white; }
.fingerprint { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; white-space: nowrap; }
.request-details { margin: 28px 0; font-size: .9rem; }
.request-details div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--nf-grid); padding: 11px 0; }
.request-details dt { color: var(--nf-muted); }
.request-details dd { margin: 0; overflow-wrap: anywhere; }
.payload-heading { margin-top: 24px; font-size: .85rem; }
.certificate-payload { padding: 14px; border: 1px solid var(--nf-stroke); border-radius: 5px; background: var(--nf-surface); font: .8rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; max-height: 320px; overflow: auto; }
.secondary + .text-button { margin-top: 14px; }
.device-list { padding: 0; list-style: none; }
.device-list li { border-bottom: 1px solid var(--nf-grid); padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.device-list button { width: auto; margin: 0; font-size: .8rem; padding: 5px 10px; }
/* This stylesheet can be reloaded atomically without restarting authentication. */
footer { text-align: center; color: var(--nf-muted); padding: 24px; font-size: .75rem; }
@media (max-width: 600px) { .auth-panel { margin-top: 40px; } }
