/* Shared EduStát chrome. Portal routes never receive the school-shell class. */
.school-shell{
  --edu-shell-width:1240px;
  --edu-shell-dark:#123844;
  --edu-shell-accent:#14695b;
  --edu-shell-line:#d7e5e3;
  background:#f2f6f5;
}
.school-shell #sidebar{border-right-color:var(--edu-shell-line)}
.school-shell #sidebar :is(a,summary):focus-visible,.edu-top-brand:focus-visible{outline:2px solid #237c6a;outline-offset:2px}
.school-shell #sidebar .nav-item[aria-current=page]{background:#dcefe9;color:#0f594c}
.school-shell:has(.ed-workspace) :is(#sidebar,#breadcrumb){display:none}
.school-shell:has(.ed-workspace) #mobile-menu{display:none!important}
.edu-top-brand{display:none}
.school-shell:has(.ed-workspace) .edu-top-brand:not([hidden]){display:flex;align-items:center;min-height:44px}
.edu-top-brand img{display:block;max-width:100%;height:auto}
.school-shell .topbar{height:55px;padding-inline:max(18px,calc((100% - var(--edu-shell-width))/2))}
.school-shell #platform-session:not([hidden]){
  padding:5px max(18px,calc((100% - var(--edu-shell-width))/2));
  min-height:36px;background:#eaf5f2;border-bottom:1px solid var(--edu-shell-line);
}
.school-shell #platform-session a{display:inline-flex;align-items:center;min-height:32px}
.school-shell #platform-session a[aria-current=page]{text-decoration:underline;text-underline-offset:4px}
.school-shell #content{max-width:calc(var(--edu-shell-width) + 48px);margin-inline:auto;width:100%;padding:21px 24px 38px}
.school-shell #content:focus{outline:none}
.school-shell #content :is(.ed-workbench,.platform-page){max-width:none;padding:0}
.school-shell #content :is(.ed-heading,.platform-page>.page-heading,#content>.page-heading),
.public-mode .platform-v4 .platform-page>.page-heading{
  padding:16px 22px;margin:0 0 18px;border-radius:14px;background:linear-gradient(112deg,#123844,#164d54);color:#fff;
}
.school-shell #content :is(.ed-heading,.page-heading) h1,.public-mode .platform-page>.page-heading h1{color:#fff;overflow-wrap:anywhere}
.school-shell #content :is(.ed-heading,.page-heading) p,.public-mode .platform-page>.page-heading p{color:#d5eeeb}
.school-shell #content :is(.ed-heading,.page-heading) .button{
  background:#fff;border:1px solid #fff;color:#164841;text-decoration:none;
}
.school-shell #content :is(.ed-heading,.page-heading) .button:hover{background:#e7f5ef}
.school-shell #content :is(.ed-panel,.platform-v4 .panel,.ed-assignment,.ed-card,.ed-filter-panel,.scenario-card){
  border-color:var(--edu-shell-line);border-radius:14px;box-shadow:0 2px 6px #183c480d;
}
.school-shell #content .ed-assignment{border-left:4px solid #b9d9ce}
.school-shell #content .ed-assignment:hover{border-left-color:#21816c}
.school-shell #content .ed-breadcrumb{margin-bottom:10px}
.school-shell .footer{padding-inline:max(18px,calc((100% - var(--edu-shell-width))/2))}

.school-shell .platform-account-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;
}
.school-shell .platform-account-grid>.panel{margin:0}
.school-shell .platform-account-grid>.panel:last-child{grid-column:1/-1}
.school-shell .platform-account-grid .platform-actions{margin-bottom:0}
.school-shell .ed-material-filter{
  display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 18px;
}
.school-shell .ed-material-filter>div{flex:1 1 24rem;max-width:38rem}
.school-shell .ed-material-filter :is(.ed-count,.ed-field){margin:0}
.school-shell :is([data-material-empty],[data-material-search])[hidden]{display:none}
.school-shell .ed-submit-checklist{padding:0;margin:14px 0;list-style:none}
.school-shell .ed-submit-checklist li{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(8rem,auto) auto;align-items:center;
  gap:8px 16px;padding:9px 0;border-top:1px solid var(--edu-shell-line);margin:0;
}
.school-shell .ed-submit-checklist [data-review-detail]{font-size:.88rem;color:#315962}
.school-shell .ed-submit-checklist [data-review-state=todo] [data-review-detail]{color:#764b0a;font-weight:700}
.school-shell .ed-submit-checklist [data-review-state=ready] [data-review-detail]{color:#12614f;font-weight:650}
.school-shell .ed-submit-checklist .button{min-height:36px;font-size:.86rem;justify-self:start}

.ed-work-header .ed-work-meta{justify-content:flex-start;gap:5px 12px}
.ed-work-meta .ed-badge{font-size:.72rem;line-height:1.15;padding:3px 7px}
.ed-work-header .ed-work-back{
  display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:4px 9px;border:1px solid #d5eeeb70;
  border-radius:7px;background:#ffffff0c;color:#e8f6f3;font-size:.82rem;font-weight:650;text-decoration:none;
}
.ed-work-header .ed-work-back:hover{background:#ffffff22;border-color:#d5eeeb}
.ed-work-header .ed-work-back span{font-size:1rem;line-height:1}

/* Public access and the operator's separate sign-in use the same card styling. */
.public-mode .platform-public-header nav .button{min-height:42px;border-radius:9px}
.public-mode .platform-public-header .platform-wordmark img{width:min(158px,48vw);height:auto}
.public-mode .platform-v4 .auth18{border-radius:16px;box-shadow:0 4px 16px #183c4812}
.public-mode .platform-v4 .auth18-story{background:linear-gradient(145deg,#dcefe7,#f1f7f3)}
.edu-operator-access{background:#f2f6f5}
.edu-operator-access .operator-access-card{
  width:min(100% - 32px,500px);min-height:0;margin:clamp(24px,8vh,80px) auto;padding:0;
  border:1px solid #d7e5e3;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 6px 22px #183c4812;
}
.operator-access-head{padding:22px 24px;background:linear-gradient(112deg,#123844,#164d54);color:#fff}
.operator-access-head h1{margin:0;font-size:1.62rem}
.operator-access-head p{margin:7px 0 0;color:#d5eeeb}
.operator-access-body{padding:24px}
.operator-access-body>img{display:block;margin-bottom:20px}
.operator-access-body label,.operator-access-body input{display:block;width:100%}
.operator-access-body label{margin-bottom:6px;font-weight:650}
.operator-access-body input{min-height:44px;padding:8px 11px;border:1px solid #a9c6be;border-radius:8px;font:inherit}
.operator-access-body input:focus-visible{outline:2px solid #237c6a;outline-offset:2px}
.operator-access-body [role=alert]{background:#fff0ec;border-radius:8px;padding:12px}

@media(max-width:760px){
  .school-shell .topbar,.school-shell #platform-session:not([hidden]){padding-inline:14px}
  .school-shell #content{padding:13px 14px 30px}
  .ed-work-header .ed-work-back{min-height:35px}
  .school-shell .platform-account-grid{grid-template-columns:minmax(0,1fr)}
  .school-shell .ed-submit-checklist li{grid-template-columns:minmax(0,1fr) auto}
  .school-shell .ed-submit-checklist .button{grid-column:1/-1}
  .school-shell #content :is(.ed-heading,.platform-page>.page-heading,#content>.page-heading),
  .public-mode .platform-v4 .platform-page>.page-heading{padding:16px 17px;border-radius:12px}
}
@media(max-width:520px){
  .school-shell #platform-session:not([hidden]){gap:2px}
}
@media print{
  .school-shell #platform-session,.ed-work-back{display:none!important}
  .school-shell #content :is(.ed-heading,.page-heading,.ed-work-header){background:none;color:#111;border:1px solid #bbb}
  .school-shell #content :is(.ed-heading,.page-heading,.ed-work-header) :is(h1,p){color:#111}
}
