/* Shared compact controls for props, masks and figures. The existing icon registry
   and UI decorator retain ownership of all action icons. Native rows own previews.
   vpl-mini is the existing first layer, including on the mobile manager path. */
@layer vpl-mini {
html.vpr-ui #vpl-app#vpl-app .creative-product-controls {
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;
 gap:10px!important;padding:12px!important;min-width:0!important;
}
html.vpr-ui #vpl-app#vpl-app .creative-product-controls :is(h3,p) {margin:0!important}
html.vpr-ui #vpl-app#vpl-app .creative-product-controls h3 {font:600 14px/1.4 system-ui!important}
html.vpr-ui #vpl-app#vpl-app :is(.creative-product-controls,.creative-view-bar) button,
html.vpr-ui #vpl-app#vpl-app .creative-manual-edit,
html.vpr-ui #vpl-app#vpl-app .creative-manual-edit>summary {
 background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
 color:var(--vpr-ink,#263244)!important;
}
html.vpr-ui #vpl-app#vpl-app .creative-product-controls button {margin:0!important;outline:none!important;transform:none!important}
html.vpr-ui #vpl-app#vpl-app .creative-product-controls :is(button,summary):focus-visible {
 outline:2px solid var(--vpr-accent,#2563c7)!important;outline-offset:2px!important;
}
html.vpr-ui #vpl-app#vpl-app .creative-product-controls :is(.creative-source-actions,.creative-save-actions,.creative-edit-actions) {
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;
 padding:0!important;margin:0!important;border:0!important;background:transparent!important;min-width:0!important;
}
html.vpr-ui #vpl-app#vpl-app .creative-product-controls .creative-save-actions {padding-top:6px!important}
html.vpr-ui #vpl-app#vpl-app .creative-product-controls button[data-product-icon] {
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 position:relative!important;width:100%!important;min-width:0!important;max-width:100%!important;
 flex:0 1 auto!important;height:auto!important;min-height:54px!important;padding:5px 2px!important;
 gap:5px!important;font:500 11px/1.25 system-ui!important;text-align:center!important;white-space:normal!important;
}
html.vpr-ui #vpl-app#vpl-app .creative-product-controls button[data-vpr-tool] {font-size:0!important;line-height:0!important}
html.vpr-ui #vpl-app#vpl-app .creative-product-controls button[data-vpr-tool]::after {
 content:''!important;position:static!important;display:block!important;order:0!important;width:24px!important;height:24px!important;flex:none!important;
}
html.vpr-ui #vpl-app#vpl-app .creative-product-controls button[data-vpr-tool]::before {
 content:attr(data-vpr-caption)!important;display:block!important;position:static!important;order:1!important;
 width:auto!important;height:auto!important;min-width:0!important;max-width:100%!important;padding:0!important;
 background:none!important;border:0!important;box-shadow:none!important;
 font:500 11px/1.25 system-ui!important;color:inherit!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
html.vpr-ui #vpl-app#vpl-app .creative-product-controls .creative-size-grid {
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:8px 0!important;
}
html.vpr-ui #vpl-app#vpl-app .creative-size-grid label {font:500 11px/1.35 system-ui!important;min-width:0!important}
html.vpr-ui #vpl-app#vpl-app .creative-size-grid :is(input,select) {height:34px!important;min-height:34px!important;font-size:12px!important}
html.vpr-ui #vpl-app#vpl-app .creative-manual-edit {padding:0!important;margin:4px 0 0!important;min-height:0!important}
html.vpr-ui #vpl-app#vpl-app .creative-manual-edit>summary {padding:8px 0!important;min-height:32px!important;font:500 12px/1.35 system-ui!important}
html.vpr-ui #vpl-app#vpl-app .creative-order-list {display:grid!important;gap:0!important;padding:0!important;background:transparent!important}
html.vpr-ui #vpl-app#vpl-app .creative-order-item {
 position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 32px!important;
 align-items:center!important;gap:6px!important;padding:5px 0!important;margin:0!important;
 background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
html.vpr-ui #vpl-app#vpl-app .creative-order-item[data-selected=true]::before {
 content:'';position:absolute;left:0;top:10px;bottom:10px;width:2px;background:var(--vpr-accent,#2563c7);
}
html.vpr-ui #vpl-app#vpl-app .creative-order-item .creative-item-select {
 display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;
 grid-column:1!important;grid-row:1!important;gap:8px!important;padding:3px 4px 3px 8px!important;
 width:100%!important;min-width:0!important;min-height:50px!important;height:auto!important;overflow:hidden!important;text-align:left!important;
}
html.vpr-ui #vpl-app#vpl-app .creative-item-select img {
 display:block!important;width:34px!important;height:44px!important;object-fit:contain!important;
 background:transparent!important;border:0!important;border-radius:0!important;margin:0!important;
}
html.vpr-ui #vpl-app#vpl-app .creative-item-info {display:grid!important;gap:3px!important;min-width:0!important}
html.vpr-ui #vpl-app#vpl-app .creative-item-info strong {display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font:500 12px/1.35 system-ui!important}
html.vpr-ui #vpl-app#vpl-app .creative-item-info small {display:block!important;grid-area:auto!important;padding:0!important;font:400 10px/1.35 system-ui!important;color:var(--vpr-muted,#657083)!important;white-space:normal!important}
html.vpr-ui #vpl-app#vpl-app .creative-item-select[aria-pressed=true] strong {font-weight:650!important;color:var(--vpr-accent,#2563c7)!important}
html.vpr-ui #vpl-app#vpl-app .creative-order-item .creative-delete {
 display:flex!important;align-items:center!important;justify-content:center!important;grid-column:2!important;grid-row:1!important;
 width:32px!important;height:40px!important;min-width:32px!important;min-height:40px!important;padding:0!important;font:22px/1 system-ui!important;color:#78818d!important;
}
html.vpr-ui #vpl-app#vpl-app .creative-order-item :is(.creative-item-select,.creative-delete)::before,
html.vpr-ui #vpl-app#vpl-app .creative-order-item :is(.creative-item-select,.creative-delete)::after {content:none!important;display:none!important}
html.vpr-ui #vpl-app#vpl-app .creative-product-controls[hidden][hidden],
html.vpr-ui #vpl-app#vpl-app .creative-product-controls [hidden][hidden] {display:none!important}
/* Keep product navigation and price in a content-sized row above the canvas. */
html.vpr-ui #vpl-app#vpl-app.photo-props-product .creative-view-bar {
 height:auto!important;min-height:44px!important;align-content:start!important;align-items:center!important;
 padding:5px 12px!important;gap:6px!important;margin:0!important;
}
html.vpr-ui #vpl-app#vpl-app.photo-props-product .creative-view-bar button {
 height:34px!important;min-height:34px!important;padding:4px 8px!important;font:500 12px/1.3 system-ui!important;
}
html.vpr-ui #vpl-app#vpl-app.photo-props-product .creative-main-actions {
 height:auto!important;min-height:0!important;align-items:center!important;align-content:start!important;margin-block:0!important;padding:0!important;
}
html.vpr-ui #vpl-app#vpl-app.photo-props-product .photo-prop-order-summary {
 height:auto!important;min-height:0!important;align-items:center!important;padding:0!important;
}
@media(min-width:1101px) {
 html.vpr-ui #vpl-app#vpl-app.photo-props-product .creative-view-bar {flex-wrap:nowrap!important}
 html.vpr-ui #vpl-app#vpl-app.photo-props-product .creative-view-bar>button {flex:0 0 auto!important;white-space:nowrap!important;width:auto!important}
 html.vpr-ui #vpl-app#vpl-app.photo-props-product .creative-main-actions {flex:0 0 auto!important;flex-wrap:nowrap!important;margin-left:auto!important}
}
@media (pointer:coarse) {
 html.vpr-ui #vpl-app#vpl-app .creative-order-item {grid-template-columns:minmax(0,1fr) 44px!important}
 html.vpr-ui #vpl-app#vpl-app .creative-order-item .creative-delete {width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important}
}
}
