:root {
  --ink: #172033;
  --muted: #64748b;
  --line: #dbe4ed;
  --surface: #ffffff;
  --soft: #f5f8fb;
  --blue: #1269a8;
  --green: #047857;
  --orange: #ea580c;
  font-family: "Mali", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #eef3f7;
  line-height: 1.55;
}
button, input { font: inherit; }
button { cursor: pointer; }
.assessment-app { width: min(1120px, 100%); margin: 0 auto; min-height: 100vh; background: var(--surface); }
.assessment-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.assessment-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.assessment-brand img { width: 48px; height: 48px; object-fit: contain; }
.assessment-brand strong, .assessment-brand span { display: block; }
.assessment-brand strong { color: var(--blue); font-size: 23px; line-height: 1.1; }
.assessment-brand span { color: var(--muted); font-size: 11px; }
.header-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #475569;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.header-link svg { width: 16px; height: 16px; }
.assessment-header-actions { display: flex; align-items: center; gap: 8px; }
.auth-badge { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #fed7aa; border-radius: 8px; color: #9a3412; background: #fff7ed; font-size: 10px; font-weight: 700; }
.auth-badge.synced { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.auth-badge > span, .auth-badge small { display: block; }
.auth-badge small { color: var(--muted); font-size: 8px; }
.auth-badge a { color: inherit; }
.auth-badge svg { width: 16px; }
.assessment-main { padding: 18px; }
.exam-intro { max-width: 760px; margin: 34px auto; }
.exam-kicker { color: var(--blue); font-size: 12px; font-weight: 700; }
.exam-intro h1 { margin: 5px 0 8px; font-size: 30px; letter-spacing: 0; }
.exam-intro > p { color: var(--muted); }
.exam-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.exam-rule { padding: 12px; border-left: 4px solid var(--blue); background: var(--soft); }
.exam-rule:nth-child(2) { border-color: var(--orange); }
.exam-rule:nth-child(3) { border-color: var(--green); }
.exam-rule strong, .exam-rule span { display: block; }
.exam-rule strong { font-size: 13px; }
.exam-rule span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.primary-command {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}
.exam-screen[hidden], .exam-intro[hidden], .result-screen[hidden] { display: none; }
.exam-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: -18px -18px 14px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.exam-toolbar strong, .exam-toolbar span { display: block; }
.exam-toolbar strong { font-size: 14px; }
.exam-toolbar span { color: var(--muted); font-size: 10px; }
.timer {
  min-width: 94px;
  padding: 8px 10px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}
.timer.urgent { color: #be123c; border-color: #fecdd3; background: #fff1f2; }
.question-nav {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 12px;
}
.question-nav button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.question-nav button.answered { color: #fff; border-color: var(--green); background: var(--green); }
.question-card { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.question-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.question-card h2 { margin: 12px 0 15px; font-size: 18px; line-height: 1.65; letter-spacing: 0; }
.choices { display: grid; gap: 8px; }
.choice {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}
.choice:hover { border-color: #94a3b8; }
.choice.selected { border-color: var(--blue); background: #eff6ff; }
.choice b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #eef2f7; }
.choice.selected b { color: #fff; background: var(--blue); }
.question-actions { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; }
.question-actions button {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-weight: 700;
}
.question-actions .submit-exam { color: #fff; border-color: var(--green); background: var(--green); }
.result-screen { max-width: 820px; margin: 26px auto; }
.result-hero { padding: 20px; border-left: 5px solid var(--green); background: #ecfdf5; }
.result-hero h1 { margin: 0; font-size: 25px; }
.score-number { margin-top: 8px; color: var(--green); font-size: 42px; font-weight: 700; }
.domain-results { display: grid; gap: 8px; margin: 18px 0; }
.domain-row { display: grid; grid-template-columns: 145px minmax(0, 1fr) 46px; align-items: center; gap: 8px; font-size: 11px; }
.domain-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.domain-fill { height: 100%; background: var(--blue); }
.result-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.result-links a { min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: #334155; font-weight: 700; text-decoration: none; }
.privacy-note { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.privacy-note svg { width: 16px; }
.question-nav button.current { outline: 3px solid #bae6fd; border-color: var(--blue); }
.question-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.question-actions button:disabled { cursor: not-allowed; opacity: .4; }
.question-actions svg { width: 17px; }
.dashboard-main { padding: 22px; }
.dashboard-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.dashboard-heading h1 { margin: 3px 0; font-size: 28px; letter-spacing: 0; }
.dashboard-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.local-data-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid #bfdbfe; border-radius: 999px; color: #075985; background: #eff6ff; font-size: 10px; font-weight: 700; white-space: nowrap; }
.local-data-badge svg { width: 15px; }
.local-data-badge.synced { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.metric { min-height: 112px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 7px 9px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.metric svg { grid-row: 1 / 3; width: 22px; color: var(--blue); }
.metric span { color: var(--muted); font-size: 11px; }
.metric strong { align-self: end; font-size: 24px; line-height: 1.1; }
.metric.green svg { color: var(--green); }
.metric.orange svg { color: var(--orange); }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 10px; margin-top: 10px; }
.dashboard-panel { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-title h2 { margin: 2px 0 0; font-size: 17px; letter-spacing: 0; }
.panel-title > svg { width: 22px; color: var(--blue); }
.score-bars { display: grid; gap: 17px; padding-block: 12px; }
.score-bar > div:first-child { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; }
.score-bar span { color: var(--muted); }
.score-track { height: 16px; overflow: hidden; border-radius: 4px; background: #e8eef4; }
.score-track > div { height: 100%; background: var(--blue); }
.score-bar:nth-child(2) .score-track > div { background: var(--green); }
.donut-wrap { display: grid; justify-items: center; gap: 9px; }
.donut { width: 142px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--score) * 1%), #e5edf3 0); }
.donut::before { content: ""; grid-area: 1 / 1; width: 102px; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.donut span { position: relative; grid-area: 1 / 1; text-align: center; }
.donut strong, .donut small { display: block; }
.donut strong { font-size: 25px; }
.donut small, .donut-wrap p { color: var(--muted); font-size: 10px; }
.domain-panel { margin-top: 10px; }
.domain-dashboard { display: grid; gap: 10px; }
.domain-dashboard-row { display: grid; grid-template-columns: 175px minmax(0, 1fr) 42px; align-items: center; gap: 10px; }
.domain-dashboard-row > div:first-child strong, .domain-dashboard-row > div:first-child span { display: block; }
.domain-dashboard-row strong { font-size: 11px; }
.domain-dashboard-row span { color: var(--muted); font-size: 9px; }
.empty-chart, .empty-domain { display: grid; place-items: center; min-height: 130px; color: var(--muted); text-align: center; font-size: 11px; }
.empty-chart svg { width: 36px; }
.dashboard-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.dashboard-actions a { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; color: #334155; background: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }
.dashboard-actions a:nth-child(2) { color: #fff; border-color: var(--blue); background: var(--blue); }
.dashboard-actions svg { width: 17px; }
.remediation-growth-panel { margin-top: 10px; }
.remediation-growth-list { display: grid; gap: 7px; }
.remediation-growth-list article { display: grid; grid-template-columns: minmax(160px, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px; border-left: 4px solid #94a3b8; background: #f8fafc; }
.remediation-growth-list article.verified { border-color: var(--green); background: #f0fdf4; }
.remediation-growth-list article.needs_follow_up { border-color: #ef4444; background: #fff7f7; }
.remediation-growth-list strong, .remediation-growth-list span { display: block; }
.remediation-growth-list strong { font-size: 10px; }
.remediation-growth-list span { color: var(--muted); font-size: 8px; }
.growth-score { display: grid; grid-template-columns: auto auto 18px auto auto; align-items: center; gap: 5px; }
.growth-score small { color: var(--muted); font-size: 8px; }
.growth-score b { font-size: 11px; }
.growth-score svg { width: 14px; color: #64748b; }
.remediation-growth-list article > a { min-height: 34px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; color: #fff; background: var(--blue); font-size: 9px; font-weight: 700; text-decoration: none; }
.remediation-growth-list article > a svg { width: 14px; }
.teacher-app { max-width: 1380px; }
.teacher-main { padding: 22px; }
.teacher-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.teacher-heading h1 { margin: 3px 0; font-size: 28px; letter-spacing: 0; }
.teacher-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.export-command { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 8px; color: #fff; background: var(--green); font-weight: 700; white-space: nowrap; }
.export-command svg { width: 17px; }
.teacher-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 190px)) auto; align-items: end; gap: 8px; margin: 18px 0 12px; padding: 12px; border: 1px solid var(--line); background: var(--soft); }
.teacher-filters[hidden], .export-command[hidden] { display: none; }
.teacher-filters label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 700; }
.teacher-filters select { min-height: 40px; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; }
.teacher-filters button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); font-weight: 700; }
.teacher-filters button svg { width: 16px; }
.teacher-status { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 20px; border: 1px dashed #cbd5e1; color: var(--muted); text-align: center; }
.teacher-status[hidden], #teacherContent[hidden] { display: none; }
.teacher-status svg { width: 32px; }
.teacher-status strong, .teacher-status span { display: block; }
.teacher-status a { margin-top: 6px; padding: 8px 14px; border-radius: 8px; color: #fff; background: var(--blue); font-weight: 700; text-decoration: none; }
.teacher-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.teacher-metric { min-height: 105px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 8px; padding: 13px; border: 1px solid var(--line); background: #fff; }
.teacher-metric svg { grid-row: 1 / 3; width: 21px; color: var(--blue); }
.teacher-metric.green svg { color: var(--green); }
.teacher-metric.orange svg { color: var(--orange); }
.teacher-metric span { color: var(--muted); font-size: 10px; }
.teacher-metric strong { align-self: end; font-size: 22px; line-height: 1.1; }
.teacher-analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 9px; }
.teacher-panel { padding: 15px; border: 1px solid var(--line); background: #fff; }
.teacher-panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.teacher-panel-title h2 { margin: 0; font-size: 16px; letter-spacing: 0; }
.teacher-panel-title p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.teacher-panel-title > svg { width: 21px; color: var(--blue); }
.teacher-domain-list, .teacher-ranking, .stage-analysis { display: grid; gap: 8px; }
.teacher-domain, .stage-analysis-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; align-items: center; gap: 8px; }
.teacher-domain strong, .teacher-domain span, .stage-analysis-row strong, .stage-analysis-row span { display: block; }
.teacher-domain strong, .stage-analysis-row strong { font-size: 10px; }
.teacher-domain span, .stage-analysis-row span { color: var(--muted); font-size: 8px; }
.teacher-domain b, .stage-analysis-row b { font-size: 10px; text-align: right; }
.rank-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 40px; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eef2f7; }
.rank-row > b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--orange); font-size: 10px; }
.rank-row strong, .rank-row span { display: block; }
.rank-row strong { font-size: 10px; }
.rank-row span { color: var(--muted); font-size: 8px; }
.rank-row em { color: #be123c; font-size: 11px; font-style: normal; font-weight: 700; text-align: right; }
.teacher-stage-panel, .student-table-panel, .teacher-audit-panel { margin-top: 9px; }
.stage-analysis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.teacher-table-wrap { overflow-x: auto; }
.teacher-table { width: 100%; border-collapse: collapse; font-size: 10px; white-space: nowrap; }
.teacher-table th, .teacher-table td { padding: 9px 8px; border-bottom: 1px solid #e5edf3; text-align: left; }
.teacher-table th { color: var(--muted); background: var(--soft); }
.teacher-table td:first-child { white-space: normal; min-width: 180px; }
.teacher-table td strong, .teacher-table td span { display: block; }
.teacher-table td span { color: var(--muted); font-size: 8px; }
.teacher-table .positive { color: var(--green); font-weight: 700; }
.teacher-table .negative { color: #be123c; font-weight: 700; }
.weakness-panel, .support-panel { margin-top: 9px; }
.support-callout { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-left: 4px solid #dc2626; background: #fff7f7; }
.support-callout strong { color: #b91c1c; font-size: 20px; }
.support-callout span { color: var(--muted); font-size: 9px; }
.weakness-heatmap { display: grid; gap: 8px; }
.heatmap-row { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(150px, 1.3fr) 55px; align-items: center; gap: 10px; }
.heatmap-row strong, .heatmap-row span { display: block; }
.heatmap-row strong { font-size: 11px; }
.heatmap-row div > span { color: var(--muted); font-size: 8px; }
.heatmap-row > b { color: #b91c1c; font-size: 10px; text-align: right; }
.heatmap-track, .remediation-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #eef2f7; }
.heatmap-track > span { height: 100%; display: block; border-radius: inherit; background: #ef4444; }
.support-student-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.support-student { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 12px; border: 1px solid #dbe4ed; border-radius: 8px; }
.support-identity { display: flex; align-items: center; gap: 8px; }
.support-identity strong, .support-identity small { display: block; }
.support-identity strong { font-size: 12px; }
.support-identity small { color: var(--muted); font-size: 8px; }
.risk-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px #fee2e2; }
.weak-domain-chips, .recommended-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.weak-domain-chips span { padding: 4px 7px; border-radius: 999px; color: #9f1239; background: #fff1f2; font-size: 8px; }
.recommended-list span { display: inline-flex; align-items: center; gap: 4px; color: #075985; font-size: 8px; }
.recommended-list svg { width: 13px; }
.support-student > button { grid-column: 1 / -1; min-height: 36px; border: 0; border-radius: 999px; color: #fff; background: var(--blue); font-weight: 700; }
.support-student > button svg { width: 15px; vertical-align: middle; }
.remediation-history { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e2e8f0; }
.remediation-history h3 { margin: 0 0 9px; font-size: 12px; }
.effect-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.effect-summary > div { padding: 9px; border-left: 3px solid var(--blue); background: #f8fafc; }
.effect-summary span, .effect-summary strong { display: block; }
.effect-summary span { color: var(--muted); font-size: 8px; }
.effect-summary strong { margin-top: 3px; font-size: 13px; }
.remediation-list { display: grid; gap: 6px; }
.remediation-list article { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(100px, .7fr) 55px 34px; align-items: center; gap: 9px; padding: 9px; background: #f8fafc; }
.remediation-list strong, .remediation-list span { display: block; }
.remediation-list small { display: block; margin-top: 3px; color: #075985; font-size: 8px; }
.remediation-list strong { font-size: 10px; }
.remediation-list span { color: var(--muted); font-size: 8px; }
.remediation-progress > span { height: 100%; display: block; border-radius: inherit; background: var(--green); }
.remediation-list article > b { font-size: 9px; text-align: right; }
.remediation-list article > b.completed { color: var(--green); }
.remediation-list article > b.verified { color: var(--green); }
.remediation-list article > b.needs_follow_up { color: #b91c1c; }
.remediation-list article > b.ready_for_check { color: #0369a1; }
.remediation-list article.needs_follow_up { border-left: 4px solid #ef4444; background: #fff7f7; }
.remediation-list article.verified { border-left: 4px solid var(--green); background: #f0fdf4; }
.remediation-list article > button, .dialog-head button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.remediation-list svg, .dialog-head svg { width: 15px; }
.remediation-dialog { width: min(680px, calc(100% - 24px)); max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 8px; box-shadow: 0 24px 70px rgba(15,23,42,.25); }
.remediation-dialog::backdrop { background: rgba(15,23,42,.5); }
.remediation-dialog form { display: grid; gap: 12px; padding: 18px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-head span { color: var(--blue); font-size: 9px; font-weight: 700; }
.dialog-head h2 { margin: 2px 0 0; font-size: 18px; }
.remediation-dialog form > label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.remediation-dialog input[type="datetime-local"], #remediationTitle { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; font: inherit; }
.remediation-dialog fieldset { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.remediation-dialog legend { padding: 0 5px; font-size: 10px; font-weight: 700; }
.remediation-stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.remediation-stage-grid label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 6px; padding: 8px; border: 1px solid #e2e8f0; border-radius: 7px; font-size: 9px; }
.remediation-stage-grid input { width: 16px; height: 16px; accent-color: var(--blue); }
.dialog-reason { display: grid; gap: 2px; padding: 9px; color: #075985; background: #f0f9ff; font-size: 9px; }
.dialog-actions { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8px; }
.dialog-actions button { min-height: 42px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; }
.dialog-actions button[type="submit"] { border-color: var(--blue); color: #fff; background: var(--blue); }
.dialog-actions svg { width: 15px; vertical-align: middle; }
.dialog-status { min-height: 16px; margin: 0; color: #b91c1c; font-size: 9px; text-align: center; }
.remediation-check-app { max-width: 880px; }
.remediation-check-hero { padding: 18px; border: 1px solid #bae6fd; border-left: 5px solid var(--blue); background: #f8fcff; }
.remediation-check-hero > span { color: var(--blue); font-size: 10px; font-weight: 700; }
.remediation-check-hero h1 { margin: 4px 0; font-size: 24px; letter-spacing: 0; }
.remediation-check-hero p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.check-domain-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.check-domain-chips span { padding: 5px 9px; border-radius: 999px; color: #075985; background: #e0f2fe; font-size: 9px; font-weight: 700; }
.remediation-quiz { display: grid; gap: 10px; margin-top: 12px; }
.remediation-quiz[hidden], .remediation-result[hidden] { display: none; }
.check-progress-note { display: flex; align-items: center; gap: 7px; padding: 10px 12px; color: #075985; background: #eff6ff; font-size: 10px; }
.check-progress-note svg { width: 17px; }
.check-progress-note strong { margin-left: auto; }
.remediation-question { margin: 0; padding: 14px; border: 1px solid var(--line); background: #fff; }
.remediation-question legend { width: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 0 0 10px; font-size: 12px; font-weight: 700; line-height: 1.55; }
.remediation-question legend > span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 10px; }
.remediation-question > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.remediation-question label { cursor: pointer; }
.remediation-question input { position: absolute; opacity: 0; pointer-events: none; }
.remediation-question label > span { min-height: 48px; display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: center; gap: 7px; padding: 8px; border: 1px solid #dbe4ed; border-radius: 8px; font-size: 10px; }
.remediation-question label b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #475569; background: #f1f5f9; }
.remediation-question input:checked + span { border-color: var(--blue); color: #075985; background: #eff6ff; box-shadow: inset 0 0 0 1px var(--blue); }
.remediation-question input:checked + span b { color: #fff; background: var(--blue); }
.remediation-submit { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 999px; color: #fff; background: var(--green); font-weight: 700; }
.remediation-submit:disabled { opacity: .55; }
.remediation-submit svg { width: 18px; }
.check-form-status { min-height: 18px; margin: 0; color: #b91c1c; font-size: 10px; text-align: center; }
.remediation-result { display: grid; place-items: center; gap: 8px; margin-top: 14px; padding: 28px 18px; border: 1px solid #a7f3d0; background: #f0fdf4; text-align: center; }
.remediation-result.follow-up { border-color: #fed7aa; background: #fff7ed; }
.remediation-result > svg { width: 38px; color: var(--green); }
.remediation-result.follow-up > svg { color: var(--orange); }
.remediation-result > span { font-size: 12px; font-weight: 700; }
.remediation-result > strong { color: var(--green); font-size: 46px; line-height: 1; }
.remediation-result.follow-up > strong { color: var(--orange); }
.remediation-result > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.result-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.result-actions > * { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font: inherit; font-weight: 700; text-decoration: none; }
.result-actions svg { width: 16px; }
.teacher-empty { min-height: 100px; display: grid; place-items: center; color: var(--muted); font-size: 10px; text-align: center; }
.assignment-notice { display: grid; gap: 4px; margin: 0 0 12px; padding: 12px; border: 1px solid #bae6fd; border-radius: 8px; background: #f0f9ff; font-size: 11px; }
.assignment-notice span { color: var(--muted); }
.assignment-notice a { color: var(--blue); font-weight: 700; }
.assignment-notice.blocked { border-color: #fecaca; background: #fff1f2; }
.primary-command:disabled { cursor: not-allowed; opacity: .55; }
.teacher-heading-actions { display: flex; gap: 7px; }
.report-command { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid #bfdbfe; border-radius: 8px; color: #075985; background: #eff6ff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.report-command svg { width: 17px; }
.research-command { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid #a7f3d0; border-radius: 8px; color: #047857; background: #ecfdf5; font-weight: 700; white-space: nowrap; }
.research-command svg { width: 17px; }
.assignment-tools { margin: 0 0 12px; border: 1px solid #bae6fd; background: #f8fcff; }
.assignment-tools[hidden] { display: none; }
.assignment-tools summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; cursor: pointer; list-style: none; }
.assignment-tools summary > span { display: flex; align-items: center; gap: 7px; }
.assignment-tools summary svg { width: 18px; color: var(--blue); }
.assignment-tools summary small { color: var(--muted); }
.assignment-tools form { display: grid; grid-template-columns: 2fr repeat(6, minmax(105px, 1fr)) auto; align-items: end; gap: 7px; padding: 0 12px 12px; }
.assignment-tools label { display: grid; gap: 3px; color: var(--muted); font-size: 9px; font-weight: 700; }
.assignment-tools input, .assignment-tools select { width: 100%; min-height: 39px; padding: 7px 9px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.assignment-tools button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 12px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); font-weight: 700; white-space: nowrap; }
.assignment-tools button svg { width: 16px; }
.assignment-form-status { min-height: 20px; padding: 0 12px 8px; color: var(--green); font-size: 10px; }
.assignment-panel { margin-bottom: 9px; }
.teacher-notification-panel { margin-bottom: 9px; border-left: 4px solid #e11d48; }
.teacher-notification-actions { display: flex; justify-content: flex-end; margin-top: -8px; }
.notification-weekly-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.notification-weekly-summary > div { padding: 8px; border-left: 3px solid #cbd5e1; background: #f8fafc; }
.notification-weekly-summary span, .notification-weekly-summary strong { display: block; }
.notification-weekly-summary span { color: var(--muted); font-size: 8px; }
.notification-weekly-summary strong { margin-top: 2px; font-size: 15px; }
.teacher-notification-actions button { border: 0; color: var(--blue); background: transparent; font-size: 9px; font-weight: 700; }
.teacher-notification-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 7px; }
.teacher-notification-list > a { display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; align-items: start; gap: 7px; padding: 9px; border-left: 3px solid var(--blue); color: inherit; background: #f8fafc; text-decoration: none; }
.teacher-notification-list > a.warning { border-color: #f59e0b; background: #fffbeb; }
.teacher-notification-list > a.urgent { border-color: #e11d48; background: #fff1f2; }
.teacher-notification-list > a.read { opacity: .6; }
.teacher-notification-list svg { width: 16px; color: var(--blue); }
.teacher-notification-list a.urgent svg { color: #e11d48; }
.teacher-notification-list a.warning svg { color: #d97706; }
.teacher-notification-list strong, .teacher-notification-list span, .teacher-notification-list small { display: block; }
.teacher-notification-list strong { font-size: 10px; }
.teacher-notification-list span { margin-top: 2px; color: #475569; font-size: 8px; line-height: 1.5; }
.teacher-notification-list small { color: #94a3b8; font-size: 7px; }
.class-comparison-panel { margin-bottom: 9px; }
.class-comparison-list { display: grid; gap: 7px; }
.class-comparison-list article { display: grid; grid-template-columns: 90px minmax(120px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 10px; padding: 9px; background: #f8fafc; }
.class-name strong, .class-name span { display: block; }
.class-name strong { font-size: 12px; }
.class-name span { color: var(--muted); font-size: 8px; }
.class-score-bar { height: 9px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.class-score-bar span { height: 100%; display: block; border-radius: inherit; background: var(--blue); }
.class-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.class-stats span { padding: 5px; color: var(--muted); background: #fff; font-size: 8px; text-align: center; }
.class-stats b { display: block; margin-top: 2px; color: var(--ink); font-size: 10px; }
.class-stats .needs-support b { color: #b91c1c; }
.automatic-groups { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #e2e8f0; }
.automatic-groups-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.automatic-groups-head strong, .automatic-groups-head span { display: block; }
.automatic-groups-head strong { font-size: 12px; }
.automatic-groups-head span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.automatic-groups-head svg { width: 20px; color: var(--blue); }
.automatic-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.automatic-group-grid article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 10px; border: 1px solid #dbe4ed; border-radius: 8px; }
.automatic-group-grid strong, .automatic-group-grid span { display: block; }
.automatic-group-grid strong { font-size: 10px; }
.automatic-group-grid span { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.automatic-group-grid button, .timeline-command { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 10px; border: 0; border-radius: 999px; color: #fff; background: var(--blue); font-size: 8px; font-weight: 700; white-space: nowrap; }
.automatic-group-grid svg, .timeline-command svg { width: 13px; }
.timeline-command { color: #075985; border: 1px solid #bae6fd; background: #eff6ff; }
.student-row-actions { display: flex; align-items: center; gap: 6px; }
.portfolio-command {
  min-height: 34px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #087357;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  background: #e7f8f2;
  border: 1px solid #a7e6d2;
  border-radius: 999px;
}
.portfolio-command svg { width: 13px; height: 13px; }
.exam-student-portfolio { display: grid; color: inherit; text-decoration: none; }
.exam-student-portfolio:hover strong { color: #087357; text-decoration: underline; }
.practical-result-panel { margin-bottom: 9px; }
.practical-empty { display: flex; align-items: center; justify-content: space-between; min-height: 50px; color: var(--muted); font-size: 9px; }
.practical-empty a { padding: 7px 10px; border-radius: 999px; color: #fff; background: #0f766e; font-weight: 700; text-decoration: none; }
.practical-summary { display: grid; grid-template-columns: 210px minmax(0, 1fr) 230px; gap: 12px; }
.practical-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.practical-overview div { padding: 9px 6px; border: 1px solid #ccfbf1; border-radius: 8px; text-align: center; background: #f0fdfa; }
.practical-overview span, .practical-overview strong { display: block; }
.practical-overview span { color: var(--muted); font-size: 7px; }
.practical-overview strong { margin-top: 4px; color: #0f766e; font-size: 17px; }
.practical-criteria { display: grid; gap: 5px; }
.practical-criteria > div { display: grid; grid-template-columns: 72px minmax(60px, 1fr) 38px; align-items: center; gap: 6px; font-size: 8px; }
.practical-criteria > div > div { height: 7px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.practical-criteria i { height: 100%; display: block; border-radius: inherit; background: #0f766e; }
.practical-criteria strong { text-align: right; }
.practical-recent { display: grid; gap: 5px; }
.practical-recent article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.practical-recent strong, .practical-recent span { display: block; }
.practical-recent strong { font-size: 8px; }
.practical-recent span { color: var(--muted); font-size: 7px; }
.practical-recent b { padding: 4px 6px; border-radius: 999px; color: #be123c; background: #fff1f2; font-size: 8px; }
.practical-recent b.passed { color: #047857; background: #ecfdf5; }
.student-practical-panel { margin-top: 10px; }
.student-practical-panel .practical-criteria { margin-top: 12px; }
.student-practical-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.student-practical-summary div { padding: 10px; border-left: 4px solid #0f766e; background: #f0fdfa; }
.student-practical-summary span, .student-practical-summary strong { display: block; }
.student-practical-summary span { color: var(--muted); font-size: 9px; }
.student-practical-summary strong { color: #0f766e; font-size: 20px; }
.student-practical-note { margin: 10px 0 0; color: var(--muted); font-size: 9px; }
.timeline-dialog { width: min(760px, calc(100% - 24px)); max-height: 92vh; padding: 0; overflow: auto; border: 0; border-radius: 8px; box-shadow: 0 24px 70px rgba(15,23,42,.25); }
.timeline-dialog::backdrop { background: rgba(15,23,42,.5); }
.timeline-shell { display: grid; gap: 12px; padding: 18px; }
.timeline-shell .dialog-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.intervention-form { display: grid; grid-template-columns: minmax(130px, .6fr) minmax(180px, .8fr) auto; align-items: end; gap: 7px; padding: 11px; border: 1px solid #bae6fd; background: #f8fcff; }
.intervention-form label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 700; }
.intervention-form .wide { grid-column: 1 / -1; }
.intervention-form select, .intervention-form input, .intervention-form textarea { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; font: inherit; }
.intervention-form textarea { min-height: 70px; resize: vertical; }
.intervention-form button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 999px; color: #fff; background: var(--green); font-weight: 700; }
.intervention-form button svg { width: 15px; }
.intervention-form > p { grid-column: 1 / -1; min-height: 15px; margin: 0; color: var(--green); font-size: 8px; }
.student-timeline { position: relative; display: grid; gap: 0; }
.student-timeline::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 17px; width: 2px; background: #dbe4ed; }
.student-timeline article { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 9px; padding: 8px 0; }
.timeline-marker { z-index: 1; width: 35px; height: 35px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; color: var(--blue); background: #e0f2fe; }
.student-timeline article.note .timeline-marker { color: #047857; background: #d1fae5; }
.student-timeline article.remediation_check .timeline-marker { color: #7e22ce; background: #f3e8ff; }
.timeline-marker svg { width: 15px; }
.student-timeline article > div { padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 8px; }
.student-timeline small, .student-timeline strong, .student-timeline p, .student-timeline em, .student-timeline b { display: block; }
.student-timeline small { color: #94a3b8; font-size: 7px; }
.student-timeline strong { margin-top: 2px; font-size: 10px; }
.student-timeline p { margin: 3px 0 0; color: #475569; font-size: 9px; line-height: 1.55; }
.student-timeline em { margin-top: 4px; color: var(--muted); font-size: 8px; font-style: normal; }
.student-timeline b { margin-top: 5px; color: #b45309; font-size: 8px; }

.bank-app { width: min(1240px, 100%); }
.bank-main { padding: 18px; }
.bank-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.bank-heading h1 { margin: 3px 0; font-size: 27px; }
.bank-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.bank-metrics { display: grid; grid-template-columns: repeat(3, 90px); gap: 7px; }
.bank-metrics div { padding: 9px; border: 1px solid var(--line); border-radius: 8px; text-align: center; background: #f8fafc; }
.bank-metrics strong, .bank-metrics span { display: block; }
.bank-metrics strong { color: #0f766e; font-size: 19px; }
.bank-metrics span { color: var(--muted); font-size: 8px; }
.bank-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 12px; align-items: start; }
.bank-editor, .bank-library { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.bank-editor { position: sticky; top: 10px; padding: 14px; }
.bank-section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.bank-section-title > svg { width: 22px; color: #0f766e; }
.bank-section-title strong, .bank-section-title span { display: block; }
.bank-section-title strong { font-size: 13px; }
.bank-section-title span { color: var(--muted); font-size: 8px; }
.bank-editor form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bank-editor form > label, .bank-mcq-fields, .bank-editor form > button, .bank-editor form > p { grid-column: 1 / -1; }
.bank-editor label { display: grid; gap: 4px; color: #475569; font-size: 9px; font-weight: 700; }
.bank-editor input, .bank-editor select, .bank-editor textarea, .bank-toolbar input, .bank-toolbar select {
  width: 100%; min-width: 0; min-height: 39px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff;
}
.bank-editor textarea { min-height: 82px; resize: vertical; }
.bank-editor form > button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 999px; color: #fff; background: #0f766e; font-weight: 700; }
.bank-editor form > button svg { width: 16px; }
.bank-editor form > p { min-height: 20px; margin: 0; color: #047857; font-size: 9px; }
.bank-mcq-fields fieldset { display: grid; gap: 6px; margin: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.bank-mcq-fields legend { padding: 0 4px; font-size: 9px; font-weight: 700; }
.bank-mcq-fields fieldset > label { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; }
.bank-mcq-fields .answer-select { grid-template-columns: 1fr 80px; }
.bank-publish { display: flex !important; grid-column: 1 / -1; grid-template-columns: none !important; align-items: center; gap: 7px !important; }
.bank-publish input { width: 18px; min-height: 18px; }
.bank-library { overflow: hidden; }
.bank-toolbar { display: grid; grid-template-columns: minmax(180px, 1fr) 130px 130px; gap: 7px; padding: 10px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.bank-toolbar label { position: relative; }
.bank-toolbar label svg { position: absolute; left: 10px; top: 11px; width: 16px; color: var(--muted); }
.bank-toolbar label input { padding-left: 34px; }
.bank-list { display: grid; }
.bank-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 13px; border-bottom: 1px solid var(--line); }
.bank-item:last-child { border-bottom: 0; }
.bank-item-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: #e0f2fe; }
.bank-item.practical .bank-item-icon { color: #0f766e; background: #ccfbf1; }
.bank-item-icon svg { width: 18px; }
.bank-item-copy > strong { display: block; margin-top: 4px; font-size: 12px; }
.bank-item-copy > p { margin: 3px 0 0; color: #475569; font-size: 9px; line-height: 1.55; }
.bank-item-meta, .bank-rubrics { display: flex; flex-wrap: wrap; gap: 5px; }
.bank-item-meta span, .bank-rubrics span { padding: 3px 6px; border-radius: 999px; color: #475569; background: #f1f5f9; font-size: 7px; font-weight: 700; }
.bank-rubrics { margin-top: 7px; }
.bank-rubrics span { display: inline-flex; align-items: center; gap: 3px; color: #0f766e; background: #ecfdf5; }
.bank-rubrics svg { width: 10px; }
.bank-item-state { display: grid; align-content: start; justify-items: end; gap: 6px; }
.bank-item-state b { padding: 4px 7px; border-radius: 999px; color: #92400e; background: #fef3c7; font-size: 7px; }
.bank-item-state b.published { color: #047857; background: #d1fae5; }
.bank-item-state b.archived { color: #64748b; background: #e2e8f0; }
.bank-item-state button, .bank-item-state a { min-height: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: #475569; background: #fff; font-size: 8px; font-weight: 700; text-decoration: none; }
.bank-item-state a { color: #0f766e; border-color: #99f6e4; background: #f0fdfa; }
.bank-item-state a svg { width: 12px; }
.assignment-list { display: grid; gap: 7px; }
.assignment-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #dbe7ef; border-left: 4px solid var(--green); }
.assignment-row.closed { border-left-color: #94a3b8; opacity: .76; }
.assignment-row strong, .assignment-row span, .assignment-row small { display: block; }
.assignment-row strong { font-size: 11px; }
.assignment-row span, .assignment-row small { color: var(--muted); font-size: 9px; }
.assignment-state { padding: 5px 8px; border-radius: 999px; color: #047857 !important; background: #ecfdf5; font-weight: 700; }
.assignment-actions { display: flex; gap: 5px; }
.assignment-actions button, .assignment-actions a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #475569; background: #fff; text-decoration: none; }
.assignment-actions button.copied { color: #fff; background: var(--green); }
.assignment-actions svg { width: 16px; }
.research-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; margin-top: 8px; }
.research-metric { padding: 10px 12px; border-left: 4px solid var(--blue); background: #f8fafc; }
.research-metric span, .research-metric small { display: block; color: var(--muted); font-size: 9px; }
.research-metric strong { display: block; margin: 2px 0; font-size: 20px; }
.report-page { max-width: 1080px; margin: 18px auto; padding: 26px; color: #172033; background: #fff; }
.report-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 3px solid #0284c7; }
.report-header h1 { margin: 0; font-size: 25px; }
.report-header p { margin: 4px 0 0; color: #64748b; }
.report-toolbar { display: flex; justify-content: flex-end; gap: 8px; margin: 12px 0; }
.report-toolbar a, .report-toolbar button { min-height: 38px; padding: 7px 12px; border: 1px solid #cbd5e1; border-radius: 8px; color: #334155; background: #fff; font: inherit; font-weight: 700; text-decoration: none; }
.report-summary { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 15px 0; }
.report-summary div { padding: 10px; border: 1px solid #dbe4ed; }
.report-summary span, .report-summary small { display: block; color: #64748b; font-size: 9px; }
.report-summary strong { display: block; margin: 3px 0; font-size: 19px; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.report-section { break-inside: avoid; padding: 14px; border: 1px solid #dbe4ed; }
.report-section h2 { margin: 0 0 10px; font-size: 15px; }
.report-list { display: grid; gap: 7px; }
.report-list div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border-bottom: 1px solid #edf2f7; font-size: 10px; }
.report-meta { margin-top: 14px; color: #64748b; font-size: 9px; }
.report-overview-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; margin-bottom: 12px; }
.report-score-chart svg { display: block; width: 100%; height: auto; }
.report-score-chart line { stroke: #dbe7ef; stroke-width: 1; }
.report-score-chart text { fill: #64748b; font-size: 11px; }
.report-score-chart rect { rx: 3px; }
.report-score-chart rect.pre { fill: #1687c8; }
.report-score-chart rect.post { fill: #0f9f72; }
.report-score-chart text.value { fill: #172033; font-size: 15px; font-weight: 700; }
.report-score-chart text.axis { fill: #172033; font-size: 13px; font-weight: 700; }
.report-empty { min-height: 90px; display: grid; place-items: center; padding: 16px; color: #64748b; background: #f8fafc; text-align: center; font-size: 10px; line-height: 1.6; }
.report-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.report-stat-grid > div { padding: 8px; border-left: 3px solid #0f766e; background: #f3faf8; }
.report-stat-grid span, .report-stat-grid small { display: block; color: #64748b; font-size: 8px; }
.report-stat-grid strong { display: block; margin: 2px 0; font-size: 16px; }
.report-interpretation { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid #0284c7; color: #334155; background: #eff8fe; font-size: 9px; line-height: 1.65; }
.report-methods { margin: 0 0 12px; border-top: 4px solid #0f766e; }
.report-method-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.report-method-columns h3 { margin: 0 0 4px; color: #0f766e; font-size: 11px; }
.report-method-columns p { margin: 0; color: #475569; font-size: 9px; line-height: 1.7; }
.report-item-analysis { margin: 0 0 12px; break-before: page; }
.report-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.report-section-heading h2 { margin-bottom: 3px; }
.report-section-heading p { margin: 0; color: #64748b; font-size: 8px; }
.report-reliability { min-width: 160px; padding: 7px 10px; border-left: 3px solid #1687c8; background: #eff8fe; }
.report-reliability span, .report-reliability small { display: block; color: #64748b; font-size: 8px; }
.report-reliability strong { display: block; margin: 1px 0; font-size: 17px; }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: 8px; }
.report-table th { padding: 6px; color: #fff; background: #166b92; text-align: left; }
.report-table td { padding: 5px 6px; border: 1px solid #dbe4ed; }
.report-table tbody tr:nth-child(even) { background: #f8fafc; }
.report-table th:first-child, .report-table td:first-child,
.report-table th:nth-child(3), .report-table td:nth-child(3),
.report-table th:nth-child(4), .report-table td:nth-child(4),
.report-table th:nth-child(6), .report-table td:nth-child(6) { width: 44px; text-align: center; }
.assignment-report-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.assignment-report-heading h1 { margin: 3px 0; font-size: 26px; letter-spacing: 0; }
.assignment-report-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.assignment-report-heading .assignment-state { white-space: nowrap; }
.assignment-report-heading .assignment-state:not(.active) { color: #475569 !important; background: #eef2f7; }
.assignment-report-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.assignment-report-actions a, .assignment-report-actions button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; border: 1px solid #cbd5e1; border-radius: 8px; color: #334155; background: #fff; font: inherit; font-size: 10px; font-weight: 700; text-decoration: none; }
.assignment-report-actions a:nth-last-of-type(1) { color: #075985; border-color: #bae6fd; background: #f0f9ff; }
.assignment-report-actions button { color: #fff; border-color: var(--orange); background: var(--orange); }
.assignment-report-actions svg { width: 16px; }
.assignment-summary { margin-bottom: 10px; }
.assignment-filter-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-bottom: 9px; padding: 5px; border-radius: 8px; background: #eaf0f5; }
.assignment-filter-tabs button { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 6px; color: #475569; background: transparent; font-weight: 700; }
.assignment-filter-tabs button b { min-width: 23px; padding: 2px 5px; border-radius: 999px; background: #fff; font-size: 9px; }
.assignment-filter-tabs button.active { color: #fff; background: var(--blue); }
.assignment-filter-tabs button.active b { color: var(--blue); }
.assignment-student-list { display: grid; gap: 6px; }
.assignment-student { border: 1px solid #dbe4ed; border-left: 4px solid #94a3b8; background: #fff; }
.assignment-student.completed { border-left-color: var(--green); }
.assignment-student.partial { border-left-color: var(--orange); }
.assignment-student summary { display: grid; grid-template-columns: minmax(170px, 1fr) auto minmax(150px, auto) 24px; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.assignment-student summary > div:first-child strong, .assignment-student summary > div:first-child span { display: block; }
.assignment-student summary > div:first-child strong { font-size: 11px; }
.assignment-student summary > div:first-child span { color: var(--muted); font-size: 9px; }
.student-submit-state { padding: 4px 8px; border-radius: 999px; color: #475569; background: #eef2f7; font-size: 9px; font-weight: 700; white-space: nowrap; }
.completed .student-submit-state { color: #047857; background: #ecfdf5; }
.partial .student-submit-state { color: #9a3412; background: #fff7ed; }
.student-latest { display: flex; justify-content: flex-end; gap: 8px; color: var(--muted); font-size: 9px; }
.student-latest span { white-space: nowrap; }
.student-latest b { color: var(--ink); }
.assignment-student summary > svg { width: 17px; transition: transform .2s; }
.assignment-student[open] summary > svg { transform: rotate(180deg); }
.attempt-history { display: grid; gap: 5px; padding: 8px 12px 12px; border-top: 1px solid #eef2f7; background: #f8fafc; }
.attempt-history > div { display: grid; grid-template-columns: minmax(0, 1fr) auto 160px; gap: 8px; font-size: 9px; }
.attempt-history small { color: var(--muted); text-align: right; }
.attempt-history p { color: var(--muted); font-size: 9px; }
.assignment-audit-panel { margin-top: 9px; }
.assignment-share-panel { margin-bottom: 10px; }
.assignment-qr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.assignment-qr-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px; border: 1px solid #cfe0eb; border-left: 4px solid var(--blue); background: #f8fcff; }
.assignment-qr-code { width: 164px; height: 164px; display: grid; place-items: center; padding: 2px; background: #fff; }
.assignment-qr-code img, .assignment-qr-code canvas { width: 160px !important; height: 160px !important; }
.assignment-qr-card > div:nth-child(2) { min-width: 0; }
.assignment-qr-card strong, .assignment-qr-card span { display: block; }
.assignment-qr-card strong { margin-bottom: 4px; font-size: 15px; }
.assignment-qr-card span { overflow-wrap: anywhere; color: var(--muted); font-size: 9px; line-height: 1.55; }
.assignment-qr-card button { min-height: 38px; grid-column: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); font: inherit; font-size: 10px; font-weight: 700; }
.assignment-qr-card button svg { width: 16px; }
.paired-analysis-panel { margin-bottom: 9px; }
.paired-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-bottom: 10px; }
.paired-summary > div { padding: 10px; border-left: 4px solid var(--green); background: #f4fbf8; }
.paired-summary span, .paired-summary small { display: block; color: var(--muted); font-size: 9px; }
.paired-summary strong { display: block; margin-top: 2px; font-size: 20px; }
.paired-chart-wrap { overflow: hidden; border: 1px solid #dbe7ef; background: #fff; }
.paired-chart { display: block; width: 100%; min-height: 260px; font-family: inherit; }
.paired-chart text { fill: #64748b; font-size: 11px; }
.paired-grid-line { stroke: #e5edf3; stroke-width: 1; }
.paired-student-line line { stroke-width: 1.5; opacity: .42; }
.paired-student-line circle { opacity: .72; }
.paired-average-line { stroke: #1269a8; stroke-width: 4; }
.paired-average-point { fill: #1269a8; stroke: #fff; stroke-width: 2; }
.paired-axis-title { fill: #1e293b !important; font-size: 13px !important; font-weight: 700; }
.paired-chart-wrap > p { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -3px 0 10px; color: var(--muted); font-size: 9px; }
.paired-key { width: 20px; height: 3px; display: inline-block; background: var(--green); }
.paired-key.average { height: 4px; margin-left: 8px; background: var(--blue); }
.research-guide-panel { margin-top: 9px; }
.research-guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.research-guide-grid > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 7px; padding: 10px; border-top: 3px solid #0f766e; background: #f8fafc; }
.research-guide-grid svg { width: 20px; grid-row: 1 / 3; color: #0f766e; }
.research-guide-grid strong { font-size: 10px; }
.research-guide-grid span { color: var(--muted); font-size: 9px; line-height: 1.55; }
.research-method-note { margin-top: 9px; padding: 11px 12px; border-left: 4px solid var(--blue); background: #eff8fe; }
.research-method-note strong { font-size: 11px; }
.research-method-note p { margin: 5px 0 0; color: #475569; font-size: 9px; line-height: 1.7; }
.audit-list { display: grid; gap: 7px; }
.audit-list > div { display: flex; align-items: center; gap: 8px; padding: 7px; border-bottom: 1px solid #eef2f7; }
.audit-list svg { width: 17px; color: var(--green); }
.audit-list span, .audit-list strong, .audit-list small { display: block; }
.audit-list strong { font-size: 10px; }
.audit-list small { color: var(--muted); font-size: 8px; }
@media print {
  html, body { background: #fff !important; padding: 0; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-toolbar { display: none; }
  .report-page { max-width: none; margin: 0; padding: 0; }
  .report-header { margin-bottom: 6mm; }
  .report-section, .report-summary div { border-color: #b9c7d2; }
  .report-item-analysis { break-before: page; }
  .report-table-wrap { overflow: visible; }
  @page { size: A4 landscape; margin: 12mm; }
}

/* Individual learning plans */
.ilp-app,
.parent-manager-app { min-height: 100vh; background: #edf4f6; }
.ilp-main,
.parent-manager-main { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 56px; }
.ilp-hero,
.parent-manager-heading {
  min-height: 164px;
  padding: 28px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: #115e68;
  border-radius: 8px;
  overflow: hidden;
}
.ilp-hero { background: linear-gradient(110deg, #0f766e 0 58%, #1269a8 58%); }
.ilp-hero h1,
.parent-manager-heading h1 { margin: 5px 0 8px; color: #fff; font-size: clamp(25px, 3vw, 39px); letter-spacing: 0; }
.ilp-hero p,
.parent-manager-heading p { max-width: 660px; margin: 0; color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.6; }
.ilp-hero .exam-kicker,
.parent-manager-heading .exam-kicker { color: #b7f4df; }
.ilp-hero-icon,
.parent-manager-heading > svg {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
}
.ilp-hero-icon svg { width: 40px; height: 40px; }
.parent-manager-heading > svg { padding: 20px; }
.ilp-student-bar {
  margin: 14px 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  background: #fff;
  border: 1px solid #d9e5e9;
  border-radius: 8px;
}
.ilp-student-bar label,
.ilp-form > label,
.ilp-date-grid label,
.parent-create-form > label,
.parent-filter-bar label { display: grid; gap: 5px; color: #47616f; font-size: 9px; font-weight: 700; }
.ilp-student-bar select,
.ilp-form input,
.ilp-form select,
.ilp-form textarea,
.ilp-date-grid input,
.parent-create-form input,
.parent-create-form select,
.parent-create-form textarea,
.parent-filter-bar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #cddce2;
  border-radius: 999px;
  outline: 0;
  color: #1f3f51;
  background: #fff;
  font: 600 10px "Mali", sans-serif;
}
.ilp-form textarea,
.parent-create-form textarea { min-height: 90px; padding-top: 12px; resize: vertical; border-radius: 8px; line-height: 1.55; }
.ilp-student-bar select:focus,
.ilp-form input:focus,
.ilp-form select:focus,
.ilp-form textarea:focus,
.parent-create-form input:focus,
.parent-create-form select:focus,
.parent-create-form textarea:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.ilp-student-bar > a,
.parent-filter-bar button {
  min-height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #075985;
  text-decoration: none;
  background: #eaf5fb;
  border: 1px solid #b9dceb;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}
.ilp-student-bar svg,
.parent-filter-bar svg { width: 16px; height: 16px; }
.ilp-status {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #527080;
  background: #fff;
  border: 1px solid #d9e5e9;
  border-radius: 8px;
}
.ilp-status[hidden],
.parent-created-link[hidden],
.family-report-status[hidden],
.family-report-sheet[hidden],
.family-message[hidden] { display: none !important; }
.ilp-status.error { color: #b33a27; background: #fff4f1; }
.ilp-status svg { width: 22px; }
.ilp-metrics {
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
.ilp-metrics article {
  min-height: 92px;
  padding: 16px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 2px 10px;
  background: #fff;
  border: 1px solid #d9e5e9;
  border-top: 3px solid #1687c8;
  border-radius: 8px;
}
.ilp-metrics article.teal { border-top-color: #0f766e; }
.ilp-metrics article.green { border-top-color: #22a67d; }
.ilp-metrics article.orange { border-top-color: #e88420; }
.ilp-metrics svg { grid-row: 1 / 3; width: 25px; height: 25px; color: #1687c8; }
.ilp-metrics strong { color: #153f55; font-size: 22px; }
.ilp-metrics span { color: #6d818d; font-size: 8px; }
.ilp-grid,
.parent-manager-grid { display: grid; grid-template-columns: 390px minmax(0,1fr); gap: 14px; align-items: start; }
.ilp-form,
.ilp-plan-panel,
.parent-create-form,
.parent-report-list-panel {
  padding: 20px;
  display: grid;
  gap: 14px;
  background: #fff;
  border: 1px solid #d9e5e9;
  border-radius: 8px;
}
.ilp-form { position: sticky; top: 12px; }
.ilp-panel-head { display: flex; align-items: center; gap: 10px; }
.ilp-panel-head > span {
  width: 38px; height: 38px; display: grid; place-items: center;
  color: #fff; background: #0f766e; border-radius: 8px;
}
.ilp-panel-head svg { width: 20px; }
.ilp-panel-head h2 { margin: 0; color: #173f55; font-size: 16px; }
.ilp-panel-head p { margin: 2px 0 0; color: #768995; font-size: 8px; }
.ilp-scenarios { margin: 0; padding: 12px; border: 1px solid #dce7eb; border-radius: 8px; }
.ilp-scenarios legend { padding: 0 6px; color: #47616f; font-size: 9px; font-weight: 700; }
.ilp-scenarios > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ilp-scenarios label { min-width: 0; cursor: pointer; }
.ilp-scenarios input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.ilp-scenarios span {
  min-height: 34px; padding: 7px 9px; display: flex; align-items: center;
  color: #55707f; background: #f2f6f7; border: 1px solid transparent;
  border-radius: 6px; font-size: 8px; line-height: 1.3;
}
.ilp-scenarios input:checked + span { color: #087357; background: #e7f8f2; border-color: #85d9bf; font-weight: 700; }
.ilp-date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ilp-primary {
  min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #fff; background: #0f766e; border: 0; border-radius: 999px;
  font: 700 11px "Mali", sans-serif; cursor: pointer;
}
.ilp-primary svg { width: 18px; }
#ilpFormStatus,
#parentFormStatus { min-height: 18px; margin: 0; color: #087357; font-size: 8px; text-align: center; }
.ilp-plan-list { display: grid; gap: 12px; }
.ilp-plan {
  padding: 18px;
  display: grid;
  gap: 10px;
  background: #fff;
  border: 1px solid #d9e5e9;
  border-left: 5px solid #0f766e;
  border-radius: 8px;
}
.ilp-plan.achieved { border-left-color: #22a67d; background: #fbfffd; }
.ilp-plan.paused { border-left-color: #e4ae2a; }
.ilp-plan.closed { border-left-color: #94a3b8; opacity: .85; }
.ilp-plan.overdue { box-shadow: inset 0 0 0 1px #f2a48d; }
.ilp-plan > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ilp-plan > header span,
.ilp-plan > header b { padding: 5px 8px; color: #0f766e; background: #e7f8f2; border-radius: 999px; font-size: 7px; }
.ilp-plan > header b { color: #526b78; background: #edf2f4; }
.ilp-plan h3 { margin: 0; color: #153f55; font-size: 15px; }
.ilp-plan > p { margin: 0; color: #526d7d; font-size: 9px; line-height: 1.6; }
.ilp-criteria,
.ilp-evidence {
  padding: 10px; display: flex; align-items: flex-start; gap: 8px;
  color: #3d5969; background: #f3f8fa; border-radius: 7px; font-size: 8px; line-height: 1.5;
}
.ilp-criteria svg,
.ilp-evidence svg { width: 15px; height: 15px; flex: 0 0 auto; color: #1687c8; }
.ilp-plan-scenarios { display: flex; flex-wrap: wrap; gap: 6px; }
.ilp-plan-scenarios a {
  min-height: 30px; padding: 0 9px; display: inline-flex; align-items: center;
  color: #075985; text-decoration: none; background: #eaf5fb; border-radius: 999px; font-size: 7px; font-weight: 700;
}
.ilp-progress-label,
.ilp-plan-dates { display: flex; justify-content: space-between; gap: 10px; color: #718590; font-size: 8px; }
.ilp-progress-label strong { color: #0f766e; font-size: 12px; }
.ilp-plan-dates .late { color: #d14f37; font-weight: 700; }
.ilp-progress { height: 8px; overflow: hidden; background: #e5edef; border-radius: 999px; }
.ilp-progress span { height: 100%; display: block; background: #0f766e; border-radius: inherit; }
.ilp-update {
  padding-top: 10px;
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 8px;
  border-top: 1px solid #e3ebee;
}
.ilp-update label { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; color: #526d7d; font-size: 8px; }
.ilp-update input[type="range"] { min-height: auto; padding: 0; accent-color: #0f766e; }
.ilp-update input:not([type="range"]),
.ilp-update select {
  min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid #d2dfe4;
  border-radius: 999px; font: 600 8px "Mali", sans-serif;
}
.ilp-update input[name="evidence"],
.ilp-update input[name="note"] { grid-column: 1 / -1; }
.ilp-update button {
  grid-column: 2; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 5px;
  color: #fff; background: #1269a8; border: 0; border-radius: 999px; font: 700 8px "Mali",sans-serif;
}
.ilp-update button svg { width: 14px; }
.ilp-plan details { padding: 9px; background: #f7fafb; border-radius: 7px; font-size: 8px; }
.ilp-plan details summary { cursor: pointer; color: #075985; font-weight: 700; }
.ilp-plan details div { margin-top: 7px; display: grid; grid-template-columns: 90px 1fr; gap: 8px; color: #6e818c; }

/* Parent report manager */
.parent-manager-heading { margin-bottom: 14px; color: #173f55; background: #e7f5f7; border: 1px solid #cce4e9; }
.parent-manager-heading h1 { color: #173f55; }
.parent-manager-heading p { color: #58717e; }
.parent-manager-heading .exam-kicker { color: #0f766e; }
.parent-manager-heading > svg { color: #0f766e; background: #fff; border-color: #b9dcd9; }
.parent-create-form { position: sticky; top: 12px; }
.parent-filter-bar { padding-bottom: 14px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; border-bottom: 1px solid #e1eaed; }
.parent-filter-bar button { cursor: pointer; }
.parent-report-list { display: grid; gap: 9px; }
.parent-report-row {
  padding: 13px;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto 36px;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #dce7eb;
  border-radius: 8px;
}
.parent-report-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #1687c8; background: #eaf5fb; border-radius: 50%; }
.parent-report-icon svg { width: 18px; }
.parent-report-row > div { min-width: 0; display: grid; gap: 2px; }
.parent-report-row > div strong { font-size: 10px; }
.parent-report-row > div b { color: #526d7d; font-size: 8px; }
.parent-report-row small,
.parent-report-row p { margin: 0; color: #7a8c96; font-size: 7px; overflow-wrap: anywhere; }
.parent-report-state { padding: 5px 8px; color: #526d7d; background: #eef3f5; border-radius: 999px; font-size: 7px; font-weight: 700; }
.parent-report-row.acknowledged .parent-report-state { color: #087357; background: #e7f8f2; }
.parent-report-row.viewed .parent-report-state { color: #075985; background: #eaf5fb; }
.parent-report-row > button { width: 34px; height: 34px; display: grid; place-items: center; color: #b33a27; background: #fff4f1; border: 0; border-radius: 50%; cursor: pointer; }
.parent-report-row > button svg { width: 15px; }
.parent-created-link { padding: 12px; display: grid; gap: 8px; background: #e7f8f2; border: 1px solid #9cddc8; border-radius: 8px; }
.parent-created-link > span { display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; }
.parent-created-link > span svg { grid-row: 1 / 3; width: 20px; color: #0f766e; }
.parent-created-link strong { color: #087357; font-size: 10px; }
.parent-created-link small { color: #5f7a72; font-size: 7px; }
.parent-created-link input { min-height: 38px; padding: 0 10px; border: 1px solid #b8dcd0; border-radius: 6px; font-size: 7px; }
.parent-created-link > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.parent-created-link button,
.parent-created-link a { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 999px; font: 700 8px "Mali",sans-serif; }
.parent-created-link button { color: #fff; background: #0f766e; }
.parent-created-link a { color: #075985; text-decoration: none; background: #fff; border: 1px solid #b8dcd0; }
.parent-created-link svg { width: 14px; }

/* Family-facing report */
.family-report-page {
  min-height: 100vh;
  padding: 18px 16px 50px;
  color: #173f55;
  background: #edf5f5;
  font-family: "Mali", sans-serif;
}
.family-report-toolbar { width: min(940px,100%); margin: 0 auto 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.family-report-toolbar > a { display: flex; align-items: center; gap: 8px; color: #1269a8; text-decoration: none; }
.family-report-toolbar img { width: 38px; height: 38px; object-fit: contain; }
.family-report-toolbar strong { font-size: 17px; }
.family-report-toolbar button { min-height: 42px; padding: 0 15px; display: flex; align-items: center; gap: 6px; color: #fff; background: #1269a8; border: 0; border-radius: 999px; font: 700 9px "Mali",sans-serif; }
.family-report-toolbar svg { width: 16px; }
.family-report-status,
.family-report-sheet { width: min(940px,100%); margin: 0 auto; }
.family-report-status { min-height: 300px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #57727f; background: #fff; border-radius: 8px; }
.family-report-status.error { color: #b33a27; background: #fff4f1; }
.family-report-sheet { padding: 34px; display: grid; gap: 16px; background: #fff; border: 1px solid #d5e4e7; border-radius: 8px; }
.family-report-sheet > header { padding-bottom: 18px; border-bottom: 2px solid #d9e7ea; }
.family-kicker { color: #1687c8; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.family-report-sheet h1 { margin: 4px 0 18px; font-size: 27px; letter-spacing: 0; }
.family-identity { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; }
.family-identity > span { width: 56px; height: 56px; display: grid; place-items: center; color: #fff; background: #0f766e; border-radius: 50%; font-size: 17px; font-weight: 700; }
.family-identity > div { display: grid; gap: 2px; }
.family-identity strong { font-size: 18px; }
.family-identity p { margin: 0; color: #6e828d; font-size: 9px; }
.family-identity > div:last-child { text-align: right; }
.family-identity small { color: #78909a; font-size: 7px; }
.family-identity b { font-size: 10px; }
.family-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.family-summary article { min-height: 92px; padding: 12px; display: grid; place-items: center; align-content: center; gap: 3px; text-align: center; background: #f2f8fa; border-top: 3px solid #1687c8; border-radius: 8px; }
.family-summary article.green { background: #edf9f5; border-color: #22a67d; }
.family-summary article.violet { background: #f4f0fb; border-color: #835bd1; }
.family-summary article.orange { background: #fff6e9; border-color: #e88420; }
.family-summary article.teal { background: #eaf8f7; border-color: #0f766e; }
.family-summary svg { width: 20px; color: #1687c8; }
.family-summary strong { font-size: 18px; }
.family-summary span { color: #637b87; font-size: 7px; }
.family-section { padding: 20px; background: #fbfdfe; border: 1px solid #dce7eb; border-radius: 8px; }
.family-section-title { margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.family-section-title > svg { width: 28px; height: 28px; padding: 6px; color: #1687c8; background: #eaf5fb; border-radius: 7px; }
.family-section-title span { color: #1687c8; font-size: 7px; font-weight: 700; text-transform: uppercase; }
.family-section-title h2 { margin: 1px 0 0; font-size: 16px; }
.family-domains { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.family-domains article { padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 7px; background: #fff; border: 1px solid #dce7eb; border-radius: 7px; }
.family-domains article > div:first-child { display: grid; gap: 2px; }
.family-domains strong { font-size: 10px; }
.family-domains span { color: #718691; font-size: 7px; }
.family-domains b { color: #1687c8; font-size: 15px; }
.family-domains .portfolio-track { grid-column: 1 / -1; }
.family-domains .strong .portfolio-track span { background: #22a67d; }
.family-domains .medium .portfolio-track span { background: #e4ae2a; }
.family-domains .weak .portfolio-track span { background: #e7583d; }
.family-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.family-goals article { padding: 14px; display: grid; gap: 8px; background: #fff; border-left: 4px solid #0f766e; border-radius: 7px; }
.family-goals header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.family-goals header span { color: #0f766e; font-size: 7px; font-weight: 700; }
.family-goals header b { color: #0f766e; font-size: 13px; }
.family-goals h3 { margin: 0; font-size: 12px; }
.family-goals p { margin: 0; color: #526d7d; font-size: 8px; line-height: 1.55; }
.family-goals small { color: #7b8c95; font-size: 7px; }
.family-message { padding: 18px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; background: #fff8e8; border: 1px solid #efda9e; border-radius: 8px; }
.family-message > svg { width: 35px; color: #b48613; }
.family-message span { color: #9a7519; font-size: 8px; font-weight: 700; }
.family-message p { margin: 4px 0 0; color: #485f6b; font-size: 10px; line-height: 1.7; }
.family-ack { padding: 20px; background: #eff9f6; border: 1px solid #b9e1d5; border-radius: 8px; }
#familyAckForm { display: grid; gap: 10px; }
#familyAckForm > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#familyAckForm label { display: grid; gap: 5px; color: #49636f; font-size: 8px; font-weight: 700; }
#familyAckForm input,
#familyAckForm select,
#familyAckForm textarea { min-height: 42px; padding: 0 12px; border: 1px solid #bed8d1; border-radius: 999px; font: 600 9px "Mali",sans-serif; }
#familyAckForm textarea { min-height: 72px; padding-top: 10px; resize: vertical; border-radius: 8px; }
#familyAckForm .family-consent { display: flex; align-items: center; gap: 8px; }
#familyAckForm .family-consent input { width: 19px; min-height: 19px; accent-color: #0f766e; }
#familyAckForm button { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #fff; background: #0f766e; border: 0; border-radius: 999px; font: 700 10px "Mali",sans-serif; }
#familyAckForm button svg { width: 17px; }
#familyAckForm > p { margin: 0; color: #b33a27; font-size: 8px; text-align: center; }
.family-ack-done { display: flex; align-items: flex-start; gap: 12px; color: #087357; }
.family-ack-done > svg { width: 34px; height: 34px; }
.family-ack-done > div { display: grid; gap: 3px; }
.family-ack-done strong { font-size: 13px; }
.family-ack-done span { color: #5c7b70; font-size: 8px; }
.family-ack-done p { margin: 5px 0 0; color: #49636f; font-size: 9px; }
.family-report-sheet > footer { padding-top: 12px; display: flex; justify-content: space-between; gap: 20px; color: #7a8b94; font-size: 7px; border-top: 1px solid #dce7eb; }

@media (max-width: 900px) {
  .ilp-grid,
  .parent-manager-grid { grid-template-columns: 1fr; }
  .ilp-form,
  .parent-create-form { position: static; }
  .ilp-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .ilp-main,
  .parent-manager-main { width: min(100% - 16px, 1240px); padding-top: 10px; }
  .ilp-hero,
  .parent-manager-heading { min-height: 132px; padding: 20px; }
  .ilp-hero { background: #0f766e; }
  .ilp-hero h1,
  .parent-manager-heading h1 { font-size: 23px; line-height: 1.25; }
  .ilp-hero-icon,
  .parent-manager-heading > svg { width: 56px; height: 56px; flex: 0 0 auto; }
  .ilp-hero-icon svg { width: 28px; }
  .ilp-student-bar { grid-template-columns: 1fr; }
  .ilp-student-bar > a { width: 100%; }
  .ilp-form,
  .ilp-plan-panel,
  .parent-create-form,
  .parent-report-list-panel { padding: 14px; }
  .ilp-update { grid-template-columns: 1fr; }
  .ilp-update button { grid-column: 1; }
  .ilp-plan details div { grid-template-columns: 1fr; }
  .parent-filter-bar { grid-template-columns: 1fr; }
  .parent-report-row { grid-template-columns: 36px minmax(0,1fr) auto; }
  .parent-report-row > button { grid-column: 3; }
  .parent-report-state { grid-row: 1; grid-column: 3; }
  .family-report-page { padding: 8px 7px 30px; }
  .family-report-sheet { padding: 16px 12px; gap: 11px; }
  .family-report-sheet h1 { font-size: 20px; }
  .family-identity { grid-template-columns: 46px 1fr; }
  .family-identity > span { width: 44px; height: 44px; }
  .family-identity > div:last-child { grid-column: 2; text-align: left; }
  .family-summary { grid-template-columns: 1fr 1fr; }
  .family-summary article:last-child { grid-column: 1 / -1; }
  .family-domains,
  .family-goals { grid-template-columns: 1fr; }
  #familyAckForm > div { grid-template-columns: 1fr; }
  .family-report-sheet > footer { display: grid; gap: 5px; }
}
@media (max-width: 390px) {
  .ilp-hero-icon,
  .parent-manager-heading > svg { display: none; }
  .ilp-metrics article { grid-template-columns: 28px 1fr; padding: 12px; }
  .ilp-metrics strong { font-size: 18px; }
  .ilp-scenarios > div { grid-template-columns: 1fr; }
  .ilp-date-grid { grid-template-columns: 1fr; }
  .ilp-plan > header { align-items: flex-start; }
  .ilp-plan-dates { display: grid; }
  .family-report-toolbar strong { font-size: 14px; }
}
@media print {
  .family-report-page { padding: 0; background: #fff; }
  .family-report-toolbar,
  #familyAckForm { display: none !important; }
  .family-report-sheet { width: 100%; padding: 0; border: 0; }
  .family-report-sheet > header,
  .family-summary,
  .family-section,
  .family-message,
  .family-ack { break-inside: avoid; }
  .family-ack:has(#familyAckForm) { display: none; }
}
@media (max-width: 620px) {
  .assessment-header { grid-template-columns: 1fr; }
  .assessment-header-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .auth-badge { min-width: 0; }
  .header-link { width: 100%; justify-content: center; }
  .assessment-main { padding: 12px; }
  .exam-intro { margin-block: 18px; }
  .exam-intro h1 { font-size: 24px; }
  .exam-rules { grid-template-columns: 1fr; }
  .exam-toolbar { margin: -12px -12px 12px; padding-inline: 12px; }
  .question-nav { grid-template-columns: repeat(10, 32px); overflow-x: auto; }
  .question-nav button { width: 32px; height: 32px; min-height: 32px; }
  .question-card { padding: 13px; }
  .question-card h2 { font-size: 16px; }
  .question-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .question-actions .submit-exam { grid-column: 1 / -1; }
  .domain-row { grid-template-columns: 110px minmax(0, 1fr) 40px; }
  .dashboard-main { padding: 14px; }
  .dashboard-heading { display: grid; }
  .dashboard-heading h1 { font-size: 22px; }
  .local-data-badge { justify-self: start; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 96px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .domain-dashboard-row { grid-template-columns: 110px minmax(0, 1fr) 38px; gap: 6px; }
  .dashboard-actions { grid-template-columns: 1fr; }
  .remediation-growth-list article { grid-template-columns: 1fr; }
  .growth-score { justify-content: start; }
  .remediation-growth-list article > a { justify-content: center; }
  .teacher-main { padding: 14px; }
  .teacher-heading { display: grid; }
  .teacher-heading h1 { font-size: 22px; }
  .teacher-heading-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .export-command, .report-command, .research-command { width: 100%; justify-content: center; }
  .research-command { grid-column: 1 / -1; }
  .teacher-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacher-filters button { grid-column: 1 / -1; }
  .teacher-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacher-metric:last-child { grid-column: 1 / -1; }
  .teacher-analysis-grid { grid-template-columns: 1fr; }
  .teacher-notification-list { grid-template-columns: 1fr; }
  .notification-weekly-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-comparison-list article { grid-template-columns: 75px minmax(80px, 1fr); }
  .class-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .automatic-group-grid { grid-template-columns: 1fr; }
  .automatic-group-grid article { grid-template-columns: 1fr; }
  .practical-summary { grid-template-columns: 1fr; }
  .intervention-form { grid-template-columns: 1fr; }
  .intervention-form .wide, .intervention-form button, .intervention-form > p { grid-column: 1; }
  .support-student-list { grid-template-columns: 1fr; }
  .heatmap-row { grid-template-columns: minmax(115px, .8fr) minmax(80px, 1.2fr) 48px; gap: 6px; }
  .remediation-list article { grid-template-columns: minmax(0, 1fr) 45px 34px; }
  .remediation-list article > div:first-child { grid-column: 1 / -1; }
  .remediation-stage-grid { grid-template-columns: 1fr; }
  .effect-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .remediation-check-hero { padding: 14px; }
  .remediation-check-hero h1 { font-size: 20px; }
  .remediation-question { padding: 11px; }
  .remediation-question > div, .result-actions { grid-template-columns: 1fr; }
  .stage-analysis { grid-template-columns: 1fr; }
  .teacher-domain, .stage-analysis-row { grid-template-columns: 105px minmax(0, 1fr) 36px; }
  .assignment-tools summary { align-items: flex-start; }
  .assignment-tools summary small { max-width: 145px; text-align: right; }
  .assignment-tools form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assignment-tools form .wide, .assignment-tools form button { grid-column: 1 / -1; }
  .assignment-row { grid-template-columns: minmax(0, 1fr) auto; }
  .assignment-state { grid-row: 1; grid-column: 2; }
  .assignment-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .research-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-page { margin: 0; padding: 14px; }
  .report-header, .report-grid, .report-overview-grid { display: grid; grid-template-columns: 1fr; }
  .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-method-columns { grid-template-columns: 1fr; }
  .report-section-heading { display: grid; }
  .report-reliability { min-width: 0; }
  .report-table { min-width: 660px; }
  .assignment-report-heading { display: grid; }
  .assignment-report-heading h1 { font-size: 22px; }
  .assignment-report-heading .assignment-state { justify-self: start; }
  .assignment-report-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .assignment-report-actions button { grid-column: 1 / -1; }
  .assignment-filter-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assignment-qr-card { grid-template-columns: 118px minmax(0, 1fr); gap: 9px; padding: 9px; }
  .assignment-qr-code { width: 112px; height: 112px; }
  .assignment-qr-code img, .assignment-qr-code canvas { width: 108px !important; height: 108px !important; }
  .paired-summary, .research-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paired-chart { min-width: 560px; }
  .paired-chart-wrap { overflow-x: auto; }
  .assignment-student summary { grid-template-columns: minmax(0, 1fr) auto 20px; }
  .assignment-student summary > div:first-child { grid-column: 1; }
  .student-submit-state { grid-column: 2; }
  .student-latest { grid-column: 1 / 3; justify-content: flex-start; }
  .assignment-student summary > svg { grid-column: 3; grid-row: 1; }
  .attempt-history > div { grid-template-columns: 1fr auto; }
  .attempt-history small { grid-column: 1 / -1; text-align: left; }
  .bank-main { padding: 12px; }
  .bank-heading { display: grid; }
  .bank-heading h1 { font-size: 22px; }
  .bank-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bank-layout { grid-template-columns: 1fr; }
  .bank-editor { position: static; }
  .bank-toolbar { grid-template-columns: 1fr 1fr; }
  .bank-toolbar label { grid-column: 1 / -1; }
  .bank-item { grid-template-columns: 36px minmax(0, 1fr); }
  .bank-item-state { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; }
}

/* Item analysis workspace */
.analysis-command {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 13px; border: 1px solid #99f6e4; border-radius: 7px; color: #087f73;
  background: #f0fdfa; font-size: 10px; font-weight: 700; text-decoration: none;
}
.analysis-command svg { width: 16px; }
.item-analysis-app { width: min(1240px, 100%); background: #f5f9fc; }
.item-analysis-main { padding: 22px; }
.item-analysis-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px; border: 1px solid #bae6fd; border-radius: 8px; background: #fff;
}
.item-analysis-heading-copy { display: flex; align-items: center; gap: 14px; min-width: 0; }
.analysis-heading-icon {
  width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 8px; color: #fff; background: #087f73; box-shadow: 0 8px 18px rgba(8, 127, 115, .18);
}
.analysis-heading-icon svg { width: 27px; height: 27px; }
.item-analysis-heading h1 { margin: 2px 0 5px; color: #12304a; font-size: 26px; letter-spacing: 0; }
.item-analysis-heading p { margin: 0; color: #64748b; font-size: 10px; line-height: 1.65; }
.analysis-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; color: #475569; font-size: 9px; font-weight: 700; }
.analysis-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.analysis-legend i { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.analysis-legend .good i { background: #10b981; }
.analysis-legend .review i { background: #f97316; }
.analysis-legend .insufficient i { background: #94a3b8; }
.analysis-filters {
  display: grid; grid-template-columns: 1fr 1fr 1fr minmax(180px, 1.3fr); align-items: end; gap: 10px;
  margin: 14px 0; padding: 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff;
}
.analysis-filters label { display: grid; gap: 6px; color: #334155; font-size: 9px; font-weight: 700; }
.analysis-filters select {
  width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #cbd5e1;
  border-radius: 999px; color: #1e293b; background: #fff; font: 600 10px "Mali", sans-serif;
}
.analysis-filters button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 999px; color: #fff; background: #087f73; font: 700 10px "Mali", sans-serif; cursor: pointer;
}
.analysis-filters button svg { width: 17px; }
.analysis-status {
  min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px;
  padding: 24px; border: 1px solid #bae6fd; border-radius: 8px; color: #64748b; background: #fff; text-align: center;
}
.analysis-status[hidden], #analysisContent[hidden] { display: none; }
.analysis-status > svg { width: 34px; color: #0284c7; }
.analysis-status strong { color: #12304a; font-size: 15px; }
.analysis-status span { font-size: 10px; }
.analysis-status a { padding: 10px 18px; border-radius: 999px; color: #fff; background: #087f73; font-size: 10px; font-weight: 700; text-decoration: none; }
.analysis-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.analysis-metrics article {
  min-width: 0; display: flex; align-items: center; gap: 11px; padding: 15px;
  border: 1px solid #dbe7f0; border-left: 4px solid #0284c7; border-radius: 7px; background: #fff;
}
.analysis-metrics article.green { border-left-color: #10b981; }
.analysis-metrics article.orange { border-left-color: #f97316; }
.analysis-metrics article > svg { width: 24px; flex: 0 0 auto; color: #0284c7; }
.analysis-metrics article.green > svg { color: #059669; }
.analysis-metrics article.orange > svg { color: #ea580c; }
.analysis-metrics span, .analysis-metrics strong, .analysis-metrics small { display: block; }
.analysis-metrics span { color: #64748b; font-size: 8px; }
.analysis-metrics strong { margin: 2px 0; color: #12304a; font-size: 20px; }
.analysis-metrics small { color: #94a3b8; font-size: 7px; line-height: 1.45; }
.analysis-progress-panel {
  display: grid; grid-template-columns: minmax(190px, .8fr) minmax(240px, 1.5fr) auto; align-items: center; gap: 16px;
  margin-top: 10px; padding: 15px; border: 1px solid #dbe7f0; border-radius: 7px; background: #fff;
}
.analysis-progress-panel span, .analysis-progress-panel strong, .analysis-progress-panel small { display: block; }
.analysis-progress-panel > div:first-child > span { color: #087f73; font-size: 8px; font-weight: 700; }
.analysis-progress-panel > div:first-child > strong { margin: 2px 0; color: #12304a; font-size: 13px; }
.analysis-progress-panel > div:first-child > small { color: #64748b; font-size: 7px; }
.quality-progress { height: 14px; display: flex; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.quality-progress i { display: block; height: 100%; }
.quality-progress .good { background: #10b981; }
.quality-progress .review { background: #f97316; }
.quality-progress .insufficient { background: #94a3b8; }
.quality-counts { display: flex; gap: 10px; }
.quality-counts span { color: #64748b; font-size: 7px; white-space: nowrap; }
.quality-counts b { color: #12304a; font-size: 11px; }
.analysis-domain-panel, .analysis-item-panel, .analysis-set-panel {
  margin-top: 14px; padding: 16px; border: 1px solid #dbe7f0; border-radius: 8px; background: #fff;
}
.analysis-section-title { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.analysis-section-title span { color: #087f73; font-size: 8px; font-weight: 700; }
.analysis-section-title h2 { margin: 2px 0 0; color: #12304a; font-size: 17px; letter-spacing: 0; }
.analysis-section-title p { margin: 0; color: #64748b; font-size: 8px; }
.analysis-section-title > a {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid #cbd5e1;
  border-radius: 999px; color: #334155; font-size: 8px; font-weight: 700; text-decoration: none;
}
.analysis-section-title > a svg { width: 15px; }
.analysis-domain-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.analysis-domain-card { display: grid; align-content: start; gap: 10px; padding: 12px; border: 1px solid #cbd5e1; border-top: 4px solid #10b981; border-radius: 7px; }
.analysis-domain-card.attention { border-top-color: #f97316; background: #fffaf5; }
.analysis-domain-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.analysis-domain-head span { color: #334155; font-size: 9px; font-weight: 700; }
.analysis-domain-head strong { color: #087f73; font-size: 16px; }
.analysis-domain-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.analysis-domain-track i { display: block; height: 100%; background: #10b981; }
.analysis-domain-card.attention .analysis-domain-track i { background: #f97316; }
.analysis-domain-meta { display: flex; justify-content: space-between; gap: 7px; color: #64748b; font-size: 7px; }
.analysis-domain-card > a, .domain-no-action {
  min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: auto; padding: 7px; border-radius: 999px; font-size: 7px; font-weight: 700; text-align: center; text-decoration: none;
}
.analysis-domain-card > a { color: #fff; background: #087f73; }
.domain-no-action { color: #047857; background: #ecfdf5; }
.analysis-domain-card > a svg, .domain-no-action svg { width: 13px; }
.analysis-item-controls { display: grid; grid-template-columns: minmax(240px, 1fr) 180px 180px; gap: 9px; margin-bottom: 10px; }
.analysis-search { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 999px; }
.analysis-search svg { width: 16px; color: #64748b; }
.analysis-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font: 500 9px "Mali", sans-serif; }
.analysis-item-controls select { min-height: 44px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; font: 600 9px "Mali", sans-serif; }
.analysis-item-list { display: grid; gap: 7px; }
.analysis-item { overflow: hidden; border: 1px solid #dbe7f0; border-left: 4px solid #10b981; border-radius: 7px; background: #fff; }
.analysis-item.review { border-left-color: #f97316; }
.analysis-item.insufficient { border-left-color: #94a3b8; }
.analysis-item summary { min-height: 76px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 90px 20px; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.analysis-item summary::-webkit-details-marker { display: none; }
.analysis-item-state { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: #047857; background: #d1fae5; }
.analysis-item.review .analysis-item-state { color: #c2410c; background: #ffedd5; }
.analysis-item.insufficient .analysis-item-state { color: #475569; background: #e2e8f0; }
.analysis-item-state svg { width: 18px; }
.analysis-item-copy { min-width: 0; }
.analysis-item-copy span, .analysis-item-copy strong, .analysis-item-copy small { display: block; }
.analysis-item-copy span { color: #087f73; font-size: 7px; font-weight: 700; }
.analysis-item-copy strong { margin: 2px 0; color: #12304a; font-size: 10px; }
.analysis-item-copy small { overflow: hidden; color: #64748b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.analysis-item-numbers { display: flex; gap: 8px; }
.analysis-item-numbers span { min-width: 58px; display: grid; gap: 1px; padding: 7px; border-radius: 6px; color: #64748b; background: #f1f5f9; font-size: 7px; text-align: center; }
.analysis-item-numbers b { color: #12304a; font-size: 12px; }
.analysis-item summary > em { color: #047857; font-size: 8px; font-style: normal; font-weight: 700; text-align: center; }
.analysis-item.review summary > em { color: #c2410c; }
.analysis-item.insufficient summary > em { color: #64748b; }
.analysis-chevron { width: 16px; color: #64748b; transition: transform .2s ease; }
.analysis-item[open] .analysis-chevron { transform: rotate(180deg); }
.analysis-item-detail { display: grid; gap: 11px; padding: 13px; border-top: 1px solid #e2e8f0; background: #f8fafc; animation: analysisReveal .2s ease both; }
@keyframes analysisReveal { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.item-stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.item-stat-strip span { padding: 9px; border: 1px solid #dbe7f0; border-radius: 6px; background: #fff; }
.item-stat-strip small, .item-stat-strip strong { display: block; }
.item-stat-strip small { color: #64748b; font-size: 7px; }
.item-stat-strip strong { margin-top: 3px; color: #12304a; font-size: 9px; }
.distractor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.distractor-grid > div { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid #dbe7f0; border-radius: 6px; background: #fff; }
.distractor-grid > div > b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #475569; background: #e2e8f0; font-size: 9px; }
.distractor-grid > div.correct { border-color: #6ee7b7; background: #ecfdf5; }
.distractor-grid > div.correct > b { color: #fff; background: #10b981; }
.distractor-grid > div.weak { border-color: #fed7aa; background: #fff7ed; }
.distractor-grid span strong, .distractor-grid span small { display: block; }
.distractor-grid span strong { color: #334155; font-size: 8px; }
.distractor-grid span small { color: #64748b; font-size: 7px; }
.distractor-grid em { color: #334155; font-size: 8px; font-style: normal; font-weight: 700; }
.analysis-practical-note { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid #bae6fd; border-radius: 6px; color: #0369a1; background: #f0f9ff; }
.analysis-practical-note svg { width: 21px; }
.analysis-practical-note strong, .analysis-practical-note span { display: block; }
.analysis-practical-note strong { font-size: 9px; }
.analysis-practical-note span { font-size: 8px; }
.missed-students { display: grid; gap: 6px; }
.missed-students > strong { color: #334155; font-size: 8px; }
.missed-students > div { display: flex; flex-wrap: wrap; gap: 5px; }
.missed-students span { padding: 5px 8px; border-radius: 999px; color: #9f1239; background: #fff1f2; font-size: 7px; }
.analysis-set-list { display: grid; gap: 7px; }
.analysis-set-list article { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid #dbe7f0; border-radius: 7px; }
.set-analysis-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 7px; color: #0369a1; background: #e0f2fe; }
.set-analysis-icon svg { width: 18px; }
.analysis-set-list article > div:nth-child(2) strong, .analysis-set-list article > div:nth-child(2) span, .analysis-set-list article > div:nth-child(2) small { display: block; }
.analysis-set-list article > div:nth-child(2) strong { color: #12304a; font-size: 10px; }
.analysis-set-list article > div:nth-child(2) span { color: #64748b; font-size: 8px; }
.analysis-set-list article > div:nth-child(2) small { color: #087f73; font-size: 7px; }
.set-analysis-score { min-width: 100px; padding: 7px 10px; border-radius: 6px; background: #f0fdfa; text-align: center; }
.set-analysis-score strong, .set-analysis-score span { display: block; }
.set-analysis-score strong { color: #087f73; font-size: 14px; }
.set-analysis-score span { color: #64748b; font-size: 7px; }
.set-analysis-range { display: grid; gap: 3px; color: #64748b; font-size: 7px; text-align: right; }
.analysis-empty { min-height: 110px; display: grid; place-items: center; padding: 20px; color: #64748b; font-size: 9px; text-align: center; }

@media (max-width: 900px) {
  .analysis-metrics { grid-template-columns: repeat(2, 1fr); }
  .analysis-domain-grid { grid-template-columns: repeat(2, 1fr); }
  .analysis-filters { grid-template-columns: repeat(2, 1fr); }
  .analysis-item-controls { grid-template-columns: 1fr 1fr; }
  .analysis-search { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .item-analysis-main { padding: 12px; }
  .item-analysis-heading { align-items: flex-start; padding: 14px; }
  .item-analysis-heading-copy { align-items: flex-start; }
  .analysis-heading-icon { width: 42px; height: 42px; }
  .analysis-heading-icon svg { width: 21px; }
  .item-analysis-heading h1 { font-size: 19px; }
  .item-analysis-heading p { font-size: 9px; }
  .analysis-legend { display: none; }
  .analysis-filters { grid-template-columns: 1fr 1fr; padding: 11px; }
  .analysis-filters label:nth-child(3), .analysis-filters button { grid-column: 1 / -1; }
  .analysis-filters select, .analysis-filters button { min-height: 48px; }
  .analysis-metrics { grid-template-columns: 1fr 1fr; gap: 7px; }
  .analysis-metrics article { align-items: flex-start; padding: 11px; }
  .analysis-metrics article > svg { width: 20px; }
  .analysis-metrics strong { font-size: 17px; }
  .analysis-progress-panel { grid-template-columns: 1fr; }
  .quality-counts { justify-content: space-between; }
  .analysis-domain-panel, .analysis-item-panel, .analysis-set-panel { padding: 12px; }
  .analysis-section-title { align-items: flex-start; }
  .analysis-section-title p { display: none; }
  .analysis-domain-grid { grid-template-columns: 1fr; }
  .analysis-domain-card { min-height: 150px; }
  .analysis-domain-card > a, .domain-no-action { min-height: 44px; font-size: 9px; }
  .analysis-item-controls { grid-template-columns: 1fr; }
  .analysis-search { grid-column: auto; min-height: 48px; }
  .analysis-item-controls select { min-height: 48px; }
  .analysis-item summary { grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 8px; padding: 11px; }
  .analysis-item-numbers { grid-column: 2 / 3; }
  .analysis-item summary > em { grid-column: 1 / 3; grid-row: 2; justify-self: start; padding-left: 42px; }
  .analysis-chevron { grid-column: 3; grid-row: 1 / 3; }
  .item-stat-strip, .distractor-grid { grid-template-columns: 1fr; }
  .analysis-set-list article { grid-template-columns: 38px minmax(0, 1fr); }
  .set-analysis-score, .set-analysis-range { grid-column: 2; min-width: 0; text-align: left; }
  .set-analysis-range { display: flex; gap: 12px; }
}

/* Teacher workspace: larger controls and clearer classroom scanning. */
.teacher-app {
  overflow: hidden;
  border-inline: 1px solid #dbeafe;
  box-shadow: 0 20px 55px rgba(30, 64, 175, .08);
}
.teacher-app .assessment-header {
  border-bottom-color: #bfdbfe;
  background:
    linear-gradient(90deg, rgba(224,242,254,.85), rgba(236,253,245,.72) 52%, rgba(255,247,237,.8));
}
.teacher-app .assessment-brand img {
  filter: drop-shadow(0 7px 10px rgba(14, 116, 144, .18));
}
.teacher-app .assessment-header-actions .header-link:nth-of-type(1) {
  color: #7c2d12;
  border-color: #fed7aa;
  background: #fff7ed;
}
.teacher-main {
  background:
    radial-gradient(circle at 100% 0, rgba(254,215,170,.32), transparent 24rem),
    radial-gradient(circle at 0 22rem, rgba(167,243,208,.26), transparent 22rem),
    #f8fbfd;
}
.teacher-heading {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 18px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
}
.teacher-heading > div:first-child { position: relative; padding-left: 58px; }
.teacher-heading-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #087ca7;
  box-shadow: 0 8px 18px rgba(8,124,167,.2);
}
.teacher-heading-icon svg { width: 22px; }
.teacher-heading h1 { margin-block: 3px 2px; }
.teacher-heading p { margin: 0; color: #587087; }
.teacher-heading h1 { color: #123458; }
.teacher-heading-actions > a,
.teacher-heading-actions > button {
  min-height: 44px;
  padding-inline: 14px;
  box-shadow: 0 7px 16px rgba(15, 118, 110, .08);
}
.teacher-filters {
  gap: 12px;
  padding: 14px;
  border-color: #bfdbfe;
  border-radius: 8px;
  background: #eff8ff;
}
.teacher-overview {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(440px, 1.2fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(30,64,175,.05);
}
.teacher-overview-copy { display: grid; align-content: center; }
.teacher-overview-copy > span { color: #087ca7; font-size: 9px; font-weight: 700; }
.teacher-overview-copy h2 { margin: 3px 0; color: #123458; font-size: 20px; }
.teacher-overview-copy p { margin: 0; color: #587087; font-size: 10px; line-height: 1.6; }
.teacher-priority-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.teacher-priority {
  min-height: 76px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}
.teacher-priority > svg {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 50%;
  color: #087ca7;
  background: #e0f2fe;
}
.teacher-priority small,
.teacher-priority strong { display: block; }
.teacher-priority small { color: #587087; font-size: 8px; line-height: 1.35; }
.teacher-priority strong { margin-top: 2px; color: #123458; font-size: 18px; }
.teacher-priority em { color: #587087; font-size: 8px; font-style: normal; }
.teacher-priority.attention { border-color: #fecdd3; background: #fff7f8; }
.teacher-priority.attention > svg { color: #be123c; background: #ffe4e6; }
.teacher-priority.warning { border-color: #fed7aa; background: #fffaf5; }
.teacher-priority.warning > svg { color: #c2410c; background: #ffedd5; }
.teacher-priority.good { border-color: #a7f3d0; background: #f3fcf8; }
.teacher-priority.good > svg { color: #047857; background: #d1fae5; }
.teacher-filters label {
  gap: 7px;
  color: #31506d;
  font-size: 11px;
}
.teacher-filters select,
.assignment-tools input,
.assignment-tools select,
.intervention-form select,
.intervention-form input,
.intervention-form textarea {
  min-height: 50px;
  padding: 10px 16px;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  color: #1e293b;
  background-color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.intervention-form textarea {
  min-height: 110px;
  border-radius: 8px;
  line-height: 1.65;
}
.teacher-filters select:focus,
.assignment-tools input:focus,
.assignment-tools select:focus,
.intervention-form select:focus,
.intervention-form input:focus,
.intervention-form textarea:focus {
  border-color: #38bdf8;
  outline: 4px solid rgba(56, 189, 248, .16);
}
.teacher-filters button {
  min-height: 50px;
  padding-inline: 22px;
  border-radius: 999px;
  background: #087ca7;
}
.teacher-panel,
.dashboard-panel,
.assignment-tools,
.teacher-status {
  border-color: #dbeafe;
  box-shadow: 0 8px 22px rgba(30, 64, 175, .05);
}
.teacher-panel { margin-top: 10px; }
.teacher-metrics { margin-bottom: 2px; }
.teacher-metric {
  min-height: 96px;
  border-top-width: 4px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.teacher-metric:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(30,64,175,.09); }
.teacher-metric > svg { width: 20px; height: 20px; }
.teacher-metric strong { font-size: 22px; }
.teacher-metric:nth-child(4n+1) { border-top-color: #38bdf8; }
.teacher-metric:nth-child(4n+2) { border-top-color: #34d399; }
.teacher-metric:nth-child(4n+3) { border-top-color: #fb923c; }
.teacher-metric:nth-child(4n) { border-top-color: #f472b6; }
.teacher-table thead th {
  padding-block: 12px;
  color: #31506d;
  background: #eff8ff;
}
.teacher-table tbody tr:hover { background: #f8fcff; }
.teacher-table tbody tr.student-needs-support { background: #fff9f7; }
.teacher-table tbody tr.student-needs-support td:first-child { border-left: 3px solid #fb7185; }
.teacher-table td { padding-block: 11px; }
.timeline-command {
  min-height: 42px;
  padding-inline: 14px;
  font-size: 9px;
}
.timeline-dialog {
  border: 1px solid #bfdbfe;
  background: #f8fbfd;
}
.timeline-shell { gap: 16px; padding: 22px; }
.timeline-shell .dialog-head {
  margin: -22px -22px 0;
  padding: 18px 22px;
  border-bottom: 1px solid #bae6fd;
  background: linear-gradient(90deg, #eff8ff, #ecfdf5);
}
.timeline-shell .dialog-head h2 { color: #123458; font-size: 22px; }
.timeline-shell .dialog-head p { font-size: 10px; }
.timeline-shell .dialog-head button {
  width: 42px;
  height: 42px;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(147,197,253,.18);
}
.timeline-intro {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  background: #f0fdf8;
}
.timeline-intro > svg { width: 22px; color: #0f8a70; }
.timeline-intro strong,
.timeline-intro span { display: block; }
.timeline-intro strong { color: #0f594b; font-size: 11px; }
.timeline-intro span { margin-top: 2px; color: #4b6f67; font-size: 9px; line-height: 1.5; }
.timeline-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}
.timeline-section-head strong { color: #123458; font-size: 12px; }
.timeline-section-head span { color: #7890a5; font-size: 8px; }
.intervention-form {
  grid-template-columns: minmax(180px, .65fr) minmax(220px, .8fr) auto;
  gap: 12px;
  padding: 16px;
  border-color: #bae6fd;
  border-radius: 8px;
  background: #fff;
}
.intervention-form label { gap: 7px; color: #31506d; font-size: 10px; }
.intervention-form label > span { display: flex; align-items: center; gap: 6px; }
.intervention-form label > span svg { width: 14px; color: #087ca7; }
.intervention-form button {
  min-height: 50px;
  padding-inline: 20px;
  background: #0f8a70;
}
.student-timeline article > div {
  padding: 11px 13px;
  background: #fff;
}
.timeline-loading {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 9px;
  padding: 10px 0;
}
.timeline-loading i {
  grid-row: 1 / 3;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #e0f2fe;
  animation: teacherPulse 1.1s ease-in-out infinite;
}
.timeline-loading span {
  height: 14px;
  border-radius: 5px;
  background: #e8eef4;
  animation: teacherPulse 1.1s ease-in-out infinite;
}
.timeline-loading span:last-child { width: 62%; }
.teacher-loading-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #087ca7;
  background: #e0f2fe;
}
.teacher-loading-mark svg { width: 23px; }
.teacher-loading-bars { display: flex; gap: 5px; margin-top: 7px; }
.teacher-loading-bars i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  animation: teacherBounce .9s ease-in-out infinite;
}
.teacher-loading-bars i:nth-child(2) { animation-delay: .12s; }
.teacher-loading-bars i:nth-child(3) { animation-delay: .24s; }
@keyframes teacherPulse { 50% { opacity: .45; } }
@keyframes teacherBounce { 50% { transform: translateY(-5px); background: #0f8a70; } }

@media (max-width: 620px) {
  .teacher-app { border: 0; }
  .teacher-heading { grid-template-columns: 1fr; padding: 14px; }
  .teacher-heading > div:first-child { padding-left: 48px; }
  .teacher-heading-icon { width: 38px; height: 38px; border-radius: 10px; }
  .teacher-heading h1 { font-size: 20px; }
  .teacher-heading-actions { margin-top: 12px; }
  .teacher-heading-actions > a,
  .teacher-heading-actions > button { flex: 1; min-width: 0; padding-inline: 8px; }
  .teacher-filters { grid-template-columns: 1fr; }
  .teacher-filters button { grid-column: 1; }
  .teacher-overview { grid-template-columns: 1fr; padding: 12px; }
  .teacher-priority-list { grid-template-columns: 1fr; }
  .teacher-priority { min-height: 62px; }
  .teacher-metric { min-height: 88px; }
  .timeline-shell { padding: 16px; }
  .timeline-shell .dialog-head { margin: -16px -16px 0; padding: 14px 16px; }
  .intervention-form { grid-template-columns: 1fr; padding: 12px; }
  .timeline-intro { grid-template-columns: 30px minmax(0, 1fr); }
  .timeline-intro > svg { width: 19px; }
  .student-timeline article > div { padding: 10px; }
}

@media (min-width: 621px) and (max-width: 980px) {
  .teacher-overview { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .teacher-loading-bars i,
  .timeline-loading i,
  .timeline-loading span { animation: none; }
  .teacher-metric { transition: none; }
}

/* Question bank workspace */
.bank-app {
  overflow: hidden;
  border-inline: 1px solid #dbeafe;
  box-shadow: 0 20px 55px rgba(30,64,175,.08);
}
.bank-app .assessment-header {
  border-bottom-color: #c7e8e2;
  background: #f8fffd;
}
.bank-main {
  min-height: calc(100vh - 76px);
  padding: 22px;
  background: #f6fafc;
}
.bank-heading {
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(30,64,175,.05);
}
.bank-heading-copy {
  position: relative;
  min-height: 48px;
  padding-left: 58px;
}
.bank-heading-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #0f8a70;
  box-shadow: 0 8px 18px rgba(15,138,112,.2);
}
.bank-heading-icon svg { width: 22px; }
.bank-heading h1 { color: #123458; }
.bank-metrics { grid-template-columns: repeat(3, 102px); }
.bank-metrics div {
  min-height: 64px;
  display: grid;
  place-content: center;
  border-color: #cbdff0;
  background: #f8fbff;
}
.bank-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}
.bank-tabs button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  color: #496176;
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}
.bank-tabs button svg { width: 18px; }
.bank-tabs button.active {
  color: #fff;
  background: #087ca7;
  box-shadow: 0 8px 18px rgba(8,124,167,.16);
}
.bank-tab-panel[hidden] { display: none; }
.bank-tab-panel.active { animation: bankPanelIn .25s ease both; }
@keyframes bankPanelIn {
  from { opacity: 0; transform: translateY(5px); }
}
.bank-layout { grid-template-columns: 350px minmax(0, 1fr); }
.bank-editor,
.bank-library {
  border-color: #dbeafe;
  box-shadow: 0 8px 22px rgba(30,64,175,.05);
}
.bank-editor input,
.bank-editor select,
.bank-editor textarea,
.bank-toolbar input,
.bank-toolbar select {
  min-height: 46px;
  padding-inline: 14px;
  border: 2px solid #d3e0ea;
  border-radius: 14px;
  font-size: 11px;
}
.bank-editor textarea { min-height: 96px; border-radius: 10px; }
.bank-editor input:focus,
.bank-editor select:focus,
.bank-editor textarea:focus,
.bank-toolbar input:focus,
.bank-toolbar select:focus {
  border-color: #38bdf8;
  outline: 4px solid rgba(56,189,248,.14);
}
.bank-toolbar { padding: 12px; background: #f2f8fc; }
.bank-item {
  min-height: 106px;
  transition: background .2s ease;
}
.bank-item:hover { background: #f8fcff; }
.bank-item-copy > strong { font-size: 13px; }
.bank-item-copy > p { font-size: 10px; }

.exam-set-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .65fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #fff;
}
.exam-set-heading h2,
.csv-import-copy h2 { margin: 4px 0; color: #123458; font-size: 23px; }
.exam-set-heading p,
.csv-import-copy p { margin: 0; color: #587087; font-size: 10px; line-height: 1.6; }
.active-exam-summary {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  background: #fff7ed;
}
.active-exam-summary.open { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.active-exam-summary > svg {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
}
.active-exam-summary strong,
.active-exam-summary small { display: block; }
.active-exam-summary strong { font-size: 11px; }
.active-exam-summary small { margin-top: 3px; color: #667c8e; font-size: 8px; line-height: 1.5; }
.exam-set-candidates {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.exam-set-card {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-top: 4px solid #38bdf8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(30,64,175,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.exam-set-card:nth-child(2) { border-top-color: #34d399; }
.exam-set-card:nth-child(3) { border-top-color: #fb923c; }
.exam-set-card:nth-child(4) { border-top-color: #f472b6; }
.exam-set-card:nth-child(5) { border-top-color: #a78bfa; }
.exam-set-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(30,64,175,.1); }
.exam-set-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #087ca7;
  background: #e0f2fe;
  font-size: 14px;
  font-weight: 700;
}
.exam-set-copy > span,
.exam-set-copy > strong,
.exam-set-copy > small { display: block; }
.exam-set-copy > span { color: #087ca7; font-size: 7px; font-weight: 700; }
.exam-set-copy > strong { margin-top: 2px; color: #123458; font-size: 12px; }
.exam-set-copy > small {
  min-height: 44px;
  margin-top: 4px;
  overflow: hidden;
  color: #687f93;
  font-size: 8px;
  line-height: 1.55;
}
.exam-set-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.exam-set-counts span {
  padding: 7px 5px;
  border-radius: 7px;
  color: #486176;
  background: #f1f7fb;
  font-size: 7px;
  text-align: center;
}
.teacher-heading-actions > [hidden],
.teacher-filters > [hidden] { display: none !important; }
.teacher-filters {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(170px, .75fr);
  align-items: end;
}
.teacher-filters label { min-width: 0; }

.guest-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid #b9dff0;
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(224, 242, 254, .72), rgba(236, 253, 245, .7)),
    #fff;
  box-shadow: 0 12px 28px rgba(19, 86, 126, .08);
}
.guest-dashboard-room {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}
.guest-room-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #087ca7;
  box-shadow: 0 9px 20px rgba(8, 124, 167, .2);
}
.guest-room-mark svg { width: 24px; }
.guest-dashboard-room small { color: #087ca7; font-size: 10px; font-weight: 700; }
.guest-dashboard-room h2 { margin: 3px 0 1px; color: #123458; font-size: 22px; }
.guest-dashboard-room p { margin: 0; color: #587087; font-size: 10px; }
.guest-dashboard-state,
.guest-dashboard-hero > a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.guest-dashboard-state { color: #64748b; background: #f1f5f9; }
.guest-dashboard-state.open { color: #047857; background: #d1fae5; }
.guest-dashboard-state svg,
.guest-dashboard-hero > a svg { width: 17px; }
.guest-dashboard-hero > a {
  border: 1px solid #9fcfe6;
  color: #075d91;
  background: #fff;
  text-decoration: none;
}
.guest-dashboard-hero > a:hover { color: #fff; border-color: #0b8a78; background: #0b8a78; }
.guest-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.guest-progress-summary {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.guest-progress-summary > div:first-child {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 92px;
  border-radius: 10px;
  color: #075d91;
  background: #e0f2fe;
}
.guest-progress-summary strong { font-size: 24px; }
.guest-progress-summary span,
.guest-progress-summary p { color: #587087; font-size: 10px; }
.guest-progress-summary p { margin: 0; }
.guest-online-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  white-space: nowrap;
}
.guest-online-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}
.guest-online-state.online { color: #047857; font-weight: 700; }
.guest-online-state.online i {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}
.guest-dashboard-empty {
  min-height: 330px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 30px;
  border: 1px dashed #94c6df;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
}
.guest-dashboard-empty > span {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #087ca7;
  background: #e0f2fe;
}
.guest-dashboard-empty > span svg { width: 30px; }
.guest-dashboard-empty small { color: #087ca7; font-weight: 700; }
.guest-dashboard-empty h2 { margin: 5px 0; font-size: 23px; }
.guest-dashboard-empty p { max-width: 650px; margin: 0; color: #64748b; line-height: 1.65; }
.guest-dashboard-empty > a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 999px;
  color: #fff;
  background: #087ca7;
  text-decoration: none;
  font-weight: 700;
}
.exam-set-counts b { display: block; color: #123458; font-size: 13px; }
.exam-set-card > button,
.csv-import-copy button,
.csv-drop-zone button,
.csv-preview > button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #087ca7;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
}
.exam-set-card > button svg,
.csv-import-copy button svg,
.csv-drop-zone button svg,
.csv-preview > button svg { width: 15px; }
.exam-set-publish {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
  border: 2px solid #a7f3d0;
  border-radius: 8px;
  background: #f3fcf8;
}
.exam-set-publish[hidden] { display: none; }
.exam-set-form-head,
.exam-set-publish .wide,
.exam-set-form-actions,
.exam-set-publish > p { grid-column: 1 / -1; }
.exam-set-form-head { display: flex; align-items: center; gap: 9px; }
.exam-set-form-head > svg { width: 22px; color: #0f8a70; }
.exam-set-form-head strong,
.exam-set-form-head span { display: block; }
.exam-set-form-head strong { color: #0f594b; font-size: 13px; }
.exam-set-form-head span { color: #5f766e; font-size: 8px; }
.exam-set-publish label {
  display: grid;
  gap: 5px;
  color: #3f5b55;
  font-size: 9px;
  font-weight: 700;
}
.exam-set-publish input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid #bcded5;
  border-radius: 14px;
  background: #fff;
  font: inherit;
}
.exam-set-publish input:focus { border-color: #0f8a70; outline: 4px solid rgba(15,138,112,.12); }
.exam-set-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.exam-set-form-actions button {
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #bfd8d2;
  border-radius: 999px;
  color: #49675f;
  background: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
}
.exam-set-form-actions button:last-child { color: #fff; border-color: #0f8a70; background: #0f8a70; }
.exam-set-form-actions svg { width: 15px; vertical-align: middle; }
.exam-set-publish > p { min-height: 16px; margin: 0; color: #047857; font-size: 9px; text-align: right; }
.published-set-list {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
}
.exam-set-history-list { display: grid; gap: 7px; }
.exam-set-history-list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfdff;
}
.exam-set-history-list article.active { border-color: #a7f3d0; background: #f3fcf8; }
.exam-set-state {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #64748b;
  background: #eef2f7;
}
.exam-set-history-list article.active .exam-set-state { color: #047857; background: #d1fae5; }
.exam-set-state svg { width: 16px; }
.exam-set-history-list strong,
.exam-set-history-list span,
.exam-set-history-list small { display: block; }
.exam-set-history-list strong { font-size: 11px; }
.exam-set-history-list span,
.exam-set-history-list small { margin-top: 2px; color: #64748b; font-size: 8px; }
.exam-set-history-list article > b {
  padding: 5px 8px;
  border-radius: 999px;
  color: #64748b;
  background: #eef2f7;
  font-size: 8px;
}
.exam-set-history-list article.active > b { color: #047857; background: #d1fae5; }
.exam-set-actions { display: flex; gap: 5px; }
.exam-set-actions button,
.exam-set-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #496176;
  background: #fff;
  font: inherit;
  font-size: 8px;
  font-weight: 700;
  text-decoration: none;
}
.exam-set-actions svg { width: 13px; }

.csv-import-shell {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(360px, 1.25fr);
  gap: 12px;
}
.csv-import-copy,
.csv-drop-zone,
.csv-preview {
  padding: 20px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(30,64,175,.05);
}
.csv-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 12px;
  color: #fff;
  background: #0f8a70;
}
.csv-icon svg { width: 23px; }
.csv-import-copy button { margin-top: 16px; padding-inline: 18px; background: #0f8a70; }
.csv-drop-zone {
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 2px dashed #93c5fd;
  text-align: center;
  transition: border-color .2s ease, background .2s ease;
}
.csv-drop-zone.dragging { border-color: #0f8a70; background: #ecfdf5; }
.csv-drop-zone > svg { width: 42px; height: 42px; color: #087ca7; }
.csv-drop-zone > strong { color: #123458; font-size: 15px; }
.csv-drop-zone > span { color: #687f93; font-size: 9px; }
.csv-drop-zone button { margin-top: 7px; padding-inline: 20px; }
.csv-preview { margin-top: 12px; }
.csv-preview-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.csv-preview-head > svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; color: #047857; background: #d1fae5; }
.csv-preview-head strong,
.csv-preview-head span { display: block; }
.csv-preview-head strong { font-size: 12px; }
.csv-preview-head span { color: #64748b; font-size: 9px; }
.csv-preview-counts { display: flex; gap: 8px; margin: 12px 0; }
.csv-preview-counts span { padding: 8px 12px; border-radius: 8px; color: #496176; background: #f1f7fb; font-size: 9px; }
.csv-preview-counts b { color: #087ca7; font-size: 14px; }
.csv-preview-list { display: grid; gap: 5px; }
.csv-preview-list > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 8px; border-bottom: 1px solid #e8eef4; }
.csv-preview-list > div > b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #087ca7; font-size: 9px; }
.csv-preview-list strong,
.csv-preview-list small { display: block; }
.csv-preview-list strong { font-size: 10px; }
.csv-preview-list small { color: #64748b; font-size: 8px; }
.csv-preview-list p { color: #64748b; font-size: 9px; }
.csv-preview > button { margin-top: 14px; padding-inline: 20px; background: #0f8a70; }
.csv-preview > p { min-height: 17px; margin: 7px 0 0; color: #047857; font-size: 9px; }
.csv-error { display: grid; justify-items: center; gap: 6px; color: #be123c; text-align: center; }
.csv-error svg { width: 32px; }
.csv-error strong,
.csv-error span { display: block; }
.csv-error span { color: #64748b; font-size: 9px; }
.primary-command:disabled {
  cursor: not-allowed;
  opacity: .62;
  box-shadow: none;
}
.practical-exam-task {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 2px solid #fed7aa;
  border-radius: 8px;
  background: #fffaf5;
}
.practical-exam-task.completed { border-color: #a7f3d0; background: #f0fdf8; }
.practical-exam-task > svg {
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 50%;
  color: #c2410c;
  background: #ffedd5;
}
.practical-exam-task.completed > svg { color: #047857; background: #d1fae5; }
.practical-exam-task strong,
.practical-exam-task span { display: block; }
.practical-exam-task strong { color: #123458; font-size: 13px; }
.practical-exam-task span { margin-top: 4px; color: #64748b; font-size: 10px; line-height: 1.6; }
.practical-exam-task > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  color: #fff;
  background: #ea580c;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.practical-exam-task > a svg { width: 15px; }

@media (max-width: 900px) {
  .exam-set-candidates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exam-set-heading,
  .csv-import-shell { grid-template-columns: 1fr; }
  .exam-set-publish { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .bank-main { padding: 12px; }
  .bank-heading { display: grid; padding: 14px; }
  .bank-heading-copy { padding-left: 48px; }
  .bank-heading-icon { width: 38px; height: 38px; border-radius: 10px; }
  .bank-heading h1 { font-size: 21px; }
  .bank-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
  .bank-metrics div { min-height: 58px; }
  .bank-tabs { position: sticky; top: 0; z-index: 5; }
  .bank-tabs button { min-height: 48px; padding: 7px; }
  .bank-tabs button span { font-size: 9px; }
  .bank-layout { grid-template-columns: 1fr; }
  .bank-toolbar { grid-template-columns: 1fr; }
  .bank-toolbar label { grid-column: 1; }
  .exam-set-heading { padding: 14px; }
  .exam-set-heading h2,
  .csv-import-copy h2 { font-size: 20px; }
  .exam-set-candidates { grid-template-columns: 1fr; }
  .exam-set-card { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .exam-set-card .exam-set-counts,
  .exam-set-card > button { grid-column: 1 / -1; }
  .exam-set-copy > small { min-height: 0; }
  .exam-set-publish { grid-template-columns: 1fr; padding: 12px; }
  .exam-set-publish > * { grid-column: 1 / -1; }
  .exam-set-form-actions button { flex: 1; }
  .exam-set-history-list article { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .exam-set-actions { grid-column: 1 / -1; }
  .exam-set-actions button,
  .exam-set-actions a { flex: 1; justify-content: center; }
  .csv-import-copy,
  .csv-drop-zone,
  .csv-preview { padding: 15px; }
  .csv-drop-zone { min-height: 220px; }
  .practical-exam-task { grid-template-columns: 40px minmax(0, 1fr); padding: 13px; }
  .practical-exam-task > svg { width: 38px; height: 38px; padding: 10px; }
  .practical-exam-task > a { grid-column: 1 / -1; justify-content: center; }
}

/* Live exam control center */
.live-exam-app {
  min-height: 100vh;
  background: linear-gradient(180deg, #f0f9ff 0, #f8fafc 340px, #eef6f5 100%);
}
.live-main {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}
.live-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid #d9e7ed;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 62, 76, .08);
}
.live-heading-copy {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
}
.live-heading-copy > :not(.live-heading-icon) { grid-column: 2; }
.live-heading-icon {
  grid-row: 1 / 5;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0f766e;
  border-radius: 8px;
}
.live-heading-icon svg { width: 28px; height: 28px; }
.live-heading h1,
.live-roster h2,
.live-finish-summary h2 {
  margin: 3px 0 6px;
  color: #132b43;
  letter-spacing: 0;
}
.live-heading h1 { font-size: 30px; }
.live-heading p,
.live-roster-head p,
.live-finish-summary p { margin: 0; color: #64748b; }
.live-set-select {
  min-width: min(100%, 390px);
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}
.live-set-select select {
  width: 100%;
  min-height: 48px;
  padding: 0 44px 0 18px;
  color: #15334b;
  font: inherit;
  font-size: 14px;
  background: #f8fafc;
  border: 1px solid #cbdbe4;
  border-radius: 999px;
}
.live-access-status {
  min-height: 92px;
  margin-top: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #cfe1e8;
  border-radius: 8px;
}
.live-access-status > svg { width: 30px; height: 30px; color: #0f766e; }
.live-access-status:not(.denied):not(.empty) > svg { animation: live-spin 1.1s linear infinite; }
.live-access-status div { display: grid; gap: 3px; }
.live-access-status strong { color: #17324a; font-size: 17px; }
.live-access-status span { color: #64748b; font-size: 13px; }
.live-access-status a {
  margin-left: auto;
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: #0f766e;
  border-radius: 999px;
}
.live-access-status.denied { border-color: #fecaca; background: #fff7f7; }
.live-access-status.denied > svg { color: #dc2626; }
.live-access-status[hidden], #liveExamContent[hidden] { display: none; }
.live-control-bar {
  margin-top: 18px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  color: #fff;
  background: #123f59;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(13, 55, 75, .15);
}
.live-exam-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}
.live-exam-identity div { min-width: 0; display: grid; gap: 3px; }
.live-exam-identity strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-exam-identity span:not(.live-state-dot) { color: #c9e3ec; font-size: 12px; }
.live-state-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: #94a3b8;
  border: 3px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
}
.live-state-dot.active {
  background: #34d399;
  box-shadow: 0 0 0 7px rgba(52, 211, 153, .13);
  animation: live-pulse 1.8s ease-out infinite;
}
.live-countdown { min-width: 150px; display: grid; justify-items: center; }
.live-countdown span { color: #b8d4df; font-size: 11px; }
.live-countdown strong {
  margin-top: 2px;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}
.live-countdown strong.urgent { color: #fbbf24; }
.live-control-actions { display: flex; gap: 9px; }
.live-control-actions button {
  min-height: 46px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #15334b;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.live-control-actions button:last-child { color: #fff; background: #e7583d; }
.live-control-actions button:last-child.reopen { background: #0b9a70; }
.live-control-actions button:disabled { opacity: .55; cursor: wait; }
.live-control-actions svg { width: 18px; }
.live-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.live-metrics article {
  min-height: 100px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #d8e4e9;
  border-radius: 8px;
}
.live-metrics article > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: #31566d;
  background: #edf5f8;
  border-radius: 8px;
}
.live-metrics article.active > span { color: #087e62; background: #dcfce7; }
.live-metrics article.submitted > span { color: #176bb0; background: #e0f2fe; }
.live-metrics article.percent > span { color: #a04b0d; background: #fff2d6; }
.live-metrics article.score > span { color: #7c3e96; background: #f3e8ff; }
.live-metrics article div { min-width: 0; display: grid; }
.live-metrics strong {
  color: #143047;
  font-size: 25px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.live-metrics small { margin-top: 4px; color: #64748b; }
.live-roster {
  margin-top: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8e4e9;
  border-radius: 8px;
}
.live-roster-head {
  padding: 22px 24px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.live-roster h2 { font-size: 23px; }
.live-roster-head p { font-size: 12px; }
.live-search {
  width: min(100%, 330px);
  min-height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f8fafc;
  border: 1px solid #cbdbe4;
  border-radius: 999px;
}
.live-search svg { width: 18px; color: #64748b; }
.live-search input {
  min-width: 0;
  flex: 1;
  font: inherit;
  border: 0;
  outline: 0;
  background: transparent;
}
.live-status-tabs {
  padding: 0 24px 18px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.live-status-tabs::-webkit-scrollbar { display: none; }
.live-status-tabs button {
  min-height: 42px;
  padding: 0 16px;
  flex: 0 0 auto;
  color: #526579;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #cfdae1;
  border-radius: 999px;
  cursor: pointer;
}
.live-status-tabs button.active { color: #fff; background: #0f766e; border-color: #0f766e; }
.live-status-tabs b {
  margin-left: 6px;
  padding: 2px 7px;
  color: inherit;
  background: rgba(100, 116, 139, .1);
  border-radius: 999px;
}
.live-student-list { border-top: 1px solid #e5edf1; }
.live-student {
  min-height: 82px;
  padding: 15px 24px;
  display: grid;
  grid-template-columns: 46px minmax(180px, 1fr) minmax(260px, 1.5fr) 72px 140px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e8eef1;
  transition: background .2s ease;
}
.live-student:last-child { border-bottom: 0; }
.live-student:hover { background: #f8fbfc; }
.live-student-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #38566a;
  font-size: 13px;
  font-weight: 700;
  background: #edf4f7;
  border-radius: 50%;
}
.live-student-name { min-width: 0; display: grid; gap: 3px; }
.live-student-name strong {
  overflow: hidden;
  color: #1b3348;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-student-name span, .live-student-progress small { color: #718096; font-size: 11px; }
.live-student-progress { display: grid; gap: 6px; }
.live-student-progress > div {
  height: 7px;
  overflow: hidden;
  background: #e9f0f3;
  border-radius: 999px;
}
.live-student-progress > div span {
  display: block;
  height: 100%;
  background: #20a580;
  border-radius: inherit;
  transition: width .35s ease;
}
.live-student.waiting .live-student-progress > div span { background: #94a3b8; }
.live-student.disconnected .live-student-progress > div span { background: #f59e0b; }
.live-score { color: #156ea9; font-size: 18px; text-align: center; }
.live-status {
  min-height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #536779;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  border-radius: 999px;
}
.live-status.active { color: #08765d; background: #dcfce7; }
.live-status.disconnected { color: #9a4c09; background: #fff2d6; }
.live-status.submitted { color: #1267a3; background: #e0f2fe; }
.live-status svg { width: 15px; }
.live-student-list .teacher-empty {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
}
.live-student-list .teacher-empty svg { width: 34px; height: 34px; color: #94a3b8; }
.live-finish-summary {
  margin-top: 18px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 1px solid #d8e4e9;
  border-left: 5px solid #f59e0b;
  border-radius: 8px;
}
.live-finish-summary > div:last-child { display: flex; gap: 10px; }
.live-finish-summary a {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: #0f766e;
  border-radius: 999px;
}
.live-finish-summary a:last-child { color: #254256; background: #eef4f6; }
.exam-locked-result > svg {
  width: 58px;
  height: 58px;
  margin: 12px auto;
  color: #e7583d;
}
@keyframes live-spin { to { transform: rotate(360deg); } }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .28); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@media (max-width: 1050px) {
  .live-metrics { grid-template-columns: repeat(3, 1fr); }
  .live-control-bar { grid-template-columns: 1fr auto; }
  .live-control-actions { grid-column: 1 / -1; }
  .live-student { grid-template-columns: 46px minmax(160px, 1fr) minmax(220px, 1.3fr) 120px; }
  .live-score { display: none; }
}
@media (max-width: 720px) {
  .live-main { width: 100%; padding: 12px 12px 34px; }
  .live-heading { padding: 18px; align-items: stretch; flex-direction: column; gap: 18px; }
  .live-heading-copy { grid-template-columns: 46px 1fr; column-gap: 12px; }
  .live-heading-icon { width: 46px; height: 46px; }
  .live-heading h1 { font-size: 23px; }
  .live-heading p { font-size: 12px; }
  .live-set-select { min-width: 0; }
  .live-access-status { padding: 17px; align-items: flex-start; flex-wrap: wrap; }
  .live-access-status a { width: 100%; margin-left: 0; justify-content: center; }
  .live-control-bar { padding: 18px; grid-template-columns: 1fr; gap: 16px; }
  .live-exam-identity strong { white-space: normal; }
  .live-countdown {
    padding: 12px;
    justify-items: start;
    background: rgba(255, 255, 255, .08);
    border-radius: 8px;
  }
  .live-control-actions { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .live-control-actions button { min-height: 50px; padding: 0 12px; }
  .live-metrics { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .live-metrics article { min-height: 90px; padding: 14px; gap: 10px; }
  .live-metrics article:last-child { grid-column: 1 / -1; }
  .live-metrics article > span { width: 38px; height: 38px; flex-basis: 38px; }
  .live-metrics strong { font-size: 21px; }
  .live-roster-head { padding: 18px; align-items: stretch; flex-direction: column; }
  .live-search { width: 100%; }
  .live-status-tabs { padding: 0 18px 16px; margin-right: -1px; }
  .live-status-tabs button { min-height: 44px; }
  .live-student { padding: 15px 16px; grid-template-columns: 40px 1fr auto; gap: 11px; }
  .live-student-number { width: 38px; height: 38px; }
  .live-student-progress { grid-column: 2 / -1; }
  .live-status { padding: 0 9px; }
  .live-finish-summary { padding: 20px; align-items: stretch; flex-direction: column; }
  .live-finish-summary > div:last-child { display: grid; }
  .live-finish-summary a { min-height: 50px; }
}
@media (max-width: 390px) {
  .live-main { padding-inline: 9px; }
  .live-heading { padding: 16px; }
  .live-heading h1 { font-size: 21px; }
  .live-control-actions { grid-template-columns: 1fr; }
  .live-metrics article { padding: 12px; }
  .live-metrics small { font-size: 10px; }
  .live-student { grid-template-columns: 36px minmax(0, 1fr); }
  .live-status { grid-column: 2; justify-self: start; }
  .live-student-progress { grid-column: 1 / -1; }
}

/* Per-session exam report */
.exam-report-app {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(14, 116, 144, .08), transparent 34%),
    linear-gradient(315deg, rgba(245, 158, 11, .08), transparent 38%),
    #edf4f7;
}
.exam-report-main {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 52px;
}
.exam-report-toolbar {
  min-height: 76px;
  padding: 13px 15px 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 1px solid #dbe7ec;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(35, 67, 83, .08);
}
.exam-report-toolbar label {
  min-width: min(560px, 60%);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #486071;
  font-weight: 700;
}
.exam-report-toolbar select {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  padding: 0 44px 0 18px;
  color: #17364a;
  font: inherit;
  font-weight: 700;
  background: #f5f9fb;
  border: 1px solid #cbdde5;
  border-radius: 999px;
}
.exam-report-toolbar > div {
  display: flex;
  gap: 9px;
}
.exam-report-toolbar a,
.exam-report-toolbar button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  background: #0f766e;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.exam-report-toolbar button { background: #156b9c; }
.exam-report-toolbar svg { width: 19px; height: 19px; }
.exam-report-status {
  min-height: 130px;
  margin-top: 18px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: #275069;
  text-align: left;
  background: #fff;
  border: 1px solid #dbe7ec;
  border-radius: 8px;
}
.exam-report-status[hidden],
.exam-report-sheet[hidden] { display: none; }
.exam-report-status > svg {
  width: 34px;
  height: 34px;
  color: #1687c8;
  animation: live-spin .9s linear infinite;
}
.exam-report-status div { display: grid; gap: 4px; }
.exam-report-status strong { font-size: 18px; color: #17364a; }
.exam-report-status span { font-size: 13px; }
.exam-report-status.error { color: #9b3c2c; background: #fff7f4; border-color: #f0c4b9; }
.exam-report-status.error > svg { color: #e7583d; animation: none; }
.exam-report-sheet {
  margin-top: 18px;
  padding: 38px;
  color: #1b3546;
  background: #fff;
  border: 1px solid #dce7eb;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(35, 67, 83, .09);
}
.exam-report-title {
  padding-bottom: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid #dce8ed;
}
.exam-report-title h1 {
  margin: 5px 0 7px;
  color: #163b55;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.25;
}
.exam-report-title p { margin: 0; color: #617686; font-size: 13px; }
.exam-report-stamp {
  min-width: 245px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f766e;
  background: #eefaf7;
  border: 1px solid #bde5dc;
  border-radius: 8px;
}
.exam-report-stamp svg { width: 28px; height: 28px; flex: 0 0 auto; }
.exam-report-stamp span { display: grid; gap: 2px; font-weight: 700; }
.exam-report-stamp small { color: #627b7b; font-size: 10px; font-weight: 500; }
.exam-report-metrics {
  margin: 25px 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.exam-report-metrics > article {
  min-height: 116px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #f7fafb;
  border: 1px solid #dce7eb;
  border-top: 4px solid #8aa1af;
  border-radius: 8px;
}
.exam-report-metrics > article.blue { border-top-color: #1687c8; background: #f2f9fd; }
.exam-report-metrics > article.orange { border-top-color: #e78a1d; background: #fff9f0; }
.exam-report-metrics > article.violet { border-top-color: #7c5ac7; background: #f8f5ff; }
.exam-report-metrics > article.green { border-top-color: #20a580; background: #f1fbf7; }
.exam-report-metrics > article.yellow { border-top-color: #e8b02d; background: #fffbed; }
.exam-report-metrics article > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #708a9b;
  border-radius: 8px;
}
.exam-report-metrics .blue > span { background: #1687c8; }
.exam-report-metrics .orange > span { background: #e78a1d; }
.exam-report-metrics .violet > span { background: #7c5ac7; }
.exam-report-metrics .green > span { background: #20a580; }
.exam-report-metrics .yellow > span { background: #e8b02d; color: #563e05; }
.exam-report-metrics svg { width: 18px; height: 18px; }
.exam-report-metrics article > div { min-width: 0; display: grid; gap: 2px; }
.exam-report-metrics strong { color: #163b55; font-size: 20px; line-height: 1.2; white-space: nowrap; }
.exam-report-metrics b { font-size: 12px; }
.exam-report-metrics small { color: #718491; font-size: 9px; line-height: 1.45; }
.exam-report-overview {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 14px;
}
.exam-report-overview > article,
.exam-report-section {
  padding: 23px;
  background: #fbfdfe;
  border: 1px solid #dce7eb;
  border-radius: 8px;
}
.exam-report-section { margin-top: 14px; }
.exam-report-section-head {
  margin-bottom: 19px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.exam-report-section-head > div { display: grid; gap: 2px; }
.exam-report-section-head span,
.exam-kicker {
  color: #1687c8;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.exam-report-section-head h2 { margin: 0; color: #193c52; font-size: 20px; }
.exam-report-section-head p { margin: 2px 0 0; color: #72838e; font-size: 11px; }
.exam-report-section-head > svg {
  width: 26px;
  height: 26px;
  color: #1687c8;
}
.exam-attendance-chart {
  min-height: 210px;
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 26px;
}
.exam-donut {
  position: relative;
  width: 156px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.exam-donut::before {
  content: "";
  width: 100px;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 50%;
}
.exam-donut > span {
  position: absolute;
  display: grid;
  text-align: center;
}
.exam-donut strong { color: #163b55; font-size: 25px; }
.exam-donut small { color: #72838e; font-size: 10px; }
.exam-chart-legend { display: grid; gap: 11px; }
.exam-chart-legend > div {
  padding-bottom: 8px;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #e8eff2;
}
.exam-chart-legend i { width: 9px; height: 9px; border-radius: 50%; }
.exam-chart-legend span { font-size: 12px; }
.exam-chart-legend strong { font-size: 14px; }
.exam-score-chart { min-height: 210px; display: grid; align-content: end; }
.exam-score-bars {
  height: 178px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 14px;
  border-bottom: 1px solid #aebfc9;
}
.exam-score-bars > div {
  height: 100%;
  display: grid;
  grid-template-rows: 22px 1fr 26px;
  align-items: end;
  text-align: center;
}
.exam-score-bars strong { color: #385364; font-size: 11px; }
.exam-score-bars span {
  width: min(62px, 75%);
  min-height: 2px;
  margin: 0 auto;
  display: block;
  background: linear-gradient(#1687c8, #50b7d2);
  border-radius: 6px 6px 0 0;
}
.exam-score-bars small { padding-top: 7px; color: #617686; font-size: 9px; }
.exam-score-chart > p { margin: 10px 0 0; color: #82929c; font-size: 9px; text-align: center; }
.exam-domain-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.exam-domain-results article {
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px;
  background: #fff;
  border: 1px solid #dce7eb;
  border-radius: 8px;
}
.exam-domain-results article > div:first-child { display: grid; gap: 3px; }
.exam-domain-results strong { font-size: 13px; }
.exam-domain-results span { color: #778a96; font-size: 9px; }
.exam-domain-results article > b { color: #1687c8; font-size: 18px; }
.exam-domain-track {
  height: 7px;
  grid-column: 1 / -1;
  overflow: hidden;
  background: #e9f0f3;
  border-radius: 999px;
}
.exam-domain-track span { height: 100%; display: block; background: #1687c8; border-radius: inherit; }
.exam-domain-results .strong .exam-domain-track span { background: #20a580; }
.exam-domain-results .medium .exam-domain-track span { background: #e8b02d; }
.exam-domain-results .weak .exam-domain-track span { background: #e7583d; }
.exam-report-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dce7eb;
  border-radius: 8px;
}
.exam-report-table {
  width: 100%;
  min-width: 790px;
  border-collapse: collapse;
  background: #fff;
  font-size: 11px;
}
.exam-report-table th {
  padding: 12px 13px;
  color: #476174;
  text-align: left;
  white-space: nowrap;
  background: #eef5f8;
  border-bottom: 1px solid #d5e3e9;
}
.exam-report-table td {
  padding: 12px 13px;
  vertical-align: middle;
  border-bottom: 1px solid #e7eef1;
}
.exam-report-table tr:last-child td { border-bottom: 0; }
.exam-report-table td strong,
.exam-report-table td small { display: block; }
.exam-report-table td small {
  max-width: 420px;
  margin-top: 3px;
  color: #738691;
  font-size: 9px;
  line-height: 1.45;
}
.exam-roster-status {
  min-height: 27px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  color: #607684;
  font-size: 9px;
  font-weight: 700;
  background: #edf2f4;
  border-radius: 999px;
}
.exam-roster-status.active { color: #087357; background: #dcf7ed; }
.exam-roster-status.disconnected { color: #9b5b06; background: #fff0cf; }
.exam-roster-status.submitted { color: #146794; background: #e2f3fb; }
.exam-pass { color: #087357; }
.exam-fail { color: #c54732; }
.item-table tr.critical td:first-child { border-left: 4px solid #e7583d; }
.item-table tr.review td:first-child { border-left: 4px solid #e8b02d; }
.item-table tr.good td:first-child { border-left: 4px solid #20a580; }
.exam-report-footer {
  margin-top: 20px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #718491;
  font-size: 9px;
  border-top: 1px solid #dce7eb;
}
@media (max-width: 1080px) {
  .exam-report-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .exam-domain-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .exam-report-main { width: 100%; padding: 12px 10px 34px; }
  .exam-report-toolbar { padding: 16px; align-items: stretch; flex-direction: column; }
  .exam-report-toolbar label { min-width: 0; align-items: stretch; flex-direction: column; gap: 7px; }
  .exam-report-toolbar > div { display: grid; grid-template-columns: 1fr 1fr; }
  .exam-report-toolbar a,
  .exam-report-toolbar button { min-height: 52px; padding: 0 12px; }
  .exam-report-sheet { padding: 20px 14px; }
  .exam-report-title { align-items: stretch; flex-direction: column; }
  .exam-report-title h1 { font-size: 25px; }
  .exam-report-stamp { min-width: 0; }
  .exam-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .exam-report-metrics > article { min-height: 108px; padding: 12px; }
  .exam-report-metrics strong { font-size: 19px; }
  .exam-report-overview { grid-template-columns: 1fr; }
  .exam-report-overview > article,
  .exam-report-section { padding: 17px 13px; }
  .exam-attendance-chart { grid-template-columns: 130px 1fr; gap: 16px; }
  .exam-donut { width: 126px; }
  .exam-donut::before { width: 80px; }
  .exam-domain-results { grid-template-columns: 1fr; }
  .exam-report-footer { flex-direction: column; }
}
@media (max-width: 390px) {
  .exam-report-main { padding-inline: 7px; }
  .exam-report-toolbar { padding: 13px; }
  .exam-report-toolbar > div { grid-template-columns: 1fr; }
  .exam-report-sheet { padding-inline: 10px; }
  .exam-report-metrics > article { align-items: center; flex-direction: column; }
  .exam-attendance-chart { grid-template-columns: 1fr; justify-items: center; }
  .exam-chart-legend { width: 100%; }
}
@media print {
  @page { size: A4 landscape; margin: 9mm; }
  body { color: #111; background: #fff !important; }
  .exam-report-app { min-height: auto; background: #fff !important; }
  .exam-report-nav,
  .exam-report-toolbar,
  .exam-report-status { display: none !important; }
  .exam-report-main { width: 100%; margin: 0; padding: 0; }
  .exam-report-sheet {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .exam-report-title { padding-bottom: 12px; }
  .exam-report-title h1 { font-size: 22px; }
  .exam-report-stamp { padding: 8px 10px; }
  .exam-report-metrics { margin: 12px 0; gap: 5px; }
  .exam-report-metrics > article { min-height: 62px; padding: 7px; border-top-width: 2px; }
  .exam-report-metrics article > span { width: 25px; height: 25px; flex-basis: 25px; }
  .exam-report-metrics strong { font-size: 14px; }
  .exam-report-metrics b { font-size: 8px; }
  .exam-report-metrics small { font-size: 6px; }
  .exam-report-overview > article,
  .exam-report-section { padding: 10px; }
  .exam-report-section { margin-top: 7px; break-inside: avoid; }
  .exam-report-section-head { margin-bottom: 8px; }
  .exam-report-section-head h2 { font-size: 13px; }
  .exam-attendance-chart { min-height: 115px; grid-template-columns: 90px 1fr; }
  .exam-donut { width: 85px; }
  .exam-donut::before { width: 55px; }
  .exam-donut strong { font-size: 14px; }
  .exam-score-chart { min-height: 115px; }
  .exam-score-bars { height: 100px; }
  .exam-domain-results { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .exam-domain-results article { padding: 7px; }
  .exam-report-table-wrap { overflow: visible; }
  .exam-report-table { min-width: 0; font-size: 7px; }
  .exam-report-table th,
  .exam-report-table td { padding: 5px 6px; }
  .exam-report-table td small { font-size: 6px; }
  .exam-roster-status { min-height: 18px; padding: 0 6px; font-size: 6px; }
  .exam-roster-section { break-after: page; }
  .exam-report-footer { margin-top: 8px; padding-top: 6px; }
}

/* Individual learning portfolio */
.portfolio-app {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(14, 116, 144, .1), transparent 32%),
    linear-gradient(315deg, rgba(234, 179, 8, .09), transparent 34%),
    #edf4f6;
}
.portfolio-main {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 54px;
}
.portfolio-toolbar {
  min-height: 76px;
  padding: 13px 15px 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 1px solid #d9e6ea;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(31, 66, 82, .08);
}
.portfolio-toolbar label {
  min-width: min(600px, 62%);
  display: flex;
  align-items: center;
  gap: 14px;
  color: #456170;
  font-weight: 700;
}
.portfolio-toolbar select {
  min-width: 0;
  min-height: 49px;
  padding: 0 44px 0 18px;
  flex: 1;
  color: #173a4d;
  font: inherit;
  font-weight: 700;
  background: #f4f9fa;
  border: 1px solid #c9dce3;
  border-radius: 999px;
}
.portfolio-toolbar > div { display: flex; gap: 9px; }
.portfolio-toolbar a,
.portfolio-toolbar button {
  min-height: 49px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  background: #0f766e;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.portfolio-toolbar button { background: #156b9c; }
.portfolio-toolbar svg { width: 19px; height: 19px; }
.portfolio-status {
  min-height: 140px;
  margin-top: 18px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: #526d7d;
  background: #fff;
  border: 1px solid #d9e6ea;
  border-radius: 8px;
}
.portfolio-status[hidden],
.portfolio-sheet[hidden] { display: none; }
.portfolio-status > svg {
  width: 34px;
  height: 34px;
  color: #1687c8;
  animation: live-spin .9s linear infinite;
}
.portfolio-status div { display: grid; gap: 4px; }
.portfolio-status strong { color: #173a4d; font-size: 18px; }
.portfolio-status span { font-size: 12px; }
.portfolio-status.error { color: #9b3c2c; background: #fff7f4; border-color: #efc4b9; }
.portfolio-status.error > svg { color: #e7583d; animation: none; }
.portfolio-sheet {
  margin-top: 18px;
  padding: 36px;
  color: #19384a;
  background: #fff;
  border: 1px solid #d9e6ea;
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(31, 66, 82, .09);
}
.portfolio-identity {
  padding-bottom: 26px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 2px solid #dce8ec;
}
.portfolio-avatar {
  width: 72px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(145deg, #1687c8, #0f766e);
  border: 5px solid #e5f5f6;
  border-radius: 50%;
}
.portfolio-identity h1 {
  margin: 4px 0 5px;
  color: #163b55;
  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.25;
}
.portfolio-identity p { margin: 0; color: #687e8c; font-size: 12px; }
.portfolio-level {
  min-width: 220px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #0d6b61;
  background: #ecfaf6;
  border: 1px solid #bce5da;
  border-radius: 8px;
}
.portfolio-level.support { color: #9e442d; background: #fff3ee; border-color: #efc3b7; }
.portfolio-level.progressing { color: #8b6410; background: #fff9e8; border-color: #eed89a; }
.portfolio-level.unmeasured { color: #5c7180; background: #f2f6f8; border-color: #d3e0e5; }
.portfolio-level svg { width: 27px; height: 27px; flex: 0 0 auto; }
.portfolio-level span { display: grid; gap: 2px; color: inherit; font-size: 9px; }
.portfolio-level strong { font-size: 14px; }
.portfolio-metrics {
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.portfolio-metrics > article {
  min-height: 110px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fbfc;
  border: 1px solid #dce7eb;
  border-top: 4px solid #7894a4;
  border-radius: 8px;
}
.portfolio-metrics > article.blue { border-top-color: #1687c8; background: #f2f9fd; }
.portfolio-metrics > article.green { border-top-color: #20a580; background: #f1fbf7; }
.portfolio-metrics > article.violet { border-top-color: #7c5ac7; background: #f8f5ff; }
.portfolio-metrics > article.orange { border-top-color: #e78a1d; background: #fff9f0; }
.portfolio-metrics > article.teal { border-top-color: #0f766e; background: #f0faf9; }
.portfolio-metrics > article.yellow { border-top-color: #e8b02d; background: #fffbed; }
.portfolio-metrics article > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #708a9b;
  border-radius: 8px;
}
.portfolio-metrics .blue > span { background: #1687c8; }
.portfolio-metrics .green > span { background: #20a580; }
.portfolio-metrics .violet > span { background: #7c5ac7; }
.portfolio-metrics .orange > span { background: #e78a1d; }
.portfolio-metrics .teal > span { background: #0f766e; }
.portfolio-metrics .yellow > span { color: #594209; background: #e8b02d; }
.portfolio-metrics svg { width: 18px; height: 18px; }
.portfolio-metrics article > div { min-width: 0; display: grid; gap: 2px; }
.portfolio-metrics strong { color: #163b55; font-size: 20px; white-space: nowrap; }
.portfolio-metrics b { font-size: 11px; }
.portfolio-metrics small { color: #728591; font-size: 8px; line-height: 1.4; }
.portfolio-band {
  margin-top: 14px;
  padding: 23px;
  background: #fbfdfe;
  border: 1px solid #dce7eb;
  border-radius: 8px;
}
.portfolio-section-head {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.portfolio-section-head > div { display: grid; gap: 2px; }
.portfolio-section-head span { color: #1687c8; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.portfolio-section-head h2 { margin: 0; color: #193c52; font-size: 20px; }
.portfolio-section-head > svg { width: 26px; height: 26px; color: #1687c8; }
.portfolio-growth-layout {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 14px;
}
.portfolio-score-journey {
  min-height: 230px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  background: #f1f8fb;
  border-radius: 8px;
}
.portfolio-score-node {
  min-width: 0;
  padding: 20px 12px;
  display: grid;
  justify-items: center;
  gap: 3px;
  background: #fff;
  border: 1px solid #cfe0e7;
  border-radius: 8px;
}
.portfolio-score-node.post { border-color: #afe0d4; background: #f3fcf9; }
.portfolio-score-node span { color: #607887; font-size: 11px; }
.portfolio-score-node strong { color: #1687c8; font-size: 31px; }
.portfolio-score-node.post strong { color: #0f8d71; }
.portfolio-score-node small { color: #8b9aa3; font-size: 8px; }
.portfolio-growth-arrow {
  min-width: 92px;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #0f8d71;
}
.portfolio-growth-arrow.negative { color: #d6553d; }
.portfolio-growth-arrow svg { width: 35px; height: 35px; }
.portfolio-growth-arrow strong { font-size: 10px; text-align: center; }
.portfolio-domain-chart { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.portfolio-domain-chart article {
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: #fff;
  border: 1px solid #dce7eb;
  border-radius: 8px;
}
.portfolio-domain-chart article > div:first-child { display: grid; gap: 3px; }
.portfolio-domain-chart strong { font-size: 12px; }
.portfolio-domain-chart span { color: #758996; font-size: 8px; }
.portfolio-domain-chart article > b { color: #1687c8; font-size: 17px; }
.portfolio-track {
  height: 7px;
  overflow: hidden;
  background: #e8eff2;
  border-radius: 999px;
}
.portfolio-track span { height: 100%; display: block; background: #1687c8; border-radius: inherit; }
.portfolio-domain-chart .portfolio-track { grid-column: 1 / -1; }
.portfolio-domain-chart .strong .portfolio-track span { background: #20a580; }
.portfolio-domain-chart .medium .portfolio-track span { background: #e8b02d; }
.portfolio-domain-chart .weak .portfolio-track span { background: #e7583d; }
.portfolio-practice-layout,
.portfolio-support-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 14px;
}
.portfolio-criteria,
.portfolio-stage-summary,
.portfolio-support-layout > div {
  padding: 18px;
  background: #fff;
  border: 1px solid #dce7eb;
  border-radius: 8px;
}
.portfolio-criteria h3,
.portfolio-support-layout h3 {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #24495f;
  font-size: 13px;
}
.portfolio-support-layout h3:not(:first-child) { margin-top: 20px; }
.portfolio-support-layout h3 svg { width: 17px; height: 17px; color: #1687c8; }
.portfolio-criterion { margin-top: 12px; display: grid; gap: 6px; }
.portfolio-criterion > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; }
.portfolio-stage-count {
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e4edef;
}
.portfolio-stage-count > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0f766e;
  border-radius: 8px;
}
.portfolio-stage-count > div { display: grid; }
.portfolio-stage-count strong { color: #173f55; font-size: 23px; }
.portfolio-stage-count small { color: #718793; font-size: 8px; }
.portfolio-stage-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.portfolio-stage-grid span {
  min-width: 0;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7d8e98;
  font-size: 8px;
  line-height: 1.3;
  background: #f3f6f7;
  border-radius: 6px;
}
.portfolio-stage-grid span.started { color: #9b6912; background: #fff7df; }
.portfolio-stage-grid span.done { color: #087357; background: #e7f8f2; }
.portfolio-stage-grid svg { width: 13px; height: 13px; flex: 0 0 auto; }
.portfolio-stage-summary > p { margin: 13px 0 0; color: #728591; font-size: 9px; }
.portfolio-stage-summary > p.complete { color: #087357; font-weight: 700; }
.portfolio-weak-list,
.portfolio-remediation-list { display: grid; gap: 8px; }
.portfolio-weak-list article {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff7f4;
  border-left: 4px solid #e7583d;
  border-radius: 6px;
}
.portfolio-weak-list article > div { display: grid; gap: 2px; }
.portfolio-weak-list strong { font-size: 11px; }
.portfolio-weak-list span { color: #8b756f; font-size: 8px; }
.portfolio-weak-list b { color: #d14f37; font-size: 16px; }
.portfolio-recommendations { display: flex; flex-wrap: wrap; gap: 7px; }
.portfolio-recommendations a,
.portfolio-recommendations > span {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f766e;
  font-size: 8px;
  font-weight: 700;
  text-decoration: none;
  background: #eaf9f5;
  border-radius: 999px;
}
.portfolio-recommendations svg { width: 13px; height: 13px; }
.portfolio-positive {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #087357;
}
.portfolio-positive > svg { width: 36px; height: 36px; }
.portfolio-positive div { display: grid; gap: 4px; }
.portfolio-positive span { color: #6f848d; font-size: 9px; }
.portfolio-remediation-list article {
  padding: 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  background: #f7fafb;
  border: 1px solid #e1eaed;
  border-radius: 7px;
}
.portfolio-remediation-list article > div:first-child { display: grid; gap: 2px; }
.portfolio-remediation-list strong { font-size: 10px; }
.portfolio-remediation-list span,
.portfolio-remediation-list small { color: #728591; font-size: 8px; }
.portfolio-remediation-list article > b { color: #0f766e; font-size: 15px; }
.portfolio-remediation-list .portfolio-track,
.portfolio-remediation-list small { grid-column: 1 / -1; }
.portfolio-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.portfolio-timeline article {
  min-width: 0;
  padding: 13px;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 10px;
  background: #fff;
  border: 1px solid #dce7eb;
  border-radius: 8px;
}
.portfolio-timeline article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #1687c8;
  background: #e9f5fa;
  border-radius: 50%;
}
.portfolio-timeline svg { width: 16px; height: 16px; }
.portfolio-timeline article > div { min-width: 0; display: grid; gap: 3px; }
.portfolio-timeline strong { font-size: 10px; }
.portfolio-timeline p { margin: 0; color: #526d7d; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.portfolio-timeline small { color: #8999a2; font-size: 7px; }
.portfolio-notes { display: grid; gap: 8px; }
.portfolio-notes article {
  padding: 15px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  background: #fffdf5;
  border: 1px solid #eee1ac;
  border-radius: 8px;
}
.portfolio-notes article > span { color: #b78a19; }
.portfolio-notes svg { width: 22px; height: 22px; }
.portfolio-notes p { margin: 0 0 5px; color: #3e5665; font-size: 10px; line-height: 1.6; }
.portfolio-notes small { color: #867d61; font-size: 8px; }
.portfolio-empty {
  min-height: 140px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #748792;
  text-align: center;
}
.portfolio-empty.compact { min-height: 70px; }
.portfolio-empty svg { width: 28px; height: 28px; }
.portfolio-empty strong { color: #3f5d6e; font-size: 12px; }
.portfolio-empty span { font-size: 9px; }
.portfolio-footer {
  margin-top: 20px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #718591;
  font-size: 8px;
  border-top: 1px solid #dce7eb;
}
@media (max-width: 1080px) {
  .portfolio-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portfolio-growth-layout,
  .portfolio-practice-layout,
  .portfolio-support-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .portfolio-main { width: 100%; padding: 12px 9px 36px; }
  .portfolio-toolbar { padding: 15px; align-items: stretch; flex-direction: column; }
  .portfolio-toolbar label { min-width: 0; align-items: stretch; flex-direction: column; gap: 7px; }
  .portfolio-toolbar > div { display: grid; grid-template-columns: 1fr 1fr; }
  .portfolio-toolbar a,
  .portfolio-toolbar button { min-height: 52px; padding: 0 11px; }
  .portfolio-sheet { padding: 19px 13px; }
  .portfolio-identity { grid-template-columns: 58px 1fr; align-items: center; }
  .portfolio-avatar { width: 56px; font-size: 17px; }
  .portfolio-identity h1 { font-size: 23px; }
  .portfolio-level { min-width: 0; grid-column: 1 / -1; }
  .portfolio-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .portfolio-metrics > article { min-height: 105px; padding: 11px; }
  .portfolio-band { padding: 17px 12px; }
  .portfolio-score-journey { min-height: 190px; padding: 14px 9px; gap: 7px; }
  .portfolio-score-node { padding: 16px 7px; }
  .portfolio-score-node strong { font-size: 24px; }
  .portfolio-growth-arrow { min-width: 60px; }
  .portfolio-growth-arrow svg { width: 28px; height: 28px; }
  .portfolio-domain-chart { grid-template-columns: 1fr; }
  .portfolio-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-timeline { grid-template-columns: 1fr; }
  .portfolio-footer { flex-direction: column; }
}
@media (max-width: 390px) {
  .portfolio-main { padding-inline: 6px; }
  .portfolio-toolbar > div { grid-template-columns: 1fr; }
  .portfolio-sheet { padding-inline: 9px; }
  .portfolio-metrics > article { flex-direction: column; }
  .portfolio-score-journey { grid-template-columns: 1fr; }
  .portfolio-growth-arrow { transform: rotate(90deg); }
  .portfolio-growth-arrow strong { transform: rotate(-90deg); }
}
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  .portfolio-nav,
  .portfolio-toolbar,
  .portfolio-status { display: none !important; }
  .portfolio-app { min-height: auto; background: #fff !important; }
  .portfolio-main { width: 100%; margin: 0; padding: 0; }
  .portfolio-sheet { margin: 0; padding: 0; border: 0; box-shadow: none; }
  .portfolio-identity { padding-bottom: 10px; grid-template-columns: 52px 1fr auto; }
  .portfolio-avatar { width: 50px; border-width: 3px; }
  .portfolio-identity h1 { font-size: 20px; }
  .portfolio-level { min-width: 170px; padding: 8px 10px; }
  .portfolio-metrics { margin: 10px 0; gap: 4px; }
  .portfolio-metrics > article { min-height: 57px; padding: 6px; border-top-width: 2px; }
  .portfolio-metrics article > span { width: 24px; height: 24px; flex-basis: 24px; }
  .portfolio-metrics strong { font-size: 13px; }
  .portfolio-metrics b { font-size: 7px; }
  .portfolio-metrics small { font-size: 6px; }
  .portfolio-band { margin-top: 7px; padding: 10px; break-inside: avoid; }
  .portfolio-section-head { margin-bottom: 8px; }
  .portfolio-section-head h2 { font-size: 13px; }
  .portfolio-growth-layout,
  .portfolio-practice-layout,
  .portfolio-support-layout { grid-template-columns: 1fr 1fr; gap: 7px; }
  .portfolio-score-journey { min-height: 135px; padding: 9px; }
  .portfolio-score-node { padding: 9px 5px; }
  .portfolio-score-node strong { font-size: 18px; }
  .portfolio-domain-chart { gap: 4px; }
  .portfolio-domain-chart article,
  .portfolio-criteria,
  .portfolio-stage-summary,
  .portfolio-support-layout > div { padding: 8px; }
  .portfolio-stage-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .portfolio-stage-grid span { padding: 4px; font-size: 5.5px; }
  .portfolio-timeline { grid-template-columns: 1fr 1fr; gap: 4px; }
  .portfolio-timeline article { padding: 6px; grid-template-columns: 25px 1fr; }
  .portfolio-timeline article > span { width: 24px; height: 24px; }
  .portfolio-timeline p { font-size: 6px; }
  .portfolio-timeline small { font-size: 5px; }
  .portfolio-notes article { padding: 7px; }
  .portfolio-notes p { font-size: 7px; }
  .portfolio-notes-section { break-before: page; }
}

/* Stable teacher command header. Keep the copy readable even with all tools visible. */
.teacher-heading {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
}
.teacher-heading > div:first-child {
  width: min(100%, 760px);
  min-width: 0;
}
.teacher-heading-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 9px;
}
.teacher-heading-actions > a,
.teacher-heading-actions > button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  border-radius: 999px;
  white-space: normal;
  text-align: center;
}

/* Empty live-exam state also acts as a short, actionable guide. */
.live-access-status.live-empty-hub {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-color: #bfe3df;
  background:
    linear-gradient(135deg, rgba(236,253,245,.94), rgba(240,249,255,.94)),
    #fff;
  box-shadow: 0 14px 34px rgba(15, 118, 110, .08);
}
.live-empty-intro {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.live-empty-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #0f766e;
  box-shadow: 0 10px 22px rgba(15,118,110,.2);
}
.live-empty-mark svg { width: 27px; height: 27px; }
.live-empty-intro > div { display: block; min-width: 0; }
.live-empty-intro strong { display: block; margin-top: 3px; font-size: 20px; }
.live-empty-intro p { max-width: 720px; margin: 5px 0 0; color: #567083; font-size: 12px; line-height: 1.65; }
.live-empty-intro > a {
  margin-left: 0;
  gap: 8px;
  justify-content: center;
  white-space: nowrap;
}
.live-empty-intro > a svg { width: 18px; }
.live-empty-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.live-empty-flow article {
  position: relative;
  min-height: 132px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  padding: 17px;
  border: 1px solid #cfe5e8;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
}
.live-empty-flow article > span {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0f766e;
  background: #d1fae5;
  font-size: 11px;
  font-weight: 700;
}
.live-empty-flow article > svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 10px;
  color: #087ca7;
  background: #e0f2fe;
}
.live-empty-flow article:nth-child(2) > svg { color: #c2410c; background: #ffedd5; }
.live-empty-flow article:nth-child(3) > svg { color: #0f766e; background: #d1fae5; }
.live-empty-flow article div { display: block; padding-right: 20px; }
.live-empty-flow article strong { display: block; font-size: 14px; }
.live-empty-flow article p { margin: 5px 0 0; color: #64748b; font-size: 11px; line-height: 1.55; }
.live-empty-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}
.live-empty-capabilities span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid #cbdfe5;
  border-radius: 999px;
  color: #35536a;
  background: rgba(255,255,255,.8);
  font-size: 10px;
  font-weight: 700;
}
.live-empty-capabilities svg { width: 15px; color: #0f766e; }

@media (max-width: 960px) {
  .teacher-heading-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacher-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacher-filters button { grid-column: 1 / -1; }
  .guest-dashboard-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .guest-dashboard-hero > a { grid-column: 1 / -1; }
  .guest-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live-empty-intro { grid-template-columns: 52px minmax(0, 1fr); }
  .live-empty-intro > a { grid-column: 1 / -1; width: 100%; min-height: 48px; }
  .live-empty-flow { grid-template-columns: 1fr; }
  .live-empty-flow article { min-height: 0; }
}
@media (max-width: 620px) {
  .teacher-heading-actions { grid-template-columns: 1fr 1fr; }
  .teacher-heading-actions > a,
  .teacher-heading-actions > button { min-height: 50px; }
  .teacher-filters { grid-template-columns: 1fr; }
  .teacher-filters button { grid-column: 1; }
  .guest-dashboard-hero { grid-template-columns: 1fr; padding: 15px; }
  .guest-dashboard-state,
  .guest-dashboard-hero > a { width: 100%; }
  .guest-dashboard-hero > a { grid-column: 1; }
  .guest-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-progress-summary { grid-template-columns: 1fr; }
  .guest-progress-summary > div:first-child { grid-row: auto; }
  .guest-dashboard-empty { grid-template-columns: 1fr; padding: 22px; text-align: center; }
  .guest-dashboard-empty > span { margin-inline: auto; }
  .guest-dashboard-empty > a { justify-content: center; }
  .live-access-status.live-empty-hub { padding: 16px; }
  .live-empty-intro { grid-template-columns: 44px minmax(0, 1fr); gap: 11px; }
  .live-empty-mark { width: 44px; height: 44px; border-radius: 11px; }
  .live-empty-intro strong { font-size: 17px; }
  .live-empty-capabilities { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 390px) {
  .teacher-heading-actions { grid-template-columns: 1fr; }
  .live-empty-capabilities { grid-template-columns: 1fr; }
}

/* Portfolio controls: keep Thai labels readable and actions unambiguous. */
@media screen {
  .portfolio-toolbar {
    display: grid;
    grid-template-columns: minmax(320px, 1.25fr) minmax(520px, 1fr);
    align-items: end;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid #cfe2e8;
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 28px rgba(31, 73, 95, .07);
  }
  .portfolio-toolbar label {
    min-width: 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    color: #35536a;
    font-size: 14px;
    font-weight: 700;
  }
  .portfolio-toolbar select {
    width: 100%;
    min-height: 50px;
    padding: 0 42px 0 16px;
    border: 1px solid #bfd7df;
    border-radius: 10px;
    color: #123a53;
    background-color: #f8fcfd;
    font: 600 14px/1.4 "Mali", sans-serif;
  }
  .portfolio-toolbar > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }
  .portfolio-toolbar a,
  .portfolio-toolbar button {
    min-width: 0;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid #b9d9d7;
    border-radius: 10px;
    color: #0f645f;
    background: #f0fdfa;
    font: 700 12px/1.35 "Mali", sans-serif;
    text-align: center;
    white-space: normal;
  }
  .portfolio-toolbar a:nth-child(2) {
    color: #075985;
    border-color: #bae6fd;
    background: #f0f9ff;
  }
  .portfolio-toolbar a:nth-child(3) {
    color: #166534;
    border-color: #bbf7d0;
    background: #f0fdf4;
  }
  .portfolio-toolbar button {
    color: #9a3412;
    border-color: #fed7aa;
    background: #fff7ed;
  }
  .portfolio-toolbar svg { width: 18px; height: 18px; flex: 0 0 auto; }
  .portfolio-identity h1 {
    margin: 3px 0 5px;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.25;
  }
  .portfolio-metrics b { font-size: 16px; line-height: 1.3; }
  .portfolio-metrics small { font-size: 10px; line-height: 1.45; }
  .portfolio-section-head h2 { font-size: 22px; line-height: 1.35; }
  .portfolio-section-head span { font-size: 10px; }
  .portfolio-domain-chart strong,
  .portfolio-criteria strong,
  .portfolio-stage-summary strong { font-size: 13px; }
  .portfolio-domain-chart span,
  .portfolio-criteria span,
  .portfolio-stage-summary span { font-size: 10px; line-height: 1.5; }
}

@media screen and (max-width: 980px) {
  .portfolio-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .portfolio-toolbar > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 560px) {
  .portfolio-toolbar { padding: 14px; gap: 12px; }
  .portfolio-toolbar label {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .portfolio-toolbar > div { grid-template-columns: 1fr 1fr; }
  .portfolio-toolbar a,
  .portfolio-toolbar button { min-height: 54px; font-size: 11px; }
  .portfolio-identity h1 { font-size: 25px; }
  .portfolio-section-head h2 { font-size: 19px; }
}
