:root {
    --elh-primary: #1e3a5f;
    --elh-primary-light: #2d5a8a;
    --elh-accent: #0d9488;
    --elh-review: #563d7c;
    --elh-know: #04a204;
    --elh-learn: #9c27b0;
    --elh-dark-bg: #0f1419;
    --elh-card-border: #563d7c;

    /* Premium home palette */
    --home-blue: #1a6dff;
    --home-blue-dark: #0d4fd4;
    --home-blue-light: #e8f1ff;
    --home-text: #1a2b4a;
    --elh-font-urdu: "UrduFont", "Urdu Typesetting", "Jameel Noori Nastaleeq", serif;
    --elh-font-arabic: "Noto Naskh Arabic", "Arabic Typesetting", "Traditional Arabic", "Segoe UI Historic", serif;
    --elh-font-devanagari: "Noto Sans Devanagari", "Mangal", "Nirmala UI", sans-serif;
    --elh-font-bengali: "Noto Sans Bengali", "Vrinda", "Nirmala UI", sans-serif;
    --elh-font-tamil: "Noto Sans Tamil", "Latha", "Nirmala UI", sans-serif;
    --elh-font-telugu: "Noto Sans Telugu", "Gautami", "Nirmala UI", sans-serif;
    --home-text-muted: #5a6b85;
    --home-nav-inactive: #111827;
    --home-nav-icon: #7c3aed;
    --home-nav-active: #5b21b6;
    --home-nav-active-bg: linear-gradient(135deg, #faf5ff 0%, #ede9fe 52%, #e0e7ff 100%);
    --home-nav-active-border: rgba(124, 58, 237, .18);
    --home-border: #e2e8f3;
    --home-shadow: 0 8px 32px rgba(26, 77, 180, 0.08);
    --home-shadow-hover: 0 16px 48px rgba(26, 77, 180, 0.14);

    /* Compact button scale (Bootstrap default feels oversized) */
    --elh-btn-padding-y: .38rem;
    --elh-btn-padding-x: .85rem;
    --elh-btn-font-size: .875rem;
    --elh-btn-line-height: 1.35;
    --elh-btn-radius: 10px;

    /* Main site header nav (keep consistent on every page) */
    --elh-nav-link-font-size: .92rem;
    --elh-nav-icon-font-size: .85rem;
    --elh-nav-link-padding-y: .58rem;
    --elh-nav-link-padding-x: .78rem;
}

html, body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background: #f4f6f9;
}

body.body-practice {
    background-color: #f7f8fc;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(124, 58, 237, .08) 0%, transparent 40%),
        radial-gradient(circle at 100% 0%, rgba(26, 109, 255, .07) 0%, transparent 36%),
        radial-gradient(rgba(148, 163, 184, .16) 1px, transparent 1px);
    background-size: auto, auto, 20px 20px;
    color: var(--home-text);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body.body-practice-vocab {
    background-color: #f3eef8;
    background-image: url("/img/qback.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

/* ── Learner UI: compact Bootstrap buttons ── */
.btn:not(.btn-sm):not(.btn-lg):not(.btn-close):not(.btn-link) {
    --bs-btn-padding-y: var(--elh-btn-padding-y);
    --bs-btn-padding-x: var(--elh-btn-padding-x);
    --bs-btn-font-size: var(--elh-btn-font-size);
    --bs-btn-line-height: var(--elh-btn-line-height);
    padding: var(--elh-btn-padding-y) var(--elh-btn-padding-x);
    font-size: var(--elh-btn-font-size);
    font-weight: 600;
    line-height: var(--elh-btn-line-height);
    border-radius: var(--elh-btn-radius);
}

.btn.btn-sm:not(.btn-close) {
    --bs-btn-padding-y: .26rem;
    --bs-btn-padding-x: .58rem;
    --bs-btn-font-size: .8rem;
    --bs-btn-line-height: 1.3;
    padding: .26rem .58rem;
    font-size: .8rem;
    line-height: 1.3;
}

.btn.btn-lg:not(.btn-close) {
    --bs-btn-padding-y: .48rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-size: .92rem;
    padding: .48rem 1rem;
    font-size: .92rem;
    line-height: 1.35;
}

.modal-footer {
    --bs-modal-footer-gap: .45rem;
    padding: .6rem 1rem .75rem;
}

.modal-footer .btn {
    min-height: 0;
}

body.body-practice .elh-footer {
    background: #fff;
    border-top-color: var(--home-border);
    color: var(--home-text-muted);
}

.practice-main {
    padding: 1.5rem 1rem 2.5rem;
    flex: 1;
}

/* Practice page */
.practice-page {
    max-width: 1180px;
    margin: 0 auto;
}

.practice-top-section {
    position: relative;
    margin-bottom: 1rem;
}

.practice-top-strip {
    position: relative;
}

.practice-page-toolbar {
    display: none;
}

.practice-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: .6rem;
    margin-bottom: .85rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .practice-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .practice-dashboard {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .65rem;
    }
}

.practice-dashboard--no-goals {
    margin-left: auto;
    margin-right: auto;
    max-width: 36rem;
    width: 100%;
}

@media (min-width: 640px) {
    .practice-dashboard--no-goals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .practice-dashboard--no-goals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 36rem;
    }
}

.practice-points-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .65rem;
    padding: .45rem .85rem .45rem .55rem;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 55%, #ecfdf5 100%);
    box-shadow: 0 10px 28px rgba(22, 163, 74, .12);
    color: #14532d;
    overflow: hidden;
}

.practice-points-pill-glow {
    position: absolute;
    inset: -40% auto -40% -20%;
    width: 45%;
    background: radial-gradient(circle, rgba(255, 255, 255, .85) 0%, transparent 70%);
    pointer-events: none;
}

.practice-points-pill-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .28);
    flex-shrink: 0;
}

.practice-points-pill-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.practice-points-pill-label {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #166534;
    opacity: .85;
}

.practice-points-pill-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #14532d;
}

.practice-points-pill-pop {
    position: absolute;
    top: -.15rem;
    right: .75rem;
    font-size: .78rem;
    font-weight: 800;
    color: #15803d;
    opacity: 0;
    transform: translateY(6px) scale(.9);
    pointer-events: none;
}

.practice-points-pill-pop--show {
    animation: practice-points-pop .75s ease forwards;
}

.practice-points-pill--pulse {
    animation: practice-points-pulse .45s ease;
}

@keyframes practice-points-pop {
    0% { opacity: 0; transform: translateY(8px) scale(.85); }
    20% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-10px) scale(1.05); }
}

@keyframes practice-points-pulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.practice-dash-card {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .75rem;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.practice-dash-card--compact {
    min-height: 0;
    padding: .65rem .75rem;
}

.practice-dash-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.practice-dash-card--review {
    background: linear-gradient(135deg, #f8f5ff 0%, #f1ebff 52%, #ebe4ff 100%);
    border-color: #e4d9ff;
    color: var(--home-text);
    box-shadow: 0 10px 28px rgba(124, 58, 237, .08);
}

.practice-dash-card--review:hover {
    color: var(--home-text);
    border-color: #d8c9ff;
    box-shadow: 0 14px 32px rgba(124, 58, 237, .12);
}

.practice-dash-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .92rem;
    flex-shrink: 0;
}

.practice-dash-icon--purple {
    background: linear-gradient(145deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(124, 58, 237, .28);
}

.practice-dash-icon--purple i {
    color: #fff;
}

.practice-dash-icon--blue {
    background: linear-gradient(135deg, #eff6ff 0%, #e0ecff 100%);
    color: #2563eb;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .1);
}

.practice-dash-icon--blue i {
    color: #2563eb;
}

.practice-dash-card--mode {
    position: relative;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    appearance: none;
}

.practice-dash-card--mode:hover {
    border-color: #c7d7fe;
}

.practice-goal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    padding: .65rem .75rem;
    min-height: 0;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
    overflow: hidden;
    text-align: left;
    color: inherit;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.practice-goal-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.practice-goal-card--week {
    background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
}

.practice-goal-card--month {
    background: linear-gradient(160deg, #fff 0%, #fafbff 100%);
    border-color: #e8edf5;
}

.practice-goal-card .practice-overall-track {
    height: 6px;
}

.practice-goal-card .practice-daily-hint,
.practice-goal-card .practice-streak-pill,
.practice-goal-card .practice-next-milestone {
    margin: 0;
    font-size: .72rem;
    line-height: 1.35;
}

.practice-goal-card-art {
    position: absolute;
    right: .15rem;
    bottom: .1rem;
    width: 72px;
    height: 64px;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: .9;
}

.practice-goal-card--month .practice-dash-art-img {
    max-height: 58px;
}

.practice-goal-card .practice-help-icon {
    top: .4rem;
    right: .4rem;
    width: 24px;
    height: 24px;
    font-size: .75rem;
}

.practice-goal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
}

.practice-goal-copy {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    min-width: 0;
}

.practice-goal-title {
    font-size: .85rem;
    font-weight: 800;
    color: var(--home-text);
    line-height: 1.2;
}

.practice-goal-sub {
    font-size: .68rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.25;
}

.practice-goal-count {
    font-size: .8rem;
    font-weight: 800;
    color: #7c3aed;
    white-space: nowrap;
}

.practice-next-milestone i {
    margin-right: .2rem;
    color: #7c3aed;
}

.practice-dash-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .12rem;
}

.practice-dash-title {
    font-size: .85rem;
    font-weight: 800;
    color: inherit;
    line-height: 1.2;
}

.practice-dash-sub--action {
    color: #64748b;
    font-weight: 600;
}

.practice-dash-more {
    margin-left: auto;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    font-size: .95rem;
}

.practice-dash-card--mode:hover .practice-dash-more {
    background: #e8eef7;
    color: #334155;
}

.practice-dash-sub {
    font-size: .7rem;
    line-height: 1.3;
}

.practice-dash-sub--muted {
    color: var(--home-text-muted);
}

.practice-dash-count {
    margin-left: auto;
    min-width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 800;
    flex-shrink: 0;
}

.practice-dash-count--purple {
    background: #fff;
    color: #7c3aed;
    border: 1px solid #e9ddff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, .1);
}

.practice-dash-card--points {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 52%, #ecfdf5 100%);
    border-color: #bbf7d0;
    box-shadow: 0 10px 28px rgba(22, 163, 74, .08);
}

.practice-dash-icon--green {
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(22, 163, 74, .28);
}

.practice-dash-icon--green i {
    color: #fff;
}

.practice-dash-count--green {
    background: #fff;
    color: #15803d;
    border: 1px solid #bbf7d0;
    box-shadow: 0 4px 14px rgba(22, 163, 74, .1);
}

.practice-dash-points-pop {
    position: absolute;
    right: .85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .72rem;
    font-weight: 800;
    color: #15803d;
    opacity: 0;
    pointer-events: none;
}

.practice-dash-points-pop--show {
    animation: practice-points-pop .75s ease forwards;
}

.practice-dash-card--pulse {
    animation: practice-points-pulse .45s ease;
}

.practice-dash-art {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.practice-dash-art-glow {
    position: absolute;
    inset: 8% 0 8% 18%;
    background: radial-gradient(ellipse at center, rgba(237, 233, 254, .95) 0%, rgba(237, 233, 254, .35) 45%, transparent 72%);
    filter: blur(2px);
}

.practice-dash-art-img {
    position: relative;
    width: auto;
    height: 88%;
    max-height: 108px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 10px 22px rgba(124, 58, 237, .12));
}

.practice-toast {
    position: fixed;
    top: calc(1rem + env(safe-area-inset-top, 0px));
    right: calc(1rem + env(safe-area-inset-right, 0px));
    left: auto;
    z-index: 1080;
    max-width: min(22rem, calc(100vw - 2rem));
    background: #166534;
    color: #fff;
    padding: .7rem 1rem;
    border-radius: 12px;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: 0 10px 28px rgba(22, 101, 52, .32);
    transform: translateX(0);
    animation: practice-toast-in .28s ease;
    transition: opacity .35s ease, transform .35s ease;
}

.practice-toast-hide {
    opacity: 0;
    transform: translateX(12px);
}

@keyframes practice-toast-in {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.practice-top-panel {
    display: none;
}

.practice-review-pill {
    display: none;
}

.practice-question-content img,
.practice-question-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.practice-question-image-wrap {
    width: 100%;
    margin: .85rem 0 .35rem;
    display: flex;
    justify-content: center;
}

.practice-question-image-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    max-width: min(100%, 420px);
}

.practice-question-image-btn {
    display: inline-block;
    max-width: min(100%, 420px);
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 14px;
    cursor: zoom-in;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .1);
    transition: transform .18s ease, box-shadow .18s ease;
}

.practice-question-image-btn:hover,
.practice-question-image-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(30, 58, 138, .18);
    outline: none;
}

.practice-question-image-btn .practice-question-image {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    margin-top: 0;
}

.practice-question-image-modal__dialog {
    max-width: min(900px, calc(100vw - 1.5rem));
}

.practice-question-image-modal__content {
    border-radius: 16px;
    overflow: hidden;
}

.practice-question-image-modal__body {
    max-height: min(78vh, 720px);
    overflow-y: auto;
    padding: 1rem 1.1rem 1.25rem;
    background: #f8fafc;
    scrollbar-color: #1e3a8a rgba(30, 58, 138, .14);
    scrollbar-width: thin;
}

.practice-question-image-modal__body::-webkit-scrollbar {
    width: 6px;
}

.practice-question-image-modal__body::-webkit-scrollbar-track {
    background: rgba(30, 58, 138, .14);
}

.practice-question-image-modal__body::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 999px;
}

.practice-question-image-modal__img {
    max-width: 100%;
    max-height: none;
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid #dbeafe;
    background: #fff;
}

.practice-answer-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.practice-module-select {
    min-width: 10rem;
}

.practice-top-row {
    display: none;
}

.practice-mode-wrap {
    display: none;
}

.practice-mode-icon {
    color: var(--home-blue);
    font-size: .9rem;
}

.practice-mode-select {
    border: none;
    background: transparent;
    color: var(--home-text);
    font-weight: 600;
    font-size: .9rem;
    padding: 0;
    box-shadow: none !important;
    cursor: pointer;
}

.practice-mode-select:focus {
    border: none;
    box-shadow: none;
}

.practice-overall-progress {
    min-width: 0;
}

.practice-overall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .84rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: .5rem;
}

.practice-overall-header strong {
    color: #7c3aed;
    font-size: .92rem;
}

.practice-overall-track {
    height: 8px;
    background: #eceff5;
    border-radius: 999px;
    overflow: hidden;
}

.practice-overall-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #1a6dff);
    border-radius: 999px;
    transition: width .4s ease;
}

.practice-auth-notice {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    color: #334155;
    border-radius: 14px;
    padding: .8rem 1rem;
    font-size: .88rem;
    margin-bottom: 1rem;
}

.practice-auth-notice i {
    color: var(--home-blue);
    font-size: 1rem;
    flex-shrink: 0;
}

.practice-auth-notice > span {
    flex: 1;
    min-width: 180px;
}

.practice-auth-signin {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--home-blue);
    background: #fff;
    color: var(--home-blue);
    font-weight: 700;
    font-size: .84rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, color .2s, transform .15s;
}

.practice-auth-signin:hover {
    background: var(--home-blue);
    color: #fff;
    transform: translateY(-1px);
}

.practice-question-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 22px;
    padding: 1.1rem 1.55rem 0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .07);
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
}

.practice-question-card-main {
    padding-bottom: .35rem;
    background: #fff;
}

.practice-question-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #7c3aed 0%, #6366f1 45%, #1a6dff 75%, #14b8a6 100%);
}

.practice-card-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.practice-card-loader.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.practice-card-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.practice-card-loader-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    text-align: center;
}

.practice-card-loader-spinner {
    width: 2.25rem;
    height: 2.25rem;
    border: 3px solid #e9d5ff;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: practiceCardSpin .75s linear infinite;
}

.practice-card-loader-message {
    margin: 0;
    font-size: .88rem;
    font-weight: 600;
    color: #4c1d95;
}

@keyframes practiceCardSpin {
    to {
        transform: rotate(360deg);
    }
}

.practice-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .55rem;
}

.practice-card-points {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .7rem .35rem .45rem;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    box-shadow: 0 8px 22px rgba(22, 163, 74, .1);
    flex-shrink: 0;
}

.practice-card-points-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: .72rem;
    box-shadow: 0 6px 14px rgba(22, 163, 74, .24);
}

.practice-card-points-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    text-align: center;
    min-width: 2.1rem;
}

.practice-card-points-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #166534;
    opacity: .85;
    width: 100%;
    text-align: center;
}

.practice-card-points-value {
    font-size: 1rem;
    font-weight: 800;
    color: #14532d;
    width: 100%;
    text-align: center;
}

.practice-card-points-pop {
    position: absolute;
    top: -.35rem;
    right: .5rem;
    font-size: .72rem;
    font-weight: 800;
    color: #15803d;
    opacity: 0;
    pointer-events: none;
}

.practice-card-points-pop--show {
    animation: practice-points-pop .75s ease forwards;
}

.practice-card-points--pulse {
    animation: practice-points-pulse .45s ease;
}

.practice-item-progress--top {
    width: 52px;
    height: 52px;
    margin: 0;
    flex-shrink: 0;
}

.practice-item-progress--center {
    display: block;
    margin: .15rem auto 1rem;
    width: 62px;
    height: 62px;
}

.practice-question-prompt .practice-item-progress--center {
    margin: .85rem auto 1rem;
}

.practice-meta-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    flex: 1;
    min-width: 0;
}

.practice-item-progress {
    position: relative;
    top: auto;
    right: auto;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}

.practice-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .74rem;
    font-weight: 700;
    padding: .34rem .68rem;
    border-radius: 999px;
    letter-spacing: .01em;
}

.practice-question-card .practice-meta-badge {
    font-size: .62rem;
    padding: .24rem .52rem;
    gap: .24rem;
}

.practice-question-card .practice-meta-badge i {
    font-size: .58rem;
}

.practice-question-card .practice-meta-tier {
    padding: .16rem .46rem .16rem .26rem;
    gap: .28rem;
}

.practice-question-card .practice-meta-tier-icon {
    width: 17px;
    height: 17px;
}

.practice-question-card .practice-meta-tier-label {
    font-size: .62rem;
}

.practice-meta-id {
    background: #ede9fe;
    color: #6d28d9;
}

.practice-meta-qno {
    background: #dcfce7;
    color: #15803d;
}

.practice-meta-level {
    background: #f1f5f9;
    color: #64748b;
}

.practice-meta-tier {
    margin-left: 0;
    flex-shrink: 0;
    text-transform: capitalize;
    gap: .38rem;
    padding: .22rem .62rem .22rem .32rem;
    cursor: pointer;
    border: none;
    font: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.practice-meta-tier:hover,
.practice-meta-tier:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    outline: none;
}

.practice-meta-tier-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.practice-meta-tier-label {
    line-height: 1.1;
}

.practice-meta-tier--learner,
.practice-meta-tier--learning {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    border: 1px solid #a7f3d0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, .1);
}

.practice-meta-tier--familiar {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.practice-meta-tier--mastered {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.practice-meta-tier--expert {
    background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
    color: #a16207;
    border: 1px solid #fcd34d;
    box-shadow: 0 4px 14px rgba(245, 158, 11, .12);
}

.practice-meta-custom {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.practice-tier-modal-body {
    padding-top: .25rem;
}

.practice-tier-modal-hero {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}

.practice-tier-modal-hero-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.practice-tier-modal-eyebrow {
    margin: 0 0 .15rem;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

.practice-tier-modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--home-text);
    text-transform: capitalize;
}

.practice-tier-modal-points {
    margin: .2rem 0 0;
    font-size: .82rem;
    color: #64748b;
}

.practice-tier-modal-section-title {
    margin: 0 0 .45rem;
    font-size: .9rem;
    font-weight: 800;
    color: var(--home-text);
}

.practice-tier-modal-why {
    margin-bottom: 1rem;
    padding: .8rem .9rem;
    border-radius: 14px;
    background: #f5f3ff;
    border: 1px solid #e9ddff;
}

.practice-tier-modal-why-text {
    margin: 0;
    font-size: .86rem;
    color: #475569;
    line-height: 1.55;
}

.practice-tier-modal-table-lead {
    margin: 0 0 .65rem;
    font-size: .82rem;
    color: #64748b;
    line-height: 1.45;
}

.practice-tier-modal-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid #e8edf5;
}

.practice-tier-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.practice-tier-modal-table th,
.practice-tier-modal-table td {
    padding: .65rem .75rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f7;
}

.practice-tier-modal-table th {
    background: #f8fafc;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #64748b;
}

.practice-tier-modal-table tr:last-child td {
    border-bottom: 0;
}

.practice-tier-modal-table tr.is-current {
    background: #eff6ff;
}

.practice-tier-modal-table tr.is-current td {
    font-weight: 600;
}

.practice-tier-modal-badge-cell {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: var(--home-text);
    text-transform: capitalize;
}

.practice-tier-modal-badge-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.practice-tier-modal-points-cell {
    white-space: nowrap;
    color: #334155;
    font-weight: 600;
}

.practice-tier-modal-meaning-cell {
    color: #64748b;
    line-height: 1.45;
}

.practice-tier-modal-you {
    font-size: .74rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: none;
}

.practice-tier-modal-hero--learner {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}

.practice-tier-modal-hero--familiar {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}

.practice-tier-modal-hero--mastered {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #e9d5ff;
}

.practice-tier-modal-hero--expert {
    background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
    border-color: #fcd34d;
}

.practice-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.practice-ring-bg {
    fill: none;
    stroke: #eef2f7;
    stroke-width: 6;
}

.practice-ring-fill {
    fill: none;
    stroke: #8b5cf6;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 213.6;
    transition: stroke-dashoffset .5s ease;
}

.practice-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 800;
    color: #7c3aed;
}

.practice-question-content {
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    font-weight: 600;
    line-height: 1.55;
    color: #1e293b;
    min-height: 0;
    padding: 0 0 .25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    background: #fff;
}

.practice-question-content p {
    margin-bottom: 0;
    width: 100%;
    max-width: none;
    text-align: left;
}

.practice-question-prompt {
    width: 100%;
    max-width: none;
}

.practice-question-text {
    width: 100%;
    text-align: left;
}

.practice-question-examples-heading {
    margin: .75rem 0 .4rem;
    font-size: 1rem;
    text-align: left;
    width: 100%;
}

.practice-question-example-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
    font-size: clamp(1.05rem, 1.8vw, 1.18rem);
    font-weight: 500;
}

.practice-question-example-list li {
    position: relative;
    padding: .4rem 0 .4rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.practice-question-example-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.practice-question-example-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .82rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--home-blue);
}

.practice-word-blank {
    display: inline-block;
    min-width: 4.5rem;
    height: 0.85em;
    vertical-align: baseline;
    border: none;
    border-bottom: 2px solid #64748b;
    text-decoration: none !important;
    margin: 0 .15rem;
}

.practice-word-filled {
    display: inline;
    font: inherit;
    font-weight: 700;
    color: var(--home-blue, #2563eb);
    border: none;
    border-bottom: 2px solid #64748b;
    margin: 0 .15rem;
    padding: 0;
    vertical-align: baseline;
    background: transparent;
}

.practice-word-filled--clickable {
    cursor: pointer;
    text-decoration: none;
}

.practice-word-filled--clickable:hover,
.practice-word-filled--clickable:focus-visible {
    color: #1d4ed8;
    outline: none;
    box-shadow: 0 2px 0 0 #1d4ed8;
}

.practice-recall-hint {
    margin: 0 0 .65rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--home-text-muted);
    line-height: 1.4;
}

.practice-recall-hint-icon {
    margin-right: .25rem;
}

.practice-question-example-list u {
    text-decoration: none;
}

.practice-card-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    margin: 0 -1.55rem;
    padding: .7rem 1.55rem max(1rem, env(safe-area-inset-bottom));
    text-align: center;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.practice-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: .75rem;
    text-align: left;
}

.practice-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .6rem;
    border: none;
    border-radius: 14px;
    padding: .58rem .85rem;
    font-weight: 800;
    text-align: left;
    transition: transform .15s, box-shadow .2s, background .2s;
    cursor: pointer;
    min-height: 62px;
}

.practice-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 46px at 82% 18%, rgba(255, 255, 255, .22) 0%, transparent 100%),
        radial-gradient(circle 34px at 94% 72%, rgba(255, 255, 255, .16) 0%, transparent 100%),
        radial-gradient(circle 22px at 68% 78%, rgba(255, 255, 255, .12) 0%, transparent 100%);
    pointer-events: none;
}

.practice-btn::after {
    content: "";
    position: absolute;
    right: 10%;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border-radius: 14px;
    transform: rotate(28deg);
    background: rgba(255, 255, 255, .1);
    box-shadow:
        28px -14px 0 -8px rgba(255, 255, 255, .08),
        -18px 20px 0 -10px rgba(255, 255, 255, .06);
    pointer-events: none;
}

.practice-btn-know::before {
    background:
        radial-gradient(circle 50px at 84% 22%, rgba(255, 255, 255, .24) 0%, transparent 100%),
        radial-gradient(circle 30px at 72% 68%, rgba(255, 255, 255, .12) 0%, transparent 100%),
        radial-gradient(circle 18px at 92% 58%, rgba(255, 255, 255, .14) 0%, transparent 100%);
}

.practice-btn-learn::before {
    background:
        radial-gradient(circle 44px at 78% 28%, rgba(255, 255, 255, .2) 0%, transparent 100%),
        radial-gradient(circle 36px at 96% 64%, rgba(255, 255, 255, .15) 0%, transparent 100%),
        radial-gradient(circle 20px at 66% 42%, rgba(255, 255, 255, .1) 0%, transparent 100%);
}

.practice-btn-learn::after {
    right: 8%;
    border-radius: 50%;
    transform: none;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    background: rgba(255, 255, 255, .11);
    box-shadow:
        32px 10px 0 -12px rgba(255, 255, 255, .09),
        -24px -6px 0 -14px rgba(255, 255, 255, .07);
}

.practice-btn-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    font-size: .95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
}

.practice-btn-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: .12rem;
}

.practice-btn-text {
    font-size: .95rem;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.practice-btn-sub {
    font-size: .64rem;
    font-weight: 600;
    opacity: .88;
    line-height: 1.18;
}

.practice-btn-know {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 55%, #bbf7d0 100%);
    color: #047857;
    border: 1px solid #bbf7d0;
    box-shadow: 0 8px 22px rgba(16, 185, 129, .14);
}

.practice-btn-know .practice-btn-icon {
    color: #059669;
}

.practice-btn-know:hover {
    color: #065f46;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 55%, #86efac 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, .18);
}

.practice-btn-know.glow-know,
.practice-btn-know.is-selected {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 55%, #86efac 100%);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .28), 0 12px 28px rgba(16, 185, 129, .2);
    transform: translateY(-2px) scale(1.01);
}

.practice-btn-learn {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 55%, #ddd6fe 100%);
    color: #6d28d9;
    border: 1px solid #e9d5ff;
    box-shadow: 0 8px 22px rgba(124, 58, 237, .12);
}

.practice-btn-learn .practice-btn-icon {
    color: #7c3aed;
}

.practice-btn-learn:hover {
    color: #5b21b6;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 55%, #c4b5fd 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(124, 58, 237, .16);
}

.practice-btn-learn.glow-learn,
.practice-btn-learn.is-selected {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 55%, #c4b5fd 100%);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, .28), 0 12px 28px rgba(124, 58, 237, .18);
    transform: translateY(-2px) scale(1.01);
}

.practice-choice-hint {
    text-align: center;
    font-size: .88rem;
    font-weight: 600;
    color: var(--home-blue);
    margin: -.15rem 0 .85rem;
}

.practice-actions .practice-btn {
    position: relative;
    z-index: 2;
}

.practice-show-answer-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .35rem;
    width: 100%;
    margin-top: 0;
}

.practice-pick-source {
    margin: 0;
    font-size: .72rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: .01em;
    text-align: center;
}

.practice-btn-show-answer {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    width: min(100%, 320px);
    min-width: 200px;
    max-width: 100%;
    margin: 0;
    padding: .72rem 1.35rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 48%, #2563eb 100%);
    color: #fff;
    font-weight: 800;
    font-size: .88rem;
    box-shadow: 0 10px 26px rgba(37, 99, 235, .28);
    transition: transform .15s, box-shadow .2s, filter .2s;
    cursor: pointer;
}

.practice-btn-show-answer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 34px at 78% 24%, rgba(255, 255, 255, .2) 0%, transparent 100%),
        radial-gradient(circle 24px at 92% 70%, rgba(255, 255, 255, .14) 0%, transparent 100%);
    pointer-events: none;
}

.practice-btn-show-answer::after {
    content: "";
    position: absolute;
    right: 12%;
    top: 50%;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .09);
    box-shadow: 28px 8px 0 -10px rgba(255, 255, 255, .07);
    pointer-events: none;
}

.practice-btn-show-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #2563eb;
    font-size: .82rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
    flex-shrink: 0;
}

.practice-btn-show-text {
    position: relative;
    z-index: 1;
    line-height: 1.1;
}

.practice-btn-show-answer:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .34);
    filter: brightness(1.03);
}

.practice-footer-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem 1.15rem;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, .05);
}

.practice-feature-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-width: 0;
}

.practice-feature-copy {
    min-width: 0;
    padding-top: .15rem;
}

.practice-feature-item strong {
    display: block;
    font-size: .84rem;
    font-weight: 800;
    color: var(--home-text);
    margin-bottom: .15rem;
    line-height: 1.25;
}

.practice-feature-desc {
    display: block;
    font-size: .74rem;
    color: var(--home-text-muted);
    line-height: 1.45;
}

.practice-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.practice-feature-icon i {
    display: block;
    font-size: 1rem;
    line-height: 1;
}

.practice-feature-icon--purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.practice-feature-icon--blue {
    background: #dbeafe;
    color: #2563eb;
}

.practice-feature-icon--green {
    background: #dcfce7;
    color: #16a34a;
}

.practice-feature-icon--orange {
    background: #ffedd5;
    color: #ea580c;
}

/* Practice modal — compact modern answer layout */
.practice-answer-panel {
    display: none;
    margin-bottom: 1.2rem;
}

.practice-answer-panel.is-revealed {
    display: block;
}

.practice-answer-panel-content.practice-modal-content {
    max-height: none;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .07);
}

.practice-answer-panel .practice-modal-body {
    flex: none;
    max-height: none;
    overflow: visible;
}

.practice-answer-panel .practice-modal-notes {
    min-height: 0;
    overflow: visible;
}

/* Sticky rating bar — schedule left, action cluster centered (reference layout) */
.practice-rating-bar {
    position: fixed;
    left: var(--practice-rail-left, 1rem);
    width: var(--practice-rail-width, calc(100% - 2rem));
    right: auto;
    transform: none;
    bottom: calc(.55rem + env(safe-area-inset-bottom, 0px));
    z-index: 1045;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

.practice-rating-bar[hidden] {
    display: none !important;
}

.practice-rating-bar-inner {
    width: 100%;
    margin: 0 auto;
    padding: .5rem .55rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(248, 250, 252, .94) 100%);
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 12px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .9) inset,
        0 10px 28px rgba(15, 23, 42, .08),
        0 2px 8px rgba(15, 23, 42, .04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: auto;
}

.practice-rating-bar-row,
.practice-rating-bar-actions {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: .4rem;
    width: 100%;
}

.practice-rating-bar-side--start,
.practice-rating-bar-side--end {
    display: none;
}

.practice-rating-btn {
    display: inline-flex;
    flex: 1 1 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin: 0;
    min-width: 0;
    width: 100%;
    min-height: 3.55rem;
    padding: .42rem .55rem;
    border-radius: 8px;
    border: 2px solid transparent;
    background: #fff;
    font: inherit;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
    transition:
        transform .18s cubic-bezier(.22, 1, .36, 1),
        box-shadow .18s ease,
        border-color .18s ease,
        background .18s ease,
        filter .18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.practice-rating-btn:focus-visible {
    outline: 2px solid rgba(13, 148, 136, .45);
    outline-offset: 2px;
}

.practice-rating-btn:active {
    transform: translateY(0) scale(.985);
}

.practice-rating-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 7px;
    background: #fff;
    flex-shrink: 0;
    font-size: .88rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .75) inset,
        0 3px 8px rgba(15, 23, 42, .08);
}

.practice-rating-btn-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .12rem;
    min-width: 0;
    text-align: center;
}

.practice-rating-btn-title {
    display: block;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.practice-rating-btn-sub {
    display: block;
    margin: 0;
    font-size: .66rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .01em;
    opacity: .88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.practice-rating-btn--schedule {
    border-color: rgba(30, 58, 95, .12);
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    color: #1e3a5f;
}

.practice-rating-btn--schedule .practice-rating-btn-sub {
    color: #5a6b85;
}

.practice-rating-btn--schedule .practice-rating-btn-icon {
    background: linear-gradient(160deg, #e8f1ff 0%, #dbeafe 100%);
    color: #1a6dff;
}

.practice-rating-btn--schedule:hover,
.practice-rating-btn--schedule.is-active {
    transform: translateY(-2px);
    border-color: rgba(26, 109, 255, .28);
    box-shadow: 0 8px 20px rgba(26, 109, 255, .14);
}

.practice-rating-btn--schedule.pulse-hint {
    animation: scheduleBtnPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .35), 0 4px 14px rgba(234, 88, 12, .32);
}

.practice-rating-btn--know {
    border-color: rgba(4, 120, 87, .18);
    background: linear-gradient(180deg, #f3fdf8 0%, #e6faf1 100%);
    color: #047857;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .7) inset,
        0 4px 14px rgba(16, 185, 129, .1);
}

.practice-rating-btn--know .practice-rating-btn-sub {
    color: #059669;
}

.practice-rating-btn--know .practice-rating-btn-icon {
    background: linear-gradient(160deg, #34d399 0%, #059669 100%);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .35) inset,
        0 4px 12px rgba(5, 150, 105, .28);
}

.practice-rating-btn--know:hover,
.practice-rating-btn--know.is-selected {
    transform: translateY(-2px);
    border-color: rgba(5, 150, 105, .35);
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow: 0 10px 24px rgba(16, 185, 129, .2);
}

.practice-rating-btn--learn {
    border-color: rgba(124, 58, 237, .16);
    background: linear-gradient(180deg, #faf8ff 0%, #f3effe 100%);
    color: #6d28d9;
}

.practice-rating-btn--learn .practice-rating-btn-sub {
    color: #7c3aed;
}

.practice-rating-btn--learn .practice-rating-btn-icon {
    background: linear-gradient(160deg, #a78bfa 0%, #7c3aed 100%);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .35) inset,
        0 4px 12px rgba(124, 58, 237, .24);
}

.practice-rating-btn--learn:hover,
.practice-rating-btn--learn.is-selected {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, .32);
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
    box-shadow: 0 10px 24px rgba(124, 58, 237, .16);
}

.practice-rating-btn--skip {
    border-color: rgba(180, 83, 9, .16);
    background: linear-gradient(180deg, #fffdf7 0%, #fff7e8 100%);
    color: #b45309;
}

.practice-rating-btn--skip .practice-rating-btn-sub {
    color: #d97706;
}

.practice-rating-btn--skip .practice-rating-btn-icon {
    background: linear-gradient(160deg, #fbbf24 0%, #d97706 100%);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .4) inset,
        0 4px 12px rgba(217, 119, 6, .22);
}

.practice-rating-btn--skip:hover,
.practice-rating-btn--skip.is-selected {
    transform: translateY(-2px);
    border-color: rgba(217, 119, 6, .32);
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: 0 10px 24px rgba(245, 158, 11, .16);
}

.practice-rating-bar .practice-choice-hint {
    margin: .45rem 0 0;
    text-align: center;
}

body.practice-answer-open {
    padding-bottom: calc(7.25rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
    .practice-rating-bar {
        left: var(--practice-rail-left, 1.5rem);
        width: var(--practice-rail-width, calc(100% - 3rem));
    }

    .practice-rating-bar-inner {
        padding: .55rem .6rem;
    }
}

@media (max-width: 767.98px) {
    .practice-rating-bar {
        left: var(--practice-rail-left, .75rem);
        width: var(--practice-rail-width, calc(100% - 1.5rem));
    }

    .practice-rating-bar-inner {
        padding: .42rem .45rem;
        border-radius: 10px;
    }

    .practice-rating-bar-row,
    .practice-rating-bar-actions {
        gap: .3rem;
    }

    .practice-rating-btn {
        min-height: 3.35rem;
        padding: .36rem .4rem;
        gap: .36rem;
        border-radius: 7px;
    }

    .practice-rating-btn-icon {
        width: 1.7rem;
        height: 1.7rem;
        border-radius: 6px;
        font-size: .78rem;
    }

    .practice-rating-btn-title {
        font-size: .72rem;
    }

    .practice-rating-btn-sub {
        font-size: .58rem;
    }
}

body.practice-answer-open .elh-scroll-top,
.elh-scroll-top.elh-scroll-top--practice:not([hidden]) {
    display: inline-flex !important;
    bottom: calc(8.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 2147483646;
}

@media (max-width: 767.98px) {
    body.practice-answer-open .elh-scroll-top,
    .elh-scroll-top.elh-scroll-top--practice:not([hidden]) {
        bottom: calc(10.25rem + env(safe-area-inset-bottom, 0px));
    }
}

.practice-modal .modal-backdrop.show {
    opacity: .5;
    backdrop-filter: blur(2px);
}

.practice-modal-dialog {
    max-width: min(860px, calc(100vw - 1.5rem));
    margin: .75rem auto;
    min-height: min(82vh, 780px);
}

.practice-modal-content {
    border: 1px solid rgba(226, 232, 243, .95);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
    background: #fff;
    max-height: min(92vh, 840px);
    display: flex;
    flex-direction: column;
}

.practice-modal-header {
    flex-shrink: 0;
    z-index: 5;
    padding: .85rem 1rem .75rem;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    border-bottom: 1px solid var(--home-border);
}

.practice-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--home-text);
    letter-spacing: -.01em;
}

.practice-modal-hero {
    flex-shrink: 0;
    padding: .35rem 1rem .25rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.practice-modal-rating {
    flex-shrink: 0;
    order: 3;
    padding: .65rem 1rem .85rem;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}

.practice-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    order: 4;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #f8fafc;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #1e3a8a rgba(30, 58, 138, .14);
    scrollbar-width: thin;
}

.practice-modal-body::-webkit-scrollbar {
    width: 6px;
}

.practice-modal-body::-webkit-scrollbar-track {
    background: rgba(30, 58, 138, .14);
}

.practice-modal-body::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 999px;
}

.practice-modal-rating .practice-actions {
    margin-bottom: .45rem;
}

.practice-modal-rating .practice-already-know-wrap {
    margin: .55rem 0 0;
    display: flex;
    justify-content: center;
}

.practice-already-know-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem 1rem;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, .12);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.practice-already-know-btn:hover {
    transform: translateY(-1px);
    border-color: #fbbf24;
    background: linear-gradient(180deg, #fff7d6 0%, #fde68a 100%);
    box-shadow: 0 6px 18px rgba(245, 158, 11, .18);
    color: #78350f;
}

.practice-already-know-btn:active {
    transform: translateY(0);
}

.practice-already-know-icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    color: #d97706;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    flex-shrink: 0;
}

.practice-already-know-text {
    text-align: left;
}

.practice-modal-header-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.practice-modal-header-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.practice-modal-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .82rem;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.practice-modal-icon-btn:hover {
    background: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

.practice-modal.is-maximized .practice-modal-dialog {
    max-width: calc(100vw - 1rem);
    width: calc(100vw - 1rem);
    margin: .5rem auto;
    min-height: calc(100vh - 1rem);
}

.practice-modal.is-maximized .practice-modal-content {
    max-height: calc(100vh - 1rem);
    min-height: calc(100vh - 1rem);
    border-radius: 14px;
}

.practice-modal.is-maximized .practice-modal-notes {
    min-height: 0;
}

.practice-modal-word-wrap {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: .25rem 0 .15rem;
}

.practice-answer-word-hero,
.practice-answer-word {
    font-family: "Inter", system-ui, sans-serif;
    font-size: clamp(1.55rem, 3.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
    line-height: 1.15;
    color: var(--home-text);
    background: linear-gradient(135deg, var(--home-blue), #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.practice-modal-close {
    opacity: .45;
    padding: .45rem;
    margin: 0;
    transition: opacity .2s;
    flex-shrink: 0;
}

.practice-modal-close:hover {
    opacity: .85;
}

.practice-header-btn-label {
    font-size: .78rem;
    font-weight: 700;
}

.btn-practice-schedule,
.btn-practice-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1;
    padding: .5rem .75rem;
    min-height: 36px;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    white-space: nowrap;
}

.btn-practice-schedule {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, .32);
}

.btn-practice-schedule:hover,
.btn-practice-schedule.is-active {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(234, 88, 12, .4);
    transform: translateY(-1px);
}

.btn-practice-next {
    background: linear-gradient(135deg, #1a6dff 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26, 109, 255, .32);
}

.btn-practice-next:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(26, 109, 255, .4);
    transform: translateY(-1px);
}

.btn-practice-schedule.pulse-hint {
    animation: scheduleBtnPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .35), 0 4px 14px rgba(234, 88, 12, .32);
}

.practice-answer-word {
    font-size: 1.4rem;
}

.practice-modal-notes {
    flex: 1;
    min-height: 320px;
    max-height: none;
    overflow-y: auto;
    padding: .9rem 1rem;
    background: #f8fafc;
    scrollbar-color: #1e3a8a rgba(30, 58, 138, .14);
    scrollbar-width: thin;
}

.practice-modal-notes::-webkit-scrollbar {
    width: 6px;
}

.practice-modal-notes::-webkit-scrollbar-track {
    background: rgba(30, 58, 138, .14);
}

.practice-modal-notes::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 999px;
}

.practice-scroll-hint {
    position: absolute;
    right: 1.1rem;
    bottom: 1rem;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    max-width: calc(100% - 2rem);
    padding: .5rem .8rem;
    border-radius: 999px;
    background: #1e3a8a;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 8px 24px rgba(30, 58, 138, .35);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
}

.practice-scroll-hint.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.practice-scroll-hint i {
    font-size: .72rem;
    opacity: .92;
    flex-shrink: 0;
}

.practice-notes-content {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--home-text);
}

.practice-modal-footer {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: .85rem 1rem 1rem;
    background: #fff;
    border-top: 1px solid var(--home-border);
}

.practice-modal-rating-title {
    margin: 0 0 .65rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--home-text);
    text-align: center;
}

.practice-modal-actions {
    margin-bottom: .5rem;
}

.practice-modal-actions--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.practice-btn-already-know {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 55%, #fde68a 100%);
    color: #b45309;
    border: 1px solid #fde68a;
    box-shadow: 0 8px 22px rgba(245, 158, 11, .12);
}

.practice-btn-already-know .practice-btn-icon {
    color: #d97706;
}

.practice-btn-already-know:hover {
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 55%, #fcd34d 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245, 158, 11, .16);
}

.practice-answer-pronunciation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin: .45rem 0 0;
    flex-wrap: wrap;
}

.practice-answer-speak {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    color: #6366f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .18);
    transition: transform .15s ease, box-shadow .15s ease;
}

.practice-answer-speak:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(99, 102, 241, .24);
}

.practice-answer-speak.is-playing,
.practice-modal .practice-speak.is-playing {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, .2);
}

.practice-answer-speak.is-playing:hover,
.practice-modal .practice-speak.is-playing:hover {
    color: #b91c1c;
    box-shadow: 0 6px 16px rgba(220, 38, 38, .28);
}

.practice-answer-pronunciation-text {
    font-size: .92rem;
    line-height: 1.45;
    color: #475569;
}

.practice-answer-pronunciation-text mark.tm {
    background: #fef3c7;
    color: #92400e;
    padding: 0 .15rem;
    border-radius: 4px;
}

.practice-modal-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    width: 100%;
}

.practice-modal-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 34px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
}

.practice-modal-footer .btn-practice-schedule,
.practice-modal-footer .btn-practice-next {
    padding: .4rem .85rem;
    min-height: 34px;
}

/* Section headers inside modal — premium blue collapsible */
.practice-modal .practice-section-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 243, .9);
    border-radius: 14px;
    margin-bottom: .65rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.practice-modal .practice-section-card.is-open {
    border-color: rgba(26, 109, 255, .18);
    box-shadow: 0 6px 20px rgba(26, 109, 255, .08);
}

.practice-modal .practice-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    border: none;
    cursor: pointer;
    font-family: "Inter", system-ui, sans-serif;
    font-size: calc(.78rem + 2px);
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #1a6dff 0%, #4f46e5 55%, #6366f1 100%);
    padding: .6rem .85rem;
    text-align: left;
    transition: filter .2s ease;
}

.practice-modal .practice-section-toggle:hover {
    filter: brightness(1.06);
}

.practice-modal .practice-section-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.practice-modal .practice-section-toggle-label i {
    opacity: .92;
    font-size: calc(.8rem + 2px);
    flex-shrink: 0;
}

.practice-modal .practice-section-chevron {
    font-size: .72rem;
    opacity: .9;
    flex-shrink: 0;
    transition: transform .25s ease;
}

.practice-modal .practice-section-card.is-open .practice-section-chevron {
    transform: rotate(180deg);
}

.practice-modal .practice-section-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
}

.practice-modal .practice-section-card.is-open .practice-section-panel {
    grid-template-rows: 1fr;
}

.practice-modal .practice-section-panel > .practice-section-body {
    overflow: hidden;
    padding: 0 .9rem;
}

.practice-modal .practice-section-card.is-open .practice-section-panel > .practice-section-body {
    padding: .75rem .9rem .85rem;
}

/* Legacy h2.tw support for general-english notes */
.practice-modal .tw {
    font-family: "Inter", system-ui, sans-serif;
    font-size: calc(.78rem + 2px);
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #1a6dff 0%, #4f46e5 55%, #6366f1 100%);
    padding: .6rem .85rem;
    border-radius: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: .4rem;
    box-shadow: 0 4px 12px rgba(26, 109, 255, .2);
    margin: 0 0 .55rem;
    border: none;
}

.practice-modal .tw i {
    opacity: .92;
    font-size: calc(.8rem + 2px);
}

.practice-modal .tm,
.practice-modal mark.tm {
    background: #fef9c3;
    border: none;
    border-radius: 4px;
    padding: 0 4px;
    color: inherit;
}

.practice-modal .practice-translation,
.practice-modal .practice-translation-slot {
    display: block;
    margin-top: .5rem;
    color: #000;
    font-size: 1.2em;
    line-height: 1.6;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.practice-modal .practice-translation--rtl,
.practice-modal .practice-translation-slot.practice-translation--rtl {
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

.practice-modal .practice-translation--ltr,
.practice-modal .practice-translation-slot.practice-translation--ltr {
    direction: ltr;
    text-align: left;
}

.practice-modal .practice-translation.lang-urdu,
.practice-modal .practice-translation-slot.lang-urdu {
    font-family: var(--elh-font-urdu);
    font-size: 1.2em;
    line-height: 1.65;
}

.practice-modal .practice-translation.lang-arabic,
.practice-modal .practice-translation-slot.lang-arabic,
.practice-modal .practice-translation.lang-persian,
.practice-modal .practice-translation-slot.lang-persian,
.practice-modal .practice-translation.lang-pashto,
.practice-modal .practice-translation-slot.lang-pashto {
    font-family: var(--elh-font-arabic);
}

.practice-modal .practice-translation.lang-hindi,
.practice-modal .practice-translation-slot.lang-hindi,
.practice-modal .practice-translation.lang-marathi,
.practice-modal .practice-translation-slot.lang-marathi,
.practice-modal .practice-translation.lang-nepali,
.practice-modal .practice-translation-slot.lang-nepali {
    font-family: var(--elh-font-devanagari);
}

.practice-modal .practice-translation.lang-bangla,
.practice-modal .practice-translation-slot.lang-bangla {
    font-family: var(--elh-font-bengali);
}

.practice-modal .practice-translation.lang-tamil,
.practice-modal .practice-translation-slot.lang-tamil {
    font-family: var(--elh-font-tamil);
}

.practice-modal .practice-translation.lang-telugu,
.practice-modal .practice-translation-slot.lang-telugu {
    font-family: var(--elh-font-telugu);
}

.practice-modal .practice-translation.lang-gujarati,
.practice-modal .practice-translation-slot.lang-gujarati,
.practice-modal .practice-translation.lang-punjabi,
.practice-modal .practice-translation-slot.lang-punjabi,
.practice-modal .practice-translation.lang-kannada,
.practice-modal .practice-translation-slot.lang-kannada,
.practice-modal .practice-translation.lang-malayalam,
.practice-modal .practice-translation-slot.lang-malayalam,
.practice-modal .practice-translation.lang-sinhala,
.practice-modal .practice-translation-slot.lang-sinhala {
    font-family: "Nirmala UI", "Noto Sans", sans-serif;
}

.practice-modal .practice-translation.lang-chinese,
.practice-modal .practice-translation-slot.lang-chinese,
.practice-modal .practice-translation.lang-chinese-traditional,
.practice-modal .practice-translation-slot.lang-chinese-traditional {
    font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.practice-modal .practice-translation.lang-hebrew,
.practice-modal .practice-translation-slot.lang-hebrew {
    font-family: "Noto Sans Hebrew", "David", "Segoe UI Historic", sans-serif;
}

.elh-translation-text,
.content-detail-translation,
.module-item-preview-block-translation {
    display: block;
    line-height: 1.65;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.elh-translation-text--rtl,
.content-detail-translation.elh-translation-text--rtl,
.module-item-preview-block-translation.elh-translation-text--rtl {
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

/* Dialogue lines: keep Latin speaker ("John:") on the left; RTL body on the right. */
.elh-translation-text--dialogue,
.content-detail-translation.elh-translation-text--dialogue,
.content-detail-translation.elh-translation-text--rtl.elh-translation-text--dialogue {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem;
    direction: ltr;
    text-align: left;
    unicode-bidi: normal;
}

.elh-translation-speaker {
    flex-shrink: 0;
    direction: ltr;
    unicode-bidi: isolate;
    font-weight: 600;
}

.elh-translation-body {
    flex: 1 1 8rem;
    min-width: 0;
    unicode-bidi: plaintext;
}

.elh-translation-body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.elh-translation-block {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .35rem .75rem;
    margin-top: .35rem;
    padding-top: .35rem;
    border-top: 1px dashed rgba(15, 23, 42, .1);
}

.elh-translation-block .content-detail-translation,
.elh-translation-block .elh-translation-text,
.elh-translation-block .module-item-preview-block-translation {
    flex: 1 1 10rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.elh-report-translation-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
    margin: 0;
    padding: .2rem .55rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
}

.elh-report-translation-btn:hover,
.elh-report-translation-btn:focus-visible {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.elh-translation-text.lang-urdu,
.content-detail-translation.lang-urdu,
.module-item-preview-block-translation.lang-urdu {
    font-family: var(--elh-font-urdu);
    font-size: 0.96em;
    line-height: 1.75;
}

.elh-translation-text.lang-arabic,
.content-detail-translation.lang-arabic,
.module-item-preview-block-translation.lang-arabic,
.elh-translation-text.lang-persian,
.content-detail-translation.lang-persian,
.module-item-preview-block-translation.lang-persian,
.elh-translation-text.lang-pashto,
.content-detail-translation.lang-pashto,
.module-item-preview-block-translation.lang-pashto {
    font-family: var(--elh-font-arabic);
}

.elh-translation-text.lang-hindi,
.content-detail-translation.lang-hindi,
.module-item-preview-block-translation.lang-hindi,
.elh-translation-text.lang-marathi,
.content-detail-translation.lang-marathi,
.module-item-preview-block-translation.lang-marathi,
.elh-translation-text.lang-nepali,
.content-detail-translation.lang-nepali,
.module-item-preview-block-translation.lang-nepali {
    font-family: var(--elh-font-devanagari);
}

.elh-translation-text.lang-bangla,
.content-detail-translation.lang-bangla,
.module-item-preview-block-translation.lang-bangla {
    font-family: var(--elh-font-bengali);
}

.elh-translation-text.lang-tamil,
.content-detail-translation.lang-tamil,
.module-item-preview-block-translation.lang-tamil {
    font-family: var(--elh-font-tamil);
}

.elh-translation-text.lang-telugu,
.content-detail-translation.lang-telugu,
.module-item-preview-block-translation.lang-telugu {
    font-family: var(--elh-font-telugu);
}

.practice-modal .practice-translation .translation-script,
.practice-modal .practice-translation-slot .translation-script {
    display: inline;
    white-space: normal;
    color: #000;
}

.practice-translation-loading {
    display: inline-block;
    font-family: var(--bs-font-sans-serif, system-ui, sans-serif);
    font-style: italic;
    font-size: .9rem;
    color: var(--home-blue);
    direction: ltr;
    text-align: left;
}

.practice-modal-notes {
    position: relative;
}

.practice-translation-notice {
    margin-bottom: .75rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    font-size: .88rem;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.practice-translation-notice--failed {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.practice-translation-notice--limit {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fdba74;
}

.practice-translation-block {
    margin-top: .35rem;
}

.practice-report-translation-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .25rem;
    padding: .15rem .45rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.practice-report-translation-btn:hover,
.practice-report-translation-btn:focus-visible {
    color: #dc2626;
    background: #fef2f2;
    outline: none;
}

.practice-report-translation-btn i {
    font-size: .78rem;
}

.practice-report-image-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .35rem;
    padding: .15rem .45rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}

.practice-report-image-btn:hover,
.practice-report-image-btn:focus-visible {
    color: #dc2626;
    background: #fef2f2;
    outline: none;
}

.practice-report-image-btn i {
    font-size: .78rem;
}

.practice-report-image-context code {
    word-break: break-all;
}

.practice-report-modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
}

.practice-report-modal-lead {
    margin-bottom: .85rem;
    color: #64748b;
    font-size: .92rem;
}

.practice-report-reason {
    margin-bottom: 1rem;
    padding: .65rem .8rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.practice-report-reason-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    font-weight: 600;
    color: #b91c1c;
}

.practice-report-feedback {
    margin-top: .75rem;
    padding: .55rem .75rem;
    border-radius: 8px;
    font-size: .86rem;
}

.practice-report-feedback--ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.practice-report-feedback--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

#reportTranslationSubmit.is-submitted {
    opacity: .7;
}

/* Legacy: full-panel overlay removed — loading shows per translation line only */

.practice-modal .practice-section-body {
    margin-bottom: 0;
}

.practice-modal .practice-section-body p {
    margin-bottom: .45rem;
    color: var(--home-text);
}

.practice-modal .practice-pronunciation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    background: var(--home-blue-light);
    border-radius: 10px;
    padding: .65rem .8rem;
    border: 1px solid #d4e4ff;
}

.practice-modal .practice-speak {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--home-blue);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(26, 109, 255, .15);
    transition: transform .15s, box-shadow .2s, color .2s;
    flex-shrink: 0;
}

.practice-modal .practice-speak:hover {
    color: var(--home-blue-dark);
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(26, 109, 255, .25);
}

.practice-modal .practice-speak-hint {
    color: var(--home-text-muted);
    font-size: .78rem;
    width: 100%;
    margin: 0;
    font-style: italic;
}

.practice-modal .practice-example-list,
.practice-modal .practice-meaning-list,
.practice-modal .practice-avoid-list,
.practice-modal .practice-word-list,
.practice-modal .practice-idiom-list,
.practice-modal .practice-wordforms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.practice-modal .practice-example-list li,
.practice-modal .practice-meaning-list li,
.practice-modal .practice-avoid-list li,
.practice-modal .practice-word-list li,
.practice-modal .practice-idiom-list li,
.practice-modal .practice-wordforms-list li {
    position: relative;
    padding: .5rem 0 .5rem 1rem;
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 1.05rem;
    line-height: 1.55;
}

.practice-modal .practice-example-list li:last-child,
.practice-modal .practice-meaning-list li:last-child,
.practice-modal .practice-avoid-list li:last-child,
.practice-modal .practice-word-list li:last-child,
.practice-modal .practice-idiom-list li:last-child,
.practice-modal .practice-wordforms-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.practice-modal .practice-example-list li::before,
.practice-modal .practice-meaning-list li::before,
.practice-modal .practice-wordforms-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--home-blue);
}

.practice-modal .practice-label-wrong {
    color: #dc2626;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.practice-modal .practice-label-right {
    color: #059669;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.practice-modal .practice-notes-empty {
    text-align: center;
    color: var(--home-text-muted);
    font-style: italic;
    padding: 2rem 1rem;
}

/* Practice mode picker */
.practice-mode-modal {
    z-index: 1060;
}

.practice-mode-modal-dialog {
    max-width: min(440px, calc(100vw - 1.5rem));
    margin: .75rem auto;
}

.practice-mode-modal-content {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(15, 23, 42, .18);
    background: #fff;
}

.practice-mode-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem .35rem;
}

.practice-mode-modal-eyebrow {
    margin: 0 0 .2rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7c3aed;
}

.practice-mode-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--home-text);
}

.practice-mode-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.practice-mode-modal-close:hover {
    background: #e2e8f0;
    color: var(--home-text);
}

.practice-mode-modal-body {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: .85rem 1.1rem 1.25rem;
}

.practice-mode-option {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    padding: .9rem 1rem;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    background: #fff;
    text-align: left;
    transition: border-color .15s, background .15s, transform .15s, box-shadow .2s;
}

.practice-mode-option:hover {
    border-color: #c7d7fe;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, .08);
}

.practice-mode-option.is-active {
    border-color: #c4b5fd;
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
    box-shadow: 0 8px 22px rgba(124, 58, 237, .1);
}

.practice-mode-option-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.practice-mode-option-icon--blue {
    background: #eff6ff;
    color: #2563eb;
}

.practice-mode-option-icon--purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.practice-mode-option-icon--teal {
    background: #ecfeff;
    color: #0891b2;
}

.practice-mode-option-icon--orange {
    background: #fff7ed;
    color: #ea580c;
}

.practice-mode-option-copy {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    flex: 1;
    min-width: 0;
}

.practice-mode-option-copy strong {
    font-size: .92rem;
    color: var(--home-text);
}

.practice-mode-option-copy span {
    font-size: .76rem;
    color: var(--home-text-muted);
}

.practice-mode-option-check {
    color: #7c3aed;
    opacity: 0;
    font-size: .9rem;
}

.practice-mode-option.is-active .practice-mode-option-check {
    opacity: 1;
}

/* Schedule review popup */
.schedule-modal {
    z-index: 1065;
}

.schedule-modal-dialog {
    max-width: min(420px, calc(100vw - 1.5rem));
    margin: .75rem auto;
}

.schedule-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(15, 23, 42, .22);
    background: #fff;
}

.schedule-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: 1.1rem 1.15rem .85rem;
    background: linear-gradient(135deg, #1a6dff 0%, #6366f1 55%, #7c3aed 100%);
    color: #fff;
}

.schedule-modal-eyebrow {
    margin: 0 0 .2rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
}

.schedule-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.schedule-modal-close {
    border: none;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}

.schedule-modal-close:hover {
    background: rgba(255, 255, 255, .28);
}

.schedule-modal-body {
    padding: 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.schedule-day-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .55rem;
}

.schedule-day-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    border: none;
    border-radius: 12px;
    padding: .55rem .7rem;
    text-align: left;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #1a6dff 0%, #4f46e5 100%);
    box-shadow: 0 6px 16px rgba(26, 109, 255, .28);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.schedule-day-btn:nth-child(1) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, .28);
}

.schedule-day-btn:nth-child(2) {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 6px 16px rgba(14, 165, 233, .28);
}

.schedule-day-btn:nth-child(3) {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 6px 16px rgba(99, 102, 241, .28);
}

.schedule-day-btn:nth-child(4) {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 6px 16px rgba(139, 92, 246, .28);
}

.schedule-day-btn:nth-child(5) {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    box-shadow: 0 6px 16px rgba(168, 85, 247, .28);
}

.schedule-day-btn:nth-child(6) {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 6px 16px rgba(236, 72, 153, .28);
}

.schedule-day-btn:nth-child(7) {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 6px 16px rgba(249, 115, 22, .28);
}

.schedule-day-btn:nth-child(8) {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 6px 16px rgba(100, 116, 139, .28);
}

.schedule-day-btn-label {
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.schedule-day-btn-date {
    font-size: .72rem;
    font-weight: 600;
    opacity: .9;
}

.schedule-day-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.schedule-day-btn.active {
    transform: scale(.97);
    filter: brightness(.95);
}

@keyframes scheduleBtnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Schedule review toast — top right */
.schedule-toast-host {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2100;
    width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(12px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}

.schedule-toast-host.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.schedule-toast {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
    display: flex;
    gap: .75rem;
    padding: .9rem 1rem .75rem;
}

.schedule-toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: var(--home-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.schedule-toast-content {
    flex: 1;
    min-width: 0;
}

.schedule-toast-title {
    margin: 0 0 .2rem;
    font-size: .82rem;
    font-weight: 800;
    color: var(--home-text);
}

.schedule-toast-message {
    margin: 0;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--home-text-muted);
}

.schedule-toast-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #e8edf5;
}

.schedule-toast-progress-fill {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--home-blue), #7c3aed);
    transform-origin: left center;
    animation: scheduleToastProgress linear forwards;
}

@keyframes scheduleToastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 575.98px) {
    .practice-modal-dialog,
    .practice-modal-content {
        min-height: min(88vh, 100%);
    }

    .practice-modal-notes {
        min-height: 240px;
    }

    .practice-modal-header-bar {
        flex-wrap: wrap;
    }

    .practice-modal-header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .practice-modal-body {
        order: 3;
    }

    .practice-modal-rating {
        order: 4;
        position: sticky;
        bottom: 0;
        z-index: 6;
        border-bottom: none;
        border-top: 1px solid var(--home-border);
        padding-bottom: calc(.85rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -10px 28px rgba(15, 23, 42, .1);
    }

    .practice-modal-actions--cards {
        grid-template-columns: 1fr;
    }

    .practice-modal-actions {
        grid-template-columns: 1fr;
    }

    .schedule-day-grid {
        grid-template-columns: 1fr;
    }

    .schedule-toast-host {
        top: .75rem;
        right: .75rem;
        left: .75rem;
        width: auto;
    }
}

.practice-modal .modal-footer {
    border-top: 1px solid var(--home-border);
    padding: .65rem 1rem .8rem;
    gap: .45rem;
}

.btn-practice-secondary {
    background: #eef2f7;
    color: var(--home-text-muted);
    font-weight: 600;
    border: 1px solid #e2e8f3;
    border-radius: 10px;
    padding: .4rem .85rem;
    font-size: .84rem;
}

.btn-practice-secondary:hover {
    background: #e2e8f0;
    color: var(--home-text);
    border-color: #cbd5e1;
}

@media (min-width: 768px) {
    .practice-footer-features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
        padding: 1.5rem 1.65rem;
    }

    .practice-feature-item {
        align-items: flex-start;
        gap: .7rem;
    }

    .practice-question-card {
        padding: 1.5rem 1.7rem 1.55rem;
    }

    .practice-item-progress {
        width: 64px;
        height: 64px;
    }

    .practice-ring-label {
        font-size: .72rem;
    }

    .practice-main {
        padding: 2rem 1.5rem 3rem;
    }

    .practice-goal-card--month {
        padding-right: 5.75rem;
    }

    .practice-goal-card-art {
        width: 80px;
        height: 70px;
    }
}

@media (max-width: 767.98px) {
    .practice-item-progress {
        width: 52px;
        height: 52px;
    }

    .practice-ring-label {
        font-size: .62rem;
    }

    .practice-question-content {
        font-size: 1.02rem;
        min-height: 0;
        padding-top: 0;
        padding-bottom: .5rem;
        text-align: left;
        align-items: flex-start;
    }

    .practice-btn {
        padding: .75rem .8rem;
        min-height: 72px;
    }

    .practice-btn-icon {
        width: 38px;
        height: 38px;
        font-size: .95rem;
    }

    .practice-btn-text {
        font-size: .95rem;
    }

    .practice-actions {
        grid-template-columns: 1fr;
    }

    .practice-footer-features {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1.15rem;
        padding: 1.15rem 1rem;
    }

    .practice-goal-card--month {
        padding-right: 4.75rem;
    }

    .practice-goal-card-art {
        width: 64px;
        height: 56px;
    }
}

.elh-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.elh-navbar .nav-menu-icon {
    font-size: .8rem;
    opacity: .85;
    width: 1rem;
    text-align: center;
}

.elh-footer {
    background: #fff;
    border-top: 1px solid #dee2e6;
}

.btn-elh-primary {
    background: var(--elh-accent);
    border-color: var(--elh-accent);
    color: #fff;
}

.btn-elh-primary:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

.hero-section {
    background: linear-gradient(135deg, var(--elh-primary) 0%, #0f2744 60%, var(--elh-accent) 100%);
    border-radius: 0 0 1.5rem 1.5rem;
}

.feature-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    border: 1px solid #e9ecef;
}

.feature-icon {
    font-size: 1.75rem;
    color: var(--elh-accent);
    margin-bottom: .75rem;
}

.auth-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}

/* ═══════════════════════════════════════════
   Premium Auth (Login / Register)
   ═══════════════════════════════════════════ */

body.body-auth {
    background: #f4f7fb;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--home-text);
}

body.body-auth .auth-main {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-page {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 3rem;
    min-height: calc(100vh - 76px);
}

.auth-page-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-page-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.auth-page-orb--purple {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -80px;
    background: radial-gradient(circle, rgba(124, 58, 237, .18) 0%, transparent 68%);
}

.auth-page-orb--blue {
    width: 380px;
    height: 380px;
    right: -60px;
    bottom: -100px;
    background: radial-gradient(circle, rgba(37, 99, 235, .14) 0%, transparent 70%);
}

.auth-page-orb--teal {
    width: 300px;
    height: 300px;
    top: 45%;
    right: 12%;
    background: radial-gradient(circle, rgba(20, 184, 166, .12) 0%, transparent 70%);
}

.auth-shell--register {
    width: min(100%, 980px);
}

.auth-page--register {
    padding: 2rem 1.25rem 2.5rem;
    align-items: center;
}

.auth-page-bg--register .auth-page-orb,
.auth-page-bg--register .auth-page-grid {
    display: none;
}

.auth-register-dots {
    position: absolute;
    width: 180px;
    height: 180px;
    background-image: radial-gradient(rgba(26, 109, 255, .22) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: .55;
}

.auth-register-dots--tl {
    top: 28px;
    left: 28px;
}

.auth-register-dots--tr {
    top: 28px;
    right: 28px;
}

.auth-register-waves {
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'%3E%3Cpath fill='none' stroke='%23cbd5e1' stroke-width='1.2' opacity='.35' d='M0 520 C200 460 300 580 500 520 S800 440 1200 500'/%3E%3Cpath fill='none' stroke='%23cbd5e1' stroke-width='1.2' opacity='.25' d='M0 600 C250 540 400 660 650 590 S950 520 1200 580'/%3E%3C/svg%3E") center bottom / cover no-repeat;
    opacity: .7;
}

.auth-register-wave {
    position: absolute;
    right: -120px;
    bottom: -140px;
    width: 520px;
    height: 380px;
    background: linear-gradient(145deg, #1a6dff 0%, #0d4fd4 55%, #1e40af 100%);
    border-radius: 42% 58% 38% 62% / 48% 42% 58% 52%;
    opacity: .92;
    transform: rotate(-8deg);
}

.auth-register-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 28px 70px rgba(26, 43, 74, .12),
        0 0 0 1px rgba(226, 232, 240, .9);
}

.auth-register-promo {
    position: relative;
    padding: 2.4rem 2.2rem 2rem;
    background: linear-gradient(180deg, #f5f8fd 0%, #eef3fb 100%);
    border-right: 1px solid #e8edf5;
    overflow: hidden;
    min-height: 100%;
}

.auth-register-promo-inner {
    position: relative;
    z-index: 2;
}

.auth-register-headline {
    margin: 0 0 .85rem;
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--home-text);
}

.auth-register-headline-accent {
    color: var(--home-blue);
}

.auth-register-lead {
    margin: 0 0 1.6rem;
    font-size: .92rem;
    line-height: 1.6;
    color: var(--home-text-muted);
    max-width: 26rem;
}

.auth-register-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-register-features li {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.auth-register-feature-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.auth-register-feature-icon--lessons {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.auth-register-feature-icon--progress {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.auth-register-feature-icon--listen {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.auth-register-feature-icon--goals {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.auth-register-feature-text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.auth-register-feature-text strong {
    font-size: .9rem;
    font-weight: 700;
    color: var(--home-text);
}

.auth-register-feature-text span {
    font-size: .8rem;
    line-height: 1.45;
    color: var(--home-text-muted);
}

.auth-register-illustration {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 170px;
    pointer-events: none;
    z-index: 1;
}

.auth-register-illustration-book {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-58%);
    font-size: 5.5rem;
    color: rgba(26, 109, 255, .1);
}

.auth-register-illustration-bubble {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    color: rgba(26, 109, 255, .35);
    box-shadow: 0 8px 24px rgba(26, 77, 180, .08);
}

.auth-register-illustration-bubble--1 {
    width: 52px;
    height: 52px;
    left: 58%;
    bottom: 72px;
    font-size: 1.1rem;
}

.auth-register-illustration-bubble--2 {
    width: 40px;
    height: 40px;
    left: 68%;
    bottom: 28px;
    font-size: .85rem;
}

.auth-register-form-panel {
    padding: 2rem 2.1rem 1.65rem;
    background: #fff;
}

.auth-card-head--register {
    text-align: left;
    margin-bottom: 1.35rem;
}

.auth-card-head--register .auth-brand-icon {
    margin: 0 0 .85rem;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.15rem;
}

.auth-card-head--register .auth-card-title {
    font-size: 1.45rem;
}

.auth-card-head--register .auth-card-sub {
    font-size: .86rem;
}

.auth-form--register {
    gap: .85rem;
}

.auth-input--register {
    min-height: 46px;
    border-radius: 10px;
    background: #fff;
}

.auth-brand-icon--register {
    background: linear-gradient(135deg, #1a6dff 0%, #6366f1 100%);
    box-shadow: 0 10px 24px rgba(26, 109, 255, .28);
}

.auth-submit-btn--register {
    background: linear-gradient(135deg, #1a6dff 0%, #0d4fd4 100%);
    box-shadow: 0 12px 28px rgba(26, 109, 255, .32);
    border-radius: 12px;
    min-height: 48px;
}

.auth-submit-btn--register:hover {
    box-shadow: 0 16px 32px rgba(26, 109, 255, .38);
}

.auth-footnote--register {
    margin-top: 1.15rem;
    justify-content: flex-start;
    text-align: left;
    font-size: .74rem;
}

.auth-page-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(148, 163, 184, .18) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
}

.auth-card-premium {
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 24px;
    padding: 2rem 1.85rem 1.75rem;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, .1),
        0 0 0 1px rgba(255, 255, 255, .65) inset;
    backdrop-filter: blur(12px);
}

.auth-card-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto .9rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 12px 28px rgba(99, 102, 241, .32);
}

.auth-card-title {
    margin: 0 0 .35rem;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--home-text);
}

.auth-card-sub {
    margin: 0;
    font-size: .9rem;
    color: var(--home-text-muted);
    line-height: 1.5;
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    min-height: 40px;
    padding: .55rem .9rem;
    border-radius: 12px;
    border: 1px solid #e2e8f3;
    background: #fff;
    color: var(--home-text);
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
    transition: border-color .15s, box-shadow .2s, transform .15s;
}

.auth-google-btn:hover {
    color: var(--home-text);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.auth-google-btn--disabled,
.auth-google-btn--disabled:hover {
    opacity: .72;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
    background: #f8fafc;
}

.auth-google-hint {
    margin: .55rem 0 0;
    text-align: center;
    font-size: .72rem;
    color: #94a3b8;
    line-height: 1.4;
}

.auth-google-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-google-mark img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.15rem 0 1.25rem;
    color: #94a3b8;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8edf5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-alert {
    padding: .7rem .85rem;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: .84rem;
    margin: 0;
    list-style: none;
}

.auth-alert:empty {
    display: none;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.auth-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--home-text);
    margin: 0;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: .95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .92rem;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    min-height: 48px;
    padding: .7rem 1rem .7rem 2.65rem;
    border: 1px solid #e2e8f3;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--home-text);
    font-size: .92rem;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.auth-input:focus {
    outline: none;
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

.auth-field-error {
    color: #dc2626;
    font-size: .78rem;
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    font-size: .84rem;
    color: var(--home-text-muted);
    cursor: pointer;
    user-select: none;
}

.auth-check-input {
    width: 1rem;
    height: 1rem;
    accent-color: #6366f1;
}

.auth-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-height: 50px;
    margin-top: .15rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(13, 148, 136, .32);
    transition: transform .15s, box-shadow .2s, filter .2s;
    cursor: pointer;
}

.auth-submit-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(13, 148, 136, .38);
    filter: brightness(1.02);
}

.auth-switch {
    margin: 1.2rem 0 0;
    text-align: center;
    font-size: .86rem;
    color: var(--home-text-muted);
}

.auth-switch a {
    color: #6366f1;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.auth-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin: 1rem 0 0;
    font-size: .76rem;
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 991.98px) {
    .auth-register-split {
        grid-template-columns: 1fr;
    }

    .auth-register-promo {
        border-right: none;
        border-bottom: 1px solid #e8edf5;
        padding: 1.75rem 1.5rem 1.5rem;
    }

    .auth-register-illustration {
        display: none;
    }

    .auth-register-features {
        gap: .9rem;
    }

    .auth-register-form-panel {
        padding: 1.65rem 1.5rem 1.5rem;
    }

    .auth-page--register {
        align-items: center;
    }
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 1.5rem .85rem 2rem;
        min-height: calc(100vh - 68px);
    }

    .auth-page--register {
        padding: 1.25rem .75rem 1.75rem;
    }

    .auth-register-split {
        border-radius: 20px;
    }

    .auth-register-promo {
        padding: 1.35rem 1.15rem 1.25rem;
    }

    .auth-register-headline {
        font-size: 1.3rem;
    }

    .auth-register-lead {
        margin-bottom: 1.15rem;
        font-size: .86rem;
    }

    .auth-register-form-panel {
        padding: 1.35rem 1.15rem 1.25rem;
    }

    .auth-register-wave {
        width: 320px;
        height: 240px;
        right: -80px;
        bottom: -100px;
    }

    .auth-card-premium {
        padding: 1.5rem 1.15rem 1.35rem;
        border-radius: 20px;
    }

    .auth-card-title {
        font-size: 1.35rem;
    }
}

/* ═══════════════════════════════════════════
   Premium Homepage
   ═══════════════════════════════════════════ */

body.body-home {
    background: #fff;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--home-text);
}

body.body-home .home-main {
    position: relative;
    z-index: 1;
    padding: 0;
    flex: 1;
}

body.body-home .home-main .container-fluid {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Describe the Scene — coming-soon practice module */
.describe-scene-page {
    padding-bottom: 3rem;
}

.describe-scene-hero {
    padding: 2.5rem 0 2rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(124, 58, 237, .08) 0%, transparent 42%),
        radial-gradient(circle at 100% 0%, rgba(26, 109, 255, .07) 0%, transparent 38%),
        linear-gradient(180deg, #f8f7ff 0%, #fff 100%);
    border-bottom: 1px solid var(--home-border);
}

.describe-scene-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .75rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.describe-scene-title {
    margin: 0 0 .75rem;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
    color: var(--home-text);
}

.describe-scene-highlight {
    color: #5b21b6;
}

.describe-scene-lead {
    max-width: 42rem;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--home-text-muted);
}

.describe-scene-body {
    padding-top: 2rem;
}

.describe-scene-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.describe-scene-card {
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--home-shadow);
}

.describe-scene-card--primary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #faf5ff 0%, #fff 55%, #f0f9ff 100%);
    border-color: rgba(124, 58, 237, .14);
}

.describe-scene-card-title {
    margin: 0 0 .65rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--home-text);
}

.describe-scene-card p,
.describe-scene-card li {
    font-size: .92rem;
    line-height: 1.6;
    color: var(--home-text-muted);
}

.describe-scene-steps,
.describe-scene-list {
    margin: 0;
    padding-left: 1.15rem;
}

.describe-scene-steps li + li,
.describe-scene-list li + li {
    margin-top: .45rem;
}

.describe-scene-cta {
    margin-top: 1.5rem;
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    border: 1px dashed rgba(124, 58, 237, .25);
    background: #fafafa;
    text-align: center;
}

.describe-scene-cta-text {
    margin: 0 0 1rem;
    color: var(--home-text-muted);
    font-size: .92rem;
}

.describe-scene-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
}

@media (max-width: 767.98px) {
    .describe-scene-grid {
        grid-template-columns: 1fr;
    }

    .describe-scene-hero {
        padding: 1.75rem 0 1.5rem;
    }
}

/* Describe the Scene — interactive mock */
.describe-scene-hero--slim {
    padding: .85rem 0 .7rem;
    background: #fff;
    border-bottom: 1px solid var(--home-border);
}

.describe-scene-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .35rem 1rem;
}

.describe-scene-title--slim {
    margin: 0;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.describe-scene-lead--slim {
    margin: 0;
    max-width: none;
    font-size: .84rem;
    line-height: 1.4;
    color: #2563eb;
}

.describe-scene-hero--compact {
    padding: 1.75rem 0 1.25rem;
}

.describe-scene-page--mock .describe-scene-body {
    padding-top: 1rem;
    padding-bottom: 3.5rem;
}

.describe-scene-formula {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem .5rem;
    margin-bottom: 1.25rem;
    padding: .65rem .85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
    border: 1px solid rgba(124, 58, 237, .12);
}

.describe-scene-formula-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .6rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--home-border);
    font-size: .78rem;
    font-weight: 700;
    color: var(--home-text);
}

.describe-scene-formula-chip i {
    color: #7c3aed;
    font-size: .72rem;
}

.describe-scene-formula-plus {
    color: #f97316;
    font-weight: 700;
    font-size: .85rem;
}

.describe-scene-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
    justify-items: center;
}

.describe-scene-workspace.is-intro {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    justify-items: stretch;
    align-items: center;
    gap: 1.5rem 2rem;
}

.describe-scene-workspace.is-intro .describe-scene-intro-panel {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
}

.describe-scene-workspace.is-intro .describe-scene-visual {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: min(680px, 100%);
    justify-self: end;
    position: static;
}

.describe-scene-workspace.is-intro .describe-scene-figure {
    box-shadow: 0 18px 48px rgba(37, 99, 235, .16), 0 6px 18px rgba(124, 58, 237, .12);
    border-color: #bfdbfe;
}

.describe-scene-workspace.is-intro .describe-scene-image {
    max-height: min(58vh, 520px);
    width: 100%;
    object-fit: cover;
}

.describe-scene-workspace.is-intro .describe-scene-baseline {
    display: none;
}

.describe-scene-intro-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 24rem;
    padding: .5rem 0 1rem;
}

.describe-scene-intro-notes {
    width: 100%;
    margin-bottom: 1.15rem;
    padding: .75rem .8rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed 0%, #eff6ff 100%);
    border: 1px solid #fdba74;
}

.describe-scene-intro-notes-label {
    margin: 0 0 .55rem;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #ea580c;
}

.describe-scene-intro-notes-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.describe-scene-intro-notes-list li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .82rem;
    line-height: 1.45;
    color: #1e3a8a;
}

.describe-scene-intro-note-icon {
    flex: 0 0 1.65rem;
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .72rem;
}

.describe-scene-intro-note-icon--purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.describe-scene-intro-note-icon--orange {
    background: #fff7ed;
    color: #ea580c;
}

.describe-scene-intro-note-icon--blue {
    background: #eff6ff;
    color: #2563eb;
}

.describe-scene-intro-note-icon--green {
    background: #ecfdf5;
    color: #059669;
}

.describe-scene-intro-note-icon--teal {
    background: #ecfeff;
    color: #0e7490;
}

.describe-scene-intro-eyebrow {
    margin: 0 0 .4rem;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #ea580c;
}

.describe-scene-intro-title {
    margin: 0 0 .5rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: #1e3a8a;
}

.describe-scene-intro-lead {
    margin: 0 0 .85rem;
    font-size: .95rem;
    line-height: 1.6;
    color: #2563eb;
}

.describe-scene-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .82rem 1.6rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(124, 58, 237, .35);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.describe-scene-start-btn:hover,
.describe-scene-start-btn:focus {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    box-shadow: 0 10px 28px rgba(124, 58, 237, .42);
}

.describe-scene-start-btn:active {
    transform: scale(.98);
}

.describe-scene-intro-start {
    width: 100%;
    margin-top: .85rem;
    display: flex;
    justify-content: center;
}

.describe-scene-start-btn--below-image {
    width: 100%;
    max-width: 100%;
}

.describe-scene-workspace.is-started .describe-scene-intro-start {
    display: none;
}

.describe-scene-workspace.is-started {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    justify-items: stretch;
    align-items: start;
    scroll-margin-top: .5rem;
}

.describe-scene-workspace.is-started .describe-scene-visual {
    grid-column: 1;
    grid-row: 1;
}

.describe-scene-workspace.is-started .describe-scene-guide {
    grid-column: 2;
    grid-row: 1;
}

.describe-scene-workspace.is-started .describe-scene-intro-panel {
    display: none !important;
}

.describe-scene-workspace.is-started .describe-scene-guide {
    display: block !important;
}

.describe-scene-workspace.is-started .describe-scene-baseline {
    display: block;
}

.describe-scene-visual {
    position: sticky;
    top: 5.5rem;
    width: 100%;
    will-change: transform;
}

.describe-scene-workspace.is-started .describe-scene-visual {
    max-width: none;
}

.describe-scene-workspace.is-started .describe-scene-image {
    max-height: none;
    object-fit: initial;
}

.describe-scene-workspace.is-started .describe-scene-figure {
    box-shadow: var(--home-shadow);
    border-color: var(--home-border);
    transition: box-shadow .4s ease, border-color .4s ease;
}

.describe-scene-guide.is-revealed {
    animation: describe-scene-guide-in .45s ease both;
}

@keyframes describe-scene-guide-in {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.describe-scene-figure {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow);
    background: #fff;
}

.describe-scene-image-btn {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    position: relative;
    line-height: 0;
}

.describe-scene-image-btn:hover .describe-scene-image,
.describe-scene-image-btn:focus-visible .describe-scene-image {
    transform: scale(1.02);
}

.describe-scene-image-btn:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

.describe-scene-image-zoom {
    position: absolute;
    right: .65rem;
    bottom: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #5b21b6;
    font-size: .82rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
}

.describe-scene-image-btn:hover .describe-scene-image-zoom,
.describe-scene-image-btn:focus-visible .describe-scene-image-zoom {
    opacity: 1;
    transform: translateY(0);
}

.describe-scene-image-modal__dialog {
    max-width: min(960px, calc(100vw - 1.5rem));
}

.describe-scene-image-modal__content {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #bfdbfe;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
}

.describe-scene-image-modal .modal-header {
    background: #fff;
    border-bottom: 1px solid var(--home-border);
}

.describe-scene-image-modal__eyebrow {
    margin: 0 0 .2rem;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #ea580c;
}

.describe-scene-image-modal__body {
    max-height: min(78vh, 760px);
    overflow-y: auto;
    padding: 1rem 1.1rem 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
}

.describe-scene-image-modal__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 12px 32px rgba(37, 99, 235, .16);
}

.describe-scene-image {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    transition: transform .25s ease;
}

.describe-scene-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem .75rem;
    font-size: .78rem;
    color: #1d4ed8;
    background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
    border-top: 1px solid #bfdbfe;
}

.describe-scene-caption-label {
    font-weight: 700;
    color: #6d28d9;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .68rem;
}

.describe-scene-baseline {
    margin-top: .85rem;
    padding: .85rem .95rem;
    border-radius: 12px;
    border: 1px dashed #93c5fd;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}

.describe-scene-baseline-label {
    margin: 0 0 .35rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #2563eb;
}

.describe-scene-baseline-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--home-text);
}

.describe-scene-baseline-hint {
    margin: .55rem 0 0;
    font-size: .82rem;
    color: #059669;
}

.describe-scene-guide {
    padding: 1.1rem 1.15rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--home-border);
    background: #fff;
    box-shadow: var(--home-shadow);
}

.describe-scene-progress {
    margin-bottom: 1rem;
}

.describe-scene-progress-track {
    height: 4px;
    border-radius: 999px;
    background: #dbeafe;
    overflow: hidden;
    margin-bottom: .55rem;
}

.describe-scene-progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c3aed, #1a6dff);
    transition: width .25s ease;
}

.describe-scene-progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.describe-scene-progress-steps li {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    color: #2563eb;
    background: #dbeafe;
    border: 2px solid #93c5fd;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.describe-scene-progress-steps li.is-active {
    color: #fff;
    background: #7c3aed;
    border-color: #6d28d9;
}

.describe-scene-progress-steps li.is-done {
    color: #059669;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.describe-scene-step-head {
    margin-bottom: .85rem;
}

.describe-scene-step-num {
    display: inline-block;
    margin-bottom: .35rem;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #7c3aed;
}

.describe-scene-step-title {
    margin: 0 0 .4rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--home-text);
    letter-spacing: -.02em;
}

.describe-scene-step-lead {
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: #111827;
}

.describe-scene-example {
    margin-bottom: .85rem;
    padding: .75rem .85rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ed 0%, #eff6ff 100%);
    border: 1px solid #fdba74;
}

.describe-scene-example-label {
    margin: 0 0 .5rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #ea580c;
}

.describe-scene-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.describe-scene-chip {
    display: inline-flex;
    padding: .28rem .55rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #fdba74;
    font-size: .82rem;
    font-weight: 600;
    color: #c2410c;
}

.describe-scene-chip:nth-child(6n+1):not(.describe-scene-chip--verb):not(.describe-scene-chip--how) {
    border-color: #fdba74;
    background: #fff7ed;
    color: #c2410c;
}

.describe-scene-chip:nth-child(6n+2):not(.describe-scene-chip--verb):not(.describe-scene-chip--how) {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.describe-scene-chip:nth-child(6n+3):not(.describe-scene-chip--verb):not(.describe-scene-chip--how) {
    border-color: #86efac;
    background: #f0fdf4;
    color: #15803d;
}

.describe-scene-chip:nth-child(6n+4):not(.describe-scene-chip--verb):not(.describe-scene-chip--how) {
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #6d28d9;
}

.describe-scene-chip:nth-child(6n+5):not(.describe-scene-chip--verb):not(.describe-scene-chip--how) {
    border-color: #67e8f9;
    background: #ecfeff;
    color: #0e7490;
}

.describe-scene-chip:nth-child(6n+6):not(.describe-scene-chip--verb):not(.describe-scene-chip--how) {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #b45309;
}

.describe-scene-chip--verb {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.describe-scene-chip--how {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #b45309;
}

.describe-scene-pairs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.describe-scene-pairs li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    font-size: .88rem;
    color: #2563eb;
}

.describe-scene-pairs li + li {
    margin-top: .4rem;
}

.describe-scene-pairs li span:not(.describe-scene-pairs-vrule) {
    display: inline-flex;
    min-width: 3.5rem;
    padding: .15rem .45rem;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid #fdba74;
    background: #fff7ed;
    color: #c2410c;
}

.describe-scene-pairs li:nth-child(5n+2) span:not(.describe-scene-pairs-vrule) {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.describe-scene-pairs li:nth-child(5n+3) span:not(.describe-scene-pairs-vrule) {
    border-color: #86efac;
    background: #f0fdf4;
    color: #15803d;
}

.describe-scene-pairs li:nth-child(5n+4) span:not(.describe-scene-pairs-vrule) {
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #6d28d9;
}

.describe-scene-pairs li:nth-child(5n+5) span:not(.describe-scene-pairs-vrule) {
    border-color: #67e8f9;
    background: #ecfeff;
    color: #0e7490;
}

.describe-scene-pairs li strong {
    color: #0f766e;
    font-weight: 800;
}

.describe-scene-pairs li:nth-child(5n+2) strong { color: #1d4ed8; }
.describe-scene-pairs li:nth-child(5n+3) strong { color: #b45309; }
.describe-scene-pairs li:nth-child(5n+4) strong { color: #7c3aed; }
.describe-scene-pairs li:nth-child(5n+5) strong { color: #be185d; }

.describe-scene-pairs--compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .3rem .45rem;
    align-items: center;
}

.describe-scene-pairs--compact li {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    flex-wrap: nowrap;
    min-width: 0;
    padding: .08rem 0;
    font-size: .82rem;
}

.describe-scene-pairs--compact li + li {
    margin-top: 0;
}

@media (min-width: 576px) {
    .describe-scene-pairs--compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .describe-scene-pairs--compact {
        display: flex;
        flex-wrap: wrap;
        gap: .35rem .55rem;
    }
}

.describe-scene-pairs-vrule {
    flex: 0 0 1px;
    align-self: stretch;
    width: 1px;
    min-height: 1.1rem;
    background: linear-gradient(180deg, #fdba74 0%, #93c5fd 100%);
    opacity: .85;
}

.describe-scene-pairs--compact li span:not(.describe-scene-pairs-vrule) {
    flex: 0 0 auto;
    min-width: 2.35rem;
    padding: .1rem .35rem;
    font-size: .78rem;
    justify-content: center;
}

.describe-scene-pairs--compact li strong {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
    font-size: .82rem;
}

.describe-scene-list--compact {
    padding-left: 1.1rem;
}

.describe-scene-list--compact li {
    font-size: .88rem;
    color: #1e3a8a;
}

.describe-scene-list--compact li strong {
    color: #ea580c;
}

.describe-scene-field {
    display: block;
    margin-bottom: .75rem;
}

.describe-scene-field-label {
    display: block;
    margin-bottom: .35rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--home-text);
}

.describe-scene-field-input {
    width: 100%;
    padding: .55rem .65rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: .9rem;
    line-height: 1.5;
    resize: vertical;
}

.describe-scene-field-input:focus {
    outline: 2px solid rgba(124, 58, 237, .35);
    border-color: #a78bfa;
}

.describe-scene-field-input--large {
    min-height: 7rem;
}

.describe-scene-read-hint {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin: .5rem 0 0;
    padding: .65rem .75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ed 0%, #eff6ff 100%);
    border: 1px solid #fdba74;
    font-size: .88rem;
    line-height: 1.5;
    color: #1e3a8a;
    font-weight: 500;
}

.describe-scene-read-hint i {
    margin-top: .15rem;
    color: #f97316;
}

.describe-scene-read-hint--final {
    margin-top: .75rem;
}

.describe-scene-live {
    margin-top: .25rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
    border: 1px solid rgba(124, 58, 237, .18);
}

.describe-scene-live-label {
    margin: 0 0 .35rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6d28d9;
}

.describe-scene-live-text {
    margin: 0 0 .5rem;
    padding: .7rem .9rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
    font-family: Georgia, "Times New Roman", "Palatino Linotype", serif;
    font-size: 1.1rem;
    line-height: 1.65;
    color: #1e3a8a;
    font-weight: 600;
    letter-spacing: .01em;
    text-shadow: 0 1px 2px rgba(37, 99, 235, .14), 0 2px 8px rgba(124, 58, 237, .1);
}

.describe-scene-live-text::before {
    content: '"';
    color: #7c3aed;
    font-weight: 700;
    margin-right: .12em;
}

.describe-scene-live-text::after {
    content: '"';
    color: #7c3aed;
    font-weight: 700;
    margin-left: .08em;
}

.describe-scene-live-mark {
    padding: 0 .12em;
    margin: 0;
    border-radius: 4px;
    color: #6d28d9;
    font-weight: 800;
    line-height: inherit;
    vertical-align: baseline;
    background: transparent;
    border: 1px solid #c4b5fd;
}

.describe-scene-live-help {
    margin: 0 0 .75rem;
    font-size: .82rem;
    line-height: 1.45;
    color: #2563eb;
}

.describe-scene-live-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.describe-scene-live-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .55rem .95rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.describe-scene-live-btn:active {
    transform: scale(.98);
}

.describe-scene-live-btn--mic {
    background: #7c3aed;
    border-color: #6d28d9;
    color: #fff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, .28);
}

.describe-scene-live-btn--mic:hover,
.describe-scene-live-btn--mic:focus {
    background: #6d28d9;
}

.describe-scene-live-btn--mic.is-listening {
    background: #dc2626;
    border-color: #b91c1c;
    box-shadow: 0 4px 14px rgba(220, 38, 38, .3);
    animation: describe-scene-pulse 1.2s ease-in-out infinite;
}

.describe-scene-live-btn--mic:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}

.describe-scene-live-btn--listen {
    background: #fff;
    border-color: #c4b5fd;
    color: #5b21b6;
}

.describe-scene-live-btn--listen:hover:not(:disabled),
.describe-scene-live-btn--listen:focus:not(:disabled) {
    background: #f5f3ff;
    border-color: #a78bfa;
}

.describe-scene-live-btn--listen.is-ready {
    border-color: #7c3aed;
    color: #5b21b6;
    background: #faf5ff;
}

.describe-scene-live-btn--listen:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.describe-scene-live-status {
    margin: .65rem 0 0;
    font-size: .78rem;
    line-height: 1.45;
    color: #ea580c;
    min-height: 1.1rem;
}

@keyframes describe-scene-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(220, 38, 38, .3); }
    50% { box-shadow: 0 4px 22px rgba(220, 38, 38, .55); }
}

.describe-scene-result {
    margin-bottom: .75rem;
    padding: .8rem .9rem;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.describe-scene-result--meaning {
    border-color: #ddd6fe;
    background: #faf5ff;
}

.describe-scene-result-label {
    margin: 0 0 .4rem;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #047857;
}

.describe-scene-result--meaning .describe-scene-result-label {
    color: #6d28d9;
}

.describe-scene-result-text {
    margin: 0;
    font-size: .92rem;
    line-height: 1.65;
    color: var(--home-text);
}

.describe-scene-mock-note {
    margin: .5rem 0 0;
    font-size: .8rem;
    color: #2563eb;
}

.describe-scene-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding-top: .35rem;
}

.describe-scene-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-width: 8.5rem;
    padding: .72rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease, transform .1s ease;
}

.describe-scene-nav-btn:active:not(:disabled) {
    transform: scale(.98);
}

.describe-scene-nav-btn--back {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .12);
}

.describe-scene-nav-btn--back:hover:not(:disabled),
.describe-scene-nav-btn--back:focus:not(:disabled) {
    background: #dbeafe;
    border-color: #60a5fa;
}

.describe-scene-nav-btn--back:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.describe-scene-nav-btn--next {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: #6d28d9;
    color: #fff;
    box-shadow: 0 6px 18px rgba(124, 58, 237, .32);
}

.describe-scene-nav-btn--next:hover,
.describe-scene-nav-btn--next:focus {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    box-shadow: 0 8px 22px rgba(124, 58, 237, .38);
}

.describe-scene-nav-btn--next.describe-scene-nav-btn--restart {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #047857;
    box-shadow: 0 6px 18px rgba(5, 150, 105, .28);
}

@media (max-width: 991.98px) {
    .describe-scene-workspace.is-intro {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .describe-scene-workspace.is-intro .describe-scene-intro-panel,
    .describe-scene-workspace.is-intro .describe-scene-visual {
        grid-column: 1;
        justify-self: stretch;
        max-width: none;
    }

    .describe-scene-workspace.is-intro .describe-scene-intro-panel {
        order: 1;
    }

    .describe-scene-workspace.is-intro .describe-scene-visual {
        order: 2;
    }

    .describe-scene-workspace.is-started {
        grid-template-columns: 1fr;
    }

    .describe-scene-workspace.is-started .describe-scene-visual,
    .describe-scene-workspace.is-started .describe-scene-guide {
        grid-column: 1;
    }

    .describe-scene-workspace.is-intro .describe-scene-image {
        max-height: min(46vh, 400px);
    }

    .describe-scene-workspace.is-started .describe-scene-visual {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .describe-scene-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: .2rem;
    }

    .describe-scene-formula {
        justify-content: flex-start;
    }

    .describe-scene-nav {
        flex-direction: column-reverse;
    }

    .describe-scene-nav-btn {
        width: 100%;
    }

    .describe-scene-live-actions {
        flex-direction: column;
    }

    .describe-scene-live-btn {
        width: 100%;
    }
}

.describe-scene-hub {
    padding-bottom: 3rem;
}

.describe-scene-hub-eyebrow {
    margin: 0 0 .35rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6d28d9;
}

.describe-scene-hub-body {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.describe-scene-hub-empty {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #475569;
    text-align: center;
}

.describe-scene-browse-head {
    margin-bottom: 1.5rem;
}

.describe-scene-scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.describe-scene-scene-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--home-border);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .08);
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.describe-scene-scene-card:hover,
.describe-scene-scene-card:focus {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .14);
    color: inherit;
}

.describe-scene-scene-card__media {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    overflow: hidden;
}

.describe-scene-scene-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.describe-scene-scene-card__placeholder,
.describe-scene-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 12rem;
    color: #93c5fd;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
}

.describe-scene-scene-card__body {
    padding: .85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1 1 auto;
}

.describe-scene-scene-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--home-text);
    line-height: 1.3;
}

.describe-scene-scene-card__subtitle {
    margin: 0;
    font-size: .82rem;
    color: #475569;
    line-height: 1.4;
}

.describe-scene-scene-card__meta {
    margin: .35rem 0 0;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6d28d9;
}

.home-particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 45%, #ffffff 100%);
}

/* ── Navbar ── */
.home-header {
    position: relative;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--home-border);
    font-size: 16px;
}

.elh-site-header .home-nav-links .nav-link,
.elh-site-header .home-nav-dropdown.is-active-group > .nav-link {
    font-size: var(--elh-nav-link-font-size) !important;
    padding: var(--elh-nav-link-padding-y) var(--elh-nav-link-padding-x) !important;
}

.elh-site-header .nav-menu-icon {
    font-size: var(--elh-nav-icon-font-size) !important;
}

.elh-site-header .btn-home-download {
    font-size: var(--elh-nav-link-font-size) !important;
}

.elh-site-header .home-user-meta strong {
    font-size: var(--elh-nav-link-font-size) !important;
}

.home-navbar {
    padding: .65rem 0;
    background: #fff !important;
}

.home-navbar > .container-fluid {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@media (min-width: 992px) {
    .home-navbar > .container-fluid {
        position: relative;
    }

    .home-navbar .navbar-collapse {
        flex: 1 1 0%;
        min-width: 0;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: .75rem;
        position: static;
        padding-right: 0;
    }

    .home-navbar .home-nav-links {
        justify-content: center;
        margin: 0 auto !important;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .home-navbar .home-nav-actions {
        position: static;
        transform: none;
        margin: 0 !important;
        z-index: 3;
        flex: 0 0 auto;
    }

    .home-nav-download-item {
        margin-right: 0;
    }
}

.home-navbar .navbar-brand.home-brand {
    margin-left: 0;
    padding-left: 0;
    text-align: left;
}

.home-brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--home-text) !important;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.home-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.home-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.home-brand-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--home-text);
}

.home-brand-tagline {
    font-size: .72rem;
    font-weight: 500;
    color: var(--home-text-muted);
    margin-top: .12rem;
}

.home-user-chip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .2rem .35rem .2rem .2rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    max-width: 100%;
}

.home-user-chip-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 999px;
    transition: background .15s ease;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: .55rem;
    flex-wrap: nowrap;
    max-width: 100%;
    padding: .2rem .45rem .2rem .2rem;
    line-height: 1;
}

.home-user-dropdown .home-user-chip-toggle.dropdown-toggle::after {
    display: none;
}

.home-user-chip-toggle:hover,
.home-user-dropdown.show .home-user-chip-toggle {
    background: #f5f3ff;
}

.home-user-chevron {
    font-size: .62rem;
    color: var(--home-text-muted);
    margin-left: .1rem;
    transition: transform .15s ease;
    flex-shrink: 0;
    align-self: center;
}

.home-user-dropdown.show .home-user-chevron {
    transform: rotate(180deg);
}

.home-user-menu {
    min-width: 220px;
    padding: .45rem;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
    margin-top: .45rem !important;
}

.home-user-menu .dropdown-item {
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    padding: .55rem .75rem;
    color: var(--home-text);
}

.home-user-menu .dropdown-item:hover,
.home-user-menu .dropdown-item:focus {
    background: #f5f3ff;
    color: #6d28d9;
}

.home-user-menu .dropdown-item.active {
    background: #ede9fe;
    color: #6d28d9;
}

.home-user-logout-form {
    margin: 0;
}

.home-user-menu-logout {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
}

.home-user-menu-logout:hover,
.home-user-menu-logout:focus {
    color: #dc2626;
    background: #fef2f2;
}

.home-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    font-weight: 800;
    flex-shrink: 0;
}

.home-user-avatar--initial {
    line-height: 1;
    font-size: .78rem;
    letter-spacing: -.02em;
}

.home-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
    flex-shrink: 1;
}

.home-user-meta strong {
    font-size: var(--elh-nav-link-font-size);
    color: var(--home-text);
}

.home-user-meta small {
    font-size: .72rem;
    color: var(--home-text-muted);
}

.home-user-logout {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--home-border);
    background: #fff;
    color: var(--home-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}

.home-user-logout:hover {
    border-color: #c4b5fd;
    color: #7c3aed;
    background: #faf5ff;
}

.home-nav-links {
    align-items: center;
    gap: .1rem;
    flex-wrap: nowrap;
}

.home-nav-links .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.home-nav-links .nav-link {
    color: var(--home-nav-inactive) !important;
    font-weight: 500;
    font-size: var(--elh-nav-link-font-size);
    padding: var(--elh-nav-link-padding-y) var(--elh-nav-link-padding-x) !important;
    position: relative;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1.2;
    border: 1px solid transparent;
}

.nav-menu-icon {
    font-size: var(--elh-nav-icon-font-size);
    opacity: .88;
    width: .95rem;
    text-align: center;
    flex-shrink: 0;
    color: var(--home-nav-icon);
    transition: opacity .18s ease, color .18s ease;
}

.home-nav-links .nav-link:hover {
    color: #6366f1 !important;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.home-nav-links .nav-link:hover .nav-menu-icon {
    opacity: 1;
    color: #6366f1;
}

.home-nav-links .nav-link.active {
    color: var(--home-nav-active) !important;
    font-weight: 700;
    background: var(--home-nav-active-bg);
    border-color: var(--home-nav-active-border);
    box-shadow:
        0 2px 10px rgba(99, 102, 241, .16),
        inset 0 -2px 0 #7c3aed;
}

.home-nav-links .nav-link.active .nav-menu-icon {
    opacity: 1;
    color: var(--home-nav-active);
}

.home-nav-links .nav-item:has(.nav-link.active)::after {
    display: none;
}

.home-nav-download-item {
    margin-right: .35rem;
}

.btn-home-download {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .56rem 1rem;
    font-size: var(--elh-nav-link-font-size);
    font-weight: 600;
    line-height: 1.2;
    color: #fff !important;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 52%, #4f46e5 100%);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(99, 102, 241, .22);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    white-space: nowrap;
}

.btn-home-download:hover,
.btn-home-download:focus {
    color: #fff !important;
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, .28);
}

.btn-home-download.is-active {
    box-shadow:
        0 4px 14px rgba(99, 102, 241, .3),
        inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.home-nav-download-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: #f59e0b;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, .55);
    animation: home-nav-download-pulse 2.4s ease-in-out infinite;
}

@keyframes home-nav-download-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, .5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
}

.home-nav-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.home-nav-actions > .home-user-dropdown {
    display: flex;
    align-items: center;
}

.home-user-dropdown .home-user-chip-toggle > * {
    flex: 0 0 auto;
}

.home-user-dropdown .home-user-meta {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-nav-dropdown .dropdown-toggle::after {
    margin-left: .3rem;
    vertical-align: .12em;
    opacity: .45;
    transition: opacity .18s ease;
    border-width: .28em .28em 0;
}

.home-nav-dropdown .nav-link:hover.dropdown-toggle::after,
.home-nav-dropdown.is-active-group > .nav-link.dropdown-toggle::after {
    opacity: .75;
}

.dropdown-icon {
    width: 1rem;
    margin-right: .5rem;
    color: #7c3aed;
    opacity: .75;
    text-align: center;
}

.home-nav-dropdown-menu {
    border: 1px solid var(--home-border);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .14);
    padding: .45rem;
    min-width: 14rem;
}

.home-nav-dropdown-menu .dropdown-item {
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 600;
    padding: .55rem .8rem;
    color: var(--home-nav-inactive);
    transition: background .15s ease, color .15s ease;
}

.home-nav-dropdown-menu .dropdown-item:hover,
.home-nav-dropdown-menu .dropdown-item:focus {
    background: #f5f3ff;
    color: #6d28d9;
}

.home-nav-dropdown-menu .dropdown-item.active,
.home-nav-dropdown-menu .dropdown-item:active {
    background: var(--home-nav-active-bg);
    color: var(--home-nav-active);
    border: 1px solid var(--home-nav-active-border);
    box-shadow: 0 2px 8px rgba(99, 102, 241, .12);
}

.home-nav-soon {
    display: inline-block;
    margin-left: .35rem;
    padding: .1rem .4rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: rgba(148, 163, 184, .2);
    color: #64748b;
    vertical-align: middle;
}

.home-nav-dropdown.is-active-group > .nav-link {
    color: var(--home-nav-active) !important;
    font-weight: 700;
    background: var(--home-nav-active-bg);
    border: 1px solid var(--home-nav-active-border);
    box-shadow:
        0 2px 10px rgba(99, 102, 241, .16),
        inset 0 -2px 0 #7c3aed;
}

.home-nav-dropdown.is-active-group > .nav-link .nav-menu-icon {
    opacity: 1;
    color: var(--home-nav-active);
}

.module-coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 5rem);
    padding: 2rem 1rem;
}

.module-coming-soon-card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--home-shadow);
}

.module-coming-soon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    color: var(--home-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.module-coming-soon-eyebrow {
    margin: 0 0 .35rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--home-muted);
}

.module-coming-soon-title {
    margin: 0 0 .75rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--home-text);
}

.module-coming-soon-lead {
    margin: 0 0 .75rem;
    color: var(--home-muted);
    line-height: 1.55;
}

.module-coming-soon-note {
    margin: 0 0 1.5rem;
    font-size: .9rem;
    color: var(--home-muted);
}

.module-coming-soon-actions {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    align-items: stretch;
}

.module-coming-soon-actions .btn-link {
    color: var(--home-muted);
    text-decoration: none;
    font-size: .875rem;
}

.btn-home-signin {
    color: #475569 !important;
    font-weight: 500;
    font-size: .84rem;
    padding: .48rem .9rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.btn-home-signin:hover {
    color: #7c3aed !important;
    border-color: #ddd6fe;
    background: #faf5ff;
}

.btn-home-register {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: #fff !important;
    font-weight: 600;
    font-size: .84rem;
    padding: .48rem .9rem;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
    transition: filter .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn-home-register:hover {
    color: #fff !important;
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(99, 102, 241, .28);
    transform: translateY(-1px);
}

.btn-home-outline {
    color: var(--home-text);
    border: 1.5px solid var(--home-border);
    background: #fff;
    font-weight: 500;
    padding: .45rem 1rem;
    border-radius: 8px;
}

.btn-home-outline:hover {
    border-color: var(--home-blue);
    color: var(--home-blue);
}

.home-navbar .navbar-toggler {
    border-color: var(--home-border);
}

.home-toggler-icon {
    filter: invert(30%);
}

/* ── Hero ── */
.home-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, .72) 0%, rgba(240, 247, 255, .58) 48%, rgba(255, 255, 255, .68) 100%);
    padding: 2.5rem 0 1.25rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.home-hero-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 1.5rem 2.5rem;
    align-items: center;
}

.home-hero-copy {
    max-width: 560px;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--home-blue-light);
    color: var(--home-blue);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .01em;
    padding: .45rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.home-hero-badge i {
    font-size: .72rem;
}

.home-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--home-text);
    margin-bottom: 1.25rem;
    letter-spacing: -.02em;
}

.home-hero-title-line {
    white-space: nowrap;
}

.home-hero-highlight {
    background: linear-gradient(135deg, #6366f1 0%, #1a6dff 55%, #0ea5e9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero-subtitle {
    font-size: 1.05rem;
    color: #000;
    line-height: 1.7;
    margin-bottom: .85rem;
}

.home-hero-tagline {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .95rem;
    color: #000;
    line-height: 1.55;
    margin-bottom: 1.75rem;
    padding-left: .15rem;
}

.home-hero-tagline i {
    color: #6366f1;
    margin-top: .2rem;
    flex-shrink: 0;
}

.home-hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
}

.home-hero-actions .btn-home-cta {
    flex: 1 1 calc(50% - .35rem);
    min-width: min(100%, 12.5rem);
    width: auto;
    min-height: 3.7rem;
    padding: .68rem .72rem;
    gap: .55rem;
    border-radius: 16px;
}

.home-hero-actions .btn-home-cta-icon {
    width: 2.15rem;
    height: 2.15rem;
    font-size: .78rem;
}

.home-hero-actions .btn-home-cta-arrow {
    width: 1.55rem;
    height: 1.55rem;
    font-size: .6rem;
}

.home-hero-actions .btn-home-cta-title {
    font-size: .8rem;
    line-height: 1.2;
}

.home-hero-actions .btn-home-cta-sub {
    font-size: .68rem;
    line-height: 1.25;
}

.btn-home-cta {
    width: 100%;
    min-height: 4.35rem;
    padding: .85rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    text-align: left;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn-home-cta:hover,
.btn-home-cta:focus {
    color: #fff;
    transform: translateY(-1px);
}

.btn-home-cta:active {
    transform: translateY(0);
}

.btn-home-cta-icon,
.btn-home-cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-home-cta-icon {
    width: 2.65rem;
    height: 2.65rem;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: .95rem;
}

.btn-home-cta-arrow {
    width: 2rem;
    height: 2rem;
    margin-left: auto;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: .72rem;
}

.btn-home-cta-copy {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    min-width: 0;
}

.btn-home-cta-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .01em;
}

.btn-home-cta-sub {
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.3;
    opacity: .92;
}

.btn-home-cta--vocab {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 55%, #7c3aed 100%);
    box-shadow: 0 10px 28px rgba(79, 70, 229, .28);
}

.btn-home-cta--vocab:hover,
.btn-home-cta--vocab:focus {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 55%, #6d28d9 100%);
    box-shadow: 0 14px 32px rgba(79, 70, 229, .34);
}

.btn-home-cta--speaking {
    background: linear-gradient(135deg, #0f5f4f 0%, #0f766e 45%, #10b981 100%);
    box-shadow: 0 10px 28px rgba(15, 118, 110, .28);
}

.btn-home-cta--speaking:hover,
.btn-home-cta--speaking:focus {
    background: linear-gradient(135deg, #0d4f43 0%, #0f766e 45%, #059669 100%);
    box-shadow: 0 14px 32px rgba(15, 118, 110, .34);
}

.btn-home-cta:disabled,
.btn-home-cta[disabled] {
    opacity: .72;
    transform: none;
    cursor: not-allowed;
}

.btn-home-primary,
.btn-home-explore,
.btn-home-speaking {
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.3;
    padding: .42rem .9rem;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 0;
    letter-spacing: .01em;
}

.btn-home-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    flex-shrink: 0;
}

.btn-home-primary {
    background: linear-gradient(135deg, #1a6dff 0%, #4f46e5 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 6px 18px rgba(26, 109, 255, .22);
    transition: background .2s, box-shadow .2s, transform .15s;
}

.btn-home-primary .btn-home-icon {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.btn-home-primary:hover {
    background: linear-gradient(135deg, #0d4fd4 0%, #4338ca 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(26, 109, 255, .28);
    transform: translateY(-1px);
}

.btn-home-explore {
    color: var(--home-text);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(203, 213, 225, .95);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}

.btn-home-explore .btn-home-icon--muted {
    background: #f1f5f9;
    color: #6366f1;
    border: 1px solid #e2e8f0;
}

.btn-home-explore:hover {
    background: #fff;
    border-color: rgba(99, 102, 241, .35);
    color: #4338ca;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .1);
}

.btn-home-speaking {
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .02em;
    text-shadow: 0 1px 1px rgba(15, 23, 42, .12);
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 48%, #14b8a6 100%);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow:
        0 6px 18px rgba(15, 118, 110, .28),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: background .2s, box-shadow .2s, transform .15s, border-color .2s;
}

.btn-home-speaking .btn-home-icon--speaking {
    background: rgba(255, 255, 255, .2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    font-size: .68rem;
}

.btn-home-speaking:hover,
.btn-home-speaking:focus {
    color: #fff;
    background: linear-gradient(135deg, #0d5f59 0%, #0f766e 48%, #0d9488 100%);
    border-color: rgba(255, 255, 255, .3);
    box-shadow:
        0 10px 24px rgba(15, 118, 110, .34),
        inset 0 1px 0 rgba(255, 255, 255, .22);
    transform: translateY(-1px);
}

.btn-home-speaking:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(5, 150, 105, .25);
}

.home-hero-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    margin-top: 2.25rem;
    position: relative;
}

.home-hero-feature-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: .75rem;
    row-gap: .35rem;
    align-items: center;
    min-height: 7.5rem;
    padding: 1.15rem 1rem;
    overflow: hidden;
    isolation: isolate;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 243, .9);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-hero-feature-hex {
    --hex-outer-a: rgba(99, 102, 241, .24);
    --hex-outer-b: rgba(139, 92, 246, .16);
    --hex-inner-a: rgba(255, 255, 255, .98);
    --hex-inner-b: rgba(255, 255, 255, .72);
    --hex-glow: transparent;
    --hex-ring: 1px;
    position: absolute;
    top: .8rem;
    right: .85rem;
    width: 2.15rem;
    height: 2.48rem;
    pointer-events: none;
    z-index: 0;
}

.home-hero-feature-hex::before,
.home-hero-feature-hex::after {
    content: "";
    position: absolute;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.home-hero-feature-hex::before {
    inset: 0;
    background: linear-gradient(155deg, var(--hex-outer-a) 0%, var(--hex-outer-b) 100%);
}

.home-hero-feature-hex::after {
    top: var(--hex-ring);
    right: var(--hex-ring);
    bottom: var(--hex-ring);
    left: var(--hex-ring);
    background: linear-gradient(180deg, var(--hex-inner-a) 0%, var(--hex-inner-b) 100%);
}

.home-hero-feature-hex--ai {
    --hex-outer-a: rgba(99, 102, 241, .26);
    --hex-outer-b: rgba(167, 139, 250, .18);
    --hex-inner-b: rgba(237, 233, 254, .45);
}

.home-hero-feature-hex--review {
    --hex-outer-a: rgba(2, 132, 199, .24);
    --hex-outer-b: rgba(56, 189, 248, .16);
    --hex-inner-b: rgba(224, 242, 254, .42);
}

.home-hero-feature-hex--language {
    --hex-outer-a: rgba(5, 150, 105, .22);
    --hex-outer-b: rgba(52, 211, 153, .15);
    --hex-inner-b: rgba(220, 252, 231, .4);
}

.home-hero-feature-hex--progress {
    --hex-outer-a: rgba(234, 88, 12, .22);
    --hex-outer-b: rgba(251, 146, 60, .15);
    --hex-inner-b: rgba(255, 237, 213, .4);
}

.home-hero-feature-card::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -6px;
    width: 52px;
    height: 52px;
    opacity: .45;
    background-image: radial-gradient(rgba(99, 102, 241, .2) 1.5px, transparent 1.5px);
    background-size: 9px 9px;
    pointer-events: none;
    z-index: 0;
}

.home-hero-feature-card:nth-child(1) {
    background: linear-gradient(145deg, rgba(237, 233, 254, .5) 0%, rgba(255, 255, 255, .97) 58%);
}

.home-hero-feature-card:nth-child(2) {
    background: linear-gradient(145deg, rgba(224, 242, 254, .48) 0%, rgba(255, 255, 255, .97) 58%);
}

.home-hero-feature-card:nth-child(3) {
    background: linear-gradient(145deg, rgba(220, 252, 231, .42) 0%, rgba(255, 255, 255, .97) 58%);
}

.home-hero-feature-card:nth-child(4) {
    background: linear-gradient(145deg, rgba(255, 237, 213, .4) 0%, rgba(255, 255, 255, .97) 58%);
}

.home-hero-feature-card > * {
    position: relative;
    z-index: 1;
}

.home-hero-feature-card > .home-hero-feature-hex {
    position: absolute;
    z-index: 0;
}

.home-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.home-hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 620px;
    line-height: 0;
}

.home-hero-feature-card--clickable:hover,
.home-hero-feature-card--clickable:focus-visible {
    transform: translateY(-3px);
}

.home-hero-feature-card--clickable:nth-child(1):hover,
.home-hero-feature-card--clickable:nth-child(1):focus-visible {
    border-color: rgba(99, 102, 241, .35);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, .12),
        0 0 22px rgba(99, 102, 241, .18),
        0 14px 32px rgba(79, 70, 229, .12);
}

.home-hero-feature-card--clickable:nth-child(2):hover,
.home-hero-feature-card--clickable:nth-child(2):focus-visible {
    border-color: rgba(2, 132, 199, .35);
    box-shadow:
        0 0 0 1px rgba(2, 132, 199, .12),
        0 0 22px rgba(2, 132, 199, .18),
        0 14px 32px rgba(2, 132, 199, .12);
}

.home-hero-feature-card--clickable:nth-child(3):hover,
.home-hero-feature-card--clickable:nth-child(3):focus-visible {
    border-color: rgba(5, 150, 105, .35);
    box-shadow:
        0 0 0 1px rgba(5, 150, 105, .12),
        0 0 22px rgba(5, 150, 105, .18),
        0 14px 32px rgba(5, 150, 105, .12);
}

.home-hero-feature-card--clickable:nth-child(4):hover,
.home-hero-feature-card--clickable:nth-child(4):focus-visible {
    border-color: rgba(234, 88, 12, .35);
    box-shadow:
        0 0 0 1px rgba(234, 88, 12, .12),
        0 0 22px rgba(234, 88, 12, .18),
        0 14px 32px rgba(234, 88, 12, .12);
}

.home-hero-feature-card--clickable {
    cursor: pointer;
}

.home-hero-feature-card--clickable:focus-visible {
    outline: 2px solid rgba(99, 102, 241, .55);
    outline-offset: 2px;
}

.home-hero-feature-icon {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    margin-bottom: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
    align-self: center;
}

.home-hero-feature-icon--ai {
    background: linear-gradient(135deg, #ede9fe 0%, #e8f1ff 100%);
    color: #6366f1;
}

.home-hero-feature-icon--review {
    background: linear-gradient(135deg, #e0f2fe 0%, #e8f1ff 100%);
    color: #0284c7;
}

.home-hero-feature-icon--language {
    background: linear-gradient(135deg, #dcfce7 0%, #e8f1ff 100%);
    color: #059669;
}

.home-hero-feature-icon--progress {
    background: linear-gradient(135deg, #ffedd5 0%, #ede9fe 100%);
    color: #ea580c;
}

.home-hero-feature-title {
    grid-column: 2;
    grid-row: 1;
    font-size: .88rem;
    font-weight: 700;
    color: var(--home-text);
    margin: 0;
    line-height: 1.3;
    align-self: end;
}

.home-hero-feature-text {
    grid-column: 2;
    grid-row: 2;
    font-size: .74rem;
    color: #000;
    line-height: 1.5;
    margin: 0;
    padding-right: 1.75rem;
}

.home-hero-image {
    display: block;
    width: 100%;
    max-width: 620px;
    max-height: min(460px, 52vh);
    margin: 0 auto;
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 18px 36px rgba(79, 70, 229, .14));
}

/* ── Feature Cards ── */
.home-features {
    padding: 2rem 0 3.5rem;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.home-feature-card {
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem 1.5rem;
    height: 100%;
    position: relative;
    box-shadow: var(--home-shadow);
    transition: box-shadow .25s, transform .25s;
}

.home-feature-card:hover {
    box-shadow: var(--home-shadow-hover);
    transform: translateY(-4px);
}

.home-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--home-blue-light);
    color: var(--home-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.home-feature-card h5 {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--home-text);
    margin-bottom: .6rem;
}

.home-feature-card p {
    font-size: .875rem;
    color: var(--home-text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.home-feature-link {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--home-blue-light);
    color: var(--home-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.home-feature-link:hover {
    background: var(--home-blue);
    color: #fff;
}

.home-feature-link-static {
    cursor: default;
}

/* ── Experience (stats + pricing) ── */
.home-experience {
    padding: 2.5rem 0 3rem;
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 42%, #f8fafc 100%);
    position: relative;
    z-index: 1;
}

.home-experience-intro {
    margin-bottom: 1.35rem;
}

.home-experience-title {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 800;
    color: var(--home-text);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 .65rem;
}

.home-experience-highlight {
    color: var(--home-blue);
}

.home-experience-lead {
    margin: 0;
    max-width: 540px;
    font-size: .9rem;
    line-height: 1.55;
    color: #000;
}

.home-experience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.home-experience-tile {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .8rem .85rem;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
    min-height: 100%;
    transition:
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

.home-experience-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, .35);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, .14),
        0 10px 28px rgba(99, 102, 241, .16),
        0 4px 14px rgba(15, 23, 42, .06);
}

.home-experience-tile--purple:hover {
    border-color: rgba(109, 40, 217, .35);
    box-shadow:
        0 0 0 1px rgba(109, 40, 217, .14),
        0 10px 28px rgba(109, 40, 217, .16),
        0 4px 14px rgba(15, 23, 42, .06);
}

.home-experience-tile--green:hover {
    border-color: rgba(4, 120, 87, .35);
    box-shadow:
        0 0 0 1px rgba(4, 120, 87, .14),
        0 10px 28px rgba(4, 120, 87, .16),
        0 4px 14px rgba(15, 23, 42, .06);
}

.home-experience-tile--rose:hover {
    border-color: rgba(190, 18, 60, .32);
    box-shadow:
        0 0 0 1px rgba(190, 18, 60, .12),
        0 10px 28px rgba(190, 18, 60, .14),
        0 4px 14px rgba(15, 23, 42, .06);
}

.home-experience-tile--blue:hover {
    border-color: rgba(29, 78, 216, .35);
    box-shadow:
        0 0 0 1px rgba(29, 78, 216, .14),
        0 10px 28px rgba(29, 78, 216, .16),
        0 4px 14px rgba(15, 23, 42, .06);
}

.home-experience-tile--orange:hover {
    border-color: rgba(194, 65, 12, .35);
    box-shadow:
        0 0 0 1px rgba(194, 65, 12, .14),
        0 10px 28px rgba(194, 65, 12, .16),
        0 4px 14px rgba(15, 23, 42, .06);
}

.home-experience-tile--indigo:hover {
    border-color: rgba(67, 56, 202, .35);
    box-shadow:
        0 0 0 1px rgba(67, 56, 202, .14),
        0 10px 28px rgba(67, 56, 202, .16),
        0 4px 14px rgba(15, 23, 42, .06);
}

.home-experience-tile--violet:hover {
    border-color: rgba(124, 58, 237, .35);
    box-shadow:
        0 0 0 1px rgba(124, 58, 237, .14),
        0 10px 28px rgba(124, 58, 237, .16),
        0 4px 14px rgba(15, 23, 42, .06);
}

.home-experience-tile-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .95rem;
}

.home-experience-tile--purple .home-experience-tile-icon {
    color: #6d28d9;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}

.home-experience-tile--green .home-experience-tile-icon {
    color: #047857;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.home-experience-tile--rose .home-experience-tile-icon {
    color: #be123c;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
}

.home-experience-tile--blue .home-experience-tile-icon {
    color: #1d4ed8;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.home-experience-tile--orange .home-experience-tile-icon {
    color: #c2410c;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.home-experience-tile--indigo .home-experience-tile-icon {
    color: #4338ca;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}

.home-experience-tile--violet .home-experience-tile-icon {
    color: #7c3aed;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

.home-experience-tile-title {
    margin: 0 0 .2rem;
    font-size: .84rem;
    font-weight: 800;
    color: var(--home-text);
    line-height: 1.25;
}

.home-experience-tile-text {
    margin: 0;
    font-size: .72rem;
    line-height: 1.45;
    color: #000;
}

.home-experience-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    padding: .85rem .95rem;
    border: 1px solid var(--home-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
}

.home-experience-trust-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    padding: .35rem .4rem;
    border-radius: 10px;
    transition:
        background-color .22s ease,
        box-shadow .22s ease;
}

.home-experience-trust-item:hover {
    background: rgba(239, 246, 255, .85);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .12), 0 6px 18px rgba(37, 99, 235, .1);
}

.home-experience-trust-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--home-blue);
    background: var(--home-blue-light);
    font-size: .82rem;
    line-height: 1;
}

.home-experience-trust-icon i {
    display: block;
    line-height: 1;
}

.home-experience-trust-item strong {
    display: block;
    font-size: .78rem;
    font-weight: 800;
    color: var(--home-text);
    line-height: 1.25;
}

.home-experience-trust-item div > span {
    display: block;
    font-size: .68rem;
    line-height: 1.4;
    color: #000;
}

.home-experience-panel {
    height: 100%;
    padding: 1.15rem 1.15rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, .95);
    background: #fff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 16px 40px rgba(15, 23, 42, .08);
}

.home-experience-panel-head {
    text-align: center;
    margin-bottom: 1rem;
}

.home-experience-panel-title {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--home-text);
}

.home-experience-panel-sub {
    margin: 0;
    font-size: .8rem;
    color: #000;
}

.home-experience-block-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    font-weight: 800;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}

.home-experience-block-head--online {
    color: #1d4ed8;
}

.home-experience-block-head--online i {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    font-size: .82rem;
}

.home-experience-online {
    padding: .9rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    margin-bottom: .85rem;
}

.home-experience-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.home-experience-plan {
    padding: .75rem .7rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.home-experience-plan-badge {
    display: inline-block;
    align-self: flex-start;
    padding: .18rem .5rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: .55rem;
}

.home-experience-plan-badge--free {
    color: #047857;
    background: #ecfdf5;
}

.home-experience-plan-badge--premium {
    color: #1d4ed8;
    background: #eff6ff;
}

.home-experience-plan-list {
    list-style: none;
    margin: 0 0 .65rem;
    padding: 0;
    flex: 1;
}

.home-experience-plan-list li {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    font-size: .68rem;
    line-height: 1.4;
    color: #000;
    margin-bottom: .35rem;
}

.home-experience-plan-list li i {
    color: var(--home-blue);
    font-size: .58rem;
    margin-top: .22rem;
    flex-shrink: 0;
}

.home-experience-plan-list--offline li i {
    color: #7c3aed;
}

.home-experience-plan-price {
    margin: 0;
    font-size: .92rem;
    font-weight: 800;
    color: var(--home-text);
}

.home-experience-plan-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: .55rem .75rem;
    border: 0;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
    transition: transform .15s ease, box-shadow .15s ease;
}

.home-experience-plan-cta:hover,
.home-experience-plan-cta:focus {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, .32);
}

.home-experience-offline {
    padding: .9rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #faf5ff 0%, #f5f3ff 100%);
    border: 1px solid #e9d5ff;
    margin-bottom: .85rem;
}

.home-experience-block-head--offline {
    color: #6d28d9;
}

.home-experience-block-head--offline > i {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ede9fe;
    font-size: .82rem;
}

.home-experience-offline-tag {
    margin-left: auto;
    padding: .18rem .5rem;
    border-radius: 999px;
    font-size: .6rem;
    font-weight: 700;
    color: #6d28d9;
    background: rgba(255, 255, 255, .75);
    border: 1px solid #ddd6fe;
}

.home-experience-offline-body {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .85fr);
    gap: .65rem;
    align-items: center;
}

.home-experience-offline-image {
    width: 100%;
    max-width: 120px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(91, 33, 182, .15);
    display: block;
}

.home-experience-offline-pricing {
    text-align: center;
    padding: .65rem .55rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e9d5ff;
}

.home-experience-offline-price-label {
    display: block;
    font-size: .62rem;
    color: #000;
}

.home-experience-offline-price {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--home-text);
    line-height: 1.1;
    margin: .15rem 0;
}

.home-experience-offline-price-note {
    display: block;
    font-size: .65rem;
    color: #000;
    margin-bottom: .55rem;
}

.home-experience-offline-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: .5rem .65rem;
    border: 0;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 55%, #6d28d9 100%);
    box-shadow: 0 4px 14px rgba(124, 58, 237, .25);
    transition: transform .15s ease, box-shadow .15s ease;
}

.home-experience-offline-cta:hover,
.home-experience-offline-cta:focus {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, .3);
}

.home-experience-best {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .75rem .85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
    border: 1px solid #e9d5ff;
}

.home-experience-best-icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #7c3aed;
    background: #ede9fe;
    font-size: .82rem;
}

.home-experience-best-copy strong {
    display: block;
    font-size: .78rem;
    font-weight: 800;
    color: #6d28d9;
    margin-bottom: .15rem;
}

.home-experience-best-copy p {
    margin: 0;
    font-size: .7rem;
    line-height: 1.45;
    color: #000;
}

@media (max-width: 1199.98px) {
    .home-experience-offline-body {
        grid-template-columns: 1fr 1fr;
    }

    .home-experience-offline-pricing {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: .35rem .75rem;
        align-items: center;
        text-align: left;
    }

    .home-experience-offline-price-label,
    .home-experience-offline-price-note {
        grid-column: 1;
    }

    .home-experience-offline-price {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin: 0;
        align-self: center;
    }

    .home-experience-offline-cta {
        grid-column: 3;
        grid-row: 1 / span 2;
        width: auto;
        min-width: 9rem;
    }
}

@media (max-width: 991.98px) {
    .home-experience-trust {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .home-experience-grid,
    .home-experience-plans {
        grid-template-columns: 1fr;
    }

    .home-experience-offline-body {
        grid-template-columns: 1fr;
    }

    .home-experience-offline-visual {
        text-align: center;
    }

    .home-experience-offline-image {
        margin: 0 auto;
    }

    .home-experience-offline-pricing {
        display: block;
        text-align: center;
    }

    .home-experience-offline-cta {
        width: 100%;
    }

    .home-experience-offline-tag {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* ── Benefits ── */
.home-benefits {
    padding: .85rem 0 1.35rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(248, 250, 252, .88) 100%);
    position: relative;
    z-index: 1;
}

.home-benefits-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .45rem;
    padding: .55rem .65rem;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98) 0%, rgba(248, 250, 252, .96) 52%, rgba(255, 255, 255, .98) 100%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 10px 28px rgba(15, 23, 42, .05);
}

.home-benefit-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-width: 0;
    padding: .45rem .55rem;
    border-radius: 12px;
    transition:
        background-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

.home-benefit-item:not(:last-child) {
    border-right: 1px solid rgba(226, 232, 240, .85);
}

.home-benefit-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .92);
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, .1),
        0 8px 22px rgba(37, 99, 235, .12);
}

.home-benefit-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .82rem;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.home-benefit-icon i {
    display: block;
    line-height: 1;
}

.home-benefit-item--award .home-benefit-icon {
    color: #1d4ed8;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.home-benefit-item--review .home-benefit-icon {
    color: #6d28d9;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}

.home-benefit-item--practice .home-benefit-icon {
    color: #047857;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.home-benefit-item--secure .home-benefit-icon {
    color: #4338ca;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}

.home-benefit-item--award:hover {
    box-shadow:
        0 0 0 1px rgba(29, 78, 216, .12),
        0 8px 22px rgba(29, 78, 216, .14);
}

.home-benefit-item--review:hover {
    box-shadow:
        0 0 0 1px rgba(109, 40, 217, .12),
        0 8px 22px rgba(109, 40, 217, .14);
}

.home-benefit-item--practice:hover {
    box-shadow:
        0 0 0 1px rgba(4, 120, 87, .12),
        0 8px 22px rgba(4, 120, 87, .14);
}

.home-benefit-item--secure:hover {
    box-shadow:
        0 0 0 1px rgba(67, 56, 202, .12),
        0 8px 22px rgba(67, 56, 202, .14);
}

.home-benefit-label {
    font-size: .76rem;
    font-weight: 700;
    color: var(--home-text);
    line-height: 1.25;
    letter-spacing: -.01em;
    text-align: left;
}

@media (max-width: 991.98px) {
    .home-benefits-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .4rem;
        padding: .5rem;
    }

    .home-benefit-item {
        justify-content: flex-start;
        padding: .5rem .6rem;
    }

    .home-benefit-item:not(:last-child) {
        border-right: none;
    }

    .home-benefit-item:nth-child(odd) {
        border-right: 1px solid rgba(226, 232, 240, .85);
    }

    .home-benefit-item:nth-child(-n+2) {
        border-bottom: 1px solid rgba(226, 232, 240, .85);
    }
}

@media (max-width: 575.98px) {
    .home-benefits {
        padding: .75rem 0 1.1rem;
    }

    .home-benefit-label {
        font-size: .72rem;
    }

    .home-benefit-icon {
        width: 1.85rem;
        height: 1.85rem;
        font-size: .76rem;
    }
}

/* ── Home responsive ── */
@media (max-width: 991.98px) {
    .home-hero {
        padding: 2rem 0 2.5rem;
    }

    .home-hero-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .home-hero-copy {
        max-width: none;
        margin: 0 auto;
    }

    .home-hero-tagline {
        justify-content: center;
        text-align: left;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 560px;
    }

    .home-hero-actions {
        justify-content: center;
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero-image-wrap {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-image {
        max-height: 320px;
    }

    .home-nav-links .nav-link.active {
        background: var(--home-nav-active-bg);
        color: var(--home-nav-active) !important;
        border-color: var(--home-nav-active-border);
    }

    .home-nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: .15rem;
        padding: .5rem 0;
    }

    .btn-home-download {
        width: 100%;
        justify-content: center;
    }

    .home-nav-actions {
        flex-direction: column;
        align-items: stretch !important;
        gap: .5rem;
        padding: .5rem 0 .75rem;
        width: 100%;
    }

    .home-nav-actions .nav-item {
        width: 100%;
    }

    .home-nav-actions .btn-home-signin,
    .home-nav-actions .btn-home-register {
        width: 100%;
        justify-content: center;
    }

    .home-nav-actions > .home-user-dropdown {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .home-hero-title {
        font-size: 1.85rem;
    }

    .home-hero-features {
        grid-template-columns: 1fr;
    }

    .home-hero-actions {
        flex-direction: column;
        max-width: 420px;
    }

    .home-hero-actions .btn-home-cta {
        flex: 1 1 auto;
        width: 100%;
        min-height: 4.1rem;
        padding: .8rem .9rem;
    }

    .home-hero-actions .btn-home-cta-title {
        font-size: .92rem;
    }

    .home-hero-actions .btn-home-cta-sub {
        font-size: .76rem;
    }
}

/* Global page loader */
html.elh-page-loading,
html.elh-page-loading body {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

.page-loader.is-active,
html.elh-page-loading .page-loader {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.page-loader-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 252, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page-loader-card {
    position: relative;
    z-index: 1;
    width: min(100%, 320px);
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow:
        0 24px 60px rgba(26, 77, 180, .14),
        0 8px 24px rgba(109, 40, 217, .08);
    text-align: center;
    animation: pageLoaderCardIn .45s cubic-bezier(.22, 1, .36, 1);
}

.page-loader-visual {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
}

.page-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.page-loader-ring-outer {
    border-top-color: var(--home-blue);
    border-right-color: rgba(26, 109, 255, .25);
    animation: pageLoaderSpin 1.1s linear infinite;
}

.page-loader-ring-inner {
    inset: 12px;
    border-bottom-color: #7c3aed;
    border-left-color: rgba(124, 58, 237, .25);
    animation: pageLoaderSpinReverse .9s linear infinite;
}

.page-loader-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: var(--home-blue);
    animation: pageLoaderPulse 1.6s ease-in-out infinite;
}

.page-loader-brand {
    margin: 0 0 .35rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--home-text);
}

.page-loader-message {
    margin: 0 0 1rem;
    font-size: .92rem;
    font-weight: 500;
    color: var(--home-text-muted);
}

.page-loader-dots {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.page-loader-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--home-blue), #7c3aed);
    animation: pageLoaderDot 1.2s ease-in-out infinite;
}

.page-loader-dots span:nth-child(2) {
    animation-delay: .15s;
}

.page-loader-dots span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes pageLoaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes pageLoaderSpinReverse {
    to { transform: rotate(-360deg); }
}

@keyframes pageLoaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: .85; }
}

@keyframes pageLoaderDot {
    0%, 80%, 100% { transform: translateY(0); opacity: .45; }
    40% { transform: translateY(-5px); opacity: 1; }
}

@keyframes pageLoaderCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.practice-language-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #fff;
    color: var(--home-blue);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    padding: .55rem 1rem;
    border-radius: 999px;
    border: 1px solid #d4e4ff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, .08);
    transition: transform .15s, box-shadow .2s, border-color .2s;
    width: fit-content;
    white-space: nowrap;
}

.practice-language-pill--action {
    font-size: .95rem;
    padding: .65rem 1.1rem;
    background: linear-gradient(135deg, #eff6ff, #fff);
}

.practice-language-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #fff 70%);
    box-shadow: 0 4px 18px rgba(37, 99, 235, .08);
}

.practice-language-bar-text {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-width: min(100%, 280px);
}

.practice-language-bar-text > i {
    color: var(--home-blue);
    font-size: 1.25rem;
    margin-top: .15rem;
}

.practice-language-bar-text strong {
    display: block;
    color: var(--home-text);
    font-size: .95rem;
    margin-bottom: .15rem;
}

.practice-language-bar-text span {
    display: block;
    color: var(--home-text-muted);
    font-size: .82rem;
    line-height: 1.45;
    max-width: 520px;
}

.practice-nav-language {
    color: #1d4ed8 !important;
    font-weight: 600;
}

.practice-language-pill:hover {
    color: var(--home-blue);
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .12);
}

.practice-lang-change-row {
    display: none;
}

.practice-lang-change-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: #fff;
    color: var(--home-text-muted);
    font-size: .84rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .1);
    transition: border-color .15s, color .15s, transform .15s, box-shadow .2s;
    justify-self: end;
    white-space: nowrap;
}

.practice-lang-change-link strong {
    color: #7c3aed;
    font-weight: 800;
}

.practice-lang-change-link:hover {
    color: var(--home-blue);
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.practice-language-main {
    min-height: calc(100vh - 80px);
    padding: 0;
}

.practice-language-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 3rem;
    background: linear-gradient(180deg, #f0f7ff 0%, #fff 45%);
}

.practice-language-card {
    width: min(920px, 100%);
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5eefb;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .practice-language-card {
        padding: 2.5rem 2.25rem;
    }
}

.practice-language-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.practice-language-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--home-blue);
    background: var(--home-blue-light);
    padding: .35rem .75rem;
    border-radius: 999px;
    margin-bottom: .85rem;
}

.practice-language-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--home-text);
    margin-bottom: .65rem;
}

.practice-language-subtitle {
    max-width: 640px;
    margin: 0 auto;
    color: var(--home-text-muted);
    line-height: 1.6;
}

.practice-language-alert {
    max-width: 520px;
    margin: 1rem auto 0;
    text-align: left;
}

.practice-lang-field {
    margin-bottom: 1.75rem;
}

.practice-lang-label {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: .35rem;
}

.practice-lang-hint {
    margin: 0 0 .85rem;
    color: var(--home-text-muted);
    font-size: .86rem;
}

.practice-lang-validation {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    max-width: 640px;
    margin: .75rem 0 0;
    padding: .65rem .85rem;
    border-radius: .5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: .86rem;
    line-height: 1.45;
    text-align: left;
}

.practice-lang-validation > i {
    margin-top: .15rem;
    flex-shrink: 0;
}

.practice-lang-field.has-validation-error .practice-lang-combobox-control {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .2);
}

.practice-lang-combobox {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.practice-lang-combobox-control {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border: 2px solid #dbeafe;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, .06);
    transition: border-color .15s, box-shadow .15s;
}

.practice-lang-combobox-control:focus-within {
    border-color: var(--home-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.practice-lang-combobox-control > .fa-magnifying-glass {
    color: var(--home-blue);
    font-size: .95rem;
}

.practice-lang-combobox-input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: .92rem;
    color: var(--home-text);
    min-width: 0;
}

.practice-lang-combobox-clear {
    border: 0;
    background: #eff6ff;
    color: var(--home-blue);
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.practice-lang-combobox-panel {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    top: calc(100% + .35rem);
    max-height: 280px;
    overflow: auto;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
    padding: .25rem;
}

.practice-lang-combobox-group-label {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: .4rem .6rem .25rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--home-blue);
    background: linear-gradient(180deg, #fff 75%, rgba(255, 255, 255, .85));
}

.practice-lang-combobox-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    border: 0;
    background: transparent;
    text-align: left;
    padding: .45rem .55rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background .12s;
}

.practice-lang-combobox-option:hover,
.practice-lang-combobox-option.is-active {
    background: #eff6ff;
}

.practice-lang-combobox-option.is-selected {
    background: #dbeafe;
}

.practice-lang-combobox-option-main {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.practice-lang-combobox-option-name {
    font-weight: 700;
    color: var(--home-text);
    font-size: .88rem;
}

.practice-lang-combobox-option-native {
    font-size: .8rem;
    color: var(--home-text-muted);
}

.practice-lang-combobox-option-native.is-rtl {
    direction: rtl;
    unicode-bidi: plaintext;
    text-align: right;
}

.practice-lang-combobox-option-check {
    color: var(--home-blue);
    font-size: .9rem;
    flex-shrink: 0;
}

.practice-lang-combobox-empty {
    padding: .65rem .55rem;
    text-align: center;
    color: var(--home-text-muted);
    font-size: .85rem;
}

.practice-lang-skip-option {
    max-width: 640px;
    margin: .75rem auto 0;
    padding: .65rem .75rem;
    border: 2px solid #dbeafe;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 4px 16px rgba(37, 99, 235, .04);
}

.practice-lang-skip-label {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: 0;
    cursor: pointer;
}

.practice-lang-skip-input {
    margin-top: .2rem;
    flex-shrink: 0;
}

.practice-lang-skip-copy {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.practice-lang-skip-title {
    font-size: .92rem;
    font-weight: 700;
    color: var(--home-text);
}

.practice-lang-skip-benefit {
    font-size: .82rem;
    line-height: 1.45;
    color: var(--home-text-muted);
}

.practice-lang-field.is-translation-skipped .practice-lang-combobox {
    opacity: .55;
    pointer-events: none;
}

.practice-language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: .85rem;
    margin-bottom: 1.75rem;
}

.practice-language-option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.practice-language-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.practice-language-option-body {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 58px;
    padding: .85rem 1rem;
    border-radius: 14px;
    border: 2px solid #e5eefb;
    background: #fff;
    color: var(--home-text);
    font-weight: 600;
    transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}

.practice-language-option:hover .practice-language-option-body {
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.practice-language-option input:checked + .practice-language-option-body,
.practice-language-option.is-selected .practice-language-option-body {
    border-color: var(--home-blue);
    background: var(--home-blue-light);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .12);
}

.practice-language-option-body i {
    color: var(--home-blue);
    font-size: 1.05rem;
}

.practice-language-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

/* ═══════════════════════════════════════════
   Profile page (matches practice / vocab UI)
   ═══════════════════════════════════════════ */

body.body-profile {
    background-color: #f3eef8;
    background-image: url("/img/qback.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    color: var(--home-text);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.profile-page {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem 1rem 2rem;
}

.profile-page--settings {
    max-width: 1180px;
}

.profile-settings-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 992px) {
    .profile-settings-panels {
        grid-template-columns: 1fr 1fr;
    }
}

.profile-settings-panels .profile-settings-grid {
    grid-template-columns: 1fr;
}

.profile-settings-panels .profile-settings-grid .profile-field:first-child {
    grid-column: auto;
}

.profile-settings-panels .profile-panel {
    height: 100%;
}

.profile-settings-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.profile-settings-body .profile-settings-form {
    display: contents;
}

.profile-settings-body .profile-settings-panels {
    grid-column: 1;
}

.profile-settings-body .profile-settings-actions {
    grid-column: 1;
}

.profile-settings-body .profile-panel--session {
    grid-column: 1;
    margin-top: 0;
}

@media (min-width: 992px) {
    .profile-settings-body {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .profile-settings-body .profile-settings-panels {
        grid-column: 1 / -1;
    }

    .profile-settings-body .profile-settings-actions {
        grid-column: 1;
        align-self: stretch;
        display: flex;
        align-items: flex-start;
        padding: .15rem 0 0;
    }

    .profile-settings-body .profile-panel--session {
        grid-column: 2;
    }
}

.profile-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    padding: .35rem;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.profile-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .85rem;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.profile-subnav-link:hover {
    color: #334155;
    background: #f8fafc;
}

.profile-subnav-link.is-active {
    color: #5b21b6;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .15);
}

.profile-settings-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.35rem 1.4rem;
    background: linear-gradient(135deg, #fff 0%, #fafbff 55%, #f5f3ff 100%);
    border: 1px solid #e8edf5;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

@media (min-width: 992px) {
    .profile-settings-hero {
        align-items: center;
        padding: 1.5rem 1.75rem;
    }
}

.profile-settings-hero .profile-avatar-wrap .profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 1.75rem;
}

.profile-settings-hero-copy {
    min-width: 0;
}

.profile-settings-title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--home-text);
}

.profile-settings-sub {
    margin: .35rem 0 0;
    font-size: .92rem;
    color: #64748b;
}

.profile-streak-teaser {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .75rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
}

.profile-streak-teaser--muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.profile-streak-teaser-link {
    color: #7c3aed;
    font-weight: 700;
}

.profile-settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
}

@media (min-width: 640px) {
    .profile-settings-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-settings-grid .profile-field:first-child {
        grid-column: 1 / -1;
    }
}

.profile-field-input--full {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: .65rem .75rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--home-text);
}

.profile-field-input--full:focus {
    outline: none;
    border-color: #c4b5fd;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}

.profile-settings-hint {
    margin: .65rem 0 0;
    font-size: .78rem;
    color: #94a3b8;
}

.profile-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
}

.profile-settings-actions--secondary {
    margin-top: -.25rem;
}

.profile-panel--session {
    margin-top: .25rem;
}

.profile-settings-logout-form {
    margin: 0;
}

.profile-signout-btn {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid #fecdd3;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
    color: #9f1239;
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.profile-signout-btn:hover {
    transform: translateY(-1px);
    border-color: #fda4af;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e6 100%);
    box-shadow: 0 10px 24px rgba(225, 29, 72, .1);
}

.profile-signout-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, .18);
}

.profile-signout-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: #ffe4e6;
    color: #be123c;
    flex-shrink: 0;
    font-size: 1rem;
}

.profile-signout-btn-copy {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    flex: 1;
    min-width: 0;
}

.profile-signout-btn-copy strong {
    font-size: .92rem;
    font-weight: 700;
    color: #9f1239;
}

.profile-signout-btn-copy small {
    font-size: .78rem;
    font-weight: 500;
    color: #be123c;
    opacity: .85;
}

.profile-signout-btn-arrow {
    color: #f43f5e;
    opacity: .75;
    flex-shrink: 0;
}

.profile-progress-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    background: linear-gradient(135deg, #fff 0%, #fafbff 55%, #f5f3ff 100%);
    border: 1px solid #e8edf5;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

.profile-progress-intro {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.profile-progress-avatar-link {
    text-decoration: none;
    flex-shrink: 0;
}

.profile-progress-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    box-shadow: 0 8px 20px rgba(124, 58, 237, .22);
}

.profile-progress-avatar--placeholder {
    line-height: 1;
}

.profile-progress-avatar--image {
    object-fit: cover;
    border: 2px solid #fff;
}

.profile-progress-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--home-text);
}

.profile-progress-name {
    margin: .2rem 0 0;
    font-size: .88rem;
    color: #64748b;
    font-weight: 600;
}

.profile-hero-stats--progress {
    flex: 1 1 100%;
}

@media (min-width: 992px) {
    .profile-progress-head {
        flex-wrap: nowrap;
        align-items: center;
    }

    .profile-hero-stats--progress {
        flex: 1 1 auto;
        max-width: 62%;
    }
}

.account-subnav-wrap {
    margin-bottom: 1.25rem;
}

.profile-hero-card {
    background: linear-gradient(135deg, #fff 0%, #fafbff 55%, #f5f3ff 100%);
    border: 1px solid #e8edf5;
    border-radius: 20px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

.profile-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.profile-hero-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    box-shadow: 0 10px 24px rgba(124, 58, 237, .28);
    flex-shrink: 0;
    object-fit: cover;
}

.profile-avatar--placeholder {
    line-height: 1;
}

.profile-avatar--image {
    border: 3px solid #fff;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-edit {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 1.65rem;
    height: 1.65rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .28);
    transition: transform .15s ease, box-shadow .15s ease;
}

.profile-avatar-edit:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(79, 70, 229, .34);
}

.profile-avatar-file-input {
    display: none;
}

.home-user-avatar--image {
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.profile-avatar-modal-content {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .2);
}

.profile-avatar-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem 1rem;
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 55%, #fff 100%);
    border-bottom: 1px solid rgba(99, 102, 241, .12);
}

.profile-avatar-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e1b4b;
}

.profile-avatar-modal-sub {
    margin: .25rem 0 0;
    font-size: .84rem;
    color: #64748b;
    line-height: 1.45;
    max-width: 24rem;
}

.profile-avatar-modal-close {
    border: none;
    background: rgba(255, 255, 255, .8);
    color: #475569;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-modal-body {
    padding: 1rem 1.35rem 1.1rem;
}

.profile-avatar-crop-stage {
    width: 100%;
    max-height: 340px;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
}

.profile-avatar-crop-stage .cropper-view-box,
.profile-avatar-crop-stage .cropper-face {
    border-radius: 50%;
}

.profile-avatar-crop-image {
    display: block;
    max-width: 100%;
}

.profile-avatar-crop-actions {
    display: flex;
    justify-content: center;
    gap: .65rem;
    margin-top: .85rem;
}

.profile-avatar-zoom-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-avatar-modal-status {
    margin: .85rem 0 0;
    font-size: .84rem;
    color: #64748b;
}

.profile-avatar-modal-status--error {
    color: #dc2626;
}

.profile-avatar-modal-status--info {
    color: #4f46e5;
}

.profile-avatar-modal-footer {
    padding: .85rem 1.35rem 1.2rem;
    border-top: 1px solid #e8edf5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.profile-avatar-modal-footer-main {
    display: flex;
    gap: .55rem;
    margin-left: auto;
}

.profile-avatar-remove-btn {
    border: none;
    background: transparent;
    color: #dc2626;
    font-weight: 600;
    padding: .45rem .2rem;
}

.profile-avatar-cancel-btn {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-weight: 600;
    font-size: .84rem;
    padding: .4rem .85rem;
}

.profile-avatar-save-btn {
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-weight: 600;
    font-size: .84rem;
    padding: .4rem .9rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.profile-avatar-save-btn:disabled {
    opacity: .7;
}

@media (max-width: 575.98px) {
    .profile-avatar-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-avatar-modal-footer-main {
        margin-left: 0;
        width: 100%;
    }

    .profile-avatar-cancel-btn,
    .profile-avatar-save-btn {
        flex: 1;
        justify-content: center;
    }
}

.profile-hero-eyebrow {
    margin: 0 0 .2rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #7c3aed;
}

.profile-hero-name {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--home-text);
}

.profile-hero-email {
    margin: .25rem 0 0;
    font-size: .88rem;
    color: #64748b;
}

.profile-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .45rem .85rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.profile-btn--primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(124, 58, 237, .25);
}

.profile-btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(124, 58, 237, .32);
}

.profile-btn--secondary {
    background: #fff;
    color: #334155;
    border-color: #e2e8f0;
}

.profile-btn--secondary:hover {
    color: #1e293b;
    border-color: #c7d2fe;
    background: #f8fafc;
}

.profile-btn--ghost {
    background: transparent;
    color: #64748b;
    border-color: #e2e8f0;
}

.profile-btn--ghost:hover {
    background: #f8fafc;
    color: #334155;
}

.profile-btn--sm {
    padding: .4rem .7rem;
    font-size: .78rem;
    border-radius: 10px;
}

.profile-btn--block {
    width: 100%;
}

.profile-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

@media (min-width: 768px) {
    .profile-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .profile-hero-stats {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.profile-hero-stat {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem .85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #e8edf5;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.profile-hero-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    line-height: 1;
}

.profile-hero-stat-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    font-size: inherit;
}

.profile-hero-stat-icon i::before {
    line-height: 1;
}

.profile-hero-stat-icon--img {
    padding: 0;
    background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
    box-shadow: 0 6px 14px rgba(245, 158, 11, .18);
}

.profile-hero-stat-icon--img img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.profile-hero-stat--streak .profile-hero-stat-icon {
    background: linear-gradient(145deg, #fb923c 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(234, 88, 12, .25);
    font-size: .95rem;
}

.profile-hero-stat--best .profile-hero-stat-icon {
    background: linear-gradient(145deg, #fbbf24 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(217, 119, 6, .22);
    font-size: .95rem;
}

.profile-hero-stat--library .profile-hero-stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .22);
    font-size: .9rem;
}

.profile-hero-stat--mastered .profile-hero-stat-icon {
    background: linear-gradient(145deg, #a78bfa 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(124, 58, 237, .25);
    font-size: .95rem;
}

.profile-hero-stat strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1.1;
    color: var(--home-text);
}

.profile-hero-stat > div > span {
    display: block;
    font-size: .72rem;
    color: #64748b;
    font-weight: 600;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.profile-section-head {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.profile-section-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--home-text);
}

.profile-section-lead {
    margin: 0;
    font-size: .84rem;
    color: #64748b;
    line-height: 1.45;
    max-width: 62ch;
}

.profile-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
}

@media (min-width: 640px) {
    .profile-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .profile-dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.profile-library-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    padding: .65rem .75rem;
    min-height: 0;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.profile-library-card {
    background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
}

.profile-goal-count--month { color: #2563eb; }
.profile-goal-count--library { color: #475569; }

.profile-fill-month { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.profile-fill-library { background: linear-gradient(90deg, #64748b, #94a3b8); }
.profile-fill-milestone { background: linear-gradient(90deg, #f59e0b, #ea580c); }
.profile-fill-word { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.profile-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .65rem;
}

.profile-tier-card {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .85rem .9rem;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.profile-tier-card-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.profile-tier-card-label {
    display: block;
    font-size: .82rem;
    font-weight: 800;
    color: var(--home-text);
    text-transform: capitalize;
}

.profile-tier-card-count {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
    margin: .1rem 0 .25rem;
    color: var(--home-text);
}

.profile-tier-card-copy p {
    margin: 0;
    font-size: .74rem;
    color: #64748b;
    line-height: 1.4;
}

.profile-tier-card--learner { background: linear-gradient(160deg, #fff 0%, #ecfdf5 100%); border-color: #a7f3d0; }
.profile-tier-card--familiar { background: linear-gradient(160deg, #fff 0%, #eff6ff 100%); border-color: #bfdbfe; }
.profile-tier-card--mastered { background: linear-gradient(160deg, #fff 0%, #f3e8ff 100%); border-color: #e9d5ff; }
.profile-tier-card--expert { background: linear-gradient(160deg, #fff 0%, #fef9c3 100%); border-color: #fcd34d; }

.profile-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 992px) {
    .profile-two-col {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.profile-panel {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .05);
}

.profile-panel-head {
    margin-bottom: 1rem;
}

.profile-targets-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-targets-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

@media (min-width: 520px) {
    .profile-targets-fields {
        grid-template-columns: 1fr 1fr;
    }
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.profile-field > span {
    font-size: .78rem;
    font-weight: 700;
    color: #64748b;
}

.profile-field-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
}

.profile-field-input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: .65rem .75rem;
    font-size: .92rem;
    font-weight: 700;
    color: var(--home-text);
    min-width: 0;
}

.profile-field-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(124, 58, 237, .2);
}

.profile-field-suffix {
    padding: 0 .75rem;
    font-size: .78rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.profile-target-presets-label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: .45rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.profile-target-presets-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.profile-target-preset {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: .45rem .7rem;
    cursor: pointer;
    font: inherit;
    transition: border-color .15s ease, background .15s ease;
}

.profile-target-preset:hover {
    border-color: #c4b5fd;
    background: #f5f3ff;
}

.profile-target-preset strong {
    font-size: .92rem;
    color: var(--home-text);
}

.profile-target-preset span {
    font-size: .72rem;
    color: #64748b;
    margin-left: .15rem;
}

.profile-next-milestone {
    padding: .9rem;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    margin-bottom: 1rem;
}

.profile-next-milestone-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .65rem;
}

.profile-next-milestone-head i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #ea580c;
}

.profile-next-milestone-head span {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9a3412;
}

.profile-next-milestone-head strong {
    display: block;
    font-size: .95rem;
    color: #7c2d12;
}

.profile-next-milestone-progress {
    margin: .45rem 0 0;
    font-size: .78rem;
    color: #9a3412;
}

.profile-milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: .65rem;
}

.profile-milestone-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .85rem .55rem;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    text-align: center;
}

.profile-milestone-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #ea580c;
    font-size: 1rem;
}

.profile-milestone-badge-title {
    font-size: .78rem;
    font-weight: 700;
    color: #7c2d12;
    line-height: 1.25;
}

.profile-milestone-badge-date {
    font-size: .68rem;
    color: #9a3412;
    opacity: .85;
}

.profile-panel--words {
    padding: 1.2rem;
}

.profile-study-area-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .35rem;
    margin: 0 0 1rem;
    list-style: none;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
}

.profile-study-area-tabs .nav-item {
    flex: 1 1 180px;
}

.profile-study-area-tabs .nav-link {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: .7rem 1rem;
    font-weight: 700;
    font-size: .95rem;
    color: #4338ca;
    background: transparent;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.profile-study-area-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.7);
}

.profile-study-area-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #4338ca, #312e81);
    box-shadow: 0 8px 20px rgba(67, 56, 202, 0.22);
}

.profile-queue-tabs {
    margin-bottom: 1rem;
}

.profile-word-subtext {
    display: block;
    margin-top: .2rem;
    font-size: .72rem;
    font-weight: 600;
    color: #dc2626;
}

.my-vocab-badge--overdue {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.profile-word-cell-schedule .my-vocab-badge {
    margin: 0;
}

.profile-words-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.profile-words-head-copy {
    flex: 1 1 220px;
    min-width: 0;
}

.profile-search-form {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
}

.profile-search-wrap {
    position: relative;
    width: min(280px, 42vw);
    min-width: 200px;
}

.profile-search-wrap i {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .85rem;
    pointer-events: none;
}

.profile-search-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: .6rem .75rem .6rem 2.15rem;
    font-size: .86rem;
    background: #f8fafc;
}

.profile-search-input:focus {
    outline: none;
    border-color: #c4b5fd;
    background: #fff;
}

@media (max-width: 720px) {
    .profile-words-head {
        align-items: stretch;
    }

    .profile-search-form {
        width: 100%;
        margin-left: 0;
    }

    .profile-search-wrap {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }
}

.profile-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1rem;
}

.profile-filter-tab {
    padding: .42rem .82rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    color: #475569;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.profile-filter-tab:hover {
    color: #334155;
    border-color: #c7d2fe;
    background: #eef2ff;
}

.profile-filter-tab.is-active {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(124, 58, 237, .22);
}

.profile-word-table-wrap {
    overflow-x: auto;
    border: 1px solid #eef2f7;
    border-radius: 14px;
}

.profile-word-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}

.profile-word-table th,
.profile-word-table td {
    padding: .75rem .85rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f7;
}

.profile-word-table th {
    background: #f8fafc;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
}

.profile-word-table tr:last-child td {
    border-bottom: 0;
}

.profile-words-body {
    position: relative;
    min-height: 14rem;
}

.profile-words-content {
    transition: opacity .15s ease;
    min-height: 10rem;
}

.profile-words-body.is-loading .profile-words-content {
    opacity: .35;
    pointer-events: none;
}

.profile-words-loading {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10rem;
    background: rgba(255, 255, 255, .72);
    border: 1px solid #eef2f7;
    border-radius: 14px;
}

.profile-words-loading[hidden] {
    display: none !important;
}

.profile-words-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    padding: 1rem;
    text-align: center;
}

.profile-words-loading-inner p {
    margin: 0;
    font-size: .86rem;
    font-weight: 600;
    color: #4c1d95;
}

.profile-word-table tbody tr:hover {
    background: #fafbff;
}

.profile-word-cell-word strong {
    display: block;
    font-size: .92rem;
    color: var(--home-text);
}

.profile-word-level {
    display: inline-block;
    margin-top: .15rem;
    font-size: .68rem;
    font-weight: 700;
    padding: .12rem .4rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
}

.profile-word-table .practice-meta-tier {
    cursor: default;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.profile-word-progress-bar {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 140px;
}

.profile-word-progress-bar span {
    font-size: .72rem;
    color: #64748b;
    font-weight: 600;
}

.profile-word-cell-date {
    font-size: .78rem;
    color: #64748b;
    white-space: nowrap;
}

.profile-word-cell-action {
    text-align: right;
}

.profile-restore-form {
    margin: 0;
}

.profile-pagination,
.admin-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 1rem;
}

.profile-page-link,
.admin-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 .5rem;
    border-radius: 8px;
    border: 0;
    background: #f1f5f9;
    text-decoration: none;
    color: #334155;
    font-weight: 700;
    font-size: .82rem;
    font-family: inherit;
    cursor: pointer;
}

.profile-page-link.is-active,
.admin-page-link.is-active {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
}

.profile-empty-state {
    margin: 0;
    padding: 1rem;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: .86rem;
    text-align: center;
}

.profile-empty-state--large {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.profile-empty-state--large i {
    font-size: 2rem;
    color: #c4b5fd;
}

.profile-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    background: #0f172a;
    color: #fff;
    padding: .75rem 1rem;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .2);
    transition: opacity .3s ease, transform .3s ease;
}

.profile-toast--hide {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.practice-help-trigger { cursor: pointer; position: relative; }
.practice-help-icon {
    position: absolute;
    top: .55rem;
    right: .55rem;
    z-index: 2;
    border: 0;
    background: rgba(255,255,255,.92);
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    color: var(--home-blue);
    box-shadow: 0 4px 12px rgba(15,23,42,.08);
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.practice-monthly-header { margin-top: .65rem; }
.practice-monthly-fill { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.practice-daily-hint { display: block; color: var(--home-text-muted); font-size: .75rem; }
.practice-auth-notice--trial {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #4c1d95;
}

.practice-auth-notice--trial i {
    color: #7c3aed;
}

.practice-signin-lead {
    margin-bottom: 1rem;
    color: var(--home-text-muted);
}

.practice-signin-benefits {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: .65rem;
}

.practice-signin-benefits li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .9rem;
    color: var(--home-text);
}

.practice-signin-benefits i {
    width: 1.25rem;
    color: #7c3aed;
    margin-top: .15rem;
    flex-shrink: 0;
}

.practice-signin-actions {
    display: grid;
    gap: .75rem;
}

.practice-signin-google {
    width: 100%;
    justify-content: center;
}

.practice-signin-email {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.practice-signin-register {
    text-align: center;
    font-size: .88rem;
    color: var(--home-text-muted);
    text-decoration: none;
}

.practice-signin-register:hover {
    color: var(--home-blue);
}

.practice-help-modal-content { border: 0; border-radius: 20px; box-shadow: 0 24px 60px rgba(15,23,42,.18); }

/* Skip word confirmation modal */
.practice-skip-modal-dialog {
    max-width: min(420px, calc(100vw - 1.5rem));
}

.practice-skip-modal-content {
    position: relative;
    border: none;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 64px rgba(15, 23, 42, .2);
    text-align: center;
}

.practice-skip-modal-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.practice-skip-modal-close:hover {
    background: #fff;
    color: #334155;
    transform: scale(1.04);
}

.practice-skip-modal-hero {
    position: relative;
    padding: 1.75rem 1rem .5rem;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 72%);
}

.practice-skip-modal-icon-ring {
    position: absolute;
    top: 1.35rem;
    left: 50%;
    width: 5.5rem;
    height: 5.5rem;
    margin-left: -2.75rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(251, 191, 36, .22) 0%, rgba(251, 191, 36, 0) 70%);
}

.practice-skip-modal-icon {
    position: relative;
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
    box-shadow: 0 12px 28px rgba(245, 158, 11, .35);
}

.practice-skip-modal-body {
    padding: .35rem 1.35rem 1rem;
}

.practice-skip-modal-eyebrow {
    margin: 0 0 .35rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #d97706;
}

.practice-skip-modal-title {
    margin: 0 0 .55rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--home-text);
    letter-spacing: -.02em;
}

.practice-skip-modal-lead {
    margin: 0 0 1rem;
    font-size: .9rem;
    line-height: 1.55;
    color: #64748b;
}

.practice-skip-modal-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .55rem;
    text-align: left;
}

.practice-skip-modal-points li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .7rem .85rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    font-size: .84rem;
    line-height: 1.45;
    color: #475569;
}

.practice-skip-modal-point-icon {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: #fff;
    color: #d97706;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .72rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
}

.practice-skip-modal-footer {
    display: flex;
    gap: .5rem;
    padding: 0 1.1rem 1rem;
}

.practice-skip-modal-cancel,
.practice-skip-modal-confirm {
    flex: 1;
    min-height: 34px;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.practice-skip-modal-cancel {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}

.practice-skip-modal-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.practice-skip-modal-confirm {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 8px 22px rgba(234, 88, 11, .28);
}

.practice-skip-modal-confirm:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(234, 88, 11, .34);
}

@media (max-width: 575.98px) {
    .practice-skip-modal-footer {
        flex-direction: column-reverse;
    }
}
.practice-help-body { padding-top: .35rem; }
.practice-help-topic-focus {
    margin: 0 0 .85rem;
    padding: .7rem .85rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-size: .84rem;
    color: #1e3a8a;
    line-height: 1.5;
}
.practice-help-rules {
    margin: 0 0 1rem;
    padding: .9rem .95rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.practice-help-rules-title {
    margin: 0 0 .65rem;
    font-size: .92rem;
    font-weight: 800;
    color: var(--home-text);
}
.practice-help-rules-list {
    margin: 0 0 .65rem;
    padding-left: 1.15rem;
    font-size: .84rem;
    color: #475569;
    line-height: 1.55;
}
.practice-help-rules-list li + li {
    margin-top: .55rem;
}
.practice-help-rules-warn {
    color: #9a3412;
}
.practice-help-rules-goal {
    margin: 0;
    padding-top: .55rem;
    border-top: 1px solid #e8edf5;
    font-size: .82rem;
    color: #64748b;
    line-height: 1.45;
}
.practice-help-lead {
    margin: 0 0 .85rem;
    font-size: .9rem;
    color: #475569;
    line-height: 1.5;
}
.practice-help-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin-bottom: .85rem;
}
@media (min-width: 480px) {
    .practice-help-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.practice-help-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .55rem .5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.practice-help-tab:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}
.practice-help-tab.is-active {
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    border-color: #c4b5fd;
    color: #5b21b6;
    box-shadow: 0 6px 18px rgba(124, 58, 237, .12);
}
.practice-help-tab i {
    font-size: .72rem;
    opacity: .9;
}
.practice-help-panel {
    padding: .9rem 1rem;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    border-radius: 14px;
}
.practice-help-panel-title {
    margin: 0 0 .65rem;
    font-size: .95rem;
    font-weight: 800;
    color: var(--home-text);
}
.practice-help-panel p {
    margin: 0;
    font-size: .86rem;
    color: #475569;
    line-height: 1.55;
}
.practice-help-panel p + p {
    margin-top: .55rem;
}

.practice-help-change-target {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6366f1;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s ease;
}

.practice-help-change-target:hover,
.practice-help-change-target:focus-visible {
    color: #4f46e5;
    text-decoration: underline;
    outline: none;
}

.practice-target-edit-modal .modal-dialog {
    max-width: 420px;
}

.practice-target-edit-content {
    position: relative;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
}

.practice-target-edit-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease;
}

.practice-target-edit-close:hover {
    background: rgba(255, 255, 255, .34);
}

.practice-target-edit-header {
    padding: 1.35rem 1.25rem 1.1rem;
    color: #fff;
    text-align: center;
}

.practice-target-edit-header--week {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #4338ca 100%);
}

.practice-target-edit-header--month {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 55%, #6d28d9 100%);
}

.practice-target-edit-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto .65rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.practice-target-edit-title {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.practice-target-edit-lead {
    margin: 0;
    font-size: .84rem;
    line-height: 1.45;
    opacity: .92;
}

.practice-target-edit-body {
    padding: 1rem 1.15rem 1.1rem;
}

.practice-target-edit-current {
    margin: 0 0 .85rem;
    font-size: .84rem;
    color: #64748b;
    text-align: center;
}

.practice-target-edit-current strong {
    color: #1e293b;
    font-size: 1rem;
}

.practice-target-edit-presets-label {
    margin: 0 0 .45rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.practice-target-edit-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin-bottom: .9rem;
}

.practice-target-edit-preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    min-height: 62px;
    padding: .55rem .35rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.practice-target-edit-preset strong {
    font-size: 1rem;
    color: #1e293b;
    line-height: 1.1;
}

.practice-target-edit-preset span {
    font-size: .68rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.practice-target-edit-preset:hover {
    border-color: #c7d2fe;
    background: #eef2ff;
}

.practice-target-edit-preset.is-active {
    border-color: #818cf8;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    box-shadow: 0 8px 22px rgba(99, 102, 241, .16);
    transform: translateY(-1px);
}

.practice-target-edit-custom-label {
    display: block;
    margin-bottom: .4rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.practice-target-edit-input-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .75rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}

.practice-target-edit-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    outline: none;
}

.practice-target-edit-input-suffix {
    font-size: .82rem;
    font-weight: 600;
    color: #94a3b8;
}

.practice-target-edit-footer {
    display: flex;
    gap: .55rem;
    padding: 0 1.15rem 1.15rem;
}

.practice-target-edit-cancel,
.practice-target-edit-save {
    flex: 1;
    min-height: 34px;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.practice-target-edit-cancel {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}

.practice-target-edit-cancel:hover {
    background: #f8fafc;
}

.practice-target-edit-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 0;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(79, 70, 229, .28);
}

.practice-target-edit-save:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.practice-target-edit-save:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}
.practice-dash-card#practicePointsCard {
    cursor: pointer;
}

.practice-points-body {
    padding-top: .25rem;
}

.practice-points-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
    border-radius: 14px;
    margin-bottom: .75rem;
}

.practice-points-stat--total {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #bbf7d0;
}

.practice-points-stat-label {
    font-size: .88rem;
    font-weight: 600;
    color: #166534;
}

.practice-points-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #14532d;
    line-height: 1;
}

.practice-points-target-card {
    padding: .8rem .95rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    margin-bottom: .65rem;
}

.practice-points-target-title {
    margin: 0 0 .35rem;
    font-size: .88rem;
    font-weight: 800;
    color: var(--home-text);
}

.practice-points-target-words {
    margin: 0 0 .35rem;
    font-size: .82rem;
    color: #64748b;
}

.practice-points-target-needed {
    margin: 0;
    font-size: .86rem;
    color: #334155;
}

.practice-points-target-needed strong {
    color: #7c3aed;
    font-size: 1rem;
}

.practice-points-footnote {
    margin: .35rem 0 0;
    font-size: .78rem;
    color: #64748b;
    line-height: 1.45;
}
.practice-help-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.practice-help-list li {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .7rem .85rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e8edf5;
}
.practice-help-list li strong {
    font-size: .9rem;
    color: var(--home-text);
}
.practice-help-list li span {
    font-size: .84rem;
    color: #64748b;
    line-height: 1.45;
}
.practice-help-note {
    padding: .75rem .85rem;
    background: #f5f3ff;
    border-radius: 12px;
    border: 1px solid #e9ddff;
}
.practice-help-note p {
    margin: 0;
    font-size: .82rem;
    color: #475569;
    line-height: 1.5;
}
.practice-help-note p + p { margin-top: .5rem; }
.practice-help-example {
    margin: 0 0 1rem;
    padding: .85rem .95rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e8edf5;
}
.practice-help-example-title {
    margin: 0 0 .45rem;
    font-size: .88rem;
    color: var(--home-text);
}
.practice-help-example p {
    margin: 0 0 .5rem;
    font-size: .84rem;
    color: #475569;
    line-height: 1.5;
}
.practice-help-example-steps {
    margin: 0 0 .55rem;
    padding-left: 1.15rem;
    font-size: .84rem;
    color: #475569;
    line-height: 1.55;
}
.practice-help-example-steps li + li {
    margin-top: .35rem;
}
.practice-help-example-note {
    margin: 0 !important;
    font-size: .8rem !important;
    color: #64748b !important;
    font-style: italic;
}
.practice-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.practice-help-card { background: #f8fafc; border-radius: 14px; padding: 1rem; }
.practice-help-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.target-setup-modal-dialog {
    max-width: 34rem;
}

.target-setup-modal-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}

.target-setup-modal-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 0.25rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.target-setup-modal-icon-ring {
    position: absolute;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, transparent 70%);
}

.target-setup-modal-icon {
    font-size: 2.4rem;
    line-height: 1;
    filter: drop-shadow(0 6px 14px rgba(124, 58, 237, 0.2));
}

.target-setup-modal-body {
    padding: 1.1rem 1.35rem 1.35rem;
}

.target-setup-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7c3aed;
}

.target-setup-title {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.target-setup-lead {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
}

.target-setup-explainer {
    background: linear-gradient(135deg, #f8fafc 0%, #f5f3ff 100%);
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
}

.target-setup-explainer-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.target-setup-explainer-emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.target-setup-explainer-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
}

.target-setup-explainer-text {
    margin: 0;
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.55;
}

.target-setup-explainer-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.target-setup-explainer-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
}

.target-setup-pick-label {
    margin: 0 0 0.65rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #334155;
}

.target-setup-options {
    display: grid;
    gap: 0.65rem;
}

.target-setup-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: #fff;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.target-setup-btn:hover {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.target-setup-btn--recommended {
    border-color: rgba(124, 58, 237, 0.35);
    background: linear-gradient(135deg, #fff 0%, #faf5ff 100%);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.1);
}

.target-setup-btn--recommended:hover {
    border-color: #a78bfa;
    background: linear-gradient(135deg, #fff 0%, #f3e8ff 100%);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.16);
}

.target-setup-recommended-badge {
    position: absolute;
    top: -0.55rem;
    right: 0.85rem;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.28);
}

.target-setup-btn-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    min-width: 0;
}

.target-setup-btn-main strong {
    font-size: 1rem;
    color: #0f172a;
}

.target-setup-btn-unit {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}

.target-setup-btn-sub {
    font-size: 0.8rem;
    color: #64748b;
}

.target-setup-btn-emoji {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
}

.target-setup-profile-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 1rem 0 0;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.16);
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.5;
}

.target-setup-profile-note-emoji {
    font-size: 1rem;
    line-height: 1.2;
}

.practice-streak-pill { margin: .5rem 0 0; font-size: .82rem; color: #ea580c; font-weight: 600; }
.practice-streak-pill i { margin-right: .25rem; }
.practice-next-milestone { font-size: .78rem; color: var(--home-text-muted); }

.my-vocab-browse-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.my-vocab-browse-loading-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
}

.my-vocab-browse-pager {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.my-vocab-col-actions {
    min-width: 22rem;
}

.my-vocab-word-cell {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.my-vocab-word-badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.my-vocab-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.my-vocab-badge--learn {
    background: rgba(30, 58, 95, 0.1);
    color: var(--elh-primary);
}

.my-vocab-badge--skip {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.my-vocab-badge--schedule {
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
}

.my-vocab-action-modal--learn .practice-skip-modal-icon {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
}

.my-vocab-action-modal--learn .practice-skip-modal-confirm {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8a 100%);
}

.my-vocab-action-modal--skip .practice-skip-modal-icon {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.my-vocab-action-modal--skip .practice-skip-modal-confirm {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.my-vocab-col-id {
    width: 4.5rem;
    white-space: nowrap;
}

/* My Vocabulary page */
.my-vocab-page {
    max-width: 1180px;
}

.my-vocab-hero {
    background: linear-gradient(135deg, #fff 0%, #fafbff 55%, #f5f3ff 100%);
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.my-vocab-hero-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7c3aed;
}

.my-vocab-hero-title {
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--elh-primary);
    line-height: 1.15;
}

.my-vocab-hero-sub {
    font-size: 0.92rem;
    color: #64748b;
    max-width: 42rem;
}

.my-vocab-add-btn {
    border: 0;
    background: linear-gradient(135deg, var(--elh-primary) 0%, #2d5a8a 100%);
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.22);
    font-weight: 600;
    font-size: .84rem;
    padding: .4rem .9rem;
}

.my-vocab-add-btn:hover {
    background: linear-gradient(135deg, #2d5a8a 0%, var(--elh-primary) 100%);
    color: #fff;
}

.my-vocab-tabs {
    border-bottom: 0;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: 0.35rem;
}

.my-vocab-tabs .nav-item {
    margin-bottom: 0;
}

.my-vocab-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #64748b;
    border: 0;
    border-radius: 10px;
    padding: 0.55rem 1rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.my-vocab-tabs .nav-link i {
    opacity: 0.85;
}

.my-vocab-tabs .nav-link:hover {
    color: var(--elh-primary);
    background: rgba(30, 58, 95, 0.06);
}

.my-vocab-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--elh-primary) 0%, #2d5a8a 100%);
    box-shadow: 0 6px 16px rgba(30, 58, 95, 0.2);
}

.my-vocab-tabs .nav-link.active i {
    opacity: 1;
}

.my-vocab-search-form .my-vocab-search-input {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
}

.my-vocab-search-form .my-vocab-search-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.my-vocab-search-btn {
    border-radius: 12px;
    font-weight: 600;
    padding-inline: 1.1rem;
}

.my-vocab-level-filter {
    min-width: 8.5rem;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    color: #1e293b;
}

.my-vocab-level-filter:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.my-vocab-yours-card,
.my-vocab-browse-card {
    border: 1px solid #e8edf5;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
    overflow: hidden;
}

.my-vocab-table-wrap {
    border-radius: 0 0 16px 16px;
}

.my-vocab-yours-table,
.my-vocab-browse-table {
    margin-bottom: 0;
    font-size: 0.88rem;
}

.my-vocab-yours-table thead th,
.my-vocab-browse-table thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 0.8rem 1rem;
}

.my-vocab-yours-table tbody td,
.my-vocab-browse-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.my-vocab-yours-table tbody tr:last-child td,
.my-vocab-browse-table tbody tr:last-child td {
    border-bottom: 0;
}

.my-vocab-yours-table tbody tr:hover,
.my-vocab-browse-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.04) 0%, rgba(59, 130, 246, 0.04) 100%);
}

.my-vocab-yours-word strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.my-vocab-yours-date {
    color: #64748b;
    font-size: 0.84rem;
}

.my-vocab-level-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #e2e8f0;
    color: #475569;
}

.my-vocab-level-badge[data-level^="A"],
.my-vocab-level-badge[data-level^="a"] {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.my-vocab-level-badge[data-level^="B"],
.my-vocab-level-badge[data-level^="b"] {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.my-vocab-level-badge[data-level^="C"],
.my-vocab-level-badge[data-level^="c"] {
    background: rgba(124, 58, 237, 0.14);
    color: #6d28d9;
}

.my-vocab-action-btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.78rem;
}

.my-vocab-action-btn--view {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #1d4ed8;
}

.my-vocab-action-btn--view:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.my-vocab-action-btn--generate {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: #6d28d9;
}

.my-vocab-action-btn--generate:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.my-vocab-action-btn--edit {
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.22);
    color: #475569;
}

.my-vocab-action-btn--edit:hover {
    background: #64748b;
    border-color: #64748b;
    color: #fff;
}

.my-vocab-footer-note {
    font-size: 0.84rem;
    color: #64748b;
    font-weight: 500;
}

.my-vocab-success-alert {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.98) 0%, rgba(240, 253, 250, 0.98) 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-left: 4px solid #10b981;
    color: #065f46;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

.my-vocab-success-alert__text {
    line-height: 1.5;
}

.my-vocab-success-alert__btn {
    border: 1px solid #059669;
    color: #047857;
    background: #fff;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 10px;
}

.my-vocab-success-alert__btn:hover,
.my-vocab-success-alert__btn:focus {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.my-vocab-add-layout {
    display: flex;
    justify-content: center;
    padding-bottom: 2rem;
}

.my-vocab-add-center {
    width: 100%;
    max-width: 42rem;
}

.my-vocab-add-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.my-vocab-add-divider::before,
.my-vocab-add-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.my-vocab-generate-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.my-vocab-generate-option {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    background: #fafbfc;
}

.my-vocab-generate-option--full {
    border-color: rgba(255, 193, 7, 0.45);
    background: #fffdf5;
}

.my-vocab-generate-option-title {
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vocab-generating-modal .modal-dialog {
    max-width: 26rem;
}

.vocab-generating-modal-content {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
    background: #fff;
    overflow: hidden;
}

.vocab-generating-modal .modal-header {
    padding: 1.5rem 1.5rem 0;
}

.vocab-generating-modal .modal-body {
    padding: 1rem 1.5rem 1.5rem;
}

.vocab-generating-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: #eff6ff;
}

.vocab-generating-modal-icon .spinner-border {
    width: 1.75rem;
    height: 1.75rem;
    border-width: 0.2rem;
}

.vocab-generating-modal .modal-backdrop.show {
    opacity: 0.55;
}

.vocab-add-pipeline-steps {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    text-align: left;
}

.vocab-add-pipeline-step {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.45rem 0;
    color: #64748b;
    font-size: 0.875rem;
}

.vocab-add-pipeline-step-icon {
    flex: 0 0 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    border: 2px solid currentColor;
    position: relative;
}

.vocab-add-pipeline-step-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.vocab-add-pipeline-step-label {
    font-weight: 600;
    color: #0f172a;
}

.vocab-add-pipeline-step-detail {
    font-size: 0.75rem;
    color: #64748b;
}

.vocab-add-pipeline-step.is-pending .vocab-add-pipeline-step-icon {
    opacity: 0.45;
}

.vocab-add-pipeline-step.is-active {
    color: #2563eb;
}

.vocab-add-pipeline-step.is-active .vocab-add-pipeline-step-icon {
    border-color: transparent;
    border-top-color: currentColor;
    animation: vocab-add-pipeline-spin 0.8s linear infinite;
}

.vocab-add-pipeline-step.is-completed .vocab-add-pipeline-step-icon {
    border-color: #16a34a;
    background: #16a34a;
}

.vocab-add-pipeline-step.is-completed .vocab-add-pipeline-step-icon::after {
    content: "";
    position: absolute;
    left: 0.28rem;
    top: 0.12rem;
    width: 0.35rem;
    height: 0.6rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.vocab-add-pipeline-step.is-failed .vocab-add-pipeline-step-icon {
    border-color: #dc2626;
    background: #dc2626;
}

.vocab-add-pipeline-step.is-failed .vocab-add-pipeline-step-icon::after {
    content: "!";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.vocab-add-pipeline-remaining {
    min-height: 1.25rem;
}

@keyframes vocab-add-pipeline-spin {
    to { transform: rotate(360deg); }
}

.vocab-media-upload-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vocab-media-current-image,
.vocab-media-preview-image {
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.vocab-media-current-audio {
    max-width: 100%;
}

/* Learn — Phrases */
.learn-main { padding-top: 1rem; }
.learn-page { max-width: 1100px; margin: 0 auto; padding: 1rem 0 2.5rem; }
.learn-page-back-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .1);
    background: #fff;
    color: var(--home-text);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    transition: border-color .15s, color .15s, box-shadow .15s;
}
.learn-page-back-btn:hover {
    border-color: var(--home-blue);
    color: var(--home-blue);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .08);
}
.learn-page-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; }
.learn-page-eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--home-muted); margin-bottom: .35rem; }
.learn-page-title { font-size: clamp(1.15rem, 2.1vw, 1.45rem); font-weight: 700; line-height: 1.35; margin: 0 0 .5rem; color: var(--home-text); }
.learn-page-lead { color: var(--home-muted); margin: 0; max-width: 42rem; }
.learn-breadcrumb { color: inherit; text-decoration: none; }
.learn-breadcrumb:hover { color: var(--home-blue); }
.learn-search-form, .learn-filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.learn-search-form .form-control, .learn-filter-bar .form-control { min-width: 200px; }
.learn-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.learn-category-card { display: block; padding: 1.1rem 1.2rem; border-radius: 14px; border: 1px solid rgba(15, 23, 42, .08); background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.learn-category-card:hover { border-color: var(--home-blue); box-shadow: 0 8px 24px rgba(37, 99, 235, .08); color: inherit; }
.learn-category-icon { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: 10px; background: rgba(37, 99, 235, .1); color: var(--home-blue); margin-bottom: .65rem; }
.learn-category-title { font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; }
.learn-category-count { font-size: .85rem; color: var(--home-muted); margin: 0; }
.learn-page-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.learn-phrase-list { display: grid; gap: .75rem; }
.phrases-page .learn-phrase-list,
.idioms-page .learn-phrase-list {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .65rem;
}
.learn-phrase-card { display: block; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid rgba(15, 23, 42, .08); background: #fff; text-decoration: none; color: inherit; }
.phrases-page .learn-phrase-card,
.idioms-page .learn-phrase-card {
    height: 100%;
    padding: .85rem .95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.phrases-page .learn-phrase-card:hover,
.idioms-page .learn-phrase-card:hover {
    box-shadow: 0 6px 18px rgba(37, 99, 235, .08);
}
.learn-phrase-card--button { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.learn-phrase-card--button:focus-visible { outline: 2px solid var(--home-blue); outline-offset: 2px; }
.learn-phrase-card:hover { border-color: var(--home-blue); color: inherit; }
.learn-phrase-card-top { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.learn-phrase-text { font-size: 1.05rem; font-weight: 700; margin: 0; }
.phrases-page .learn-phrase-text,
.idioms-page .learn-phrase-text {
    font-size: 1rem;
    line-height: 1.35;
}
.learn-phrase-meaning { margin: .5rem 0 0; color: var(--home-muted); font-size: .9rem; }
.phrases-page .learn-phrase-meaning,
.idioms-page .learn-phrase-meaning {
    margin-top: .35rem;
    font-size: .84rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.learn-level-badge { font-size: .75rem; font-weight: 600; padding: .2rem .5rem; border-radius: 999px; background: rgba(15, 23, 42, .06); color: var(--home-text); white-space: nowrap; }
.learn-list-meta, .learn-empty { color: var(--home-muted); font-size: .9rem; }
.learn-pager { display: flex; gap: .5rem; margin-top: 1rem; }
.learn-browse-pager-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    padding: .85rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, .03);
    border: 1px solid rgba(15, 23, 42, .06);
}
.learn-browse-pager-bar--top { margin: 0 0 1.25rem; }
.learn-browse-pager-bar--bottom { margin: 1.5rem 0 0; }
.learn-browse-pager-meta { margin: 0; color: var(--home-muted); font-size: .9rem; }
.learn-browse-pager-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-left: auto; }

/* Generic content-module preview (Comedy / Conversation / Debates / Idioms / Sentences / Interview Q&A) */
.content-detail-lang-form { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.25rem; padding: .75rem 1rem; border-radius: 12px; background: rgba(37, 99, 235, .06); }
.content-detail-lang-label { font-size: .85rem; font-weight: 600; color: var(--home-text); margin: 0; white-space: nowrap; }
.content-detail-lang-select { max-width: 320px; }
.content-detail-translate-btn { white-space: nowrap; }
.content-detail-lines-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.content-detail-collapse { border: 1px solid rgba(15, 23, 42, .08); border-radius: 12px; background: #fff; padding: 0; }
.content-detail-collapse-summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; min-height: 2.85rem; padding: .85rem 1.1rem; font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--home-muted); border-radius: 12px; transition: background-color .15s ease; }
.content-detail-collapse-summary:hover { background: rgba(15, 23, 42, .035); }
.content-detail-collapse[open] > .content-detail-collapse-summary { border-bottom: 1px solid rgba(15, 23, 42, .08); border-radius: 12px 12px 0 0; }
.content-detail-collapse-summary .collapse-summary-label { flex: 0 0 11.5rem; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; min-width: 0; }
.content-detail-collapse-summary .collapse-summary-label i { width: 1.1rem; text-align: center; flex-shrink: 0; color: #4f46e5; }
.content-detail-collapse-summary .collapse-summary-hint { flex: 1 1 auto; text-align: center; font-weight: 500; font-size: .75rem; color: #94a3b8; letter-spacing: 0; text-transform: none; pointer-events: none; user-select: none; min-width: 0; padding: 0 .35rem; }
.content-detail-collapse-summary .collapse-summary-hint-arrow { font-size: .65rem; margin-left: .15rem; vertical-align: middle; color: #94a3b8; }
.content-detail-collapse[open] > .content-detail-collapse-summary .collapse-summary-hint-when-closed,
.content-detail-collapse:not([open]) > .content-detail-collapse-summary .collapse-summary-hint-when-open { display: none; }
.content-detail-collapse-summary::-webkit-details-marker { display: none; }
.content-detail-collapse-summary-end { display: flex; align-items: center; justify-content: flex-end; flex: 0 0 1.25rem; }
.content-detail-line-count { font-size: .78rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--home-muted); }
.content-detail-collapse-chevron { color: var(--home-muted); font-size: .8rem; transition: transform .15s ease; }
.content-detail-collapse[open] > .content-detail-collapse-summary .content-detail-collapse-chevron { transform: rotate(180deg); }
.content-detail-collapse-body { padding: 0 1.1rem 1.1rem; }
.content-detail-dialogue-collapse .content-detail-lines-head { margin-bottom: .65rem; }
.content-detail-lines { display: grid; gap: .65rem; }
.content-detail-line { padding: .85rem 1rem; border-radius: 12px; border: 1px solid rgba(15, 23, 42, .08); background: #fff; }
.content-detail-line-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.content-detail-line-speaker { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; flex: 1 1 auto; }
.content-detail-character { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--speaker-color, var(--home-blue)); }
.content-detail-text { margin: 0; font-size: 1rem; line-height: 1.55; }
.content-detail-translation { margin: .4rem 0 0; padding-top: .4rem; border-top: 1px dashed rgba(15, 23, 42, .1); font-size: .95rem; line-height: 1.55; color: var(--home-muted); }
.content-detail-play-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; border: none; background: rgba(37, 99, 235, .1); color: var(--home-blue); cursor: pointer; flex-shrink: 0; transition: background .15s, color .15s; }
.content-detail-play-btn i { font-size: .82rem; margin-left: 1px; }
.content-detail-play-btn:hover { background: var(--home-blue); color: #fff; }
.content-detail-play-btn.is-playing { background: var(--home-blue); color: #fff; }
.content-detail-play-btn.is-paused { background: #f59e0b; color: #fff; }
.content-detail-play-all.is-playing { background: #0f172a; border-color: #0f172a; }
.content-detail-play-all.is-paused { background: #f59e0b; border-color: #d97706; color: #fff; }
.content-detail-line { transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease; border-left: 3px solid transparent; }
.content-detail-line.is-playing {
    border-color: color-mix(in srgb, var(--speaker-color, #4338ca) 55%, white);
    border-left: 4px solid var(--speaker-color, #4338ca);
    background: linear-gradient(180deg, color-mix(in srgb, var(--speaker-color, #4338ca) 8%, white) 0%, color-mix(in srgb, var(--speaker-color, #4338ca) 14%, white) 100%);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--speaker-color, #4338ca) 22%, transparent);
    transform: translateY(-1px);
}
.content-detail-line.is-paused {
    border-color: #fcd34d;
    border-left: 4px solid #d97706;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: 0 6px 20px rgba(217, 119, 6, .18);
    transform: translateY(-1px);
}
.content-detail-eq { display: none; align-items: flex-end; gap: 2px; height: 16px; margin-left: .1rem; flex-shrink: 0; }
.content-detail-line.is-playing .content-detail-eq,
.content-detail-line.is-paused .content-detail-eq { display: inline-flex; }
.content-detail-eq span { display: block; width: 3px; height: 100%; min-height: 10px; background: var(--speaker-color, #2563eb); border-radius: 2px; transform-origin: bottom; box-shadow: 0 0 0 1px rgba(255, 255, 255, .45); }
.content-detail-line.is-playing .content-detail-eq span { animation: contentEqBounce .85s ease-in-out infinite; }
.content-detail-line.is-paused .content-detail-eq span { animation: none; transform: scaleY(.45); opacity: .9; }
.content-detail-eq span:nth-child(1) { animation-delay: 0s; }
.content-detail-eq span:nth-child(2) { animation-delay: .15s; }
.content-detail-eq span:nth-child(3) { animation-delay: .3s; }
.content-detail-eq span:nth-child(4) { animation-delay: .45s; }
@keyframes contentEqBounce { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.content-detail-character-list, .content-detail-question-list { margin: 0; padding-left: 1.2rem; }
.content-detail-character-list li, .content-detail-question-list li { margin-bottom: .5rem; }
.content-detail-question-text { font-weight: 600; margin: 0; }
.content-detail-answer-text { margin: .35rem 0 0; padding: .5rem .65rem; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; color: #1e3a8a; font-size: .95rem; line-height: 1.5; }

.content-detail-coaching {
    margin-top: .7rem;
    border: 1px solid rgba(245, 158, 11, .28);
    border-radius: 12px;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
    overflow: hidden;
}

.content-detail-coaching-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem .7rem;
    cursor: pointer;
    list-style: none;
    font-size: .8rem;
    font-weight: 700;
    color: #92400e;
}

.content-detail-coaching-summary::-webkit-details-marker { display: none; }

.content-detail-coaching-summary-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.content-detail-coaching-chevron {
    font-size: .68rem;
    color: #b45309;
    transition: transform .18s ease;
}

.content-detail-coaching[open] .content-detail-coaching-chevron {
    transform: rotate(180deg);
}

.content-detail-coaching-body {
    padding: 0 .75rem .75rem;
    display: grid;
    gap: .65rem;
}

.content-detail-coaching-block + .content-detail-coaching-block {
    padding-top: .55rem;
    border-top: 1px dashed rgba(148, 163, 184, .35);
}

.content-detail-coaching-heading {
    margin: 0 0 .35rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.content-detail-coaching-heading i {
    color: #2563eb;
}

.content-detail-coaching-text {
    margin: 0;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.6;
    color: #0f172a;
}

.content-detail-coaching-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: .35rem;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.6;
    color: #0f172a;
}

.content-detail-coaching-list--warn li::marker { color: #dc2626; }
.content-detail-coaching-list--tips li::marker { color: #d97706; }
.learn-item-linecount { margin: .35rem 0 0; }
.learn-detail-card { background: #fff; border-radius: 16px; border: 1px solid rgba(15, 23, 42, .08); padding: 1.5rem; }
.learn-detail-head { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-start; justify-content: space-between; margin-bottom: 1.25rem; }
.learn-detail-head-main { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; min-width: 0; flex: 1 1 12rem; }
.learn-detail-title { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; line-height: 1.35; margin: 0; }
.learn-detail-phrase-nav { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; flex-shrink: 0; }
.learn-detail-phrase-nav-btn { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.learn-detail-phrase-nav-btn.is-disabled { opacity: .45; pointer-events: none; cursor: default; }
.learn-detail-section { margin-bottom: 0; }
.learn-detail-card > .content-detail-collapse + .content-detail-collapse { margin-top: 2px; }
.learn-detail-section-title { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--home-muted); margin-bottom: .5rem; }
.learn-detail-meaning { font-size: 1.05rem; line-height: 1.6; margin: 0; }
.learn-example-list { margin: 0; padding-left: 1.2rem; }
.learn-example-list li { margin-bottom: .35rem; }
.learn-detail-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.learn-simple-detail-page .learn-detail-card {
    padding: 1.65rem;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 36px rgba(15, 23, 42, .06);
}

.learn-detail-panel {
    margin-top: 1rem;
    border: 1px solid rgba(99, 102, 241, .14);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
    overflow: hidden;
}

.learn-detail-panel--meaning {
    border-color: rgba(234, 179, 8, .28);
    background: linear-gradient(180deg, #fffef8 0%, #fff 100%);
}

.learn-detail-panel--examples {
    border-color: rgba(37, 99, 235, .18);
}

.learn-detail-panel--notes {
    border-color: rgba(124, 58, 237, .18);
}

.learn-detail-panel-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    background: rgba(255, 255, 255, .72);
}

.learn-detail-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, .12);
    color: #4f46e5;
    font-size: .9rem;
    flex-shrink: 0;
}

.learn-detail-panel--meaning .learn-detail-panel-icon {
    background: rgba(234, 179, 8, .18);
    color: #b45309;
}

.learn-detail-panel-title {
    margin: 0;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #475569;
}

.learn-detail-panel-body {
    padding: 1rem 1rem 1.1rem;
}

.learn-detail-example-lines {
    display: grid;
    gap: .45rem;
}

.learn-detail-example-card {
    margin: 0;
    padding: .55rem .75rem;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, .07);
    border-left: 3px solid rgba(79, 70, 229, .45);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.learn-detail-example-card .content-detail-text,
.learn-detail-example-text {
    margin: 0;
    font-size: .98rem;
    line-height: 1.45;
    color: #0f172a;
}

.learn-detail-example-card .content-detail-translation-host {
    margin-top: .2rem;
}

.learn-detail-example-card .content-detail-translation {
    margin: 0;
    padding: 0;
    border: none;
    font-size: .92rem;
    line-height: 1.45;
}

.phrases-page .learn-detail-panel-body,
.idioms-page .learn-detail-panel-body,
.sentences-page .learn-detail-panel-body,
.learn-simple-detail-page .learn-detail-panel-body {
    padding: .75rem .85rem .85rem;
}

.phrases-page .learn-detail-panel + .learn-detail-panel,
.idioms-page .learn-detail-panel + .learn-detail-panel,
.sentences-page .learn-detail-panel + .learn-detail-panel,
.learn-simple-detail-page .learn-detail-panel + .learn-detail-panel {
    margin-top: .75rem;
}

.learn-detail-phrase-translation {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    border-radius: 12px;
    background: rgba(37, 99, 235, .06);
    border: 1px solid rgba(37, 99, 235, .12);
}

.learn-detail-phrase-translation-host {
    margin: -.35rem 0 .85rem;
}

.learn-detail-phrase-translation-host .elh-translation-block {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    align-items: center;
}

.learn-detail-phrase-translation-host .content-detail-translation,
.learn-detail-phrase-translation-host .elh-translation-text {
    margin: 0;
    padding: 0;
    border: none;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    font-weight: 600;
    line-height: 1.55;
    color: #0f172a;
}

.learn-detail-phrase-translation-host .content-detail-translation.lang-urdu,
.learn-detail-phrase-translation-host .elh-translation-text.lang-urdu {
    font-size: clamp(1.15rem, 2.3vw, 1.35rem);
    line-height: 1.75;
}

.learn-simple-detail-page .content-detail-lang-form {
    margin-bottom: .25rem;
}

.learn-simple-detail-page .sentence-notes-collapse[open] > .content-detail-collapse-summary {
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.practice-phrase-quote { margin: .75rem 0 0; padding: .75rem 1rem; border-left: 4px solid var(--home-blue); background: rgba(37, 99, 235, .06); font-size: 1.1rem; font-weight: 600; }
.practice-phrase-examples { margin: 0; padding-left: 1.2rem; }
.body-practice-phrases .practice-top-section { /* inherits general practice layout */ }

/* Home — sticky feedback tab (right edge) */
.elh-feedback-dock {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1040;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
}

.elh-feedback-dock.is-hero-visible .elh-feedback-tab {
    box-shadow: -8px 10px 32px rgba(79, 70, 229, .28);
}

.elh-feedback-tab {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-width: 3.1rem;
    padding: .85rem .55rem .95rem;
    border: none;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(165deg, #6366f1 0%, #4f46e5 48%, #4338ca 100%);
    color: #fff;
    box-shadow: -6px 8px 28px rgba(79, 70, 229, .24);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.elh-feedback-tab:hover {
    transform: translateX(-2px);
    filter: brightness(1.05);
    box-shadow: -10px 12px 34px rgba(79, 70, 229, .32);
}

.elh-feedback-tab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.elh-feedback-tab-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: 1rem;
}

.elh-feedback-tab-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.elh-feedback-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.elh-feedback-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem 1rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 55%, #faf5ff 100%);
    border-bottom: 1px solid rgba(99, 102, 241, .12);
}

.elh-feedback-modal-header-copy {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.elh-feedback-modal-icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    flex-shrink: 0;
}

.elh-feedback-modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e1b4b;
}

.elh-feedback-modal-sub {
    margin: .2rem 0 0;
    font-size: .86rem;
    color: #64748b;
    line-height: 1.45;
}

.elh-feedback-modal-close {
    border: none;
    background: rgba(255, 255, 255, .75);
    color: #475569;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.elh-feedback-modal-body {
    padding: 1.15rem 1.35rem 1.35rem;
}

.elh-feedback-field {
    margin-bottom: 1rem;
}

.elh-feedback-label {
    display: block;
    margin-bottom: .35rem;
    font-size: .82rem;
    font-weight: 700;
    color: #334155;
}

.elh-feedback-select,
.elh-feedback-input,
.elh-feedback-textarea {
    border-radius: 12px;
    border-color: #e2e8f0;
    font-size: .92rem;
}

.elh-feedback-textarea {
    resize: vertical;
    min-height: 7.5rem;
}

.elh-feedback-hint {
    margin-top: .35rem;
    font-size: .78rem;
    color: #94a3b8;
}

.elh-feedback-signed-in {
    margin: 0 0 1rem;
    padding: .65rem .8rem;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: .84rem;
}

.elh-feedback-status {
    margin-bottom: .85rem;
    padding: .65rem .8rem;
    border-radius: 12px;
    font-size: .84rem;
    font-weight: 600;
}

.elh-feedback-status--info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.elh-feedback-status--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.elh-feedback-status--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.elh-feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: .65rem;
    margin-top: .25rem;
}

.elh-feedback-btn-cancel {
    border-radius: 999px;
    padding: .55rem 1rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.elh-feedback-btn-submit {
    border-radius: 999px;
    padding: .55rem 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.elh-feedback-btn-submit:disabled {
    opacity: .7;
}

@media (max-width: 575.98px) {
    .elh-feedback-dock {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .elh-feedback-tab {
        flex-direction: row;
        min-width: auto;
        padding: .7rem .95rem;
        border-radius: 999px 0 0 999px;
    }

    .elh-feedback-tab-label {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        letter-spacing: .04em;
    }
}

/* Mobile app WebView — hide floating feedback tab; opened from More menu */
html.elh-mobile-embed .elh-feedback-dock {
    display: none !important;
}

/* ── Home feature detail modals ── */
.home-feature-modal {
    z-index: 1060;
}

.home-feature-modal-content {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 28px 70px rgba(15, 23, 42, .22),
        0 0 0 1px rgba(148, 163, 184, .12);
}

.home-feature-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .8rem 1.1rem .7rem;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.home-feature-modal-header--ai {
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 55%, #fff 100%);
}

.home-feature-modal-header--review {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 55%, #fff 100%);
}

.home-feature-modal-header--language {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 55%, #fff 100%);
}

.home-feature-modal-header--progress {
    background: linear-gradient(135deg, #ffedd5 0%, #fff7ed 55%, #fff 100%);
}

.home-feature-modal-header-copy {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.home-feature-modal-icon {
    display: inline-flex;
    width: 2.15rem;
    height: 2.15rem;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    flex-shrink: 0;
    font-size: .82rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .1);
}

.home-feature-modal-icon--ai {
    background: linear-gradient(135deg, #818cf8, #6366f1);
}

.home-feature-modal-icon--review {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
}

.home-feature-modal-icon--language {
    background: linear-gradient(135deg, #34d399, #059669);
}

.home-feature-modal-icon--progress {
    background: linear-gradient(135deg, #fb923c, #ea580c);
}

.home-feature-modal-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.home-feature-modal-sub {
    margin: .1rem 0 0;
    font-size: .78rem;
    color: #64748b;
    line-height: 1.35;
    max-width: 28rem;
}

.home-feature-modal-close {
    border: none;
    background: rgba(255, 255, 255, .8);
    color: #475569;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .85rem;
    transition: background .15s ease, color .15s ease;
}

.home-feature-modal-close:hover {
    background: #fff;
    color: #0f172a;
}

.home-feature-modal-body {
    padding: 1.2rem 1.4rem 1.1rem;
    background: #fff;
}

.home-feature-modal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .85rem;
}

.home-feature-modal-list li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .9rem;
    line-height: 1.55;
    color: #334155;
}

.home-feature-modal-bullet {
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(99, 102, 241, .1);
    color: #6366f1;
    font-size: .62rem;
    flex-shrink: 0;
    margin-top: .15rem;
}

.home-feature-modal-footer {
    padding: .55rem 1rem .75rem;
    border-top: 1px solid #e8edf5;
    gap: .45rem;
    background: #f8fafc;
}

.home-feature-modal-btn-cancel {
    border-radius: 10px;
    padding: .45rem .9rem;
    font-size: .84rem;
    font-weight: 600;
    color: #475569;
    border: 1px solid #cbd5e1;
    background: #fff;
    min-height: 0;
    line-height: 1.3;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.home-feature-modal-btn-cancel:hover,
.home-feature-modal-btn-cancel:focus {
    color: #0f172a;
    border-color: #94a3b8;
    background: #f1f5f9;
}

.home-feature-modal-btn-cta {
    border-radius: 10px;
    padding: .45rem .95rem;
    font-size: .84rem;
    font-weight: 700;
    color: #fff;
    border: none;
    min-height: 0;
    line-height: 1.3;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .14);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

/* ── Interview chooser modal (Listen & Speak nav) ── */
.interview-chooser-modal {
    z-index: 1060;
}

.interview-chooser-modal-dialog {
    max-width: 720px;
}

.interview-chooser-modal-content {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 28px 70px rgba(15, 23, 42, .22),
        0 0 0 1px rgba(148, 163, 184, .12);
}

.interview-chooser-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: 1.1rem 1.25rem .95rem;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 45%, #fff 100%);
}

.interview-chooser-modal-header-copy {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-width: 0;
}

.interview-chooser-modal-icon {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
    font-size: .9rem;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, .28);
}

.interview-chooser-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
}

.interview-chooser-modal-sub {
    margin: .2rem 0 0;
    font-size: .86rem;
    line-height: 1.45;
    color: #64748b;
}

.interview-chooser-modal-close {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, .75);
    color: #64748b;
    flex-shrink: 0;
    transition: background .15s ease, color .15s ease;
}

.interview-chooser-modal-close:hover {
    background: #fff;
    color: #0f172a;
}

.interview-chooser-modal-body {
    padding: 1.15rem 1.25rem 1.35rem;
    background: #fff;
}

.interview-chooser-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.interview-chooser-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
    min-height: 100%;
    padding: 1rem 1rem .95rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.interview-chooser-card:hover,
.interview-chooser-card:focus-visible {
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
    border-color: rgba(99, 102, 241, .35);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
}

.interview-chooser-card--role {
    background: linear-gradient(180deg, #f5f3ff 0%, #fff 72%);
}

.interview-chooser-card--exam {
    background: linear-gradient(180deg, #ecfeff 0%, #fff 72%);
}

.interview-chooser-card-glow {
    position: absolute;
    inset: -30% auto auto -20%;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    opacity: .45;
    pointer-events: none;
}

.interview-chooser-card--role .interview-chooser-card-glow {
    background: radial-gradient(circle, rgba(129, 140, 248, .35) 0%, transparent 70%);
}

.interview-chooser-card--exam .interview-chooser-card-glow {
    background: radial-gradient(circle, rgba(34, 211, 238, .35) 0%, transparent 70%);
}

.interview-chooser-card-icon {
    display: inline-flex;
    width: 2.2rem;
    height: 2.2rem;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #fff;
    font-size: .88rem;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .12);
}

.interview-chooser-card--role .interview-chooser-card-icon {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.interview-chooser-card--exam .interview-chooser-card-icon {
    background: linear-gradient(135deg, #22d3ee, #0891b2);
}

.interview-chooser-card-kicker {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}

.interview-chooser-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.interview-chooser-card-desc {
    font-size: .82rem;
    line-height: 1.5;
    color: #475569;
    flex: 1;
}

.interview-chooser-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .25rem;
    font-size: .8rem;
    font-weight: 700;
    color: #4f46e5;
}

.interview-chooser-card--exam .interview-chooser-card-cta {
    color: #0891b2;
}

.interview-chooser-card-cta i {
    font-size: .72rem;
    transition: transform .15s ease;
}

.interview-chooser-card:hover .interview-chooser-card-cta i,
.interview-chooser-card:focus-visible .interview-chooser-card-cta i {
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .interview-chooser-grid {
        grid-template-columns: 1fr;
    }

    .interview-chooser-modal-dialog {
        margin: .75rem;
    }
}

/* ── Interview by role (Listen & Speak) ── */
.interview-roles-page {
    --ir-accent: #1d4ed8;
    --ir-accent-soft: rgba(37, 99, 235, .1);
    --ir-surface: #fff;
    --ir-border: rgba(15, 23, 42, .08);
}

.interview-roles-page-title {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.interview-roles-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .14), rgba(99, 102, 241, .1));
    color: var(--ir-accent);
    flex-shrink: 0;
}

.interview-roles-page-stat {
    margin: .35rem 0 0;
    font-size: .88rem;
    color: var(--home-muted);
}

.interview-roles-category-grid {
    gap: 1.1rem;
}

.interview-roles-category-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 1.2rem 1.25rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.interview-roles-category-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #2563eb, #6366f1);
    opacity: 0;
    transition: opacity .18s ease;
}

.interview-roles-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(37, 99, 235, .1);
}

.interview-roles-category-card:hover::before {
    opacity: 1;
}

.interview-roles-set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.interview-roles-set-card {
    display: block;
    padding: 1.15rem 1.2rem 1.2rem;
    border-radius: 16px;
    border: 1px solid var(--ir-border);
    background: var(--ir-surface);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.interview-roles-set-card:hover {
    color: inherit;
    border-color: rgba(37, 99, 235, .28);
    box-shadow: 0 14px 34px rgba(37, 99, 235, .1);
    transform: translateY(-2px);
}

.interview-roles-set-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}

.interview-roles-set-badge {
    display: inline-flex;
    align-items: center;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: var(--ir-accent-soft);
    color: var(--ir-accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.interview-roles-set-arrow {
    color: #94a3b8;
    font-size: .85rem;
    transition: transform .18s ease, color .18s ease;
}

.interview-roles-set-card:hover .interview-roles-set-arrow {
    color: var(--ir-accent);
    transform: translateX(3px);
}

.interview-roles-set-title {
    margin: 0 0 .45rem;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--home-text);
}

.interview-roles-set-subtitle {
    margin: 0 0 .65rem;
    font-size: .88rem;
    color: var(--home-muted);
    line-height: 1.45;
}

.interview-roles-set-count {
    margin: 0;
    font-size: .82rem;
    font-weight: 600;
    color: #64748b;
}

.interview-roles-set-count i {
    margin-right: .35rem;
    color: var(--ir-accent);
}

.interview-roles-detail-page .interview-roles-detail-hero {
    margin-bottom: 1.35rem;
}

.interview-roles-detail-title {
    margin: 0 0 .75rem;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--home-text);
}

.interview-roles-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.interview-roles-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: .8rem;
    font-weight: 600;
}

.interview-roles-detail-chip--accent {
    background: rgba(37, 99, 235, .1);
    color: #1d4ed8;
}

.interview-roles-qa-panel {
    border: 1px solid var(--ir-border);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
}

.interview-roles-qa-panel-head {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.interview-roles-qa-panel-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 .25rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--home-text);
}

.interview-roles-qa-panel-title i {
    color: #4f46e5;
}

.interview-roles-qa-panel-hint {
    margin: 0;
    font-size: .84rem;
    color: var(--home-muted);
}

.interview-roles-qa-list {
    display: grid;
    gap: 0;
}

.interview-role-qa-item {
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.interview-role-qa-item:last-child {
    border-bottom: none;
}

.interview-role-qa-summary {
    list-style: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: .85rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    transition: background-color .15s ease;
}

.interview-role-qa-summary::-webkit-details-marker {
    display: none;
}

.interview-role-qa-summary:hover {
    background: rgba(37, 99, 235, .03);
}

.interview-role-qa-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(99, 102, 241, .1));
    color: #1d4ed8;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.interview-role-qa-question {
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--home-text);
    padding-top: .2rem;
}

.interview-role-qa-chevron {
    color: #94a3b8;
    font-size: .82rem;
    margin-top: .55rem;
    transition: transform .18s ease, color .18s ease;
}

.interview-role-qa-item[open] > .interview-role-qa-summary {
    background: rgba(37, 99, 235, .04);
}

.interview-role-qa-item[open] > .interview-role-qa-summary .interview-role-qa-chevron {
    transform: rotate(180deg);
    color: var(--ir-accent);
}

.interview-role-qa-body {
    padding: 0 1.15rem 1.15rem 3.9rem;
}

.interview-role-qa-answer {
    margin-bottom: .85rem;
    padding: .9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(234, 88, 12, .14);
    background: linear-gradient(180deg, #fffaf5 0%, #fff7ed 100%);
}

.interview-role-qa-label {
    display: block;
    margin-bottom: .45rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #ea580c;
}

.interview-role-qa-answer-text {
    margin: 0;
    font-size: .94rem;
    line-height: 1.65;
    color: #334155;
}

.interview-role-qa-coaching {
    margin-top: .15rem;
}

@media (max-width: 640px) {
    .interview-role-qa-body {
        padding-left: 1.15rem;
    }

    .interview-roles-set-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Module item preview modal (Interview Q&A list) ── */
.module-item-preview-modal {
    z-index: 1070;
}

/* Report translation modal must stack above interview/content preview modals */
.elh-translation-report-modal {
    z-index: 1100;
}

.module-item-preview-modal-dialog {
    max-width: min(920px, calc(100vw - 2rem));
    margin: 1rem auto;
}

.module-item-preview-modal-content {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    max-height: min(90vh, 880px);
    display: flex;
    flex-direction: column;
    box-shadow:
        0 28px 70px rgba(15, 23, 42, .22),
        0 0 0 1px rgba(148, 163, 184, .12);
}

.module-item-preview-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: 1.2rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 50%, #fff 100%);
    flex-shrink: 0;
}

.module-item-preview-modal-header-copy {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-width: 0;
}

.module-item-preview-modal-icon {
    display: inline-flex;
    width: 2.3rem;
    height: 2.3rem;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
    font-size: .9rem;
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    box-shadow: 0 6px 16px rgba(2, 132, 199, .24);
}

.module-item-preview-modal-kicker {
    margin: 0 0 .15rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}

.module-item-preview-modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.45;
    color: #0f172a;
    letter-spacing: -.01em;
}

.module-item-preview-modal-close {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, .75);
    color: #64748b;
    flex-shrink: 0;
}

.module-item-preview-modal-close:hover {
    background: #fff;
    color: #0f172a;
}

.module-item-preview-lang-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid #e8edf5;
    background: rgba(37, 99, 235, .06);
    flex-shrink: 0;
}

.module-item-preview-lang-label {
    font-size: .84rem;
    font-weight: 600;
    color: var(--home-text);
    margin: 0;
    white-space: nowrap;
}

.module-item-preview-lang-select {
    max-width: 320px;
    flex: 1;
    min-width: 180px;
}

.module-item-preview-lang-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, .12);
    border: 1px solid rgba(37, 99, 235, .22);
    color: #1e3a8a;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.35;
    flex-shrink: 0;
}

.module-item-preview-lang-status.is-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

@media (max-width: 575.98px) {
    .module-item-preview-lang-status {
        width: 100%;
        justify-content: flex-start;
    }
}

.module-item-preview-translation-host {
    margin-top: .35rem;
}

.module-item-preview-translation-pending,
.content-detail-translation-pending {
    margin: .35rem 0 0;
    padding: .55rem .7rem;
    border-radius: 10px;
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .18);
    color: #1e3a8a;
    font-size: .84rem;
    line-height: 1.5;
}

.module-item-preview-translation-pending i,
.content-detail-translation-pending i {
    margin-right: .25rem;
}

.module-item-preview-translation-error {
    margin: .35rem 0 0;
    padding: .55rem .7rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: .84rem;
    line-height: 1.5;
}

.module-item-preview-modal-body {
    padding: 1.35rem 1.5rem 1.4rem;
    background: #fff;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 220px;
}

.module-item-preview-modal-body.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-item-preview-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
}

.module-item-preview-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    min-width: min(100%, 280px);
    padding: 1.75rem 2rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    text-align: center;
}

.module-item-preview-loading-icon {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(2, 132, 199, .1);
    color: #0284c7;
    font-size: 1.15rem;
}

.module-item-preview-loading-text {
    font-size: .95rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: .01em;
}

.module-item-preview-summary {
    margin: 0 0 .85rem;
    font-size: .88rem;
    line-height: 1.55;
    color: #475569;
}

.module-item-preview-sections {
    display: grid;
    gap: .85rem;
}

.module-item-preview-collapse.content-detail-collapse {
    margin-bottom: 0;
}

.module-item-preview-collapse .content-detail-collapse-body {
    padding-top: .25rem;
}

.module-item-preview-badge {
    display: inline-flex;
    align-items: center;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, .1);
    color: #4338ca;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .65rem;
}

.module-item-preview-summary-text {
    margin: 0;
    font-size: .92rem;
    line-height: 1.65;
    color: #334155;
}

.module-item-preview-notes-lead {
    margin: 0 0 .75rem;
    font-size: .84rem;
    color: #64748b;
    line-height: 1.5;
}

.module-item-preview-coaching-lead {
    margin: 0 0 .75rem;
    font-size: .84rem;
    color: #64748b;
    line-height: 1.5;
}

.module-item-preview-coaching-section .content-detail-coaching-body {
    padding: 0;
}

.module-item-preview-notes-subsections {
    display: grid;
    gap: .55rem;
}

.module-item-preview-notes-sub.content-detail-collapse {
    border-radius: 12px;
    background: #f8fafc;
}

.module-item-preview-notes-list {
    display: grid;
    gap: .65rem;
}

.module-item-preview-notes-item {
    position: relative;
    padding: .75rem .85rem .75rem 1rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
}

.module-item-preview-notes-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55rem;
    bottom: .55rem;
    width: 3px;
    border-radius: 999px;
    background: #6366f1;
}

.module-item-preview-notes-item--words::before { background: #0ea5e9; }
.module-item-preview-notes-item--phrases::before { background: #8b5cf6; }
.module-item-preview-notes-item--grammar::before { background: #f59e0b; }

.module-item-preview-notes-term {
    margin: 0 0 .35rem;
    font-size: .92rem;
    font-weight: 800;
    color: #0f172a;
}

.module-item-preview-notes-meaning {
    margin: 0 0 .25rem;
    font-size: .86rem;
    line-height: 1.55;
    color: #334155;
}

.module-item-preview-notes-example {
    margin: 0;
    font-size: .82rem;
    line-height: 1.5;
    color: #64748b;
    font-style: italic;
}

.module-item-preview-detail-text {
    margin: 0;
    padding: .85rem 1rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, .06);
    font-size: .82rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    color: #334155;
}

.module-item-preview-question-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: .75rem;
}

.module-item-preview-question-text {
    margin: 0 0 .35rem;
    font-weight: 700;
    color: #0f172a;
}

.module-item-preview-answer-text {
    margin: 0;
    font-size: .9rem;
    line-height: 1.6;
    color: #475569;
}

.module-item-preview-answer-text span {
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: .2rem;
}

.module-item-preview-lines {
    display: grid;
    gap: 1.1rem;
}

.module-item-preview-block {
    padding: 1.15rem 1.3rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, .08);
    background: #f8fafc;
}

.module-item-preview-block--question {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-left: 4px solid #6366f1;
}

.module-item-preview-block--answer {
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
    border-left: 4px solid #0284c7;
}

.module-item-preview-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin-bottom: .65rem;
}

.module-item-preview-block-label {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #64748b;
}

.module-item-preview-play-btn {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: #0284c7;
    color: #fff;
    flex-shrink: 0;
}

.module-item-preview-play-btn.is-playing {
    background: #0369a1;
}

.module-item-preview-block-text {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.75;
    color: #000;
}

.module-item-preview-block--question .module-item-preview-block-text {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.65;
    color: #000;
}

.module-item-preview-block--answer .module-item-preview-block-text {
    font-size: 1.03rem;
    line-height: 1.8;
    color: #000;
}

.module-item-preview-block-translation {
    margin: .65rem 0 0;
    font-size: .98rem;
    line-height: 1.65;
    color: #475569;
}

.module-item-preview-coaching {
    margin-top: .65rem;
}

.module-item-preview-empty {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
}

.module-item-preview-modal-footer {
    padding: .55rem 1rem .75rem;
    border-top: 1px solid #e8edf5;
    background: #f8fafc;
    flex-shrink: 0;
}

.module-item-preview-btn-close {
    border-radius: 10px;
    padding: .45rem .9rem;
    font-size: .84rem;
    font-weight: 600;
    color: #475569;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.module-item-preview-btn-close:hover {
    color: #0f172a;
    border-color: #94a3b8;
    background: #f1f5f9;
}

/* Interview Q&A — category question list */
.interview-qa-page {
    --iqa-accent: #4f46e5;
    --iqa-accent-soft: rgba(99, 102, 241, .12);
    --iqa-divider: rgba(129, 140, 248, .45);
}

.phrases-page-total-badge,
.learn-page-total-badge {
    --iqa-accent: #4f46e5;
    --iqa-accent-soft: rgba(99, 102, 241, .12);
    display: inline-flex;
    align-items: center;
    padding: .45rem .95rem;
    border-radius: 999px;
    background: var(--iqa-accent-soft);
    color: var(--iqa-accent);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.interview-qa-question-list {
    display: grid;
    gap: .85rem;
}

.interview-qa-question-card {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, .06);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
    text-decoration: none;
    color: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.interview-qa-question-card:hover {
    border-color: rgba(79, 70, 229, .22);
    box-shadow: 0 4px 6px rgba(15, 23, 42, .04), 0 16px 32px rgba(79, 70, 229, .1);
    transform: translateY(-1px);
    color: inherit;
}

.interview-qa-question-card:focus-visible {
    outline: 2px solid var(--iqa-accent);
    outline-offset: 2px;
}

.interview-qa-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 .55rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(238, 242, 255, .95) 0%, rgba(224, 231, 255, .9) 100%);
    color: #312e81;
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .03em;
    flex-shrink: 0;
}

.interview-qa-question-divider {
    display: block;
    width: 2px;
    align-self: stretch;
    min-height: 2.4rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(165, 180, 252, .15) 0%, var(--iqa-divider) 50%, rgba(165, 180, 252, .15) 100%);
    flex-shrink: 0;
}

.interview-qa-question-text {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    min-width: 0;
}

.interview-qa-question-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    color: #94a3b8;
    font-size: .78rem;
    flex-shrink: 0;
    transition: color .18s ease, transform .18s ease;
}

.interview-qa-question-card:hover .interview-qa-question-chevron {
    color: var(--iqa-accent);
    transform: translateX(2px);
}

@media (max-width: 575.98px) {
    .interview-qa-question-card {
        grid-template-columns: auto 1fr auto;
        gap: .75rem;
        padding: 1rem 1rem;
    }

    .interview-qa-question-divider {
        display: none;
    }

    .interview-qa-question-number {
        min-width: 2.45rem;
        height: 2.45rem;
        font-size: .84rem;
    }

    .interview-qa-question-text {
        font-size: .96rem;
    }
}

/* Interview Q&A — category browse cards */
.interview-qa-page {
    max-width: 1280px;
}

.interview-qa-browse-title {
    font-size: clamp(1.15rem, 2.1vw, 1.45rem);
    font-weight: 700;
    line-height: 1.35;
}

.interview-qa-page-title {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.interview-qa-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .14), rgba(99, 102, 241, .1));
    color: #1d4ed8;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.interview-qa-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.interview-qa-category-card {
    --iqa-card-accent: #2563eb;
    --iqa-card-accent-soft: rgba(37, 99, 235, .12);
    --iqa-card-accent-border: rgba(37, 99, 235, .55);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 10.5rem;
    padding: 1.15rem 1.15rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, .06);
    border-bottom: 3px solid var(--iqa-card-accent-border);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .05);
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.interview-qa-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 12px rgba(15, 23, 42, .05), 0 20px 36px color-mix(in srgb, var(--iqa-card-accent) 16%, transparent);
    color: inherit;
}

.interview-qa-category-card--blue {
    --iqa-card-accent: #2563eb;
    --iqa-card-accent-soft: rgba(37, 99, 235, .12);
    --iqa-card-accent-border: rgba(37, 99, 235, .5);
}

.interview-qa-category-card--orange {
    --iqa-card-accent: #ea580c;
    --iqa-card-accent-soft: rgba(234, 88, 12, .12);
    --iqa-card-accent-border: rgba(234, 88, 12, .5);
}

.interview-qa-category-card--green {
    --iqa-card-accent: #16a34a;
    --iqa-card-accent-soft: rgba(22, 163, 74, .12);
    --iqa-card-accent-border: rgba(22, 163, 74, .5);
}

.interview-qa-category-card--rose {
    --iqa-card-accent: #e11d48;
    --iqa-card-accent-soft: rgba(225, 29, 72, .11);
    --iqa-card-accent-border: rgba(225, 29, 72, .45);
}

.interview-qa-category-card--violet {
    --iqa-card-accent: #7c3aed;
    --iqa-card-accent-soft: rgba(124, 58, 237, .12);
    --iqa-card-accent-border: rgba(124, 58, 237, .5);
}

.interview-qa-category-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .7rem;
    margin-bottom: 1rem;
}

.interview-qa-category-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: var(--iqa-card-accent-soft);
    color: var(--iqa-card-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.interview-qa-category-card-text {
    flex: 1;
    min-width: 0;
    width: 100%;
    text-align: center;
}

.interview-qa-category-card-sub {
    margin: .35rem 0 0;
    font-size: .78rem;
    line-height: 1.45;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.interview-qa-category-card-title {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: calc(.86rem + 2px);
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
}

.interview-qa-category-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
}

.interview-qa-category-card-count-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: var(--iqa-card-accent-soft);
    color: var(--iqa-card-accent);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
}

.interview-qa-category-card-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    background: var(--iqa-card-accent-soft);
    color: var(--iqa-card-accent);
    font-size: .72rem;
    flex-shrink: 0;
    transition: background-color .18s ease, transform .18s ease;
}

.interview-qa-category-card:hover .interview-qa-category-card-go {
    background: color-mix(in srgb, var(--iqa-card-accent) 18%, white);
    transform: translateX(2px);
}

@media (max-width: 1199.98px) {
    .interview-qa-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .interview-qa-category-grid {
        grid-template-columns: 1fr;
    }

    .interview-qa-category-card {
        min-height: 0;
    }
}

.stories-page-stat {
    margin: .65rem 0 0;
    font-size: .9rem;
    font-weight: 600;
    color: #475569;
}

.stories-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stories-story-card {
    min-height: 11.5rem;
}

.stories-story-card-preview {
    margin: 0;
}

.learn-filter-bar--level-only {
    margin-bottom: 1.25rem;
}

.learn-filter-level-label {
    font-size: .82rem;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

.stories-detail-page .learn-detail-card {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .05);
}

.sentence-notes-collapse {
    margin-top: .65rem;
}

.sentence-notes-sections {
    display: grid;
    gap: 1.35rem;
}

.sentence-notes-group-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .85rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}

.sentence-notes-group-title i {
    color: #6366f1;
}

.sentence-notes-list {
    display: grid;
    gap: 1rem;
}

.sentence-notes-item + .sentence-notes-item {
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.sentence-notes-item-title {
    margin: 0 0 .35rem;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
}

.sentence-notes-item-text {
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
    color: #0f172a;
}

.stories-detail-page .content-detail-line--story {
    border-left: 3px solid rgba(37, 99, 235, .35);
}

@media (max-width: 767.98px) {
    .stories-story-grid {
        grid-template-columns: 1fr;
    }
}

/* Interview Q&A — full-page detail (replaces modal) */
.interview-qa-detail-page .interview-qa-detail-hero {
    margin-bottom: 1.25rem;
}

.interview-qa-detail-kicker {
    margin: 0 0 .35rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}

.interview-qa-detail-title {
    margin: 0;
    font-size: clamp(1.15rem, 2.1vw, 1.45rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--home-text);
}

.interview-qa-detail-card {
    padding: 1.1rem 1.15rem 1.25rem;
}

.interview-qa-detail-card .module-item-preview-lang-bar {
    margin-bottom: 1rem;
    padding: .85rem .95rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: #f8fafc;
}

.interview-qa-expand-notice {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 1rem;
    padding: .85rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(79, 70, 229, .28);
    background: linear-gradient(135deg, rgba(238, 242, 255, .98) 0%, rgba(224, 231, 255, .95) 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, .12);
    color: #3730a3;
    animation: interviewQaNoticeIn .45s ease both;
}

@keyframes interviewQaNoticeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.interview-qa-expand-notice.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .65s ease, transform .65s ease;
}

.interview-qa-expand-notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: rgba(79, 70, 229, .12);
    color: #4f46e5;
    font-size: .9rem;
    flex-shrink: 0;
}

.interview-qa-expand-notice-text {
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.45;
}

.interview-qa-section-loading {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: .35rem 0;
    font-size: .88rem;
    font-weight: 500;
    color: #64748b;
}

.interview-qa-section-loading i {
    color: #4f46e5;
}

.interview-qa-detail-card .interview-qa-detail-sections {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.interview-qa-detail-card .interview-qa-detail-sections > .content-detail-collapse {
    margin-top: 0;
}

/* Interview Q&A browse — inline search card */
.module-item-search-card {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.module-item-search-card-head {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .85rem;
}

.module-item-search-card-icon {
    display: inline-flex;
    width: 2.1rem;
    height: 2.1rem;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(2, 132, 199, .12);
    color: #0284c7;
    flex-shrink: 0;
}

.module-item-search-card-title {
    margin: 0;
    font-size: .92rem;
    font-weight: 800;
    color: #0f172a;
}

.module-item-search-card-sub {
    margin: .15rem 0 0;
    font-size: .8rem;
    line-height: 1.45;
    color: #64748b;
}

.module-item-search-combobox {
    position: relative;
}

.module-item-search-combobox-control {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .75rem;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.module-item-search-combobox-control:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .16);
}

.module-item-search-combobox-control > .fa-magnifying-glass {
    color: #94a3b8;
    font-size: .88rem;
    flex-shrink: 0;
}

.module-item-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: .95rem;
    color: #0f172a;
    outline: none;
}

.module-item-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
}

.module-item-search-clear:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.module-item-search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + .4rem);
    z-index: 20;
    max-height: min(360px, 50vh);
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.module-item-search-panel-meta {
    margin: 0;
    padding: .55rem .85rem;
    font-size: .75rem;
    font-weight: 600;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.module-item-search-status {
    padding: .85rem 1rem;
    font-size: .88rem;
    color: #64748b;
    text-align: center;
}

.module-item-search-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    padding: .75rem .9rem;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.module-item-search-option:last-child {
    border-bottom: 0;
}

.module-item-search-option:hover,
.module-item-search-option.is-active {
    background: #f0f9ff;
}

.module-item-search-option-text {
    flex: 1;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
}

.module-item-search-option-title {
    display: block;
    font-size: .94rem;
    font-weight: 600;
    line-height: 1.45;
    color: #0f172a;
}

.module-item-search-option-sub {
    display: block;
    margin-top: .2rem;
    font-size: .8rem;
    font-weight: 400;
    line-height: 1.4;
    color: #64748b;
}

.module-item-search-option-icon {
    margin-top: .2rem;
    font-size: .72rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.module-item-search-option:hover .module-item-search-option-icon,
.module-item-search-option.is-active .module-item-search-option-icon {
    color: #0284c7;
}

.home-feature-modal-btn-cta--ai {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.home-feature-modal-btn-cta--review {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

.home-feature-modal-btn-cta--language {
    background: linear-gradient(135deg, #059669, #047857);
}

.home-feature-modal-btn-cta--progress {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.home-feature-modal-btn-cta:hover,
.home-feature-modal-btn-cta:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
}

@media (max-width: 575.98px) {
    .home-feature-modal-header {
        padding: .7rem .95rem .65rem;
    }

    .home-feature-modal-body,
    .home-feature-modal-footer {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

    .home-feature-modal-footer {
        flex-direction: column-reverse;
        padding: .5rem .95rem .7rem;
    }

    .home-feature-modal-btn-cancel,
    .home-feature-modal-btn-cta {
        width: 100%;
        text-align: center;
        padding: .42rem .85rem;
    }
}

/* Speaking practice modal (home hero) */
.speaking-practice-modal-dialog {
    max-width: min(960px, calc(100vw - 1.5rem));
    width: 100%;
}

.speaking-practice-modal-content {
    border: none;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.speaking-practice-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem .9rem;
    background: linear-gradient(135deg, #e0e7ff 0%, #f5f3ff 55%, #fff 100%);
    border-bottom: 1px solid #e8edf5;
}

.speaking-practice-modal-header-brand {
    min-width: 0;
    flex: 1 1 auto;
}

.speaking-practice-modal-header-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    flex: 0 1 auto;
    flex-wrap: wrap;
}

.speaking-practice-modal-header-copy {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    flex: 1;
    width: 100%;
}

.speaking-practice-modal-header-text {
    min-width: 0;
}

.speaking-practice-modal-header--live {
    align-items: flex-start;
}

.speaking-practice-modal-header--live .speaking-practice-modal-header-brand {
    flex: 0 1 auto;
}

.speaking-practice-modal-header--live .speaking-practice-wizard-progress--header {
    display: none;
}

.speaking-practice-modal-header--live .speaking-practice-modal-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.speaking-practice-modal-header--live .speaking-practice-modal-header-toolbar {
    margin-left: auto;
}

.speaking-practice-modal-icon {
    display: inline-flex;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    flex-shrink: 0;
}

.speaking-practice-modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
}

.speaking-practice-modal-sub {
    margin: .2rem 0 0;
    font-size: .84rem;
    color: #64748b;
    line-height: 1.4;
}

.speaking-practice-timer {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    font-size: .88rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .12);
    flex-shrink: 0;
}

.speaking-practice-timer--low {
    border-color: #fcd34d;
    color: #b45309;
    background: #fffbeb;
}

.speaking-practice-timer--urgent {
    border-color: #fca5a5;
    color: #b91c1c;
    background: #fef2f2;
    animation: speaking-practice-timer-pulse 1s ease-in-out infinite;
}

@keyframes speaking-practice-timer-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.speaking-practice-timer-value {
    min-width: 2.8rem;
    text-align: center;
}

.speaking-practice-timer--paused {
    border-color: #cbd5e1;
    color: #64748b;
    background: #f8fafc;
}

.speaking-practice-pause-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.speaking-practice-pause-btn:hover,
.speaking-practice-pause-btn:focus {
    border-color: #a5b4fc;
    color: #4338ca;
    background: #eef2ff;
    outline: none;
}

.speaking-practice-pause-btn--resume {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.speaking-practice-pause-btn--resume:hover,
.speaking-practice-pause-btn--resume:focus {
    border-color: #4ade80;
    background: #dcfce7;
    color: #14532d;
}

.speaking-practice-response-help-header {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
}

.speaking-practice-response-help-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .36rem .7rem;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.speaking-practice-response-help-toggle:hover,
.speaking-practice-response-help-toggle:focus {
    background: #e0e7ff;
    color: #3730a3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, .2);
}

.speaking-practice-response-help-toggle:focus:not(:focus-visible) {
    box-shadow: none;
}

.speaking-practice-response-help-toggle.is-off {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
}

.speaking-practice-response-help-mode {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbe3f0;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.speaking-practice-response-help-mode-btn {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: .7rem;
    font-weight: 700;
    padding: .32rem .55rem;
    cursor: pointer;
}

.speaking-practice-response-help-mode-btn:focus {
    outline: none;
}

.speaking-practice-response-help-mode-btn:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(99, 102, 241, .35);
}

.speaking-practice-response-help-mode-btn.is-active {
    background: #4338ca;
    color: #fff;
}

.speaking-practice-response-coach {
    margin: 0 0 .85rem;
    padding: .9rem 1rem;
    border-radius: 16px;
    border: 2px solid #6366f1;
    background: linear-gradient(180deg, #eef2ff 0%, #fff 100%);
    box-shadow: 0 8px 24px rgba(99, 102, 241, .12);
}

.speaking-practice-response-coach-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    margin-bottom: .55rem;
}

.speaking-practice-response-coach-hide {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .32rem .65rem;
    border-radius: 999px;
    border: 1px solid #6366f1;
    background: #eef2ff;
    color: #4338ca;
    font-size: .74rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.speaking-practice-response-coach-hide:hover,
.speaking-practice-response-coach-hide:focus {
    border-color: #4f46e5;
    color: #312e81;
    background: #e0e7ff;
    outline: none;
}

.speaking-practice-response-coach-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 0;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.speaking-practice-response-coach-badge--hint {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.speaking-practice-response-coach-heading {
    margin: 0 0 .5rem;
    font-size: .92rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.35;
}

.speaking-practice-response-coach-text {
    margin: 0 0 .55rem;
    padding: .7rem .85rem;
    border-left: 4px solid #6366f1;
    border-radius: 0 12px 12px 0;
    background: #fff;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #0f172a;
    font-weight: 600;
    font-style: normal;
}

.speaking-practice-response-coach--hint .speaking-practice-response-coach-text {
    border-left-color: #0ea5e9;
}

.speaking-practice-response-coach--loading {
    border-color: #c7d2fe;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.speaking-practice-response-coach--loading .speaking-practice-response-coach-badge {
    background: #e0e7ff;
    color: #4338ca;
}

.speaking-practice-response-coach-loading {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .92rem;
    font-weight: 600;
    color: #4338ca;
}

.speaking-practice-response-coach-loading i {
    font-size: .95rem;
}

.speaking-practice-response-coach-note {
    margin: 0;
    font-size: .78rem;
    line-height: 1.45;
    color: #64748b;
    font-weight: 500;
}

.speaking-practice-response-coach-diagnostic {
    margin: 0 0 .55rem;
    font-size: .8rem;
    line-height: 1.45;
    color: #b45309;
}

.speaking-practice-error-detail-link,
.speaking-practice-suggestion-status-detail {
    margin-left: .35rem;
    padding: 0;
    border: none;
    background: none;
    color: #4f46e5;
    font-size: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.speaking-practice-error-detail-link:hover,
.speaking-practice-error-detail-link:focus,
.speaking-practice-suggestion-status-detail:hover,
.speaking-practice-suggestion-status-detail:focus {
    color: #312e81;
}

.speaking-practice-suggestion-status {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    max-width: 100%;
    padding: .3rem .6rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: .7rem;
    font-weight: 700;
    color: #475569;
}

.speaking-practice-suggestion-status-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
}

.speaking-practice-suggestion-status--off .speaking-practice-suggestion-status-dot {
    background: #94a3b8;
}

.speaking-practice-suggestion-status--loading .speaking-practice-suggestion-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, .2);
    animation: speaking-practice-suggestion-pulse 1.2s ease-in-out infinite;
}

.speaking-practice-suggestion-status--ready .speaking-practice-suggestion-status-dot {
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, .18);
}

.speaking-practice-suggestion-status--empty .speaking-practice-suggestion-status-dot,
.speaking-practice-suggestion-status--failed .speaking-practice-suggestion-status-dot {
    background: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, .16);
}

.speaking-practice-suggestion-status--waiting .speaking-practice-suggestion-status-dot {
    background: #0ea5e9;
    animation: speaking-practice-suggestion-pulse 1.2s ease-in-out infinite;
}

@keyframes speaking-practice-suggestion-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .55; transform: scale(.88); }
}

.speaking-practice-suggestion-error-summary {
    margin: 0 0 .75rem;
    font-size: .88rem;
    color: #334155;
}

.speaking-practice-suggestion-error-detail {
    margin: 0;
    padding: .75rem;
    border-radius: 10px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: .74rem;
    line-height: 1.45;
    max-height: 240px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.speaking-practice-response-coach-head {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .45rem;
}

.speaking-practice-response-coach-icon {
    font-size: 1rem;
    line-height: 1;
}

.speaking-practice-response-coach-title {
    font-size: .82rem;
    font-weight: 800;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.speaking-practice-response-coach-text {
    margin: 0 0 .45rem;
    font-size: .95rem;
    line-height: 1.55;
    color: #0f172a;
    font-weight: 500;
}

.speaking-practice-response-coach-note {
    margin: 0;
    font-size: .76rem;
    line-height: 1.45;
    color: #64748b;
}

.speaking-practice-paused-banner {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: 0 0 .85rem;
    padding: .75rem .9rem;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #475569;
}

.speaking-practice-paused-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    flex-shrink: 0;
}

.speaking-practice-paused-banner-copy {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.speaking-practice-paused-banner-copy strong {
    font-size: .88rem;
    color: #0f172a;
}

.speaking-practice-paused-banner-copy span {
    font-size: .84rem;
    line-height: 1.45;
}

.speaking-practice-modal--paused .speaking-practice-modal-body {
    opacity: .92;
}

.speaking-practice-topic-banner {
    display: flex;
    align-items: center;
    margin: 0;
    padding: .55rem 1.25rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
    border-bottom: 1px solid #99f6e4;
}

.speaking-practice-topic-banner-line {
    margin: 0;
    font-size: .9rem;
    font-weight: 700;
    color: #0f766e;
    line-height: 1.35;
}

.speaking-practice-topic-banner-line::before {
    content: '🎯 ';
}

.speaking-practice-modal-close {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.speaking-practice-modal-close:hover {
    background: #fff;
    color: #0f172a;
}

.speaking-practice-modal-body {
    padding: 1rem 1.25rem 1rem;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    background: #fff;
}

.speaking-practice-modal-body--live {
    min-height: 420px;
}

.speaking-practice-modal .modal-dialog-scrollable .speaking-practice-modal-body {
    overflow-y: auto;
}

.speaking-practice-modal-body--live .speaking-practice-chat-panel {
    flex: 1 1 auto;
    min-height: 220px;
    max-height: min(48vh, 420px);
}

.speaking-practice-modal-body--live .speaking-practice-chat {
    flex: 1 1 auto;
    min-height: 220px;
    max-height: min(48vh, 420px);
    overflow-y: auto;
    padding: .35rem .15rem;
}

.speaking-practice-modal-body--live .speaking-practice-response-coach {
    flex-shrink: 0;
}

.speaking-practice-intro-lead {
    margin: 1rem 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

.speaking-practice-wizard {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.speaking-practice-wizard-progress--header {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    margin-left: auto;
    margin-right: .25rem;
    padding: .2rem .35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(219, 227, 240, .9);
    flex-shrink: 0;
}

.speaking-practice-wizard-progress-item {
    display: inline-flex;
    align-items: center;
    gap: .22rem;
    color: #94a3b8;
    white-space: nowrap;
}

.speaking-practice-wizard-progress-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #dbe3f0;
    font-size: .62rem;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.speaking-practice-wizard-progress-label {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.speaking-practice-wizard-progress--header .speaking-practice-wizard-progress-label {
    display: none;
}

.speaking-practice-wizard-progress--header .speaking-practice-wizard-progress-item.is-active .speaking-practice-wizard-progress-label {
    display: inline;
}

.speaking-practice-wizard-progress-line {
    width: .55rem;
    height: 2px;
    border-radius: 999px;
    background: #dbe3f0;
    flex-shrink: 0;
}

.speaking-practice-wizard-progress-item.is-active {
    color: #4338ca;
}

.speaking-practice-wizard-progress-item.is-active .speaking-practice-wizard-progress-icon {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, .2);
}

.speaking-practice-wizard-progress-item.is-complete {
    color: #0f766e;
}

.speaking-practice-wizard-progress-item.is-complete .speaking-practice-wizard-progress-icon {
    background: #ecfdf5;
    border-color: #99f6e4;
    color: #0f766e;
}

.speaking-practice-wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .35rem .25rem .15rem;
}

.speaking-practice-wizard-step-lead {
    margin: 0 0 .85rem;
    color: #475569;
    font-size: .9rem;
    line-height: 1.55;
}

.speaking-practice-wizard-step .speaking-practice-steps {
    margin-bottom: 0;
}

.speaking-practice-wizard-step-lead.is-ready {
    color: #0f766e;
    font-weight: 600;
}

.speaking-practice-mic-next-link {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: #4f46e5;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.speaking-practice-mic-next-link:hover {
    color: #4338ca;
}

.speaking-practice-wizard-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.speaking-practice-wizard-btn--next {
    margin-left: auto;
}

.speaking-practice-modal-footer--wizard {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    position: relative;
}

.speaking-practice-modal-footer--wizard.speaking-practice-modal-footer--step-ready {
    justify-content: center;
}

.speaking-practice-modal-footer--wizard.speaking-practice-modal-footer--step-ready #speakingPracticeWizardBackBtn {
    position: absolute;
    left: 1rem;
}

.speaking-practice-wizard-start-btn {
    margin-left: auto;
}

.speaking-practice-modal-footer--wizard.speaking-practice-modal-footer--step-ready .speaking-practice-wizard-start-btn {
    margin-left: 0;
    height: 2.75rem;
    min-width: 11.5rem;
}

.speaking-practice-steps {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: .65rem;
}

.speaking-practice-step {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem .85rem;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    border-radius: 14px;
}

.speaking-practice-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.speaking-practice-step-copy {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.speaking-practice-step-copy strong {
    font-size: .92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.speaking-practice-step-copy span {
    font-size: .86rem;
    color: #475569;
    line-height: 1.5;
}

.speaking-practice-duration {
    margin: 0 0 1rem;
    padding: .85rem .9rem;
    border-radius: 14px;
    border: 1px solid #e0e7ff;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.speaking-practice-duration-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .6rem;
    font-size: .88rem;
    font-weight: 700;
    color: #1e293b;
}

.speaking-practice-duration-label-emoji {
    font-size: 1rem;
    line-height: 1;
    color: #6366f1;
}

.speaking-practice-duration-label-emoji i {
    display: block;
}

.speaking-practice-duration-options {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.speaking-practice-duration-option {
    margin: 0;
    cursor: pointer;
}

.speaking-practice-duration-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.speaking-practice-duration-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-width: 4.1rem;
    padding: .42rem .7rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: .82rem;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.speaking-practice-duration-option input:checked + span {
    border-color: #6366f1;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 6px 16px rgba(99, 102, 241, .28);
}

.speaking-practice-duration-option:hover span {
    border-color: #a5b4fc;
}

.speaking-practice-tutor-voice {
    margin: 0 0 1rem;
    padding: .85rem .9rem;
    border-radius: 14px;
    border: 1px solid #e0e7ff;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.speaking-practice-tutor-voice-label-row {
    margin-bottom: .65rem;
}

.speaking-practice-tutor-voice-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .88rem;
    font-weight: 700;
    color: #1e293b;
}

.speaking-practice-tutor-voice-label-emoji {
    font-size: 1rem;
    line-height: 1;
    color: #6366f1;
}

.speaking-practice-voice-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
}

@media (min-width: 520px) {
    .speaking-practice-voice-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.speaking-practice-voice-option {
    display: block;
    cursor: pointer;
}

.speaking-practice-voice-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.speaking-practice-voice-option-card {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    height: 100%;
    padding: .7rem .75rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.speaking-practice-voice-option input:checked + .speaking-practice-voice-option-card {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, .15);
}

.speaking-practice-voice-option:hover .speaking-practice-voice-option-card {
    border-color: #c7d2fe;
}

.speaking-practice-voice-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.speaking-practice-voice-option-name {
    font-size: .92rem;
    color: #0f172a;
}

.speaking-practice-voice-option-gender {
    font-size: .72rem;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    border-radius: 999px;
    padding: .12rem .5rem;
}

.speaking-practice-voice-option-sample-text {
    font-size: .78rem;
    line-height: 1.45;
    color: #64748b;
    font-style: italic;
}

.speaking-practice-voice-option-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    align-self: flex-start;
    margin-top: auto;
    padding: .35rem .7rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.speaking-practice-voice-option-play:hover {
    background: #eef2ff;
    border-color: #a5b4fc;
    color: #4338ca;
}

.speaking-practice-voice-option-play.is-playing {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

.speaking-practice-voice-option-play.is-playing .speaking-practice-voice-option-play-icon::before {
    content: "\f04c";
}

.speaking-practice-tutor-voice-note {
    margin: .65rem 0 0;
    font-size: .78rem;
    color: #64748b;
    line-height: 1.45;
}

.speaking-practice-voice-speed {
    margin: 0 0 1rem;
    padding: .5rem .75rem;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
}

.speaking-practice-voice-speed-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .3rem;
}

.speaking-practice-voice-speed-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .88rem;
    font-weight: 700;
    color: #1e293b;
}

.speaking-practice-voice-speed-label-emoji {
    font-size: 1rem;
    line-height: 1;
    color: #2563eb;
}

.speaking-practice-voice-speed-label-emoji i {
    display: block;
}

.speaking-practice-voice-speed-value,
.speaking-practice-voice-speed-header-value {
    font-size: .82rem;
    font-weight: 700;
    color: #4338ca;
    white-space: nowrap;
}

.speaking-practice-voice-speed-input {
    width: 100%;
    margin: 0;
    height: 1.25rem;
    accent-color: #6366f1;
    cursor: pointer;
}

.speaking-practice-voice-speed-hints {
    display: flex;
    justify-content: space-between;
    margin-top: .15rem;
    font-size: .68rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.2;
}

.speaking-practice-voice-speed-note {
    margin: .25rem 0 0;
    font-size: .72rem;
    line-height: 1.3;
    color: #64748b;
}

.speaking-practice-voice-speed-header {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .32rem .65rem;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    background: #fff;
    color: #4338ca;
    flex-shrink: 0;
    min-width: 8.5rem;
}

.speaking-practice-voice-speed-header i {
    font-size: .78rem;
    line-height: 1;
}

.speaking-practice-voice-speed-input--header {
    width: 4.5rem;
    height: 1rem;
}

.speaking-practice-topic-mode {
    margin: 0 0 1rem;
    padding: .85rem .9rem;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
}

.speaking-practice-topic-mode-label,
.speaking-practice-topic-picker-label {
    display: block;
    margin-bottom: .55rem;
    font-size: .88rem;
    font-weight: 700;
    color: #1e293b;
}

.speaking-practice-topic-mode-options {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.speaking-practice-topic-mode-option {
    cursor: pointer;
}

.speaking-practice-topic-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.speaking-practice-topic-mode-option span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.1rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    border: 1px solid #dbe3f0;
    background: #f8fafc;
    color: #334155;
    font-size: .82rem;
    font-weight: 600;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.speaking-practice-topic-mode-option input:checked + span {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    color: #fff;
}

.speaking-practice-topic-mode-hint {
    margin: .65rem 0 0;
    font-size: .82rem;
    color: #64748b;
    line-height: 1.45;
}

.speaking-practice-topic-picker {
    margin-bottom: 1rem;
}

.speaking-practice-topic-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .65rem;
}

.speaking-practice-topic-filter {
    border: 1px solid #dbe3f0;
    background: #f8fafc;
    color: #475569;
    font-size: .74rem;
    font-weight: 700;
    padding: .28rem .62rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.speaking-practice-topic-filter:hover {
    border-color: #a5b4fc;
    color: #4338ca;
}

.speaking-practice-topic-filter.is-active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .22);
}

.speaking-practice-topic-combobox {
    position: relative;
}

.speaking-practice-topic-combobox-control {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .7rem;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.speaking-practice-topic-combobox-control:focus-within {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .14);
}

.speaking-practice-topic-combobox-control > .fa-magnifying-glass {
    color: #94a3b8;
    font-size: .85rem;
}

.speaking-practice-topic-combobox-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: .88rem;
    color: #0f172a;
    outline: none;
}

.speaking-practice-topic-combobox-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
}

.speaking-practice-topic-combobox-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + .35rem);
    z-index: 6;
    max-height: 240px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
}

.speaking-practice-topic-option {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .45rem .7rem;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    text-align: left;
    cursor: pointer;
    min-height: 2.2rem;
}

.speaking-practice-topic-option:last-child {
    border-bottom: 0;
}

.speaking-practice-topic-option:hover,
.speaking-practice-topic-option.is-active {
    background: #f8fafc;
}

.speaking-practice-topic-option.is-selected {
    background: #eef2ff;
}

.speaking-practice-topic-option-module {
    flex-shrink: 0;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #6366f1;
    padding: .12rem .4rem;
    border-radius: 999px;
    background: #eef2ff;
}

.speaking-practice-topic-option-title {
    flex: 1;
    min-width: 0;
    font-size: .84rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.speaking-practice-topic-combobox-empty,
.speaking-practice-topic-picker-selected {
    margin: .55rem 0 0;
    font-size: .82rem;
    color: #64748b;
}

.speaking-practice-topic-picker-selected {
    color: #0f766e;
    font-weight: 600;
}

.speaking-practice-intro-highlight {
    position: relative;
    margin: 0 0 1rem;
    padding: 1rem 1rem .95rem;
    border-radius: 16px;
    border: 2px solid #6ee7b7;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 45%, #fffbeb 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, .12);
}

.speaking-practice-intro-highlight-badge {
    display: inline-block;
    margin-bottom: .55rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #10b981);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.speaking-practice-intro-highlight-inner {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.speaking-practice-intro-highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    flex-shrink: 0;
    font-size: 1rem;
}

.speaking-practice-intro-highlight-copy {
    min-width: 0;
}

.speaking-practice-intro-highlight-copy strong {
    display: block;
    margin-bottom: .35rem;
    font-size: .98rem;
    font-weight: 800;
    color: #065f46;
    line-height: 1.35;
}

.speaking-practice-intro-highlight-copy p {
    margin: 0;
    font-size: .88rem;
    color: #14532d;
    line-height: 1.55;
}

.speaking-practice-intro-end-label {
    display: inline-block;
    padding: .08rem .45rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
}

.speaking-practice-intro-tip {
    margin: 0;
    padding: .7rem .85rem;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: .84rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.speaking-practice-intro-tip i {
    margin-top: .15rem;
    color: #d97706;
    flex-shrink: 0;
}

.speaking-practice-chat-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 260px;
}

.speaking-practice-chat-panel.is-preparing-voice.is-preparing-voice--opening .speaking-practice-chat {
    visibility: hidden;
    pointer-events: none;
}

.speaking-practice-voice-preparing {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 200px;
    padding: 1.25rem 1rem;
}

.speaking-practice-chat-panel.is-preparing-voice.is-preparing-voice--opening .speaking-practice-voice-preparing {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
}

.speaking-practice-voice-preparing[hidden] {
    display: none !important;
}

.speaking-practice-voice-preparing-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .55rem;
    max-width: 280px;
}

.speaking-practice-voice-preparing-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 3px solid #ccfbf1;
    border-top-color: #14b8a6;
    animation: speaking-practice-loading-spin .85s linear infinite;
}

.speaking-practice-voice-preparing-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .01em;
    color: #0f766e;
}

.speaking-practice-voice-preparing-sub {
    margin: 0;
    font-size: .86rem;
    line-height: 1.45;
    color: #64748b;
}

.speaking-practice-chat {
    flex: 1;
    min-height: 260px;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: .35rem .15rem;
}

.speaking-practice-tutor-stage {
    display: flex;
    justify-content: center;
    padding: .35rem 0 .5rem;
}

.speaking-practice-tutor-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    position: relative;
}

.speaking-practice-tutor-avatar-thinking {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8.5rem;
    height: 8.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .42);
    z-index: 2;
}

.speaking-practice-tutor-avatar-thinking[hidden] {
    display: none !important;
}

.speaking-practice-tutor-avatar-thinking-spinner {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: speaking-practice-loading-spin .85s linear infinite;
}

.speaking-practice-tutor-stage.is-preparing-voice:not(.is-preparing-voice--opening) .speaking-practice-tutor-avatar {
    border-color: #5eead4;
}

.speaking-practice-tutor-avatar {
    width: 8.5rem;
    height: 8.5rem;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    border: 4px solid #99f6e4;
    background: #0f172a;
    box-shadow: 0 10px 28px rgba(15, 118, 110, .2);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.speaking-practice-tutor-stage.is-speaking .speaking-practice-tutor-avatar {
    border-color: #14b8a6;
    box-shadow:
        0 0 0 5px rgba(20, 184, 166, .2),
        0 14px 32px rgba(15, 118, 110, .28);
    animation: speaking-practice-tutor-pulse 1.15s ease-in-out infinite;
}

.speaking-practice-tutor-stage.is-preparing-voice .speaking-practice-tutor-avatar {
    border-color: #5eead4;
    box-shadow: 0 10px 28px rgba(15, 118, 110, .2);
}

.speaking-practice-tutor-stage.is-preparing-voice .speaking-practice-tutor-speaking-pill {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #b45309;
}

@keyframes speaking-practice-tutor-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.speaking-practice-tutor-speaking-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .38rem .8rem;
    border-radius: 999px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    color: #0f766e;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.speaking-practice-tutor-speaking-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: .85rem;
}

.speaking-practice-tutor-speaking-eq span {
    display: block;
    width: 3px;
    height: 35%;
    border-radius: 2px;
    background: #14b8a6;
    animation: speaking-practice-equalizer-bar 0.85s ease-in-out infinite;
}

.speaking-practice-tutor-speaking-eq span:nth-child(2) {
    animation-delay: .12s;
}

.speaking-practice-tutor-speaking-eq span:nth-child(3) {
    animation-delay: .24s;
}

.speaking-practice-message {
    display: flex;
    align-items: flex-end;
    gap: .65rem;
    max-width: 88%;
}

.speaking-practice-message--assistant {
    align-self: flex-start;
    align-items: flex-end;
}

.speaking-practice-message--user {
    align-self: flex-end;
    align-items: flex-end;
}

.speaking-practice-message-content {
    display: flex;
    flex-direction: column;
    gap: .28rem;
    min-width: 0;
}

.speaking-practice-message-content--assistant {
    align-items: flex-start;
}

.speaking-practice-message-content--user {
    align-items: flex-end;
}

.speaking-practice-message-time {
    font-size: .72rem;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1;
}

.speaking-practice-wizard-start-btn.is-loading {
    opacity: .92;
    pointer-events: none;
}

.speaking-practice-wizard-start-btn.is-loading .speaking-practice-wizard-start-icon {
    animation: speaking-practice-spin .8s linear infinite;
}

@keyframes speaking-practice-spin {
    to { transform: rotate(360deg); }
}

.speaking-practice-message-avatar--user {
    border-color: #c7d2fe;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.speaking-practice-message-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    color: #fff;
    object-fit: unset;
}

.speaking-practice-message-equalizer {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    width: 1.15rem;
    height: 1rem;
    flex-shrink: 0;
}

.speaking-practice-message-equalizer[hidden] {
    display: none;
}

.speaking-practice-message-equalizer-bar {
    display: block;
    width: 3px;
    height: 35%;
    border-radius: 2px;
    background: #14b8a6;
}

.speaking-practice-message-equalizer.is-active .speaking-practice-message-equalizer-bar {
    animation: speaking-practice-equalizer-bar 0.85s ease-in-out infinite;
}

.speaking-practice-message-equalizer.is-active .speaking-practice-message-equalizer-bar:nth-child(1) {
    animation-delay: 0s;
}

.speaking-practice-message-equalizer.is-active .speaking-practice-message-equalizer-bar:nth-child(2) {
    animation-delay: 0.12s;
}

.speaking-practice-message-equalizer.is-active .speaking-practice-message-equalizer-bar:nth-child(3) {
    animation-delay: 0.24s;
}

.speaking-practice-message-equalizer.is-active .speaking-practice-message-equalizer-bar:nth-child(4) {
    animation-delay: 0.36s;
}

@keyframes speaking-practice-equalizer-bar {
    0%, 100% { height: 30%; }
    50% { height: 100%; }
}

.speaking-practice-message-avatar {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    border: 2px solid #ccfbf1;
    background: #0f172a;
}

.speaking-practice-bubble {
    max-width: 100%;
    padding: .8rem 1rem;
    border-radius: 16px;
    font-size: .94rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.speaking-practice-bubble--assistant {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 6px;
}

.speaking-practice-bubble--user {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .18);
}

.speaking-practice-turn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: .5rem .25rem .25rem;
    text-align: center;
}

.speaking-practice-mic-hero {
    width: 4.5rem;
    height: 4.5rem;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 28px rgba(220, 38, 38, .32);
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s;
}

.speaking-practice-mic-hero:hover,
.speaking-practice-mic-hero:focus {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(220, 38, 38, .38);
    background: linear-gradient(135deg, #f87171, #b91c1c);
    color: #fff;
}

.speaking-practice-mic-hero.is-listening {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 10px 28px rgba(22, 163, 74, .35);
    animation: speaking-practice-mic-pulse 1.2s ease-in-out infinite;
}

.speaking-practice-turn-msg {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
    color: #dc2626;
}

.speaking-practice-turn--listening .speaking-practice-turn-msg {
    color: #16a34a;
}

@keyframes speaking-practice-mic-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.speaking-practice-status {
    min-height: 0;
    font-size: .86rem;
    font-weight: 500;
    color: #475569;
    text-align: center;
    line-height: 1.45;
}

.speaking-practice-status--thinking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: .55rem .85rem;
    border-radius: 999px;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    color: #0f766e;
    box-shadow: none;
    animation: none;
}

.speaking-practice-status--tutor-speaking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: .5rem .85rem;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    box-shadow: none;
    animation: none;
}

.speaking-practice-status-tutor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
}

.speaking-practice-status--tutor-speaking .speaking-practice-status-copy {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    font-size: .95rem;
    color: #4338ca;
}

.speaking-practice-status-emoji--listen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #14b8a6);
    color: #fff;
    font-size: .9rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .28);
    animation: speaking-practice-think-bob 1.1s ease-in-out infinite;
}

.speaking-practice-status-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: .18rem;
    height: .95rem;
    margin-left: .1rem;
}

.speaking-practice-status-eq span {
    display: block;
    width: .18rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #6366f1, #14b8a6);
    animation: speaking-practice-status-eq 1s ease-in-out infinite;
}

.speaking-practice-status-eq span:nth-child(1) {
    height: .45rem;
    animation-delay: 0s;
}

.speaking-practice-status-eq span:nth-child(2) {
    height: .8rem;
    animation-delay: .15s;
}

.speaking-practice-status-eq span:nth-child(3) {
    height: .55rem;
    animation-delay: .3s;
}

@keyframes speaking-practice-status-eq {
    0%, 100% { transform: scaleY(.55); opacity: .55; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes speaking-practice-status-tutor-glow {
    0%, 100% { box-shadow: 0 8px 22px rgba(79, 70, 229, .14); }
    50% { box-shadow: 0 10px 26px rgba(20, 184, 166, .22); }
}

.speaking-practice-status-thinking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.speaking-practice-status-emoji {
    font-size: 1.35rem;
    line-height: 1;
    animation: speaking-practice-think-bob 1.1s ease-in-out infinite;
}

.speaking-practice-status-copy {
    font-weight: 700;
    color: #115e59;
}

.speaking-practice-status-dots {
    display: inline-flex;
    margin-left: .05rem;
}

.speaking-practice-status-dots span {
    animation: speaking-practice-think-dot 1.2s ease-in-out infinite;
    opacity: .2;
}

.speaking-practice-status-dots span:nth-child(1) {
    animation-delay: 0s;
}

.speaking-practice-status-dots span:nth-child(2) {
    animation-delay: .2s;
}

.speaking-practice-status-dots span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes speaking-practice-think-bob {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.06); }
}

@keyframes speaking-practice-think-dot {
    0%, 100% { opacity: .2; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-2px); }
}

@keyframes speaking-practice-status-glow {
    0%, 100% { box-shadow: 0 6px 18px rgba(13, 148, 136, .1); }
    50% { box-shadow: 0 8px 22px rgba(13, 148, 136, .18); }
}

.speaking-practice-error {
    margin: 0;
    font-size: .82rem;
    padding: .55rem .7rem;
    white-space: pre-line;
}

.speaking-practice-modal-footer {
    padding: .55rem 1rem .75rem;
    border-top: 1px solid #e8edf5;
    gap: .45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: relative;
    z-index: 3;
    background: #fff;
}

.speaking-practice-modal-footer--active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.25rem 1rem;
    position: relative;
    min-height: 4.5rem;
}

.speaking-practice-active-footer {
    display: contents;
}

.speaking-practice-active-footer-side--left {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
}

.speaking-practice-active-footer-side--center {
    grid-column: 2;
    justify-self: center;
}

.speaking-practice-end-session-note {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    max-width: 280px;
    font-size: .76rem;
    line-height: 1.4;
    color: #64748b;
    font-weight: 500;
    text-align: left;
    white-space: normal;
}

.speaking-practice-end-session-note i {
    color: #14b8a6;
    flex-shrink: 0;
}

.speaking-practice-end-session-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .62rem 1.5rem;
    border: 2px solid #fecaca;
    border-radius: 999px;
    background: #fff;
    color: #b91c1c;
    font-size: .9rem;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(185, 28, 28, .1);
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.speaking-practice-end-session-btn:hover,
.speaking-practice-end-session-btn:focus {
    background: #fef2f2;
    border-color: #f87171;
    color: #991b1b;
    box-shadow: 0 8px 22px rgba(185, 28, 28, .14);
}

.speaking-practice-end-session-btn-icon {
    font-size: .95rem;
    line-height: 1;
}

.speaking-practice-modal-footer--active #speakingPracticeEndBtn {
    position: relative;
    z-index: 4;
    pointer-events: auto;
}

.speaking-practice-modal-footer--wizard .speaking-practice-wizard-start-btn {
    width: auto;
    height: 2.75rem;
}

.speaking-practice-modal-footer--intro {
    justify-content: center;
}

.speaking-practice-modal-footer--intro .speaking-practice-btn-secondary[data-bs-dismiss="modal"] {
    display: none;
}

.speaking-practice-modal-footer--intro .btn-home-cta {
    width: 100%;
    max-width: 420px;
    position: relative;
    justify-content: center;
}

.speaking-practice-modal-footer--intro .btn-home-cta-icon {
    position: absolute;
    left: 1rem;
}

.speaking-practice-modal-footer--intro .btn-home-cta-arrow {
    position: absolute;
    right: 1rem;
    margin-left: 0;
}

.speaking-practice-modal-footer--intro .btn-home-cta-copy {
    text-align: center;
    padding: 0 3rem;
}

.speaking-practice-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.speaking-practice-loading:not([hidden]) {
    display: flex;
}

.speaking-practice-loading[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.speaking-practice-loading-inner {
    max-width: 360px;
    text-align: center;
}

.speaking-practice-loading-spinner {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto .85rem;
    border-radius: 50%;
    border: 3px solid #e0e7ff;
    border-top-color: #6366f1;
    animation: speaking-practice-loading-spin .85s linear infinite;
}

@keyframes speaking-practice-loading-spin {
    to { transform: rotate(360deg); }
}

.speaking-practice-loading-title {
    margin: 0 0 .35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.speaking-practice-loading-sub {
    margin: 0;
    font-size: .86rem;
    line-height: 1.5;
    color: #64748b;
}

.speaking-practice-loading-progress {
    margin: .85rem 0 0;
    height: .45rem;
    border-radius: 999px;
    background: #e0e7ff;
    overflow: hidden;
}

.speaking-practice-loading-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    transition: width .35s ease;
}

.speaking-practice-loading-detail {
    margin: .5rem 0 0;
    font-size: .8rem;
    line-height: 1.45;
    color: #475569;
}

.speaking-practice-modal--generating .speaking-practice-modal-footer {
    pointer-events: none;
    opacity: .65;
}

.speaking-practice-ready-modal-content {
    max-width: 720px;
}

.speaking-practice-ready-modal-body {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.speaking-practice-ready-modal-lead {
    margin: 0;
    color: #475569;
    font-size: .9rem;
    line-height: 1.5;
}

.speaking-practice-ready-modal-body .speaking-practice-steps {
    margin-bottom: 0;
}

.speaking-practice-ready-start-btn {
    min-width: 0;
}

.speaking-practice-confirm-modal-footer .speaking-practice-ready-start-btn {
    flex: 1 1 auto;
}

.speaking-practice-confirm-modal-header {
    padding: .65rem 1rem .25rem;
    align-items: center;
}

.speaking-practice-confirm-modal-title {
    margin: 0;
    font-size: .98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.speaking-practice-confirm-modal-content,
.speaking-practice-report-modal-content {
    border: 3px solid #2563eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(37, 99, 235, .18);
}

.speaking-practice-btn-keep {
    border-radius: 10px;
    padding: .42rem .85rem;
    font-size: .84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    border: none;
}

.speaking-practice-btn-keep:hover,
.speaking-practice-btn-keep:focus {
    color: #fff;
    opacity: .95;
}

.speaking-practice-confirm-modal-header,
.speaking-practice-report-modal-body {
    border: none;
}

.speaking-practice-confirm-modal-body {
    padding: .5rem 1.15rem 1rem;
    color: #475569;
    font-size: .9rem;
    line-height: 1.55;
}

.speaking-practice-confirm-modal-body p {
    margin: 0;
}

.speaking-practice-confirm-modal-footer,
.speaking-practice-report-modal-footer {
    padding: .55rem 1rem .75rem;
    border-top: 1px solid #e8edf5;
    gap: .45rem;
}

.speaking-practice-mic-status {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-top: 1rem;
    padding: .75rem .85rem;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    border-radius: 12px;
}

.speaking-practice-mic-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.speaking-practice-mic-status-icon--pending {
    color: #6366f1;
}

.speaking-practice-mic-status-icon--ready {
    color: #16a34a;
}

.speaking-practice-mic-status-text {
    font-size: .9rem;
    font-weight: 600;
    color: #0f172a;
}

.speaking-practice-mic-error {
    margin-top: .75rem;
    font-size: .86rem;
    line-height: 1.45;
}

.speaking-practice-report-modal-body {
    padding: 1rem 1.25rem 1.1rem;
    max-height: min(70vh, 620px);
    overflow-y: auto;
}

.speaking-practice-btn-primary,
.speaking-practice-btn-secondary,
.speaking-practice-btn-mic {
    border-radius: 10px;
    padding: .42rem .85rem;
    font-size: .84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.speaking-practice-btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
}

.speaking-practice-btn-start {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 52%, #4338ca 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    height: 2.75rem;
    min-width: 11.5rem;
    padding: 0 1.4rem;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(79, 70, 229, .28);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.speaking-practice-btn-start:hover,
.speaking-practice-btn-start:focus {
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 52%, #3730a3 100%);
    border-color: rgba(255, 255, 255, .28);
    box-shadow: 0 6px 22px rgba(79, 70, 229, .36);
    transform: translateY(-1px);
}

.speaking-practice-btn-start:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(79, 70, 229, .24);
}

.speaking-practice-btn-start:disabled,
.speaking-practice-btn-start[disabled] {
    opacity: .72;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(79, 70, 229, .16);
}

.speaking-practice-wizard-start-icon {
    font-size: .82rem;
    line-height: 1;
    opacity: .95;
}

.speaking-practice-btn-primary:hover,
.speaking-practice-btn-primary:focus {
    color: #fff;
    opacity: .95;
}

.speaking-practice-btn-secondary {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.speaking-practice-btn-mic {
    background: #fff;
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, .35);
    margin-left: auto;
}

.speaking-practice-btn-mic.is-listening {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(239, 68, 68, .25);
}

.speaking-practice-report {
    padding: 0;
}

.speaking-practice-report-head {
    margin-bottom: .75rem;
}

.speaking-practice-report-title {
    margin: 0 0 .2rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.speaking-practice-report-topic {
    margin: 0;
    font-size: .86rem;
    color: #64748b;
}

.speaking-practice-report-summary {
    margin: 0 0 1rem;
    padding: .75rem .9rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid #e0e7ff;
    color: #334155;
    font-size: .9rem;
    line-height: 1.55;
}

.speaking-practice-report-recording {
    margin: 0 0 1rem;
    padding: .85rem .95rem;
    border-radius: 14px;
    border: 1px solid #c7d2fe;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
}

.speaking-practice-report-recording-head {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: .7rem;
}

.speaking-practice-report-recording-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.speaking-practice-report-recording-copy {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.speaking-practice-report-recording-copy strong {
    font-size: .9rem;
    color: #1e293b;
}

.speaking-practice-report-recording-copy span {
    font-size: .78rem;
    line-height: 1.45;
    color: #64748b;
}

.speaking-practice-report-recording-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.speaking-practice-report-recording-btn {
    min-width: 0;
}

.speaking-practice-report-recording-now {
    margin: .65rem 0 0;
    font-size: .8rem;
    line-height: 1.45;
    color: #4338ca;
    font-weight: 600;
}

.speaking-practice-report-scoreboard {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 55%, #ecfdf5 100%);
    border: 1px solid #e0e7ff;
}

.speaking-practice-report-score-ring {
    display: flex;
    align-items: baseline;
    gap: .15rem;
    flex-shrink: 0;
}

.speaking-practice-report-score-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #4338ca;
    font-variant-numeric: tabular-nums;
}

.speaking-practice-report-score-max {
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
}

.speaking-practice-report-score-change {
    margin: 0 0 .35rem;
    font-size: .86rem;
    font-weight: 700;
}

.speaking-practice-report-score-change--up { color: #16a34a; }
.speaking-practice-report-score-change--down { color: #dc2626; }

.speaking-practice-report-save-note {
    margin: 0;
    font-size: .84rem;
    line-height: 1.45;
    color: #475569;
}

.speaking-practice-report-save-note--saved { color: #166534; }
.speaking-practice-report-save-note--guest a { color: #4338ca; font-weight: 600; }

.speaking-practice-report-subscores {
    display: grid;
    gap: .65rem;
    margin-bottom: 1rem;
}

.speaking-practice-report-subscore {
    display: grid;
    grid-template-columns: 5.5rem 1fr auto;
    align-items: center;
    gap: .55rem;
}

.speaking-practice-report-subscore-label {
    font-size: .82rem;
    font-weight: 700;
    color: #334155;
}

.speaking-practice-report-subscore-value {
    font-size: .82rem;
    font-weight: 700;
    color: #4338ca;
    min-width: 1.8rem;
    text-align: right;
}

.speaking-practice-report-subscore-fill {
    background: linear-gradient(90deg, #6366f1, #4f46e5);
}

.speaking-practice-report-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1rem;
}

.speaking-practice-report-highlight {
    padding: .75rem .85rem;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
}

.speaking-practice-report-highlight--strengths {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.speaking-practice-report-highlight--improve {
    border-color: #fde68a;
    background: #fffbeb;
}

.speaking-practice-report-highlight-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: .84rem;
    line-height: 1.5;
    color: #334155;
}

.speaking-practice-report-highlight-list li {
    margin-bottom: .25rem;
}

.profile-panel--speaking {
    margin-top: 1rem;
}

.profile-speaking-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
}

.profile-speaking-empty-icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    margin-bottom: .65rem;
    font-size: 1.1rem;
}

.profile-speaking-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.profile-speaking-stat {
    padding: .85rem .9rem;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
}

.profile-speaking-stat-label {
    display: block;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    margin-bottom: .25rem;
}

.profile-speaking-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.profile-speaking-stat-value span {
    font-size: .82rem;
    font-weight: 700;
    color: #94a3b8;
}

.profile-speaking-stat-value--plain span { display: none; }

.profile-speaking-change {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    margin-top: .25rem;
    font-size: .78rem;
    font-weight: 700;
}

.profile-speaking-change--up { color: #16a34a; }
.profile-speaking-change--down { color: #dc2626; }

.profile-speaking-chart-wrap {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid #e8edf5;
    background: #fff;
}

.profile-speaking-chart-title {
    margin: 0 0 .75rem;
    font-size: .92rem;
    font-weight: 700;
    color: #0f172a;
}

.profile-speaking-chart {
    display: flex;
    align-items: flex-end;
    gap: .45rem;
    min-height: 180px;
    padding-top: .25rem;
    overflow-x: auto;
}

.profile-speaking-chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    min-width: 2.4rem;
    flex: 1;
}

.profile-speaking-chart-bar-wrap {
    display: flex;
    align-items: flex-end;
    height: 120px;
    width: 100%;
}

.profile-speaking-chart-bar {
    width: 100%;
    min-height: 4px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #818cf8, #4f46e5);
}

.profile-speaking-chart-score {
    font-size: .72rem;
    font-weight: 700;
    color: #4338ca;
}

.profile-speaking-chart-label {
    font-size: .68rem;
    color: #64748b;
    white-space: nowrap;
}

.speaking-practice-report-section {
    margin-bottom: 1rem;
}

.speaking-practice-report-jump {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 0 0 .85rem;
}

.speaking-practice-report-jump-link {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: 999px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #4338ca;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.speaking-practice-report-jump-link:hover {
    background: #e0e7ff;
    color: #3730a3;
}

.speaking-practice-report-collapse {
    margin-bottom: .85rem;
    border: 1px solid #dbe3f0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.speaking-practice-report-collapse--feedback {
    border-color: #fecaca;
    box-shadow: 0 4px 16px rgba(220, 38, 38, .06);
}

.speaking-practice-report-collapse-summary {
    list-style: none;
    cursor: pointer;
    padding: .8rem .95rem;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.speaking-practice-report-collapse-summary-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: .55rem;
    font-size: .9rem;
    font-weight: 700;
    color: #0f172a;
}

.speaking-practice-report-collapse--feedback > .speaking-practice-report-collapse-summary {
    background: linear-gradient(135deg, #fff1f2 0%, #fff 100%);
}

.speaking-practice-report-collapse-summary::-webkit-details-marker {
    display: none;
}

.speaking-practice-report-collapse-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.speaking-practice-report-collapse-label {
    min-width: 0;
}

.speaking-practice-report-collapse-meta {
    font-size: .74rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.speaking-practice-report-collapse--feedback .speaking-practice-report-collapse-meta {
    color: #b91c1c;
}

.speaking-practice-report-collapse-chevron {
    color: #64748b;
    font-size: .78rem;
    transition: transform .15s ease;
}

.speaking-practice-report-collapse[open] > .speaking-practice-report-collapse-summary .speaking-practice-report-collapse-chevron {
    transform: rotate(180deg);
}

.speaking-practice-report-collapse-body {
    display: block;
    padding: 0 .95rem .95rem;
    border-top: 1px solid #e8edf5;
}

.speaking-practice-report-collapse-hint {
    margin: .75rem 0 .65rem;
    font-size: .82rem;
    line-height: 1.45;
    color: #64748b;
}

.speaking-practice-report-section-title {
    margin: 0 0 .55rem;
    font-size: .92rem;
    font-weight: 700;
    color: #0f172a;
}

.speaking-practice-report-conversation {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: .5rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e8edf5;
}

.speaking-practice-report-conversation .speaking-practice-report-message {
    width: 100%;
    max-width: 100%;
}

.speaking-practice-report-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 1.35rem 1rem;
    margin: .35rem 0 .15rem;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    text-align: center;
}

.speaking-practice-report-empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.35rem;
}

.speaking-practice-report-empty-state-text {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.45;
    color: #166534;
}

.speaking-practice-report-collapse--feedback.speaking-practice-report-collapse--all-good {
    border-color: #bbf7d0;
    box-shadow: 0 4px 16px rgba(22, 163, 74, .08);
}

.speaking-practice-report-collapse--feedback.speaking-practice-report-collapse--all-good > .speaking-practice-report-collapse-summary {
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

.speaking-practice-report-feedback {
    display: grid;
    gap: .7rem;
}

.speaking-practice-feedback-card {
    padding: .8rem .9rem;
    border-radius: 14px;
    border: 1px solid #e8edf5;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.speaking-practice-feedback-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6366f1;
    margin-bottom: .45rem;
}

.speaking-practice-feedback-card--issues {
    border-color: #fecaca;
    background: #fffbfb;
}

.speaking-practice-feedback-card-badge {
    display: inline-flex;
    align-items: center;
    padding: .15rem .45rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.speaking-practice-feedback-card-badge--issues {
    background: #fee2e2;
    color: #b91c1c;
}

.speaking-practice-feedback-card-badge--ok {
    background: #dcfce7;
    color: #166534;
}

.speaking-practice-feedback-mistakes-wrap {
    margin-bottom: .5rem;
    padding: .55rem .65rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.speaking-practice-feedback-mistakes-title {
    margin: 0 0 .35rem;
    font-size: .8rem;
    font-weight: 700;
    color: #b91c1c;
}

.speaking-practice-feedback-mistakes-title i {
    margin-right: .25rem;
}

.speaking-practice-feedback-context,
.speaking-practice-feedback-you,
.speaking-practice-feedback-better,
.speaking-practice-feedback-tip {
    margin: 0 0 .45rem;
    font-size: .88rem;
    line-height: 1.5;
    color: #334155;
}

.speaking-practice-feedback-mistakes {
    margin: 0 0 .5rem 1.1rem;
    padding: 0;
    color: #dc2626;
    font-size: .84rem;
}

.speaking-practice-feedback-mistakes li {
    margin-bottom: .2rem;
}

.speaking-practice-mistake {
    background: #fee2e2;
    color: #b91c1c;
    padding: 0 .15rem;
    border-radius: 3px;
}

.speaking-practice-feedback-ok {
    margin: 0 0 .45rem;
    font-size: .86rem;
    color: #16a34a;
    font-weight: 600;
}

.speaking-practice-feedback-better {
    padding: .55rem .65rem;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.speaking-practice-feedback-tip {
    margin-bottom: 0;
    font-size: .84rem;
    color: #64748b;
}

.speaking-practice-report-empty {
    margin: 0;
    font-size: .88rem;
    color: #64748b;
}

@media (max-width: 767.98px) {
    .speaking-practice-modal-header {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }

    .speaking-practice-modal-header-toolbar {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .speaking-practice-modal-footer--active {
        grid-template-columns: 1fr;
        gap: .55rem;
    }

    .speaking-practice-active-footer-side--left,
    .speaking-practice-active-footer-side--center {
        grid-column: 1;
        justify-self: center;
        text-align: center;
    }

    .speaking-practice-end-session-note {
        max-width: none;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .speaking-practice-modal-header {
        flex-wrap: wrap;
    }

    .speaking-practice-modal-header-copy {
        flex-wrap: wrap;
        row-gap: .45rem;
    }

    .speaking-practice-wizard-progress--header {
        margin-left: auto;
        margin-right: 0;
    }

    .speaking-practice-wizard-progress--header .speaking-practice-wizard-progress-item.is-active .speaking-practice-wizard-progress-label {
        display: none;
    }

    .speaking-practice-timer {
        order: 3;
        margin-left: auto;
        font-size: .82rem;
    }

    .speaking-practice-pause-btn {
        order: 4;
        font-size: .78rem;
        padding: .32rem .55rem;
    }

    .speaking-practice-pause-btn-label {
        display: none;
    }

    .speaking-practice-duration-options {
        gap: .35rem;
    }

    .speaking-practice-duration-option span {
        min-width: 3.5rem;
        padding: .38rem .55rem;
        font-size: .78rem;
    }

    .speaking-practice-active-footer {
        gap: .55rem;
    }

    .speaking-practice-suggestion-status {
        position: static;
        align-self: flex-start;
        max-width: 100%;
        margin-bottom: .15rem;
    }

    .speaking-practice-end-session-note {
        white-space: normal;
        font-size: .74rem;
    }

    .speaking-practice-report-highlights {
        grid-template-columns: 1fr;
    }

    .profile-speaking-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .speaking-practice-modal-body {
        min-height: 240px;
    }

    .speaking-practice-chat {
        max-height: 300px;
    }

    .speaking-practice-modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .speaking-practice-btn-mic {
        margin-left: 0;
        justify-content: center;
    }
}

/* Browser zoom notice (browser-zoom-notice.js) */
.elh-zoom-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147482500;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem 1rem;
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 1px solid #f59e0b;
    color: #78350f;
    box-shadow: 0 4px 16px rgba(245, 158, 11, .18);
    animation: elhZoomNoticeIn .3s ease;
}

body.elh-has-zoom-notice {
    padding-top: 2.75rem;
}

.elh-zoom-notice-icon {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: rgba(120, 53, 15, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    flex-shrink: 0;
}

.elh-zoom-notice-text {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: .84rem;
    line-height: 1.4;
    font-weight: 500;
}

.elh-zoom-notice-close {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(120, 53, 15, .1);
    color: #78350f;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: background .15s ease;
}

.elh-zoom-notice-close:hover {
    background: rgba(120, 53, 15, .18);
}

@keyframes elhZoomNoticeIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 575.98px) {
    .elh-zoom-notice {
        align-items: flex-start;
        padding: .5rem .75rem;
    }

    body.elh-has-zoom-notice {
        padding-top: 4.25rem;
    }

    .elh-zoom-notice-text {
        font-size: .8rem;
    }
}

/* Deploy version update banner (app-version.js) */
.elh-app-update-banner {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    z-index: 2147483000;
    width: min(520px, calc(100vw - 2rem));
    padding: .9rem 1rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, .35);
    background: linear-gradient(135deg, #312e81 0%, #1e3a8a 100%);
    color: #fff;
    box-shadow: 0 12px 40px rgba(30, 58, 138, .35);
    display: flex;
    flex-direction: column;
    gap: .55rem;
    animation: elhAppUpdateBannerIn .35s ease;
}

.elh-app-update-banner--public {
    top: 1rem;
    bottom: auto;
}

.elh-app-update-banner-head {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.elh-app-update-banner-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    flex-shrink: 0;
}

.elh-app-update-banner-title {
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .01em;
}

@keyframes elhAppUpdateBannerIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.elh-app-update-banner-text {
    margin: 0;
    font-size: .88rem;
    line-height: 1.45;
    font-weight: 500;
}

.elh-app-update-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.elh-app-update-banner-btn {
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: .35rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
}

.elh-app-update-banner-btn--primary {
    background: #fff;
    color: #1e3a8a;
    border-color: #fff;
}

.elh-app-update-banner-btn:hover {
    opacity: .92;
}

.vocab-image-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    display: block;
}

.vocab-image-thumb-btn {
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 0;
    cursor: pointer;
    border-radius: 6px;
}

.vocab-image-thumb-btn:hover .vocab-image-thumb,
.vocab-image-thumb-btn:focus-visible .vocab-image-thumb {
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.35);
}

.vocab-image-preview-modal__path {
    font-size: 0.75rem;
    color: #6c757d;
    word-break: break-all;
}

.vocab-image-preview-modal__img {
    max-width: 100%;
    max-height: min(70vh, 640px);
    border-radius: 8px;
    object-fit: contain;
}

.vocab-ai-image-notes {
    margin: .65rem 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.vocab-ai-image-notes .practice-question-image-stack {
    width: 100%;
    max-width: min(100%, 420px);
}

.vocab-ai-image-notes .practice-report-image-btn {
    margin-top: .15rem;
}

.practice-modal .practice-section-body .vocab-ai-image-notes {
    margin: .75rem 0;
}

/* Scroll to top — card browse pages, sits above Tawk chat bubble */
.elh-scroll-top {
    position: fixed;
    right: 1.15rem;
    bottom: calc(5.85rem + env(safe-area-inset-bottom, 0px));
    z-index: 2147483000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #4f46e5;
    box-shadow:
        0 4px 18px rgba(15, 23, 42, .14),
        0 0 0 1px rgba(99, 102, 241, .18);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.elh-scroll-top:hover {
    transform: translateY(-2px);
    background: #f5f3ff;
    color: #4338ca;
    box-shadow:
        0 8px 22px rgba(79, 70, 229, .22),
        0 0 0 1px rgba(99, 102, 241, .28);
}

.elh-scroll-top:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.elh-scroll-top[hidden] {
    display: none !important;
}

@media (max-width: 575.98px) {
    .elh-scroll-top {
        right: .85rem;
        bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
        width: 2.55rem;
        height: 2.55rem;
        font-size: .9rem;
    }
}

/* Tawk.to: keep chat icon only — hide "We Are Here" attention grabber */
#tawk-widget-container [class*="attention-grabber"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ── Home site footer (AtechFusion-style) ── */
.home-site-footer {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 3.5rem 0 1.5rem;
    background: linear-gradient(180deg, #0a1020 0%, #070b14 100%);
    color: #cbd5e1;
    border-top: 1px solid rgba(148, 163, 184, .12);
}

.home-site-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
    gap: 2rem 2.5rem;
}

.home-site-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.home-site-footer-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a6dff 0%, #6366f1 100%);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(26, 109, 255, .28);
}

.home-site-footer-logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}

.home-site-footer-tagline {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .75rem;
    line-height: 1.4;
}

.home-site-footer-desc {
    font-size: .9rem;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0 0 1.35rem;
    max-width: 34rem;
}

.home-site-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.home-site-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(148, 163, 184, .14);
    color: #e2e8f0;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.home-site-footer-social-link:hover {
    background: rgba(26, 109, 255, .18);
    border-color: rgba(96, 165, 250, .35);
    color: #fff;
}

.home-site-footer-heading {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 1rem;
}

.home-site-footer-links,
.home-site-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-site-footer-links li + li,
.home-site-footer-contact li + li {
    margin-top: .7rem;
}

.home-site-footer-links a,
.home-site-footer-contact a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: .92rem;
    transition: color .2s ease;
}

.home-site-footer-links a:hover,
.home-site-footer-contact a:hover {
    color: #fff;
}

.home-site-footer-contact li {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .92rem;
    color: #cbd5e1;
}

.home-site-footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(15, 23, 42, .72);
    border: 1px solid rgba(148, 163, 184, .14);
    color: #93c5fd;
    flex-shrink: 0;
}

.home-site-footer-accent {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 1.35rem 0 .65rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #2dd4bf;
}

.home-site-footer-accent-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #2dd4bf;
    box-shadow: 0 0 12px rgba(45, 212, 191, .55);
}

.home-site-footer-powered {
    margin: 0;
    font-size: .82rem;
    color: #64748b;
}

.home-site-footer-powered a {
    color: #93c5fd;
    text-decoration: none;
}

.home-site-footer-powered a:hover {
    color: #fff;
}

.home-site-footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, .12);
    text-align: center;
}

.home-site-footer-bottom p {
    margin: 0;
    font-size: .8rem;
    color: #64748b;
}

@media (max-width: 991.98px) {
    .home-site-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .home-site-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .home-site-footer {
        padding-top: 2.5rem;
    }

    .home-site-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* Learner admin message modal */
.learner-admin-message-dialog {
    max-width: 520px;
}

.learner-admin-message-modal {
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.learner-admin-message-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.5rem .5rem;
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
}

.learner-admin-message-header-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
    color: #4f46e5;
    background: rgba(255, 255, 255, .85);
    border: 1px solid #c7d2fe;
    font-size: 1.2rem;
}

.learner-admin-message-title {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.learner-admin-message-icebox {
    margin: 0;
    padding: 1.1rem 1.15rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(238, 242, 255, .95), rgba(248, 250, 252, .98));
    border: 1px solid #dbeafe;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.learner-admin-message-footer {
    justify-content: center;
    padding: 0 1.5rem 1.5rem;
}

.learner-admin-message-ok-btn {
    min-width: 12rem;
    border-radius: 999px;
    font-weight: 600;
    padding: .65rem 1.4rem;
}

.learner-admin-message-multi-hint {
    color: #64748b;
    font-size: .92rem;
    margin-top: .35rem;
}

.learner-admin-message-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.learner-admin-message-list-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .95rem 1rem;
    border-radius: .95rem;
    background: linear-gradient(145deg, rgba(238, 242, 255, .95), rgba(248, 250, 252, .98));
    border: 1px solid #dbeafe;
    color: #0f172a;
    font-weight: 600;
}

.learner-admin-message-list-item--error {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
    font-weight: 500;
}

.learner-admin-message-list-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    background: rgba(255, 255, 255, .9);
    border: 1px solid #c7d2fe;
    flex-shrink: 0;
}

.learner-admin-message-list-title {
    line-height: 1.4;
}

.admin-table-check-col {
    width: 2.5rem;
}

.admin-customer-message-row {
    cursor: pointer;
}

.admin-customer-message-row:hover {
    background: rgba(79, 70, 229, .04);
}

.learner-onboarding-modal-content {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.learner-onboarding-shell {
    padding: 2rem 2rem 1.75rem;
    background:
        radial-gradient(circle at top right, rgba(79, 70, 229, .12), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.learner-onboarding-header {
    margin-bottom: 1.5rem;
}

.learner-onboarding-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, .1);
    color: #4338ca;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.learner-onboarding-title {
    margin: .85rem 0 .35rem;
    color: #0f172a;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
}

.learner-onboarding-subtitle {
    margin: 0;
    color: #475569;
    max-width: 38rem;
    line-height: 1.6;
}

.learner-onboarding-form {
    display: grid;
    gap: 1.25rem;
}

.learner-onboarding-field .practice-lang-combobox-panel {
    max-height: 14rem;
}

.learner-onboarding-label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
    color: #0f172a;
}

.learner-onboarding-hint {
    margin: 0 0 .65rem;
    color: #64748b;
    font-size: .9rem;
}

.learner-onboarding-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: .25rem;
}

.learner-onboarding-submit {
    min-width: 13rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.learner-onboarding-error {
    margin: 0;
}

/* Describe Scene — media bulk status modal */
.ds-media-status-modal .modal-content {
    border: 1px solid rgba(99, 102, 241, .35);
    box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, .18);
}

.ds-media-status-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(14, 165, 233, .08));
    border-bottom: 1px solid rgba(99, 102, 241, .2);
}

.ds-media-status-tile {
    background: rgba(248, 250, 252, .9);
}

.ds-media-active-table tbody tr {
    animation: ds-media-pulse 1.8s ease-in-out infinite;
}

@keyframes ds-media-pulse {
    0%, 100% { background-color: rgba(255, 243, 205, 1); }
    50% { background-color: rgba(255, 236, 179, 1); }
}

.ds-media-events {
    max-height: 12rem;
    overflow-y: auto;
    padding-left: 1.1rem;
    border-left: 3px solid rgba(99, 102, 241, .35);
}
