body.pw-workspace-page main#profile-workspace.eg-settings-mode {
  --es-surface: #18181b; --es-border: #ffffff1c; --es-muted: #96969e; --es-accent: #9868ff;
  max-width: 1440px !important; padding: calc(var(--pw-header-height,120px) + 30px) 40px 80px !important;
  color: #f5f5f7;
}
#profile-workspace.eg-settings-mode > .pw-topline { display: none; }
#profile-workspace.eg-settings-mode .es-page,
#profile-workspace.eg-settings-mode .es-page * { box-sizing: border-box; font-family: 'EGTR Profile Reference',Arial,sans-serif !important; }
#profile-workspace.eg-settings-mode .es-page { animation: es-page-enter .3s ease-out; }
#profile-workspace.eg-settings-mode .es-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 0 38px; }
#profile-workspace.eg-settings-mode .es-heading h1 { font-size: 52px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.1; margin: 0 0 12px; color: #fff; }
#profile-workspace.eg-settings-mode .es-heading p { font-size: 17px; line-height: 1.6; margin: 0; color: var(--es-muted); }
#profile-workspace.eg-settings-mode .es-preview { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 9px; padding: 12px 18px; min-height: 46px; border: 1px solid #ffffff22; border-radius: 28px; background: #ffffff09; color: #e5e5e9; font-size: 14px; font-weight: 500; text-decoration: none; }
#profile-workspace.eg-settings-mode .es-preview:hover { background: #ffffff10; }
#profile-workspace.eg-settings-mode .es-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 28px; align-items: start; }
#profile-workspace.eg-settings-mode .es-card { background: var(--es-surface); border: 1px solid var(--es-border); border-radius: 24px; box-shadow: 0 12px 35px #0002,inset 0 0 16px #ffffff02; min-width: 0; }
#profile-workspace.eg-settings-mode .es-sidebar { display: flex; flex-direction: column; min-width: 0; gap: 28px; }
#profile-workspace.eg-settings-mode .es-navigation { padding: 28px 12px; }
#profile-workspace.eg-settings-mode .es-person { display: flex; align-items: center; gap: 15px; padding: 0 15px 24px; color: #f6f6f8; text-decoration: none; }
#profile-workspace.eg-settings-mode .es-person > img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
#profile-workspace.eg-settings-mode .es-person > span { min-width: 0; flex: 1; }
#profile-workspace.eg-settings-mode .es-person strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 21px; font-weight: 600; }
#profile-workspace.eg-settings-mode .es-person small { display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8c8c96; font-size: 13px; }
#profile-workspace.eg-settings-mode .es-person > i { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #ffffff16; border-radius: 50%; background: #ffffff08; color: #ccccd3; flex: none; }
#profile-workspace.eg-settings-mode .es-person > i svg { width: 14px; height: 14px; }
#profile-workspace.eg-settings-mode .es-nav-group { display: grid; gap: 5px; padding-block: 16px; border-top: 1px solid #ffffff13; }
#profile-workspace.eg-settings-mode .es-nav-item { display: flex; align-items: center; gap: 13px; width: 100%; min-width: 0; min-height: 46px; padding: 11px 16px; margin: 0; border: 0; border-radius: 14px; background: none; color: #c9c9d0; font-size: 14px; line-height: 1.4; font-weight: 500; text-decoration: none; text-align: left; cursor: pointer; transition: background .18s ease,color .18s ease; }
#profile-workspace.eg-settings-mode .es-nav-item > svg { width: 19px; height: 19px; flex: none; color: #9b9ba5; }
#profile-workspace.eg-settings-mode .es-nav-item > span { flex: 1; min-width: 0; }
#profile-workspace.eg-settings-mode .es-nav-item:hover { background: #ffffff08; color: white; }
#profile-workspace.eg-settings-mode .es-nav-item[aria-current=page] { background: #8043ff; color: white; font-weight: 600; }
#profile-workspace.eg-settings-mode .es-nav-item[aria-current=page] > svg { color: inherit; }
#profile-workspace.eg-settings-mode .es-nav-balance { display: inline-flex; align-items: center; gap: 5px; color: #92929c; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#profile-workspace.eg-settings-mode .es-nav-balance img { width: 14px; height: 14px; object-fit: contain; }
#profile-workspace.eg-settings-mode .es-logout { border-radius: 0; padding-top: 20px; border-top: 1px solid #ffffff13; }
#profile-workspace.eg-settings-mode .es-nav-legal { display: flex; flex-wrap: wrap; gap: 4px; margin: 25px 12px 0; color: #666670; font-size: 11px; line-height: 1.5; }
#profile-workspace.eg-settings-mode .es-nav-legal a { color: inherit; text-decoration: none; }
#profile-workspace.eg-settings-mode .es-nav-legal a:hover { color: #c2b4de; }
#profile-workspace.eg-settings-mode .es-strength { padding: 25px; }
#profile-workspace.eg-settings-mode .es-strength header { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
#profile-workspace.eg-settings-mode .es-strength h2 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; }
#profile-workspace.eg-settings-mode .es-strength header strong { font-size: 18px; color: #b393ff; }
#profile-workspace.eg-settings-mode .es-strength progress { display: block; width: 100%; height: 6px; margin: 16px 0 18px; appearance: none; border: 0; border-radius: 8px; overflow: hidden; background: #ffffff0c; accent-color: #9868ff; }
#profile-workspace.eg-settings-mode .es-strength progress::-webkit-progress-bar { background: #ffffff0c; }
#profile-workspace.eg-settings-mode .es-strength progress::-webkit-progress-value { background: #9868ff; border-radius: 8px; }
#profile-workspace.eg-settings-mode .es-strength > p { color: #8d8d98; font-size: 12px; line-height: 1.6; margin: 0; }
#profile-workspace.eg-settings-mode .es-strength ul { list-style: none; padding: 0; margin: 22px 0 0; }
#profile-workspace.eg-settings-mode .es-strength li { display: flex; align-items: center; gap: 10px; padding-block: 13px; border-top: 1px solid #ffffff0c; font-size: 12px; line-height: 1.5; }
#profile-workspace.eg-settings-mode .es-strength li:first-child { padding-top: 0; border: 0; }
#profile-workspace.eg-settings-mode .es-strength li:last-child { padding-bottom: 0; }
#profile-workspace.eg-settings-mode .es-strength li > i { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border: 1px solid #ffffff3d; border-radius: 50%; }
#profile-workspace.eg-settings-mode .es-strength li.is-done { color: #84848e; }
#profile-workspace.eg-settings-mode .es-strength li.is-done > i { border: 0; background: #9868ff; color: white; }
#profile-workspace.eg-settings-mode .es-strength li > i svg { width: 12px; height: 12px; }
#profile-workspace.eg-settings-mode .es-strength li > span:not(.es-sr) { flex: 1; }
#profile-workspace.eg-settings-mode .es-strength li :is(a,button) { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; font-size: 11px; font-weight: 600; color: #b393ff; text-decoration: none; }
#profile-workspace.eg-settings-mode .es-editor { padding: 30px 32px; }
#profile-workspace.eg-settings-mode .es-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
#profile-workspace.eg-settings-mode .es-editor-heading > div:first-child { flex: 1 1 230px; min-width: 0; }
#profile-workspace.eg-settings-mode .es-editor-heading h2 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.3; }
#profile-workspace.eg-settings-mode .es-editor-heading p { font-size: 13px; line-height: 1.65; color: #90909a; margin: 8px 0 0; }
#profile-workspace.eg-settings-mode :is(.es-actions,.es-mobile-actions) { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#profile-workspace.eg-settings-mode :is(.es-actions,.es-mobile-actions) button { min-height: 43px; padding: 11px 18px; margin: 0; border: 1px solid #ffffff1c; border-radius: 24px; background: #ffffff08; color: #f4f4f6; font-size: 13px; line-height: 1.4; font-weight: 500; cursor: pointer; }
#profile-workspace.eg-settings-mode :is(.es-actions,.es-mobile-actions) .es-save { background: #9868ff; color: white; border-color: transparent; font-weight: 600; }
#profile-workspace.eg-settings-mode :is(.es-actions,.es-mobile-actions) button:disabled { opacity: .4; cursor: default; }
#profile-workspace.eg-settings-mode .es-cover { height: 160px; border-radius: 18px; overflow: hidden; background: #ffffff0b; }
#profile-workspace.eg-settings-mode .es-cover > img { width: 100%; height: 100%; display: block; object-fit: cover; }
#profile-workspace.eg-settings-mode .es-photo-row { position: relative; z-index: 1; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding-left: 22px; margin-top: -60px; pointer-events: none; }
#profile-workspace.eg-settings-mode .es-photo-row > * { pointer-events: auto; }
#profile-workspace.eg-settings-mode .es-avatar { display: block; flex: 0 0 120px; width: 120px; height: 120px; border: 5px solid #18181b; border-radius: 50%; overflow: hidden; background: #202024; }
#profile-workspace.eg-settings-mode .es-avatar > img { width: 100%; height: 100%; display: block; object-fit: cover; }
#profile-workspace.eg-settings-mode .es-photo-copy { flex: 1 1 150px; padding-bottom: 4px; }
#profile-workspace.eg-settings-mode .es-photo-copy strong { font-size: 16px; font-weight: 600; }
#profile-workspace.eg-settings-mode .es-photo-copy p { margin: 5px 0 0; color: #93939d; font-size: 12px; line-height: 1.6; }
#profile-workspace.eg-settings-mode .es-photo-actions { display: flex; align-items: center; gap: 17px; padding-bottom: 4px; }
#profile-workspace.eg-settings-mode .es-photo-actions .es-picture-button { display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: hidden; min-height: 37px; padding: 9px 15px; margin: 0; border: 1px solid #ffffff22; border-radius: 24px; background: #ffffff08; color: #efeff4; font-size: 12px; cursor: pointer; }
#profile-workspace.eg-settings-mode .es-picture-button input[type=file] { position: absolute; inset: 0; margin: 0; padding: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#profile-workspace.eg-settings-mode .es-photo-actions button { padding: 8px 0; margin: 0; border: 0; border-radius: 0; background: none; color: #92929d; font-size: 12px; cursor: pointer; }
#profile-workspace.eg-settings-mode .es-photo-actions button:disabled { opacity: .4; }
#profile-workspace.eg-settings-mode .es-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 18px; margin-top: 30px; }
#profile-workspace.eg-settings-mode .es-fields > * { min-width: 0; }
#profile-workspace.eg-settings-mode .es-fields label { display: block; padding: 0; margin: 0; font-size: 13px; font-weight: 500; line-height: 1.5; color: #a4a4ad; }
#profile-workspace.eg-settings-mode .es-fields :is(input:not([type=hidden]),textarea) { box-sizing: border-box; display: block; width: 100%; min-width: 0; height: 49px; padding: 13px 17px; margin: 9px 0 0; border: 1px solid #ffffff17; border-radius: 13px; background: #ffffff08; color: #f0f0f4; font-size: 16px; font-weight: 500; line-height: 1.4; outline: none; }
#profile-workspace.eg-settings-mode .es-fields :is(input,textarea):focus { border-color: #9868ff99; }
#profile-workspace.eg-settings-mode .es-fields input[readonly] { color: #c8c8d0; cursor: default; }
#profile-workspace.eg-settings-mode .es-fields label > small { display: block; color: #7d7d8b; font-size: 10px; line-height: 1.6; margin: 9px 0 0; }
#profile-workspace.eg-settings-mode .es-username { display: flex; align-items: center; height: 49px; border: 1px solid #ffffff17; border-radius: 13px; overflow: hidden; background: #ffffff08; margin-top: 9px; }
#profile-workspace.eg-settings-mode .es-username > span { display: flex; align-items: center; align-self: stretch; padding: 0 14px; flex: none; border-right: 1px solid #ffffff17; background: #ffffff06; color: #84848f; font-size: 13px; }
#profile-workspace.eg-settings-mode .es-fields .es-username > input { flex: 1; border: 0; background: none; border-radius: 0; height: 100%; width: 0; padding: 10px 13px; margin: 0; }
#profile-workspace.eg-settings-mode .es-username > small { padding-right: 12px; flex: none; color: #7e7e8c; font-size: 11px; }
#profile-workspace.eg-settings-mode .es-fields .es-bio-field { grid-column: 1 / -1; }
#profile-workspace.eg-settings-mode .es-bio-field > span { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
#profile-workspace.eg-settings-mode .es-bio-field > span small { font-size: 11px; color: #858590; }
#profile-workspace.eg-settings-mode .es-fields textarea { height: 128px; padding-top: 15px; resize: vertical; line-height: 1.7; }
#profile-workspace.eg-settings-mode .es-timezone { display: flex; align-items: center; gap: 10px; margin-top: 9px; min-height: 49px; padding: 0 15px; border: 1px solid #ffffff17; border-radius: 13px; background: #ffffff08; }
#profile-workspace.eg-settings-mode .es-timezone > svg { flex: none; color: #a4a4b0; }
#profile-workspace.eg-settings-mode .es-fields .es-timezone > input { margin: 0; height: 47px; padding: 10px 0; border: 0; background: none; border-radius: 0; font-size: 14px; }
#profile-workspace.eg-settings-mode .es-languages { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 49px; padding: 9px 11px; margin-top: 9px; border: 1px solid #ffffff17; border-radius: 13px; background: #ffffff08; }
#profile-workspace.eg-settings-mode .es-languages > span { display: inline-flex; align-items: center; gap: 8px; min-height: 29px; padding: 5px 8px 5px 13px; border-radius: 22px; background: #ffffff0f; color: #f2f2f6; font-size: 12px; line-height: 1.3; }
#profile-workspace.eg-settings-mode .es-languages button { display: grid; place-items: center; width: 18px; height: 18px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: none; color: #aaaab6; font-size: 18px; line-height: 1; }
#profile-workspace.eg-settings-mode .es-languages input[type=hidden] { display: none; }
#profile-workspace.eg-settings-mode .es-languages select { max-width: 100%; width: auto; min-width: 70px; min-height: 29px; padding: 5px 3px; margin: 0; border: 0; border-radius: 0; background: transparent; color: #b79aff; font-size: 12px; cursor: pointer; }
#profile-workspace.eg-settings-mode .es-languages option { background: #18181b; color: #f2f2f6; }
#profile-workspace.eg-settings-mode .es-mobile-actions { display: none; margin-top: 25px; }
#profile-workspace.eg-settings-mode .es-draft-state { display: block; margin-top: 18px; font-size: 11px; color: #90909d; }
#profile-workspace.eg-settings-mode .es-draft-state:empty { display: none; }
#profile-workspace.eg-settings-mode .es-message { margin: 14px 0 0; min-height: 0; font-size: 13px; line-height: 1.7; color: #c1a8ff; }
#profile-workspace.eg-settings-mode .es-message:empty { display: none; }
#profile-workspace.eg-settings-mode .es-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#profile-workspace.eg-settings-mode :is(a,button,label.es-picture-button):focus-visible { outline: 2px solid #b79aff; outline-offset: 4px; }
@keyframes es-page-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width:1200px) {
  body.pw-workspace-page main#profile-workspace.eg-settings-mode { padding-inline: 28px !important; }
  #profile-workspace.eg-settings-mode .es-layout { grid-template-columns: 260px minmax(0,1fr); gap: 22px; }
  #profile-workspace.eg-settings-mode .es-editor { padding: 26px; }
  #profile-workspace.eg-settings-mode .es-navigation { padding-inline: 10px; }
  #profile-workspace.eg-settings-mode .es-person { padding-inline: 12px; gap: 11px; }
  #profile-workspace.eg-settings-mode .es-person > img { width: 48px; height: 48px; }
  #profile-workspace.eg-settings-mode .es-person strong { font-size: 19px; }
  #profile-workspace.eg-settings-mode .es-nav-item { gap: 10px; padding-inline: 12px; font-size: 13px; }
  #profile-workspace.eg-settings-mode .es-username > span { padding-inline: 10px; font-size: 12px; }
  #profile-workspace.eg-settings-mode .es-username > small { display: none; }
}
@media (max-width:1000px) {
  #profile-workspace.eg-settings-mode .es-layout { grid-template-columns: minmax(0,1fr); }
  #profile-workspace.eg-settings-mode .es-editor { order: 1; }
  #profile-workspace.eg-settings-mode .es-sidebar { order: 2; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 22px; }
}
@media (max-width:600px) {
  body.pw-workspace-page main#profile-workspace.eg-settings-mode { padding: calc(var(--pw-header-height,96px) + 24px) 16px 50px !important; }
  #profile-workspace.eg-settings-mode .es-heading { display: block; margin-bottom: 25px; }
  #profile-workspace.eg-settings-mode .es-heading h1 { font-size: 38px; letter-spacing: -.8px; }
  #profile-workspace.eg-settings-mode .es-heading p { font-size: 14px; }
  #profile-workspace.eg-settings-mode .es-preview { margin-top: 20px; min-height: 42px; font-size: 13px; }
  #profile-workspace.eg-settings-mode .es-editor { padding: 24px 18px; border-radius: 22px; }
  #profile-workspace.eg-settings-mode .es-editor-heading h2 { font-size: 24px; }
  #profile-workspace.eg-settings-mode .es-actions { display: none; }
  #profile-workspace.eg-settings-mode .es-cover { height: 112px; border-radius: 16px; }
  #profile-workspace.eg-settings-mode .es-photo-row { margin-top: -40px; padding-left: 9px; gap: 14px; }
  #profile-workspace.eg-settings-mode .es-avatar { width: 90px; height: 90px; flex-basis: 90px; }
  #profile-workspace.eg-settings-mode .es-photo-copy { flex-basis: calc(100% - 104px); }
  #profile-workspace.eg-settings-mode .es-photo-copy strong { font-size: 14px; }
  #profile-workspace.eg-settings-mode .es-photo-copy p { font-size: 11px; }
  #profile-workspace.eg-settings-mode .es-photo-actions { margin-top: 2px; }
  #profile-workspace.eg-settings-mode .es-fields { grid-template-columns: minmax(0,1fr); gap: 20px; }
  #profile-workspace.eg-settings-mode .es-mobile-actions { display: flex; }
  #profile-workspace.eg-settings-mode .es-mobile-actions button { flex: 1; padding-inline: 12px; font-size: 12px; }
  #profile-workspace.eg-settings-mode .es-sidebar { display: flex; }
}
@media (prefers-reduced-motion:reduce) { #profile-workspace.eg-settings-mode .es-page { animation: none; } #profile-workspace.eg-settings-mode .es-nav-item { transition: none; } }

/* Direct image editing, single input borders and an accessible language picker. */
#profile-workspace.eg-settings-mode .es-sidebar,
#profile-workspace.eg-settings-mode .es-sidebar > * { width: 100%; max-width: 100%; min-width: 0; }
#profile-workspace.eg-settings-mode button.es-cover { display: block; position: relative; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 18px; cursor: pointer; text-align: left; box-shadow: none; }
#profile-workspace.eg-settings-mode .es-cover > img { transition: filter .2s ease; }
#profile-workspace.eg-settings-mode .es-cover-edit { position: absolute; right: 13px; bottom: 13px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #ffffff24; border-radius: 22px; background: #111116cc; color: #f4f0ff; font-size: 11px; line-height: 1.3; backdrop-filter: blur(8px); transition: background .18s ease,transform .18s ease; }
#profile-workspace.eg-settings-mode .es-cover-edit > svg { width: 15px; height: 15px; }
#profile-workspace.eg-settings-mode button.es-cover:hover > img { filter: brightness(1.08); }
#profile-workspace.eg-settings-mode button.es-cover:hover .es-cover-edit { background: #8043ff; transform: translateY(-2px); }
#profile-workspace.eg-settings-mode button.es-avatar { position: relative; overflow: visible; padding: 0; margin: 0; border: 5px solid #18181b; box-shadow: none; cursor: pointer; }
#profile-workspace.eg-settings-mode .es-avatar > img { border-radius: 50%; transition: filter .18s ease; }
#profile-workspace.eg-settings-mode .es-avatar-edit { position: absolute; right: 0; bottom: 1px; display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid #18181b; border-radius: 50%; background: #9868ff; color: white; box-shadow: 0 2px 8px #0004; transition: transform .18s ease,background .18s ease; }
#profile-workspace.eg-settings-mode .es-avatar-edit > svg { width: 14px; height: 14px; }
#profile-workspace.eg-settings-mode button.es-avatar:hover > img { filter: brightness(1.1); }
#profile-workspace.eg-settings-mode button.es-avatar:hover .es-avatar-edit { transform: scale(1.1); background: #ad88ff; }
#profile-workspace.eg-settings-mode .es-picture-button,
#profile-workspace.eg-settings-mode .es-photo-actions button,
#profile-workspace.eg-settings-mode :is(.es-actions,.es-mobile-actions) button { transition: background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
#profile-workspace.eg-settings-mode .es-photo-actions .es-picture-button:hover { background: #ffffff12; border-color: #b69bff88; color: white; transform: translateY(-1px); box-shadow: 0 5px 14px #0003; }
#profile-workspace.eg-settings-mode .es-picture-button:focus-within { outline: 2px solid #b79aff; outline-offset: 4px; }
#profile-workspace.eg-settings-mode .es-photo-actions button:hover:not(:disabled) { color: #f4b2c6; transform: translateY(-1px); }
#profile-workspace.eg-settings-mode :is(.es-actions,.es-mobile-actions) button:hover:not(:disabled) { transform: translateY(-1px); background: #ffffff13; border-color: #ffffff39; }
#profile-workspace.eg-settings-mode :is(.es-actions,.es-mobile-actions) .es-save:hover:not(:disabled) { background: #ad88ff; border-color: transparent; box-shadow: 0 5px 15px #8043ff25; }
#profile-workspace.eg-settings-mode .es-fields .es-username > input:focus { border: 0; outline: none; box-shadow: none; }
#profile-workspace.eg-settings-mode .es-username:focus-within { border-color: #9868ff88; }
#profile-workspace.eg-settings-mode .es-language-picker { display: inline-flex; min-width: 0; }
#profile-workspace.eg-settings-mode .es-language-picker > input[type=hidden] { display: none; }
#profile-workspace.eg-settings-mode #es-language-toggle { display: inline-flex; align-items: center; min-height: 29px; padding: 5px 9px; margin: 0; border: 0; border-radius: 18px; background: transparent; color: #b79aff; font-size: 12px; font-weight: 600; line-height: 1.4; transition: background .18s ease,color .18s ease; }
#profile-workspace.eg-settings-mode #es-language-toggle:hover,
#profile-workspace.eg-settings-mode #es-language-toggle[aria-expanded=true] { background: #9868ff1c; color: #e0d4ff; }
#profile-workspace.eg-settings-mode .es-language-menu { position: fixed; inset: auto; box-sizing: border-box; width: 248px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 7px; margin: 0; border: 1px solid #ffffff25; border-radius: 18px; background: #1b1b20f5; box-shadow: 0 14px 40px #0007; color: #eeeaf4; backdrop-filter: blur(16px); overflow: hidden; }
#profile-workspace.eg-settings-mode .es-fields .es-language-search { display: flex; align-items: center; gap: 9px; padding: 0 10px; margin: 0 0 7px; border-bottom: 1px solid #ffffff12; color: #96909f; }
#profile-workspace.eg-settings-mode .es-language-search > svg { width: 16px; height: 16px; flex: none; }
#profile-workspace.eg-settings-mode .es-fields .es-language-picker .es-language-search input[type=search] { width: 100%; height: 38px; min-width: 0; padding: 8px 0; margin: 0; border: 0; border-radius: 0; outline: none; box-shadow: none; background: transparent; color: #f4f0fa; font-size: 13px; }
#profile-workspace.eg-settings-mode .es-language-options { max-height: min(230px,calc(100dvh - 90px)); overflow-y: auto; overscroll-behavior: contain; padding: 0 3px 0 0; scrollbar-width: thin; scrollbar-color: #61596e transparent; }
#profile-workspace.eg-settings-mode .es-language-options::-webkit-scrollbar { width: 5px; }
#profile-workspace.eg-settings-mode .es-language-options::-webkit-scrollbar-track { background: transparent; }
#profile-workspace.eg-settings-mode .es-language-options::-webkit-scrollbar-thumb { border-radius: 8px; background: #61596e; }
#profile-workspace.eg-settings-mode .es-language-options > button { display: flex; align-items: center; width: 100%; min-height: 34px; padding: 8px 12px; margin: 0; border: 0; border-radius: 11px; background: transparent; color: #dbd5e6; font-size: 13px; line-height: 1.4; text-align: left; transition: background .15s ease,color .15s ease; }
#profile-workspace.eg-settings-mode .es-language-options > button:hover,
#profile-workspace.eg-settings-mode .es-language-options > button:focus-visible { background: #9868ff21; color: white; outline: none; }
#profile-workspace.eg-settings-mode .es-language-options > button[hidden] { display: none; }
#profile-workspace.eg-settings-mode .es-language-empty { padding: 16px 10px; margin: 0; color: #98909f; font-size: 12px; line-height: 1.6; }
#profile-workspace.eg-settings-mode .es-language-empty[hidden] { display: none; }
#profile-workspace.eg-settings-mode .es-languages > span > button:hover { color: white; background: #ffffff12; }
@media (max-width:600px) {
  #profile-workspace.eg-settings-mode .es-mobile-actions .es-discard { flex: 0 0 auto; }
  #profile-workspace.eg-settings-mode .es-mobile-actions .es-save { flex: 1 1 0; min-width: 0; white-space: normal; }
  #profile-workspace.eg-settings-mode .es-cover-edit { right: 9px; bottom: 9px; padding: 7px 9px; font-size: 10px; }
}
@media (prefers-reduced-motion:reduce) {
  #profile-workspace.eg-settings-mode :is(.es-cover-edit,.es-avatar-edit,.es-cover > img,.es-avatar > img,.es-picture-button,.es-photo-actions button,.es-actions button,.es-mobile-actions button) { transition: none; }
  #profile-workspace.eg-settings-mode :is(button.es-cover:hover .es-cover-edit,button.es-avatar:hover .es-avatar-edit,.es-photo-actions .es-picture-button:hover,.es-photo-actions button:hover,.es-actions button:hover,.es-mobile-actions button:hover) { transform: none; }
}

/* Voice recording belongs to the main profile settings form. */
#profile-workspace.eg-settings-mode .es-audio { margin-top:28px; padding-top:26px; border-top:1px solid #ffffff14; }
#profile-workspace.eg-settings-mode .es-audio-heading { display:flex; align-items:center; gap:13px; margin-bottom:18px; }
#profile-workspace.eg-settings-mode .es-audio-icon { display:grid; place-items:center; flex:none; width:42px; height:42px; border-radius:13px; color:#c5a7ff; background:#9868ff18; }
#profile-workspace.eg-settings-mode .es-audio h3 { margin:0; font-size:18px; }
#profile-workspace.eg-settings-mode .es-audio-heading p { margin:5px 0 0; color:#9696a3; font-size:13px; line-height:1.5; }
#profile-workspace.eg-settings-mode .es-audio audio { display:block; width:100%; max-width:460px; height:42px; margin:0 0 18px; color-scheme:dark; }
#profile-workspace.eg-settings-mode .es-audio-empty { color:#8c8c99; font-size:13px; margin:0 0 17px; }
#profile-workspace.eg-settings-mode .es-audio-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
#profile-workspace.eg-settings-mode .es-audio .es-picture-button { position:relative; display:inline-flex; align-items:center; justify-content:center; overflow:hidden; gap:8px; min-height:37px; padding:9px 15px; border:1px solid #ffffff22; border-radius:24px; background:#ffffff08; color:#efeff4; font-size:12px; cursor:pointer; }
#profile-workspace.eg-settings-mode .es-audio .es-picture-button:hover { background:#ffffff12; border-color:#b69bff88; }
#profile-workspace.eg-settings-mode .es-audio .es-picture-button svg { width:16px; height:16px; }
#profile-workspace.eg-settings-mode .es-audio-remove { border:0; background:transparent; color:#e8a1b3; font:inherit; font-size:13px; cursor:pointer; padding:9px; }
#profile-workspace.eg-settings-mode .es-audio-remove:hover { color:#ffc8d5; }
#profile-workspace.eg-settings-mode .es-audio-actions small,#profile-workspace.eg-settings-mode .es-audio-note { color:#898995; font-size:12px; line-height:1.6; }
#profile-workspace.eg-settings-mode .es-audio-note { margin:12px 0 0; }
