/* 个人设置沿用工作台配色方案，采用更素雅的卡片布局。 */
.workspace-simple [data-view="profile"]{max-width:1040px;margin:10px auto 36px;--profile-ink:#304c69;--profile-muted:#748493}
[data-view="profile"] .profile-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}
[data-view="profile"] .profile-intro h2{font-size:25px;letter-spacing:-.6px;margin:0 0 6px;color:#263f55}
[data-view="profile"] .profile-intro p{margin:0;font-size:13px;color:var(--profile-muted)}
.profile-intro-mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid #e2e9ed;border-radius:14px;color:#8ca6b7;background:#f4f7f9;transform:rotate(-8deg)}
.profile-intro-mark svg{width:21px;height:21px}
.workspace-content .card.profile-hero{position:relative;isolation:isolate;display:flex;align-items:center;gap:28px;padding:32px 34px;margin-bottom:22px;border:1px solid #dce6ed;border-radius:20px;background:linear-gradient(115deg,#edf4f8,#f6f9fb 62%,#f7f6f0);overflow:hidden;box-shadow:0 6px 24px #304c6905}
.profile-hero:after{content:"";position:absolute;z-index:-1;width:250px;height:250px;right:-92px;top:-125px;border:1px solid #c9d9e566;border-radius:50%;box-shadow:0 0 0 30px #dae5ec24,0 0 0 62px #dae5ec18;pointer-events:none}
.profile-avatar-area{flex:none;display:grid;justify-items:center;gap:14px}
.profile-avatar-frame{position:relative;padding:7px;border:1px solid #cfdde6;border-radius:50%;background:#ffffff80;box-shadow:0 8px 20px #304c690b}
.profile-hero .profile-avatar{width:94px;height:94px;min-width:94px;border:0;background:linear-gradient(140deg,#dce8f0,#edf3f7);color:#90a9bb;font-size:42px;font-weight:300}
.profile-avatar-spark{position:absolute;right:3px;bottom:5px;display:grid;place-items:center;width:27px;height:27px;border:3px solid #f0f5f8;border-radius:50%;background:#7d9aab;color:#fff}
.profile-avatar-spark svg{width:12px;height:12px}
.profile-avatar-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center}
#workspace .profile-avatar-controls button{padding:0;min-height:28px;border:0;background:transparent;box-shadow:none;font-size:12px;color:#456880;border-radius:4px}
#workspace .profile-avatar-controls button:hover:not(:disabled){color:#203f5a;background:transparent;text-decoration:underline;text-underline-offset:4px}
#workspace .profile-avatar-controls #profileAvatarRemove{color:#7c8c97}
.profile-identity{min-width:0;flex:1}
.profile-kicker{font-size:10px;letter-spacing:2px;color:#7b94a6;margin:0 0 7px}
.workspace-content .profile-identity h2{margin:0 0 8px;font-size:28px;font-weight:600;letter-spacing:-.7px;color:#2d495e;overflow-wrap:anywhere;line-height:1.4}
#profileInfo{max-width:540px;font-size:12px;line-height:1.9;color:#718595;margin:0;overflow-wrap:anywhere}
.profile-departments{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:8px 12px;margin-top:13px;max-width:620px;font-size:11px;line-height:1.8}
.profile-departments[hidden]{display:none}.profile-departments-label{padding-top:3px;color:#7c91a0}.profile-department-list{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px;min-width:0}
.profile-department-chip{display:inline-block;max-width:100%;box-sizing:border-box;padding:3px 9px;border:1px solid #dbe7ee;border-radius:7px;background:#ffffffb8;color:#55758d;overflow-wrap:anywhere;line-height:1.7}
.profile-department-chip.is-disabled{border-style:dashed;background:#edf1f4;color:#86939d}.profile-department-empty{padding:3px 0;color:#91a0aa}
.profile-department-more{min-width:0;max-width:100%}.profile-department-more>summary{list-style:none;padding:3px 9px;border:1px solid #d4e1eb;border-radius:7px;background:#f2f7fa;color:#5f7d94;cursor:pointer;line-height:1.7;width:max-content;box-sizing:border-box}
.profile-department-more>summary::-webkit-details-marker{display:none}.profile-department-more>summary:focus-visible{outline:2px solid #7f9eb8;outline-offset:3px}.profile-department-more[open]{flex-basis:100%}.profile-department-more[open]>summary{background:#e8f0f6}
.profile-department-remainder{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;padding:10px;max-height:140px;overflow:auto;border:1px solid #dce6ed;border-radius:9px;background:#ffffff91}.profile-department-remainder>li{max-width:100%;margin:0}
.profile-avatar-hint{display:flex;align-items:center;gap:6px;margin:18px 0 0;font-size:11px;color:#8195a3}
.profile-avatar-hint svg{width:13px;height:13px;flex:none}
.profile-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
.profile-settings-aside{display:contents}
.profile-settings-grid>.profile-card{grid-column:1/-1}
.workspace-content #profileBasicDetails{width:100%;max-width:none;box-sizing:border-box}
.profile-settings-grid .profile-account-card{grid-column:1;display:flex;flex-direction:column}
.profile-settings-grid .profile-enterprise-card{grid-column:2}
.profile-settings-grid:has(#enterpriseSettingsCard[hidden]) .profile-account-card{grid-column:1/-1}
.workspace-content .profile-settings-grid .card{margin:0;padding:25px 27px;border-color:#e2e8ed;border-radius:16px;box-shadow:0 3px 18px #304c6903;min-width:0}
.profile-section-heading{display:flex;align-items:center;gap:11px;margin-bottom:24px}
.profile-section-icon{display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:10px;background:#edf3f7;color:#7995aa}
.profile-section-icon svg{width:17px;height:17px}
.workspace-content .profile-section-heading h3{margin:0;font-size:15px;font-weight:600;color:var(--profile-ink)}
.profile-section-heading p{margin:2px 0 0;font-size:11px;color:var(--profile-muted)}
.profile-basic-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0;margin:0;border:0;background:transparent;cursor:pointer;list-style:none}
.profile-basic-summary::-webkit-details-marker{display:none}
.profile-basic-summary .profile-section-heading{margin:0}
.profile-basic-summary:focus-visible{outline:2px solid #80aab7;outline-offset:6px;border-radius:7px}
.profile-disclosure-arrow{width:18px;height:18px;flex:none;color:#8ca0b0;transition:transform .18s}
#profileBasicDetails[open] .profile-disclosure-arrow{transform:rotate(180deg)}
.workspace-content #profileBasicDetails[open] #profileForm{margin-top:22px;padding-top:22px;border-top:1px solid #edf0f3}
.profile-basic-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
.profile-basic-fields label{display:block;margin:0 0 7px;font-size:12px;color:#516b80}
.profile-basic-fields .profile-username-field,.profile-basic-fields .profile-field-help{margin-bottom:0!important}
.workspace-content #profileForm{max-width:none;display:block;margin:0}
#profileForm>label{display:block;margin:0 0 7px;font-size:12px;color:#516b80}
.workspace-content #profileForm input{width:100%;display:block;margin:0 0 8px;border:1px solid #dbe4eb;border-radius:9px;min-height:43px;padding:10px 13px;font-size:13px;transition:border-color .18s,box-shadow .18s}
#profileForm .profile-field-help{font-size:11px;line-height:1.7;color:#8795a0;margin:0 0 23px}
.profile-username-field{position:relative;margin-bottom:21px}
.workspace-content #profileUsername{padding-right:38px;background:#f7f9fb;color:#8796a2;border-color:#e8edf1;cursor:default}
.profile-username-field svg{position:absolute;right:13px;top:14px;width:14px;height:14px;color:#9aaab6;pointer-events:none}
.profile-form-footer{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-top:21px;margin-top:25px;border-top:1px solid #edf0f3;min-height:62px}
#workspace #profileSave{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;margin:0;padding:9px 17px;background:#3e607c;border-color:#3e607c;border-radius:9px;font-size:12px;transition:background-color .18s,box-shadow .18s,transform .18s}
#profileSave svg{width:14px;height:14px}
#workspace #profileSave:disabled{opacity:.5}
#workspace #profileSave:not(:disabled):hover{background:#304f69;transform:translateY(-1px);box-shadow:0 4px 10px #304c691a}
#profileStatus{flex:1;min-width:90px;font-size:11px;line-height:1.7;color:#577a72;margin:0;overflow-wrap:anywhere}
[data-view="profile"]>#profileStatus{margin:0 0 18px;padding:10px 14px;border:1px solid #e0e8ed;border-radius:10px;background:#f3f7fa;font-size:12px}
[data-view="profile"]>#profileStatus:empty{display:none}
#profileStatus[data-kind="error"],#profileAvatarStatus[data-kind="error"]{color:#a8534f}
.profile-settings-grid #emailBindingCard>p.muted{font-size:12px;line-height:1.8;color:#7c8c98;margin:0 0 15px}
.profile-settings-grid .profile-email-binding{border-top:1px solid #edf1f4}
#workspace .profile-settings-grid #loadEmailBinding{margin:0;padding:12px 0;min-height:57px;font-size:12px;border:0;background:transparent;color:#607c91}
#workspace .profile-settings-grid #loadEmailBinding:hover{background:#f5f8fb;color:#365b76}
.profile-settings-grid .profile-email-binding + .profile-action{border-top:1px solid #edf1f4;border-radius:0}
.profile-settings-grid #bindEmailForm[hidden]{display:none}
#bindEmailInfo:empty{display:none}
.profile-settings-grid #bindEmailInfo{font-size:12px;line-height:1.7;color:#5c7c76;margin:12px 0 0;overflow-wrap:anywhere}
.profile-settings-grid #bindEmailForm{display:grid;gap:12px;margin:12px 0 18px;padding:16px;border:1px solid #e7edf1;border-radius:10px;background:#f8fafc;min-width:0}
.profile-settings-grid #bindEmailForm label{margin:0;font-size:12px;color:#627b8e}
.profile-settings-grid #bindEmailForm input{display:block;width:100%;min-width:0;box-sizing:border-box;font-size:13px}
.profile-settings-grid #bindEmailForm button{justify-self:start;font-size:12px;margin:0}
.profile-settings-grid #bindEmailForm p{margin:0;font-size:11px}
.profile-settings-grid .profile-account-card .profile-section-heading{margin-bottom:10px}
.profile-settings-grid .profile-enterprise-card .profile-section-heading{margin-bottom:6px}
.enterprise-language-settings{margin:15px 0 8px;padding:17px 0 15px;border-bottom:1px solid #edf1f4}.enterprise-language-settings[hidden]{display:none}.enterprise-language-settings h4{margin:0 0 7px;font-size:12px;font-weight:600;color:#516b80}.enterprise-language-settings .enterprise-language-help{margin:0 0 12px;font-size:11px;line-height:1.7;color:#8795a0}.enterprise-language-options{display:flex;flex-wrap:wrap;gap:8px 15px}.enterprise-language-options label{display:flex;align-items:center;gap:6px;margin:0;color:#607c91;font-size:12px;cursor:pointer}.enterprise-language-options input[type=checkbox]{width:15px;height:15px;min-height:0;margin:0;accent-color:#3e607c}.enterprise-language-options input:disabled+span{color:#94a3ad}.enterprise-language-footer{display:flex;align-items:center;flex-wrap:wrap;gap:9px 12px;margin-top:15px}.enterprise-language-footer p{flex:1;min-width:100px;margin:0;font-size:11px;line-height:1.7;color:#577a72}#workspace .enterprise-language-footer button{min-height:32px;padding:6px 12px;margin:0;border-radius:8px;background:#3e607c;border-color:#3e607c;font-size:11px}#workspace .enterprise-language-footer button:disabled{opacity:.5}.enterprise-language-settings form{margin:0}
#workspace .profile-action{display:flex;align-items:center;gap:11px;width:100%;min-height:57px;padding:12px 0;margin:0;text-align:left;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#607c91;font-size:12px}
#workspace .profile-action+ .profile-action{border-top:1px solid #edf1f4;border-radius:0}
.profile-action>svg{width:16px;height:16px;flex:none;color:#8aa0b0}
.profile-action span{flex:1;min-width:0}
.profile-action .profile-action-arrow{width:13px;height:13px;transition:transform .18s}
#workspace .profile-action:hover:not(:disabled){background:#f5f8fb;color:#365b76}
.profile-action:hover .profile-action-arrow{transform:translateX(3px)}
#workspace #profileLogout{color:#8c7778}
#profileLogout>svg{color:#ab9393}
.profile-page-note{display:flex;align-items:center;justify-content:center;gap:7px;color:#9aa7af;font-size:10px;margin:23px 0 0;letter-spacing:.3px}
.profile-page-note svg{width:12px;height:12px}
#profileAvatarDialog{width:min(400px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;margin:auto;padding:28px;border:1px solid #e0e7ed;border-radius:20px;background:#fff;color:#304c69;box-shadow:0 24px 80px #243f592b;font-family:inherit}
#profileAvatarDialog::backdrop{background:#1b304c55;backdrop-filter:blur(4px)}
#profileAvatarDialog h2{margin:0 0 5px;font-size:20px;letter-spacing:-.4px}
#profileAvatarDialog>p{font-size:12px;color:#7b8d9b;line-height:1.8;margin:0}
.profile-avatar-preview-stage{display:grid;place-items:center;min-height:214px;margin:22px 0;background:radial-gradient(ellipse at center,#eaf1f7,#f6f9fb 70%);border:1px solid #e8eef3;border-radius:14px}
#profileAvatarPreview{display:block;object-fit:cover;width:142px;height:142px;border-radius:50%;border:5px solid #fff;box-shadow:0 6px 24px #304c6914}
#profileAvatarDialog #profileAvatarStatus{min-height:20px;margin:0 0 17px;font-size:12px;color:#668278;overflow-wrap:anywhere}
.profile-avatar-dialog-actions{display:flex;justify-content:flex-end;gap:10px}
.profile-avatar-dialog-actions button{font:inherit;font-size:12px;border:1px solid #d9e3eb;border-radius:9px;padding:9px 17px;min-height:39px;margin:0;color:#5a758b;background:#fff;cursor:pointer;transition:background-color .18s,box-shadow .18s}
.profile-avatar-dialog-actions button:hover:not(:disabled){background:#eef4f8}
.profile-avatar-dialog-actions button.primary{background:#3e607c;color:#fff;border-color:#3e607c}
.profile-avatar-dialog-actions button.primary:hover:not(:disabled){background:#304f69}
.profile-avatar-dialog-actions button:disabled{opacity:.55;cursor:default}
#profileAvatarDialog :focus-visible{outline:2px solid #80aab7;outline-offset:3px}
@media(prefers-reduced-motion:no-preference){[data-view="profile"]:not([hidden]) .profile-hero{animation:profile-arrive .32s ease-out both}[data-view="profile"]:not([hidden]) .profile-settings-grid{animation:profile-arrive .38s .05s ease-out both}#profileAvatarDialog[open]{animation:profile-arrive .2s ease-out both}@keyframes profile-arrive{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:1000px){.profile-settings-grid{gap:16px}.workspace-content .profile-settings-grid .card{padding:23px}}
@media(max-width:680px){.profile-settings-grid .profile-account-card,.profile-settings-grid:has(#enterpriseSettingsCard[hidden]) .profile-account-card{grid-column:auto;grid-row:auto}.profile-settings-grid .profile-enterprise-card{grid-column:auto}.profile-basic-fields{grid-template-columns:minmax(0,1fr);gap:18px}}
@media(max-width:680px){.workspace-simple [data-view="profile"]{margin-top:8px}.profile-settings-grid{grid-template-columns:minmax(0,1fr);gap:16px}[data-view="profile"] .profile-intro{margin-bottom:18px}[data-view="profile"] .profile-intro h2{font-size:22px}[data-view="profile"] .profile-intro p{font-size:12px}.profile-intro-mark{width:35px;height:35px;border-radius:11px}.workspace-content .card.profile-hero{padding:25px 20px;gap:18px;border-radius:16px;margin-bottom:18px}.profile-hero .profile-avatar{width:74px;height:74px;min-width:74px;font-size:34px}.profile-avatar-frame{padding:5px}.profile-avatar-controls{gap:9px}.workspace-content .profile-identity h2{font-size:23px}.profile-kicker{font-size:9px;letter-spacing:1px}#profileInfo{font-size:11px;line-height:1.9}.profile-avatar-hint{margin-top:11px;font-size:10px;align-items:flex-start}.profile-avatar-hint svg{margin-top:2px}.workspace-content .profile-settings-grid .card{padding:22px}.profile-settings-aside{gap:16px}.profile-page-note{font-size:9px}.profile-section-heading{margin-bottom:22px}}
@media(max-width:360px){.workspace-content .card.profile-hero{gap:13px;padding:22px 16px}.profile-hero .profile-avatar{width:64px;height:64px;min-width:64px}.workspace-content .profile-identity h2{font-size:20px}.profile-avatar-controls{flex-direction:column;gap:2px}.profile-avatar-hint{display:none}}
@media(max-width:500px){.profile-departments{grid-template-columns:minmax(0,1fr);gap:4px;margin-top:10px;font-size:10px}.profile-department-chip{padding:3px 7px}.profile-departments-label{padding-top:0}.profile-department-remainder{padding:7px}}
@media(prefers-reduced-motion:reduce){[data-view="profile"] *,#profileAvatarDialog,#profileAvatarDialog *{animation:none!important;transition:none!important}}
.profile-account-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px}
.profile-name-editor{font-size:12px;max-width:100%}
.profile-name-editor summary{color:#526f84;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.profile-name-editor[open]{flex-basis:100%}
.profile-name-editor form{max-width:480px;margin-top:12px}
.profile-name-editor .profile-basic-fields{gap:12px}
.profile-name-editor .profile-form-footer{padding-top:10px;margin-top:10px;min-height:0;border:0}
.profile-name-editor .profile-form-footer button{min-height:32px;padding:6px 12px}
.enterprise-language-picker{margin-top:10px;border:1px solid #dde5eb;border-radius:9px;max-width:360px;padding:10px 12px}
.enterprise-language-picker summary{cursor:pointer;font-size:12px;color:#435f74}
.enterprise-language-picker .enterprise-language-help{margin-top:12px}
.enterprise-language-picker .enterprise-language-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:220px;overflow:auto;padding:4px 0;gap:10px}
.workspace-content>[data-view]>.website-return{max-width:none;margin-left:0}
