/* Measured against Xiaoyunque desktop, 2026-10-30. Brand and service controls remain our own. */

:root{--bg:#161616;--panel:#252525;--panel2:#292929;--panel3:#333;--field:#1c1c1c;--line:#383838;--text:#f5f5f5;--muted:#a6a6a6;--faint:#737373;--radius:16px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
body{background:#161616}
body .studio-shell .btn{font-weight:500}
body .studio-shell .btn.primary,body .studio-shell .btn.light{background:#f5f5f5;border-color:#f5f5f5;color:#111}
body .studio-shell .icon{stroke-width:1.5}
body .studio-shell.is-home{--studio-nav-width:274px;padding-left:274px;background:#101010}
body .studio-shell.is-home>.global-sidebar{width:274px;background:#161616;padding:16px 12px;border-right:0}
body .studio-shell .sidebar-brand{height:48px;padding:0 8px}
body .studio-shell .sidebar-wordmark strong{font-size:19px;letter-spacing:0}
body .studio-shell .sidebar-wordmark img{width:28px;height:28px}
body .studio-shell .sidebar-main{gap:6px;margin-top:20px;padding-bottom:16px;border:0}
body .studio-shell .sidebar-main>button{height:40px;border-radius:12px;font-size:14px;line-height:22px;gap:12px;padding:0 16px}
body .studio-shell .sidebar-main>button.active{background:#ffffff14;font-weight:600}
body .studio-shell .sidebar-main>button:nth-child(4){margin-top:16px}
body .studio-shell .sidebar-section-heading{font-size:14px;padding:4px 16px}
body .studio-shell .sidebar-project-list>button{padding:0 16px;height:36px;font-size:14px;gap:12px}
body .studio-shell .sidebar-projects{border:0;padding-top:12px}
body .studio-shell .sidebar-footer{border:0}
body .studio-shell .sidebar-footer>button{height:36px;font-size:13px}
body .studio-shell .native-home-header{height:48px;background:#111;border:0;padding:0 24px}
body .studio-shell.is-home>.native-home-header .header-section-title,body .studio-shell .native-home-header .workspace-status{display:none}
body .studio-shell.is-home.nav-collapsed{--studio-nav-width:56px;padding-left:56px}
body .studio-shell.is-home.nav-collapsed>.global-sidebar{width:56px;padding:8px}
body .studio-shell.nav-collapsed .sidebar-wordmark img{width:24px;height:24px}
body .studio-shell.nav-collapsed .sidebar-brand{padding:0 0 8px;height:auto;min-height:82px;gap:6px;flex-shrink:0}
body .studio-shell.nav-collapsed .sidebar-collapse{display:flex;align-items:center;justify-content:center;width:32px;height:28px;min-height:28px;margin:0;flex-shrink:0}body .studio-shell.nav-collapsed .sidebar-collapse .icon{transform:rotate(180deg)}
body .studio-shell.nav-collapsed .sidebar-main>button{padding:0;width:40px;justify-content:center}
body .studio-shell.nav-collapsed .sidebar-footer>button{padding:0;width:40px;justify-content:center}
body .studio-shell.is-project{--native-chat-width:400px;--studio-nav-width:56px;padding-left:56px;height:100vh;overflow:hidden;background:#252525}
body .studio-shell.is-project.is-canvas{--native-chat-width:500px}
body .studio-shell.is-project.tab-storyboard{--native-chat-width:360px}
body .studio-shell .native-project-rail{position:fixed;inset:0 auto 0 0;width:56px;display:flex;flex-direction:column;align-items:center;padding:8px;gap:8px;background:#262626;border-right:1px solid #393939;z-index:40}
body .studio-shell .native-project-rail button{width:40px;height:40px;display:grid;place-items:center;color:#b9b9b9;border-radius:12px;flex:none}
body .studio-shell .native-project-rail button:hover{background:#2d2d2d;color:#ddd}
body .studio-shell .native-project-rail button.active{background:#3b3b3b;color:#fff}
body .studio-shell .native-project-rail nav{display:flex;flex-direction:column;gap:8px}
body .studio-shell .native-project-rail .native-logo{height:40px}
body .studio-shell .native-logo img{width:25px;height:25px}
body .studio-shell .native-rail-divider{height:1px;width:20px;background:#4a4a4a;margin:0 auto 4px}
body .studio-shell .native-project-header{width:100%;height:48px;padding:0 16px;gap:12px;background:#252525;border:0}
body .studio-shell.has-native-chat>.native-project-header{width:calc(100% - var(--native-chat-width))}
body .studio-shell .native-project-name{display:flex;align-items:center;gap:8px;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:500;flex:none}
body .studio-shell .native-project-name svg{flex:none}
body .studio-shell .native-stage-tabs,body .studio-shell .native-view-tabs{display:flex;gap:4px;align-items:center}
body .studio-shell .native-stage-tabs .btn,body .studio-shell .native-view-tabs .btn{min-height:30px;padding:5px 12px;background:transparent;border:0;font-size:13px;border-radius:18px}
body .studio-shell .native-stage-tabs .btn.active,body .studio-shell .native-view-tabs .btn.active{background:#383838;color:#fff}
body .studio-shell .native-project-header>.btn{font-size:12px;min-height:30px;padding:5px 10px}
body .studio-shell .native-project-header>.icon-btn{width:30px;height:30px;flex:none}
body .studio-shell.is-project>main{height:calc(100vh - 48px)}
body .studio-shell.is-project .creation-workspace{height:100%;min-height:0}
body .studio-shell.is-project .creation-content{order:0;background:#252525;overflow:auto;width:100%;height:100%;min-height:0}
body .studio-shell.is-project .agent-panel{order:1;flex:0 0 var(--native-chat-width);width:var(--native-chat-width);height:100vh;min-height:0;position:relative;top:auto;margin-top:-48px;overflow:hidden;background:#1c1c1c;border:0;border-left:1px solid #373737;z-index:20}
body .studio-shell .agent-panel-heading{height:48px;min-height:48px;border:0;padding:8px 20px;gap:12px}
body .studio-shell.is-canvas .agent-panel-heading{height:64px;min-height:64px}
body .studio-shell .native-chat-tab{font-size:14px;font-weight:500;white-space:nowrap}
body .studio-shell .native-memory-button{font-size:12px;color:#dedede;white-space:nowrap;padding:3px 0}
body .studio-shell .agent-panel-heading .icon-btn{width:24px;height:24px;color:#929292}
body .studio-shell .agent-panel-heading .icon-btn:hover{color:#fff}
body .studio-shell .agent-scroll{padding:20px 24px;scrollbar-width:thin;scrollbar-color:#434343 transparent}
body .studio-shell .agent-welcome{height:100%;min-height:240px;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:0 0 30px;text-align:center}
body .studio-shell .agent-welcome h2{font-size:24px;font-weight:600;letter-spacing:0}
body .studio-shell .agent-welcome>p{font-size:16px;font-weight:400;margin:20px 0 0;color:#f2f2f2;line-height:1.5}
body .studio-shell .native-chat-loading{position:absolute;top:60px;left:50%}
body .studio-shell .agent-message{margin:0 0 24px;max-width:100%;font-size:14px;line-height:1.7}
body .studio-shell .agent-message.user{display:flex;justify-content:flex-end;margin-bottom:24px}
body .studio-shell .agent-message.user .agent-message-content{display:inline-block;max-width:92%;padding:12px 16px;border:0;border-radius:16px;background:#303030;color:#f1f1f1;font-size:14px;white-space:pre-wrap}
body .studio-shell .agent-message.assistant{background:transparent;padding:0;border:0}
body .studio-shell .native-assistant-avatar{display:flex;margin-bottom:12px;color:#d9d9d9}
body .studio-shell .native-assistant-avatar svg{width:22px;height:22px}
body .studio-shell .agent-message-content{color:#e6e6e6;font-size:14px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
body .studio-shell .agent-message-content.agent-markdown{white-space:normal}
body .studio-shell .agent-markdown p{margin:0 0 12px;font-size:inherit;line-height:inherit;color:inherit}
body .studio-shell .agent-markdown :is(h1,h2,h3,h4,h5,h6){margin:20px 0 10px;font-weight:600;line-height:1.5;color:#f2f2f2;letter-spacing:0}
body .studio-shell .agent-markdown h1{font-size:20px}body .studio-shell .agent-markdown h2{font-size:18px}body .studio-shell .agent-markdown h3{font-size:16px}body .studio-shell .agent-markdown :is(h4,h5,h6){font-size:14px}
body .studio-shell .agent-markdown strong{font-weight:600;color:#f5f5f5}
body .studio-shell .agent-markdown :is(ul,ol){margin:8px 0 14px;padding-left:23px;list-style-position:outside}
body .studio-shell .agent-markdown ul{list-style-type:disc}body .studio-shell .agent-markdown ol{list-style-type:decimal}
body .studio-shell .agent-markdown li{display:list-item;margin:6px 0;padding-left:2px}body .studio-shell .agent-markdown li>p{margin:0}
body .studio-shell .agent-markdown li :is(ul,ol){margin:4px 0 8px}
body .studio-shell .agent-markdown blockquote{margin:12px 0;padding:2px 0 2px 14px;border-left:3px solid #535353;color:#bdbdbd}
body .studio-shell .agent-markdown code{font:12px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;border-radius:4px;background:#292929;padding:2px 5px;white-space:pre-wrap}
body .studio-shell .agent-markdown pre{margin:12px 0;padding:12px 14px;border:1px solid #363636;border-radius:10px;background:#1c1c1c;overflow-x:auto;white-space:pre}
body .studio-shell .agent-markdown pre code{display:block;padding:0;background:none;white-space:pre;overflow-wrap:normal}
body .studio-shell .agent-markdown a{color:#b9cbff;text-decoration:underline;text-underline-offset:3px}
body .studio-shell .agent-markdown hr{border:0;border-top:1px solid #353535;margin:18px 0}
body .studio-shell .agent-markdown>:first-child{margin-top:0}body .studio-shell .agent-markdown>:last-child,body .studio-shell .agent-markdown blockquote>:last-child{margin-bottom:0}
body .studio-shell .agent-message-meta,body .studio-shell .agent-answer-label,body .studio-shell .agent-cost-note{display:none}
body .studio-shell .agent-official-reply{border:0;background:transparent;padding:0}
body .studio-shell .agent-answer-actions{margin-top:8px;gap:4px;flex-wrap:wrap}
body .studio-shell .agent-answer-actions .btn{border:0;font-size:12px;min-height:28px;padding:4px 8px}
body .studio-shell .agent-compose-wrap{padding:12px 24px 20px;flex:none;border:0;background:#1c1c1c}
body .studio-shell .agent-composer{border:1px solid #3b3b3b;background:#1d1d1d;border-radius:18px;padding:0;box-shadow:none}
body .studio-shell .agent-composer:focus-within{border-color:#5b5b5b;box-shadow:none}
body .studio-shell .agent-composer textarea{border:0!important;box-shadow:none!important;outline:none;background:transparent;font-size:14px;padding:16px 16px 4px;line-height:1.65;min-height:78px;max-height:240px;resize:none}
body .studio-shell .agent-composer textarea::placeholder{color:#777b80}
body .studio-shell .agent-composer .composer-toolbar{padding:8px 16px 14px;gap:6px}
body .studio-shell .agent-composer .composer-symbol{width:30px;height:30px;font-size:18px;border-radius:50%;font-weight:400;color:#b3b3b3;display:grid;place-items:center}
body .studio-shell .native-attach{width:30px;height:30px;border:1px solid #424242;border-radius:50%;display:grid;place-items:center;color:#a5a5a5}
body .studio-shell .agent-composer .composer-send{width:34px;height:34px;background:#f3f3f3}
body .studio-shell .agent-composer .composer-send:disabled{background:#303030;opacity:1;color:#747474}
body .studio-shell .agent-selected-skills{padding:0;margin:0 0 8px;gap:5px;min-height:0}
body .studio-shell .agent-selected-skills:empty{display:none}
body .studio-shell .agent-selected-skills>button{font-size:12px;padding:6px 8px;background:#2b2b2b;border:0;border-radius:8px}
body .studio-shell .native-task-row{display:flex;align-items:center;gap:9px;margin:10px 0;padding:10px 0;min-height:40px;border:0;background:none;font-size:13px}
body .studio-shell .native-task-icon{width:18px;height:20px;color:#979797;display:grid;place-items:center}
body .studio-shell .native-task-body{flex:1;min-width:0}
body .studio-shell .native-task-body>span{font-size:13px;color:#bbb}
body .studio-shell .native-task-body>small{font-size:12px;color:#818181;margin-left:10px}
body .studio-shell .native-task-row.completed .native-task-icon{color:#b0cdb6}
body .studio-shell .native-task-row .btn{border:0;font-size:12px;padding:4px 8px;min-height:26px;background:transparent}
body .studio-shell .native-task-error,body .studio-shell .native-chat-error{font-size:12px;color:#dbb29c;margin-top:8px;line-height:1.6}
body .studio-shell .native-chat-thinking{display:flex;align-items:center;gap:8px;color:#929292;font-size:13px}
body .studio-shell .native-tool-menu{display:grid;gap:8px}
body .studio-shell .native-tool-menu>.btn{justify-content:flex-start;min-height:46px;background:#272727;border:0;font-size:14px}
body .studio-shell .native-history-list{display:flex;flex-direction:column;gap:4px}
body .studio-shell .native-history-list>.btn{display:flex;justify-content:flex-start;align-items:center;gap:12px;background:transparent;border:0;padding:12px;font-size:13px;text-align:left;white-space:normal}
body .studio-shell .native-history-list .btn>span{flex:1}
body .studio-shell .native-history-list .btn>small{color:#818181;white-space:nowrap}
body .studio-shell .native-memory pre{font-family:inherit;white-space:pre-wrap;line-height:1.8;max-height:320px;overflow:auto;font-size:13px;margin:12px 0 24px;color:#bdbdbd}
body .studio-shell .native-memory details{font-size:13px;margin:10px 0}
body .studio-shell .native-memory details p{line-height:1.7;margin-top:8px;color:#b4b4b4}
body .studio-shell .native-key-list{display:grid;grid-template-columns:1fr 1fr;gap:18px;font-size:13px}
body .studio-shell .native-key-list dd{color:#aaa}
body .studio-shell.is-canvas .native-project-header{background:#070707}
body .studio-shell .native-canvas{height:100%;padding:0;background:#000}
body .studio-shell .native-canvas .canvas-layout{height:100%;display:block;position:relative}
body .studio-shell .native-canvas .canvas-viewport{height:100%;border:0;border-radius:0;background:#000;min-height:0;cursor:default;touch-action:none}
body .studio-shell .native-canvas .canvas-viewport.is-selecting{cursor:crosshair;user-select:none}
body .studio-shell .native-canvas .canvas-viewport.is-panning,body .studio-shell .native-canvas .canvas-viewport.is-panning .canvas-node{cursor:grabbing;user-select:none}
body .studio-shell .native-canvas .canvas-selection-box{position:absolute;z-index:3;pointer-events:none;border:1px solid #b3a2ee;background:#b3a2ee26;box-sizing:border-box}
body .studio-shell .native-canvas .canvas-dots{background-image:radial-gradient(#303030 .7px,transparent .7px);background-size:10px 10px;opacity:.7}
body .studio-shell .native-canvas .canvas-node{overflow:visible;padding:0;border:1px solid transparent;border-radius:18px;background:#222;box-shadow:none;color:#ddd}
body .studio-shell .native-canvas .canvas-node.selected{border:2px solid #b3a2ee;box-shadow:0 0 0 2px #c5b4ff26}
body .studio-shell .native-node-caption{position:absolute;top:-27px;left:2px;right:0;height:22px;display:flex;gap:6px;align-items:center;font-size:12px;color:#b7b7b7}
body .studio-shell .native-node-caption span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .studio-shell .native-node-caption .icon{width:13px;height:13px;flex:none}
body .studio-shell .native-node-image{height:100%;width:100%;object-fit:cover;border-radius:17px;display:block;pointer-events:none}
body .studio-shell .native-node-image.portrait{object-fit:contain;background:#1a1a1a}
body .studio-shell .native-node-text{padding:18px;white-space:pre-wrap;overflow:hidden;height:100%;font-size:14px;line-height:1.6}
body .studio-shell .native-canvas .canvas-node-open{position:absolute;right:6px;bottom:6px;opacity:0;background:#161616b8;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;color:#fff}
body .studio-shell .native-canvas .canvas-node:hover .canvas-node-open,body .studio-shell .native-canvas .canvas-node.selected .canvas-node-open{opacity:1}
body .studio-shell .native-node-port{position:absolute;top:calc(50% - 5px);width:10px;height:10px;border:1px solid #aaa;border-radius:50%;background:#232323;opacity:0}
body .studio-shell .native-node-port.input-port{left:-6px}
body .studio-shell .native-node-port.output-port{right:-6px}
body .studio-shell .native-canvas .canvas-node:hover .native-node-port{opacity:1}
body .studio-shell .native-canvas-tools{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);height:48px;border:1px solid #3a3a3a;background:#252525;border-radius:26px;display:flex;gap:5px;align-items:center;padding:5px 8px;z-index:5}
body .studio-shell .native-node-plus{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#1a1a1a}
body .studio-shell .native-canvas-tools .btn{width:32px;height:32px;padding:0;min-height:0;border:0;border-radius:50%}
body .studio-shell .native-canvas .native-canvas-viewport-tools{bottom:12px;left:16px;right:auto;border-radius:24px;display:flex;align-items:center;background:#252525;border:1px solid #383838;height:40px;gap:2px;padding:4px 8px;box-shadow:none}
body .studio-shell .native-canvas-viewport-tools .btn{padding:0;width:26px;height:28px;min-height:0;border:0;background:transparent;font-size:16px}
body .studio-shell .native-canvas-viewport-tools .icon{width:14px;height:14px}
body .studio-shell .native-canvas #canvas-zoom-label{font-size:12px;min-width:40px;padding:4px;color:#ddd}
body .studio-shell .native-canvas .canvas-empty{color:#888;pointer-events:none}
body .studio-shell .native-canvas .canvas-empty h3{font-size:20px;font-weight:500;color:#bcbcbc}
body .studio-shell .native-canvas .canvas-empty p{font-size:13px;margin-top:12px}
body .studio-shell .native-canvas-status{position:absolute;top:8px;left:16px;font-size:11px;color:#888;pointer-events:none}
body .studio-shell .native-canvas .canvas-help{left:50%;bottom:70px;transform:translateX(-50%);font-size:12px;background:#292929;padding:8px 16px;border-radius:16px;white-space:nowrap}
body .studio-shell .native-canvas .canvas-inspector{display:none;position:absolute;right:16px;top:16px;width:280px;max-height:calc(100% - 96px);overflow:auto;border:1px solid #383838;border-radius:16px;background:#242424;padding:18px;z-index:6;box-shadow:0 12px 28px #0005}
body .studio-shell .native-canvas .canvas-inspector.is-open{display:block}
body .studio-shell .native-canvas .canvas-inspector h3{font-size:16px}
body .studio-shell .native-canvas .canvas-inspector-preview{max-height:200px;object-fit:contain}
body .studio-shell .native-canvas .canvas-detail-text{font-size:13px;max-height:170px;overflow:auto;line-height:1.7}
body .studio-shell .native-canvas .canvas-minimap-wrap{right:16px;bottom:16px;border-radius:12px;overflow:hidden;z-index:4}
body .studio-shell .native-canvas [hidden]{display:none!important}
body .studio-shell .canvas-add-menu{position:absolute;z-index:12;width:184px;max-height:calc(100% - 16px);overflow-y:auto;padding:6px;border:1px solid #424242;border-radius:12px;background:#252525;box-shadow:0 12px 34px #0008;cursor:default}
body .studio-shell .canvas-add-menu button{display:flex;align-items:center;gap:12px;width:100%;height:40px;border:0;border-radius:7px;padding:0 12px;background:transparent;color:#e1e1e1;font:inherit;font-size:13px;text-align:left;cursor:pointer}
body .studio-shell .canvas-add-menu button:hover,body .studio-shell .canvas-add-menu button:focus-visible{outline:0;background:#3a3a3a;color:#fff}
body .studio-shell .canvas-add-menu button:last-child{margin-top:5px;border-top:1px solid #3c3c3c;border-radius:0 0 7px 7px}
body .studio-shell .canvas-add-menu .icon{width:17px;height:17px;color:#bdbdbd;flex:none}
body .studio-shell .canvas-context-menu{width:220px;padding:8px;border:1px solid #3a3a3a;border-radius:24px;background:linear-gradient(130deg,#262626e8,#191919f5 55%);backdrop-filter:blur(24px);box-shadow:0 12px 34px #0005}
body .studio-shell .canvas-context-menu button{height:40px;padding:0 12px;border-radius:12px;color:#f3f3f3;justify-content:space-between;gap:16px;font-size:13px;font-weight:400;white-space:nowrap}
body .studio-shell .canvas-context-menu button:last-child{margin:0;border:0;border-radius:12px}
body .studio-shell .canvas-context-menu button:disabled{color:#787878;background:transparent;cursor:default;opacity:1}
body .studio-shell .canvas-context-menu .canvas-menu-key{margin-left:auto;color:#929292;font-size:12px}
body .studio-shell .canvas-context-menu .canvas-menu-key .icon{width:15px;height:15px}
body .studio-shell .native-node-text-editor{display:block;width:100%;height:100%;overflow:auto;overscroll-behavior:contain;border:0!important;outline:none!important;resize:none;border-radius:16px;background:transparent;box-shadow:none!important;color:#e6e6e6;user-select:text;cursor:text}
body .studio-shell .native-node-text-editor::placeholder{color:#828282}
@media(max-width:1250px){
body .studio-shell.is-project{--native-chat-width:360px}
body .studio-shell.is-project.is-canvas{--native-chat-width:400px}
body .studio-shell .native-project-name{max-width:140px}
body .studio-shell .native-stage-tabs .btn{padding:5px 8px}
body .studio-shell .native-canvas-tools{left:auto;right:14px;transform:none}
body .studio-shell.is-home{padding-left:240px}
body .studio-shell.is-home>.global-sidebar{width:240px}}
@media(max-width:950px){
body .studio-shell.is-project{--native-chat-width:320px}
body .studio-shell.is-project.is-canvas{--native-chat-width:340px}
body .studio-shell .native-project-header .native-stage-tabs{display:none}
body .studio-shell .agent-compose-wrap{padding:10px 16px 16px}
body .studio-shell .agent-scroll{padding:16px}
body .studio-shell .native-canvas-viewport-tools .btn:nth-child(3),body .studio-shell .native-canvas-viewport-tools .btn:nth-child(5){display:none}}

body .studio-shell.is-project .creation-workspace.with-agent{display:flex;grid-template-columns:none}
body .studio-shell.is-project .native-canvas.canvas-page{height:100%;padding:0;display:block}
body .studio-shell.is-project .native-canvas .canvas-layout{height:100%;display:block;overflow:visible}
body .studio-shell.is-project .native-canvas .canvas-viewport{height:100%;min-height:0}
body .studio-shell.is-project .creation-workspace.with-agent:before{display:none}

body .studio-shell .native-navigation-result>.btn{border:0;background:transparent;font-size:13px;padding:6px 0;color:#cfcfcf;gap:8px}
