.accountDialog{width:min(440px,calc(100vw - 32px));padding:32px;border-radius:24px}.accountClose{float:right;background:transparent;border:0;font-size:26px;color:inherit}.accountDialog h2{margin:12px 0}.accountDialog p{line-height:1.6}.accountProviders{display:grid;gap:10px;margin-top:24px}.accountDialog form{display:grid;gap:10px}.accountDialog [hidden]{display:none!important}.accountDialog input{width:100%;box-sizing:border-box;padding:14px;border:1px solid var(--line,#8886);border-radius:12px;background:transparent;color:inherit;font:inherit}.accountDivider{text-align:center;opacity:.6;font-size:12px;margin:20px 0}.accountGuestButton{border:0;background:transparent;color:inherit;width:100%;padding:15px}.accountDialog button:disabled{opacity:.48;cursor:not-allowed}#accountStatus{font-size:13px;min-height:24px}.accountEntry{white-space:nowrap}.appPreview .accountEntry{font-size:11px;padding:7px 10px}@media(max-width:600px){.accountEntry{padding:8px 10px!important;font-size:12px}.accountDialog{padding:24px}}

.accountEntry{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;min-height:36px}.accountEntry.isSignedIn{padding:4px 12px 4px 4px!important;border-radius:24px}.accountInitials{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#b98d48;color:#fff;font-size:12px;font-weight:600}.accountName{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:600px){.accountName{max-width:70px}.appPreview .accountName{display:none}.appPreview .accountEntry.isSignedIn{padding:3px!important}}

.accountModes{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:5px;margin-top:22px;border:1px solid var(--line,#8886);border-radius:14px}.accountModes button{border:0;border-radius:10px;background:transparent;color:inherit;padding:12px;font:inherit;cursor:pointer}.accountModes button[aria-pressed="true"]{background:#b98d48;color:#fff;box-shadow:0 2px 8px #0002}#signupFields{display:grid;gap:10px}.accountDialog{max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box}

.profileHero{text-align:center;padding:22px 0 26px}.profileAvatar{position:relative;display:grid;place-items:center;width:82px;height:82px;margin:0 auto 14px;border-radius:50%;color:#fff;font-size:26px;overflow:hidden;box-shadow:0 0 0 6px #b98d4818}.profileAvatar img,.profileAvatarOption img,.accountInitials img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.accountInitials{position:relative;overflow:hidden;flex-shrink:0}.profileHero>strong{display:block;font-size:22px;overflow-wrap:anywhere}.profileHero p{font-size:13px;opacity:.7;margin:6px 0 12px;overflow-wrap:anywhere}.profileTag{font-size:10px;letter-spacing:3px;color:#b98d48}.profileAvatarField{border:0;padding:12px 0;margin:0;min-width:0}.profileAvatarField legend{font-size:13px}.profileAvatarChoices{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}.profileAvatarOption{position:relative;overflow:hidden;width:44px;height:44px;border-radius:50%;border:3px solid transparent;color:white;cursor:pointer;font:inherit;font-size:12px;padding:0}.profileAvatarOption[aria-pressed=true]{outline:2px solid #b98d48;outline-offset:3px}.profileDetails{padding:8px 0;margin:6px 0 12px;border-top:1px solid var(--line,#8884);border-bottom:1px solid var(--line,#8884)}.profileDetails>div{display:flex;justify-content:space-between;gap:18px;padding:10px 0;font-size:12px}.profileDetails span{opacity:.65;flex-shrink:0}.profileDetails strong{text-align:right;overflow-wrap:anywhere;min-width:0;font-weight:500}.profileActions{display:grid;grid-template-columns:1fr auto;gap:10px}#accountSignedIn>p{font-size:12px;opacity:.65}#signOut{width:100%;margin-top:6px}.profileAvatarOption:focus-visible{outline:3px solid currentColor;outline-offset:3px}

.profilePhotoControls{display:grid;gap:8px;margin:8px 0}.profileUpload{display:block;text-align:center;cursor:pointer;padding:12px;border:1px solid var(--line,#8884);border-radius:12px}.profilePhotoControls small,.passwordSettings small{opacity:.65;font-size:12px;line-height:1.5}.passwordSettings{border-top:1px solid var(--line,#8884);padding:18px 0;margin:16px 0}.passwordSettings summary{cursor:pointer;font-size:14px;font-weight:600}.passwordSettings form{margin-top:16px}.passwordSettings p{font-size:12px;opacity:.7}.passwordSettings input{min-width:0}#passwordNonceField{display:grid;gap:10px}

/* Spacious authentication and separate profile sections. */
.accountDialog{width:min(920px,calc(100vw - 40px));padding:0!important;border:1px solid var(--line);border-radius:28px;background:var(--paper);color:var(--ink);max-height:calc(100dvh - 48px)}.accountDialog[open]{display:grid;grid-template-columns:320px minmax(0,1fr);align-items:start}.accountBrandPanel{align-self:stretch;background:#153f35;color:#f3eedc;padding:38px 30px;display:flex;flex-direction:column;justify-content:center;border-radius:27px 0 0 27px}.accountBrandName{font-size:25px;letter-spacing:5px}.accountArch{height:230px;border:1px solid #c8b17b66;border-radius:130px 130px 12px 12px;margin:36px 12px;display:grid;place-content:center;text-align:center;background:radial-gradient(ellipse at center,#47715b88,transparent 70%)}.accountArch span{font-size:52px;font-family:serif}.accountArch i{color:#d3b77c;font-size:20px;margin-top:22px}.accountBrandPanel h2{font-size:27px!important;line-height:1.4;letter-spacing:-.7px}.accountBrandPanel p{color:#d1dfd4;font-size:14px!important}.accountContent{min-width:0;padding:34px 40px}.accountDialog .accountContent>h2{font-size:29px;letter-spacing:-.8px;margin:12px 0}.accountClose{height:34px;width:34px;border-radius:50%;background:var(--soft);display:grid;place-content:center;float:right}.accountIntro{color:var(--muted);font-size:14px;margin-bottom:20px}.accountDialog form{display:grid;gap:10px!important;align-content:start}.accountDialog form label{margin:8px 0 0;font-size:13px;font-weight:600}.accountDialog input{min-height:50px;background:var(--bg);font-size:15px;padding:13px 15px;margin:0}.accountDialog .primary,.accountDialog .secondary{min-height:48px;font-size:14px;border-radius:12px}.accountDialog .primary{background:var(--green);color:#fff}.accountDialog .secondary{border:1px solid var(--line);background:var(--paper)}.accountProviders{margin-top:20px}#googleLogin{display:flex;align-items:center;justify-content:center;gap:12px;min-height:52px;font-size:15px}.googleMark{display:flex;background:white;border-radius:50%;padding:3px}.accountDivider{margin:18px 0}.accountModes{margin-top:20px}.accountModes button{min-height:44px}.accountSectionTabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:14px 0 22px;padding-bottom:6px}.accountSectionTabs button{flex:1;padding:12px 8px;font-size:13px;border-radius:9px;white-space:nowrap}.accountSectionTabs button[aria-selected=true]{background:var(--soft);color:var(--ink);font-weight:700;box-shadow:inset 0 -2px #b98d48}.loginMethodTabs{margin:0 0 14px}.accountDialog .passwordSettings{border:0;padding:0;margin:0}.accountDialog .passwordSettings form{margin-top:0}.accountDialog .profileHero{padding:4px 0 18px}.accountDialog .profileDetails{border:0;margin:0}.accountDialog .profileDetails>div{padding:18px 0;border-bottom:1px solid var(--line);font-size:14px}.accountDialog .profilePhotoControls{margin:4px 0 12px}.accountDialog .profileActions{margin-top:10px}#profileInfoPanel>p{color:var(--muted);line-height:1.6}.profileMode .accountBrandPanel{background:#1a4037}.accountDialog #accountStatus{margin:16px 0 0;line-height:1.5}.accountGuestButton{padding:12px;font-size:13px}.accountDialog .profileAvatar{width:76px;height:76px}.accountDialog .profileHero>strong{font-size:20px}.accountDialog .profileTag{display:none}
@media(max-width:720px){.accountDialog{width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border-radius:22px}.accountDialog[open]{display:block}.accountBrandPanel{display:none}.accountContent{padding:26px 24px}.accountDialog .accountContent>h2{font-size:26px}.accountSectionTabs button{font-size:12px;padding:12px 6px}.accountDialog .profileDetails>div{font-size:13px}}@media(prefers-reduced-motion:no-preference){.accountDialog[open]{animation:accountReveal .2s ease-out}@keyframes accountReveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}

.guestGate{text-align:center;padding:38px 24px;margin:24px 0;border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--ink)}.guestGate>span{font-size:30px;color:#b98d48}.guestGate h3{font-size:22px;margin:12px 0}.guestGate p{font:14px/1.7 'DM Sans',sans-serif;max-width:380px;margin:0 auto 20px}.guestGate button{padding:14px 22px;border-radius:12px}.focusVerses .guestGate{background:#153f35dd;color:#fff;border-color:#ffffff33}.focusVerses .guestGate h3{font-size:20px}

/* Override the shared dialog width cap; keep both grid tracks usable. */
dialog#accountDialog{width:min(920px,calc(100vw - 40px));max-width:920px;overflow-x:hidden}dialog#accountDialog[open]{grid-template-columns:minmax(240px,320px) minmax(0,1fr)}
@media(max-width:720px){dialog#accountDialog{width:calc(100vw - 24px);max-width:520px}dialog#accountDialog[open]{display:block}}

/* Center form actions without stretching across the entire form. */
#accountDialog #sendOtp,#accountDialog #verifyOtp,#accountDialog #saveProfile,#accountDialog #savePassword{width:fit-content;max-width:100%;justify-self:center;justify-content:center;text-align:center;min-height:44px;padding:11px 26px;margin-top:8px}
#accountDialog .profileActions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px}
#accountDialog .profileActions #saveProfile{margin-top:0}

/* Keep admin navigation and sign-out in separate, centered hit areas. */
#profileAccountActions{display:flex;flex-direction:column;align-items:center;gap:12px;margin:22px 0 8px;min-width:0}
#accountDialog #profileAccountActions>.secondary{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:220px;max-width:100%;min-height:46px;margin:0;padding:12px 20px;color:var(--ink);text-decoration:none;line-height:1.4;text-align:center;white-space:normal}
#accountDialog #profileAccountActions>.secondary:hover{background:var(--soft)}
#profileAccountActions>.secondary:focus-visible{outline:2px solid var(--green);outline-offset:3px}

#accountDialog.loginRequired .accountClose,#accountDialog.loginRequired .accountGuestButton{display:none!important}
