/* Scoped to the canvas/list shell. No node, canvas transform or editor styles. */
body .studio-shell .cs-rail{padding:8px 0 0;gap:0;width:56px;background:#262626;border-right:1px solid #393939;overflow:visible}
body .studio-shell .cs-rail button{display:flex;justify-content:center;align-items:center;position:relative;padding:0;border:0;background:transparent;width:36px;height:36px;min-height:0;border-radius:32px;color:var(--text-2)}
body .studio-shell .cs-rail button svg{width:20px;height:20px;flex:none}
body .studio-shell .cs-rail button:hover,body .studio-shell .cs-rail button[aria-expanded=true]{background:#363636;color:var(--text-1)}
body .studio-shell .cs-rail .cs-logo{height:36px;width:40px;margin-bottom:12px}
.cs-logo img{width:23px;height:23px;object-fit:contain}
.cs-divider{height:1px;width:16px;flex:none;background:#4c4c4c;display:block;margin:0 auto 12px}
body .studio-shell .cs-rail .cs-primary{gap:4px;margin:0 0 12px}
body .studio-shell .cs-rail .cs-primary button{width:44px;height:44px;border-radius:8px}
body .studio-shell .cs-rail .cs-primary button.active{background:#303030;color:var(--text-1);border-radius:12px}
body .studio-shell .cs-rail .cs-tools{gap:16px}
body .studio-shell .cs-rail .cs-tools button:last-child{height:32px}
.cs-rail-space{flex:1;min-height:16px}
body .studio-shell .cs-rail .cs-bottom{gap:8px}
body .studio-shell .cs-rail .cs-bottom button{width:32px;height:32px;color:var(--text-2)}
body .studio-shell .cs-rail .cs-bottom button:first-child{color:var(--text-1);margin-bottom:-4px}
body .studio-shell .cs-rail .cs-bottom button:last-child{margin-top:2px}
.cs-bottom-divider{margin-top:10px;margin-bottom:10px;background:#393939}
body .studio-shell .cs-rail .cs-avatar{height:32px;width:32px;margin-bottom:8px}
.cs-avatar img{width:24px;height:24px;object-fit:contain;background:#fff;border-radius:50%;padding:4px}
.native-project-rail>.cs-avatar{margin-top:auto;flex-shrink:0;align-self:center;width:32px;height:32px;margin-bottom:8px}
.global-sidebar .sidebar-footer>.sidebar-profile{width:148px;max-width:100%;height:32px;min-height:32px;flex-shrink:0;padding:4px;gap:12px;margin-top:8px;margin-bottom:12px;border-radius:18px;background:#202020;color:var(--text-1);font-size:12px}
.sidebar-profile img{width:24px;height:24px;flex-shrink:0;object-fit:contain;background:#fff;border-radius:50%;padding:4px}
.sidebar-profile span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.global-sidebar .sidebar-footer>.sidebar-profile:hover,.global-sidebar .sidebar-footer>.sidebar-profile[aria-expanded=true]{background:#2a2a2a;color:#fff}
.nav-collapsed .global-sidebar .sidebar-footer>.sidebar-profile{width:32px;align-self:center;gap:0}
@media(max-width:1000px){.global-sidebar .sidebar-footer>.sidebar-profile{width:32px;align-self:center;gap:0}}
.cs-rail [data-tooltip]:hover:after{content:attr(data-tooltip);position:absolute;left:calc(100% + 9px);top:50%;transform:translateY(-50%);white-space:nowrap;background:#252525;border:1px solid #393939;border-radius:8px;padding:8px 12px;color:var(--text-1);font-size:12px;z-index:200;pointer-events:none}
body .studio-shell .cs-header{padding:0 4px 0 23px;gap:12px;background:transparent;height:48px;min-height:48px;overflow:visible;position:relative;z-index:41;font-family:var(--font-sans)}
.cs-header button,.cs-popover button,.cs-dialog button{border:0;background:transparent;color:var(--text-1);font:500 12px/1.4 var(--font-sans);cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:0}
.cs-header button:focus-visible,.cs-rail button:focus-visible,.cs-popover button:focus-visible{outline:1px solid #bbb;outline-offset:2px}
.cs-header svg,.cs-popover svg,.cs-dialog svg{width:16px;height:16px;flex:none}
.cs-project-title{display:flex;align-items:center;gap:12px;min-width:0;flex-shrink:0}
.cs-project-title>span{color:var(--text-3);font-size:12px;white-space:nowrap}
.cs-header .cs-project-name{display:block;padding:0;overflow:hidden;text-overflow:ellipsis;max-width:230px;text-align:left;flex-shrink:1;font-weight:500}
.cs-project-name-input{background:#262626;border:1px solid #595959;border-radius:4px;padding:3px 6px;min-width:70px;width:160px;max-width:230px;font-size:12px;color:var(--text-1)}
.cs-view-tabs{display:flex;align-items:center;gap:2px;flex:none;background:#222;border:1px solid #333;border-radius:999px;padding:3px}
.cs-header .cs-view-tabs button{height:24px;min-width:64px;padding:0 10px;font-size:12px;border-radius:999px;background:transparent}
.cs-header .cs-view-tabs button[aria-checked=true]{background:#343434}
.cs-view-tabs svg{width:14px;height:14px}
.cs-header-spacer{flex:1;min-width:0}
.cs-header-actions{display:flex;align-items:center;gap:6px;flex:none}
.cs-header-actions>button{height:32px;padding:0 9px}
.cs-header-actions button:hover{background:#282828;border-radius:999px}
.cs-header-actions .cs-style{padding:0 2px;max-width:190px}
.cs-style>span{max-width:155px;overflow:hidden;text-overflow:ellipsis}
.cs-header-divider{height:16px;width:1px;background:#303030;margin:0 2px}
body .cs-header .cs-pill,.cs-display{height:32px;border-radius:999px;background:#1c1c1c;border:1px solid #262626;display:flex;align-items:center;gap:5px;padding:0 12px;flex:none}
.cs-header .cs-membership{padding:0 10px;gap:8px;min-width:70px;justify-content:center}
.cs-membership>button{height:28px;padding:0}
.cs-membership>button:first-child svg{color:var(--accent-purple);width:12px;height:12px}
.cs-membership>i{width:3px;height:3px;background:#777}
.cs-membership small{font-size:12px;line-height:16px;padding:0 5px;background:#ddd;color:#555;border-radius:10px;margin-left:3px}
.cs-display{font-size:12px;gap:5px;color:var(--text-1)}
.agent-panel-heading .cs-display{margin-left:auto;padding:0 6px;height:30px}
.cs-popover{position:fixed;z-index:120;background:#151515;color:var(--text-1);border:1px solid #242424;box-shadow:0 16px 45px #0006;border-radius:24px;padding:8px;min-width:190px;overflow:auto;font:13px/1.4 var(--font-sans)}
.cs-popover>button{height:40px;display:flex;width:100%;padding:0 12px;justify-content:space-between;color:var(--text-2);text-align:left;border-radius:12px;font-size:13px}
.cs-popover button:hover{background:#303030;color:#fff}
.cs-popover>small{display:block;color:var(--text-3);margin:8px 12px}
.cs-popover.cs-display-menu{min-width:200px}
.cs-display-menu>button{justify-content:flex-start;gap:10px}
.cs-display-menu>button>span{flex:1}
.cs-dialog{background:#232323;color:var(--text-1);border:1px solid #3c3c3c;border-radius:24px;padding:24px;width:min(480px,calc(100vw - 32px));box-shadow:0 18px 70px #0009;font:14px/1.6 var(--font-sans)}
.cs-dialog::backdrop{background:#0007}
.cs-dialog header{display:flex;align-items:center;justify-content:space-between;gap:24px}
.cs-dialog h2{font-size:16px;line-height:26px;margin:0;font-weight:600}
.cs-dialog .cs-close{width:24px;height:24px;color:var(--text-2)}
.cs-dialog-body{margin-top:16px;color:var(--text-2)}
.cs-dialog-body p{margin:0}
.cs-dialog footer{margin-top:24px;display:flex;justify-content:flex-end;gap:12px}
.cs-dialog footer button{height:36px;padding:0 22px;border:1px solid #4a4a4a;border-radius:999px;font-size:14px}
.cs-dialog button.cs-primary-button{background:#f3f3f3;color:#171717;border-color:#f3f3f3}
.cs-dialog button:disabled{opacity:.45;cursor:wait}
.cs-profile{width:288px;padding:8px;border-radius:24px;background:#262626cc;backdrop-filter:blur(24px);border-color:#ffffff0a}
.cs-profile>button{height:40px;padding:8px 8px 8px 12px;font-weight:400;color:var(--text-1)}
.cs-profile hr{border:0;border-top:1px solid #353535;margin:6px 0}
.cs-profile-person{display:flex;align-items:center;gap:12px;padding:10px;height:56px;color:var(--text-1)}
.cs-profile-person>img{width:32px;height:32px;border-radius:50%;background:#fff;padding:5px}
.cs-profile-person>div{flex:1;min-width:0}
.cs-profile-person>div>span{display:inline-block;max-width:145px;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-profile-person small{margin-left:6px;color:var(--text-2);background:#333;padding:1px 6px;border-radius:5px;font-size:12px}
.cs-profile-person button{display:block;color:var(--text-2);margin-top:4px;padding:0;font-size:12px;font-weight:400;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.cs-profile .cs-create-team{height:56px;justify-content:flex-start;padding:10px;gap:10px}
.cs-create-team svg:last-child{width:14px}
.cs-publish-row{display:flex;height:40px;align-items:stretch}
.cs-publish-row button{padding:8px 8px 8px 12px;font-size:13px;font-weight:400;justify-content:flex-start}
.cs-publish-row button:first-child{flex:1}
.cs-publish-row button:last-child{font-size:12px;color:var(--text-2)}
.cs-profile [data-cs=signout]{color:#d25c4e}
.cs-profile .cs-profile-legal{height:21px;padding:0;justify-content:center}
.cs-profile-person>svg,.cs-profile [data-cs=signout]>svg{color:var(--text-3)}
.cs-profile [data-value="Blender 插件"]>svg{width:26px;height:14px}
.cs-profile [data-value="Blender 插件"]>svg path{fill:#262626}
.cs-profile-more{position:fixed;width:160px;padding:5px;border:1px solid #444;border-radius:12px;background:#242424}
.cs-profile-more button{height:32px;width:100%;justify-content:flex-start;padding:0 12px}
.cs-history{width:440px;max-width:calc(100vw - 64px);padding:16px;border-radius:24px;background:#262626cc;backdrop-filter:blur(24px);border-color:#ffffff0a}
.cs-history>header{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px;height:32px}
.cs-history h2{font-size:14px;margin:0;font-weight:500}
.cs-history header button{width:32px;height:32px}
.cs-history-controls{display:flex;justify-content:space-between;gap:12px;align-items:center}
.cs-history-controls [role=tablist]{display:flex;gap:8px}
.cs-history-controls [role=tablist] button{height:32px;min-width:54px;font-size:13px}
.cs-history-controls button,.cs-history summary{border-radius:999px;padding:7px 12px;border:1px solid #2e2e2e;font-size:12px;color:var(--text-2)}
.cs-history [aria-selected=true]{background:#292929;color:var(--text-1)}
.cs-history details{position:relative;flex:none}
.cs-history summary{list-style:none;display:flex;align-items:center;gap:6px;background:#242424;cursor:pointer}
.cs-history details>div{position:absolute;right:0;top:36px;z-index:2;width:140px;background:#242424;border:1px solid #414141;border-radius:14px;padding:5px}
.cs-history details button{display:flex;width:100%;border:0;border-radius:8px;justify-content:flex-start}
.cs-history-results{max-height:460px;overflow:auto;margin-top:8px}
.cs-history-results>.cs-empty{min-height:115.5px;padding:0;display:grid;place-content:center}
.cs-empty{text-align:center;color:var(--text-3);padding:40px 8px;margin:0;font-size:13px}
.cs-history-row{display:flex;gap:12px;align-items:flex-start;padding:8px;margin:2px 0;border-radius:12px}
.cs-history-row[data-cs]{cursor:pointer}
.cs-history-row[data-cs]:hover,.cs-history-row[data-cs]:focus-visible{background:#ffffff0f;outline:none}
.cs-history-thumb{position:relative;flex:none;width:64px;height:64px;border-radius:8px;overflow:hidden;background:#1f1f1f;display:grid;place-items:center;color:var(--text-3)}
.cs-history-thumb>img,.cs-history-thumb>video{width:100%;height:100%;object-fit:cover}
.cs-history-meta{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding-top:4px}
.cs-history-results .cs-history-name{max-width:100%;margin:0;font-size:13px;line-height:18px;color:var(--text-1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs-history-results .cs-history-sub{margin:0;font-size:12px;line-height:16px;color:var(--text-3)}
.cs-history-results small{color:#ca938a}
.cs-history-results small strong{font-weight:500;margin-right:4px;color:#e0a99f}
.cs-history-results .cs-history-error{margin-top:6px}
.cs-history-results .cs-history-error summary{display:inline-flex;padding:3px 10px}
.cs-history-results .cs-history-error pre{margin:6px 0 0;max-height:160px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:var(--text-2)}
.cs-history-meta audio{width:100%;height:32px}
.cs-history-results .cs-history-open{display:inline-flex;align-items:center;text-decoration:none}
.cs-history-results .cs-history-restore{height:28px;padding:0 12px;border:1px solid #3a3a3a;border-radius:999px;background:#2a2a2a;color:var(--text-1);font-size:12px}
.cs-history-results .cs-history-restore:hover{background:#333;color:#fff}
.cs-style-popover{width:658px;max-width:calc(100vw - 72px);height:314px;padding:16px;border-radius:24px;display:flex;flex-direction:column;background:#262626cc;backdrop-filter:blur(24px)}
.cs-style-search{display:flex;gap:8px;align-items:center;color:var(--text-1);height:32px;min-height:32px;margin-bottom:8px;padding:0 14px}
.cs-style-search input{border:0;background:transparent;color:var(--text-1);outline:none;font-size:13px;width:100%;padding:0}
.cs-style-tabs{display:flex;align-items:center;gap:8px;margin-bottom:12px;min-height:32px}
.cs-style-tabs button{border-radius:999px;padding:0 14px;height:32px;background:transparent}
.cs-style-tabs button[aria-selected=true]{background:#353535;color:var(--text-1)}
.cs-style-tabs button:last-child{margin-left:auto}
.cs-style-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:120px;gap:12px;overflow:auto;align-content:start;flex:1;min-height:0;scrollbar-width:none}
.cs-style-grid>button{display:flex;flex-direction:column;gap:8px;align-items:stretch;border-radius:12px;background:transparent;min-width:0;padding:0;white-space:normal;flex:none;font-weight:400}
.cs-style-grid>button[aria-pressed=true] .cs-style-cover{outline:2px solid white;outline-offset:-2px}
.cs-style-cover{display:grid;place-items:center;aspect-ratio:4/3;background:#292929;border-radius:16px;overflow:hidden;flex:none}
.cs-style-cover img{width:100%;height:100%;object-fit:cover}
.cs-style-cover svg{width:24px;height:24px;color:var(--text-2)}
.cs-style-grid>button>span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}
body .studio-shell.cs-chat-only .creation-content{display:none}
body .studio-shell.cs-chat-only .agent-panel{width:100%;flex-basis:100%;margin-top:0;height:100%}
body .studio-shell.cs-chat-only>.cs-header{width:100%}
body .studio-shell .cs-header ~ main .agent-panel-heading{min-height:48px;height:48px}
body .studio-shell .cs-header{justify-content:flex-end;padding:0 16px;gap:16px;clip-path:inset(0)}
.cs-header-left{display:flex;align-items:center;gap:12px;flex:1 1 auto;min-width:0;overflow:hidden;padding-right:12px}
.cs-project-title{flex:0 1 auto;overflow:hidden;padding-left:7px}
.cs-project-title>button:not(.cs-project-name){flex-shrink:0!important}
.cs-project-title>.cs-project-name{min-width:0;white-space:nowrap;flex-shrink:1}
.cs-project-title>span{flex-shrink:3;min-width:0;overflow:hidden;text-overflow:ellipsis}
.cs-header-actions{gap:5.5px}
.cs-header,.cs-rail,.cs-popover,.cs-dialog{-webkit-font-smoothing:antialiased;letter-spacing:.0804px}
.cs-header button,.cs-popover button,.cs-dialog button{letter-spacing:inherit;line-height:1.15}
.cs-header .cs-project-name{line-height:1.4}
.cs-header .cs-style{width:146px;padding:0;gap:4px}
.cs-header .cs-style>svg:last-child{width:12px;height:12px}
.cs-header .cs-style[aria-expanded=true]>svg:last-child,.cs-display[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}
.cs-header .cs-ratio{width:83px;padding:0 8px}
.cs-header [data-cs=market]{width:90px;padding:0 10px}
.cs-header [data-cs=share]{width:72px;padding:0 14px}
.cs-header [data-cs=display]{width:90px;padding:0 14px}
.cs-style-tabs button{min-width:48px;flex-shrink:0}
.cs-style-grid>button{gap:12px;justify-content:flex-start}
.cs-style-grid>button>span:last-child{font-size:12px;font-weight:500;line-height:18px}
.cs-style-search button{height:32px;font-size:12px;padding:0;background:transparent}
.cs-style-popover [hidden]{display:none!important}
.cs-style-searching{height:318px}
.cs-style-searching .cs-style-search{height:36px;min-height:36px;padding:0;position:relative}
.cs-style-searching input{height:36px;border:1px solid #444;border-radius:24px;padding:0 34px 0 12px;background:#333;font-size:14px}
.cs-style-searching [data-cs=style-clear]{position:absolute;right:10px;top:2px}
.cs-history-more{position:absolute;right:3px;bottom:3px;width:auto!important;padding:0 6px;border-radius:999px;background:#000000a6;color:var(--text-1);font-size:12px;line-height:20px}
/* 兼容性第 6 条：网页可用高度 ≤700（1366×768 为 641，1920×1080@150% 为 600）时照小云雀收紧图标间距，头像固定在底部
   可点；≤560（1366×768@125% 为 505）再收一档。不加滚动条，也不把按钮收进“更多”。 */
@media(max-height:700px){
body .studio-shell .cs-rail .cs-logo{margin-bottom:6px}
body .studio-shell .cs-rail .cs-divider{margin-bottom:6px}
body .studio-shell .cs-rail .cs-bottom-divider{margin-top:6px;margin-bottom:6px}
body .studio-shell .cs-rail .cs-primary{gap:2px;margin-bottom:6px}
body .studio-shell .cs-rail .cs-tools{gap:8px}
body .studio-shell .cs-rail .cs-bottom{gap:4px}
body .studio-shell .cs-rail .cs-rail-space{min-height:8px}
}
@media(max-height:560px){
body .studio-shell .cs-rail .cs-logo{margin-bottom:4px}
body .studio-shell .cs-rail .cs-divider{margin-bottom:4px}
body .studio-shell .cs-rail .cs-bottom-divider{margin-top:4px;margin-bottom:4px}
body .studio-shell .cs-rail .cs-primary{margin-bottom:4px}
body .studio-shell .cs-rail .cs-primary button{width:40px;height:40px}
body .studio-shell .cs-rail .cs-tools{gap:2px}
body .studio-shell .cs-rail .cs-tools button{height:32px}
body .studio-shell .cs-rail .cs-bottom{gap:0}
body .studio-shell .cs-rail .cs-rail-space{min-height:4px}
}
