/* Account information architecture and the shared profile popover. */
[hidden]{display:none!important}
.site-search input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
[data-account-root]{position:relative;flex:none}
.account-menu{position:relative}
.account-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;color:var(--muted);user-select:none}
.account-menu>summary::-webkit-details-marker{display:none}
.account-menu[open]>summary{background:var(--surface);color:var(--accent)}
.account-popover{position:absolute;right:0;top:calc(100% + 12px);width:min(296px,calc(100vw - 40px));padding:8px;border:1px solid var(--edge);border-radius:18px;background:var(--page);box-shadow:0 16px 48px color-mix(in srgb, var(--ink) 14.12%, transparent);z-index:150;text-align:left;line-height:1.5}
.account-menu-identity{padding:14px 12px 16px;border-bottom:1px solid var(--edge);margin-bottom:6px;display:grid;gap:4px}
.account-menu-identity strong{font-size:16px;font-weight:650;overflow-wrap:anywhere}
.account-menu-identity span{color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.account-popover nav{display:grid;gap:2px}
.account-popover a,.account-menu-logout button{display:flex;align-items:center;gap:12px;min-height:44px;width:100%;padding:10px 12px;background:transparent;border:0;border-radius:10px;font:inherit;font-size:14px;color:var(--text);text-decoration:none;cursor:pointer;text-align:left}
.account-popover svg{width:20px;height:20px;flex:none;color:var(--muted)}
.account-popover a:hover,.account-menu-logout button:hover{background:var(--surface)}
.account-popover a[aria-current]{background:var(--surface);color:var(--accent)}
.account-popover{max-height:calc(100dvh - 96px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.account-menu-logout{margin-top:6px;padding-top:6px;border-top:1px solid var(--edge)}
.account-main{max-width:1040px;padding-top:44px}
.account-page-heading{display:grid;gap:16px;margin-bottom:24px}
.account-page-heading h1{font-size:34px;font-weight:600;line-height:1.3;letter-spacing:-.04em}


.account-tabs{display:flex;gap:8px;padding-bottom:18px;margin-bottom:28px;border-bottom:1px solid var(--edge);overflow:auto;scrollbar-width:thin}
.account-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;white-space:nowrap;border-radius:12px;font-size:14px;font-weight:550;color:var(--muted)}
.account-tabs a:hover{background:var(--surface);color:var(--text)}
.account-tabs a[aria-current=page]{background:var(--accent);color:var(--accent-text)}
.account-overview{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px}
.account-main .panel{padding:28px;border:1px solid var(--edge);border-radius:20px}
.account-main .panel h2{font-size:19px;font-weight:600;line-height:1.4}
.account-profile{display:flex;align-items:center;gap:16px;min-width:0}
.account-profile>div:last-child{min-width:0}
.account-main .account-profile h2{font-size:24px}
.account-profile .profile-avatar{width:52px;height:52px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:16px;background:var(--raised)}
.profile-avatar svg{width:28px;height:28px}
.account-profile .profile-email{font-size:14px;margin-top:4px;overflow-wrap:anywhere}
.account-facts{display:grid;gap:16px;margin:26px 0}
.account-facts>div{display:flex;align-items:baseline;justify-content:space-between;gap:20px;font-size:14px}
.account-facts dt{color:var(--muted);flex:none}
.account-facts dd{margin:0;overflow-wrap:anywhere;min-width:0;text-align:right}
.verified-state{display:inline-flex;align-items:center;gap:5px}
.verified-state svg{width:17px;height:17px;color:var(--accent)}


.account-plan-card{display:flex;flex-direction:column;align-items:flex-start}
.account-plan-card .text-link{margin-top:auto}
.account-plan-name{font-size:38px;font-weight:600;line-height:1.3;letter-spacing:-.04em;display:block;margin:18px 0 24px}
.inline-status{color:var(--muted);margin:18px 0;font-size:14px}
.account-quick-section{margin-top:32px}
.account-quick-section h2{font-size:18px;font-weight:600;margin-bottom:16px}
.account-quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.account-quick-links a{display:flex;align-items:center;gap:12px;border:1px solid var(--edge);border-radius:16px;padding:20px 16px;font-size:14px}
.account-quick-links a:hover{background:var(--surface)}
.account-quick-links svg{width:21px;height:21px;flex:none;color:var(--muted)}
.account-quick-links svg:last-child{margin-left:auto;width:18px}
.account-settings-stack{display:grid;gap:20px}
.settings-section h2{margin-bottom:8px}
.settings-row{display:flex;align-items:center;gap:16px;padding:20px 0 4px}
.settings-row-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;flex:none;background:var(--page);border-radius:12px}
.settings-row-icon svg{width:22px;height:22px;color:var(--muted)}
.settings-row-text{flex:1;min-width:0}
.settings-row h3{font-size:16px;font-weight:550}
.settings-row p,.form-note{font-size:13px;line-height:1.6;color:var(--muted);margin-top:4px}
.theme-save-status{font-size:13px;color:var(--muted);margin:8px 0 0 56px}
.theme-save-status:empty{display:none}
.account-subscription{max-width:620px}
.password-panel{max-width:600px}
.password-panel .account-form{margin:0;max-width:none}
.password-panel .form-note{margin:0 0 20px}
.form-actions{display:flex;justify-content:flex-end;gap:10px}
.form-actions .button{width:auto;min-width:88px;--button-height:var(--control-height-compact);--button-padding:10px 16px;margin:0}
.auth-card .password-field input,.account-form .password-field input{margin-bottom:0}
@media(max-width:640px){
 [data-account-root],.account-menu{position:static}.account-popover{right:var(--gutter);top:calc(100% + 8px)}
 .account-main{padding-top:28px}.account-page-heading h1{font-size:28px}.account-tabs{gap:4px;margin-bottom:20px}.account-tabs a{padding:9px 12px;font-size:13px}
 .account-overview,.account-quick-links{grid-template-columns:1fr}.account-main .panel{padding:22px}.account-plan-card{min-height:180px}
 .account-quick-links a{padding:16px}.settings-row{flex-wrap:wrap;gap:12px}.settings-row-text{flex-basis:calc(100% - 56px)}.settings-row>.button{margin-left:52px}
 .theme-options{margin-left:0;max-width:none;width:100%}.theme-save-status{margin-left:52px}
 .account-facts>div{gap:12px}.form-actions .button{flex:1}.password-panel{max-width:none}
}
@media(prefers-reduced-motion:reduce){a,button,input,select{transition:none!important}}

.help-answer{border-bottom:1px solid var(--edge);padding:0}
.help-answer summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 4px;list-style:none;cursor:pointer;font-weight:600;font-size:var(--reading-size);line-height:1.6}
.help-answer summary::-webkit-details-marker{display:none}
.help-answer summary:hover{color:var(--accent)}
.help-answer summary svg{width:20px;height:20px;flex:none;color:var(--muted);transition:transform .15s ease}
.help-answer[open] summary svg{transform:rotate(90deg)}
.help-answer p{color:var(--muted);padding:0 28px 20px 4px}
.help-answer-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:0 4px 20px}


.help-answer:target>summary{color:var(--accent)}
.help-content .help-article+ .help-article{margin-top:36px}
.help-content .help-article h2{margin-bottom:10px;font-size:22px}
.help-nav a[aria-current=location]{background:var(--raised);box-shadow:inset 3px 0 0 var(--accent)}
.help-nav a{word-break:keep-all}
@media(max-width:700px){.help-nav a[aria-current=location]{box-shadow:inset 0 -3px 0 var(--accent)}}
.help-heading{max-width:none}.help-empty{padding:32px 0}.help-empty .button{margin-top:18px}
.recovery-page{max-width:760px;flex:1;padding-top:clamp(48px,10vh,100px);padding-bottom:64px;text-align:center}
.recovery-code{font-size:16px;font-weight:600;color:var(--accent);margin-bottom:16px}
.recovery-page h1{font-size:clamp(28px,4vw,40px);line-height:1.35;letter-spacing:-.04em;word-break:keep-all}
.recovery-page h1+p{color:var(--muted);font-size:16px;line-height:1.7;margin-top:18px;word-break:keep-all}
.recovery-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:32px}
@media(max-width:420px){.recovery-actions{flex-direction:column}.recovery-actions .button{width:100%}}

.back-link{justify-self:start}

.auth-result-actions{display:grid;gap:12px;margin-top:24px}.auth-result-actions>.button{width:100%}.auth-result-actions>.text-link{justify-self:center}

/* App sign-in shares a heading, review summary and next-step layout. */
.auth-handoff-heading{display:grid;gap:8px;margin-bottom:24px}
.auth-handoff-heading .eyebrow{font-size:13px;color:var(--muted)}
.auth-handoff .auth-handoff-heading h1{margin:0}
.auth-review{margin:0;border:1px solid var(--edge);border-radius:var(--control-radius);background:var(--surface);overflow:hidden}
.auth-review>div{padding:18px 20px}
.auth-review>div+div{border-top:1px solid var(--edge)}
.auth-review dt{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);margin-bottom:10px}
.auth-review dt svg{width:18px;height:18px}
.auth-review dd{display:grid;gap:4px;margin:0;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.auth-review dd>span{font-size:14px;color:var(--muted)}
.auth-review form{align-items:flex-start;margin-top:4px}
.auth-handoff-note{font-size:14px;line-height:1.6;color:var(--muted);word-break:keep-all;overflow-wrap:anywhere}
.auth-review+.auth-handoff-note{margin-top:20px}
.auth-handoff .auth-decision-actions{display:grid;gap:8px;margin-top:20px}
.auth-handoff .auth-decision-actions>.button{margin:0}
.auth-decision-actions>.text-link{justify-self:center;justify-content:center;min-width:88px}
.auth-handoff-copy{display:grid;gap:16px}
.auth-next-step{display:flex;align-items:flex-start;gap:12px;padding:18px 20px;background:var(--surface);border:1px solid var(--edge);border-radius:var(--control-radius);font-size:16px;line-height:1.6;word-break:keep-all}
.auth-next-step svg{width:22px;height:22px;margin-top:2px;color:var(--accent)}

/* Empty search keeps a route into existing help topics. */
.help-empty>.reading-copy{margin-top:12px;color:var(--muted)}
.help-recovery-links{display:flex;flex-wrap:wrap;gap:4px 24px;margin-top:16px}
.help-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
