/* Image composer: compact at rest, but long prompts grow within the bounded JS editor.
   Never fix the top grid track or override the editor's inline height.
   Image composer: compact, stable before/after attaching photographs.
   Intentionally does not alter native Create or the dedicated PV Soul layout. */
html:not(.pv-native-lab) #image-composer .composer-add-wrap{
 display:inline-flex!important;align-items:center;gap:4px;flex:0 0 68px!important;
 min-width:68px!important;width:68px!important;height:40px;max-height:40px
}
html:not(.pv-native-lab) #image-composer .composer-add-wrap[hidden]{display:none!important}
html:not(.pv-native-lab) #image-composer #image-composer-add{
 display:grid!important;place-items:center!important;flex:0 0 40px!important;
 width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;
 padding:0!important;border:1px solid #424744;border-radius:9px;background:#292c2a;color:#f3f4ee
}
html:not(.pv-native-lab) #image-composer #image-composer-add[hidden]{display:none!important}
html:not(.pv-native-lab) #image-composer #image-composer-add:hover:not(:disabled){background:#343935;border-color:#777d74}
html:not(.pv-native-lab) #image-composer .composer-add-plus{font:350 26px/1 Arial,sans-serif;transform:translateY(-1px)}
html:not(.pv-native-lab) #image-composer .composer-add-saved-toggle{
 display:grid;place-items:center;flex:0 0 24px;width:24px;min-width:24px;
 height:40px;min-height:40px;padding:0;border:1px solid #404440;
 border-radius:8px;background:#252825;color:#cbd0cb
}
html:not(.pv-native-lab) #image-composer .composer-add-saved-toggle svg{width:15px;height:15px}
html:not(.pv-native-lab) #image-composer .composer-add-saved-toggle:is(:hover,[aria-expanded="true"]):not(:disabled){background:#363a36;border-color:#8a9186;color:#f7f7f3}
html:not(.pv-native-lab) #image-composer .composer-more-compact:not(.is-identity-adjustment){
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px!important;
 width:38px!important;min-width:38px!important;height:39px!important;min-height:39px!important;
 max-height:39px!important;padding:0!important;gap:0!important;box-sizing:border-box
}
html:not(.pv-native-lab) #image-composer .composer-more-compact .composer-settings-icon{width:18px;height:18px;flex:0 0 18px}
html:not(.pv-native-lab) #image-composer .composer-more-compact:not(.is-identity-adjustment) .composer-more-label{display:none!important}
html:not(.pv-native-lab) #image-composer .composer-more-compact.is-identity-adjustment .composer-settings-icon{display:none}
html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .image-composer-top{
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
 align-items:center!important;box-sizing:border-box;gap:9px!important;
 width:100%;min-width:0;height:auto!important;min-height:64px!important;max-height:none!important;padding:0!important
}
html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .image-composer-references:not([hidden]){
 display:flex!important;flex-direction:row!important;align-items:center!important;
 flex:0 1 auto!important;width:auto!important;min-width:0;
 height:59px!important;min-height:0!important;max-height:59px!important;max-width:min(38%,328px)!important;
 padding:5px 8px 2px 3px!important;gap:7px!important;flex-wrap:nowrap!important;
 overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain
}
html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-reference-tile{
 flex:0 0 51px!important;width:51px!important;min-width:51px!important;height:52px!important;min-height:52px!important
}
html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) #image-composer-prompt{
 display:block!important;box-sizing:border-box;flex:1 1 0!important;align-self:center!important;
 width:auto!important;min-width:0!important;height:54px;min-height:54px!important;
 max-height:none!important;padding:7px 4px!important;margin:0!important;
 resize:none!important;overflow-x:hidden!important;overflow-y:auto
}
@media(min-width:900px){
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul){
  grid-template-rows:minmax(64px,max-content) 41px!important;row-gap:7px!important;padding:14px 20px!important
 }
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-controls{
  display:flex!important;align-items:center!important;align-content:center;
  flex-wrap:nowrap!important;gap:6px!important;height:41px!important;min-height:41px!important;min-width:0
 }
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-model-wrap{flex:0 1 165px;min-width:100px;max-width:178px}
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-model-pill{box-sizing:border-box;width:100%;min-width:0;padding:7px 8px;gap:5px}
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) #image-composer-model-label{min-width:0;max-width:116px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) #image-composer-edit-area{flex:0 0 auto;padding:8px}
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-mood-control{flex:0 1 104px;min-width:78px;max-width:108px}
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-mood-control #image-composer-moods{min-width:0;padding:8px 9px}
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) #composer-reference-intent-toggle:not([hidden]){
  flex:0 0 auto;max-width:124px;min-width:0;padding:7px 9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
 }
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-controls>.composer-select-pill{min-width:0;padding-inline:3px}
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-controls>.composer-select-pill select{min-width:37px;max-width:105px;padding:6px 17px 6px 5px;font-size:11.5px}
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-generate{grid-row:1/3;align-self:end}
}
@media(min-width:900px) and (max-width:1159px){
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul){grid-template-rows:minmax(64px,max-content) 83px!important}
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-controls{
  height:83px!important;min-height:83px!important;flex-wrap:wrap!important;
  align-content:center!important;row-gap:6px!important
 }
}
@media(max-width:899px){
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .image-composer-top{
  height:auto!important;min-height:59px!important;max-height:none!important;gap:7px!important
 }
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .image-composer-references:not([hidden]){
  height:55px!important;max-height:55px!important;max-width:38%!important;
  padding:5px 6px 2px 3px!important;gap:5px!important
 }
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-reference-tile{
  flex-basis:46px!important;width:46px!important;min-width:46px!important;
  height:47px!important;min-height:47px!important
 }
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) #image-composer-prompt{
  height:52px;min-height:52px!important;max-height:none!important
 }
}
@media(max-width:650px){
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-controls>.composer-add-wrap{
  flex:0 0 61px!important;width:61px!important;min-width:61px!important;
  height:36px!important;max-height:36px!important;gap:3px!important
 }
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) #image-composer-add{
  flex-basis:36px!important;width:36px!important;min-width:36px!important;
  height:36px!important;min-height:36px!important;max-height:36px!important
 }
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-add-saved-toggle{
  flex-basis:22px;width:22px;min-width:22px;height:36px;min-height:36px
 }
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) .composer-more-compact:not(.is-identity-adjustment){
  flex-basis:36px!important;width:36px!important;min-width:36px!important;
  height:36px!important;min-height:36px!important;max-height:36px!important
 }
}

/* Desktop prompt typography only. The editor/dock heights and controls are unchanged.
   Higgsfield-style readable direction text without enlarging toolbar labels. */
@media(min-width:741px){
 html:not(.pv-native-lab) #image-composer:not(.is-pv-soul) #image-composer-prompt{
  font-size:17px!important;
 }
}
