.customer-design [hidden]{display:none!important}.pl-nav{display:flex;gap:8px;padding:12px 24px;border-bottom:1px solid #F6F1E7}.pl-nav button,.pl-zones button{font-family:inherit;background:white;color:#20211F;border:1px solid #E8DEC9;border-radius:9px;padding:9px 13px;cursor:pointer}.pl-nav button[aria-pressed=true]{border-color:#DF2935;color:#DF2935;background:#FFFFFF}.pl-panel{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:24px;padding:20px;overflow:auto;flex:1;min-height:0}.pl-stage{text-align:center;background:#F6F1E7;border-radius:14px}.pl-stage canvas{width:100%;max-height:53vh;object-fit:contain}.pl-stage p{font-size:11px;padding:0 15px}.pl-tools h3{margin:0}.pl-tools p{font-size:12px}.pl-zones{display:flex;gap:8px;margin:12px 0}.pl-cards{display:grid;gap:8px;max-height:35vh;overflow:auto}.pl-card{display:flex;gap:12px;align-items:center;text-align:left;font:inherit;font-size:12px;background:white;border:1px solid #E8DEC9;border-radius:10px;padding:10px;cursor:pointer}.pl-card[aria-pressed=true]{border:2px solid #DF2935;background:#FFFFFF}.pl-card img{width:60px;height:65px;object-fit:contain}.pl-apply{font:inherit;border:0;border-radius:9px;padding:12px;background:#DF2935;color:white;cursor:pointer}@media(max-width:700px){.pl-panel{grid-template-columns:1fr}.pl-stage canvas{max-height:30vh}.pl-nav{padding:8px;gap:5px}.pl-nav button{font-size:11px;padding:8px}}
.customer-design.pl-enabled[open]{grid-template-rows:auto auto minmax(0,1fr) auto}.customer-design.pl-enabled.pl-library-open{grid-template-rows:auto auto minmax(0,1fr)}.customer-design .pl-stage canvas{width:100%;height:auto;max-height:53vh;object-fit:contain;cursor:default}.customer-design .pl-apply{background:#DF2935;color:white}.customer-design .pl-card{border-radius:10px;text-align:left}.customer-design .pl-card[aria-pressed=true]{border-color:#DF2935}

.customer-design.pl-enabled>.cd-head{grid-row:1}.customer-design.pl-enabled>.pl-nav{grid-row:2}.customer-design.pl-enabled>.cd-body,.customer-design.pl-enabled>.pl-panel{grid-row:3}.customer-design.pl-enabled>.cd-footer{grid-row:4}.customer-design .pl-apply:disabled{opacity:.5;cursor:not-allowed}
/* Programme choice: compact summary cards; selection happens in the library. */
.pc-config [data-embroidery-programs]{padding:22px!important;border:1px solid #E8DEC9!important;border-radius:16px;background:#FFFFFF;margin:22px 0!important;min-width:0}
.pc-config [data-embroidery-programs] [hidden]{display:none!important}
.pc-config .ep-intro{font-size:12px!important;line-height:1.7;color:#6B665C;margin:0 0 18px}.pc-config .ep-intro strong{display:block;font-weight:500;color:#20211F}
.ep-prices{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:16px;background:#F6F1E7;border-radius:12px;margin-bottom:16px}.ep-prices>div{display:flex;flex-direction:column;gap:6px}.ep-prices>div+div{border-left:1px solid #E8DEC9;padding-left:16px}.ep-prices span{font-size:12px;color:#6B665C}.ep-prices strong{font-size:22px!important;font-weight:600;letter-spacing:-.5px}.ep-prices small{font-size:10px!important;color:#6B665C;line-height:1.5}
.ep-zones{display:grid;gap:10px}.ep-zone{display:flex;align-items:center;gap:12px;border:1px solid #E8DEC9;border-radius:12px;padding:12px}.ep-thumb{width:52px;height:52px;flex-shrink:0;display:grid;place-items:center;background:#F6F1E7;border-radius:9px;overflow:hidden}.ep-thumb img{width:44px;height:44px;object-fit:contain}.ep-thumb span{font-size:22px;color:#6B665C}.ep-zone-text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.ep-zone-label{color:#DF2935;font-size:10px!important;font-weight:600;text-transform:uppercase;letter-spacing:.7px}.ep-zone-text strong{font-size:12px!important;font-weight:500;overflow-wrap:anywhere}.ep-zone-text small{font-size:10px!important;color:#6B665C}.pc-config .ep-zone button{font:inherit;font-size:11px!important;flex-shrink:0;padding:8px 12px;border:1px solid #E8DEC9;border-radius:8px;background:white;color:#20211F;cursor:pointer}.pc-config .ep-zone button:hover{border-color:#DF2935;color:#DF2935}.ep-note{font-size:11px!important;color:#6B665C;line-height:1.6;margin:12px 0 0}
@media(max-width:480px){.pc-config [data-embroidery-programs]{padding:14px!important}.ep-prices{gap:10px;padding:12px}.ep-prices strong{font-size:18px!important}.ep-zone{flex-wrap:wrap}.ep-zone button{margin-left:auto}}
/* Large work surface, all controls grouped in the right-hand inspector. */
.customer-design.pl-enabled[open],.customer-design.pl-enabled.pl-library-open{grid-template-rows:auto minmax(0,1fr);width:min(1500px,97vw);max-width:97vw;height:94dvh;max-height:94dvh}
.customer-design.pl-enabled>.cd-body,.customer-design.pl-enabled>.pl-panel{grid-row:2}
.customer-design .cd-body{grid-template-columns:minmax(0,1fr) 350px}.customer-design .cd-tools{overflow-y:auto;padding:20px;gap:14px}.customer-design .cd-stage{padding:8px;grid-template-rows:minmax(0,1fr) auto}.customer-design .cd-stage-top{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}.customer-design .cd-tools .cd-footer{padding:14px 0 0;margin-top:auto;border-top:1px solid #F6F1E7;display:flex;flex-direction:column;gap:8px}.customer-design .cd-footer button{width:100%;font-size:12px}.customer-design .pl-nav{display:grid;grid-template-columns:1fr;padding:0 0 14px;border-bottom:1px solid #F6F1E7;margin-bottom:4px;gap:8px}.customer-design .pl-nav button{font-size:12px;padding:10px 12px;text-align:left;border-radius:10px}
.customer-design .pl-panel{grid-template-columns:minmax(0,1fr) 350px;gap:0;padding:0;overflow:hidden}.customer-design .pl-tools{padding:20px;overflow:auto}.customer-design .pl-stage{position:relative;min-height:0;overflow:hidden;border-radius:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.customer-design .pl-stage canvas{width:100%;height:100%;max-height:calc(100% - 42px);object-fit:contain;flex:1;min-height:0}.customer-design .pl-stage p{margin:0;padding:10px;font-size:10px;flex-shrink:0}.customer-design .pl-cards{max-height:none}.customer-design .pl-view-tools,.customer-design .cd-transform>div{display:flex;gap:6px;margin:12px 0}.customer-design .pl-view-tools button,.customer-design .cd-transform button{font-size:11px;padding:8px 10px;border-radius:8px}.customer-design .cd-transform label{display:grid;gap:7px;font-size:12px}.customer-design .cd-transform input{width:100%}.customer-design .cd-review{background:#F6F1E7;padding:12px;border-radius:10px;font-size:11px!important;line-height:1.65;color:#20211F}
@media(max-width:700px){.customer-design .cd-body,.customer-design .pl-panel{grid-template-columns:1fr;grid-template-rows:minmax(220px,45%) minmax(0,1fr)}.customer-design .pl-tools,.customer-design .cd-tools{padding:14px}.customer-design .pl-nav{grid-template-columns:1fr 1fr}.customer-design .pl-stage canvas{max-height:100%}.customer-design .pl-stage p{display:none}}

.customer-design .cd-transform button[aria-pressed="true"]{border-color:#DF2935;color:#DF2935;background:#FFFFFF}.customer-design canvas[data-side]{user-select:none;-webkit-user-select:none}
/* View controls belong to the image; source selection belongs to validation. */
.customer-design .cd-stage{grid-template-rows:minmax(0,1fr) auto auto}.customer-design .cd-stage-top{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;padding:10px;background:white;border-radius:14px;margin:8px auto}.customer-design .cd-stage-top>div{display:flex;gap:8px;align-items:center}.customer-design .pl-view-tools{flex-shrink:0;align-items:center;justify-content:center;flex-wrap:wrap;background:white;border:1px solid #F6F1E7;border-radius:14px;padding:8px;margin:8px 12px;box-shadow:0 3px 14px #20211F08}.customer-design .pl-stage canvas{max-height:calc(100% - 130px)}.customer-design .pl-nav{margin-top:auto;padding:16px 0 12px;border-top:1px solid #F6F1E7;border-bottom:0}.customer-design .pl-tools{display:flex;flex-direction:column;gap:10px}.customer-design .pl-zones select{display:block;font:inherit;padding:9px;border:1px solid #E8DEC9;border-radius:8px;margin-top:5px}.customer-design .pl-zones label{font-size:12px}.customer-design .pl-stage canvas{cursor:grab}.customer-design .cd-stage-top button{font-size:11px;padding:8px 12px}.customer-design .pl-view-tools output{font-size:12px;min-width:46px;text-align:center}
.customer-design .pl-nav{margin:0 0 12px;padding:0 0 16px;border-top:0;border-bottom:1px solid #F6F1E7;flex-shrink:0}.customer-design .cd-stage{position:relative}.customer-design .pl-zones,.customer-design .cd-stage>.cd-tabs{position:absolute;right:18px;top:16px;z-index:2;display:flex;gap:4px;background:white;padding:5px;border:1px solid #E8DEC9;border-radius:12px;box-shadow:0 4px 16px #20211F08;margin:0}.customer-design .pl-zones button,.customer-design .cd-stage>.cd-tabs button{font-size:12px;border:0;border-radius:8px;padding:9px 18px}.customer-design .pl-zones [aria-pressed=true],.customer-design .cd-stage>.cd-tabs [aria-pressed=true]{background:#DF2935;color:white}.customer-design .pl-apply{margin-top:auto}.customer-design .pl-tools .pl-cards:empty:after{content:'Aucun logo enregistré pour cet emplacement. Importez votre logo pour commencer.';font-size:12px;color:#6B665C;line-height:1.6}
.customer-design .cd-design-price{border-top:1px solid #F6F1E7;padding:14px 0;font-size:12px}.customer-design .cd-design-price strong{display:block;font-size:18px}.customer-design .cd-design-price p{margin:0 0 8px;color:#075B76}.customer-design .pl-tools .cd-design-price{margin-top:auto}.customer-design .pl-apply{margin-top:0}

.customer-design .cd-program-ownership{padding:15px;border:1px solid #E8DEC9;border-radius:12px;background:#FFFFFF;font-size:12px;line-height:1.65}.customer-design .cd-program-ownership strong{display:block;color:#20211F;font-size:14px;line-height:1.4}.customer-design .cd-program-ownership p{margin:9px 0 0;color:#075B76}
/* Phone editor: fixed preview above a scrollable, single-column inspector. */
@media(max-width:700px){
 .customer-design.pl-enabled[open],.customer-design.pl-enabled.pl-library-open{inset:0;margin:0!important;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;grid-template-rows:52px minmax(0,1fr)}
 .customer-design .cd-head{padding:8px 12px;gap:10px}.customer-design .cd-head h2{font-size:16px}.customer-design [data-close]{min-width:44px;min-height:40px}
 .customer-design .cd-body,.customer-design .pl-panel{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(230px,48%) minmax(0,1fr);min-width:0}
 .customer-design .cd-stage{padding:0;gap:0;grid-template-rows:minmax(0,1fr) auto}.customer-design .cd-hint{display:none}
 .customer-design .cd-tools,.customer-design .pl-tools{display:flex;flex-direction:column;gap:12px;padding:12px 14px max(12px,env(safe-area-inset-bottom));min-width:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;border-top:1px solid #E8DEC9;border-left:0}
 .customer-design .cd-tools>* ,.customer-design .pl-tools>*{flex-shrink:0;max-width:100%}
 .customer-design .cd-tools>.pl-nav:first-child,.customer-design .pl-nav{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0 0 12px;position:sticky;top:-12px;background:white;z-index:3;padding-top:10px}
 .customer-design .pl-nav button{font-size:12px;line-height:1.3;text-align:center;padding:10px 7px;min-height:48px}
 .customer-design .cd-stage-top,.customer-design .pl-view-tools{margin:0;width:100%;padding:6px;gap:6px;border-radius:0;border:0;border-top:1px solid #F6F1E7;box-shadow:none;display:flex;justify-content:center;flex-wrap:wrap;background:white;flex-shrink:0}
 .customer-design .cd-stage-top>div{gap:5px}.customer-design .cd-stage-top button,.customer-design .pl-view-tools button{min-height:40px;padding:7px 9px;font-size:11px}.customer-design .cd-zoom button,.customer-design [data-pl-minus],.customer-design [data-pl-plus]{min-width:40px;font-size:20px}
 .customer-design .pl-stage canvas{max-height:calc(100% - 100px)}.customer-design .pl-stage p{display:none}
 .customer-design .pl-zones,.customer-design .cd-stage>.cd-tabs{top:8px;right:8px;padding:3px}.customer-design .pl-zones button,.customer-design .cd-stage>.cd-tabs button{min-height:40px;padding:7px 14px}
 .customer-design .cd-width{display:flex;grid-column:auto;grid-row:auto;font-size:13px;gap:8px}.customer-design input[type=number]{font-size:16px;min-height:44px}.customer-design input[type=range]{min-height:36px}.customer-design .cd-upload{min-height:58px;font-size:14px}
 .customer-design .cd-tools .cd-footer,.customer-design .pl-apply{position:sticky;bottom:-12px;margin-top:0;background:white;z-index:2;padding:10px 0 max(10px,env(safe-area-inset-bottom));box-shadow:0 -8px 16px #FFFFFFEB}.customer-design .pl-apply{background:#DF2935;padding:14px;min-height:48px;color:white;bottom:0}.customer-design [data-design-add]{min-height:48px;background:#DF2935;border-color:#DF2935;font-size:13px}
 .customer-design .pl-card{min-height:72px;padding:10px;font-size:12px}.customer-design .pl-card img{width:48px;height:52px}.customer-design .cd-design-price{margin-top:0!important}.customer-design .cd-review,.customer-design .cd-program-ownership{font-size:12px!important}
}
@media(max-width:700px) and (max-height:600px){.customer-design .cd-body,.customer-design .pl-panel{grid-template-rows:minmax(180px,48%) minmax(0,1fr)}}
/* Mobile composition is a fixed workspace, not a scrolling inspector. */
@media(max-width:700px){
 dialog.customer-design.pl-enabled[open]{position:fixed!important;inset:0!important;top:0!important;left:0!important;transform:none!important;margin:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;overflow:hidden!important;grid-template-rows:48px minmax(0,1fr)}
 .customer-design .cd-body,.customer-design .pl-panel{grid-template-rows:minmax(140px,1fr) 310px;overflow:hidden}
 .customer-design .cd-tools,.customer-design .pl-tools{position:relative;overflow:hidden!important;padding:8px 12px max(8px,env(safe-area-inset-bottom));gap:7px;display:flex;flex-direction:column}
 .customer-design .pl-nav,.customer-design .cd-tools>.pl-nav:first-child{position:static;margin:0;padding:0;border:0;gap:6px}.customer-design .pl-nav button{min-height:40px;padding:6px;font-size:11px;line-height:1.2}
 .customer-design .pl-tools>h3,.customer-design .pl-tools>p,.customer-design .cd-tools>div:not([class]):not([data-design-price]),.customer-design .cd-review,.customer-design .cd-program-ownership,.customer-design .cd-formats{display:none!important}
 .customer-design .pl-cards{flex:1;min-height:0;overflow:hidden;display:block}.customer-design .pl-card{width:100%;min-height:62px;margin:0;font-size:11px;padding:7px;gap:8px}.customer-design .pl-card img{width:42px;height:42px}
 .customer-design .pl-tools .cd-design-price,.customer-design .cd-design-price{flex:none;margin:0!important;padding:6px 0;border-top:1px solid #F6F1E7;font-size:11px}.customer-design .cd-design-price p{font-size:10px;line-height:1.3;margin:0 0 3px}.customer-design .cd-design-price strong{font-size:15px}
 .customer-design .cd-tools .cd-footer,.customer-design .pl-apply{position:static!important;box-shadow:none;margin:0!important;padding:0;background:transparent;flex:none;border:0}.customer-design .pl-apply,.customer-design [data-design-add]{min-height:42px;padding:10px;background:#DF2935;color:white;font-size:12px;border-radius:10px}.customer-design .cd-footer>span{display:none}
 .customer-design .cd-stage-top,.customer-design .pl-view-tools{flex-wrap:nowrap;gap:4px;padding:4px;min-height:44px}.customer-design .cd-stage-top button,.customer-design .pl-view-tools button{min-height:36px;padding:5px 7px;font-size:10px;white-space:nowrap}.customer-design .cd-stage-top>div{gap:3px}.customer-design [data-pl-focus],.customer-design [data-focus-zone]{font-size:0!important}.customer-design [data-pl-focus]:after,.customer-design [data-focus-zone]:after{content:'Gros plan';font-size:10px}.customer-design .pl-stage canvas{max-height:calc(100% - 48px)}
 .customer-design .cd-upload{min-height:44px;padding:6px;font-size:12px}.customer-design .cd-upload canvas{max-height:35px;width:43px}.customer-design .cd-tools .cd-transform,.customer-design .cd-inline-colors,.customer-design .cd-remove,.customer-design .cd-refine,.customer-design .cd-width,.customer-design .cd-ai-button,.customer-design .cd-ai-restore{display:none!important}
 .customer-design .cd-quality{font-size:10px;line-height:1.3;padding:5px;margin:0}.customer-design [data-message]{font-size:10px;line-height:1.2}.customer-design .cd-tools{justify-content:flex-start}.customer-design .cd-tools .cd-design-price{margin-top:auto!important}
 .customer-design .mobile-program-pager{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px}.customer-design .mobile-program-pager button{padding:3px 12px;min-height:30px}
}
@media(min-width:701px){.customer-design .mobile-program-pager{display:none}}
@media(max-width:700px) and (max-height:620px){.customer-design .cd-body,.customer-design .pl-panel{grid-template-rows:minmax(110px,1fr) 270px}.customer-design .cd-head{padding:4px 10px}}
@media(max-width:700px){.customer-design .cd-tools .cd-transform{display:block!important;margin:0}.customer-design .cd-transform>div,.customer-design .cd-transform>[data-center-logo]{display:none}.customer-design .cd-transform label{display:flex;gap:6px;align-items:center;font-size:10px;white-space:nowrap}.customer-design .cd-transform input{min-width:0;min-height:28px;flex:1}.customer-design .cd-transform output{min-width:28px}.customer-design .cd-transform:has(input:disabled){display:none!important}}
