/* Shared media control panel: existing fields, validation and credit flow. */
.image-workspace .media-controls{--control-space:16px}
.image-workspace .media-controls>label{font-size:13px;font-weight:600;margin-block:16px 7px}
.image-workspace .media-controls>textarea{width:100%;min-height:150px!important;padding:14px!important;line-height:1.65;font-size:14px;border-radius:10px;resize:vertical}
.image-workspace .media-controls .provider-model-trigger{min-height:64px}
.image-workspace .media-controls :is(.workshop-operations,.image-mode-switch){margin-block:14px;gap:4px;padding:4px;border-radius:10px}
.image-workspace .media-controls :is(.workshop-operations,.image-mode-switch)>button{min-height:44px;padding:8px;font-size:13px;line-height:1.4}
.image-workspace .image-references{margin-block:16px;padding:0;border:0;background:transparent}
.image-workspace .image-ref-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.image-workspace .image-ref-heading h3{font-size:13px;margin:0}
.image-workspace .image-ref-actions{justify-content:flex-start;margin:8px 0}
.image-workspace .image-ref-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(126px,1fr));gap:10px;container-type:normal}
.image-workspace .image-ref-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:6px;border-radius:10px;background:var(--surface2,var(--surface-2))}
.image-workspace .image-ref-card>img{width:100%;height:104px;object-fit:cover;border-radius:6px}
.image-workspace .image-ref-card>.reference-copy{gap:3px;padding-inline:3px}
.image-workspace .image-ref-card>.reference-copy strong{font-size:12px;color:var(--accent2,var(--ink))}
.image-workspace .image-ref-card>.reference-copy small{font-size:11px}
.image-workspace .image-ref-card>.reference-actions{display:flex;justify-content:center;gap:0;margin:0}
.image-workspace .image-ref-card>.reference-actions .icon-action{width:36px!important;min-width:36px;height:44px!important;padding:9px!important}
.image-workspace .control-reference-chips{display:flex;flex-wrap:wrap;gap:6px;margin-block:8px}
.image-workspace .control-reference-chips:empty{display:none}
.image-workspace .control-reference-chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:5px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface2,var(--surface));color:var(--accent2,var(--ink));font:600 12px/1.4 var(--font-body,system-ui)}
.control-reference-chip img{width:26px;height:26px;object-fit:cover;border-radius:4px}
.image-workspace .workshop-launch{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,1fr);gap:8px;align-items:center}
.image-workspace .workshop-launch>.workshop-price{grid-column:1;margin:0;display:block}
.image-workspace .workshop-launch>.workshop-price>span{display:grid;gap:2px;font-size:11px}
.image-workspace .workshop-launch>.workshop-price strong{font-size:15px}
.image-workspace .workshop-launch>.btn{grid-column:2;grid-row:1;min-height:44px;font-size:13px}
.image-workspace .workshop-launch>:is(.workshop-feedback,.notification-task,.workshop-verify){grid-column:1/-1}
.image-workspace .workshop-launch>.workshop-feedback:empty{display:none}
.image-workspace .workshop-price-info>summary{font-size:11px}
.image-workspace .video-studio-basics{grid-template-columns:repeat(2,minmax(0,1fr))}
.image-workspace :is(.video-studio-field,.image-size-controls>div){min-width:0}
@media(max-width:760px){
 .image-workspace .media-controls>h2{font-size:18px;margin-bottom:14px}
 .image-workspace .media-controls>textarea{font-size:16px;min-height:145px!important}
 .image-workspace .image-ref-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .image-workspace .workshop-launch{grid-template-columns:minmax(0,.8fr) minmax(145px,1.2fr);gap:6px}
 .image-workspace .workshop-launch>.btn{padding:10px 8px!important;white-space:normal}
}
