/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 30 2026 | 12:51:22 */
/* ==================================================
   ANHTHU CHINESE
   HSK LESSON DESIGN CSS V2.0
   Compatible with HSK Lesson Engine V1.0
   Dark / Light / Responsive
================================================== */


/* ==================================================
   01. DESIGN TOKENS
================================================== */

.atle-app {
    --atle-bg: var(--at-bg, #030817);
    --atle-card: var(--at-card, #111827);
    --atle-surface: var(--at-surface, #202b3c);
    --atle-hover: var(--at-surface-hover, #29374a);
    --atle-border: var(--at-border, #263244);

    --atle-text: var(--at-text, #f8fafc);
    --atle-heading: var(--at-heading, #ffffff);
    --atle-muted: var(--at-muted, #94a3b8);

    --atle-primary: var(--at-primary, #5db78a);
    --atle-primary-hover: var(--at-primary-hover, #76c99e);
    --atle-green-text: var(--at-primary, #5db78a);
    --atle-green-bg: var(--at-primary-soft, rgba(93,183,138,.12));

    --atle-blue: var(--at-info, #38bdf8);
    --atle-blue-bg: var(--at-info-soft, rgba(56,189,248,.12));

    --atle-yellow: var(--at-warning, #f59e0b);
    --atle-yellow-bg: var(--at-warning-soft, rgba(245,158,11,.12));

    --atle-red: var(--at-danger, #f87171);
    --atle-red-bg: var(--at-danger-soft, rgba(239,68,68,.12));

    --atle-radius: 20px;
    --atle-radius-sm: 12px;
    --atle-shadow: var(--at-shadow-md, 0 8px 24px rgba(0,0,0,.22));

    --atle-font: var(--at-font, Arial, sans-serif);
    --atle-chinese-font: "Noto Sans SC",
        "Microsoft YaHei", "PingFang SC", sans-serif;

    --atle-sticky-top: 120px;

    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
    color: var(--atle-text);
    font-family: var(--atle-font);
    font-size: 15px;
    line-height: 1.65;
}


/* LIGHT MODE */

html[data-at-theme="light"] .atle-app {
    --atle-bg: var(--at-bg, #f5f7fb);
    --atle-card: var(--at-card, #ffffff);
    --atle-surface: var(--at-surface, #edf2f7);
    --atle-hover: var(--at-surface-hover, #e2e8f0);
    --atle-border: var(--at-border, #dfe6ef);

    --atle-text: var(--at-text, #172033);
    --atle-heading: var(--at-heading, #0f172a);
    --atle-muted: var(--at-muted, #64748b);

    --atle-primary: var(--at-primary, #16875d);
    --atle-primary-hover: var(--at-primary-hover, #047857);
    --atle-green-text: var(--at-primary, #16875d);
    --atle-green-bg: var(--at-primary-soft, rgba(22,135,93,.09));

    --atle-blue: var(--at-info, #0284c7);
    --atle-blue-bg: var(--at-info-soft, rgba(2,132,199,.08));

    --atle-yellow: var(--at-warning, #b45309);
    --atle-yellow-bg: var(--at-warning-soft, rgba(245,158,11,.12));

    --atle-red: var(--at-danger, #dc2626);
    --atle-red-bg: var(--at-danger-soft, rgba(220,38,38,.08));

    --atle-shadow: var(--at-shadow-md, 0 8px 24px rgba(15,23,42,.06));
}


/* ==================================================
   02. SCOPED RESET
================================================== */

.atle-app,
.atle-app * {
    box-sizing: border-box;
}

.atle-app [hidden] {
    display: none !important;
}

.atle-app h1,
.atle-app h2,
.atle-app h3,
.atle-app h4 {
    color: var(--atle-heading);
    font-family: inherit;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.025em;
    margin: 0 0 12px;
}

.atle-app p {
    color: var(--atle-muted);
    margin: 0 0 14px;
}

.atle-app a {
    color: var(--atle-green-text);
    text-decoration: none;
}

.atle-app button {
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
    margin: 0;
    min-height: 0;
    cursor: pointer;
    box-shadow: none;
    outline-offset: 3px;
    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.atle-app button:disabled {
    cursor: not-allowed;
    opacity: .45;
    transform: none;
}

.atle-app button:focus-visible,
.atle-app a:focus-visible {
    outline: 3px solid var(--atle-primary);
    outline-offset: 3px;
}

.atle-app svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
}

.atle-app [lang="zh-CN"] {
    font-family: var(--atle-chinese-font);
}


/* ==================================================
   03. BUTTON SYSTEM
================================================== */

.atle-app .atle-primary-btn,
.atle-app .atle-secondary-btn,
.atle-app .atle-audio-btn,
.atle-app .atle-mic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 17px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    text-decoration: none;
}

.atle-app .atle-primary-btn {
    background: var(--atle-primary);
    border: 1px solid var(--atle-primary);
    border-bottom: 4px solid #065f46;
    color: #ffffff;
}

.atle-app .atle-primary-btn:hover:not(:disabled) {
    background: var(--atle-primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.atle-app .atle-primary-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.atle-app .atle-secondary-btn {
    background: var(--atle-surface);
    color: var(--atle-text);
    border: 1px solid var(--atle-border);
}

.atle-app .atle-secondary-btn:hover:not(:disabled) {
    background: var(--atle-hover);
    border-color: var(--atle-primary);
    color: var(--atle-green-text);
}

.atle-app .atle-audio-btn {
    color: var(--atle-blue);
    background: var(--atle-blue-bg);
    border: 1px solid transparent;
}

.atle-app .atle-audio-btn:hover,
.atle-app .atle-audio-btn.is-playing {
    background: #2563eb;
    color: #ffffff;
}

.atle-app .atle-mic-btn {
    color: var(--atle-green-text);
    background: var(--atle-green-bg);
    border: 1px solid var(--atle-primary);
}

.atle-app .atle-mic-btn.is-recording {
    color: #ffffff;
    background: #ef4444;
    border-color: #ef4444;
    animation: atle-pulse 1.5s infinite;
}

@keyframes atle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .65; }
}


/* ==================================================
   04. LESSON TOPBAR
================================================== */

.atle-app .atle-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.atle-app .atle-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--atle-muted);
    font-weight: 650;
    font-size: 14px;
}

.atle-app .atle-back-link:hover {
    color: var(--atle-green-text);
}

.atle-app .atle-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--atle-muted);
}

.atle-app .atle-breadcrumb span {
    opacity: .5;
}

.atle-app .atle-xp-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 30px;
    background: var(--atle-yellow-bg);
    color: var(--atle-yellow);
    white-space: nowrap;
}

.atle-app .atle-xp-badge svg {
    fill: currentColor;
    width: 17px;
    height: 17px;
}


/* ==================================================
   05. LESSON PROGRESS
================================================== */

.atle-app .atle-lesson-progress {
    padding: 20px 24px;
    margin-bottom: 24px;
    border: 1px solid var(--atle-border);
    background: var(--atle-card);
    border-radius: var(--atle-radius);
}

.atle-app .atle-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.atle-app .atle-progress-header > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.atle-app .atle-progress-header strong {
    color: var(--atle-heading);
    font-size: 16px;
}

.atle-app [data-atle-progress-text] {
    font-size: 12px;
    color: var(--atle-muted);
}

.atle-app [data-atle-progress-percent] {
    font-size: 21px;
    color: var(--atle-green-text);
    font-weight: 800;
}

.atle-app .atle-progress-track {
    width: 100%;
    height: 10px;
    background: var(--atle-surface);
    border-radius: 20px;
    overflow: hidden;
}

.atle-app .atle-progress-fill {
    height: 100%;
    max-width: 100%;
    border-radius: 20px;
    background: linear-gradient(
        90deg,
        #047857,
        #5db78a
    );
    transition: width .45s ease;
}


/* ==================================================
   06. MAIN LAYOUT
================================================== */

.atle-app .atle-layout {
    display: grid;
    grid-template-columns: 265px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.atle-app .atle-main {
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}


/* ==================================================
   07. LESSON SIDEBAR
================================================== */

.atle-app .atle-sidebar {
    position: sticky;
    top: var(--atle-sticky-top);
    min-width: 0;
    max-height: calc(100vh - var(--atle-sticky-top) - 20px);
    overflow-y: auto;
    background: var(--atle-card);
    border: 1px solid var(--atle-border);
    border-radius: var(--atle-radius);
    padding: 14px;
    scrollbar-width: thin;
}

.atle-app .atle-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 16px;
    color: var(--atle-heading);
    font-size: 15px;
    font-weight: 800;
}

.atle-app .atle-section-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.atle-app .atle-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    background: transparent;
    color: var(--atle-muted);
    border: 1px solid transparent;
    border-radius: 11px;
    text-align: left;
    font-size: 13px;
    font-weight: 650;
}

.atle-app .atle-nav-item:hover {
    background: var(--atle-surface);
    color: var(--atle-heading);
}

.atle-app .atle-nav-item.is-active {
    color: var(--atle-green-text);
    background: var(--atle-green-bg);
    border-color: rgba(93,183,138,.25);
}

.atle-app .atle-nav-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.atle-app .atle-nav-icon svg {
    width: 19px;
    height: 19px;
}

.atle-app .atle-nav-label {
    flex: 1;
    min-width: 0;
}

.atle-app .atle-nav-status {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1px solid var(--atle-border);
    font-size: 10px;
}

.atle-app .atle-nav-item.is-completed
.atle-nav-status {
    color: #ffffff;
    background: var(--atle-primary);
    border-color: var(--atle-primary);
}

.atle-app .atle-nav-item.is-completed
.atle-nav-status:empty::before {
    content: "✓";
}

.atle-app .atle-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 17px 10px 5px;
    margin-top: 14px;
    border-top: 1px solid var(--atle-border);
    font-size: 12px;
    color: var(--atle-muted);
}

.atle-app .atle-mobile-nav-toggle,
.atle-app .atle-sidebar-close,
.atle-app .atle-sidebar-overlay {
    display: none;
}


/* ==================================================
   08. LESSON HERO
================================================== */

.atle-app .atle-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    isolation: isolate;
    padding: 32px;
    margin-bottom: 24px;
    border-radius: 24px;
    border: 1px solid rgba(74,222,128,.20);
    background: linear-gradient(
        125deg,
        #14532d 0%,
        #166534 48%,
        #047857 100%
    );
    color: #ffffff;
}

.atle-app .atle-hero-decoration {
    position: absolute;
    z-index: -1;
    right: -15px;
    bottom: -65px;
    font-size: clamp(110px, 15vw, 220px);
    font-weight: 900;
    font-family: var(--atle-chinese-font);
    color: rgba(255,255,255,.055);
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.atle-app .atle-hero-content {
    position: relative;
    flex: 1;
    min-width: 0;
}

.atle-app .atle-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-bottom: 15px;
    background: rgba(255,255,255,.12);
    color: #dcfce7;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.atle-app .atle-hero h1 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.25;
    margin: 0 0 6px;
    font-weight: 800;
}

.atle-app .atle-hero-pinyin {
    color: #86efac;
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 8px;
}

.atle-app .atle-hero h2 {
    color: #ffffff;
    font-size: 25px;
    margin-bottom: 10px;
}

.atle-app .atle-hero p {
    color: #d1fae5;
    max-width: 650px;
    font-size: 14px;
    line-height: 1.8;
}

.atle-app .atle-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 20px;
}

.atle-app .atle-hero-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #dcfce7;
    font-size: 12px;
    font-weight: 600;
}

.atle-app .atle-hero-meta svg {
    width: 16px;
    height: 16px;
}

.atle-app .atle-hero-audio {
    position: relative;
    flex-shrink: 0;
}

.atle-app .atle-hero-audio .atle-audio-btn {
    color: #ffffff;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.18);
    min-height: 48px;
}

.atle-app .atle-hero-audio .atle-audio-btn:hover {
    background: rgba(255,255,255,.25);
}


/* ==================================================
   09. SECTION PANELS
================================================== */

.atle-app .atle-panel {
    background: var(--atle-card);
    border: 1px solid var(--atle-border);
    border-radius: var(--atle-radius);
    padding: 28px;
    min-width: 0;
    animation: atle-fade-in .25s ease;
}

@keyframes atle-fade-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.atle-app .atle-section-heading {
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--atle-border);
}

.atle-app .atle-section-heading h2 {
    font-size: 25px;
    margin-bottom: 7px;
}

.atle-app .atle-section-heading p {
    font-size: 14px;
    margin: 0;
}

.atle-app .atle-chinese-text {
    min-width: 0;
}

.atle-app .atle-hanzi {
    color: var(--atle-heading);
    font-size: 29px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.atle-app .atle-pinyin {
    color: var(--atle-green-text);
    font-size: 16px;
    font-weight: 600;
    margin: 4px 0;
}

.atle-app .atle-meaning {
    color: var(--atle-muted);
    font-size: 14px;
}


/* ==================================================
   10. LEARNING OBJECTIVES
================================================== */

.atle-app .atle-objectives {
    display: grid;
    gap: 12px;
}

.atle-app .atle-objective {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--atle-surface);
    color: var(--atle-text);
}

.atle-app .atle-objective svg {
    color: var(--atle-green-text);
    margin-top: 2px;
}

.atle-app .atle-overview-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
    margin-top: 24px;
}

.atle-app .atle-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 10px;
    border: 1px solid var(--atle-border);
    background: var(--atle-surface);
    border-radius: 16px;
    text-align: center;
}

.atle-app .atle-stat-card svg {
    width: 25px;
    height: 25px;
    color: var(--atle-green-text);
}

.atle-app .atle-stat-card strong {
    font-size: 29px;
    color: var(--atle-heading);
    line-height: 1.3;
}

.atle-app .atle-stat-card span {
    color: var(--atle-muted);
    font-size: 12px;
}


/* ==================================================
   11. WARM-UP
================================================== */

.atle-app .atle-warmup-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}

.atle-app .atle-warmup-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 25px 15px;
    border-radius: 18px;
    background: var(--atle-surface);
    border: 1px solid var(--atle-border);
    text-align: center;
}

.atle-app .atle-warmup-card:hover {
    border-color: var(--atle-primary);
}

.atle-app .atle-warmup-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 20px;
    background: var(--atle-green-bg);
    font-size: 34px;
}


/* ==================================================
   12. VOCABULARY
================================================== */

.atle-app .atle-vocabulary-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.atle-app .atle-vocabulary-toolbar > span {
    color: var(--atle-muted);
    font-size: 13px;
    font-weight: 600;
}

.atle-app .atle-vocabulary-list {
    display: grid;
    gap: 16px;
}

.atle-app .atle-word-card {
    padding: 20px;
    background: var(--atle-surface);
    border: 1px solid var(--atle-border);
    border-radius: 18px;
    transition: border-color .2s ease;
}

.atle-app .atle-word-card:hover {
    border-color: rgba(93,183,138,.5);
}

.atle-app .atle-word-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.atle-app .atle-word-hanzi {
    flex-shrink: 0;
    min-width: 100px;
    max-width: 45%;
    padding: 10px;
    color: var(--atle-green-text);
    background: var(--atle-green-bg);
    border-radius: 14px;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 750;
    text-align: center;
    overflow-wrap: anywhere;
}

.atle-app .atle-word-info {
    flex: 1;
    min-width: 0;
}

.atle-app .atle-word-pinyin {
    color: var(--atle-heading);
    font-size: 19px;
    font-weight: 750;
}

.atle-app .atle-word-meaning {
    font-size: 15px;
    color: var(--atle-text);
    overflow-wrap: anywhere;
}

.atle-app .atle-word-type {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    color: var(--atle-muted);
    font-size: 11px;
}

.atle-app .atle-extra-badge {
    background: var(--atle-yellow-bg);
    color: var(--atle-yellow);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.atle-app .atle-word-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.atle-app .atle-word-actions .atle-audio-btn,
.atle-app .atle-bookmark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 12px;
}

.atle-app .atle-word-actions
.atle-audio-btn span {
    display: none;
}

.atle-app .atle-bookmark-btn {
    color: var(--atle-muted);
    background: var(--atle-card);
    border: 1px solid var(--atle-border);
}

.atle-app .atle-bookmark-btn:hover,
.atle-app .atle-bookmark-btn.is-saved,
.atle-app .atle-bookmark-btn[aria-pressed="true"] {
    color: var(--atle-yellow);
    background: var(--atle-yellow-bg);
}

.atle-app .atle-bookmark-btn.is-saved svg,
.atle-app .atle-bookmark-btn[aria-pressed="true"] svg {
    fill: currentColor;
}

.atle-app .atle-word-example {
    position: relative;
    margin-top: 16px;
    padding: 15px 16px;
    padding-right: 65px;
    border-radius: 12px;
    background: var(--atle-card);
    border-left: 3px solid var(--atle-primary);
}

.atle-app .atle-example-label {
    display: block;
    color: var(--atle-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
}

.atle-app .atle-word-example > div {
    color: var(--atle-heading);
    font-size: 21px;
    font-weight: 650;
}

.atle-app .atle-word-example small {
    display: block;
    color: var(--atle-green-text);
    font-size: 13px;
}

.atle-app .atle-word-example p {
    font-size: 13px;
    margin: 5px 0 0;
}

.atle-app .atle-word-example .atle-audio-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 36px;
    min-height: 36px;
    padding: 0;
}

.atle-app .atle-word-example
.atle-audio-btn span {
    display: none;
}


/* ==================================================
   13. INTERACTIVE DIALOGUES
================================================== */

.atle-app .atle-dialogue-card {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--atle-border);
    border-radius: 18px;
    background: var(--atle-surface);
}

.atle-app .atle-dialogue-card:last-child {
    margin-bottom: 0;
}

.atle-app .atle-dialogue-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--atle-border);
}

.atle-app .atle-dialogue-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--atle-blue-bg);
    border-radius: 14px;
    font-size: 25px;
}

.atle-app .atle-dialogue-header > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.atle-app .atle-dialogue-header h3 {
    font-size: 17px;
    margin: 0 0 4px;
}

.atle-app .atle-dialogue-header p {
    font-size: 12px;
    margin: 0;
}

.atle-app .atle-dialogue-lines {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.atle-app .atle-dialogue-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.atle-app .atle-speaker-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}

.atle-app .atle-dialogue-bubble {
    max-width: 85%;
    min-width: 0;
    padding: 18px 20px;
    background: var(--atle-blue-bg);
    border: 1px solid rgba(59,130,246,.20);
    border-radius: 4px 18px 18px 18px;
}

.atle-app .atle-dialogue-bubble .atle-audio-btn {
    margin-top: 12px;
    min-height: 34px;
    padding: 6px 11px;
    font-size: 12px;
}

.atle-app .atle-dialogue-line[data-speaker="B"] {
    flex-direction: row-reverse;
}

.atle-app .atle-dialogue-line[data-speaker="B"]
.atle-speaker-avatar {
    background: #047857;
}

.atle-app .atle-dialogue-line[data-speaker="B"]
.atle-dialogue-bubble {
    background: var(--atle-green-bg);
    border-color: rgba(93,183,138,.20);
    border-radius: 18px 4px 18px 18px;
}


/* ==================================================
   14. GRAMMAR AND USAGE NOTES
================================================== */

.atle-app .atle-grammar-card {
    padding: 22px;
    margin-bottom: 20px;
    border: 1px solid var(--atle-border);
    border-radius: 18px;
    background: var(--atle-surface);
}

.atle-app .atle-grammar-card:last-child {
    margin-bottom: 0;
}

.atle-app .atle-grammar-card h3 {
    font-size: 19px;
}

.atle-app .atle-grammar-pattern {
    padding: 20px 15px;
    margin: 15px 0;
    border: 1px dashed rgba(93,183,138,.45);
    border-radius: 14px;
    color: var(--atle-green-text);
    background: var(--atle-green-bg);
    font-size: 27px;
    font-weight: 750;
    text-align: center;
    overflow-wrap: anywhere;
}

.atle-app .atle-grammar-examples {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.atle-app .atle-grammar-example {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px;
    background: var(--atle-card);
    border: 1px solid var(--atle-border);
    border-radius: 12px;
}

.atle-app .atle-grammar-example .atle-hanzi {
    font-size: 24px;
}


/* ==================================================
   15. PINYIN
================================================== */

.atle-app .atle-pinyin-card,
.atle-app .atle-pronunciation-card {
    padding: 22px;
    margin-bottom: 20px;
    background: var(--atle-surface);
    border: 1px solid var(--atle-border);
    border-radius: 18px;
}

.atle-app .atle-pinyin-card h3,
.atle-app .atle-pronunciation-card h3 {
    font-size: 20px;
    margin-bottom: 18px;
}

.atle-app .atle-pinyin-group {
    margin-bottom: 20px;
}

.atle-app .atle-pinyin-group:last-child {
    margin-bottom: 0;
}

.atle-app .atle-pinyin-group h4 {
    color: var(--atle-muted);
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 10px;
}

.atle-app .atle-pinyin-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(65px, 1fr)
    );
    gap: 9px;
}

.atle-app .atle-pinyin-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 6px;
    border: 1px solid var(--atle-border);
    background: var(--atle-card);
    border-radius: 11px;
    color: var(--atle-blue);
    font-size: 19px;
    font-weight: 700;
    text-align: center;
}


/* ==================================================
   16. FOUR MANDARIN TONES
================================================== */

.atle-app .atle-tone-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
}

.atle-app .atle-tone-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 18px 10px;
    border: 1px solid var(--atle-border);
    border-top: 3px solid var(--atle-tone-color);
    background: var(--atle-card);
    border-radius: 14px;
    text-align: center;
}

.atle-app .atle-tone-card > strong {
    color: var(--atle-heading);
    font-size: 13px;
}

.atle-app .atle-tone-diagram {
    display: block;
    width: 100%;
    height: auto;
    max-width: 130px;
    color: var(--atle-tone-color);
}

.atle-app .atle-tone-pinyin {
    font-size: 32px;
    font-weight: 800;
    color: var(--atle-tone-color);
    line-height: 1.2;
}

.atle-app .atle-tone-hanzi {
    font-size: 27px;
    font-weight: 700;
    color: var(--atle-heading);
}

.atle-app .atle-tone-card > span {
    font-size: 12px;
    color: var(--atle-text);
}

.atle-app .atle-tone-card > small {
    color: var(--atle-muted);
    font-size: 11px;
    flex: 1;
}

.atle-app .atle-tone-card .atle-audio-btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
}

.atle-app .atle-tone-practice {
    display: grid;
    gap: 9px;
}

.atle-app .atle-tone-practice-row {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
}

.atle-app .atle-tone-practice-row span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    border-radius: 10px;
    border: 1px solid var(--atle-border);
    background: var(--atle-card);
    font-size: 25px;
    font-weight: 700;
}

.atle-app .atle-tone-practice-row span:nth-child(1) {
    color: #ef4444;
}

.atle-app .atle-tone-practice-row span:nth-child(2) {
    color: var(--atle-yellow);
}

.atle-app .atle-tone-practice-row span:nth-child(3) {
    color: var(--atle-green-text);
}

.atle-app .atle-tone-practice-row span:nth-child(4) {
    color: var(--atle-blue);
}


/* ==================================================
   17. SYLLABLE TABLE
================================================== */

.atle-app .atle-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--atle-border);
    border-radius: 12px;
}

.atle-app .atle-syllable-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px;
}

.atle-app .atle-syllable-table th {
    background: var(--atle-card);
    color: var(--atle-muted);
    padding: 14px 12px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .5px;
    text-align: left;
    border-bottom: 1px solid var(--atle-border);
}

.atle-app .atle-syllable-table td {
    color: var(--atle-text);
    padding: 13px 12px;
    border-bottom: 1px solid var(--atle-border);
}

.atle-app .atle-syllable-table tr:last-child td {
    border-bottom: 0;
}

.atle-app .atle-syllable-table td:first-child {
    color: var(--atle-heading);
    font-size: 24px;
    font-weight: 700;
}

.atle-app .atle-syllable-table .atle-audio-btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
}


/* ==================================================
   18. TONE SANDHI
================================================== */

.atle-app .atle-sandhi-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin-bottom: 18px;
    border: 1px dashed rgba(93,183,138,.45);
    border-radius: 15px;
    background: var(--atle-green-bg);
    color: var(--atle-green-text);
    font-size: 32px;
    font-weight: 800;
}

.atle-app .atle-sandhi-examples {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );
    gap: 12px;
}

.atle-app .atle-sandhi-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px;
    background: var(--atle-card);
    border: 1px solid var(--atle-border);
    border-radius: 14px;
    text-align: center;
}

.atle-app .atle-sandhi-card > strong {
    color: var(--atle-heading);
    font-size: 29px;
}

.atle-app .atle-sandhi-change {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.atle-app .atle-sandhi-change > span {
    color: var(--atle-muted);
}

.atle-app .atle-sandhi-change strong {
    color: var(--atle-green-text);
}

.atle-app .atle-sandhi-change svg {
    width: 15px;
    height: 15px;
    color: var(--atle-muted);
}

.atle-app .atle-sandhi-card small {
    color: var(--atle-muted);
}


/* ==================================================
   19. CLASSROOM EXPRESSIONS
================================================== */

.atle-app .atle-classroom-list {
    display: grid;
    gap: 12px;
}

.atle-app .atle-classroom-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: var(--atle-surface);
    border: 1px solid var(--atle-border);
    border-radius: 15px;
}


/* ==================================================
   20. BASIC STROKES
================================================== */

.atle-app .atle-character-section {
    margin-bottom: 26px;
}

.atle-app .atle-character-section h3 {
    font-size: 20px;
    margin-bottom: 18px;
}

.atle-app .atle-stroke-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(125px, 1fr)
    );
    gap: 12px;
}

.atle-app .atle-stroke-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 10px;
    background: var(--atle-surface);
    border: 1px solid var(--atle-border);
    border-radius: 14px;
    text-align: center;
}

.atle-app .atle-stroke-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin-bottom: 7px;
    background: var(--atle-card);
    border: 1px solid var(--atle-border);
    border-radius: 10px;
    color: var(--atle-green-text);
    font-size: 50px;
    line-height: 1;
}

.atle-app .atle-stroke-card strong {
    color: var(--atle-heading);
    font-size: 22px;
}

.atle-app .atle-stroke-card > span {
    color: var(--atle-green-text);
    font-size: 13px;
}

.atle-app .atle-stroke-card small {
    color: var(--atle-text);
    font-weight: 650;
}

.atle-app .atle-stroke-card p {
    margin: 5px 0 0;
    font-size: 11px;
}


/* ==================================================
   21. CHINESE CHARACTER WRITING
================================================== */

.atle-app .atle-character-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 16px;
}

.atle-app .atle-character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 20px 15px;
    border: 1px solid var(--atle-border);
    background: var(--atle-surface);
    border-radius: 18px;
}

.atle-app .atle-writing-grid {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1;
    background: var(--atle-card);
    border: 1px solid var(--atle-border);
    border-radius: 8px;
    overflow: hidden;
}

/* Tian Zi Ge guide lines */

.atle-app .atle-writing-grid::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent 49.5%,
            var(--atle-border) 49.5%,
            var(--atle-border) 50.5%,
            transparent 50.5%
        ),
        linear-gradient(
            0deg,
            transparent 49.5%,
            var(--atle-border) 49.5%,
            var(--atle-border) 50.5%,
            transparent 50.5%
        ),
        linear-gradient(
            45deg,
            transparent 49.6%,
            var(--atle-border) 49.6%,
            var(--atle-border) 50.4%,
            transparent 50.4%
        ),
        linear-gradient(
            -45deg,
            transparent 49.6%,
            var(--atle-border) 49.6%,
            var(--atle-border) 50.4%,
            transparent 50.4%
        );
}

.atle-app .atle-character-model {
    color: var(--atle-heading);
    font-size: 105px;
    font-weight: 500;
    line-height: 1;
    user-select: none;
}

.atle-app .atle-writing-target {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.atle-app .atle-writing-target svg,
.atle-app .atle-writing-target canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.atle-app .atle-character-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.atle-app .atle-character-info strong {
    color: var(--atle-green-text);
    font-size: 21px;
}

.atle-app .atle-character-info > span {
    color: var(--atle-text);
    font-size: 14px;
}

.atle-app .atle-character-info small {
    color: var(--atle-muted);
    font-size: 12px;
}

.atle-app .atle-stroke-order {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.atle-app .atle-stroke-order span {
    padding: 5px 9px;
    background: var(--atle-card);
    border: 1px solid var(--atle-border);
    border-radius: 8px;
    color: var(--atle-muted);
    font-size: 12px;
}

.atle-app .atle-character-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.atle-app .atle-character-actions button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
}

.atle-app .atle-character-actions svg {
    width: 15px;
    height: 15px;
}


/* ==================================================
   22. QUESTION CARDS
================================================== */

.atle-app .atle-question-card {
    padding: 22px;
    margin-bottom: 18px;
    border: 1px solid var(--atle-border);
    border-radius: 18px;
    background: var(--atle-surface);
}

.atle-app .atle-question-card:last-child {
    margin-bottom: 0;
}

.atle-app .atle-question-number {
    display: inline-flex;
    padding: 4px 10px;
    margin-bottom: 12px;
    color: var(--atle-blue);
    background: var(--atle-blue-bg);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 750;
}

.atle-app .atle-question-card h3,
.atle-app .atle-quiz-question h3 {
    color: var(--atle-heading);
    font-size: 19px;
    margin-bottom: 20px;
}

.atle-app .atle-question-options {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

.atle-app .atle-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 13px;
    color: var(--atle-text);
    background: var(--atle-card);
    border: 2px solid var(--atle-border);
    border-radius: 13px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
}

.atle-app .atle-option:hover:not(:disabled) {
    border-color: var(--atle-blue);
    background: var(--atle-blue-bg);
}

.atle-app .atle-option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--atle-surface);
    border: 1px solid var(--atle-border);
    color: var(--atle-muted);
    flex-shrink: 0;
    font-size: 12px;
}

.atle-app .atle-option-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.atle-app .atle-option.is-selected,
.atle-app .atle-option[aria-pressed="true"] {
    color: var(--atle-blue);
    border-color: var(--atle-blue);
    background: var(--atle-blue-bg);
}

.atle-app .atle-option.is-correct {
    color: var(--atle-green-text);
    background: var(--atle-green-bg);
    border-color: var(--atle-primary);
    opacity: 1;
}

.atle-app .atle-option.is-correct .atle-option-letter {
    color: #ffffff;
    background: #047857;
    border-color: #047857;
}

.atle-app .atle-option.is-incorrect {
    color: var(--atle-red);
    background: var(--atle-red-bg);
    border-color: #ef4444;
    opacity: 1;
}

.atle-app .atle-option.is-incorrect .atle-option-letter {
    color: #ffffff;
    background: #ef4444;
    border-color: #ef4444;
}

.atle-app .atle-question-feedback {
    margin-top: 15px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--atle-surface);
    color: var(--atle-text);
    font-size: 14px;
    font-weight: 650;
}

.atle-app .atle-question-feedback.is-correct,
.atle-app .atle-question-feedback.is-success {
    color: var(--atle-green-text);
    background: var(--atle-green-bg);
    border: 1px solid rgba(93,183,138,.3);
}

.atle-app .atle-question-feedback.is-incorrect,
.atle-app .atle-question-feedback.is-error {
    color: var(--atle-red);
    background: var(--atle-red-bg);
    border: 1px solid rgba(239,68,68,.3);
}


/* ==================================================
   23. LISTENING PRACTICE
================================================== */

.atle-app .atle-listening-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 26px 15px;
    margin-bottom: 22px;
    background: var(--atle-blue-bg);
    border: 1px dashed rgba(59,130,246,.30);
    border-radius: 16px;
}

.atle-app .atle-listening-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 0;
    border-bottom: 5px solid #1d4ed8;
    border-radius: 23px;
    background: #3b82f6;
    color: #ffffff;
}

.atle-app .atle-listening-play svg {
    width: 34px;
    height: 34px;
}

.atle-app .atle-listening-play:hover,
.atle-app .atle-listening-play.is-playing {
    background: #2563eb;
    transform: translateY(-2px);
}

.atle-app .atle-listening-player > span {
    font-size: 12px;
    color: var(--atle-blue);
    font-weight: 650;
}


/* ==================================================
   24. SPEAKING PRACTICE
================================================== */

.atle-app .atle-speaking-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 20px;
    margin-bottom: 18px;
    border: 1px solid var(--atle-border);
    background: var(--atle-surface);
    border-radius: 18px;
    text-align: center;
}

.atle-app .atle-speaking-card h3 {
    font-size: 17px;
}

.atle-app .atle-speaking-card .atle-hanzi {
    font-size: 37px;
}

.atle-app .atle-speaking-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.atle-app .atle-speaking-result {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: var(--atle-card);
    color: var(--atle-text);
    font-size: 14px;
}

.atle-app .atle-speaking-result.is-success {
    background: var(--atle-green-bg);
    color: var(--atle-green-text);
}

.atle-app .atle-speaking-result.is-error {
    background: var(--atle-red-bg);
    color: var(--atle-red);
}


/* ==================================================
   25. MATCHING EXERCISE
================================================== */

.atle-app .atle-matching-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.atle-app .atle-matching-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.atle-app .atle-match-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    width: 100%;
    padding: 12px;
    color: var(--atle-text);
    background: var(--atle-card);
    border: 2px solid var(--atle-border);
    border-radius: 12px;
    font-size: 15px;
    text-align: center;
    overflow-wrap: anywhere;
}

.atle-app .atle-match-item[data-atle-match-side="left"] {
    font-size: 23px;
}

.atle-app .atle-match-item:hover:not(:disabled) {
    border-color: var(--atle-blue);
}

.atle-app .atle-match-item.is-selected,
.atle-app .atle-match-item[aria-pressed="true"] {
    color: var(--atle-blue);
    border-color: var(--atle-blue);
    background: var(--atle-blue-bg);
}

.atle-app .atle-match-item.is-matched,
.atle-app .atle-match-item.is-correct {
    color: var(--atle-green-text);
    background: var(--atle-green-bg);
    border-color: var(--atle-primary);
    opacity: .65;
}

.atle-app .atle-match-item.is-incorrect {
    color: var(--atle-red);
    background: var(--atle-red-bg);
    border-color: #ef4444;
}


/* ==================================================
   26. SENTENCE BUILDER
================================================== */

.atle-app .atle-sentence-builder {
    display: grid;
    gap: 18px;
}

.atle-app .atle-sentence-answer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 90px;
    padding: 15px;
    background: var(--atle-card);
    border: 2px dashed var(--atle-border);
    border-radius: 14px;
}

.atle-app .atle-sentence-answer:empty::before {
    content: "Tap the words to build your answer";
    color: var(--atle-muted);
    font-size: 13px;
    width: 100%;
    text-align: center;
}

.atle-app .atle-sentence-tokens {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.atle-app .atle-token {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    padding: 10px 16px;
    border: 1px solid var(--atle-border);
    border-bottom: 4px solid var(--atle-border);
    border-radius: 12px;
    background: var(--atle-card);
    color: var(--atle-heading);
    font-size: 25px;
    font-weight: 700;
}

.atle-app .atle-token:hover:not(:disabled) {
    border-color: var(--atle-primary);
    color: var(--atle-green-text);
}

.atle-app .atle-token.is-used {
    opacity: .25;
    pointer-events: none;
}

.atle-app .atle-sentence-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.atle-app .atle-fill-blank {
    padding: 25px 15px;
    margin-bottom: 20px;
    border: 1px dashed var(--atle-border);
    border-radius: 14px;
    background: var(--atle-card);
    color: var(--atle-heading);
    font-size: 34px;
    font-weight: 700;
    text-align: center;
}


/* ==================================================
   27. CHINESE CULTURE
================================================== */

.atle-app .atle-culture-card {
    padding: 26px;
    background: var(--atle-yellow-bg);
    border: 1px solid rgba(245,158,11,.25);
    border-radius: 18px;
}

.atle-app .atle-culture-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    background: var(--atle-card);
    border-radius: 20px;
    font-size: 36px;
}

.atle-app .atle-culture-card h3 {
    font-size: 23px;
}

.atle-app .atle-culture-card p {
    color: var(--atle-text);
    line-height: 1.9;
}

.atle-app .atle-culture-tips {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.atle-app .atle-culture-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    background: var(--atle-card);
    color: var(--atle-text);
    font-size: 14px;
}

.atle-app .atle-culture-tip svg {
    color: var(--atle-green-text);
    margin-top: 2px;
}


/* ==================================================
   28. LESSON QUIZ
================================================== */

.atle-app .atle-quiz-intro,
.atle-app .atle-quiz-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 35px 20px;
    background: var(--atle-surface);
    border: 1px solid var(--atle-border);
    border-radius: 20px;
    text-align: center;
}

.atle-app .atle-quiz-icon,
.atle-app .atle-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 28px;
    background: var(--atle-green-bg);
    color: var(--atle-green-text);
    font-size: 46px;
}

.atle-app .atle-quiz-icon svg,
.atle-app .atle-result-icon svg {
    width: 46px;
    height: 46px;
}

.atle-app .atle-quiz-intro h3,
.atle-app .atle-quiz-result h3 {
    font-size: 26px;
    margin: 0;
}

.atle-app .atle-quiz-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.atle-app .atle-quiz-details > span {
    padding: 9px 15px;
    border-radius: 30px;
    background: var(--atle-card);
    border: 1px solid var(--atle-border);
    color: var(--atle-muted);
    font-size: 12px;
    font-weight: 650;
}

.atle-app .atle-quiz-details > span:last-child {
    background: var(--atle-yellow-bg);
    color: var(--atle-yellow);
}

.atle-app .atle-quiz-intro .atle-primary-btn {
    min-width: 200px;
    min-height: 50px;
    margin-top: 10px;
}

.atle-app .atle-quiz-player {
    padding: 24px;
    background: var(--atle-surface);
    border: 1px solid var(--atle-border);
    border-radius: 18px;
}

.atle-app .atle-quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--atle-muted);
    font-size: 13px;
}

.atle-app .atle-quiz-progress strong {
    color: var(--atle-green-text);
}

.atle-app .atle-quiz-question {
    padding: 25px 0 10px;
}

.atle-app .atle-quiz-navigation {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.atle-app .atle-result-score {
    color: var(--atle-green-text);
    font-size: 65px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: -3px;
}

.atle-app .atle-quiz-result.is-failed
.atle-result-score {
    color: var(--atle-red);
}

.atle-app .atle-result-stats {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.atle-app .atle-result-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 20px 12px;
    background: var(--atle-card);
    border: 1px solid var(--atle-border);
    border-radius: 14px;
}

.atle-app .atle-result-stats strong {
    font-size: 32px;
    line-height: 1.3;
}

.atle-app .atle-result-stats > div:first-child strong {
    color: var(--atle-green-text);
}

.atle-app .atle-result-stats > div:last-child strong {
    color: var(--atle-red);
}

.atle-app .atle-result-stats span {
    color: var(--atle-muted);
    font-size: 12px;
}


/* ==================================================
   29. BOTTOM NAVIGATION
================================================== */

.atle-app .atle-bottom-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin-top: 22px;
    background: var(--atle-card);
    border: 1px solid var(--atle-border);
    border-radius: 16px;
}

.atle-app .atle-bottom-navigation button {
    min-height: 48px;
    padding: 12px 20px;
}

.atle-app .atle-bottom-navigation
.atle-primary-btn {
    min-width: 180px;
}


/* ==================================================
   30. STATUS MESSAGES
================================================== */

.atle-app .atle-status {
    padding: 15px 18px;
    margin-top: 16px;
    background: var(--atle-blue-bg);
    color: var(--atle-blue);
    border: 1px solid var(--atle-border);
    border-radius: 12px;
    font-size: 14px;
}

.atle-app .atle-status.is-success {
    background: var(--atle-green-bg);
    color: var(--atle-green-text);
}

.atle-app .atle-status.is-error {
    background: var(--atle-red-bg);
    color: var(--atle-red);
}

.atle-notice {
    max-width: 800px;
    margin: 25px auto;
    padding: 20px;
    border: 1px solid var(--at-border, #334155);
    border-radius: 14px;
    background: var(--at-card, #151e2e);
    color: var(--at-text, #e2e8f0);
    text-align: center;
}


/* ==================================================
   31. SCROLLBAR
================================================== */

.atle-app .atle-sidebar::-webkit-scrollbar,
.atle-app .atle-table-wrap::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.atle-app .atle-sidebar::-webkit-scrollbar-thumb,
.atle-app .atle-table-wrap::-webkit-scrollbar-thumb {
    background: var(--atle-border);
    border-radius: 10px;
}


/* ==================================================
   32. TABLET
================================================== */

@media (max-width: 1200px) {

    .atle-app {
        padding: 20px;
    }

    .atle-app .atle-layout {
        grid-template-columns: 230px minmax(0,1fr);
        gap: 18px;
    }

    .atle-app .atle-panel {
        padding: 22px;
    }

    .atle-app .atle-hero {
        padding: 26px;
    }

    .atle-app .atle-tone-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .atle-app .atle-warmup-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

}


/* ==================================================
   33. MOBILE LESSON SIDEBAR
================================================== */

@media (max-width: 1024px) {

    .atle-app .atle-layout {
        grid-template-columns: minmax(0,1fr);
    }

    .atle-app .atle-mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        min-height: 46px;
        margin-bottom: 18px;
        padding: 12px 16px;
        border: 1px solid var(--atle-border);
        border-radius: 12px;
        background: var(--atle-card);
        color: var(--atle-heading);
        font-weight: 700;
    }

    .atle-app .atle-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 100050;
        display: flex;
        flex-direction: column;
        width: min(320px, 86vw);
        height: 100vh;
        height: 100dvh;
        max-height: none;
        padding: 18px 14px;
        padding-bottom: max(18px, env(safe-area-inset-bottom));
        border-radius: 0 20px 20px 0;
        transform: translateX(-105%);
        visibility: hidden;
        transition:
            transform .28s ease,
            visibility .28s ease;
    }

    .atle-app .atle-sidebar.is-open,
    .atle-app.is-menu-open .atle-sidebar {
        transform: translateX(0);
        visibility: visible;
    }

    .atle-app .atle-sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 10px;
        background: var(--atle-surface);
        color: var(--atle-text);
        border: 1px solid var(--atle-border);
    }

    .atle-app .atle-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 100049;
        background: rgba(2,6,23,.70);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .atle-app .atle-sidebar-footer {
        margin-top: auto;
    }

    .atle-app .atle-section-nav {
        padding-bottom: 20px;
    }

}


/* ==================================================
   34. MOBILE PHONE
================================================== */

@media (max-width: 600px) {

    .atle-app {
        padding: 12px;
        font-size: 14px;
    }

    .atle-app .atle-topbar {
        gap: 8px;
        margin-bottom: 14px;
    }

    .atle-app .atle-back-link {
        font-size: 12px;
    }

    .atle-app .atle-breadcrumb {
        display: none;
    }

    .atle-app .atle-xp-badge {
        padding: 7px 11px;
        font-size: 12px;
    }

    .atle-app .atle-lesson-progress {
        padding: 16px;
        margin-bottom: 15px;
        border-radius: 15px;
    }

    .atle-app .atle-hero {
        padding: 23px 18px;
        margin-bottom: 16px;
        border-radius: 18px;
        gap: 10px;
    }

    .atle-app .atle-hero h1 {
        font-size: 43px;
    }

    .atle-app .atle-hero-pinyin {
        font-size: 19px;
    }

    .atle-app .atle-hero h2 {
        font-size: 22px;
    }

    .atle-app .atle-hero p {
        font-size: 13px;
    }

    .atle-app .atle-hero-eyebrow {
        font-size: 9px;
        letter-spacing: .5px;
    }

    .atle-app .atle-hero-meta {
        gap: 10px;
        margin-top: 15px;
    }

    .atle-app .atle-hero-meta > span {
        font-size: 10px;
    }

    .atle-app .atle-hero-audio .atle-audio-btn {
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
    }

    .atle-app .atle-hero-audio
    .atle-audio-btn span {
        display: none;
    }

    .atle-app .atle-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .atle-app .atle-section-heading {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .atle-app .atle-section-heading h2 {
        font-size: 21px;
    }

    .atle-app .atle-section-heading p {
        font-size: 12px;
    }

    .atle-app .atle-overview-stats {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }

    .atle-app .atle-objective {
        padding: 12px;
        font-size: 13px;
    }

    .atle-app .atle-warmup-grid {
        grid-template-columns: minmax(0,1fr);
        gap: 12px;
    }

    .atle-app .atle-word-card {
        padding: 14px;
    }

    .atle-app .atle-word-main {
        display: grid;
        grid-template-columns: minmax(0,1fr) auto;
        gap: 10px;
    }

    .atle-app .atle-word-hanzi {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        min-width: 0;
        font-size: 37px;
        padding: 13px 10px;
    }

    .atle-app .atle-word-pinyin {
        font-size: 17px;
    }

    .atle-app .atle-word-meaning {
        font-size: 13px;
    }

    .atle-app .atle-word-actions {
        gap: 5px;
    }

    .atle-app .atle-word-actions .atle-audio-btn,
    .atle-app .atle-bookmark-btn {
        width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .atle-app .atle-word-example {
        padding-left: 12px;
        padding-right: 50px;
    }

    .atle-app .atle-word-example > div {
        font-size: 18px;
    }

    .atle-app .atle-dialogue-card,
    .atle-app .atle-grammar-card,
    .atle-app .atle-pinyin-card,
    .atle-app .atle-pronunciation-card,
    .atle-app .atle-question-card,
    .atle-app .atle-quiz-player {
        padding: 15px;
        border-radius: 14px;
    }

    .atle-app .atle-dialogue-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .atle-app .atle-dialogue-header
    .atle-secondary-btn {
        width: 100%;
    }

    .atle-app .atle-dialogue-bubble {
        max-width: calc(100% - 45px);
        padding: 14px;
    }

    .atle-app .atle-speaker-avatar {
        width: 33px;
        height: 33px;
        font-size: 13px;
    }

    .atle-app .atle-hanzi {
        font-size: 25px;
    }

    .atle-app .atle-grammar-pattern {
        font-size: 23px;
    }

    .atle-app .atle-grammar-example {
        padding: 13px;
    }

    .atle-app .atle-grammar-example
    .atle-audio-btn,
    .atle-app .atle-classroom-card
    .atle-audio-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        flex-shrink: 0;
    }

    .atle-app .atle-grammar-example
    .atle-audio-btn span,
    .atle-app .atle-classroom-card
    .atle-audio-btn span {
        display: none;
    }

    .atle-app .atle-tone-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }

    .atle-app .atle-tone-card {
        padding: 15px 8px;
    }

    .atle-app .atle-tone-practice-row {
        gap: 6px;
    }

    .atle-app .atle-tone-practice-row span {
        font-size: 22px;
        min-height: 45px;
    }

    .atle-app .atle-pinyin-grid {
        grid-template-columns: repeat(
            auto-fill,
            minmax(50px,1fr)
        );
        gap: 7px;
    }

    .atle-app .atle-pinyin-item {
        font-size: 16px;
        min-height: 46px;
    }

    .atle-app .atle-stroke-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }

    .atle-app .atle-character-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }

    .atle-app .atle-character-card {
        padding: 13px 9px;
        gap: 10px;
    }

    .atle-app .atle-character-model {
        font-size: clamp(55px, 20vw, 90px);
    }

    .atle-app .atle-character-actions {
        width: 100%;
    }

    .atle-app .atle-character-actions button {
        width: 100%;
    }

    .atle-app .atle-question-options {
        grid-template-columns: minmax(0,1fr);
        gap: 10px;
    }

    .atle-app .atle-question-card h3,
    .atle-app .atle-quiz-question h3 {
        font-size: 17px;
    }

    .atle-app .atle-option {
        min-height: 54px;
        font-size: 14px;
        padding: 10px 12px;
    }

    .atle-app .atle-matching-grid {
        gap: 10px;
    }

    .atle-app .atle-match-item {
        min-height: 58px;
        font-size: 12px;
        padding: 10px 6px;
    }

    .atle-app .atle-match-item[data-atle-match-side="left"] {
        font-size: 20px;
    }

    .atle-app .atle-speaking-card {
        padding: 20px 12px;
    }

    .atle-app .atle-speaking-card .atle-hanzi {
        font-size: 31px;
    }

    .atle-app .atle-token {
        min-width: 50px;
        min-height: 50px;
        padding: 10px;
        font-size: 23px;
    }

    .atle-app .atle-culture-card {
        padding: 18px;
    }

    .atle-app .atle-quiz-intro,
    .atle-app .atle-quiz-result {
        padding: 25px 14px;
    }

    .atle-app .atle-quiz-intro h3,
    .atle-app .atle-quiz-result h3 {
        font-size: 22px;
    }

    .atle-app .atle-bottom-navigation {
        padding: 12px;
        gap: 10px;
        margin-top: 15px;
    }

    .atle-app .atle-bottom-navigation button {
        min-width: 0;
        flex: 1;
        padding: 12px 8px;
        font-size: 12px;
    }

    .atle-app .atle-bottom-navigation
    .atle-primary-btn {
        min-width: 0;
        flex: 1.5;
    }

    .atle-app .atle-bottom-navigation svg {
        width: 16px;
        height: 16px;
    }

}


/* ==================================================
   35. SMALL MOBILE
================================================== */

@media (max-width: 360px) {

    .atle-app {
        padding: 8px;
    }

    .atle-app .atle-panel {
        padding: 12px;
    }

    .atle-app .atle-character-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .atle-app .atle-character-model {
        font-size: 100px;
    }

    .atle-app .atle-tone-grid {
        gap: 7px;
    }

    .atle-app .atle-tone-card {
        padding: 12px 6px;
    }

    .atle-app .atle-hero-meta {
        gap: 7px;
    }

    .atle-app .atle-hero h1 {
        font-size: 37px;
    }

}


/* ==================================================
   36. ACCESSIBILITY
================================================== */

@media (prefers-reduced-motion: reduce) {

    .atle-app *,
    .atle-app *::before,
    .atle-app *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

}


/* ==================================================
   END - HSK LESSON DESIGN CSS V1.0
================================================== */
/* =========================================
   LESSON BOOKMARK SYNC V1.0
========================================= */

.atle-app .atle-bookmark-btn.is-saved {
    background: rgba(93,183,138,.12);
    border-color: #5db78a;
    color: #5db78a;
}

.atle-app .atle-bookmark-btn.is-saved svg {
    fill: currentColor;
    stroke: currentColor;
}

.atle-app .atle-bookmark-btn.atlvm-loading {
    opacity: .5;
    cursor: wait;
    animation: atlvmPulse .8s infinite alternate;
}

.atle-app .atle-bookmark-btn.atlvm-unmapped {
    opacity: .5;
}

.atle-app .atle-bookmark-btn:disabled {
    cursor: wait;
    opacity: .5;
}


/* NOTIFICATION */

.atle-app .atlvm-status {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 9991;

    max-width: min(380px, calc(100vw - 32px));
    padding: 14px 20px;

    background: #059669;
    color: #ffffff;

    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;

    animation: atlvmSlideIn .25s ease;
}

.atle-app .atlvm-status[data-type="error"] {
    background: #b45309;
}

.atle-app .atlvm-status[hidden] {
    display: none !important;
}

@keyframes atlvmPulse {
    from {
        opacity: .4;
    }

    to {
        opacity: .8;
    }
}

@keyframes atlvmSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    .atle-app .atlvm-status {
        left: 16px;
        right: 16px;
        bottom: 150px;
        max-width: none;
    }

}

@media (prefers-reduced-motion: reduce) {

    .atle-app .atlvm-status,
    .atle-app .atle-bookmark-btn.atlvm-loading {
        animation: none;
    }

}
/* =========================================
   LESSON VOCABULARY QUICK ACTIONS V1.0
========================================= */

.atle-app .atle-quick-actions {
    margin: 20px 0 28px;
    padding: 24px;
    background: var(--at-card, #18232e);
    border: 1px solid var(--at-border, #334155);
    border-radius: 20px;
}

.atle-app .atle-quick-heading {
    margin-bottom: 20px;
}

.atle-app .atle-quick-heading h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: var(--at-text, #f1f5f9);
}

.atle-app .atle-quick-heading p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--at-muted, #94a3b8);
}

.atle-app .atle-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.atle-app .atle-quick-card {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    position: relative;
    min-width: 0;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--at-border, #334155);
    border-radius: 16px;
    background: var(--at-section, #111827);
    text-decoration: none !important;
    transition: transform .2s ease,
                border-color .2s ease,
                box-shadow .2s ease;
}

.atle-app .atle-quick-card:hover {
    transform: translateY(-3px);
    border-color: var(--quick-color);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.atle-app .atle-quick-card:focus-visible {
    outline: 2px solid var(--quick-color);
    outline-offset: 3px;
}


/* CARD COLORS */

.atle-app .atle-quick-flashcard {
    --quick-color: #5db78a;
    --quick-bg: rgba(93,183,138,.12);
}

.atle-app .atle-quick-vocabulary {
    --quick-color: #818cf8;
    --quick-bg: rgba(129,140,248,.12);
}

.atle-app .atle-quick-srs {
    --quick-color: #f59e0b;
    --quick-bg: rgba(245,158,11,.12);
}


/* ICON */

.atle-app .atle-quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--quick-bg);
    border-radius: 14px;
    font-size: 25px;
}


/* CONTENT */

.atle-app .atle-quick-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.atle-app .atle-quick-content strong {
    color: var(--at-text, #f1f5f9);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.atle-app .atle-quick-content small {
    color: var(--at-muted, #94a3b8);
    font-size: 12px;
    line-height: 1.6;
}

.atle-app .atle-quick-arrow {
    position: absolute;
    right: 16px;
    top: 20px;
    color: var(--quick-color);
    font-size: 20px;
    transition: transform .2s ease;
}

.atle-app .atle-quick-card:hover .atle-quick-arrow {
    transform: translateX(3px);
}

.atle-app .atle-quick-notice {
    margin: 16px 0 0;
    color: var(--at-muted, #94a3b8);
    font-size: 13px;
}


/* LIGHT MODE */

html[data-at-theme="light"]
.atle-app .atle-quick-actions {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-at-theme="light"]
.atle-app .atle-quick-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-at-theme="light"]
.atle-app .atle-quick-card:hover {
    border-color: var(--quick-color);
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .atle-app .atle-quick-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .atle-app .atle-quick-card {
        flex-direction: row;
        align-items: center;
        padding: 16px 40px 16px 16px;
    }

    .atle-app .atle-quick-arrow {
        top: 50%;
        transform: translateY(-50%);
    }

    .atle-app .atle-quick-card:hover .atle-quick-arrow {
        transform: translate(3px, -50%);
    }

}

@media (max-width: 600px) {

    .atle-app .atle-quick-actions {
        padding: 16px;
        border-radius: 16px;
    }

    .atle-app .atle-quick-heading h3 {
        font-size: 18px;
    }

    .atle-app .atle-quick-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .atle-app .atle-quick-content strong {
        font-size: 14px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .atle-app .atle-quick-card,
    .atle-app .atle-quick-arrow {
        transition: none;
    }

    .atle-app .atle-quick-card:hover {
        transform: none;
    }

}

/* ==================================================
   V2.0 – COURSE DESIGN ALIGNMENT
   Existing interaction selectors remain unchanged.
================================================== */
.atle-app {
    --atle-radius: 24px;
    --atle-radius-sm: 14px;
    max-width: 1600px;
    background: var(--atle-bg);
}
.atle-app .atle-topbar { flex-wrap: wrap; }
.atle-app .atle-lesson-progress {
    padding: 16px 20px;
    border-radius: 20px;
}
.atle-app .atle-progress-track {
    height: 8px;
    background: var(--at-progress-track, #334155);
}
.atle-app .atle-progress-fill {
    background: var(--at-progress-fill, #5db78a);
}
.atle-app .atle-primary-btn,
.atle-app .atle-primary-btn:hover:not(:disabled) {
    background: #047857;
    border-color: #047857;
    border-bottom-color: #065f46;
    color: #fff;
}
.atle-app .atle-primary-btn:hover:not(:disabled) { background: #065f46; }
.atle-app .atle-nav-item.is-active {
    border-color: var(--atle-primary);
    font-weight: 750;
}
.atle-app .atle-nav-item.is-completed .atle-nav-status {
    background: #047857;
    border-color: #047857;
}
.atle-app .atle-hero {
    background: var(--at-hero-gradient, linear-gradient(135deg,#101e29,#111827));
    border-color: var(--atle-border);
    color: var(--atle-text);
    padding: clamp(20px, 3vw, 32px);
}
.atle-app .atle-hero h1,
.atle-app .atle-hero h2 { color: var(--atle-heading); }
.atle-app .atle-hero h1 { font-size: clamp(30px, 4vw, 52px); }
.atle-app .atle-hero p,
.atle-app .atle-hero-meta > span { color: var(--atle-muted); }
.atle-app .atle-hero-pinyin { color: var(--atle-green-text); }
.atle-app .atle-hero-eyebrow,
.atle-app .atle-hero-audio .atle-audio-btn {
    background: var(--atle-green-bg);
    color: var(--atle-green-text);
    border-color: var(--atle-border);
}
.atle-app .atle-hero-audio .atle-audio-btn:hover {
    background: var(--atle-hover);
    color: var(--atle-green-text);
}
.atle-app .atle-hero-decoration { color: var(--atle-green-bg); }
.atle-app .atle-section-heading h2 {
    border-left: 4px solid var(--atle-primary);
    padding-left: 12px;
    font-size: clamp(21px, 2.5vw, 26px);
}
.atle-app .atle-word-card,
.atle-app .atle-dialogue-card,
.atle-app .atle-grammar-card,
.atle-app .atle-pronunciation-card,
.atle-app .atle-pinyin-card,
.atle-app .atle-character-card,
.atle-app .atle-question-card { border-radius: 20px; }
.atle-app .atle-word-hanzi { border: 1px solid var(--atle-border); }
.atle-app .atle-word-example { border-left-color: var(--atle-primary); }
.atle-app .atle-bookmark-btn.is-saved {
    color: var(--atle-green-text);
    background: var(--atle-green-bg);
    border-color: var(--atle-primary);
}
.atle-app .atle-option { border-width: 1px; min-height: 60px; }
.atle-app .atle-option.is-correct,
.atle-app .atle-option.is-incorrect { border-width: 2px; }
.atle-app .atle-option.is-correct:hover,
.atle-app .atle-option.is-correct:hover:not(:disabled) {
    color: var(--atle-green-text);
    background: var(--atle-green-bg);
    border-color: var(--atle-primary);
}
.atle-app .atle-option.is-incorrect:hover,
.atle-app .atle-option.is-incorrect:hover:not(:disabled) {
    color: var(--atle-red);
    background: var(--atle-red-bg);
    border-color: var(--atle-red);
}
.atle-app .atle-quick-flashcard {
    --quick-color: var(--atle-green-text);
    --quick-bg: var(--atle-green-bg);
}
@media (min-width: 1201px) {
    .atle-app .atle-layout { grid-template-columns: 250px minmax(0,1fr); }
}
@media (max-width: 600px) {
    .atle-app .atle-lesson-progress { padding: 14px; }
    .atle-app .atle-hero { padding: 18px; }
    .atle-app .atle-panel { border-radius: 20px; }
    .atle-app .atle-word-card,
    .atle-app .atle-question-card { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .atle-app .atle-progress-fill,
    .atle-app .atle-panel { transition: none; animation: none; }
}
/* END HSK LESSON DESIGN CSS V2.0 */
