/* Scoped Teacher Manager editor. Existing list/profile storage stays unchanged. */
#teacherManagerModal[data-tm-editor]{display:flex!important;align-items:center;justify-content:center;padding:16px}
#teacherManagerModal[data-tm-editor]>.sheet{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;height:auto!important;padding:0!important;width:min(100%,760px);max-width:760px;overflow:hidden;max-height:calc(100dvh - 32px);background:#fff;border-radius:16px}
#teacherManagerModal[data-tm-editor]>.sheet>.mhead,#teacherManagerModal[data-tm-editor]>.sheet>.alertManagerToolbar,#teacherManagerModal[data-tm-editor] #teacherManagerMeta,#teacherManagerModal[data-tm-editor] #teacherManagerList,#teacherManagerModal[data-tm-editor] #teacherManagerMsg,#teacherManagerModal[data-tm-editor] #closeTeacherManagerModal{display:none!important}
#teacherManagerForm.tmEditor{--tm-ink:#0a1434;--tm-muted:#586782;--tm-border:#d7dfec;--tm-blue:#0667f9;display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto;gap:0!important;margin:0!important;padding:0!important;border:0!important;max-height:calc(100dvh - 32px);height:min(900px,calc(100dvh - 32px));background:#fff;color:var(--tm-ink);font-family:Arial,Helvetica,sans-serif;min-width:0}
#teacherManagerForm.tmEditor *{box-sizing:border-box}
#teacherManagerForm.tmEditor [hidden]{display:none!important}
#teacherManagerForm .tmEditorHeader{display:flex;align-items:center;gap:14px;padding:17px 22px;min-width:0;border-bottom:1px solid #e8edf4}
#teacherManagerForm .tmEditorHeader h2{font-size:25px;line-height:1.2;letter-spacing:-.6px;margin:0;flex:1;font-weight:750;white-space:nowrap}
#teacherManagerForm .tmEditorHeader select{width:110px;min-height:44px;padding:8px 12px;border:1px solid var(--tm-border);border-radius:9px;color:var(--tm-ink);background:#fff;font-size:17px}
#teacherManagerForm .tmEditorHeader button{width:44px;height:44px;padding:0;border:0;background:transparent;font-size:35px;line-height:1;color:var(--tm-ink);cursor:pointer}
#teacherManagerForm .tmEditorTabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--tm-border);background:#fff}
#teacherManagerForm .tmEditorTabs button{border:0;border-right:1px solid #eef1f6;border-bottom:4px solid transparent;min-height:58px;background:transparent;font-size:17px;font-weight:700;color:var(--tm-muted);cursor:pointer;padding:10px 2px}
#teacherManagerForm .tmEditorTabs button[aria-selected=true]{color:var(--tm-blue);border-bottom-color:var(--tm-blue)}
#teacherManagerForm.tmEditor>.tmSettings{min-height:0;display:block;overflow:hidden;gap:0}
#teacherManagerForm .tmEditorContent{height:100%;overflow:auto;overscroll-behavior:contain;scroll-padding:20px;scrollbar-gutter:stable;min-width:0}
#teacherManagerForm .tmEditorPanel{padding:24px;display:grid;gap:17px;min-width:0}
#teacherManagerForm .tmEditorPanel h3{font-size:24px;line-height:1.25;letter-spacing:-.5px;font-weight:750;margin:0;color:var(--tm-ink)}
#teacherManagerForm .tmSectionHeading{display:flex;justify-content:space-between;align-items:center;gap:12px}
#teacherManagerForm .tmSectionHeading p{margin:7px 0 0;color:var(--tm-muted);font-size:16px}
#teacherManagerForm .tmSectionHeading>span{font-size:15px;color:var(--tm-muted);white-space:nowrap}
#teacherManagerForm.tmEditor .teacherManagerGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#teacherManagerForm.tmEditor .teacherManagerField{min-width:0;display:grid;gap:7px;font-size:15px;font-weight:700}
#teacherManagerForm.tmEditor .teacherManagerField.wide{grid-column:1/-1}
#teacherManagerForm.tmEditor input:not([type=checkbox]),#teacherManagerForm.tmEditor select,#teacherManagerForm.tmEditor textarea{font-size:16px;min-height:46px;width:100%;min-width:0;border:1px solid #cbd5e5;border-radius:8px;padding:10px 12px;background:#fff;color:var(--tm-ink);font-family:inherit}
#teacherManagerForm.tmEditor .tmSettingsField{font-size:15px;gap:8px;color:var(--tm-ink);font-weight:650}
#teacherManagerForm.tmEditor .tmSettingsGrid{gap:14px}
#teacherManagerForm.tmEditor .tmWeek,#teacherManagerForm.tmEditor .tmPilotTaskList{gap:12px;display:grid}
#teacherManagerForm.tmEditor .tmDay,#teacherManagerForm.tmEditor .tmSettingsSection{border:1px solid var(--tm-border);border-radius:10px;padding:0;overflow:hidden;background:#fbfcfe;min-width:0}
#teacherManagerForm.tmEditor .tmSettingsSection[open]{border-color:#b6d1fc}
#teacherManagerForm.tmEditor summary{list-style:none;position:relative;cursor:pointer}
#teacherManagerForm.tmEditor summary::-webkit-details-marker{display:none}
#teacherManagerForm.tmEditor .tmDay>summary,#teacherManagerForm.tmEditor .tmSettingsSection>summary{padding:15px 52px 15px 18px;display:flex;align-items:center;gap:12px;min-height:72px;color:var(--tm-ink);font-size:18px;font-weight:700}
#teacherManagerForm.tmEditor .tmDay>summary>span,#teacherManagerForm.tmEditor .tmSettingsSection>summary>span{min-width:0;flex:1}
#teacherManagerForm.tmEditor .tmDay>summary strong{font-size:19px}
#teacherManagerForm.tmEditor .tmDay>summary small,#teacherManagerForm.tmEditor .tmSettingsSection>summary small{display:block;margin:5px 0 0;font-size:14px;font-weight:400;line-height:1.35;color:var(--tm-muted);overflow-wrap:normal}
#teacherManagerForm.tmEditor summary::after{content:'';position:absolute;right:21px;top:29px;width:10px;height:10px;border-right:2px solid #46546c;border-bottom:2px solid #46546c;transform:rotate(45deg)}
#teacherManagerForm.tmEditor details[open]>summary::after{transform:translateY(5px) rotate(225deg)}
#teacherManagerForm.tmEditor .tmSettingsSection[open]>summary{border-bottom:0;background:#f5f9ff}
#teacherManagerForm.tmEditor .tmSettingsSection>summary>small{flex:1}
#teacherManagerForm.tmEditor [data-tm-task-section]>summary{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:3px 10px}
#teacherManagerForm.tmEditor [data-tm-task-section]>summary>span{grid-column:1;grid-row:1;font-size:18px}
#teacherManagerForm.tmEditor [data-tm-task-section]>summary>small{grid-column:1;grid-row:2;margin:0;font-size:14px}
#teacherManagerForm.tmEditor [data-tm-task-section]>summary>.tmSwitch{grid-column:2;grid-row:1/3}
#teacherManagerForm .tmSwitch{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-height:44px;flex-shrink:0;font-size:15px;font-weight:600;color:var(--tm-ink);cursor:pointer}
#teacherManagerForm .tmSwitch input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;width:46px!important;height:27px!important;min-width:46px;margin:0;border:0;border-radius:30px;background:#ccd1db;transition:background .15s;cursor:pointer;flex-shrink:0}
#teacherManagerForm .tmSwitch input[type=checkbox]::after{content:'';position:absolute;width:21px;height:21px;border-radius:50%;background:#fff;top:3px;left:3px;box-shadow:0 1px 2px #0002;transition:transform .15s}
#teacherManagerForm .tmSwitch input[type=checkbox]:checked{background:var(--tm-blue)}
#teacherManagerForm .tmSwitch input[type=checkbox]:checked::after{transform:translateX(19px)}
#teacherManagerForm .tmSwitch input[type=checkbox]:disabled{cursor:wait;opacity:.55}
#teacherManagerForm.tmEditor :focus-visible{outline:3px solid #80b2ff;outline-offset:3px}
#teacherManagerForm.tmEditor .tmDayShifts{padding:0 18px 17px}
#teacherManagerForm.tmEditor .tmShiftRow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;border:0;align-items:end;padding:10px 0;gap:12px}
#teacherManagerForm.tmEditor .tmShiftRow button{grid-column:auto;width:44px;height:46px;padding:10px;align-self:end;background:#fff;border-color:#d2dae7;display:grid;place-items:center;color:#ed3a45}
#teacherManagerForm .tmShiftRow svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#teacherManagerForm.tmEditor [data-tm-add-shift]{width:100%;margin-top:5px;border-color:#96baff;color:var(--tm-blue);font-size:16px;min-height:44px;background:#f4f8ff}
#teacherManagerForm.tmEditor .tmSettingsBody{padding:16px 18px;gap:14px;display:grid;border:0;margin:0;min-width:0}
#teacherManagerForm.tmEditor .tmSettingsBody p{font-size:13px;line-height:1.5}
#teacherManagerForm .tmSettingsBody:disabled{opacity:.55}
#teacherManagerForm .tmClosedChoice{display:grid;gap:9px;font-size:15px;font-weight:650}
#teacherManagerForm .tmClosedChoice>div{display:grid;grid-template-columns:1fr 1fr;border:1px solid #cbd5e5;border-radius:8px;overflow:hidden}
#teacherManagerForm .tmClosedChoice button{min-height:44px;border:0;background:#fff;color:#41516e;font-size:15px;font-weight:700;cursor:pointer}
#teacherManagerForm .tmClosedChoice button[aria-pressed=true]{background:var(--tm-blue);color:#fff}
#teacherManagerForm.tmEditor .tmTaskAdvanced{border-top:1px solid #e6ebf3}
#teacherManagerForm.tmEditor .tmTaskAdvanced>summary{font-size:14px;min-height:44px;padding:15px 30px 10px 0;color:var(--tm-muted)}
#teacherManagerForm.tmEditor .tmTaskAdvanced>summary::after{top:17px;right:7px;width:7px;height:7px}
#teacherManagerForm.tmEditor .tmTaskAdvanced .tmSettingsBody{padding:12px 0 0}
#teacherManagerForm .tmCreditCard{border-radius:11px;background:#f5f7fa;padding:17px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start}
#teacherManagerForm .tmCreditCard strong{font-size:19px}
#teacherManagerForm .tmCreditCard p{font-size:14px;color:var(--tm-muted);margin:6px 0 10px;line-height:1.4}
#teacherManagerForm .tmCreditCard small{font-size:14px;color:var(--tm-muted)}
#teacherManagerForm .tmCreditCard .tmSwitch{min-height:44px}
#teacherManagerForm .tmCreditCard input:checked{background:#119957!important}
#teacherManagerForm [data-tm-start-field],#teacherManagerForm [data-tm-credit-refresh]{grid-column:1/-1}
#teacherManagerForm [data-tm-credit-refresh]{min-height:44px;border:1px solid #b9cbe6;background:#fff;border-radius:8px;color:var(--tm-blue);font-size:15px;cursor:pointer}
#teacherManagerForm .tmBudgetCaption{background:#f3f6fa;padding:10px 12px;margin:-5px 0 -17px;color:var(--tm-muted);font-size:14px}
#teacherManagerForm .tmAllocations{display:grid}
#teacherManagerForm .tmAllocationRow{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e6ebf3;min-height:72px;padding:10px 11px;gap:15px}
#teacherManagerForm .tmAllocationRow:last-child{border:0}
#teacherManagerForm .tmAllocationTitle{min-width:0;font-size:17px;line-height:1.3}
#teacherManagerForm .tmAllocationTitle strong{font-weight:700}
#teacherManagerForm .tmAllocationTitle small{font-size:15px;margin-top:3px;color:#526583}
#teacherManagerForm .tmAllocationRow .tmSettingsField{display:flex;gap:0;width:124px;flex-shrink:0;border:1px solid #cbd5e5;border-radius:8px;overflow:hidden;align-items:center}
#teacherManagerForm .tmAllocationRow .tmSettingsField input{border:0;border-radius:0;width:85px;min-height:44px;padding:9px 12px;flex:1}
#teacherManagerForm .tmAllocationRow .tmSettingsField span{display:grid;place-items:center;width:33px;align-self:stretch;background:#f4f6fa;color:var(--tm-muted);font-weight:400}
#teacherManagerForm .tmMuted{font-size:13px;color:#8390a7;margin:0}
#teacherManagerForm .tmInvalid{color:#b42332!important}
#teacherManagerForm .tmBonusAdvanced summary{min-height:54px!important;font-size:17px!important;padding-top:12px!important;padding-bottom:12px!important}
#teacherManagerForm .tmBonusAdvanced summary small{margin:0!important;font-size:14px!important}
#teacherManagerForm .tmBonusAdvanced summary::after{top:19px}
#teacherManagerForm .tmEditorFooter{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e6ebf3;background:#fff}
#teacherManagerForm .tmEditorFooter button{min-height:50px;border:1px solid #cbd5e5;background:#fff;border-radius:8px;font-size:17px;font-weight:700;color:#53617c;cursor:pointer;padding:10px}
#teacherManagerForm .tmEditorFooter [data-teacher-save]{background:var(--tm-blue);color:#fff;border-color:var(--tm-blue)}
#teacherManagerForm .tmEditorFooter button:disabled{opacity:.5;cursor:not-allowed}
#teacherManagerForm .tmEditorMessage{grid-column:1/-1;padding:9px 11px;background:#fff8ec;border:1px solid #f0d7a6;border-radius:7px;color:#744b14;font-size:13px;line-height:1.45;margin:0;max-height:110px;overflow:auto}
@media(max-width:600px){#teacherManagerModal[data-tm-editor]{padding:0!important}#teacherManagerModal[data-tm-editor]>.sheet{width:100%;max-height:100dvh;border-radius:0;margin:0}#teacherManagerForm.tmEditor{height:100dvh;max-height:100dvh}#teacherManagerForm .tmEditorHeader{padding:10px 14px;gap:8px}#teacherManagerForm .tmEditorHeader h2{font-size:22px}#teacherManagerForm .tmEditorHeader select{width:83px}#teacherManagerForm .tmEditorTabs button{min-height:52px;font-size:16px}#teacherManagerForm .tmEditorPanel{padding:18px 15px;gap:16px}#teacherManagerForm .tmEditorPanel h3{font-size:23px}#teacherManagerForm.tmEditor .teacherManagerGrid{grid-template-columns:1fr}#teacherManagerForm .tmAllocationRow{padding:10px 7px}#teacherManagerForm .tmAllocationTitle{font-size:16px}#teacherManagerForm .tmAllocationRow .tmSettingsField{width:105px}#teacherManagerForm .tmEditorContent{scrollbar-gutter:auto}}
@media(max-width:350px){#teacherManagerForm .tmEditorHeader h2{font-size:20px}#teacherManagerForm .tmEditorHeader select{width:70px;min-height:44px}#teacherManagerForm .tmEditorHeader button{width:36px;min-width:36px}#teacherManagerForm .tmEditorHeader{gap:5px;padding-left:12px;padding-right:8px}#teacherManagerForm.tmEditor .tmShiftRow{grid-template-columns:minmax(0,1fr) 44px}#teacherManagerForm.tmEditor .tmShiftRow>label{grid-column:1}#teacherManagerForm.tmEditor .tmShiftRow>button{grid-column:2;grid-row:1/3}#teacherManagerForm .tmCreditCard{padding:13px;gap:9px}#teacherManagerForm .tmCreditCard strong{font-size:17px}#teacherManagerForm .tmCreditCard .tmSwitch{gap:6px}#teacherManagerForm.tmEditor .tmSettingsSection>summary{padding-left:13px;padding-right:44px}#teacherManagerForm .tmAllocationRow .tmSettingsField{width:91px}#teacherManagerForm .tmAllocationTitle{font-size:15px}}
@media(prefers-reduced-motion:reduce){#teacherManagerForm .tmSwitch input,#teacherManagerForm .tmSwitch input::after{transition:none}}
#teacherManagerForm .tmDateField{position:relative}
#teacherManagerForm .tmDateField input[type=date],#teacherManagerForm .tmDateField input[type=time]{color:transparent!important}
#teacherManagerForm .tmDateField input[type=date]::-webkit-datetime-edit,#teacherManagerForm .tmDateField input[type=time]::-webkit-datetime-edit{color:transparent}
#teacherManagerForm .tmDateDisplay{position:absolute;bottom:14px;left:13px;pointer-events:none;font-size:16px;line-height:18px;font-weight:400;color:var(--tm-ink);background:#fff;max-width:calc(100% - 48px)}
@media(max-width:350px){#teacherManagerForm .tmEditorHeader h2{font-size:19px}#teacherManagerForm .tmEditorHeader button{width:44px;min-width:44px}}
#teacherManagerForm.tmEditor .tmDay[open]>summary small{display:none}
#teacherManagerForm .tmUnitField{display:flex;border:1px solid #cbd5e5;border-radius:8px;overflow:hidden}
#teacherManagerForm.tmEditor .tmUnitField input{border:0;border-radius:0;flex:1}
#teacherManagerForm .tmUnitField>span{display:grid;place-items:center;padding:0 13px;background:#eef1f6;color:#485872;font-weight:600}
#teacherManagerForm .tmDiscardDialog{width:min(360px,calc(100vw - 32px));border:1px solid #d7dfec;border-radius:14px;padding:22px;color:#0a1434;box-shadow:0 20px 70px #08163133}
#teacherManagerForm .tmDiscardDialog::backdrop{background:#07152f66}
#teacherManagerForm .tmDiscardDialog h3{font-size:21px;margin:0 0 12px}
#teacherManagerForm .tmDiscardDialog p{font-size:15px;line-height:1.5;margin:0 0 20px}
#teacherManagerForm .tmDiscardDialog>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#teacherManagerForm .tmDiscardDialog button{min-height:46px;border:1px solid #cbd5e5;border-radius:8px;background:#fff;color:#33435f;font-size:15px;font-weight:700;cursor:pointer}
#teacherManagerForm .tmDiscardDialog [data-discard]{background:#0667f9;border-color:#0667f9;color:#fff}
#teacherManagerForm.tmEditor .tmEditorHeader select{width:110px;max-width:110px;flex:none}
@media(max-width:600px){#teacherManagerForm.tmEditor .tmEditorHeader select{width:83px;max-width:83px}#teacherManagerForm .tmEditorHeader{padding-top:max(10px,var(--protiva-safe-top,env(safe-area-inset-top)))}}
@media(max-width:350px){#teacherManagerForm.tmEditor .tmEditorHeader select{width:70px;max-width:70px}}
#teacherManagerList .tmCreditChip[data-status=on]{background:#e9f8ef;color:#157343}
#teacherManagerList .tmCreditChip[data-status=scheduled]{background:#edf4ff;color:#155cbd}
#teacherManagerForm .tmDateField input:focus{color:var(--tm-ink)!important}
#teacherManagerForm .tmDateField input:focus::-webkit-datetime-edit{color:var(--tm-ink)}
#teacherManagerForm .tmDateField input:focus+.tmDateDisplay{visibility:hidden}
#teacherManagerForm.tmEditor input:not([type=checkbox]),#teacherManagerForm.tmEditor select,#teacherManagerForm.tmEditor textarea{font-weight:400}
#teacherManagerForm .tmEditorTabs button{border-radius:0}

/* Compact Manager controls; all changes stay inside this editor. */
#teacherManagerForm .tmEditorHeader{padding:12px 18px;gap:10px}
#teacherManagerForm .tmEditorHeader h2{font-size:19px;font-weight:600;letter-spacing:-.3px}
#teacherManagerForm .tmEditorTabs button{font-size:15px;min-height:48px;border-bottom-width:3px}
#teacherManagerForm .tmEditorPanel{padding:18px;gap:14px}
#teacherManagerForm .tmEditorPanel h3{font-size:17px;font-weight:600;letter-spacing:0}
#teacherManagerForm .tmSectionHeading p{font-size:14px;margin-top:5px}
#teacherManagerForm .tmSectionHeading>span{font-size:13px}
#teacherManagerForm.tmEditor .tmDay,#teacherManagerForm.tmEditor .tmSettingsSection{border-color:#e0e6ef;border-radius:8px}
#teacherManagerForm.tmEditor .tmDay>summary,#teacherManagerForm.tmEditor .tmSettingsSection>summary{padding:6px 40px 6px 12px;min-height:54px;font-size:14px;font-weight:500;gap:8px}
#teacherManagerForm.tmEditor .tmDay>summary strong{font-size:14px;font-weight:500}
#teacherManagerForm.tmEditor .tmDay>summary small,#teacherManagerForm.tmEditor .tmSettingsSection>summary small{font-size:13px;margin-top:3px}
#teacherManagerForm.tmEditor .tmSettingsBody{padding:10px 12px;gap:10px}
#teacherManagerForm.tmEditor .tmSettingsField,#teacherManagerForm.tmEditor .teacherManagerField{font-size:13px;gap:6px}
#teacherManagerForm.tmEditor input:not([type=checkbox]),#teacherManagerForm.tmEditor select,#teacherManagerForm.tmEditor textarea{min-height:44px;padding:8px 10px;border-color:#d6deea;border-radius:6px}
#teacherManagerForm .tmSwitch{font-size:13px;gap:7px;min-height:44px;min-width:44px}
#teacherManagerForm .tmSwitch input[type=checkbox]{width:38px!important;min-width:38px;height:23px!important}
#teacherManagerForm .tmSwitch input[type=checkbox]::after{width:17px;height:17px}
#teacherManagerForm .tmSwitch input[type=checkbox]:checked::after{transform:translateX(15px)}
#teacherManagerForm.tmEditor .tmShiftRow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 88px;gap:6px;padding:5px 0}
#teacherManagerForm.tmEditor .tmShiftRow button{height:44px}
#teacherManagerForm.tmEditor [data-tm-add-shift]{font-size:14px;border-color:#bfd2f2}
#teacherManagerForm .tmClosedChoice{font-size:13px;gap:6px}
#teacherManagerForm .tmClosedChoice button{font-size:14px;font-weight:600}
#teacherManagerForm .tmCreditCard{padding:13px;border-radius:8px;gap:10px}
#teacherManagerForm .tmCreditCard strong{font-size:15px;font-weight:600}
#teacherManagerForm .tmCreditCard p,#teacherManagerForm .tmCreditCard small{font-size:13px}
#teacherManagerForm .tmCreditCard p{margin:5px 0 7px}
#teacherManagerForm .tmAllocationRow{padding:8px 9px}
#teacherManagerForm .tmAllocationTitle{font-size:14px}
#teacherManagerForm .tmAllocationTitle strong{font-weight:500}
#teacherManagerForm .tmAllocationTitle small,#teacherManagerForm .tmMuted,#teacherManagerForm .tmBudgetCaption{font-size:13px}
#teacherManagerForm .tmEditorFooter{gap:10px;padding:10px 13px max(10px,env(safe-area-inset-bottom))}
#teacherManagerForm .tmEditorFooter button{min-height:44px;font-size:15px;font-weight:650;padding:8px}
#teacherManagerForm .tmWaitRange{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#teacherManagerForm .tmRestartSwitch{justify-content:space-between;text-align:left;font-weight:400}
#teacherManagerForm .tmRestartSwitch input{order:1}
#teacherManagerForm .tmTimeControl{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:3px;min-width:0}
#teacherManagerForm.tmEditor .tmTimeControl input{padding:6px 4px;min-width:0;font-size:14px}
#teacherManagerForm.tmEditor .tmTimeControl select{padding:6px 2px;font-size:13px;min-width:0}
#teacherManagerForm .tmShiftActions{display:flex;gap:0;align-self:end;grid-column:3}
#teacherManagerForm.tmEditor .tmShiftActions button{width:44px;min-width:44px;min-height:44px;height:44px;margin:0;padding:8px;background:transparent;border:0}
#teacherManagerForm.tmEditor .tmShiftActions [data-tm-add-shift]{font-size:24px;font-weight:400;color:var(--tm-blue)}
#teacherManagerForm .tmIncludeClosed{justify-content:space-between;text-align:left;font-size:13px;font-weight:400;min-height:44px;gap:10px}
#teacherManagerForm .tmCompactRow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:end}
#teacherManagerForm .tmCompactRow .tmIncludeClosed{gap:5px;font-size:12px;line-height:1.3}
#teacherManagerForm.tmEditor [data-tm-task-section] .tmSettingsGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#teacherManagerForm .tmSettingsField>span{font-weight:500}
#teacherManagerForm .tmSectionControl{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:14px;width:100%}
#teacherManagerForm .tmSectionControl>.tmSwitch{align-self:center;white-space:nowrap}
#teacherManagerForm .tmSectionControl [hidden]{display:none!important}
#teacherManagerForm [data-tm-task-body]:disabled,#teacherManagerForm [data-account-section-body]:disabled{opacity:.48}
#teacherManagerForm [data-tm-task-body]:disabled .tmSettingsBody:disabled,#teacherManagerForm [data-tm-task-body]:disabled .tmSwitch input:disabled{opacity:1}
#teacherManagerForm .tmSectionOff>.tmSettingsField,#teacherManagerForm .tmSectionOff>.tmAllocations,#teacherManagerForm .tmSectionOff>.tmBonusAdvanced{opacity:.48}
#teacherManagerForm .tmCreditCard>.tmSectionControl{grid-column:1/-1}
#teacherManagerForm .tmCreditCard .tmSectionControl>[data-tm-start-field]{grid-column:auto;width:auto;min-width:0}
#teacherManagerForm .tmCreditCard .tmSectionControl{grid-template-columns:minmax(0,1fr) auto;align-items:end}
#teacherManagerForm .tmEditorFooter{grid-template-columns:1fr 1fr 1fr}
#teacherManagerForm .tmEditorFooter .tmSaveAll{background:#087d89;border-color:#087d89;color:#fff}
#teacherManagerForm .tmEditorMessage{grid-column:1/-1}
#teacherManagerForm .tmEditedMark{display:inline-flex;align-items:center;gap:3px;color:#bd2942;font-size:10px;font-weight:600;vertical-align:middle;margin-left:5px;line-height:1.2;white-space:nowrap}
#teacherManagerForm .tmEditedMark svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
#teacherManagerForm .tmEditorTabs .tmEditedMark{margin-left:4px}
#teacherManagerForm .tmAccountSummaryText{min-width:0;flex:1}
#teacherManagerForm .tmAccountSummaryText [data-account-caps],#teacherManagerForm .tmAccountSummaryText [data-account-estimate]{font-size:11px;line-height:1.4;margin-top:3px}
#teacherManagerForm .tmAccountSummaryText [data-account-estimate]{color:#087d89}
#teacherManagerForm .tmCompactRow .tmUnitField>span{padding:0 7px;font-size:12px;font-weight:400}
@media(max-width:600px){#teacherManagerForm .tmEditorPanel{padding:13px 12px;gap:11px}#teacherManagerForm .tmEditorHeader{padding:8px 12px;padding-top:max(8px,var(--protiva-safe-top,env(safe-area-inset-top)))}#teacherManagerForm .tmEditorHeader h2{font-size:18px}#teacherManagerForm .tmEditorTabs button{font-size:14px;font-weight:600}#teacherManagerForm.tmEditor .tmWeek,#teacherManagerForm.tmEditor .tmPilotTaskList{gap:8px}}
@media(max-width:380px){#teacherManagerForm .tmEditorHeader h2{font-size:17px}#teacherManagerForm.tmEditor .tmShiftRow{grid-template-columns:minmax(0,1fr) 88px}#teacherManagerForm.tmEditor .tmShiftRow>label{grid-column:1}#teacherManagerForm .tmShiftActions{grid-column:2;grid-row:1/3}#teacherManagerForm .tmTimeControl{grid-template-columns:minmax(0,1fr) 60px}}
