/* GO SVT Maroc — visual refresh for student and teacher spaces */
:root{
  --gs-visual-ink:#17352b;
  --gs-visual-green:#176b4b;
  --gs-visual-mint:#e9f6ef;
  --gs-visual-gold:#f3c969;
}
body{background:#f4f8f5}
.header{background:linear-gradient(105deg,rgba(12,63,48,.97),rgba(30,111,76,.92))}
.logo h1{letter-spacing:-.035em}
.main-nav a{border-radius:999px}
.hero{
  position:relative;isolation:isolate;overflow:hidden;
  background-image:linear-gradient(90deg,rgba(8,48,37,.91),rgba(13,83,57,.76)),url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?auto=format&fit=crop&w=2000&q=85');
  background-size:cover;background-position:center 42%;
  min-height:390px;display:flex;align-items:center
}
.hero .container{position:relative;z-index:1}
.hero h2{text-shadow:0 2px 18px rgba(0,0,0,.2)}
.hero p{max-width:760px;margin-inline:auto}
.hero-buttons .btn{border-radius:999px;box-shadow:0 8px 24px rgba(0,0,0,.14)}
.features{background:linear-gradient(180deg,#fff,#f1f8f3)}
.feature-grid{gap:1.25rem}
.feature-card{
  position:relative;overflow:hidden;text-align:start;
  border:1px solid #e2eee6;border-radius:20px;padding:1.5rem;
  background:linear-gradient(145deg,#fff 55%,#f1f8f3);
  box-shadow:0 10px 28px rgba(27,76,51,.07)
}
.feature-card:after{content:"";position:absolute;inset:auto -22px -38px auto;width:120px;height:120px;border-radius:50%;background:rgba(63,153,105,.08)}
.feature-icon{
  display:grid;place-items:center;width:64px;height:64px;border-radius:19px;
  background:linear-gradient(145deg,#e0f4e8,#f5fbf6);font-size:2.35rem;
  box-shadow:inset 0 0 0 1px rgba(42,120,78,.08)
}
.feature-card h3{font-size:1.15rem}
.section-title{font-weight:800;letter-spacing:-.025em}
.content-card{border:1px solid #e6eee8;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(27,76,51,.06)}
.content-card:hover{transform:translateY(-4px);box-shadow:0 15px 32px rgba(27,76,51,.12)}
.tab-btn,.level-tab-btn{border-radius:999px}
#student-space>.container>.section-title{margin-bottom:1.25rem}
#student-space .student-space{
  max-width:1320px!important;margin:0 auto!important;padding:clamp(1rem,2.5vw,2rem)!important;
  border:1px solid #e0ece4!important;border-radius:26px!important;
  background:linear-gradient(160deg,#fff 0%,#f4faf6 100%)!important;
  box-shadow:0 18px 48px rgba(22,75,49,.09)!important
}
#student-space .dashboard-header{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  border-radius:22px!important;padding:clamp(1.5rem,4vw,2.6rem)!important;
  color:#fff!important;
  background-image:linear-gradient(100deg,rgba(7,55,40,.92),rgba(19,104,70,.75)),url('https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?auto=format&fit=crop&w=1600&q=85')!important;
  background-size:cover!important;background-position:center!important;
  box-shadow:0 14px 32px rgba(17,79,52,.18)!important
}
#student-space .dashboard-header h2,#student-space .dashboard-header h3{color:#fff!important}
#student-space .space-tab{
  border-radius:14px!important;border:1px solid #e0ebe3!important;
  background:#fff!important;color:#28513c!important;font-weight:700!important;
  transition:transform .2s ease,box-shadow .2s ease!important
}
#student-space .space-tab.active{
  color:#fff!important;background:linear-gradient(135deg,#176b4b,#31966a)!important;
  box-shadow:0 8px 20px rgba(23,107,75,.2)!important
}
#student-space .space-tab:hover{transform:translateY(-2px)!important}
#student-space .space-panel{border-radius:18px!important}
#student-space .dashboard-grid>*,#student-space .stat-card,#student-space .dashboard-card{
  border-radius:18px!important;box-shadow:0 8px 22px rgba(25,75,49,.07)!important
}
#gs-classroom{
  border:1px solid #dcebe1!important;border-radius:24px!important;
  background:linear-gradient(160deg,#fff,#f4faf6)!important;
  box-shadow:0 16px 42px rgba(22,75,49,.09)!important
}
#gs-classroom .gs-cl-head{
  position:relative;isolation:isolate;overflow:hidden;
  margin:-.15rem -.15rem 1.2rem;padding:1.5rem;border-radius:18px;
  color:#fff;background-image:linear-gradient(100deg,rgba(8,57,42,.93),rgba(26,111,75,.78)),url('https://images.unsplash.com/photo-1576086213369-97a306d36557?auto=format&fit=crop&w=1500&q=85');
  background-size:cover;background-position:center 44%
}
#gs-classroom .gs-cl-head h3,#gs-classroom .gs-cl-head p{color:#fff!important}
#gs-classroom .gs-cl-head .gs-cl-tag{background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.3)}
#gs-classroom .gs-cl-head button{background:#fff!important;color:#17583d!important}
#gs-classroom .gs-cl-card{
  border:1px solid #e0ebe3!important;border-radius:18px!important;
  background:rgba(255,255,255,.88)!important;
  box-shadow:0 8px 22px rgba(25,75,49,.055)!important;
  transition:transform .2s ease,box-shadow .2s ease
}
#gs-classroom .gs-cl-card:hover{box-shadow:0 13px 28px rgba(25,75,49,.1)!important}
#gs-classroom .gs-cl-card h3{display:flex;align-items:center;gap:.55rem;color:#1d6245!important}
#gs-classroom .gs-cl-row{border:1px solid #e4eee7;background:linear-gradient(120deg,#f4faf6,#fff)!important;border-radius:13px!important}
#gs-classroom button{border-radius:12px;background:linear-gradient(135deg,#176b4b,#31966a);box-shadow:0 5px 14px rgba(23,107,75,.13)}
#gs-classroom button.gs-cl-secondary{background:#e8f5ed!important;color:#1d6245!important;box-shadow:none}
#gs-classroom input,#gs-classroom select,#gs-classroom textarea{border-radius:12px!important;border-color:#d6e5da!important}
#gs-classroom :focus-visible,#student-space :focus-visible{outline-color:#e0ad3c!important}
@media(max-width:700px){
 .hero{min-height:340px;background-position:58% center;padding:3rem 0}
 .hero h2{font-size:clamp(1.8rem,7vw,2.5rem)}
 .feature-card{text-align:center}
 .feature-icon{margin-inline:auto}
 #student-space .dashboard-header{background-position:60% center!important}
 #gs-classroom .gs-cl-head{padding:1rem}
}
@media(prefers-reduced-motion:reduce){
 .feature-card,.content-card,#student-space .space-tab,#gs-classroom .gs-cl-card{transition:none!important}
}

/* Header refinement: balanced desktop layout and clean mobile menu */
.header{padding:.65rem 0}
.header .container{
 display:grid;grid-template-columns:minmax(220px,auto) minmax(0,1fr) auto;
 grid-template-areas:"brand brand actions" "nav nav nav";
 align-items:center;gap:.45rem 1rem
}
.header .logo{grid-area:brand;min-width:0}
.header .logo h1{font-size:clamp(1.25rem,2vw,1.65rem)}
.header .logo p{white-space:normal}
.header-actions{grid-area:actions;justify-self:end}
.main-nav{grid-area:nav;min-width:0;width:100%}
.main-nav>ul{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.25rem .4rem}
.main-nav>ul>li{min-width:0}
.main-nav a,.nav-more-btn{
 display:inline-flex;align-items:center;justify-content:center;min-height:38px;
 padding:.35rem .7rem;font-size:.9rem;line-height:1.35;white-space:nowrap
}
.main-nav a{border-radius:999px}
.main-nav a:hover,.main-nav a.active,.nav-more.open>.nav-more-btn{background:rgba(255,255,255,.17)}
.nav-more-btn{border-radius:999px}
@media(max-width:768px){
 .header{padding:.55rem 0}
 .header .container{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
 .header .logo{flex:1 1 auto;min-width:0}
 .header .logo h1{font-size:clamp(1.05rem,4.2vw,1.3rem)}
 .header .logo p{font-size:.72rem}
 .header-actions{flex:0 0 auto;gap:.45rem}
 .mobile-menu-btn{display:flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;border:1px solid rgba(255,255,255,.35);border-radius:11px}
 .main-nav{top:100%;left:0;right:0;width:100%;max-height:min(72vh,560px);overflow-y:auto;padding:.8rem max(16px,calc((100vw - 680px)/2));border-top:1px solid rgba(255,255,255,.16);border-radius:0 0 16px 16px}
 .main-nav>ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:.45rem}
 .main-nav>ul>li{min-width:0}
 .main-nav a{display:flex;width:100%;min-height:42px;padding:.55rem .4rem;white-space:normal;text-align:center;overflow-wrap:anywhere;border-radius:10px;font-size:.88rem}
 .nav-more-btn{display:none}
 .nav-more,.main-nav .nav-submenu{display:contents}
 .main-nav .nav-submenu a{color:#fff;background:rgba(255,255,255,.1)}
}
@media(max-width:380px){
 .header .logo p{display:none}
 .lang-switcher{padding:.35rem .65rem}
 .main-nav>ul{grid-template-columns:1fr 1fr}
}


/* Responsive header layout: keep branding, navigation and actions readable. */
.header{
  position:sticky;
  top:0;
  z-index:1000;
}
.header .container{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  column-gap:clamp(.75rem,1.8vw,1.5rem);
  row-gap:.65rem;
}
.header .logo{
  flex:0 0 auto;
  min-width:max-content;
}
.header .main-nav{
  flex:1 1 520px;
  min-width:0;
}
.header .main-nav>ul{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:.25rem .45rem;
}
.header .main-nav>ul>li{
  min-width:0;
}
.header .main-nav>ul>li>a,
.header .main-nav .nav-more-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:.4rem .7rem;
  white-space:nowrap;
  font-size:.92rem;
}
.header .header-actions{
  flex:0 0 auto;
  margin-inline-start:auto;
}
.header .main-nav .nav-submenu{
  z-index:1002;
}
@media(max-width:900px) and (min-width:769px){
  .header .container{
    justify-content:center;
  }
  .header .logo{
    margin-inline-end:auto;
  }
  .header .header-actions{
    margin-inline-start:0;
  }
  .header .main-nav{
    order:3;
    flex:1 0 100%;
    width:100%;
  }
  .header .main-nav>ul{
    justify-content:center;
  }
}
@media(max-width:768px){
  .header .container{
    flex-wrap:nowrap;
    justify-content:space-between;
    gap:.5rem;
  }
  .header .logo{
    min-width:0;
  }
  .header .logo h1{
    font-size:clamp(1.05rem,4.6vw,1.45rem);
    line-height:1.25;
  }
  .header .logo p{
    font-size:clamp(.68rem,2.8vw,.82rem);
  }
  .header .header-actions{
    margin-inline-start:0;
    gap:.45rem;
  }
  .header .lang-switcher{
    padding:.4rem .65rem;
    font-size:.8rem;
  }
  .header .main-nav{
    max-height:calc(100dvh - 82px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .header .main-nav.active>ul{
    align-items:stretch;
    gap:.35rem;
  }
  .header .main-nav.active>ul>li,
  .header .main-nav.active>ul>li>a,
  .header .main-nav.active .nav-more-btn{
    width:100%;
  }
}
@media(max-width:360px){
  .header .logo h1{font-size:1rem}
  .header .logo p{font-size:.65rem}
  .header .lang-switcher{padding:.35rem .5rem}
}


/* Student dashboard — clearer learning hierarchy and tactile cards */
#student-space .gs-student-welcome{
  display:flex;align-items:center;justify-content:space-between;gap:1.5rem;
  margin:1.25rem 0;padding:clamp(1.25rem,3vw,2rem);
  border:1px solid #dcece2;border-radius:22px;
  background:radial-gradient(circle at 90% 10%,rgba(116,190,143,.18),transparent 34%),linear-gradient(125deg,#f0faf3,#fff 68%);
  box-shadow:0 12px 30px rgba(24,82,52,.07)
}
#student-space .gs-welcome-copy{min-width:0}
#student-space .gs-welcome-copy h2{margin:.45rem 0 .65rem;color:#174d36;font-size:clamp(1.35rem,2.7vw,2rem);line-height:1.35}
#student-space .gs-welcome-copy p{max-width:760px;color:#587365;line-height:1.85;margin:0}
#student-space .gs-eyebrow{display:inline-flex;align-items:center;gap:.4rem;color:#39815b;font-size:.72rem;font-weight:800;letter-spacing:.09em}
#student-space .gs-welcome-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
#student-space .gs-welcome-tags span{padding:.4rem .75rem;border:1px solid #dcece2;border-radius:999px;background:rgba(255,255,255,.8);color:#35654a;font-size:.82rem;font-weight:700}
#student-space .gs-primary-link{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;flex:0 0 auto;padding:.85rem 1.2rem;border-radius:999px;background:linear-gradient(135deg,#176b4b,#31966a);color:#fff!important;font-weight:800;text-decoration:none;box-shadow:0 8px 20px rgba(23,107,75,.2);transition:transform .2s,box-shadow .2s}
#student-space .gs-primary-link:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(23,107,75,.25)}
#student-space .gs-learning-path{margin:1.25rem 0;padding:clamp(1rem,2.5vw,1.5rem);border:1px solid #e0ece4;border-radius:22px;background:linear-gradient(145deg,#fff,#f6fbf7);box-shadow:0 10px 26px rgba(24,82,52,.055)}
#student-space .gs-path-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
#student-space .gs-path-heading h3{margin:.3rem 0 0;color:#204f38;font-size:1.15rem}
#student-space .gs-path-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:#e6f5eb;color:#28764e}
#student-space .gs-path-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
#student-space .gs-path-steps>a{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;min-width:0;padding:1rem;border:1px solid #e2eee6;border-radius:16px;background:#fff;color:#28533d;text-decoration:none;transition:transform .2s,border-color .2s,box-shadow .2s}
#student-space .gs-path-steps>a:hover{transform:translateY(-3px);border-color:#a8d4b7;box-shadow:0 10px 22px rgba(24,82,52,.09)}
#student-space .gs-path-steps strong{font-size:.94rem}
#student-space .gs-path-steps small{color:#718579;line-height:1.5}
#student-space .gs-quick-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem;margin:0 0 1.5rem}
#student-space .gs-quick-links>a{display:flex;align-items:center;gap:.7rem;padding:.9rem 1rem;border:1px solid #e0ece4;border-radius:15px;background:#fff;color:#28533d;font-weight:750;text-decoration:none;box-shadow:0 5px 15px rgba(24,82,52,.045);transition:transform .18s,border-color .18s,box-shadow .18s}
#student-space .gs-quick-links>a:hover{transform:translateY(-2px);border-color:#abd6b9;box-shadow:0 9px 20px rgba(24,82,52,.09)}
#student-space .gs-quick-links>a>span{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#eaf6ee;color:#23734c}
#student-space .dashboard-grid{gap:1rem}
#student-space .stat-card{position:relative;overflow:hidden;border:1px solid #e0ece4!important;background:linear-gradient(145deg,#fff,#f7fbf8)!important;transition:transform .2s,box-shadow .2s}
#student-space .stat-card:hover{transform:translateY(-3px);box-shadow:0 13px 26px rgba(25,75,49,.11)!important}
#student-space .stat-value{color:#176b4b;font-weight:850;font-variant-numeric:tabular-nums}
#student-space .space-nav{display:flex!important;align-items:center;justify-content:flex-start;gap:.5rem;flex-wrap:wrap;margin:0 0 1.15rem;padding:.55rem;border:1px solid #e1ece5;border-radius:14px;background:rgba(246,251,247,.9)}
 #student-space .space-tab{display:inline-flex;flex:0 1 auto;align-items:center;justify-content:center;gap:.35rem;min-width:0;min-height:40px;width:auto;padding:.55rem .9rem!important;border:1px solid #dce7dd;border-radius:10px;background:#fff;color:#365847;font-size:.9rem;line-height:1.35;white-space:nowrap;box-shadow:0 2px 6px rgba(20,55,43,.06)}
 #student-space .space-tab.active{background:linear-gradient(120deg,#236b43,#174c35);border-color:#236b43;color:#fff}
 #student-space .space-panel[hidden]{display:none!important}
 #student-space .space-panel:not([hidden]){display:block}
#student-space .gs-plan-item,#student-space .gs-note-card{border:1px solid #e1ece5;border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(24,82,52,.05);transition:transform .18s,box-shadow .18s}
#student-space .gs-plan-item:hover,#student-space .gs-note-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(24,82,52,.09)}
#student-space .gs-plan-item.is-done{background:#f2faf4;border-color:#cce7d4}
#student-space .gs-plan-item.is-overdue{border-inline-start:4px solid #d99a4a}
#student-space .gs-note-heading{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
#student-space .gs-note-card p{color:#526c5d;line-height:1.8;overflow-wrap:anywhere}
#student-space .gs-section-title{margin:1.5rem 0 .85rem;color:#204f38}
#gs-classroom .gs-cl-grid{gap:1rem}
#gs-classroom .gs-cl-card{position:relative;overflow:hidden}
#gs-classroom .gs-cl-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#238052,#9bcfac);opacity:.8}
#gs-classroom .gs-cl-row{transition:background .18s,border-color .18s}
#gs-classroom .gs-cl-row:hover{border-color:#b8d9c3;background:#f0f8f2!important}
#gs-classroom .gs-cl-pill{border-radius:999px}
#gs-classroom button{transition:transform .18s,box-shadow .18s,filter .18s}
#gs-classroom button:hover{transform:translateY(-1px);filter:brightness(1.04)}
#gs-classroom button:active{transform:translateY(0)}
@media(max-width:820px){
  #student-space .gs-path-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  #student-space .gs-student-welcome{align-items:flex-start;flex-direction:column}
}
@media(max-width:520px){
  #student-space .gs-path-steps{grid-template-columns:1fr 1fr;gap:.55rem}
  #student-space .gs-path-steps>a{padding:.75rem}
  #student-space .gs-quick-links{grid-template-columns:1fr 1fr}
  #student-space .space-nav{display:flex!important;flex-wrap:wrap;gap:.4rem;padding:.45rem}
   #student-space .space-tab{flex:0 1 auto;min-height:38px;padding:.5rem .65rem!important;font-size:.82rem;white-space:normal}
}
@media(prefers-reduced-motion:reduce){
  #student-space .gs-primary-link,#student-space .gs-path-steps>a,#student-space .gs-quick-links>a,
  #student-space .stat-card,#student-space .gs-plan-item,#student-space .gs-note-card,
  #gs-classroom .gs-cl-row,#gs-classroom button{transition:none!important}
}



/* Learning library refinement — clear, consistent resource cards */
.content-grid{
 display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr));
 align-items:stretch;gap:1.1rem
}
.content-grid>.content-card{
 display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:100%;
 position:relative;padding:1.15rem;border:1px solid #e0ebe3;border-radius:19px;
 background:linear-gradient(155deg,#fff 0%,#f8fcf9 100%);
 box-shadow:0 8px 22px rgba(25,75,49,.055);
 transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease
}
.content-grid>.content-card:hover{
 transform:translateY(-4px);border-color:#b8d9c3;
 box-shadow:0 15px 30px rgba(25,75,49,.11)
}
.content-grid>.content-card:focus-within{
 outline:3px solid rgba(49,150,106,.25);outline-offset:2px
}
.content-grid>.content-card .file-icon{
 display:grid;place-items:center;width:54px;height:54px;margin:.35rem 0 .8rem;
 border:1px solid #e0efe5;border-radius:16px;background:#edf7f0;
 font-size:1.8rem
}
.content-grid>.content-card h3{
 margin:.15rem 0 .45rem;color:#214f38;font-size:1rem;line-height:1.6;
 overflow-wrap:anywhere
}
.content-grid>.content-card .file-name{
 margin:0 0 1rem;color:#78877d;font-size:.78rem;line-height:1.55;
 overflow-wrap:anywhere
}
.content-grid>.content-card .level-badge{
 align-self:flex-start;max-width:100%;padding:.3rem .65rem;border:1px solid #dcece2;
 border-radius:999px;background:#f0f8f2;color:#34704c;font-size:.72rem;font-weight:750;
 overflow-wrap:anywhere
}
.content-grid>.content-card .new-badge{
 position:absolute;top:.8rem;inset-inline-end:.8rem;padding:.25rem .55rem;
 border-radius:999px;background:#fff3d8;color:#93631c;font-size:.7rem;font-weight:800
}
.content-grid>.content-card .card-actions{
 display:flex;flex-wrap:wrap;gap:.55rem;margin-top:auto;padding-top:.75rem
}
.content-grid>.content-card .card-actions a,
.content-grid>.content-card .card-actions button{
 display:inline-flex;align-items:center;justify-content:center;gap:.35rem;
 min-height:40px;flex:1 1 105px;padding:.55rem .75rem;border-radius:11px;
 font-size:.84rem;font-weight:750;text-decoration:none
}
.content-grid>.content-card .download-btn{
 border:1px solid #176b4b;background:linear-gradient(135deg,#176b4b,#31966a);color:#fff
}
.content-grid>.content-card .preview-btn{
 border:1px solid #d9e9df;background:#edf7f0;color:#246342
}
.content-grid>.content-card .download-btn:hover,
.content-grid>.content-card .preview-btn:hover{filter:brightness(1.04);transform:translateY(-1px)}
.content-grid>.files-count{
 grid-column:1/-1;display:flex;align-items:center;gap:.5rem;margin:0 0 .2rem;
 color:#587465;font-size:.88rem;font-weight:750
}
.content-grid>.no-files,
.content-grid>.loading,
.content-grid>.error{
 grid-column:1/-1;margin:0;padding:1.4rem;border:1px dashed #cbded1;
 border-radius:16px;background:#f7fbf8;color:#597363;text-align:center;line-height:1.8
}
.gs-group-title{
 display:flex;align-items:center;gap:.55rem;margin:1.5rem 0 .85rem;
 padding-inline-start:.75rem;border-inline-start:4px solid #72b58b;
 color:#245b3d;font-size:1.1rem;font-weight:850
}
@media(max-width:640px){
 .content-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
 .content-grid>.content-card{padding:.8rem;border-radius:15px}
 .content-grid>.content-card .file-icon{width:44px;height:44px;font-size:1.5rem}
 .content-grid>.content-card h3{font-size:.9rem}
 .content-grid>.content-card .file-name{font-size:.7rem}
 .content-grid>.content-card .card-actions{flex-direction:column}
 .content-grid>.content-card .card-actions a,
 .content-grid>.content-card .card-actions button{width:100%;flex-basis:auto}
}
@media(max-width:360px){
 .content-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
 .content-grid>.content-card,.content-grid>.content-card .card-actions a,
 .content-grid>.content-card .card-actions button{transition:none}
}



/* Search filters: compact, accessible and responsive */
.gs-search-filters{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;
 margin:.85rem 0 1rem
}
.gs-search-filters select{
 width:100%;min-width:0;min-height:44px;padding:.65rem .8rem;
 border:1px solid #d8e8dd;border-radius:12px;background:#f8fcf9;
 color:#24533a;font:inherit;font-size:.9rem
}
.gs-search-filters select:focus-visible{
 outline:3px solid rgba(49,150,106,.25);outline-offset:2px;border-color:#31966a
}
.gs-search-count{
 margin:.3rem 0 .85rem;color:#397653;font-size:.85rem;font-weight:800
}
#gs-search-results .content-grid{
 display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:.75rem
}
@media(max-width:560px){
 .gs-search-filters{grid-template-columns:1fr}
 #gs-search-results .content-grid{grid-template-columns:1fr}
}


/* GO SVT Maroc — photographic student dashboard and genuine SVG iconography */
#student-space .gs-student-welcome{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  min-height:250px!important;padding:clamp(1.5rem,4vw,2.6rem)!important;
  border:1px solid rgba(255,255,255,.18)!important;border-radius:24px!important;
  color:#fff!important;
  background-image:
    linear-gradient(100deg,rgba(5,39,32,.96) 0%,rgba(9,70,52,.88) 53%,rgba(10,62,48,.48) 100%),
    url('https://images.unsplash.com/photo-1576086213369-97a306d36557?auto=format&fit=crop&w=1800&q=88')!important;
  background-size:cover!important;background-position:center 44%!important;
  box-shadow:0 18px 42px rgba(8,54,39,.22)!important
}
#student-space .gs-student-welcome:after{
  content:""!important;position:absolute!important;z-index:-1!important;
  inset:0 0 0 auto!important;width:min(42%,420px)!important;
  background:linear-gradient(90deg,rgba(7,55,41,0),rgba(7,55,41,.08)),
    url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?auto=format&fit=crop&w=900&q=85') center/cover!important;
  opacity:.34!important;mix-blend-mode:screen!important;pointer-events:none!important
}
#student-space .gs-student-welcome .gs-welcome-copy,
#student-space .gs-student-welcome .gs-primary-link{position:relative!important;z-index:1!important}
#student-space .gs-student-welcome .gs-eyebrow{color:#c5f3d5!important}
#student-space .gs-student-welcome h2{color:#fff!important;text-shadow:0 2px 16px rgba(0,0,0,.2)}
#student-space .gs-student-welcome p{color:rgba(255,255,255,.9)!important}
#student-space .gs-welcome-tags span{
  color:#f4fff7!important;background:rgba(255,255,255,.13)!important;
  border-color:rgba(255,255,255,.3)!important;backdrop-filter:blur(8px)
}
#student-space .gs-primary-link{
  border:1px solid rgba(255,255,255,.35)!important;
  background:linear-gradient(135deg,#159765,#08744f)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.2)!important
}

/* SVG masks replace decorative emoji glyphs without changing labels or actions. */
#student-space .gs-path-icon,
#student-space .gs-quick-links>a>span,
#student-space .stat-icon{
  display:inline-grid!important;place-items:center!important;
  color:#19724d!important;font-size:0!important;line-height:1!important
}
#student-space .gs-path-icon:before,
#student-space .gs-quick-links>a>span:before,
#student-space .stat-icon:before{
  content:"";display:block;width:25px;height:25px;background:currentColor;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain
}
#student-space .gs-path-steps>a:nth-child(1) .gs-path-icon:before,
#student-space .gs-quick-links>a:nth-child(1)>span:before,
#student-space .stat-card:nth-child(1) .stat-icon:before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E")
}
#student-space .gs-path-steps>a:nth-child(2) .gs-path-icon:before,
#student-space .gs-quick-links>a:nth-child(2)>span:before,
#student-space .stat-card:nth-child(2) .stat-icon:before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E")
}
#student-space .gs-path-steps>a:nth-child(3) .gs-path-icon:before,
#student-space .gs-quick-links>a:nth-child(3)>span:before,
#student-space .stat-card:nth-child(3) .stat-icon:before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 2-3 8h7L9 22l3-9H5l9-11Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 2-3 8h7L9 22l3-9H5l9-11Z'/%3E%3C/svg%3E")
}
#student-space .gs-path-steps>a:nth-child(4) .gs-path-icon:before,
#student-space .gs-quick-links>a:nth-child(4)>span:before,
#student-space .stat-card:nth-child(4) .stat-icon:before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10l4 4v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2Z'/%3E%3Cpath d='M14 4v5h5M8 13h8M8 9h2'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10l4 4v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2Z'/%3E%3Cpath d='M14 4v5h5M8 13h8M8 9h2'/%3E%3C/svg%3E")
}
#student-space .stat-card:nth-child(5) .stat-icon:before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18M8 15l4-4 3 3 5-7'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18M8 15l4-4 3 3 5-7'/%3E%3C/svg%3E")
}
#student-space .stat-card:nth-child(6) .stat-icon:before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E")
}
#student-space .gs-path-icon{width:46px;height:46px;border-radius:15px;background:linear-gradient(145deg,#e4f5ea,#f7fcf8);box-shadow:inset 0 0 0 1px #d9ebdf}
#student-space .gs-quick-links>a>span{width:42px;height:42px;flex:0 0 42px;border-radius:13px;background:linear-gradient(145deg,#e3f5e9,#f7fcf8)}
#student-space .stat-icon{width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#e4f5ea,#f7fcf8)}
#student-space .stat-icon:before{width:24px;height:24px}
#student-space .gs-path-steps>a:hover .gs-path-icon,
#student-space .gs-quick-links>a:hover>span{color:#fff!important;background:linear-gradient(135deg,#176b4b,#31966a)!important}
@media(max-width:600px){
  #student-space .gs-student-welcome{min-height:220px!important;background-position:58% center!important}
  #student-space .gs-student-welcome:after{width:38%!important;opacity:.22!important}
}
@media(prefers-reduced-motion:reduce){
  #student-space .gs-path-steps>a:hover .gs-path-icon,
  #student-space .gs-quick-links>a:hover>span{transition:none!important}
}


/* Photographic subject cards for the student quick-access library */
#student-space .gs-quick-links>a{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  min-height:112px;padding:1rem!important;border:1px solid rgba(255,255,255,.24)!important;
  border-radius:17px!important;color:#fff!important;
  background-position:center!important;background-size:cover!important;
  box-shadow:0 9px 22px rgba(17,65,43,.13)!important;
  text-shadow:0 1px 5px rgba(0,0,0,.35)
}
#student-space .gs-quick-links>a:after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(110deg,rgba(5,43,31,.88),rgba(7,58,42,.42))
}
#student-space .gs-quick-links>a:nth-child(1){
  background-image:url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6?auto=format&fit=crop&w=760&q=82')!important
}
#student-space .gs-quick-links>a:nth-child(2){
  background-image:url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?auto=format&fit=crop&w=760&q=82')!important
}
#student-space .gs-quick-links>a:nth-child(3){
  background-image:url('https://images.unsplash.com/photo-1576086213369-97a306d36557?auto=format&fit=crop&w=760&q=82')!important
}
#student-space .gs-quick-links>a:nth-child(4){
  background-image:url('https://images.unsplash.com/photo-1581093458791-9d15482442f4?auto=format&fit=crop&w=760&q=82')!important
}
#student-space .gs-quick-links>a:nth-child(5){
  background-image:url('https://images.unsplash.com/photo-1518837695005-2083093ee35b?auto=format&fit=crop&w=760&q=82')!important
}
#student-space .gs-quick-links>a>span{
  position:relative;z-index:1;color:#fff!important;
  background:rgba(255,255,255,.17)!important;
  border:1px solid rgba(255,255,255,.35)!important;
  box-shadow:0 3px 12px rgba(0,0,0,.12);
  backdrop-filter:blur(7px)
}
#student-space .gs-quick-links>a:hover{
  transform:translateY(-3px)!important;
  border-color:rgba(255,255,255,.65)!important;
  box-shadow:0 14px 28px rgba(17,65,43,.2)!important;
  filter:saturate(1.12)
}
#student-space .gs-quick-links>a:focus-visible{
  outline:3px solid #8dd9ac!important;outline-offset:3px
}
@media(max-width:520px){
  #student-space .gs-quick-links>a{min-height:96px;padding:.75rem!important;gap:.55rem}
}
@media(prefers-reduced-motion:reduce){
  #student-space .gs-quick-links>a{transition:none!important}
}


/* Visual learning journey: four photographic milestones with readable overlays */
#student-space .gs-path-steps>a{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  min-height:154px;padding:1rem!important;border:1px solid rgba(255,255,255,.25)!important;
  border-radius:18px!important;color:#fff!important;background-position:center!important;
  background-size:cover!important;box-shadow:0 9px 22px rgba(15,61,40,.13)!important
}
#student-space .gs-path-steps>a:before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(155deg,rgba(4,38,28,.78),rgba(5,54,39,.62) 58%,rgba(5,38,29,.84))
}
#student-space .gs-path-steps>a:nth-child(1){
  background-image:url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6?auto=format&fit=crop&w=760&q=85')!important
}
#student-space .gs-path-steps>a:nth-child(2){
  background-image:url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=760&q=85')!important
}
#student-space .gs-path-steps>a:nth-child(3){
  background-image:url('https://images.unsplash.com/photo-1576086213369-97a306d36557?auto=format&fit=crop&w=760&q=85')!important
}
#student-space .gs-path-steps>a:nth-child(4){
  background-image:url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?auto=format&fit=crop&w=760&q=85')!important
}
#student-space .gs-path-steps>a .gs-path-icon{
  position:relative;z-index:1;color:#fff!important;
  background:rgba(255,255,255,.17)!important;border:1px solid rgba(255,255,255,.34)!important;
  box-shadow:0 3px 12px rgba(0,0,0,.14);backdrop-filter:blur(7px)
}
#student-space .gs-path-steps>a strong,
#student-space .gs-path-steps>a small{position:relative;z-index:1;color:#fff!important}
#student-space .gs-path-steps>a small{color:rgba(255,255,255,.86)!important}
#student-space .gs-path-steps>a:hover{
  transform:translateY(-4px)!important;border-color:rgba(255,255,255,.72)!important;
  box-shadow:0 16px 30px rgba(15,61,40,.23)!important;filter:saturate(1.12)
}
#student-space .gs-path-steps>a:focus-visible{
  outline:3px solid #83d8a5!important;outline-offset:3px
}
@media(max-width:700px){
  #student-space .gs-path-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #student-space .gs-path-steps>a{min-height:132px!important}
}
@media(max-width:360px){
  #student-space .gs-path-steps>a{padding:.75rem!important;min-height:120px!important}
}
@media(prefers-reduced-motion:reduce){
  #student-space .gs-path-steps>a{transition:none!important}
}


/* Student activity analytics — clearer hierarchy, real values remain untouched */
#student-space .dashboard-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:1rem!important;margin-block:1rem 1.5rem!important
}
#student-space .dashboard-grid .stat-card{
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  display:grid!important;grid-template-columns:auto 1fr;grid-template-rows:auto auto;
  align-items:center!important;column-gap:.9rem!important;row-gap:.18rem!important;
  min-height:116px!important;padding:1rem 1.05rem!important;
  border:1px solid #dcece2!important;border-radius:19px!important;
  background:linear-gradient(145deg,#fff 0%,#f5fbf7 100%)!important;
  box-shadow:0 7px 20px rgba(20,75,48,.065)!important;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease!important
}
#student-space .dashboard-grid .stat-card:before{
  content:"";position:absolute;z-index:-1;inset:auto -24px -35px auto;
  width:112px;height:112px;border-radius:50%;
  background:radial-gradient(circle,rgba(35,150,93,.12),rgba(35,150,93,0) 70%)
}
#student-space .dashboard-grid .stat-card:after{
  content:"";position:absolute;inset:0 auto 0 0;width:4px;
  background:linear-gradient(180deg,#38a875,#16724c);opacity:.9
}
#student-space .dashboard-grid .stat-icon{
  grid-column:1;grid-row:1/3;display:grid!important;place-items:center!important;
  width:50px!important;height:50px!important;border-radius:16px!important;
  color:#176e49!important;background:linear-gradient(145deg,#e0f4e8,#f1faf4)!important;
  box-shadow:inset 0 0 0 1px rgba(37,132,83,.1)!important
}
#student-space .dashboard-grid .stat-value{
  grid-column:2;grid-row:1;align-self:end!important;
  color:#174d35!important;font-size:clamp(1.45rem,2.5vw,1.9rem)!important;
  line-height:1.12!important;font-weight:800!important;letter-spacing:-.035em!important;
  font-variant-numeric:tabular-nums!important
}
#student-space .dashboard-grid .stat-label{
  grid-column:2;grid-row:2;align-self:start!important;
  color:#61796a!important;font-size:.84rem!important;font-weight:600!important;
  line-height:1.4!important
}
#student-space .dashboard-grid .stat-card:hover{
  transform:translateY(-4px)!important;border-color:#abd9bc!important;
  box-shadow:0 14px 28px rgba(20,75,48,.12)!important
}
#student-space .dashboard-grid .stat-card:nth-child(2) .stat-icon{color:#167b61!important;background:linear-gradient(145deg,#dff5ed,#f1fbf7)!important}
#student-space .dashboard-grid .stat-card:nth-child(3) .stat-icon{color:#2872a3!important;background:linear-gradient(145deg,#e2f1fa,#f4faff)!important}
#student-space .dashboard-grid .stat-card:nth-child(4) .stat-icon{color:#88652a!important;background:linear-gradient(145deg,#fbf0d9,#fffaf0)!important}
#student-space .dashboard-grid .stat-card:nth-child(5) .stat-icon{color:#7657a5!important;background:linear-gradient(145deg,#eee8fa,#faf7ff)!important}
#student-space .dashboard-grid .stat-card:nth-child(6) .stat-icon{color:#b05b3c!important;background:linear-gradient(145deg,#fbe9df,#fff7f2)!important}
#student-space .dashboard-grid .stat-card:nth-child(2):after{background:linear-gradient(180deg,#37b18c,#167b61)}
#student-space .dashboard-grid .stat-card:nth-child(3):after{background:linear-gradient(180deg,#65b5df,#2872a3)}
#student-space .dashboard-grid .stat-card:nth-child(4):after{background:linear-gradient(180deg,#e6bd68,#a77b31)}
#student-space .dashboard-grid .stat-card:nth-child(5):after{background:linear-gradient(180deg,#b69be4,#7657a5)}
#student-space .dashboard-grid .stat-card:nth-child(6):after{background:linear-gradient(180deg,#efaa82,#b05b3c)}
#student-space .gs-section-title{display:flex;align-items:center;gap:.55rem}
@media(max-width:760px){
  #student-space .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.7rem!important}
  #student-space .dashboard-grid .stat-card{min-height:104px!important;padding:.85rem!important;column-gap:.65rem!important}
  #student-space .dashboard-grid .stat-icon{width:43px!important;height:43px!important}
}
@media(max-width:370px){
  #student-space .dashboard-grid .stat-card{grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;gap:.35rem!important}
  #student-space .dashboard-grid .stat-icon{grid-column:1;grid-row:1;width:38px!important;height:38px!important}
  #student-space .dashboard-grid .stat-value{grid-column:1;grid-row:2}
  #student-space .dashboard-grid .stat-label{grid-column:1;grid-row:3}
}
@media(prefers-reduced-motion:reduce){
  #student-space .dashboard-grid .stat-card{transition:none!important}
}


/* Student achievements — polished award gallery with original SVG badge symbols */
#student-space .gs-achievements{
  position:relative;overflow:hidden;padding:clamp(1rem,2.5vw,1.5rem)!important;
  border:1px solid #dcece2!important;border-radius:22px!important;
  background:linear-gradient(145deg,#fff 0%,#f5fbf7 100%)!important;
  box-shadow:0 10px 28px rgba(20,75,48,.07)!important
}
#student-space .gs-achievements-heading{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:1rem!important;margin-bottom:1.1rem!important
}
#student-space .gs-achievements-heading h3{
  color:#174d35!important;font-size:clamp(1.08rem,2vw,1.35rem)!important;
  font-weight:800!important;letter-spacing:-.02em!important
}
#student-space .gs-achievements-heading p{
  color:#63796b!important;line-height:1.6!important
}
#student-space .gs-achievements-count{
  flex:0 0 auto!important;min-width:88px;padding:.7rem .85rem!important;
  border:1px solid #d4eadb!important;border-radius:16px!important;
  background:linear-gradient(145deg,#e9f7ee,#f8fcf9)!important;text-align:center!important
}
#student-space .gs-achievements-count strong{
  display:block;color:#176e49!important;font-size:1.45rem!important;
  line-height:1.15!important;font-weight:850!important;font-variant-numeric:tabular-nums
}
#student-space .gs-achievements-count small{display:block;color:#64806e!important;font-size:.72rem!important}
#student-space .gs-badges-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.8rem!important
}
#student-space .gs-badge-card{
  position:relative!important;display:flex!important;align-items:center!important;
  gap:.85rem!important;min-width:0!important;padding:.9rem!important;
  border:1px solid #e0ebe4!important;border-radius:17px!important;
  background:#fff!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important
}
#student-space .gs-badge-card.is-earned{
  border-color:#cce6d5!important;
  background:linear-gradient(130deg,#fff 35%,#f2faf5)!important
}
#student-space .gs-badge-card.is-locked{
  background:linear-gradient(130deg,#fff,#f7f8f7)!important
}
#student-space .gs-badge-card:hover{
  transform:translateY(-3px)!important;border-color:#a9d6b8!important;
  box-shadow:0 10px 22px rgba(20,75,48,.09)!important
}
#student-space .gs-badge-icon{
  display:grid!important;place-items:center!important;flex:0 0 54px!important;
  width:54px!important;height:54px!important;border-radius:17px!important;
  color:#176e49!important;font-size:0!important;
  background:linear-gradient(145deg,#e1f4e8,#f5fbf7)!important;
  box-shadow:inset 0 0 0 1px rgba(37,132,83,.12)!important
}
#student-space .gs-badge-icon:before{
  content:"";display:block;width:29px;height:29px;background:currentColor;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain
}
#student-space .gs-badge-card:nth-child(1) .gs-badge-icon:before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 4 13c0-5 8-10 8-10s8 5 8 10a7 7 0 0 1-9 7Z'/%3E%3Cpath d='M8 14c2 0 4-1 6-4'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 4 13c0-5 8-10 8-10s8 5 8 10a7 7 0 0 1-9 7Z'/%3E%3Cpath d='M8 14c2 0 4-1 6-4'/%3E%3C/svg%3E")
}
#student-space .gs-badge-card:nth-child(2) .gs-badge-icon:before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E")
}
#student-space .gs-badge-card:nth-child(3) .gs-badge-icon:before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 2-3 8h7L9 22l3-9H5l9-11Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 2-3 8h7L9 22l3-9H5l9-11Z'/%3E%3C/svg%3E")
}
#student-space .gs-badge-card:nth-child(4) .gs-badge-icon:before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E")
}
#student-space .gs-badge-card:nth-child(5) .gs-badge-icon:before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4L12 2Z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4L12 2Z'/%3E%3C/svg%3E")
}
#student-space .gs-badge-copy{display:flex!important;flex-direction:column!important;gap:.24rem!important;min-width:0!important}
#student-space .gs-badge-copy strong{color:#204d37!important;font-size:.92rem!important;line-height:1.35!important}
#student-space .gs-badge-copy small{color:#718176!important;font-size:.77rem!important;line-height:1.5!important}
#student-space .gs-badge-status{
  display:inline-flex!important;align-items:center!important;align-self:flex-start!important;
  margin-top:.12rem!important;padding:.2rem .55rem!important;border-radius:999px!important;
  color:#64766a!important;background:#f0f4f1!important;font-size:.7rem!important;font-weight:700!important
}
#student-space .gs-badge-card.is-earned .gs-badge-status{
  color:#176e49!important;background:#e4f5e9!important
}
#student-space .gs-badge-track{
  display:block!important;width:100%!important;max-width:150px!important;height:5px!important;
  margin-top:.2rem!important;overflow:hidden!important;border-radius:99px!important;background:#e7eee9!important
}
#student-space .gs-badge-track i{
  display:block!important;height:100%!important;border-radius:inherit!important;
  background:linear-gradient(90deg,#42b77b,#176e49)!important
}
#student-space .gs-badge-card.is-locked .gs-badge-icon{
  color:#829188!important;background:linear-gradient(145deg,#edf1ee,#f8faf8)!important
}
@media(max-width:620px){
  #student-space .gs-badges-grid{grid-template-columns:1fr!important;gap:.6rem!important}
  #student-space .gs-badge-card{padding:.78rem!important}
  #student-space .gs-badge-icon{flex-basis:48px!important;width:48px!important;height:48px!important}
}
@media(prefers-reduced-motion:reduce){
  #student-space .gs-badge-card{transition:none!important}
}

/* Study planner — visual organization for the student's existing real tasks */
#student-space .gs-module:has(> #gs-plan-form){position:relative!important;overflow:hidden!important;border:1px solid #dcebe1!important;border-radius:22px!important;background:linear-gradient(145deg,#fff,#f7fbf8)!important;box-shadow:0 10px 28px rgba(20,75,48,.07)!important}
#student-space .gs-module:has(> #gs-plan-form)>h2{display:flex!important;align-items:center!important;gap:.7rem!important;margin:0 0 1rem!important;color:#174d35!important;font-size:clamp(1.15rem,2.2vw,1.45rem)!important;font-weight:850!important}
#student-space .gs-module:has(> #gs-plan-form)>h2:before{content:"";display:inline-block;flex:0 0 42px;width:42px;height:42px;border-radius:14px;background-color:#176e49;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M8 14h3M8 17h6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;background-size:24px}
#student-space #gs-plan-form{display:grid!important;grid-template-columns:minmax(180px,1.5fr) minmax(145px,1fr) minmax(110px,.65fr) auto!important;gap:.7rem!important;align-items:end!important;margin:1rem 0 1.2rem!important;padding:1rem!important;border:1px solid #e0eee5!important;border-radius:17px!important;background:linear-gradient(120deg,#edf8f0,#f8fbf9)!important}
#student-space #gs-plan-form label{display:flex!important;flex-direction:column!important;gap:.4rem!important;color:#365c45!important;font-size:.82rem!important;font-weight:750!important}
#student-space #gs-plan-form input{width:100%!important;min-width:0!important;min-height:44px!important;box-sizing:border-box!important;padding:.65rem .75rem!important;border:1px solid #d5e5da!important;border-radius:11px!important;background:#fff!important;color:#234a35!important;font:inherit!important}
#student-space #gs-plan-form input:focus{outline:none!important;border-color:#39976a!important;box-shadow:0 0 0 3px rgba(57,151,106,.13)!important}
#student-space #gs-plan-form button{min-height:44px!important;padding:.7rem 1rem!important;border:0!important;border-radius:11px!important;background:linear-gradient(135deg,#21865a,#145c40)!important;color:#fff!important;font-weight:800!important;box-shadow:0 5px 12px rgba(20,92,64,.16)!important;cursor:pointer!important}
#student-space .gs-plan-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.7rem!important}
#student-space .gs-plan-list>.no-data{grid-column:1/-1!important;padding:1.2rem!important;border:1px dashed #cbded1!important;border-radius:14px!important;color:#718176!important;text-align:center!important}
#student-space .gs-plan-item{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:.75rem!important;min-width:0!important;padding:.9rem!important;border:1px solid #e0ebe4!important;border-radius:15px!important;background:#fff!important;box-shadow:0 4px 12px rgba(20,75,48,.045)!important;transition:transform .18s,border-color .18s,box-shadow .18s!important}
#student-space .gs-plan-item:hover{transform:translateY(-2px)!important;border-color:#afd7bd!important;box-shadow:0 9px 19px rgba(20,75,48,.08)!important}
#student-space .gs-plan-date{display:grid!important;place-items:center!important;min-width:76px!important;min-height:56px!important;padding:.45rem!important;border:1px solid #dceee2!important;border-radius:12px!important;background:linear-gradient(145deg,#eaf7ee,#f7fbf8)!important;color:#176e49!important;font-size:.78rem!important;font-weight:850!important;text-align:center!important;overflow-wrap:anywhere!important}
#student-space .gs-plan-main{display:flex!important;flex-direction:column!important;gap:.3rem!important;min-width:0!important}
#student-space .gs-plan-main strong{color:#244d37!important;font-size:.92rem!important;line-height:1.45!important;overflow-wrap:anywhere!important}
#student-space .gs-plan-main small{color:#718176!important;font-size:.76rem!important;line-height:1.5!important}
#student-space .gs-plan-actions{display:flex!important;align-items:center!important;gap:.35rem!important}
#student-space .gs-plan-actions button{display:grid!important;place-items:center!important;min-width:34px!important;min-height:34px!important;padding:.35rem!important;border:1px solid #dcebe1!important;border-radius:10px!important;background:#edf7f0!important;color:#176e49!important;font-size:1rem!important;font-weight:850!important;cursor:pointer!important}
#student-space .gs-plan-actions .gs-task-delete{border-color:#f1dfdc!important;background:#fff4f2!important;color:#a64c42!important}
#student-space .gs-plan-item.is-done{opacity:1!important;border-color:#d6e9dc!important;background:linear-gradient(130deg,#f4faf6,#fff)!important}
#student-space .gs-plan-item.is-done .gs-plan-date{border-color:#d6e9dc!important;background:#eaf5ed!important;color:#548064!important}
#student-space .gs-plan-item.is-done .gs-plan-main strong{color:#718176!important;text-decoration:line-through!important}
#student-space .gs-plan-item.is-overdue{border-color:#f0d7d1!important;background:linear-gradient(130deg,#fff9f7,#fff)!important}
#student-space .gs-plan-item.is-overdue .gs-plan-date{border-color:#f0d7d1!important;background:#fff0ec!important;color:#a34f40!important}
#student-space .gs-plan-item.is-due-today{border-color:#d8e5f3!important;background:linear-gradient(130deg,#f6faff,#fff)!important}
#student-space .gs-plan-item.is-due-today .gs-plan-date{border-color:#d8e5f3!important;background:#eaf3fc!important;color:#356b9b!important}
@media(max-width:850px){#student-space #gs-plan-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}#student-space #gs-plan-form button{grid-column:1/-1!important}#student-space .gs-plan-list{grid-template-columns:1fr!important}}
@media(max-width:480px){#student-space .gs-module:has(> #gs-plan-form){padding:.9rem!important}#student-space #gs-plan-form{grid-template-columns:1fr!important;padding:.8rem!important}#student-space #gs-plan-form button{grid-column:auto!important}#student-space .gs-plan-item{grid-template-columns:64px minmax(0,1fr) auto!important;gap:.55rem!important;padding:.7rem!important}#student-space .gs-plan-date{min-width:0!important;min-height:52px!important;font-size:.7rem!important}#student-space .gs-plan-actions{flex-direction:column!important}}
@media(prefers-reduced-motion:reduce){#student-space .gs-plan-item,#student-space .gs-plan-actions button,#student-space #gs-plan-form button{transition:none!important}}


/* Assessment history — visual timeline with clear score hierarchy */
#student-space .history-list{
  position:relative;display:grid;gap:.7rem;padding:clamp(1rem,2.5vw,1.5rem);
  background:linear-gradient(155deg,#fff 0%,#f6fbf7 100%);
}
#student-space .history-item{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:1rem;
  min-width:0;margin:0;padding:1rem 1.1rem;
  border:1px solid #e1ece5;border-radius:16px;
  background:rgba(255,255,255,.94);
  box-shadow:0 5px 15px rgba(25,75,49,.045);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
#student-space .history-item:before{
  content:"";display:block;flex:0 0 42px;width:42px;height:42px;border-radius:13px;
  background:#e9f5ed center/22px no-repeat;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23277850' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M8 3v5h8V3M8 14h8M8 18h5'/%3E%3C/svg%3E");
}
#student-space .history-item:hover{transform:translateY(-2px);border-color:#b7d8c2;box-shadow:0 10px 22px rgba(25,75,49,.085)}
#student-space .history-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:.3rem}
#student-space .history-quiz{color:#244f39;font-weight:800;line-height:1.5;overflow-wrap:anywhere}
#student-space .history-date{color:#788b7e;font-size:.78rem}
#student-space .history-score{flex:0 0 auto;display:flex;align-items:center;gap:.55rem}
#student-space .score-value{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:.48rem .7rem;border-radius:12px;background:#eaf6ee;color:#176b4b;font-size:1.05rem;font-weight:900;font-variant-numeric:tabular-nums}
#student-space .history-item.best{border-color:#e8d49a;background:linear-gradient(110deg,#fffdf5,#fff9e8);box-shadow:0 6px 18px rgba(156,119,34,.075)}
#student-space .history-item.best:before{background-color:#fff0c7;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a87918' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 21 4-2 4 2v-7H8z'/%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='m10 8 1.3 1.3L14.5 6'/%3E%3C/svg%3E")}
#student-space .history-item.best .score-value{background:#fff0c7;color:#8c6414}
#student-space .best-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.35rem .55rem;border:1px solid #ecd99f;border-radius:999px;background:#fff8df;color:#8a651a;font-size:.72rem;font-weight:800;white-space:nowrap}
#student-space .history-item:focus-within{outline:2px solid #d6a83c;outline-offset:2px}
@media(max-width:520px){
  #student-space .history-item{gap:.65rem;padding:.8rem}
  #student-space .history-item:before{flex-basis:36px;width:36px;height:36px;background-size:19px}
  #student-space .history-score{align-items:flex-end;flex-direction:column;gap:.3rem}
  #student-space .score-value{min-width:52px;padding:.4rem .55rem;font-size:.95rem}
  #student-space .best-badge{font-size:.66rem}
}
@media(prefers-reduced-motion:reduce){#student-space .history-item{transition:none!important}}


/* Dashboard welcome — photographic science/nature hero and accessible quick links */
#student-space .gs-student-welcome{
  position:relative;isolation:isolate;overflow:hidden;min-height:230px;
  padding:clamp(1.25rem,3vw,2rem);
  border:1px solid #cfe4d5;border-radius:22px;
  background:linear-gradient(105deg,rgba(7,48,38,.96) 0%,rgba(9,66,48,.91) 52%,rgba(9,66,48,.28) 100%),
    url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1400&q=85") center 48%/cover no-repeat;
  box-shadow:0 14px 34px rgba(15,67,43,.16);
}
#student-space .gs-student-welcome:after{
  content:"";position:absolute;z-index:-1;inset:0;
  background:radial-gradient(circle at 78% 45%,rgba(143,210,157,.22),transparent 34%);
  pointer-events:none;
}
#student-space .gs-welcome-copy{max-width:680px;position:relative;z-index:1}
#student-space .gs-student-welcome .gs-eyebrow{color:#b9e5c5}
#student-space .gs-student-welcome h2{color:#fff;font-size:clamp(1.35rem,2.5vw,2rem);line-height:1.5}
#student-space .gs-student-welcome p{max-width:58ch;color:#e0f1e5;line-height:1.85}
#student-space .gs-welcome-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.9rem}
#student-space .gs-welcome-tags span{
  display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .7rem;
  border:1px solid rgba(219,246,225,.3);border-radius:999px;
  background:rgba(255,255,255,.11);color:#f1fff4;font-size:.82rem;font-weight:750;
  backdrop-filter:blur(5px)
}
#student-space .gs-primary-link{
  position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  padding:.85rem 1.1rem;border:1px solid rgba(255,255,255,.24);border-radius:12px;
  background:#e3f5e7;color:#155b3a!important;font-weight:850;
  box-shadow:0 7px 18px rgba(0,0,0,.16);transition:transform .18s ease,background .18s ease
}
#student-space .gs-primary-link:hover{transform:translateY(-2px);background:#fff}
#student-space .gs-quick-links a{
  position:relative;min-height:76px;overflow:hidden;
  border:1px solid #dfebe2;border-radius:15px;
  background:linear-gradient(145deg,#fff,#f7fbf8);
  color:#24543a;box-shadow:0 5px 15px rgba(24,75,48,.055);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease
}
#student-space .gs-quick-links a:hover{
  transform:translateY(-3px);border-color:#a9cfb5;
  box-shadow:0 10px 22px rgba(24,75,48,.1)
}
#student-space .gs-quick-links a span{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;
  width:42px;height:42px;border-radius:12px;background:#eaf5ed;
  font-size:0!important;color:transparent
}
#student-space .gs-quick-links a span:before{
  content:"";display:block;width:23px;height:23px;background:center/contain no-repeat;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23277850' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z'/%3E%3C/svg%3E")
}
#student-space .gs-quick-links a:nth-child(2) span{background:#eef2ff}
#student-space .gs-quick-links a:nth-child(2) span:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b63a6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 2 6 6-8 8-6-6 8-8ZM4 14l6 6M2 22l4-4'/%3E%3C/svg%3E")}
#student-space .gs-quick-links a:nth-child(3) span{background:#fff0ed}
#student-space .gs-quick-links a:nth-child(3) span:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bd5145' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v16h18V5a2 2 0 0 0-2-2h-3M8 3v5h8V3M7 13h10M7 17h7'/%3E%3C/svg%3E")}
#student-space .gs-quick-links a:nth-child(4) span{background:#fff7e7}
#student-space .gs-quick-links a:nth-child(4) span:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a87918' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.6 9a2.5 2.5 0 1 1 4.2 1.8c-1.2 1-1.8 1.3-1.8 3M12 17.5h.01'/%3E%3C/svg%3E")}
#student-space .gs-quick-links a:nth-child(5) span{background:#f2edff}
#student-space .gs-quick-links a:nth-child(5) span:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23704db1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4zM8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E")}
#student-space .gs-quick-links a:focus-visible,#student-space .gs-primary-link:focus-visible{
  outline:3px solid #d9b65c;outline-offset:3px
}
@media(max-width:680px){
  #student-space .gs-student-welcome{align-items:flex-start;flex-direction:column;min-height:0;background-position:62% center}
  #student-space .gs-student-welcome:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,48,38,.96),rgba(7,48,38,.72));z-index:-1}
  #student-space .gs-primary-link{width:100%;box-sizing:border-box}
  #student-space .gs-quick-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
  #student-space .gs-quick-links a{min-height:68px;padding:.75rem;font-size:.88rem}
  #student-space .gs-quick-links a span{flex-basis:36px;width:36px;height:36px}
}
@media(max-width:360px){#student-space .gs-quick-links{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){#student-space .gs-primary-link,#student-space .gs-quick-links a{transition:none!important}}


/* Resource discovery headers and filters — keep existing file cards untouched */
#cours>.container>.section-title,
#exercices>.container>.section-title,
#examens>.container>.section-title,
#quiz>.container>.section-title,
#fiches>.container>.section-title,
#resumes>.container>.section-title,
#documents>.container>.section-title,
#ressources>.container>.section-title,
#divers>.container>.section-title{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;align-items:center;min-height:118px;
  padding:1.35rem clamp(1rem,3vw,2rem);
  border:1px solid rgba(255,255,255,.2);border-radius:19px;
  color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.38);
  background-color:#174b39;background-position:center 48%;background-size:cover;
  box-shadow:0 10px 24px rgba(20,65,43,.12);
}
#cours>.container>.section-title{background-image:linear-gradient(90deg,rgba(8,54,39,.88),rgba(8,54,39,.28)),url("https://images.unsplash.com/photo-1532094349884-543bc11b234d?auto=format&fit=crop&w=1400&q=82")}
#exercices>.container>.section-title{background-image:linear-gradient(90deg,rgba(8,54,39,.9),rgba(8,54,39,.3)),url("https://images.unsplash.com/photo-1532619675605-1ede6c2ed2b0?auto=format&fit=crop&w=1400&q=82")}
#examens>.container>.section-title{background-image:linear-gradient(90deg,rgba(8,54,39,.9),rgba(8,54,39,.3)),url("https://images.unsplash.com/photo-1434030216411-0b793f4b4173?auto=format&fit=crop&w=1400&q=82")}
#quiz>.container>.section-title{background-image:linear-gradient(90deg,rgba(8,54,39,.9),rgba(8,54,39,.3)),url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1400&q=82")}
#fiches>.container>.section-title{background-image:linear-gradient(90deg,rgba(8,54,39,.9),rgba(8,54,39,.3)),url("https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=1400&q=82")}
#resumes>.container>.section-title{background-image:linear-gradient(90deg,rgba(8,54,39,.9),rgba(8,54,39,.3)),url("https://images.unsplash.com/photo-1456324504439-367cee3b3c32?auto=format&fit=crop&w=1400&q=82")}
#documents>.container>.section-title{background-image:linear-gradient(90deg,rgba(8,54,39,.9),rgba(8,54,39,.3)),url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1400&q=82")}
#ressources>.container>.section-title{background-image:linear-gradient(90deg,rgba(8,54,39,.9),rgba(8,54,39,.3)),url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1400&q=82")}
#divers>.container>.section-title{background-image:linear-gradient(90deg,rgba(8,54,39,.9),rgba(8,54,39,.3)),url("https://images.unsplash.com/photo-1470252649378-9c29740c9fa8?auto=format&fit=crop&w=1400&q=82")}
#cours>.container>.section-title:after,
#exercices>.container>.section-title:after,
#examens>.container>.section-title:after,
#quiz>.container>.section-title:after,
#fiches>.container>.section-title:after,
#resumes>.container>.section-title:after,
#documents>.container>.section-title:after,
#ressources>.container>.section-title:after,
#divers>.container>.section-title:after{
  content:"";position:absolute;z-index:-1;inset:0;
  background:radial-gradient(circle at 82% 50%,rgba(222,255,230,.2),transparent 30%);
  pointer-events:none
}
#cours .subject-tabs,#exercices .subject-tabs,#examens .subject-tabs,
#quiz .subject-tabs,#fiches .subject-tabs,#resumes .subject-tabs{
  display:flex;flex-wrap:wrap;gap:.55rem;margin:1.1rem 0 .7rem
}
#cours .subject-tabs .tab-btn,#exercices .subject-tabs .tab-btn,
#examens .subject-tabs .tab-btn,#quiz .subject-tabs .tab-btn,
#fiches .subject-tabs .tab-btn,#resumes .subject-tabs .tab-btn{
  min-height:42px;padding:.6rem 1rem;border:1px solid #dce9df;border-radius:11px;
  background:#fff;color:#315d43;font-weight:750;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease
}
#cours .subject-tabs .tab-btn.active,#exercices .subject-tabs .tab-btn.active,
#examens .subject-tabs .tab-btn.active,#quiz .subject-tabs .tab-btn.active,
#fiches .subject-tabs .tab-btn.active,#resumes .subject-tabs .tab-btn.active{
  border-color:#287c50;background:#eaf5ed;color:#155b39;
  box-shadow:inset 0 0 0 1px rgba(40,124,80,.12)
}
#cours .level-tabs,#exercices .level-tabs,#examens .level-tabs,
#quiz .level-tabs,#fiches .level-tabs,#resumes .level-tabs{
  display:flex;flex-wrap:wrap;gap:.5rem;margin:.65rem 0 1.25rem;
  padding:.55rem;border:1px solid #e3ece5;border-radius:13px;
  background:linear-gradient(100deg,#f5faf6,#fff)
}
#cours .level-tab-btn,#exercices .level-tab-btn,#examens .level-tab-btn,
#quiz .level-tab-btn,#fiches .level-tab-btn,#resumes .level-tab-btn{
  min-width:72px;min-height:39px;padding:.48rem .85rem;
  border:1px solid transparent;border-radius:9px;background:transparent;
  color:#526b5a;font-weight:800;cursor:pointer;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease
}
#cours .level-tab-btn.active,#exercices .level-tab-btn.active,
#examens .level-tab-btn.active,#quiz .level-tab-btn.active,
#fiches .level-tab-btn.active,#resumes .level-tab-btn.active{
  border-color:#c7dfce;background:#fff;color:#17633e;
  box-shadow:0 3px 9px rgba(30,90,55,.09)
}
#cours .subject-tabs button:focus-visible,#exercices .subject-tabs button:focus-visible,
#examens .subject-tabs button:focus-visible,#quiz .subject-tabs button:focus-visible,
#fiches .subject-tabs button:focus-visible,#resumes .subject-tabs button:focus-visible,
#cours .level-tabs button:focus-visible,#exercices .level-tabs button:focus-visible,
#examens .level-tabs button:focus-visible,#quiz .level-tabs button:focus-visible,
#fiches .level-tabs button:focus-visible,#resumes .level-tabs button:focus-visible{
  outline:3px solid #d6ad50;outline-offset:3px
}
#examens .section-intro,#quiz .section-intro,#resumes .section-intro,
#documents .section-intro,#ressources .section-intro,#divers .section-intro{
  max-width:75ch;margin:.85rem 0 1rem;color:#64766a;line-height:1.8
}
@media(max-width:600px){
  #cours>.container>.section-title,#exercices>.container>.section-title,
  #examens>.container>.section-title,#quiz>.container>.section-title,
  #fiches>.container>.section-title,#resumes>.container>.section-title,
  #documents>.container>.section-title,#ressources>.container>.section-title,
  #divers>.container>.section-title{min-height:94px;padding:1rem;background-position:60% center}
  #cours .subject-tabs,#exercices .subject-tabs,#examens .subject-tabs,
  #quiz .subject-tabs,#fiches .subject-tabs,#resumes .subject-tabs{gap:.4rem}
  #cours .subject-tabs .tab-btn,#exercices .subject-tabs .tab-btn,
  #examens .subject-tabs .tab-btn,#quiz .subject-tabs .tab-btn,
  #fiches .subject-tabs .tab-btn,#resumes .subject-tabs .tab-btn{flex:1 1 auto}
  #cours .level-tabs,#exercices .level-tabs,#examens .level-tabs,
  #quiz .level-tabs,#fiches .level-tabs,#resumes .level-tabs{gap:.35rem;padding:.4rem}
}
@media(prefers-reduced-motion:reduce){
  #cours .subject-tabs button,#exercices .subject-tabs button,#examens .subject-tabs button,
  #quiz .subject-tabs button,#fiches .subject-tabs button,#resumes .subject-tabs button,
  #cours .level-tabs button,#exercices .level-tabs button,#examens .level-tabs button,
  #quiz .level-tabs button,#fiches .level-tabs button,#resumes .level-tabs button{transition:none!important}
}


/* Interactive plant-cell learning module */
#student-space .gs-cell-lab{
  margin:1.25rem 0;padding:clamp(1rem,2.6vw,1.55rem);
  border:1px solid #d8e9dc;border-radius:21px;
  background:linear-gradient(145deg,#f5fbf5,#fff 65%);
  box-shadow:0 9px 24px rgba(23,79,46,.065)
}
#student-space .gs-cell-lab-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
#student-space .gs-cell-lab-heading h3{margin:.3rem 0;color:#20583a;font-size:clamp(1.15rem,2.2vw,1.55rem)}
#student-space .gs-cell-lab-heading p{margin:0;color:#6b7f70;line-height:1.7}
#student-space .gs-cell-lab-symbol{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:15px;background:#e5f3e8;font-size:1.7rem}
#student-space .gs-cell-lab-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(210px,.7fr);gap:1rem;align-items:center}
#student-space .gs-cell-illustration{display:grid;place-items:center;min-width:0;padding:.7rem;border:1px solid #e0ecdf;border-radius:16px;background:radial-gradient(circle at 50% 45%,#fff,#f0f8ed)}
#student-space .gs-real-science-photo{display:grid;gap:.45rem;min-width:0;color:inherit;text-decoration:none}
#student-space .gs-cell-photo-card{width:100%}
#student-space .gs-cell-photo-card .gs-science-media-photo{flex:0 0 auto;width:100%;height:260px;min-height:220px;border-radius:11px;background:#f5f8f3}
#student-space .gs-cell-photo-card .gs-science-media-photo img{width:100%;height:100%;min-height:220px;max-height:260px;object-fit:contain}
#student-space .gs-real-photo-credit{display:grid;gap:.2rem;text-align:center}
#student-space .gs-real-photo-credit strong{color:#285b56;font-size:.86rem}
#student-space .gs-real-photo-credit small{color:#687d78;font-size:.7rem;line-height:1.5}
#student-space .gs-real-science-photo:focus-visible{outline:3px solid #d4ad55;outline-offset:3px}

#student-space .gs-cell-illustration svg{display:block;width:100%;max-height:300px}
#student-space .gs-cell-controls{display:grid;gap:.55rem}
#student-space .gs-cell-part{
 display:flex;align-items:center;gap:.7rem;width:100%;min-height:48px;padding:.65rem .75rem;
 border:1px solid #e0eae2;border-radius:12px;background:#fff;color:#3b5e47;
 text-align:start;font:inherit;font-weight:750;cursor:pointer;
 transition:background .16s ease,border-color .16s ease,transform .16s ease
}
#student-space .gs-cell-part span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#edf5ef;color:#28764c;font-size:.75rem;font-weight:900}
#student-space .gs-cell-part:hover{transform:translateX(-2px);border-color:#a8ceb3}
#student-space .gs-cell-part.is-active{border-color:#68a87d;background:#eaf6ed;color:#175b39;box-shadow:inset 0 0 0 1px rgba(40,124,80,.12)}
#student-space .gs-cell-part.is-active span{background:#28784d;color:#fff}
#student-space .gs-cell-fact{margin-top:1rem;padding:1rem 1.1rem;border-inline-start:4px solid #32905b;border-radius:12px;background:#edf7ef}
#student-space .gs-cell-fact-title{display:block;color:#205b3c;font-size:1rem;font-weight:900}
#student-space .gs-cell-fact-text{margin:.45rem 0 0;color:#496452;line-height:1.85}
#student-space .gs-cell-note{margin:.7rem 0 0;color:#839187;font-size:.76rem}
#student-space .gs-cell-part:focus-visible{outline:3px solid #d6ad50;outline-offset:3px}
@media(max-width:650px){
 #student-space .gs-cell-lab-layout{grid-template-columns:minmax(0,1fr)}
 #student-space .gs-cell-illustration svg{max-height:240px}
 #student-space .gs-cell-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
 #student-space .gs-cell-part{min-height:56px;padding:.55rem;font-size:.84rem}
}
@media(max-width:380px){#student-space .gs-cell-controls{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){#student-space .gs-cell-part{transition:none!important}}


/* Photosynthesis interactive learning lab */
#student-space .gs-photo-lab{margin:1.25rem 0;padding:clamp(1rem,2.6vw,1.6rem);border:1px solid #d7e9d9;border-radius:21px;background:linear-gradient(145deg,#f4faf1,#fff 68%);box-shadow:0 9px 24px rgba(23,79,46,.065)}
#student-space .gs-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
#student-space .gs-photo-heading h3{margin:.3rem 0;color:#20583a;font-size:clamp(1.15rem,2.2vw,1.55rem)}
#student-space .gs-photo-heading p{margin:0;color:#6b7f70;line-height:1.75}
#student-space .gs-photo-badge{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:16px;background:#fff4d5;font-size:1.8rem}
#student-space .gs-photo-scene{position:relative;min-height:245px;display:grid;place-items:center;overflow:hidden;border:1px solid #e0ecd9;border-radius:17px;background:radial-gradient(ellipse at center,#fff 0,#eff8e8 68%,#e5f1dc 100%)}
#student-space .gs-photo-leaf{width:min(52%,340px);z-index:1;filter:drop-shadow(0 9px 12px rgba(39,102,57,.16))}
#student-space .gs-photo-leaf{display:grid;gap:.2rem;filter:none;text-decoration:none}
#student-space .gs-photo-leaf .gs-science-media-photo{flex:0 0 auto;width:100%;height:165px;min-height:145px;border:2px solid rgba(255,255,255,.9);border-radius:16px;background:#f4f8ef;box-shadow:0 8px 16px rgba(39,102,57,.12)}
#student-space .gs-photo-leaf .gs-science-media-photo img{width:100%;height:100%;min-height:145px;max-height:165px;object-fit:cover}
#student-space .gs-photo-leaf .gs-science-media-credit{padding:.15rem .3rem;border-radius:6px;background:rgba(255,255,255,.85);font-size:.62rem!important;text-align:center}

#student-space .gs-photo-leaf svg{display:block;width:100%;height:auto}
#student-space .gs-photo-sun{position:absolute;top:12px;left:16%;font-size:2.3rem;filter:drop-shadow(0 0 12px rgba(239,183,54,.45))}
#student-space .gs-photo-flow{position:absolute;z-index:2;display:flex;flex-direction:column;align-items:center;gap:1px;min-width:65px;padding:.4rem .55rem;border:1px solid rgba(255,255,255,.9);border-radius:12px;background:rgba(255,255,255,.88);box-shadow:0 4px 12px rgba(40,80,48,.1);font-size:.8rem;color:#315d3e}
#student-space .gs-photo-flow span{font-size:1.2rem}
#student-space .gs-photo-flow b{font-size:.82rem}
#student-space .gs-photo-flow small{font-size:.65rem;color:#718174;text-align:center}
#student-space .gs-flow-water{left:4%;bottom:13%}
#student-space .gs-flow-co2{right:4%;top:16%}
#student-space .gs-flow-light{left:42%;top:5%}
#student-space .gs-flow-sugar{right:4%;bottom:12%}
#student-space .gs-flow-o2{left:5%;top:19%}
#student-space .gs-photo-stage-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.5rem;margin:1rem 0}
#student-space .gs-photo-stage{display:flex;align-items:center;justify-content:flex-start;gap:.45rem;min-height:58px;padding:.55rem .6rem;border:1px solid #e0eae2;border-radius:11px;background:#fff;color:#47634e;text-align:start;font:inherit;font-size:.82rem;font-weight:750;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}
#student-space .gs-photo-stage span{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:8px;background:#edf5ef;color:#28764c;font-size:.7rem;font-weight:900}
#student-space .gs-photo-stage:hover{transform:translateY(-2px);border-color:#a8ceb3}
#student-space .gs-photo-stage.is-active{border-color:#68a87d;background:#eaf6ed;color:#175b39;box-shadow:inset 0 0 0 1px rgba(40,124,80,.12)}
#student-space .gs-photo-stage.is-active span{background:#28784d;color:#fff}
#student-space .gs-photo-explanation{min-height:84px;padding:1rem 1.1rem;border-inline-start:4px solid #32905b;border-radius:12px;background:#edf7ef}
#student-space .gs-photo-fact-title{display:block;color:#205b3c;font-size:1rem;font-weight:900}
#student-space .gs-photo-fact-text{margin:.45rem 0 0;color:#496452;line-height:1.85}
#student-space .gs-photo-equation{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem;margin-top:.85rem;padding:.8rem 1rem;border:1px dashed #b8d4bd;border-radius:12px;background:#fbfefb}
#student-space .gs-photo-equation span{color:#6b7f70;font-size:.8rem;font-weight:750}
#student-space .gs-photo-equation strong{color:#236441;font-size:clamp(.8rem,1.7vw,1rem);direction:ltr;unicode-bidi:embed}
#student-space .gs-photo-note{margin:.7rem 0 0;color:#839187;font-size:.76rem;line-height:1.6}
#student-space .gs-photo-stage:focus-visible{outline:3px solid #d6ad50;outline-offset:3px}
#student-space .gs-photo-pulse .gs-photo-leaf{animation:gsLeafPulse .55s ease}
@keyframes gsLeafPulse{50%{transform:scale(1.045);filter:drop-shadow(0 0 17px rgba(80,157,81,.35))}}
#student-space .gs-photo-scene[data-active-stage="light"] .gs-photo-sun{filter:drop-shadow(0 0 18px rgba(238,178,39,.8))}
#student-space .gs-photo-scene[data-active-stage="water"] .gs-flow-water,
#student-space .gs-photo-scene[data-active-stage="co2"] .gs-flow-co2,
#student-space .gs-photo-scene[data-active-stage="sugar"] .gs-flow-sugar,
#student-space .gs-photo-scene[data-active-stage="oxygen"] .gs-flow-o2{border-color:#65ad7c;background:#eaf8ed;box-shadow:0 0 0 3px rgba(76,153,94,.14)}
@media(max-width:760px){#student-space .gs-photo-stage-list{grid-template-columns:repeat(2,minmax(0,1fr))}#student-space .gs-photo-scene{min-height:220px}#student-space .gs-photo-leaf{width:58%}}
@media(max-width:420px){#student-space .gs-photo-stage-list{grid-template-columns:1fr}#student-space .gs-photo-scene{min-height:205px}#student-space .gs-photo-flow{min-width:53px;padding:.3rem;font-size:.72rem}#student-space .gs-photo-flow small{font-size:.58rem}}
@media(prefers-reduced-motion:reduce){#student-space .gs-photo-stage{transition:none!important}#student-space .gs-photo-pulse .gs-photo-leaf{animation:none!important}}


/* Interactive human body systems atlas */
#student-space .gs-anatomy-atlas{margin:1.25rem 0;padding:clamp(1rem,2.6vw,1.6rem);border:1px solid #d9e8e0;border-radius:22px;background:linear-gradient(145deg,#f2f8f6,#fff 70%);box-shadow:0 9px 24px rgba(23,79,46,.06)}
#student-space .gs-anatomy-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
#student-space .gs-anatomy-heading h3{margin:.3rem 0;color:#245c48;font-size:clamp(1.15rem,2.2vw,1.55rem)}
#student-space .gs-anatomy-heading p{margin:0;color:#6b7f76;line-height:1.7}
#student-space .gs-anatomy-mark{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:16px;background:#e3f0e9;font-size:1.8rem}
#student-space .gs-anatomy-figure{position:relative;display:grid;place-items:center;min-height:260px;overflow:hidden;border:1px solid #e1ece6;border-radius:17px;background:radial-gradient(ellipse at center,#fff,#eef6f1)}
#student-space .gs-anatomy-photo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:.9rem 0}
#student-space .gs-anatomy-photo-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #dce9e2;border-radius:14px;background:#fff;color:inherit;text-decoration:none;transition:border-color .16s,box-shadow .16s,transform .16s}
#student-space .gs-anatomy-photo-card:hover{transform:translateY(-2px);border-color:#9fc8b1;box-shadow:0 7px 18px rgba(38,92,64,.09)}
#student-space .gs-anatomy-photo-card.is-active{border-color:#398b65;box-shadow:0 0 0 2px rgba(57,139,101,.16)}
#student-space .gs-anatomy-photo-card .gs-science-media-photo{flex:0 0 auto;width:100%;min-height:150px;height:170px;border-radius:0;background:#f0f5f1}
#student-space .gs-anatomy-photo-card .gs-science-media-photo img{width:100%;height:100%;min-height:150px;max-height:170px;object-fit:contain}
#student-space .gs-anatomy-photo-copy{display:grid;gap:.3rem;padding:.7rem .8rem}
#student-space .gs-anatomy-photo-copy strong{color:#285b56;font-size:.88rem}
#student-space .gs-anatomy-photo-copy>small{color:#70817d;font-size:.74rem;line-height:1.55}
#student-space .gs-anatomy-photo-card:focus-visible{outline:3px solid #d4ad55;outline-offset:3px}
@media(max-width:760px){#student-space .gs-anatomy-photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){#student-space .gs-anatomy-photo-gallery{grid-template-columns:1fr}#student-space .gs-anatomy-photo-card .gs-science-media-photo{height:190px}}

#student-space .gs-anatomy-figure svg{height:250px;max-width:100%;filter:drop-shadow(0 8px 12px rgba(47,94,68,.12))}
#student-space .gs-anatomy-figure>span{position:absolute;bottom:8px;color:#819188;font-size:.7rem}
#student-space .gs-anatomy-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;margin:1rem 0}
#student-space .gs-anatomy-tab{display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:56px;padding:.6rem;border:1px solid #e0eae3;border-radius:12px;background:#fff;color:#466354;font:inherit;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
#student-space .gs-anatomy-tab:hover{transform:translateY(-2px);border-color:#a8ceb8}
#student-space .gs-anatomy-tab>span{font-size:1.25rem}
#student-space .gs-anatomy-tab b{font-size:.84rem}
#student-space .gs-anatomy-tab.is-active{border-color:#6ba989;background:#eaf5ee;color:#205c40;box-shadow:inset 0 0 0 1px rgba(40,124,80,.1)}
#student-space .gs-anatomy-detail{padding:1rem 1.1rem;border-inline-start:4px solid #398b65;border-radius:13px;background:#edf6f0}
#student-space .gs-anatomy-name{margin:0;color:#205b40;font-size:1.08rem}
#student-space .gs-anatomy-function{margin:.45rem 0 .8rem;color:#496456;line-height:1.8}
#student-space .gs-anatomy-info{margin-top:.65rem;padding:.65rem .75rem;border:1px solid #dcebe0;border-radius:10px;background:rgba(255,255,255,.76)}
#student-space .gs-anatomy-info>span{color:#28734d;font-size:.78rem;font-weight:850}
#student-space .gs-anatomy-info p{margin:.3rem 0 0;color:#52685a;line-height:1.75}
#student-space .gs-anatomy-note{margin:.7rem 0 0;color:#839187;font-size:.74rem;line-height:1.6}
#student-space .gs-anatomy-tab:focus-visible{outline:3px solid #d6ad50;outline-offset:3px}
@media(max-width:650px){#student-space .gs-anatomy-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}#student-space .gs-anatomy-figure{min-height:225px}#student-space .gs-anatomy-figure svg{height:215px}}
@media(max-width:380px){#student-space .gs-anatomy-tab{gap:.3rem;padding:.45rem}#student-space .gs-anatomy-tab b{font-size:.77rem}}
@media(prefers-reduced-motion:reduce){#student-space .gs-anatomy-tab{transition:none!important}}


/* Human systems atlas self-assessment */
#student-space .gs-atlas-quiz{margin-top:1rem;padding:1rem;border:1px solid #dce9e1;border-radius:15px;background:linear-gradient(135deg,#f8fbf8,#fff)}
#student-space .gs-atlas-quiz-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.9rem}
#student-space .gs-atlas-quiz-heading h4{margin:.25rem 0;color:#245c48;font-size:1.05rem}
#student-space .gs-atlas-quiz-heading p{margin:0;color:#718078;font-size:.82rem;line-height:1.6}
#student-space .gs-atlas-quiz-heading>span{font-size:1.8rem}
#student-space .gs-atlas-quiz-progress{display:flex;justify-content:space-between;gap:1rem;color:#597364;font-size:.78rem;font-weight:800}
#student-space .gs-atlas-quiz-track{height:6px;margin:.55rem 0 .9rem;overflow:hidden;border-radius:9px;background:#e7efe9}
#student-space .gs-atlas-quiz-track>span{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#75b68b,#28794e);transition:width .2s ease}
#student-space .gs-atlas-question{margin:.4rem 0 .8rem;color:#294f3a;font-size:1rem;line-height:1.65}
#student-space .gs-atlas-options{display:grid;gap:.5rem}
#student-space .gs-atlas-option{width:100%;padding:.7rem .85rem;border:1px solid #dfe9e2;border-radius:10px;background:#fff;color:#456252;text-align:start;font:inherit;cursor:pointer}
#student-space .gs-atlas-option:disabled{cursor:default;opacity:1}
#student-space .gs-atlas-option.is-correct{border-color:#70b489;background:#eaf6ed;color:#205c3d;font-weight:800}
#student-space .gs-atlas-option.is-incorrect{border-color:#d99a91;background:#fff0ee;color:#8a3d36}
#student-space .gs-atlas-feedback{margin-top:.7rem;color:#526b5b;font-size:.85rem;line-height:1.75}
#student-space .gs-atlas-next,#student-space .gs-atlas-quiz-restart{margin-top:.75rem;padding:.65rem 1rem;border:0;border-radius:10px;background:#28784d;color:#fff;font:inherit;font-weight:800;cursor:pointer}
#student-space .gs-atlas-next[hidden]{display:none}
#student-space .gs-atlas-quiz-result{display:grid;justify-items:center;gap:.45rem;padding:1rem;text-align:center}
#student-space .gs-atlas-quiz-result>span{font-size:2rem}
#student-space .gs-atlas-quiz-result strong{color:#205b40;font-size:1.1rem}
#student-space .gs-atlas-quiz-result p{margin:0;color:#607568;line-height:1.7}
#student-space .gs-atlas-option:focus-visible,#student-space .gs-atlas-next:focus-visible,#student-space .gs-atlas-quiz-restart:focus-visible{outline:3px solid #d6ad50;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#student-space .gs-atlas-quiz-track>span{transition:none!important}}


/* Organ highlighting linked to the selected body system */
#student-space .gs-anatomy-figure [data-organ-system]{opacity:.3;transition:opacity .2s ease,filter .2s ease}
#student-space .gs-anatomy-figure [data-organ-system].is-highlighted{opacity:1;filter:drop-shadow(0 0 7px rgba(49,142,86,.72))}
@media(prefers-reduced-motion:reduce){#student-space .gs-anatomy-figure [data-organ-system]{transition:none!important}}


/* Cell and photosynthesis revision challenge */
#student-space .gs-svt-revision{margin:1.25rem 0;padding:clamp(1rem,2.6vw,1.55rem);border:1px solid #dce8d7;border-radius:20px;background:linear-gradient(145deg,#f5faef,#fff 70%);box-shadow:0 8px 22px rgba(40,88,44,.055)}
#student-space .gs-svt-revision-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
#student-space .gs-svt-revision-heading h3{margin:.3rem 0;color:#285d39;font-size:clamp(1.1rem,2.1vw,1.45rem)}
#student-space .gs-svt-revision-heading p{margin:0;color:#718071;line-height:1.7}
#student-space .gs-svt-revision-heading>span{font-size:1.9rem}
#student-space .gs-svt-revision-meta{display:flex;justify-content:space-between;gap:1rem;color:#58745d;font-size:.8rem;font-weight:850}
#student-space .gs-svt-revision-track{height:6px;margin:.55rem 0 .9rem;overflow:hidden;border-radius:8px;background:#e7eee2}
#student-space .gs-svt-revision-track>span{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#a6c96c,#39854d);transition:width .2s ease}
#student-space .gs-svt-revision-content h4{margin:.4rem 0 .8rem;color:#34583a;font-size:1rem;line-height:1.7}
#student-space .gs-svt-revision-options{display:grid;gap:.5rem}
#student-space .gs-svt-revision-options button{padding:.7rem .85rem;border:1px solid #e0e9da;border-radius:10px;background:#fff;color:#4d654e;text-align:start;font:inherit;cursor:pointer}
#student-space .gs-svt-revision-options button:disabled{opacity:1;cursor:default}
#student-space .gs-svt-revision-options button.is-correct{border-color:#78b582;background:#eaf6e9;color:#245c35;font-weight:800}
#student-space .gs-svt-revision-options button.is-incorrect{border-color:#d99a91;background:#fff0ee;color:#8a3d36}
#student-space .gs-svt-revision-feedback{min-height:1.5rem;margin:.65rem 0 0;color:#5d705d;font-size:.84rem;line-height:1.75}
#student-space .gs-svt-revision-content [data-svt-next],#student-space .gs-svt-revision-result button{margin-top:.65rem;padding:.65rem 1rem;border:0;border-radius:10px;background:#367c45;color:#fff;font:inherit;font-weight:850;cursor:pointer}
#student-space .gs-svt-revision-content [hidden]{display:none}
#student-space .gs-svt-revision-result{display:grid;justify-items:center;gap:.45rem;padding:1rem;text-align:center}
#student-space .gs-svt-revision-result>span{font-size:2rem}
#student-space .gs-svt-revision-result strong{color:#285d39;font-size:1.1rem}
#student-space .gs-svt-revision-result p{margin:0;color:#687a67;line-height:1.7}
#student-space .gs-svt-revision-options button:focus-visible,#student-space .gs-svt-revision-content [data-svt-next]:focus-visible,#student-space .gs-svt-revision-result button:focus-visible{outline:3px solid #d6ad50;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#student-space .gs-svt-revision-track>span{transition:none!important}}


/* Open scientific photography and microscopy collection */
#student-space .gs-science-media{margin:1.25rem 0;padding:clamp(1rem,2.6vw,1.55rem);border:1px solid #dce7e3;border-radius:21px;background:linear-gradient(145deg,#f0f7f7,#fff 72%);box-shadow:0 8px 22px rgba(31,78,79,.055)}
#student-space .gs-science-media-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
#student-space .gs-science-media-heading h3{margin:.3rem 0;color:#245b59;font-size:clamp(1.1rem,2.2vw,1.45rem)}
#student-space .gs-science-media-heading p{max-width:780px;margin:0;color:#687e7b;line-height:1.75;font-size:.86rem}
#student-space .gs-science-media-mark{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:16px;background:#e0efed;font-size:1.8rem}
#student-space .gs-science-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
#student-space .gs-science-media-card{display:flex;align-items:flex-start;gap:.8rem;min-width:0;padding:.9rem;border:1px solid #dfeae7;border-radius:14px;background:rgba(255,255,255,.92);color:inherit;text-decoration:none;transition:border-color .16s,transform .16s,box-shadow .16s}
#student-space .gs-science-media-card:hover{transform:translateY(-2px);border-color:#9fc8c1;box-shadow:0 7px 17px rgba(37,100,92,.08)}
#student-space .gs-science-media-icon{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border-radius:12px;background:#eaf4f2;font-size:1.4rem}
#student-space .gs-science-media-copy{display:grid;gap:.32rem;min-width:0}
#student-space .gs-science-media-copy strong{color:#285b56;font-size:.91rem}
#student-space .gs-science-media-copy small{color:#70817d;font-size:.78rem;line-height:1.65}
#student-space .gs-science-media-copy em{margin-top:.15rem;color:#267d70;font-size:.76rem;font-style:normal;font-weight:850}
#student-space .gs-science-media-license{margin:.85rem 0 0;padding:.7rem .8rem;border-radius:10px;background:#eaf3f1;color:#627874;font-size:.74rem;line-height:1.75}
#student-space .gs-science-media-card:focus-visible{outline:3px solid #d4ad55;outline-offset:3px}
@media(max-width:650px){#student-space .gs-science-media-grid{grid-template-columns:1fr}#student-space .gs-science-media-heading{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){#student-space .gs-science-media-card{transition:none!important}}


/* Interactive SVT memory cards */
#student-space .gs-memory-deck{margin:1.25rem 0;padding:clamp(1rem,2.6vw,1.55rem);border:1px solid #e5dfef;border-radius:21px;background:linear-gradient(145deg,#f7f4fc,#fff 72%);box-shadow:0 8px 22px rgba(75,55,112,.055)}
#student-space .gs-memory-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
#student-space .gs-memory-heading h3{margin:.3rem 0;color:#514078;font-size:clamp(1.1rem,2.2vw,1.45rem)}
#student-space .gs-memory-heading p{margin:0;color:#777087;font-size:.85rem;line-height:1.75}
#student-space .gs-memory-heading>span{display:grid;place-items:center;flex:0 0 50px;width:50px;height:50px;border-radius:15px;background:#eee8f8;font-size:1.7rem}
#student-space .gs-memory-card{max-width:780px;margin:0 auto;padding:clamp(1rem,3vw,1.5rem);border:1px solid #e8e1f1;border-radius:17px;background:linear-gradient(160deg,#fff,#fbf9ff);box-shadow:0 7px 20px rgba(78,60,112,.06)}
#student-space .gs-memory-card-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;color:#756b8b;font-size:.78rem;font-weight:850}
#student-space .gs-memory-category{padding:.3rem .6rem;border-radius:20px;background:#f0ebf8;color:#65518c}
#student-space .gs-memory-art{display:grid;place-items:center;min-height:125px;margin:.9rem 0;border-radius:13px;background:radial-gradient(circle at center,#f2edfb,#faf8fd 68%)}
#student-space .gs-memory-art-icon{font-size:3.5rem;filter:drop-shadow(0 5px 8px rgba(80,65,110,.14))}
#student-space .gs-memory-question{min-height:3.2em;margin:.7rem 0;color:#40365a;text-align:center;font-size:clamp(1rem,2vw,1.2rem);line-height:1.8}
#student-space .gs-memory-answer{margin:.8rem 0;padding:1rem;border-inline-start:4px solid #8a72b5;border-radius:11px;background:#f1edf8;color:#54466f;text-align:start;line-height:1.85}
#student-space .gs-memory-actions{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin-top:1rem}
#student-space .gs-memory-actions>div{display:flex;gap:.45rem}
#student-space .gs-memory-actions button{min-height:40px;padding:.55rem .85rem;border:1px solid #ded5eb;border-radius:10px;background:#fff;color:#5e4b7d;font:inherit;font-size:.82rem;font-weight:800;cursor:pointer}
#student-space .gs-memory-actions .gs-memory-reveal{border-color:#715a9b;background:#715a9b;color:#fff}
#student-space .gs-memory-actions button:disabled{opacity:.4;cursor:not-allowed}
#student-space .gs-memory-progress{height:6px;margin-top:1rem;overflow:hidden;border-radius:9px;background:#ece7f3}
#student-space .gs-memory-progress>span{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#ad98d0,#70579b);transition:width .2s ease}
#student-space .gs-memory-tip{margin:.8rem 0 0;color:#81788e;text-align:center;font-size:.76rem;line-height:1.65}
#student-space .gs-memory-actions button:focus-visible{outline:3px solid #d7ad55;outline-offset:3px}
@media(max-width:480px){#student-space .gs-memory-actions{align-items:stretch;flex-direction:column}#student-space .gs-memory-actions>div{justify-content:flex-end}#student-space .gs-memory-actions .gs-memory-reveal{width:100%}}
@media(prefers-reduced-motion:reduce){#student-space .gs-memory-progress>span{transition:none!important}}


/* Searchable bilingual SVT glossary */
#student-space .gs-svt-glossary{margin:1.25rem 0;padding:clamp(1rem,2.6vw,1.55rem);border:1px solid #dbe7ed;border-radius:21px;background:linear-gradient(145deg,#f1f7fb,#fff 72%);box-shadow:0 8px 22px rgba(42,76,105,.05)}
#student-space .gs-svt-glossary-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
#student-space .gs-svt-glossary-heading h3{margin:.3rem 0;color:#315a78;font-size:clamp(1.1rem,2.2vw,1.45rem)}
#student-space .gs-svt-glossary-heading p{margin:0;color:#708392;font-size:.85rem;line-height:1.7}
#student-space .gs-svt-glossary-heading>span{display:grid;place-items:center;flex:0 0 50px;width:50px;height:50px;border-radius:15px;background:#e4eff7;font-size:1.7rem}
#student-space .gs-svt-glossary-search{display:flex;align-items:center;gap:.65rem;padding:.65rem .85rem;border:1px solid #d7e4ec;border-radius:12px;background:#fff;color:#608099}
#student-space .gs-svt-glossary-search>span{font-size:1.35rem}
#student-space .gs-svt-glossary-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#334e62;font:inherit;font-size:.9rem}
#student-space .gs-svt-glossary-search input::placeholder{color:#91a1ad}
#student-space .gs-svt-glossary-search kbd{padding:.15rem .4rem;border:1px solid #e1e9ee;border-radius:5px;color:#91a0aa;font-size:.75rem}
#student-space .gs-svt-glossary-meta{margin:.7rem 0;color:#718696;font-size:.76rem;font-weight:800}
#student-space .gs-svt-glossary-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
#student-space .gs-svt-glossary-term{min-width:0;padding:.85rem;border:1px solid #e1eaf0;border-radius:12px;background:rgba(255,255,255,.9)}
#student-space .gs-svt-glossary-term-top{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem}
#student-space .gs-svt-glossary-term h4{margin:0;color:#345c78;font-size:.9rem;line-height:1.6}
#student-space .gs-svt-glossary-term-top>span{flex:0 0 auto;padding:.2rem .45rem;border-radius:20px;background:#edf4f8;color:#678196;font-size:.68rem}
#student-space .gs-svt-glossary-term p{margin:.45rem 0 0;color:#697d8a;font-size:.8rem;line-height:1.75}
#student-space .gs-svt-glossary-empty{grid-column:1/-1;margin:0;padding:1rem;border-radius:10px;background:#fff;color:#778894;text-align:center}
#student-space .gs-svt-glossary-search:focus-within{border-color:#83abc6;box-shadow:0 0 0 3px rgba(91,145,181,.12)}
@media(max-width:650px){#student-space .gs-svt-glossary-results{grid-template-columns:1fr}}


/* Scientific media: real Commons thumbnails with visible source/licence metadata */
#student-space .gs-science-media-photo{position:relative;display:grid;place-items:center;flex:0 0 142px;width:142px;min-height:118px;overflow:hidden;border-radius:11px;background:linear-gradient(145deg,#e6f0ee,#f7faf9);color:#47716b}
#student-space .gs-science-media-photo img{display:block;width:100%;height:100%;min-height:118px;max-height:142px;object-fit:cover}
#student-space .gs-science-media-photo>span{font-size:1.8rem}
#student-space .gs-science-media-photo>small{padding:.25rem .45rem;font-size:.65rem;text-align:center}
#student-space .gs-science-media-credit{margin-top:.2rem;color:#687d78!important;font-size:.68rem!important;line-height:1.5}
#student-space .gs-science-media-card{align-items:stretch}
#student-space .gs-science-media-copy{align-content:center}
@media(max-width:620px){#student-space .gs-science-media-photo{flex-basis:104px;width:104px;min-height:104px}#student-space .gs-science-media-photo img{min-height:104px;max-height:124px}}


/* Virtual microscope lab */
#student-space .gs-microscope-lab{margin:1.25rem 0;padding:clamp(1rem,2.5vw,1.5rem);border:1px solid #dce8e3;border-radius:20px;background:linear-gradient(145deg,#f5f8ff,#fff 68%);box-shadow:0 8px 22px rgba(42,65,105,.05)}
#student-space .gs-micro-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
#student-space .gs-micro-heading h3{margin:.3rem 0;color:#31577d;font-size:clamp(1.1rem,2.2vw,1.45rem)}
#student-space .gs-micro-heading p{margin:0;color:#687b90;font-size:.86rem;line-height:1.7}
#student-space .gs-micro-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,.8fr);gap:1rem}
#student-space .gs-micro-view{min-width:0;padding:.8rem;border:1px solid #dce5ef;border-radius:15px;background:#fff}
#student-space .gs-micro-viewbar,#student-space .gs-micro-viewfoot{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
#student-space .gs-micro-viewbar>div{display:flex;align-items:center;gap:.45rem}
#student-space .gs-micro-viewbar button{width:30px;height:30px;border:1px solid #d5e0ec;border-radius:8px;background:#f4f7fb;color:#345d82;font-weight:800}
#student-space .gs-micro-zoom-value{min-width:44px;color:#65798d;font-size:.75rem;text-align:center}
#student-space .gs-micro-canvas{position:relative;display:grid;place-items:center;min-height:240px;margin:.75rem 0;overflow:hidden;border-radius:12px;background:radial-gradient(circle,#fff 0,#edf3f8 100%)}
#student-space .gs-micro-art{width:min(100%,560px);transform-origin:center;transition:transform .2s ease}
#student-space .gs-micro-image-placeholder{display:grid;place-items:center;min-height:220px;padding:1.5rem;border:1px dashed #c8d7e4;border-radius:12px;background:#f7fafc;color:#637b91;font-size:.9rem;text-align:center;line-height:1.7}
#student-space .gs-micro-art.is-real-photo img{max-width:100%;max-height:420px;object-fit:contain}

#student-space .gs-micro-art svg{display:block;width:100%;height:auto}
#student-space .gs-micro-overlay{position:absolute;right:10px;bottom:9px;padding:.25rem .5rem;border-radius:7px;background:rgba(255,255,255,.85);color:#6c7c8d;font-size:.66rem}
#student-space .gs-micro-kind{color:#59728d;font-size:.75rem;font-weight:750}
#student-space .gs-micro-label-toggle{border:0;background:transparent;color:#3978a6;font-size:.75rem;font-weight:750;cursor:pointer}
#student-space .gs-micro-side h4{margin:.1rem 0 .65rem;color:#31577d}
#student-space .gs-micro-slides{display:grid;gap:.45rem}
#student-space .gs-micro-slide{display:grid;grid-template-columns:32px 1fr;gap:.15rem .5rem;padding:.65rem;border:1px solid #e0e8f0;border-radius:10px;background:#fff;text-align:start;color:#425b73;cursor:pointer}
#student-space .gs-micro-slide>span{grid-row:span 2;color:#8a9eb2;font-size:.7rem;font-weight:800}
#student-space .gs-micro-slide b{font-size:.8rem}
#student-space .gs-micro-slide small{color:#8392a2;font-size:.68rem}
#student-space .gs-micro-slide.is-active{border-color:#7da9ca;background:#edf5fb;box-shadow:inset 3px 0 #4b8bb8}
#student-space .gs-micro-observation{margin-top:.7rem;padding:.75rem;border-radius:11px;background:#edf4fa;color:#526d85}
#student-space .gs-micro-observation strong{font-size:.8rem}
#student-space .gs-micro-observation p{margin:.35rem 0 0;font-size:.74rem;line-height:1.65}
#student-space .gs-micro-observe-text{font-weight:750;color:#315f86}
#student-space .gs-micro-disclaimer{margin:.8rem 0 0;color:#7b8794;font-size:.7rem;line-height:1.65}
#student-space .gs-microscope-lab.show-micro-labels .gs-micro-overlay{background:#254e72;color:#fff}
@media(max-width:720px){#student-space .gs-micro-layout{grid-template-columns:1fr}#student-space .gs-micro-slides{grid-template-columns:repeat(2,minmax(0,1fr))}#student-space .gs-micro-canvas{min-height:190px}}
@media(prefers-reduced-motion:reduce){#student-space .gs-micro-art{transition:none}}


/* Expanded human systems atlas */
#student-space .gs-anatomy-figure [data-organ-system="urinary"].is-highlighted{filter:drop-shadow(0 0 7px rgba(183,111,123,.8))}
#student-space .gs-anatomy-figure [data-organ-system="skeletal"].is-highlighted{filter:drop-shadow(0 0 7px rgba(165,132,78,.8))}
#student-space .gs-anatomy-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:560px){#student-space .gs-anatomy-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Interactive photosynthesis factors experiment */
#student-space .gs-photosynthesis-experiment{margin:1.25rem 0;padding:clamp(1rem,2.5vw,1.5rem);border:1px solid #dce9dc;border-radius:20px;background:linear-gradient(145deg,#f2f9ed,#fff 72%);box-shadow:0 8px 22px rgba(43,94,48,.055)}
#student-space .gs-experiment-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
#student-space .gs-experiment-heading h3{margin:.3rem 0;color:#326c43;font-size:clamp(1.1rem,2.2vw,1.45rem)}
#student-space .gs-experiment-heading p{margin:0;color:#6e806f;font-size:.86rem;line-height:1.7}
#student-space .gs-experiment-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem}
#student-space .gs-experiment-controls{display:grid;gap:.8rem;padding:.9rem;border:1px solid #e0ebdc;border-radius:14px;background:rgba(255,255,255,.85)}
#student-space .gs-experiment-control{display:grid;gap:.35rem;color:#405f45}
#student-space .gs-experiment-control>span{display:flex;align-items:center;justify-content:space-between;gap:.6rem}
#student-space .gs-experiment-control b{font-size:.84rem}
#student-space .gs-experiment-control output{min-width:52px;color:#287444;font-size:.8rem;font-weight:850;text-align:end}
#student-space .gs-experiment-control input{width:100%;accent-color:#398b56;cursor:pointer}
#student-space .gs-experiment-control small{color:#879487;font-size:.7rem}
#student-space .gs-experiment-reset{justify-self:start;padding:.55rem .8rem;border:1px solid #cfe0cd;border-radius:9px;background:#f1f7ee;color:#356b42;font:inherit;font-size:.77rem;font-weight:750;cursor:pointer}
#student-space .gs-experiment-result{display:flex;flex-direction:column;justify-content:center;gap:.8rem;padding:1rem;border:1px solid #e0ebdc;border-radius:14px;background:#fff}
#student-space .gs-experiment-result-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem;color:#637765;font-size:.8rem}
#student-space .gs-experiment-result-top strong{color:#287444;font-size:1.6rem;font-variant-numeric:tabular-nums}
#student-space .gs-experiment-meter{height:13px;overflow:hidden;border-radius:99px;background:#e8eee5}
#student-space .gs-experiment-meter span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#a6ce72,#368b55);transition:width .2s ease}
#student-space .gs-experiment-gauges{display:grid;gap:.4rem}
#student-space .gs-experiment-gauges>div{display:flex;justify-content:space-between;gap:.5rem;padding:.4rem .55rem;border-radius:8px;background:#f4f8f1;color:#6c7c6a;font-size:.75rem}
#student-space .gs-experiment-gauges b{color:#386c42;font-variant-numeric:tabular-nums}
#student-space .gs-experiment-limiter{padding:.7rem;border-inline-start:4px solid #d6a64b;border-radius:9px;background:#fff8e9}
#student-space .gs-experiment-limiter strong{color:#8a672b;font-size:.76rem}
#student-space .gs-experiment-limiter p{margin:.25rem 0 0;color:#765a2c;font-weight:850}
#student-space .gs-experiment-explain{margin:0;color:#647866;font-size:.76rem;line-height:1.7}
#student-space .gs-experiment-note{margin:.75rem 0 0;color:#819080;font-size:.7rem;line-height:1.65}
@media(max-width:680px){#student-space .gs-experiment-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#student-space .gs-experiment-meter span{transition:none}}


/* Level-based learning routes */
#student-space .gs-level-paths{margin:1.25rem 0;padding:clamp(1rem,2.5vw,1.5rem);border:1px solid #dce8e6;border-radius:20px;background:linear-gradient(145deg,#f1f8f7,#fff 70%)}
#student-space .gs-level-paths-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
#student-space .gs-level-paths-heading h3{margin:.3rem 0;color:#285e5a;font-size:clamp(1.1rem,2.2vw,1.45rem)}
#student-space .gs-level-paths-heading p{margin:0;color:#6d817d;font-size:.84rem;line-height:1.7}
#student-space .gs-level-paths-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}
#student-space .gs-level-path-card{min-width:0;padding:.85rem;border:1px solid #e0eae7;border-radius:13px;background:#fff}
#student-space .gs-level-path-card.is-current{border-color:#79b4a5;background:#f0f8f5;box-shadow:inset 0 0 0 1px rgba(57,132,111,.1)}
#student-space .gs-level-path-top{display:flex;align-items:center;justify-content:space-between;gap:.4rem}
#student-space .gs-level-path-top>span{display:grid;place-items:center;min-width:48px;height:28px;padding:0 .45rem;border-radius:8px;background:#e7f1ef;color:#326d64;font-size:.76rem;font-weight:850}
#student-space .gs-level-path-top small{color:#39826f;font-size:.66rem;font-weight:800}
#student-space .gs-level-path-card h4{margin:.65rem 0 .35rem;color:#315f58;font-size:.94rem}
#student-space .gs-level-path-card>p{min-height:3.8em;margin:0;color:#71817d;font-size:.74rem;line-height:1.7}
#student-space .gs-level-path-links{display:grid;gap:.35rem;margin-top:.65rem}
#student-space .gs-level-path-links button{display:flex;align-items:center;gap:.35rem;padding:.42rem .5rem;border:1px solid #e6eeeb;border-radius:8px;background:#f8fbfa;color:#3f6e66;text-align:start;font:inherit;font-size:.72rem;cursor:pointer}
#student-space .gs-level-path-links button:hover{border-color:#9bc9bd;background:#edf6f3}
#student-space .gs-level-path-links button span{color:#579889}
#student-space .gs-level-paths-note{margin:.8rem 0 0;color:#7a8985;font-size:.72rem;line-height:1.7}
#student-space .gs-level-paths-note a{color:#287d70;font-weight:800;text-decoration:none}
#student-space .gs-level-path-track{display:inline-block;margin-top:.45rem;padding:.3rem .55rem;border-radius:7px;background:#edf4f2;color:#5c756e;font-size:.68rem}
#student-space [id$="-title"]{scroll-margin-top:5rem}
@media(max-width:760px){#student-space .gs-level-paths-grid{grid-template-columns:1fr}#student-space .gs-level-path-card>p{min-height:0}}


/* Adaptive review cards for the newly tracked interactive quizzes */
#student-space .gs-review-jump{width:100%;border:0;text-align:start;font:inherit;cursor:pointer}
#student-space .gs-review-jump:focus-visible{outline:3px solid #d6ad50;outline-offset:3px}


/* Real microscope photographs paired with the educational microscope schematics */
#student-space .gs-micro-real-sources{display:grid;gap:.45rem;margin-top:.7rem}
#student-space .gs-micro-source-card{display:flex;align-items:center;gap:.65rem;padding:.5rem;border:1px solid #e1eaf1;border-radius:10px;background:#f8fbfd;color:#3d5c76;text-decoration:none}
#student-space .gs-micro-source-card .gs-science-media-photo{flex-basis:82px;width:82px;min-height:66px}
#student-space .gs-micro-source-card .gs-science-media-photo img{min-height:66px;max-height:82px}
#student-space .gs-micro-source-card>span:last-child{display:grid;gap:.25rem;min-width:0}
#student-space .gs-micro-source-card strong{font-size:.76rem}
#student-space .gs-micro-source-card .gs-science-media-credit{font-size:.65rem!important;line-height:1.45}
#student-space .gs-micro-source-card{display:none}
#student-space .gs-microscope-lab[data-active-slide="onion"] [data-micro-source="onion"],
#student-space .gs-microscope-lab[data-active-slide="stomata"] [data-micro-source="stomata"],
#student-space .gs-microscope-lab[data-active-slide="blood"] [data-micro-source="blood"],
#student-space .gs-microscope-lab[data-active-slide="leaf"] [data-micro-source="leaf"]{display:flex}

/* Student dashboard entry to the interactive SVT models */
#student-space .gs-continue-model-link{display:flex;align-items:center;gap:13px;margin:14px 0;padding:15px 18px;border:1px solid #cfe4d4;border-radius:17px;background:linear-gradient(110deg,#edf8ef,#e0f0e4);color:#245b3b;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}
#student-space .gs-continue-model-link>span:first-child{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:13px;background:#ffffffb8;font-size:1.5rem}
#student-space .gs-continue-model-link>span:nth-child(2){display:grid;gap:2px;min-width:0}
#student-space .gs-continue-model-link strong{font-size:.98rem}
#student-space .gs-continue-model-link small{color:#5e7967;line-height:1.6}
#student-space .gs-continue-model-link>b{margin-inline-start:auto;font-size:1.2rem}
#student-space .gs-continue-model-link:hover{transform:translateY(-2px);box-shadow:0 8px 20px #245b3b18}
#student-space .gs-continue-model-link:focus-visible{outline:3px solid #28734a;outline-offset:3px}
.gs-dark #student-space .gs-continue-model-link{background:linear-gradient(110deg,#1e3d2b,#254b34);border-color:#426d50;color:#e5f4e8}
.gs-dark #student-space .gs-continue-model-link small{color:#c1d9c7}
@media(prefers-reduced-motion:reduce){#student-space .gs-continue-model-link{transition:none}#student-space .gs-continue-model-link:hover{transform:none}}


/* FINAL RESOURCE-CARD CASCADE FIX
   visual-refresh.css is loaded after styles.css. Keep this final, scoped
   layout authoritative so the general .content-grid>.content-card rules
   cannot collapse the two dedicated resource panels. */
.content-grid > .content-card.file-resource-card,
.content-grid > .track-content-group > .content-grid > .content-card.file-resource-card {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: .75rem !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
.content-card.file-resource-card > .file-card-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  grid-template-areas: "preview details" !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  gap: .75rem !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  direction: ltr !important;
}
.content-card.file-resource-card > .file-card-layout > .file-preview-panel,
.content-card.file-resource-card > .file-card-layout > .file-info-panel {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  float: none !important;
  inset: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: .75rem !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  border: 1px solid #cbded2 !important;
  border-radius: 14px !important;
}
.content-card.file-resource-card > .file-card-layout > .file-preview-panel {
  grid-area: preview !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  background: #f0f4f2 !important;
}
.content-card.file-resource-card .file-preview-panel > .content-card-thumbnail,
.content-card.file-resource-card .file-preview-panel .pdf-thumbnail,
.content-card.file-resource-card .file-preview-panel .image-thumbnail {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
.content-card.file-resource-card .file-preview-panel .pdf-thumbnail canvas,
.content-card.file-resource-card .file-preview-panel .image-thumbnail img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: top center !important;
}
.content-card.file-resource-card > .file-card-layout > .file-info-panel {
  grid-area: details !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: .65rem !important;
  background: #fff !important;
  direction: rtl !important;
  text-align: start !important;
  overflow-wrap: anywhere !important;
}
.content-card.file-resource-card .file-info-panel > h3,
.content-card.file-resource-card .file-info-panel > .file-name {
  display: block !important;
  position: static !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
}
.content-card.file-resource-card .file-info-panel > .card-actions {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: .5rem !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: .15rem 0 0 !important;
  padding: 0 !important;
}
.content-card.file-resource-card .file-info-panel > .card-actions a,
.content-card.file-resource-card .file-info-panel > .card-actions button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  height: auto !important;
  margin: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  writing-mode: horizontal-tb !important;
  text-align: center !important;
}
.content-card.file-resource-card .file-info-panel > .gs-tools {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: .3rem !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-top: auto !important;
  padding-top: .45rem !important;
}
.content-card.file-resource-card .file-info-panel > .gs-tools > .gs-tool {
  display: inline-flex !important;
  flex: 1 1 0 !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 34px !important;
}
@media (max-width: 640px) {
  .content-grid > .content-card.file-resource-card,
  .content-grid > .track-content-group > .content-grid > .content-card.file-resource-card {
    grid-column: 1 / -1 !important;
  }
  .content-card.file-resource-card > .file-card-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "preview" "details" !important;
    gap: .55rem !important;
  }
  .content-card.file-resource-card > .file-card-layout > .file-preview-panel,
  .content-card.file-resource-card > .file-card-layout > .file-info-panel {
    padding: .55rem !important;
    border-radius: 11px !important;
  }
}


/* PDF preview priority: show the complete first page in a larger, clearer frame.
   The preview receives most of the card width; the original page ratio is kept. */
.content-card.file-resource-card > .file-card-layout {
  grid-template-columns: minmax(0, 1.9fr) minmax(220px, .8fr) !important;
  grid-template-areas: "preview details" !important;
  gap: .9rem !important;
}
.content-card.file-resource-card > .file-card-layout > .file-preview-panel {
  min-width: 0 !important;
  padding: .65rem !important;
  border: 2px solid #a9cbb5 !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, #eaf2ed, #f7faf8) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 8px 22px rgba(25,75,49,.10) !important;
  overflow: visible !important;
}
.content-card.file-resource-card .file-preview-panel > .pdf-thumbnail,
.content-card.file-resource-card .file-preview-panel > .image-thumbnail,
.content-card.file-resource-card .file-preview-panel > .content-card-thumbnail {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  background: transparent !important;
}
.content-card.file-resource-card .file-preview-panel .pdf-thumbnail canvas,
.content-card.file-resource-card .file-preview-panel .image-thumbnail img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: top center !important;
  background: #fff !important;
  box-shadow: 0 3px 14px rgba(20,48,34,.16) !important;
}
.content-card.file-resource-card > .file-card-layout > .file-info-panel {
  min-width: 0 !important;
}
@media (max-width: 640px) {
  .content-card.file-resource-card > .file-card-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "preview" "details" !important;
  }
  .content-card.file-resource-card > .file-card-layout > .file-preview-panel {
    padding: .5rem !important;
  }
}


/* Final preview sizing: dominant image area with a frame that hugs the page. */
.content-card.file-resource-card > .file-card-layout {
  grid-template-columns: minmax(0, 3fr) minmax(180px, .72fr) !important;
  grid-template-areas: "preview details" !important;
  align-items: start !important;
  gap: .8rem !important;
}
.content-card.file-resource-card > .file-card-layout > .file-preview-panel {
  align-self: start !important;
  min-width: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 2px solid #8db99d !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(25,75,49,.14) !important;
  box-sizing: border-box !important;
}
.content-card.file-resource-card > .file-card-layout > .file-preview-panel > .content-card-thumbnail {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
.content-card.file-resource-card .file-preview-panel .pdf-thumbnail canvas,
.content-card.file-resource-card .file-preview-panel .image-thumbnail img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center top !important;
  vertical-align: top !important;
}
.content-card.file-resource-card > .file-card-layout > .file-info-panel {
  align-self: start !important;
  min-width: 0 !important;
}
@media (max-width: 640px) {
  .content-card.file-resource-card > .file-card-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "preview" "details" !important;
  }
  .content-card.file-resource-card > .file-card-layout > .file-preview-panel {
    width: 100% !important;
  }
}


/* Resource cards: ensure the parent grid does not constrain preview/detail layout.
   The old parent auto-fill grid could force details to a wider column than the preview. */
.content-grid:has(> .content-card.file-resource-card),
.content-grid:has(> .track-content-group > .content-grid > .content-card.file-resource-card) {
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
}
.content-grid > .content-card.file-resource-card,
.content-grid > .track-content-group > .content-grid > .content-card.file-resource-card {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}
.content-card.file-resource-card > .file-card-layout {
  grid-template-columns: minmax(0, 4fr) minmax(150px, .7fr) !important;
  grid-template-areas: "preview details" !important;
  align-items: start !important;
  gap: .8rem !important;
  width: 100% !important;
}
.content-card.file-resource-card > .file-card-layout > .file-preview-panel {
  grid-area: preview !important;
  width: 100% !important;
  min-width: 0 !important;
  align-self: start !important;
}
.content-card.file-resource-card > .file-card-layout > .file-info-panel {
  grid-area: details !important;
  width: 100% !important;
  min-width: 0 !important;
  align-self: start !important;
}
@media (max-width: 640px) {
  .content-grid:has(> .content-card.file-resource-card),
  .content-grid:has(> .track-content-group > .content-grid > .content-card.file-resource-card) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .content-card.file-resource-card > .file-card-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "preview" "details" !important;
  }
}
