/* SchoolLAI Teacher Experience V169 / 2026-10-31
   Pure presentation layer for the five existing teacher modules on all SchoolLAI tenants.
   No DOM movement, no endpoint changes, no button removal, no feature truncation. */
:root{
 --teach169-primary:var(--sk165-primary,#3869d5);
 --teach169-secondary:var(--sk165-secondary,#129b8c);
 --teach169-ink:var(--sk165-text,#18364b);
 --teach169-muted:var(--sk165-muted,#567386);
 --teach169-paper:var(--sk165-surface,#fff);
 --teach169-background:var(--sk165-background,#f3f8fc);
 --teach169-border:#d9e7f0;
 --teach169-shadow:0 12px 32px #1f4a7310,0 2px 7px #1f4a7309;
 --teach169-radius:20px;
 --teach169-focus:#3169ce;
}
:is([class*="teacher-workspace-v37-module__"][class$="__workspace"],
[class*="teacher-ai-v75-module__"][class$="__root"],
[class*="teacher-assistant-v41-module__"][class$="__root"],
[class*="teacher-finance-v61-module__"][class$="__root"]){
 --ink:var(--teach169-ink);
 --muted:var(--teach169-muted);
 --teal:var(--teach169-secondary);
 --line:var(--teach169-border);
 --accent:var(--teach169-secondary);
 color:var(--teach169-ink)!important;
 width:100%;max-width:100%;min-width:0;direction:rtl;
 font-family:inherit;line-height:1.8;
}
/* Hero system: spacious enough for information but not wasteful, with light functional color cues */
:is([class*="teacher-workspace-v37-module__"][class$="__hero"],
[class*="teacher-ai-v75-module__"][class$="__hero"],
[class*="teacher-assistant-v41-module__"][class$="__hero"],
[class*="teacher-finance-v61-module__"][class$="__hero"]){
 position:relative;isolation:isolate;
 border:1px solid #cddff1!important;border-radius:23px!important;
 box-shadow:var(--teach169-shadow)!important;
 color:var(--teach169-ink)!important;
 padding:clamp(19px,3vw,31px)!important;
 gap:clamp(14px,2vw,25px)!important;
 min-width:0;
}
[class*="teacher-workspace-v37-module__"][class$="__hero"]{
 background:radial-gradient(220px 180px at 8% 100%,#bce7fb8c,transparent 80%),
   linear-gradient(115deg,#e9f8ff,#f2f5ff 68%,#eefaf5)!important;
}
[class*="teacher-ai-v75-module__"][class$="__hero"]{
 background:radial-gradient(230px 180px at 6% 100%,#ded2ff99,transparent 80%),
   linear-gradient(115deg,#f0f6ff,#f5f0ff 68%,#f1fbff)!important;
 border-color:#ded9f5!important;
}
[class*="teacher-assistant-v41-module__"][class$="__hero"]{
 background:radial-gradient(240px 170px at 5% 100%,#b8eadd99,transparent 80%),
   linear-gradient(115deg,#e7fcf4,#f0f9ff 65%,#f7f4ff)!important;
 border-color:#cbe5df!important;
}
[class*="teacher-finance-v61-module__"][class$="__hero"]{
 background:radial-gradient(220px 150px at 2% 100%,#ffe1b27a,transparent 80%),
   linear-gradient(115deg,#f4faff,#fff8e9 65%,#f6f4ff)!important;
 border-color:#eedfc6!important;
}
:is([class*="teacher-workspace-v37-module__"][class$="__hero"],
[class*="teacher-ai-v75-module__"][class$="__hero"],
[class*="teacher-assistant-v41-module__"][class$="__hero"],
[class*="teacher-finance-v61-module__"][class$="__hero"]) :is(h1,h2){
 font-size:clamp(23px,2.65vw,32px)!important;line-height:1.55!important;
 letter-spacing:-.35px;color:var(--teach169-ink)!important;
}
:is([class*="teacher-workspace-v37-module__"][class$="__hero"],
[class*="teacher-ai-v75-module__"][class$="__hero"],
[class*="teacher-assistant-v41-module__"][class$="__hero"],
[class*="teacher-finance-v61-module__"][class$="__hero"]) p{
 color:#536d83!important;font-size:13px;line-height:1.9;
}
/* Surface hierarchy: one shared language, selective rather than monochrome. */
:is([class*="teacher-workspace-v37-module__"][class$="__card"],
[class*="teacher-workspace-v37-module__"][class$="__softCard"],
[class*="teacher-ai-v75-module__"][class$="__card"],
[class*="teacher-assistant-v41-module__"][class$="__card"],
[class*="teacher-assistant-v41-module__"][class$="__student"],
[class*="teacher-finance-v61-module__"][class$="__card"]){
 background:var(--teach169-paper)!important;
 color:var(--teach169-ink)!important;
 border:1px solid var(--teach169-border)!important;
 border-radius:var(--teach169-radius)!important;
 box-shadow:var(--teach169-shadow)!important;
 min-width:0;
}
:is([class*="teacher-workspace-v37-module__"][class$="__card"],
[class*="teacher-workspace-v37-module__"][class$="__softCard"],
[class*="teacher-assistant-v41-module__"][class$="__card"],
[class*="teacher-assistant-v41-module__"][class$="__student"],
[class*="teacher-finance-v61-module__"][class$="__card"]){
 padding:clamp(15px,2vw,23px)!important;
}
/* Metric system - meaning through structured typography, subtle varied left border accents. */
:is([class*="teacher-workspace-v37-module__"][class$="__metric"],
[class*="teacher-finance-v61-module__"][class$="__metrics"] article,
[class*="teacher-assistant-v41-module__"][class$="__metrics"]>*) {
 background:#fff!important;
 border:1px solid var(--teach169-border)!important;
 border-radius:17px!important;
 box-shadow:0 5px 16px #214b7110!important;
 color:var(--teach169-ink)!important;
}
[class*="teacher-workspace-v37-module__"][class$="__metric"]{padding:19px!important}
[class*="teacher-workspace-v37-module__"][class$="__metrics"]{
 gap:12px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
[class*="teacher-finance-v61-module__"][class$="__metrics"]{gap:12px!important}
[class*="teacher-finance-v61-module__"][class$="__metrics"] article{
 padding:17px!important;border-inline-start:4px solid #efb35d!important;
}
[class*="teacher-finance-v61-module__"][class$="__metrics"] article:nth-child(2n){
 border-inline-start-color:#7cc7c0!important;
}
[class*="teacher-workspace-v37-module__"][class$="__metric"]:nth-child(3n + 1){
 border-inline-start:4px solid #94aaf2!important;
}
[class*="teacher-workspace-v37-module__"][class$="__metric"]:nth-child(3n + 2){
 border-inline-start:4px solid #77c6b7!important;
}
[class*="teacher-workspace-v37-module__"][class$="__metric"]:nth-child(3n){
 border-inline-start:4px solid #f2c482!important;
}
:is([class*="teacher-workspace-v37-module__"][class$="__metric"],
[class*="teacher-finance-v61-module__"][class$="__metrics"] article) b{
 font-variant-numeric:tabular-nums;letter-spacing:.1px;
}
/* Navigation: segmented pattern with clear selected state; keeps original React handlers */
[class*="teacher-workspace-v37-module__"][class$="__nav"],
[class*="teacher-ai-v75-module__"][class$="__tabs"],
[class*="teacher-assistant-v41-module__"][class$="__tabs"],
[class*="teacher-finance-v61-module__"][class$="__tabs"]{
 background:#f2f7fc!important;
 border:1px solid #d8e5f2!important;
 border-radius:17px!important;
 padding:6px!important;gap:6px!important;
 box-shadow:none!important;
 max-width:100%;min-width:0;
}
[class*="teacher-workspace-v37-module__"][class$="__nav"]{
 max-width:none!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;margin:18px 0 23px!important;
}
:is([class*="teacher-workspace-v37-module__"][class$="__nav"],
[class*="teacher-ai-v75-module__"][class$="__tabs"],
[class*="teacher-assistant-v41-module__"][class$="__tabs"],
[class*="teacher-finance-v61-module__"][class$="__tabs"]) button{
 min-height:42px;border-radius:12px!important;transition:background-color .18s ease,box-shadow .18s ease!important;
 border:1px solid transparent;outline-offset:2px;
 font-size:12px!important;white-space:normal;line-height:1.55;
}
:is([class*="teacher-workspace-v37-module__"][class$="__nav"],
[class*="teacher-ai-v75-module__"][class$="__tabs"],
[class*="teacher-assistant-v41-module__"][class$="__tabs"],
[class*="teacher-finance-v61-module__"][class$="__tabs"]) button:is([aria-selected="true"],[aria-pressed="true"],[data-active="true"]){
 background:var(--teach169-paper)!important;
 color:var(--teach169-primary)!important;
 border-color:#d1dff1!important;
 box-shadow:0 3px 9px #315b8e16!important;
 font-weight:800!important;
}
[class*="teacher-workspace-v37-module__"][class$="__active"]{
 background:var(--teach169-paper)!important;
 color:var(--teach169-primary)!important;
 border:1px solid #d1dff1!important;border-radius:12px!important;
 box-shadow:0 3px 9px #315b8e16!important;
}
/* Forms: calm, consistent field height, usable touch targets. */
:is([class*="teacher-workspace-v37-module__"][class$="__workspace"],
[class*="teacher-ai-v75-module__"][class$="__root"],
[class*="teacher-assistant-v41-module__"][class$="__root"],
[class*="teacher-finance-v61-module__"][class$="__root"],
[class*="teacher-notebook-v61-module__"][class$="__book"]) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
 font:inherit;color:var(--teach169-ink)!important;
 border:1px solid #c9dce9!important;border-radius:12px!important;
 background:#fff!important;max-width:100%;min-width:0;
 min-height:43px;box-sizing:border-box;
}
:is([class*="teacher-workspace-v37-module__"][class$="__workspace"],
[class*="teacher-ai-v75-module__"][class$="__root"],
[class*="teacher-assistant-v41-module__"][class$="__root"],
[class*="teacher-finance-v61-module__"][class$="__root"],
[class*="teacher-notebook-v61-module__"][class$="__book"]) :is(button,a,input,select,textarea):focus-visible{
 outline:3px solid color-mix(in srgb,var(--teach169-primary) 52%,transparent)!important;
 outline-offset:3px!important;
}
:is([class*="teacher-workspace-v37-module__"][class$="__workspace"],
[class*="teacher-ai-v75-module__"][class$="__root"],
[class*="teacher-assistant-v41-module__"][class$="__root"],
[class*="teacher-finance-v61-module__"][class$="__root"]) button:disabled{
 cursor:not-allowed;opacity:.55;
}
/* Teacher class and student rows: visual rhythm without status-color loss */
[class*="teacher-workspace-v37-module__"][class$="__studentRow"]{
 border-top:1px solid #e4edf4!important;
 padding:15px 0!important;gap:12px!important;
}
[class*="teacher-workspace-v37-module__"][class$="__studentRow"]:nth-child(even){
 background:linear-gradient(90deg,transparent,#f6faff8c,transparent);
}
/* Notebook: preserve original sticky headers and real horizontal/vertical scrolling. */
[class*="teacher-notebook-v61-module__"][class$="__book"]{
 background:#fff!important;border:1px solid #d8e4ef!important;
 border-radius:20px!important;box-shadow:var(--teach169-shadow)!important;
 min-width:0;max-width:100%;
}
[class*="teacher-notebook-v61-module__"][class$="__heading"]{
 background:linear-gradient(113deg,#e7f3ff,#f1f2ff 64%,#f2fbf6)!important;
 color:var(--teach169-ink)!important;
 border-color:#d5e3f1!important;
 padding:clamp(14px,2vw,22px)!important;
}
[class*="teacher-notebook-v61-module__"][class$="__heading"] h2{
 color:var(--teach169-ink)!important;font-size:clamp(19px,2vw,25px)!important;
}
[class*="teacher-notebook-v61-module__"][class$="__overview"]{
 padding:14px clamp(14px,2vw,23px)!important;gap:9px!important;
}
[class*="teacher-notebook-v61-module__"][class$="__overview"]> :is(span,button){
 background:#edf5ff!important;color:#31506d!important;
 border:1px solid #d8e6f3!important;border-radius:11px!important;
}
[class*="teacher-notebook-v61-module__"][class$="__tools"]{
 padding:0 clamp(14px,2vw,23px) 16px!important;gap:10px!important;
}
[class*="teacher-notebook-v61-module__"][class$="__scroll"]{
 overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
 max-width:100%;scrollbar-color:#b2cadb transparent;
}
[class*="teacher-notebook-v61-module__"][class$="__scroll"] table{
 width:max-content;min-width:100%;font-variant-numeric:tabular-nums;
}
[class*="teacher-notebook-v61-module__"][class$="__scroll"] th{
 background:#e9f3fc!important;color:#284966!important;
 border-bottom:1px solid #d4e4f2!important;
}
[class*="teacher-notebook-v61-module__"][class$="__scroll"] th:first-child{
 background:#e3effa!important;position:sticky;right:0;z-index:4!important;
}
[class*="teacher-notebook-v61-module__"][class$="__scroll"] td:first-child{
 background:#fff;position:sticky;right:0;z-index:3;
 box-shadow:-3px 0 6px #123f6c09;
}
[class*="teacher-notebook-v61-module__"][class$="__scroll"] tbody tr:nth-child(even) td:not(:first-child){
 background:#f7fafd;
}
[class*="teacher-notebook-v61-module__"][class$="__scroll"] :is(th,td){
 border-color:#e1ebf3!important;
}
/* AI and class assistant: coherent tabs and clean text without changing data or statuses */
[class*="teacher-ai-v75-module__"][class$="__heroIcon"]{
 background:#ffffffd9!important;color:#6650ae!important;
 border:1px solid #e6dff9!important;border-radius:20px!important;
}
[class*="teacher-assistant-v41-module__"][class$="__student"]{
 background:linear-gradient(160deg,#fff,#f9fcff)!important;
}
[class*="teacher-assistant-v41-module__"][class$="__priority"]{
 border-radius:13px!important;
}
[class*="teacher-finance-v61-module__"][class$="__tabs"] button[aria-pressed="true"]{
 color:var(--teach169-primary)!important;
 background:#fff!important;border-color:#d3e2f1!important;
}
@media(max-width:1080px){
 [class*="teacher-workspace-v37-module__"][class$="__hero"]{
  grid-template-columns:minmax(0,1fr) 150px!important;
  gap:15px!important;
 }
 [class*="teacher-workspace-v37-module__"][class$="__columns"],
 [class*="teacher-finance-v61-module__"][class$="__columns"]{
  grid-template-columns:minmax(0,1fr)!important;
 }
 [class*="teacher-workspace-v37-module__"][class$="__metrics"]{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 [class*="teacher-finance-v61-module__"][class$="__metrics"]{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}
@media(max-width:690px){
 :is([class*="teacher-workspace-v37-module__"][class$="__workspace"],
 [class*="teacher-ai-v75-module__"][class$="__root"],
 [class*="teacher-assistant-v41-module__"][class$="__root"],
 [class*="teacher-finance-v61-module__"][class$="__root"]){
  max-width:100%!important;min-width:0!important;
 }
 [class*="teacher-workspace-v37-module__"][class$="__hero"]{
  grid-template-columns:minmax(0,1fr)!important;padding:17px!important;
 }
 :is([class*="teacher-ai-v75-module__"][class$="__hero"],
 [class*="teacher-assistant-v41-module__"][class$="__hero"],
 [class*="teacher-finance-v61-module__"][class$="__hero"]){
  flex-wrap:wrap!important;padding:17px!important;
 }
 [class*="teacher-workspace-v37-module__"][class$="__top"]{
  padding:4px 0 15px!important;gap:10px!important;flex-wrap:wrap;
 }
 [class*="teacher-workspace-v37-module__"][class$="__nav"]{
  display:flex!important;flex-wrap:nowrap!important;
  margin:13px 0 18px!important;overflow-x:auto!important;
  scrollbar-width:thin;overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;
 }
 [class*="teacher-workspace-v37-module__"][class$="__nav"] button{
  flex:0 0 auto;min-width:100px;scroll-snap-align:start;
 }
 :is([class*="teacher-ai-v75-module__"][class$="__tabs"],
 [class*="teacher-assistant-v41-module__"][class$="__tabs"],
 [class*="teacher-finance-v61-module__"][class$="__tabs"]){
  flex-wrap:nowrap!important;overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;scrollbar-width:thin;
 }
 :is([class*="teacher-ai-v75-module__"][class$="__tabs"],
 [class*="teacher-assistant-v41-module__"][class$="__tabs"],
 [class*="teacher-finance-v61-module__"][class$="__tabs"]) button{
  flex:0 0 auto;min-width:96px;
 }
 [class*="teacher-workspace-v37-module__"][class$="__metrics"],
 [class*="teacher-finance-v61-module__"][class$="__metrics"]{
  gap:9px!important;
 }
 [class*="teacher-workspace-v37-module__"][class$="__metric"]{
  padding:12px!important;
 }
 [class*="teacher-workspace-v37-module__"][class$="__studentRow"]{
  grid-template-columns:36px minmax(0,1fr)!important;
  gap:7px!important;padding:13px 0!important;
 }
 [class*="teacher-workspace-v37-module__"][class$="__studentRow"]>*{
  max-width:100%;min-width:0;
 }
 [class*="teacher-workspace-v37-module__"][class$="__filters"]{
  flex-wrap:wrap!important;gap:8px!important;
 }
 [class*="teacher-ai-v75-module__"][class$="__grid"]{
  grid-template-columns:minmax(0,1fr)!important;
 }
 [class*="teacher-notebook-v61-module__"][class$="__heading"]{
  flex-wrap:wrap!important;
 }
 [class*="teacher-notebook-v61-module__"][class$="__scroll"]{
  max-height:min(70vh,620px)!important;
 }
}
@media(max-width:380px){
 [class*="teacher-workspace-v37-module__"][class$="__metrics"],
 [class*="teacher-finance-v61-module__"][class$="__metrics"]{
  grid-template-columns:minmax(0,1fr)!important;
 }
}
@media(prefers-reduced-motion:reduce){
 :is([class*="teacher-workspace-v37-module__"],
 [class*="teacher-ai-v75-module__"],
 [class*="teacher-assistant-v41-module__"],
 [class*="teacher-finance-v61-module__"],
 [class*="teacher-notebook-v61-module__"]) *{
  transition-duration:.01ms!important;animation-duration:.01ms!important;
 }
}
