/* SchoolLAI Unified Design V200 — additive, scope-safe, 2026-11-09.
   Reference: secondary1 SkyGlass/Living Sidebar. Functional controls and data untouched. */
html[data-sl-edition]{
  --sl-accent:#2475c8;--sl-alt:#12a69b;--sl-ink:#183650;
  --sl-soft:#ecf5ff;--sl-border:#d3e6f6;--sl-glow:rgba(31,128,192,.12);
}
html[data-sl-edition="elementary"]{
  --sl-accent:#078f86;--sl-alt:#3b79d6;--sl-ink:#154959;
  --sl-soft:#e9faf6;--sl-border:#caeae4;--sl-glow:rgba(23,163,143,.13);
}
html[data-sl-edition="secondary1"]{
  --sl-accent:#206fce;--sl-alt:#14a898;--sl-ink:#1b3b64;
  --sl-soft:#eaf3ff;--sl-border:#d0e2fa;--sl-glow:rgba(42,107,215,.12);
}
html[data-sl-edition="secondary2"]{
  --sl-accent:#3655b5;--sl-alt:#198d9f;--sl-ink:#20335d;
  --sl-soft:#eef0ff;--sl-border:#d8dcfa;--sl-glow:rgba(68,75,183,.13);
}
html[data-sl-edition="campus"]{
  --sl-accent:#2464a9;--sl-alt:#10a498;--sl-ink:#223957;
  --sl-soft:#eaf7fa;--sl-border:#cee6f0;--sl-glow:rgba(33,107,175,.13);
}
html[data-sl-edition="vocational"]{
  --sl-accent:#9b5a1b;--sl-alt:#247b9c;--sl-ink:#4f3d30;
  --sl-soft:#fff5e9;--sl-border:#f3dfc8;--sl-glow:rgba(183,116,36,.13);
}
@supports (color:color-mix(in srgb,#fff,#000)){
  html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell aside.nd-sidebar-layout.nd-v5-sidebar{
    border-color:var(--sl-border)!important;
    background:radial-gradient(ellipse at 95% 0%,var(--sl-glow),transparent 38%),
      linear-gradient(155deg,#fff 0%,var(--sl-soft) 58%,#fff 100%)!important;
    box-shadow:0 18px 48px var(--sl-glow),inset 0 1px #fff!important;
  }
}
html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell aside.nd-sidebar-layout .nd-v5-brandmark{
  background:linear-gradient(140deg,var(--sl-accent),var(--sl-alt))!important;
  border-color:rgba(255,255,255,.65)!important;
  box-shadow:0 7px 22px var(--sl-glow)!important;
}
html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell aside.nd-sidebar-layout .nd-school-name{
  color:var(--sl-ink)!important;
}
html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group[data-compact="1"][data-open="1"]{
  box-shadow:0 8px 22px var(--sl-glow)!important;
}
html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item.active,
html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell aside.nd-sidebar-layout nav.nd-sidebar-menu>.nd-menu-group>a.nd-shell-menu-item[aria-current="page"]{
  border-color:var(--sl-border)!important;
  background:linear-gradient(125deg,var(--sl-soft),#fff)!important;
  box-shadow:0 3px 15px var(--sl-glow)!important;
}
html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell :is(.nd-admin-dashboard,.nd-dashboard-shell,.nd-page-shell,.nd-panel-content){
  accent-color:var(--sl-accent);
}
html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell :is(.nd-page-title,.nd-dashboard-title,.nd-section-title){
  color:var(--sl-ink);
  text-wrap:balance;
}
html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell :is(.nd-card,.nd-summary-card,.nd-stat-card,.nd-v5-card){
  border-radius:18px;
}
html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell :is(input,textarea,select):not([type="checkbox"]):not([type="radio"]){
  min-height:38px;
  font:inherit;
}
html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell :is(input,textarea,select,button,a):focus-visible{
  outline:3px solid var(--sl-alt)!important;outline-offset:3px!important;
}
html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell :is(.nd-primary-btn,.nd-btn-primary,.nd-primary-action){
  background:linear-gradient(110deg,var(--sl-accent),var(--sl-alt))!important;
  color:#fff!important;
  border-color:transparent!important;
}
html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell :is(.nd-primary-btn,.nd-btn-primary,.nd-primary-action):disabled{
  filter:grayscale(.55);opacity:.55;
}
html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell .nd-sidebar-menu a{
  text-decoration:none;
}
html[data-sl-edition] body.skyglass-v158-login :is(input,button):focus-visible{
  outline:3px solid var(--sl-alt)!important;outline-offset:3px!important;
}
@media(max-width:768px){
  html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell{
    min-width:0;max-width:100%;
  }
  html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell :is(.nd-page-title,.nd-dashboard-title){
    overflow-wrap:anywhere;
  }
  html[data-sl-edition] body.skyglass-v158 main.nd-panel-shell :is(input,textarea,select){
    max-width:100%;
  }
}
@media(prefers-reduced-motion:reduce){
  html[data-sl-edition] body.skyglass-v158 :is(button,a){transition:none!important}
}

/* SchoolLAI Unified Design V202: semantic grade tokens and responsive role shells.
   Presentation only; never modify app state, scores or permissions.
   Native Next apps can use data-school-edition without nginx JS. */
:root[data-school-edition="elementary"],:root[data-sl-edition="elementary"]{
 --sl-accent:#078f86;--sl-alt:#3b79d6;--sl-ink:#154959;
 --sl-soft:#e9faf6;--sl-border:#caeae4;--sl-glow:rgba(23,163,143,.13);
}
:root[data-school-edition="secondary1"],:root[data-sl-edition="secondary1"]{
 --sl-accent:#206fce;--sl-alt:#14a898;--sl-ink:#1b3b64;
 --sl-soft:#eaf3ff;--sl-border:#d0e2fa;--sl-glow:rgba(42,107,215,.12);
}
:root[data-school-edition="secondary2"],:root[data-sl-edition="secondary2"]{
 --sl-accent:#3655b5;--sl-alt:#198d9f;--sl-ink:#20335d;
 --sl-soft:#eef0ff;--sl-border:#d8dcfa;--sl-glow:rgba(68,75,183,.13);
}
:root[data-school-edition="campus"],:root[data-sl-edition="campus"]{
 --sl-accent:#2464a9;--sl-alt:#10a498;--sl-ink:#223957;
 --sl-soft:#eaf7fa;--sl-border:#cee6f0;--sl-glow:rgba(33,107,175,.13);
}
:root[data-school-edition="vocational"],:root[data-sl-edition="vocational"]{
 --sl-accent:#9b5a1b;--sl-alt:#247b9c;--sl-ink:#4f3d30;
 --sl-soft:#fff5e9;--sl-border:#f3dfc8;--sl-glow:rgba(183,116,36,.13);
}
:root:is([data-school-edition],[data-sl-edition]){
 --sl-radius-card:18px;--sl-radius-input:12px;--sl-focus:#257bcb;
 --sl-space-xs:6px;--sl-space-sm:10px;--sl-space-md:16px;
}
:root[data-sl-edition] body, :root[data-school-edition]:not([data-school-edition="elmoadab"]) body{
 font-variant-numeric:normal;
 -webkit-font-smoothing:antialiased;
}
:root[data-sl-edition] :where(main.nd-panel-shell,.nd-admin-dashboard,.nd-dashboard-shell),
:root[data-school-edition]:not([data-school-edition="elmoadab"]) :where(main.nd-panel-shell,.nd-admin-dashboard,.nd-dashboard-shell){
 accent-color:var(--sl-accent,#277ac9);
 min-width:0;
}
:root:not([data-theme*="dark"])[data-sl-edition] main.nd-panel-shell,
:root:not([data-theme*="dark"])[data-school-edition] main.nd-panel-shell{
 --nd-accent:var(--sl-accent,#277ac9);
 --nd-border:var(--sl-border,#dce5ef);
}
:root[data-sl-edition] :where(main.nd-panel-shell,.nd-admin-dashboard,.nd-panel-content) :where(h1,h2,h3),
:root[data-school-edition]:not([data-school-edition="elmoadab"]) :where(main.nd-panel-shell,.nd-admin-dashboard,.nd-panel-content) :where(h1,h2,h3){
 line-height:1.55;
 overflow-wrap:break-word;
}
:root:not([data-theme*="dark"])[data-sl-edition] main.nd-panel-shell :where(.nd-card,.nd-summary-card,.nd-stat-card,.nd-v5-card),
:root:not([data-theme*="dark"])[data-school-edition] main.nd-panel-shell :where(.nd-card,.nd-summary-card,.nd-stat-card,.nd-v5-card){
 border-radius:var(--sl-radius-card);
}
:root[data-sl-edition] :where(main.nd-panel-shell,.nd-admin-dashboard) :is(button,input,select,textarea,a):focus-visible,
:root[data-school-edition]:not([data-school-edition="elmoadab"]) :where(main.nd-panel-shell,.nd-admin-dashboard) :is(button,input,select,textarea,a):focus-visible{
 outline:3px solid var(--sl-accent,#2877ce)!important;
 outline-offset:3px!important;
}
:root[data-sl-edition] :where(main.nd-panel-shell,.nd-admin-dashboard) :is(button,a,input,select,textarea),
:root[data-school-edition]:not([data-school-edition="elmoadab"]) :where(main.nd-panel-shell,.nd-admin-dashboard) :is(button,a,input,select,textarea){
 -webkit-tap-highlight-color:rgba(38,115,204,.08);
}
:root[data-sl-edition] :where(main.nd-panel-shell,.nd-admin-dashboard) input:not([type="checkbox"]):not([type="radio"]),
:root[data-school-edition]:not([data-school-edition="elmoadab"]) :where(main.nd-panel-shell,.nd-admin-dashboard) input:not([type="checkbox"]):not([type="radio"]){
 border-radius:var(--sl-radius-input);
 max-width:100%;
}
:root[data-sl-edition] main.nd-panel-shell aside.nd-sidebar-layout.nd-v5-sidebar,
:root[data-school-edition]:not([data-school-edition="elmoadab"]) main.nd-panel-shell aside.nd-sidebar-layout.nd-v5-sidebar{
 --nd-accent:var(--sl-accent,#277ac9);
 border-radius:20px;
}
@media(max-width:768px){
 :root[data-sl-edition] :where(main.nd-panel-shell,.nd-admin-dashboard,.nd-panel-content),
 :root[data-school-edition]:not([data-school-edition="elmoadab"]) :where(main.nd-panel-shell,.nd-admin-dashboard,.nd-panel-content){
  min-width:0;max-width:100%;
 }
 :root[data-sl-edition] main.nd-panel-shell :where(input,select,textarea),
 :root[data-school-edition]:not([data-school-edition="elmoadab"]) main.nd-panel-shell :where(input,select,textarea){
  min-width:0;max-width:100%;
 }
 :root[data-sl-edition] :where(main.nd-panel-shell,.nd-admin-dashboard) :where(h1,h2),
 :root[data-school-edition]:not([data-school-edition="elmoadab"]) :where(main.nd-panel-shell,.nd-admin-dashboard) :where(h1,h2){
  overflow-wrap:anywhere;
 }
}
@media(prefers-reduced-motion:reduce){
 :root[data-sl-edition] main.nd-panel-shell :is(button,a),
 :root[data-school-edition]:not([data-school-edition="elmoadab"]) main.nd-panel-shell :is(button,a){transition:none!important}
}

/* V203: nine schools share component tokens. Elmoadab uses secondary1 visual skin with its unique education policy preserved. */
