
/* Scoped teacher profile redesign. No student, teacher statistics or global styles affected. */
.cz-teacher-profile-v3{width:100%;max-width:1160px;margin-inline:auto;box-sizing:border-box;padding-inline:clamp(4px,1vw,14px)}
.cz-teacher-profile-v3 *{box-sizing:border-box}
.cz-teacher-profile-v3 .p8-profile-hero{min-height:106px;grid-template-columns:70px minmax(0,1fr) auto;gap:18px;padding:22px 25px;border-radius:20px;box-shadow:0 8px 24px rgba(18,29,83,.08)}
.cz-teacher-profile-v3 .cz-profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px 24px;padding:7px 3px 12px;min-width:0;border:0;margin:0}
.cz-teacher-profile-v3 .cz-profile-form-grid>.profile-name-fields,.cz-teacher-profile-v3 .cz-phone-stack,.cz-teacher-profile-v3 .cz-teaching-grid>.p8-wide{grid-column:1/-1}
.cz-teacher-profile-v3 .tool-field{min-width:0;gap:8px}
.cz-teacher-profile-v3 .tool-field>span{font-weight:750;font-size:13px;line-height:1.7;color:var(--ui-text,#192742)}
.cz-teacher-profile-v3 .cz-profile-form-grid input,.cz-teacher-profile-v3 .cz-profile-form-grid select,.cz-teacher-profile-v3 .cz-profile-form-grid textarea{width:100%;max-width:100%;min-width:0;min-height:46px;font-size:14px;border-radius:12px;background:var(--ui-surface,#fff);color:var(--ui-text,#162440);border:1px solid var(--ui-border,#dce2ed)}
.cz-teacher-profile-v3 .cz-profile-form-grid input:focus,.cz-teacher-profile-v3 .cz-profile-form-grid select:focus{border-color:var(--ui-accent,#5557d9);outline:2px solid color-mix(in srgb,var(--ui-accent,#5557d9) 15%, transparent);outline-offset:1px}
.cz-teacher-profile-v3 .cz-phone-stack{display:flex;flex-direction:column;gap:11px;padding:16px 18px;background:var(--ui-surface-2,#f5f7fc);border:1px solid var(--ui-border,#dce2ed);border-radius:15px}
.cz-teacher-profile-v3 .cz-phone-display{width:100%;min-height:46px;display:flex;align-items:center;justify-content:flex-start;padding:11px 15px;border:1px solid var(--ui-border,#dce2ed);background:var(--ui-surface,#fff);border-radius:12px;direction:ltr;text-align:left;font-variant-numeric:tabular-nums;font-weight:750;unicode-bidi:plaintext;overflow-wrap:anywhere}
.cz-teacher-profile-v3 .cz-phone-stack>button,.cz-teacher-profile-v3 .profile-phone-editor button{align-self:flex-start;width:auto;max-width:100%;min-height:40px;white-space:normal;border-radius:10px;padding:8px 13px}
.cz-teacher-profile-v3 .cz-identity-grid>.profile-name-fields{padding-bottom:8px;border-bottom:1px solid var(--ui-border,#dce2ed)}
.cz-teacher-profile-v3 .cz-date-field{position:relative;isolation:isolate}
.cz-teacher-profile-v3 .cz-jalali-picker{position:relative;width:100%}
.cz-teacher-profile-v3 .cz-date-trigger{width:100%;min-height:46px;display:flex;align-items:center;gap:10px;justify-content:flex-start;padding:9px 14px;border:1px solid var(--ui-border,#dce2ed);border-radius:12px;background:var(--ui-surface,#fff);color:var(--ui-text,#162440);font:inherit;text-align:right;cursor:pointer}
.cz-teacher-profile-v3 .cz-date-trigger:disabled{cursor:default;opacity:.85}
.cz-teacher-profile-v3 .cz-calendar-emoji{font-size:22px;line-height:1;color:var(--ui-accent,#5950d0)}
.cz-teacher-profile-v3 .cz-calendar-caret{margin-inline-start:auto;font-size:18px}
.cz-teacher-profile-v3 .cz-calendar-popover{position:absolute;z-index:100;inset-inline-start:0;top:calc(100% + 8px);width:min(350px,calc(100vw - 52px));padding:15px;background:var(--ui-surface,#fff);color:var(--ui-text,#192742);border:1px solid var(--ui-border,#dce2ed);border-radius:16px;box-shadow:0 16px 45px rgba(17,27,62,.18)}
.cz-teacher-profile-v3 .cz-calendar-nav{display:grid;grid-template-columns:35px minmax(0,1fr) 85px 35px;gap:6px;align-items:center;margin-bottom:14px}
.cz-teacher-profile-v3 .cz-calendar-nav select{min-width:0;width:100%;padding:6px;min-height:36px;font:inherit;border:1px solid var(--ui-border,#dce2ed);border-radius:8px;background:var(--ui-surface,#fff);color:var(--ui-text,#192742)}
.cz-teacher-profile-v3 .cz-calendar-nav button{border:1px solid var(--ui-border,#dce2ed);background:var(--ui-surface-2,#f4f5fd);color:var(--ui-text,#192742);border-radius:9px;min-height:35px;cursor:pointer;font-size:20px}
.cz-teacher-profile-v3 .cz-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;direction:rtl;text-align:center}
.cz-teacher-profile-v3 .cz-calendar-days .cz-weekday{font-size:12px;color:var(--ui-text-2,#77819b);font-weight:750;padding:7px 0}
.cz-teacher-profile-v3 .cz-calendar-days button{height:35px;min-height:35px;border:0;background:transparent;color:var(--ui-text,#192742);border-radius:9px;cursor:pointer;font:inherit;font-size:13px;padding:0}
.cz-teacher-profile-v3 .cz-calendar-days button:hover,.cz-teacher-profile-v3 .cz-calendar-days button:focus-visible{background:var(--ui-accent-soft,#eef0ff)}
.cz-teacher-profile-v3 .cz-calendar-days button.is-selected{background:var(--ui-accent,#5252c9);color:white}
.cz-teacher-profile-v3 .cz-calendar-days button:disabled{color:var(--ui-text-3,#a1a7b7);opacity:.45;cursor:default}
.cz-teacher-profile-v3 .cz-calendar-clear{width:100%;margin-top:12px;padding:9px;border:1px solid var(--ui-border,#dce2ed);background:var(--ui-surface-2,#f5f7fc);color:var(--ui-text,#192742);border-radius:9px;cursor:pointer}
.cz-teacher-profile-v3 .cz-profile-form-grid label:has(>div>input){min-width:0}
.cz-teacher-profile-v3 .cz-profile-form-grid label>div>button{margin-top:8px}
.cz-teacher-profile-v3 .p8-actions{display:flex;justify-content:flex-start;gap:10px;flex-wrap:wrap}
.cz-teacher-profile-v3 .p8-actions button{min-height:42px;padding:9px 17px}
@media(max-width:790px){
 .cz-teacher-profile-v3 .cz-profile-form-grid{grid-template-columns:1fr;gap:15px}
 .cz-teacher-profile-v3 .p8-profile-hero{grid-template-columns:64px minmax(0,1fr);padding:17px;gap:12px}
 .cz-teacher-profile-v3 .p8-profile-hero>span{grid-column:1/-1;justify-self:start}
 .cz-teacher-profile-v3 .cz-calendar-popover{inset-inline-start:auto;inset-inline-end:0}
}

.cz-teacher-profile-v3 .cz-sensitive-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch;margin:6px 0 18px}
.cz-teacher-profile-v3 .cz-sensitive-action{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:20px 22px;background:var(--ui-surface,#fff);border:1px solid var(--ui-border,#dce2ed);border-radius:17px;box-shadow:0 5px 18px rgba(16,26,80,.045);min-width:0}
.cz-teacher-profile-v3 .cz-sensitive-action>strong{font-size:15px;font-weight:800;color:var(--ui-text,#172442)}
.cz-teacher-profile-v3 .cz-sensitive-action>p{margin:0;line-height:1.9;color:var(--ui-text-2,#687590);font-size:13px}
.cz-teacher-profile-v3 .cz-sensitive-action>button{margin-top:auto;min-height:44px;padding:9px 19px;max-width:100%;border-radius:11px;white-space:normal;font-weight:700}
.cz-teacher-profile-v3 .cz-sensitive-action>button:disabled{opacity:.6;cursor:default}
.cz-teacher-profile-v3 .cz-phone-change-verified{width:100%;display:flex;flex-direction:column;gap:10px}
.cz-teacher-profile-v3 .cz-phone-change-verified p{margin:0;color:var(--ui-text,#172442);line-height:1.7}
.cz-teacher-profile-v3 .cz-phone-change-verified .profile-phone-editor{width:100%;max-width:100%}
@media(max-width:790px){.cz-teacher-profile-v3 .cz-sensitive-actions{grid-template-columns:1fr;gap:12px}.cz-teacher-profile-v3 .cz-sensitive-action{padding:16px}}
