/* MAPP DB Schedule Widget - v2.0.8 emergency overlay for v2.0.7 patched state */
.mapp-schedule-section{margin:14px 12px;padding:0;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.07)}
.mapp-section-head{padding:14px 15px 5px;display:flex;align-items:center;justify-content:space-between}
.mapp-section-head h2{margin:0;font-size:18px;font-weight:800;color:#111827;letter-spacing:-.04em}
.mapp-schedule-db-widget{padding:10px 12px 14px;background:#fff;color:#111827;font-family:inherit;box-sizing:border-box}
.mapp-sch-cal{border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;background:#fff}
.mapp-sch-top{display:flex;align-items:center;justify-content:space-between;padding:12px;background:#f8fafc;border-bottom:1px solid #e5e7eb}
.mapp-sch-title{font-size:17px;font-weight:800;letter-spacing:-.03em;color:#111827}
.mapp-sch-nav{display:flex;gap:6px}
.mapp-sch-nav button{min-width:34px;height:34px;padding:0 8px;border:1px solid #d1d5db;background:#fff;border-radius:10px;font-size:18px;line-height:1;color:#111827;cursor:pointer}
.mapp-sch-week{display:grid;grid-template-columns:repeat(7,1fr);background:#fbfdff;border-bottom:1px solid #e5e7eb}
.mapp-sch-week div{text-align:center;padding:8px 0;font-size:12px;font-weight:700;color:#6b7280}
.mapp-sch-days{display:grid;grid-template-columns:repeat(7,1fr)}
.mapp-sch-day{appearance:none;-webkit-appearance:none;border:0;font-family:inherit;position:relative;min-height:58px;padding:6px 4px;border-right:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;background:#fff;text-align:left;cursor:pointer;box-sizing:border-box}
.mapp-sch-day:nth-child(7n){border-right:0}
.mapp-sch-day.is-empty{background:#fbfdff;cursor:default}
.mapp-sch-day.is-today{background:#f0f7ff}
.mapp-sch-day.is-selected{outline:2px solid #2563eb;outline-offset:-2px;background:#eff6ff}
.mapp-sch-num{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;font-size:12px;font-weight:800;color:#334155}
.mapp-sch-day.is-today .mapp-sch-num{background:#2563eb;color:#fff}
.mapp-sch-dotwrap{display:flex;gap:3px;flex-wrap:wrap;margin-top:4px}
.mapp-sch-dot{width:6px;height:6px;border-radius:999px;background:#2563eb;display:block}
.mapp-sch-more{font-size:10px;color:#6b7280;margin-top:2px;display:block}
.mapp-sch-list{margin-top:12px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;overflow:hidden}
.mapp-sch-list-title{padding:10px 12px;font-size:14px;font-weight:800;background:#f8fafc;border-bottom:1px solid #e5e7eb;color:#111827}
.mapp-sch-items{padding:8px 10px}
.mapp-sch-item{display:flex;gap:9px;padding:9px 2px;border-bottom:1px solid #f1f5f9;cursor:pointer}
.mapp-sch-item:last-child{border-bottom:0}
.mapp-sch-color{width:5px;border-radius:999px;background:#2563eb;flex:0 0 5px}
.mapp-sch-body{min-width:0;flex:1}
.mapp-sch-item-title{font-size:14px;font-weight:800;color:#111827;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mapp-sch-meta{margin-top:3px;font-size:12px;color:#64748b;line-height:1.35}
.mapp-sch-content{margin-top:5px;font-size:12px;color:#475569;line-height:1.4;white-space:pre-wrap}
.mapp-sch-empty{padding:18px 8px;font-size:13px;color:#64748b;text-align:center}
.mapp-sch-loading{padding:22px 8px;text-align:center;color:#64748b;font-size:13px}
.mapp-sch-error{padding:14px;margin:8px 0;border:1px solid #fecaca;background:#fff1f2;border-radius:12px;color:#991b1b;font-size:13px;line-height:1.45}
.mapp-sch-upcoming{margin-top:12px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;overflow:hidden}
.mapp-sch-upcoming .mapp-sch-list-title{display:flex;align-items:center;justify-content:space-between}
.mapp-sch-badge{font-size:11px;color:#2563eb;background:#eff6ff;border-radius:999px;padding:3px 7px;font-weight:800}
.mapp-sch-admin-wrap{max-width:780px;margin:0 auto;padding:16px 12px 40px;box-sizing:border-box}
.mapp-sch-admin-title{font-size:24px;font-weight:900;margin:0 0 6px;letter-spacing:-.05em;color:#111827}
.mapp-sch-admin-desc{font-size:13px;color:#64748b;margin:0 0 12px}
.mapp-sch-form{border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:14px;margin-bottom:14px;box-shadow:0 6px 18px rgba(15,23,42,.06)}
.mapp-sch-form-row{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.mapp-sch-form-row label,.mapp-sch-check{font-size:13px;font-weight:800;color:#334155}
.mapp-sch-form input[type=text],.mapp-sch-form input[type=date],.mapp-sch-form input[type=time],.mapp-sch-form input[type=number],.mapp-sch-form textarea{width:100%;border:1px solid #d1d5db;border-radius:12px;padding:10px 11px;font-size:15px;box-sizing:border-box;background:#fff;color:#111827}
.mapp-sch-form textarea{resize:vertical;min-height:86px}
.mapp-sch-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center}
.mapp-sch-form-grid.compact{grid-template-columns:auto auto 1fr;margin:5px 0 10px}
.mapp-sch-check{display:flex;align-items:center;gap:6px;margin:0}
.mapp-sch-form-row.color-row{margin:0;align-items:flex-end}.mapp-sch-form-row.color-row input{height:38px;padding:2px}
.mapp-sch-form-actions{display:flex;gap:8px;flex-wrap:wrap}.mapp-sch-form-actions button{border:0;border-radius:12px;padding:10px 14px;font-size:14px;font-weight:800;cursor:pointer}
.mapp-sch-primary{background:#2563eb;color:#fff}.mapp-sch-secondary{background:#e5e7eb;color:#111827}.mapp-sch-danger{background:#ef4444;color:#fff}
@media(max-width:480px){.mapp-sch-day{min-height:51px;padding:5px 3px}.mapp-sch-title{font-size:16px}.mapp-sch-form-grid{grid-template-columns:1fr}.mapp-sch-form-grid.compact{grid-template-columns:1fr 1fr}.mapp-sch-form-row.color-row{grid-column:1 / -1;align-items:stretch}}


/* MAPP v2.0.13 schedule click events */
.mapp-sch-item{width:100%;appearance:none;-webkit-appearance:none;border:0;background:transparent;text-align:left;font-family:inherit;align-items:flex-start;position:relative}
.mapp-sch-item:active{background:#f8fafc}.mapp-sch-item:focus-visible{outline:2px solid #2563eb;outline-offset:2px;border-radius:10px}
.mapp-sch-item .mapp-sch-body,.mapp-sch-body{display:block}.mapp-sch-item-title,.mapp-sch-meta,.mapp-sch-content{display:block}.mapp-sch-chevron{margin-left:auto;color:#94a3b8;font-size:22px;line-height:1;font-weight:800;align-self:center}.mapp-sch-admin-add{display:flex;align-items:center;justify-content:center;margin:8px 2px 4px;padding:11px 12px;border-radius:13px;background:#eff6ff;color:#1d4ed8;text-decoration:none;font-size:13px;font-weight:900;border:1px solid #bfdbfe}.mapp-sch-modal-open{overflow:hidden}.mapp-sch-modal-backdrop{position:fixed;z-index:99999;left:0;right:0;top:0;bottom:0;background:rgba(15,23,42,.48);display:flex;align-items:flex-end;justify-content:center;padding:16px}.mapp-sch-modal{width:100%;max-width:560px;background:#fff;border-radius:22px;padding:16px;box-shadow:0 22px 70px rgba(15,23,42,.32);max-height:82vh;overflow:auto}.mapp-sch-modal-head{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;margin-bottom:8px}.mapp-sch-modal-title{font-size:20px;font-weight:900;line-height:1.25;color:#0f172a;letter-spacing:-.04em}.mapp-sch-modal-close{width:38px;height:38px;border:0;border-radius:999px;background:#f1f5f9;color:#0f172a;font-size:26px;line-height:1;cursor:pointer}.mapp-sch-modal-date{font-size:13px;font-weight:800;color:#2563eb;background:#eff6ff;border-radius:12px;padding:9px 10px;margin:8px 0 12px}.mapp-sch-modal-line{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid #f1f5f9;font-size:14px;color:#334155}.mapp-sch-modal-line b{flex:0 0 44px;color:#64748b}.mapp-sch-modal-content{margin-top:12px;padding:12px;border-radius:14px;background:#f8fafc;color:#334155;font-size:14px;line-height:1.62;white-space:pre-wrap}.mapp-sch-modal-empty{margin-top:12px;padding:14px;border-radius:14px;background:#f8fafc;color:#94a3b8;font-size:13px;text-align:center}.mapp-sch-modal-admin{display:flex;align-items:center;justify-content:center;margin-top:12px;padding:12px;border-radius:14px;background:#2563eb;color:#fff;text-decoration:none;font-size:14px;font-weight:900}@media(min-width:640px){.mapp-sch-modal-backdrop{align-items:center}.mapp-sch-modal{border-radius:24px}}

/* v2.0.14 schedule category/location/filter additions */
.mapp-sch-filter{display:flex;gap:6px;overflow-x:auto;padding:2px 0 10px;margin-top:-2px;-webkit-overflow-scrolling:touch}.mapp-sch-filter button{flex:0 0 auto;border:1px solid #dbe3ef;background:#fff;color:#334155;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900}.mapp-sch-filter button.active{background:#0f172a;color:#fff;border-color:#0f172a}.mapp-sch-submeta{display:block;margin-top:3px;color:#475569;font-size:12px;line-height:1.35}.mapp-sch-submeta b{font-weight:900;color:#1d4ed8}.mapp-sch-form-row select{width:100%;height:42px;border:1px solid #dbe3ef;border-radius:12px;background:#fff;padding:0 12px;font-size:15px;color:#0f172a}.mapp-sch-form-row input:disabled{background:#f1f5f9;color:#94a3b8}.mapp-sch-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.mapp-sch-modal-actions button{border:0;border-radius:12px;padding:11px 10px;font-weight:900}.mapp-sch-modal-share{background:#2563eb;color:#fff}.mapp-sch-modal-copy{background:#f1f5f9;color:#0f172a}.mapp-sch-modal-line b{min-width:42px}.mapp-sch-admin-desc{line-height:1.55}@media(max-width:420px){.mapp-sch-modal-actions{grid-template-columns:1fr}.mapp-sch-filter{margin-left:-2px;margin-right:-2px}}

/* v2.0.16 schedule photo upload + inline expandable detail */
.mapp-sch-thumb{flex:0 0 48px;width:48px;height:48px;border-radius:13px;overflow:hidden;background:#f1f5f9;border:1px solid #e2e8f0;align-self:center}
.mapp-sch-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mapp-sch-item.is-expanded{background:#f8fafc;border-radius:14px}.mapp-sch-item.is-expanded .mapp-sch-chevron{transform:rotate(90deg)}
.mapp-sch-inline-detail{margin:-4px 0 10px 22px;border:1px solid #dbeafe;background:#f8fbff;border-radius:18px;padding:13px;box-shadow:0 8px 22px rgba(37,99,235,.08);animation:mappSchExpand .18s ease-out}
@keyframes mappSchExpand{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.mapp-sch-inline-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:8px}.mapp-sch-inline-title{font-size:17px;font-weight:950;color:#0f172a;line-height:1.25;letter-spacing:-.04em}.mapp-sch-inline-close{width:34px;height:34px;border:0;border-radius:999px;background:#eaf1fb;color:#0f172a;font-size:22px;line-height:1;font-weight:900}.mapp-sch-detail-photo{display:block;margin:4px 0 10px;border-radius:16px;overflow:hidden;background:#e2e8f0;border:1px solid #dbeafe}.mapp-sch-detail-photo img{display:block;width:100%;max-height:360px;object-fit:cover}.mapp-sch-photo-current{display:flex;gap:10px;align-items:center;border:1px solid #e2e8f0;background:#f8fafc;border-radius:14px;padding:10px;margin-top:8px}.mapp-sch-photo-current img{width:78px;height:62px;border-radius:12px;object-fit:cover;background:#e2e8f0}.mapp-sch-photo-current-info{min-width:0;flex:1;font-size:13px;color:#334155}.mapp-sch-help{font-size:12px;color:#64748b;line-height:1.45;margin-top:6px}.mapp-sch-form input[type=file]{width:100%;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;padding:10px;font-size:13px;color:#334155;box-sizing:border-box}.mapp-sch-form input[type=file]::file-selector-button{border:0;background:#2563eb;color:#fff;border-radius:10px;padding:8px 10px;font-weight:900;margin-right:8px}.mapp-sch-modal .mapp-sch-detail-photo{margin-top:8px}@media(max-width:480px){.mapp-sch-thumb{width:42px;height:42px;flex-basis:42px}.mapp-sch-inline-detail{margin-left:0;padding:12px}.mapp-sch-detail-photo img{max-height:300px}.mapp-sch-photo-current{align-items:flex-start}.mapp-sch-photo-current img{width:72px;height:58px}}


/* v2.0.19 schedule calendar date title extraction + visibility */
.mapp-sch-day{min-height:78px;display:flex;flex-direction:column;gap:2px;overflow:hidden}
.mapp-sch-day-events{display:flex;flex-direction:column;gap:2px;margin-top:2px;min-width:0;width:100%}
.mapp-sch-day-title{display:block;max-width:100%;box-sizing:border-box;border-left:0;border-radius:5px;background:#f8fafc;padding:2px 4px;font-size:10.5px;font-weight:800;line-height:1.25;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;letter-spacing:-.04em}
.mapp-sch-day.is-selected .mapp-sch-day-title{background:#dbeafe;color:#0f172a}.mapp-sch-day.is-today .mapp-sch-day-title{background:#e0f2fe}.mapp-sch-more{font-size:10px;color:#6b7280;margin-top:1px;display:block;font-weight:800;line-height:1.2}.mapp-sch-dotwrap{display:none}
@media(max-width:480px){.mapp-sch-day{min-height:70px;padding:4px 3px}.mapp-sch-day-title{font-size:9.5px;padding:2px 3px}.mapp-sch-num{width:20px;height:20px;font-size:11px}.mapp-sch-more{font-size:9.5px}}

/* v2.0.19 schedule visibility / pastor level manager */
.mapp-sch-submeta em{font-style:normal;font-weight:900;color:#7c3aed;background:#f5f3ff;border-radius:999px;padding:2px 6px}
.mapp-sch-form-grid.compact{grid-template-columns:auto minmax(180px,1fr) auto}
@media(max-width:560px){.mapp-sch-form-grid.compact{grid-template-columns:1fr}.mapp-sch-form-row.color-row{align-items:stretch}}

/* v2.0.21 theme integration + pastor admin confirmation flow */
:root{--sch-brand:var(--brand,#2d7a4f);--sch-brand-rgb:45,122,79;--sch-brand-soft:rgba(var(--sch-brand-rgb),.10);--sch-brand-softer:rgba(var(--sch-brand-rgb),.06);--sch-brand-border:rgba(var(--sch-brand-rgb),.24);--sch-brand-shadow:rgba(var(--sch-brand-rgb),.16)}
.mapp-sch-day.is-selected{outline-color:var(--sch-brand);background:var(--sch-brand-soft)}
.mapp-sch-day.is-today{background:var(--sch-brand-softer)}
.mapp-sch-day.is-today .mapp-sch-num,.mapp-sch-primary,.mapp-sch-modal-admin,.mapp-sch-modal-share,.mapp-sch-filter button.active,.mapp-sch-form input[type=file]::file-selector-button{background:var(--sch-brand);color:#fff;border-color:var(--sch-brand)}
.mapp-sch-badge,.mapp-sch-modal-date,.mapp-sch-submeta b,.mapp-sch-admin-add,.mapp-sch-modal-line b{color:var(--sch-brand)}
.mapp-sch-badge,.mapp-sch-admin-add,.mapp-sch-modal-date,.mapp-sch-inline-close{background:var(--sch-brand-soft)}
.mapp-sch-admin-add,.mapp-sch-inline-detail,.mapp-sch-detail-photo{border-color:var(--sch-brand-border)}
.mapp-sch-inline-detail{background:var(--sch-brand-softer);box-shadow:0 8px 22px var(--sch-brand-shadow)}
.mapp-sch-item:focus-visible{outline-color:var(--sch-brand)}
.mapp-sch-day.is-selected .mapp-sch-day-title,.mapp-sch-day.is-today .mapp-sch-day-title{background:var(--sch-brand-soft)}
.mapp-sch-admin-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.mapp-sch-admin-view-btn{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border-radius:13px;background:var(--sch-brand);color:#fff;text-decoration:none;font-size:13px;font-weight:900;box-shadow:0 8px 20px var(--sch-brand-shadow)}
.mapp-sch-save-result{margin-top:12px;border:1px solid var(--sch-brand-border);background:var(--sch-brand-softer);border-radius:16px;padding:12px}
.mapp-sch-save-msg{font-size:14px;font-weight:900;color:#0f172a;margin-bottom:8px}
.mapp-sch-save-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mapp-sch-save-actions a{display:flex;align-items:center;justify-content:center;min-height:40px;border-radius:12px;text-decoration:none;font-size:13px;font-weight:900}.mapp-sch-save-actions a:first-child{background:var(--sch-brand);color:#fff}.mapp-sch-save-actions a:last-child{background:#fff;color:#0f172a;border:1px solid var(--sch-brand-border)}
.mapp-sch-admin-recent{border:1px solid #e5e7eb;border-radius:18px;background:#fff;margin:0 0 14px;overflow:hidden;box-shadow:0 6px 18px rgba(15,23,42,.05)}
.mapp-sch-admin-recent .mapp-sch-list-title{display:flex;align-items:center;justify-content:space-between}.mapp-sch-admin-recent .mapp-sch-list-title a{font-size:12px;color:var(--sch-brand);text-decoration:none;font-weight:900}.mapp-sch-recent-items{padding:8px 10px}.mapp-sch-recent-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f1f5f9}.mapp-sch-recent-item:last-child{border-bottom:0}.mapp-sch-recent-main{display:flex;gap:9px;align-items:flex-start;min-width:0;flex:1}.mapp-sch-recent-text{min-width:0;flex:1}.mapp-sch-recent-title{font-size:14px;font-weight:900;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.03em}.mapp-sch-recent-meta{font-size:12px;color:#64748b;margin-top:3px;line-height:1.35}.mapp-sch-recent-actions{display:flex;gap:6px;flex:0 0 auto}.mapp-sch-recent-actions a{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:34px;border-radius:10px;text-decoration:none;font-size:12px;font-weight:900}.mapp-sch-recent-actions a:first-child{background:var(--sch-brand-soft);color:var(--sch-brand);border:1px solid var(--sch-brand-border)}.mapp-sch-recent-actions a:last-child{background:#f1f5f9;color:#0f172a}
@media(max-width:560px){.mapp-sch-admin-head{display:block}.mapp-sch-admin-view-btn{width:100%;margin-top:10px}.mapp-sch-save-actions{grid-template-columns:1fr}.mapp-sch-recent-item{align-items:flex-start;flex-direction:column}.mapp-sch-recent-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.mapp-sch-recent-actions a{width:100%}}

/* v2.0.27 lunar date input + repeat schedule UI */
.mapp-sch-repeat-box{border:1px solid var(--sch-brand-border);background:var(--sch-brand-softer);border-radius:16px;padding:12px;margin:0 0 12px}
.mapp-sch-lunar-fields,.mapp-sch-repeat-fields{margin-top:10px;padding-top:10px;border-top:1px dashed var(--sch-brand-border)}
.mapp-sch-form-grid.compact3{grid-template-columns:minmax(90px,1fr) minmax(90px,1fr) auto;align-items:end}
.mapp-sch-check.lunar-leap{align-self:end;min-height:42px;display:flex;align-items:center;white-space:nowrap}
.mapp-sch-modal-line span{word-break:keep-all}
@media(max-width:560px){.mapp-sch-form-grid.compact3{grid-template-columns:1fr 1fr}.mapp-sch-check.lunar-leap{grid-column:1 / -1}}


/* v2.0.27 lunar date input improvement */
.mapp-sch-lunar-date-card{background:rgba(45,122,79,.04);border:1px solid var(--sch-brand-border);border-radius:14px;padding:12px}
.mapp-sch-lunar-date-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.mapp-sch-lunar-date-row input[type=number]{width:86px;min-width:86px}
.mapp-sch-lunar-date-row select{width:70px;min-width:70px}
.mapp-sch-lunar-unit{font-size:13px;color:var(--sch-muted);margin-left:-3px}
@media(max-width:560px){.mapp-sch-lunar-date-row{gap:6px}.mapp-sch-lunar-date-row input[type=number]{width:78px;min-width:78px}.mapp-sch-lunar-date-row select{width:64px;min-width:64px}.mapp-sch-lunar-date-row .lunar-leap{width:100%;margin-top:2px}}


/* v2.0.27 schedule defaults + lunar input font alignment */
.mapp-sch-lunar-date-row input[type=number],.mapp-sch-lunar-date-row select{height:42px;border-radius:12px;font-size:15px;line-height:1.2;box-sizing:border-box}
.mapp-sch-lunar-date-row input[type=number]{padding:0 11px;border:1px solid #d1d5db;background:#fff;color:#111827}


/* v2.0.30 start date default + repeat until plus 10 years */


/* v2.0.30 schedule year navigation + larger readable calendar + top save button */
.mapp-sch-top{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:14px;background:linear-gradient(180deg,var(--sch-brand-softer),#fff);border-bottom:1px solid var(--sch-brand-border)}
.mapp-sch-title{font-size:23px;font-weight:950;text-align:center;color:#0f172a;letter-spacing:-.06em;line-height:1.2}
.mapp-sch-date-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mapp-sch-date-controls select{width:100%;height:44px;border:1px solid var(--sch-brand-border);border-radius:13px;background:#fff;color:#0f172a;font-size:17px;font-weight:900;text-align:center;text-align-last:center;padding:0 10px;box-sizing:border-box}
.mapp-sch-nav{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.mapp-sch-nav button{min-width:0;height:43px;padding:0 6px;border:1px solid var(--sch-brand-border);background:#fff;border-radius:12px;font-size:13px;line-height:1.15;font-weight:950;color:#0f172a;cursor:pointer;box-shadow:0 2px 7px rgba(15,23,42,.04)}
.mapp-sch-nav button[data-sch-nav=today]{background:var(--sch-brand);border-color:var(--sch-brand);color:#fff}
.mapp-schedule-db-widget{font-size:16px}
.mapp-sch-week div{font-size:14px;padding:10px 0;font-weight:900;color:#475569}
.mapp-sch-num{width:25px;height:25px;font-size:14px;font-weight:950}
.mapp-sch-day{min-height:88px;padding:7px 5px}
.mapp-sch-day-title{font-size:11.5px;line-height:1.28;padding:3px 5px;border-radius:6px}
.mapp-sch-more{font-size:11px;font-weight:900}
.mapp-sch-list-title{font-size:16px;padding:12px 13px}
.mapp-sch-badge{font-size:12px;padding:4px 8px}
.mapp-sch-item{padding:11px 3px}.mapp-sch-item-title{font-size:16px}.mapp-sch-meta{font-size:13px}.mapp-sch-content{font-size:13px}
.mapp-sch-admin-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.mapp-sch-admin-top-save{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border:0;border-radius:13px;background:var(--sch-brand);color:#fff;font-size:14px;font-weight:950;box-shadow:0 8px 20px var(--sch-brand-shadow);cursor:pointer}
@media(max-width:560px){.mapp-sch-title{font-size:21px}.mapp-sch-date-controls select{height:43px;font-size:16px}.mapp-sch-nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.mapp-sch-nav button{height:40px;font-size:11.5px;padding:0 2px;border-radius:10px}.mapp-sch-day{min-height:82px;padding:5px 3px}.mapp-sch-day-title{font-size:10.8px}.mapp-sch-admin-head-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;margin-top:10px}.mapp-sch-admin-top-save,.mapp-sch-admin-view-btn{width:100%;margin-top:0}}
@media(max-width:380px){.mapp-sch-nav button{font-size:10.5px}.mapp-sch-day{min-height:78px}.mapp-sch-num{width:23px;height:23px;font-size:13px}.mapp-sch-day-title{font-size:10.2px}}


/* v2.0.32 date-cell title visibility fix */
.mapp-sch-day-events,.mapp-sch-day-title{pointer-events:none}
.mapp-sch-day-title{min-height:18px}

/* v2.0.33 권한 진단 안내 */
.mapp-sch-permission{display:flex;gap:6px 10px;align-items:center;flex-wrap:wrap;margin:10px 0 12px;padding:10px 12px;border:1px solid var(--sch-brand-border,rgba(45,122,79,.24));border-radius:14px;background:var(--sch-brand-softer,rgba(45,122,79,.06));font-size:13px;line-height:1.45;color:#334155}
.mapp-sch-permission b{font-size:13px;color:var(--sch-brand,#2d7a4f)}
.mapp-sch-permission span{font-weight:800;color:#0f172a}
.mapp-sch-permission em{font-style:normal;color:#64748b}
.mapp-sch-permission.is-warning{border-color:rgba(245,158,11,.35);background:rgba(245,158,11,.08)}
.mapp-sch-permission.is-warning b{color:#b45309}

/* v2.0.36 schedule compact year/month picker UI: current option pre-positioned, no day-title left deco */
.mapp-sch-top{padding:14px 12px 12px;background:linear-gradient(180deg,var(--sch-brand-softer),#fff)}
.mapp-sch-pickerbar{display:flex;align-items:flex-start;justify-content:center;gap:10px;position:relative;z-index:5}
.mapp-sch-stepper{position:relative;display:grid;grid-template-columns:38px minmax(86px,1fr) 38px;align-items:center;gap:5px;min-width:0}
.mapp-sch-stepper-year{width:178px;max-width:50%}.mapp-sch-stepper-month{width:154px;max-width:44%}
.mapp-sch-arrow,.mapp-sch-picker-label{appearance:none;-webkit-appearance:none;border:1px solid var(--sch-brand-border);background:#fff;color:#0f172a;box-shadow:0 4px 12px rgba(15,23,42,.06);cursor:pointer}
.mapp-sch-arrow{height:42px;border-radius:13px;font-size:22px;font-weight:1000;line-height:1;color:var(--sch-brand)}
.mapp-sch-picker-label{height:42px;border-radius:14px;font-size:22px;font-weight:1000;letter-spacing:-.04em;text-align:center;padding:0 8px;white-space:nowrap}
.mapp-sch-picker-label[aria-expanded="true"]{border-color:var(--sch-brand);box-shadow:0 0 0 3px var(--sch-brand-softer)}
.mapp-sch-pick-panel{display:none;position:absolute;left:0;right:0;top:48px;max-height:270px;overflow-y:auto;padding:8px;border:1px solid var(--sch-brand-border);border-radius:15px;background:#fff;box-shadow:0 18px 36px rgba(15,23,42,.18);z-index:20;box-sizing:border-box;-webkit-overflow-scrolling:touch;scroll-behavior:auto!important}
.mapp-sch-pick-panel.is-open{display:grid;grid-template-columns:1fr;gap:4px}
.mapp-sch-pick-panel.is-month.is-open{grid-template-columns:repeat(2,1fr)}
.mapp-sch-pick-option{border:0;background:#fff;border-radius:10px;min-height:36px;padding:0 8px;font-size:15px;font-weight:850;color:#334155;text-align:center;cursor:pointer}
.mapp-sch-pick-option:hover,.mapp-sch-pick-option:focus{background:var(--sch-brand-softer);outline:none}
.mapp-sch-pick-option.is-current{background:var(--sch-brand);color:#fff;font-weight:1000}
@media(max-width:560px){.mapp-sch-pickerbar{gap:7px}.mapp-sch-stepper{grid-template-columns:34px minmax(72px,1fr) 34px;gap:4px}.mapp-sch-stepper-year{width:164px}.mapp-sch-stepper-month{width:136px}.mapp-sch-arrow{height:40px;font-size:20px;border-radius:12px}.mapp-sch-picker-label{height:40px;font-size:20px;border-radius:13px}.mapp-sch-pick-panel{top:46px;max-height:245px}.mapp-sch-pick-option{font-size:14px;min-height:34px}}
@media(max-width:380px){.mapp-sch-pickerbar{gap:5px}.mapp-sch-stepper{grid-template-columns:30px minmax(64px,1fr) 30px}.mapp-sch-stepper-year{width:145px}.mapp-sch-stepper-month{width:122px}.mapp-sch-arrow{font-size:18px}.mapp-sch-picker-label{font-size:18px;padding:0 4px}}

/* v2.0.37 schedule delete UI */
.mapp-sch-admin-top-delete{height:38px;border:0;border-radius:12px;background:#fee2e2;color:#b91c1c;font-weight:900;padding:0 14px;cursor:pointer;box-shadow:0 6px 14px rgba(185,28,28,.08)}
.mapp-sch-admin-top-delete:active{transform:translateY(1px)}
.mapp-sch-recent-actions button.mapp-sch-recent-delete{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:34px;border-radius:10px;border:1px solid #fecaca;background:#fff1f2;color:#be123c;text-decoration:none;font-size:12px;font-weight:900;cursor:pointer;font-family:inherit}
.mapp-sch-recent-actions button.mapp-sch-recent-delete:active{transform:translateY(1px)}
@media(max-width:560px){.mapp-sch-admin-head-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.mapp-sch-admin-top-save,.mapp-sch-admin-top-delete,.mapp-sch-admin-view-btn{width:100%;margin-top:0}.mapp-sch-admin-view-btn{grid-column:1 / -1}.mapp-sch-recent-actions{grid-template-columns:1fr 1fr 1fr}.mapp-sch-recent-actions button.mapp-sch-recent-delete{width:100%}}

/* v2.0.38 admin popup edit/delete actions from calendar */
.mapp-sch-modal-manage-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.mapp-sch-modal-manage-actions a,.mapp-sch-modal-manage-actions button{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:13px;font-size:14px;font-weight:950;text-decoration:none;font-family:inherit;cursor:pointer}
.mapp-sch-modal-edit{background:var(--sch-brand);color:#fff;border:1px solid var(--sch-brand)}
.mapp-sch-modal-delete{background:#fff1f2;color:#be123c;border:1px solid #fecaca}
.mapp-sch-day-modal-list{display:grid;gap:10px;margin-top:10px}
.mapp-sch-day-modal-item{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;padding:11px}
.mapp-sch-day-modal-main b{display:block;color:#0f172a;font-size:15px;font-weight:950;letter-spacing:-.03em}
.mapp-sch-day-modal-main span{display:block;margin-top:3px;color:#64748b;font-size:12px;line-height:1.35}
.mapp-sch-day-modal-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:9px}
.mapp-sch-day-modal-actions a,.mapp-sch-day-modal-actions button{display:flex;align-items:center;justify-content:center;height:36px;border-radius:11px;border:1px solid #dbeafe;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:950;text-decoration:none;font-family:inherit;cursor:pointer}
.mapp-sch-day-modal-actions a{background:var(--sch-brand);border-color:var(--sch-brand);color:#fff}
.mapp-sch-day-modal-actions button.danger{background:#fff1f2;border-color:#fecaca;color:#be123c}
@media(max-width:420px){.mapp-sch-modal-manage-actions,.mapp-sch-day-modal-actions{grid-template-columns:1fr}.mapp-sch-day-modal-actions a,.mapp-sch-day-modal-actions button{height:38px}}
