/* Student portal only: administration keeps its existing layout. */
.student-portal{--ink:#172b3f;--muted:#617182;--line:#dde5ec;--blue:#12656a;--teal:#12656a;--bg:#f5f7f9;font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--bg);min-height:100vh;display:flex;flex-direction:column;-webkit-font-smoothing:antialiased}
.student-portal .portal-header{padding:17px max(24px,calc((100% - 1120px)/2));flex-wrap:nowrap;gap:24px;min-height:86px}
.student-portal .brand{display:flex;align-items:center;gap:12px;color:#173044;letter-spacing:-.7px;flex-shrink:0}
.student-portal .brand img{display:block;object-fit:contain;border-radius:50%;background:#102331}
.student-portal .brand-wordmark{font-size:21px;line-height:1.1;color:var(--ink)}
.student-portal .brand-wordmark strong{color:var(--teal);font-weight:800}
.student-portal .brand-wordmark small{display:block;font-size:9px;font-weight:600;letter-spacing:2px;color:var(--muted);margin-top:6px}
.student-portal nav{align-items:center;gap:26px;font-size:13px}
.student-portal nav a{color:#536476;font-weight:600;padding:10px 0}
.student-portal nav a:hover{color:var(--teal)}
.student-portal nav .group-link{border-left:1px solid var(--line);padding-left:24px;font-size:11px;letter-spacing:.4px}
.student-portal main{width:100%;max-width:1168px;padding:30px 24px 48px;flex:1}
.student-portal .portal-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:center;gap:24px;padding:36px 44px;background:#102a3a;background:linear-gradient(112deg,#102738 0%,#173e4a 100%);border-radius:20px;margin-bottom:28px;color:#fff;isolation:isolate}
.student-portal .portal-hero::after{content:"";position:absolute;right:-100px;top:-150px;width:480px;height:480px;border:1px solid #ffffff12;border-radius:50%;box-shadow:0 0 0 55px #ffffff03,0 0 0 110px #ffffff02;z-index:-1;pointer-events:none}
.student-portal .hero .eyebrow{color:#8ed5c9;letter-spacing:2.6px;font-size:11px}
.student-portal h1{font-size:clamp(29px,3.8vw,43px);font-weight:650;letter-spacing:-1.3px;line-height:1.16;margin:14px 0}
.student-portal .hero p{font-size:15px;line-height:1.65;color:#c2d2dc;margin:0 0 20px;max-width:510px}
.student-portal .service{background:#ffffff0a;border-color:#ffffff25;color:#dbe5ed;font-size:11px;padding:7px 11px;font-weight:500}
.student-portal .service.ready{background:#b9f2dd10;color:#b9f2dd;border-color:#b9f2dd26}
.student-portal .service.ready::before{background:#81d5b5}
.student-portal .hero-emblem{display:flex;flex-direction:column;align-items:center;gap:15px}
.student-portal .hero-emblem img{display:block;width:190px;height:190px;object-fit:contain;filter:drop-shadow(0 12px 24px #00000028)}
.student-portal .hero-emblem>span{font-size:9px;letter-spacing:2.1px;color:#a9c4cf;text-align:center}
.student-portal .panel{border-radius:16px;padding:30px;margin-bottom:0;box-shadow:0 4px 20px #192b4004}
.student-portal h2{font-size:24px;letter-spacing:-.5px;font-weight:650;line-height:1.35;margin:9px 0 12px}
.student-portal .eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:750}
.student-portal .grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:24px;align-items:start}
.student-portal .login-intro{font-size:14px;margin:0 0 24px;line-height:1.6}
.student-portal label{font-weight:600;font-size:13px;margin-top:18px}
.student-portal input,.student-portal select{border-color:#cfd9e2;border-radius:8px;min-height:48px;padding:12px 14px;font-size:14px}
.student-portal input::placeholder{color:#7c8a98;opacity:1}
.student-portal button{min-height:46px;border-radius:8px;font-size:13px;font-weight:650;transition:background .15s}
.student-portal button:hover:not(:disabled){background:#0b5157}
.student-portal .secondary{background:#f3f6f8;border:1px solid var(--line);color:#385064}
.student-portal .secondary:hover:not(:disabled){background:#e9eff3}
.student-portal #login .row>button{width:100%;justify-content:space-between;padding:13px 18px}
.student-portal details{padding-top:18px;margin-top:22px}
.student-portal summary{font-size:13px;font-weight:600;line-height:1.6}
.student-portal #activation-details summary{font-size:12px;color:var(--muted)}
.student-portal .hint{font-size:12px}
.student-portal .access-guide{background:#edf3f4;border-color:#dce7e8;box-shadow:none}
.student-portal .access-guide>p{font-size:14px;margin:0}
.student-portal .steps{list-style:none;padding:0;margin:26px 0;counter-reset:access}
.student-portal .steps li{counter-increment:access;position:relative;padding-left:44px;margin:22px 0;line-height:1.55}
.student-portal .steps li::before{content:counter(access,decimal-leading-zero);position:absolute;left:0;top:1px;font-size:11px;font-weight:700;color:#356971;border:1px solid #cddfe1;background:#f8fbfb;border-radius:50%;width:29px;height:29px;display:grid;place-items:center}
.student-portal .steps strong{display:block;font-size:13px;font-weight:650;color:#243f50;margin-bottom:5px}
.student-portal .steps li>span{display:block;font-size:12px;color:#596e7c}
.student-portal .access-guide .guide-note{border-top:1px solid #d4e2e3;padding-top:18px;margin-top:22px;font-size:12px;line-height:1.7}
.student-portal .status{margin:16px 0;font-size:12px;min-height:0}
.student-portal .status:empty{display:none}
.student-portal .status.error{border:1px solid #efcdd4;background:#fff2f4;padding:12px 16px;border-radius:8px}
.student-portal #email-finish{max-width:620px;margin:0 auto}
.student-portal .welcome{border-bottom:1px solid var(--line);padding-bottom:24px;align-items:center;flex-wrap:nowrap}
.student-portal .welcome>div{min-width:0}
.student-portal .welcome h2{font-size:23px;margin:7px 0 10px;overflow-wrap:anywhere}
.student-portal .welcome button{flex-shrink:0}
.student-portal .tag{border-radius:5px;background:#eff4f6;color:#546c7c;font-size:11px;padding:5px 9px}
.student-portal .results-heading{margin-top:26px}
.student-portal .results-heading h3{margin:0;font-weight:650;letter-spacing:-.3px;font-size:19px}
.student-portal .results-heading p{font-size:13px;line-height:1.6;margin:6px 0 0}
.student-portal .course-filter{margin-top:20px;padding:16px 18px;background:#f7f9fb;border:1px solid #e8edf1;border-radius:9px;gap:14px;flex-wrap:nowrap}
.student-portal .course-filter label{margin:0;font-size:12px}
.student-portal .course-filter select{min-width:0;flex:1}
.student-portal .course-filter button{flex-shrink:0}
.student-portal .table-wrap{margin:22px 0 0;border-radius:9px;border-color:#dfe6ed}
.student-portal caption{font-size:12px;font-weight:500;padding:14px 16px}
.student-portal th{background:#f5f8fa;color:#596c7e;font-size:11px;font-weight:650;letter-spacing:.1px}
.student-portal th,.student-portal td{padding:17px 16px}
.student-portal td{font-size:13px}
.student-portal td.grade{font-size:20px;font-weight:750;color:#12656a;font-variant-numeric:tabular-nums}
.student-portal tbody tr:hover{background:#fafcfd}
.student-portal .learning-area{margin-top:26px}
.student-portal .classroom-directory{margin:0;padding:0;background:#fff;border:1px solid var(--line);border-radius:12px}
.student-portal .classroom-directory>summary{display:flex;align-items:center;gap:17px;list-style:none;padding:22px 26px}
.student-portal .classroom-directory>summary::-webkit-details-marker{display:none}
.student-portal .directory-icon{width:42px;height:42px;flex-shrink:0;border:1px solid #e0e8ed;border-radius:10px;background:#f6f9fa;display:grid;place-items:center;color:#47717b}
.student-portal .directory-icon svg{width:22px;height:22px}
.student-portal .directory-text{flex:1;min-width:0}
.student-portal .directory-text strong{display:block;color:#2b4355;font-size:15px;font-weight:650}
.student-portal .directory-text>span{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:3px}
.student-portal .directory-action{font-size:12px;color:var(--teal);display:flex;align-items:center;gap:12px}
.student-portal .directory-action>span{font-size:22px;font-weight:400;transition:transform .15s}
.student-portal .classroom-directory[open] .directory-action>span{transform:rotate(45deg)}
.student-portal .classroom-list{border-top:1px solid var(--line);padding:22px 26px}
.student-portal .classroom-card{display:flex;align-items:center;gap:20px;justify-content:space-between;max-width:480px;border:1px solid #dce6eb;border-radius:10px;padding:20px;text-decoration:none;background:#fafcfc;color:#29485b}
.student-portal .classroom-card:hover{border-color:#9bbcc2;background:#f1f7f7}
.student-portal .classroom-card small{display:block;font-size:9px;letter-spacing:1.5px;color:#52727d;margin-bottom:6px}
.student-portal .classroom-card strong{display:block;font-size:16px;font-weight:650}
.student-portal .classroom-card>span>span{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:5px;line-height:1.6}
.student-portal .classroom-arrow{font-size:24px}
.student-portal .classroom-list .hint{margin:12px 0 0}
.student-portal .footer{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px max(24px,calc((100% - 1120px)/2));font-size:11px;background:#fff}
.student-portal .footer strong{color:#4b6273;letter-spacing:1px;font-size:10px}
.student-portal .footer a{color:#4b6273;text-decoration:none;font-weight:600}
@media(max-width:760px){
 .student-portal .portal-header{padding:16px 20px;flex-wrap:wrap;gap:12px}
 .student-portal nav{gap:20px;flex-wrap:wrap;font-size:12px}
 .student-portal nav a{padding:5px 0}
 .student-portal nav .group-link{padding-left:18px;font-size:10px}
 .student-portal main{padding:22px 20px 36px}
 .student-portal .portal-hero{grid-template-columns:minmax(0,1fr) 135px;gap:10px;padding:26px}
 .student-portal h1{font-size:32px}
 .student-portal .hero-emblem img{width:130px;height:130px}
 .student-portal .hero-emblem>span{font-size:8px;letter-spacing:1px;line-height:1.5}
 .student-portal .grid{grid-template-columns:1fr}
 .student-portal .panel{padding:24px}
 .student-portal .welcome{flex-wrap:wrap;gap:16px}
 .student-portal .welcome h2{font-size:21px}
 .student-portal .course-filter{flex-wrap:wrap;padding:14px;gap:10px}
 .student-portal .course-filter label{width:100%}
 .student-portal .course-filter select{min-width:120px}
 .student-portal .course-filter>button{flex:0 0 auto}
 .student-portal .classroom-directory>summary{padding:18px;gap:12px}
 .student-portal .classroom-list{padding:18px}
 .student-portal .footer{padding:22px 20px}
}
@media(max-width:480px){
 .student-portal .brand-wordmark{font-size:19px}
 .student-portal nav{width:100%;justify-content:space-between;gap:10px}
 .student-portal nav .group-link{border:0;padding-left:0}
 .student-portal main{padding:16px 16px 30px}
 .student-portal .portal-hero{grid-template-columns:1fr;padding:28px 24px;gap:0;margin-bottom:20px}
 .student-portal .hero-emblem{grid-row:1;align-items:flex-start;margin-bottom:20px}
 .student-portal .hero-emblem img{width:100px;height:100px}
 .student-portal .hero-emblem>span{display:none}
 .student-portal h1{font-size:31px;letter-spacing:-.9px}
 .student-portal .hero p{font-size:13px}
 .student-portal .panel{padding:22px 20px}
 .student-portal .directory-text>span{font-size:11px}
 .student-portal .directory-action{font-size:0;gap:0}
 .student-portal .directory-action>span{font-size:22px}
 .student-portal .footer{flex-direction:column;gap:8px}
}
@media(prefers-reduced-motion:reduce){.student-portal *{transition:none!important}}

/* Private student dashboard: progress shown separately from grades. */
.student-portal .campus-dashboard{margin:22px 0 28px;padding:22px;border:1px solid #d8e6e9;background:#f8fbfc;border-radius:14px}
.student-portal .campus-dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.student-portal .campus-dashboard-heading h3{margin:5px 0 0;font-size:19px;color:#173646}
.student-portal #campus-progress-status{font-size:12px;color:#5d7682}
.student-portal .campus-dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.student-portal .campus-course{padding:18px 20px;border:1px solid #dce6ec;background:white;border-radius:12px}
.student-portal .campus-course strong{display:block;font-size:17px;color:#1a3649}
.student-portal .campus-course p{font-size:13px;color:#617383;margin:7px 0 12px}
.student-portal .campus-progress-track{height:10px;overflow:hidden;border-radius:8px;background:#e1ebee}
.student-portal .campus-progress-track div{height:100%;width:0;background:#168786;transition:width .2s}
.student-portal .campus-course-link{display:inline-block;margin-top:7px;padding:10px 14px;background:#12656a;color:white!important;border-radius:8px;text-decoration:none;font-size:13px;font-weight:700}
.student-portal .campus-course-link:hover{background:#0b5157}
.student-portal .campus-dashboard .campus-dashboard-note{font-size:12px;color:#687f8a;margin:13px 0 0}

/* Directorio dentro de la sesión estudiantil; no sustituye autorización de archivos. */
.student-portal .campus-services{margin:22px 0 27px;padding:22px;background:#fff;border:1px solid #dce5ec;border-radius:13px}
.student-portal .campus-services-head h3{margin:5px 0 4px;font-size:20px;color:#183a4b}
.student-portal .campus-services-head p{margin:0 0 17px;color:#667c8b;font-size:13px}
.student-portal .campus-services-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.student-portal .campus-services-grid a{display:flex;flex-direction:column;gap:5px;text-decoration:none;border:1px solid #dce8ec;background:#f8fbfc;padding:17px;border-radius:10px;color:#1b4b62}
.student-portal .campus-services-grid a:hover{background:#edf6f6;border-color:#9dc5c7}
.student-portal .campus-services-grid strong{font-size:14px}
.student-portal .campus-services-grid span{font-size:12px;color:#627887}
.student-portal .campus-services>.hint{margin-top:14px}
@media(max-width:650px){.student-portal .campus-services-grid{grid-template-columns:1fr}}

/* BADBEAR.CAMPUS · visual refresh, without changing private data or routes */
.student-portal{background:radial-gradient(ellipse 55% 32% at 4% 8%,#dff3ef 0%,transparent 100%),radial-gradient(ellipse 45% 40% at 100% 45%,#e3ecfb 0%,transparent 100%),#f4f7fc}
.student-portal main{max-width:1440px!important;width:100%;padding:32px 28px 56px}
.student-portal .portal-header{padding-left:max(28px,calc((100% - 1380px)/2));padding-right:max(28px,calc((100% - 1380px)/2))}
.student-portal .portal-hero{grid-template-columns:minmax(0,1fr) 310px;min-height:285px;padding:42px 55px;background:radial-gradient(circle at 87% 25%,#17889955,transparent 35%),linear-gradient(115deg,#102a46 0%,#14516a 55%,#0c817e 100%);box-shadow:0 16px 38px #16405d22;border:1px solid #ffffff22}
.student-portal .portal-hero::after{right:-60px;top:-210px;width:620px;height:620px;border-color:#ffffff20;box-shadow:0 0 0 56px #ffffff08,0 0 0 130px #ffffff06}
.student-portal .portal-hero h1{font-size:clamp(32px,3.5vw,49px);font-weight:760;letter-spacing:-1.5px}
.student-portal .portal-hero .eyebrow{color:#baf6e7}
.student-portal .hero-emblem img{width:210px;height:210px;filter:drop-shadow(0 10px 28px #00162570)}
.student-portal #results{background:#fff;border:1px solid #dae5ed;box-shadow:0 10px 40px #1c44630b}
.student-portal .campus-dashboard{background:linear-gradient(112deg,#f0faf7,#edf6ff);border-color:#b9deda}
.student-portal .campus-course{border-color:#b7dcd8;box-shadow:0 5px 16px #0b6c790b}
.student-portal .campus-progress-track div{background:linear-gradient(90deg,#049e91,#2694da)}
.student-portal .campus-services{background:linear-gradient(180deg,#fff,#f9fcff);border-color:#d4e6ef}
.student-portal .campus-services-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.student-portal .campus-services-grid a{min-height:100px;padding:19px 20px;border-radius:13px;border-color:#d4e5ec;background:#fff;box-shadow:0 5px 18px #16495f0a;justify-content:center;transition:transform .16s,border-color .16s,box-shadow .16s}
.student-portal .campus-services-grid a:nth-child(5n+1){background:linear-gradient(135deg,#e7f6f3,#f7fffd)}
.student-portal .campus-services-grid a:nth-child(5n+2){background:linear-gradient(135deg,#eaf1ff,#fbfdff)}
.student-portal .campus-services-grid a:nth-child(5n+3){background:linear-gradient(135deg,#fff3e8,#fffdf9)}
.student-portal .campus-services-grid a:nth-child(5n+4){background:linear-gradient(135deg,#f2edff,#fdfbff)}
.student-portal .campus-services-grid a:hover{transform:translateY(-2px);border-color:#70b8ba;box-shadow:0 9px 22px #16495f1b}
.student-portal .campus-services-grid strong{font-size:15px;color:#18435c}
.student-portal .campus-services-grid span{font-size:12px}
.student-portal .learning-area{margin-top:22px}
@media(max-width:980px){.student-portal .campus-services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.student-portal .portal-hero{grid-template-columns:minmax(0,1fr) 210px;padding:30px}}
@media(max-width:650px){.student-portal main{padding:16px!important}.student-portal .portal-hero{grid-template-columns:1fr;padding:25px}.student-portal .hero-emblem{display:none}.student-portal .campus-services-grid{grid-template-columns:1fr}.student-portal .campus-services-grid a{min-height:75px}}

/* Panel privado, navegación clara y con mayor jerarquía */
.student-portal .student-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:26px 0 22px;padding:9px;border-radius:14px;background:#f0f5f8;border:1px solid #dce9ec}
.student-portal .student-tabs button{border:1px solid transparent;background:transparent;color:#34566a;padding:11px 16px;min-height:40px;cursor:pointer}
.student-portal .student-tabs button.selected{background:#0a777b;color:#fff;box-shadow:0 3px 8px #0a777b25}
.student-portal .tab-section{padding:18px 2px}
.student-portal .tab-section[hidden]{display:none!important}
.student-portal .tab-section[data-view="inicio"]{background:linear-gradient(125deg,#e8f7f3,#f2f6ff 70%,#fff3e8);border-radius:14px;padding:29px;margin-bottom:12px}
.student-portal .tab-section[data-view="inicio"] h3{color:#133d60;font-size:25px;margin:0 0 8px}
.student-portal .tab-section[data-view="inicio"] p{color:#536c7a;margin:0}
.student-portal .tab-section[data-view="biblioteca"] a{display:inline-flex;background:#e8f3f7;padding:11px 16px;border-radius:9px;text-decoration:none;font-weight:700}
@media(max-width:650px){.student-portal .student-tabs button{flex:1 1 120px}.student-portal .tab-section[data-view="inicio"]{padding:20px}}

.student-portal .portal-header .campus-menu {
  position: relative;
  z-index: 10;
  margin-inline-start: auto;
}
.student-portal .campus-menu > summary {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .8rem;
  border: 1px solid #cbd9e9;
  border-radius: .65rem;
  background: #eef5ff;
  color: #16385e;
  font: 650 .875rem/1.4 system-ui, sans-serif;
  cursor: pointer;
}
.student-portal .campus-menu > summary::after {
  content: "";
  width: .42rem;
  height: .42rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.student-portal .campus-menu[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}
.student-portal .campus-menu > nav {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + .35rem);
  display: grid;
  gap: .15rem;
  width: min(14rem, calc(100vw - 2rem));
  max-height: min(65vh, 26rem);
  overflow: auto;
  box-sizing: border-box;
  padding: .35rem;
  border: 1px solid #d5e1ee;
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 .5rem 1.4rem #0d203d26;
}
.student-portal .campus-menu:not([open]) > nav {
  display: none;
}
.student-portal .campus-menu nav a,
.student-portal .campus-menu nav .group-link,
.student-portal .campus-menu nav button {
  box-sizing: border-box;
  width: 100%;
  padding: .52rem .65rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: #16385e;
  font: 600 .84rem/1.4 system-ui, sans-serif;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.student-portal .campus-menu nav button[hidden] {
  display: none;
}
.student-portal .campus-menu nav a:hover,
.student-portal .campus-menu nav button:hover {
  background: #eef5ff;
}
.student-portal .campus-menu :focus-visible {
  outline: 2px solid #2c6db5;
  outline-offset: -2px;
}

/* Workspace after sign-in */
.student-portal main:has(.campus-workspace:not([hidden])) > .portal-hero,
.student-portal main:has(.campus-workspace:not([hidden])) > .learning-area {
  display:none;
}
.student-portal #results.campus-workspace {
  padding:clamp(1rem,3vw,2rem);
  border-radius:1.25rem;
  border:1px solid #dce6ef;
  background:#fff;
}
.student-portal .campus-workspace .welcome {
  padding:0 0 1.1rem;
  border-bottom:1px solid #e3eaf2;
}
.student-portal .campus-workspace .welcome h2 {
  font-size:clamp(1.35rem,3vw,2rem);
  line-height:1.2;
  color:#142941;
}
.student-portal #results .student-tabs {
  margin:1rem 0 1.35rem;
  padding:0;
  gap:.35rem;
  background:transparent;
  border:0;
}
.student-portal #results .student-tabs button {
  padding:.48rem .8rem;
  border:1px solid #dce6ef;
  border-radius:.55rem;
  background:#fff;
  color:#263e57;
  box-shadow:none;
  font-size:.85rem;
}
.student-portal #results .student-tabs button.selected {
  border-color:#bad2ed;
  background:#e8f2ff;
  color:#103d74;
}
.student-portal .campus-overview {display:grid;gap:1.45rem}
.student-portal .campus-feature {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:1rem;
  padding:clamp(1.1rem,4vw,2.3rem);
  border-radius:1rem;
  background:linear-gradient(112deg,#102641,#174761);
  color:#f4faff;
}
.student-portal .campus-feature h3 {
  margin:0;
  color:inherit;
  font-size:clamp(1.55rem,4vw,2.6rem);
  letter-spacing:-.035em;
}
.student-portal .campus-feature p {margin:.35rem 0 1rem;color:#d3e6f4;font-size:.95rem}
.student-portal .campus-feature img {width:clamp(3.6rem,10vw,7rem);height:auto;border-radius:50%}
.student-portal .campus-feature-link,
.student-portal .campus-classroom-link {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-weight:700;
  text-decoration:none;
}
.student-portal .campus-feature-link {padding:.55rem .8rem;border-radius:.55rem;background:#d7f2ff;color:#15334e}
.student-portal .campus-feature-link:hover {background:#fff}
.student-portal .campus-classroom-link {color:#145a97}
.student-portal .campus-classroom-link:hover {text-decoration:underline}
.student-portal .campus-classroom-heading,
.student-portal .campus-live {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:.6rem;
}
.student-portal .campus-classroom-heading h3 {margin:0;color:#18324c;font-size:1.2rem}
.student-portal .campus-classroom-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.85rem;
  margin:.8rem 0;
}
.student-portal .campus-classroom,
.student-portal .campus-live {
  padding:1rem;
  background:#f7fafd;
  border:1px solid #dce6ef;
  border-radius:.8rem;
}
.student-portal .campus-classroom {display:flex;flex-direction:column;align-items:flex-start}
.student-portal .campus-classroom h4,
.student-portal .campus-live h4 {margin:0;color:#18324c;font-size:1rem}
.student-portal .campus-classroom p,
.student-portal .campus-live p {margin:.3rem 0;color:#506477;font-size:.85rem}
.student-portal .campus-classroom > a {margin-top:auto;padding-top:.65rem}
.student-portal .campus-classroom progress {
  width:100%;
  height:.65rem;
  margin-top:.65rem;
  accent-color:#147c88;
}
.student-portal .campus-grade-note {margin:.65rem 0 0;color:#506477;font-size:.8rem}
@media(max-width:640px) {
  .student-portal .campus-classroom-grid {grid-template-columns:minmax(0,1fr)}
  .student-portal #results .student-tabs button {flex:0 1 auto}
}

.student-portal:has(.campus-workspace:not([hidden])) {
  background:linear-gradient(150deg,#e4edfa,#f5f8ff 50%,#eef3f8);
}
.student-portal:has(.campus-workspace:not([hidden])) .portal-header {
  background:#0c2040;
  border-bottom:3px solid #4b83f3;
}
.student-portal:has(.campus-workspace:not([hidden])) .portal-header .brand-wordmark,
.student-portal:has(.campus-workspace:not([hidden])) .portal-header .brand-wordmark strong {
  color:#fff;
}
.student-portal:has(.campus-workspace:not([hidden])) .portal-header .brand-wordmark small {
  color:#b9d7ff;
}
.student-portal .campus-workspace .welcome h2 {font-size:clamp(1.45rem,3vw,2.25rem)}
.student-portal .campus-spotlight {
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);
  gap:1rem;
}
.student-portal .campus-feature {
  background:radial-gradient(ellipse at 95% 5%,#225fbc 0%,transparent 60%),linear-gradient(130deg,#0d2548,#173d79);
}
.student-portal .campus-feature-link {background:#fff;color:#153b72}
.student-portal .campus-feature-link:hover {background:#dbeaff}
.student-portal .campus-spotlight .campus-live {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:.65rem;
  padding:clamp(1.1rem,3vw,1.65rem);
  border-color:#893549;
  border-radius:1rem;
  background:radial-gradient(ellipse at 100% 0%,#89334e,transparent 65%),linear-gradient(135deg,#47172f,#68213b);
  color:#fff;
}
.student-portal .campus-live h3 {margin:0;font-size:clamp(1.35rem,3vw,1.85rem);color:#fff;line-height:1.2}
.student-portal .campus-live p {margin:.3rem 0;color:#ffe2e8;font-size:.9rem}
.student-portal .campus-live-icon {
  position:relative;
  width:1.3rem;height:.95rem;border:2px solid #ffb7c7;border-radius:.25rem;
}
.student-portal .campus-live-icon::after {
  content:"";position:absolute;inset-inline-start:100%;top:50%;
  transform:translateY(-50%);width:0;height:0;
  border:.28rem solid transparent;border-inline-end-color:#ffb7c7;
}
.student-portal .campus-live-link {
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.56rem .8rem;border-radius:.55rem;
  background:#ffe2e9;color:#54162e;font-weight:750;text-decoration:none;
}
.student-portal .campus-live-link:hover {background:#fff}
.student-portal .campus-classroom {background:#fff;border-color:#bfcee3;border-top:3px solid #446daa}
.student-portal .campus-overview a:focus-visible {outline:3px solid #3778e0;outline-offset:3px}
.student-portal .campus-spotlight a:focus-visible {outline-color:#fff}
@media(max-width:760px) {
  .student-portal .campus-spotlight {grid-template-columns:minmax(0,1fr)}
}
