.basic-image-workbench{max-width:1600px;margin-inline:auto}.basic-image-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}.basic-image-heading .section-eyebrow{display:flex;gap:9px;align-items:center}.basic-image-heading h1{font-size:clamp(32px,4vw,54px);line-height:1.08;letter-spacing:-.04em;margin:14px 0}.basic-image-heading h1 span{color:#d3b7ff}.basic-image-heading p{max-width:700px;color:#c1b8ca;font-size:16px;line-height:1.6}.basic-image-model{display:flex;align-items:center;gap:14px;padding:20px 24px;margin-bottom:22px;border:1px solid #615174;border-radius:20px;background:linear-gradient(110deg,#342741,#1c1a23)}.basic-image-model>div{display:grid;gap:6px}.basic-image-model strong{font-size:20px}.basic-image-model span{font-size:15px;color:#cfc5da}.basic-image-model .basic-image-cost{margin-left:auto;background:#e2cfff;color:#281933;border-radius:12px;padding:12px 16px;font-size:18px;font-weight:800;white-space:nowrap}.basic-image-grid{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(0,1.35fr);gap:24px;align-items:start}.basic-image-panel{min-width:0;padding:26px;border:1px solid #48404f;border-radius:22px;background:#19171f}.basic-image-balance{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding-bottom:22px;border-bottom:1px solid #403847;margin-bottom:22px}.basic-image-balance>span{color:#c1b8ca;font-size:15px}.basic-image-balance>strong{font-size:32px;grid-column:1;grid-row:2}.basic-image-balance>button{grid-column:2;grid-row:1/3}.basic-image-field{display:grid;gap:10px;margin:20px 0}.basic-image-field>span{font-size:17px;font-weight:750}.basic-image-field select,.basic-image-field textarea{box-sizing:border-box;width:100%;border:1px solid #66556d;border-radius:12px;background:#101016;color:#f5edff;padding:14px 16px;font:inherit;font-size:16px;line-height:1.6}.basic-image-field textarea{resize:vertical;min-height:170px}.basic-image-field small{font-size:13px;line-height:1.5;color:#b9afc1}.basic-image-pending,.basic-image-review,.basic-image-summary{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid #4b4058;border-radius:14px;background:#25212c;margin:18px 0}.basic-image-pending>svg,.basic-image-review svg,.basic-image-summary svg{flex-shrink:0;margin-top:3px}.basic-image-pending p,.basic-image-review p,.basic-image-summary p{margin:0;font-size:14px;line-height:1.6;color:#ccc1d6}.basic-image-review{border-color:#687d5b;background:#243025}.basic-image-pending strong,.basic-image-review strong{font-size:17px}.basic-image-review p{margin-top:6px}.basic-image-actions{display:flex;flex-wrap:wrap;gap:12px}.basic-image-workbench .button{min-height:44px;font-size:15px;white-space:normal;line-height:1.4}.basic-image-workbench button:disabled{opacity:.5;cursor:not-allowed}.basic-image-workbench :is(button,a,input,select,textarea):focus-visible{outline:3px solid #d6b6ff;outline-offset:4px}.basic-image-result-title{display:flex;align-items:center;justify-content:space-between;gap:16px}.basic-image-result-title h2{font-size:24px;margin:0}.basic-image-result-title a{display:flex;align-items:center;gap:7px;color:#dbc1ff;font-size:15px}.basic-image-error,.basic-image-note{font-size:15px;line-height:1.65;margin:16px 0;overflow-wrap:anywhere}.basic-image-note{color:#cfc4da}.basic-image-error{padding:14px 16px;border:1px solid #9f5867;border-radius:12px;background:#38202b;color:#ffd8e1}.basic-image-empty{min-height:310px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #504359;border-radius:18px;padding:28px;margin-top:24px;color:#b8a4cb}.basic-image-empty h3{font-size:22px;color:#eee4f8;margin:16px 0 8px}.basic-image-empty p{max-width:430px;font-size:15px;line-height:1.65;margin:0}.basic-image-result{margin:22px 0 0}.basic-image-result>img{display:block;width:100%;max-height:650px;object-fit:contain;border-radius:15px;background:#101015}.basic-image-result figcaption{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;color:#cfc1dc;font-size:14px;flex-wrap:wrap}.basic-image-pending .button{margin-top:12px}.basic-image-history{margin-top:28px;padding-top:20px;border-top:1px solid #45394e}.basic-image-history h3{font-size:19px;margin:0 0 8px}.basic-image-history>p{font-size:13px;line-height:1.6;color:#bcaec9}.basic-image-history>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.basic-image-history button{padding:0;overflow:hidden;background:#27212e;border:1px solid #51435c;border-radius:12px;color:#eee3f8;text-align:left}.basic-image-history img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.basic-image-history span{display:block;padding:10px;font-size:14px;font-weight:650}@media(max-width:950px){.basic-image-grid{grid-template-columns:1fr}.basic-image-heading{align-items:flex-start;flex-direction:column}.basic-image-panel{padding:20px}}@media(max-width:500px){.basic-image-model{padding:16px;gap:10px;flex-wrap:wrap}.basic-image-model strong{font-size:18px}.basic-image-model .basic-image-cost{margin-left:0}.basic-image-actions .button{width:100%}.basic-image-history>div{grid-template-columns:repeat(2,minmax(0,1fr))}.basic-image-panel{padding:17px}.basic-image-balance .button{max-width:130px}}@media(prefers-reduced-motion:reduce){.basic-image-workbench .spin{animation:none}.basic-image-workbench *{scroll-behavior:auto}}
/* Image inspiration gallery: preserve each full image and keep actions separate. */
.iw-inspiration-gallery .iw-inspiration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.iw-inspiration-gallery .iw-inspiration-card{min-width:0;border:1px solid #374248;border-radius:12px;background:#171d20;overflow:hidden}
.iw-inspiration-gallery button:after{display:none}
.iw-inspiration-gallery button{aspect-ratio:auto;min-height:44px;cursor:pointer}
.iw-inspiration-gallery button:disabled{cursor:default}
.iw-inspiration-gallery button:focus-visible{outline:2px solid #ffa382;outline-offset:-3px}
.iw-inspiration-gallery .iw-inspiration-preview{display:flex;align-items:center;justify-content:center;width:100%;height:clamp(180px,19vw,280px);padding:10px;border:0;border-radius:0;background:#101719;cursor:zoom-in}
.iw-inspiration-gallery .iw-inspiration-preview img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;filter:none}
.iw-inspiration-gallery .iw-inspiration-caption{padding:14px;display:flex;flex-direction:column;gap:6px}
.iw-inspiration-gallery .iw-inspiration-caption h3{font-size:15px;letter-spacing:0;line-height:1.4;margin:0;font-weight:550;color:#f3eee6}
.iw-inspiration-gallery .iw-inspiration-caption p{font-size:12px;line-height:1.5;margin:0;color:#a8b5be}
.iw-inspiration-gallery .iw-inspiration-use{display:flex;align-items:center;justify-content:center;width:100%;padding:8px 12px;margin-top:6px;border:1px solid #4c5960;border-radius:8px;background:#242e33;color:#f4e5d8;font-size:13px}
.iw-inspiration-gallery .iw-inspiration-dialog{position:fixed;inset:0;margin:auto;width:min(1000px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #536068;border-radius:14px;background:#141c20;color:#f3eee6;overflow:auto;overscroll-behavior:contain}
.iw-inspiration-dialog::backdrop{background:rgba(0,0,0,.82)}
.iw-inspiration-detail>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid #344148}
.iw-inspiration-detail>header h2{font-size:19px;line-height:1.35;margin:0}
.iw-inspiration-detail>header p{font-size:12px;color:#a8b5be;margin:4px 0 0}
.iw-inspiration-detail>header button{flex:0 0 auto;min-width:64px;padding:8px 12px;border:1px solid #56636a;background:#26333a;color:#f3eee6;border-radius:8px;font-size:14px}
.iw-inspiration-gallery .iw-inspiration-detail>img{display:block;width:100%;height:min(60dvh,620px);object-fit:contain;object-position:center;filter:none;background:#0c1215;padding:12px;box-sizing:border-box}
.iw-inspiration-detail>footer{display:flex;align-items:center;gap:18px;padding:16px 18px;border-top:1px solid #344148}
.iw-inspiration-detail>footer p{flex:1;font-size:13px;line-height:1.65;color:#c1cbd0;margin:0;overflow-wrap:anywhere}
.iw-inspiration-detail>footer button{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;font-size:14px}
@media(max-width:600px){.iw-inspiration-gallery .iw-inspiration-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.iw-inspiration-gallery .iw-inspiration-preview{height:180px;padding:7px}.iw-inspiration-gallery .iw-inspiration-caption{padding:10px}.iw-inspiration-gallery .iw-inspiration-caption h3{font-size:13px}.iw-inspiration-gallery .iw-section-label{align-items:flex-start}.iw-inspiration-gallery .iw-inspiration-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.iw-inspiration-detail>header{padding:12px;gap:12px}.iw-inspiration-detail>header h2{font-size:17px}.iw-inspiration-gallery .iw-inspiration-detail>img{height:44dvh;padding:8px}.iw-inspiration-detail>footer{padding:12px;flex-direction:column;align-items:stretch;gap:12px}.iw-inspiration-detail>footer button{width:100%}}
@media(max-width:350px){.iw-inspiration-gallery .iw-inspiration-grid{grid-template-columns:1fr}.iw-inspiration-gallery .iw-inspiration-preview{height:230px}}

/* Image Studio: one input panel, one result panel, examples underneath. */
.image-workbench .iw-header{margin-bottom:22px;align-items:center}
.image-workbench .iw-header h1{font-size:clamp(28px,3.4vw,44px);line-height:1.12}
.image-workbench .iw-header h1 br{display:none}
.image-workbench .iw-header h1 span{margin-left:.2em}
.image-workbench .iw-header p,.image-workbench .iw-header>div>a,.image-workbench .iw-preview-notice{display:none}
.image-workbench .iw-simple-layout{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);align-items:start;gap:24px}
.image-workbench .iw-simple-layout>.iw-controls{padding:22px;position:static;min-width:0}
.image-workbench .iw-simple-layout>.iw-main{min-width:0;display:flex;flex-direction:column;gap:14px}
.image-workbench .iw-simple-layout .iw-prompt-dock{display:block;position:static;margin:18px 0 0;padding:0;background:none;border:0;box-shadow:none;width:100%;max-width:none}
.image-workbench .iw-simple-layout .iw-prompt-composer{border:0;background:none;box-shadow:none;padding:0;margin:0;min-width:0}
.image-workbench .iw-simple-layout .studio-mode-switch,.image-workbench .iw-simple-layout .studio-mode-hint,.image-workbench .iw-simple-layout .iw-output-summary,.image-workbench .iw-model-picker>.iw-small-note,.image-workbench .iw-size-controls>.iw-small-note{display:none}
.image-workbench .iw-simple-layout .iw-prompt-composer textarea{min-height:168px;font-size:15px;line-height:1.55}
.image-workbench .iw-simple-layout .iw-prompt-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}
.image-workbench .iw-simple-layout .iw-prompt-actions .button.primary{width:100%;justify-content:center;min-height:48px}
.image-workbench .iw-simple-layout .iw-prompt-actions>p{margin:0;font-size:13px}
.image-workbench .iw-simple-layout .iw-prompt-actions .iw-refresh-balance{margin-left:auto;font-size:12px;min-height:44px;padding:8px}
.image-workbench .iw-simple-layout .iw-prompt-composer>details.iw-small-note,.image-workbench .iw-simple-layout .iw-prompt-composer>p.iw-small-note{display:none}
.image-workbench .iw-simple-layout .iw-prompt-label{margin-bottom:10px}
.image-workbench .iw-simple-layout .iw-prompt-label span{font-size:11px}
.image-workbench .iw-simple-options{margin-top:18px;border-top:1px solid #343e40;padding-top:4px}
.image-workbench .iw-simple-options>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;font-weight:600}
.image-workbench .iw-simple-options>summary:after{content:'+';font-size:20px}
.image-workbench .iw-simple-options[open]>summary:after{content:'−'}
.image-workbench .iw-simple-options .iw-fieldset{margin-top:14px}
.image-workbench .iw-simple-layout .iw-panel-title button,.image-workbench .iw-simple-layout button,.image-workbench .iw-simple-layout select,.image-workbench .iw-rules>summary{min-height:44px}
.image-workbench .iw-simple-layout .iw-panel-title{margin-bottom:14px}
.image-workbench .iw-simple-layout .iw-result-section{margin:0}
.image-workbench .iw-simple-layout .iw-canvas{min-height:460px;max-height:600px}
.image-workbench .iw-simple-layout .iw-canvas-meta{display:none}
.image-workbench .iw-simple-layout .iw-frame-caption p{display:none}
.image-workbench .iw-simple-layout .iw-frame-caption strong{font-size:18px;font-weight:500}
.image-workbench .iw-simple-layout .iw-job-status{padding:16px;margin:0}
.image-workbench .iw-simple-layout .iw-job-heading h2{font-size:17px}
.image-workbench .iw-simple-layout .iw-job-steps,.image-workbench .iw-simple-layout .iw-job-footer small{display:none}
.image-workbench .iw-simple-layout .iw-ready-banner{display:none}
.image-workbench .iw-simple-layout .iw-section-label>span{font-size:11px}
.image-workbench .iw-simple-layout>.iw-simple-saved,.image-workbench .iw-simple-layout>.iw-examples{grid-column:1/-1;min-width:0}
.image-workbench .iw-simple-saved:empty{display:none}
.image-workbench .iw-simple-layout .iw-saved-images{margin:0}
.image-workbench .iw-simple-layout .iw-message{font-size:13px;line-height:1.5}
.image-workbench .iw-simple-layout .iw-notice{display:none}
@media(max-width:900px){.image-workbench .iw-simple-layout{grid-template-columns:minmax(0,1fr);gap:20px}.image-workbench .iw-simple-layout>.iw-controls{padding:18px}.image-workbench .iw-simple-layout .iw-canvas{min-height:320px}.image-workbench .iw-simple-layout .iw-prompt-composer textarea{min-height:140px}.image-workbench .iw-header{margin-bottom:16px}.image-workbench .iw-header .button{min-height:44px}}

/* Gallery only: preserve the existing live model / prompt / result layout. */
.iw-beauty-gallery{grid-column:1/-1;width:100%;margin-top:22px;min-width:0}
.iw-beauty-gallery .iw-section-label{margin-bottom:16px}
.iw-beauty-gallery .iw-section-label h2{font-size:clamp(21px,2.6vw,32px);font-weight:550;letter-spacing:-.035em}
.iw-beauty-gallery .iw-inspiration-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.iw-beauty-gallery .iw-beauty-card{position:relative;display:block;appearance:none;width:100%;height:auto;aspect-ratio:3/4;min-width:0;padding:0;border:0;border-radius:8px;overflow:hidden;background:#192022;color:#fff;cursor:pointer;text-align:left}
.iw-beauty-gallery .iw-beauty-card img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 30%;filter:none;transition:transform .3s ease}
.iw-beauty-gallery .iw-beauty-card:after{display:none}
.iw-beauty-gallery .iw-beauty-caption{position:absolute;inset:50% 0 0;display:flex;flex-direction:column;justify-content:end;gap:7px;padding:15px;background:linear-gradient(transparent,#000b);opacity:0;transition:opacity .15s}
.iw-beauty-gallery .iw-beauty-caption strong{font-size:16px;font-weight:550;line-height:1.25}
.iw-beauty-gallery .iw-beauty-caption>span{font-size:12px;color:#fff}
.iw-beauty-gallery .iw-beauty-card:hover img{transform:scale(1.025)}
.iw-beauty-gallery .iw-beauty-card:hover .iw-beauty-caption,.iw-beauty-gallery .iw-beauty-card:focus-visible .iw-beauty-caption{opacity:1}
.iw-beauty-gallery .iw-beauty-card:focus-visible{outline:3px solid #ffb498;outline-offset:3px}
.iw-beauty-gallery .iw-beauty-card:disabled{opacity:.6;cursor:default}
@media(max-width:1100px) and (min-width:761px){.iw-beauty-gallery .iw-inspiration-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.iw-beauty-gallery .iw-inspiration-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.iw-beauty-gallery .iw-beauty-caption{opacity:1;padding:10px}.iw-beauty-gallery .iw-beauty-caption strong{font-size:13px}.iw-beauty-gallery .iw-beauty-caption>span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.iw-beauty-gallery .iw-beauty-card img,.iw-beauty-gallery .iw-beauty-caption{transition:none}.iw-beauty-gallery .iw-beauty-card:hover img{transform:none}}

/* User-requested compact existing Image Studio and prompt suggestions. */
.image-workbench .iw-simple-layout .iw-first-step-help{display:none}
.image-workbench .iw-simple-layout .iw-prompt-label{gap:8px;flex-wrap:wrap}
.image-workbench .iw-simple-layout .iw-prompt-label label{order:0}
.image-workbench .iw-simple-layout .iw-prompt-label>span{order:1;margin-left:auto}
.image-workbench .iw-simple-layout .iw-prompt-label .iw-suggest-prompt{order:2;display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;min-height:36px;border:1px solid #4b4540;border-radius:9px;background:#272420;color:#f5ddca;font-size:12px;white-space:nowrap;cursor:pointer}
.image-workbench .iw-simple-layout .iw-suggest-prompt:focus-visible{outline:2px solid #ffb498;outline-offset:3px}
.image-workbench .iw-simple-layout .iw-suggest-prompt:disabled{opacity:.5;cursor:default}
.image-workbench .iw-beauty-gallery.iw-inspiration-gallery .iw-inspiration-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media(min-width:901px){
.image-workbench .iw-simple-layout{align-items:stretch;gap:20px}
.image-workbench .iw-simple-layout>.iw-controls{padding:18px;min-height:500px}
.image-workbench .iw-simple-layout .iw-prompt-composer textarea{min-height:120px;height:120px}
.image-workbench .iw-simple-layout .iw-prompt-dock{margin-top:12px}
.image-workbench .iw-simple-layout .iw-model-picker summary{min-height:52px;padding:10px 14px}
.image-workbench .iw-simple-layout>.iw-main{align-self:stretch}
.image-workbench .iw-simple-layout .iw-result-section{display:flex;flex-direction:column;flex:1;min-height:0}
.image-workbench .iw-simple-layout .iw-canvas{flex:1;min-height:360px;max-height:none;aspect-ratio:auto}
}
@media(max-width:1100px) and (min-width:761px){.image-workbench .iw-beauty-gallery.iw-inspiration-gallery .iw-inspiration-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.image-workbench .iw-simple-layout .iw-canvas{min-height:260px;max-height:380px}.image-workbench .iw-simple-layout .iw-prompt-composer textarea{height:120px;min-height:120px}}
@media(max-width:760px){.image-workbench .iw-beauty-gallery.iw-inspiration-gallery .iw-inspiration-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.image-workbench .iw-beauty-gallery.iw-inspiration-gallery .iw-beauty-card{min-height:0}}

.image-workbench .iw-simple-layout .iw-prompt-label>.iw-ai-prompt-tools{order:2;margin-left:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px;max-width:100%}.image-workbench .iw-simple-layout .iw-ai-prompt-message{flex-basis:100%;max-width:36ch;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.5;color:#edc8ad}.image-workbench .iw-simple-layout .iw-prompt-undo{min-height:36px;padding:6px 9px;background:#252a2b;border:1px solid #485153;border-radius:8px;color:#f3e4d5;font-size:12px}

/* A single compact AI menu beside the prompt label. */
.image-workbench .iw-simple-layout .iw-prompt-label{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap}
.image-workbench .iw-simple-layout .iw-prompt-label>label{order:0;margin-right:auto}
.image-workbench .iw-simple-layout .iw-prompt-label>span:not(.iw-ai-prompt-tools){order:1}
.image-workbench .iw-simple-layout .iw-ai-prompt-tools{order:2;position:relative!important;display:inline-flex!important;align-items:center;gap:6px;margin:0!important;float:none!important;width:auto!important;max-width:100%}
.image-workbench .iw-simple-layout .iw-ai-prompt-tools>.iw-suggest-prompt{display:inline-flex;align-items:center;justify-content:center;width:36px;min-width:36px;min-height:36px;padding:6px;font-size:18px;margin:0!important}
.image-workbench .iw-simple-layout .iw-ai-prompt-menu{position:absolute;z-index:90;right:0;top:calc(100% + 8px);width:288px;max-width:calc(100vw - 42px);display:flex;flex-direction:column;padding:6px;border:1px solid #44494b;border-radius:12px;background:#1c2021;box-shadow:0 12px 36px #0008}
.image-workbench .iw-simple-layout .iw-ai-prompt-menu button{display:flex;flex-direction:column;gap:4px;align-items:flex-start;justify-content:center;width:100%;min-height:60px;text-align:left;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:#f2ebe1;white-space:normal}
.image-workbench .iw-simple-layout .iw-ai-prompt-menu button:hover,.image-workbench .iw-simple-layout .iw-ai-prompt-menu button:focus-visible{background:#35332f;outline:2px solid #e6a689;outline-offset:-2px}
.image-workbench .iw-simple-layout .iw-ai-prompt-menu strong{font-size:14px;font-weight:550}
.image-workbench .iw-simple-layout .iw-ai-prompt-menu small{font-size:12px;line-height:1.4;color:#b9bdbe}
.image-workbench .iw-simple-layout .iw-ai-upload-note{padding:6px 12px}
.image-workbench .iw-simple-layout .iw-community-draft-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.image-workbench .iw-simple-layout .iw-community-draft:empty{display:none!important}
.image-workbench .iw-simple-layout .iw-ai-prompt-message{position:absolute;right:0;top:calc(100% + 6px);z-index:80;display:block;width:260px;max-width:calc(100vw - 42px);padding:10px;background:#352923;border:1px solid #8c6250;border-radius:8px;white-space:normal;line-height:1.5}

/* Image Studio composer and media selector — 2026-11-05 */
@media(min-width:901px){
 .image-workbench .iw-simple-layout{grid-template-columns:minmax(360px,1fr) minmax(0,1fr);gap:20px;align-items:start}
 .image-workbench .iw-simple-layout>.iw-controls{min-height:0;padding:20px}
 .image-workbench .iw-simple-layout>.iw-main{align-self:start}
 .image-workbench .iw-simple-layout .iw-prompt-composer textarea{height:260px;min-height:220px;resize:vertical}
 .image-workbench .iw-simple-layout .iw-result-empty{flex:none}
 .image-workbench .iw-simple-layout .iw-result-empty .iw-canvas{height:clamp(280px,40vh,420px);min-height:280px;max-height:420px;flex:none;aspect-ratio:auto}
}
@media(max-width:900px){
 .image-workbench .iw-simple-layout{grid-template-columns:minmax(0,1fr);gap:18px}
 .image-workbench .iw-simple-layout .iw-prompt-composer textarea{height:220px;min-height:200px;resize:vertical;font-size:16px}
 .image-workbench .iw-simple-layout .iw-result-empty .iw-canvas{height:260px;min-height:220px;max-height:280px;flex:none;aspect-ratio:auto}
 .image-workbench .iw-simple-layout>.iw-controls{min-width:0;padding:16px}
}
.iw-media-dialog{box-sizing:border-box;width:min(980px,calc(100vw - 32px));max-height:88dvh;padding:0;border:1px solid #424748;border-radius:20px;background:#131617;color:#f4eee6;box-shadow:0 20px 80px #000a}
.iw-media-dialog::backdrop{background:#000b;backdrop-filter:blur(3px)}
.iw-media-dialog header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;gap:16px}
.iw-media-dialog h2{margin:0;font-size:23px}.iw-media-dialog button{font:inherit;color:inherit;cursor:pointer;min-height:44px}
.iw-media-dialog header button{width:44px;border:0;border-radius:10px;background:transparent;font-size:28px}
.iw-media-tabs{display:flex;border-bottom:1px solid #383c3d;padding:0 24px;gap:24px}
.iw-media-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:8px 0;color:#b9b9b5}
.iw-media-tabs button[aria-selected=true]{border-color:#f3ac88;color:#fff}
.iw-media-body{min-height:250px;max-height:48dvh;overflow:auto;padding:24px}
.iw-media-upload{display:flex;flex-wrap:wrap;gap:20px;align-items:start}
.iw-media-upload-tile{width:250px;min-height:180px!important;border:1px dashed #656967;border-radius:16px;background:#232728;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
.iw-media-upload-tile span{font-size:38px}.iw-media-upload-tile small{font-size:12px;color:#bdc3c3}
.iw-media-preview{width:250px;height:200px;object-fit:contain;border-radius:12px;background:#0c0e0f}
.iw-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.iw-media-asset{border:2px solid transparent;border-radius:12px;padding:0;overflow:hidden;background:#232729;aspect-ratio:1}
.iw-media-asset[aria-pressed=true]{border-color:#ffad85}.iw-media-asset img{display:block;width:100%;height:100%;object-fit:cover}
.iw-media-dialog footer{padding:16px 24px;border-top:1px solid #383c3d;display:flex;align-items:center;justify-content:space-between;gap:16px}
.iw-media-dialog footer small{font-size:12px;color:#b9c1c0;max-width:40ch}.iw-media-dialog footer>div{display:flex;gap:10px;flex-shrink:0}
.iw-media-dialog button:disabled{opacity:.5;cursor:default}.iw-media-dialog button:focus-visible{outline:2px solid #ffad85;outline-offset:2px}.iw-media-error{color:#ffbb9e}
@media(max-width:600px){.iw-media-dialog{width:calc(100vw - 16px);max-height:92dvh;border-radius:16px}.iw-media-dialog header{padding:12px 16px}.iw-media-tabs{padding:0 16px;gap:20px}.iw-media-body{padding:16px;max-height:48dvh;min-height:180px}.iw-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.iw-media-upload-tile,.iw-media-preview{width:100%}.iw-media-dialog footer{padding:12px 16px;flex-direction:column;align-items:stretch}.iw-media-dialog footer>div{justify-content:flex-end}.iw-media-dialog footer small{max-width:none}}

.iw-media-dialog .iw-media-asset{position:relative!important;display:block!important;padding:0!important;aspect-ratio:1;min-height:0!important;overflow:hidden;background:linear-gradient(110deg,#252b2d,#30383b,#252b2d);border:2px solid transparent;border-radius:12px}.iw-media-dialog .iw-media-asset img{position:absolute;inset:0;display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;opacity:0;transition:opacity .15s}.iw-media-dialog .iw-media-asset img[data-loaded=true]{opacity:1}.iw-media-dialog .iw-media-asset[aria-pressed=true]{border-color:#ffad85}.iw-media-dialog .iw-media-tabs button{padding:8px 0;border-radius:0}.iw-media-dialog .iw-media-asset:has(img[data-failed=true]):after{content:'Preview unavailable';position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:#aebbbb}@media(prefers-reduced-motion:reduce){.iw-media-dialog .iw-media-asset img{transition:none}}