/* Account screens: same Plumma identity, compact controls and useful feedback. */
#device #authGate{padding:24px 16px!important;isolation:isolate;color:var(--pl-fg);background:var(--pl-bg)!important}
#device #authGate>:is(.auth-card,.auth-entry,.auth-intro){width:min(432px,100%)!important;max-width:432px!important;margin:auto!important;padding:24px!important;background:var(--pl-surface)!important;border:1px solid var(--pl-border);border-radius:24px;box-shadow:var(--pl-shadow-card,0 8px 32px #0000000d);font-family:Inter,system-ui,sans-serif}
#device #authGate>[hidden],#authGate [hidden]{display:none!important}
#device #authGate .auth-form-brand,#device #authGate .auth-start-brand{margin:0 0 20px!important;display:flex;justify-content:center;pointer-events:none}
#device #authGate .auth-form-brand img,#device #authGate .auth-start-brand img{width:156px!important;height:32px!important;object-fit:contain}
#device #authGate .auth-back{position:absolute;top:18px;left:16px;z-index:4;pointer-events:auto;cursor:pointer;margin:0!important;border:0;width:44px;height:44px;color:var(--pl-fg)}
#device #authGate .auth-form-head{margin:0 0 16px;text-align:center}
#device #authGate :is(.auth-form-head h1,.auth-entry h1,.auth-welcome-heading){font-size:1.65rem!important;line-height:1.25;letter-spacing:-.035em;margin:0 0 8px!important;font-weight:600!important}
#device #authGate .lead,#device #authGate .auth-value-proposition{font-size:.875rem;line-height:1.6;color:var(--pl-muted);margin:0}
#device #authGate .field{gap:5px;margin:0 0 12px}
#device #authGate .field label{font-size:.8125rem;line-height:1.5;color:var(--pl-fg);font-weight:500}
#device #authGate .input{min-height:44px;height:44px;padding:9px 12px;border-radius:12px!important;background:var(--pl-control-bg,var(--pl-surface))!important;font-size:1rem!important}
#device #authGate .btn{min-height:44px;margin:0;padding:9px 16px;font-weight:600;font-size:.875rem!important}
#device #authGate .auth-visibility{width:44px;min-width:44px;height:44px;min-height:44px;right:2px;border-radius:50%;border:0;box-shadow:none;appearance:none;-webkit-tap-highlight-color:transparent}
#device #authGate .auth-visibility:is(:hover,:active,:focus){background:transparent}
#device #authGate .auth-links{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;flex-wrap:wrap}
#device #authGate :is(.auth-link,.auth-links a,.auth-links button){font-size:.8125rem;min-height:44px;color:var(--pl-fg);text-underline-offset:4px;cursor:pointer}
#device #authGate .auth-consent{min-height:44px;align-items:center;gap:10px;margin:0 0 10px;font-size:.8125rem;line-height:1.5;color:var(--pl-muted)}
#device #authGate .auth-consent a{display:inline;padding:0;min-height:0;color:var(--pl-fg)}
#device #authGate .auth-consent input{margin:0;width:20px;height:20px}
#device #authGate .auth-footer{margin-top:12px;padding-top:10px;border-top:1px solid var(--pl-border)}
#device #authGate .auth-footer .auth-legal{font-size:.75rem;line-height:1.6}
#device #authGate .auth-footer-links{margin:0}
#device #authGate .auth-message{margin:12px 0 0;font-size:.875rem;line-height:1.6;color:var(--pl-fg);overflow-wrap:anywhere}
#device #authGate .auth-message:empty{display:none}
#device #authGate .auth-message:not(:empty){padding:12px 14px;border:1px solid var(--pl-border);border-radius:12px;background:var(--pl-soft)}
#device #authGate .auth-message.error{color:var(--pl-error-fg,#a4262c);background:var(--pl-error-bg,#fff0f0);border-color:currentColor}
:root[data-theme=dark] #device #authGate .auth-message.error{color:#ffb4b4;background:#301d1d}
#device #authGate .auth-message:focus{outline:2px solid var(--pl-primary);outline-offset:3px}
#device #authGate .auth-recovery-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
#device #authGate .auth-recovery-actions a{grid-column:1/-1;justify-self:center}
#device #authGate .auth-field-pair{display:grid;grid-template-columns:1fr;gap:0}
#device #authGate .ui-password-strength{--auth-strength:#b83241;display:block;margin:-2px 0 8px}
#device #authGate .password-strength-heading{display:flex;align-items:center;gap:10px;font-size:.75rem;line-height:1.5;color:var(--pl-muted)}
#device #authGate .password-strength-track{display:block;width:88px;flex:0 0 88px;height:4px;background:var(--pl-border);border-radius:4px;overflow:hidden}
#device #authGate .password-strength-track i{display:block;width:100%;height:100%;border-radius:inherit;background:var(--auth-strength);transform:scaleX(0);transform-origin:left;transition:transform .18s ease,background-color .18s ease}
#device #authGate .ui-password-strength[data-score="2"]{--auth-strength:#a66b12}
#device #authGate .ui-password-strength[data-score="3"]{--auth-strength:#63751a}
#device #authGate .ui-password-strength[data-score="4"]{--auth-strength:#23734c}
:root[data-theme=dark] #device #authGate .ui-password-strength{--auth-strength:#ff8a91}
:root[data-theme=dark] #device #authGate .ui-password-strength[data-score="2"]{--auth-strength:#e4b24d}
:root[data-theme=dark] #device #authGate .ui-password-strength[data-score="3"]{--auth-strength:#b0cb68}
:root[data-theme=dark] #device #authGate .ui-password-strength[data-score="4"]{--auth-strength:#80c9a0}
#device #authGate .password-rules{display:grid;grid-template-columns:1fr;gap:3px;margin:0 0 14px;padding:0;font-size:.75rem;line-height:1.5;color:var(--pl-muted);list-style:none}
#device #authGate .password-rules li{display:flex;align-items:flex-start;gap:6px}
#device #authGate .password-rules li>span:first-child{width:14px;flex:none}
#device #authGate .password-rules [data-met=true]{color:var(--pl-fg)}
#device #authGate .auth-captcha{min-width:0;margin:0 0 12px;width:100%;min-height:0}
#device #authGate .auth-captcha-widget{min-width:0;width:100%}
#device #authGate .auth-captcha p{margin:6px 0 0;font-size:.8125rem;line-height:1.5;color:var(--pl-muted)}
#device #authGate .captcha-retry{padding:0;text-decoration:underline}
#device #authGate .auth-progress{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:24px;background:var(--pl-bg);color:var(--pl-fg)}
#device #authGate .auth-progress-content{display:grid;justify-items:center;gap:20px;text-align:center}
#device #authGate .auth-progress-content img{object-fit:contain;filter:brightness(0) saturate(100%)}
:root[data-theme=dark] #device #authGate .auth-progress-content img{filter:brightness(0) invert(1)}
#device #authGate .auth-progress-content p{font-size:.9375rem;margin:0;line-height:1.5}
#device #authGate .auth-progress-ring{width:26px;height:26px;border:3px solid var(--pl-border);border-top-color:var(--pl-primary);border-radius:50%;animation:plumma-auth-orbit .85s linear infinite}
@keyframes plumma-auth-orbit{to{transform:rotate(360deg)}}
@media(max-width:480px){#device #authGate{padding:16px 12px!important;padding-top:max(16px,env(safe-area-inset-top))!important;padding-bottom:max(16px,env(safe-area-inset-bottom))!important}#device #authGate>:is(.auth-card,.auth-entry,.auth-intro){padding:20px!important;border-radius:20px}#device #authGate .auth-field-pair{grid-template-columns:1fr;gap:0}#device #authGate .auth-back{top:14px;left:10px}#device #authGate .auth-form-head h1{font-size:1.5rem!important}}
@media(max-width:350px){#device #authGate .password-rules{grid-template-columns:1fr}#device #authGate .auth-recovery-actions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#device #authGate .auth-progress-ring{animation:none;border-top-color:var(--pl-primary)}#device #authGate .password-strength-track i{transition:none}}

#device #authGate .field label{margin:0;padding:0;min-height:0}
#device #authGate .auth-form-brand{min-height:32px!important;height:32px!important}
#device #authGate .auth-progress-content img{filter:brightness(0) saturate(100%)}


#device #authGate #authMfaForm>label{display:block;margin:0 0 6px;font-size:.8125rem}
#device #authGate #authMfaForm>.input{margin:0 0 16px}

/* Restore the welcome choice from the approved reference, inside the shared card. */
#device #authGate #authStart{padding:36px 28px 24px!important;text-align:center}
#device #authGate #authStart .auth-choice{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0}
#device #authGate #authStart .auth-start-brand{margin:0 0 32px!important}
#device #authGate #authStart .auth-start-brand img{width:184px!important;height:38px!important}
#device #authGate #authStart .auth-welcome-heading{margin:0 0 12px!important;font-size:1.875rem!important;font-weight:500!important}
#device #authGate #authStart .auth-value-proposition{max-width:none;margin:0 0 28px;font-size:.8125rem;line-height:1.6}
#device #authGate #authStart .auth-choice>.btn{margin:0 0 12px}
#device #authGate #authStart .auth-footer{margin-top:16px;border-top:0}
#device #authGate #signupSubmit:disabled{background:var(--auth-disabled-bg,#d4c8e7)!important;color:var(--auth-disabled-fg,#4d405d)!important;opacity:1;cursor:not-allowed;box-shadow:none;filter:none}
:root[data-theme=dark] #device #authGate #signupSubmit:disabled{--auth-disabled-bg:#382e48;--auth-disabled-fg:#bfb2ce}
#device #authGate .input:autofill{color:var(--pl-fg)!important;background:var(--pl-surface)!important}
#device #authGate .input:-webkit-autofill{-webkit-text-fill-color:var(--pl-fg)!important;-webkit-box-shadow:0 0 0 1000px var(--pl-surface) inset!important;caret-color:var(--pl-fg)}
