#profilePage{display:none;position:fixed;inset:48px 0 0 var(--zb-profile-left,52px);overflow-y:auto;background:var(--bg-100,#202020);color:var(--text-100,#eee);z-index:50;padding:30px 28px 60px;overscroll-behavior:contain}
body.profile-page-open #profilePage{display:block}
/* Anonymous pages have a 58px public header and no navigation rail. */
#profilePage[data-signed-out="true"]{left:0;top:58px}
#profilePage[data-public-profile="true"] .profile-identity{padding-bottom:12px}
#profilePage[data-public-profile="true"] .profile-muted{text-align:center;margin:0}
#profilePage[data-public-profile="true"] [role="status"]{padding:44px 0;text-align:center}
body.profile-page-open #chatbox,body.profile-page-open .avatarSection,body.profile-page-open #networkCont,body.profile-page-open #compareCont,body.profile-page-open #actionsHubPage,body.profile-page-open #libraryPage,body.profile-page-open #usagePage,body.profile-page-open #flashcardsPage,body.profile-page-open #providerKeysPage,body.profile-page-open #inputMessageCont,body.profile-page-open #modelOptions,body.profile-page-open #models,body.profile-page-open #activityButtonsCont,body.profile-page-open #switcherDesktop,body.profile-page-open #bottomBar{display:none!important}
body.profile-page-open #menubar{z-index:60!important}
/* Reuse the public Home header control without exposing its agent dropdown. */
body.profile-page-open:has(#profilePage[data-signed-out="true"]) #modelOptions{display:inline-block!important}
body.profile-page-open:has(#profilePage[data-signed-out="true"]) #modelOptions .anon-agent-dropdown-target,
body.profile-page-open:has(#profilePage[data-signed-out="true"]) #modelOptions .dropdown-toggle::after,
body.profile-page-open:has(#profilePage[data-signed-out="true"]) #open_chat{display:none!important}
body.profile-page-open:has(#profilePage[data-signed-out="true"]) #modelOptions .anon-agent-new-chat{display:inline-flex!important;position:fixed;left:16px;top:10px}
@media(max-width:768px){body.profile-page-open:has(#profilePage[data-signed-out="true"]) #modelOptions .anon-agent-new-chat{position:fixed;left:60px;top:10px}}
.profile-shell{max-width:960px;margin:0 auto}.profile-toolbar{display:flex;align-items:center;justify-content:flex-end}.profile-toolbar span,.profile-muted,.profile-note,#profileUsername{color:var(--text-200,#aaa);font-size:13px}.profile-toolbar i{margin-right:6px}
.profile-identity{text-align:center;padding:44px 0 40px}.profile-avatar{width:108px;height:108px;border-radius:50%;background:var(--bg-300,#383838);margin:0 auto 18px;display:grid;place-items:center;font-size:34px;overflow:hidden}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-identity h2{font-size:28px;margin:0 0 10px}.profile-identity p{font-size:16px;margin:0}
.profile-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--border-200,#414141);border-radius:18px;padding:16px 0}.profile-stat{text-align:center;padding:0 10px;border-right:1px solid var(--border-200,#414141)}.profile-stat:last-child{border:0}.profile-stat strong{display:block;font-size:18px;font-weight:500;margin-bottom:6px}.profile-stat span{font-size:13px;color:var(--text-200,#aaa)}
.profile-activity,.profile-models{margin-top:48px}.profile-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.profile-shell section h2{font-size:18px;font-weight:500;margin:0}.profile-modes{display:flex;gap:14px}.profile-modes button{background:none;border:0;padding:6px 0;color:var(--text-200,#aaa);font-size:13px;cursor:pointer}.profile-modes button[aria-pressed=true]{color:var(--text-100,#eee)}.profile-modes button:hover{color:var(--text-100,#eee)}
#profilePage .profile-activity-tooltip{position:fixed;z-index:1100;pointer-events:none;max-width:calc(100vw - 16px);padding:10px 15px;border:1px solid #34383e;border-radius:18px;background:#23272c;color:#e7ebf0;font-size:14px;line-height:1.4;box-shadow:0 3px 12px #0003;white-space:nowrap}
.profile-graph-scroll{overflow-x:auto;padding:5px 0 8px}.profile-calendar{min-width:740px}.profile-grid{display:grid;grid-template-rows:repeat(7,1fr);grid-auto-flow:column;grid-auto-columns:minmax(10px,1fr);gap:4px}.profile-cell,.profile-legend i{border-radius:4px;background:var(--bg-300,#383838)}.profile-cell{aspect-ratio:1;border:0;padding:0;min-width:0;cursor:pointer}.profile-cell[disabled]{visibility:hidden;cursor:default}.profile-cell:focus-visible{outline:2px solid var(--text-100,#eee);outline-offset:1px}.profile-cell:hover{box-shadow:inset 0 0 0 1px var(--text-200,#aaa)}
#profilePage [data-level="1"]{background:#073d6d}#profilePage [data-level="2"]{background:#075fa8}#profilePage [data-level="3"]{background:#1685ee}#profilePage [data-level="4"]{background:#6db8ff}
.profile-months{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(10px,1fr);gap:4px;margin-top:10px;font-size:11px;color:var(--text-200,#aaa)}.profile-legend{display:flex;justify-content:flex-end;align-items:center;gap:5px;margin-top:6px;font-size:11px;color:var(--text-200,#aaa)}.profile-legend i{width:11px;height:11px}.profile-muted{margin:15px 0 12px}#profileDayDetail{font-size:13px;color:var(--text-200,#aaa);min-height:20px;margin-top:12px}.profile-model-row{display:flex;justify-content:space-between;gap:15px;padding:14px 0;font-size:14px}.profile-model-row span:first-child{overflow-wrap:anywhere}.profile-model-row span:last-child{color:var(--text-200,#aaa);white-space:nowrap}.profile-note{line-height:1.6;margin-top:36px}#profileStatus{padding:60px 0;text-align:center}#profileRetry{border:1px solid var(--border-200,#414141);border-radius:10px;color:inherit;background:transparent;padding:8px 16px;cursor:pointer}#profilePage [hidden]{display:none!important}
.profile-identity #profileEdit{margin-top:14px;font-size:12px;padding:5px 12px}.profile-identity button{border:1px solid var(--border-200,#414141);border-radius:9px;background:var(--bg-200,#292929);color:var(--text-100,#eee);padding:8px 14px;cursor:pointer}.profile-identity button:disabled{opacity:.55;cursor:default}.profile-editor{max-width:380px;margin:20px auto 0;text-align:left;display:grid;gap:8px}.profile-editor label{font-size:13px;margin:8px 0 0}.profile-editor input{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--border-200,#414141);border-radius:8px;padding:9px;background:var(--bg-200,#292929);color:var(--text-100,#eee);font-size:14px}.profile-editor small{color:var(--text-200,#aaa);font-size:12px;line-height:1.5}.profile-editor-actions{display:flex;gap:10px;margin-top:8px}#profilePreview{width:76px;height:76px;object-fit:cover;border-radius:50%;margin-top:8px}.profile-identity #profileSettingsStatus{font-size:13px;line-height:1.5;max-width:380px;margin:12px auto 0}.profile-identity #profileSettingsStatus:empty{display:none}.profile-identity :focus-visible{outline:2px solid var(--text-100,#eee);outline-offset:3px}
@media(max-width:991px){#profilePage{left:0;padding:22px 18px 40px}.profile-identity{padding-top:30px}.profile-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.profile-stat{border:0}.profile-stat:last-child{grid-column:1/-1}.profile-section-heading{align-items:flex-start;flex-direction:column}.profile-activity,.profile-models{margin-top:32px}}
