.ce-editor{--ce-border:#dbe5e9;max-width:1550px;margin:auto;color:#203b46}.ce-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.ce-heading h2{margin:0 0 8px}.ce-heading p,.ce-help,.ce-palette p,.ce-stage>p{color:#607783;font-size:13px;line-height:1.65}.ce-heading label,.ce-panel label{display:flex;flex-direction:column;gap:8px;font-size:13px}.ce-editor input,.ce-editor select{padding:10px;border:1px solid var(--ce-border);border-radius:8px;max-width:100%;min-width:0;background:white;color:inherit}.ce-status{padding:12px 16px;background:#fff7df;border:1px solid #f1dfa5;border-radius:10px;font-size:13px}.ce-layout{display:grid;grid-template-columns:190px minmax(310px,1fr) 290px;gap:18px;align-items:start}.ce-palette,.ce-panel{background:white;border:1px solid var(--ce-border);border-radius:14px;padding:16px}.ce-palette h3,.ce-panel h3{margin:0 0 18px;font-size:16px}.ce-module-row{display:flex;gap:3px;align-items:center;margin:8px 0}.ce-module,.ce-add{border:1px solid var(--ce-border);background:white;border-radius:8px;padding:10px;text-align:left;cursor:pointer;flex:1;min-width:0}.ce-module-row>button:not(.ce-module){border:0;background:#eff4f6;border-radius:4px;padding:5px;cursor:pointer}.ce-module-row small{font-size:10px;color:#607783}.ce-module.is-selected{background:#e3f5f0;color:#13745d;border-color:#71b8a7}.ce-add{display:block;width:100%;margin-top:10px;color:#15735c}.ce-stage{text-align:center;min-width:0;background:#edf2f5;border-radius:16px;padding:16px 10px}.ce-device-label{font-size:12px;color:#627985;margin:0 0 12px}.ce-stage iframe{width:390px;max-width:100%;height:730px;border:1px solid #cdd8dd;border-radius:22px;background:white;box-shadow:0 12px 30px #27424c17}.ce-panel label{margin-bottom:15px}.ce-panel .ce-check{flex-direction:row;align-items:center}.ce-panel .ce-check input{width:auto}.ce-logo{width:88px;height:88px;object-fit:contain;border:1px solid var(--ce-border);border-radius:12px;margin-bottom:14px}.ce-panel .btn{width:100%;white-space:normal}.ce-panel [data-result]{font-size:13px;line-height:1.6;color:#176a56;overflow-wrap:anywhere}.ce-panel input[type=file]{font-size:12px;width:100%}.ce-palette a{font-size:13px;color:#15735c}@media(max-width:1150px){.ce-layout{grid-template-columns:150px minmax(300px,1fr) 250px;gap:10px}.ce-palette,.ce-panel{padding:12px}.ce-module-row{flex-wrap:wrap}.ce-module-row .ce-module{flex-basis:100%}}@media(max-width:900px){.ce-layout{grid-template-columns:1fr 1fr}.ce-palette{grid-column:1/-1}.ce-palette [data-modules]{display:flex;gap:8px;flex-wrap:wrap}.ce-module-row{margin:0;max-width:145px}.ce-palette [data-modules]>.ce-module,.ce-add{width:auto;flex:0 1 auto;margin:0}.ce-stage iframe{height:650px}.ce-heading{align-items:flex-start}}@media(max-width:620px){.ce-heading{flex-direction:column;gap:8px}.ce-heading label{flex-direction:row;align-items:center}.ce-layout{display:flex;flex-direction:column}.ce-palette,.ce-stage,.ce-panel{width:100%;box-sizing:border-box}.ce-stage iframe{height:610px}.ce-panel{order:2}.ce-stage{order:1}.ce-palette{order:0}}
.ce-heading>div{min-width:0;width:100%}.ce-heading p{overflow-wrap:anywhere}
.ce-page-picker{display:flex;gap:8px;margin:0 0 18px;flex-wrap:wrap}.ce-page-picker a{display:block;padding:9px 15px;border-radius:8px;color:#526772;text-decoration:none;background:#edf3f1}.ce-page-picker a[aria-current=page]{color:#146d58;background:#dff0e9;font-weight:700}.ce-palette p{margin:0 0 14px}.ce-panel [data-fields]{margin:0;padding:0;border:0}.ce-panel [data-fields] legend{font-weight:700;font-size:16px;margin-bottom:18px}
@media(max-width:900px){.ce-palette .ce-module-row{flex-wrap:nowrap;max-width:none;align-items:center}.ce-palette .ce-module-row .ce-module{flex-basis:auto}.ce-palette [data-modules]{align-items:stretch}.ce-palette [data-modules]>.ce-module{min-height:40px}}
.ce-editor [hidden]{display:none!important}.ce-heading{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin-bottom:16px}.ce-heading h2{font-size:23px;margin:0}.ce-heading>.ce-tools{width:auto;justify-self:end}.ce-tabs{display:flex;gap:6px;padding:4px;background:#e8f0ed;border-radius:12px}.ce-tabs button{border:0;background:transparent;padding:10px 18px;border-radius:8px;cursor:pointer}.ce-tabs [aria-pressed=true]{background:#fff;color:#13745d;box-shadow:0 2px 8px #173c3812}.ce-tools{display:flex;gap:8px;align-items:center;justify-content:center;margin-bottom:12px}.ce-tools label{font-size:12px;display:flex;align-items:center;gap:5px}.ce-tools button,.ce-actions button,.ce-editor fieldset button,.ce-template button,.ce-panel>button,.ce-palette>button{border:1px solid var(--ce-border);background:#f7faf9;padding:7px 10px;border-radius:6px;cursor:pointer}.ce-editor button:disabled{opacity:.45;cursor:default}.ce-module-row{display:block}.ce-module-row>.ce-module{width:100%}.ce-actions{display:flex;gap:3px;flex-wrap:wrap;margin-top:4px}.ce-actions button{font-size:11px;padding:4px 6px}.ce-palette h3:not(:first-child){margin-top:22px}.ce-editor textarea{box-sizing:border-box;width:100%;padding:10px;border:1px solid var(--ce-border);border-radius:8px;color:inherit;font:inherit;resize:vertical}.ce-editor fieldset{border:1px solid var(--ce-border);border-radius:10px;padding:10px;margin-bottom:12px}.ce-editor fieldset legend{font-size:12px;color:#607783}.ce-panel input:not([type=checkbox]),.ce-panel select{width:100%;box-sizing:border-box}.ce-product-options{max-height:260px;overflow:auto;border:1px solid var(--ce-border);padding:8px;margin-bottom:16px}.ce-product-options label{display:flex;flex-direction:row;align-items:center}.ce-template{display:flex;flex-wrap:wrap;align-items:center;gap:14px;border:1px solid var(--ce-border);border-radius:12px;background:white;padding:16px;margin:12px 0}.ce-template strong{flex:1}.ce-stage{overflow:auto}.ce-stage.ce-desktop iframe{width:1024px;max-width:none;border-radius:8px}.ce-editor [data-result]{color:#176a56;overflow-wrap:anywhere}.ce-panel [data-new-template]{margin-top:10px;width:100%}.ce-editor hr{border:0;border-top:1px solid var(--ce-border);margin:18px 0}
@media(max-width:900px){.ce-heading{grid-template-columns:1fr auto}.ce-tabs{grid-row:2;grid-column:1/-1;justify-self:center}.ce-heading>.ce-tools{justify-self:end}.ce-palette [data-modules]{display:block}.ce-module-row{display:inline-block;vertical-align:top;margin:5px;max-width:220px}.ce-palette [data-palette]{display:flex;flex-wrap:wrap;gap:6px}.ce-add{width:auto;margin:0}}@media(max-width:620px){.ce-heading{display:flex;flex-wrap:wrap;flex-direction:row;justify-content:space-between}.ce-heading h2{font-size:20px}.ce-tabs{order:3;width:100%;justify-content:center}.ce-tools label{flex-direction:column}.ce-module-row{max-width:100%;width:100%;box-sizing:border-box}.ce-stage.ce-desktop iframe{width:1024px}.ce-template{align-items:flex-start;gap:8px}}
.ce-confirm{width:min(430px,calc(100% - 40px));box-sizing:border-box;border:1px solid #dbe5e9;border-radius:14px;padding:24px;color:#203b46;background:white;box-shadow:0 20px 70px #173c3840}.ce-confirm::backdrop{background:#172f4666}.ce-confirm h3{margin:0 0 16px;font-size:19px}.ce-confirm p{line-height:1.7;overflow-wrap:anywhere}.ce-confirm form>div{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.ce-confirm button{min-width:76px;padding:10px 16px;border:1px solid #b9cbc5;border-radius:8px;cursor:pointer;background:#f7faf9;color:inherit}.ce-confirm button[value=confirm]{background:#13745d;border-color:#13745d;color:white}.ce-confirm button:focus-visible{outline:3px solid #e6a821;outline-offset:3px}

.cm-items{display:grid;gap:10px}.cm-item{display:flex;align-items:flex-start;gap:10px;border:1px solid #dce4e9;border-radius:8px;padding:10px;background:#fbfcfd}.cm-item>img{width:78px;height:64px;object-fit:contain;background:#f1f3f5;border-radius:5px}.cm-item-info{flex:1;min-width:0}.cm-item-info strong{font-size:12px}.cm-item-info label{font-size:11px;margin:5px 0}.cm-actions{display:flex;flex-wrap:wrap;gap:5px}.cm-actions button,.cm-poster{padding:5px 7px;border:1px solid #d7e0e5;border-radius:5px;background:white;font-size:11px;cursor:pointer}.cm-poster input{max-width:125px}.cm-upload{margin-top:12px}.cm-upload input{width:100%}.cm-items input{width:100%;box-sizing:border-box}.catalog-dialog .cm-item label{display:block}.catalog-dialog .cm-item input{padding:6px}.cm-items~progress{width:100%;height:12px}.cm-actions button:disabled{opacity:.4}.cm-item-info .cm-poster{margin:0}.catalog-dialog .cm-upload{display:block}.catalog-dialog .cm-upload input{display:block;margin-top:8px}
/* The editing canvas fits the available window; each column scrolls on its own. */
.ce-editor{--ce-navy:#16354a;--ce-gold:#bd9359;max-width:1720px}.ce-heading h2{color:var(--ce-navy)}.ce-page-picker a[aria-current=page]{background:var(--ce-navy);color:white}.ce-status{padding:8px 13px;margin:8px 0;background:#f9f5eb;border-color:#e7d3aa}.ce-editor>.ce-help,.ce-editor>[data-result]{margin:7px 0}.ce-layout{grid-template-columns:minmax(205px,240px) minmax(320px,1fr) minmax(290px,350px);align-items:stretch;gap:12px;min-height:320px;overflow:hidden}.ce-layout>.ce-palette,.ce-layout>.ce-stage,.ce-layout>.ce-panel{min-height:0;height:100%;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.ce-palette,.ce-panel{border-color:#d9e1e3;box-shadow:0 6px 18px #1237480d}.ce-palette h3,.ce-panel h3{color:var(--ce-navy)}.ce-stage{display:flex;flex-direction:column;align-items:center;overflow:auto;background:linear-gradient(145deg,#e9eef0,#f5f7f6)}.ce-stage>.ce-tools{position:sticky;top:0;z-index:2;padding:6px 10px;background:#f5f7f6e8;border:1px solid #d8e2e2;border-radius:10px}.ce-stage iframe{flex:none;height:min(730px,calc(100% - 75px));min-height:260px}.ce-stage.ce-desktop iframe{height:min(730px,calc(100% - 75px))}.ce-module.is-selected{background:#e9f0ef;color:var(--ce-navy);border-color:var(--ce-gold)}.ce-add:hover,.ce-module:hover{border-color:var(--ce-gold)}.ce-group{border:1px solid var(--ce-border);border-radius:10px;margin:10px 0;background:#fff}.ce-group summary{cursor:pointer;padding:11px 12px;color:var(--ce-navy);font-size:13px;font-weight:700}.ce-group[open] summary{border-bottom:1px solid var(--ce-border)}.ce-group-body{padding:13px 12px 3px}.ce-group-body>button{margin:0 0 12px}.ce-panel .ce-group label{margin-bottom:12px}.ce-hero-thumb{display:block;width:100%;max-height:120px;object-fit:cover;border-radius:8px;margin:0 0 10px}.ce-mobile-tabs{display:none}.ce-panel [data-fields]>h3{margin:0 0 12px}
@media(max-width:1100px){.ce-layout{grid-template-columns:minmax(175px,200px) minmax(300px,1fr) minmax(260px,300px);gap:8px}}
@media(max-width:900px){.ce-mobile-tabs{display:flex;gap:6px;margin:6px 0;padding:4px;background:#e7edee;border-radius:10px}.ce-mobile-tabs button{flex:1;border:0;border-radius:8px;background:transparent;padding:9px 5px;color:var(--ce-navy);font-weight:650}.ce-mobile-tabs [aria-pressed=true]{background:var(--ce-navy);color:#fff}.ce-layout{display:block;min-height:320px}.ce-layout>.ce-palette,.ce-layout>.ce-stage,.ce-layout>.ce-panel{width:100%;height:100%;min-height:0}.ce-layout[data-mobile-view=preview]>.ce-palette,.ce-layout[data-mobile-view=preview]>.ce-panel,.ce-layout[data-mobile-view=modules]>.ce-stage,.ce-layout[data-mobile-view=modules]>.ce-panel,.ce-layout[data-mobile-view=settings]>.ce-palette,.ce-layout[data-mobile-view=settings]>.ce-stage{display:none}.ce-stage iframe{height:min(650px,calc(100% - 75px))}.ce-palette [data-modules]{display:block}.ce-module-row{display:block;margin:8px 0;max-width:none}.ce-palette [data-palette]{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.ce-add{width:100%}}

/* Device previews keep a real viewport, with all three panels aligned to its rendered height. */
.ce-layout{grid-template-columns:minmax(175px,215px) minmax(0,1fr) minmax(270px,330px);overflow:visible}.ce-layout>.ce-palette,.ce-layout>.ce-panel{height:100%;overflow:auto;overscroll-behavior:auto}.ce-layout>.ce-stage{height:100%;overflow:visible;overscroll-behavior:auto;gap:0;scrollbar-gutter:auto;padding:0;background:transparent;border-radius:0;box-sizing:border-box}.ce-stage>.ce-tools{position:static;flex:none;flex-wrap:wrap;width:100%;max-width:100%;box-sizing:border-box;margin:0;gap:8px 10px}.ce-stage>.ce-tools label{min-width:0;max-width:100%}.ce-stage>.ce-tools select{max-width:100%;box-sizing:border-box}.ce-preview-size{display:block;flex-basis:100%;font-size:11px;line-height:1.5;color:#607783}.ce-preview-viewport{position:relative;flex:none;box-sizing:border-box;border:1px solid #cdd8dd;border-radius:24px;overflow:hidden;background:white;box-shadow:0 12px 30px #27424c17}.ce-stage.ce-desktop .ce-preview-viewport{border-radius:9px}.ce-stage .ce-preview-viewport iframe,.ce-stage.ce-desktop .ce-preview-viewport iframe{position:absolute;left:0;top:0;display:block;max-width:none;min-width:0;min-height:0;max-height:none;flex:none;border:0;border-radius:0;box-shadow:none;transform-origin:top left}.ce-stage>p{flex:none;max-width:100%;margin:0;font-size:12px;line-height:1.5}
@media(min-width:901px) and (max-width:1200px){.ce-layout{grid-template-columns:minmax(155px,180px) minmax(0,1fr) minmax(235px,270px);gap:8px}}
@media(max-width:900px){.ce-layout{display:block}.ce-layout>.ce-palette,.ce-layout>.ce-panel,.ce-layout>.ce-stage{height:100%;width:100%}.ce-stage>.ce-tools label{flex-direction:column;align-items:flex-start}.ce-layout>.ce-stage{padding:0;gap:0}.ce-layout>.ce-palette,.ce-layout>.ce-panel{padding:14px}}

.ce-preview-tools{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 14px;margin:0 0 12px;padding:8px 12px;background:#f5f7f6;border:1px solid #d8e2e2;border-radius:10px}.ce-preview-tools label{flex-direction:row;align-items:center}.ce-preview-tools .ce-preview-size{flex-basis:auto;white-space:nowrap}.ce-editor>[data-result]:empty{display:none}.view:has(.ce-editor){overflow:visible}
