/* _content/LearningTrainerWeb/Components/Pages/Grammar.razor.rz.scp.css */
/* Grammar.razor — Scoped CSS (§17 LEARNING_IMPROVEMENTS) */

.container[b-vaw7ul1g29] {
    max-width: 1200px;
    padding-bottom: 2rem;
}

/* === Section heading === */
.section-heading[b-vaw7ul1g29] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-heading i[b-vaw7ul1g29] {
    font-size: 1.8rem;
    color: var(--bs-primary);
}

.section-heading h1[b-vaw7ul1g29] {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

/* === Skill tree nodes === */
.skill-node[b-vaw7ul1g29] {
    transition: transform 0.2s, box-shadow 0.2s;
    border-width: 2px;
}

.skill-node:hover[b-vaw7ul1g29] {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.skill-node.border-success[b-vaw7ul1g29] {
    border-color: var(--bs-success) !important;
}

.skill-node.border-warning[b-vaw7ul1g29] {
    border-color: var(--bs-warning) !important;
}

.skill-node.border-secondary[b-vaw7ul1g29] {
    border-color: var(--bs-secondary) !important;
}

/* === Empty state === */
.empty-state-card[b-vaw7ul1g29] {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--surface-card, white);
    border-radius: var(--radius-lg, 16px);
    border: 2px dashed var(--border-default, #e0e0e0);
}

.empty-state-icon[b-vaw7ul1g29] {
    font-size: 4rem;
    color: var(--bs-primary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state-icon i[b-vaw7ul1g29] {
    font-size: 4rem;
}

.empty-state-actions[b-vaw7ul1g29] {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Progress bar text === */
.progress-bar span[b-vaw7ul1g29] {
    font-size: 0.75rem;
    font-weight: 600;
}

/* === Due reviews banner === */
.border-warning[b-vaw7ul1g29] {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.02) 100%);
}

/* === Responsive === */
@media (max-width: 576px) {
    .section-heading h1[b-vaw7ul1g29] {
        font-size: 1.3rem;
    }

    .skill-node .card-body[b-vaw7ul1g29] {
        padding: 0.75rem !important;
    }

    .fs-1[b-vaw7ul1g29] {
        font-size: 2rem !important;
    }
}
/* _content/LearningTrainerWeb/Components/Pages/GrammarPractice.razor.rz.scp.css */
/* GrammarPractice.razor — Scoped CSS (§17 LEARNING_IMPROVEMENTS) */

.container[b-3taxvx7uf4] {
    padding-bottom: 2rem;
}

/* === Stat pills for results screen === */
.stat-pill[b-3taxvx7uf4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--surface-card, #f8f9fa);
    border-radius: var(--radius-lg, 12px);
    border: 1px solid var(--border-default, #e0e0e0);
    min-width: 80px;
}

.stat-pill .stat-value[b-3taxvx7uf4] {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-pill .stat-label[b-3taxvx7uf4] {
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* === Exercise card === */
.card[b-3taxvx7uf4] {
    border: 1px solid var(--border-default, #e0e0e0);
    transition: box-shadow 0.2s;
}

/* === MCQ option buttons === */
.btn-lg.text-start[b-3taxvx7uf4] {
    text-align: left !important;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--radius-md, 8px);
    transition: all 0.15s;
}

.btn-outline-secondary.btn-lg.text-start:hover[b-3taxvx7uf4] {
    background: var(--surface-hover, #f0f0f0);
    border-color: var(--bs-primary);
}

/* === Word order buttons === */
.btn-outline-primary[b-3taxvx7uf4] {
    transition: transform 0.1s;
}

.btn-outline-primary:active[b-3taxvx7uf4] {
    transform: scale(0.95);
}

/* === Progress bar === */
.progress[b-3taxvx7uf4] {
    transition: width 0.3s ease;
}

/* === Alert animations === */
.alert-success[b-3taxvx7uf4],
.alert-danger[b-3taxvx7uf4],
.alert-info[b-3taxvx7uf4] {
    animation: fadeSlideIn-b-3taxvx7uf4 0.3s ease-out;
}

@keyframes fadeSlideIn-b-3taxvx7uf4 {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Empty state === */
.empty-state-card[b-3taxvx7uf4] {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--surface-card, white);
    border-radius: var(--radius-lg, 16px);
    border: 2px dashed var(--border-default, #e0e0e0);
}

.empty-state-icon[b-3taxvx7uf4] {
    font-size: 4rem;
    color: var(--bs-primary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state-icon i[b-3taxvx7uf4] {
    font-size: 4rem;
}

/* === Results screen stars === */
.bi-star-fill[b-3taxvx7uf4],
.bi-star[b-3taxvx7uf4] {
    transition: transform 0.2s;
}

.bi-star-fill:hover[b-3taxvx7uf4],
.bi-star:hover[b-3taxvx7uf4] {
    transform: scale(1.15);
}

/* === Responsive === */
@media (max-width: 576px) {
    .stat-pill[b-3taxvx7uf4] {
        min-width: 65px;
        padding: 0.5rem 0.75rem;
    }

    .stat-pill .stat-value[b-3taxvx7uf4] {
        font-size: 1.2rem;
    }

    .btn-lg.text-start[b-3taxvx7uf4] {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }
}
/* _content/LearningTrainerWeb/Components/Pages/MyContent.razor.rz.scp.css */
/* ===== IMPORT MODAL ===== */

/* Card title link */
.card-title-link[b-mc73ttedcg] {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease;
}

.card-title-link:hover[b-mc73ttedcg] {
    color: var(--primary-500);
}

.card-title-link h5[b-mc73ttedcg] {
    margin-bottom: 0;
}

.import-modal-overlay[b-mc73ttedcg] {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: overlayFadeIn-b-mc73ttedcg 200ms ease-out;
    padding: 1rem;
}

.import-modal[b-mc73ttedcg] {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--surface-card, white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    animation: modalSlideUp-b-mc73ttedcg 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.import-modal-accent[b-mc73ttedcg] {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-purple));
}

/* Header */
.import-modal-header[b-mc73ttedcg] {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.75rem 2rem 0;
}

.import-modal-icon[b-mc73ttedcg] {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    color: var(--primary-600);
    border-radius: var(--radius);
    font-size: 1.35rem;
}

.import-modal-title[b-mc73ttedcg] {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
    margin: 0 0 0.125rem;
    line-height: 1.3;
}

.import-modal-subtitle[b-mc73ttedcg] {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.import-modal-close[b-mc73ttedcg] {
    flex-shrink: 0;
    margin-left: auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--gray-100);
    color: var(--gray-500);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.import-modal-close:hover[b-mc73ttedcg] {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* Body */
.import-modal-body[b-mc73ttedcg] {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Field label */
.import-field-label[b-mc73ttedcg] {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.import-field[b-mc73ttedcg] {
    flex: 1;
    min-width: 0;
}

/* Dropzone */
.import-dropzone-wrap[b-mc73ttedcg] {
    /* wrapper for label + dropzone */
}

.import-dropzone[b-mc73ttedcg] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    cursor: pointer;
    transition: all var(--transition);
}

.import-dropzone:hover[b-mc73ttedcg] {
    border-color: var(--primary-400);
    background: var(--primary-50);
}

.import-dropzone--filled[b-mc73ttedcg] {
    border-style: solid;
    border-color: var(--accent-green);
    background: #f0fdf4;
}

.import-dropzone--filled:hover[b-mc73ttedcg] {
    border-color: var(--accent-green);
    background: #dcfce7;
}

.import-dropzone-content[b-mc73ttedcg] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.5rem;
    text-align: center;
    pointer-events: none;
}

.import-dropzone-icon[b-mc73ttedcg] {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-100);
    color: var(--primary-500);
    border-radius: var(--radius);
    font-size: 1.5rem;
    margin-bottom: 0.375rem;
    transition: all var(--transition);
}

.import-dropzone:hover .import-dropzone-icon[b-mc73ttedcg] {
    background: var(--primary-200);
    transform: translateY(-2px);
}

.import-dropzone-icon--success[b-mc73ttedcg] {
    background: var(--accent-green-light);
    color: var(--accent-green);
}

.import-dropzone--filled:hover .import-dropzone-icon--success[b-mc73ttedcg] {
    background: #bbf7d0;
}

.import-dropzone-title[b-mc73ttedcg] {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
}

.import-dropzone-hint[b-mc73ttedcg] {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.import-dropzone-input[b-mc73ttedcg] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Language row */
.import-lang-row[b-mc73ttedcg] {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.import-lang-arrow[b-mc73ttedcg] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Footer */
.import-modal-footer[b-mc73ttedcg] {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0 2rem 1.75rem;
}

.import-btn-cancel[b-mc73ttedcg] {
    background: var(--gray-100);
    color: var(--gray-600);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    transition: all var(--transition-fast);
}

.import-btn-cancel:hover[b-mc73ttedcg] {
    background: var(--gray-200);
    color: var(--gray-700);
}

.import-btn-submit[b-mc73ttedcg] {
    padding: 0.625rem 1.75rem;
}

/* Animations */
@keyframes overlayFadeIn-b-mc73ttedcg {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp-b-mc73ttedcg {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 575px) {
    .import-modal-header[b-mc73ttedcg] {
        padding: 1.25rem 1.25rem 0;
    }

    .import-modal-body[b-mc73ttedcg] {
        padding: 1.25rem;
    }

    .import-modal-footer[b-mc73ttedcg] {
        padding: 0 1.25rem 1.25rem;
        flex-direction: column;
    }

    .import-btn-cancel[b-mc73ttedcg],
    .import-btn-submit[b-mc73ttedcg] {
        width: 100%;
        justify-content: center;
    }

    .import-lang-row[b-mc73ttedcg] {
        flex-direction: column;
        gap: 1rem;
    }

    .import-lang-arrow[b-mc73ttedcg] {
        display: none;
    }
}

/* ===== MY CONTENT CARD ACTIONS ===== */

.mc-actions[b-mc73ttedcg] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mc-icon-group[b-mc73ttedcg] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.mc-icon-btn[b-mc73ttedcg] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.mc-icon-btn:hover[b-mc73ttedcg] {
    background: var(--gray-200);
    color: var(--gray-700);
    transform: translateY(-1px);
}

.mc-icon-btn:active[b-mc73ttedcg] {
    transform: translateY(0);
}

.mc-icon-btn--share[b-mc73ttedcg] {
    background: var(--primary-50);
    color: var(--primary-500);
}

.mc-icon-btn--share:hover[b-mc73ttedcg] {
    background: var(--primary-100);
    color: var(--primary-600);
}

/* Shared card styling */
[b-mc73ttedcg] .card-shared {
    border-left: 4px solid var(--primary-500, #3b82f6);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), transparent);
}

.mc-icon-btn--shared-active[b-mc73ttedcg] {
    background: var(--primary-500);
    color: white;
}

.mc-icon-btn--shared-active:hover[b-mc73ttedcg] {
    background: var(--primary-600);
    color: white;
}

/* Teacher-shared card styling */
[b-mc73ttedcg] .card-from-teacher {
    border-left: 4px solid var(--accent-orange, #f59e0b);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), transparent);
}
/* _content/LearningTrainerWeb/Components/Pages/Settings.razor.rz.scp.css */
/* §12.2 LEARNING_IMPROVEMENTS — Settings page styles */

.settings-header h1[b-aks6lywjdg] {
    font-size: 1.75rem;
    color: var(--text-primary);
}

.settings-header p[b-aks6lywjdg] {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* === Sections === */
.settings-section[b-aks6lywjdg] {
    background: var(--surface-card, white);
    border-radius: var(--radius-lg, 16px);
    border: 1px solid var(--border-default, #e5e7eb);
    margin-bottom: 1rem;
    overflow: hidden;
}

.settings-section-header[b-aks6lywjdg] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.settings-section-header:hover[b-aks6lywjdg] {
    background: var(--gray-50, #f9fafb);
}

.settings-section-title[b-aks6lywjdg] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.settings-section-title i[b-aks6lywjdg] {
    font-size: 1.2rem;
    color: var(--primary-500);
}

.settings-section-body[b-aks6lywjdg] {
    padding: 0 1.25rem 1.25rem;
    animation: settingsFadeIn-b-aks6lywjdg 200ms ease;
}

@keyframes settingsFadeIn-b-aks6lywjdg {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Setting Rows === */
.setting-row[b-aks6lywjdg] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light, #f3f4f6);
}

.setting-row:last-child[b-aks6lywjdg] {
    border-bottom: none;
}

.setting-label[b-aks6lywjdg] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.setting-label strong[b-aks6lywjdg] {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.setting-value[b-aks6lywjdg] {
    flex-shrink: 0;
}

/* === Setting Pills === */
.setting-options[b-aks6lywjdg] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.setting-pill[b-aks6lywjdg] {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full, 9999px);
    border: 1px solid var(--border-default, #e5e7eb);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.setting-pill:hover[b-aks6lywjdg] {
    border-color: var(--primary-400);
    color: var(--primary-600);
}

.setting-pill.active[b-aks6lywjdg] {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

/* === Info Badge === */
.badge-info-text[b-aks6lywjdg] {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* === Role Badge === */
.role-badge[b-aks6lywjdg] {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-purple));
    color: white;
}

/* === Form Range === */
.form-range[b-aks6lywjdg] {
    flex: 1;
    min-width: 100px;
}

/* === Responsive === */
@media (max-width: 640px) {
    .setting-row[b-aks6lywjdg] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .setting-value[b-aks6lywjdg] {
        width: 100%;
    }

    .setting-options[b-aks6lywjdg] {
        width: 100%;
    }
}
/* _content/LearningTrainerWeb/Components/Pages/Statistics.razor.rz.scp.css */
/* ===== Statistics Page Styles ===== */

.statistics-page[b-2n5ifpy0q9] {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Loading */
.loading-container[b-2n5ifpy0q9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Header */
.stats-header[b-2n5ifpy0q9] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stats-header h1[b-2n5ifpy0q9] {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bs-body-color);
    margin: 0;
}

.period-selector .form-select[b-2n5ifpy0q9] {
    min-width: 150px;
}

/* Stat Cards */
.stats-cards[b-2n5ifpy0q9] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card[b-2n5ifpy0q9] {
    background: var(--bs-body-bg);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 4px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover[b-2n5ifpy0q9] {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.15);
}

.stat-card-success[b-2n5ifpy0q9] { border-left-color: #10B981; }
.stat-card-warning[b-2n5ifpy0q9] { border-left-color: #F59E0B; }
.stat-card-primary[b-2n5ifpy0q9] { border-left-color: #3B82F6; }
.stat-card-purple[b-2n5ifpy0q9] { border-left-color: #8B5CF6; }
.stat-card-pink[b-2n5ifpy0q9] { border-left-color: #EC4899; }
.stat-card-xp[b-2n5ifpy0q9] { border-left-color: #F59E0B; }

.stat-icon[b-2n5ifpy0q9] {
    font-size: 1.5rem;
    opacity: 0.8;
}

.stat-card-success .stat-icon[b-2n5ifpy0q9] { color: #10B981; }
.stat-card-warning .stat-icon[b-2n5ifpy0q9] { color: #F59E0B; }
.stat-card-primary .stat-icon[b-2n5ifpy0q9] { color: #3B82F6; }
.stat-card-purple .stat-icon[b-2n5ifpy0q9] { color: #8B5CF6; }
.stat-card-pink .stat-icon[b-2n5ifpy0q9] { color: #EC4899; }
.stat-card-xp .stat-icon[b-2n5ifpy0q9] { color: #F59E0B; }

.stat-content[b-2n5ifpy0q9] {
    flex: 1;
}

.stat-value[b-2n5ifpy0q9] {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bs-body-color);
    line-height: 1.2;
}

.stat-label[b-2n5ifpy0q9] {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    margin-top: 0.25rem;
}

.stat-trend[b-2n5ifpy0q9] {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    width: fit-content;
}

.trend-up[b-2n5ifpy0q9] {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.stat-badge[b-2n5ifpy0q9] {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    padding: 0.25rem 0.5rem;
    background: var(--bs-tertiary-bg);
    border-radius: 6px;
    width: fit-content;
}

/* Charts Grid */
.charts-grid[b-2n5ifpy0q9] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card[b-2n5ifpy0q9] {
    background: var(--bs-body-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.chart-card-wide[b-2n5ifpy0q9] {
    grid-column: span 2;
}

.chart-header[b-2n5ifpy0q9] {
    margin-bottom: 1rem;
}

.chart-header h3[b-2n5ifpy0q9] {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin: 0;
}

.chart-body[b-2n5ifpy0q9] {
    min-height: 200px;
}

/* Activity Bars */
.activity-bars[b-2n5ifpy0q9] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 8px;
    padding: 0 10px;
}

.activity-bar-container[b-2n5ifpy0q9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
}

.activity-bar[b-2n5ifpy0q9] {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, #3B82F6 0%, #60A5FA 100%);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: height 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
}

.bar-value[b-2n5ifpy0q9] {
    font-size: 0.625rem;
    color: white;
    font-weight: 600;
}

.bar-label[b-2n5ifpy0q9] {
    font-size: 0.625rem;
    color: var(--bs-secondary-color);
    margin-top: 4px;
    white-space: nowrap;
}

/* Knowledge Distribution */
.knowledge-distribution[b-2n5ifpy0q9] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.knowledge-level-row[b-2n5ifpy0q9] {
    display: grid;
    grid-template-columns: auto 1fr 40px;
    gap: 1rem;
    align-items: center;
}

.level-info[b-2n5ifpy0q9] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.level-badge[b-2n5ifpy0q9] {
    width: 24px;
    min-width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.level-name[b-2n5ifpy0q9] {
    font-size: 0.875rem;
    color: var(--bs-body-color);
}

.level-bar-container[b-2n5ifpy0q9] {
    height: 8px;
    background: var(--bs-tertiary-bg);
    border-radius: 4px;
    overflow: hidden;
}

.level-bar[b-2n5ifpy0q9] {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.level-count[b-2n5ifpy0q9] {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-body-color);
    text-align: right;
}

/* Hourly Heatmap */
.hourly-heatmap[b-2n5ifpy0q9] {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 4px;
}

.hour-cell[b-2n5ifpy0q9] {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--bs-border-color);
    transition: transform 0.2s;
    cursor: default;
    min-height: 32px;
}

.hour-cell:hover[b-2n5ifpy0q9] {
    transform: scale(1.1);
    z-index: 1;
}

/* Section Cards */
.section-card[b-2n5ifpy0q9] {
    background: var(--bs-body-bg);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.section-header[b-2n5ifpy0q9] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3[b-2n5ifpy0q9] {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin: 0;
}

/* Dictionaries Progress */
.dictionaries-progress[b-2n5ifpy0q9] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dictionary-row[b-2n5ifpy0q9] {
    display: grid;
    grid-template-columns: 200px 1fr 100px;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.dictionary-row:last-child[b-2n5ifpy0q9] {
    border-bottom: none;
}

.dictionary-info[b-2n5ifpy0q9] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dictionary-name[b-2n5ifpy0q9] {
    font-weight: 600;
    color: var(--bs-body-color);
}

.dictionary-stats[b-2n5ifpy0q9] {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.progress-bar-container[b-2n5ifpy0q9] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-bar-container .progress[b-2n5ifpy0q9] {
    flex: 1;
    height: 8px;
}

.progress-percent[b-2n5ifpy0q9] {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-body-color);
    min-width: 40px;
}

.dictionary-accuracy[b-2n5ifpy0q9] {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
    text-align: right;
}

.dictionary-retention[b-2n5ifpy0q9] {
    font-size: 0.8rem;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--bs-secondary-color);
}

/* Difficult Words */
.difficult-words-list[b-2n5ifpy0q9] {
    display: flex;
    flex-direction: column;
}

.difficult-word-row[b-2n5ifpy0q9] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.difficult-word-row:last-child[b-2n5ifpy0q9] {
    border-bottom: none;
}

.word-main[b-2n5ifpy0q9] {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.word-original[b-2n5ifpy0q9] {
    font-weight: 600;
    color: var(--bs-body-color);
}

.word-translation[b-2n5ifpy0q9] {
    color: var(--bs-secondary-color);
}

.word-stats[b-2n5ifpy0q9] {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.word-dictionary[b-2n5ifpy0q9] {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    padding: 0.25rem 0.5rem;
    background: var(--bs-tertiary-bg);
    border-radius: 4px;
}

.word-error-rate[b-2n5ifpy0q9] {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Achievements */
.achievements-count[b-2n5ifpy0q9] {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

.achievements-grid[b-2n5ifpy0q9] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.achievement-card[b-2n5ifpy0q9] {
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    gap: 0.75rem;
    transition: all 0.2s;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}

.achievement-card.locked[b-2n5ifpy0q9] {
    opacity: 0.5;
    filter: grayscale(0.8);
}

.achievement-card.unlocked[b-2n5ifpy0q9] {
    background: white;
    border-width: 2px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
    opacity: 1;
    filter: none;
}

.achievement-card.unlocked.rarity-common[b-2n5ifpy0q9] {
    border-color: #6B7280;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.06), white);
}

.achievement-card.unlocked.rarity-uncommon[b-2n5ifpy0q9] {
    border-color: #10B981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), white);
    box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.15);
}

.achievement-card.unlocked.rarity-rare[b-2n5ifpy0q9] {
    border-color: #3B82F6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), white);
    box-shadow: 0 4px 14px -2px rgba(59, 130, 246, 0.15);
}

.achievement-card.unlocked.rarity-epic[b-2n5ifpy0q9] {
    border-color: #8B5CF6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), white);
    box-shadow: 0 4px 14px -2px rgba(139, 92, 246, 0.2);
}

.achievement-card.unlocked.rarity-legendary[b-2n5ifpy0q9] {
    border-color: #F59E0B;
    border-width: 2px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(253, 230, 138, 0.15), white);
    box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.3);
    animation: legendaryGlow-b-2n5ifpy0q9 3s ease-in-out infinite alternate;
}

@keyframes legendaryGlow-b-2n5ifpy0q9 {
    0% { box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.2); }
    100% { box-shadow: 0 4px 25px -2px rgba(245, 158, 11, 0.4); }
}

.achievement-card.locked.rarity-common[b-2n5ifpy0q9] { border-color: #9CA3AF; }
.achievement-card.locked.rarity-uncommon[b-2n5ifpy0q9] { border-color: #9CA3AF; }
.achievement-card.locked.rarity-rare[b-2n5ifpy0q9] { border-color: #9CA3AF; }
.achievement-card.locked.rarity-epic[b-2n5ifpy0q9] { border-color: #9CA3AF; }
.achievement-card.locked.rarity-legendary[b-2n5ifpy0q9] { border-color: #9CA3AF; }

.achievement-icon[b-2n5ifpy0q9] {
    font-size: 2rem;
    flex-shrink: 0;
    position: relative;
}

.achievement-check[b-2n5ifpy0q9] {
    position: absolute;
    bottom: -4px;
    right: -6px;
    font-size: 0.875rem;
    color: #10B981;
    background: white;
    border-radius: 50%;
    line-height: 1;
}

.achievement-card.unlocked .achievement-title[b-2n5ifpy0q9] {
    color: var(--bs-body-color);
    font-weight: 700;
}

.achievement-content[b-2n5ifpy0q9] {
    flex: 1;
    min-width: 0;
}

.achievement-title[b-2n5ifpy0q9] {
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 0.25rem;
}

.achievement-desc[b-2n5ifpy0q9] {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0.5rem;
}

.achievement-progress[b-2n5ifpy0q9] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievement-progress .progress[b-2n5ifpy0q9] {
    flex: 1;
}

.progress-text[b-2n5ifpy0q9] {
    font-size: 0.625rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}

.achievement-date[b-2n5ifpy0q9] {
    font-size: 0.625rem;
    color: var(--bs-secondary-color);
}

/* Empty State */
.empty-state[b-2n5ifpy0q9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

/* Heatmap — GitHub-style (§5.3 LEARNING_IMPROVEMENTS) */
.heatmap-container[b-2n5ifpy0q9] {
    overflow-x: auto;
    padding: 0.5rem 0;
}

.heatmap-graph[b-2n5ifpy0q9] {
    display: grid;
    grid-template-rows: auto repeat(7, 1fr);
    gap: 3px;
    width: 100%;
}

.heatmap-corner[b-2n5ifpy0q9] {
    /* empty top-left cell */
}

.heatmap-month-label[b-2n5ifpy0q9] {
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1;
    padding-bottom: 2px;
}

.heatmap-day-label[b-2n5ifpy0q9] {
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4px;
    white-space: nowrap;
}

.heatmap-cell[b-2n5ifpy0q9] {
    aspect-ratio: 1;
    border-radius: 2px;
    min-width: 0;
}

.heatmap-empty[b-2n5ifpy0q9] {
    background: transparent;
}

.heatmap-level-0[b-2n5ifpy0q9] { background: var(--bs-tertiary-bg, #ebedf0); }
.heatmap-level-1[b-2n5ifpy0q9] { background: #9be9a8; }
.heatmap-level-2[b-2n5ifpy0q9] { background: #40c463; }
.heatmap-level-3[b-2n5ifpy0q9] { background: #30a14e; }
.heatmap-level-4[b-2n5ifpy0q9] { background: #216e39; }

.heatmap-legend[b-2n5ifpy0q9] {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.heatmap-legend .heatmap-cell[b-2n5ifpy0q9] {
    width: 12px;
    height: 12px;
    aspect-ratio: auto;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-cards[b-2n5ifpy0q9] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .charts-grid[b-2n5ifpy0q9] {
        grid-template-columns: 1fr;
    }

    .dictionary-row[b-2n5ifpy0q9] {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .dictionary-accuracy[b-2n5ifpy0q9] {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .statistics-page[b-2n5ifpy0q9] {
        padding: 1rem;
    }
    
    .stats-cards[b-2n5ifpy0q9] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-header[b-2n5ifpy0q9] {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .hourly-heatmap[b-2n5ifpy0q9] {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .difficult-word-row[b-2n5ifpy0q9] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .word-stats[b-2n5ifpy0q9] {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .stats-cards[b-2n5ifpy0q9] {
        grid-template-columns: 1fr;
    }

    .achievements-grid[b-2n5ifpy0q9] {
        grid-template-columns: 1fr;
    }

    .hourly-heatmap[b-2n5ifpy0q9] {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* === Аналитика §9 LEARNING_IMPROVEMENTS === */

/* §9.3 Week comparison */
.week-comparison-grid[b-2n5ifpy0q9] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.week-metric[b-2n5ifpy0q9] {
    text-align: center;
    padding: 0.75rem;
    background: var(--gray-50, #f8fafc);
    border-radius: 12px;
}

.week-metric-label[b-2n5ifpy0q9] {
    font-size: 0.75rem;
    color: var(--gray-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.week-metric-values[b-2n5ifpy0q9] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.week-current[b-2n5ifpy0q9] {
    font-weight: 700;
    color: var(--primary-600, #4f46e5);
}

.week-vs[b-2n5ifpy0q9] {
    color: var(--gray-400, #9ca3af);
    font-size: 0.75rem;
}

.week-previous[b-2n5ifpy0q9] {
    color: var(--gray-500, #6b7280);
}

.week-diff[b-2n5ifpy0q9] {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.week-diff.positive[b-2n5ifpy0q9] {
    color: var(--accent-green, #10b981);
}

.week-diff.negative[b-2n5ifpy0q9] {
    color: var(--accent-red, #ef4444);
}

/* §9.2 Optimal time */
.optimal-time-content[b-2n5ifpy0q9] {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.optimal-best[b-2n5ifpy0q9],
.optimal-worst[b-2n5ifpy0q9] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 200px;
    padding: 0.85rem 1rem;
    border-radius: 10px;
}

.optimal-best[b-2n5ifpy0q9] {
    background: rgba(16, 185, 129, 0.08);
}

.optimal-worst[b-2n5ifpy0q9] {
    background: rgba(245, 158, 11, 0.08);
}

.optimal-best i[b-2n5ifpy0q9],
.optimal-worst i[b-2n5ifpy0q9] {
    font-size: 1.25rem;
    margin-top: 2px;
}

/* §9.1 Forecast */
.forecast-list[b-2n5ifpy0q9] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.forecast-row[b-2n5ifpy0q9] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: var(--gray-50, #f8fafc);
}

.forecast-info[b-2n5ifpy0q9] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.forecast-name[b-2n5ifpy0q9] {
    font-weight: 600;
    font-size: 0.9rem;
}

.forecast-note[b-2n5ifpy0q9] {
    padding: 0.5rem 0.85rem;
    background: var(--gray-50, #f8fafc);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .week-comparison-grid[b-2n5ifpy0q9] {
        grid-template-columns: 1fr;
    }

    .optimal-time-content[b-2n5ifpy0q9] {
        flex-direction: column;
    }
}
/* _content/LearningTrainerWeb/Components/Pages/Training.razor.rz.scp.css */
/* Training Page Styles */

.training-container[b-47t0oph07p] {
    min-height: calc(100vh - 100px);
    padding: 2rem;
    outline: none;
}

.training-container:focus[b-47t0oph07p] {
    outline: none;
}

/* Guest State */
.training-guest[b-47t0oph07p] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.guest-hero[b-47t0oph07p] {
    text-align: center;
    max-width: 500px;
}

.guest-icon[b-47t0oph07p] {
    font-size: 5rem;
    color: var(--bs-primary);
    margin-bottom: 1.5rem;
}

.guest-hero h1[b-47t0oph07p] {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

.guest-hero p[b-47t0oph07p] {
    color: var(--bs-secondary);
    margin-bottom: 2rem;
}

.guest-actions[b-47t0oph07p] {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Loading State */
.training-loading[b-47t0oph07p] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 1rem;
}

.training-loading p[b-47t0oph07p] {
    color: var(--bs-secondary);
}

/* Empty State */
.training-empty[b-47t0oph07p] {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.empty-icon[b-47t0oph07p] {
    font-size: 5rem;
    color: var(--bs-secondary);
    margin-bottom: 1.5rem;
}

.training-empty h2[b-47t0oph07p] {
    margin-bottom: 1rem;
    color: var(--bs-body-color);
}

.training-empty p[b-47t0oph07p] {
    color: var(--bs-secondary);
    margin-bottom: 2rem;
}

.empty-actions[b-47t0oph07p] {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Daily Plan */
.daily-plan[b-47t0oph07p] {
    max-width: 900px;
    margin: 0 auto;
}

.plan-header[b-47t0oph07p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.plan-header h1[b-47t0oph07p] {
    font-size: 1.75rem;
    color: var(--bs-body-color);
    margin: 0;
}

.streak-badge[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
}

.streak-badge i[b-47t0oph07p] {
    font-size: 1.25rem;
}

/* Stats Cards */
.plan-stats[b-47t0oph07p] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card[b-47t0oph07p] {
    background: var(--surface-card, white);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-card, 0 2px 8px rgba(0,0,0,0.08));
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover[b-47t0oph07p] {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.stat-icon[b-47t0oph07p] {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-review .stat-icon[b-47t0oph07p] {
    background: rgba(13, 110, 253, 0.1);
    color: var(--bs-primary);
}

.stat-new .stat-icon[b-47t0oph07p] {
    background: rgba(25, 135, 84, 0.1);
    color: var(--bs-success);
}

.stat-difficult .stat-icon[b-47t0oph07p] {
    background: rgba(255, 193, 7, 0.15);
    color: var(--bs-warning);
}

.stat-completed .stat-icon[b-47t0oph07p] {
    background: rgba(108, 117, 125, 0.1);
    color: var(--bs-secondary);
}

.stat-info[b-47t0oph07p] {
    display: flex;
    flex-direction: column;
}

.stat-value[b-47t0oph07p] {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, var(--bs-body-color));
    line-height: 1.2;
}

.stat-label[b-47t0oph07p] {
    font-size: 0.85rem;
    color: var(--bs-secondary);
}

/* Training Modes */
.training-modes[b-47t0oph07p] {
    margin-bottom: 2rem;
}

.training-modes h3[b-47t0oph07p] {
    font-size: 1.1rem;
    color: var(--bs-body-color);
    margin-bottom: 1rem;
}

.modes-grid[b-47t0oph07p] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.mode-card[b-47t0oph07p] {
    background: var(--surface-card, white);
    border: 2px solid var(--border-default, #e9ecef);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-card:hover:not(:disabled)[b-47t0oph07p] {
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.15);
}

.mode-card:disabled[b-47t0oph07p] {
    opacity: 0.5;
    cursor: not-allowed;
}

.mode-icon[b-47t0oph07p] {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0b5ed7 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.mode-difficult .mode-icon[b-47t0oph07p] {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}

.mode-speed .mode-icon[b-47t0oph07p] {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.mode-grammar .mode-icon[b-47t0oph07p] {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
}

/* Speed Round UI */
.speed-timer[b-47t0oph07p] {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bs-primary);
    animation: pulse-b-47t0oph07p 1s infinite;
}

.speed-timer-danger[b-47t0oph07p] {
    color: var(--bs-danger) !important;
    animation: pulse-b-47t0oph07p 0.5s infinite;
}

.speed-score[b-47t0oph07p] {
    font-weight: 700;
    font-size: 1rem;
}

@keyframes pulse-b-47t0oph07p {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.mode-card h4[b-47t0oph07p] {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--bs-body-color);
}

.mode-card p[b-47t0oph07p] {
    margin: 0;
    font-size: 0.85rem;
    color: var(--bs-secondary);
}

/* Training Settings */
.training-settings[b-47t0oph07p] {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.setting-group[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-label[b-47t0oph07p] {
    font-size: 0.9rem;
    color: var(--bs-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.setting-options[b-47t0oph07p] {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

/* Filter dropdown */
.setting-group--dropdown[b-47t0oph07p] {
    align-items: center;
}

.filter-dropdown[b-47t0oph07p] {
    position: relative;
}

.filter-dropdown-toggle[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border: 2px solid var(--border-default, #e9ecef);
    border-radius: 2rem;
    background: var(--surface-card, white);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bs-body-color);
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 100px;
    max-width: 220px;
}

.filter-dropdown-toggle:hover[b-47t0oph07p] {
    border-color: var(--bs-primary);
}

.filter-dropdown-value[b-47t0oph07p] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: left;
}

.filter-dropdown-arrow[b-47t0oph07p] {
    font-size: 0.7rem;
    color: var(--bs-secondary);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.filter-dropdown-arrow.open[b-47t0oph07p] {
    transform: rotate(180deg);
}

.filter-dropdown-backdrop[b-47t0oph07p] {
    position: fixed;
    inset: 0;
    z-index: 1059;
}

.filter-dropdown-menu[b-47t0oph07p] {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1060;
    min-width: 220px;
    max-width: 320px;
    background: var(--surface-card, white);
    border: 1px solid var(--border-default, #e9ecef);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    animation: dropdownSlide-b-47t0oph07p 0.15s ease-out;
}

@keyframes dropdownSlide-b-47t0oph07p {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.filter-dropdown-search[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-default, #e9ecef);
}

.filter-dropdown-search i[b-47t0oph07p] {
    color: var(--bs-secondary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.filter-dropdown-search input[b-47t0oph07p] {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.85rem;
    width: 100%;
    color: var(--bs-body-color);
}

.filter-dropdown-items[b-47t0oph07p] {
    max-height: 240px;
    overflow-y: auto;
    padding: 0.35rem;
}

.filter-dropdown-item[b-47t0oph07p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.65rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--bs-body-color);
    text-align: left;
    transition: background 0.12s;
}

.filter-dropdown-item:hover[b-47t0oph07p] {
    background: var(--bs-primary-bg-subtle, rgba(99,102,241,0.08));
}

.filter-dropdown-item.active[b-47t0oph07p] {
    background: var(--bs-primary);
    color: white;
}

.filter-dropdown-item.active .filter-dropdown-count[b-47t0oph07p] {
    color: rgba(255,255,255,0.75);
}

.filter-dropdown-count[b-47t0oph07p] {
    font-size: 0.75rem;
    color: var(--bs-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-dropdown-empty[b-47t0oph07p] {
    padding: 1rem;
    text-align: center;
    color: var(--bs-secondary);
    font-size: 0.85rem;
}

.setting-pill[b-47t0oph07p] {
    padding: 0.4rem 1rem;
    border: 2px solid var(--border-default, #e9ecef);
    border-radius: 2rem;
    background: var(--surface-card, white);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted, var(--bs-secondary));
    transition: all 0.2s;
}

.setting-pill:hover[b-47t0oph07p] {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.setting-pill.active[b-47t0oph07p] {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

/* Daily Challenge (§5.2 LEARNING_IMPROVEMENTS) */
.daily-challenge-card[b-47t0oph07p] {
    background: var(--surface-card, white);
    border: 1px solid var(--border-default, #bae6fd);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.daily-challenge-card.challenge-completed[b-47t0oph07p] {
    background: var(--accent-green-light, rgba(16, 185, 129, 0.08));
    border-color: var(--accent-green, #bbf7d0);
}

.challenge-header[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.challenge-icon[b-47t0oph07p] {
    font-size: 1.5rem;
}

.challenge-info[b-47t0oph07p] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.challenge-reward[b-47t0oph07p] {
    font-weight: 600;
    color: #D97706;
    font-size: 0.85rem;
}

.challenge-status[b-47t0oph07p] {
    margin-top: 0.25rem;
}

/* Quick Session (§7.3 LEARNING_IMPROVEMENTS) */
.btn-quick-session[b-47t0oph07p] {
    width: 100%;
    padding: 0.6rem;
    border-radius: 10px;
    font-weight: 500;
    margin-bottom: 1rem;
    border-style: dashed;
}

/* Quick Start */
.quick-start[b-47t0oph07p] {
    text-align: center;
    padding: 2rem 0;
}

.btn-xl[b-47t0oph07p] {
    padding: 1rem 3rem;
    font-size: 1.25rem;
    border-radius: 50px;
}

/* Training Session */
.training-session[b-47t0oph07p] {
    max-width: 700px;
    margin: 0 auto;
}

.session-progress[b-47t0oph07p] {
    margin-bottom: 2rem;
}

.progress-info[b-47t0oph07p] {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--bs-secondary);
    font-size: 0.9rem;
}

.correct-count[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Word Mastery Indicator (#10 LEARNING_IMPROVEMENTS) */
.word-mastery-indicator[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.mastery-stars[b-47t0oph07p] {
    display: flex;
    gap: 2px;
    font-size: 0.6rem;
}

.mastery-star-gray[b-47t0oph07p] { color: #9CA3AF; }
.mastery-star-red[b-47t0oph07p] { color: #EF4444; }
.mastery-star-orange[b-47t0oph07p] { color: #F59E0B; }
.mastery-star-yellow[b-47t0oph07p] { color: #EAB308; }
.mastery-star-green[b-47t0oph07p] { color: #22C55E; }
.mastery-star-emerald[b-47t0oph07p] { color: #10B981; }
.mastery-star-empty[b-47t0oph07p] { color: #E5E7EB; }

.mastery-rate[b-47t0oph07p] {
    color: var(--bs-secondary);
    font-weight: 500;
    font-size: 0.8rem;
}

.mastery-rate.new-word[b-47t0oph07p] {
    color: var(--bs-primary);
    font-style: italic;
}

/* Flashcard */
.flashcard[b-47t0oph07p] {
    background: var(--surface-card, white);
    border-radius: 16px;
    box-shadow: var(--shadow-card, 0 4px 24px rgba(0,0,0,0.1));
    padding: 2rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.card-front[b-47t0oph07p] {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.word-dictionary[b-47t0oph07p] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface-body, #f8f9fa);
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted, var(--bs-secondary));
    margin-bottom: 1.5rem;
}

.word-main[b-47t0oph07p] {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-body-color);
    margin-bottom: 0.5rem;
}

.word-transcription[b-47t0oph07p] {
    font-size: 1.1rem;
    color: var(--bs-secondary);
    font-style: italic;
}

/* Revealed Card */
.flashcard.revealed .card-front[b-47t0oph07p] {
    border-bottom: 1px solid var(--border-default, #e9ecef);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-back[b-47t0oph07p] {
    margin-bottom: 2rem;
}

.translation[b-47t0oph07p] {
    font-size: 2rem;
    font-weight: 600;
    color: var(--bs-success);
    margin-bottom: 1rem;
}

.example[b-47t0oph07p] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--bs-secondary);
    font-style: italic;
}

.btn-tts-sm[b-47t0oph07p] {
    background: none;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--bs-secondary);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-tts-sm:hover[b-47t0oph07p] {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.speak-btn[b-47t0oph07p] {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.speak-btn:hover[b-47t0oph07p] {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

/* TTS Controls */
.audio-group[b-47t0oph07p] {
    display: flex;
    align-items: center;
    background: var(--surface-body, #f8f9fa);
    border-radius: 12px;
    padding: 4px;
    gap: 2px;
    width: fit-content;
    border: 1px solid var(--border-default, #dee2e6);
    height: 40px;
    margin: 0.5rem auto 0;
}

.btn-tts[b-47t0oph07p] {
    background: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    transition: transform 0.1s;
    line-height: 1;
    height: 100%;
}

.btn-tts:active[b-47t0oph07p] {
    transform: scale(0.95);
}

.volume-wrapper[b-47t0oph07p] {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-volume-toggle[b-47t0oph07p] {
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 8px;
    cursor: pointer;
    line-height: 1;
    height: 100%;
    aspect-ratio: 1 / 1;
}

.volume-popover[b-47t0oph07p] {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-elevated, white);
    padding: 16px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 100;
}

.volume-popover input[type="range"][b-47t0oph07p] {
    writing-mode: vertical-lr;
    direction: rtl;
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 100px;
    background: transparent;
    outline: none;
    cursor: pointer;
    margin: 0;

}

.volume-popover input[type="range"][b-47t0oph07p]::-webkit-slider-runnable-track {
    width: 6px;
    border-radius: 3px;
    background: #e9ecef;
}

.volume-popover input[type="range"][b-47t0oph07p]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bs-primary);
    margin-left: -6px; 
    margin-top: 0; 
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.volume-popover input[type="range"][b-47t0oph07p]::-moz-range-track {
    width: 6px;
    border-radius: 3px;
    background: #e9ecef;
}

.volume-popover input[type="range"][b-47t0oph07p]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bs-primary, #0d6efd);
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
}


.tts-controls[b-47t0oph07p] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.volume-toggle-btn[b-47t0oph07p] {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
    opacity: 0.7;
}

.volume-toggle-btn:hover[b-47t0oph07p] {
    opacity: 1;
}

.volume-slider-container[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 20px;
    padding: 4px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.volume-slider[b-47t0oph07p] {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 6px;
    border-radius: 3px;
    background: var(--bs-secondary-bg, #e9ecef);
    outline: none;
    cursor: pointer;
}

.volume-slider[b-47t0oph07p]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bs-primary, #0d6efd);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s;
}

.volume-slider[b-47t0oph07p]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider[b-47t0oph07p]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bs-primary, #0d6efd);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.volume-value[b-47t0oph07p] {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-secondary);
    min-width: 32px;
    text-align: center;
}

/* Answer Buttons */
.answer-buttons[b-47t0oph07p] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.btn-answer[b-47t0oph07p] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0.5rem;
    border-radius: 12px;
    border: 2px solid;
    transition: all 0.2s;
}

.btn-answer i[b-47t0oph07p] {
    font-size: 1.5rem;
}

.btn-answer span[b-47t0oph07p] {
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-answer small[b-47t0oph07p] {
    font-size: 0.75rem;
    opacity: 0.7;
}

.btn-again[b-47t0oph07p] {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.btn-again:hover[b-47t0oph07p] {
    background: #dc3545;
    color: white;
}

.btn-hard[b-47t0oph07p] {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #b8860b;
}

.btn-hard:hover[b-47t0oph07p] {
    background: #ffc107;
    color: #000;
}

.btn-good[b-47t0oph07p] {
    background: rgba(25, 135, 84, 0.1);
    border-color: #198754;
    color: #198754;
}

.btn-good:hover[b-47t0oph07p] {
    background: #198754;
    color: white;
}

.btn-easy[b-47t0oph07p] {
    background: rgba(13, 110, 253, 0.1);
    border-color: #0d6efd;
    color: #0d6efd;
}

.btn-easy:hover[b-47t0oph07p] {
    background: #0d6efd;
    color: white;
}

/* Session Results */
.session-results[b-47t0oph07p] {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--surface-card, white);
    border-radius: 16px;
    box-shadow: var(--shadow-card, 0 4px 24px rgba(0,0,0,0.1));
}

/* Pomodoro Break (#19 LEARNING_IMPROVEMENTS) */
.pomodoro-break[b-47t0oph07p] {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--accent-blue-light, rgba(59, 130, 246, 0.08));
    border: 1px solid var(--border-default, transparent);
    border-radius: 16px;
    box-shadow: var(--shadow-card, 0 4px 24px rgba(0,0,0,0.08));
    max-width: 500px;
    margin: 2rem auto;
}

.pomodoro-icon[b-47t0oph07p] {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.pomodoro-break h2[b-47t0oph07p] {
    color: var(--accent-blue, #0369a1);
    margin-bottom: 0.5rem;
}

.pomodoro-break p[b-47t0oph07p] {
    color: var(--bs-secondary);
    margin-bottom: 1.5rem;
}

.pomodoro-stats[b-47t0oph07p] {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-primary, var(--bs-body-color));
}

.pomodoro-actions[b-47t0oph07p] {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.results-icon[b-47t0oph07p] {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.session-results h2[b-47t0oph07p] {
    margin-bottom: 2rem;
    color: var(--bs-body-color);
}

.results-stats[b-47t0oph07p] {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.result-stat[b-47t0oph07p] {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-value[b-47t0oph07p] {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-body-color);
}

.result-correct .result-value[b-47t0oph07p] {
    color: var(--bs-success);
}

.result-wrong .result-value[b-47t0oph07p] {
    color: var(--bs-danger);
}

.result-label[b-47t0oph07p] {
    font-size: 0.9rem;
    color: var(--bs-secondary);
}

.results-accuracy[b-47t0oph07p] {
    margin-bottom: 2rem;
}

.accuracy-value[b-47t0oph07p] {
    font-size: 4rem;
    font-weight: 700;
    color: var(--bs-primary);
}

.accuracy-label[b-47t0oph07p] {
    color: var(--bs-secondary);
}

.results-actions[b-47t0oph07p] {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Difficult Words Section */
.difficult-words-section[b-47t0oph07p] {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(220, 53, 69, 0.05);
    border-radius: 12px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.difficult-words-list[b-47t0oph07p] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
}

/* TTS Browser Tip */
.tts-browser-tip[b-47t0oph07p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--accent-blue-light, rgba(59, 130, 246, 0.08));
    border: 1px solid var(--border-default, #c5ddf0);
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-muted, #3a5a7c);
    animation: ttsTipFadeIn-b-47t0oph07p 0.4s ease;
}

@keyframes ttsTipFadeIn-b-47t0oph07p {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tts-browser-tip-content[b-47t0oph07p] {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.tts-browser-tip-content i[b-47t0oph07p] {
    font-size: 1.1rem;
    color: #0078d4;
    flex-shrink: 0;
}

.tts-browser-tip-close[b-47t0oph07p] {
    background: none;
    border: none;
    color: #8aa4be;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.tts-browser-tip-close:hover[b-47t0oph07p] {
    background: rgba(0, 0, 0, 0.06);
    color: #3a5a7c;
}

/* Responsive */
@media (max-width: 768px) {
    .training-container[b-47t0oph07p] {
        padding: 1rem;
    }

    .plan-header[b-47t0oph07p] {
        flex-direction: column;
        text-align: center;
    }

    .plan-stats[b-47t0oph07p] {
        grid-template-columns: repeat(2, 1fr);
    }

    .modes-grid[b-47t0oph07p] {
        grid-template-columns: repeat(2, 1fr);
    }

    .answer-buttons[b-47t0oph07p] {
        grid-template-columns: repeat(2, 1fr);
    }

    .word-main[b-47t0oph07p] {
        font-size: 1.75rem;
    }

    .translation[b-47t0oph07p] {
        font-size: 1.5rem;
    }

    .results-stats[b-47t0oph07p] {
        gap: 1.5rem;
    }

    .result-value[b-47t0oph07p] {
        font-size: 1.75rem;
    }

    .accuracy-value[b-47t0oph07p] {
        font-size: 2.5rem;
    }

    .exercise-types[b-47t0oph07p] {
        flex-direction: column;
    }

    .mcq-options[b-47t0oph07p] {
        grid-template-columns: 1fr;
    }

    .flashcard[b-47t0oph07p] {
        padding: 1.5rem;
        min-height: 300px;
    }

    .mcq-card[b-47t0oph07p],
    .typing-card[b-47t0oph07p] {
        padding: 1.25rem;
    }

    .training-settings[b-47t0oph07p] {
        flex-direction: column;
        gap: 1rem;
    }

    .setting-group[b-47t0oph07p] {
        flex-wrap: wrap;
    }

    .keyboard-hints[b-47t0oph07p] {
        display: none;
    }

    .session-results[b-47t0oph07p] {
        padding: 2rem 1rem;
    }

    .quick-start .btn-xl[b-47t0oph07p] {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 575px) {
    .training-container[b-47t0oph07p] {
        padding: 0.75rem;
    }

    .plan-stats[b-47t0oph07p] {
        grid-template-columns: 1fr;
    }

    .stat-card[b-47t0oph07p] {
        padding: 1rem;
    }

    .modes-grid[b-47t0oph07p] {
        grid-template-columns: 1fr;
    }

    .mode-card[b-47t0oph07p] {
        padding: 1rem;
    }

    .mode-icon[b-47t0oph07p] {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .flashcard[b-47t0oph07p] {
        min-height: 250px;
        padding: 1rem;
        border-radius: 12px;
    }

    .word-main[b-47t0oph07p] {
        font-size: 1.5rem;
    }

    .word-transcription[b-47t0oph07p] {
        font-size: 0.95rem;
    }

    .translation[b-47t0oph07p] {
        font-size: 1.25rem;
    }

    .answer-buttons[b-47t0oph07p] {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .btn-answer[b-47t0oph07p] {
        padding: 0.75rem 0.5rem;
    }

    .btn-answer i[b-47t0oph07p] {
        font-size: 1.25rem;
    }

    .btn-answer span[b-47t0oph07p] {
        font-size: 0.8rem;
    }

    .btn-answer small[b-47t0oph07p] {
        font-size: 0.65rem;
    }

    .mcq-option[b-47t0oph07p] {
        padding: 1rem;
    }

    .mcq-option .option-text[b-47t0oph07p] {
        font-size: 1rem;
    }

    .results-stats[b-47t0oph07p] {
        flex-direction: column;
        gap: 1rem;
    }

    .accuracy-value[b-47t0oph07p] {
        font-size: 2rem;
    }

    .plan-header h1[b-47t0oph07p] {
        font-size: 1.5rem;
    }

    .training-modes h3[b-47t0oph07p] {
        font-size: 1rem;
    }

    .example[b-47t0oph07p] {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.9rem;
    }

    .tts-controls[b-47t0oph07p] {
        gap: 0.25rem;
    }
}

/* Exercise Type Selector */
.exercise-types-grid[b-47t0oph07p] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.ex-card[b-47t0oph07p] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1.1rem 0.5rem 0.9rem;
    background: var(--surface-card, white);
    border: 2px solid var(--border-default, #e9ecef);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    text-align: center;
}

.ex-card__emoji[b-47t0oph07p] {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}

.ex-card__name[b-47t0oph07p] {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gray-800, #1f2937);
    letter-spacing: -0.01em;
}

.ex-card__desc[b-47t0oph07p] {
    font-size: 0.7rem;
    color: var(--gray-400, #9ca3af);
    line-height: 1.3;
    max-width: 110px;
}

.ex-card__accent[b-47t0oph07p] {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.ex-card__accent--blue[b-47t0oph07p]   { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.ex-card__accent--green[b-47t0oph07p]  { background: linear-gradient(90deg, #10b981, #34d399); }
.ex-card__accent--purple[b-47t0oph07p] { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.ex-card__accent--orange[b-47t0oph07p] { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ex-card__accent--pink[b-47t0oph07p]   { background: linear-gradient(90deg, #ec4899, #f472b6); }
.ex-card__accent--teal[b-47t0oph07p]   { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }
.ex-card__accent--rainbow[b-47t0oph07p] {
    background: linear-gradient(90deg, #f43f5e, #f59e0b, #10b981, #3b82f6, #8b5cf6);
}

.ex-card:hover[b-47t0oph07p] {
    border-color: #c7d2fe;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

.ex-card:hover .ex-card__emoji[b-47t0oph07p] {
    transform: scale(1.2);
}

.ex-card:hover .ex-card__accent[b-47t0oph07p] {
    width: 60%;
}

.ex-card:active[b-47t0oph07p] {
    transform: translateY(-1px);
}

.ex-card--active[b-47t0oph07p] {
    border-color: var(--primary-500, #6366f1);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, var(--surface-card, white) 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15), inset 0 0 0 1px rgba(99, 102, 241, 0.08);
}

.ex-card--active .ex-card__accent[b-47t0oph07p] {
    width: 80%;
}

.ex-card--active .ex-card__emoji[b-47t0oph07p] {
    transform: scale(1.1);
}

.ex-card--rainbow[b-47t0oph07p] {
    border-style: dashed;
}

.ex-card--rainbow.ex-card--active[b-47t0oph07p] {
    border-style: solid;
    background: linear-gradient(135deg, rgba(244,63,94,0.04), rgba(59,130,246,0.04), rgba(139,92,246,0.04));
}

/* Settings panel */
.training-settings-panel[b-47t0oph07p] {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    background: var(--gray-50, #f9fafb);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.training-settings-panel .setting-group[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.training-settings-panel .setting-label[b-47t0oph07p] {
    font-size: 0.85rem;
    color: var(--gray-500, #6b7280);
    font-weight: 600;
    white-space: nowrap;
    min-width: 140px;
}

.training-settings-panel .setting-options[b-47t0oph07p] {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

@@media (max-width: 575px) {
    .exercise-types-grid[b-47t0oph07p] {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .ex-card[b-47t0oph07p] {
        padding: 0.8rem 0.4rem 0.7rem;
        border-radius: 12px;
    }

    .ex-card__emoji[b-47t0oph07p] {
        font-size: 1.5rem;
    }

    .ex-card__name[b-47t0oph07p] {
        font-size: 0.75rem;
    }

    .ex-card__desc[b-47t0oph07p] {
        display: none;
    }

    .training-settings-panel .setting-group[b-47t0oph07p] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .training-settings-panel .setting-label[b-47t0oph07p] {
        min-width: unset;
    }
}

/* MCQ Card */
.mcq-card[b-47t0oph07p] {
    background: var(--surface-card, white);
    border-radius: 16px;
    box-shadow: var(--shadow-card, 0 4px 24px rgba(0,0,0,0.1));
    padding: 2rem;
    text-align: center;
}

.mcq-question[b-47t0oph07p] {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-default, #e9ecef);
}

.mcq-options[b-47t0oph07p] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mcq-option[b-47t0oph07p] {
    padding: 1.25rem 1rem;
    background: var(--surface-body, #f8f9fa);
    border: 2px solid var(--border-default, #e9ecef);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.mcq-option:hover:not(:disabled)[b-47t0oph07p] {
    border-color: var(--bs-primary);
    background: rgba(13, 110, 253, 0.05);
}

.mcq-option.selected[b-47t0oph07p] {
    border-color: var(--bs-primary);
    background: rgba(13, 110, 253, 0.1);
}

.mcq-option.correct[b-47t0oph07p] {
    border-color: var(--bs-success);
    background: rgba(25, 135, 84, 0.1);
    color: var(--bs-success);
}

.mcq-option.incorrect[b-47t0oph07p] {
    border-color: var(--bs-danger);
    background: rgba(220, 53, 69, 0.1);
    color: var(--bs-danger);
}

.mcq-option:disabled[b-47t0oph07p] {
    cursor: not-allowed;
}

.mcq-option .option-text[b-47t0oph07p] {
    font-weight: 500;
    font-size: 1.1rem;
}

.mcq-option i[b-47t0oph07p] {
    font-size: 1.25rem;
}

.mcq-feedback[b-47t0oph07p] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
}

.mcq-feedback.success[b-47t0oph07p] {
    background: rgba(25, 135, 84, 0.1);
    color: var(--bs-success);
}

.mcq-feedback.error[b-47t0oph07p] {
    background: rgba(220, 53, 69, 0.1);
    color: var(--bs-danger);
}

.mcq-feedback i[b-47t0oph07p] {
    font-size: 1.5rem;
}

/* Typing Card */
.typing-card[b-47t0oph07p] {
    background: var(--surface-card, white);
    border-radius: 16px;
    box-shadow: var(--shadow-card, 0 4px 24px rgba(0,0,0,0.1));
    padding: 2rem;
    text-align: center;
}

.typing-question[b-47t0oph07p] {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-default, #e9ecef);
}

.typing-input[b-47t0oph07p] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.typing-input input[b-47t0oph07p] {
    text-align: center;
    font-size: 1.25rem;
    padding: 1rem;
}

.typing-input input[b-47t0oph07p]::placeholder {
    color: #adb5bd;
}

.typing-feedback[b-47t0oph07p] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    max-width: 400px;
    margin: 0 auto;
}

.typing-feedback.success[b-47t0oph07p] {
    background: rgba(25, 135, 84, 0.1);
    color: var(--bs-success);
}

.typing-feedback.error[b-47t0oph07p] {
    background: rgba(220, 53, 69, 0.1);
    color: var(--bs-danger);
}

.typing-feedback.almost[b-47t0oph07p] {
    background: rgba(13, 110, 253, 0.1);
    color: var(--bs-primary);
}

.typing-feedback i[b-47t0oph07p] {
    font-size: 1.5rem;
}

.typing-feedback strong[b-47t0oph07p] {
    color: var(--bs-body-color);
}

.is-almost[b-47t0oph07p] {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Keyboard Hints */
.keyboard-hints[b-47t0oph07p] {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-default, #e9ecef);
    font-size: 0.85rem;
    color: var(--text-muted, var(--bs-secondary));
}

.keyboard-hints span[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.keyboard-hints kbd[b-47t0oph07p],
kbd[b-47t0oph07p] {
    background: var(--surface-body, #f8f9fa);
    border: 1px solid var(--border-default, #dee2e6);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    font-family: inherit;
    color: var(--text-primary, var(--bs-dark));
    box-shadow: inset 0 -1px 0 var(--border-default, #dee2e6);
}

/* Phase 3: AI Explanation Styles */

.ai-explanation-block[b-47t0oph07p] {
    background: var(--accent-blue-light, rgba(59, 130, 246, 0.08));
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--bs-info);
}

.ai-hint[b-47t0oph07p] {
    font-size: 0.9rem;
    color: var(--accent-blue, #1a5276);
    line-height: 1.5;
}

.ai-hint i[b-47t0oph07p] {
    color: var(--bs-info);
}

.ai-tip[b-47t0oph07p] {
    font-size: 0.85rem;
    color: var(--accent-green, #1e8449);
    line-height: 1.4;
}

.ai-tip i[b-47t0oph07p] {
    color: #f39c12;
}

.ai-mnemonic[b-47t0oph07p] {
    font-size: 0.85rem;
    color: var(--accent-purple, #7d3c98);
    line-height: 1.4;
    background: var(--accent-yellow-light, rgba(245, 158, 11, 0.08));
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.ai-mnemonic i[b-47t0oph07p] {
    color: #f39c12;
}

/* Matching Mode (#6 LEARNING_IMPROVEMENTS) */
.matching-card[b-47t0oph07p] {
    background: var(--surface-card, white);
    border-radius: 16px;
    box-shadow: var(--shadow-card, 0 4px 24px rgba(0,0,0,0.1));
    padding: 2rem;
}

.matching-header[b-47t0oph07p] {
    text-align: center;
    margin-bottom: 1.5rem;
}

.matching-header h3[b-47t0oph07p] {
    font-size: 1.25rem;
    color: var(--bs-body-color);
    margin-bottom: 0.25rem;
}

.matching-header p[b-47t0oph07p] {
    margin: 0;
}

.matching-grid[b-47t0oph07p] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.matching-column[b-47t0oph07p] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.matching-item[b-47t0oph07p] {
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-default, #e9ecef);
    border-radius: 12px;
    background: var(--surface-body, #f8f9fa);
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s;
    color: var(--text-primary, var(--bs-dark));
}

.matching-item:hover:not(:disabled)[b-47t0oph07p] {
    border-color: var(--bs-primary);
    background: rgba(13, 110, 253, 0.05);
}

.matching-item.selected[b-47t0oph07p] {
    border-color: var(--bs-primary);
    background: rgba(13, 110, 253, 0.12);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.matching-item.matched[b-47t0oph07p] {
    border-color: var(--bs-success);
    background: rgba(25, 135, 84, 0.1);
    color: var(--bs-success);
    opacity: 0.7;
    cursor: default;
}

.matching-item.wrong[b-47t0oph07p] {
    border-color: var(--bs-danger);
    background: rgba(220, 53, 69, 0.1);
    animation: shake-b-47t0oph07p 0.4s ease;
}

@keyframes shake-b-47t0oph07p {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.matching-item:disabled[b-47t0oph07p] {
    cursor: default;
}

.matching-result[b-47t0oph07p] {
    text-align: center;
}

@media (max-width: 575px) {
    .matching-grid[b-47t0oph07p] {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .matching-card[b-47t0oph07p] {
        padding: 1.25rem;
    }

    .matching-item[b-47t0oph07p] {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Spelling Bee (§3.2 LEARNING_IMPROVEMENTS) */
.spelling-card[b-47t0oph07p] {
    background: var(--surface-card, white);
    border-radius: 16px;
    box-shadow: var(--shadow-card, 0 4px 24px rgba(0,0,0,0.1));
    padding: 2rem;
    text-align: center;
}

.spelling-header[b-47t0oph07p] {
    margin-bottom: 1.5rem;
}

.spelling-bee-icon[b-47t0oph07p] {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.25rem;
    animation: bee-bounce-b-47t0oph07p 2s ease-in-out infinite;
}

@keyframes bee-bounce-b-47t0oph07p {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.spelling-header h3[b-47t0oph07p] {
    font-size: 1.25rem;
    color: var(--bs-body-color);
    margin: 0.25rem 0;
}

.spelling-tts-area[b-47t0oph07p] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.spelling-tts-controls[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-tts-big[b-47t0oph07p] {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #f59e0b;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.btn-tts-big:hover[b-47t0oph07p] {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.35);
}

.btn-tts-big:active[b-47t0oph07p] {
    transform: scale(0.96);
}

.spelling-hint[b-47t0oph07p] {
    text-align: center;
}

.spelling-letters[b-47t0oph07p] {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    min-height: 56px;
}

.spelling-cell[b-47t0oph07p] {
    width: 42px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-default, #dee2e6);
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-transform: lowercase;
    background: var(--surface-card, white);
    transition: all 0.2s;
    color: var(--text-primary, var(--bs-dark));
}

.spelling-cell--cursor[b-47t0oph07p] {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    animation: cursor-blink-b-47t0oph07p 1s step-end infinite;
}

@keyframes cursor-blink-b-47t0oph07p {
    0%, 100% { border-color: #f59e0b; }
    50% { border-color: #fde68a; }
}

.spelling-cell--correct[b-47t0oph07p] {
    border-color: var(--bs-success);
    background: rgba(25, 135, 84, 0.08);
    color: var(--bs-success);
}

.spelling-cell--wrong[b-47t0oph07p] {
    border-color: var(--bs-danger);
    background: rgba(220, 53, 69, 0.08);
    color: var(--bs-danger);
    animation: shake-b-47t0oph07p 0.35s ease;
}

.spelling-cell__reveal[b-47t0oph07p] {
    color: var(--bs-secondary);
    opacity: 0.5;
}

.spelling-input-area[b-47t0oph07p] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    align-items: center;
}

/* Desktop: input hidden offscreen, focus still works */
.spelling-visible-input[b-47t0oph07p] {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.ex-card__accent--amber[b-47t0oph07p] {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* Mobile: input becomes visible and styled */
@media (max-width: 768px) {
    .spelling-visible-input[b-47t0oph07p] {
        position: static;
        opacity: 1;
        width: 100%;
        height: auto;
        max-width: 320px;
        text-align: center;
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: 0.15em;
        font-family: 'Courier New', monospace;
        padding: 0.75rem 1rem;
        border: 2px solid #f59e0b;
        border-radius: 12px;
        background: #fffbeb;
        color: var(--bs-dark);
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .spelling-visible-input:focus[b-47t0oph07p] {
        border-color: #d97706;
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
    }

    .spelling-visible-input[b-47t0oph07p]::placeholder {
        font-weight: 400;
        letter-spacing: normal;
        font-family: inherit;
        font-size: 0.95rem;
        color: #d1d5db;
    }
}

@media (max-width: 575px) {
    .spelling-card[b-47t0oph07p] {
        padding: 1.25rem;
    }

    .spelling-cell[b-47t0oph07p] {
        width: 32px;
        height: 38px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .btn-tts-big[b-47t0oph07p] {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .spelling-letters[b-47t0oph07p] {
        gap: 0.25rem;
    }

    .spelling-visible-input[b-47t0oph07p] {
        max-width: 100%;
        font-size: 1.1rem;
        padding: 0.65rem 0.75rem;
    }

    .spelling-input-area[b-47t0oph07p] {
        width: 100%;
    }

    .spelling-input-area .btn[b-47t0oph07p] {
        width: 100%;
    }
}

/* Notification reminder (#7 LEARNING_IMPROVEMENTS) */
.reminder-toast[b-47t0oph07p] {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    min-width: 320px;
    max-width: 420px;
    animation: slideInRight-b-47t0oph07p 0.35s ease;
}

@keyframes slideInRight-b-47t0oph07p {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* === Daily Goal Section (P0 LEARNING_IMPROVEMENTS §1.2) === */

.daily-goal-section[b-47t0oph07p] {
    --goal-track: rgba(99, 102, 241, 0.12);
    --goal-fill: var(--bs-primary);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--surface-card, #f8f9fa);
    border: 1px solid var(--border-default, transparent);
    border-radius: 16px;
    padding: 1.1rem 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.daily-goal-section:hover[b-47t0oph07p] {
    border-color: rgba(99, 102, 241, 0.2);
}

.daily-goal--done[b-47t0oph07p] {
    --goal-track: rgba(16, 185, 129, 0.12);
    --goal-fill: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(16, 185, 129, 0.08));
}

/* Ring */
.daily-goal-ring[b-47t0oph07p] {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}

.goal-svg[b-47t0oph07p] {
    width: 100%;
    height: 100%;
}

.goal-progress-ring[b-47t0oph07p] {
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-ring-label[b-47t0oph07p] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.goal-ring-number[b-47t0oph07p] {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    color: var(--bs-body-color);
}

.goal-ring-of[b-47t0oph07p] {
    font-size: 0.65rem;
    color: var(--bs-secondary);
    margin-top: 1px;
}

.goal-ring-check[b-47t0oph07p] {
    font-size: 1.6rem;
    color: #10b981;
}

/* Body */
.daily-goal-body[b-47t0oph07p] {
    flex: 1;
    min-width: 0;
}

.daily-goal-title[b-47t0oph07p] {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.goal-done-badge[b-47t0oph07p] {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.15rem 0.6rem;
    border-radius: 2rem;
}

.daily-goal-subtitle[b-47t0oph07p] {
    font-size: 0.82rem;
    color: var(--bs-secondary);
    margin-bottom: 0.6rem;
}

/* Bar */
.daily-goal-bar-wrap[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.daily-goal-bar[b-47t0oph07p] {
    flex: 1;
    height: 7px;
    border-radius: 4px;
    background: var(--goal-track);
    overflow: hidden;
}

.daily-goal-bar-fill[b-47t0oph07p] {
    height: 100%;
    border-radius: 4px;
    background: var(--bs-primary);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.daily-goal-bar-fill.done[b-47t0oph07p] {
    background: #10b981;
}

.daily-goal-bar-label[b-47t0oph07p] {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-secondary);
    min-width: 32px;
    text-align: right;
}

/* Edit button */
.daily-goal-edit-btn[b-47t0oph07p] {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--bs-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-size: 0.85rem;
}

.daily-goal-edit-btn:hover[b-47t0oph07p] {
    background: var(--bs-primary-bg-subtle, rgba(99, 102, 241, 0.1));
    color: var(--bs-primary);
}

/* Editor */
.daily-goal-editor[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.65rem 1rem;
    background: var(--surface-card, #f8f9fa);
    border: 1px solid var(--border-default, #e9ecef);
    border-radius: 12px;
}

.daily-goal-editor-label[b-47t0oph07p] {
    font-size: 0.82rem;
    color: var(--bs-secondary);
    white-space: nowrap;
    font-weight: 500;
}

.daily-goal-editor-pills[b-47t0oph07p] {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.goal-pill[b-47t0oph07p] {
    padding: 0.3rem 0.85rem;
    border: 2px solid var(--border-default, #e9ecef);
    border-radius: 2rem;
    background: var(--surface-card, white);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bs-secondary);
    transition: all 0.15s;
}

.goal-pill:hover[b-47t0oph07p] {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.goal-pill.active[b-47t0oph07p] {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

@media (max-width: 500px) {
    .daily-goal-section[b-47t0oph07p] {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }

    .daily-goal-bar-wrap[b-47t0oph07p] {
        justify-content: center;
    }

    .daily-goal-edit-btn[b-47t0oph07p] {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
    }

    .daily-goal-editor[b-47t0oph07p] {
        flex-direction: column;
    }
}

.daily-goal-header[b-47t0oph07p] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* === Leech Alert (P0 LEARNING_IMPROVEMENTS §1.1) === */

.leech-alert[b-47t0oph07p] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-yellow-light, rgba(245, 158, 11, 0.1));
    border: 1px solid var(--accent-yellow, #ffc107);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.leech-alert-content[b-47t0oph07p] {
    display: flex;
    align-items: center;
    color: var(--accent-yellow, #856404);
    font-size: 0.9rem;
}

.leech-alert-content i[b-47t0oph07p] {
    font-size: 1.2rem;
    color: #e0a800;
}

/* === Leech Manager === */

.leech-manager[b-47t0oph07p] {
    background: var(--surface-card, #fff);
    border: 1px solid var(--border-default, #dee2e6);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.leech-manager h4[b-47t0oph07p] {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.leech-list[b-47t0oph07p] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.leech-item[b-47t0oph07p] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-body, #f8f9fa);
    border-radius: 8px;
    padding: 0.6rem 1rem;
}

.leech-word[b-47t0oph07p] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .leech-alert[b-47t0oph07p] {
        flex-direction: column;
        text-align: center;
    }

    .leech-item[b-47t0oph07p] {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .daily-goal-header[b-47t0oph07p] {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* === User Notes (§8.3 LEARNING_IMPROVEMENTS) === */

.user-note-section[b-47t0oph07p] {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--gray-200, #e5e7eb);
}

.user-note-display[b-47t0oph07p] {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.6rem 0.85rem;
    background: var(--accent-yellow-light, #fef3c7);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--gray-700, #374151);
    cursor: pointer;
    transition: background 0.15s ease;
    line-height: 1.4;
}

.user-note-display:hover[b-47t0oph07p] {
    background: #fde68a;
}

.user-note-display i:first-child[b-47t0oph07p] {
    color: var(--accent-yellow, #f59e0b);
    flex-shrink: 0;
    margin-top: 1px;
}

.user-note-display span[b-47t0oph07p] {
    flex: 1;
    word-break: break-word;
}

.btn-note-edit[b-47t0oph07p] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--gray-400, #9ca3af);
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
    font-size: 0.7rem;
    transition: all 0.15s ease;
}

.btn-note-edit:hover[b-47t0oph07p] {
    color: var(--gray-700, #374151);
    background: rgba(0,0,0,0.06);
}

.btn-add-note[b-47t0oph07p] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px dashed var(--gray-300, #d1d5db);
    background: transparent;
    color: var(--gray-500, #6b7280);
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-add-note:hover[b-47t0oph07p] {
    border-color: var(--accent-yellow, #f59e0b);
    color: var(--accent-yellow, #f59e0b);
    background: var(--accent-yellow-light, #fef3c7);
}

.user-note-editor[b-47t0oph07p] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-note-editor textarea[b-47t0oph07p] {
    font-size: 0.85rem;
    border-radius: 8px;
    resize: none;
}

.user-note-editor-actions[b-47t0oph07p] {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}
