.mindbranch-web #showShortcuts{display:none}.profile-launcher{display:flex;align-items:center;gap:10px;flex:none;width:100%;padding:12px 10px;margin:10px 0 0;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);color:var(--ui-text);text-align:left}.profile-launcher:hover{background:var(--ui-raised);border-color:var(--ui-border-strong)}.profile-avatar{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:1px solid var(--ui-border-strong);border-radius:50%;background:var(--ui-raised);color:var(--ui-secondary)}.profile-avatar svg{width:20px;height:20px}.profile-avatar.large{width:56px;height:56px}.profile-avatar.large svg{width:30px;height:30px}.profile-launcher-text{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.profile-launcher-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.profile-launcher-text small{font-size:10px;color:var(--ui-muted)}.profile-dialog{width:min(880px,calc(100vw - 40px));max-height:calc(100vh - 64px);padding:0;border:1px solid var(--ui-border-strong);border-radius:16px;background:var(--ui-surface);color:var(--ui-text);box-shadow:0 24px 90px #0008;overflow:auto}.profile-dialog::backdrop{background:#090b0dcc;backdrop-filter:blur(4px)}.profile-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;border-bottom:1px solid var(--ui-border)}.profile-eyebrow{font-size:9px;letter-spacing:.18em;color:var(--ui-accent)}.profile-dialog h2{font-size:20px;font-weight:600;margin:7px 0 0}.profile-layout{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:460px}.profile-navigation{padding:24px 14px;border-right:1px solid var(--ui-border);display:flex;flex-direction:column;gap:22px;background:#222323}.profile-identity{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:0 10px}.profile-identity strong{max-width:100%;overflow-wrap:anywhere;font-size:15px}.profile-preview-chip{display:inline-block;width:fit-content;padding:4px 8px;border:1px solid var(--ui-border-strong);border-radius:5px;font-size:10px;color:var(--ui-secondary)}.profile-navigation nav{display:flex;flex-direction:column;gap:5px}.profile-dialog button{border:1px solid var(--ui-border-strong);border-radius:7px;padding:8px 12px;background:var(--ui-raised);color:var(--ui-text);font-size:12px}.profile-dialog button:disabled{opacity:.4;cursor:default}.profile-navigation nav button{display:flex;align-items:center;gap:12px;text-align:left;border-color:transparent;background:transparent;font-size:13px}.profile-navigation nav button>span{display:grid;place-items:center;width:18px;height:18px}.profile-navigation nav svg{width:16px;height:16px}.profile-navigation nav button[aria-current=page]{background:var(--ui-accent-bg,#2e4037);color:var(--ui-accent);box-shadow:inset 2px 0 var(--ui-accent)}.profile-session{margin-top:auto;padding:12px 10px 0;border-top:1px solid var(--ui-border);display:flex;flex-wrap:wrap;gap:7px}.profile-session>span{width:100%;font-size:10px;color:var(--ui-muted);margin-bottom:6px}.profile-content{padding:28px 32px;min-width:0}.profile-content h3{margin:0 0 8px;font-size:20px;font-weight:600}.profile-content h4{font-size:15px;margin:0 0 12px}.profile-content p{font-size:12px;line-height:1.7}.profile-muted{color:var(--ui-secondary);font-size:12px}.profile-info{padding:12px 14px;border:1px solid var(--ui-border-strong);border-radius:8px;background:#ffffff04;font-size:11px;line-height:1.6;margin:20px 0;color:var(--ui-secondary)}#profileForm{display:grid;gap:9px}#profileForm label{font-size:12px;margin-top:8px}#profileForm input,.profile-setting select{width:100%;height:38px;border:1px solid var(--ui-border-strong);border-radius:7px;padding:8px 11px;background:var(--ui-bg);color:var(--ui-text);font-size:13px;user-select:text}#profileForm input:focus{border-color:var(--ui-accent)}.profile-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.profile-dialog .profile-primary{background:var(--ui-accent);border-color:var(--ui-accent);color:var(--ui-on-accent);font-weight:600}.profile-message{margin:0;padding:12px 28px;min-height:38px;font-size:12px;color:var(--ui-accent);border-top:1px solid var(--ui-border)}.profile-plan-card,.profile-storage-card{margin:20px 0 16px;padding:20px;border:1px solid var(--ui-border-strong);border-radius:10px;background:#ffffff03}.profile-plan-card h4{font-size:26px;margin:14px 0}.profile-plan-detail{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--ui-border);font-size:11px}.profile-plan-detail strong{text-align:right;max-width:65%}.profile-plan-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-plan-options article{padding:16px;border:1px solid var(--ui-border);border-radius:9px}.profile-plan-options article span{font-size:10px;color:var(--ui-muted)}.profile-storage-value{display:block;font-size:24px;font-weight:600;margin:12px 0 8px}.profile-storage-card>span{font-size:11px;color:var(--ui-secondary)}.profile-storage-card progress{width:100%;height:7px;accent-color:var(--ui-accent)}.profile-storage-quota p{font-size:11px;color:var(--ui-secondary)}.profile-setting{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;border-bottom:1px solid var(--ui-border)}.profile-setting>div{display:flex;flex-direction:column;gap:7px}.profile-setting strong{font-size:13px}.profile-setting span{font-size:11px;color:var(--ui-secondary)}.profile-setting select{width:180px;max-width:50%}@media(max-width:680px){.profile-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 24px)}.profile-layout{grid-template-columns:1fr}.profile-navigation{padding:16px;border-right:0;border-bottom:1px solid var(--ui-border);gap:14px}.profile-identity{flex-direction:row;align-items:center;flex-wrap:wrap}.profile-avatar.large{width:36px;height:36px}.profile-navigation nav{flex-direction:row;overflow-x:auto}.profile-navigation nav button{white-space:nowrap;gap:6px;padding:8px}.profile-session{margin:0;padding:10px 0 0}.profile-session>span{width:auto;margin:0;align-self:center;flex:1}.profile-content{padding:22px}.profile-dialog-head{padding:18px 22px}.profile-plan-options{grid-template-columns:1fr}.profile-setting{gap:10px}}

.profile-avatar.large{flex:0 0 56px;height:56px}.profile-language-undo{margin-top:12px}@media(max-width:680px){.profile-avatar.large{flex-basis:36px;height:36px}}

/* Stable shell: switching sections never resizes the settings window. */
.profile-dialog{width:min(1040px,calc(100vw - 64px));height:min(780px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);overflow:hidden}.profile-dialog[open]{display:flex;flex-direction:column}.profile-dialog-head{flex:0 0 auto}.profile-layout{flex:1 1 0;min-height:0;overflow:hidden}.profile-navigation{min-height:0;overflow:auto}.profile-content{min-height:0;overflow:auto;overscroll-behavior:contain}.profile-message{flex:0 0 40px;height:40px;min-height:40px;overflow:auto;padding-block:10px}@media(max-width:680px){.profile-dialog{width:calc(100vw - 20px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.profile-layout{grid-template-rows:auto minmax(0,1fr)}.profile-navigation{overflow:visible}.profile-content{min-height:0}}

.profile-plan-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.profile-plan-heading .profile-preview-chip{flex:none;color:var(--ui-accent);background:var(--ui-accent-bg)}.profile-plan-current{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:14px 16px;margin:20px 0 26px;border:1px solid var(--ui-border);border-radius:9px;font-size:11px}.profile-plan-current>span{color:var(--ui-muted)}.profile-plan-current>strong{font-size:12px;margin-right:14px}.profile-tier-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.profile-tier{display:flex;flex-direction:column;min-width:0;padding:20px 17px;border:1px solid var(--ui-border-strong);border-radius:12px;background:#ffffff02;overflow-wrap:anywhere}.profile-tier-featured{border-color:var(--ui-accent);background:linear-gradient(160deg,#79ddb00c,transparent 65%)}.profile-tier-eyebrow{min-height:28px;font-size:10px;color:var(--ui-muted);line-height:1.5}.profile-tier-featured .profile-tier-eyebrow{color:var(--ui-accent)}.profile-tier h4{font-size:21px;margin:8px 0 16px}.profile-tier-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px}.profile-tier-price strong{font-size:35px;line-height:1;font-weight:650;letter-spacing:-.04em}.profile-tier-price>span{color:var(--ui-muted);font-size:11px}.profile-tier .profile-tier-description{min-height:64px;color:var(--ui-secondary);font-size:11px;margin:16px 0}.profile-tier-storage{display:flex;flex-direction:column;gap:5px;padding:14px 0;border-top:1px solid var(--ui-border);border-bottom:1px solid var(--ui-border)}.profile-tier-storage strong{font-size:16px}.profile-tier-storage>span{color:var(--ui-muted);font-size:10px}.profile-tier ul{list-style:none;margin:18px 0 24px;padding:0;display:grid;gap:12px}.profile-tier li{display:flex;align-items:flex-start;gap:7px;font-size:11px;line-height:1.5}.profile-tier li>span:first-child{color:var(--ui-accent);flex:none}.profile-tier-footer{margin-top:auto;border:1px solid var(--ui-border);border-radius:7px;padding:10px;text-align:center;font-size:11px;color:var(--ui-muted)}.profile-plan-disclaimer{padding:14px 16px;margin-top:20px;border-left:2px solid var(--ui-accent);background:#ffffff03;color:var(--ui-secondary)}@media(max-width:900px){.profile-tier-grid{grid-template-columns:1fr}.profile-tier .profile-tier-description{min-height:0}.profile-tier-eyebrow{min-height:0}.profile-tier{padding:20px}.profile-tier ul{margin-bottom:20px}.profile-plan-heading{flex-wrap:wrap}}
