/* Account-policy controls are scoped to Teacher Manager. */
#teacherManagerForm .tmEditorTabs{display:flex;overflow-x:auto;overscroll-behavior-x:contain;flex-wrap:nowrap;max-width:100%;scrollbar-width:thin}
#teacherManagerForm .tmEditorTabs button{flex:1 0 94px;padding:12px 10px;white-space:nowrap;font-size:15px}
#teacherManagerForm .tmAccountGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#teacherManagerForm .tmAccountField{display:grid;gap:7px;min-width:0;font-size:14px;font-weight:600}
#teacherManagerForm .tmAccountField>span{line-height:1.4}
#teacherManagerForm .tmAccountFields{border:0;padding:0;margin:0;min-width:0;display:grid;gap:16px}
#teacherManagerForm .tmAccountHint,#teacherManagerForm .tmAccountStatus{font-size:14px;line-height:1.55;color:#586782;margin:0;overflow-wrap:anywhere}
#teacherManagerForm .tmAccountStatus:empty{display:none}
#teacherManagerForm .tmAccountStatus{padding:10px 12px;border-radius:8px;background:#eff8fc}
#teacherManagerForm .tmAccountError{color:#a11d2d;background:#fff0f1}
#teacherManagerForm .tmAccountRows{display:grid;gap:12px}
#teacherManagerForm .tmAccountRow{border:1px solid #d7dfec;border-radius:10px;background:#fbfcfe;min-width:0;overflow:hidden}
#teacherManagerForm .tmAccountRow>summary{display:flex;gap:12px;align-items:center;padding:14px 40px 14px 14px;min-height:74px}
#teacherManagerForm .tmAccountRow>summary>span{min-width:0}
#teacherManagerForm .tmAccountRow>summary strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
#teacherManagerForm .tmAccountRow>summary small{display:block;font-size:13px;line-height:1.5;margin-top:4px;color:#586782}
#teacherManagerForm .tmAccountLevel{display:grid;place-items:center;border-radius:50%;width:38px;height:38px;background:#e2f5f4;color:#087d89;font-weight:700;flex:none}
#teacherManagerForm .tmAccountBody{border-top:1px solid #e0e6ef;padding:16px;display:grid;gap:16px}
#teacherManagerForm .tmAccountToggle{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;line-height:1.45}
#teacherManagerForm .tmAccountToggle input{width:20px;height:20px;flex:none;accent-color:#087d89}
#teacherManagerForm .tmAccountLeaveLabel{display:flex!important;align-items:center;gap:6px}
#teacherManagerForm .tmAccountLeaveIcon{width:16px;height:16px;color:#d43145;stroke:currentColor;fill:none;stroke-width:1.8;flex:none}
#teacherManagerForm .tmAccountAdd,#teacherManagerForm .tmAccountRemove{min-height:44px;padding:10px 14px;border:1px solid #cbd5e5;border-radius:8px;background:#fff;font-size:14px;text-align:center;color:#087d89;cursor:pointer}
#teacherManagerForm .tmAccountRemove{color:#a11d2d;justify-self:start}
#teacherManagerForm .tmEditorFooter .tmAccountSave{min-height:48px;border:0;border-radius:9px;background:#087d89;color:white;font-size:15px;font-weight:700;padding:12px;cursor:pointer}
#teacherManagerForm .tmAccountSave:disabled{opacity:.55;cursor:wait}
@media(max-width:360px){#teacherManagerForm .tmAccountGrid{grid-template-columns:1fr}#teacherManagerForm .tmAccountBody{padding:12px}}
#teacherManagerForm .tmAccountBenefits{display:grid;gap:12px}
#teacherManagerForm .tmAccountBenefits:empty{display:none}
#teacherManagerForm .tmAccountBenefit{display:grid;grid-template-columns:minmax(0,1fr) 96px 40px;gap:8px;align-items:start;min-width:0}
#teacherManagerForm .tmAccountBenefit .tmAccountField>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#teacherManagerForm .tmAccountBenefit input,#teacherManagerForm .tmAccountBenefit select{min-width:0;width:100%;box-sizing:border-box}
#teacherManagerForm .tmAccountBenefitAmount{display:grid;gap:4px;min-width:0}
#teacherManagerForm .tmAccountBenefitAmount select{padding:4px 6px;min-height:28px;font-size:12px;background:#f3f7fa}
#teacherManagerForm .tmAccountIcon{display:grid;place-items:center;width:40px;height:44px;padding:8px;border:1px solid #d7dfec;border-radius:8px;background:#fff;color:#a11d2d;cursor:pointer}
#teacherManagerForm .tmAccountIcon svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none}
#teacherManagerForm .tmAccountAddBenefit{color:#087d89;background:#edf9f8;justify-self:start}
#teacherManagerForm .tmAccountBenefitActions{display:flex;align-items:center;justify-content:space-between;gap:12px}
#teacherManagerForm .tmAccountIcon:disabled{opacity:.5;cursor:default}
#teacherManagerForm .tmAccountBudget{margin:0;border-top:1px solid #dfe7ed;padding-top:10px;font-size:12px;line-height:1.6;color:#4b5e70;overflow-wrap:anywhere}
#teacherManagerForm .tmMilestoneRows summary{min-height:64px}#teacherManagerForm .tmMilestoneCount{display:grid;place-items:center;min-width:46px;min-height:42px;border-radius:10px;background:#e6f7f8;color:#087d92;font-size:21px;font-weight:700}#teacherManagerForm .tmMilestoneInputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px;gap:10px;align-items:end}#teacherManagerForm .tmMilestoneInputs .tmAccountField{font-size:12px;gap:5px}#teacherManagerForm .tmMilestoneDelete{width:34px;height:40px;color:#bd3f53}#teacherManagerForm .tmMilestoneDelete svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}#teacherManagerForm .tmAccountRow[data-account-leave-policy]{margin-bottom:12px}
