#pfDesignProducts{color:var(--app-text,#16383d);margin:8px 0;padding:10px 14px;border:1px solid var(--border,#64737b);border-radius:10px;background:var(--app-panel,#eef3f2)}#pfDesignProducts[hidden]{display:none}.dp-title,.dp-actions,[data-products]{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.dp-title{justify-content:space-between;font-size:12px;margin-bottom:6px}[data-products]{margin-bottom:6px}.dp-product{display:flex;gap:8px;align-items:center;max-width:230px;text-align:left}.dp-product img{width:42px;height:38px;object-fit:contain;border-radius:4px}.dp-product[aria-pressed=true],#dpLayoutDialog button[aria-pressed=true]{outline:2px solid #23c9c9;background:#145a62;color:white}#pfDesignProducts p{font-size:12px;margin:5px 0 0}.dp-actions button{font-size:12px}#dpLayoutDialog{width:min(1200px,96vw);max-height:94vh;box-sizing:border-box}#dpLayoutDialog header,#dpLayoutDialog footer{display:flex;justify-content:space-between;gap:12px;align-items:center}#dpLayoutDialog .dp-layout{display:grid;grid-template-columns:190px minmax(240px,1fr) 240px;gap:18px}#dpLayoutDialog [data-layout-list] button{display:block;width:100%;margin:5px 0;text-align:left}#dpLayoutDialog [data-layout-fields]{max-height:62vh;overflow-y:auto}#dpLayoutDialog label{display:block;margin:8px 0;font-size:13px}#dpLayoutDialog label input,#dpLayoutDialog label select{width:100%;box-sizing:border-box}#dpLayoutPlan{width:100%;height:440px;max-height:60vh;background:#eef4f2;border:1px solid #96aaa9;border-radius:10px;touch-action:none}#dpLayoutPlan [data-product]{cursor:grab}#dpLayoutPlan text{pointer-events:none;fill:#153f45}#dpLayoutDialog [data-layout-status]{font-size:13px}.dp-window-projection{pointer-events:none}.dp-window-projection text{fill:#065c69;font-weight:600}.dp-window-note{background:#dbeeed;color:#17434a;border-radius:6px;padding:8px;font-size:12px}@media(max-width:800px){#dpLayoutDialog .dp-layout{grid-template-columns:1fr}#dpLayoutPlan{height:260px}#dpLayoutDialog [data-layout-fields]{max-height:none}.dp-actions button{flex:1}#pfDesignProducts{margin:4px;padding:8px}}

#pfDesignProducts .dp-product{width:100%;max-width:none}#pfDesignProducts .dp-actions{display:grid;grid-template-columns:1fr 1fr}#pfDesignProducts .dp-actions button{padding:7px;font-size:11px}

#pfBoxEditor #beFields .dp-window-note,#pfBoxEditor #beFields .dp-window-note p,#pfBoxEditor #beFields .dp-window-note strong,#pfBoxEditor #beFields .dp-window-note label{color:#17434a!important;font-size:12px!important;line-height:1.4!important}#pfBoxEditor #beFields .dp-window-note{padding:10px!important;background:#dbeeed!important}#pfBoxEditor #beFields .dp-window-note p{margin:6px 0!important}#pfBoxEditor #beFields .dp-window-note label{display:flex!important;gap:7px!important;align-items:center!important;margin:8px 0!important;padding:0!important;min-height:0!important}#pfBoxEditor #beFields .dp-window-note input{width:auto!important;height:auto!important;min-height:0!important;margin:0!important;flex:none!important}

#dpLayoutDialog input[aria-invalid="true"]{border:2px solid #df8b82;background:#583b3b;color:#fff}

#dpLayoutDialog footer{justify-content:flex-end;flex-wrap:wrap}
#dpLayoutDialog .dp-views{display:flex;gap:4px;margin-bottom:6px}
#dpLayoutDialog .dp-views button{flex:1;min-height:36px}
#dpLayoutDialog button[data-tray]{width:100%;min-height:40px;margin-top:6px}
#dpLayoutDialog button[data-tray]:not(:disabled){background:#62e9df;color:#10232b}
#dpLayoutDialog [data-cradles]{margin-top:8px;width:100%}
body[data-pf-creative=true] #dpLayoutDialog :is([data-tray][aria-pressed=false],[data-grow]):not(:disabled){background:#62e9df!important;color:#10232b!important;border-color:#7af2e8!important}
@media(max-width:600px){#dpLayoutDialog .dp-layout{grid-template-columns:minmax(0,1fr);gap:9px}#dpLayoutDialog footer{position:sticky;bottom:0;padding:8px 0}#dpLayoutDialog footer button{min-height:42px;flex:1 1 130px}#dpLayoutDialog [data-cradles]{min-height:40px}#dpLayoutPlan{height:205px}}

/* Persistent document tabs; the inspector contains only actions for the active product. */
#pfDesignProducts{flex:none;display:flex;align-items:center;gap:8px;margin:0;padding:5px 8px;border:0;border-bottom:1px solid var(--border,#64737b);border-radius:0;background:var(--app-panel,#eef3f2);min-width:0;z-index:4}
#pfDesignProducts[hidden],#dpProductTools[hidden]{display:none!important}
#pfDesignProducts [data-products]{display:flex;align-items:stretch;flex:1;min-width:0;gap:4px;overflow-x:auto;flex-wrap:nowrap;margin:0;padding:2px;scrollbar-width:thin}
#pfDesignProducts .dp-product,#pfDesignProducts .dp-group{display:flex;flex:none;align-items:center;gap:6px;width:auto;max-width:210px;white-space:nowrap;padding:5px 10px;min-height:32px;font-size:12px;border-radius:5px;border:1px solid var(--border,#64737b)}
#pfDesignProducts .dp-chip{display:inline-flex;align-items:stretch;flex:none;min-width:0}
#pfDesignProducts .dp-chip .dp-product{border-radius:5px 0 0 5px}
#pfDesignProducts .dp-close{border-radius:0 5px 5px 0;padding:0 7px;min-width:28px;line-height:1;font-size:17px}
#pfDesignProducts .dp-close:focus-visible,#pfDesignProducts .dp-close:hover{outline:1px solid #62e9df;color:#62e9df}
@media(max-width:700px){#pfDesignProducts .dp-close{min-width:36px;min-height:36px}}
#pfDesignProducts .dp-product span{overflow:hidden;text-overflow:ellipsis}
#pfDesignProducts .dp-product img{width:26px;height:24px}
#pfDesignProducts [role=tab][aria-selected=true]{background:#12646c;color:white;outline:2px solid #28c9cc;outline-offset:-2px}
#pfDesignProducts .dp-product[data-editing=true]{border-bottom:3px solid #28c9cc}
#pfDesignProducts #dpAdd{flex:none;font-size:12px;padding:7px 10px;min-height:34px}
#dpProductTools{border:1px solid var(--border,#64737b);border-radius:8px;margin:8px 0;padding:10px;background:var(--app-panel,#eef3f2);color:var(--app-text,#16383d)}
#dpProductTools strong{font-size:12px;display:block;margin-bottom:8px}#dpProductTools .dp-actions{display:flex;gap:5px;flex-wrap:wrap}#dpProductTools button{font-size:11px;padding:6px}#dpProductTools p{font-size:11px;line-height:1.45;margin:8px 0 0}
@media(max-width:700px){#pfDesignProducts{padding:4px;gap:4px}#pfDesignProducts #dpAdd{max-width:104px;white-space:normal;font-size:11px}#pfDesignProducts .dp-product{max-width:150px}}

#dpProductTools .dp-actions{display:grid;grid-template-columns:1fr 1fr}#dpArrange{grid-column:1/-1}#dpProductTools button{margin:0;min-width:0}

@media(min-width:701px){#pfDesignProducts{padding:3px 6px}#pfDesignProducts [data-products]{padding:0}#pfDesignProducts .dp-product,#pfDesignProducts .dp-group{min-height:28px;padding:4px 9px}#pfDesignProducts #dpAdd{min-height:30px;padding:5px 9px}}

#dpLayoutDialog [data-extra-supports]{margin:10px 0;padding:6px 8px;min-width:0}
#dpLayoutDialog [data-extra-supports] label{display:flex;gap:6px;align-items:baseline}
#dpLayoutDialog [data-extra-supports] input{width:auto;flex:none}
