/* CESBA Student UI 3.4 | consolidated and ordered styles from Student 3.0, 3.2, 3.3.
 * Visual-only migration: replaces three sequential stylesheet requests with one.
 * Previous source files remain archived in the repository, but are NOT loaded.
 * Design revisions follow at the end, with no changes to authentication/data scripts.
 */

/* ===== Legacy Student 3.0 — stable base ===== */
/*
 * CESBA Student 3.0 | University Tech
 * Scope: presentation, navigational appearance and readability only.
 * No account, auth, grade, session or progress logic is changed.
 * This sheet loads AFTER cesba-student-2026.css to avoid editing legacy layers.
 */
html:has(body.cesba-role-student){overflow-x:clip}
body.cesba-role-student{
  --s30-surface:#0b1a2b;
  --s30-surface-2:#10243a;
  --s30-stroke:rgba(159,191,224,.18);
  --s30-text:#eaf4ff;
  --s30-muted:#a7bfd6;
  --s30-cyan:#78dbfa;
  --s30-purple:#b6a0ff;
  --s30-mint:#86e5c4;
  background:
    radial-gradient(950px 440px at 17% 9%,rgba(65,122,175,.105),transparent 78%),
    radial-gradient(780px 440px at 93% 21%,rgba(132,99,197,.07),transparent 78%),
    #07111e;
  color:var(--s30-text);
  /* Prevent legacy decorative overscroll from producing a horizontal pan on phones. */
  overflow-x:clip;
}
body.cesba-role-student :is(a,button,input,select,summary):focus-visible{
  outline:2px solid var(--s30-cyan);
  outline-offset:3px;
}
body.cesba-role-student #cesbaStudentHome,
body.cesba-role-student #cesbaStudentProgress,
body.cesba-role-student #materias{scroll-margin-top:95px}
/* Navigation: quieter shell, stronger selection, comfortable targets */
body.cesba-role-student .topbar,
body.cesba-role-student .topbar.is-scrolled{
  background:rgba(8,20,35,.97);
  border-color:var(--s30-stroke);
  box-shadow:0 12px 38px rgba(0,0,0,.23);
}
body.cesba-role-student .student-icon-nav{
  border-color:var(--s30-stroke);
  border-radius:15px;
  background:rgba(16,36,58,.78);
}
body.cesba-role-student .student-icon-link{
  min-height:44px;
  min-width:44px;
  color:#b6c9dd;
  border-radius:11px;
}
body.cesba-role-student .student-icon-link.is-active{
  color:#f4fcff;
  border-color:rgba(120,219,250,.36);
  background:rgba(86,147,194,.22);
  box-shadow:inset 0 -2px 0 var(--s30-cyan);
}
body.cesba-role-student .student-icon-link:hover{color:#f7fcff;background:rgba(120,219,250,.12)}
body.cesba-role-student .cesba-user-chip{
  border-color:rgba(159,191,224,.22);
  background:rgba(16,36,58,.74);
}
body.cesba-role-student .student-profile-menu{
  border-color:var(--s30-stroke);
  box-shadow:0 20px 55px rgba(0,0,0,.4);
}
body.cesba-role-student .student-profile-menu-head :is(strong,small),
body.cesba-role-student .student-profile-details strong{color:#e4f1fe;font-size:.79rem}
body.cesba-role-student .student-profile-details small{color:#b5cce0;font-size:.72rem}
body.cesba-role-student .student-profile-menu-actions :is(a,button){
  font-size:.75rem;min-height:44px;
}
/* Cleaner landing panel with real data counters */
body.cesba-role-student .student-dashboard-home{
  margin:22px 0 16px!important;
  padding:clamp(19px,2.5vw,32px)!important;
  border:1px solid var(--s30-stroke)!important;
  border-radius:24px!important;
  background:
    radial-gradient(460px 230px at 100% 0,rgba(106,115,199,.08),transparent 74%),
    linear-gradient(160deg,#0c2034,#091727 76%)!important;
  box-shadow:0 24px 68px rgba(0,0,0,.20)!important;
}
body.cesba-role-student .student-dashboard-home::before{opacity:.10}
body.cesba-role-student .student-dashboard-head{
  margin-bottom:24px;
  align-items:center;
  gap:20px;
}
body.cesba-role-student .student-home-kicker{
  color:var(--s30-cyan);
  font:800 .72rem/1.5 Inter,Arial,sans-serif;
  letter-spacing:.09em;
}
body.cesba-role-student .student-dashboard-head h2{
  color:#f5faff;
  font:800 clamp(1.85rem,3.5vw,2.85rem)/1.13 Manrope,Inter,sans-serif;
  letter-spacing:-.045em;
}
body.cesba-role-student .student-dashboard-head p{
  color:#bdd0e0;
  font-size:.9rem;
  line-height:1.65;
}
body.cesba-role-student .student-meta{gap:8px}
body.cesba-role-student .student-meta span{
  color:#d0deeb!important;
  font-size:.75rem!important;
  padding:7px 11px!important;
  border:1px solid var(--s30-stroke)!important;
  background:#11273e!important;
  border-radius:999px;
}
body.cesba-role-student .student-meta .student-meta-live{color:#9fefd2!important}
body.cesba-role-student .student-bento{gap:12px}
body.cesba-role-student .student-bento-card{
  border:1px solid var(--s30-stroke);
  border-radius:17px;
  background:#0e2338;
  box-shadow:0 8px 24px rgba(0,0,0,.13);
}
body.cesba-role-student .bento-continue{
  grid-column:span 8;
  padding:clamp(19px,2.3vw,27px);
  min-height:230px;
  border-color:rgba(120,219,250,.34);
  background:
    radial-gradient(460px 260px at 100% 0,rgba(115,121,211,.13),transparent 70%),
    linear-gradient(125deg,#143654 0%,#0b2238 67%,#101e33 100%);
}
body.cesba-role-student .bento-continue::after{display:none}
body.cesba-role-student .bento-eyebrow{
  color:#b1eaff;
  font:800 .72rem/1.4 Inter,Arial,sans-serif;
  letter-spacing:.05em;
}
body.cesba-role-student .bento-progress-value{font-size:.86rem;color:#c9f2ff}
body.cesba-role-student .bento-subject{
  margin-top:20px;
  color:#bbd3e8;
  font-size:.82rem;
  font-weight:700;
}
body.cesba-role-student .bento-continue h3{
  max-width:580px;
  color:#fff;
  font:800 clamp(1.5rem,2.4vw,2.05rem)/1.2 Manrope,Inter,sans-serif;
  letter-spacing:-.04em;
}
body.cesba-role-student .bento-progress-track{height:7px;margin-top:21px;background:#233d56}
body.cesba-role-student .bento-progress-track span{box-shadow:none}
body.cesba-role-student .bento-continue-footer{margin-top:18px;gap:12px}
body.cesba-role-student .bento-continue-footer>span{
  color:#c4d5e5;
  font-size:.77rem;
  line-height:1.5;
}
body.cesba-role-student .bento-continue .student-continue{
  min-height:46px;
  padding:0 17px;
  border:1px solid #93e6ff;
  border-radius:11px;
  color:#092337;
  background:#93e6ff;
  box-shadow:0 8px 22px rgba(0,0,0,.12);
  font-size:.83rem;
  transition:transform .16s ease,background .16s ease;
}
body.cesba-role-student .bento-continue .student-continue:hover{
  background:#c5f4ff;transform:translateY(-2px);color:#072031;
}
body.cesba-role-student .bento-overall{
  grid-column:span 4;min-height:230px;padding:20px;
  border-color:rgba(134,229,196,.22);
  background:linear-gradient(160deg,#102e3d,#0b2235);
}
body.cesba-role-student .bento-overall-copy>span{
  color:#a4e8d1;
  font:800 .7rem Inter,Arial,sans-serif;letter-spacing:.04em;
}
body.cesba-role-student .bento-overall-copy>strong{
  font-size:.92rem;color:#f0faff;line-height:1.5;
}
body.cesba-role-student .bento-overall-copy>small{
  color:#b2c8d7;font-size:.73rem;line-height:1.55;
}
body.cesba-role-student .student-progress-ring span{font-size:.68rem;color:#b8cde0}
body.cesba-role-student .bento-metric{
  grid-column:span 2;
  padding:18px;min-height:128px;
  background:#10283e;
}
body.cesba-role-student .bento-metric>span{
  color:#c5d6e6;font-size:.8rem;
}
body.cesba-role-student .bento-metric>strong{color:#f1faff;font-size:1.9rem}
body.cesba-role-student .bento-metric>small{font-size:.75rem;color:#acc4d8}
body.cesba-role-student .bento-recent{
  grid-column:span 6;
  padding:18px 20px;
  background:#0c2135;
}
body.cesba-role-student .bento-recent .bento-card-top>div h3{
  color:#f0faff;font-size:.98rem;
}
body.cesba-role-student .bento-recent .bento-card-top>a{
  color:#a1e9ff;font-size:.77rem;min-height:34px;
}
body.cesba-role-student .student-recent-item{min-height:46px;gap:12px}
body.cesba-role-student .student-recent-state{width:29px;height:29px;font-size:.76rem}
body.cesba-role-student .student-recent-copy strong{font-size:.81rem;color:#e0eefb}
body.cesba-role-student .student-recent-copy small{font-size:.71rem;color:#adbfce}
body.cesba-role-student .student-recent-score{font-size:.75rem;color:#d9e8f8}
body.cesba-role-student .student-recent-empty{font-size:.79rem;color:#bbd1e3}
/* Quick educational pathways — navigation only, no course data duplication */
body.cesba-role-student .student3-shortcuts{
  position:relative;z-index:1;
  display:flex;gap:10px;flex-wrap:wrap;
  margin:16px 0 3px;
  border-top:1px solid var(--s30-stroke);
  padding-top:16px;
}
body.cesba-role-student .student3-shortcuts a{
  min-height:45px;
  padding:10px 15px;
  display:inline-flex;align-items:center;gap:10px;justify-content:center;
  border-radius:12px;
  border:1px solid rgba(147,230,255,.23);
  background:rgba(120,219,250,.06);
  color:#d6f4ff;
  font-size:.83rem;font-weight:750;text-decoration:none;
}
body.cesba-role-student .student3-shortcuts a:hover{background:rgba(120,219,250,.14);border-color:rgba(147,230,255,.49)}
body.cesba-role-student .student3-shortcuts svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.cesba-role-student .student3-shortcuts .student3-primary{background:#143a54;color:#f0fbff}
/* Route is supporting information; avoid distracting from resume / subjects */
body.cesba-role-student .student-route-panel{
  margin-top:20px;padding:20px;
  border-radius:17px;border-color:var(--s30-stroke);
  background:rgba(11,28,45,.75);
}
body.cesba-role-student .student-route-head h3{color:#f1f9ff;font-size:1.1rem}
body.cesba-role-student .student-route-head p{
  font-size:.8rem;color:#b2c7dc;line-height:1.55;
}
body.cesba-role-student .student-route-head>a{
  font-size:.8rem;min-height:40px;display:inline-flex;align-items:center;
}
body.cesba-role-student .student-route-item strong{color:#e8f5ff;font-size:.83rem}
body.cesba-role-student .student-route-item small{color:#adbeda;font-size:.76rem}
body.cesba-role-student .student-route-item>a{font-size:.8rem;min-height:40px}
body.cesba-role-student .student-route-complete :is(strong,small){font-size:.8rem;color:#c6d7e6}
/* Course catalog — each card reads like a useful app, not a brochure */
body.cesba-role-student #materias{padding-top:22px}
body.cesba-role-student .subject-section-head h2{
  color:#f3faff;font-size:clamp(1.65rem,2.8vw,2.25rem);
  letter-spacing:-.04em;
}
body.cesba-role-student .subject-section-copy{font-size:.85rem;color:#bed0e0;line-height:1.6}
body.cesba-role-student .section-note{font-size:.76rem;color:#bfd0e1}
body.cesba-role-student .subject-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.cesba-role-student .subject-card,
body.cesba-role-student .subject-card-v2{
  min-height:230px!important;padding:20px!important;
  border-radius:17px!important;
  border:1px solid var(--s30-stroke)!important;
  background:linear-gradient(160deg,#10273c,#0b1c2e)!important;
  box-shadow:0 9px 30px rgba(0,0,0,.13)!important;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
body.cesba-role-student .subject-card:hover{
  transform:translateY(-3px)!important;
  border-color:rgba(var(--route-rgb),.42)!important;
  box-shadow:0 16px 35px rgba(0,0,0,.23)!important;
}
body.cesba-role-student .subject-card::before{
  width:3px;border-radius:0;background:var(--route);
}
body.cesba-role-student .subject-card::after{display:none}
body.cesba-role-student .subject-card .card-top{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:14px;
}
/* Superseded textual pseudo badges removed in Student 3.4; SVG icons live in HTML. */
body.cesba-role-student .subject-card .card-top .code{
  color:#c2d2e1!important;
  font-size:.72rem!important;
  margin-right:auto;letter-spacing:.015em;
}
body.cesba-role-student .subject-card .card-top .status{
  color:#d5e5f2;font-size:.7rem;
  min-height:28px;padding:4px 9px;
  border:1px solid rgba(159,191,224,.22);
}
body.cesba-role-student .subject-card .semester{
  color:#afc4d5!important;font-size:.73rem!important;
}
body.cesba-role-student .subject-card h3,
body.cesba-role-student .subject-card-v2 h3{
  color:#f2faff!important;font-size:1.24rem!important;
  line-height:1.28;letter-spacing:-.025em;
}
body.cesba-role-student .subject-v2-meta{
  margin-top:18px;padding-top:14px;border-color:var(--s30-stroke);
}
body.cesba-role-student .subject-v2-progress-head{
  color:#c3d3e3;font-size:.78rem;
}
body.cesba-role-student .subject-v2-progress-head strong{color:#f1faff;font-size:.8rem}
body.cesba-role-student .subject-v2-meta .subject-live-progress-track{height:7px;margin-top:9px;background:#243b51}
body.cesba-role-student .subject-v2-next{margin-top:12px;gap:10px}
body.cesba-role-student .subject-v2-next small{font-size:.7rem}
body.cesba-role-student .subject-v2-next span{
  color:#c1d2e1;font-size:.77rem;
}
body.cesba-role-student .subject-card-v2 .card-footer{margin-top:14px!important;padding-top:11px!important;gap:8px}
body.cesba-role-student .subject-card-v2 .card-footer>span{color:#b4cadb;font-size:.73rem}
body.cesba-role-student .subject-card-v2 .card-footer>a{
  min-height:42px;
  padding:8px 13px;
  display:inline-flex;align-items:center;
  border-radius:9px;
  color:#f2faff;
  font-size:.79rem;
  font-weight:800;
  border-color:rgba(var(--route-rgb),.33);
  background:rgba(var(--route-rgb),.16);
}
body.cesba-role-student .subject-card-v2 .card-footer>a:hover{background:rgba(var(--route-rgb),.25)}
/* Progress detail, disclosure states, and navigation accessibility */
body.cesba-role-student .progress-shell{border-color:var(--s30-stroke);background:#0b1b2d}
body.cesba-role-student .progress-head p{color:#b9cfdf;font-size:.83rem}
body.cesba-role-student .progress-overview span{color:#c2d1de;font-size:.78rem}
body.cesba-role-student .progress-overview strong{color:#f3faff}
body.cesba-role-student .student-collapse-toggle{
  min-height:44px;padding:8px 14px;
  color:#e5f6ff;background:#15334d;
  border:1px solid rgba(120,219,250,.26);
  font-size:.78rem;font-weight:800;
}
body.cesba-role-student .subject-section-head .student-collapse-toggle{flex:0 0 auto}
body.cesba-role-student .student-empty-action strong{color:#e0eefa;font-size:.8rem}
body.cesba-role-student .student-empty-action small{color:#adbeda;font-size:.75rem}
body.cesba-role-student .student-route-skeleton,body.cesba-role-student .student-skeleton-row{opacity:.8}
/* Responsive: preserve useable dashboard and native bottom navigation */
@media(max-width:1080px){
 body.cesba-role-student .bento-continue{grid-column:span 12}
 body.cesba-role-student .bento-overall{grid-column:span 6;min-height:170px}
 body.cesba-role-student .bento-metric{grid-column:span 2}
 body.cesba-role-student .bento-recent{grid-column:span 12}
}
@media(max-width:900px){
 body.cesba-role-student .subject-grid{grid-template-columns:1fr}
 body.cesba-role-student .bento-overall{grid-column:span 6}
 body.cesba-role-student .bento-metric{grid-column:span 2}
}
@media(max-width:760px){
 body.cesba-role-student .student-dashboard-head{flex-direction:column;align-items:flex-start;gap:12px}
 body.cesba-role-student .student-dashboard-head .student-meta{justify-content:flex-start!important}
 body.cesba-role-student .bento-overall{grid-column:span 12;justify-content:flex-start}
 body.cesba-role-student .bento-metric{grid-column:span 4}
 body.cesba-role-student .student-route-panel{padding:17px}
}
@media(max-width:620px){
 body.cesba-role-student{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
 body.cesba-role-student .topbar,
 body.cesba-role-student .topbar.is-scrolled{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"brand actions"!important;
  gap:8px;padding:8px 10px;border-radius:15px;
 }
 body.cesba-role-student .identity{grid-area:brand;justify-self:start;max-width:100%}
 body.cesba-role-student .identity strong{font-size:.76rem}
 body.cesba-role-student .nav-actions{
  grid-area:actions;width:auto;max-width:100%;justify-content:flex-end;
 }
 body.cesba-role-student .cesba-user-chip{max-width:175px}
 body.cesba-role-student .cesba-header-profile{max-width:105px}
 body.cesba-role-student .cesba-account-name{max-width:100px}
 body.cesba-role-student .student-icon-nav{
  position:fixed;bottom:calc(10px + env(safe-area-inset-bottom,0px));
  left:12px;right:12px;width:auto;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:5px;min-height:66px;padding:7px;
  border-color:rgba(120,219,250,.27);
  border-radius:19px;background:rgba(8,25,42,.97);
  z-index:90;
 }
 body.cesba-role-student .student-icon-nav .student-icon-link{
  min-width:0;min-height:49px;
  display:flex;flex-direction:column;gap:3px;justify-content:center;align-items:center;padding:4px 5px;
 }
 body.cesba-role-student .student-icon-link>span{display:block;font-size:.7rem}
 body.cesba-role-student .student-icon-link svg{height:19px;width:19px}
 body.cesba-role-student .student-dashboard-home{padding:17px!important;margin-top:12px!important}
 body.cesba-role-student .student-dashboard-head h2{font-size:clamp(1.65rem,7vw,2.2rem);line-height:1.14}
 body.cesba-role-student .student-dashboard-head p{font-size:.83rem}
 body.cesba-role-student .student-meta span{font-size:.71rem!important}
 body.cesba-role-student .student-bento{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.cesba-role-student .bento-continue,
 body.cesba-role-student .bento-overall,
 body.cesba-role-student .bento-recent{grid-column:1/-1}
 body.cesba-role-student .bento-metric{grid-column:span 1;min-height:110px;padding:14px}
 body.cesba-role-student .bento-metric:nth-of-type(5){grid-column:1/-1}
 body.cesba-role-student .bento-continue{padding:20px;min-height:0}
 body.cesba-role-student .bento-continue-footer{flex-direction:column;align-items:stretch}
 body.cesba-role-student .bento-continue .student-continue{width:100%;justify-content:center}
 body.cesba-role-student .bento-overall{padding:18px;min-height:142px;gap:14px}
 body.cesba-role-student .bento-overall .student-progress-ring{width:94px;height:94px;flex-basis:94px}
 body.cesba-role-student .bento-metric>strong{font-size:1.75rem}
 body.cesba-role-student .student3-shortcuts{display:grid;grid-template-columns:1fr;gap:9px}
 body.cesba-role-student .student3-shortcuts a{justify-content:flex-start}
 body.cesba-role-student .student-profile-menu{bottom:calc(86px + env(safe-area-inset-bottom,0px));max-height:65dvh;overflow:auto}
 body.cesba-role-student .subject-card,
 body.cesba-role-student .subject-card-v2{padding:17px!important}
 body.cesba-role-student .subject-card .card-top{gap:7px}
 body.cesba-role-student .subject-card .card-top::before{flex-basis:36px;width:36px;height:36px}
 body.cesba-role-student .subject-card .card-top .code{font-size:.65rem!important}
 body.cesba-role-student #cesbaStudentHome,
 body.cesba-role-student #cesbaStudentProgress,
 body.cesba-role-student #materias{scroll-margin-top:84px}
}
@media(max-width:380px){
 body.cesba-role-student .identity small{display:none!important}
 body.cesba-role-student .identity-mark.identity-mark-text{min-width:75px;padding:0 7px;font-size:.6rem}
 body.cesba-role-student .nav-actions{gap:2px}
 body.cesba-role-student .cesba-user-chip{max-width:130px}
 body.cesba-role-student .cesba-header-profile{max-width:76px}
 body.cesba-role-student .student-dashboard-home{padding:14px!important}
 body.cesba-role-student .bento-continue{padding:16px}
 body.cesba-role-student .bento-overall{gap:8px}
}
@media(prefers-reduced-motion:reduce){
 body.cesba-role-student :is(.subject-card,.student-icon-link,.student-continue,.student-action){
  transition:none!important;animation:none!important;transform:none!important;
 }
 body.cesba-role-student *{scroll-behavior:auto!important}
}


/* ===== Legacy Student 3.2 — login/profile ===== */
/* CESBA Student 3.2 — University Tech · acceso, perfil y seguridad.
   Capa visual tardía. Login compartido alumno/docente, perfil solo alumno.
   No modifica permisos ni manejo de contraseñas ni RPC. */
:root{
 --s32-ink:#071421;--s32-panel:#0e2337;--s32-panel-high:#15334a;
 --s32-stroke:rgba(153,194,225,.23);--s32-white:#eef8ff;
 --s32-muted:#bed0de;--s32-cyan:#95e7ff;--s32-mint:#95ebcf;
}
#cesbaAuthGate{
 background:
   radial-gradient(700px 450px at 8% 4%,rgba(60,140,185,.16),transparent 78%),
   radial-gradient(640px 370px at 91% 91%,rgba(117,115,204,.09),transparent 78%),
   #071421!important;
}
#cesbaAuthGate .cesba-auth-boot{
 width:min(450px,100%);
 padding:37px 28px!important;
 border:1px solid var(--s32-stroke)!important;
 border-radius:23px!important;
 background:linear-gradient(155deg,#102941,#091b2c)!important;
 box-shadow:0 30px 70px rgba(0,0,0,.24)!important;
}
#cesbaAuthGate .cesba-auth-boot img{width:96px;height:96px}
#cesbaAuthGate .cesba-auth-boot strong{font-size:.95rem;color:#f3faff;line-height:1.5}
#cesbaAuthGate .cesba-auth-boot span{font-size:.83rem;color:#bdcfe0}
#cesbaAuthGate .cesba-auth-card{
 width:min(1000px,100%)!important;
 grid-template-columns:minmax(325px,.94fr) minmax(375px,1.06fr)!important;
 border-radius:24px!important;
 border:1px solid var(--s32-stroke)!important;
 background:#0c2033!important;
 box-shadow:0 26px 80px rgba(0,0,0,.3)!important;
}
#cesbaAuthGate .cesba-auth-visual{
 min-height:525px!important;
 padding:33px!important;
 border-right:1px solid var(--s32-stroke)!important;
 background:
   radial-gradient(400px 300px at 100% 0,rgba(117,125,200,.1),transparent 72%),
   linear-gradient(155deg,#13344c,#0a2236 76%)!important;
}
#cesbaAuthGate .cesba-auth-visual::after{
 content:"CESBA";
 right:-8px;bottom:3px;
 color:rgba(220,243,255,.025);font-size:6rem;
}
#cesbaAuthGate .cesba-auth-brand{
 gap:11px;align-items:center;
}
#cesbaAuthGate .cesba-auth-brand img{
 width:52px!important;height:52px!important;
 padding:6px;border-radius:14px;
 background:rgba(143,220,251,.055);
 border:1px solid rgba(143,220,251,.21);
 object-fit:contain;
}
#cesbaAuthGate .cesba-auth-brand span{
 color:#e1f0fc!important;
 font:800 .75rem/1.4 Inter,Arial,sans-serif!important;
 letter-spacing:.03em;
}
#cesbaAuthGate .cesba-auth-visual-copy small{
 color:#b4ebfd;
 font:800 .74rem/1.5 Inter,Arial,sans-serif;
 letter-spacing:.07em;
}
#cesbaAuthGate .cesba-auth-visual-copy h2{
 max-width:410px;
 font-size:clamp(1.95rem,3vw,2.5rem);
 line-height:1.18;letter-spacing:-.045em;
 color:#f6fcff;
 margin:12px 0 13px;
}
#cesbaAuthGate .cesba-auth-visual-copy p{
 max-width:350px;
 color:#c3d9e9;font-size:.9rem;line-height:1.7;
}
#cesbaAuthGate .cesba-auth-feature-list{gap:11px;margin-top:21px}
#cesbaAuthGate .cesba-auth-feature{
 gap:12px;color:#d4e4f1;
 font-size:.81rem;line-height:1.45;
}
#cesbaAuthGate .cesba-auth-feature i{
 width:9px;height:9px;flex:0 0 9px;
 background:var(--s32-mint);box-shadow:none;
}
#cesbaAuthGate .cesba-auth-visual-foot{
 gap:8px;padding-top:13px;
 border-top:1px solid rgba(159,191,224,.16);
}
#cesbaAuthGate .cesba-auth-visual-foot span{
 padding:6px 10px;
 border:1px solid rgba(159,191,224,.18);
 background:rgba(143,220,251,.035);
 color:#b9d7e9!important;font-size:.69rem!important;
 letter-spacing:.02em;
}
#cesbaAuthGate .cesba-auth-content{
 padding:clamp(26px,4vw,48px)!important;
 background:linear-gradient(160deg,#0c2033,#0a1b2c)!important;
}
#cesbaAuthGate .cesba-auth-kicker{
 color:#a6eaff!important;font-size:.74rem!important;letter-spacing:.07em!important;
}
#cesbaAuthGate .cesba-auth-content h1{
 color:#f6fcff;
 font-size:clamp(2rem,4vw,2.7rem)!important;
 line-height:1.18;
 letter-spacing:-.04em!important;
}
#cesbaAuthGate .cesba-auth-copy{
 color:#c4d5e3!important;
 font-size:.88rem!important;line-height:1.72;
 margin:13px 0 22px!important;
}
#cesbaAuthGate .cesba-auth-field{margin-top:17px!important}
#cesbaAuthGate .cesba-auth-field label{
 color:#e0eef8!important;font-size:.8rem!important;margin-bottom:8px;
}
#cesbaAuthGate .cesba-auth-field input{
 height:50px;min-height:50px;
 color:#f5fcff!important;
 padding:12px 14px;
 border:1px solid #46617a!important;
 background:#091a2b!important;
 border-radius:11px!important;
 font-size:.9rem;
}
#cesbaAuthGate .cesba-auth-field input:hover{border-color:#6995b0!important}
#cesbaAuthGate .cesba-auth-field input:focus-visible,
#cesbaAccountOverlay .cesba-account-field input:focus-visible{
 outline:2px solid var(--s32-cyan)!important;outline-offset:2px!important;
 box-shadow:none!important;
}
#cesbaAuthGate .cesba-password-toggle{
 min-width:46px;min-height:42px;
 right:4px;
 font-size:.76rem!important;
 color:#d5e4ef;
}
#cesbaAuthGate .cesba-auth-submit{
 margin-top:21px!important;
 min-height:50px!important;
 border:1px solid #a1eafd!important;
 border-radius:11px!important;
 background:#94e5fa!important;
 color:#10283b!important;
 font-size:.88rem;font-weight:850;
}
#cesbaAuthGate .cesba-auth-submit:hover:not(:disabled){
 background:#c0f4ff!important;
 transform:translateY(-1px);
}
#cesbaAuthGate .cesba-auth-secondary{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:44px!important;
 color:#b7e8ff;font-size:.79rem!important;
}
#cesbaAuthGate .cesba-auth-secondary:hover{color:#f0fbff}
#cesbaAuthGate .cesba-auth-msg{
 font-size:.8rem;line-height:1.6;
}
#cesbaAuthGate .cesba-auth-msg:not(:empty){
 padding:12px!important;border-color:var(--s32-stroke)!important;
 border-radius:11px!important;
 background:#122b40!important;
}
#cesbaAuthGate .cesba-auth-register{
 align-items:center;gap:13px;
 padding-top:20px;margin-top:19px;
 border-color:var(--s32-stroke);
}
#cesbaAuthGate .cesba-auth-register span{
 max-width:300px;font-size:.77rem;line-height:1.6;color:#b9cddd;
}
#cesbaAuthGate .cesba-auth-register a{
 min-height:42px;
 padding:8px 13px;
 border-color:rgba(149,231,255,.37);
 color:#d7f6ff;
 background:#133148;
 font-size:.78rem;
 border-radius:10px;
}
#cesbaAuthGate .cesba-auth-note{
 padding-top:15px;
 border-color:var(--s32-stroke);
 font-size:.72rem;line-height:1.65;color:#b4c8d7;
}
/* Password and account modal — both students and administrators use it */
#cesbaAccountOverlay{
 padding:18px;
 background:rgba(4,12,21,.88);
}
#cesbaAccountOverlay .cesba-account-card{
 width:min(535px,100%);
 max-height:min(780px,calc(100dvh - 36px));
 overflow-y:auto;
 padding:clamp(21px,3vw,35px)!important;
 border:1px solid rgba(149,231,255,.31)!important;
 border-radius:22px!important;
 background:linear-gradient(155deg,#10283e,#091a2b)!important;
 box-shadow:0 30px 85px rgba(0,0,0,.42);
}
#cesbaAccountOverlay .cesba-account-kicker{
 color:#a9eaff!important;
 font:800 .76rem/1.45 Inter,Arial,sans-serif;letter-spacing:.07em;
}
#cesbaAccountOverlay h2{font-size:clamp(1.7rem,3.5vw,2.2rem);color:#f6fcff}
#cesbaAccountOverlay .cesba-account-copy{
 font-size:.85rem;line-height:1.7;color:#c5d8e8;
}
#cesbaAccountOverlay .cesba-account-field{margin-top:16px}
#cesbaAccountOverlay .cesba-account-field label{font-size:.78rem;color:#e0eef8}
#cesbaAccountOverlay .cesba-account-field input{
 min-height:49px;
 border:1px solid #48637c!important;
 background:#09192b!important;
 color:#f3faff;
 font-size:.87rem;
}
#cesbaAccountOverlay .cesba-password-toggle{
 min-height:42px;min-width:48px;
 right:5px;font-size:.76rem;color:#c9ddec;
}
#cesbaAccountOverlay .cesba-password-rules,
#cesbaAccountOverlay .cesba-password-required-note{
 font-size:.77rem;line-height:1.7;
 padding:12px 13px;
 color:#c8d9e7;
}
#cesbaAccountOverlay .cesba-password-required-note{
 border-radius:9px;
 border-left:3px solid #f4d393;
 background:rgba(234,194,123,.08);
 color:#f0d8ac;
}
#cesbaAccountOverlay .cesba-account-msg{font-size:.78rem;line-height:1.6}
#cesbaAccountOverlay .cesba-account-actions{
 gap:10px;margin-top:19px;
}
#cesbaAccountOverlay .cesba-account-actions button{
 min-height:45px;
 padding:11px 15px;
 font-size:.8rem;
}
#cesbaAccountOverlay .cesba-account-save{
 border:1px solid #94e5fa;
 background:#94e5fa;
 color:#092338;
}
#cesbaAccountOverlay .cesba-account-cancel{
 background:#132d43;color:#d7e9f8;border:1px solid #54738d;
}
#cesbaAccountOverlay .cesba-password-meter{
 gap:6px;margin-top:10px;
}
#cesbaAccountOverlay .cesba-password-meter i{height:6px}
#cesbaAccountOverlay .cesba-password-meter small{font-size:.73rem;color:#c0d2e1}
:is(#cesbaAuthGate,#cesbaAccountOverlay) :is(a,button):focus-visible{
 outline:2px solid var(--s32-cyan)!important;outline-offset:3px!important;
}
#cesbaAccountOverlay:not(.is-required) .cesba-password-required-note{display:none}
/* Profile panel — students only. Existing account data, no new request. */
body.cesba-role-student .student-profile-trigger{
 min-height:48px;
 border:1px solid rgba(149,231,255,.24);
 border-radius:14px;
 background:rgba(15,40,61,.9);
}
body.cesba-role-student .student-profile-trigger:hover,
body.cesba-role-student .student-profile-trigger.is-open{
 border-color:rgba(149,231,255,.45);
 background:#183c55;
}
body.cesba-role-student .student-profile-menu{
 right:0;top:calc(100% + 11px);
 width:min(360px,calc(100vw - 24px));
 max-width:calc(100vw - 24px);
 padding:17px;
 border:1px solid rgba(149,231,255,.28);
 border-radius:18px;
 background:linear-gradient(150deg,#102b42,#081b2e);
 box-shadow:0 25px 65px rgba(0,0,0,.38);
}
body.cesba-role-student .student-profile-menu-head{
 gap:13px;padding-bottom:17px;
 border-color:var(--s32-stroke);
}
body.cesba-role-student .student-profile-menu-avatar{
 width:58px;height:58px;flex:0 0 58px;
 border-radius:17px;
 border:1px solid rgba(149,231,255,.32);
 background:linear-gradient(130deg,#1b6581,#444276);
 font-size:1.4rem;
}
body.cesba-role-student .student-profile-menu-head>div{min-width:0}
body.cesba-role-student .student-profile-menu-head strong{
 font-size:1rem!important;line-height:1.4;color:#f4faff;
 overflow-wrap:anywhere;
}
body.cesba-role-student .student-profile-menu-head small{
 font-size:.76rem!important;line-height:1.5;
 color:#bed3e4;max-width:252px;
 overflow-wrap:anywhere;
}
body.cesba-role-student .student32-profile-label{
 display:inline-flex;align-items:center;
 margin-bottom:5px;
 color:#a4e9ff;font-size:.7rem;font-weight:800;
 letter-spacing:.035em;
}
body.cesba-role-student .student-profile-details{
 gap:10px;padding:16px 0;
}
body.cesba-role-student .student-profile-details>span{
 min-height:65px;
 padding:12px;
 background:rgba(147,204,239,.055);
 border:1px solid rgba(159,191,224,.2);
 border-radius:12px;
}
body.cesba-role-student .student-profile-details small{
 font-size:.76rem;color:#b8cbdb;
}
body.cesba-role-student .student-profile-details strong{
 display:block;
 margin-top:7px;
 font-size:.87rem!important;
 color:#f1f9ff!important;
 white-space:normal;overflow-wrap:anywhere;
}
body.cesba-role-student .student-profile-menu-actions{
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:9px;
 padding-top:15px;
 border-color:var(--s32-stroke);
}
body.cesba-role-student .student-profile-menu-actions :is(button,a){
 min-height:45px;
 padding:10px;
 font-size:.78rem;
 border-radius:10px;
 background:#17374f;
 color:#e3f4ff;
 border:1px solid rgba(149,231,255,.22);
}
body.cesba-role-student .student-profile-menu-actions button:first-child{
 color:#092335;
 background:#9ceaff;
 border-color:#9ceaff;
}
body.cesba-role-student .student-profile-menu-actions .danger{
 background:rgba(220,112,131,.11);
 border-color:rgba(255,167,181,.31);
 color:#ffd7dc;
}
body.cesba-role-student .student32-profile-note{
 display:flex;gap:8px;align-items:flex-start;
 margin:13px 0 0;
 font-size:.73rem;line-height:1.65;
 color:#b7cad9;
}
body.cesba-role-student .student32-profile-note::before{
 content:"";flex:0 0 7px;height:7px;margin-top:7px;border-radius:50%;background:var(--s32-mint)
}
/* No misleading fake activity data: placeholders remain neutral and readable. */
body.cesba-role-student .student-recent-empty,
body.cesba-role-student .student-empty-action small,
body.cesba-role-student .student-route-empty{
 color:#bed1df;font-size:.8rem;line-height:1.7;
}
body.cesba-role-student :is(.student-recent-list,.student-route-list) :focus-visible{
 outline:2px solid var(--s32-cyan);outline-offset:3px;
}
@media(max-width:760px){
 #cesbaAuthGate{padding:14px;overflow-y:auto;align-items:flex-start;overscroll-behavior:contain}
 #cesbaAuthGate .cesba-auth-card{
   width:min(550px,100%);
   grid-template-columns:1fr!important;
   margin:15px auto;
 }
 #cesbaAuthGate .cesba-auth-visual{
   min-height:185px!important;
   padding:22px!important;
   display:grid!important;grid-template-columns:1fr;gap:14px!important;
   border-right:0!important;
   border-bottom:1px solid var(--s32-stroke)!important;
 }
 #cesbaAuthGate .cesba-auth-brand,#cesbaAuthGate .cesba-auth-visual-copy{grid-column:1}
 #cesbaAuthGate .cesba-auth-visual-copy h2{max-width:520px;font-size:1.5rem;line-height:1.25;margin:5px 0}
 #cesbaAuthGate .cesba-auth-visual-copy p,
 #cesbaAuthGate .cesba-auth-feature-list,
 #cesbaAuthGate .cesba-auth-visual-foot{display:none}
 #cesbaAuthGate .cesba-auth-content{padding:27px 23px!important}
 #cesbaAuthGate .cesba-auth-register{align-items:flex-start;flex-direction:column}
 #cesbaAuthGate .cesba-auth-register a{width:100%;justify-content:center}
}
@media(max-width:620px){
 /* backdrop-filter on the sticky header is a containing block for its fixed
    child. Without resetting it the bottom nav overlays the profile trigger. */
 body.cesba-role-student .topbar,
 body.cesba-role-student .topbar.is-scrolled{
   -webkit-backdrop-filter:none!important;
   backdrop-filter:none!important;
   filter:none!important;
   transform:none!important;
 }
 body.cesba-role-student .student-icon-nav{
   position:fixed;
   top:auto!important;
   bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;
 }
 body.cesba-role-student .student-profile-menu{
   position:fixed;
   left:12px;right:12px;
   top:auto;
   bottom:calc(91px + env(safe-area-inset-bottom,0px));
   width:auto;max-width:none;
   max-height:min(68dvh,690px);
   overflow:auto;
   z-index:500;
 }
 body.cesba-role-student .student-profile-menu-actions :is(button,a){min-height:48px}
}
@media(max-width:390px){
 #cesbaAuthGate .cesba-auth-card{margin:9px auto}
 #cesbaAuthGate .cesba-auth-visual{padding:17px!important}
 #cesbaAuthGate .cesba-auth-visual-copy h2{font-size:1.3rem}
 #cesbaAuthGate .cesba-auth-content{padding:22px 17px!important}
 body.cesba-role-student .student-profile-menu{padding:12px}
 body.cesba-role-student .student-profile-menu-head strong{font-size:.92rem!important}
}
@media(prefers-reduced-motion:reduce){
 #cesbaAuthGate :is(button,a),#cesbaAccountOverlay :is(button,a),
 body.cesba-role-student .student-profile-menu :is(button,a){transition:none!important;transform:none!important}
 .cesba-auth-boot span::after{animation:none!important}
}
@media print{#cesbaAuthGate,#cesbaAccountOverlay,body.cesba-role-student .student-profile-menu{display:none!important}}


/* ===== Legacy Student 3.3 — dashboard ===== */
/* CESBA Student 3.3 · Dashboard Inteligente / presentation only
 * Theme: University Tech. Single source of metrics: cesba_my_progress().
 * No changes to Auth, result writes, course permissions, or database.
 */
body.cesba-role-student{
  --s33-bg:#081521;--s33-panel:#10283d;--s33-line:rgba(155,192,222,.19);
  --s33-muted:#b7cde0;--s33-cyan:#9ae9fc;--s33-mint:#86e6c4;
}
body.cesba-role-student::after{display:none!important}
body.cesba-role-student .student-dashboard-home::before{display:none!important}
body.cesba-role-student .student-dashboard-home{
  margin:14px 0 14px!important;
  padding:clamp(15px,2.3vw,25px)!important;
  background:linear-gradient(153deg,#0d2136 0%,#091a2c 76%)!important;
  border:1px solid var(--s33-line)!important;
  box-shadow:0 17px 48px rgba(0,0,0,.16)!important;
}
body.cesba-role-student .student-dashboard-head{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  margin-bottom:17px!important;
}
body.cesba-role-student .student-home-kicker{
  margin-bottom:5px;
  color:#a9eafa;letter-spacing:.055em;
  font-size:.72rem;line-height:1.4;
}
body.cesba-role-student .student-dashboard-head h2{
  font:800 clamp(1.65rem,2.8vw,2.38rem)/1.17 Manrope,Inter,Arial,sans-serif;
  letter-spacing:-.042em;
  color:#f3f9ff;overflow-wrap:anywhere;
}
body.cesba-role-student .student-dashboard-head p{
  margin-top:7px;
  color:var(--s33-muted);
  font-size:.86rem;line-height:1.55;
}
body.cesba-role-student .student-meta{
  align-items:center;flex-wrap:wrap;gap:6px;
}
body.cesba-role-student .student-meta span{
  padding:6px 9px!important;
  font-size:.73rem!important;
  background:#132e43!important;
}
body.cesba-role-student .student-bento{
  display:grid;grid-template-columns:repeat(12,minmax(0,1fr));
  gap:11px;align-items:stretch;
}
body.cesba-role-student .student-bento-card{
  border:1px solid var(--s33-line);
  border-radius:15px;
  background:#0e2438;
  box-shadow:none;
}
body.cesba-role-student .bento-eyebrow{
  color:#aeeafb;
  font:800 .7rem/1.4 Inter,Arial,sans-serif;
  letter-spacing:.04em;
}
/* Snapshot metrics first: what is the official cycle progress? */
body.cesba-role-student .bento-overall{
  order:1;grid-column:span 3;
  min-height:108px;padding:13px;gap:11px;
  display:flex;align-items:center;justify-content:flex-start;
  background:linear-gradient(140deg,#133344,#0c2739);
}
body.cesba-role-student .bento-overall .student-progress-ring{
  width:69px;height:69px;flex:0 0 69px;
}
body.cesba-role-student .bento-overall .student-progress-ring strong{font-size:1.24rem}
body.cesba-role-student .bento-overall .student-progress-ring span{font-size:.59rem}
body.cesba-role-student .bento-overall-copy>span{
  color:#99e5cc;font-size:.66rem;line-height:1.45;letter-spacing:.035em;
}
body.cesba-role-student .bento-overall-copy>strong{
  margin-top:3px;font-size:.76rem;line-height:1.4;color:#edf8ff;
}
body.cesba-role-student .bento-overall-copy>small{
  margin-top:5px;font-size:.65rem;line-height:1.4;color:#adc7d6;
}
body.cesba-role-student .bento-metric{
  order:1;grid-column:span 3;
  min-height:108px;padding:15px 17px;gap:1px;
  background:#10283d;
}
body.cesba-role-student .bento-metric>span{font-size:.78rem;color:#b9cedf}
body.cesba-role-student .bento-metric>strong{
  margin-top:6px;font-size:1.65rem;color:#f2f9ff;
}
body.cesba-role-student .bento-metric>small{font-size:.7rem;color:#adc7d7}
/* Core action; all labels and links still come from progress renderer */
body.cesba-role-student .bento-continue{
  order:2;grid-column:span 8;
  min-height:205px;
  padding:21px 23px;
  border-color:rgba(151,226,250,.38);
  background:linear-gradient(130deg,#143550,#0d283e);
}
body.cesba-role-student .bento-continue .bento-card-top{align-items:center}
body.cesba-role-student .student33-session-progress{
  display:flex;align-items:center;gap:6px;white-space:nowrap;
}
body.cesba-role-student .student33-session-progress strong{font-size:1.05rem;color:#e0f8ff}
body.cesba-role-student .student33-session-progress small{font-size:.7rem;color:#c7deeb}
body.cesba-role-student .bento-continue .bento-subject{
  margin-top:19px;font-size:.79rem;color:#c1d9e9;
}
body.cesba-role-student .bento-continue h3{
  margin-top:7px;font-size:clamp(1.4rem,2.15vw,1.9rem);line-height:1.25;
  letter-spacing:-.035em;
}
body.cesba-role-student .bento-continue .bento-progress-track{
  margin-top:19px;background:#28475c;height:7px;
}
body.cesba-role-student .bento-continue-footer{margin-top:14px}
body.cesba-role-student .bento-continue-footer>span{font-size:.77rem;line-height:1.5;color:#c1d8e7}
body.cesba-role-student .bento-continue .student-continue{
  min-height:45px;padding:0 18px;
  background:#9be9fc;color:#0a283b;border-radius:10px;
  font-size:.8rem;
}
body.cesba-role-student .bento-continue .student-continue:hover{background:#c8f5ff;color:#081e2d}
/* Guidance, not a second progress tracker or a fake calendar */
body.cesba-role-student .bento-next{
  order:2;grid-column:span 4;
  min-height:205px;
  padding:20px;
  display:flex;flex-direction:column;align-items:flex-start;
  border-color:rgba(128,217,187,.23);
  background:linear-gradient(150deg,#102e3d,#0b2536);
}
body.cesba-role-student .bento-next .bento-eyebrow{color:#a7f2d5}
body.cesba-role-student .bento-next h3{
  margin:12px 0 5px;
  color:#f0f9ff;
  font:800 clamp(1.05rem,1.65vw,1.31rem)/1.27 Manrope,Inter,Arial,sans-serif;
  letter-spacing:-.027em;
}
body.cesba-role-student .bento-next p{
  margin:3px 0 12px;
  color:#bed3e0;font-size:.78rem;line-height:1.58;
}
body.cesba-role-student .student33-pending{
  display:flex;align-items:baseline;gap:8px;
  padding:8px 0 11px;
}
body.cesba-role-student .student33-pending strong{
  color:#b3f3db;font:800 1.25rem Manrope,Inter,sans-serif;
}
body.cesba-role-student .student33-pending span{
  font-size:.74rem;color:#bfd3df;
}
body.cesba-role-student .student33-step-link{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:42px;margin-top:auto;
  padding:9px 12px;border-radius:10px;
  border:1px solid rgba(134,230,196,.37);
  color:#e2fff2;background:rgba(134,230,196,.09);
  font-size:.77rem;font-weight:800;
}
body.cesba-role-student .student33-step-link:hover{background:rgba(134,230,196,.18)}
/* Activity follows actions, not the other way around */
body.cesba-role-student .bento-recent{
  order:3;grid-column:span 12;
  min-height:0;padding:16px 20px;
  background:#0d2236;
}
body.cesba-role-student .bento-recent .bento-card-top>div h3{font-size:1rem}
body.cesba-role-student .student-recent-list{
  grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px;
}
body.cesba-role-student .student-recent-item{
  padding:9px 11px;
  border:1px solid rgba(159,191,224,.14);
  border-radius:10px;background:#102940;
}
body.cesba-role-student .student-recent-copy :is(strong,small){white-space:normal;overflow-wrap:anywhere}
body.cesba-role-student .student-recent-copy strong{font-size:.79rem}
body.cesba-role-student .student-recent-copy small{font-size:.72rem}
body.cesba-role-student .student-recent-score{font-size:.74rem}
body.cesba-role-student .student-recent-empty{grid-column:1/-1}
/* Primary navigation labels are legible on desktops */
@media(min-width:1161px){
 body.cesba-role-student .student-icon-link{
   display:inline-flex;align-items:center;justify-content:center;
   gap:8px;min-width:76px;width:auto;padding:0 12px;
 }
 body.cesba-role-student .student-icon-link>span{
   display:inline;color:currentColor;font-size:.7rem;font-weight:800;
 }
}
/* Less visual noise, never mask the live profile or mobile bottom bar */
body.cesba-role-student .student-route-panel{
  background:#0d2235;border-color:var(--s33-line);
}
body.cesba-role-student .student3-shortcuts{border-top-color:var(--s33-line)}
body.cesba-role-student .student-dashboard-home :is(a,button):focus-visible{
  outline:2px solid #9be9fc;outline-offset:3px;
}
@media(max-width:1160px){
 body.cesba-role-student .bento-overall{grid-column:span 6}
 body.cesba-role-student .bento-metric{grid-column:span 2}
 body.cesba-role-student .bento-continue{grid-column:span 7}
 body.cesba-role-student .bento-next{grid-column:span 5}
 body.cesba-role-student .student-recent-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:860px){
 body.cesba-role-student .student-dashboard-head{
   flex-direction:column;align-items:flex-start;gap:10px;
 }
 body.cesba-role-student .student-dashboard-head .student-meta{justify-content:flex-start!important}
 body.cesba-role-student .bento-overall{grid-column:span 6}
 body.cesba-role-student .bento-metric{grid-column:span 2}
 body.cesba-role-student .bento-continue,
 body.cesba-role-student .bento-next{grid-column:span 12}
}
@media(max-width:680px){
 body.cesba-role-student .student-dashboard-home{padding:16px!important}
 body.cesba-role-student .student-dashboard-head{gap:8px;margin-bottom:12px!important}
 body.cesba-role-student .student-dashboard-head .student-meta-live{display:none!important}
 body.cesba-role-student .student-dashboard-head h2{font-size:clamp(1.6rem,6vw,2rem)}
 body.cesba-role-student .student-bento{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 body.cesba-role-student .bento-overall{
   grid-column:1/-1;min-height:95px;gap:15px;padding:14px;
 }
 body.cesba-role-student .bento-metric{
   grid-column:span 1;min-height:105px;padding:14px;
 }
 body.cesba-role-student .bento-metric:nth-of-type(5){grid-column:1/-1;min-height:91px}
 body.cesba-role-student .bento-continue,
 body.cesba-role-student .bento-next,
 body.cesba-role-student .bento-recent{grid-column:1/-1}
 body.cesba-role-student .bento-continue{min-height:0;padding:19px}
 body.cesba-role-student .bento-next{min-height:0;padding:19px}
 body.cesba-role-student .bento-continue-footer{flex-direction:column;align-items:stretch}
 body.cesba-role-student .bento-continue .student-continue{width:100%;justify-content:center}
 body.cesba-role-student .student-recent-list{grid-template-columns:1fr}
 body.cesba-role-student .student33-step-link{width:100%}
}
@media(max-width:390px){
 body.cesba-role-student .bento-overall-copy>small{font-size:.62rem}
 body.cesba-role-student .bento-continue h3{font-size:1.4rem}
 body.cesba-role-student .student33-session-progress{flex-direction:column;align-items:flex-end;gap:0}
}
@media(prefers-reduced-motion:reduce){
 body.cesba-role-student .student33-step-link,
 body.cesba-role-student .bento-continue .student-continue{transition:none!important;transform:none!important}
}



/* =============================================================
   STUDENT 3.4 — One consolidated student UI, replacing 3.0/3.2/3.3
   Existing logic and admin/auth rules remain unchanged.
   ============================================================= */
body.cesba-role-student{
  --ui34-background:#081522;
  --ui34-panel:#0e2437;
  --ui34-panel-raised:#133048;
  --ui34-border:rgba(155,192,224,.17);
  --ui34-text:#f0f8ff;
  --ui34-muted:#b7cbdc;
  --ui34-focus:#9be8ff;
  --ui34-done:#8ce1c1;
  --ui34-radius:16px;
  --ui34-gap:14px;
}
body.cesba-role-student :is(.student-bento-card,.subject-card,.student-route-panel,.student-route-item,.progress-course){
  border-radius:var(--ui34-radius);
  border-color:var(--ui34-border);
  box-shadow:none;
}
body.cesba-role-student .student-dashboard-home{
  background:linear-gradient(145deg,#0e2337,#0b1e2f)!important;
}
body.cesba-role-student .bento-next{
  border-color:rgba(140,225,193,.27);
  background:linear-gradient(150deg,#102e3a,#0d2836);
}
body.cesba-role-student .bento-next h3{
  font-size:clamp(1.1rem,1.6vw,1.3rem);
}
body.cesba-role-student .bento-next p{
  max-width:39ch;
  font-size:.82rem;line-height:1.63;color:#c4dbe6;
}
body.cesba-role-student .student33-pending{margin-top:auto;padding-bottom:0}
body.cesba-role-student .student33-pending strong{font-size:1.5rem}
body.cesba-role-student .student33-pending span{font-size:.79rem}
body.cesba-role-student .student-route-panel{
  margin-top:19px;
  background:#0c2135;
}
body.cesba-role-student .student-route-head p{
  color:#bbd0e2;font-size:.82rem;line-height:1.55;
}
body.cesba-role-student .student-route-item{
  border-color:rgba(150,191,223,.14);
  background:#10283e;
}
body.cesba-role-student .student-route-item.is-current{
  background:#15354d;
  border-color:rgba(138,215,247,.34);
}
body.cesba-role-student .student-route-step{
  font-size:.78rem;width:34px;height:34px;
  border:1px solid rgba(155,192,224,.18);
  background:#173b54;border-radius:10px;
}
body.cesba-role-student .student-route-copy small{
  font:.76rem/1.4 Inter,Arial,sans-serif;color:#add3e8;
}
body.cesba-role-student .student-route-copy strong{
  color:#f0f8ff;font-size:.91rem;line-height:1.5;
}
body.cesba-role-student .student-route-copy span{
  color:#bdd1e1;font-size:.78rem;line-height:1.4;
}
body.cesba-role-student .student-route-item>a{
  min-height:44px;font-size:.8rem;font-weight:800;
  border-color:rgba(145,224,249,.35);
  background:#153c54;color:#ddf8ff;
}
body.cesba-role-student .student-route-item>a:hover{
  border-color:#93e8ff;background:#1c4c66;
}
body.cesba-role-student .student-route-complete{
  border-color:var(--ui34-border);
  background:#10283e;
}
body.cesba-role-student .student-route-complete :is(strong,small){color:#dfedf7;font-size:.79rem;line-height:1.5}
body.cesba-role-student .student-route-complete>a{
  color:#b7eeff;font-size:.79rem;min-height:44px;
  display:inline-flex;align-items:center;
}
/* Student-only catalog: technical stacks remain in source but are displayed in
   their subject pages, not repeated as dense brochure copy on the dashboard. */
body.cesba-role-student #materias .subject-grid{
  gap:var(--ui34-gap);
  grid-template-columns:repeat(2,minmax(0,1fr));
}
body.cesba-role-student #materias .subject-card,
body.cesba-role-student #materias .subject-card-v2{
  min-height:206px!important;
  padding:19px!important;
  background:linear-gradient(145deg,#10273c,#0b1e31)!important;
  border-color:var(--ui34-border)!important;
  box-shadow:none!important;
}
body.cesba-role-student #materias .subject-card:hover{
  transform:translateY(-1px)!important;
  border-color:rgba(var(--route-rgb),.43)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.15)!important;
}
body.cesba-role-student #materias .subject-card::before{width:3px}
body.cesba-role-student #materias .subject-card .card-top{
  display:flex;align-items:center;gap:9px;margin-bottom:11px;
}
body.cesba-role-student #materias .subject-card .card-top::before{
  content:none!important;display:none!important;
}
body.cesba-role-student #materias .subject34-icon{
  width:41px;height:41px;flex:0 0 41px;
  display:grid;place-items:center;
  border:1px solid rgba(var(--route-rgb),.32);
  border-radius:12px;
  background:rgba(var(--route-rgb),.11);
  color:var(--route);
}
body.cesba-role-student #materias .subject34-icon svg{
  display:block;width:22px;height:22px;
  fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}
body.cesba-role-student #materias .subject-card .card-top .code{
  font-size:.74rem!important;line-height:1.35;
  color:#c1d7e8!important;margin-right:auto;
}
body.cesba-role-student #materias .subject-card .card-top .status{
  font-size:.74rem!important;line-height:1.35;
  padding:6px 9px;min-height:31px;
  background:rgba(149,192,225,.07);
  color:#d8e9f7;border-color:rgba(149,192,225,.2);
}
body.cesba-role-student #materias .subject-card .card-top .status[data-course-state="complete"]{
  color:#a5f0d2;border-color:rgba(140,225,193,.38);background:rgba(140,225,193,.1);
}
body.cesba-role-student #materias .subject-card .card-top .status[data-course-state="progress"]{
  color:#b6eefe;border-color:rgba(155,232,255,.4);background:rgba(155,232,255,.1);
}
body.cesba-role-student #materias .subject-card :is(.subject-copy,.subject-stack){display:none!important}
body.cesba-role-student #materias .subject-card .semester{
  font-size:.8rem!important;color:#aec7da!important;margin:0 0 6px!important;
}
body.cesba-role-student #materias .subject-card h3{
  font-size:clamp(1.23rem,1.8vw,1.43rem)!important;line-height:1.3;
  overflow-wrap:anywhere;color:#f4faff!important;
}
body.cesba-role-student #materias .subject-v2-meta{
  margin-top:16px;padding-top:13px;
  border-color:var(--ui34-border);
}
body.cesba-role-student #materias .subject-v2-progress-head{
  font-size:.78rem;color:#bbd2e3;
}
body.cesba-role-student #materias .subject-v2-progress-head strong{font-size:.83rem;color:#f2faff}
body.cesba-role-student #materias .subject-v2-next{gap:10px;margin-top:12px}
body.cesba-role-student #materias .subject-v2-next :is(small,span){
  font-size:.77rem;line-height:1.5;
}
body.cesba-role-student #materias .subject-v2-next small{color:#bad8e7;font-weight:800}
body.cesba-role-student #materias .subject-v2-next span{color:#d1e0eb}
body.cesba-role-student #materias .subject-card-v2 .card-footer{margin-top:15px!important}
body.cesba-role-student #materias .subject-card-v2 .card-footer>span{
  color:#b3ccdf;font-size:.77rem;line-height:1.45;
}
body.cesba-role-student #materias .subject-card-v2 .card-footer>a{
  min-height:44px;
  font-size:.83rem;font-weight:800;
  border-radius:10px;
  display:inline-flex;align-items:center;
}
/* One consistent accessible button/empty-state system */
body.cesba-role-student :is(.student-icon-link,.student-collapse-toggle,.student-continue,.student-route-item>a,.subject-card .card-footer>a){
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
body.cesba-role-student :is(a,button,summary,input,select,textarea):focus-visible{
  outline:2px solid var(--ui34-focus)!important;
  outline-offset:3px!important;
}
body.cesba-role-student :is(.student-empty-action,.student-recent-empty,.student-route-complete){
  color:#d0e0eb;line-height:1.65;
}
body.cesba-role-student .student-empty-action strong{
  font-size:.88rem;color:#f1f8fe;line-height:1.5;
}
body.cesba-role-student .student-empty-action small{
  font-size:.79rem;color:#bbd0e0;line-height:1.6;
}
body.cesba-role-student .student-recent-item{min-height:52px}
body.cesba-role-student .student-recent-copy small{font-size:.76rem;line-height:1.5;color:#b9cfdf}
body.cesba-role-student .student-skeleton-row,
body.cesba-role-student .student-route-skeleton{
  animation-duration:1.9s;opacity:.85;
}
body.cesba-role-student .student-recent-list:not(.student-loading-list),
body.cesba-role-student .student-route-list:not(.student-loading-list){
  min-height:40px;
}
/* Reduced desktop visual noise; no effect on admin */
body.cesba-role-student .topbar{border-color:var(--ui34-border)}
body.cesba-role-student .student-icon-link.is-active{
  background:rgba(143,223,246,.16);
  box-shadow:inset 0 -2px 0 #96e8ff;
}
body.cesba-role-student .student-dashboard-home .bento-eyebrow{letter-spacing:.045em}
@media(max-width:900px){
  body.cesba-role-student #materias .subject-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  body.cesba-role-student #materias .subject-card,
  body.cesba-role-student #materias .subject-card-v2{padding:17px!important}
  body.cesba-role-student #materias .subject34-icon{
    width:39px;height:39px;flex-basis:39px;
  }
  body.cesba-role-student .student-icon-nav{
    min-height:69px;
    padding:7px;border-radius:17px;
    bottom:calc(9px + env(safe-area-inset-bottom,0px))!important;
  }
  body.cesba-role-student .student-icon-nav .student-icon-link{
    min-height:50px;border-radius:11px;
  }
  body.cesba-role-student .student-icon-link>span{font-size:.74rem}
  body.cesba-role-student .student-route-item{grid-template-columns:34px minmax(0,1fr)}
  body.cesba-role-student .student-route-copy strong{white-space:normal;font-size:.86rem}
  body.cesba-role-student .student-route-item>a{
    grid-column:2;justify-self:start;margin-top:4px;
  }
}
@media(max-width:390px){
  body.cesba-role-student #materias .subject-card .card-top{gap:6px}
  body.cesba-role-student #materias .subject-card .card-top .code{font-size:.68rem!important}
  body.cesba-role-student #materias .subject-card .card-top .status{font-size:.68rem!important;padding:5px 7px}
}
@media(prefers-reduced-motion:reduce){
  body.cesba-role-student :is(.student-icon-link,.student-continue,.student-route-item,.subject-card,.student-collapse-toggle){
    transition:none!important;animation:none!important;transform:none!important;
  }
  body.cesba-role-student :is(.student-skeleton-row,.student-route-skeleton,.progress-skeleton-course){animation:none!important}
}
