:root {
    --green: #58cc02;
    --green-dark: #46a302;
    --green-shadow: #3f9700;
    --gray-50: #f7f7f7;
    --gray-100: #eeeeee;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-500: #777777;
    --gray-800: #2f2f2f;
    --red: #ff4b4b;
    --red-dark: #d83a3a;
    --blue: #1cb0f6;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--gray-800);
    background: var(--gray-50);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

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

button:focus-visible,
a:focus-visible {
    outline: 4px solid rgba(28, 176, 246, 0.32);
    outline-offset: 3px;
}

.app-shell {
    width: min(760px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 48px 24px 90px;
}

.home-header {
    max-width: 590px;
    margin: 0 auto 44px;
    text-align: center;
}

.eyebrow,
.dialog-status,
.finish-kicker,
.mode-label {
    margin: 0;
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-header h1 {
    margin: 9px 0 10px;
    font-size: clamp(2rem, 6vw, 3.15rem);
}

.home-header p:last-child {
    margin: 0;
    color: var(--gray-500);
    font-size: 1.02rem;
    line-height: 1.55;
}

.lesson-map {
    position: relative;
    width: min(460px, 100%);
    min-height: 420px;
    margin: 0 auto;
    padding: 30px 0 100px;
}

.lesson-line {
    position: absolute;
    top: 88px;
    bottom: 45px;
    left: 50%;
    width: 12px;
    border-radius: 999px;
    background: var(--gray-200);
    transform: translateX(-50%);
}

#lesson-list {
    position: relative;
    z-index: 1;
}

.lesson-node-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 76px;
}

.lesson-node {
    display: grid;
    width: 116px;
    height: 116px;
    padding: 10px;
    border: 0;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 9px 0 var(--green-shadow), 0 14px 24px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.lesson-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 0 var(--green-shadow), 0 18px 27px rgba(0, 0, 0, 0.16);
}

.lesson-node:active {
    transform: translateY(6px);
    box-shadow: 0 3px 0 var(--green-shadow), 0 8px 14px rgba(0, 0, 0, 0.12);
}

.lesson-node-inner {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border: 8px solid var(--white);
    border-radius: 50%;
    background: var(--gray-300);
    transition: background 180ms ease;
}

.lesson-node.completed .lesson-node-inner {
    background: var(--green);
}

.lesson-star {
    color: var(--white);
    font-size: 2.35rem;
    line-height: 1;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.1));
}

.node-part-dots {
    display: flex;
    gap: 7px;
    margin-top: 20px;
}

.part-dot {
    width: 11px;
    height: 11px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    background: var(--white);
}

.part-dot.complete {
    border-color: var(--green-dark);
    background: var(--green);
}

.lesson-node-label {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 800;
}

.lesson-node-progress {
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 0.86rem;
    font-weight: 700;
}

.lesson-dialog {
    --arrow-left: 50%;
    position: fixed;
    z-index: 30;
    width: min(390px, calc(100vw - 24px));
    padding: 26px;
    border-radius: 22px;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 10px 0 var(--green-shadow), 0 20px 40px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: scale(0.96);
    transform-origin: var(--arrow-left) 100%;
    transition: opacity 150ms ease, transform 150ms ease;
}

.lesson-dialog.visible {
    opacity: 1;
    transform: scale(1);
}

.lesson-dialog::after {
    position: absolute;
    left: var(--arrow-left);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--green);
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.lesson-dialog.dialog-above::after {
    bottom: -11px;
}

.lesson-dialog.dialog-below {
    transform-origin: var(--arrow-left) 0;
}

.lesson-dialog.dialog-below::after {
    top: -11px;
}

.dialog-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    color: var(--white);
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.dialog-status {
    color: rgba(255, 255, 255, 0.8);
}

.lesson-dialog h2 {
    margin: 9px 38px 9px 0;
    font-size: 1.55rem;
    line-height: 1.2;
}

.dialog-description,
.dialog-score {
    margin: 0;
    line-height: 1.5;
}

.dialog-score {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
}

.dialog-part-dots {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.dialog-part-item {
    display: inline-flex;
}

.dialog-part-dot {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 900;
}

.dialog-part-dot.complete {
    border-color: var(--white);
    color: var(--green-dark);
    background: var(--white);
}

.dialog-part-dot.current {
    border-color: var(--white);
    color: var(--white);
}

.dialog-actions,
.finish-actions {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.primary-action,
.secondary-action,
.text-action {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    transition: transform 100ms ease, filter 100ms ease;
}

.primary-action {
    border: 0;
    color: var(--green-dark);
    background: var(--white);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.11);
}

.secondary-action {
    border: 2px solid rgba(255, 255, 255, 0.82);
    color: var(--white);
    background: transparent;
}

.primary-action:hover,
.secondary-action:hover,
.text-action:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

.disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.52;
}

.quiz-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: var(--gray-100);
}

.quiz-card {
    width: min(580px, 100%);
    padding: 28px;
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.quiz-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.back-link {
    color: var(--gray-500);
    font-weight: 800;
    text-decoration: none;
}

.progress-track {
    width: 100%;
    height: 13px;
    margin: 22px 0 24px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--gray-200);
}

.progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
    transition: width 250ms ease;
}

.question-count {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.95rem;
    font-weight: 700;
}

.question-area {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    margin: 22px 0 30px;
}

.question {
    margin: 0;
    font-size: clamp(3.5rem, 14vw, 5.4rem);
    line-height: 1;
}

.question-area.has-meaning .question {
    cursor: help;
}

.meaning-dropdown {
    position: absolute;
    top: calc(100% + 13px);
    left: 50%;
    z-index: 20;
    display: grid;
    min-width: 190px;
    max-width: min(310px, calc(100vw - 56px));
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    color: var(--gray-800);
    background: var(--white);
    box-shadow: 0 8px 0 var(--gray-200), 0 16px 28px rgba(0, 0, 0, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -5px);
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
    visibility: hidden;
}

.meaning-dropdown::before {
    position: absolute;
    top: -9px;
    left: 50%;
    width: 16px;
    height: 16px;
    border-top: 2px solid var(--gray-200);
    border-left: 2px solid var(--gray-200);
    background: var(--white);
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.question-area.has-meaning:hover .meaning-dropdown,
.question-area.has-meaning:focus-within .meaning-dropdown,
.question-area.has-meaning.meaning-open .meaning-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
}

.meaning-label {
    margin-bottom: 5px;
    color: var(--gray-500);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meaning-dropdown strong {
    font-size: 1.02rem;
    line-height: 1.35;
}

.answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.answer-button {
    min-height: 64px;
    padding: 14px;
    border: 2px solid var(--gray-300);
    border-bottom-width: 5px;
    border-radius: 14px;
    color: var(--gray-800);
    background: var(--white);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 800;
    transition: background 100ms ease, transform 100ms ease, border-color 100ms ease;
}

.answer-button:hover:not(:disabled) {
    background: var(--gray-50);
    transform: translateY(-1px);
}

.answer-button.correct {
    border-color: var(--green-dark);
    color: var(--white);
    background: var(--green);
}

.answer-button.wrong {
    border-color: var(--red-dark);
    color: var(--white);
    background: var(--red);
}

.answer-button:disabled {
    opacity: 1;
    cursor: default;
}

.finish-screen {
    padding: 8px 4px 2px;
}

.finish-badge {
    display: grid;
    width: 92px;
    height: 92px;
    margin: 0 auto 22px;
    place-items: center;
    border: 9px solid var(--gray-200);
    border-radius: 50%;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 7px 0 var(--green-shadow);
    font-size: 2.6rem;
}

.finish-screen h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.65rem, 6vw, 2.25rem);
}

.finish-screen p:not(.finish-kicker) {
    max-width: 470px;
    margin: 0 auto;
    color: var(--gray-500);
    line-height: 1.55;
}

.finish-actions .primary-action {
    color: var(--white);
    background: var(--green);
    box-shadow: 0 5px 0 var(--green-shadow);
}

.finish-actions .secondary-action {
    border-color: var(--gray-300);
    color: var(--gray-800);
}

.text-action {
    min-height: 42px;
    color: var(--gray-500);
}

.error-state {
    padding: 28px 10px;
}

.error-state .primary-action {
    width: min(280px, 100%);
    margin-top: 18px;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 5px 0 var(--green-shadow);
}

.typing-form {
    display: grid;
    gap: 12px;
    text-align: left;
}

.typing-label {
    color: var(--gray-800);
    font-size: 1rem;
    font-weight: 900;
}

.typing-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.typing-input {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 12px 15px;
    border: 2px solid var(--gray-300);
    border-bottom-width: 5px;
    border-radius: 14px;
    color: var(--gray-800);
    background: var(--white);
    font: inherit;
    font-size: 1.15rem;
    font-weight: 800;
    outline: none;
}

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

.typing-input.correct {
    border-color: var(--green-dark);
    color: var(--green-dark);
    background: rgba(88, 204, 2, 0.08);
}

.typing-input.wrong {
    border-color: var(--red-dark);
    color: var(--red-dark);
    background: rgba(255, 75, 75, 0.08);
}

.typing-submit {
    min-height: 58px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 5px 0 var(--green-shadow);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
}

.typing-submit:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 0 1px 0 var(--green-shadow);
}

.typing-submit:disabled,
.typing-input:disabled {
    opacity: 1;
    cursor: default;
}

.typing-help,
.typing-feedback {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.45;
}

.typing-help {
    color: var(--gray-500);
}

.typing-feedback {
    min-height: 1.2em;
    font-weight: 900;
}

.typing-feedback.correct {
    color: var(--green-dark);
}

.typing-feedback.wrong {
    color: var(--red-dark);
}

.answer-feedback {
    margin: 16px 0 4px;
    padding: 15px 17px;
    border: 2px solid #f0b4b0;
    border-radius: 14px;
    color: #8f241d;
    background: #fff1f0;
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.5;
    text-align: center;
}

.correction-next {
    display: block;
    min-width: 150px;
    margin: 16px 0 0 auto;
}

.chapter-test-page .typing-feedback.wrong {
    padding: 13px 15px;
    border: 2px solid #f0b4b0;
    border-radius: 12px;
    background: #fff1f0;
    line-height: 1.5;
}

[hidden] {
    display: none !important;
}

@media (max-width: 560px) {
    .app-shell {
        padding: 34px 18px 70px;
    }

    .lesson-node {
        width: 104px;
        height: 104px;
    }

    .lesson-dialog {
        padding: 23px 20px;
        border-radius: 19px;
    }

    .lesson-dialog h2 {
        font-size: 1.35rem;
    }

    .quiz-page {
        align-items: start;
        padding: 12px;
    }

    .quiz-card {
        min-height: calc(100vh - 24px);
        padding: 22px 18px;
        border-radius: 18px;
    }

    .answers {
        grid-template-columns: 1fr;
    }

    .typing-row {
        grid-template-columns: 1fr;
    }

    .typing-submit {
        width: 100%;
    }
}

/* Word lessons use a slightly smaller prompt so longer words stay readable. */
.question.word-question {
    font-size: clamp(1.8rem, 7vw, 3.6rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.answers .answer-button {
    overflow-wrap: anywhere;
}

/* Chapter layout */
.chapter-list {
    width: min(540px, 100%);
    margin: 0 auto;
}

.chapter-block {
    margin-bottom: 52px;
}

.chapter-header {
    position: relative;
    z-index: 3;
    margin-bottom: 18px;
    padding: 22px 24px;
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 6px 0 var(--gray-200);
    text-align: left;
}

.chapter-eyebrow {
    margin: 0;
    color: var(--green-dark);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.chapter-title {
    margin: 7px 0 6px;
    font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.chapter-subtitle,
.chapter-progress {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.45;
}

.chapter-progress {
    margin-top: 10px;
    color: var(--green-dark);
    font-size: 0.88rem;
    font-weight: 900;
}

.chapter-map {
    position: relative;
    min-height: 400px;
    padding: 38px 0 22px;
}

.chapter-line {
    position: absolute;
    top: 88px;
    bottom: 82px;
    left: 50%;
    width: 12px;
    border-radius: 999px;
    background: var(--gray-200);
    transform: translateX(-50%);
}

.chapter-lessons {
    position: relative;
    z-index: 1;
}

.chapter-lessons .lesson-node-wrap:last-child {
    margin-bottom: 30px;
}

.lesson-node-progress {
    max-width: 280px;
    padding: 0 10px;
    text-align: center;
    line-height: 1.35;
}

.lesson-node.locked {
    background: #b8b8b8;
    box-shadow: 0 9px 0 #949494, 0 14px 24px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.lesson-node.locked:hover {
    box-shadow: 0 12px 0 #949494, 0 18px 27px rgba(0, 0, 0, 0.12);
}

.lesson-node.locked:active {
    box-shadow: 0 3px 0 #949494, 0 8px 14px rgba(0, 0, 0, 0.1);
}

.lesson-node.locked .lesson-node-inner {
    background: #c8c8c8;
}

.lesson-node.locked .lesson-star {
    font-size: 1.85rem;
    filter: grayscale(1) drop-shadow(0 2px 0 rgba(0, 0, 0, 0.08));
}

@media (max-width: 560px) {
    .chapter-header {
        padding: 19px 18px;
    }

    .chapter-map {
        padding-top: 30px;
    }
}

/* Clickable Serbian Cyrillic keyboard used for Latin-to-Cyrillic practice. */
.cyrillic-keyboard {
    display: grid;
    gap: 8px;
    margin-top: 4px;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    background: var(--gray-50);
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.keyboard-key {
    min-width: 34px;
    min-height: 42px;
    padding: 6px 8px;
    border: 2px solid var(--gray-300);
    border-bottom-width: 4px;
    border-radius: 10px;
    color: var(--gray-800);
    background: var(--white);
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
}

.keyboard-key:hover:not(:disabled) {
    background: var(--gray-100);
}

.keyboard-key:active:not(:disabled) {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.keyboard-controls {
    margin-top: 2px;
}

.keyboard-control-key {
    min-width: 76px;
    font-size: 0.82rem;
    text-transform: uppercase;
}

@media (max-width: 560px) {
    .cyrillic-keyboard {
        gap: 6px;
        padding: 9px 6px;
    }

    .keyboard-row {
        gap: 3px;
    }

    .keyboard-key {
        min-width: 0;
        flex: 1 1 0;
        min-height: 39px;
        padding: 5px 2px;
        border-radius: 8px;
        font-size: 0.94rem;
    }

    .keyboard-control-key {
        flex: 0 1 31%;
        min-width: 0;
        padding-inline: 5px;
        font-size: 0.72rem;
    }
}

/* Expandable learned-vocabulary area on the lesson map. */
.home-header > p:not(.eyebrow) {
    margin: 0;
    color: var(--gray-500);
    font-size: 1.02rem;
    line-height: 1.55;
}

.home-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.vocabulary-toggle {
    min-height: 50px;
    padding: 12px 20px;
    border: 2px solid var(--green-dark);
    border-bottom-width: 5px;
    border-radius: 14px;
    color: var(--green-dark);
    background: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.vocabulary-toggle:hover {
    background: #f2ffe8;
}

.vocabulary-toggle:active {
    transform: translateY(2px);
    border-bottom-width: 3px;
}

.vocabulary-panel {
    width: min(680px, 100%);
    margin: 0 auto 42px;
    padding: 24px;
    border: 2px solid var(--gray-200);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 7px 0 var(--gray-200), 0 18px 34px rgba(0, 0, 0, 0.08);
    scroll-margin-top: 18px;
}

.vocabulary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.vocabulary-header h2 {
    margin: 7px 0 4px;
    font-size: clamp(1.45rem, 4vw, 2rem);
}

.vocabulary-count {
    margin: 0;
    color: var(--gray-500);
    font-weight: 700;
}

.vocabulary-close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    color: var(--gray-500);
    background: var(--gray-100);
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
}

.vocabulary-search-label {
    display: block;
    margin-top: 20px;
    color: var(--gray-800);
    font-size: 0.84rem;
    font-weight: 900;
}

.vocabulary-search {
    width: 100%;
    min-height: 48px;
    margin-top: 7px;
    padding: 10px 13px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    color: var(--gray-800);
    background: var(--white);
    font: inherit;
}

.vocabulary-search:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(28, 176, 246, 0.18);
}

.vocabulary-table-wrap {
    max-height: 440px;
    margin-top: 18px;
    overflow: auto;
    border: 2px solid var(--gray-200);
    border-radius: 15px;
}

.vocabulary-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.vocabulary-table th,
.vocabulary-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
}

.vocabulary-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--gray-500);
    background: var(--gray-50);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vocabulary-table td:first-child,
.vocabulary-table td:nth-child(2) {
    font-weight: 800;
}

.vocabulary-table tr:last-child td {
    border-bottom: 0;
}

.vocabulary-empty {
    margin: 0;
    padding: 30px 18px;
    color: var(--gray-500);
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .vocabulary-panel {
        padding: 18px 14px;
    }

    .vocabulary-table th,
    .vocabulary-table td {
        padding: 11px 9px;
        font-size: 0.9rem;
    }
}

/* Chapter selection */
.chapter-switcher {
    display: grid;
    width: min(540px, 100%);
    grid-template-columns: 58px 1fr 58px;
    align-items: center;
    gap: 14px;
    margin: 0 auto 24px;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 5px 0 var(--gray-200);
}

.chapter-arrow {
    width: 52px;
    height: 52px;
    border: 2px solid var(--green-dark);
    border-bottom-width: 5px;
    border-radius: 14px;
    color: var(--green-dark);
    background: var(--white);
    cursor: pointer;
    font-size: 1.55rem;
    font-weight: 900;
}

.chapter-arrow:active:not(:disabled) {
    transform: translateY(2px);
    border-bottom-width: 3px;
}

.chapter-arrow:disabled {
    border-color: var(--gray-300);
    color: var(--gray-300);
    background: var(--gray-100);
    cursor: not-allowed;
}

.chapter-switcher-copy {
    min-width: 0;
    text-align: center;
}

.chapter-switcher-copy span,
.chapter-switcher-copy strong {
    display: block;
}

.chapter-switcher-copy span {
    color: var(--green-dark);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chapter-switcher-copy strong {
    margin-top: 4px;
    overflow: hidden;
    font-size: 0.96rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-placeholder {
    width: min(500px, calc(100% - 20px));
    margin: 14px auto 34px;
    padding: 34px 28px;
    border: 2px dashed var(--green);
    border-radius: 22px;
    background: var(--white);
    text-align: center;
}

.chapter-placeholder.locked {
    border-color: var(--gray-300);
    color: var(--gray-500);
    background: var(--gray-100);
}

.chapter-placeholder-icon {
    font-size: 2.4rem;
}

.chapter-placeholder h3 {
    margin: 12px 0 8px;
    font-size: 1.35rem;
}

.chapter-placeholder p {
    margin: 0 auto;
    max-width: 420px;
    color: var(--gray-500);
    line-height: 1.55;
}

.chapter-placeholder ul {
    display: grid;
    gap: 8px;
    max-width: 390px;
    margin: 22px auto 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.chapter-placeholder li {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--gray-50);
    font-weight: 700;
}

.chapter-placeholder li::before {
    margin-right: 8px;
    color: var(--green-dark);
    content: "✓";
}

.chapter-test-node {
    background: #f2b90f;
    box-shadow: 0 9px 0 #c38d00, 0 14px 24px rgba(0, 0, 0, 0.14);
}

.chapter-test-node:hover {
    box-shadow: 0 12px 0 #c38d00, 0 18px 27px rgba(0, 0, 0, 0.16);
}

.chapter-test-node:active {
    box-shadow: 0 3px 0 #c38d00, 0 8px 14px rgba(0, 0, 0, 0.12);
}

.chapter-test-node.completed .lesson-node-inner {
    background: #f2b90f;
}

.lesson-crown {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
}

.test-part-dot .part-dot.complete {
    border-color: #c38d00;
    background: #f2b90f;
}

/* Profile and local account */
.profile-button {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 25;
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 7px 13px 7px 8px;
    border: 2px solid var(--gray-200);
    border-bottom-width: 5px;
    border-radius: 16px;
    color: var(--gray-800);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.profile-button:active {
    transform: translateY(2px);
    border-bottom-width: 3px;
}

.profile-avatar,
.profile-large-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--green);
    font-weight: 900;
}

.profile-avatar {
    width: 36px;
    height: 36px;
}

.profile-large-avatar {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
}

.profile-button-copy {
    display: grid;
    gap: 1px;
}

.profile-button-copy strong {
    max-width: 130px;
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-button-copy span {
    color: var(--green-dark);
    font-size: 0.76rem;
    font-weight: 900;
}

.modal-open {
    overflow: hidden;
}

.profile-overlay {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.54);
    opacity: 0;
    transition: opacity 150ms ease;
}

.profile-overlay.visible {
    opacity: 1;
}

.profile-modal {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100vh - 40px);
    padding: 28px;
    overflow-y: auto;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 16px 55px rgba(0, 0, 0, 0.28);
    transform: translateY(10px) scale(0.98);
    transition: transform 150ms ease;
}

.profile-overlay.visible .profile-modal {
    transform: translateY(0) scale(1);
}

.profile-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--gray-500);
    background: var(--gray-100);
    cursor: pointer;
    font-size: 1.8rem;
}

.profile-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-right: 36px;
}

.profile-heading h2 {
    margin: 6px 0 5px;
    font-size: 1.75rem;
}

.profile-heading p:last-child {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.45;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.profile-stats article {
    padding: 14px 10px;
    border: 2px solid var(--gray-200);
    border-radius: 15px;
    background: var(--gray-50);
    text-align: center;
}

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

.profile-stats span {
    color: var(--gray-500);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-stats strong {
    margin-top: 5px;
    font-size: 1.25rem;
}

.level-progress-wrap {
    margin-top: 18px;
}

.level-progress-labels {
    display: flex;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 0.8rem;
    font-weight: 800;
}

.level-progress-track {
    height: 14px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--gray-200);
}

.level-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
    transition: width 250ms ease;
}

.account-area,
.signed-in-area {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 2px solid var(--gray-200);
}

.account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.account-tab {
    min-height: 44px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    color: var(--gray-500);
    background: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.account-tab.active {
    border-color: var(--green);
    color: var(--green-dark);
    background: #f2ffe8;
}

.account-form {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.account-form label {
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 900;
}

.account-form input {
    min-height: 48px;
    padding: 10px 12px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    font: inherit;
}

.account-form input:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(28, 176, 246, 0.18);
}

.account-submit {
    width: 100%;
    margin-top: 10px;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.account-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.account-help,
.profile-security-note,
.signed-in-area p {
    margin: 8px 0 0;
    color: var(--gray-500);
    font-size: 0.82rem;
    line-height: 1.45;
}

.account-message {
    min-height: 22px;
    margin: 12px 0 0;
    font-size: 0.86rem;
    font-weight: 800;
}

.account-message.error {
    color: var(--red-dark);
}

.account-message.success {
    color: var(--green-dark);
}

.signed-in-area {
    text-align: center;
}

.secondary-dark-action {
    min-height: 46px;
    margin-top: 14px;
    padding: 10px 18px;
    border: 2px solid var(--gray-300);
    border-bottom-width: 5px;
    border-radius: 13px;
    color: var(--gray-800);
    background: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.profile-security-note {
    margin-top: 20px;
    padding: 12px;
    border-radius: 12px;
    background: var(--gray-100);
}

/* Chapter test */
.chapter-test-card {
    border-top: 7px solid #f2b90f;
}

.crown-mode {
    color: #9b6f00;
}

.test-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.test-status-row .question-count {
    margin: 0;
}

.test-mistakes {
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 900;
}

.test-mistakes.danger {
    color: var(--red-dark);
}

.test-question-area {
    cursor: default;
}

.test-direction {
    margin: 0 0 12px;
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.crown-finish-badge {
    color: #9b6f00;
    background: #fff5c9;
}

.crown-finish-badge.failed {
    color: var(--red-dark);
    background: #ffe1e1;
}

.chapter-test-page .cyrillic-keyboard {
    grid-template-columns: repeat(10, minmax(0, 1fr));
}

.chapter-test-page .cyrillic-keyboard button {
    min-width: 0;
    min-height: 40px;
    padding: 5px 2px;
    border: 2px solid var(--gray-300);
    border-bottom-width: 4px;
    border-radius: 9px;
    color: var(--gray-800);
    background: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.chapter-test-page .cyrillic-keyboard button:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

@media (max-width: 780px) {
    .profile-button {
        position: absolute;
        top: 12px;
        right: 12px;
    }

    .app-shell {
        padding-top: 92px;
    }
}

@media (max-width: 560px) {
    .profile-button-copy strong {
        max-width: 90px;
    }

    .profile-modal {
        padding: 22px 16px;
    }

    .profile-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .profile-large-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .chapter-switcher {
        grid-template-columns: 48px 1fr 48px;
        gap: 8px;
        padding: 9px;
    }

    .chapter-arrow {
        width: 44px;
        height: 46px;
    }

    .chapter-switcher-copy strong {
        font-size: 0.84rem;
    }

    .chapter-placeholder {
        padding: 28px 18px;
    }

    .chapter-test-page .cyrillic-keyboard {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.home-page .app-shell {
    padding-top: 100px;
}

/* Clear translation directions shown above every quiz prompt. */
.question-instruction,
.test-direction {
    margin: 24px 0 0;
    color: var(--gray-800);
    font-size: clamp(1.65rem, 5vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.12;
    text-align: left;
    text-transform: none;
}

.question-instruction + .question-area,
.test-direction + .question {
    margin-top: 18px;
}

@media (max-width: 560px) {
    .question-instruction,
    .test-direction {
        margin-top: 20px;
        font-size: clamp(1.45rem, 7vw, 1.9rem);
    }
}

/* Persistent study-area tabs */
.bottom-tabs {
    position: fixed;
    z-index: 60;
    right: 50%;
    bottom: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(660px, calc(100vw - 28px));
    padding: 8px;
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    transform: translateX(50%);
    backdrop-filter: blur(12px);
}

/* Learner dashboard */
.dashboard-page {
    background:
        radial-gradient(circle at 12% 8%, rgba(88, 204, 2, 0.1), transparent 28rem),
        radial-gradient(circle at 92% 38%, rgba(28, 176, 246, 0.08), transparent 25rem),
        var(--gray-50);
}

.dashboard-page .dashboard-shell {
    width: min(1040px, 100%);
    padding-top: 84px;
}

.dashboard-header {
    max-width: 720px;
    margin-bottom: 28px;
}

.dashboard-header .eyebrow {
    margin-bottom: 8px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.25rem);
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.dashboard-header > p:last-child {
    max-width: 610px;
    margin: 11px 0 0;
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.55;
}

.continue-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
    gap: 34px;
    min-height: 330px;
    padding: clamp(28px, 5vw, 52px);
    overflow: hidden;
    border-radius: 32px;
    color: var(--white);
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.2), transparent 13rem),
        linear-gradient(135deg, #3c9700 0%, #58cc02 54%, #6dd70d 100%);
    box-shadow: 0 14px 0 #348600, 0 26px 50px rgba(47, 126, 0, 0.18);
}

.continue-card::after {
    position: absolute;
    right: -75px;
    bottom: -140px;
    width: 330px;
    height: 330px;
    border: 42px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    content: "";
}

.continue-copy,
.course-ring {
    position: relative;
    z-index: 1;
}

.continue-kicker,
.continue-chapter {
    margin: 0;
    font-weight: 900;
}

.continue-kicker {
    color: #e9ffd8;
    font-size: 0.77rem;
    letter-spacing: 0.12em;
}

.continue-chapter {
    margin-top: 13px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.continue-copy h2 {
    max-width: 650px;
    margin: 9px 0 12px;
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.continue-copy > p:nth-of-type(3) {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.03rem;
    line-height: 1.55;
}

.continue-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 27px;
}

.dashboard-primary-action {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    border-radius: 16px;
    color: #287200;
    background: var(--white);
    box-shadow: 0 6px 0 rgba(26, 95, 0, 0.34);
    font-weight: 900;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform 100ms ease, box-shadow 100ms ease;
}

.dashboard-primary-action:hover {
    transform: translateY(-2px);
}

.dashboard-primary-action:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 rgba(26, 95, 0, 0.34);
}

.dashboard-text-link {
    color: var(--white);
    font-weight: 900;
    text-underline-offset: 4px;
}

.course-ring {
    --course-progress: 0deg;
    display: grid;
    width: 172px;
    height: 172px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--white) var(--course-progress), rgba(255, 255, 255, 0.24) 0);
    box-shadow: 0 12px 30px rgba(31, 111, 0, 0.24);
}

.course-ring::before {
    position: absolute;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: #50b900;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
    content: "";
}

.course-ring-center {
    position: relative;
    display: grid;
    place-items: center;
}

.course-ring-center strong {
    font-size: 2.05rem;
    letter-spacing: -0.05em;
}

.course-ring-center span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.77rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.starter-guide {
    margin-top: 44px;
    padding: 30px;
    border: 2px solid #bfe2f4;
    border-bottom-width: 6px;
    border-radius: 26px;
    background: #f3fbff;
}

.starter-heading {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 1.25fr);
    align-items: end;
    gap: 28px;
}

.starter-heading .eyebrow {
    color: #0878ad;
}

.starter-heading h2,
.dashboard-section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    letter-spacing: -0.035em;
}

.starter-heading > p {
    margin: 0;
    color: #466574;
    line-height: 1.55;
}

.starter-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.starter-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
    border: 2px solid #d5edf8;
    border-radius: 18px;
    background: var(--white);
}

.starter-steps li > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    color: var(--white);
    background: var(--blue);
    font-weight: 900;
}

.starter-steps strong,
.starter-steps small {
    display: block;
}

.starter-steps strong {
    margin-top: 1px;
    line-height: 1.25;
}

.starter-steps small {
    margin-top: 5px;
    color: var(--gray-500);
    line-height: 1.4;
}

.dashboard-section {
    margin-top: 48px;
}

.dashboard-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.dashboard-section-heading > a {
    color: var(--green-dark);
    font-size: 0.92rem;
    font-weight: 900;
    text-underline-offset: 4px;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-stat-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 15px;
    padding: 22px;
    border: 2px solid var(--gray-200);
    border-bottom-width: 6px;
    border-radius: 22px;
    background: var(--white);
}

.dashboard-stat-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 16px;
    color: var(--green-dark);
    background: #effbdd;
    font-size: 0.95rem;
    font-weight: 900;
}

.lesson-card .dashboard-stat-icon {
    color: #0878ad;
    background: #e4f7ff;
    font-size: 1.35rem;
}

.script-card .dashboard-stat-icon {
    color: #725000;
    background: #fff4cc;
}

.dashboard-stat-card small,
.dashboard-stat-card strong,
.dashboard-stat-card div > span {
    display: block;
}

.dashboard-stat-card small {
    color: var(--gray-500);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-stat-card strong {
    margin-top: 4px;
    font-size: 1.35rem;
}

.dashboard-stat-card div > span {
    margin-top: 4px;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 0.83rem;
    line-height: 1.35;
    text-overflow: ellipsis;
}

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

.study-area-card {
    display: grid;
    min-height: 220px;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 27px;
    border: 2px solid var(--gray-200);
    border-bottom-width: 7px;
    border-radius: 25px;
    background: var(--white);
    text-decoration: none;
    transition: transform 120ms ease, border-color 120ms ease;
}

.study-area-card:hover {
    border-color: #b8dca0;
    transform: translateY(-3px);
}

.study-area-mark {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border-radius: 21px;
    color: var(--white);
    background: var(--green);
    box-shadow: 0 6px 0 var(--green-shadow);
    font-size: 1.15rem;
    font-weight: 900;
}

.cyrillic-area-mark {
    background: var(--blue);
    box-shadow: 0 6px 0 #0878ad;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.practice-area-mark {
    background: #8a55d7;
    box-shadow: 0 6px 0 #6534ad;
    font-size: 1.9rem;
}

.study-area-card h3 {
    margin: 3px 0 8px;
    font-size: 1.45rem;
}

.study-area-card p {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.55;
}

.study-area-card div > strong {
    display: block;
    margin-top: 21px;
    color: var(--green-dark);
    font-size: 0.9rem;
}

.cyrillic-area-card div > strong {
    color: #0878ad;
}

.practice-area-card div > strong {
    color: #6d3fba;
}

.dashboard-account-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 30px;
    padding: 22px 24px;
    border: 2px dashed var(--gray-300);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
}

.dashboard-account-prompt strong {
    font-size: 1.05rem;
}

.dashboard-account-prompt p {
    margin: 5px 0 0;
    color: var(--gray-500);
    line-height: 1.45;
}

.dashboard-account-prompt button {
    min-height: 46px;
    flex: 0 0 auto;
    padding: 0 18px;
    border: 2px solid var(--green-dark);
    border-bottom-width: 5px;
    border-radius: 14px;
    color: var(--green-dark);
    background: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

@media (max-width: 820px) {
    .continue-card {
        grid-template-columns: minmax(0, 1fr) 145px;
    }

    .course-ring {
        width: 140px;
        height: 140px;
    }

    .course-ring::before {
        width: 106px;
        height: 106px;
    }

    .course-ring-center strong {
        font-size: 1.65rem;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .study-area-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stat-card div > span {
        white-space: normal;
    }
}

@media (max-width: 680px) {
    .dashboard-page .dashboard-shell {
        padding-top: 92px;
    }

    .continue-card {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        padding: 28px 23px 34px;
        border-radius: 25px;
    }

    .course-ring {
        width: 116px;
        height: 116px;
        justify-self: start;
    }

    .course-ring::before {
        width: 88px;
        height: 88px;
    }

    .course-ring-center strong {
        font-size: 1.4rem;
    }

    .course-ring-center span {
        font-size: 0.66rem;
    }

    .starter-heading,
    .starter-steps,
    .study-area-grid {
        grid-template-columns: 1fr;
    }

    .starter-heading {
        align-items: start;
        gap: 12px;
    }

    .starter-guide {
        padding: 23px 19px;
    }

    .study-area-card {
        min-height: 0;
    }

    .dashboard-account-prompt {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        max-width: 280px;
    }

    .continue-copy h2 {
        font-size: 2rem;
    }

    .continue-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-primary-action {
        width: 100%;
    }

    .dashboard-text-link {
        text-align: center;
    }

    .dashboard-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .study-area-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
        padding: 21px 18px;
    }

    .study-area-mark {
        width: 56px;
        height: 56px;
        border-radius: 17px;
    }

    .bottom-tab {
        gap: 5px;
        font-size: 0.78rem;
    }
}

.bottom-tab {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 13px;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 900;
}

.bottom-tab:hover {
    color: var(--gray-800);
    background: var(--gray-100);
}

.bottom-tab.active {
    color: var(--green-dark);
    background: #effbdd;
}

.bottom-tab-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.cyrillic-tab-icon {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.home-page .app-shell {
    padding-bottom: 138px;
}

/* Dedicated Cyrillic practice tab */
.cyrillic-page .app-shell {
    width: min(880px, 100%);
    padding-top: 48px;
}

.cyrillic-header {
    margin-bottom: 34px;
}

.cyrillic-header .eyebrow,
.cyrillic-page .cyrillic-panel .eyebrow,
.cyrillic-page .cyrillic-path .eyebrow {
    color: #0878ad;
}

.cyrillic-panel,
.cyrillic-path {
    margin-bottom: 28px;
    padding: 28px;
    border: 2px solid var(--gray-200);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.cyrillic-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.cyrillic-section-heading h2 {
    margin: 7px 0 0;
    font-size: clamp(1.35rem, 4vw, 1.85rem);
}

.path-heading > p {
    max-width: 300px;
    margin: 0;
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: right;
}

.compact-action {
    min-height: 42px;
    padding: 8px 14px;
    border: 2px solid var(--gray-300);
    border-bottom-width: 4px;
    border-radius: 11px;
    color: var(--gray-800);
    background: var(--white);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
}

.compact-action:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.cyrillic-letter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.cyrillic-letter-card {
    display: grid;
    min-height: 92px;
    padding: 10px 6px;
    align-content: center;
    gap: 5px;
    place-items: center;
    border: 2px solid var(--gray-200);
    border-bottom-width: 5px;
    border-radius: 14px;
    color: var(--gray-800);
    background: var(--gray-50);
    cursor: pointer;
    font: inherit;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.cyrillic-letter-card.started {
    min-height: 122px;
}

.cyrillic-letter-card.mastered {
    border-color: var(--green);
    background: #f1fff7;
}

.cyrillic-letter-card:hover {
    border-color: #8ed7f8;
    background: #eefaff;
    transform: translateY(-2px);
}

.cyrillic-letter-card.revealed {
    border-color: var(--blue);
    color: #075f89;
    background: #e6f7ff;
}

.cyrillic-letter {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.cyrillic-letter-answer {
    color: #075f89;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

.cyrillic-mastery-note {
    max-width: 620px;
    margin: 7px 0 0;
    color: var(--gray-500);
    font-size: 0.82rem;
    line-height: 1.45;
}

.cyrillic-letter-mastery {
    display: grid;
    width: calc(100% - 6px);
    gap: 4px;
}

.cyrillic-letter-mastery-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce7ec;
}

.cyrillic-letter-mastery-fill {
    display: block;
    width: 4%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #36a9e1, #20c76a);
    transition: width 240ms ease;
}

.cyrillic-letter-mastery-label {
    color: #075f89;
    font-size: 0.61rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

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

.cyrillic-lesson-card {
    padding: 22px;
    border: 2px solid var(--gray-200);
    border-top: 6px solid var(--blue);
    border-radius: 18px;
    background: var(--gray-50);
}

.cyrillic-lesson-card.completed {
    border-top-color: var(--green);
    background: #f6ffec;
}

.cyrillic-lesson-card.locked {
    border-top-color: var(--gray-300);
    opacity: 0.72;
}

.cyrillic-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cyrillic-card-number {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--blue);
    font-weight: 900;
}

.cyrillic-lesson-card.completed .cyrillic-card-number {
    background: var(--green-dark);
}

.cyrillic-lesson-card.locked .cyrillic-card-number {
    background: var(--gray-500);
}

.cyrillic-card-status {
    color: var(--gray-500);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.cyrillic-lesson-card h3 {
    margin: 18px 0 8px;
    font-size: 1.25rem;
}

.cyrillic-lesson-card > p {
    min-height: 63px;
    margin: 0;
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cyrillic-progress-track {
    height: 10px;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 999px;
    background: var(--gray-200);
}

.cyrillic-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--blue);
}

.cyrillic-lesson-card.completed .cyrillic-progress-track span {
    background: var(--green);
}

.cyrillic-card-actions {
    display: grid;
    gap: 10px;
}

.cyrillic-card-actions .primary-action,
.cyrillic-card-actions .secondary-action {
    width: 100%;
    text-align: center;
}

.cyrillic-card-actions .disabled {
    pointer-events: none;
    opacity: 0.5;
}

@media (max-width: 680px) {
    .cyrillic-letter-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .cyrillic-lesson-list {
        grid-template-columns: 1fr;
    }

    .cyrillic-lesson-card > p {
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .cyrillic-panel,
    .cyrillic-path {
        padding: 20px 15px;
    }

    .cyrillic-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .path-heading > p {
        text-align: left;
    }

    .cyrillic-letter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .cyrillic-letter-card {
        min-height: 82px;
    }

    .bottom-tabs {
        bottom: 9px;
    }
}

/* Serbian pronunciation and listening questions */
.question-area.can-play-audio .question {
    cursor: pointer;
}

.question-area.can-play-audio:not(.audio-only-question) .question::after {
    margin-left: 0.3em;
    color: var(--blue);
    content: "🔊";
    font-size: 0.42em;
    vertical-align: middle;
}

.question-area.audio-only-question {
    align-items: center;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
}

.question-area.audio-only-question .question {
    color: #0878ad;
    font-size: clamp(2rem, 8vw, 3rem);
}

.question-audio-button {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    border: 2px solid #8ed7f8;
    border-bottom-width: 5px;
    border-radius: 14px;
    color: #075f89;
    background: #e6f7ff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.question-audio-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.question-audio-actions[hidden] {
    display: none;
}

.question-audio-button.slow {
    border-color: #b8a5ff;
    color: #5143a6;
    background: #f1efff;
}

.question-audio-button[hidden] {
    display: none;
}

.question-audio-button:active {
    transform: translateY(3px);
    border-bottom-width: 2px;
}

.listening-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding: 18px;
    border: 2px solid #bfe8fb;
    border-radius: 16px;
    text-align: left;
    background: #f1fbff;
}

.listening-controls strong {
    display: block;
    color: #075f89;
    font-size: 0.92rem;
}

.listening-controls p {
    margin: 5px 0 0;
    color: var(--gray-500);
    font-size: 0.78rem;
    line-height: 1.4;
}

.listening-controls.disabled {
    border-color: var(--gray-200);
    background: var(--gray-100);
}

.listening-controls.disabled strong {
    color: var(--gray-800);
}

.listening-toggle {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 9px 14px;
    border: 2px solid #8ed7f8;
    border-bottom-width: 4px;
    border-radius: 12px;
    color: #075f89;
    background: var(--white);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
}

.listening-controls.disabled .listening-toggle {
    border-color: var(--gray-300);
    color: var(--gray-800);
}

.listening-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.vocabulary-audio-row {
    cursor: pointer;
    transition: background 120ms ease;
}

.vocabulary-audio-row:hover,
.vocabulary-audio-row:focus-visible {
    background: #eaf9ff;
}

.cyrillic-letter-card::after {
    color: #0878ad;
    content: "🔊";
    font-size: 0.72rem;
}

@media (max-width: 560px) {
    .question-audio-actions {
        width: 100%;
    }

    .question-audio-button {
        flex: 1 1 150px;
    }

    .listening-controls {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .listening-toggle {
        width: 100%;
    }
}

/* Adaptive practice tab */
.practice-page {
    background:
        radial-gradient(circle at 10% 10%, rgba(138, 85, 215, 0.1), transparent 27rem),
        radial-gradient(circle at 92% 35%, rgba(28, 176, 246, 0.08), transparent 24rem),
        var(--gray-50);
}

.practice-page .practice-shell {
    width: min(980px, 100%);
    padding-top: 84px;
}

.practice-header {
    max-width: 720px;
    margin-bottom: 28px;
}

.practice-header .eyebrow,
.practice-section-heading .eyebrow {
    color: #6d3fba;
}

.practice-header h1 {
    margin: 7px 0 8px;
    font-size: clamp(2.2rem, 7vw, 3.6rem);
    letter-spacing: -0.05em;
}

.practice-header > p:last-child {
    margin: 0;
    color: var(--gray-500);
    font-size: 1.04rem;
    line-height: 1.55;
}

.practice-hero {
    display: grid;
    min-height: 310px;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    gap: 32px;
    padding: clamp(28px, 5vw, 48px);
    overflow: hidden;
    border-radius: 30px;
    color: var(--white);
    background:
        radial-gradient(circle at 88% 5%, rgba(255, 255, 255, 0.2), transparent 14rem),
        linear-gradient(135deg, #6132a7, #8a55d7 55%, #a46fea);
    box-shadow: 0 13px 0 #532695, 0 25px 50px rgba(86, 45, 148, 0.18);
}

.practice-plan-kicker {
    margin: 0;
    color: #eee4ff;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.practice-hero h2 {
    max-width: 610px;
    margin: 11px 0 12px;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.practice-hero div > p:nth-of-type(2) {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
}

.practice-start-button {
    min-height: 56px;
    margin-top: 25px;
    padding: 0 24px;
    border: 0;
    border-radius: 16px;
    color: #5a2b9e;
    background: var(--white);
    box-shadow: 0 6px 0 rgba(61, 22, 119, 0.42);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.practice-start-button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.practice-stack {
    position: relative;
    z-index: 1;
    width: 210px;
    height: 190px;
}

.practice-stack span {
    position: absolute;
    display: grid;
    width: 165px;
    height: 112px;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, 0.55);
    border-radius: 22px;
    color: #5b299d;
    background: var(--white);
    box-shadow: 0 11px 25px rgba(51, 17, 105, 0.22);
    font-weight: 900;
}

.practice-stack-back {
    top: 0;
    right: 0;
    transform: rotate(8deg);
}

.practice-stack-middle {
    top: 34px;
    left: 3px;
    transform: rotate(-8deg);
}

.practice-stack-front {
    right: 5px;
    bottom: 0;
    font-size: 1.25rem;
    transform: rotate(2deg);
}

.practice-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 38px;
}

.practice-summary article {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 2px solid var(--gray-200);
    border-bottom-width: 6px;
    border-radius: 20px;
    background: var(--white);
}

.practice-summary-mark {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    font-weight: 900;
}

.practice-summary-mark.focus {
    color: #d73a3a;
    background: #ffeded;
    font-size: 1.35rem;
}

.practice-summary-mark.learned {
    color: var(--green-dark);
    background: #effbdd;
}

.practice-summary-mark.set {
    color: #6d3fba;
    background: #f1eaff;
}

.practice-summary small,
.practice-summary strong {
    display: block;
}

.practice-summary small {
    color: var(--gray-500);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.practice-summary strong {
    margin-top: 3px;
    font-size: 1.3rem;
}

.practice-list-section {
    margin-top: 46px;
}

.practice-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 17px;
}

.practice-section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(1.55rem, 4vw, 2.1rem);
    letter-spacing: -0.035em;
}

.practice-section-heading > p {
    max-width: 390px;
    margin: 0;
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: right;
}

.focus-item-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.focus-item-card {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 17px;
    padding: 20px;
    border: 2px solid var(--gray-200);
    border-left: 6px solid #8a55d7;
    border-radius: 19px;
    background: var(--white);
}

.focus-item-card.needs-focus {
    border-left-color: var(--red);
}

.focus-item-card > div {
    min-width: 0;
}

.focus-item-topline,
.focus-item-card strong,
.focus-item-card div > span,
.focus-item-card small {
    display: block;
}

.focus-item-topline {
    margin: 0 0 5px;
    color: #8a55d7;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.needs-focus .focus-item-topline {
    color: var(--red-dark);
}

.focus-item-card strong {
    overflow: hidden;
    font-size: 1.2rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.focus-item-card div > span {
    margin-top: 3px;
    color: #6d3fba;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
}

.focus-item-card small {
    margin-top: 5px;
    overflow: hidden;
    color: var(--gray-500);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.focus-item-play {
    width: 47px;
    height: 47px;
    flex: 0 0 auto;
    border: 2px solid #d9c8f3;
    border-bottom-width: 5px;
    border-radius: 15px;
    background: #f6f1ff;
    cursor: pointer;
    font-size: 1.05rem;
}

.practice-empty {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
    padding: 26px;
    border: 2px dashed #b9a0df;
    border-radius: 22px;
    background: #faf7ff;
}

.practice-empty > span {
    display: grid;
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 18px;
    color: var(--white);
    background: #8a55d7;
    font-weight: 900;
}

.practice-empty h2 {
    margin: 0 0 6px;
}

.practice-empty p {
    margin: 0;
    color: var(--gray-500);
    line-height: 1.5;
}

.practice-empty a {
    display: inline-block;
    margin-top: 12px;
    color: #6d3fba;
    font-weight: 900;
}

.smart-practice-session,
.practice-finish {
    width: min(690px, 100%);
    margin: 32px auto 0;
    padding: clamp(23px, 5vw, 34px);
    border: 2px solid var(--gray-200);
    border-bottom-width: 7px;
    border-radius: 27px;
    background: var(--white);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.smart-practice-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.smart-practice-topbar button {
    padding: 8px 0;
    border: 0;
    color: var(--gray-500);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.smart-practice-topbar span {
    color: #6d3fba;
    font-size: 0.82rem;
    font-weight: 900;
}

.smart-practice-progress {
    height: 13px;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--gray-200);
}

.smart-practice-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #8a55d7;
    transition: width 180ms ease;
}

.practice-direction {
    margin: 34px 0 0;
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.practice-question {
    min-height: 88px;
    margin: 11px 0 25px;
    font-size: clamp(2rem, 7vw, 3rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.practice-answer-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.practice-answer-buttons button {
    min-height: 64px;
    padding: 12px 15px;
    border: 2px solid var(--gray-300);
    border-bottom-width: 5px;
    border-radius: 16px;
    color: var(--gray-800);
    background: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.practice-answer-buttons button:hover:not(:disabled) {
    border-color: #8a55d7;
    background: #faf7ff;
}

.practice-answer-buttons button.correct {
    border-color: var(--green);
    color: var(--green-dark);
    background: #effbdd;
}

.practice-answer-buttons button.wrong {
    border-color: var(--red);
    color: var(--red-dark);
    background: #ffeded;
}

.practice-typing-form label {
    display: block;
    margin-bottom: 9px;
    font-weight: 900;
}

.practice-typing-form > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.practice-typing-form input {
    min-width: 0;
    min-height: 58px;
    padding: 0 16px;
    border: 2px solid var(--gray-300);
    border-radius: 15px;
    font: inherit;
    font-size: 1.05rem;
}

.practice-typing-form button,
.practice-next-button,
.practice-finish button {
    min-height: 54px;
    padding: 0 21px;
    border: 0;
    border-radius: 15px;
    color: var(--white);
    background: #8a55d7;
    box-shadow: 0 5px 0 #6534ad;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.practice-correction {
    margin-top: 22px;
    padding: 20px;
    border: 2px solid var(--gray-200);
    border-radius: 19px;
    background: var(--gray-50);
}

.practice-correction.correct {
    border-color: #b7e790;
    background: #f5ffed;
}

.practice-correction.wrong {
    border-color: #ffc2c2;
    background: #fff5f5;
}

.practice-correction > p {
    margin: 0 0 13px;
    color: var(--green-dark);
    font-weight: 900;
}

.practice-correction.wrong > p {
    color: var(--red-dark);
}

.practice-answer-reveal strong,
.practice-answer-reveal span,
.practice-answer-reveal small {
    display: block;
}

.practice-answer-reveal strong {
    font-size: 1.45rem;
}

.practice-answer-reveal span {
    margin-top: 3px;
    color: #6d3fba;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.practice-answer-reveal small {
    margin-top: 5px;
    color: var(--gray-500);
    font-size: 0.92rem;
}

.practice-audio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 17px;
}

.practice-audio-actions button {
    min-height: 43px;
    padding: 0 13px;
    border: 2px solid #cbb5ee;
    border-bottom-width: 4px;
    border-radius: 13px;
    color: #6d3fba;
    background: var(--white);
    cursor: pointer;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 900;
}

.practice-next-button {
    width: 100%;
    margin-top: 18px;
}

.practice-finish {
    padding: 45px 34px;
    text-align: center;
}

.practice-finish-badge {
    display: grid;
    width: 82px;
    height: 82px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 25px;
    color: var(--white);
    background: #8a55d7;
    box-shadow: 0 7px 0 #6534ad;
    font-size: 2rem;
    font-weight: 900;
}

.practice-finish h2 {
    margin: 8px 0 10px;
    font-size: 2.2rem;
}

.practice-finish > p:not(.eyebrow) {
    max-width: 520px;
    margin: 0 auto;
    color: var(--gray-500);
    line-height: 1.55;
}

.practice-finish > div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

#practice-back-overview {
    border: 2px solid var(--gray-300);
    border-bottom-width: 5px;
    color: var(--gray-800);
    background: var(--white);
    box-shadow: none;
}

.practice-in-session .bottom-tabs {
    display: none;
}

@media (max-width: 720px) {
    .practice-hero {
        grid-template-columns: 1fr;
    }

    .practice-stack {
        display: none;
    }

    .practice-summary,
    .focus-item-list {
        grid-template-columns: 1fr;
    }

    .practice-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .practice-section-heading > p {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .practice-page .practice-shell {
        padding-top: 92px;
    }

    .practice-hero {
        padding: 28px 22px 33px;
        border-radius: 24px;
    }

    .practice-start-button {
        width: 100%;
    }

    .practice-answer-buttons {
        grid-template-columns: 1fr;
    }

    .practice-typing-form > div {
        grid-template-columns: 1fr;
    }

    .practice-typing-form button {
        width: 100%;
    }

    .practice-finish > div {
        align-items: stretch;
        flex-direction: column;
    }
}
