.passage-sticky {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow: auto;
}

.passage-body {
    font-size: 15px;
    line-height: 1.7;
}

.read-aloud-passage {
    font-size: 18px;
    line-height: 1.85;
    color: #212529;
}
.repeat-player-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ebec;
    border-radius: 2rem;
    padding: 0.55rem 0.9rem;
}
.repeat-track {
    flex: 1;
    height: 6px;
    background: #e9ebec;
    border-radius: 99px;
    overflow: hidden;
}
.repeat-track span {
    display: block;
    height: 100%;
    width: 0;
    background: #22a06b;
}
.repeat-time { color: #878a99; font-size: 13px; white-space: nowrap; }
.repeat-select { width: 5.5rem; }
.repeat-voice { width: 11rem; }

.reorder-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.reorder-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e9ebec;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
}

.reorder-handle {
    cursor: grab;
    color: #878a99;
    margin-top: 0.15rem;
}

.word-count.is-bad { color: #f06548; font-weight: 600; }
.word-count.is-good { color: #0ab39c; font-weight: 600; }

.timer-chip {
    font-variant-numeric: tabular-nums;
    min-width: 5.5rem;
    text-align: center;
}

.auth-one-bg {
    background-image: url("../images/auth-one-bg.jpg");
}

.choice-correct { border-color: #0ab39c !important; }
.choice-wrong { border-color: #f06548 !important; }

.module-board .card-header { border-bottom: 2px solid #0ab39c; }
.module-weight { color: #f06548; font-weight: 600; white-space: nowrap; }
.module-core { background: #f3f6f9; }
.module-core a { color: #878a99; }
.mic-box.is-recording [data-mic-start] { box-shadow: 0 0 0 4px rgba(240, 101, 72, 0.25); }
.ai-score { color: #f06548; font-size: 12px; font-weight: 600; margin-left: 0.35rem; text-decoration: none; }

.site-body { background: #f3f6f9; color: #212529; font-family: Manrope, "Segoe UI", sans-serif; }
.mail-pane-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; border-bottom: 1px solid #e9ebec; }
.mail-pane-head h5 { font-weight: 700; }
.mail-pane-head p { color: #6c757d; font-size: 0.92rem; }
.level-easy, .level-medium, .level-hard { font-weight: 700; }
.level-easy { background: #e7f6ee; color: #127a45; }
.level-medium { background: #fff4e5; color: #9a6700; }
.level-hard { background: #fdecec; color: #c2410c; }
.mail-pane-out { background: #e7f8f4; }
.mail-pane-in { background: #e8f3ff; }
.site-header { background: #fff; border-bottom: 1px solid #e9ebec; position: sticky; top: 0; z-index: 20; }
.site-logo { font-weight: 700; font-size: 1.25rem; color: #0ab39c; text-decoration: none; display: inline-flex; align-items: center; }
.site-logo img { height: 36px; width: auto; }
.navbar-brand-box .logo-lg img { height: 36px; width: auto; }
.navbar-brand-box .logo-sm img { height: 28px; width: auto; }
.site-header nav a { color: #495057; text-decoration: none; font-weight: 500; }
.site-header nav a.active, .site-header nav a:hover { color: #0ab39c; }
.site-practice-menu { min-width: 36rem; }
.site-hero { background: linear-gradient(180deg, #fff 0%, #f3f6f9 100%); }
.site-footer { color: #878a99; font-size: 14px; border-top: 1px solid #e9ebec; background: #fff; }
.site-footer a { display: block; color: #495057; text-decoration: none; padding: 0.2rem 0; }
.site-footer a:hover { color: #0ab39c; }
.site-footer-label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #878a99; margin-bottom: 0.5rem; }
.site-footer-bar { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e9ebec; font-size: 13px; }
.site-menu-btn { border: 0; background: transparent; color: #212529; font-size: 1.5rem; line-height: 1; padding: 0.15rem 0.35rem; }
.site-mobile-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.site-mobile-nav a { color: #212529; text-decoration: none; font-weight: 600; padding: 0.45rem 0; }
.site-mobile-nav a.active, .site-mobile-nav a:hover { color: #0ab39c; }

.site-menu-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.home-hero {
    background:
        radial-gradient(640px 280px at 100% 0%, rgba(10, 179, 156, 0.14), transparent 68%),
        #fff;
    padding: 4.5rem 0 4rem;
}
.home-kicker {
    display: inline-block;
    background: #e7f7f4;
    color: #08756a;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    margin-bottom: 1.1rem;
}
.home-title {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: #12211e;
    margin-bottom: 1rem;
    max-width: 11em;
}
.home-lead { font-size: 1.05rem; line-height: 1.7; color: #4d5a56; max-width: 36rem; margin-bottom: 1.6rem; }
.home-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.home-actions .btn { border-radius: 0.7rem; font-weight: 600; padding: 0.72rem 1.15rem; }
.home-actions .btn-success { background: #0ab39c; border-color: #0ab39c; }
.home-actions .btn-success:hover { background: #099885; border-color: #099885; }
.home-actions .btn-outline-secondary { color: #24312e; border-color: #d5dbe0; background: #fff; }
.home-actions .btn-outline-secondary:hover { background: #f4f7f8; color: #12211e; }
.home-points { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; color: #3d4a46; font-size: 0.95rem; }
.home-points li { display: flex; align-items: center; gap: 0.55rem; }
.home-points svg { width: 18px; height: 18px; min-width: 18px; max-width: 18px; flex: 0 0 18px; color: #0ab39c; fill: none; stroke: currentColor; }
.home-panel {
    background: #f6f8f9;
    border: 1px solid #e1e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 16px 40px rgba(18, 33, 30, 0.06);
    padding: 1.35rem;
}
.home-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #e4eaee; }
.home-panel-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8a9499; margin-bottom: 0.2rem; }
.home-panel-top strong { display: block; font-size: 1.15rem; color: #12211e; }
.home-panel-top .btn { border-radius: 0.6rem; font-weight: 600; background: #0ab39c; border-color: #0ab39c; flex: 0 0 auto; }
.home-stat {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    height: 100%;
    min-height: 6.25rem;
    background: #fff;
    border: 1px solid #e3e8ec;
    border-radius: 0.9rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}
.home-stat:hover { border-color: #b7e4dc; background: #f8fcfb; }
.home-stat-copy { min-width: 0; }
.home-stat strong { display: block; font-size: 1.85rem; line-height: 1; color: #12211e; letter-spacing: -0.03em; }
.home-stat-copy span { display: block; margin-top: 0.3rem; color: #5c6770; font-size: 0.95rem; font-weight: 600; }
.home-panel-note { color: #5c6770; font-size: 0.86rem; line-height: 1.55; margin: 1rem 0 0; }
.home-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.home-icon svg { width: 20px; height: 20px; min-width: 20px; max-width: 20px; flex: 0 0 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-band { background: #fff; padding: 4.5rem 0; }
.home-band-muted { background: #f3f6f8; border-top: 1px solid #e7edf0; border-bottom: 1px solid #e7edf0; }
.home-section-head { max-width: 38rem; margin-bottom: 1.75rem; }
.home-section-head h2 { font-size: clamp(1.55rem, 2vw, 1.9rem); font-weight: 700; letter-spacing: -0.03em; color: #12211e; margin-bottom: 0.45rem; }
.home-section-head p { color: #5c6770; margin: 0; line-height: 1.6; }
.home-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    height: 100%;
    background: #fff;
    border: 1px solid #e3e8ec;
    border-radius: 1rem;
    padding: 1.4rem 1.35rem 1.3rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(18, 33, 30, 0.04);
}
.home-card { transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.home-card:hover { border-color: #b7e4dc; box-shadow: 0 12px 28px rgba(10, 179, 156, 0.1); transform: translateY(-2px); }
.home-card h3 { font-size: 1.08rem; font-weight: 700; color: #12211e; margin: 0.15rem 0 0; }
.home-card p { color: #5c6770; line-height: 1.55; margin: 0; }
.home-card-link { margin-top: auto; padding-top: 0.35rem; color: #08756a; font-weight: 700; font-size: 0.92rem; }
.home-rule {
    height: 100%;
    background: #fff;
    border: 1px solid #e6ebef;
    border-radius: 1rem;
    padding: 1.4rem 1.35rem 1.45rem;
}
.home-rule h3 { font-size: 1.08rem; font-weight: 700; color: #12211e; margin: 0.9rem 0 0.45rem; }
.home-rule p { color: #5c6770; line-height: 1.6; margin: 0; }
.home-step {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: #e7f7f4;
    color: #08756a;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.home-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: #102824;
    color: #fff;
    border-radius: 1.25rem;
    padding: 2rem 2.1rem;
}
.home-cta h2 { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.home-cta p { margin: 0; color: rgba(255, 255, 255, 0.76); max-width: 34rem; line-height: 1.55; }
.home-cta .btn { border-radius: 0.7rem; font-weight: 600; padding: 0.72rem 1.15rem; }
.home-cta .btn-success { background: #0ab39c; border-color: #0ab39c; }
.home-board .card { border: 1px solid #e6ebef; border-radius: 1rem; overflow: hidden; box-shadow: none; }
.home-board .card-header { background: #fff; padding: 1rem 1.15rem; }
.home-board .module-board .card-header { border-bottom: 1px solid #eef1f4; }
.home-board .list-group-item { padding: 0.8rem 1.15rem; border-color: #f2f4f6; }
.home-board .card-title { font-weight: 700; color: #12211e; }
#speaking, #writing, #reading, #listening, #practice { scroll-margin-top: 5.5rem; }
.tone-write { background: #fdece7; color: #e07a3d; }
@media (max-width: 991.98px) {
    .home-hero { padding: 2.5rem 0 2.75rem; }
    .home-title { max-width: none; }
    .home-band { padding: 3rem 0; }
    .home-cta { padding: 1.5rem; }
}

.ref-hero { background: #fff; text-align: center; padding: 4.75rem 0 3.25rem; }
.ref-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    background: #e7f7f4;
    color: #08756a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
}
.ref-hero h1 {
    max-width: 14em;
    margin: 0 auto 1rem;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.045em;
    color: #141414;
}
.ref-hero h1 span { color: #0ab39c; }
.ref-lead { max-width: 42rem; margin: 0 auto 1.75rem; color: #5c6570; font-size: 1.08rem; line-height: 1.7; }
.ref-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.ref-actions .btn, .ref-cta .btn { border-radius: 999px; font-weight: 700; padding: 0.75rem 1.35rem; }
.ref-actions .btn-success, .ref-cta .btn-success { background: #0ab39c; border-color: #0ab39c; }
.ref-actions .btn-outline-secondary { background: #fff; color: #24312e; border-color: #d5dbe0; }
.ref-metrics { background: #f6f8f9; border-top: 1px solid #e6ebef; border-bottom: 1px solid #e6ebef; padding: 1.5rem 0; }
.ref-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 7.5rem;
    height: 100%;
    background: #fff;
    border: 1px solid #e3e8ec;
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}
.ref-metric:hover { border-color: #b7e4dc; }
.ref-metric strong { font-size: 2rem; line-height: 1; color: #12211e; letter-spacing: -0.04em; }
.ref-metric span { margin-top: 0.4rem; color: #5c6570; font-weight: 700; }
.ref-band { background: #fff; padding: 4.5rem 0; }
.ref-band-muted { background: #f6f8f9; }
.ref-head { max-width: 40rem; margin: 0 auto 2rem; text-align: center; }
.ref-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; color: #141414; margin-bottom: 0.5rem; }
.ref-head p { margin: 0; color: #5c6570; font-size: 1.05rem; line-height: 1.6; }
.ref-feature, .ref-panel, .ref-step {
    height: 100%;
    background: #fff;
    border: 1px solid #e6ebef;
    border-radius: 1rem;
    padding: 1.4rem 1.3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}
.ref-feature h3, .ref-panel h3, .ref-step h3 { font-size: 1.1rem; font-weight: 800; color: #141414; margin-bottom: 0.45rem; }
.ref-feature p, .ref-panel p, .ref-step p { margin: 0; color: #5c6570; line-height: 1.6; }
.ref-feature a { color: #08756a; font-weight: 700; }
.ref-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 1.5rem; border: 0; }
.ref-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #e3e8ec;
    border-radius: 999px;
    background: #fff;
    color: #24312e;
    font-weight: 800;
    padding: 0.45rem 0.9rem 0.45rem 0.45rem;
}
.ref-tabs .nav-link .home-icon { width: 36px; height: 36px; border-radius: 999px; }
.ref-tabs .nav-link.active { background: #12211e; color: #fff; border-color: #12211e; }
.ref-types { list-style: none; margin: 0; padding: 0; }
.ref-types li + li { margin-top: 0.45rem; }
.ref-types a { color: #24312e; font-weight: 700; text-decoration: none; }
.ref-types a:hover { color: #0ab39c; }
.ref-step span {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e7f7f4;
    color: #08756a;
    font-weight: 800;
    margin-bottom: 0.8rem;
}
.ref-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: #102824;
    color: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
}
.ref-cta h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.ref-cta p { margin: 0; max-width: 36rem; color: rgba(255, 255, 255, 0.78); }
@media (max-width: 767.98px) {
    .ref-hero { padding: 3rem 0 2.25rem; }
    .ref-band { padding: 3rem 0; }
    .ref-cta { padding: 1.4rem; }
}

.sw-type { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; }
.sw-icon {
    width: 72px;
    height: 72px;
    border-radius: 0.75rem;
    background: #e6f7f4;
    color: #0ab39c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex: 0 0 auto;
}
.sw-action { flex: 0 0 auto; }
@media (max-width: 767.98px) {
    .sw-type { flex-wrap: wrap; }
}

.module-overview {
    background: #fff;
    border: 1px solid #e9ebec;
    border-radius: 1rem;
    overflow: hidden;
}
.module-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    border-bottom: 1px solid #e9ebec;
}
.module-row:last-child { border-bottom: 0; }
.module-row:hover { background: #f8f9fa; }
.module-badge {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex: 0 0 auto;
}
.tone-speak { background: #e8f1ff; color: #3b82f6; }
.tone-read { background: #e7f6ee; color: #22a06b; }
.tone-listen { background: #fff1e6; color: #e07a3d; }
.q-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.q-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}
.chart-frame {
    background: #fff;
    border: 1px solid #e9ebec;
    border-radius: 0.5rem;
    padding: 0.75rem;
    max-width: 720px;
}
.chart-frame svg { width: 100%; height: auto; display: block; }
