/* Registration and sign-in only; preserve the existing account handlers. */
#accountDialog{--profile-accent:#642b32;--profile-line:#e4e5e2;--profile-muted:#626965;background:#f8f9f7;color:#222c27;border:1px solid #e0e4de;border-radius:24px;box-shadow:0 24px 80px #16251b24;max-height:92dvh;overflow:auto}
#accountDialog::backdrop{background:#17251e70;backdrop-filter:blur(5px)}
#accountDialog{width:min(480px,calc(100vw - 32px));padding:0}
#accountDialog .account-shell{padding:36px}
#accountDialog .eyebrow{color:var(--profile-accent);font:650 11px/1.4 var(--sans);letter-spacing:.14em;margin:0 0 10px;text-transform:uppercase}
#accountDialog h2{font:600 clamp(25px,4vw,32px)/1.15 var(--sans);letter-spacing:-.035em;margin:0 46px 12px 0;color:#222c27}
#accountDialog .profile-design-intro{font:400 14px/1.5 var(--sans);color:#626965;margin:0 0 24px;max-width:44ch}
#accountDialog .close-button{width:44px;height:44px;min-height:44px;border-radius:50%;border:1px solid var(--profile-line);background:#fff;color:#3c4840;top:14px;right:14px;font-size:22px;box-shadow:none}
#accountDialog .account-tabs{display:grid;grid-template-columns:1fr 1fr;border:0;border-radius:12px;background:#ecefeb;padding:4px;gap:4px;margin:24px 0}
#accountDialog .account-tabs button{font:600 14px/1.2 var(--sans);letter-spacing:0;text-transform:none;min-height:44px;border-radius:9px;color:#5b655f;padding:10px;border:0;background:transparent}
#accountDialog .account-tabs button.active{background:#fff;color:#24362b;box-shadow:0 2px 5px #20382810}
#accountDialog .account-form{gap:18px}
#accountDialog .account-form label>span:first-child{font:550 13px/1.4 var(--sans);text-transform:none;letter-spacing:0;color:#35423a;margin-bottom:7px}
#accountDialog .account-form input,#accountDialog .account-form select{font:400 16px/1.4 var(--sans);min-height:48px;border:1px solid #d8ded7;background:#fff;border-radius:10px;padding:12px 14px;box-shadow:none;color:#222c27;width:100%;box-sizing:border-box}
#accountDialog input:focus,#accountDialog select:focus{outline:2px solid #729c83;outline-offset:2px}
#accountDialog .password-field{display:block!important;position:relative;margin:0}
#accountDialog .password-field input{padding-right:48px}
#accountDialog .password-toggle{position:absolute;right:5px;top:5px;width:38px;height:38px;border:0;border-radius:8px;background:transparent;color:#5c6b61}
#accountDialog .button-dark{background:var(--profile-accent);border-color:var(--profile-accent);color:#fff;border-radius:10px;min-height:48px;font:600 14px/1.3 var(--sans);text-transform:none;letter-spacing:0}
#accountDialog .account-message:empty{display:none}
#accountDialog .text-link{font:500 13px/1.5 var(--sans);color:#4f6256;text-underline-offset:4px;min-height:40px}
#accountDialog button:focus-visible{outline:2px solid #729c83;outline-offset:3px}

@media(max-width:620px){#accountDialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);margin:auto;max-height:94dvh;border-radius:20px}#accountDialog .account-shell{padding:26px 18px 20px}}
