body.lesson-new-series {
    min-height: 100vh;
    background: #f5f7fb;
    color: #172033;
}

.focused-directory-label-mobile {
    display: none;
}

/* PC 和 Pad 只保留轻量课程目录入口，手机端继续使用原有双入口样式。 */
@media (min-width: 621px) {
    body.lesson-new-series.lesson-apple-ui .topbar .topbar-links .focused-home-link {
        display: none;
    }

    body.lesson-new-series.lesson-apple-ui .topbar .topbar-links .focused-directory-link {
        min-height: auto;
        padding: 7px 4px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #6e6e73;
        box-shadow: none;
        font-size: 14px;
        font-weight: 650;
    }

    body.lesson-new-series.lesson-apple-ui .topbar .topbar-links .focused-directory-link:hover,
    body.lesson-new-series.lesson-apple-ui .topbar .topbar-links .focused-directory-link:focus-visible {
        border: 0;
        background: transparent;
        color: #0071e3;
        box-shadow: none;
        transform: none;
    }
}

@media (max-width: 620px) {
    .focused-directory-label-desktop {
        display: none;
    }

    .focused-directory-label-mobile {
        display: inline;
    }
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.new-series-shell {
    width: min(1420px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 54px;
}

.new-series-loading,
.new-series-error {
    padding: 56px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(28, 43, 72, 0.07);
}

.new-series-loading span {
    color: #2f66e9;
    font-size: 13px;
    font-weight: 800;
}

.new-series-loading h1,
.new-series-error h1 {
    margin-top: 10px;
}

.new-lesson-stepper {
    min-height: 70px;
    margin-bottom: 18px;
    padding: 8px 10px;
    border: 1px solid rgba(47, 102, 233, 0.4);
    border-radius: 14px;
    background: #f7faff;
    box-shadow: 0 10px 28px rgba(47, 102, 233, 0.12);
}

.new-lesson-step-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    isolation: isolate;
}

.new-lesson-step-indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: calc((100% - 40px) / 5);
    height: 52px;
    display: block;
    border: 1px solid rgba(38, 91, 207, 0.18);
    border-radius: 10px;
    background: linear-gradient(135deg, #2469e8, #3b7bf0);
    box-shadow: 0 8px 20px rgba(36, 98, 224, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    pointer-events: none;
    transition: transform 0ms;
    will-change: transform;
}

.new-lesson-step-indicator.is-moving {
    transition: transform 460ms cubic-bezier(0.65, 0, 0.35, 1);
}

.new-lesson-step-list.has-gsap-stepper .new-lesson-step-indicator { transition: none; }

.new-lesson-step {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.58);
    color: #738097;
    font: inherit;
    text-align: left;
}

.new-lesson-step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -5px;
    width: 1px;
    height: 28px;
    background: #e7ebf1;
}

.new-lesson-step-number {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid #cbd3df;
    border-radius: 50%;
    color: #7b8494;
    font-size: 14px;
    font-weight: 800;
}

.new-lesson-step-label {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-lesson-ai-score-badge {
    position: absolute;
    top: -9px;
    right: 10px;
    z-index: 3;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: linear-gradient(135deg, #6d5dfc, #2f66e9);
    color: #fff;
    box-shadow: 0 5px 13px rgba(65, 79, 220, 0.24);
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    pointer-events: none;
    white-space: nowrap;
}

.new-lesson-ai-score-badge > span {
    margin-right: 2px;
    color: #fff2a8;
}

.new-lesson-step.is-active {
    padding: 7px 14px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: #fff;
}

.new-lesson-step.is-active .new-lesson-step-number {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.new-lesson-step.is-active .new-lesson-ai-score-badge {
    border-color: rgba(47, 102, 233, 0.16);
    background: #fff;
    color: #2f66e9;
    box-shadow: 0 5px 14px rgba(25, 51, 116, 0.2);
}

.new-lesson-step.is-active .new-lesson-ai-score-badge > span {
    color: #7868ff;
}

/* PC 端把五步导航收成居中的连续滑轨，选中底块由 GSAP 在步骤间移动。 */
@media (min-width: 1001px) {
    .new-lesson-stepper {
        width: min(1080px, 100%);
        min-height: 66px;
        margin-right: auto;
        margin-bottom: 18px;
        margin-left: auto;
        padding: 6px;
        border: 1px solid #d9e2ef;
        border-radius: 16px;
        background: rgba(251, 253, 255, 0.96);
        box-shadow:
            0 12px 32px rgba(31, 55, 96, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.96);
        backdrop-filter: saturate(150%) blur(12px);
        -webkit-backdrop-filter: saturate(150%) blur(12px);
    }

    .new-lesson-step-list {
        gap: 6px;
    }

    .new-lesson-step-indicator {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
        width: calc((100% - 24px) / 5);
        height: 54px;
        display: block;
        border: 1px solid rgba(38, 91, 207, 0.18);
        border-radius: 12px;
        background: linear-gradient(135deg, #2469e8, #3b7bf0);
        box-shadow:
            0 9px 22px rgba(36, 98, 224, 0.26),
            inset 0 1px 0 rgba(255, 255, 255, 0.22);
        pointer-events: none;
        transition: transform 0ms;
        will-change: transform;
    }

    .new-lesson-step-indicator.is-moving {
        transition: transform 460ms cubic-bezier(0.65, 0, 0.35, 1);
    }

    .new-lesson-step-list.has-gsap-stepper .new-lesson-step-indicator {
        transition: none;
    }

    .new-lesson-step {
        z-index: 1;
        min-height: 54px;
        padding: 0 12px;
        justify-content: center;
        gap: 9px;
        border-color: transparent;
        border-radius: 12px;
        background: transparent;
        color: #64738a;
        cursor: pointer;
        transition: color 180ms ease, background 180ms ease, transform 180ms ease;
    }

    .new-lesson-step:hover:not(.is-active),
    .new-lesson-step:focus-visible:not(.is-active) {
        background: #f1f5fb;
        color: #30415b;
        outline: none;
        transform: translateY(-1px);
    }

    .new-lesson-step:not(:last-child)::after {
        display: none;
    }

    .new-lesson-step-number {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        border-color: #d2dce9;
        background: #fff;
        color: #6c788b;
        box-shadow: 0 2px 8px rgba(30, 51, 84, 0.05);
    }

    .new-lesson-step-label {
        color: inherit;
        font-weight: 750;
        letter-spacing: 0.01em;
    }

    .new-lesson-step.is-active {
        min-height: 54px;
        padding: 0 12px;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        color: #fff;
    }

    .new-lesson-step.is-active .new-lesson-step-number {
        border-color: rgba(255, 255, 255, 0.72);
        background: rgba(255, 255, 255, 0.14);
        box-shadow: none;
    }

    .new-lesson-ai-score-badge {
        top: 3px;
        right: 7px;
        padding: 2px 6px;
        border-color: #ddd9ff;
        background: #f0eeff;
        color: #6152cd;
        box-shadow: none;
        font-size: 8.5px;
    }

    .new-lesson-ai-score-badge > span {
        color: #7567de;
    }

    .new-lesson-step.is-active .new-lesson-ai-score-badge {
        border-color: rgba(255, 255, 255, 0.58);
        background: rgba(255, 255, 255, 0.94);
        color: #2457ce;
        box-shadow: none;
    }
}

.blind-listening-card {
    padding: 18px;
    border: 1px solid #dfe5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(28, 43, 72, 0.07);
}

.blind-player {
    max-width: 100%;
    margin: 0 auto;
}

.blind-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: var(--blind-video-aspect, 16 / 9);
    overflow: hidden;
    border-radius: 9px;
    background: #090b0f;
}

.blind-video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #090b0f;
    cursor: pointer;
}

.lesson-video-issue-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(9, 14, 24, 0.58);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    font-size: 10.5px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: 0.01em;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.blind-overlay-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 50%;
    background: rgba(12, 18, 30, 0.62);
    color: #fff;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 3;
}

.blind-overlay-play:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

.blind-overlay-play svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
    stroke: currentColor;
}

.blind-listening-card.is-playing .blind-overlay-play {
    opacity: 0;
    pointer-events: none;
}

.blind-video-missing {
    height: 100%;
    display: grid;
    place-items: center;
    color: #b9c0cc;
}

.focused-media-error {
    display: grid;
    justify-items: center;
    gap: 7px;
    color: #fff;
    text-align: center;
}

.focused-media-error[hidden] {
    display: none;
}

.focused-media-error.is-video {
    position: absolute;
    inset: 0;
    z-index: 8;
    align-content: center;
    padding: 24px;
    background: rgba(8, 13, 23, 0.88);
    box-sizing: border-box;
}

.focused-media-error strong {
    font-size: 15px;
    font-weight: 850;
}

.focused-media-error span {
    max-width: 340px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    line-height: 1.55;
}

.focused-media-error button {
    min-height: 34px;
    margin-top: 4px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: #2f66e9;
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.focused-media-error button:hover {
    background: #2359d7;
}

.blind-timeline-row {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    min-height: 50px;
    padding: 16px 14px 8px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.95);
    background: linear-gradient(to bottom, transparent, rgba(4, 8, 16, 0.76));
    font-size: 12px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    box-sizing: border-box;
}

.blind-timeline-row input[type="range"] {
    --blind-progress: 0%;
    width: 100%;
    height: 4px;
    margin: 0;
    appearance: none;
    border-radius: 999px;
    outline: none;
    background: linear-gradient(to right, #4f7cf0 0 var(--blind-progress), rgba(255, 255, 255, 0.58) var(--blind-progress) 100%);
    cursor: pointer;
}

.blind-timeline-row input[type="range"]::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    appearance: none;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #2f66e9;
    box-shadow: 0 1px 5px rgba(32, 76, 178, 0.35);
}

.blind-timeline-row input[type="range"]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #2f66e9;
    box-shadow: 0 1px 5px rgba(32, 76, 178, 0.35);
}

.blind-control-grid {
    min-height: 76px;
    max-width: 520px;
    margin: 7px auto 0;
    padding: 7px 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(64px, 1fr));
    gap: 5px;
    border: 1px solid rgba(120, 137, 163, 0.18);
    border-radius: 14px;
    background: rgba(248, 250, 253, 0.86);
    box-shadow: 0 8px 22px rgba(31, 52, 88, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.blind-control {
    min-width: 0;
    padding: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    color: #263247;
    cursor: pointer;
    font: inherit;
}

.blind-control-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #cbd4e1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #263247;
    box-shadow: 0 2px 7px rgba(31, 52, 88, 0.045);
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.blind-control:hover .blind-control-icon,
.blind-control:focus-visible .blind-control-icon,
.blind-control.is-active .blind-control-icon {
    border-color: #7fa0ef;
    background: #f0f4ff;
    color: #2f66e9;
    transform: translateY(-1px);
}

.blind-control:focus-visible {
    outline: 2px solid rgba(47, 102, 233, 0.34);
    outline-offset: 2px;
    border-radius: 8px;
}

.blind-control.is-primary .blind-control-icon {
    width: 42px;
    height: 42px;
    border-color: #2f66e9;
    background: #2f66e9;
    color: #fff;
    box-shadow: 0 7px 18px rgba(47, 102, 233, 0.24);
}

.blind-control svg {
    width: 21px;
    height: 21px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.blind-control.is-primary svg {
    fill: currentColor;
    stroke-width: 1.9;
}

.blind-pause-icon,
.blind-control.is-active .blind-play-icon {
    display: none;
}

.blind-control.is-active .blind-pause-icon {
    display: block;
}

.blind-rate-value {
    font-size: 13px;
    font-weight: 800;
}

.blind-rate-control {
    position: relative;
}

.blind-rate-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.blind-rate-control:focus-within .blind-control-icon {
    border-color: #7fa0ef;
    background: #f0f4ff;
    color: #2f66e9;
    transform: translateY(-1px);
}

.blind-skip-icon {
    position: relative;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
}

.blind-skip-icon svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.blind-skip-icon strong {
    position: relative;
    z-index: 1;
    transform: translateY(1px);
    color: currentColor;
    font-size: 8px;
    font-weight: 850;
    line-height: 1;
}

.blind-control-label {
    max-width: 100%;
    overflow: hidden;
    color: #455166;
    font-size: 10.5px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-step-bottom-nav {
    max-width: 650px;
    min-height: 42px;
    margin: 12px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.new-step-nav-button {
    width: auto;
    min-width: 112px;
    min-height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #65728a;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.new-step-nav-button.is-primary {
    min-width: 148px;
    background: #2f66e9;
    color: #fff;
    box-shadow: 0 8px 18px rgba(47, 102, 233, 0.2);
}

.new-step-nav-arrow {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.new-step-nav-button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.new-step-nav-button.is-primary:disabled {
    opacity: 0.64;
}

.new-series-error p {
    color: #697386;
}

.new-series-error a {
    color: #2f66e9;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .new-series-shell {
        width: min(100% - 32px, 900px);
        padding-top: 16px;
    }

    .new-lesson-step-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }

    .new-lesson-step-indicator {
        width: calc((100% - 24px) / 5);
    }

    .new-lesson-step {
        padding: 6px;
        justify-content: center;
        gap: 7px;
    }

    .new-lesson-step-number {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .new-lesson-step-label {
        font-size: 12.5px;
    }
}

@media (max-width: 620px) {
    body.lesson-new-series.lesson-apple-ui .topbar.desktop-unified-topbar {
        position: sticky;
        top: 0;
        z-index: 45;
        border-bottom: 1px solid rgba(29, 29, 31, 0.1);
        background: rgba(251, 251, 253, 0.94);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 7px 20px rgba(28, 43, 72, 0.07);
        backdrop-filter: saturate(180%) blur(18px);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
    }

    .new-series-shell {
        width: min(100% - 20px, 560px);
        padding: 67px 0 38px;
    }

    .new-lesson-stepper {
        position: fixed;
        top: calc(var(--new-mobile-topbar-height, 96px) + 2px);
        left: 50%;
        z-index: 34;
        width: min(calc(100% - 20px), 560px);
        min-height: 50px;
        margin-bottom: 0;
        padding: 4px;
        box-sizing: border-box;
        transform: translateX(-50%);
        border: 1.5px solid rgba(27, 99, 235, 0.78);
        border-radius: 13px;
        background: rgba(248, 251, 255, 0.96);
        box-shadow: 0 8px 24px rgba(47, 102, 233, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
        backdrop-filter: saturate(175%) blur(16px);
        -webkit-backdrop-filter: saturate(175%) blur(16px);
    }

    .new-lesson-step-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 3px;
    }

    .new-lesson-step-indicator {
        width: calc((100% - 12px) / 5);
        height: 40px;
        border-radius: 9px;
        box-shadow: 0 6px 16px rgba(36, 92, 218, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .new-lesson-step {
        min-height: 40px;
        padding: 4px 3px;
        justify-content: center;
        gap: 0;
        border-radius: 9px;
    }

    .new-lesson-step:not(:last-child)::after {
        display: none;
    }

    .new-lesson-step-number {
        display: none;
    }

    .new-lesson-step-label {
        font-size: 11px;
    }

    .new-lesson-step.is-active {
        padding-block: 4px;
        padding-inline: 3px;
        background: transparent;
        box-shadow: none;
    }

    .new-lesson-ai-score-badge {
        top: -6px;
        right: 50%;
        padding: 2px 5px;
        font-size: 8px;
        transform: translateX(50%);
    }

    .blind-listening-card {
        padding: 8px;
        border-radius: 11px;
    }

    .blind-video-frame {
        border-radius: 7px;
    }

    .lesson-video-issue-badge {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .blind-overlay-play {
        width: 58px;
        height: 58px;
    }

    .blind-timeline-row {
        min-height: 46px;
        padding: 14px 10px 7px;
        gap: 9px;
    }

    .blind-control-grid,
    .blind-player.is-compact-controls .blind-control-grid {
        min-height: 72px;
        max-width: none;
        margin-top: 7px;
        padding: 6px 3px;
        grid-template-columns: repeat(5, minmax(54px, 1fr));
        gap: 2px;
    }

    .blind-control-icon {
        width: 34px;
        height: 34px;
    }

    .blind-control.is-primary .blind-control-icon {
        width: 40px;
        height: 40px;
    }

    .blind-control-label {
        font-size: 10px;
    }

    .new-step-bottom-nav {
        min-height: 40px;
        margin-top: 8px;
        gap: 6px;
    }

    .new-step-nav-button {
        min-width: 96px;
        min-height: 38px;
        padding-inline: 12px;
        font-size: 12px;
    }

    .new-step-nav-button.is-primary {
        min-width: 132px;
    }

}

@media (max-width: 420px) {
    .new-lesson-stepper {
        padding-inline: 5px;
    }

    .new-lesson-step-list {
        gap: 2px;
    }

    .new-lesson-step-indicator {
        width: calc((100% - 8px) / 5);
    }

    .new-lesson-step {
        padding: 6px 2px;
        text-align: center;
    }

    .new-lesson-step.is-active {
        padding: 6px 2px;
    }

    .new-lesson-step-label {
        overflow: visible;
        font-size: 10.5px;
        text-overflow: clip;
    }

    .new-lesson-ai-score-badge {
        top: -6px;
        padding-inline: 4px;
        font-size: 7.5px;
    }
}

@media (max-height: 620px) and (min-width: 700px) {
    .lesson-new-series .brand-wordmark {
        display: none;
    }

    .new-series-shell {
        width: min(1420px, calc(100% - 16px));
        padding-top: 8px;
    }

    .new-lesson-stepper {
        min-height: 46px;
        margin-bottom: 6px;
        padding: 4px 8px;
    }

    .new-lesson-step {
        padding: 0 8px;
        gap: 7px;
    }

    .new-lesson-step-number {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        font-size: 12px;
    }

    .new-lesson-step-label {
        font-size: 12px;
    }

    .blind-listening-card {
        padding: 6px;
    }
}

/* 第二步：保留经典逐词听写规则，只重做五步版承载布局。 */
.new-lesson-stage {
    position: relative;
}

.new-dictation-card {
    padding: 18px;
    border: 1px solid #dfe5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(28, 43, 72, 0.07);
}

.new-dictation-layout {
    min-height: min(600px, calc(100dvh - 248px));
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 18px;
    align-items: stretch;
}

.new-dictation-media-column {
    min-width: 0;
    align-self: start;
}

.new-dictation-video-frame {
    aspect-ratio: 16 / 9;
}

.new-dictation-video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #090b0f;
    cursor: pointer;
}

.dictation-media-controls {
    width: min(100%, 380px);
    max-width: 380px;
    margin: 7px auto 0;
    padding: 6px 7px;
    grid-template-columns: repeat(5, minmax(58px, 1fr));
    gap: 2px;
    border-color: rgba(154, 170, 194, 0.24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(253, 254, 255, 0.98), rgba(245, 248, 253, 0.96));
    box-shadow: 0 10px 26px rgba(39, 57, 88, 0.08);
}

.dictation-media-controls .blind-control {
    min-height: 56px;
    border-radius: 11px;
    transition: background 160ms ease, box-shadow 160ms ease;
}

.dictation-media-controls .blind-control:hover,
.dictation-media-controls .blind-control:focus-within {
    background: rgba(232, 239, 252, 0.72);
    box-shadow: inset 0 0 0 1px rgba(47, 102, 233, 0.08);
}

.dictation-media-controls .blind-control-icon {
    border-color: #d4deec;
    background: #fff;
    box-shadow: 0 4px 11px rgba(37, 54, 84, 0.08);
}

.dictation-media-controls .blind-control-label {
    color: #56647a;
    font-weight: 720;
}

.dictation-media-controls .blind-repeat-control .blind-rate-value {
    font-size: 12px;
    letter-spacing: -0.02em;
}

.dictation-media-controls .blind-control:disabled {
    opacity: 0.32;
    cursor: not-allowed;
}

.new-dictation-card.is-sentence-playing [data-dictation-media-action="play"] .blind-play-icon {
    display: none;
}

.new-dictation-card.is-sentence-playing [data-dictation-media-action="play"] .blind-pause-icon {
    display: block;
}

.new-dictation-card.is-sentence-playing .blind-overlay-play {
    opacity: 0;
    pointer-events: none;
}

.new-dictation-sentence-stack {
    min-width: 0;
    max-height: min(600px, calc(100dvh - 248px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 10px;
    scrollbar-width: thin;
    touch-action: pan-y;
}

.new-dictation-sentence-stack > .new-dictation-preview,
.new-dictation-sentence-stack > .new-dictation-current-card { flex: 0 0 auto; }

.new-sentence-tail-spacer {
    width: 1px;
    min-height: 0;
    flex: 0 0 auto;
    pointer-events: none;
}

.new-dictation-preview {
    min-height: 70px;
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e7ef;
    border-radius: 15px;
    background: #f9fafc;
    color: #67748a;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.new-dictation-preview[data-dictation-preview="prev"] {
    grid-row: 1;
}

.new-dictation-current-card {
    grid-row: 2;
}

.new-dictation-preview[data-dictation-preview="next"] {
    grid-row: 3;
}

.new-dictation-preview[hidden],
.new-dictation-preview.is-window-hidden,
.new-dictation-stage .lesson-title[hidden] {
    display: none !important;
}

.new-dictation-preview:hover,
.new-dictation-preview:focus-visible {
    border-color: rgba(47, 102, 233, 0.42);
    background: #f3f7ff;
    color: #2f66e9;
    outline: none;
    transform: translateY(-1px);
}

.new-dictation-preview > span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf1f7;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.new-dictation-preview > strong {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-dictation-current-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d8e1ef;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
    box-shadow: 0 12px 30px rgba(31, 52, 88, 0.08);
}

.new-dictation-entry {
    display: none;
}

body.lesson-new-series.lesson-apple-ui .new-dictation-stage.is-embedded,
.new-dictation-stage.is-embedded {
    min-height: 100%;
    height: 100%;
    display: grid !important;
    grid-template-rows: 5px auto minmax(0, 1fr) auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.new-dictation-stage > .dictation-progress {
    height: 5px;
    overflow: hidden;
    border: 0;
    background: #e9eef6;
}

.new-dictation-stage > .dictation-progress span {
    background: #2f66e9;
}

.new-dictation-current-head {
    min-width: 0;
    padding: 15px 17px 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    color: #172033;
}

.new-dictation-current-count {
    color: #2f66e9;
    font-size: 12px;
    font-weight: 800;
}

.new-dictation-current-head p {
    margin: 5px 0 0;
    color: #59667a;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.new-dictation-tools,
.dictation-stage.is-embedded .new-dictation-tools {
    padding: 0;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.new-dictation-tools select {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.new-dictation-play {
    position: relative;
    min-width: 76px;
    min-height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(47, 102, 233, 0.22);
    border-radius: 999px;
    background: #f2f6ff;
    color: #2f66e9;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.new-dictation-play-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    width: max-content;
    padding: 7px 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #dce4f0;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.98);
    color: #526078;
    box-shadow: 0 10px 25px rgba(31, 52, 88, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.new-dictation-play-tooltip::before {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 100%;
    border: 5px solid transparent;
    border-bottom-color: #fff;
}

.new-dictation-play-tooltip kbd,
.new-dictation-shortcut kbd {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ced8e7;
    border-radius: 5px;
    background: #fff;
    color: #334158;
    box-shadow: 0 1px 2px rgba(31, 52, 88, 0.08), inset 0 -1px 0 rgba(31, 52, 88, 0.06);
    font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    box-sizing: border-box;
}

@media (hover: hover) and (pointer: fine) {
    .new-dictation-play:hover .new-dictation-play-tooltip,
    .new-dictation-play:focus-visible .new-dictation-play-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.new-dictation-play svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.new-dictation-main,
.dictation-stage.is-embedded .new-dictation-main {
    min-height: 0;
    margin: 0;
    padding: 16px 18px 18px;
    justify-content: center;
    overflow: auto;
}

.new-dictation-stage .word-line {
    gap: 7px 9px;
    align-items: baseline;
}

.new-dictation-stage .word-line:not(.is-reviewing) {
    width: min(100%, 760px);
    padding: 15px 17px 13px;
    justify-content: center;
    align-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: translateY(3px);
    box-sizing: border-box;
}

.new-dictation-stage .word-slot {
    --word-font-size: clamp(18px, 1.65vw, 24px);
    width: clamp(40px, calc(var(--letters) * 0.58em + 12px), 190px);
    height: 42px;
    min-height: 42px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: var(--word-font-size);
    box-sizing: border-box;
}

.new-dictation-stage .word-input,
.new-dictation-stage .fixed-word {
    height: calc(1.2em + 8px);
    margin: 0;
    border-bottom-width: 2px;
    padding: 0 0 5px;
    font-size: var(--word-font-size) !important;
    font-weight: 700;
    line-height: 1.2;
    box-sizing: border-box;
}

.new-dictation-stage .word-input {
    caret-color: #2f66e9;
}

.new-dictation-stage .word-input:focus,
.new-dictation-stage .word-input.focused {
    border-color: #2f66e9;
    color: #2f66e9;
}

.new-dictation-stage .answer-card {
    position: absolute;
    top: 68px;
    right: 12px;
    left: 12px;
    z-index: 20;
    min-width: 0;
    max-width: none;
    max-height: calc(100% - 82px);
    transform: none;
}

.new-dictation-stage .dictation-review-card {
    width: 100%;
    min-height: 0;
    gap: 10px;
    align-items: stretch;
    justify-items: stretch;
}

.new-dictation-stage .review-card-words {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    align-items: stretch;
}

.new-dictation-stage .review-word {
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 9px 11px;
    gap: 5px;
    justify-items: center;
    align-content: center;
    text-align: center;
    border: 1px solid #dde6f3;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #f5f8fd);
    box-shadow: 0 5px 13px rgba(35, 54, 88, 0.055);
}

.new-dictation-stage .review-word .answer-phonetic-row,
.new-dictation-stage .review-word .answer-token-row {
    min-width: 0;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.new-dictation-stage .review-word .answer-token-row {
    padding: 0;
    gap: 3px 6px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.new-dictation-stage .review-word .answer-token {
    min-width: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #182236;
    box-shadow: none;
    font-size: 17px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.new-dictation-stage .review-word .answer-phonetic {
    padding: 0 4px 0 0;
    background: transparent;
    color: #8592a7;
    font-size: 10.5px;
}

.new-dictation-stage .review-word .answer-meaning {
    padding: 3px 7px;
    background: #ebf1ff;
    color: #4c6591;
    font-size: 10.5px;
}

.new-dictation-stage .review-sentence-zh {
    width: fit-content;
    max-width: 100%;
    justify-self: center;
    margin-inline: auto;
    padding: 9px 16px;
    text-align: center;
    margin: 0;
    padding: 9px 12px;
    border-left: 3px solid #2f66e9;
    border-radius: 8px;
    background: #f5f7fb;
    color: #47556b;
    font-size: 14.5px;
    line-height: 1.3;
    text-align: center;
    box-sizing: border-box;
}

.new-dictation-stage .perfect-burst {
    position: absolute;
    top: 30%;
    left: 50%;
    z-index: 30;
    font-size: clamp(34px, 5vw, 58px);
}

.new-dictation-stage .perfect-burst.is-perfect {
    color: #d99a00;
    text-shadow: 0 12px 34px rgba(218, 154, 0, 0.35);
}

.new-dictation-stage .perfect-burst.is-great {
    color: #2f66e9;
    text-shadow: 0 12px 34px rgba(47, 102, 233, 0.28);
}

.new-dictation-stage .perfect-burst.show {
    animation: newDictationPerfectRise 0.9s ease both;
}

@keyframes newDictationPerfectRise {
    0% {
        opacity: 0;
        transform: translate(-50%, 8px) scale(0.84);
    }

    24% {
        opacity: 1;
        transform: translate(-50%, -8px) scale(1.06);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, -70px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -155px) scale(0.96);
    }
}

.new-dictation-footer,
.dictation-stage.is-embedded .new-dictation-footer {
    padding: 9px 14px 14px;
    display: block;
}

.new-dictation-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.new-dictation-actions .mini-action {
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #dbe2ed;
    border-radius: 11px;
    background: #fff;
    color: #59667a;
    font-size: 12px;
    font-weight: 750;
}

.new-dictation-shortcut {
    flex: 0 0 auto;
    gap: 3px;
}

.new-dictation-actions .mini-action > [data-action-label] {
    white-space: nowrap;
}

.new-dictation-actions .mini-action.primary .new-dictation-shortcut kbd {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: none;
}

.new-dictation-actions .mini-action.primary {
    border-color: #2f66e9;
    background: #2f66e9;
    color: #fff;
}

@media (max-width: 1000px) {
    .new-dictation-layout {
        min-height: 0;
        grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
        gap: 12px;
    }

    .new-dictation-card {
        padding: 12px;
    }

    .new-dictation-sentence-stack {
        grid-template-rows: auto minmax(300px, 1fr) auto;
    }

    .new-dictation-preview {
        min-height: 60px;
    }
}

@media (max-width: 760px) {
    .new-dictation-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .new-dictation-media-column {
        width: min(100%, 620px);
        margin-inline: auto;
    }

    .new-dictation-sentence-stack {
        max-height: min(430px, calc(100dvh - 210px));
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overscroll-behavior: contain;
        scroll-padding-block: 6px;
        scrollbar-width: none;
        touch-action: pan-y;
    }

    .new-dictation-sentence-stack::-webkit-scrollbar { display: none; }

    .new-dictation-sentence-stack > .new-dictation-preview,
    .new-dictation-sentence-stack > .new-dictation-current-card { flex: 0 0 auto; }

    .new-dictation-preview {
        min-height: 54px;
    }

    .new-dictation-stage.is-embedded {
        min-height: 310px;
    }

    .new-dictation-main,
    .dictation-stage.is-embedded .new-dictation-main {
        min-height: 150px;
    }
}

@media (min-width: 621px) and (max-width: 760px) {
    .dictation-media-controls {
        min-height: 64px;
        padding: 5px 3px;
        grid-template-columns: repeat(5, minmax(44px, 1fr));
        gap: 1px;
    }

    .dictation-media-controls .blind-control {
        min-height: 52px;
    }

    .dictation-media-controls .blind-control-icon {
        width: 30px;
        height: 30px;
    }

    .dictation-media-controls .blind-control.is-primary .blind-control-icon {
        width: 34px;
        height: 34px;
    }

    .dictation-media-controls .blind-control-label {
        font-size: 9px;
    }

    .new-dictation-current-head {
        padding: 10px 11px 5px;
    }

    .new-dictation-main,
    .dictation-stage.is-embedded .new-dictation-main {
        padding: 9px 10px;
    }

    .new-dictation-actions .mini-action {
        padding-inline: 4px;
        gap: 3px;
        font-size: 10.5px;
    }

    .new-dictation-shortcut kbd {
        min-width: 17px;
        height: 18px;
        padding-inline: 3px;
        font-size: 7.5px;
    }

    .new-dictation-stage .dictation-review-card {
        gap: 7px;
    }

    .new-dictation-stage .review-card-words {
        gap: 6px;
    }

    .new-dictation-stage .review-word {
        flex-basis: auto;
        padding: 7px 8px;
        gap: 3px;
        border-radius: 10px;
    }

    .new-dictation-stage .review-word .answer-token {
        font-size: 14px;
    }

    .new-dictation-stage .review-word .answer-phonetic {
        font-size: 8.5px;
    }

    .new-dictation-stage .review-word .answer-meaning {
        padding: 2px 5px;
        font-size: 9px;
    }

    .new-dictation-stage .review-sentence-zh {
        padding: 7px 9px;
        font-size: 12.5px;
    }
}

@media (max-width: 620px) {
    .new-dictation-card {
        padding: 8px;
        border-radius: 11px;
    }

    .new-dictation-layout {
        gap: 6px;
    }

    .new-dictation-media-column {
        width: min(100%, 302px);
    }

    .dictation-media-controls {
        min-height: 58px;
        margin-top: 5px;
        padding: 4px;
        gap: 1px;
        border-radius: 12px;
        box-shadow: 0 6px 16px rgba(39, 57, 88, 0.065);
    }

    .dictation-media-controls .blind-control {
        min-height: 48px;
        border-radius: 8px;
    }

    .dictation-media-controls .blind-control-icon {
        width: 30px;
        height: 30px;
    }

    .dictation-media-controls .blind-control.is-primary .blind-control-icon {
        width: 34px;
        height: 34px;
    }

    .dictation-media-controls .blind-control-label {
        font-size: 9px;
    }

    .new-dictation-sentence-stack {
        gap: 5px;
    }

    .new-dictation-preview {
        min-height: 36px;
        padding: 6px 9px;
        gap: 8px;
        border-radius: 10px;
    }

    .new-dictation-preview > span {
        padding: 4px 7px;
        font-size: 10px;
    }

    .new-dictation-preview > strong {
        font-size: 12px;
    }

    .new-dictation-current-card {
        border-radius: 12px;
    }

    .new-dictation-current-head {
        padding: 8px 9px 4px;
        align-items: center;
    }

    .new-dictation-play {
        min-width: 58px;
        min-height: 30px;
        padding-inline: 8px;
        font-size: 11px;
    }

    .new-dictation-stage.is-embedded {
        min-height: 166px;
    }

    .new-dictation-stage.is-embedded.is-reviewing {
        min-height: 0;
        height: auto;
    }

    .new-dictation-main,
    .dictation-stage.is-embedded .new-dictation-main {
        min-height: 82px;
        padding: 4px 7px 6px;
    }

    .new-dictation-stage.is-embedded.is-reviewing .new-dictation-main {
        min-height: 0;
        padding: 9px 7px 11px;
    }

    .new-dictation-stage .dictation-review-card {
        gap: 11px;
        align-content: start;
    }

    .new-dictation-stage .review-card-words {
        gap: 4px;
    }

    .new-dictation-stage .review-word {
        flex: 0 0 auto;
        padding: 5px 6px;
        gap: 2px;
        border-radius: 8px;
    }

    .new-dictation-stage .review-word .answer-token {
        padding: 0;
        font-size: 16px;
    }

    .new-dictation-stage .review-word .answer-token.is-clickable {
        border-radius: 4px;
        cursor: pointer;
        touch-action: manipulation;
    }

    .new-dictation-stage .review-word .answer-phonetic {
        padding: 0 2px 0 0;
        font-size: 8px;
    }

    .new-dictation-stage .review-word .answer-meaning {
        padding: 2px 4px;
        font-size: 8.5px;
    }

    .new-dictation-stage .review-sentence-zh {
        padding: 5px 7px;
        font-size: 11.5px;
    }

    .new-dictation-stage .word-line {
        gap: 2px 5px;
        align-content: center;
    }

    .new-dictation-stage .word-line:not(.is-reviewing) {
        padding: 8px 9px 7px;
    }

    .new-dictation-stage .word-slot {
        --word-font-size: clamp(16px, 4.7vw, 18px);
        width: clamp(31px, calc(var(--letters) * 0.5em + 9px), 108px);
        height: 34px;
        min-height: 34px;
    }

    .new-dictation-footer,
    .dictation-stage.is-embedded .new-dictation-footer {
        padding: 3px 7px 6px;
    }

    .new-dictation-actions {
        gap: 6px;
    }

    .new-dictation-shortcut,
    .new-dictation-play-tooltip {
        display: none;
    }

    .new-dictation-actions .mini-action {
        min-height: 32px;
        padding: 4px;
        border-radius: 9px;
        font-size: 10.5px;
    }

    .new-dictation-card > .new-step-bottom-nav {
        min-height: 34px;
        margin-top: 4px;
    }

    .new-dictation-card > .new-step-bottom-nav .new-step-nav-button {
        min-height: 34px;
        padding-inline: 10px;
    }
}

@media (max-width: 620px) and (max-height: 850px) {
    .new-dictation-card:has(.new-dictation-stage.is-reviewing) .new-dictation-layout {
        gap: 4px;
    }

    .new-dictation-card:has(.new-dictation-stage.is-reviewing) .new-dictation-media-column {
        width: min(100%, 230px);
    }

    .new-dictation-card:has(.new-dictation-stage.is-reviewing) .dictation-media-controls {
        min-height: 52px;
        margin-top: 4px;
        padding: 3px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .new-dictation-card:has(.new-dictation-stage.is-reviewing) .dictation-media-controls .blind-control {
        min-height: 44px;
    }

    .new-dictation-card:has(.new-dictation-stage.is-reviewing) .dictation-media-controls .blind-control-icon {
        width: 28px;
        height: 28px;
    }

    .new-dictation-card:has(.new-dictation-stage.is-reviewing) .dictation-media-controls .blind-control.is-primary .blind-control-icon {
        width: 32px;
        height: 32px;
    }

    .new-dictation-card:has(.new-dictation-stage.is-reviewing) .new-dictation-sentence-stack {
        gap: 3px;
    }

    .new-dictation-card:has(.new-dictation-stage.is-reviewing) .new-dictation-preview {
        min-height: 32px;
        padding: 4px 8px;
    }

    .new-dictation-card:has(.new-dictation-stage.is-reviewing) > .new-step-bottom-nav {
        margin-top: 2px;
    }
}

@media (min-width: 761px) and (max-height: 740px) {
    .new-series-shell {
        padding-top: 8px;
    }

    .new-lesson-stepper {
        min-height: 50px;
        margin-bottom: 8px;
        padding-block: 4px;
    }

    .new-lesson-step {
        min-height: 42px;
    }

    .new-lesson-step-number {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 12px;
    }

    .new-dictation-card {
        padding: 10px;
    }

    .new-dictation-layout {
        min-height: 0;
        grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1.2fr);
        gap: 12px;
    }

    .new-dictation-sentence-stack {
        grid-template-rows: auto minmax(270px, 1fr) auto;
        gap: 7px;
    }

    .new-dictation-preview {
        min-height: 54px;
        padding-block: 8px;
    }

    .new-dictation-card > .new-step-bottom-nav {
        min-height: 36px;
        margin-top: 7px;
    }

    .new-dictation-card > .new-step-bottom-nav .new-step-nav-button {
        min-height: 36px;
    }
}

/* 第三步：中英对照、逐句跟读与用户确认后上传的录音评测。 */
.new-compare-card {
    padding: 18px;
    border: 1px solid #dfe5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(28, 43, 72, 0.07);
}

.new-compare-layout {
    min-height: min(600px, calc(100dvh - 248px));
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
    gap: 18px;
    align-items: start;
}

.new-compare-media-column,
.new-compare-sentence-column,
.new-compare-sentence-stack {
    min-width: 0;
}

.new-compare-sentence-column {
    max-height: min(600px, calc(100dvh - 248px));
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.new-compare-playback-mode {
    position: relative;
    width: min(100%, 260px);
    min-height: 42px;
    margin-left: auto;
    padding: 3px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #dfe4ec;
    border-radius: 999px;
    background: #f3f5f8;
    box-shadow: 0 1px 2px rgba(25, 42, 73, 0.06) inset;
}

.new-compare-playback-thumb {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
    box-shadow:
        0 5px 13px rgba(32, 55, 96, 0.12),
        0 1px 2px rgba(32, 55, 96, 0.08);
    pointer-events: none;
    transform: translateX(0);
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
    will-change: transform;
}

.new-compare-card.is-continuous-mode .new-compare-playback-thumb {
    transform: translateX(100%);
}

.new-compare-playback-mode.is-gsap-ready .new-compare-playback-thumb {
    transition: box-shadow 220ms ease;
}

.new-compare-playback-mode button {
    position: relative;
    z-index: 1;
    min-height: 34px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #647087;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 760;
    transition: color 220ms ease, transform 220ms ease;
}

.new-compare-playback-mode button:hover,
.new-compare-playback-mode button:focus-visible {
    color: #2f66e9;
    outline: none;
    transform: translateY(-1px);
}

.new-compare-playback-mode button:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(47, 102, 233, 0.22);
}

.new-compare-playback-mode button.is-active {
    color: #2f66e9;
}

@media (prefers-reduced-motion: reduce) {
    .new-compare-playback-thumb,
    .new-compare-playback-mode button {
        transition-duration: 0ms;
    }
}

.new-compare-card.is-continuous-mode [data-compare-repeat-select] {
    cursor: default;
}

.new-compare-card.is-continuous-mode .blind-repeat-control .blind-control-icon {
    border-color: #b7cbfb;
    background: #eef4ff;
    color: #2f66e9;
}

.new-compare-preview[hidden],
.new-compare-recording-row[hidden],
.new-compare-preview-audio[hidden],
.new-compare-evaluation-result[hidden] {
    display: none !important;
}

.new-compare-preview.is-window-hidden {
    display: none !important;
}

.new-compare-video-frame {
    aspect-ratio: 16 / 9;
}

.new-compare-seek-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #090b0f;
    pointer-events: none;
}

.new-compare-seek-cover[hidden] {
    display: none;
}

.new-compare-seek-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.78;
    filter: saturate(0.9) brightness(0.72);
}

.compare-media-controls {
    width: min(100%, 390px);
    min-height: 66px;
    margin-top: 7px;
    padding: 5px 7px;
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    gap: 2px;
    border-color: rgba(154, 170, 194, 0.24);
    background: linear-gradient(180deg, rgba(253, 254, 255, 0.98), rgba(245, 248, 253, 0.96));
    box-shadow: 0 9px 24px rgba(39, 57, 88, 0.075);
}

.compare-media-controls .blind-control {
    min-height: 54px;
    border-radius: 10px;
}

.compare-media-controls .blind-control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.new-compare-card.is-sentence-playing [data-compare-action="play"] .blind-play-icon {
    display: none;
}

.new-compare-card.is-sentence-playing [data-compare-action="play"] .blind-pause-icon {
    display: block;
}

.new-compare-card.is-sentence-playing .blind-overlay-play {
    opacity: 0;
    pointer-events: none;
}

.new-compare-caption-strip {
    width: 100%;
    min-height: 86px;
    margin-top: 8px;
    padding: 11px 16px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(47, 102, 233, 0.16);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(247, 250, 255, 0.96), rgba(255, 255, 255, 0.98));
    box-shadow: 0 8px 22px rgba(39, 67, 121, 0.055);
    color: #18243a;
}

.new-caption-word-line {
    text-wrap: pretty;
}

.new-caption-word {
    border-radius: 0.28em;
    color: inherit;
    box-shadow: inset 0 0 0 1px transparent;
    transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.new-caption-word.is-clickable {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
    transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, text-decoration-color 140ms ease;
}

.new-caption-word.is-clickable:hover,
.new-caption-word.is-clickable:focus-visible {
    color: #155eef;
    background: rgba(47, 107, 232, 0.1);
    box-shadow: inset 0 0 0 1px rgba(47, 107, 232, 0.18);
    outline: none;
    text-decoration-color: rgba(47, 102, 233, 0.42);
}

.new-caption-word.is-inspecting {
    color: #155eef !important;
    background: #e9f0ff !important;
    box-shadow: inset 0 0 0 1px rgba(47, 102, 233, 0.28) !important;
}

.new-caption-word.is-speaking {
    color: #155eef;
    background: rgba(47, 107, 232, 0.12);
    box-shadow: inset 0 0 0 1px rgba(47, 107, 232, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .new-caption-word {
        transition: none;
    }
}

body.has-caption-word-modal {
    overflow: hidden;
}

.caption-word-modal[hidden] {
    display: none !important;
}

.caption-word-modal {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: grid;
    place-items: center;
    padding: 24px;
}

.caption-word-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 40, 68, 0.34);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.caption-word-dialog {
    position: relative;
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d8e2f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(28, 43, 72, 0.2);
    color: #19243a;
}

.caption-word-dialog-head {
    min-height: 78px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #dfe7f3;
    background: linear-gradient(145deg, #fff 0%, #f5f8ff 100%);
    color: #172238;
}

.caption-word-dialog-head > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.caption-word-dialog-head h2 {
    margin: 0;
    overflow-wrap: anywhere;
    color: #162238;
    font-family: inherit;
    font-size: clamp(26px, 3.8vw, 36px);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.caption-word-star {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #c9d8f6;
    border-radius: 11px;
    background: #edf3ff;
    color: #2f66e9;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.caption-word-close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid #d3deee;
    border-radius: 50%;
    background: #fff;
    color: #60718c;
    cursor: pointer;
    font: inherit;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
}

.caption-word-close:hover,
.caption-word-close:focus-visible {
    border-color: #a9c0f3;
    background: #edf3ff;
    color: #2f66e9;
    outline: 2px solid rgba(47, 102, 233, 0.24);
    outline-offset: 2px;
}

.caption-word-dialog-body {
    padding: 18px 20px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.caption-word-accent-note {
    width: max-content;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf3ff;
    color: #526c9f;
    font-size: 11px;
    font-weight: 700;
}

.caption-word-pronunciations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.caption-word-pronunciation {
    min-width: 0;
    min-height: 48px;
    padding: 10px 13px;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    border: 1px solid #d6e1f2;
    border-radius: 12px;
    background: #fbfcff;
    color: #6d7e99;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.caption-word-pronunciation strong {
    color: #2f66e9;
    white-space: nowrap;
}

.caption-word-pronunciation span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.caption-word-pronunciation-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf3ff;
    color: #2f66e9;
}

.caption-word-pronunciation-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.caption-word-pronunciation:hover,
.caption-word-pronunciation:focus-visible,
.caption-word-pronunciation.is-playing {
    border-color: #a9c0f3;
    background: #f4f7ff;
    outline: none;
}

.caption-word-pronunciation.is-loading {
    cursor: wait;
    opacity: 0.62;
}

.caption-word-context-card,
.caption-word-example-card {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid #d6e1f2;
    border-radius: 14px;
    background: #fbfcff;
}

.caption-word-context-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #fff 0%, #f6f9ff 100%);
}

.caption-word-context-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: #7fa3ef;
    content: "";
}

.caption-word-context-label,
.caption-word-example-card > span {
    display: block;
    color: #3569df;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.caption-word-context-card h3 {
    margin: 7px 0 0;
    color: #1d2b45;
    font-size: 22px;
    font-weight: 820;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.caption-word-phrase-phonetic {
    margin: 5px 0 0;
    color: #73829d;
    font-size: 14px;
}

.caption-word-chinese {
    margin: 12px 0 0;
    color: #344866;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.45;
}

.caption-word-context-row > span {
    display: block;
    margin-bottom: 3px;
    color: #74839a;
    font-size: 9px;
    font-weight: 800;
}

.caption-word-context-row > p {
    margin: 0;
    color: #344866;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.caption-word-context-row.is-in-sentence {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #dce6f5;
}

.caption-word-context-row.is-in-sentence > p {
    color: #1f5dcc;
}

.caption-word-english {
    margin: 7px 0 0;
    color: #65738b;
    font-size: 15px;
    line-height: 1.55;
}

.caption-word-similar {
    margin: 13px 0 0;
    color: #53627c;
    font-size: 14px;
}

.caption-word-similar span {
    margin-right: 8px;
    padding: 3px 7px;
    border-radius: 6px;
    background: #edf3ff;
    color: #3569df;
    font-size: 11px;
    font-weight: 800;
}

.caption-word-example-card {
    border-color: #e0e6ef;
    background: #fff;
}

.caption-word-example-card > span {
    color: #4c6fae;
}

.caption-word-example-card p {
    margin: 8px 0 0;
    color: #5d6d87;
    font-size: 14px;
    line-height: 1.55;
}

.caption-word-example-card p[lang="en"] {
    color: #263956;
    font-size: 16px;
    font-weight: 700;
}

.caption-word-example-card.is-extra {
    background: #fff;
}

.caption-word-dialog-foot {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    border-top: 1px solid #dce4f0;
    background: #fbfcff;
}

.caption-word-save {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid #2f66e9;
    background: #2f66e9;
    box-shadow: 0 7px 18px rgba(47, 102, 233, 0.18);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
}

.caption-word-save.is-saved {
    border-color: #a9c0f3;
    background: #edf3ff;
    box-shadow: none;
    color: #2f66e9;
}

.caption-word-save:disabled {
    cursor: wait;
    opacity: 0.6;
}

.caption-word-save:focus-visible,
.caption-word-vocabulary-link:focus-visible {
    outline: 3px solid rgba(47, 102, 233, 0.35);
    outline-offset: 3px;
}

.caption-word-vocabulary-link {
    padding: 10px 4px;
    color: #315fae;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.caption-word-vocabulary-link:hover {
    color: #1748a1;
}

@media (max-width: 620px) {
    .caption-word-modal {
        align-items: end;
        padding: 0;
    }

    .caption-word-dialog {
        width: 100%;
        max-height: min(84vh, 760px);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 16px 16px 0 0;
    }

    .caption-word-dialog-head {
        min-height: 64px;
        padding: 12px 14px;
    }

    .caption-word-dialog-head h2 {
        font-size: 27px;
    }

    .caption-word-star {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 12px;
    }

    .caption-word-close {
        width: 36px;
        height: 36px;
        font-size: 27px;
    }

    .caption-word-dialog-body {
        padding: 13px 12px 16px;
    }

    .caption-word-pronunciations {
        grid-template-columns: 1fr;
    }

    .caption-word-context-card,
    .caption-word-example-card {
        margin-top: 10px;
        padding: 12px 13px;
    }

    .caption-word-context-card h3 {
        font-size: 21px;
    }

    .caption-word-chinese {
        font-size: 13px;
    }

    .caption-word-dialog-foot {
        padding: 11px 14px calc(11px + env(safe-area-inset-bottom, 0px));
        flex-direction: column;
        gap: 3px;
    }

    .caption-word-save {
        width: 100%;
    }
}

/* 逐词查词使用贴近单词的轻量浮层，不遮挡整张课程卡。 */
.caption-word-modal {
    display: block;
    padding: 0;
    pointer-events: none;
}

.caption-word-dialog {
    position: fixed;
    width: min(330px, calc(100vw - 16px));
    max-height: min(390px, calc(100vh - 16px));
    border: 1px solid #d6e1f2;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(31, 52, 88, 0.16);
    pointer-events: auto;
}

.caption-word-dialog-head {
    min-height: 48px;
    padding: 8px 9px 7px 12px;
    border-bottom: 1px solid #e5ebf3;
    background: #fff;
}

.caption-word-dialog-head h2 {
    margin: 0;
    color: #172238;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.caption-word-dialog-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.caption-word-save,
.caption-word-close {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #c9d7f2;
    border-radius: 50%;
    background: #f8fbff;
    color: #2f66e9;
    box-shadow: none;
    font-size: 17px;
    font-weight: 750;
    line-height: 1;
}

.caption-word-close {
    color: #697993;
    font-size: 21px;
    font-weight: 350;
}

.caption-word-save:hover,
.caption-word-save:focus-visible,
.caption-word-save.is-saved {
    border-color: #2f66e9;
    background: #2f66e9;
    color: #fff;
    outline: none;
}

.caption-word-save.is-saved:disabled {
    cursor: default;
    opacity: 1;
}

.caption-word-dialog-body {
    padding: 9px 10px 10px;
}

.caption-word-accent-note {
    margin: 0 0 7px;
    padding: 2px 6px;
    color: #5873aa;
    font-size: 9px;
}

.caption-word-pronunciations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.caption-word-pronunciation {
    min-height: 34px;
    padding: 4px 7px;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 4px;
    border-radius: 9px;
    font-size: 10px;
}

.caption-word-pronunciation-icon {
    width: 22px;
    height: 22px;
}

.caption-word-pronunciation-icon svg {
    width: 13px;
    height: 13px;
}

.caption-word-context-card {
    margin-top: 7px;
    padding: 8px 9px;
    border: 1px solid #dce6f5;
    border-radius: 10px;
    background: #f7faff;
}

.caption-word-context-card::before {
    display: none;
}

.caption-word-chinese {
    margin: 0;
    color: #344866;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.caption-word-lexical-details {
    margin-top: 7px;
    border-top: 1px solid #e5ebf3;
}

.caption-word-lexical-details > div {
    padding: 7px 2px 0;
}

.caption-word-lexical-details span {
    display: block;
    margin-bottom: 2px;
    color: #74839a;
    font-size: 9px;
    font-weight: 800;
}

.caption-word-lexical-details p {
    margin: 0;
    color: #40516c;
    font-size: 11px;
    line-height: 1.42;
}

.caption-word-source-sentence {
    margin-top: 7px;
    padding: 7px 2px 0;
    border-top: 1px solid #e5ebf3;
}

.caption-word-source-sentence > span {
    display: block;
    margin-bottom: 3px;
    color: #74839a;
    font-size: 9px;
    font-weight: 800;
}

.caption-word-source-sentence p {
    margin: 0;
    color: #6b7990;
    font-size: 10px;
    line-height: 1.4;
}

.caption-word-source-sentence p[lang="en"] {
    margin-bottom: 2px;
    color: #344866;
    font-size: 10.5px;
    font-weight: 720;
}

@media (max-width: 620px) {
    .caption-word-modal {
        display: block;
        padding: 0;
    }

    .caption-word-dialog {
        width: min(310px, calc(100vw - 16px));
        max-height: min(370px, calc(100vh - 16px));
        border: 1px solid #d6e1f2;
        border-radius: 13px;
    }

    .caption-word-dialog-head {
        min-height: 46px;
        padding: 7px 8px 6px 11px;
    }

    .caption-word-dialog-head h2 {
        font-size: 19px;
    }

    .caption-word-save,
    .caption-word-close {
        width: 29px;
        min-width: 29px;
        height: 29px;
        min-height: 29px;
    }

    .caption-word-dialog-body {
        padding: 8px 9px 9px;
    }

    .caption-word-pronunciations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.new-compare-caption-strip p {
    margin: 0;
    text-align: center;
}

.new-compare-caption-english {
    margin-top: 4px !important;
    font-size: clamp(13px, 1.18vw, 16px);
    font-weight: 760;
    line-height: 1.35;
    letter-spacing: 0.005em;
}

.new-compare-caption-strip .new-compare-caption-phonetic {
    color: #6f83ac;
    font-size: clamp(11px, 0.96vw, 13px);
    line-height: 1.32;
}

.new-compare-caption-strip .new-compare-caption-chinese {
    margin-top: 5px;
    color: #586982;
    font-size: clamp(14px, 1.12vw, 16px);
    line-height: 1.38;
}

.new-compare-sentence-stack {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 10px;
    scrollbar-width: thin;
    touch-action: pan-y;
}

.new-compare-sentence-stack > .new-compare-preview,
.new-compare-sentence-stack > .new-compare-current-card { flex: 0 0 auto; }

.new-compare-preview {
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 9px 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    border: 1px solid #e1e7f0;
    border-radius: 15px;
    background: #f9fafc;
    color: #657187;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.new-compare-preview[data-compare-preview="prev"] { grid-row: 1; }
.new-compare-current-card { grid-row: 2; }
.new-compare-preview[data-compare-preview="next"] { grid-row: 3; }

.new-compare-preview:hover,
.new-compare-preview:focus-visible {
    border-color: rgba(47, 102, 233, 0.4);
    background: #f3f7ff;
    outline: none;
    transform: translateY(-1px);
}

.new-compare-preview > span:first-child {
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf1f7;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}

.new-compare-preview-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.new-compare-preview-copy strong,
.new-compare-preview-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-compare-preview-copy strong {
    color: #445269;
    font-size: 13px;
    font-weight: 700;
}

.new-compare-preview-copy small {
    color: #8490a2;
    font-size: 10.5px;
}

.new-compare-current-card {
    min-width: 0;
    overflow: hidden;
    border: 1.5px solid #76a1ff;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 52, 88, 0.07), 0 0 0 3px rgba(47, 102, 233, 0.065);
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

.new-compare-current-head {
    min-height: 42px;
    padding: 11px 16px 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #2f66e9;
    font-size: 13px;
    font-weight: 800;
}

.new-compare-sentence-play {
    min-height: 38px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #b7cbfb;
    border-radius: 999px;
    background: #f5f8ff;
    color: #2f66e9;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
}

.new-compare-current-copy {
    padding: 7px 22px 16px;
    text-align: center;
}

.new-compare-current-copy p {
    margin: 0;
}

.new-compare-current-copy [data-compare-current-en] {
    color: #131c2d;
    font-size: clamp(19px, 1.8vw, 25px);
    font-weight: 760;
    line-height: 1.42;
}

.new-compare-current-copy .new-compare-current-phonetic {
    display: none;
    margin-top: 5px;
    color: #6f83ac;
    font-size: 11.5px;
    line-height: 1.35;
}

.new-compare-current-copy [data-compare-current-zh] {
    margin-top: 8px;
    color: #596a83;
    font-size: 14px;
    line-height: 1.5;
}

.new-compare-recorder {
    margin: 0 16px 14px;
    padding: 12px 2px 0;
    border-top: 1px solid #e6ebf2;
}

.new-compare-recorder-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7a8799;
    font-size: 10.5px;
}

.new-compare-quota {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef3fd;
    color: #4264a4;
    font-weight: 800;
}

.new-compare-record-status {
    min-width: 0;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-compare-record-status[data-tone="neutral"] { display: none; }

.new-compare-record-status[data-tone="success"] { color: #187b5a; }
.new-compare-record-status[data-tone="warning"] { color: #a66a15; }
.new-compare-record-status[data-tone="error"] { color: #c24545; }

.new-compare-record-status.has-upgrade {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.focused-quota-upgrade-link {
    min-height: 24px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(47, 102, 233, 0.3);
    border-radius: 999px;
    background: #fff;
    color: #2f66e9;
    font-size: 10px;
    font-weight: 820;
    line-height: 1;
    text-decoration: none;
}

.focused-quota-upgrade-link:hover,
.focused-quota-upgrade-link:focus-visible {
    border-color: #2f66e9;
    outline: none;
    background: #2f66e9;
    color: #fff;
}

.new-compare-recorder-actions {
    margin: 0 0 9px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.new-compare-icon-action {
    position: relative;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
}

.new-compare-icon-action::after {
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    z-index: 8;
    padding: 6px 9px;
    border-radius: 7px;
    background: rgba(25, 35, 53, 0.94);
    color: #fff;
    box-shadow: 0 6px 16px rgba(20, 30, 48, 0.17);
    content: attr(data-tooltip);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 150ms ease, transform 150ms ease;
    white-space: nowrap;
}

.new-compare-icon-action:hover::after,
.new-compare-icon-action:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.new-compare-icon-action.has-ai-badge::after {
    bottom: calc(100% + 23px);
}

.new-compare-action-ai-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    z-index: 4;
    padding: 2px 5px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: linear-gradient(135deg, #6d5dfc, #2f66e9);
    color: #fff;
    box-shadow: 0 4px 10px rgba(64, 78, 210, 0.2);
    font-size: 7.5px;
    font-weight: 850;
    line-height: 1;
    pointer-events: none;
    transform: translateX(-50%);
    white-space: nowrap;
}

.new-compare-action-symbol,
.new-compare-action-mic-icon,
.new-compare-action-history-icon {
    width: 21px;
    height: 21px;
    display: block;
}

.new-compare-action-symbol svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.new-compare-action-play-icon {
    transform: translateX(1px);
    transform-origin: center;
}

.new-compare-action-pause-icon { display: none !important; }

.new-compare-card.is-sentence-playing .new-compare-action-play-icon { display: none; }
.new-compare-card.is-sentence-playing .new-compare-action-pause-icon { display: block !important; }

.new-compare-action-mic-icon {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.new-compare-action-history-icon {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.new-compare-history-button {
    border: 1px solid #cad6e7;
    background: #fff;
    color: #5d6d86;
    cursor: pointer;
}

.new-compare-record-button,
.new-compare-recording-row button,
.new-compare-preview-audio button {
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #cad6e7;
    border-radius: 999px;
    background: #fff;
    color: #425068;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
}

.new-compare-record-button.is-primary,
.new-compare-preview-audio button.is-primary {
    border-color: #2f66e9;
    background: #2f66e9;
    color: #fff;
    box-shadow: 0 7px 18px rgba(47, 102, 233, 0.18);
}

.new-compare-recorder-actions .new-compare-record-button.is-primary {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-color: #b7cbfb;
    background: #f5f8ff;
    color: #2f66e9;
    box-shadow: none;
}

.new-compare-record-button:disabled {
    border-color: #e0e5ec;
    background: #edf0f4;
    color: #9aa5b5;
    box-shadow: none;
    cursor: not-allowed;
}

.new-compare-mic {
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 9px 9px 11px 11px;
    font-size: 0;
}

.new-compare-mic::after {
    width: 2px;
    height: 7px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}

.new-compare-recording-row {
    margin-top: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #d64b4b;
    font-size: 12px;
}

.new-compare-recording-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e84f4f;
    box-shadow: 0 0 0 5px rgba(232, 79, 79, 0.12);
    animation: compare-record-pulse 1.2s ease-in-out infinite;
}

[data-compare-recording-time][data-ending="true"] { color: #d34e52; }

@keyframes compare-record-pulse {
    50% { transform: scale(0.72); opacity: 0.62; }
}

.new-compare-preview-audio {
    margin-top: 11px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.new-compare-preview-audio audio {
    width: 100%;
    height: 34px;
}

.new-compare-preview-audio > div {
    display: flex;
    gap: 7px;
}

.new-compare-evaluation-result {
    margin-top: 11px;
    padding: 16px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px 18px;
    border: 1px solid #dce7fb;
    border-radius: 16px;
    background: linear-gradient(145deg, #f7faff, #ffffff 58%, #f8faff);
    box-shadow: 0 10px 26px rgba(37, 74, 137, 0.07);
}

.new-compare-evaluation-result[data-compare-history-open] {
    cursor: pointer;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.new-compare-evaluation-result[data-compare-history-open]:hover {
    border-color: #9db9f5;
    box-shadow: 0 13px 30px rgba(37, 74, 137, 0.12);
    transform: translateY(-1px);
}

.new-compare-evaluation-result[data-compare-history-open]:focus-visible {
    outline: 3px solid rgba(47, 102, 233, 0.24);
    outline-offset: 3px;
    border-color: #7199ee;
}

.new-compare-result-summary {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 7px;
}

.new-compare-result-score {
    display: flex;
    align-items: baseline;
    color: #2f66e9;
}

.new-compare-result-score strong { font-size: 46px; line-height: 0.94; letter-spacing: -2px; }
.new-compare-result-score span { margin-left: 3px; font-size: 13px; font-weight: 800; }
.new-compare-result-score.is-excellent { color: #16835f; }
.new-compare-result-score.is-attention { color: #c47a14; }
.new-compare-result-score.is-weak { color: #d14f52; }

.new-compare-result-grade {
    padding: 4px 9px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #3262c5;
    font-size: 10.5px;
    font-weight: 850;
}

.new-compare-result-grade.is-excellent { background: #e6f7f0; color: #147557; }
.new-compare-result-grade.is-attention { background: #fff3df; color: #a86109; }
.new-compare-result-grade.is-weak { background: #ffebeb; color: #b43e42; }

.new-compare-detailed-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.new-compare-detailed-metric {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid #e1e8f4;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.86);
}

.new-compare-detailed-metric > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    color: #465674;
    font-size: 10.5px;
    font-weight: 750;
}

.new-compare-detailed-metric > div:first-child strong { color: #263a61; font-size: 17px; }

.new-compare-metric-track {
    height: 5px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf5;
}

.new-compare-metric-track span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: #4a77e8;
}

.new-compare-detailed-metric.is-excellent .new-compare-metric-track span { background: #25a57b; }
.new-compare-detailed-metric.is-attention .new-compare-metric-track span { background: #e59a2d; }
.new-compare-detailed-metric.is-weak .new-compare-metric-track span { background: #df6568; }

.new-compare-detailed-metric > small {
    margin-top: 7px;
    display: block;
    color: #7b879a;
    font-size: 9px;
    line-height: 1.35;
}

.new-compare-word-panel {
    grid-column: 1 / -1;
    min-width: 0;
    padding-top: 2px;
}

.new-compare-word-panel.is-detail-link {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #dce6f6;
    border-radius: 10px;
    background: #f7faff;
}

.new-compare-word-panel.is-detail-link > div { min-width: 0; }
.new-compare-word-panel.is-detail-link strong { color: #2d3d59; font-size: 11px; }
.new-compare-word-panel.is-detail-link p { margin: 3px 0 0; color: #748198; font-size: 9.5px; line-height: 1.45; }

.new-compare-word-panel.is-detail-link a {
    color: #2f66d7;
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.new-compare-word-panel.is-detail-link a:hover,
.new-compare-word-panel.is-detail-link a:focus-visible { text-decoration: underline; }

.new-compare-word-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.new-compare-word-heading strong { color: #2d3d59; font-size: 12px; }
.new-compare-word-heading span { color: #8b96a7; font-size: 9px; }

.new-compare-word-grid {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.new-compare-word-chip {
    min-width: 58px;
    padding: 7px 9px 6px;
    border: 1px solid #dce5f2;
    border-radius: 10px;
    background: #f7f9fd;
    color: #33445f;
}

.new-compare-word-chip > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.new-compare-word-chip strong { font-size: 11.5px; font-weight: 800; }
.new-compare-word-chip > div span { font-size: 11px; font-weight: 900; }
.new-compare-word-chip small { margin-top: 2px; display: block; color: #78869b; font-size: 8.5px; }
.new-compare-word-chip em { margin-top: 4px; display: block; color: inherit; font-size: 8px; font-style: normal; opacity: 0.82; }
.new-compare-word-chip.is-excellent { border-color: #bfe6d7; background: #effaf6; color: #147759; }
.new-compare-word-chip.is-good { border-color: #cfddfb; background: #f1f6ff; color: #315fae; }
.new-compare-word-chip.is-attention { border-color: #f0d39d; background: #fff8ea; color: #9b610d; }
.new-compare-word-chip.is-weak { border-color: #efbfc1; background: #fff1f1; color: #b33e43; }

.new-compare-word-empty { margin: 0; color: #7b8799; font-size: 10px; }

.new-compare-result-diagnosis {
    grid-column: 1 / -1;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 8px;
    border-left: 3px solid #4d78e5;
    border-radius: 8px;
    background: #f0f5ff;
}

.new-compare-result-diagnosis strong { color: #3158a7; font-size: 10.5px; white-space: nowrap; }
.new-compare-result-diagnosis p { margin: 0; color: #50617c; font-size: 10.5px; line-height: 1.5; }

.new-compare-result-open-hint {
    grid-column: 1 / -1;
    justify-self: end;
    color: #3265ce;
    font-size: 10px;
    font-weight: 850;
}

.new-compare-progress-comparison {
    grid-column: 1 / -1;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    border: 1px solid #d8e8e1;
    border-radius: 10px;
    background: #f3fbf7;
}

.new-compare-progress-comparison > strong { color: #176d53; font-size: 11px; }
.new-compare-progress-comparison > span { color: #245d4c; font-size: 10px; font-weight: 800; }
.new-compare-progress-comparison > div { display: flex; flex-wrap: wrap; gap: 5px; }
.new-compare-progress-comparison > div span { padding: 3px 7px; border-radius: 999px; background: #fff; color: #607064; font-size: 9px; }
.new-compare-progress-comparison > div span.is-improved { background: #e4f8ef; color: #147456; }
.new-compare-progress-comparison > div span.is-mastered { background: #dff6eb; color: #0f6c4d; font-weight: 800; }

.new-compare-coaching {
    grid-column: 1 / -1;
    padding-top: 2px;
}

.new-compare-coaching-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.new-compare-coaching-heading strong { color: #233b66; font-size: 14px; }
.new-compare-coaching-heading span { color: #78869b; font-size: 9.5px; }

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

.new-compare-coaching-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid #dbe5f6;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(46, 74, 124, 0.06);
}

.new-compare-coaching-card header { display: flex; align-items: center; gap: 7px; }
.new-compare-coaching-card header span { padding: 3px 6px; border-radius: 999px; background: #eaf1ff; color: #3f68c7; font-size: 8px; font-weight: 800; }
.new-compare-coaching-card header strong { color: #1f3151; font-size: 15px; }
.new-compare-coaching-issue { margin: 8px 0 0; color: #5c6b81; font-size: 10px; line-height: 1.55; }

.new-compare-coaching-direction {
    margin-top: 8px;
    padding: 9px;
    border-radius: 9px;
    background: #f2f6ff;
}

.new-compare-coaching-direction strong { color: #315cad; font-size: 9.5px; }
.new-compare-coaching-direction p { margin: 4px 0 0; color: #425777; font-size: 10px; line-height: 1.6; }
.new-compare-coaching-caution { margin: 7px 0 0; color: #9a651c; font-size: 9px; line-height: 1.5; }

.new-compare-coaching-steps {
    margin: 9px 0 0;
    padding: 0;
    display: grid;
    gap: 5px;
    list-style: none;
}

.new-compare-coaching-steps label { display: flex; align-items: flex-start; gap: 6px; color: #53627a; font-size: 9.5px; line-height: 1.45; cursor: pointer; }
.new-compare-coaching-steps input { width: 13px; height: 13px; margin: 0; flex: 0 0 auto; accent-color: #356de6; }
.new-compare-coaching-steps input:checked + span { color: #718078; text-decoration: line-through; }

.new-compare-coaching-actions {
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.new-compare-coaching-actions > button,
.new-compare-coaching-back {
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid #cddbf5;
    border-radius: 8px;
    background: #fff;
    color: #3763b9;
    font: inherit;
    font-size: 9.5px;
    font-weight: 800;
    cursor: pointer;
}

.new-compare-coaching-actions details,
.new-compare-coaching-remaining { color: #7c8798; font-size: 8.5px; line-height: 1.5; }
.new-compare-coaching-actions summary,
.new-compare-coaching-remaining summary { cursor: pointer; }
.new-compare-coaching-actions details p,
.new-compare-coaching-remaining p { margin: 5px 0 0; }
.new-compare-coaching-remaining { margin-top: 9px; padding: 8px 10px; border-radius: 9px; background: #f7f9fc; }
.new-compare-coaching-back { margin-top: 10px; border-color: #356de6; background: #356de6; color: #fff; }
.new-compare-coaching-clear { margin: 9px 0 0; padding: 10px 12px; border-radius: 10px; background: #edf9f3; color: #216c55; font-size: 10px; line-height: 1.55; }

.new-compare-score-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    color: #41516d;
}

.new-compare-score-metric strong { font-size: 13px; }
.new-compare-score-metric small { color: #7d899b; font-size: 9px; }

.new-compare-history {
    margin-top: 10px;
}

.new-compare-history-heading,
.new-compare-history-empty {
    margin: 0 0 6px;
    color: #7a8799;
    font-size: 10px;
    font-weight: 750;
}

.new-compare-history-empty { display: none; }

.new-compare-history-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.new-compare-history-item {
    min-width: 0;
    padding: 7px 8px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2px 6px;
    border: 1px solid #e2e8f1;
    border-radius: 10px;
    background: #fff;
}

.new-compare-history-item strong { color: #2f66e9; font-size: 13px; }
.new-compare-history-item span { color: #8591a2; font-size: 9px; }
.new-compare-history-item audio { width: 100%; height: 24px; grid-column: 1 / -1; }

.new-compare-history-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(21, 31, 49, 0.24);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.new-compare-history-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.new-compare-history-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1101;
    width: min(520px, calc(100vw - 24px));
    padding: 22px;
    overflow-y: auto;
    background: rgba(251, 252, 255, 0.98);
    box-shadow: -18px 0 48px rgba(25, 40, 70, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateX(102%);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.new-compare-history-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.new-compare-history-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.new-compare-history-drawer-head > div > span {
    color: #2f66e9;
    font-size: 11px;
    font-weight: 800;
}

.new-compare-history-drawer-head h3 {
    margin: 5px 0 0;
    color: #172033;
    font-size: 21px;
    line-height: 1.25;
}

.new-compare-history-drawer-head p {
    margin: 8px 0 0;
    color: #6d7a8e;
    font-size: 12px;
    line-height: 1.45;
}

.new-compare-history-drawer-head > button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid #dbe2ed;
    border-radius: 50%;
    background: #fff;
    color: #647087;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.new-compare-history-tabs {
    margin-top: 22px;
    padding: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    border-radius: 12px;
    background: #edf1f7;
}

.new-compare-history-tabs button {
    min-height: 38px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6c788c;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
}

.new-compare-history-tabs button[aria-selected="true"] {
    background: #fff;
    color: #2f66e9;
    box-shadow: 0 4px 12px rgba(38, 57, 91, 0.09);
}

.new-compare-history-pane[hidden] {
    display: none;
}

.new-compare-history-drawer-list {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.new-compare-history-drawer-empty {
    margin: 24px 0 0;
    padding: 22px 16px;
    border: 1px dashed #d8e0ec;
    border-radius: 13px;
    background: #fff;
    color: #7a879a;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.new-compare-history-recording-card,
.new-compare-history-score-card {
    padding: 13px;
    border: 1px solid #e0e6ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(35, 52, 82, 0.05);
}

.new-compare-history-recording-card > div,
.new-compare-history-score-card > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.new-compare-history-recording-card strong,
.new-compare-history-score-card > div:first-child strong {
    color: #26354d;
    font-size: 13px;
}

.new-compare-history-recording-card span,
.new-compare-history-score-card > div:first-child span {
    color: #8a95a6;
    font-size: 10px;
}

.new-compare-history-recording-card audio {
    width: 100%;
    height: 32px;
    margin-top: 10px;
}

.new-compare-history-audio-error {
    margin: 8px 0 0;
    color: #c24545;
    font-size: 10.5px;
    line-height: 1.4;
}

.new-compare-history-card-actions { display: inline-flex; align-items: center; gap: 8px; }
.new-compare-history-card-actions .new-compare-history-delete {
    padding: 2px 6px;
    border: 0;
    background: transparent;
    color: #b24d52;
    font: inherit;
    font-size: 9px;
    cursor: pointer;
}

.new-compare-history-score-card > div:first-child strong {
    color: #2f66e9;
    font-size: 24px;
}

.new-compare-history-score-metrics {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.new-compare-history-score-metrics .new-compare-score-metric {
    padding: 7px;
    display: grid;
    justify-items: center;
    border-radius: 9px;
    background: #f3f6fb;
}

.new-compare-history-score-card .new-compare-word-panel.is-history {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e8edf4;
}

.new-compare-history-score-card .new-compare-word-heading {
    align-items: flex-start;
}

.new-compare-history-score-card .new-compare-word-heading span {
    max-width: 280px;
    text-align: right;
    line-height: 1.35;
}

.new-compare-history-score-card .new-compare-word-grid { gap: 5px; }
.new-compare-history-score-card .new-compare-word-chip { min-width: 54px; padding: 6px 7px 5px; }

.new-compare-history-score-card > p {
    margin: 12px 0 0;
    padding: 10px 11px;
    border-left: 3px solid #4d78e5;
    border-radius: 8px;
    background: #f0f5ff;
    color: #52627d;
    font-size: 10.5px;
    line-height: 1.55;
}

@media (max-width: 1000px) {
    .new-compare-card { padding: 12px; }
    .new-compare-layout { min-height: 0; grid-template-columns: minmax(0, 0.86fr) minmax(390px, 1.14fr); gap: 12px; }
    .new-compare-sentence-stack { grid-template-rows: auto auto auto; }
}

@media (min-width: 1001px) and (max-height: 760px) {
    .new-compare-media-column { width: min(100%, 500px); margin-inline: auto; }
    .new-compare-sentence-stack { grid-template-rows: auto auto auto; }
}

@media (max-width: 760px) {
    .new-compare-layout { grid-template-columns: 1fr; gap: 9px; }
    .new-compare-media-column { width: min(100%, 560px); margin-inline: auto; }
    .new-compare-sentence-column { max-height: none; }
    .new-compare-playback-mode { width: min(100%, 320px); margin-inline: auto; }
    .new-compare-sentence-stack { max-height: min(600px, calc(100dvh - 248px)); }
    .new-compare-sentence-stack { grid-template-rows: auto auto auto; }
    .new-compare-current-card { grid-row: 2; }
    .new-compare-preview[data-compare-preview="prev"] { grid-row: 1; }
    .new-compare-preview[data-compare-preview="next"] { grid-row: 3; }
    .new-compare-caption-strip { display: none; }
    .new-compare-current-copy .new-compare-current-phonetic { display: block; }
}

@media (max-width: 620px) {
    /* 第二步在手机上固定学习面板，防止页面滚动时当前听写卡钻到视频背后。 */
    .new-dictation-card:not([hidden]) {
        position: fixed;
        top: calc(var(--new-mobile-topbar-height, 52px) + 62px);
        right: 10px;
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        left: 10px;
        z-index: 1201;
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    .new-dictation-layout {
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
    }

    .new-dictation-media-column {
        position: static;
        z-index: auto;
        flex: 0 0 auto;
    }

    .new-dictation-sentence-stack {
        flex: 1 1 0;
        min-height: 0;
        height: auto;
        max-height: none;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
    }

    /* 第三步在手机上保持为一个固定学习面板：视频始终在上，只有句子区滚动。 */
    .new-compare-card:not([hidden]) {
        position: fixed;
        top: calc(var(--new-mobile-topbar-height, 52px) + 62px);
        right: 10px;
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        left: 10px;
        z-index: 1201;
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    .new-compare-card { padding: 7px; border-radius: 12px; }
    .new-compare-layout {
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
    }
    .new-compare-media-column {
        position: static;
        z-index: auto;
        flex: 0 0 auto;
    }
    .new-compare-sentence-column {
        flex: 1 1 0;
        min-height: 0;
        max-height: none;
        overflow: hidden;
    }
    .new-compare-media-column { width: min(100%, 282px); }
    .new-compare-playback-mode { min-height: 39px; padding: 3px; }
    .new-compare-playback-mode button { min-height: 31px; padding-inline: 12px; font-size: 12px; }
    .new-compare-video-frame .blind-overlay-play { width: 52px; height: 52px; }
    .new-compare-video-frame .blind-overlay-play svg { width: 25px; height: 25px; }
    .compare-media-controls { min-height: 54px; margin-top: 5px; padding: 3px; border-radius: 12px; }
    .compare-media-controls .blind-control { min-height: 46px; gap: 3px; }
    .compare-media-controls .blind-control-icon { width: 28px; height: 28px; }
    .compare-media-controls .blind-control.is-primary .blind-control-icon { width: 33px; height: 33px; }
    .compare-media-controls .blind-control-label { font-size: 8.5px; }
    .new-compare-caption-strip { min-height: 64px; margin-top: 5px; padding: 6px 9px 7px; border-radius: 10px; }
    .new-compare-caption-english { font-size: 10.5px; line-height: 1.24; }
    .new-compare-caption-strip .new-compare-caption-phonetic { font-size: 9px; line-height: 1.18; }
    .new-compare-caption-strip .new-compare-caption-chinese { font-size: 10px; line-height: 1.22; }
    .new-compare-sentence-stack {
        flex: 1 1 0;
        min-height: 0;
        height: auto;
        max-height: none;
        gap: 5px;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scroll-padding-block: 5px;
        scrollbar-width: none;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }
    .new-compare-sentence-stack::-webkit-scrollbar { display: none; }
    .new-compare-sentence-stack > .new-compare-preview,
    .new-compare-sentence-stack > .new-compare-current-card { flex: 0 0 auto; }
    .new-compare-preview { min-height: 48px; padding: 5px 8px; border-radius: 10px; gap: 7px; }
    .new-compare-preview > span:first-child { padding: 3px 6px; font-size: 8.5px; }
    .new-compare-preview-copy strong { font-size: 10.5px; }
    .new-compare-preview-copy small { display: block; font-size: 10px; line-height: 1.2; }
    .new-compare-current-card { border-radius: 13px; }
    .new-compare-current-head { min-height: 39px; padding: 6px 9px 4px; font-size: 10.5px; }
    .new-compare-sentence-play { min-height: 29px; padding-inline: 10px; font-size: 10px; }
    .new-compare-current-copy { padding: 4px 12px 9px; }
    .new-compare-current-copy [data-compare-current-en] { margin-top: 3px; font-size: 16px; line-height: 1.3; }
    .new-compare-current-copy .new-compare-current-phonetic { margin-top: 0; font-size: 11.5px; line-height: 1.3; }
    .new-compare-current-copy [data-compare-current-zh] { margin-top: 4px; font-size: 13.5px; line-height: 1.4; }
    .new-compare-recorder {
        margin: 0 8px 6px;
        padding: 5px 4px 1px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 3px 8px;
    }
    .new-compare-recorder-summary { gap: 5px; font-size: 8.5px; }
    .new-compare-quota { padding: 2px 6px; background: transparent; }
    .new-compare-record-status { white-space: normal; line-height: 1.25; }
    .new-compare-recorder-actions { margin: 0; gap: 5px; }
    .new-compare-recorder-actions .new-compare-icon-action,
    .new-compare-recorder-actions .new-compare-record-button.is-primary {
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
        border-color: transparent;
        background: transparent;
        box-shadow: none;
    }
    .new-compare-recorder-actions .new-compare-icon-action:hover,
    .new-compare-recorder-actions .new-compare-icon-action:focus-visible {
        border-color: rgba(47, 102, 233, 0.18);
        background: rgba(47, 102, 233, 0.055);
    }
    .new-compare-action-symbol,
    .new-compare-action-mic-icon,
    .new-compare-action-history-icon { width: 18px; height: 18px; }
    .new-compare-action-ai-badge { top: -5px; padding: 1px 4px; font-size: 6.5px; }
    .new-compare-record-button,
    .new-compare-recording-row button,
    .new-compare-preview-audio button { min-height: 31px; padding-inline: 10px; font-size: 9.5px; }
    .new-compare-recording-row,
    .new-compare-preview-audio,
    .new-compare-evaluation-result { flex-basis: 100%; }
    .new-compare-preview-audio { margin-top: 7px; grid-template-columns: 1fr; gap: 6px; }
    .new-compare-preview-audio > div { justify-content: center; }
    .new-compare-evaluation-result {
        margin-top: 7px;
        padding: 11px;
        display: block;
    }
    .new-compare-result-summary {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .new-compare-result-score strong { font-size: 34px; }
    .new-compare-detailed-metrics { margin-top: 10px; gap: 5px; }
    .new-compare-detailed-metric { padding: 7px; }
    .new-compare-detailed-metric > div:first-child { font-size: 9px; }
    .new-compare-detailed-metric > div:first-child strong { font-size: 14px; }
    .new-compare-detailed-metric > small { display: none; }
    .new-compare-word-panel { margin-top: 11px; }
    .new-compare-word-panel.is-detail-link {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .new-compare-word-panel.is-detail-link a { justify-self: start; }
    .new-compare-word-heading { align-items: flex-start; }
    .new-compare-word-heading span { max-width: 170px; text-align: right; line-height: 1.35; }
    .new-compare-word-grid { gap: 5px; }
    .new-compare-word-chip { min-width: 52px; padding: 6px 7px 5px; }
    .new-compare-result-diagnosis { margin-top: 10px; display: block; }
    .new-compare-result-diagnosis p { margin-top: 3px; }
    .new-compare-progress-comparison { margin-top: 10px; }
    .new-compare-coaching { margin-top: 11px; }
    .new-compare-coaching-heading { align-items: flex-start; }
    .new-compare-coaching-heading span { max-width: 150px; text-align: right; line-height: 1.4; }
    .new-compare-coaching-grid { grid-template-columns: 1fr; }
    .new-compare-coaching-card { padding: 11px; }
    .new-compare-coaching-direction p { font-size: 10.5px; }
    .new-compare-history { margin-top: 6px; }
    .new-compare-history-empty { display: none; }
    .new-compare-history-list { gap: 4px; }
    .new-compare-history-item { padding: 5px; }
    .new-compare-history-item audio { height: 20px; }
    .new-compare-card > .new-step-bottom-nav { margin-top: 5px; }
    .new-compare-history-drawer { width: min(356px, calc(100vw - 12px)); padding: 18px 15px; }
    .new-compare-history-drawer-head h3 { font-size: 18px; }
}

/* 第三步评分详情：单条记录切换，原声/录音对比和全量音素分数。 */
.new-compare-history-backdrop { z-index: 1300; }

.new-compare-history-drawer {
    z-index: 1301;
    width: min(580px, calc(100vw - 24px));
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid #e0e7f1;
    background: rgba(248, 250, 255, 0.985);
}

.new-compare-history-drawer.is-dragging { transition: none; }

.new-compare-history-drag-handle { display: none; }

.new-compare-history-drawer-head {
    padding: 22px 24px 17px;
    flex: 0 0 auto;
    align-items: center;
    border-bottom: 1px solid #e4eaf3;
    background: rgba(255, 255, 255, 0.92);
}

.new-compare-history-drawer-head > div > span { font-size: 12px; }
.new-compare-history-drawer-head h3 { margin-top: 4px; font-size: 22px; }

.new-compare-history-scroll {
    min-height: 0;
    flex: 1 1 auto;
    padding: 18px 24px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.new-compare-history-content {
    display: grid;
    gap: 14px;
}

.new-compare-history-content > .new-compare-coaching.is-history {
    min-width: 0;
    padding: 15px;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(33, 55, 91, 0.045);
}

.new-compare-coaching.is-history .new-compare-coaching-grid {
    grid-template-columns: 1fr;
}

.new-compare-coaching.is-history .new-compare-coaching-back {
    width: 100%;
}

.new-compare-history-footer { display: none; }

.new-compare-history-attempts,
.new-compare-history-reference,
.new-compare-history-audio-section,
.new-compare-history-score-overview,
.new-compare-history-word-section {
    min-width: 0;
    border: 1px solid #dfe7f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(33, 55, 91, 0.045);
}

.new-compare-history-attempts { padding: 14px; }

.new-compare-history-attempt-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
}

.new-compare-history-attempt-head > div:first-child {
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 9px;
}

.new-compare-history-attempt-head > div:first-child strong {
    color: #223451;
    font-size: 14px;
}

.new-compare-history-attempt-head > div:first-child span {
    color: #8995a7;
    font-size: 11px;
}

.new-compare-history-delta {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f0f3f8;
    color: #68768c;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.new-compare-history-delta.is-up { background: #eaf8f2; color: #187657; }
.new-compare-history-delta.is-down { background: #fff0f0; color: #b34b50; }

.new-compare-history-more { position: relative; }
.new-compare-history-more summary { list-style: none; }
.new-compare-history-more summary::-webkit-details-marker { display: none; }

.new-compare-history-more > summary {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #dbe3ef;
    border-radius: 50%;
    background: #fff;
    color: #66758c;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;
}

.new-compare-history-more[open] > summary {
    border-color: #a9c1f7;
    background: #eef4ff;
    color: #2f66e9;
}

.new-compare-history-more .new-compare-history-delete {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 2;
    min-width: 94px;
    padding: 9px 12px;
    border: 1px solid #efd0d2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(47, 57, 77, 0.16);
    color: #b34449;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.new-compare-history-attempt-nav {
    margin-top: 12px;
    padding: 3px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    border-radius: 12px;
    background: #edf1f7;
}

.new-compare-history-attempt-nav:has(> :only-child) { grid-template-columns: 1fr; }
.new-compare-history-attempt-nav:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.new-compare-history-attempt-nav button {
    min-height: 42px;
    padding: 6px 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6c788b;
    cursor: pointer;
    font: inherit;
}

.new-compare-history-attempt-nav button strong { font-size: 12px; }
.new-compare-history-attempt-nav button span { font-size: 11px; }

.new-compare-history-attempt-nav button.is-active {
    background: #fff;
    color: #2f66e9;
    box-shadow: 0 4px 12px rgba(38, 57, 91, 0.09);
}

.new-compare-history-reference { padding: 15px 17px 16px; }

.new-compare-history-reference > span,
.new-compare-history-audio-section > strong,
.new-compare-history-section-heading > strong {
    color: #64738a;
    font-size: 12px;
    font-weight: 800;
}

.new-compare-history-reference p {
    margin: 7px 0 0;
    color: #1f3150;
    font-size: 18px;
    font-weight: 730;
    line-height: 1.55;
}

.new-compare-history-reference p button {
    margin: 0;
    padding: 0 1px;
    border: 0;
    border-bottom: 2px solid currentColor;
    background: transparent;
    color: #c07a16;
    cursor: pointer;
    font: inherit;
}

.new-compare-history-reference p button.is-weak { color: #d25256; }

.new-compare-history-audio-section { padding: 14px 16px 16px; }

.new-compare-history-audio-section > div {
    margin-top: 9px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.new-compare-history-play-button {
    min-height: 58px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d5e0f4;
    border-radius: 13px;
    background: #f8faff;
    color: #315aab;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.new-compare-history-play-button:hover,
.new-compare-history-play-button:focus-visible,
.new-compare-history-play-button.is-playing {
    border-color: #8eaff5;
    background: #edf3ff;
    color: #245fd9;
}

.new-compare-history-play-button:disabled { cursor: wait; opacity: 0.58; }

.new-compare-history-play-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #2f66e9;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.new-compare-history-play-button > span:last-child { min-width: 0; display: grid; gap: 2px; }
.new-compare-history-play-button strong { color: #243854; font-size: 13px; }
.new-compare-history-play-button small { color: #7d8ba0; font-size: 11px; }
.new-compare-history-audio-section .new-compare-history-audio-error { margin: 9px 0 0; }

.new-compare-history-score-overview {
    padding: 15px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
}

.new-compare-history-overall {
    min-height: 112px;
    padding: 12px;
    display: grid;
    align-content: center;
    justify-items: center;
    border-radius: 13px;
    background: #edf3ff;
    color: #2f66e9;
}

.new-compare-history-overall.is-excellent { background: #eaf8f2; color: #16805f; }
.new-compare-history-overall.is-attention { background: #fff5e5; color: #b36d0c; }
.new-compare-history-overall.is-weak { background: #fff0f0; color: #c54b50; }
.new-compare-history-overall > span { font-size: 11px; font-weight: 800; }
.new-compare-history-overall strong { margin-top: 3px; font-size: 44px; line-height: 1; letter-spacing: -2px; }
.new-compare-history-overall small { margin-top: 1px; font-size: 11px; font-weight: 800; }

.new-compare-history-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.new-compare-history-metric {
    min-width: 0;
    padding: 12px 9px;
    display: grid;
    align-content: center;
    justify-items: center;
    border: 1px solid #e2e8f2;
    border-radius: 12px;
    background: #fafbfe;
}

.new-compare-history-metric strong { color: #263b5c; font-size: 23px; }
.new-compare-history-metric > span:nth-child(2) { margin-top: 2px; color: #748197; font-size: 11px; font-weight: 750; }

.new-compare-history-metric-track {
    width: 100%;
    height: 4px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eaf2;
}

.new-compare-history-metric-track > span { height: 100%; display: block; border-radius: inherit; }
.new-compare-history-metric.is-excellent .new-compare-history-metric-track > span { background: #36a875; }
.new-compare-history-metric.is-attention .new-compare-history-metric-track > span { background: #e3a038; }
.new-compare-history-metric.is-weak .new-compare-history-metric-track > span { background: #de6267; }

.new-compare-history-word-section { padding: 15px; }

.new-compare-history-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.new-compare-history-section-heading > span {
    color: #8995a7;
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
}

.new-compare-history-word-list { margin-top: 11px; display: grid; gap: 9px; }

.new-compare-history-word-card {
    position: relative;
    padding: 13px 14px 12px;
    overflow: hidden;
    border: 1px solid #e2e8f1;
    border-left-width: 3px;
    border-radius: 13px;
    background: #fbfcfe;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.new-compare-history-word-card.is-excellent { border-left-color: #35a776; }
.new-compare-history-word-card.is-attention { border-left-color: #e2a03b; }
.new-compare-history-word-card.is-weak { border-left-color: #dc5d62; }

.new-compare-history-word-card.is-targeted {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(47, 102, 233, 0.16), 0 10px 24px rgba(42, 68, 112, 0.1);
}

.new-compare-history-word-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.new-compare-history-word-head > div { min-width: 0; display: grid; gap: 2px; }
.new-compare-history-word-head strong { color: #223450; font-size: 17px; line-height: 1.25; }
.new-compare-history-word-head small { color: #ba4d51; font-size: 11px; }
.new-compare-history-word-head > span { flex: 0 0 auto; font-size: 18px; font-weight: 900; }
.new-compare-history-word-card.is-excellent .new-compare-history-word-head > span { color: #198060; }
.new-compare-history-word-card.is-attention .new-compare-history-word-head > span { color: #b77414; }
.new-compare-history-word-card.is-weak .new-compare-history-word-head > span { color: #c94e53; }

.new-compare-history-phonemes {
    min-height: 76px;
    margin-top: 8px;
    padding: 5px 3px 0;
    display: flex;
    align-items: flex-end;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.new-compare-history-phoneme {
    position: relative;
    min-width: 25px;
    flex: 1 0 25px;
    max-width: 40px;
    padding: 16px 0 0;
    display: grid;
    justify-items: center;
    gap: 5px;
    border: 0;
    background: transparent;
    color: #6e7a8e;
    cursor: pointer;
    font: inherit;
}

.new-compare-history-phoneme-track {
    width: 10px;
    height: 45px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 999px;
    background: #e4e9f0;
}

.new-compare-history-phoneme-track > span { width: 100%; display: block; border-radius: inherit; }
.new-compare-history-phoneme.is-excellent .new-compare-history-phoneme-track > span { background: #56bd31; }
.new-compare-history-phoneme.is-attention .new-compare-history-phoneme-track > span { background: #e3a039; }
.new-compare-history-phoneme.is-weak .new-compare-history-phoneme-track > span { background: #de6267; }
.new-compare-history-phoneme-label { font-size: 11px; font-weight: 750; }

.new-compare-history-phoneme-score {
    position: absolute;
    top: -1px;
    left: 50%;
    padding: 2px 5px;
    border-radius: 6px;
    background: #27364e;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 150ms ease, transform 150ms ease;
    font-size: 9px;
    font-weight: 800;
}

.new-compare-history-phoneme:hover .new-compare-history-phoneme-score,
.new-compare-history-phoneme:focus-visible .new-compare-history-phoneme-score,
.new-compare-history-phoneme.is-revealed .new-compare-history-phoneme-score {
    opacity: 1;
    transform: translate(-50%, 0);
}

.new-compare-history-phoneme-empty {
    align-self: center;
    color: #8995a5;
    font-size: 11px;
}

.new-compare-history-word-advice {
    margin: 9px 0 0;
    color: #65738a;
    font-size: 12px;
    line-height: 1.55;
}

.new-compare-history-word-advice.is-excellent { margin-top: 4px; color: #288263; }
.new-compare-history-word-advice.is-attention { color: #8d641f; }

.new-compare-history-word-advice.is-weak {
    padding: 9px 11px;
    display: grid;
    gap: 3px;
    border-radius: 9px;
    background: #fff1f1;
    color: #6f5055;
}

.new-compare-history-word-advice strong { color: #b64247; font-size: 11px; }

@media (max-width: 760px) {
    .new-compare-history-backdrop { background: rgba(20, 29, 44, 0.34); backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); }

    .new-compare-history-drawer {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: none;
        height: 88dvh;
        max-height: 88dvh;
        border: 0;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -18px 48px rgba(24, 39, 65, 0.2);
        transform: translateY(102%);
    }

    .new-compare-history-drawer.is-open { transform: translateY(0); }

    .new-compare-history-drag-handle {
        height: 20px;
        flex: 0 0 20px;
        display: grid;
        place-items: center;
        touch-action: none;
        background: #fff;
    }

    .new-compare-history-drag-handle span {
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: #cfd7e3;
    }

    .new-compare-history-drawer-head {
        padding: 2px 16px 11px;
        border-bottom-color: #e5eaf2;
    }

    .new-compare-history-drawer-head > button { display: none; }
    .new-compare-history-drawer-head > div > span { font-size: 11px; }
    .new-compare-history-drawer-head h3 { margin-top: 2px; font-size: 19px; }

    .new-compare-history-scroll {
        padding: 12px 14px 16px;
        scrollbar-gutter: auto;
    }

    .new-compare-history-content { gap: 10px; }

    .new-compare-history-footer {
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        flex: 0 0 auto;
        display: block;
        border-top: 1px solid #e1e7f0;
        background: rgba(255, 255, 255, 0.97);
    }

    .new-compare-history-footer button {
        width: 100%;
        min-height: 48px;
        border: 0;
        border-radius: 13px;
        background: #2f66e9;
        color: #fff;
        cursor: pointer;
        font: inherit;
        font-size: 15px;
        font-weight: 850;
        box-shadow: 0 8px 18px rgba(47, 102, 233, 0.2);
    }

    .new-compare-history-attempts,
    .new-compare-history-reference,
    .new-compare-history-audio-section,
    .new-compare-history-score-overview,
    .new-compare-history-word-section { border-radius: 14px; box-shadow: none; }

    .new-compare-history-attempts { padding: 12px; }
    .new-compare-history-attempt-head { grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; }
    .new-compare-history-attempt-head > div:first-child strong { font-size: 13px; }
    .new-compare-history-attempt-head > div:first-child span { width: 100%; font-size: 10px; }
    .new-compare-history-delta { padding: 3px 6px; font-size: 9.5px; }
    .new-compare-history-more > summary { width: 30px; height: 30px; }
    .new-compare-history-attempt-nav { margin-top: 10px; }
    .new-compare-history-attempt-nav button { min-height: 40px; padding-inline: 6px; gap: 4px; }
    .new-compare-history-attempt-nav button strong { font-size: 11px; }
    .new-compare-history-attempt-nav button span { font-size: 10px; }

    .new-compare-history-reference { padding: 13px 14px 14px; }
    .new-compare-history-reference p { margin-top: 5px; font-size: 16px; line-height: 1.5; }

    .new-compare-history-audio-section { padding: 12px 13px 13px; }
    .new-compare-history-play-button { min-height: 54px; padding: 8px 9px; gap: 8px; }
    .new-compare-history-play-icon { width: 31px; height: 31px; flex-basis: 31px; }
    .new-compare-history-play-button strong { font-size: 12px; }
    .new-compare-history-play-button small { font-size: 10px; }

    .new-compare-history-score-overview { padding: 12px; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; }
    .new-compare-history-overall { min-height: 98px; padding: 9px; }
    .new-compare-history-overall strong { font-size: 37px; }
    .new-compare-history-metrics { gap: 5px; }
    .new-compare-history-metric { padding: 9px 4px; }
    .new-compare-history-metric strong { font-size: 19px; }
    .new-compare-history-metric > span:nth-child(2) { font-size: 9.5px; }
    .new-compare-history-metric-track { margin-top: 8px; }

    .new-compare-history-word-section { padding: 13px; }
    .new-compare-history-section-heading { align-items: flex-start; }
    .new-compare-history-section-heading > span { max-width: 210px; font-size: 10.5px; }
    .new-compare-history-word-card { padding: 12px; }
    .new-compare-history-word-head strong { font-size: 16px; }
    .new-compare-history-word-head > span { font-size: 17px; }
    .new-compare-history-phonemes { gap: 5px; }
    .new-compare-history-phoneme { min-width: 23px; flex-basis: 23px; }
    .new-compare-history-word-advice { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .new-compare-recording-pulse { animation: none; }
    .new-compare-history-drawer,
    .new-compare-history-word-card,
    .new-compare-history-phoneme-score { transition: none; }
}

/* 第四步：表达积累与会用，沿用前三步的浅色面板与轻量蓝色操作体系。 */
.new-expression-practice-card {
    padding: 18px;
    border: 1px solid #dfe5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(28, 43, 72, 0.07);
}

.new-expression-layout {
    display: grid;
    height: clamp(375px, calc(100dvh - 220px), 620px);
    grid-template-columns: minmax(280px, 0.68fr) minmax(230px, 0.52fr) minmax(460px, 1.3fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
}

.new-expression-media-column,
.new-expression-detail-column,
.new-expression-list {
    box-sizing: border-box;
    min-width: 0;
}

.new-expression-detail-column {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.new-expression-detail-column > [data-expression-detail-card],
.new-expression-detail-column > [data-expression-transfer-card] {
    min-width: 0;
}

.new-expression-media-column {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.new-expression-video-frame {
    --blind-video-aspect: 16 / 9;
}

.new-expression-practice-card.is-expression-playing .blind-overlay-play {
    opacity: 0;
    pointer-events: none;
}

.expression-media-controls {
    width: 100%;
    max-width: none;
    min-height: 64px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    box-sizing: border-box;
}

.expression-media-controls .blind-control-label {
    font-size: 10px;
}

.new-expression-source-card {
    margin-top: 10px;
    padding: 9px 14px 10px;
    border: 1px solid #d7e3f5;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
    text-align: center;
    box-shadow: 0 10px 26px rgba(44, 76, 130, 0.055);
    transition: border-color 180ms ease, background 180ms ease;
}

.new-expression-detail-head > div > span {
    display: inline-flex;
    width: max-content;
    padding: 3px 7px;
    border-radius: 999px;
    background: #edf3ff;
    color: #3569df;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.new-expression-source-card p {
    margin: 3px 0 0;
}

.new-expression-source-card [data-expression-source-en] {
    color: #172238;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.new-expression-source-card [data-expression-source-zh] {
    color: #60718c;
    font-size: 12.5px;
    line-height: 1.42;
}

.new-expression-source-phonetic:empty {
    display: none;
}

.new-expression-source-phonetic {
    color: #7186ae;
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.3;
}

.new-expression-list {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    padding: 9px;
    border: 1px solid #dbe4f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 52, 88, 0.045);
}

.new-expression-list-head {
    padding: 3px 5px 10px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    color: #354562;
    font-size: 12px;
    font-weight: 800;
}

.new-expression-list-head small {
    color: #8693a8;
    font-size: 10px;
    font-weight: 700;
}

.new-expression-list-scroll {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 7px;
    padding-bottom: 5px;
    overflow: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 7px;
    scrollbar-width: thin;
}

.new-expression-list-item {
    min-width: 0;
    min-height: 56px;
    height: max-content;
    padding: 9px 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e6ef;
    border-radius: 11px;
    background: #fff;
    color: #52627b;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.new-expression-list-copy {
    flex: 1 1 auto;
    display: grid;
    min-width: 0;
    gap: 5px;
}

.new-expression-list-copy strong {
    color: #172238;
    font-size: 13px;
    font-weight: 820;
    line-height: 1.3;
    overflow-wrap: anywhere;
    white-space: normal;
}

.new-expression-list-copy small {
    color: #78869c;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: normal;
}

.new-expression-list-sound {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f3f7ff;
    color: #2f66e9;
}

.new-expression-list-sound svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.new-expression-list-item:hover,
.new-expression-list-item:focus-visible {
    border-color: #c8d8fb;
    background: #f2f6ff;
    color: #2f66e9;
    outline: none;
}

.new-expression-list-item.is-active {
    border-color: #2f66e9;
    background: linear-gradient(135deg, #f8fbff, #eef4ff);
    color: #2f66e9;
    box-shadow: 0 8px 20px rgba(47, 102, 233, 0.1);
}

.new-expression-list-item.is-active .new-expression-list-copy strong {
    color: #1d55d4;
}

.new-expression-list-empty {
    margin: 12px 5px;
    color: #8290a4;
    font-size: 12px;
}

body.lesson-new-series .new-expression-detail {
    position: relative;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d6e1f2;
    border-radius: 14px;
    background: #fbfcff;
    box-shadow: none;
    gap: 0;
}

.new-expression-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.new-expression-detail-head > div:first-child {
    min-width: 0;
}

body.lesson-new-series .new-expression-detail-head h3 {
    margin: 3px 0 0;
    color: #162238;
    font-size: clamp(19px, 1.45vw, 23px);
    font-weight: 820;
    letter-spacing: -0.03em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

body.lesson-new-series .new-expression-detail-head p {
    margin: 4px 0 0;
    color: #526681;
    font-size: 12px;
    font-weight: 680;
    line-height: 1.42;
}

.new-expression-detail-actions {
    display: flex;
    gap: 7px;
    flex: 0 0 auto;
}

.new-expression-pronunciation {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.new-expression-speak,
.new-expression-save {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #c9d7f2;
    border-radius: 50%;
    background: #f8fbff;
    color: #2f66e9;
    cursor: pointer;
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.new-expression-speak svg,
.new-expression-save svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.new-expression-pronunciation .new-expression-speak {
    width: auto;
    min-width: 56px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    gap: 4px;
    font: inherit;
    font-size: 10px;
    font-weight: 780;
}

.new-expression-pronunciation .new-expression-speak svg {
    width: 13px;
    height: 13px;
}

/* 表达详情发音紧跟标题，不使用底色、边框或胶囊容器。 */
body.lesson-new-series .new-expression-detail-head .new-expression-pronunciation {
    width: fit-content;
    max-width: 100%;
    margin-top: 5px;
    padding: 0;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.lesson-new-series .new-expression-detail-head .new-expression-pronunciation .new-expression-speak {
    width: auto;
    min-width: 0;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    gap: 5px;
    background: transparent;
    color: #69768b;
    box-shadow: none;
    font-size: 12px;
    font-weight: 520;
}

body.lesson-new-series .new-expression-detail-head .new-expression-pronunciation .new-expression-speak svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    stroke: #718399;
}

body.lesson-new-series .new-expression-detail-head .new-expression-pronunciation .new-expression-speak strong {
    color: #617189;
    font-size: 12px;
    font-weight: 720;
}

body.lesson-new-series .new-expression-detail-head .new-expression-pronunciation .new-expression-speak span {
    color: #6f7b8d;
    font-size: 12px;
    font-weight: 520;
}

body.lesson-new-series .new-expression-detail-head .new-expression-pronunciation .new-expression-speak:hover,
body.lesson-new-series .new-expression-detail-head .new-expression-pronunciation .new-expression-speak:focus-visible,
body.lesson-new-series .new-expression-detail-head .new-expression-pronunciation .new-expression-speak.is-playing {
    border: 0;
    outline: none;
    background: transparent;
    color: #2f66e9;
    transform: none;
}

.new-expression-speak.is-loading {
    cursor: wait;
    opacity: 0.62;
}

.new-expression-speak.is-playing {
    border-color: #2f66e9;
    background: #2f66e9;
    color: #fff;
}

.new-expression-speak:hover,
.new-expression-speak:focus-visible,
.new-expression-save:hover,
.new-expression-save:focus-visible,
.new-expression-save.is-saved {
    border-color: #2f66e9;
    background: #2f66e9;
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.new-expression-details {
    margin: 7px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    border-top: 1px solid #e3e9f2;
}

.new-expression-details > div {
    padding: 4px 0 3px;
    border-top: 0;
}

.new-expression-details .new-expression-example {
    padding-left: 18px;
    border-left: 1px solid #e7ecf4;
}

.new-expression-details .new-expression-similar {
    grid-column: 1 / -1;
    border-top: 1px solid #e7ecf4;
}

.new-expression-details dt {
    margin-bottom: 2px;
    color: #72819a;
    font-size: 9px;
    font-weight: 820;
}

body.lesson-new-series .new-expression-details dd {
    margin: 0;
    color: #3e4d66;
    font-size: 11px;
    font-weight: 620;
    line-height: 1.48;
}

.new-expression-apply {
    box-sizing: border-box;
    min-height: 0;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #a9c0f3;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff 0%, #f6f9ff 100%);
    box-shadow: 0 10px 25px rgba(47, 102, 233, 0.08);
}

@media (min-width: 1200px) {
    .new-expression-detail-column {
        gap: 8px;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .new-expression-detail-column > [data-expression-detail-card] { flex: 0 0 auto; }
    .new-expression-detail-column > [data-expression-transfer-card] {
        min-height: 0;
        flex: 1 0 auto;
    }
    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-apply {
        width: 100%;
        height: auto;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        overflow: visible;
        padding: 15px 16px 13px;
        border-color: #b9cdf4;
        background:
            radial-gradient(circle at 100% 0%, rgba(71, 118, 239, 0.09), transparent 34%),
            linear-gradient(155deg, #ffffff 0%, #f5f8ff 100%);
        box-shadow:
            0 12px 28px rgba(47, 102, 233, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.92);
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-transfer-head {
        min-height: 28px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e3eaf6;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-transfer-prompt {
        margin-top: 11px;
        padding: 10px 12px;
        border: 1px solid #e0e8f5;
        border-left: 3px solid #5e88ed;
        border-radius: 9px;
        background: rgba(255, 255, 255, 0.78);
        color: #25344c;
        font-size: 13px;
        line-height: 1.55;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-transfer-targets {
        margin-top: 10px;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-answer-row {
        min-height: 94px;
        margin-top: 10px;
        flex: 1 0 94px;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-answer-row textarea {
        min-height: 72px;
        padding: 10px 13px 12px;
        font-size: 12.5px;
        line-height: 1.55;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-apply.has-feedback .new-expression-answer-row {
        min-height: 72px;
        flex: 0 0 72px;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-apply.has-feedback .new-expression-answer-row textarea {
        min-height: 48px;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-apply.has-feedback [data-expression-feedback] {
        min-height: 0;
        flex: 0 0 auto;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-apply.has-feedback .new-expression-feedback {
        margin-top: 8px;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-grade-button {
        height: 40px;
        min-width: 106px;
        margin-top: 0;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-quota-row {
        margin-top: 7px;
    }
}

@media (min-width: 1200px) and (max-height: 760px) {
    /* 低高度桌面屏幕要为底部步骤按钮预留完整空间，同时优先压缩上方表达详情。 */
    .new-expression-layout {
        height: max(420px, calc(100dvh - 256px));
    }

    body.lesson-new-series .new-expression-detail {
        padding: 8px 10px;
    }

    body.lesson-new-series .new-expression-detail-head h3 {
        margin-top: 2px;
        font-size: 20px;
    }

    body.lesson-new-series .new-expression-detail-head p {
        margin-top: 2px;
        font-size: 11px;
        line-height: 1.3;
    }

    body.lesson-new-series .new-expression-detail-head .new-expression-pronunciation {
        margin-top: 2px;
        row-gap: 1px;
    }

    body.lesson-new-series .new-expression-detail-head .new-expression-pronunciation .new-expression-speak {
        height: 22px;
        font-size: 10.5px;
    }

    .new-expression-details {
        margin-top: 4px;
        column-gap: 14px;
    }

    .new-expression-details > div {
        padding-block: 2px;
    }

    body.lesson-new-series .new-expression-details dd {
        font-size: 10px;
        line-height: 1.3;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-answer-head {
        min-height: 28px;
        flex: 0 0 auto;
        padding: 5px 11px 4px;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-answer-row {
        min-height: 104px;
        flex: 0 0 auto;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-answer-row textarea {
        min-height: 38px;
        padding: 6px 11px 7px;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-answer-footer {
        min-height: 38px;
        flex: 0 0 auto;
        padding: 3px 7px 3px 10px;
    }

    .new-expression-detail-column > [data-expression-transfer-card] .new-expression-grade-button {
        height: 34px;
    }

    .new-expression-practice-card > .new-step-bottom-nav {
        margin-top: 8px;
    }
}

.new-expression-apply > header {
    display: flex;
    align-items: center;
    gap: 7px;
}

.new-expression-transfer-head {
    justify-content: space-between;
}

.new-expression-transfer-head > div:first-child,
.new-expression-transfer-nav {
    display: flex;
    align-items: center;
    gap: 7px;
}

.new-expression-transfer-head > div:first-child > span {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf1ff;
    color: #2f66e9;
    font-size: 11px;
}

.new-expression-transfer-nav > span {
    color: #8290a5;
    font-size: 10px;
    font-weight: 750;
}

.new-expression-transfer-nav button {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #d1dcf0;
    border-radius: 50%;
    background: #fff;
    color: #2f66e9;
    cursor: pointer;
    font: inherit;
    font-size: 18px;
    line-height: 1;
}

.new-expression-transfer-nav button:hover,
.new-expression-transfer-nav button:focus-visible {
    border-color: #2f66e9;
    outline: none;
    background: #eef4ff;
}

.new-expression-transfer-nav button:disabled {
    border-color: #e2e8f2;
    background: #f6f8fb;
    color: #aab5c7;
    cursor: default;
    opacity: 0.72;
}

.new-expression-apply > header > span {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf1ff;
    color: #2f66e9;
    font-size: 11px;
}

.new-expression-apply > header strong {
    color: #25344c;
    font-size: 14px;
}

.new-expression-apply > header small {
    margin-left: auto;
    color: #8996aa;
    font-size: 10px;
}

.new-expression-apply > p {
    margin: 9px 0 7px;
    color: #52627b;
    font-size: 12px;
    line-height: 1.45;
}

.new-expression-apply-prompt {
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-expression-apply-prompt p {
    min-width: 0;
    margin: 0;
    color: #52627b;
    font-size: 12px;
    line-height: 1.4;
}

.new-expression-transfer-prompt {
    margin: 10px 0 0;
    color: #25344c;
    font-size: 13px;
    font-weight: 680;
    line-height: 1.48;
}

.new-expression-transfer-targets {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.new-expression-transfer-targets > span {
    color: #718099;
    font-size: 10.5px;
    font-weight: 700;
}

.new-expression-transfer-targets > div {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.new-expression-transfer-targets button {
    max-width: 100%;
    padding: 4px 8px;
    border: 0;
    border-radius: 999px;
    background: #eaf1ff;
    color: #2f66e9;
    cursor: pointer;
    font: inherit;
    font-size: 10.5px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.new-expression-transfer-targets button:hover,
.new-expression-transfer-targets button:focus-visible {
    outline: 2px solid rgba(47, 102, 233, 0.2);
    background: #dfeaff;
}

.new-expression-quota-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.new-expression-quota {
    display: block;
    margin: 0;
    color: #8996aa;
    font-size: 9.5px;
    text-align: right;
}

.new-expression-target {
    display: inline-flex;
    max-width: 100%;
    padding: 4px 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eaf1ff;
    color: #2f66e9;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.new-expression-answer-row {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d4deed;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 8px 22px rgba(37, 52, 76, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.new-expression-answer-row:focus-within {
    border-color: #7fa1ee;
    box-shadow:
        0 0 0 3px rgba(47, 102, 233, 0.1),
        0 12px 28px rgba(47, 102, 233, 0.1);
}

.new-expression-answer-head {
    min-height: 34px;
    padding: 9px 12px 7px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf1f7;
}

.new-expression-answer-head strong {
    color: #2d3e58;
    font-size: 11px;
    font-weight: 820;
}

.new-expression-answer-head span {
    color: #909bae;
    font-size: 9.5px;
    font-weight: 600;
    text-align: right;
}

.new-expression-answer-row textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 66px;
    flex: 1 1 auto;
    margin-top: 0;
    resize: none;
    padding: 10px 12px 12px;
    border: 0;
    border-radius: 0;
    color: #25344c;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
}

.new-expression-answer-row textarea::placeholder {
    color: #8b96a8;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    opacity: 1;
}

.new-expression-answer-row textarea:focus {
    outline: none;
}

.new-expression-answer-footer {
    min-height: 48px;
    padding: 7px 8px 7px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #edf1f7;
    background: linear-gradient(180deg, rgba(248, 250, 254, 0.45), #f7f9fc);
}

.new-expression-answer-tip {
    min-width: 0;
    color: #8a96aa;
    font-size: 9.5px;
    font-weight: 650;
    line-height: 1.35;
}

.new-expression-answer-tip > span {
    color: #6b86e8;
}

.new-expression-answer-row .new-expression-grade-button {
    width: auto;
    height: 36px;
    min-width: 104px;
    margin: 0;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    border: 1px solid rgba(37, 87, 212, 0.78);
    border-radius: 10px;
    background: linear-gradient(135deg, #3c73f0 0%, #245cd8 100%);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    box-shadow:
        0 8px 18px rgba(47, 102, 233, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.new-expression-grade-icon {
    font-size: 10px;
}

.new-expression-grade-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.new-expression-answer-row .new-expression-grade-button:hover,
.new-expression-answer-row .new-expression-grade-button:focus-visible {
    filter: brightness(1.04);
    outline: none;
    transform: translateY(-1px);
    box-shadow:
        0 11px 22px rgba(47, 102, 233, 0.27),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.new-expression-answer-row button:disabled {
    opacity: 0.58;
    cursor: wait;
}

.new-expression-feedback,
.new-expression-feedback-error {
    margin: 10px 0 0;
    color: #516179;
    font-size: 11px;
    line-height: 1.45;
}

.new-expression-feedback {
    padding: 10px 11px;
    border-radius: 10px;
    background: #f4f8ff;
}

.new-expression-feedback > div {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.new-expression-feedback strong { color: #2f66e9; font-size: 21px; }
.new-expression-feedback > div span { color: #647592; font-size: 10px; font-weight: 800; }
.new-expression-feedback p { margin: 4px 0 0; }
.new-expression-feedback ul { margin: 6px 0 0; padding-left: 16px; }
.new-expression-feedback li + li { margin-top: 3px; }
.new-expression-polished span { margin-right: 6px; color: #2f66e9; font-weight: 800; }
.new-expression-feedback-error { color: #c84a4a; }

body.lesson-new-series [data-expression-feedback] .transfer-usage-item {
    grid-template-columns: minmax(0, 1fr) auto;
}

body.lesson-new-series [data-expression-feedback] .transfer-usage-item strong {
    min-width: 0;
}

body.lesson-new-series [data-expression-feedback] .transfer-usage-item span {
    align-self: center;
}

body.lesson-new-series [data-expression-feedback] .transfer-usage-item p {
    grid-column: 1 / -1;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-result {
    position: relative;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-result-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 8px;
    align-items: end;
    padding-right: 0;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-result-head > div:last-child {
    display: contents;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-score {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding: 5px 7px;
    border-radius: 8px;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-score strong {
    font-size: 20px;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-score span {
    font-size: 10px;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-result-head p {
    grid-column: 1 / -1;
    grid-row: 2;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border-top: 1px solid rgba(17, 24, 39, 0.07);
    border-bottom: 1px solid rgba(17, 24, 39, 0.07);
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1px 3px;
    align-items: baseline;
    padding: 7px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-item + .feedback-score-item {
    border-left: 1px solid rgba(17, 24, 39, 0.07);
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-item span,
body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-item small {
    font-size: 10px;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-item span {
    grid-column: 1 / -1;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-item strong {
    margin-top: 1px;
    font-size: 18px;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-item small {
    align-self: end;
    padding-bottom: 1px;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-result-label {
    position: absolute;
    top: 16px;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 3px 7px;
    border-radius: 999px;
    background: #edf3ff;
    color: #3569df;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-polished {
    gap: 7px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.lesson-new-series [data-expression-feedback] .transfer-sentence-polished p {
    color: #475467;
    font-size: 14px;
    line-height: 1.62;
}

.new-expression-practice-card > .new-step-bottom-nav {
    margin-top: 12px;
}

@media (max-width: 1199px) {
    .new-expression-layout {
        height: auto;
        grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "media media"
            "list detail"
            "transfer transfer";
        gap: 10px;
    }
    .new-expression-media-column {
        grid-area: media;
        width: min(100%, 540px);
        margin-inline: auto;
    }
    .new-expression-video-frame,
    .expression-media-controls,
    .new-expression-source-card {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    .new-expression-list {
        grid-area: list;
        height: clamp(240px, 30vw, 290px);
    }
    .new-expression-detail-column { display: contents; }
    .new-expression-detail-column > [data-expression-detail-card] {
        grid-area: detail;
        min-width: 0;
        align-self: stretch;
    }
    .new-expression-detail-column > [data-expression-transfer-card] {
        grid-area: transfer;
        min-width: 0;
    }
    body.lesson-new-series .new-expression-detail { min-height: 100%; }
    .new-expression-list-scroll {
        max-height: none;
        grid-template-columns: 1fr;
    }
    .new-expression-list-item { min-height: 58px; }
}

@media (max-width: 760px) {
    .new-expression-practice-card { padding: 10px; }
    .new-expression-layout { grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1.28fr); }
    .new-expression-media-column { width: min(100%, 460px); }
}

@media (max-width: 620px) {
    .new-expression-practice-card { padding: 7px; border-radius: 12px; }
    .new-expression-layout {
        --expression-mobile-pair-height: clamp(228px, 58vw, 250px);
        grid-template-columns: minmax(105px, 0.72fr) minmax(0, 1.28fr);
        grid-template-areas:
            "media media"
            "list detail"
            "transfer transfer";
        column-gap: 2px;
        row-gap: 9px;
        align-items: stretch;
    }
    .new-expression-media-column { width: 100%; }
    .new-expression-video-frame,
    .expression-media-controls { width: min(100%, 282px); margin-inline: auto; }
    .new-expression-video-frame .blind-overlay-play { width: 52px; height: 52px; }
    .new-expression-video-frame .blind-overlay-play svg { width: 25px; height: 25px; }
    .expression-media-controls { min-height: 54px; margin-top: 5px; padding: 3px; border-radius: 12px; }
    .expression-media-controls .blind-control { min-height: 46px; gap: 3px; }
    .expression-media-controls .blind-control-icon { width: 28px; height: 28px; }
    .expression-media-controls .blind-control.is-primary .blind-control-icon { width: 33px; height: 33px; }
    .expression-media-controls .blind-control-label { font-size: 8.5px; }
    .new-expression-source-card { margin-top: 6px; padding: 8px 9px; border-radius: 10px; }
    .new-expression-source-card [data-expression-source-en] { font-size: 13px; }
    .new-expression-source-card [data-expression-source-zh] { font-size: 12px; }
    .new-expression-source-phonetic { font-size: 11px; }
    .new-expression-list {
        grid-area: list;
        height: var(--expression-mobile-pair-height);
        min-height: 0;
        align-self: start;
        padding: 4px;
        border-right-color: #e7edf8;
        border-radius: 10px 5px 5px 10px;
        box-shadow: none;
    }
    .new-expression-list-head { padding: 3px 4px 6px; font-size: 12px; }
    .new-expression-list-head small { font-size: 10px; }
    .new-expression-list-scroll { max-height: none; gap: 4px; grid-template-columns: 1fr; }
    .new-expression-list-item { min-height: 52px; padding: 7px 6px; gap: 4px; border-radius: 8px; }
    .new-expression-list-copy { gap: 3px; }
    .new-expression-list-copy strong { font-size: 12px; line-height: 1.25; }
    .new-expression-list-copy small { font-size: 10px; line-height: 1.32; }
    .new-expression-list-sound { display: none; }
    .new-expression-detail-column { display: contents; }
    .new-expression-detail-column > [data-expression-detail-card] {
        grid-area: detail;
        min-height: var(--expression-mobile-pair-height);
        height: auto;
        align-self: start;
    }
    .new-expression-detail-column > [data-expression-transfer-card] { grid-area: transfer; }
    body.lesson-new-series .new-expression-detail {
        height: auto;
        min-height: var(--expression-mobile-pair-height);
        padding: 8px 9px;
        overflow: visible;
        border-left-color: #e7edf8;
        border-radius: 5px 10px 10px 5px;
        gap: 0;
        background: linear-gradient(145deg, #fff 0%, #f9fbff 100%);
        box-shadow: none;
    }
    .new-expression-detail-head { gap: 5px; }
    body.lesson-new-series .new-expression-detail-head > div > span { padding: 2px 5px; font-size: 9.5px; }
    body.lesson-new-series .new-expression-detail-head h3 { margin-top: 3px; font-size: 16px; line-height: 1.2; }
    body.lesson-new-series .new-expression-detail-head p { margin-top: 3px; font-size: 11.5px; line-height: 1.35; }
    .new-expression-detail-actions { gap: 3px; }
    .new-expression-speak, .new-expression-save { width: 23px; height: 23px; font-size: 12px; }
    .new-expression-speak svg, .new-expression-save svg { width: 12px; height: 12px; }
    .new-expression-details { margin-top: 6px; grid-template-columns: 1fr; gap: 0; }
    .new-expression-details > div { padding: 4px 0; }
    .new-expression-details .new-expression-example {
        padding-left: 0;
        border-top: 1px solid #e7ecf4;
        border-left: 0;
    }
    .new-expression-details .new-expression-similar { grid-column: auto; }
    body.lesson-new-series .new-expression-details dt { margin-bottom: 2px; font-size: 9.5px; }
    body.lesson-new-series .new-expression-details dd { font-size: 11px; line-height: 1.36; }
    .new-expression-apply { padding: 10px 11px; border-radius: 12px; }
    .new-expression-apply > header strong { font-size: 14px; }
    .new-expression-apply > header small { font-size: 10px; }
    .new-expression-transfer-head { align-items: flex-start; }
    .new-expression-transfer-nav { gap: 4px; }
    .new-expression-transfer-nav > span { font-size: 10px; }
    .new-expression-transfer-nav button { width: 23px; height: 23px; font-size: 16px; }
    .new-expression-apply > .new-expression-transfer-prompt { margin-top: 8px; font-size: 13px; line-height: 1.48; }
    .new-expression-transfer-targets { margin-top: 6px; align-items: flex-start; flex-direction: column; gap: 4px; }
    .new-expression-transfer-targets > span { font-size: 10.5px; }
    .new-expression-transfer-targets button { padding: 3px 7px; font-size: 10.5px; }
    .new-expression-quota-row { margin-top: 4px; }
    .new-expression-quota { font-size: 9.5px; }
    .new-expression-apply-prompt { margin-top: 6px; align-items: flex-start; flex-direction: column; gap: 5px; }
    .new-expression-apply-prompt p { font-size: 10.5px; }
    .new-expression-target { padding: 3px 6px; font-size: 9px; }
    .new-expression-answer-row {
        margin-top: 7px;
        border-color: #dce4ef;
        border-radius: 10px;
        box-shadow: none;
    }
    .new-expression-answer-row:focus-within {
        border-color: #86a5eb;
        box-shadow: 0 0 0 2px rgba(47, 102, 233, 0.08);
    }
    .new-expression-answer-head {
        min-height: 0;
        padding: 8px 10px 6px;
        align-items: center;
        flex-direction: row;
        gap: 8px;
        border-bottom: 0;
    }
    .new-expression-answer-head strong {
        flex: 0 0 auto;
        font-size: 11px;
    }
    .new-expression-answer-head span {
        min-width: 0;
        overflow: hidden;
        font-size: 9px;
        line-height: 1.25;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .new-expression-answer-row textarea {
        width: 100%;
        height: 72px;
        min-height: 72px;
        max-height: 140px;
        padding: 7px 10px 9px;
        overflow-y: auto;
        overscroll-behavior: contain;
        resize: vertical;
        border-radius: 0;
        font-size: 13px !important;
        line-height: 1.5;
        -webkit-overflow-scrolling: touch;
    }
    .new-expression-answer-row textarea::placeholder {
        color: #8793a6;
        font-size: 13px;
        line-height: inherit;
    }
    .new-expression-answer-row .new-expression-grade-button {
        width: auto;
        height: 36px;
        min-width: 94px;
        margin-top: 0;
        padding: 0 11px;
        border-radius: 9px;
        font-size: 12px;
        box-shadow: 0 5px 12px rgba(47, 102, 233, 0.18);
    }
    .new-expression-answer-footer {
        min-height: 0;
        padding: 0 7px 7px;
        justify-content: flex-end;
        border-top: 0;
        background: transparent;
    }
    .new-expression-answer-tip { display: none; }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result {
        gap: 9px;
        margin-top: 0;
        padding-top: 10px;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result-head {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 6px 8px;
        padding-right: 0;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result-head > div:last-child {
        display: contents;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-score {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        padding: 5px 7px;
        border-radius: 8px;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-score strong {
        font-size: 20px;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-score span {
        font-size: 10px;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result-label {
        top: 10px;
        font-size: 10.5px;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result-head p {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result-head p {
        font-size: 12.5px;
        line-height: 1.5;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result-section {
        gap: 5px;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result-section h4,
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-polished h4 {
        font-size: 11.5px;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .transfer-usage-list {
        gap: 5px;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-item {
        padding: 6px 8px;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-item:nth-child(odd) {
        border-left: 0;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-item:nth-child(n + 3) {
        border-top: 1px solid rgba(17, 24, 39, 0.07);
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-item span,
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-item small {
        font-size: 8.5px;
        line-height: 1.3;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .feedback-score-item strong {
        margin-top: 1px;
        font-size: 15px;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .transfer-usage-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 3px 6px;
        padding: 7px 8px;
        border: 0;
        border-radius: 8px;
        background: rgba(245, 248, 252, 0.86);
    }
    body.lesson-new-series [data-expression-feedback] .transfer-usage-item strong {
        min-width: 0;
        font-size: 12.5px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-usage-item span {
        padding: 2px 6px;
        font-size: 9.5px;
        line-height: 1.35;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result .transfer-usage-item p {
        grid-column: 1 / -1;
        font-size: 11.5px;
        line-height: 1.45;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result-section li,
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-result-section .feedback-muted,
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-polished p {
        font-size: 11.5px;
        line-height: 1.5;
    }
    body.lesson-new-series [data-expression-feedback] .transfer-sentence-polished {
        gap: 5px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    .new-expression-feedback,
    .new-expression-feedback-error { margin-top: 8px; }
    .new-expression-feedback-error { font-size: 11.5px; }
    .new-expression-feedback {
        padding: 13px 12px 12px;
        border: 1px solid #dce6fa;
        border-radius: 12px;
        background: linear-gradient(145deg, #f7faff 0%, #eef4ff 100%);
        color: #3f506b;
        font-size: 14px;
        line-height: 1.6;
        box-shadow: 0 7px 18px rgba(47, 102, 233, 0.08);
    }
    .new-expression-feedback > div { gap: 7px; }
    .new-expression-feedback strong {
        font-size: 29px;
        line-height: 1;
        letter-spacing: -0.03em;
    }
    .new-expression-feedback > div span { font-size: 12px; }
    .new-expression-feedback p { margin-top: 8px; }
    .new-expression-feedback ul {
        margin-top: 9px;
        padding-left: 19px;
        font-size: 13.5px;
        line-height: 1.6;
    }
    .new-expression-feedback li + li { margin-top: 5px; }
    .new-expression-polished {
        margin-top: 10px !important;
        padding-top: 10px;
        border-top: 1px solid #d9e4f7;
    }
    .new-expression-polished span {
        display: block;
        margin: 0 0 3px;
        font-size: 13px;
        line-height: 1.4;
    }
    .new-expression-practice-card > .new-step-bottom-nav { margin-top: 6px; }
}

@media (max-width: 360px) {
    .new-expression-layout {
        grid-template-columns: minmax(94px, 0.62fr) minmax(0, 1.38fr);
    }
    .new-expression-detail-actions { display: none; }
    body.lesson-new-series .new-expression-detail-head h3 { font-size: 15px; }
    body.lesson-new-series .new-expression-detail-head p { font-size: 11px; }
    .new-expression-list-copy strong { font-size: 11.5px; }
    .new-expression-list-copy small { font-size: 9.5px; }
}

/* 第五步：延续前四步的蓝白卡片体系，用完整音频和简洁自检收尾。 */
.new-review-card {
    padding: 22px;
    border: 1px solid #dfe5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(28, 43, 72, 0.07);
}

.new-review-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 430px));
    gap: 16px;
    align-items: stretch;
    justify-content: center;
}

.new-review-player-card,
.new-review-check-card {
    min-width: 0;
    border: 1px solid #e0e7f0;
    border-radius: 14px;
    background: #f9fbfe;
}

.new-review-player-card {
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(87, 126, 239, 0.12), transparent 35%),
        linear-gradient(145deg, #f9fbff, #f3f7fd);
}

.new-review-player-top {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.new-review-audio-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #2f66e9;
    color: #fff;
    box-shadow: 0 9px 20px rgba(47, 102, 233, 0.22);
}

.new-review-audio-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.new-review-player-top small,
.new-review-player-top strong { display: block; }
.new-review-player-top small { margin-bottom: 3px; color: #8794a8; font-size: 10px; font-weight: 750; }
.new-review-player-top strong { color: #26344b; font-size: 15px; }
.new-review-duration { color: #42516a; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }

.new-review-wave {
    position: relative;
    height: 72px;
    margin: 24px 0 15px;
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
}

.new-review-wave::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--review-progress, 0%);
    background: rgba(47, 102, 233, 0.72);
    mix-blend-mode: color;
    pointer-events: none;
}

.new-review-wave i {
    width: 4px;
    min-width: 2px;
    height: var(--wave-height);
    flex: 1;
    border-radius: 99px;
    background: #bcc8d9;
}

.new-review-timeline {
    --review-progress: 0%;
    width: 100%;
    height: 5px;
    margin: 0;
    appearance: none;
    border-radius: 999px;
    outline: none;
    background: linear-gradient(to right, #2f66e9 0 var(--review-progress), #d7e0ed var(--review-progress) 100%);
    cursor: pointer;
}

.new-review-timeline::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    appearance: none;
    border: 3px solid #2f66e9;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 9px rgba(31, 52, 88, 0.2);
}

.new-review-timeline::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 3px solid #2f66e9;
    border-radius: 50%;
    background: #fff;
}

.new-review-time-row {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    color: #8995a7;
    font-size: 10.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.new-review-controls {
    margin-top: 20px;
}

.new-review-audio-missing { margin: 18px 0 0; color: #b14f4f; font-size: 12px; text-align: center; }

.focused-media-error.is-audio {
    margin-top: 15px;
    padding: 13px 14px;
    border: 1px solid #f1d7d7;
    border-radius: 10px;
    background: #fff7f7;
    color: #8f3434;
}

.focused-media-error.is-audio span {
    color: #9b6060;
}

.focused-media-error.is-audio button {
    border-color: #dfb7b7;
    background: #fff;
    color: #a33f3f;
}

.focused-media-error.is-audio button:hover {
    background: #fff0f0;
}

.new-review-check-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.new-review-check-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.new-review-check-head span { color: #26344b; font-size: 15px; font-weight: 850; }
.new-review-check-head small { padding: 4px 8px; border-radius: 99px; background: #edf3ff; color: #2f66e9; font-size: 10px; font-weight: 850; }
.new-review-check-card > p { margin: 8px 0 16px; color: #7b8799; font-size: 11px; line-height: 1.55; }
.new-review-checklist { display: grid; gap: 8px; }

.new-review-check-item {
    min-height: 54px;
    padding: 10px 11px;
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fbfcfe;
    color: #536078;
    cursor: pointer;
    font-size: 11.5px;
    line-height: 1.45;
    transition: 160ms ease;
}

.new-review-check-item:hover { border-color: #aebfe4; background: #f8faff; }
.new-review-check-item input { position: absolute; opacity: 0; pointer-events: none; }
.new-review-checkbox { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #cbd5e2; border-radius: 7px; background: #fff; color: transparent; font-size: 12px; font-weight: 900; }
.new-review-check-item:has(input:checked) { border-color: #b7c9f5; background: #f5f8ff; color: #344765; }
.new-review-check-item input:checked + .new-review-checkbox { border-color: #2f66e9; background: #2f66e9; color: #fff; }
.new-review-check-item:has(input:focus-visible) { outline: 3px solid rgba(47, 102, 233, 0.16); }

.new-review-complete,
.new-review-destination {
    min-height: 43px;
    margin-top: auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    background: #2f66e9;
    color: #fff;
    box-shadow: 0 8px 18px rgba(47, 102, 233, 0.2);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.new-review-complete { margin-top: 19px; }
.new-review-complete:disabled { background: #d9e0eb; color: #8b96a8; box-shadow: none; cursor: not-allowed; }
.new-review-complete-hint { margin: 7px 2px 0 !important; font-size: 9.5px !important; text-align: center; }
.new-review-finished { margin-top: auto; padding: 15px 0 3px; display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 10px; align-items: center; }
.new-review-complete[hidden], .new-review-finished[hidden], .new-review-destination[hidden] { display: none; }
.new-review-finished > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #e9f7ef; color: #17854d; font-size: 16px; font-weight: 900; }
.new-review-finished strong { color: #24334a; font-size: 13px; }
.new-review-finished p { margin: 3px 0 0; color: #748198; font-size: 10px; line-height: 1.45; }
.new-review-destination { margin-top: 12px; }
.new-review-card > .new-step-bottom-nav { margin-top: 14px; }

@media (max-width: 900px) {
    .new-review-layout { grid-template-columns: minmax(0, 430px); }
    .new-review-check-card { min-height: 0; }
    .new-review-complete, .new-review-finished { margin-top: 18px; }
}

@media (max-width: 620px) {
    .new-review-card { padding: 8px; border-radius: 12px; }
    .new-review-layout { gap: 8px; }
    .new-review-player-card { padding: 17px 13px; border-radius: 11px; }
    .new-review-player-top { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 9px; }
    .new-review-audio-icon { width: 38px; height: 38px; border-radius: 10px; }
    .new-review-audio-icon svg { width: 20px; height: 20px; }
    .new-review-player-top small { font-size: 11px; }
    .new-review-player-top strong { font-size: 14px; }
    .new-review-duration { font-size: 13px; }
    .new-review-wave { height: 57px; margin: 20px 0 13px; gap: 2px; }
    .new-review-wave i { width: 2px; }
    .new-review-time-row { font-size: 11.5px; }
    .new-review-controls { min-height: 54px; margin-top: 14px; padding: 3px; border-radius: 12px; }
    .new-review-controls .blind-control { min-height: 46px; gap: 3px; }
    .new-review-controls .blind-control-icon { width: 28px; height: 28px; }
    .new-review-controls .blind-control.is-primary .blind-control-icon { width: 33px; height: 33px; }
    .new-review-controls .blind-control-label { font-size: 10px; }
    .new-review-check-card { padding: 17px 15px; border-radius: 11px; }
    .new-review-check-head span { font-size: 16px; }
    .new-review-check-head small { font-size: 11px; }
    .new-review-check-card > p { margin-bottom: 13px; font-size: 13px; line-height: 1.6; }
    .new-review-checklist { gap: 8px; }
    .new-review-check-item { min-height: 60px; padding: 10px; font-size: 13px; line-height: 1.55; }
    .new-review-checkbox { width: 25px; height: 25px; font-size: 13px; }
    .new-review-complete { min-height: 48px; margin-top: 15px; font-size: 14px; }
    .new-review-complete-hint { font-size: 11.5px !important; line-height: 1.55; }
    .new-review-finished strong { font-size: 14px; }
    .new-review-finished p { font-size: 12px; line-height: 1.55; }
    .new-review-destination { min-height: 48px; font-size: 14px; }
    .new-review-card > .new-step-bottom-nav { margin-top: 6px; }
}

/* 手机端统一底部操作坞：上一步 | 当前媒体操作 | 下一步。 */
.mobile-learning-dock {
    display: none;
}

@media (max-width: 620px) {
    body.lesson-new-series .auth-toast {
        --auth-toast-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    }

    .new-series-shell.has-mobile-learning-dock {
        padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    }

    .has-mobile-learning-dock .new-step-bottom-nav {
        display: none !important;
    }

    .mobile-learning-dock {
        position: fixed;
        right: 6px;
        bottom: calc(6px + env(safe-area-inset-bottom, 0px));
        left: 6px;
        z-index: 1200;
        height: 76px;
        padding: 4px;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        align-items: stretch;
        gap: 2px;
        border: 1px solid rgba(112, 132, 164, 0.22);
        border-radius: 17px;
        background: rgba(248, 250, 253, 0.96);
        box-shadow: 0 12px 34px rgba(23, 42, 76, 0.2), 0 1px 0 rgba(255, 255, 255, 0.92) inset;
        backdrop-filter: saturate(170%) blur(18px);
        -webkit-backdrop-filter: saturate(170%) blur(18px);
        box-sizing: border-box;
    }

    .mobile-learning-dock[hidden] {
        display: none !important;
    }

    .mobile-learning-dock-control-space {
        min-width: 0;
    }

    .mobile-learning-dock-edge {
        position: relative;
        z-index: 2;
        min-width: 0;
        min-height: 66px;
        padding: 4px 1px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: #526078;
        cursor: pointer;
        font: inherit;
        font-size: 9px;
        font-weight: 750;
        line-height: 1;
        white-space: nowrap;
    }

    .mobile-learning-dock-edge:not(:disabled):active {
        background: #edf3ff;
        color: #2f66e9;
    }

    .mobile-learning-dock-edge:disabled {
        opacity: 0.32;
        cursor: not-allowed;
    }

    .mobile-learning-dock-arrow {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border: 1px solid #cbd4e1;
        border-radius: 50%;
        background: #fff;
        color: #263247;
        font-size: 17px;
        font-weight: 600;
        box-shadow: 0 2px 7px rgba(31, 52, 88, 0.05);
    }

    .has-mobile-learning-dock .new-lesson-panel:not([hidden]) .blind-control-grid {
        position: fixed !important;
        right: 56px !important;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        left: 56px !important;
        z-index: 1201 !important;
        width: auto !important;
        max-width: none !important;
        height: 68px !important;
        min-height: 68px !important;
        margin: 0 !important;
        padding: 3px 1px !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-sizing: border-box;
    }

    .has-mobile-learning-dock .new-lesson-panel:not([hidden]) .blind-control {
        min-height: 60px !important;
        padding: 1px !important;
        gap: 3px !important;
    }

    .has-mobile-learning-dock .new-lesson-panel:not([hidden]) .blind-control-icon {
        width: 30px !important;
        height: 30px !important;
    }

    .has-mobile-learning-dock .new-lesson-panel:not([hidden]) .blind-control.is-primary .blind-control-icon {
        width: 36px !important;
        height: 36px !important;
    }

    .has-mobile-learning-dock .new-lesson-panel:not([hidden]) .blind-control-label {
        font-size: 9px !important;
    }

    .has-mobile-learning-dock .new-lesson-panel:not([hidden]) .blind-rate-value {
        font-size: 10px;
    }
}

@media (max-width: 350px) {
    .mobile-learning-dock {
        right: 4px;
        left: 4px;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }

    .has-mobile-learning-dock .new-lesson-panel:not([hidden]) .blind-control-grid {
        right: 50px !important;
        left: 50px !important;
    }

    .mobile-learning-dock-edge,
    .has-mobile-learning-dock .new-lesson-panel:not([hidden]) .blind-control-label {
        font-size: 8px !important;
    }
}

@media (max-width: 620px) {
    .new-expression-pronunciation {
        gap: 3px;
    }

    .new-expression-pronunciation .new-expression-speak {
        min-width: 43px;
        height: 23px;
        padding: 0 4px;
        gap: 2px;
        font-size: 8.5px;
    }

    .new-expression-pronunciation .new-expression-speak svg {
        width: 10px;
        height: 10px;
    }
}
