/* ============================================================
   UNIFY LAYER v2 — fixes from verifier audit
   Targets the ACTUAL rendered classnames on each tab
   ============================================================ */

/* === FILTER STRIP — same look on all three tabs ============== */
#dashboardTab .scope-bar,
#studentsTab .snv-scope,
#studentsTab .snv-filters,
#interventionsTab .ivx-toolbar {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  padding: .75rem 1rem !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: .75rem 1rem !important;
  margin-bottom: 1.25rem !important;
  box-shadow: none !important;
}

/* Search input wrapper across tabs */
#studentsTab .snv-search,
#interventionsTab .ivx-search {
  background: #F7F8F9 !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  padding: 0 .75rem !important;
  flex: 1 1 240px !important;
  min-width: 220px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  gap: .5rem !important;
}
#studentsTab .snv-search input,
#interventionsTab .ivx-search input {
  border: none !important;
  background: transparent !important;
  flex: 1 !important;
  font: 500 .875rem 'Inter', sans-serif !important;
  color: #0F172A !important;
  outline: none !important;
  padding: 0 !important;
  height: 100% !important;
}
#studentsTab .snv-search:focus-within,
#interventionsTab .ivx-search:focus-within {
  background: #fff !important;
  border-color: #004272 !important;
  box-shadow: 0 0 0 3px rgba(0,66,114,.12) !important;
}

/* Filter chips/buttons in Students search row — neutral hairline */
#studentsTab .snv-chip {
  background: #fff !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  height: 38px !important;
  padding: 0 .85rem !important;
  font: 500 .875rem 'Inter', sans-serif !important;
  color: #0F172A !important;
}
#studentsTab .snv-chip:hover { border-color: #004272 !important; color: #004272 !important; }
#studentsTab .snv-chip[data-active="true"] {
  background: #E6EEF5 !important;
  border-color: #004272 !important;
  color: #004272 !important;
}

/* Interventions select dropdowns — match same hairline */
#interventionsTab .ivx-filters select,
#interventionsTab .ivx-toolbar select {
  background: #fff !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  height: 38px !important;
  padding: 0 .75rem !important;
  font: 500 .875rem 'Inter', sans-serif !important;
  color: #0F172A !important;
}
#interventionsTab .ivx-filters select:focus,
#interventionsTab .ivx-toolbar select:focus {
  border-color: #004272 !important;
  box-shadow: 0 0 0 3px rgba(0,66,114,.12) !important;
  outline: none !important;
}

/* === HEADINGS — bump specificity for Students page title ===== */
#studentsTab .sx-page-title,
#studentsTab .snv-page-title,
#studentsTab h1,
#studentsTab h2,
.sx-page-title {
  font-family: 'Fraunces', Georgia, serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  color: #0F172A !important;
}

/* Kill any Playfair leftovers */
[style*="Playfair"], [style*="playfair"] { font-family: 'Fraunces', Georgia, serif !important; }

/* === TABBAR — fix overlap on narrower viewports ============== */
.pebble-tabbar {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: .25rem !important;
}
.pebble-tab {
  white-space: nowrap !important;
  padding: .95rem 1.1rem !important;
}
@media (max-width: 1280px) {
  .pebble-tabbar .school-chip,
  .pebble-tabbar .pebble-brand-motto,
  .pebble-tabbar [class*="snapshot"],
  .pebble-tabbar [class*="brand-pill"] { display: none !important; }
  .pebble-tab { padding: .95rem .85rem !important; font-size: .875rem !important; }
}
@media (max-width: 1080px) {
  .pebble-tabbar-logo { display: none !important; }
  .pebble-tab { padding: .85rem .6rem !important; font-size: .8125rem !important; }
}
@media (max-width: 880px) {
  .pebble-tabbar [class*="admin-badge"],
  .pebble-tabbar .role-pill,
  .pebble-tabbar [class*="role-"] { display: none !important; }
}

/* Make sure the right-side cluster wraps to the right edge cleanly */
.pebble-tabbar .pebble-tabbar-right,
.pebble-tabbar > *:last-child {
  margin-left: auto !important;
}

/* === Students "Snapshot" / chip cluster row also needs unified card === */
#studentsTab .snv-search-row,
#studentsTab .snv-controls,
#studentsTab .snv-toolbar {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

/* Make sure no italic Jost/Playfair sneaks into UI labels */
.snv-chip, .snv-search input, .ivx-search input,
.scope-control label, .sx-filter-btn,
.pebble-tab, .widget h3, .dash-section-title {
  font-sty