.collage-mobile-only{display:none}
#collageCanvasSurface{display:contents}
#collageMobileStatus{display:none}
.collage-crop-head{display:contents}
.collage-auto-photo-step,.collage-auto-style-step{display:contents}
.collage-auto-steps,.collage-auto-step-action{display:none}
.collage-auto-filter-line,.collage-auto-select-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:900px){
 body.collage-mobile-editor .site-footer{display:none!important}
 .collage-editor-page:not(.gallery-mode){height:auto!important;min-height:0!important;overflow:visible!important;padding:6px 0 90px!important}
 .collage-editor-page:not(.gallery-mode)>.creative-shell{height:auto!important;min-width:0;width:calc(100% - 16px);padding:0}
 .collage-editor-page #creativeEditorView .creative-editor-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:0 0 8px}
 .collage-editor-page #creativeEditorView .creative-editor-heading-main{grid-column:1;grid-row:1;min-width:0}
 .collage-editor-page #creativeEditorView .creative-editor-heading-status{grid-column:2;grid-row:1;display:flex;flex-direction:row;flex-wrap:nowrap;gap:5px;min-width:0;width:auto;max-width:none;align-items:center}
 .collage-editor-page #creativeEditorView .creative-change-design-button{padding:8px 10px;min-height:36px;font-size:.72rem}
 .collage-editor-page #creativeEditorReadyTime{display:flex;flex-direction:row;align-items:center;gap:8px;width:100%;margin:0;min-width:0}
 .collage-standard-ready{display:block;flex:1;min-width:0;padding:10px 12px;border:1px solid var(--status-success-border,#cbded6);border-radius:14px;background:var(--status-success-bg,#f0f7f3);font-size:.8rem;font-weight:700;color:var(--status-success,#356756)}
 body.collage-mobile-editor #collageMobileStatus{display:flex;align-items:center;gap:8px;margin-top:8px;min-width:0}
 #collageMobileStatus #creativeEditorReadyTime{flex:1;min-width:0;width:auto}
 #collageMobileStatus #creativeMissingWrap{flex:none;width:auto;margin:0;padding:8px;font-size:.72rem;gap:5px}
 #creativeEditorReadyTime .mobile-product-charge-info{display:block}
 #creativeEditorReadyTime summary{background:var(--surface-muted);border:1px solid var(--line);border-radius:50%;min-width:32px;min-height:32px;display:grid;place-items:center;cursor:pointer}
 .collage-editor-page #creativeEditorView .creative-workspace{display:block;height:auto!important;min-height:0!important}
 .collage-editor-page #creativeEditorView .creative-stage-panel{position:relative;box-sizing:border-box;min-width:0;min-height:0!important;max-height:none;padding:8px}
 .collage-editor-page #creativeEditorView .creative-canvas-wrap{display:block;box-sizing:border-box;width:100%;height:100%;min-height:0!important;padding:10px;overflow:auto;touch-action:none}
 body.collage-mobile-editor #collageCanvasSurface{display:block;position:relative;margin:0 auto}
 .collage-mobile-only{display:block}
 .collage-view-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 6px;font-size:.72rem}
 .collage-view-controls>label{display:flex;align-items:center;gap:6px;margin:0}
 .collage-view-controls input{width:80px}
 .collage-view-controls .small-btn{padding:6px;font-size:.68rem}
 .collage-view-controls #creativeMissingWrap{width:auto;margin:0 0 0 auto;padding:5px 8px;font-size:.7rem;gap:5px}
 body.collage-mobile-editor #creativeMobileDock{position:fixed;inset:auto 8px max(8px,env(safe-area-inset-bottom));z-index:139;display:flex;justify-content:center;align-items:stretch;min-height:58px;padding:5px;box-sizing:border-box;background:var(--surface-card,#fff);border:1px solid var(--line);border-radius:18px}
 body.collage-mobile-editor #creativeMobileDock button{flex:1;max-width:120px;color:var(--ink)}
 body.collage-mobile-editor #creativeMobileDock .creative-mobile-cart{background:var(--brand);color:#fff}
 body.collage-mobile-editor #creativeMobileDock button.hidden{display:none}
 body.collage-mobile-editor #creativeAssetsPanel,body.collage-mobile-editor #creativeSettingsPanel{position:fixed;inset:auto 0 0;width:100%;min-width:0!important;box-sizing:border-box;height:min(78dvh,700px)!important;max-height:calc(100dvh - 40px);margin:0;padding:12px 14px calc(16px + env(safe-area-inset-bottom));z-index:141;overflow:auto;border:1px solid var(--line);border-radius:20px 20px 0 0;background:var(--surface-card,#fff);transform:translateY(105%);visibility:hidden}
 body.collage-mobile-editor #creativeAssetsPanel.mobile-sheet-open,body.collage-mobile-editor #creativeSettingsPanel.mobile-sheet-open{transform:none;visibility:visible}
 body.collage-mobile-editor #creativeMobileSheetBackdrop{z-index:140}
 body.collage-mobile-editor .creative-mobile-sheet-head{z-index:8}
 body.collage-mobile-editor .creative-mobile-sheet-close{width:40px;height:40px;color:var(--ink);flex:none}
 body.collage-mobile-editor #creativeAssetsPanel{display:flex;flex-direction:column;overflow:hidden}
 #creativeAssetsPanel .creative-assets-head{flex:none;min-width:0}
 #creativeAssetsPanel .creative-assets-head>div{min-width:0}
 #creativeAssetsPanel #creativeAssetGrid{order:2;flex:1;min-height:0;max-height:none;overflow:auto;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start}
 #creativeAssetsPanel .creative-media-toolbar{order:3;flex:none;padding-top:10px;border-top:1px solid var(--line)}
 #creativeAssetsPanel #creativeAutoFill{order:4;flex:none;margin-top:10px;background:var(--brand);color:#fff}
 #creativeAssetsPanel .creative-asset{min-width:0;cursor:pointer}
 #creativeSettingsPanel .creative-panel-tabs,#creativeSettingsPanel .creative-accordion-head,#creativeSettingsPanel #creativeSave,#creativeSettingsPanel #creativeCancel{display:none}
 #creativeSettingsPanel .creative-accordion{display:block;overflow:visible;border:0}
 #creativeSettingsPanel .creative-accordion-item{display:none;border:0!important}
 #creativeSettingsPanel .creative-accordion-item.open{display:block}
 #creativeSettingsPanel .creative-accordion-body{display:block;padding:0;min-width:0}
 #creativeSettingsPanel .creative-order-head{display:none}
 #creativeSettingsPanel[data-mobile-panel=size] .creative-order-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;min-width:0}
 #creativeSettingsPanel .creative-order-head .eyebrow{display:none}
 #creativeSettingsPanel .creative-order-head h3{margin:0;font-size:1.15rem}
 #creativeSettingsPanel .creative-price-wrap{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;min-width:0}
 #creativeSettingsPanel .compact-mobile-charges{padding:0;margin:0}
 #creativeSettingsPanel .compact-mobile-charges>div{display:none}
 #creativeSettingsPanel .mobile-product-charge-info{display:block}
 #creativeSettingsPanel #collagePanelDone{display:block;margin-top:20px;background:var(--brand);color:#fff}
 #creativeSettingsPanel .creative-color-picker-row{display:flex;flex-wrap:wrap;gap:8px}
 #creativeSettingsPanel #creativeCustomerBackground{flex:0 0 100%;width:100%;justify-content:center;margin-top:8px}
 .collage-editor-page .creative-smart-lock,.collage-editor-page .creative-slot>button{display:none!important}
 .collage-editor-page .creative-slot.content-photo>span{font-size:clamp(7px,2.1vw,12px);line-height:1.2;padding:3px;overflow:hidden}
 .collage-editor-page .creative-canvas-guide{box-sizing:border-box;transform:none;width:auto;max-height:150px;overflow:auto;padding:12px 40px 12px 12px;font-size:.75rem;left:8px;right:8px;bottom:8px}
 .collage-editor-page #creativeGuideShow{position:absolute;right:12px;bottom:12px;min-width:40px;height:40px;padding:5px;border:1px solid var(--line);border-radius:50%;font-size:1.2rem;background:var(--surface-card);color:var(--ink)}
 #creativeSourceModal,#creativeLibraryModal,#creativeQrModal,#creativeTextFieldModal{z-index:145}
 #creativeCropModal{z-index:144}
 #creativeCropModal{padding:6px;align-items:start}
 #creativeCropModal .crop-dialog{box-sizing:border-box;width:100%;max-height:calc(100dvh - 12px);overflow:auto;display:block;border-radius:18px;background:var(--surface-card,#fff)}
 #creativeCropModal .collage-crop-head{display:flex;position:sticky;top:0;z-index:10;align-items:center;justify-content:space-between;min-height:52px;padding:8px 12px;background:var(--surface-card,#fff);border-bottom:1px solid var(--line)}
 #creativeCropModal .collage-crop-head strong{display:block}
 #creativeCropModal .modal-close{position:static;width:40px;height:40px;margin-left:auto;flex:none;color:var(--ink)}
 #creativeCropModal .crop-preview-wrap{display:block!important;box-sizing:border-box;width:100%;min-height:0!important;padding:12px!important;background:var(--surface-card,#fff)!important}
 #creativeCropModal #creativeCropStage{width:100%!important;height:min(40dvh,340px)!important;min-height:200px;background:var(--surface-muted,#f4f3ef);border-radius:12px;touch-action:none}
 #creativeCropModal .creative-crop-shade{background:rgba(219,32,45,.4)}
 #creativeCropModal .crop-handle{background:var(--brand)}
 #creativeCropModal .crop-stage-help,#creativeCropModal .crop-controls>.eyebrow,#creativeCropModal .crop-controls>h2,#creativeCropModal .crop-controls>p,#creativeCropModal .crop-position-info{display:none}
 #creativeCropModal .crop-controls{padding:12px!important;background:var(--surface-card,#fff)}
 #creativeCropModal .crop-controls>label:first-of-type{margin:0 0 16px!important}
 #creativeCropModal .crop-controls>.image-bw-switch,#creativeCropModal .creative-crop-lock-control{box-sizing:border-box;width:100%;border:1px solid var(--line);border-radius:14px;padding:14px;margin:14px 0;background:var(--surface-card,#fff)}
 #creativeCropModal .creative-crop-lock-control>.image-bw-switch{margin:0}
 #creativeCropModal .creative-crop-lock-control>small{display:block;margin:10px 0 0;color:var(--muted);font-size:.78rem;line-height:1.4}
 #creativeCropModal .crop-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
 #creativeCropModal .crop-actions .small-btn{width:100%;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--surface-muted,#f4f3ef);color:var(--ink)}
 #creativeCropModal #creativeCropRemove{grid-column:1/-1}
 #creativeBackgroundPhotoModal{z-index:146;padding:6px}
 #creativeBackgroundPhotoModal .creative-background-photo-dialog{box-sizing:border-box;width:100%;max-height:calc(100dvh - 12px);overflow:auto;display:block;border-radius:18px}
 #creativeBackgroundPhotoModal .creative-background-photo-preview-panel{padding:48px 12px 8px;display:block;min-height:0}
 #creativeBackgroundPhotoModal .creative-background-photo-preview-panel>.eyebrow,#creativeBackgroundPhotoModal .creative-background-photo-preview-panel>small{display:none}
 #creativeBackgroundPhotoModal #creativeBackgroundPhotoStage{width:min(100%,calc(min(28dvh,240px) * var(--collage-background-aspect,1)));height:auto;max-height:none;min-height:0;aspect-ratio:var(--collage-background-aspect,1)!important;margin:0 auto}
 #creativeBackgroundPhotoModal .creative-background-photo-controls{padding:8px 12px 12px;overflow:visible}
 #creativeBackgroundPhotoModal .creative-background-photo-controls>.eyebrow,#creativeBackgroundPhotoModal .creative-background-photo-controls>h2,#creativeBackgroundPhotoModal .creative-background-photo-controls>p{display:none}
 #creativeBackgroundPhotoModal #creativeBackgroundAssetGrid{display:none}
 #creativeBackgroundPhotoModal #collageChangeBackgroundPhoto{display:block;width:100%;margin-bottom:10px}
 #creativeBackgroundPhotoModal .creative-background-photo-controls>.range-with-value{margin:10px 0;gap:4px}
 #creativeBackgroundPhotoModal .image-bw-switch{padding:10px;border:1px solid var(--line);border-radius:12px;margin:12px 0;background:var(--surface-card)}
 #creativeBackgroundPhotoModal .creative-text-field-actions{display:flex;gap:8px;margin-top:12px}
 #creativeBackgroundPhotoModal .modal-close{width:40px;height:40px;right:8px;top:8px;color:var(--ink)}
 #creativeBackgroundPhotoModal.choosing-photo .creative-background-photo-preview-panel,#creativeBackgroundPhotoModal.choosing-photo .creative-background-photo-controls>label,#creativeBackgroundPhotoModal.choosing-photo #collageChangeBackgroundPhoto,#creativeBackgroundPhotoModal.choosing-photo .creative-text-field-actions{display:none}
 #creativeBackgroundPhotoModal.choosing-photo .creative-background-photo-controls{padding-top:48px}
 #creativeBackgroundPhotoModal.choosing-photo .creative-background-photo-controls>h2{display:block;font:700 1.1rem var(--font-body,Arial);margin:0 0 12px}
 #creativeBackgroundPhotoModal.choosing-photo #creativeBackgroundAssetGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:60dvh;overflow:auto}
 #creativeLayoutModal{z-index:147;padding:6px}
 #creativeSourceModal,#creativeLibraryModal,#creativeQrModal{z-index:149}
 #creativeLayoutModal .creative-auto-picker{box-sizing:border-box;display:flex;flex-direction:column;width:100%;height:min(96dvh,1000px);max-height:calc(100dvh - 12px);padding:12px;gap:8px;overflow:hidden;border-radius:20px}
 #creativeLayoutModal .creative-layout-heading{flex:none;min-height:40px;padding-right:44px;align-items:center}
 #creativeLayoutModal .creative-layout-heading h2{font-size:1.2rem;margin:0}
 #creativeLayoutModal .collage-auto-limit-heading{display:none}
 #creativeLayoutModal #creativeLayoutClose{position:absolute;right:8px;top:8px;width:44px;height:44px;min-height:44px;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--surface-muted,#f4f3ef);color:var(--ink);font-size:26px;line-height:1;z-index:8}
 #creativeLayoutModal .collage-auto-steps{display:grid;grid-template-columns:1fr 1fr;gap:6px;flex:none}
 #creativeLayoutModal .collage-auto-steps button{min-height:34px;padding:6px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-card);color:var(--ink);font:inherit;font-size:.8rem;font-weight:700;cursor:pointer}
 #creativeLayoutModal .collage-auto-steps button[aria-pressed=true]{background:var(--brand);color:#fff;border-color:var(--brand)}
 #creativeLayoutModal .collage-auto-steps button:disabled{opacity:.55;cursor:default}
 #creativeLayoutModal .collage-auto-photo-step{display:flex;flex-direction:column;gap:7px;min-height:0;flex:1;overflow:hidden}
 #creativeLayoutModal .collage-auto-style-step{display:block;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}
 #creativeLayoutModal[data-step="1"] .collage-auto-style-step,#creativeLayoutModal[data-step="2"] .collage-auto-photo-step{display:none}
 #creativeLayoutModal .creative-layout-toolbar{display:grid;grid-template-columns:1fr 1fr;flex:none;gap:6px;margin:0}
 #creativeLayoutModal #creativeLayoutAdd{grid-column:1/-1;justify-self:start;min-height:34px;padding:7px 12px;font-size:.78rem}
 #creativeLayoutModal #creativeLayoutSelected,#creativeLayoutModal #creativeLayoutFavorites{font:600 .75rem/1.35 var(--font-body,Arial,sans-serif);color:var(--ink);margin:0}
 #creativeLayoutModal .collage-auto-favorite-info{font-size:.68rem;line-height:1.3;color:var(--muted);flex:none}
 #creativeLayoutModal .collage-auto-filter-line{flex:none;gap:5px;padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--surface-muted)}
 #creativeLayoutModal .creative-photo-filters{margin:0;padding:2px;gap:1px;background:transparent;flex-shrink:1}
 #creativeLayoutModal .creative-photo-filters button,#creativeLayoutModal .collage-auto-select-actions button{min-height:30px;padding:5px 7px;font-size:.68rem;white-space:nowrap}
 #creativeLayoutModal .collage-auto-select-actions{gap:2px;margin-left:auto}
 #creativeLayoutModal .creative-layout-advice{flex:none;max-height:none;overflow:visible;font-size:.7rem;line-height:1.35;padding:6px 8px}
 #creativeLayoutModal #creativeLayoutPhotos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max(70px,calc((var(--collage-auto-photo-height,500px) - 16px)/3));align-content:start;gap:8px;flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
 #creativeLayoutModal .creative-layout-photo-choice{min-height:0}
 #creativeLayoutModal .creative-layout-photo{height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:3px}
 #creativeLayoutModal .creative-layout-photo img{width:100%;height:100%!important;min-height:0;object-fit:cover}
 #creativeLayoutModal .creative-layout-photo span{font-size:.65rem;line-height:1.3}
 #creativeLayoutModal .creative-auto-options{display:grid;gap:18px;padding:4px 0;overflow:visible;flex-wrap:wrap}
 #creativeLayoutModal .creative-auto-options>div>strong{font-size:.9rem;margin-bottom:8px}
 #creativeLayoutModal .creative-auto-options button{min-height:62px;padding:8px;font-size:.8rem}
 #creativeLayoutModal .creative-style-choices,#creativeLayoutModal .creative-direction-choices,#creativeLayoutModal .creative-border-choices{gap:8px;flex-wrap:wrap}
 #creativeLayoutModal .creative-style-icon{width:48px;height:34px}
 #creativeLayoutModal .creative-direction-icon{margin:4px;width:40px;height:28px}
 #creativeLayoutModal .creative-direction-icon.portrait{width:28px;height:40px;margin:0 10px}
 #creativeLayoutModal .creative-picker-footer{display:flex;gap:8px;flex:none;padding-top:8px;border-top:1px solid var(--line)}
 #creativeLayoutModal .creative-picker-footer>.btn{flex:1;width:auto;min-width:0;min-height:44px;padding:10px 12px;background:var(--brand);color:#fff;font-size:.85rem}
 #creativeLayoutModal #creativeLayoutGenerate,#creativeLayoutModal #collageAutoNext,#creativeLayoutModal #collageAutoBack{display:none}
 #creativeLayoutModal[data-step="1"] #collageAutoNext,#creativeLayoutModal[data-step="2"] #collageAutoBack,#creativeLayoutModal[data-step="2"] #creativeLayoutGenerate{display:block}
 #creativeLayoutModal #collageAutoBack{min-height:44px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface-muted);color:var(--ink);font-size:.75rem}
}
@media(min-width:600px) and (max-width:900px){
 #creativeLayoutModal #creativeLayoutPhotos{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max(86px,calc((var(--collage-auto-photo-height,500px) - 8px)/2))}
}
