:root{color-scheme:dark;--surface:#24262b;--edge:#3b3e45;--muted:#a1a5af;--accent:#ceaa74;--wine:#ceaa74;--border:#3b3e45;font-family:var(--ui-font);background:#17191d;color:#eef0f4;font-size:13px}body{margin:0;height:100dvh;overflow:hidden;background:#17191d;color:#eef0f4}*{box-sizing:border-box}[hidden]{display:none!important}body>header{height:52px;min-height:0;padding:8px 20px;border:0;border-bottom:1px solid var(--edge);background:#202227;gap:16px}body>header .brand{font:600 17px var(--ui-font);letter-spacing:2px;display:flex;align-items:center;gap:10px}body>header .brand-logo{height:30px;width:30px;object-fit:cover;border-radius:5px}body>header .brand span{font:11px var(--ui-font);color:var(--muted);letter-spacing:0;margin:0 0 0 10px}.brand-copy{display:block}#account{gap:10px;font-size:12px}main,.signed-in main{padding:0;margin:0;max-width:none;height:calc(100dvh - 52px)}#workspace{height:100%}.intro,#workspace-nav,body>footer{display:none!important}#message:empty{display:none}#message{position:fixed;top:60px;left:25%;max-width:50%;z-index:100;border:1px solid var(--edge);background:#36302a;color:#fff;padding:10px;margin:0}h1,h2,h3{font-family:var(--ui-font);font-weight:600;color:inherit;letter-spacing:0}h2{font-size:15px}h3{font-size:13px;margin:14px 0}label{font:12px var(--ui-font);margin:12px 0 5px;color:#bec2cc;display:block}button,.quiet,.download{font:12px var(--ui-font);padding:8px 12px;border-radius:5px;border:1px solid var(--edge);background:#353840;color:#eff0f2;cursor:pointer;text-decoration:none}button:hover,.quiet:hover{background:#494d57;color:#fff}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible,.panel-handle:focus-visible{outline:2px solid #e4bd7f;outline-offset:2px}button:disabled{opacity:.4;cursor:default}input,select,textarea{color:#edf0f4;background:#1c1e23;border:1px solid #464952;border-radius:4px;font:12px var(--ui-font);padding:8px;width:100%;margin:0}textarea{min-height:64px;resize:vertical;line-height:1.5}input[type=color]{height:32px;padding:3px}input[type=checkbox]{width:auto}input[type=file]{font-size:11px}.check{display:flex;align-items:center;gap:7px}.hint,.muted,.metadata{font:11px/1.5 var(--ui-font);color:var(--muted);margin:8px 0}.card{background:transparent;border:0;border-radius:0;padding:12px}.history{margin:0;border:0;padding:0}.login{margin:5vh auto;max-width:380px;padding:24px}.login-logo{width:80px;height:80px}.login h1{font-size:24px}.login .eyebrow{color:var(--accent)}.login button,#editor-export{background:var(--accent);color:#1b1b1b;border-color:var(--accent)}.login-logo{border-radius:8px}#editor{height:100%;display:grid;grid-template-columns:54px 1fr;grid-template-rows:48px minmax(0,1fr) 38px}.editor-topbar{grid-column:1/3;display:flex;align-items:center;gap:8px;padding:7px 14px;border-bottom:1px solid var(--edge);background:#24262b}.editor-topbar input{width:190px;background:transparent;border-color:transparent;font-weight:600}.editor-topbar select{width:155px;font-size:11px}.top-spacer{flex:1}.editor-rail{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 4px;background:#222429;border-right:1px solid var(--edge);overflow:auto}.editor-rail button{height:36px;width:36px;padding:0;background:transparent;border-color:transparent;font-size:21px}.editor-rail button:hover,.editor-rail button[aria-pressed=true]{background:#4b4235;color:#ecd2aa}.editor-bottom{grid-column:1/3;border-top:1px solid var(--edge);display:flex;align-items:center;gap:10px;padding:4px 15px;background:#222429;font-size:11px}.editor-bottom button{padding:4px 9px}.editor-bottom input{width:100px;padding:0}#editor-status{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:55vw;color:#bbc0ca}#editor-viewport{overflow:auto;position:relative;background-color:#181a1e;background-image:radial-gradient(#303339 1px,transparent 1px);background-size:16px 16px;overscroll-behavior:contain}#editor-board{min-width:100%;min-height:100%;display:flex;align-items:center;justify-content:center;padding:48px;width:max-content;height:max-content}#editor-canvas{display:block;flex:none;box-shadow:0 12px 45px #0008;touch-action:none;background:repeating-conic-gradient(#eee 0% 25%,#ddd 0% 50%) 0 0/16px 16px;cursor:default}.floating-panel{position:fixed;z-index:30;top:122px;right:18px;width:310px;max-width:calc(100vw - 74px);max-height:calc(100dvh - 175px);overflow:auto;background:#292c32;border:1px solid #494d57;border-radius:9px;box-shadow:0 14px 48px #0009;padding:0;margin:0;color:#eff1f5}.floating-panel .panel-handle{position:sticky;top:0;z-index:2;cursor:move;touch-action:none;margin:0;padding:14px 40px 14px 15px;font-size:12px;letter-spacing:.2px;background:#33363e;border-bottom:1px solid var(--edge)}.panel-close{position:absolute;right:7px;top:6px;z-index:4;padding:6px 9px;background:transparent;font-size:18px;border:0}.panel-body{padding:12px 15px}.floating-panel .section-title{margin:0;display:flex;gap:6px;align-items:center}.floating-panel .section-title h2{font-size:14px;margin:10px 0}.floating-panel p:empty{display:none}.floating-panel.wide{width:640px}.floating-panel .layout,.floating-panel .library-layout,.floating-panel .studio-layout{display:block}.floating-panel .studio-layout>div{margin-bottom:16px}.floating-panel .studio-layout h3{display:none}.studio-dimensions,.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.inline-actions,.studio-actions{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0}.floating-panel .empty{min-height:80px}.floating-panel .product{background:#202227;border-color:var(--edge);padding:8px}.floating-panel .product strong,.floating-panel .product span{font-size:11px;color:var(--muted)}.floating-panel .source-preview{max-width:100%;height:100px;object-fit:contain}.floating-panel details{border-top:1px solid var(--edge);padding:10px 0}.floating-panel summary{cursor:pointer;font-size:12px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.product-card{border:1px solid var(--edge);border-radius:6px;padding:8px;background:#202227}.product-card img{width:100%;height:110px;object-fit:contain;background:#ecebe8}.product-card strong,.product-card small{display:block;overflow-wrap:anywhere;color:#d8dbe2;font-size:10px}.product-card button{margin-top:7px;width:100%}.search{display:flex;gap:6px;margin:12px 0}.task-row{display:flex;width:100%;text-align:left;gap:10px;padding:12px;background:transparent;border-bottom:1px solid var(--edge)}.task-row small{display:block;color:var(--muted);font-size:10px}.file img,.studio-output img,#editor-exports img{max-width:100%;max-height:230px;object-fit:contain}.file,.studio-output{padding:8px;border:1px solid var(--edge);margin:8px 0;background:#202227}.badge{font-size:10px;background:#41464f;padding:5px;color:#ddd}.badge.succeeded{color:#9bdfb6}.admin-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.admin-stat{padding:10px;background:#202227}.admin-stat span,.admin-stat strong{display:block}.admin-accounts{display:block}.admin-table{overflow:auto}.admin-table table{font-size:11px;border-collapse:collapse}.admin-table td,.admin-table th{padding:8px;border:1px solid var(--edge);text-align:left;white-space:normal}.admin-table small{display:block}.admin-user-actions{min-width:180px}.editor-layer{display:flex;align-items:center;gap:7px;margin:4px 0;width:100%;text-align:left;background:#212329;padding:8px}.editor-layer[aria-pressed=true]{border-color:var(--accent);background:#443d33}.editor-layer span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.reference-card{position:relative;margin:10px 0;border:1px solid var(--edge);padding:8px;border-radius:6px}.reference-card img{max-width:100%;max-height:135px;display:block;margin:auto}.reference-card p{font-size:11px;overflow-wrap:anywhere}.reference-card button{font-size:10px}#studio-chosen .studio-chosen{display:flex;gap:6px;margin:6px 0;font-size:11px}#studio-chosen span{flex:1}#studio-results{max-height:220px;overflow:auto}.action-message{background:#202227;color:#bbc2ce;font-size:11px}.panel-body>p:not([role]):not(.hint){font-size:11px;color:var(--muted)}@media(max-width:750px){.editor-topbar input{width:110px}.editor-topbar select{width:110px}.editor-topbar button{padding:8px}.editor-topbar #editor-open{display:none}.brand span{display:none}.floating-panel.wide{width:calc(100vw - 74px)}#editor-status{max-width:28vw}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-height:650px){.editor-rail{gap:0;padding:2px}.editor-rail button{height:30px;min-height:30px}.floating-panel{top:108px;max-height:calc(100dvh - 154px)}}

/* Generation workbench and a shared, skippable start dialog. */
#editor{grid-template-columns:104px 1fr}.editor-rail{align-items:stretch;padding:14px 8px;gap:8px}.editor-rail button{font-size:13px;line-height:1.4;width:100%;min-height:44px;height:auto;padding:10px 5px;border-color:var(--edge)}.editor-topbar{flex-wrap:wrap;height:auto}.editor-topbar input{width:160px}.editor-topbar select{width:130px}.floating-panel{max-height:calc(100dvh - 150px);width:390px}.floating-panel.wide{width:760px}.panel-body .hint{font-size:12px}.product-card strong{font-size:12px}.product-card img{aspect-ratio:1;height:auto;max-height:140px}.product-card details{font-size:12px}.product-card summary{cursor:pointer}.product-card input{margin-top:8px}.product-card p{font-size:12px}.library-layout{display:block}.library-layout>details{padding:12px;background:#24262b;border:1px solid var(--edge);border-radius:8px;margin-bottom:12px}.library-layout>details>summary{cursor:pointer;font-size:14px}.source-preview{max-height:180px;max-width:100%;object-fit:contain}#library-selection{color:#e4bd7f}#start-dialog{color:#eef0f4;background:#24262b;border:1px solid #50545d;border-radius:14px;padding:0;width:min(1080px,94vw);height:min(810px,90dvh);max-width:94vw;max-height:90dvh;overflow:hidden;box-shadow:0 24px 80px #0009}#start-dialog[open]{display:flex;flex-direction:column}#start-dialog::backdrop{background:#0d1017b8;backdrop-filter:blur(3px)}.start-header{padding:22px 28px 18px;border-bottom:1px solid var(--edge);display:flex;align-items:flex-start;gap:20px;justify-content:space-between}.start-header h1{font-size:26px;margin:6px 0 10px}.start-header p{font-size:13px;line-height:1.6;margin:0;color:#b8bdc8}.start-header .eyebrow{font-size:11px;letter-spacing:2px;color:var(--accent)}.start-header button{white-space:nowrap;padding:10px 14px}.start-layout{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:0;flex:1}.start-layout>nav{display:flex;flex-direction:column;gap:10px;padding:24px 16px;background:#1e2025;border-right:1px solid var(--edge)}.start-layout>nav button{padding:14px 12px;text-align:left;font-size:14px;background:transparent;border-color:transparent}.start-layout>nav button[aria-current]{color:#efd1a2;background:#443b30;border-color:#8f744f}.start-content{overflow:auto;padding:20px 28px}.start-content h3{font-size:19px;margin:2px 0 18px}.start-content input,.start-content select,.start-content textarea,.start-content button{font-size:14px}.start-content label{font-size:13px}.start-content .hint{font-size:12px}.start-content .panel-body{padding:0}.start-content .section-title h2{font-size:18px}.start-content #planner-history:empty{display:none}.start-content #planner-history{max-height:220px;overflow:auto}.start-content #planner-message{min-height:130px}.start-content #planner-send,.start-footer #start-done{background:var(--accent);border-color:var(--accent);color:#17191d}.start-content .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.start-content .product-card button{font-size:12px}.start-footer{padding:15px 24px;display:flex;align-items:center;gap:10px;border-top:1px solid var(--edge);background:#292c32}.start-footer p{flex:1;font-size:12px;line-height:1.5;margin:0;color:#c9cdd6}.start-footer button{white-space:nowrap}.start-content .project-history pre{white-space:pre-wrap;overflow-wrap:anywhere}#start-dialog #planner-proposal-text{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:850px){.editor-topbar{gap:5px}.editor-topbar input{width:120px}.editor-topbar select{display:none}.start-layout{grid-template-columns:145px minmax(0,1fr)}.start-layout>nav{padding:16px 8px}.start-layout>nav button{font-size:12px}.start-content{padding:16px}.start-header{padding:18px}.start-content .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){#editor{grid-template-columns:76px 1fr;grid-template-rows:auto minmax(0,1fr) 38px}.editor-topbar button{font-size:11px;padding:7px}.editor-rail button{font-size:11px}.editor-topbar #editor-save{display:none}.start-layout{display:flex;flex-direction:column}.start-layout>nav{flex-direction:row;overflow:auto;padding:8px;border-bottom:1px solid var(--edge);flex-shrink:0}.start-layout>nav button{min-width:104px;padding:8px}.start-content{flex:1;min-height:0}.start-header h1{font-size:20px}.start-header>div>p:not(.eyebrow){display:none}.start-footer{flex-wrap:wrap;padding:12px}.start-footer p{flex-basis:100%}}
/* Prefer installed Chinese sans-serif fonts; no external font request. */
:root{--ui-font:"Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Heiti SC", sans-serif;font-family:var(--ui-font)}body,header,.brand,.brand span,.brand-copy,.editor-topbar,.floating-panel,button,input,select,textarea,output{font-family:var(--ui-font)}.project-history pre,#planner-proposal-text{font-family:var(--ui-font);font-size:14px;line-height:1.65}
