/* Compasso Docente — non-Home UX 9.5 matrix
   Scope is intentionally restricted to authenticated routes other than the approved Home.
   Login and .ped-home-* are not styled here. */

body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]){
  --nh-bg:#fbfcfb;
  --nh-surface:#ffffff;
  --nh-ink:#142622;
  --nh-copy:#5d6d68;
  --nh-muted:#52635e;
  --nh-line:#dce6df;
  --nh-line-strong:#c8d6cf;
  --nh-primary:#0f6f67;
  --nh-primary-dark:#0a5a54;
  --nh-primary-soft:#e8f3ef;
  --nh-radius:12px;
  --nh-content:1180px;
  background:var(--nh-bg)!important;
}

/* Shared frame: calm, compact and consistent across every non-Home route. */
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-contextbar,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-experience-page,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-utility,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-content>[data-teacher-management-overview="1"],
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""])>.teacher-continuation-hub,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""])>.teacher-intelligence-hub{
  box-sizing:border-box!important;
  width:min(calc(100% - 64px),var(--nh-content))!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-experience-page,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-utility{
  padding:28px 0 72px!important;
}

body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-page-heading,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-utility>.td-section-title{
  gap:22px!important;
  margin:0 0 20px!important;
}

body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-page-heading h1,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-utility>.td-section-title h1{
  color:var(--nh-ink)!important;
  font-size:28px!important;
  line-height:1.12!important;
  letter-spacing:-.03em!important;
}

body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-page-heading p,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-utility>.td-section-title p{
  max-width:680px!important;
  margin-top:6px!important;
  color:var(--nh-copy)!important;
  font-size:12.5px!important;
  line-height:1.48!important;
}

body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-page-heading span,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-utility>.td-section-title span{
  color:var(--nh-muted)!important;
  font-size:9.5px!important;
  letter-spacing:.08em!important;
}

/* Subnavigation: one calm horizontal rail, never a wrapped block. */
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-module-subnav{
  top:72px!important;
  min-height:46px!important;
  display:flex!important;
  align-items:stretch!important;
  gap:20px!important;
  padding:0 max(32px,calc((100vw - var(--nh-content))/2))!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain!important;
  scrollbar-width:none!important;
  white-space:nowrap!important;
  background:rgba(255,255,255,.98)!important;
  border-bottom:1px solid var(--nh-line)!important;
  box-shadow:none!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-module-subnav::-webkit-scrollbar{display:none!important}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-module-subnav button{
  flex:0 0 auto!important;
  min-height:46px!important;
  padding:0!important;
  color:var(--nh-muted)!important;
  font-size:12px!important;
  font-weight:650!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-module-subnav button.active{
  color:var(--nh-ink)!important;
  font-weight:760!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-module-subnav button.active:after{
  background:var(--nh-primary)!important;
}

/* Context selectors become a compact toolbar instead of a tall form. */
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-contextbar{
  margin-top:14px!important;
  padding:0!important;
  justify-content:flex-end!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-context-filters{
  width:min(520px,100%)!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-context-filters label{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:5px!important;
  color:var(--nh-muted)!important;
  font-size:9.5px!important;
  font-weight:700!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-context-filters select{
  min-height:40px!important;
  height:40px!important;
  padding:0 10px!important;
  border:1px solid var(--nh-line-strong)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--nh-ink)!important;
  font-size:12px!important;
  box-shadow:none!important;
}

/* Cards, lists and stats share one density. */
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-card,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-settings-card,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-conversations-grid,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-conversation-list,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-conversation-thread,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-hero,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-area,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-cards article,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-next,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-kpis article{
  border-color:var(--nh-line)!important;
  border-radius:var(--nh-radius)!important;
  background:#fff!important;
  box-shadow:none!important;
}

body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-card{
  padding:16px!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-grid,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-grid-2,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-settings-grid{
  gap:14px!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-stat{
  min-height:104px!important;
  padding:14px!important;
  border:1px solid var(--nh-line)!important;
  border-radius:11px!important;
  background:#fff!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-stat strong{
  color:var(--nh-ink)!important;
  font-size:23px!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-list{
  border-color:var(--nh-line)!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-list article{
  min-height:58px!important;
  gap:14px!important;
  padding:10px 2px!important;
  border-color:var(--nh-line)!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-list strong{
  color:var(--nh-ink)!important;
  font-size:12.5px!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-list span,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-list small{
  color:var(--nh-copy)!important;
  font-size:10.5px!important;
}

/* CTA hierarchy and form controls. */
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-primary,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-page-actions .teacher-x-primary,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-settings-actions .td-primary,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-conversation-composer .td-primary{
  min-height:40px!important;
  padding:0 14px!important;
  border:1px solid var(--nh-primary)!important;
  border-radius:9px!important;
  background:var(--nh-primary)!important;
  background-image:none!important;
  color:#fff!important;
  box-shadow:none!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-secondary,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-page-actions button:not(.teacher-x-primary){
  min-height:40px!important;
  padding:0 14px!important;
  border:1px solid var(--nh-line-strong)!important;
  border-radius:9px!important;
  background:#fff!important;
  background-image:none!important;
  color:var(--nh-ink)!important;
  box-shadow:none!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) :where(input,select,textarea){
  border-color:var(--nh-line-strong)!important;
  color:var(--nh-ink)!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) :where(input,select,textarea):focus{
  border-color:#78a49b!important;
  box-shadow:0 0 0 3px rgba(15,111,103,.10)!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-settings-grid input,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-settings-grid select,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-search input,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-field select,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-attendance select{
  min-height:40px!important;
  height:40px!important;
}

/* Utility tabs and admin tabs behave like compact segmented navigation. */
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .td-tabs,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-admin-tabs{
  display:flex!important;
  gap:6px!important;
  overflow-x:auto!important;
  overscroll-behavior-x:contain!important;
  scrollbar-width:none!important;
  margin-bottom:16px!important;
  padding:3px!important;
  border:1px solid var(--nh-line)!important;
  border-radius:10px!important;
  background:#f6f8f6!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .td-tabs::-webkit-scrollbar,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-admin-tabs::-webkit-scrollbar{display:none!important}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .td-tabs button,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-admin-tabs button{
  flex:0 0 auto!important;
  min-height:38px!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:var(--nh-muted)!important;
  font-size:11.5px!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .td-tabs button.active,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-admin-tabs button.active{
  background:#fff!important;
  color:var(--nh-ink)!important;
  box-shadow:0 1px 2px rgba(20,38,34,.06)!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-admin-tabs button.active::after{display:none!important}

/* Conversations: list and thread become one coherent workspace. */
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-conversations-grid{
  grid-template-columns:240px minmax(0,1fr)!important;
  gap:0!important;
  min-height:500px!important;
  padding:0!important;
  overflow:hidden!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-conversation-list{
  padding:14px!important;
  border-right:1px solid var(--nh-line)!important;
  border-bottom:0!important;
  background:#fbfcfb!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-conversation-thread{
  padding:14px 16px 12px!important;
}

/* Class workspace follows the same green/neutral language as the rest of the portal. */
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace{
  gap:14px!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-hero,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-area,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-cards article,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-next{
  padding:16px!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-hero h1,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-area h2,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-next h2,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-card-head h2,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-kpis strong{
  color:var(--nh-ink)!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-hero>div>span,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-area header span,
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-back{
  color:var(--nh-primary)!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-tabs button{
  border-color:var(--nh-line)!important;
  border-radius:10px!important;
  color:var(--nh-ink)!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-tabs button.active{
  border-color:#96b9af!important;
  background:var(--nh-primary-soft)!important;
}

/* Desktop account menu remains a compact utility menu. */
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-account-menu{
  width:286px!important;
  padding:8px!important;
  border:1px solid var(--nh-line)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 18px 46px rgba(20,38,34,.14)!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-account-menu>strong{
  display:block!important;
  padding:8px 9px 7px!important;
  color:var(--nh-ink)!important;
  font-size:13px!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-account-group{
  display:block!important;
  padding:9px 9px 4px!important;
  color:var(--nh-muted)!important;
  font-size:9px!important;
  font-weight:800!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-account-menu button{
  width:100%!important;
  min-height:38px!important;
  padding:8px 9px!important;
  border:0!important;
  border-radius:8px!important;
  background:#fff!important;
  color:var(--nh-ink)!important;
  text-align:left!important;
  font-size:11.5px!important;
  line-height:1.25!important;
  font-weight:650!important;
  box-shadow:none!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-account-menu button:hover{
  background:#f4f7f5!important;
}
body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-account-menu hr{
  margin:7px 4px!important;
  border:0!important;
  border-top:1px solid var(--nh-line)!important;
}

/* Mobile: protect first viewport, touch targets and visual hierarchy. */
@media(max-width:760px){
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-topbar{
    min-height:62px!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }

  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-contextbar,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-experience-page,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-utility,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-content>[data-teacher-management-overview="1"],
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""])>.teacher-continuation-hub,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""])>.teacher-intelligence-hub{
    width:calc(100% - 28px)!important;
  }

  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-module-subnav{
    top:62px!important;
    min-height:44px!important;
    gap:16px!important;
    padding:0 14px!important;
    scroll-snap-type:x proximity!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-module-subnav button{
    min-height:44px!important;
    font-size:11.5px!important;
    scroll-snap-align:start!important;
  }

  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-contextbar{
    margin-top:10px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-context-filters{
    width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-context-filters select{
    min-height:44px!important;
    height:44px!important;
    font-size:13px!important;
  }

  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-experience-page,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-utility{
    padding:20px 0 104px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-page-heading,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-utility>.td-section-title{
    gap:12px!important;
    margin-bottom:16px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-page-heading h1,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-utility>.td-section-title h1{
    font-size:24px!important;
    line-height:1.12!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-page-heading p,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-utility>.td-section-title p{
    max-width:none!important;
    margin-top:5px!important;
    font-size:12px!important;
    line-height:1.45!important;
  }

  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-page-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr))!important;
    gap:8px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-page-actions button,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-primary,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-secondary,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-settings-actions .td-primary{
    min-height:44px!important;
  }

  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-card{
    padding:14px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-grid,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-grid-2{
    gap:10px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-stat{
    min-height:88px!important;
    padding:12px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-list article{
    min-height:0!important;
    padding:11px 0!important;
    align-items:flex-start!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-list strong{
    white-space:normal!important;
  }

  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-settings-grid{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-settings-grid input,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-settings-grid select,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-search input,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-field select,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-x-attendance select{
    min-height:44px!important;
    height:44px!important;
    font-size:13px!important;
  }

  /* Conversations: recent conversations become a horizontal rail instead of a tall preamble. */
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-conversations-grid{
    grid-template-columns:1fr!important;
    min-height:0!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-conversation-list{
    display:grid!important;
    grid-auto-flow:column!important;
    grid-auto-columns:minmax(150px,72vw)!important;
    gap:8px!important;
    max-height:none!important;
    padding:10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    border-right:0!important;
    border-bottom:1px solid var(--nh-line)!important;
    scroll-snap-type:x proximity!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-conversation-list button{
    min-height:54px!important;
    margin:0!important;
    scroll-snap-align:start!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-conversation-thread{
    padding:12px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-conversation-messages{
    min-height:240px!important;
  }

  /* Account/More on mobile is a bounded two-column sheet, not a desktop dropdown. */
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .td-account-wrap:has(.teacher-unified-account-menu)::before{
    content:""!important;
    position:fixed!important;
    z-index:300!important;
    inset:0!important;
    background:rgba(20,38,34,.20)!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-account-menu{
    position:fixed!important;
    z-index:320!important;
    top:auto!important;
    left:12px!important;
    right:12px!important;
    bottom:calc(86px + env(safe-area-inset-bottom) + var(--msi-viewport-bottom,0px))!important;
    width:auto!important;
    max-height:min(58dvh,520px)!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px 6px!important;
    padding:10px!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    border-radius:16px!important;
    box-shadow:0 22px 56px rgba(20,38,34,.22)!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-account-menu>strong,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-account-menu>.teacher-account-group,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-account-menu>hr{
    grid-column:1/-1!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-account-menu>strong{
    padding:4px 4px 7px!important;
    font-size:15px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-account-group{
    padding:7px 4px 2px!important;
    font-size:8.5px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-account-menu button{
    min-height:46px!important;
    padding:9px 10px!important;
    border:1px solid #edf1ee!important;
    background:#fff!important;
    font-size:12px!important;
    line-height:1.25!important;
    font-weight:680!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-account-menu hr+button{
    grid-column:1/-1!important;
  }

  /* Utility tabs remain accessible without wrapping the page. */
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .td-tabs,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-admin-tabs{
    margin-bottom:14px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .td-tabs button,
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-admin-tabs button{
    min-height:40px!important;
    padding:0 11px!important;
    font-size:11px!important;
  }

  /* Class workspace: cards stack predictably and internal tabs scroll horizontally. */
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-tabs{
    grid-auto-columns:minmax(132px,62vw)!important;
    gap:7px!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .class-workspace-tabs button{
    min-height:54px!important;
    padding:10px!important;
  }
}

@media(max-width:360px){
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-context-filters{
    grid-template-columns:1fr!important;
  }
  body.compasso-product-focus .teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""]) .teacher-unified-account-menu{
    grid-template-columns:1fr!important;
    max-height:62dvh!important;
  }
}

/* Final mobile action guard: historical canonical layer sets 40px with !important.
   Non-Home mobile actions require a 44px WCAG touch target. */
@media(max-width:760px){
  body.compasso-product-focus
  .teacher-unified-shell.teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""])
  .teacher-page-actions .teacher-x-inline-actions > button.teacher-x-primary,
  body.compasso-product-focus
  .teacher-unified-shell.teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""])
  .teacher-page-actions .teacher-x-inline-actions > button.teacher-x-secondary,
  body.compasso-product-focus
  .teacher-unified-shell.teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""])
  .teacher-page-actions > button.teacher-x-primary,
  body.compasso-product-focus
  .teacher-unified-shell.teacher-unified-shell:not([data-active-module="inicio"][data-active-sub="overview"][data-active-utility=""])
  .teacher-page-actions > button.teacher-x-secondary{
    box-sizing:border-box!important;
    min-height:44px!important;
    height:44px!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }
}
