/* Readable composer and responsive toolbar; generated previews do not load this stylesheet. */
:root { --input-min: 180px; --input-max: 45dvh; }
@media(min-width:1440px){:root{--input-min:200px}}
@media(min-width:1920px){:root{--input-min:240px}}
@media(max-width:1023px){:root{--input-min:150px;--input-max:40dvh}}
@media(max-width:600px){:root{--input-min:120px;--input-max:35dvh}}
#composer, .chat-home-page #composer, .instant-app-mode #content>.chat-panel #composer {display:flex!important;flex-direction:column;align-items:stretch;gap:8px;min-width:0;min-height:0;flex-shrink:0}
#composer #prompt {display:block;flex:none;width:100%;min-width:0;min-height:min(var(--input-min),var(--input-max));max-height:var(--input-max);height:min(var(--input-min),var(--input-max));resize:vertical;overflow-y:auto;font-size:16px;line-height:1.5;padding:8px;color:var(--text)}
#composer .composer-controls {display:flex;flex-wrap:wrap;width:100%;margin:0;gap:8px;align-items:center;justify-content:flex-end;border-top:1px solid var(--border);padding-top:8px}
#composer .composer-controls select {font-size:14px;min-width:0;max-width:100%;width:auto;flex:1 1 130px}
#composer .composer-controls button {font-size:14px;min-width:44px;min-height:44px;white-space:normal}
.input-editor-bar {display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.input-editor-bar button {font-size:14px;min-height:36px;min-width:44px}
#composer.input-expanded {position:fixed!important;inset:12px!important;top:var(--editor-top,12px)!important;bottom:var(--editor-bottom,12px)!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important;z-index:1000;background:var(--panel);overflow:auto;box-shadow:0 0 0 100vmax #0009}
#composer.input-expanded #prompt {flex:1 1 0;min-height:80px;max-height:none;height:auto!important;resize:none}
#composer.input-expanded .composer-controls{flex-shrink:0}
#instantChange,#bpPrompt,#bpDesign,#bpExistingSource,#studioReviewPrompt {font-size:16px;line-height:1.5;resize:vertical;min-height:120px;max-height:50dvh}
.chat-attachment-list {flex-wrap:wrap;min-width:0;overflow-wrap:anywhere}
.chat-attachment-list>* {max-width:100%;min-width:0;overflow-wrap:anywhere}
.chatbox {font-size:16px;line-height:1.55}
.sidebar nav button {font-size:15px}
@media(max-height:650px){#composer #prompt{min-height:min(100px,25dvh);max-height:40dvh}.instant-app-mode #content>.chat-panel{overflow-y:auto}}
