.teacher-entry-selector .selector-modal,
#teacherPasswordOverlay .teacher-login-panel{background:#fff!important;color:#1f2937;border:1px solid #e5e7eb;border-radius:20px;box-shadow:0 18px 65px #33415518;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;box-sizing:border-box}
#teacherPasswordOverlay{background:rgba(248,250,252,.94)!important;backdrop-filter:blur(8px)}
.teacher-entry-selector{background:rgba(248,250,252,.94)!important}
.teacher-entry-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.teacher-entry-back,.teacher-entry-close,.teacher-entry-link{border:0;background:transparent;color:#475569;cursor:pointer;font:inherit;padding:8px 4px}
.teacher-entry-close{font-size:28px;line-height:1;width:40px;height:40px}
.teacher-entry-back:hover,.teacher-entry-link:hover{color:#2563eb}
.teacher-login-panel h2{font-size:24px;line-height:1.4;margin:0 0 8px;font-weight:650}
.teacher-entry-name{font-size:18px;color:#475569;margin:0 0 28px}
#teacherEntryForm{display:flex;flex-direction:column;gap:12px}
#teacherEntryForm label{color:#334155;font-size:14px;margin-top:4px}
#teacherEntryForm input{width:100%;min-height:48px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;padding:12px 14px;font:inherit;box-sizing:border-box;outline:none}
#teacherEntryForm input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb14}
#teacherEntryForm .btn-submit{margin-top:16px}
.teacher-login-panel .btn-submit,.teacher-entry-selector .btn-submit{min-height:48px;width:100%;background:#2563eb;color:#fff;border:0;border-radius:10px;padding:12px 16px;font:inherit;font-weight:600;cursor:pointer}
.teacher-login-panel button:disabled,.teacher-entry-selector button:disabled{opacity:.5;cursor:wait}
.teacher-entry-choices{display:grid;gap:14px}
.teacher-entry-secondary{width:100%;min-height:48px;border:1px solid #cbd5e1;border-radius:10px;padding:12px 16px;background:#fff;color:#334155;font:inherit;cursor:pointer}
.teacher-entry-error{color:#b91c1c;font-size:14px;line-height:1.6;margin:12px 0 0;min-height:0}
.teacher-entry-error:empty{display:none}
.teacher-login-panel .teacher-entry-link{display:block;margin:16px auto 0}
.teacher-entry-selector-controls{padding-right:32px;margin-bottom:12px}
#teacherAccountActions{display:flex;gap:18px;margin-top:4px}
#teacherAccountActions[hidden]{display:none}
.teacher-entry-selector .teacher-picker{border:0;background:transparent;padding:14px 0}
@media(max-width:560px){.teacher-entry-selector .selector-modal,#teacherPasswordOverlay .teacher-login-panel{padding:22px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:16px}.teacher-login-panel h2{font-size:22px}.teacher-entry-top{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.teacher-entry-selector,#teacherPasswordOverlay{animation:none!important;transition:none!important}}
