:root{color:#28333e;font-synthesis:none;--line:#e1e5e9;--muted:#78828d;--accent:#426854;--soft:#e8efea;background:#f4f5f7;font-family:Inter,Segoe UI,Microsoft YaHei,system-ui,sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);color:inherit;background:#fff;border-radius:6px;padding:8px 12px;line-height:1.2;transition:background .12s}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:2px;outline:2px solid #739586}input,textarea,select{color:inherit;border:1px solid var(--line);background:#fff;border-radius:6px;min-width:0;padding:9px 10px}textarea{resize:vertical}h1,h2,p{margin:0}button.chosen{background:var(--soft);color:var(--accent);border-color:#cddbd1}.app-shell{flex-direction:column;gap:14px;height:100dvh;padding:0 20px 20px;display:flex;overflow:hidden}.topbar{flex-shrink:0;align-items:center;gap:22px;height:66px;display:flex;position:relative}.brand{color:#2d3d34;letter-spacing:-.4px;align-items:center;gap:9px;font-size:18px;text-decoration:none;display:flex}.brand-symbol{color:#fff;background:#426854;border-radius:6px;place-items:center;width:30px;height:30px;font-size:21px;font-weight:600;display:grid}.project-name{flex:1;align-items:center;gap:10px;min-width:0;display:flex}.project-name input{text-overflow:ellipsis;background:0 0;border-color:#0000;width:210px;padding-left:0;font-weight:500}.project-name input:focus{border-color:var(--line);background:#fff}.save-state{color:var(--muted);white-space:nowrap;font-size:12px}.top-actions{gap:8px;display:flex}.workspace-switch{justify-content:space-between;align-items:center;gap:14px;min-width:112px;display:flex}.icon-button{background:0 0;border:0;place-items:center;width:32px;height:32px;padding:0;font-size:20px;display:grid}.file-menu{z-index:10;border:1px solid var(--line);background:#fff;border-radius:8px;gap:2px;width:292px;max-height:80dvh;padding:8px;display:grid;position:absolute;top:57px;right:0;overflow:auto;box-shadow:0 8px 28px #24302c16}.file-menu>button{text-align:left;border:0;border-radius:4px;padding:11px 12px}.menu-modes{border-bottom:1px solid var(--line);gap:4px;margin-bottom:6px;padding-bottom:8px;display:flex}.menu-modes button{flex:1;padding:9px 6px;font-size:12px}.menu-divider{background:var(--line);height:1px;margin:6px}.workspace{flex:1;grid-template-columns:minmax(340px,.82fr) minmax(0,1.18fr);grid-template-areas:"chat preview";gap:16px;min-height:0;display:grid}.chat-pane,.preview-pane{border:1px solid var(--line);background:#fff;border-radius:9px;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.chat-pane{grid-area:chat}.preview-pane{grid-area:preview}.pane-heading{border-bottom:1px solid var(--line);flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;height:51px;padding:0 16px;display:flex}.section-label{font-size:14px;font-weight:600}.preview-title{align-items:center;gap:9px;min-width:0;display:flex}.asset-kind{color:var(--muted);white-space:nowrap;font-size:12px}.preview-actions,.chat-actions{flex-shrink:0;align-items:center;gap:5px;display:flex}.preview-actions button{border-color:#0000;padding:6px 9px;font-size:12px}.service-status{color:var(--muted);white-space:nowrap;align-items:center;gap:6px;margin-right:4px;font-size:12px;display:flex}.service-status i{background:#b49b72;border-radius:50%;width:6px;height:6px}.service-status.connected i{background:#5b936f}.preview-stage{background:#f7f8fa;flex:1;min-height:0;position:relative;overflow:hidden}.studio-frame{border:0;width:100%;height:100%;display:block}.quick-tabs{border-bottom:1px solid var(--line);flex-shrink:0;gap:7px;min-height:45px;padding:9px 12px;display:flex;overflow:auto}.quick-tabs>div{border:1px solid var(--line);white-space:nowrap;border-radius:5px;display:flex}.quick-tabs>div.chosen{background:var(--soft);border-color:#cddbd1}.quick-tabs button{background:0 0;border:0;border-radius:0;padding:6px 10px;font-size:12px}.quick-tabs .close-quick{color:#7d897f;padding:3px 7px}.view-tabs{border-bottom:1px solid var(--line);flex-shrink:0;gap:4px;padding:7px 12px;display:flex}.view-tabs button{border:0;padding:6px 10px;font-size:12px}.view-tabs .export-button{color:var(--muted);margin-left:auto}.tool-strip{border-top:1px solid var(--line);background:#fff;flex-shrink:0;gap:0;padding:9px 8px;display:flex;overflow:auto}.tool-strip button{white-space:nowrap;border-color:#0000;padding:8px 10px;font-size:12px}.chat-scroll{overscroll-behavior:contain;flex:1;min-height:0;padding:24px 22px;overflow:auto}.chat-welcome{padding:22px 0}.chat-welcome h1{letter-spacing:-.5px;margin-bottom:26px;font-size:23px;font-weight:500}.prompt-examples{gap:8px;display:grid}.prompt-examples button{text-align:left;background:#fafbfc;border-color:#edf0f2;justify-content:space-between;padding:13px 14px;font-size:13px;display:flex}.prompt-examples span{color:#899b90}.message{max-width:100%;margin-bottom:26px}.message-role{color:var(--muted);margin-bottom:9px;font-size:12px;font-weight:500}.message-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85}.user-message .message-content{background:#f2f4f6;border-radius:7px;padding:12px 14px}.suggestions{flex-wrap:wrap;gap:6px;margin-top:12px;display:flex}.suggestions button{color:#64756a;border-color:#e8ebee;padding:7px 9px;font-size:12px}.working{color:var(--muted);font-size:13px}.composer{background:#fff;border:1px solid #d6dfe0;border-radius:8px;flex-shrink:0;margin:0 16px 16px;padding:10px;box-shadow:0 2px 4px #1b2d2403}.composer textarea{resize:none;background:0 0;border:0;outline:none;width:100%;height:64px;max-height:120px;padding:4px 4px 8px;line-height:1.6;display:block}.composer textarea::placeholder{color:#9aa2aa}.composer textarea:focus-visible{outline:0}.composer-actions{justify-content:space-between;align-items:center;gap:8px;display:flex}.attach-button{color:#7a8780;background:0 0;border:0;width:30px;height:30px;padding:0;font-size:21px}.send-button,.primary{color:#fff;background:#426854;border-color:#426854}.send-button{padding:8px 12px;font-size:12px}.send-button:hover,.primary:hover{background:#365945}.send-button span{margin-left:8px}.empty-preview{flex-direction:column;justify-content:center;align-items:center;gap:18px;height:100%;padding:24px;display:flex}.empty-cube{color:#aab8b0;font-size:64px;line-height:1}.empty-preview h2{color:#617068;font-size:18px;font-weight:400}.start-options{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.start-options button{background:#fff;font-size:12px}.text-button{color:var(--muted);background:0 0;border:0;font-size:12px}.texture-preview{background-image:linear-gradient(45deg,#e9ecee 25%,#0000 25%),linear-gradient(-45deg,#e9ecee 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#e9ecee 75%),linear-gradient(-45deg,#0000 75%,#e9ecee 75%);background-position:0 0,0 12px,12px -12px,-12px 0;background-size:24px 24px;flex-direction:column;justify-content:center;align-items:center;gap:25px;height:100%;display:flex}.texture-preview img{object-fit:contain;width:220px;max-width:65%;max-height:65%;image-rendering:pixelated}.asset-list{flex-direction:column;gap:9px;height:100%;padding:20px;display:flex;overflow:auto}.asset-list button{text-align:left;align-items:center;gap:12px;padding:15px;display:flex}.asset-list strong{flex:1;font-size:14px;font-weight:500}.asset-list span{color:var(--muted);font-size:12px}.asset-mark{border-radius:4px;width:28px;height:28px}.shader .workspace{grid-template:"preview"minmax(210px,1.25fr)"chat"minmax(250px,.8fr)/1fr;gap:14px}.shader .chat-pane{grid-template-rows:45px minmax(0,1fr);grid-template-columns:minmax(0,1fr) minmax(300px,.65fr);gap:0;display:grid}.shader .chat-pane>.pane-heading{grid-column:1/-1;height:45px}.shader .chat-scroll{grid-area:2/1;padding:14px 22px}.shader .composer{grid-area:2/2;align-self:end;margin:15px}.shader .chat-welcome{padding:0}.shader .chat-welcome h1{margin-bottom:10px;font-size:18px}.shader .prompt-examples{flex-wrap:wrap;gap:6px;display:flex}.shader .prompt-examples button{gap:12px;padding:8px 10px;font-size:12px}.shader-scene,.particle-scene{height:100%;position:relative}.shader-scene canvas,.particle-scene canvas,.building-canvas{touch-action:none;width:100%;height:100%;display:block}.scene-presets{gap:5px;display:flex;position:absolute;top:13px;left:14px}.scene-presets button{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#ffffffd9;border:1px solid #ffffff80;padding:6px 10px;font-size:12px}.particle-play{position:absolute;bottom:18px;left:50%;transform:translate(-50%)}.error-banner{background:#fff6ed;border:1px solid #eed3b8;border-radius:6px;flex-shrink:0;justify-content:space-between;align-items:center;padding:9px 12px;font-size:13px;display:flex}.error-banner button{background:0 0;border:0;padding:0 6px;font-size:20px}.mobile-tabs{display:none}.tool-overlay{z-index:20;background:#18252228;justify-content:flex-end;display:flex;position:fixed;inset:0}.tool-drawer{background:#fff;flex-direction:column;width:390px;max-width:100%;display:flex;box-shadow:-6px 0 25px #21302b12}.drawer-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:17px 20px;display:flex}.drawer-heading h2{font-size:16px;font-weight:600}.drawer-body{flex-direction:column;flex:1;align-items:stretch;gap:15px;padding:20px;display:flex;overflow:auto}.drawer-body>button{align-self:stretch}.field{color:#65716b;flex-direction:column;gap:8px;font-size:13px;display:flex}.field input,.field textarea,.field select{color:#28333e;width:100%}.field input[type=color]{height:40px;padding:4px}.field-row{gap:12px;display:flex}.field-row .field{flex:1;min-width:0}.parameter-list{gap:24px;display:grid}.parameter-list label{grid-template-columns:72px 1fr 38px;align-items:center;gap:12px;font-size:13px;display:grid}.parameter-list input{accent-color:#426854;width:100%;padding:0}.parameter-list output{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}.material-controls{flex-wrap:wrap;gap:6px;display:flex}.material-controls input{flex:1;width:170px}.material-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.material-grid button{flex-direction:column;align-items:center;gap:9px;padding:10px 5px;display:flex}.material-grid img,.material-grid button>span{width:32px;height:32px;image-rendering:pixelated;border-radius:2px}.material-grid strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:11px;font-weight:400;overflow:hidden}.material-role{justify-content:space-between;align-items:center;gap:12px;padding:13px;display:flex}.material-role span{color:var(--muted);font-size:12px}.material-role strong{font-size:13px;font-weight:500}.json-editor{resize:vertical;height:50dvh;font-family:Consolas,monospace;font-size:12px;line-height:1.5}.document-actions{gap:7px;display:flex}.document-actions button{flex:1;font-size:12px}.tool-command-list{gap:9px;display:grid}.tool-command-list button{text-align:left;justify-content:space-between;font-size:13px;display:flex}.compact-status{color:var(--muted);font-size:13px}.drawer-texture{object-fit:contain;width:100%;height:200px;image-rendering:pixelated;background:#f3f5f6}.danger{color:#ac5345;border-color:#e9d3cf;margin-top:15px}@media (max-width:1000px){.app-shell{gap:10px;padding:0 12px 12px}.workspace{grid-template-columns:minmax(290px,.9fr) minmax(0,1.1fr);gap:10px}.chat-scroll{padding:20px 16px}.topbar{gap:15px}.asset-kind{display:none}.project-name input{width:170px}.save-state{display:none}.tool-strip button{padding:8px}.shader .chat-pane{grid-template-columns:1fr 1fr}}@media (max-width:760px){.app-shell{padding:0 8px calc(8px + env(safe-area-inset-bottom));gap:8px}.topbar{gap:9px;height:54px}.brand{gap:7px;font-size:16px}.brand-symbol{width:26px;height:26px;font-size:19px}.project-name input{width:100%;max-width:180px;font-size:12px}.top-actions{gap:0}.top-actions>.icon-button{display:none}.workspace-switch{gap:6px;min-width:90px;padding:7px 9px;font-size:12px}.mobile-tabs{flex-shrink:0;gap:6px;display:flex}.mobile-tabs button{color:#6a756e;background:#e9ecee;border-color:#0000;flex:1;padding:9px;font-size:12px}.mobile-tabs button.chosen{color:#426854;background:#fff;border-color:#d6ddd8}.workspace{gap:0;min-height:0;display:flex}.workspace[data-mobile-tab=chat] .preview-pane,.workspace[data-mobile-tab=preview] .chat-pane{display:none}.chat-pane,.preview-pane{border-radius:7px;flex:1}.pane-heading{height:46px;padding:0 12px}.section-label{font-size:13px}.service-status{font-size:11px}.chat-actions{gap:2px}.chat-actions .icon-button{width:25px;font-size:18px}.chat-scroll{padding:18px 15px}.chat-welcome{padding:18px 0}.chat-welcome h1{margin-bottom:20px;font-size:22px}.composer{margin:0 10px 10px;padding:8px}.composer textarea{height:64px;font-size:16px}.composer-actions{height:32px}.send-button{font-size:12px}.message{margin-bottom:22px}.message-content{font-size:14px}.preview-actions button{padding:6px;font-size:11px}.preview-title{gap:5px}.tool-strip{padding:7px 5px}.tool-strip button{padding:8px;font-size:11px}.empty-preview{gap:16px;padding:16px}.empty-cube{font-size:52px}.start-options{gap:5px}.start-options button{padding:8px;font-size:11px}.shader .mobile-tabs{display:none}.shader .workspace{grid-template-rows:minmax(155px,.85fr) minmax(250px,1fr);gap:8px;display:grid}.shader .preview-pane,.shader .chat-pane{flex-direction:column;display:flex!important}.shader .chat-pane>.pane-heading{flex-shrink:0;height:40px}.shader .chat-scroll{flex:1;min-height:0;padding:12px 14px}.shader .composer{align-self:stretch;margin:0 10px 10px}.shader .chat-welcome h1{margin-bottom:10px;font-size:17px}.shader .prompt-examples{flex-direction:column;display:flex}.shader .prompt-examples button{padding:9px 10px;display:flex}.shader .composer textarea{height:52px}.scene-presets{gap:4px;top:10px;left:10px}.scene-presets button{padding:5px 8px;font-size:11px}.tool-overlay{align-items:flex-end}.tool-drawer{border-radius:12px 12px 0 0;width:100%;height:85dvh;max-height:100dvh}.drawer-heading{padding:12px 16px}.drawer-body{padding:16px}.material-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.file-menu{max-width:calc(100vw - 16px);top:49px;right:0}.error-banner{max-height:65px;padding:7px 10px;font-size:12px;overflow:auto}}@media (max-width:360px){.brand strong{display:none}.project-name input{max-width:145px}.shader .workspace{grid-template-rows:minmax(130px,.7fr) minmax(230px,1fr)}.material-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-height:600px){.app-shell{gap:6px;padding-bottom:6px}.topbar{height:45px}.shader .workspace{grid-template-rows:minmax(110px,.7fr) minmax(180px,1fr);gap:6px}.shader .pane-heading,.shader .chat-pane>.pane-heading{height:35px}.shader .composer{margin:6px 10px}.shader .composer textarea{height:42px}.shader .chat-scroll{padding:8px 12px}.shader .chat-welcome h1{font-size:15px}.scene-presets{top:7px;left:7px}}@media (max-height:430px){.shader .workspace{grid-template-rows:minmax(0,.45fr) minmax(145px,1fr)}.shader .pane-heading,.shader .chat-pane>.pane-heading{height:30px}.shader .composer textarea{height:36px}.shader .chat-scroll{padding:5px 12px}.shader .chat-welcome h1{font-size:14px}.shader .prompt-examples button{padding:5px 8px}.scene-presets button{padding:4px 7px;font-size:10px}}.loading-ring{border:2px solid;border-right-color:#0000;border-radius:50%;flex:none;width:17px;height:17px;animation:.8s linear infinite chat-spin;display:inline-block}.working,.send-button{align-items:center;gap:8px;display:flex}.message-usage{color:var(--muted);margin-top:8px;font-size:10px}.message-usage summary{cursor:pointer}.message-usage div{flex-wrap:wrap;gap:5px 14px;padding:7px 0;display:flex}.message-usage small{display:block}.message-state{color:#ad713f}.composer-actions .ai-model-select{flex:1;min-width:60px}@keyframes chat-spin{to{transform:rotate(360deg)}}@media (max-width:420px){.composer-actions{gap:4px}.send-button{padding:9px 10px}.preview-actions{gap:3px}.preview-actions button{padding:6px}.preview-title{min-width:0}}.message-content{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;tab-size:2;min-width:0;line-height:1.7}@media (max-width:420px){.composer{max-width:calc(100% - 14px);margin-left:7px;margin-right:7px;padding:7px}.composer textarea{height:46px;max-height:64px;padding:2px;font-size:15px}.composer-actions{grid-template-rows:30px 30px;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:4px;width:100%;min-width:0;display:grid}.composer-actions .model-picker{grid-area:1/1/auto/-1;width:100%;min-width:0}.composer-actions .model-picker .ai-model-select{justify-content:space-between;gap:5px;width:100%;min-width:0;max-width:100%;height:30px;padding:6px 8px;font-size:11px;display:flex}.composer-actions .model-select-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.composer-actions .reasoning-control{grid-area:2/1;min-width:0}.composer-actions .reasoning-control label{white-space:nowrap;align-items:center;gap:3px;min-width:0;font-size:10px;display:flex}.composer-actions .reasoning-control select{width:auto;min-width:0;max-width:70px;height:28px;padding:5px 3px;font-size:10px}.composer-actions .attach-control{grid-area:2/2;min-width:0}.composer-actions .context-meter{grid-area:2/3;min-width:0}.composer-actions .send-button{white-space:nowrap;grid-area:2/4;justify-self:end;gap:3px;min-width:48px;max-width:64px;height:28px;padding:6px;font-size:11px}.composer-actions .send-button span{margin-left:0}.composer-actions .attach-button{width:28px;height:28px;font-size:18px}.composer-actions .reasoning-control{grid-area:2/1}.composer-actions .context-meter{grid-area:2/2}.composer-actions .attach-control{grid-area:2/1}.composer-actions .send-button{grid-area:2/3}.composer-actions .attach-control .attachment-menu{max-width:calc(100vw - 24px);bottom:38px;left:0;right:auto}}.composer-primary-actions{align-items:center;gap:6px;margin-left:auto;display:flex}.composer-menu-toggle{color:#65756d;background:0 0;border:0;width:30px;height:30px;padding:0;font-size:19px;display:none}.composer-extra{flex:1;align-items:center;gap:8px;min-width:0;display:flex}@media (max-width:420px){.composer-actions{flex-direction:column;align-items:stretch;gap:5px;width:100%;min-width:0;height:auto;display:flex}.composer-primary-actions{justify-content:flex-end;width:100%;margin-left:0}.composer-menu-toggle{place-items:center;display:grid}.composer-extra{border-top:1px solid var(--line);grid-template-columns:minmax(0,1fr) auto;gap:6px;width:100%;padding-top:5px;display:grid}.composer-extra .model-picker{grid-column:1/-1;width:100%;min-width:0}.composer-extra .model-picker .ai-model-select{justify-content:space-between;gap:5px;width:100%;min-width:0;max-width:100%;height:30px;padding:6px 8px;font-size:11px;display:flex}.composer-extra .model-select-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.composer-extra .reasoning-control{min-width:0}.composer-extra .reasoning-control label{white-space:nowrap;align-items:center;gap:3px;min-width:0;font-size:10px;display:flex}.composer-extra .reasoning-control select{width:auto;min-width:0;max-width:70px;height:28px;padding:5px 3px;font-size:10px}.composer-extra .context-meter{justify-self:end;min-width:0}.composer-extra .attach-control{grid-column:1/-1;min-width:0}.composer-extra .attach-button{width:28px;height:28px;font-size:18px}.composer textarea{height:46px;max-height:64px;font-size:15px}.composer-primary-actions .send-button{min-width:58px;max-width:76px;height:30px;padding:6px 8px;font-size:11px}.composer-primary-actions .send-button span{margin-left:0}}@media (max-width:360px){.composer-extra{gap:4px}.composer-extra .model-picker .ai-model-select{padding:5px 6px;font-size:10px}.composer-extra .reasoning-control label{font-size:9px}.composer-extra .reasoning-control select{max-width:64px;font-size:9px}.composer-primary-actions .send-button{min-width:52px;max-width:62px;font-size:10px}.composer-primary-actions .send-button span{display:none}.composer textarea{height:44px}.composer{max-width:calc(100% - 8px);margin-left:4px;margin-right:4px;padding:6px}.composer-actions{grid-template-columns:minmax(0,1fr) 28px 28px 54px;gap:2px}.composer-actions .model-picker .ai-model-select{padding:5px 6px;font-size:10px}.composer-actions .reasoning-control label{font-size:9px}.composer-actions .reasoning-control select{max-width:64px;font-size:9px}.composer-actions .send-button{min-width:50px;max-width:54px;padding:6px 4px;font-size:10px}.composer-actions .send-button span{display:none}.composer textarea{height:44px;font-size:15px}}.project-loading{z-index:2000;color:#28333e;cursor:progress;background:#eef1f3ed;justify-content:center;align-items:center;gap:10px;font-size:14px;display:flex;position:fixed;inset:0}.attach-control{align-items:center;display:flex;position:relative}.attachment-menu{z-index:30;background:var(--surface,#fff);border:1px solid var(--line);border-radius:8px;gap:3px;min-width:150px;max-width:min(240px,100vw - 24px);padding:6px;display:grid;position:absolute;bottom:38px;left:0;box-shadow:0 10px 28px #1b2d241c}.attachment-menu button{text-align:left;white-space:nowrap;border:0;padding:9px 10px;font-size:12px}.model-dialog-scrim{z-index:80;background:#18252245;justify-content:center;align-items:center;padding:12px;display:flex;position:fixed;inset:0}.model-dialog{background:var(--surface,#fff);border:1px solid var(--line);border-radius:10px;flex-direction:column;width:min(440px,100vw - 24px);max-height:min(78dvh,620px);display:flex;overflow:hidden;box-shadow:0 18px 60px #15242d35}.model-dialog-list{flex-direction:column;gap:7px;padding:14px;display:flex;overflow:auto}.model-dialog-list button{text-align:left;flex-direction:column;align-items:flex-start;gap:4px;padding:12px;display:flex}.model-dialog-list button.selected{background:var(--soft);border-color:#b7d0be}.model-dialog-list small{color:var(--muted);font-size:11px}@media (max-width:600px){.model-dialog-scrim{align-items:flex-end;padding:8px}.model-dialog{border-radius:12px;width:100%;max-height:78dvh}.attachment-menu{max-width:calc(100vw - 24px);left:0;right:auto}.composer-actions{flex-direction:column;align-items:stretch;gap:5px;width:100%;min-width:0;height:auto;display:flex}.composer-primary-actions{justify-content:flex-end;width:100%;margin-left:0}.composer-menu-toggle{place-items:center;display:grid}.composer-extra{border-top:1px solid var(--line);grid-template-columns:minmax(0,1fr) auto;gap:6px;width:100%;padding-top:5px;display:grid}.composer-extra .model-picker{grid-column:1/-1;width:100%;min-width:0}.composer-extra .model-picker .ai-model-select{justify-content:space-between;gap:5px;width:100%;min-width:0;max-width:100%;height:30px;padding:6px 8px;font-size:11px;display:flex}.composer-extra .model-select-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.composer-extra .reasoning-control{min-width:0}.composer-extra .reasoning-control label{white-space:nowrap;align-items:center;gap:3px;min-width:0;font-size:10px;display:flex}.composer-extra .reasoning-control select{width:auto;min-width:0;max-width:70px;height:28px;padding:5px 3px;font-size:10px}.composer-extra .context-meter{justify-self:end;min-width:0}.composer-extra .attach-control{grid-column:1/-1;min-width:0}.composer-extra .attach-button{width:28px;height:28px;font-size:18px}.composer textarea{height:46px;max-height:64px;font-size:15px}.composer-primary-actions .send-button{min-width:58px;max-width:76px;height:30px;padding:6px 8px;font-size:11px}.composer-primary-actions .send-button span{margin-left:0}}.model-dialog{color:inherit;margin:auto;padding:0;position:fixed;inset:0}.model-dialog::backdrop{background:#18252245}.model-dialog-list{overscroll-behavior:contain;min-height:0}.model-effort{gap:6px;padding:12px 14px 0;display:flex}.model-effort button{flex:1;min-height:34px}.model-effort button[aria-pressed=true]{background:var(--soft);border-color:var(--accent);color:var(--accent)}@media (max-width:600px){.model-dialog{inset:auto 8px calc(8px + env(safe-area-inset-bottom));width:calc(100vw - 16px);margin:0}.composer-extra:not(.open){display:none}}.openysm-status{max-width:520px;color:var(--text);gap:16px;min-width:0;margin:auto;padding:24px;display:grid}.openysm-status h2{overflow-wrap:anywhere;font-size:18px}.openysm-status p,.openysm-status small{line-height:1.6}.openysm-status small{color:var(--muted)}.openysm-status button{justify-self:start}.modal-scrim{z-index:50;background:#15252050;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.settings-modal,.admin-modal{background:var(--surface,#fff);border:1px solid var(--line);border-radius:10px;width:460px;max-width:100%;max-height:90dvh;overflow:auto;box-shadow:0 20px 60px #17272125}.settings-tabs{border-bottom:1px solid var(--line);gap:8px;padding:12px 20px;display:flex}.settings-tabs button{flex:1}.settings-content{flex-direction:column;gap:18px;padding:22px;display:flex}.settings-content h3{margin:0;font-size:17px;font-weight:500}.account-form{flex-direction:column;gap:16px;display:flex}.auth-mode-actions{flex-wrap:wrap;justify-content:center;gap:5px;display:flex}.account-card{align-items:center;gap:15px;display:flex}.avatar{background:var(--soft);width:46px;height:46px;color:var(--accent);border-radius:50%;place-items:center;font-size:20px;display:grid}.account-card p{color:var(--muted);margin-top:5px;font-size:12px}.settings-content details summary{cursor:pointer;font-size:13px}.settings-content details .account-form{margin-top:16px}.background-sample{border:1px solid var(--line);color:#65716a;background:#f0f2f4 50%/cover;border-radius:8px;place-items:center;height:150px;font-size:12px;display:grid}.button-link{border:1px solid var(--line);color:inherit;background:var(--surface,#fff);border-radius:6px;justify-content:center;align-items:center;padding:8px 12px;font-size:13px;line-height:1.2;text-decoration:none;display:inline-flex}.inline-error{color:#b24632;background:#fff1ea;border-radius:6px;padding:10px;font-size:13px}.inline-success,.success-banner{color:#386951;background:#e7f2eb;border-radius:6px;padding:12px;font-size:13px}.admin-app{color:#293c34;background:#f4f5f7;height:100dvh;padding:0 24px 24px;overflow:auto}.admin-header{border-bottom:1px solid var(--line);align-items:center;gap:22px;height:70px;display:flex}.admin-header>span{color:#6e7b73;font-size:14px}.admin-header-actions{align-items:center;gap:12px;margin-left:auto;font-size:13px;display:flex}.admin-header-actions button{padding:7px 10px;font-size:12px}.admin-layout{gap:28px;min-height:calc(100dvh - 95px);padding-top:24px;display:flex}.admin-nav{flex-direction:column;flex-shrink:0;gap:6px;width:160px;display:flex}.admin-nav button{text-align:left;background:0 0;border-color:#0000;padding:13px}.admin-nav button.chosen{background:#e4ece6}.admin-main{flex:1;min-width:0;padding:0 0 20px}.admin-page-heading{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.admin-toolbar{justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;display:flex}.admin-toolbar p{color:#708075;font-size:13px}.admin-toolbar input{flex:1;max-width:350px}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px;display:grid}.metric-grid>div{border:1px solid var(--line);background:#fff;border-radius:8px;flex-direction:column;gap:16px;padding:24px;display:flex}.metric-grid span{color:#708075;font-size:13px}.metric-grid strong{font-size:26px;font-weight:500}.admin-card{border:1px solid var(--line);background:#fff;border-radius:8px;min-width:0;margin-bottom:16px;padding:22px}.admin-card h2{margin:0 0 14px;font-size:16px;font-weight:500}.admin-card p{color:#6a7970;margin:6px 0;font-size:13px;line-height:1.8}.admin-card .document-actions{flex-wrap:wrap;margin-top:16px}.admin-card .document-actions button{flex:0 auto}.card-heading{justify-content:space-between;align-items:center;gap:15px;display:flex}.status-badge{color:#54715d;background:#edf3ee;border-radius:4px;padding:5px 8px;font-size:11px}.admin-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;display:grid}.admin-url{overflow-wrap:anywhere}.admin-empty{text-align:center;color:#849087;grid-column:1/-1;padding:30px;font-size:13px}.admin-login{border:1px solid var(--line);background:#fff;border-radius:10px;width:400px;max-width:100%;margin:70px auto;padding:28px}.admin-login h1{margin-bottom:25px;font-size:23px;font-weight:500}.admin-login form{flex-direction:column;gap:18px;display:flex}.admin-modal .account-form{padding:22px}.check-field{align-items:center;gap:9px;font-size:13px;display:flex}.admin-create-user{flex-wrap:wrap;gap:8px;display:flex}.admin-create-user input{flex:1;min-width:140px}.admin-create-user select{width:100px}.table-scroll{border:1px solid var(--line);background:#fff;border-radius:8px;overflow:auto}.table-scroll table{border-collapse:collapse;text-align:left;white-space:nowrap;width:100%;font-size:12px}.table-scroll td,.table-scroll th{border-bottom:1px solid #edf0ee;padding:14px 16px}.table-scroll button{padding:5px 9px;font-size:12px}.admin-loading{color:#839087;padding:40px}.admin-modal.data-modal{width:750px}.admin-modal pre{max-height:65dvh;padding:20px;font-family:Consolas,monospace;font-size:12px;overflow:auto}.admin-app>.error-banner,.admin-app>.success-banner{margin-top:15px}@media (max-width:760px){.modal-scrim{padding:8px}.settings-modal,.admin-modal{max-height:95dvh}.settings-content{padding:18px}.admin-app{padding:0 12px 12px}.admin-header{gap:12px;height:58px}.admin-header>.brand strong{display:none}.admin-header>span{font-size:13px}.admin-header-actions{gap:7px}.admin-header-actions>span{display:none}.admin-header-actions .button-link{padding:7px;font-size:11px}.admin-layout{flex-direction:column;gap:20px;padding-top:16px;display:flex}.admin-nav{flex-direction:row;flex-shrink:0;gap:3px;width:100%;overflow:auto}.admin-nav button{white-space:nowrap;padding:10px;font-size:12px}.admin-page-heading{margin-bottom:16px}.admin-page-heading h1{font-size:20px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric-grid>div{padding:17px}.metric-grid strong{font-size:22px}.admin-cards{grid-template-columns:1fr}.admin-toolbar{align-items:flex-start}.admin-toolbar p{font-size:12px}.admin-card{padding:16px}.admin-login{margin:35px auto;padding:22px}.admin-create-user{flex-direction:column}.admin-create-user input,.admin-create-user select{width:100%}}.upstream-list{border:1px solid var(--line);border-radius:8px;gap:10px;max-height:350px;padding:12px;display:grid;overflow:auto}.upstream-choice{border:1px solid var(--line);border-radius:6px;gap:8px;padding:10px;display:grid}.upstream-choice .check-field{overflow-wrap:anywhere}.admin-card summary{cursor:pointer;font-weight:500}.tool-back{background:0 0;border:0;margin-right:8px}.drawer-heading h2{flex:1}:root{--surface:#fff;--page:#f4f5f7;--ink:#28333e;--surface-rgb:255 255 255;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}html[data-theme=dark]{--surface:#232a30;--page:#181e23;--ink:#e0e7eb;--line:#3c464f;--muted:#a2adb6;--accent:#a6c8b0;--soft:#35483c;--surface-rgb:35 42 48;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}body{background:var(--page);color:var(--ink)}button,input,textarea,select,.file-menu,.tool-drawer,.tool-strip{background:var(--surface)}button:hover{background:var(--soft)}.brand{color:var(--ink)}.app-shell{background-position:50%;background-size:cover}.has-background .chat-pane,.has-background .preview-pane{background:rgb(var(--surface-rgb)/var(--panel-opacity,.94))}.chat-pane,.preview-pane{background:var(--surface)}html[data-theme=dark] .preview-stage{background:#1d242b}html[data-theme=dark] .user-message .message-content,html[data-theme=dark] .prompt-examples button{background:#2b343b}html[data-theme=dark] .composer{background:var(--surface);border-color:var(--line)}.asset-selector{border-bottom:1px solid var(--line);flex-shrink:0;align-items:center;gap:6px;padding:9px 12px;display:flex}.asset-selector select{flex:1;min-width:0;padding:7px;font-size:12px}.asset-selector button{padding:7px 9px;font-size:11px}.quick-tabs{min-height:39px;padding:5px 12px}.ai-model-select{text-overflow:ellipsis;background:0 0;border-color:#0000;min-width:100px;max-width:200px;height:30px;padding:4px 7px;font-size:12px;overflow:hidden}.model-picker{z-index:20;min-width:100px;max-width:200px;display:inline-flex;position:relative}.model-picker .ai-model-select{border:1px solid var(--line);cursor:pointer;border-radius:6px;justify-content:space-between;align-items:center;gap:6px;width:100%;display:flex}.model-options{background:var(--surface);border:1px solid var(--line);z-index:50;border-radius:7px;max-height:min(320px,45dvh);padding:4px;position:absolute;left:0;right:0;overflow-y:auto;box-shadow:0 10px 26px #0000002e}.model-picker[data-placement=bottom] .model-options{top:calc(100% + 6px)}.model-picker[data-placement=top] .model-options{bottom:calc(100% + 6px)}.model-options button{text-align:left;white-space:nowrap;text-overflow:ellipsis;border:0;border-radius:4px;width:100%;padding:8px 9px;font-size:12px;display:block;overflow:hidden}.model-options button.selected{background:var(--soft);color:var(--accent)}.composer-actions{gap:5px}.composer-actions .send-button{margin-left:auto}.top-actions button{white-space:nowrap}.project-open{border:0;flex-direction:column;align-items:flex-start;gap:8px;width:100%;padding:6px 0;display:flex}.project-open strong{font-weight:500}.project-open small{color:var(--muted);font-size:11px}.tool-card{border:1px solid var(--line);border-radius:7px;flex-direction:column;gap:12px;padding:14px;display:flex}.tool-card .document-actions{flex-wrap:wrap;margin:0}.tool-command-list button:disabled{opacity:.4}.recipe-grid{grid-template-columns:repeat(3,1fr);gap:7px;width:240px;max-width:100%;margin:auto;display:grid}.recipe-grid button{aspect-ratio:1;overflow-wrap:anywhere;padding:6px;font-size:11px}.list-row{border:1px solid var(--line);border-radius:6px;justify-content:space-between;align-items:center;gap:8px;padding:10px;display:flex}.list-row span{overflow-wrap:anywhere;min-width:0}.list-row button{padding:4px 7px;font-size:11px}.tool-json{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--page);max-width:100%;padding:12px;font:11px/1.6 Consolas,monospace}.large-editor{min-height:220px;font-family:Consolas,monospace;line-height:1.6}.check-result{border:1px solid var(--line);border-radius:6px;gap:8px;padding:10px;font-size:12px;line-height:1.6;display:flex}.check-result.ok{color:#487555}.check-result.warn{color:#9b743c}.check-result.error{color:#b45a48}.check-list{flex-direction:column;gap:8px;display:flex}.hud-preview{justify-content:center;align-items:center;width:100%;height:100%;min-height:180px;padding:20px;display:flex}.hud-surface{touch-action:none;background:linear-gradient(#7eaaab 0 55%,#62815c 55% 100%);width:100%;max-width:720px;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #233b3b20}.hud-element{-webkit-user-select:none;user-select:none;align-items:center;font-family:Microsoft YaHei,sans-serif;font-size:clamp(10px,1.2vw,18px);display:flex;position:absolute;overflow:hidden}.hud-element.selected{outline:2px solid #fbd65b}.hud-bar{height:100%;display:block;box-shadow:inset 0 0 0 2px #0003}.hud-panel{color:#eee;border:2px solid #0005;place-items:center;width:100%;height:100%;font-size:11px;display:grid}.hud-edit-row{align-items:flex-end;gap:6px;display:flex}.hud-edit-row label{flex:1}.hud-edit-row>input{width:40px;height:38px;padding:3px}.drawer-body .hud-preview{padding:0}.asset-list>input{width:100%;margin-bottom:10px}html[data-theme=dark] .admin-app{--surface:#fff;--line:#e1e5e9;--muted:#78828d;--accent:#426854;--soft:#e8efea;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}html[data-theme=dark] .admin-app input,html[data-theme=dark] .admin-app select,html[data-theme=dark] .admin-app textarea{color:#293c34;background:#fff}@media (max-width:760px){.topbar{gap:6px}.top-actions{gap:3px}.top-actions>button{padding:7px 6px;font-size:11px}.workspace-switch{gap:3px;min-width:76px}.brand strong{display:none}.project-name{flex:1}.project-name input{max-width:100%}.asset-selector{padding:6px 9px}.quick-tabs{display:none}.ai-model-select{min-width:85px;max-width:165px;font-size:11px}.hud-preview{padding:12px}.hud-element{font-size:11px}.preview-actions{gap:0}.tool-card{padding:12px}.settings-modal .drawer-heading h2{font-size:17px}.has-background .mobile-tabs button{background:rgb(var(--surface-rgb)/.8)}}.field{color:var(--muted)}.field input,.field textarea,.field select{color:var(--ink)}html[data-theme=dark] .admin-app{--ink:#293c34}.admin-modal{color:#293c34;--ink:#293c34;--surface:#fff;--line:#e1e5e9;--muted:#78828d;--soft:#e8efea;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.admin-modal input,.admin-modal select{background:#fff}.mobile-tabs button{color:var(--muted)}.mobile-tabs button.chosen{color:var(--accent);border-color:var(--line)}html[data-theme=dark] .mobile-tabs button{background:var(--surface)}.brand{flex-shrink:0;line-height:0}.brand-wordmark{object-fit:contain;width:142px;height:35px;display:block}.brand-mark{object-fit:contain;width:30px;height:30px;display:none}.admin-header .brand-wordmark{width:132px}.reference-modal{background:var(--surface);border:1px solid var(--line);border-radius:10px;flex-direction:column;width:620px;max-width:calc(100vw - 24px);max-height:90dvh;display:flex;overflow:hidden;box-shadow:0 12px 50px #15242d20}.reference-modal .settings-content{flex-direction:column;gap:16px;padding:20px;display:flex;overflow:auto}.reference-kind{gap:8px;display:flex}.reference-kind button{flex:1}.reference-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.reference-card{border:1px solid var(--line);border-radius:7px;flex-direction:column;gap:8px;min-width:0;padding:8px;display:flex;position:relative;overflow:hidden}.reference-card img{object-fit:contain;background:var(--page);border-radius:4px;width:100%;height:125px}.reference-card select{width:100%;padding:6px;font-size:12px}.reference-card span{white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.reference-card>button{background:var(--surface);padding:2px 6px;font-size:18px;position:absolute;top:12px;right:12px}.composer-references{gap:8px;max-height:90px;padding:0 3px 8px;display:flex;overflow:auto}.composer-references>div{flex-direction:column;flex:0 0 66px;gap:3px;display:flex;position:relative}.composer-references img{object-fit:cover;border:1px solid var(--line);border-radius:4px;width:66px;height:48px}.composer-references span{color:var(--muted);font-size:10px}.composer-references button{background:var(--surface);padding:0 4px;position:absolute;top:-2px;right:-3px}.composer-references .reference-edit{white-space:nowrap;align-self:center;padding:5px 7px;font-size:11px;position:static}.message-references{flex-wrap:wrap;gap:5px;margin-top:8px;display:flex}.message-references span{border:1px solid var(--line);overflow-wrap:anywhere;max-width:100%;color:var(--muted);border-radius:4px;padding:4px 7px;font-size:11px}.attach-control{position:relative}.attachment-menu{border:1px solid var(--line);background:var(--surface);z-index:12;border-radius:7px;flex-direction:column;width:175px;padding:6px;display:flex;position:absolute;bottom:38px;left:0;box-shadow:0 5px 22px #1e2a3020}.attachment-menu button{text-align:left;border:0;padding:11px;font-size:12px}.building-scene{width:100%;height:100%;position:relative}.particle-overlay{pointer-events:none;position:absolute;inset:0}.particle-overlay canvas{width:100%;height:100%;display:block}.particle-overlay button{pointer-events:auto;font-size:12px;bottom:16px;left:14px;transform:none}.large-editor{font-family:inherit}.drawer-body>.drawer-heading{padding:10px 0}.drawer-body .check-field{align-items:center;gap:9px;display:flex}.drawer-body .check-field input{width:auto}.reference-modal .inline-error{line-height:1.6}@media (max-width:1000px){.brand-wordmark{width:120px}}@media (max-width:760px){.brand-wordmark{display:none}.brand-mark{width:29px;height:29px;display:block}.admin-header .brand-wordmark{width:100px;display:block}.admin-header .brand-mark{display:none}.reference-modal{max-width:calc(100vw - 16px);max-height:92dvh}.reference-modal .settings-content{gap:12px;padding:14px}.reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.reference-card img{height:100px}.composer-references{max-height:77px}.composer-references img{height:40px}.topbar .project-name input{max-width:100%}.composer-actions .ai-model-select{flex:1;min-width:0;max-width:calc(100% - 110px)}}.app-shell.has-background{isolation:isolate;background-position:50%;background-size:cover;position:relative}.app-shell.has-background:before{content:"";z-index:-1;background-image:inherit;filter:blur(3px);background-position:50%;background-size:cover;position:absolute;inset:0;transform:scale(1.025);box-shadow:inset 0 0 0 100vmax #10232d22}.has-background .chat-pane,.has-background .preview-pane{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.has-background .topbar{background:rgb(var(--surface-rgb)/.85);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:0 0 9px 9px;padding:0 12px}.has-background .preview-stage{background:rgb(var(--surface-rgb)/.75)}.advanced{border:1px solid var(--line);border-radius:8px;padding:12px}.advanced summary,.rule-detail summary{cursor:pointer;font-size:13px;font-weight:500}.advanced[open]{flex-direction:column;gap:14px;display:flex}.advanced .tool-command-list{margin-top:12px}.tool-context{color:var(--muted);font-size:13px}.common-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.common-tools button{align-items:center;min-height:54px;padding:14px}.rule-detail[open]>summary{margin-bottom:10px}.recipe-grid button{background:var(--page);border:1px solid var(--line);font-size:13px}.recipe-grid button:empty{font-size:24px}.background-sample{background-position:50%;background-size:cover}.shader .scene-presets button{color:#22373a;background:#ffffffd9}.shader .scene-presets button.chosen{background:#ecf3df;border-color:#bad1a6}.file-menu>button:has(small){flex-direction:column;align-items:flex-start;gap:5px;display:flex}.file-menu>button small{color:var(--muted);font-size:11px;line-height:1.4}.file-menu>button strong{font-size:13px;font-weight:500}.preset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.preset-grid button{padding:10px;font-size:12px}.list-row small{color:var(--muted);margin-top:4px;font-size:11px;display:block}.document-actions input{flex:1;min-width:0}.hud-edit-row{border:1px solid var(--line);border-radius:8px;flex-wrap:wrap;padding:10px}.hud-edit-row label{min-width:65px}.view-tabs{flex-wrap:wrap}.view-tabs .export-button{white-space:nowrap}.tool-context small{font-size:12px}.common-tools{gap:8px}.menu-label{color:var(--muted);padding:5px 10px;font-size:11px}.file-menu{max-height:calc(100dvh - 90px);overflow:auto}:root{--page:#e8edf0}.preview-stage{background:#b7c5cc}.drawer-texture,.texture-preview{background-color:#8796a1!important}.resource-select:hover{background:#e1e9ed}html[data-theme=dark] .resource-select:hover{background:#34424b}.preview-stage>.studio-frame{min-height:240px}@media (max-width:760px){.view-tabs{flex-wrap:wrap;gap:1px;padding:4px 6px}.view-tabs button{white-space:nowrap;padding:5px 7px}.preview-stage{min-height:200px}.studio-frame{min-height:240px}}.drawer-body .hud-preview{flex:none;height:auto;min-height:0}.drawer-body>.document-actions{flex-wrap:wrap}@media (max-width:760px){.app-shell{overflow:hidden}.topbar{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"brand project""actions actions";align-items:center;gap:4px 8px;height:auto;min-height:92px;padding:7px 0;display:grid}.topbar .brand{grid-area:brand;min-width:29px}.topbar .project-name{grid-area:project;gap:6px;width:100%}.topbar .project-name input{width:100%;min-width:0;max-width:none;padding-right:4px}.topbar .top-actions{grid-area:actions;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:5px;width:100%;display:grid}.topbar .workspace-switch{justify-content:space-between;width:100%;min-width:0}.topbar .top-actions>button:not(.workspace-switch){min-width:48px;padding-inline:8px}.mobile-tabs{margin-top:0}.chat-target-row{min-width:0}.quota-badge{white-space:normal;padding-inline:12px;line-height:1.5}.target-summary{padding-inline:12px}.target-summary button{flex:none}.target-picker{gap:9px;padding-inline:12px}.target-picker label,.loader-field{flex-basis:100%;min-width:0}.preview-pane .pane-heading{flex-wrap:wrap;align-items:center;row-gap:5px;height:auto;min-height:46px;padding:8px 12px}.preview-pane .preview-title{flex:calc(100% - 90px);min-width:0}.preview-pane .preview-actions{flex:100%;justify-content:flex-end;min-width:0;padding-top:2px;overflow-x:auto}.preview-pane .preview-actions button{flex:none}.composer-actions{grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:5px;display:grid}.composer-actions .ai-model-select{grid-column:1;width:100%;min-width:0;max-width:none}.composer-actions .context-wrapper{grid-column:2}.composer-actions .attach-control{grid-column:3}.composer-actions .send-button{white-space:nowrap;grid-column:4;margin-left:0}.composer-actions .send-button span{margin-left:4px}.drawer-body .field-row{grid-template-columns:minmax(0,1fr);gap:12px;display:grid}}@media (max-width:380px){.topbar{min-height:96px}.topbar .top-actions>button:not(.workspace-switch){min-width:44px;padding-inline:6px;font-size:11px}.composer{margin-inline:6px}.composer-actions{grid-template-columns:minmax(0,1fr) auto auto}.composer-actions .send-button{grid-column:3}.composer-actions .attach-control{grid-column:2}.composer-actions .context-wrapper{display:none}.preview-pane .preview-actions{justify-content:flex-start}}.account-avatar{background:var(--soft);width:48px;height:48px;color:var(--accent);border-radius:50%;flex:none;place-items:center;font-size:20px;font-weight:600;display:grid;overflow:hidden}.account-avatar img{object-fit:cover;width:100%;height:100%}.profile-actions{margin:10px 0 14px}.settings-section{border-bottom:1px solid var(--line);gap:12px;padding:14px 0;display:grid}.settings-section:first-of-type{padding-top:0}.settings-section:last-of-type{border-bottom:0}.settings-section h3{margin:0;font-size:14px;font-weight:600}.settings-section .field-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.settings-section input[type=color]{height:38px;padding:4px}.settings-section .background-sample{min-height:150px}@media (max-width:420px){.settings-section .field-row{grid-template-columns:1fr}.settings-section .background-sample{min-height:120px}.profile-actions{flex-direction:column}.profile-actions button{width:100%}}.model-picker.open .model-options{z-index:1000;max-height:min(300px,42dvh);position:fixed;inset:auto auto 82px 8px}.reasoning-control{color:var(--muted);justify-content:flex-end;align-items:center;gap:8px;font-size:11px;display:flex}.composer-actions .reasoning-control label{color:var(--muted);align-items:center;gap:4px;font-size:11px;display:flex}.reasoning-control label{color:var(--ink);align-items:center;gap:6px;font-size:12px;display:flex}.reasoning-control select{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:5px;padding:4px 22px 4px 7px;font-size:12px}.model-select-label{text-overflow:ellipsis;white-space:nowrap;text-align:left;min-width:0;overflow:hidden}@media (max-width:760px){.composer{flex:none;min-width:0;margin:0 8px 8px;padding:8px}.composer textarea{min-height:52px;max-height:100px;line-height:1.5}.composer-actions{grid-template-columns:minmax(0,1fr) auto auto auto;grid-template-areas:"model model model model""thinking context attach send";align-items:center;gap:6px;display:grid}.composer-actions .model-picker{grid-area:model;width:100%;min-width:0;max-width:none;display:block}.composer-actions .ai-model-select{border-color:var(--line);background:var(--surface);grid-column:auto;justify-content:space-between;width:100%;min-width:0;max-width:none;min-height:36px;padding:6px 10px;font-size:12px;display:flex}.composer-actions .reasoning-control{grid-area:thinking;justify-content:flex-start;min-width:0}.composer-actions .context-wrapper{grid-area:context/auto}.composer-actions .attach-control{grid-area:attach/auto}.composer-actions .send-button{white-space:nowrap;grid-area:send/auto;margin:0}.composer-actions .model-options{z-index:1000;max-height:min(300px,42dvh);top:auto!important;left:8px!important;right:auto!important;bottom:calc(env(safe-area-inset-bottom) + 94px)!important;width:min(280px,100vw - 16px)!important;position:fixed!important}.chat-pane{min-height:0}.chat-scroll{overscroll-behavior:contain}}@media (max-width:380px){.composer-actions{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"model model model""thinking attach send"}.composer-actions .context-wrapper{display:none}.composer-actions .reasoning-control select{padding-inline:5px}}@media (max-width:760px){.composer{margin:0 8px 8px;padding:8px}.composer textarea{min-height:54px;max-height:104px;line-height:1.5}.composer-actions{grid-template-columns:minmax(0,1fr) auto auto auto;grid-template-areas:"model model model model""thinking context attach send";gap:7px 6px}.composer-actions .model-picker{grid-area:model;width:100%;min-width:0;max-width:none}.composer-actions .ai-model-select{border-color:var(--line);background:var(--surface);justify-content:space-between;width:100%;min-width:0;max-width:none;min-height:34px;padding-inline:9px;font-size:12px}.composer-actions .reasoning-control{grid-area:thinking;justify-content:flex-start;min-width:0}.composer-actions .context-wrapper{grid-area:context;min-width:0}.composer-actions .attach-control{grid-area:attach}.composer-actions .send-button{grid-area:send}.composer-actions .model-picker,.composer-actions .reasoning-control,.composer-actions .context-wrapper,.composer-actions .attach-control,.composer-actions .send-button{grid-column:auto}.model-picker.open .model-options{z-index:1000;max-height:min(300px,42dvh);width:auto!important;position:fixed!important;bottom:96px!important;left:8px!important;right:8px!important}}@media (max-width:380px){.composer{margin-inline:6px;padding:7px}.composer-actions{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"model model model""thinking attach send"}.composer-actions .context-wrapper{display:none}.composer-actions .model-picker{width:100%}}.chat-target-row{flex-shrink:0}.quota-badge{color:var(--muted);border-bottom:1px solid var(--line);padding:0 18px 6px;font-size:11px;display:block}.shader .chat-target-row{grid-area:2/1/auto/-1}.shader .chat-pane{grid-template-rows:45px auto minmax(0,1fr)}.shader .chat-scroll,.shader .composer{grid-row:3}.shader .quota-badge{padding-top:6px}.admin-app{--accent:#2563eb;--soft:#eff4ff;--line:#dce3ed;--muted:#64748b;--text:#172b4d;color:#172b4d;background:#f3f5f9;padding:0}.admin-header{z-index:10;background:#fff;height:66px;padding:0 28px;position:sticky;top:0}.admin-header>span{color:#64748b}.admin-layout{gap:0;min-height:calc(100dvh - 66px);padding-top:0}.admin-nav{background:#152238;gap:8px;width:206px;height:calc(100dvh - 66px);padding:26px 14px;position:sticky;top:66px}.admin-nav:before{content:"管理控制台";color:#8da0bc;letter-spacing:2px;padding:0 14px 18px;font-size:11px}.admin-nav button{color:#bfcce0;border-radius:7px;padding:13px 15px;font-size:13px}.admin-nav button:hover{background:#223550}.admin-nav button.chosen{color:#fff;background:#2563eb}.admin-main{align-self:flex-start;width:100%;max-width:1600px;margin:auto;padding:28px 32px}.admin-page-heading{margin-bottom:22px}.admin-page-heading h1{font-size:24px;font-weight:650}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.metric-grid>div{border-color:#e0e6ef;gap:14px;padding:20px;box-shadow:0 2px 4px #172b4d04}.metric-grid strong{color:#172b4d;font-size:27px;font-weight:650}.metric-grid span{color:#64748b}.admin-card{border-color:#e0e6ef;border-radius:8px;box-shadow:0 2px 5px #172b4d04}.admin-card h2{color:#263c59;font-weight:600}.admin-card p,.admin-toolbar p{color:#64748b}.admin-app .primary{color:#fff;background:#2563eb;border-color:#2563eb}.admin-app button:focus-visible,.admin-app input:focus-visible,.admin-app select:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.admin-app input,.admin-app select{border-color:#dce3ed;border-radius:6px}.table-scroll th{color:#536984;background:#f4f7fb;font-weight:600}.table-scroll td{color:#334760}.table-scroll tr:hover td{background:#f8faff}.table-scroll button{margin-right:5px}.status-badge{color:#325aa1;background:#eaf0fb}.quota-form{grid-template-columns:repeat(3,minmax(120px,1fr)) auto;align-items:end;gap:14px;margin-top:18px;display:grid}.quota-form .field{margin:0}.quota-form button{height:38px}.admin-app>.success-banner{margin:14px 28px}.admin-login{box-shadow:0 8px 35px #172b4d09}.admin-main .card-heading input{min-width:0;max-width:250px}.admin-app .button-link{background:#fff}.admin-app .admin-header .brand{max-width:160px}@media (max-width:1100px){.admin-main{padding:24px 20px}.admin-nav{width:174px}.metric-grid,.quota-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.admin-header{gap:10px;height:60px;padding:0 12px}.admin-header>span{display:none}.admin-header-actions{gap:7px}.admin-header-actions>span{display:none}.admin-layout{display:block}.admin-nav{z-index:9;flex-direction:row;gap:5px;width:100%;height:auto;padding:8px;display:flex;position:sticky;top:60px;overflow:auto}.admin-nav:before{display:none}.admin-nav button{white-space:nowrap;padding:10px 13px}.admin-main{padding:20px 12px}.admin-cards{grid-template-columns:1fr}.admin-card{padding:16px}.metric-grid{gap:9px}.metric-grid>div{padding:16px}.metric-grid strong{font-size:23px}.quota-form{gap:10px}.card-heading{flex-wrap:wrap}.admin-app>.success-banner{margin:10px 12px}.admin-page-heading h1{font-size:21px}}.admin-main{margin:0 auto}.admin-app .success-banner{z-index:15;max-width:calc(100vw - 40px);margin:0;position:fixed;top:70px;right:20px;box-shadow:0 4px 18px #172b4d12}.admin-nav.admin-groups{border-right:1px solid var(--line);background:#fff;gap:7px;overflow-y:auto}.admin-nav.admin-groups:before{content:"管理控制台";color:var(--muted);letter-spacing:0}.admin-nav.admin-groups button{color:#53657b;align-items:center;gap:10px;min-height:44px;display:flex}.admin-nav.admin-groups button:hover{background:#f0f3f8}.admin-nav.admin-groups button.chosen{color:#2056bc;background:#eaf0fd;font-weight:600}.admin-nav.admin-groups button svg{flex-shrink:0}.admin-breadcrumb{color:var(--muted);margin-bottom:6px;font-size:12px;display:block}.admin-page-heading h1{margin:0}.admin-refresh{flex-shrink:0;align-items:center;gap:7px;display:flex}.admin-subnav{border-bottom:1px solid var(--line);flex-wrap:wrap;gap:4px;margin:-5px 0 24px;padding-bottom:0;display:flex}.admin-subnav button{color:#53657b;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;padding:12px 14px;font-size:13px}.admin-subnav button.chosen{color:#2056bc;border-bottom-color:#2563eb;font-weight:600}.admin-subnav button:hover{background:#eaf0fd}.admin-subnav button:focus-visible{outline-offset:-3px}@media (max-width:760px){.admin-nav.admin-groups{border-right:0;border-bottom:1px solid var(--line);gap:3px;overflow:auto hidden}.admin-nav.admin-groups:before{display:none}.admin-nav.admin-groups button{flex-shrink:0;gap:6px;min-height:40px;padding:10px;font-size:12px}.admin-nav.admin-groups button svg{width:16px;height:16px}.admin-subnav{gap:0;margin:0 0 18px}.admin-subnav button{padding:11px 10px;font-size:12px}.admin-breadcrumb{margin-bottom:4px}.admin-page-heading{gap:10px}.admin-page-heading h1{font-size:20px}}.loader-select{width:100%;min-width:0;position:relative}.loader-select>img{object-fit:contain;pointer-events:none;width:23px;height:23px;position:absolute;top:50%;left:9px;transform:translateY(-50%)}.target-picker .loader-select>select{padding-left:39px}.recipe-grid button{flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:0;display:flex}.recipe-item-name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:10px;line-height:1.25;overflow:hidden}.recipe-grid .recipe-plus{color:var(--muted);font-size:24px}.resource-choice,.resource-preview{align-items:center;gap:10px;display:flex}.resource-choice{justify-content:flex-start}.resource-preview{color:var(--muted);font-size:12px}.material-grid button{align-items:center}.material-role>.material-icon{margin-right:4px}.save-recovery{z-index:45;border:1px solid var(--line);background:var(--surface);border-radius:8px;align-items:center;gap:12px;width:max-content;max-width:calc(100vw - 32px);padding:12px 16px;font-size:13px;line-height:1.6;display:flex;position:fixed;bottom:20px;left:50%;transform:translate(-50%);box-shadow:0 4px 20px #172b4d15}.save-recovery button{border:0;flex-shrink:0;padding:4px 8px}@media (max-width:480px){.recipe-grid .material-icon{width:34px!important;height:34px!important}.save-recovery{bottom:12px}}.recipe-result{border:1px solid var(--line);background:var(--page);border-radius:6px;justify-content:center;align-items:center;gap:12px;padding:10px;font-size:12px;display:flex}.target-picker .loader-select select[aria-label=选择模组加载器]{padding-left:39px}html body .material-icon{image-rendering:pixelated;background:#8b8b8b url(/vanilla/gui/inventory-slot.png) 50%/100% 100%!important;border-radius:0!important}html body .material-icon>img{padding:10%}html body .material-icon .icon-fallback{color:#ddd}.tool-hint{color:var(--muted);margin:0;font-size:11px;line-height:1.65}.tool-scope{border-bottom:1px solid var(--line);padding-bottom:12px;font-size:11px}.content-create{gap:12px;display:grid}.content-create>strong{font-size:14px;font-weight:550}.texture-preview>select{width:250px;max-width:calc(100% - 32px)}.resource-choice>span{overflow-wrap:anywhere;text-align:left;min-width:0}.material-scrim{isolation:isolate}.quick-tabs>div>button:first-child{text-overflow:ellipsis;white-space:nowrap;max-width:160px;overflow:hidden}.preview-title .section-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.preview-actions{flex-shrink:0}@media (max-width:480px){.quick-tabs>div>button:first-child{max-width:120px}.asset-selector>select{flex:1;min-width:0}.asset-selector{gap:4px}}.app-shell.has-background:before{background-image:var(--custom-background-image);background-size:inherit;background-position:inherit;filter:blur(var(--background-blur,3px));box-shadow:inset 0 0 0 100vmax var(--background-overlay,transparent);background-repeat:no-repeat}.app-shell .chat-pane,.app-shell .preview-pane{background:rgb(var(--surface-rgb)/var(--panel-opacity,.94))}.app-shell .primary,.app-shell .send-button{background:var(--custom-accent,#426854);border-color:var(--custom-accent,#426854);color:var(--accent-foreground,#fff)}.app-shell .primary:hover,.app-shell .send-button:hover{filter:brightness(.94)}.settings-button{justify-content:center;align-items:center;gap:6px;display:flex}.header-avatar{background:var(--soft);width:24px;height:24px;color:var(--accent);border-radius:50%;flex:none;place-items:center;font-size:12px;display:grid;overflow:hidden}.header-avatar img{object-fit:cover;width:100%;height:100%}.settings-modal{flex-direction:column;display:flex;overflow:hidden}.settings-modal>.drawer-heading,.settings-tabs{flex:none}.settings-content{overscroll-behavior:contain;min-height:0;overflow-y:auto}@media (max-width:760px){.topbar .settings-button{display:flex}.header-avatar{width:21px;height:21px}.settings-modal{overscroll-behavior:contain}.settings-tabs button{min-height:42px}.settings-content .document-actions{flex-wrap:wrap}.settings-content .document-actions button{min-height:42px}.user-actions{flex-wrap:wrap}}:root{--accent:#087f83;--soft:#e8f3f2;--muted:#6c777d;--line:#dce2e4}.app-shell{--shell:#f0f2f3;--surface:#fff;--surface-rgb:255 255 255;--text:#283238;--ink:#283238;--muted:#6c777d;--line:#dce2e4;--soft:#e8f3f2;--accent:#087f83;--accent-foreground:#fff;background:var(--shell);color:var(--ink);isolation:isolate;gap:0;padding:0}[data-theme=dark] .app-shell{--shell:#181c1e;--surface:#23292c;--surface-rgb:35 41 44;--text:#e3e8ea;--ink:#e3e8ea;--muted:#a4b0b5;--line:#394246;--soft:#283e40;--accent:#6bc9ca;--accent-foreground:#152d2e}.app-shell button,.app-shell input,.app-shell textarea,.app-shell select{letter-spacing:0;border-radius:5px}.app-shell button{justify-content:center;align-items:center;gap:6px;min-width:0;display:inline-flex}.app-shell button:hover{background:var(--soft)}.app-shell button.chosen{border-color:var(--accent);color:var(--accent);background:var(--soft)}.app-shell button:focus-visible,.app-shell a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app-shell .topbar{background:var(--surface);border-bottom:1px solid var(--line);z-index:45;flex:none;gap:22px;height:56px;min-height:56px;padding:0 20px}.app-shell .brand{letter-spacing:0;flex-shrink:0;gap:8px}.app-shell .brand-mark{object-fit:contain;width:28px;height:28px;display:none}.app-shell .brand-wordmark{object-fit:contain;width:128px;height:28px}.app-shell .project-name{flex:1;gap:10px;min-width:0}.app-shell .project-name input{width:210px;max-width:100%;font-size:13px}.app-shell .save-state{color:var(--muted);white-space:nowrap;font-size:10px}.app-shell .top-actions{flex:none;gap:8px}.app-shell .top-actions>button{height:34px;padding:5px 10px;font-size:12px}.app-shell .top-actions .projects-header{display:none}.app-shell .workspace-switch{border-color:var(--line);min-width:102px}.app-shell .file-menu{background:var(--surface);max-height:calc(100dvh - 80px);top:49px;right:16px;overflow:auto}.app-shell .file-menu>button{justify-content:flex-start}.app-shell .workspace{flex:1;grid-template:"rail chat preview"minmax(0,1fr)/56px 384px minmax(0,1fr);gap:0;min-width:0;min-height:0;padding:0;display:grid;position:relative}.app-shell .workspace-rail{border-right:1px solid var(--line);background:var(--surface);flex-direction:column;grid-area:rail;gap:6px;min-height:0;padding:12px 5px;display:flex;overflow:auto}.app-shell .workspace-rail button{min-height:54px;color:var(--muted);background:0 0;border:0;flex-direction:column;flex:none;gap:5px;padding:8px 2px}.app-shell .workspace-rail button:hover,.app-shell .workspace-rail button.chosen{color:var(--accent);background:var(--soft)}.app-shell .workspace-rail span{font-size:10px;line-height:1.3}.rail-spacer{flex:1;min-height:20px}.app-shell .preview-pane,.app-shell .chat-pane{background:rgb(var(--surface-rgb)/var(--panel-opacity,.98));border:0;border-radius:0;flex-direction:column;min-width:0;min-height:0;display:flex}.app-shell .preview-pane{grid-area:preview}.app-shell .chat-pane{border-right:1px solid var(--line);grid-area:chat}.app-shell .pane-heading{border-bottom:1px solid var(--line);flex:none;gap:8px;height:50px;min-height:50px;padding:0 18px}.app-shell .section-label{font-size:13px;font-weight:600}.app-shell .chat-actions{gap:4px}.app-shell .chat-actions .icon-button{width:28px;height:28px}.app-shell .service-status{margin-right:8px;font-size:10px}.app-shell .chat-target-row{border-bottom:1px solid var(--line);flex:none;padding:0 6px;display:block}.app-shell .target-container{border:0;width:100%}.app-shell .chat-scroll{scrollbar-width:thin;overscroll-behavior:contain;flex:1;min-height:0;padding:22px 20px;overflow:auto}.app-shell .chat-empty{height:100%;min-height:120px;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:12px;display:flex}.app-shell .chat-empty img{object-fit:contain;opacity:.6;width:36px;height:36px}.app-shell .chat-empty h2{margin:0;font-size:14px;font-weight:400}.app-shell .message{margin-bottom:25px}.app-shell .older-messages{color:var(--muted);border:1px solid var(--line);background:0 0;margin:0 auto 20px;padding:7px 12px;font-size:12px;display:flex}.app-shell .message-role{color:var(--muted);margin-bottom:9px;font-size:11px}.app-shell .message-content{overflow-wrap:anywhere;font-size:13px;line-height:1.85}.app-shell .user-message .message-content{background:var(--soft);border-radius:6px;padding:11px 13px}.app-shell .chat-input-area{border-top:1px solid var(--line);background:rgb(var(--surface-rgb)/var(--panel-opacity,.98));flex:none;min-width:0;padding:12px 16px 10px}.app-shell .chat-composer{border:1px solid var(--line);background:var(--surface);border-radius:8px;min-width:0;margin:0;padding:10px}.app-shell .chat-composer:focus-within{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.app-shell .chat-composer textarea{resize:vertical;width:100%;height:84px;min-height:60px;max-height:180px;color:var(--ink);background:0 0;border:0;outline:0;padding:2px 2px 8px;font-family:inherit;font-size:14px;line-height:1.65;display:block;overflow:auto}.app-shell .chat-composer textarea::placeholder{color:var(--muted);opacity:.85}.app-shell .input-actions{justify-content:space-between;align-items:center;gap:8px;min-height:36px;display:flex}.app-shell .input-actions .send-button{background:var(--accent);width:36px;min-width:36px;max-width:none;height:36px;color:var(--accent-foreground);border:0;flex:none;margin:0;padding:0}.app-shell .input-actions .send-button:disabled{opacity:.35}.app-shell .input-actions .attach-button{width:36px;min-width:36px;height:36px;color:var(--muted);background:0 0;border:0;padding:0}.app-shell .input-actions .attachment-menu{max-width:calc(100vw - 40px);inset:auto auto calc(100% + 8px) 0}.app-shell .attachment-menu button{justify-content:flex-start}.app-shell .chat-meta{min-height:20px;color:var(--muted);justify-content:space-between;align-items:center;gap:12px;margin:9px 2px 0;font-size:10px;display:flex}.app-shell .quota-badge{color:var(--muted);border:0;padding:6px 2px 0;font-size:10px}.app-shell .preview-title{flex:1;gap:9px;min-width:0}.app-shell .preview-title .section-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.app-shell .asset-kind{color:var(--muted);border:1px solid var(--line);border-radius:4px;flex:none;padding:3px 6px;font-size:10px}.app-shell .preview-actions{flex:none;gap:6px;display:flex}.app-shell .preview-actions button{height:32px;padding:5px 8px;font-size:12px}.app-shell .asset-selector{display:none}.app-shell .quick-tabs{background:var(--surface);scrollbar-width:thin;flex-wrap:nowrap;flex:none;gap:4px;min-height:0;padding:0 12px;display:flex;overflow-x:auto}.app-shell .quick-tabs:not(:empty){border-bottom:1px solid var(--line);padding-top:6px;padding-bottom:6px}.app-shell .quick-tabs>div{flex:none;max-width:190px;height:30px}.app-shell .quick-tabs>div>button:first-child{text-overflow:ellipsis;white-space:nowrap;font-size:11px;display:block;overflow:hidden}.app-shell .quick-tabs .close-quick{width:22px;padding:2px;font-size:14px}.app-shell .view-tabs{background:var(--surface);flex:none;gap:4px;padding:7px 14px}.app-shell .view-tabs button{height:30px;padding:5px 9px;font-size:11px}.app-shell .preview-stage{background:#bac7cb;flex-direction:column;flex:1;min-height:0;display:flex}.app-shell .preview-stage>div:not(.empty-preview){flex:1;min-height:0}.app-shell .preview-stage .empty-preview{color:var(--ink);background:#edf1f2;flex:1;gap:18px;min-height:0;padding:28px}[data-theme=dark] .app-shell .preview-stage .empty-preview{background:#2c3337}.app-shell .empty-preview-mark{color:var(--muted);opacity:.7;justify-content:center;display:flex}.app-shell .empty-preview h2{color:var(--ink);margin:0;font-size:18px;font-weight:500}.app-shell .start-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:290px;max-width:100%;display:grid}.app-shell .start-options button{background:var(--surface);gap:10px;height:46px;font-size:12px}.app-shell .empty-preview .text-button{padding:6px 10px;font-size:12px}.app-shell .tool-strip{background:var(--surface);scrollbar-width:thin;flex-wrap:nowrap;flex:none;gap:4px;min-height:46px;padding:8px 14px;overflow-x:auto}.app-shell .tool-strip button{border-color:#0000;flex:none;height:30px;padding:5px 11px;font-size:11px}.app-shell .mobile-tabs,.app-shell .navigator-toggle{display:none}.app-shell .content-navigator{background:var(--surface);min-width:0;min-height:0;display:none;overflow:hidden}.app-shell.navigator-open .content-navigator{z-index:40;border-right:1px solid var(--line);flex-direction:column;width:288px;display:flex;position:absolute;inset:0 auto 0 56px;box-shadow:8px 0 24px #0002}.app-shell .navigator-scrim{z-index:35;background:#18212433;border:0;border-radius:0;position:absolute;inset:0}.app-shell .navigator-scrim:hover{background:#18212433}.app-shell .navigator-heading{border-bottom:1px solid var(--line);flex:none;justify-content:space-between;align-items:center;gap:8px;height:50px;min-height:50px;padding:0 16px;display:flex}.app-shell .navigator-heading strong{font-size:13px;font-weight:600}.app-shell .nav-mobile-close{display:inline-flex}.app-shell .navigator-actions{gap:6px;margin:14px 12px 12px;display:flex}.app-shell .navigator-actions>button:first-child{flex:1;justify-content:flex-start;height:38px;font-size:12px}.app-shell .navigator-actions .icon-button{width:36px;height:38px}.app-shell .navigator-search{border:1px solid var(--line);color:var(--muted);border-radius:5px;flex:none;align-items:center;gap:8px;margin:0 12px 10px;padding:0 10px;display:flex}.app-shell .navigator-search input{background:0 0;border:0;outline:0;width:100%;min-width:0;padding:9px 0;font-size:12px}.app-shell .overview-nav{border:0;flex:none;justify-content:flex-start;height:36px;margin:0 9px 6px;padding:7px 10px;font-size:12px}.app-shell .overview-nav span{text-align:left;flex:1}.app-shell .overview-nav small{color:var(--muted);font-size:11px}.app-shell .navigator-tree{scrollbar-width:thin;flex:1;min-height:60px;padding:0 9px 10px;overflow:auto}.app-shell .tree-group-heading{color:var(--muted);justify-content:space-between;align-items:center;padding:14px 9px 7px;font-size:11px;display:flex}.app-shell .tree-group-heading span{font-variant-numeric:tabular-nums}.app-shell .tree-item{text-align:left;border:0;justify-content:flex-start;gap:8px;width:100%;height:42px;padding:6px 9px;font-size:12px}.app-shell .tree-item>span:not(.material-icon){text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.app-shell .tree-item>svg,.app-shell .tree-item .material-icon{flex:none}.app-shell .tree-row{grid-template-columns:minmax(0,1fr) 28px;display:grid;position:relative}.app-shell .content-actions{align-self:center}.app-shell .content-actions summary{cursor:pointer;color:var(--muted);padding:4px;list-style:none}.app-shell .content-actions summary::-webkit-details-marker{display:none}.app-shell .content-actions>div{background:var(--surface);border:1px solid var(--line);z-index:2;border-radius:5px;grid-column:1/-1;padding:3px;display:grid;position:relative}.app-shell .content-actions[open]{grid-column:1/-1;padding:0 5px 5px}.app-shell .content-actions[open] summary{text-align:right}.app-shell .content-actions button{border:0;justify-content:flex-start;min-height:34px;padding:6px 9px;font-size:12px}.app-shell .navigator-empty{color:var(--muted);text-align:center;padding:28px 10px;font-size:12px}.app-shell .navigator-tools{display:none}.app-shell .navigator-footer{border-top:1px solid var(--line);flex:none;align-items:center;gap:6px;padding:12px;display:flex}.app-shell .navigator-footer>button:first-child{white-space:nowrap;border:0;flex:1;justify-content:flex-start;padding:6px 2px;font-size:12px}.app-shell .navigator-footer>.icon-button{flex:none;width:32px;min-width:32px;padding:5px}.app-shell .shader-nav-state{color:var(--muted);overflow-wrap:anywhere;flex-direction:column;flex:1;align-items:center;gap:12px;padding:28px 14px;font-size:12px;display:flex}.tool-overlay.workbench-inspector{pointer-events:none;z-index:30;background:0 0;padding:0;top:56px;bottom:0}.tool-overlay{color:var(--ink);letter-spacing:0}.tool-overlay .drawer-body .tool-card{box-shadow:none}.workbench-inspector .tool-drawer{pointer-events:auto;border-left:1px solid var(--line);background:var(--surface);border-radius:0;width:340px;box-shadow:-8px 0 24px #0001}.workbench-inspector .drawer-heading{gap:8px;height:50px;min-height:50px;padding:8px 16px}.workbench-inspector .drawer-heading h2{flex:1;font-size:14px}.workbench-inspector .drawer-body{scrollbar-width:thin;gap:16px;padding:16px}.tool-overlay.workbench-modal{z-index:50;background:#18212455}.workbench-modal .tool-drawer{background:var(--surface);width:500px;max-width:100%}.app-shell .preview-pane .compact-status{background:var(--surface);padding:6px 14px;font-size:11px}.app-shell .preview-stage .compact-status{background:0 0;padding:0}.app-shell.shader .chat-pane{grid-template:none;display:flex}.app-shell.shader .chat-scroll{flex:1;min-height:0;padding:22px 20px}.app-shell.shader .chat-pane>.pane-heading{height:50px;min-height:50px}@media (min-width:1440px){.app-shell.has-inspector .workspace{padding-right:340px}}@media (min-width:1680px){.app-shell .workspace{grid-template-columns:60px 424px minmax(0,1fr)}.app-shell.navigator-open .content-navigator{left:60px}}@media (min-width:761px) and (max-width:1100px){.app-shell .workspace{grid-template-columns:52px 332px minmax(0,1fr)}.app-shell .topbar{gap:14px;padding:0 14px}.app-shell .brand-wordmark{width:82px}.app-shell .project-name input{width:160px}.app-shell .save-state{display:none}.app-shell.navigator-open .content-navigator{left:52px}.app-shell .preview-actions button{padding:5px 6px}.app-shell .preview-actions button span{display:none}.app-shell .pane-heading{padding:0 12px}.app-shell .chat-scroll{padding:18px 16px}.app-shell .chat-input-area{padding:12px 12px 10px}}@media (max-width:760px),(max-width:1000px) and (max-height:500px){.app-shell{height:var(--workbench-height,100dvh);flex-direction:column;min-height:0;display:flex;overflow:hidden}.app-shell .topbar{order:0;gap:10px;height:52px;min-height:52px;padding:0 12px;display:flex}.app-shell .brand-mark{width:26px;height:26px;display:block}.app-shell .brand-wordmark{display:none}.app-shell .topbar .project-name{flex:1;width:auto;min-width:0}.app-shell .project-name input{width:100%;max-width:none;font-size:12px}.app-shell .topbar .top-actions{gap:4px;width:auto;display:flex}.app-shell .top-actions>button{height:34px;padding:5px 7px;font-size:11px}.app-shell .topbar .workspace-switch{width:auto;min-width:80px}.app-shell .settings-button>span:last-child,.app-shell .save-state{display:none}.app-shell .mobile-tabs{padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);border-bottom:0;flex:none;order:3;align-items:center;gap:4px;height:auto;min-height:60px;display:flex}.app-shell .mobile-tabs button,.app-shell .mobile-tabs a{height:48px;min-height:48px;color:var(--muted);background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:4px;padding:5px;font-size:10px;text-decoration:none;display:flex}.app-shell .mobile-tabs button.chosen{background:var(--soft);color:var(--accent);border:0}.app-shell .workspace,.app-shell.has-inspector .workspace{flex:1;order:2;gap:0;min-width:0;min-height:0;padding:0;display:flex}.app-shell .workspace-rail{display:none}.app-shell .workspace .preview-pane,.app-shell .workspace .chat-pane{border:0;flex:1;width:100%;min-height:0;display:flex!important}.app-shell .workspace[data-mobile-tab=chat] .preview-pane,.app-shell .workspace[data-mobile-tab=preview] .chat-pane{display:none!important}.app-shell.navigator-open .content-navigator{border-left:0;border-right:1px solid var(--line);width:min(310px,100%);inset:0 auto 0 0}.app-shell .pane-heading,.app-shell.shader .chat-pane>.pane-heading{height:42px;min-height:42px;padding:0 14px}.app-shell .preview-pane .pane-heading{flex-wrap:nowrap;height:46px;min-height:46px;padding:0 12px}.app-shell .preview-title .section-label{max-width:150px}.app-shell .asset-kind{display:none}.app-shell .preview-pane .preview-actions{gap:3px;padding:0;overflow:visible}.app-shell .preview-actions button{height:32px;padding:4px 6px;font-size:11px}.app-shell .preview-actions button span{display:none}.app-shell .preview-title .navigator-toggle{flex:none;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.app-shell .view-tabs{white-space:nowrap;gap:1px;padding:5px 8px;overflow-x:auto}.app-shell .view-tabs button{flex:none;padding:5px 7px;font-size:11px}.app-shell .chat-target-row{padding:0 14px}.app-shell .chat-scroll,.app-shell.shader .chat-scroll{min-height:0;padding:18px 16px}.app-shell .chat-input-area{padding:10px 12px 7px}.app-shell .chat-composer{border-radius:8px;max-width:100%;padding:8px}.app-shell .chat-composer textarea{resize:none;height:66px;min-height:44px;max-height:120px;padding:2px 2px 8px;font-family:inherit;font-size:16px;line-height:1.5}.app-shell .input-actions{min-height:38px}.app-shell .input-actions .send-button,.app-shell .input-actions .attach-button{width:38px;min-width:38px;height:38px}.app-shell .chat-meta{min-height:20px;margin-top:7px}.app-shell .tool-strip{min-height:44px;padding:7px 9px}.tool-overlay.workbench-inspector{pointer-events:auto;z-index:50;background:#18212455;align-items:flex-end;top:0}.workbench-inspector .tool-drawer,.workbench-modal .tool-drawer{border:0;border-radius:8px 8px 0 0;width:100%;height:84dvh;max-height:100dvh;box-shadow:0 -8px 30px #0002}.workbench-inspector .drawer-body{padding:16px;padding-bottom:calc(20px + env(safe-area-inset-bottom))}.workbench-inspector button,.workbench-inspector select,.workbench-inspector input:not([type=checkbox]):not([type=range]){min-height:40px}.app-shell.keyboard-open .mobile-tabs,.app-shell.keyboard-open .topbar{display:none}}@media (max-height:500px){.app-shell .chat-scroll,.app-shell.shader .chat-scroll{min-height:0;padding:8px 12px}.app-shell .chat-composer textarea{height:44px;min-height:44px}.app-shell .chat-input-area{padding-top:6px}.app-shell .chat-target-row{flex:none}}.public-page{background:var(--page,#f2f4f5);min-height:100dvh;color:var(--ink,#28333e);--surface:#fff;--ink:#28333e;--page:#f2f4f5;--accent:#087e96;--soft:#e8f4f6;--line:#dbe1e5;--muted:#66747d}.market-cover img{object-fit:contain;width:100%;height:100%;image-rendering:pixelated;background:#abbcc4;padding:16px}.market-card-info>p{margin:0}[data-theme=dark] .public-page{--surface:#252a2e;--ink:#e6ebee;--page:#191d21;--accent:#60c5d8;--soft:#233d43;--line:#3a4248;--muted:#a5afb6}.public-page input,.public-page select,.public-page textarea,.public-page button{color:var(--ink);background:var(--surface);border-color:var(--line);letter-spacing:0}.public-page .primary{background:var(--accent);color:#fff;border-color:var(--accent)}.public-page button.chosen{background:var(--soft);color:var(--accent)}.studio-market-link,.studio-profile-link{color:var(--ink);white-space:nowrap;align-items:center;gap:6px;padding:8px 10px;font-size:12px;text-decoration:none;display:flex}.settings-profile-link{color:var(--accent);border-bottom:1px solid var(--line);padding:12px 20px;font-size:13px;text-decoration:none}.market-heading-actions{flex-shrink:0;align-items:center;gap:18px;display:flex}.market-heading-actions>a:first-child{color:var(--accent);font-size:13px;text-decoration:none}.market-back{color:var(--muted);align-items:center;padding:4px;display:flex}.market-heading>div:first-child{min-width:0}.market-heading h1{white-space:nowrap}@media (max-width:760px){.market-heading{flex-wrap:wrap;gap:18px}.market-heading-actions{gap:16px;margin-left:auto}.market-heading>div:first-child{gap:8px}.studio-market-link,.studio-profile-link{padding:6px;font-size:11px}.studio-profile-link{display:none}}.site-header{border-bottom:1px solid var(--line);background:var(--surface,#fff);align-items:center;gap:32px;height:70px;padding:0 max(20px,50vw - 640px);display:flex}.site-brand{flex-shrink:0;align-items:center;gap:8px;display:flex}.site-brand img{object-fit:contain;width:30px;height:30px}.site-brand .wordmark{width:100px;height:29px}.site-header nav{align-items:center;gap:24px;display:flex}.site-header a{color:inherit;text-decoration:none}.site-header nav a{height:70px;color:var(--muted);border-bottom:2px solid #0000;align-items:center;display:flex}.site-header nav a.active{border-color:var(--accent);color:var(--ink)}.site-account{align-items:center;gap:8px;min-width:0;max-width:220px;margin-left:auto;display:flex}.site-account>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.site-account img,.avatar-initial{object-fit:cover;background:var(--soft);border-radius:50%;flex-shrink:0;place-items:center;width:30px;height:30px;display:grid}.market-main,.profile-main{max-width:1280px;margin:0 auto;padding:32px 24px 60px}.page-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px;display:flex}.page-heading>div{align-items:baseline;gap:16px;display:flex}.page-heading h1{font-size:26px;font-weight:600}.page-heading span{color:var(--muted);font-size:13px}.page-command{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:5px;justify-content:center;align-items:center;padding:9px 14px;font-size:13px;text-decoration:none;display:inline-flex}.market-layout{grid-template-columns:172px minmax(0,1fr);gap:28px;display:grid}.market-categories{flex-direction:column;align-items:stretch;gap:4px;display:flex}.market-categories h2{color:var(--muted);margin:8px 10px 12px;font-size:12px}.market-categories button{text-align:left;background:0 0;border:0;padding:12px}.market-categories button.chosen{background:var(--soft);color:var(--accent)}.market-categories a{border-top:1px solid var(--line);color:var(--accent);margin-top:20px;padding:18px 12px;text-decoration:none}.market-results{min-width:0}.market-toolbar{align-items:center;gap:10px;margin-bottom:22px;display:flex}.market-toolbar>input{flex:1}.market-toolbar select{max-width:170px;font-size:13px}.market-toolbar a{color:var(--accent);white-space:nowrap;text-decoration:none}.market-search{background:var(--surface);border:1px solid var(--line);min-width:0;color:var(--muted);border-radius:5px;flex:1;align-items:center;gap:10px;padding:0 12px;display:flex}.market-search input{background:0 0;border:0;flex:1;min-width:0;padding:10px 0}.market-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.market-card{text-align:left;background:var(--surface);border-radius:6px;min-width:0;padding:0;overflow:hidden}.market-card:hover{background:var(--surface);border-color:var(--accent)}.market-cover{aspect-ratio:1.8;color:#465f68;background:#d7e1e2;justify-content:center;align-items:center;gap:12px;display:flex;position:relative}.market-cover.kind-shader{color:#536e46;background:#d5e2cc}.market-cover.kind-texture{color:#73556d;background:#e4d5e1}.market-cover.kind-sound{color:#7d6340;background:#e6dcce}.market-cover.kind-hud{color:#506c8d;background:#d5ddea}.market-cover small{background:var(--surface);color:var(--accent);border-radius:4px;padding:5px 7px;font-size:10px;position:absolute;top:10px;right:10px}.market-card-info{gap:9px;padding:14px;display:grid}.market-card-info strong{overflow-wrap:anywhere;font-size:14px}.market-card-info p{-webkit-line-clamp:2;height:38px;color:var(--muted);-webkit-box-orient:vertical;font-size:12px;line-height:1.6;display:-webkit-box;overflow:hidden}.market-card-info>span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.market-card-info>div{justify-content:space-between;gap:10px;display:flex}.market-card-info small{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--muted);font-size:11px;overflow:hidden}.market-card-info small:last-child{flex-shrink:0;align-items:center;gap:4px;display:flex}.page-empty{min-height:330px;color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:18px;display:flex}.page-empty h2{font-size:17px;font-weight:500}.page-empty a{color:var(--accent)}.market-pagination{justify-content:center;align-items:center;gap:16px;margin-top:26px;font-size:12px;display:flex}.market-dialog{border:1px solid var(--line);background:var(--surface);width:min(760px,100vw - 32px);max-height:90dvh;color:var(--ink);border-radius:8px;margin:auto;padding:0;overflow:auto}.market-dialog::backdrop{background:#17242d85}.market-dialog-body{gap:18px;padding:20px;display:grid}.market-dialog-body>p{overflow-wrap:anywhere;font-size:13px;line-height:1.7}.market-dialog-body>.primary{justify-content:center;align-items:center;gap:8px;min-height:42px;display:flex}.resource-facts{grid-template-columns:1fr 1fr;gap:14px;margin:0;display:grid}.resource-facts>div{gap:12px;min-width:0;font-size:12px;display:flex}.resource-facts dt{color:var(--muted);flex-shrink:0}.resource-facts dd{overflow-wrap:anywhere;margin:0}.profile-main{max-width:1020px}.profile-nav{border-bottom:1px solid var(--line);gap:4px;margin-bottom:24px;display:flex;overflow:auto}.profile-nav button{white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;padding:14px 18px;font-size:13px}.profile-nav button.chosen{border-color:var(--accent);color:var(--accent)}.profile-nav span{color:var(--muted);margin-left:4px;font-size:11px}.profile-section{min-width:0}.profile-section>h2{margin-bottom:24px;font-size:18px}.profile-settings .settings-modal{width:100%;max-height:none;box-shadow:none;background:0 0;border:0;overflow:visible}.profile-settings .settings-content{max-width:680px;padding:24px 0;overflow:visible}.profile-settings .settings-tabs{border:0;padding:0}.profile-settings .settings-tabs button{padding:10px 16px}.profile-settings .account-form{max-width:420px}.profile-settings .account-card{max-width:480px}.profile-settings .wallet-panel{max-width:560px}.submission-form{gap:22px;max-width:720px;display:grid}.submission-form fieldset{border:0;gap:20px;min-width:0;margin:0;padding:0;display:grid}.page-segment{gap:6px;display:flex}.upload-resource{border:1px dashed var(--line);background:var(--surface);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;gap:14px;min-height:106px;display:flex;position:relative;overflow:hidden}.upload-resource input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.upload-resource span{overflow-wrap:anywhere;max-width:80%}.check-field{align-items:flex-start;gap:8px;font-size:12px;line-height:1.7;display:flex}.check-field input{flex-shrink:0;width:16px;height:16px;margin-top:3px}.submission-form>.primary{justify-self:start;min-width:130px}.submission-list{display:grid}.submission-list article{border-bottom:1px solid var(--line);align-items:center;gap:16px;padding:20px 0;display:flex}.submission-list article>div{flex:1;gap:8px;min-width:0;display:grid}.submission-list small,.submission-list p{color:var(--muted);font-size:12px}.submission-state{white-space:nowrap;color:var(--muted);font-size:12px}.submission-state.approved{color:var(--accent)}.submission-state.rejected{color:#b45d4a}.personal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.personal-resource{border:1px solid var(--line);background:var(--surface);border-radius:6px;flex-direction:column;gap:20px;min-width:0;padding:18px;display:flex}.personal-resource>div:first-child{gap:10px;display:grid}.personal-resource h2{overflow-wrap:anywhere;font-size:16px}.personal-resource p{overflow-wrap:anywhere;font-size:13px;line-height:1.6}.personal-resource small,.resource-kind{color:var(--muted);font-size:11px}.personal-actions{justify-content:space-between;align-items:center;margin-top:auto;display:flex}.library-columns{grid-template-columns:210px minmax(0,1fr);gap:20px;min-height:330px;display:grid}.library-list{align-content:start;gap:8px;max-height:430px;display:grid;overflow:auto}.library-list button{text-align:left;gap:8px;display:grid}.library-list small{color:var(--muted);font-size:11px}.library-detail{align-content:start;gap:14px;min-width:0;display:grid}.personal-dialog{width:min(900px,100vw - 32px)}@media (max-width:1020px){.market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:760px){.site-header{gap:18px;height:60px;padding:0 16px}.site-header nav{gap:16px}.site-header nav a{height:60px;font-size:12px}.site-brand .wordmark{display:none}.site-account{max-width:140px;font-size:12px}.market-main,.profile-main{padding:24px 16px 40px}.page-heading{margin-bottom:22px}.page-heading h1{font-size:22px}.page-heading>div{gap:10px}.market-layout{grid-template-columns:1fr;gap:14px}.market-categories{flex-direction:row;align-items:center;gap:6px;padding-bottom:8px;overflow:auto}.market-categories h2,.market-categories>a{display:none}.market-categories button{white-space:nowrap;flex-shrink:0;padding:9px 12px;font-size:12px}.market-toolbar{flex-wrap:wrap;gap:8px;margin-bottom:18px}.market-search{flex-basis:calc(100% - 40px)}.market-toolbar>select{flex:1;max-width:none}.market-grid{gap:12px}.market-card-info{padding:12px}.market-cover{aspect-ratio:1.4;gap:8px}.market-cover>svg{width:24px}.market-cover>span{font-size:12px}.market-card-info strong{font-size:13px}.market-dialog{width:calc(100vw - 20px);max-height:92dvh}.market-dialog-body{padding:14px}.resource-facts{grid-template-columns:1fr}.profile-nav button{padding:12px 14px}.personal-grid{grid-template-columns:1fr}.profile-settings .settings-content{padding:20px 0}.library-columns{grid-template-columns:1fr}.library-list{max-height:160px}.submission-list article{flex-wrap:wrap}.submission-list article>div{flex-basis:100%}.submission-form .field-row{flex-direction:column;gap:20px}}@media (max-width:350px){.site-header{gap:12px;padding:0 12px}.site-header nav{gap:12px}.site-account{max-width:105px}.market-grid{grid-template-columns:1fr}.page-heading span{display:none}}.public-mobile-nav,.market-mobile-heading{display:none}@media (max-width:760px){.public-page{min-width:0;padding-bottom:calc(66px + env(safe-area-inset-bottom))}.public-mobile-nav{z-index:25;min-height:62px;padding:5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));border-top:1px solid var(--line);background:var(--surface);display:flex;position:fixed;bottom:0;left:0;right:0}.public-mobile-nav a{min-height:48px;color:var(--muted);border-radius:5px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:4px;font-size:11px;text-decoration:none;display:flex}.public-mobile-nav a[aria-current=page]{color:var(--accent);background:var(--soft)}.site-header,.site-header nav{gap:12px}.site-account{flex:1;justify-content:flex-end;max-width:110px;overflow:hidden}.site-account>span:last-child{max-width:72px}.profile-nav{border:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-bottom:22px;display:grid;overflow:visible}.profile-nav button{border:1px solid var(--line);background:var(--surface);border-radius:5px;min-width:0;min-height:42px;padding:11px 4px;font-size:12px}.profile-nav button.chosen{background:var(--soft);border-color:var(--accent)}.market-main,.profile-main{padding:20px 14px 24px}.market-mobile-heading{align-items:center;gap:18px;margin-bottom:20px;display:flex}.market-mobile-heading h1{flex:1;margin:0;font-size:21px}.market-mobile-heading a{color:var(--accent);align-items:center;min-height:38px;font-size:12px;text-decoration:none;display:flex}.market-results>.market-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.market-results>.market-toolbar .market-search{grid-area:1/1/auto/-1;width:100%;padding:0 48px 0 10px}.market-results>.market-toolbar>.icon-button{border-left:1px solid var(--line);background:var(--surface);border-radius:0 5px 5px 0;grid-area:1/2;justify-self:end;width:42px;height:42px}.market-results>.market-toolbar>select{width:100%;min-height:42px;font-size:14px}.market-search input{min-height:42px;font-size:16px}.market-categories{scrollbar-width:thin}.market-categories button{min-height:40px}.market-grid{gap:10px}.market-card-info{gap:8px;padding:10px}.market-cover{aspect-ratio:1.3}.profile-section .market-toolbar>input{flex-basis:100%;width:100%;font-size:16px}.profile-section .market-toolbar>select{flex:1;min-width:0}.profile-settings .settings-tabs{flex-wrap:wrap;gap:6px}.profile-settings .settings-tabs button{white-space:normal;flex:1;min-width:0;padding:10px 6px}.profile-settings .field-row{flex-wrap:wrap}.profile-settings .field-row>.field{flex-basis:140px}.public-page .page-command{padding:9px 10px;font-size:12px}.page-heading h1{font-size:21px}.page-heading{gap:8px}.public-page .account-form input,.public-page .account-form textarea,.public-page .account-form select{font-size:16px}.public-page .market-dialog{overscroll-behavior:contain;max-height:calc(100dvh - 24px)}.public-page .page-empty{min-height:260px}}
