/* Responsive school e-RPH workspace. All data and actions use existing handlers. */
.saas-wrap:has(#saasContent #erphSaasRoot){max-width:1520px;width:100%;box-sizing:border-box}
#saasContent:has(#erphSaasRoot){padding:0;background:transparent;border:0;box-shadow:none;min-width:0}
#erphSaasRoot{--erph-accent:#2563eb;min-width:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
#erphSaasRoot .erph-shell{border-radius:24px;border:1px solid #dce4ee;box-shadow:0 16px 48px #1725380b;background:#f5f7fb}
#erphSaasRoot .erph-head{padding:28px 32px;background:linear-gradient(120deg,#101d37,#172b50);color:#f8fafc}
#erphSaasRoot .erph-head h3{font-size:clamp(24px,2.5vw,34px);letter-spacing:-.8px;font-weight:750;margin:7px 0 8px}
#erphSaasRoot .erph-head p{font-size:14px;line-height:1.6;color:#cbd8ec;max-width:65ch}
.erph-workspace-kicker{font-size:11px;letter-spacing:1.6px;font-weight:750;color:#93c5fd;text-transform:uppercase}
#erphSaasRoot .erph-meta{gap:8px;margin-top:18px}
#erphSaasRoot .erph-chip{padding:8px 12px;border:1px solid #ffffff20;background:#ffffff0a;font-size:12px;font-weight:600;overflow-wrap:anywhere;max-width:100%}
#erphSaasRoot .erph-tabs{gap:6px;padding:14px 24px;background:#fff;border-bottom:1px solid #e5ebf3}
#erphSaasRoot .erph-tab{min-height:44px;padding:11px 14px;font-size:13px;font-weight:650;background:transparent;color:#526278;border-radius:12px}
#erphSaasRoot .erph-tab.active{background:#eff6ff;color:#1d4ed8;box-shadow:inset 0 0 0 1px #bfdbfe}
#erphSaasRoot .erph-body{padding:24px 28px;min-width:0;background:#f5f7fb}
#erphSaasRoot .erph-card{padding:20px;border-radius:18px;border-color:#dfe6f0;box-shadow:0 4px 18px #17253804}
#erphSaasRoot .erph-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
#erphSaasRoot .erph-grid>*{min-width:0}
#erphSaasRoot .erph-label{font-size:12px;font-weight:650;color:#526278;margin-bottom:8px}
#erphSaasRoot .erph-input,#erphSaasRoot .erph-select,#erphSaasRoot .erph-textarea{min-height:48px;border-radius:12px;padding:12px 14px;border-color:#d9e2ee;background:#fbfcfe;font-size:15px;max-width:100%;min-width:0}
#erphSaasRoot .erph-textarea{min-height:112px;line-height:1.65}
#erphSaasRoot .erph-btn{min-height:44px;border-radius:12px;padding:11px 16px;font-size:13px;font-weight:650;line-height:1.4;white-space:normal}
#erphSaasRoot .erph-primary{background:#2563eb}
#erphSaasRoot .erph-light{background:#edf2f8;color:#334155}
#erphSaasRoot .erph-note{font-size:13px;line-height:1.65;background:#f0f6ff;border-color:#dae7fa;color:#345475}
#erphSaasRoot .erph-toolbar{gap:10px;margin:18px 0}
#erphSaasRoot .erph-asc-tools{gap:12px;margin:20px 0 12px}
#erphSaasRoot .erph-asc-legend{font-size:12px;line-height:1.65;color:#637082;max-width:70ch}
#erphSaasRoot .erph-asc-wrap{padding:14px;background:#fff;border-radius:18px;border-color:#dfe6f0;max-width:100%;overscroll-behavior-x:contain}
#erphSaasRoot .erph-asc{min-width:1120px;gap:10px}
#erphSaasRoot .erph-asc-slot{min-height:78px;border-radius:12px;box-shadow:none}
#erphSaasRoot .erph-asc-slot b{font-size:12px}
#erphSaasRoot .erph-asc-slot small{font-size:10px}
#erphSaasRoot .erph-asc-empty{min-height:78px}
#erphSaasRoot .erph-rph{background:#fff;border-color:#dfe6f0;border-radius:18px;margin:18px 0}
#erphSaasRoot .erph-rph-title{padding:16px 20px;font-size:14px}
#erphSaasRoot .erph-rph-body{padding:20px;gap:14px}
#erphSaasRoot .erph-field{grid-template-columns:180px minmax(0,1fr);gap:20px;padding-bottom:12px}
#erphSaasRoot .erph-field b{font-size:12px}
#erphSaasRoot .erph-field div{font-size:14px;line-height:1.75;overflow-wrap:anywhere;min-width:0}
#erphSaasRoot .erph-table{font-size:13px}
#erphSaasRoot .erph-table td,#erphSaasRoot .erph-table th{padding:12px}
#erphSaasRoot .erph-modal{width:min(980px,100%);padding:28px;border-radius:24px;box-sizing:border-box;max-height:calc(100dvh - 36px)}
#erphSaasRoot .erph-slot-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#erphSaasRoot :is(button,input,select,textarea):focus-visible{outline:3px solid #60a5fa;outline-offset:3px}
.erph-mobile-schedule{display:none}
.erph-mobile-day{padding:16px;background:#fff;border:1px solid #dfe6f0;border-radius:18px;min-width:0}
.erph-mobile-day-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.erph-mobile-day-head button{min-height:44px;flex:1;text-align:left;border:0;background:transparent;color:#172538;font:inherit;font-size:16px;font-weight:750;padding:8px 0}
.erph-mobile-day-head small{font-size:12px;color:#637082;white-space:nowrap}
.erph-mobile-slot{display:flex;gap:14px;width:100%;min-height:72px;padding:14px;margin:8px 0;border:1px solid #d8e5f6;border-radius:14px;background:#f5f9ff;color:#172538;text-align:left;font:inherit;cursor:pointer;box-sizing:border-box}
.erph-mobile-time{flex:0 0 58px;font-size:12px;color:#526278;line-height:1.65}
.erph-mobile-slot-content{flex:1;min-width:0;overflow-wrap:anywhere}
.erph-mobile-slot-content b{display:block;font-size:14px;line-height:1.55}
.erph-mobile-slot-content small{display:block;font-size:12px;line-height:1.65;color:#637082;margin-top:3px}
.erph-mobile-slot.special{background:#fffbeb;border-color:#fde68a}.erph-mobile-slot.cuti{background:#fff1f2;border-color:#fecdd3}
.erph-mobile-empty{font-size:13px;color:#728093;padding:10px 0;line-height:1.6}
.erph-mobile-add{min-height:44px;width:100%;border:1px dashed #c8d6e8;border-radius:12px;background:transparent;color:#2563eb;font:inherit;font-size:13px;font-weight:650;padding:10px;cursor:pointer}
@media(min-width:1200px){#erphSaasRoot .erph-grid{grid-template-columns:minmax(260px,1fr) minmax(0,2fr)}#erphSaasRoot .erph-summary{gap:16px}}
@media(max-width:760px){
 .saas-wrap:has(#saasContent #erphSaasRoot){padding:10px}
 #erphSaasRoot .erph-shell{border-radius:18px}
 #erphSaasRoot .erph-head{padding:22px 18px}#erphSaasRoot .erph-head h3{font-size:26px}
 #erphSaasRoot .erph-head p{font-size:13px}#erphSaasRoot .erph-chip{font-size:11px}
 #erphSaasRoot .erph-tabs{flex-wrap:nowrap;overflow-x:auto;padding:10px 12px;gap:6px;overscroll-behavior-x:contain;scroll-padding:12px}
 #erphSaasRoot .erph-tab{flex:0 0 auto;white-space:nowrap;min-height:44px;font-size:12px}
 #erphSaasRoot .erph-body{padding:16px 12px}#erphSaasRoot .erph-card{padding:16px}
 #erphSaasRoot .erph-grid,#erphSaasRoot .erph-slot-modal-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 #erphSaasRoot .erph-slot-modal-grid .wide{grid-column:1/-1}
 #erphSaasRoot .erph-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 #erphSaasRoot .erph-input,#erphSaasRoot .erph-select,#erphSaasRoot .erph-textarea{font-size:16px}
 #erphSaasRoot .erph-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #erphSaasRoot .erph-toolbar .erph-btn{width:100%;min-width:0;min-height:48px;padding:11px 10px}
 #erphSaasRoot .erph-asc-tools{align-items:stretch;flex-direction:column}
 #erphSaasRoot .erph-asc{display:none}#erphSaasRoot .erph-asc-wrap{padding:0;border:0;background:transparent;overflow:visible}
 .erph-mobile-schedule{display:grid;gap:12px}
 #erphSaasRoot .erph-field{grid-template-columns:minmax(0,1fr);gap:5px}
 #erphSaasRoot .erph-rph-body,#erphSaasRoot .erph-rph-title{padding:16px}
 #erphSaasRoot .erph-modal-bg{padding:8px}
 #erphSaasRoot .erph-modal{padding:20px 16px;max-height:calc(100dvh - 16px);border-radius:18px}
 #erphSaasRoot .erph-mmi-alert.show,#erphSaasRoot .erph-workflow-row{align-items:flex-start;flex-wrap:wrap}
}
@media(max-width:360px){#erphSaasRoot .erph-toolbar{grid-template-columns:minmax(0,1fr)}#erphSaasRoot .erph-head h3{font-size:23px}.erph-mobile-slot{gap:10px;padding:12px}}
html[data-saas-theme="dark"] #erphSaasRoot .erph-body{background:#0c1525}
html[data-saas-theme="dark"] #erphSaasRoot :is(.erph-tabs,.erph-mobile-day,.erph-rph,.erph-asc-wrap){background:#111e32;color:#e2e8f0;border-color:#334155}
html[data-saas-theme="dark"] #erphSaasRoot .erph-tab{color:#bac9df}
html[data-saas-theme="dark"] #erphSaasRoot .erph-tab.active{background:#1e3a5f;color:#bfdbfe;box-shadow:inset 0 0 0 1px #315482}
html[data-saas-theme="dark"] #erphSaasRoot :is(.erph-input,.erph-select,.erph-textarea){background:#152338;color:#f1f5f9;border-color:#475569}
html[data-saas-theme="dark"] #erphSaasRoot .erph-note{background:#162a45;color:#bfdbfe;border-color:#315482}
html[data-saas-theme="dark"] #erphSaasRoot .erph-label{color:#cbd5e1}
html[data-saas-theme="dark"] #erphSaasRoot .erph-mobile-day-head button{color:#f1f5f9}
html[data-saas-theme="dark"] #erphSaasRoot .erph-mobile-slot{background:#162a45;border-color:#315482;color:#e2e8f0}
html[data-saas-theme="dark"] #erphSaasRoot :is(.erph-mobile-time,.erph-mobile-slot-content small,.erph-mobile-day-head small,.erph-asc-legend){color:#b2c1d8}
html[data-saas-theme="dark"] #erphSaasRoot .erph-mobile-add{color:#93c5fd;border-color:#475569}
html[data-saas-theme="dark"] #erphSaasRoot .erph-mobile-slot.special{background:#332916;border-color:#856b28}
html[data-saas-theme="dark"] #erphSaasRoot .erph-mobile-slot.cuti{background:#341c27;border-color:#854151}
@media(prefers-reduced-motion:reduce){#erphSaasRoot *{transition:none!important;animation:none!important}}

/* The module is the real host of e-RPH, rather than #saasContent.
   A transformed host makes its nested fixed popup follow its scroll position. */
#kurikulumModuleContainer:has(#erphSaasRoot){transform:none!important;animation:none!important;box-sizing:border-box}
#erphSaasRoot .erph-modal-bg{inset:0;padding:20px;box-sizing:border-box;align-items:center;justify-content:center}
#erphSaasRoot .erph-modal{display:flex;flex-direction:column;width:min(1200px,100%);max-height:calc(100dvh - 40px);overflow:hidden;padding:0}
#erphSaasRoot .erph-modal-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;flex-shrink:0;border-bottom:1px solid #dfe6f0}
#erphSaasRoot .erph-modal-heading h3{margin:0;font-size:20px;line-height:1.4;overflow-wrap:anywhere}
#erphSaasRoot .erph-modal-close{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:0;border-radius:12px;background:#edf2f8;color:#334155;font:inherit;cursor:pointer}
#erphModalContent{overflow:auto;overscroll-behavior:contain;min-height:0;min-width:0;padding:24px;flex:1 1 auto}
#erphSaasRoot #erphModalActions{margin:0;padding:16px 24px;border-top:1px solid #dfe6f0;flex-shrink:0;background:inherit}
#erphSaasRoot .erph-modal .erph-field{grid-template-columns:150px minmax(0,1fr)}
@media(min-width:761px){
 #kurikulumModuleContainer:has(#erphSaasRoot){left:max(20px,calc((100vw - 1520px)/2));right:max(20px,calc((100vw - 1520px)/2));top:20px;bottom:20px;width:auto;max-height:none;margin:0;padding:18px;border-radius:24px}
 #iosSheetBackdropSaas .ios-sheet{width:min(1120px,calc(100% - 48px));max-height:calc(100dvh - 48px)}
 #iosSheetBackdropSaas .ios-sheet-head{padding:18px 24px;flex-shrink:0}
 #iosSheetBackdropSaas .ios-sheet-title h3{font-size:21px}
 #iosSheetBackdropSaas .ios-sheet-title p{font-size:13px}
 #iosSheetBackdropSaas .ios-sheet-body{padding:24px;min-height:0;overscroll-behavior:contain}
}
@media(max-width:760px){
 #kurikulumModuleContainer:has(#erphSaasRoot){left:6px;right:6px;top:8px;bottom:8px;width:auto;max-height:none;margin:0;padding:6px;border-radius:18px}
 #erphSaasRoot .erph-modal-bg{padding:8px}
 #erphSaasRoot .erph-modal{width:100%;max-height:calc(100dvh - 16px);padding:0}
 #erphSaasRoot .erph-modal-heading{padding:12px 16px;gap:10px}
 #erphSaasRoot .erph-modal-heading h3{font-size:17px}
 #erphModalContent{padding:16px}
 #erphSaasRoot #erphModalActions{padding:12px 16px}
 #erphSaasRoot .erph-modal .erph-field{grid-template-columns:minmax(0,1fr)}
}
html[data-saas-theme="dark"] #erphSaasRoot :is(.erph-modal-heading,#erphModalActions){border-color:#334155}
html[data-saas-theme="dark"] #erphSaasRoot .erph-modal-close{background:#23334a;color:#e2e8f0}
#erphSaasRoot .erph-builder-section{margin-top:20px;padding-top:16px;border-top:1px solid #cbd5e1}
#erphSaasRoot .erph-builder-section h4{margin:0 0 12px;font-size:16px}
#erphSaasRoot .erph-builder-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 18px}
#erphSaasRoot .erph-builder-check{display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid #cbd5e1;border-radius:9px;font-size:13px;cursor:pointer}
#erphSaasRoot .erph-builder-check input{flex:none;margin-top:3px;width:17px;height:17px}
#erphSaasRoot .erph-builder-preview{margin-top:12px;line-height:1.55}
#erphSaasRoot .erph-builder-section .erph-textarea{min-height:112px}
@media(max-width:760px){#erphSaasRoot .erph-builder-checks{grid-template-columns:minmax(0,1fr)}}
/* EduRPH slot editor: fixed heading/footer, only the form body scrolls. */
#erphSaasRoot .erph-script-arabic,#erphSaasRoot .erph-slot-editor-modal .erph-script-arabic{font-family:'Noto Naskh Arabic','Amiri','Traditional Arabic',serif!important;direction:rtl;text-align:right;font-size:18px!important;line-height:1.9}
#erphSaasRoot .erph-script-arabic option{font-family:'Noto Naskh Arabic','Amiri','Traditional Arabic',serif;direction:rtl;text-align:right}
#erphSaasRoot .erph-slot-editor-modal .erph-modal{width:min(1010px,100%);background:#fff;color:#243044;border:2px solid #b9b6d0;border-radius:26px;overflow:hidden}
#erphSaasRoot .erph-slot-editor-modal .erph-modal-heading{background:#201b4b;color:#fff;padding:22px;border:0}
#erphSaasRoot .erph-slot-editor-modal .erph-modal-heading h3{color:#fff;font-size:18px;font-weight:800;letter-spacing:.35px}
#erphSaasRoot .erph-slot-editor-modal .erph-modal-close{background:transparent;color:#dedbec}
#erphSaasRoot .erph-slot-editor-modal #erphModalContent{padding:24px 28px;background:#fff;color:#243044;scrollbar-gutter:stable}
#erphSaasRoot .erph-slot-editor-modal h4{font-size:16px;color:#201b4b;padding-bottom:10px;border-bottom:2px solid #e0e3ff;margin:6px 0 22px}
#erphSaasRoot .erph-slot-editor-modal :is(.erph-select,.erph-input,.erph-textarea){background:#fff;color:#243044;border:1.5px solid #cad5e5;border-radius:14px;min-height:50px;padding:12px 16px;max-width:100%;font-size:14px}
#erphSaasRoot .erph-slot-editor-modal .erph-label{font-weight:750;color:#243044;margin:16px 0 8px}
#erphSaasRoot .erph-slot-editor-modal small{display:block;color:#7d91ad;margin-top:6px;font-size:12px}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-status{padding:18px;background:#fffcf1;border:2px solid #ffd346;border-radius:20px;margin-bottom:22px}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-status .erph-label{margin-top:0;color:#492409}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-status select{border-color:#ffd346}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-arus{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border:2px solid #e0e6f0;border-radius:18px;padding:14px 18px;background:#f7f9fc}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-arus>div{display:flex;gap:8px;flex-wrap:wrap}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-arus-choice{background:#fff;color:#344258;border:1px solid #cad5e5;border-radius:14px;padding:8px 14px}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-arus-choice[aria-pressed="true"]{background:#2563eb;border-color:#2563eb;color:#fff}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-durations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-duration{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;border:2px solid #e0e6f0;border-radius:18px;background:#f7f9fc;cursor:pointer;font-weight:750;text-align:center}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-duration:has(input:checked){background:#fffae9;border-color:#f59e0b;color:#492409}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-duration input{accent-color:#e58b00;width:18px;height:18px}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-curriculum{padding:18px;border:1px solid #d8e4f4;border-radius:22px;background:#f7f9fc}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-section-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-section-head h4{flex:1;margin:0;border:0;min-width:230px}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-section-head label{display:flex;align-items:center;gap:8px;font-size:13px}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-half{grid-column:auto}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-sp-card{position:relative;padding:14px;border:2px solid #c9ceff;border-radius:18px;background:#f2f4ff}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-sp-card .erph-label{padding-right:65px}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-remove{position:absolute;top:20px;right:14px;border:0;background:transparent;color:#ef174c;cursor:pointer;font-weight:700}
#erphSaasRoot .erph-slot-editor-modal .erph-builder-section:has(#erphBuilderActivitySaas){padding:20px;border:2px solid #c9ceff;background:#f5f6ff;border-radius:20px}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-pedagogy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-pedagogy-card{padding:18px;background:#f7f9fc;border:2px solid #e0e6f0;border-radius:18px}
#erphSaasRoot .erph-slot-editor-modal .erph-editor-pedagogy-card .erph-builder-checks{padding:0;border:0}
#erphSaasRoot .erph-slot-editor-modal .erph-builder-checks{display:flex;flex-wrap:wrap;padding:18px;background:#f7f9fc;border:2px solid #e0e6f0;border-radius:18px}
#erphSaasRoot .erph-slot-editor-modal .erph-builder-check{position:relative;display:inline-flex;border-radius:16px;padding:8px 12px;font-size:12px;background:#fff}
#erphSaasRoot .erph-slot-editor-modal .erph-builder-check input{position:absolute;opacity:0;width:1px;height:1px}
#erphSaasRoot .erph-slot-editor-modal .erph-builder-check:has(input:checked){background:#e5edff;border-color:#2563eb;color:#1d4ed8}
#erphSaasRoot .erph-slot-editor-modal .erph-builder-check:focus-within{outline:3px solid #f59e0b;outline-offset:2px}
#erphSaasRoot .erph-slot-editor-modal #erphModalActions{background:#f7f9fc;border-top:2px solid #e0e6f0;padding:20px 22px;display:flex;justify-content:flex-end;gap:12px;flex-shrink:0}
#erphSaasRoot .erph-slot-editor-modal #erphModalActions .erph-primary{background:#059669;color:#fff;border:0;border-radius:14px;padding:16px 28px;font-size:16px;font-weight:800}
#erphSaasRoot .erph-slot-editor-modal #erphModalActions .erph-danger{margin-right:auto;background:#fff;color:#e11d48;border:2px solid #fda4af;border-radius:14px}
#erphSaasRoot .erph-slot-editor-modal .erph-primary{background:#059669;color:#fff}
#erphSaasRoot .erph-slot-editor-modal #erphSlotModalError{color:#b91c1c}
@media(max-width:760px){
 #erphSaasRoot .erph-slot-editor-modal .erph-modal{border-radius:18px}
 #erphSaasRoot .erph-slot-editor-modal #erphModalContent{padding:16px}
 #erphSaasRoot .erph-slot-editor-modal :is(.erph-slot-modal-grid,.erph-manual-grid){grid-template-columns:minmax(0,1fr)}
 #erphSaasRoot .erph-slot-editor-modal .erph-editor-times{grid-template-columns:minmax(0,1fr)}
 #erphSaasRoot .erph-slot-editor-modal .erph-editor-pedagogy{grid-template-columns:minmax(0,1fr)}
 #erphSaasRoot .erph-slot-editor-modal .erph-editor-durations{gap:6px}
 #erphSaasRoot .erph-slot-editor-modal .erph-editor-duration{font-size:12px;padding:10px 4px}
 #erphSaasRoot .erph-slot-editor-modal #erphModalActions{padding:12px;gap:8px;flex-wrap:wrap}
 #erphSaasRoot .erph-slot-editor-modal #erphModalActions .erph-primary{padding:12px 16px;font-size:14px;flex:1}
}

/* Multigrade slot settings: scoped, keyboard-accessible native switch. */
.erph-cantum-setting,.erph-cantum-panel{background:#f0fdfa;border:1px solid #99f6e4;border-radius:16px;padding:18px;margin:18px 0;color:#0f766e}
.erph-cantum-toggle{display:flex;align-items:center;gap:12px;cursor:pointer;position:relative}
.erph-cantum-toggle input{position:absolute;opacity:0;width:44px;height:26px;left:0;margin:0}
.erph-cantum-track{flex:none;width:44px;height:26px;border-radius:20px;background:#64748b;position:relative;transition:background .2s}
.erph-cantum-track:after{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:white;transition:transform .2s}
.erph-cantum-toggle input:checked+.erph-cantum-track{background:#0f766e}
.erph-cantum-toggle input:checked+.erph-cantum-track:after{transform:translateX(18px)}
.erph-cantum-toggle input:focus-visible+.erph-cantum-track{outline:3px solid #0f766e;outline-offset:3px}
.erph-cantum-toggle input:disabled~*{opacity:.55;cursor:not-allowed}
.erph-cantum-badge{display:inline-block;margin-top:10px;padding:4px 10px;border-radius:20px;background:#ccfbf1;color:#115e59}
#erphSaasRoot .erph-slot-editor-modal .erph-cantum-badge{display:inline-block;color:#115e59}
.erph-cantum-panel[hidden]{display:none!important}
.erph-cantum-panel:not([hidden]){animation:erphCantumReveal .2s ease-out}
@keyframes erphCantumReveal{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.erph-cantum-panel:not([hidden]){animation:none}.erph-cantum-track,.erph-cantum-track:after{transition:none}}
@media(max-width:600px){.erph-cantum-panel .erph-slot-modal-grid{grid-template-columns:1fr}.erph-cantum-toggle strong{font-size:14px}}

.erph-cantum-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:10px}.erph-cantum-columns>section,.erph-cantum-columns>div{padding:12px;border:1px solid #99f6e4;border-radius:12px;overflow-wrap:anywhere}.erph-cantum-columns h5{margin:0 0 10px;color:#0f766e}.erph-cantum-phases>section{padding:12px;margin-top:10px;border:1px solid #cbd5e1;border-radius:12px}@media(max-width:600px){.erph-cantum-columns{grid-template-columns:1fr}}

/* Separate buttons keep the remove control accessible without nested buttons. */
.erph-slot-tile{position:relative;min-width:0}.erph-slot-tile>.erph-asc-slot{width:100%;height:100%;padding-right:34px}.erph-mobile-tile>.erph-mobile-slot{padding-right:48px}.erph-slot-remove{position:absolute;right:3px;top:3px;width:32px;height:32px;border:1px solid #fda4af;border-radius:50%;background:#fff1f2;color:#be123c;font:700 23px/1 sans-serif;cursor:pointer}.erph-slot-remove:hover{background:#ffe4e6}.erph-slot-remove:focus-visible{outline:3px solid #0f766e;outline-offset:2px}@media(pointer:coarse){.erph-slot-remove{width:44px;height:44px}.erph-slot-tile>.erph-asc-slot{padding-right:48px}}
