.school-themed {
  --accent: color-mix(in srgb,var(--school-primary) 41%,#151b20);
  --accent-hover: color-mix(in srgb,var(--school-primary) 31%,#151b20);
  --accent-text: color-mix(in srgb,var(--school-primary) 40%,#151b20);
  --mint: color-mix(in srgb,var(--school-secondary) 11%,#fff);
  --focus: var(--accent);
  --sidebar: color-mix(in srgb,var(--school-primary) 24%,#151b23);
  --side-muted: #c4cbd2;
  --side-text: #ecf1f4;
}
:root[data-theme="dark"] .school-themed {
  --accent: color-mix(in srgb,var(--school-primary) 30%,#fff);
  --accent-hover: color-mix(in srgb,var(--school-primary) 16%,#fff);
  --accent-text: var(--accent);
  --mint: color-mix(in srgb,var(--school-secondary) 20%,#172026);
}
.school-themed .sidebar .nav-item:hover,.school-themed .sidebar .nav-item.active {
  background: color-mix(in srgb,var(--school-secondary) 27%,#28313c);
  border-color: #ffffff2b;
}
.school-identity { display:flex; align-items:center; gap:11px; min-width:0; }
.school-identity strong { font-size:1rem; line-height:1.22; overflow-wrap:anywhere; }
.school-mark {
  width:44px; height:44px; flex:none; display:grid; place-items:center; overflow:hidden;
  border-radius:10px; background:#fff; color:#172126; font-weight:760; font-size:1rem;
  border:1px solid color-mix(in srgb,var(--school-secondary) 28%,#d7dde1);
}
.school-mark:has(img) { padding:3px; }
.school-mark img { width:100%; height:100%; object-fit:contain; }
.school-themed .sidebar .school-identity { padding:2px 7px; }
.school-themed .sidebar .school-identity strong { color:#fff; }
.school-themed .topbar .school-mark { width:36px; height:36px; border-radius:8px; }
.school-auth { min-height:100dvh; }
.school-auth .public-header { justify-content:center; }
.school-auth .school-identity strong { font-size:clamp(1rem,3vw,1.35rem); }
.school-auth .auth-card { border-top:3px solid var(--school-primary); }
.brand-editor { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.brand-editor .button { white-space:normal; }
.brand-editor-logo { display:grid; gap:18px; padding:18px; }
.brand-editor-logo .school-mark { width:76px; height:76px; font-size:1.65rem; }
.brand-editor-logo p { color:var(--muted); margin-top:4px; }
.brand-editor input[type="color"] { padding:5px 7px; cursor:pointer; }
@media (max-width:900px) { .brand-editor { grid-template-columns:1fr; } }
