/* Shared shell for the student entry and teacher dashboard. */
:root {
  --bg: #f5f0ff !important;
  --primary: #6d28d9 !important;
  --primary-dark: #4c1d95 !important;
  --shadow: 0 10px 30px rgba(76, 29, 149, .08);
}

html, body { background: #f5f0ff !important; }

header.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px max(3vw, 24px);
  background: linear-gradient(135deg, #4c1d95, #6d28d9 55%, #a78bfa) !important;
  color: #ffffff;
}
header.app-header h1 { margin: 0 0 5px; color: #ffffff; }
header.app-header p { color: #ffffff; opacity: .92; }
.header-actions, .header-admin-actions, .header-student-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.header-actions { justify-content: flex-end; }
.language-toggle { white-space: nowrap; }
header.app-header .language-toggle[aria-pressed="true"] { background: #4c1d95 !important; border-color: rgba(255, 255, 255, .7) !important; color: #fff !important; }
.header-admin-actions.hidden, .header-student-actions.hidden { display: none; }
.header-admin-actions, .header-student-actions { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .45); }
.header-student-actions span { font-weight: 600; white-space: nowrap; }
header.app-header button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #ede9fe !important;
  color: #2e1065 !important;
  box-shadow: 0 4px 12px rgba(46, 16, 101, .12) !important;
}
header.app-header .tab-btn.active {
  background: #4c1d95 !important;
  border-color: rgba(255, 255, 255, .7) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(46, 16, 101, .28) !important;
}
header.app-header button:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
.teacher-nav button:focus-visible { outline: 3px solid #4c1d95; outline-offset: 2px; }

.app { margin: 24px auto 40px; }
.card { border-color: #ede9fe; box-shadow: var(--shadow); }
#admin-overview > .card { overflow-x: auto; }

.teacher-nav {
  gap: 8px;
  padding: 0;
  margin-bottom: 4px;
  border: 0;
  background: transparent;
}
.teacher-nav button {
  min-height: 44px;
  border-radius: 999px;
  background: #ede9fe !important;
  color: #2e1065 !important;
  box-shadow: none !important;
}
.teacher-nav button.active {
  background: #4c1d95 !important;
  border-color: #4c1d95 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(76, 29, 149, .24) !important;
}

.student-portal { width: 100%; }
.student-login-card { max-width: 460px; margin: 42px auto 80px; padding: 38px; }
.student-login-kicker { display: block; margin-bottom: 8px; color: #6d28d9; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.student-login-heading h2, .student-welcome h2 { margin: 0 0 8px; }
.student-login-heading p, .student-welcome p { color: #64748b; margin: 0 0 24px; }
#studentLoginForm { display: grid; gap: 9px; }
#studentLoginForm label { margin-top: 8px; font-weight: 700; }
#studentLoginForm input { min-height: 48px; }
#studentLoginButton { margin-top: 12px; min-height: 48px; }
.student-login-error { margin: 4px 0 0; color: #b91c1c; font-weight: 600; }
.student-shell { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 18px; align-items: start; }
.student-shell.hidden { display: none; }
.student-sidebar { position: sticky; top: 18px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-height: 0; padding: 12px 9px; border: 1px solid #e5dcf3; border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(76, 29, 149, .08); }
.student-sidebar-home { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; align-self: center; border-radius: 17px; background: #ede9fe; color: #5b21b6; }
.student-sidebar-home svg { width: 25px; height: 25px; }
.student-sidebar-menu { display: grid; align-content: start; gap: 3px; width: 100%; min-height: 0; padding: 0; border-radius: 0; background: transparent; }
.student-sidebar button { width: 100%; min-height: 52px; padding: 10px 6px; border: 0; border-radius: 13px; background: transparent; color: #5b21b6; text-align: center; font-size: 16px; font-weight: 800; box-shadow: none; }
.student-sidebar button:hover { background: #f5f0ff; color: #4c1d95; }
.student-sidebar button[aria-current="page"] { background: #ede9fe; color: #4c1d95; box-shadow: inset 0 0 0 2px #d8c9f3; }
.teacher-shell { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 18px; align-items: start; }
.teacher-main { min-width: 0; }
.teacher-nav { position: sticky; top: 18px; display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; min-height: 0; padding: 12px 9px; margin: 0; border: 1px solid #e5dcf3; border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(76, 29, 149, .08); }
.teacher-nav-menu { display: grid; align-content: start; gap: 3px; width: 100%; min-height: 0; padding: 0; border-radius: 0; background: transparent; }
.teacher-nav .teacher-nav-menu button { width: 100%; min-height: 52px; padding: 9px 4px; border: 0; border-radius: 13px; background: transparent !important; color: #5b21b6 !important; text-align: center; font-size: 14px; font-weight: 800; box-shadow: none !important; }
.teacher-nav .teacher-nav-menu button:hover { background: #f5f0ff !important; color: #4c1d95 !important; }
.teacher-nav .teacher-nav-menu button.active { background: #ede9fe !important; color: #4c1d95 !important; box-shadow: inset 0 0 0 2px #d8c9f3 !important; }
.student-main { min-width: 0; }
.student-sidebar button:focus-visible, .student-report button:focus-visible, .student-learning-report button:focus-visible { outline: 3px solid #6d28d9; outline-offset: 3px; }
.student-content-panel { margin-top: 0; }
#studentTestPanel { width: 100%; }
#studentTestPanel select { width: min(100%, 720px); margin: 8px 0 14px; }
.student-report { color: #241f2b; }
.student-report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.student-report-header h2 { margin: 0 0 5px; }
.student-report-header p { margin: 0; color: #64748b; }
.student-report-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.student-report-tabs button { min-height: 44px; border-radius: 12px; border: 1px solid #ddd6fe; background: #fff; color: #4c1d95; padding: 8px 16px; }
.student-report-tabs button[aria-selected="true"] { background: #4c1d95; color: #fff; border-color: #4c1d95; }
.student-report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.student-report .report-panel { background: #fff; border: 1px solid #e5e1ec; border-radius: 16px; padding: 22px; margin: 0 0 16px; }
.student-report .report-panel h3 { margin: 0 0 14px; }
.student-report-metric { border-top: 3px solid #8b5cf6; background: #faf8ff; border-radius: 12px; padding: 16px; }
.student-report-metric strong { display: block; font-size: 27px; color: #24144d; }
.student-report-metric span { color: #64748b; font-size: 14px; }
.student-report-trend { width: 100%; height: auto; display: block; }
.student-report-table-wrap { overflow-x: auto; }
.student-report table { width: 100%; border-collapse: collapse; }
.student-report th, .student-report td { text-align: left; padding: 10px; border-bottom: 1px solid #e5e1ec; vertical-align: top; }
.student-report th { background: #f3f0fa; color: #3b236a; white-space: nowrap; }
.student-report .report-status { font-weight: 700; }
.student-report .report-status.correct { color: #047857; }
.student-report .report-status.wrong { color: #b91c1c; }
.student-report .report-status.pending { color: #64748b; }
.student-report .report-tip { background: #f5f0ff; border-left: 4px solid #6d28d9; padding: 14px 16px; }
.shared-personal-report { min-width: 0; }
.shared-personal-report .report-choice-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.shared-personal-report .report-choice-list button { min-height: 44px; border-radius: 10px; }
.shared-personal-report .personal-report-card { min-width: 0; }
.shared-personal-report .personal-report-scroll { width: 100%; overflow-x: auto; }
.shared-personal-report .personal-report-scroll table { min-width: 880px; }
.shared-personal-report .metric { min-width: 0; }
.test-report-intro { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 20px; }
.test-report-intro h2 { margin: 5px 0 0; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.25; }
.test-report-intro button { min-height: 42px; }
.student-report-page .report-choice-list { margin-bottom: 18px; }
.student-report-page .report-choice-list button { border-radius: 13px; padding: 10px 16px; }
.student-report-page .personal-report-card { padding: clamp(18px, 2.2vw, 30px); border-radius: 22px; }
.personal-report-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.personal-report-meta span { display: inline-flex; align-items: center; min-height: 31px; padding: 5px 11px; border-radius: 999px; background: #f4efff; color: #5b4582; font-size: 13px; }
.student-report-page .personal-report-card h3 { margin: 28px 0 14px; font-size: 20px; line-height: 1.4; }
.student-report-page .personal-report-card h3:first-of-type { margin-top: 0; }
.student-report-page .personal-report-card .grid.grid-4 { gap: 12px; }
.student-report-page .personal-report-card .metric { min-height: 104px; padding: 17px; border-radius: 16px; }
.student-report-page .personal-report-card .num { font-size: 26px; line-height: 1.25; }
.student-report-page .personal-report-card .num small { display: block; margin-top: 4px; font-size: 13px; }
.student-report-page .personal-report-card .label { margin-top: 9px; font-size: 13px; }
.student-report-page .personal-report-scroll { border: 1px solid #ece5f4; border-radius: 14px; }
.student-report-page .personal-report-scroll table { font-size: 13px; }
.student-portal .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Live reading learning report. */
.student-learning-report { color: #242424; }
.learning-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.learning-header-actions { display: flex; align-items: end; justify-content: flex-end; gap: 12px; margin-left: auto; }
.learning-intro h2 { margin: 0 0 6px; font-size: 30px; }
.learning-intro p { margin: 0; color: #595959; }
.learning-intro button, .student-learning-report button:not(.learning-tests button) { min-height: 44px; }
.learning-tests { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.learning-tests button { display: grid; gap: 4px; min-height: 60px; padding: 10px 14px; border: 1px solid #c8bfd3; border-radius: 14px; background: #fff; color: #242424; text-align: left; }
.learning-tests button[aria-current="true"] { background: #ded4eb; border-color: #563675; }
.learning-tests button small { color: #595959; }
.learning-overview { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
.learning-panel { min-width: 0; margin-bottom: 16px; padding: 22px; border: 1px solid #d3d3d3; border-radius: 20px; background: #fff; }
.learning-panel h2, .learning-panel h3 { margin: 0 0 14px; color: #242424; }
.learning-panel h3 { font-size: 20px; }
.learning-panel h4 { margin: 0 0 10px; }
.learning-panel details { margin-top: 16px; }
.learning-panel summary, .learning-expand > summary { cursor: pointer; font-size: 16px; font-weight: 700; }
.learning-panel summary:focus-visible, .learning-expand > summary:focus-visible, .learning-answer summary:focus-visible { outline: 3px solid #563675; outline-offset: 3px; }
.learning-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.learning-numbers > div { padding: 12px; border-radius: 14px; background: #f7f5fa; }
.learning-numbers span { display: block; color: #595959; font-size: 14px; }
.learning-numbers strong { display: block; color: #563675; font-size: 28px; }
.learning-numbers small { font-size: 15px; color: #595959; }
.learning-trend { display: block; width: 100%; height: auto; }
.learning-caption { color: #595959; font-size: 14px; }
.learning-passages { display: grid; gap: 8px; margin-top: 12px; }
.learning-passages > div { border-left: 3px solid #c8bfd3; border-radius: 12px; padding: 8px 12px; background: #f9f8fb; }
.learning-passages p { margin: 0; }
.learning-expand { margin-bottom: 16px; }
.learning-expand > summary { padding: 14px 18px; border: 1px solid #d3d3d3; border-radius: 16px; background: #ded4eb; color: #242424; }
.learning-expand[open] > summary { border-radius: 16px 16px 0 0; }
.learning-expand > .learning-panel { margin-bottom: 0; border-top: 0; border-radius: 0 0 20px 20px; }
.learning-expand > .learning-panel + .learning-panel { margin-top: 16px; border-top: 1px solid #d3d3d3; border-radius: 20px; }
.learning-observation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.learning-mini { min-width: 0; padding: 12px 14px; border: 1px solid #d3d3d3; border-radius: 16px; }
.learning-mini h4 { margin-bottom: 6px; }
.learning-mini-legend { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 2px 8px; min-height: 32px; margin-bottom: 3px; font-size: 10px; line-height: 1.2; color: #595959; }
.learning-mini-legend span { display: inline-flex; align-items: center; gap: 3px; }
.learning-mini-legend svg { flex: 0 0 22px; width: 22px; height: 16px; }
.learning-mini-legend i { width: 8px; height: 8px; border: 2px solid var(--series-color); border-radius: 50%; background: var(--series-color); }
.learning-mini-legend span:first-child i { background: #fff; }
.learning-mini-trend { display: block; width: 100%; height: auto; }
.learning-mini details { margin-top: 3px; }
.learning-mini p { margin: 4px 0 0; font-size: 13px; color: #595959; }
.learning-table-wrap { overflow-x: auto; border: 1px solid #e6e0ea; border-radius: 12px; }
.learning-type-child { display: inline-block; padding-left: 18px; }
.student-learning-report table { width: 100%; border-collapse: collapse; }
.student-learning-report th, .student-learning-report td { padding: 10px; border-bottom: 1px solid #d3d3d3; text-align: left; vertical-align: top; }
.student-learning-report th { background: #f3f3f3; }
.learning-answers { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.student-learning-report .learning-answer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 58px; margin: 0; padding: 10px 14px; border: 1px solid #d3d3d3; border-radius: 12px; background: #f7f7f7; color: #563675; font-size: 16px; font-weight: 750; text-align: left; }
.student-learning-report .learning-answer.correct { background: #eee7f5; color: #563675; }
.student-learning-report .learning-answer.wrong { background: #fff1f0; color: #8b2424; }
.student-learning-report .learning-answer.blank { border-style: dashed; color: #6b7280; }
.student-learning-report .learning-answer.withheld { background: #f7f7f7; color: #4b5563; }
.student-learning-report .learning-answer[aria-pressed="true"] { outline: 2px solid #563675; outline-offset: 1px; }
.student-learning-report .learning-answer-symbol { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #ded4eb; font-size: 20px; line-height: 1; }
.student-learning-report .learning-answer.wrong .learning-answer-symbol { background: #fee2e2; }
.student-learning-report .learning-answer.blank .learning-answer-symbol { background: #e5e7eb; }
.learning-question-detail { min-height: 90px; padding: 14px 16px; border: 1px solid #e6e0ea; border-radius: 12px; background: #f8f6fb; font-size: 14px; line-height: 1.55; }
.learning-question-detail p { margin: 6px 0 0; }
.learning-record-subheading { margin: 26px 0 14px !important; padding-top: 22px; border-top: 1px solid #e6e0ea; }
.learning-question-table { overflow-x: auto; }
.learning-question-table table { min-width: 1080px; font-size: 13px; }
.learning-question-table td { max-width: 240px; overflow-wrap: anywhere; }
.learning-error-question { background: #fff8f7; }
.learning-error-toggle { min-height: 44px !important; padding: 8px 10px; border: 1px solid #e7b7b4; border-radius: 8px; background: #fff; color: #922b28; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.learning-error-toggle:hover, .learning-error-toggle[aria-expanded="true"] { background: #fce9e7; }
.learning-error-toggle:focus-visible { outline: 3px solid #563675; outline-offset: 2px; }
.learning-analysis-row[hidden] { display: none; }
.learning-analysis-row > td { padding: 18px !important; background: #fdfbff; }
.learning-error-analysis h4 { margin: 0 0 10px; }
.learning-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.learning-evidence-grid > div { padding: 12px; border: 1px solid #e6e0ea; border-radius: 12px; background: #fff; }
.learning-evidence-grid blockquote { margin: 8px 0; padding: 6px 10px; border-left: 3px solid #7c5bab; background: #f6f2fb; }
.learning-evidence-grid ol { margin: 8px 0; padding-left: 22px; }
.learning-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.learning-plan-grid article { border: 1px solid #d3d3d3; border-radius: 16px; padding: 16px; background: #faf9fc; }
.student-learning-report textarea { display: block; width: 100%; margin: 8px 0 12px; border-radius: 12px; }

@media (max-width: 1180px) {
  .learning-observation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-answers { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .student-report-page .personal-report-card .grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  .app-header, .student-sidebar, .learning-intro button, .learning-tests, .student-learning-report [data-save-learning-note] { display: none !important; }
  .student-shell { display: block; }
  .learning-panel { break-inside: avoid; }
}

@media (max-width: 760px) {
  .learning-evidence-grid { grid-template-columns: 1fr; }
  .learning-answers { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .student-learning-report .learning-answer { min-height: 48px; padding: 6px; font-size: 13px; }
  .student-learning-report .learning-answer-symbol { width: 20px; height: 20px; font-size: 16px; }
  header.app-header { align-items: flex-start; flex-wrap: wrap; }
  .header-title { width: 100%; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .header-admin-actions, .header-student-actions { padding-left: 0; border-left: 0; }
  .app { margin-top: 18px; }
  .student-login-card { margin: 16px auto 36px; padding: 26px 20px; }
  .student-shell, .teacher-shell { grid-template-columns: 1fr; gap: 14px; }
  .student-sidebar, .teacher-nav { position: static; flex-direction: row; flex-wrap: nowrap; min-height: 0; padding: 12px; gap: 12px; border-radius: 24px; }
  .student-sidebar-home { width: 58px; height: 58px; border-radius: 18px; }
  .student-sidebar-home svg { width: 24px; height: 24px; }
  .student-sidebar-menu, .teacher-nav-menu { display: flex; flex-wrap: wrap; width: auto; min-width: 0; flex: 1; min-height: 0; padding: 6px; gap: 4px; border-radius: 20px; }
  .student-sidebar button { width: auto; flex: 1 1 95px; min-height: 46px; padding: 8px; font-size: 15px; border-radius: 14px; }
  .teacher-nav .teacher-nav-menu button { width: auto; flex: 1 1 95px; min-height: 46px; padding: 8px; font-size: 15px; border-radius: 14px; }
  .student-report-grid { grid-template-columns: 1fr; }
  .student-report-header { flex-direction: column; }
  .learning-intro { flex-direction: column; }
  .learning-overview, .learning-observation-grid, .learning-plan-grid { grid-template-columns: 1fr; }
  .test-report-intro { align-items: flex-start; flex-direction: column; }
  .learning-numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Purple platform sidebar, with compact and expanded states. */
.student-shell, .teacher-shell { --sidebar-width: 196px; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); gap: 22px; }
.student-shell.sidebar-collapsed, .teacher-shell.sidebar-collapsed { --sidebar-width: 74px; }
.student-sidebar.platform-sidebar, .teacher-nav.platform-sidebar { position: sticky; top: 18px; display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding: 12px; border: 1px solid rgba(109, 40, 217, .12); border-radius: 24px; background: rgba(255, 255, 255, .9); box-shadow: 0 14px 36px rgba(76, 29, 149, .1); backdrop-filter: blur(16px); }
.platform-sidebar-head { display: flex; align-items: center; gap: 9px; min-height: 52px; padding-bottom: 12px; border-bottom: 1px solid #eee8f6; }
.platform-sidebar .student-sidebar-home { display: grid; place-items: center; align-self: auto; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, #5421a7, #8853e0); color: #fff; box-shadow: 0 6px 12px rgba(76, 29, 149, .2); }
.platform-sidebar .student-sidebar-home svg { width: 22px; height: 22px; }
.platform-sidebar-brand { min-width: 0; flex: 1; color: #321467; font-size: 13px; font-weight: 850; line-height: 1.2; }
.student-sidebar.platform-sidebar .sidebar-collapse, .teacher-nav.platform-sidebar .sidebar-collapse { display: grid; place-items: center; flex: 0 0 28px; width: 28px; min-height: 28px; height: 28px; padding: 0; border: 1px solid #e8dff5 !important; border-radius: 9px; background: #f8f5fe !important; color: #5b21b6 !important; box-shadow: none !important; }
.sidebar-collapse svg { width: 18px; height: 18px; }
.platform-sidebar-caption { margin: 17px 10px 8px; color: #9a8eb2; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.student-sidebar.platform-sidebar .student-sidebar-menu, .teacher-nav.platform-sidebar .teacher-nav-menu { display: grid; gap: 5px; width: 100%; min-height: 0; padding: 0; background: transparent; }
.student-sidebar.platform-sidebar .student-sidebar-menu button, .teacher-nav.platform-sidebar .teacher-nav-menu button { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid transparent !important; border-radius: 13px; background: transparent !important; color: #594a70 !important; font-size: 14px; font-weight: 750; text-align: left; box-shadow: none !important; transform: none; }
.platform-sidebar .student-sidebar-menu button svg { flex: 0 0 20px; width: 20px; height: 20px; }
.platform-sidebar .nav-glyph { display: block; flex: 0 0 20px; width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.student-sidebar.platform-sidebar .student-sidebar-menu button:hover, .teacher-nav.platform-sidebar .teacher-nav-menu button:hover { background: #f5efff !important; color: #4c1d95 !important; }
.student-sidebar.platform-sidebar .student-sidebar-menu button[aria-current="page"], .teacher-nav.platform-sidebar .teacher-nav-menu button.active { background: #eee6ff !important; color: #4c1d95 !important; box-shadow: inset 3px 0 0 #6d28d9 !important; }
.platform-sidebar .student-sidebar-menu button:focus-visible, .platform-sidebar .teacher-nav-menu button:focus-visible, .platform-sidebar .sidebar-collapse:focus-visible { outline: 3px solid #6d28d9; outline-offset: 2px; }
.sidebar-collapsed .platform-sidebar-head { flex-direction: column; gap: 8px; }
.sidebar-collapsed .platform-sidebar-brand, .sidebar-collapsed .platform-sidebar-caption, .sidebar-collapsed .platform-sidebar-menu button > span:not(.nav-glyph), .sidebar-collapsed .student-sidebar-menu button > span, .sidebar-collapsed .teacher-nav-menu button > span:not(.nav-glyph) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sidebar-collapsed .sidebar-collapse svg { transform: rotate(180deg); }
.sidebar-collapsed .student-sidebar.platform-sidebar .student-sidebar-menu button, .sidebar-collapsed .teacher-nav.platform-sidebar .teacher-nav-menu button { justify-content: center; padding: 10px; }

/* Identical heading and attempt selectors on both report pages. */
.student-report-page .test-report-intro, .student-learning-report .learning-intro { align-items: end; margin: 0 0 22px; }
.student-report-page .student-login-kicker, .student-learning-report .student-login-kicker { margin-bottom: 8px; color: #6d28d9; font-size: 15px; font-weight: 850; letter-spacing: .18em; line-height: 1.25; }
.student-report-page .test-report-intro h2, .student-learning-report .learning-intro h2 { margin: 0; color: #202733; font-size: clamp(30px, 3vw, 42px); font-weight: 850; line-height: 1.2; letter-spacing: -.025em; }
.student-report-page .test-report-intro h2, .student-learning-report .learning-intro h2 { font-size: clamp(26px, 2.3vw, 34px); }
.student-report-page .report-choice-list, .student-learning-report .learning-tests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.student-report-page .report-choice-list button, .student-learning-report .learning-tests button { display: flex; align-items: center; min-width: 0; min-height: 68px; padding: 14px 19px; border: 1px solid transparent !important; border-radius: 18px; background: #ede9fe !important; color: #321467 !important; font-size: 16px; font-weight: 800; line-height: 1.4; text-align: left; box-shadow: none !important; overflow-wrap: anywhere; }
.student-report-page .report-choice-list button[aria-current="true"], .student-learning-report .learning-tests button[aria-current="true"] { border-color: #6b3ab7 !important; background: #f2ecff !important; box-shadow: inset 0 0 0 1px #6b3ab7 !important; }
.student-report-page .personal-report-card, .student-report-page .personal-report-card .metric { background: #fff !important; }
.student-report-page .personal-report-card .metric { border-color: #e8e1f2; }
.student-report-page .personal-report-scroll table th { background: #f6f3fb; }
.learning-ability-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.learning-ability-heading h3 { margin-bottom: 0; }
.learning-summary-legend { display: inline-flex; align-items: center; gap: 6px; flex: none; color: #6b7280; font-size: 12px; }
.learning-summary-legend svg { width: 32px; height: 20px; }
.learning-mini-legend svg { width: 22px; height: 16px; flex: none; }
.learning-chart-point:focus-visible { outline: 2px solid #563675; outline-offset: 2px; }
.student-learning-report .learning-type-total td { background: #edf0f3 !important; color: #27303b; font-weight: 750; }
.personal-metric-scroll { max-width: 100%; overflow-x: auto; padding-bottom: 4px; }
.personal-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-width: 960px; }
.personal-metric-grid .metric-pair { min-width: 0; min-height: 142px; padding: 16px; background: #fff !important; border: 1px solid #e8e1f2; border-radius: 16px; }
.personal-metric-grid .metric-pair h4 { margin: 0 0 14px; color: #51317c; font-size: 14px; }
.metric-pair-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.metric-pair-values > div + div { padding-left: 10px; border-left: 1px solid #e8e1f2; }
.metric-pair-label { display: block; min-height: 20px; color: #64748b; font-size: 12px; white-space: nowrap; }
.metric-pair-values .num, .student-report-page .metric-pair .num { margin-top: 4px; color: #171b32; font-size: 22px; font-weight: 850; line-height: 1.2; white-space: nowrap; }
.metric-pair-values .num small { display: block; margin-top: 4px; font-size: 12px; font-weight: 650; }
.task-category-fields { margin-top: 12px; }
.task-category-help { margin: 5px 0 0; font-size: 13px; }
.teacher-learning-report .learning-intro h2 { font-size: 24px; }
.teacher-learning-filters { display: flex; flex: 0 1 430px; gap: 10px; }
.teacher-learning-filters label { flex: 1 1 155px; min-width: 0; margin: 0; color: #4b5563; font-size: 12px; font-weight: 700; }
.teacher-learning-filters select { width: 100%; min-width: 0; margin-top: 5px; }
.teacher-learning-report { min-width: 0; }
@media print { .teacher-nav, .teacher-learning-filters { display: none !important; } .teacher-shell { display: block; } }

@media (max-width: 760px) {
  .student-shell, .teacher-shell, .student-shell.sidebar-collapsed, .teacher-shell.sidebar-collapsed { grid-template-columns: 1fr; }
  .student-sidebar.platform-sidebar, .teacher-nav.platform-sidebar { position: static; padding: 10px; }
  .platform-sidebar-head { display: none; }
  .platform-sidebar-caption { display: none; }
  .student-sidebar.platform-sidebar .student-sidebar-menu, .teacher-nav.platform-sidebar .teacher-nav-menu { display: flex; flex-wrap: wrap; gap: 4px; }
  .student-sidebar.platform-sidebar .student-sidebar-menu button, .teacher-nav.platform-sidebar .teacher-nav-menu button { justify-content: center; flex: 1 1 80px; width: auto; min-height: 46px; padding: 8px; }
  .sidebar-collapsed .student-sidebar-menu button > span, .sidebar-collapsed .teacher-nav-menu button > span:not(.nav-glyph) { position: static; width: auto; height: auto; clip-path: none; }
  .student-report-page .report-choice-list, .student-learning-report .learning-tests { grid-template-columns: 1fr; }
  .student-report-page .test-report-intro, .student-learning-report .learning-intro { align-items: flex-start; }
  .teacher-learning-report .learning-intro { flex-direction: column; align-items: stretch; }
  .teacher-learning-report .learning-header-actions { width: 100%; margin-left: 0; }
  .teacher-learning-filters { flex: 1 1 auto; flex-wrap: wrap; }
}
