
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:#f5f8fc;color:#132238}a{text-decoration:none;color:inherit}.container{width:min(1160px,92%);margin:auto}header{background:#fff;border-bottom:1px solid #dfe7f0;position:sticky;top:0;z-index:20}.nav{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:10px;color:#092d57}.brand img{width:48px;height:48px;object-fit:cover;border-radius:50%}.brand small{display:block;font-size:11px;color:#65758b;font-weight:500}nav{display:flex;gap:3px;flex-wrap:wrap}nav a{padding:9px 10px;border-radius:9px;font-size:13px;font-weight:750}nav a:hover{background:#edf5ff;color:#0757a8}.hero{background:linear-gradient(135deg,#063e7d,#0872d8);color:#fff;padding:74px 0}.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:50px;align-items:center}.eyebrow{display:inline-block;background:#ffffff1c;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800}.hero h1{font-size:clamp(38px,5vw,62px);line-height:1.02;margin:18px 0}.hero p{font-size:18px;line-height:1.7;color:#e6f1ff}.hero-logo{background:#ffffff18;border:1px solid #ffffff35;border-radius:24px;padding:24px;text-align:center}.hero-logo img{width:min(300px,100%);border-radius:20px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.btn{border:0;border-radius:11px;padding:12px 16px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.blue{background:#0757a8;color:#fff}.white{background:#fff;color:#0757a8}.outline{border:1px solid #ffffff88;background:transparent;color:#fff}.light{background:#edf5ff;color:#0757a8}section{padding:65px 0}.head{text-align:center;margin-bottom:30px}.head.left{text-align:left}.head h1,.head h2{margin:0 0 9px}.head p{color:#65758b;line-height:1.6}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card,.panel{background:#fff;border:1px solid #dfe7f0;border-radius:18px;padding:23px;box-shadow:0 10px 30px #1430500b}.card .icon{font-size:26px}.card h3{margin-bottom:7px}.card p{color:#65758b;line-height:1.6}.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.news-card{background:#fff;border:1px solid #dfe7f0;border-radius:17px;overflow:hidden}.news-card img{width:100%;height:180px;object-fit:cover;background:#eaf2fa}.news-card .body{padding:18px}.tag{display:inline-block;background:#edf5ff;color:#0757a8;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800}.news-card h3{margin:10px 0 7px}.news-card p{color:#65758b;line-height:1.55;font-size:14px}.date{font-size:12px;color:#8a98a9}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{font-size:13px;font-weight:750}input,select,textarea{display:block;width:100%;margin-top:7px;border:1px solid #ccd7e4;border-radius:10px;padding:12px;font:inherit;background:#fff}textarea{min-height:110px;resize:vertical}.full{grid-column:1/-1}.check{display:flex;align-items:center;gap:8px}.check input{width:auto;margin:0}.success,.error{padding:15px;border-radius:12px;margin-top:16px}.success{background:#effaf2;border:1px solid #b9e3c3}.error{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}.search{display:grid;grid-template-columns:1fr auto;gap:10px}.profile{display:grid;grid-template-columns:300px 1fr;gap:35px;align-items:start}.profile img{width:100%;border-radius:20px;background:#eaf2fa}.quote{background:#edf5ff;border-left:5px solid #0757a8;padding:25px;border-radius:0 15px 15px 0;font-size:18px;line-height:1.7}.timeline{display:grid;gap:14px}.timeline article{background:#fff;border:1px solid #dfe7f0;border-radius:15px;padding:18px}.timeline b{color:#0757a8}footer{background:#071e3a;color:#d9e6f6;padding:40px 0}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px}.muted{color:#9fb2c9;line-height:1.6}.admin{padding:40px 0}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:13px}.stat{background:#fff;border:1px solid #dfe7f0;border-radius:15px;padding:17px}.stat b{display:block;font-size:28px;margin-top:5px}.stat small{color:#65758b}.toolbar{display:flex;gap:10px;margin-bottom:14px}.toolbar input{margin:0}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:1050px}th,td{padding:10px;border-bottom:1px solid #e5ebf2;text-align:left;font-size:13px}th{background:#f7f9fc}td select{display:inline-block;width:auto;margin:0;padding:7px}.narrow{max-width:520px;margin:60px auto}.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.gallery img{width:100%;height:200px;object-fit:cover;border-radius:14px;background:#eaf2fa}@media(max-width:850px){header:not(.admin-topbar) nav{display:none}.hero-grid,.profile,.grid{grid-template-columns:1fr}.cards,.news-grid,.stats{grid-template-columns:1fr 1fr}.gallery{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr}.search{grid-template-columns:1fr}}@media(max-width:520px){.cards,.news-grid,.stats,.gallery{grid-template-columns:1fr}.hero{padding:50px 0}}

/* V4 — espace étudiant */
.tabs{display:flex;gap:10px;margin-bottom:18px}.tabs .btn{border:0;cursor:pointer}
/* Statistiques de l'espace etudiant : scope par #stats pour ne pas alterer l'accueil ni l'administration */
#stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 26px}
#stats .stat{min-height:92px;background:#fff;border:1px solid var(--line,#dce6f0);border-radius:var(--radius,16px);box-shadow:var(--shadow,0 12px 32px rgba(12,42,75,.08));padding:18px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
#stats .stat strong{display:block;font-size:26px;line-height:1.1;color:var(--blue,#1262a8)}
#stats .stat span{color:var(--muted,#61748a);font-size:.85rem}
.badge{display:inline-block;padding:4px 11px;border-radius:999px;font-size:.76rem;font-weight:800;letter-spacing:.01em;background:#edf4fc;color:#0b55a1;border:1px solid #cfe1f6}
/* Reponse de l'AEDT dans la messagerie etudiante */
.quote{margin-top:12px;padding:14px 16px;background:#f0f7ff;border-left:4px solid var(--blue,#1262a8);border-radius:0 12px 12px 0;line-height:1.6}
.quote small{display:block;margin-top:8px;color:var(--muted,#61748a)}
@media(max-width:850px){#stats{grid-template-columns:1fr 1fr}}
@media(max-width:520px){#stats{grid-template-columns:1fr}}

:root{color-scheme:light;--navy:#082c52;--blue:#1262a8;--blue-dark:#0b477f;--gold:#f2b632;--ink:#172b42;--muted:#61748a;--line:#dce6f0;--surface:#fff;--page:#f4f7fb;--success:#166534;--success-bg:#effaf2;--error:#9f1239;--error-bg:#fff1f2;--warning:#76520b;--warning-bg:#fff8e5;--radius:16px;--shadow:0 12px 32px rgba(12,42,75,.08)}
html{scroll-behavior:smooth;scroll-padding-top:88px}
body{background:var(--page);color:var(--ink);line-height:1.55;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{outline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #72b7f3}
header{box-shadow:0 4px 18px rgba(12,42,75,.04)}
.brand{font-size:1rem}
.brand small{letter-spacing:.01em}
.nav-toggle{display:none;align-items:center;justify-content:center;gap:7px;min-height:38px;height:38px;padding:0 13px;border:1.5px solid #d0deee;border-radius:10px;background:#fff;color:var(--navy);font-size:.84rem;font-weight:800;cursor:pointer;box-shadow:0 2px 8px rgba(9,45,87,.08);transition:all .18s ease}
.nav-toggle:hover,.nav-toggle.is-active{background:#edf5ff;color:var(--blue);border-color:#b9d5f5}
.nav-toggle-icon{font-size:1.15rem;line-height:1}
header nav a[aria-current="page"]{background:#edf5ff;color:var(--blue)}
header nav a.btn[aria-current="page"]{background:var(--blue);color:#fff}
header .brand img{flex:0 0 auto}
header nav{align-items:center}
header nav button{font:inherit}
.btn{min-height:44px;transition:transform .16s ease,background-color .16s ease,box-shadow .16s ease}
.btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 7px 18px rgba(9,45,87,.13)}
.btn:disabled{opacity:.6;cursor:wait;transform:none;box-shadow:none}
.blue{background:var(--blue)}
.blue:hover:not(:disabled){background:var(--blue-dark)}
.light{background:#eaf3fc}
.card,.panel{box-shadow:var(--shadow)}
.card,.news-card,.panel,.timeline article{transition:box-shadow .18s ease,border-color .18s ease,transform .18s ease}
.cards .card:hover,.news-card:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(12,42,75,.12);border-color:#c6d8e9}
input,select,textarea{min-height:44px;border-color:#c9d6e4;color:var(--ink)}
input::placeholder,textarea::placeholder{color:#8191a3}
label{line-height:1.45}
.success{background:var(--success-bg);border-color:#b9e3c3;color:var(--success)}
.error{background:var(--error-bg);border-color:#fecdd3;color:var(--error)}
table{border-collapse:separate;border-spacing:0}
th{position:sticky;top:0;z-index:1}
td,th{padding:13px 12px}
.tablewrap{border:1px solid var(--line);border-radius:12px;background:#fff}
.tablewrap table{border:0}
.gallery img,.news-card img{display:block}
footer a{color:#e6eef8}
footer a:hover{color:#fff;text-decoration:underline}
@media(max-width:850px){
  header .nav{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:64px;
    padding:8px 0;
  }
  header .brand{
    flex:1 1 auto;
    min-width:0;
    display:flex;
    align-items:center;
    gap:10px;
  }
  header .brand span{
    min-width:0;
    overflow:hidden;
  }
  header .brand small{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width:240px;
  }
  header .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    margin-left:auto;
    min-height:38px;
    height:38px;
    padding:0 13px;
    font-size:.84rem;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(9,45,87,.08);
  }
  header nav,header nav.links,header nav.nav-links{
    display:none;
    flex-basis:100%;
    width:100%;
    order:3;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    padding:12px 0 16px;
    border-top:1px solid var(--line);
    margin-top:6px;
  }
  header.nav-open nav,header.nav-open nav.links,header.nav-open nav.nav-links{
    display:flex;
  }
  header nav a,header nav button{
    width:100%;
    text-align:left;
    justify-content:flex-start;
  }
}
@media(max-width:560px){
  header .nav{min-height:58px}
  header .brand img{width:42px;height:42px}
  header .brand{font-size:.95rem;gap:9px}
  header .brand small{font-size:10px;max-width:160px}
  header .nav-toggle{min-height:36px;height:36px;padding:0 11px;font-size:.8rem;border-radius:8px}
}
@media(max-width:400px){
  header .brand small{display:none}
}
@media(max-width:520px){
  section{padding:46px 0}
  .panel,.card{padding:18px}
  .btn{width:100%}
  .toolbar{flex-direction:column}
  .toolbar .btn{width:100%}
  .tablewrap{margin-inline:-6px}
  .hero h1{font-size:clamp(34px,11vw,48px)}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

.head .brand{display:flex;align-items:center;gap:10px}
.head .brand img{width:46px;height:46px;object-fit:contain;border-radius:50%}
.head .brand small{display:block;color:var(--muted);font-size:.7rem;font-weight:600}
.head nav.links a[aria-current="page"]{color:var(--blue);background:#edf5ff;border-radius:9px;padding:9px 10px}

/* Tableau de bord de l'espace étudiant */
body:has(#tabs){
  background:
    radial-gradient(ellipse at 92% 8%,rgba(210,229,248,.52),transparent 34rem),
    var(--page);
}
body:has(#tabs) header{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
body:has(#tabs) main.container{
  width:min(1180px,calc(100% - 48px));
}
body:has(#tabs) main.container>.hero{
  margin:28px 0 20px;
  padding:34px 40px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:24px;
  background:
    radial-gradient(ellipse at 90% 0%,rgba(255,255,255,.18),transparent 45%),
    linear-gradient(120deg,#082c52 0%,#105d9d 58%,#1974b5 100%);
  box-shadow:0 18px 42px rgba(8,44,82,.16);
}
body:has(#tabs) .hero .eyebrow{
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.2);
  letter-spacing:.1em;
}
body:has(#tabs) .hero h1{
  margin:15px 0 8px;
  font-size:clamp(2rem,4vw,2.8rem);
  letter-spacing:-.035em;
}
body:has(#tabs) .hero p{
  max-width:620px;
  margin:0;
  color:#e3effa;
  font-size:1rem;
}
body:has(#tabs) #msg:empty{display:none}
body:has(#tabs) #stats{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:22px;
}
body:has(#tabs) #stats .stat{
  position:relative;
  min-height:104px;
  align-items:flex-start;
  padding:18px 20px 16px 24px;
  border-color:#e3eaf2;
  border-radius:15px;
  box-shadow:0 8px 24px rgba(12,42,75,.055);
  text-align:left;
}
body:has(#tabs) #stats .stat::before{
  position:absolute;
  top:17px;
  bottom:17px;
  left:0;
  width:3px;
  border-radius:0 4px 4px 0;
  background:var(--blue);
  content:"";
}
body:has(#tabs) #stats .stat:nth-child(2)::before{background:#18835b}
body:has(#tabs) #stats .stat:nth-child(3)::before{background:#c68a13}
body:has(#tabs) #stats .stat strong{
  color:var(--navy);
  font-size:1.8rem;
  font-weight:800;
  letter-spacing:-.04em;
}
body:has(#tabs) #stats .stat span{
  color:var(--muted);
  font-size:.8rem;
  font-weight:650;
}
body:has(#tabs) .tabs{
  position:sticky;
  top:74px;
  z-index:10;
  display:flex;
  gap:6px;
  margin:0 0 18px;
  padding:7px;
  overflow-x:auto;
  border:1px solid #e4eaf1;
  border-radius:14px;
  background:rgba(255,255,255,.94);
  box-shadow:0 8px 22px rgba(12,42,75,.06);
  scrollbar-width:none;
}
body:has(#tabs) .tabs::-webkit-scrollbar{display:none}
body:has(#tabs) .tabs .btn{
  width:auto;
  min-width:max-content;
  min-height:40px;
  padding:9px 15px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#52667d;
  font-size:.86rem;
  font-weight:750;
}
body:has(#tabs) .tabs .btn[aria-selected="true"]{
  border-color:#d5e5f4;
  background:#edf5fc;
  color:var(--blue);
  box-shadow:inset 0 0 0 1px rgba(18,98,168,.035);
}
body:has(#tabs) main.container>.grid,
body:has(#tabs) main.container>[id^="panel-"]{
  margin-bottom:18px;
}
body:has(#tabs) .panel{
  min-width:0;
  border-color:#e2e9f1;
  border-radius:16px;
  box-shadow:0 8px 26px rgba(12,42,75,.055);
}
body:has(#tabs) .panel h2{
  margin:0 0 14px;
  color:var(--navy);
  font-size:1.12rem;
  letter-spacing:-.015em;
}
body:has(#tabs) .panel>p{
  color:var(--muted);
  font-size:.9rem;
}
body:has(#tabs) .panel .card{
  margin:10px 0;
  padding:16px 17px;
  border-color:#e6ecf3;
  border-radius:12px;
  box-shadow:none;
  line-height:1.6;
}
body:has(#tabs) .panel .card>strong{color:var(--navy)}
body:has(#tabs) .panel .card small{
  display:block;
  margin-top:7px;
  color:var(--muted);
}
body:has(#tabs) .panel .badge{margin:8px 8px 0 0}
body:has(#tabs) .panel .search{
  align-items:start;
  margin-top:14px;
}
body:has(#tabs) #contactForm .btn,
body:has(#tabs) #profileForm .btn{width:auto}
body:has(#tabs) footer.footer{
  margin-top:34px;
  padding:24px 0;
  background:#082c52;
  color:#dbe8f5;
  font-size:.84rem;
}

@media(max-width:850px){
  body:has(#tabs) .tabs{top:64px}
}
@media(max-width:600px){
  body:has(#tabs) main.container{width:calc(100% - 28px);max-width:520px}
  body:has(#tabs) main.container>.hero{
    margin:18px 0 14px;
    padding:25px 22px;
    border-radius:18px;
  }
  body:has(#tabs) .hero h1{font-size:clamp(1.75rem,8vw,2.25rem)}
  body:has(#tabs) .hero p{font-size:.9rem;line-height:1.55}
  body:has(#tabs) #stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin-bottom:16px;
  }
  body:has(#tabs) #stats .stat{
    min-height:82px;
    padding:13px 7px 12px 12px;
    border-radius:12px;
  }
  body:has(#tabs) #stats .stat::before{top:13px;bottom:13px}
  body:has(#tabs) #stats .stat strong{font-size:1.45rem}
  body:has(#tabs) #stats .stat span{font-size:.68rem;line-height:1.25}
  body:has(#tabs) .tabs{top:58px;gap:3px;padding:5px;border-radius:12px}
  body:has(#tabs) .tabs .btn{min-height:38px;padding:8px 11px;font-size:.79rem}
  body:has(#tabs) main.container>.grid{gap:12px}
  body:has(#tabs) .panel{padding:17px 15px}
  body:has(#tabs) .panel .search{grid-template-columns:minmax(0,1fr)}
  body:has(#tabs) .panel .search .btn{width:100%}
  body:has(#tabs) #contactForm .btn,
  body:has(#tabs) #profileForm .btn{width:100%}
}
@media(max-width:360px){
  body:has(#tabs) #stats{grid-template-columns:1fr}
  body:has(#tabs) #stats .stat{min-height:72px}
}

/* Espace étudiant : tableau de bord avec navigation dédiée */
.student-page{
  background:
    radial-gradient(ellipse at 92% 8%,rgba(210,229,248,.52),transparent 34rem),
    var(--page);
}
.student-page .student-main{width:min(1220px,calc(100% - 48px))}
.student-page .student-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:190px;
  margin:28px 0 18px;
  padding:32px 38px;
  border:1px solid rgba(255,255,255,.5);
  border-radius:22px;
  background:
    radial-gradient(ellipse at 90% 0%,rgba(255,255,255,.18),transparent 45%),
    linear-gradient(120deg,#082c52 0%,#105d9d 58%,#1974b5 100%);
  box-shadow:0 18px 42px rgba(8,44,82,.16);
}
.student-page .student-hero-copy{min-width:0}
.student-page .student-hero .eyebrow{
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.13);
  letter-spacing:.1em;
}
.student-page .student-hero h1{
  margin:14px 0 8px;
  font-size:clamp(2rem,4vw,2.7rem);
  letter-spacing:-.035em;
}
.student-page .student-hero p{
  max-width:620px;
  margin:0;
  color:#e3effa;
  font-size:.98rem;
}
.student-page .student-hero-action,
.student-page .student-content-action{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:0 17px;
  border:1px solid rgba(255,255,255,.4);
  border-radius:11px;
  background:linear-gradient(135deg,#ffd166,#f2b632);
  color:#172b42;
  font-size:.86rem;
  font-weight:800;
  box-shadow:0 8px 20px rgba(3,24,47,.16);
  transition:transform .18s ease,box-shadow .18s ease;
}
.student-page .student-hero-action:hover,
.student-page .student-content-action:hover{transform:translateY(-2px);box-shadow:0 11px 25px rgba(3,24,47,.22)}
.student-page #msg:empty{display:none}
.student-page #stats{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:0 0 20px;
}
.student-page #stats .stat{
  position:relative;
  min-height:96px;
  align-items:flex-start;
  padding:17px 20px 15px 24px;
  border-color:#e3eaf2;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(12,42,75,.055);
  text-align:left;
}
.student-page #stats .stat::before{
  position:absolute;
  top:16px;
  bottom:16px;
  left:0;
  width:3px;
  border-radius:0 4px 4px 0;
  background:var(--blue);
  content:"";
}
.student-page #stats .stat:nth-child(2)::before{background:#18835b}
.student-page #stats .stat:nth-child(3)::before{background:#c68a13}
.student-page #stats .stat strong{color:var(--navy);font-size:1.75rem;font-weight:800;letter-spacing:-.04em}
.student-page #stats .stat span{color:var(--muted);font-size:.8rem;font-weight:650}
.student-page .student-dashboard{
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
  align-items:start;
  gap:18px;
  margin-bottom:24px;
}
.student-page .student-sidebar{
  position:sticky;
  top:88px;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
  padding:16px 12px 12px;
  border:1px solid #e2e9f1;
  border-radius:16px;
  background:rgba(255,255,255,.94);
  box-shadow:0 8px 26px rgba(12,42,75,.055);
}
.student-page .student-sidebar-heading{padding:2px 8px 7px}
.student-page .student-sidebar-heading>span,
.student-page .student-content-kicker{
  display:block;
  color:#71849a;
  font-size:.65rem;
  font-weight:850;
  letter-spacing:.12em;
}
.student-page .student-sidebar-heading strong{display:block;margin-top:5px;color:var(--navy);font-size:1.05rem}
.student-page .student-sidebar-heading small{display:block;margin-top:2px;color:var(--muted);font-size:.72rem}
.student-page .tabs{
  position:static;
  display:grid;
  gap:4px;
  margin:0;
  padding:0;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.student-page .student-tab{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  width:100%;
  min-width:0;
  min-height:44px;
  padding:6px 9px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#52667d;
  text-align:left;
  font-size:.82rem;
  font-weight:720;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.student-page .student-tab:hover{background:#f4f7fb;color:var(--navy)}
.student-page .student-tab[aria-selected="true"]{
  border-color:#d8e7f5;
  background:#edf5fc;
  color:var(--blue);
}
.student-page .student-tab-icon{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:9px;
  background:#f0f4f8;
  color:#607890;
  font-size:.95rem;
}
.student-page .student-tab[aria-selected="true"] .student-tab-icon{background:#dcebf8;color:var(--blue)}
.student-page .student-tab-count{
  color:var(--blue);
  font-size:.72rem;
  font-weight:800;
}
.student-page .student-sidebar-help{
  margin-top:auto;
  padding:11px 9px 1px;
  border-top:1px solid #edf1f5;
}
.student-page .student-sidebar-help span{display:block;color:var(--muted);font-size:.7rem}
.student-page .student-sidebar-help a{display:inline-block;margin-top:4px;color:var(--blue);font-size:.77rem;font-weight:750}
.student-page .student-sidebar-help a span{display:inline;color:inherit}
.student-page .student-content{min-width:0}
.student-page .student-content-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:76px;
  margin:0 0 12px;
  padding:2px 3px;
}
.student-page .student-content-heading h2{margin:4px 0 3px;color:var(--navy);font-size:1.35rem;letter-spacing:-.025em}
.student-page .student-content-heading p{margin:0;color:var(--muted);font-size:.8rem}
.student-page .student-content-action{
  display:none;
  min-height:40px;
  padding:0 12px;
  border-color:#f2c65f;
  border-radius:9px;
  font-size:.78rem;
  box-shadow:none;
}
.student-page .student-panels{min-width:0}
.student-page .student-requests{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.student-page .student-panel,
.student-page .student-requests .panel,
.student-page .student-contact{
  min-width:0;
  border-color:#e2e9f1;
  border-radius:15px;
  box-shadow:0 8px 26px rgba(12,42,75,.055);
}
.student-page .student-panel h2,
.student-page .student-requests .panel h2,
.student-page .student-contact h2{
  margin:0 0 13px;
  color:var(--navy);
  font-size:1.06rem;
  letter-spacing:-.015em;
}
.student-page .student-panel>p,
.student-page .student-requests .panel>p,
.student-page .student-contact p{color:var(--muted);font-size:.86rem}
.student-page .student-panel .card,
.student-page .student-requests .card{
  margin:9px 0;
  padding:15px;
  border-color:#e6ecf3;
  border-radius:11px;
  box-shadow:none;
  line-height:1.6;
}
.student-page .student-panel .card>strong,
.student-page .student-requests .card>strong{color:var(--navy)}
.student-page .student-panel .card small,
.student-page .student-requests .card small{display:block;margin-top:7px;color:var(--muted)}
.student-page .student-panel .badge,
.student-page .student-requests .badge{margin:8px 8px 0 0}
.student-page .student-requests .search{grid-template-columns:minmax(0,1fr) auto;align-items:start;margin-top:13px}
.student-page .student-requests .search .btn{width:auto}
.student-page .student-contact{
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  align-items:start;
  gap:12px 28px;
  margin-top:16px;
  padding:20px;
}
.student-page .student-contact-copy h2{margin:5px 0}
.student-page .student-contact-copy p{max-width:360px;margin:0;line-height:1.55}
.student-page #contactForm{display:grid;grid-template-columns:1fr;gap:8px}
.student-page #contactForm label{margin:0;color:var(--ink);font-size:.79rem}
.student-page #contactForm input,
.student-page #contactForm textarea{margin-top:5px}
.student-page #contactForm textarea{min-height:82px}
.student-page #contactForm .btn{width:auto;justify-self:start}
.student-page #contactMsg{grid-column:2}
.student-page #profileForm{gap:12px}
.student-page #profileForm .btn{width:auto}
.student-page footer.footer{margin-top:12px;padding:23px 0;background:#082c52;color:#dbe8f5;font-size:.82rem}
.student-page #logout{color:#29435e}
@media(max-width:900px){
  .student-page .student-dashboard{grid-template-columns:1fr;gap:14px}
  .student-page .student-sidebar{position:static;gap:10px;padding:12px}
  .student-page .student-sidebar-heading{display:none}
  .student-page .tabs{
    display:flex;
    gap:6px;
    overflow-x:auto;
    padding:0 0 2px;
    scrollbar-width:thin;
  }
  .student-page .student-tab{
    display:flex;
    flex:0 0 auto;
    gap:7px;
    width:auto;
    min-height:42px;
    padding:5px 9px;
    white-space:nowrap;
  }
  .student-page .student-tab-icon{width:30px;height:30px}
  .student-page .student-sidebar-help{display:none}
  .student-page .student-content-heading{min-height:64px}
}
@media(max-width:600px){
  .student-page .student-main{width:calc(100% - 28px);max-width:560px}
  .student-page .student-hero{min-height:0;margin:17px 0 13px;padding:23px 20px;border-radius:17px}
  .student-page .student-hero h1{margin:11px 0 6px;font-size:clamp(1.7rem,8vw,2.15rem)}
  .student-page .student-hero p{font-size:.84rem;line-height:1.5}
  .student-page .student-hero-action{display:none}
  .student-page #stats{gap:7px;margin-bottom:13px}
  .student-page #stats .stat{min-height:75px;padding:11px 5px 10px 11px;border-radius:11px}
  .student-page #stats .stat::before{top:12px;bottom:12px}
  .student-page #stats .stat strong{font-size:1.35rem}
  .student-page #stats .stat span{font-size:.64rem;line-height:1.2}
  .student-page .student-dashboard{gap:10px;margin-bottom:17px}
  .student-page .student-sidebar{padding:8px;border-radius:12px}
  .student-page .student-tab{min-height:38px;padding:4px 7px;font-size:.74rem}
  .student-page .student-tab-icon{width:27px;height:27px;font-size:.83rem}
  .student-page .student-content-heading{align-items:center;min-height:0;margin:0 0 10px}
  .student-page .student-content-heading h2{font-size:1.15rem}
  .student-page .student-content-heading p{max-width:260px;font-size:.72rem;line-height:1.4}
  .student-page .student-content-action{display:inline-flex;width:38px;min-width:38px;min-height:38px;padding:0;font-size:1.15rem}
  .student-page .student-content-action span{display:none}
  .student-page .student-requests{grid-template-columns:minmax(0,1fr);gap:10px}
  .student-page .student-requests .panel,
  .student-page .student-panel{padding:16px 14px;border-radius:13px}
  .student-page .student-requests .search{grid-template-columns:minmax(0,1fr)}
  .student-page .student-requests .search .btn{width:100%}
  .student-page .student-contact{grid-template-columns:minmax(0,1fr);gap:13px;margin-top:11px;padding:16px 14px}
  .student-page #contactForm .btn,
  .student-page #profileForm .btn{width:100%}
  .student-page #contactMsg{grid-column:1}
  .student-page footer.footer{margin-top:0;padding:19px 0}
}
@media(max-width:360px){
  .student-page #stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .student-page .student-tab{gap:5px;padding-inline:6px;font-size:.69rem}
}
