@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&family=Rubik:wght@500;600;700&display=swap");

:root {
  --ink: #172342;
  --muted: #6f7890;
  --line: #e4e8f2;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --blue: #4d6ee7;
  --blue-dark: #3454cc;
  --blue-soft: #ebefff;
  --navy: #172a62;
  --mint: #2ac49b;
  --mint-soft: #e6f9f3;
  --violet: #8466e8;
  --violet-soft: #f0ecff;
  --coral: #fa826c;
  --coral-soft: #fff0ed;
  --yellow: #f6c85f;
  --shadow: 0 10px 34px rgba(32, 48, 89, 0.07);
  --shadow-lg: 0 22px 60px rgba(35, 52, 102, 0.12);
  --radius: 18px;
}

body.platform-booting::before,
body.platform-routing::before {
  align-items: center;
  background: radial-gradient(circle at 50% 38%, rgba(38, 189, 198, .16), transparent 22rem), #f5f8fb;
  color: #0b5964;
  content: "טוען את המקום הנכון…";
  display: flex;
  font-family: "Heebo", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 10000;
}

body.teacher-classroom-loading::before {
  content: "טוען את הכיתה…";
}

body.platform-booting .app-shell,
body.platform-routing .app-shell {
  visibility: hidden;
}

/* Course-first entry and course-scoped teaching */
.course-landing-mode .sidebar,
.course-landing-mode .mobile-bar,
.course-landing-mode .mobile-nav { display: none !important; }
.course-landing-mode .main-content { margin: 0; padding: 0; max-width: none; }
.course-landing-view { min-height: 100vh; background: #f5f8ff; padding-bottom: 4rem; }
.course-landing-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.course-landing-hero { position: relative; min-height: 620px; overflow: hidden; border-radius: 0 0 38px 38px; box-shadow: 0 25px 70px rgba(21, 43, 92, .2); background: #173b83; }
.course-landing-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-landing-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 28, 74, .14) 0%, rgba(8, 28, 74, .25) 42%, rgba(8, 28, 74, .94) 100%); }
.course-landing-copy { position: relative; z-index: 1; width: min(600px, 88%); padding: 3rem 4rem 4rem; color: #fff; margin-inline-start: auto; }
.course-landing-brand { display: inline-flex; color: #fff; text-decoration: none; font-weight: 900; font-size: 1.25rem; margin-bottom: 5rem; }
.course-landing-copy h1 { color: #fff; font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: 1.02; margin: 1rem 0; }
.course-landing-copy > p { font-size: 1.2rem; line-height: 1.75; color: rgba(255,255,255,.9); }
.course-landing-metrics { display: flex; gap: 1rem; margin: 1.7rem 0; flex-wrap: wrap; }
.course-landing-metrics span { display: grid; min-width: 95px; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.25); border-radius: 16px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.course-landing-metrics strong { font-size: 1.45rem; }
.course-landing-metrics small { color: rgba(255,255,255,.78); }
.course-landing-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.course-login-button { border: 1px solid rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.09); }
.course-landing-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.2rem; margin-top: 2rem; }
.course-outcome-list { display: grid; gap: .8rem; padding: 0; list-style: none; }
.course-outcome-list li { position: relative; padding: .8rem 2.6rem .8rem .8rem; background: #f1f7ff; border-radius: 14px; }
.course-outcome-list li::before { content: "✓"; position: absolute; right: .9rem; color: #16775d; font-weight: 900; }
.course-activity-list { display: grid; gap: .75rem; }
.course-activity-list span { display: flex; align-items: center; gap: .8rem; font-weight: 700; }
.course-activity-list i { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: #ffe3d7; color: #a63d25; font-style: normal; }
.course-pathway-preview, .course-unit-preview { margin-top: 1.2rem; }
#course-pathway-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.course-pathway-card { display: grid; gap: .5rem; text-align: right; border: 2px solid #e3e9f6; border-radius: 18px; padding: 1.2rem; background: #fff; color: #263652; cursor: pointer; }
.course-pathway-card:hover, .course-pathway-card.selected { border-color: #315bd6; box-shadow: 0 10px 30px rgba(49, 91, 214, .13); transform: translateY(-2px); }
.course-pathway-card span { font-size: 1.08rem; font-weight: 900; }
.course-pathway-card small { line-height: 1.55; color: #66748c; }
.course-pathway-card em { color: #315bd6; font-style: normal; font-weight: 800; }
#course-first-units { display: grid; gap: .65rem; }
#course-first-units article { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; gap: .9rem; padding: .85rem; border-radius: 14px; background: #f8faff; }
#course-first-units article > span { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: #dce8ff; color: #244ca9; font-weight: 900; }
#course-first-units p { margin: .25rem 0 0; color: #66748c; }

.teacher-course-toolbar { display: grid; grid-template-columns: minmax(280px, 1fr) auto auto; gap: 1rem; align-items: center; margin: 0 0 1.2rem; padding: 1rem; background: #fff; border: 1px solid #e4eaf5; border-radius: 20px; box-shadow: 0 12px 35px rgba(35, 52, 88, .07); }
.teacher-course-identity { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.teacher-course-identity img { width: 112px; height: 72px; object-fit: cover; border-radius: 14px; }
.teacher-course-identity span { display: grid; min-width: 0; }
.teacher-course-identity small, .teacher-course-identity em { color: #71809a; font-style: normal; }
.teacher-course-identity strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.05rem; }
.teacher-course-toolbar label { display: grid; gap: .3rem; font-size: .78rem; color: #66748c; }
.teacher-course-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.teacher-course-page .sidebar,
.teacher-course-page .mobile-bar,
.teacher-course-page .mobile-nav,
.teacher-management-page .sidebar,
.teacher-management-page .mobile-bar,
.teacher-management-page .mobile-nav { display: none !important; }
.teacher-course-page .main-content { margin-right: 0; padding-top: 0; }
.teacher-course-page #teacher-view { max-width: 1600px; padding: 24px clamp(18px, 3vw, 46px) 56px; }
.teacher-course-page #teacher-view > .page-header { display: none; }
.teacher-management-page .main-content { margin-right: 0; padding-top: 0; }
.teacher-management-page #teacher-view { max-width: 1180px; padding: 28px clamp(18px, 4vw, 54px) 64px; }

.teacher-course-structure #teacher-course-unit-list { display: grid; grid-template-columns: repeat(3, minmax(270px, 1fr)); gap: 8px; }
.teacher-unit-browser-item { position: relative; display: grid; grid-template-columns: 34px 22px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; min-height: 58px; padding: 8px 10px; border: 1px solid #e2e6ed; border-radius: 6px; background: #fff; transition: opacity .16s ease, border-color .16s ease, background .16s ease; }
.teacher-unit-browser-item:hover { border-color: #bdc8dd; background: #fafbfc; }
.teacher-unit-browser-item.unit-hidden { border-color: #e6e8ed; background: #f8f9fb; opacity: .7; }
.teacher-unit-browser-item.unit-hidden:hover { opacity: .82; }
.teacher-unit-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; background: #eef1f6; color: #485770; font-size: 11px; font-weight: 700; }
.teacher-unit-visibility-toggle { width: 20px; height: 20px; display: grid; place-items: center; margin: 0; padding: 0; border: 1px solid #7f8999; border-radius: 3px; appearance: none; -webkit-appearance: none; background: #fff; color: #354155; cursor: pointer; }
.teacher-unit-visibility-toggle::after { content: "✓"; font: 800 15px/1 Arial, sans-serif; }
.teacher-unit-visibility-toggle:checked::after { content: "×"; font-size: 17px; }
.teacher-unit-visibility-toggle:hover, .teacher-unit-visibility-toggle:focus-visible { border-color: #4159b5; outline: 2px solid rgba(65, 89, 181, .18); outline-offset: 2px; }
.teacher-unit-visibility-toggle:checked { border-color: #69758a; background: #eef0f4; }
.teacher-unit-visibility-toggle:disabled { cursor: wait; }
.teacher-unit-browser-item > div { min-width: 0; display: grid; gap: 2px; }
.teacher-unit-browser-item strong { overflow: hidden; color: #26334b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.teacher-unit-browser-item small { color: #788194; font-size: 9px; }
.teacher-unit-open { min-height: 34px; padding: 0 10px; border-radius: 5px; font-size: 9px; }
.teacher-unit-more { position: relative; }
.teacher-unit-more > summary { width: 32px; height: 32px; list-style: none; }
.teacher-unit-more > summary::-webkit-details-marker { display: none; }
.teacher-unit-more > div { position: absolute; z-index: 12; top: calc(100% + 5px); left: 0; width: min(230px, 70vw); display: grid; gap: 3px; padding: 5px; border: 1px solid #dbe0ea; border-radius: 6px; background: #fff; box-shadow: 0 12px 28px rgba(30, 43, 82, .14); }
.teacher-unit-more button { min-height: 34px; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; color: #33405a; font-size: 9px; text-align: right; cursor: pointer; }
.teacher-unit-more button:hover { background: #f0f3f8; }

.student-course-card { width: 100%; display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 1rem; padding: .75rem; border: 1px solid #e2e8f3; background: #fff; border-radius: 16px; text-align: right; cursor: pointer; margin-top: .7rem; }
.student-course-card:hover { border-color: #315bd6; transform: translateY(-1px); }
.student-course-card img { width: 110px; height: 72px; object-fit: cover; border-radius: 12px; }
.student-course-card > span, .student-course-card > em { display: grid; gap: .3rem; font-style: normal; }
.student-course-card small { color: #738096; }
.student-course-card i { display: block; height: 6px; border-radius: 9px; background: #e7ebf3; overflow: hidden; }
.student-course-card i b { display: block; height: 100%; background: linear-gradient(90deg, #24a881, #4d68dd); }
.student-course-card > em { text-align: center; font-weight: 900; color: #315bd6; }

.studio-assets { display: grid; gap: .6rem; border-top: 1px solid #e4e9f2; padding-top: 1rem; }
.studio-validation-warnings { display: grid; gap: .45rem; margin-top: .75rem; padding: .75rem; border-radius: 12px; background: #fff7e6; color: #75521a; }
.studio-asset-row { display: grid; grid-template-columns: 42px 1fr auto; gap: .5rem; align-items: center; padding: .45rem; border-radius: 10px; background: #f7f9fd; }
.studio-asset-row img, .studio-asset-row > span { width: 42px; height: 36px; object-fit: cover; border-radius: 7px; display: grid; place-items: center; background: #e1e8f8; }
.studio-asset-row div { display: grid; min-width: 0; }
.studio-asset-row strong, .studio-asset-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-asset-row button { border: 0; background: transparent; cursor: pointer; color: #a63d4f; }
.studio-asset-dialog { width: min(650px, calc(100% - 2rem)); border: 0; border-radius: 22px; padding: 0; box-shadow: 0 35px 90px rgba(17, 31, 66, .3); }
.studio-asset-dialog::backdrop { background: rgba(12, 22, 48, .62); }
.studio-asset-dialog form { position: relative; display: grid; gap: .8rem; padding: 2rem; }
.studio-asset-dialog label { display: grid; gap: .35rem; font-weight: 700; }
.studio-asset-preview img { max-height: 210px; max-width: 100%; border-radius: 14px; object-fit: contain; }

@media (max-width: 860px) {
  .course-landing-shell { width: 100%; }
  .course-landing-hero { min-height: 680px; border-radius: 0 0 26px 26px; }
  .course-landing-overlay { background: linear-gradient(0deg, rgba(8,28,74,.96) 0%, rgba(8,28,74,.76) 55%, rgba(8,28,74,.08) 100%); }
  .course-landing-copy { width: auto; padding: 2rem 1.4rem 2.5rem; position: absolute; bottom: 0; }
  .course-landing-brand { margin-bottom: 12rem; }
  .course-landing-grid, #course-pathway-list { grid-template-columns: 1fr; margin-inline: 1rem; }
  .course-pathway-preview, .course-unit-preview { margin-inline: 1rem; }
  .teacher-course-toolbar { grid-template-columns: 1fr; }
  .teacher-course-actions { justify-content: stretch; }
  .teacher-course-actions .button { flex: 1; }
  .teacher-course-structure #teacher-course-unit-list { grid-template-columns: 1fr; }
  .student-course-card { grid-template-columns: 78px 1fr; }
  .student-course-card img { width: 78px; height: 62px; }
  .student-course-card > em { grid-column: 2; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .course-pathway-card, .student-course-card { transition: none !important; transform: none !important; }
}

/* Cumulative course exams */
.student-exam-row {
  width: calc(100% - 34px);
  min-height: 88px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  align-items: center;
  gap: .9rem;
  margin: .2rem 17px .65rem;
  padding: .9rem 1rem;
  border: 1px solid #d1d9e8;
  border-right: 4px solid #b85c42;
  border-radius: 12px;
  background: #fbfcff;
  color: #27354f;
  text-align: right;
}
.student-exam-row:not(:disabled) { cursor: pointer; border-right-color: #16849a; background: #f3fbfc; }
.student-exam-row:not(:disabled):hover { border-color: #16849a; box-shadow: 0 7px 22px rgba(31, 91, 105, .1); }
.student-exam-row:disabled { cursor: not-allowed; opacity: .68; }
.student-exam-row.submitted { border-right-color: #238369; background: #f4faf7; }
.student-exam-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #e6edf7; color: #3c527a; font-size: 1.2rem; font-weight: 800; }
.student-exam-row > span:nth-child(2) { display: grid; gap: .17rem; }
.student-exam-row small { color: #7a8497; font-size: .7rem; font-weight: 700; }
.student-exam-row strong { font-size: 1rem; }
.student-exam-row em { color: #667188; font-size: .76rem; font-style: normal; }
.student-exam-lock { display: inline-block; width: 13px; height: 11px; border: 2px solid currentColor; border-radius: 2px; position: relative; }
.student-exam-lock::before { content: ""; position: absolute; width: 7px; height: 7px; border: 2px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; right: 1px; top: -8px; }

.course-exam-modal-panel { width: min(1040px, calc(100% - 24px)); max-height: calc(100vh - 20px); overflow: auto; padding: 36px; }
.course-exam-shell { width: min(900px, 100%); margin: 0 auto; }
.course-exam-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 1.5rem; padding-left: 38px; }
.course-exam-header h1 { margin: .35rem 0; color: #1e2b45; font: 700 1.8rem "Rubik", "Heebo", sans-serif; }
.course-exam-header p { margin: 0; color: #687388; line-height: 1.65; }
.course-exam-header time { min-width: 92px; padding: .65rem .8rem; border: 1px solid #ccd6e5; border-radius: 8px; color: #984b37; background: #fff8f5; font: 800 1.12rem/1 "Rubik", sans-serif; text-align: center; direction: ltr; }
.course-exam-save-state { margin: 1.2rem 0; color: #647086; font-size: .78rem; }
#course-exam-form { display: grid; gap: 1rem; }
.course-exam-question { min-width: 0; margin: 0; padding: 1.3rem; border: 1px solid #dce2ec; border-radius: 8px; background: #fff; }
.course-exam-question legend { width: 100%; padding: 0; color: #25324b; font-size: 1rem; font-weight: 700; line-height: 1.65; }
.course-exam-question legend > .course-exam-question-number { display: block; margin-bottom: .35rem; color: #188096; font-size: .72rem; }
.course-exam-options { display: grid; gap: .55rem; margin-top: 1rem; }
.course-exam-options label { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: .7rem; min-height: 48px; padding: .7rem .8rem; border: 1px solid #dce2ec; border-radius: 7px; cursor: pointer; }
.course-exam-options label:hover { border-color: #8ea3c7; }
.course-exam-options label.selected { border-color: #17869b; background: #eef8fa; }
.course-exam-options input { accent-color: #16849a; }
.course-exam-submit-row { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-top: 1px solid #dce2ec; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); }
.course-exam-submit-row span { color: #59657a; font-weight: 700; }
.course-exam-result { display: grid; justify-items: center; gap: 1rem; max-width: 520px; margin: 6vh auto; text-align: center; }
.course-exam-result h1 { margin: 0; color: #24314a; }
.course-exam-result > strong { display: grid; place-items: center; width: 150px; aspect-ratio: 1; border: 8px solid #1b8999; border-radius: 50%; color: #1d5260; font: 800 2.6rem "Rubik", sans-serif; }
.course-exam-result > strong small { font-size: .75rem; font-weight: 600; }
.course-exam-review { display: grid; gap: 1.2rem; }
.course-exam-review-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-left: 36px; }
.course-exam-review-header h1 { margin: .3rem 0 0; color: #24314a; }
.course-exam-review-score { display: grid; min-width: 104px; padding: .7rem 1rem; border-radius: 10px; background: #eef8fa; color: #17677a; text-align: center; }
.course-exam-review-score strong { font: 800 1.8rem "Rubik", sans-serif; }
.course-exam-review-score small { font-size: .68rem; }
.course-exam-review-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.course-exam-review-summary > span { display: grid; gap: .2rem; padding: .8rem 1rem; border: 1px solid #dce3ed; border-radius: 8px; }
.course-exam-review-summary small { color: #748095; }
.course-exam-review-questions { display: grid; gap: 1rem; }
.course-exam-review-question { padding: 1.2rem; border: 1px solid #dce3ed; border-right: 4px solid #7b8799; border-radius: 9px; background: #fff; }
.course-exam-review-question.correct { border-right-color: #238369; }
.course-exam-review-question.incorrect { border-right-color: #b85c42; }
.course-exam-review-question > header { display: flex; align-items: center; justify-content: space-between; color: #687388; font-size: .74rem; }
.course-exam-review-question.correct > header b { color: #18705d; }
.course-exam-review-question.incorrect > header b { color: #9b4834; }
.course-exam-review-question h2 { margin: .7rem 0; color: #26334b; font-size: 1rem; line-height: 1.65; }
.course-exam-review-options { display: grid; gap: .45rem; margin: .8rem 0; }
.course-exam-review-option { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: .6rem; min-height: 42px; padding: .55rem .7rem; border: 1px solid #e0e5ed; border-radius: 7px; }
.course-exam-review-option.selected { border-color: #bd7a67; background: #fff7f4; }
.course-exam-review-option.correct { border-color: #68a997; background: #f1faf6; }
.course-exam-review-option small { color: #607087; font-size: .67rem; font-weight: 700; }
.course-exam-review-answer-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .8rem 0; }
.course-exam-review-answer-summary > div { padding: .6rem; border-radius: 6px; background: #f5f7fa; }
.course-exam-review-answer-summary dt { color: #788396; font-size: .68rem; }
.course-exam-review-answer-summary dd { margin: .25rem 0 0; color: #27354d; font-weight: 700; }
.course-exam-review-explanation { padding: .8rem; border-radius: 7px; background: #f7f5ef; }
.course-exam-review-explanation strong { color: #5b5140; }
.course-exam-review-explanation p { margin: .35rem 0 0; color: #625d53; line-height: 1.65; }
.course-exam-review-close { justify-self: end; }

.course-exam-review.teacher-course-exam-review { min-width: 0; gap: .85rem; }
.teacher-course-exam-review .course-exam-review-header { align-items: end; padding: 0 0 .7rem 36px; border-bottom: 1px solid #e2e7ef; }
.teacher-course-exam-review .course-exam-review-header h1 { margin-top: .25rem; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.teacher-course-exam-review .course-exam-review-score { display: flex; min-width: 0; flex: 0 0 auto; align-items: baseline; gap: .35rem; padding: 0; border-radius: 0; background: transparent; }
.teacher-course-exam-review .course-exam-review-score strong { font-size: 1.55rem; font-weight: 700; }
.teacher-course-exam-review .course-exam-review-summary { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .55rem 1.25rem; padding: .15rem 0 .7rem; border-bottom: 1px solid #e2e7ef; }
.teacher-course-exam-review .course-exam-review-summary > span { min-width: 0; gap: .12rem; padding: 0; border: 0; border-radius: 0; }
.teacher-course-exam-review .course-exam-review-summary small { font-size: .7rem; }
.teacher-course-exam-review .course-exam-review-summary strong { color: #2d3950; font-size: .82rem; font-weight: 600; overflow-wrap: anywhere; }
.teacher-course-exam-review .course-exam-legacy-note { margin: 0; padding: .65rem .75rem; border-right: 2px solid #8ea3c7; border-radius: 4px; background: #f6f8fb; color: #536176; font-size: .78rem; line-height: 1.6; }
.teacher-course-exam-review .course-exam-legacy-summary { margin-bottom: .3rem; }
.teacher-course-exam-review .course-exam-review-questions { min-width: 0; gap: 0; }
.teacher-course-exam-review .course-exam-review-question { min-width: 0; padding: 1rem .65rem 1.1rem; border: 0; border-bottom: 1px solid #e2e7ef; border-radius: 0; background: transparent; }
.teacher-course-exam-review .course-exam-review-question:first-child { padding-top: .55rem; }
.teacher-course-exam-review .course-exam-review-question.correct { border-right-color: transparent; box-shadow: inset -2px 0 #58a48f; }
.teacher-course-exam-review .course-exam-review-question.incorrect { border-right-color: transparent; box-shadow: inset -2px 0 #c57a65; }
.teacher-course-exam-review .course-exam-review-question h2 { margin: .55rem 0; line-height: 1.6; overflow-wrap: anywhere; }
.teacher-course-exam-review .course-exam-review-options { gap: .35rem; margin: .65rem 0; }
.teacher-course-exam-review .course-exam-review-option { min-width: 0; gap: .5rem; min-height: 36px; padding: .4rem .55rem; border-radius: 5px; overflow-wrap: anywhere; }
.teacher-course-exam-review .course-exam-review-answer-summary { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .45rem 1rem; margin: .7rem 0; }
.teacher-course-exam-review .course-exam-review-answer-summary > div { min-width: 0; padding: .4rem 0; border-top: 1px solid #e7eaf0; border-radius: 0; background: transparent; }
.teacher-course-exam-review .course-exam-review-answer-summary dd { margin-top: .2rem; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.teacher-course-exam-review .course-exam-review-explanation { padding: .65rem .7rem; border-radius: 5px; }
.teacher-course-exam-review .course-exam-review-solution ol { margin: .4rem 0 0; padding-inline-start: 1.3rem; color: #625d53; line-height: 1.65; }
.teacher-course-exam-review .course-exam-review-solution li + li { margin-top: .25rem; }
.teacher-course-exam-review .course-exam-review-solution h3,
.teacher-course-exam-review .course-exam-review-solution p { margin: 0; font-size: inherit; }
.teacher-course-exam-review .course-exam-review-solution-equations { display: grid; gap: .35rem; margin-top: .35rem; }
.teacher-course-exam-review img,
.teacher-course-exam-review svg,
.teacher-course-exam-review canvas { max-width: 100%; height: auto; }
.teacher-course-exam-review .course-simulation,
.teacher-course-exam-review .question-graph-mount { min-width: 0; max-width: 100%; overflow: hidden; }

.teacher-exam-management #teacher-exam-list { display: grid; gap: 1.1rem; }
.teacher-exam-row { padding-block: 1rem; border-top: 1px solid #e0e5ee; }
.teacher-exam-row:first-child { border-top: 0; }
.teacher-exam-row > header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.teacher-exam-row > header span { color: #15788b; font-size: .74rem; font-weight: 800; }
.teacher-exam-row > header h3 { margin: .25rem 0; color: #27334c; }
.teacher-exam-row > header p { margin: 0; color: #6b7588; font-size: .82rem; }
.teacher-exam-row > header > b { color: #7a4659; font-size: .76rem; white-space: nowrap; }
.teacher-exam-open-form { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)) auto; align-items: end; gap: .7rem; margin: 1rem 0; padding: .9rem; background: #f5f7fb; border-radius: 8px; }
.teacher-exam-open-form label { display: grid; gap: .3rem; color: #596579; font-size: .72rem; font-weight: 700; }
.teacher-exam-open-form input,
.teacher-exam-open-form select { min-width: 0; height: 40px; border: 1px solid #d5dce8; border-radius: 6px; background: #fff; padding: 0 .55rem; }
.teacher-exam-targets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .45rem .8rem; }
.teacher-exam-targets label { display: flex; align-items: center; gap: .35rem; font-weight: 500; }
.teacher-exam-targets input { width: 16px; height: 16px; }
.teacher-exam-window { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: .7rem .8rem; border-block: 1px solid #e3e7ef; }
.teacher-exam-window > span { display: grid; }
.teacher-exam-window small { color: #727d91; font-size: .72rem; }
.teacher-exam-window.open strong { color: #13745f; }
.teacher-exam-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .8rem 0; }
.teacher-exam-summary span { display: grid; gap: .2rem; padding: .65rem; background: #f5f7fb; border-radius: 6px; }
.teacher-exam-summary small { color: #748095; }
.teacher-exam-student-results { overflow-x: auto; }
.teacher-exam-student-results > div { min-width: 720px; display: grid; grid-template-columns: minmax(140px, 1.5fr) 100px 65px 70px minmax(150px, 1.2fr) 74px; align-items: center; gap: .6rem; padding: .55rem 0; border-top: 1px solid #e5e9f0; }
.teacher-exam-student-results .teacher-exam-result-head { color: #727d91; font-size: .7rem; font-weight: 800; }
.teacher-exam-student-results .button { min-height: 32px; padding: .35rem .55rem; font-size: .72rem; }
.teacher-exam-student-results small { color: #7a8496; }
.teacher-exam-question-results { margin-top: .7rem; }
.teacher-exam-question-results > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .6rem 0; border-top: 1px solid #e5e9f0; }
.teacher-exam-question-results span { display: grid; }
.teacher-exam-question-results strong { font-size: .82rem; }
.teacher-exam-question-results small { color: #788396; font-size: .7rem; }

@media (max-width: 780px) {
  .student-exam-row { width: 100%; margin-inline: 0; grid-template-columns: 40px minmax(0, 1fr) 18px; }
  .course-exam-modal-panel { width: 100%; max-height: 100vh; min-height: 100vh; margin: 0; padding: 64px 12px 24px; border-radius: 0; }
  .course-exam-header { grid-template-columns: 1fr; padding-left: 0; }
  .course-exam-header time { justify-self: start; }
  .course-exam-question { padding: 1rem .8rem; }
  .course-exam-submit-row { flex-direction: column; align-items: stretch; }
  .course-exam-review-header { align-items: start; padding-left: 0; }
  .course-exam-review-summary { grid-template-columns: 1fr; }
  .course-exam-review-question { padding: .9rem .7rem; }
  .course-exam-review-option { grid-template-columns: 20px minmax(0, 1fr); }
  .course-exam-review-option small { grid-column: 2; }
  .course-exam-review-answer-summary { grid-template-columns: 1fr; }
  .teacher-course-exam-review .course-exam-review-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .teacher-course-exam-review .course-exam-review-score strong { font-size: 1.35rem; }
  .teacher-course-exam-review .course-exam-review-summary { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
  .teacher-course-exam-review .course-exam-review-question { padding: .8rem .45rem .9rem; }
  .teacher-exam-row > header { display: grid; }
  .teacher-exam-open-form { grid-template-columns: 1fr 1fr; }
  .teacher-exam-open-form .button,
  .teacher-exam-targets { grid-column: 1 / -1; }
  .teacher-exam-window { grid-template-columns: 1fr; }
  .teacher-exam-summary { grid-template-columns: 1fr 1fr; }
}

.lesson-algorithm-visualizer {
  border: 1px solid rgba(77, 110, 231, 0.24);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(77, 110, 231, 0.08), rgba(42, 196, 155, 0.06));
}

.lesson-algorithm-visualizer > header,
.lesson-algorithm-visualizer > div:last-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.lesson-algorithm-visualizer header span,
.lesson-algorithm-visualizer header em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.lesson-algorithm-visualizer h3 { margin: 3px 0 0; }

.algorithm-visualizer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.algorithm-visualizer-grid aside {
  border-radius: 16px;
  background: #15203b;
  color: #fff;
  padding: 15px;
}

[data-algorithm-stack] { display: grid; gap: 7px; margin-top: 12px; }

[data-algorithm-stack] span {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.open-response-board { display: grid; gap: 12px; }

.open-response-board textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}

.open-response-board ul { margin: 0; color: var(--muted); }

.unit-assessment-card { margin-top: 20px; border-color: rgba(132, 102, 232, 0.28); }

@media (max-width: 760px) {
  .algorithm-visualizer-grid { grid-template-columns: 1fr; }
}

/* Content studio and assignment management */
.assignment-manager { margin: 1rem 0; }
.assignment-create-row { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) minmax(190px, 1fr) auto; gap: .8rem; align-items: end; }
.assignment-create-row label, .studio-toolbar label, .studio-form label { display: grid; gap: .38rem; color: var(--ink-soft, #596174); font-size: .83rem; font-weight: 700; }
.assignment-create-row input, .assignment-create-row select, .studio-toolbar select, .studio-form input, .studio-form textarea, .studio-form select {
  width: 100%; border: 1px solid #dfe4ec; border-radius: 12px; background: #fff; color: #1c2535; padding: .72rem .8rem; font: inherit;
}
.studio-form textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
#class-assignment-list { display: grid; gap: .65rem; margin-top: 1rem; }
.assignment-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: .85rem 1rem; border: 1px solid #e6e9ef; border-radius: 14px; }
.assignment-row.inactive { opacity: .64; background: #f5f6f8; }
.assignment-row strong, .assignment-row small { display: block; }
.assignment-row small { color: #717887; margin-top: .2rem; }
.assignment-row-actions { display: flex; align-items: center; gap: .6rem; }
.assignment-progress { min-width: 92px; text-align: center; font-size: .82rem; color: #576071; }
.compact-danger { min-height: 34px; padding: 0 .72rem; border-color: #f1c7c1; background: #fff5f3; color: #a6382c; box-shadow: none; }
.assignment-hero-visual { min-height: 210px; display: grid; place-content: center; justify-items: center; gap: .55rem; color: #fff; text-align: center; }
.assignment-hero-visual strong { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 30px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); font-size: 2.6rem; }
.assignment-hero-visual span { max-width: 220px; font-weight: 700; }
.assignment-hero-visual em { font-style: normal; opacity: .82; }

.studio-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; margin-bottom: 1rem; background: #fff; border: 1px solid #e8ebf0; border-radius: 16px; }
.studio-toolbar label { width: min(420px, 70vw); }
#studio-save-state { color: #697181; font-size: .86rem; }
.studio-course-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 360px); gap: .85rem; margin-bottom: 1rem; padding: 2px 2px 8px; overflow-x: auto; }
.studio-course-card { position: relative; overflow: hidden; border: 1px solid #e0e5ef; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.studio-course-card.active { border-color: var(--blue); box-shadow: 0 12px 30px rgba(77, 110, 231, .16); }
.studio-course-open { width: 100%; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; padding: 0; border: 0; background: transparent; color: inherit; text-align: right; cursor: pointer; }
.studio-course-art { min-height: 116px; overflow: hidden; background: #dceafa; }
.studio-course-art img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.03); }
.studio-course-art.kinematics img { object-position: 87% center; }
.studio-course-art.custom-course img { object-position: center; filter: saturate(.72) hue-rotate(18deg); }
.studio-course-copy { min-width: 0; display: grid; align-content: center; gap: .28rem; padding: 1rem 1rem 2.25rem; }
.studio-course-copy small { color: var(--blue); font-size: .7rem; font-weight: 800; }
.studio-course-copy strong { overflow: hidden; font: 700 .96rem/1.35 "Rubik", "Heebo"; text-overflow: ellipsis; white-space: nowrap; }
.studio-course-copy span { color: var(--muted); font-size: .72rem; }
.studio-course-delete, .studio-system-lock { position: absolute; bottom: .6rem; left: .7rem; z-index: 2; }
.studio-course-delete { border: 0; background: transparent; color: #a6382c; font: 700 .7rem "Heebo"; cursor: pointer; }
.studio-system-lock { color: #7a8496; font-size: .68rem; }
.content-studio-shell { display: grid; grid-template-columns: minmax(240px, 290px) minmax(420px, 1fr) minmax(240px, 300px); gap: 1rem; align-items: start; }
.studio-tree-panel, .studio-editor-panel, .studio-quality-panel { background: #fff; border: 1px solid #e5e9ef; border-radius: 18px; min-height: 560px; }
.studio-tree-panel, .studio-quality-panel { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
.studio-panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid #eceff3; }
.studio-tree { padding: .6rem; }
.studio-tree-group { margin-bottom: .45rem; }
.studio-tree-item { width: 100%; display: flex; align-items: center; gap: .55rem; text-align: right; border: 0; border-radius: 10px; background: transparent; color: #30394a; padding: .52rem .6rem; cursor: pointer; }
.studio-tree-item:hover { background: #f2f6fb; }
.studio-tree-item.active { background: #e9f2ff; color: #195ca8; font-weight: 700; }
.studio-tree-item small { margin-inline-start: auto; color: #89909d; }
.studio-tree-item[data-level="unit"] { padding-inline-start: .9rem; }
.studio-tree-item[data-level="lesson"] { padding-inline-start: 1.5rem; }
.studio-tree-item[data-level="section"] { padding-inline-start: 2.1rem; font-size: .88rem; }
.studio-tree-item[data-level="block"], .studio-tree-item[data-level="question"] { padding-inline-start: 2.75rem; font-size: .8rem; color: #626b79; }
.studio-empty, .studio-welcome { padding: 2rem 1rem; text-align: center; color: #7a8290; }
.studio-welcome { padding-top: 7rem; }
.studio-welcome > span { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: #edf5ff; color: #2671c8; font-size: 1.7rem; }
.studio-editor-panel { padding: 1.2rem; }
.studio-editor-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid #edf0f4; }
.studio-editor-head h2 { margin: .2rem 0 0; }
.studio-editor-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.studio-form { display: grid; gap: 1rem; margin-top: 1rem; }
.studio-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.studio-checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: center; justify-content: start; }
.studio-checkbox input { width: auto; }
.studio-form-footer { display: flex; justify-content: space-between; gap: .7rem; padding-top: .8rem; border-top: 1px solid #edf0f4; }
.studio-form-footer > div { display: flex; gap: .55rem; }
.studio-danger { color: #a52828; border-color: #edcaca !important; }
.studio-readonly { border: 1px solid #dfe5ed; border-radius: 14px; padding: 1rem; background: #f7f9fb; color: #667080; margin-top: 1rem; }
.studio-config { padding: 1rem; border-radius: 14px; background: #f7f9fc; border: 1px solid #e6eaf0; display: grid; gap: .8rem; }
.studio-config h3 { margin: 0; font-size: .95rem; }
.studio-node-list, .studio-option-list { display: grid; gap: .55rem; }
.studio-node-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: .45rem; align-items: end; }
.studio-option-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) auto minmax(130px, 1fr) minmax(110px, .8fr) auto; gap: .45rem; align-items: end; }
.studio-node-row input, .studio-option-row input { padding: .55rem; }
.studio-remove-row { border: 0; background: #feecec; color: #9e2b2b; width: 34px; height: 34px; border-radius: 9px; cursor: pointer; }
.studio-quality-panel { padding-bottom: 1rem; }
#studio-validation, .studio-revisions { padding: 1rem; }
.studio-validation-ok { color: #18744b; background: #eaf8f1; padding: .8rem; border-radius: 12px; }
.studio-validation-errors { display: grid; gap: .48rem; }
.studio-validation-error { padding: .65rem; border-radius: 10px; background: #fff2f1; color: #8d302b; font-size: .82rem; }
.studio-revisions { border-top: 1px solid #eceff3; }
#studio-revision-list { display: grid; gap: .55rem; margin-top: .7rem; }
.studio-revision-item { font-size: .78rem; color: #687180; padding-bottom: .5rem; border-bottom: 1px solid #eef0f3; }
.studio-revision-item strong { display: block; color: #353d4c; }

@media (max-width: 1180px) {
  .content-studio-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .studio-quality-panel { position: static; grid-column: 1 / -1; min-height: 0; max-height: none; }
}
@media (max-width: 800px) {
  .assignment-create-row, .content-studio-shell, .studio-form-grid { grid-template-columns: 1fr; }
  .assignment-row { grid-template-columns: 1fr; }
  .assignment-row-actions { flex-wrap: wrap; justify-content: flex-start; }
  .studio-course-gallery { grid-auto-columns: minmax(260px, 86vw); }
  .studio-tree-panel, .studio-quality-panel { position: static; min-height: 0; max-height: none; }
  .studio-node-row, .studio-option-row { grid-template-columns: 1fr 1fr; }
  .studio-editor-head, .studio-form-footer { flex-direction: column; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Heebo", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(77, 110, 231, 0.28);
  outline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 0 0 auto;
  width: 260px;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
  background: #fff;
  border-left: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 55px;
  padding: 0 8px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #5879ed, #3d5bd3);
  box-shadow: 0 8px 18px rgba(77, 110, 231, 0.25);
}

.brand-mark svg {
  width: 33px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong {
  display: block;
  font: 700 21px/1.25 "Rubik", "Heebo", sans-serif;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #8a91a3;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.main-nav {
  flex: 1;
  padding-top: 30px;
}

.nav-label {
  margin: 0 12px 9px;
  color: #a3a9b7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-label {
  margin-top: 28px;
}

.nav-item {
  position: relative;
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  margin: 3px 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #677088;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-item:hover {
  background: #f5f7fb;
  color: var(--ink);
}

.nav-item.active {
  color: var(--blue-dark);
  background: #edf1ff;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  inset: 10px auto 10px -19px;
  width: 4px;
  border-radius: 4px;
  background: var(--blue);
}

.nav-icon {
  width: 23px;
  display: grid;
  place-items: center;
  color: #8790aa;
  font-size: 18px;
  font-weight: 700;
}

.nav-item.active .nav-icon {
  color: var(--blue);
}

.nav-badge {
  margin-right: auto;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
}

.daily-goal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 10px;
  margin: 10px 0 18px;
  border-radius: 14px;
  background: #f6f8ff;
}

.goal-ring {
  position: relative;
  width: 51px;
  height: 51px;
  flex: 0 0 51px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--progress) * 1%), #dfe5fa 0);
}

.goal-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #fff;
}

.goal-ring span,
.goal-ring small {
  position: relative;
  z-index: 1;
}

.goal-ring span {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
}

.goal-ring small {
  margin-top: -9px;
  color: var(--muted);
  font-size: 8px;
}

.daily-goal strong {
  font-size: 12px;
}

.daily-goal p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.student-mini {
  min-width: 0;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
}

.student-mini > span:last-child {
  min-width: 0;
}

.student-mini strong,
.student-mini small {
  display: block;
  white-space: nowrap;
}

.student-mini strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
}

.student-mini small {
  color: var(--muted);
  font-size: 9px;
}

.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 800;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  font-size: 12px;
}

.avatar.green { background: var(--mint-soft); color: #16846c; }
.avatar.purple { background: var(--violet-soft); color: #6347be; }
.avatar.coral { background: var(--coral-soft); color: #c34e3b; }

.icon-button {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9299aa;
  cursor: pointer;
}

.main-content {
  min-height: 100vh;
  margin-right: 260px;
}

.view {
  display: none;
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 42px 70px;
}

.view.active {
  display: block;
  animation: view-in 0.35s ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-header h1,
.compact-header h1 {
  margin: 3px 0 6px;
  font: 700 29px/1.25 "Rubik", "Heebo", sans-serif;
  letter-spacing: -0.025em;
}

.page-header > div:first-child > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #8b93a7;
  font-size: 11px;
  font-weight: 600;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(42, 196, 155, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.streak-chip {
  height: 47px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #e9e2d0;
  border-radius: 13px;
  background: #fffdf7;
}

.streak-chip .flame {
  color: #f4a33c;
  font-size: 21px;
}

.streak-chip strong,
.streak-chip small {
  display: block;
  line-height: 1.1;
}

.streak-chip strong {
  font-size: 15px;
}

.streak-chip small {
  margin-top: 4px;
  color: #8f826a;
  font-size: 9px;
}

.notification-button {
  position: relative;
  width: 47px;
  height: 47px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
}

.notification-button span {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--coral);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.72fr);
  gap: 18px;
}

.journey-card {
  position: relative;
  min-height: 288px;
  display: flex;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(125deg, #4968da, #526fdc 63%, #6682e7);
  box-shadow: 0 17px 40px rgba(55, 83, 187, 0.2);
  color: #fff;
}

.journey-copy {
  position: relative;
  z-index: 3;
  width: 58%;
  padding: 31px 34px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.pill-light {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.pill-blue {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.journey-card h2 {
  margin: 15px 0 8px;
  font: 700 28px/1.25 "Rubik", "Heebo", sans-serif;
}

.journey-card p {
  max-width: 440px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.75;
}

.lesson-meta {
  display: flex;
  gap: 15px;
  margin: 17px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 19px;
  border: 0;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.button-light {
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 7px 16px rgba(35, 51, 113, 0.18);
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 7px 17px rgba(77, 110, 231, 0.2);
}

.button-primary:hover { background: var(--blue-dark); }

.button-secondary {
  border: 1px solid #ccd5f5;
  background: #f3f5ff;
  color: var(--blue-dark);
}

.button-ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-tree {
  position: absolute;
  z-index: 2;
  inset: 18px auto 8px 10px;
  width: 43%;
  display: grid;
  place-items: center;
}

.hero-tree svg {
  width: 100%;
}

.hero-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 3;
  stroke-linecap: round;
}

.hero-node circle {
  fill: rgba(255, 255, 255, 0.17);
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 2;
}

.hero-node text {
  fill: #fff;
  font: 700 18px "Rubik", sans-serif;
  text-anchor: middle;
}

.hero-node.small text { font-size: 14px; }
.hero-node.root-node circle { fill: #fff; }
.hero-node.root-node > text { fill: var(--blue-dark); font-size: 23px; }
.hero-node.root-node rect { fill: #fff; }
.hero-node.root-node path { fill: none; stroke: #fff; stroke-width: 2; }
.hero-node.root-node .tag-text { fill: var(--blue-dark); font: 700 10px "Heebo"; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.orb-one { width: 200px; height: 200px; top: -110px; left: -35px; }
.orb-two { width: 270px; height: 270px; bottom: -210px; right: 28%; }

.mastery-card,
.panel,
.metric-card {
  border: 1px solid rgba(222, 227, 239, 0.8);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mastery-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.card-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.overline {
  display: block;
  color: #939bad;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-heading h2,
.card-heading h3,
.section-heading h2 {
  margin: 3px 0 0;
  font: 700 17px/1.35 "Rubik", "Heebo", sans-serif;
}

.trend-up,
.positive {
  color: #1c9a76 !important;
}

.trend-up {
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--mint-soft);
  font-size: 9px;
  font-weight: 700;
}

.mastery-score {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mastery-ring {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--progress) * 1%), #edf0f7 0);
  transform: rotate(-38deg);
}

.mastery-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: inherit;
  background: #fff;
}

.mastery-ring > div {
  position: relative;
  z-index: 1;
  text-align: center;
  transform: rotate(38deg);
}

.mastery-ring strong,
.mastery-ring small {
  display: block;
}

.mastery-ring strong {
  font: 700 23px "Rubik";
}

.mastery-ring small {
  color: var(--muted);
  font-size: 9px;
}

.mastery-stats {
  display: grid;
  gap: 10px;
}

.mastery-stats > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.stat-dot.mint { background: var(--mint); }
.stat-dot.blue { background: var(--blue); }
.stat-dot.gray { background: #d3d8e3; }

.mastery-stats strong,
.mastery-stats small {
  display: inline-block;
}

.mastery-stats strong {
  width: 25px;
  font-size: 11px;
}

.mastery-stats small {
  color: var(--muted);
  font-size: 9px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.mastery-card > .text-button {
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.metric-card {
  position: relative;
  min-height: 105px;
  display: flex;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  padding: 17px 18px;
}

.metric-icon {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
}

.metric-icon.sky { background: #e8f5ff; color: #4194d4; }
.metric-icon.violet { background: var(--violet-soft); color: var(--violet); }
.metric-icon.coral, .metric-icon.peach { background: var(--coral-soft); color: var(--coral); }

.metric-card > div:not(.week-bars):not(.tiny-progress) {
  min-width: 112px;
}

.metric-card span,
.metric-card strong,
.metric-card small {
  display: block;
}

.metric-card > div > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.metric-card strong {
  margin: 3px 0;
  font: 700 21px "Rubik";
}

.metric-card strong small {
  display: inline;
  color: var(--muted);
  font: 500 9px "Heebo";
}

.metric-card small {
  color: #9aa1b1;
  font-size: 8px;
}

.sparkline {
  width: 95px;
  height: 43px;
  margin-right: auto;
}

.sparkline path {
  fill: none;
  stroke: #4ca3dc;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.sparkline path.fill {
  fill: rgba(76, 163, 220, 0.08);
  stroke: none;
}

.tiny-progress {
  position: absolute;
  inset: auto 74px 16px 18px;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #edeefa;
}

.tiny-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--violet);
}

.week-bars {
  height: 40px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-right: auto;
}

.week-bars i {
  width: 7px;
  min-height: 4px;
  border-radius: 3px 3px 1px 1px;
  background: #eadfdb;
}

.week-bars i.today { background: var(--coral); }

.section-block {
  margin-top: 31px;
}

.section-heading {
  align-items: flex-end;
  margin-bottom: 14px;
}

.path-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 28px 25px 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.path-line {
  position: absolute;
  top: 51px;
  right: 10%;
  left: 10%;
  height: 4px;
  border-radius: 4px;
  background: #e5e9f3;
}

.path-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--mint));
}

.path-stop {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.path-bubble {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #e9edf4;
  box-shadow: 0 0 0 1px #e2e6ef;
  color: #9fa7b9;
  font: 700 13px "Rubik";
}

.path-stop.complete .path-bubble {
  background: var(--mint);
  color: #fff;
  box-shadow: 0 0 0 1px var(--mint), 0 5px 14px rgba(42, 196, 155, 0.2);
}

.path-stop.current .path-bubble {
  width: 56px;
  height: 56px;
  margin-top: -4px;
  background: var(--blue);
  box-shadow: 0 0 0 3px #dae1ff, 0 7px 18px rgba(77, 110, 231, 0.26);
  color: #fff;
  font-size: 16px;
}

.path-stop strong {
  font-size: 10px;
}

.path-stop small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.path-stop.locked {
  color: #9fa6b6;
}

.you-are-here {
  position: absolute;
  top: -25px;
  padding: 3px 8px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 7px;
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  margin-top: 28px;
}

.panel {
  padding: 22px;
}

.ai-chip {
  padding: 5px 9px;
  border-radius: 10px;
  background: var(--violet-soft);
  color: #6b51c8;
  font-size: 8px;
  font-weight: 700;
}

.recommendations {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.recommendation {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px;
  border: 1px solid #eceff5;
  border-radius: 13px;
  background: #fff;
  text-align: right;
  cursor: pointer;
  transition: 0.2s ease;
}

.recommendation:hover {
  border-color: #cfd7f8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(36, 51, 90, 0.06);
}

.recommendation-icon {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 11px;
  font-size: 18px;
}

.peach { background: var(--coral-soft); color: var(--coral); }
.blue-soft { background: var(--blue-soft); color: var(--blue); }

.recommendation-copy {
  min-width: 0;
  flex: 1;
  display: block;
}

.recommendation-copy > span {
  display: block;
}

.recommendation-copy > span:nth-child(2) {
  margin: 3px 0;
  color: var(--muted);
  font-size: 9px;
}

.recommendation-top {
  display: flex !important;
  justify-content: space-between;
  gap: 8px;
}

.recommendation-top strong {
  font-size: 11px;
}

.recommendation-top small {
  color: #9299aa;
  font-size: 8px;
}

.reason {
  color: #9aa1b1;
  font-size: 8px;
}

.reason i {
  color: #66718d;
  font-style: normal;
}

.arrow-circle {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
}

.question-count {
  color: #999fb0;
  font-size: 9px;
}

.recall-question {
  min-height: 42px;
  margin: 15px 0 12px;
  font-size: 12px;
  line-height: 1.65;
}

.mini-options {
  display: grid;
  gap: 7px;
}

.mini-options button {
  height: 37px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 10px;
  text-align: right;
  cursor: pointer;
}

.mini-options button span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f2f4f8;
  color: #747d92;
  font-size: 9px;
  font-weight: 700;
}

.mini-options button.correct {
  border-color: #7cd7bd;
  background: #f3fcf9;
  color: #16846c;
}

.mini-options button.wrong {
  border-color: #f4aaa0;
  background: #fff8f6;
}

.feedback-line {
  min-height: 17px;
  margin: 8px 0 -6px;
  color: var(--muted);
  font-size: 9px;
}

.quote-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 26px 0 0;
  padding: 17px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(237, 241, 255, 0), #edf1ff 50%, rgba(237, 241, 255, 0));
  color: #64708c;
  font-size: 11px;
}

.quote-strip p { margin: 0; }
.quote-strip cite { color: #9aa1b1; font-size: 9px; font-style: normal; }
.quote-mark { color: var(--blue); font: 700 28px Georgia, serif; }

.mobile-bar,
.mobile-nav {
  display: none;
}

/* Lesson */
.compact-header {
  display: grid;
  grid-template-columns: 45px 1fr 210px;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.back-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.lesson-progress-wrap {
  align-self: center;
}

.lesson-progress-wrap > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
}

.progress-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 5px;
  background: #e8ebf3;
}

.progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #748bec);
  transition: width 0.4s ease;
}

.lesson-layout {
  display: grid;
  grid-template-columns: 175px minmax(500px, 1fr) 210px;
  align-items: start;
  gap: 18px;
}

.lesson-steps,
.lesson-coach,
.discovery-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.lesson-steps {
  padding: 12px;
}

.lesson-step {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 9px;
  padding: 12px 9px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  text-align: right;
  cursor: pointer;
}

.lesson-step > span {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eff1f6;
  font-size: 10px;
  font-weight: 700;
}

.lesson-step strong {
  font-size: 10px;
}

.lesson-step small {
  font-size: 8px;
}

.lesson-step.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.lesson-step.active > span,
.lesson-step.completed > span {
  background: var(--blue);
  color: #fff;
}

.lesson-step.completed > span {
  background: var(--mint);
}

.lesson-step:disabled { cursor: default; }

.discovery-stage {
  min-height: 700px;
  padding: 30px 34px;
}

.lesson-screen {
  display: none;
  animation: view-in 0.35s ease both;
}

.lesson-screen.active { display: block; }

.discovery-label {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 15px;
  background: var(--violet-soft);
  color: #6e55c6;
  font-size: 9px;
  font-weight: 700;
}

.lesson-screen > h2 {
  margin: 17px 0 5px;
  font: 700 25px/1.4 "Rubik", "Heebo", sans-serif;
}

.lesson-screen > h2 em,
.definition-card h2 em {
  color: var(--blue);
  font-style: normal;
}

.lesson-screen > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.concept-tree,
.interactive-parent-tree,
.identify-stage {
  position: relative;
  max-width: 600px;
  margin: 12px auto 0;
}

.concept-tree svg,
.interactive-parent-tree svg,
.identify-stage svg {
  width: 100%;
  max-height: 350px;
}

.tree-edges path,
.tree-edges line {
  fill: none;
  stroke: #ccd4e7;
  stroke-width: 4;
  stroke-linecap: round;
}

.concept-node circle {
  fill: #fff;
  stroke: #b9c5df;
  stroke-width: 3;
  filter: drop-shadow(0 7px 8px rgba(33, 52, 93, 0.08));
  transition: 0.25s ease;
}

.concept-node text {
  fill: var(--ink);
  font: 700 22px "Rubik";
  text-anchor: middle;
  pointer-events: none;
}

.concept-node.focus circle {
  fill: var(--blue);
  stroke: #9bacec;
}

.concept-node.focus text { fill: #fff; }

.concept-node.clickable,
.concept-node.selectable {
  cursor: pointer;
}

.concept-node.clickable:hover circle,
.concept-node.selectable:hover circle {
  fill: var(--blue-soft);
  stroke: var(--blue);
}

.concept-node.selected circle {
  fill: var(--blue);
  stroke: #aab9f0;
  transform-origin: center;
  animation: node-pop 0.35s ease;
}

.concept-node.selected text { fill: #fff; }

.concept-node.error circle {
  fill: var(--coral-soft);
  stroke: var(--coral);
}

@keyframes node-pop {
  50% { transform: scale(1.08); }
}

.prediction-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 5px;
}

.prediction-options button,
.exit-question button {
  min-height: 45px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 11px;
  text-align: right;
  cursor: pointer;
}

.prediction-options button:hover,
.exit-question button:hover {
  border-color: #aebcf0;
  background: #f8f9ff;
}

.prediction-options button.correct,
.exit-question button.correct {
  border-color: var(--mint);
  background: var(--mint-soft);
  color: #167c65;
}

.prediction-options button.wrong,
.exit-question button.wrong {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.lesson-feedback {
  min-height: 45px;
  margin-top: 10px;
  padding: 0;
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.lesson-feedback.visible {
  padding: 10px 12px;
  background: #f5f7fb;
}

.parent-readout {
  position: absolute;
  top: 15px;
  left: 12px;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 700;
}

.lesson-next {
  display: flex;
  margin: 15px auto 0;
}

.definition-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin: 23px 0 18px;
  border: 1px solid #cfdbff;
  border-radius: 16px;
  background: linear-gradient(135deg, #f1f4ff, #f8f9ff);
}

.definition-icon {
  width: 58px;
  height: 58px;
  display: grid;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 17px;
  background: var(--blue);
  color: #fff;
  font-size: 28px;
}

.definition-card h2 {
  margin: 0 0 5px;
  font: 700 20px/1.45 "Rubik", "Heebo";
}

.definition-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.representation-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1.25fr;
  gap: 10px;
}

.representation-grid > div {
  min-height: 147px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.representation-tag {
  color: #969eb0;
  font-size: 8px;
  font-weight: 700;
}

.representation-grid p {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.micro-tree {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 25px;
  padding-top: 64px;
}

.micro-tree::before,
.micro-tree::after {
  content: "";
  position: absolute;
  top: 56px;
  width: 36px;
  height: 2px;
  background: #c7d0e3;
}

.micro-tree::before { right: calc(50% - 4px); transform: rotate(32deg); }
.micro-tree::after { left: calc(50% - 4px); transform: rotate(-32deg); }

.micro-tree i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 2px solid #bfc9df;
  border-radius: 50%;
  background: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
}

.micro-tree i.top {
  position: absolute;
  top: 18px;
  left: calc(50% - 15px);
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.code-representation {
  direction: ltr;
}

.code-representation .representation-tag {
  display: block;
  direction: rtl;
  text-align: right;
}

.code-representation pre {
  margin: 22px 0 0;
  color: #47516a;
  font: 500 9px/1.8 Consolas, monospace;
  white-space: pre-wrap;
}

.code-representation code b { color: #6c55d3; }
.code-representation code span { color: #159074; }

.real-world-note {
  display: flex;
  gap: 11px;
  padding: 12px 15px;
  margin-top: 12px;
  border-radius: 12px;
  background: #fff8e6;
}

.real-world-note p {
  margin: 0;
  color: #746642;
  font-size: 10px;
  line-height: 1.7;
}

.identify-feedback {
  min-height: 25px;
  margin: -7px 0 0 !important;
  text-align: center;
}

.identify-feedback.success { color: #178064; }
.identify-feedback.error { color: #c85543; }

.exit-question {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.exit-question > p {
  padding: 17px;
  margin: 0 0 4px;
  border-radius: 13px;
  background: #f6f7fb;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

#exit-result {
  min-height: 35px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.confidence-box {
  padding: 15px;
  margin-top: 12px;
  border-radius: 13px;
  background: #f5f7fb;
  text-align: center;
}

.confidence-box p {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
}

.confidence-scale {
  display: flex;
  justify-content: center;
  gap: 7px;
  direction: ltr;
}

.confidence-scale button {
  width: 43px;
  height: 43px;
  border: 1px solid #dfe3ed;
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.confidence-scale button:hover,
.confidence-scale button.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.confidence-scale small {
  display: block;
  font-size: 6px;
  font-weight: 400;
}

.hidden { display: none !important; }

.lesson-coach {
  overflow: hidden;
}

.coach-head,
.adaptive-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, #eef1ff, #f8f6ff);
}

.coach-head > span,
.adaptive-head > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--violet);
  color: #fff;
}

.coach-head strong,
.coach-head small,
.adaptive-head strong,
.adaptive-head small {
  display: block;
}

.coach-head strong,
.adaptive-head strong { font-size: 10px; }
.coach-head small,
.adaptive-head small { color: var(--muted); font-size: 8px; }

.lesson-coach > p {
  min-height: 95px;
  margin: 0;
  padding: 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.lesson-coach > button {
  display: block;
  margin: 0 17px 14px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.lesson-stat {
  display: flex;
  justify-content: space-between;
  padding: 11px 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.lesson-stat strong {
  color: var(--ink);
}

/* Practice */
.mode-switcher {
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  padding: 5px;
  margin: -8px auto 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mode-switcher button {
  min-height: 57px;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 7px;
  padding: 7px 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  text-align: right;
  cursor: pointer;
}

.mode-switcher button > span {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0f2f7;
  font-size: 13px;
}

.mode-switcher button strong {
  color: var(--ink);
  font-size: 9px;
}

.mode-switcher button small {
  font-size: 7px;
}

.mode-switcher button.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.mode-switcher button.active > span {
  background: var(--blue);
  color: #fff;
}

.practice-header-stats {
  display: flex;
  gap: 10px;
}

.practice-header-stats span {
  min-width: 88px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.practice-header-stats strong {
  margin-left: 3px;
  color: var(--ink);
  font-size: 17px;
}

.practice-layout {
  max-width: 1050px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 20px;
  margin: 20px auto;
}

.practice-card,
.adaptive-sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.practice-card {
  min-height: 620px;
  padding: 28px;
}

.practice-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

.difficulty-chip {
  padding: 4px 9px;
  border-radius: 10px;
  background: var(--mint-soft);
  color: #187b64;
  font-weight: 700;
}

.generated-question h2 {
  max-width: 650px;
  margin: 30px 0 7px;
  font: 700 21px/1.5 "Rubik", "Heebo";
}

.generated-question > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.question-visual {
  height: 245px;
  display: grid;
  place-items: center;
  margin: 18px 0;
  border-radius: 15px;
  background: linear-gradient(145deg, #f7f8fc, #f1f4fb);
}

.question-visual svg {
  width: 100%;
  height: 100%;
}

.remote-code {
  overflow-x: auto;
  padding: 16px;
  margin: 18px 0;
  border-radius: 12px;
  background: #18233e;
  color: #dbe3f5;
  direction: ltr;
  font: 500 10px/1.75 Consolas, monospace;
  text-align: left;
  white-space: pre-wrap;
}

.practice-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.practice-options button {
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  text-align: right;
  cursor: pointer;
}

.practice-options button:hover { border-color: #aab8ec; }
.practice-options button.correct { border-color: var(--mint); background: var(--mint-soft); color: #167a62; }
.practice-options button.wrong { border-color: var(--coral); background: var(--coral-soft); }

.practice-options button.selected-answer {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.answer-submit {
  display: flex;
  margin: 13px auto 0;
}

.arrange-board,
.match-board {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.arrange-slot {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px dashed #bdc7df;
  border-radius: 11px;
  background: #f8f9fc;
  color: var(--muted);
  font-size: 10px;
}

.arrange-slot span {
  width: 24px;
  height: 24px;
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 7px;
  background: #e8ecf5;
  font-size: 8px;
  font-weight: 700;
}

.arrange-pool {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.arrange-pool button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.arrange-pool button:disabled {
  opacity: .35;
}

.match-row {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.match-row > span {
  font-size: 10px;
  font-weight: 700;
}

.match-row > i {
  color: var(--blue);
  font-style: normal;
  text-align: center;
}

.match-row select {
  height: 37px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 9px;
}

.practice-feedback {
  padding: 14px;
  margin-top: 14px;
  border-radius: 12px;
  background: #f6f7fb;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.practice-feedback strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

#next-question {
  margin: 17px auto 0;
}

.adaptive-sidebar {
  overflow: hidden;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.signal-row strong { color: var(--ink); }

.adaptive-message {
  display: flex;
  gap: 9px;
  padding: 14px;
  margin: 15px;
  border-radius: 11px;
  background: #f5f7fb;
}

.adaptive-message > span { color: var(--blue); }
.adaptive-message p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }

.skill-pulse {
  padding: 3px 17px 18px;
}

.skill-pulse > p {
  font-size: 9px;
  font-weight: 700;
}

.skill-pulse > div {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  margin: 9px 0;
  color: var(--muted);
  font-size: 8px;
}

.skill-pulse i {
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8ebf2;
}

.skill-pulse b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.code-sandbox {
  max-width: 1050px;
  overflow: hidden;
  margin: 22px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.sandbox-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}

.sandbox-heading h2 {
  margin: 3px 0;
  font: 700 17px "Rubik", "Heebo";
}

.sandbox-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.sandbox-controls {
  display: flex;
  gap: 7px;
  direction: ltr;
}

.sandbox-body {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  min-height: 265px;
}

.sandbox-editor {
  position: relative;
  background: #18233e;
  direction: ltr;
}

.editor-language {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 13px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(255,255,255,.08);
  color: #9dabc5;
  font: 600 8px Consolas, monospace;
}

.sandbox-editor textarea {
  width: 100%;
  height: 100%;
  min-height: 265px;
  padding: 22px;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  color: #dce4f7;
  font: 500 11px/1.8 Consolas, monospace;
  tab-size: 4;
}

.sandbox-output {
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #f7f8fb;
}

.sandbox-output > .status-light {
  display: block;
  margin-bottom: 13px;
}

.sandbox-output p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.sandbox-checks {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.sandbox-checks span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 8px;
}

.sandbox-checks span.pass::before { content: "✓"; color: var(--mint); font-weight: 800; }
.sandbox-checks span.fail::before { content: "○"; color: var(--coral); font-weight: 800; }

/* Lab */
.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.tree-workbench,
.debug-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.workbench-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.workbench-toolbar label {
  font-size: 10px;
  font-weight: 700;
}

.workbench-toolbar input {
  width: 125px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
}

.workbench-toolbar input:focus { border-color: var(--blue); }

.prediction-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff7e7;
}

.prediction-banner p {
  margin: 0 auto 0 0;
  color: #746545;
  font-size: 10px;
}

.prediction-banner button {
  padding: 5px 12px;
  border: 1px solid #e8d8b4;
  border-radius: 8px;
  background: #fff;
  font-size: 9px;
  cursor: pointer;
}

.prediction-banner button.selected {
  border-color: var(--yellow);
  background: #ffe8ae;
}

.lab-canvas {
  min-height: 470px;
  background-image: radial-gradient(#dfe4ef 1px, transparent 1px);
  background-size: 21px 21px;
}

.lab-canvas svg {
  width: 100%;
  min-height: 460px;
}

.lab-edge {
  stroke: #bfc9dd;
  stroke-width: 3;
}

.lab-node circle {
  fill: #fff;
  stroke: #6f88df;
  stroke-width: 3;
  filter: drop-shadow(0 6px 6px rgba(34, 51, 90, 0.11));
  transition: 0.2s ease;
}

.lab-node text {
  fill: var(--ink);
  font: 700 16px "Rubik";
  text-anchor: middle;
}

.lab-node.active circle {
  fill: var(--yellow);
  stroke: #dda83d;
}

.lab-node.visited circle {
  fill: var(--blue);
  stroke: #96a8ea;
}

.lab-node.visited text { fill: #fff; }

.lab-node.new circle {
  fill: var(--mint);
  stroke: #72ddc2;
  animation: lab-node-in 0.5s ease;
}

.lab-node.new text { fill: #fff; }

@keyframes lab-node-in {
  from { transform: scale(0); transform-origin: center; }
}

.traversal-bar {
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
}

.traversal-bar > span { margin-left: 5px; color: var(--muted); font-size: 9px; }

.traversal-bar button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: 600 8px Consolas, monospace;
  cursor: pointer;
}

.traversal-output {
  min-width: 145px;
  padding: 7px 10px;
  margin-right: auto;
  border-radius: 8px;
  background: #f3f5fa;
  color: var(--muted);
  direction: ltr;
  font: 600 9px Consolas, monospace;
  text-align: center;
}

.debug-panel {
  background: #18233e;
  color: #dce3f6;
}

.debug-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font: 600 11px Consolas, monospace;
}

.status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(42, 196, 155, 0.1);
}

.code-lines {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  direction: ltr;
}

.code-lines > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  padding: 5px 12px;
  color: #96a2bb;
  font: 500 9px/1.5 Consolas, monospace;
}

.code-lines > div span {
  color: #5e6b84;
  text-align: right;
}

.code-lines > div.active {
  background: rgba(246, 200, 95, 0.13);
  color: #ffe5a3;
  box-shadow: inset 3px 0 #f6c85f;
}

.debug-section {
  display: flex;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #8390a8;
  font-size: 9px;
}

.debug-section strong {
  color: #fff;
}

.stack-section {
  display: block;
}

.stack-section > span { display: block; margin-bottom: 9px; }

#call-stack {
  display: grid;
  gap: 5px;
  direction: ltr;
}

#call-stack i,
#call-stack b {
  display: block;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  color: #8e9ab2;
  font: 500 8px Consolas, monospace;
  font-style: normal;
}

#call-stack b {
  border-color: rgba(77, 110, 231, 0.6);
  background: rgba(77, 110, 231, 0.12);
  color: #ced7f9;
}

.lab-insight {
  margin: 14px;
  padding: 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #a6b0c5;
  font-size: 9px;
  line-height: 1.65;
}

/* Skills */
.map-legend {
  display: flex;
  gap: 13px;
  color: var(--muted);
  font-size: 9px;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.map-legend i.done { background: var(--mint); }
.map-legend i.current { background: var(--blue); }
.map-legend i.waiting { background: #c8ceda; }

.skill-map-shell {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background-color: #f8f9fc;
  background-image: radial-gradient(#d9deea 1px, transparent 1px);
  background-size: 23px 23px;
  box-shadow: var(--shadow);
}

.skill-map-tabs {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
}

.skill-map-tabs button {
  padding: 7px 15px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}

.skill-map-tabs button.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 700;
}

.skill-map {
  position: absolute;
  inset: 75px 290px 25px 20px;
}

.skill-map svg {
  width: 100%;
  height: 100%;
}

.skill-link {
  fill: none;
  stroke: #d1d7e4;
  stroke-width: 3;
  stroke-dasharray: 5 5;
}

.skill-link.done {
  stroke: #78d8bd;
  stroke-dasharray: none;
}

.skill-node {
  position: absolute;
  width: 126px;
  min-height: 64px;
  padding: 9px 10px;
  border: 2px solid #d9deea;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(33, 48, 86, 0.07);
  text-align: right;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.skill-node strong,
.skill-node small {
  display: block;
}

.skill-node strong { font-size: 10px; }
.skill-node small { margin-top: 3px; color: var(--muted); font-size: 8px; }

.skill-node.done {
  border-color: var(--mint);
}

.skill-node.done::before {
  content: "✓";
  position: absolute;
  top: -8px;
  left: -7px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 3px solid #f8f9fc;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  font-size: 8px;
}

.skill-node.current {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px #e6ebff, 0 8px 20px rgba(33, 48, 86, 0.08);
}

.skill-node.locked {
  background: #f4f5f8;
  color: #8e96a8;
  box-shadow: none;
}

.skill-detail {
  position: absolute;
  z-index: 4;
  top: 75px;
  right: 18px;
  bottom: 22px;
  width: 245px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.skill-detail h2 {
  margin: 15px 0 7px;
  font: 700 18px "Rubik";
}

.skill-detail > p {
  min-height: 84px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.skill-detail > div:not(.progress-bar) {
  display: flex;
  justify-content: space-between;
  margin: 17px 0 7px;
  color: var(--muted);
  font-size: 9px;
}

.skill-detail ul {
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.skill-detail li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.curriculum-browser {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.catalog-heading h2 {
  margin: 4px 0;
  font: 700 19px "Rubik", "Heebo";
}

.catalog-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.catalog-search {
  width: 245px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8f9fc;
  color: var(--muted);
}

.catalog-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
}

.catalog-tracks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-top: 20px;
}

.catalog-track {
  min-height: 92px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: right;
  cursor: pointer;
}

.catalog-track:hover,
.catalog-track.active {
  border-color: var(--track-color, var(--blue));
  background: color-mix(in srgb, var(--track-color, var(--blue)) 7%, white);
}

.catalog-track > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--track-color, var(--blue)) 13%, white);
  color: var(--track-color, var(--blue));
  font-size: 15px;
  font-weight: 800;
}

.catalog-track strong,
.catalog-track small {
  display: block;
}

.catalog-track strong {
  font-size: 9px;
}

.catalog-track small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
}

.catalog-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 16px;
}

.catalog-skill {
  min-height: 55px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: right;
  cursor: pointer;
}

.catalog-skill:hover {
  border-color: #b9c6ef;
  box-shadow: 0 6px 16px rgba(34,49,87,.06);
}

.catalog-skill > span:first-child {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f0f2f7;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.catalog-skill.mastered > span:first-child {
  background: var(--mint-soft);
  color: #168168;
}

.catalog-skill.in-progress > span:first-child {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.catalog-skill strong,
.catalog-skill small {
  display: block;
}

.catalog-skill strong { font-size: 9px; }
.catalog-skill small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.catalog-skill em { color: var(--muted); font-size: 8px; font-style: normal; }

/* Authentication and unit reader */
.auth-gate,
.unit-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: #f3f5f8;
}

.unit-modal {
  background: rgba(20, 29, 55, .62);
  backdrop-filter: blur(12px);
}

.auth-panel {
  width: min(480px, 100%);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(47, 65, 114, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(30, 43, 82, .12);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  display: none;
  min-width: 0;
  flex-direction: column;
  padding: 34px 40px 30px;
  background:
    radial-gradient(circle at 12% 78%, rgba(255, 198, 91, .2), transparent 22%),
    linear-gradient(145deg, #263f9c 0%, #455fc7 55%, #526bd0 100%);
  color: #fff;
}

.auth-visual::before,
.auth-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  border: 38px solid rgba(255,255,255,.05);
  border-radius: 50%;
}

.auth-visual::before {
  width: 210px;
  height: 210px;
  top: -135px;
  left: -105px;
}

.auth-visual::after {
  width: 290px;
  height: 290px;
  right: -185px;
  bottom: -190px;
}

.auth-brand {
  position: relative;
  z-index: 2;
  color: #fff;
}

.auth-brand .brand-mark {
  background: rgba(255,255,255,.14);
  box-shadow: none;
}

.auth-brand small { color: rgba(255,255,255,.68); }

.auth-welcome-copy {
  position: relative;
  z-index: 2;
  margin-top: 32px;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.84);
  font-size: 12px;
  font-weight: 700;
}

.auth-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffca62;
  box-shadow: 0 0 0 5px rgba(255, 202, 98, .15);
}

.auth-welcome-copy h2 {
  margin: 13px 0 9px;
  font: 700 clamp(31px, 3vw, 39px)/1.25 "Rubik", "Heebo", sans-serif;
  letter-spacing: -.02em;
}

.auth-welcome-copy h2 em {
  color: #ffcf70;
  font-style: normal;
}

.auth-welcome-copy p {
  max-width: 470px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  line-height: 1.75;
}

.auth-learning-story {
  position: relative;
  z-index: 2;
  min-height: 255px;
  flex: 1;
  display: grid;
  place-items: center;
  margin: 4px -8px 0;
}

.auth-learning-story svg {
  width: 100%;
  max-height: 285px;
  overflow: visible;
}

.auth-learning-path {
  fill: none;
  stroke: rgba(255,255,255,.2);
  stroke-dasharray: 7 11;
  stroke-linecap: round;
  stroke-width: 3;
}

.auth-float-card rect {
  fill: #fff;
  stroke: rgba(39, 55, 112, .08);
  stroke-width: 1;
}

.auth-float-card circle { fill: #edf1ff; }
.auth-float-card path {
  fill: none;
  stroke: #3e5bc3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.auth-float-card text {
  fill: #233258;
  direction: rtl;
  font: 700 15px "Heebo", sans-serif;
  text-anchor: middle;
}

.auth-float-card .auth-float-sub {
  fill: #778099;
  font-size: 11px;
  font-weight: 500;
}

.auth-progress-badge > circle {
  fill: #ff8066;
  stroke: rgba(255,255,255,.8);
  stroke-width: 4;
}

.auth-progress-badge path {
  fill: none;
  stroke: rgba(255,255,255,.66);
  stroke-linecap: round;
  stroke-width: 5;
}

.auth-progress-badge text {
  fill: #fff;
  font: 800 16px "Heebo", sans-serif;
  text-anchor: middle;
}

.auth-benefits {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.auth-benefits span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.85);
  font-size: 10px;
}

.auth-benefits i {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #ffcf70;
  font-style: normal;
  font-weight: 800;
}

.auth-benefits strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-gate.join-mode {
  background: #f3f5f8;
  backdrop-filter: none;
}

.auth-gate.join-mode .auth-panel {
  width: min(480px, 100%);
  min-height: 0;
  grid-template-columns: 1fr;
  border: 1px solid rgba(47, 65, 114, .12);
  box-shadow: 0 18px 48px rgba(30, 43, 82, .12);
}

.auth-gate.join-mode .auth-visual {
  display: none;
}

.auth-gate.join-mode .auth-welcome-copy,
.auth-gate.join-mode .auth-learning-story,
.auth-gate.join-mode .auth-benefits {
  display: none;
}

.join-class-summary {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 35px 6px 10px;
}

.join-invite-badge {
  width: max-content;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 10px;
  font-weight: 700;
}

.join-class-summary > p {
  margin: 25px 0 3px;
  color: rgba(255,255,255,.7);
  font-size: 12px;
}

.join-class-summary h2 {
  margin: 0;
  font: 700 27px/1.35 "Rubik", "Heebo", sans-serif;
}

.join-class-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 26px 0;
}

.join-class-meta > span {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.09);
}

.join-class-meta small,
.join-class-meta strong {
  display: block;
}

.join-class-meta small {
  margin-bottom: 4px;
  color: rgba(255,255,255,.66);
  font-size: 9px;
}

.join-class-meta strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.join-class-summary ul {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.join-class-summary li {
  position: relative;
  padding-right: 25px;
  color: rgba(255,255,255,.88);
  font-size: 11px;
}

.join-class-summary li::before {
  content: "✓";
  position: absolute;
  top: -1px;
  right: 0;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-dark);
  font-size: 9px;
  font-weight: 800;
}

.auth-form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 34px 38px 36px;
  overflow: visible;
  border-right: 0;
  background: #fff;
}

.auth-gate.join-mode .auth-form {
  padding: 34px 38px 36px;
}

.auth-gate.join-mode .auth-form > .overline {
  color: var(--blue);
}

.auth-gate.join-mode .auth-form h1 {
  font-size: 26px;
}

.auth-gate.join-mode .auth-form > p {
  font-size: 12px;
  line-height: 1.65;
}

.auth-gate.join-mode .auth-form label {
  font-size: 11px;
}

.auth-gate.join-mode .existing-toggle {
  padding: 10px 11px;
  border-radius: 10px;
  background: #f5f7fb;
}

.auth-tabs {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 13px 0 0;
  border: 0;
  background: transparent;
}

.auth-tabs button {
  min-height: 30px;
  padding: 3px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #465fb8;
  font-size: 10px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-tabs button.active {
  display: none;
}

.auth-inline-link,
.auth-back-link {
  width: max-content;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #465fb8;
  font: 600 10px/1.5 "Rubik", "Heebo", sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

#forgot-password-link {
  align-self: flex-start;
  margin: -1px 0 2px;
}

.auth-back-link {
  margin-bottom: 19px;
  color: #667188;
  text-decoration: none;
}

.auth-status {
  padding: 10px 12px;
  margin: 8px 0 12px !important;
  border: 1px solid #cfe3d8;
  border-radius: 6px;
  background: #f3faf6;
  color: #35664a !important;
  font-size: 11px !important;
  font-weight: 600;
  line-height: 1.65 !important;
}

.auth-reset-actions {
  display: flex;
  justify-content: center;
  min-height: 28px;
  margin-top: 12px;
}

.auth-mobile-brand {
  display: none;
}

.auth-form-intro .overline {
  color: #3d5dc9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-form h1 {
  margin: 5px 0 7px;
  color: #1d2947;
  font: 650 25px/1.35 "Rubik", "Heebo", sans-serif;
  letter-spacing: 0;
}

.auth-form-intro > p,
.auth-form > p:not(.auth-error):not(.auth-reassurance) {
  margin: 0;
  color: #626c83;
  font-size: 11px;
  line-height: 1.65;
}

.auth-course-context {
  padding-bottom: 23px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e6e9f0;
}

.auth-course-context > span {
  display: block;
  margin-bottom: 5px;
  color: #6e778b;
  font-size: 10px;
  font-weight: 600;
}

.auth-course-context h1 {
  margin: 0 0 6px;
  color: #202c45;
  font: 650 25px/1.35 "Rubik", "Heebo", sans-serif;
}

.auth-course-context p {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  margin: 0;
  border: 1px solid #dbe1eb;
  border-radius: 4px;
  background: #f7f8fa;
  color: #596477;
  font-size: 10px;
  line-height: 1.5;
}

.auth-fields {
  display: grid;
  gap: 12px;
  padding: 18px 0 5px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #3f4a64;
  font-size: 11px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cfd6e8;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: #1e2944;
  direction: rtl;
  font-size: 13px;
  text-align: right;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  direction: ltr;
  text-align: left;
}

.auth-form input::placeholder { color: #929aae; opacity: 1; }
.auth-form input:focus { border-color: #4d6ee7; box-shadow: 0 0 0 4px rgba(77, 110, 231, .14); }
.auth-form .auth-error { min-height: 20px; margin: 5px 0 7px; color: #a93232; font-size: 12px; font-weight: 600; }

.auth-submit {
  width: 100%;
  min-height: 48px;
  border-radius: 6px;
  font-size: 12px;
  box-shadow: 0 7px 16px rgba(61, 92, 200, .16);
}

.auth-submit.button-primary { background: #3d5cc8; }
.auth-submit.button-primary:hover { background: #304eaf; }

.auth-reassurance {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0 !important;
  color: #667188 !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
  text-align: center;
}

.auth-reassurance span {
  color: #178269;
  font-weight: 900;
}

.student-entry {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  margin-top: 18px;
  border: 1px solid #dfe8ee;
  border-radius: 12px;
  background: linear-gradient(90deg, #f2f8f6, #f6f8fd);
  text-align: right;
}

.student-entry-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #ddf3eb;
  color: #13745d;
  font-size: 17px;
  font-weight: 800;
}

.student-entry strong {
  display: block;
  color: #2e3a55;
  font-size: 11px;
}

.student-entry p {
  margin: 2px 0 0;
  color: #6d768a;
  font-size: 10px;
  line-height: 1.55;
}

.join-back {
  align-self: flex-start;
  padding: 0;
  margin-bottom: 18px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 9px;
  cursor: pointer;
}

.existing-toggle {
  display: flex !important;
  grid-template-columns: 17px 1fr;
  align-items: center;
  gap: 7px !important;
  font-weight: 500 !important;
}

.existing-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  box-shadow: none !important;
}

.unit-modal {
  align-items: start;
  overflow-y: auto;
}

.unit-modal-panel {
  position: relative;
  width: min(900px, 100%);
  margin: 25px 0;
  padding: 35px;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(14,24,52,.28);
}

.unit-modal-close {
  position: absolute;
  top: 17px;
  left: 17px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.class-modal-panel {
  width: min(640px, 100%);
  padding: 28px;
  border-radius: 8px;
}

#class-modal {
  background: rgba(243, 245, 248, .98);
  backdrop-filter: none;
}

.class-form,
.class-created {
  display: grid;
  gap: 12px;
  padding: 8px 16px;
}

.class-modal-header h1,
.class-created h1 {
  margin: 4px 0 0;
  font: 700 23px "Rubik", "Heebo";
}

.class-modal-header > p,
.class-created > p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.class-catalog-breadcrumbs {
  --catalog-accent: #64748b;
  --catalog-surface: #f8fafc;
  min-height: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-block: 6px;
  border-bottom: 1px solid #e8ebf1;
  color: #6f788a;
  font-size: 9px;
}

.class-catalog-step {
  --catalog-accent: #64748b;
  --catalog-surface: #f8fafc;
}

#class-catalog-step[data-catalog-domain="computer-science"],
#class-catalog-breadcrumbs[data-catalog-domain="computer-science"],
.class-catalog-option[data-catalog-domain="computer-science"] { --catalog-accent: #3f63bd; --catalog-surface: #f1f5ff; }
#class-catalog-step[data-catalog-domain="cinema"],
#class-catalog-breadcrumbs[data-catalog-domain="cinema"],
.class-catalog-option[data-catalog-domain="cinema"] { --catalog-accent: #2f7d62; --catalog-surface: #eff8f4; }
#class-catalog-step[data-catalog-domain="physics"],
#class-catalog-breadcrumbs[data-catalog-domain="physics"],
.class-catalog-option[data-catalog-domain="physics"] { --catalog-accent: #7658ae; --catalog-surface: #f6f2fb; }
#class-catalog-step[data-catalog-domain="mathematics"],
#class-catalog-breadcrumbs[data-catalog-domain="mathematics"],
.class-catalog-option[data-catalog-domain="mathematics"] { --catalog-accent: #a86a19; --catalog-surface: #fff8ec; }

#class-catalog-breadcrumbs[data-catalog-domain] { border-inline-start: 3px solid var(--catalog-accent); padding-inline-start: 9px; }

.class-catalog-breadcrumbs button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--catalog-accent);
  font: inherit;
  cursor: pointer;
}

.class-catalog-breadcrumbs strong { color: #34405a; font-weight: 700; }
.class-catalog-step, .class-details-step { display: grid; gap: 12px; }
.class-step-heading { display: none; }
.class-step-heading h2 { margin: 0; color: #29364f; font: 650 15px "Rubik", "Heebo"; }
.class-step-heading > span { color: #7b8495; font-size: 8px; }
.class-catalog-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.class-catalog-option {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #dfe4ed;
  border-inline-start: 4px solid var(--catalog-accent);
  border-radius: 8px;
  background: var(--catalog-surface);
  color: #2b3851;
  text-align: right;
  cursor: pointer;
}

.class-catalog-option:hover, .class-catalog-option:focus-visible { border-color: var(--catalog-accent); background: var(--catalog-surface); outline: 2px solid color-mix(in srgb, var(--catalog-accent) 18%, transparent); outline-offset: 1px; }
.class-catalog-option strong { font-size: 12px; }
.class-catalog-course-option { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
.class-catalog-course-option small { color: #68748a; font-size: 10px; line-height: 1.35; }
.class-catalog-empty { margin: 0; padding: 24px 10px; color: var(--muted); text-align: center; font-size: 10px; }

.class-selected-course {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #f8faff;
}

.class-selected-course small, .class-selected-course strong { display: block; }
.class-selected-course small { color: #707a8e; font-size: 8px; }
.class-selected-course strong { margin-top: 3px; color: #2b3851; font-size: 12px; }
.class-selected-course button { padding: 6px 8px; border: 0; background: transparent; color: #4159b5; font-size: 9px; font-weight: 700; cursor: pointer; }

.class-form label {
  display: grid;
  gap: 6px;
  color: #586278;
  font-size: 9px;
  font-weight: 700;
}

.class-form input {
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
}

.class-form input:focus { border-color: var(--blue); }

.class-created-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.class-created-summary span {
  padding: 10px 12px;
  border: 1px solid #e1e5ed;
  border-radius: 7px;
  background: #f8f9fb;
  color: #6c7588;
  font-size: 9px;
}

.class-created-summary strong {
  display: block;
  margin-top: 3px;
  color: #27344e;
  font-size: 11px;
}

.created-link,
.invite-box > div {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.created-link input,
.invite-box input {
  min-width: 0;
  height: 42px;
  flex: 1;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: #f8f9fc;
  color: #56617a;
  direction: ltr;
  font: 500 9px Consolas, monospace;
}

.created-link button,
.invite-box > div button {
  min-width: 72px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.unit-reader > h1 {
  margin: 8px 0;
  font: 700 25px "Rubik", "Heebo";
}

.unit-reader > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.unit-meta {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}

.unit-meta span {
  padding: 5px 9px;
  border-radius: 9px;
  background: #f1f3f8;
  color: var(--muted);
  font-size: 8px;
}

.unit-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 18px;
}

.unit-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.unit-section.full { grid-column: 1 / -1; }
.unit-section h3 { margin: 0 0 7px; font: 700 12px "Rubik", "Heebo"; }
.unit-section p,
.unit-section li { color: var(--muted); font-size: 9px; line-height: 1.7; }
.unit-section ul { padding-right: 18px; margin: 0; }
.unit-section pre {
  overflow-x: auto;
  padding: 13px;
  border-radius: 10px;
  background: #18233e;
  color: #dbe3f5;
  direction: ltr;
  font: 500 9px/1.7 Consolas, monospace;
  text-align: left;
}

/* Structured course and lesson player */
#unit-modal:has(.lesson-player) .unit-modal-panel {
  width: min(1180px, 100%);
  padding: 26px;
}

.lesson-loading,
.lesson-error,
.lesson-completion {
  min-height: 360px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
}

.lesson-loading > span {
  width: 38px;
  height: 38px;
  border: 4px solid #dfe5f7;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: lesson-spin .8s linear infinite;
}

@keyframes lesson-spin { to { transform: rotate(360deg); } }

.course-overview > h1,
.lesson-completion h1 {
  margin: 12px 0 8px;
  font: 700 30px/1.3 "Rubik", "Heebo";
}

.course-overview > p,
.lesson-completion > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.course-overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 10px;
}

.course-overview-meta span {
  padding: 7px 11px;
  border-radius: 10px;
  background: #f1f4fa;
  color: #58647d;
  font-size: 12px;
}

.course-progress-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf5;
}

.course-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5c72da, #6acbb6);
}

.course-objectives {
  padding: 20px 22px;
  margin: 22px 0;
  border-radius: 16px;
  background: #f5f7fd;
}

.course-objectives h2,
.course-lessons-heading h2 {
  margin: 0 0 10px;
  font: 700 18px "Rubik", "Heebo";
}

.course-objectives ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 30px;
  padding-right: 20px;
  margin: 0;
  color: #4f5c75;
  font-size: 13px;
  line-height: 1.7;
}

.course-lessons-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.course-lessons-heading span { color: var(--muted); font-size: 12px; }
.course-lessons { display: grid; gap: 10px; }

.course-lesson-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.course-lesson-card.completed { border-color: #bce8dc; background: #fbfffd; }
.course-lesson-card.locked { opacity: .55; background: #f6f7fa; }

.course-lesson-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.course-lesson-card.completed .course-lesson-number { background: var(--mint-soft); color: #18816b; }
.course-lesson-card h3 { margin: 0 0 4px; font: 700 15px "Rubik", "Heebo"; }
.course-lesson-card p { margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.course-lesson-card small { color: #78839a; font-size: 10px; }

.lesson-player-header {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 110px;
  align-items: start;
  gap: 16px;
  padding-left: 36px;
}

.lesson-player-header h1 { margin: 4px 0; font: 700 23px/1.35 "Rubik", "Heebo"; }
.lesson-player-header p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.lesson-saved-state { display: grid; justify-items: end; color: #718098; font-size: 10px; }
.lesson-saved-state strong { color: var(--blue); font-size: 18px; }

.lesson-player-header.physics-course-header {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  padding: 18px 22px;
  border-radius: 16px;
}

.lesson-player-header.teacher-course-preview-header {
  grid-template-columns: 150px minmax(0, 1fr) minmax(220px, 280px);
  align-items: start;
  padding: 18px 22px;
  border-radius: 16px;
  background: #eef4f8;
  color: #26364d;
}

.lesson-player-header.physics-course-header.has-teacher-context {
  grid-template-columns: 150px minmax(0, 1fr) minmax(220px, 280px);
  align-items: start;
}

.physics-course-header > .text-button { color: inherit; }
.teacher-course-preview-header > .text-button { color: inherit; }

.teacher-course-header-identity {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.teacher-course-name {
  overflow: hidden;
  color: inherit;
  font: 700 12px "Rubik", "Heebo";
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-preview-context {
  display: grid;
  gap: 3px;
  justify-self: stretch;
  padding-inline-start: 16px;
  border-inline-start: 1px solid currentColor;
  color: inherit;
  direction: rtl;
  font-size: 11px;
  line-height: 1.55;
  opacity: .8;
  text-align: right;
}

.teacher-preview-context strong {
  color: inherit;
  font: 700 12px "Rubik", "Heebo";
}

.lesson-player-progress {
  height: 6px;
  overflow: hidden;
  margin: 17px 0;
  border-radius: 99px;
  background: #e9edf5;
}

.lesson-player-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--mint)); }

.lesson-player-layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: 20px;
}

.lesson-player-layout.physics-course-simple-layout {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 18px;
}

.lesson-section-nav {
  align-self: start;
  display: grid;
  gap: 5px;
  max-height: 650px;
  overflow-y: auto;
  padding-left: 5px;
}

.lesson-section-nav button {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #667188;
  text-align: right;
  cursor: pointer;
}

.lesson-section-nav button:disabled { opacity: .42; cursor: not-allowed; }
.lesson-section-nav button.active { border-color: #cfd8f5; background: #f1f4fe; color: var(--blue-dark); }
.lesson-section-nav button.done span { background: var(--mint-soft); color: #16816a; }
.lesson-section-nav button span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: #eef1f7; font-size: 10px; }
.lesson-section-nav button strong { font-size: 11px; line-height: 1.3; }

.lesson-section-stage {
  min-height: 620px;
  padding: 28px 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 15px 35px rgba(30, 45, 80, .07);
}

.lesson-section-kicker { display: flex; justify-content: space-between; color: #7a8599; font-size: 10px; }
.lesson-section-kicker em { font-style: normal; direction: ltr; }
.lesson-section-stage > h2 { margin: 11px 0 24px; font: 700 25px "Rubik", "Heebo"; }
.lesson-blocks { display: grid; gap: 16px; }
.lesson-block-heading { margin: 0; font: 700 22px "Rubik", "Heebo"; }
.lesson-block-paragraph { margin: 0; color: #45516a; font-size: 16px; line-height: 1.9; }
.lesson-image { margin: 0; text-align: center; }
.lesson-image img { max-width: 100%; height: auto; border-radius: 14px; }
.lesson-image figcaption { margin-top: 7px; color: var(--muted); font-size: 11px; }
.lesson-image.cinema-learning-visual {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(31, 95, 116, .18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 2%, rgba(245, 176, 65, .18), transparent 35%),
    linear-gradient(145deg, #f8fbfa 0%, #edf5f4 100%);
  box-shadow: 0 20px 48px rgba(17, 46, 61, .12);
  text-align: start;
}
.lesson-image.cinema-learning-visual::before {
  content: "המחשה לימודית";
  position: absolute;
  z-index: 1;
  inset-block-start: 26px;
  inset-inline-start: 26px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(8, 30, 44, .78);
  color: #fff8e8;
  backdrop-filter: blur(8px);
  font: 700 12px "Rubik", "Heebo", sans-serif;
  letter-spacing: .02em;
}
.lesson-image.cinema-learning-visual img {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 17px;
  background: #0d2637;
  box-shadow: 0 8px 25px rgba(10, 35, 50, .17);
}
.cinema-learning-visual-link { position: relative; display: block; border-radius: 17px; }
.cinema-learning-visual-link > span {
  position: absolute;
  inset-inline-end: 13px;
  inset-block-end: 13px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(8, 30, 44, .8);
  color: #fff;
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  opacity: .84;
  transition: opacity .18s ease, transform .18s ease;
}
.cinema-learning-visual-link:hover > span,
.cinema-learning-visual-link:focus-visible > span { opacity: 1; transform: translateY(-2px); }
.cinema-learning-visual-link:focus-visible { outline: 3px solid #d88927; outline-offset: 4px; }
.lesson-image.cinema-learning-diagram img { aspect-ratio: 16 / 9; object-fit: contain; }
.lesson-image.cinema-learning-anchor img { aspect-ratio: 3 / 2; object-fit: cover; }
.lesson-image.cinema-learning-visual figcaption {
  position: relative;
  margin: 12px 4px 1px;
  padding-inline-start: 27px;
  color: #29485a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  text-align: start;
}
.lesson-image.cinema-learning-visual figcaption::before {
  content: "◉";
  position: absolute;
  inset-inline-start: 3px;
  color: #d88927;
}
.lesson-block-error { padding: 13px; border: 1px solid #efc9c1; border-radius: 10px; background: #fff5f2; color: #8b584d; font-size: 12px; }
.lesson-animation { display: grid; justify-items: center; gap: 9px; }
.lesson-animation.replaying .path-node circle,
.lesson-animation.replaying .path-edge { animation: lesson-path-pulse 2.8s ease both; animation-delay: calc(max(0, var(--path-index)) * .45s); }
.lesson-code-block { overflow-x: auto; padding: 18px; border-radius: 12px; background: #18233e; color: #e2e8f8; direction: ltr; font: 500 13px/1.75 Consolas, monospace; text-align: left; }

.lesson-callout {
  padding: 18px 20px;
  border-right: 4px solid var(--blue);
  border-radius: 12px;
  background: #f3f6ff;
  color: #354468;
  font-size: 16px;
  line-height: 1.8;
}

.lesson-callout.question { border-color: #9c69d8; background: #f8f3ff; }
.lesson-callout.objective { border-color: var(--mint); background: #f0fbf8; }

.lesson-comparison > h3 { margin: 0 0 12px; font: 700 16px "Rubik", "Heebo"; }
.lesson-comparison > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lesson-comparison article,
.lesson-comparison button { display: grid; grid-template-columns: 34px 1fr; gap: 3px 9px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: inherit; text-align: right; }
.lesson-comparison button { cursor: pointer; }
.lesson-comparison button:hover,
.lesson-comparison button.selected { border-color: var(--blue); background: var(--blue-soft); }
.lesson-comparison article span,
.lesson-comparison button span { grid-row: 1 / 3; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--blue); }
.lesson-comparison article strong,
.lesson-comparison button strong { font-size: 13px; }
.lesson-comparison article small,
.lesson-comparison button small { color: var(--muted); font-size: 10px; }

.lesson-tree-wrap { padding: 14px; border-radius: 15px; background: linear-gradient(145deg, #f7f9fd, #eef2fa); }
.lesson-tree { width: 100%; max-height: 430px; }
.lesson-tree-edges line { stroke: #9aa8c7; stroke-width: 3; }
.lesson-level-guide line { stroke: #d8deeb; stroke-width: 1; stroke-dasharray: 5 6; }
.lesson-level-guide text { fill: #8490a7; font-size: 12px; }
.lesson-tree-node circle { fill: #fff; stroke: #6579c8; stroke-width: 3; filter: drop-shadow(0 5px 5px rgba(34, 48, 90, .1)); }
.lesson-tree-node text { fill: #263453; font-size: 17px; font-weight: 800; text-anchor: middle; }
.lesson-tree-node .node-label { fill: #6d7890; font-size: 10px; font-weight: 600; }
.lesson-tree-node.highlighted circle { fill: #e5f8f2; stroke: #38a98f; }
.lesson-tree-node.path-node circle,
.lesson-tree-edges .path-edge { animation: lesson-path-pulse 2.8s ease both; animation-delay: calc(max(0, var(--path-index)) * .45s); }
.lesson-tree-node.path-node circle { fill: #eef2ff; }
.lesson-tree-edges .path-edge { stroke: var(--blue); stroke-width: 5; }
@keyframes lesson-path-pulse { 0% { opacity: .2; } 45% { opacity: 1; } 100% { opacity: 1; } }
.lesson-tree-node.interactive { cursor: pointer; }
.lesson-tree-node.interactive:hover circle,
.lesson-tree-node.selected circle { fill: #eaf0ff; stroke: var(--blue); stroke-width: 5; }
.lesson-tree-node.relation-parent circle,
.lesson-tree-node.relation-ancestor circle { fill: #fff0ea; stroke: #d17861; }
.lesson-tree-node.relation-child circle,
.lesson-tree-node.relation-descendant circle { fill: #e9f8f3; stroke: #36a087; }
.lesson-tree-node.relation-sibling circle { fill: #f5edff; stroke: #9463c7; }
.tree-inspector { margin: 5px 0 0; color: #56637b; font-size: 12px; text-align: center; }

.lesson-definition,
.worked-example,
.lesson-common-mistake,
.lesson-summary {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.lesson-definition > span,
.worked-example > span,
.lesson-question-purpose { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.lesson-definition h3,
.worked-example h3,
.lesson-summary h3 { margin: 7px 0 10px; font: 700 18px "Rubik", "Heebo"; }
.lesson-definition > p,
.worked-example > p,
.lesson-common-mistake p,
.lesson-summary { color: #4b5870; font-size: 14px; line-height: 1.8; }
.lesson-definition > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.lesson-definition > div p { padding: 11px; margin: 0; border-radius: 9px; background: #f6f8fc; font-size: 12px; }
.worked-example { border-color: #cdd8f7; background: #f8faff; }
.worked-example li { margin-bottom: 6px; color: #4b5870; font-size: 13px; line-height: 1.6; }
.lesson-common-mistake { border-color: #f1c7bd; background: #fff6f3; }
.lesson-common-mistake > strong { color: #ba5f4d; }
.lesson-summary { background: #f3f9f7; }
.lesson-summary li { margin-bottom: 6px; }
.lesson-next-copy { padding-top: 12px; border-top: 1px solid #dce9e5; color: #287c68; font-weight: 700; }

.bagrut-full-problem {
  scroll-margin-top: 18px;
  border: 1px solid #b7c6c2;
  border-radius: 6px;
  background: #fff;
}
.bagrut-full-problem > summary {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #eef6f3;
  color: #183b34;
  cursor: pointer;
  list-style: none;
}
.bagrut-full-problem > summary::-webkit-details-marker { display: none; }
.bagrut-full-problem > summary span { padding: 4px 7px; border: 1px solid #8bb5aa; border-radius: 4px; font-size: 10px; font-weight: 800; }
.bagrut-full-problem > summary strong { font: 700 16px "Rubik", "Heebo", sans-serif; }
.bagrut-full-problem > summary em { color: #537169; font-size: 10px; font-style: normal; }
.bagrut-full-problem-body { display: grid; gap: 22px; padding: 22px; }
.bagrut-full-problem:not(details) { display: grid; gap: 12px; padding: 20px 22px; }
.bagrut-problem-context-header { display: flex; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid #dce3e1; }
.bagrut-problem-context-header span { padding: 4px 8px; border: 1px solid #8bb5aa; border-radius: 999px; color: #356b60; font-size: 10px; font-weight: 800; }
.bagrut-problem-context-header strong { color: #263640; font: 700 16px "Rubik", "Heebo", sans-serif; }
.bagrut-full-problem-body > header { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid #dce3e1; }
.bagrut-full-problem-body > header span { color: #a34f42; font-size: 10px; font-weight: 800; }
.bagrut-source-stem { max-width: 900px; margin: 6px 0 0; color: #1f2e3d; font: 500 15px/1.9 "Rubik", "Heebo", sans-serif; }
.bagrut-source-transition { max-width: 900px; margin: 4px 0 0; color: #1f2e3d; font: 500 15px/1.9 "Rubik", "Heebo", sans-serif; }
.bagrut-source-group { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 7px; max-width: 900px; color: #1f2e3d; font: 500 15px/1.9 "Rubik", "Heebo", sans-serif; }
.bagrut-source-group > strong { color: #9b4c40; }
.bagrut-source-group > p { margin: 0; }
.bagrut-source-part-label { display: inline-block; margin-inline-end: 4px; color: #9b4c40; font-weight: 800; }
.bagrut-full-problem-body > header small { color: #66736f; direction: ltr; font-size: 9px; text-align: left; }
.bagrut-source-visual { margin: 0; }
.bagrut-source-graph { max-width: 760px; width: 100%; justify-self: center; }
.bagrut-source-graph > .course-simulation { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.bagrut-source-graph .k5-question-graph { margin: 0; }
.bagrut-source-table-wrap { overflow-x: auto; }
.bagrut-source-table { width: min(620px, 100%); margin: 0 auto; border-collapse: collapse; direction: ltr; text-align: center; }
.bagrut-source-table th, .bagrut-source-table td { padding: 9px 14px; border: 1px solid #bcc8c5; }
.bagrut-source-table th { background: #f2f5f4; color: #263b36; }
.bagrut-source-diagram { max-width: 820px; width: 100%; justify-self: center; }
.bagrut-source-diagram svg { width: 100%; display: block; overflow: visible; }
.bagrut-source-diagram line { stroke: #3f4f5c; stroke-width: 2; }
.bagrut-source-diagram circle { fill: #c65f4e; stroke: #fff; stroke-width: 2; }
.bagrut-source-diagram text { fill: #283742; font: 700 12px Arial, sans-serif; text-anchor: middle; }
.bagrut-source-diagram .track-label { fill: #1a6f60; font-size: 16px; }
.bagrut-source-diagram .axis-label { text-anchor: end; }
.bagrut-source-diagram figcaption { color: #66736f; font-size: 10px; text-align: center; }
.bagrut-graph-choice-groups { display: grid; gap: 18px; }
.bagrut-graph-choice-groups > section { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: 10px; }
.bagrut-graph-choice-groups figure { margin: 0; text-align: center; }
.bagrut-graph-choice-groups svg { width: 100%; display: block; background: #fbfcfc; }
.bagrut-graph-choice-groups .mini-axis { fill: none; stroke: #4a5864; stroke-width: 2; }
.bagrut-graph-choice-groups .mini-curve { fill: none; stroke: #b04f41; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bagrut-graph-choice-groups text { fill: #283742; font: 700 12px Arial, sans-serif; }
.bagrut-graph-choice-groups figcaption { margin-top: 2px; color: #34433f; font-weight: 800; }
.bagrut-overview-illustration h4,
.bagrut-global-context h4,
.bagrut-original-parts h4 { margin: 0 0 12px; color: #263640; font: 700 15px "Rubik", "Heebo", sans-serif; }
.bagrut-global-context { padding-block: 18px; border-block: 1px solid #dce3e1; }
.bagrut-global-context dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.bagrut-global-context dl > div { display: grid; grid-template-columns: 105px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid #e6ebe9; }
.bagrut-global-context dt { color: #1a6f60; font-size: 11px; font-weight: 800; }
.bagrut-global-context dd { display: grid; gap: 5px; margin: 0; color: #45535d; font-size: 12px; line-height: 1.6; }
.bagrut-global-context dd span { display: block; }
.bagrut-original-parts > ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.bagrut-original-parts > ol > li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; padding: 13px 4px; border-bottom: 1px solid #e0e6e4; color: #394750; font-size: 13px; line-height: 1.7; }
.bagrut-original-parts > ol > li > b { color: #a34f42; }
.bagrut-original-parts > ol > li > div > small { display: block; color: #6b7874; font-size: 10px; }
.bagrut-source-choices { display: grid; gap: 6px; margin: 10px 0 2px; padding-inline-start: 28px; list-style: decimal; }
.bagrut-source-choices li { padding-inline-start: 4px; color: #33444d; }

.bagrut-current-step { margin: 10px -22px 16px; padding: 13px 22px; border-block: 1px solid #d2dedb; background: #f4f8f7; }
.bagrut-current-step header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bagrut-current-step header > span { color: #a34f42; font-size: 10px; font-weight: 800; }
.bagrut-current-step .text-button { min-height: 32px; color: #166b5b; font-size: 10px; }
.bagrut-current-step > strong { display: block; margin-top: 3px; color: #25363e; font-size: 14px; }
.bagrut-current-step > p { margin: 4px 0 0; color: #53615f; font-size: 12px; line-height: 1.6; }
.bagrut-current-step > small { display: block; margin-top: 6px; color: #81654e; font-size: 9px; }

.lesson-question { padding: 22px; border: 1px solid #d5dcf0; border-radius: 15px; background: #fbfcff; }
.lesson-question.complete { border-color: #bde4da; background: #fbfffd; }
.lesson-question h3 { margin: 7px 0 15px; font: 700 18px/1.55 "Rubik", "Heebo"; }
[data-question-id^="kinematics5.question."] > :is(h2, h3, legend),
[data-question-id^="dynamicsHS.question."] > :is(h2, h3, legend),
[data-question-id^="geometricOptics.question."] > :is(h2, h3, legend),
[data-question-id^="kinematics5.question."] .lesson-multipart-part h4,
[data-question-id^="dynamicsHS.question."] .lesson-multipart-part h4,
[data-question-id^="geometricOptics.question."] .lesson-multipart-part h4 {
  font-family: "Rubik", "Heebo", sans-serif;
  font-weight: 500;
}
[data-question-id^="dynamicsHS.question.kinetic-friction-dynamics."] > h3,
[data-question-id^="dynamicsHS.question.kinetic-friction-dynamics."] .lesson-multipart-part h4,
[data-question-id^="dynamicsHS.question.multiple-bodies."] > h3,
[data-question-id^="dynamicsHS.question.multiple-bodies."] .lesson-multipart-part h4,
.teacher-detail-question.unit11-question .teacher-detail-question-body h4,
.teacher-detail-question.unit20-question .teacher-detail-question-body h4,
.teacher-detail-question.unit21-question .teacher-detail-question-body h4 {
  font-weight: 500;
}
[data-question-id^="kinematics5.question."] .course-exam-question-number,
[data-question-id^="dynamicsHS.question."] .course-exam-question-number,
[data-question-id^="geometricOptics.question."] .course-exam-question-number { font-weight: 700; }
.lesson-answer-options { display: grid; gap: 8px; }
.lesson-answer-options button { min-height: 48px; padding: 10px 14px; border: 1px solid #d4daea; border-radius: 11px; background: #fff; color: #35425c; font-size: 13px; text-align: right; cursor: pointer; }
.lesson-answer-options button.selected { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }
.lesson-answer-options button.correct { border-color: var(--mint); background: var(--mint-soft); color: #157961; }
.lesson-answer-options button.wrong { border-color: var(--coral); background: var(--coral-soft); color: #a34f42; }
.lesson-multipart-choice { display: grid; gap: 14px; margin-top: 14px; }
.lesson-multipart-part { padding: 12px 0 0; border-top: 1px solid #e3e8f2; }
.lesson-multipart-part:first-child { border-top: 0; padding-top: 0; }
.lesson-multipart-part h4 { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: #273750; }
.lesson-multipart-part h4 span { color: var(--blue-dark); }
.lesson-multipart-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lesson-multipart-options button { min-height: 38px; padding: 7px 9px; border: 1px solid #d4daea; border-radius: 8px; background: #fff; color: #35425c; font-size: 12px; line-height: 1.35; text-align: right; cursor: pointer; }
.lesson-multipart-options button:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-soft); }
.lesson-multipart-options button.selected { border-color: var(--blue); background: var(--blue-soft); }
.lesson-multipart-options button.correct { border-color: var(--mint); background: var(--mint-soft); color: #157961; }
.lesson-multipart-options button.wrong { border-color: var(--coral); background: var(--coral-soft); color: #a34f42; }
.lesson-multipart-options button:disabled { cursor: default; opacity: 1; }
.lesson-multipart-part-status { min-height: 18px; margin: 5px 0 0; color: #65718a; font-size: 12px; }
.lesson-multipart-options.visual-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.lesson-multipart-options button.visual-option { min-height: 170px; padding: 7px; text-align: center; }
.unit22-answer-visual { display: grid; gap: 4px; width: 100%; direction: ltr; }
.unit22-answer-option-label { justify-self: start; padding: 2px 7px; border-radius: 999px; background: #eef2fa; color: #334b70; font-size: 11px; font-weight: 800; direction: rtl; }
.unit22-answer-visual-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 4px; align-items: stretch; width: 100%; }
.unit22-answer-visual svg { display: block; width: 100%; min-height: 126px; border: 1px solid #e1e7f1; border-radius: 7px; background: #fbfcff; overflow: visible; }
.unit22-answer-surface { fill: none; stroke: #71809a; stroke-width: 3; stroke-linecap: round; }
.unit22-answer-body { fill: #e8eef9; stroke: #304768; stroke-width: 2.2; }
.unit22-answer-person { fill: #f4f7fc; stroke: #304768; stroke-width: 2.2; stroke-linecap: round; }
.unit22-answer-vector line { stroke: #c94755; stroke-width: 2.4; stroke-linecap: round; }
.unit22-answer-vector polygon { fill: #c94755; }
.unit22-answer-vector text { fill: #9d2838; font-size: 10px; font-weight: 800; }
.unit22-answer-vector-label { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #9d2838; font-size: 10px; font-weight: 650; line-height: 1; }
.unit22-answer-vector-label .math-formula { margin: 0; }
.unit11-answer-vector-label { box-sizing: border-box; padding: 1px 3px; border-radius: 3px; background: rgba(251, 252, 255, .96); font-size: 10px; }
.unit22-answer-vector .unit11-answer-label-connector { stroke: #8b96a8; stroke-width: .8; stroke-dasharray: 2 2; }
.unit22-answer-axis-vector line { stroke: #536784; stroke-dasharray: 4 3; }
.unit22-answer-axis-vector polygon { fill: #536784; }
.unit22-answer-axis-vector text { fill: #435570; }
.unit22-answer-panel-label { fill: #243955; font-size: 13px; font-weight: 900; }
.unit22-answer-measure rect { fill: #fff; stroke: #5f7190; stroke-width: 1.5; }
.unit22-answer-measure text { fill: #253a59; font-size: 10px; font-weight: 800; }
.unit22-answer-plot-axis, .unit22-answer-tick { stroke: #5c6d86; stroke-width: 1.2; }
.unit22-answer-series path { fill: none; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.unit22-answer-series-1 path, .unit22-answer-series-1 line { stroke: #277a9b; }
.unit22-answer-series-2 path, .unit22-answer-series-2 line { stroke: #c34f63; }
.unit22-answer-series-3 path, .unit22-answer-series-3 line { stroke: #7b5eb5; }
.unit22-answer-series-1 rect { fill: #5a9db7; }
.unit22-answer-series-2 rect { fill: #d06a79; }
.unit22-answer-series-3 rect { fill: #8d76bd; }
.unit22-answer-series-1 text { fill: #1f6d8b; }
.unit22-answer-series-2 text { fill: #a93d50; }
.unit22-answer-series-3 text { fill: #674a9e; }
.unit22-answer-axis-label { fill: #253955; font-size: 11px; font-weight: 900; }
.unit22-answer-tick-label { fill: #617089; font-size: 8px; }
.unit22-answer-value { fill: #283c59; font-size: 8px; font-weight: 800; paint-order: stroke; stroke: #fff; stroke-width: 2px; }
.unit22-answer-annotation { fill: #273c5a; font-size: 8px; font-weight: 800; paint-order: stroke; stroke: #fff; stroke-width: 2px; }
.unit22-answer-legend text { font-size: 9px; font-weight: 900; }
.unit22-answer-equations { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 10px; min-height: 24px; color: #263b59; }
@media (max-width: 760px) { .lesson-multipart-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .lesson-multipart-options.visual-options { grid-template-columns: 1fr; }
  .lesson-multipart-options button.visual-option { min-height: 160px; }
}
.lesson-open-response { display: grid; gap: 8px; margin: 12px 0; color: #253551; font-weight: 700; }
.lesson-open-response textarea { width: 100%; min-height: 145px; resize: vertical; padding: 14px 16px; border: 1px solid #cbd5e7; border-radius: 12px; background: #fff; color: #1b2940; font: 500 15px/1.65 "Rubik", "Heebo", sans-serif; }
.lesson-open-response textarea:focus { outline: 3px solid color-mix(in srgb, var(--blue) 20%, transparent); border-color: var(--blue); }
.lesson-open-response small { color: #58677f; font-weight: 500; line-height: 1.55; }
.lesson-question.complete .lesson-open-response textarea { background: #f5faf8; }
.lesson-open-response-saved { padding: 14px 16px; border: 1px solid #cbd5e7; border-radius: 12px; background: #f5faf8; color: #1b2940; font-weight: 500; line-height: 1.75; }
.lesson-code-response { display: grid; gap: 8px; margin: 14px 0; }
.lesson-code-response label { color: #253551; font-weight: 800; }
.lesson-code-response textarea { width: 100%; min-height: 190px; resize: vertical; padding: 16px; border: 1px solid #9cabc2; border-radius: 12px; background: #111a2e; color: #e8eefc; tab-size: 4; white-space: pre; overflow: auto; font: 500 14px/1.65 Consolas, "Cascadia Code", monospace; text-align: left; unicode-bidi: isolate; }
.lesson-code-response textarea:focus { outline: 3px solid color-mix(in srgb, var(--blue) 24%, transparent); border-color: var(--blue); }
.lesson-code-response small { color: #58677f; font-weight: 500; line-height: 1.55; }
.lesson-question.complete .lesson-code-response textarea { background: #18233e; opacity: .88; }
.lesson-short-response { display: grid; gap: 8px; margin: 14px 0; color: #253551; font-weight: 800; }
.lesson-short-response input,
.lesson-short-response textarea { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e7; border-radius: 10px; background: #fff; color: #1b2940; font: 500 14px/1.6 "Rubik", "Heebo", sans-serif; }
.lesson-short-response textarea { resize: vertical; }
.lesson-short-response input:focus,
.lesson-short-response textarea:focus { outline: 3px solid color-mix(in srgb, var(--blue) 20%, transparent); border-color: var(--blue); }
.lesson-short-response small { color: #58677f; font-weight: 500; line-height: 1.55; }
.lesson-trace-response { display: grid; gap: 8px; margin: 14px 0; }
.lesson-trace-response > p { margin: 0; color: #58677f; }
.lesson-trace-table-scroll { max-width: 100%; overflow-x: auto; }
.lesson-trace-table-scroll table { width: 100%; border-collapse: collapse; background: #fff; }
.lesson-trace-table-scroll th,
.lesson-trace-table-scroll td { min-width: 112px; padding: 9px; border: 1px solid #d7dfeb; text-align: center; vertical-align: middle; }
.lesson-trace-table-scroll th { background: #f3f6fa; color: #33435d; font-size: 12px; }
.lesson-trace-table-scroll input { width: 100%; min-width: 84px; padding: 8px; border: 1px solid #b9c5d6; border-radius: 7px; background: #fff; color: #1b2940; font: 600 13px "Rubik", "Heebo", sans-serif; text-align: center; }
.lesson-trace-table-scroll input:focus { outline: 3px solid color-mix(in srgb, var(--blue) 20%, transparent); border-color: var(--blue); }
.lesson-trace-table-scroll input.correct { border-color: #3d9278; background: #effaf6; }
.lesson-trace-table-scroll input.wrong { border-color: #bd6553; background: #fff2ee; }
.oop-full-solution { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid #b8d8cd; border-radius: 10px; background: #f7fcfa; color: #284a42; }
.oop-full-solution header span { color: #397c69; font-size: 11px; font-weight: 800; }
.oop-full-solution header h4 { margin: 3px 0 0; font-size: 15px; }
.oop-full-solution p,
.oop-full-solution ol { margin: 0; }
.oop-solution-answer { padding: 9px 11px; border-radius: 7px; background: #fff; }
.oop-trace-solution { display: grid; gap: 7px; }
.oop-trace-solution td { font-weight: 700; }
.lesson-code-feedback-group { margin-top: 10px; padding: 10px 12px; border-inline-start: 4px solid #d35d55; border-radius: 8px; background: #fff7f5; }
.lesson-code-feedback-group.style { border-inline-start-color: #d49a22; background: #fffaf0; }
.lesson-code-feedback-group ul { margin: 6px 0 0; padding-inline-start: 22px; }
.lesson-code-reference { margin-top: 14px; }
.lesson-code-reference summary { cursor: pointer; font-weight: 800; }
.oop-solution-answer .oop-teacher-expected-answer { display: inline-block; padding: 3px 7px; border: 1px solid #dc7777; border-radius: 5px; background: #fff0f0; color: #a51717; font-weight: 800; }
.oop-trace-solution td.oop-teacher-expected-answer { border-color: #dc7777; background: #fff0f0; color: #a51717; box-shadow: inset 0 0 0 1px #dc7777; }
.lesson-code-reference .lesson-code-block.oop-teacher-expected-answer { border: 2px solid #c72b2b; background: #351b1b; color: #fff1f1; box-shadow: inset 4px 0 0 #e16a6a; }
.lesson-answer-submit { margin-top: 12px; }
.lesson-answer-feedback { padding: 13px; margin-top: 12px; border-radius: 10px; background: #fff4ef; color: #76554e; font-size: 12px; line-height: 1.7; }
.lesson-answer-feedback.success,
.lesson-answer-feedback.saved { background: var(--mint-soft); color: #226f5e; }
.lesson-answer-feedback.incorrect,
.lesson-answer-feedback.partial { background: #fff4ef; color: #76554e; }
.lesson-answer-feedback p { margin: 5px 0; }
.k5-full-solution { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(34, 111, 94, .24); color: #24334c; }
.k5-full-solution header span { color: #8b5d16; font-size: 9px; font-weight: 800; }
.k5-full-solution header h4 { margin: 3px 0 11px; color: #17233b; font: 700 16px "Rubik", "Heebo", sans-serif; }
.k5-full-solution .k5-solution-answer { padding: 10px 12px; border-right: 3px solid #168067; border-radius: 6px; background: #fff; color: #174f43; }
.k5-solution-reason, .k5-solution-steps { margin-top: 13px; }
.k5-solution-reason > strong, .k5-solution-steps > strong { display: block; margin-bottom: 6px; color: #17233b; }
.k5-solution-steps ol { display: grid; gap: 12px; margin: 0; padding: 0 24px 0 0; }
.k5-solution-steps li { padding: 12px 10px 12px 4px; color: #37445b; border-bottom: 1px solid #e1e6ee; }
.k5-solution-steps li:last-child { border-bottom: 0; }
.k5-solution-steps li h5 { margin: 0 0 6px; color: #203858; font: 750 14px "Rubik", "Heebo", sans-serif; }
.k5-solution-steps li p { margin: 0; line-height: 1.75; }
.bagrut-solution-equations { display: grid; gap: 8px; margin-top: 10px; }
.bagrut-solution-equations > div { display: grid; gap: 4px; justify-items: center; padding: 10px 12px; border: 1px solid #d6deea; border-radius: 8px; background: #f8faff; direction: ltr; unicode-bidi: isolate; }
.bagrut-solution-equations small { color: #5d6b80; direction: rtl; line-height: 1.45; text-align: center; unicode-bidi: isolate; }
.k5-full-solution .bagrut-solution-check { border-right-color: #168c98; background: #f1faf8; color: #245c54; }
.k5-full-solution .bagrut-solution-check strong { color: #155e55; }
.k5-solution-equation { display: grid; justify-items: center; gap: 5px; margin: 13px 0; padding: 12px; border: 1px solid #cbd7ea; border-radius: 8px; background: #f8faff; }
.k5-solution-equation small { color: var(--muted); }
.k5-full-solution aside { margin-top: 13px; padding: 10px 12px; border-right: 3px solid #d89484; border-radius: 6px; background: #fff7f4; color: #71483e; }
.k5-full-solution aside strong { color: #893f31; }

.lesson-drag-drop { padding: 18px; border: 1px dashed #b9c6e8; border-radius: 14px; background: #fafbff; }
.lesson-drag-drop > h3 { margin: 0 0 5px; font: 700 17px "Rubik", "Heebo"; }
.lesson-drag-drop > p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.drag-labels { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.drag-labels button { padding: 9px 13px; border: 1px solid #cbd4eb; border-radius: 9px; background: #fff; color: #42506c; cursor: grab; }
.drag-labels button.selected { border-color: var(--blue); background: var(--blue-soft); }
.drag-labels button.placed { border-color: var(--mint); background: var(--mint-soft); color: #19735f; cursor: default; }
.drag-drop-feedback { margin-bottom: 0; text-align: center; }
.lesson-tree-node.label-drop-correct circle { fill: var(--mint-soft); stroke: var(--mint); }
.lesson-tree-node.label-drop-wrong circle { fill: var(--coral-soft); stroke: var(--coral); }
.lesson-node-selection > p,
.lesson-tree-builder > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.lesson-tree-builder { padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.lesson-tree-builder h3 { margin: 0 0 5px; font: 700 17px "Rubik", "Heebo"; }
.builder-values { display: flex; flex-wrap: wrap; gap: 7px; }
.builder-values button { width: 42px; height: 42px; border: 1px solid #c8d2ea; border-radius: 10px; background: #fff; color: #354361; cursor: pointer; }
.builder-values button:disabled { opacity: .35; }
.builder-visual { margin: 12px 0; }
.builder-feedback { text-align: center; }

.lesson-section-actions { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding-top: 22px; margin-top: 30px; border-top: 1px solid var(--line); }
.lesson-section-actions > span { color: #8791a5; font-size: 10px; text-align: center; }
.completion-mark { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: var(--mint-soft); color: #17806a; font-size: 34px; }
.lesson-completion .course-progress-bar { width: min(520px, 100%); }
.lesson-completion-actions { display: flex; gap: 10px; margin-top: 10px; }
.lesson-completion > .lesson-completion-praise { margin: -2px 0 0; padding: 6px 11px; border-radius: 999px; background: var(--mint-soft); color: #176c5b; font-size: 11px; font-weight: 700; line-height: 1.3; }

.practice-lesson-gate { min-height: 470px; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 30px; text-align: center; }
.practice-lesson-gate h2 { margin: 0; font: 700 25px "Rubik", "Heebo"; }
.practice-lesson-gate p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.practice-lesson-gate .course-progress-bar { width: min(420px, 100%); }
.gate-lesson-number { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--blue-soft); color: var(--blue); font-size: 22px; font-weight: 800; }

.teacher-course-progress { margin: 18px 0; }
.teacher-progress-grid { display: grid; }
.teacher-progress-head,
.teacher-progress-row { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(190px, 1fr) minmax(190px, 1.2fr); align-items: center; gap: 14px; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.teacher-progress-head { color: var(--muted); font-size: 10px; font-weight: 800; }
.teacher-progress-row strong { font-size: 12px; }
.teacher-progress-row > span:last-child { color: #647089; font-size: 10px; }
.teacher-progress-bar { display: grid; grid-template-columns: 1fr 42px; align-items: center; gap: 8px; }
.teacher-progress-bar i { height: 8px; overflow: hidden; border-radius: 99px; background: #e8ecf4; }
.teacher-progress-bar b { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--mint)); }
.teacher-progress-bar em { color: #56627a; font-size: 10px; font-style: normal; }

@media (max-width: 800px) {
  #unit-modal:has(.lesson-player) .unit-modal-panel { padding: 18px 10px; }
  .course-objectives ul { grid-template-columns: 1fr; }
  .course-lesson-card { grid-template-columns: 38px 1fr; }
  .course-lesson-card > button { grid-column: 1 / -1; width: 100%; }
  .lesson-player-header { grid-template-columns: 1fr; padding: 0 34px 0 4px; }
  .lesson-player-header.physics-course-header,
  .lesson-player-header.physics-course-header.has-teacher-context,
  .lesson-player-header.teacher-course-preview-header {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: calc(100vw - 20px);
    margin-left: auto;
    margin-right: 0;
    padding: 18px;
  }
  .lesson-player-header > .text-button { justify-self: start; }
  .teacher-preview-context {
    justify-self: start;
    max-width: 32rem;
    padding-block-start: 10px;
    padding-inline-start: 0;
    border-block-start: 1px solid currentColor;
    border-inline-start: 0;
  }
  .lesson-saved-state { position: absolute; top: 18px; right: 18px; }
  .lesson-player-layout { grid-template-columns: 1fr; }
  .lesson-section-nav { grid-template-columns: repeat(11, minmax(95px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .lesson-section-nav button { min-width: 95px; grid-template-columns: 24px 1fr; }
  .lesson-section-stage { min-height: auto; padding: 22px 16px; }
  .lesson-section-stage > h2 { font-size: 21px; }
  .bagrut-full-problem > summary { grid-template-columns: 1fr auto; }
  .bagrut-full-problem > summary span { grid-column: 1 / -1; justify-self: start; }
  .bagrut-full-problem-body { padding: 16px 12px; }
  .bagrut-full-problem-body > header { grid-template-columns: 1fr; }
  .bagrut-source-stem { font-size: 14px; }
  .bagrut-global-context dl { grid-template-columns: 1fr; }
  .bagrut-global-context dl > div { grid-template-columns: 88px 1fr; }
  .bagrut-graph-choice-groups > section { grid-template-columns: repeat(2, minmax(100px, 1fr)); }
  .lesson-block-paragraph,
  .lesson-callout { font-size: 15px; }
  .lesson-comparison > div,
  .lesson-definition > div { grid-template-columns: 1fr; }
  .lesson-section-actions { grid-template-columns: 1fr 1fr; }
  .lesson-section-actions > span { grid-column: 1 / -1; grid-row: 1; }
  .teacher-progress-head { display: none; }
  .teacher-progress-row { grid-template-columns: 1fr; gap: 7px; }
}

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.insight-hero {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 27px;
  border-radius: 20px;
  background: linear-gradient(135deg, #343f82, #596fd2);
  box-shadow: 0 18px 40px rgba(52, 63, 130, 0.2);
  color: #fff;
}

.insight-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  bottom: -125px;
  left: -50px;
  border: 35px solid rgba(255,255,255,.06);
  border-radius: 50%;
}

.insight-hero .overline { color: rgba(255,255,255,.62); }
.insight-hero h2 { margin: 10px 0; font: 700 24px "Rubik"; }
.insight-hero p { max-width: 500px; color: rgba(255,255,255,.76); font-size: 11px; line-height: 1.75; }
.big-stat { position: absolute; bottom: 23px; right: 27px; font: 700 30px "Rubik"; }
.big-stat small { display: block; margin-top: 3px; font: 400 8px "Heebo"; opacity: .7; }

.heatmap-panel { min-height: 250px; }
.heatmap {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  grid-auto-flow: column;
  grid-auto-columns: 11px;
  gap: 4px;
  overflow: hidden;
  margin-top: 27px;
  direction: ltr;
}

.heatmap i {
  border-radius: 3px;
  background: #edf0f5;
}

.heatmap i.l1 { background: #d9f4eb; }
.heatmap i.l2 { background: #a5e5d2; }
.heatmap i.l3 { background: #62d1b2; }
.heatmap i.l4 { background: #28ac88; }

.heat-legend {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 7px;
}

.heat-legend i { width: 9px; height: 9px; border-radius: 2px; background: #edf0f5; }
.heat-legend i:nth-of-type(2) { background: #d9f4eb; }
.heat-legend i:nth-of-type(3) { background: #a5e5d2; }
.heat-legend i:nth-of-type(4) { background: #28ac88; }

.insights-grid > .panel > p {
  min-height: 75px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 18px;
}

.badges > div {
  min-height: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  border-radius: 13px;
  background: #f7f8fb;
  text-align: center;
}

.badges span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 20px;
}

.badges strong { font-size: 8px; }

/* Teacher */
.teacher-home-header { display: grid; gap: 28px; margin: 0 0 26px; }
.teacher-home-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #e2e6ed; }
.teacher-home-brand { display: flex; align-items: center; gap: 9px; color: #26344c; }
.teacher-home-brand .brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #4967d8; color: #fff; }
.teacher-home-brand .brand-mark svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.teacher-home-brand strong { font: 700 17px "Rubik", "Heebo"; }
.teacher-home-actions { display: flex; align-items: center; gap: 8px; }
.teacher-system-admin-link { color: #52617a; font: 650 10px "Rubik", "Heebo"; text-decoration: none; }
.teacher-system-admin-link:hover { color: #2748b8; text-decoration: underline; }
.teacher-home-logout { min-height: 36px; padding: 0 12px; border: 1px solid #d9dfeb; border-radius: 6px; background: #fff; color: #465168; font: 650 10px "Rubik", "Heebo"; cursor: pointer; }
.teacher-home-logout:hover { border-color: #b9c3d4; background: #f7f8fa; }
.teacher-home-intro { max-width: 760px; }
.teacher-home-intro h1 { margin: 0 0 8px; color: #202c43; font: 700 28px/1.35 "Rubik", "Heebo"; letter-spacing: 0; }
.teacher-home-intro p { max-width: 700px; margin: 0 0 18px; color: #606b7d; font-size: 12px; line-height: 1.8; }
.teacher-home-intro .button { min-height: 44px; padding: 0 18px; border-radius: 6px; font-size: 11px; }
.teacher-management-home { display: grid; gap: 18px; }
.teacher-course-tabs { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #e2e6ed; }
.teacher-course-tabs button { min-height: 40px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #667187; font: 650 11px "Rubik", "Heebo"; cursor: pointer; }
.teacher-course-tabs button:hover { color: #31466f; background: #f7f9fc; }
.teacher-course-tabs button.active { border-bottom-color: #4967d8; color: #314b9b; }
.teacher-course-tabs span { display: inline-grid; min-width: 19px; min-height: 19px; place-items: center; margin-inline-start: 3px; padding-inline: 5px; border-radius: 999px; background: #edf1f8; color: #59647a; font-size: 9px; }
.teacher-course-panel { min-width: 0; }
.teacher-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.teacher-home-section { min-height: 320px; }
.teacher-home-section .card-heading { align-items: center; }
.teacher-home-list { display: grid; gap: 8px; }
.teacher-home-grid.simple-teacher-home { grid-template-columns: minmax(0, 1fr); }
.teacher-home-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid #e2e8f3;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f8faff);
}
.teacher-home-card img { width: 54px; height: 54px; object-fit: cover; border-radius: 13px; }
.teacher-home-card > span:not(.teacher-home-card-icon) { min-width: 0; }
.teacher-home-card strong, .teacher-home-card small { display: block; }
.teacher-home-card strong { font-size: 13px; color: #243454; }
.teacher-home-card small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.teacher-home-card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, #dfe7ff, #fff0e8); color: #3f56b6; font: 700 19px "Rubik"; }
.simple-course-card { min-height: 68px; grid-template-columns: minmax(220px, 1fr) auto; padding: 12px 14px; border-radius: 7px; background: #fff; box-shadow: none; }
.simple-course-card.archived-course-card { border-color: #dfe3e9; background: #f5f6f8; }
.archived-course-card .simple-course-main > strong { color: #566176; }
.archived-course-badge { display: inline-flex; align-items: center; min-height: 20px; margin-inline-start: 7px; padding: 1px 7px; border: 1px solid #d5dae2; border-radius: 999px; background: #eceff3; color: #657083; font-size: 8px; font-weight: 650; vertical-align: middle; }
.simple-course-card .teacher-home-card-icon { border-radius: 8px; background: #eef2fb; }
.simple-course-main { min-width: 0; }
.simple-course-main > strong, .simple-course-main > small { display: block; }
.simple-course-main > strong { color: #243454; font-size: 13px; }
.simple-course-main > small { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 5px; color: var(--muted); font-size: 9px; }
.simple-course-invite { min-width: 0; display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.simple-course-invite > span { color: #747e91; font-size: 8px; }
.simple-course-invite a { min-width: 0; overflow: hidden; color: #3f57af; font: 500 8px Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.simple-course-invite em { color: #8a92a2; font-size: 8px; font-style: normal; }
.simple-course-actions { display: flex; align-items: center; gap: 7px; }
.simple-course-actions > .button { min-height: 35px; padding: 0 10px; border-radius: 6px; font-size: 9px; }
.simple-course-more { position: relative; }
.simple-course-more > summary { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #dce2ec; border-radius: 6px; color: #59647a; list-style: none; cursor: pointer; }
.simple-course-more > summary::-webkit-details-marker { display: none; }
.simple-course-more > div { position: absolute; z-index: 30; top: calc(100% + 5px); left: 0; width: 160px; display: grid; gap: 2px; padding: 5px; border: 1px solid #dce2ec; border-radius: 6px; background: #fff; box-shadow: 0 12px 28px rgba(27, 40, 73, .16); }
.simple-course-more button { min-height: 34px; padding: 6px 8px; border: 0; border-radius: 4px; background: transparent; color: #39465e; font-size: 9px; text-align: right; cursor: pointer; }
.simple-course-more button:hover { background: #f4f6fa; }
.simple-course-more button.compact-danger { color: #aa493d; }
.simple-course-more button.archive-course-action { background: #fff7f7; color: #915b57; }
.simple-course-more button.archive-course-action:hover { background: #fceeee; color: #7e4b47; }
.simple-course-actions > .restore-course-action { border-color: #cbd9f5; background: #f2f6ff; color: #395a9c; }
.simple-course-actions > .restore-course-action:hover { border-color: #b9caee; background: #e8f0ff; color: #2e4c88; }
.teacher-archive-empty { margin: 0; padding: 18px 2px; color: #737d8e; font-size: 11px; }
.teacher-home-empty { min-height: 230px; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 32px 20px; border-top: 1px solid #e2e6ed; background: transparent; text-align: center; }
.teacher-home-empty strong { font-size: 15px; }
.teacher-home-empty p { max-width: 310px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.teacher-home-empty .button { min-height: 42px; margin-top: 8px; padding: 0 16px; border-radius: 6px; font-size: 10px; }
.teacher-assigned-courses { padding: 18px; border: 1px solid #dfe6f2; border-radius: 20px; background: #f7f9fd; }
.teacher-assigned-courses > div:first-child h2 { margin: 4px 0; }
.teacher-assigned-courses > div:first-child p { margin: 0; color: var(--muted); font-size: 11px; }
.teacher-class-heading { display: grid; grid-template-columns: auto minmax(170px, 1fr) minmax(500px, 720px); align-items: center; gap: 16px; margin-bottom: 12px; padding: 16px; border: 1px solid #dfe4ec; border-radius: 8px; background: #fff; }
.teacher-class-heading h1 { margin: 2px 0 3px; color: #202c43; font: 650 21px/1.35 "Rubik", "Heebo"; letter-spacing: 0; }
.teacher-class-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.teacher-class-primary-actions { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(205px, 1fr)) auto; align-items: start; gap: 9px; }
.teacher-primary-action { min-width: 0; display: grid; grid-template-rows: auto auto 14px; gap: 5px; padding: 10px; border: 1px solid #dce2ec; border-radius: 7px; background: #fafbfe; }
.teacher-primary-action.teaching-action { border-color: #c9d5f3; background: #f6f8ff; }
.teacher-primary-action.students-action { border-color: #cde2da; background: #f5faf8; }
.teacher-primary-action > .button { width: 100%; min-height: 43px; padding: 0 14px; border-radius: 6px; font-size: 11px; }
.teacher-primary-action > p { min-height: 28px; margin: 0; color: #606b7d; font-size: 9px; line-height: 1.55; }
.teacher-copy-status { color: #237157; font-size: 8px; line-height: 1.4; }
.teacher-class-more { position: relative; }
.teacher-class-more > summary { width: 38px; height: 38px; list-style: none; }
.teacher-class-more > summary::-webkit-details-marker { display: none; }
.teacher-class-more > div { position: absolute; z-index: 20; top: calc(100% + 5px); left: 0; width: 190px; display: grid; gap: 3px; padding: 5px; border: 1px solid #dbe0e9; border-radius: 6px; background: #fff; box-shadow: 0 14px 30px rgba(30, 43, 82, .15); }
.teacher-class-more button { min-height: 36px; padding: 7px 9px; border-radius: 4px; text-align: right; }
.teacher-invite-data { display: none; }
.teacher-course-summary { display: flex; align-items: stretch; gap: 0; margin-bottom: 12px; border-block: 1px solid #e2e6ed; background: #fafbfc; }
.teacher-course-summary > div { min-width: 120px; display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-inline-end: 1px solid #e2e6ed; }
.teacher-course-summary > div:first-child { border-inline-start: 1px solid #e2e6ed; }
.teacher-course-summary span { color: #717b8e; font-size: 9px; }
.teacher-course-summary strong { color: #26344c; font: 650 16px "Rubik", "Heebo"; }
.teacher-class-students-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 14px; }
.teacher-class-students-grid .students-card { max-width: none; padding: 15px 16px; border-radius: 8px; box-shadow: none; }
.teacher-students-heading { align-items: end; margin-bottom: 6px; }
.teacher-students-heading h2 { margin: 0; font-size: 15px; }
.teacher-students-heading p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.teacher-student-search { width: min(230px, 42vw); display: grid; gap: 4px; color: var(--muted); font-size: 8px; }
.teacher-student-search input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid #d8dee9; border-radius: 5px; background: #fff; color: #29364e; font-size: 10px; }
.teacher-student-row { grid-template-columns: minmax(0, 1fr) auto auto; min-height: 50px; padding: 7px 3px; }
.teacher-student-row:hover { background: #fafbfc; }
.teacher-student-open { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; color: #26344c; text-align: right; cursor: pointer; }
.teacher-student-open strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.teacher-student-view { min-height: 34px; padding: 0 10px; border-radius: 5px; font-size: 9px; }
.teacher-student-row .status-tag { min-width: 68px; }
.status-tag.neutral { background: #f0f2f5; color: #697386; }
.teacher-class-students-grid .empty-students { min-height: 100px !important; }
.teacher-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.teacher-course-page .teacher-course-structure,
.teacher-course-page .teacher-exam-management,
.teacher-course-page .teacher-course-progress,
.teacher-course-page .class-mastery { padding: 16px; border-radius: 8px; box-shadow: none; }
.teacher-course-page .teacher-course-structure { margin-top: 0; }
.teacher-course-page .teacher-course-structure .card-heading,
.teacher-course-page .teacher-exam-management .card-heading { margin-bottom: 12px; }
.teacher-course-page .teacher-course-structure .card-heading h2,
.teacher-course-page .teacher-exam-management .card-heading h2 { margin: 0; font-size: 15px; }
.teacher-course-page .teacher-course-structure .card-heading p,
.teacher-course-page .teacher-exam-management .card-heading p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.teacher-course-page .class-toolbar { display: block; width: max-content; max-width: 100%; }
.teacher-course-page .class-switcher { width: max-content; max-width: 100%; padding: 8px; border-radius: 8px; box-shadow: none; }
.teacher-course-page .teacher-grid.teacher-class-students-grid { grid-template-columns: 1fr; }
.teacher-course-page #teacher-student-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); column-gap: 18px; }
.teacher-course-page .student-row.teacher-student-row { grid-template-columns: minmax(0, 1fr) auto auto; }

@media (max-width: 1100px) {
  .teacher-class-heading { grid-template-columns: auto minmax(0, 1fr); }
  .teacher-class-primary-actions { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .teacher-course-page #teacher-student-list { grid-template-columns: 1fr; }
  .teacher-course-page .student-row.teacher-student-row { grid-template-columns: minmax(0, 1fr) auto; }
  .teacher-course-page .teacher-student-view { grid-column: 1 / -1; width: 100%; }
}

.teacher-joy-banner {
  position: relative;
  min-height: 190px;
  display: grid;
  align-items: center;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 22px;
  background: #173d84;
  box-shadow: 0 18px 42px rgba(24, 57, 121, .18);
  color: #fff;
}

.teacher-joy-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 30, 74, .1), rgba(7, 30, 74, .92) 74%);
}

.teacher-joy-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.teacher-joy-banner > div { position: relative; z-index: 1; width: min(520px, 62%); padding: 26px 30px; }
.teacher-joy-banner h2 { margin: 10px 0 5px; font: 700 25px "Rubik", "Heebo"; }
.teacher-joy-banner p { margin: 0; color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.7; }

.teacher-empty-state {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.teacher-empty-state h2 {
  margin: 14px 0 7px;
  font: 700 23px "Rubik", "Heebo";
}

.teacher-empty-state > p {
  max-width: 450px;
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.empty-class-visual {
  position: relative;
  width: 210px;
  height: 115px;
  margin-bottom: 18px;
}

.empty-class-visual > span {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 79px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 3px solid #b8c5f2;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 25px;
}

.empty-class-visual i {
  position: absolute;
  bottom: 0;
  width: 39px;
  height: 39px;
  border: 3px dashed #c8cfde;
  border-radius: 50%;
}

.empty-class-visual i:nth-of-type(1) { right: 15px; }
.empty-class-visual i:nth-of-type(2) { right: 85px; }
.empty-class-visual i:nth-of-type(3) { left: 15px; }

.empty-class-visual::before {
  content: "";
  position: absolute;
  top: 50px;
  right: 34px;
  left: 34px;
  height: 2px;
  border-top: 2px dashed #d0d7e5;
}

.class-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.class-switcher,
.invite-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.class-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  overflow: visible;
}

.class-switcher-item { position: relative; flex: 0 0 auto; border-radius: 10px; }
.class-switcher-item.active { outline: 2px solid var(--blue); outline-offset: 1px; }

.class-switcher button {
  min-width: 150px;
  min-height: 53px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: right;
  cursor: pointer;
}

.class-switcher-item > [data-classroom-id] { padding-inline-end: 34px; }
.class-switcher-item.active > [data-classroom-id] { border-color: var(--blue); background: var(--blue-soft); }
.class-switcher .class-quick-delete {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  min-width: 25px;
  width: 25px;
  min-height: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  color: #9b6570;
  font-size: 15px;
}
.class-switcher .class-quick-delete:hover { background: #fff0ed; color: #a52f2f; }

.class-switcher button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.class-switcher strong,
.class-switcher small {
  display: block;
}

.class-switcher strong { font-size: 9px; }
.class-switcher small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.invite-box .overline { margin-bottom: 7px; }
.invite-box > .text-button { padding: 6px 0 0; }
.class-management-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 6px; }
.danger-text { color: #a6382c; }
.offering-row-actions { display: flex; align-items: center; gap: .7rem; }

.teacher-student-detail { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.teacher-detail-heading, .teacher-intervention > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.teacher-detail-heading h2, .teacher-intervention h2 { margin: 4px 0; font-size: 22px; }
.teacher-detail-heading p, .teacher-intervention header p { margin: 0; color: var(--muted); font-size: 10px; }
.teacher-detail-heading .student-back-link { display: block; margin-bottom: 10px; }
.teacher-detail-heading-compact { align-items: center; margin-bottom: 10px; }
.teacher-detail-heading-compact h2 { margin: 3px 0; font-size: 18px; }
.teacher-detail-heading-compact .student-back-link { margin-bottom: 6px; }
.teacher-error-list-action { min-height: 34px; padding: 6px 11px; font-size: 9px; }
.teacher-detail-compact-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.teacher-detail-compact-summary > span { display: flex; align-items: baseline; gap: 7px; min-width: 125px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.teacher-detail-compact-summary small { color: var(--muted); font-size: 8px; }
.teacher-detail-compact-summary strong { color: var(--ink); font-size: 12px; }
.teacher-compact-units > h3 { margin: 0 0 7px; font-size: 12px; }
.teacher-student-exams { margin-bottom: 18px; }
.teacher-student-exam-list { display: grid; min-width: 0; overflow: visible; border-block: 1px solid var(--line); }
.teacher-student-exam-list .teacher-exam-result-head,
.teacher-student-exam-row { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2.75fr) auto; align-items: center; gap: clamp(8px, 1.5vw, 16px); }
.teacher-student-exam-list .teacher-exam-result-head { padding: 5px 2px; color: var(--muted); font-size: 9px; font-weight: 600; }
.teacher-student-exam-row { margin: 0; padding: 7px 2px; border-top: 1px solid var(--line); color: var(--ink); }
.teacher-student-exam-meta { display: grid; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: clamp(6px, 1.2vw, 13px); }
.teacher-student-exam-name { display: grid; min-width: 0; gap: 1px; }
.teacher-student-exam-name strong { font-size: 12px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.teacher-student-exam-name small { color: var(--muted); font-size: 9px; }
.teacher-student-exam-meta-item { display: block; min-width: 0; color: #677286; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.teacher-student-exam-meta-item > small { display: none; color: var(--muted); font-size: 8px; font-weight: 500; }
.teacher-student-exam-date { font-size: 9px; }
.teacher-student-exam-score { font-weight: 600; }
.teacher-student-exam-action { min-width: 0; color: var(--muted); font-size: 10px; }
.teacher-student-exam-action .button { min-height: 29px; padding: 4px 8px; border-radius: 5px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.teacher-compact-unit-list { display: grid; gap: 4px; }
.teacher-compact-unit-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; width: 100%; min-height: 38px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); text-align: start; cursor: pointer; }
.teacher-compact-unit-row:hover, .teacher-compact-unit-row:focus-visible { border-color: #9db1cf; background: #f8faff; }
.teacher-compact-unit-number { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #edf2f8; color: var(--blue-dark); font-size: 9px; font-weight: 700; }
.teacher-compact-unit-row > strong { min-width: 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.teacher-compact-unit-row > small { color: var(--muted); font-size: 8px; }
.teacher-compact-unit-row .status-tag { min-width: 72px; text-align: center; }
.teacher-answered-questions > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.teacher-answered-questions > header h3 { margin: 0; font-size: 12px; }
.teacher-answered-questions > header small { color: var(--muted); font-size: 9px; }
.teacher-answered-question-list { display: grid; gap: 5px; }
.teacher-error-list { display: grid; gap: 3px; }
.teacher-error-context { margin-bottom: 5px !important; }
.teacher-error-unit-group { display: grid; gap: 5px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.teacher-error-unit-group:first-child { padding-top: 0; }
.teacher-error-unit-group:last-child { padding-bottom: 0; border-bottom: 0; }
.teacher-error-unit-group > h3 { margin: 0; font-size: 11px; }
.teacher-error-unit-group > div { display: grid; gap: 5px; }
.teacher-detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.teacher-detail-summary > div { min-height: 108px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.teacher-detail-summary span, .teacher-detail-summary strong, .teacher-detail-summary small { display: block; }
.teacher-detail-summary span { color: var(--muted); font-size: 8px; }
.teacher-detail-summary strong { margin: 8px 0 5px; color: var(--ink); font: 700 18px "Rubik"; overflow-wrap: anywhere; }
.teacher-detail-summary small { color: var(--muted); font-size: 8px; line-height: 1.5; }
.teacher-detail-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.teacher-detail-tabs button { flex: 0 0 auto; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: 700 9px "Rubik"; cursor: pointer; }
.teacher-detail-tabs button.active { border-bottom-color: var(--blue); color: var(--blue-dark); }
.teacher-detail-panel { padding-bottom: 8px; }
.teacher-detail-insights, .teacher-intervention-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.teacher-detail-insights > div, .teacher-intervention-grid > div { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.teacher-detail-insights h3, .teacher-intervention-grid h3 { margin: 0 0 10px; font-size: 12px; }
.teacher-detail-insights ol, .teacher-intervention-grid ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.teacher-detail-insights li, .teacher-intervention-grid li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 9px; }
.teacher-detail-insights li:last-child, .teacher-intervention-grid li:last-child { padding-bottom: 0; border-bottom: 0; }
.teacher-detail-insights li span, .teacher-intervention-grid li span { color: var(--muted); text-align: left; font-size: 8px; }
.teacher-learning-path { display: grid; gap: 8px; }
.teacher-path-unit, .teacher-path-lesson, .teacher-detail-question { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.teacher-path-unit > summary, .teacher-path-lesson > summary, .teacher-detail-question > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 9px 12px; cursor: pointer; list-style: none; }
.teacher-path-unit > summary::-webkit-details-marker, .teacher-path-lesson > summary::-webkit-details-marker, .teacher-detail-question > summary::-webkit-details-marker { display: none; }
.teacher-path-unit > summary::before, .teacher-path-lesson > summary::before, .teacher-detail-question > summary::before { content: "+"; color: var(--muted); font-size: 15px; }
.teacher-path-unit[open] > summary::before, .teacher-path-lesson[open] > summary::before, .teacher-detail-question[open] > summary::before { content: "−"; }
.teacher-path-unit > summary strong, .teacher-path-lesson > summary strong, .teacher-detail-question > summary strong { min-width: 0; overflow-wrap: anywhere; font-size: 10px; }
.teacher-path-unit > summary > span:last-child, .teacher-detail-question > summary > span:last-child, .teacher-path-lesson > summary small { color: var(--muted); font-size: 8px; }
.teacher-path-unit > div { padding: 0 12px 12px 26px; }
.teacher-path-lesson { margin-top: 8px; }
.teacher-path-lesson > div { padding: 0 10px 10px; }
.teacher-path-questions, .teacher-answer-history { display: grid; gap: 8px; }
.teacher-detail-question-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.teacher-detail-question-body > .overline { display: block; margin-top: 12px; }
.teacher-detail-question-body h4 { margin: 7px 0 12px; font-size: 12px; line-height: 1.55; }
.teacher-detail-question-body .question-math { margin: 8px 0; }
.teacher-answer-attempt { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-right: 3px solid #c7ceda; border-radius: 8px; background: #fbfcff; }
.teacher-answer-attempt.is-correct { border-right-color: #168067; }
.teacher-answer-attempt.is-wrong { border-right-color: #bd5544; }
.teacher-answer-attempt header { display: flex; align-items: center; gap: 8px; }
.teacher-answer-attempt header strong { font-size: 9px; }
.teacher-answer-attempt header span { color: #168067; font-size: 8px; font-weight: 700; }
.teacher-answer-attempt.is-wrong header span { color: #bd5544; }
.teacher-answer-attempt time { margin-inline-start: auto; color: var(--muted); font-size: 8px; }
.teacher-answer-attempt p { margin: 8px 0 0; font-size: 9px; line-height: 1.55; }
.teacher-answer-options { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.teacher-answer-options li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 9px; }
.teacher-answer-options li.is-selected { border-color: #d89484; background: #fff7f4; }
.teacher-answer-options li.is-correct { border-color: #89c7b8; background: #f0fbf7; }
.teacher-answer-options em { color: #bd5544; font-size: 8px; font-style: normal; }
.teacher-answer-options b { color: #168067; font-size: 8px; }
.teacher-error-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.teacher-error-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 8px; }
.teacher-error-filters select { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: 400 9px "Rubik"; }
.teacher-error-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.teacher-error-row > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; margin-bottom: 8px; }
.teacher-error-row strong, .teacher-error-row small { display: block; }
.teacher-error-row strong { font-size: 10px; }
.teacher-error-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.teacher-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-right: 2px solid var(--line); }
.teacher-timeline li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 0 14px 16px; font-size: 10px; line-height: 1.5; }
.teacher-timeline time { color: var(--muted); font-size: 8px; }
.teacher-timeline .risk { color: #bd5544; }
.teacher-intervention { max-width: 1050px; padding: 20px; border: 1px solid #bdcbe1; border-radius: 8px; background: #f7faff; }
.teacher-intervention-grid { grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr); margin: 0; }
.teacher-detail-loading { min-height: 120px; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
.status-tag.neutral { background: #f0f2f6; color: #687186; }

@media (max-width: 700px) {
  .teacher-management-page #teacher-view { padding: 18px 14px 40px; }
  .teacher-home-header { gap: 22px; margin-bottom: 20px; }
  .teacher-home-topbar { padding-bottom: 14px; }
  .teacher-home-intro h1 { font-size: 24px; }
  .teacher-home-intro p { font-size: 11px; }
  .teacher-home-grid { grid-template-columns: 1fr; }
  .teacher-home-card { grid-template-columns: minmax(0, 1fr); }
  .teacher-home-card > .button { grid-column: 1 / -1; width: 100%; }
  .simple-course-actions .button { width: 100%; }
  .simple-course-actions { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .archived-course-card .simple-course-actions { grid-template-columns: 1fr; }
  .class-modal-panel { margin: 8px 0; padding: 24px 10px 16px; }
  .class-form, .class-created { padding-inline: 8px; }
  .class-catalog-options { grid-template-columns: 1fr; }
  .class-course-option { grid-column: auto; }
  .teacher-class-heading { grid-template-columns: 1fr; }
  .teacher-class-primary-actions { width: 100%; }
  .teacher-class-primary-actions { grid-template-columns: 1fr; }
  .teacher-class-more { justify-self: end; }
  .teacher-course-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .teacher-course-summary > div { min-width: 0; display: grid; gap: 2px; padding: 9px 8px; }
  .teacher-students-heading { align-items: stretch; flex-direction: column; }
  .teacher-student-search { width: 100%; }
  .teacher-student-row { grid-template-columns: minmax(0, 1fr) auto; }
  .teacher-student-view { grid-column: 1 / -1; width: 100%; }
  .teacher-joy-banner { min-height: 230px; align-items: end; }
  .teacher-joy-banner::after { background: linear-gradient(0deg, rgba(7, 30, 74, .96), rgba(7, 30, 74, .18)); }
  .teacher-joy-banner > div { width: 100%; padding: 22px; }
  .teacher-joy-banner h2 { font-size: 21px; }
  .class-toolbar { grid-template-columns: 1fr; }
  .offering-row, .offering-row-actions { align-items: flex-start; flex-direction: column; }
}

.teacher-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.teacher-stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.teacher-stats span,
.teacher-stats strong,
.teacher-stats small {
  display: block;
}

.teacher-stats span { color: var(--muted); font-size: 9px; }
.teacher-stats strong { margin: 5px 0 2px; font: 700 23px "Rubik"; }
.teacher-stats small { color: var(--muted); font-size: 8px; }
.teacher-stats .warning { color: var(--coral); }

.teacher-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
}

.class-mastery { grid-row: span 2; }
.card-heading select {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 8px;
}

.mastery-table {
  margin-top: 20px;
}

.mastery-table > div {
  display: grid;
  grid-template-columns: 1fr 1.25fr 70px;
  align-items: center;
  gap: 14px;
  min-height: 53px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
}

.mastery-table .table-head {
  min-height: 33px;
  color: var(--muted);
  font-size: 8px;
}

.mastery-table strong { font-size: 10px; }
.bar-cell { display: flex; align-items: center; gap: 8px; }
.bar-cell i { flex: 1; height: 6px; overflow: hidden; border-radius: 4px; background: #e8ebf2; }
.bar-cell b { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.bar-cell em { width: 30px; color: var(--muted); font-size: 8px; font-style: normal; }

.status-tag {
  padding: 4px 7px;
  border-radius: 7px;
  font-size: 7px;
  font-weight: 700;
  text-align: center;
}

.status-tag.good { background: var(--mint-soft); color: #188167; }
.status-tag.mid { background: var(--blue-soft); color: var(--blue-dark); }
.status-tag.risk { background: var(--coral-soft); color: #bd5544; }

.misconception-card > p {
  color: var(--muted);
  font-size: 10px;
}

.misconception-visual {
  position: relative;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  border-radius: 12px;
  background: #f7f8fb;
}

.misconception-visual > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.misconception-visual i {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 2px solid #b8c2d7;
  border-radius: 50%;
  background: #fff;
  font-size: 9px;
  font-style: normal;
}

.misconception-visual i::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 8px;
  margin-top: 39px;
  background: #b8c2d7;
}

.misconception-visual .leaf-node { border-color: var(--coral); }
.wrong-node { position: absolute; top: 22px; right: calc(50% - 35px); color: var(--coral); }
.misconception-visual > span:last-child { position: absolute; bottom: 8px; color: #b55d4f; font-size: 7px; }

.student-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.student-row:last-child { border-bottom: 0; }
.student-row strong,
.student-row small { display: block; }
.student-row strong { font-size: 9px; }
.student-row small { color: var(--muted); font-size: 7px; }
.student-row em { color: var(--muted); font-size: 7px; font-style: normal; }
.student-row em.online { color: #168067; }

.empty-table,
.empty-students {
  display: grid !important;
  place-items: center;
  min-height: 220px !important;
  padding: 25px !important;
  border: 0 !important;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.empty-students p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.empty-data-copy {
  min-height: 80px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 50%;
  bottom: 28px;
  max-width: calc(100vw - 40px);
  padding: 11px 18px;
  border-radius: 11px;
  background: #18233e;
  box-shadow: var(--shadow-lg);
  color: #fff;
  font-size: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translate(50%, 15px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(50%, 0);
}

@media (max-width: 1150px) {
  .sidebar { width: 220px; }
  .main-content { margin-right: 220px; }
  .view { padding-inline: 25px; }
  .journey-copy { width: 63%; }
  .lesson-layout { grid-template-columns: 145px minmax(430px, 1fr); }
  .lesson-coach { display: none; }
  .skill-map { inset-left: 12px; }
}

@media (max-width: 900px) {
  .sidebar {
    width: 260px;
    transform: translateX(102%);
    transition: transform 0.25s ease;
    box-shadow: -12px 0 35px rgba(35, 48, 84, 0.15);
  }

  body.menu-open .sidebar { transform: translateX(0); }
  .main-content { margin-right: 0; padding-top: 62px; }
  .mobile-bar {
    position: fixed;
    z-index: 45;
    inset: 0 0 auto;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
  }

  .brand.compact { min-height: auto; }
  .brand.compact .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .brand.compact .brand-mark svg { width: 26px; }
  .brand.compact strong { font-size: 17px; }
  .mobile-menu-button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
  }

  .hero-grid,
  .two-column,
  .insights-grid,
  .teacher-grid {
    grid-template-columns: 1fr;
  }
  .class-toolbar { grid-template-columns: 1fr; }

  .mastery-card { min-height: 260px; }
  .class-mastery { grid-row: auto; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .lesson-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .lesson-step > span { grid-row: auto; }
  .lesson-step small { display: none; }
  .practice-layout,
  .lab-grid { grid-template-columns: 1fr; }
  .catalog-tracks { grid-template-columns: repeat(3, 1fr); }
  .catalog-skills { grid-template-columns: repeat(2, 1fr); }
  .auth-panel { width: 100%; grid-template-columns: minmax(0, 1fr); max-width: 480px; min-height: auto; }
  .auth-gate.join-mode .auth-panel { grid-template-columns: 1fr; max-width: 560px; min-height: auto; }
  .auth-visual { display: none; }
  .auth-form { min-height: 0; padding: 34px 38px 36px; border-right: 0; }
  .auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: #243154;
    font-size: 18px;
  }
  .auth-mobile-brand .brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #405fd2, #5a74dc);
    color: #fff;
    font-size: 17px;
  }
  .skill-map { inset: 75px 20px 295px; }
  .skill-detail { top: auto; right: 18px; left: 18px; bottom: 18px; width: auto; height: 250px; }
  .skill-detail > p { min-height: auto; }
  .skill-detail ul { display: none; }
}

@media (max-width: 650px) {
  .view { padding: 25px 14px 95px; }
  .page-header {
    align-items: flex-start;
  }
  .page-header h1 { font-size: 24px; }
  .page-header .header-actions { display: none; }
  .hero-grid { gap: 12px; }
  .journey-card { min-height: 410px; }
  .journey-copy { width: 100%; padding: 25px; }
  .journey-card h2 { font-size: 24px; }
  .hero-tree { inset: auto 50% 3px auto; width: 310px; transform: translateX(50%); opacity: .42; }
  .journey-copy .button { position: relative; z-index: 4; }
  .metrics-row { grid-template-columns: 1fr; gap: 9px; }
  .path-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }
  .path-line { top: 35px; right: 43px; bottom: 35px; left: auto; width: 4px; height: auto; }
  .path-line span { width: 100% !important; height: 41%; }
  .path-stop {
    min-height: 55px;
    display: grid;
    grid-template-columns: 54px 1fr;
    justify-items: start;
    text-align: right;
  }
  .path-bubble,
  .path-stop.current .path-bubble {
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
    margin: 0;
  }
  .you-are-here { top: -9px; right: 40px; }
  .quote-strip { flex-wrap: wrap; text-align: center; }
  .compact-header {
    grid-template-columns: 42px 1fr;
  }
  .lesson-progress-wrap { grid-column: 1 / -1; }
  .lesson-steps { overflow-x: auto; }
  .lesson-step { min-width: 75px; }
  .discovery-stage { min-height: 670px; padding: 22px 16px; }
  .lesson-screen > h2 { font-size: 20px; }
  .prediction-options,
  .practice-options { grid-template-columns: 1fr; }
  .representation-grid { grid-template-columns: 1fr; }
  .representation-grid > div { min-height: 130px; }
  .practice-card { padding: 20px 15px; }
  .mode-switcher { grid-template-columns: repeat(2, 1fr); }
  .practice-header-stats { display: none; }
  .sandbox-heading { align-items: flex-start; flex-direction: column; }
  .sandbox-controls { width: 100%; }
  .sandbox-controls .button { min-width: 0; flex: 1; padding-inline: 8px; }
  .sandbox-body { grid-template-columns: 1fr; }
  .sandbox-output { min-height: 170px; border-top: 1px solid var(--line); border-right: 0; }
  .workbench-toolbar { flex-wrap: wrap; }
  .workbench-toolbar label { width: 100%; }
  .workbench-toolbar input { flex: 1; }
  .prediction-banner { flex-wrap: wrap; }
  .prediction-banner p { width: 100%; }
  .traversal-bar { flex-wrap: wrap; }
  .traversal-output { width: 100%; }
  .teacher-stats { grid-template-columns: repeat(2, 1fr); }
  .mastery-table > div { grid-template-columns: 1fr 1fr; }
  .mastery-table > div > *:last-child { display: none; }
  .badges { grid-template-columns: 1fr 1fr 1fr; }
  .skill-map-shell { min-height: 780px; }
  .skill-map-tabs { left: 12px; right: 12px; overflow-x: auto; }
  .skill-map-tabs button { flex: 1; white-space: nowrap; }
  .skill-map { inset: 80px 0 300px; overflow: hidden; }
  .skill-node { width: 103px; }
  .curriculum-browser { padding: 18px 13px; }
  .catalog-heading { align-items: stretch; flex-direction: column; }
  .catalog-search { width: 100%; }
  .catalog-tracks { grid-template-columns: repeat(2, 1fr); }
  .catalog-skills { grid-template-columns: 1fr; }
  .auth-gate { padding: 10px; }
  .auth-panel { min-height: auto; border-radius: 8px; }
  .auth-form { min-height: 0; padding: 24px 20px 26px; }
  .auth-gate.join-mode .auth-form { padding: 34px 22px; }
  .auth-mobile-brand { margin-bottom: 18px; }
  .auth-course-context { padding-bottom: 18px; margin-bottom: 18px; }
  .auth-course-context h1 { font-size: 22px; }
  .auth-tabs { margin-bottom: 19px; }
  .auth-tabs button { min-width: 0; padding-inline: 5px; font-size: 11px; }
  .auth-form h1 { font-size: 19px; }
  .auth-course-context h1 { font-size: 22px; }
  .auth-form-intro > p { font-size: 11px; }
  .auth-fields { gap: 11px; padding-top: 16px; }
  .auth-form input { height: 48px; }
  .student-entry { align-items: flex-start; }
  .unit-modal { padding: 8px; }
  .unit-modal-panel { margin: 8px 0; padding: 28px 16px; }
  .unit-sections { grid-template-columns: 1fr; }
  .unit-section.full { grid-column: auto; }
  .arrange-pool { grid-template-columns: 1fr; }
  .match-row { grid-template-columns: 1fr; }
  .match-row > i { transform: rotate(90deg); }
  .mobile-nav {
    position: fixed;
    z-index: 40;
    right: 10px;
    bottom: 10px;
    left: 10px;
    height: 62px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 5px;
    border: 1px solid rgba(224,228,238,.9);
    border-radius: 17px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 35px rgba(31,45,81,.16);
    backdrop-filter: blur(15px);
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 8px;
  }
  .mobile-nav button span { font-size: 16px; }
  .mobile-nav button.active { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Numeric physics answers and private photographed-work prototype */
.lesson-numeric-response {
  display: grid;
  gap: .65rem;
  margin: 1rem 0;
  color: #253551;
}
.lesson-numeric-response > label { font-weight: 800; }
.lesson-numeric-field {
  display: inline-grid;
  grid-template-columns: minmax(8rem, 15rem) auto;
  align-items: stretch;
  justify-self: start;
  border: 1px solid #bdc9dd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.lesson-numeric-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}
.lesson-numeric-field input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  padding: .65rem .85rem;
  background: transparent;
  color: #172342;
  font: 700 1.05rem/1.2 "Rubik", "Heebo", sans-serif;
  text-align: left;
}
.lesson-numeric-unit {
  display: grid;
  place-items: center;
  min-width: 3rem;
  padding: 0 .85rem;
  border-inline-start: 1px solid #d7deeb;
  background: #f2f5fb;
  color: #34445f;
  font-weight: 800;
}
.lesson-numeric-response > small { color: #5f6d82; }
.lesson-solution-photo {
  display: grid;
  gap: .75rem;
  margin-top: .65rem;
  padding: 1rem;
  border: 1px solid #d8e1ef;
  border-radius: 14px;
  background: #f8fbff;
}
.lesson-solution-photo p { margin: 0; line-height: 1.65; }
.lesson-solution-photo-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.lesson-solution-photo-actions .button { cursor: pointer; margin: 0; }
.lesson-solution-photo-preview {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  margin: 0;
  padding: .75rem;
  border: 1px solid #cbd8e9;
  border-radius: 12px;
  background: #fff;
}
.lesson-solution-photo-preview.hidden { display: none; }
.lesson-solution-photo-preview img {
  width: 100%;
  max-height: 9rem;
  border-radius: 8px;
  object-fit: contain;
  background: #edf1f7;
}
.lesson-solution-photo-preview .text-button { justify-self: start; }
.lesson-solution-photo-privacy { color: #5d6b81; font-size: .8rem; }
.lesson-solution-analysis {
  display: grid;
  gap: .35rem;
  margin: .8rem 0;
  padding: .85rem;
  border-inline-start: 4px solid #6680d8;
  border-radius: 10px;
  background: #f3f6ff;
}
.lesson-solution-analysis p { margin: 0; }
.lesson-solution-analysis small { color: #596880; }

@media (max-width: 600px) {
  .lesson-numeric-field { width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
  .lesson-solution-photo-actions { display: grid; grid-template-columns: 1fr; }
  .lesson-solution-photo-preview { grid-template-columns: 1fr; }
  .lesson-solution-photo-preview img { max-height: 14rem; }
}

/* Reusable mathematical content system */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.math-formula {
  direction: ltr;
  unicode-bidi: isolate;
  color: #17233f;
  font-family: "STIX Two Math", "Cambria Math", "Times New Roman", serif;
  line-height: 1.55;
}

.math-inline {
  display: inline-flex;
  align-items: baseline;
  vertical-align: -.12em;
  margin-inline: .16em;
  max-width: 100%;
}

.math-display {
  display: block;
  width: 100%;
  margin: 1rem auto;
  padding: .25rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
}

.math-formula math { direction: ltr; }
.math-formula mtext { font-family: inherit; font-style: normal; }
.math-sentence { unicode-bidi: plaintext; }
.math-unavailable { color: #8c342f; font-weight: 700; }

.display-formula-block,
.formula-explanation,
.equation-derivation,
.equation-comparison,
.math-activity,
.question-math {
  margin: 1.15rem 0;
  border: 1px solid #dbe2f2;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8faff);
  padding: clamp(.9rem, 2vw, 1.25rem);
}

.formula-explanation header,
.equation-derivation header { border-bottom: 1px solid #e5e9f4; margin-bottom: .8rem; }
.formula-explanation header span,
.equation-derivation header span { color: #5269bd; font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.formula-explanation h3,
.equation-derivation h3 { margin: .2rem 0 .7rem; }
.formula-explanation-main { text-align: center; }
.equation-reading { color: #3d4964; text-align: center; line-height: 1.7; }
.formula-units li { font-style: normal; }

.equation-derivation ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.equation-derivation li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; align-items: start; border-bottom: 1px dashed #d9dfec; padding-bottom: .75rem; }
.equation-derivation li:last-child { border-bottom: 0; }
.equation-step-number { width: 2rem; height: 2rem; border: 2px solid #6c7fd0; border-radius: 50%; display: grid; place-items: center; color: #344a9e; font-weight: 800; }
.equation-derivation small { display: block; border-inline-start: 3px solid #8999d8; padding-inline-start: .7rem; color: #566078; }

.equation-comparison > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.equation-comparison article { border: 1px solid #e0e5f0; border-radius: 12px; padding: .75rem; min-width: 0; }
.equation-comparison article > span { font-size: .75rem; font-weight: 800; color: #5063ad; }
.math-activity summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.math-activity-note { padding: .7rem; border: 1px solid #cbd5eb; border-radius: 10px; background: #fff; }

.studio-math-config textarea[dir="ltr"] { font-family: "STIX Two Math", "Cambria Math", serif; text-align: left; direction: ltr; unicode-bidi: isolate; }
.studio-live-preview { border: 1px dashed #aebbe0; border-radius: 14px; background: #fbfcff; padding: .8rem; margin: .8rem 0; min-height: 72px; }
.studio-live-preview > strong { display: block; color: #5063ad; margin-bottom: .45rem; }
.studio-version-banner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin: .5rem 0 1rem; padding: .7rem .9rem; border: 1px solid #cfd9ee; border-radius: 11px; background: #f7f9ff; }
.studio-version-banner span { color: var(--muted); font-size: .82rem; }

.course-offering-create { border: 1px solid #dce4f2; border-radius: 16px; padding: 1rem; margin-bottom: 1rem; background: #f9fbff; }
.course-offering-create h3 { margin: .2rem 0; }
.offering-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: .8rem 0; }
.course-offering-create select[multiple] { width: 100%; min-height: 12rem; padding: .4rem; }
.offering-row { display: flex; justify-content: space-between; gap: 1rem; margin-top: .65rem; padding: .75rem; border: 1px solid #dce2ed; border-radius: 11px; background: #fff; }
.offering-row span:first-child { display: grid; gap: .2rem; }
.assignment-row.locked { opacity: .62; cursor: not-allowed; background: #f3f5f9; }

.course-simulation { min-height: 260px; border: 1px solid #d9e1ef; border-radius: 16px; padding: 1rem; background: #fbfdff; }
.kinematics-simulation-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; align-items: end; }
.kinematics-simulation-controls label { display: grid; gap: .3rem; font-size: .8rem; font-weight: 700; }
.kinematics-simulation-stage { direction: ltr; unicode-bidi: isolate; margin: 1rem 0; border: 1px solid #e0e5ef; border-radius: 12px; overflow: hidden; background: #fff; }
.kinematics-simulation-stage svg { width: 100%; min-width: 360px; display: block; }
.simulation-readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.simulation-readout span { padding: .55rem; border: 1px solid #e0e5ef; border-radius: 9px; background: #fff; text-align: center; }

.kinematics-lab { display: grid; gap: .9rem; }
.kinematics-lab > header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.kinematics-lab > header h3 { margin: .15rem 0; }
.kinematics-lab-help { max-width: 34rem; margin: 0; color: var(--muted); }
.kinematics-lab-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.kinematics-lab-controls label { display: grid; gap: .35rem; font-size: .78rem; font-weight: 800; }
.kinematics-lab-controls output { color: #4058ad; font-weight: 700; min-height: 1.25rem; }
.kinematics-lab-controls input { width: 100%; min-height: 44px; accent-color: #526bcc; }
.kinematics-lab-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.kinematics-lab-actions button { min-height: 44px; border: 1px solid #b9c6e7; border-radius: 10px; background: #fff; color: #263b83; padding: .55rem .9rem; font: inherit; font-weight: 800; cursor: pointer; }
.kinematics-lab-actions button:first-child { background: #536bc9; color: #fff; border-color: #536bc9; }
.kinematics-lab-stage { position: relative; direction: ltr; unicode-bidi: isolate; min-height: 86px; margin: .25rem 1rem; }
.kinematics-axis { position: absolute; inset: 35px 0 auto; height: 3px; border-radius: 4px; background: #7482a7; }
.kinematics-axis::before, .kinematics-axis::after { position: absolute; top: -1.05rem; color: #59647d; font-size: .72rem; }
.kinematics-axis::before { content: "−50 m"; left: 0; }
.kinematics-axis::after { content: "+50 m"; right: 0; }
.kinematics-origin { position: absolute; left: 50%; top: -8px; width: 2px; height: 19px; background: #394769; }
.kinematics-body, .kinematics-second-body { position: absolute; z-index: 2; top: -12px; width: 27px; height: 27px; border: 3px solid #fff; border-radius: 50%; background: #596fd0; box-shadow: 0 2px 9px rgba(39, 56, 117, .35); transform: translateX(-50%); transition: inset-inline-start .08s linear; }
.kinematics-second-body { top: 44px; background: #e77e58; }
.kinematics-lab-readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.kinematics-lab-readouts span { display: grid; gap: .2rem; padding: .65rem; border: 1px solid #dde4f1; border-radius: 10px; background: #fff; text-align: center; }
.kinematics-lab-equation { min-width: 0; }
.kinematics-lab-graph { margin: 0; direction: ltr; unicode-bidi: isolate; }
.kinematics-lab-graph svg { width: 100%; max-height: 220px; border: 1px solid #e0e6f1; border-radius: 12px; background: #fff; }
.kinematics-lab-graph line { stroke: #98a3bc; stroke-width: 1.5; }
.kinematics-lab-graph polyline { fill: none; stroke: #536bc9; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.kinematics-lab-graph figcaption, .kinematics-stage-note { direction: rtl; color: var(--muted); font-size: .8rem; text-align: center; }
.kinematics-lab.reduced-motion .kinematics-body, .kinematics-lab.reduced-motion .kinematics-second-body { transition: none; }

@media (max-width: 800px) {
  .offering-form-grid,
  .kinematics-simulation-controls,
  .kinematics-lab-controls,
  .kinematics-lab-readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kinematics-lab > header { display: grid; }
  .equation-comparison > div { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .offering-form-grid,
  .kinematics-simulation-controls,
  .simulation-readout,
  .kinematics-lab-controls,
  .kinematics-lab-readouts { grid-template-columns: 1fr; }
  .math-display { font-size: 1.08rem; }
  .equation-derivation li { grid-template-columns: 1.75rem minmax(0, 1fr); gap: .45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .course-simulation *,
  .equation-derivation * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Student-first course experience */
.student-experience .sidebar,
.student-experience .mobile-bar,
.student-experience .mobile-nav {
  display: none !important;
}

.student-experience .main-content {
  margin: 0;
  background: #f7f8fb;
}

.student-experience .view {
  max-width: none;
  padding: 0;
}

.student-experience-shell {
  min-height: 100vh;
  background: #f7f8fb;
}

.student-experience-topbar {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 max(28px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid #e4e8f0;
  background: rgba(255,255,255,.96);
}

.student-experience-topbar > :last-child { justify-self: end; }

.student-experience-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #1f2c4d;
  text-decoration: none;
  font: 800 1.05rem "Rubik", "Heebo", sans-serif;
}

.student-experience-brand .brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #405fc9;
  color: #fff;
  font-size: 1rem;
}

.student-quiet-action,
.student-back-link {
  min-height: 44px;
  padding: 0 .8rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5f6b82;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.student-back-link { justify-self: start; color: #3655bc; }
.student-quiet-action:hover,
.student-back-link:hover { background: #f0f3f9; color: #233b91; }

.student-library-main {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 100px;
}

.student-library-heading {
  margin-bottom: 34px;
}

.student-library-heading h1 {
  margin: 0;
  color: #172342;
  font: 700 clamp(2rem, 4vw, 2.8rem)/1.2 "Rubik", "Heebo", sans-serif;
}

.student-library-heading p {
  margin: .65rem 0 0;
  color: #657086;
  font-size: 1rem;
}

.student-course-library {
  display: grid;
  gap: 1rem;
}

.student-course-tile {
  min-height: 152px;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 18px;
  border: 1px solid #dfe4ee;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 44, 78, .05);
}

.student-course-tile img {
  width: 178px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
}

.student-course-tile > div { min-width: 0; }

.student-course-tile h2 {
  margin: 0;
  color: #1d2946;
  font: 700 1.35rem "Rubik", "Heebo", sans-serif;
}

.student-course-affiliation {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .6rem;
  margin: .65rem 0 0;
}

.student-course-affiliation > div {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  max-width: 100%;
  padding: .3rem .55rem;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  background: #f6f8fc;
  color: #33415e;
  font-size: .82rem;
}

.student-course-affiliation dt {
  color: #718096;
  font-size: .72rem;
  font-weight: 700;
}

.student-course-affiliation dd {
  overflow: hidden;
  min-width: 0;
  margin: 0;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-course-tile p {
  margin: .45rem 0 .75rem;
  color: #68748a;
  font-size: .86rem;
}

.student-course-progress {
  width: min(290px, 100%);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf4;
}

.student-course-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #536dcc;
}

.student-course-tile.kinematics .student-course-progress i { background: #168ca2; }
.student-course-tile .button { min-width: 130px; }

.student-library-empty {
  display: grid;
  justify-items: center;
  gap: .4rem;
  min-height: 240px;
  place-content: center;
  padding: 2rem;
  border: 1px dashed #ccd4e2;
  border-radius: 20px;
  background: #fff;
  color: #657086;
  text-align: center;
}

.student-library-empty strong { color: #28344f; font-size: 1.15rem; }
.student-library-empty p { max-width: 32rem; margin: 0; line-height: 1.7; }

.student-course-main,
.student-unit-main {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 100px;
}

.student-course-hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(34px, 5vw, 60px);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(27, 42, 78, .08);
}

.kinematics-course .student-course-hero {
  border: 1px solid #cfe7eb;
  background: linear-gradient(135deg, #f7fcfc 0%, #edf7fa 100%);
}

.student-course-hero-copy > span {
  color: #45617c;
  font-size: .78rem;
  font-weight: 800;
}

.student-course-hero-copy h1 {
  margin: .65rem 0 .8rem;
  color: #152440;
  font: 700 clamp(2.4rem, 5vw, 4rem)/1.08 "Rubik", "Heebo", sans-serif;
}

.kinematics-course .student-course-hero-copy h1 { color: #124b5a; }

.student-course-hero-copy > p {
  max-width: 34rem;
  margin: 0;
  color: #526078;
  font-size: 1rem;
  line-height: 1.85;
}

.student-course-next {
  display: grid;
  gap: .2rem;
  padding: 1rem 0;
  margin-top: 1.1rem;
  border-top: 1px solid rgba(46, 75, 102, .13);
}

.student-course-next small { color: #718096; font-size: .75rem; }
.student-course-next strong { color: #26334e; font-size: .96rem; }
.student-course-continue { min-width: 145px; }

.student-course-hero-image {
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  border-radius: 20px;
}

.student-course-hero.no-cover {
  min-height: 0;
  grid-template-columns: 1fr;
}

.student-learning-summary {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: minmax(130px, .28fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin: 30px auto 0;
  padding: 24px 28px;
  border: 1px solid #d8e7e4;
  border-inline-start: 4px solid #4d8378;
  border-radius: 18px;
  background: #f8fcfb;
  box-shadow: 0 10px 28px rgba(31, 65, 66, .05);
}

.student-learning-summary span {
  color: #627a78;
  font-size: .72rem;
  font-weight: 800;
}

.student-learning-summary h2 {
  margin: .35rem 0 0;
  color: #213f45;
  font: 700 1.45rem "Rubik", "Heebo", sans-serif;
}

.student-learning-summary p {
  align-self: center;
  margin: 0;
  color: #43565b;
  font-size: .95rem;
  line-height: 1.9;
}

.student-course-units {
  width: min(820px, 100%);
  margin: 58px auto 0;
}

.student-course-units > header {
  margin-bottom: 18px;
}

.student-course-units h2,
.student-unit-lessons h2 {
  margin: 0;
  color: #1d2946;
  font: 700 1.55rem "Rubik", "Heebo", sans-serif;
}

.student-course-units > header p {
  margin: .45rem 0 0;
  color: #6b7589;
  font-size: .86rem;
}

.student-course-units > div,
.student-unit-lessons > div {
  display: grid;
  gap: .65rem;
}

.student-course-chapter {
  display: grid;
  gap: .7rem;
  margin-block: 1rem 1.6rem;
}

.student-course-chapter > header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: .65rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(27, 102, 113, .18);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(225, 245, 246, .9), rgba(242, 247, 251, .9));
  color: #204d56;
}

.student-course-chapter > header span { font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.student-course-chapter > header h3 { margin: 0; color: #123d46; font-size: 1.08rem; }
.student-course-chapter > header small { color: #527077; }
.student-course-chapter > div { display: grid; gap: .65rem; }

.student-unit-row,
.student-lesson-row {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  border: 1px solid #dfe4ed;
  border-radius: 15px;
  background: #fff;
  color: #2c3851;
  text-align: right;
  cursor: pointer;
}

.student-unit-row:hover:not(:disabled),
.student-lesson-row:hover:not(:disabled) { border-color: #7890d4; box-shadow: 0 6px 20px rgba(43, 63, 111, .07); }
.student-unit-row:disabled,
.student-lesson-row:disabled { opacity: .56; cursor: not-allowed; }
.student-unit-row.completed,
.student-lesson-row.completed { border-color: #c8e6dc; }

.student-unit-index,
.student-lesson-row > span:first-child {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf1fb;
  color: #415db9;
  font-weight: 800;
}

.student-unit-row.completed .student-unit-index,
.student-lesson-row.completed > span:first-child { background: #e5f6f0; color: #14745d; }
.student-unit-row strong,
.student-unit-row small,
.student-lesson-row strong,
.student-lesson-row small { display: block; }
.student-unit-row strong,
.student-lesson-row strong { font-size: .94rem; }
.student-unit-row small,
.student-lesson-row small { margin-top: .25rem; color: #778197; font-size: .75rem; }

.student-unit-main { width: min(880px, calc(100% - 40px)); }
.student-unit-heading {
  padding: 38px 42px;
  border: 1px solid #dfe5ee;
  border-radius: 22px;
  background: #fff;
}

.student-unit-heading > span { color: #4561bd; font-size: .78rem; font-weight: 800; }
.kinematics-unit .student-unit-heading > span { color: #17798d; }
.student-unit-heading h1 { margin: .6rem 0 .8rem; color: #1b2944; font: 700 clamp(2rem, 4vw, 3rem)/1.2 "Rubik", "Heebo", sans-serif; }
.student-unit-heading p { max-width: 42rem; margin: 0; color: #566278; font-size: 1rem; line-height: 1.8; }
.student-unit-progress { height: 7px; overflow: hidden; margin: 1.6rem 0 .55rem; border-radius: 999px; background: #e8ecf3; }
.student-unit-progress i { display: block; height: 100%; border-radius: inherit; background: #526dcc; }
.kinematics-unit .student-unit-progress i { background: #168ca2; }
.student-unit-heading > small { color: #748096; font-size: .76rem; }
.student-unit-heading > .button { display: flex; width: max-content; margin-top: 1.4rem; }
.student-unit-lessons { margin-top: 42px; }
.student-unit-lessons h2 { margin-bottom: 16px; }
.student-unit-loading { min-height: 50vh; display: grid; place-content: center; justify-items: center; color: #667188; }

.student-lesson-open #unit-modal {
  align-items: start;
  direction: ltr;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 0;
  scrollbar-gutter: stable;
  background: #f7f8fb;
  backdrop-filter: none;
}

html:has(body.student-lesson-open),
body.student-lesson-open {
  height: 100%;
  overflow: hidden;
}

.student-lesson-open #unit-modal:has(.lesson-player) .unit-modal-panel,
.student-lesson-open #unit-modal .unit-modal-panel {
  direction: rtl;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 30px clamp(20px, 5vw, 72px) 70px;
  border-radius: 0;
  box-shadow: none;
  background: #f7f8fb;
}

.student-lesson-open #unit-modal .unit-modal-close {
  position: fixed;
  z-index: 5;
  top: 20px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: #fff;
}

.student-lesson-open .lesson-player {
  direction: rtl;
  width: min(900px, 100%);
  margin: 0 auto;
}

.student-lesson-open .lesson-section-nav {
  max-height: none;
  overflow-y: visible;
}

.student-lesson-open .lesson-player-header {
  grid-template-columns: 140px minmax(0, 1fr) 100px;
  padding: 6px 0 0;
}

.student-lesson-open .lesson-player-header.physics-course-header {
  grid-template-columns: 140px minmax(0, 1fr);
  padding: 18px 22px;
}

.student-lesson-open .lesson-player-header h1 { font-size: clamp(1.45rem, 3vw, 2rem); }
.student-lesson-open .lesson-player-progress { margin: 20px 0 26px; }
.student-lesson-open .student-lesson-layout { grid-template-columns: minmax(0, 1fr); }
.student-lesson-open .lesson-section-stage { min-height: 600px; padding: clamp(25px, 5vw, 52px); border: 0; border-radius: 22px; box-shadow: 0 12px 38px rgba(30, 45, 80, .06); }
.student-lesson-open .lesson-section-stage > h2 { max-width: 44rem; font-size: clamp(1.55rem, 3vw, 2rem); }
.student-lesson-open .lesson-blocks { max-width: 720px; gap: 20px; }
.student-lesson-open .lesson-section-actions { margin-top: 42px; }

@media (max-width: 720px) {
  .teacher-detail-heading,
  .teacher-intervention > header { align-items: stretch; flex-direction: column; }
  .teacher-detail-heading > .button,
  .teacher-intervention > header > .button { width: 100%; }
  .teacher-detail-summary,
  .teacher-detail-insights,
  .teacher-intervention-grid,
  .teacher-error-filters { grid-template-columns: 1fr; }
  .teacher-detail-summary > div { min-height: 0; }
  .teacher-detail-heading-compact > .teacher-error-list-action { width: auto; align-self: flex-start; }
  .teacher-detail-compact-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .teacher-detail-compact-summary > span { display: grid; gap: 2px; min-width: 0; }
  .teacher-student-exam-list .teacher-exam-result-head { display: none; }
  .teacher-student-exam-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 9px 1px; }
  .teacher-student-exam-name { align-self: center; }
  .teacher-student-exam-name strong { font-size: 12px; white-space: normal; }
  .teacher-student-exam-meta { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
  .teacher-student-exam-meta-item { display: grid; gap: 1px; padding-top: 5px; border-top: 1px solid #edf0f4; font-size: 10px; }
  .teacher-student-exam-meta-item > small { display: block; }
  .teacher-student-exam-action { align-self: center; }
  .teacher-student-exam-action .button { min-height: 32px; padding: 5px 9px; }
  .teacher-compact-unit-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 7px; }
  .teacher-compact-unit-row > small { grid-column: 2; }
  .teacher-compact-unit-row .status-tag { grid-column: 3; grid-row: 1 / span 2; min-width: 66px; }
  .teacher-path-unit > summary,
  .teacher-path-lesson > summary,
  .teacher-detail-question > summary { grid-template-columns: auto minmax(0, 1fr); }
  .teacher-path-unit > summary > span:last-child,
  .teacher-detail-question > summary > span:last-child,
  .teacher-path-lesson > summary small { grid-column: 2; }
  .teacher-path-unit > div { padding-right: 8px; padding-left: 8px; }
  .teacher-answer-options li { grid-template-columns: minmax(0, 1fr) auto; }
  .teacher-answer-options li b { grid-column: 2; }
  .teacher-timeline li { grid-template-columns: 1fr; gap: 4px; }
  .student-experience-topbar { height: 62px; grid-template-columns: 1fr auto; padding: 0 15px; }
  .student-experience-topbar > strong { display: none; }
  .student-experience-brand { font-size: .95rem; }
  .student-library-main { width: min(100% - 28px, 980px); padding: 42px 0 70px; }
  .student-course-tile { grid-template-columns: 90px minmax(0, 1fr); gap: 1rem; padding: 13px; }
  .student-course-tile img { width: 90px; height: 76px; }
  .student-course-tile h2 { font-size: 1.08rem; }
  .student-course-tile .button { grid-column: 1 / -1; width: 100%; }
  .student-course-main,
  .student-unit-main { width: min(100% - 24px, 1040px); padding: 18px 0 70px; }
  .student-course-hero { min-height: 0; grid-template-columns: 1fr; padding: 27px 22px; border-radius: 19px; }
  .student-course-hero-copy h1 { font-size: 2.45rem; }
  .student-learning-summary { grid-template-columns: 1fr; gap: .8rem; padding: 21px 19px; border-radius: 16px; }
  .student-course-units { margin-top: 38px; }
  .student-unit-row,
  .student-lesson-row { grid-template-columns: 40px minmax(0, 1fr) 18px; gap: .7rem; }
  .student-unit-heading { padding: 27px 22px; border-radius: 18px; }
  .student-unit-heading h1 { font-size: 2rem; }
  .student-lesson-open #unit-modal .unit-modal-panel { padding: 72px 10px 36px; }
  .student-lesson-open #unit-modal .unit-modal-close { top: 12px; left: 12px; }
  .student-lesson-open .lesson-player-header { grid-template-columns: 1fr; gap: 8px; padding-inline: 8px 54px; }
  .student-lesson-open .lesson-player-header .text-button { justify-self: start; }
  .student-lesson-open .lesson-saved-state { display: none; }
  .student-lesson-open .lesson-section-stage { min-height: 0; padding: 27px 19px; border-radius: 17px; }
  .student-lesson-open .lesson-section-actions { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .student-lesson-open .lesson-section-actions > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .student-experience .view.active { animation: none; }
  .teacher-unit-browser-item { transition: none; }
  .student-course-tile,
  .student-unit-row,
  .student-lesson-row { transition: none; }
}

/* Compact teacher classroom dashboard */
.teacher-course-page #teacher-view {
  padding: 16px clamp(14px, 2.5vw, 38px) 42px;
}

.teacher-course-page .teacher-workspace {
  max-width: 1420px;
  margin: 0 auto;
}

.teacher-course-page .teacher-class-heading {
  grid-template-columns: auto minmax(210px, 1fr) auto;
  gap: 14px;
  margin-bottom: 10px;
  padding: 11px 13px;
}

.teacher-course-page .teacher-class-heading h1 {
  font-size: 20px;
}

.teacher-course-page .teacher-class-primary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.teacher-course-page .teacher-class-primary-actions > .button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.teacher-course-page .teacher-copy-status {
  max-width: 160px;
  font-size: 9px;
}

.teacher-student-attention {
  margin: 0 0 12px;
  padding: 13px 14px 14px;
  border: 1px solid #d9e2ed;
  border-inline-start: 4px solid #4d779d;
  border-radius: 8px;
  background: #f8fbfe;
}

.teacher-daily-summary {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid #d9e2ed;
  border-radius: 8px;
  background: #fff;
}

.teacher-daily-summary .teacher-section-heading { align-items: center; margin-bottom: 7px; }
.teacher-daily-summary .overline { display: block; margin-bottom: 2px; color: #657891; font-size: 8px; }
.teacher-daily-summary h2,
.teacher-daily-summary h3 { margin: 0; color: #263650; font-size: 16px; }
.teacher-daily-summary p { max-width: 1040px; margin: 0; color: #44536a; font-size: 12px; line-height: 1.75; }
.teacher-class-daily-summary { border-inline-start: 4px solid #477f75; background: #f8fcfb; }
.teacher-student-daily-summary { margin-bottom: 14px; border-inline-start: 4px solid #6a7fa5; background: #f8fafd; }

.teacher-student-attention .teacher-section-heading {
  align-items: center;
  margin-bottom: 10px;
}

.teacher-student-attention .overline {
  display: block;
  margin-bottom: 2px;
  color: #657891;
  font-size: 8px;
}

.teacher-student-attention-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.teacher-student-attention-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 9px;
  min-height: 132px;
  padding: 13px 13px 10px;
  border: 1px solid #dce4ed;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(40, 60, 86, 0.05);
}

.teacher-student-attention-card > div { min-width: 0; padding-inline-end: 22px; }
.teacher-student-attention-card strong { color: #263650; font: 700 14px/1.35 "Rubik", "Heebo"; }
.teacher-student-attention-card p { margin: 6px 0 0; color: #526076; font-size: 11px; line-height: 1.55; }
.teacher-student-attention-card > .text-button { justify-self: start; min-height: 29px; padding-inline: 0; font-size: 10px; }

.teacher-student-attention-resolve {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #748197;
  font: 500 20px/1 sans-serif;
  cursor: pointer;
}

.teacher-student-attention-resolve:hover,
.teacher-student-attention-resolve:focus-visible { background: #edf3f8; color: #344c69; }
.teacher-student-attention-resolve:disabled { cursor: wait; opacity: 0.45; }

.teacher-student-attention-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px;
  border: 1px dashed #cfdbe7;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: #66758a;
  font-size: 11px;
}

.teacher-course-page .teacher-course-summary {
  display: block;
  margin: 0 0 12px;
  padding: 13px 14px 14px;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
}

.teacher-course-page .teacher-course-summary > .teacher-dashboard-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.teacher-dashboard-heading h2,
.teacher-section-heading h2 {
  margin: 0;
  color: #26344c;
  font: 650 15px/1.35 "Rubik", "Heebo";
}

.teacher-dashboard-heading > span {
  color: #747e90;
  font-size: 9px;
}

.teacher-dashboard-heading > span:first-of-type {
  margin-inline-start: auto;
}

.teacher-dashboard-heading > span strong {
  color: #39475d;
  font-size: 11px;
}

.teacher-course-page .teacher-course-summary > .teacher-class-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  border: 0;
}

.teacher-metric-card {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 10px 12px;
  border: 1px solid #dfe4ec;
  border-inline-start: 3px solid #526784;
  border-radius: 7px;
  background: #fbfcfe;
}

.teacher-metric-card > strong {
  color: #22314a;
  font: 700 27px/1.1 "Rubik", "Heebo";
}

.teacher-metric-card > span {
  color: #39465b;
  font-size: 12px;
  font-weight: 700;
}

.teacher-metric-card > small {
  color: #7a8494;
  font-size: 10px;
}

.teacher-metric-card.metric-success { border-inline-start-color: #3b9678; background: #f7fbf9; }
.teacher-metric-card.metric-risk { border-inline-start-color: #c26a54; background: #fff9f7; }
.teacher-metric-card.metric-neutral { border-inline-start-color: #b89545; background: #fffdf6; }
.teacher-metric-card.metric-progress { border-inline-start-color: #5685b4; background: #f7faff; }

.teacher-threshold-card {
  min-height: 138px;
  grid-template-rows: 30px 18px 16px 30px 14px;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 10px;
  text-align: center;
}

.teacher-threshold-card > strong { grid-row: 1; }
.teacher-threshold-card > span { grid-row: 2; }

.teacher-threshold-card > label {
  grid-row: 3;
  align-self: end;
  color: #566176;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.teacher-threshold-field {
  grid-row: 4;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
}

.teacher-threshold-card input[type="number"] {
  width: 46px;
  min-height: 28px;
  padding: 3px 5px;
  border: 1px solid #cbd3df;
  border-radius: 5px;
  background: #fff;
  color: #22314a;
  font: 700 13px/1 "Rubik", "Heebo";
  text-align: center;
}

.teacher-threshold-card input[type="number"]:focus {
  border-color: #526784;
  outline: 2px solid rgba(82, 103, 132, 0.16);
}

.teacher-threshold-card > small:not(.teacher-threshold-range) { grid-row: 5; }

.teacher-threshold-range {
  grid-row: 3 / 5;
  align-self: center;
  color: #6b5623;
  font: 700 15px/1.1 "Rubik", "Heebo";
}

.teacher-threshold-save {
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #9eb1cb;
  border-radius: 5px;
  background: #fff;
  color: #315d96;
  font: 700 9px/1 "Rubik", "Heebo";
  cursor: pointer;
}

.teacher-threshold-save:hover:not(:disabled) {
  border-color: #5d7fa9;
  background: #f4f7fb;
}

.teacher-threshold-save:disabled {
  cursor: default;
  opacity: 0.55;
}

[data-classification-threshold-error] {
  min-height: 12px;
  color: #a33e32;
  font-size: 9px;
  font-style: normal;
  line-height: 1.25;
}

.teacher-threshold-status {
  grid-column: 2 / 5;
  justify-self: stretch;
  text-align: center;
}

.teacher-threshold-status:empty { display: none; }

.teacher-dashboard-empty {
  grid-column: 1 / -1;
  min-height: 68px;
  display: grid;
  place-content: center;
  gap: 3px;
  margin: 0;
  padding: 12px;
  border: 1px dashed #d7dde7;
  border-radius: 7px;
  background: #fafbfc;
  color: #6e788a;
  font-size: 10px;
  text-align: center;
}

.teacher-dashboard-empty strong { color: #344158; font-size: 13px; }

.teacher-attention-panel {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #e3e7ee;
}

.teacher-section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 5px;
}

.teacher-section-heading > span {
  margin-inline-start: auto;
  color: #7b8494;
  font-size: 8px;
}

.teacher-attention-list { display: grid; }

.teacher-attention-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 5px 2px;
  border-top: 1px solid #edf0f4;
}

.teacher-attention-row:first-child { border-top: 0; }
.teacher-attention-row > span { min-width: 0; }
.teacher-attention-row > span strong,
.teacher-attention-row > span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teacher-attention-row > span strong { color: #344158; font-size: 13px; }
.teacher-attention-row > span small { margin-top: 2px; color: #7b8493; font-size: 10px; }
.teacher-attention-row > b { display: grid; color: #9a6242; font-size: 13px; text-align: center; }
.teacher-attention-row > b.severe { color: #ad4e43; }
.teacher-attention-row > b small { color: #858d9c; font-size: 9px; font-weight: 500; }
.teacher-attention-row .text-button { min-height: 30px; padding: 0 7px; font-size: 10px; }
.teacher-attention-empty { margin: 6px 0 0; padding: 9px; border-radius: 6px; background: #f7f9fb; color: #737d8e; font-size: 9px; }

.teacher-course-page .teacher-class-students-grid {
  margin-bottom: 12px;
}

.teacher-course-page .teacher-class-students-grid .students-card {
  padding: 12px 14px;
}

.teacher-course-page #teacher-student-list {
  display: block;
}

.teacher-student-table-head,
.teacher-course-page .teacher-student-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 76px 92px 112px 18px;
  align-items: center;
  gap: 8px;
}

.teacher-student-table-head {
  min-height: 28px;
  padding: 0 8px;
  border-block: 1px solid #e4e8ef;
  background: #f8f9fb;
  color: #727c8d;
  font-size: 10px;
}

.teacher-student-table-head button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.teacher-course-page .teacher-student-row {
  width: 100%;
  min-height: 46px;
  padding: 5px 8px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: 0;
  background: #fff;
  color: #354158;
  font-family: inherit;
  text-align: right;
  cursor: pointer;
}

.teacher-course-page .teacher-student-row:hover,
.teacher-course-page .teacher-student-row:focus-visible {
  background: #f7f9fc;
  outline: 2px solid rgba(65, 89, 181, .18);
  outline-offset: -2px;
}

.teacher-course-page .teacher-student-row > strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-student-score,
.teacher-student-progress { font-size: 12px; font-variant-numeric: tabular-nums; }
.teacher-course-page .teacher-student-row .status-tag { min-width: 0; padding: 4px 7px; font-size: 10px; text-align: center; }
.teacher-student-arrow { color: #8a93a2; font-size: 12px; }

.teacher-course-page .teacher-exam-management,
.teacher-course-page .teacher-course-structure {
  margin: 0 0 12px;
  padding: 12px 14px;
}

.teacher-course-page .teacher-exam-management .card-heading,
.teacher-course-page .teacher-course-structure .card-heading {
  margin-bottom: 6px;
}

.teacher-exam-management #teacher-exam-list {
  gap: 0;
  border-top: 1px solid #e5e8ee;
}

.teacher-exam-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 72px 92px auto auto;
  align-items: center;
  gap: 10px;
  min-height: 51px;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid #e8ebf0;
}

.teacher-exam-identity { min-width: 0; display: grid; grid-template-columns: auto minmax(0, auto) 1fr; align-items: baseline; gap: 7px; }
.teacher-exam-identity > span { color: #68758b; font-size: 10px; font-weight: 700; }
.teacher-exam-identity > strong { overflow: hidden; color: #2f3c53; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.teacher-exam-identity > small { color: #818998; font-size: 10px; }
.teacher-exam-status { justify-self: start; padding: 4px 8px; border-radius: 999px; background: #f0f2f5; color: #687386; font-size: 10px; font-weight: 800; }
.teacher-exam-status.open { background: #e8f6f0; color: #247359; }
.teacher-exam-status.scheduled { background: #fff4df; color: #946b2f; }
.teacher-exam-status.completed { background: #edf1f7; color: #53647d; }
.teacher-exam-activity { color: #737d8e; font-size: 10px; }
.teacher-exam-preview-button { min-height: 32px; padding: 0 10px; font-size: 10px; }
.teacher-exam-controls { justify-self: end; }
.teacher-exam-controls > summary { min-width: 84px; min-height: 32px; display: grid; place-items: center; padding: 0 9px; border: 1px solid #ccd4e0; border-radius: 5px; background: #fff; color: #3d4e68; font-size: 10px; font-weight: 700; list-style: none; cursor: pointer; }
.teacher-exam-controls > summary::-webkit-details-marker { display: none; }
.teacher-exam-controls[open] { grid-column: 1 / -1; width: 100%; padding-top: 2px; }
.teacher-exam-controls[open] > summary { margin-inline-start: auto; }
.teacher-exam-control-body { margin-top: 7px; padding: 9px; border: 1px solid #e1e5ec; border-radius: 6px; background: #fafbfc; }
.teacher-exam-control-body .teacher-exam-open-form { margin: 0 0 8px; padding: 8px; }
.teacher-exam-control-body .teacher-exam-results { margin-top: 7px; font-size: 9px; }

.teacher-course-exam-preview { display: grid; gap: 1rem; }
.teacher-course-exam-preview-header { padding-left: 36px; }
.teacher-course-exam-preview-instructions { margin: 0; color: #59657a; line-height: 1.65; white-space: pre-line; }
.teacher-course-exam-preview-questions { display: grid; gap: 1rem; }
.teacher-course-exam-preview-question > h2 { margin: 0; color: #25324b; font-size: 1rem; line-height: 1.65; }
.teacher-course-exam-preview-question > h2 > .course-exam-question-number { display: block; margin-bottom: .35rem; color: #188096; font-size: .72rem; }
.teacher-course-exam-preview-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: .7rem; min-height: 48px; padding: .7rem .8rem; border: 1px solid #dce2ec; border-radius: 7px; }
.teacher-course-exam-preview-option > span:first-child { color: #68758b; text-align: center; }

.teacher-course-page .teacher-course-structure #teacher-course-unit-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #e5e8ee;
}

.teacher-course-page .teacher-unit-browser-item {
  min-height: 45px;
  padding: 5px 3px;
  border: 0;
  border-bottom: 1px solid #e8ebf0;
  border-radius: 0;
}

.teacher-course-page .teacher-unit-number {
  width: 27px;
  height: 27px;
  font-size: 9px;
}

.teacher-course-page .teacher-unit-visibility-toggle { width: 18px; height: 18px; }
.teacher-course-page .teacher-unit-browser-item strong { font-size: 12px; }
.teacher-course-page .teacher-unit-browser-item small { font-size: 10px; }
.teacher-course-page .teacher-unit-open { min-height: 30px; padding-inline: 8px; font-size: 10px; }

@media (max-width: 900px) {
  .teacher-course-page .teacher-class-heading { grid-template-columns: auto minmax(0, 1fr); }
  .teacher-course-page .teacher-class-primary-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
  .teacher-course-page .teacher-copy-status { max-width: none; }
  .teacher-exam-open-form { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .teacher-student-attention-list { grid-template-columns: 1fr; }
  .teacher-student-attention-card { min-height: 0; }
}

@media (max-width: 700px) {
  .teacher-course-page #teacher-view { padding: 10px 10px 34px; }
  .teacher-course-page .teacher-class-heading { grid-template-columns: 1fr; padding: 10px; }
  .teacher-course-page .teacher-class-heading > .student-back-link { justify-self: start; }
  .teacher-course-page .teacher-class-primary-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .teacher-course-page .teacher-class-primary-actions > .button { min-width: 0; padding-inline: 8px; white-space: normal; }
  .teacher-course-page .teacher-copy-status { grid-column: 1 / -1; }
  .teacher-course-page .teacher-class-more { position: static; grid-column: 2; justify-self: end; }
  .teacher-student-attention { padding: 11px; }
  .teacher-course-page .teacher-course-summary { display: block; padding: 11px; }
  .teacher-course-page .teacher-course-summary > .teacher-class-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacher-metric-card { min-height: 72px; padding: 8px 9px; }
  .teacher-threshold-card { min-height: 132px; padding: 8px; }
  .teacher-threshold-status { grid-column: 1 / -1; }
  .teacher-metric-card > strong { font-size: 21px; }
  .teacher-attention-row { grid-template-columns: minmax(0, 1fr) 72px; gap: 7px; }
  .teacher-attention-row .text-button { grid-column: 1 / -1; justify-self: start; min-height: 25px; }
  .teacher-section-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .teacher-section-heading > span { margin-inline-start: 0; }
  .teacher-student-table-head,
  .teacher-course-page .teacher-student-row { grid-template-columns: minmax(95px, 1fr) 40px 55px 74px 10px; gap: 4px; padding-inline: 4px; }
  .teacher-course-page .teacher-student-row > strong { font-size: 10px; }
  .teacher-course-page .teacher-student-row .status-tag { padding-inline: 3px; font-size: 7px; }
  .teacher-exam-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .teacher-exam-identity { grid-template-columns: auto minmax(0, 1fr); }
  .teacher-exam-identity > small { grid-column: 2; }
  .teacher-exam-activity { display: none; }
  .teacher-exam-preview-button { justify-self: start; }
  .teacher-exam-controls { grid-column: 1 / -1; width: 100%; }
  .teacher-exam-controls > summary { margin-inline-start: auto; }
  .teacher-exam-open-form { grid-template-columns: 1fr; }
  .teacher-exam-open-form .button { width: 100%; }
  .teacher-exam-window { grid-template-columns: 1fr; gap: 6px; }
  .teacher-course-page .teacher-unit-browser-item { grid-template-columns: 28px 18px minmax(0, 1fr) auto; gap: 6px; }
  .teacher-course-page .teacher-unit-more { display: none; }
}
/* Official Google Identity Services button and one-time existing-account linking. */
.google-signin { display: grid; gap: 10px; justify-items: stretch; margin-block: 16px; }
.google-signin-button { display: flex; justify-content: center; min-height: 40px; }
.google-signin-status:empty { display: none; }
.google-signin-status { margin: 0; font-size: 14px; }
.google-signin-divider { text-align: center; font-size: 13px; margin: 4px 0; opacity: .75; }
.google-link-fields { display: grid; gap: 12px; }
.google-link-fields label { display: grid; gap: 8px; }
.google-signin[aria-busy="true"] .google-signin-button { pointer-events: none; opacity: .6; }
.google-link-active > .auth-fields,
.google-link-active > .auth-submit,
.google-link-active > .auth-inline-link,
.google-link-active > .auth-tabs,
.google-link-active > label,
.google-link-active .google-signin-button,
.google-link-active .google-signin-divider { display: none; }
:root .student-removal-dialog {
  direction: rtl;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border: 1px solid #d7deea;
  border-radius: 22px;
  padding: 28px;
  color: #233044;
  background: #fff;
  box-shadow: 0 24px 80px #172a4540;
}
.student-removal-dialog::backdrop { background: #172a4570; }
.student-removal-dialog h2 { margin-top: 0; }
.student-removal-dialog p { line-height: 1.7; }
.student-removal-dialog label { display: grid; gap: 10px; margin-block: 18px; }
.student-removal-dialog input { width: 100%; padding: 12px; border: 1px solid #adb9cd; border-radius: 10px; font: inherit; }
.student-removal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.student-removal-dialog [data-removal-error] { color: #9b2929; }
.student-removal-list-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 12px; }
