/* Frame workspace: presentation and interaction layer, no model-side effects. */
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink)}
body{background:var(--studio-bg);font-size:13px;-webkit-font-smoothing:antialiased}button,a,input,select,textarea{outline-offset:3px}button{border-radius:9px;transition:background .16s,color .16s,box-shadow .16s,transform .16s}button:not(:disabled):active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:2px solid #857fff}input:focus,select:focus,textarea:focus{border-color:#9792e8!important;box-shadow:0 0 0 3px #756be614;outline:none}input,select,textarea{border:1px solid #dedfe8;border-radius:8px;background:#fff;color:#303346;transition:border-color .18s,box-shadow .18s}textarea{resize:vertical;line-height:1.8}::placeholder{color:#a3a5b2}button.primary,.primary{background:#625be5;color:white;border:1px solid #625be5;box-shadow:0 3px 9px #625be521}button.primary:hover{background:#514acf}svg{stroke-width:1.7}button.icon{border-radius:8px}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{background:#cbd0dc;border-radius:9px}::-webkit-scrollbar-track{background:transparent}
.sidebar{width:208px;flex:0 0 208px;background:var(--ui-surface-sidebar);color:var(--ui-ink);padding:30px 16px 18px;border:0;display:flex;flex-direction:column;gap:0}.sidebar .brand{padding:0 12px;margin-bottom:36px;color:var(--ui-ink);gap:12px}.brand-mark{background:#746cf0!important;color:white;border-radius:12px;width:36px;height:36px;display:grid;place-items:center}.brand>span:last-child{font-size:25px;font-weight:700;letter-spacing:-1px}.brand small{font-size:8px!important;letter-spacing:2px!important;color:var(--ui-muted)!important;margin-top:4px}.sidebar nav{display:grid;gap:5px}.sidebar .nav{height:43px;padding:0 13px;border-radius:8px;color:var(--ui-muted);background:transparent;font-size:12px;gap:12px;font-weight:500}.sidebar .nav:hover{background:var(--ui-surface-subtle);color:var(--ui-ink)}.sidebar .nav.active{background:var(--ui-accent-soft);color:var(--ui-accent-strong)}.sidebar .nav.active svg{color:var(--ui-accent)}.sidebar .count{background:var(--ui-accent-soft);color:var(--ui-accent-strong)}.library-heading{font-size:10px;letter-spacing:1px;color:var(--ui-muted);margin:30px 12px 10px}.library-heading button{color:var(--ui-muted)}.project-list{max-height:200px;flex:0 1 auto}.project-item,.saved-item{border-radius:7px!important;color:var(--ui-muted)!important;font-size:11px!important;line-height:1.6!important;max-width:100%}.project-item.active,.project-item:hover,.sidebar .saved-item:hover{background:var(--ui-surface-subtle)!important;color:var(--ui-ink)!important}.project-item.active:before{background:#9085f7}.sidebar-bottom{margin-top:auto;border:0;color:#707993;padding:24px 12px 0;font-size:10px}.status-dot{background:#71bea5}main{min-width:0;flex:1}.topbar{height:84px;padding:0 30px;background:#fff;border-bottom:1px solid var(--line)}.topbar .eyebrow{font-size:9px;letter-spacing:1.8px;color:#a2a4b5}.topbar h1{font-size:20px;letter-spacing:-.5px;font-weight:650;margin-top:5px}.top-actions{gap:14px}#account-chip{border-left:1px solid var(--line);padding-left:15px;display:flex;align-items:center;gap:12px}#account-name{font-size:12px}#logout{font-size:11px;color:#888b9c}.badge{border-radius:5px;letter-spacing:0;font-size:10px;font-weight:500;padding:5px 8px}.badge.success{background:#ecf7f2;color:#3b8b6d}.badge.running{background:#efedff;color:#7165cc}.badge.demo{background:#f0f1f5;color:#85899e}
.intent-view{height:calc(100dvh - 84px);min-height:0;padding:0;overflow:hidden;display:flex;flex-direction:column;background:var(--studio-bg)}.studio-toolbar{height:62px;flex:none;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:0 24px;border-bottom:1px solid var(--line);background:white}.studio-tabs{display:flex;gap:4px;background:#f1f2f7;border-radius:10px;padding:4px}.studio-tabs button{display:flex;align-items:center;gap:8px;padding:8px 14px;border:0;background:transparent;color:#878a9e;font-size:12px}.studio-tabs button[aria-selected=true]{background:#fff;color:#4d48b5;box-shadow:0 1px 5px #20223b12}.studio-tabs svg,.studio-tools svg{width:15px;height:15px}.studio-tools{display:flex;gap:7px}.studio-tools button{display:flex;align-items:center;gap:7px;border:1px solid #e7e8f0;background:white;color:#7b8095;padding:8px 10px;font-size:11px}.studio-tools button[aria-pressed=true]{background:#f3f1ff;color:#7066c7;border-color:#e5e0fc}.intent-shell{flex:1;height:auto;min-height:0;grid-template-columns:220px minmax(0,1fr) 300px;grid-template-rows:minmax(0,1fr);gap:0;overflow:hidden;background:white}.intent-shell.assets-collapsed{grid-template-columns:minmax(0,1fr) 300px}.intent-shell.chat-collapsed{grid-template-columns:220px minmax(0,1fr)}.intent-shell.assets-collapsed.chat-collapsed{grid-template-columns:minmax(0,1fr)}.intent-shell.assets-collapsed .intent-assets,.intent-shell.chat-collapsed .intent-chat{display:none}.intent-assets,.intent-chat{background:#fff;overflow:hidden}.intent-panel-heading{min-height:76px;padding:18px 16px;border-color:var(--line)}.intent-panel-heading h2{font-size:13px;font-weight:650;margin:3px 0}.panel-kicker{font-size:8px;color:#a3a5b4;letter-spacing:1.3px}.asset-picker{padding:12px;border-color:var(--line);background:#fcfcfe}.asset-picker select{font-size:11px;height:32px}.asset-kind-label{font-size:10px;color:#9195a8}.intent-assets-list{padding:12px;min-height:0;overflow:auto}.intent-asset{border:1px solid #e7e8f0!important;border-radius:10px!important;background:white!important;box-shadow:0 2px 6px #26284604}.intent-asset:hover{border-color:#c2bbea!important}.intent-asset-media{border-radius:7px;overflow:hidden}.input-boundary{margin-top:auto;border-top:1px solid var(--line);background:white;padding:14px;font-size:10px;color:#a0a4b3;line-height:1.7}
.intent-canvas{display:grid;grid-template-rows:67px 42px auto minmax(0,1fr) 38px;grid-template-columns:minmax(0,1fr);overflow:hidden;min-width:0;min-height:0;background:#f7f8fc;isolation:isolate}.intent-canvas-header{background:#fff;padding:10px 20px;border-color:var(--line)}.intent-name-label span{color:#a2a5b6;font-size:9px}.intent-name-label input{font-size:14px;font-weight:650;max-width:100%;background:transparent}.graph-state{white-space:nowrap}#intent-version{font-size:10px;color:#a1a6b8}.graph-toolbar{padding:0 18px;background:#fcfcff;border-bottom:1px solid var(--line);font-size:10px;color:#979aab}.graph-toolbar button{width:27px;height:27px;color:#9093a8}.graph-toolbar svg{width:14px;height:14px}.graph-live-dot{background:#8a7ce5;box-shadow:0 0 0 3px #ece9fb}.studio-template-shelf{z-index:2;background:#fff;border-bottom:1px solid var(--line)}.studio-template-shelf>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;font-size:11px;cursor:pointer;color:#67697e}.studio-template-shelf summary::-webkit-details-marker{display:none}.studio-template-shelf summary>span{display:flex;align-items:center;gap:8px}.studio-template-shelf summary svg{width:14px;height:14px;color:#9286d7}.studio-template-shelf small{color:#aaaabc;font-size:9px}.scene-templates{background:#fafaff;border:0;padding:8px 16px 16px;gap:8px;max-height:190px;overflow:auto}.scene-templates button{font-size:11px;border-radius:7px;border-color:#e0deef;color:#716d8e}.scene-templates button:hover{background:#efedff}.scene-templates label{font-size:10px;color:#888a9c}.scene-templates select{max-width:230px;font-size:11px}.template-import{font-size:10px}#design-from-prompt{background:#625be5;color:#fff;border-color:#625be5}.intent-graph-host{grid-row:4;min-height:0!important;border:0;background-color:#f7f8fc;background-image:radial-gradient(#d9dce9 1px,transparent 1px);background-size:18px 18px}.intent-graph-host .workflow-graph__viewport{min-width:0;min-height:0;background:transparent}.workflow-graph__node{border:1px solid #e0e2ed;border-radius:13px;background:white;box-shadow:0 5px 15px #25274306;transition:border-color .15s,box-shadow .15s}.workflow-graph__node:hover{border-color:#aca3e6;box-shadow:0 6px 20px #7165b61b}.workflow-graph__node.is-selected{border-color:#8376dc;box-shadow:0 0 0 3px #8172db1e,0 8px 20px #6258b017}.workflow-graph__eyebrow{font-size:calc(9px * var(--workflow-graph-zoom, 1));letter-spacing:.5px;color:#9a9caf}.workflow-graph__copy h3{font-size:calc(14px * var(--workflow-graph-zoom, 1));color:#39394e}.workflow-graph__copy p{color:#9799aa;font-size:calc(11px * var(--workflow-graph-zoom, 1))}.workflow-graph__thumbnail{border-radius:8px;object-fit:cover}.workflow-graph__icon{background:#f0edfc;color:#8a7bc9;border-radius:10px}.workflow-graph__edge-path{stroke:#c1beda}.workflow-graph__empty{color:#999db1}.workflow-graph__empty-mark{background:#eae6fc;border-color:#b4a8e7}.studio-canvas-hint{grid-row:5;display:flex;align-items:center;justify-content:space-between;padding:0 16px;color:#a5a6b7;font-size:10px;background:#fbfbfe;border-top:1px solid #ebecf3;gap:6px}.studio-canvas-hint span,.studio-canvas-hint button{display:flex;align-items:center;gap:6px}.studio-canvas-hint svg{width:12px;height:12px}.studio-canvas-hint button{border:0;background:transparent;color:#8074c0;font-size:10px}
.intent-handoff{display:none}.intent-shell[data-studio-mode=prompt] .intent-canvas{grid-template-rows:67px auto minmax(0,1fr)}.intent-shell[data-studio-mode=prompt] .graph-toolbar,.intent-shell[data-studio-mode=prompt] .intent-graph-host,.intent-shell[data-studio-mode=prompt] .studio-canvas-hint{display:none}.intent-shell[data-studio-mode=prompt] .studio-template-shelf{grid-row:2}.intent-shell[data-studio-mode=prompt] .intent-handoff{display:block;grid-row:3;overflow:auto;min-height:0;max-height:none;background:#fff;padding:24px clamp(18px,4vw,54px);border:0}.intent-handoff header h3{font-size:18px;letter-spacing:-.5px}.intent-handoff label{font-size:11px;color:#8a8d9e;display:block;line-height:1.7;margin:12px 0}.intent-handoff select{display:block;width:100%;height:39px}.intent-handoff #intent-prompt-editor{min-height:220px;font-size:13px;padding:16px;background:#fafafe;line-height:1.95;border:1px solid #e4e4ef;border-radius:10px}.prompt-editor-tools{padding:10px 0;gap:12px;font-size:10px}.intent-handoff-actions{display:flex;justify-content:flex-end;gap:8px;position:sticky;bottom:-24px;padding:16px 0;background:#ffffffed;backdrop-filter:blur(8px);border-top:1px solid var(--line)}#intent-generation-options{background:#fafaff;border-radius:10px;border:1px solid #eeedf5;padding:14px;gap:14px}.intent-transfer-note{font-size:11px!important;color:#9294a6!important;line-height:1.8}.intent-node-detail{position:absolute;top:12px;right:12px;bottom:12px;width:min(360px,calc(100% - 24px));max-height:none!important;z-index:10;border-radius:14px;border:1px solid #deddeb;padding:22px;background:white;box-shadow:-12px 0 44px #33324918;animation:studio-drawer .18s ease-out}.intent-node-detail header{border-bottom:1px solid var(--line);padding-bottom:14px}.intent-node-detail h3{font-size:15px}.intent-node-detail select[multiple]{min-height:90px}.intent-node-detail>button{padding:9px 11px;border:1px solid #dcd9f0;color:#6c5fc0;background:#f5f3ff;font-size:11px}.scene-asset-gallery{gap:10px}.scene-asset-card{border-width:1px;transition:all .15s}.scene-asset-card[aria-pressed=true]{border-color:#8c7fe0;background:#f3f0ff;box-shadow:0 0 0 2px #8c7fe018}.scene-asset-card img{height:140px}
.intent-messages{padding:20px 16px;background:#fcfcfe;scroll-behavior:smooth}.intent-message{margin-bottom:20px}.intent-message-head{font-size:9px;color:#a5a6b5}.intent-message.user{background:#f0edfc;border-color:#e3dff5;border-radius:12px;color:#514775}.intent-message.assistant{font-size:12px;line-height:1.9}.intent-message-text{font-size:12px;line-height:1.9;overflow-wrap:anywhere}.intent-thinking{color:#8175c9;font-size:12px}.intent-compile-bar{padding:12px 14px;border-top:1px solid var(--line);background:#fff;gap:6px}.intent-compile-bar>span{font-size:9px;color:#999caf}.intent-compile-bar button{font-size:10px;border:1px solid #e2dcf8;color:#7765bf;background:#f4f0ff;border-radius:7px;padding:8px}.intent-composer{padding:12px 14px 17px;border:0;background:white}.intent-composer textarea{background:#f7f7fb;border-radius:10px;padding:12px;border:1px solid #e8e8f1;min-height:92px;font-size:12px}.intent-composer>div{margin-top:10px;font-size:9px}.intent-composer button{width:auto;min-width:36px;height:32px;padding:6px 10px;border-radius:8px}
.view{padding:28px 30px;max-width:1600px;margin:0 auto}.work-area{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:white;box-shadow:0 4px 20px #272a4504}.pipeline{border-radius:10px;overflow:hidden;margin-bottom:24px;border-color:var(--line)}.pipeline li{background:white;font-size:11px}.pipeline li.current{background:#f0edff;color:#7a6ccb}.preview{border-radius:10px;background:#f1f2f7}.parameter-column,.material-column{padding:26px}.notice{background:#f6f4ff;border:1px solid #e7e1fa;border-radius:9px;color:#80729e;font-size:11px;line-height:1.8}.run-bar{border-radius:10px;background:#f8f7fe;border:1px solid #e8e4f7;padding:16px}.estimate strong{font-size:26px;letter-spacing:-1px}.results-layout{gap:22px}.experiment-list,.comparison,.connection-details{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}.provider-table{background:#fff;border-radius:12px;overflow:hidden;font-size:12px}.provider-table th{background:#f9f9fc;color:#9698a9;font-weight:500}.provider-table td{padding:19px;border-color:#eeeff5}.comparison .empty-list{padding:80px 20px}.section-heading h2{font-size:15px;letter-spacing:-.3px}dialog,#template-manager{border:1px solid #e0deef;border-radius:16px;box-shadow:0 24px 100px #1e183638;padding:26px}dialog::backdrop{background:#17172b66;backdrop-filter:blur(3px)}dialog h2{font-size:19px}#template-manager p{font-size:12px;color:#9594a6;line-height:1.9}.template-list article{padding:18px 0}.template-list button{font-size:11px;border:1px solid #e5e2ee;background:#faf9fd;padding:7px 10px}.template-list small{font-size:10px}#toast{background:#242335;color:#f1efff;border:1px solid #4a425b;border-radius:10px;box-shadow:0 8px 30px #201a3629;font-size:12px;bottom:22px;max-width:min(620px,90vw);animation:studio-toast .15s ease-out}
#auth-gate{background:#f7f7fc;display:grid;grid-template-columns:1.1fr 1fr;gap:0;padding:0;overflow:auto}.studio-auth-story{height:100%;min-height:650px;background:#202036;color:#fff;padding:clamp(35px,6vw,90px);display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.studio-wordmark{font-size:12px;letter-spacing:4px;color:#bcb3e4}.studio-auth-story h2{font-size:clamp(30px,3.7vw,57px);font-weight:550;letter-spacing:-1.5px;line-height:1.5;margin:42px 0 20px}.studio-auth-story p{font-size:13px;line-height:2;color:#a3a0bc}.studio-auth-story>small{font-size:8px;letter-spacing:3px;color:#78748f;margin-top:35px}.studio-art{height:160px;position:relative;margin-top:35px}.studio-art div{position:absolute;top:10px;width:90px;height:125px;border:1px solid #b9a9f357;border-radius:16px;background:linear-gradient(155deg,#b5a0ee50,#7874c612);box-shadow:0 14px 30px #08091d26;transform:rotate(-15deg);left:0}.studio-art div:nth-child(2){left:72px;top:0;transform:rotate(0);background:linear-gradient(140deg,#aea8f8aa,#605bc34a)}.studio-art div:nth-child(3){left:144px;transform:rotate(15deg);background:linear-gradient(150deg,#cfbadc70,#80639422)}.studio-art span{position:absolute;left:265px;top:70px;font-size:8px;letter-spacing:2px;color:#7d779a;writing-mode:vertical-rl}.auth-card{margin:auto;width:min(420px,calc(100% - 60px));border:0;box-shadow:none;background:transparent;padding:34px 10px}.auth-card .brand{margin-bottom:40px}.auth-card h1{font-size:25px;letter-spacing:-.7px}.auth-copy{font-size:12px;color:#9797aa;line-height:1.9}.auth-card .segmented{padding:4px;border:1px solid #e6e4f0;border-radius:9px;background:#eeeef5;margin:24px 0}.auth-card .segmented button.active{background:white;color:#6556ac;box-shadow:0 2px 5px #24233408}.auth-card label{font-size:12px;color:#747588;margin:18px 0}.auth-card input{height:43px;background:white}.auth-card>.primary{width:100%;height:44px;margin-top:14px;border-radius:9px}
@keyframes studio-drawer{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}@keyframes studio-toast{from{opacity:0;transform:translate(-50%,6px)}to{opacity:1;transform:translate(-50%,0)}}
@media(min-width:1650px){.intent-shell{grid-template-columns:250px minmax(0,1fr) 350px}.intent-shell.assets-collapsed{grid-template-columns:minmax(0,1fr) 350px}.intent-shell.chat-collapsed{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:1250px){.sidebar{width:176px;flex-basis:176px;padding:24px 10px}.intent-shell{grid-template-columns:190px minmax(0,1fr) 270px}.intent-shell.assets-collapsed{grid-template-columns:minmax(0,1fr) 270px}.intent-shell.chat-collapsed{grid-template-columns:190px minmax(0,1fr)}.studio-template-shelf small{display:none}.topbar{padding:0 22px}.studio-toolbar{padding:0 18px}.intent-panel-heading{padding:15px 12px}.intent-message-text{font-size:11px}}
@media(max-width:1050px){.sidebar{width:72px;flex-basis:72px;padding:26px 10px}.sidebar .brand{padding:0 8px}.sidebar .brand>span:last-child,.sidebar .library-heading,.sidebar .project-list,.sidebar .saved-list,.sidebar .sidebar-bottom{display:none}.sidebar .nav{font-size:0;justify-content:center;padding:0;gap:0}.sidebar .nav svg{width:19px;height:19px;margin:0}.sidebar .nav .count{display:none}.intent-view{height:calc(100dvh - 84px);min-height:0;overflow:hidden}.intent-shell{grid-template-rows:minmax(0,1fr);grid-template-columns:180px minmax(0,1fr) 260px}.intent-chat{grid-column:auto;border-top:0}.intent-shell.assets-collapsed{grid-template-columns:minmax(0,1fr) 260px}.intent-shell.chat-collapsed{grid-template-columns:180px minmax(0,1fr)}.intent-messages{min-height:0}.top-actions .badge{font-size:9px}}
@media(max-width:780px){.intent-shell{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)}.intent-canvas{height:100%;grid-column:1;grid-row:1}.intent-assets,.intent-chat{position:absolute;top:0;bottom:0;width:min(300px,85%);z-index:20;box-shadow:0 8px 30px #26213b24}.intent-assets{left:0}.intent-chat{right:0}.studio-tools span{display:none}.studio-tools button{padding:8px}.studio-tabs button{padding:8px 10px;font-size:11px}.studio-toolbar{height:58px;padding:0 12px}.studio-auth-story{min-height:0;padding:32px}.studio-auth-story h2{font-size:27px;margin:20px 0 10px}.studio-art,.studio-auth-story>small{display:none}#auth-gate{grid-template-columns:1fr;align-content:start}.studio-auth-story p{font-size:11px;margin-bottom:0}.auth-card{width:min(420px,calc(100% - 44px));padding:30px 0}.auth-card .brand{display:none}}
@media(max-width:560px){.sidebar{display:none}.topbar{height:72px;padding:0 16px}.topbar h1{font-size:17px}.topbar .eyebrow{font-size:8px}.top-actions{gap:6px}.top-actions .badge{display:none}#account-chip{border:0;padding:0;gap:7px}#account-name{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.intent-view{height:calc(100dvh - 135px);min-height:0}.intent-canvas{grid-template-rows:61px 38px auto minmax(0,1fr) 36px}.intent-shell[data-studio-mode=prompt] .intent-canvas{grid-template-rows:61px auto minmax(0,1fr)}.studio-canvas-hint span{font-size:9px}.studio-canvas-hint button{font-size:9px}.graph-state{flex-direction:row;align-items:center}.mobile-nav{height:63px;padding:10px;background:#fff;border-color:#e6e6ef}.mobile-nav button.active{background:#efebfc;color:#7060b9}.view{padding:20px 14px}.scene-templates{max-height:150px}.studio-template-shelf>summary{padding:10px 14px}.intent-name-label input{font-size:12px}#intent-generation-options{grid-template-columns:1fr}.intent-node-detail{padding:16px}.studio-toolbar{gap:6px}.studio-tabs svg{display:none}#studio-focus{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Creative generation entry and read-only provider submission preview. */
.intent-canvas{grid-template-rows:0 42px auto minmax(0,1fr) 38px}
.intent-canvas-header{display:none}
.intent-composer form > div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.intent-composer form > div > span{margin-right:auto}
.intent-composer #generate-intent-video{background:var(--ui-accent-soft);border-color:var(--ui-accent);color:var(--ui-accent-strong)}
.submission-preview{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface-subtle)}
.submission-preview h3{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 10px;font-size:12px;color:var(--ink)}
.submission-preview h3 small{font-size:9px;font-weight:400;color:var(--muted)}
.submission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
.submission-row{display:flex;flex-direction:column;gap:3px;min-width:0}
.submission-row span{font-size:9px;color:var(--muted)}
.submission-row strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink)}
.submission-prompt-button{margin-top:12px;font-size:12px;color:var(--ui-accent-strong)}
#submission-prompt-dialog[open]{width:min(630px,calc(100vw - 32px));max-height:min(640px,calc(100dvh - 32px));box-sizing:border-box}
#submission-prompt-content{flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-family:inherit;font-size:13px;line-height:1.8;color:var(--ink)}
#preflight-content{min-height:0;overflow:auto}
@media(max-width:560px){.submission-grid{grid-template-columns:1fr}}
.studio-tools #studio-generate{background:#625be5;border-color:#625be5;color:white;padding:8px 13px;box-shadow:0 3px 10px #625be519}.studio-tools #studio-generate:hover{background:#5149cf}.intent-empty-chat{padding:36px 8px!important;display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important;text-align:left!important;gap:14px}.intent-empty-chat .studio-assistant-mark{width:38px;height:38px;border-radius:12px;background:#efebfc;display:grid;place-items:center;color:#8d77ce}.studio-assistant-mark svg{width:19px;height:19px}.intent-empty-chat h3{font-size:14px;font-weight:550;color:#6e6886;margin:0}.intent-empty-chat p{font-size:11px!important;color:#a09aaf;line-height:1.9;margin:0}.intent-empty-chat small{font-size:9px;color:#b0aabb}.studio-suggestions{display:grid;gap:8px;width:100%;margin:5px 0}.studio-suggestions button{text-align:left;background:white;border:1px solid #e9e5f3;color:#8e81ad;font-size:10px;padding:11px;border-radius:8px}.studio-suggestions button:hover{background:#f6f3ff;border-color:#d5c8f1}

#auth-gate{place-items:stretch}.studio-auth-story{width:100%;align-self:stretch}
@media(max-width:780px){.intent-assets,.intent-chat{min-height:0}.intent-assets-list{max-height:none}}
.intent-view{display:flex;flex-direction:column;gap:0;height:calc(100dvh - 100px);min-height:0;padding:18px;background:#f1f2f6}
.studio-drawer-backdrop{display:none}
.studio-toolbar{flex:0 0 58px;height:58px;border:1px solid #e3e2eb;border-bottom:0;border-radius:14px 14px 0 0;background:#fff;padding:0 20px;box-shadow:0 8px 24px #25243d08}
.studio-tabs{height:100%;display:flex;align-items:stretch;gap:4px}
.studio-tabs button{height:100%;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#9a99a9;padding:0 13px;font-size:11px}
.studio-tabs button[aria-selected=true]{border-bottom-color:#7466cc;color:#51458e;font-weight:650}
.studio-tools{display:flex;align-items:center;gap:7px}
.studio-tools button{border-color:#e5e4ed;background:#fff;color:#79788c;font-size:10px}
.studio-tools button:hover{border-color:#c7c2e8;background:#f8f7ff;color:#6257af}
.studio-tools #studio-generate{border-color:#625be5;background:#625be5;color:#fff}
.intent-shell{height:calc(100% - 58px);border:1px solid #e3e2eb;border-radius:0 0 14px 14px;overflow:hidden;box-shadow:0 8px 24px #25243d08}
.intent-assets,.intent-chat{background:#fff}
.intent-panel-heading{min-height:68px;padding:15px 16px;border-color:#ecebf1}
.intent-assets{border-right:1px solid #e6e5ed}.intent-chat{border-left:1px solid #e6e5ed}
.intent-canvas{background:#f8f8fc}
.intent-canvas-header{padding:10px 18px;background:#fff;border-color:#ecebf1}
.graph-toolbar{background:#fbfbfd;border-color:#ecebf1}
.studio-template-shelf{background:#fff;border-color:#ecebf1}
.studio-canvas-hint{background:#fff;border-color:#ecebf1}
.intent-messages{background:#fafafe}
@media(max-width:1100px){.intent-view{padding:12px}.intent-shell{grid-template-columns:210px minmax(0,1fr) 288px}.intent-shell.assets-collapsed{grid-template-columns:minmax(0,1fr) 288px}.intent-shell.chat-collapsed{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:900px){.intent-view{height:calc(100dvh - 84px);padding:0}.studio-toolbar{border-radius:0;padding:0 14px}.intent-shell{height:calc(100% - 58px);grid-template-columns:minmax(0,1fr);position:relative;border-radius:0}.intent-assets,.intent-chat{position:absolute;top:0;bottom:0;width:min(340px,88vw);z-index:20;transition:transform .18s ease,opacity .18s ease;box-shadow:0 12px 35px #24233d22}.intent-assets{left:0;transform:translateX(0)}.intent-chat{right:0;transform:translateX(0)}.intent-shell.assets-collapsed .intent-assets{transform:translateX(-105%);opacity:0;pointer-events:none}.intent-shell.chat-collapsed .intent-chat{transform:translateX(105%);opacity:0;pointer-events:none}.intent-canvas{grid-column:1;grid-row:1;height:100%}.intent-shell:not(.assets-collapsed) .intent-assets,.intent-shell:not(.chat-collapsed) .intent-chat{opacity:1}}
@media(max-width:560px){.studio-tabs button{padding:0 9px;font-size:10px}.studio-tools{gap:4px}.studio-tools button{padding:7px}.studio-tools #studio-generate{padding:7px 9px}.studio-toolbar{height:54px;flex-basis:54px}.intent-shell{height:calc(100% - 54px)}.intent-view{height:calc(100dvh - 135px)}.intent-canvas{grid-template-rows:61px 38px auto minmax(0,1fr) 36px}}
@media(max-width:900px){.studio-drawer-backdrop{display:block;position:absolute;inset:0;z-index:15;border:0;background:#17172b52;backdrop-filter:blur(2px);cursor:pointer}.studio-drawer-backdrop[hidden]{display:none}.intent-assets:focus,.intent-chat:focus{outline:2px solid #7e70d6;outline-offset:-2px}}
.hub-view{max-width:1260px;padding:40px clamp(20px,4vw,56px)}.hub-hero{padding:20px 0 32px}.hub-hero h2{font-size:32px;font-weight:600;letter-spacing:-1px;margin:12px 0}.hub-hero p,.hub-copy{color:#9191a5;font-size:12px;line-height:1.8}.hub-actions{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:40px}.hub-action{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:14px;padding:26px;border:1px solid #e3e0f2;border-radius:15px;background:linear-gradient(140deg,#fff,#f4f1ff);color:#4b435e;min-width:0}.hub-action:hover{border-color:#b5a8e6;box-shadow:0 8px 22px #6c599010}.hub-action svg{width:26px;height:26px;color:#9581ca}.hub-action strong{font-size:18px;font-weight:550}.hub-action span{color:#9590a7;font-size:12px}.hub-action b{font-size:11px;color:#9280ba;font-weight:500}.project-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.project-card{background:white;border:1px solid #e7e6ef;border-radius:12px;overflow:hidden;min-width:0}.project-open{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:transparent;border:0;border-radius:0;padding:20px;width:100%;gap:12px}.project-open strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;min-width:0;color:#514b65}.project-open p{font-size:11px;color:#aaa4b7;margin:0;min-width:0}.project-open small{font-size:10px;color:#b1acbe;min-width:0}.project-card-icon{display:grid;place-items:center;width:33px;height:33px;background:#f3effb;border-radius:9px;color:#a493c5}.project-card-icon svg{width:17px;height:17px}.project-card-actions{display:flex;justify-content:flex-end;padding:8px 14px;border-top:1px solid #f0edf5;gap:8px}.project-card-actions button{border:0;background:transparent;color:#a39ab4;font-size:10px;padding:6px}.project-card:hover{border-color:#cec5e5}.projects-filters{display:flex;gap:12px;margin:25px 0 12px}.projects-filters input{flex:1;min-width:0}.projects-filters select{width:140px}.project-pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin:30px}.project-pagination span{font-size:11px;color:#aaa}.project-pagination button{font-size:11px;padding:8px 12px;background:white;border:1px solid #e7e3f0}.project-empty{grid-column:1/-1;text-align:center;padding:60px;color:#a69bb8;border:1px dashed #dbd4e7;border-radius:12px}#quick-template-dialog{width:min(850px,90vw)}#quick-template-close{margin-top:20px}.model-admin-card{background:white;border:1px solid #e4e1ed;border-radius:13px;padding:22px;min-width:0}.model-admin-card header{display:flex;justify-content:space-between;align-items:center;gap:8px}.model-admin-card h3{font-size:15px;font-weight:550}.model-admin-card label{display:block;color:#9992a9;font-size:11px;margin:22px 0}.model-admin-card input{width:100%;height:40px;margin-top:8px}.model-admin-card>div{display:flex;gap:9px}.model-admin-card button{font-size:11px;padding:9px 12px}.clear-model{background:white;border:1px solid #e4dfef;color:#9d91ad}@media(max-width:1000px){.project-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.project-cards,.hub-actions{grid-template-columns:1fr}.hub-view{padding:24px 16px}.hub-hero h2{font-size:25px}.projects-filters{flex-wrap:wrap}.projects-filters input{flex-basis:100%}.projects-filters select{flex:1}.hub-action{padding:22px}.mobile-nav{overflow-x:auto;gap:4px}.mobile-nav button{flex-shrink:0}}
#workflow-view{display:none!important}.creative-advanced{grid-column:1/-1;border-top:1px solid #e6e2ef;padding-top:14px}.creative-advanced h3{font-size:12px;font-weight:550;color:#827592}.creative-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.creative-option-grid small{grid-column:1/-1}@media(max-width:560px){.creative-option-grid{grid-template-columns:1fr}}

/* Responsive and accessibility tokens. Keep the workbench anchored to the actual chrome. */
:root{--topbar-height:84px;--mobile-nav-height:63px}
.intent-view{height:calc(100dvh - var(--topbar-height));min-height:0}
.studio-tabs button,.studio-tools button,.graph-toolbar button,.intent-panel-heading .icon,.asset-picker button,.intent-composer button{min-height:var(--touch-target)}
.studio-tabs button:focus-visible,.studio-tools button:focus-visible,.intent-shell button:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}
.panel-kicker,.asset-kind-label,.intent-message-head,.input-boundary,.intent-composer>div,.studio-template-shelf small,.studio-canvas-hint{color:#606477}
.intent-message-text{font-size:13px}
.intent-messages{overscroll-behavior:contain}
.intent-assets,.intent-chat{min-width:0}
@media(max-width:1100px){.intent-shell{grid-template-columns:210px minmax(0,1fr) 288px}.intent-shell.assets-collapsed{grid-template-columns:minmax(0,1fr) 288px}.intent-shell.chat-collapsed{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:900px){.intent-view{height:calc(100dvh - var(--topbar-height))}.intent-shell{height:calc(100% - 58px)}.intent-assets,.intent-chat{max-width:calc(100vw - 24px)}}
@media(max-width:560px){:root{--topbar-height:72px}.intent-view{height:calc(100dvh - var(--topbar-height) - var(--mobile-nav-height));min-height:0}.studio-tools button{min-width:var(--touch-target);padding-inline:9px}.studio-tools #studio-generate{min-width:var(--touch-target)}.studio-tabs button{min-width:var(--touch-target)}.intent-composer textarea{font-size:13px}.intent-message-text{font-size:13px}}

/* Final visual pass: quiet hierarchy, black/purple anchors, and consistent interaction states. */
:root {
  --studio-bg: var(--ui-bg);
  --studio-surface: var(--ui-surface);
  --studio-surface-subtle: var(--ui-surface-subtle);
  --studio-ink: var(--ui-ink);
  --studio-muted: var(--ui-muted);
  --studio-line: var(--ui-line);
  --studio-accent: var(--ui-accent);
  --studio-accent-strong: var(--ui-accent-strong);
  --studio-accent-soft: var(--ui-accent-soft);
  --studio-shadow: var(--ui-shadow-card);
}

body {
  color: var(--studio-ink);
  background: var(--studio-bg);
}

button,
input,
select,
textarea {
  min-height: 40px;
}

.graph-toolbar button,
.intent-panel-heading .icon,
.asset-picker button {
  min-width: 40px;
  min-height: 40px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(111 96 226 / 58%);
  outline-offset: 3px;
}

.sidebar {
  background: var(--ui-surface-sidebar);
  border-right: 1px solid var(--ui-sidebar-line);
  box-shadow: none;
}

.sidebar .nav {
  color: var(--ui-muted);
}

.sidebar .nav:hover {
  background: var(--ui-surface-subtle);
  color: var(--ui-ink);
}

.sidebar .nav.active {
  background: var(--ui-accent-soft);
  color: var(--ui-accent-strong);
  box-shadow: inset 2px 0 var(--ui-accent);
}

.topbar {
  background: rgb(255 255 255 / 88%);
  border-bottom-color: var(--studio-line);
  box-shadow: 0 1px 0 rgb(31 27 73 / 4%);
  backdrop-filter: blur(16px);
}

.intent-view {
  background: var(--studio-bg);
}

.studio-toolbar {
  border-color: var(--studio-line);
  box-shadow: 0 8px 26px rgb(34 28 79 / 6%);
}

.studio-tabs {
  background: #f0eef7;
}

.studio-tabs button {
  color: #817f92;
}

.studio-tabs button[aria-selected="true"] {
  color: var(--studio-accent-strong);
  box-shadow: 0 2px 7px rgb(38 30 88 / 10%);
}

.studio-tools button {
  border-color: var(--studio-line);
  color: var(--studio-muted);
}

.studio-tools button:hover,
.studio-tools button[aria-pressed="true"] {
  border-color: #c9c2f0;
  background: var(--studio-accent-soft);
  color: var(--studio-accent-strong);
}

.studio-tools #studio-generate,
#design-from-prompt {
  background: linear-gradient(180deg, #7569ed 0%, var(--studio-accent-strong) 100%);
  border-color: var(--studio-accent-strong);
  box-shadow: 0 6px 16px rgb(92 77 205 / 24%);
}

.studio-tools #studio-generate:hover,
#design-from-prompt:hover {
  background: linear-gradient(180deg, #8176f3 0%, #5b4bc8 100%);
  box-shadow: 0 8px 20px rgb(92 77 205 / 30%);
}

.intent-shell {
  border-color: var(--studio-line);
  box-shadow: var(--studio-shadow);
}

.intent-assets,
.intent-chat,
.intent-canvas-header,
.graph-toolbar,
.studio-template-shelf,
.studio-canvas-hint {
  border-color: var(--studio-line);
}

.intent-canvas,
.intent-graph-host {
  background-color: #f8f7fc;
}

.intent-graph-host {
  background-image: radial-gradient(#dcd9ed 1px, transparent 1px);
}

.workflow-graph__node {
  border-color: #e3e1ec;
  box-shadow: 0 5px 15px rgb(37 31 88 / 6%);
}

.workflow-graph__node:hover {
  border-color: #b8afe9;
  box-shadow: 0 8px 22px rgb(89 73 177 / 14%);
}

.workflow-graph__node.is-selected {
  border-color: #8274dc;
  box-shadow: 0 0 0 3px rgb(113 97 221 / 14%), 0 10px 24px rgb(89 73 177 / 14%);
}

.workflow-graph__icon,
.workflow-graph__empty-mark {
  background: var(--studio-accent-soft);
  color: #8779ce;
}

.intent-node-detail,
.hub-action,
.project-card,
.model-admin-card {
  border-color: var(--studio-line);
  box-shadow: 0 8px 24px rgb(37 30 88 / 5%);
}

.hub-action:hover,
.project-card:hover {
  border-color: #bdb4eb;
  box-shadow: 0 12px 28px rgb(91 75 185 / 10%);
}

.hub-action {
  background: linear-gradient(145deg, #fff 0%, #f7f4ff 100%);
}

.mobile-nav {
  background: rgb(255 255 255 / 94%);
  border-top-color: var(--studio-line);
  box-shadow: 0 -8px 24px rgb(29 25 67 / 7%);
  backdrop-filter: blur(14px);
}

.mobile-nav button.active {
  background: var(--studio-accent-soft);
  color: var(--studio-accent-strong);
}

@media (prefers-contrast: more) {
  .studio-tabs button,
  .studio-tools button,
  .intent-message-head,
  .panel-kicker {
    color: #55536a;
  }

  .intent-shell,
  .studio-toolbar,
  .intent-assets,
  .intent-chat {
    border-color: #bcb8cc;
  }
}

/* Workbench project context and panel collapse states */
.studio-toolbar{position:relative}
.studio-project-pill{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:5px 10px 5px 12px;border:1px solid var(--line);border-radius:999px;background:var(--studio-surface);box-shadow:0 3px 12px rgb(35 29 83 / 7%);white-space:nowrap}
.studio-project-pill label{display:flex;align-items:center;gap:7px;margin:0}.studio-project-pill label span{font-size:9px;color:var(--muted)}
.studio-project-pill input{width:140px;padding:4px 0;border:0;background:transparent;font-size:12px;font-weight:650}.studio-project-pill input:focus{box-shadow:none!important}
.studio-project-pill>#intent-version{font-size:10px;color:var(--muted)}.studio-project-pill .badge{font-size:9px;padding:3px 7px}
.intent-canvas-header{height:0;min-height:0;overflow:hidden;padding:0!important;border:0!important}
@media(max-width:900px){.studio-project-pill{position:static;transform:none;max-width:42vw}.studio-project-pill input{width:80px}.studio-project-pill label span{display:none}}
@media(max-width:560px){.studio-project-pill{gap:4px;padding:4px 7px}.studio-project-pill input{width:68px;font-size:10px}.studio-project-pill>#intent-version{display:none}}

/* Canvas controls live together in the bottom hint bar. */
.studio-canvas-hint{justify-content:flex-start}
.studio-canvas-hint>.graph-toolbar{margin-left:auto;display:flex;align-items:center;gap:14px;padding:0;background:transparent;border:0;font-size:10px;color:var(--muted)}
.studio-canvas-hint>.graph-toolbar>div{display:flex;align-items:center;gap:7px}
.studio-canvas-hint>.graph-toolbar button{width:27px;height:27px;padding:0;color:#9093a8;background:transparent;border:0}
.studio-canvas-hint>.graph-toolbar button:hover{background:#f1efff;color:#625be5}
@media(max-width:560px){.studio-canvas-hint>.graph-toolbar{gap:4px}.studio-canvas-hint>.graph-toolbar>div:first-child{display:none}.studio-canvas-hint>.graph-toolbar button{width:25px;height:25px}}

.studio-canvas-hint{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;justify-content:initial}
.studio-canvas-hint .graph-toolbar{margin:0}
.studio-canvas-hint .graph-toolbar-controls{justify-self:end}
.studio-canvas-hint .canvas-help{justify-self:center;display:flex;align-items:center;gap:6px}
@media(max-width:560px){.studio-canvas-hint{grid-template-columns:auto 1fr auto}.studio-canvas-hint .canvas-help{font-size:9px}.studio-canvas-hint .graph-toolbar-stats #graph-node-count{display:none}}

/* Unified workbench toolbar language: update remains the single primary action. */
.studio-tools{gap:8px}
.studio-tools button{height:36px;min-width:84px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;border:1px solid #dedceb;border-radius:10px;background:#fff;color:#67657c;font-size:11px;font-weight:550;box-shadow:0 2px 7px rgb(42 35 89 / 4%)}
.studio-tools button svg{width:15px;height:15px;flex:none}
.studio-tools button:hover{border-color:#bdb5ef;background:#f8f7ff;color:#6257b5;box-shadow:0 4px 12px rgb(87 74 170 / 10%)}
.studio-tools button[aria-pressed=true]{border-color:#c9c1f4;background:#f0edff;color:#6257b5;box-shadow:0 0 0 2px rgb(98 91 229 / 8%)}
.studio-tools #studio-generate{height:36px;min-width:112px;padding:0 15px;border-color:#625be5;border-radius:10px;background:#625be5;color:#fff;box-shadow:0 5px 14px rgb(98 91 229 / 24%)}
.studio-tools #studio-generate:hover{border-color:#514acf;background:#514acf;color:#fff;box-shadow:0 6px 16px rgb(81 74 207 / 28%)}
.studio-tools #studio-template-picker{min-width:96px}
@media(max-width:900px){.studio-tools button{min-width:36px;width:36px;padding:0}.studio-tools #studio-generate{min-width:42px;width:42px;padding:0}.studio-tools button span{display:none}.studio-tools button svg{width:16px;height:16px}}

/* Bound workspace tabs and project context use distinct, consistent groups. */
.studio-tabs{height:38px!important;align-items:center!important;gap:2px!important;padding:4px;border:1px solid #e2e0ed;border-radius:12px;background:#f4f3fa}
.studio-tabs button{height:30px!important;border:0!important;border-radius:8px!important;padding:0 13px!important;color:#88869a!important;background:transparent!important;font-size:11px!important;font-weight:550!important}
.studio-tabs button[aria-selected=true]{color:#51458e!important;background:#fff!important;box-shadow:0 2px 7px rgb(42 35 89 / 9%)!important}
.studio-tabs button[aria-selected=true]::after{display:none!important}
.studio-project-pill{min-width:330px;justify-content:flex-start;gap:12px;padding:6px 14px 6px 16px;border-color:#e0deeb;border-radius:999px;background:#fff;box-shadow:0 4px 14px rgb(42 35 89 / 8%)}
.studio-project-pill label{flex:1;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px}
.studio-project-pill label span{font-size:9px;line-height:1;color:#9895a9;white-space:nowrap}
.studio-project-pill input{width:100%;min-width:0;height:24px;padding:0;border:0!important;box-shadow:none!important;font-size:13px;font-weight:650;line-height:24px}
.studio-project-pill>#intent-version{padding-left:10px;border-left:1px solid #ebe9f1;font-size:10px;line-height:20px;color:#858297}
.studio-project-pill .badge{margin-left:0;white-space:nowrap}
@media(max-width:900px){.studio-project-pill{min-width:0;max-width:42vw;padding-inline:10px}.studio-project-pill label{display:block}.studio-project-pill label span{display:none}.studio-project-pill>#intent-version{padding-left:7px}}

/* Compact violet project title capsule. */
.studio-project-pill{min-height:30px;height:32px;padding:4px 13px 4px 15px;border-color:#d7d0f4;background:linear-gradient(180deg,#fbfaff 0%,#f4f0ff 100%);box-shadow:0 4px 14px rgb(98 91 229 / 13%),inset 0 0 0 1px rgb(255 255 255 / 75%)}
.studio-project-pill label span{color:#8175ba}
.studio-project-pill input{color:#403777}
.studio-project-pill>#intent-version{border-left-color:#ded8f3;color:#7669ae}
.studio-project-pill .badge{background:#e8e3ff;color:#6758b3;border-color:#d8cffc}
@media(max-width:560px){.studio-project-pill{height:30px;min-height:30px;padding-inline:9px}.studio-project-pill input{font-size:11px;line-height:20px}}

/* Project capsule alignment and focus treatment. */
.studio-project-pill{width:360px;min-width:360px;margin-inline:12px;box-sizing:border-box;align-items:center}
.studio-project-pill label{display:flex;align-items:center;gap:10px;height:22px}
.studio-project-pill label span,.studio-project-pill input,.studio-project-pill>#intent-version,.studio-project-pill .badge{vertical-align:middle;line-height:20px}
.studio-project-pill input:focus{outline:none!important;border:0!important;box-shadow:none!important}
.studio-project-pill input{outline:0!important;border-radius:0!important}
@media(max-width:900px){.studio-project-pill{width:auto;min-width:0;margin-inline:6px}}

/* Keep the centered project capsule measurable on narrow toolbars. */
.studio-project-pill{width:clamp(220px,30vw,360px);min-width:220px}
.studio-project-pill label{flex:1 1 auto;min-width:0}
.studio-project-pill input{margin:0!important;height:20px;min-height:20px;line-height:20px;align-self:center}
@media(max-width:900px){.studio-project-pill{width:clamp(180px,34vw,280px);min-width:180px;max-width:none;margin-inline:6px}}
@media(max-width:560px){.studio-project-pill{width:clamp(160px,42vw,240px);min-width:160px}.studio-project-pill label{min-width:0}.studio-project-pill input{width:100%}}

/* Desktop assistant panel resize handle. */
@media(min-width:901px){
  .intent-shell{position:relative;--chat-width:300px;grid-template-columns:220px minmax(0,1fr) var(--chat-width)}
  .intent-shell.assets-collapsed{grid-template-columns:minmax(0,1fr) var(--chat-width)}
  .intent-shell.chat-collapsed{grid-template-columns:220px minmax(0,1fr)}
  .intent-shell.assets-collapsed.chat-collapsed{grid-template-columns:minmax(0,1fr)}
  .chat-resize-handle{position:absolute;z-index:5;top:0;bottom:0;right:var(--chat-width);width:9px;margin-right:-4px;padding:0;border:0;background:transparent;cursor:col-resize}
  .chat-resize-handle::after{content:"";position:absolute;top:50%;left:3px;width:3px;height:44px;border-radius:4px;background:#d9d4f5;transform:translateY(-50%);opacity:0;transition:opacity .15s,background .15s}
  .chat-resize-handle:hover::after,.chat-resize-handle.is-dragging::after{opacity:1;background:#8175d8}
  .intent-shell.chat-collapsed .chat-resize-handle{display:none}
}
@media(max-width:900px){.chat-resize-handle{display:none}}

/* Keep the canvas visually dominant when the desktop has room for all modules. */
@media(min-width:1281px){.intent-shell{grid-template-columns:minmax(210px,232px) minmax(520px,1fr) minmax(288px,320px)}}
.intent-node-detail{max-width:calc(100% - 24px);overflow:auto;background:var(--ui-surface);box-shadow:-8px 0 24px rgb(37 33 64 / 10%)}

/* Distinguish supporting panels from the primary canvas with shared surface tokens. */
.intent-assets{background:var(--ui-surface);border-right:1px solid var(--ui-line)}
.intent-chat{background:var(--ui-surface-subtle);border-left:1px solid var(--ui-line)}
.intent-canvas{background:var(--ui-bg)}
.intent-panel-heading,.intent-canvas-header{background:var(--ui-surface);border-color:var(--ui-line)}
.intent-node-detail{background:var(--ui-surface);border-color:var(--ui-line-strong)}

/* Mobile drawers own their content flow so only messages and assets scroll. */
@media(max-width:900px){
  .intent-assets{display:flex;flex-direction:column;min-height:0;overflow:hidden}
  .intent-chat{display:flex;flex-direction:column;min-height:0;overflow:hidden}
  .intent-assets-list,.intent-messages{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  .intent-composer{flex:0 0 auto}
  .intent-shell.assets-collapsed .intent-assets,.intent-shell.chat-collapsed .intent-chat{pointer-events:none}
}

/* Keep project context in the same measurable toolbar flow as tabs and tools. */
.studio-toolbar{justify-content:flex-start;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.studio-toolbar::-webkit-scrollbar{display:none}
.studio-tabs{flex:0 0 auto;min-width:0}
.studio-project-pill{position:static;transform:none;flex:0 0 360px;width:360px;min-width:360px;max-width:360px;margin-inline:auto;overflow:hidden}
.studio-project-pill label{min-width:0}
.studio-project-pill input{min-width:0;text-overflow:ellipsis}
.studio-tools{flex:0 0 auto;min-width:0}
@media(max-width:1100px){
  .studio-toolbar{gap:8px;padding-inline:12px}
  .studio-tabs{flex:0 0 auto;overflow:hidden}
  .studio-project-pill{flex-basis:360px;max-width:360px;margin-inline:4px}
  .studio-tools{flex:0 0 auto}
  .studio-tools button{min-width:36px;width:36px;padding:0}
  .studio-tools button span{display:none}
}
@media(max-width:560px){
  .studio-project-pill{flex-basis:360px;max-width:360px;margin-inline:2px}
}

/* Scoped interaction contract for 创作空间; shared tokens stay the source of truth. */
.intent-view button:focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}
.intent-view input:focus,.intent-view select:focus,.intent-view textarea:focus{border-color:var(--ui-accent)!important}
.intent-view button.primary{background:var(--ui-accent);border-color:var(--ui-accent)}
.intent-view button.primary:hover{background:var(--ui-accent-strong);border-color:var(--ui-accent-strong)}
.intent-view .intent-canvas{background:var(--ui-bg)}

/* Studio controls and selection states consume the shared token contract. */
.studio-toolbar,.intent-shell{border-radius:var(--ui-radius-md)}
.studio-tabs{border-radius:var(--ui-radius-sm)}
.studio-tabs button[aria-selected=true],
.studio-tools button[aria-pressed=true]{background:var(--ui-action-selection);color:var(--ui-accent-strong)}
.studio-tools #studio-generate,#design-from-prompt{background:var(--ui-action-primary);border-color:var(--ui-action-primary);color:var(--ui-action-on-primary)}
.studio-tools #studio-generate:hover,#design-from-prompt:hover{background:var(--ui-action-primary-hover);border-color:var(--ui-action-primary-hover)}
.workflow-graph__node{border-radius:var(--ui-radius-md);border-color:var(--ui-line)}
.workflow-graph__node:hover{border-color:var(--ui-focus)}
.workflow-graph__node.is-selected{border-color:var(--ui-accent);box-shadow:var(--ui-shadow-focus),var(--ui-shadow-card)}
.workflow-graph__icon{background:var(--ui-accent-soft);color:var(--ui-accent);border-radius:var(--ui-radius-sm)}

/* Studio visual contract: one restrained surface system across every mode. */
html,body{overflow-x:hidden}
body{background:var(--ui-bg);color:var(--ui-ink)}
button{min-height:var(--ui-control-height);border-color:var(--ui-line);border-radius:var(--ui-radius-sm);box-shadow:none}
button:hover:not(:disabled){border-color:var(--ui-line-strong);background:var(--ui-surface-subtle);color:var(--ui-ink-strong)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--ui-focus-ring);outline-offset:2px}
input,select,textarea{border-color:var(--ui-line);border-radius:var(--ui-radius-sm);background:var(--ui-surface);color:var(--ui-ink)}
input:focus,select:focus,textarea:focus{border-color:var(--ui-focus)!important;box-shadow:var(--ui-shadow-focus);outline:none}
.sidebar{background:var(--ui-surface-sidebar);border-right:1px solid var(--ui-sidebar-line);box-shadow:none}
.sidebar .brand{color:var(--ui-ink)}
.brand-mark{background:var(--ui-accent)!important;border-radius:var(--ui-radius-sm)}
.sidebar .nav{color:var(--ui-muted)}
.sidebar .nav:hover{background:var(--ui-surface-subtle);color:var(--ui-ink)}
.sidebar .nav.active{background:var(--ui-accent-soft);color:var(--ui-accent-strong);box-shadow:inset 2px 0 var(--ui-accent)}
.sidebar-bottom{color:var(--ui-ink-soft)}
.topbar,.studio-toolbar{background:var(--ui-surface-overlay);border-color:var(--ui-line);box-shadow:var(--ui-shadow-subtle);backdrop-filter:blur(18px)}
.studio-toolbar{min-width:0;overflow-x:auto;scrollbar-width:none}
.studio-tabs{background:var(--ui-surface-subtle);border-color:var(--ui-line);border-radius:var(--ui-radius-sm)}
.studio-tabs button{color:var(--ui-muted)!important;min-height:var(--ui-touch-target)}
.studio-tabs button[aria-selected="true"]{background:var(--ui-surface)!important;color:var(--ui-accent-strong)!important;box-shadow:var(--ui-shadow-subtle)!important}
.studio-tools button{border-color:var(--ui-line);background:var(--ui-surface);color:var(--ui-muted);box-shadow:none}
.studio-tools button:hover,.studio-tools button[aria-pressed="true"]{border-color:var(--ui-line-strong);background:var(--ui-accent-soft);color:var(--ui-accent-strong)}
.studio-tools #studio-generate,#design-from-prompt{background:var(--ui-action-primary);border-color:var(--ui-action-primary);color:var(--ui-action-on-primary);box-shadow:none}
.studio-tools #studio-generate:hover,#design-from-prompt:hover{background:var(--ui-action-primary-hover);border-color:var(--ui-action-primary-hover)}
.studio-project-pill{background:var(--ui-surface);border-color:var(--ui-line-strong);box-shadow:var(--ui-shadow-subtle);color:var(--ui-ink)}
.studio-project-pill label span,.studio-project-pill>#intent-version{color:var(--ui-muted)}
.intent-shell{background:var(--ui-surface);border-color:var(--ui-line);border-radius:var(--ui-radius-md);box-shadow:var(--ui-shadow-card)}
.intent-assets,.intent-chat,.intent-canvas-header,.graph-toolbar,.studio-template-shelf,.studio-canvas-hint{border-color:var(--ui-line)}
.intent-assets{background:var(--ui-surface)}
.intent-chat{background:var(--ui-surface-subtle)}
.intent-canvas,.intent-graph-host{background-color:var(--ui-bg)}
.intent-graph-host{background-image:radial-gradient(color-mix(in srgb,var(--ui-line-strong) 58%,transparent) 1px,transparent 1px)}
.workflow-graph__node{border-color:var(--ui-line);background:var(--ui-surface);box-shadow:var(--ui-shadow-card);border-radius:var(--ui-radius-md)}
.workflow-graph__node:hover{border-color:var(--ui-focus);box-shadow:var(--ui-shadow-focus),var(--ui-shadow-card)}
.workflow-graph__node.is-selected{border-color:var(--ui-accent);box-shadow:var(--ui-shadow-focus),var(--ui-shadow-card)}
.workflow-graph__icon,.workflow-graph__empty-mark{background:var(--ui-accent-soft);color:var(--ui-accent)}
.intent-node-detail,.model-admin-card,.project-card,.hub-action{border-color:var(--ui-line);box-shadow:var(--ui-shadow-card);background:var(--ui-surface)}
.hub-action:hover,.project-card:hover{border-color:var(--ui-focus);box-shadow:var(--ui-shadow-card)}
.studio-canvas-hint{background:var(--ui-surface);color:var(--ui-muted)}
.mobile-nav{background:var(--ui-surface-overlay);border-color:var(--ui-line);box-shadow:0 -8px 24px rgb(29 25 67 / 7%);backdrop-filter:blur(14px)}
.mobile-nav button.active{background:var(--ui-accent-soft);color:var(--ui-accent-strong)}
.auth-card{background:var(--ui-surface);border-color:var(--ui-line);border-radius:var(--ui-radius-lg);box-shadow:var(--ui-shadow-card)}
@media(max-width:1100px){.studio-toolbar{gap:var(--ui-space-2);padding-inline:var(--ui-space-3)}.studio-project-pill{flex-basis:clamp(180px,34vw,300px);width:auto;min-width:0;max-width:300px;margin-inline:var(--ui-space-1)}}
@media(max-width:780px){.intent-shell{border-radius:0;box-shadow:none}.intent-assets,.intent-chat{box-shadow:var(--ui-shadow-float)}}
@media(max-width:560px){.studio-toolbar{height:58px;padding-inline:var(--ui-space-2)}.studio-project-pill{flex-basis:clamp(150px,42vw,230px);max-width:230px}.intent-view{width:100%;min-width:0}.studio-tabs button{min-width:var(--ui-touch-target)}.studio-tools button{min-width:var(--ui-touch-target)}}

/* Shared topbar geometry keeps every workbench page aligned. */
.topbar{height:var(--ui-topbar-height);min-height:var(--ui-topbar-height);padding-block:0}
.studio-toolbar{min-height:var(--ui-topbar-height)}
/* Prompt Studio is mounted inside this main page; its standalone main rule
   must never vertically center the workbench shell. */
body>main{margin:0;max-width:none;padding:0}
@media(max-width:560px){.topbar{height:var(--ui-topbar-height-compact);min-height:var(--ui-topbar-height-compact)}.studio-toolbar{min-height:var(--ui-topbar-height-compact)}}

/* Project cards keep long prompts inside the existing card geometry. */
.project-open {
  min-width: 0;
}

.project-open p {
  width: 100%;
  min-width: 0;
  height: 40px;
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  line-height: 1.8;
}


/* Pricing catalog: published rate cards with admin overlay controls. */
.pricing-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 28px}
.pricing-tabs button{min-height:var(--ui-touch-target);border-radius:var(--ui-radius-pill);border-color:var(--ui-line);background:var(--ui-surface);color:var(--ui-muted);padding:8px 16px;font-size:12px}
.pricing-tabs button[aria-selected="true"]{background:var(--ui-accent-soft);border-color:transparent;color:var(--ui-accent-strong);box-shadow:var(--ui-shadow-subtle)}
.pricing-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:8px}
.pricing-hero h3{margin:0;font-size:28px;font-weight:600;letter-spacing:-.6px;color:var(--ui-ink)}
.pricing-hero .hub-copy{margin:8px 0 0;max-width:46em}
.pricing-hero-actions{display:flex;flex-wrap:wrap;gap:8px;flex:none}
.pricing-markup{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-top:18px;padding:14px 16px;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:var(--ui-radius-md);box-shadow:var(--ui-shadow-subtle);max-width:420px}
.pricing-markup label{margin:0;font-size:11px;color:var(--ui-muted)}
.pricing-markup input{display:block;width:96px;height:40px;margin-top:6px}
.pricing-markup p{flex:1 1 100%;margin:0;color:var(--ui-muted);font-size:11px;line-height:1.6}
.pricing-dual{display:grid;gap:8px;justify-items:end}
.pricing-dual small{display:block;margin:0 0 2px;font-size:10px;letter-spacing:.04em;color:var(--ui-muted)}
.pricing-dual-user b{color:var(--ui-ink)}
.pricing-dual-cost b{font-size:13px;font-weight:550;color:var(--ui-muted)}
.pricing-highlight .pricing-cost{margin-top:8px;color:var(--ui-muted);font-size:12px}
.pricing-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 28px}
.pricing-highlight{position:relative;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:var(--ui-radius-md);box-shadow:var(--ui-shadow-card);padding:22px 22px 18px;overflow:hidden}
.pricing-highlight::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--ui-accent)}
.pricing-highlight small{display:block;color:var(--ui-muted);font-size:11px;letter-spacing:.04em}
.pricing-highlight strong{display:block;margin-top:10px;font-size:28px;letter-spacing:-1px;line-height:1.1;font-variant-numeric:tabular-nums}
.pricing-highlight .pricing-unit{font-size:14px;font-weight:500;letter-spacing:0;color:var(--ui-muted)}
.pricing-highlight span{display:block;margin-top:8px;color:var(--ui-muted);font-size:12px}
.pricing-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.pricing-section{background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:var(--ui-radius-md);box-shadow:var(--ui-shadow-card);padding:22px;min-width:0}
.pricing-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.pricing-section h4{margin:0;font-size:14px;font-weight:600;color:var(--ui-ink)}
.pricing-section-actions,.pricing-row-actions{display:flex;flex-wrap:wrap;gap:4px}
.pricing-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;padding:14px 0;border-top:1px solid var(--ui-line)}
.pricing-row-copy strong{display:block;font-size:13px;font-weight:550;color:var(--ui-ink)}
.pricing-row-copy p{margin:4px 0 0;color:var(--ui-muted);font-size:11px;line-height:1.6}
.pricing-amount{text-align:right;font-variant-numeric:tabular-nums}
.pricing-amount b{display:block;font-size:15px;font-weight:650;color:var(--ui-ink)}
.pricing-amount small{display:block;margin-top:4px;color:var(--ui-muted);font-size:11px}
.pricing-free{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:var(--ui-radius-pill);background:var(--ui-success-soft);color:var(--ui-success);font-size:11px;font-weight:600}
.pricing-empty{margin:12px 0 0;color:var(--ui-muted);font-size:12px}
.pricing-editor-list{display:grid;gap:10px;margin:16px 0 8px}
.pricing-editor-row{display:grid;grid-template-columns:minmax(0,1.4fr) 88px 72px auto;gap:8px;align-items:end}
.pricing-editor-row label{margin:0;font-size:11px;color:var(--ui-muted)}
.pricing-editor-row input,.pricing-editor-row select{width:100%;height:40px}
#pricing-catalog-form,#pricing-section-form,#pricing-item-form{display:flex;flex-direction:column;min-height:0;overflow:auto;gap:0}
#pricing-catalog-form label,#pricing-section-form label,#pricing-item-form label{display:block;margin:12px 0;font-size:12px;color:var(--ui-muted)}
#pricing-catalog-form small{display:block;margin-top:6px;font-weight:400}
#pricing-catalog-form input,#pricing-section-form input,#pricing-item-form input,#pricing-item-form select,#pricing-catalog-form textarea,#pricing-item-form textarea{width:100%;margin-top:6px}
#pricing-item-paid-fields{margin:4px 0 8px}
@media(max-width:900px){.pricing-highlights,.pricing-sections{grid-template-columns:1fr}.pricing-hero{flex-direction:column}.pricing-highlight strong{font-size:24px}}
@media(max-width:720px){.pricing-editor-row{grid-template-columns:1fr 1fr}.pricing-editor-row label:nth-child(1){grid-column:1/-1}}
@media(max-width:560px){.pricing-row{grid-template-columns:1fr;gap:8px}.pricing-amount{text-align:left}}

.admin-section-title{font-size:16px;font-weight:600;margin:28px 0 12px}
.admin-assistant-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-top:36px}
.admin-assistant-heading .admin-section-title{margin:0 0 8px}
.admin-model-list{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.model-admin-card{display:flex;flex-direction:column;gap:8px;padding:20px;border:1px solid var(--ui-line);border-radius:12px}
.model-admin-card header{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.model-admin-card header h3{margin:0;font-size:16px}
.model-admin-card label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--ui-muted)}
.model-admin-card input:not([type=checkbox]){width:100%}
.admin-hint{color:#9191a5;font-size:12px;line-height:1.6;margin:0 0 8px}
.admin-error{color:#b42318}
.admin-secret{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--ui-muted)}
.admin-reveal{display:flex;flex-direction:row;align-items:center;gap:6px;margin-top:4px;font-size:12px}
.admin-switch{flex-direction:row;align-items:center;gap:6px;margin:0}
.admin-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
#account-balance{font-variant-numeric:tabular-nums;color:var(--ui-ink-soft);font-size:12px;max-width:none}
#account-balance.is-empty{color:#b14431}
.usage-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;align-items:center;padding:16px 0;border-bottom:1px solid var(--ui-line)}
.usage-row strong{display:block;font-size:14px;font-weight:600}
.usage-row small{display:block;margin-top:4px;color:var(--ui-muted);font-size:11px}
.usage-amount,.usage-line-amount{text-align:right;font-variant-numeric:tabular-nums}
.usage-amount b,.usage-total strong,.usage-line-amount b{display:block;font-size:16px}
.usage-amount small,.usage-total small,.usage-line-amount small{display:block;margin-top:4px;color:var(--ui-muted);font-size:11px}
.usage-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:12px 0;border-top:1px solid var(--ui-line)}
.usage-line p{margin:4px 0 0;color:var(--ui-muted);font-size:11px;line-height:1.6}
.usage-total{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;margin:12px 0 18px}
.usage-total span{color:var(--ui-muted);font-size:12px}
.user-balance{font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:720px){.usage-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.usage-row .text-button{grid-column:1/-1;justify-self:start}}

/* Creative space status dock: fixed overlay with partial/full/minimized states. */
.intent-view{position:relative;overflow:hidden}
.intent-view>.intent-shell{flex:1;min-height:0;height:auto}
.studio-context{display:flex;align-items:center;gap:8px;color:var(--ui-accent-strong);font-size:11px;font-weight:650;white-space:nowrap}
.studio-context svg{width:15px;height:15px}
.intent-status-dock{position:absolute;z-index:30;left:50%;bottom:18px;width:min(760px,calc(100% - 48px));height:520px;display:flex;flex-direction:column;background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:16px 16px 0 0;box-shadow:0 16px 46px rgb(24 27 45 / 18%);transform:translate(-50%,calc(100% - 84px));transition:transform .22s ease;overflow:hidden;box-sizing:border-box}
.intent-status-dock[data-state=full]{transform:translate(-50%,0)}
.intent-status-dock[data-state=minimized]{height:58px;transform:translate(-50%,calc(100% - 58px));border-radius:14px}
.intent-dock-bar{height:58px;flex:0 0 58px;display:flex;align-items:center;gap:10px;padding:0 16px;border-bottom:1px solid var(--ui-line);background:var(--ui-surface);font-size:11px}
.dock-kicker{font-size:10px;letter-spacing:.08em;color:var(--ui-accent-strong);font-weight:700}.intent-dock-bar>span:nth-child(2){color:var(--ui-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.intent-dock-actions{display:flex;gap:6px;margin-left:auto}.intent-dock-actions button{min-height:30px;padding:5px 9px;border:1px solid var(--ui-line);background:var(--ui-surface-subtle);color:var(--ui-accent-strong);font-size:10px}.intent-status-dock>.intent-handoff{flex:1;max-height:none;min-height:0;overflow:auto;border:0;padding:14px 18px}.intent-status-dock>#intent-dock-generate{flex:0 0 44px;margin:10px 16px 14px;min-height:44px}.intent-status-dock[data-state=minimized]>.intent-handoff{display:none}.intent-status-dock[data-state=minimized]>.intent-dock-bar{border-bottom:0}.intent-status-dock[data-state=minimized] #intent-dock-expand{display:none}
.intent-status-dock #intent-generation-options{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:900px){.intent-status-dock{width:calc(100% - 24px);bottom:10px}.intent-status-dock[data-state=full]{height:min(520px,calc(100% - 20px))}}
@media(max-width:560px){.intent-status-dock{width:calc(100% - 16px);bottom:8px}.intent-status-dock #intent-generation-options{grid-template-columns:1fr}.intent-dock-bar{padding:0 12px}.intent-status-dock>.intent-handoff{padding:12px}}

/* Canvas-first shell: every surrounding surface floats above the same canvas. */
.intent-view{padding:0!important;position:relative;overflow:hidden}
.intent-view>.studio-toolbar{position:absolute;z-index:40;top:14px;left:14px;right:14px;width:auto;height:58px;min-height:58px;border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-surface-overlay);box-shadow:var(--ui-shadow-subtle);backdrop-filter:blur(18px)}
.intent-shell{position:absolute;inset:0;display:block;height:auto!important;min-height:0;overflow:hidden;border:0;border-radius:0;box-shadow:none;background:var(--ui-bg)}
.intent-canvas{position:absolute;inset:0;display:grid;z-index:1;width:auto;height:auto;min-height:0}
.intent-assets,.intent-chat{position:absolute;top:86px;bottom:18px;z-index:20;width:240px;display:flex;flex-direction:column;min-height:0;box-shadow:var(--ui-shadow-float);transition:transform .2s ease,opacity .2s ease}
.intent-assets{left:16px}.intent-chat{right:16px;width:320px}
.intent-shell.assets-collapsed .intent-assets{display:flex;transform:translateX(calc(-100% - 24px));opacity:0;pointer-events:none}
.intent-shell.chat-collapsed .intent-chat{display:flex;transform:translateX(calc(100% + 24px));opacity:0;pointer-events:none}
.intent-shell:not(.assets-collapsed) .intent-assets,.intent-shell:not(.chat-collapsed) .intent-chat{display:flex}
.intent-shell .chat-resize-handle{position:absolute;right:336px;top:50%;z-index:21}
.intent-status-dock[data-state=partial]{transform:translate(-50%,calc(100% - 360px))}
.intent-status-dock[data-state=partial] .intent-dock-lower{display:none}
.intent-status-dock[data-state=partial] #intent-generation-options{display:none}
.intent-status-dock[data-state=partial] #intent-dock-generate{position:absolute;left:16px;right:16px;top:218px;width:calc(100% - 32px);margin:0}
.intent-status-dock[data-state=full] #intent-generation-options{display:grid}
@media(max-width:900px){.intent-view>.studio-toolbar{top:0;left:0;right:0;border-radius:0}.intent-assets,.intent-chat{top:68px;bottom:10px}.intent-assets{left:10px}.intent-chat{right:10px}.intent-status-dock{bottom:10px}}

/* The handoff now belongs to the bottom dock; override the legacy tab visibility rule. */
.intent-status-dock>.intent-handoff{display:flex;flex-direction:column;flex:1;min-height:0;max-height:none;overflow:auto}
.intent-status-dock>.intent-handoff #intent-prompt-editor{flex:0 0 auto}
.intent-status-dock[data-state=partial]>.intent-handoff{display:flex}
.intent-status-dock[data-state=full]>.intent-handoff{display:flex}

/* Keep the dock's two information bands stable; only the prompt editor may scroll. */
.intent-status-dock>.intent-handoff{padding:0;overflow:hidden}
.intent-dock-upper,.intent-dock-lower{box-sizing:border-box;min-height:0;overflow:hidden}
.intent-dock-upper{height:210px;flex:0 0 210px;padding:14px 18px;display:flex;flex-direction:column;gap:8px}
.intent-dock-lower{height:170px;flex:0 0 170px;padding:12px 18px;border-top:1px solid var(--ui-line);display:flex;flex-direction:column;gap:8px}
.intent-dock-upper header{flex:0 0 auto}
.intent-dock-upper #prompt-execution-info{flex:0 0 auto;min-height:0}
.intent-dock-upper #intent-prompt-editor{flex:1 1 auto;min-height:0;width:100%;box-sizing:border-box;resize:none;overflow-y:auto}
.intent-dock-upper .prompt-editor-tools,.intent-dock-upper #prompt-conflict{flex:0 0 auto}
.intent-dock-lower #intent-generation-options{min-height:0;overflow:auto}
.intent-dock-actions .icon{width:30px;height:30px;min-width:30px;padding:0;display:grid;place-items:center;border:1px solid var(--ui-line);background:var(--ui-surface-subtle);color:var(--ui-accent-strong);}
.intent-dock-actions .icon svg{width:14px;height:14px;}
.intent-dock-status{flex:1 1 auto;min-height:0;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface-subtle);padding:14px;display:flex;flex-direction:column;justify-content:center;gap:6px;color:var(--ui-muted);font-size:12px;line-height:1.6;}
.intent-dock-status strong{color:var(--ui-ink);font-size:14px;}
.intent-dock-lower #intent-generation-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;overflow:hidden;}
.intent-dock-lower #intent-generation-options>.creative-advanced{display:contents;}
.intent-dock-lower #intent-generation-options>.creative-advanced>h3{display:none;}
.intent-dock-lower #intent-generation-options .creative-option-grid{display:contents;}
.intent-dock-lower #intent-generation-options label{margin:0;font-size:10px;min-width:0;}
.intent-dock-lower #intent-generation-options input,.intent-dock-lower #intent-generation-options select{height:32px;min-width:0;width:100%;box-sizing:border-box;font-size:11px;}

/* Status dock visual baseline: the structure remains useful before project data arrives. */
.intent-status-dock{background:color-mix(in srgb,var(--ui-surface) 96%,var(--ui-accent) 4%);border-color:color-mix(in srgb,var(--ui-line) 78%,var(--ui-accent) 22%);}
.intent-dock-bar{min-height:48px;padding:0 18px;background:var(--ui-surface);border-bottom:1px solid var(--ui-line);}
.intent-dock-bar .dock-kicker{font-size:10px;letter-spacing:.1em;text-transform:uppercase;}
.intent-dock-upper{background:var(--ui-surface);}
.intent-dock-upper header{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.intent-dock-upper header h3{margin:3px 0 0;font-size:16px;letter-spacing:-.2px;}
.dock-field-state,.dock-section-heading small{color:var(--ui-muted);font-size:10px;letter-spacing:.04em;}
.prompt-input-summary{margin:0;color:var(--ui-muted);font-size:11px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.intent-dock-upper #intent-prompt-editor,.intent-dock-empty-upper #intent-prompt-placeholder{border:1px solid var(--ui-line);background:var(--ui-surface-subtle);border-radius:10px;padding:11px 12px;line-height:1.7;font-size:12px;}
.intent-dock-empty-upper #intent-prompt-placeholder{display:block;width:100%;box-sizing:border-box;flex:1 1 auto;min-height:0;resize:none;color:var(--ui-muted);}
.intent-dock-lower{background:var(--ui-surface-subtle);}
.dock-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--ui-ink);font-size:12px;font-weight:650;}
.dock-required-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 10px;min-height:0;overflow:hidden;}
.dock-required-grid label{display:flex;flex-direction:column;gap:4px;margin:0;color:var(--ui-muted);font-size:10px;line-height:1.3;}
.dock-required-grid input,.dock-required-grid select{width:100%;height:32px;box-sizing:border-box;font-size:11px;}
.dock-required-grid input:disabled,.dock-required-grid select:disabled{opacity:.78;color:var(--ui-muted);background:var(--ui-surface);}
.intent-dock-empty-lower{gap:8px;}
.intent-dock-empty-lower .dock-required-grid{opacity:.92;}
.intent-status-dock>#intent-dock-generate{box-shadow:0 8px 20px color-mix(in srgb,var(--ui-accent) 18%,transparent);}
@media(max-width:560px){.dock-required-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.intent-dock-bar{padding-inline:12px}.intent-dock-upper,.intent-dock-lower{padding-inline:12px;}}

/* Integrated status dock: 54 + 211 + 211 + 42 = 518px inner height. */
#intent-status-dock{width:min(920px,calc(100% - 32px));height:520px;bottom:0;border-radius:18px 18px 0 0;display:grid;grid-template-rows:54px 422px 42px;transform:translate(-50%,0);transition:transform .32s cubic-bezier(.22,.8,.24,1);background:var(--ui-surface)}
#intent-status-dock .intent-dock-bar{height:54px;min-height:0;padding:0 20px;box-sizing:border-box}
#intent-status-dock .intent-dock-actions button{width:auto;min-width:32px;height:32px;white-space:nowrap;font-size:11px;padding:0 10px}
#intent-status-dock>.intent-handoff{display:grid;grid-template-rows:211px 211px;height:422px;min-height:0;padding:0;overflow:hidden}
#intent-status-dock .intent-dock-upper,#intent-status-dock .intent-dock-lower{height:211px;min-height:0;padding:14px 20px;gap:6px;overflow:hidden;box-sizing:border-box}
#intent-status-dock .intent-dock-upper{display:flex;flex-direction:column}
#intent-status-dock .intent-dock-upper header{margin:0;min-height:22px;padding:0;border:0}
#intent-status-dock h3{font-size:14px;margin:0}
#intent-status-dock #prompt-execution-info p{margin:0;line-height:16px;font-size:11px!important}
#intent-status-dock #intent-prompt-editor,#intent-status-dock #intent-prompt-placeholder{flex:1 1 0;min-height:0;height:auto;padding:10px 12px;line-height:1.6;font-size:12px;overflow:auto}
#intent-status-dock [hidden]{display:none!important}
#intent-status-dock .prompt-editor-tools{margin:0;padding:0;min-height:26px;gap:8px;font-size:11px}
#intent-status-dock .prompt-editor-tools button{min-height:26px;height:26px;padding:2px 8px;font-size:11px}
#intent-status-dock .intent-dock-lower{display:block;background:var(--ui-surface-subtle)}
#intent-status-dock #intent-generation-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:48px 28px 40px 28px;gap:6px 12px;border:0;background:none;padding:0;margin:0;overflow:visible}
#intent-status-dock #intent-generation-options>.creative-advanced,#intent-status-dock .creative-advanced>.creative-option-grid:not([hidden]){display:contents}
#intent-status-dock .creative-advanced>h3{display:none}
#intent-status-dock #intent-generation-options label{margin:0;line-height:16px;min-width:0;font-size:11px;color:var(--ui-muted)}
#intent-status-dock #intent-generation-options input,#intent-status-dock #intent-generation-options select{height:30px;min-height:0;width:100%;margin:0;padding:0 8px;box-sizing:border-box;font-size:12px}
#intent-status-dock label:has(#creative-maxEdge){grid-column:3;grid-row:1}
#intent-status-dock label:has(#creative-outputDuration){grid-column:3;grid-row:2 / span 2}
#intent-status-dock label:has(#creative-start){grid-column:1;grid-row:3}
#intent-status-dock label:has(#creative-end){grid-column:2;grid-row:3}
#intent-status-dock .creative-option-grid[hidden],#intent-status-dock .creative-advanced>label{display:none}
#intent-status-dock #save-generation-options{grid-column:1 / span 2;grid-row:4;justify-self:start;min-height:26px;height:26px;padding:2px 10px;font-size:11px}
#intent-status-dock #intent-provider-note{grid-column:3;grid-row:4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:26px;margin:0;font-size:10px!important}
#intent-status-dock .dock-timeline{grid-column:1 / span 2;grid-row:2;font-size:11px;color:var(--ui-muted)}
#intent-status-dock .dock-range{position:relative;height:16px;margin:0 8px;background:linear-gradient(var(--ui-line),var(--ui-line)) center/100% 4px no-repeat;touch-action:none}
#intent-status-dock .dock-range input[type=range]{position:absolute;inset:0;width:calc(100% + 16px);margin-left:-8px;padding:0;height:16px;appearance:none;background:transparent;border:0;pointer-events:none;box-shadow:none}
#intent-status-dock .dock-range input::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border:2px solid white;border-radius:50%;background:var(--ui-accent);pointer-events:auto}
#intent-status-dock .dock-range input::-moz-range-thumb{width:12px;height:12px;border:2px solid white;border-radius:50%;background:var(--ui-accent);pointer-events:auto}
#intent-status-dock .dock-range-fill{position:absolute;top:3px;height:10px;min-height:0;border:0;border-radius:4px;padding:0;background:var(--ui-accent);cursor:grab;touch-action:none}
#intent-status-dock #creative-outputDuration{padding:0;border:0;background:none;accent-color:var(--ui-accent);box-shadow:none}
#intent-status-dock label:has(#creative-outputDuration)>span{display:block;font-size:10px;white-space:nowrap}
#intent-status-dock>#intent-dock-generate{position:static;width:calc(100% - 32px);height:30px;min-height:30px;margin:6px 16px;font-size:12px;box-shadow:none}
#intent-status-dock[data-state=partial]{transform:translate(-50%,255px)}
#intent-status-dock[data-state=minimized]{height:520px;transform:translate(-50%,466px);border-radius:18px 18px 0 0}
#intent-status-dock[data-state=partial] .intent-dock-lower,#intent-status-dock:not([data-state=full])>#intent-dock-generate{visibility:hidden;pointer-events:none}
#intent-status-dock[data-state=minimized]>.intent-handoff{display:grid;visibility:hidden}
#intent-status-dock[data-state=minimized] .dock-kicker,#intent-status-dock[data-state=minimized] #intent-dock-context,#intent-status-dock[data-state=minimized] #intent-dock-minimize{visibility:hidden}
#intent-status-dock[data-state=minimized] #workspace-quote-summary{visibility:hidden}
#intent-status-dock[data-state=minimized] #intent-dock-expand{display:block}
#intent-status-dock .dock-required-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media(prefers-reduced-motion:reduce){#intent-status-dock{transition:none}}

/* Keep one guide button mounted while it moves between center and toolbar. */
#intent-status-dock .intent-dock-bar{position:relative;padding-right:160px}
#intent-status-dock .intent-dock-actions{position:absolute;right:20px;top:11px;margin:0}
#intent-status-dock #intent-dock-expand{position:absolute;top:0;right:38px;width:96px;transition:transform .32s cubic-bezier(.22,.8,.24,1)}
#intent-status-dock .intent-dock-actions{left:20px;justify-content:flex-end}
#intent-status-dock[data-state=minimized] #intent-dock-expand{transform:translateX(calc(-50cqw + 106px))}
#intent-status-dock{container-type:inline-size}
@media(prefers-reduced-motion:reduce){#intent-status-dock #intent-dock-expand{transition:none}}

/* Side panel headings own only their title and controls. */
.intent-shell .intent-panel-heading{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px}
.intent-shell .intent-panel-heading>div:first-child{min-width:0}
.intent-shell .assistant-panel-actions,.intent-shell .asset-upload-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}
.intent-shell .intent-panel-heading .icon{width:28px;min-width:28px;height:32px;min-height:32px;padding:4px}
.intent-shell .panel-trigger{position:absolute;top:50%;z-index:25;width:32px;height:44px;padding:6px;transform:translateY(-50%);background:var(--ui-surface);border:1px solid var(--ui-line);border-radius:8px;color:var(--ui-accent-strong)}
.intent-shell .panel-trigger-left{left:8px}.intent-shell .panel-trigger-right{right:8px}
.intent-shell:not(.assets-collapsed)>.panel-trigger-left,.intent-shell:not(.chat-collapsed)>.panel-trigger-right{display:none}
.intent-shell .panel-trigger svg{width:18px;height:18px}

/* A persistent edge control follows each drawer on the same horizontal axis. */
.intent-shell{--panel-edge:16px;--panel-motion:.24s cubic-bezier(.22,.8,.24,1)}
.intent-shell #studio-assets-toggle,.intent-shell #studio-chat-toggle{display:none}
.intent-shell .panel-trigger{display:grid!important;place-items:center;top:50%;transition:transform var(--panel-motion)}
.intent-shell .panel-trigger-left{left:var(--panel-edge);transform:translate(0,-50%)}
.intent-shell .panel-trigger-right{right:var(--panel-edge);transform:translate(0,-50%)}
.intent-shell:not(.assets-collapsed)>.panel-trigger-left{transform:translate(240px,-50%)}
.intent-shell:not(.chat-collapsed)>.panel-trigger-right{transform:translate(-320px,-50%)}
.intent-shell .intent-assets,.intent-shell .intent-chat{transition:transform var(--panel-motion),opacity var(--panel-motion)}
@media(max-width:900px){.intent-shell{--panel-edge:10px}}
@media(prefers-reduced-motion:reduce){.intent-shell .panel-trigger,.intent-shell .intent-assets,.intent-shell .intent-chat{transition:none}}

/* Narrow dock: equal content bands, explicit time-control rows. */
#intent-status-dock{--dock-height:560px;--dock-band:calc((var(--dock-height) - 96px)/2);height:var(--dock-height);grid-template-rows:54px minmax(0,1fr) 40px;max-width:calc(100% - 32px)}
#intent-status-dock>.intent-handoff{height:auto;grid-template-rows:repeat(2,minmax(0,1fr))}
#intent-status-dock .intent-dock-upper,#intent-status-dock .intent-dock-lower{height:auto;padding:12px 16px;min-width:0}
#intent-status-dock[data-state=partial]{transform:translate(-50%,calc(var(--dock-height) - 54px - var(--dock-band)))}
#intent-status-dock[data-state=minimized]{height:var(--dock-height);transform:translate(-50%,calc(var(--dock-height) - 54px))}
#intent-status-dock.dock-under-drawers{z-index:14}
#intent-status-dock #intent-generation-options{grid-template-columns:1.4fr 1fr 1fr;grid-template-rows:46px 52px 52px 28px;gap:6px 10px;min-width:0}
#intent-status-dock .dock-timeline{grid-column:1 / -1;grid-row:2;min-width:0;display:grid;grid-template-rows:16px 32px;gap:4px}
#intent-status-dock .dock-range-row{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:12px;min-width:0}
#intent-status-dock #intent-generation-options .dock-range-row>input{width:48px;height:32px;padding:0 3px;text-align:center;border-radius:6px;font-variant-numeric:tabular-nums;appearance:textfield}
#intent-status-dock .dock-range-row>input::-webkit-inner-spin-button{appearance:none}
#intent-status-dock #intent-generation-options .dock-range{height:32px;margin:0 8px;background:linear-gradient(var(--ui-line),var(--ui-line)) center/100% 4px no-repeat}
#intent-status-dock #intent-generation-options .dock-range input[type=range]{appearance:none;position:absolute;inset:0 auto auto -8px;width:calc(100% + 16px);height:32px;min-height:0;margin:0;padding:0;border:0;background:transparent;border-radius:0;box-shadow:none;pointer-events:none;z-index:2}
#intent-status-dock .dock-range input::-webkit-slider-runnable-track{height:4px;background:transparent;border:0;box-shadow:none}
#intent-status-dock .dock-range input::-webkit-slider-thumb{appearance:none;margin-top:-6px;box-sizing:border-box;width:16px;height:16px;border:2px solid var(--ui-surface);border-radius:50%;background:var(--ui-accent);pointer-events:auto;cursor:ew-resize}
#intent-status-dock .dock-range input::-moz-range-track{height:4px;background:transparent;border:0}
#intent-status-dock .dock-range input::-moz-range-thumb{box-sizing:border-box;width:16px;height:16px;background:var(--ui-accent);border:2px solid var(--ui-surface);border-radius:50%;pointer-events:auto}
#intent-status-dock .dock-range input::-moz-range-progress{background:transparent}
#intent-status-dock .dock-range input:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
#intent-status-dock .dock-range-fill{top:0;height:32px;min-width:0;padding:0;border:0;border-radius:0;background:linear-gradient(var(--ui-accent),var(--ui-accent)) center/100% 4px no-repeat;box-shadow:none;z-index:1;cursor:grab}
#intent-status-dock .dock-range-fill:active{cursor:grabbing}
#intent-status-dock label:has(#creative-outputDuration){grid-column:1 / -1;grid-row:3;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;line-height:16px}
#intent-status-dock #creative-outputDuration{grid-row:2;grid-column:1 / -1;height:26px}
#intent-status-dock label:has(#creative-outputDuration)>span{grid-column:2;grid-row:1}
#intent-status-dock #save-generation-options{grid-column:1 / span 2;grid-row:4}
#intent-status-dock #intent-provider-note{grid-column:3;grid-row:4}
#intent-status-dock #intent-dock-context{display:none}
#intent-status-dock .prompt-editor-tools{gap:4px}
#intent-status-dock .prompt-editor-tools button{padding-inline:4px}
@container(max-width:400px){#intent-status-dock .prompt-editor-tools{flex-wrap:wrap}#intent-status-dock #intent-generation-options{column-gap:6px}#intent-status-dock .intent-dock-upper,#intent-status-dock .intent-dock-lower{padding-inline:10px}}

/* The dock has a viewport anchor, independent of drawer state. */
#intent-status-dock{left:50%;width:min(600px,calc(100% - 32px));bottom:8px;transition:width .36s cubic-bezier(.22,.8,.24,1),height .36s cubic-bezier(.22,.8,.24,1),transform .36s cubic-bezier(.22,.8,.24,1),border-radius .36s ease,box-shadow .36s ease}
#intent-status-dock>.intent-handoff{grid-template-rows:var(--dock-band) var(--dock-band)}
#intent-status-dock[data-state=minimized]{width:144px;height:54px;border-radius:27px;transform:translate(-50%,0);box-shadow:0 6px 24px rgb(24 27 45 / 12%)}
#intent-status-dock[data-state=minimized] .intent-dock-bar{border:0}
#intent-status-dock .intent-dock-actions{position:static}
#intent-status-dock #intent-dock-expand{left:calc(100% - 106px);right:auto;top:11px;transform:translateX(-50%);transition:left .36s cubic-bezier(.22,.8,.24,1),background .2s ease}
#intent-status-dock #intent-dock-minimize{position:absolute;right:20px;top:11px}
#intent-status-dock[data-state=minimized] #intent-dock-expand{left:50%;transform:translateX(-50%);border:0;background:transparent}
#intent-status-dock .intent-dock-status{min-height:0;flex:1;overflow:auto;justify-content:flex-start;padding:10px 12px}
#intent-status-dock .intent-dock-status p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
#intent-status-dock #prompt-execution-info p{max-height:32px;overflow:auto}
@media(prefers-reduced-motion:reduce){#intent-status-dock,#intent-status-dock #intent-dock-expand{transition:none}}

/* The capsule centers against its own border box, without toolbar reservations. */
#intent-status-dock .intent-dock-bar{width:100%;min-width:0;box-sizing:border-box}
#intent-status-dock[data-state=minimized] .intent-dock-bar{padding:0}
#intent-status-dock[data-state=minimized] #intent-dock-expand{width:100%;height:100%;min-height:0;left:0;top:0;transform:none;display:flex;align-items:center;justify-content:center;text-align:center;padding:0;border-radius:27px}
#dock-generation-feedback{margin:4px 0 0;font-size:11px;line-height:15px;color:var(--ui-accent-strong);max-height:30px;overflow:auto}
#toast{z-index:100}

/* Node-specific layouts within the same fixed upper band. */
#intent-status-dock #intent-node-detail{position:static;inset:auto;width:100%;flex:1 1 0;min-height:0;max-height:none!important;margin:0;padding:0;box-sizing:border-box;display:flex;flex-direction:column;gap:8px;overflow:hidden;border:0;border-radius:0;background:transparent;box-shadow:none;animation:none}
#intent-status-dock #intent-node-detail .node-editor-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
#intent-status-dock #intent-node-detail label{margin:0;min-width:0;display:flex;flex-direction:column;gap:4px;color:var(--ui-muted);font-size:11px;line-height:16px}
#intent-status-dock #intent-node-detail input:not([type=checkbox]),#intent-status-dock #intent-node-detail select{width:100%;height:30px;min-height:0;padding:0 8px;margin:0;font-size:12px;box-sizing:border-box}
#intent-status-dock #intent-node-detail input[type=checkbox]{width:14px;height:14px;min-height:0;margin:0;accent-color:var(--ui-accent);flex-shrink:0}
#intent-status-dock #intent-node-detail button{height:28px;min-height:28px;padding:3px 7px;font-size:11px;white-space:nowrap}
#intent-status-dock .node-editor-footer{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px;padding-top:6px;border-top:1px solid var(--ui-line)}
#intent-status-dock .node-editor-footer>div{display:flex;gap:5px;margin-left:auto}
#intent-status-dock .node-editor-hint{font-size:10px;line-height:14px;color:var(--ui-muted)}
#intent-status-dock #scene-close{background:transparent;border-color:transparent;color:var(--ui-muted)}
#intent-status-dock #scene-save{color:var(--ui-accent-strong);border-color:var(--ui-line-strong);background:var(--ui-accent-soft)}
#intent-status-dock .node-asset-layout{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;min-width:0}
#intent-status-dock .node-asset-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:112px;overflow:hidden;border-radius:8px;background:var(--ui-surface-subtle);padding:6px;font-size:11px;color:var(--ui-muted)}
#intent-status-dock .node-asset-preview img{width:100%;height:64px;object-fit:contain;border-radius:4px}
#intent-status-dock .node-asset-preview svg{width:24px;height:24px;margin-bottom:6px;color:var(--ui-accent-strong)}
#intent-status-dock .node-asset-preview span{width:100%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#intent-status-dock .node-asset-preview small{font-size:10px}
#intent-status-dock .node-asset-fields{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-content:start}
#intent-status-dock .node-span{grid-column:1/-1}
#intent-status-dock #intent-node-detail .node-optional{flex-direction:row;align-items:center;align-self:end;min-height:30px;gap:6px;white-space:nowrap}
#intent-status-dock #intent-node-detail .node-upload{flex-direction:row;align-items:center;gap:8px}
#intent-status-dock #intent-node-detail .node-upload input{flex:1;width:0;font-size:10px;padding:0;height:26px;line-height:26px}
#intent-status-dock .node-upload input::file-selector-button{height:26px;border:1px solid var(--ui-line);border-radius:5px;background:var(--ui-surface-subtle);color:var(--ui-ink);margin-right:6px;font-size:11px}
#intent-status-dock .node-rule-layout{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;min-height:130px;height:100%}
#intent-status-dock .node-rule-bindings{min-width:0;min-height:0;overflow:auto;margin:0;padding:0;border:0;scrollbar-width:thin}
#intent-status-dock .node-rule-bindings legend{font-size:11px;color:var(--ui-muted);line-height:16px;margin-bottom:6px}
#intent-status-dock #intent-node-detail .node-binding{flex-direction:row;align-items:flex-start;gap:6px;padding:5px 0;color:var(--ui-ink)}
#intent-status-dock .node-binding input{margin-top:1px!important}
#intent-status-dock #intent-node-detail .node-rule-instruction{height:100%;min-height:0}
#intent-status-dock #scene-instruction{flex:1;min-height:80px;width:100%;margin:0;padding:8px 10px;resize:none;box-sizing:border-box;font-size:12px;line-height:1.65;background:var(--ui-surface-subtle)}
#intent-status-dock .node-time-summary dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:10px 0 14px}
#intent-status-dock .node-time-summary dt{font-size:11px;color:var(--ui-muted);margin-bottom:6px}
#intent-status-dock .node-time-summary dd{margin:0;font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ui-ink)}
#intent-status-dock .node-time-summary dd small{font-size:11px;font-weight:400}
#intent-status-dock .node-time-summary p{margin:0;font-size:11px;color:var(--ui-muted);line-height:1.6}
#intent-status-dock #intent-node-detail[data-kind=summary]{overflow:auto}
#intent-status-dock #intent-node-detail[data-kind=summary] header{display:flex;justify-content:flex-end;flex-shrink:0;margin:0}
#intent-status-dock #intent-node-detail[data-kind=summary] header h3{display:none}
#intent-status-dock #intent-node-detail[data-kind=summary] pre,#intent-status-dock #intent-node-detail[data-kind=summary] p{margin:0;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
@container(max-width:440px){#intent-status-dock .node-asset-layout{grid-template-columns:78px minmax(0,1fr);gap:8px}#intent-status-dock .node-rule-layout{grid-template-columns:112px minmax(0,1fr);gap:8px}#intent-status-dock .node-editor-footer>div{gap:3px}#intent-status-dock .node-time-summary dd{font-size:16px}}

/* Save actions become the local primary action only while changes are pending. */
#intent-status-dock #save-generation-options,#intent-status-dock #scene-save{font-weight:650;border:1px solid var(--ui-accent);background:var(--ui-accent-soft);color:var(--ui-accent-strong);box-shadow:0 1px 3px rgb(24 27 45 / 8%);transition:background .18s ease,color .18s ease,box-shadow .18s ease}
#intent-status-dock #save-generation-options{padding-inline:12px;min-height:30px;height:30px}
#intent-status-dock #save-generation-options[data-save-state=dirty],#intent-status-dock #scene-save[data-save-state=dirty]{color:#fff;background:var(--ui-accent);border-color:var(--ui-accent);box-shadow:0 3px 12px color-mix(in srgb,var(--ui-accent) 28%,transparent);animation:dock-save-attention .75s ease-out 1}
#intent-status-dock #save-generation-options[data-save-state=saving],#intent-status-dock #scene-save[data-save-state=saving]{color:#fff;background:var(--ui-accent);opacity:.8;cursor:wait}
#intent-status-dock #save-generation-options[data-save-state=dirty]:hover,#intent-status-dock #scene-save[data-save-state=dirty]:hover{background:var(--ui-accent-strong);box-shadow:0 4px 14px color-mix(in srgb,var(--ui-accent) 36%,transparent)}
#intent-status-dock #intent-node-detail[data-dirty=true] .node-editor-hint{color:var(--ui-accent-strong);font-weight:600}
#intent-status-dock #save-generation-options:disabled,#intent-status-dock #scene-save:disabled{animation:none;box-shadow:none}
@keyframes dock-save-attention{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--ui-accent) 40%,transparent)}60%{box-shadow:0 0 0 5px color-mix(in srgb,var(--ui-accent) 12%,transparent)}100%{box-shadow:0 3px 12px color-mix(in srgb,var(--ui-accent) 28%,transparent)}}
@media(prefers-reduced-motion:reduce){#intent-status-dock #save-generation-options,#intent-status-dock #scene-save{animation:none!important;transition:none}}
#intent-status-dock #save-generation-options[data-save-state=dirty],#intent-status-dock #scene-save[data-save-state=dirty]{background:var(--ui-accent)!important;color:#fff!important;border-color:var(--ui-accent)!important}
#intent-status-dock #intent-generation-options .dock-range-fill{pointer-events:none}

.personal-template-picker { margin:16px 0; padding:12px; border:1px solid var(--ui-line); border-radius:8px; }
.personal-template-picker summary { cursor:pointer; font-weight:600; }
.personal-template-scroll { display:grid; gap:10px; max-height:320px; overflow-y:auto; margin-top:12px; }
.project-card-actions { flex-wrap:wrap; }

.comparison-prompt { display:flex; flex-direction:column; gap:12px; justify-content:center; min-height:220px; padding:18px; background:var(--ui-surface-subtle); color:var(--ui-ink); }
.comparison-prompt p { margin:0; max-height:150px; overflow:hidden; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; line-height:1.7; }
.comparison-materials { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; align-items:start; }
.comparison-material { min-width:0; padding:8px; border:1px solid var(--ui-line); border-radius:10px; background:var(--ui-surface-subtle); }
.comparison-material video,.comparison-material img { width:100%; height:150px; object-fit:contain; background:#eef0f3; border-radius:6px; }
.comparison-material-label { display:block; margin-bottom:6px; color:var(--ui-muted); font-size:10px; }
.comparison-material-prompt p { max-height:110px; margin:0 0 8px; }

#workspace-quote-summary { min-width:0; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; color:var(--ui-ink); }

/* Minimized state is a single, self-contained entry point. */
#intent-status-dock[data-state=minimized]{width:144px;height:54px;transform:translate(-50%,0);border-radius:27px;}
#intent-status-dock[data-state=minimized] .intent-dock-bar{height:54px;min-height:54px;padding:0;border:0;}
#intent-status-dock[data-state=minimized] .dock-kicker,
#intent-status-dock[data-state=minimized] #intent-dock-context,
#intent-status-dock[data-state=minimized] #intent-dock-minimize{display:none;}
#intent-status-dock[data-state=minimized] .intent-dock-actions{display:flex;width:100%;height:100%;margin:0;}
#intent-status-dock[data-state=minimized] #intent-dock-expand{position:static;width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;transform:none;padding:0;border:0;border-radius:27px;white-space:nowrap;}
#intent-status-dock[data-state=minimized] > *:not(.intent-dock-bar),
#intent-status-dock[data-state=minimized] #intent-dock-expand > *{display:none;}
