/* Mobile-only native-value adapter; desktop and non-teacher portals keep selects. */
@media(max-width:760px){
 body.teacher-mobile-ui select.teacher-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%);overflow:hidden}
 body.teacher-mobile-ui button.teacher-select-trigger{display:flex;align-items:center;justify-content:flex-start;position:relative;min-width:0;width:100%;min-height:46px;margin-top:6px;padding:11px 42px 11px 12px;background:#fff;border:1px solid #cbd7e7;border-radius:11px;color:#253047;box-shadow:none;font:inherit;font-size:16px;line-height:1.45;text-align:left;white-space:normal;overflow-wrap:anywhere}
 body.teacher-mobile-ui button.teacher-select-trigger:after{content:"";position:absolute;right:16px;top:calc(50% - 4px);width:7px;height:7px;border:solid #63768c;border-width:0 1.6px 1.6px 0;transform:rotate(45deg);pointer-events:none}
 body.teacher-mobile-ui button.teacher-select-trigger.teacher-select-placeholder{color:#627087}
 body.teacher-mobile-ui button.teacher-select-trigger:disabled{background:#f1f4f8;color:#6d7b8f;border-color:#dfe6ef;opacity:1;cursor:not-allowed}
 body.teacher-mobile-ui button.teacher-select-trigger[aria-expanded=true]{border-color:#0667d8;box-shadow:0 0 0 2px #0667d815}
 body.teacher-mobile-ui button.teacher-select-trigger[aria-invalid=true]{border-color:#c44247}
 body.teacher-mobile-ui dialog.teacher-select-sheet{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:min(78dvh,640px);padding:0;border:0;border-radius:22px 22px 0 0;overflow:hidden;background:#fff;color:#253047;box-shadow:0 -8px 40px #173b6526}
 body.teacher-mobile-ui dialog.teacher-select-sheet[open]{display:flex;flex-direction:column;animation:teacher-select-enter .2s cubic-bezier(.22,.8,.24,1)}
 body.teacher-mobile-ui dialog.teacher-select-sheet::backdrop{background:#263c5e5c;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
 body.teacher-mobile-ui .teacher-select-sheet *{box-sizing:border-box}
 body.teacher-mobile-ui .teacher-select-sheet .tms-header{display:flex;align-items:center;gap:12px;flex:none;padding:10px 14px 10px 20px;border-bottom:1px solid #e7edf5}
 body.teacher-mobile-ui .teacher-select-sheet .tms-title{min-width:0;flex:1;margin:0;font-size:17px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
 body.teacher-mobile-ui .teacher-select-sheet button.tms-close{min-height:44px;min-width:44px;flex:none;border:0;background:transparent;color:#0667d8;padding:10px;font-size:14px;box-shadow:none}
 body.teacher-mobile-ui .teacher-select-sheet .tms-search{display:block;flex:none;margin:0;padding:12px 16px 4px}
 body.teacher-mobile-ui .teacher-select-sheet .tms-search[hidden]{display:none}
 body.teacher-mobile-ui .teacher-select-sheet .tms-search input{margin:0;min-height:44px;border:1px solid #e6edf5;border-radius:11px;background:#f3f6fa;padding:10px 12px;font-size:16px}
 body.teacher-mobile-ui .teacher-select-sheet .tms-options{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 12px max(14px,env(safe-area-inset-bottom));-webkit-overflow-scrolling:touch;scrollbar-width:thin}
 body.teacher-mobile-ui .teacher-select-sheet button.tms-option{display:flex;align-items:center;justify-content:flex-start;position:relative;width:100%;min-height:52px;padding:14px 42px 14px 14px;border:0;border-radius:10px;background:#fff;color:#253047;font:inherit;font-size:16px;line-height:1.5;text-align:left;white-space:normal;overflow-wrap:anywhere;box-shadow:none;transform:none}
 body.teacher-mobile-ui .teacher-select-sheet button.tms-option[aria-pressed=true]{background:#eaf3ff;color:#0667d8;font-weight:600}
 body.teacher-mobile-ui .teacher-select-sheet button.tms-option[aria-pressed=true]:after{content:"";position:absolute;right:19px;top:calc(50% - 7px);width:7px;height:12px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
 body.teacher-mobile-ui .teacher-select-sheet button.tms-option:active:not(:disabled){background:#eaf3ff;transform:none}
 body.teacher-mobile-ui .teacher-select-sheet button.tms-option:disabled{background:#fff;color:#8793a3;opacity:1;cursor:not-allowed}
 body.teacher-mobile-ui .teacher-select-sheet .tms-empty{margin:0;padding:30px 16px;text-align:center;color:#627087;font-size:14px}
 body.teacher-mobile-ui .teacher-select-sheet .tms-validation{margin:0;padding:10px 20px;color:#b33842;font-size:13px}
 body.teacher-mobile-ui .teacher-select-sheet .tms-validation[hidden]{display:none}
}
@keyframes teacher-select-enter{from{opacity:.2;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){body.teacher-mobile-ui dialog.teacher-select-sheet[open]{animation:none}}
@media(prefers-reduced-transparency:reduce){body.teacher-mobile-ui dialog.teacher-select-sheet::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(forced-colors:active){body.teacher-mobile-ui button.teacher-select-trigger{border:1px solid ButtonText}body.teacher-mobile-ui .teacher-select-sheet button.tms-option[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-2px}}
