/* A distinct model picker and a three-position reasoning lever. */
.agent-preferences{display:grid;grid-template-columns:minmax(170px,1fr) minmax(180px,230px);gap:8px 24px;align-items:center;padding:4px 0 11px}
.model-picker{justify-self:start;max-width:100%}.model-picker summary{display:flex;align-items:center;gap:9px;padding:8px 10px;background:#b99be90b;border:1px solid #c5a4eb24;border-radius:11px;min-height:52px;transition:border-color .2s,background .2s}.model-picker summary:after{content:none!important}.model-picker summary::marker{content:''}.model-picker summary:hover,.model-picker[open] summary{border-color:#c3a1eb60;background:#b490d915}.model-picker summary>img{width:23px;height:23px;opacity:.85}.model-picker summary small{display:block;color:#9b85b0;font-size:8px;letter-spacing:.5px;margin-bottom:4px}.model-picker summary b{display:block;font-size:12px;white-space:nowrap;font-weight:550;color:#e1d3f1}.model-picker .model-switch-mark{color:#ab90c5;letter-spacing:1px;margin-left:6px;font-size:17px;line-height:1}
.model-menu{width:330px;max-width:calc(100vw - 40px);padding:13px;background:#1b1425;box-shadow:0 18px 80px #0009,0 0 0 1px #d9b9ff08}.model-menu>strong{padding:5px 7px 9px;margin:0;font-size:10px;color:#ac94c4}.model-menu button{display:flex;align-items:center;gap:11px;padding:13px 10px;margin:4px 0;border-radius:10px;cursor:pointer}.model-menu button:disabled{opacity:.53}.model-menu button:hover:not(:disabled){background:#bd95ec14}.model-menu button[aria-pressed=true]{border-color:#ba94e449;background:#b38be31a}.model-menu .model-option-copy{flex:1;margin:0;min-width:0}.model-menu .model-option-copy>span{font-size:10px;margin:5px 0;line-height:1.5}.model-menu .model-option-copy b{font-size:12px}.model-menu small{font-size:8px}.model-menu .model-option-state{width:14px;flex-shrink:0;color:#d3b0ff;margin:0;font-size:15px}.model-option-state svg,.effort-levels svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.4}.model-level{width:29px;height:30px;display:flex;align-items:flex-end;justify-content:center;gap:3px;padding:6px;border-radius:8px;background:#bb8fea0c;border:1px solid #ba96dd19;flex-shrink:0;box-sizing:content-box}.model-level span{width:4px;height:8px;margin:0!important;background:#6b527b44;border-radius:2px}.model-level span:nth-child(2){height:13px}.model-level span:nth-child(3){height:19px}.model-level .lit{background:#c4a0ef}.model-menu a{text-decoration:none;border-top:1px solid #bc98e723;margin:9px 0 0;padding:13px 7px 4px;font-size:10px}
.effort-control{width:100%;min-width:0;--effort-fill:0%}.effort-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:1px;font-size:9px;color:#9c86b1}.effort-heading label{cursor:pointer}.effort-heading output{color:#dac3f3;font-size:10px;font-weight:550}.effort-rail{height:27px;position:relative;display:flex;align-items:center;margin:0 7px}.effort-control input[type=range]{appearance:none;-webkit-appearance:none;width:calc(100% + 14px);margin:0 -7px;height:27px;background:transparent;cursor:ew-resize;padding:0;border:0;touch-action:pan-y;position:relative;box-shadow:none}
.effort-control input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:8px;background:linear-gradient(90deg,#b68be9 0%,#cbb1ed var(--effort-fill),#493655 var(--effort-fill),#493655 100%)}
.effort-control input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:22px;border:2px solid #ecdfff;border-radius:7px;background:linear-gradient(#e0c8ff,#af88dd);margin-top:-9px;box-shadow:0 0 0 3px #b994e51a,0 2px 9px #0005;transition:box-shadow .18s}
.effort-control input[type=range]::-moz-range-track{height:4px;border-radius:8px;background:#493655}.effort-control input[type=range]::-moz-range-progress{height:4px;border-radius:8px;background:#c5a0ee}.effort-control input[type=range]::-moz-range-thumb{width:13px;height:18px;border:2px solid #ecdfff;border-radius:7px;background:#c3a0ee;box-shadow:0 0 0 3px #b994e51a}
.effort-control input:focus-visible{outline:2px solid #cfacf5;outline-offset:4px;border-radius:6px}.effort-control input:disabled{cursor:default;opacity:.6}.effort-levels{display:flex;justify-content:space-between;gap:4px;margin:0 -4px}.effort-levels button{display:flex;align-items:center;justify-content:center;gap:2px;background:none;border:0;padding:4px;color:#947da7;font-family:inherit;font-size:8px;cursor:pointer;min-height:24px}.effort-levels button[aria-pressed=true]{color:#dcc5f4}.effort-levels button:disabled{cursor:default;color:#796785}.effort-levels button:focus-visible,.model-picker summary:focus-visible,.model-menu button:focus-visible{outline:2px solid #d7b6f8;outline-offset:3px}.effort-levels svg{width:9px;height:9px}.effort-help{grid-column:1/-1;margin:0;color:#8e799f;font-size:9px;line-height:1.4;min-height:13px}.chat-page .composer-controls{align-items:center}.chat-page .mode-controls button{display:flex;align-items:center;gap:5px}.chat-page .mode-controls button:not(.selected){color:#9a87ad}.chat-page .mode-controls button.selected{background:#b38ce41c;color:#dfc8fa;border-color:#ba93e539}
@media(max-width:700px){.agent-preferences{grid-template-columns:minmax(122px,1fr) minmax(135px,1.1fr);gap:5px 12px;padding:3px 0 8px}.model-picker summary{gap:6px;padding:7px;min-height:50px;font-size:10px}.model-picker summary>img{width:18px;height:18px}.model-picker summary b{font-size:10px}.model-picker summary small{font-size:7px}.model-picker .model-switch-mark{display:none}.effort-heading{font-size:8px}.effort-heading output{font-size:9px}.effort-levels button{font-size:7px;padding:4px 2px;min-height:25px}.effort-help{font-size:8px}.model-menu{width:min(330px,calc(100vw - 48px));bottom:calc(100% + 12px)}.effort-control input[type=range]{height:30px}.effort-rail{height:30px}}
@media(max-width:350px){.agent-preferences{gap:5px 8px;grid-template-columns:116px minmax(0,1fr)}.model-picker summary b{font-size:9px}.effort-levels svg{width:7px}.effort-levels button{font-size:6px;gap:1px}}
@media(prefers-reduced-motion:reduce){.model-picker summary,.effort-control input[type=range]::-webkit-slider-thumb{transition:none}}
.model-menu{max-height:min(390px,calc(100dvh - 210px));overflow-y:auto;scrollbar-width:thin}.effort-heading{font-size:10px}.effort-heading output{font-size:11px}.effort-levels button{font-size:9px}.effort-help{font-size:10px;color:#ae96c2}@media(max-width:700px){.effort-heading{font-size:9px}.effort-heading output{font-size:10px}.effort-levels button{font-size:9px}.effort-help{font-size:9px}.model-picker summary b{font-size:11px}}@media(max-width:350px){.model-picker summary b{font-size:9px}.effort-levels button{font-size:8px}}

.model-menu{scrollbar-color:#72568c transparent}.model-menu::-webkit-scrollbar{width:4px}.model-menu::-webkit-scrollbar-thumb{background:#72568c;border-radius:6px}

/* Conversation → result → Studio. A compact status line, with one next action. */
.chat-page .composer-dock{position:relative}
.chat-run-status{display:flex;align-items:center;gap:9px;min-height:36px;margin:0 3px 8px;color:#ad99c1;font-size:11px;line-height:1.5}
.chat-run-status #chatRunLabel{flex:1;min-width:0;overflow-wrap:anywhere}
.run-indicator{width:6px;height:6px;border-radius:50%;background:#b89bdd;flex:none}
.chat-run-status[data-phase=working] .run-indicator{box-shadow:0 0 0 4px #ba95f015;animation:run-breathe 1.7s ease-in-out infinite}
.chat-run-status[data-phase=paused] .run-indicator{background:#c7a17c}
.chat-run-status button{display:flex;align-items:center;gap:10px;flex:none;min-height:34px;padding:7px 11px;border:1px solid #b38bd631;border-radius:9px;background:#b68bed0c;color:#ddc3fa;font:500 11px inherit;cursor:pointer}
.chat-run-status button:hover{background:#b68bed1b;border-color:#b38bd670;box-shadow:0 0 20px #a678dc15}
.chat-latest{position:absolute;bottom:calc(100% + 3px);left:50%;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:9px;white-space:nowrap;min-height:38px;padding:8px 15px;border:1px solid #b38bd655;border-radius:30px;background:#241a32f5;color:#e4d2f7;font-size:11px;box-shadow:0 6px 28px #0006;cursor:pointer}
.chat-latest:hover{border-color:#ddc0fc;box-shadow:0 3px 25px #a678dc24}
.chat-page .message-empty-state{color:#bca8cd;font-size:13px;margin:10px 0}
.chat-page .studio-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:15px;margin:20px 0 10px;padding:22px;border:1px solid #bf95f43b;border-radius:17px;background:radial-gradient(ellipse at 0 0,#9a63dc16,transparent 70%),#1b1424;box-shadow:0 8px 35px #0002}
.studio-card .result-symbol{display:grid;place-items:center;width:48px;height:48px;border:1px solid #c49df338;background:#be92ee12;border-radius:14px;color:#d7b3ff}
.result-symbol svg{width:24px;height:24px}
.studio-card .result-eyebrow{display:block;color:#bc9ed9;font-size:10px;letter-spacing:.3px;margin:1px 0 7px}
.studio-card .result-info strong{font-size:17px;font-weight:550;color:#f0e4ff;line-height:1.4;margin:0;overflow-wrap:anywhere}
.studio-card .result-info p{color:#a48fb7;font-size:11px;line-height:1.7;margin:7px 0 0}
.studio-card .result-actions{grid-column:2;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.studio-card .result-actions button{display:flex;align-items:center;gap:9px;margin:0;min-height:40px;padding:10px 16px;background:#c1a0ef;color:#251532;border:1px solid #d0b4f5;border-radius:10px;font-size:11px;font-weight:600;cursor:pointer;transition:background .18s,box-shadow .18s}
.studio-card .result-actions button:hover{background:#d6b9fc;box-shadow:0 0 28px #bd95f02a}
.studio-card .result-actions a{float:none;display:inline-flex;align-items:center;min-height:40px;padding:6px 0;font-size:11px;color:#b7a1c9;text-decoration:none}
.studio-card .result-actions a:hover{color:#e1c7fc}
.studio-result-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #b38bd63b;background:#b38bd60a;border-radius:10px;padding:10px 13px;font-size:11px;color:#d0b7e7;line-height:1.6;flex-shrink:0}
.studio-result-notice button{flex:none;min-height:36px;border:1px solid #b38bd650;border-radius:8px;background:#b38bd61b;color:#e4d0f9;padding:8px 12px;cursor:pointer}
.chat-latest:focus-visible,.result-actions :focus-visible,.chat-run-status button:focus-visible,.studio-result-notice button:focus-visible{outline:2px solid #dab5ff;outline-offset:3px}
@keyframes run-breathe{50%{box-shadow:0 0 0 5px #ba95f02c;opacity:.65}}
@media(max-width:700px){.chat-run-status{font-size:10px;gap:7px;margin-bottom:5px;min-height:32px}.chat-run-status button{padding:7px 9px;font-size:10px;gap:7px}.chat-page .studio-card{padding:17px;gap:12px;grid-template-columns:38px minmax(0,1fr)}.studio-card .result-symbol{width:38px;height:38px;border-radius:11px}.studio-card .result-info strong{font-size:15px}.studio-card .result-actions{grid-column:1/-1;gap:14px}.studio-card .result-actions button,.studio-card .result-actions a{min-height:44px}.studio-result-notice{align-items:flex-start;flex-direction:column;gap:8px}.studio-result-notice button{min-height:42px}.chat-latest{min-height:42px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.chat-run-status[data-phase=working] .run-indicator{animation:none}.studio-card .result-actions button{transition:none}}

/* Keep conversation space available; the settings are one compact row. */
.chat-page .agent-preferences{grid-template-rows:auto auto;gap:3px 24px;padding:2px 0 8px;align-items:center}
.chat-page .model-picker{grid-column:1;grid-row:1}
.chat-page .model-picker summary{min-height:40px;padding:6px 9px}
.chat-page .model-picker summary small{margin-bottom:2px}
.chat-page .effort-control{grid-column:2;grid-row:1/3}
.chat-page .effort-help{grid-column:1;grid-row:2;min-height:0;font-size:9px;line-height:1.5;margin:0 2px}
.chat-page .effort-levels button{min-height:26px;padding:3px 4px}
.chat-page .chat-composer textarea{min-height:54px;padding:9px 0;max-height:160px}
.chat-page .chat-run-status button{min-height:34px;font-family:inherit;font-size:11px;font-weight:500}
.chat-page .chat-run-status{min-height:34px}
@media(max-width:700px){.chat-page .agent-preferences{gap:3px 12px}.chat-page .model-picker summary{min-height:44px}.chat-page .effort-levels button{min-height:30px;padding:4px 2px}.chat-page .effort-help{font-size:8px}.chat-page .chat-run-status button{min-height:40px;font-size:10px}.chat-page .chat-main{height:var(--app-height,100dvh)}}

/* Plan card: separate identity, price and action; avoid inherited inline text. */
.chat-page .chat-plan-offer{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;row-gap:10px;padding:20px 22px;border:1px solid #b798d32e;border-radius:15px;background:linear-gradient(115deg,#21192c,#17131e);box-shadow:0 8px 28px #00000012}
.chat-page .chat-plan-heading{grid-column:1;grid-row:1;display:flex;align-items:center;gap:13px;min-width:0;flex-wrap:nowrap}
.chat-page .chat-plan-heading .plan-symbol{width:38px;height:38px;padding:8px;flex:none;border:1px solid #c09ee42e;border-radius:11px;background:#b593dc0b}
.chat-page .chat-plan-heading>div{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.chat-page .chat-plan-heading strong{font-size:15px;line-height:1.35;font-weight:550;letter-spacing:-.2px;color:#eadcf8;overflow-wrap:anywhere}
.chat-page .chat-plan-heading>div>span{display:inline-flex;align-items:baseline;gap:5px;white-space:nowrap;font-size:18px;font-weight:500;line-height:1.2;color:#d2b6f2}
.chat-page .chat-plan-heading small{margin:0;font-size:11px;font-weight:400;color:#a28cae}
.chat-page .chat-plan-offer>p{grid-column:1;grid-row:2;max-width:60ch;margin:0 0 0 51px;font-size:11px;line-height:1.7;color:#ac9bbb;text-wrap:pretty}
.chat-page .chat-plan-bottom{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:12px}
.chat-page .chat-plan-availability{display:inline-flex;align-items:center;margin:0;padding:3px 8px;border-color:#a98bc62e;border-radius:6px;color:#a998bb;font-size:10px;line-height:1.5;white-space:nowrap}
.chat-page .chat-plan-bottom>a{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:42px;padding:10px 16px;border-radius:9px;font-size:12px;line-height:1.4;font-weight:550;text-decoration:none;white-space:nowrap;align-self:auto}
.chat-page .chat-plan-bottom>a>span{margin:0;font-size:13px}
@media(max-width:600px){
 .chat-page .chat-plan-offer{grid-template-columns:minmax(0,1fr);gap:14px;padding:17px;margin:12px 18px 22px;border-radius:13px}
 .chat-page .chat-plan-heading{grid-column:1;grid-row:1;gap:11px}
 .chat-page .chat-plan-heading strong{font-size:14px}
 .chat-page .chat-plan-offer>p{grid-column:1;grid-row:2;margin:0;font-size:11px}
 .chat-page .chat-plan-bottom{grid-column:1;grid-row:3;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
 .chat-page .chat-plan-bottom>a{min-height:44px;padding:10px 13px;gap:10px}
}

/* Readable controls and an explicit draft → send step. */
.chat-page .agent-preferences{grid-template-columns:minmax(170px,210px) minmax(180px,1fr);gap:8px 24px;align-items:start}
.chat-page .model-picker summary small{font-size:10px;color:#bda9cf}
.chat-page .model-picker summary b{font-size:13px}
.chat-page .effort-heading,.chat-page .effort-heading output{font-size:12px}
.chat-page .effort-levels button{font-size:11px;min-height:32px;color:#bba6ce}
.chat-page .effort-levels button:disabled{color:#9b88ad}
.chat-page .effort-help{font-size:11px;line-height:1.5;color:#baa6cd}
.chat-page .model-menu>strong{font-size:12px;color:#d3bce8}
.chat-page .model-menu .model-option-copy>span{font-size:12px}
.chat-page .model-menu .model-option-copy b{font-size:14px}
.chat-page .model-menu small,.chat-page .model-menu a{font-size:11px}
.chat-page .model-explanation{margin:12px 7px 4px;color:#bca7cf;font-size:11px;line-height:1.6}
.chat-page .composer-help{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 18px;margin:10px 0 0;padding-top:10px;border-top:1px solid #b793dc18;color:#b5a0c7;font-size:11px;line-height:1.5}
.chat-page .keyboard-help{color:#9f8aad}
@media(max-width:700px){
 .chat-page .agent-preferences{grid-template-columns:minmax(135px,.9fr) minmax(155px,1.1fr);gap:5px 12px}
 .chat-page .model-picker summary b{font-size:12px}
 .chat-page .model-picker summary small{font-size:10px}
 .chat-page .effort-heading,.chat-page .effort-heading output{font-size:11px}
 .chat-page .effort-levels button{font-size:10px;min-height:36px;padding:4px 2px}
 .chat-page .effort-help{font-size:11px}
 .chat-page .mode-controls button{min-height:44px;font-size:11px}
 .chat-page .composer-help{margin-top:6px;padding-top:6px;font-size:10px}
 .chat-page .keyboard-help{display:none}
}
@media(max-width:370px){
 .chat-page .agent-preferences{grid-template-columns:1fr;gap:7px}
 .chat-page .model-picker{justify-self:stretch}
 .chat-page .model-picker summary{min-height:44px}
 .chat-page .model-picker summary>span:first-of-type{display:flex;align-items:center;gap:8px}
 .chat-page .model-picker summary small{margin:0}
 .chat-page .model-picker .model-switch-mark{display:block;margin-left:auto}
 .chat-page .effort-rail,.chat-page .effort-control input[type=range]{height:22px}
 .chat-page .effort-levels button{min-height:30px}
}
.chat-page .agent-preferences .effort-help{grid-column:1/-1;grid-row:auto}
.chat-page .agent-preferences .effort-control{grid-row:1;grid-column:2}
@media(max-width:370px){.chat-page .agent-preferences .effort-control{grid-column:1;grid-row:2}}
/* Chat workspace: compact composer, readable projects, natural overflow. */
.chat-page .chat-rail{width:264px;flex-basis:264px;padding:20px 14px;background:#100b18;border-right:1px solid #c3a0ff18}
.chat-page .history-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 8px 6px;font-size:10px;letter-spacing:1px;color:#a391b7}
.history-heading b{font-weight:400;margin-left:8px;color:#776788}
#createFolder{width:32px;height:32px;border:1px solid #b995db30;border-radius:8px;background:transparent;color:#dfc8f5;font-size:20px;cursor:pointer}
.folder-storage-note{margin:0 8px 12px;font-size:10px;color:#887795}
.chat-page .history-search{margin:0 0 12px;padding:11px 10px;border:1px solid #b28ad828;border-radius:9px;background:#ffffff03}
.chat-page .chat-history{min-height:100px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#5b426d transparent;padding-right:4px}
.chat-history::-webkit-scrollbar{width:5px}.chat-history::-webkit-scrollbar-thumb{background:#5b426d;border-radius:8px}
.history-row{position:relative;display:flex;align-items:center;margin:3px 0;border-radius:9px;min-height:46px}
.chat-page .history-item{display:flex;align-items:center;gap:10px;min-height:46px;padding:10px 34px 10px 10px;width:100%;font-size:12px;line-height:1.5;text-align:left;border-radius:9px;color:#bfaece;overflow:hidden}
.history-item>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.history-project-dot{width:7px;height:7px;border:1px solid #9b76c4;border-radius:2px;flex-shrink:0}
.chat-page .history-item.active{background:#b58ce61a;color:#f0dfff;box-shadow:inset 2px 0 #c3a0ff}
.history-row:hover{background:#c3a0ff0b}.history-item.is-running .history-project-dot{background:#bd94ef}
.history-move{position:absolute;right:4px;width:25px;height:30px;opacity:.55;border:0;border-radius:5px;background:#20152e;color:transparent;cursor:pointer;padding:0}
.history-move option{color:#eadcf7;background:#20152e}.history-row:hover .history-move,.history-row:focus-within .history-move{opacity:1;color:#bfa2db}
.history-folder{margin:10px 0;border:0}.history-folder>summary{display:flex;gap:8px;align-items:center;min-height:38px;padding:8px;font-size:12px;color:#e0cbee;cursor:pointer}.history-folder>summary:before{content:'▸';color:#9f7fc1;font-size:12px}.history-folder[open]>summary:before{content:'▾'}.history-folder>summary span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-folder>summary small{color:#8d769f;font-size:10px}.history-folder>div{border-left:1px solid #b38ad52b;margin-left:12px;padding-left:5px}.folder-empty{font-size:10px;line-height:1.7;padding:8px;color:#8f7c9f}.history-group-label{font-size:9px;letter-spacing:.8px;color:#8c779e;padding:15px 9px 5px}
.folder-form{background:#1c1227;padding:12px;border:1px solid #bd95e43a;border-radius:10px;margin:8px 0}.folder-form[hidden]{display:none}.folder-form label{font-size:11px;color:#cbb6dd}.folder-form input{width:100%;background:#100a18;color:#eee2fa;border:1px solid #bc95df40;padding:10px;margin:8px 0;border-radius:7px}.folder-form>div{display:flex;gap:8px}.folder-form button{font-size:10px;padding:9px;border:1px solid #ba92dc35;border-radius:6px;background:#33203f;color:#ead7ff}.folder-form p{font-size:10px;color:#e7b5cd;margin:8px 0 0}
.chat-page .chat-scroll{overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#58416c transparent}
.chat-page .chat-scroll.is-welcome{scrollbar-width:none;overscroll-behavior:auto;scroll-behavior:auto}
.chat-scroll.is-welcome::-webkit-scrollbar{display:none}
.chat-page .chat-scroll.is-welcome .chat-welcome{min-height:0;margin:auto;padding:clamp(22px,4vh,50px) 24px 20px;max-width:840px}
.chat-page .chat-welcome h1{font-size:clamp(34px,3.2vw,52px);line-height:1.08;margin:18px 0;letter-spacing:-1.7px}
.chat-page .chat-welcome>p{font-size:13px;margin-bottom:22px}
.chat-page .chat-welcome .prompt-suggestions{margin:22px auto 0;gap:12px;max-width:740px}
.chat-page .prompt-suggestions button img{height:100px;object-fit:cover}
.chat-page .composer-dock{width:100%;max-width:840px;margin:0 auto;padding:12px 24px 20px;flex-shrink:0;background:transparent}
.chat-page .chat-composer{display:flex;flex-direction:column;padding:18px 20px 12px;border:1px solid #bc95e338;border-radius:22px;background:linear-gradient(150deg,#21172b,#181120);box-shadow:0 16px 60px #0003;transition:border-color .2s,box-shadow .2s}
.chat-page .chat-composer:focus-within{border-color:#bc95e37a;box-shadow:0 16px 60px #0004,0 0 0 3px #bb8dec06}
.chat-page #chatInput{order:0;min-height:70px;max-height:180px;padding:4px 0 16px;font-size:15px;line-height:1.65;background:transparent;resize:none}
.chat-page .agent-preferences{order:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 12px;border-top:1px solid #b896d71a;flex-wrap:wrap}
.chat-page .model-picker summary{min-height:38px;padding:7px 10px;border-radius:8px;background:#bd95e408;gap:8px}.chat-page .model-picker summary small{display:none}.chat-page .model-picker summary>img{width:17px;height:17px}.chat-page .model-picker summary b{font-size:12px}.chat-page .model-switch-mark{font-size:14px}
.chat-page .effort-control{width:auto;display:flex;align-items:center;gap:10px}.chat-page .effort-heading{margin:0;font-size:10px;color:#9984ac}.chat-page .effort-heading output,.chat-page .effort-rail{display:none}.chat-page .effort-levels{margin:0;gap:3px;padding:3px;border:1px solid #b48ada25;border-radius:9px;background:#110b19}
.chat-page .effort-levels button{padding:7px 10px;min-height:30px;font-size:10px;border-radius:6px;gap:5px}.chat-page .effort-levels button[aria-pressed=true]{background:#b18bd32e;color:#e8d4ff}.chat-page .effort-levels button:disabled{opacity:.45}.chat-page .effort-levels button[aria-pressed=true]:disabled{opacity:1}.chat-page .effort-help{display:none}
.chat-page .composer-controls{order:2;padding-top:8px;border-top:1px solid #b896d71a}.chat-page .mode-controls button{min-height:36px;border-radius:8px;font-size:11px;padding:8px 11px}.chat-page .send-button{width:38px;height:38px;border-radius:12px;background:#d2b6f1;color:#251334}.chat-page .send-button:disabled{opacity:.4}.chat-page .composer-help{order:3;margin:9px 0 0;padding-top:7px;border:0;font-size:9px;color:#887497}.chat-page .composer-help>span:first-child{display:none}.chat-page .composer-footnote{font-size:9px;opacity:.65;padding-top:8px}
@media(min-width:1100px) and (min-height:760px){.chat-page[data-studio-view=chat] .chat-scroll.is-welcome{display:flex;flex-direction:column}.chat-page .chat-scroll.is-welcome .chat-welcome{margin:auto}}
@media(max-height:760px) and (min-width:761px){.chat-page .chat-welcome h1{font-size:36px;margin:12px 0}.chat-page .chat-scroll.is-welcome .chat-welcome{padding-top:18px}.chat-page .prompt-suggestions button img{height:70px}.chat-page .welcome-eyebrow{font-size:8px}.chat-page .composer-dock{padding-top:4px;padding-bottom:10px}.chat-page #chatInput{min-height:54px}}
@media(max-width:760px){.chat-page .chat-rail{width:280px}.chat-page .composer-dock{padding:8px 12px max(10px,env(safe-area-inset-bottom))!important}.chat-page .chat-composer{padding:14px 12px 10px!important;border-radius:18px}.chat-page .agent-preferences{gap:8px}.chat-page .effort-control{gap:5px}.chat-page .effort-heading{display:none}.chat-page .effort-levels button{font-size:9px;padding:6px;min-height:30px}.chat-page .model-picker summary b{font-size:10px}.chat-page .chat-welcome .prompt-suggestions{display:none}.chat-page .chat-scroll.is-welcome .chat-welcome{padding:26px 20px 18px!important}.chat-page .chat-welcome h1{font-size:34px!important}.chat-page .chat-welcome>p{font-size:12px}.chat-page .composer-help{display:none}.chat-page .composer-footnote{display:none}.chat-page .mode-controls button{font-size:10px!important;padding:7px!important}}
@media(prefers-reduced-motion:reduce){.chat-page .chat-composer{transition:none}}
@media(min-width:761px){.chat-page .chat-main{margin-left:264px}}
.chat-page .chat-rail{overflow:hidden;gap:8px}.chat-page .chat-history{flex:1;min-height:0}.chat-page .history-heading{padding-top:4px;margin-top:5px}.chat-page .chat-quota{margin-top:4px}.chat-page .rail-library{margin-top:4px}.chat-page .rail-platform{margin-top:4px;margin-bottom:4px}.chat-page .rail-upgrade{margin-top:4px}.chat-page .rail-account{flex-shrink:0}
@media(max-height:760px) and (min-width:761px){.chat-page .chat-scroll.is-welcome .chat-welcome{padding:15px 24px 10px;gap:0}.chat-page .chat-welcome .prompt-suggestions{margin-top:12px}.chat-page .chat-welcome>p{margin-bottom:8px}.chat-page .welcome-bottom{margin-top:6px;min-height:32px;height:32px;font-size:10px}.chat-page .chat-welcome h1{margin:10px 0;font-size:34px}.chat-page .composer-dock{padding-bottom:8px}.chat-page .composer-footnote{padding-top:3px}}
@media(max-width:760px){.chat-page .chat-main{margin-left:0}}
.chat-page .chat-rail{gap:4px}.chat-page .new-conversation{margin:16px 0 10px;flex-shrink:0}.chat-page .history-heading{min-height:32px;height:32px;padding:0 6px;flex-shrink:0}.chat-page #createFolder{min-height:30px;height:30px;width:30px;padding:0}.chat-page .folder-storage-note{margin:2px 7px 7px}.chat-page .history-search{min-height:38px;height:38px;padding:6px 9px;margin-bottom:8px;flex-shrink:0}.chat-page .chat-quota{font-size:9px;line-height:1.5;padding:6px 2px;margin:4px 0}.chat-page .rail-platform{display:none}.chat-page .rail-library{min-height:44px;height:44px;padding:6px 9px;flex-shrink:0}.chat-page .rail-upgrade{min-height:44px;height:44px;padding:6px 9px;flex-shrink:0}.chat-page .rail-account{height:48px;padding:8px 0}.chat-page .folder-form{flex-shrink:0}.chat-page .history-move{color:#bfa2db;font-size:0;background:#20152e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%23c6a6df' d='M5 8h2v2H5zm4 0h2v2H9zm4 0h2v2h-2z'/%3E%3C/svg%3E") center/18px no-repeat;appearance:none}.chat-page .history-move option{font-size:12px}
@media(max-width:760px){.chat-page .chat-welcome .prompt-suggestions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px!important;margin:16px 0 0!important;width:100%}.chat-page .chat-welcome .prompt-suggestions button{display:block!important;min-width:0;min-height:62px;padding:10px!important}.chat-page .chat-welcome .prompt-suggestions img,.chat-page .chat-welcome .prompt-suggestions small{display:none!important}.chat-page .chat-welcome .prompt-suggestions button>span{display:block!important;padding:0!important}.chat-page .chat-welcome .prompt-suggestions b{font-size:10px;line-height:1.5}.chat-page .chat-scroll.is-welcome .chat-welcome{min-height:0!important}.chat-page .chat-welcome h1{margin:16px 0!important}.chat-page .chat-welcome>p{margin-bottom:12px}.chat-page .welcome-bottom{display:none!important}}
/* Project actions and a stationary welcome; messages retain their own scroll. */
.chat-page #chatWelcome[hidden]{display:none!important}
.chat-page .chat-scroll.is-welcome{overflow:hidden!important;overscroll-behavior:none;scroll-behavior:auto}
.chat-page .prompt-suggestions{overflow:visible!important;scroll-snap-type:none!important;transform:none!important}
.chat-page #createFolder{display:grid;place-items:center;border:1px solid transparent;background:transparent;border-radius:9px;color:#ae96c4;transition:background .16s,color .16s,border-color .16s}
.chat-page #createFolder svg{width:19px;height:19px}
.chat-page #createFolder:hover,.chat-page #createFolder:focus-visible{color:#eee1ff;background:#c397ff13;border-color:#c397ff40;outline:none}
.chat-page .folder-form{padding:14px;border-radius:14px;background:linear-gradient(140deg,#21182d,#15101e);border-color:#c7a4ed29;box-shadow:0 8px 24px #0002}
.chat-page .folder-form label{font-size:11px;font-weight:500;letter-spacing:.1px}
.chat-page .folder-form input{border-radius:9px;background:#0e0b14;border-color:#c7a4ed24;font:inherit;font-size:12px;padding:11px;outline:none;box-shadow:none}
.chat-page .folder-form input:focus-visible{border-color:#ba92e8;box-shadow:0 0 0 3px #ba92e814}
.chat-page .folder-form>div{gap:7px}.chat-page .folder-form button{font-size:11px;padding:9px 12px;border-radius:8px;cursor:pointer}
.chat-page .folder-form button[type=submit]{background:#cfb5ed;color:#251631;border-color:transparent;font-weight:600}
.chat-page .folder-form #cancelFolder{background:transparent;border-color:transparent;color:#bca8cd}
.chat-page .folder-form #cancelFolder:hover{background:#c7a4ed12;color:#eee1ff}
.chat-page .folder-form p:empty{display:none}
.chat-page .history-row{display:flex;flex-wrap:wrap;position:relative}
.chat-page .history-item{padding-right:38px}
.project-menu{width:100%;min-width:0}
.project-menu>summary{position:absolute;right:4px;top:7px;width:30px;height:30px;display:grid;place-items:center;list-style:none;cursor:pointer;color:#a78dbd;border:1px solid transparent;border-radius:8px;background:transparent}
.project-menu>summary::-webkit-details-marker{display:none}
.project-menu>summary .ui-icon{width:16px;height:16px}
.project-menu>summary:hover,.project-menu[open]>summary,.project-menu>summary:focus-visible{background:#c397ff12;border-color:#c397ff30;color:#e1c6ff;outline:none}
.project-menu-panel{padding:8px;margin:0 3px 8px;border:1px solid #c397ff30;border-radius:12px;background:linear-gradient(140deg,#24192f,#15101e);box-shadow:0 8px 20px #0002}
.project-menu-panel>span{display:block;padding:6px 7px 8px;font-size:10px;color:#ae96c4}
.project-menu-panel button{display:flex;align-items:center;gap:9px;width:100%;padding:9px 8px;background:transparent;border:0;border-radius:7px;text-align:left;color:#d7c5e6;font-size:11px;cursor:pointer}
.project-menu-panel button .ui-icon{width:15px;height:15px;flex-shrink:0}.project-menu-panel button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-menu-panel button:hover,.project-menu-panel button:focus-visible{background:#c397ff18;outline:none}
.project-menu-panel button[aria-pressed=true]{color:#e3c9ff;background:#b48bd912}
.project-menu-panel button[aria-pressed=true]:after{content:'✓';margin-left:auto;color:#c9a7ed}
@media(max-height:640px){.chat-page .chat-welcome .prompt-suggestions img{display:none}.chat-page .chat-welcome .welcome-bottom{display:none}.chat-page .chat-scroll.is-welcome .chat-welcome{padding-top:10px!important;padding-bottom:8px!important}.chat-page .chat-welcome h1{font-size:28px!important;margin:8px 0!important}.chat-page .welcome-eyebrow{display:none}}
@media(prefers-reduced-motion:reduce){.chat-page #createFolder{transition:none}}
/* Guidance stays available after the welcome gives way to the conversation. */
.chat-guide-trigger{border:1px solid #b994df30;border-radius:8px;background:#b994df0b;color:#d9c8ec;padding:7px 10px;font:inherit;font-size:11px;cursor:pointer}
.chat-page .chat-welcome>p{max-width:570px;margin-left:auto;margin-right:auto;line-height:1.7}
.chat-guide{box-sizing:border-box;width:min(620px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:28px;border:1px solid #bd9be343;border-radius:22px;background:linear-gradient(145deg,#21182f,#100d18);color:#ece1f7;box-shadow:0 32px 100px #0008;overflow:auto}
.chat-guide::backdrop{background:#06040dcc;backdrop-filter:blur(8px)}
.chat-guide{scrollbar-width:thin;scrollbar-color:#76578d transparent;overscroll-behavior:contain}
.chat-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.chat-guide-heading button{width:34px;height:34px;border:1px solid #b994df30;border-radius:10px;background:transparent;color:#d5c1ea;font-size:22px;cursor:pointer}
.chat-guide h2{font-size:28px;letter-spacing:-1px;margin:18px 0 8px}.chat-guide p{font-size:13px;line-height:1.7;color:#b8a9ca;margin:7px 0 0}.chat-guide-steps{list-style:none;counter-reset:guide;padding:0;margin:24px 0;display:grid;gap:20px}.chat-guide-steps li{counter-increment:guide;position:relative;padding-left:44px}.chat-guide-steps li:before{content:counter(guide,decimal-leading-zero);position:absolute;left:0;top:0;color:#c5a0ec;font-size:12px;border:1px solid #c5a0ec30;border-radius:9px;padding:7px}.chat-guide strong{font-size:14px;font-weight:600}.chat-guide-limits{padding:16px;border:1px solid #b994df24;border-radius:12px;background:#b994df08}.chat-guide-done{width:100%;margin-top:20px;padding:12px;border:0;border-radius:10px;color:#21122f;background:#ceb2ec;font-weight:600;cursor:pointer}
.chat-guide button:focus-visible,.chat-guide-trigger:focus-visible{outline:2px solid #dbbaff;outline-offset:3px}
@media(max-width:760px){.chat-page .chat-header-right .chat-guide-trigger{display:block}.chat-guide{padding:20px}.chat-page .chat-welcome>p{line-height:1.6}}
.chat-page .output-head .studio-card{display:inline-flex;padding:8px 12px;margin:0;min-width:0;flex-shrink:0;border-radius:9px;background:#cbb0e7;color:#21162e;font-size:11px;box-shadow:none}
.experience-files{border-top:1px solid #bb93e126;background:#171121;padding:0 16px}.experience-files>summary{display:flex;justify-content:space-between;gap:10px;cursor:pointer;padding:15px 0;font-size:12px;color:#dfc9f3;list-style:none}.experience-files>summary:before{content:'+';color:#b892da}.experience-files[open]>summary:before{content:'−'}.experience-files>summary span{margin-left:auto;color:#9f8db1;font-size:10px}
.experience-check{padding:12px;border:1px solid #bf9fdf24;border-radius:10px;background:#bd99e009}.experience-check strong{font-size:12px;color:#d6c0ed}.experience-files p{font-size:11px;line-height:1.6;color:#ac9bbc;margin:6px 0 12px}.experience-check p{margin-bottom:0}
.experience-file-list{display:grid;gap:6px;margin:12px 0}.experience-file-list a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid #bca0d721;border-radius:8px;color:#dac9e9;font-size:11px;text-decoration:none}.experience-file-list a span{overflow-wrap:anywhere;min-width:0}.experience-file-list small{color:#ab93bf;white-space:nowrap}
.experience-resources>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-bottom:16px}.experience-resources a{color:#d6c0ec;text-decoration:none;font-size:11px}.experience-resources img{display:block;width:100%;height:90px;object-fit:cover;border-radius:9px;margin-bottom:6px}
.source-details{border:1px solid #bca0d729;border-radius:10px;margin:12px 0;overflow:hidden}.source-details>summary{padding:12px;cursor:pointer;font-size:12px;color:#c5abd9}.source-details .code-block{margin:0;border:0;border-radius:0}
.output-page[data-game=true] .artifact-frame,.output-page[data-game=true] iframe{background:#110d1b}
.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock .chat-composer{padding-top:12px!important;padding-bottom:10px!important}
.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock #chatInput{min-height:44px!important}
.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock .chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;row-gap:0}
.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock #chatInput{grid-column:1/-1;padding-bottom:6px}
.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock .agent-preferences{grid-column:1;padding:6px 0;border-bottom:0;min-width:0}
.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock .composer-controls{grid-column:2;border:0;padding:6px 0;gap:10px}
.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock .composer-help,.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock .composer-footnote{display:none}
@media(max-width:1000px){.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock .chat-composer{grid-template-columns:1fr}.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock .composer-controls{grid-column:1;padding-top:0}.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock .agent-preferences{padding:4px 0}}
.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock .agent-preferences{flex-wrap:nowrap;gap:8px}
.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock .effort-control{min-width:0;flex:1}
.chat-page[data-studio-view=chat] .chat-scroll:not(.is-welcome)~.composer-dock .effort-heading{display:none}
.chat-page .artifact-frame,.chat-page .artifact-scaler iframe{background:#100c18}

.project-resource-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px;margin:28px 0}.project-resource-card{min-width:0;border:1px solid #bfa1ed30;background:#171122;border-radius:16px;padding:16px}.project-resource-card>div{height:180px;display:grid;place-items:center;background:repeating-conic-gradient(#211a30 0% 25%,#191323 0% 50%) 0/24px 24px;border-radius:10px}.project-resource-card img{max-width:100%;max-height:170px;object-fit:contain;image-rendering:pixelated}.project-resource-card h2{font-size:15px;overflow-wrap:anywhere}.project-resource-card p,.project-resource-note{font-size:13px;line-height:1.7;color:#b5a6c9}.project-resource-card a{color:#d9c1ff;font-size:12px}.project-source-files{max-width:900px;margin:32px 0}.project-source-files h2{font-size:18px}.project-source-files a{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #bfa1ed22;color:#d9c1ff;font-size:13px;overflow-wrap:anywhere}

.project-resource-heading{max-width:850px}.project-resource-heading>span{font-size:10px;letter-spacing:2px;color:#bba2e0}.project-resource-heading h1{font-size:clamp(28px,4vw,42px);letter-spacing:-1.5px;margin:18px 0 12px;overflow-wrap:anywhere}.project-resource-heading p{color:#b5a6c9;font-size:14px;line-height:1.7;max-width:650px}.project-resource-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.project-resource-card img{width:auto;min-width:128px}.project-resource-card>div{height:160px}.project-resource-card img{max-height:150px}

.scene-editor{padding:18px;border:1px solid #bda0ed30;border-radius:14px;background:#171022;margin-bottom:16px}.scene-editor h3{margin:10px 0}.scene-editor p{font-size:12px;line-height:1.6;color:#b5a6c9}.scene-add{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.scene-editor button{padding:8px 10px;background:#342442;border:1px solid #bfa1ed35;border-radius:8px;color:#e2cff7;font:inherit;font-size:12px}.scene-map{display:block;width:100%;border:1px solid #bfa1ed35;border-radius:10px;touch-action:none;margin:14px 0}.scene-map [data-scene-object]{cursor:grab}.scene-map [data-scene-object]:focus{outline:none;stroke:#fff}.scene-editor label{display:grid;gap:7px;font-size:11px;color:#cbb8de}.scene-editor input,.scene-editor select,.scene-editor textarea{min-width:0;width:100%;padding:9px;background:#100b19;border:1px solid #bfa1ed35;border-radius:7px;color:#ece1fc;font:inherit}.scene-object-fields,.scene-preview-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.scene-caption{font-size:10px!important}.scene-editor textarea{min-height:90px;resize:vertical}.studio-pack-label[hidden],#studioProject[hidden]{display:none!important}
