/* 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{display:flex;flex-direction:column;min-height:100vh}
html[data-areej-platform="shadow"] .app aside .account{margin-top:auto}
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 header{display:flex;align-items:center;gap:12px}
html[data-areej-platform="shadow"] .app header .header-top{display:flex;align-items:center;gap:12px;width:100%;min-width:0}
html[data-areej-platform="shadow"] .app header .header-copy{flex:1;min-width:0}
html[data-areej-platform="shadow"] .app.has-student-tabs header{flex-direction:column;align-items:stretch;gap:0}
html[data-areej-platform="shadow"] #student-tabs{width:100%;margin:.7rem 0 0}
html[data-areej-platform="shadow"] #student-tabs[hidden]{display:none!important}
html[data-areej-platform="shadow"] .account-menu{
  margin-inline-start:auto;background:var(--areej-tint);color:var(--areej-accent-dark);
  border:1px solid #b7e4d4;border-radius:999px;min-height:40px;padding:0 14px;font-weight:700;
}
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}

.plan-notification-bell {
  position: relative;
  flex: 0 0 auto;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.05rem;
}
#plan-notification-count {
  position: absolute;
  inset-block-start: -5px;
  inset-inline-end: -6px;
  min-width: 1.25rem;
  padding: 0.1rem 0.25rem;
  border-radius: 999px;
  background: #9e2c27;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.25;
}
.plan-notification-note {
  margin-block: 0.4rem 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.plan-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  align-items: end;
  gap: 0.75rem;
}
.plan-filters label { margin: 0; min-width: 0; }
.plan-filters button { justify-self: start; }
.plan-filter-count { margin-block: 0.75rem; font-size: 0.9rem; }
