/* Mobile-first presentation only; shared centimetre geometry and exports stay unchanged. */
.customizer-tabs,.customizer-mobile-footer,.mobile-size-summary,.mobile-upload-note{display:none}
.preview-viewport{width:100%;min-width:0}
.preview-toolbar{display:flex;align-items:center;justify-content:center;gap:16px;flex-shrink:0;width:100%}
.preview-toolbar .preview-view-controls{margin:0}
.preview-expand{border:0;background:transparent;color:#333;min-height:44px;padding:8px;font:inherit;font-size:12px;cursor:pointer}
.customizer-help{margin:12px 0;color:#666;font-size:13px;line-height:1.5}
.customizer-help summary{cursor:pointer;min-height:28px;line-height:28px}
.customizer-help .preview-help{font-size:13px;line-height:1.6}
.preview-empty span{font-size:13px;font-weight:400;color:#777}
.frame-customizer.preview-focused .customizer-layout{display:flex}
.frame-customizer.preview-focused .customizer-controls,.frame-customizer.preview-focused .customizer-mobile-footer{display:none}
.frame-customizer.preview-focused .customizer-stage{flex:1;max-height:none;overflow:hidden}
.frame-customizer.preview-focused .preview-viewport{flex:1;min-height:0;height:0}
.frame-customizer.preview-focused #frame-preview-canvas,.frame-customizer.preview-focused #frame-side-canvas{width:100%;height:100%;max-height:none}
.frame-customizer.preview-focused .preview-composition,.frame-customizer.preview-focused .preview-disclaimer-wrap,.frame-customizer.preview-focused #physical-size-summary{display:none}
.frame-customizer.preview-focused .mobile-size-summary{display:block}
@media(max-width:760px), (pointer:coarse) and (max-height:500px) and (max-width:1000px){
 .frame-customizer[open]{inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}
 .frame-customizer .customizer-header{height:56px;min-height:56px;padding:6px 16px;gap:12px;border-bottom:1px solid #e8e8e8}
 .frame-customizer .customizer-header .eyebrow{display:none}
 .frame-customizer .customizer-header h2{font-size:17px;line-height:1.3;font-weight:600;letter-spacing:.02em;margin:0}
 .frame-customizer .customizer-close{border:0;padding:8px 0 8px 12px;font-size:13px;min-height:44px}
 .frame-customizer .customizer-layout{display:flex;flex-direction:column;overflow:hidden;min-height:0}
 .frame-customizer .customizer-stage{flex:0 0 auto;height:min(51dvh,440px);max-height:none;min-height:180px;padding:4px 12px 10px;background:#f0efed;overflow:hidden;gap:0;justify-content:flex-start}
 .frame-customizer .preview-toolbar{height:40px;min-height:40px;justify-content:space-between;padding:0 2px}
 .frame-customizer .preview-view-controls{gap:2px}
 .frame-customizer .preview-view-controls button{min-height:36px;padding:6px 14px;border:0;font-size:12px;border-radius:2px}
 .frame-customizer .preview-expand{font-size:12px;min-height:40px;padding:8px 2px 8px 12px}
 .frame-customizer .preview-viewport{flex:1;height:0;min-height:0;position:relative;display:flex;align-items:center;justify-content:center}
 .frame-customizer #frame-preview-canvas,.frame-customizer #frame-side-canvas{width:100%;height:100%;max-height:none;min-height:0;object-fit:contain}
 .frame-customizer .preview-empty{text-align:center;font-size:18px;line-height:1.9;margin:0;font-weight:500}
 .frame-customizer .preview-composition-title{font-size:12px;line-height:1.4;font-weight:500;margin:2px 0 0;flex-shrink:0}
 .frame-customizer .mobile-size-summary{display:block;margin:3px 0 0;text-align:center;font-size:11px;line-height:1.5;color:#666;flex-shrink:0}
 .frame-customizer #physical-size-summary,.frame-customizer .preview-composition,.frame-customizer .preview-disclaimer-wrap{display:none}
 .frame-customizer .preview-material-status{font-size:11px;line-height:1.3;margin:4px 0 0;flex-shrink:0}
 .frame-customizer .preview-material-status:empty{display:none}
 .frame-customizer .customizer-controls{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 18px 18px;scroll-padding-top:58px}
 .frame-customizer .customizer-tabs{display:flex;position:sticky;top:0;z-index:2;background:#fff;margin:0 -18px 16px;padding:0 18px;border-bottom:1px solid #e5e5e5;gap:24px}
 .frame-customizer .customizer-tabs button{flex:1;border:0;border-bottom:2px solid transparent;min-height:46px;background:#fff;color:#888;font:inherit;font-size:14px;padding:10px 8px}
 .frame-customizer .customizer-tabs button[aria-current]{color:#161616;border-bottom-color:#161616;font-weight:600}
 .frame-customizer .customizer-panel{display:none}
 .frame-customizer .customizer-panel.is-active{display:block}
 .frame-customizer .customizer-panel>fieldset>legend{font-size:14px;line-height:1.4;margin-bottom:12px}
 .frame-customizer .customizer-panel:not([data-panel=save])>fieldset>legend{display:none}
 .frame-customizer .customizer-controls fieldset{margin-bottom:16px}
 .frame-customizer .preview-upload{padding:12px;min-height:46px;font-size:14px;line-height:1.5}
 .frame-customizer .mobile-upload-note{display:block;font-size:11px;color:#777;margin:8px 0;line-height:1.4}
 .frame-customizer .preview-source-label{font-size:11px;color:#777;overflow-wrap:anywhere;margin:6px 0;line-height:1.5}
 .frame-customizer .preview-select-label{font-size:12px;margin:12px 0 7px;line-height:1.5}
 .frame-customizer input[type=number],.frame-customizer input[type=text],.frame-customizer select{font-size:16px;min-height:44px;padding:9px 10px}
 .frame-customizer .preview-help,.frame-customizer .preview-status,.frame-customizer .art-size-result{font-size:12px;line-height:1.5;margin:8px 0}
 .frame-customizer .preview-status:empty,.frame-customizer .layer-error:empty{display:none}
 .frame-customizer #preview-status:not([data-error=true]){display:none}
 .frame-customizer .style-suggestion-panel{border:0;padding:0;margin:8px 0}
 .frame-customizer .customizer-help,.frame-customizer .example-picker{margin:8px 0;font-size:12px}
 .frame-customizer .customizer-help summary,.frame-customizer .example-picker summary{min-height:32px;line-height:32px}
 .frame-customizer .button{font-size:13px;line-height:1.4;min-height:44px;padding:12px 14px}
 .frame-customizer .preview-reset{min-height:44px;font-size:12px;padding:9px 12px}
 .frame-customizer #open-art-crop{padding-left:0;text-decoration:underline;text-underline-offset:4px;border:0}
 .frame-customizer .frame-kind-options{gap:6px;grid-template-columns:repeat(3,minmax(0,1fr))}
 .frame-customizer .frame-kind-options span{padding:10px 4px;font-size:12px}
 .frame-customizer .material-swatches{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 .frame-customizer .material-swatch{font-size:10px;padding:4px}
 .frame-customizer .material-selected{font-size:12px;margin:8px 0}
 .frame-customizer .material-reference summary,.frame-customizer .material-chart-link{font-size:12px;line-height:1.5}
 .frame-customizer .mat-layer{padding:12px;border:1px solid #e2e2e2}
 .frame-customizer .layer-title{font-size:13px;line-height:1.4}
 .frame-customizer .layer-spacing-header{gap:8px;margin-top:12px}
 .frame-customizer .layer-spacing-header p,.frame-customizer .layer-sync-label{font-size:11px;line-height:1.5}
 .frame-customizer .layer-edge-fields{gap:8px}
 .frame-customizer .layer-edge-fields label{font-size:11px}
 .frame-customizer .customizer-mobile-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;background:#fff;border-top:1px solid #e5e5e5;padding:10px 18px max(10px,env(safe-area-inset-bottom))}
 .frame-customizer .customizer-mobile-footer>.button{min-width:58%;display:flex;justify-content:space-between;align-items:center}
 .frame-customizer .customizer-mobile-footer>.preview-reset{border:0;padding:10px 0;color:#777}
 .frame-customizer.preview-focused .customizer-stage{height:auto;min-height:0;flex:1;padding-bottom:16px}
 .frame-customizer.preview-focused .customizer-mobile-footer{display:none}
 .frame-customizer [hidden]{display:none!important}
 .frame-customizer button:focus-visible,.frame-customizer summary:focus-visible{outline:2px solid #555;outline-offset:2px}
}
@media(max-width:760px) and (max-height:500px), (pointer:coarse) and (max-height:500px) and (max-width:1000px){
 .frame-customizer:not(.preview-focused) .customizer-stage{height:42dvh;min-height:130px}
 .frame-customizer .customizer-header{height:44px;min-height:44px}
 .frame-customizer .customizer-mobile-footer{padding-top:5px;padding-bottom:5px}
}
@media(min-width:600px) and (max-width:760px) and (max-height:500px), (pointer:coarse) and (min-width:600px) and (max-width:1000px) and (max-height:500px){
 .frame-customizer:not(.preview-focused) .customizer-layout{display:grid;grid-template-columns:1fr 1fr}
 .frame-customizer:not(.preview-focused) .customizer-stage{height:100%;min-height:0}
 .frame-customizer .customizer-controls{border-left:1px solid #e5e5e5}
}
