/* iTech-2026 · CSS consolidat 041
 * PANTALLA: index.php · disposició, components i adaptació responsive
 * Ordre original conservat. Editar la secció funcional corresponent.
 * No afegir fulls numerats per a correccions; modificar aquests blocs.
 */

/* ===== 01 · scrollbars.css ===== */
                                                                           
:root{--scroll-track:#ede9fe;--scroll-thumb:#7c3aed;--scroll-hover:#5b21b6;}
html[data-theme="dark"]{--scroll-track:#263247;--scroll-thumb:#c4b5fd;--scroll-hover:#e9d5ff;}
html *,html{scrollbar-width:auto!important;scrollbar-color:var(--scroll-thumb) var(--scroll-track)!important;}
                                                                                         
@supports selector(::-webkit-scrollbar){html *,html{scrollbar-color:auto!important;}}
html ::-webkit-scrollbar,html::-webkit-scrollbar{width:16px!important;height:16px!important;}
html ::-webkit-scrollbar-track,html::-webkit-scrollbar-track{background:var(--scroll-track)!important;border-radius:12px!important;}
html ::-webkit-scrollbar-thumb,html::-webkit-scrollbar-thumb{background:var(--scroll-thumb)!important;border:2px solid var(--scroll-track)!important;border-radius:12px!important;min-height:44px!important;min-width:44px!important;}
html ::-webkit-scrollbar-thumb:hover,html::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover)!important;}
html ::-webkit-scrollbar-thumb:active,html::-webkit-scrollbar-thumb:active{background:var(--scroll-hover)!important;}
html ::-webkit-scrollbar-corner,html::-webkit-scrollbar-corner{background:var(--scroll-track)!important;}
@media(forced-colors:active){html *,html{scrollbar-color:auto!important;}html ::-webkit-scrollbar-thumb{background:ButtonText!important;border-color:Canvas!important;}html ::-webkit-scrollbar-track{background:Canvas!important;}}

                                                                             


/* ===== 02 · floating-icons.css ===== */
html,body{overflow:hidden!important;max-width:100%;}
html body #loginScreen{overflow:hidden!important;max-width:100vw;max-height:100dvh;}
html body #loginScreen .ed-floating-icon{filter:saturate(1.12) drop-shadow(0 10px 12px #46507821)!important;}
html body #loginScreen>.login-card{max-height:calc(100dvh - 32px);overflow-y:auto!important;overflow-x:hidden!important;box-sizing:border-box;}


/* ===== 03 · focus-spacing.css ===== */
html body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),html body textarea,html body select{box-sizing:border-box;max-width:calc(100% - 8px)!important;margin-left:4px!important;margin-right:4px!important;scroll-margin:12px;}
html body :is(input,textarea,select):focus-visible{outline:2px solid #a78bfa!important;outline-offset:1px!important;}
html body #newTeacherModal .teacher-profile-scroll{padding:6px 10px 14px!important;}
html body #newTeacherModal .teacher-profile-fields{padding:4px!important;}
html body :is(#newStudentModal,#newSubjectModal)>div>.space-y-3{padding:6px 8px!important;}
html body #dayModal :is(.day-workspace,#dayMessagesSection){scroll-padding:12px;}
html body #reportsModal .report-task-row td{padding-left:10px;padding-right:10px;}
html body .installer-card form{padding:4px 4px 10px;}
html body #encryptedBackupDialog form{padding:4px 4px 10px;}
html body .icon-picker-btn{scroll-margin:10px;}
html body #newTeacherModal .teacher-access-fields{align-items:start!important;}
html body #newTeacherModal .teacher-password-control{align-items:flex-start!important;}
html body #newTeacherModal :is(#new_t_id,#new_t_pass){height:44px!important;min-height:44px!important;margin-top:5px!important;box-sizing:border-box;}
html body #newTeacherModal .teacher-password-control button{height:44px!important;min-height:44px!important;margin-top:5px!important;}


/* ===== 04 · login-access.css ===== */
html body #loginScreen>.login-card:before{padding:3px!important;}
html body .installer-card{position:relative;border:0;border-radius:24px;isolation:isolate;}
html body .installer-card:before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;padding:3px;background:linear-gradient(135deg,#ffd86b,#9edcff,#c8a9ff,#a8ebcb);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;}
html body #loginScreen #loginForm button[type="submit"],html body #installerLoginButton{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;width:80%!important;max-width:80%!important;margin-left:auto!important;margin-right:auto!important;background:linear-gradient(145deg,#07863b,#087b35)!important;background-color:#07863b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #0b8a3c!important;border-radius:12px!important;box-shadow:inset 0 1px 0 #ffffff77,0 4px 0 #065c28,0 7px 12px #14532d33!important;white-space:normal!important;line-height:1.35!important;}
html body #loginScreen #loginForm button[type="submit"]{margin-top:10px!important;margin-bottom:12px!important;}
html body #loginScreen #loginForm button[type="submit"]:hover,html body #installerLoginButton:hover{filter:brightness(1.06);}
html body #loginScreen #loginForm button[type="submit"]:disabled,html body #installerLoginButton:disabled{opacity:.65;cursor:wait;}
html body #loginScreen #loginForm button[type="submit"]:focus-visible,html body #installerLoginButton:focus-visible{outline:3px solid #16a34a;outline-offset:5px;}

html body #loginScreen .login-access-actions,html body .installer-card .login-access-actions{display:flex!important;flex-direction:column!important;gap:16px!important;padding-top:10px!important;padding-bottom:6px!important;}
html body #loginScreen .login-access-actions>* ,html body .installer-card .login-access-actions>*{margin:0!important;}
html body #loginScreen .login-access-actions>button[type="submit"],html body .installer-card .login-access-actions>#installerLoginButton{align-self:center!important;margin:0!important;}
html body #loginScreen>.login-card,html body .installer-card{box-sizing:border-box!important;width:min(800px,calc(100vw - 32px))!important;max-width:800px!important;border:0!important;border-radius:36px!important;padding:clamp(26px,4vw,42px)!important;background:rgba(255,255,255,.94)!important;box-shadow:0 30px 70px #5e579129,0 10px 25px #46649614,inset 0 1px 0 #fffffff2!important;font-family:'Nunito',system-ui,sans-serif!important;color:#444064!important;}
html body.installer-access-page{font-family:'Nunito',system-ui,sans-serif;background:radial-gradient(circle at 10% 15%,#ffdd706b 0 7%,transparent 22%),radial-gradient(circle at 90% 15%,#9fddff7a 0 8%,transparent 23%),linear-gradient(135deg,#fffaf1,#f4f8ff 48%,#f9f2ff);padding:24px 16px;}
html body .installer-card .access-brand{text-align:center;margin-bottom:16px;}
html body .installer-card .access-brand-logo{display:block;object-fit:contain;width:100px;height:100px;margin:0 auto 14px;filter:drop-shadow(0 8px 18px #7c3aed26);}
html body .installer-card .access-brand h2{font-family:'Baloo 2','Nunito',sans-serif;font-size:clamp(26px,4vw,38px);line-height:1.2;font-weight:800;color:#444064;margin:0;}
html body .installer-card h1{font-family:'Baloo 2','Nunito',sans-serif;text-align:center;font-size:21px;line-height:1.4;color:#7c5bb9;margin:0 auto 20px;}
html body #loginScreen form input,html body .installer-card form input{box-sizing:border-box;width:100%;font-family:inherit;font-size:16px;line-height:1.4;min-height:54px;padding:12px 16px;border:1px solid #dddff3;border-radius:18px;background:#eaf0ff;color:#26324b;box-shadow:inset 0 1px 3px #6b70a308,0 4px 12px #6b70a306;}
html body .installer-card form label{color:#514d6f;font-size:14px;font-weight:800;margin:18px 0 8px;}
html body .installer-card .login-access-secondary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;padding:10px 16px;border:1px solid #cbd5e1;border-radius:14px;background:#fff;color:#475569;font-size:16px;font-weight:800;text-decoration:none;box-shadow:0 2px 5px #47556908;}
html body .installer-card .login-access-secondary:last-child{background:#f5f8ff;border-color:#dbe7fc;}
html body .installer-card #installerLoginButton{font:inherit;font-weight:800;min-height:48px;padding:12px 16px;}
@media(max-width:560px){html body #loginScreen>.login-card,html body .installer-card{padding:24px 20px!important;border-radius:26px!important;}}


/* ===== 05 · mobile-layout.css ===== */
/* 2026-013. Regles finals de pantalla: un sol flux al login i panells adaptables.
   No s'apliquen a la impressió ni alteren visibilitat, permisos o esdeveniments. */
@media screen {
 html:has(body.access-page),html:has(body.installer-access-page){height:auto!important;min-height:100%;overflow-y:auto!important;overflow-x:clip!important}
 html body.access-page{display:block!important;margin:0;width:100%!important;height:auto!important;min-height:100vh;min-height:100dvh;overflow:visible!important}
 html body.access-page #loginScreen{position:relative!important;inset:auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;box-sizing:border-box;width:100%!important;max-width:100%!important;height:auto!important;min-height:100vh;min-height:100dvh;max-height:none!important;padding:clamp(12px,3vw,28px)!important;overflow:clip!important}
 html body.access-page #loginScreen>.login-card{flex:none!important;box-sizing:border-box!important;width:100%!important;max-width:680px!important;min-width:0!important;height:auto!important;max-height:none!important;margin:0 auto!important;padding:clamp(20px,4vw,36px)!important;overflow:visible!important}
 html body.access-page #loginScreen .ed-floating-icon{position:absolute!important;pointer-events:none}
 html body.access-page #loginScreen :is(h2,p,label,a,button){white-space:normal!important;overflow-wrap:anywhere;max-width:100%;height:auto!important}
 html body.access-page #loginScreen h2{font-size:clamp(26px,5vw,38px)!important;line-height:1.2!important}
 html body.access-page #loginScreen :is(#loginUserInput,#loginPasswordInput){width:100%!important;min-width:0!important;font-size:16px!important;min-height:48px!important}
 html body.access-page #loginScreen .login-access-actions{gap:12px!important}
 html body.access-page #loginScreen .login-access-actions :is(a,button){min-height:46px!important;line-height:1.4!important;padding:10px 12px!important;box-sizing:border-box}
 html body.installer-access-page{height:auto!important;min-height:100vh;min-height:100dvh;overflow-y:visible!important;overflow-x:clip!important;padding:clamp(12px,3vw,24px)!important;align-items:start}
 html body.installer-access-page main.installer-card{width:100%!important;max-width:720px!important;min-width:0!important;min-height:0!important;height:auto!important;margin:auto!important;overflow:visible!important;padding:clamp(18px,4vw,32px)!important}
 html body.installer-access-page .installer-card :is(h1,h2,p,a,button){white-space:normal;overflow-wrap:anywhere;max-width:100%}
}
@media screen and (max-width:1100px){
 html:has(body:is(.professor-panel,.student-panel)),html body:is(.professor-panel,.student-panel){width:100%!important;min-width:0!important;height:auto!important;min-height:100vh;min-height:100dvh;overflow-x:clip!important;overflow-y:auto!important}
 html body:is(.professor-panel,.student-panel){display:flex!important;flex-direction:column!important;margin:0}
 html body:is(.professor-panel,.student-panel)>aside#sidebar{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;flex:none!important;order:0;overflow:visible!important;touch-action:auto;overscroll-behavior-y:auto}
 html body:is(.professor-panel,.student-panel)>aside#sidebar #sidebarNavContainer{max-height:none!important;min-height:0!important;overflow:visible!important;flex:none!important}
 html body:is(.professor-panel,.student-panel)>main{box-sizing:border-box!important;width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;min-height:0!important;flex:none!important;overflow:visible!important;padding:clamp(8px,2vw,16px)!important}
 html body:is(.professor-panel,.student-panel)>main>header{height:auto!important;max-height:none!important;min-width:0!important;flex-wrap:wrap!important;gap:12px!important}
 html body:is(.professor-panel,.student-panel)>main>header>div{min-width:0!important;max-width:100%!important;flex-wrap:wrap!important}
 html body #mobileMenuBtn{display:none!important}
 html body .professor-main-header{grid-template-columns:minmax(0,1fr)!important}
 html body :is(.professor-tools,.professor-toolbar,.report-footer-tools){flex-wrap:wrap!important;min-width:0!important;max-width:100%}
 html body :is(button,a,input,select,textarea){box-sizing:border-box}
 html body :is(button,summary){touch-action:manipulation}
 html body :is(input,select,textarea){max-width:100%!important;font-size:16px!important}
 html body button{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:44px}
 html body #calendarGrid{width:100%!important;min-width:0!important;min-height:420px!important;height:auto!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-auto-rows:minmax(76px,auto)!important;overflow:visible!important;flex:none!important}
 html body #calendarGrid>div{min-width:0!important;overflow-wrap:anywhere;box-sizing:border-box}
 html body .calendar-weekday-heading{grid-template-columns:repeat(7,minmax(0,1fr))!important;min-width:0}
 html body .calendar-weekday-heading>div{min-width:0;white-space:normal!important;overflow-wrap:anywhere}
 /* Les finestres conserven .hidden; el seu contingut pot desplaçar-se verticalment. */
 html body>:is(div[id$="Modal"],div[id$="Dialog"]):not(#dayModal){box-sizing:border-box;padding:10px!important;max-width:100%!important;overflow-y:auto!important;overflow-x:clip!important}
 html body>:is(div[id$="Modal"],div[id$="Dialog"])>div:first-child{box-sizing:border-box;min-width:0!important;max-width:100%!important;max-height:calc(100dvh - 20px)!important;overflow-y:auto!important;overflow-x:clip!important}
 html body #reportsModal>.report-dialog-panel{width:100%!important;height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
 html body #reportsModal :is(.report-dialog-heading,.report-filter-bar,.report-footer-tools){flex-wrap:wrap!important;gap:8px!important;min-width:0!important;max-width:100%}
 html body #reportsModal :is(#reportFilterType,#reportSubFilter){width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:46px!important;flex:1 1 240px!important}
 html body #reportsModal #reportsTableContainer{flex:1 1 auto!important;min-height:100px!important;overflow-y:auto!important;overflow-x:auto!important}
 html body #reportsModal #reportsTableContainer :is(table,tbody,tr,td){display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box}
 html body #reportsModal #reportsTableContainer :is(colgroup,thead){display:none!important}
 html body #reportsModal #reportsTableContainer :is(.report-record-row,.report-task-row){border-bottom:2px solid #cbd5e1;padding:10px 4px}
 html body #reportsModal #reportsTableContainer .report-task-row td:nth-child(2)::before{content:"Escola / curs: ";font-weight:800}
 html body #reportsModal #reportsTableContainer .report-task-row td:nth-child(3)::before{content:"Extraescolar: ";font-weight:800}
 html body #reportsModal #reportsTableContainer .report-task-row td:nth-child(4)::before{content:"Resposta alumne: ";font-weight:800}
 html body #reportsModal #reportsTableContainer .report-task-row td:nth-child(5)::before{content:"Estat: ";font-weight:800}
 html body #reportsModal #reportsTableContainer .report-task-row td:nth-child(6)::before{content:"Resposta professor / accions: ";font-weight:800}
 html body #reportsModal #reportsTableContainer td{white-space:normal!important;overflow-wrap:anywhere}
 html body #reportsModal .report-bulk-box{min-width:0!important;max-width:100%!important;flex-wrap:wrap!important}
 html body #reportsModal .report-bulk-box :is(.bulk-reply-input,.bulk-scope-field,.bulk-date-field,.bulk-date-range-fields){min-width:0!important;max-width:100%!important;box-sizing:border-box}
 html body #reportsModal .report-bulk-box .bulk-reply-input{flex:1 1 280px!important;width:100%!important}
 html body #reportsModal>.report-dialog-panel>div:last-child,html body #reportsModal>.report-dialog-panel>div:last-child>div{flex-wrap:wrap!important;gap:8px;min-width:0!important;max-width:100%}
 html body #dayModal>div:first-child{width:100%!important;max-width:100%!important;min-width:0!important;height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}
 html body #dayModal .day-dialog-body{flex:1 1 0!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:clip!important}
 html body #dayModal :is(.day-workspace,#dayMessagesSection){min-width:0!important;flex:none!important;overflow:visible!important}
 html body #dayModal :is(.day-dialog-header,.day-dialog-footer){flex:none!important;flex-wrap:wrap!important;min-width:0!important;max-height:30dvh;overflow-y:auto!important}
 html body #dayModal :is(.dialog-footer-left,.dialog-footer-right,.task-status-buttons,.day-message-actions){flex-wrap:wrap!important;min-width:0!important;max-width:100%}
 html body #dayModal .day-message-actions button{white-space:normal!important;min-width:0!important}
 html body #dayModal section#dayMessagesSection>#dayMessageNotice{height:auto!important;min-height:56px!important;max-height:none!important;flex:none!important;overflow:visible!important}
 html body :is(.program-update-card,.bulk-card,.restore-review-card,.restore-picker-card,.encrypted-backup-card){box-sizing:border-box;min-width:0!important;max-width:100%!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}
 html body :is(.program-update-actions,.restore-review-actions,.restore-picker-actions,.bulk-actions){flex-wrap:wrap!important;min-width:0!important}
}
@media screen and (max-width:700px){
 html body.access-page #loginScreen .ed-floating-icon{display:none!important}
 html body.access-page #loginScreen .program-logo-large{width:72px!important;height:72px!important;border-radius:22px!important;margin-bottom:4px!important}
 html body.access-page #loginScreen .program-logo-large .logo-robot{font-size:40px!important}
 html body.access-page #loginScreen .program-logo-large .logo-cap{font-size:22px!important}
 html body #reportsModal .bulk-status-buttons{display:flex!important;flex-wrap:wrap!important;flex:1 1 100%!important;width:100%!important;max-width:100%!important}
 html body #reportsModal .bulk-status-buttons>button{flex:1 1 110px!important;width:auto!important;min-width:0!important;white-space:normal!important}
 html body #reportsModal .report-bulk-box :is(.bulk-scope-field,.bulk-date-field){flex:1 1 100%!important;width:100%!important;flex-direction:column!important;align-items:stretch!important}
 html body #reportsModal .report-bulk-box :is(.bulk-scope-select,.bulk-date-mode,input[type=date]){width:100%!important;min-width:0!important;max-width:100%!important;min-height:48px!important}
 html body.professor-panel #newStudentModal .space-y-3>div:is(:has(#new_s_id),:has(#new_s_escola),:has(#new_s_grade)),html body.professor-panel #newSubjectModal>div>.space-y-3>div,html body :is(.teacher-access-fields,.teacher-contact-fields,.teacher-credentials-fields,.teacher-form-fields,.teacher-profile-fields,#initialSetupBranding:not(.hidden)){grid-template-columns:minmax(0,1fr)!important}
 html body .student-profile-scroll>.grid,html body #assignWorkModal .grid:not([id$="IconsGrid"]){grid-template-columns:minmax(0,1fr)!important}
 html body #bulk-panel :is(.bulk-fields,.bulk-rules-grid),html body #bulk-panel[data-restore=true] .bulk-upload>.bulk-actions{grid-template-columns:minmax(0,1fr)!important}
 html body #sidebar #sidebarAdministration .system-data-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html body #programDialog[data-dialog-kind=message-state] .dialog-actions{grid-template-columns:minmax(0,1fr)!important}
 html body #calendarGrid .calendar-message-mobile{white-space:normal!important;overflow-wrap:anywhere;line-height:1.3!important}
}

@media screen and (max-width:1100px) and (max-height:500px){
 html body #reportsModal>.report-dialog-panel{overflow-y:auto!important}
 html body #reportsModal #reportsTableContainer{flex:none!important;max-height:none!important;overflow:visible!important}
}


/* ===== 06 · login-viewport-021.css ===== */
/* One viewport, no page scrollbar. A short screen/keyboard can scroll inside
   the card without showing a second scrollbar or making fields unreachable. */
html:has(body.access-page){height:100%!important;min-height:0!important;overflow:hidden!important;scrollbar-gutter:auto!important}
html body.access-page{height:100vh!important;height:100dvh!important;min-height:0!important;width:100%!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important}
html body.access-page #loginScreen{position:fixed!important;inset:0!important;width:100%!important;min-height:0!important;height:100vh!important;height:100dvh!important;max-height:100dvh!important;padding:12px!important;overflow:hidden!important;justify-content:flex-start!important;align-items:center!important;box-sizing:border-box!important;padding-top:clamp(20px,6dvh,64px)!important;}
html body.access-page #loginScreen>.login-card{box-sizing:border-box!important;flex:0 1 auto!important;min-height:0!important;width:min(800px,100%)!important;max-width:800px!important;max-height:100%!important;margin:0!important;padding:22px 28px!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:none!important;scrollbar-gutter:auto!important;overscroll-behavior:contain}
html body.access-page #loginScreen>.login-card::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
html body.access-page #loginScreen>.login-card> :not([hidden])~:not([hidden]){margin-top:10px!important}
html body.access-page #loginScreen .program-logo-large{width:68px!important;height:68px!important;border-radius:20px!important;animation:none!important}
html body.access-page #loginScreen .program-logo-large .logo-robot{font-size:39px!important}
html body.access-page #loginScreen .program-logo-large .logo-cap{font-size:21px!important}
html body.access-page #loginScreen h2{font-size:30px!important;line-height:1.1!important}
html body.access-page #loginScreen :is(.login-role-admin,.login-role-student){font-size:20px!important;padding:7px 14px!important;margin:8px auto 0!important;line-height:1.2!important;animation:none!important}
html body.access-page #loginScreen #loginForm{padding-top:0!important}
html body.access-page #loginScreen #loginForm> :not([hidden])~:not([hidden]){margin-top:10px!important}
html body.access-page #loginScreen :is(#loginUserInput,#loginPasswordInput){min-height:46px!important;padding:10px 14px!important;font-size:16px!important}
html body.access-page #loginScreen .login-access-actions{padding:4px 0!important;gap:10px!important}
html body.access-page #loginScreen .login-access-actions :is(a,button){min-height:42px!important;margin:0!important;padding:8px 12px!important;font-size:16px!important;line-height:1.3!important}
html body.access-page #loginScreen>.login-card>.border-t{padding-top:8px!important;font-size:12px!important;line-height:1.4!important}
@media(max-width:560px){html body.access-page #loginScreen{padding:8px!important}html body.access-page #loginScreen>.login-card{padding:18px 16px!important}}
@media(max-height:650px){html body.access-page #loginScreen>.login-card{padding:14px 20px!important}html body.access-page #loginScreen .program-logo-large{width:46px!important;height:46px!important;border-radius:14px!important}html body.access-page #loginScreen .program-logo-large .logo-robot{font-size:28px!important}html body.access-page #loginScreen .program-logo-large .logo-cap{font-size:16px!important}html body.access-page #loginScreen h2{font-size:26px!important}html body.access-page #loginScreen :is(.login-role-admin,.login-role-student){font-size:18px!important;padding:5px 10px!important}html body.access-page #loginScreen>.login-card> :not([hidden])~:not([hidden]){margin-top:7px!important}}


/* ===== 07 · program-brand-023.css ===== */
/* Program identity: logo alongside the primary name, with safe wrapping. */
html body.access-page #loginScreen .login-brand-section{display:flex!important;flex-direction:column!important;align-items:center!important;gap:10px!important;min-width:0!important}
html body.access-page #loginScreen .login-brand-row{display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;gap:16px!important;max-width:100%!important;min-width:0!important;padding:3px 0!important}
html body.access-page #loginScreen .login-brand-row .program-logo-large{width:84px!important;height:84px!important;min-width:84px!important;flex:0 0 84px!important;margin:0!important;border-radius:24px!important}
html body.access-page #loginScreen .login-brand-row .logo-robot{font-size:49px!important}
html body.access-page #loginScreen .login-brand-row .logo-cap{font-size:25px!important}
html body.access-page #loginScreen .login-brand-row h2{font-size:clamp(28px,4vw,40px)!important;line-height:1.15!important;margin:0!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar .program-brand-heading{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;flex:1 1 auto!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar .program-brand-heading>div{min-width:0!important;margin:0!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar .program-brand-heading .program-logo{width:44px!important;height:44px!important;flex:0 0 44px!important;min-width:44px!important;border-radius:13px!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar .program-brand-heading .logo-robot{font-size:27px!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar .program-brand-heading .logo-cap{font-size:15px!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar .program-brand-heading h1[data-app-title]{font-size:20px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere!important;margin:0!important}
@media(max-width:500px){html body.access-page #loginScreen .login-brand-row{gap:12px!important}html body.access-page #loginScreen .login-brand-row .program-logo-large{width:64px!important;height:64px!important;min-width:64px!important;flex-basis:64px!important;border-radius:20px!important}html body.access-page #loginScreen .login-brand-row .logo-robot{font-size:38px!important}html body.access-page #loginScreen .login-brand-row .logo-cap{font-size:21px!important}html body.access-page #loginScreen .login-brand-row h2{font-size:28px!important}}
@media(max-height:600px) and (min-width:501px){html body.access-page #loginScreen .login-brand-row .program-logo-large{width:70px!important;height:70px!important;min-width:70px!important;flex-basis:70px!important}html body.access-page #loginScreen .login-brand-row .logo-robot{font-size:41px!important}html body.access-page #loginScreen .login-brand-row h2{font-size:34px!important}}
/* Gentle badge movement in four directions, with room around every edge. */
html body.access-page #loginScreen .login-brand-section :is(.login-role-student,.login-role-admin){box-sizing:border-box!important;max-width:calc(100% - 16px)!important;margin:8px!important;transform-origin:center!important;animation:loginBadgeFloat023 5.8s ease-in-out infinite!important;will-change:transform}
@keyframes loginBadgeFloat023{0%,100%{transform:translate(0,0)}25%{transform:translate(4px,-3px)}50%{transform:translate(0,3px)}75%{transform:translate(-4px,-2px)}}
@media(prefers-reduced-motion:reduce){html body.access-page #loginScreen .login-brand-section :is(.login-role-student,.login-role-admin){animation:none!important;transform:none!important;will-change:auto!important}}
/* Alumnes and Exit stay together beside the program heading, wrapping as a group. */
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:10px!important;padding:12px!important;min-width:0!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader .program-brand-heading{flex:1 1 210px!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader .program-session-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex:0 1 auto!important;gap:9px!important;max-width:100%!important;margin-left:auto!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader .program-session-actions :is(a,button){margin:0!important;flex-shrink:0!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader .school-home-btn{display:inline-flex!important;align-items:center!important;gap:6px!important;min-width:0!important;width:auto!important;padding:7px 9px!important;white-space:nowrap!important;font-size:13px!important;line-height:1.4!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader .school-home-btn>span{display:inline!important;font-size:13px!important;line-height:1.4!important}
/* A clear pastel button for the Alumnes portal. */
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader .school-home-btn{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:36px!important;padding:7px 11px!important;border:1px solid #a68ae4!important;border-radius:11px!important;background:linear-gradient(145deg,#f4eaff,#d9c3ff)!important;color:#572b8f!important;-webkit-text-fill-color:#572b8f!important;font-size:13px!important;font-weight:850!important;line-height:1.4!important;text-decoration:none!important;box-shadow:inset 0 1px 0 #ffffffd9,0 3px 0 #b59bdc,0 5px 9px #75549426!important;transition:filter .15s,transform .15s!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader .school-home-btn i{font-size:17px!important;color:#7539b5!important;-webkit-text-fill-color:#7539b5!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader .school-home-btn:hover{filter:brightness(1.04)!important;transform:translateY(-1px)!important;text-decoration:none!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader .school-home-btn:active{transform:translateY(1px)!important}
html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader .school-home-btn:focus-visible{outline:3px solid #7753ce!important;outline-offset:3px!important}
html[data-theme="dark"] body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader .school-home-btn{background:linear-gradient(145deg,#4d326a,#39274f)!important;color:#f3eaff!important;-webkit-text-fill-color:#f3eaff!important;border-color:#a48bc7!important;box-shadow:inset 0 1px 0 #aa8dca55,0 3px 0 #251934,0 5px 9px #10071b55!important}
html[data-theme="dark"] body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader .school-home-btn i{color:#e4ceff!important;-webkit-text-fill-color:#e4ceff!important}


/* ===== 08 · login-clean-install.css ===== */
/* Clean install: no outer-page scrollbar on either login or the installer. */
html:has(body.installer-access-page){height:100%!important;overflow:hidden!important;scrollbar-gutter:auto!important}
html body.installer-access-page{box-sizing:border-box!important;margin:0!important;height:100vh!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;padding:12px!important;display:grid!important;align-items:start!important;justify-items:center!important}
html body.installer-access-page main.installer-card{box-sizing:border-box!important;min-height:0!important;max-height:100%!important;overflow:auto!important;scrollbar-width:none!important;width:min(800px,100%)!important;margin:0!important;padding:20px!important}
html body.installer-access-page main.installer-card::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
html body.installer-access-page .access-brand{display:flex;align-items:center;justify-content:center;gap:14px;min-width:0;margin-bottom:12px}
html body.installer-access-page .access-brand-logo{width:64px;height:64px;flex:none;object-fit:contain}
html body.installer-access-page .access-brand h2{font-size:28px;line-height:1.2;margin:0;overflow-wrap:anywhere}
html body.installer-access-page .installer-info{font-size:14px!important;line-height:1.45!important;padding:12px!important}
@media(max-height:650px){
 html body.access-page #loginScreen{padding:8px!important}
 html body.access-page #loginScreen>.login-card{padding:12px 18px!important}
 html body.access-page #loginScreen .login-brand-section{gap:5px!important}
 html body.access-page #loginScreen .login-brand-row .program-logo-large{width:54px!important;height:54px!important;min-width:54px!important;flex-basis:54px!important;border-radius:16px!important}
 html body.access-page #loginScreen .login-brand-row .logo-robot{font-size:32px!important}
 html body.access-page #loginScreen .login-brand-row .logo-cap{font-size:18px!important}
 html body.access-page #loginScreen .login-brand-row h2{font-size:28px!important}
 html body.access-page #loginScreen .login-brand-section :is(.login-role-student,.login-role-admin){margin:5px!important;font-size:17px!important;padding:5px 10px!important}
 html body.installer-access-page main.installer-card{padding:14px!important}
 html body.installer-access-page .access-brand-logo{width:44px;height:44px}
 html body.installer-access-page .installer-card label{margin:10px 0 4px!important;font-size:13px!important}
 html body.installer-access-page .installer-card input{min-height:40px!important;padding:7px 10px!important}
 html body.installer-access-page .installer-card small{font-size:11px!important;line-height:1.35!important;margin-top:6px!important}
}
@media(max-height:500px) and (min-width:600px){
 html body.access-page #loginScreen #loginForm{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px!important}
 html body.access-page #loginScreen #loginForm>div{margin:0!important;min-width:0!important}
 html body.access-page #loginScreen #loginForm :is(.login-access-actions,#loginError){grid-column:1/-1}
 html body.access-page #loginScreen #loginForm .login-access-actions{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:center!important;gap:8px!important;padding:4px 0!important}
 html body.access-page #loginScreen #loginForm .login-access-actions>*{flex:1 1 120px!important;width:auto!important;max-width:100%!important;font-size:13px!important;min-height:36px!important}
 html body.access-page #loginScreen>.login-card>.border-t{font-size:11px!important;line-height:1.25!important;padding-top:5px!important}
}


/* ===== 09 · responsive-2026-010.css ===== */
/* Mobile/tablet presentation only. Never changes hidden states or calendar columns. */
@media screen and (max-width:1199px){
 html:has(body:is(.student-panel,.professor-panel)),html body:is(.student-panel.student-panel,.professor-panel.professor-panel){width:100%!important;min-width:0!important;height:auto!important;min-height:100vh!important;min-height:100dvh!important;overflow-x:clip!important;overflow-y:auto!important;scrollbar-gutter:auto!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel){flex-direction:column!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel)>aside#sidebar{position:relative!important;inset:auto!important;transform:none!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;flex:none!important;overflow:visible!important;border-radius:0 0 18px 18px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #sidebarNavContainer{flex:none!important;max-height:34vh!important;max-height:34dvh!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;scrollbar-gutter:auto!important;overscroll-behavior-y:auto}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel)>main{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;flex:none!important;overflow:visible!important;padding:12px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel)>main>section:has(#calendarGrid){height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;flex:none!important;width:100%!important;min-width:0!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel)>main>header{min-width:0!important;max-width:100%!important;gap:10px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar #programSidebarHeader{padding:12px 16px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #sidebar .program-session-actions :is(a,button){min-height:44px!important;padding:9px 14px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px!important;box-sizing:border-box!important;max-width:100%!important;min-width:0!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) :is(button,summary,a,input,select,textarea){touch-action:manipulation}
 html body.professor-panel.professor-panel #professorCalendarHeader>.professor-header-top,html body.professor-panel.professor-panel #professorCalendarHeader>.professor-header-bottom{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 html body.professor-panel.professor-panel #professorCalendarHeader :is(#activeSubjectTitle,#activeSubjectDesc,#subjectBadge){white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;max-width:100%!important}
 html body.professor-panel.professor-panel #professorCalendarHeader .professor-subject-heading{flex-wrap:wrap!important}
 html body.professor-panel.professor-panel #professorCalendarHeader .professor-header-tools{flex-wrap:wrap!important;justify-content:flex-start!important}
 html body.professor-panel.professor-panel #professorCalendarHeader :is(.quick-tools-btn,#themeToggle,.reports-main-action,.professor-shortcut){min-height:44px!important;white-space:normal!important}
 html body.professor-panel.professor-panel #professorCalendarHeader .professor-header-stats{width:100%!important;justify-self:stretch!important;grid-template-columns:repeat(auto-fit,minmax(105px,1fr))!important}
 html body.professor-panel.professor-panel #professorCalendarHeader .professor-stat-card>span{white-space:normal!important;overflow-wrap:anywhere!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel)>main #calendarGrid{height:auto!important;max-height:none!important;min-height:0!important;grid-auto-rows:minmax(100px,auto)!important;overflow:visible!important;flex:none!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel)>main #calendarGrid>div[data-date]{min-height:100px!important;min-width:0!important;overflow:hidden!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) .calendar-weekday-heading>div{box-sizing:border-box!important;min-width:0!important;font-size:clamp(9px,1.4vw,13px)!important;line-height:1.35!important;letter-spacing:0!important;overflow-wrap:anywhere!important;padding:7px 3px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) .calendar-weekday-heading button{margin:3px!important;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;position:static!important;flex-shrink:0!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) .calendar-message-legend{display:flex;flex-wrap:wrap!important;gap:6px!important;padding:9px!important;white-space:normal!important}
 html body.professor-panel.professor-panel #professorMonthBar button{min-height:44px!important;height:auto!important;min-width:40px!important}
 html body.student-panel.student-panel button[onclick="jumpToToday()"],html body.student-panel.student-panel button[onclick^="changeMonth("]{min-height:44px!important;min-width:40px!important;height:auto!important;margin:0 4px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #dayModal{padding:6px!important;box-sizing:border-box!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #dayModal>.day-dialog{box-sizing:border-box!important;margin:0!important;width:100%!important;max-width:100%!important;height:calc(100vh - 12px)!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;border-radius:16px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #dayModal .day-dialog-body{display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;flex:1 1 0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:12px!important;gap:12px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #dayModal :is(.day-dialog-header,.day-dialog-footer){padding:10px 12px!important;gap:8px!important;max-height:28dvh!important;min-width:0!important;overflow:auto!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #dayModal :is(.day-workspace,#dayMessagesSection){box-sizing:border-box!important;width:100%!important;min-width:0!important;padding:12px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) .student-documents{box-sizing:border-box!important;width:100%!important;min-width:0!important;padding:12px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) .student-documents button{min-height:44px!important;font-size:13px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) :is(.student-document-controls,.student-documents-actions){flex-wrap:wrap!important;gap:8px!important;max-width:100%!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) .student-document-detail strong{font-size:14px!important;overflow-wrap:anywhere!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) :is(.work-manager-options,.work-manager-recipient,.bulk-fields,.teacher-task-editor){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #quickToolsMenu{max-width:calc(100vw - 32px)!important;box-sizing:border-box!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) :is(button,a,summary,input,textarea,select):focus-visible{outline:3px solid #6d5ce7!important;outline-offset:2px!important}
}
@media screen and (max-width:600px){
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel)>main{padding:8px!important}
 html body.professor-panel.professor-panel #professorCalendarHeader .professor-header-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel)>main #calendarGrid{grid-auto-rows:minmax(84px,auto)!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel)>main #calendarGrid>div[data-date]{min-height:84px!important;padding:3px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel)>main #calendarGrid .calendar-day-header{flex-wrap:wrap!important;min-width:0!important;gap:2px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel)>main #calendarGrid .calendar-day-number{font-size:18px!important;line-height:1.3!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel)>main #calendarGrid .calendar-work-status{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:9px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) .calendar-weekday-heading>div{font-size:9px!important;padding:6px 2px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) .student-document-controls{width:100%!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) .student-document-controls button{flex:1 1 80px!important}
 html body:is(.student-panel.student-panel,.professor-panel.professor-panel) #dayModal .day-dialog-footer button{flex:1 1 145px!important;min-height:44px!important;white-space:normal!important}
 html body.professor-panel.professor-panel #sidebar #sidebarAdministration .system-data-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.professor-panel.professor-panel #dayModal .teacher-task-editor .grid{grid-template-columns:minmax(0,1fr)!important}
}
/* Access: no outer scrollbar. The card stays reachable with the keyboard open. */
@media screen and (max-width:1199px){
 html:has(body.access-page),html body.access-page{height:100%!important;min-height:0!important;overflow:hidden!important;scrollbar-gutter:auto!important}
 html body.access-page #loginScreen{height:100vh!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;box-sizing:border-box!important;padding:clamp(10px,3dvh,28px) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))!important;overflow:hidden!important}
 html body.access-page #loginScreen>.login-card{box-sizing:border-box!important;width:min(720px,100%)!important;max-width:100%!important;min-width:0!important;min-height:0!important;max-height:100%!important;padding:clamp(14px,3vw,24px)!important;border-radius:24px!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-width:none!important;scrollbar-gutter:auto!important}
 html body.access-page #loginScreen :is(#loginUserInput,#loginPasswordInput){font-size:16px!important;min-height:46px!important}
 html body.access-page #loginScreen h2{font-size:clamp(23px,5vw,32px)!important;line-height:1.2!important}
 html body.access-page #loginScreen :is(.login-role-student,.login-role-admin){max-width:100%!important;box-sizing:border-box!important;font-size:clamp(15px,3vw,19px)!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.4!important}
 html body.access-page #loginScreen .login-access-actions :is(a,button){min-height:44px!important;font-size:15px!important}
}
@media(prefers-reduced-motion:reduce){html body .login-role-student,html body .login-role-admin{animation:none!important;transform:none!important}}


/* ===== 10 · login-compact-2026-011.css ===== */
/* Slightly tighter access cards; fields keep 16px to avoid mobile focus zoom. */
@media screen and (max-width:1199px){
 html body.access-page #loginScreen{padding-top:clamp(8px,2dvh,18px)!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
 html body.access-page #loginScreen>.login-card{padding:14px 16px!important;border-radius:22px!important}
 html body.access-page #loginScreen>.login-card> :not([hidden])~:not([hidden]){margin-top:7px!important}
 html body.access-page #loginScreen .login-brand-section{gap:4px!important;margin-bottom:0!important}
 html body.access-page #loginScreen .login-brand-row{gap:10px!important}
 html body.access-page #loginScreen .login-brand-row .program-logo-large{width:50px!important;height:50px!important;min-width:50px!important;flex-basis:50px!important;border-radius:16px!important;margin:0!important}
 html body.access-page #loginScreen .login-brand-row .logo-robot{font-size:30px!important}
 html body.access-page #loginScreen .login-brand-row .logo-cap{font-size:17px!important}
 html body.access-page #loginScreen .login-brand-row h2{font-size:clamp(22px,4.8vw,28px)!important;line-height:1.15!important}
 html body.access-page #loginScreen :is(.login-role-student,.login-role-admin){margin:5px auto 0!important;padding:5px 9px!important;font-size:clamp(14px,3vw,17px)!important;line-height:1.3!important}
 html body.access-page #loginScreen #loginForm> :not([hidden])~:not([hidden]){margin-top:7px!important}
 html body.access-page #loginScreen #loginForm label{font-size:12px!important;line-height:1.3!important;margin-bottom:4px!important}
 html body.access-page #loginScreen :is(#loginUserInput,#loginPasswordInput){min-height:44px!important;padding:8px 12px!important;font-size:16px!important}
 html body.access-page #loginScreen .login-access-actions{gap:7px!important;padding:2px 0!important}
 html body.access-page #loginScreen .login-access-actions :is(a,button){min-height:44px!important;padding:7px 10px!important;font-size:14px!important;line-height:1.25!important}
 html body.access-page #loginScreen>.login-card>.border-t{padding-top:7px!important;font-size:11.5px!important;line-height:1.4!important}
 html body.access-page #loginScreen>.login-card>.border-t p{margin-top:3px!important;text-wrap:pretty;overflow-wrap:normal!important}
 html body.access-page #loginScreen .login-help-teacher{white-space:nowrap!important;overflow-wrap:normal!important}
}
@media screen and (max-height:560px) and (max-width:1199px){
 html body.access-page #loginScreen>.login-card{padding:10px 14px!important}
 html body.access-page #loginScreen .login-brand-row .program-logo-large{width:40px!important;height:40px!important;min-width:40px!important;flex-basis:40px!important}
 html body.access-page #loginScreen .login-brand-row .logo-robot{font-size:25px!important}
 html body.access-page #loginScreen .login-brand-row .logo-cap{font-size:14px!important}
 html body.access-page #loginScreen>.login-card> :not([hidden])~:not([hidden]){margin-top:5px!important}
}


/* ===== 11 · login-student-frame-2026-012.css ===== */
/* A real border stays around the card even when its contents must scroll. */
@media screen and (max-width:1199px){
 html body.access-page.login-student-access #loginScreen{padding-top:8px!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
 html body.access-page.login-student-access #loginScreen>.login-card{border:2px solid transparent!important;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,#ffd86b,#9edcff,#c8a9ff,#a8ebcb) border-box!important;background-attachment:scroll!important;position:relative!important;box-sizing:border-box!important;padding:12px 14px 14px!important;flex-shrink:0!important;max-height:100%!important}
 html body.access-page.login-student-access #loginScreen>.login-card:before{content:none!important;display:none!important}
 html body.access-page.login-student-access #loginScreen>.login-card> :not([hidden])~:not([hidden]){margin-top:5px!important}
 html body.access-page.login-student-access #loginScreen .login-brand-row .program-logo-large{width:44px!important;height:44px!important;min-width:44px!important;flex-basis:44px!important}
 html body.access-page.login-student-access #loginScreen .login-brand-row .logo-robot{font-size:27px!important}
 html body.access-page.login-student-access #loginScreen .login-brand-row .logo-cap{font-size:15px!important}
 html body.access-page.login-student-access #loginScreen #loginForm> :not([hidden])~:not([hidden]){margin-top:5px!important}
 html body.access-page.login-student-access #loginScreen .login-access-actions{gap:5px!important;padding:0!important}
 html body.access-page.login-student-access #loginScreen>.login-card>.border-t{position:static!important;flex:none!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin-bottom:0!important;padding:6px 0 0!important;font-size:11.5px!important;line-height:1.35!important}
 html body.access-page.login-student-access #loginScreen>.login-card>.border-t p{margin:3px 0 0!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:normal!important}
 html body.access-page.login-student-access #loginScreen .login-contact-email{display:block!important;line-height:1.4!important;margin-top:2px!important}
 html body.access-page.login-student-access #loginScreen .login-contact-email a{overflow-wrap:anywhere!important}
}

