/* EduLab theme: Mapstudy-inspired shell, original content and local assets. */
:root {
    --primary: #155e94; --secondary: #2470aa; --ink: #24435d; --muted: #627287;
    --surface: #fff; --canvas: #f5f7f9; --line: #e4e9ef; --soft-blue: #edf3fa;
    --radius: 10px; --header-height: 56px;
    --bs-primary: #155e94; --bs-primary-rgb: 21,94,148; --bs-link-color: #155e94;
    --bs-link-hover-color: #104974; --bs-body-color: #24435d; --bs-body-font-size: 14px;
    --bs-body-font-family: 'Quicksand', sans-serif; --bs-border-color: #e4e9ef;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: 'Quicksand', sans-serif; font-size: 14px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
a { color: var(--primary); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: #104974; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #ca7917; outline-offset: 3px; }
::selection { background: #cbe2f4; color: #173c59; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, .h2, .h3, .h5 { font-weight: 700; line-height: 1.4; color: var(--primary); }
h1, .h2, .h3 { font-size: clamp(22px, 2vw, 28px); }
h2, .h5 { font-size: 18px; } h3 { font-size: 16px; }
.text-muted { color: var(--muted)!important; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 1200; background: #fff; padding: 12px 18px; border-radius: 6px; }
.skip-link:focus { top: 8px; }
.app-header { height: var(--header-height); position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; gap: 22px; padding: 0 28px; background: #f8faff; border-bottom: 1px solid #e9eef5; }
.header-brand, .brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand { font-size: 24px; font-weight: 700; letter-spacing: -.7px; }
.logo-symbol { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #528fcb; color: #fff; font-size: 30px; font-weight: 700; line-height: 1; }
.logo-symbol span { color: #d5edff; margin-left: -2px; }
.header-search { display: flex; align-items: center; width: 240px; height: 38px; background: #eaf0f9; border-radius: 9px; }
.header-search input { background: none; border: 0; outline-offset: 0; width: 100%; min-width: 0; padding: 9px 12px; color: var(--ink); }
.header-search input::placeholder { color: #637d99; font-size: 12px; }
.icon-button { border: 0; background: transparent; color: var(--primary); display: inline-grid; place-items: center; width: 44px; min-width: 44px; height: 44px; padding: 8px; border-radius: 8px; }
.icon-button:hover { background: #ddeaf7; }
.header-shortcuts { display: flex; gap: 16px; margin: auto; }
.header-shortcuts a { display: grid; place-items: center; width: 48px; height: 44px; border-radius: 8px; color: #77838f; }
.header-shortcuts a:hover, .header-shortcuts a.is-active { color: var(--primary); background: #e9f0f8; }
.header-account { display: flex; align-items: center; gap: 20px; margin-left: auto; white-space: nowrap; }
.header-account form { margin: 0; }
.account-link { display: flex; align-items: center; gap: 8px; }
.register-link { border-left: 1px solid #bacbde; padding-left: 20px; }
.menu-toggle, .sidebar-mobile-title { display: none; }
.app-shell { max-width: 1680px; margin: var(--header-height) auto 0; padding: 24px 28px 36px; display: grid; gap: 36px; align-items: start; }
.discovery-shell { grid-template-columns: 252px minmax(0, 1fr) 304px; }
.workspace-shell { grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 80px; max-height: calc(100dvh - 96px); overflow-y: auto; scrollbar-width: thin; }
.sidebar-account { display: flex; align-items: center; gap: 12px; padding: 8px 4px 22px; border-bottom: 1px solid #d7e0e8; margin-bottom: 12px; }
.side-links { display: grid; gap: 3px; }
.side-links a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 7px; }
.side-links a:hover, .sidebar-account:hover { background: #eaf1f9; }
.side-links a.is-active { background: #e5eef9; font-weight: 700; color: var(--primary); }
.nav-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; color: var(--secondary); background: #e8eff7; }
.nav-icon .icon { width: 20px; height: 20px; }
.nav-icon.blue { background: #e2effe; color: #2076b7; }.nav-icon.coral { background: #ffebe8; color: #c94c36; }.nav-icon.purple { background: #ede6ff; color: #7655b9; }.nav-icon.orange { background: #fff0d5; color: #a96b09; }.nav-icon.green { background: #ddf4ed; color: #188165; }
.sidebar-section { border-top: 1px solid #d7e0e8; padding-top: 20px; margin-top: 22px; }.sidebar-section h2 { font-size: 14px; margin: 0 10px 12px; }
.sidebar-note { margin: 24px 8px 16px; padding: 18px; background: #eaf1fa; border-radius: 10px; color: var(--primary); }
.sidebar-note>.icon { display: block; margin-bottom: 10px; }.sidebar-note strong { font-size: 13px; }.sidebar-note p { font-size: 12px; margin-top: 8px; color: var(--muted); }.sidebar-note a { font-size: 12px; font-weight: 700; }
.sidebar-signature { font-size: 11px; color: var(--muted); padding-left: 24px; }
.main-content { min-width: 0; outline: none; }.discovery-content { display: grid; gap: 20px; }
.workspace-content { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-height: 65vh; }
.workspace-content>h1:first-of-type { margin-bottom: 12px; }.workspace-content>h2 { margin-top: 24px; }
.panel, .card { background: var(--surface); border: 1px solid #edf0f3; border-radius: var(--radius); box-shadow: 0 1px 2px #12345604; }
.card-body { padding: 24px; }.card { --bs-card-title-color: var(--primary); }
.home-panel, .catalog-panel { padding: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-heading>a { flex-shrink: 0; font-size: 12px; color: var(--muted); }.section-heading>a:hover { color: var(--primary); text-decoration: underline; }
.section-title { font-size: 17px; font-weight: 700; border-left: 4px solid #3978cb; padding-left: 11px; margin: 0; }
.eyebrow { display: block; font-size: 11px; letter-spacing: .1em; color: var(--secondary); font-weight: 700; margin-bottom: 10px; }
.discovery-tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 6px; background: #fff; overflow: hidden; }
.discovery-tabs a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #657586; font-weight: 700; }.discovery-tabs .icon { width: 20px; height: 20px; }.discovery-tabs a.is-active { background: var(--primary); color: white; }.discovery-tabs a:not(.is-active):hover { background: #eaf2fa; }
.home-banner { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; min-height: 250px; padding: 24px 28px; border-radius: var(--radius); overflow: hidden; background: #edf3fa; background-image: linear-gradient(115deg,#f8f3e6,#eaf2f9 55%,#cddff2); }
.banner-copy { position: relative; z-index: 2; }.banner-kicker { font-size: 9px; font-weight: 700; letter-spacing: .1em; color: #526b83; }.banner-copy h1 { font-size: clamp(25px, 2.25vw, 36px); line-height: 1.24; margin: 10px 0; letter-spacing: -.8px; }.banner-copy h1 span { color: #2878b3; }.banner-copy p { font-size: 12px; line-height: 1.6; margin-bottom: 15px; }.banner-copy .btn { font-size: 12px; min-height: 38px; padding: 8px 14px; }
.banner-illustration { position: relative; height: 220px; display: grid; place-items: center; }
.banner-book { width: 135px; height: 166px; background: linear-gradient(130deg,#2470aa,#104c7b); border: 5px solid #fff; border-left: 12px solid #6ba0cf; border-radius: 5px 12px 12px 5px; color: #fff; box-shadow: 10px 15px 0 #4a79a31a; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-10deg); z-index: 1; }.banner-book>.icon { width: 45px; height: 45px; margin-bottom: 6px; }.banner-book strong { font-size: 24px; }.banner-book small { font-size: 8px; letter-spacing: .1em; }
.orbit { position: absolute; width: 240px; height: 150px; border: 1px solid #99b7d4; border-radius: 50%; transform: rotate(-32deg); }.orbit-two { transform: rotate(40deg); width: 200px; height: 200px; border-style: dashed; }
.formula { position: absolute; border-radius: 8px; background: #ffffffed; color: var(--primary); font-size: 13px; font-weight: 700; padding: 8px 12px; z-index: 2; box-shadow: 0 4px 15px #155e940b; }.formula-one { top: 3px; left: 0; transform: rotate(-7deg); }.formula-two { right: -4px; top: 82px; color: #36765c; transform: rotate(9deg); }.formula-three { bottom: 2px; left: 10px; color: #9f6032; transform: rotate(-5deg); }.banner-star { position: absolute; right: 12px; top: 12px; font-size: 30px; color: #c58c3a; }
.subject-strip { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }.subject-tile { text-align: center; min-width: 0; padding-bottom: 4px; border-radius: 8px; }.subject-tile:hover { background: #f3f7fc; }.subject-tile-art { background: #e7f0fd; color: #2772ad; display: grid; place-items: center; height: 80px; border-radius: 9px; margin-bottom: 10px; }.subject-tile-art .icon { width: 34px; height: 34px; }.subject-tone-1 .subject-tile-art { background: #fff0de; color: #ac6b2e; }.subject-tone-2 .subject-tile-art { background: #e6f5ef; color: #288366; }.subject-tone-3 .subject-tile-art { background: #eee8fa; color: #7750b2; }.subject-tile strong { display: block; font-size: 12px; line-height: 1.4; }.subject-tile>span:last-child { font-size: 11px; color: var(--muted); }
.course-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }.course-card { min-width: 0; display: flex; flex-direction: column; }.course-cover { --cover-color: #155e94; --cover-light: #397dae; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; position: relative; overflow: hidden; border-radius: 9px; padding: 14px 10px; color: #fff; background: linear-gradient(145deg,var(--cover-light),var(--cover-color)); text-align: center; }.course-cover::before { content: ''; position: absolute; inset: 8px; border: 1px solid #ffffff52; border-radius: 4px; }.course-cover::after { content: ''; position: absolute; right: -30px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 22px solid #ffffff08; }.course-cover:hover { color: #fff; filter: brightness(1.05); }.theme-purple { --cover-color: #51318e; --cover-light: #9266c8; }.theme-green { --cover-color: #08744f; --cover-light: #35af7a; }.theme-orange { --cover-color: #ad421e; --cover-light: #e89358; }.cover-brand { font-size: 8px; letter-spacing: .15em; }.cover-subject { font-size: clamp(13px,1.15vw,18px); font-weight: 700; text-transform: uppercase; line-height: 1.2; margin-top: 8px; }.cover-grade { font-size: clamp(42px,4.7vw,70px); line-height: 1.06; font-family: Georgia,serif; margin: 4px 0; }.cover-caption { font-size: 7px; letter-spacing: .04em; }.course-cover>.icon { position: absolute; bottom: 10px; right: 12px; width: 14px; height: 14px; opacity: .6; }
.course-info { display: flex; flex-direction: column; flex: 1; padding-top: 10px; }.course-type { font-size: 10px; color: var(--muted); margin-bottom: 5px; }.course-card h3 { font-size: 13px; margin-bottom: 9px; line-height: 1.6; }.course-card h3 a:hover { text-decoration: underline; }.course-teacher { display: flex; align-items: center; gap: 5px; font-size: 11px; margin-bottom: 8px; }.course-teacher .icon, .course-meta .icon { width: 13px; height: 13px; }.course-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; color: var(--muted); font-size: 11px; margin-bottom: 10px; }.course-meta span { display: flex; align-items: center; gap: 4px; }.course-action { font-size: 12px; border-top: 1px solid var(--line); margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; gap: 4px; font-weight: 700; }.course-action:hover { text-decoration: underline; }.course-progress { font-size: 10px; color: var(--muted); margin-bottom: 10px; }
progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 8px; overflow: hidden; margin-top: 6px; background: #e8eef6; accent-color: var(--secondary); }progress::-webkit-progress-bar { background: #e8eef6; }progress::-webkit-progress-value { background: var(--secondary); }progress::-moz-progress-bar { background: var(--secondary); }
.utility-column { display: grid; gap: 20px; min-width: 0; }.study-promo { background: linear-gradient(145deg,#14588f,#2787bb); padding: 22px; text-align: center; border-radius: 10px; color: white; overflow: hidden; }.promo-label { font-size: 10px; letter-spacing: .14em; color: #d4ebff; }.study-promo h2 { color: #fff; font-size: 28px; line-height: 1.25; margin: 12px 0 2px; letter-spacing: -.7px; }.study-promo p { font-size: 12px; color: #e6f3ff; margin: 8px 0 16px; }.study-promo .btn { font-size: 12px; width: 100%; color: var(--primary); }.promo-art { height: 116px; position: relative; display: grid; place-items: center; }.promo-art>.icon { width: 88px; height: 88px; color: #c7e8ff; stroke-width: 1; transform: rotate(-12deg); }.promo-art>span { position: absolute; border: 1px solid #ffffff5c; background: #ffffff15; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; font-size: 17px; font-weight: 700; }.promo-art>span:nth-child(2) { left: 8px; top: 15px; transform: rotate(-10deg); }.promo-art>span:nth-child(3) { right: 9px; top: 3px; transform: rotate(12deg); }.promo-art>span:nth-child(4) { right: 3px; bottom: 3px; font-size: 12px; }
.utility-cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px!important; }.utility-cta .icon { width: 20px; }.utility-panel { padding: 18px; }.utility-panel h2 { font-size: 17px; }.utility-link { display: flex; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 12px; }.utility-link>span:nth-child(2) { flex: 1; }.utility-link strong { font-size: 12px; }.utility-link small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.learning-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }.learning-grid h3 { font-size: 14px; margin-top: 12px; }.learning-grid p { font-size: 12px; color: var(--muted); }.learning-grid>a>span:last-child { font-size: 11px; font-weight: 700; }.learning-grid>a:hover h3 { text-decoration: underline; }
.btn { font-size: 14px; font-weight: 600; border-radius: 8px; padding: 9px 16px; min-height: 44px; box-shadow: none; }.btn-sm { font-size: 12px; min-height: 38px; padding: 8px 13px; }.btn-primary { --bs-btn-bg: #155e94; --bs-btn-border-color: #155e94; --bs-btn-hover-bg: #104b78; --bs-btn-hover-border-color: #104b78; --bs-btn-active-bg: #0e436c; --bs-btn-active-border-color: #0e436c; --bs-btn-disabled-bg: #155e94; --bs-btn-disabled-border-color: #155e94; }.btn-outline-primary { --bs-btn-color: #155e94; --bs-btn-border-color: #b4cde2; --bs-btn-hover-bg: #155e94; --bs-btn-hover-border-color: #155e94; --bs-btn-active-bg: #155e94; --bs-btn-active-border-color: #155e94; }.btn-outline-secondary { --bs-btn-color: #5e7084; --bs-btn-border-color: #d6dfe8; }.btn-success { --bs-btn-bg: #177b62; --bs-btn-border-color: #177b62; }
.form-control, .form-select { border: 1px solid #dce5ee; background-color: #f5f7fa; border-radius: 7px; min-height: 44px; padding: 10px 12px; font-size: 13px; color: var(--ink); }.form-select { padding-right: 32px; }.form-control:focus, .form-select:focus { background-color: white; border-color: #548bb4; box-shadow: 0 0 0 3px #155e9414; }.form-control::placeholder { color: #6f8195; }.form-label, form>label { font-size: 12px; font-weight: 600; margin-bottom: 6px; }.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }textarea.form-control { resize: vertical; }
.catalog-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 18px; background: #f5f8fc; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 26px; }.catalog-filters>div { flex: 1 1 120px; min-width: 0; }.catalog-filters .filter-search { flex: 2 1 200px; }.catalog-filters label { font-size: 11px; margin-bottom: 6px; display: block; }.catalog-filters .filter-course { flex: 2 1 240px; }.catalog-filters .filter-actions { display: flex; flex: 0 1 auto; gap: 8px; }.catalog-filters .btn { font-size: 12px; padding-inline: 12px; }
.page-heading { margin-bottom: 22px; }.page-heading p { color: var(--muted); margin-bottom: 0; }.breadcrumb-line { display: flex; flex-wrap: wrap; gap: 9px; font-size: 12px; color: var(--muted); margin-bottom: 20px; }.discovery-content>.breadcrumb-line { margin: 0; }.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); }.empty-state>.icon { width: 40px; height: 40px; margin-bottom: 16px; color: #7b9bb8; }.empty-state h2, .empty-state h3 { font-size: 18px; }.empty-state p { max-width: 400px; margin: 12px auto 20px; }
.course-intro { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 32px; align-items: center; }.course-intro .cover-grade { font-size: 90px; }.course-intro .cover-subject { font-size: 24px; }.course-intro .course-meta { font-size: 13px; }.course-intro .btn { margin: 4px 4px 4px 0; }.progress-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px; background: #eff6fc; border-radius: 8px; margin-top: 26px; }.progress-summary>span { margin-left: auto; }.progress-summary progress { flex-basis: 100%; }.progress-summary small { color: var(--muted); }.curriculum-row { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 9px; margin-top: 12px; padding: 18px; }.curriculum-row>div { flex: 1; }.curriculum-row h3 { font-size: 15px; margin: 4px 0; }.lesson-number { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; background: #eaf1f9; color: var(--primary); border-radius: 8px; font-weight: 700; }.locked-lesson { color: var(--muted); font-size: 11px; max-width: 190px; }.locked-lesson .icon { width: 16px; height: 16px; margin-right: 6px; }
.table-responsive { border: 1px solid var(--line); border-radius: 9px; margin: 16px 0 24px; }.table { margin-bottom: 0; --bs-table-color: var(--ink); font-size: 13px; }.table thead th { background: #eef4fa; color: var(--primary); font-size: 12px; padding: 14px; white-space: nowrap; }.table tbody td { padding: 14px; vertical-align: middle; min-width: 80px; }.table tbody tr:last-child td { border-bottom: 0; }.table tbody tr:hover td { background: #f9fbfd; }.list-group { --bs-list-group-border-color: var(--line); --bs-list-group-color: var(--ink); --bs-list-group-border-radius: 9px; }.list-group-item { padding: 16px 18px; }.list-group-item a { font-weight: 600; }.list-group-item a:hover { text-decoration: underline; }
.path-step { position: relative; padding: 22px 22px 22px 32px; margin: 0 0 16px 18px; border: 1px solid var(--line); border-left: 3px solid #a4c5e5; background: #f9fbfd; border-radius: 0 10px 10px 0; }.path-step h2 { font-size: 17px; }.step-badge { position: absolute; left: -21px; top: 20px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--primary); border: 4px solid white; color: white; border-radius: 50%; font-size: 12px; }.path-step.done { border-left-color: #208566; }.path-step.done .step-badge { background: #208566; }
.lesson-content { max-width: 78ch; line-height: 1.9; font-size: 15px; }.lesson-content h2 { margin-top: 24px; }.lesson-content h3 { margin-top: 20px; }.lesson-content img { max-width: 100%; height: auto; }.lesson-content table { max-width: 100%; }.lesson-content pre { white-space: pre-wrap; }.ai-response { white-space: pre-wrap; line-height: 1.8; background: #edf5fb; border-left: 3px solid #4b8bbd; border-radius: 7px; padding: 18px; margin-top: 18px; }.ai-response:empty { display: none; }.forum-body { white-space: pre-wrap; }.alert { font-size: 13px; border-radius: 8px; }.badge { font-weight: 600; line-height: 1.4; }
#quizForm .form-check { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 0; margin: 10px 0; min-height: 46px; }#quizForm .form-check .form-check-input { position: absolute; left: 14px; top: 15px; margin: 0; }#quizForm .form-check-label { display: block; width: 100%; padding: 12px 14px 12px 40px; cursor: pointer; }#quizForm .form-check:has(input:checked) { background: #eef5fc; border-color: #528ab8; }#quizForm .form-check:has(input:disabled) label { cursor: default; }#quizTimer { font-variant-numeric: tabular-nums; color: #a94f16; }#quizForm legend { float: none; width: auto; }.dashboard-welcome { background: #edf4fb; border-color: #dbe7f3; }.dashboard-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0 0; }.dashboard-stats>div { background: #fff; padding: 18px; border-radius: 8px; }.dashboard-stats dt { font-size: 12px; color: var(--muted); font-weight: 500; }.dashboard-stats dd { margin: 8px 0 0; font-size: 28px; font-weight: 700; color: var(--primary); }
.site-footer { max-width: 1680px; margin: 0 auto; padding: 32px 28px 0; background: #edf2f7; border-top: 1px solid #e1e7ee; color: #526b81; font-size: 12px; }.footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.2fr; gap: 36px; }.footer-grid h2 { font-size: 15px; margin: 0 0 18px; }.footer-grid>div>a:not(.brand) { display: block; margin-bottom: 10px; }.footer-grid>div>a:not(.brand):hover { text-decoration: underline; }.footer-bottom { border-top: 1px solid #d6e0e9; margin-top: 26px; padding: 18px 0; display: flex; justify-content: space-between; font-size: 11px; }
.auth-page { min-height: 100dvh; display: flex; flex-direction: column; padding-top: var(--header-height); background: #f4f7fb; }
.auth-main { flex: 1 0 auto; width: 100%; padding: 48px 24px 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-main>#globalNotice { width: 100%; max-width: 932px; margin: 0 auto 24px; }
.auth-page .site-footer { flex-shrink: 0; width: 100%; }
.auth-layout { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 64px; }
.auth-story h2 { font-size: 36px; line-height: 1.25; margin-bottom: 18px; }.auth-story>p { color: var(--muted); max-width: 340px; }.auth-story .banner-illustration { width: 320px; max-width: 100%; height: 250px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }.auth-card h1 { font-size: 25px; }.auth-card>p { color: var(--muted); font-size: 13px; }.auth-switch { padding-top: 22px; margin-bottom: 0; text-align: center; border-top: 1px solid var(--line); margin-top: 24px; font-size: 13px; }.auth-footnote { max-width: 330px; margin: 20px auto 0; font-size: 11px; text-align: center; color: var(--muted); }
.demo-accounts { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }.demo-accounts-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.demo-accounts-heading h2 { margin: 3px 0 0; font-size: 17px; }.demo-badge { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #e7f2fb; color: var(--primary); font-size: 11px; font-weight: 700; }.demo-accounts-intro { margin: 8px 0 12px; color: var(--muted); font-size: 12px; }.demo-account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.demo-account { display: block; width: 100%; padding: 12px; border: 1px solid #d8e4ef; border-radius: 9px; background: #f8fbfe; color: var(--ink); text-align: left; appearance: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }.demo-account:hover { border-color: #7fa9ca; background: #eef6fc; transform: translateY(-1px); }.demo-account[aria-pressed="true"] { border-color: var(--primary); background: #eaf3fb; box-shadow: 0 0 0 2px #c8dfef; }.demo-account-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.demo-account-topline strong { color: var(--primary); font-size: 14px; }.demo-account-role { color: var(--muted); font-size: 11px; white-space: nowrap; }.demo-account-password { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: var(--muted); font-size: 11px; }.demo-account-password code { padding: 2px 5px; border-radius: 4px; background: #fff; color: #24435d; font-size: 11px; }.demo-account-notice { min-height: 18px; margin: 9px 0 0; color: #226348; font-size: 11px; }
.error-card { max-width: 620px; margin: 80px auto; background: #fff; padding: 40px; border-radius: 12px; border: 1px solid var(--line); text-align: center; }.error-code { font-size: 64px; font-weight: 700; color: #aac5dd; }.error-card .btn { margin: 6px; }
.lesson-item { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }.lesson-item:first-of-type { border-top: 0; }.lesson-item>.flex-grow-1 { flex-basis: 220px; }
@media (min-width: 1500px) { .app-shell { gap: 48px; }.discovery-shell { grid-template-columns: 260px minmax(0,1fr) 304px; }.course-cover { max-height: 230px; }.home-banner { min-height: 280px; } }
@media (max-width: 1279px) { .discovery-shell { grid-template-columns: 210px minmax(0,1fr); }.workspace-shell { grid-template-columns: 210px minmax(0,1fr); }.utility-column { grid-column: 2; grid-template-columns: 1fr 1fr; }.study-promo { grid-row: span 2; align-self: start; }.utility-cta { display: none; }.app-shell { gap: 24px; padding-inline: 20px; }.header-shortcuts { gap: 4px; }.header-search { width: 210px; }.header-account { gap: 12px; }.header-brand .brand { font-size: 21px; }.header-shortcuts a { width: 40px; }.app-header { gap: 16px; padding-inline: 20px; }.course-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 991px) { .app-header { padding-inline: 16px; gap: 16px; }.menu-toggle { display: inline-grid; }.header-shortcuts { display: none; }.header-brand { gap: 5px; }.header-search { flex: 1; max-width: 300px; }.app-shell { display: block; padding: 20px; }.main-content { width: 100%; }.sidebar { position: fixed; left: 0; top: 0; bottom: 0; max-height: 100dvh; width: 290px; max-width: 86vw; z-index: 300; padding: 20px 16px; background: #f8faff; transform: translateX(-100%); visibility: hidden; transition: transform .18s ease; }.menu-open .sidebar { transform: translateX(0); visibility: visible; }.sidebar-mobile-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }.menu-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 200; background: #163a5b66; border: 0; }.menu-open { overflow: hidden; }.utility-column { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.workspace-content { padding: 24px; }.course-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }.home-banner { min-height: 270px; }.banner-copy h1 { font-size: 34px; }.cover-grade { font-size: 66px; }.cover-subject { font-size: 17px; }.footer-grid { gap: 24px; grid-template-columns: 1fr 1fr; }.auth-layout { gap: 30px; margin-top: 28px; }.auth-story h2 { font-size: 30px; } }
@media (max-width: 639px) { .app-header { padding-inline: 8px; gap: 8px; }.header-brand .brand { font-size: 20px; gap: 7px; }.logo-symbol { width: 32px; height: 32px; font-size: 26px; border-radius: 8px; }.header-search { display: none; }.header-account { gap: 10px; }.register-link { border: 0; padding: 0; font-size: 12px; }.account-link span { display: none; }.account-link .icon { width: 20px; }.header-account .btn-sm { padding: 8px 10px; }.app-shell { padding: 14px 12px 28px; }.discovery-content { gap: 14px; }.home-panel, .catalog-panel { padding: 18px 14px; }.section-heading { gap: 8px; margin-bottom: 16px; }.section-title { font-size: 14px; padding-left: 9px; border-width: 3px; }.section-heading>a { font-size: 11px; }.home-banner { grid-template-columns: 1fr .65fr; padding: 22px 18px; min-height: 236px; }.banner-copy h1 { font-size: 26px; letter-spacing: -.6px; }.banner-kicker { font-size: 8px; }.banner-copy p { font-size: 11px; }.banner-illustration { height: 180px; margin-right: -12px; }.banner-book { width: 86px; height: 127px; border-left-width: 7px; }.banner-book strong { font-size: 17px; }.banner-book>.icon { width: 30px; height: 30px; }.banner-book small { font-size: 6px; }.orbit { width: 150px; height: 120px; }.orbit-two { width: 130px; height: 150px; }.formula { font-size: 10px; padding: 5px 7px; }.formula-one { font-size: 8px; left: -18px; }.formula-two { right: -4px; top: 76px; }.formula-three { bottom: 0; left: 0; }.banner-star { font-size: 20px; top: 23px; right: 6px; }.subject-strip { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px 12px; }.subject-tile-art { height: 65px; }.subject-tile strong { font-size: 12px; }.course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px; }.cover-subject { font-size: 15px; }.cover-grade { font-size: 60px; }.course-card h3 { font-size: 13px; }.course-meta { font-size: 10px; }.learning-grid { grid-template-columns: 1fr; gap: 16px; }.learning-grid>a { border-bottom: 1px solid var(--line); padding-bottom: 16px; }.learning-grid>a:last-child { border: 0; padding: 0; }.learning-grid p { margin-bottom: 6px; }.utility-column { grid-template-columns: 1fr; gap: 14px; }.study-promo { display: none; }.utility-column .utility-panel { padding: 20px; }.workspace-content { padding: 20px 14px; }.card-body { padding: 20px 16px; }.card-body.p-4 { padding: 20px 16px!important; }.catalog-filters { padding: 12px; gap: 12px; }.catalog-filters .filter-search, .catalog-filters .filter-actions { flex-basis: 100%; }.catalog-filters .filter-actions .btn { flex: 1; }.course-intro { grid-template-columns: 1fr; gap: 22px; }.course-intro .course-cover { width: 180px; margin: auto; }.course-intro .cover-grade { font-size: 72px; }.course-intro .cover-subject { font-size: 20px; }.curriculum-row { flex-wrap: wrap; gap: 12px; padding: 14px; }.curriculum-row>div { flex-basis: calc(100% - 55px); }.curriculum-row>.btn, .curriculum-row>.locked-lesson { margin-left: 50px; }.dashboard-stats { grid-template-columns: 1fr; gap: 12px; }.dashboard-stats>div { padding: 14px; }.site-footer { padding: 28px 20px 0; }.footer-grid { gap: 24px 18px; }.footer-grid>div:first-child, .footer-grid>div:last-child { grid-column: 1 / -1; }.footer-bottom { display: block; }.footer-bottom span { display: block; margin-top: 6px; }.auth-layout { display: block; max-width: 460px; padding: 0 16px; margin-top: 20px; }.auth-story { display: none; }.auth-card { padding: 26px 22px; }.error-card { margin: 40px 16px; padding: 30px 20px; } }
@media (max-width: 359px) { .course-cover { min-height: 148px; }.cover-grade { font-size: 52px; }.cover-subject { font-size: 13px; }.banner-copy h1 { font-size: 24px; }.header-account { gap: 7px; }.header-brand .brand { font-size: 18px; } }
/* Roadmap & Forum redesign: align with course catalog layout */
.cover-icon { position: absolute; bottom: 14px; right: 14px; opacity: .12; }
.cover-icon .icon { width: 44px; height: 44px; }
.syllabus .curriculum-row.is-current { border-color: #8db6dc; box-shadow: 0 0 0 3px rgba(21,94,148,.08); background: #f5faff; }
.syllabus .curriculum-row.is-current .lesson-number { background: var(--primary); color: #fff; border: 3px solid #bfd4e7; }
.thread-meta { margin-bottom: 16px; }
.forum-replies { display: grid; gap: 18px; margin-top: 20px; }
.forum-reply-card { display: flex; gap: 14px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.forum-reply-card:last-child { border-bottom: 0; padding-bottom: 0; }
.reply-content { flex: 1; min-width: 0; }
.reply-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.reply-header strong { font-size: 14px; color: var(--primary); }
.reply-header .text-muted { font-size: 11px; }
.ai-answer { border-left: 3px solid #4b8bbd; background: #edf5fb; }
.ai-answer strong { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #1e4a6f; margin-bottom: 12px; }
.ai-answer .icon { width: 16px; height: 16px; }
.feed-filters.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 18px; background: #f5f8fc; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 20px; }
.feed-filters.catalog-filters a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 16px; font-size: 12px; border-radius: 24px; background: #fff; border: 1px solid #d6e2f0; }
.feed-filters.catalog-filters a:hover { background: #edf3fa; border-color: #bfd4e7; }
.feed-filters.catalog-filters a.is-active { background: #e2eef9; border-color: #8db6dc; font-weight: 700; color: var(--primary); }
@media (max-width: 639px) {
    .forum-replies { gap: 14px; }
    .forum-reply-card { flex-direction: column; gap: 10px; }
    .cover-icon .icon { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; } }
@media (max-width: 991px) {
    .auth-main { padding: 32px 20px 40px; }
    .auth-page .auth-layout { margin-top: 0; padding: 0; }
}
@media (max-width: 639px) {
    .auth-main { padding: 24px 16px 32px; }
    .auth-page .header-shortcuts { display: flex; gap: 8px; justify-content: space-between; margin: 0; width: 100%; }
    .auth-page .app-header { height: auto; min-height: var(--header-height); flex-wrap: wrap; position: static; padding: 12px 16px; gap: 8px 12px; }
    .auth-page .header-shortcuts { order: 3; }
    .auth-page { padding-top: 0; }
}

/* Personal account: shared theme, independent forms, mobile-first reading order. */
.profile-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 24px; background: var(--soft-blue); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; }
.profile-avatar { display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 auto; color: var(--primary); background: var(--surface); border-radius: 50%; }
.profile-avatar .icon { width: 30px; height: 30px; }
.profile-summary>div { flex: 1; min-width: 0; }
.profile-summary h2 { margin: 0 0 4px; }
.profile-summary p { color: var(--muted); margin: 0; }
.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: start; }
.profile-panel { padding: 28px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.profile-panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.profile-panel-heading h2 { margin: 0 0 4px; }
.profile-panel-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.profile-field { margin-bottom: 20px; }
.profile-panel .form-control[readonly] { background: #edf0f4; color: var(--muted); }
.profile-panel .form-text { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.profile-show-password { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.profile-show-password .form-check-input { margin: 0; }
.profile-security-note { display: flex; align-items: start; gap: 10px; padding: 14px; margin: 12px 0 20px; font-size: 12px; color: var(--muted); background: var(--canvas); border-radius: 8px; }
.profile-security-note .icon { width: 18px; height: 18px; margin-top: 2px; }
@media (max-width: 1199px) { .profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 639px) {
    .profile-panel, .profile-summary { padding: 20px 16px; }
    .profile-summary { gap: 12px; }
    .profile-summary>.btn { width: 100%; }
    .profile-avatar { width: 48px; height: 48px; }
    .profile-grid { gap: 16px; }
}

/* Shell refresh: labelled header shortcuts, role badge and a grouped, role-aware sidebar. */
.header-shortcuts .shortcut-label { display: none; }
.role-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--soft-blue); color: var(--primary); }
.role-badge.is-teacher { background: #e5f4eb; color: #226348; }.role-badge.is-admin { background: #f3e9ff; color: #6a3fb0; }.role-badge.is-parent { background: #fff0de; color: #95561d; }
.sidebar .sidebar-account { gap: 12px; padding: 12px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sidebar .sidebar-account:hover, .sidebar .sidebar-account.is-active { border-color: #c9dbec; background: #f3f8fd; }
.sidebar-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#3b78ac,#155e94); }
.sidebar-avatar .icon { width: 20px; height: 20px; }
.sidebar-account-text { display: grid; min-width: 0; line-height: 1.35; }
.sidebar-account-text strong { font-size: 13px; color: var(--primary); }
.sidebar-account-text small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .sidebar-group-title { margin: 0 10px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sidebar .sidebar-section { margin-top: 18px; padding-top: 16px; }
.side-links a.is-active { box-shadow: inset 3px 0 0 var(--primary); }
@media (min-width: 1280px) {
    .header-shortcuts { gap: 4px; }
    .header-shortcuts a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1px; width: auto; min-width: 64px; height: 50px; padding: 4px 8px; }
    .header-shortcuts a .icon { width: 20px; height: 20px; }
    .header-shortcuts .shortcut-label { display: block; font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
    .header-shortcuts a.is-active { box-shadow: inset 0 -2px 0 var(--primary); }
}
@media (max-width: 1279px) { .role-badge { display: none; } }


/* Student learning pages. */
.learner-hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 28px; margin-bottom: 24px; border-radius: 14px; color: #fff; overflow: hidden; background: linear-gradient(120deg,#14588f,#2787bb 70%,#46a1cf); }
.learner-hero::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid #ffffff12; pointer-events: none; }
.learner-hero .eyebrow { color: #d4ebff; }
.learner-hero h1 { color: #fff; margin: 0 0 8px; }
.learner-hero p { color: #e6f3ff; max-width: 62ch; margin-bottom: 0; }
.learner-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.learner-hero .btn-light { color: var(--primary); }
.learner-hero .btn-outline-light { --bs-btn-hover-color: var(--primary); }
.hero-stats { position: relative; z-index: 1; display: flex; gap: 14px; }
.stat-chip { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 10px; background: #ffffff1f; min-width: 120px; }
.stat-chip .stat-label { font-size: 12px; color: #d4ebff; font-weight: 600; }
.stat-chip .stat-value { font-size: 26px; line-height: 1; color: #fff; font-weight: 700; }
.learner-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 0 0 24px; }
.learner-stats>div { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.learner-stats dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.learner-stats dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.stat-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--soft-blue); color: var(--secondary); }
.stat-icon .icon { width: 20px; height: 20px; }
.stat-icon.green { background: #ddf4ed; color: #188165; }
.stat-icon.orange { background: #fff0d5; color: #a96b09; }
.stat-icon.purple { background: #ede6ff; color: #7655b9; }
.learner-columns { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 24px; align-items: start; }
.learner-columns>* { min-width: 0; }
.learner-panel { padding: 20px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.learner-panel>.section-heading { margin-bottom: 14px; }
.task-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 14px; margin-bottom: 24px; }
.task-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid #6ba0cf; border-radius: 10px; background: #fbfdff; }
.task-card.is-complete { border-left-color: #208566; background: #f6fcf9; }
.task-card.is-overdue { border-left-color: #d97706; background: #fffbeb; }
.task-card.is-pending { border-left-color: #3b82f6; }
.task-card .task-status { display: flex; justify-content: flex-end; }
.task-card .status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.task-card .status-badge.status-complete { background: #ddf4ed; color: #188165; }
.task-card .status-badge.status-overdue { background: #fef3c7; color: #92400e; }
.task-card .status-badge.status-pending { background: #dbeafe; color: #1e40af; }
.task-card .task-title { font-size: 15px; font-weight: 700; margin: 0; color: var(--ink); }
.task-card .task-meta { font-size: 13px; color: var(--muted); margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--soft-blue); color: var(--primary); white-space: nowrap; }
.status-pill.is-done { background: #e5f4eb; color: #226348; }
.status-pill.is-late { background: #fff0d5; color: #8a560a; }
.status-pill.is-muted { background: #f0f1f3; color: #4b5563; }
.feedback-card { padding: 14px; border-radius: 10px; background: #f5f8fc; }
.feedback-card+.feedback-card { margin-top: 10px; }
.feedback-card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.feedback-card header small { color: var(--muted); }
.feedback-card p { margin: 0; white-space: pre-wrap; }
.score-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.score-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.score-list li:last-child { border-bottom: 0; }
.score-list a { flex: 1; min-width: 0; font-weight: 600; }
.score-list small { display: block; color: var(--muted); font-weight: 500; }
.score-chip { flex: 0 0 auto; min-width: 52px; padding: 4px 8px; border-radius: 8px; text-align: center; font-weight: 700; background: var(--soft-blue); color: var(--primary); }
.learner-columns .course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }


.course-hero { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 32px; align-items: center; padding: 24px; margin-bottom: 8px; border-radius: 14px; background: linear-gradient(120deg,#f8f3e6,#eaf2f9 55%,#dbe8f5); }
.course-hero .course-info h1 { margin: 4px 0 10px; }
.course-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.syllabus { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.syllabus .curriculum-row { margin-top: 0; background: var(--surface); }
.syllabus .curriculum-row.is-done { border-color: #bfe3d3; background: #f6fcf9; }
.syllabus .curriculum-row.is-done .lesson-number { background: #ddf4ed; color: #188165; }
.syllabus .curriculum-row.is-locked { background: #fafbfc; }
.syllabus .curriculum-row.is-locked .lesson-number { background: #f0f1f3; color: #6b7280; }
.lesson-library { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; }
.lesson-card { display: flex; flex-direction: column; min-width: 0; height: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.lesson-card-top { padding: 14px 18px; background: linear-gradient(135deg,#eaf2fa,#f6f9fc); border-bottom: 1px solid var(--line); }
.lesson-card-top span { display: block; font-size: 11px; font-weight: 700; color: var(--secondary); }
.lesson-card-top small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.lesson-card h2 { font-size: 16px; margin: 0 0 8px; }
.lesson-card p { font-size: 13px; color: var(--muted); }
.lesson-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; font-size: 12px; color: var(--muted); }
.lesson-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.lesson-card-meta .icon { width: 14px; height: 14px; }
.lesson-card progress { margin: 8px 0 14px; }
.lesson-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lesson-card-actions .btn { flex: 1 1 auto; }
.lesson-card-note { font-size: 12px; color: var(--muted); align-self: center; }
.lesson-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 24px; align-items: start; margin-top: 20px; }
.lesson-layout>* { min-width: 0; }
.lesson-reader { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ai-companion { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.lesson-reader-head { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.lesson-reader-head h1 { margin: 6px 0 10px; }
.lesson-objectives { padding: 14px 16px; margin: 0 0 22px; border-radius: 10px; background: #f5f8fc; border-left: 3px solid #6ba0cf; }
.lesson-objectives strong { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary); margin-bottom: 4px; }
.lesson-objectives p { margin: 0; }
.lesson-complete-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; margin-top: 24px; border-radius: 10px; background: #eff6fc; }
.lesson-complete-bar>p { margin: 0; flex: 1 1 200px; }
.lesson-aside { position: sticky; top: 80px; display: grid; gap: 16px; }
.lesson-aside .card-body { padding: 20px; }
.lesson-quicklinks { display: grid; gap: 8px; }
.lesson-quicklinks a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-weight: 600; }
.lesson-quicklinks a:hover { background: var(--soft-blue); }
.lesson-quicklinks .icon { width: 18px; height: 18px; }
.timeline { position: relative; display: grid; gap: 14px; margin: 0; padding: 0 0 0 28px; list-style: none; }
.timeline::before { content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline::before { content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: #d5e3f1; }
.timeline .path-step { margin: 0; border-radius: 10px; border-left-width: 1px; background: var(--surface); padding: 18px 18px 18px 30px; }
.timeline .step-badge { left: -34px; top: 16px; }
.timeline .path-step.done { border-color: #bfe3d3; background: #f6fcf9; }
.timeline .path-step.is-current { border-color: #8db6dc; box-shadow: 0 0 0 3px #155e9414; }
.timeline .path-step h2 { font-size: 16px; margin-bottom: 4px; }


/* Teacher pages. */
.teacher-overview { margin-bottom: 32px; }
.teacher-heading { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.teacher-heading h1 { margin: 4px 0 8px; }
.teacher-heading p { color: var(--muted); margin: 0; max-width: 65ch; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 14px; margin-bottom: 28px; }
.classroom-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; margin-bottom: 24px; }
.classroom-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.classroom-card .classroom-name { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.classroom-card .classroom-year { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.feedback-item { padding: 12px 0; border-top: 1px solid var(--line); }
.feedback-item:first-child { border-top: 0; padding-top: 0; }
.teacher-nav { display: flex; gap: 4px; margin: 0 0 20px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.teacher-nav a { display: flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 10px 10px 0 0; font-weight: 600; color: var(--secondary); }
.teacher-nav a:hover { background: #f6f9fc; }
.teacher-nav a.active { background: var(--surface); color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); }
.teacher-nav .icon { width: 18px; height: 18px; }
.class-banner { padding: 20px 24px; margin: 0 0 24px; border-radius: 14px; background: linear-gradient(120deg,#14588f,#2787bb 70%,#46a1cf); color: #fff; }
.class-banner .breadcrumb { color: #d4ebff; margin-bottom: 6px; }
.class-banner h1 { color: #fff; margin: 0 0 4px; }
.class-banner p { color: #e6f3ff; margin: 0; }
.class-banner .badge { margin-left: 8px; }
.class-banner .teacher-nav { margin: 18px 0 0; border-bottom-color: #ffffff26; }
.class-banner .teacher-nav a { color: #e6f3ff; }
.class-banner .teacher-nav a:hover { background: #ffffff1a; }
.class-banner .teacher-nav a.active { background: #ffffff26; color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.teacher-kpi { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; margin: 0 0 24px; }
.teacher-kpi>div { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.teacher-kpi dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.teacher-kpi dd { margin: 4px 0 0; font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1; }
.classroom-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; }
.classroom-card { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.classroom-card:hover { border-color: #a8c5de; background: #f8fbfd; }
.classroom-card h3 { font-size: 17px; margin: 0 0 6px; color: var(--primary); }
.classroom-card p { font-size: 13px; color: var(--muted); margin: 0; }
.classroom-card .badge { margin-top: 10px; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; }
.content-card { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.content-card:hover { border-color: #a8c5de; background: #f8fbfd; }
.content-card header { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 8px; }
.content-card h3 { font-size: 15px; margin: 0; color: var(--primary); }
.content-card p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.content-card footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.data-card { padding: 0; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.data-card-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.data-card-header h2 { margin: 0; font-size: 17px; }
.data-card-body { padding: 20px; }
.data-card .table-responsive { margin: 0; border-radius: 0; }
.form-section { padding: 24px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.form-section h2 { font-size: 16px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.form-columns { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; align-items: start; }
.form-columns>* { min-width: 0; }
.form-aside { position: sticky; top: 80px; }
.question-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.question-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.question-card-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.question-card-header h3 { margin: 0; font-size: 15px; }
.question-card-actions { display: flex; gap: 6px; }
.answer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.answer-option { display: flex; align-items: start; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.answer-option input[type=radio] { margin-top: 2px; }
.answer-option label { flex: 1; min-width: 0; }
.option-letter { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; background: #e0e7ee; color: var(--secondary); margin-right: 6px; }

/* Responsive adjustments. */
@media (max-width: 1279px) {
    .learner-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .learner-columns { grid-template-columns: 1fr; }
    .lesson-layout { grid-template-columns: minmax(0,1fr) 300px; }
    .form-columns { grid-template-columns: 1fr; }
    .form-aside { position: static; }
}
@media (max-width: 991px) {
    .lesson-layout { grid-template-columns: 1fr; }
    .lesson-aside { position: static; }
    .answer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .learner-hero { grid-template-columns: 1fr; padding: 22px 18px; }
    .hero-progress { justify-items: start; text-align: left; }
    .course-hero { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
    .course-hero .course-cover { max-width: 200px; }
    .lesson-reader { padding: 20px 16px; }
    .learner-columns .course-grid { grid-template-columns: 1fr; }
    .teacher-kpi { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .classroom-grid, .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
    .learner-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .learner-stats>div { padding: 12px; gap: 8px; }
    .stat-icon { display: none; }
    .learner-panel { padding: 16px 12px; }
    .lesson-library { grid-template-columns: 1fr; }
    .timeline { padding-left: 22px; }
    .timeline .step-badge { left: -30px; width: 32px; height: 32px; }
    .timeline::before { left: 10px; }
    .teacher-kpi { grid-template-columns: 1fr; }
}


