[hidden] { display: none !important; }
body.auth-pending > :not(#authGate) { display: none !important; }
body.auth-pending { margin: 0; min-height: 100vh; background: #f3f5f8; }
.auth-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; box-sizing: border-box; font: 15px/1.5 system-ui, sans-serif; color: #17263a; }
.auth-card { width: min(100%, 430px); box-sizing: border-box; background: #fff; border: 1px solid #dce3eb; border-radius: 16px; padding: 28px; box-shadow: 0 12px 36px #17263a0d; }
.auth-card h1 { font-size: 25px; margin: 12px 0 8px; }
.auth-brand { font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #395d79; }
.auth-card p { color: #526478; margin: 8px 0 20px; }
.auth-card form { display: grid; gap: 16px; }
.auth-card label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.auth-card input { width: 100%; min-height: 44px; box-sizing: border-box; border: 1px solid #bac7d5; border-radius: 7px; padding: 10px 12px; font: inherit; color: inherit; background: white; }
.auth-card input:focus-visible, .auth-card button:focus-visible { outline: 3px solid #8bb9e9; outline-offset: 2px; }
.auth-card button { min-height: 44px; padding: 10px 16px; border: 1px solid #1d5078; border-radius: 7px; background: #1d5078; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.auth-card button.secondary { color: #294f6e; background: white; border-color: #bac7d5; }
.auth-card button:disabled { opacity: .6; cursor: wait; }
.auth-card .auth-error { color: #ac2635; margin: 0; white-space: pre-wrap; }
.auth-card .auth-help { font-size: 13px; margin: -5px 0 0; }
.auth-account { display: grid; gap: 6px; padding: 14px; border: 1px solid #dce3eb; border-radius: 9px; background: #fff; color: #17263a; margin: 12px 0; font: 14px/1.4 system-ui, sans-serif; }
.auth-account small { color: #526478; }
.auth-account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.auth-account button { min-height: 36px; border: 1px solid #bac7d5; border-radius: 6px; padding: 6px 10px; background: #fff; color: #294f6e; cursor: pointer; font: inherit; }
.scanner-shell > .auth-account { margin: 10px 16px; }
