/* Campus Rikytoon · CESBA
   Student Experience 2026 · v3
   Presentational layer only: no auth/progress logic changes.
*/

:root{
  --student-cyan:#73dcff;
  --student-violet:#b77cff;
  --student-mint:#7af2c7;
  --student-ink:#07111f;
  --student-card:#0b1a2b;
}

/* ---------- Login / entry ---------- */
.cesba-auth-gate{
  background:
    radial-gradient(850px circle at 12% 8%,rgba(73,98,190,.22),transparent 58%),
    radial-gradient(760px circle at 88% 15%,rgba(183,124,255,.12),transparent 58%),
    linear-gradient(145deg,#050b14,#071321 58%,#081626);
}
.cesba-auth-card{
  border-radius:28px!important;
  border-color:rgba(155,177,220,.16)!important;
  box-shadow:0 38px 110px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.035)!important;
  overflow:hidden;
}
.cesba-auth-visual{
  background:
    radial-gradient(circle at 50% 28%,rgba(115,220,255,.13),transparent 32%),
    radial-gradient(circle at 48% 74%,rgba(183,124,255,.10),transparent 35%),
    linear-gradient(160deg,rgba(22,43,72,.98),rgba(8,20,34,.98))!important;
}
.cesba-auth-content{background:linear-gradient(180deg,rgba(11,27,45,.99),rgba(7,18,31,.99))!important}
.cesba-auth-field input{
  border-radius:12px!important;
  background:rgba(4,14,25,.66)!important;
}
.cesba-auth-submit{
  border-radius:12px!important;
  background:linear-gradient(135deg,#314b91,#65439c)!important;
  box-shadow:0 12px 30px rgba(30,49,102,.28);
}

/* ---------- Student-only shell ---------- */
.student-quick-nav{display:none}
body.cesba-role-student{
  background:
    radial-gradient(900px circle at 50% -8%,rgba(84,105,214,.11),transparent 60%),
    radial-gradient(700px circle at 96% 18%,rgba(183,124,255,.06),transparent 54%),
    linear-gradient(180deg,#050d18,#07111f 52%,#071421);
}
body.cesba-role-student .shell{
  width:min(1320px,calc(100% - 42px));
}
body.cesba-role-student .topbar{
  min-height:72px;
  border-bottom-color:rgba(132,160,205,.12);
}
body.cesba-role-student .identity-mark.identity-mark-text{
  min-width:104px;
  border-radius:12px;
  color:#d9b9ff;
  border-color:rgba(183,124,255,.25);
  background:linear-gradient(135deg,rgba(183,124,255,.07),rgba(115,220,255,.035));
}
body.cesba-role-student .cesba-user-chip{
  border-color:rgba(115,220,255,.14);
  background:linear-gradient(180deg,rgba(14,31,50,.88),rgba(8,20,34,.88));
}
body.cesba-role-student .role-student{
  color:#a9efff;
  border-color:rgba(115,220,255,.20);
  background:rgba(115,220,255,.06);
}
body.cesba-role-student .nav-link[href="#materias"]{display:none}

/* ---------- Quick navigation ---------- */
body.cesba-role-student .student-quick-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:22px 0 0;
  padding:7px;
  position:sticky;
  top:83px;
  z-index:30;
  border:1px solid rgba(132,160,205,.12);
  border-radius:15px;
  background:rgba(7,18,31,.84);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
  box-shadow:0 14px 35px rgba(0,0,0,.16);
}
.student-quick-nav .student-quick-links{display:flex;align-items:center;gap:5px;min-width:0}
.student-quick-nav a{
  display:inline-flex;align-items:center;gap:7px;min-height:35px;padding:0 11px;border-radius:9px;
  color:#8fa4bd;font-size:.67rem;font-weight:800;transition:.18s ease;white-space:nowrap
}
.student-quick-nav a:hover{color:#f2f8ff;background:rgba(115,220,255,.055)}
.student-quick-nav a::before{font-size:.76rem;color:#73dcff;opacity:.9}
.student-quick-nav a[href="#cesbaStudentHome"]::before{content:"⌂"}
.student-quick-nav a[href="#cesbaStudentProgress"]::before{content:"◔"}
.student-quick-nav a[href="#materias"]::before{content:"▦"}
.student-quick-nav a[href="#metodo"]::before{content:"◇"}
.student-quick-nav .student-quick-label{
  display:flex;align-items:center;gap:7px;padding:0 8px;color:#6e839d;font:800 .58rem Consolas,monospace;letter-spacing:.08em;text-transform:uppercase
}
.student-quick-label i{width:6px;height:6px;border-radius:50%;background:#7af2c7;box-shadow:0 0 10px rgba(122,242,199,.62)}

/* ---------- Main student welcome ---------- */
body.cesba-role-student .student-dashboard-home{
  margin:18px 0 18px;
  border-radius:26px!important;
  border-color:rgba(115,220,255,.17)!important;
  background:
    linear-gradient(90deg,rgba(5,17,29,.14),rgba(5,17,29,.02)),
    radial-gradient(580px circle at 8% 0%,rgba(115,220,255,.095),transparent 62%),
    radial-gradient(500px circle at 94% 5%,rgba(183,124,255,.10),transparent 60%),
    linear-gradient(145deg,#0c1e31,#081725 72%)!important;
  box-shadow:0 34px 90px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.035)!important;
}
body.cesba-role-student .student-dashboard-home::after{
  content:"STUDENT / CAMPUS";
  position:absolute;right:28px;top:22px;pointer-events:none;
  color:rgba(255,255,255,.025);font:800 clamp(2.4rem,5.5vw,5.4rem)/1 Manrope,Inter,sans-serif;letter-spacing:-4px
}
body.cesba-role-student .student-home-main{
  grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);
  gap:28px;
  padding:34px;
}
body.cesba-role-student .student-home-copy{align-self:center}
body.cesba-role-student .student-home-kicker{
  color:#88e4ff;
  margin-bottom:10px;
}
body.cesba-role-student .student-home-copy h2{
  max-width:720px;
  font-size:clamp(2rem,4vw,3.25rem)!important;
  line-height:.98!important;
  letter-spacing:-2px!important;
  text-wrap:balance;
}
body.cesba-role-student .student-home-copy>p{
  max-width:650px;
  margin-top:12px!important;
  color:#93a9c1!important;
  font-size:.88rem!important;
}
body.cesba-role-student .student-meta{margin-top:20px}
body.cesba-role-student .student-meta span{
  min-height:32px!important;
  border-radius:10px!important;
  padding:0 10px!important;
  font-size:.61rem!important;
}
body.cesba-role-student .student-home-actions{margin-top:24px;gap:9px}
body.cesba-role-student .student-action{
  min-height:42px;padding:0 14px;border-radius:11px;font-size:.7rem;
}
body.cesba-role-student .student-action.primary-action{
  border-color:rgba(115,220,255,.24);
  background:linear-gradient(135deg,#29477c,#5d3c82);
  box-shadow:0 12px 26px rgba(0,0,0,.18);
}
body.cesba-role-student .student-home-status{
  min-height:205px;
  padding:22px;
  border-radius:20px;
  border-color:rgba(132,160,205,.12);
  background:
    radial-gradient(circle at 18% 18%,rgba(115,220,255,.06),transparent 36%),
    linear-gradient(180deg,rgba(7,23,38,.90),rgba(6,17,29,.96));
}
body.cesba-role-student .student-progress-ring{
  width:126px;height:126px;flex-basis:126px;
  background:conic-gradient(#7af2c7 calc(var(--p)*.56%),#73dcff calc(var(--p)*1%),rgba(132,160,205,.10) 0);
  box-shadow:0 0 38px rgba(115,220,255,.07)
}
body.cesba-role-student .student-progress-ring::after{inset:9px;background:#081827}
body.cesba-role-student .student-progress-ring strong{font-size:1.7rem}
body.cesba-role-student .student-home-status-copy>strong{font-size:.92rem;line-height:1.3}
body.cesba-role-student .student-home-status-copy>span{font-size:.7rem;line-height:1.55}
body.cesba-role-student .student-continue{
  min-height:34px;padding:0 11px;border-radius:9px;
}

/* ---------- Section language ---------- */
body.cesba-role-student .student-progress-section{padding:4px 0 22px}
body.cesba-role-student .student-collapsible{scroll-margin-top:140px}
body.cesba-role-student section.student-collapsible.is-collapsed,
body.cesba-role-student .progress-shell.student-collapsible.is-collapsed{
  border-radius:18px;
  background:linear-gradient(180deg,rgba(11,28,46,.72),rgba(7,19,32,.72));
  box-shadow:0 12px 34px rgba(0,0,0,.12);
}
body.cesba-role-student .section-head,
body.cesba-role-student .progress-head{align-items:center}
body.cesba-role-student .section-index{
  display:grid;place-items:center;width:30px;height:30px;border-radius:9px;
  border:1px solid rgba(115,220,255,.13);background:rgba(115,220,255,.035);
  color:#73dcff;font-size:.65rem;
}
body.cesba-role-student .student-collapse-toggle{
  border-radius:10px;
  border-color:rgba(132,160,205,.13);
  background:rgba(8,22,37,.76);
}

/* ---------- Progress ---------- */
body.cesba-role-student .progress-shell{
  padding:26px;
  border-radius:24px;
  border-color:rgba(115,220,255,.14);
  background:
    radial-gradient(560px circle at 0 0,rgba(115,220,255,.06),transparent 60%),
    radial-gradient(480px circle at 100% 0,rgba(183,124,255,.055),transparent 60%),
    linear-gradient(180deg,rgba(11,29,48,.95),rgba(7,19,32,.96));
}
body.cesba-role-student .progress-head small{color:#73dcff}
body.cesba-role-student .progress-head h2{font-size:clamp(1.75rem,3.2vw,2.5rem)}
body.cesba-role-student .progress-cycle{
  min-height:34px;padding:0 12px;border-radius:10px;
  color:#dfc5ff;border-color:rgba(183,124,255,.18);background:rgba(183,124,255,.055)
}
body.cesba-role-student .progress-overview{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;margin:20px 0;
}
body.cesba-role-student .progress-overview article{
  min-height:88px;padding:14px 14px 12px;
  border-radius:14px;
  border-color:rgba(132,160,205,.10);
  background:linear-gradient(180deg,rgba(10,27,45,.96),rgba(7,20,34,.96));
}
body.cesba-role-student .progress-overview article:nth-child(4){
  border-color:rgba(115,220,255,.16);
  background:linear-gradient(180deg,rgba(20,53,70,.38),rgba(7,20,34,.96));
}
body.cesba-role-student .progress-overview article:nth-child(5){
  border-color:rgba(183,124,255,.15);
  background:linear-gradient(180deg,rgba(62,38,86,.28),rgba(7,20,34,.96));
}
body.cesba-role-student .progress-overview span{
  color:#7890aa;font-size:.59rem;line-height:1.35
}
body.cesba-role-student .progress-overview strong{
  margin-top:8px;font-size:1.34rem;color:#edf7ff
}
body.cesba-role-student .progress-course{
  border-radius:15px;
  border-color:rgba(132,160,205,.10);
  background:linear-gradient(180deg,#0a1c2e,#081827);
}
body.cesba-role-student .progress-course summary{padding:17px}
body.cesba-role-student .progress-course-title strong{font-size:.94rem}
body.cesba-role-student .progress-course-track{height:6px}
body.cesba-role-student .progress-session{
  min-height:128px;
  border-radius:12px;
  border-color:rgba(132,160,205,.09);
}

/* ---------- Subjects ---------- */
body.cesba-role-student #materias{
  padding:24px 0 36px;
}
body.cesba-role-student #materias .section-head{
  margin-bottom:18px;
}
body.cesba-role-student .subject-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
body.cesba-role-student .subject-card{
  min-height:285px!important;
  padding:21px!important;
  border-radius:20px!important;
  box-shadow:0 18px 44px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.022)!important;
}
body.cesba-role-student .subject-card::before{width:2px}
body.cesba-role-student .subject-card::after{
  right:12px;bottom:-8px;font-size:3.6rem!important;opacity:.72
}
body.cesba-role-student .subject-card:hover{
  transform:translateY(-5px)!important;
  box-shadow:0 25px 55px rgba(0,0,0,.20),0 0 35px rgba(var(--route-rgb),.035)!important;
}
body.cesba-role-student .semester{margin:27px 0 7px}
body.cesba-role-student .subject-card h3{font-size:1.28rem;margin-bottom:8px}
body.cesba-role-student .subject-copy{
  max-width:590px;
  color:#90a4bc;
  font-size:.78rem!important;
  line-height:1.58!important;
}
body.cesba-role-student .subject-stack{margin-top:12px!important}
body.cesba-role-student .subject-stack span{
  padding:4px 7px;border-radius:6px;font-size:.55rem
}
body.cesba-role-student .subject-live-progress{
  margin-top:14px;
  padding:10px 11px;
  border-radius:10px
}
body.cesba-role-student .card-footer{
  margin-top:15px!important;padding-top:12px;
}
body.cesba-role-student .card-footer a{
  display:inline-flex;align-items:center;min-height:31px;padding:0 9px;border-radius:8px;
  border:1px solid rgba(var(--route-rgb),.16);background:rgba(var(--route-rgb),.035)
}

/* ---------- Method / footer ---------- */
body.cesba-role-student #metodo{padding-top:18px}
body.cesba-role-student .method-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.cesba-role-student .method-card{
  min-height:168px;padding:20px;border-radius:16px;background:linear-gradient(180deg,rgba(12,29,47,.82),rgba(8,20,34,.82))
}
body.cesba-role-student .closing{
  margin-top:18px;padding-top:38px;opacity:.78
}
body.cesba-role-student .closing h2{font-size:clamp(1.8rem,4vw,3rem)}
body.cesba-role-student .footer{margin-top:35px}

/* ---------- Responsive ---------- */
@media(max-width:1050px){
  body.cesba-role-student .student-home-main{grid-template-columns:1fr}
  body.cesba-role-student .student-home-status{max-width:none}
  body.cesba-role-student .subject-grid{grid-template-columns:1fr}
  body.cesba-role-student .method-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  body.cesba-role-student .shell{width:min(100% - 22px,720px)}
  body.cesba-role-student .student-quick-nav{
    top:73px;overflow-x:auto;justify-content:flex-start;scrollbar-width:none
  }
  body.cesba-role-student .student-quick-nav::-webkit-scrollbar{display:none}
  .student-quick-nav .student-quick-label{display:none}
  .student-quick-nav a{flex:0 0 auto}
  body.cesba-role-student .student-home-main{padding:22px;gap:20px}
  body.cesba-role-student .student-dashboard-home::after{display:none}
  body.cesba-role-student .student-home-copy h2{font-size:2.15rem!important;letter-spacing:-1.4px!important}
  body.cesba-role-student .student-home-status{min-height:0}
  body.cesba-role-student .progress-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.cesba-role-student .progress-overview article:last-child{grid-column:1/-1}
}
@media(max-width:520px){
  body.cesba-role-student .student-home-actions{grid-template-columns:1fr!important}
  body.cesba-role-student .student-action.primary-action{grid-column:auto!important}
  body.cesba-role-student .student-home-status{display:grid;grid-template-columns:92px 1fr;gap:14px;padding:17px}
  body.cesba-role-student .student-progress-ring{width:92px;height:92px;flex-basis:92px}
  body.cesba-role-student .student-progress-ring strong{font-size:1.3rem}
  body.cesba-role-student .progress-shell{padding:18px}
  body.cesba-role-student .progress-overview article{min-height:78px}
}
@media(prefers-reduced-motion:reduce){
  body.cesba-role-student .student-action,
  body.cesba-role-student .subject-card,
  body.cesba-role-student .progress-course{transition:none!important}
}


/* ---------- Rikytoon closing / next destination ---------- */
body.cesba-role-student .section-index{display:none!important}
body.cesba-role-student .method-number{
  letter-spacing:.12em;
  font-size:.6rem;
  color:#83dcff;
}

body.cesba-role-student .rikytoon-voyage{
  max-width:none;
  margin:28px 0 0;
  padding:0;
  border:1px solid rgba(132,160,205,.12);
  border-radius:24px;
  overflow:hidden;
  position:relative;
  background:
    radial-gradient(520px circle at 85% 18%,rgba(183,124,255,.10),transparent 60%),
    radial-gradient(460px circle at 10% 0%,rgba(115,220,255,.07),transparent 62%),
    linear-gradient(145deg,rgba(11,28,47,.96),rgba(6,17,29,.98));
  box-shadow:0 26px 70px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.025);
  opacity:1;
}
body.cesba-role-student .rikytoon-voyage::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.16;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:30px 30px;
  mask-image:linear-gradient(90deg,#000,transparent 82%);
}
.voyage-topline{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 22px;
  border-bottom:1px solid rgba(132,160,205,.10);
}
.voyage-kicker{
  color:#87ddff;
  font:800 .6rem Consolas,monospace;
  letter-spacing:.13em;
}
.voyage-live{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#7189a3;
  font:800 .55rem Consolas,monospace;
  letter-spacing:.09em;
}
.voyage-live i{
  width:6px;height:6px;border-radius:50%;
  background:#7af2c7;
  box-shadow:0 0 10px rgba(122,242,199,.60);
}
.voyage-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) 240px;
  gap:40px;
  align-items:center;
  padding:34px 38px 36px;
}
.voyage-copy{max-width:780px}
.voyage-jp{
  margin:0 0 16px;
  color:#d6b8ff!important;
  font:800 clamp(1.05rem,2vw,1.35rem)/1.2 "Noto Sans JP","Yu Gothic",sans-serif!important;
  letter-spacing:.06em;
  text-shadow:0 0 22px rgba(183,124,255,.16);
}
body.cesba-role-student .rikytoon-voyage h2{
  margin:0;
  max-width:720px;
  font-size:clamp(2.25rem,5vw,4.5rem);
  line-height:.94;
  letter-spacing:-3px;
  color:#eef7ff;
}
body.cesba-role-student .rikytoon-voyage .voyage-copy>p:not(.voyage-jp){
  max-width:680px;
  margin:20px 0 0;
  color:#8ea4bd;
  font-size:.88rem;
  line-height:1.75;
}
.voyage-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:24px;
}
.voyage-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 13px;
  border:1px solid rgba(115,220,255,.16);
  border-radius:10px;
  background:rgba(115,220,255,.035);
  color:#b9d8e8;
  font-size:.66rem;
  font-weight:800;
  transition:.18s ease;
}
.voyage-actions a:first-child{
  border-color:rgba(115,220,255,.25);
  background:linear-gradient(135deg,rgba(49,75,145,.55),rgba(94,59,130,.45));
  color:#f0fbff;
}
.voyage-actions a:hover{
  transform:translateY(-2px);
  border-color:rgba(115,220,255,.34);
  color:#fff;
}
.voyage-compass{
  display:grid;
  justify-items:center;
  gap:14px;
  opacity:.78;
}
.voyage-compass-ring{
  width:150px;height:150px;
  position:relative;
  border-radius:50%;
  border:1px solid rgba(115,220,255,.18);
  box-shadow:
    inset 0 0 0 12px rgba(115,220,255,.015),
    inset 0 0 0 13px rgba(115,220,255,.05),
    0 0 36px rgba(115,220,255,.035);
}
.voyage-compass-ring::before,
.voyage-compass-ring::after{
  content:"";
  position:absolute;
  left:50%;top:50%;
  background:rgba(115,220,255,.14);
  transform:translate(-50%,-50%);
}
.voyage-compass-ring::before{width:1px;height:118px}
.voyage-compass-ring::after{width:118px;height:1px}
.voyage-compass-ring span{
  position:absolute;
  color:#7189a3;
  font:800 .55rem Consolas,monospace;
}
.voyage-compass-ring .north{top:9px;left:50%;transform:translateX(-50%);color:#cbb0ff}
.voyage-compass-ring .south{bottom:9px;left:50%;transform:translateX(-50%)}
.voyage-compass-ring .east{right:10px;top:50%;transform:translateY(-50%)}
.voyage-compass-ring .west{left:10px;top:50%;transform:translateY(-50%)}
.voyage-compass-ring i{
  position:absolute;
  left:50%;top:50%;
  width:5px;height:54px;
  transform-origin:50% 100%;
  transform:translate(-50%,-100%) rotate(38deg);
  clip-path:polygon(50% 0,100% 100%,50% 82%,0 100%);
  background:linear-gradient(180deg,#d6b8ff,#73dcff);
  filter:drop-shadow(0 0 8px rgba(115,220,255,.30));
}
.voyage-compass small{
  color:#566d87;
  font:800 .5rem Consolas,monospace;
  letter-spacing:.10em;
}
@media(max-width:780px){
  .voyage-grid{grid-template-columns:1fr;padding:28px 24px}
  .voyage-compass{display:none}
  body.cesba-role-student .rikytoon-voyage h2{letter-spacing:-2px}
}
@media(max-width:520px){
  .voyage-topline{align-items:flex-start;flex-direction:column}
  .voyage-actions{display:grid;grid-template-columns:1fr}
  .voyage-actions a{width:100%}
}


/* ---------- Student session banner v2 ---------- */
.cesba-header-avatar,
.cesba-header-profile,
.cesba-header-profile-main,
.cesba-header-meta{display:none}

body.cesba-role-student .topbar{
  gap:18px;
}

body.cesba-role-student .nav-actions{
  display:flex;
  align-items:center;
  gap:5px;
  min-height:54px;
  padding:6px;
  border:1px solid rgba(132,160,205,.12);
  border-radius:17px;
  background:
    radial-gradient(220px circle at 12% 0%,rgba(115,220,255,.055),transparent 66%),
    linear-gradient(180deg,rgba(10,25,42,.88),rgba(6,18,31,.88));
  box-shadow:
    0 14px 34px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.025);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}

body.cesba-role-student .cesba-user-chip{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:0 13px 0 5px;
  margin-right:3px;
  border:0;
  border-right:1px solid rgba(132,160,205,.12);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}

body.cesba-role-student .cesba-header-avatar{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:11px;
  border:1px solid rgba(115,220,255,.18);
  background:
    radial-gradient(circle at 28% 20%,rgba(255,255,255,.10),transparent 30%),
    linear-gradient(135deg,#294b80,#604086);
  color:#f2fbff;
  font:800 .76rem Manrope,Inter,sans-serif;
  box-shadow:
    0 7px 18px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.10);
}

body.cesba-role-student .cesba-header-profile{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:3px;
}

body.cesba-role-student .cesba-header-profile-main{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}

body.cesba-role-student .role-student{
  min-height:19px;
  padding:0 6px;
  border-radius:7px;
  font-size:.48rem;
  letter-spacing:.07em;
  color:#9ce9ff;
  border-color:rgba(115,220,255,.18);
  background:rgba(115,220,255,.055);
}

body.cesba-role-student .cesba-account-name{
  max-width:170px;
  color:#e4edf7;
  font-size:.72rem;
  font-weight:800;
  line-height:1.15;
}

body.cesba-role-student .cesba-header-meta{
  display:block;
  max-width:210px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#6f859e;
  font-size:.56rem;
  font-weight:700;
  letter-spacing:.02em;
}

body.cesba-role-student #cesbaAccountBtn,
body.cesba-role-student #cesbaLogoutBtn,
body.cesba-role-student .nav-portal{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 11px;
  border:1px solid transparent;
  border-radius:10px;
  font:750 .65rem Inter,Segoe UI,Arial,sans-serif;
  white-space:nowrap;
  transition:
    color .18s ease,
    border-color .18s ease,
    background .18s ease,
    transform .18s ease;
}

body.cesba-role-student #cesbaAccountBtn{
  color:#dbe8f6;
  border-color:rgba(115,220,255,.13);
  background:rgba(115,220,255,.035);
}

body.cesba-role-student #cesbaLogoutBtn{
  color:#93a7bc;
  background:transparent;
}

body.cesba-role-student .nav-portal{
  color:#8da1b7;
  padding-right:13px;
}

body.cesba-role-student #cesbaAccountBtn:hover,
body.cesba-role-student #cesbaLogoutBtn:hover,
body.cesba-role-student .nav-portal:hover{
  transform:translateY(-1px);
  color:#f2f8ff;
  border-color:rgba(115,220,255,.18);
  background:rgba(115,220,255,.045);
}

body.cesba-role-student #cesbaLogoutBtn:hover{
  color:#ffd2da;
  border-color:rgba(255,122,144,.16);
  background:rgba(255,122,144,.035);
}

body.cesba-role-student .nav-separator{
  height:25px;
  margin:0 1px;
  background:rgba(132,160,205,.11);
}

@media(max-width:1050px){
  body.cesba-role-student .cesba-account-name{max-width:120px}
  body.cesba-role-student .cesba-header-meta{max-width:150px}
  body.cesba-role-student #cesbaAccountBtn,
  body.cesba-role-student #cesbaLogoutBtn,
  body.cesba-role-student .nav-portal{padding:0 8px;font-size:.61rem}
}

@media(max-width:820px){
  body.cesba-role-student .topbar{
    align-items:flex-start;
    padding:10px 0 8px;
  }

  body.cesba-role-student .nav-actions{
    min-height:0;
    flex-wrap:wrap;
    justify-content:flex-end;
    max-width:72%;
  }

  body.cesba-role-student .cesba-user-chip{
    flex:1 1 100%;
    justify-content:flex-start;
    border-right:0;
    border-bottom:1px solid rgba(132,160,205,.10);
    margin:0 0 2px;
    padding:3px 6px 8px 3px;
  }

  body.cesba-role-student .cesba-account-name,
  body.cesba-role-student .cesba-header-meta{
    max-width:230px;
  }

  body.cesba-role-student .nav-separator{display:none}
}

@media(max-width:620px){
  body.cesba-role-student .topbar{
    display:grid;
    grid-template-columns:1fr;
  }

  body.cesba-role-student .identity{
    width:max-content;
  }

  body.cesba-role-student .nav-actions{
    width:100%;
    max-width:none;
    justify-content:flex-start;
  }

  body.cesba-role-student #cesbaAccountBtn,
  body.cesba-role-student #cesbaLogoutBtn,
  body.cesba-role-student .nav-portal{
    flex:1 1 auto;
  }

  body.cesba-role-student .nav-portal{
    order:4;
    flex-basis:100%;
  }
}


/* ---------- Student dashboard bento v4 ---------- */
body.cesba-role-student .student-dashboard-home{
  display:block!important;
  padding:28px!important;
  margin:18px 0 20px!important;
  overflow:visible;
}
body.cesba-role-student .student-dashboard-home::after{display:none}
body.cesba-role-student .student-dashboard-head{
  position:relative;z-index:1;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:22px;
}
body.cesba-role-student .student-dashboard-head>div:first-child{min-width:0}
body.cesba-role-student .student-dashboard-head h2{
  margin:0;
  font:800 clamp(2rem,4vw,3.2rem)/.98 Manrope,Inter,sans-serif;
  letter-spacing:-2px;
  color:#eef7ff;
}
body.cesba-role-student .student-dashboard-head p{
  max-width:650px;
  margin:10px 0 0;
  color:#879db5;
  font-size:.82rem;
  line-height:1.6;
}
body.cesba-role-student .student-dashboard-head .student-meta{
  flex:0 0 auto;
  margin:0;
  justify-content:flex-end!important;
}

.student-bento{
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:12px;
}
.student-bento-card{
  min-width:0;
  border:1px solid rgba(132,160,205,.105);
  border-radius:18px;
  background:
    radial-gradient(300px circle at 100% 0%,rgba(115,220,255,.025),transparent 65%),
    linear-gradient(180deg,rgba(9,26,43,.94),rgba(6,18,31,.97));
  box-shadow:0 15px 36px rgba(0,0,0,.13),inset 0 1px 0 rgba(255,255,255,.022);
}
.bento-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.bento-eyebrow{
  color:#78dfff;
  font:800 .56rem Consolas,monospace;
  letter-spacing:.11em;
}
.bento-continue{
  grid-column:span 8;
  min-height:230px;
  padding:24px;
  position:relative;
  overflow:hidden;
  border-color:rgba(115,220,255,.17);
  background:
    radial-gradient(440px circle at 90% 0%,rgba(183,124,255,.10),transparent 60%),
    radial-gradient(380px circle at 0 100%,rgba(115,220,255,.075),transparent 64%),
    linear-gradient(145deg,rgba(13,37,59,.98),rgba(7,20,34,.98));
}
.bento-continue::after{
  content:"CONTINUE";
  position:absolute;right:18px;bottom:-13px;
  color:rgba(255,255,255,.025);
  font:800 4rem/1 Manrope,Inter,sans-serif;
  letter-spacing:-4px;
  pointer-events:none;
}
.bento-progress-value{
  color:#a9efff;
  font:800 .68rem Manrope,Inter,sans-serif;
}
.bento-subject{
  display:block;
  margin-top:27px;
  color:#849ab3;
  font-size:.66rem;
  font-weight:800;
}
.bento-continue h3{
  position:relative;z-index:1;
  max-width:760px;
  margin:7px 0 0;
  color:#f2f8ff;
  font:800 clamp(1.45rem,2.6vw,2.15rem)/1.08 Manrope,Inter,sans-serif;
  letter-spacing:-.9px;
}
.bento-progress-track{
  position:relative;z-index:1;
  height:6px;
  margin-top:25px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(132,160,205,.10);
}
.bento-progress-track span{
  display:block;height:100%;border-radius:inherit;
  background:linear-gradient(90deg,#5f7ed1,#73dcff,#7af2c7);
  box-shadow:0 0 16px rgba(115,220,255,.14);
}
.bento-continue-footer{
  position:relative;z-index:1;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin-top:14px;
}
.bento-continue-footer>span{color:#758da7;font-size:.62rem}
body.cesba-role-student .bento-continue .student-continue{
  margin:0;
  min-height:38px;
  padding:0 13px;
  color:#effbff;
  border-color:rgba(115,220,255,.22);
  background:linear-gradient(135deg,rgba(49,75,145,.62),rgba(94,59,130,.52));
  box-shadow:0 10px 24px rgba(0,0,0,.15);
}

.bento-overall{
  grid-column:span 4;
  min-height:230px;
  padding:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  background:
    radial-gradient(280px circle at 25% 30%,rgba(115,220,255,.07),transparent 62%),
    linear-gradient(180deg,rgba(9,27,44,.96),rgba(6,18,31,.98));
}
body.cesba-role-student .bento-overall .student-progress-ring{
  width:118px;height:118px;flex-basis:118px;
}
.bento-overall-copy{min-width:0}
.bento-overall-copy>span{
  display:block;color:#78dfff;font:800 .54rem Consolas,monospace;letter-spacing:.10em
}
.bento-overall-copy>strong{
  display:block;margin-top:8px;color:#e8f2fb;font-size:.86rem;line-height:1.35
}
.bento-overall-copy>small{
  display:block;margin-top:6px;color:#70869f;font-size:.6rem;line-height:1.45
}

.bento-metric{
  grid-column:span 2;
  min-height:128px;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.bento-metric>span{color:#758ba4;font-size:.61rem;font-weight:700}
.bento-metric>strong{
  display:block;margin-top:9px;color:#f0f7ff;
  font:800 1.72rem/1 Manrope,Inter,sans-serif;letter-spacing:-1px
}
.bento-metric>small{display:block;margin-top:6px;color:#536b84;font-size:.54rem}

.bento-recent{
  grid-column:span 6;
  min-height:128px;
  padding:17px 18px;
}
.bento-recent .bento-card-top>div h3{
  margin:4px 0 0;color:#dce8f5;font-size:.85rem
}
.bento-recent .bento-card-top>a{
  color:#82dfff;font-size:.59rem;font-weight:800
}
.student-recent-list{display:grid;gap:7px;margin-top:12px}
.student-recent-item{
  display:grid;
  grid-template-columns:26px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  min-height:40px;
}
.student-recent-state{
  width:24px;height:24px;display:grid;place-items:center;border-radius:8px;
  border:1px solid rgba(115,220,255,.13);color:#8de7ff;
  background:rgba(115,220,255,.035);
  font-size:.62rem;font-weight:900;
}
.student-recent-state.completed{
  color:#9cf2d1;border-color:rgba(122,242,199,.14);background:rgba(122,242,199,.035)
}
.student-recent-copy{min-width:0}
.student-recent-copy strong{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#b8c8d8;font-size:.64rem
}
.student-recent-copy small{
  display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#607992;font-size:.53rem
}
.student-recent-score{
  color:#8ca2b9;font:800 .56rem Consolas,monospace
}
.student-recent-empty{
  padding:12px 0;color:#617891;font-size:.6rem
}

/* Dashboard subject cards: less brochure, more application */
body.cesba-role-student .subject-card{
  min-height:220px!important;
}
body.cesba-role-student .subject-copy,
body.cesba-role-student .subject-stack{
  display:none!important;
}
body.cesba-role-student .semester{margin-top:24px}
body.cesba-role-student .subject-live-progress{margin-top:18px!important}
body.cesba-role-student .card-footer{margin-top:13px!important}

/* Detailed progress becomes secondary to the home dashboard */
body.cesba-role-student .student-progress-section{
  padding-top:2px;
}
body.cesba-role-student #cesbaStudentProgress .progress-head p{
  max-width:560px;
}

@media(max-width:1040px){
  .bento-continue{grid-column:span 12}
  .bento-overall{grid-column:span 6}
  .bento-metric{grid-column:span 2}
  .bento-recent{grid-column:span 12}
}
@media(max-width:760px){
  body.cesba-role-student .student-dashboard-home{padding:20px!important}
  body.cesba-role-student .student-dashboard-head{
    align-items:flex-start;flex-direction:column;gap:14px
  }
  body.cesba-role-student .student-dashboard-head .student-meta{justify-content:flex-start!important}
  .bento-overall{grid-column:span 12;justify-content:flex-start}
  .bento-metric{grid-column:span 4}
}
@media(max-width:520px){
  .student-bento{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .bento-continue,.bento-overall,.bento-recent{grid-column:1/-1}
  .bento-metric{grid-column:span 1;min-height:112px;padding:15px}
  .bento-metric:nth-of-type(5){grid-column:1/-1}
  .bento-continue{min-height:245px;padding:19px}
  .bento-continue-footer{align-items:flex-start;flex-direction:column}
  body.cesba-role-student .bento-continue .student-continue{width:100%;justify-content:center}
  .bento-overall{padding:18px}
}


/* ---------- Sticky header scroll fix v1.0.7 ---------- */
body.cesba-role-student #cesbaStudentHome,
body.cesba-role-student #cesbaStudentProgress,
body.cesba-role-student #materias,
body.cesba-role-student #metodo{
  scroll-margin-top:142px;
}

/* During scroll the header becomes a compact, opaque app bar.
   This prevents page titles from visually bleeding through it. */
body.cesba-role-student .topbar{
  transition:
    min-height .2s ease,
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

body.cesba-role-student .topbar.is-scrolled{
  min-height:58px;
  background:rgba(5,14,25,.985);
  border-bottom-color:rgba(115,220,255,.13);
  box-shadow:0 14px 36px rgba(0,0,0,.30);
  -webkit-backdrop-filter:blur(22px);
  backdrop-filter:blur(22px);
}

body.cesba-role-student .topbar.is-scrolled::before{
  opacity:0;
}

body.cesba-role-student .topbar.is-scrolled .identity-mark.identity-mark-text{
  height:34px;
  min-width:86px;
  padding:0 9px;
  font-size:.62rem;
}

body.cesba-role-student .topbar.is-scrolled .identity strong{
  font-size:.82rem;
}

body.cesba-role-student .topbar.is-scrolled .identity small{
  display:none;
}

body.cesba-role-student .topbar.is-scrolled .nav-actions{
  min-height:44px;
  padding:4px;
  border-radius:14px;
  background:rgba(7,21,35,.985);
  border-color:rgba(132,160,205,.13);
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}

body.cesba-role-student .topbar.is-scrolled .cesba-user-chip{
  min-height:34px;
}

body.cesba-role-student .topbar.is-scrolled .cesba-header-avatar{
  width:29px;
  height:29px;
  flex-basis:29px;
  border-radius:9px;
  font-size:.67rem;
}

body.cesba-role-student .topbar.is-scrolled .role-student,
body.cesba-role-student .topbar.is-scrolled .cesba-header-meta{
  display:none;
}

body.cesba-role-student .topbar.is-scrolled .cesba-account-name{
  max-width:155px;
  font-size:.68rem;
}

body.cesba-role-student .topbar.is-scrolled #cesbaAccountBtn,
body.cesba-role-student .topbar.is-scrolled #cesbaLogoutBtn,
body.cesba-role-student .topbar.is-scrolled .nav-portal{
  min-height:32px;
  padding:0 9px;
  font-size:.60rem;
}

/* Quick navigation remains useful, but behaves as a smaller solid toolbar. */
body.cesba-role-student .student-quick-nav{
  transition:
    top .2s ease,
    min-height .2s ease,
    margin .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

body.cesba-role-student .topbar.is-scrolled + .student-quick-nav{
  top:66px;
  min-height:44px;
  margin-top:8px;
  padding:5px 7px;
  background:rgba(6,18,31,.975);
  border-color:rgba(132,160,205,.13);
  box-shadow:0 13px 32px rgba(0,0,0,.24);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}

body.cesba-role-student .topbar.is-scrolled + .student-quick-nav a{
  min-height:31px;
  padding:0 10px;
  font-size:.62rem;
}

@media(max-width:820px){
  body.cesba-role-student #cesbaStudentHome,
  body.cesba-role-student #cesbaStudentProgress,
  body.cesba-role-student #materias,
  body.cesba-role-student #metodo{
    scroll-margin-top:190px;
  }

  body.cesba-role-student .topbar.is-scrolled{
    min-height:0;
    background:rgba(5,14,25,.99);
  }

  body.cesba-role-student .topbar.is-scrolled + .student-quick-nav{
    top:128px;
  }
}

@media(max-width:620px){
  body.cesba-role-student #cesbaStudentHome,
  body.cesba-role-student #cesbaStudentProgress,
  body.cesba-role-student #materias,
  body.cesba-role-student #metodo{
    scroll-margin-top:230px;
  }

  body.cesba-role-student .topbar.is-scrolled + .student-quick-nav{
    position:relative;
    top:auto;
    margin-top:8px;
  }
}


/* ---------- Stable sticky header v1.0.8 ----------
   Keep dimensions unchanged while scrolling. Only surface treatment changes.
*/
body.cesba-role-student .topbar.is-scrolled{
  min-height:72px;
  background:rgba(5,14,25,.992);
  border-bottom-color:rgba(115,220,255,.13);
  box-shadow:0 14px 36px rgba(0,0,0,.30);
  -webkit-backdrop-filter:blur(22px);
  backdrop-filter:blur(22px);
}

body.cesba-role-student .topbar.is-scrolled::before{
  opacity:0;
}

/* Restore normal-size identity while sticky */
body.cesba-role-student .topbar.is-scrolled .identity-mark.identity-mark-text{
  height:42px;
  min-width:104px;
  padding:0 13px;
  font-size:.78rem;
}

body.cesba-role-student .topbar.is-scrolled .identity strong{
  font-size:.9rem;
}

body.cesba-role-student .topbar.is-scrolled .identity small{
  display:block;
}

/* Restore normal-size student session card while sticky */
body.cesba-role-student .topbar.is-scrolled .nav-actions{
  min-height:54px;
  padding:6px;
  border-radius:17px;
  background:
    radial-gradient(220px circle at 12% 0%,rgba(115,220,255,.045),transparent 66%),
    linear-gradient(180deg,rgba(8,23,38,.99),rgba(5,17,29,.99));
  border-color:rgba(132,160,205,.13);
  box-shadow:0 10px 28px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.02);
}

body.cesba-role-student .topbar.is-scrolled .cesba-user-chip{
  min-height:42px;
}

body.cesba-role-student .topbar.is-scrolled .cesba-header-avatar{
  width:34px;
  height:34px;
  flex-basis:34px;
  border-radius:11px;
  font-size:.76rem;
}

body.cesba-role-student .topbar.is-scrolled .role-student{
  display:inline-flex;
}

body.cesba-role-student .topbar.is-scrolled .cesba-header-meta{
  display:block;
}

body.cesba-role-student .topbar.is-scrolled .cesba-account-name{
  max-width:170px;
  font-size:.72rem;
}

body.cesba-role-student .topbar.is-scrolled #cesbaAccountBtn,
body.cesba-role-student .topbar.is-scrolled #cesbaLogoutBtn,
body.cesba-role-student .topbar.is-scrolled .nav-portal{
  min-height:36px;
  padding:0 11px;
  font-size:.65rem;
}

/* Second bar also keeps the same size and position */
body.cesba-role-student .topbar.is-scrolled + .student-quick-nav{
  top:83px;
  min-height:0;
  margin-top:22px;
  padding:7px;
  background:rgba(6,18,31,.985);
  border-color:rgba(132,160,205,.13);
  box-shadow:0 13px 32px rgba(0,0,0,.22);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}

body.cesba-role-student .topbar.is-scrolled + .student-quick-nav a{
  min-height:35px;
  padding:0 11px;
  font-size:.67rem;
}

/* Prevent content from visually bleeding into the gap between both sticky bars */
body.cesba-role-student .topbar.is-scrolled + .student-quick-nav::before{
  content:"";
  position:absolute;
  left:-1px;
  right:-1px;
  top:-13px;
  height:13px;
  background:rgba(5,14,25,.992);
  pointer-events:none;
}

/* Anchor offset matches the stable two-bar header */
body.cesba-role-student #cesbaStudentHome,
body.cesba-role-student #cesbaStudentProgress,
body.cesba-role-student #materias,
body.cesba-role-student #metodo{
  scroll-margin-top:148px;
}

@media(max-width:820px){
  body.cesba-role-student .topbar.is-scrolled{
    min-height:0;
  }

  body.cesba-role-student .topbar.is-scrolled .identity-mark.identity-mark-text{
    height:42px;
  }

  body.cesba-role-student .topbar.is-scrolled .nav-actions{
    min-height:0;
  }

  body.cesba-role-student .topbar.is-scrolled + .student-quick-nav{
    top:128px;
    margin-top:8px;
  }

  body.cesba-role-student #cesbaStudentHome,
  body.cesba-role-student #cesbaStudentProgress,
  body.cesba-role-student #materias,
  body.cesba-role-student #metodo{
    scroll-margin-top:194px;
  }
}

@media(max-width:620px){
  body.cesba-role-student .topbar.is-scrolled + .student-quick-nav{
    position:relative;
    top:auto;
    margin-top:8px;
  }

  body.cesba-role-student .topbar.is-scrolled + .student-quick-nav::before{
    display:none;
  }

  body.cesba-role-student #cesbaStudentHome,
  body.cesba-role-student #cesbaStudentProgress,
  body.cesba-role-student #materias,
  body.cesba-role-student #metodo{
    scroll-margin-top:230px;
  }
}


/* ---------- Unified student app bar v1.0.9 ---------- */
.sr-only{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important
}
.student-icon-nav,.campus-status{display:none}

/* One surface, one hierarchy */
body.cesba-role-student .topbar,
body.cesba-role-student .topbar.is-scrolled{
  top:8px;
  min-height:66px;
  display:grid;
  grid-template-columns:minmax(190px,1fr) auto minmax(360px,1fr);
  align-items:center;
  gap:14px;
  padding:7px 9px;
  border:1px solid rgba(132,160,205,.13);
  border-radius:18px;
  background:
    radial-gradient(280px circle at 8% 0%,rgba(115,220,255,.045),transparent 66%),
    radial-gradient(240px circle at 88% 0%,rgba(183,124,255,.04),transparent 68%),
    rgba(5,16,28,.965);
  box-shadow:0 16px 38px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.024);
  -webkit-backdrop-filter:blur(20px);
  backdrop-filter:blur(20px);
}
body.cesba-role-student .topbar::before,
body.cesba-role-student .topbar.is-scrolled::before{display:none}

/* Identity */
body.cesba-role-student .identity{
  min-width:0;
  width:max-content;
  gap:10px;
  padding-right:4px;
}
body.cesba-role-student .identity-mark.identity-mark-text,
body.cesba-role-student .topbar.is-scrolled .identity-mark.identity-mark-text{
  height:40px;
  min-width:98px;
  padding:0 11px;
  border-radius:11px;
  font-size:.69rem;
}
body.cesba-role-student .identity strong,
body.cesba-role-student .topbar.is-scrolled .identity strong{font-size:.86rem}
body.cesba-role-student .identity small,
body.cesba-role-student .topbar.is-scrolled .identity small{
  display:block;
  max-width:170px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.58rem
}

/* Center navigation */
body.cesba-role-student .student-icon-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:4px;
  border:1px solid rgba(132,160,205,.09);
  border-radius:13px;
  background:rgba(9,24,40,.62);
}
.student-icon-link{
  position:relative;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid transparent;
  border-radius:10px;
  color:#70879f;
  background:transparent;
  transition:color .16s ease,background .16s ease,border-color .16s ease,transform .16s ease;
}
.student-icon-link svg,.header-icon-action svg{
  width:18px;height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.student-icon-link>span{display:none}
.student-icon-link:hover{
  color:#dff7ff;
  border-color:rgba(115,220,255,.13);
  background:rgba(115,220,255,.045);
  transform:translateY(-1px);
}
.student-icon-link.is-active{
  color:#a5edff;
  border-color:rgba(115,220,255,.18);
  background:linear-gradient(135deg,rgba(49,75,145,.36),rgba(83,55,116,.28));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 0 20px rgba(115,220,255,.035);
}

/* Profile + actions now live on the same surface */
body.cesba-role-student .nav-actions,
body.cesba-role-student .topbar.is-scrolled .nav-actions{
  min-height:0;
  padding:0;
  gap:4px;
  justify-content:flex-end;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
body.cesba-role-student .cesba-user-chip,
body.cesba-role-student .topbar.is-scrolled .cesba-user-chip{
  min-height:44px;
  max-width:250px;
  margin:0 6px 0 0;
  padding:4px 12px 4px 4px;
  border:1px solid rgba(115,220,255,.105);
  border-radius:13px;
  background:rgba(10,28,46,.62);
}
body.cesba-role-student .cesba-header-avatar,
body.cesba-role-student .topbar.is-scrolled .cesba-header-avatar{
  width:34px;height:34px;flex-basis:34px;border-radius:10px;font-size:.73rem
}
body.cesba-role-student .cesba-header-profile-main{gap:6px}
body.cesba-role-student .role-student,
body.cesba-role-student .topbar.is-scrolled .role-student{
  display:inline-flex;min-height:17px;padding:0 5px;font-size:.44rem
}
body.cesba-role-student .cesba-account-name,
body.cesba-role-student .topbar.is-scrolled .cesba-account-name{
  max-width:128px;font-size:.67rem
}
body.cesba-role-student .cesba-header-meta,
body.cesba-role-student .topbar.is-scrolled .cesba-header-meta{
  display:block;max-width:170px;font-size:.51rem
}

body.cesba-role-student .header-icon-action,
body.cesba-role-student #cesbaAccountBtn.header-icon-action,
body.cesba-role-student #cesbaLogoutBtn.header-icon-action,
body.cesba-role-student .nav-portal.header-icon-action,
body.cesba-role-student .topbar.is-scrolled #cesbaAccountBtn.header-icon-action,
body.cesba-role-student .topbar.is-scrolled #cesbaLogoutBtn.header-icon-action,
body.cesba-role-student .topbar.is-scrolled .nav-portal.header-icon-action{
  position:relative;
  width:40px;
  height:40px;
  min-height:40px;
  padding:0;
  display:inline-grid;
  place-items:center;
  flex:0 0 40px;
  border:1px solid transparent;
  border-radius:10px;
  color:#7e94ab;
  background:transparent;
  appearance:none;
  cursor:pointer;
  transition:color .16s ease,background .16s ease,border-color .16s ease,transform .16s ease;
}
body.cesba-role-student .header-icon-action:hover{
  color:#e7f7ff;
  border-color:rgba(115,220,255,.13);
  background:rgba(115,220,255,.045);
  transform:translateY(-1px);
}
body.cesba-role-student .header-icon-danger:hover{
  color:#ffc8d1!important;
  border-color:rgba(255,122,144,.14)!important;
  background:rgba(255,122,144,.035)!important;
}
body.cesba-role-student .campus-status{
  position:relative;
  width:24px;height:40px;
  place-items:center;
  margin-left:2px;
}
body.cesba-role-student .campus-status i{
  display:block;width:6px;height:6px;border-radius:50%;
  background:#7af2c7;
  box-shadow:0 0 10px rgba(122,242,199,.65);
}

/* Tooltips */
.app-tooltip{position:relative}
@media(hover:hover) and (pointer:fine){
  .app-tooltip::after{
    content:attr(data-tooltip);
    position:absolute;
    z-index:120;
    left:50%;
    top:calc(100% + 10px);
    transform:translate(-50%,-4px);
    max-width:230px;
    width:max-content;
    padding:7px 9px;
    border:1px solid rgba(132,160,205,.15);
    border-radius:8px;
    background:rgba(4,13,23,.98);
    color:#c9d8e8;
    box-shadow:0 10px 28px rgba(0,0,0,.28);
    font:700 .58rem/1.35 Inter,Segoe UI,Arial,sans-serif;
    letter-spacing:0;
    text-align:center;
    white-space:normal;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .14s ease,transform .14s ease,visibility .14s ease;
  }
  .app-tooltip::before{
    content:"";
    position:absolute;
    z-index:121;
    left:50%;
    top:calc(100% + 5px);
    width:7px;height:7px;
    transform:translateX(-50%) rotate(45deg);
    border-left:1px solid rgba(132,160,205,.15);
    border-top:1px solid rgba(132,160,205,.15);
    background:rgba(4,13,23,.98);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .14s ease,visibility .14s ease;
  }
  .app-tooltip:hover::after,.app-tooltip:focus-visible::after{
    opacity:1;visibility:visible;transform:translate(-50%,0)
  }
  .app-tooltip:hover::before,.app-tooltip:focus-visible::before{
    opacity:1;visibility:visible
  }

  /* Edge tooltips stay inside the viewport */
  body.cesba-role-student .identity.app-tooltip::after{
    left:0;transform:translate(0,-4px);text-align:left
  }
  body.cesba-role-student .identity.app-tooltip:hover::after,
  body.cesba-role-student .identity.app-tooltip:focus-visible::after{transform:translate(0,0)}
  body.cesba-role-student .identity.app-tooltip::before{left:24px}
  body.cesba-role-student .nav-actions>.app-tooltip:last-of-type::after{
    left:auto;right:0;transform:translate(0,-4px)
  }
  body.cesba-role-student .nav-actions>.app-tooltip:last-of-type:hover::after,
  body.cesba-role-student .nav-actions>.app-tooltip:last-of-type:focus-visible::after{transform:translate(0,0)}
}

/* The former second navigation no longer participates in student layout */
body.cesba-role-student .student-quick-nav{display:none!important}

/* One sticky bar means a smaller and predictable anchor offset */
body.cesba-role-student #cesbaStudentHome,
body.cesba-role-student #cesbaStudentProgress,
body.cesba-role-student #materias,
body.cesba-role-student #metodo{
  scroll-margin-top:92px;
}

/* Explicitly neutralize older two-bar sticky rules */
body.cesba-role-student .topbar.is-scrolled + .student-quick-nav{display:none!important}
body.cesba-role-student .topbar.is-scrolled + .student-quick-nav::before{display:none!important}

@media(max-width:1120px){
  body.cesba-role-student .topbar,
  body.cesba-role-student .topbar.is-scrolled{
    grid-template-columns:minmax(155px,.75fr) auto minmax(310px,1fr);
    gap:8px;
  }
  body.cesba-role-student .identity small{display:none!important}
  body.cesba-role-student .cesba-user-chip{max-width:205px}
  body.cesba-role-student .cesba-account-name{max-width:95px}
  body.cesba-role-student .cesba-header-meta{max-width:130px}
}

@media(max-width:880px){
  body.cesba-role-student .topbar,
  body.cesba-role-student .topbar.is-scrolled{
    grid-template-columns:auto 1fr;
    grid-template-areas:
      "brand actions"
      "nav nav";
    gap:7px 10px;
    padding:7px;
  }
  body.cesba-role-student .identity{grid-area:brand}
  body.cesba-role-student .student-icon-nav{
    grid-area:nav;
    justify-self:stretch;
    justify-content:center;
  }
  body.cesba-role-student .nav-actions{grid-area:actions}
  body.cesba-role-student .cesba-header-meta{display:none!important}
  body.cesba-role-student .cesba-user-chip{max-width:170px}
  body.cesba-role-student #cesbaStudentHome,
  body.cesba-role-student #cesbaStudentProgress,
  body.cesba-role-student #materias,
  body.cesba-role-student #metodo{scroll-margin-top:142px}
}

@media(max-width:620px){
  body.cesba-role-student .topbar,
  body.cesba-role-student .topbar.is-scrolled{
    top:4px;
    grid-template-columns:1fr;
    grid-template-areas:
      "brand"
      "actions"
      "nav";
    border-radius:15px;
  }
  body.cesba-role-student .identity{justify-self:center}
  body.cesba-role-student .nav-actions{
    justify-content:center;
    width:100%;
  }
  body.cesba-role-student .cesba-user-chip{max-width:210px}
  body.cesba-role-student .student-icon-nav{width:100%}
  .student-icon-link{
    width:auto;
    flex:1 1 0;
    grid-template-columns:20px auto;
    gap:7px;
    padding:0 10px;
  }
  .student-icon-link>span{
    display:inline;
    color:currentColor;
    font-size:.59rem;
    font-weight:800;
  }
  body.cesba-role-student #cesbaStudentHome,
  body.cesba-role-student #cesbaStudentProgress,
  body.cesba-role-student #materias,
  body.cesba-role-student #metodo{scroll-margin-top:205px}
}


/* ---------- Unified administrator app bar on CESBA portal v1.1.0 ---------- */
body.cesba-role-admin .topbar,
body.cesba-role-admin .topbar.is-scrolled{
  top:8px;
  min-height:66px;
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  align-items:center;
  gap:18px;
  padding:7px 9px;
  border:1px solid rgba(196,92,255,.15);
  border-radius:18px;
  background:
    radial-gradient(300px circle at 10% 0%,rgba(196,92,255,.055),transparent 66%),
    radial-gradient(260px circle at 90% 0%,rgba(95,126,209,.05),transparent 68%),
    rgba(5,16,28,.97);
  box-shadow:0 16px 38px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.025);
  -webkit-backdrop-filter:blur(20px);
  backdrop-filter:blur(20px);
}
body.cesba-role-admin .topbar::before,
body.cesba-role-admin .topbar.is-scrolled::before{display:none}
body.cesba-role-admin .identity{
  width:max-content;
  min-width:0;
  gap:10px;
}
body.cesba-role-admin .identity-mark.identity-mark-text{
  height:40px;
  min-width:98px;
  padding:0 11px;
  border-radius:11px;
  font-size:.69rem;
}
body.cesba-role-admin .identity strong{font-size:.86rem}
body.cesba-role-admin .identity small{font-size:.58rem}
body.cesba-role-admin .nav-actions{
  min-height:0;
  padding:0;
  gap:4px;
  justify-content:flex-end;
  border:0;
  background:none;
  box-shadow:none;
}
body.cesba-role-admin .cesba-user-chip{
  min-height:44px;
  max-width:260px;
  margin:0 6px 0 0;
  padding:4px 12px 4px 4px;
  border:1px solid rgba(196,92,255,.12);
  border-radius:13px;
  background:rgba(20,19,43,.62);
}
body.cesba-role-admin .cesba-header-avatar{
  display:grid;
  place-items:center;
  width:34px;height:34px;flex:0 0 34px;
  border-radius:10px;
  border:1px solid rgba(196,92,255,.18);
  background:linear-gradient(135deg,#3b467f,#6c3f86);
  color:#f7efff;
  font:800 .73rem Manrope,Inter,sans-serif;
}
body.cesba-role-admin .cesba-header-profile,
body.cesba-role-admin .cesba-header-profile-main{display:flex}
body.cesba-role-admin .cesba-header-profile{min-width:0;flex-direction:column;gap:3px}
body.cesba-role-admin .cesba-header-profile-main{align-items:center;gap:6px;min-width:0}
body.cesba-role-admin .role-admin{
  min-height:17px;
  padding:0 5px;
  border-radius:6px;
  font-size:.44rem;
}
body.cesba-role-admin .cesba-account-name{
  max-width:145px;
  color:#e9e2f3;
  font-size:.67rem;
  font-weight:800;
}
body.cesba-role-admin .cesba-header-meta{
  display:block;
  max-width:180px;
  color:#756f91;
  font-size:.51rem;
}
body.cesba-role-admin .nav-link-admin{
  position:relative;
  width:40px;
  height:40px;
  min-height:40px;
  padding:0!important;
  display:inline-grid!important;
  place-items:center;
  border-radius:10px!important;
  color:#d9b4ff!important;
  border-color:rgba(196,92,255,.14)!important;
  background:rgba(196,92,255,.045)!important;
}
body.cesba-role-admin .nav-link-admin svg{
  width:18px;height:18px;
  fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round
}
body.cesba-role-admin .nav-link-admin .admin-link-label{display:none}
body.cesba-role-admin .header-icon-action,
body.cesba-role-admin #cesbaAccountBtn.header-icon-action,
body.cesba-role-admin #cesbaLogoutBtn.header-icon-action,
body.cesba-role-admin .nav-portal.header-icon-action{
  position:relative;
  width:40px;height:40px;min-height:40px;padding:0;
  display:inline-grid;place-items:center;
  border:1px solid transparent;
  border-radius:10px;
  color:#857f9b;
  background:transparent;
}
body.cesba-role-admin .header-icon-action svg{
  width:18px;height:18px;
  fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round
}
body.cesba-role-admin .header-icon-action:hover{
  color:#f0e8fb;
  border-color:rgba(196,92,255,.14);
  background:rgba(196,92,255,.04)
}
body.cesba-role-admin .campus-status{
  display:grid;
  place-items:center;
  width:24px;height:40px;
}
body.cesba-role-admin .campus-status i{
  width:6px;height:6px;border-radius:50%;
  background:#c45cff;
  box-shadow:0 0 10px rgba(196,92,255,.62)
}
body.cesba-role-admin .student-icon-nav{display:none!important}
@media(max-width:760px){
  body.cesba-role-admin .topbar,
  body.cesba-role-admin .topbar.is-scrolled{
    grid-template-columns:1fr;
    gap:8px;
  }
  body.cesba-role-admin .identity{justify-self:center}
  body.cesba-role-admin .nav-actions{justify-content:center;flex-wrap:wrap}
  body.cesba-role-admin .cesba-header-meta{display:none}
}


/* =========================================================
   Estudiante 2.0 · CESBA 1.3.0
   ========================================================= */

/* Cleaner student header: account/logout move into profile menu */
body.cesba-role-student #cesbaAccountBtn,
body.cesba-role-student #cesbaLogoutBtn{
  display:none!important;
}
body.cesba-role-student .nav-actions{position:relative}
body.cesba-role-student .student-profile-trigger{
  appearance:none;
  color:inherit;
  font:inherit;
  cursor:pointer;
  text-align:left;
}
body.cesba-role-student .student-profile-trigger:hover,
body.cesba-role-student .student-profile-trigger.is-open{
  border-color:rgba(115,220,255,.19);
  background:rgba(16,39,61,.72);
}
.student-profile-chevron{
  display:none;
  width:14px;height:14px;
  fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
  color:#627c96;
  transition:transform .16s ease
}
body.cesba-role-student .student-profile-chevron{display:block}
body.cesba-role-student .student-profile-trigger.is-open .student-profile-chevron{transform:rotate(180deg)}

.student-profile-menu{
  position:absolute;
  z-index:150;
  top:calc(100% + 10px);
  right:28px;
  width:min(330px,calc(100vw - 28px));
  padding:14px;
  border:1px solid rgba(115,220,255,.15);
  border-radius:16px;
  background:
    radial-gradient(260px circle at 0 0,rgba(115,220,255,.065),transparent 64%),
    linear-gradient(180deg,rgba(8,24,40,.995),rgba(5,16,28,.995));
  box-shadow:0 24px 70px rgba(0,0,0,.40),inset 0 1px 0 rgba(255,255,255,.025);
  -webkit-backdrop-filter:blur(20px);
  backdrop-filter:blur(20px)
}
.student-profile-menu[hidden]{display:none!important}
.student-profile-menu-head{
  display:flex;
  align-items:center;
  gap:11px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(132,160,205,.10)
}
.student-profile-menu-avatar{
  width:42px;height:42px;flex:0 0 42px;
  display:grid;place-items:center;
  border-radius:12px;
  border:1px solid rgba(115,220,255,.18);
  background:linear-gradient(135deg,#294b80,#604086);
  color:#f2fbff;
  font-weight:850
}
.student-profile-menu-head strong{
  display:block;
  color:#eef7ff;
  font-size:.78rem
}
.student-profile-menu-head small{
  display:block;
  max-width:225px;
  margin-top:3px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#6f879f;
  font-size:.57rem
}
.student-profile-details{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  padding:11px 0
}
.student-profile-details>span{
  min-width:0;
  padding:9px;
  border:1px solid rgba(132,160,205,.08);
  border-radius:9px;
  background:rgba(255,255,255,.012)
}
.student-profile-details small,.student-profile-details strong{display:block}
.student-profile-details small{
  color:#627991;
  font-size:.50rem;
  font-weight:750
}
.student-profile-details strong{
  margin-top:4px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#b9c9d9;
  font-size:.62rem
}
.student-profile-menu-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  padding-top:11px;
  border-top:1px solid rgba(132,160,205,.10)
}
.student-profile-menu-actions button,
.student-profile-menu-actions a{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border:1px solid rgba(132,160,205,.12);
  border-radius:9px;
  background:rgba(255,255,255,.018);
  color:#aabccf;
  font:800 .60rem Inter,Segoe UI,Arial,sans-serif;
  cursor:pointer
}
.student-profile-menu-actions button:first-child{border-color:rgba(115,220,255,.16);color:#cdeeff}
.student-profile-menu-actions .danger{
  grid-column:1/-1;
  color:#e7a8b4;
  border-color:rgba(255,122,144,.12);
  background:rgba(255,122,144,.025)
}

/* My route */
.student-route-panel{
  position:relative;z-index:1;
  margin-top:12px;
  padding:18px;
  border:1px solid rgba(132,160,205,.105);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(8,24,40,.88),rgba(6,18,31,.92))
}
.student-route-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:12px
}
.student-route-head h3{
  margin:4px 0 0;
  color:#e6f1fb;
  font-size:1rem
}
.student-route-head p{
  max-width:700px;
  margin:6px 0 0;
  color:#6f869f;
  font-size:.63rem;
  line-height:1.5
}
.student-route-head>a{
  color:#82dfff;
  font-size:.59rem;
  font-weight:800;
  white-space:nowrap
}
.student-route-list{display:grid;gap:7px}
.student-route-item{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  min-height:62px;
  padding:9px 10px;
  border:1px solid rgba(132,160,205,.08);
  border-radius:11px;
  background:rgba(7,20,34,.65);
  transition:transform .16s ease,border-color .16s ease,background .16s ease
}
.student-route-item:hover{
  transform:translateX(2px);
  border-color:rgba(115,220,255,.15);
  background:rgba(10,28,46,.78)
}
.student-route-item.is-current{
  border-color:rgba(115,220,255,.15);
  background:linear-gradient(90deg,rgba(115,220,255,.045),rgba(7,20,34,.68))
}
.student-route-step{
  width:30px;height:30px;
  display:grid;place-items:center;
  border-radius:9px;
  border:1px solid rgba(115,220,255,.13);
  color:#7ddfff;
  background:rgba(115,220,255,.03);
  font:850 .58rem Consolas,monospace
}
.student-route-copy{min-width:0}
.student-route-copy small,.student-route-copy strong,.student-route-copy span{display:block}
.student-route-copy small{
  color:#59738c;
  font:800 .49rem Consolas,monospace
}
.student-route-copy strong{
  margin-top:3px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#c8d6e5;
  font-size:.67rem
}
.student-route-copy span{
  margin-top:3px;
  color:#68819a;
  font-size:.54rem
}
.student-route-item>a{
  min-height:32px;
  display:inline-flex;align-items:center;
  padding:0 10px;
  border:1px solid rgba(115,220,255,.12);
  border-radius:8px;
  color:#9ee9ff;
  background:rgba(115,220,255,.025);
  font-size:.56rem;font-weight:850
}
.student-route-complete{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  min-height:72px;
  padding:12px;
  border:1px dashed rgba(122,242,199,.15);
  border-radius:12px;
  background:rgba(122,242,199,.018)
}
.student-route-complete>span{
  width:36px;height:36px;display:grid;place-items:center;
  border-radius:10px;color:#94efcf;border:1px solid rgba(122,242,199,.14)
}
.student-route-complete strong,.student-route-complete small{display:block}
.student-route-complete strong{color:#c9dbd5;font-size:.68rem}
.student-route-complete small{margin-top:3px;color:#647f7a;font-size:.56rem}
.student-route-complete>a{color:#8de5ff;font-size:.57rem;font-weight:800}
.student-route-complete.is-empty{border-color:rgba(115,220,255,.12);background:rgba(115,220,255,.015)}
.student-route-complete.is-empty>span{color:#78dcff;border-color:rgba(115,220,255,.13)}

/* Skeletons */
@keyframes studentSkeletonPulse{0%,100%{opacity:.38}50%{opacity:.85}}
.student-skeleton-row,.student-route-skeleton,.progress-skeleton-course{
  animation:studentSkeletonPulse 1.35s ease-in-out infinite
}
.student-skeleton-row{
  display:grid;grid-template-columns:24px minmax(0,1fr) 48px;gap:9px;align-items:center;min-height:40px
}
.student-skeleton-row i,.student-skeleton-row span,.student-skeleton-row b,
.student-route-skeleton>span,.student-route-skeleton i,.student-route-skeleton b,
.progress-skeleton-course span,.progress-skeleton-course strong,.progress-skeleton-course i{
  display:block;border-radius:999px;background:rgba(132,160,205,.10)
}
.student-skeleton-row i{width:24px;height:24px;border-radius:8px}
.student-skeleton-row span{height:9px;width:70%}
.student-skeleton-row b{height:9px;width:42px;justify-self:end}
.student-route-skeleton{
  min-height:62px;display:grid;grid-template-columns:30px 1fr;gap:11px;align-items:center;padding:10px
}
.student-route-skeleton>span{width:30px;height:30px;border-radius:9px}
.student-route-skeleton div{display:grid;gap:7px}
.student-route-skeleton i{width:35%;height:7px}.student-route-skeleton b{width:68%;height:10px}
.progress-skeleton-course{
  min-height:82px;display:grid;grid-template-columns:1fr 90px;gap:12px;padding:16px;border:1px solid rgba(132,160,205,.08);border-radius:13px
}
.progress-skeleton-course span{height:8px;width:28%}
.progress-skeleton-course strong{height:13px;width:70%;margin-top:10px}
.progress-skeleton-course i{height:6px;width:100%;margin-top:12px}

/* Recent empty state */
.student-empty-action{
  display:flex!important;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:9px 0!important
}
.student-empty-action>span{
  width:30px;height:30px;flex:0 0 30px;
  display:grid;place-items:center;
  border:1px solid rgba(115,220,255,.12);
  border-radius:9px;
  color:#78dcff
}
.student-empty-action strong,.student-empty-action small{display:block}
.student-empty-action strong{color:#aebfd0;font-size:.63rem}
.student-empty-action small{margin-top:3px;color:#617891;font-size:.54rem;line-height:1.4}
.student-empty-action.is-error>span{color:#ffc2cc;border-color:rgba(255,122,144,.14)}

/* Subjects 2.0 */
body.cesba-role-student #materias{
  padding-top:18px;
}
body.cesba-role-student .subject-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
}
body.cesba-role-student .subject-section-head>div:first-child{min-width:0}
body.cesba-role-student .subject-section-head h2{
  margin:4px 0 0;
  font-size:clamp(1.7rem,3vw,2.3rem)
}
.subject-section-copy{
  max-width:650px;
  margin:7px 0 0;
  color:#70869f;
  font-size:.68rem;
  line-height:1.55
}
body.cesba-role-student .subject-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px
}
body.cesba-role-student .subject-card-v2{
  min-height:218px!important;
  padding:18px!important;
  border-radius:17px!important;
  overflow:hidden
}
body.cesba-role-student .subject-card-v2 .card-top{
  margin-bottom:13px
}
body.cesba-role-student .subject-card-v2 .code{
  color:rgba(var(--route-rgb),.92)
}
body.cesba-role-student .subject-card-v2 .status{
  min-height:23px;
  display:inline-flex;align-items:center;
  padding:0 7px;
  border-radius:999px;
  border:1px solid rgba(132,160,205,.10);
  background:rgba(132,160,205,.025);
  color:#8094aa;
  font-size:.52rem
}
body.cesba-role-student .subject-card-v2 .status[data-course-state="complete"]{
  color:#99edcf;border-color:rgba(122,242,199,.15);background:rgba(122,242,199,.03)
}
body.cesba-role-student .subject-card-v2 .status[data-course-state="progress"]{
  color:#8de4ff;border-color:rgba(115,220,255,.15);background:rgba(115,220,255,.03)
}
body.cesba-role-student .subject-card-v2 .status[data-course-state="pending"]{
  color:#c4a9e6;border-color:rgba(183,124,255,.13);background:rgba(183,124,255,.025)
}
body.cesba-role-student .subject-card-v2 .semester{
  margin:0 0 5px!important;
  color:#617991!important;
  font-size:.56rem!important
}
body.cesba-role-student .subject-card-v2 h3{
  margin:0!important;
  font-size:1.16rem
}
.subject-v2-meta{
  margin-top:17px;
  padding-top:13px;
  border-top:1px solid rgba(132,160,205,.075)
}
.subject-v2-progress-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  color:#647b94;font-size:.56rem
}
.subject-v2-progress-head strong{color:#a9bed1;font-size:.60rem}
.subject-v2-meta .subject-live-progress-track{
  height:5px;margin-top:7px
}
.subject-v2-next{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px;
  align-items:center;
  margin-top:10px
}
.subject-v2-next small{
  color:rgba(var(--route-rgb),.88);
  font:850 .48rem Consolas,monospace;
  letter-spacing:.07em
}
.subject-v2-next span{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:#7e93aa;
  font-size:.57rem
}
body.cesba-role-student .subject-card-v2 .card-footer{
  margin-top:12px!important;
  padding-top:11px!important
}
body.cesba-role-student .subject-card-v2 .card-footer>span{
  color:#627a93;
  font-size:.54rem
}
body.cesba-role-student .subject-card-v2 .card-footer>a{
  min-height:30px;
  padding:0 9px;
  color:rgba(var(--route-rgb),.95);
  border-color:rgba(var(--route-rgb),.14);
  background:rgba(var(--route-rgb),.028)
}

/* Navigation follows scroll */
body.cesba-role-student .student-icon-link.is-active{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 0 24px rgba(115,220,255,.055)
}

/* Desktop density */
@media(min-width:1000px){
  body.cesba-role-student .student-dashboard-home{padding:22px!important}
  body.cesba-role-student .student-dashboard-head{margin-bottom:16px}
  .bento-continue,.bento-overall{min-height:205px}
  .bento-metric,.bento-recent{min-height:116px}
  .student-route-panel{padding:15px 17px}
}

/* Tablet */
@media(max-width:900px){
  body.cesba-role-student .subject-grid{grid-template-columns:1fr}
  .student-profile-menu{right:0}
}

/* Mobile app-like bottom navigation */
@media(max-width:620px){
  body.cesba-role-student{padding-bottom:82px}
  body.cesba-role-student .topbar,
  body.cesba-role-student .topbar.is-scrolled{
    grid-template-areas:
      "brand"
      "actions";
  }
  body.cesba-role-student .student-icon-nav{
    position:fixed;
    left:12px;
    right:12px;
    bottom:10px;
    z-index:90;
    width:auto;
    min-height:58px;
    padding:6px;
    border:1px solid rgba(115,220,255,.14);
    border-radius:16px;
    background:rgba(5,16,28,.97);
    box-shadow:0 18px 48px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.025);
    -webkit-backdrop-filter:blur(20px);
    backdrop-filter:blur(20px)
  }
  .student-icon-link{
    min-height:44px;
    grid-template-columns:18px auto;
  }
  .student-profile-menu{
    position:fixed;
    left:12px;right:12px;top:auto;bottom:78px;
    width:auto
  }
  body.cesba-role-student .nav-portal.header-icon-action{display:none}
  .student-route-head{align-items:flex-start;flex-direction:column}
  .student-route-item{grid-template-columns:30px minmax(0,1fr)}
  .student-route-item>a{grid-column:2;justify-self:start}
  .student-route-complete{grid-template-columns:36px 1fr}
  .student-route-complete>a{grid-column:2}
  body.cesba-role-student .subject-section-head{align-items:flex-start;flex-direction:column}
}
