/* Auto-split from style.css */

/* Database lesson catalogue, sharing the existing EnglishUp palette and theme. */
.live-lessons-home { margin: 24px 0; }

.live-lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.live-lesson-card { display: flex; min-width: 0; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }

.live-lesson-thumbnail { display: block; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--background); }

.live-lesson-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }

.live-lesson-card h3 { margin: 0; font-size: 19px; line-height: 1.45; overflow-wrap: anywhere; }

.live-lesson-card h3 a { color: var(--ink); }

.live-lesson-card p { margin: 0; color: var(--muted); line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }

.live-lesson-card small { color: var(--muted); }

.live-lesson-tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }

.live-lesson-tags > :is(span, a) { padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--primary); background: var(--background); text-decoration: none; }

.live-lesson-filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 28px; }

.live-lesson-filters label { display: grid; min-width: 0; gap: 8px; font-size: 13px; font-weight: 600; }

.live-lesson-filters :is(input, select) { box-sizing: border-box; width: 100%; min-height: 43px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font: inherit; }

.live-lesson-empty { padding: 48px 20px; color: var(--muted); text-align: center; }

.live-lesson-empty > span { font-size: 38px; color: var(--primary); }

.live-lesson-pagination { display: flex; gap: 8px; margin-top: 24px; }

.live-lesson-pagination a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }

.live-lesson-pagination [aria-current] { color: #fff; background: var(--primary); }

.live-lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 22px; }

.live-lesson-course, .live-lesson-updated { color: var(--muted); font-size: 13px; }

.live-lesson-body { margin: 28px 0; color: var(--ink); line-height: 1.9; overflow-wrap: anywhere; overflow-x: auto; }

.live-lesson-body :is(h2, h3, h4) { margin: 24px 0 12px; line-height: 1.45; }

.live-lesson-body :is(ul, ol) { padding-left: 28px; }

.live-lesson-body a { color: var(--primary); text-decoration: underline; }

.live-lesson-body pre { padding: 16px; border-radius: 10px; background: var(--background); overflow-x: auto; }

.live-lesson-body :is(th, td) { padding: 10px; border: 1px solid var(--line); }

.live-lesson-resource { display: grid; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

.live-lesson-video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }

.live-lesson-related h2 { margin-top: 0; font-size: 17px; }

.live-lesson-related > a { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink); }

.live-lesson-related small { color: var(--muted); }

.course-unit-detail > h1 { margin: 16px 0 0; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; overflow-wrap: anywhere; }

.course-unit-detail > h2 { margin: 18px 0 8px; font-size: 1.05rem; }

.course-unit-detail > .live-lesson-body { margin: 8px 0 12px; }

.course-unit-detail > .live-lesson-body > :first-child { margin-top: 0; }

.course-unit-detail > .live-lesson-body > :last-child { margin-bottom: 0; }

.course-unit-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }

.course-unit-navigation > nav { min-width: 0; max-width: 100%; }

.course-unit-back.btn { min-height: 40px; margin-top: 14px; padding: 8px 16px; border-radius: 10px; }

.course-unit-trail {
    --trail-border: #e3dac8;
    --trail-step: #f1ecdf;
    --trail-surface: #fbf8f1;
    --trail-current: #a44900;
}

.course-unit-trail ol {
    display: inline-flex;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid var(--trail-border);
    border-radius: 6px 22px 22px 6px;
    background: var(--trail-surface);
    list-style: none;
}

.course-unit-trail li { min-width: 0; }

.course-unit-trail li:not(:last-child) { border-inline-end: 1px solid var(--trail-border); border-radius: 0 22px 22px 0; background: var(--trail-step); }

.course-unit-trail li:first-child { border-start-start-radius: 5px; border-end-start-radius: 5px; }

.course-unit-trail li > :is(a, span) {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 6px clamp(8px, 1.4vw, 18px);
    color: var(--ink);
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.course-unit-trail [aria-current="page"] { color: var(--trail-current); }

.course-unit-trail a:hover { text-decoration: underline; }

.course-unit-detail a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.live-lesson-audio { width: min(100%, 560px); }

.live-lesson-detail .live-exam-grid { grid-template-columns: 1fr; }

.learning-attempt-actions, .learning-attempt-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin: 22px 0; }

.learning-attempt-actions { justify-content: flex-start; }

.learning-attempt-heading h2 { margin: 0; }

.learning-timer { color: var(--primary); font-variant-numeric: tabular-nums; }

.learning-status { min-height: 24px; margin: 18px 0; color: var(--muted); overflow-wrap: anywhere; }

.learning-status-error { color: #b33749; }

.learning-question { min-width: 0; margin: 20px 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }

.learning-question legend { max-width: 100%; padding: 0 8px; color: var(--ink); font-weight: 700; white-space: pre-line; overflow-wrap: anywhere; }

.learning-options { display: grid; gap: 12px; }

.learning-options label { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }

.learning-options span { min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }

.learning-question textarea { box-sizing: border-box; width: 100%; min-height: 100px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font: inherit; }

.live-exercise button:disabled { opacity: .65; cursor: wait; }

.learning-score { margin: 18px 0; color: var(--primary); font-size: 26px; font-weight: 800; }

.learning-review { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 10px; }

.learning-review h3 { margin: 0 0 12px; font-size: 17px; white-space: pre-line; overflow-wrap: anywhere; }

.learning-review p { margin-top: 12px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }

.learning-review-correct { border-left-color: #288453; }

.learning-review-incorrect { border-left-color: #b33749; }

.learning-explanation { color: var(--muted); }

.learning-history ul { display: grid; gap: 12px; padding: 0; list-style: none; }

.learning-history li { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

button {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible {
    outline: 3px solid #a9b8ff;
    outline-offset: 3px;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(232, 235, 243, .85);
    backdrop-filter: blur(16px);
}

.navbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.nav-links, .nav-actions {
    display: flex;
    align-items: center;
}

.nav-links {
    gap: 25px;
}

.nav-link {
    color: #69738d;
    font-size: 12px;
    font-weight: 600;
    transition: color .2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-actions {
    gap: 18px;
    white-space: nowrap;
}

.login-link {
    font-size: 12px;
    font-weight: 700;
}

.hero {
    overflow: hidden;
    padding: 76px 0 70px;
    background:
        radial-gradient(ellipse at 88% 35%, rgba(224, 230, 255, .7), transparent 35%),
        linear-gradient(180deg, #fbfcff, #fff);
}

.eyebrow, .section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.eyebrow {
    padding: 9px 13px;
    border: 1px solid #e5eaff;
    border-radius: 30px;
    background: #fff;
}

.eyebrow-dot, .status-dot {
    width: 7px;
    height: 7px;
    background: #40c99b;
    border-radius: 50%;
}

.hero h1 {
    max-width: 570px;
    margin-top: 23px;
    font-size: clamp(38px, 4.2vw, 57px);
    line-height: 1.23;
    letter-spacing: -2.5px;
    font-weight: 800;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.play-icon {
    font-size: 10px;
    color: var(--primary);
}

.avatar-stack {
    display: flex;
    padding-left: 3px;
}

.avatar {
    width: 33px;
    height: 33px;
    display: grid;
    place-items: center;
    margin-left: -4px;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
}

.avatar-one { background: #dce5ff; color: #3555d6; }

.avatar-two { background: #ffe7d7; color: #b65c35; }

.avatar-three { background: #d8f4e8; color: #258762; }

.avatar-four { background: #ecebff; color: #6552ce; }

.decor {
    position: absolute;
    border-radius: 50%;
}

.decor-one {
    width: 340px;
    height: 340px;
    background: linear-gradient(140deg, #eff2ff, #e6eaff);
}

.decor-two {
    width: 410px;
    height: 410px;
    border: 1px dashed #d7defe;
}

.learning-card {
    position: relative;
    z-index: 2;
    width: min(310px, 80%);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 25px 70px rgba(47, 66, 133, .16);
}

.learning-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-label {
    color: #8a92a9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
}

.book-illustration {
    position: relative;
    height: 155px;
    margin: 16px 0 15px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(140deg, #edf1ff, #dfe6ff);
}

.book {
    width: 105px;
    height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    color: #fff;
    background: linear-gradient(140deg, #6885ff, #3b56d8);
    border-radius: 7px 12px 12px 7px;
    box-shadow: 8px 8px 0 #c5d0ff, 12px 15px 25px rgba(53, 74, 170, .2);
    transform: rotate(-7deg);
}

.book-symbol {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -3px;
}

.book-caption {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
}

.book-sparkle {
    position: absolute;
    right: 48px;
    top: 26px;
    color: #f1ae45;
    font-size: 26px;
}

.book-shadow {
    position: absolute;
    width: 125px;
    height: 18px;
    bottom: 15px;
    border-radius: 50%;
    background: rgba(57, 75, 151, .14);
    filter: blur(8px);
}

.learning-card h3 {
    font-size: 15px;
    letter-spacing: -.3px;
}

.muted {
    color: var(--muted);
}

.learning-card > .muted {
    margin-top: 5px;
    font-size: 10px;
}

.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid #f0f1f8;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(40, 55, 110, .1);
}

.floating-streak {
    top: 72px;
    right: -8px;
}

.floating-progress {
    left: -18px;
    bottom: 65px;
}

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

.floating-card strong {
    font-size: 10px;
}

.floating-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.floating-icon, .progress-check {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-weight: 800;
}

.fire {
    color: #d17d20;
    background: #fff1dc;
}

.progress-check {
    color: #19976c;
    background: #e0f8ee;
}

.features-strip {
    padding: 29px 0;
    border-top: 1px solid #f0f1f6;
    border-bottom: 1px solid #f0f1f6;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 13px;
}

.feature-icon {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 17px;
    font-weight: 800;
}

.icon-blue { color: #4166ed; background: #edf1ff; }

.icon-purple { color: #845de8; background: #f1eaff; }

.icon-green { color: #15966a; background: #e4f8ee; }

.icon-orange { color: #cb7b28; background: #fff1df; }

.feature-item h3 {
    font-size: 11px;
}

.feature-item p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.section {
    padding: 88px 0;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 23px;
}

.course-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    transition: transform .25s, box-shadow .25s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.course-art {
    height: 185px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.art-blue { background: linear-gradient(135deg, #e8edff, #d9e2ff); }

.art-purple { background: linear-gradient(135deg, #f2eaff, #e7dcff); }

.art-green { background: linear-gradient(135deg, #e0f7ee, #d0f1e3); }

.art-number {
    position: absolute;
    top: 17px;
    left: 18px;
    color: rgba(40, 58, 125, .45);
    font-size: 11px;
    font-weight: 800;
}

.art-symbol {
    width: 105px;
    height: 105px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 28px;
    background: rgba(255,255,255,.75);
    box-shadow: 0 15px 35px rgba(53, 68, 125, .12);
    color: #4264e7;
    font-size: 40px;
    font-weight: 800;
    transform: rotate(-5deg);
}

.art-purple .art-symbol { color: #865fe1; transform: rotate(5deg); }

.art-green .art-symbol { color: #199a6c; transform: rotate(-4deg); }

.art-decoration {
    position: absolute;
    right: 27px;
    bottom: 20px;
    color: rgba(74, 95, 180, .45);
    font-size: 31px;
}

.course-body {
    padding: 22px;
}

.course-tags {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.course-level {
    color: var(--muted);
    font-size: 9px;
}

.course-body h3 {
    margin-top: 17px;
    font-size: 15px;
}

.course-body > p {
    min-height: 44px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eef0f6;
    color: #75809a;
    font-size: 10px;
}

.course-footer a {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--primary);
    background: #edf1ff;
    font-size: 17px;
}

.practice-section {
    padding: 84px 0;
    background: #f7f8fe;
}

.practice-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 80px;
}

.practice-copy h2 {
    max-width: 430px;
}

.practice-copy > p {
    margin-bottom: 20px;
}

.practice-point {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 13px 0;
    font-size: 11px;
    font-weight: 600;
}

.practice-point span {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1c9b6e;
    background: #dff7ec;
    font-size: 11px;
}

.question-type {
    color: #7d67d7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.question-text {
    margin: 9px 0 20px;
    color: #56617b;
    font-size: 12px;
    line-height: 1.9;
}

.answer-list {
    display: grid;
    gap: 10px;
}

.answer-option {
    width: 100%;
    min-height: 47px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 8px 13px;
    border: 1px solid #e8ebf3;
    border-radius: 10px;
    color: #47516b;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-size: 11px;
    transition: .2s;
}

.answer-option > span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #68738d;
    background: #f2f4f9;
    font-weight: 700;
}

.answer-option:hover {
    border-color: #aebdff;
    background: #f8f9ff;
}

.answer-option.correct {
    border-color: #54c79c;
    background: #effcf6;
    color: #15764f;
}

.answer-option.wrong {
    border-color: #f1a5a5;
    background: #fff5f5;
    color: #bb4141;
}

.progress-section {
    padding: 85px 0;
    background: #f7f8fc;
}

.progress-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 70px;
}

.progress-grid > div:first-child > p {
    margin-bottom: 25px;
}

.progress-preview {
    padding: 25px;
    border: 1px solid #edf0f7;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.progress-preview-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.progress-preview-heading .muted {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .6px;
}

.progress-preview-heading h3 {
    margin-top: 5px;
    font-size: 14px;
}

.progress-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--primary);
    background: #edf1ff;
    font-size: 17px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #edf0f6;
    border-radius: 12px;
}

.stat-icon {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.stat-blue { color: #4164e6; background: #edf1ff; }

.stat-purple { color: #825bdb; background: #f1eaff; }

.stat-green { color: #1b9b6c; background: #e4f8ef; }

.stat-orange { color: #c47b2c; background: #fff1df; }

.stat-card strong {
    margin-top: 9px;
    font-size: 21px;
    line-height: 1.3;
}

.stat-card > span:last-child {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.progress-note {
    margin-top: 16px;
    color: #8991a7;
    font-size: 9px;
    line-height: 1.8;
}

.cta-section {
    padding: 53px 0;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0%, rgba(255,255,255,.14), transparent 35%),
        linear-gradient(120deg, #4264eb, #624ce3);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.cta-kicker {
    color: #dce2ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cta-content h2 {
    margin-top: 8px;
    font-size: clamp(22px, 3vw, 31px);
    letter-spacing: -.8px;
}

.cta-content p {
    margin-top: 7px;
    color: #e4e8ff;
    font-size: 11px;
}

.footer {
    padding-top: 45px;
    background: #fff;
}

/* EnglishUp interface refresh: learner dashboard and learning pages. */
body {
    background:
        radial-gradient(circle at 8% 3%, rgba(220, 232, 255, .72), transparent 26rem),
        linear-gradient(180deg, #fbfdff 0, #f5f8ff 52%, #fff 100%);
}

.skill-icon { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72); }

.lesson-art, .recommend-art { border-bottom: 1px solid rgba(211, 221, 241, .55); }

.notice-item:first-of-type { border-top: 0; }

/* Uniform light-blue surfaces for learner content cards. */
:root {
    --card-blue: #eef5ff;
    --card-blue-strong: #e4efff;
    --card-blue-line: #d2e1f7;
}

.lesson-art-vocab,
.lesson-art-grammar,
.lesson-art-reading,
.recommend-blue,
.recommend-purple,
.recommend-green,
.art-blue,
.art-purple,
.art-green {
    color: #315edb;
    background: linear-gradient(145deg, #dceaff, #cfe1fb);
}

.lesson-art i,
.recommend-art i,
.recommend-art > span { color: rgba(49, 94, 219, .58); }

.unit-chips span, .grade-card-label, .notice-detail, .reading-passage { background: #f7faff; }

/* EnglishUp home refresh */
html {
    scroll-padding-top: 104px;
}

.header {
    box-shadow: 0 5px 24px rgba(24, 36, 61, .035);
}

.navbar {
    min-height: 82px;
}

.nav-links {
    gap: clamp(15px, 2vw, 27px);
}

.nav-link, .login-link {
    font-size: 13px;
}

.hero {
    padding: 88px 0 78px;
    background:
        radial-gradient(ellipse at 86% 34%, rgba(220, 231, 255, .88), transparent 37%),
        radial-gradient(ellipse at 4% 100%, rgba(236, 246, 255, .78), transparent 36%),
        linear-gradient(180deg, #f8fbff, #fff 88%);
}

.eyebrow, .section-label {
    font-size: 11px;
}

.hero h1 {
    max-width: 610px;
    font-size: clamp(43px, 4.5vw, 63px);
    line-height: 1.16;
    letter-spacing: -2.8px;
}

.grade-picker {
    max-width: 520px;
    margin-top: 27px;
    padding: 17px 18px 15px;
    border: 1px solid #e5eaf4;
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 12px 28px rgba(31, 53, 106, .045);
}

.grade-picker-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.grade-picker-label {
    color: #50617f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.sample-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border: 1px solid #dce7ff;
    border-radius: 999px;
    color: #3157b9;
    background: #f1f5ff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.grade-picker > p:first-of-type {
    margin-top: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.grade-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 11px;
}

.grade-option {
    min-width: 0;
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid #e3e8f1;
    border-radius: 12px;
    color: #55627b;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: border-color .2s, color .2s, background .2s, transform .2s;
}

.grade-option:hover {
    border-color: #b8c9fb;
    transform: translateY(-1px);
}

.grade-option.is-selected {
    border-color: #9fb5f5;
    color: #244bb9;
    background: #f1f5ff;
    box-shadow: inset 0 0 0 1px rgba(49, 94, 219, .08);
}

.grade-number {
    width: 26px;
    height: 26px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    color: #315edb;
    background: #e6edff;
    font-size: 12px;
    font-weight: 800;
}

.grade-selection {
    margin-top: 10px;
    color: #74809a;
    font-size: 10px;
    line-height: 1.5;
}

.decor-one {
    width: 365px;
    height: 365px;
    background: linear-gradient(145deg, #edf2ff, #dce6ff);
}

.decor-two {
    width: 435px;
    height: 435px;
}

.learning-card {
    width: min(340px, 82%);
    padding: 24px;
    border: 1px solid #fff;
    border-radius: 25px;
    box-shadow: 0 28px 75px rgba(37, 57, 116, .17);
}

.book-illustration {
    height: 165px;
    border-radius: 18px;
}

.learning-card h3 {
    font-size: 17px;
}

.floating-card {
    padding: 14px 16px;
    border-radius: 15px;
}

.floating-card strong {
    font-size: 12px;
}

.floating-card small {
    font-size: 10px;
}

.features-strip {
    padding: 32px 0;
    background: #fbfcff;
}

.feature-item h3 {
    font-size: 13px;
}

.feature-item p {
    font-size: 11px;
}

.section {
    padding: 96px 0;
}

.course-grid {
    gap: 25px;
}

.course-card {
    border-radius: 21px;
    box-shadow: 0 8px 28px rgba(29, 51, 105, .035);
}

.course-card:hover {
    box-shadow: 0 20px 45px rgba(29, 51, 105, .12);
}

.course-art {
    height: 205px;
}

.art-blue { background: linear-gradient(140deg, #eaf0ff, #d9e4ff); }

.art-purple { background: linear-gradient(140deg, #f4efff, #e7ddff); }

.art-green { background: linear-gradient(140deg, #e6f8f1, #d2f0e4); }

.course-body {
    padding: 25px;
}

.course-level {
    font-size: 11px;
}

.course-body h3 {
    margin-top: 16px;
    font-size: 18px;
}

.course-body > p {
    min-height: 48px;
    font-size: 13px;
    line-height: 1.75;
}

.course-footer {
    font-size: 11px;
}

.practice-section {
    padding: 96px 0;
    background:
        radial-gradient(ellipse at 5% 10%, rgba(226, 235, 255, .62), transparent 38%),
        #f7f9fe;
}

.practice-grid {
    gap: clamp(45px, 7vw, 90px);
}

.practice-point {
    gap: 12px;
    font-size: 13px;
}

.practice-point span {
    width: 27px;
    height: 27px;
}

.question-text {
    font-size: 14px;
}

.answer-list {
    gap: 11px;
}

.answer-option {
    min-height: 53px;
    padding: 9px 15px;
    border-radius: 12px;
    font-size: 14px;
}

.answer-option:disabled {
    cursor: default;
}

.answer-option:disabled:hover {
    border-color: #e8ebf3;
    background: #fff;
}

.answer-option.correct:disabled:hover {
    border-color: #54c79c;
    background: #effcf6;
}

.answer-option.wrong:disabled:hover {
    border-color: #f1a5a5;
    background: #fff5f5;
}

.progress-section {
    padding: 96px 0;
    background: #f7f9fd;
}

.progress-preview {
    padding: 28px;
    border-radius: 23px;
    box-shadow: 0 18px 48px rgba(29, 51, 105, .08);
}

.progress-preview-heading {
    gap: 12px;
}

.progress-preview-heading .muted {
    font-size: 10px;
}

.progress-preview-heading h3 {
    font-size: 17px;
}

.stat-grid {
    gap: 14px;
}

.stat-card {
    min-height: 126px;
    padding: 17px;
    border-radius: 15px;
}

.stat-card strong {
    font-size: 25px;
}

.stat-card > span:last-child {
    font-size: 11px;
}

.progress-note {
    font-size: 11px;
}

.cta-section {
    padding: 64px 0;
    background:
        radial-gradient(circle at 90% 0%, rgba(255,255,255,.18), transparent 34%),
        linear-gradient(120deg, #315edb, #4c59d6);
}

.cta-content p {
    font-size: 13px;
}

.footer {
    padding-top: 55px;
}

/* Shared student dashboard and subpages */
:root {
    --ink: #1b2942;
    --muted: #6b7890;
    --line: #e4eaf3;
    --surface: #ffffff;
    --background: #f5f8fd;
    --primary: #315edb;
    --primary-dark: #2449b9;
    --shadow: 0 16px 44px rgba(28, 49, 98, .08);
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 9px;
    color: #fff;
    background: var(--primary);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.search-icon {
    position: absolute;
    top: 6px;
    left: 12px;
    color: #8490a5;
    font-size: 22px;
    line-height: 1;
}

.search-count {
    position: absolute;
    right: 8px;
    top: 50%;
    color: var(--muted);
    font-size: 10px;
    transform: translateY(-50%);
}

.notification-toggle {
    display: grid;
}

.notification-bell {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid var(--surface);
    border-radius: 999px;
    color: #fff;
    background: #dc4553;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.notification-count[hidden] {
    display: none;
}

.notification-unread-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.notification-menu-list {
    display: grid;
    max-height: min(500px, 62vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-inline: -8px;
    padding-inline: 8px;
}

.notification-close {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.notification-mark-all,
.notification-read-action {
    border: 0;
    color: var(--primary);
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.notification-mark-all {
    align-self: flex-start;
    margin: 10px 0 8px;
    padding: 4px 0;
}

.notification-entry {
    min-width: 0;
    border-top: 1px solid var(--line);
}

.notification-menu-item {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 13px 10px;
    border: 0;
    border-radius: 10px;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.notification-item-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    color: var(--primary);
    background: #edf3ff;
    font-size: 17px;
}

.notification-item-copy {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 4px;
}

.notification-menu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notification-menu-item.is-read .notification-menu-title strong {
    color: var(--muted);
}

.notification-menu-item:not(.is-read) {
    background: #f2f6ff;
}

.notification-menu-item:hover,
.notification-menu-item:focus-visible {
    background: #eaf1ff;
    outline: none;
}

.notification-menu-item:focus-visible {
    box-shadow: inset 0 0 0 2px var(--primary);
}

.notification-menu-title strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.notification-menu-item .unread-dot,
.notice-item .unread-dot {
    width: 9px;
    height: 9px;
    background: #f18a31;
}

.notification-preview {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notification-time {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.notification-detail {
    margin: 0 10px 12px 60px;
    padding: 12px;
    border-radius: 10px;
    color: var(--ink);
    background: var(--background);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease;
}

.notification-detail.is-open {
    opacity: 1;
    transform: translateY(0);
}

.notification-detail p {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.notification-detail a {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.notification-empty {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.notification-mark-all:disabled {
    color: var(--muted);
    cursor: default;
}

.notification-empty {
    padding: 18px 0;
    text-align: center;
}

.notification-inbox-link {
    display: block;
    flex: 0 0 auto;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.profile-avatar,
.profile-large-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #244db8;
    background: #e0e9ff;
    font-weight: 800;
}

.profile-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.profile-copy {
    display: grid;
    line-height: 1.25;
}

.profile-copy strong {
    font-size: 11px;
}

.profile-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.language-button {
    width: 57px;
    display: flex;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
}

.theme-button {
    font-size: 19px;
}

.orbit-one {
    width: 295px;
    height: 295px;
}

.orbit-two {
    width: 230px;
    height: 230px;
    border-style: solid;
    border-color: rgba(255,255,255,.68);
}

.art-book {
    width: 82px;
    height: 100px;
    position: absolute;
    z-index: 3;
    top: 33px;
    left: 8%;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 4px solid #fff;
    border-radius: 9px 16px 16px 9px;
    color: #fff;
    background: linear-gradient(150deg, #6688f5, #3858c8);
    box-shadow: 8px 8px 0 #c9d5f7, 0 14px 25px rgba(42, 67, 141, .18);
    text-align: center;
    transform: rotate(-10deg);
}

.art-book-mark {
    font-size: 28px;
    font-weight: 800;
}

.art-book > span:last-child {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1px;
}

.art-note {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 13px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 10px 24px rgba(42, 63, 117, .1);
}

.note-top {
    top: 33px;
    right: 1%;
    display: grid;
    gap: 0;
    color: #4465c9;
    font-size: 16px;
    font-weight: 800;
}

.note-top small {
    color: #7d88a0;
    font-size: 7px;
    letter-spacing: .7px;
}

.note-bottom {
    right: -1%;
    bottom: 35px;
}

.note-bottom strong,
.note-bottom small {
    display: block;
}

.note-bottom strong {
    color: #344667;
    font-size: 10px;
}

.note-bottom small {
    margin-top: 2px;
    color: #7a869e;
    font-size: 9px;
}

.note-check {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #11845c;
    background: #e1f8ee;
}

.art-sparkle {
    position: absolute;
    color: #e6ab42;
}

.sparkle-one {
    top: 93px;
    right: 19%;
    font-size: 24px;
}

.sparkle-two {
    bottom: 80px;
    left: 7%;
    font-size: 19px;
}

.section-label {
    color: #4267cf;
    font-size: 10px;
    letter-spacing: 1.2px;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.skill-icon,
.summary-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 800;
}

.skill-blue { color: #3760cd; background: #eaf0ff; }

.skill-purple { color: #805bc9; background: #f1eaff; }

.skill-green { color: #188360; background: #e1f7ed; }

.skill-orange { color: #c17a25; background: #fff1dc; }

.skill-pink { color: #c65b79; background: #ffe9f0; }

.skill-yellow { color: #ae811d; background: #fff6d9; }

.skill-indigo { color: #5d5bc2; background: #ecebff; }

.lesson-art {
    height: 125px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #3759b5;
    font-size: 31px;
    font-weight: 800;
}

.lesson-art::before,
.recommend-art::before {
    width: 160px;
    height: 160px;
    position: absolute;
    right: -18px;
    bottom: -90px;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 50%;
    content: "";
}

.lesson-art-vocab { background: linear-gradient(140deg, #e7edff, #d9e2ff); }

.lesson-art-grammar { color: #815ec8; background: linear-gradient(140deg, #f3eaff, #e8ddff); }

.lesson-art-reading { color: #16805d; background: linear-gradient(140deg, #e3f7ee, #d2f0e3); font-size: 24px; }

.lesson-art i {
    position: absolute;
    right: 23px;
    top: 18px;
    color: rgba(60, 83, 150, .45);
    font-size: 20px;
    font-style: normal;
}

.lesson-status,
.difficulty {
    color: var(--muted);
    font-size: 10px;
}

.dashboard-two-column {
    align-items: start;
}

.goal-list {
    display: grid;
    gap: 5px;
}

.goal-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.goal-check {
    width: 23px;
    height: 23px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1.5px solid #c8d2e3;
    border-radius: 7px;
    color: transparent;
    background: var(--surface);
    font-size: 13px;
    transition: .2s;
}

.goal-item[aria-pressed="true"] .goal-check {
    border-color: #38a87d;
    color: #fff;
    background: #38a87d;
}

.goal-item[aria-pressed="true"] .goal-copy strong {
    color: var(--muted);
    text-decoration: line-through;
}

.goal-copy {
    display: grid;
    flex: 1;
    gap: 3px;
}

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

.goal-copy small,
.goal-time {
    color: var(--muted);
    font-size: 10px;
}

.goal-progress-head {
    margin-top: 14px;
    font-size: 11px;
}

.goal-progress {
    margin-top: 8px;
}

.notice-item {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.notice-item:not(.is-read) {
    background: #f2f6ff;
}

.notice-item:hover,
.notice-item:focus-visible {
    background: #eaf1ff;
    outline: none;
}

.notice-item:focus-visible {
    box-shadow: inset 0 0 0 2px var(--primary);
}

.notice-icon {
    width: 36px;
    height: 36px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
}

.notice-blue { color: #4264ce; background: #edf2ff; }

.notice-yellow { color: #ae7a21; background: #fff3d9; }

.notice-copy {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 4px;
}

.notice-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-title-row strong {
    color: var(--ink);
    font-size: 11px;
}

.unread-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #ed746d;
}

.notice-item.is-read .unread-dot {
    background: #d2d9e4;
}

.notice-copy > p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.notice-open {
    margin-top: 5px;
    padding: 0;
    border: 0;
    color: var(--primary);
    background: none;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.notice-detail {
    padding: 8px 10px;
    border-radius: 9px;
    background: var(--background);
}

.sample-inline,
.section-footnote {
    display: inline-block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.recommend-art {
    height: 145px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #304b91;
}

.recommend-blue { background: linear-gradient(140deg, #e8efff, #d7e3ff); }

.recommend-purple { color: #6946ae; background: linear-gradient(140deg, #f4eaff, #e8dcff); }

.recommend-green { color: #147759; background: linear-gradient(140deg, #e0f7ed, #cdeee0); }

.recommend-art > span {
    position: absolute;
    top: 13px;
    left: 15px;
    color: rgba(46, 67, 126, .56);
    font-size: 10px;
    font-weight: 800;
}

.recommend-art strong {
    z-index: 1;
    font-size: 20px;
    line-height: 1.2;
}

.recommend-art i {
    position: absolute;
    right: 17px;
    bottom: 12px;
    opacity: .45;
    font-size: 30px;
    font-style: normal;
    font-weight: 800;
}

.recommend-body h3 {
    margin-top: 12px;
    color: var(--ink);
    font-size: 15px;
}

.recommend-body > p {
    min-height: 36px;
}

.recommend-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

.grade-11 { background: linear-gradient(155deg, #fbf8ff, #fff 62%); }

.grade-12 { background: linear-gradient(155deg, #f4fbf8, #fff 62%); }

.grade-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.grade-large {
    color: #315edb;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.grade-11 .grade-large { color: #805bc9; }

.grade-12 .grade-large { color: #198363; }

.grade-card-label {
    padding: 5px 8px;
    border-radius: 99px;
    color: var(--muted);
    background: rgba(255,255,255,.8);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .7px;
}

.unit-chips {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.unit-chips span {
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #5d6b84;
    background: rgba(255,255,255,.75);
    font-size: 10px;
}

.practice-dashboard {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 28px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid #e4eaff;
    border-radius: 24px;
    background: linear-gradient(135deg, #f1f5ff, #f8faff);
}

.practice-dashboard-copy h2 {
    margin-top: 7px;
    color: var(--ink);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
}

.practice-dashboard-copy > p {
    margin: 10px 0 15px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.progress-dashboard-grid {
    grid-template-columns: 1.2fr .8fr;
}

.progress-chart-panel,
.achievement-panel {
    min-width: 0;
}

.weekly-chart {
    height: 185px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 8px 0;
    border-bottom: 1px solid var(--line);
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 44px, rgba(128, 144, 169, .13) 45px, transparent 46px);
}

.chart-column {
    height: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
    gap: 7px;
}

.chart-column > span {
    width: min(28px, 72%);
    min-height: 8px;
    display: block;
    border-radius: 7px 7px 2px 2px;
    background: linear-gradient(180deg, #829df2, #4d70df);
}

.chart-column small {
    padding-bottom: 7px;
    color: var(--muted);
    font-size: 9px;
}

.achievement-star {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #c28b29;
    background: #fff4dd;
}

.achievement-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.achievement-icon {
    width: 37px;
    height: 37px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    background: #f0f4ff;
}

.achievement-item > span:last-child {
    display: grid;
    gap: 3px;
}

.achievement-item strong {
    color: var(--ink);
    font-size: 11px;
}

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

.community-band {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 15px;
    padding-bottom: 66px;
}

.page-skill-grid {
    margin-top: 18px;
}

.grade-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.grade-tab {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface);
    appearance: none;
    -webkit-appearance: none;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.grade-tab.active {
    border-color: #a9bdf2;
    color: #2c51b9;
    background: #f0f4ff;
}

.grade-tab[aria-selected="true"] {
    border-color: #91a9ec;
    color: #294bb0;
    background: #e7edff;
    box-shadow: 0 3px 10px rgba(49, 94, 219, .12);
}

.grade-tab:hover {
    border-color: #a9bdf2;
}

.course-grade-panel[hidden] {
    display: none;
}

.course-skill-heading {
    margin: 8px 0 14px;
}

.course-units-title {
    margin: 23px 0 12px;
    color: var(--ink);
    font-size: 17px;
}

.unit-number {
    color: #5271cc;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
}

.lesson-lead {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.reading-passage {
    margin-top: 18px;
    padding: 19px;
    border-radius: 15px;
    color: #4e5e78;
    background: var(--background);
    font-size: 14px;
    line-height: 1.9;
}

.reading-passage p + p {
    margin-top: 12px;
}

.lesson-facts {
    display: grid;
    gap: 0;
    margin: 14px 0;
    list-style: none;
}

.lesson-facts li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

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

.practice-page-grid {
    align-items: stretch;
}

.practice-skill-card .skill-icon {
    margin-bottom: 12px;
}

.practice-page-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.listening-transcript {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--background);
}

.listening-transcript summary {
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}

.listening-transcript p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.practice-skill-card h2 {
    margin-top: 12px;
    font-size: 20px;
}

.practice-skill-card blockquote {
    margin-top: 15px;
    padding: 13px;
    border-left: 3px solid #6c8be6;
    border-radius: 0 10px 10px 0;
    color: #425676;
    background: var(--background);
    font-size: 13px;
    line-height: 1.65;
}

.writing-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
}

.exam-panel {
    max-width: 900px;
    margin-inline: auto;
}

.exam-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.exam-heading h2 {
    margin-top: 12px;
}

.exam-heading p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.exam-meta {
    display: flex;
    gap: 10px;
}

.exam-meta > span {
    min-width: 75px;
    display: grid;
    justify-items: center;
    padding: 9px;
    border-radius: 11px;
    background: var(--background);
}

.exam-meta strong {
    color: var(--ink);
    font-size: 14px;
}

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

.exam-question {
    min-width: 0;
    margin-top: 17px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.exam-question legend {
    max-width: 100%;
    padding: 0 5px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.exam-question.is-correct {
    border-color: #8bc9ad;
}

.exam-question.is-wrong {
    border-color: #e8a09c;
}

.sample-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.summary-card {
    min-height: 135px;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 6px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.summary-card strong {
    color: var(--ink);
    font-size: 24px;
}

.summary-card > span:last-child {
    color: var(--muted);
    font-size: 10px;
}

.large-chart {
    height: 275px;
}

.achievement-list-horizontal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-page-grid {
    grid-template-columns: .75fr 1.25fr;
    align-items: start;
}

.profile-summary {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.profile-large-avatar {
    width: 74px;
    height: 74px;
    margin-bottom: 12px;
    font-size: 27px;
}

.profile-summary h2 {
    margin-top: 11px;
    font-size: 20px;
}

.profile-summary > p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.profile-facts {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 17px;
    padding: 12px 0;
    border-block: 1px solid var(--line);
}

.profile-facts span {
    display: grid;
    gap: 4px;
}

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

.profile-facts strong {
    color: var(--ink);
    font-size: 12px;
}

.profile-account-details {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin-top: 17px;
    text-align: left;
}

.profile-account-details > div {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--background);
}

.profile-account-details dt {
    color: var(--muted);
    font-size: 10px;
}

.profile-account-details dd {
    margin-top: 3px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.profile-guest-avatar {
    color: var(--muted);
}

.profile-guest-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.setting-row > span {
    display: grid;
    gap: 4px;
}

.setting-row strong {
    color: var(--ink);
    font-size: 12px;
}

.setting-row small {
    color: var(--muted);
    font-size: 10px;
}

.setting-control {
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--primary);
    background: var(--surface);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.notification-page-panel {
    max-width: 850px;
    margin-inline: auto;
}

.notification-page-panel .notification-entry {
    border-top: 1px solid var(--line);
}

.notification-page-panel .notice-item {
    padding: 16px;
    border: 0;
    border-radius: 12px;
}

.notification-page-panel .notice-copy {
    display: grid;
    gap: 5px;
}

.full-notice {
    padding: 18px;
}

.notification-page-panel .notification-preview {
    font-size: 12px;
}

.notification-page-panel .notification-detail {
    margin: 0 16px 14px 65px;
}

.community-illustration {
    width: 105px;
    height: 105px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 30px;
    color: #315edb;
    background: #fff;
    box-shadow: var(--shadow);
    font-size: 44px;
}

.inline-notice {
    margin-top: 17px;
    padding: 13px 15px;
    border: 1px solid #e5eaf3;
    border-radius: 11px;
    color: var(--muted);
    background: var(--background);
    font-size: 11px;
    line-height: 1.6;
}

.support-page-grid {
    grid-template-columns: 1fr .9fr;
    align-items: start;
}

.faq-list h2,
.support-form h2,
.settings-panel h2 {
    margin-bottom: 13px;
    color: var(--ink);
    font-size: 20px;
}

.faq-item {
    margin-bottom: 9px;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.faq-item summary {
    color: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.faq-item p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.support-form {
    display: grid;
    gap: 8px;
}

.support-form p {
    margin: -6px 0 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.support-form label,
.goal-dialog label {
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
}

.goal-dialog {
    width: min(440px, calc(100% - 30px));
    margin: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 28px 90px rgba(20, 32, 58, .25);
}

.goal-dialog::backdrop {
    background: rgba(19, 29, 49, .46);
    backdrop-filter: blur(3px);
}

.goal-dialog form {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 27px;
}

.goal-dialog h2 {
    color: var(--ink);
    font-size: 21px;
}

.goal-dialog p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.dialog-close {
    width: 34px;
    height: 34px;
    position: absolute;
    top: 15px;
    right: 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
    font-size: 20px;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 7px;
}

/* EnglishUp interface refresh: final rules for the learner dashboard. */
body {
    background: radial-gradient(circle at 8% 3%, rgba(220, 232, 255, .72), transparent 26rem), linear-gradient(180deg, #fbfdff, #f5f8ff 52%, #fff);
}

.skill-icon { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72); }

.lesson-art, .recommend-art { border-bottom: 1px solid rgba(211, 221, 241, .55); }

/* Account forms share the learner page's colors and remain usable on mobile. */
.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    margin-top: 20px;
}

.account-form {
    display: grid;
    min-width: 0;
    gap: 17px;
}

.account-form h2 {
    color: var(--ink);
    font-size: 20px;
}

.account-form-intro,
.account-field small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.account-form-intro {
    margin-top: -9px;
}

.account-field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.account-field label {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.account-notice {
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.account-notice--success {
    border-color: #b7dcc9;
    color: #1e6c49;
    background: #eef9f2;
}

.account-notice--error {
    border-color: #efc1c6;
    color: #9e2d3b;
    background: #fff2f3;
}
