.language-switcher{position:relative;display:inline-block;color:#334155;font-size:14px;font-weight:400;direction:ltr}
.language-switcher summary{cursor:pointer;list-style:none;border:1px solid #dbe5ef;border-radius:18px;padding:7px 12px;background:#fff;white-space:nowrap}
.language-switcher summary:focus-visible,.language-switcher select:focus-visible,.language-settings-page input:focus-visible,.language-settings-page select:focus-visible{outline:2px solid #0e9cff;outline-offset:2px}
.language-switcher-panel{position:absolute;inset-inline-end:0;top:calc(100% + 8px);z-index:1200;width:min(330px,calc(100vw - 32px));padding:16px;border:1px solid #dbe5ef;border-radius:12px;background:#fff;box-shadow:0 8px 28px #263c5b24;direction:inherit}
.language-switcher form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin:0 0 12px}
.language-switcher label{display:grid;gap:6px}.language-switcher select{max-width:100%;width:100%;min-height:36px;border:1px solid #dbe5ef;border-radius:6px;padding:4px;background:#fff;color:#334155}
.language-switcher button,.language-settings-card button{border:0;border-radius:18px;padding:9px 16px;background:#0e9cff;color:#fff;cursor:pointer;font:inherit}
.language-switcher p{font-size:12px;line-height:1.6;white-space:normal;color:#64748b}.language-switcher a{display:block;white-space:normal;color:#0877cc;line-height:1.6}
.login-language-control{position:absolute;top:18px;inset-inline-end:24px;z-index:30}
.language-settings-page{display:grid;gap:20px;padding:24px;line-height:1.65;color:#334155}.language-settings-page h2,.language-settings-page h3{margin:0 0 12px}.language-settings-card{padding:22px;background:white;border:1px solid #dbe5ef;border-radius:14px}
.language-settings-card>label,.language-settings-card form>label{display:grid;gap:6px;margin-bottom:14px;max-width:700px}.language-settings-card input:not([type=checkbox]),.language-settings-card select,.language-settings-card textarea{padding:9px 12px;border:1px solid #cbd5e1;border-radius:7px;font:inherit;min-width:0;width:100%;box-sizing:border-box;background:#fff;color:#334155}
.language-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;max-height:300px;overflow:auto;padding:12px 0;margin-bottom:14px}.language-options label{display:flex;gap:8px;align-items:center}.language-options small{color:#64748b}.language-settings-card label.language-inline{display:flex;align-items:center;gap:8px}.language-button-row{display:flex;flex-wrap:wrap;gap:10px}
.language-space-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:10px 16px;border:1px solid #dbe9f5;border-radius:10px;background:#f2f9ff;color:#334155;font-size:14px}.language-space-banner a{color:#0877cc}.task-language-fields{border:1px solid #dbe5ef;border-radius:8px;padding:12px;margin-bottom:14px}.task-language-fields small{color:#64748b;line-height:1.5}
html:not([lang^=zh]) body{font-family:system-ui,'Segoe UI',Arial,sans-serif}html:not([lang^=zh]) .user-nav-item,html:not([lang^=zh]) .user-nav-main{height:auto;min-height:44px}html:not([lang^=zh]) .user-nav-item b,html:not([lang^=zh]) .user-nav-main b{white-space:normal;line-height:1.4}html:not([lang^=zh]) .user-nav-sub a{height:auto;min-height:36px;padding-block:7px;white-space:normal}
html[dir=rtl] .language-switcher,html[dir=rtl] .language-settings-page{direction:rtl}html[dir=rtl] .user-sidebar,html[dir=rtl] .agent-sidebar{left:auto;right:0}html[dir=rtl] .user-shell{direction:rtl;padding-left:0;padding-right:var(--user-side)}html[dir=rtl] .agent-canvas{margin-left:0;margin-right:260px}html[dir=rtl] input[type=url],html[dir=rtl] input[type=email],html[dir=rtl] code{direction:ltr;text-align:left}
html[dir=rtl] .user-portal .user-shell{padding-left:20px}html[dir=rtl] .user-portal .user-shell::before{left:20px;right:var(--user-side)}
html[dir=rtl] .user-portal .user-brand{left:auto;right:30px}html[dir=rtl] .user-portal .user-sidebar-toggle{left:auto;right:232px}
html[dir=rtl] .user-portal .user-sidebar-logout{left:auto;right:15px}html[dir=rtl] .user-portal .user-shell.is-nav-collapsed .user-brand{right:15px}
html[dir=rtl] .agent-portal .agent-canvas{margin:18px 0 18px 18px}html[dir=rtl] .agent-portal .sidebar{padding-right:18px;padding-left:20.7px}
@media(max-width:1250px){html[dir=rtl] .user-portal .user-brand{right:24px}html[dir=rtl] .user-portal .user-sidebar-toggle{right:195px}}
@media(max-width:860px){html[dir=rtl] .user-portal .user-shell{padding:10px}html[dir=rtl] .user-portal .user-shell::before{left:10px;right:10px}html[dir=rtl] .user-portal .user-sidebar-toggle{right:18px}html[dir=rtl] .user-portal .user-sidebar-logout{right:0}}
@media(max-width:760px){html[dir=rtl] .agent-portal .agent-canvas{margin:0 9px 9px}}
@media(max-width:760px){.language-switcher summary{box-sizing:border-box;display:grid;place-items:center;width:44px;height:44px;padding:8px;font-size:0}.language-switcher summary::before{content:'🌐';font-size:19px;line-height:24px}.user-portal .user-account{gap:8px}.user-portal .user-account-link>b{max-width:110px}}
@media(max-width:760px){.language-settings-page{padding:12px}.language-settings-card{padding:14px}.language-switcher-panel{position:fixed;inset-inline-end:16px;top:80px}.language-options{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}html[dir=rtl] .agent-canvas{margin-right:0}}
