/* Shared shell. Platforms differ only by the accent taken from each logo. */
html[data-areej-platform]{
  --areej-ink:#153556;
  --areej-muted:#657c92;
  --areej-line:#e3ecf4;
  --areej-canvas:#f5f8fb;
  --areej-surface:#fff;
  --areej-success:#067647;
  --areej-danger:#b42318;
  --areej-accent:#1050b0;
  --areej-accent-dark:#084090;
  --areej-tint:#e6f0fb;
  --primary:var(--areej-accent);
  --primary-dark:var(--areej-accent-dark);
  --success:var(--areej-success);
  --danger:var(--areej-danger);
  --gray:var(--areej-muted);
  --ink:var(--areej-ink);
  --muted:var(--areej-muted);
  --line:var(--areej-line);
  --bg:var(--areej-canvas);
  color-scheme:light;
}
html[data-areej-platform="assistant"]{--areej-accent:#1050b0;--areej-accent-dark:#084090;--areej-tint:#e6f0fb}
html[data-areej-platform="iep"]{--areej-accent:#5020c0;--areej-accent-dark:#3c18a0;--areej-tint:#f3eefc;--iep-accent:#5020c0;--iep-ink:#211d38;--iep-border:#e7e0f3}
html[data-areej-platform="shadow"]{--areej-accent:#008060;--areej-accent-dark:#006048;--areej-tint:#e6f6f0;--brand:#008060;--brand2:#e6f6f0}
html[data-areej-platform="huroof"]{--areej-accent:#d04000;--areej-accent-dark:#a33200;--areej-tint:#fff1e6}

html[data-areej-platform] body{
  background:var(--areej-canvas)!important;
  color:var(--areej-ink)!important;
}
html[data-areej-platform] .main-content,
html[data-areej-platform] .content{
  background:transparent!important;
  color:var(--areej-ink);
}
html[data-areej-platform] :is(
  .card,.student-card,.stat-card,.feature-card,.goal-card,.modal-content,
  .page-header,.info-box,.iep-container,.iep-objective,.iep-short-goal,.iep-main-goal,
  .welcome-screen,.report-print-view
){
  background:var(--areej-surface)!important;
  color:var(--areej-ink)!important;
  border-color:var(--areej-line)!important;
}
html[data-areej-platform] :is(
  .card p,.card h3,.card h4,.student-card p,.student-info p,.stat-card .label,
  .feature-card p,.page-header p,.page-header h1,.info-box p,.goal-card h4,.goal-card li,
  .empty-state h3,.welcome-screen h1,.nav-section-title
){
  color:var(--areej-ink)!important;
  background:none!important;
  -webkit-text-fill-color:currentColor!important;
}
html[data-areej-platform] .page-header h1,
html[data-areej-platform] .welcome-screen h1,
html[data-areej-platform] .iep-header-brand,
html[data-areej-platform] .card h3,
html[data-areej-platform] .goal-card h4{
  color:var(--areej-accent)!important;
}
html[data-areej-platform] :is(.form-group input,.form-group select,.form-group textarea,.search-box input){
  background:#f8fafc!important;
  color:var(--areej-ink)!important;
  border-color:var(--areej-line)!important;
}
html[data-areej-platform] :is(.btn-primary,button.primary,.print,.generate){
  background:var(--areej-accent)!important;
  color:#fff!important;
  border-color:var(--areej-accent)!important;
}
html[data-areej-platform] .btn-success{background:var(--areej-success)!important;color:#fff!important}
html[data-areej-platform] .btn-danger{background:var(--areej-danger)!important;color:#fff!important}
html[data-areej-platform] #sidebar,
html[data-areej-platform] .app aside{
  background:var(--areej-surface)!important;
  color:var(--areej-ink)!important;
  border-inline-end:1px solid var(--areej-line)!important;
}
html[data-areej-platform] :is(#sidebar .nav-item,.app nav button){
  color:var(--areej-ink)!important;
  background:transparent!important;
}
html[data-areej-platform] :is(#sidebar .nav-item.active,.app nav button.active){
  background:var(--areej-tint)!important;
  color:var(--areej-accent-dark)!important;
}
html[data-areej-platform] #areej-topbar,
html[data-areej-platform] .iep-app-header,
html[data-areej-platform] .iep-navigation-toolbar,
html[data-areej-platform] .app header{
  background:var(--areej-surface)!important;
  color:var(--areej-ink)!important;
  border-color:var(--areej-line)!important;
}
html[data-areej-platform] .iep-header-brand{color:var(--areej-accent)!important}
html[data-areej-platform="iep"] .iep-app-header>.iep-account{
  background:var(--areej-tint)!important;
  border-color:#ddd0f4!important;
  color:var(--areej-accent-dark)!important;
}
html[data-areej-platform="iep"] .iep-app-header>.iep-account summary{color:var(--areej-accent-dark)!important}
html[data-areej-platform="shadow"] .auth-brand{background:var(--areej-accent)!important}
html[data-areej-platform="shadow"] .app aside .account,
html[data-areej-platform="shadow"] .app aside .account button{
  color:var(--areej-ink)!important;
  border-color:var(--areej-line)!important;
}
html[data-areej-platform="shadow"] .app nav button:hover{background:var(--areej-tint)!important}
html[data-areej-platform] .student-file-tab,
html[data-areej-platform] .behavior-checks label,
html[data-areej-platform] .file-completion-item{
  background:var(--areej-surface)!important;
  color:var(--areej-ink)!important;
  border-color:var(--areej-line)!important;
}
html[data-areej-platform] .student-file-tab.active{
  background:var(--areej-tint)!important;
  color:var(--areej-accent-dark)!important;
}

@media print{
  html[data-areej-platform] body,
  html[data-areej-platform] .main-content,
  html[data-areej-platform] .content{background:#fff!important;color:#111!important}
  html[data-areej-platform] .report-section-title,
  html[data-areej-platform] .professional-header{border-color:var(--areej-accent)!important}
  html[data-areej-platform] .report-section-title{background:var(--areej-accent)!important;color:#fff!important}
}
html[data-areej-platform="assistant"] .brand{color:var(--areej-accent)!important}
html[data-areej-platform="assistant"] .button{background:var(--areej-accent)!important;color:#fff!important}
html[data-areej-platform="assistant"] #account-bar{background:var(--areej-tint)!important;color:var(--areej-ink)!important}
html[data-areej-platform="assistant"],
html[data-areej-platform="iep"],
html[data-areej-platform="shadow"]{--warning:#B54708}

html[data-areej-platform="assistant"] body,
html[data-areej-platform="iep"] body,
html[data-areej-platform="shadow"] body{
  font-family:"IBM Plex Sans Arabic",Tahoma,Arial,sans-serif!important;
}
html[data-areej-platform="assistant"] body:has(#home.active){
  background:var(--areej-canvas)!important;
}
html[data-areej-platform="assistant"] body #sidebar .nav-section.journey-nav,
html[data-areej-platform="assistant"] body #sidebar .nav-section:not(.journey-nav):has(.nav-kicker){
  display:block!important;
}
html[data-areej-platform="assistant"] body #sidebar .journey-nav > .nav-item:not([hidden]):not([data-page]),
html[data-areej-platform="assistant"] body #sidebar .nav-section:not(.journey-nav):has(.nav-kicker) > .nav-item:not([hidden]):not([data-page]){
  display:flex!important;
}
html[data-areej-platform="assistant"] body #sidebar .stage-index{
  width:22px!important;
  height:22px!important;
  border-radius:50%!important;
  background:#e6f0fb!important;
  color:#084090!important;
  flex:0 0 22px!important;
}
html[data-areej-platform="assistant"] body #sidebar .nav-item.active .stage-index{
  background:#1050b0!important;
  color:#fff!important;
}
html[data-areej-platform="assistant"] body:has(#home.active) .welcome-screen{
  width:min(100%,680px)!important;
  max-width:none!important;
  margin:0!important;
  padding:32px 28px 24px!important;
  background:#fff!important;
  border:1px solid var(--areej-line)!important;
  border-radius:24px!important;
  box-shadow:none!important;
  text-align:center!important;
}
html[data-areej-platform="assistant"] body:has(#home.active) .welcome-screen::before{
  content:none!important;
  display:none!important;
}
html[data-areej-platform="assistant"] body:has(#home.active) .welcome-screen h1{
  color:var(--areej-ink)!important;
  background:none!important;
  -webkit-text-fill-color:currentColor!important;
  font-size:32px!important;
  font-weight:600!important;
}
html[data-areej-platform="assistant"] body:has(#home.active) .welcome-screen > p{
  color:var(--areej-muted)!important;
  font-size:15px!important;
}
html[data-areej-platform="assistant"] button.feature-card{
  font:inherit;
  color:inherit;
  cursor:pointer;
  width:100%;
  min-height:44px;
}
html[data-areej-platform="assistant"] body:has(#home.active) .welcome-screen .feature-card{
  background:#fff!important;
  border:1px solid var(--areej-line)!important;
  box-shadow:none!important;
  color:var(--areej-ink)!important;
}
html[data-areej-platform="assistant"] body:has(#home.active) .welcome-screen .feature-card .icon{
  background:var(--areej-tint)!important;
  color:var(--areej-accent-dark)!important;
  border:0!important;
}
html[data-areej-platform="assistant"] button.feature-card:focus-visible,
html[data-areej-platform="assistant"] #sidebar .nav-item:focus-visible{
  outline:3px solid #1761cf;
  outline-offset:2px;
}
html[data-areej-platform="assistant"] body #sidebar .nav-item,
html[data-areej-platform="assistant"] body #sidebar .current-student-sidebar{
  min-height:44px!important;
}
@media (min-width:1100px){
  html[data-areej-platform="assistant"] #areej-menu-toggle{display:none!important}
  html[data-areej-platform="assistant"] body:not(.areej-drawer-open) #sidebar,
  html[data-areej-platform="assistant"] body.areej-drawer-open #sidebar{
    transform:none!important;
    visibility:visible!important;
    pointer-events:auto!important;
    width:280px!important;
    max-width:280px!important;
    top:48px!important;
    height:calc(100dvh - 48px)!important;
  }
  html[data-areej-platform="assistant"] body .main-content{
    width:auto!important;
    max-width:none!important;
    margin-right:280px!important;
    margin-left:0!important;
    display:block!important;
  }
  html[dir="ltr"][data-areej-platform="assistant"] body .main-content,
  html[data-areej-platform="assistant"][dir="ltr"] body .main-content{
    margin-left:280px!important;
    margin-right:0!important;
  }
  html[data-areej-platform="assistant"] body:has(#home.active) .main-content{
    margin-top:0!important;
    margin-bottom:0!important;
    margin-right:280px!important;
    margin-left:0!important;
    width:auto!important;
    max-width:none!important;
  }
  html[dir="ltr"][data-areej-platform="assistant"] body:has(#home.active) .main-content{
    margin-left:280px!important;
    margin-right:0!important;
  }
}
html[data-areej-platform="assistant"] .page-header,
html[data-areej-platform="assistant"] .page.active:not(#home) .page-header{
  background:transparent!important;
  color:var(--areej-ink)!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
html[data-areej-platform="assistant"] .page-header h1,
html[data-areej-platform="assistant"] .page-header h2{
  color:var(--areej-ink)!important;
  background:none!important;
  -webkit-text-fill-color:currentColor!important;
}
html[data-areej-platform="assistant"] .page-header p{
  color:var(--areej-muted)!important;
}
html[data-areej-platform="assistant"] .btn-warning,
html[data-areej-platform="iep"] .btn-warning,
html[data-areej-platform="shadow"] .btn-warning{
  background:var(--warning)!important;
  color:#fff!important;
  border-color:transparent!important;
}
html[data-areej-platform="assistant"] .btn-info,
html[data-areej-platform="iep"] .btn-info,
html[data-areej-platform="shadow"] .btn-info{
  background:var(--areej-accent)!important;
  color:#fff!important;
  border-color:transparent!important;
}
html[data-areej-platform="assistant"] .card-header .icon,
html[data-areej-platform="assistant"] .student-avatar{
  background:var(--areej-tint)!important;
  color:var(--areej-accent-dark)!important;
}
html[data-areej-platform="iep"] body:has(#goals.active) .main-content{
  background:transparent!important;
  color:var(--areej-ink)!important;
}
html[data-areej-platform="assistant"] body:has(#auth:not([hidden])){
  min-height:100vh;
  background:radial-gradient(at top right,#e8f4ff,transparent 60%),#f6fafb!important;
}
html[data-areej-platform="assistant"] #auth{
  width:min(440px,100%);
  max-width:440px;
  margin:40px auto;
  padding:38px;
  background:#fff;
  border:1px solid #e1eaf2;
  border-radius:25px;
  box-shadow:0 20px 70px #163c6710;
}
html[data-areej-platform="assistant"] #auth nav{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}
html[data-areej-platform="assistant"] #auth nav button{
  background:#fff!important;
  color:#1050b0!important;
  border:1px solid #d4e3f3!important;
  border-radius:10px;
  min-height:44px;
  padding:8px 14px;
  box-shadow:none!important;
  font:inherit;
  cursor:pointer;
}
html[data-areej-platform="assistant"] #auth .brand{
  display:block;
  text-align:center;
  font-size:28px;
  font-weight:700;
  color:#1050b0!important;
  margin:8px 0 18px;
}
html[data-areej-platform="assistant"] #auth h1{
  font-size:29px!important;
  font-weight:600;
  line-height:1.45;
  letter-spacing:-.5px;
  text-align:center;
  margin:0;
  color:#153556;
}
html[data-areej-platform="assistant"] #auth > p,
html[data-areej-platform="assistant"] #auth .muted{
  text-align:center;
  font-size:13px;
  color:#657c92;
  line-height:1.8;
}
html[data-areej-platform="assistant"] #auth form{
  border:0;
  padding:0;
  margin:0;
  background:transparent;
  box-shadow:none;
}
html[data-areej-platform="assistant"] #auth label{
  display:block;
  font-size:14px;
  margin-top:22px;
  color:#153556;
}
html[data-areej-platform="assistant"] #auth input{
  display:block;
  width:100%;
  margin-top:9px;
  padding:13px;
  border:1px solid #cbd9e6;
  border-radius:9px;
  color:#153556;
  background:#fbfdff;
  font:inherit;
  box-shadow:none;
}
html[data-areej-platform="assistant"] #auth input:focus{
  outline:3px solid #d9eafb;
  border-color:#438ade;
}
html[data-areej-platform="assistant"] #auth .button{
  display:block;
  border:0;
  width:100%;
  cursor:pointer;
  margin-top:25px;
  min-height:44px;
  border-radius:10px;
  background:#1050b0!important;
  color:#fff!important;
  box-shadow:none!important;
  font:inherit;
  font-weight:600;
}
html[data-areej-platform="assistant"] #auth .secondary{
  display:block;
  width:100%;
  background:transparent!important;
  color:#1767a6!important;
  text-decoration:underline;
  margin-top:8px;
  padding:10px;
  min-height:44px;
  border:0;
  box-shadow:none!important;
  font:inherit;
  font-weight:500;
  cursor:pointer;
}
html[data-areej-platform="assistant"] #auth > a{
  display:block;
  text-align:center;
  font-size:12px;
  margin-top:24px;
  color:#526f8b;
}
html[data-areej-platform="assistant"] .student-registry-list{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:6px;
  max-height:220px;
  overflow:auto;
  padding:6px;
  border:1px solid var(--areej-line);
  border-radius:12px;
  background:#fff;
}
html[data-areej-platform="assistant"] .student-registry-list[hidden]{display:none!important}
html[data-areej-platform="assistant"] .student-registry-list button{
  width:100%;
  min-height:40px;
  padding:8px 10px;
  border:0;
  border-radius:8px;
  background:#f5f8fb;
  color:var(--areej-ink);
  font:inherit;
  text-align:right;
  cursor:pointer;
}
@media (prefers-reduced-motion:reduce){
  html[data-areej-platform="assistant"] *,
  html[data-areej-platform="iep"] *,
  html[data-areej-platform="shadow"] *{
    animation:none!important;
    transition:none!important;
  }
}
