/* Formal Liquid Glass visual layer. Business controls and update flow are retained. */
html.lg-shell{--green:#007aff;--green-dark:#0066df;--line:rgba(76,92,116,.13);--muted:#82909e;--lg-text:#252c36;--lg-panel:rgba(255,255,255,.73);--lg-fill:rgba(245,249,252,.90);--lg-hover:rgba(255,255,255,.68);--lg-accent:#007aff;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei UI",sans-serif;color:var(--lg-text);background:#8bb5c9}
html.lg-shell body{min-width:900px;min-height:650px;height:100vh;overflow:hidden;background:radial-gradient(ellipse at 67% -10%,#f8dce6 0,transparent 54%),radial-gradient(ellipse at 8% 86%,#68c8cf 0,transparent 54%),linear-gradient(128deg,#639abb,#b0cfd2 48%,#4c72ad);font-size:13px;color:var(--lg-text)}
.lg-shell body:before{content:"";position:fixed;inset:-40%;pointer-events:none;background:linear-gradient(135deg,transparent 48%,#ffffff32 49%,#ffffff14 61%,transparent 62%);transform:rotate(-12deg)}
.lg-shell *, .lg-shell *:before,.lg-shell *:after{box-sizing:border-box}
.lg-shell button,.lg-shell input,.lg-shell select,.lg-shell textarea{font-family:inherit}
.lg-shell button{transition:background-color .18s ease,box-shadow .22s ease,translate .3s cubic-bezier(.2,.8,.2,1),color .15s ease;border-radius:10px;font-weight:500}
.lg-shell button:not(:disabled):hover{translate:0 -1px;box-shadow:0 4px 12px #203b5420}
.lg-shell button:not(:disabled):active{translate:0 1px;box-shadow:none}
.lg-shell button:focus-visible,.lg-shell select:focus-visible{outline:2px solid #007aff;outline-offset:3px}
.lg-shell button:disabled{cursor:not-allowed}
.lg-shell button svg{width:17px;height:17px;flex-shrink:0;pointer-events:none}
.lg-shell input:not([type=range]):not([type=checkbox]):not([type=color]):not([type=file]),.lg-shell textarea,.lg-shell select{background:var(--lg-panel);color:var(--lg-text);border-color:var(--line);border-radius:10px;box-shadow:inset 0 1px 0 #ffffff66}
.lg-shell input:focus,.lg-shell textarea:focus{border-color:#007aff80;box-shadow:0 0 0 3px #007aff12}
.lg-shell input[type=range],.lg-shell input[type=checkbox]{accent-color:#007aff}
.lg-shell .hidden,.lg-shell [hidden]{display:none!important}
.lg-shell ::-webkit-scrollbar{width:6px;height:6px}.lg-shell ::-webkit-scrollbar-thumb{background:#70849342;border-radius:8px}.lg-shell ::-webkit-scrollbar-track{background:transparent}
.lg-menubar{position:fixed;inset:0 0 auto;height:30px;padding:0 25px;display:flex;align-items:center;gap:18px;color:#24384b;background:#ffffff30;border-bottom:1px solid #ffffff25;backdrop-filter:blur(20px);font-size:11px}
.lg-menubar>span:first-child{display:flex;align-items:center;gap:9px;font-weight:650}.lg-menubar img{width:19px;height:19px}.lg-menubar time{margin-left:auto}.lg-shell-badge{opacity:.7;letter-spacing:.4px}
.lg-shell #app-view{position:fixed!important;inset:52px 28px 28px!important;height:auto!important;min-height:0!important;display:grid;grid-template-columns:214px minmax(0,1fr)!important;border:1px solid #ffffffc0;border-radius:23px!important;overflow:hidden;background:var(--lg-fill);box-shadow:0 28px 75px #16304444,0 5px 16px #19334b22;transition:grid-template-columns .38s cubic-bezier(.22,1,.36,1)}
.lg-shell #app-view.hidden{display:none!important}
.lg-shell #app-view>.sidebar{width:214px!important;min-width:0;min-height:0;max-height:none;padding:0 12px 12px!important;gap:12px!important;border:0!important;border-right:1px solid #ffffff70!important;color:#455a69;background:linear-gradient(154deg,#8ec4d844,#b1e9ec66 62%,#c5ecec66)!important;overflow:visible;backdrop-filter:blur(32px) saturate(1.35);transition:opacity .22s,translate .38s}
.lg-window-tools{height:58px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.lg-window-tools>button,.lg-toolbar>button:not(.lg-breadcrumb){width:31px;height:31px;display:grid;place-items:center;background:transparent;color:#71818f;border:0;padding:5px}
.lg-traffic{display:flex;align-items:center;gap:8px;padding-left:6px}.lg-traffic button{width:20px;height:20px;min-width:20px;flex:0 0 20px;padding:2px;cursor:pointer;border:1px solid #0000000b;border-radius:50%;background:#ff6057;display:grid;place-items:center;color:#5a292780}.lg-traffic button:nth-child(2){background:#ffbd2e;color:#795415}.lg-traffic button:nth-child(3){background:#28c840;color:#116d27}.lg-traffic svg{width:12px!important;height:12px!important;opacity:0}.lg-traffic:hover svg,.lg-traffic button:focus-visible svg{opacity:1}.lg-traffic button:focus-visible{outline:2px solid #278af0;outline-offset:3px}
.lg-shell #workspace-switcher{background:none!important;border:0!important;box-shadow:none!important;color:#243e4f;padding:7px 6px!important;gap:12px;min-height:44px;flex-shrink:0}.lg-shell #workspace-switcher-label{font-size:16px}.lg-shell #workspace-switcher:after{content:'⌄';margin-left:auto;color:#698996}.lg-shell #workspace-switcher-mark{background:none!important;border:0;box-shadow:none}.lg-shell #workspace-switcher-mark img{width:36px;height:36px}
.lg-search{display:flex;gap:8px;align-items:center;min-height:32px;padding:7px 9px;background:#ffffff30;border:1px solid #ffffff65;color:#74909f;text-align:left;font-size:11px}.lg-search svg{width:13px!important;height:13px!important}.lg-search kbd{margin-left:auto;font-size:10px;opacity:.6;font-family:inherit}
.lg-shell .sidebar-section{min-height:0;overflow:auto;gap:4px;padding:9px 0!important;flex:1}.lg-shell .sidebar-section-label{color:#708996!important;letter-spacing:.6px;font-size:10px!important;margin:6px 8px 13px}.lg-shell .sidebar-tool{height:36px;min-height:36px;padding:7px 8px!important;gap:9px!important;border:0!important;background:none!important;color:#496373!important;box-shadow:none!important;min-width:0;flex:1;width:auto}.lg-shell .sidebar-tool strong{font-size:12px!important;font-weight:500!important;line-height:1.4}.lg-shell .sidebar-tool small{display:none}.lg-shell .sidebar-tool-icon{width:19px;height:19px!important;min-width:19px;background:none!important;color:#7895a4!important;border:0!important}.lg-shell .sidebar-tool.active{background:#ffffff60!important;color:#006deb!important}.lg-shell .sidebar-tool.active .sidebar-tool-icon{color:#007aff!important}
.lg-tool-row{display:flex;align-items:center;position:relative;border-radius:10px;min-height:36px;transition:background .18s,opacity .2s,scale .24s}.lg-tool-row:hover{background:#ffffff35}.lg-tool-row.lg-current{background:#ffffff60}.lg-grip{height:28px;width:22px;flex-shrink:0;border:0;background:none;color:#88a7b2;cursor:grab;padding:4px}.lg-grip svg{width:12px!important;height:12px!important}.lg-dragging{opacity:.55;scale:.98}
.lg-shell .sidebar-tool-flyout{margin:0}.lg-shell .sidebar-tool-submenu{display:none!important}.lg-shell .sidebar .account{margin-top:auto;padding:12px 0 0;border-top:1px solid #6d99a125;flex-shrink:0}.lg-shell #account-trigger{border:0;background:none!important;color:#426373;padding:5px}.lg-shell #account-trigger small{color:#79959e}.lg-shell #account-avatar{border-radius:50%;background:linear-gradient(140deg,#d9b5a6,#aa877d);color:white}
.lg-shell .workspace-menu,.lg-shell .account-menu,.lg-shell .model-menu,.lg-shell .conversation-actions-menu{background:rgba(250,253,255,.96)!important;border:1px solid #ffffffc0!important;border-radius:16px!important;box-shadow:0 20px 55px #2a42533b!important;backdrop-filter:blur(35px);color:var(--lg-text)!important;z-index:10000}.lg-shell .workspace-menu button,.lg-shell .workspace-menu strong{color:var(--lg-text)!important}.lg-shell .workspace-menu small{font-size:10px!important;color:var(--muted)!important}.lg-shell .workspace-menu button:hover{background:#007aff13!important}.lg-shell #workspace-menu{top:111px!important;left:12px!important;min-width:255px}.lg-shell .workspace-chat-submenu{background:var(--lg-fill)!important;color:var(--lg-text)!important;border-radius:14px}.lg-shell .workspace-menu-icon{color:#708c9b;background:none!important}
.lg-shell #app-view>.workspace{position:relative!important;display:flex!important;flex-direction:column!important;min-height:0!important;min-width:0!important;overflow:hidden!important;background:var(--lg-fill)!important}
.lg-toolbar{height:58px;min-height:58px;display:flex;align-items:center;gap:10px;padding:0 25px;color:#7e8a98;font-size:11px}.lg-breadcrumb{background:none;border:0;color:#87929e;padding:0;font-size:11px}.lg-chevron{opacity:.5}.lg-toolbar-spacer{flex:1}#lg-page-name{color:#364150;font-weight:600}.lg-toolbar>button:first-child{display:none!important}
.lg-shell #app-view>.workspace>section{position:relative!important;flex:1;min-height:0!important;min-width:0!important;overflow:auto;background:transparent!important;width:100%!important;border:0!important}
.lg-shell #app-view>.workspace>section>header:not(.gc-page-head){padding:20px 25px!important;background:transparent!important;border-color:var(--line)!important;min-height:72px}.lg-shell #app-view h1,.lg-shell #app-view h2{font-size:21px;letter-spacing:-.6px;color:var(--lg-text);font-weight:650}.lg-shell #app-view h3{font-size:13px;color:var(--lg-text);font-weight:600}.lg-shell #app-view .eyebrow{color:#8d9bab;font-size:10px;letter-spacing:.6px}.lg-shell #app-view header p{font-size:11px;color:var(--muted)}
.lg-shell #app-view.lg-sidebar-hidden{grid-template-columns:0 minmax(0,1fr)!important}.lg-shell .lg-sidebar-hidden>.sidebar{opacity:0;translate:-24px 0;pointer-events:none}.lg-shell .lg-sidebar-hidden .lg-toolbar>button:first-child{display:grid!important}
.lg-shell #network-status-bar{top:12px;left:auto;right:auto;transform:none;min-height:22px;padding:3px 10px;border:1px solid #ffffff80;background:#ffffff9c;backdrop-filter:blur(25px);border-radius:20px;color:#4c6a73;font-size:9px;box-shadow:0 3px 8px #344d6411;max-width:550px;z-index:500}
.lg-shell #network-status-bar b,.lg-shell #network-status-bar em{font-size:9px}.lg-shell #network-status-bar .network-status-item{background:transparent}.lg-shell .network-points-balance strong{font-size:12px}
.lg-shell .center-card{position:relative;margin:14vh auto 0;padding:34px 36px;width:410px;background:#f9fcffd9;border:1px solid #ffffffd0;backdrop-filter:blur(34px);border-radius:23px;box-shadow:0 24px 65px #173b5540}.lg-shell .center-card h1{font-size:23px}.lg-shell .center-card label{font-size:12px}.lg-shell .center-card input{padding:11px}.lg-shell .brand-mark{background:transparent url('/preview/desktop-assets/liquid-planet.svg') center/contain no-repeat!important;color:transparent!important;box-shadow:none!important}.lg-shell .center-card .brand-mark{width:52px;height:52px}
.lg-shell .startup-connectivity-overlay{background:#eef5f7bc;backdrop-filter:blur(25px)}.lg-shell .startup-connectivity-card{background:#ffffffb0;border-radius:20px;border:1px solid white;box-shadow:0 20px 70px #2949621f}
.lg-home{display:flex;align-items:center;flex-direction:column;padding:clamp(25px,5vh,65px) 30px 35px;min-height:100%;text-align:center;background:radial-gradient(ellipse at 50% 15%,#dce8f26e,transparent 70%)}.lg-home-orb{width:65px;height:65px;border:1px solid #ffffffde;border-radius:21px;background:linear-gradient(145deg,#ffffffc9,#d5e8ef7a);box-shadow:0 12px 35px #799dba24;display:grid;place-items:center;color:#6f9da8;margin-bottom:20px}.lg-home-orb svg{width:30px;height:30px}.lg-eyebrow{font-size:9px;letter-spacing:3px;color:#91a2b2}.lg-home h1{font-size:31px!important;margin:12px 0 4px!important}.lg-home p{font-size:12px;color:#97a2ad;margin:8px 0 32px}.lg-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(590px,100%)}.lg-home-grid>button{display:flex;align-items:center;text-align:left;gap:15px;min-height:61px;padding:13px 17px;border:1px solid #ffffffc9;background:#ffffff60;color:#455366;border-radius:16px;box-shadow:0 3px 12px #59768d05}.lg-home-grid>button>span{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#e8eff680;color:#7c9bac}.lg-home-grid strong{font-size:12px;font-weight:500}.lg-home-grid>button>svg{margin-left:auto;color:#a8b5bf;width:12px}.lg-home-grid button:hover{background:#ffffffb3;translate:0 -3px;box-shadow:0 12px 24px #7293ad20}
.lg-page-modes,.lg-segment{display:flex;align-items:center;gap:3px;padding:4px;background:#e2e8f080;border:1px solid var(--line);border-radius:10px;width:max-content}.lg-page-modes{margin:0 25px 8px;flex-shrink:0}.lg-page-modes button,.lg-segment button{padding:7px 12px;background:transparent;border:0;color:#7c8796;font-size:11px;border-radius:7px}.lg-page-modes button.active{background:#fff;color:#344456;box-shadow:0 2px 6px #243c5113}
.lg-shell :is(.batch-canvas,.main-aspect-canvas,.tryon-canvas,.resolution-reset-canvas,.order-automation-canvas,.employees-content){padding:18px 24px!important;background:transparent!important;gap:16px}
.lg-shell :is(.batch-upload-card,.batch-result-card,.tryon-card,.main-aspect-upload-card,.main-aspect-result-card,.resolution-reset-card,.order-automation-card,.product-white-sample-panel,.dmp-output-panel){border:1px solid var(--line)!important;border-radius:17px!important;background:var(--lg-panel)!important;box-shadow:0 4px 18px #4b6a8010!important;color:var(--lg-text)}
.lg-shell :is(.batch-quick-panel,.image-quick-panel,.creative-variation-quick-panel){background:var(--lg-fill)!important;border-color:#ffffffb0!important;box-shadow:0 14px 45px #213b5b24!important;border-radius:17px!important;backdrop-filter:blur(24px)}
.lg-shell :is(.quality-speed-switch,.tryon-workflow-tabs,.tryon-type-switch,.resolution-reset-tabs){border-radius:10px!important;border-color:var(--line)!important;background:#dce4ef70!important;padding:3px!important}.lg-shell .quality-speed-switch button{border-radius:8px!important;font-size:11px!important;color:#6a798c!important}.lg-shell .quality-speed-switch button.active,.lg-shell .quality-speed-switch button[aria-checked=true]{background:#ffffffd9!important;color:#007aff!important;box-shadow:0 2px 6px #344b6320!important}.lg-shell [data-lg-tip]{position:relative}.lg-shell [data-lg-tip]:hover:after{content:attr(data-lg-tip);position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);white-space:nowrap;padding:7px 10px;border:1px solid #ffffffc9;border-radius:8px;background:#ffffffed;color:#4b6074;font-size:10px;box-shadow:0 8px 25px #24394f24;z-index:1000;pointer-events:none}
.lg-shell :is(.secondary,.feature-toggle,.selector-trigger){background:#ffffff79!important;color:#526678!important;border-color:var(--line)!important}.lg-shell .feature-toggle.active,.lg-shell .feature-toggle[aria-pressed=true]{background:#007aff12!important;border-color:#007aff44!important;color:#007aff!important}
.lg-shell #chat-workspace{display:flex;flex-direction:column}.lg-shell #chat-workspace>header{display:flex;align-items:center;gap:20px;padding-top:8px!important}.lg-shell #chat-workspace>header h2{font-size:15px!important}.lg-chat-select{width:auto;max-width:165px;padding:7px 10px;border:1px solid var(--line);font-size:12px}.lg-return{display:flex;align-items:center;gap:8px;border:0;background:transparent;color:#668097;font-size:12px}.lg-shell .chat-panel{min-height:0;flex:1;background:transparent}.lg-shell #messages{max-width:860px;margin:auto;padding:18px 25px}.lg-shell .message{border-radius:17px!important}.lg-shell .message.user{background:#e3edf882!important;border-color:#d1e1ef!important}.lg-shell .message.assistant{background:#ffffff94!important;border-color:var(--line)!important}.lg-shell .composer{margin:14px 25px 20px!important;border-radius:19px!important;background:#ffffffbf!important;border:1px solid #ffffff!important;box-shadow:0 8px 30px #425b7317!important;width:auto!important}.lg-shell .message-input{font-size:13px;line-height:1.75;color:var(--lg-text)}.lg-shell #send-button{background:#007aff;color:white;border-radius:11px;font-size:12px}.lg-shell .points-pool{border-radius:22px;border-color:#82bea052;box-shadow:0 6px 15px #557c7e0e}.lg-shell .chat-sidebar .sidebar-section-label{display:none}.lg-shell #new-chat{background:#ffffff65!important;border:1px solid #ffffff98;color:#406575;border-radius:11px;font-size:12px}.lg-shell .conversation{color:#567581;border-radius:10px}.lg-shell .conversation.active{background:#ffffff7f}.lg-shell #empty-state{color:#68808f}.lg-shell #empty-state h2{font-size:24px}.lg-shell #empty-state p{font-size:11px;color:#91a2ad}
.lg-shell :is(.logo-processing-header,.logo-remove-shell,.logo-add-intro,.logo-add-editor,.creative-variation-stage,.creative-main-stage){background:transparent!important}.lg-shell .logo-remove-shell{padding:18px 24px}.lg-shell :is(.logo-remove-upload,.logo-remove-result,.logo-picker-panel){border-radius:16px!important;border-color:var(--line)!important;background:var(--lg-panel)!important}.lg-shell :is(.logo-remove-editor,.logo-add-editor){border-color:var(--line)!important;border-radius:18px!important}.lg-shell :is(.creative-variation-composer,.creative-main-composer){margin:12px 24px 20px!important;border:1px solid #ffffffd0!important;border-radius:18px!important;background:#ffffffa3!important;box-shadow:0 8px 25px #547b8e16!important}
.lg-shell :is(.video-splice-header,.video-storyboard-header,.video-workspace-header){background:transparent!important}.lg-shell :is(.video-splice-editor,.video-splice-media-panel,.video-splice-preview-panel,.video-splice-timeline-panel){background:var(--lg-panel)!important;border-color:var(--line)!important;border-radius:15px!important}.lg-shell .video-splice-editor{padding:12px!important;gap:12px!important}.lg-shell :is(.video-splice-timeline,.video-splice-media-tabs,.video-splice-auto-panel){background:#edf3f88f!important;border-color:var(--line)!important}.lg-shell :is(.minimax-card,.motion-card,.minimax-workspace .card){background:var(--lg-panel)!important;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:0 4px 15px #546c7e0c}.lg-shell :is(.minimax-workspace,.motion-workspace){color:var(--lg-text)}.lg-shell .flow-viewport{background-color:#f0f5f9!important;background-image:radial-gradient(#aab9c84d 1px,transparent 1px)!important;background-size:22px 22px}.lg-shell .flow-node{border-radius:17px!important;border-color:#cdd9e6!important;box-shadow:0 8px 22px #25436816!important;background:#fffffff0!important}.lg-shell .flow-node header{background:#f1f6fbd9!important;border-radius:16px 16px 0 0;color:#49647b}.lg-shell .flow-toolbar{background:#ffffffb0!important;backdrop-filter:blur(25px);border-radius:16px!important;border-color:white!important;box-shadow:0 6px 25px #335a7320!important}
.lg-shell :is(.dmp-control-panel,.dmp-operation-grid,.employees-content,.employee-create,.employee-table-wrap){background:var(--lg-panel)!important;border-color:var(--line)!important;border-radius:15px!important}.lg-shell table{color:var(--lg-text);font-size:12px}.lg-shell th{background:#ecf3fa91!important;color:#7a8d9f!important;font-weight:500}.lg-shell td{border-color:var(--line)!important}.lg-shell tr:hover td{background:#007aff05}.lg-shell :is(.modal-card,.modal-content,.memory-dialog,.memory-card,.account-stats-card){background:#f8fbffed!important;border-color:white!important;border-radius:22px!important;box-shadow:0 25px 70px #1c385644!important;backdrop-filter:blur(30px)}
.lg-shell #garment-customization-workspace{display:flex;flex-direction:column;padding:0!important;overflow:hidden!important;--gc-green:#007aff}.lg-shell .gc-page-head{display:flex;align-items:center;justify-content:space-between;padding:14px 25px 19px!important;flex-shrink:0}.lg-shell .gc-page-head h1{margin:0!important;font-size:21px!important}.lg-shell .gc-page-head p,.lg-shell .gc-page-head .eyebrow,.lg-shell .gc-head-tag,.lg-shell .gc-editor-top,.lg-shell .gc-editor-hint,.lg-shell .gc-stage-label{display:none!important}
.lg-shell .gc-design-tabs{padding:0 25px 13px!important;min-height:39px;background:none;border:0;flex-shrink:0}.lg-shell .gc-design-tab{border-radius:10px;background:#ffffff80;border:1px solid var(--line);box-shadow:0 2px 6px #364d6508}.lg-shell .gc-design-tab button{border:0;background:transparent;color:#657688;font-size:11px}.lg-shell .gc-design-tab.active{background:white;border-color:#c9dbea}
.lg-shell .gc-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 250px!important;min-height:0!important;flex:1;gap:0!important;overflow:hidden;border-top:1px solid var(--line)}.lg-shell .gc-editor{position:relative!important;border:0!important;border-radius:0!important;padding:0!important;background:transparent!important;min-height:0!important;overflow:hidden!important}.lg-shell .gc-stage{position:absolute!important;inset:0!important;border:0!important;border-radius:0!important;background:radial-gradient(ellipse at 50% 40%,#f4f8fa,#dfebf2)!important;min-height:0!important;margin:0!important;overflow:hidden!important}.lg-shell .gc-viewport{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;cursor:grab}.lg-shell .gc-viewport canvas{box-shadow:none!important;background:transparent!important;transition:transform .085s ease-out}.lg-shell .gc-viewport.panning canvas{transition:none}
.lg-gc-inspector{min-height:0;overflow:hidden;border-left:1px solid var(--line);position:relative;background:#f7faffb3;display:flex;flex-direction:column}.lg-gc-settings{padding:22px 18px;display:flex;flex-direction:column;gap:18px;height:100%;min-height:0;overflow:auto}.lg-gc-settings h3{margin:0 0 8px}.lg-gc-settings h4{font-size:10px;font-weight:500;color:#8795a6;margin:0}.lg-shell .lg-gc-inspector .gc-swatches{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0!important}.lg-shell .lg-gc-inspector .gc-swatches button{width:auto!important;height:98px!important;border-radius:13px!important;border:1px solid var(--line)!important;background:#ffffff82!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px 3px!important}.lg-shell .lg-gc-inspector .gc-swatches button.active{background:#007aff15!important;border-color:#007aff65!important}.lg-shell .gc-swatches button:before,.lg-shell .gc-swatches button:after{display:none!important}.lg-shell .gc-swatches button img{width:36px;height:57px;object-fit:cover;object-position:left}.lg-shell .gc-swatches button span{font-size:9px;color:#8191a0}.lg-shell .gc-swatches button.active span{color:#007aff}
.lg-shell .gc-submit{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:20px!important;padding:0!important;border:0!important;margin:8px 0 0!important;background:transparent!important;flex:1}.lg-shell .gc-submit>div{display:flex;flex-direction:column;align-items:stretch;gap:10px}.lg-shell .gc-submit>div:last-child{margin-top:auto}.lg-shell .gc-submit>div>span{font-size:10px;color:#8b9aab}.lg-shell .gc-submit small{font-size:10px;color:#8c99a9;line-height:1.7}.lg-shell .gc-channels{width:100%}.lg-shell .gc-channels button{flex:1;font-size:10px!important;padding:8px 4px}.lg-shell .gc-primary{background:#007aff!important;border:0!important;color:#fff!important;border-radius:11px!important;box-shadow:0 3px 8px #007aff20!important}.lg-shell .gc-submit [data-action=generate]{height:38px;font-size:12px!important}
.lg-shell .gc-drawer,.lg-shell .gc-layers{position:static!important;inset:auto!important;width:auto!important;min-width:0;max-width:none!important;max-height:none!important;flex:1;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;animation:none!important;color:var(--lg-text);overflow:auto}.lg-shell .gc-drawer>header,.lg-shell .gc-layers>header{position:sticky;top:0;background:#f7faffed;padding:22px 18px!important;border-color:var(--line);z-index:3}.lg-shell .gc-drawer-body{padding:16px 18px!important}.lg-shell .gc-drawer-body textarea{font-size:12px;padding:10px;border-radius:11px}.lg-shell .gc-drawer-body button{font-size:10px}.lg-shell .gc-fonts button{border-radius:12px!important;border-color:var(--line)!important;background:#ffffff73!important}.lg-shell .gc-fonts button.active{border-color:#007aff55!important;background:#007aff10!important;color:#007aff!important}.lg-gc-inspector:has(.gc-drawer:not([hidden])) .lg-gc-settings,.lg-gc-inspector:has(.gc-layers:not([hidden])) .lg-gc-settings{display:none}
.lg-shell .gc-history,.lg-shell .gc-tools,.lg-shell .gc-bottom-tools,.lg-shell .gc-view-tools,.lg-gc-side{position:absolute!important;border:1px solid #ffffffde!important;background:#f9fdffad!important;box-shadow:0 8px 24px #5c7b931c!important;backdrop-filter:blur(24px) saturate(1.3);border-radius:19px!important;color:#7f90a2!important;margin:0!important;z-index:5;min-height:0!important;inset:auto}.lg-shell .gc-history{top:18px!important;left:18px!important;padding:5px;display:flex}.lg-shell .gc-history button{width:26px;height:24px;padding:4px;background:none;border:0;color:#7e91a4}.lg-shell .gc-tools{top:50%!important;left:17px!important;transform:translateY(-50%);padding:7px 4px;width:44px}.lg-shell .gc-tools button{background:none!important;color:#8295a5;border:0!important;padding:8px 4px;font-size:8px;width:34px;display:flex;flex-direction:column;align-items:center;gap:3px}.lg-shell .gc-tools svg{width:16px!important;height:16px!important}.lg-gc-side{right:18px;top:50%;transform:translateY(-50%);padding:6px}.lg-gc-side button{display:flex;flex-direction:column;align-items:center;background:none;border:0;color:#007aff;padding:6px;gap:4px;font-size:10px;min-width:34px}
.lg-shell .gc-bottom-tools{left:18px!important;bottom:20px!important;padding:6px!important;display:flex!important;gap:3px!important}.lg-shell .gc-bottom-tools button{display:flex;align-items:center;gap:6px;padding:7px 8px;background:none!important;color:#556b80!important;border:0!important;font-size:10px;box-shadow:none!important}.lg-shell .gc-bottom-tools [data-action=upload],.lg-shell .gc-bottom-tools [data-action=templates]{font-size:0;padding:7px}.lg-shell .gc-bottom-tools svg{width:14px!important;height:14px!important}.lg-shell .gc-view-tools{right:18px!important;bottom:20px!important;padding:9px 11px!important;display:flex;gap:8px;left:auto!important}.lg-shell .gc-view-tools input{width:64px!important}.lg-shell .gc-view-tools output{font-size:9px;min-width:30px}.lg-shell .gc-view-tools button{font-size:10px!important;background:none;border:0;color:#7b91a3;padding:4px}.lg-shell .gc-feedback{position:absolute;bottom:75px;left:20%;right:20%;font-size:10px;background:#ffffffb0;border-radius:9px;padding:6px 10px;pointer-events:none;color:#7d92a2;text-align:center}.lg-shell .gc-feedback.error{color:#b42318;background:#fff3ed;pointer-events:auto}
.lg-shell .gc-results{display:none!important}.lg-shell .lg-gc-result .gc-layout{display:block!important;overflow:auto}.lg-shell .lg-gc-result .gc-editor,.lg-shell .lg-gc-result .lg-gc-inspector{display:none!important}.lg-shell .lg-gc-result .gc-results{display:flex!important;flex-direction:column;min-height:100%;border:0;border-radius:0;background:transparent;padding:20px 25px}.lg-shell .gc-results>header{font-size:11px;color:#91a1af;border-color:var(--line)}.lg-shell .gc-results img{max-height:62vh;width:100%;object-fit:contain}.lg-shell #garment-customization-workspace:not(.lg-gc-result) [data-lg=gc-edit],.lg-shell .lg-gc-result [data-lg=gc-result]{background:#ffffffdc;color:#354b62;box-shadow:0 2px 6px #2e485318}.lg-shell .gc-lightbox,.lg-shell .gc-close-tab{background:#fbfdff;border:1px solid white;border-radius:20px;color:#41556b}.lg-shell .gc-context-menu{background:#ffffffed;border-color:white;border-radius:12px;color:#4f6074}
.lg-search-dialog{position:fixed;top:16vh;width:520px;max-width:85vw;max-height:68vh;padding:10px;border:1px solid #ffffffd0;border-radius:20px;background:#f6faffe8;backdrop-filter:blur(32px);color:#4b6074;box-shadow:0 30px 95px #16344b4d}.lg-search-dialog::backdrop{background:#10253732;backdrop-filter:blur(5px)}.lg-search-heading{display:flex;align-items:center;gap:10px;padding:8px 9px;border-bottom:1px solid var(--line)}.lg-search-heading input{border:0!important;background:none!important;box-shadow:none!important}.lg-search-heading button{border:0;background:transparent;color:#94a0ac;width:30px;padding:5px}.lg-search-results{overflow:auto;max-height:48vh;padding:8px 0}.lg-search-results button{width:100%;display:flex;align-items:center;gap:12px;padding:12px;background:none;border:0;color:#597185;text-align:left}.lg-search-results button>svg:last-child{margin-left:auto;width:13px;color:#9cafbd}.lg-search-results button:hover{background:#007aff10}
.lg-shell.lg-dark{--lg-text:#e2eaf3;--lg-panel:rgba(39,51,68,.86);--lg-fill:rgba(27,38,53,.95);--line:#9fb3cc26;--muted:#92a4b9;color-scheme:dark}.lg-shell.lg-dark body{background:radial-gradient(ellipse at 18% 70%,#27526b,transparent 66%),radial-gradient(ellipse at 90% 15%,#5e4560,transparent 60%),#172838}.lg-shell.lg-dark #app-view{border-color:#a3bbd047}.lg-shell.lg-dark #app-view>.sidebar{background:linear-gradient(150deg,#3553679c,#25536388)!important;border-right-color:#a3b9d21f!important}.lg-shell.lg-dark .sidebar-tool,.lg-shell.lg-dark #workspace-switcher,.lg-shell.lg-dark #account-trigger{color:#c1d4e1!important}.lg-shell.lg-dark #lg-page-name{color:#c9d5e4}.lg-shell.lg-dark .lg-home-grid button{background:#7893b21a;border-color:#afc6e21f;color:#d0dce9}.lg-shell.lg-dark .lg-home-orb{background:#7290b228;border-color:#a4c3e357}.lg-shell.lg-dark .gc-stage{background:radial-gradient(ellipse at 45% 40%,#3c5065,#283b4e)!important}.lg-shell.lg-dark .lg-gc-inspector,.lg-shell.lg-dark .gc-drawer>header,.lg-shell.lg-dark .gc-layers>header{background:#263549ee!important}.lg-shell.lg-dark .lg-gc-inspector .gc-swatches button{background:#96b1d015!important}.lg-shell.lg-dark .gc-fonts button{background:#8ba7cb17!important;color:#ccd9e6}.lg-shell.lg-dark .gc-history,.lg-shell.lg-dark .gc-tools,.lg-shell.lg-dark .gc-bottom-tools,.lg-shell.lg-dark .gc-view-tools,.lg-shell.lg-dark .lg-gc-side{background:#2e435cc9!important;border-color:#c0d8f32b!important}.lg-shell.lg-dark .composer{background:#2a3b50ed!important;border-color:#6b89a742!important}.lg-shell.lg-dark .flow-viewport{background-color:#213549!important}.lg-shell.lg-dark .flow-node{background:#2c4157!important;color:#d4dfeb}.lg-shell.lg-dark .workspace-menu,.lg-shell.lg-dark .account-menu,.lg-shell.lg-dark .model-menu{background:#26394fee!important}.lg-shell.lg-dark .center-card{background:#26394fed;border-color:#b9d3ee36;color:#dce8f4}
@media(max-width:1180px){.lg-shell #app-view{inset:48px 16px 18px!important;grid-template-columns:194px minmax(0,1fr)!important}.lg-shell #app-view>.sidebar{width:194px!important}.lg-shell .gc-layout{grid-template-columns:minmax(0,1fr) 228px!important}.lg-shell .gc-bottom-tools{left:12px!important;bottom:16px!important;gap:1px!important;padding:4px!important}.lg-shell .gc-bottom-tools button{padding:7px 5px;font-size:9px}.lg-shell .gc-view-tools{right:12px!important;bottom:16px!important;gap:5px!important;padding:9px 8px!important}.lg-shell .gc-view-tools input{width:45px!important}.lg-toolbar{padding:0 20px}.lg-shell #network-status-bar{max-width:470px;right:135px}.lg-shell #network-status-bar em{display:none}}
@media(max-height:780px){.lg-shell #app-view{top:42px!important;bottom:12px!important}.lg-toolbar{height:45px;min-height:45px}.lg-window-tools{height:45px}.lg-shell #workspace-menu{top:96px!important}.lg-shell .gc-page-head{padding:10px 22px 13px!important}.lg-home{padding-top:25px}.lg-home-orb{height:50px;width:50px;margin-bottom:10px}.lg-home p{margin-bottom:20px}.lg-home-grid>button{min-height:48px;padding:8px 14px}}
@media(prefers-reduced-motion:reduce){.lg-shell *{animation-duration:.001ms!important;transition-duration:.001ms!important}}
.lg-shell #app-view>.workspace,.lg-shell #app-view>.sidebar{height:100%!important;max-height:100%!important}.lg-shell .lg-home{width:100%;max-width:none}.lg-shell #image-home,.lg-shell #video-home{display:block}.lg-shell .lg-current .lg-grip{opacity:.55}

/* Contain the production editor inside its new viewport, including smaller laptop screens. */
html.lg-shell #garment-customization-workspace{gap:0!important}
html.lg-shell #garment-customization-workspace .gc-stage{height:100%!important;max-height:100%!important;transform:none!important}
html.lg-shell #garment-customization-workspace .gc-design-tabs{margin:0!important;padding:0 22px 12px!important;gap:6px;align-items:center}
html.lg-shell #garment-customization-workspace .gc-design-tabs [role=tablist]{flex:0 1 auto;padding:0;gap:7px}
html.lg-shell #garment-customization-workspace .gc-design-tab{height:30px;width:130px;border-radius:10px;background:#ffffff80;border:1px solid var(--line)}
html.lg-shell #garment-customization-workspace .gc-design-tab:before,html.lg-shell #garment-customization-workspace .gc-design-tab:after{display:none}
html.lg-shell #garment-customization-workspace .gc-design-tab button{color:#667788;padding:6px 9px;font-size:10px}
html.lg-shell #garment-customization-workspace [data-action=new-tab]{margin:0;font-size:18px;color:#7892a4}
html.lg-shell #garment-customization-workspace .gc-bottom-tools button{flex-direction:row!important;font-size:10px!important;gap:5px!important;padding:6px!important}
html.lg-shell #garment-customization-workspace .gc-bottom-tools button>span{font-size:10px;line-height:16px;display:flex}
html.lg-shell #garment-customization-workspace .gc-bottom-tools [data-action=upload],html.lg-shell #garment-customization-workspace .gc-bottom-tools [data-action=templates]{font-size:0!important}
html.lg-shell #garment-customization-workspace .gc-feedback:not(.error){display:none!important}
html.lg-shell #garment-customization-workspace .gc-swatches button{flex-shrink:0;outline:0!important;box-shadow:none!important}
html.lg-shell #garment-customization-workspace .gc-swatches button.active{border-color:#007aff88!important}
html.lg-shell #garment-customization-workspace .gc-swatches img{object-fit:cover!important;object-position:left!important;height:54px!important;width:27px!important;max-width:none!important}
html.lg-shell #garment-customization-workspace .gc-swatches button span{font-size:9px;color:#61778a}
html.lg-shell #garment-customization-workspace .gc-submit{padding:18px 0 0!important;margin-top:auto!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;display:flex;flex-direction:column;align-items:stretch;background:none!important;gap:14px}
html.lg-shell #garment-customization-workspace .gc-submit>div:first-child{display:flex;flex-direction:column;align-items:stretch;gap:9px}
html.lg-shell #garment-customization-workspace .gc-submit-actions{display:flex;flex-direction:column}
html.lg-shell #garment-customization-workspace .gc-primary{background:#007aff!important;border:0!important;color:white!important;box-shadow:0 4px 9px #007aff20;padding:10px 12px!important;font-size:12px!important}
html.lg-shell #garment-customization-workspace .gc-channel-hint{color:#92a1ad}
html.lg-shell #account-name{color:#466071!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:135px;display:block}
html.lg-shell #account-avatar{flex-shrink:0}
html.lg-shell .lg-segment{border:0;padding:4px;border-radius:11px;background:#74859b0a;display:flex;gap:2px}
html.lg-shell .lg-segment button{border:0;background:transparent;padding:7px 12px;font-size:11px;color:#7e8fa2}
html.lg-shell .lg-result-cancel{padding:8px 15px;border:1px solid #e68d7a;background:#fff2ed;color:#ac4730}

html.lg-shell #garment-customization-workspace .lg-gc-settings{padding:18px;gap:12px}
html.lg-shell #garment-customization-workspace .lg-gc-settings h3{margin:0}
html.lg-shell #garment-customization-workspace .gc-swatches button{height:80px!important;gap:3px!important}
html.lg-shell #garment-customization-workspace .gc-view-tools input{accent-color:#007aff}
html.lg-shell #garment-customization-workspace .gc-bottom-tools [data-action=save]{background:transparent!important;color:#536c82!important;box-shadow:none!important}
html.lg-shell #garment-customization-workspace .gc-tools button{color:#8193a4!important}
html.lg-shell :is(.main-aspect-canvas,.resolution-canvas,.fashion-tryon-canvas){padding:18px 24px!important;gap:16px!important}
html.lg-shell .main-aspect-upload-grid{min-height:150px!important;max-height:260px;overflow:auto}
html.lg-shell .main-aspect-output-grid{min-height:300px!important}
html.lg-shell .main-aspect-output-card{min-height:350px!important}
html.lg-shell .main-aspect-input-card{gap:10px!important}
html.lg-shell .main-aspect-card{padding:18px!important}
html.lg-shell .main-aspect-header .eyebrow{display:none}
html.lg-shell .main-aspect-header h2{display:block!important}
html.lg-shell .main-aspect-action-row{position:sticky;bottom:0;border-radius:13px;background:#f8fbffeb;backdrop-filter:blur(22px);padding:12px!important;z-index:4}

html.lg-shell #workspace-menu{position:fixed!important;top:150px!important;left:42px!important;right:auto!important;width:255px;z-index:10000!important;max-height:calc(100vh - 185px);overflow:visible}
html.lg-shell #workspace-menu-backdrop{background:#20364d22;backdrop-filter:blur(3px)}
html.lg-shell #workspace-menu .workspace-menu-item{min-height:45px;padding:10px;gap:10px}
html.lg-shell #workspace-menu .workspace-menu-item strong{font-size:12px;font-weight:500}
html.lg-shell #workspace-menu .workspace-menu-item small{display:none}
html.lg-shell #workspace-menu .workspace-chat-submenu{width:240px}
html.lg-shell #app-view>.workspace>section>header .eyebrow,html.lg-shell #app-view>.workspace>section>header .brand-kicker{display:none!important}
html.lg-shell #app-view>.workspace>section>header h2{display:block!important;margin:0!important}
html.lg-shell #app-view>.workspace>section>header{padding:18px 24px!important}
html.lg-shell .lg-page-modes{margin:12px 24px 0!important}
html.lg-shell .logo-remove-upload{min-height:230px!important}
html.lg-shell .logo-processing-workspace{padding:0!important}
html.lg-shell .logo-processing-channel button.active{background:#007aff!important;color:white!important}
@media(max-width:1180px){html.lg-shell #workspace-menu{left:28px!important}}
@media(max-height:780px){html.lg-shell #workspace-menu{top:138px!important}}

html.lg-shell #video-workspace:not(.hidden){display:grid!important;grid-template-columns:minmax(0,1fr) 280px;grid-template-rows:auto minmax(0,1fr);gap:0!important}
html.lg-shell #video-workspace>header{grid-column:1/-1;padding-bottom:15px!important}
html.lg-shell #video-output-stage{min-height:0!important;overflow:auto;padding:18px}
html.lg-shell #video-workspace>#video-seedance-sidebar{border-left:1px solid var(--line);background:#ffffff45;padding:16px!important;overflow:auto;min-height:0;width:auto!important;display:flex;flex-direction:column;gap:14px!important}
html.lg-shell #app-view:has(#video-workspace:not(.hidden)) #video-sidebar{display:flex!important}
html.lg-shell #video-seedance-sidebar :is(strong,label,button){color:#526c80!important}
html.lg-shell #video-seedance-sidebar .video-sidebar-card{padding:0 0 14px!important;border:0!important;border-bottom:1px solid var(--line)!important;background:transparent!important}
html.lg-shell #video-seedance-sidebar .video-sidebar-card button{background:#ffffff87;border:1px solid #8ca4b333}
html.lg-shell #video-seedance-sidebar .video-sidebar-card :is(small,span){color:#8a9daa!important}
html.lg-shell #video-seedance-sidebar #video-generate{background:#007aff!important;color:white!important;border:0!important;padding:12px!important}
html.lg-shell #video-seedance-sidebar .sidebar-section-label{display:none}
html.lg-shell .sidebar :is(strong,label){color:#526c80!important}
html.lg-shell .sidebar input,html.lg-shell .sidebar select{color:#526c80;background:#ffffff8a;border-color:#b0c7d580}

html.lg-shell .main-aspect-canvas{grid-template-columns:minmax(330px,.9fr) minmax(0,1.1fr)!important;grid-template-rows:auto auto!important}

html.lg-shell .canvas-sidebar-guide,html.lg-shell .canvas-sidebar-guide strong{color:#6b8797!important}
html.lg-shell .flow-empty-hint,html.lg-shell .flow-empty-hint strong{color:#8a9faa!important}
html.lg-shell .flow-toolbar :is(button,span),html.lg-shell .flow-node-content,html.lg-shell .flow-port-label{color:#627b8e!important}
html.lg-shell .flow-toolbar{min-height:0!important;padding:10px 14px!important}
html.lg-shell .flow-node-body{color:#496579!important}
html.lg-shell .flow-node-icon{background:#007aff13!important;color:#007aff!important}
html.lg-shell #flow-run-all{background:#007aff!important;border:0!important;color:white!important;box-shadow:0 4px 14px #007aff20!important}
html.lg-shell #flow-export-workflow{background:#ffffffb3!important;border:1px solid var(--line)!important;color:#5d788c!important}
html.lg-shell .flow-node-search{background:#f7fbfff5!important;border:1px solid white!important;border-radius:17px!important;color:#597086!important}
html.lg-shell .flow-node-result{color:#597086!important}
html.lg-shell #chat-workspace>header{justify-content:flex-start!important}
html.lg-shell #chat-workspace>header h2{font-size:12px!important}
html.lg-shell #chat-workspace>header .eyebrow{display:none!important}
html.lg-shell .memory-entry strong{color:#526c80!important}
html.lg-shell .sidebar-section{overflow-x:hidden!important}

/* Canvas workflow menus open from the sidebar into the canvas area.  Keep the
   canvas section's short tool list from creating a clipping boundary, and
   paint the sidebar above the adjacent workspace while that menu is open. */
html.lg-shell #app-view>.sidebar{position:relative;z-index:100}
html.lg-shell #canvas-sidebar{position:relative;z-index:101;overflow:visible!important}

html.lg-shell #app-view:has(#video-workspace:not(.hidden)) #video-sidebar{flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important}
html.lg-shell .lg-tool-row{flex-shrink:0}
/* Direct video navigation buttons must not consume the remaining column height. */
html.lg-shell #video-sidebar>.sidebar-tool{flex:0 0 36px;width:100%}

/* The Liquid Glass surface is the native app window, without a simulated desktop. */
html.lg-shell,html.lg-shell body{min-width:0;min-height:0;width:100%;height:100%;margin:0;background:#f1f7fa}
html.lg-shell body:before{display:none}
html.lg-shell.lg-dark,html.lg-shell.lg-dark body{background:#263549}
html.lg-shell #app-view{inset:0!important;width:100%!important;height:100%!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html.lg-shell .lg-window-tools{justify-content:flex-end}
html.lg-shell .lg-native-chrome>.lg-traffic{position:fixed;left:20px;top:19px;padding:0;z-index:20010;gap:10px;app-region:no-drag;-webkit-app-region:no-drag}
html.lg-shell .lg-toolbar,html.lg-shell .lg-window-tools,html.lg-shell .lg-auth-dragbar{app-region:drag;-webkit-app-region:drag;user-select:none}
html.lg-shell .lg-toolbar :is(button,input,select,a),html.lg-shell .lg-window-tools button,html.lg-shell #network-status-bar{app-region:no-drag;-webkit-app-region:no-drag}
html.lg-shell .lg-auth-dragbar{position:fixed;inset:0 0 auto;height:58px;z-index:800;display:none}
html.lg-shell body:has(#app-view.hidden) .lg-auth-dragbar{display:block}
html.lg-shell #app-view.lg-sidebar-hidden .lg-toolbar{padding-left:100px}
html.lg-shell #network-status-bar{top:12px;right:100px;left:auto;max-width:min(520px,calc(100vw - 440px))}
html.lg-shell #workspace-menu{top:104px!important;left:12px!important;max-height:calc(100vh - 122px)}
html.lg-shell .center-card{box-shadow:none;background:transparent;border:0;backdrop-filter:none;margin-top:clamp(65px,12vh,150px)}
html.lg-shell .lg-resize-edge{position:fixed;z-index:20020;app-region:no-drag;-webkit-app-region:no-drag;touch-action:none}
html.lg-shell .lg-resize-n,html.lg-shell .lg-resize-s{left:10px;right:10px;height:5px;cursor:ns-resize}
html.lg-shell .lg-resize-n{top:0}html.lg-shell .lg-resize-s{bottom:0}
html.lg-shell .lg-resize-e,html.lg-shell .lg-resize-w{top:10px;bottom:10px;width:5px;cursor:ew-resize}
html.lg-shell .lg-resize-e{right:0}html.lg-shell .lg-resize-w{left:0}
html.lg-shell .lg-resize-nw,html.lg-shell .lg-resize-ne,html.lg-shell .lg-resize-sw,html.lg-shell .lg-resize-se{width:10px;height:10px}
html.lg-shell .lg-resize-nw{left:0;top:0;cursor:nwse-resize}html.lg-shell .lg-resize-ne{right:0;top:0;cursor:nesw-resize}
html.lg-shell .lg-resize-sw{left:0;bottom:0;cursor:nesw-resize}html.lg-shell .lg-resize-se{right:0;bottom:0;cursor:nwse-resize}
html.lg-shell.lg-window-maximized .lg-resize-edge{display:none}
@media(max-height:780px){html.lg-shell .lg-native-chrome>.lg-traffic{top:13px}html.lg-shell .lg-auth-dragbar{height:45px}html.lg-shell #workspace-menu{top:91px!important}}

html.lg-shell #network-status-bar{right:auto!important;max-width:none}
@media(max-width:1440px){html.lg-shell #network-status-bar em{display:none}}
@media(max-width:1180px){html.lg-shell body:has(#network-status-bar:not(.is-collapsed)) #lg-page-name,html.lg-shell body:has(#network-status-bar:not(.is-collapsed)) .lg-chevron{display:none}}


/* Current workspaces added after the visual test baseline. */
html.lg-shell .free-browser-workspace:not(.hidden){display:flex!important;flex-direction:column;overflow:hidden!important}
html.lg-shell .free-browser-toolbar{gap:8px;padding:10px 24px 14px;background:transparent;border-color:var(--line);flex-shrink:0}
html.lg-shell .free-browser-toolbar button{min-width:34px;min-height:34px;padding:6px 11px;border-radius:10px}
html.lg-shell #free-browser-address{min-width:100px;border:1px solid var(--line);background:var(--lg-panel);box-shadow:0 2px 10px #27446409}
html.lg-shell #free-browser-host-slot{min-height:0;flex:1;border-top:1px solid var(--line)}
html.lg-shell .free-browser-page-title{background:#007aff0a;color:#74859a;font-size:10px}
html.lg-shell .chatgpt-host-slot{background:var(--lg-fill)}
html.lg-shell .chatgpt-host-placeholder{color:var(--muted)}
html.lg-shell .chatgpt-host-placeholder strong{color:var(--lg-text)}
html.lg-shell :is(.chatgpt-official-side-card,.chatgpt-official-diagnostics){background:#ffffff42;border:1px solid #ffffff60;border-radius:14px;color:#567181;box-shadow:none}
html.lg-shell :is(.chatgpt-official-side-card p,.chatgpt-official-diagnostics span,.chatgpt-official-diagnostics p){color:#698594}
html.lg-shell.lg-dark :is(.chatgpt-official-side-card,.chatgpt-official-diagnostics){background:#8eb9d012;border-color:#a9cce326;color:#c0d6e5}
html.lg-shell.lg-dark :is(.chatgpt-official-side-card p,.chatgpt-official-diagnostics span,.chatgpt-official-diagnostics p){color:#b0c7d9}
html.lg-shell :is([id^="work-mode-"],.work-mode-panel,.work-mode-card){color:var(--lg-text)}
html.lg-shell :is(.work-mode-panel,.work-mode-card){border:1px solid var(--line);border-radius:16px;background:var(--lg-panel);box-shadow:0 6px 24px #2643660d}
html.lg-shell [id^="work-mode-"] :is(button,input,textarea,select){font-family:inherit}
html.lg-shell:not(.lg-native-host) .lg-native-chrome{display:none}
html.lg-shell:not(.lg-native-host) #app-view.lg-sidebar-hidden .lg-toolbar{padding-left:20px}
html.lg-shell .lg-native-chrome button{display:grid;place-items:center;line-height:0;box-shadow:none!important;translate:none!important}
html.lg-shell .lg-native-chrome button svg{display:block;place-self:center}
html.lg-shell .lg-search-results button:focus-visible{outline-offset:-3px}
html.lg-shell #garment-customization-workspace .gc-text-tabs{display:flex;gap:4px;flex-wrap:nowrap}
html.lg-shell #garment-customization-workspace .gc-text-tabs button{flex:1;min-width:0;white-space:nowrap;padding:7px 5px;font-size:10px;color:#6d8296}
html.lg-shell #garment-customization-workspace .gc-text-tabs button.active{color:#007aff;background:#007aff10;border-color:#007aff40}
html.lg-shell #garment-customization-workspace .gc-fonts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html.lg-shell #garment-customization-workspace .gc-fonts button{min-width:0;min-height:76px;padding:10px 6px;font-size:16px;white-space:nowrap}
html.lg-shell #garment-customization-workspace .gc-fonts button small{font-size:10px;line-height:1.5;margin-top:6px}
html.lg-shell #workspace-menu{max-height:calc(100dvh - 122px)}
html.lg-shell.lg-dark :is(.free-browser-toolbar,.free-browser-page-title){background:transparent;color:var(--muted)}
html.lg-shell.lg-dark :is(.lg-breadcrumb,.lg-toolbar>button){color:#b6c7d8}
@media(max-height:780px){html.lg-shell #workspace-menu{max-height:calc(100dvh - 106px)}}
@media(max-width:1050px){html.lg-shell .free-browser-toolbar{gap:5px;padding:8px 14px}html.lg-shell .free-browser-toolbar button{padding:6px 8px}}

/* Keep the floating controls interactive over native title-bar drag regions. */
html.lg-shell #network-status-bar{z-index:12050}
html.lg-shell #network-status-bar.is-dragging{z-index:12060}
html.lg-shell #network-status-bar,html.lg-shell #network-status-bar *{app-region:no-drag;-webkit-app-region:no-drag}
html.lg-shell #network-status-drag-handle{touch-action:none;translate:none}

/* Shell mode tabs are siblings of the page, not extra rows in its business grid. */
html.lg-shell .workspace>.lg-page-modes{max-width:calc(100% - 48px);flex-wrap:wrap;margin-bottom:0!important}
html.lg-shell .tryon-header{flex-wrap:wrap;gap:12px 20px}
html.lg-shell .tryon-heading-block{flex:1 1 450px}
html.lg-shell .tryon-channel-clarity-row{flex-wrap:wrap;gap:12px 18px}
html.lg-shell .tryon-header-actions{flex-shrink:0}
/* A card's minimum height must contribute to its row; otherwise the action row
   paints across the upload/size controls on short and stacked laptop layouts. */
html.lg-shell .resolution-reset-canvas{grid-template-rows:minmax(min-content,1fr) auto}

/* Account menu and sidebar use theme colors; translucency never fades text. */
html.lg-shell #app-view>.sidebar{background:transparent!important;backdrop-filter:blur(16px) saturate(1.35)}
html.lg-shell.lg-dark #app-view>.sidebar{background:transparent!important}
html.lg-shell .account-menu,html.lg-shell .account-binding-menu{color:#263f53;background:rgba(246,251,255,.97)!important;border-color:#7792ab30}
html.lg-shell .account-menu-item,html.lg-shell .account-binding-menu button{color:#263f53!important}
html.lg-shell .account-menu-item:hover,html.lg-shell .account-binding-menu button:hover{background:#007aff0d!important}
html.lg-shell :is(.account-role-label,.account-binding-trigger small,.account-binding-trigger b){color:#587184!important}
html.lg-shell .account-menu-logout{color:#b23e45!important}
html.lg-shell.lg-dark :is(.account-menu,.account-binding-menu){background:rgba(34,49,67,.98)!important;border-color:#a9bfd126}
html.lg-shell.lg-dark :is(.account-menu-item,.account-binding-menu button){color:#e5edf7!important}
html.lg-shell.lg-dark :is(.account-role-label,.account-binding-trigger small,.account-binding-trigger b){color:#aec1d5!important}
html.lg-shell.lg-dark .account-menu-logout{color:#ffb5b9!important}

/* Fixed square hit targets keep history and tab-close icons on both axes. */
/* Body-level binding flyout stays above every workspace and outside sidebar glass. */
html.lg-shell .account-binding-menu.account-binding-portal{position:fixed;right:auto;bottom:auto;z-index:12070;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;app-region:no-drag;-webkit-app-region:no-drag}

/* Only a host-confirmed desktop backdrop may expose pixels outside the app.
   Keep the content pane solid; the sidebar tint is fully transparent, text stays 100% opaque. */
html.lg-shell.lg-desktop-glass{background:transparent!important}
html.lg-shell.lg-desktop-glass body:has(#app-view:not(.hidden)){background:transparent!important}
html.lg-shell.lg-desktop-glass #app-view{background:transparent!important}
html.lg-shell.lg-desktop-glass #app-view>.workspace{background:#f2f7fa!important}
html.lg-shell.lg-desktop-glass.lg-dark #app-view>.workspace{background:#1b2735!important}
html.lg-shell.lg-desktop-glass #app-view>.sidebar{background:transparent!important;box-shadow:inset -1px 0 0 #ffffff50,inset 0 1px 0 #ffffff45;backdrop-filter:blur(16px) saturate(1.35)}
html.lg-shell.lg-desktop-glass.lg-dark #app-view>.sidebar{background:transparent!important;box-shadow:inset -1px 0 0 #cbe6ff24,inset 0 1px 0 #cbe6ff18}

html.lg-shell #garment-customization-workspace .gc-history{display:flex;align-items:center;gap:4px;padding:4px!important}
html.lg-shell #garment-customization-workspace .gc-history button,
html.lg-shell #garment-customization-workspace .gc-design-tab [data-tab-close]{display:grid!important;place-items:center!important;flex:none;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;padding:0!important;line-height:0!important;align-self:center;translate:none!important}
html.lg-shell #garment-customization-workspace .gc-history button svg{display:block;width:18px;height:18px;margin:0}
html.lg-shell #garment-customization-workspace .gc-design-tab [data-tab-close]{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;margin:0 3px 0 0!important}
html.lg-shell #garment-customization-workspace .gc-design-tab [data-tab-close] svg{display:block;width:16px;height:16px;margin:0}

/* Open conversation layout: typography and whitespace replace message boxes. */
html.lg-shell #messages .message,
html.lg-shell #messages .message .bubble{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;color:var(--lg-text)}
html.lg-shell #messages .message{margin:28px 0;gap:14px}
html.lg-shell #messages .message.user .bubble{padding:4px 0;line-height:1.85}
html.lg-shell #messages .message.assistant .bubble{padding:4px 0;line-height:1.85}
html.lg-shell #messages .message.user .avatar{background:#3374b422;color:#326899}
html.lg-shell #messages .answer-text{font-size:14px;overflow-wrap:anywhere}
html.lg-shell #chat-workspace .response-body{width:100%;max-width:760px}
html.lg-shell #chat-workspace .message-content{max-width:calc(100% - 46px)}
html.lg-shell #chat-workspace .message.assistant .message-content{flex:1}
html.lg-shell #chat-workspace .bubble{max-width:100%}

html.lg-shell.lg-dark #chat-workspace{--lg-text:#e8eef6;--muted:#a9b9cc;color:#e8eef6;background:#1c2939}
html.lg-shell.lg-dark #chat-workspace>header{border-bottom-color:transparent!important}
html.lg-shell.lg-dark #messages .message.user .bubble{color:#c4dbf5!important}
html.lg-shell.lg-dark #messages .message.user .avatar{background:#83b9ee18;color:#bfdcff}
html.lg-shell.lg-dark #messages .assistant-avatar img{filter:brightness(0) invert(1);opacity:.88}
html.lg-shell.lg-dark #chat-workspace :is(.usage-line,.answer-label,.tool-status,.image-generation-status){color:#a9bdd3}
html.lg-shell.lg-dark #chat-workspace .error-text{color:#ffb1ac}
html.lg-shell.lg-dark #chat-workspace .usage-line.persistence-warning{color:#f2c37e}
html.lg-shell.lg-dark #chat-workspace a{color:#8bc5ff}
html.lg-shell.lg-dark #chat-workspace .composer{background:#26384b!important;border:0!important;box-shadow:0 12px 34px #07111c26!important}
html.lg-shell.lg-dark #chat-workspace .message-input{color:#edf3fa}
html.lg-shell.lg-dark #chat-workspace .message-input:empty::before{color:#a4b6c9}
html.lg-shell.lg-dark #chat-workspace :is(.composer-plus,.image-generation-toggle,.model-selector){background:#8daac817!important;color:#c8daed!important;border-color:transparent!important}
html.lg-shell.lg-dark #chat-workspace :is(.model-name,.composer-upload-summary,.model-pill,.model-badge){color:#c8daed!important}
html.lg-shell.lg-dark #chat-workspace :is(.work-mode-card,.quick-reply-card,.search-results-card){background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
html.lg-shell.lg-dark #chat-workspace :is(.wm-heading,.qr-heading,.wm-footer,.qr-footer){background:transparent!important;border:0!important}
html.lg-shell.lg-dark #chat-workspace :is(.wm-heading,.wm-budget,.wm-steps,.wm-answer,.wm-artifacts,.wm-footer,.qr-heading,.qr-questions,.qr-footer){padding-left:0!important;padding-right:0!important}
html.lg-shell.lg-dark #chat-workspace .qr-option{background:#54769a16!important;border-color:transparent!important;color:#e8eef6}
html.lg-shell.lg-dark #chat-workspace .qr-option:has(input:checked){background:#4e9ff029!important;color:#e8f3ff}
html.lg-shell.lg-dark #chat-workspace .qr-option:hover{background:#709ac426!important}
html.lg-shell.lg-dark #chat-workspace :is(.tool-status,.wm-notice){background:#759cc510}
html.lg-shell.lg-dark #chat-workspace .search-results-title{color:#c6d8ed}
html.lg-shell.lg-dark #chat-workspace :is(.thinking-shimmer,.model-description){color:#a9bdd3}
html.lg-shell.lg-dark .sidebar :is(strong,label),html.lg-shell.lg-dark #account-name{color:#d4e2ef!important}
html.lg-shell.lg-dark #account-trigger small{color:#abc0d3!important}
html.lg-shell.lg-dark :is(.conversation,#empty-state){color:#bacbdb!important}
html.lg-shell.lg-dark .conversation.active{background:#9bbad119;color:#edf5ff!important}
html.lg-shell.lg-dark #new-chat{background:#91b4d218!important;color:#dae7f5!important;border-color:transparent}
html.lg-shell.lg-dark .lg-search,html.lg-shell.lg-dark .sidebar input{color:#c5d6e7;background:#aac4df12;border-color:#aac4df20}
html.lg-shell.lg-dark .sidebar input::placeholder{color:#a5bbcf}
html.lg-shell:not(.lg-dark) .conversation.active{background:#ffffff70;color:#304f64!important}
html.lg-shell.lg-dark #chat-workspace .model-badge{background:transparent!important;color:#a9c7e8!important;padding-left:0}
html.lg-shell.lg-dark #chat-workspace #model-trigger{background:#7f9db61c!important;border:0;color:#dce8f5;box-shadow:none}
html.lg-shell.lg-dark #chat-workspace #model-version-name{color:#e3edf8!important}
html.lg-shell.lg-dark #chat-workspace #model-provider-name{color:#acc0d5!important}
html.lg-shell .account-binding-trigger{grid-template-columns:minmax(0,1fr) auto 8px;gap:5px;padding-left:8px;padding-right:8px}
html.lg-shell .account-binding-trigger>span{font-size:11px;white-space:nowrap}

/* An expired official session keeps the account control usable and visible. */
html.lg-shell .chatgpt-bind-header {
  position:relative;z-index:801;padding-left:108px;
  app-region:drag;-webkit-app-region:drag;
}
html.lg-shell .chatgpt-bind-header button { app-region:no-drag;-webkit-app-region:no-drag; }
@keyframes chatgpt-relogin-glow {
  0%,100% { box-shadow:inset 0 0 0 100vmax rgba(244,188,46,.68),0 0 5px #e7ab2429; }
  50% { box-shadow:inset 0 0 0 100vmax rgba(255,218,99,.98),0 0 16px #f2bd4273; }
}
@keyframes chatgpt-relogin-label {
  0%,100% { opacity:.76; text-shadow:0 0 0 transparent; }
  50% { opacity:1; text-shadow:0 0 10px #e7ab2466; }
}
html.lg-shell #account-trigger.chatgpt-relogin-required {
  border-radius:12px;
  background:rgba(224,165,38,.09)!important;
  animation:chatgpt-relogin-glow 3s ease-in-out infinite;
}
html.lg-shell #account-trigger.chatgpt-relogin-required #account-name,
html.lg-shell #account-trigger.chatgpt-relogin-required #chatgpt-account-name {
  color:#3e2c06!important;
}
html.lg-shell #account-chatgpt-binding-state.chatgpt-relogin-required {
  color:#865600!important;
  font-weight:600;
  animation:chatgpt-relogin-label 3s ease-in-out infinite;
}
html.lg-shell.lg-dark #account-chatgpt-binding-state.chatgpt-relogin-required {
  color:#ffd578!important;
}
@media (prefers-reduced-motion:reduce) {
  html.lg-shell #account-trigger.chatgpt-relogin-required {
    animation:none;box-shadow:inset 0 0 0 100vmax rgba(255,211,83,.88),0 0 8px #e7ab2438;
  }
  html.lg-shell #account-chatgpt-binding-state.chatgpt-relogin-required { animation:none; }
}

/* Clearing actions share orange feedback across pages and dialogs. */
html.lg-shell { --lg-clear-fill: #fff1e5; --lg-clear-text: #c45c0b; --lg-clear-border: #f18a30; }
html.lg-shell.lg-dark { --lg-clear-fill: #4d3019; --lg-clear-text: #ffbe7d; --lg-clear-border: #ed9448; }
html.lg-shell button:is([id*="clear"],[data-action="clear"],[data-motion="batch-clear"],[data-ud="clear-transfers"],[aria-label^="清空"],[title^="清空"]):is(:hover,:focus-visible):not(:disabled),
html.lg-shell #app-view button:is([id*="clear"],[data-action="clear"],[data-motion="batch-clear"],[data-ud="clear-transfers"],[aria-label^="清空"],[title^="清空"]):is(:hover,:focus-visible):not(:disabled) {
  background: var(--lg-clear-fill) !important;
  color: var(--lg-clear-text) !important;
  border-color: var(--lg-clear-border) !important;
  box-shadow: inset 0 0 0 1px var(--lg-clear-border) !important;
}
html.lg-shell button:is([id*="clear"],[data-action="clear"],[data-motion="batch-clear"],[data-ud="clear-transfers"],[aria-label^="清空"],[title^="清空"]):is(:hover,:focus-visible):not(:disabled) :is(span,strong,small) { color: inherit !important; }

/* The shared tool search lives in the body top layer, outside app-view.
   Keep its text, caret and surface in the same theme for every caller. */
html.lg-shell #lg-search-dialog{--lg-search-text:#304e6b;--lg-search-muted:#667b91;color-scheme:light;color:var(--lg-search-text);background:#f6faffe8}
html.lg-shell.lg-dark #lg-search-dialog{--lg-search-text:#e2eaf3;--lg-search-muted:#a6b7c9;color-scheme:dark;background:#253348f5;border-color:#7896b34d}
html.lg-shell #lg-search-dialog .lg-search-heading input{flex:1;min-width:0;color:var(--lg-search-text);caret-color:var(--lg-search-text)}
html.lg-shell #lg-search-dialog .lg-search-heading input::placeholder{color:var(--lg-search-muted);opacity:1}
html.lg-shell #lg-search-dialog .lg-search-heading input:focus-visible{outline:2px solid #1685ff;outline-offset:2px;border-radius:6px}
html.lg-shell #lg-search-dialog .lg-search-heading button,html.lg-shell #lg-search-dialog .lg-search-results button,html.lg-shell #lg-search-dialog .lg-search-results button>svg:last-child{color:var(--lg-search-muted)}
