/* Scoped to student subjects dashboard; legacy rules elsewhere untouched. */
html body .al28.eg-mobile-experience{--eg-bg:#eaf1fa;--eg-card:#fff;--eg-sub:#f5f8fc;--eg-text:#102647;--eg-muted:#425b79;--eg-line:#ccd9ea;--eg-primary:#0754b8;--eg-soft:#e2edfc;background:var(--eg-bg)!important;color:var(--eg-text)!important;border-radius:18px;padding:16px!important;gap:14px!important;max-width:1180px!important;width:100%!important;font-size:16px!important;box-sizing:border-box}
html body .al28.eg-mobile-experience[data-eg-theme=dark]{--eg-bg:#08172b;--eg-card:#102440;--eg-sub:#172e4b;--eg-text:#f0f6ff;--eg-muted:#c1d2e9;--eg-line:#3b5576;--eg-primary:#2465c8;--eg-soft:#203d61}
html body[data-eg-alumno-theme=light] main.container,html body[data-eg-alumno-theme=light] main.container>.page{background:#eaf1fa!important}
html body .al28.eg-mobile-experience :is(.al28-hero,.al28-card,.al28-subject,.al28-kpi,.al28-bar){background:var(--eg-card)!important;color:var(--eg-text)!important;border:1px solid var(--eg-line)!important;box-shadow:0 3px 12px #10264712!important;border-radius:16px!important;min-width:0!important;padding:16px!important}
html body .al28.eg-mobile-experience :is(h1,h3,.al28-section-title,.al28-doc,.al28-control label,.al28-hero-copy p,.al28-contexto-compacto,.al28-metrics-compact>summary,.al28-kpi b,.al28-kpi span,.al28-bar span,.al28-bar b,.al28-kicker,.eg-profile-options>summary,.al28-empty){color:var(--eg-text)!important;-webkit-text-fill-color:var(--eg-text)!important;text-shadow:none!important;opacity:1!important;font-size:16px!important;line-height:1.4!important}
html body .al28.eg-mobile-experience .al28-hero-copy h1{font-size:clamp(22px,5vw,32px)!important;line-height:1.12!important;overflow-wrap:anywhere}
html body .al28.eg-mobile-experience .al28-subject h3{font-size:19px!important;line-height:1.3!important}
html body .al28.eg-mobile-experience .al28-kicker{font-size:12px!important;letter-spacing:.08em!important}
html body .al28.eg-mobile-experience :is(.al28-tag,.al28-mini){background:var(--eg-soft)!important;color:var(--eg-text)!important;-webkit-text-fill-color:var(--eg-text)!important;border:1px solid var(--eg-line)!important;font-size:13px!important;white-space:normal!important;max-width:100%!important}
html body .al28.eg-mobile-experience :is(.al28-link,.al28-btn,.al28-file-btn,.al28-apply,#eg-theme-toggle){display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;background:var(--eg-primary)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:none!important;border:1px solid transparent!important;border-radius:10px!important;min-height:48px!important;height:auto!important;font-size:15px!important;line-height:1.3!important;font-weight:700!important;padding:10px!important;white-space:normal!important;text-align:center!important;overflow-wrap:anywhere!important;box-shadow:none!important;opacity:1!important}
html body .al28.eg-mobile-experience :is(.al28-btn,.al28-file-btn) span{color:inherit!important;-webkit-text-fill-color:inherit!important;font-size:inherit!important}
html body .al28.eg-mobile-experience .al28-link.secondary{background:var(--eg-soft)!important;color:var(--eg-text)!important;-webkit-text-fill-color:var(--eg-text)!important}
html body .al28.eg-mobile-experience .al28-link.tool{background:#08745d!important}
html body .al28.eg-mobile-experience .al28-link.tool.blue{background:#0967ac!important}
html body .al28.eg-mobile-experience .al28-link.tool.gold{background:#a65300!important;color:white!important;-webkit-text-fill-color:white!important}
html body .al28.eg-mobile-experience .al28-link.tool.slate{background:#465a79!important}
html body .al28.eg-mobile-experience .al28-btn.danger{background:#b42338!important}
html body .al28.eg-mobile-experience .al28-btn.diploma:first-child{background:#6941b8!important}
html body .al28.eg-mobile-experience .al28-control select{width:100%!important;min-width:0!important;max-width:100%!important;min-height:48px!important;font-size:16px!important;background:var(--eg-sub)!important;color:var(--eg-text)!important;-webkit-text-fill-color:var(--eg-text)!important;border:1px solid var(--eg-line)!important;color-scheme:light!important}
html body .al28.eg-mobile-experience .al28-control select option{background:var(--eg-card)!important;color:var(--eg-text)!important}
html body .al28.eg-mobile-experience[data-eg-theme=dark] .al28-control select{color-scheme:dark!important}
html body .al28.eg-mobile-experience .al28-hero-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
html body .al28.eg-mobile-experience .al28-hero-actions form{height:auto!important;min-height:48px!important;padding:0!important}
html body .al28.eg-mobile-experience .eg-theme-row{display:flex;justify-content:flex-end;margin-top:12px}
html body .al28.eg-mobile-experience #eg-theme-toggle{background:var(--eg-soft)!important;color:var(--eg-text)!important;-webkit-text-fill-color:var(--eg-text)!important;font-size:14px!important;min-height:44px!important}
html body .al28.eg-mobile-experience .eg-profile-options{margin-top:12px;border-top:1px solid var(--eg-line);padding-top:12px}
html body .al28.eg-mobile-experience .eg-profile-options>summary{cursor:pointer;min-height:44px;padding:10px 0}
html body .al28.eg-mobile-experience :is(a,button,summary,select,label):focus-visible{outline:3px solid #e79224!important;outline-offset:2px!important}
@media(max-width:768px){
html body:has(.eg-mobile-experience) main.container,html body:has(.eg-mobile-experience) main.container>.page{width:100%!important;max-width:100%!important;min-width:0!important;padding-inline:0!important;box-sizing:border-box!important}
html body .al28.eg-mobile-experience{padding:10px 10px calc(94px + env(safe-area-inset-bottom,0px))!important;border-radius:0!important;gap:12px!important}
html body .al28.eg-mobile-experience :is(.al28-card,.al28-hero,.al28-subject){padding:14px!important}
html body .al28.eg-mobile-experience :is(.al28-grid,.al28-controls){grid-template-columns:minmax(0,1fr)!important}
html body .al28.eg-mobile-experience .al28-subject-head{flex-wrap:wrap!important;gap:9px!important}
html body .al28.eg-mobile-experience .al28-subject-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
html body .al28.eg-mobile-experience .al28-subject-actions.tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body .al28.eg-mobile-experience .al28-hero-main{grid-template-columns:60px minmax(0,1fr)!important;gap:12px!important}
html body .al28.eg-mobile-experience .al28-bottomnav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;background:#092448!important;bottom:0!important;height:auto!important;min-height:64px!important;padding:5px 4px calc(5px + env(safe-area-inset-bottom,0px))!important;z-index:1000!important;gap:2px!important}
html body .al28.eg-mobile-experience .al28-bottomnav a{color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:12px!important;min-height:52px!important;min-width:0!important;text-decoration:none!important;opacity:1!important}
html body .al28.eg-mobile-experience .al28-bottomnav a span{color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:11px!important}
html body .al28.eg-mobile-experience .al28-bottomnav a.active{background:#0754b8!important;border-radius:10px!important}
html body:has(.eg-mobile-experience) .mobile-bottom-nav-v18061{display:none!important}
html body:has(.eg-mobile-experience) .pwa-install-pro:not([hidden]){bottom:calc(80px + env(safe-area-inset-bottom,0px))!important;max-width:calc(100vw - 24px)!important;right:12px!important;z-index:1001!important}
}
@media(min-width:769px){html body .al28.eg-mobile-experience .al28-bottomnav{display:none!important}}

/* Mobile Experience 1.1: late scoped overrides */
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience :is(.al28-section-title,.eg-profile-options,.eg-profile-options>summary,.al28-controls,.al28-control,.al28-badges,.al28-subject-head,.al28-docline){background:transparent!important;background-image:none!important;color:var(--eg-text)!important;-webkit-text-fill-color:var(--eg-text)!important;box-shadow:none!important;text-shadow:none!important;opacity:1!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience :is(h1,h3,.al28-doc,.al28-control label,.al28-hero-copy p,.al28-tag,.al28-mini,.al28-kicker,.al28-metrics-compact>summary){color:var(--eg-text)!important;-webkit-text-fill-color:var(--eg-text)!important;opacity:1!important;visibility:visible!important;text-shadow:none!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience .al28-section-title{padding:0 0 10px!important;border:0!important;border-bottom:1px solid var(--eg-line)!important;line-height:1.4!important;font-size:17px!important;letter-spacing:0!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience .eg-profile-options>summary{background:var(--eg-soft)!important;padding:12px!important;border-radius:10px!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience .al28-link.tool{background:#08745d!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience .al28-link.tool.blue{background:#0967ac!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience .al28-link.tool.gold{background:#a65300!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience .al28-link.tool.slate{background:#465a79!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience .al28-btn.diploma:first-child{background:#6941b8!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience .al28-link.secondary{background:var(--eg-soft)!important;color:var(--eg-text)!important;-webkit-text-fill-color:var(--eg-text)!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience :is(.al28-link,.al28-btn,.al28-apply,.al28-file-btn){font-size:15px!important;min-height:48px!important;line-height:1.3!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;margin:0!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience .al28-docfoto{width:44px!important;height:44px!important;object-fit:cover}
@media(max-width:820px){
html:has(.eg-mobile-experience),html body:has(.eg-mobile-experience),html:has(.login-pro),html body:has(.login-pro){width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:clip!important;zoom:1!important}
html body:has(.eg-mobile-experience) :is(main.container,main.container>.page),html body:has(.login-pro) :is(main.container,main.container>.page){width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;transform:none!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:10px 10px 90px!important;overflow:visible!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience :is(.al28-grid,.al28-controls,.al28-dashgrid){grid-template-columns:minmax(0,1fr)!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience :is(.al28-subject-actions,.al28-subject-actions.tools,.al28-hero-actions){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience .al28-subject-head{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience .al28-tag{justify-self:start}
html body:has(.eg-mobile-experience) .al28.eg-mobile-experience .al28-bottomnav,html body:has(.eg-mobile-experience)> .al28-bottomnav{display:grid!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:100%!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;background:#092448!important;min-height:64px!important;height:auto!important;z-index:10020!important;padding:5px 4px calc(5px + env(safe-area-inset-bottom,0px))!important;visibility:visible!important;opacity:1!important}
html body:has(.eg-mobile-experience)> .al28-bottomnav a{display:flex!important;flex-direction:column;align-items:center;justify-content:center;color:#fff!important;-webkit-text-fill-color:#fff!important;min-height:52px;font-size:12px!important;text-decoration:none!important;gap:3px}
html body:has(.eg-mobile-experience)> .al28-bottomnav a :is(b,span){color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
html body:has(.eg-mobile-experience) .mobile-bottom-nav-v18061{display:none!important}
html body:has(.eg-mobile-experience) .pwa-install-pro:not([hidden]){position:static!important;transform:none!important;margin:8px 12px 84px!important;width:auto!important;max-width:100%!important}
}
/* Login: independent of student theme */
html body.public-auth-layout:has(.login-pro) .login-pro{width:100%!important;max-width:1120px!important;min-width:0!important;box-sizing:border-box!important}
html body.public-auth-layout .login-pro :is(.login-hero,.login-panel,.login-panel-head,.login-hero-top,.login-form,.login-access,.login-access-card,.login-help,.brand-note){min-width:0!important;max-width:100%!important;box-sizing:border-box!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.public-auth-layout .login-pro .login-form .input{width:100%!important;min-width:0!important;max-width:100%!important;font-size:16px!important;min-height:48px!important}
@media(max-width:820px){
html body.public-auth-layout .login-pro{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:12px!important;margin:0!important}
html body.public-auth-layout .login-pro :is(.login-hero,.login-panel){width:100%!important;padding:18px!important;min-height:0!important}
html body.public-auth-layout .login-pro .login-title{font-size:clamp(24px,6vw,34px)!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body.public-auth-layout .login-pro .login-hero-foot{display:none!important}
html body.public-auth-layout .login-pro .login-panel-head{display:block!important}
html body.public-auth-layout .login-pro .login-badge{display:none!important}
html body.public-auth-layout .login-pro :is(.login-access,.login-access-card){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
html body.public-auth-layout .login-pro :is(.login-help,.login-access-card p,.login-form label){font-size:15px!important;line-height:1.5!important}
html body.public-auth-layout .login-pro :is(.btn,.btn-secondary){display:flex!important;align-items:center;justify-content:center;width:100%!important;min-width:0!important;min-height:48px!important;font-size:15px!important;white-space:normal!important;text-align:center}
}

@media(min-width:821px){html body:has(.eg-mobile-experience)> .al28-bottomnav{display:none!important}}
