/* SRAZU: clear learning states, neutral surfaces and vivid functional accents. */
:root {
  --bg: #f7f7f9;
  --surface: #fff;
  --surface-2: #f1f0f5;
  --ink: #201e26;
  --muted: #625e6b;
  --line: #dedce4;
  --purple: #6c35e8;
  --purple-2: #5423c6;
  --purple-soft: #efebff;
  --pink: #6c35e8;
  --live: #ff7500;
  --live-dark: #963b00;
  --live-soft: #fff1e5;
  --live-line: #ffba80;
  --live-ink: #261a10;
  --success: #087c45;
  --success-soft: #e8f7ee;
  --danger: #c72c35;
  --danger-soft: #fff0f1;
  --radius: 18px;
  --radius-sm: 12px;
}
body { color: var(--ink); font-family: Manrope, system-ui, sans-serif; }
.ui-icon { width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
.btn { font-family: inherit; font-size: 15px; font-weight: 800; min-height: 46px; border-radius: 11px; line-height: 1.4; }
.btn-primary { background: var(--purple); color: white; box-shadow: none; }
.btn-primary:hover { background: var(--purple-2); }
.btn-live, .live-accent .btn-primary, .plan-card.recommended .btn-primary { background: var(--live); border-color: var(--live); color: var(--live-ink); }
.btn-live:hover, .live-accent .btn-primary:hover, .plan-card.recommended .btn-primary:hover { background: #f06400; border-color: #f06400; color: var(--live-ink); }
.status.live { color: var(--live-dark); background: var(--live-soft); border-color: var(--live-line); }
.status.purple, .tiny-pill { color: var(--purple-2); background: var(--purple-soft); }
.nav { background: rgba(255,255,255,.96); border-bottom-color: var(--line); }
.nav-links a, .nav-link { font-size: 15px; font-weight: 700; color: var(--ink); }
.nav-links a:hover { color: var(--purple-2); }
.card, .module, .plan-card, .stat-card, .ui-preview, .lesson-block, .quick-card, .saved-row { border-radius: 18px; }
.card-soft, .approach-icon, .mock-dashboard { background: var(--surface-2); }
.hero-card { transform: none; box-shadow: none; border-radius: 20px; border-color: var(--line); }
.hero-card:before { content: none; }
.hero h1 em, .section h2 em, .page-hero h1 em { color: var(--purple-2); }
.hero .hero-actions .btn { padding: 15px 22px; }
.hero .hero-actions small { color: var(--muted); font-size: 14px; }
.format-card.live-accent { border-top: 4px solid var(--live); }
.format-card.featured { border-top: 4px solid var(--purple); }
.format-card .format-tag { color: var(--ink); font-weight: 700; }
.compare th:nth-child(2), .compare th:nth-child(3) { border-top: 4px solid var(--live); background: var(--live-soft); color: var(--live-ink); }
.compare th:nth-child(4) { border-top: 4px solid var(--purple); background: var(--purple-soft); color: var(--purple-2); }
.level-entry { background: var(--surface); border-left: 5px solid var(--purple); }
.progress > span { background: var(--purple); }
.notice { background: #f2f2f5; color: #514d59; border-color: var(--line); }
.teacher-portrait { background: var(--live-soft); color: var(--live-dark); border-color: var(--live-line); }
.teacher-card.live-accent, .plan-card.recommended { border-color: var(--live-line); }
.plan-card.recommended { border-top: 4px solid var(--live); }
.final-cta .btn-primary { background: var(--live); color: var(--live-ink); }
.student-shell { background: var(--bg); }
.student-sidebar { background: #fff; color: var(--ink); border-right: 1px solid var(--line); }
.student-sidebar .brand { color: var(--ink); }
.student-sidebar .dashboard-link { color: var(--muted); font-weight: 700; }
.student-sidebar .student-nav { gap: 7px; }
.student-sidebar .student-nav a { color: #4e4a57; font-weight: 750; min-height: 48px; padding: 12px 14px; gap: 12px; }
.student-sidebar .student-nav a:hover { background: #f1eff7; color: var(--ink); }
.student-sidebar .student-nav a.active, .student-sidebar .student-nav a.active:hover { color: white; background: var(--purple); }
.student-sidebar .student-nav a[href="/calendar/"].active,
.student-sidebar .student-nav a[href="/chats/"].active,
.student-sidebar .student-nav a[href="/teacher/calendar/"].active,
.student-sidebar .student-nav a[href="/teacher/chats/"].active,
.student-sidebar .student-nav a[href="/teacher/practice/"].active { color: var(--live-ink); background: var(--live); }
.student-main { max-width: 1380px; padding: 22px 40px 64px; }
.demo-toolbar { color: var(--muted); }
.demo-toolbar a { color: var(--ink); font-weight: 700; }
.workspace-tabs { border-bottom: 1px solid var(--line); gap: 20px; padding-bottom: 0; margin-bottom: 28px; }
.workspace-tabs a { border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 0; font-size: 15px; font-weight: 700; }
.workspace-tabs a:hover { background: transparent; color: var(--purple-2); }
.workspace-tabs a[aria-current="page"] { background: transparent; color: var(--purple-2); border-color: var(--purple); }
.student-top { margin-bottom: 24px; }
.student-top h1 { font-weight: 800; letter-spacing: -.035em; }
.student-top p { color: var(--muted); }
.overview-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.overview-metric { color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 15px; background: white; padding: 22px 24px 18px; }
.overview-metric:hover { border-color: var(--purple); }
.overview-metric > span { font-size: 14px; font-weight: 700; color: var(--muted); }
.overview-metric > strong { display: block; margin: 7px 0 6px; font-size: clamp(32px,3.2vw,44px); font-weight: 800; line-height: 1.15; letter-spacing: -.04em; }
.overview-metric strong small { margin-left: 3px; font-size: .58em; }
.overview-metric p { font-size: 14px; line-height: 1.5; margin: 0; color: var(--muted); }
.overview-metric .ui-icon { width: 16px; height: 16px; }
.learning-focus { display: flex; justify-content: space-between; align-items: center; gap: 30px; background: white; border: 1px solid var(--line); border-left: 5px solid var(--purple); padding: 30px 34px; border-radius: 18px; margin-bottom: 22px; }
.learning-focus-copy { min-width: 0; }
.focus-label { display: inline-flex; align-items: center; gap: 9px; color: var(--purple-2); font-size: 13px; font-weight: 800; letter-spacing: .065em; line-height: 1.5; }
.learning-focus h2 { font-size: clamp(25px,2.5vw,32px); font-weight: 800; line-height: 1.2; margin: 14px 0 10px; letter-spacing: -.025em; }
.learning-focus p { color: var(--muted); margin: 0 0 23px; max-width: 540px; }
.resume-note { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; }
.course-progress-ring { --completion: 0%; border-radius: 50%; width: 142px; height: 142px; flex: 0 0 142px; padding: 9px; background: conic-gradient(var(--purple) var(--completion), #e8e5ef 0); }
.course-progress-ring > div { display: flex; flex-direction: column; align-items: center; justify-content: center; background: white; border-radius: 50%; height: 100%; }
.course-progress-ring strong { font-size: 35px; font-weight: 800; line-height: 1.15; letter-spacing: -.04em; }
.course-progress-ring strong span { font-size: 20px; margin-left: 2px; }
.course-progress-ring small { color: var(--muted); font-size: 13px; margin-top: 4px; }
.learning-course-facts { display: flex; flex: 0 0 160px; flex-direction: column; padding: 24px; background: var(--purple-soft); border-radius: 14px; }
.learning-course-facts strong { color: var(--purple-2); font-size: 44px; line-height: 1.2; }
.learning-course-facts span { font-weight: 700; line-height: 1.5; }
.learning-course-facts small { color: var(--muted); font-size: 14px; margin-top: 10px; }
.overview-next-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.overview-next-grid > .card { padding: 24px; display: flex; flex-direction: column; align-items: start; }
.overview-card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.overview-card-title h2 { font-size: 19px; line-height: 1.3; font-weight: 800; margin: 0; }
.teacher-icon { width: 38px; height: 38px; display: grid; place-items: center; background: var(--live); color: var(--live-ink); border-radius: 10px; flex-shrink: 0; }
.overview-next-grid .card > p { color: var(--muted); margin: 16px 0 24px; }
.overview-next-grid .card > .btn { margin-top: auto; }
.overview-next-grid h3 { font-size: 18px; margin: 15px 0 0; }
.overview-next-grid .status { margin-top: 14px; }
.workspace-help { margin: 24px 0 0; padding: 17px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.6; }
.workspace-help summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.workspace-help p { max-width: 800px; }
.course-path-summary { display: flex; justify-content: space-between; align-items: center; gap: 30px; background: #fff; padding: 28px 32px; border: 1px solid var(--line); border-left: 5px solid var(--purple); border-radius: 18px; }
.course-path-summary h2 { font-size: 34px; line-height: 1.3; font-weight: 800; margin: 9px 0; }
.course-path-summary h2 > span { font-size: 18px; font-weight: 600; color: var(--muted); }
.course-path-summary p { color: var(--muted); margin: 0 0 18px; max-width: 580px; }
.path-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 34px 0 16px; }
.path-heading h2 { margin: 0; font-size: 22px; font-weight: 800; }
.path-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.path-legend > span { display: flex; gap: 7px; align-items: center; }
.path-legend i { height: 16px; width: 16px; display: inline-grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; font-style: normal; }
.legend-completed { background: var(--success); color: white; }
.legend-current { background: var(--purple); }
.legend-future { background: #dddbe3; }
.course-path { display: grid; gap: 18px; }
.path-section { border: 1px solid var(--line); border-radius: 16px; background: white; overflow: hidden; }
.path-section-head { display: flex; align-items: center; gap: 15px; cursor: pointer; list-style: none; padding: 22px; }
.path-section-head::-webkit-details-marker { display: none; }
.path-section-index { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--purple-soft); color: var(--purple-2); font-size: 17px; font-weight: 800; }
.path-section-completed .path-section-index { background: var(--success); color: white; }
.path-section-locked .path-section-index { background: var(--surface-2); color: var(--muted); }
.path-section-title { min-width: 0; flex: 1; }
.path-section-title > small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; margin-bottom: 4px; }
.path-section-title > strong { display: block; font-size: 18px; font-weight: 800; line-height: 1.4; }
.path-section-progress { width: 105px; flex-shrink: 0; }
.path-section-progress > span { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.path-section-progress b { color: var(--ink); }
.path-section-progress progress { display: block; width: 100%; height: 6px; border-radius: 6px; appearance: none; border: 0; background: #e8e5ef; }
.path-section-progress progress::-webkit-progress-bar { background: #e8e5ef; border-radius: 6px; }
.path-section-progress progress::-webkit-progress-value { background: var(--success); border-radius: 6px; }
.path-section-progress progress::-moz-progress-bar { background: var(--success); border-radius: 6px; }
.path-section-head > .ui-icon { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.path-section[open] > .path-section-head > .ui-icon { transform: rotate(180deg); }
.path-section-content { padding: 7px 18px 18px; border-top: 1px solid var(--line); }
.path-lesson { display: flex; align-items: center; gap: 16px; padding: 18px 14px; margin-top: 7px; border: 1px solid transparent; border-bottom-color: #eeedf2; color: var(--ink); text-decoration: none; border-radius: 11px; scroll-margin-top: 28px; }
a.path-lesson:hover { background: #f6f4fd; border-color: #d7cef5; }
.path-marker { flex: 0 0 38px; height: 38px; width: 38px; border-radius: 50%; display: grid; place-items: center; background: #f0eef5; color: var(--muted); border: 1px solid #d9d6e1; font-size: 15px; font-weight: 800; }
.path-marker .ui-icon { width: 20px; height: 20px; }
.path-completed .path-marker { background: var(--success); color: #fff; border-color: var(--success); }
.path-started .path-marker, .path-next .path-marker { background: var(--purple); color: #fff; border-color: var(--purple); }
.path-current { border: 2px solid var(--purple); background: #f7f4ff; }
a.path-current:hover { border-color: var(--purple-2); }
.path-lesson-copy { display: block; flex: 1; min-width: 0; }
.path-lesson-copy strong { display: block; font-size: 16px; font-weight: 750; line-height: 1.45; }
.path-lesson-copy > small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.45; }
.path-lesson-copy > .path-lesson-number { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .075em; margin: 0 0 4px; }
.path-lesson-end { display: flex; align-items: center; gap: 12px; color: var(--purple-2); }
.path-state { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.path-completed .path-state { color: var(--success); }
.path-started .path-state, .path-next .path-state { color: var(--purple-2); }
.path-preparing, .path-locked { background: #fafafb; color: #6e6976; }
.path-preparing .path-marker, .path-locked .path-marker { background: transparent; color: #77717f; }
.path-checkpoint { display: flex; align-items: center; gap: 14px; padding: 20px 12px 6px; }
.checkpoint-icon { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); border: 1px dashed #aaa5b5; border-radius: 10px; }
.path-checkpoint > div { flex: 1; min-width: 0; }
.path-checkpoint strong { font-size: 15px; font-weight: 800; }
.path-checkpoint p { font-size: 13px; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }
.path-checkpoint .btn { font-size: 14px; }
.lesson-video-slot { margin: 22px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lesson-video-slot summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 700; }
.lesson-video-slot summary > span { display: inline-flex; align-items: center; gap: 12px; }
.lesson-video-slot summary small { color: var(--muted); font-size: 14px; font-weight: 500; }
.lesson-video-slot p { color: var(--muted); margin-bottom: 0; }
.status-correct, .status-reviewed { background: var(--success-soft); color: var(--success); }
.status-incorrect { background: var(--danger-soft); color: var(--danger); }
.option.correct { background: var(--success-soft); border-color: var(--success); color: #065b32; }
.option.incorrect { background: var(--danger-soft); border-color: var(--danger); color: #9f1c24; }
.exercise-question:has(.status-correct) { border-left: 4px solid var(--success); }
.exercise-question:has(.status-incorrect) { border-left: 4px solid var(--danger); }
.exercise-feedback:has(.status-correct) { color: #065b32; }
.exercise-feedback:has(.status-incorrect) { color: #9f1c24; }
.lesson-dot.done { color: #fff; background: var(--success); }
:where(a,button,summary):focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
@media (max-width: 1150px) {
  .student-main { padding: 22px 26px 50px; }
  .overview-metric { padding: 20px 18px; }
  .path-lesson { gap: 12px; }
  .path-lesson-end { max-width: 125px; }
  .path-state { white-space: normal; line-height: 1.4; }
}
@media (max-width: 960px) {
  .student-shell { grid-template-columns: 200px minmax(0,1fr); }
  .student-sidebar .student-nav a { padding: 12px 10px; gap: 9px; }
  .learning-focus, .course-path-summary { padding: 24px; gap: 20px; }
  .course-progress-ring { width: 112px; height: 112px; flex-basis: 112px; padding: 7px; }
  .course-progress-ring strong { font-size: 29px; }
  .overview-next-grid { grid-template-columns: 1fr; }
  .path-section-head { flex-wrap: wrap; gap: 12px; padding: 18px; }
  .path-section-progress { width: 78px; }
}
@media (max-width: 760px) {
  .student-shell { display: block; }
  .student-sidebar { padding: 12px 16px 8px; height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--line); }
  .student-sidebar .brand { display: none; }
  .student-sidebar .dashboard-link { display: block; margin: 0 0 10px; font-size: 14px; }
  .student-sidebar .student-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; padding-bottom: 0; }
  .student-sidebar .student-nav a { flex-direction: column; text-align: center; padding: 10px 3px; min-width: 0; min-height: 68px; font-size: 14px; line-height: 1.3; gap: 5px; }
  .student-sidebar .student-nav a span { display: block; white-space: normal; }
  .student-sidebar .student-nav .ui-icon { width: 19px; height: 19px; }
  .student-main { padding: 18px 16px 44px; }
  .workspace-tabs { gap: 18px; overflow-x: auto; flex-wrap: nowrap; margin-bottom: 24px; }
  .workspace-tabs a { white-space: nowrap; font-size: 14px; flex-shrink: 0; }
  .overview-metrics { gap: 9px; }
  .overview-metric { padding: 15px 12px; border-radius: 12px; }
  .overview-metric > span { display: block; min-height: 42px; font-size: 14px; line-height: 1.4; }
  .overview-metric > strong { font-size: 32px; }
  .overview-metric p { font-size: 13px; }
  .overview-metric .ui-icon { display: none; }
  .learning-focus, .course-path-summary { padding: 23px 20px; gap: 20px; }
  .learning-focus h2 { font-size: 26px; }
  .course-path-summary h2 { font-size: 30px; }
  .course-path-summary h2 > span { font-size: 17px; }
  .learning-focus p, .course-path-summary p { font-size: 15px; }
  .path-heading { margin-top: 28px; }
  .path-legend { gap: 10px 15px; font-size: 13px; }
  .path-section-head { padding: 18px 14px; }
  .path-section-index { width: 36px; height: 36px; flex-basis: 36px; border-radius: 9px; }
  .path-section-title > strong { font-size: 16px; }
  .path-section-progress { width: 75px; }
  .path-section-content { padding: 5px 8px 15px; }
  .path-lesson { gap: 11px; padding: 15px 10px; flex-wrap: wrap; }
  .path-marker { width: 32px; height: 32px; flex-basis: 32px; }
  .path-lesson-copy { flex-basis: calc(100% - 48px); }
  .path-lesson-copy > strong { font-size: 16px; }
  .path-lesson-copy > small { font-size: 14px; }
  .path-lesson-end { max-width: none; margin-left: 43px; margin-top: -2px; width: calc(100% - 43px); justify-content: space-between; }
  .path-state { font-size: 14px; }
  .path-checkpoint { flex-wrap: wrap; padding: 18px 8px 3px; gap: 12px; }
  .path-checkpoint .btn { margin-left: 50px; }
  .path-checkpoint > .path-state { margin-left: 50px; }
}
@media (max-width: 520px) {
  .learning-focus, .course-path-summary { flex-wrap: wrap; }
  .learning-focus-copy, .course-path-summary > div:first-child { flex: 1 1 100%; }
  .learning-focus .course-progress-ring { display: none; } /* The same percentage is visible in the overview above. */
  .course-path-summary .course-progress-ring { width: 94px; height: 94px; flex-basis: 94px; }
  .course-path-summary .course-progress-ring strong { font-size: 25px; }
  .course-path-summary .course-progress-ring small { font-size: 12px; }
  .course-path-summary .btn, .learning-focus .btn { width: 100%; }
  .course-path-summary { flex-wrap: nowrap; align-items: flex-start; }
  .course-path-summary > div:first-child { flex-basis: auto; min-width: 0; }
  .course-path-summary h2 > span { display: block; margin-top: 5px; }
  .course-path-summary .course-progress-ring { flex: 0 0 94px; height: 94px; width: 94px; padding: 6px; margin-top: 3px; }
  .course-path-summary .course-progress-ring strong { font-size: 22px; }
  .course-path-summary .course-progress-ring strong span { font-size: 14px; }
  .course-path-summary .course-progress-ring small { font-size: 12px; }
  .path-section-progress { flex: 0 0 100%; padding-left: 48px; }
  .path-section-progress > span { justify-content: flex-start; gap: 10px; }
  .path-section-progress progress { max-width: 150px; }
  .path-section-head > .ui-icon { order: -1; width: 15px; height: 15px; }
  .path-section-title { flex-basis: calc(100% - 88px); }
  .lesson-video-slot { padding: 16px; }
  .lesson-video-slot summary { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .student-sidebar .student-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .overview-metrics { grid-template-columns: 1fr; }
  .overview-metric > span { min-height: 0; }
  .course-path-summary { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .path-section-head > .ui-icon { transition: none; } }
