/* Full-page account settings. The layout mirrors the workspace's quiet navigation. */
body.account-manage{margin:0;min-height:100dvh;background:var(--ui-bg);color:var(--ui-text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}
body.account-manage *{box-sizing:border-box}
body.account-manage>.topbar,body.account-manage>.footer{display:none}
body.account-manage h1,body.account-manage h2,body.account-manage h3,body.account-manage strong,body.account-manage label{color:var(--ui-text)}
body.account-manage a{color:var(--ui-accent)}
body.account-manage a.account-danger-button{color:var(--ui-danger)}
body.account-manage a.account-secondary{color:var(--ui-text)}
body.account-manage a.account-edit-link{color:var(--ui-muted)}
body.account-manage a.account-edit-link:hover{color:var(--ui-accent)}
body.account-manage>.messages{position:fixed;z-index:80;right:22px;bottom:22px;top:auto;width:min(420px,calc(100% - 32px));margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body.account-manage>.messages p{margin:0;padding:14px 18px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface);color:var(--ui-text);box-shadow:var(--ui-shadow)}
.account-shell{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:100dvh}
.account-sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100dvh;min-width:0;padding:26px 18px 18px;border-right:1px solid var(--ui-line);background:var(--ui-surface);overflow-y:auto;scrollbar-width:thin}
.account-workspace-link{display:inline-flex;align-items:center;align-self:flex-start;gap:8px;margin-bottom:30px;color:var(--ui-muted);text-decoration:none;font-size:14px}
.account-workspace-link:hover{color:var(--ui-text)}
body.account-manage .account-workspace-link{color:var(--ui-muted)}
body.account-manage .account-workspace-link:hover{color:var(--ui-text)}
.account-workspace-link svg,.account-settings-nav svg,.account-nav-search svg,.account-logout svg{width:20px;height:20px;flex:0 0 auto}
.account-sidebar h2{margin:0 10px 20px;font-size:25px;line-height:1.2;letter-spacing:-.5px}
.account-nav-search{display:flex;align-items:center;gap:8px;margin:0 2px 17px;padding:0 12px;border:1px solid transparent;border-radius:10px;background:var(--ui-bg);color:var(--ui-muted)}
.account-nav-search input{width:100%;min-width:0;height:42px;margin:0;padding:0;border:0;outline:0;background:transparent;color:var(--ui-text);font:inherit}
.account-nav-search:focus-within{border-color:var(--ui-accent);box-shadow:0 0 0 2px var(--ui-soft)}
.account-settings-nav{display:flex;flex-direction:column;gap:5px}
.account-settings-nav a{display:flex;align-items:center;gap:13px;width:100%;min-width:0;padding:11px 12px;border-radius:9px;color:var(--ui-text);font-size:15px;font-weight:400;text-decoration:none;line-height:1.35}
body.account-manage .account-settings-nav a{color:var(--ui-text)}
body.account-manage .account-settings-nav a[aria-current=page]{color:var(--ui-accent)}
.account-settings-nav a span{min-width:0;overflow-wrap:anywhere}
.account-settings-nav a:hover{background:var(--ui-soft)}
.account-settings-nav a[aria-current=page]{background:var(--ui-soft);color:var(--ui-accent);font-weight:650}
.account-settings-nav a[hidden]{display:none}
.account-nav-empty{margin:12px;color:var(--ui-muted)}
.account-sidebar-bottom{margin-top:auto;padding-top:28px}
.account-identity{display:flex;align-items:center;gap:11px;min-width:0;padding:16px 8px;border-top:1px solid var(--ui-line)}
.account-identity>span:last-child{min-width:0}
.account-identity strong,.account-identity small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-identity strong{font-size:14px}
.account-identity small{margin-top:2px;color:var(--ui-muted);font-size:12px}
.account-avatar{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:var(--ui-soft);color:var(--ui-accent);font-weight:700}
.account-sidebar-bottom form{margin:0}
.account-logout{display:flex;align-items:center;gap:13px;width:100%;padding:11px 12px;border:0;border-radius:9px;background:transparent;color:var(--ui-text);font:inherit;text-align:left;cursor:pointer}
.account-logout:hover{background:var(--ui-soft)}
.account-content{width:100%;max-width:1010px;min-width:0;margin:0 auto;padding:56px clamp(28px,5vw,76px) 80px}
.account-mobile-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:26px}
.account-mobile-tools form{margin:0}
.account-mobile-tools select{min-height:38px;padding:7px 10px;border:1px solid var(--ui-line);border-radius:9px;background:var(--ui-surface);color:var(--ui-text);font:inherit}
.account-mobile-tools .site-theme-toggle{position:static;display:grid;place-items:center;width:38px;height:38px;padding:8px;border:1px solid var(--ui-line);border-radius:9px;background:var(--ui-surface);color:var(--ui-text)}
.account-mobile-tools .site-theme-toggle svg{width:20px;height:20px}
.account-content-head{margin-bottom:38px}
.account-eyebrow{margin:0 0 12px;color:var(--ui-accent);font-size:11px;font-weight:700;letter-spacing:1.4px}
.account-content-head h1{margin:0;font-size:36px;line-height:1.18;letter-spacing:-1px}
.account-content-head>p:last-child{max-width:650px;margin:12px 0 0;color:var(--ui-muted);font-size:16px}
.account-section{margin-top:30px}
.account-section>h2{margin:0 0 13px;font-size:16px;line-height:1.4}
.account-card{min-width:0;border:1px solid var(--ui-line);border-radius:15px;background:var(--ui-surface);box-shadow:var(--ui-shadow);overflow:hidden}
.account-form-row{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:start;gap:22px;padding:19px 22px;border-bottom:1px solid var(--ui-line)}
.account-form-row>label{padding-top:10px;font-weight:550}
.account-form-row input{width:100%;min-width:0;height:43px;margin:0;padding:9px 12px;border:1px solid var(--ui-line);border-radius:9px;background:var(--ui-bg);color:var(--ui-text);font:inherit}
.account-form-row input:focus{border-color:var(--ui-accent);outline:3px solid var(--ui-soft)}
.account-field-error,.account-form-error{margin:7px 0 0;color:var(--ui-danger);font-size:13px}
.account-form-error{padding:16px 22px}
.account-form-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 22px}
.account-form-actions>span{color:var(--ui-muted);font-size:13px}
.account-primary,.account-secondary,.account-danger-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;max-width:100%;padding:9px 16px;border:1px solid var(--ui-line);border-radius:9px;font:inherit;font-weight:600;line-height:1.35;text-align:center;text-decoration:none;cursor:pointer}
.account-primary{border-color:var(--ui-action);background:var(--ui-action);color:#fff}
.account-primary:hover{background:var(--ui-accent)}
.account-secondary{background:var(--ui-surface);color:var(--ui-text)}
.account-secondary:hover{background:var(--ui-soft);color:var(--ui-text)}
.account-detail-row{display:flex;align-items:center;justify-content:space-between;gap:24px;min-width:0;padding:20px 22px;border-bottom:1px solid var(--ui-line)}
.account-detail-row:last-child{border-bottom:0}
.account-detail-row>span:first-child{flex:0 0 auto}
.account-detail-value{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.account-detail-value strong{overflow-wrap:anywhere;text-align:right;font-weight:500}
.account-edit-link{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:8px;color:var(--ui-muted)}
.account-edit-link:hover{background:var(--ui-soft);color:var(--ui-accent)}
.account-edit-link svg{width:18px;height:18px}
.account-status{padding:5px 10px;border-radius:999px;background:#eaf6ef;color:var(--ui-success);font-size:13px;font-weight:650}
:root[data-theme=dark] .account-status{background:#203d32}
.account-row-link{display:inline-flex;align-items:center;gap:9px;color:var(--ui-accent);text-align:right}
.account-action-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:21px 22px}
.account-action-row>div{min-width:0}
.account-action-row h3{margin:0;font-size:15px}
.account-action-row p{max-width:620px;margin:5px 0 0;color:var(--ui-muted);font-size:13px}
.account-action-row form{flex:0 0 auto;margin:0}
.account-danger-card{border-color:color-mix(in srgb,var(--ui-danger) 30%,var(--ui-line))}
.account-danger-button{border-color:color-mix(in srgb,var(--ui-danger) 35%,var(--ui-line));background:color-mix(in srgb,var(--ui-danger) 8%,var(--ui-surface));color:var(--ui-danger)}
.account-danger-button:hover{background:color-mix(in srgb,var(--ui-danger) 14%,var(--ui-surface));color:var(--ui-danger)}
.account-delete-confirm{padding:28px}
body.account-manage .account-delete-confirm form{margin:0 -28px -28px;padding:0 28px}
.account-delete-symbol{display:grid;place-items:center;width:46px;height:46px;margin-bottom:20px;border-radius:12px;background:var(--ui-soft);color:var(--ui-danger)}
.account-delete-symbol svg{width:24px;height:24px}
.account-delete-confirm h2{margin:0;font-size:22px}
.account-delete-confirm>p{max-width:680px;margin:12px 0 24px;color:var(--ui-muted)}
.account-delete-check{display:flex;align-items:flex-start;gap:11px;padding:17px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-bg);cursor:pointer}
.account-delete-check input{flex:0 0 auto;width:18px;height:18px;margin:2px 0 0;accent-color:var(--ui-danger)}
.account-delete-confirm .account-form-actions{justify-content:flex-end;margin:18px -28px 0;border-top:1px solid var(--ui-line)}
/* Native allauth forms retain their routes and controls inside the same content area. */
.account-manage .account-content>form,.account-manage .account-content>ul,.account-manage .account-content>p{max-width:100%}
.account-manage .account-content form{margin:0}
.account-manage .account-content h1{margin:0 0 14px;font-size:36px;line-height:1.2;letter-spacing:-1px}
.account-manage .account-content h2{margin-top:28px}
.account-manage .account-content p{overflow-wrap:anywhere}
.account-manage .account-content :focus-visible{outline:3px solid var(--ui-accent);outline-offset:3px}
/* allauth keeps its own markup; legacy dark accents are mapped to account tokens. */
body.account-manage .connection-card{border-color:var(--ui-line);border-radius:12px;background:var(--ui-surface)}
body.account-manage .connection-card p{color:var(--ui-muted);overflow-wrap:anywhere}
body.account-manage .account-hint{color:var(--ui-muted)}
/* Native allauth pages (email, password, connections) share the same frame. */
body.account-manage .account-content h2{font-size:22px;line-height:1.3;margin:34px 0 12px;letter-spacing:-.3px}
body.account-manage .account-content form>p{margin:0 0 18px}
body.account-manage .account-content form>p>label{display:block;margin:0 0 7px;font-weight:550}
body.account-manage .account-content form>p:has(>input[type=radio]){display:flex;align-items:center;gap:10px;flex-wrap:nowrap;padding:14px 16px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface)}
body.account-manage .account-content form>p:has(>input[type=radio])>label{display:flex;flex:1 1 auto;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;margin:0}
/* Verification and "primary" markers are chips, not run-on bold text. */
body.account-manage .account-content form>p:has(>input[type=radio])>label>strong{display:inline-flex;align-items:center;min-height:22px;padding:2px 9px;border-radius:999px;background:var(--ui-soft);color:var(--ui-accent);font-size:12px;font-weight:650;line-height:1.5;letter-spacing:.01em}
/* Keep a readable gap between an intro sentence and the card/form that follows it. */
body.account-manage .account-content>p+form,
body.account-manage .account-content>p+ul,
body.account-manage .account-content>ul+form{margin-top:16px}
body.account-manage .account-content input:not([type=hidden]):not([type=radio]):not([type=checkbox]),
body.account-manage .account-content textarea{width:100%;min-width:0;height:43px;margin:0;padding:9px 12px;border:1px solid var(--ui-line);border-radius:9px;background:var(--ui-bg);color:var(--ui-text);font:inherit}
body.account-manage .account-content input:focus{border-color:var(--ui-accent);outline:3px solid var(--ui-soft)}
body.account-manage .account-content select{height:43px;min-height:0;padding:8px 10px;border:1px solid var(--ui-line);border-radius:9px;background:var(--ui-surface);color:var(--ui-text);font:inherit}
body.account-manage .account-content .helptext{display:block;margin:7px 0 0;color:var(--ui-muted);font-size:13px;line-height:1.55}
body.account-manage .account-content .helptext ul{margin:6px 0 0;padding-left:20px}
body.account-manage .account-content .helptext li{margin:2px 0}
body.account-manage .account-content form button:not(.account-primary):not(.account-secondary):not(.account-danger-button):not(.social-button){display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin:8px 8px 0 0;padding:9px 16px;border:1px solid var(--ui-line);border-radius:9px;background:var(--ui-surface);color:var(--ui-text);font:inherit;font-weight:600;line-height:1.35;cursor:pointer}
body.account-manage .account-content form button:not(.account-primary):not(.account-secondary):not(.account-danger-button):not(.social-button):hover{background:var(--ui-soft)}
body.account-manage .social-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:0 0 8px}
body.account-manage .social-form{margin:0}
body.account-manage .social-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:46px;padding:10px 14px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface);color:var(--ui-text);font:inherit;font-weight:600;cursor:pointer}
body.account-manage .social-button:hover{background:var(--ui-soft)}
body.account-manage .social-button:disabled{cursor:not-allowed;opacity:.55}
body.account-manage .social-icon{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px}
body.account-manage .social-icon svg{width:100%;height:100%}
body.account-manage .account-mobile-tools #account-language{height:38px;min-height:38px;padding:7px 32px 7px 10px;background:var(--ui-surface)}
body.account-manage .account-delete-check input[type=checkbox]{margin-top:2px}
body.account-manage .account-content input[type=radio],
body.account-manage .account-content input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;min-width:18px;margin:0;padding:0;accent-color:var(--ui-accent)}
body.account-manage .account-content .account-delete-check input{accent-color:var(--ui-danger)}
@media(max-width:900px){
 .account-shell{grid-template-columns:250px minmax(0,1fr)}
 .account-sidebar{padding-inline:12px}
 .account-content{padding:40px 26px 64px}
 .account-form-row{grid-template-columns:145px minmax(0,1fr);gap:16px}
}
@media(max-width:700px){
 .account-shell{display:block}
 .account-sidebar{position:static;height:auto;padding:18px 16px 14px;border-right:0;border-bottom:1px solid var(--ui-line);overflow:visible}
 .account-workspace-link{margin-bottom:17px}
 .account-sidebar h2{margin:0 4px 15px;font-size:23px}
 .account-nav-search{margin:0 0 12px}
 .account-settings-nav{flex-direction:row;gap:7px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:thin}
 .account-settings-nav a{flex:0 0 auto;max-width:230px;padding:10px 12px}
 .account-nav-empty{margin:8px 4px}
 .account-sidebar-bottom{display:flex;align-items:center;gap:10px;padding-top:8px}
 .account-identity{flex:1;min-width:0;padding:8px 2px;border-top:0}
 .account-sidebar-bottom form{flex:0 0 auto}
 .account-logout{width:auto;padding:10px}
 .account-content{padding:30px 16px 56px}
 body.account-manage>.messages{right:16px;bottom:16px;width:calc(100% - 32px)}
 .account-content-head{margin-bottom:28px}
 .account-content-head h1,.account-manage .account-content h1{font-size:30px}
 .account-content-head>p:last-child{font-size:15px}
 .account-section{margin-top:26px}
 .account-form-row{display:block;padding:17px}
 .account-form-row>label{display:block;padding:0 0 7px}
 .account-form-actions{align-items:stretch;flex-direction:column;padding:17px}
 .account-form-actions .account-primary{width:100%}
 .account-detail-row{align-items:flex-start;flex-direction:column;gap:9px;padding:17px}
 .account-detail-value{justify-content:flex-start;width:100%}
 .account-detail-value strong{text-align:left}
 .account-row-link{text-align:left}
 .account-action-row{align-items:flex-start;flex-wrap:wrap;padding:18px}
 .account-action-row form{width:100%}
 .account-action-row .account-secondary,.account-action-row .account-danger-button{width:100%}
 .account-delete-confirm{padding:21px 18px}
 body.account-manage .account-delete-confirm form{margin:0 -18px -21px;padding:0 18px}
 .account-delete-confirm .account-form-actions{margin:18px -18px 0;padding:18px}
}
@media(max-width:390px){
 .account-identity strong,.account-identity small{max-width:160px}
 .account-logout{gap:7px;font-size:13px}
 .account-logout svg{width:18px;height:18px}
}
