/* Emma compact layout: shared storefront, admin and Live Editor. */
*,*::before,*::after{box-sizing:border-box}
img,video,svg{max-width:100%}
input,select,textarea,button{max-width:100%}
.container{width:min(1440px,calc(100% - 40px));margin-inline:auto}
.shop-filter-bar{gap:10px;align-items:center}.shop-filter-bar>*{min-width:0}
.product-grid{gap:18px}.product-grid>*{min-width:0}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #56649c;outline-offset:3px}
/* Each placement panel has its own natural height. */
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175{align-items:start!important;gap:10px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175>.compact-control-panel{align-self:start!important;height:auto!important;min-height:0!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-essentials-v175{align-items:start!important;gap:10px!important;grid-template-columns:minmax(0,1.2fr) minmax(230px,1fr)!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-control-panel{padding:10px!important;border-radius:12px!important;min-height:0!important;height:auto!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .sketch-mini-label{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;margin-bottom:7px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .sketch-mini-label b{font-size:12px!important;line-height:1.35!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .sketch-mini-label small{font-size:10px!important;line-height:1.4!important;overflow-wrap:anywhere!important;min-width:0!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-mode-choice,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-methods,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-placement-chips{display:flex!important;flex-wrap:wrap!important;gap:7px!important;align-items:center!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-mode-choice button,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-methods button,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-placement-chips button{flex:0 1 auto!important;width:auto!important;min-width:0!important;height:auto!important;min-height:40px!important;padding:9px 12px!important;font-size:12px!important;line-height:1.3!important;white-space:normal!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-mode-choice button b,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-methods button span b{font-size:12px!important;white-space:normal!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-finished-size{display:grid!important;grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr) minmax(70px,.85fr)!important;align-items:end!important;gap:6px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-finished-size label{min-width:0!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-finished-size label span{font-size:10px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-finished-size input,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-finished-size select{width:100%!important;min-width:0!important;height:40px!important;font-size:13px!important;padding:0 8px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .background-remove-tools{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important;margin-top:8px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .background-remove-tools button{width:auto!important;min-height:38px!important;padding:8px 11px!important;font-size:11px!important;margin:0!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .background-remove-tools label{margin:0!important;font-size:11px!important;gap:6px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .background-remove-tools select{height:34px!important;font-size:12px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .background-remove-tools>small{flex:1 0 100%!important;font-size:10px!important;line-height:1.4!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-file-picker{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-file-picker span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-file-picker button{flex-shrink:0!important;height:38px!important;font-size:11px!important;padding:8px 12px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .text-v17-row1{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .ps-line-colours{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;padding:8px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .ps-line-colours button{min-height:34px!important;font-size:12px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #textFinishedSizePanel{display:none!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .sketch-buybar{gap:10px!important;padding:10px 12px!important}
.pro-admin .two-fields>*{min-width:0}.pro-admin .field{min-width:0}.pro-admin .actions{display:flex;flex-wrap:wrap;gap:8px}.pro-admin .basic-stock-table-wrap{max-width:100%;overflow:auto}
@media(max-width:900px){
 .container{width:calc(100% - 24px)}
 .shop-filter-bar{display:flex;flex-wrap:wrap}.shop-filter-bar input[type=search]{flex:1 0 100%}.shop-filter-bar select{flex:1 1 160px}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.artwork-mode,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.text-mode,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.preset-mode{display:flex!important;flex-direction:column!important;gap:10px!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175>*{width:100%!important;min-width:0!important;max-width:100%!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-essentials-v175{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;width:100%!important}
}
@media(max-width:600px){
 .container{width:calc(100% - 24px)}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .collection-hero{padding-block:20px!important}.collection-hero h1{font-size:clamp(24px,7vw,32px)!important;line-height:1.2!important}
 .shop-filter-bar{gap:8px}.shop-filter-bar>*{max-width:100%}
 input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea{font-size:16px!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .sketch-controls{min-width:0!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .sketch-scroll{height:auto!important;max-height:none!important;overflow:visible!important;padding:10px!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-essentials-v175{grid-template-columns:minmax(0,1fr)!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .text-v17-row1{display:flex!important;flex-direction:column!important;gap:10px!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .text-v17-row1>*{width:100%!important;min-width:0!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-mode-choice button,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-methods button,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-placement-chips button{min-height:44px!important;padding:10px 12px!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-finished-size input,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-finished-size select{font-size:16px!important;height:44px!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .sketch-buybar{position:sticky!important;bottom:0!important;padding-bottom:max(10px,env(safe-area-inset-bottom))!important;grid-template-columns:minmax(75px,.6fr) minmax(0,1.4fr)!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .sketch-buybar button{min-height:44px!important;min-width:0!important;white-space:normal!important;font-size:13px!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #liveDesignSize{gap:6px!important;padding:8px!important}
 .pro-admin .two-fields,.pro-admin .basic-variation-card .two-fields{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 .pro-admin .actions .btn{min-height:44px}.pro-admin .basic-image-upload-grid{grid-template-columns:minmax(0,1fr)!important}
}
/* Final compact inspector layout. IDs deliberately override older editor themes. */
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .sketch-controls{container-type:inline-size!important;background:#fff!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .sketch-scroll{background:#fff!important;padding:12px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .ps-block{padding:12px 0!important;margin:0!important;border-bottom:1px solid #e7e9ef!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .ps-block-head{margin:0 0 10px!important;min-height:0!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .ps-block-head>span{width:28px!important;height:28px!important;min-width:28px!important;border-radius:7px!important;font-size:11px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .ps-block-head b{font-size:13px!important;line-height:1.3!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .ps-block-head small{font-size:10px!important;line-height:1.4!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-control-panel{background:#fff!important;border:1px solid #e3e7ed!important;border-radius:8px!important;padding:8px!important;box-shadow:none!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.text-mode,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.preset-mode{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:start!important;gap:8px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.text-mode .placement-essentials-v175{display:block!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.artwork-mode{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)!important;align-items:start!important;gap:8px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.artwork-mode>.placement-essentials-v175{grid-column:1 / -1!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important}
body.customizer-page-mode #slotPlacementPanel{width:100%!important;min-width:0!important}
body.customizer-page-mode #slotPlacementChoices{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:5px!important}
body.customizer-page-mode #slotPlacementChoices button{width:auto!important;flex:0 1 auto!important;min-width:0!important;min-height:32px!important;height:auto!important;padding:6px 9px!important;font-size:11px!important;line-height:1.25!important;border-radius:6px!important;white-space:normal!important;margin:0!important}
body.customizer-page-mode #slotPlacementChoices button[hidden]{display:none!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-mode-choice{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:5px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-mode-choice button{width:auto!important;min-width:0!important;min-height:34px!important;height:auto!important;padding:6px 9px!important;flex:0 1 auto!important;gap:6px!important;font-size:11px!important;border-radius:6px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-mode-choice button b{font-size:11px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-mode-choice button>span:first-child{width:22px!important;height:22px!important;min-width:22px!important;font-size:11px!important;border-radius:5px!important}
body.customizer-page-mode #artworkTopUploadPanel{min-height:0!important;align-self:start!important}
body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools{gap:5px!important;margin-top:6px!important}
body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools button{width:auto!important;min-width:0!important;min-height:32px!important;height:auto!important;padding:6px 9px!important;font-size:10px!important;line-height:1.3!important;border-radius:6px!important}
body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools>small{font-size:9px!important;line-height:1.4!important;margin:0!important}
body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools label{font-size:10px!important}
body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools select{height:30px!important;font-size:11px!important;padding:3px 6px!important;border-radius:6px!important}
body.customizer-page-mode #dynamicArtworkSlot .emma-ai-icon{font-size:15px!important;margin-right:5px!important}
body.customizer-page-mode #slotTextFields{padding-top:8px!important;margin-top:8px!important}
body.customizer-page-mode #slotTextFields .text-v17-row1{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;align-items:start!important}
body.customizer-page-mode #slotTextFields .text-v17-message textarea{height:64px!important;min-height:64px!important;padding:8px!important;font-size:13px!important;border-radius:7px!important}
body.customizer-page-mode #fontPickerButton{min-height:36px!important;height:auto!important;padding:8px 10px!important;border-radius:7px!important;font-size:12px!important}
body.customizer-page-mode #fontPickerLabel{font-size:12px!important}
body.customizer-page-mode #slotTextFields .font-live-meta{margin-top:4px!important}
body.customizer-page-mode #slotTextFields .text-v17-row2{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;margin-top:8px!important}
body.customizer-page-mode #slotTextFields .text-v17-size{display:none!important}
body.customizer-page-mode #primaryTextAlign button{min-height:32px!important;width:auto!important;padding:6px 9px!important;font-size:11px!important}
body.customizer-page-mode #primaryTextColor{width:38px!important;height:32px!important;padding:3px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-methods button{min-height:32px!important;width:auto!important;padding:6px 10px!important;font-size:11px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-methods button span b{font-size:11px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .common-final-note-panel{margin-top:8px!important}
@container(max-width:620px){
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.text-mode,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.preset-mode,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.artwork-mode{display:flex!important;flex-direction:column!important;gap:8px!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175>*{width:100%!important;min-width:0!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.artwork-mode>.placement-essentials-v175{grid-template-columns:minmax(0,1fr)!important}
 body.customizer-page-mode #slotTextFields .text-v17-row1{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:600px){
 body.customizer-page-mode #slotPlacementChoices button,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-mode-choice button,
 body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools button,
 body.customizer-page-mode #primaryTextAlign button{min-height:44px!important;font-size:12px!important;padding:9px 11px!important}
 body.customizer-page-mode #fontPickerButton{min-height:44px!important}
 body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools select{height:40px!important;font-size:16px!important}
 body.customizer-page-mode #slotTextFields .text-v17-message textarea{font-size:16px!important}
 body.customizer-page-mode #slotTextFields .text-v17-row1{grid-template-columns:minmax(0,1fr)!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.artwork-mode>.placement-essentials-v175{grid-template-columns:minmax(0,1fr)!important}
}
/* Text inspector: Text | Font | Alignment + colour, aligned at the top. */
@container(min-width:700px){
 body.customizer-page-mode #slotTextFields:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(230px,.85fr)!important;align-items:start!important;gap:12px!important}
 body.customizer-page-mode #slotTextFields .text-v17-row1{display:contents!important}
 body.customizer-page-mode #slotTextFields .text-v17-message{grid-column:1!important;margin:0!important;min-width:0!important}
 body.customizer-page-mode #slotTextFields .font-picker-field{grid-column:2!important;margin:0!important;min-width:0!important}
 body.customizer-page-mode #slotTextFields .text-v17-row2{grid-column:3!important;display:flex!important;align-items:flex-start!important;flex-wrap:wrap!important;gap:8px!important;margin:0!important;min-width:0!important}
 body.customizer-page-mode #slotTextFields .text-v17-message textarea{height:64px!important;min-height:64px!important}
 body.customizer-page-mode #slotTextFields .ps-input>span,
 body.customizer-page-mode #primaryTextAlign>span{display:block!important;margin-bottom:6px!important;line-height:16px!important;font-size:11px!important}
 body.customizer-page-mode #primaryTextAlign{margin:0!important;padding:0!important;min-width:0!important}
 body.customizer-page-mode #primaryTextAlign>div{display:flex!important;gap:4px!important}
 body.customizer-page-mode #primaryTextAlign button{padding:6px 8px!important;font-size:11px!important;min-width:0!important}
 body.customizer-page-mode #slotTextFields .text-v17-fill{margin:0!important;min-width:0!important}
 body.customizer-page-mode #fontPickerMenu{width:min(320px,100%)!important;min-width:0!important}
}
@container(max-width:699px){
 body.customizer-page-mode #slotTextFields:not([hidden]){display:block!important}
 body.customizer-page-mode #slotTextFields .text-v17-row1{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
}
/* Artwork tools share one compact horizontal row. */
@container(min-width:700px){
 body.customizer-page-mode #dynamicArtworkSlot{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important}
 body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker{display:contents!important}
 body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker>button{height:32px!important;min-height:32px!important;padding:6px 9px!important;font-size:10px!important}
 body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker>span{order:3!important;flex:1 0 100%!important;font-size:9px!important}
 body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools{display:contents!important}
 body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools>button{height:32px!important;min-height:32px!important;padding:6px 8px!important;font-size:10px!important;flex:0 0 auto!important}
 body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools>label{display:inline-flex!important;align-items:center!important;gap:4px!important;font-size:10px!important;margin:0!important;flex:0 0 auto!important}
 body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools>label select{width:85px!important;min-width:0!important;height:32px!important;font-size:11px!important}
 body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools>small{order:4!important;flex:1 0 100%!important;margin:0!important;font-size:9px!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.artwork-mode{grid-template-columns:minmax(190px,.65fr) minmax(0,1.35fr)!important}
}
@container(max-width:699px){
 body.customizer-page-mode #dynamicArtworkSlot{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important}
 body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker{display:contents!important}
 body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker>span{order:3!important;flex:1 0 100%!important}
 body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools{display:contents!important}
 body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools>small{order:4!important;flex:1 0 100%!important}
}
/* Artwork upload: only three equal buttons in one box. */
body.customizer-page-mode #dynamicArtworkSlot{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;width:100%!important;min-width:0!important}
body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker,
body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools{display:contents!important}
body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker>span{display:none!important}
body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker>button,
body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools>button{width:100%!important;min-width:0!important;height:auto!important;min-height:40px!important;margin:0!important;padding:8px 6px!important;font-size:11px!important;line-height:1.3!important;border-radius:7px!important;white-space:normal!important;display:flex!important;justify-content:center!important;align-items:center!important}
body.customizer-page-mode #dynamicArtworkSlot .emma-ai-icon{flex-shrink:0!important;font-size:14px!important;margin-right:4px!important}
@media(max-width:600px){
 body.customizer-page-mode #dynamicArtworkSlot{gap:6px!important}
 body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker>button,
 body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools>button{min-height:44px!important;font-size:11px!important;padding:8px 4px!important}
}
/* Uniform action dimensions matching Personalisation controls. */
body.customizer-page-mode #dynamicArtworkSlot{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;align-items:center!important}
body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker>button,
body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools>button,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-mode-choice button,
body.customizer-page-mode #slotPlacementChoices button{height:40px!important;min-height:40px!important;padding:6px 10px!important;font-size:12px!important;line-height:1.2!important;border-radius:7px!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important}
body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker>button,
body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools>button{font-size:11px!important;padding:6px 7px!important;gap:0!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-mode-choice{flex-direction:row!important;align-items:center!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-essentials-v175{align-items:start!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-finished-size input,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-finished-size select{height:40px!important;min-height:40px!important;padding:6px 9px!important;font-size:13px!important;border-radius:7px!important}
@container(max-width:460px){
 body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker>button,
 body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools>button{white-space:normal!important;font-size:10px!important;height:44px!important;min-height:44px!important;padding:5px!important}
}
@media(max-width:600px){
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-mode-choice button,
 body.customizer-page-mode #slotPlacementChoices button{height:44px!important;min-height:44px!important}
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-finished-size input,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-finished-size select{height:44px!important;min-height:44px!important;font-size:16px!important}
}
/* Restore small content-width artwork buttons. */
body.customizer-page-mode #dynamicArtworkSlot{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important;width:100%!important}
body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker>button,
body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools>button{flex:0 0 auto!important;width:auto!important;min-width:0!important;height:34px!important;min-height:34px!important;padding:6px 10px!important;font-size:11px!important;line-height:1.2!important;white-space:nowrap!important;border-radius:7px!important}
body.customizer-page-mode #dynamicArtworkSlot .emma-ai-icon{font-size:14px!important;margin-right:5px!important}
@media(max-width:600px){
 body.customizer-page-mode #dynamicArtworkSlot{gap:6px!important}
 body.customizer-page-mode #dynamicArtworkSlot .compact-file-picker>button,
 body.customizer-page-mode #dynamicArtworkSlot .background-remove-tools>button{width:auto!important;flex:0 0 auto!important;height:38px!important;min-height:38px!important;padding:7px 9px!important;font-size:11px!important}
}

/* One compact action row: mode choices followed by artwork actions. */
body.customizer-page-mode .personalisation-action-row{display:contents}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .placement-setup-v175.artwork-mode>.personalisation-action-row{display:flex!important;grid-column:1 / -1!important;width:100%!important;min-width:0!important;align-items:center!important;gap:7px!important;overflow-x:auto!important;padding:8px!important;border:1px solid #e3e7ed;border-radius:8px;background:#fff}
body.customizer-page-mode .placement-setup-v175.artwork-mode .personalisation-action-row>.compact-control-panel{display:contents!important}
body.customizer-page-mode .placement-setup-v175.artwork-mode .personalisation-action-row>.compact-control-panel>.sketch-mini-label{display:none!important}
body.customizer-page-mode .placement-setup-v175.artwork-mode #decorationModeChoice,
body.customizer-page-mode .placement-setup-v175.artwork-mode #dynamicArtworkSlot{display:contents!important}
body.customizer-page-mode .placement-setup-v175.artwork-mode #decorationModeChoice button,
body.customizer-page-mode .placement-setup-v175.artwork-mode #dynamicArtworkSlot button{flex:0 0 auto!important;width:auto!important;height:36px!important;min-height:36px!important;padding:6px 10px!important;margin:0!important;font-size:11px!important;line-height:1.2!important;white-space:nowrap!important;border-radius:7px!important}
body.customizer-page-mode .placement-setup-v175.artwork-mode #decorationModeChoice button b{font-size:11px!important}
body.customizer-page-mode .placement-setup-v175.artwork-mode #decorationModeChoice button i{font-size:12px!important}
@media(max-width:600px){body.customizer-page-mode .placement-setup-v175.artwork-mode .personalisation-action-row button{height:44px!important;min-height:44px!important}}

/* Keep the action wrapper in the first column in every editor state. */
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #placementFormRow1>.personalisation-action-row{display:block!important;grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;align-self:start!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #placementFormRow1.empty-mode{display:block!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #placementFormRow1.empty-mode>.placement-essentials-v175{display:none!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #placementFormRow1.empty-mode .personalisation-panel{width:100%!important;box-sizing:border-box!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #placementFormRow1.artwork-mode>.personalisation-action-row{display:flex!important;grid-column:1 / -1!important;flex-wrap:nowrap!important;justify-content:flex-start!important;align-items:center!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #decorationModeChoice{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:6px!important;overflow-x:auto!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #placementFormRow1.artwork-mode #decorationModeChoice{display:contents!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #decorationModeChoice button,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #dynamicArtworkSlot button,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #slotPlacementChoices button,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #addPlacementChoices button,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .sketch-head-btn,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .compact-methods button,
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #primaryTextAlign button{width:auto!important;flex:0 0 auto!important;min-width:0!important;height:32px!important;min-height:32px!important;padding:5px 9px!important;font-size:11px!important;line-height:1.2!important;white-space:nowrap!important;border-radius:7px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #decorationModeChoice button b{font-size:11px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #decorationModeChoice button i{width:18px!important;height:18px!important;font-size:10px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #addPlacementChoices{display:flex!important;gap:6px!important;flex-wrap:wrap!important;justify-content:flex-start!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .sketch-buybar button{min-height:40px!important;padding:8px 12px!important;font-size:12px!important}
body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #artworkTopUploadPanel[hidden]{display:none!important}
@media(max-width:600px){
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #decorationModeChoice button,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #dynamicArtworkSlot button,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #slotPlacementChoices button,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 #addPlacementChoices button,
 body.customizer-page-mode .tn-editor-v175.tn-editor-v176 .sketch-head-btn{height:38px!important;min-height:38px!important}
}
