/* Shared EMS screen treatment for Admin, Team and Student module pages. */
:root{--ems-polish-navy:var(--ems-text,#102b50);--ems-polish-blue:var(--ems-primary,#176bd2);--ems-polish-magenta:var(--ems-accent,#b42b79);--ems-polish-bg:color-mix(in srgb,var(--ems-primary,#176bd2) 4%,white);--ems-polish-line:color-mix(in srgb,var(--ems-primary,#176bd2) 18%,white);--ems-polish-text:var(--ems-text,#17345d);--ems-polish-muted:color-mix(in srgb,var(--ems-text,#60748d) 68%,white)}
@media screen{
html,body{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:100%!important;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important}
*,*::before,*::after{box-sizing:border-box}
main,main.wrap,main.page,.page,.page-wrap,.container,.content,.content-wrap,.shell{width:100%!important;max-width:1440px!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;margin-left:auto!important;margin-right:auto!important}
html,body{max-width:100%!important;background:var(--ems-polish-bg)!important;color:var(--ems-polish-text)!important;font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif!important;font-size:15px!important;line-height:1.5!important}
body>header.top,body>header.bar{background:linear-gradient(105deg,var(--ems-polish-navy),color-mix(in srgb,var(--ems-primary,#164274) 78%,black))!important;color:#fff!important;box-shadow:0 6px 20px #102b501b!important}
body>header.top .brand,body>header.bar .team-brand{color:#fff!important}
body>header.top .brand small,body>header.bar .team-brand small{color:#dce8f7!important}
main.wrap,main.page,.page{width:100%!important;max-width:1440px!important;margin:0 auto!important;padding:12px clamp(12px,1.6vw,22px)!important}
main>.hero,main>header.head,main>.head,.hero,.head,.page-header,.module-header{background:#fff!important;color:var(--ems-polish-text)!important;border:1px solid var(--ems-polish-line)!important;border-left:4px solid var(--ems-polish-magenta)!important;border-radius:14px!important;padding:16px 18px!important;margin:0 0 16px!important;box-shadow:0 7px 22px #12345d0d!important}
h1,h2,h3{line-height:1.25!important;color:var(--ems-primary,#173f75)!important;border-bottom:1px solid var(--ems-polish-line)!important;padding-bottom:.42em!important}h1{font-size:clamp(22px,1.8vw,28px)!important}h2{font-size:clamp(19px,1.55vw,24px)!important}h3{font-size:clamp(17px,1.35vw,21px)!important}
.hero h1,.head h1{font-size:clamp(22px,1.9vw,28px)!important;margin:0 0 5px!important}
.hero p,.head p{color:var(--ems-polish-muted)!important;margin:4px 0 0!important}
.kicker{color:var(--ems-polish-blue)!important;font-size:11px!important;letter-spacing:.12em!important;font-weight:900!important}
.card,.toolbar,.summary,.roster,.panel,.notice:not(.error){background:#fff!important;color:var(--ems-polish-text)!important;border-color:var(--ems-polish-line)!important}
.muted,.hint{color:var(--ems-polish-muted)!important}
.btn.primary,button.primary,.primary,[type=submit]{background:var(--ems-primary,#2468c7)!important;border-color:var(--ems-primary,#2468c7)!important;color:#fff!important}
.btn.gold,button.gold,.gold{background:var(--ems-secondary,#f2b632)!important;border-color:var(--ems-secondary,#dda719)!important;color:var(--ems-text,#17345d)!important}
input,select,textarea{border-color:#c8d8ed!important;color:#17345d!important}
}
@media(max-width:700px){main.wrap,main.page,.page{max-width:100%!important;padding:12px!important}.hero,.head{padding:13px!important}}
@media print{main.wrap,main.page,.page{max-width:none!important;padding:0!important}}

/* Shared mobile guardrails for Admin, Team and Student modules. */
@media screen and (max-width:760px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  body :is(main,.wrap,.page,.container,.shell,.content,.content-wrap,.card,.panel,.section,.toolbar,.summary){min-width:0!important;max-width:100%!important}
  body :is(img,video,canvas,iframe,svg){max-width:100%!important}
  body :is(input,select,textarea){min-width:0!important;max-width:100%!important;font-size:16px!important}
  body :is(button,.btn,a.btn,[role=button]){min-height:42px;touch-action:manipulation}
  body :is(.table-wrap,.tablewrap,.table-responsive,.table-container,.tableContainer,.scroll,.overflow-auto,[style*="overflow:auto"],[style*="overflow: auto"]){width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch!important}
  body :is(.formgrid,.formGrid,.grid2,.grid3,.filter-grid,.filters-grid){grid-template-columns:minmax(0,1fr)!important}
  body :is(.actions,.toolbar,.filters,.row,.tabs,.tabGroups){max-width:100%!important;flex-wrap:wrap!important}
  body :is(.modal,.modalBox,.dialog,.drawer){max-width:calc(100vw - 16px)!important}
}

/* One page-heading treatment for embedded Admin, Team, Student and Examination screens. */
@media screen{
main>:is(.hero,.head,.page-header,.module-header,.fp-scope-header),main .fp-home-hero,
body.fp-admin-embedded main>:is(.hero,.head,.page-header,.module-header,.fp-home-hero,.fp-scope-header){
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  background:#fff!important;color:#17345d!important;border:1px solid #d6e2f1!important;
  border-left:4px solid var(--ems-polish-magenta)!important;border-radius:15px!important;
  padding:18px 20px!important;margin:0 0 16px!important;box-shadow:0 8px 24px #17345d0c!important
}
main>:is(.hero,.head,.page-header,.module-header,.fp-scope-header) h1,
main>:is(.hero,.head,.page-header,.module-header,.fp-scope-header) h2,
main .fp-home-hero h1,main .fp-home-hero h2,
main>:is(.hero,.head,.page-header,.module-header,.fp-scope-header) .title{color:var(--ems-polish-blue)!important;border:0!important;padding:0!important}
main>:is(.hero,.head,.page-header,.module-header,.fp-scope-header) p,main .fp-home-hero p{color:#60748d!important}
main>:is(.hero,.head,.page-header,.module-header,.fp-scope-header):not(:has(.kicker,.fp-home-eyebrow,.fp-dashboard-kicker))::before{
  content:'EMS WORKSPACE';display:block;margin:0 0 5px;color:var(--ems-polish-blue);font-size:11px;font-weight:900;letter-spacing:.12em
}
}
@media(max-width:700px){main>:is(.hero,.head,.page-header,.module-header,.fp-scope-header),main .fp-home-hero{padding:14px!important}}

/* Keep the Team workspace readable at ordinary browser zoom. */
@media screen{body:has(.staff-content) .wrap{max-width:1380px!important;padding:12px!important;gap:14px!important}body:has(.staff-content) .staff-menu{font-size:14px!important}body:has(.staff-content) .staff-content .stat{font-size:clamp(22px,1.8vw,28px)!important}}

/* Central page-top system: edit this block once for Admin, Team and Student modules. */
@media screen{
:root{--fp-common-top-accent:var(--ems-accent,#18a66a);--fp-common-top-title:var(--ems-primary,#bd2118);--fp-common-top-kicker:var(--ems-primary,#176bd2);--fp-common-top-border:var(--ems-polish-line,#d6e2f1);--fp-common-top-muted:var(--ems-polish-muted,#60748d)}
body>main>:is(.hero,.head,.page-header,.module-header,.fp-scope-header),
body>main>header:is(.top,.bar,.head),
body>main .fp-home-hero,
body>main .fp-common-page-top{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0 0 16px!important;padding:18px 22px!important;border:1px solid var(--fp-common-top-border)!important;
  border-left:4px solid var(--fp-common-top-accent)!important;border-radius:16px!important;
  background:#fff!important;color:#17345d!important;box-shadow:0 9px 26px #17345d0c!important
}
body>main>.head{display:block!important;text-align:left!important}
body>main>.head>*{max-width:100%!important}
body>main>:is(.hero,.head,.page-header,.module-header,.fp-scope-header) :is(h1,h2),
body>main .fp-home-hero :is(h1,h2),body>main .fp-common-page-top :is(h1,h2){
  margin:0!important;padding:0!important;border:0!important;color:var(--fp-common-top-title)!important;
  font-size:clamp(22px,2vw,30px)!important;line-height:1.2!important;font-weight:850!important
}
body>main>:is(.hero,.head,.page-header,.module-header,.fp-scope-header) :is(p,.description),
body>main .fp-home-hero :is(p,.description),body>main .fp-common-page-top :is(p,.description){
  margin:8px 0 0!important;color:var(--fp-common-top-muted)!important;font-size:clamp(14px,1.1vw,18px)!important;line-height:1.5!important
}
body>main>:is(.hero,.head,.page-header,.module-header,.fp-scope-header):not(:has(.kicker,.fp-home-eyebrow,.fp-dashboard-kicker,.eyebrow,.fp-common-kicker))::before,
body>main .fp-common-page-top:not(:has(.kicker,.fp-common-kicker))::before{
  content:'EMS WORKSPACE';display:block;margin:0 0 5px;color:var(--fp-common-top-kicker);font-size:11px;font-weight:900;letter-spacing:.12em
}
}
@media(max-width:700px){body>main>:is(.hero,.head,.page-header,.module-header,.fp-scope-header),body>main .fp-home-hero,body>main .fp-common-page-top{padding:14px 15px!important;margin-bottom:12px!important}}
