/* SAFE V92 — screenshot-grounded dark contrast corrections. Presentation only.
   Never change status colors, input data, API calls, or tab navigation. */

/* Home ACTIVE roster was hardcoded white in styles.css. */
#view-home .home-operating-card .operating-table {
  background:#1c1c20!important;
  border-color:#414149!important;
}
#view-home .home-operating-card .operating-row {
  background:#232328!important;
  color:#f4f4f6!important;
  border-bottom-color:#414149!important;
}
#view-home .home-operating-card .operating-row:not(.operating-head):hover {
  background:#303038!important;
}
#view-home .home-operating-card .operating-head {
  background:#303038!important;
  color:#c8c9d1!important;
}
#view-home .home-operating-card .operating-row :is(b,strong,span,small) {
  color:inherit;
}
#view-home .home-operating-card .operating-row :is(.muted,.meta) {
  color:#c4c4cd!important;
}
#view-home .home-operating-card .operating-row button {
  background:#303039!important;
  color:#f4f4f6!important;
  border-color:#5a5a65!important;
}

/* HOME TODAY / transient drilldown: never flash a white panel during refresh. */
#view-home #homeTodayCard,
#view-home #todayList,
#view-home #metricDrilldown:not(.hidden),
#view-home #homeServiceCardSafeV40,
#view-home #homeAttention {
  background-color:#1c1c20!important;
  color:#f4f4f6!important;
}
#view-home #metricDrilldown.hidden { display:none!important; }

/* Screenshot: service-only profile header buttons were white with pale labels. */
#view-detail .student-summary-card .actions button.ghost {
  background:#303640!important;
  color:#f4f4f6!important;
  border:1px solid #59616d!important;
  opacity:1!important;
}
#view-detail .student-summary-card .actions button.ghost:focus-visible {
  outline:2px solid #b4e0c0!important;
  outline-offset:2px;
}

/* Keep profile fields legible at desktop width, without changing form behavior. */
#view-detail [data-student-panel="profile"] :is(input,textarea,select) {
  background:#232327!important;
  color:#f7f7f8!important;
  border-color:#55565f!important;
  opacity:1!important;
}
