/* Calendar tools share the public shop header, logo and palette. All rules stay inside this editor. */
body.calendar-editor-page{margin:0;background:#fafbf9;color:#163b3d;font:14px Arial,Helvetica,sans-serif}
.ce-editor,.ce-editor *,.ce-dialog,.ce-dialog *{box-sizing:border-box}
.ce-editor,.ce-dialog{--ce-ink:#163b3d;--ce-teal:#087b80;--ce-muted:#627575;--ce-line:#e1e9e5;--ce-soft:#edf7f4;color:var(--ce-ink)}
.ce-editor{width:min(1060px,calc(100% - 48px));margin:0 auto;padding:20px 0 24px}
.ce-editor a,.ce-dialog a{color:inherit;text-decoration:none}
.ce-editor :is(button,input,select,textarea),.ce-dialog :is(button,input){font:inherit;color:inherit;border:1px solid var(--ce-line);border-radius:10px;background:#fff;padding:10px 12px;min-width:0}
.ce-editor button,.ce-dialog button{cursor:pointer;font-weight:600;min-height:40px;transition:background .15s,border-color .15s}
.ce-editor button:hover,.ce-dialog button:hover{background:var(--ce-soft);border-color:#8ab8b2}
.ce-editor button:disabled,.ce-dialog button:disabled{opacity:.42;cursor:default}
.ce-editor :is(button,a,input,select,textarea):focus-visible,.ce-dialog :is(button,a,input):focus-visible{outline:3px solid #ef855e;outline-offset:3px}
.ce-editor [hidden],.ce-dialog [hidden]{display:none!important}
.ce-editor svg{flex-shrink:0;display:block;pointer-events:none}
.ce-editor label{display:grid;gap:6px;font-size:12px;font-weight:600}
.ce-editor :is(input,select,textarea){width:100%}
.ce-editor input[type=color]{height:40px;padding:4px;cursor:pointer}
.ce-editor input[type=range]{accent-color:var(--ce-teal);padding:0;height:40px;cursor:pointer}
.ce-editor textarea{resize:vertical;min-height:58px;max-height:160px}
.ce-editor :is(h1,h2,p){margin:0}
.ce-breadcrumb{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--ce-muted);gap:12px;margin-bottom:14px}
.ce-breadcrumb a{display:inline-flex;gap:7px;align-items:center;min-height:28px}
.ce-cart-link{color:var(--ce-teal)!important;font-weight:600}
#cart-count:not(:empty){display:inline-grid;place-items:center;background:var(--ce-soft);border-radius:30px;min-width:22px;height:22px;font-size:11px}
.ce-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 18px}
.ce-heading .ce-eyebrow{color:var(--ce-muted);font-size:12px;margin-bottom:5px}
.ce-heading h1{font:500 28px/1.2 Georgia,serif}
.ce-product-facts{display:flex;align-items:center;gap:14px;font-size:13px;white-space:nowrap}
.ce-product-facts>span{padding-right:14px;border-right:1px solid #d6e2db;color:var(--ce-muted)}
.ce-product-facts strong,.ce-buy-info strong{font-size:20px;color:var(--ce-teal)}
.ce-product-facts small,.ce-buy-info small{font:400 12px Arial,sans-serif;color:var(--ce-muted)}
.ce-card{border:1px solid var(--ce-line);border-radius:20px;background:#fff;box-shadow:0 8px 35px #163b3d05;overflow:hidden}
.ce-workspace{padding:12px 18px 10px;background:linear-gradient(140deg,#f2f6f1,#faf6f2)}
.ce-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.ce-zoom,.ce-view-actions{display:flex;align-items:center;gap:4px}
.ce-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;padding:7px 10px;background:#ffffffc9;border-color:#dce5df;font-size:12px}
.ce-zoom #zoom-label{font-size:11px;min-width:44px;text-align:center;color:var(--ce-muted);font-variant-numeric:tabular-nums}
.ce-zoom :is(#zoom-in,#zoom-out){width:34px;font-size:18px;padding:3px}
.ce-scroll{height:clamp(320px,43vh,490px);overflow:auto;padding:12px 20px 18px;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:#b4c8be transparent}
#canvas-shell{width:max-content;margin:0 auto;background:#fff;box-shadow:0 9px 25px #163b3d24}
.ce-editor .ce-tip{color:var(--ce-muted);font-size:11px;text-align:center;margin:9px 0 0}
.ce-panel{padding:0;margin:0;border:0;min-width:0}
.ce-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0 16px;border-top:1px solid var(--ce-line);border-bottom:1px solid var(--ce-line);gap:4px}
.ce-tabs button{position:relative;border:0;border-radius:0;background:transparent;color:var(--ce-muted);min-height:60px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;padding:10px 4px}
.ce-tabs button:after{content:'';position:absolute;bottom:0;height:3px;left:18%;right:18%;border-radius:4px 4px 0 0;background:transparent}
.ce-tabs button:hover{background:#f7faf8}
.ce-tabs button[aria-selected=true]{color:var(--ce-teal);background:#f2f9f6}
.ce-tabs button[aria-selected=true]:after{background:var(--ce-teal)}
.ce-panels{padding:20px 24px 16px;min-width:0}
.ce-pane{min-width:0;min-height:206px}
.ce-pane-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:15px}
.ce-pane-heading h2{font:500 21px/1.25 Georgia,serif}
.ce-pane-heading p{font-size:12px;color:var(--ce-muted);margin-top:5px}
.ce-chip{padding:7px 11px;background:var(--ce-soft);color:var(--ce-teal);border-radius:30px;font-size:12px;white-space:nowrap}
.ce-editor .ce-hint,.ce-editor .ce-empty-hint{font-size:12px;color:var(--ce-muted);margin:12px 0 0}
.ce-empty-hint{padding:22px;background:#f7faf8;border-radius:12px}
.ce-inline-label{width:210px;flex-shrink:0}
.ce-year-label{width:108px}
.ce-style-shelf{display:flex;align-items:center;gap:9px;min-width:0}
.ce-style-options{display:flex;gap:10px;overflow-x:auto;padding:3px 3px 9px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#bfd1c7 transparent;min-width:0;flex:1}
.ce-style-options button{position:relative;flex:0 0 126px;scroll-snap-align:start;padding:7px;border-radius:12px;border:1px solid var(--ce-line);background:#fff;display:flex;flex-direction:column;gap:6px;align-items:center}
.ce-style-options button[aria-pressed=true]{border-color:var(--ce-teal);box-shadow:0 0 0 1px var(--ce-teal);background:#f3faf7}
.ce-style-options button[aria-pressed=true]:after{content:'✓';position:absolute;right:4px;top:4px;width:19px;height:19px;border:2px solid white;border-radius:50%;color:#fff;background:var(--ce-teal);font-size:11px;display:grid;place-items:center}
.ce-style-options canvas{display:block;width:110px;height:110px;object-fit:contain;border-radius:5px;pointer-events:none}
.ce-style-options span{font-size:11px;font-weight:600;white-space:nowrap}
.ce-year-options button{flex-basis:140px}
.ce-year-options canvas{width:124px;height:69px;background:#eaf0f2}
.ce-editor .ce-shelf-arrow{flex:0 0 30px;width:30px;padding:0;min-height:40px;font-size:24px;border-color:transparent;background:#f4f8f5}
#photo-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#photo-buttons button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:66px;text-align:left;padding:16px;background:#f8faf8;border-style:dashed;border-color:#b8cbc1;font-size:13px}
#photo-buttons button>span:first-child{display:flex;align-items:center;gap:10px}
#photo-buttons button>span:last-child{font-size:12px;color:var(--ce-teal);white-space:nowrap}
#photo-buttons button.ready{border-style:solid;background:var(--ce-soft);border-color:#a0cbbd}
.ce-editor .ce-soft-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--ce-soft);border-color:#cee2d9;color:var(--ce-teal);white-space:nowrap}
#text-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:18px}
.ce-text-style{display:grid;grid-template-columns:minmax(0,1fr) 62px;gap:8px 12px}
.ce-text-style .ce-font-size{grid-column:1/-1}
.ce-decor-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.ce-object-bar{border-top:1px solid #edf1ed;padding:10px 24px;display:flex;align-items:center;gap:10px;font-size:12px}
.ce-object-bar>label{color:var(--ce-muted);flex-shrink:0}
.ce-object-bar select{max-width:350px;padding:8px 10px;font-size:12px;background:#fafbf9;flex:1}
.ce-selected-actions{display:flex;gap:5px;margin-left:auto}
.ce-selected-actions button{padding:8px 10px;font-size:11px;min-height:34px;border-color:transparent;background:#f6f8f5}
.ce-selected-actions #remove:not(:disabled){color:#a13e36}
.ce-status{font-size:12px;line-height:1.45;color:var(--ce-muted);min-height:18px;margin:12px 4px}
.ce-status.error{padding:10px 13px;background:#fff0e9;color:#9d3c25;border-radius:10px}
.ce-buy{position:relative;z-index:1;display:flex;align-items:center;gap:14px;padding:13px 18px;border:1px solid var(--ce-line);border-radius:15px;background:#fffffff5;backdrop-filter:blur(10px);box-shadow:0 6px 26px #163b3d0e}
.ce-buy-info{display:grid;gap:5px;margin-right:auto;min-width:0}
#ce-save{font-size:11px;color:var(--ce-muted);line-height:1.3}
.ce-buy>label{grid-template-columns:auto 65px;align-items:center;gap:9px}
.ce-buy input{text-align:center;height:46px}
.ce-editor .ce-primary,.ce-dialog .ce-primary{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;background:var(--ce-teal);color:#fff;padding:14px 24px;border-radius:10px;font-weight:600;font-size:14px;min-height:46px;text-align:center}
.ce-editor .ce-primary:hover,.ce-dialog .ce-primary:hover{background:#06646a;color:#fff}
.ce-dialog{border:0;border-radius:20px;padding:24px;box-shadow:0 25px 80px #163b3d33;width:min(860px,94vw);max-height:90dvh;font:14px Arial,Helvetica,sans-serif}
.ce-dialog::backdrop{background:#163b3d80;backdrop-filter:blur(4px)}
.ce-dialog header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.ce-dialog h2{font:400 26px/1.2 Georgia,serif;margin:0}
.ce-dialog header button{min-width:40px;font-size:22px;line-height:1}
#gallery-search{width:100%}
#gallery-items{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:15px}
#gallery-items button{padding:7px;overflow:hidden}
#gallery-items img{width:100%;height:100px;object-fit:contain;background:#fafbf9}
#gallery-items small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;margin-top:5px}
#gallery-more{display:block;margin:20px auto 0}
#preview-dialog{width:min(700px,95vw)}
#preview-image{display:block;width:100%;height:auto}
#added-dialog{width:min(430px,92vw);text-align:center;padding:30px}
#added-dialog p{color:var(--ce-muted);line-height:1.6;margin:14px 0}
#added-dialog a,#added-dialog button{display:block;margin:18px auto 0}
.ce-success-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--ce-soft);color:var(--ce-teal);font-size:25px;margin:0 auto 15px}
@media(max-width:650px){
 .ce-editor{width:100%;padding:12px 12px 15px}
 .ce-breadcrumb{margin-bottom:10px;font-size:11px}
 .ce-heading{gap:8px;align-items:flex-start;margin-bottom:13px}
 .ce-heading h1{font-size:22px}
 .ce-heading .ce-eyebrow{font-size:10px}
 .ce-product-facts{display:grid;gap:5px;text-align:right;font-size:11px}
 .ce-product-facts>span{padding:0;border:0}.ce-product-facts strong{font-size:16px}.ce-product-facts small{display:none}
 .ce-card{border-radius:16px}
 .ce-workspace{padding:9px 8px 8px}
 .ce-toolbar{margin:0 1px 5px;gap:4px}
 .ce-toolbar button{padding:7px 8px;min-height:34px}
 .ce-view-actions{gap:4px}.ce-view-actions svg{width:18px;height:18px}
 .ce-scroll{height:clamp(250px,36svh,380px);padding:8px 12px 12px}
 .ce-editor .ce-tip{font-size:9px;margin-top:7px}
 .ce-tabs{padding:0 3px;gap:0}
 .ce-tabs button{flex-direction:column;gap:5px;font-size:10px;min-height:61px;padding:8px 0}
 .ce-tabs svg{width:20px;height:20px}
 .ce-panels{padding:15px 12px 10px}
 .ce-pane{min-height:210px}
 .ce-pane-heading{gap:10px;align-items:flex-start;margin-bottom:12px}
 .ce-pane-heading h2{font-size:19px}.ce-pane-heading p{font-size:11px}
 .ce-inline-label{width:156px;font-size:10px}.ce-inline-label select{padding:9px 5px;font-size:12px}
 .ce-year-label{width:90px}.ce-year-label input{font-size:16px}
 .ce-style-shelf{gap:3px}.ce-editor .ce-shelf-arrow{flex-basis:23px;width:23px;min-height:38px}
 .ce-style-options{gap:8px}.ce-style-options button{flex-basis:116px;padding:6px}
 .ce-style-options canvas{width:100px;height:100px}.ce-style-options span{font-size:10px}
 .ce-year-options button{flex-basis:126px}.ce-year-options canvas{width:110px;height:68px}
 #photo-buttons{gap:8px}#photo-buttons button{padding:12px 9px;flex-direction:column;gap:7px;align-items:flex-start;font-size:12px;min-height:78px}
 #photo-buttons svg{width:18px;height:18px}
 .ce-editor .ce-hint,.ce-editor .ce-empty-hint{font-size:11px}
 #ce-pane-text .ce-pane-heading{align-items:center}#ce-pane-text .ce-pane-heading p{display:none}
 #text-controls{grid-template-columns:1fr;gap:9px}.ce-editor textarea{font-size:16px}
 .ce-text-style{grid-template-columns:minmax(0,1fr) 45px minmax(75px,.7fr);gap:8px}
 .ce-text-style .ce-font-size{grid-column:auto}
 .ce-text-style select{font-size:14px;padding:10px 5px}
 .ce-decor-actions{gap:9px;margin-top:18px}.ce-decor-actions button{font-size:12px}
 .ce-object-bar{padding:9px 12px;gap:7px;flex-wrap:wrap}
 .ce-object-bar>label{font-size:10px}.ce-object-bar select{font-size:11px;max-width:none}
 .ce-selected-actions{width:100%;justify-content:flex-end}
 .ce-selected-actions:has(button:not(:disabled)){display:flex}.ce-selected-actions:not(:has(button:not(:disabled))){display:none}
 .ce-status{font-size:11px;margin:10px 2px}
 .ce-buy{gap:10px;padding:12px;border-radius:14px;flex-wrap:wrap}
 .ce-buy-info{flex:1;gap:4px}.ce-buy-info strong{font-size:18px}#ce-save{font-size:10px}
 .ce-buy>label{font-size:11px;grid-template-columns:auto 55px;gap:7px}
 .ce-buy input{font-size:16px;height:40px;padding:8px}
 .ce-buy .ce-primary{width:100%;min-height:46px}
 .ce-dialog{padding:20px}.ce-dialog h2{font-size:23px}#gallery-items{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
}
@media(max-width:370px){.ce-editor{padding-left:8px;padding-right:8px}.ce-heading h1{font-size:20px}.ce-inline-label{width:139px}.ce-year-label{width:80px}.ce-toolbar button{padding:7px}.ce-toolbar #zoom-label{min-width:36px}}
@media(prefers-reduced-motion:reduce){.ce-editor button{transition:none}}
