﻿:root {
    --exam-green-700: #1f7d3d;
    --exam-green-600: #2c9f4a;
    --exam-green-500: #48b364;
    --exam-border: rgba(31, 47, 30, 0.14);
    --exam-soft: #f6fff2;
    --exam-warn: #fff5df;
    --exam-warn-border: #f2d7a3;
    --exam-danger-bg: #fff2ef;
    --exam-danger-border: #efc0b7;
    --exam-shadow: 0 18px 34px rgba(31, 47, 30, 0.12);
}

* {
    box-sizing: border-box;
}

body.exam-page {
    margin: 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(237, 30, 121, 0.12), transparent 34%),
        radial-gradient(circle at 90% 82%, rgba(140, 198, 63, 0.2), transparent 36%),
        linear-gradient(168deg, #fff8fc 0%, #f5fff1 44%, #eff9ff 100%);
    color: #1f2f1e;
    overflow-x: hidden;
}

body.exam-page.is-drag-scrolling-intro {
    user-select: none;
}

body.exam-page main,
body.exam-page header,
body.exam-page section,
body.exam-page aside,
body.exam-page article,
body.exam-page nav,
body.exam-page div,
body.exam-page p,
body.exam-page span,
body.exam-page button,
body.exam-page a,
body.exam-page h1,
body.exam-page h2,
body.exam-page h3,
body.exam-page strong,
body.exam-page label,
body.exam-page input,
body.exam-page textarea {
    font-family: 'Nunito', sans-serif;
}

body.exam-page .btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    min-height: 40px;
    padding: 0.48rem 1rem;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

body.exam-page .btn:hover,
body.exam-page .btn:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

body.exam-page .btn.primary {
    color: #fff;
    border-color: rgba(27, 122, 52, 0.72);
    background: #1f8f3d;
    box-shadow: 0 12px 22px rgba(31, 132, 63, 0.26);
}

body.exam-page .btn.primary:hover,
body.exam-page .btn.primary:focus-visible {
    background: #177033;
    box-shadow: 0 16px 28px rgba(26, 110, 52, 0.3);
}

body.exam-page .btn.ghost {
    color: rgba(31, 47, 30, 0.82);
    border-color: rgba(31, 47, 30, 0.2);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 16px rgba(31, 47, 30, 0.1);
}

body.exam-page .btn.ghost:hover,
body.exam-page .btn.ghost:focus-visible {
    color: #1f2f1e;
    border-color: rgba(31, 47, 30, 0.3);
    background: rgba(243, 250, 239, 0.96);
}

body.exam-page .btn.small {
    min-height: 34px;
    font-size: 0.8rem;
    padding: 0.36rem 0.8rem;
}

.exam-shell {
    max-width: 1560px;
    margin: 0 auto;
    padding: 20px clamp(16px, 1.8vw, 28px) 84px;
}

.exam-shell>.site-header.exam-page-header {
    margin-top: 0;
}

@media (max-width: 768px) {
    .exam-page .site-header.exam-page-header .header-actions {
        margin-top: 0;
    }
    .exam-page .site-header.exam-page-header {
        gap: 0.4rem 0.6rem;
        padding: 0.6rem 0;
    }
}

.exam-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--exam-border);
    box-shadow: 0 14px 28px rgba(31, 47, 30, 0.12);
}

.exam-brand {
    display: inline-flex;
    align-items: center;
}

.exam-brand img {
    width: clamp(140px, 20vw, 180px);
    height: auto;
}

.exam-topnav {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.28rem;
    border-radius: 999px;
    background: rgba(31, 47, 30, 0.06);
}

.exam-topnav a {
    text-decoration: none;
    color: rgba(31, 47, 30, 0.74);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.42rem 0.86rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.exam-topnav a:hover,
.exam-topnav a:focus-visible {
    color: var(--exam-green-700);
    background: rgba(255, 255, 255, 0.88);
    outline: none;
}

.exam-topnav a.is-active {
    color: #fff;
    background: #289e43;
    box-shadow: 0 10px 18px rgba(40, 135, 64, 0.25);
}

.exam-main {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.exam-header {
    border-radius: 24px;
    border: 1px solid var(--exam-border);
    padding: 1.15rem 1.2rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--exam-shadow);
    display: grid;
    gap: 0.45rem;
}

.exam-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.exam-header h1 {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    line-height: 1.2;
    color: #1c3722;
}

.exam-header p {
    margin: 0;
    color: rgba(31, 47, 30, 0.74);
    font-weight: 600;
}

.exam-header__meta {
    font-size: 0.86rem;
}

.exam-header__code {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.34rem 0.8rem;
    background: var(--exam-warn);
    border: 1px dashed var(--exam-warn-border);
    color: #a45d00;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.exam-alert {
    border-radius: 22px;
    border: 1px solid var(--exam-border);
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    gap: 0.55rem;
    width: 100%;
    max-width: none;
}

.exam-alert h2 {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: 1.4rem;
}

.exam-alert p {
    margin: 0;
    color: rgba(31, 47, 30, 0.72);
    font-weight: 600;
}

.exam-alert--error {
    background: var(--exam-danger-bg);
    border-color: var(--exam-danger-border);
}

.exam-alert--error h2 {
    color: #9a2b1d;
}

.exam-alert--lock {
    background: var(--exam-warn);
    border-color: var(--exam-warn-border);
}

.exam-alert--lock h2 {
    color: #8b5200;
}

.exam-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.52fr) minmax(300px, 0.8fr);
    gap: 1.1rem;
    align-items: flex-start;
    padding-bottom: 116px;
}

@media (min-width: 1280px) {
    .exam-layout {
        grid-template-columns: minmax(0, 1.68fr) minmax(340px, 0.84fr);
        gap: 1.28rem;
    }
}

.listen-paper-choice-answer-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 44px));
    gap: 0.52rem;
    align-items: center;
    justify-content: start;
}

.listen-paper-choice-answer-option {
    width: 44px;
    min-height: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    border: 2px solid rgba(94, 113, 132, 0.58);
    background: rgba(237, 242, 248, 0.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.listen-paper-choice-answer-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.listen-paper-choice-answer-option .option-key,
.listen-paper-choice-answer-option .option-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #3a4452;
}

.listen-paper-choice-answer-option .option-key {
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    pointer-events: none;
}

.listen-paper-choice-answer-option.is-used {
    border-color: rgba(146, 156, 168, 0.64);
    background: rgba(228, 234, 240, 0.95);
}

.listen-paper-choice-answer-option.is-disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.listen-paper-choice-answer-option.is-disabled .option-key,
.listen-paper-choice-answer-option.is-disabled .option-text {
    color: #7c8897;
}

.listen-paper-choice-answer-option.is-selected,
.listen-paper-choice-answer-option:has(input:checked) {
    border-color: rgba(24, 120, 61, 0.66);
    background: rgba(205, 239, 217, 0.96);
}

.listen-paper-choice-answer-option.is-selected .option-key,
.listen-paper-choice-answer-option.is-selected .option-text,
.listen-paper-choice-answer-option:has(input:checked) .option-key,
.listen-paper-choice-answer-option:has(input:checked) .option-text {
    color: #1a6a35;
}

.exam-panel,
.question-sidebar {
    border-radius: 26px;
    border: 1px solid rgba(31, 47, 30, 0.16);
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 255, 250, 0.95));
    box-shadow: 0 20px 40px rgba(31, 47, 30, 0.14);
}

.exam-panel {
    padding: 1.08rem;
    display: grid;
    gap: 1.08rem;
}

.exam-section {
    display: none;
    gap: 0.95rem;
}

.exam-section.active {
    display: grid;
}

.exam-section h2 {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: 1.44rem;
    color: #245533;
}

#part-listen h2 {
    color: #b0175d;
}

.question-card {
    border: 1px solid rgba(31, 47, 30, 0.17);
    border-radius: 18px;
    padding: 1rem 0.95rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 253, 245, 0.98));
    display: grid;
    gap: 0.82rem;
    scroll-margin-top: 120px;
    box-shadow: 0 10px 22px rgba(31, 47, 30, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
    transform-origin: center;
}

.question-card:hover,
.question-card:focus-within,
.question-card.is-jump-highlight {
    border-color: var(--question-card-hover-border, rgba(39, 118, 62, 0.4));
    box-shadow: 0 18px 36px rgba(31, 47, 30, 0.16), 0 0 0 3px var(--question-card-hover-glow, rgba(140, 198, 63, 0.08));
    background: var(--question-card-hover-bg, linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 249, 235, 0.99)));
    transform: translateY(-2px) scale(1.01);
}

.question-card.empty {
    border-style: dashed;
    background: rgba(31, 47, 30, 0.03);
}

.question-card.answered {
    border-color: rgba(65, 153, 78, 0.38);
    box-shadow: 0 12px 24px rgba(40, 130, 62, 0.13);
}

.question-card.flagged {
    border-color: #efc27b;
    background: linear-gradient(180deg, #fffef8, #fff8ec);
}

.question-card.is-correct {
    border-color: rgba(76, 175, 80, 0.46);
    background: #f0faef;
}

.question-card.is-wrong {
    border-color: rgba(230, 102, 80, 0.46);
    background: #fff5f2;
}

@media (hover: hover) and (pointer: fine) {
    body:not(.exam-submitted-state):not(.exam-reviewing-answers) .exam-section:has(.question-card:hover) .question-card:not(:hover):not(:focus-within):not(.is-jump-highlight) {
        opacity: 0.68;
        filter: saturate(0.76) brightness(0.985) grayscale(0.06);
        transform: scale(0.992);
        box-shadow: 0 6px 14px rgba(31, 47, 30, 0.05);
    }
}

body:not(.exam-submitted-state):not(.exam-reviewing-answers) .exam-section:has(.question-card:focus-within, .question-card.is-jump-highlight) .question-card:not(:hover):not(:focus-within):not(.is-jump-highlight) {
    opacity: 0.72;
    filter: saturate(0.8) brightness(0.99) grayscale(0.04);
    transform: scale(0.994);
    box-shadow: 0 6px 14px rgba(31, 47, 30, 0.055);
}

.question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.72rem;
    padding-bottom: 0.12rem;
}

.question-head strong {
    font-size: 0.92rem;
    color: #24452e;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(44, 126, 61, 0.28);
    background: rgba(239, 252, 233, 0.9);
    padding: 0.2rem 0.62rem;
    letter-spacing: 0.01em;
}

.question-body {
    display: grid;
    gap: 0.94rem;
}

.question-card--speak {
    border-color: rgba(37, 116, 187, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 249, 255, 0.96));
}

.question-body--speak {
    gap: 0.75rem;
}

.speak-card {
    border-radius: 14px;
    border: 1px solid rgba(55, 121, 191, 0.26);
    background: linear-gradient(180deg, rgba(240, 248, 255, 0.94), rgba(235, 246, 255, 0.9));
    padding: 0.72rem 0.78rem;
    display: grid;
    gap: 0.75rem;
}

.read-group-sticky-header {
    position: sticky;
    top: 10px;
    z-index: 8;
    margin: 0.35rem 0 0.45rem;
    pointer-events: none;
}
.read-group-sticky-header__label {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.34rem 0.74rem;
    border-radius: 999px;
    border: 1px solid rgba(83, 127, 176, 0.42);
    background: rgba(234, 245, 255, 0.96);
    color: rgba(31, 77, 121, 0.95);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 14px rgba(41, 85, 132, 0.14);
}

.read-group-wrapper {
    display: grid;
    gap: 0;
    border-radius: 18px;
    border: 2px solid rgba(46, 139, 87, 0.34);
    background: #fff;
    padding: 0;
    box-shadow: 0 10px 22px rgba(31, 47, 30, 0.08);
    overflow: visible;
}

.read-group-wrapper--part-break {
    position: relative;
    --part-divider-gap: 2.08rem;
    --part-divider-height: 1.56rem;
    --part-divider-visual-offset: 0.56rem;
    margin-top: calc((var(--part-divider-gap) * 2) + var(--part-divider-height));
}

.read-group-wrapper > .read-group-sticky-header {
    position: sticky;
    top: 0;
    z-index: 8;
    margin: 0;
    padding: 0.42rem 0.82rem;
    background: rgba(233, 248, 239, 0.92);
    border-bottom: 1px solid rgba(46, 139, 87, 0.24);
    pointer-events: none;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.read-group-wrapper > .read-group-intro__title {
    position: sticky;
    top: calc(var(--read-group-header-height, 0px) + 0.42rem);
    z-index: 7;
    margin: 0.56rem 0.72rem 0.5rem;
    box-shadow: 0 10px 22px rgba(237, 30, 121, 0.18);
}

.part-transition-divider {
    --part-divider-base: #d64286;
    --part-divider-line: rgba(214, 66, 134, 0.28);
    --part-divider-glow: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    min-height: var(--part-divider-height, 1.56rem);
    gap: 0.92rem;
    padding: 0 0.82rem;
    pointer-events: none;
}

.part-transition-divider::before,
.part-transition-divider::after {
    content: "";
    flex: 1;
    min-width: 42px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--part-divider-line), rgba(255, 255, 255, 0));
}

.part-transition-divider__text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-family: 'Baloo 2', cursive;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: none;
    color: var(--part-divider-base);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.48);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .part-transition-divider__text {
        color: transparent;
        background-image: linear-gradient(
            115deg,
            var(--part-divider-base) 0%,
            var(--part-divider-base) 36%,
            var(--part-divider-glow) 50%,
            var(--part-divider-base) 64%,
            var(--part-divider-base) 100%
        );
        background-size: 220% 100%;
        background-position: 140% 50%;
        -webkit-background-clip: text;
        background-clip: text;
        animation: partDividerLightSweep 2.6s linear infinite;
    }
}

.part-transition-divider--listen,
.read-group-wrapper--part-break > .part-transition-divider,
.speak-group-wrapper--part-break > .part-transition-divider {
    margin-bottom: 0.92rem;
}

.part-transition-divider--listen {
    margin-top: 2.08rem;
    margin-bottom: 2.08rem;
}

.read-group-wrapper--part-break > .part-transition-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(calc(-100% - var(--part-divider-gap) - var(--part-divider-visual-offset, 0px)));
    margin: 0;
    z-index: 3;
}

.speak-group-wrapper--part-break > .part-transition-divider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(calc(-100% - var(--part-divider-gap) - var(--part-divider-visual-offset, 0px)));
    margin: 0;
    z-index: 3;
}

.part-transition-divider--listen[data-listen-level="movers"] {
    --part-divider-base: #178f5f;
    --part-divider-line: rgba(23, 143, 95, 0.28);
}

.part-transition-divider--listen[data-listen-level="flyers"] {
    --part-divider-base: #5866d6;
    --part-divider-line: rgba(88, 102, 214, 0.3);
}

#part-listen .listen-group-wrapper + .listen-group-wrapper {
    margin-top: 3.1rem;
}

.read-group-wrapper[data-read-level="movers"] > .part-transition-divider {
    --part-divider-base: #178f5f;
    --part-divider-line: rgba(23, 143, 95, 0.28);
}

.read-group-wrapper[data-read-level="flyers"] > .part-transition-divider {
    --part-divider-base: #5866d6;
    --part-divider-line: rgba(88, 102, 214, 0.3);
}

.speak-group-wrapper[data-speak-level="movers"] > .part-transition-divider {
    --part-divider-base: #178f5f;
    --part-divider-line: rgba(23, 143, 95, 0.28);
}

.speak-group-wrapper[data-speak-level="flyers"] > .part-transition-divider {
    --part-divider-base: #5866d6;
    --part-divider-line: rgba(88, 102, 214, 0.3);
}

@keyframes partDividerLightSweep {
    0% {
        background-position: 140% 50%;
    }
    100% {
        background-position: -40% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .part-transition-divider__text {
        animation: none !important;
        background-position: 50% 50%;
    }

    .question-grid-part-label.is-active-part {
        animation: none !important;
        background-position: 50% 50%, 0 0;
    }
}

.read-group-wrapper > .read-group-sticky-header .read-group-sticky-header__label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px !important;
    border: 1px solid rgba(35, 120, 72, 0.58) !important;
    background: linear-gradient(180deg, rgba(232, 249, 238, 0.98), rgba(205, 241, 218, 0.98)) !important;
    color: #1c643f !important;
    box-shadow: 0 5px 12px rgba(35, 120, 72, 0.16);
    padding: 0.2rem 0.54rem !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase !important;
}

.read-group-wrapper > .read-group-sticky-header .read-group-sticky-header__label[data-read-level="starters"] {
    border-color: rgba(237, 30, 121, 0.28) !important;
    background: rgba(237, 30, 121, 0.1) !important;
    color: #b0175d !important;
}

.read-group-wrapper > .read-group-sticky-header .read-group-sticky-header__label[data-read-level="movers"] {
    border-color: rgba(23, 143, 95, 0.3) !important;
    background: rgba(23, 143, 95, 0.12) !important;
    color: #0f6f49 !important;
}

.read-group-wrapper > .read-group-sticky-header .read-group-sticky-header__label[data-read-level="flyers"] {
    border-color: rgba(88, 102, 214, 0.34) !important;
    background: rgba(88, 102, 214, 0.11) !important;
    color: #3b4ab0 !important;
}

.read-group-wrapper > .question-card,
.read-group-wrapper > .question-card.question-card--yesno,
.read-group-wrapper > .question-card.question-card--vocab,
.read-group-wrapper > .question-card.question-card--wordbank,
.read-group-wrapper > .question-card.question-card--rowbank,
.read-group-wrapper > .question-card.question-card--scene-yesno,
.read-group-wrapper > .question-card.question-card--scene-choice,
.read-group-wrapper > .question-card.question-card--dialog-bank,
.read-group-wrapper > .question-card.question-card--letter-sort {
    border: none !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(250, 253, 255, 0.62), rgba(244, 249, 255, 0.42)) !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0.56rem 0.72rem;
    scroll-margin-top: 120px;
}

.read-group-wrapper > .question-card + .question-card {
    border-top: 0 !important;
    background-image: none;
    padding-top: 0.72rem;
    margin-top: 0.28rem;
}

.read-yesno-group-intro {
    padding: 0.56rem 0.72rem 0.4rem;
    display: grid;
    gap: 0.58rem;
    border-bottom: 1px solid rgba(83, 127, 176, 0.10);
}

.read-vocab-group-intro {
    padding: 0.56rem 0.72rem 0.28rem;
    display: grid;
    gap: 0.58rem;
    border-bottom: 1px solid rgba(83, 127, 176, 0.10);
}

.read-wordbank-group-intro {
    padding: 0.56rem 0.72rem 0.28rem;
    display: grid;
    gap: 0.58rem;
    border-bottom: 1px solid rgba(83, 127, 176, 0.10);
}

.read-scene-yn-group-intro {
    padding: 0.56rem 0.72rem 0.28rem;
    display: grid;
    gap: 0.58rem;
    border-bottom: 1px solid rgba(83, 127, 176, 0.10);
}

.read-scene-choice-group-intro {
    padding: 0.56rem 0.72rem 0.28rem;
    display: grid;
    gap: 0.58rem;
    border-bottom: 1px solid rgba(83, 127, 176, 0.10);
}

.read-dialog-bank-group-intro {
    padding: 0.56rem 0.72rem 0.28rem;
    display: grid;
    gap: 0.58rem;
    border-bottom: 1px solid rgba(83, 127, 176, 0.10);
}

.read-letter-sort-group-intro {
    padding: 0.56rem 0.72rem 0.28rem;
    display: grid;
    gap: 0.58rem;
    border-bottom: 1px solid rgba(83, 127, 176, 0.10);
}

.read-rowbank-group-intro {
    padding: 0.56rem 0.72rem 0.28rem;
    display: grid;
    gap: 0.58rem;
    border-bottom: 1px solid rgba(83, 127, 176, 0.10);
}

.read-group-wrapper > .read-yesno-group-intro,
.read-group-wrapper > .read-vocab-group-intro,
.read-group-wrapper > .read-wordbank-group-intro,
.read-group-wrapper > .read-rowbank-group-intro,
.read-group-wrapper > .read-scene-yn-group-intro,
.read-group-wrapper > .read-scene-choice-group-intro,
.read-group-wrapper > .read-dialog-bank-group-intro,
.read-group-wrapper > .read-letter-sort-group-intro {
    position: static;
    top: auto;
    z-index: auto;
    background: #f7fdf9;
    backdrop-filter: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-width: auto;
    scrollbar-color: auto;
    cursor: default;
}

.read-group-wrapper > .read-yesno-group-intro.read-group-intro--with-promoted-title,
.read-group-wrapper > .read-vocab-group-intro.read-group-intro--with-promoted-title,
.read-group-wrapper > .read-wordbank-group-intro.read-group-intro--with-promoted-title,
.read-group-wrapper > .read-rowbank-group-intro.read-group-intro--with-promoted-title,
.read-group-wrapper > .read-scene-yn-group-intro.read-group-intro--with-promoted-title,
.read-group-wrapper > .read-scene-choice-group-intro.read-group-intro--with-promoted-title,
.read-group-wrapper > .read-dialog-bank-group-intro.read-group-intro--with-promoted-title,
.read-group-wrapper > .read-letter-sort-group-intro.read-group-intro--with-promoted-title {
    padding-top: 0;
}

.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content {
    cursor: grab !important;
    padding-bottom: 1.9rem;
}

.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content *,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content *,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content *,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content *,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content *,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content *,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content *,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content * {
    cursor: inherit !important;
}

.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content input:not([type="radio"]):not([type="checkbox"]),
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content input:not([type="radio"]):not([type="checkbox"]),
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content input:not([type="radio"]):not([type="checkbox"]),
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content input:not([type="radio"]):not([type="checkbox"]),
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content input:not([type="radio"]):not([type="checkbox"]),
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content input:not([type="radio"]):not([type="checkbox"]),
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content input:not([type="radio"]):not([type="checkbox"]),
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content input:not([type="radio"]):not([type="checkbox"]),
.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content textarea,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content textarea,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content textarea,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content textarea,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content textarea,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content textarea,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content textarea,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content textarea,
.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content [contenteditable="true"],
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content [contenteditable="true"],
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content [contenteditable="true"],
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content [contenteditable="true"],
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content [contenteditable="true"],
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content [contenteditable="true"],
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content [contenteditable="true"],
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content [contenteditable="true"] {
    cursor: text !important;
}

.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content a,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content a,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content a,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content a,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content a,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content a,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content a,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content a,
.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content button,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content button,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content button,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content button,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content button,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content button,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content button,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content button,
.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content label,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content label,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content label,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content label,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content label,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content label,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content label,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content label,
.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content select,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content select,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content select,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content select,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content select,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content select,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content select,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content select,
.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content summary,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content summary,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content summary,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content summary,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content summary,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content summary,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content summary,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content summary,
.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content audio,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content audio,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content audio,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content audio,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content audio,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content audio,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content audio,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content audio,
.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content video,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content video,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content video,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content video,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content video,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content video,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content video,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content video,
.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content input[type="radio"],
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content input[type="radio"],
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content input[type="radio"],
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content input[type="radio"],
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content input[type="radio"],
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content input[type="radio"],
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content input[type="radio"],
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content input[type="radio"],
.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content input[type="checkbox"],
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content input[type="checkbox"],
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content input[type="checkbox"],
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content input[type="checkbox"],
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content input[type="checkbox"],
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content input[type="checkbox"],
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content input[type="checkbox"],
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content input[type="checkbox"],
.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content .option-item,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content .option-item,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content .option-item,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content .option-item,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content .option-item,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content .option-item,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content .option-item,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content .option-item,
.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content .mark-later,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content .mark-later,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content .mark-later,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content .mark-later,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content .mark-later,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content .mark-later,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content .mark-later,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content .mark-later,
.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content [role="button"],
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content [role="button"],
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content [role="button"],
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content [role="button"],
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content [role="button"],
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content [role="button"],
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content [role="button"],
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content [role="button"] {
    cursor: pointer !important;
}

.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content.is-drag-scrolling,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content.is-drag-scrolling,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content.is-drag-scrolling,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content.is-drag-scrolling,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content.is-drag-scrolling,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content.is-drag-scrolling,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content.is-drag-scrolling,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content.is-drag-scrolling {
    cursor: grabbing;
}

.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content::after,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content::after,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content::after,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content::after,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content::after,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content::after,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content::after,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content::after {
    content: "↕ Cuộn";
    position: absolute;
    top: 0.34rem;
    right: 0.5rem;
    z-index: 2;
    pointer-events: none;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: rgba(38, 95, 57, 0.86);
    border: 1px solid rgba(96, 148, 108, 0.38);
    border-radius: 999px;
    padding: 0.12rem 0.4rem;
    background: rgba(244, 251, 245, 0.92);
    box-shadow: 0 3px 8px rgba(31, 47, 30, 0.1);
}

.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content.show-scroll-down-hint::before,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content.show-scroll-down-hint::before,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content.show-scroll-down-hint::before,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content.show-scroll-down-hint::before,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content.show-scroll-down-hint::before,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content.show-scroll-down-hint::before,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content.show-scroll-down-hint::before,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content.show-scroll-down-hint::before {
    content: "Cuộn xuống (hoặc kéo) để xem hết nội dung";
    position: absolute;
    left: 50%;
    bottom: 0.56rem;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
    letter-spacing: 0.01em;
    color: #ffffff;
    border: 1.5px solid rgba(198, 51, 122, 0.72);
    border-radius: 999px;
    padding: 0.24rem 0.82rem;
    background: linear-gradient(180deg, rgba(247, 86, 156, 0.98), rgba(227, 42, 124, 0.98));
    box-shadow: 0 8px 18px rgba(164, 27, 88, 0.32);
    animation: scroll-hint-blink 1.2s ease-in-out infinite;
}

@keyframes scroll-hint-blink {
    0%,
    100% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }
}

.read-group-wrapper > .read-yesno-group-intro::-webkit-scrollbar,
.read-group-wrapper > .read-vocab-group-intro::-webkit-scrollbar,
.read-group-wrapper > .read-wordbank-group-intro::-webkit-scrollbar,
.read-group-wrapper > .read-rowbank-group-intro::-webkit-scrollbar,
.read-group-wrapper > .read-scene-yn-group-intro::-webkit-scrollbar,
.read-group-wrapper > .read-scene-choice-group-intro::-webkit-scrollbar,
.read-group-wrapper > .read-dialog-bank-group-intro::-webkit-scrollbar,
.read-group-wrapper > .read-letter-sort-group-intro::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.read-group-wrapper > .read-yesno-group-intro::-webkit-scrollbar-track,
.read-group-wrapper > .read-vocab-group-intro::-webkit-scrollbar-track,
.read-group-wrapper > .read-wordbank-group-intro::-webkit-scrollbar-track,
.read-group-wrapper > .read-rowbank-group-intro::-webkit-scrollbar-track,
.read-group-wrapper > .read-scene-yn-group-intro::-webkit-scrollbar-track,
.read-group-wrapper > .read-scene-choice-group-intro::-webkit-scrollbar-track,
.read-group-wrapper > .read-dialog-bank-group-intro::-webkit-scrollbar-track,
.read-group-wrapper > .read-letter-sort-group-intro::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(233, 241, 233, 0.9);
}

.read-group-wrapper > .read-yesno-group-intro::-webkit-scrollbar-thumb,
.read-group-wrapper > .read-vocab-group-intro::-webkit-scrollbar-thumb,
.read-group-wrapper > .read-wordbank-group-intro::-webkit-scrollbar-thumb,
.read-group-wrapper > .read-rowbank-group-intro::-webkit-scrollbar-thumb,
.read-group-wrapper > .read-scene-yn-group-intro::-webkit-scrollbar-thumb,
.read-group-wrapper > .read-scene-choice-group-intro::-webkit-scrollbar-thumb,
.read-group-wrapper > .read-dialog-bank-group-intro::-webkit-scrollbar-thumb,
.read-group-wrapper > .read-letter-sort-group-intro::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(117, 158, 124, 0.78);
}

.read-group-wrapper > .read-yesno-group-intro::-webkit-scrollbar-thumb:hover,
.read-group-wrapper > .read-vocab-group-intro::-webkit-scrollbar-thumb:hover,
.read-group-wrapper > .read-wordbank-group-intro::-webkit-scrollbar-thumb:hover,
.read-group-wrapper > .read-rowbank-group-intro::-webkit-scrollbar-thumb:hover,
.read-group-wrapper > .read-scene-yn-group-intro::-webkit-scrollbar-thumb:hover,
.read-group-wrapper > .read-scene-choice-group-intro::-webkit-scrollbar-thumb:hover,
.read-group-wrapper > .read-dialog-bank-group-intro::-webkit-scrollbar-thumb:hover,
.read-group-wrapper > .read-letter-sort-group-intro::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 136, 102, 0.9);
}

.read-group-wrapper > .question-card .question-head {
    margin-bottom: 0.02rem;
    gap: 0.46rem;
}

.read-group-wrapper > .question-card .question-head::before {
    content: "";
    order: 2;
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(42, 87, 132, 0.48), rgba(42, 87, 132, 0.2));
    border-radius: 999px;
}

.read-group-wrapper > .question-card .question-head strong {
    order: 1;
}

.read-group-wrapper > .question-card .question-head .mark-later {
    order: 3;
}

.read-group-wrapper > .question-card .question-head strong {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(31, 77, 121, 0.95);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
}

.read-group-wrapper > .question-card .mark-later {
    border-width: 1px;
    padding: 0.18rem 0.54rem;
    font-size: 0.68rem;
}

.read-group-wrapper > .question-card .question-body {
    gap: 0.48rem;
}

.read-reference-details {
    margin: 0 0 0.56rem;
    border: 1px dashed rgba(237, 30, 121, 0.28);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 248, 252, 0.98), rgba(255, 242, 248, 0.94));
    overflow: hidden;
}

.read-reference-details[open] {
    box-shadow: 0 8px 18px rgba(176, 23, 93, 0.12);
}

.read-reference-details__summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.44rem;
    cursor: pointer;
    padding: 0.46rem 0.72rem;
    color: #97124f;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
    user-select: none;
}

.read-reference-details__summary::-webkit-details-marker {
    display: none;
}

.read-reference-details__summary::before {
    content: "▸";
    font-size: 0.86rem;
    line-height: 1;
    transition: transform 0.18s ease;
}

.read-reference-details[open] > .read-reference-details__summary::before {
    transform: rotate(90deg);
}

.read-reference-panel {
    display: grid;
    gap: 0.62rem;
    padding: 0 0.72rem 0.72rem;
    border-top: 1px solid rgba(237, 30, 121, 0.14);
    max-height: min(46vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
}

.read-reference-panel__title {
    margin: 0.62rem 0 0;
}

.read-reference-panel .read-reference-panel__title,
.read-reference-panel .read-group-intro__title {
    position: static !important;
    top: auto !important;
    margin: 0.62rem 0 0 !important;
    box-shadow: none !important;
}

.read-reference-panel .read-yesno-group-intro,
.read-reference-panel .read-vocab-group-intro,
.read-reference-panel .read-wordbank-group-intro,
.read-reference-panel .read-rowbank-group-intro,
.read-reference-panel .read-scene-yn-group-intro,
.read-reference-panel .read-scene-choice-group-intro,
.read-reference-panel .read-dialog-bank-group-intro,
.read-reference-panel .read-letter-sort-group-intro,
.read-reference-panel .read-reference-panel__content {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    cursor: auto !important;
    pointer-events: auto !important;
}

.read-reference-panel .read-yesno-group-intro::after,
.read-reference-panel .read-vocab-group-intro::after,
.read-reference-panel .read-wordbank-group-intro::after,
.read-reference-panel .read-rowbank-group-intro::after,
.read-reference-panel .read-scene-yn-group-intro::after,
.read-reference-panel .read-scene-choice-group-intro::after,
.read-reference-panel .read-dialog-bank-group-intro::after,
.read-reference-panel .read-letter-sort-group-intro::after,
.read-reference-panel .read-yesno-group-intro::before,
.read-reference-panel .read-vocab-group-intro::before,
.read-reference-panel .read-wordbank-group-intro::before,
.read-reference-panel .read-rowbank-group-intro::before,
.read-reference-panel .read-scene-yn-group-intro::before,
.read-reference-panel .read-scene-choice-group-intro::before,
.read-reference-panel .read-dialog-bank-group-intro::before,
.read-reference-panel .read-letter-sort-group-intro::before {
    content: none !important;
    display: none !important;
}

.read-reference-panel .media-audio--sticky {
    position: static !important;
    top: auto !important;
}

/* Ensure all content in reference panel doesn't block scrolling */
.read-reference-panel * {
    pointer-events: auto !important;
}

/* Ensure images and media items can be scrolled over */
.read-reference-panel img,
.read-reference-panel video,
.read-reference-panel audio {
    pointer-events: auto;
}

.read-group-wrapper > .question-card .question-text--boxed + .read-vocab-answer {
    margin-top: 0.34rem;
}

.read-group-wrapper > .question-card .read-vocab-answer {
    gap: 0.4rem;
}

.read-group-wrapper > .question-card .question-text--boxed {
    padding: 0.6rem 0.68rem;
    border-radius: 10px;
}

.read-group-wrapper > .question-card:last-child,
.read-group-wrapper > .question-card:last-of-type {
    border-bottom: none !important;
}

.read-group-wrapper > .question-card:hover {
    border-color: transparent !important;
    box-shadow: none !important;
    background: rgba(240, 248, 255, 0.14) !important;
}

/* Compact vocab follow-up cards: just header row + answer input inline */
.read-group-wrapper > .question-card--vocab-follow {
    padding: 0.38rem 0.72rem !important;
}
.read-group-wrapper > .question-card--vocab-follow .question-head {
    margin-bottom: 0;
}
.read-group-wrapper > .question-card--vocab-follow .question-body {
    gap: 0.32rem;
}
.read-group-wrapper > .question-card--vocab-follow .read-vocab-answer > span {
    font-size: 0.78rem;
}

.read-group-wrapper--yesno { border-color: rgba(46, 139, 87, 0.34); }
.read-group-wrapper--yesno > .read-group-sticky-header { background: rgba(231, 247, 238, 0.97); }
.read-group-wrapper--vocab { border-color: rgba(46, 139, 87, 0.34); }
.read-group-wrapper--vocab > .read-group-sticky-header { background: rgba(231, 247, 238, 0.97); }
.read-group-wrapper--wordbank { border-color: rgba(46, 139, 87, 0.34); }
.read-group-wrapper--wordbank > .read-group-sticky-header { background: rgba(234, 248, 239, 0.97); }
.read-group-wrapper--row_bank { border-color: rgba(46, 139, 87, 0.36); }
.read-group-wrapper--row_bank > .read-group-sticky-header { background: rgba(233, 247, 238, 0.97); }
.read-group-wrapper--scene_yesno { border-color: rgba(46, 139, 87, 0.34); }
.read-group-wrapper--scene_yesno > .read-group-sticky-header { background: rgba(232, 247, 238, 0.97); }
.read-group-wrapper--scene_choice { border-color: rgba(46, 139, 87, 0.34); }
.read-group-wrapper--scene_choice > .read-group-sticky-header { background: rgba(231, 248, 238, 0.97); }
.read-group-wrapper--dialog_bank { border-color: rgba(46, 139, 87, 0.35); }
.read-group-wrapper--dialog_bank > .read-group-sticky-header { background: rgba(232, 248, 239, 0.97); }
.read-group-wrapper--letter_sort { border-color: rgba(46, 139, 87, 0.34); }
.read-group-wrapper--letter_sort > .read-group-sticky-header { background: rgba(234, 248, 240, 0.97); }

.read-group-wrapper > .read-group-sticky-header[data-read-level="starters"] {
    background: rgb(252, 235, 244) !important;
    border-bottom-color: rgba(237, 30, 121, 0.22) !important;
}

.read-group-wrapper > .read-group-sticky-header[data-read-level="movers"] {
    background: rgb(231, 247, 238) !important;
    border-bottom-color: rgba(23, 143, 95, 0.24) !important;
}

.read-group-wrapper > .read-group-sticky-header[data-read-level="flyers"] {
    background: rgb(236, 240, 255) !important;
    border-bottom-color: rgba(88, 102, 214, 0.24) !important;
}

.read-group-wrapper > .question-card.answered {
    border: none !important;
    box-shadow: none !important;
    background: rgba(240, 253, 240, 0.3) !important;
}

.read-group-wrapper > .question-card.flagged {
    border: none !important;
    box-shadow: none !important;
    background: rgba(255, 248, 230, 0.35) !important;
}

.read-group-wrapper > .question-card.is-correct {
    border: none !important;
    box-shadow: none !important;
    background: rgba(240, 250, 239, 0.35) !important;
}

.read-group-wrapper > .question-card.is-wrong {
    border: none !important;
    box-shadow: none !important;
    background: rgba(255, 245, 242, 0.35) !important;
}

.speak-group-intro {
    padding: 0.56rem 0.72rem 0.4rem;
    display: grid;
    gap: 0.58rem;
    border-bottom: 1px solid rgba(237, 30, 121, 0.12);
}
.speak-group-intro .question-text--boxed {
    border-color: rgba(237, 30, 121, 0.32);
    border-style: solid;
    background: linear-gradient(180deg, rgba(255, 245, 250, 0.98), rgba(255, 232, 244, 0.94));
}
.speak-group-intro .media-block.media-image {
    margin: 0 -0.72rem;
}
.speak-group-intro .media-block.media-image img {
    width: 100%;
    display: block;
    border-radius: 0;
    height: auto;
    object-fit: contain;
    object-position: center top;
    max-height: min(62vh, 520px);
}

.speak-image-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    display: inline-block;
    padding: 0.18em 0.6em;
    border-radius: 0 0 0.4rem 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    letter-spacing: 0.01em;
}
.media-block.media-image {
    position: relative;
}

.speak-group-intro--gallery {
    gap: 0.72rem;
}

.speak-group-intro--part2-flyers {
    gap: 0.9rem;
}

.speak-part2-flyers-image {
    margin-bottom: 0;
}

.speak-part2-flyers-image img {
    background: #fff;
}

.speak-part2-flyers-tables {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
}

.speak-part2-flyers-tables.has-two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.speak-part2-flyers-table {
    min-width: 0;
}

.speak-part2-flyers-table__board {
    overflow: hidden;
    border-radius: 18px;
    border: 1.5px solid rgba(132, 94, 25, 0.26);
    background: linear-gradient(180deg, #f8e8ba 0%, #ecd08b 100%);
    box-shadow: 0 14px 24px rgba(73, 54, 14, 0.12);
}

.speak-part2-flyers-table__title {
    min-height: 3.1rem;
    padding: 0.56rem 0.92rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #674514;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.speak-part2-flyers-table__title > * {
    width: 100%;
    margin: 0;
}

.speak-part2-flyers-table__content-title {
    padding: 0 0.92rem 0.7rem;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: #3f2a0b;
}

.speak-part2-flyers-table__content-title > * {
    margin: 0;
}

.speak-part2-flyers-table__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-top: 1px solid rgba(129, 93, 31, 0.26);
}

.speak-part2-flyers-table__cell {
    min-height: 56px;
    padding: 0.7rem 0.82rem;
    border-top: 1px solid rgba(129, 93, 31, 0.22);
    color: #3e2a0d;
    font-size: 0.95rem;
    line-height: 1.5;
    background: rgba(255, 251, 236, 0.82);
}

.speak-part2-flyers-table__grid:not(.has-rows) .speak-part2-flyers-table__cell {
    min-height: 64px;
}

.speak-part2-flyers-table__cell--left {
    border-right: 1px solid rgba(129, 93, 31, 0.22);
    background: rgba(255, 248, 217, 0.92);
    font-weight: 700;
}

.speak-part2-flyers-section-title {
    margin: 0;
    padding: 0.8rem 0.9rem 0.5rem;
    color: #3244a3;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.speak-group-intro__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.72rem;
    align-items: stretch;
}

.speak-group-intro__gallery-item {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    border: 1px solid rgba(83, 127, 176, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.95));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.speak-group-intro__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.speak-image-choice {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.72rem;
    margin-bottom: 0.78rem;
}

.speak-image-choice.speak-image-choice--part3-movers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.speak-image-choice.speak-image-choice--part3-flyers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.speak-image-choice.speak-image-choice--part3-flyers > .speak-image-choice__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: min(100%, calc((100% - 0.72rem) / 2));
    justify-self: center;
}

.speak-image-choice__item {
    border: 2px solid rgba(83, 127, 176, 0.28);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
    aspect-ratio: 1 / 1;
    padding: 0.36rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.34rem;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.speak-image-choice__item img {
    width: 100%;
    height: calc(100% - 1.2rem);
    object-fit: contain;
    display: block;
}

.speak-image-choice__item--point {
    justify-content: center;
    gap: 0.5rem;
    border-color: rgba(201, 148, 77, 0.34);
    background: linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(255, 243, 226, 0.95));
}

.speak-image-choice__item--point-tool {
    min-height: 92px;
}

.speak-image-choice__label {
    flex: 1;
    width: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    color: rgba(114, 76, 28, 0.92);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
    padding: 0.4rem;
}

.speak-image-choice__point-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px 999px 999px 0;
    transform: rotate(-45deg);
    background: linear-gradient(180deg, #ffbe55, #f28a18);
    box-shadow: 0 10px 20px rgba(170, 93, 19, 0.26);
    position: relative;
    flex: 0 0 auto;
}

.speak-image-choice__point-icon::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
}

.speak-part3-starters-main-image {
    margin: 0;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(86, 145, 196, 0.3);
    background: linear-gradient(180deg, rgba(247, 252, 255, 0.96), rgba(237, 246, 255, 0.94));
}

.speak-part3-starters-main-image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    display: block;
}

.speak-part3-starters-main-image__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.speak-part3-starters-main-image.is-picking {
    cursor: crosshair;
    box-shadow: 0 0 0 4px rgba(237, 30, 121, 0.12);
}

.question-card--speak.is-picking-scene .speak-card {
    box-shadow: 0 0 0 3px rgba(237, 30, 121, 0.16);
}

.speak-part3-starters-main-image__cursor-hint {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    max-width: min(260px, calc(100vw - 32px));
    padding: 0.34rem 0.72rem;
    border-radius: 18px;
    border: 1px solid rgba(237, 30, 121, 0.34);
    background: rgba(255, 255, 255, 0.96);
    color: #9f1854;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: normal;
    box-shadow: 0 10px 22px rgba(57, 20, 37, 0.16);
    pointer-events: none;
    backdrop-filter: blur(6px);
}

.speak-part3-starters-main-image__cursor-hint[hidden] {
    display: none;
}

.speak-part3-starters-main-image__marker {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border: 0;
    background: transparent;
    padding: 0;
    display: block;
    pointer-events: auto;
    cursor: pointer;
    overflow: visible;
}

.speak-part3-starters-main-image__marker-badge {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #ef2a7b;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 26px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(109, 26, 66, 0.24);
}

.speak-part3-starters-main-image__marker-thumb,
.speak-part3-starters-main-image__marker-point {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 20px rgba(31, 56, 95, 0.18);
    overflow: hidden;
    border: 2px solid rgba(89, 130, 178, 0.24);
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
}

.speak-part3-starters-main-image__marker-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.speak-part3-starters-main-image__marker-point {
    position: relative;
    border-radius: 999px 999px 999px 0;
    transform: rotate(-45deg);
    background: linear-gradient(180deg, #ffbe55, #f28a18);
    border-color: rgba(176, 99, 22, 0.16);
}

.speak-part3-starters-main-image__marker-point::before {
    content: "";
    position: absolute;
    inset: 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
}

.speak-part3-starters-main-image__marker.is-correct .speak-part3-starters-main-image__marker-badge {
    background: #2e7d32;
}

.speak-part3-starters-main-image__marker.is-wrong .speak-part3-starters-main-image__marker-badge {
    background: #c62828;
}

.speak-part3-starters-main-image__correct-region {
    position: absolute;
    border: 2px dashed rgba(46, 125, 50, 0.9);
    background: rgba(76, 175, 80, 0.1);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
    pointer-events: auto;
    cursor: pointer;
}

.speak-part3-starters-main-image__correct-callout {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.24rem 0.34rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 22px rgba(42, 81, 44, 0.18);
    max-width: min(220px, 70vw);
}

.speak-part3-starters-main-image__correct-badge {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #2e7d32;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 24px;
    text-align: center;
    flex: 0 0 auto;
}

.speak-part3-starters-main-image__correct-thumb {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(98, 137, 183, 0.26);
    flex: 0 0 auto;
}

.speak-part3-starters-main-image__correct-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.speak-part3-starters-main-image__correct-text {
    font-size: 0.76rem;
    font-weight: 800;
    color: #28502f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.speak-image-choice__tick {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(109, 126, 150, 0.72);
    background: #fff;
    position: relative;
    flex: 0 0 auto;
}

.speak-image-choice__tick::before {
    content: "";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    opacity: 0;
}

.speak-image-choice__item:hover,
.speak-image-choice__item:focus-visible {
    border-color: rgba(236, 30, 121, 0.58);
    box-shadow: 0 9px 20px rgba(45, 68, 96, 0.18);
    transform: translateY(-1px);
    outline: none;
}

.speak-image-choice__item.is-selected {
    border-color: rgba(46, 125, 50, 0.82);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.speak-image-choice__item.is-selected .speak-image-choice__tick {
    border-color: rgba(46, 125, 50, 0.92);
    background: rgba(46, 125, 50, 0.92);
}

.speak-image-choice__item.is-selected .speak-image-choice__tick::before {
    content: "\2713";
    opacity: 1;
}

@media (max-width: 960px) {
    .speak-part2-flyers-tables.has-two-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .speak-group-intro__gallery,
    .exam-speak-gallery-preview__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .speak-image-choice {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .speak-part2-flyers-table__cell {
        min-height: 48px;
        padding: 0.62rem 0.68rem;
        font-size: 0.9rem;
    }

    .speak-group-intro__gallery,
    .exam-speak-gallery-preview__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .speak-image-choice {
        grid-template-columns: minmax(0, 1fr);
    }

    .speak-image-choice.speak-image-choice--part3-movers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .speak-image-choice.speak-image-choice--part3-flyers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.exam-speak-gallery-preview {
    margin-top: 0.7rem;
    padding: 0.8rem;
    border-radius: 16px;
    border: 1px dashed rgba(91, 151, 98, 0.42);
    background: linear-gradient(180deg, rgba(246, 255, 242, 0.96), rgba(236, 249, 230, 0.92));
    display: grid;
    gap: 0.72rem;
}

.exam-speak-gallery-links {
    display: grid;
    gap: 0.58rem;
}

.exam-speak-gallery-links__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.56rem;
    align-items: center;
}

.exam-speak-gallery-links__row input[type="text"] {
    min-width: 0;
}

.exam-speak-gallery-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.72rem;
}

.exam-speak-gallery-preview__item {
    border-radius: 16px;
    border: 1px solid rgba(83, 127, 176, 0.2);
    background: rgba(255, 255, 255, 0.98);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, auto);
    padding: 0.35rem;
    gap: 0.42rem;
}

.exam-speak-gallery-preview__media {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(240, 246, 255, 0.95));
    border: 1px solid rgba(83, 127, 176, 0.16);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
}

.exam-speak-gallery-preview__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.exam-speak-gallery-preview__item-empty {
    font-size: 0.84rem;
    color: rgba(59, 80, 105, 0.72);
    text-align: center;
    line-height: 1.35;
}

.exam-speak-gallery-preview__caption {
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(31, 47, 30, 0.72);
    word-break: break-all;
}

.exam-speak-gallery-preview__placeholder {
    color: rgba(31, 47, 30, 0.64);
    font-size: 0.92rem;
}

.speak-group-sticky-header {
    position: sticky;
    top: 0;
    z-index: 8;
    margin: 0;
    padding: 0.42rem 0.82rem;
    background: rgba(252, 235, 244, 0.95);
    border-bottom: 1px solid rgba(237, 30, 121, 0.22);
    pointer-events: none;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.speak-group-sticky-header[data-speak-level="movers"] {
    background: rgba(233, 248, 239, 0.95);
    border-bottom-color: rgba(23, 143, 95, 0.22);
}

.speak-group-sticky-header[data-speak-level="flyers"] {
    background: rgba(236, 240, 255, 0.95);
    border-bottom-color: rgba(88, 102, 214, 0.22);
}

.speak-group-sticky-header__label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(237, 30, 121, 0.28);
    background: rgba(237, 30, 121, 0.1);
    color: #b0175d;
    box-shadow: 0 5px 12px rgba(164, 27, 88, 0.16);
    padding: 0.2rem 0.54rem;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.speak-group-sticky-header__label[data-speak-level="movers"] {
    border-color: rgba(23, 143, 95, 0.3);
    background: rgba(23, 143, 95, 0.12);
    color: #0f6f49;
}

.speak-group-sticky-header__label[data-speak-level="flyers"] {
    border-color: rgba(88, 102, 214, 0.34);
    background: rgba(88, 102, 214, 0.11);
    color: #3b4ab0;
}

.speak-group-wrapper {
    display: grid;
    gap: 0;
    border-radius: 18px;
    border: 2px solid rgba(237, 30, 121, 0.24);
    background: #fff;
    padding: 0;
    box-shadow: 0 10px 22px rgba(31, 47, 30, 0.08);
    overflow: visible;
}

#part-speak .speak-group-wrapper + .speak-group-wrapper {
    margin-top: 3.1rem;
}

.speak-group-wrapper[data-speak-level="movers"] {
    border-color: rgba(23, 143, 95, 0.24);
}

.speak-group-wrapper[data-speak-level="flyers"] {
    border-color: rgba(88, 102, 214, 0.24);
}

.speak-group-wrapper[data-speak-level="movers"] > .speak-group-intro {
    border-bottom-color: rgba(23, 143, 95, 0.12);
}

.speak-group-wrapper[data-speak-level="flyers"] > .speak-group-intro {
    border-bottom-color: rgba(88, 102, 214, 0.14);
}

.speak-group-wrapper[data-speak-level="movers"] > .speak-group-intro .question-text--boxed {
    border-color: rgba(23, 143, 95, 0.32);
    background: linear-gradient(180deg, rgba(243, 252, 247, 0.98), rgba(231, 246, 237, 0.94));
}

.speak-group-wrapper[data-speak-level="flyers"] > .speak-group-intro .question-text--boxed {
    border-color: rgba(88, 102, 214, 0.3);
    background: linear-gradient(180deg, rgba(245, 247, 255, 0.98), rgba(235, 239, 255, 0.94));
}

.speak-group-wrapper[data-speak-level="flyers"] > .speak-group-intro__title,
.speak-group-wrapper[data-speak-level="flyers"] > .speak-group-intro > .question-text--boxed.speak-group-intro__title {
    border-style: dashed;
    border-width: 1px;
    border-color: rgba(230, 122, 165, 0.52);
    background: linear-gradient(180deg, rgba(255, 244, 250, 0.98), rgba(255, 233, 244, 0.95));
    color: rgba(128, 38, 86, 0.95);
    text-shadow: none;
    box-shadow: none;
}

.speak-group-wrapper[data-speak-level="starters"] > .speak-group-intro__title,
.speak-group-wrapper[data-speak-level="starters"] > .speak-group-intro > .question-text--boxed.speak-group-intro__title,
.speak-group-wrapper--gallery-set[data-speak-level="movers"] > .speak-group-intro__title,
.speak-group-wrapper--gallery-set[data-speak-level="movers"] > .speak-group-intro > .question-text--boxed.speak-group-intro__title {
    border-style: dashed;
    border-width: 1px;
    border-color: rgba(230, 122, 165, 0.52);
    background: linear-gradient(180deg, rgba(255, 244, 250, 0.98), rgba(255, 233, 244, 0.95));
    color: rgba(128, 38, 86, 0.95);
    text-shadow: none;
    box-shadow: none;
}

.speak-group-wrapper--part-break {
    position: relative;
    --part-divider-gap: 2.08rem;
    --part-divider-height: 1.56rem;
    --part-divider-visual-offset: 0.56rem;
    margin-top: calc((var(--part-divider-gap) * 2) + var(--part-divider-height)) !important;
}

/* ─── Speak Part 1 Movers Game ─── */
.speak-group-wrapper--movers-game {
    overflow: visible;
}

.speak-movers-game {
    padding: 0.6rem 0.72rem 0.8rem;
    display: grid;
    gap: 0.7rem;
}

.speak-movers-game__title {
    margin: 0;
}

.speak-movers-game__title.question-text--boxed {
    border-color: rgba(230, 122, 165, 0.52);
    background: linear-gradient(180deg, rgba(255, 244, 250, 0.98), rgba(255, 233, 244, 0.95));
    color: rgba(128, 38, 86, 0.95);
}

.speak-movers-game__images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.speak-movers-game__img-col {
    display: grid;
}

.speak-movers-game__img-slot {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1.5px solid rgba(237, 30, 121, 0.18);
    background: #f5f5f5;
    cursor: crosshair;
}

.speak-movers-game__img-slot.is-picking-active {
    border-color: rgba(237, 30, 121, 0.6);
    box-shadow: 0 0 0 3px rgba(237, 30, 121, 0.15);
}

.speak-movers-game__img {
    display: block;
    width: 100%;
    height: auto;
}

.speak-movers-game__img-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.speak-movers-game__question-pin {
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
    z-index: 12;
    cursor: pointer;
}

.speak-movers-game__question-pin-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(198, 52, 52, 0.92);
    box-shadow: 0 4px 10px rgba(49, 17, 17, 0.24);
    transform: translate(-50%, -50%);
}

.speak-movers-game__question-pin.is-correct .speak-movers-game__question-pin-dot {
    background: rgba(46, 125, 50, 0.9);
}

.speak-movers-game__question-pin.is-correct .speak-movers-game__question-pin-label {
    border-color: rgba(46, 125, 50, 0.34);
    color: #21652a;
}

.speak-movers-game__question-pin.is-wrong .speak-movers-game__question-pin-dot {
    background: rgba(198, 52, 52, 0.92);
}

.speak-movers-game__question-pin.is-wrong .speak-movers-game__question-pin-label {
    border-color: rgba(198, 52, 52, 0.34);
    color: #8d2020;
}

.speak-movers-game__question-pin-label {
    position: absolute;
    left: 12px;
    top: 0;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(198, 52, 52, 0.34);
    background: rgba(255, 255, 255, 0.96);
    color: #8d2020;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 5px 12px rgba(49, 17, 17, 0.16);
}

.speak-movers-game__question-pin.is-align-left .speak-movers-game__question-pin-label {
    left: auto;
    right: 12px;
}

.speak-movers-game__question-pin:hover .speak-movers-game__question-pin-dot,
.speak-movers-game__question-pin:focus-visible .speak-movers-game__question-pin-dot {
    transform: translate(-50%, -50%) scale(1.08);
}

.speak-movers-game__question-pin:hover .speak-movers-game__question-pin-label,
.speak-movers-game__question-pin:focus-visible .speak-movers-game__question-pin-label {
    background: #fff8fb;
    border-color: rgba(198, 52, 52, 0.46);
}

.speak-movers-game__question-pin:focus-visible {
    outline: none;
}

.speak-movers-game.is-picking-question .speak-movers-game__question-pin {
    pointer-events: none;
}

.speak-movers-game__cursor-hint {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.18rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(237, 30, 121, 0.34);
    background: rgba(255, 255, 255, 0.96);
    color: #9f1854;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(57, 20, 37, 0.16);
    pointer-events: none;
    backdrop-filter: blur(6px);
}

.speak-movers-game__cursor-hint[hidden] {
    display: none;
}

.speak-movers-game__region {
    position: absolute;
    border: 2.5px solid #ed1e79;
    background: rgba(237, 30, 121, 0.15);
    border-radius: 4px;
    pointer-events: none;
    transition: opacity 0.2s;
    overflow: visible;
    z-index: 2;
}

.speak-movers-game__region--example {
    border-color: #2e7d32;
    background: rgba(46, 125, 50, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.35rem;
}

.speak-movers-game__region-answer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: calc(100% - 6px);
    min-height: 22px;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #21652a;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 4px 10px rgba(33, 101, 42, 0.14);
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    z-index: 3;
}

.speak-movers-game__region-answer--compact {
    font-size: 0.68rem;
    padding: 0.1rem 0.38rem;
}

.speak-movers-game__region--answer-outside .speak-movers-game__region-answer {
    left: 0;
    top: -4px;
    transform: translateY(-100%);
    max-width: min(220px, calc(100vw - 5rem));
    justify-content: flex-start;
    text-align: left;
}

.speak-movers-game__region--answer-outside.speak-movers-game__region--answer-right .speak-movers-game__region-answer {
    left: auto;
    right: 0;
    text-align: right;
}

.speak-movers-game__region--answer-outside.speak-movers-game__region--answer-below .speak-movers-game__region-answer {
    top: calc(100% + 4px);
    transform: none;
}

.speak-movers-game__region--user {
    border-color: #1565c0;
    background: rgba(21, 101, 192, 0.14);
}

.speak-movers-game__region--correct {
    border-color: #2e7d32 !important;
    background: rgba(46, 125, 50, 0.22) !important;
}

.speak-movers-game__region--wrong {
    border-color: #c62828 !important;
    background: rgba(198, 40, 40, 0.14) !important;
}

.speak-movers-game__region--flyers-jump {
    pointer-events: auto;
    cursor: pointer;
    border-color: rgba(30, 136, 229, 0.9);
    background: rgba(30, 136, 229, 0.18);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.28rem;
    box-shadow: 0 7px 14px rgba(13, 71, 161, 0.18);
}

.speak-movers-game__region--flyers-jump:hover,
.speak-movers-game__region--flyers-jump:focus-visible {
    border-color: rgba(13, 71, 161, 1);
    background: rgba(30, 136, 229, 0.28);
    transform: translateY(-1px);
}

.speak-movers-game__region-answer--question {
    background: rgba(255, 255, 255, 0.97);
    color: #0d47a1;
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.16);
}

.speak-movers-game__questions {
    display: grid;
    gap: 0.65rem;
}

.speak-movers-q {
    border-radius: 12px;
    border: 1.5px solid rgba(237, 30, 121, 0.2);
    background: #fff;
    overflow: hidden;
}

.speak-movers-q--example {
    border-color: rgba(46, 125, 50, 0.3);
    background: rgba(232, 245, 233, 0.5);
    display: none !important;
}

.speak-movers-q .question-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.72rem;
    border-bottom: 1px solid rgba(237, 30, 121, 0.1);
    background: rgba(252, 235, 244, 0.6);
    gap: 0.5rem;
}

.speak-movers-q--example .question-head {
    background: rgba(232, 245, 233, 0.8);
    border-bottom-color: rgba(46, 125, 50, 0.12);
}

.speak-movers-example-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(46, 125, 50, 0.4);
    background: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.1rem 0.52rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.speak-movers-q__body {
    padding: 0.56rem 0.72rem 0.72rem;
    display: grid;
    gap: 0.5rem;
}

.speak-movers-q__prompt {
    font-size: 0.95rem;
    color: #1a1a2e;
    font-weight: 500;
}

.speak-movers-q__example-answer {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    font-size: 0.88rem;
}

.speak-movers-q__example-label {
    font-weight: 800;
    color: #2e7d32;
}

.speak-movers-q__example-text {
    color: #2e7d32;
    font-style: italic;
}

.speak-movers-q__interact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    column-gap: 0.7rem;
    row-gap: 0.36rem;
}

.speak-movers-pick-btn {
    grid-column: 2;
    grid-row: 1;
    appearance: none;
    border: 1.5px solid rgba(237, 30, 121, 0.4);
    border-radius: 999px;
    background: #fff;
    color: #c0175e;
    width: 300px;
    max-width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.58rem 1.25rem;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.speak-movers-pick-btn:hover {
    background: rgba(237, 30, 121, 0.06);
    border-color: rgba(237, 30, 121, 0.65);
    transform: translateY(-1px);
}

.speak-movers-pick-btn.is-picking {
    background: #ed1e79;
    color: #fff;
    border-color: transparent;
}

.speak-movers-pick-btn.is-done {
    background: rgba(237, 30, 121, 0.08);
    color: #b0175d;
    border-color: rgba(237, 30, 121, 0.34);
}

.speak-movers-pick-btn.is-done-correct {
    background: rgba(46,125,50,0.12);
    color: #2e7d32;
    border-color: rgba(46,125,50,0.4);
}

.speak-movers-pick-btn.is-done-wrong {
    background: rgba(198,40,40,0.1);
    color: #c62828;
    border-color: rgba(198,40,40,0.38);
}

.speak-movers-pick-status {
    grid-column: 1 / -1;
    display: block;
    width: min(100%, 640px);
    text-align: center;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    color: #555;
}

.speak-movers-pick-btn ~ .speak-movers-pick-status {
    grid-row: 2;
}

.speak-movers-pick-status:empty {
    display: none;
}

.speak-movers-pick-status.is-correct { color: #2e7d32; }
.speak-movers-pick-status.is-wrong { color: #c62828; }

.speak-movers-jump-btn {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    appearance: none;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(237, 30, 121, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #c0175e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(68, 28, 46, 0.1);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s, background 0.18s;
}

.speak-movers-jump-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(237, 30, 121, 0.5);
    background: #fff8fb;
    box-shadow: 0 6px 14px rgba(68, 28, 46, 0.14);
}

.speak-movers-jump-btn svg {
    width: 16px;
    height: 16px;
}

.speak-movers-jump-btn[hidden] {
    display: none;
}

@media (max-width: 480px) {
    .speak-movers-q__interact {
        grid-template-columns: 1fr;
    }

    .speak-movers-pick-btn,
    .speak-movers-pick-status,
    .speak-movers-jump-btn {
        grid-column: 1;
    }

    .speak-movers-pick-btn {
        width: 100%;
        max-width: 300px;
    }

    .speak-movers-jump-btn {
        grid-row: 3;
        justify-self: center;
    }
}

.listen-group-wrapper > .listen-group-shared-panel > .question-text--boxed {
    position: sticky;
    top: 0;
    z-index: 13;
    margin-top: 0;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 16px rgba(78, 35, 58, 0.12);
}

.listen-group-wrapper > .listen-group-shared-panel .media-audio--sticky,
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content .media-audio--sticky,
#part-listen .media-audio--sticky {
    position: sticky !important;
    top: calc(var(--listen-shared-title-stack-height, var(--listen-shared-title-height, 0px)) + 0.08rem) !important;
    z-index: 12;
}

.speak-group-wrapper > .question-card.question-card--speak .speak-question-sticky,
.speak-movers-q .speak-question-sticky {
    position: static;
    display: grid;
    gap: 0.62rem;
    margin-bottom: 0.72rem;
    padding-bottom: 0.08rem;
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(244, 249, 255, 0.95));
}

.speak-movers-q .speak-question-sticky {
    position: static;
}

.speak-group-wrapper > .speak-group-intro__title,
.speak-group-wrapper > .speak-group-intro > .speak-group-intro__title {
    position: sticky;
    top: calc(var(--speak-sticky-header-height, 0px) + 0.76rem);
    z-index: 7;
    margin-bottom: 0.5rem;
    box-shadow: 0 10px 22px rgba(237, 30, 121, 0.24);
    border-color: rgba(188, 16, 92, 0.56);
    background: linear-gradient(135deg, #ff94c3 0%, #ed1e79 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(111, 10, 54, 0.32);
}

#part-speak .speak-group-wrapper > .speak-group-intro__title {
    margin: 0.56rem 0.72rem 0.5rem;
}

#part-speak .speak-group-wrapper[id^="speak-greetings-"] > .speak-group-intro > .speak-group-intro__title {
    box-shadow: none;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(224, 116, 171, 0.46);
    background: linear-gradient(180deg, rgba(255, 242, 249, 0.98), rgba(255, 234, 246, 0.95));
    color: #8f3f6e;
    text-shadow: none;
}

#part-speak .speak-group-wrapper[id^="speak-greetings-"] > .speak-group-intro__title,
#part-speak .speak-group-wrapper[id^="speak-greetings-"] > .speak-group-intro > .speak-group-intro__title,
#part-speak .speak-group-wrapper[data-speak-part-token="speak-greetings"] > .speak-group-intro__title,
#part-speak .speak-group-wrapper[data-speak-part-token="speak-greetings"] > .speak-group-intro > .speak-group-intro__title {
    border-style: solid !important;
    border-width: 1px !important;
    border-color: rgba(224, 116, 171, 0.46) !important;
    background: linear-gradient(180deg, rgba(255, 242, 249, 0.98), rgba(255, 234, 246, 0.95)) !important;
    color: #8f3f6e !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

.speak-group-wrapper--movers-game > .speak-movers-game > .speak-movers-game__title {
    position: sticky;
    top: calc(var(--speak-sticky-header-height, 0px) + 0.76rem);
    z-index: 7;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 16px rgba(78, 35, 58, 0.12);
}


.speak-group-wrapper > .question-card.question-card--speak {
    border: none !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 249, 255, 0.96)) !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0.56rem 0.72rem;
    scroll-margin-top: 120px;
}

.speak-group-wrapper > .question-card.question-card--speak + .question-card.question-card--speak {
    border-top: 0 !important;
    background-image: none;
    padding-top: 0.72rem;
    margin-top: 0.28rem;
}

.speak-group-wrapper > .question-card.question-card--speak .question-head {
    margin-bottom: 0.02rem;
    gap: 0.46rem;
}

.speak-group-wrapper > .question-card.question-card--speak .question-head::before {
    content: "";
    order: 2;
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(42, 87, 132, 0.48), rgba(42, 87, 132, 0.2));
    border-radius: 999px;
}

.speak-group-wrapper > .question-card.question-card--speak .question-head strong {
    order: 1;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(31, 77, 121, 0.95);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
}

.speak-group-wrapper > .question-card.question-card--speak .question-head .mark-later {
    order: 3;
    border-width: 1px;
    padding: 0.18rem 0.54rem;
    font-size: 0.68rem;
}

.speak-group-wrapper > .question-card.question-card--speak.answered {
    background: rgba(240, 253, 240, 0.3) !important;
}

.speak-group-wrapper > .question-card.question-card--speak.flagged {
    background: rgba(255, 248, 230, 0.35) !important;
}

.speak-group-wrapper > .question-card.question-card--speak.is-correct {
    background: rgba(240, 250, 239, 0.35) !important;
}

.speak-group-wrapper > .question-card.question-card--speak.is-wrong {
    background: rgba(255, 245, 242, 0.35) !important;
}

.speak-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.48rem;
}

.speak-record-btn {
    appearance: none;
    border: 1.5px solid rgba(237, 30, 121, 0.55);
    border-radius: 999px;
    background: #ed1e79;
    color: #fff;
    font-size: 0.87rem;
    font-weight: 800;
    min-height: 40px;
    padding: 0.4rem 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 14px rgba(237, 30, 121, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.speak-record-btn:hover,
.speak-record-btn:focus-visible {
    background: #c8005e;
    box-shadow: 0 8px 22px rgba(237, 30, 121, 0.38);
    transform: translateY(-2px);
    outline: none;
}

@media (min-width: 1025px) {
    .speak-card .speak-controls {
        justify-content: center;
        gap: 0.85rem;
    }

    .speak-card .speak-record-btn {
        min-width: 18rem;
        min-height: 80px;
        padding: 0.9rem 2.3rem;
        font-size: clamp(1.18rem, 1.04rem + 0.36vw, 1.35rem);
        gap: 0.7rem;
        justify-content: center;
    }

    .speak-card .speak-record-btn__icon {
        width: 1.55rem;
        height: 1.55rem;
    }
}

.speak-record-btn.is-listening {
    color: #fff;
    border-color: rgba(220, 68, 90, 0.72);
    background: #e84768;
    box-shadow: 0 12px 22px rgba(218, 64, 93, 0.3);
    animation: speak-pulse 1s ease-in-out infinite;
}

.speak-record-btn:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
    box-shadow: none;
}

.speak-record-btn__icon {
    width: 1.15rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.speak-record-btn__icon svg {
    width: 100%;
    height: 100%;
}

.speak-status {
    margin: 0;
    font-size: 0.81rem;
    line-height: 1.45;
    color: rgba(31, 47, 30, 0.75);
    font-weight: 700;
}

.speak-silence-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin-top: -0.3rem;
    padding: 0.2rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(237, 30, 121, 0.26);
    background: rgba(255, 240, 247, 0.96);
    color: #b01861;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 14px rgba(237, 30, 121, 0.12);
}

.speak-silence-countdown[hidden] {
    display: none;
}

.speak-transcript-label {
    font-size: 0.77rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: rgba(25, 76, 120, 0.88);
}

.speak-transcript {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(31, 47, 30, 0.2);
    background: #fff;
    padding: 0.54rem 0.58rem;
    font-size: 0.88rem;
    line-height: 1.46;
    color: rgba(31, 47, 30, 0.86);
    resize: vertical;
    min-height: 72px;
}

.speak-transcript:focus {
    border-color: rgba(47, 125, 196, 0.5);
    box-shadow: 0 0 0 3px rgba(68, 148, 221, 0.18);
    outline: none;
}

.speak-transcript:disabled {
    background: rgba(245, 248, 252, 0.95);
}

.question-card--speak .speak-transcript-label,
.question-card--speak .speak-transcript {
    display: none;
}

.question-card--speak[data-speak-manual-input="1"] .speak-transcript-wrap,
.question-card--speak[data-speak-manual-input="1"] .speak-transcript-label,
.question-card--speak[data-speak-manual-input="1"] .speak-transcript {
    display: block;
}

.question-card--speak[data-speak-manual-input="1"] .speak-card--manual-entry {
    display: grid;
    gap: 0.48rem;
}

.question-card--speak[data-speak-manual-input="1"] .speak-transcript-wrap--manual {
    display: grid;
    gap: 0.34rem;
}

body.exam-reviewing-answers .question-card--speak .speak-transcript-label,
body.exam-reviewing-answers .question-card--speak .speak-transcript {
    display: block;
}

.speak-playback {
    border-radius: 10px;
    border: 1px dashed rgba(45, 121, 187, 0.3);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.42rem 0.52rem;
    display: grid;
    gap: 0.28rem;
}

.speak-playback-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: rgba(31, 47, 30, 0.7);
}

.speak-playback audio {
    width: 100%;
}

.speak-result {
    border-radius: 11px;
    border: 1px dashed rgba(45, 121, 187, 0.3);
    background: rgba(232, 244, 253, 0.7);
    padding: 0.5rem 0.58rem;
    display: grid;
    gap: 0.14rem;
}

/* ≥ 85% — xanh lá (rất tốt) */
.speak-result--great {
    border-color: rgba(30, 140, 60, 0.38);
    background: rgba(220, 245, 220, 0.75);
}
.speak-result--great strong { color: #1b7a35; }
.speak-result--great span   { color: rgba(20, 70, 30, 0.78); }

/* 65–84% — xanh dương (tốt) */
.speak-result--good {
    border-color: rgba(25, 118, 210, 0.35);
    background: rgba(227, 241, 255, 0.78);
}
.speak-result--good strong { color: #1155a6; }
.speak-result--good span   { color: rgba(10, 50, 110, 0.72); }

/* 40–64% — cam (trung bình) */
.speak-result--fair {
    border-color: rgba(230, 130, 0, 0.38);
    background: rgba(255, 243, 220, 0.78);
}
.speak-result--fair strong { color: #b85d00; }
.speak-result--fair span   { color: rgba(120, 60, 0, 0.75); }

/* < 40% — đỏ (cần cố gắng) */
.speak-result--poor {
    border-color: rgba(200, 40, 40, 0.32);
    background: rgba(255, 230, 230, 0.72);
}
.speak-result--poor strong { color: #b71c1c; }
.speak-result--poor span   { color: rgba(120, 20, 20, 0.75); }

.speak-result strong {
    font-size: 1.2rem;
    line-height: 1;
    color: #1f7d3d;
}

.speak-result span {
    font-size: 0.78rem;
    color: rgba(31, 47, 30, 0.72);
    line-height: 1.42;
    font-weight: 700;
}

.speak-result-transcript {
    margin-top: 0.2rem;
    border-radius: 10px;
    border: 1px solid rgba(31, 47, 30, 0.14);
    background: rgba(255, 255, 255, 0.98);
    padding: 0.42rem 0.48rem;
    display: grid;
    gap: 0.18rem;
}

.speak-result-transcript em {
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(31, 47, 30, 0.62);
}

.speak-result-transcript p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.44;
    color: rgba(31, 47, 30, 0.88);
    font-weight: 700;
}

.answer-explanation {
    border-radius: 12px;
    border: 1px dashed rgba(103, 117, 108, 0.36);
    background: rgba(246, 248, 246, 0.98);
    padding: 0.56rem 0.62rem;
    display: grid;
    gap: 0.32rem;
}

.answer-explanation__label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(44, 62, 52, 0.72);
}

.answer-explanation__input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(108, 124, 113, 0.32);
    background: #fff;
    padding: 0.52rem 0.58rem;
    font-size: 0.87rem;
    line-height: 1.48;
    color: #1f2f1e;
    resize: vertical;
    min-height: 74px;
}

.answer-explanation--scene {
    background: linear-gradient(180deg, rgba(248, 252, 245, 0.98), rgba(242, 248, 238, 0.96));
}

.answer-explanation__scene {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(115, 156, 96, 0.24);
    background: rgba(255, 255, 255, 0.92);
    padding: 0.7rem;
}

.answer-explanation__scene-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(98, 137, 183, 0.22);
    background: #fff;
    flex: 0 0 auto;
}

.answer-explanation__scene-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.answer-explanation__scene-body {
    display: grid;
    gap: 0.18rem;
}

.answer-explanation__scene-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: rgba(49, 78, 49, 0.84);
}

.answer-explanation__scene-text {
    font-size: 0.93rem;
    font-weight: 700;
    color: #28462c;
}

.question-correct-answer-review {
    width: 100%;
    margin: 0;
    display: grid;
    gap: 0.2rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid #f6c0a8;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff7f1 0%, #fff1e7 100%);
    box-shadow: 0 10px 18px rgba(204, 111, 52, 0.08);
}

.question-correct-answer-review__label {
    margin: 0;
    color: #c2642d;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.question-correct-answer-review__value {
    margin: 0;
    color: #8f3f15;
    font-size: 1.03rem;
    font-weight: 800;
    line-height: 1.34;
    white-space: pre-wrap;
    word-break: break-word;
}

.mark-later {
    border: 1px dashed #e9b45b;
    border-radius: 999px;
    background: #fff3dc;
    color: #955806;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.28rem 0.78rem;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.mark-later:hover,
.mark-later:focus-visible {
    filter: brightness(0.98);
    transform: translateY(-1px);
    outline: none;
}

.mark-later:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.question-text {
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(31, 47, 30, 0.88);
    margin: 0;
}

.question-text>* {
    margin: 0;
}

.question-text>*+* {
    margin-top: 0.6rem;
}

.question-text--boxed {
    border-radius: 14px;
    border: 1px dashed rgba(91, 151, 98, 0.42);
    background: linear-gradient(180deg, rgba(246, 255, 242, 0.96), rgba(236, 249, 230, 0.92));
    padding: 0.82rem 0.88rem;
}

.question-card--yesno {
    border-color: rgba(37, 116, 187, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 249, 255, 0.96));
}

.question-text--yesno {
    border-style: solid;
    border-color: rgba(73, 139, 190, 0.3);
    background: linear-gradient(180deg, rgba(246, 252, 255, 0.95), rgba(236, 246, 255, 0.92));
}

.question-body--yesno {
    gap: 0.9rem;
}

.read-yesno-group-text {
    border-color: rgba(230, 122, 165, 0.52);
    background: linear-gradient(180deg, rgba(255, 244, 250, 0.98), rgba(255, 233, 244, 0.95));
    color: rgba(128, 38, 86, 0.95);
}

.question-card--yesno .question-body > .question-text--yesno {
    border-style: dashed;
    border-color: rgba(91, 151, 98, 0.42);
    background: linear-gradient(180deg, rgba(246, 255, 242, 0.96), rgba(236, 249, 230, 0.92));
    color: rgba(31, 47, 30, 0.88);
}

.read-vocab-group-text {
    border-color: rgba(49, 107, 167, 0.42);
    background: linear-gradient(180deg, rgba(238, 248, 255, 0.98), rgba(223, 239, 255, 0.94));
}

.read-wordbank-group-text {
    border-color: rgba(189, 154, 84, 0.46);
    background: linear-gradient(180deg, rgba(255, 250, 229, 0.98), rgba(255, 243, 212, 0.94));
    color: rgba(84, 62, 16, 0.9);
}


.read-rowbank-group-text {
    border-color: rgba(194, 145, 72, 0.46);
    background: linear-gradient(180deg, rgba(255, 249, 235, 0.98), rgba(255, 241, 214, 0.94));
    color: rgba(96, 62, 14, 0.92);
}

.read-scene-yn-group-text {
    border-color: rgba(85, 126, 188, 0.4);
    background: linear-gradient(180deg, rgba(240, 247, 255, 0.98), rgba(225, 238, 255, 0.94));
    color: rgba(32, 64, 110, 0.92);
}

.read-scene-choice-group-text {
    border-color: rgba(71, 152, 112, 0.38);
    background: linear-gradient(180deg, rgba(241, 253, 246, 0.98), rgba(226, 246, 235, 0.94));
    color: rgba(30, 95, 67, 0.92);
}

.read-dialog-bank-group-text {
    border-color: rgba(86, 145, 196, 0.42);
    background: linear-gradient(180deg, rgba(239, 248, 255, 0.98), rgba(224, 240, 255, 0.94));
    color: rgba(28, 72, 116, 0.92);
}

.read-letter-sort-group-text {
    border-color: rgba(195, 126, 83, 0.46);
    background: linear-gradient(180deg, rgba(255, 244, 234, 0.98), rgba(255, 235, 220, 0.94));
    color: rgba(112, 66, 32, 0.92);
}

.read-vocab-group-text,
.read-wordbank-group-text,
.read-rowbank-group-text,
.read-scene-yn-group-text,
.read-scene-choice-group-text,
.read-dialog-bank-group-text,
.read-letter-sort-group-text {
    border-color: rgba(230, 122, 165, 0.52);
    background: linear-gradient(180deg, rgba(255, 244, 250, 0.98), rgba(255, 233, 244, 0.95));
    color: rgba(128, 38, 86, 0.95);
}

.read-yesno-layout {
    display: grid;
    grid-template-columns: minmax(190px, 232px) minmax(180px, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.question-card--vocab {
    border-color: rgba(37, 116, 187, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 249, 255, 0.96));
}

.question-card--wordbank {
    border-color: rgba(37, 116, 187, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 249, 255, 0.96));
}


.question-card--rowbank {
    border-color: rgba(201, 141, 73, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 249, 239, 0.96));
}

.question-card--scene-yesno {
    border-color: rgba(53, 124, 188, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(240, 248, 255, 0.96));
}

.question-card--scene-choice {
    border-color: rgba(58, 142, 108, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 251, 246, 0.96));
}

.question-card--dialog-bank {
    border-color: rgba(78, 136, 192, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(240, 248, 255, 0.96));
}

.question-card--letter-sort {
    border-color: rgba(198, 130, 82, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 245, 236, 0.96));
}

.qp-vocab-bank,
.read-vocab-bank,
.qp-wordbank-bank,
.read-wordbank-bank {
    border-radius: 14px;
    border: 1px dashed rgba(73, 139, 190, 0.34);
    background: linear-gradient(180deg, rgba(246, 252, 255, 0.97), rgba(235, 246, 255, 0.93));
    padding: 0.7rem 0.76rem;
    display: grid;
    gap: 0.56rem;
}

.read-wordbank-bank {
    border-color: rgba(66, 141, 111, 0.36);
    background: linear-gradient(180deg, rgba(245, 255, 250, 0.97), rgba(231, 248, 239, 0.93));
}


.read-rowbank-overview {
    border-radius: 14px;
    border: 1px dashed rgba(193, 144, 70, 0.34);
    background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(255, 243, 224, 0.94));
    padding: 0.74rem 0.8rem;
    display: grid;
    gap: 0.62rem;
}

.read-rowbank-image {
    border-radius: 12px;
    border: 1px solid rgba(206, 167, 111, 0.42);
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
    min-height: 170px;
    display: grid;
    place-items: center;
}

.read-rowbank-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.read-rowbank-passage {
    margin: 0;
    border-style: solid;
    border-color: rgba(204, 160, 95, 0.34);
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.99), rgba(255, 246, 228, 0.95));
    color: rgba(82, 57, 20, 0.92);
}

.read-rowbank-questions {
    display: grid;
    gap: 0.58rem;
}

.read-rowbank-row-label {
    margin: 0;
    border-style: solid;
    border-color: rgba(193, 144, 70, 0.34);
    background: linear-gradient(180deg, rgba(255, 250, 239, 0.98), rgba(255, 243, 220, 0.94));
    color: rgba(91, 59, 16, 0.94);
    font-weight: 800;
}

.read-rowbank-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.read-rowbank-choice-list {
    border-radius: 14px;
    border: 1px dashed rgba(188, 129, 25, 0.52);
    background: linear-gradient(180deg, rgba(255, 245, 214, 0.99), rgba(248, 228, 174, 0.96));
    padding: 0.7rem 0.76rem;
    display: grid;
    gap: 0.56rem;
}

.read-rowbank-choice-list h4 {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(111, 67, 5, 0.94);
}

.read-rowbank-choice-grid {
    display: grid;
    gap: 0.5rem;
}

.read-rowbank-choice-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.58rem;
}

.read-rowbank-choice-index {
    width: 1.7rem;
    min-width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    border: 1px solid rgba(179, 119, 12, 0.54);
    background: linear-gradient(180deg, rgba(255, 247, 220, 0.99), rgba(244, 221, 159, 0.96));
    color: rgba(103, 59, 1, 0.97);
    font-size: 0.8rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.read-rowbank-choice-options {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.46rem;
}

.read-rowbank-choice-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.55rem;
    padding: 0.1rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(179, 119, 12, 0.5);
    background: linear-gradient(180deg, rgba(255, 243, 198, 0.99), rgba(243, 214, 137, 0.96));
    color: rgba(95, 54, 0, 0.96);
    box-shadow: inset 0 0 0 1px rgba(255, 229, 154, 0.65);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
}

.read-vocab-passage {
    border-radius: 14px;
    border: 1px dashed rgba(73, 139, 190, 0.3);
    background: linear-gradient(180deg, rgba(246, 252, 255, 0.97), rgba(236, 246, 255, 0.94));
    padding: 0.7rem 0.76rem;
    display: grid;
    gap: 0.52rem;
}

.read-vocab-passage h4 {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(32, 75, 118, 0.9);
}

.read-vocab-passage-text {
    margin: 0;
    border-style: solid;
    border-color: rgba(116, 167, 207, 0.34);
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(236, 246, 255, 0.95));
    color: rgba(34, 72, 111, 0.93);
}

.read-vocab-passage-image {
    margin: 0 0 0.75rem 0;
}

.read-vocab-passage-image img {
    width: 25%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.read-vocab-example-media {
    margin: 0.2rem 0 0.1rem;
}

.read-vocab-example-media img {
    width: 25%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.read-vocab-passage-text--inline {
    white-space: pre-wrap;
    line-height: 1.75;
}

.read-vocab-inline-slot {
    display: inline-flex;
    align-items: center;
    margin: 0 0.18rem;
    vertical-align: baseline;
}

.read-vocab-inline-input {
    width: clamp(82px, 13vw, 134px);
    min-width: 72px;
    border-radius: 10px;
    border: 1px solid rgba(122, 96, 72, 0.28);
    background: #fff;
    padding: 0.38rem 0.5rem;
    font-size: 0.88rem;
    line-height: 1.2;
    color: #1f2f1e;
}

.read-vocab-inline-input:focus {
    border-color: rgba(73, 139, 190, 0.52);
    box-shadow: 0 0 0 3px rgba(73, 139, 190, 0.18);
    outline: none;
}

.read-vocab-answer--inline-hidden {
    display: none;
}

body.exam-submitted-state .read-vocab-answer--inline-hidden,
body.exam-reviewing-answers .read-vocab-answer--inline-hidden {
    display: grid;
}

.qp-vocab-bank h4,
.read-vocab-bank h4,
.qp-wordbank-bank h4,
.read-wordbank-bank h4 {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(32, 75, 118, 0.9);
}

.read-wordbank-bank h4 {
    color: rgba(32, 101, 74, 0.92);
}

.qp-vocab-grid,
.read-vocab-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.48rem;
}

.qp-wordbank-grid,
.read-wordbank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.48rem;
}

.qp-vocab-item,
.read-vocab-item {
    border-radius: 12px;
    border: 1px solid rgba(116, 167, 207, 0.34);
    background: #fff;
    overflow: hidden;
    display: grid;
    min-height: 124px;
}

.read-vocab-item {
    cursor: pointer;
}

.read-vocab-item.is-used,
.read-vocab-item.is-selected {
    border-color: rgba(212, 156, 20, 0.62);
    background: linear-gradient(180deg, rgba(255, 245, 191, 0.98), rgba(255, 236, 159, 0.96));
    box-shadow: inset 0 0 0 1px rgba(231, 188, 68, 0.38);
}

.read-vocab-item.is-selected {
    border-color: rgba(202, 138, 0, 0.8);
    box-shadow: 0 0 0 2px rgba(240, 193, 69, 0.5);
}

.qp-wordbank-item,
.read-wordbank-item {
    border-radius: 10px;
    border: 1px solid rgba(116, 167, 207, 0.34);
    background: #fff;
    min-height: 46px;
    padding: 0.5rem 0.56rem;
    display: flex;
    align-items: center;
    font-size: 0.84rem;
    font-weight: 700;
    color: rgba(31, 60, 91, 0.92);
    line-height: 1.35;
    word-break: break-word;
}

.qp-wordbank-item.is-used,
.read-wordbank-item.is-used {
    border-color: rgba(212, 156, 20, 0.62);
    background: linear-gradient(180deg, rgba(255, 245, 191, 0.98), rgba(255, 236, 159, 0.96));
    color: rgba(111, 74, 8, 0.95);
    box-shadow: inset 0 0 0 1px rgba(231, 188, 68, 0.38);
}

.qp-vocab-item__media,
.read-vocab-item__media {
    min-height: 82px;
    background: rgba(231, 244, 255, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qp-vocab-item__media img,
.read-vocab-item__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.qp-vocab-item__placeholder,
.read-vocab-item__placeholder {
    font-size: 0.73rem;
    font-weight: 700;
    color: rgba(44, 92, 133, 0.76);
}

.qp-vocab-item__word,
.read-vocab-item__word {
    padding: 0.42rem 0.48rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: rgba(31, 60, 91, 0.9);
    line-height: 1.35;
}

.qp-vocab-empty,
.read-vocab-empty {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(44, 92, 133, 0.78);
}

.qp-vocab-questions,
.read-vocab-questions {
    display: grid;
    gap: 0.55rem;
}

.qp-wordbank-questions,
.read-wordbank-questions {
    display: grid;
    gap: 0.55rem;
}

.qp-wordbank-example,
.read-wordbank-example {
    margin: 0;
    border-style: solid;
    border-color: rgba(202, 138, 100, 0.34);
    background: linear-gradient(180deg, rgba(255, 247, 240, 0.97), rgba(255, 236, 226, 0.93));
    color: rgba(105, 58, 34, 0.92);
}

.qp-vocab-example-media img {
    width: min(340px, 100%);
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

.read-scene-yn-overview,
.read-scene-choice-overview {
    border-radius: 14px;
    border: 1px dashed rgba(83, 135, 182, 0.36);
    background: linear-gradient(180deg, rgba(246, 252, 255, 0.97), rgba(234, 245, 255, 0.93));
    padding: 0.74rem 0.8rem;
    display: grid;
    gap: 0.62rem;
}

.read-scene-yn-overview h4,
.read-scene-choice-overview h4 {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(35, 79, 124, 0.92);
}

.read-scene-yn-image,
.read-scene-choice-image {
    border-radius: 12px;
    border: 1px solid rgba(129, 167, 206, 0.42);
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
    min-height: 0;
    display: grid;
    place-items: center;
}

.read-scene-yn-gallery {
    display: grid;
    gap: 0.58rem;
    grid-template-columns: minmax(0, 1fr);
}

.read-scene-yn-gallery[data-gallery-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.read-scene-yn-gallery[data-gallery-count]:not([data-gallery-count="1"]):not([data-gallery-count="2"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.read-scene-yn-gallery--part7[data-gallery-count="1"] {
    grid-template-columns: minmax(0, min(420px, 100%));
}

.read-scene-yn-gallery.read-scene-yn-gallery--part7[data-gallery-count="2"],
.read-scene-yn-gallery.read-scene-yn-gallery--part7[data-gallery-count]:not([data-gallery-count="1"]):not([data-gallery-count="2"]) {
    grid-template-columns: repeat(2, minmax(0, 340px));
    justify-content: center;
}

.read-scene-yn-gallery--part7 > .read-scene-yn-image {
    width: 100%;
}

.read-scene-yn-gallery--part7[data-gallery-count]:not([data-gallery-count="1"]) > .read-scene-yn-image:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 340px);
}

.read-scene-yn-image img,
.read-scene-choice-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.read-scene-yn-image--empty,
.read-scene-choice-image--empty {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(46, 84, 125, 0.78);
}

@media (max-width: 720px) {
    .read-scene-yn-gallery--part7 {
        grid-template-columns: minmax(0, 1fr);
    }

    .read-scene-yn-gallery--part7[data-gallery-count]:not([data-gallery-count="1"]) > .read-scene-yn-image:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
    }
}

.read-scene-yn-example,
.read-scene-choice-example {
    margin: 0;
    border-style: solid;
    border-color: rgba(94, 141, 196, 0.34);
    background: linear-gradient(180deg, rgba(245, 251, 255, 0.98), rgba(234, 244, 255, 0.94));
}

.read-scene-yn-statement {
    margin: 0;
    border-style: solid;
    border-color: rgba(112, 157, 206, 0.38);
    background: linear-gradient(180deg, rgba(247, 252, 255, 0.97), rgba(236, 246, 255, 0.94));
}

.read-scene-part6-section {
    margin: 0.56rem 0.72rem 0.78rem;
    border-radius: 14px;
    border: 1px solid rgba(112, 157, 206, 0.34);
    background: linear-gradient(180deg, rgba(245, 251, 255, 0.96), rgba(235, 246, 255, 0.92));
    display: grid;
    gap: 0.24rem;
    overflow: hidden;
}

.read-scene-part6-section__head {
    padding: 0.58rem 0.62rem 0.14rem;
}

.read-scene-part6-reference-details {
    margin: 0.36rem 0 0.08rem;
}

.read-scene-part6-reference-panel {
    max-height: min(38vh, 360px);
}

.read-scene-part6-section__title {
    margin: 0;
    border-color: rgba(109, 151, 204, 0.42);
    background: linear-gradient(180deg, rgba(248, 253, 255, 0.98), rgba(236, 246, 255, 0.95));
    font-weight: 800;
}

.read-scene-part6-section__items {
    display: grid;
    gap: 0;
    padding: 0.1rem 0.18rem 0.34rem;
}

.read-scene-part6-section__items > .question-card.question-card--scene-part6-item {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.54rem 0.5rem 0.62rem;
    margin: 0 !important;
    transform: none !important;
}

.read-scene-part6-section__items > .question-card.question-card--scene-part6-item + .question-card.question-card--scene-part6-item {
    border-top: 1px dashed rgba(122, 164, 211, 0.42) !important;
}

.read-scene-part6-section__items > .question-card.question-card--scene-part6-item:hover,
.read-scene-part6-section__items > .question-card.question-card--scene-part6-item:focus-within,
.read-scene-part6-section__items > .question-card.question-card--scene-part6-item.is-jump-highlight {
    border-color: transparent !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.28) !important;
    transform: none !important;
}

.read-scene-part6-section__items > .question-card.question-card--scene-part6-item .question-head {
    margin: 0 0 0.42rem !important;
    padding: 0 !important;
    background: transparent !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
}

.read-scene-part6-section__items > .question-card.question-card--scene-part6-item .question-head::before {
    display: none !important;
}

.read-scene-part6-section__items > .question-card.question-card--scene-part6-item .question-body {
    gap: 0.7rem;
}

.read-scene-yn-row-media {
    display: grid;
    gap: 0.44rem;
}

.read-scene-yn-row-image {
    border-radius: 12px;
    border: 1px solid rgba(129, 167, 206, 0.42);
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
    width: min(100%, 420px);
    min-height: 180px;
    max-height: 260px;
    display: grid;
    place-items: center;
}

.read-scene-yn-row-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.read-scene-yn-row-passage {
    display: grid;
    gap: 0.42rem;
}

.read-scene-yn-row-passage-image {
    border-radius: 12px;
    border: 1px solid rgba(136, 171, 206, 0.4);
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
    width: min(100%, 640px);
    min-height: 220px;
    max-height: 420px;
    display: grid;
    place-items: center;
}

.read-scene-yn-row-passage-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.read-scene-yn-row-passage-link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2b5f93;
    text-decoration: none;
    border: 1px solid rgba(82, 131, 182, 0.38);
    border-radius: 999px;
    padding: 0.28rem 0.58rem;
    background: rgba(240, 248, 255, 0.95);
}

.read-scene-yn-row-passage-link:hover,
.read-scene-yn-row-passage-link:focus-visible {
    color: #1f4c77;
    border-color: rgba(74, 120, 168, 0.54);
    background: rgba(230, 242, 255, 0.96);
    outline: none;
}

.question-card.question-card--scene-yesno[data-question-level="starters"][data-read-row-type="text_image"] .question-body {
    justify-items: stretch;
}

.question-card.question-card--scene-yesno[data-question-level="starters"][data-read-row-type="text_image"] .read-scene-yn-row-media,
.question-card.question-card--scene-yesno[data-question-level="starters"][data-read-row-type="text_image"] .read-scene-yn-statement,
.question-card.question-card--scene-yesno[data-question-level="starters"][data-read-row-type="text_image"] .read-scene-yn-answer {
    width: 100%;
}

.question-card.question-card--scene-yesno[data-question-level="starters"][data-read-row-type="text_image"] .read-scene-yn-row-media {
    justify-items: stretch;
}

.question-card.question-card--scene-yesno[data-question-level="starters"][data-read-row-type="text_image"] .read-scene-yn-row-image {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    max-height: none;
}

.question-card.question-card--scene-yesno[data-question-level="starters"][data-read-row-type="text_image"] .read-scene-yn-row-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
}

.question-card.question-card--scene-yesno[data-question-level="starters"][data-read-row-type="text_image"] .read-scene-yn-statement {
    text-align: left;
}

.read-dialog-bank-overview,
.read-dialog-bank-bank {
    border-radius: 14px;
    border: 1px dashed rgba(86, 145, 196, 0.36);
    background: linear-gradient(180deg, rgba(245, 251, 255, 0.97), rgba(233, 244, 255, 0.93));
    padding: 0.74rem 0.8rem;
    display: grid;
    gap: 0.62rem;
}

.read-dialog-bank-overview h4,
.read-dialog-bank-bank h4 {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(35, 79, 124, 0.92);
}

.read-dialog-bank-image {
    border-radius: 12px;
    border: 1px solid rgba(129, 167, 206, 0.42);
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
    min-height: 170px;
    display: grid;
    place-items: center;
}

.read-dialog-bank-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.read-dialog-bank-image--empty {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(46, 84, 125, 0.78);
}

.read-dialog-bank-example {
    margin: 0;
    border-style: solid;
    border-color: rgba(94, 141, 196, 0.34);
    background: linear-gradient(180deg, rgba(245, 251, 255, 0.98), rgba(234, 244, 255, 0.94));
}

.read-dialog-bank-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.46rem;
}

.read-dialog-bank-item {
    border-radius: 10px;
    border: 1px solid rgba(116, 167, 207, 0.34);
    background: #fff;
    min-height: 46px;
    padding: 0.5rem 0.56rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.5rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: rgba(31, 60, 91, 0.92);
    line-height: 1.35;
    word-break: break-word;
}

.read-dialog-bank-item__key,
.read-dialog-bank-item>strong {
    width: 1.55rem;
    min-width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    border: 1px solid rgba(91, 138, 186, 0.42);
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.99), rgba(221, 237, 251, 0.95));
    color: #1f588e;
    font-size: 0.76rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.01em;
    line-height: 1;
    margin-top: 0.04rem;
}

.read-dialog-bank-item__text {
    min-width: 0;
    display: block;
}

.read-dialog-bank-item.is-example {
    border-color: rgba(153, 160, 170, 0.38);
    background: linear-gradient(180deg, rgba(243, 245, 248, 0.98), rgba(232, 236, 241, 0.95));
    color: rgba(92, 103, 116, 0.94);
}

.read-dialog-bank-item.is-example .read-dialog-bank-item__key,
.read-dialog-bank-item.is-example > strong {
    border-color: rgba(143, 151, 162, 0.42);
    background: linear-gradient(180deg, rgba(237, 240, 244, 0.98), rgba(220, 226, 232, 0.95));
    color: rgba(87, 95, 107, 0.94);
}

.read-dialog-bank-item__example {
    display: inline-block;
    margin-left: 0.28rem;
    font-weight: 900;
    color: inherit;
}

.read-dialog-bank-selected {
    margin: 0;
    padding: 0.82rem 0.88rem;
    border-radius: 14px;
    border: 1px solid rgba(237, 30, 121, 0.3);
    background: linear-gradient(180deg, rgba(255, 240, 248, 0.98), rgba(255, 227, 241, 0.95));
    color: #b10f65;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.55;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}

.read-letter-sort-overview {
    border-radius: 14px;
    border: 1px dashed rgba(201, 133, 88, 0.34);
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.97), rgba(255, 240, 226, 0.93));
    padding: 0.74rem 0.8rem;
    display: grid;
    gap: 0.62rem;
}

.read-letter-sort-overview h4 {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(114, 72, 36, 0.9);
}

.read-letter-sort-overview__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    align-items: stretch;
}

.read-letter-sort-overview .read-letter-sort-media {
    width: 100%;
    min-height: 0;
}

.read-letter-sort-overview .read-letter-sort-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.read-letter-sort-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
}

.read-letter-sort-media {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(206, 147, 109, 0.38);
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
    min-height: 220px;
    display: grid;
    place-items: center;
}

.read-letter-sort-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.read-letter-sort-media--empty {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(126, 81, 48, 0.78);
    text-align: center;
    padding: 0.72rem;
}

.read-letter-sort-answer-wrap {
    display: grid;
    gap: 0.5rem;
}

.read-letter-sort-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.read-letter-sort-chip {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid rgba(191, 128, 84, 0.44);
    background: #fff;
    color: rgba(109, 63, 31, 0.92);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.read-letter-sort-chip:hover,
.read-letter-sort-chip:focus-visible {
    border-color: rgba(160, 97, 58, 0.56);
    background: rgba(255, 238, 224, 0.95);
    transform: translateY(-1px);
    outline: none;
}

.read-letter-sort-tools {
    display: flex;
    align-items: center;
    gap: 0.46rem;
    flex-wrap: wrap;
}

.read-letter-sort-tool {
    border: 1px solid rgba(181, 127, 89, 0.34);
    border-radius: 999px;
    background: rgba(255, 249, 243, 0.92);
    color: rgba(103, 64, 34, 0.9);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.38rem 0.66rem;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.read-letter-sort-tool:hover,
.read-letter-sort-tool:focus-visible {
    border-color: rgba(151, 97, 58, 0.48);
    background: rgba(255, 240, 227, 0.95);
    transform: translateY(-1px);
    outline: none;
}

.read-letter-sort-tool:disabled,
.read-letter-sort-chip:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
}

.qp-vocab-answer,
.read-vocab-answer {
    display: grid;
    gap: 0.28rem;
}

.qp-vocab-answer span,
.read-vocab-answer span {
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(57, 40, 27, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.qp-vocab-input,
.read-vocab-input,
.read-wordbank-input,
.read-scene-yn-input,
.read-letter-sort-input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(122, 96, 72, 0.28);
    background: #fff;
    padding: 0.5rem 0.56rem;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #1f2f1e;
}

.qp-vocab-input:focus,
.read-vocab-input:focus,
.read-wordbank-input:focus,
.read-scene-yn-input:focus,
.read-letter-sort-input:focus {
    border-color: rgba(73, 139, 190, 0.52);
    box-shadow: 0 0 0 3px rgba(73, 139, 190, 0.18);
    outline: none;
}

.qp-vocab-correct,
.read-vocab-correct {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #9a2e1f;
}

.read-scene-yn-correct {
    margin-top: 0.35rem;
}

.question-card--part7-writing {
    border: 1px solid rgba(31, 47, 30, 0.17);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 253, 245, 0.98));
    box-shadow: 0 10px 22px rgba(31, 47, 30, 0.08);
    padding: 1rem 0.95rem;
}

.question-card--part7-writing .question-body {
    gap: 0.72rem;
}

.read-scene-yn-answer--part7 {
    margin-top: 0.5rem;
}

.read-scene-yn-input--part7 {
    min-height: 15rem;
    border-radius: 0;
    border: 0;
    border-bottom: 2px solid rgba(35, 50, 34, 0.5);
    padding: 0.18rem 0;
    resize: vertical;
    line-height: 1.9;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(1.9em - 2px),
        rgba(46, 64, 44, 0.6) calc(1.9em - 2px),
        rgba(46, 64, 44, 0.6) 1.9em
    );
    background-size: 100% 1.9em;
    background-position: 0 0.2em;
}

.read-scene-yn-input--multiline {
    min-height: 6.2rem;
    resize: vertical;
}

.read-scene-yn-input--part7:focus {
    border-color: rgba(49, 98, 157, 0.65);
    box-shadow: none;
}

.media-block {
    border-radius: 14px;
    border: 1px dashed rgba(91, 151, 98, 0.42);
    background: linear-gradient(180deg, rgba(246, 255, 242, 0.96), rgba(236, 249, 230, 0.9));
    padding: 0.72rem 0.78rem;
    display: grid;
    gap: 0.42rem;
    font-size: 0.86rem;
    color: rgba(31, 47, 30, 0.72);
}

.media-block strong {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #2f6a3d;
}

.media-audio audio {
    width: 100%;
}

.media-audio audio[data-internal-audio-source],
.speak-playback audio[data-internal-audio-source],
audio[data-internal-audio-source] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    max-width: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.internal-audio-player {
    display: grid;
    grid-template-columns: 38px auto minmax(96px, 1fr) auto;
    align-items: center;
    gap: 0.68rem;
    width: 100%;
    min-height: 52px;
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    background: rgba(245, 247, 248, 0.96);
    color: #1f2a30;
}

.internal-audio-player__play {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #101820;
    box-shadow: 0 1px 4px rgba(23, 37, 44, 0.12);
    cursor: pointer;
}

.internal-audio-player__play::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid currentColor;
}

.internal-audio-player.is-loading .internal-audio-player__play {
    color: #4d7f55;
    cursor: progress;
}

.internal-audio-player.is-loading .internal-audio-player__play::before {
    width: 16px;
    height: 16px;
    margin-left: 0;
    border: 2px solid rgba(77, 127, 85, 0.22);
    border-top-color: currentColor;
    border-radius: 999px;
    animation: internal-audio-spin 0.78s linear infinite;
}

.internal-audio-player.is-playing .internal-audio-player__play::before {
    width: 14px;
    height: 14px;
    margin-left: 0;
    border: 0;
    background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 10px, currentColor 10px 14px);
    box-shadow: none;
}

.internal-audio-player__play:disabled {
    opacity: 0.46;
    cursor: default;
}

.internal-audio-player__time {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(24, 35, 41, 0.82);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.internal-audio-player__progress {
    width: 100%;
    min-width: 0;
    accent-color: #4d7f55;
}

.internal-audio-player__status {
    grid-column: 1 / -1;
    font-size: 0.76rem;
    font-weight: 700;
    color: #a33a22;
}

.internal-audio-player.is-loading .internal-audio-player__status {
    color: #426a49;
}

.internal-audio-player.is-error {
    background: rgba(255, 244, 240, 0.96);
}

@keyframes internal-audio-spin {
    to {
        transform: rotate(360deg);
    }
}

.read-group-wrapper > .read-yesno-group-intro .media-audio--sticky,
.read-group-wrapper > .read-vocab-group-intro .media-audio--sticky,
.read-group-wrapper > .read-wordbank-group-intro .media-audio--sticky,
.read-group-wrapper > .read-rowbank-group-intro .media-audio--sticky,
.read-group-wrapper > .read-scene-yn-group-intro .media-audio--sticky,
.read-group-wrapper > .read-scene-choice-group-intro .media-audio--sticky,
.read-group-wrapper > .read-dialog-bank-group-intro .media-audio--sticky,
.read-group-wrapper > .read-letter-sort-group-intro .media-audio--sticky,
.listen-group-wrapper > .listen-group-shared-panel .media-audio--sticky {
    position: static;
    margin: 0.4rem 0 0.95rem;
    border-style: solid;
    border-color: rgba(86, 150, 96, 0.36);
    background: linear-gradient(180deg, rgba(245, 253, 244, 0.98), rgba(234, 247, 233, 0.95));
    box-shadow: none;
}

.read-group-wrapper > .read-yesno-group-intro.is-scrollable-content .media-audio--sticky,
.read-group-wrapper > .read-vocab-group-intro.is-scrollable-content .media-audio--sticky,
.read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content .media-audio--sticky,
.read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content .media-audio--sticky,
.read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content .media-audio--sticky,
.read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content .media-audio--sticky,
.read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content .media-audio--sticky,
.read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content .media-audio--sticky {
    position: static;
    top: auto;
    z-index: auto;
    box-shadow: none;
}

.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content .media-audio--sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0.5rem;
    z-index: 12;
    box-shadow: 0 8px 16px rgba(31, 47, 30, 0.12);
}

.media-audio-link {
    display: inline-flex;
    width: fit-content;
    font-size: 0.79rem;
    font-weight: 700;
    color: #2f7f3f;
    text-decoration: none;
}

.media-audio-link:hover,
.media-audio-link:focus-visible {
    text-decoration: underline;
}

.media-image img {
    width: 100%;
    border-radius: 10px;
}

.read-yesno-media,
.qp-yesno-media {
    border-style: solid;
    border-color: rgba(225, 137, 97, 0.5);
    background: linear-gradient(180deg, rgba(255, 246, 239, 0.97), rgba(255, 239, 228, 0.92));
    padding: 0.42rem;
    width: 100%;
    min-height: 202px;
}

.read-yesno-group-example,
.qp-yesno-group-example {
    width: min(340px, 100%);
    justify-self: start;
    border-style: solid;
    border-color: rgba(225, 137, 97, 0.46);
    background: linear-gradient(180deg, rgba(255, 248, 242, 0.98), rgba(255, 240, 231, 0.94));
    padding: 0.4rem;
}

.read-yesno-media strong,
.qp-yesno-media strong {
    display: none;
}

.read-yesno-media img,
.qp-yesno-media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.read-yesno-group-example img,
.qp-yesno-group-example img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.read-yesno-media--empty,
.qp-yesno-media--empty {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(145, 73, 38, 0.9);
}

.media-video {
    text-align: center;
    place-items: center;
}

.play-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: linear-gradient(140deg, #5cc66e, #2f9444);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.options {
    display: grid;
    gap: 0.58rem;
    margin-top: 0.08rem;
}

.options--yesno {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.68rem;
    margin-top: 0;
    align-content: start;
}

.options--dialog-bank {
    grid-template-columns: repeat(auto-fill, minmax(44px, 44px));
    gap: 0.52rem;
    margin-top: 0.12rem;
    align-content: start;
    justify-content: start;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 0.62rem;
    border-radius: 12px;
    border: 1px solid rgba(31, 47, 30, 0.16);
    background: #fff;
    padding: 0.62rem 0.68rem;
    font-size: 0.9rem;
    color: rgba(31, 47, 30, 0.82);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.option-item--yesno {
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0.7rem 0.82rem;
    border-width: 2px;
    position: relative;
    overflow: hidden;
}

.option-item--dialog-bank {
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 44px;
    padding: 0;
    border-radius: 999px;
    border-width: 2px;
    justify-self: start;
    position: relative;
}

.option-item--dialog-bank input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.option-item--dialog-bank .option-key {
    margin-top: 0;
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.9rem;
    border-width: 0;
    background: transparent;
    color: inherit;
}

.option-item--dialog-bank .option-text--sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.option-item--yesno .option-key {
    display: none;
}

.option-item--yesno .option-text {
    font-size: 1rem;
    text-align: center;
    font-weight: 800;
}

.option-text > * {
    margin: 0;
}

.option-item--yesno input {
    position: absolute;
    inset: 0;
    width: 0;
    height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.option-item--yesno[data-choice="yes"],
.option-item--yesno[data-choice="no"] {
    border-color: rgba(118, 134, 152, 0.34);
    background: rgba(236, 241, 247, 0.95);
    color: rgba(66, 81, 99, 0.84);
    box-shadow: none;
}

.option-item--dialog-bank.is-used {
    border-color: rgba(147, 156, 168, 0.5);
    background: rgba(233, 237, 242, 0.96);
    color: rgba(108, 119, 133, 0.92);
    box-shadow: inset 0 0 0 1px rgba(151, 160, 172, 0.2);
    cursor: pointer;
}

.option-item--dialog-bank.is-used:not(.is-selected):not(:has(input:checked)) {
    opacity: 1;
}

.option-item--dialog-bank.is-used .option-key {
    color: rgba(108, 119, 133, 0.92);
}

.option-item--dialog-bank.is-example {
    border-color: rgba(158, 166, 176, 0.4);
    background: rgba(234, 238, 243, 0.96);
    color: rgba(108, 119, 133, 0.92);
    box-shadow: inset 0 0 0 1px rgba(151, 160, 172, 0.2);
    cursor: not-allowed;
    pointer-events: none;
}

.option-item--dialog-bank.is-example .option-key {
    color: rgba(108, 119, 133, 0.92);
}

.option-item--dialog-bank.is-example:hover,
.option-item--dialog-bank.is-example:focus-within {
    border-color: rgba(158, 166, 176, 0.4);
    background: rgba(234, 238, 243, 0.96);
    color: rgba(108, 119, 133, 0.92);
    box-shadow: inset 0 0 0 1px rgba(151, 160, 172, 0.2);
    transform: none;
}

.option-item--dialog-bank.is-used:hover,
.option-item--dialog-bank.is-used:focus-within {
    border-color: rgba(147, 156, 168, 0.5);
    background: rgba(233, 237, 242, 0.96);
    color: rgba(108, 119, 133, 0.92);
    box-shadow: inset 0 0 0 1px rgba(151, 160, 172, 0.2);
    transform: none;
}

.option-item:hover {
    border-color: rgba(46, 132, 66, 0.3);
    background: rgba(245, 252, 241, 0.9);
    transform: translateY(-1px);
}

.option-item:focus-within {
    border-color: rgba(47, 139, 62, 0.42);
    box-shadow: 0 0 0 3px rgba(125, 193, 96, 0.22);
}

.option-item--yesno:not(.is-selected):not(:has(input:checked)):hover,
.option-item--yesno:not(.is-selected):not(:has(input:checked)):focus-within {
    border-color: rgba(103, 120, 140, 0.42);
    background: rgba(229, 236, 245, 0.96);
    color: rgba(55, 73, 92, 0.9);
    box-shadow: 0 8px 18px rgba(48, 62, 78, 0.1);
}

.option-item input {
    accent-color: #2a9d45;
    width: 1rem;
    height: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.option-key {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 47, 30, 0.22);
    background: #fff;
    color: rgba(31, 47, 30, 0.74);
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.03rem;
}

.option-text {
    flex: 1;
    line-height: 1.45;
    font-weight: 700;
}

.option-item.is-selected,
.option-item:has(input:checked) {
    border-color: rgba(57, 147, 70, 0.5);
    background: rgba(129, 201, 92, 0.08);
    color: #245336;
    box-shadow: 0 10px 20px rgba(47, 140, 66, 0.12);
}

.option-item.is-selected .option-key,
.option-item:has(input:checked) .option-key {
    border-color: rgba(46, 127, 59, 0.44);
    background: rgba(235, 251, 229, 0.96);
    color: #206138;
}

.option-item--yesno.is-selected[data-choice="yes"],
.option-item--yesno[data-choice="yes"]:has(input:checked) {
    border-color: rgba(41, 132, 71, 0.52);
    background: rgba(199, 239, 212, 0.96);
    color: #16592d;
}

.option-item--yesno.is-selected[data-choice="no"],
.option-item--yesno[data-choice="no"]:has(input:checked) {
    border-color: rgba(204, 72, 72, 0.48);
    background: rgba(255, 214, 214, 0.96);
    color: #8f2623;
    box-shadow: 0 10px 20px rgba(182, 62, 62, 0.12);
}

.question-card--scene-yesno .option-item--yesno[data-choice="yes"],
.question-card--scene-yesno .option-item--yesno[data-choice="no"] {
    border-color: rgba(118, 134, 152, 0.34);
    background: rgba(236, 241, 247, 0.95);
    color: rgba(66, 81, 99, 0.84);
    box-shadow: none;
}

.question-card--scene-yesno .option-item--yesno:not(.is-selected):not(:has(input:checked)):hover,
.question-card--scene-yesno .option-item--yesno:not(.is-selected):not(:has(input:checked)):focus-within {
    border-color: rgba(103, 120, 140, 0.42);
    background: rgba(229, 236, 245, 0.96);
    color: rgba(55, 73, 92, 0.9);
    box-shadow: 0 8px 18px rgba(48, 62, 78, 0.1);
}

.question-card--scene-yesno .option-item--yesno.is-selected[data-choice="yes"],
.question-card--scene-yesno .option-item--yesno[data-choice="yes"]:has(input:checked) {
    border-color: rgba(41, 132, 71, 0.52);
    background: rgba(199, 239, 212, 0.96);
    color: #16592d;
}

.question-card--scene-yesno .option-item--yesno.is-selected[data-choice="no"],
.question-card--scene-yesno .option-item--yesno[data-choice="no"]:has(input:checked) {
    border-color: rgba(204, 72, 72, 0.48);
    background: rgba(255, 214, 214, 0.96);
    color: #8f2623;
}

.option-item--dialog-bank.is-selected,
.option-item--dialog-bank:has(input:checked) {
    border-color: rgba(41, 132, 71, 0.62);
    background: rgba(196, 236, 208, 0.96);
    color: #145b32;
}

.option-item--dialog-bank.is-selected .option-key,
.option-item--dialog-bank:has(input:checked) .option-key {
    color: #145b32;
}

.question-card--listen-drag-names {
    border-color: rgba(41, 110, 54, 0.24);
}

.listen-group-wrapper {
    display: grid;
    gap: 0;
    border-radius: 18px;
    border: 2px solid rgba(46, 139, 87, 0.34);
    background: #fff;
    box-shadow: 0 10px 22px rgba(31, 47, 30, 0.08);
    overflow: visible;
}

.listen-group-wrapper > .listen-group-sticky-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 22;
    margin: 0;
    padding: 0.42rem 0.82rem;
    border-bottom: 1px solid rgba(46, 139, 87, 0.24);
    background: rgba(233, 248, 239, 0.98);
    pointer-events: none;
    border-radius: 16px 16px 0 0;
}

.listen-group-wrapper > .listen-group-sticky-header .listen-group-sticky-header__label,
.listen-group-wrapper > .listen-group-sticky-header > .question-grid-part-label {
    margin: 0;
    border-color: rgba(237, 30, 121, 0.34) !important;
    background: rgba(237, 30, 121, 0.10) !important;
    color: #b0175d !important;
}

.listen-group-wrapper > .listen-group-sticky-header .listen-group-sticky-header__label[data-listen-level="movers"],
.listen-group-wrapper > .listen-group-sticky-header > .question-grid-part-label[data-listen-level="movers"] {
    border-color: rgba(23, 143, 95, 0.3) !important;
    background: rgba(23, 143, 95, 0.12) !important;
    color: #0f6f49 !important;
}

.listen-group-wrapper > .listen-group-sticky-header .listen-group-sticky-header__label[data-listen-level="flyers"],
.listen-group-wrapper > .listen-group-sticky-header > .question-grid-part-label[data-listen-level="flyers"] {
    border-color: rgba(88, 102, 214, 0.34) !important;
    background: rgba(88, 102, 214, 0.11) !important;
    color: #3b4ab0 !important;
}

.listen-group-wrapper > .listen-group-sticky-header[data-listen-level="starters"] {
    background: rgba(252, 235, 244, 0.99) !important;
    border-bottom-color: rgba(237, 30, 121, 0.22) !important;
}

.listen-group-wrapper > .listen-group-sticky-header[data-listen-level="movers"] {
    background: rgba(231, 247, 238, 0.99) !important;
    border-bottom-color: rgba(23, 143, 95, 0.24) !important;
}

.listen-group-wrapper > .listen-group-sticky-header[data-listen-level="flyers"] {
    background: rgba(236, 240, 255, 0.99) !important;
    border-bottom-color: rgba(88, 102, 214, 0.24) !important;
}

.listen-group-wrapper > .listen-group-shared-panel {
    padding: 0.42rem 0.82rem 0.26rem;
    border-bottom: 1px solid rgba(83, 127, 176, 0.18);
    background: linear-gradient(180deg, rgba(247, 252, 255, 0.99), rgba(241, 248, 255, 0.98));
    position: static;
    top: auto;
    z-index: auto;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-width: auto;
    cursor: default;
}

.listen-group-wrapper > .listen-group-shared-sticky-stack {
    position: -webkit-sticky;
    position: sticky;
    top: var(--listen-group-header-height, 46px);
    z-index: 14;
    display: grid;
    gap: 0.48rem;
    margin: 0;
    padding: 0.34rem 0.82rem 0.52rem;
    border-bottom: 1px solid rgba(83, 127, 176, 0.18);
    background: linear-gradient(180deg, rgba(247, 252, 255, 1), rgba(241, 248, 255, 0.99));
}

.listen-group-wrapper > .listen-group-shared-sticky-stack > .question-text--boxed {
    position: static;
    margin: 0;
    z-index: auto;
    box-shadow: 0 8px 16px rgba(78, 35, 58, 0.12);
    border-style: solid;
    border-color: rgba(224, 116, 171, 0.46);
    background: linear-gradient(180deg, rgba(255, 242, 249, 0.98), rgba(255, 234, 246, 0.95));
    color: #8f3f6e;
}

.listen-group-wrapper > .listen-group-shared-sticky-stack > .media-audio--sticky {
    position: static !important;
    top: auto !important;
    margin: 0;
    z-index: auto !important;
    box-shadow: 0 8px 16px rgba(31, 47, 30, 0.12);
}

.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content {
    cursor: grab !important;
    padding-bottom: 1.9rem;
}

.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content * {
    cursor: inherit !important;
}

.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content.is-drag-scrolling {
    cursor: grabbing;
}

.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content::after {
    content: "↕ Cuộn";
    position: absolute;
    top: 0.34rem;
    right: 0.5rem;
    z-index: 2;
    pointer-events: none;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: rgba(38, 95, 57, 0.86);
    border: 1px solid rgba(96, 148, 108, 0.38);
    border-radius: 999px;
    padding: 0.12rem 0.4rem;
    background: rgba(244, 251, 245, 0.92);
    box-shadow: 0 3px 8px rgba(31, 47, 30, 0.1);
}

.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content.show-scroll-down-hint::before {
    content: "Cuộn xuống (hoặc kéo) để xem hết nội dung";
    position: absolute;
    left: 50%;
    bottom: 0.56rem;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
    letter-spacing: 0.01em;
    color: #ffffff;
    border: 1.5px solid rgba(198, 51, 122, 0.72);
    border-radius: 999px;
    padding: 0.24rem 0.82rem;
    background: linear-gradient(180deg, rgba(247, 86, 156, 0.98), rgba(227, 42, 124, 0.98));
    box-shadow: 0 8px 18px rgba(164, 27, 88, 0.32);
    animation: scroll-hint-blink 1.2s ease-in-out infinite;
}

.listen-group-wrapper > .listen-group-shared-panel::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.listen-group-wrapper > .listen-group-shared-panel::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(233, 241, 233, 0.9);
}

.listen-group-wrapper > .listen-group-shared-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(117, 158, 124, 0.78);
}

.listen-group-wrapper > .listen-group-shared-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 136, 102, 0.9);
}

.listen-group-wrapper > .listen-group-shared-panel .listen-drag-group-intro {
    margin-bottom: 0.62rem;
}

.listen-group-wrapper > .listen-group-shared-panel .listen-drag-shared-media {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}


.listen-group-wrapper > .listen-group-sticky-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 22 !important;
}

.listen-group-wrapper > .listen-group-shared-panel {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    scrollbar-width: auto !important;
    cursor: default !important;
}

.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content {
    cursor: default !important;
    padding-bottom: 0.86rem !important;
}

.listen-group-wrapper > .listen-group-shared-panel + .question-card.question-card--listen-drag-names {
    margin-top: 0.08rem !important;
}

.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content * {
    cursor: inherit !important;
}

.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content input:not([type="radio"]):not([type="checkbox"]),
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content textarea,
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content [contenteditable="true"] {
    cursor: text !important;
}

.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content a,
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content button,
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content label,
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content select,
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content summary,
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content audio,
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content video,
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content input[type="radio"],
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content input[type="checkbox"],
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content .option-item,
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content .mark-later,
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content [role="button"] {
    cursor: pointer !important;
}

.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content::after,
.listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content.show-scroll-down-hint::before {
    content: none !important;
    display: none !important;
}

#part-listen .media-audio--sticky {
    position: sticky;
    top: 0.5rem;
    z-index: 12;
    box-shadow: 0 8px 16px rgba(31, 47, 30, 0.12);
}

.listen-group-wrapper > .question-card.question-card--listen-drag-names {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0.62rem 0.74rem;
    background: linear-gradient(180deg, rgba(250, 253, 255, 0.62), rgba(244, 249, 255, 0.42)) !important;
}

.listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head {
    position: sticky;
    top: 0;
    z-index: 6;
    margin: 0;
    gap: 0.46rem;
    padding: 0.22rem 0;
    background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(247, 252, 255, 0.96));
    border-bottom: 1px solid rgba(83, 127, 176, 0.2);
}

.listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head::before {
    content: "";
    order: 2;
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(42, 87, 132, 0.48), rgba(42, 87, 132, 0.2));
    border-radius: 999px;
}

.listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head strong {
    order: 1;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(31, 77, 121, 0.95);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
}

.listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head .mark-later {
    order: 3;
}

.listen-group-wrapper > .question-card.question-card--listen-drag-names .listen-drag-question-title {
    position: sticky;
    top: 2.02rem;
    z-index: 5;
    margin: 0;
    padding: 0.44rem 0 0.3rem;
    background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(247, 252, 255, 0.95));
    border-bottom: 1px dashed rgba(116, 165, 123, 0.34);
}

.listen-group-wrapper > .question-card.question-card--listen-drag-names + .question-card.question-card--listen-drag-names {
    border-top: 1px solid rgba(83, 127, 176, 0.18) !important;
}

.listen-group-wrapper > .question-card.question-card--listen-drag-names:hover {
    border-color: transparent !important;
    box-shadow: none !important;
    background: rgba(240, 248, 255, 0.18) !important;
}

.question-card,
.speak-movers-q {
    --question-level-head-bg: linear-gradient(180deg, rgba(232, 249, 238, 0.92), rgba(245, 252, 247, 0.84));
    --question-level-head-border: rgba(35, 120, 72, 0.18);
    --question-level-pill-bg: linear-gradient(180deg, rgba(232, 249, 238, 0.98), rgba(205, 241, 218, 0.98));
    --question-level-pill-border: rgba(35, 120, 72, 0.38);
    --question-level-pill-text: #1c643f;
    --question-card-hover-border: rgba(39, 118, 62, 0.4);
    --question-card-hover-glow: rgba(76, 175, 80, 0.12);
    --question-card-hover-bg: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 249, 235, 0.99));
}

.question-card[data-question-level="starters"],
.speak-movers-q[data-question-level="starters"] {
    --question-level-head-bg: linear-gradient(180deg, rgba(252, 235, 244, 0.92), rgba(255, 246, 251, 0.86));
    --question-level-head-border: rgba(237, 30, 121, 0.16);
    --question-level-pill-bg: linear-gradient(180deg, rgba(255, 237, 246, 0.98), rgba(255, 221, 237, 0.98));
    --question-level-pill-border: rgba(237, 30, 121, 0.3);
    --question-level-pill-text: #b0175d;
    --question-card-hover-border: rgba(237, 30, 121, 0.38);
    --question-card-hover-glow: rgba(237, 30, 121, 0.12);
    --question-card-hover-bg: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 239, 247, 0.99));
}

.question-card[data-question-level="movers"],
.speak-movers-q[data-question-level="movers"] {
    --question-level-head-bg: linear-gradient(180deg, rgba(233, 248, 239, 0.92), rgba(245, 252, 247, 0.84));
    --question-level-head-border: rgba(23, 143, 95, 0.16);
    --question-level-pill-bg: linear-gradient(180deg, rgba(232, 249, 238, 0.98), rgba(205, 241, 218, 0.98));
    --question-level-pill-border: rgba(23, 143, 95, 0.3);
    --question-level-pill-text: #0f6f49;
    --question-card-hover-border: rgba(23, 143, 95, 0.4);
    --question-card-hover-glow: rgba(23, 143, 95, 0.12);
    --question-card-hover-bg: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(236, 249, 241, 0.99));
}

.question-card[data-question-level="flyers"],
.speak-movers-q[data-question-level="flyers"] {
    --question-level-head-bg: linear-gradient(180deg, rgba(236, 240, 255, 0.94), rgba(248, 250, 255, 0.86));
    --question-level-head-border: rgba(88, 102, 214, 0.18);
    --question-level-pill-bg: linear-gradient(180deg, rgba(236, 240, 255, 0.98), rgba(219, 226, 255, 0.98));
    --question-level-pill-border: rgba(88, 102, 214, 0.34);
    --question-level-pill-text: #3b4ab0;
    --question-card-hover-border: rgba(88, 102, 214, 0.38);
    --question-card-hover-glow: rgba(88, 102, 214, 0.12);
    --question-card-hover-bg: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(240, 244, 255, 0.99));
}

.question-card .question-head,
.speak-movers-q .question-head,
.read-group-wrapper > .question-card .question-head,
.listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head,
.speak-group-wrapper > .question-card.question-card--speak .question-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.72rem;
    padding: 0.48rem 0.72rem !important;
    background: var(--question-level-head-bg) !important;
    border-bottom: 1px solid var(--question-level-head-border) !important;
}

.question-card .question-head {
    margin: -1rem -0.95rem 0.78rem;
    border-radius: 16px 16px 0 0;
}

.read-group-wrapper > .question-card .question-head,
.listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head,
.speak-group-wrapper > .question-card.question-card--speak .question-head {
    margin: -0.56rem -0.72rem 0.56rem !important;
    border-radius: 0 !important;
}

.speak-movers-q .question-head {
    margin: 0;
    border-radius: 0;
}

.question-card .question-head::before,
.speak-movers-q .question-head::before,
.read-group-wrapper > .question-card .question-head::before,
.listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head::before,
.speak-group-wrapper > .question-card.question-card--speak .question-head::before {
    content: none !important;
    display: none !important;
}

.question-card .question-head strong,
.speak-movers-q .question-head strong,
.read-group-wrapper > .question-card .question-head strong,
.listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head strong,
.speak-group-wrapper > .question-card.question-card--speak .question-head strong {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin: 0;
    padding: 0.22rem 0.72rem !important;
    border-radius: 999px !important;
    border: 1px solid var(--question-level-pill-border) !important;
    background: var(--question-level-pill-bg) !important;
    color: var(--question-level-pill-text) !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.question-card .question-head .mark-later,
.speak-movers-q .question-head .mark-later,
.read-group-wrapper > .question-card .question-head .mark-later,
.listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head .mark-later,
.speak-group-wrapper > .question-card.question-card--speak .question-head .mark-later {
    margin-left: auto;
    flex-shrink: 0;
}

.speak-movers-q--example .question-head strong {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.read-group-wrapper > .question-card.question-card--part7-writing {
    border: none !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(250, 253, 255, 0.62), rgba(244, 249, 255, 0.42)) !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0.56rem 0.72rem;
}

.read-group-wrapper > .question-card,
.read-group-wrapper > .question-card.question-card--yesno,
.read-group-wrapper > .question-card.question-card--vocab,
.read-group-wrapper > .question-card.question-card--wordbank,
.read-group-wrapper > .question-card.question-card--rowbank,
.read-group-wrapper > .question-card.question-card--scene-yesno,
.read-group-wrapper > .question-card.question-card--scene-choice,
.read-group-wrapper > .question-card.question-card--dialog-bank,
.read-group-wrapper > .question-card.question-card--letter-sort,
.read-group-wrapper > .question-card.question-card--part7-writing,
.listen-group-wrapper > .question-card.question-card--listen-drag-names,
.speak-group-wrapper > .question-card.question-card--speak {
    border: 1px solid rgba(237, 30, 121, 0.18) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 253, 245, 0.98)) !important;
    box-shadow: 0 10px 22px rgba(31, 47, 30, 0.08) !important;
    outline: none !important;
    margin: 0 0.72rem 0.72rem !important;
    padding: 1rem 0.95rem !important;
    overflow: hidden;
    scroll-margin-top: 120px;
}

.read-group-wrapper > .question-card + .question-card,
.listen-group-wrapper > .question-card.question-card--listen-drag-names + .question-card.question-card--listen-drag-names,
.speak-group-wrapper > .question-card.question-card--speak + .question-card.question-card--speak {
    border-top: 1px solid rgba(237, 30, 121, 0.18) !important;
    margin-top: 0 !important;
    padding-top: 1rem !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 253, 245, 0.98)) !important;
}

.read-group-wrapper > .question-card:hover,
.listen-group-wrapper > .question-card.question-card--listen-drag-names:hover,
.speak-group-wrapper > .question-card.question-card--speak:hover,
.read-group-wrapper > .question-card:focus-within,
.listen-group-wrapper > .question-card.question-card--listen-drag-names:focus-within,
.speak-group-wrapper > .question-card.question-card--speak:focus-within,
.read-group-wrapper > .question-card.is-jump-highlight,
.listen-group-wrapper > .question-card.question-card--listen-drag-names.is-jump-highlight,
.speak-group-wrapper > .question-card.question-card--speak.is-jump-highlight {
    border-color: var(--question-card-hover-border, rgba(39, 118, 62, 0.4)) !important;
    box-shadow: 0 18px 36px rgba(31, 47, 30, 0.16), 0 0 0 3px var(--question-card-hover-glow, rgba(140, 198, 63, 0.08)) !important;
    background: var(--question-card-hover-bg, linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 249, 235, 0.99))) !important;
    transform: translateY(-2px) scale(1.01);
}

.read-group-wrapper > .read-yesno-group-intro,
.read-group-wrapper > .read-vocab-group-intro,
.read-group-wrapper > .read-wordbank-group-intro,
.read-group-wrapper > .read-rowbank-group-intro,
.read-group-wrapper > .read-scene-yn-group-intro,
.read-group-wrapper > .read-scene-choice-group-intro,
.read-group-wrapper > .read-dialog-bank-group-intro,
.read-group-wrapper > .read-letter-sort-group-intro {
    margin-bottom: 0.82rem;
}

.read-group-wrapper > .read-yesno-group-intro + .question-card,
.read-group-wrapper > .read-vocab-group-intro + .question-card,
.read-group-wrapper > .read-wordbank-group-intro + .question-card,
.read-group-wrapper > .read-rowbank-group-intro + .question-card,
.read-group-wrapper > .read-scene-yn-group-intro + .question-card,
.read-group-wrapper > .read-scene-choice-group-intro + .question-card,
.read-group-wrapper > .read-dialog-bank-group-intro + .question-card,
.read-group-wrapper > .read-letter-sort-group-intro + .question-card {
    margin-top: 0.08rem !important;
}

.read-group-wrapper > .question-card .question-head,
.listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head,
.speak-group-wrapper > .question-card.question-card--speak .question-head {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    margin: -1rem -0.95rem 0.78rem !important;
    border-radius: 16px 16px 0 0 !important;
}

.listen-group-wrapper > .question-card.question-card--listen-drag-names .listen-drag-question-title {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    margin: 0 0 0.72rem !important;
    padding: 0 !important;
    background: transparent !important;
    border-bottom: none !important;
}

.listen-drag-group-intro {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.listen-drag-group-intro h3 {
    margin: 0;
    font-size: 0.94rem;
    color: #1f5c30;
}

.listen-drag-group-intro .question-text--boxed,
.listen-group-wrapper > .listen-group-shared-panel > .question-text--boxed,
.listen-group-wrapper > .listen-group-shared-sticky-stack > .question-text--boxed,
.listen-group-wrapper > .listen-group-shared-panel > .listen-group-shared-sticky-stack > .question-text--boxed {
    border-style: solid;
    border-color: rgba(224, 116, 171, 0.46);
    background: linear-gradient(180deg, rgba(255, 242, 249, 0.98), rgba(255, 234, 246, 0.95));
    color: #8f3f6e;
}

.listen-drag-question-title {
    margin: 0 0 0.35rem;
    font-size: 1.42rem;
    line-height: 1.2;
    color: #1f5c30;
}

.listen-drag-shared-media {
    display: grid;
    gap: 0.68rem;
    margin-bottom: 0.52rem;
    padding-bottom: 0.42rem;
    border-bottom: 1px dashed rgba(116, 165, 123, 0.44);
}

.listen-drag-example-box {
    margin: 0;
    border-style: solid;
    border-color: rgba(73, 139, 190, 0.3);
    background: linear-gradient(180deg, rgba(246, 252, 255, 0.95), rgba(236, 246, 255, 0.92));
    color: #3b4f63;
}

.listen-drag-bank-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.56rem;
    margin: 0.28rem 0 0.22rem;
}

.listen-group-wrapper > .listen-group-shared-panel > .listen-drag-bank-preview {
    margin: 0.74rem 0 1.02rem;
}

.listen-drag-bank-preview__item {
    border: 2px dashed #f37b6f;
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.listen-drag-bank-preview__item.is-color-choice,
.listen-drag-bank__item.is-color-choice,
.listen-drag-selected.is-color-choice,
.listen-drag-zone__answer.is-color-choice {
    border-style: solid;
    border-width: 2px;
    font-weight: 900;
}

.listen-drag-bank__item.is-color-choice {
    opacity: 0.58;
    filter: saturate(0.4) brightness(1.06);
    transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.15s ease, filter 0.18s ease, opacity 0.18s ease;
}

.listen-drag-bank__item.is-color-choice:not(.is-selected) {
    border-color: #cbd5e1 !important;
    box-shadow: none;
    color: #111827;
}

.listen-drag-board {
    display: grid;
    gap: 0.65rem;
}

.listen-drag-scene {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(31, 47, 30, 0.18);
    overflow: hidden;
    background: #f2f7ef;
    cursor: grab;
}

.listen-drag-scene img {
    display: block;
    width: 100%;
    height: auto;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.question-drag-scroll-surface.is-drag-scrolling .listen-drag-scene,
.question-drag-scroll-surface.is-drag-scrolling .listen-drag-scene img,
.listen-drag-scroll-surface.is-drag-scrolling .listen-drag-scene,
.listen-drag-scroll-surface.is-drag-scrolling .listen-drag-scene img,
.listen-drag-scene:active,
.listen-drag-scene:active img {
    cursor: grabbing;
}

.listen-drag-zone {
    position: absolute;
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-block;
    text-align: center;
    pointer-events: auto;
    overflow: visible;
    transform: translate3d(var(--listen-zone-shift-x, -50%), var(--listen-zone-shift-y, -50%), 0);
    cursor: default !important;
}

.listen-drag-zone__anchor {
    position: relative;
    display: inline-block;
}

.listen-drag-zone .listen-drag-zone__number,
.listen-drag-zone .listen-drag-zone__answer {
    cursor: default !important;
}

.listen-drag-zone[data-listen-zone-owner]:not([data-listen-drag-drop]) {
    pointer-events: none;
}

.listen-drag-zone[data-listen-zone-owner]:focus-visible {
    outline: 2px solid rgba(58, 122, 224, 0.72);
    outline-offset: 2px;
}

.listen-drag-zone.is-background {
    opacity: 0.78;
}

.listen-drag-zone.is-current .listen-drag-zone__number {
    transform: translate(-100%, -50%) scale(1.04) translateZ(0);
}

.listen-drag-zone.is-edge-left .listen-drag-zone__number {
    left: auto;
    right: -4px;
    transform: translate(100%, -50%) translateZ(0);
}

.listen-drag-zone.is-current.is-edge-left .listen-drag-zone__number {
    transform: translate(100%, -50%) scale(1.04) translateZ(0);
}

.listen-drag-zone.is-example {
    background: transparent;
}

.listen-drag-zone__number {
    width: 26px;
    height: 26px;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: #df2f2f;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 0;
    box-shadow: 0 6px 12px rgba(171, 22, 22, 0.32);
    flex: 0 0 26px;
    position: absolute;
    top: 50%;
    left: -4px;
    transform: translate(-100%, -50%) translateZ(0);
    z-index: 2;
}

.listen-drag-zone.is-example .listen-drag-zone__number {
    background: linear-gradient(180deg, #20a55c, #178a4b);
    box-shadow: 0 8px 18px rgba(25, 125, 61, 0.3);
}

.listen-drag-zone__answer {
    box-sizing: content-box;
    min-width: 74px;
    min-height: 26px;
    height: 26px;
    border-radius: 7px;
    background: transparent;
    border: 1px solid transparent;
    color: transparent;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0.45rem;
    box-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transform: translateZ(0);
    transition: opacity 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.listen-drag-zone .listen-drag-zone__answer.is-revealed {
    border-color: rgba(223, 47, 47, 0.48);
    background: rgba(255, 255, 255, 0.96);
    color: #1f2f44;
    box-shadow: 0 6px 12px rgba(27, 36, 49, 0.16);
    opacity: 1;
}

.listen-drag-zone.is-example .listen-drag-zone__answer {
    border-color: rgba(223, 47, 47, 0.48);
    background: rgba(255, 255, 255, 0.96);
    color: #1f2f44;
    box-shadow: 0 6px 12px rgba(27, 36, 49, 0.16);
    opacity: 1;
}

.listen-drag-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 0.56rem;
}

.question-drag-scroll-surface,
.listen-drag-scroll-surface,
.speak-drag-scroll-surface {
    cursor: grab;
}

.question-drag-scroll-surface:active,
.question-drag-scroll-surface.is-drag-scrolling,
.listen-drag-scroll-surface:active,
.listen-drag-scroll-surface.is-drag-scrolling,
.speak-drag-scroll-surface:active,
.speak-drag-scroll-surface.is-drag-scrolling {
    cursor: grabbing;
}

.question-drag-scroll-surface a,
.question-drag-scroll-surface button,
.question-drag-scroll-surface label,
.question-drag-scroll-surface summary,
.question-drag-scroll-surface audio,
.question-drag-scroll-surface video,
.question-drag-scroll-surface .option-item,
.question-drag-scroll-surface .mark-later,
.listen-drag-scroll-surface a,
.listen-drag-scroll-surface button,
.listen-drag-scroll-surface label,
.listen-drag-scroll-surface summary,
.listen-drag-scroll-surface audio,
.listen-drag-scroll-surface video,
.listen-drag-scroll-surface .option-item,
.listen-drag-scroll-surface .mark-later,
.speak-drag-scroll-surface a,
.speak-drag-scroll-surface button,
.speak-drag-scroll-surface label,
.speak-drag-scroll-surface summary,
.speak-drag-scroll-surface audio,
.speak-drag-scroll-surface video,
.speak-drag-scroll-surface .option-item,
.speak-drag-scroll-surface .mark-later,
.speak-drag-scroll-surface [data-speak-image-option],
.speak-drag-scroll-surface [data-speak-scene-overlay],
.speak-drag-scroll-surface [data-movers-overlay],
.speak-drag-scroll-surface .speak-movers-game__question-pin,
.speak-drag-scroll-surface .speak-movers-game__region--flyers-jump {
    cursor: pointer;
}

.question-drag-scroll-surface input:not([type="radio"]):not([type="checkbox"]),
.question-drag-scroll-surface textarea,
.question-drag-scroll-surface [contenteditable="true"],
.listen-drag-scroll-surface input:not([type="radio"]):not([type="checkbox"]),
.listen-drag-scroll-surface textarea,
.listen-drag-scroll-surface [contenteditable="true"],
.speak-drag-scroll-surface input:not([type="radio"]):not([type="checkbox"]),
.speak-drag-scroll-surface textarea,
.speak-drag-scroll-surface [contenteditable="true"] {
    cursor: text;
}

.question-drag-scroll-surface select,
.question-drag-scroll-surface input[type="radio"],
.question-drag-scroll-surface input[type="checkbox"],
.question-drag-scroll-surface [role="button"],
.listen-drag-scroll-surface select,
.listen-drag-scroll-surface input[type="radio"],
.listen-drag-scroll-surface input[type="checkbox"],
.listen-drag-scroll-surface [role="button"],
.speak-drag-scroll-surface select,
.speak-drag-scroll-surface input[type="radio"],
.speak-drag-scroll-surface input[type="checkbox"],
.speak-drag-scroll-surface [role="button"] {
    cursor: pointer;
}

.listen-drag-bank__item {
    appearance: none;
    border: 2px dashed #f37b6f;
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 0.46rem 0.78rem;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.1;
    min-height: 40px;
    min-width: 128px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.listen-drag-bank__item:hover,
.listen-drag-bank__item:focus-visible {
    transform: translateY(-1px);
    border-color: #df6f61;
    box-shadow: 0 10px 18px rgba(227, 98, 83, 0.2);
    outline: none;
}

.listen-drag-bank__item.is-selected {
    border-style: solid;
    border-color: #2ea85c;
    background: #e8f8ee;
    color: #136a38;
}

.listen-drag-bank__item.is-used:not(.is-selected) {
    border-style: solid;
    border-color: rgba(154, 163, 176, 0.72);
    background: rgba(235, 239, 244, 0.96);
    color: rgba(90, 103, 119, 0.92);
    box-shadow: inset 0 0 0 1px rgba(166, 175, 188, 0.18);
}

.listen-drag-bank__item.is-used:not(.is-selected):hover,
.listen-drag-bank__item.is-used:not(.is-selected):focus-visible {
    border-color: rgba(144, 154, 167, 0.8);
    background: rgba(235, 239, 244, 0.96);
    color: rgba(73, 85, 101, 0.94);
    box-shadow: 0 10px 18px rgba(148, 163, 184, 0.14), inset 0 0 0 1px rgba(166, 175, 188, 0.18);
}

.listen-drag-bank__item.review-correct {
    border-style: solid;
    border-color: #21964a;
    background: #dcf6e2;
    color: #0d4a21;
}

.listen-drag-bank__item.review-selected-wrong {
    border-style: solid;
    border-color: #cf4d45;
    background: #ffe9e7;
    color: #8a2e29;
}

.listen-drag-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.listen-drag-answer-field {
    width: 100%;
}

.listen-drag-selected {
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(31, 47, 30, 0.74);
}

.listen-drag-selected:empty {
    display: none;
}

.listen-drag-answer-note__label,
.listen-drag-answer-note__value {
    display: block;
}

.listen-drag-answer-note__label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.listen-drag-answer-note__value {
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.3;
}

.listen-drag-selected.is-color-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.28rem 0.78rem;
    line-height: 1.12;
}

.listen-drag-bank-preview__item.is-color-choice[data-color-choice="red"],
.listen-drag-bank__item.is-color-choice[data-color-choice="red"],
.listen-drag-selected.is-color-choice[data-color-choice="red"],
.listen-drag-zone__answer.is-color-choice[data-color-choice="red"] {
    background: #fde8e8;
    border-color: #dc2626;
    color: #991b1b;
}

.listen-drag-bank-preview__item.is-color-choice[data-color-choice="yellow"],
.listen-drag-bank__item.is-color-choice[data-color-choice="yellow"],
.listen-drag-selected.is-color-choice[data-color-choice="yellow"],
.listen-drag-zone__answer.is-color-choice[data-color-choice="yellow"] {
    background: #fef9c3;
    border-color: #ca8a04;
    color: #854d0e;
}

.listen-drag-bank-preview__item.is-color-choice[data-color-choice="blue"],
.listen-drag-bank__item.is-color-choice[data-color-choice="blue"],
.listen-drag-selected.is-color-choice[data-color-choice="blue"],
.listen-drag-zone__answer.is-color-choice[data-color-choice="blue"] {
    background: #dbeafe;
    border-color: #2563eb;
    color: #1e3a8a;
}

.listen-drag-bank-preview__item.is-color-choice[data-color-choice="green"],
.listen-drag-bank__item.is-color-choice[data-color-choice="green"],
.listen-drag-selected.is-color-choice[data-color-choice="green"],
.listen-drag-zone__answer.is-color-choice[data-color-choice="green"] {
    background: #dcfce7;
    border-color: #16a34a;
    color: #166534;
}

.listen-drag-bank-preview__item.is-color-choice[data-color-choice="orange"],
.listen-drag-bank__item.is-color-choice[data-color-choice="orange"],
.listen-drag-selected.is-color-choice[data-color-choice="orange"],
.listen-drag-zone__answer.is-color-choice[data-color-choice="orange"] {
    background: #ffedd5;
    border-color: #ea580c;
    color: #9a3412;
}

.listen-drag-bank-preview__item.is-color-choice[data-color-choice="purple"],
.listen-drag-bank__item.is-color-choice[data-color-choice="purple"],
.listen-drag-selected.is-color-choice[data-color-choice="purple"],
.listen-drag-zone__answer.is-color-choice[data-color-choice="purple"] {
    background: #f3e8ff;
    border-color: #9333ea;
    color: #6b21a8;
}

.listen-drag-bank-preview__item.is-color-choice[data-color-choice="pink"],
.listen-drag-bank__item.is-color-choice[data-color-choice="pink"],
.listen-drag-selected.is-color-choice[data-color-choice="pink"],
.listen-drag-zone__answer.is-color-choice[data-color-choice="pink"] {
    background: #fce7f3;
    border-color: #db2777;
    color: #9d174d;
}

.listen-drag-bank-preview__item.is-color-choice[data-color-choice="brown"],
.listen-drag-bank__item.is-color-choice[data-color-choice="brown"],
.listen-drag-selected.is-color-choice[data-color-choice="brown"],
.listen-drag-zone__answer.is-color-choice[data-color-choice="brown"] {
    background: #efebe9;
    border-color: #795548;
    color: #4e342e;
}

.listen-drag-bank-preview__item.is-color-choice[data-color-choice="black"],
.listen-drag-bank__item.is-color-choice[data-color-choice="black"],
.listen-drag-selected.is-color-choice[data-color-choice="black"],
.listen-drag-zone__answer.is-color-choice[data-color-choice="black"] {
    background: #111827;
    border-color: #030712;
    color: #f9fafb;
}

.listen-drag-bank-preview__item.is-color-choice[data-color-choice="white"],
.listen-drag-bank__item.is-color-choice[data-color-choice="white"],
.listen-drag-selected.is-color-choice[data-color-choice="white"],
.listen-drag-zone__answer.is-color-choice[data-color-choice="white"] {
    background: #ffffff;
    border-color: #9ca3af;
    color: #111827;
}

.listen-drag-bank-preview__item.is-color-choice[data-color-choice="gray"],
.listen-drag-bank__item.is-color-choice[data-color-choice="gray"],
.listen-drag-selected.is-color-choice[data-color-choice="gray"],
.listen-drag-zone__answer.is-color-choice[data-color-choice="gray"] {
    background: #e5e7eb;
    border-color: #6b7280;
    color: #1f2937;
}

.listen-drag-bank-preview__item.is-color-choice[data-color-choice="skyblue"],
.listen-drag-bank__item.is-color-choice[data-color-choice="skyblue"],
.listen-drag-selected.is-color-choice[data-color-choice="skyblue"],
.listen-drag-zone__answer.is-color-choice[data-color-choice="skyblue"] {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #075985;
}

.listen-drag-bank__item.is-color-choice:not(.is-selected):not(.is-used) {
    color: #111827;
}

.listen-drag-bank__item.is-color-choice[data-color-choice="black"]:not(.is-selected):not(.is-used) {
    background: #f8fafc;
    border-color: #111827;
    color: #111827;
}

@keyframes listen-color-choice-pulse {
    0% {
        transform: translateY(-1px) scale(1);
        box-shadow: 0 0 0 0 rgba(16, 24, 40, 0.24);
    }
    70% {
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 0 0 8px rgba(16, 24, 40, 0);
    }
    100% {
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 10px 18px rgba(16, 24, 40, 0.18);
    }
}

.listen-drag-bank__item.is-color-choice.is-selected {
    animation: listen-color-choice-pulse 0.55s ease-out 1;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 18px rgba(16, 24, 40, 0.18), 0 0 0 3px rgba(255, 255, 255, 0.9) inset;
    opacity: 1;
    filter: saturate(1.18) contrast(1.05);
    border-width: 3px;
}

.listen-drag-correct-note {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    padding: 0.72rem 0.88rem;
    border: 1px solid #f6c0a8;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff7f1 0%, #fff1e7 100%);
    box-shadow: 0 10px 18px rgba(204, 111, 52, 0.08);
    color: #9a4a1f;
}

.listen-drag-correct-note .listen-drag-answer-note__label {
    color: #c2642d;
}

.listen-drag-correct-note .listen-drag-answer-note__value {
    color: #8f3f15;
}

body.exam-reviewing-answers .listen-drag-selected {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    padding: 0.72rem 0.88rem;
    border: 1px solid #c7d7ea;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    box-shadow: 0 10px 18px rgba(76, 107, 154, 0.08);
    color: #36517b;
}

body.exam-reviewing-answers .listen-drag-selected .listen-drag-answer-note__label {
    color: #5f79a3;
}

body.exam-reviewing-answers .listen-drag-selected .listen-drag-answer-note__value {
    color: #21406e;
}

.listen-image-choice-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.66rem;
    width: 100%;
}

.option-item--listen-image {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: center;
    gap: 0.38rem;
    padding: 0.38rem;
    border-radius: 12px;
}

.option-item--listen-image input {
    order: 3;
    margin-top: 0;
}

.option-item--listen-image .option-key {
    order: 2;
    margin-top: 0;
}

.listen-image-choice-option__thumb {
    display: block;
    width: 100%;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(228, 139, 86, 0.42);
    background: #fff;
}

.listen-image-choice-option__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
}

.listen-paper-choice-shared {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    width: 100%;
    margin-top: 0.25rem;
}

.listen-group-wrapper > .listen-group-shared-panel > .listen-paper-choice-shared {
    margin: 0.74rem 0 1.02rem;
}

.listen-paper-choice-shared__item {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
}

.listen-paper-choice-shared__item img {
    order: 1;
}

.listen-paper-choice-shared__key {
    order: 2;
}

.listen-paper-choice-shared__key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #b4471e;
    background: #fff4e8;
    border: 1px solid rgba(228, 139, 86, 0.42);
}

.listen-paper-choice-shared__item img {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    border: 1px solid rgba(228, 139, 86, 0.42);
    background: #fff;
}

.listen-paper-choice-question-image {
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    border: 1px solid rgba(228, 139, 86, 0.38);
    background: #fff;
    overflow: hidden;
    display: grid;
    gap: 0;
}

.listen-paper-choice-question-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    border: 0;
    background: #fff;
}

.listen-paper-choice-question-image.has-caption img {
    border-bottom: 1px dashed rgba(129, 165, 134, 0.42);
}

.listen-paper-choice-question-caption {
    margin: 0;
    padding: 0.62rem 0.74rem;
    background: linear-gradient(180deg, rgba(236, 248, 232, 0.96), rgba(228, 243, 224, 0.96));
    color: #274f34;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.listen-paper-choice-question-caption > * {
    margin: 0;
}

.question-sidebar {
    position: sticky;
    top: 14px;
    padding: 1rem;
    display: grid;
    gap: 0.82rem;
    max-height: calc(100vh - 28px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(92, 143, 101, 0.72) rgba(226, 236, 225, 0.85);
}

.question-sidebar::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.question-sidebar::-webkit-scrollbar-track {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(236, 244, 234, 0.96), rgba(224, 236, 224, 0.92));
}

.question-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 2px solid transparent;
    background: linear-gradient(180deg, rgba(118, 174, 126, 0.92), rgba(83, 140, 94, 0.96));
    background-clip: padding-box;
}

.question-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(103, 160, 112, 0.96), rgba(70, 126, 82, 0.98));
    background-clip: padding-box;
}

.question-sidebar::-webkit-scrollbar-corner {
    background: transparent;
}

@media (min-width: 1101px) {
    .question-sidebar-pinned {
        position: sticky;
        top: 0;
        z-index: 12;
        display: grid;
        gap: 0.82rem;
        padding-bottom: 0.2rem;
        background: linear-gradient(180deg, rgba(248, 253, 245, 0.98), rgba(248, 253, 245, 0.94) 78%, rgba(248, 253, 245, 0));
    }

    .exam-submit {
        position: sticky;
        bottom: 0;
        z-index: 12;
        margin-top: auto;
        padding-top: 0.34rem;
        background: linear-gradient(180deg, rgba(248, 253, 245, 0), rgba(248, 253, 245, 0.94) 24%, rgba(248, 253, 245, 0.98));
    }
}

.timer-card {
    border-radius: 16px;
    border: 1px solid rgba(82, 150, 86, 0.24);
    background: linear-gradient(180deg, rgba(239, 251, 232, 0.94), rgba(230, 245, 225, 0.9));
    padding: 0.78rem 0.8rem;
    display: grid;
    gap: 0.46rem;
}

.timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(31, 47, 30, 0.72);
}

.timer-row strong {
    display: inline-block;
    min-width: 5ch;
    text-align: right;
    font-size: 1.32rem;
    font-weight: 800;
    color: #1f6b35;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.timer-row--secondary {
    color: rgba(31, 47, 30, 0.64);
    display: none;
}

.timer-row__subvalue {
    display: inline-block;
    min-width: 5ch;
    text-align: right;
    font-size: 1rem;
    font-weight: 800;
    color: #245d36;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.timer-progress {
    display: grid;
    gap: 0.42rem;
}

.timer-progress__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: rgba(31, 47, 30, 0.7);
}

.timer-progress__meta {
    font-size: 0.74rem;
    font-weight: 800;
    color: #28693c;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.timer-progress__track {
    position: relative;
    overflow: hidden;
    min-height: 0.7rem;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
        rgba(159, 205, 166, 0.34);
    box-shadow:
        inset 0 0 0 1px rgba(87, 143, 96, 0.12),
        inset 0 3px 8px rgba(255, 255, 255, 0.28);
}

.timer-progress__fill {
    display: block;
    height: 0.7rem;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #56bb6c 0%, #36a856 52%, #268c44 100%);
    box-shadow:
        0 6px 12px rgba(53, 145, 76, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: width 0.85s linear;
}

.timer-arena-live {
    display: grid;
    gap: 0.48rem;
    padding: 0.62rem 0.68rem;
    border-radius: 15px;
    border: 1px solid rgba(72, 145, 84, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 251, 239, 0.9));
}

.timer-arena-live__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.timer-arena-live__label {
    color: rgba(31, 47, 30, 0.64);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.timer-arena-live__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0 0.52rem;
    border-radius: 999px;
    background: rgba(62, 151, 77, 0.14);
    color: #1b6d37;
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1;
}

.timer-arena-live__stack {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding-left: 0.1rem;
}

.timer-arena-live__avatar {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    margin-left: -12px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.98);
    overflow: hidden;
    background: linear-gradient(135deg, #d9f4df, #9fdfa9);
    box-shadow: 0 8px 16px rgba(31, 85, 44, 0.16);
}

.timer-arena-live__avatar:first-child {
    margin-left: 0;
}

.timer-arena-live__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timer-arena-live__avatar-fallback,
.timer-arena-live__avatar.is-overflow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #194b2a;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
}

.timer-arena-live__avatar.is-overflow {
    background: linear-gradient(135deg, #f3e0a4, #f0b45d);
    color: #71470d;
}

.timer-arena-live__meta {
    margin: 0;
    color: rgba(31, 47, 30, 0.68);
    font-size: 0.79rem;
    line-height: 1.45;
}

.timer-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    padding: 0.22rem 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(55, 145, 74, 0.22);
    background: rgba(255, 255, 255, 0.72);
    color: #1d6a38;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Section-based timer styling */
.timer-row[data-timer-section] {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.42rem;
    align-items: center;
}

.timer-row[data-timer-section]::before {
    content: attr(data-timer-section);
    font-size: 0.72rem;
    color: rgba(31, 47, 30, 0.56);
    font-weight: 600;
}

.timer-row strong.timer-section-warning {
    color: #e67e22;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.32);
}

.timer-row strong.timer-section-critical {
    color: #e74c3c;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}

.section-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.42rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(126, 149, 134, 0.6) rgba(239, 244, 236, 0.92);
}

.section-tabs::-webkit-scrollbar {
    height: 8px;
}

.section-tabs::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(236, 244, 234, 0.9);
}

.section-tabs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(123, 152, 132, 0.75);
}

.section-tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(98, 130, 108, 0.85);
}

.section-tab {
    flex: 1 1 0;
    min-width: 0;
    --section-active-bg: #c4e7d1;
    --section-active-border: #2f9750;
    --section-active-text: #0f5a2e;
    --section-active-shadow: none;
    --section-active-count-border: rgba(24, 108, 54, 0.56);
    --section-active-count-text: #0f5a2e;
    border: 1px solid rgba(31, 47, 30, 0.19);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 13px;
    font-size: 0.81rem;
    color: rgba(31, 47, 30, 0.74);
    font-weight: 800;
    cursor: pointer;
    padding: 0.44rem 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.36rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.section-tab[data-section-tab="listen"] {
    --section-active-bg: #ffc3dd;
    --section-active-border: #cf2f77;
    --section-active-text: #7f0d3a;
    --section-active-shadow: none;
    --section-active-count-border: rgba(147, 21, 77, 0.58);
    --section-active-count-text: #7a0c37;
}

.section-tab[data-section-tab="read"] {
    --section-active-bg: #c4e7d1;
    --section-active-border: #2f9750;
    --section-active-text: #0f5a2e;
    --section-active-shadow: none;
    --section-active-count-border: rgba(24, 108, 54, 0.56);
    --section-active-count-text: #0f5a2e;
}

.section-tab[data-section-tab="speak"] {
    --section-active-bg: #ffdca2;
    --section-active-border: #c87d16;
    --section-active-text: #704000;
    --section-active-shadow: none;
    --section-active-count-border: rgba(154, 95, 12, 0.56);
    --section-active-count-text: #704000;
}

.section-tab::before {
    content: '';
    position: absolute;
    top: -120%;
    left: -42%;
    width: 34%;
    height: 340%;
    pointer-events: none;
    background: none;
    transform: translateX(-230%) skewX(-24deg);
    opacity: 0;
    z-index: 1;
}

.section-tab.is-sweep::before {
    animation: section-tab-light-sweep 0.78s cubic-bezier(0.2, 0.65, 0.25, 1);
}

@keyframes section-tab-light-sweep {
    0% {
        transform: translateX(-230%) skewX(-24deg);
        opacity: 0;
    }
    18% {
        opacity: 0.24;
    }
    52% {
        opacity: 0.58;
    }
    100% {
        transform: translateX(390%) skewX(-24deg);
        opacity: 0;
    }
}

.section-tab.active {
    background: var(--section-active-bg);
    border-color: var(--section-active-border);
    color: var(--section-active-text);
    box-shadow: none;
    transform: none;
}

.section-tab.active:hover,
.section-tab.active:focus-visible {
    border-color: var(--section-active-border);
    color: var(--section-active-text);
    box-shadow: none;
    transform: none;
}

.section-tab.completed {
    background: #e3e7e4;
    border-color: rgba(95, 109, 101, 0.28);
    color: rgba(70, 80, 74, 0.78);
}

.section-tab.locked {
    cursor: not-allowed;
}

.section-tab__title,
.tab-count,
.tab-time {
    position: relative;
    z-index: 2;
}

.section-tab__title {
    display: inline-flex;
    align-items: center;
    line-height: 1.15;
}

.tab-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.46rem;
    min-width: 4.75ch;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(65, 86, 70, 0.14);
    background: rgba(248, 250, 247, 0.92);
    color: rgba(42, 58, 46, 0.78);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

.section-tab.active .tab-time {
    border-color: rgba(255, 255, 255, 0.54);
    background: rgba(255, 255, 255, 0.68);
    color: inherit;
}

.section-tab.completed .tab-time {
    border-color: rgba(95, 109, 101, 0.16);
    background: rgba(255, 255, 255, 0.74);
    color: rgba(70, 80, 74, 0.74);
}

.tab-time[data-tone="active"] {
    color: inherit;
}

.tab-time[data-tone="upcoming"] {
    color: rgba(42, 58, 46, 0.76);
}

.tab-time[data-tone="warning"] {
    border-color: rgba(215, 135, 42, 0.28);
    background: rgba(255, 239, 217, 0.96);
    color: #b56111;
}

.tab-time[data-tone="critical"] {
    border-color: rgba(215, 84, 84, 0.26);
    background: rgba(255, 232, 232, 0.98);
    color: #c64747;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.36) inset;
}

.tab-time[data-tone="done"] {
    border-color: rgba(54, 133, 82, 0.2);
    background: rgba(229, 244, 233, 0.96);
    color: #256c42;
}

.section-tab:hover,
.section-tab:focus-visible {
    border-color: rgba(77, 146, 71, 0.34);
    color: #215736;
    outline: none;
}

.section-tab.completed:hover,
.section-tab.completed:focus-visible,
.section-tab.locked:hover,
.section-tab.locked:focus-visible {
    border-color: rgba(31, 47, 30, 0.19);
    color: inherit;
}

body.exam-submitted-state .section-tab,
body.exam-reviewing-answers .section-tab {
    cursor: pointer;
}

body.exam-submitted-state .section-tab.locked,
body.exam-reviewing-answers .section-tab.locked {
    cursor: pointer;
}

body.exam-submitted-state .section-tab.locked:hover,
body.exam-submitted-state .section-tab.locked:focus-visible,
body.exam-reviewing-answers .section-tab.locked:hover,
body.exam-reviewing-answers .section-tab.locked:focus-visible {
    border-color: rgba(77, 146, 71, 0.34);
    color: #215736;
}

.section-tab.has-pending::after {
    content: '';
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #f0ae4f;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(31, 47, 30, 0.18);
    padding: 0.1rem 0.45rem;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.88);
}

.section-tab.active .tab-count {
    border-color: var(--section-active-count-border);
    background: rgba(255, 255, 255, 0.95);
    color: var(--section-active-count-text);
    box-shadow: none;
}

.section-tab.completed .tab-count {
    border-color: rgba(102, 116, 107, 0.2);
    background: rgba(255, 255, 255, 0.72);
    color: rgba(70, 80, 74, 0.84);
}

.section-switch-panel {
    display: grid;
    gap: 0.36rem;
}

.section-switch-button {
    width: 100%;
}

.section-switch-button[disabled] {
    opacity: 0.62;
    cursor: not-allowed;
}

.section-switch-hint {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: rgba(31, 47, 30, 0.64);
}

.sidebar-title {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(31, 47, 30, 0.9);
}

.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.74rem;
    color: rgba(31, 47, 30, 0.68);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.legend-dot {
    width: 0.64rem;
    height: 0.64rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 47, 30, 0.3);
    background: #fff;
}

.legend-dot.answered {
    background: #4caf50;
    border-color: #4caf50;
}

.legend-dot.flagged {
    background: #ffd384;
    border-color: #f0b966;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.42rem;
    cursor: grab;
}

.question-grid-wrap {
    cursor: grab;
}

.question-grid-wrap:active,
.question-grid:active {
    cursor: grabbing;
}

.question-grid-wrap.is-drag-scrolling,
.question-grid-wrap.is-drag-scrolling .question-grid {
    cursor: grabbing;
}

.question-grid-part-label {
    --question-part-label-border: rgba(83, 127, 176, 0.35);
    --question-part-label-bg: rgba(237, 246, 255, 0.82);
    --question-part-label-color: rgba(32, 71, 109, 0.92);
    --question-part-label-active-border: rgba(83, 127, 176, 0.52);
    --question-part-label-active-bg: rgba(232, 242, 252, 0.94);
    --question-part-label-active-color: rgba(24, 58, 92, 0.98);
    --question-part-label-active-shadow: 0 8px 18px rgba(65, 102, 150, 0.16);
    grid-column: 1 / -1;
    margin: 0.18rem 0 0.08rem;
    padding: 0.2rem 0.54rem;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px dashed var(--question-part-label-border);
    background: var(--question-part-label-bg);
    color: var(--question-part-label-color);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    width: fit-content;
    box-shadow: none;
    cursor: pointer;
    background-repeat: no-repeat;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease,
        filter 0.22s ease;
}

.question-grid-part-label:hover {
    filter: brightness(0.98);
}

.question-grid-part-label:focus-visible {
    outline: 2px solid rgba(58, 122, 224, 0.45);
    outline-offset: 2px;
}

.question-grid-part-label.is-active-part {
    border-color: var(--question-part-label-active-border);
    color: var(--question-part-label-active-color);
    background: var(--question-part-label-active-bg);
    background-size: 220% 100%, auto;
    background-position: 140% 50%, 0 0;
    box-shadow: var(--question-part-label-active-shadow);
    font-weight: 900;
    filter: saturate(1.08);
    transform: translateY(-1px);
    animation: questionGridPartLabelSweep 2.8s linear infinite;
}

.question-grid-part-label.is-active-part:hover {
    filter: saturate(1.12) brightness(1.01);
}

.question-grid-part-label[data-read-level="starters"] {
    --question-part-label-border: rgba(237, 30, 121, 0.28);
    --question-part-label-bg: rgba(237, 30, 121, 0.1);
    --question-part-label-color: #b0175d;
    --question-part-label-active-border: rgba(237, 30, 121, 0.52);
    --question-part-label-active-bg: rgba(255, 233, 244, 0.95);
    --question-part-label-active-color: #97124f;
    --question-part-label-active-shadow: 0 8px 18px rgba(176, 23, 93, 0.16);
}

.question-grid-part-label[data-read-level="movers"] {
    --question-part-label-border: rgba(23, 143, 95, 0.3);
    --question-part-label-bg: rgba(23, 143, 95, 0.12);
    --question-part-label-color: #0f6f49;
    --question-part-label-active-border: rgba(23, 143, 95, 0.52);
    --question-part-label-active-bg: rgba(230, 246, 237, 0.95);
    --question-part-label-active-color: #0d5f3e;
    --question-part-label-active-shadow: 0 8px 18px rgba(15, 111, 73, 0.14);
}

.question-grid-part-label[data-read-level="flyers"] {
    --question-part-label-border: rgba(88, 102, 214, 0.34);
    --question-part-label-bg: rgba(88, 102, 214, 0.11);
    --question-part-label-color: #3b4ab0;
    --question-part-label-active-border: rgba(88, 102, 214, 0.56);
    --question-part-label-active-bg: rgba(233, 239, 255, 0.95);
    --question-part-label-active-color: #3240a0;
    --question-part-label-active-shadow: 0 8px 18px rgba(59, 74, 176, 0.15);
}

.question-grid-part-label--listen {
    margin-top: 0.24rem;
    padding: 0.24rem 0.64rem;
    border-width: 1px;
    border-style: dashed;
    --question-part-label-border: rgba(237, 30, 121, 0.28);
    --question-part-label-bg: rgba(237, 30, 121, 0.1);
    --question-part-label-color: #b0175d;
    --question-part-label-active-border: rgba(237, 30, 121, 0.52);
    --question-part-label-active-bg: rgba(255, 233, 244, 0.95);
    --question-part-label-active-color: #97124f;
    --question-part-label-active-shadow: 0 8px 18px rgba(176, 23, 93, 0.16);
    font-size: 0.76rem;
}

.question-grid-part-label--listen[data-listen-level="movers"] {
    --question-part-label-border: rgba(23, 143, 95, 0.3);
    --question-part-label-bg: rgba(23, 143, 95, 0.12);
    --question-part-label-color: #0f6f49;
    --question-part-label-active-border: rgba(23, 143, 95, 0.52);
    --question-part-label-active-bg: rgba(230, 246, 237, 0.95);
    --question-part-label-active-color: #0d5f3e;
    --question-part-label-active-shadow: 0 8px 18px rgba(15, 111, 73, 0.14);
}

.question-grid-part-label--listen[data-listen-level="flyers"] {
    --question-part-label-border: rgba(88, 102, 214, 0.34);
    --question-part-label-bg: rgba(88, 102, 214, 0.11);
    --question-part-label-color: #3b4ab0;
    --question-part-label-active-border: rgba(88, 102, 214, 0.56);
    --question-part-label-active-bg: rgba(233, 239, 255, 0.95);
    --question-part-label-active-color: #3240a0;
    --question-part-label-active-shadow: 0 8px 18px rgba(59, 74, 176, 0.15);
}

.question-grid-part-label--speak {
    margin-top: 0.24rem;
    padding: 0.24rem 0.64rem;
    border-width: 1px;
    border-style: dashed;
    --question-part-label-border: rgba(237, 30, 121, 0.28);
    --question-part-label-bg: rgba(237, 30, 121, 0.1);
    --question-part-label-color: #b0175d;
    --question-part-label-active-border: rgba(237, 30, 121, 0.52);
    --question-part-label-active-bg: rgba(255, 233, 244, 0.95);
    --question-part-label-active-color: #97124f;
    --question-part-label-active-shadow: 0 8px 18px rgba(176, 23, 93, 0.16);
    font-size: 0.76rem;
}

.question-grid-part-label--speak[data-speak-level="movers"] {
    --question-part-label-border: rgba(23, 143, 95, 0.3);
    --question-part-label-bg: rgba(23, 143, 95, 0.12);
    --question-part-label-color: #0f6f49;
    --question-part-label-active-border: rgba(23, 143, 95, 0.52);
    --question-part-label-active-bg: rgba(230, 246, 237, 0.95);
    --question-part-label-active-color: #0d5f3e;
    --question-part-label-active-shadow: 0 8px 18px rgba(15, 111, 73, 0.14);
}

.question-grid-part-label--speak[data-speak-level="flyers"] {
    --question-part-label-border: rgba(88, 102, 214, 0.34);
    --question-part-label-bg: rgba(88, 102, 214, 0.11);
    --question-part-label-color: #3b4ab0;
    --question-part-label-active-border: rgba(88, 102, 214, 0.56);
    --question-part-label-active-bg: rgba(233, 239, 255, 0.95);
    --question-part-label-active-color: #3240a0;
    --question-part-label-active-shadow: 0 8px 18px rgba(59, 74, 176, 0.15);
}

@keyframes questionGridPartLabelSweep {
    0% {
        background-position: 140% 50%, 0 0;
    }
    100% {
        background-position: -40% 50%, 0 0;
    }
}

.question-index {
    border-radius: 999px;
    border: 1px solid rgba(31, 47, 30, 0.24);
    background: #fff;
    width: 2.08rem;
    height: 2.08rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(31, 47, 30, 0.72);
    font-size: 0.79rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.question-index:hover,
.question-index:focus-visible {
    border-color: rgba(57, 137, 65, 0.38);
    background: rgba(241, 251, 236, 0.95);
    transform: translateY(-1px);
    outline: none;
}

.question-index.answered {
    border-color: #46a65c;
    background: #3eaf53;
    color: #fff;
}

.question-index.flagged {
    border-color: #f0b966;
    background: #ffe4b0;
    color: #87510a;
}

.question-index.answered.flagged {
    background: #ffd184;
    color: #7f4a08;
}


.question-grid-empty {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(31, 47, 30, 0.6);
}

.exam-submit {
    margin-top: 0.3rem;
    display: grid;
    gap: 0.48rem;
}

.exam-submit .btn {
    width: 100%;
    min-height: 42px;
}

.question-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1100;
}

.mobile-exam-bar {
    display: none;
}

.mobile-exam-actions {
    display: flex;
    flex: 1 1 auto;
    gap: 0.45rem;
    justify-content: flex-end;
}

/* Result dialog styles are shared in css/exam-result.css. */

.exam-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 1210;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.exam-confirm-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.exam-confirm-card {
    position: relative;
    width: min(470px, 92vw);
    border-radius: 22px;
    border: 1px solid rgba(31, 47, 30, 0.16);
    background: #fff;
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.24);
    padding: 0;
    overflow: hidden;
    transform: translateY(8px) scale(0.985);
    transition: transform 0.2s ease;
}

.exam-confirm-modal.show .exam-confirm-card {
    transform: translateY(0) scale(1);
}

.exam-confirm-card::before {
    content: '';
    display: block;
    height: 8px;
    background: linear-gradient(90deg, #f857a6 0%, #ff5858 100%);
}

.exam-confirm-card--timeout::before {
    background: linear-gradient(90deg, #2ea855 0%, #27b67f 58%, #2a91d6 100%);
}

.exam-confirm-card--notice::before {
    background: linear-gradient(90deg, #ff8a3d 0%, #f857a6 52%, #2ea855 100%);
}

.exam-confirm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 1rem 1.1rem 0.75rem;
}

.exam-confirm-head h3 {
    margin: 0;
    font-family: 'Baloo 2', cursive;
    font-size: 1.22rem;
    line-height: 1.2;
    color: #1f2f1e;
}

.exam-confirm-desc {
    margin: 0;
    padding: 0 1.1rem 0.95rem;
    color: rgba(31, 47, 30, 0.78);
    font-weight: 600;
    line-height: 1.55;
}

.exam-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 0 1.1rem 1.1rem;
}

.exam-confirm-actions--single {
    justify-content: flex-end;
}

.exam-confirm-modal.is-notice .exam-confirm-card {
    width: min(500px, 92vw);
    box-shadow: 0 26px 52px rgba(15, 23, 42, 0.28);
}

.exam-confirm-modal.is-notice .exam-confirm-head h3 {
    color: #163e2b;
}

.exam-confirm-modal.is-notice .exam-confirm-desc {
    color: rgba(22, 62, 43, 0.84);
    font-size: 0.98rem;
}

.exam-confirm-modal.is-single-action .exam-confirm-actions {
    justify-content: center;
}

.exam-confirm-modal.is-single-action .exam-confirm-actions .btn.primary {
    min-width: min(220px, 100%);
}

.exam-timeout-countdown {
    margin: -0.2rem 0 0;
    padding: 0 1.1rem 0.95rem;
    color: rgba(31, 47, 30, 0.68);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
}

.exam-timeout-countdown strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    margin: 0 0.22rem;
    padding: 0 0.42rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(46, 168, 85, 0.14), rgba(39, 182, 127, 0.18));
    border: 1px solid rgba(46, 168, 85, 0.26);
    color: #1a7d44;
    box-shadow: 0 8px 18px rgba(46, 168, 85, 0.14);
}

body.modal-open {
    overflow: hidden;
}

body.exam-locked-state .question-card {
    opacity: 0.92;
}

body.exam-locked-state .option-item,
body.exam-locked-state .mark-later {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.66;
}

body.exam-locked-state .speak-record-btn,
body.exam-locked-state .speak-clear-btn,
body.exam-locked-state .speak-transcript {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.7;
}

body.exam-locked-state .read-vocab-input,
body.exam-locked-state .read-vocab-inline-input {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.74;
}

body.exam-locked-state .read-wordbank-input {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.74;
}

body.exam-locked-state .read-scene-yn-input {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.74;
}

body.exam-locked-state .read-letter-sort-input,
body.exam-locked-state .read-letter-sort-chip,
body.exam-locked-state .read-letter-sort-tool {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.74;
}

body.exam-locked-state .timer-card {
    border-color: var(--exam-danger-border);
    background: var(--exam-danger-bg);
}

body.exam-submitted-state .question-card {
    background: linear-gradient(180deg, rgba(243, 246, 244, 0.98), rgba(236, 241, 238, 0.96));
    border-color: rgba(118, 131, 122, 0.3);
    box-shadow: none;
    opacity: 1;
}

body.exam-submitted-state .question-card:hover,
body.exam-submitted-state .question-card.is-jump-highlight {
    border-color: rgba(118, 131, 122, 0.3);
    box-shadow: none;
}

body.exam-submitted-state .question-card:hover,
body.exam-submitted-state .question-card:focus-within,
body.exam-submitted-state .question-card.is-jump-highlight {
    transform: none;
    background: linear-gradient(180deg, rgba(243, 246, 244, 0.98), rgba(236, 241, 238, 0.96));
}

body.exam-submitted-state .question-text,
body.exam-submitted-state .option-text,
body.exam-submitted-state .speak-status,
body.exam-submitted-state .media-block,
body.exam-submitted-state .media-block strong,
body.exam-submitted-state .answer-explanation__label,
body.exam-submitted-state .read-vocab-answer span,
body.exam-submitted-state .read-wordbank-answer span,
body.exam-submitted-state .read-scene-yn-answer span,
body.exam-submitted-state .read-letter-sort-answer span {
    color: #1f2f1e;
}

body.exam-submitted-state .option-item {
    background: #f8faf8;
    border-color: rgba(118, 131, 122, 0.28);
    color: #1f2f1e;
    box-shadow: none;
    opacity: 1;
}

body.exam-submitted-state .option-item:hover,
body.exam-submitted-state .option-item:focus-within {
    transform: none;
    box-shadow: none;
    border-color: rgba(118, 131, 122, 0.36);
}

body.exam-submitted-state .option-item.is-selected,
body.exam-submitted-state .option-item:has(input:checked) {
    border-color: rgba(108, 123, 113, 0.42);
    background: rgba(233, 238, 234, 0.96);
    color: #1f2f1e;
}

body.exam-submitted-state .option-item.is-selected .option-key,
body.exam-submitted-state .option-item:has(input:checked) .option-key {
    border-color: rgba(108, 123, 113, 0.42);
    background: #f4f7f4;
    color: #1f2f1e;
}

body.exam-submitted-state .read-vocab-input,
body.exam-submitted-state .read-vocab-inline-input {
    background: #f8faf8;
    border-color: rgba(118, 131, 122, 0.34);
    color: #1f2f1e;
}

body.exam-submitted-state .read-wordbank-input {
    background: #f8faf8;
    border-color: rgba(118, 131, 122, 0.34);
    color: #1f2f1e;
}

body.exam-submitted-state .read-scene-yn-input {
    background: #f8faf8;
    border-color: rgba(118, 131, 122, 0.34);
    color: #1f2f1e;
}

body.exam-submitted-state .read-letter-sort-input {
    background: #f8faf8;
    border-color: rgba(118, 131, 122, 0.34);
    color: #1f2f1e;
}

body.exam-submitted-state [data-exam-submit].btn,
body.exam-submitted-state [data-exam-submit].btn:disabled {
    background: #1f8f3d;
    border-color: rgba(27, 122, 52, 0.72);
    color: #fff;
    box-shadow: 0 12px 22px rgba(31, 132, 63, 0.26);
    cursor: pointer;
    opacity: 1;
}

body.exam-submitted-state [data-exam-submit].btn:hover,
body.exam-submitted-state [data-exam-submit].btn:focus-visible {
    background: #177033;
    box-shadow: 0 16px 28px rgba(26, 110, 52, 0.3);
    transform: translateY(-1px);
}

body.exam-submitted-state [data-exam-end].btn {
    background: #ff4e8f;
    border-color: #f15995;
    color: #fff;
    box-shadow: 0 10px 20px rgba(241, 76, 145, 0.26);
}

body.exam-submitted-state [data-exam-end].btn:hover,
body.exam-submitted-state [data-exam-end].btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(241, 76, 145, 0.32);
}

body.exam-reviewing-answers .option-item.review-correct {
    border-color: rgba(112, 168, 120, 0.54);
    background: rgba(230, 247, 231, 0.95);
    color: #153722;
}

body.exam-reviewing-answers .option-item.review-correct .option-key {
    border-color: rgba(90, 153, 103, 0.54);
    background: rgba(228, 246, 231, 0.98);
    color: #1f5d32;
}

body.exam-reviewing-answers .option-item.review-selected-wrong {
    border-color: rgba(210, 130, 109, 0.54);
    background: rgba(252, 239, 235, 0.95);
}

body.exam-reviewing-answers .question-card.is-correct {
    border-color: rgba(112, 168, 120, 0.44);
}

body.exam-reviewing-answers .question-card.is-wrong {
    border-color: rgba(205, 132, 112, 0.44);
}

body.exam-reviewing-answers .read-vocab-input.review-correct,
body.exam-reviewing-answers .read-vocab-inline-input.review-correct {
    border-color: rgba(112, 168, 120, 0.56);
    background: linear-gradient(150deg, rgba(218, 241, 220, 0.95), rgba(230, 247, 231, 0.95));
}

body.exam-reviewing-answers .read-vocab-input.review-wrong,
body.exam-reviewing-answers .read-vocab-inline-input.review-wrong {
    border-color: rgba(210, 130, 109, 0.56);
    background: rgba(252, 239, 235, 0.95);
}

body.exam-reviewing-answers .read-wordbank-input.review-correct {
    border-color: rgba(112, 168, 120, 0.56);
    background: linear-gradient(150deg, rgba(218, 241, 220, 0.95), rgba(230, 247, 231, 0.95));
}

body.exam-reviewing-answers .read-wordbank-input.review-wrong {
    border-color: rgba(210, 130, 109, 0.56);
    background: rgba(252, 239, 235, 0.95);
}

body.exam-reviewing-answers .read-scene-yn-input.review-correct {
    border-color: rgba(112, 168, 120, 0.56);
    background: linear-gradient(150deg, rgba(218, 241, 220, 0.95), rgba(230, 247, 231, 0.95));
}

body.exam-reviewing-answers .read-scene-yn-input.review-wrong {
    border-color: rgba(210, 130, 109, 0.56);
    background: rgba(252, 239, 235, 0.95);
}

body.exam-reviewing-answers .read-letter-sort-input.review-correct {
    border-color: rgba(112, 168, 120, 0.56);
    background: linear-gradient(150deg, rgba(218, 241, 220, 0.95), rgba(230, 247, 231, 0.95));
}

body.exam-reviewing-answers .read-letter-sort-input.review-wrong {
    border-color: rgba(210, 130, 109, 0.56);
    background: rgba(252, 239, 235, 0.95);
}

body.exam-reviewing-answers .listen-drag-zone__answer.review-selected-wrong {
    position: relative;
    overflow: hidden;
    border-color: rgba(207, 77, 69, 0.72);
    background: rgba(255, 240, 238, 0.98);
    color: #8c1f17;
    box-shadow: 0 8px 18px rgba(207, 77, 69, 0.18);
}

body.exam-reviewing-answers .listen-drag-zone__answer.review-selected-wrong::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% + 24px);
    border-top: 3px solid rgba(207, 77, 69, 0.94);
    transform: translate(-50%, -50%) rotate(-17deg);
    transform-origin: center;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

body.exam-reviewing-answers .speak-transcript {
    opacity: 1;
}

body.exam-nav-open {
    overflow: hidden;
}

body.exam-nav-open .question-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}

@keyframes speak-pulse {

    0%,
    100% {
        box-shadow: 0 10px 20px rgba(218, 64, 93, 0.22);
    }

    50% {
        box-shadow: 0 16px 26px rgba(218, 64, 93, 0.34);
    }
}

@media (max-width: 1100px) {
    .exam-layout {
        grid-template-columns: 1fr;
        padding-bottom: 120px;
    }

    .question-sidebar {
        position: fixed;
        inset: auto 16px 16px;
        border-radius: 22px;
        max-height: 76vh;
        background: #ffffff;
        padding: 1.05rem;
        gap: 1.16rem;
        overflow-x: hidden;
        overflow-y: auto;
        transform: translateY(120%);
        transition: transform 0.3s ease;
        z-index: 1101;
        box-shadow: 0 24px 42px rgba(31, 47, 30, 0.24);
    }

    .question-sidebar-pinned {
        gap: 1.32rem;
    }

    .question-sidebar-pinned .section-switch-panel {
        margin-top: 0.46rem;
        margin-bottom: 0.34rem;
        gap: 0.56rem;
    }

    .question-sidebar-pinned .section-switch-hint {
        line-height: 1.58;
    }

    .question-sidebar .sidebar-title {
        margin-top: 0.18rem;
    }

    .timer-card {
        margin-bottom: 0.28rem;
        padding: 0.9rem 0.92rem;
        gap: 0.62rem;
    }

    .timer-row {
        font-size: 0.84rem;
    }

    .timer-row + .timer-row {
        margin-top: 0.14rem;
        padding-top: 0.12rem;
        border-top: 1px dashed rgba(82, 150, 86, 0.2);
    }

    .timer-row strong {
        font-size: 1.42rem;
    }

    .timer-row__subvalue {
        font-size: 1.06rem;
    }

    .timer-arena-live {
        padding: 0.64rem;
    }

    .timer-arena-live__avatar {
        width: 42px;
        height: 42px;
        margin-left: -10px;
    }

    .timer-status-badge {
        max-width: 100%;
        white-space: normal;
    }

    .section-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.74rem;
        overflow: visible;
        padding-right: 0;
        margin-top: 0.22rem;
        margin-bottom: 0.14rem;
    }

    .section-tab {
        width: 100%;
        min-height: 82px;
        padding: 0.56rem 0.4rem;
        gap: 0.24rem;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
        font-size: 0.84rem;
        line-height: 1.1;
    }

    .tab-count {
        margin-top: 0.04rem;
        align-self: flex-start;
    }

    .tab-time {
        align-self: flex-start;
    }

    .question-grid-wrap,
    .question-grid {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .question-grid-wrap {
        padding-right: 0.08rem;
    }

    .question-grid {
        gap: 0.5rem;
    }

    .question-grid-part-label {
        margin: 0.24rem 0 0.14rem;
    }

    .question-sidebar.is-open {
        transform: translateY(0);
    }

    .read-group-wrapper > .read-yesno-group-intro,
    .read-group-wrapper > .read-vocab-group-intro,
    .read-group-wrapper > .read-wordbank-group-intro,
    .read-group-wrapper > .read-rowbank-group-intro,
    .read-group-wrapper > .read-scene-yn-group-intro,
    .read-group-wrapper > .read-scene-choice-group-intro,
    .read-group-wrapper > .read-dialog-bank-group-intro,
    .read-group-wrapper > .read-letter-sort-group-intro,
    .listen-group-wrapper > .listen-group-shared-panel {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        overscroll-behavior: auto;
        scrollbar-width: auto;
        box-shadow: none;
        backdrop-filter: none;
    }

    .read-group-wrapper > .read-yesno-group-intro.is-scrollable-content,
    .read-group-wrapper > .read-vocab-group-intro.is-scrollable-content,
    .read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content,
    .read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content,
    .read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content,
    .read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content,
    .read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content,
    .read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content,
    .listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content {
        cursor: auto !important;
        padding-bottom: 0.28rem;
    }

    .read-group-wrapper > .read-yesno-group-intro,
    .read-group-wrapper > .read-vocab-group-intro,
    .read-group-wrapper > .read-wordbank-group-intro,
    .read-group-wrapper > .read-rowbank-group-intro,
    .read-group-wrapper > .read-scene-yn-group-intro,
    .read-group-wrapper > .read-scene-choice-group-intro,
    .read-group-wrapper > .read-dialog-bank-group-intro,
    .read-group-wrapper > .read-letter-sort-group-intro {
        margin-bottom: 0.64rem;
    }

    .read-group-wrapper > .read-yesno-group-intro.is-scrollable-content::after,
    .read-group-wrapper > .read-vocab-group-intro.is-scrollable-content::after,
    .read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content::after,
    .read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content::after,
    .read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content::after,
    .read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content::after,
    .read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content::after,
    .read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content::after,
    .read-group-wrapper > .read-yesno-group-intro.is-scrollable-content.show-scroll-down-hint::before,
    .read-group-wrapper > .read-vocab-group-intro.is-scrollable-content.show-scroll-down-hint::before,
    .read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content.show-scroll-down-hint::before,
    .read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content.show-scroll-down-hint::before,
    .read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content.show-scroll-down-hint::before,
    .read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content.show-scroll-down-hint::before,
    .read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content.show-scroll-down-hint::before,
    .read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content.show-scroll-down-hint::before,
    .listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content::after,
    .listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content.show-scroll-down-hint::before {
        content: none;
        display: none;
    }

    .read-group-wrapper > .read-yesno-group-intro .media-audio--sticky,
    .read-group-wrapper > .read-vocab-group-intro .media-audio--sticky,
    .read-group-wrapper > .read-wordbank-group-intro .media-audio--sticky,
    .read-group-wrapper > .read-rowbank-group-intro .media-audio--sticky,
    .read-group-wrapper > .read-scene-yn-group-intro .media-audio--sticky,
    .read-group-wrapper > .read-scene-choice-group-intro .media-audio--sticky,
    .read-group-wrapper > .read-dialog-bank-group-intro .media-audio--sticky,
    .read-group-wrapper > .read-letter-sort-group-intro .media-audio--sticky,
    .read-group-wrapper > .read-yesno-group-intro.is-scrollable-content .media-audio--sticky,
    .read-group-wrapper > .read-vocab-group-intro.is-scrollable-content .media-audio--sticky,
    .read-group-wrapper > .read-wordbank-group-intro.is-scrollable-content .media-audio--sticky,
    .read-group-wrapper > .read-rowbank-group-intro.is-scrollable-content .media-audio--sticky,
    .read-group-wrapper > .read-scene-yn-group-intro.is-scrollable-content .media-audio--sticky,
    .read-group-wrapper > .read-scene-choice-group-intro.is-scrollable-content .media-audio--sticky,
    .read-group-wrapper > .read-dialog-bank-group-intro.is-scrollable-content .media-audio--sticky,
    .read-group-wrapper > .read-letter-sort-group-intro.is-scrollable-content .media-audio--sticky,
    .listen-group-wrapper > .listen-group-shared-panel .media-audio--sticky,
    .listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content .media-audio--sticky {
        position: static;
        top: auto;
        box-shadow: none;
    }

    .listen-group-wrapper > .listen-group-shared-panel > .question-text--boxed,
    .listen-group-wrapper > .listen-group-shared-sticky-stack > .question-text--boxed,
    .listen-group-wrapper > .listen-group-shared-panel > .listen-group-shared-sticky-stack > .question-text--boxed,
    .listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head,
    .listen-group-wrapper > .question-card.question-card--listen-drag-names .listen-drag-question-title,
    .speak-group-wrapper > .speak-group-intro__title,
    .speak-group-wrapper > .speak-group-intro > .speak-group-intro__title,
    .speak-group-wrapper--movers-game > .speak-movers-game > .speak-movers-game__title,
    .speak-group-wrapper > .question-card.question-card--speak .speak-question-sticky,
    .speak-movers-q .speak-question-sticky {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        box-shadow: none !important;
    }

    .listen-group-wrapper > .listen-group-shared-sticky-stack,
    .listen-group-wrapper > .listen-group-shared-panel > .listen-group-shared-sticky-stack {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        box-shadow: none !important;
    }

    .listen-group-wrapper > .listen-group-sticky-header {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 16 !important;
        box-shadow: none !important;
    }

    .listen-group-wrapper > .listen-group-shared-panel > .question-text--boxed,
    .listen-group-wrapper > .listen-group-shared-panel > .listen-group-shared-sticky-stack > .question-text--boxed {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
        box-shadow: none !important;
    }

    .listen-group-wrapper > .listen-group-shared-sticky-stack > .media-audio--sticky,
    .listen-group-wrapper > .listen-group-shared-panel > .listen-group-shared-sticky-stack > .media-audio--sticky,
    .listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content > .listen-group-shared-sticky-stack > .media-audio--sticky,
    .listen-group-wrapper > .listen-group-shared-panel .media-audio--sticky,
    .listen-group-wrapper > .listen-group-shared-panel.is-scrollable-content .media-audio--sticky,
    #part-listen .question-card[data-part="listen"] > .question-body > .media-audio--sticky {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: calc(var(--listen-group-header-height, 0px) + 0.42rem) !important;
        z-index: 14 !important;
        box-shadow: 0 8px 16px rgba(31, 47, 30, 0.12) !important;
    }

    .speak-group-sticky-header {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 16 !important;
    }

    .mobile-exam-bar {
        position: fixed;
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        bottom: max(10px, env(safe-area-inset-bottom));
        z-index: 1100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.45rem;
        width: auto;
        max-width: calc(100vw - max(10px, env(safe-area-inset-left)) - max(10px, env(safe-area-inset-right)));
        box-sizing: border-box;
        transform: translateZ(0);
        border-radius: 16px;
        border: 1px solid rgba(31, 47, 30, 0.18);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 16px 30px rgba(31, 47, 30, 0.2);
        padding: 0.58rem;
    }

    .mobile-exam-time {
        display: grid;
        gap: 0.1rem;
        font-size: 0.7rem;
        color: rgba(31, 47, 30, 0.67);
    }

    .mobile-exam-time strong {
        font-size: 0.92rem;
        color: #2c6438;
    }

    .mobile-exam-part {
        border-radius: 999px;
        border: 1px solid var(--exam-warn-border);
        background: var(--exam-warn);
        padding: 0.08rem 0.48rem;
        font-size: 0.66rem;
        font-weight: 800;
        color: #8d5402;
        width: fit-content;
    }

    body.exam-nav-open .mobile-exam-bar {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 760px) {
    .exam-shell {
        padding: 14px 10px 84px;
    }

    .exam-topbar {
        border-radius: 20px;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.65rem;
    }

    .exam-topnav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .exam-topbar .btn {
        min-height: 36px;
        padding: 0.38rem 0.78rem;
        font-size: 0.8rem;
    }

    .exam-brand img {
        width: clamp(120px, 42vw, 160px);
    }

    .exam-header {
        border-radius: 18px;
        padding: 0.92rem;
    }

    .exam-panel {
        border-radius: 18px;
        padding: 0.78rem;
    }

    .question-sidebar {
        inset: auto 10px 10px;
        padding: 0.9rem;
        border-radius: 18px;
        gap: 1.05rem;
    }

    .question-sidebar-pinned {
        gap: 1.18rem;
    }

    .timer-card {
        padding: 0.82rem 0.82rem;
        gap: 0.56rem;
    }

    .timer-row {
        font-size: 0.81rem;
    }

    .timer-row strong {
        font-size: 1.22rem;
    }

    .timer-arena-live__avatar {
        width: 38px;
        height: 38px;
        margin-left: -9px;
    }

    .section-tabs {
        gap: 0.56rem;
        margin-top: 0.14rem;
    }

    .section-tab {
        min-height: 76px;
        border-radius: 14px;
        padding: 0.5rem 0.36rem;
        font-size: 0.8rem;
    }

    .tab-count {
        font-size: 0.74rem;
        padding: 0.14rem 0.46rem;
    }

    .listen-drag-question-title {
        font-size: 1.22rem;
    }

    .listen-drag-bank-preview__item {
        min-height: 32px;
        font-size: 0.8rem;
        padding: 0.35rem 0.62rem;
    }

    .listen-drag-bank__item {
        min-width: 116px;
        min-height: 36px;
        font-size: 0.82rem;
        padding: 0.4rem 0.66rem;
    }

    .listen-image-choice-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .listen-drag-zone__number {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
        font-size: 0.68rem;
    }

    .listen-drag-zone__answer {
        min-width: 52px;
        min-height: 22px;
        max-width: clamp(108px, 32vw, 142px);
        font-size: 0.68rem;
        padding: 0.12rem 0.38rem;
        line-height: 1.1;
    }

    .listen-drag-selected,
    .listen-drag-correct-note {
        font-size: 0.7rem;
    }

    .listen-drag-answer-note__label {
        font-size: 0.62rem;
    }

    .listen-drag-answer-note__value {
        font-size: 0.8rem;
    }

    body.exam-reviewing-answers .listen-drag-selected,
    .listen-drag-correct-note {
        padding: 0.62rem 0.72rem;
        border-radius: 12px;
    }

    .exam-section h2 {
        font-size: 1.3rem;
    }

    .question-card {
        border-radius: 14px;
        padding: 0.82rem 0.76rem;
    }

    .read-group-wrapper {
        border-radius: 14px;
    }

    .read-group-wrapper--part-break {
        --part-divider-gap: 1.36rem;
        --part-divider-height: 1.28rem;
        --part-divider-visual-offset: 0.34rem;
        margin-top: calc((var(--part-divider-gap) * 2) + var(--part-divider-height));
    }

    #part-listen .listen-group-wrapper + .listen-group-wrapper,
    #part-speak .speak-group-wrapper + .speak-group-wrapper {
        margin-top: 2.08rem;
    }

    .speak-group-wrapper--part-break {
        --part-divider-gap: 1.36rem;
        --part-divider-height: 1.28rem;
        --part-divider-visual-offset: 0.34rem;
        margin-top: calc((var(--part-divider-gap) * 2) + var(--part-divider-height)) !important;
    }

    .part-transition-divider {
        gap: 0.62rem;
        padding: 0 0.48rem;
    }

    .part-transition-divider__text {
        font-size: 0.78rem;
    }

    .part-transition-divider--listen {
        margin-top: 1.36rem;
        margin-bottom: 1.36rem;
    }

    .read-group-wrapper--part-break > .part-transition-divider {
        transform: translateY(calc(-100% - var(--part-divider-gap) - var(--part-divider-visual-offset, 0px)));
    }

    .speak-group-wrapper--part-break > .part-transition-divider {
        transform: translateY(calc(-100% - var(--part-divider-gap) - var(--part-divider-visual-offset, 0px)));
    }

    .read-group-wrapper > .question-card,
    .read-group-wrapper > .question-card[class*="question-card--"],
    .listen-group-wrapper > .question-card.question-card--listen-drag-names,
    .speak-group-wrapper > .question-card.question-card--speak {
        padding: 0.82rem 0.76rem !important;
        margin: 0 0.5rem 0.58rem !important;
    }

    .listen-group-wrapper > .listen-group-shared-panel {
        margin-bottom: 0.64rem;
    }

    .read-group-wrapper > .read-group-sticky-header {
        padding: 0.44rem 0.68rem;
    }

    .read-group-wrapper > .read-group-sticky-header .read-group-sticky-header__label {
        font-size: 0.92rem;
        font-weight: 900;
    }

    .read-group-wrapper > .question-card .question-body {
        gap: 0.46rem;
    }

    .read-group-wrapper > .question-card .question-head,
    .listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head,
    .speak-group-wrapper > .question-card.question-card--speak .question-head {
        margin: -0.82rem -0.76rem 0.68rem !important;
    }

    .read-group-wrapper > .question-card .question-head strong {
        font-size: 0.8rem;
    }

    .question-head {
        align-items: flex-start;
    }

    .read-group-wrapper > .question-card .question-head,
    .listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head {
        align-items: center;
    }

    .read-group-wrapper > .question-card .question-head::before,
    .listen-group-wrapper > .question-card.question-card--listen-drag-names .question-head::before {
        align-self: center;
    }

    .question-head strong {
        font-size: 0.84rem;
        padding: 0.2rem 0.52rem;
    }

    .mark-later {
        font-size: 0.72rem;
        padding: 0.24rem 0.62rem;
    }

    .question-body {
        gap: 0.72rem;
    }

    .question-text {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .options {
        gap: 0.46rem;
    }

    .read-yesno-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.58rem;
        min-width: 0;
    }

    .read-yesno-media {
        min-height: 0;
        max-width: 210px;
        margin: 0 auto;
    }

    .read-yesno-media img {
        aspect-ratio: auto;
        max-height: 150px;
        width: 100%;
        object-fit: contain;
    }

    .read-letter-sort-layout,
    .read-letter-sort-overview__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .options--yesno {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }

    .question-card,
    .question-body,
    .question-text--boxed,
    .read-group-wrapper {
        min-width: 0;
    }

    .question-text--boxed,
    .option-text {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .options--dialog-bank {
        grid-template-columns: repeat(auto-fill, minmax(44px, 44px));
    }


    .read-rowbank-overview {
        grid-template-columns: minmax(0, 1fr);
    }

    .read-rowbank-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .qp-vocab-grid,
    .read-vocab-grid,
    .qp-wordbank-grid,
    .read-wordbank-grid,
    .read-dialog-bank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .read-letter-sort-chip {
        width: 1.9rem;
        min-width: 1.9rem;
        height: 1.9rem;
        font-size: 0.8rem;
    }

    .option-item {
        padding: 0.54rem 0.58rem;
        gap: 0.5rem;
    }

    .option-key {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.72rem;
    }

    .option-text {
        font-size: 0.86rem;
    }

    .speak-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .speak-record-btn,
    .speak-clear-btn {
        width: 100%;
        justify-content: center;
    }

    .question-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .question-index {
        width: 1.86rem;
        height: 1.86rem;
        font-size: 0.74rem;
    }

    .exam-confirm-card {
        border-radius: 18px;
    }

    .exam-confirm-head {
        padding: 0.88rem 0.9rem 0.7rem;
    }

    .exam-confirm-desc {
        padding: 0 0.9rem 0.84rem;
        font-size: 0.92rem;
    }

    .exam-confirm-actions {
        flex-direction: column-reverse;
        padding: 0 0.9rem 0.9rem;
    }

    .exam-timeout-countdown {
        padding: 0 0.9rem 0.84rem;
        font-size: 0.86rem;
    }

    .exam-confirm-actions .btn {
        width: 100%;
    }

    .mobile-exam-bar {
        flex-wrap: wrap;
    }

    .mobile-exam-time {
        width: 100%;
    }

    .mobile-exam-actions {
        width: 100%;
        min-width: 0;
    }

    .mobile-exam-bar .btn {
        flex: 1;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.15;
        text-align: center;
    }

    /* Hide submit button on mobile */
    .mobile-exam-bar [data-exam-submit] {
        display: none;
    }

    /* Make question list button pink and expand to fill space */
    .mobile-exam-bar [data-exam-nav-toggle] {
        flex: 1 1 auto;
        color: #fff;
        border-color: rgba(217, 48, 117, 0.72);
        background: #c90b5a;
        box-shadow: 0 12px 22px rgba(217, 48, 117, 0.26);
    }

    .mobile-exam-bar [data-exam-nav-toggle]:hover,
    .mobile-exam-bar [data-exam-nav-toggle]:focus-visible {
        background: #ad0447;
        box-shadow: 0 16px 28px rgba(217, 48, 117, 0.3);
    }
}

@media (max-width: 520px) {
    .read-yesno-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.45rem;
    }

    .read-yesno-media img {
        max-height: 120px;
    }

    .option-item--yesno {
        min-height: 42px;
        padding: 0.5rem 0.6rem;
    }

    .option-item--yesno .option-text {
        font-size: 0.88rem;
    }

    .options--yesno {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qp-vocab-grid,
    .read-vocab-grid,
    .qp-wordbank-grid,
    .read-wordbank-grid,
    .read-dialog-bank-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .read-letter-sort-tools {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .read-letter-sort-tool {
        text-align: center;
        width: 100%;
    }

    .options--dialog-bank {
        grid-template-columns: repeat(auto-fill, minmax(44px, 44px));
    }
}

@media (prefers-reduced-motion: reduce) {

    .question-sidebar,
    .question-sidebar-backdrop,
    .exam-modal,
    .exam-confirm-modal,
    .exam-confirm-card,
    .exam-topnav a,
    .section-tab,
    .option-item {
        transition: none !important;
    }

    .section-tab.is-sweep::before {
        animation: none !important;
        opacity: 0 !important;
    }
}

.btn-inline-score {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    display: inline-flex;
    cursor: default;
}

body.exam-submitted-state .btn-inline-score {
    cursor: pointer;
    color: #1f7d3d;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    border-radius: 4px;
    outline-offset: 2px;
}

body.exam-submitted-state .btn-inline-score:hover,
body.exam-submitted-state .btn-inline-score:focus-visible {
    color: #155c2c;
    text-decoration-thickness: 2px;
}
