/* Blue-white semantic theme shared with the public homepage. Dark and explicit studio-gray stay intact. */
:root[data-theme=light]{--theme-background:#f3f6fc;--theme-navigation:#f9fbff;--theme-surface:#fff;--theme-surface-raised:#edf3fd;--theme-text:#253b59;--theme-text-muted:#586d89;--theme-text-secondary:#47607e;--theme-text-strong:#193452;--theme-text-subtle:#60738e;--theme-header:#f9fbffdf;--theme-input:#f6f9ff;--theme-option:#fff;--theme-text-control:#304e75;--theme-surface-inset:#eaf1fc;--theme-text-description:#4f6788;--theme-text-empty:#586e8c;--theme-table-header:#edf3fd;--theme-dialog:#fbfdff;--theme-toast:#edf4ff;--theme-toast-text:#263f60;--theme-commercial-background:#f3f6fc;--theme-commercial-surface:#fff;--theme-accent:#376be5;--theme-action:#3869e4;--theme-action-hover:#2657d4;--theme-link:#315fc8;--theme-placeholder:#647994;--theme-canvas-panel:#f9fbff;--theme-canvas-raised:#edf3fd;--theme-canvas-muted:#536c8b;--theme-canvas-footer:#526786;--theme-highlight:#283f61;--theme-shadow:#304b75;--line:#cedbef;--theme-accent-ink:#fff;--theme-danger:#b53546}
html[data-theme=light] body{background:linear-gradient(130deg,#f4f8ff,#f6f5fc);color:#253b59}
html[data-theme=light] body:not(:has(.cc)){--text:#253b59;--muted:#586d89;--accent:#376be5}
html[data-theme=light] .topbar{background:#f9fbffdd!important;backdrop-filter:blur(18px);border-bottom:1px solid #d5e1f2;box-shadow:0 4px 24px #344e7910}
html[data-theme=light] .xa-agent{background:transparent!important;color:#253b59}
html[data-theme=light] body #navigation a.active{background:linear-gradient(100deg,#dce9ff,#edf3ff)!important;color:#245aca!important;box-shadow:inset 3px 0 #4a78de}
html[data-theme=light] body #navigation a.active .icon{color:#245aca!important}
html:root[data-theme=light] body #workbenchSidebar #navigation a.active{background:linear-gradient(100deg,#dce9ff,#edf3ff)!important;background-image:linear-gradient(100deg,#dce9ff,#edf3ff)!important;color:#245aca!important;box-shadow:inset 3px 0 #4a78de!important}
html[data-theme=light] :is(.xa-conversations,.xa-results,.xa-conv-menu,.xa-add-menu,.assistant-answer-menu){background:#f9fbff!important;color:#304e75!important;border-color:#cbd9ef!important;box-shadow:0 12px 35px #344e7912}
html[data-theme=light] .xa-input{background:linear-gradient(130deg,#fff,#f0f5ff)!important;border:1px solid #bfcfea!important;box-shadow:0 10px 30px #395a8a12,inset 0 1px #fff}
html[data-theme=light] .xa-input:focus-within{border-color:#7599e8!important;box-shadow:0 0 0 3px #4277ee12,0 10px 30px #395a8a12}
html[data-theme=light] .xa-input :is(textarea,select){background:transparent!important;color:#294569!important}
html[data-theme=light] :is(.xa-mode,.xa-add,.xa-memory,.xa-head button,.xa-conv,.xa-delete,.xa-input .assistant-answer-trigger){color:#395b87!important}
html[data-theme=light] :is(.xa-mode,.xa-head button,.xa-conv):hover{background:#e4edff!important;color:#2257c7!important}
html[data-theme=light] :is(.xa-mode.active,.xa-conv.active){background:#e2ecff!important;color:#2257c7!important}
html[data-theme=light] .xa-user-message{background:#e9f0ff!important;color:#294569!important;border-color:#cddcf5!important}
html[data-theme=light] :is(.xa-reply,.xa-welcome){color:#294569!important}
html[data-theme=light] .xa-send{background:#316be9!important;color:white!important}
html[data-theme=light] button:disabled{opacity:.52}
html[data-theme=light] button:focus-visible,html[data-theme=light] a:focus-visible{outline:2px solid #376be5;outline-offset:3px}
html[data-theme=light]:not([data-canvas-appearance=studio-gray]) .cc{--line:#cbd9ee;--cc-border:#c4d3ea;--text:#294569;--muted:#586d89}
html[data-theme=light]:not([data-canvas-appearance=studio-gray]) .cc .cc-stage{background-color:#eff4fc!important;background-image:radial-gradient(circle at 1px 1px,#9db4d559 .8px,transparent 1px)!important}
html[data-theme=light]:not([data-canvas-appearance=studio-gray]) .cc :is(.cc-node,.cc-media-node,.cc-node.type-prompt,.cc-node.type-compare){background:#fff!important;color:#294569!important;border-color:#c4d3ea!important;box-shadow:0 8px 24px #304b7514}
html[data-theme=light]:not([data-canvas-appearance=studio-gray]) .cc :is(.cc-tool-island,.cc-side-rail,.cc-zoom,.cc-quick-create,.cc-island-popover,.cc-submit-review,.cc-context-menu,.cc-tool-menu){background:#f9fbfff5!important;border-color:#cbd9ef!important;color:#304e75!important;box-shadow:0 8px 28px #304b7515}
.xe-sync-idle{display:none!important}.xe-cloud-entry{white-space:nowrap;border:1px solid var(--line);border-radius:10px;padding:7px 12px;background:var(--theme-surface-raised);color:var(--theme-text);cursor:pointer;font-size:12px}.xe-cloud-entry:hover{color:var(--theme-accent);border-color:var(--theme-accent)}
.cc>.xe-cloud-entry{position:absolute;right:72px;top:16px;z-index:45;box-shadow:0 4px 18px #18365e15;min-height:34px}
html[data-theme=light] .cc>.xe-cloud-entry{background:#f9fbff!important;color:#315fc8!important;border:1px solid #baccf0!important}
html[data-theme=light]:not([data-canvas-appearance=studio-gray]) .cc :is(.cc-node>header,.cc-node>header strong,.cc-node>header b,.cc-node-title,.cc-tool-island button,.cc-side-rail button,.cc-tool-island svg,.cc-side-rail svg){color:#34537a!important}
html[data-theme=light]:not([data-canvas-appearance=studio-gray]) .cc :is(.cc-node>header small,.cc-node>footer,.cc-identity-guide){color:#566d8c!important}
.xe-guide{max-width:620px;margin:22px auto 0;font-size:13px;line-height:1.8;color:var(--theme-text-muted)}.xe-guide nav{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 18px}.xe-guide a,.xe-error-links{color:var(--theme-link);text-decoration:none}.xe-guide a:hover,.xe-error-links:hover{text-decoration:underline}
dialog.agent-cloud-picker{position:fixed!important;inset:100px 24px auto auto;width:min(410px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px);max-height:calc(100dvh - 120px);margin:0;padding:18px!important;border:1px solid var(--line);border-radius:18px;background:var(--theme-dialog);color:var(--theme-text);box-shadow:0 22px 70px #18365e30;z-index:1200}
.agent-cloud-picker header{cursor:move;touch-action:none}.agent-cloud-picker header h2{font-size:17px}.agent-cloud-picker header p{font-size:12px;color:var(--theme-text-muted)}.agent-cloud-picker .agent-cloud-files{max-height:38vh;overflow:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.agent-cloud-picker .agent-cloud-file{min-width:0;color:var(--theme-text);background:var(--theme-surface-raised);border-color:var(--line)}.agent-cloud-picker .agent-cloud-file img{max-height:80px;object-fit:cover}.agent-cloud-picker .agent-cloud-file-name{font-size:12px}.agent-cloud-picker [data-status]{font-size:12px}.agent-cloud-picker footer{display:flex;justify-content:space-between;gap:10px}
html body dialog.agent-cloud-picker{transform:none!important}
@media(max-width:620px){.xa-head{flex-wrap:wrap;gap:8px}.xe-guide{font-size:12px;margin-top:12px}.xe-cloud-entry{padding:6px 9px}.agent-cloud-picker{inset:80px 12px auto auto}}
/* Follow-up: remaining account/gallery surfaces and an invariant circular attachment control. */
html body .xa-input .xa-controls .xa-add{box-sizing:border-box!important;display:inline-grid!important;place-items:center!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;aspect-ratio:1;border-radius:50%!important;align-self:center}
html body .xa-input .xa-add svg{width:18px;height:18px;margin:0;display:block;flex:none}
html body .xa-agent:not(.xa-guest) .xa-dock .xa-controls .xa-context>button.xa-add{width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;transform:none!important;line-height:1!important;padding:0!important;flex:0 0 32px!important}
html[data-theme=light] body .cc-gallery .cc-card-preview{background:linear-gradient(140deg,#edf5ff,#d9e8ff 55%,#e7e3fb)!important;border-color:#c5d8f2!important}
html[data-theme=light] body .cc-gallery .cc-card-preview::before{opacity:.16!important}
html[data-theme=light] body .cc-gallery :is(.cc-cover-caption,.cc-cover-empty){color:#3c628e!important;text-shadow:none!important}
html[data-theme=light] body .personal-profile{background:radial-gradient(ellipse at 95% 0,#d9eaffaa,transparent 55%),linear-gradient(135deg,#fff,#f1f5ff)!important;border-color:#ccdaef!important;box-shadow:0 12px 36px #284b7710}
html[data-theme=light] body .personal-profile::before{opacity:.24;background-image:repeating-linear-gradient(135deg,transparent 0 12px,#769bd81c 12px 13px)!important}
html[data-theme=light] body :is(.personal-settings-block,.personal-profile-fields input,#canvasAppearanceSettings){background:#f9fbff!important;color:#2e486a!important;border-color:#cbd9ed!important}
html[data-theme=light] body :is(.personal-profile-head h2,.personal-settings-block h2,.personal-profile-fields label){color:#2e486a!important}
html body .workspace-section-tabs[aria-label="账号设置"]{position:relative!important;top:auto!important;z-index:1!important;isolation:isolate;background:var(--theme-surface)!important;border:1px solid var(--line);box-shadow:0 3px 12px #253a5510}
html body .personal-settings{position:relative;z-index:0}
.xm-browser .xm-path{display:flex;gap:5px;align-items:center;overflow:auto;padding:4px 0 10px;font-size:12px}.xm-path button{white-space:nowrap;border:0;background:transparent;color:var(--theme-link);padding:3px}
.xm-browser .xm-files{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:48vh;overflow:auto;padding:4px}.xm-browser .xm-drives{grid-template-columns:repeat(2,minmax(0,1fr))}.xm-files>button{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--theme-surface-raised);color:var(--theme-text);padding:10px;display:flex;align-items:center;flex-direction:column;gap:7px}.xm-files>button:hover{border-color:var(--theme-accent);background:color-mix(in srgb,var(--theme-accent) 12%,var(--theme-surface))}.xm-files strong,.xm-files>button>span:last-child{font-size:12px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xm-files small{font-size:11px;color:var(--theme-text-muted)}.xm-file-cover{width:100%;height:65px;display:grid;place-items:center;overflow:hidden;background:var(--theme-surface);border-radius:7px}.xm-file-cover img{max-width:100%;max-height:100%;object-fit:contain}.xm-folder-icon{font-size:32px;color:#7594ec}.xm-browser p[role=status]{font-size:12px;line-height:1.6;color:var(--theme-text-muted)}
.xm-drive-icon{display:block;width:65px;height:42px;margin:8px;position:relative;border:1px solid #b1d6ff;border-radius:12px;transform:perspective(180px) rotateX(24deg);background:linear-gradient(145deg,#ffffffed,#a4caff99 58%,#7a91dcaa);box-shadow:inset 0 2px 1px #fff,0 8px 13px #4776bd27,inset 0 -6px #667cca38}.xm-drive-icon::before{content:'';position:absolute;left:10px;bottom:7px;width:30px;height:3px;border-radius:3px;background:#6585bfa6}.xm-drive-icon::after{content:'';position:absolute;right:8px;bottom:7px;width:5px;height:5px;border-radius:50%;background:#48cbdb;box-shadow:0 0 8px #40cced}
