:root{--cal-primary: #2196F3;--cal-primary-hover: #1976D2;--cal-danger: #e74c3c;--cal-topbar-bg: #263238;--cal-topbar-height: 56px;--cal-strip-height: 90px;--cal-canvas-bg: #e8e8e8;--cal-panel-bg: #ffffff;--cal-border: #e0e0e0;--cal-text: #333333;--cal-text-light: #888888;--cal-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--cal-radius: 8px;--cal-accent: #e74c3c}.calendar-editor-page,.calendar-editor-page *,.calendar-editor-page *:before,.calendar-editor-page *:after{box-sizing:border-box!important}.calendar-editor-page{font-family:var(--cal-font)!important;margin:0!important;padding:0!important;width:100vw!important;height:100vh!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;background:var(--cal-canvas-bg)!important;font-size:13px!important;color:var(--cal-text)!important;line-height:1.4!important;letter-spacing:normal!important;min-height:100vh!important;max-width:none!important}.calendar-editor-page .wp-site-blocks,.calendar-editor-page .is-layout-constrained,.calendar-editor-page .is-layout-flow,.calendar-editor-page .has-global-padding,.calendar-editor-page>header,.calendar-editor-page>footer,.calendar-editor-page .wp-block-template-part,.calendar-editor-page .wp-block-navigation,.calendar-editor-page .wp-block-header,.calendar-editor-page .wp-block-footer{display:none!important}.calendar-editor-page a{text-decoration:none!important;color:inherit}.calendar-editor-page svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}html.admin-bar .calendar-editor-page{height:calc(100vh - 32px)!important}.cal-topbar{height:var(--cal-topbar-height);background:var(--cal-topbar-bg);display:flex;align-items:center;justify-content:space-between;padding:0 20px;flex-shrink:0;z-index:100;box-shadow:0 2px 8px #00000040;position:relative}.cal-topbar-left{display:flex;align-items:center;gap:12px;min-width:0}.cal-topbar-left img{max-height:32px;width:auto;display:block}.cal-topbar-left .cal-product-name{color:#fff;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal-topbar-center{display:flex;align-items:center;gap:10px;flex:0 1 auto;min-width:0}.cal-topbar-center .cal-year-label{color:#fff;font-size:16px;font-weight:700;letter-spacing:.5px}.cal-topbar-center .cal-type-label{color:#fff9;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.cal-topbar-right{display:flex;align-items:center;gap:16px}.cal-topbar-price{color:#fff;font-size:16px;font-weight:700;white-space:nowrap}.cal-btn-buy{display:inline-flex;align-items:center;gap:8px;background:var(--cal-danger);color:#fff;font-size:13px;font-weight:700;font-family:var(--cal-font);text-transform:uppercase;letter-spacing:.5px;padding:10px 24px;border:none;border-radius:6px;cursor:pointer;transition:background .2s,box-shadow .2s,transform .1s;white-space:nowrap}.cal-btn-buy:hover{background:#c0392b;box-shadow:0 2px 8px #e74c3c66}.cal-btn-buy:active{transform:scale(.97)}.cal-btn-buy:disabled,.cal-btn-buy.disabled{background:#9e9e9e;cursor:not-allowed;box-shadow:none;opacity:.7}.cal-btn-buy:disabled:hover,.cal-btn-buy.disabled:hover{background:#9e9e9e;box-shadow:none;transform:none}.cal-btn-buy svg{width:16px;height:16px;stroke:#fff}.cal-months-strip{height:var(--cal-strip-height);background:var(--cal-panel-bg);border-bottom:1px solid var(--cal-border);display:flex;align-items:center;flex-shrink:0;position:relative;padding:0 40px;z-index:50}.cal-strip-arrow{position:absolute;top:50%;transform:translateY(-50%);width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:var(--cal-panel-bg);border:1px solid var(--cal-border);border-radius:50%;cursor:pointer;z-index:10;transition:background .15s,border-color .15s,box-shadow .15s;color:var(--cal-text)}.cal-strip-arrow:hover{background:#f5f5f5;border-color:var(--cal-primary);color:var(--cal-primary);box-shadow:0 2px 6px #0000001a}.cal-strip-arrow svg{width:16px;height:16px}.cal-strip-arrow-left{left:4px}.cal-strip-arrow-right{right:4px}#months-track{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;flex:1;padding:8px 4px;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none}#months-track::-webkit-scrollbar{display:none}.cal-progress-wrap{flex-shrink:0;margin-left:12px;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:90px}.cal-progress-text{font-size:11px;font-weight:600;color:var(--cal-text);white-space:nowrap}.cal-progress-bar{width:80px;height:4px;background:var(--cal-border);border-radius:2px;overflow:hidden}.cal-progress-bar-fill{height:100%;background:var(--cal-primary);border-radius:2px;transition:width .3s ease;width:0}.cal-month-card{flex-shrink:0;width:60px;display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer;padding:4px;border-radius:var(--cal-radius);transition:background .15s,transform .1s;position:relative}.cal-month-card:hover{background:#2196f30f;transform:translateY(-1px)}.cal-month-card.active{background:#2196f314}.cal-month-card.active .cal-month-thumb{border-color:var(--cal-primary);box-shadow:0 0 0 2px #2196f340}.cal-month-thumb{width:50px;height:50px;border-radius:6px;overflow:hidden;position:relative;border:2px solid var(--cal-border);background:#f9f9f9;display:flex;align-items:center;justify-content:center;transition:border-color .2s,box-shadow .2s}.cal-month-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--cal-text-light)}.cal-month-empty .cal-month-icon{width:20px;height:20px;opacity:.5}.cal-month-empty .cal-month-num{font-size:16px;font-weight:700;color:var(--cal-border)}.cal-month-img{width:100%;height:100%;object-fit:cover;display:block}.cal-month-check{position:absolute;top:-4px;right:-4px;width:18px;height:18px;background:#4caf50;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid var(--cal-panel-bg)}.cal-month-check svg{width:10px;height:10px;stroke:#fff;stroke-width:3}.cal-month-label{font-size:9px;font-weight:600;color:var(--cal-text-light);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60px;text-transform:uppercase;letter-spacing:.3px}.cal-month-card.active .cal-month-label{color:var(--cal-primary)}.cal-main{flex:1;display:flex;min-height:0;overflow:hidden;background:var(--cal-canvas-bg)}.cal-upload-panel{width:260px;flex-shrink:0;background:var(--cal-panel-bg);border-right:1px solid var(--cal-border);display:flex;flex-direction:column;overflow-y:auto;padding:20px 16px}.cal-upload-panel h3{font-size:13px;font-weight:700;color:var(--cal-text);text-transform:uppercase;letter-spacing:.5px;margin:0 0 14px;padding:0}.cal-upload-zone{border:2px dashed var(--cal-border);border-radius:var(--cal-radius);padding:24px 16px;text-align:center;cursor:pointer;transition:border-color .2s,background .2s;display:flex;flex-direction:column;align-items:center;gap:8px;min-height:120px;justify-content:center;margin-bottom:16px}.cal-upload-zone:hover{border-color:var(--cal-primary);background:#2196f30a}.cal-upload-zone.dragover{border-style:solid;border-color:var(--cal-primary);background:#2196f314}.cal-upload-zone .cal-upload-icon{width:40px;height:40px;color:var(--cal-text-light);transition:color .2s}.cal-upload-zone:hover .cal-upload-icon{color:var(--cal-primary)}.cal-upload-zone .cal-upload-text{font-size:13px;color:var(--cal-text-light);line-height:1.5}.cal-upload-zone .cal-upload-text strong{color:var(--cal-primary);font-weight:600}.cal-upload-zone .cal-upload-hint{font-size:11px;color:#aaa}.cal-upload-panel input[type=file]{display:none}.cal-pool-label{font-size:11px;font-weight:700;color:var(--cal-text-light);text-transform:uppercase;letter-spacing:.5px;margin:0 0 10px}#cal-image-pool{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.cal-pool-thumb{aspect-ratio:1;border-radius:6px;overflow:hidden;cursor:pointer;border:2px solid transparent;transition:border-color .15s,transform .1s,box-shadow .15s;position:relative}.cal-pool-thumb:hover{border-color:var(--cal-primary);transform:scale(1.05);box-shadow:0 2px 8px #00000026}.cal-pool-thumb img{width:100%;height:100%;object-fit:cover;display:block}.cal-preview-area{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;min-width:0;overflow:hidden;position:relative;gap:0}.cal-page-container{background:#fff;border-radius:4px;box-shadow:0 6px 30px #00000026,0 2px 8px #00000014;overflow:hidden;display:flex;flex-direction:column;max-width:500px;width:100%;flex-shrink:0}.cal-photo-area{position:relative;background:#f5f5f5;overflow:hidden}.cal-photo-area canvas{display:block;width:100%!important;height:auto!important}.cal-canvas-wrap{width:100%;display:flex;align-items:center;justify-content:center}.cal-canvas-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;color:var(--cal-text-light);pointer-events:none;z-index:2}.cal-canvas-placeholder .cal-placeholder-icon{width:48px;height:48px;opacity:.3;margin-bottom:8px}.cal-canvas-placeholder h3{font-size:15px;font-weight:600;margin:0 0 4px;color:var(--cal-text)}.cal-canvas-placeholder p{font-size:12px;margin:0}.cal-month-banner{background:var(--cal-accent);color:#fff;font-size:16px;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;padding:10px 16px;text-align:center;transition:background-color .3s}.cal-grid-area{padding:12px 16px 16px}.cal-grid{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px;line-height:1}.cal-grid th{font-size:10px;font-weight:700;text-transform:uppercase;color:var(--cal-text-light);padding:6px 2px;text-align:center;border-bottom:1px solid var(--cal-border);letter-spacing:.3px}.cal-grid th.cal-weekend{color:var(--cal-accent)}.cal-grid td{padding:5px 2px;text-align:center;font-size:11px;font-weight:500;color:var(--cal-text);border-bottom:1px solid rgba(0,0,0,.04)}.cal-grid td:empty{border-bottom:none}.cal-grid td.cal-weekend{color:var(--cal-accent);font-weight:600}.cal-grid tbody tr:last-child td{border-bottom:none}.cal-cover-year{font-size:64px;font-weight:800;color:var(--cal-text);text-align:center;padding:40px 16px;letter-spacing:4px;opacity:.15}.cal-tools-panel{width:220px;flex-shrink:0;background:var(--cal-panel-bg);border-left:1px solid var(--cal-border);display:flex;flex-direction:column;overflow-y:auto;padding:0}.cal-tools-section{padding:16px;border-bottom:1px solid var(--cal-border)}.cal-tools-section:last-child{border-bottom:none}.cal-tools-section h4{font-size:11px;font-weight:700;color:var(--cal-text-light);text-transform:uppercase;letter-spacing:.8px;margin:0 0 12px;padding:0}.cal-zoom-row{display:flex;align-items:center;gap:10px}.cal-zoom-row input[type=range]{flex:1;-webkit-appearance:none;appearance:none;height:4px;background:var(--cal-border);border-radius:2px;outline:none;cursor:pointer}.cal-zoom-row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;background:var(--cal-primary);border-radius:50%;border:2px solid #ffffff;box-shadow:0 1px 3px #0003;cursor:pointer;transition:background .15s,transform .15s}.cal-zoom-row input[type=range]::-webkit-slider-thumb:hover{background:var(--cal-primary-hover);transform:scale(1.15)}.cal-zoom-row input[type=range]::-moz-range-thumb{width:16px;height:16px;background:var(--cal-primary);border-radius:50%;border:2px solid #ffffff;box-shadow:0 1px 3px #0003;cursor:pointer}.cal-btn-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--cal-border);border-radius:var(--cal-radius);background:#fff;color:var(--cal-text);cursor:pointer;transition:background .15s,border-color .15s,color .15s;font-family:var(--cal-font)}.cal-btn-icon:hover{background:#f5f5f5;border-color:var(--cal-primary);color:var(--cal-primary)}.cal-btn-icon:active{background:#eee}.cal-btn-icon svg{width:18px;height:18px}.cal-rotate-row{display:flex;gap:8px}.cal-btn-outline{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:9px 14px;border:1px solid var(--cal-border);border-radius:var(--cal-radius);background:#fff;color:var(--cal-text);font-size:12px;font-weight:600;font-family:var(--cal-font);cursor:pointer;transition:background .15s,border-color .15s,color .15s}.cal-btn-outline:hover{background:#f5f5f5;border-color:var(--cal-primary);color:var(--cal-primary)}.cal-btn-outline:active{background:#eee}.cal-btn-outline svg{width:14px;height:14px}#cal-template-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.cal-template-card{cursor:pointer;border:2px solid var(--cal-border);border-radius:6px;overflow:hidden;transition:border-color .2s,box-shadow .2s,transform .1s}.cal-template-card:hover{border-color:var(--cal-primary);transform:translateY(-1px);box-shadow:0 2px 8px #0000001a}.cal-template-card.active{border-color:var(--cal-primary);box-shadow:0 0 0 2px #2196f34d}.cal-template-preview{padding:8px;background:#fafafa;display:flex;align-items:center;justify-content:center;min-height:48px}.cal-template-name{font-size:10px;font-weight:600;color:var(--cal-text);text-align:center;text-transform:uppercase;letter-spacing:.3px}.cal-bottom-bar{height:44px;background:var(--cal-panel-bg);border-top:1px solid var(--cal-border);display:flex;align-items:center;justify-content:center;gap:24px;flex-shrink:0;padding:0 20px}.cal-current-month-label{font-size:14px;font-weight:600;color:var(--cal-text)}.cal-bottom-zoom{display:flex;align-items:center;gap:8px}.cal-bottom-zoom .cal-btn-icon{width:32px;height:32px}.cal-bottom-zoom .cal-btn-icon svg{width:14px;height:14px}.cal-loading{position:fixed;inset:0;background:#0009;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;z-index:9999;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}.cal-loading.active{opacity:1;visibility:visible}.cal-loading-spinner{width:40px;height:40px;border:3px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:cal-spin .8s linear infinite}.cal-loading-text{color:#fff;font-size:14px;font-weight:500}@keyframes cal-spin{to{transform:rotate(360deg)}}.cal-error-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%) translateY(20px);background:var(--cal-danger);color:#fff;font-size:13px;font-weight:600;font-family:var(--cal-font);padding:12px 24px;border-radius:8px;box-shadow:0 4px 16px #e74c3c66;z-index:10000;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s,transform .3s;max-width:90vw;text-align:center}.cal-error-toast.active{opacity:1;visibility:visible;transform:translate(-50%) translateY(0)}.cal-hidden{display:none!important}.cal-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.calendar-editor-page button{font-family:var(--cal-font)}.cal-upload-panel::-webkit-scrollbar,.cal-tools-panel::-webkit-scrollbar{width:5px}.cal-upload-panel::-webkit-scrollbar-track,.cal-tools-panel::-webkit-scrollbar-track{background:transparent}.cal-upload-panel::-webkit-scrollbar-thumb,.cal-tools-panel::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}.cal-upload-panel::-webkit-scrollbar-thumb:hover,.cal-tools-panel::-webkit-scrollbar-thumb:hover{background:#aaa}@media (max-width: 1024px){.cal-main{flex-direction:column}.cal-upload-panel{width:100%;flex-shrink:0;border-right:none;border-bottom:1px solid var(--cal-border);padding:12px 16px;flex-direction:row;align-items:flex-start;gap:12px;overflow-y:visible;overflow-x:auto;max-height:140px}.cal-upload-panel h3{display:none}.cal-upload-zone{min-width:120px;min-height:80px;padding:12px;margin-bottom:0}#cal-image-pool{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto}.cal-pool-thumb{width:60px;height:60px;flex-shrink:0}.cal-tools-panel{width:100%;border-left:none;border-top:1px solid var(--cal-border);flex-direction:row;overflow-x:auto;overflow-y:visible;padding:0}.cal-tools-section{flex-shrink:0;min-width:160px;border-bottom:none;border-right:1px solid var(--cal-border)}.cal-months-strip{height:76px;padding:0 36px}.cal-month-thumb{width:42px;height:42px}.cal-month-card{width:52px}.cal-preview-area{padding:12px}}@media (max-width: 768px){.cal-topbar{padding:0 12px}.cal-topbar-left .cal-product-name{display:none}.cal-topbar-center{position:static;transform:none}.cal-topbar-center .cal-type-label{display:none}.cal-months-strip{height:70px;padding:0 30px}.cal-month-card{width:46px}.cal-month-thumb{width:36px;height:36px}.cal-month-label{font-size:8px}.cal-progress-wrap{display:none}.cal-upload-panel{max-height:100px;padding:8px 12px}.cal-upload-zone{min-width:80px;min-height:60px;padding:8px}.cal-upload-zone .cal-upload-text{font-size:11px}.cal-upload-zone .cal-upload-icon{width:28px;height:28px}.cal-tools-panel{max-height:100px}.cal-tools-section{padding:10px 12px;min-width:130px}.cal-preview-area{padding:8px}.cal-page-container{max-width:100%}.cal-month-banner{font-size:13px;padding:8px 12px}.cal-grid{font-size:10px}.cal-grid th{font-size:9px;padding:4px 1px}.cal-grid td{padding:3px 1px;font-size:10px}.cal-bottom-bar{height:40px;gap:16px}.cal-current-month-label{font-size:12px}.cal-cover-year{font-size:40px;padding:24px 12px}.cal-btn-buy{padding:8px 16px;font-size:12px}:root{--cal-bottomnav-height: 50px;--cal-drawer-height: 58vh}.cal-tools-panel{position:fixed!important;left:0!important;right:0!important;bottom:-100vh!important;width:100%!important;min-width:0!important;height:var(--cal-drawer-height)!important;max-height:calc(100vh - 180px)!important;z-index:92;flex-direction:column!important;border-left:none!important;border-top:1px solid var(--cal-border, #e0e0e0);border-radius:12px 12px 0 0;box-shadow:0 -8px 24px #0000002e;background:#fff;transition:bottom .28s cubic-bezier(.2,.8,.2,1);overflow:hidden}body.cal-drawer-open .cal-tools-panel{bottom:var(--cal-bottomnav-height)!important}.cal-tools-panel:before{content:"";position:absolute;top:6px;left:50%;transform:translate(-50%);width:36px;height:4px;background:#0000002e;border-radius:2px;z-index:5}.cal-drawer-close{position:absolute;top:4px;right:8px;width:28px;height:28px;border:none;background:transparent;color:#888;font-size:22px;line-height:1;cursor:pointer;z-index:5;border-radius:50%;display:none;align-items:center;justify-content:center}body.cal-drawer-open .cal-drawer-close{display:flex}body.cal-drawer-open:before{content:"";position:fixed;inset:0;background:#00000040;z-index:91}.cal-tools-panel .cal-tool-tabs{position:fixed!important;left:0;right:0;bottom:0;z-index:95;height:var(--cal-bottomnav-height);background:#fff;border-top:1px solid var(--cal-border, #e0e0e0);display:flex!important;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;box-shadow:0 -2px 8px #0000000f;scrollbar-width:none}.cal-tools-panel .cal-tool-tabs::-webkit-scrollbar{display:none}.cal-tool-tab{flex:0 0 25%!important;min-width:70px!important;padding:5px 4px 4px!important;gap:2px;flex-direction:column;border-bottom:none!important;border-top:2px solid transparent!important}.cal-tool-tab svg{width:18px!important;height:18px!important}.cal-tool-tab span{display:block!important;font-size:9px!important}.cal-tool-tab.active{border-top-color:var(--cal-primary, #e63946)!important;background:#e639460f!important}.cal-tool-content{padding-top:22px!important}.cal-tool-panel{padding:12px 14px 24px!important}.cal-main{margin-bottom:var(--cal-bottomnav-height)!important}.cal-bottom-bar{bottom:var(--cal-bottomnav-height)!important}}@media (max-width: 480px){.cal-topbar{padding:6px 8px;flex-wrap:wrap;height:auto}.cal-month-card{width:42px}.cal-month-thumb{width:32px;height:32px}.cal-tool-tab span{font-size:8px!important}}@media (max-width: 920px) and (max-height: 500px) and (orientation: landscape){:root{--cal-drawer-height: 80vh}.cal-months-strip{height:56px;padding:0 24px}.cal-month-thumb{width:28px;height:28px}}
