/* One input behavior across request fields; original media and source editors
   deliberately do not inherit these rules. */
.shared-composer{min-width:0;max-width:100%;position:relative;color:var(--text,#e7edf3)}
.shared-composer .shared-composer-input{display:block;box-sizing:border-box;width:100%;min-height:38px!important;max-height:none;resize:none;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;scrollbar-gutter:stable;font-family:var(--sans,system-ui,sans-serif)}
.shared-composer-tools{display:flex;justify-content:flex-end;gap:8px;margin:4px 0 8px}
.shared-composer-tools button{min-height:32px;border:1px solid var(--line,#344557);border-radius:8px;padding:5px 9px;background:var(--panel,#182330);color:inherit;font:inherit;font-size:12px;cursor:pointer}
.shared-composer :is(button,select,summary,textarea):focus-visible{outline:2px solid var(--cyan,#5ee0e6)!important;outline-offset:3px!important}
:root[data-theme] .unified-shell #composer #prompt{height:var(--prompt-height,38px)!important;max-height:none!important;min-height:38px!important}
.shared-composer.expanded .shared-composer-input{min-height:min(240px,35dvh)!important}
.composer-secondary{position:relative;margin:0}
.composer-secondary>summary{list-style:none;cursor:pointer;padding:6px 10px;border-radius:8px;font-size:12px;white-space:nowrap}
.composer-secondary>summary::-webkit-details-marker{display:none}
.composer-secondary-content{position:absolute;bottom:calc(100% + 8px);left:0;z-index:150;display:flex;flex-wrap:wrap;gap:8px;width:260px;max-width:calc(100vw - 40px);padding:12px;background:var(--panel,#182330);color:var(--text,#e7edf3);border:1px solid var(--line,#344557);border-radius:12px;box-shadow:0 8px 28px #0004}
.composer-output-label{display:flex;flex-direction:column;gap:5px;font-size:12px;width:100%}
.composer-output-label select{min-height:36px;width:100%;font:inherit}
@media(max-width:768px),(pointer:coarse){
 .shared-composer .shared-composer-input{font-size:16px!important}
 .shared-composer :is(button,summary,select){min-height:44px!important}
 .shared-composer-tools{margin-bottom:4px}
 :root[data-theme] .unified-shell .composer-toolbar{flex-wrap:wrap;row-gap:5px}
 :root[data-theme] .unified-shell .composer-toolbar #profile{min-height:44px!important}
 .composer-secondary-content{max-height:45dvh;overflow-y:auto}
}

/* Model and request controls stay reachable in every main-workspace mode. */
:root[data-theme] .unified-shell #composer #profile{display:block!important;visibility:visible!important}
/* Empty composers rest at the compact 56px reference height. */
.shared-composer.composer-resting{box-sizing:border-box;min-height:56px!important;padding:6px 10px!important;display:flex;align-items:center;gap:6px}
.shared-composer.composer-resting .shared-composer-input{height:40px!important;min-height:40px!important;max-height:40px!important;overflow:hidden!important;flex:1;min-width:0;padding:8px!important}
.shared-composer.composer-resting>.shared-composer-tools{display:none}
