/* Cross-browser and responsive safety layer — 2.5.7.7 */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}*,*:before,*:after{box-sizing:border-box}img,video,canvas,svg{max-width:100%}button,input,select,textarea{max-width:100%;font:inherit}input,textarea,select{-webkit-appearance:none;appearance:none}input[type=checkbox],input[type=radio]{-webkit-appearance:auto;appearance:auto}select{background-image:linear-gradient(45deg,transparent 50%,#64748b 50%),linear-gradient(135deg,#64748b 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:32px!important}button,a{-webkit-tap-highlight-color:transparent}.sp-teacher-dashboard,.student-dashboard,.sp-schedule-wrapper,.sp-profile-wrapper,.sp-faq,.sp-lesson-prices,.sp-lesson-rules{width:min(100%,1180px);margin-left:auto;margin-right:auto}.sp-class-overlay-dialog{max-height:min(88vh,760px);overflow:auto;overscroll-behavior:contain}.sp-class-topbar nav{min-width:0}.sp-class-panels,.sp-current-lesson,.sp-class-materials{min-width:0}.sp-dashboard-lessons>*{min-width:0}
@supports not (gap:1rem){.sp-class-top-actions>*+*{margin-left:10px}.sp-chat-compose>*+*{margin-left:8px}}
@media(max-width:1024px){.sp-teacher-dashboard,.student-dashboard,.sp-schedule-wrapper,.sp-profile-wrapper,.sp-faq,.sp-lesson-prices,.sp-lesson-rules{padding-left:18px;padding-right:18px}.sp-class-content-grid{grid-template-columns:minmax(0,1fr)!important}.sp-class-call-card{position:static!important}.sp-teacher-profile-grid{grid-template-columns:1fr 1fr}.sp-material-book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body{overflow-x:hidden}.sp-teacher-dashboard,.student-dashboard,.sp-schedule-wrapper,.sp-profile-wrapper,.sp-faq,.sp-lesson-prices,.sp-lesson-rules{padding-left:12px;padding-right:12px}.sp-teacher-profile-grid,.sp-material-book-grid{grid-template-columns:1fr}.sp-class-topbar{flex-wrap:wrap}.sp-class-topbar nav{order:2;width:100%;overflow-x:auto;scrollbar-width:none}.sp-class-topbar nav::-webkit-scrollbar{display:none}.sp-class-top-actions{margin-left:auto}.sp-class-presence-stack{padding-left:7px}.sp-presence-avatar{width:36px;height:36px;margin-left:-7px}.sp-class-panels{padding:10px!important}.sp-current-lesson,.sp-class-materials,.sp-class-placeholder{padding:18px!important}.sp-chat-compose{grid-template-columns:36px 36px minmax(0,1fr) 42px!important;padding:9px!important;gap:6px!important}.sp-chat-compose>[data-chat-emoji-toggle],.sp-chat-compose>[data-chat-image-toggle]{width:36px!important;height:36px!important}.sp-chat-compose .sp-chat-send{width:42px!important}.sp-chat-toast{left:12px;right:12px;bottom:12px;max-width:none}.sp-timer-tool [data-timer-mini]{left:48px}.sp-book-section summary{grid-template-columns:30px minmax(0,1fr) auto;padding:14px}.sp-book-section summary small{display:none}.sp-book-lesson{grid-template-columns:30px minmax(0,1fr)}.sp-book-lesson small{grid-column:2}.sp-student-info-card dl>div{align-items:flex-start;flex-direction:column;gap:3px}.sp-student-info-card dd{text-align:left}.sp-site-footer-inner{display:block}.sp-site-footer nav{margin:18px 0}.sp-site-footer small{display:block}}
@media(max-width:480px){.sp-class-workspace{grid-template-columns:52px minmax(0,1fr)!important}.sp-class-sidebar{padding:8px 4px!important}.sp-class-sidebar a,.sp-class-sidebar button{width:38px!important;height:38px!important;font-size:17px!important}.sp-class-topbar nav button{padding:8px!important;font-size:11px!important}.sp-class-student-cabinet{width:34px;height:34px}.sp-class-exit{width:36px!important;height:36px!important}.sp-current-lesson h1,.sp-class-materials h1{font-size:25px!important}.sp-materials-heading{gap:12px}.sp-return-current{font-size:12px}.sp-material-tabs{overflow-x:auto}.sp-material-tabs button{white-space:nowrap}.sp-chat-compose textarea{font-size:16px}.sp-teacher-student-profile>header{padding:16px}.sp-teacher-profile-grid>section{padding:16px}.sp-teacher-student-list>a{padding:11px}.sp-teacher-avatar{width:40px;height:40px;flex-basis:40px}.sp-board-presence{right:118px}.sp-board-back{min-width:98px;right:10px}}
@media(hover:none){button,a{min-height:40px}.sp-chat-compose button{min-height:36px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
