/* Shared only by profiles whose controls were inspected in the reference UI. */
/* Accurate196 does not expose an AI prompt helper; retain the native input
   width instead of reserving that extra button's column. */
body[data-island-category="video"]:has(.model-item-active[data-model-id="video-enhance"]) #composer #ai-prompt-helper {display:none!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="video-enhance"]) #composer .composer-main {--video-input-right-space:.625rem;padding-right:.625rem!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="video-enhance"]) #composer :is(#prompt,.refmedia-rich-input) {color:color(srgb .960784 .984314 1 / .88)!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="video-enhance"]) #composer {line-height:1.5!important;color:#fff!important;box-shadow:none!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="video-enhance"]) .reference-slot-wrap.is-empty .frame-label {line-height:1.2!important;padding:0!important;}
@media(max-width:840px){
 body[data-island-category="video"]:has(.model-item-active[data-model-id="video-enhance"]) #composer {grid-template-columns:6.5625rem minmax(0,1fr)!important;}
 body[data-island-category="video"]:has(.model-item-active[data-model-id="video-enhance"]) #composer .reference-phone-camera {display:none!important;}
}
/* These four exact public text entrances use the native button font on desktop. */
@media(min-width:841px){
  body[data-island-category="video"]:has(.model-item-active:is([data-model-id="hailuo-h3-max"],[data-model-id="wan3.0-video"],[data-model-id="happyhorse-1.1-t2v"],[data-model-id="happyhorse-t2v"])) #media-control-row .media-control {font:400 13.3333px Arial!important;}
}
/* Observed no-slot SD25 text layout: the footer must stay in the sole grid column. */
@media(max-width:840px){
  body[data-island-category="video"][data-island-text-phone-layout="reference-no-slots"] #composer.without-reference-slots #media-control-row {grid-column:1 / -1!important;}
  body[data-island-category="video"][data-island-text-phone-layout="reference-no-slots"] #composer.without-reference-slots .composer-main {padding-left:1.5625rem!important;}
  body[data-island-category="video"][data-island-text-phone-layout="reference-no-slots"] #media-control-row :is(.media-control,.reference-phone-camera) {font:400 13.3333px Arial!important;}
}
@media(max-width:450px){
  body[data-island-category="video"][data-island-text-phone-layout="reference-no-slots"] .chat-workspace:has(#composer[data-video-text-phone-sizing="reference-controls-footer"]) {left:0;right:0;width:100%;padding:0 .5rem;box-sizing:border-box;}
  body[data-island-category="video"][data-island-text-phone-layout="reference-no-slots"] #composer[data-video-text-phone-sizing="reference-controls-footer"] {width:100%!important;height:var(--island-composer-height)!important;}
  body[data-island-category="video"][data-island-text-phone-layout="reference-no-slots"] #composer[data-video-text-phone-sizing="reference-controls-footer"] {grid-template-rows:minmax(min-content,1fr) auto auto!important;}
  body[data-island-category="video"][data-island-text-phone-layout="reference-no-slots"] #composer #media-control-row {position:static!important;grid-row:2!important;grid-column:1!important;min-height:min-content!important;left:auto;right:auto;bottom:auto;padding:.5625rem .9375rem 0!important;}
  body[data-island-category="video"][data-island-text-phone-layout="reference-no-slots"] #composer .composer-footer {position:static!important;grid-row:3;grid-column:1!important;right:auto!important;bottom:auto!important;justify-content:flex-end;margin-top:.375rem!important;padding:0 .9375rem .75rem!important;}
}
/* Reviewed image crop overlay: public reference opacity .2s ease; dimensions are unchanged. */
body[data-island-category="image"][data-island-layout="image-reference"] .sd20-image-operation.crop.sd20-crop-reference-motion {opacity:1;transition:opacity .2s ease;}
body[data-island-category="image"][data-island-layout="image-reference"] .sd20-image-operation.crop.sd20-crop-reference-motion:is(.is-entering,.is-leaving) {opacity:0;}
.sd20-image-operation.crop.sd20-crop-reference-motion.is-leaving {pointer-events:none;}
@media(prefers-reduced-motion:reduce){body[data-island-category="image"][data-island-layout="image-reference"] .sd20-image-operation.crop.sd20-crop-reference-motion {transition:none;}}
body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] {box-shadow:none!important;backdrop-filter:blur(.625rem);-webkit-backdrop-filter:blur(.625rem);transition:border-color .2s,box-shadow .2s;}
body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] .sd20-image-stack > .reference-slot-wrap.is-empty:not(.sd20-stack-add) > .reference-slot {transition:all .3s;}
/* Uploaded reference cards use .3s only while expanded; collapsed and add cards keep .4s. */
@media(prefers-reduced-motion:no-preference){body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] .sd20-image-stack.expanded .sd20-stack-card {transition:transform .3s cubic-bezier(.4,0,.2,1);}}
/* Actual reference history scroll: shrink to 4%; hide after the shrink and reveal before expansion. */
@media(prefers-reduced-motion:no-preference){
body[data-island-category="image"][data-island-layout="image-reference"] #composer-island:has(> #composer[data-image-shared-reference="reviewed"]) {transition:transform .35s cubic-bezier(.4,0,.2,1),opacity .28s,visibility 0s linear;}
body[data-island-category="image"][data-island-layout="image-reference"] #composer-island.is-collapsed:has(> #composer[data-image-shared-reference="reviewed"]) {transform:scale(.04);transition:transform .35s cubic-bezier(.4,0,.2,1),opacity .28s,visibility 0s linear .35s;}
}
body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] #asset-text {border:1px solid rgba(255,255,255,.15)!important;transition:.15s;}
body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] #asset-text:hover {background:rgb(28,30,34)!important;border-color:#00cae0!important;transform:translateY(-1px);}
body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] #asset-text:active {transform:translateY(0);}
body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] #asset-text .control-icon {stroke-width:3.230769230769231;transition:background-color .25s,color .2s,border-color .25s,box-shadow .25s;}
body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] #ai-prompt-helper {font:400 13.3333px Arial!important;color:#fff;box-shadow:0 .25rem .75rem rgba(249,115,22,.38),inset 0 .0625rem 0 rgba(255,255,255,.35)!important;transition:transform .18s,box-shadow .18s,filter .18s;}
body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] #ai-prompt-helper:hover {transform:translateY(-.0625rem) scale(1.04);box-shadow:0 .375rem 1.125rem rgba(249,115,22,.5),inset 0 .0625rem 0 rgba(255,255,255,.4)!important;}
body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] #ai-prompt-helper:active {transform:scale(.96);}
body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] #ai-prompt-helper .ai-anniu-glow {display:block!important;inset:-.1875rem;position:absolute;top:-.1875rem;left:-.1875rem;right:-.1875rem;bottom:-.1875rem;width:auto;height:auto;transform:none;opacity:0;transition:background-color .25s,color .2s,border-color .25s,box-shadow .25s;}
body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] #ai-prompt-helper .ai-anniu-text {letter-spacing:.02em;transition:background-color .25s,color .2s,border-color .25s,box-shadow .25s;}
/* Keep the original glyphs for unreviewed and nonimage islands. */
.image-shared-tool-icon {display:none!important;}
body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) :is(#send-button,#clear-prompt) > svg:not(.image-shared-tool-icon) {display:none!important;}
body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) :is(#send-button,#clear-prompt) > .image-shared-tool-icon {display:block!important;}
body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #send-button {color:#000!important;}
body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #send-button > .image-shared-tool-icon {width:16px!important;height:16px!important;fill:none;}
body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #clear-prompt > .image-shared-tool-icon {width:14px!important;height:14px!important;}
body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) .composer-rail .control-icon {width:14px!important;height:14px!important;}
body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #enter-mode .control-icon {stroke-width:3.2571428571428567;}
body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #fullscreen-prompt .control-icon {stroke-width:3.085714285714286;}
body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #clear-prompt .control-icon {stroke-width:2.914285714285714;}
@media(min-width:841px){
  body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #media-extra-actions {right:calc(100% + .625rem + 1px);bottom:-1px!important;}
  body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #media-extra-actions .media-extra-assets {background:#1c1e22!important;border-color:rgba(255,255,255,.2)!important;color:#f5fbff!important;}
  html:not([data-display-theme="light"]) body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #media-extra-actions .media-extra-assets:hover {border-color:#00cae0!important;}
  html:not([data-display-theme="light"]) body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #media-extra-actions .media-extra-edit:hover {background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.9)!important;color:rgba(255,255,255,.9)!important;}
  html:not([data-display-theme="light"]) body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #media-extra-actions :is(.media-extra-edit,.media-extra-assets):hover {outline:none!important;}
  html:not([data-display-theme="light"]) body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #media-extra-actions :is(.media-extra-edit,.media-extra-assets):focus-visible:not(:hover) {color-scheme:light;outline:1px auto -webkit-focus-ring-color!important;outline-offset:0!important;}
  body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #media-extra-actions .media-extra-scan {background:#1c1e22!important;border-color:rgba(0,202,224,.45)!important;color:#00cae0!important;}
  body[data-island-category="image"][data-island-layout="image-reference"]:has(#composer[data-image-shared-reference="reviewed"]) #media-extra-actions .refmedia-tool-qr {width:14px!important;height:14px!important;stroke-width:3.771428571428572;}
}
html:not([data-display-theme="light"]) body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] #prompt::placeholder,html:not([data-display-theme="light"]) body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] .refmedia-rich-input::before {color:#60696e!important;opacity:1;}
body[data-island-layout="image-reference"] .media-control,
body[data-island-layout="speech"] .media-control {
  height: 1.875rem !important; padding: 0 .625rem !important; gap: .375rem !important;
  border: 0 !important; border-radius: .375rem !important; background: #292b33 !important;
  color: #f5fbff !important; font-family: Arial,sans-serif; transition: all .3s cubic-bezier(.4,0,.2,1);
}
body[data-island-layout="image-reference"] .media-chip-label,
body[data-island-layout="speech"] .media-chip-label {font-size:.75rem;font-weight:500;line-height:1;}
/* Native button and text-leaf metrics observed on accurate223/224 only. */
body[data-island-category="image"] #media-control-row .media-control[data-reference-typography="banana21-native"] {
  font-family:Arial;font-size:13.3333px!important;font-weight:400;line-height:normal;
}
body[data-island-category="image"] #media-control-row .media-control[data-reference-typography="banana21-native"] .media-chip-label {
  font-family:inherit;line-height:normal;
}
body[data-island-layout="image-reference"] .media-chip-icon,
body[data-island-layout="speech"] .media-chip-icon {width:14px!important;height:14px!important;}
body[data-island-layout="image-reference"] .media-chip-route .media-chip-icon,
body[data-island-layout="speech"] .media-chip-route .media-chip-icon {width:12px!important;height:12px!important;}
body[data-island-layout="image-reference"] .media-chip-chevron,
body[data-island-layout="speech"] .media-chip-chevron {width:10px!important;height:10px!important;}
body[data-island-layout="image-reference"] .media-control[data-control-id="count"],
body[data-island-layout="speech"] .media-control[data-control-id="count"] {background:linear-gradient(135deg,#ffd7002e,#ffc10726)!important;color:#ffdf64!important;}
body[data-island-layout="image-reference"] .media-control:hover,
body[data-island-layout="speech"] .media-control:hover {background:#31343c!important;}
/* Chip states shared by the image, video, speech and music reference islands:
   full-opacity chevron, hover nudge, open flip and a brighter count chip. */
body:is([data-island-layout="image-reference"],[data-island-layout="speech"],[data-island-layout="music-dual"]) .media-control {transition:all .3s cubic-bezier(.4,0,.2,1)!important;}
body:is([data-island-layout="image-reference"],[data-island-layout="speech"],[data-island-layout="music-dual"]) .media-chip-chevron {
  opacity:1;transition:all .3s cubic-bezier(.4,0,.2,1);
}
body:is([data-island-layout="image-reference"],[data-island-layout="speech"],[data-island-layout="music-dual"]) .media-control:hover .media-chip-chevron {transform:translateY(.125rem);}
body:is([data-island-layout="image-reference"],[data-island-layout="speech"],[data-island-layout="music-dual"]) .media-control[aria-expanded="true"] .media-chip-chevron {transform:rotate(180deg);}
body[data-island-layout="music-dual"] .media-control:not([data-control-id="count"]):hover {background:#31343c!important;}
body:is([data-island-layout="image-reference"],[data-island-layout="speech"],[data-island-layout="music-dual"]) .media-control[data-control-id="count"]:hover {
  background:linear-gradient(135deg,#ffd7004d,#ffc10740)!important;color:#ffeb96!important;box-shadow:inset 0 .0625rem 0 #ffffff1a!important;
}
body:is([data-island-layout="image-reference"],[data-island-layout="speech"],[data-island-layout="music-dual"]) .media-control[data-control-id="count"]:hover .media-chip-label {color:#f5fbff;}
body[data-island-layout="image-reference"] #composer :is(#prompt,.refmedia-rich-input) {height:var(--island-prompt-height,var(--island-prompt-base-height,5.9375rem))!important;min-height:5.9375rem!important;max-height:13.1875rem!important;font-size:.875rem!important;line-height:1.3125rem!important;scrollbar-width:thin;scrollbar-color:#ffffff14 transparent;}
html:not([data-display-theme="light"]) body[data-island-layout="image-reference"] #composer :is(#prompt,.refmedia-rich-input) {color:rgba(245,251,255,.88)!important;}
html:not([data-display-theme="light"]) body[data-island-layout="image-reference"] #asset-text {padding:0;border-radius:.3125rem;background:rgba(28,30,34,.88);color:#f5fbff;display:flex;align-items:center;justify-content:center;font:.75rem/1 Arial;}
html:not([data-display-theme="light"]) body[data-island-layout="image-reference"] #asset-text .control-icon {width:13px;height:13px;}
body[data-island-layout="image-reference"] #composer .composer-main {padding-top:.9375rem!important;padding-bottom:.9375rem!important;}
body[data-island-layout="image-reference"]:not([data-island-category="image"]) .composer-rail #enter-mode {background:#00cae01f!important;border-color:#00cae073!important;color:#00cae0!important;}
body[data-island-category="image"][data-island-layout="image-reference"] .composer-rail #enter-mode[data-send-mode="enter"] {background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.08)!important;color:rgba(255,255,255,.7)!important;}
body[data-island-category="image"][data-island-layout="image-reference"] .composer-rail #enter-mode[data-send-mode="ctrl-enter"] {background:rgba(0,202,224,.12)!important;border-color:rgba(0,202,224,.45)!important;color:#00cae0!important;}
body[data-island-layout="image-reference"] #send-button {color:#fff!important;}
body:is([data-island-layout="image-reference"],[data-island-layout="speech"],[data-island-layout="music-dual"]) #billing-info {top:-1rem;bottom:auto;right:.75rem;height:1.625rem!important;min-height:0;font-family:inherit;}
body:is([data-island-layout="image-reference"],[data-island-layout="speech"],[data-island-layout="music-dual"]) #billing-info .billing-type {font-size:.75rem;line-height:1;font-weight:400;color:#9ca3af99;}
body:is([data-island-layout="image-reference"],[data-island-layout="speech"],[data-island-layout="music-dual"]) #billing-info[data-published-media-price="true"] .billing-type {font-weight:500;color:inherit;}
body:is([data-island-layout="image-reference"],[data-island-layout="speech"],[data-island-layout="music-dual"]) #billing-info .billing-icon {flex:none;width:16px;height:16px;color:#9ca3af8c;}
body[data-island-layout="image-reference"] .media-extra-edit {display:grid!important;place-items:center;padding:0!important;width:1.875rem!important;height:1.875rem!important;border-radius:50%!important;}
body[data-island-layout="image-reference"] .media-control-shell {display:block!important;flex:0 0 auto;height:1.875rem;}
.reference-profile-asset {display:none;}
.reference-phone-camera {display:none!important;}
.reference-controls-track {display:flex;align-items:center;flex:1;min-width:0;gap:.75rem;height:1.875rem;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;}
.reference-controls-track::-webkit-scrollbar {display:none;}
body[data-island-layout="image-reference"] #composer #media-control-row {overflow:visible!important;}
.reference-input-groups {display:flex;align-items:flex-start;flex:none;}
.reference-input-group {position:relative;flex:0 0 3.4375rem;width:3.4375rem;height:4.375rem;}
.reference-group-arrow {display:flex;align-items:center;justify-content:center;flex:0 0 1.75rem;height:4.375rem;transform:translateY(-.5rem);color:#8c99a0;}
/* The inspected video -> image pair has a 20px arrow with .75rem on
   each side. Keep this separate from three-entrance mixed layouts. */
.reference-input-groups[data-variant="mixed"]:has(>.reference-input-group[data-group-kind="video"]:first-child):has(>.reference-input-group[data-group-kind="image"]:nth-child(3):last-child) {gap:.75rem;}
.reference-input-groups[data-variant="mixed"]:has(>.reference-input-group[data-group-kind="video"]:first-child):has(>.reference-input-group[data-group-kind="image"]:nth-child(3):last-child)>.reference-group-arrow {flex-basis:20px;color:#fff;opacity:.38;}
.reference-input-groups[data-variant="frames"] {gap:.75rem;}
.reference-input-groups[data-variant="frames"] .reference-group-arrow {flex-basis:20px;}
body[data-island-input-variant="first-last"] .reference-group-arrow {color:#fff;opacity:.38;}
body[data-island-input-variant="first-last"] .reference-input-groups[data-variant="frames"] .reference-input-group .reference-slot-wrap {transform:none!important;}
body[data-island-input-variant="first-last"] .reference-input-group:first-child .reference-slot {transform:rotate(-8deg)!important;}
body[data-island-input-variant="first-last"] .reference-input-group:last-child .reference-slot {transform:rotate(8deg)!important;}
body[data-island-input-variant="first-last"] #composer :is(#prompt,.refmedia-rich-input) {font-size:.875rem!important;color:rgba(245,251,255,.88)!important;overflow-x:hidden;}
body[data-island-input-variant="first-last"] #composer #media-reference-slots {align-self:start;}
body[data-island-input-variant="first-last"] #composer:has(.sd20-portrait-wrap) #media-reference-slots>.sd20-portrait-arrow {margin-left:.75rem;margin-right:.75rem;}
.reference-input-group[data-group-kind="video"] .reference-slot-wrap {transform:none!important;}
.reference-input-group[data-group-kind="audio"] .reference-slot-wrap,
.reference-input-groups[data-variant="frames"] .reference-input-group:last-child .reference-slot-wrap {transform:rotate(8deg)!important;}
.reference-stash-notice {display:flex;align-items:center;gap:.375rem;flex:0 1 auto;margin:.5rem 0 0;padding:.375rem .5rem;border:1px solid #e6a23c61;border-radius:.375rem;background:#342e25;font-size:.75rem;line-height:1.35;}
.reference-stash-notice svg {flex:none;color:#e6a23c;}
.reference-stash-notice button {flex:none;border:1px solid #e6a23c73;background:transparent;color:#e6a23c;padding:.125rem .4375rem;border-radius:.25rem;font:.6875rem Arial;cursor:pointer;}
body[data-island-layout="image-reference"] #composer.without-reference-slots {grid-template-columns:minmax(0,1fr)!important;}
body[data-island-layout="image-reference"] #composer.without-reference-slots #media-reference-slots {display:none!important;}
body[data-island-layout="image-reference"] #composer.without-reference-slots .composer-main {grid-column:1!important;}
.reference-profile-menu {display:block;width:max(180px,11.25rem);gap:0;padding:0;border:1px solid #1e1f25;border-radius:.75rem;background:#1b1c21;box-shadow:0 .5rem 2rem #0006,0 0 0 .0625rem #ffffff0d;color:#f5fbff;overflow:hidden;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'PingFang SC','HarmonyOS Sans','Microsoft YaHei',sans-serif;}
.reference-profile-menu .media-selector-title {display:block;flex:none;margin:0;padding:.75rem 1rem 0;font-size:.8125rem;font-weight:600;line-height:1.5;color:#f5fbff;}
.reference-profile-menu .media-selector-description {flex:none;max-height:none;overflow:visible;margin:.25rem 0 0;padding:0 1rem .75rem;font-size:.75rem;line-height:1.4;color:#8c99a0;border-bottom:1px solid #ffffff0d;}
.reference-profile-menu .media-selector-options {display:block;min-height:0;overflow-y:auto;max-height:20rem;padding:.5rem;scrollbar-width:thin;scrollbar-color:#ffffff26 transparent;}
.reference-profile-menu .media-selector-option {display:flex;align-items:center;width:100%;gap:.5rem;padding:.5rem .625rem;margin:.125rem 0;min-height:0;border:0;border-radius:.375rem;background:#1c1e22;font:inherit;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);}
.reference-profile-menu .media-selector-option:hover,.reference-profile-menu .media-selector-option.selected {background:#2a2d33;}
.reference-profile-menu .media-option-icon {display:flex;align-items:center;flex:none;width:14px;height:14px;color:#fff;}
.reference-profile-menu .media-option-icon svg {width:14px;height:14px;}
.reference-profile-menu .media-option-text {font-size:.75rem;font-weight:500;line-height:1.5;color:#f5fbff;white-space:nowrap;}
.reference-profile-menu .media-option-check {display:flex;flex:none;margin-left:auto;width:16px;color:#f5fbff;}
.reference-profile-menu .media-custom-count {flex:none;padding:.625rem .75rem .75rem;}
/* Shared count-footer recipe enabled only by independently reviewed image profiles.
   Reference popups keep a px floor below a 16px root: 180px menus, 200px count. */
.reference-profile-menu.reference-image-count-menu {width:max(200px,12.5rem);}
.reference-image-count-menu .media-custom-count {
  display:block;gap:normal;margin:.5rem 0 0;padding:.5rem .25rem 0;
  border-top:1px solid color(srgb .219608 .235294 .227451 / .3);
  font-size:1rem;font-weight:400;line-height:1.5;
}
.reference-image-count-menu .media-count-label {display:block;margin:0 0 .5rem;font-size:.75rem;font-weight:400;line-height:1.5;color:#8c99a0;}
.reference-image-count-menu .media-count-input-row {display:flex;align-items:center;gap:.5rem;}
.reference-image-count-menu .media-count-input-row input {
  display:block;flex:1;width:0;min-width:0;height:1.875rem;padding:0 .625rem;margin:0;
  border:1px solid color(srgb .219608 .235294 .227451 / .5);background:#1c1e22;color:#f5fbff;
  border-radius:.375rem;font:500 .75rem Arial;line-height:normal;
}
.reference-image-count-menu .media-count-input-row button {
  display:block;flex:none;height:1.875rem;padding:0 .75rem;margin:0;
  border:1px solid color(srgb .219608 .235294 .227451 / .5);background:#292b33;color:#8c99a0;
  border-radius:.375rem;font:500 .75rem Arial;line-height:normal;
}
.reference-image-count-menu .media-count-input-row input:valid:not(:placeholder-shown) + button {background:#31343c;border-color:#f5fbff;color:#f5fbff;}
@media(min-width:841px){
  body[data-island-category="image"][data-island-layout="image-reference"]:has(.composer-island:not(.is-collapsed) > #composer[data-image-shared-reference="reviewed"]) #refct-help {display:none!important;}
  body[data-island-layout="image-reference"] #composer .reference-phone-camera {display:none!important;}
  body[data-island-category="video"] #media-extra-actions {right:calc(100% + .625rem + 1px);bottom:-1px!important;}
  body[data-island-category="video"] #media-extra-actions .media-extra-action {
    display:grid!important;place-items:center;position:relative!important;flex:none!important;
    width:1.875rem!important;height:1.875rem!important;padding:0!important;border-radius:50%!important;
    background:#1c1e22!important;border:1px solid #ffffff33!important;color:#f5fbff!important;
  }
  body[data-island-category="video"] #media-extra-actions .media-extra-scan {border-color:#00cae073!important;color:#00cae0!important;}
  body[data-island-category="video"] #media-extra-actions .refmedia-tool-video {width:14px!important;height:14px!important;stroke-width:3.085714285714286;}
  body[data-island-category="video"] #media-extra-actions .refmedia-tool-layers {width:12px!important;height:12px!important;stroke-width:3.5;}
  body[data-island-category="video"] #media-extra-actions .refmedia-tool-qr {width:14px!important;height:14px!important;stroke-width:3.771428571428572;}
  body[data-island-category="video"] .composer-rail button {width:1.875rem!important;height:1.875rem!important;background:#ffffff0d;border:1px solid #ffffff14;color:#ffffffb3;}
  body[data-island-category="video"] .composer-rail #manual {background:#ffffff0f;border-color:#00cae073;color:#00cae0;}
  body[data-island-category="video"] .composer-rail .control-icon {width:14px!important;height:14px!important;stroke-width:3.085714285714286;}
  body[data-island-category="video"] .composer-rail #enter-mode .control-icon {stroke-width:3.2571428571428567;}
  body[data-island-category="video"] .composer-rail #clear-prompt .control-icon {stroke-width:2.914285714285714;}
  body[data-island-layout="image-reference"] #composer {height:var(--island-composer-height,11.25rem)!important;grid-template-rows:minmax(0,1fr) 3rem!important;}
  body[data-island-layout="image-reference"] #composer #media-reference-slots {padding:1.5625rem!important;}
  body[data-island-layout="image-reference"] #composer #media-control-row {padding-right:3.4375rem!important;}
  body[data-island-layout="image-reference"] #composer .composer-main {padding-left:0!important;padding-right:2.875rem!important;gap:.5rem;}
  body[data-island-layout="image-reference"] #composer.without-reference-slots .composer-main {padding-left:1.5625rem!important;}
  body[data-island-layout="image-reference"] #composer :is(#prompt,.refmedia-rich-input) {flex:1;width:100%;min-width:0;padding:0!important;}
  body[data-island-layout="image-reference"] #composer :is(#prompt,.refmedia-rich-input) {min-height:max(5.9375rem,min(13.1875rem,var(--island-prompt-height,var(--island-prompt-base-height,5.9375rem))))!important;}
  body[data-island-layout="image-reference"] #asset-text {position:static;flex:none;width:1.5rem;height:1.5rem;padding:.25rem;}
  body:is([data-island-layout="image-reference"],[data-island-layout="speech"]) #composer .composer-footer {bottom:.65625rem!important;gap:.40625rem!important;}
}
@media(min-width:841px) and (max-width:1400px){
  body[data-island-category="video"] .composer-rail #manual {display:grid!important;}
  body[data-island-category="video"] #refct-help {display:none!important;}
}
@media(max-width:840px){
  body[data-island-layout="image-reference"] .reference-phone-camera {display:flex!important;position:relative;flex:none;align-items:center;justify-content:center;order:7;}
  .reference-phone-camera svg {width:14px;height:14px;stroke-width:3.2571428571428567;}
  .reference-phone-camera>span {font:500 .75rem/1 Arial;}
  body[data-island-layout="image-reference"] #api-model-link,
  body[data-island-layout="image-reference"] #refct-help,
  body[data-island-layout="image-reference"] #media-extra-actions,
  body[data-island-layout="image-reference"] .reference-slot-scan {display:none!important;}
  body[data-island-layout="image-reference"] .sd20-stack-add .reference-slot-mini {display:none!important;}
  body[data-island-input-variant="first-last"] #composer #media-reference-slots {padding:1.5625rem!important;}
  body[data-island-input-variant="first-last"] .reference-input-groups .reference-slot-assets {
    display:flex!important;align-items:center;justify-content:center;opacity:1;pointer-events:auto;z-index:1001;
    top:-.625rem;right:-.625rem;width:1.375rem;height:1.375rem;padding:0;
    border:1px solid #fff3;border-radius:.3125rem;background:#1c1e22;color:#f5fbff;transform:rotate(-8deg);
  }
  body[data-island-input-variant="first-last"] .reference-slot-assets svg {width:11px;height:11px;stroke-width:3.8181818181818183;}
  body[data-island-layout="image-reference"] .reference-profile-asset {display:flex;align-items:center;justify-content:center;position:absolute;z-index:1001;top:-.625rem;right:-.625rem;width:1.375rem;height:1.375rem;padding:0;background:#1c1e22;border:1px solid #fff3;border-radius:.3125rem;color:#f5fbff;transform:rotate(-8deg);cursor:pointer;}
  .reference-profile-asset svg {width:11px;height:11px;stroke-width:3.8181818181818183;}
  body[data-island-layout="image-reference"] .chat-workspace {left:.5rem;width:calc(100% - 1rem);bottom:.625rem;padding:0;}
  /* Reference 390px: empty 251.40625; 162px input → 301.046875;
     232px input → 371.046875. Keep the empty tray, scale its measured remainder. */
  body[data-island-layout="image-reference"] #composer {height:max(calc(var(--island-prompt-base-height,5.9375rem) + 8.307rem),calc(var(--island-prompt-height,var(--island-prompt-base-height,5.9375rem)) + 7.88918439716312rem))!important;grid-template-rows:auto minmax(0,1fr)!important;}
  body[data-island-category="video"] #composer[data-video-mixed-phone-sizing="reference-measured-offset"] {height:var(--island-composer-height)!important;}
  body[data-island-layout="image-reference"] #composer .composer-main {display:flex!important;align-items:flex-start;gap:.5rem;padding-right:2.875rem!important;}
  body[data-island-layout="image-reference"] #composer :is(#prompt,.refmedia-rich-input) {width:100%!important;flex:1;min-width:0;height:var(--island-prompt-height,var(--island-prompt-base-height,5.9375rem))!important;padding:0!important;}
  body[data-island-layout="image-reference"] #asset-text {position:static;flex:none;width:1.5rem;height:1.5rem;padding:.25rem;}
  body[data-island-layout="image-reference"] #composer #media-control-row {position:absolute;left:.9375rem;right:.9375rem;bottom:3rem;height:auto;min-height:2.25rem;padding:0!important;border:0!important;align-items:center!important;}
  body[data-island-layout="image-reference"] #composer .composer-footer {position:absolute!important;right:.9375rem!important;bottom:.75rem!important;padding:0!important;}
  body[data-island-layout="image-reference"] #composer #ai-prompt-helper {top:auto!important;right:0!important;bottom:2.1875rem!important;}
  body[data-island-layout="image-reference"] .composer-rail {right:calc(3.4375rem + 1px)!important;bottom:calc(.75rem + 1px)!important;padding:0;border:0;background:transparent;gap:.625rem!important;}
  body[data-island-layout="image-reference"] .media-control-shell:has([data-control-id="count"]),
  body[data-island-layout="speech"] .media-control-shell:has([data-control-id="count"]) {order:8;}
  body[data-island-layout="image-reference"] .media-control-shell:has([data-control-id="route"]),
  body[data-island-layout="speech"] .media-control-shell:has([data-control-id="route"]) {order:9;}
  body[data-island-layout="image-reference"] #media-control-row {scrollbar-width:thin!important;scrollbar-color:#ffffff40 transparent;}
  body[data-island-layout="image-reference"] #media-control-row::-webkit-scrollbar {display:block;height:.1875rem;}
  body[data-island-layout="image-reference"] .reference-controls-track {height:auto;min-height:2.25rem;align-items:center;scrollbar-width:thin;scrollbar-color:#ffffff40 transparent;}
  body[data-island-layout="image-reference"] .reference-controls-track::-webkit-scrollbar {display:block;height:.1875rem;}
}

@media (max-width:840px) {
 /* Observed portrait + first/last layout keeps the narrow intrinsic prompt
    and its overflow. No fixed width is inferred from a single text state. */
 body[data-island-input-variant="first-last"] #composer:has(.sd20-portrait-wrap) .composer-main {min-width:min-content!important;}
 body[data-island-input-variant="first-last"] #composer:has(.sd20-portrait-wrap) .refmedia-rich-input,
 body[data-island-input-variant="first-last"] #composer:has(.sd20-portrait-wrap) .refmedia-rich-input::before {word-break:break-word;}
 /* The inspected SD mixed tray preserves the input's intrinsic width even
    when its three media entrances exceed the available phone grid track. */
 body[data-island-input-variant="mixed"] #composer:has(.reference-input-groups[data-variant="mixed"]>.reference-input-group[data-group-kind="audio"]:nth-child(5):last-child) .composer-main {min-width:min-content!important;}
 body[data-island-input-variant="mixed"] #composer:has(.reference-input-groups[data-variant="mixed"]>.reference-input-group[data-group-kind="audio"]:nth-child(5):last-child) .refmedia-rich-input,
 body[data-island-input-variant="mixed"] #composer:has(.reference-input-groups[data-variant="mixed"]>.reference-input-group[data-group-kind="audio"]:nth-child(5):last-child) .refmedia-rich-input::before {word-break:break-word;}
 body[data-island-input-variant="mixed"]:has(.model-item-active[data-model-id="wanxiang-3.0"]) #composer .composer-main {min-width:min-content!important;}
 body[data-island-input-variant="mixed"]:has(.model-item-active[data-model-id="wanxiang-3.0"]) #composer .refmedia-rich-input,
 body[data-island-input-variant="mixed"]:has(.model-item-active[data-model-id="wanxiang-3.0"]) #composer .refmedia-rich-input::before {word-break:break-word;}
 .reference-phone-camera { gap:.375rem!important; padding:0 .625rem!important; border:0!important; border-radius:.375rem!important; }
 .reference-phone-camera .yj-label { font:400 .6875rem Arial; }
 .reference-phone-camera:not(.is-active) .yj-label { font:500 .75rem/1 Arial; }
 .reference-phone-camera .yj-text { max-width:7rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font:500 .75rem Arial; }
 .reference-phone-camera.is-active { color:#fdba74!important; background:linear-gradient(135deg,rgba(249,115,22,.22),rgba(234,88,12,.16))!important; box-shadow:inset 0 0 0 1px rgba(249,115,22,.5); }
 .reference-phone-camera.is-active svg { color:#fb923c; }
}

/* The measured image phone footer wraps only through the reference 450px
   breakpoint. A live recipe marker keeps legacy/tablet/other layouts intact. */
@media(max-width:450px){
  body[data-island-category="image"][data-island-layout="image-reference"] .chat-workspace:has(#composer[data-image-phone-sizing="reference-controls-footer"]) {left:0;right:0;width:100%;padding:0 .5rem;box-sizing:border-box;}
  body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-phone-sizing="reference-controls-footer"] {width:100%!important;height:var(--island-composer-height)!important;}
}

/* Measured phone initial-card states only; uploaded cards and the add fan keep
   their existing transforms and real chooser/asset-library handlers. */
@media(max-width:450px){
  body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-phone-sizing="reference-controls-footer"] .sd20-image-stack > .reference-slot-wrap.is-empty:not(.sd20-stack-add) > .reference-slot {transform:rotate(-8deg);transition:all .3s;}
  body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-phone-sizing="reference-controls-footer"] .sd20-image-stack > .reference-slot-wrap.is-empty:not(.sd20-stack-add) > .reference-slot:hover {transform:rotate(-8deg) scale(1.08);}
  body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-phone-sizing="reference-controls-footer"] .sd20-image-stack > .reference-slot-wrap.is-empty:not(.sd20-stack-add) > .reference-slot-mini.reference-slot-assets {transform:rotate(-8deg);box-shadow:0 .125rem .375rem rgba(0,0,0,.18);transition:all .15s;}
  body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-phone-sizing="reference-controls-footer"] .sd20-image-stack > .reference-slot-wrap.is-empty:not(.sd20-stack-add) > .reference-slot-mini.reference-slot-assets svg {stroke-width:3.818181818181818!important;}
  body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-phone-sizing="reference-controls-footer"] .sd20-image-stack > .reference-slot-wrap.is-empty:not(.sd20-stack-add) > .reference-slot-mini.reference-slot-scan {display:none!important;}
}

/* Guest-only image price pill: outer geometry and content leaves are compared
   separately with the reference price-tag/inner-button structure. */
body[data-island-category="image"][data-island-layout="image-reference"] #billing-info[data-image-guest-price="true"]:not([hidden]) {top:-1rem;bottom:auto;right:.75rem;background:rgba(27,28,33,.95)!important;border:.0625rem solid #1e1f25!important;padding:.25rem .625rem!important;border-radius:.75rem!important;height:auto!important;min-height:1.625rem;box-sizing:border-box;display:flex!important;align-items:center!important;gap:.25rem!important;box-shadow:0 .125rem .5rem rgba(0,0,0,.3)!important;backdrop-filter:blur(.625rem)!important;-webkit-backdrop-filter:blur(.625rem)!important;white-space:nowrap;overflow:hidden;color:rgba(156,163,175,.85)!important;transition:color .15s!important;}
body[data-island-category="image"][data-island-layout="image-reference"] #billing-info[data-image-guest-price="true"] .billing-type {font:400 .75rem/1 Arial!important;color:inherit!important;}
body[data-island-category="image"][data-island-layout="image-reference"] #billing-info[data-image-guest-price="true"] .billing-icon {width:12px;height:12px;order:-1;color:inherit!important;}
body[data-island-category="image"][data-island-layout="image-reference"] #billing-info[data-image-guest-price="true"]:hover {color:rgba(255,152,0,.85)!important;}
/* Only the observed image modes receive these stable rest/hover transitions. */
body[data-island-category="image"][data-island-layout="image-reference"] .composer-rail #enter-mode:is([data-send-mode="enter"],[data-send-mode="ctrl-enter"]) {transition:all .2s;box-shadow:none!important;}
body[data-island-category="image"][data-island-layout="image-reference"] .composer-rail #enter-mode[data-send-mode="enter"]:hover {background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.9)!important;color:rgba(255,255,255,.9)!important;}
body[data-island-category="image"][data-island-layout="image-reference"] .composer-rail #enter-mode[data-send-mode="ctrl-enter"]:hover {background:rgba(0,202,224,.12)!important;border-color:rgba(0,202,224,.45)!important;color:#00cae0!important;}

/* Independently inspected desktop image toolbar. Restore its existing fourth
   button and native metrics; let the rail size itself without fixed offsets. */
@media(min-width:841px){
  body[data-island-category="image"][data-island-layout="image-reference"] .composer-island:has(#composer[data-image-shared-reference="reviewed"]) .composer-rail {backdrop-filter:blur(.625rem);-webkit-backdrop-filter:blur(.625rem);}
  body[data-island-category="image"][data-island-layout="image-reference"] .composer-island:has(#composer[data-image-shared-reference="reviewed"]) .composer-rail > button {width:1.875rem!important;height:1.875rem!important;flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:center!important;font:400 13.3333px Arial!important;}
  body[data-island-category="image"][data-island-layout="image-reference"] .composer-island:has(#composer[data-image-shared-reference="reviewed"]) .composer-rail #enter-mode {font:400 13.3333px/1 Arial!important;}
  body[data-island-category="image"][data-island-layout="image-reference"] .composer-island:has(#composer[data-image-shared-reference="reviewed"]) .composer-rail #manual {display:flex!important;font:400 13.3333px/1 Arial!important;background:rgba(255,255,255,.06)!important;border-color:rgba(0,202,224,.45)!important;color:#00cae0!important;}
  body[data-island-category="image"][data-island-layout="image-reference"] .composer-island:has(#composer[data-image-shared-reference="reviewed"]) .composer-rail #fullscreen-prompt {background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.08)!important;color:rgba(255,255,255,.7)!important;}
  body[data-island-category="image"][data-island-layout="image-reference"] .composer-island:has(#composer[data-image-shared-reference="reviewed"]) .composer-rail #clear-prompt {background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.08)!important;color:rgba(255,255,255,.7)!important;}
  body[data-island-category="image"][data-island-layout="image-reference"] .composer-island:has(#composer[data-image-shared-reference="reviewed"]) .composer-rail #enter-mode .control-icon {width:14px!important;height:14px!important;stroke-width:3.2571428571428567;}
  body[data-island-category="image"][data-island-layout="image-reference"] .composer-island:has(#composer[data-image-shared-reference="reviewed"]) .composer-rail #fullscreen-prompt .control-icon {width:14px!important;height:14px!important;stroke-width:3.085714285714286;}
  body[data-island-category="image"][data-island-layout="image-reference"] .composer-island:has(#composer[data-image-shared-reference="reviewed"]) .composer-rail #clear-prompt .control-icon {width:14px!important;height:14px!important;stroke-width:2.914285714285714;}
  body[data-island-category="image"][data-island-layout="image-reference"] .composer-island:has(#composer[data-image-shared-reference="reviewed"]) .composer-rail #manual .control-icon {width:14px!important;height:14px!important;stroke-width:3.085714285714286;}
  body[data-island-category="image"][data-island-layout="image-reference"] #composer[data-image-shared-reference="reviewed"] .sd20-image-stack > .reference-slot-wrap.is-empty:not(.sd20-stack-add) > .reference-slot-mini:is(.reference-slot-assets,.reference-slot-scan) {display:none!important;}
}

/* Pix reuses the measured footer calculation without changing older frame groups. */
/* The three inspected single-frame entries reuse the same empty-card geometry. */
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="happyhorse-i2v"],[data-model-id="happyhorse-1.1-i2v"],[data-model-id="omni-1.1"])) #media-control-row :is(.media-control,.reference-phone-camera) {font:400 13.3333px Arial!important;}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="happyhorse-i2v"],[data-model-id="happyhorse-1.1-i2v"],[data-model-id="omni-1.1"])) .sd20-image-stack > .reference-slot-wrap.is-empty > .reference-slot {transform:rotate(-8deg);color:#fff!important;}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="happyhorse-i2v"],[data-model-id="happyhorse-1.1-i2v"],[data-model-id="omni-1.1"])) .sd20-image-stack > .reference-slot-wrap.is-empty > .reference-slot :is(.frame-label,.plus-icon) {color:rgb(98,105,113)!important;}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="happyhorse-i2v"],[data-model-id="happyhorse-1.1-i2v"],[data-model-id="omni-1.1"])) .sd20-image-stack > .reference-slot-wrap.is-empty > .reference-slot-mini.reference-slot-assets {transform:rotate(-8deg);}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="happyhorse-i2v"],[data-model-id="happyhorse-1.1-i2v"],[data-model-id="omni-1.1"],[data-model-id="pixverse-c1-shouweizhen"],[data-model-id="viduq3"],[data-model-id="kling-v3-video"],[data-model-id="omni-flash-10s-fl"],[data-model-id="viduq3-turbo"],[data-model-id="wan3.0-video-shouweizhen"],[data-model-id="wan2.7-shouweizhen"])) #ai-prompt-helper {font:400 13.3333px Arial!important;color:#fff!important;}
@media(min-width:841px){
  body[data-island-category="video"]:has(.model-item-active:is([data-model-id="happyhorse-i2v"],[data-model-id="happyhorse-1.1-i2v"],[data-model-id="omni-1.1"],[data-model-id="pixverse-c1-shouweizhen"],[data-model-id="viduq3"],[data-model-id="kling-v3-video"],[data-model-id="omni-flash-10s-fl"],[data-model-id="viduq3-turbo"],[data-model-id="wan3.0-video-shouweizhen"],[data-model-id="wan2.7-shouweizhen"])) #composer {grid-template-rows:minmax(min-content,1fr) 3rem!important;}
  body[data-island-category="video"]:has(.model-item-active:is([data-model-id="happyhorse-i2v"],[data-model-id="happyhorse-1.1-i2v"],[data-model-id="omni-1.1"],[data-model-id="pixverse-c1-shouweizhen"],[data-model-id="viduq3"],[data-model-id="kling-v3-video"],[data-model-id="omni-flash-10s-fl"],[data-model-id="viduq3-turbo"],[data-model-id="wan3.0-video-shouweizhen"],[data-model-id="wan2.7-shouweizhen"])) #composer .composer-main {min-height:min-content;align-items:flex-start;}
}
@media(max-width:450px){
  body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-c1-shouweizhen"],[data-model-id="viduq3"],[data-model-id="kling-v3-video"],[data-model-id="omni-flash-10s-fl"],[data-model-id="viduq3-turbo"],[data-model-id="wan3.0-video-shouweizhen"],[data-model-id="wan2.7-shouweizhen"])) #composer[data-video-frame-phone-sizing="reference-controls-footer"] #ai-prompt-helper,
  body[data-island-category="video"][data-island-input-variant="single"] #composer[data-video-frame-phone-sizing="reference-controls-footer"] #ai-prompt-helper {right:.9375rem!important;bottom:2.9375rem!important;font:400 13.3333px Arial!important;color:#fff!important;}
}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-v6-shouweizhen"],[data-model-id="pixverse-v5.6-shouweizhen"],[data-model-id="pixverse-c1-shouweizhen"],[data-model-id="viduq3"],[data-model-id="kling-v3-video"],[data-model-id="omni-flash-10s-fl"],[data-model-id="viduq3-turbo"],[data-model-id="wan3.0-video-shouweizhen"],[data-model-id="wan2.7-shouweizhen"])) #media-control-row :is(.media-control,.reference-phone-camera) {font:400 13.3333px Arial!important;}
@media(max-width:450px){
  body[data-island-category="video"] .chat-workspace:has(#composer[data-video-frame-phone-sizing="reference-controls-footer"]) {left:0;right:0;width:100%;padding:0 .5rem;box-sizing:border-box;}
  body[data-island-category="video"] #composer[data-video-frame-phone-sizing="reference-controls-footer"] {width:100%!important;height:var(--island-composer-height)!important;grid-template-rows:minmax(min-content,1fr) auto auto!important;}
  body[data-island-category="video"] #composer[data-video-frame-phone-sizing="reference-controls-footer"] #media-control-row {position:static!important;grid-row:2!important;grid-column:1 / -1!important;min-height:min-content!important;left:auto;right:auto;bottom:auto;padding:.5625rem .9375rem 0!important;}
  body[data-island-category="video"] #composer[data-video-frame-phone-sizing="reference-controls-footer"] .composer-footer {position:static!important;grid-row:3;grid-column:1 / -1!important;right:auto!important;bottom:auto!important;justify-content:flex-end;margin-top:.375rem!important;padding:0 .9375rem .75rem!important;}
}

@media(max-width:450px){
  /* A single frame has no scrollable fan; its transparent rail must not cover the other slot. */
  body[data-island-category="video"] #composer[data-video-frame-phone-sizing="reference-controls-footer"] .sd20-image-stack.expanded .sd20-stack-rail {pointer-events:none;}
}

/* Only the inspected frame members use these reference colors. */
body[data-island-category="video"]:has(.model-item-active[data-model-id="vo3.1"]) #media-control-row :is(.media-control,.reference-phone-camera) {font:400 13.3333px Arial!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="vo3.1"]) #ai-prompt-helper {font:400 13.3333px Arial!important;color:#fff!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="vo3.1"]) .reference-slot {color:#fff!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="vo3.1"]) .reference-slot .plus-icon {font-weight:300!important;}
body[data-island-category="video"][data-island-input-variant="first-last"]:has(.model-item-active[data-model-id="vo3.1"]) .reference-slot {background:color(srgb .219608 .235294 .266667 / .6)!important;border:1px dashed rgba(61,65,73,.88)!important;}
body[data-island-category="video"][data-island-input-variant="first-last"]:has(.model-item-active[data-model-id="vo3.1"]) .reference-slot :is(.frame-label,.plus-icon) {color:rgba(106,114,122,.88)!important;}
body[data-island-category="video"][data-island-input-variant="mixed"]:has(.model-item-active[data-model-id="vo3.1"]) .reference-slot :is(.frame-label,.plus-icon) {color:rgb(98,105,113)!important;}
@media(min-width:841px){
  body[data-island-category="video"]:has(.model-item-active[data-model-id="vo3.1"]) #composer {grid-template-rows:minmax(min-content,1fr) 3rem!important;}
  body[data-island-category="video"]:has(.model-item-active[data-model-id="vo3.1"]) #composer .composer-main {min-height:min-content;align-items:flex-start;}
}
@media(max-width:450px){
  body[data-island-category="video"][data-island-input-variant="mixed"]:has(.model-item-active[data-model-id="vo3.1"]) .reference-slot-wrap.is-empty .reference-slot {transform:rotate(-8deg)!important;}
  body[data-island-category="video"]:has(.model-item-active[data-model-id="vo3.1"]) #composer[data-video-frame-phone-sizing="reference-controls-footer"] #ai-prompt-helper {right:.9375rem!important;bottom:2.9375rem!important;}
}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-v6-shouweizhen"],[data-model-id="pixverse-v5.6-shouweizhen"],[data-model-id="pixverse-c1-shouweizhen"],[data-model-id="viduq3"],[data-model-id="kling-v3-video"],[data-model-id="omni-flash-10s-fl"],[data-model-id="viduq3-turbo"],[data-model-id="wan3.0-video-shouweizhen"],[data-model-id="wan2.7-shouweizhen"],[data-model-id="minimax-h3-max"])) .reference-slot {background:color(srgb .219608 .235294 .266667 / .6)!important;color:#fff!important;border:1px dashed rgba(61,65,73,.88)!important;}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-v6-shouweizhen"],[data-model-id="pixverse-v5.6-shouweizhen"],[data-model-id="pixverse-c1-shouweizhen"],[data-model-id="viduq3"],[data-model-id="kling-v3-video"],[data-model-id="omni-flash-10s-fl"],[data-model-id="viduq3-turbo"],[data-model-id="wan3.0-video-shouweizhen"],[data-model-id="wan2.7-shouweizhen"],[data-model-id="minimax-h3-max"])) .reference-slot :is(.frame-label,.plus-icon) {color:rgba(106,114,122,.88)!important;}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="viduq3"],[data-model-id="kling-v3-video"],[data-model-id="omni-flash-10s-fl"],[data-model-id="viduq3-turbo"],[data-model-id="wan3.0-video-shouweizhen"],[data-model-id="wan2.7-shouweizhen"],[data-model-id="minimax-h3-max"])) .reference-slot .plus-icon {font-weight:300!important;}

@media(max-width:450px){
  body[data-island-category="video"] #composer[data-video-frame-phone-sizing="reference-controls-footer"] .reference-slot-wrap .reference-slot-mini.reference-slot-scan {display:none!important;}
  body[data-island-category="video"] .composer-island:has(#composer[data-video-frame-phone-sizing="reference-controls-footer"]) .composer-rail > button,
  body[data-island-category="video"] #composer[data-video-frame-phone-sizing="reference-controls-footer"] #send-button {font:400 13.3333px Arial!important;}
  body[data-island-category="video"] .composer-island:has(#composer[data-video-frame-phone-sizing="reference-controls-footer"]) #enter-mode[data-send-mode="enter"] {background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.08)!important;color:rgba(255,255,255,.7)!important;}
}

@media(max-width:450px){
  body[data-island-category="video"] .composer-island:has(#composer[data-video-frame-phone-sizing="reference-controls-footer"]) #enter-mode[data-send-mode="enter"]:hover {background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.9)!important;color:rgba(255,255,255,.9)!important;}
  body[data-island-category="video"] .composer-island:has(#composer[data-video-frame-phone-sizing="reference-controls-footer"]) #enter-mode[data-send-mode="ctrl-enter"] {background:color(srgb 0 .792157 .878431 / .12)!important;}
}

@media(max-width:450px){
  body[data-island-category="video"] #composer[data-video-frame-phone-sizing="reference-controls-footer"] #media-control-row {min-height:calc(var(--frame-controls-track-height,2.25rem) + .5625rem)!important;}
  body[data-island-category="video"] .composer-island:has(#composer[data-video-frame-phone-sizing="reference-controls-footer"]) .composer-rail {top:var(--frame-footer-action-top,calc(100% - 1.875rem - .75rem - 1px))!important;bottom:auto!important;}
}

/* Public reference-stack members share existing geometry and their observed colors. */
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-c1-cankaosheng"],[data-model-id="pixverse-v5.6-r2v"],[data-model-id="viduq3-turbo-cankaosheng"],[data-model-id="viduq3-cankaosheng"],[data-model-id="viduq2-cankaosheng"],[data-model-id="happyhorse-r2v"],[data-model-id="happyhorse-1.1-r2v"],[data-model-id="wan2.6-cankaosheng"],[data-model-id="viduq3-drama"],[data-model-id="seedance-2.0-anmiao-cankaosheng"])) #media-control-row :is(.media-control,.reference-phone-camera) {font:400 13.3333px Arial!important;}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-c1-cankaosheng"],[data-model-id="pixverse-v5.6-r2v"],[data-model-id="viduq3-turbo-cankaosheng"],[data-model-id="viduq3-cankaosheng"],[data-model-id="viduq2-cankaosheng"],[data-model-id="happyhorse-r2v"],[data-model-id="happyhorse-1.1-r2v"],[data-model-id="wan2.6-cankaosheng"],[data-model-id="viduq3-drama"],[data-model-id="seedance-2.0-anmiao-cankaosheng"])) #ai-prompt-helper {font:400 13.3333px Arial!important;color:#fff!important;}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-c1-cankaosheng"],[data-model-id="pixverse-v5.6-r2v"],[data-model-id="viduq3-turbo-cankaosheng"],[data-model-id="viduq3-cankaosheng"],[data-model-id="viduq2-cankaosheng"],[data-model-id="happyhorse-r2v"],[data-model-id="happyhorse-1.1-r2v"],[data-model-id="wan2.6-cankaosheng"],[data-model-id="viduq3-drama"],[data-model-id="seedance-2.0-anmiao-cankaosheng"])) .reference-slot {color:#fff!important;}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-c1-cankaosheng"],[data-model-id="pixverse-v5.6-r2v"],[data-model-id="viduq3-turbo-cankaosheng"],[data-model-id="viduq3-cankaosheng"],[data-model-id="viduq2-cankaosheng"],[data-model-id="happyhorse-r2v"],[data-model-id="happyhorse-1.1-r2v"],[data-model-id="wan2.6-cankaosheng"],[data-model-id="viduq3-drama"],[data-model-id="seedance-2.0-anmiao-cankaosheng"])) .reference-slot .plus-icon {font-weight:300!important;}
@media(min-width:841px){
  body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-c1-cankaosheng"],[data-model-id="pixverse-v5.6-r2v"],[data-model-id="viduq3-turbo-cankaosheng"],[data-model-id="viduq3-cankaosheng"],[data-model-id="viduq2-cankaosheng"],[data-model-id="happyhorse-r2v"],[data-model-id="happyhorse-1.1-r2v"],[data-model-id="wan2.6-cankaosheng"],[data-model-id="viduq3-drama"],[data-model-id="seedance-2.0-anmiao-cankaosheng"])) #composer {grid-template-rows:minmax(min-content,1fr) 3rem!important;}
  body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-c1-cankaosheng"],[data-model-id="pixverse-v5.6-r2v"],[data-model-id="viduq3-turbo-cankaosheng"],[data-model-id="viduq3-cankaosheng"],[data-model-id="viduq2-cankaosheng"],[data-model-id="happyhorse-r2v"],[data-model-id="happyhorse-1.1-r2v"],[data-model-id="wan2.6-cankaosheng"],[data-model-id="viduq3-drama"],[data-model-id="seedance-2.0-anmiao-cankaosheng"])) #composer .composer-main {min-height:min-content;align-items:flex-start;}
}
@media(max-width:450px){
  body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-c1-cankaosheng"],[data-model-id="pixverse-v5.6-r2v"],[data-model-id="viduq3-turbo-cankaosheng"],[data-model-id="viduq3-cankaosheng"],[data-model-id="viduq2-cankaosheng"],[data-model-id="happyhorse-r2v"],[data-model-id="happyhorse-1.1-r2v"],[data-model-id="wan2.6-cankaosheng"],[data-model-id="viduq3-drama"],[data-model-id="seedance-2.0-anmiao-cankaosheng"])) .reference-slot-wrap.is-empty .reference-slot {transform:rotate(-8deg)!important;}
}

body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-c1-cankaosheng"],[data-model-id="pixverse-v5.6-r2v"],[data-model-id="viduq3-turbo-cankaosheng"],[data-model-id="viduq3-cankaosheng"],[data-model-id="viduq2-cankaosheng"],[data-model-id="happyhorse-r2v"],[data-model-id="happyhorse-1.1-r2v"],[data-model-id="wan2.6-cankaosheng"],[data-model-id="viduq3-drama"],[data-model-id="seedance-2.0-anmiao-cankaosheng"])) .reference-slot :is(.frame-label,.plus-icon) {color:rgb(98,105,113)!important;}

/* Reference global warning, used only by the two audited image batch members. */
.reference-upload-toast-container{position:fixed;top:1.25rem;left:50%;transform:translate(-50%);z-index:99999;display:flex;flex-direction:column;gap:.75rem;pointer-events:none;max-width:25rem;width:auto;align-items:center}
.reference-upload-toast{position:relative;background:linear-gradient(135deg,rgb(30,31,37) 0%,rgb(27,28,33) 100%);border-radius:.75rem;padding:1rem 1.25rem;box-shadow:0 .5rem 2rem #0006,0 0 0 .0625rem #00cae01a,inset 0 .0625rem 0 #ffffff0d;backdrop-filter:blur(.625rem);pointer-events:auto;overflow:hidden;min-width:18.75rem;max-width:100%;box-sizing:border-box;transition:all .3s cubic-bezier(.34,1.56,.64,1);color:rgb(245,251,255)}
.reference-upload-toast-warning{border-left:.1875rem solid #ff9800}
.reference-upload-toast-content{display:flex;align-items:flex-start;gap:.75rem}
.reference-upload-toast-icon{display:flex;align-items:center;justify-content:center;flex:none;width:1.25rem;height:1.25rem;font-size:1.125rem;color:#ff9800}
.reference-upload-toast-message{flex:1;font-size:.875rem;line-height:1.6}
.reference-upload-toast-close{flex:none;border:0;background:transparent;color:rgb(140,153,160);cursor:pointer;font-size:1.25rem;padding:0}
.reference-upload-toast-progress{position:absolute;bottom:0;left:0;height:.125rem;width:100%;background:linear-gradient(90deg,#ff9800,#ff980099);transform-origin:left;animation:reference-upload-progress linear forwards}
@keyframes reference-upload-progress{to{transform:scaleX(0)}}
@media(max-width:40rem){.reference-upload-toast-container{top:.625rem;max-width:calc(100% - 1.25rem)}}
@media(prefers-reduced-motion:reduce){.reference-upload-toast{transition:none}.reference-upload-toast-progress{animation:none}}

.reference-upload-toast-icon,.reference-upload-toast-close{margin-top:.125rem}

/* Reference AI anchor is relative to the shell, avoiding nested flex rounding. */
@media(min-width:841px){
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-c1-cankaosheng"],[data-model-id="pixverse-v5.6-r2v"],[data-model-id="viduq3-turbo-cankaosheng"],[data-model-id="viduq3-cankaosheng"],[data-model-id="viduq2-cankaosheng"],[data-model-id="happyhorse-r2v"],[data-model-id="happyhorse-1.1-r2v"],[data-model-id="wan2.6-cankaosheng"],[data-model-id="viduq3-drama"],[data-model-id="seedance-2.0-anmiao-cankaosheng"],[data-model-id="wan2.7-shouweizhen"])) #composer .composer-footer {bottom:0!important;height:0!important;}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-c1-cankaosheng"],[data-model-id="pixverse-v5.6-r2v"],[data-model-id="viduq3-turbo-cankaosheng"],[data-model-id="viduq3-cankaosheng"],[data-model-id="viduq2-cankaosheng"],[data-model-id="happyhorse-r2v"],[data-model-id="happyhorse-1.1-r2v"],[data-model-id="wan2.6-cankaosheng"],[data-model-id="viduq3-drama"],[data-model-id="seedance-2.0-anmiao-cankaosheng"],[data-model-id="wan2.7-shouweizhen"])) #composer #ai-prompt-helper {position:absolute!important;right:0!important;bottom:2.9375rem!important;}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="pixverse-c1-cankaosheng"],[data-model-id="pixverse-v5.6-r2v"],[data-model-id="viduq3-turbo-cankaosheng"],[data-model-id="viduq3-cankaosheng"],[data-model-id="viduq2-cankaosheng"],[data-model-id="happyhorse-r2v"],[data-model-id="happyhorse-1.1-r2v"],[data-model-id="wan2.6-cankaosheng"],[data-model-id="viduq3-drama"],[data-model-id="seedance-2.0-anmiao-cankaosheng"],[data-model-id="wan2.7-shouweizhen"])) #composer #send-button {position:absolute!important;right:0!important;bottom:.65625rem!important;}
}

/* Exact55 has two independent single entrances; share the existing footer and
   frame dimensions, with its observed image/audio gap and empty-card styling. */
body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"],.model-item-active[data-model-id="sd-2.0-reference"],.model-item-active[data-model-id="sd-2.0-all-reference"],.model-item-active[data-model-id="seedance-2.0-anmiao-quannengcankao"],.model-item-active[data-model-id="doubao-seedance-2-5-quannengcankao"],.model-item-active[data-model-id="sd-2.5-all-reference-per-second"],.model-item-active[data-model-id="hailuo-h3-all-reference"],.model-item-active[data-model-id="wanxiang-3.0-all-reference"],.model-item-active[data-model-id="sd-2.0-full-video"],.model-item-active[data-model-id="sd-2.0-full-per-second"],.model-item-active[data-model-id="minimax-h3"],.model-item-active[data-model-id="minimax-h3-max"],.model-item-active[data-model-id="wanxiang-3.0"])) #media-control-row :is(.media-control,.reference-phone-camera) {font:400 13.3333px Arial!important;}
body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"])) .reference-input-groups {gap:.75rem;}
body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"])) .reference-group-arrow {flex-basis:20px;}
body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="video-enhance"])) .reference-input-group .reference-slot-wrap {transform:none!important;}
body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"])) .reference-slot-wrap.is-empty .reference-slot {background:color(srgb .219608 .235294 .266667 / .6)!important;color:#fff!important;border:1px dashed rgba(61,65,73,.88)!important;transform:rotate(-8deg)!important;}
body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"])) .reference-input-group[data-group-kind="audio"] .reference-slot-wrap.is-empty .reference-slot {transform:rotate(8deg)!important;}
body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"])) .reference-slot-wrap.is-empty .reference-slot :is(.frame-label,.plus-icon) {color:color(srgb .411765 .447059 .466667 / .88)!important;}
body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"])) .reference-slot-wrap.is-empty .reference-slot .frame-label {font-size:.625rem!important;}
body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"])) .reference-slot-wrap.is-empty .reference-slot .plus-icon {font-weight:300!important;}
body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"],.model-item-active[data-model-id="sd-2.0-all-reference"],.model-item-active[data-model-id="seedance-2.0-anmiao-quannengcankao"],.model-item-active[data-model-id="doubao-seedance-2-5-quannengcankao"],.model-item-active[data-model-id="sd-2.5-all-reference-per-second"],.model-item-active[data-model-id="hailuo-h3-all-reference"],.model-item-active[data-model-id="wanxiang-3.0-all-reference"],.model-item-active[data-model-id="sd-2.0-full-video"],.model-item-active[data-model-id="sd-2.0-full-per-second"],.model-item-active[data-model-id="minimax-h3"],.model-item-active[data-model-id="minimax-h3-max"],.model-item-active[data-model-id="wanxiang-3.0"])) #composer #ai-prompt-helper {position:absolute!important;font:400 13.3333px Arial!important;color:#fff!important;right:.9375rem!important;bottom:2.9375rem!important;}
@media(min-width:841px){
  body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"],.model-item-active[data-model-id="sd-2.0-reference"],.model-item-active[data-model-id="sd-2.0-all-reference"],.model-item-active[data-model-id="seedance-2.0-anmiao-quannengcankao"],.model-item-active[data-model-id="doubao-seedance-2-5-quannengcankao"],.model-item-active[data-model-id="sd-2.5-all-reference-per-second"],.model-item-active[data-model-id="hailuo-h3-all-reference"],.model-item-active[data-model-id="wanxiang-3.0-all-reference"],.model-item-active[data-model-id="sd-2.0-full-video"],.model-item-active[data-model-id="sd-2.0-full-per-second"],.model-item-active[data-model-id="minimax-h3"],.model-item-active[data-model-id="minimax-h3-max"],.model-item-active[data-model-id="wanxiang-3.0"])) #composer {grid-template-rows:minmax(min-content,1fr) 3rem!important;}
  body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"],.model-item-active[data-model-id="sd-2.0-all-reference"],.model-item-active[data-model-id="seedance-2.0-anmiao-quannengcankao"],.model-item-active[data-model-id="doubao-seedance-2-5-quannengcankao"],.model-item-active[data-model-id="sd-2.5-all-reference-per-second"],.model-item-active[data-model-id="hailuo-h3-all-reference"],.model-item-active[data-model-id="wanxiang-3.0-all-reference"],.model-item-active[data-model-id="sd-2.0-full-video"],.model-item-active[data-model-id="sd-2.0-full-per-second"],.model-item-active[data-model-id="minimax-h3"],.model-item-active[data-model-id="minimax-h3-max"],.model-item-active[data-model-id="wanxiang-3.0"])) #composer .composer-main {min-height:min-content;align-items:flex-start;}
  body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"],.model-item-active[data-model-id="sd-2.0-all-reference"],.model-item-active[data-model-id="seedance-2.0-anmiao-quannengcankao"],.model-item-active[data-model-id="doubao-seedance-2-5-quannengcankao"],.model-item-active[data-model-id="sd-2.5-all-reference-per-second"],.model-item-active[data-model-id="hailuo-h3-all-reference"],.model-item-active[data-model-id="wanxiang-3.0-all-reference"],.model-item-active[data-model-id="sd-2.0-full-video"],.model-item-active[data-model-id="sd-2.0-full-per-second"],.model-item-active[data-model-id="minimax-h3"],.model-item-active[data-model-id="minimax-h3-max"],.model-item-active[data-model-id="wanxiang-3.0"])) #composer .composer-footer {bottom:0!important;height:0!important;}
  body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"],.model-item-active[data-model-id="sd-2.0-all-reference"],.model-item-active[data-model-id="seedance-2.0-anmiao-quannengcankao"],.model-item-active[data-model-id="doubao-seedance-2-5-quannengcankao"],.model-item-active[data-model-id="sd-2.5-all-reference-per-second"],.model-item-active[data-model-id="hailuo-h3-all-reference"],.model-item-active[data-model-id="wanxiang-3.0-all-reference"],.model-item-active[data-model-id="sd-2.0-full-video"],.model-item-active[data-model-id="sd-2.0-full-per-second"],.model-item-active[data-model-id="minimax-h3"],.model-item-active[data-model-id="minimax-h3-max"],.model-item-active[data-model-id="wanxiang-3.0"])) #composer #ai-prompt-helper {right:0!important;}
  body[data-island-category="video"]:has(:is(.model-item-active[data-model-id="wan2.6-shouzheng"],.model-item-active[data-model-id="wan3.0-video-cankaosheng"],.model-item-active[data-model-id="wan2.7-cankaosheng"],.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"],.model-item-active[data-model-id="video-enhance"],.model-item-active[data-model-id="sd-2.0-all-reference"],.model-item-active[data-model-id="seedance-2.0-anmiao-quannengcankao"],.model-item-active[data-model-id="doubao-seedance-2-5-quannengcankao"],.model-item-active[data-model-id="sd-2.5-all-reference-per-second"],.model-item-active[data-model-id="hailuo-h3-all-reference"],.model-item-active[data-model-id="wanxiang-3.0-all-reference"],.model-item-active[data-model-id="sd-2.0-full-video"],.model-item-active[data-model-id="sd-2.0-full-per-second"],.model-item-active[data-model-id="minimax-h3"],.model-item-active[data-model-id="minimax-h3-max"],.model-item-active[data-model-id="wanxiang-3.0"])) #composer #send-button {position:absolute!important;right:0!important;bottom:.65625rem!important;}
}

/* Own186 document entrance shares the55 outer layout, with its own card labels. */
body:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-input-group[data-group-kind="document"] .reference-slot {transform:rotate(8deg)!important;}
body:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-slot-wrap.is-empty .reference-slot .frame-label {font-size:.6875rem!important;line-height:1.15!important;}

body[data-island-category="video"]:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-input-group .reference-slot-wrap.is-empty .reference-slot {background:rgb(45,47,53)!important;border:1px dashed rgba(98,105,113,.6)!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-input-group .reference-slot-wrap.is-empty .reference-slot :is(.frame-label,.plus-icon) {color:rgb(98,105,113)!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-input-group .reference-slot-wrap.is-empty .reference-slot .frame-label {font-size:.6875rem!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-input-group[data-group-kind="document"] .reference-slot-wrap.is-empty .reference-slot {transform:rotate(8deg)!important;}

body[data-island-category="video"]:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-input-group[data-group-kind="document"] .reference-slot-wrap .reference-slot {transform:rotate(8deg)!important;}

/* Accurate186: occupied document/link removal follows the rotated card, not the outer link corner. */
body[data-island-category="video"]:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-input-group[data-group-kind="document"] .reference-slot-wrap:not(.is-empty) {height:4.375rem!important;line-height:1.5;transform:rotate(8deg)!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-input-group[data-group-kind="document"] .reference-slot-wrap:not(.is-empty) > .reference-slot {transform:none!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-input-group[data-group-kind="document"] .reference-slot-clear {top:calc(-.5rem + 1px);right:calc(-.5rem + 1px);width:1.25rem;height:1.25rem;z-index:10;padding:.1875rem;background:rgb(31,34,39);border:1px solid rgb(65,71,76);color:#fff;font:inherit;visibility:hidden;opacity:0;transform:scale(.5);transition:opacity .2s ease,transform .2s ease;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-input-group[data-group-kind="document"] .reference-slot-wrap:is(:hover,:focus-within) > .reference-slot-clear {visibility:visible;opacity:1;transform:scale(1);}
body[data-island-category="video"]:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-input-group[data-group-kind="document"] .reference-slot-clear:hover {transform:scale(1.1);}

body[data-island-category="video"]:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) #composer #media-reference-slots .reference-link-card {font:inherit;line-height:1.5;color:#fff!important;background:linear-gradient(135deg,#0ea5e973,#3b82f64d)!important;border:1px solid #fff!important;padding:0!important;box-shadow:0 .25rem .75rem #0000004d!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="wan3.0-video-cankaosheng"]) .reference-link-host {line-height:1.5;}

/* Accurate89 shares the grouped footer; its second image card has the observed positive tilt. */
body[data-island-category="video"]:has(.model-item-active[data-model-id="wanxiang-3.0"]) #composer .reference-input-group[data-group-kind="document"] .reference-slot {transform:none!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="wanxiang-3.0"]) #composer .reference-input-group[data-group-kind="document"] .reference-slot-mini {display:none!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="wanxiang-3.0"]) #composer #media-reference-slots .reference-link-card {font:inherit;line-height:1.5;color:#fff!important;background:linear-gradient(135deg,rgba(14,165,233,.45),rgba(59,130,246,.3))!important;border:1px solid #fff!important;padding:0!important;box-shadow:0 .25rem .75rem #0000004d!important;}
@media(max-width:840px){
 body[data-island-input-variant="mixed"]:has(.model-item-active[data-model-id="wanxiang-3.0"]) #composer .native-scan-layer {position:absolute;top:0;left:0;width:3.4375rem;height:4.375rem;border:1px solid transparent;box-sizing:border-box;pointer-events:none;}
 body[data-island-input-variant="mixed"]:has(.model-item-active[data-model-id="wanxiang-3.0"]) #composer [data-group-kind="document"] .native-scan-layer {display:none!important;}
 body[data-island-input-variant="mixed"]:has(.model-item-active[data-model-id="wanxiang-3.0"]) #composer [data-group-kind="image"] :is(.native-scan-layer,.reference-slot-assets) {transform:rotate(-8deg);}
 body[data-island-input-variant="mixed"]:has(.model-item-active[data-model-id="wanxiang-3.0"]) #composer [data-group-kind="audio"] :is(.native-scan-layer,.reference-slot-assets) {transform:rotate(8deg);}
 body[data-island-input-variant="mixed"]:has(.model-item-active[data-model-id="wanxiang-3.0"]) #composer .native-scan-layer .reference-slot-mini.reference-slot-scan {display:flex!important;opacity:1;pointer-events:auto;font:400 13.3333px Arial;z-index:11;box-shadow:0 .125rem .375rem #0000002e;border:1px solid color-mix(in srgb,#00cae0 42%,transparent)!important;}
 body[data-island-input-variant="mixed"]:has(.model-item-active[data-model-id="wanxiang-3.0"]) #composer .reference-slot-scan svg {width:12px!important;height:12px!important;stroke-width:4.4;}
 body[data-island-input-variant="mixed"]:has(.model-item-active[data-model-id="wanxiang-3.0"]) #composer .reference-slot-assets {font:400 .75rem/1 Arial;box-shadow:0 .125rem .375rem #0000002e;}
}
body[data-island-category="video"]:has(.model-item-active[data-model-id="wan2.7-cankaosheng"]) .reference-input-group[data-group-kind="image"] .reference-slot-wrap.is-empty .reference-slot {transform:rotate(8deg)!important;}
/* Accurate21 image_to_audio uses a left-tilted empty first card. */
body:has(.model-item-active[data-model-id="kling-avatar-image2video"],.model-item-active[data-model-id="video-enhance"]) #media-reference-slots .reference-input-group[data-group-kind="image"] .reference-slot:not(.filled) { transform:rotate(-8deg)!important; }

/* Own69 second empty image card has the observed positive tilt. */
body[data-island-category="video"]:has(.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"]) .reference-input-group[data-group-kind="image"] .reference-slot-wrap.is-empty .reference-slot {transform:rotate(8deg)!important;}

/* Own69 empty entrance positioning must not override the occupied fan add-card translation. */
body[data-island-category="video"]:has(.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"]) .reference-input-group .reference-slot-wrap:not(.sd20-stack-add) {transform:none!important;}

/* Accurate69 observed shell/input and AI styles, without changing older grouped members. */
body[data-island-category="video"]:has(.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"]) #composer {line-height:1.5!important;color:#fff!important;box-shadow:none!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"]) #composer :is(#prompt,.refmedia-rich-input) {color:color(srgb .960784 .984314 1 / .88)!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="kling-v3-omni-videoref"],.model-item-active[data-model-id="wan2.7-xuxie"],.model-item-active[data-model-id="happyhorse-video-edit"]) #composer #ai-prompt-helper {box-shadow:0 .25rem .75rem rgba(249,115,22,.38),inset 0 .0625rem 0 rgba(255,255,255,.35)!important;}

/* The six observed full-reference entrances share the same empty image tilt.
   Uploaded fan cards and their add-card translation keep the existing policy. */
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="sd-2.0-all-reference"],[data-model-id="seedance-2.0-anmiao-quannengcankao"],[data-model-id="doubao-seedance-2-5-quannengcankao"],[data-model-id="sd-2.5-all-reference-per-second"],[data-model-id="hailuo-h3-all-reference"],[data-model-id="wanxiang-3.0-all-reference"])) .reference-input-group[data-group-kind="image"] .reference-slot-wrap.is-empty:not(.sd20-stack-add) {transform:rotate(-8deg)!important;}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="sd-2.0-all-reference"],[data-model-id="doubao-seedance-2-5-quannengcankao"])) .sd20-portrait-wrap {transform:rotate(-8deg)!important;}

/* Match the visible card itself, with one transform instead of nested tilts. */
#composer[data-reference-full="reviewed"] .reference-input-group .reference-slot-wrap:not(.sd20-stack-add),
#composer[data-reference-full="reviewed"] .sd20-portrait-wrap {transform:none!important;}
#composer[data-reference-full="reviewed"] .reference-slot-wrap.is-empty:not(.sd20-stack-add)>.reference-slot,
#composer[data-reference-full="reviewed"] .sd20-portrait-trigger {width:3.4375rem!important;height:4.375rem!important;min-height:0!important;max-height:4.375rem!important;transform:rotate(-8deg)!important;}
#composer[data-reference-full="reviewed"] .reference-input-group[data-group-kind="video"] .reference-slot-wrap.is-empty:not(.sd20-stack-add)>.reference-slot {transform:none!important;}
#composer[data-reference-full="reviewed"] .reference-input-group[data-group-kind="audio"] .reference-slot-wrap.is-empty:not(.sd20-stack-add)>.reference-slot {transform:rotate(8deg)!important;}

body[data-island-category="video"]:has(.model-item-active[data-model-id="sd-2.0-reference"],.model-item-active[data-model-id="sd-2.0-all-reference"],.model-item-active[data-model-id="seedance-2.0-anmiao-quannengcankao"],.model-item-active[data-model-id="doubao-seedance-2-5-quannengcankao"],.model-item-active[data-model-id="sd-2.5-all-reference-per-second"],.model-item-active[data-model-id="hailuo-h3-all-reference"],.model-item-active[data-model-id="wanxiang-3.0-all-reference"],.model-item-active[data-model-id="sd-2.0-full-video"],.model-item-active[data-model-id="sd-2.0-full-per-second"],.model-item-active[data-model-id="minimax-h3"],.model-item-active[data-model-id="minimax-h3-max"],.model-item-active[data-model-id="wanxiang-3.0"]) #composer {line-height:1.5!important;color:#fff!important;box-shadow:none!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="sd-2.0-reference"],.model-item-active[data-model-id="sd-2.0-all-reference"],.model-item-active[data-model-id="seedance-2.0-anmiao-quannengcankao"],.model-item-active[data-model-id="doubao-seedance-2-5-quannengcankao"],.model-item-active[data-model-id="sd-2.5-all-reference-per-second"],.model-item-active[data-model-id="hailuo-h3-all-reference"],.model-item-active[data-model-id="wanxiang-3.0-all-reference"],.model-item-active[data-model-id="sd-2.0-full-video"],.model-item-active[data-model-id="sd-2.0-full-per-second"],.model-item-active[data-model-id="minimax-h3"],.model-item-active[data-model-id="minimax-h3-max"],.model-item-active[data-model-id="wanxiang-3.0"]) #composer :is(#prompt,.refmedia-rich-input) {color:color(srgb .960784 .984314 1 / .88)!important;}
body[data-island-category="video"]:has(.model-item-active[data-model-id="sd-2.0-reference"],.model-item-active[data-model-id="sd-2.0-all-reference"],.model-item-active[data-model-id="seedance-2.0-anmiao-quannengcankao"],.model-item-active[data-model-id="doubao-seedance-2-5-quannengcankao"],.model-item-active[data-model-id="sd-2.5-all-reference-per-second"],.model-item-active[data-model-id="hailuo-h3-all-reference"],.model-item-active[data-model-id="wanxiang-3.0-all-reference"],.model-item-active[data-model-id="sd-2.0-full-video"],.model-item-active[data-model-id="sd-2.0-full-per-second"],.model-item-active[data-model-id="minimax-h3"],.model-item-active[data-model-id="minimax-h3-max"],.model-item-active[data-model-id="wanxiang-3.0"]) #composer #ai-prompt-helper {box-shadow:0 .25rem .75rem rgba(249,115,22,.38),inset 0 .0625rem 0 rgba(255,255,255,.35)!important;}

/* Accurate76/171: common public descendant clearance and empty-card label rules. */
@media(max-width:450px){
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="sd-2.0-all-reference"],[data-model-id="doubao-seedance-2-5-quannengcankao"])) #hero {max-height:max(0px,calc(var(--media-descendant-top,100dvh) - 4.25rem));}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="sd-2.0-all-reference"],[data-model-id="doubao-seedance-2-5-quannengcankao"])) #composer .reference-slot-wrap.is-empty .frame-label,body[data-island-category="video"]:has(.model-item-active:is([data-model-id="sd-2.0-all-reference"],[data-model-id="doubao-seedance-2-5-quannengcankao"])) #composer .sd20-portrait-trigger[data-reference-empty="true"] .frame-label {line-height:1.15!important;padding:0 .125rem!important;white-space:normal;text-align:center;max-width:100%;word-break:break-word;}
body[data-island-category="video"]:has(.model-item-active:is([data-model-id="sd-2.0-all-reference"],[data-model-id="doubao-seedance-2-5-quannengcankao"])) #hero-notice .sd20-announcement-toggle {margin:.5rem 0 0;}
}
