:root{
  --school-primary:#7357f5;
  --school-primary-dark:#4d35bd;
  --school-ink:#211b3d;
  --school-muted:#6b6580;
  --school-line:rgba(115,87,245,.14);
  --school-surface:#fff;
  --school-bg:#f7f5ff;
  --school-success:#14794b;
  --school-danger:#b42318;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  min-height:100vh;
  font-family:"Inter",sans-serif;
  color:var(--school-ink);
  background:
    radial-gradient(circle at 90% 5%,rgba(255,204,111,.24),transparent 28%),
    radial-gradient(circle at 12% 86%,rgba(115,87,245,.16),transparent 30%),
    var(--school-bg);
}

button,
input,
select{
  font:inherit;
}

button{
  cursor:pointer;
}

[hidden]{
  display:none!important;
}

.school-loading{
  min-height:100vh;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:16px;
  color:var(--school-muted);
}

.school-loading img{
  width:112px;
}

.school-load-error{
  max-width:440px;
  padding:28px;
  text-align:center;
  border:1px solid var(--school-line);
  border-radius:24px;
  background:#fff;
}

.school-load-error strong{
  font-size:1.25rem;
  color:var(--school-ink);
}

.school-load-error a{
  color:var(--school-primary-dark);
  font-weight:800;
}

.school-app{
  min-height:100vh;
}

.school-sidebar{
  position:fixed;
  inset:0 auto 0 0;
  z-index:10;
  width:250px;
  display:flex;
  flex-direction:column;
  padding:28px 20px;
  color:#fff;
  background:linear-gradient(170deg,#30275b,#6f51eb 72%,#8e72ff);
  box-shadow:18px 0 44px rgba(48,39,91,.15);
}

.school-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 8px 36px;
  color:#fff;
  text-decoration:none;
  font-family:"Baloo 2",sans-serif;
  font-size:1.4rem;
  font-weight:800;
}

.school-brand img{
  width:46px;
  height:46px;
  object-fit:contain;
  padding:5px;
  border-radius:14px;
  background:#fff;
}

.school-sidebar nav{
  display:grid;
  gap:10px;
}

.school-nav-item{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:13px 15px;
  overflow:hidden;
  border:0;
  border-radius:15px;
  color:rgba(255,255,255,.76);
  text-align:left;
  font-weight:700;
  background:transparent;
  transition:color .24s ease,background .3s ease,transform .24s ease,box-shadow .3s ease;
}

.school-nav-item::before{
  content:"";
  position:absolute;
  inset:8px auto 8px 5px;
  width:3px;
  border-radius:999px;
  opacity:0;
  transform:scaleY(.25);
  background:#fff;
  box-shadow:0 0 16px rgba(255,255,255,.8);
  transition:opacity .24s ease,transform .3s cubic-bezier(.2,.8,.2,1);
}

.school-nav-item::after{
  content:"";
  position:absolute;
  inset:-55% auto -55% -32%;
  width:30%;
  opacity:0;
  transform:rotate(16deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.24),transparent);
  transition:left .48s ease,opacity .2s ease;
}

.school-nav-item span{
  width:26px;
  font-size:1.2rem;
  text-align:center;
}

.school-nav-item:hover,
.school-nav-item.active{
  color:#fff;
  background:rgba(255,255,255,.14);
}

.school-nav-item:hover{
  transform:translateX(3px);
}

.school-nav-item.active{
  transform:translateX(4px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 10px 24px rgba(31,22,82,.13);
}

.school-nav-item.active::before{
  opacity:1;
  transform:scaleY(1);
}

.school-nav-item.active::after{
  left:115%;
  opacity:1;
}

.school-nav-item span{
  position:relative;
  z-index:1;
  transition:transform .3s cubic-bezier(.2,.8,.2,1);
}

.school-nav-item.active span{
  transform:scale(1.12) rotate(-3deg);
}

.school-sidebar-foot{
  display:grid;
  gap:5px;
  margin-top:auto;
  padding:16px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  background:rgba(255,255,255,.1);
}

.school-sidebar-foot span{
  color:rgba(255,255,255,.7);
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.09em;
}

.school-sidebar-foot strong{
  font-size:.88rem;
}

.school-main{
  min-height:100vh;
  margin-left:250px;
  padding:0 42px 56px;
}

.school-topbar{
  min-height:108px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-bottom:1px solid var(--school-line);
}

.school-topbar h1{
  margin:2px 0 0;
  font-family:"Baloo 2",sans-serif;
  font-size:clamp(1.6rem,3vw,2.25rem);
  line-height:1;
}

.school-kicker{
  color:var(--school-primary-dark);
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.school-account{
  display:flex;
  align-items:center;
  gap:18px;
  text-align:right;
}

.school-account strong,
.school-account span{
  display:block;
}

.school-admin-context{
  display:flex;
  align-items:end;
  gap:12px;
  margin-left:auto;
}

.school-admin-context a{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border-radius:12px;
  color:var(--school-primary-dark);
  font-size:.78rem;
  font-weight:800;
  text-decoration:none;
  background:rgba(115,87,245,.08);
  transition:transform .22s ease,background .22s ease;
}

.school-admin-context>button{
  min-height:42px;
  padding:0 12px;
  border:1px solid rgba(115,87,245,.14);
  border-radius:12px;
  color:#fff;
  font-size:.78rem;
  font-weight:800;
  background:linear-gradient(135deg,var(--school-primary),#9d86ff);
  transition:transform .22s ease,box-shadow .22s ease;
}

.school-admin-context a:hover,
.school-admin-context>button:hover{
  transform:translateY(-2px);
}

.school-admin-context a:hover{
  background:rgba(115,87,245,.14);
}

.school-admin-context label{
  display:grid;
  gap:5px;
  color:var(--school-muted);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.school-admin-context select{
  min-width:210px;
  padding:10px 34px 10px 11px;
  border:1px solid var(--school-line);
  border-radius:12px;
  color:var(--school-ink);
  font-weight:700;
  text-transform:none;
  background:#fff;
}

.school-admin-creator{
  margin-top:24px;
  padding:24px;
  border:1px solid var(--school-line);
  border-radius:24px;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(242,238,255,.94));
  box-shadow:0 20px 46px rgba(70,53,130,.1);
  animation:school-content-rise .36s cubic-bezier(.2,.8,.2,1) both;
}

.school-admin-creator h2{
  margin:5px 0 3px;
  font-family:"Baloo 2",sans-serif;
}

.school-admin-creator p{
  color:var(--school-muted);
}

.school-admin-creator form{
  display:grid;
  grid-template-columns:minmax(190px,1fr) minmax(230px,1fr) auto auto;
  align-items:end;
  gap:12px;
  margin-top:18px;
}

.school-admin-creator label{
  display:grid;
  gap:7px;
  color:var(--school-muted);
  font-size:.78rem;
  font-weight:800;
}

.school-admin-creator input{
  min-height:45px;
  padding:0 12px;
  border:1px solid var(--school-line);
  border-radius:12px;
  background:#fff;
}

.school-account span{
  margin-top:3px;
  color:var(--school-muted);
  font-size:.82rem;
}

.school-account button,
.school-secondary{
  padding:10px 14px;
  border:1px solid var(--school-line);
  border-radius:12px;
  color:var(--school-primary-dark);
  font-weight:800;
  background:#fff;
}

.school-section{
  display:none;
  padding-top:34px;
}

.school-section.active{
  display:block;
}

.school-section.section-leaving{
  display:block;
  pointer-events:none;
}

.school-section.section-leaving.section-forward{
  animation:school-section-out-left .17s ease-in both;
}

.school-section.section-leaving.section-backward{
  animation:school-section-out-right .17s ease-in both;
}

.school-section.section-entering.section-forward{
  animation:school-section-in-right .38s cubic-bezier(.2,.8,.2,1) both;
}

.school-section.section-entering.section-backward{
  animation:school-section-in-left .38s cubic-bezier(.2,.8,.2,1) both;
}

.school-section.section-entering>.school-section-heading,
.school-section.section-entering>.school-hero,
.school-section.section-entering>.school-stats,
.school-section.section-entering>.school-panel,
.school-section.section-entering>.school-group-list,
.school-section.section-entering>.school-report-stats{
  animation:school-content-rise .44s cubic-bezier(.2,.8,.2,1) both;
}

.school-section.section-entering>:nth-child(2){
  animation-delay:.045s;
}

.school-section.section-entering>:nth-child(3){
  animation-delay:.09s;
}

.school-section.section-entering>:nth-child(4){
  animation-delay:.135s;
}

@keyframes school-section-out-left{
  from{opacity:1;transform:translateX(0) scale(1);filter:blur(0)}
  to{opacity:0;transform:translateX(-18px) scale(.992);filter:blur(2px)}
}

@keyframes school-section-out-right{
  from{opacity:1;transform:translateX(0) scale(1);filter:blur(0)}
  to{opacity:0;transform:translateX(18px) scale(.992);filter:blur(2px)}
}

@keyframes school-section-in-right{
  from{opacity:0;transform:translateX(26px) scale(.992);filter:blur(2px)}
  to{opacity:1;transform:translateX(0) scale(1);filter:blur(0)}
}

@keyframes school-section-in-left{
  from{opacity:0;transform:translateX(-26px) scale(.992);filter:blur(2px)}
  to{opacity:1;transform:translateX(0) scale(1);filter:blur(0)}
}

@keyframes school-content-rise{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}

.school-hero{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(260px,.7fr);
  gap:24px;
  padding:clamp(26px,5vw,54px);
  overflow:hidden;
  border-radius:30px;
  color:#fff;
  background:
    radial-gradient(circle at 88% 10%,rgba(255,213,128,.55),transparent 26%),
    linear-gradient(135deg,#382e69,#7659ef);
  box-shadow:0 24px 54px rgba(74,53,164,.2);
}

.school-hero .school-kicker{
  color:#e8ddff;
}

.school-hero h2{
  max-width:650px;
  margin:10px 0 12px;
  font-family:"Baloo 2",sans-serif;
  font-size:clamp(2rem,4.6vw,3.5rem);
  line-height:.98;
}

.school-hero p{
  max-width:650px;
  margin:0 0 24px;
  color:rgba(255,255,255,.82);
  line-height:1.65;
}

.school-primary{
  padding:13px 18px;
  border:0;
  border-radius:14px;
  color:#fff;
  font-weight:800;
  background:linear-gradient(135deg,var(--school-primary),#9d86ff);
  box-shadow:0 14px 26px rgba(86,62,196,.22);
}

.school-hero .school-primary{
  color:var(--school-primary-dark);
  background:#fff;
}

.school-identity-card{
  align-self:center;
  padding:22px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:22px;
  background:rgba(255,255,255,.11);
  backdrop-filter:blur(12px);
}

.school-identity-card span,
.school-identity-card small{
  display:block;
  color:rgba(255,255,255,.75);
}

.school-identity-card code{
  display:block;
  margin:13px 0;
  overflow-wrap:anywhere;
  color:#fff;
  font-size:1rem;
  font-weight:800;
}

.school-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin:24px 0;
}

.school-stats article{
  padding:22px;
  border:1px solid var(--school-line);
  border-radius:20px;
  background:rgba(255,255,255,.9);
  box-shadow:0 16px 34px rgba(70,53,130,.07);
}

.school-stats span{
  color:var(--school-muted);
  font-weight:700;
}

.school-stats strong{
  display:block;
  margin-top:8px;
  font-family:"Baloo 2",sans-serif;
  font-size:2.2rem;
}

.school-panel{
  margin-top:22px;
  padding:24px;
  border:1px solid var(--school-line);
  border-radius:24px;
  background:rgba(255,255,255,.9);
  box-shadow:0 18px 44px rgba(70,53,130,.07);
}

.school-panel-heading,
.school-section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.school-panel-heading h3,
.school-section-heading h2{
  margin:5px 0 0;
  font-family:"Baloo 2",sans-serif;
}

.school-section-heading h2{
  font-size:clamp(1.8rem,4vw,2.7rem);
}

.school-section-heading p{
  margin:5px 0 0;
  color:var(--school-muted);
}

.school-list{
  display:grid;
  gap:10px;
  margin-top:18px;
}

.school-list-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto auto auto auto;
  align-items:center;
  gap:14px;
  padding:14px;
  border:1px solid var(--school-line);
  border-radius:16px;
  background:#fff;
}

.school-avatar{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#fff;
  font-weight:800;
  background:linear-gradient(135deg,var(--school-primary),#a38eff);
}

.school-list-copy{
  min-width:0;
}

.school-list-copy strong,
.school-list-copy span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.school-list-copy span{
  margin-top:4px;
  color:var(--school-muted);
  font-size:.84rem;
}

.school-badge{
  padding:7px 10px;
  border-radius:999px;
  color:var(--school-primary-dark);
  font-size:.76rem;
  font-weight:800;
  background:rgba(115,87,245,.1);
}

.school-badge.pending{
  color:#8a5600;
  background:#fff2d1;
}

.school-link-danger{
  padding:8px 10px;
  border:0;
  color:var(--school-danger);
  font-weight:800;
  background:transparent;
}

.school-link{
  padding:8px 10px;
  border:0;
  color:var(--school-primary-dark);
  font-weight:800;
  background:transparent;
}

.school-empty{
  margin:0;
  padding:20px;
  color:var(--school-muted);
  text-align:center;
}

.school-invite-form{
  display:grid;
  grid-template-columns:minmax(220px,1.2fr) minmax(180px,.7fr) auto;
  align-items:end;
  gap:16px;
}

.school-group-form{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);
  gap:18px;
  margin-top:18px;
}

.school-panel-note{
  margin:10px 0 18px;
  color:var(--school-muted);
  line-height:1.6;
}

.school-assignment-form{
  display:grid;
  grid-template-columns:minmax(200px,1fr) minmax(200px,1fr) auto;
  align-items:end;
  gap:16px;
}

.school-assignment-form label{
  display:grid;
  gap:8px;
  color:var(--school-muted);
  font-size:.82rem;
  font-weight:800;
}

.school-assignment-form select{
  min-height:48px;
  padding:0 14px;
  border:1px solid var(--school-line);
  border-radius:13px;
  color:var(--school-ink);
  outline:none;
  background:#fff;
}

.school-assignment-form button{
  min-height:48px;
}

.school-schedule-block{
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid var(--school-line);
}

.school-schedule-block h4{
  margin:0 0 14px;
  font-family:"Baloo 2",sans-serif;
  font-size:1.15rem;
}

.school-schedule-form{
  display:grid;
  grid-template-columns:minmax(220px,1.2fr) minmax(150px,.7fr) minmax(150px,.7fr) auto;
  align-items:end;
  gap:14px;
}

.school-schedule-form label{
  display:grid;
  gap:8px;
  color:var(--school-muted);
  font-size:.82rem;
  font-weight:800;
}

.school-schedule-form select,
.school-schedule-form input{
  min-height:46px;
  padding:0 12px;
  border:1px solid var(--school-line);
  border-radius:13px;
  color:var(--school-ink);
  font:inherit;
  background:#fff;
}

.school-schedule-form button{
  min-height:46px;
}

.school-group-form>label{
  display:grid;
  gap:8px;
  color:var(--school-muted);
  font-size:.82rem;
  font-weight:800;
}

.school-group-form input,
.school-group-form select{
  min-height:48px;
  padding:0 14px;
  border:1px solid var(--school-line);
  border-radius:13px;
  color:var(--school-ink);
  outline:none;
  background:#fff;
}

.school-group-form fieldset{
  grid-column:1/-1;
  margin:0;
  padding:16px;
  border:1px solid var(--school-line);
  border-radius:16px;
}

.school-group-form legend{
  padding:0 8px;
  color:var(--school-muted);
  font-size:.82rem;
  font-weight:800;
}

.school-group-form-actions{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.group-student-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  max-height:260px;
  overflow:auto;
}

.group-student-option{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border:1px solid var(--school-line);
  border-radius:13px;
  background:#fff;
}

.group-student-option input{
  width:18px;
  min-height:auto;
  height:18px;
}

.group-student-option strong,
.group-student-option small{
  display:block;
}

.group-student-option small{
  margin-top:3px;
  color:var(--school-muted);
}

.school-group-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}

.school-group-card{
  padding:18px;
  border:1px solid var(--school-line);
  border-radius:18px;
  background:#fff;
}

.school-group-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.school-group-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.school-group-card h4{
  margin:4px 0 0;
  font-family:"Baloo 2",sans-serif;
  font-size:1.35rem;
}

.school-group-meta{
  display:grid;
  gap:6px;
  margin:14px 0;
  color:var(--school-muted);
  font-size:.85rem;
}

.school-group-students{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.school-group-students span{
  padding:6px 9px;
  border-radius:999px;
  color:var(--school-primary-dark);
  font-size:.74rem;
  font-weight:700;
  background:rgba(115,87,245,.09);
}

.school-group-courses{
  display:grid;
  gap:8px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--school-line);
  color:var(--school-muted);
  font-size:.78rem;
}

.school-group-courses div{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.school-group-courses>div>span{
  padding:6px 9px;
  border-radius:999px;
  color:var(--school-success);
  font-weight:800;
  background:rgba(20,121,75,.09);
}

.school-group-courses .school-course-assignment-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
}

.school-course-assignment-chip button{
  width:20px;
  height:20px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  color:var(--school-danger);
  font-weight:900;
  line-height:1;
  background:rgba(180,35,24,.1);
}

.school-course-name{
  padding:0!important;
  color:inherit!important;
  background:transparent!important;
}

.school-course-schedule{
  padding:3px 7px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:800;
  background:rgba(115,87,245,.09);
}

.school-course-schedule.upcoming{color:#6b4cc5}
.school-course-schedule.active{color:#14794b}
.school-course-schedule.overdue{color:var(--school-danger);background:rgba(180,35,24,.08)}

.school-course-assignment-chip button:hover,
.school-course-assignment-chip button:focus-visible{
  outline:2px solid rgba(180,35,24,.25);
  outline-offset:2px;
}

.school-invite-form label{
  display:grid;
  gap:8px;
  color:var(--school-muted);
  font-size:.82rem;
  font-weight:800;
}

.school-invite-form input,
.school-invite-form select{
  min-height:48px;
  padding:0 14px;
  border:1px solid var(--school-line);
  border-radius:13px;
  color:var(--school-ink);
  outline:none;
  background:#fff;
}

.school-invite-form input:focus,
.school-invite-form select:focus{
  border-color:var(--school-primary);
  box-shadow:0 0 0 4px rgba(115,87,245,.1);
}

.school-invite-form button{
  min-height:48px;
}

.school-invite-form button:disabled{
  cursor:wait;
  opacity:.62;
}

.school-status{
  min-height:22px;
  margin:14px 0 0;
  color:var(--school-muted);
  font-weight:700;
}

.school-status.success{
  color:var(--school-success);
}

.school-status.error{
  color:var(--school-danger);
}

.school-report-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}

.school-report-stats{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  margin-top:24px;
}

.school-report-stats article{
  padding:18px;
  border:1px solid var(--school-line);
  border-radius:18px;
  background:#fff;
}

.school-report-stats span,
.school-report-stats strong{
  display:block;
}

.school-report-stats span{
  min-height:34px;
  color:var(--school-muted);
  font-size:.78rem;
  font-weight:700;
}

.school-report-stats strong{
  margin-top:7px;
  font-family:"Baloo 2",sans-serif;
  font-size:1.8rem;
}

.school-report-filter{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
  color:var(--school-muted);
}

.school-report-filter label{
  display:grid;
  gap:7px;
  color:var(--school-ink);
  font-size:.82rem;
  font-weight:800;
}

.school-report-filter select{
  min-width:230px;
  padding:11px 12px;
  border:1px solid var(--school-line);
  border-radius:12px;
  color:var(--school-ink);
  background:#fff;
}

.school-report-filter span{
  font-size:.78rem;
}

.school-report-table-wrap{
  overflow:auto;
}

.school-report-table{
  width:100%;
  min-width:850px;
  border-collapse:collapse;
}

.school-report-table th,
.school-report-table td{
  padding:14px 12px;
  border-bottom:1px solid var(--school-line);
  text-align:left;
  vertical-align:middle;
}

.school-report-table th{
  color:var(--school-muted);
  font-size:.72rem;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.school-report-table td{
  font-size:.86rem;
}

.school-report-table td strong,
.school-report-table td small{
  display:block;
}

.school-report-table td small{
  margin-top:3px;
  color:var(--school-muted);
}

.school-report-status{
  display:inline-flex;
  padding:6px 9px;
  border-radius:999px;
  font-size:.74rem;
  font-weight:800;
}

.school-report-status.on-track{
  color:var(--school-success);
  background:#e8f8f0;
}

.school-report-status.attention{
  color:#a15c00;
  background:#fff2d7;
}

button:disabled{
  cursor:not-allowed;
  opacity:.58;
}

@media(max-width:980px){
  .school-sidebar{
    position:static;
    width:auto;
    min-height:auto;
    padding:16px 20px;
  }

  .school-brand{
    margin:0 0 14px;
  }

  .school-sidebar nav{
    grid-template-columns:repeat(5,1fr);
  }

  .school-sidebar-foot{
    display:none;
  }

  .school-main{
    margin-left:0;
    padding:0 22px 42px;
  }

  .school-topbar{
    flex-wrap:wrap;
  }

  .school-admin-context{
    order:3;
    width:100%;
    margin:0 0 16px;
  }

  .school-admin-creator form{
    grid-template-columns:1fr 1fr;
  }

  .school-hero{
    grid-template-columns:1fr;
  }
}

@media(max-width:720px){
  .school-topbar{
    align-items:flex-start;
    padding:20px 0;
  }

  .school-account{
    align-items:flex-end;
    flex-direction:column;
    gap:8px;
  }

  .school-stats{
    grid-template-columns:1fr;
  }

  .school-report-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .school-section-heading{
    align-items:flex-start;
    flex-direction:column;
  }

  .school-report-actions{
    justify-content:flex-start;
  }

  .school-invite-form{
    grid-template-columns:1fr;
  }

  .school-assignment-form{
    grid-template-columns:1fr;
  }

  .school-schedule-form{
    grid-template-columns:1fr;
  }

  .school-group-form,
  .school-group-list{
    grid-template-columns:1fr;
  }

  .group-student-options{
    grid-template-columns:1fr;
  }

  .school-list-row{
    grid-template-columns:auto minmax(0,1fr);
  }

  .school-list-row .school-badge,
  .school-list-row .school-link,
  .school-list-row .school-link-danger{
    grid-column:2;
    justify-self:start;
  }
}

@media(max-width:520px){
  .school-sidebar nav{
    grid-template-columns:1fr;
  }

  .school-main{
    padding-inline:14px;
  }

  .school-topbar{
    display:block;
  }

  .school-account{
    align-items:flex-start;
    margin-top:16px;
    text-align:left;
  }

  .school-admin-context{
    align-items:stretch;
    flex-direction:column;
  }

  .school-admin-context select{
    width:100%;
  }

  .school-admin-creator form{
    grid-template-columns:1fr;
  }

  .school-hero,
  .school-panel{
    padding:20px;
    border-radius:20px;
  }

  .school-report-stats{
    grid-template-columns:1fr;
  }

  .school-report-filter{
    align-items:flex-start;
    flex-direction:column;
  }

  .school-report-filter select{
    min-width:0;
    width:100%;
  }
}

@media(prefers-reduced-motion:reduce){
  .school-nav-item,
  .school-nav-item::before,
  .school-nav-item::after,
  .school-nav-item span,
  .school-section,
  .school-section>*{
    animation:none!important;
    transition:none!important;
  }

  .school-nav-item:hover,
  .school-nav-item.active{
    transform:none;
  }
}

@media print{
  body.printing-report{
    background:#fff;
  }

  body.printing-report .school-sidebar,
  body.printing-report .school-topbar,
  body.printing-report .school-section{
    display:none!important;
  }

  body.printing-report .school-main{
    margin:0;
    padding:0;
  }

  body.printing-report #reportsSection{
    display:block!important;
    padding:0;
  }

  body.printing-report .school-report-actions,
  body.printing-report .school-report-filter label{
    display:none!important;
  }

  body.printing-report .school-report-panel{
    padding:0;
    border:0;
    box-shadow:none;
  }

  body.printing-report .school-report-table-wrap{
    overflow:visible;
  }

  body.printing-report .school-report-table{
    min-width:0;
    font-size:9pt;
  }
}
