:root {
    --danger: #e53935;
}

.mw-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Under Construction overlay */
.mw-under-construction {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg, #fff);
    text-align: center;
    padding: 32px;
}
.mw-uc-icon {
    font-size: 64px;
    margin-bottom: 16px;
}
.mw-uc-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text, #333);
    margin: 0 0 8px;
}
.mw-uc-text {
    font-size: 16px;
    color: var(--text-muted, #888);
    margin: 0;
}

/* Mobile header */
.mw-mobile-header {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
}
.mw-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.mw-back-btn:hover { background: var(--bg-2); }
.mw-mobile-title { font-size: 15px; font-weight: 600; }

@media (max-width: 640px) {
    .mw-mobile-header { display: flex; }
}

/* Two-panel layout */
.mw-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.mw-sidebar {
    width: 220px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    overflow-y: auto;
}

.mw-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.mw-sidebar-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-2);
}

.mw-add-list-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}
.mw-add-list-btn:hover { background: var(--primary-dark); }

.mw-list-items { padding: 8px; display: flex; flex-direction: column; gap: 2px; }

.mw-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 14px;
    width: 100%;
    color: var(--text);
    transition: background 0.12s;
}
.mw-list-item:hover { background: var(--border); }
.mw-list-item.active { background: var(--primary); color: #fff; }

.mw-list-item-name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-list-item-count { font-size: 11px; opacity: 0.7; flex-shrink: 0; }

/* Main panel */
.mw-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 14px;
    gap: 12px;
}

.mw-main-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mw-list-name { font-size: 18px; font-weight: 700; flex: 1; }

.mw-main-actions { display: flex; gap: 6px; }

.mw-icon-btn {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-2);
    transition: background 0.15s;
}
.mw-icon-btn:hover { background: var(--border); color: var(--text); }
.mw-icon-btn.mw-danger:hover { background: #fdecea; color: var(--danger); border-color: var(--danger); }

/* Checkbox toolbar */
.mw-checkbox-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-shrink: 0;
    flex-wrap: wrap;
}
.mw-select-all-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.mw-select-all-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}
.mw-bulk-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.mw-bulk-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-2);
    transition: all 0.15s;
}
.mw-bulk-btn:hover { background: var(--border); color: var(--text); }
.mw-bulk-delete:hover { background: #fdecea; color: var(--danger); border-color: var(--danger); }

.mw-controls { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

.mw-search {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}
.mw-search:focus { border-color: var(--primary-light); }

.mw-stats {
    font-size: 12px;
    color: var(--text-2);
}

/* Word list */
.mw-word-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mw-empty {
    text-align: center;
    color: var(--text-2);
    font-size: 14px;
    padding: 40px 20px;
}

.mw-word-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
}
.mw-word-row:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.mw-word-row.checked { background: #e8f5e9; border-color: var(--primary-light); }

.mw-word-row .mw-select-pair {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.mw-word-row-info { flex: 1; min-width: 0; }
.mw-word-thai { font-size: 22px; line-height: 1.3; }
.mw-word-english { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* Dual progress bars */
.mw-word-row-progress { flex-shrink: 0; width: 60px; }
.mw-progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.mw-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
    transition: width 0.3s;
}
.mw-progress-write .mw-progress-fill { background: #FFB300; }
.mw-progress-test .mw-progress-fill { background: #4285F4; }
.mw-progress-write, .mw-progress-test { margin-bottom: 3px; }
.mw-progress-label { font-size: 10px; color: var(--text-2); margin-top: 1px; text-align: right; }

.mw-word-row-actions { display: flex; gap: 6px; flex-shrink: 0; }

.mw-audio-btn {
    background: none;
    border: 1.5px solid var(--primary-light);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-dark);
    transition: background 0.15s;
}
.mw-audio-btn:hover { background: var(--primary-light); }

.mw-delete-btn {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-2);
    transition: all 0.15s;
}
.mw-delete-btn:hover { border-color: var(--danger); color: var(--danger); background: #fdecea; }

.mw-expand-btn {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-2);
    transition: all 0.15s;
}
.mw-expand-btn:hover { background: var(--bg-2); color: var(--text); }

/* Expandable word info */
.mw-word-info {
    display: none;
    padding: 8px 12px 8px 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: -6px;
}
.mw-word-info.open { display: block; }

.mw-word-segments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mw-word-segment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
}
.mw-segment-play {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 2px;
    display: flex;
    align-items: center;
}
.mw-segment-play:hover { color: var(--primary-dark); }

.mw-word-info-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    margin-bottom: 4px;
    margin-top: 8px;
}
.mw-word-info-label:first-child { margin-top: 0; }

/* Add form */
.mw-add-form {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.mw-add-input {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
}
.mw-add-input:focus { border-color: var(--primary-light); }

.mw-add-submit {
    padding: 8px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.mw-add-submit:hover { background: var(--primary-dark); }

/* Mobile: hide sidebar when showing main */
@media (max-width: 640px) {
    .mw-sidebar { width: 100%; border-right: none; }
    .mw-main { display: none; }

    .mw-layout.show-main .mw-sidebar { display: none; }
    .mw-layout.show-main .mw-main { display: flex; }
}

/* Word detail modal */
.mw-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 100;
}
.mw-modal-backdrop.open { display: block; }

.mw-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    z-index: 101;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.mw-modal.open { display: block; }

@media (min-width: 640px) {
    .mw-modal {
        top: 50%;
        left: 50%;
        bottom: auto;
        right: auto;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 360px;
        border-radius: 16px;
    }
}

.mw-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--bg-2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-2);
}
.mw-modal-close:hover { background: var(--border); }

.mw-modal-thai { font-size: 60px; text-align: center; margin-bottom: 8px; }
.mw-modal-english { font-size: 16px; color: var(--text-2); text-align: center; margin-bottom: 14px; }

.mw-modal-stats {
    font-size: 12px;
    color: var(--text-2);
    background: var(--bg-2);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 14px;
    line-height: 1.9;
}
.mw-modal-stats strong { color: var(--text); }

.mw-modal-audio {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: background 0.15s;
}
.mw-modal-audio:hover { background: var(--primary-dark); }

/* Edit popup */
.mw-edit-popup-backdrop, .mw-move-popup-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 300;
}
.mw-edit-popup-backdrop.open, .mw-move-popup-backdrop.open { display: block; }

.mw-edit-popup, .mw-move-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    z-index: 301;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    flex-direction: column;
}
.mw-edit-popup.open, .mw-move-popup.open { display: flex; }

.mw-edit-popup-header, .mw-move-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.mw-edit-popup-header h3, .mw-move-popup-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}
.mw-edit-popup-close, .mw-move-popup-close {
    background: var(--bg-2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-2);
}

.mw-edit-popup-body, .mw-move-popup-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.mw-edit-pair {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: center;
}
.mw-edit-pair input {
    flex: 1;
    padding: 6px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
}
.mw-edit-pair input:focus { border-color: var(--primary-light); }

.mw-edit-popup-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.mw-edit-save-btn {
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.mw-edit-save-btn:hover { background: var(--primary-dark); }
.mw-edit-cancel-btn {
    padding: 8px 20px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
}

/* Move popup list items */
.mw-move-list-option {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 6px;
    transition: all 0.12s;
    font-size: 14px;
}
.mw-move-list-option:hover { border-color: var(--primary-light); background: #f0faf0; }

.mw-move-new-list {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.mw-move-new-list input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
}
.mw-move-new-list button {
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Practice open button */
.mw-practice-open-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.mw-practice-open-btn:hover { background: var(--primary-dark); }

/* Practice modal */
.mw-practice-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
}
.mw-practice-backdrop.open { display: block; }

.mw-practice-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 201;
    flex-direction: column;
}
.mw-practice-modal.open { display: flex; }

@media (min-width: 640px) {
    .mw-practice-modal {
        inset: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 94%;
        max-width: 480px;
        height: auto;
        max-height: 90vh;
        border-radius: 16px;
        box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    }
}

.mw-practice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.mw-practice-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-2);
    border-radius: 8px;
    padding: 3px;
}

.mw-practice-tab {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--text-2);
    transition: all 0.15s;
}
.mw-practice-tab.active {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.mw-practice-close {
    background: var(--bg-2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-2);
}
.mw-practice-close:hover { background: var(--border); }

.mw-practice-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}

/* Learn card */
.mw-learn-card {
    text-align: center;
    width: 100%;
    max-width: 360px;
}
.mw-learn-thai {
    font-size: 72px;
    line-height: 1.2;
    margin-bottom: 12px;
}
.mw-learn-english {
    font-size: 18px;
    color: var(--text-2);
    margin-bottom: 20px;
}
.mw-learn-audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.mw-learn-audio-btn:hover { background: var(--primary-dark); }

/* Test card */
.mw-test-card { text-align: center; width: 100%; max-width: 380px; }
.mw-test-prompt { font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.mw-test-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 24px;
    transition: background 0.15s;
}
.mw-test-play-btn:hover { background: var(--primary-dark); }
.mw-test-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.mw-test-choice {
    padding: 12px 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}
.mw-test-choice:hover { border-color: var(--primary-light); background: #f0faf0; }
.mw-test-choice.correct { border-color: var(--primary); background: #f0faf0; color: var(--primary-dark); font-weight: 700; }
.mw-test-choice.wrong { border-color: #e53935; background: #fdecea; color: #b71c1c; }
.mw-test-result { font-size: 16px; font-weight: 700; margin-top: 16px; min-height: 24px; }
.mw-test-result.ok { color: var(--primary-dark); }
.mw-test-result.fail { color: #e53935; }

/* Write card — keyboard mode */
.mw-write-card { text-align: center; width: 100%; max-width: 420px; }
.mw-write-english { font-size: 15px; color: var(--text-2); margin-bottom: 14px; }

.mw-write-difficulty {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 14px;
}
.mw-difficulty-btn {
    padding: 6px 16px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-2);
}
.mw-difficulty-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.mw-difficulty-btn:hover:not(.active) { border-color: var(--primary-light); }

.mw-write-helper {
    min-height: 50px;
    font-size: 36px;
    line-height: 1.3;
    padding: 8px;
    margin-bottom: 10px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mw-write-input {
    width: 100%;
    max-width: 300px;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 24px;
    text-align: center;
    outline: none;
    margin: 0 auto 10px;
    display: block;
    background: #fff;
    transition: border-color 0.15s;
}
.mw-write-input:focus { border-color: var(--primary-light); }
.mw-write-input.correct { border-color: var(--primary); background: #f0faf0; }
.mw-write-input.wrong { border-color: var(--danger); background: #fdecea; }

.mw-write-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

.mw-write-btn {
    padding: 9px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.mw-hint-btn {
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFB300;
}
.mw-hint-btn:hover { background: #FFE0B2; }

.mw-write-verify {
    background: var(--primary);
    color: #fff;
}
.mw-write-verify:hover { background: var(--primary-dark); }

.mw-write-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
    margin-bottom: 10px;
}
.mw-write-play-btn:hover { background: var(--border); }

.mw-write-keyboard-area {
    margin-top: 10px;
}

/* Dot animation for medium difficulty */
@keyframes mw-dot-pulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}
.mw-write-dots {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}
.mw-write-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
    animation: mw-dot-pulse 1.4s infinite ease-in-out;
}
.mw-write-dots span:nth-child(1) { animation-delay: 0s; }
.mw-write-dots span:nth-child(2) { animation-delay: 0.2s; }
.mw-write-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Practice footer */
.mw-practice-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.mw-practice-progress { font-size: 13px; color: var(--text-2); }
.mw-practice-next-btn {
    padding: 9px 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.mw-practice-next-btn:hover { background: var(--primary-dark); }
.mw-practice-next-btn:disabled { background: var(--border); color: var(--text-2); cursor: not-allowed; }

/* Session complete */
.mw-session-complete {
    text-align: center;
    padding: 20px;
}
.mw-session-complete h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 10px; }
.mw-session-complete p { font-size: 15px; color: var(--text-2); margin-bottom: 6px; }
.mw-session-restart {
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.mw-session-restart:hover { background: var(--primary-dark); }
