.teacher-access{margin-top:2rem;padding:1.5rem;background:#fff;border:1px solid #e1e5e1;border-radius:18px;box-shadow:0 14px 38px rgba(36,43,41,.055)}.teacher-access-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem}.teacher-access h3,.teacher-dialog h2{margin:.2rem 0;color:#193b32;font-family:Georgia,"Times New Roman",serif;font-size:2rem}.teacher-access-heading p:last-child{margin:.35rem 0 0;color:#68736f}.teacher-eyebrow{margin:0;color:#254c43;font-size:.7rem;font-weight:800;letter-spacing:.14em}.teacher-primary,.teacher-secondary{min-height:44px;padding:.65rem 1rem;border-radius:10px;font:inherit;font-weight:750;cursor:pointer}.teacher-primary{color:#fff;background:#254c43;border:1px solid #254c43}.teacher-secondary{color:#254c43;background:#fff;border:1px solid #ccd5d1}.teacher-toolbar{margin-top:1.25rem;display:grid;grid-template-columns:minmax(240px,1fr) minmax(180px,260px);gap:.8rem}.teacher-toolbar label>span,#teacherForm label>span{display:block;margin-bottom:.38rem;color:#242b29;font-size:.78rem;font-weight:750}.teacher-toolbar input,.teacher-toolbar select,#teacherForm input{width:100%;min-height:46px;padding:.7rem .85rem;color:#242b29;background:#fff;border:1px solid #ccd4d0;border-radius:10px;font:inherit}.teacher-toolbar input:focus,.teacher-toolbar select:focus,#teacherForm input:focus{outline:none;border-color:#254c43;box-shadow:0 0 0 3px rgba(37,76,67,.13)}.teacher-status{margin-top:1rem;padding:.75rem .85rem;color:#68736f;background:#f4f7f5;border-radius:10px;font-size:.84rem}.teacher-status.is-error{color:#93443e;background:#fbefee}.teachers-list{margin-top:.75rem;display:grid;gap:.65rem}.teacher-row{padding:1rem;display:grid;grid-template-columns:minmax(180px,1.1fr) minmax(220px,1.5fr) auto;align-items:center;gap:1rem;border:1px solid #e3e7e3;border-radius:13px}.teacher-row h4{margin:0;color:#193b32}.teacher-row p{margin:.18rem 0 0;color:#68736f;font-size:.8rem}.teacher-tags{display:flex;flex-wrap:wrap;gap:.35rem}.teacher-tag,.teacher-state{padding:.25rem .5rem;border-radius:999px;color:#254c43;background:#edf4f1;font-size:.7rem;font-weight:750}.teacher-state.pending{color:#805d26;background:#f8eddc}.teacher-state.revoked{color:#874a44;background:#faecea}.teacher-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.4rem}.teacher-actions button{min-height:38px;padding:.45rem .65rem;color:#254c43;background:#fff;border:1px solid #ccd5d1;border-radius:9px;font:inherit;font-size:.74rem;font-weight:700;cursor:pointer}.teacher-modal[hidden]{display:none}.teacher-modal{position:fixed;inset:0;z-index:1800;display:grid;place-items:center;padding:16px}.teacher-modal-backdrop{position:absolute;inset:0;background:rgba(24,42,37,.58)}.teacher-dialog{position:relative;width:min(100%,720px);max-height:90vh;display:flex;flex-direction:column;background:#fff;border-radius:18px;box-shadow:0 30px 90px rgba(20,38,33,.28);overflow:hidden}.teacher-dialog>header{padding:1rem 1.2rem;display:flex;justify-content:space-between;border-bottom:1px solid #e6e8e4}.teacher-dialog h2{font-size:1.65rem}.teacher-dialog header button{width:44px;height:44px;border:0;border-radius:10px;background:#edf3f0;color:#254c43;font-size:1.55rem;cursor:pointer}#teacherForm{padding:1.1rem 1.2rem;display:grid;grid-template-columns:1fr 1fr;gap:.9rem;overflow:auto}#teacherForm fieldset,#teacherSubjects,.teacher-form-error,#teacherForm footer{grid-column:1/-1}#teacherForm fieldset{margin:0;padding:.8rem;border:1px solid #e1e5e1;border-radius:12px}#teacherForm legend,.teacher-subject-group h3{padding:0 .25rem;color:#254c43;font-size:.78rem;font-weight:800}.teacher-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.teacher-check{display:flex;align-items:center;gap:.55rem;padding:.55rem .65rem;background:#f7f8f6;border-radius:9px;font-size:.82rem}.teacher-check input{width:18px!important;min-height:18px!important;height:18px;padding:0}.teacher-subject-group{margin-top:.7rem;padding:.8rem;border:1px solid #e1e5e1;border-radius:12px}.teacher-subject-group h3{margin:0 0 .55rem}.teacher-form-error{padding:.7rem .8rem;color:#93443e;background:#fbefee;border-radius:9px}#teacherForm footer{padding-top:.9rem;display:flex;justify-content:flex-end;gap:.55rem;border-top:1px solid #e6e8e4}body.teacher-modal-open{overflow:hidden}@media(max-width:760px){.teacher-access{padding:1rem}.teacher-access-heading{flex-direction:column}.teacher-access-heading .teacher-primary{width:100%}.teacher-toolbar,#teacherForm{grid-template-columns:1fr}.teacher-row{grid-template-columns:1fr}.teacher-actions{justify-content:flex-start}.teacher-check-grid{grid-template-columns:1fr}#teacherForm label,#teacherForm fieldset,#teacherSubjects,.teacher-form-error,#teacherForm footer{grid-column:auto}#teacherForm footer{flex-direction:column-reverse}#teacherForm footer button{width:100%}}
.teacher-own-scope{margin:0 0 1.5rem;padding:1.1rem 1.2rem;color:#254c43;background:#fff;border:1px solid #dfe5e1;border-radius:14px}.teacher-own-scope p{margin:0;font-size:.68rem;font-weight:800;letter-spacing:.14em}.teacher-own-scope h3{margin:.25rem 0;font:600 1.55rem Georgia,serif}.teacher-own-scope strong{font-size:.82rem}.teacher-own-scope div{margin-top:.65rem;display:flex;flex-wrap:wrap;gap:.4rem}.teacher-own-scope span{padding:.28rem .52rem;background:#edf4f1;border-radius:999px;font-size:.72rem;font-weight:700}

/* Secure teacher invitation link dialog */
.teacher-modal-backdrop{z-index:0}.teacher-dialog{z-index:1;pointer-events:auto}
.teacher-modal:not([hidden]) .teacher-modal-backdrop{animation:teacher-fade-in .2s ease both}.teacher-modal:not([hidden]) .teacher-dialog{animation:teacher-dialog-in .22s cubic-bezier(.2,.8,.2,1) both}.teacher-modal.is-closing .teacher-modal-backdrop{animation:teacher-fade-out .18s ease both}.teacher-modal.is-closing .teacher-dialog{animation:teacher-dialog-out .18s ease both}.teacher-invite-link-dialog{width:min(100%,650px);background:#fffdf9;border:1px solid rgba(230,232,228,.9)}.teacher-invite-link-content{padding:1.25rem}.teacher-invite-link-content>p:first-child{margin:0 0 1.15rem;color:#68736f;line-height:1.55}.teacher-invite-url-label{display:block;margin-bottom:.42rem;color:#254c43;font-size:.78rem;font-weight:800}.teacher-invite-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.65rem}.teacher-invite-url-row input{width:100%;min-width:0;height:48px;padding:0 .9rem;color:#242b29;background:#f8f7f3;border:1px solid #dce1dd;border-radius:11px;font:500 .84rem/1.2 Inter,system-ui,sans-serif}.teacher-invite-url-row input:focus{outline:none;border-color:#254c43;box-shadow:0 0 0 3px rgba(37,76,67,.13)}.teacher-copy-link{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap}.teacher-copy-link svg,.teacher-invite-note svg,.teacher-invite-link-actions a svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.teacher-copy-link .check-icon{display:none}.teacher-copy-link.is-copied{background:#2f705d;border-color:#2f705d}.teacher-copy-link.is-copied .copy-icon{display:none}.teacher-copy-link.is-copied .check-icon{display:block}.teacher-invite-feedback{min-height:1.25rem;margin:.45rem 0 0;color:#2f705d;font-size:.78rem}.teacher-invite-feedback.is-error{color:#93443e}.teacher-invite-note{margin:1rem 0 0!important;padding:.7rem .8rem;display:flex;align-items:flex-start;gap:.55rem;color:#68736f!important;background:#f3f6f3;border-radius:10px;font-size:.78rem;line-height:1.45!important}.teacher-invite-note svg{flex:0 0 auto;color:#254c43}.teacher-invite-link-actions{margin-top:1.15rem;padding-top:1rem;display:flex;justify-content:flex-end;gap:.55rem;border-top:1px solid #e6e8e4}.teacher-invite-link-actions a{display:inline-flex;align-items:center;justify-content:center;gap:.42rem;text-decoration:none}.teacher-primary:focus-visible,.teacher-secondary:focus-visible,.teacher-dialog header button:focus-visible{outline:3px solid rgba(216,185,138,.75);outline-offset:2px}@keyframes teacher-fade-in{from{opacity:0}to{opacity:1}}@keyframes teacher-fade-out{from{opacity:1}to{opacity:0}}@keyframes teacher-dialog-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}@keyframes teacher-dialog-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(8px) scale(.988)}}
@media(max-width:600px){.teacher-invite-link-content{padding:1rem}.teacher-invite-url-row{grid-template-columns:1fr}.teacher-copy-link{width:100%}.teacher-invite-link-actions{flex-direction:column}.teacher-invite-link-actions .teacher-secondary{width:100%}.teacher-invite-link-actions a{order:1}.teacher-invite-link-actions button{order:2}}
@media(prefers-reduced-motion:reduce){.teacher-modal:not([hidden]) .teacher-modal-backdrop,.teacher-modal:not([hidden]) .teacher-dialog,.teacher-modal.is-closing .teacher-modal-backdrop,.teacher-modal.is-closing .teacher-dialog{animation:none}}

/* Dual teacher invitation and approval workflow */
.teacher-heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.6rem}.teacher-tabs{margin:1.25rem 0 .8rem;display:flex;gap:.35rem;padding:.3rem;background:#f3f5f2;border:1px solid #e1e5e1;border-radius:12px}.teacher-tabs button{flex:1;min-height:42px;padding:.55rem .8rem;color:#68736f;background:transparent;border:0;border-radius:9px;font:700 .82rem Inter,system-ui,sans-serif;cursor:pointer}.teacher-tabs button[aria-selected="true"]{color:#fff;background:#254c43;box-shadow:0 4px 14px rgba(37,76,67,.16)}.teacher-link-management{margin-top:1.25rem;padding-top:1.15rem;border-top:1px solid #e6e8e4}.teacher-subheading h4{margin:0;color:#254c43;font:600 1.2rem Georgia,serif}.teacher-subheading p{margin:.25rem 0 .8rem;color:#68736f;font-size:.8rem}.teacher-links-list{display:grid;gap:.55rem}.teacher-link-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem .9rem;background:#fafbf9;border:1px solid #e1e5e1;border-radius:11px}.teacher-link-row>div{min-width:0;display:grid;gap:.15rem}.teacher-link-row strong{color:#254c43;font-size:.85rem}.teacher-link-row span{color:#68736f;font-size:.74rem}.teacher-state.approved{color:#246b52;background:#e8f5ef}.teacher-state.rejected{color:#874a44;background:#faecea}.teacher-small-dialog{width:min(100%,520px)}#generalInviteForm,#teacherApplicationForm{padding:1.1rem 1.2rem;display:grid;grid-template-columns:1fr 1fr;gap:.9rem;overflow:auto}#generalInviteForm label>span,#teacherApplicationForm label>span{display:block;margin-bottom:.38rem;color:#242b29;font-size:.78rem;font-weight:750}#generalInviteForm input,#generalInviteForm select,#teacherApplicationForm input{width:100%;min-height:46px;padding:.7rem .85rem;color:#242b29;background:#fff;border:1px solid #ccd4d0;border-radius:10px;font:inherit}#generalInviteForm input:focus,#generalInviteForm select:focus,#teacherApplicationForm input:focus{outline:none;border-color:#254c43;box-shadow:0 0 0 3px rgba(37,76,67,.13)}#generalInviteForm footer,#generalInviteError,#teacherApplicationForm fieldset,#teacherApplicationSubjects,#teacherApplicationError,#teacherApplicationForm footer{grid-column:1/-1}#generalInviteForm footer,#teacherApplicationForm footer{padding-top:.9rem;display:flex;justify-content:flex-end;gap:.55rem;border-top:1px solid #e6e8e4}.teacher-danger{min-height:44px;padding:.65rem 1rem;color:#874a44;background:#fff;border:1px solid #dfbbb7;border-radius:10px;font:inherit;font-weight:750;cursor:pointer}.teacher-danger:hover{background:#faecea}.teacher-primary:disabled,.teacher-secondary:disabled,.teacher-danger:disabled{opacity:.55;cursor:wait}
@media(max-width:760px){.teacher-heading-actions{width:100%;display:grid;grid-template-columns:1fr}.teacher-heading-actions button{width:100%}.teacher-tabs{display:grid;grid-template-columns:1fr}.teacher-link-row{align-items:stretch;flex-direction:column}.teacher-link-row button{width:100%}#generalInviteForm,#teacherApplicationForm{grid-template-columns:1fr;padding:1rem}#generalInviteForm label,#generalInviteForm footer,#generalInviteError,#teacherApplicationForm label,#teacherApplicationForm fieldset,#teacherApplicationSubjects,#teacherApplicationError,#teacherApplicationForm footer{grid-column:auto}#generalInviteForm footer,#teacherApplicationForm footer{flex-direction:column-reverse}#generalInviteForm footer button,#teacherApplicationForm footer button{width:100%}}
