body.auth-pending > .app, body.auth-pending > .modal-overlay { display: none !important; }
.auth-portal { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(100%, 420px); padding: 30px; }
.auth-card h1 { color: var(--primary); font-size: 25px; margin: 10px 0; line-height: 1.25; }
.auth-card > p { font-size: 13px; line-height: 1.6; }
.auth-eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 2px; color: var(--accent); }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.auth-field { display: flex; flex-direction: column; gap: 6px; color: var(--primary); font-size: 12px; font-weight: 600; }
.auth-field input, .auth-field select { width: 100%; padding: 9px 11px; min-height: 40px; font-size: 14px; font-weight: 400; background: white; color: var(--text-main); border: 1px solid var(--border); }
.auth-message { color: #a33516; font-size: 12px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.auth-message:empty { display: none; }
.auth-help { font-size: 12px; line-height: 1.6; color: var(--text-muted); }
.auth-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.auth-idle-note { font-size: 10px; }
.auth-settings { padding: 12px 0; border-top: 1px solid var(--border); }
.auth-settings > summary, .auth-account-row > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--primary); line-height: 1.6; }
.auth-settings .auth-form { max-width: 460px; }
.auth-dialog { width: min(460px, calc(100vw - 24px)); max-height: 90vh; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 22px; background: white; color: var(--text-main); }
.auth-dialog::backdrop { background: #0b273b70; }
.auth-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-dialog h2 { margin: 0; color: var(--primary); font-size: 18px; }
.auth-dialog p { font-size: 12px; line-height: 1.6; }
.auth-admin-card { margin-top: 12px; }
.auth-admin-card h3 { font-size: 13px; margin: 24px 0 10px; }
.auth-account-row { border-bottom: 1px solid var(--border); padding: 12px 0; }
#local-update-status { font-size: 11px; color: var(--text-muted); }
@media (max-width: 600px) { .auth-card { padding: 23px; } .auth-actions { gap: 8px; } .auth-idle-note { display: none; } .auth-dialog { padding: 16px; } }

.auth-success { color: #1e537d; font-weight: 600; }
.auth-admin-card > .auth-form { max-width: 500px; }
[data-production-mail], .production-mode [data-local-mail] { display: none !important; }
.production-mode [data-production-mail] { display: block !important; }
#local-loading-status:empty { display:none; }
