/* V24.1: scoped account access; the authenticated mail workspace is unchanged. */
#auth.wm-auth{width:min(1040px,100%);grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:80px;align-items:center;margin:20px auto;padding:12px 28px}
#auth .wm-welcome{min-width:0;animation:auth-rise .5s ease both}
#auth .wm-auth-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--wm-accent);font-size:10px;font-weight:750;letter-spacing:.09em}
#auth .wm-auth-kicker-dot{width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px #5554d80a}
#auth .wm-welcome h1{font-size:clamp(29px,3vw,38px);line-height:1.2;letter-spacing:-.045em;max-width:400px;margin:18px 0 16px;font-weight:750}
#auth .wm-welcome>p{font-size:14px;line-height:1.8;max-width:400px;margin-bottom:26px}
#auth .wm-assurances{display:flex;flex-wrap:wrap;gap:10px 20px;margin:22px 0 0;font-size:11px;color:var(--wm-muted)}
#auth .wm-assurances>span{gap:6px;font-weight:500}
#auth .wm-assurances i{width:18px;height:18px;background:transparent}
#auth .wm-assurances .wm-icon{width:15px;height:15px}
#auth .wm-auth-card{padding:24px;border-radius:18px;box-shadow:0 16px 54px #272e6210;animation:auth-rise .45s .06s ease both;min-width:0}
#auth .wm-auth-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
#auth .wm-auth-symbol{width:28px;height:28px;display:grid;place-items:center;background:var(--wm-soft);color:var(--wm-accent);border:1px solid var(--wm-line);border-radius:10px}
#auth .wm-auth-symbol .wm-icon{width:17px;height:17px}
#auth .wm-auth-step{font-size:10px;font-weight:600;color:var(--wm-muted)}
#auth .wm-auth-card h2{font-size:22px;letter-spacing:-.025em;margin:0 0 5px;line-height:1.35}
#auth .wm-auth-card>p{font-size:12px;line-height:1.65;margin-bottom:0}
#auth .wm-tabs{margin:14px 0;background:var(--wm-bg);border-radius:10px;padding:4px;gap:4px}
#auth .wm-tabs button{min-height:34px;padding:7px;font-size:12px;font-weight:650;transition:background .18s,color .18s,box-shadow .18s;border-radius:7px}
#auth #authForm{gap:11px}
#auth label{gap:5px;font-size:11px;font-weight:650;line-height:1.4}
#auth .wm-auth-input{display:flex;align-items:center;border:1px solid var(--wm-line);border-radius:9px;background:var(--wm-card);min-height:44px;padding-inline-start:12px;transition:border-color .18s,box-shadow .18s;overflow:hidden;min-width:0}
#auth .wm-auth-input>i{display:flex;color:var(--wm-muted);flex-shrink:0}
#auth .wm-auth-input>i .wm-icon{width:16px;height:16px}
#auth .wm-auth-input input{font-size:13px;padding:11px 10px;border:0;border-radius:0;background:transparent;line-height:20px;height:42px;outline:none;min-width:0;flex:1;width:0}
#auth .wm-auth-input input::placeholder{color:var(--wm-muted);opacity:.75;font-weight:400}
#auth .wm-auth-input:focus-within{border-color:var(--wm-accent);box-shadow:0 0 0 3px #5554d812}
#auth .wm-auth-input:has(input[aria-invalid=true]){border-color:#d35368;box-shadow:0 0 0 2px #d353680d}
#auth .wm-auth-input input:-webkit-autofill{-webkit-text-fill-color:var(--wm-text);box-shadow:0 0 0 1000px var(--wm-card) inset}
#auth .wm-password-toggle{padding:0;width:40px;height:42px;display:grid;place-items:center;flex-shrink:0;background:transparent;color:var(--wm-muted)}
#auth .wm-password-toggle:hover{color:var(--wm-accent);background:var(--wm-soft)}
#auth .wm-password-toggle svg{width:18px;height:18px}
#auth .wm-field-hint,#auth .wm-field-error{font-size:10px;font-weight:400;line-height:1.6;margin:0}
#auth .wm-field-hint{color:var(--wm-muted)}
#auth .wm-field-error{color:#bb344d}
html[data-theme=dark] #auth .wm-field-error{color:#ffa2b2}
#auth .wm-auth-submit{min-height:43px;border-radius:9px;font-size:12px;margin-top:3px;box-shadow:0 4px 10px #5554d81a;transition:background .18s,transform .18s,box-shadow .18s}
#auth .wm-auth-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 15px #5554d82b}
#auth .wm-auth-submit:active:not(:disabled){transform:translateY(0)}
#auth .wm-auth-submit:disabled{opacity:.8}
#auth .wm-auth-submit[aria-busy=true]::before{content:'';width:13px;height:13px;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:wm-spin .7s linear infinite}
#auth .wm-auth-secondary{display:flex;align-items:center;flex-wrap:wrap;gap:10px;justify-content:space-between;margin-top:10px}
#auth .wm-text-button{font-size:11px;margin:0;min-height:28px;line-height:1.6}
#auth .wm-auth-note{display:flex;align-items:flex-start;gap:7px;padding-top:14px;margin-top:16px!important;font-size:10px!important;color:var(--wm-muted)}
#auth .wm-auth-note .wm-icon{width:13px;height:13px;margin-top:2px}
#auth .wm-auth-intent{font-size:10px!important;color:var(--wm-muted);line-height:1.6;margin-top:12px!important}
#auth .wm-auth-feedback{padding:10px 12px;border:1px solid #17866a30;border-radius:9px;background:#17866a0a;color:#16745e;font-size:11px;line-height:1.65;margin:0 0 14px;overflow-wrap:anywhere;animation:auth-rise .2s ease both}
#auth .wm-auth-feedback.error{background:#d3536808;border-color:#d3536833;color:#b52f49}
html[data-theme=dark] #auth .wm-auth-feedback{color:#80d7bd}
html[data-theme=dark] #auth .wm-auth-feedback.error{color:#ffa2b2}
#auth .wm-verification-panel{display:grid;text-align:center;justify-items:center;gap:12px;padding:9px 0;animation:auth-rise .3s ease both}
#auth .wm-verification-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:15px;background:var(--wm-soft);color:var(--wm-accent)}
#auth .wm-verification-panel h3{font-size:18px;margin:0}
#auth .wm-verification-panel p{font-size:12px;line-height:1.7;margin:0;color:var(--wm-muted)}
#auth .wm-verification-panel strong{font-size:12px;overflow-wrap:anywhere;max-width:100%}
#auth #verificationResend{min-height:40px;width:100%;font-size:11px}
#auth #recoveryInput[data-otp=true]{letter-spacing:.2em;font-size:18px;font-variant-numeric:tabular-nums}
#auth .wm-account-preview{border:1px solid var(--wm-line);border-radius:14px;background:var(--wm-card);box-shadow:0 14px 38px #3435790c;max-width:390px;overflow:hidden;animation:auth-float 7s ease-in-out infinite}
#auth .wm-preview-top{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--wm-line);font-size:11px;font-weight:650}
#auth .wm-preview-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--wm-soft);color:var(--wm-accent)}
#auth .wm-preview-mark .wm-icon{width:13px;height:13px}
#auth .wm-preview-pill{margin-inline-start:auto;font-size:9px;font-weight:500;background:var(--wm-soft);color:var(--wm-accent);padding:3px 7px;border-radius:5px}
#auth .wm-preview-body{display:grid;grid-template-columns:45px 1fr;min-height:154px}
#auth .wm-preview-nav{display:flex;flex-direction:column;align-items:center;gap:17px;padding-top:17px;border-inline-end:1px solid var(--wm-line);color:var(--wm-muted);background:var(--wm-bg)}
#auth .wm-preview-nav .wm-icon{width:14px;height:14px}
#auth .wm-preview-nav>i:first-child{color:var(--wm-accent)}
#auth .wm-preview-content{padding:12px 14px}
#auth .wm-preview-address{display:flex;gap:7px;align-items:center;font-size:10px;color:var(--wm-muted);margin-bottom:8px}
#auth .wm-preview-address .wm-icon{width:12px;height:12px;color:var(--wm-accent)}
#auth .wm-preview-address>i:last-child{margin-inline-start:auto;color:#269b7e}
#auth .wm-preview-row{display:flex;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid var(--wm-line)}
#auth .wm-preview-row:last-child{border:0}
#auth .wm-preview-avatar{width:24px;height:24px;border-radius:7px;background:var(--wm-soft)}
#auth .wm-preview-row>span:nth-child(2){display:grid;gap:5px;flex:1}
#auth .wm-preview-row b,#auth .wm-preview-row i,#auth .wm-preview-row em{display:block;border-radius:3px;background:var(--wm-line);height:4px;width:64%}
#auth .wm-preview-row i{width:88%;opacity:.5;height:3px}
#auth .wm-preview-row em{width:22px;opacity:.7}
#auth .wm-preview-row:nth-child(3) b{width:47%}
#auth .wm-preview-row:nth-child(4) b{width:76%}
[dir=rtl] #auth .wm-welcome h1{letter-spacing:0;line-height:1.5;font-size:34px}
[dir=rtl] #auth .wm-auth-kicker{letter-spacing:0}
@keyframes auth-rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes auth-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media(max-width:1000px){#auth.wm-auth{gap:40px;grid-template-columns:minmax(0,1fr) minmax(0,400px)}}
@media(max-width:760px){#auth.wm-auth{grid-template-columns:minmax(0,420px);justify-content:center;padding:12px 18px;gap:22px;margin:22px auto}#auth .wm-welcome{text-align:center}#auth .wm-welcome h1{font-size:28px;margin:12px auto 10px}#auth .wm-welcome>p{font-size:12px;margin:0 auto;max-width:330px}#auth .wm-account-preview,#auth .wm-assurances{display:none}#auth .wm-auth-card{padding:23px}#auth .wm-auth-input input{font-size:16px}[dir=rtl] #auth .wm-welcome h1{font-size:27px}}
@media(max-width:380px){#auth.wm-auth{padding-inline:12px}#auth .wm-auth-card{padding:20px}}
@media(prefers-reduced-motion:reduce){#auth .wm-welcome,#auth .wm-auth-card,#auth .wm-account-preview,#auth .wm-auth-feedback,#auth .wm-verification-panel{animation:none}#auth *{transition:none!important}#auth .wm-auth-submit:hover{transform:none}#auth .wm-auth-submit[aria-busy=true]::before{animation:none}}

#auth[data-mode=signup] .wm-auth-note,#auth[data-mode=verify_pending] .wm-auth-note{display:none}#auth .wm-auth-intent{display:none}
/* V24.4: focused steps, a single accessible OTP input and measured motion. */
#auth .wm-account-preview{animation:none}
#auth .wm-auth-card{border:1px solid var(--wm-line);padding:30px;box-shadow:0 18px 55px #2a245a0b;min-height:470px;position:relative}
#auth .wm-auth-heading{margin-bottom:18px}#auth .wm-auth-symbol{width:34px;height:34px;border-radius:11px}
#auth .wm-auth-step{font-size:10px;letter-spacing:.015em}
#auth .wm-auth-card h2{font-size:24px;font-weight:750;line-height:1.4;margin-bottom:7px}
#auth .wm-auth-card>p{font-size:12px;line-height:1.8}
#auth #authForm{margin-top:20px;gap:16px}
#auth label{font-size:11px;gap:7px}#auth .wm-auth-input{border-radius:10px;min-height:47px}
#auth .wm-auth-input input{height:45px}#auth .wm-password-toggle{height:45px}
#auth .wm-auth-submit{min-height:46px;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;border-radius:10px}
#auth .wm-auth-secondary{margin-top:16px;justify-content:center}#auth .wm-auth-note{border-top:1px solid var(--wm-line);margin-top:22px!important;padding-top:16px}
#auth .wm-remember{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.6;margin:0}
#auth .wm-remember[hidden]{display:none}#auth .wm-remember input{accent-color:var(--wm-accent);width:16px;height:16px;min-height:16px;margin:2px 0 0;flex-shrink:0;padding:0}
#auth .wm-remember b{display:block;font-size:11px;font-weight:600}#auth .wm-remember small{display:block;font-size:10px;font-weight:400;color:var(--wm-muted);margin-top:2px}
#auth .wm-reset-identity{display:flex;align-items:center;gap:10px;padding:12px;background:var(--wm-bg);border:1px solid var(--wm-line);border-radius:11px;margin-top:20px}
#auth .wm-reset-identity[hidden]{display:none}#auth .wm-reset-mail-icon{display:grid;place-items:center;width:31px;height:31px;flex-shrink:0;color:var(--wm-accent);background:var(--wm-soft);border-radius:8px}
#auth .wm-reset-identity>div{min-width:0;flex:1}#auth .wm-reset-identity small{display:block;font-size:9px;color:var(--wm-muted);margin-bottom:3px}
#auth .wm-reset-identity strong{display:block;font-size:11px;font-weight:600;overflow-wrap:anywhere}
#auth .wm-reset-identity button{font-size:10px;padding:3px;flex-shrink:0}
#auth .wm-auth-progress{display:flex;gap:5px;margin:16px 0 6px}#auth .wm-auth-progress[hidden]{display:none}#auth .wm-auth-progress span{height:3px;flex:1;border-radius:3px;background:var(--wm-line);transition:background .25s}
#auth .wm-auth-progress[data-step="1"] span:first-child,#auth .wm-auth-progress[data-step="2"] span:nth-child(-n+2),#auth .wm-auth-progress[data-step="3"] span{background:var(--wm-accent)}
#auth .wm-otp-field{position:relative;gap:12px}#auth .wm-otp-field>.wm-auth-input{position:absolute;inset:24px 0 auto;height:54px;opacity:0;z-index:1;padding:0;border:0}
#auth .wm-otp-field .wm-auth-input>i{display:none}#auth .wm-otp-field .wm-auth-input input{height:54px;width:100%;flex:none;font-size:24px;cursor:text}
#auth .wm-otp-digits{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;direction:ltr}
#auth .wm-otp-digits[hidden]{display:none}#auth .wm-otp-digits span{display:grid;place-items:center;height:54px;border:1px solid var(--wm-line);border-radius:10px;background:var(--wm-card);font-size:24px;font-weight:650;font-variant-numeric:tabular-nums;color:var(--wm-text);transition:border-color .18s,background .18s,box-shadow .18s}
#auth .wm-otp-digits span[data-filled=true]{background:var(--wm-soft);border-color:#bab6ef}
#auth .wm-otp-field:focus-within .wm-otp-digits span[data-active=true]{border-color:var(--wm-accent);box-shadow:0 0 0 3px #5554d810}
#auth .wm-otp-field:has(input[aria-invalid=true]) .wm-otp-digits span{border-color:#d3536870}
#auth .wm-auth-success{display:grid;justify-items:center;text-align:center;gap:16px;padding:24px 0 8px}#auth .wm-auth-success[hidden]{display:none}
#auth .wm-success-check{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:#20877312;color:#208773;box-shadow:0 0 0 8px #20877306;animation:auth-success .4s cubic-bezier(.2,.8,.2,1)}
#auth .wm-success-check svg{width:40px;height:40px}#auth .wm-success-check path{stroke-dasharray:32;stroke-dashoffset:0;animation:auth-check .45s ease-out}
#auth .wm-auth-success h3{margin:8px 0 0;font-size:23px}#auth .wm-auth-success p{font-size:12px;line-height:1.9;color:var(--wm-muted);margin:0 0 12px}
#auth .wm-verification-panel{gap:15px;padding:22px 0 6px}#auth .wm-verification-icon{width:64px;height:64px;border-radius:19px;box-shadow:0 0 0 8px #5554d806;animation:auth-success .35s ease-out}
#auth .wm-verification-panel h3{font-size:20px;margin-top:5px}#auth .wm-verification-panel strong{background:var(--wm-bg);border:1px solid var(--wm-line);padding:8px 14px;border-radius:8px}
#auth #verificationResend{margin-top:5px;border-radius:10px}
#auth[data-mode=reset_request] .wm-auth-card,#auth[data-mode=reset_code] .wm-auth-card,#auth[data-mode=reset_password] .wm-auth-card{min-height:430px}
#auth[data-mode=reset_success] .wm-auth-card{min-height:390px}
#auth .ace-inline{margin:18px 0 0;border-radius:10px;padding:11px 12px}
@keyframes auth-success{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}
@keyframes auth-check{from{stroke-dashoffset:32}to{stroke-dashoffset:0}}
@media(max-width:760px){#auth .wm-auth-card{padding:24px;min-height:0!important}#auth.wm-auth{margin-top:12px}#auth .wm-auth-card h2{font-size:23px}#auth .wm-auth-input input{font-size:16px}#auth .wm-otp-digits{gap:6px}#auth .wm-otp-digits span{height:50px;font-size:22px}#auth .wm-otp-field>.wm-auth-input{height:50px}#auth .wm-remember small{font-size:10px}}
@media(prefers-reduced-motion:reduce){#auth .wm-success-check,#auth .wm-success-check path,#auth .wm-verification-icon{animation:none}}
