/* The web Image Deck shares one surface and type scale for its tools. */
html:not(.pv-native-lab) #main :is(#app.image-studio-active #image-composer.pv-editorial-deck,#gate.pv-guest-image #pv-guest-composer){
  --pv-image-tool-height:34px;
  --pv-image-tool-fill:#323437;
  --pv-image-tool-hover:#3e4043;
  --pv-image-tool-type:13px;

  @media(max-width:899px){
    --pv-image-tool-height:35px;
    --pv-image-tool-type:11px;
  }

  & [data-deck-slot="controls"] :is([data-deck-control],.composer-more-compact,.composer-mobile-more,#pv-guest-mobile-more,#image-reference-mode){
    box-sizing:border-box!important;
    height:var(--pv-image-tool-height)!important;
    min-height:var(--pv-image-tool-height)!important;
    max-height:var(--pv-image-tool-height)!important;
    border:0!important;
    border-radius:8px!important;
    background:var(--pv-image-tool-fill)!important;
    box-shadow:none!important;
    color:#eeeeef!important;
    font:600 var(--pv-image-tool-type)/1.2 'DM Sans',Arial,sans-serif!important;
  }
  & [data-deck-slot="controls"] :is(button,select):is([data-deck-control],.composer-more-compact,.composer-mobile-more,#pv-guest-mobile-more,#image-reference-mode):is(:hover:not(:disabled),[aria-expanded="true"]){
    background:var(--pv-image-tool-hover)!important;
  }
  & [data-deck-slot="controls"] :is(button,select):is([data-deck-control],.composer-more-compact,.composer-mobile-more,#pv-guest-mobile-more,#image-reference-mode):focus-visible{
    outline:2px solid #c4c7ca!important;
    outline-offset:2px!important;
  }
  & [data-deck-slot="controls"] :is([data-deck-control="moods"],#image-composer-moods){
    color:#dcff00!important;
  }
  & .composer-select-pill:has(> :is([data-deck-control="ratio"],[data-deck-control="resolution"],#image-reference-mode)){
    height:var(--pv-image-tool-height)!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  & .composer-select-pill:has(> :is([data-deck-control="ratio"],[data-deck-control="resolution"],#image-reference-mode))::after{
    top:50%;
    transform:translateY(-50%);
    color:#b1b3b5;
  }
  & .composer-add-plus{
    font:400 22px/1 Arial,sans-serif!important;
  }
  @media(max-width:360px){
    & #composer-reference-intent-toggle[data-compact-label]{font-size:0!important}
  }
}

/* Two choices beside the Base button. The web popover takes no deck space. */
html:not(.pv-native-lab) #image-composer .composer-reference-intent{
  bottom:auto;transform:none;width:min(224px,calc(100vw - 16px));
  padding:5px;border:1px solid #404245;border-radius:10px;
  background:#1b1c1e;box-shadow:0 12px 32px #0008;

  & :is(.reference-intent-heading,.reference-intent-footnote,.reference-intent-copy small){display:none}
  & .reference-intent-choices{gap:2px}
  & .reference-intent-choice{
    grid-template-columns:16px minmax(0,1fr) 14px;column-gap:8px;
    min-height:36px;padding:7px 8px;border:0;border-radius:6px;
    background:transparent;
  }
  & .reference-intent-choice:hover:not(:disabled){background:#282a2c}
  & .reference-intent-choice[aria-pressed="true"]{background:#303235}
  & .reference-intent-choice:focus-visible{outline-offset:-2px}
  & .reference-intent-icon{width:16px;height:16px;border:0}
  & .reference-intent-icon svg{width:16px;height:16px}
  & .reference-intent-check{align-self:center;font-size:12px}

  @media(max-width:899px){
    & .reference-intent-choice{min-height:44px}
  }
}

/* One standard desktop Image instrument, based on the Owner History deck.
   The entrance and photo-free History share these slots and controls.
   Reference trays grow above the toolbar. Every model shares this design; mobile retains the common responsive rules. */
@media(min-width:1180px) and (min-height:680px){
  html:not(.pv-native-lab) #main :is(#app.image-studio-active #image-composer.pv-editorial-deck:not(.is-pv-soul):not(.has-character-picker),#gate.pv-guest-image #pv-guest-composer){
    display:grid!important;box-sizing:border-box!important;
    width:min(1120px,calc(100vw - 52px))!important;
    grid-template-columns:minmax(0,1fr) 144px!important;
    grid-template-rows:minmax(64px,max-content) 41px!important;
    gap:7px 12px!important;padding:14px 20px!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    border:1px solid rgba(215,219,218,.24)!important;border-radius:19px!important;
    background:linear-gradient(115deg,rgba(255,255,255,.035),rgba(255,255,255,.009) 24%,transparent 55%),linear-gradient(180deg,rgba(30,32,34,.985),rgba(16,18,21,.99))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.085),0 22px 64px rgba(0,0,0,.48)!important;
    font-family:'DM Sans',Arial,sans-serif!important;

    & :is(.image-composer-toolbar,.pv-guest-composer-footer){display:contents!important}
    & [data-deck-slot="prompt"]{
      grid-area:1 / 1!important;display:flex!important;align-items:center!important;
      width:100%!important;min-width:0!important;height:auto!important;min-height:64px!important;
      max-height:none!important;padding:0!important;margin:0!important;
    }
    &:has(#image-composer-references:not([hidden]) .composer-reference-tile) [data-deck-slot="prompt"]{
      flex-direction:column!important;align-items:stretch!important;
    }
    & :is(#image-composer-prompt,#pv-guest-prompt){
      display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;
      min-height:54px!important;max-height:136px;align-self:center!important;
      margin:0!important;padding:7px 4px!important;white-space:pre-wrap!important;
      border:0!important;outline:none!important;box-shadow:none!important;background:transparent!important;
      color:#f5f3ef!important;font:420 13px/1.53 'DM Sans',Arial,sans-serif!important;
      letter-spacing:-.019em!important;resize:none!important;overflow-x:hidden!important;
    }
    & :is(#image-composer-prompt,#pv-guest-prompt)::placeholder{color:#b9bbb9!important;opacity:1!important}
    &:not(.pv-deck-has-prompt) :is(#image-composer-prompt,#pv-guest-prompt){height:54px!important}
    /* Empty Base/reference editor must retain its one-line photo-editing height.
       Prevent a stale inline textarea size from changing the deck when text is deleted. */
    &:has(#image-composer-references:not([hidden]) .composer-reference-tile):not(.pv-deck-has-prompt) #image-composer-prompt{
      height:44px!important;min-height:44px!important;max-height:44px!important;
    }
    & [data-deck-slot="controls"]{
      grid-area:2 / 1!important;display:flex!important;align-items:center!important;
      justify-content:flex-start!important;flex-wrap:nowrap!important;
      width:max-content!important;max-width:100%!important;min-width:0!important;
      height:41px!important;min-height:41px!important;gap:6px!important;padding:0!important;margin:0!important;
      overflow:visible!important;
    }
    & :where([data-deck-control]:not([data-deck-control="exact"])){
      letter-spacing:0!important;white-space:nowrap!important;gap:5px!important;padding:0 8px!important;
      margin:0!important;
    }
    & [data-deck-control][hidden]{display:none!important}
    & [data-deck-control="retouch"]:not([hidden]){
      display:inline-flex!important;align-items:center!important;flex:0 0 auto!important;
      padding:8px!important;font-size:13px!important;font-weight:700!important;
    }
    & .composer-add-wrap{display:flex!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:34px!important}
    & [data-deck-control="add"]{
      display:grid!important;place-items:center!important;flex:0 0 34px!important;
      width:34px!important;min-width:34px!important;padding:0!important;
    }
    & .scene-image-library-wrap{display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;flex:0 0 74px!important;width:74px!important;min-width:74px!important;height:34px!important}
    & :is([data-deck-control="library"],[data-deck-control="characters"]){
      display:grid!important;place-items:center!important;flex:0 0 34px!important;
      width:34px!important;min-width:34px!important;
      padding:0!important;
    }
    & :is([data-deck-control="library"],[data-deck-control="characters"]) svg{width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.5!important}
    & .composer-model-wrap{display:block!important;flex:0 0 165px!important;width:165px!important;min-width:165px!important;max-width:165px!important}
    & [data-deck-control="model"]{display:flex!important;align-items:center!important;width:100%!important;min-width:0!important}
    & :is(.composer-model-symbol,.pv-guest-model-symbol){display:inline-flex!important;flex:0 0 20px!important;width:20px!important;height:20px!important}
    & :is(.composer-model-symbol,.pv-guest-model-symbol) img{width:20px!important;height:20px!important;object-fit:contain!important}
    & :is(#image-composer-model-label,.pv-guest-model-label){min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;font:inherit!important;letter-spacing:inherit!important}
    & .composer-mood-control{display:block!important;flex:0 0 104px!important;width:104px!important;min-width:104px!important;max-width:104px!important}
    & [data-deck-control="moods"]{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important}
    & :is(.composer-mood-copy,.composer-mood-label,.pv-guest-chevron,.composer-chevron){font:inherit!important;letter-spacing:inherit!important}
    & [data-deck-control="base"]{
      display:inline-flex!important;align-items:center!important;justify-content:center!important;
      flex:0 0 144px!important;width:144px!important;min-width:144px!important;
      gap:4px!important;padding-inline:6px!important;
    }
    & .composer-select-pill:not([hidden]):has([data-deck-control]){display:flex!important;align-items:center!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important}
    & [data-deck-control="ratio"]{display:inline-flex!important;align-items:center!important;justify-content:space-between!important;width:85px!important;min-width:85px!important}
    & [data-deck-control="resolution"]{display:inline-flex!important;align-items:center!important;justify-content:space-between!important;width:46px!important;min-width:46px!important}
    & :is(#image-composer-ratio,#pv-guest-ratio){width:68px!important;min-width:68px!important}
    & :is(#image-composer-resolution,#pv-guest-resolution){width:56px!important;min-width:56px!important}
    & :is(#image-composer-ratio,#pv-guest-ratio,#image-composer-resolution,#pv-guest-resolution){
      position:relative;
      padding:0 6px 0 22px!important;
      gap:2px!important;
    }
    & :is(#pv-guest-ratio,#pv-guest-resolution,.composer-select-pill:has(> :is(#image-composer-ratio,#image-composer-resolution)))::before{
      content:"";
      position:absolute;
      z-index:1;
      top:50%;
      left:8px;
      width:11px;
      height:8px;
      box-sizing:border-box;
      border:1px solid #c4c7ca;
      border-radius:2px;
      transform:translateY(-50%);
      pointer-events:none;
    }
    & :is(#pv-guest-resolution,.composer-select-pill:has(> #image-composer-resolution))::before{
      width:8px;
      height:8px;
      border-radius:1px;
      transform:translateY(-50%) rotate(45deg);
    }
    & [data-deck-control="base"]::before{
      content:"";
      flex:0 0 13px;
      height:13px;
      background:#c4c7ca;
      mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.5' y='2.5' width='13' height='11' rx='2'/%3E%3Ccircle cx='6' cy='6' r='1'/%3E%3Cpath d='m2 11 3-2 2 2 3-4 4 4'/%3E%3C/svg%3E") center/contain no-repeat;
    }
    & [data-deck-control="count"]{display:inline-flex!important;align-items:center!important;justify-content:space-between!important;width:80px!important;min-width:80px!important}
    & [data-deck-control="exact"]{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 36px!important;width:36px!important;min-width:36px!important;padding:0 3px!important;margin:0!important}
    & :is([data-deck-control="exact"] input,.pv-guest-exact-switch){display:block!important;box-sizing:border-box!important;position:relative!important;width:28px!important;height:16px!important;min-height:16px!important;margin:0!important;border:1px solid #666b65!important;border-radius:99px!important;background:#343835}
    & .pv-guest-exact-switch:before{content:'';position:absolute;left:2px;top:2px;width:10px;height:10px;border-radius:50%;background:#d9dfd6}
    & [data-deck-slot="generate"]{
      grid-area:1 / 2 / 3 / 3!important;align-self:end!important;justify-self:stretch!important;
      display:flex!important;align-items:center!important;justify-content:center!important;
      width:144px!important;min-width:144px!important;height:84px!important;min-height:84px!important;max-height:84px!important;
      padding:10px 12px!important;box-sizing:border-box!important;
      border-radius:13px!important;font:600 15px/1.17 'DM Sans',Arial,sans-serif!important;letter-spacing:-.015em!important;
    }
    & [data-deck-slot="generate"]:not(.is-submitting){flex-direction:column!important;gap:5px!important}
    /* Generate paint is scoped below; this section continues to own geometry only. */
    & [data-deck-slot="generate"].is-long-label{font-size:13px!important}
    & [data-deck-slot="generate"] :is(strong,.composer-generate-label){font:inherit!important;letter-spacing:inherit!important}
    & [data-deck-slot="generate"] small{display:none!important}
    &:has(.pv-guest-attachments:not([hidden])){
      grid-template-rows:minmax(64px,max-content) 62px 41px!important;
      & .pv-guest-attachments{grid-area:2 / 1!important}
      & [data-deck-slot="controls"]{grid-area:3 / 1!important}
      & [data-deck-slot="generate"]{grid-area:1 / 2 / 4 / 3!important}
    }

    &:is(.pv-welcome-deck,#pv-guest-composer):not(.pv-deck-expanded):not(.has-pv-still-character){
      /* Compact reference: prompt, tools and Generate share one visible row.
         The outer frame stays anchored while the Owner editor opens below. */
      grid-template-columns:minmax(100px,1fr) max-content 128px!important;
      grid-template-rows:52px!important;gap:0 11px!important;padding:10px 13px!important;
      height:74px!important;min-height:74px!important;max-height:74px!important;
      & [data-deck-slot="prompt"]{grid-area:1 / 1!important;align-self:center!important;height:46px!important;min-height:46px!important;max-height:46px!important}
      & :is(#image-composer-prompt,#pv-guest-prompt){height:44px!important;min-height:44px!important;max-height:44px!important;padding:9px 4px!important;white-space:nowrap!important;overflow:hidden!important}
      /* Empty 100px-wide input previously clipped the approved placeholder in
         mid-word. Wrap only the empty hint to two legible lines inside the
         existing 44px box. Editing still uses the unchanged expanded deck. */
      & :is(#image-composer-prompt,#pv-guest-prompt):placeholder-shown{
        white-space:normal!important;
        overflow-wrap:normal!important;
        font-size:12.5px!important;
        line-height:16px!important;
        padding:5px 4px!important;
      }
      & [data-deck-slot="controls"]{grid-area:1 / 2!important;align-self:center!important;height:45px!important;min-height:45px!important;gap:5px!important}
      & [data-deck-control="retouch"]{display:none!important}
      & [data-deck-slot="generate"]{grid-area:1 / 3!important;align-self:center!important;width:128px!important;min-width:128px!important;height:52px!important;min-height:52px!important;max-height:52px!important;border-radius:11px!important;font-size:16px!important}
    }
  }
  html:not(.pv-native-lab) #gate #pv-guest-composer{margin-top:24px!important}
}

/* Image Generate only. Neutral ivory from the approved design, with a soft,
   non-yellow halo. Geometry, quoting, submission and disabled behavior stay untouched.
   Shared by signed-in web Image and the signed-out Image preview, never other tools. */
html:not(.pv-native-lab) #app.image-studio-active #image-composer #image-composer-generate:not(.is-submitting),
html:not(.pv-native-lab) #gate.pv-guest-image #pv-guest-generate {
  color:#252525!important;
  background:linear-gradient(155deg,#f8f7f4 0%,#ecebe8 100%)!important;
  border-color:#f1efec!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88),0 0 18px rgba(243,241,235,.26),0 5px 18px rgba(0,0,0,.17)!important;
}
html:not(.pv-native-lab) #app.image-studio-active #image-composer #image-composer-generate:hover:not(:disabled):not(.is-submitting),
html:not(.pv-native-lab) #gate.pv-guest-image #pv-guest-generate:hover {
  background:linear-gradient(155deg,#fffdfa 0%,#f3f2ef 100%)!important;
  border-color:#faf9f6!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 0 23px rgba(246,244,240,.33),0 6px 20px rgba(0,0,0,.19)!important;
}
html:not(.pv-native-lab) #app.image-studio-active #image-composer #image-composer-generate:disabled:not(.is-submitting) {
  color:#686965!important;
  background:#e9e8e5!important;
  border-color:#e8e7e3!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 0 15px rgba(241,239,234,.16),0 4px 16px rgba(0,0,0,.12)!important;
  cursor:not-allowed;
}

/* Every web Image model uses the normal deck above. Identity is one
   optional toolbar control, with the original private picker and handlers. */
html:not(.pv-native-lab) #app.image-studio-active #image-composer.pv-editorial-deck {
  & #composer-character:not([hidden]) {
    display:inline-flex!important;position:relative!important;align-items:center!important;
    justify-content:center!important;gap:6px!important;flex:0 1 130px!important;
    width:auto!important;min-width:78px!important;max-width:130px!important;
    height:40px!important;min-height:40px!important;padding:7px 8px!important;
    border:1px solid #393d39!important;border-radius:9px!important;
    background:#242625!important;color:#e9e7e5!important;
    font:600 12px/1.2 'DM Sans',Arial,sans-serif!important;
    grid-area:auto!important;
  }
  & #composer-character-photo {display:none!important}
  & #composer-character-photo:has(img) {
    display:block!important;flex:0 0 20px!important;width:20px!important;height:20px!important;
    border-radius:4px!important;overflow:hidden!important;
  }
  & #composer-character-name {
    display:inline-block!important;position:static!important;min-width:0!important;width:auto!important;
    max-width:100%!important;padding:0!important;background:none!important;
    color:inherit!important;font:inherit!important;line-height:inherit!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  & #hf-bar-source {display:none!important}
  & #hf-bar-resolution[data-deck-control] {width:84px!important;min-width:84px!important}
}

/* Soul output choices use the normal phone toolbar and its More disclosure. */
@media(max-width:899px){
  html:not(.pv-native-lab) #app.image-studio-active #image-composer.pv-editorial-deck {
    & .hf-bar-control:has(#hf-bar-ratio):not([hidden]){display:flex!important;order:4;min-width:0;padding:0}
    & #hf-bar-ratio{height:34px!important;min-height:34px!important;max-width:76px!important;font-size:11px!important}
    & #composer-character:not([hidden]){order:5;height:36px!important;min-height:36px!important}
    & .hf-bar-control:has(#hf-bar-resolution):not([hidden]){display:none!important;order:7}
    &[data-mobile-settings="open"] .hf-bar-control:has(#hf-bar-resolution):not([hidden]){display:flex!important}
  }
}

/* Owner-approved PV Still portrait picker. Reuse the private identity control,
   with one entry point and a slightly smaller square beside Generate. */
html:not(.pv-native-lab) #main #app.image-studio-active #image-composer.has-pv-still-character{
  --pv-character-size:76px;
  & #scene-image-library-wrap{flex:0 0 34px!important;width:34px!important;min-width:34px!important}
  & #scene-characters-open{display:none!important}
  & #composer-character:not([hidden]){
    display:block!important;position:relative!important;box-sizing:border-box!important;
    width:var(--pv-character-size)!important;min-width:var(--pv-character-size)!important;max-width:var(--pv-character-size)!important;
    height:var(--pv-character-size)!important;min-height:var(--pv-character-size)!important;max-height:var(--pv-character-size)!important;
    padding:0!important;overflow:hidden!important;flex:0 0 var(--pv-character-size)!important;
    border:1px solid #484a4c!important;border-radius:10px!important;
    background:linear-gradient(145deg,#323436,#242628)!important;color:#f1f1ef!important;
  }
  & #composer-character::before{
    content:'+';position:absolute;z-index:2;top:5px;left:5px;
    display:grid;place-items:center;width:18px;height:18px;border-radius:4px;
    background:#ffffff0a;color:#d3d4d3;font:400 17px/1 Arial,sans-serif;pointer-events:none;
  }
  & #composer-character:focus-visible{outline:2px solid #c4c7ca!important;outline-offset:3px!important}
  & #composer-character-photo{
    display:grid!important;position:absolute!important;inset:0!important;place-items:center!important;
    width:100%!important;height:100%!important;flex:none!important;border-radius:0!important;
    background:transparent!important;font-size:0!important;overflow:hidden!important;
  }
  & #composer-character.has-selected-character #composer-character-photo{font-size:20px!important}
  & #composer-character-photo img{display:block;width:100%;height:100%;object-fit:cover}
  & #composer-character-name{
    display:block!important;position:absolute!important;z-index:1;inset:auto 0 0!important;
    width:100%!important;max-width:100%!important;box-sizing:border-box!important;
    padding:17px 5px 5px!important;background:linear-gradient(transparent,#101113d9)!important;
    color:#f2f2ef!important;text-align:left!important;font:600 9px/1.15 'DM Sans',Arial,sans-serif!important;
    text-transform:uppercase;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
}
@media(min-width:1180px) and (min-height:680px){
  html:not(.pv-native-lab) #main :is(#app.image-studio-active #image-composer.pv-editorial-deck:not(.is-pv-soul):not(.has-character-picker),#gate.pv-guest-image #pv-guest-composer){width:min(1064px,calc(100vw - 52px))!important}
  html:not(.pv-native-lab) #main #app.image-studio-active #image-composer.pv-editorial-deck:not(.is-pv-soul):not(.has-character-picker).has-pv-still-character{
    grid-template-columns:minmax(0,1fr) 76px 144px!important;
    grid-template-rows:minmax(64px,max-content) 41px!important;
    gap:7px 12px!important;padding:14px 20px!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    & [data-deck-slot="prompt"]{grid-area:1 / 1!important;min-height:64px!important;height:auto!important;max-height:none!important}
    & #image-composer-prompt{min-height:54px!important;max-height:136px!important;white-space:pre-wrap!important}
    & [data-deck-slot="controls"]{grid-area:2 / 1!important;height:41px!important;min-height:41px!important;gap:6px!important}
    & #composer-character:not([hidden]){grid-area:1 / 2 / 3 / 3!important;align-self:end!important;justify-self:end!important}
    & #image-composer-generate{
      grid-area:1 / 3 / 3 / 4!important;align-self:end!important;width:144px!important;min-width:144px!important;
      height:84px!important;min-height:84px!important;max-height:84px!important;border-radius:13px!important;
    }
  }
}
/* The same picker remains accessible on phones and shorter laptop screens. */
@media(max-width:1179px),(max-height:679px){
  html:not(.pv-native-lab) #main #app.image-studio-active #image-composer.pv-editorial-deck.has-pv-still-character{
    display:grid!important;grid-template-columns:minmax(0,1fr) 76px 144px!important;
    grid-template-rows:auto auto auto!important;gap:8px 10px!important;
    & .image-composer-toolbar{display:contents!important}
    & .image-composer-top{grid-area:1 / 1 / 2 / 4!important;min-width:0!important}
    & .composer-controls{grid-area:2 / 1 / 3 / 4!important;display:flex!important;flex-wrap:wrap!important;width:100%!important;min-width:0!important}
    & .composer-flex{display:none!important}
    & #composer-character:not([hidden]){grid-area:3 / 2!important;align-self:end!important;justify-self:end!important}
    & #image-composer-generate{grid-area:3 / 3!important;align-self:end!important;width:144px!important;min-width:144px!important;height:84px!important;min-height:84px!important}
  }
}
@media(max-width:899px){
  html:not(.pv-native-lab) #main #app.image-studio-active #image-composer.pv-editorial-deck.has-pv-still-character{
    --pv-character-size:50px;grid-template-columns:50px minmax(0,1fr)!important;
    & .image-composer-top{grid-area:1 / 1 / 2 / 3!important}
    & .composer-controls{grid-area:2 / 1 / 3 / 3!important}
    & #composer-character:not([hidden]){grid-area:3 / 1!important}
    & #image-composer-generate{grid-area:3 / 2!important;width:100%!important;min-width:0!important;height:56px!important;min-height:56px!important}
    & #composer-character-name{font-size:8px!important;padding:12px 4px 4px!important}
    & #composer-character::before{top:3px;left:3px;width:15px;height:15px;font-size:15px}
  }
}

/* One Mood palette for every web Image model. Soul's generic settings-pill
   background previously overrode the selected fill but left its dark text. */
html:not(.pv-native-lab) #app.image-studio-active #image-composer
  .composer-mood-control #image-composer-moods {
  background:var(--pv-image-tool-fill,#242625)!important;
  border-color:transparent!important;
  color:#dcff00!important;
  box-shadow:none!important;
}
html:not(.pv-native-lab) #app.image-studio-active #image-composer
  .composer-mood-control #image-composer-moods-clear {
  color:#dcff00!important;
}

/* The selected Mood shares a fixed 104px desktop toolbar slot with its clear action.
   Keep the name and star entirely before the clear X. All other layouts stay put. */
@media(min-width:1180px) and (min-height:680px){
  html:not(.pv-native-lab) #main #app.image-studio-active #image-composer.pv-editorial-deck
  .composer-mood-control #image-composer-moods.is-mood-selected{
    box-sizing:border-box!important;padding:6px 24px 6px 5px!important;
    font-size:11px!important;font-weight:700!important;letter-spacing:-.015em!important;
  }
  html:not(.pv-native-lab) #main #app.image-studio-active #image-composer.pv-editorial-deck
  .composer-mood-control #image-composer-moods.is-mood-selected .composer-mood-copy{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    gap:3px!important;margin:0 auto!important;min-width:0!important;max-width:100%!important;
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  }
  html:not(.pv-native-lab) #main #app.image-studio-active #image-composer.pv-editorial-deck
  .composer-mood-control #image-composer-moods.is-mood-selected .composer-mood-icon{
    font-size:11px!important;flex:0 0 auto!important;
  }
  html:not(.pv-native-lab) #main #app.image-studio-active #image-composer.pv-editorial-deck
  .composer-mood-control #image-composer-moods.is-mood-selected .composer-mood-label{
    display:block!important;min-width:0!important;overflow:hidden!important;
    text-overflow:ellipsis!important;white-space:nowrap!important;
  }
  html:not(.pv-native-lab) #main #app.image-studio-active #image-composer.pv-editorial-deck
  .composer-mood-control #image-composer-moods-clear:not([hidden]){
    right:4px!important;width:17px!important;height:19px!important;
    min-height:19px!important;font-size:16px!important;
  }
}

/* Mood/model choices stay outside the floating composer and never submit. */
#soul-mood-dialog {
  width:calc(100% - 32px);max-width:420px;padding:28px;border:1px solid #454845;
  border-radius:18px;background:#1b1d1c;color:#eeefec;box-shadow:0 24px 90px #0009;
}
#soul-mood-dialog .eyebrow {font-size:10px;letter-spacing:.1em;color:#a6aaa6}
#soul-mood-title {margin:12px 0;font-size:24px;line-height:1.15;letter-spacing:-.035em;font-weight:600}
#soul-mood-description {font-size:13px;line-height:1.5;color:#b6bbb6;margin:0}
#soul-mood-dialog .soul-mood-actions {display:flex;gap:10px;justify-content:flex-end;margin-top:24px}
#soul-mood-dialog button {min-height:42px;padding:10px 16px;border-radius:10px;font-size:12px}
#soul-mood-use {background:#eceee9;color:#191b19;border:1px solid #eceee9}
#soul-mood-remove {background:transparent;color:#d0d4cf;border:1px solid #494e48}
@media(max-width:479px){#soul-mood-dialog {padding:24px}#soul-mood-dialog .soul-mood-actions {display:grid;grid-template-columns:1fr 1fr}}
