/* Shared by the account page and the in-app dialog. */
.email-auth{min-width:0;text-align:left}
.email-auth h2{margin:0 0 16px}
.email-auth .auth-intro{margin:0 0 20px;color:var(--muted,#625f58);line-height:1.6}
.email-auth form{display:grid;gap:12px;min-width:0;margin:0}
.email-auth .auth-field{display:grid;gap:8px;min-width:0;margin:0;font-weight:600}
.email-auth input:not([type=checkbox]){box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;height:50px;padding:12px 14px;border:1px solid #cbc7bf;border-radius:10px;background:#fff;color:#252621;font:inherit;font-size:16px}
.email-auth .auth-check{display:flex;align-items:flex-start;gap:10px;min-height:44px;margin:0;padding:10px 0;font-size:14px;font-weight:400;line-height:1.5}
.email-auth .auth-check input{flex:0 0 20px;width:20px;height:20px;margin:1px 0 0;accent-color:#b9232a}
.email-auth .auth-check span{min-width:0;overflow-wrap:anywhere}
.email-auth .auth-check a{text-underline-offset:3px}
.email-auth .auth-hint{margin:0;font-size:13px;line-height:1.6;color:#625f58}
.email-auth .auth-message{margin:0;padding:12px;border-radius:10px;background:#f3eee2;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.email-auth .auth-message:empty{display:none}
.email-auth .auth-message[data-error=true]{background:#fff0ee;color:#90252a}
.email-auth .auth-submit{width:100%;min-height:48px;margin:4px 0 0;white-space:normal}
.email-auth .auth-links{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:4px 12px;margin-top:12px}
.email-auth .auth-signup{font-size:13px;color:var(--muted);margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.email-auth .auth-signup a{display:inline-flex;align-items:center;min-height:44px}
.email-auth .auth-links button{min-height:44px;max-width:100%;padding:8px 0;white-space:normal;text-align:left}
.email-auth details{margin-top:16px}
.email-auth :focus-visible{outline:3px solid #b9232a;outline-offset:3px}
#account-dialog{box-sizing:border-box;width:calc(100% - 24px);max-width:460px;max-height:calc(100dvh - 24px);margin:auto;padding:24px;border-radius:16px;overflow-y:auto;overscroll-behavior:contain}
#account-dialog .dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
#account-dialog .dialog-heading h2{margin:0;font-size:24px;line-height:1.3;overflow-wrap:anywhere}
#account-dialog #close-account{flex:0 0 44px}
#account-description:empty,#account-message:empty{display:none}
#account-dialog #account-description{margin:0 0 20px;line-height:1.6}
#account-privacy{margin:20px 0 0;font-size:12px;line-height:1.6}
.account-entry{max-width:460px!important}
.account-entry>h1{font-size:28px;margin-bottom:12px}
.account-entry>.panel{padding:24px}
#member-gate{display:none;padding:24px;background:#fffdf8;border:1px solid #ddd6cc;border-radius:16px;margin:20px 0}
#member-gate h2{font-size:22px;line-height:1.4;margin:0 0 8px}
#member-gate p{line-height:1.6;color:#625f58;margin:0 0 20px}
#member-gate .member-actions{display:flex;gap:12px;flex-wrap:wrap}
#member-gate button{min-height:48px;flex:1;white-space:normal}
body[data-member=guest][data-view=prepare] #member-gate{display:block}
body[data-member=guest] .material-panel,body[data-member=loading] .material-panel{display:none}
#session-loading{display:none}
body[data-member=loading] #session-loading{display:block}
@media(max-width:480px){
 #account-dialog{padding:20px;max-height:calc(100dvh - 16px)}
 .account-entry>.panel{padding:20px}
 .email-auth .auth-links{column-gap:16px}
 #member-gate{padding:20px}
}
/* Familiar account pages: focused entry form and a separate member profile. */
.auth-page{max-width:440px;margin:0 auto}.auth-home{display:inline-block;margin-bottom:24px;font-size:14px}.auth-page h2{font-size:30px;margin-bottom:24px}.auth-sent strong{overflow-wrap:anywhere}.auth-sent .button{width:100%}
.passkey-setup-actions{display:grid;gap:10px;margin-top:24px}.passkey-setup-actions button{width:100%;min-height:48px;white-space:normal}#passkey-onboarding h2{line-height:1.35;word-break:keep-all;overflow-wrap:anywhere}#passkey-onboarding .auth-message{margin-top:16px}
.passkey-login{display:grid;gap:8px;margin-bottom:18px}.passkey-login>button{width:100%;min-height:48px}.passkey-login>small{text-align:center;color:#6b625a;font-size:12px}.passkey-login>.auth-hint{margin:8px 0 0;text-align:center}.passkey-settings{border-block:1px solid #ded8cf;padding:24px 0;margin:24px 0}.passkey-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.passkey-row>div{min-width:0;overflow-wrap:anywhere}.passkey-row small{display:block}.passkey-row button{flex:none}.passkey-settings>button{margin:8px 0}.passkey-settings #passkey-message{font-size:14px;overflow-wrap:anywhere}
.email-auth .auth-methods{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 4px;background:#eee9e1;border-radius:12px}
.email-auth .auth-methods button{min-width:0;min-height:44px;margin:0;padding:9px 12px;border:0;border-radius:8px;background:transparent;color:#625f58;font-size:15px;font-weight:600;box-shadow:none}
.email-auth .auth-methods [aria-selected=true]{background:#fff;color:#a41c25;box-shadow:0 1px 3px #25262114}
.email-auth .auth-method-panel{display:grid;gap:12px;min-width:0}.email-auth .auth-method-panel[hidden]{display:none}
.email-auth .auth-method-panel .auth-intro{margin:0;font-size:14px}
.email-auth .passkey-login{margin:0;padding:4px 0 0;border:0}.email-auth .passkey-login>.auth-hint{margin:0;text-align:left;font-size:14px}
.email-auth[data-auth-mode=login][data-login-method=passkey]>.auth-links{display:none}
#passkey-setup-title:focus{outline:none}#passkey-onboarding .passkey-later{margin-top:14px}.hero-simple .entry-signup{margin-top:12px;font-size:13px}.entry-signup a{display:inline-flex;align-items:center;min-height:44px}
.hero-simple{display:block;max-width:760px;padding:32px 0 48px}.hero-simple h1{font-size:clamp(32px,5vw,48px)}.hero-simple .ai-value{color:#a41c25;font-weight:700;font-size:15px;margin-bottom:14px}.hero-simple .ai-model{color:#6b625a;font-size:13px;margin-bottom:0}.hero-simple .actions{margin:24px 0}.hero-simple .primary{margin:0;padding:12px 22px;font-size:16px}.service-outline{max-width:720px;border-top:1px solid #ded8cf;padding:28px 0}.service-outline h2{font-size:22px}
.member-page{max-width:850px;margin:auto}.member-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.member-heading h1{font-size:32px}.member-heading p{margin:8px 0 0}.member-tabs{display:flex;gap:20px;flex-wrap:wrap;border-bottom:1px solid #ded8cf;margin:26px 0}.member-tabs button,.member-tabs a{border:0;background:none;border-radius:0;min-height:48px;padding:10px 0;color:inherit;text-decoration:none;font-size:14px}.member-tabs [aria-current=page]{color:#b9232a;border-bottom:2px solid #b9232a}.profile-prefill{padding:16px;background:#f5eee4;font-size:14px}.profile-overview{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:20px 0}.profile-overview h2{margin-bottom:8px}.profile-overview p{margin-bottom:8px}.profile-summary{white-space:pre-wrap}.profile-section summary{display:flex;justify-content:space-between;gap:12px;min-height:44px;align-items:center}.profile-section summary:after{content:'+';font-size:20px}.profile-section[open]>summary:after{content:'−'}.profile-section small{margin-left:auto}.profile-record{padding:18px 0;border:0;border-bottom:1px solid #eee5db;min-width:0}.profile-record p{margin:6px 0;overflow-wrap:anywhere}.profile-record p span{font-size:12px;color:#736a60;margin-right:10px}.profile-record h3{margin:0 0 10px}.profile-section dl>div{display:grid;grid-template-columns:130px 1fr;gap:12px;margin:12px 0}.profile-section dd{margin:0;overflow-wrap:anywhere}.profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}#profile-form input,#profile-form textarea{font-size:16px}#password-form{max-width:440px;margin:24px 0}#security-content>button{margin-right:12px}
@media(max-width:600px){.auth-page{max-width:none}.auth-page h2{font-size:27px}.hero-simple{padding:14px 0 28px}.hero-simple .lead{font-size:16px}.member-heading{display:block}.member-heading .button{margin-top:16px;width:100%}.member-tabs{gap:16px}.profile-fields{grid-template-columns:1fr}.profile-overview{gap:12px}.profile-overview h2{font-size:25px}.profile-overview>button{font-size:13px;padding:10px 12px;flex:none}.profile-section dl>div{grid-template-columns:100px 1fr}}
