/* R62 non-admin refinement. Roles and actual page structures are explicit;
   no admin, public, login or research-assistant component styles are changed. */
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .main-content:has(.school-home-guide) .metric-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .main-content:has(.school-home-guide) .metric {
  min-width: 0;
  padding: 16px;
  background: #fff;
  border-color: #ced9de;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .main-content:has(.school-home-guide) .metric strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .main-content:has(.school-home-guide) .metric :is(span, small) {
  color: #465e68;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .main-content:has(.school-home-guide) .dashboard-layout {
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: start;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .school-home-guide p {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 20px;
  margin: 0;
  line-height: 1.7;
  font-size: 14px;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .school-home-guide p b {
  font-size: inherit;
  font-weight: 600;
  color: #233f4b;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .school-home-guide p span {
  color: #465e68;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .school-activity-list article {
  min-width: 0;
  padding: 16px 12px;
  gap: 16px;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .school-activity-list article > div {
  min-width: 0;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .school-activity-list :is(b, small) {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .school-activity-list b {
  font-size: 14px;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .audit-workspace {
  gap: 20px;
  align-items: start;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .audit-queue button {
  min-width: 0;
  padding: 16px 12px;
  gap: 12px;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .audit-queue button > span {
  min-width: 0;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .audit-queue :is(b, small) {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] .audit-queue b {
  font-size: 14px;
}
#root .app-shell[data-design-role="SCHOOL_ADMIN"] :is(.school-activity-list, .audit-workspace, .account-list) :is(button, a, input, select, textarea):focus-visible,
#root .app-shell[data-design-role="TEACHER"] :is(.role-home--teacher, .activity-card-grid, .personal-timeline) :is(button, a, input, select, textarea):focus-visible,
#root .app-shell[data-design-role="EXPERT"] .role-home--expert :is(button, a):focus-visible,
#root .app-shell[data-design-role="EXPERT_LIAISON"] .review-supervision-workbench :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid #1e586a;
  outline-offset: 3px;
}
#root .app-shell[data-design-role="TEACHER"] .role-home--teacher .role-home-task-copy h2 {
  max-width: 38ch;
  font-size: 22px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#root .app-shell[data-design-role="TEACHER"] .role-home--teacher .role-home-heading-actions {
  align-items: flex-start;
}
#root .app-shell[data-design-role="TEACHER"] .role-home--teacher .role-home-key-facts {
  font-variant-numeric: tabular-nums;
}
#root .app-shell[data-design-role="EXPERT_LIAISON"] .review-supervision-workbench :is(.person-cell, .review-progress-list article) {
  min-width: 0;
}
#root .app-shell[data-design-role="EXPERT_LIAISON"] .review-supervision-workbench .person-cell :is(b, small) {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
@media (max-width: 1100px) {
  #root .app-shell[data-design-role="SCHOOL_ADMIN"] .main-content:has(.school-home-guide) .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  #root .app-shell[data-design-role="SCHOOL_ADMIN"] .main-content:has(.school-home-guide) .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  #root .app-shell[data-design-role="SCHOOL_ADMIN"] .main-content:has(.school-home-guide) .metric {
    padding: 12px 14px;
  }
  #root .app-shell[data-design-role="SCHOOL_ADMIN"] .main-content:has(.school-home-guide) .metric:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: baseline;
  }
  #root .app-shell[data-design-role="SCHOOL_ADMIN"] .main-content:has(.school-home-guide) .metric:last-child:nth-child(odd) small {
    grid-column: 1 / -1;
  }
  #root .app-shell[data-design-role="SCHOOL_ADMIN"] .school-home-guide p {
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 14px 16px;
    gap: 12px;
  }
  #root .app-shell[data-design-role="SCHOOL_ADMIN"] .school-activity-list article {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 16px 4px;
  }
  #root .app-shell[data-design-role="SCHOOL_ADMIN"] .school-activity-list article > :nth-child(n+3) {
    grid-column: 2;
    justify-self: start;
  }
  #root .app-shell[data-design-role="SCHOOL_ADMIN"] .school-activity-list article > button {
    min-height: 44px;
  }
  #root .app-shell[data-design-role="SCHOOL_ADMIN"] .audit-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  #root .app-shell[data-design-role="TEACHER"] .role-home--teacher .role-home-heading {
    gap: 14px;
  }
  #root .app-shell[data-design-role="TEACHER"] .role-home--teacher .role-home-heading-actions {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
  }
  #root .app-shell[data-design-role="TEACHER"] .role-home--teacher .role-home-heading-actions small {
    max-width: 24ch;
    text-align: left;
    line-height: 1.6;
  }
  #root .app-shell[data-design-role="TEACHER"] .role-home--teacher .role-home-task-copy h2 {
    font-size: 21px;
  }
  #root .app-shell[data-design-role="EXPERT"] .role-home--expert .role-home-key-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #root .app-shell[data-design-role="EXPERT"] .role-home--expert .role-home-key-facts > div {
    min-width: 0;
    padding: 16px 12px;
    border-right: 0;
    border-top: 1px solid #c5d2d9;
  }
  #root .app-shell[data-design-role="EXPERT"] .role-home--expert .role-home-key-facts > div:nth-child(even) {
    border-left: 1px solid #c5d2d9;
  }
  #root .app-shell[data-design-role="EXPERT_LIAISON"] .review-supervision-workbench .review-progress-list article {
    gap: 12px;
  }
}
