/* Chat, preview and asset library share one deliberate workspace. */
.chat-page{background:#100e17;color:#eee8f8}.chat-page .chat-rail{width:222px;padding:24px 14px 14px;background:#0d0b13}.chat-page .chat-main{margin-left:222px;height:100dvh;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:64px 52px minmax(0,1fr) auto;overflow:hidden;background:radial-gradient(ellipse at 50% 8%,#281c3d55,transparent 65%),#100e17}.chat-page .chat-header{grid-column:1;grid-row:1;height:64px;padding:0 28px;border-bottom:1px solid #ffffff08}.chat-page .agent-identity{font-size:18px}.chat-page .chat-header-right{gap:22px}.chat-page .workspace-tabs{grid-column:1;grid-row:2;display:flex;align-items:center;gap:7px;padding:5px 28px;border-bottom:1px solid #ffffff09;background:transparent}.workspace-tabs button{height:37px;padding:0 16px;border:1px solid transparent;border-radius:9px;background:transparent;color:#a298b4;font-size:12px;display:flex;align-items:center;gap:8px;cursor:pointer}.workspace-tabs button[aria-selected=true]{color:#edddff;background:#aa7ff51a;border-color:#be9aff30}.workspace-tabs button:hover{color:#f6edff;background:#b998ff12}.workspace-tabs small{font-size:9px;background:#ffffff0b;padding:2px 5px;border-radius:4px}.workspace-path{margin-left:auto;font:8px ui-monospace,monospace;letter-spacing:1.2px;color:#897a9e}.workspace-path i{padding:0 10px;color:#664b8c}.chat-page .chat-scroll{grid-column:1;grid-row:3;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#493657 transparent;overscroll-behavior:contain}.chat-page .chat-welcome{display:flex;text-align:center;align-items:center;justify-content:center;margin:auto;padding:40px 28px 24px;max-width:1000px;min-height:100%}.chat-page .welcome-eyebrow{font-size:9px;letter-spacing:2px;color:#b28fd6;margin-bottom:18px}.chat-page .chat-welcome h1{font-size:clamp(36px,4.3vw,60px);font-weight:500;line-height:1.05;letter-spacing:-2.5px;margin:0 0 16px}.chat-welcome h1 em{font-style:normal;color:#c3a1fa}.chat-page .chat-welcome>p{color:#a89ab9;font-size:13px;line-height:1.8;margin:0;max-width:470px}.chat-page .prompt-suggestions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:28px;width:100%;max-width:800px}.chat-page .prompt-suggestions button{position:relative;display:block;text-align:left;padding:0;border:1px solid #c8a2ff20;background:#1a1423;border-radius:14px;overflow:hidden;min-height:0;transition:transform .2s,border-color .2s,box-shadow .2s}.chat-page .prompt-suggestions button:hover{transform:translateY(-3px);border-color:#caabff8a;box-shadow:0 8px 32px #ad7af51c}.prompt-suggestions img{width:100%;height:112px;display:block;object-fit:cover}.chat-page .prompt-suggestions button>span{padding:13px 14px;display:block;color:#e0d2ef}.prompt-suggestions b{display:block;font-size:12px;font-weight:550}.prompt-suggestions small{display:block;font-size:10px;color:#9b8baa;margin-top:5px}.chat-page .prompt-suggestions i{position:absolute;right:13px;top:12px;width:24px;height:24px;background:#130b22a6;border:1px solid #ffffff25;border-radius:50%;text-align:center;line-height:22px;font-size:12px;display:block;color:white}.welcome-bottom{width:100%;max-width:800px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}.welcome-bottom button{background:none;border:0;color:#bca0df;font-size:11px;padding:9px 0;min-height:36px}.welcome-bottom>span{font-size:9px;color:#83738f}.chat-page .composer-dock{grid-column:1;grid-row:4;width:100%;max-width:920px;margin:auto;padding:14px 28px 18px;background:none}.chat-page .chat-composer{padding:12px 16px 10px;border-radius:20px;border:1px solid #b79ad43d;background:#1b1624;box-shadow:0 12px 50px #0003}.chat-page .chat-composer:focus-within{border-color:#b08ae68f;box-shadow:0 0 0 3px #ac7df508,0 12px 50px #0003}.chat-page .chat-composer textarea{font-size:14px;min-height:62px;max-height:180px;padding:12px 0;background:transparent;line-height:1.65}.chat-page .mode-controls{gap:3px}.chat-page .mode-controls button{padding:8px 10px;font-size:10px;border-radius:8px;min-height:34px}.chat-page .send-button{width:38px;height:38px;border-radius:12px;background:#c3a0f8;color:#221332;box-shadow:0 0 24px #b58df52a}.chat-page .composer-footnote{font-size:9px;display:flex;max-width:none;justify-content:space-between;color:#887996;padding:0 4px;margin-top:9px}.chat-page .composer-footnote>span:last-child{display:inline}.chat-page .chat-messages{max-width:900px;margin:auto;padding:30px 28px}.chat-page .message-assistant .message-content{font-size:14px;line-height:1.85}.chat-page .message-label{font-size:12px}.chat-page .chat-plan-offer{max-width:840px;margin:12px auto 24px}.chat-page .chat-notice{font-size:11px;border:1px solid #b18bde25;background:#22192d;color:#d0badf;border-radius:10px;padding:10px 12px}.chat-page .history-item{min-height:40px;font-size:11px}.chat-page .new-conversation{margin:26px 0 24px;min-height:43px;background:#231a31;border-color:#b897e530}.rail-library{display:flex;align-items:center;gap:9px;padding:7px;width:100%;border:1px solid #bb8ffa20;border-radius:10px;background:#1b1326;color:#bea2de;text-align:left;font-size:12px;margin-top:18px}.rail-library img{width:39px;height:42px;object-fit:cover;border-radius:6px}.rail-library span{flex:1;font-size:10px}.rail-library small{display:block;color:#8e799f;font-size:9px;margin-top:4px}.chat-page .rail-platform{margin:15px 8px;font-size:11px}.chat-page .chat-quota{line-height:1.8;color:#8f7e9f}.chat-page .account-dot{background:#b591e0}.agent-preferences{display:flex;align-items:center;gap:15px;padding-bottom:8px;border-bottom:1px solid #ffffff08}.model-picker{position:relative}.model-picker summary{list-style:none;cursor:pointer;font-size:11px;color:#dec8fb;padding:7px 9px;background:#b69bff12;border-radius:8px;user-select:none}.model-picker summary::-webkit-details-marker{display:none}.model-picker summary[aria-disabled=true]{opacity:.5;cursor:wait}.model-menu{position:absolute;bottom:calc(100% + 12px);left:0;width:310px;padding:15px;background:#20182c;border:1px solid #bb8df44d;border-radius:15px;box-shadow:0 15px 80px #0008;z-index:35}.model-menu>strong{font-size:11px;display:block;margin-bottom:12px;color:#dbc6f3}.model-menu button{position:relative;display:block;width:100%;text-align:left;padding:12px;border:1px solid transparent;border-radius:10px;background:#ffffff03;color:#e7dbf3;margin:5px 0}.model-menu button[aria-pressed=true]{border-color:#b18ee75c;background:#b18ee717}.model-menu button:disabled{opacity:.6;cursor:not-allowed}.model-menu b{display:block;font-size:12px}.model-menu button span{display:block;font-size:10px;line-height:1.6;color:#aa96bc;margin:5px 0}.model-menu small{font-size:9px;color:#c1a1e9}.model-menu a{display:block;font-size:11px;color:#d9b9ff;margin-top:13px;padding:7px;text-align:center}.effort-picker{display:flex;align-items:center;gap:7px;font-size:10px;color:#8e7b9f}.effort-picker select{background:transparent;color:#c2aed9;border:0;font-size:11px;max-width:150px;padding:5px}.effort-picker option{background:#21182e}.chat-page .game-studio{grid-column:1;grid-row:3/5;margin:18px 24px 24px;padding:22px;border:1px solid #bb9aef25;border-radius:18px;background:#130f1c;gap:12px}.chat-page .studio-viewport{min-height:320px;max-height:none}.chat-page .studio-toolbar strong{font-size:16px}.chat-page .studio-toolbar small{font-size:11px}.chat-page .studio-note{font-size:10px}.chat-page .studio-actions button,.chat-page .studio-actions a{font-size:11px;min-height:40px;background:#241a32}.chat-page .studio-actions .studio-export{background:#c09cec;color:#251437}.chat-page .studio-tabbar>span{font-size:9px}.chat-page .studio-settings{background:#1b1425}.chat-page .studio-settings input,.chat-page .studio-settings select{background:#100c18}.chat-page .resource-library{grid-column:1;grid-row:3/5;overflow:auto;min-width:0;min-height:0;padding:30px clamp(20px,4vw,60px);scrollbar-width:thin;scrollbar-color:#493657 transparent}.chat-page:not([data-studio-view=studio]) .game-studio{display:none}.chat-page:not([data-studio-view=resources]) .resource-library{display:none}.chat-page[data-studio-view=studio] .chat-scroll,.chat-page[data-studio-view=resources] .chat-scroll,.chat-page[data-studio-view=studio] .composer-dock,.chat-page[data-studio-view=resources] .composer-dock{display:none}.chat-page[data-studio-view=chat] .chat-scroll,.chat-page[data-studio-view=chat] .composer-dock{display:block}.library-heading{display:flex;align-items:center;justify-content:space-between;gap:22px}.library-heading h1{font-size:clamp(26px,3vw,40px);font-weight:500;letter-spacing:-1.4px;margin:12px 0}.library-heading p{max-width:570px;font-size:12px;line-height:1.8;color:#a591b9}.library-count{font-size:42px;letter-spacing:-2px;color:#d8b6ff;text-align:right}.library-count small{display:block;font-size:10px;letter-spacing:0;color:#9e88b2}.library-filters{display:flex;gap:7px;flex-wrap:wrap;margin:24px 0 20px}.library-filters button{min-height:34px;padding:7px 14px;border-radius:20px;border:1px solid #af8cd522;background:#ffffff03;color:#ae98c0;font-size:11px}.library-filters button[aria-pressed=true]{background:#b895ed;color:#21132d;border-color:#b895ed}.library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.library-card{padding:0;border:1px solid #b694d726;background:#1a1323;border-radius:14px;overflow:hidden;text-align:left;color:#e4d6f0;transition:transform .2s,border-color .2s}.library-card:hover{transform:translateY(-3px);border-color:#bb93ee99;box-shadow:0 8px 25px #ac77fa18}.library-card img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block}.library-card>span{padding:12px;display:block}.library-card b{display:block;font-size:12px;font-weight:500}.library-card small{font-size:9px;display:block;margin-top:7px;color:#a58bbd}.library-pages{display:flex;justify-content:center;align-items:center;gap:22px;margin-top:25px}.library-pages button{padding:9px 16px;min-height:36px;border:1px solid #b891dd30;border-radius:8px;background:#251932;color:#cfb7e6;font-size:11px}.library-pages span{font-size:11px;color:#a08ab3}.library-disclosure{font-size:10px;line-height:1.8;color:#8e789e;text-align:center;margin:22px 0}.asset-dialog{position:fixed;inset:0;width:min(1000px,calc(100vw - 40px));max-height:calc(100dvh - 48px);padding:0;background:#1a1324;border:1px solid #c393ff4d;color:#eadcf9;border-radius:22px;overflow:auto;box-shadow:0 30px 100px #0009}.asset-dialog[open]{display:grid;grid-template-columns:1.4fr 1fr}.asset-dialog::backdrop{background:#08050dd9;backdrop-filter:blur(10px)}.asset-close{position:absolute;top:14px;right:14px;z-index:4;width:32px;height:32px;border:1px solid #ffffff25;border-radius:50%;background:#21142ecc;color:white;font-size:20px}.asset-preview{min-height:440px;position:relative;overflow:hidden;background:#10091c}.asset-preview>img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.asset-overlay{position:absolute;inset:0;background:linear-gradient(transparent,#12081fe3);display:flex;align-items:center;justify-content:flex-end;flex-direction:column;padding:35px;text-align:center}.asset-overlay>span{font:9px ui-monospace,monospace;letter-spacing:3px;color:#dfcafa}.asset-overlay h2{font-size:clamp(30px,4vw,52px);line-height:1;letter-spacing:-2px;margin:15px 0;color:#fff;text-shadow:0 5px 25px #0006;overflow-wrap:anywhere}.asset-loading{height:4px;width:160px;background:#ffffff25;border-radius:4px;margin:12px}.asset-loading:after{content:'';display:block;width:40%;height:100%;background:#d1adff;animation:asset-load 2s ease-in-out infinite alternate}.asset-settings{padding:48px 27px 24px}.asset-settings h2{font-size:22px;font-weight:500;letter-spacing:-.5px;margin:12px 0 22px}.asset-settings>label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#b7a0cb;margin:15px 0}.asset-settings input,.asset-settings select{width:100%;min-height:40px;padding:10px;border:1px solid #b58be638;border-radius:8px;background:#100b18;color:#ecdff6;font-size:12px}.asset-settings .motion-choice{flex-direction:row;align-items:center;gap:9px}.motion-choice input{width:15px;height:15px;min-height:0;accent-color:#b492ed}.asset-settings p{font-size:10px;line-height:1.8;color:#9880aa}.asset-buttons{display:flex;flex-direction:column;gap:8px;margin-top:22px}.asset-buttons button,.asset-buttons a{border:1px solid #c29be73d;border-radius:9px;background:#2b1c3a;color:#dfc5f8;text-align:center;min-height:40px;padding:12px;font-size:11px}.asset-buttons button:first-child{background:#c09aef;color:#251632;font-weight:600}.asset-feedback{display:block;margin-top:12px;font-size:10px;line-height:1.6;color:#b79ecb}.asset-preview.is-moving>img{animation:asset-drift 18s ease-in-out infinite alternate}.creative-jump img{object-fit:cover;border-radius:6px;margin-right:8px;vertical-align:middle}.chat-page.studio-focused .game-studio{position:fixed;inset:0;margin:0;z-index:80;border-radius:0}.chat-page.studio-focused .workspace-tabs{display:none}@keyframes asset-drift{to{transform:scale(1.12) translateY(-2%)}}@keyframes asset-load{to{transform:translateX(150%)}}
@media(max-width:1100px){.chat-page .chat-main{margin-left:0}.chat-page .chat-rail{width:245px}.chat-page .mobile-menu{display:block}.library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.chat-page .chat-main{grid-template-rows:56px 48px minmax(0,1fr) auto}.chat-page .chat-header{height:56px;padding:0 14px}.chat-page .dev-badge{display:none}.chat-page .workspace-tabs{padding:5px 12px;gap:4px}.workspace-tabs button{font-size:11px;padding:0 12px;flex:1;justify-content:center}.workspace-path{display:none}.chat-page .chat-welcome{padding:26px 18px 18px;justify-content:flex-start}.chat-page .welcome-eyebrow{font-size:7px;letter-spacing:1.4px;margin-bottom:17px}.chat-page .chat-welcome h1{font-size:38px;letter-spacing:-1.8px}.chat-page .chat-welcome>p{font-size:12px;max-width:320px}.chat-page .prompt-suggestions{margin-top:22px;gap:8px;grid-template-columns:1fr}.chat-page .prompt-suggestions button{display:flex;align-items:center;border-radius:11px;min-height:64px}.prompt-suggestions img{width:80px;height:72px;flex-shrink:0}.chat-page .prompt-suggestions button>span{padding:10px 12px}.prompt-suggestions b{font-size:12px}.prompt-suggestions small{font-size:10px}.chat-page .prompt-suggestions i{top:25px;right:10px;width:20px;height:20px;line-height:18px;font-size:10px}.welcome-bottom{margin-top:10px;justify-content:center}.welcome-bottom>span{display:none}.chat-page .composer-dock{padding:9px 12px max(10px,env(safe-area-inset-bottom))}.chat-page .chat-composer{padding:9px 12px;border-radius:17px}.chat-page .chat-composer textarea{font-size:16px;min-height:54px;max-height:130px}.chat-page .mode-controls button{padding:6px;font-size:9px;min-height:32px}.chat-page .composer-footnote{display:none}.agent-preferences{gap:8px;padding-bottom:6px}.model-picker summary{font-size:10px;padding:7px}.effort-picker>span{display:none}.effort-picker select{font-size:10px;max-width:130px}.model-menu{width:min(310px,calc(100vw - 48px));padding:12px}.chat-page .chat-messages{padding:22px 18px}.chat-page .chat-scroll{scrollbar-width:none}.chat-page .chat-scroll::-webkit-scrollbar{display:none}.chat-page .message-assistant .message-content{font-size:14px}.chat-page .chat-notice{font-size:10px;padding:8px}.chat-page .game-studio{margin:9px;padding:12px;border-radius:13px;gap:10px}.chat-page .studio-toolbar strong{font-size:13px}.chat-page .studio-toolbar small{font-size:9px}.chat-page .studio-tabbar>span{display:none}.chat-page .studio-viewport{min-height:310px}.chat-page .studio-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-page .resource-library{padding:24px 16px;scrollbar-width:none}.library-heading h1{font-size:29px}.library-heading p{font-size:11px}.library-count{display:none}.library-filters{margin:18px 0;gap:6px}.library-filters button{font-size:10px;padding:7px 12px}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.library-card b{font-size:11px}.library-card>span{padding:10px}.asset-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:16px}.asset-dialog[open]{grid-template-columns:1fr}.asset-preview{min-height:240px;max-height:300px}.asset-overlay{padding:24px}.asset-settings{padding:22px}.asset-settings h2{margin:10px 0 16px}.asset-buttons{margin-top:16px}.asset-settings input,.asset-settings select{font-size:16px}.chat-page .chat-plan-offer{margin:12px 18px}}
.studio-pack-label{font-size:9px;color:#b29bc7;margin-left:auto;display:flex;flex-direction:column;gap:3px}.studio-pack-label:has(select[hidden]){display:none}.studio-pack-label select{max-width:210px}.library-card[data-kind=sprites] img,.library-card[data-kind=tiles] img{object-fit:contain;background:repeating-conic-gradient(#22182d 0% 25%,#2c2038 0% 50%) 0/16px 16px}.asset-dialog[data-kind=sprites] .asset-preview>img,.asset-dialog[data-kind=tiles] .asset-preview>img{object-fit:contain;image-rendering:pixelated}.asset-dialog[data-kind=sprites] .asset-preview,.asset-dialog[data-kind=tiles] .asset-preview{background:repeating-conic-gradient(#22182d 0% 25%,#2c2038 0% 50%) 0/22px 22px}.creative-jump img{width:48px;height:32px;object-fit:cover;border-radius:6px}.chat-page .chat-welcome h1 em{margin-left:.15em}
.chat-page .chat-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 12px}.chat-page .chat-notice button{min-height:28px!important;height:auto!important;padding:5px 9px;font-size:10px;white-space:nowrap}.chat-page .prompt-suggestions button>span{width:auto}.chat-page .composer-dock{padding-top:10px;padding-bottom:12px}
@media(min-width:701px) and (max-height:850px){.chat-page .chat-welcome{padding:20px 28px 12px}.chat-page .welcome-eyebrow{margin-bottom:10px;font-size:8px}.chat-page .chat-welcome h1{font-size:40px;letter-spacing:-1.7px;margin-bottom:10px}.chat-page .chat-welcome h1 br{display:none}.chat-page .chat-welcome h1 em:before{content:' '}.chat-page .prompt-suggestions{margin-top:20px;gap:12px}.prompt-suggestions img{height:84px}.chat-page .prompt-suggestions button>span{padding:11px 13px}.welcome-bottom{margin-top:8px}.chat-page .chat-welcome>p{max-width:none;font-size:12px}.chat-page .composer-footnote{margin-top:6px}}
@media(max-width:700px){.chat-page .chat-header{min-height:56px;height:56px!important;padding-top:0!important;padding-bottom:0!important}.chat-page .prompt-suggestions button{flex-direction:row;align-items:center;gap:0;max-height:74px}.chat-page .prompt-suggestions button i{display:block!important}.chat-page .chat-notice{gap:8px;padding:5px 9px}.studio-toolbar{flex-wrap:wrap}.studio-pack-label{order:3;flex:1}.studio-pack-label select{max-width:100%;width:100%}.asset-dialog{padding:0!important}.chat-page .studio-orientation{display:none}}
@media(prefers-reduced-motion:reduce){.prompt-suggestions button,.library-card{transition:none}.asset-preview.is-moving>img,.asset-loading:after{animation:none}}
