/* Inline prompt composition uses the generator's one scrollable body. */
.aim .aim-prompt-builder-label-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;min-width:0}
.aim .aim-prompt-builder-label-row>label{flex:1 1 auto;min-width:0;margin:0;font-size:13px;font-weight:650}
.aim .aim-prompt-builder-label-row>button{flex:0 1 auto;min-width:0;min-height:32px;padding:5px 9px;font-size:12px;line-height:1.4;white-space:normal}
.aim .aim-prompt-builder-label-row>[data-prompt-builder-open]{background:#694593!important;color:#fff!important;border-color:#bc94ed!important;box-shadow:inset 0 1px 0 #ffffff25}
.aim .aim-prompt-builder-label-row>[data-prompt-builder-restore]{font-size:11px;background:#384850!important;color:#e6f6ff!important;border-color:#80acbf!important}
.aim .aim-prompt-builder-formula{margin:0;font-size:11px;line-height:1.5;color:#cfb3ee!important}
.aim .aim-prompt-builder-help{min-width:0;margin:0;border:0;border-radius:0;background:transparent}
.aim .aim-prompt-builder-help>summary{padding:0;min-height:28px;font-size:12px;line-height:1.5;color:#d4c1eb!important;cursor:pointer}
.aim .aim-prompt-builder-help-body{display:grid;gap:8px;min-width:0;padding:9px 0}
.aim .aim-prompt-builder-help-body>p{margin:0;font-size:12px;line-height:1.5;color:#d4d9df!important}
.aim .aim-prompt-builder-help-body>.aim-prompt-builder-weak{padding:8px;border-left:3px solid #c29c76;background:#443b32}
.aim .aim-prompt-builder-help-body>.aim-prompt-builder-strong{padding:9px;border:1px solid #7e6898;border-radius:6px;background:#38303f;color:#f2e9ff!important}
.aim .aim-prompt-builder{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0;max-width:100%;margin:0;padding:12px;border:1px solid #8b6fa5;border-radius:8px;background:#302b36;overflow:visible}
.aim .aim-prompt-builder[hidden],.aim [data-prompt-builder-restore][hidden],.aim [data-prompt-builder-rebuild][hidden]{display:none!important}
.aim .aim-prompt-builder>.aim-prompt-builder-intro,.aim .aim-prompt-builder-note{margin:0;font-size:11px;line-height:1.5;color:#d7c9e4!important}
.aim .aim-prompt-builder-examples{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.aim .aim-prompt-builder-examples>button{min-width:0;min-height:30px;padding:5px 10px;font-size:12px}
.aim .aim-prompt-builder>fieldset{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;min-width:0;margin:0;padding:10px;border:1px solid #605469;border-radius:6px}
.aim .aim-prompt-builder>fieldset>legend{float:none;width:auto;padding:0 5px;margin:0;font-size:12px;line-height:1.4;font-weight:650;color:#e8daf5}
.aim .aim-prompt-builder label{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-width:0;margin:0;font-size:12px;line-height:1.4}
.aim .aim-prompt-builder input[type=text],.aim .aim-prompt-builder textarea{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:34px;padding:7px 9px;border:1px solid #7d718a;border-radius:6px;background:#24232a;color:#f2edf8;font-size:13px;line-height:1.5}
.aim .aim-prompt-builder textarea{min-height:72px;resize:vertical}
.aim .aim-prompt-builder-subtitle{font-size:11px;line-height:1.4;color:#d2c3df}
.aim .aim-prompt-builder-chips{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0}
.aim .aim-prompt-builder-chips>button{min-width:0;max-width:100%;min-height:30px;padding:5px 8px;border-radius:20px;font-size:11px;line-height:1.4;white-space:normal}
.aim .aim-prompt-builder-chips>button[aria-pressed=true]{background:#7952a3!important;color:#fff!important;border-color:#d0acef!important;box-shadow:inset 0 0 0 1px #b58acb}
.aim .aim-prompt-builder>.aim-prompt-builder-preview-label{font-weight:650}
.aim .aim-prompt-builder-preview-label>textarea{min-height:118px;font-weight:400}
.aim .aim-prompt-builder>[data-prompt-builder-rebuild]{justify-self:start;min-height:32px;padding:5px 9px;font-size:12px}
.aim .aim-prompt-builder>.aim-prompt-builder-insert-mode{gap:7px}
.aim .aim-prompt-builder-insert-mode>label{display:flex;align-items:center;gap:8px;min-height:30px;cursor:pointer;font-size:12px}
.aim .aim-prompt-builder-insert-mode input[type=radio]{flex:0 0 17px;min-width:17px;width:17px;min-height:17px;height:17px;margin:0;padding:0;accent-color:#c39be8}
.aim .aim-prompt-builder-counter{margin:0;font-size:11px;line-height:1.45;color:#c9d5dd!important}
.aim .aim-prompt-builder-counter.is-over-limit{color:#ffc5aa!important}
.aim .aim-prompt-builder-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.aim .aim-prompt-builder-actions>button{flex:1 1 130px;min-width:0;min-height:36px;padding:7px 10px;font-size:12px;line-height:1.4;white-space:normal}
.aim .aim-prompt-builder-actions>[data-prompt-builder-insert]{flex:2 1 180px;background:#7952a3!important;color:#fff!important;border-color:#d0acef!important}
@media(max-width:599px){
 .aim .aim-prompt-builder{padding:9px;gap:9px}
 .aim .aim-prompt-builder>fieldset{padding:8px}
 .aim .aim-prompt-builder-label-row>button,.aim .aim-prompt-builder button{min-height:36px!important}
 .aim .aim-ai-image-form .aim-prompt-builder input[type=text],.aim .aim-ai-image-form .aim-prompt-builder textarea{font-size:16px!important;min-height:38px!important}
 .aim .aim-prompt-builder-insert-mode>label{min-height:36px}
 .aim .aim-prompt-builder-help>summary{min-height:36px}
 .aim .aim-prompt-builder-actions{flex-direction:column;align-items:stretch}
 .aim .aim-prompt-builder-actions>button{flex:0 0 auto}
}
