/* V305: consistent authentication gloss and viewport-safe shared surfaces. */
@media screen {
html body.viit-auth264:not(:has(#viit-no-theme305)) {
 margin:0!important;min-height:100svh!important;background:#faf7f9!important;color:#32212c!important;
 font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;overflow-x:clip!important;
 --a305-gloss:radial-gradient(ellipse at 18% -30%,#ee73905c,transparent 60%),linear-gradient(173deg,#b12759,#880e3d 45%,#68062b 48%,#8f1343);
}
html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-header{background:var(--a305-gloss)!important;box-shadow:inset 0 1px 0 #ffc4d85f,0 3px 12px #6a103520!important;border-bottom:1px solid #a83d65!important;height:60px!important}
html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-main{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:560px!important;min-height:calc(100svh - 60px)!important;margin:60px auto 0!important;padding:20px!important}
html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-card{width:100%!important;min-width:0!important;padding:28px!important;border-radius:22px!important;background:linear-gradient(145deg,#fff 0%,#fff 45%,#fcf0f5 46%,#fffafb 100%)!important;border:1px solid #e9cbd9!important;box-shadow:inset 0 1px 0 #fff,0 12px 36px #71153112,0 3px 9px #7115310b!important}
html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-card h1{font-size:27px!important;color:#5c1533!important}
html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-input{background:linear-gradient(#fff,#fffbfd)!important;border-color:#e4cad6!important;box-shadow:inset 0 1px 0 #fff,0 2px 4px #74203e06!important;border-radius:12px!important;margin-bottom:13px!important}
html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-question{background:linear-gradient(#fff,#f5dae5)!important;border-color:#e4b8cb!important;box-shadow:inset 0 1px 0 #fff!important}
html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-submit{background:var(--a305-gloss)!important;border:1px solid #85113d!important;box-shadow:inset 0 1px 0 #ffffff70,0 4px 8px #75143525!important;border-radius:12px!important;color:#fff!important}
html body.viit-auth264:not(:has(#viit-no-theme305)) :is(.auth264-portals a,.auth264-download a){background:linear-gradient(#fff,#fae9f1)!important;border-color:#ddb4c6!important;color:#850e3d!important;box-shadow:inset 0 1px 0 #fff,0 2px 5px #74203e0c!important}
html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-otp-title{margin:0 0 18px!important}
html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-otp-title>i{background:linear-gradient(#fff,#efd0dd)!important;border:1px solid #ebcbda!important;box-shadow:inset 0 1px 0 #fff,0 3px 7px #74203e11!important}
html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-recovery{background:linear-gradient(140deg,#fff,#fff1f7)!important;border-color:#d9b5c6!important;box-shadow:0 18px 50px #3d0b2c40!important}
html body.viit-auth264:not(:has(#viit-no-theme305)) :is(input,button,a):focus-visible{outline:3px solid #c55f89;outline-offset:3px}
html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-alert{overflow-wrap:anywhere}
@media(max-width:767px){
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-main{max-width:480px!important;padding:14px!important;min-height:calc(100svh - 56px)!important;margin-top:56px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-header{height:56px!important;padding:8px 14px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-card{padding:20px!important;border-radius:19px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-card h1{font-size:24px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-help{margin-bottom:16px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-student-options{flex-wrap:wrap;row-gap:7px}
}
@media(max-height:740px){
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-main{padding-top:10px!important;padding-bottom:10px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-card{padding:17px 20px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-card h1{font-size:23px!important;margin-bottom:3px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-help{margin-bottom:12px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-input{height:41px!important;margin-bottom:9px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-input input{height:39px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-question{min-height:41px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-options{margin-bottom:10px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-portals{margin-top:12px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-portals a{min-height:38px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-download{margin-top:10px!important}
 html body.viit-auth264:not(:has(#viit-no-theme305)) .auth264-otp-title>i{width:56px!important;height:56px!important;font-size:26px!important;margin-bottom:14px!important}
}
/* Page width stays within the viewport; scrollable records retain their own scroll region. */
html.viit-ui264:has(body.viit-gloss304){max-width:100%;overflow-x:clip}
html body.viit-gloss304:not(:has(#viit-no-theme305)){max-width:100%!important;overflow-x:clip!important}
html body.viit-gloss304:not(:has(#viit-no-theme305)) :is(.app-main,.content-area,.student-main,.student-desktop-content,.sma-page-body,.card-body,.panel,.pro-card,.student-card,.modal-body){min-width:0;overflow-wrap:break-word}
html body.viit-gloss304:not(:has(#viit-no-theme305)) :is(input,select,textarea,img,video,iframe){max-width:100%}
html body.viit-gloss304:not(:has(#viit-no-theme305)) :is(.table-responsive,.dataTables_wrapper,.dt-container){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
html body.viit-gloss304:not(:has(#viit-no-theme305)) :is(.modal-dialog,.offcanvas){max-width:calc(100vw - 20px)}
html body.viit-gloss304:not(:has(#viit-no-theme305)) .modal-body{overflow-y:auto}
@media(max-width:767px){
 html body.viit-gloss304:not(:has(#viit-no-theme305)) :is(.student-card,.panel,.card,.sma-section,.oe-panel,.em-panel,.rd-panel){max-width:100%}
 html body.viit-gloss304:not(:has(#viit-no-theme305)) :is(.page-header,.panel-header,.student-card-title){flex-wrap:wrap;gap:8px}
 html body.viit-gloss304:not(:has(#viit-no-theme305)) :is(.student-card-title h2,.panel-title){overflow-wrap:anywhere}
}
/* Password reset uses V302's unchanged controller and token rules. */
html body.viit-reset305{background:#faf7f9!important;min-height:100svh!important;align-items:center!important;overflow-x:clip}
html body.viit-reset305>.card{background:linear-gradient(145deg,#fff 44%,#fcf0f5 45%,#fffafb)!important;box-shadow:inset 0 1px 0 #fff,0 12px 36px #71153118!important;border-color:#e9cbd9!important;border-radius:22px!important}
html body.viit-reset305 .brand{background:linear-gradient(170deg,#ab2353,#72082f)!important;color:#fff!important;padding:15px;border-radius:15px;box-shadow:inset 0 1px 0 #ffffff50}
html body.viit-reset305 .brand :is(strong,span){color:#fff!important}
html body.viit-reset305 button{background:linear-gradient(170deg,#b12759,#880e3d 45%,#68062b 48%,#8f1343)!important;box-shadow:inset 0 1px 0 #ffffff70,0 3px 7px #71153123!important}
@media(max-width:520px){html body.viit-reset305>.card{padding:20px!important}html body.viit-reset305 .brand img{width:44px;height:44px}html body.viit-reset305 .brand strong{font-size:17px}}
}
@media screen{
html body.viit-gloss304:not(:has(#viit-no-theme305)) :is(.panel,.card-body,.student-card,.oe-panel,.em-panel):has(>table){max-width:100%;overflow-x:auto}
html body.viit-gloss304:not(:has(#viit-no-theme305)) :is(.input-group,.form-control,.form-select){min-width:0}
}
@media screen{html body.viit-auth264:not(:has(#viit-no-theme305)){display:flow-root!important}}
/* V307: desktop web split layout must not inherit the 560px mobile form shell.
   Preserve existing fields/controllers and stop legacy auto-zoom shrinking text. */
@media screen and (min-width:900px){
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)){
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 min-height:100svh!important;height:auto!important;padding:0!important;gap:14px!important;
}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-brand{
 position:relative!important;inset:auto!important;transform:none!important;zoom:1!important;
 width:min(1060px,calc(100% - 48px))!important;max-width:1060px!important;margin:16px auto 0!important;
 min-height:64px!important;flex:0 0 auto!important;gap:18px!important;
}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-brand img{width:56px!important;height:56px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-brand>a{gap:12px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-brand strong{font-size:27px!important;line-height:1.15!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-brand b{font-size:12px!important;line-height:1.3!important;letter-spacing:.12em!important;margin:3px 0!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-brand small{font-size:10px!important;line-height:1.4!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-mission{font-size:17px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-main{
 display:grid!important;grid-template-columns:minmax(0,.85fr) minmax(0,1fr)!important;
 align-items:stretch!important;justify-content:normal!important;width:min(1000px,calc(100% - 48px))!important;
 max-width:1000px!important;min-width:0!important;min-height:0!important;height:auto!important;
 margin:0 auto!important;padding:0!important;zoom:1!important;transform:none!important;
 border-radius:22px!important;background:#fff!important;border:1px solid #e8cbd8!important;
 box-shadow:0 12px 32px #71153116!important;overflow:hidden!important;flex:0 0 auto!important;
}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-welcome{padding:28px!important;min-width:0!important;justify-content:center!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-welcome h2{font-size:29px!important;line-height:1.15!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-welcome h3{font-size:14px!important;line-height:1.4!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-eyebrow{font-size:10px!important;line-height:1.4!important;letter-spacing:.14em!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-tagline{font-size:12px!important;margin:12px 0 18px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-features{gap:14px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-features i{width:42px!important;height:42px!important;font-size:20px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-features span{font-size:11px!important;line-height:1.4!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-welcome blockquote{font-size:17px!important;line-height:1.4!important;margin:20px 0 12px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-card{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:24px 30px!important;border:0!important;border-radius:0!important;box-shadow:none!important;align-self:stretch!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-card h1{font-size:27px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-input input{font-size:16px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-card form>label{font-size:12px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-footer{position:relative!important;inset:auto!important;transform:none!important;zoom:1!important;width:100%!important;margin:0!important;padding:10px 24px!important;min-height:44px!important;flex:0 0 auto!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-footer strong{font-size:10px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-footer small{font-size:10px!important}
}
@media screen and (min-width:900px) and (max-height:740px){
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)){gap:10px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-brand{margin-top:8px!important;min-height:54px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-brand img{width:48px!important;height:48px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-card{padding:16px 26px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-input{height:38px!important;margin-bottom:8px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-input input{height:36px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-captcha .auth264-input{margin-bottom:0!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-question{min-height:38px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-help{margin-bottom:10px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-portals{margin-top:10px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-download{margin-top:8px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-welcome{padding:22px 28px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-welcome blockquote{margin:14px 0 8px!important}
}
@media screen and (min-width:900px) and (max-height:740px){
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)){gap:8px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-brand{height:54px!important;min-height:54px!important;box-sizing:border-box!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-brand strong{font-size:24px!important;line-height:1.1!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-brand b{font-size:10px!important;margin:2px 0!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-brand small{font-size:9px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-card form>label{margin:0 0 4px!important;line-height:1.3!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-help{margin:0 0 8px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-captcha{margin:0 0 8px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-options{margin:0 0 8px!important;min-height:20px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-submit{height:38px!important;font-size:15px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-portals{padding-top:0!important;margin-top:10px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-footer{height:44px!important;min-height:44px!important;box-sizing:border-box!important;padding:6px 24px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-footer i{font-size:20px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .web269-footer :is(strong,small){line-height:1.3!important}
}
/* Browser phones use the same compact login card as the app, not the desktop intro. */
@media screen and (max-width:899px){
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)){display:flow-root!important;height:auto!important;min-height:100svh!important;padding:0!important;gap:0!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) :is(.web269-brand,.web269-welcome,.web269-footer){display:none!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-header{display:flex!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-main{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:480px!important;min-height:calc(100svh - 56px)!important;margin:56px auto 0!important;padding:14px!important;zoom:1!important;transform:none!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;box-sizing:border-box!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-header{height:56px!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-card{width:100%!important;min-width:0!important;box-sizing:border-box!important;align-self:auto!important}
html body.viit-auth264.auth-web269:not(:has(#viit-no-theme305)) .auth264-input input{font-size:16px!important}
}
