/* English Quest follows Khmer Quest's shell, route cards and prompt layout.
   Its jade/coral palette deliberately distinguishes the two courses. */
:root{--ink:#18383d;--muted:#617b7d;--paper:#f4faf8;--purple:#087f78;--lime:#ffcc80;--stroke:#daeae5;--shadow:0 20px 50px #174b4914;background:var(--paper);color:var(--ink)}
body{background:var(--paper);color:var(--ink)}
.sidebar{width:244px;flex:0 0 244px;background:#173e46;padding:27px 18px 22px;position:sticky;top:0;height:100vh;min-height:0}
.brand{padding:0 9px;margin:0 0 56px;font-size:24px;letter-spacing:-.8px;gap:10px}.brand-mark{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:14px;background:#ffcc80;color:#173e46;font-size:25px}.brand small{color:#bad1cf;font-size:9px}.brand-accent,.mobile-brand span:last-child{color:#ffcc80}
.side-label{padding:0 16px;margin:0 0 14px;color:#91b3b4;font-size:10px;letter-spacing:1.5px;font-weight:800}.side-nav{gap:5px}.side-nav .nav{color:#c2d9d8;background:none;border:0;text-align:left;border-radius:13px;padding:13px 15px;display:flex;align-items:center;gap:14px;font-weight:700;font-size:14px;width:100%;line-height:1.2;transition:.2s}.side-nav .nav:hover{color:white;background:#27545b}.side-nav .nav.active{background:#32646a;color:white}.side-nav .nav>.nav-icon{width:19px;font-size:22px;line-height:1;color:#ffcc80}.side-nav .nav b{margin-left:auto;background:#41757b;border-radius:7px;padding:2px 7px;font-size:11px;color:white}
.sidebar-bottom{margin-top:auto}.mini-progress{padding:19px 15px;border:1px solid #477077;border-radius:15px;background:#214b52}.mini-progress>div:first-child{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1px;font-weight:800;color:#b5d2d0}.mini-progress b{color:#ffcc80;font-size:12px;letter-spacing:0}.track{height:8px;background:#3e6870;border-radius:9px;overflow:hidden;margin:14px 0 10px}.track span{height:100%;width:0;display:block;background:#ffcc80;border-radius:9px;transition:width .4s}.mini-progress small{color:#a7c4c2;font-size:11px}.sidebar-note{display:flex;gap:10px;align-items:center;padding:22px 10px 3px}.sidebar-note>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#3b6568;color:#ffcc80}.sidebar-note b{font-size:12px;display:block}.sidebar-note small{display:block;color:#a7c4c2;font-size:11px;margin-top:3px}
.topbar{height:88px;padding:0 clamp(24px,4vw,66px);border-bottom:1px solid var(--stroke);background:#ffffffb8}.topbar-right{display:flex;align-items:center;gap:10px}.stat-chip{background:#fff;border:1px solid var(--stroke);border-radius:999px;padding:10px 14px;font-size:13px}.stat-chip strong{font:600 16px Fredoka,sans-serif;color:#087f78}.stat-chip small{color:var(--muted);font-size:11px;font-weight:700}.language-control{font-size:12px}.language-control select{border-color:var(--stroke);border-radius:999px;color:var(--ink);max-width:130px}.avatar{width:38px;height:38px;border:3px solid #fff;box-shadow:0 0 0 1px var(--stroke);display:grid;place-items:center;border-radius:50%;background:#ffc3a9;font:700 18px Fredoka,sans-serif}
main{width:min(1260px,100%);padding:35px clamp(24px,4vw,66px) 70px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--purple)}.page-title{font-size:clamp(30px,3.25vw,46px);line-height:1.1;letter-spacing:-1px;color:var(--ink)}.page-intro{color:var(--muted);font-size:14px;line-height:1.6}.card{border-color:var(--stroke);box-shadow:var(--shadow)}.btn{min-height:49px;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:9px}.btn-primary{background:#087f78;color:white;box-shadow:0 5px 0 #075e60}.btn-primary:hover:not(:disabled){background:#0a9790;transform:translateY(-2px)}.btn-light{background:#e6f4ef;color:#126c67}.progress{background:#e2efe9}.progress span,.speech-dots i{background:#0aa69d}.section-heading h2,.speech-topic-tile h3,.speech-stage h2,.question-title,.speech-bank-section h2{color:var(--ink)}
.speech-hero{background:#173e46;border-radius:28px;padding:clamp(27px,4vw,48px);min-height:260px;position:relative;margin-bottom:15px}.speech-hero:before{content:'✳';position:absolute;right:17%;top:-115px;color:#ffffff0b;font-size:350px;pointer-events:none}.speech-hero .overview-kicker{color:#ffcc80;letter-spacing:1.7px;font-size:11px}.speech-hero h2{font-size:clamp(32px,4vw,52px);line-height:1.08;letter-spacing:-1.4px}.speech-hero p{color:#cfe3e0}.speech-hero-visual{font-size:88px;filter:none}.speech-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:15px 0 27px}.speech-summary span{border:1px solid var(--stroke);border-radius:16px;background:#fff;color:var(--ink);padding:18px;font-size:13px;display:flex;flex-direction:column;gap:5px}.speech-summary strong{font:600 22px Fredoka,sans-serif;color:var(--purple)}.speech-topic-grid{gap:13px}.speech-topic-tile{border-radius:20px;padding:20px;min-height:240px;box-shadow:0 7px 22px #174b490a}.speech-topic-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#fff0d9;font-size:25px}.speech-topic-tile .unit-num{color:var(--purple);background:#e3f3ee;border-radius:50px;padding:6px 10px;margin:0;align-self:flex-end;position:absolute;right:18px;top:22px;font-size:11px}.speech-topic-tile{position:relative;gap:10px}.speech-topic-tile h3{margin:0}.speech-topic-tile p{color:var(--muted);min-height:34px}.speech-topic-tile .btn{background:none;box-shadow:none;padding:5px 0;min-height:auto;color:var(--purple)}.speech-stage-list{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.speech-stage{display:flex;flex-direction:column;align-items:stretch;border-radius:20px;padding:20px;min-height:225px}.speech-stage-number{background:#e7f5ed;color:#087f78;width:44px;height:44px;border-radius:13px;font-size:24px}.speech-stage .btn{margin-top:auto;width:100%;font-size:12px;min-height:42px}.speech-stage .unit-num{color:var(--purple)}.speech-stage h2{margin:10px 0 6px}.speech-stage p{color:var(--muted)}
.course-hero-actions{display:flex;flex-wrap:wrap;gap:10px}.course-hero-stat{position:relative;background:#ffffff17;border:1px solid #ffffff2f;border-radius:22px;padding:24px;min-width:190px}.course-hero-stat strong{font:600 70px/1 Fredoka,sans-serif;color:#ffcc80}.course-hero-stat strong small{font-size:26px;color:#d8e9e5}.course-hero-stat>span{display:block;font-size:10px;letter-spacing:1.4px;font-weight:800;margin:11px 0 18px;color:#d5e8e4}.course-progress{display:block;height:9px;border-radius:20px;background:#d6e9e3;overflow:hidden}.course-progress i{display:block;height:100%;background:#ffcc80;border-radius:20px}.speech-hero .course-hero-stat{z-index:1}.speech-hero>div:first-child{position:relative;z-index:1}.speech-topic-tile .speech-dots{margin-top:auto}.back-link{border:0;background:none;color:#087f78;font-weight:800;font-size:13px;padding:5px 0;margin-bottom:19px}.intro-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.intro-row h1{font:600 clamp(30px,3.25vw,46px)/1.05 Fredoka,"Noto Sans Khmer",sans-serif;margin:0}.intro-row .eyebrow{margin:0 0 8px}.subline{color:var(--muted);margin:8px 0 0;font-size:14px}.level-pill{background:#e4f3ed;color:#087f78;border-radius:999px;padding:10px 15px;font-size:12px;font-weight:800;white-space:nowrap}.speech-stage .course-level-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:800;letter-spacing:.7px;color:#5f7b7a}.speech-stage .course-level-head b{color:#087f78}.speech-stage.locked{opacity:.58}.speech-stage.passed{background:#f1fae7}.speech-stage.next{border:2px solid #44aaa0;background:#fbfffd}
.quest-prompt-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.8fr);gap:16px;margin-top:22px}.guided-card{max-width:none;margin:0;border-radius:24px;padding:clamp(22px,3vw,36px)}.guided-meaning{font-size:15px;color:var(--muted);margin-bottom:14px}.guided-target{background:transparent;border:0;padding:0;color:#087f78;font-size:clamp(34px,5vw,62px);line-height:1.2;margin:10px 0 24px}.guided-label{color:var(--purple);font-size:11px;letter-spacing:1.2px;text-transform:uppercase}.speech-partner{background:#e4f3f1;border:0}.speech-partner strong{color:#126c67}.speech-tip-panel{background:#e0f3bd;border-radius:24px;padding:clamp(22px,3vw,36px);align-self:stretch}.speech-tip-panel .eyebrow{color:#446537}.speech-tip-panel h2{font:600 29px/1.1 Fredoka,"Noto Sans Khmer",sans-serif;margin:8px 0 14px;color:#253e35}.speech-tip-panel p{font-size:13px;line-height:1.6;color:#37564a}.speech-tip-panel .course-score-live{background:#f5ffe9;border-radius:12px;padding:14px;font-weight:800;font-size:13px;margin-top:20px}.speech-tip-panel .course-mini-list{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin-top:20px}.speech-tip-panel .course-mini-list span{background:#f5ffe4;border-radius:8px;padding:8px 10px;font-size:11px;font-weight:700;color:#66734b}.speech-tip-panel .course-mini-list .now{background:#087f78;color:#fff}.speech-tip-panel .course-mini-list .done{color:#37824a}.guided-card .fine-print{color:var(--muted)}.bank-play{background:#d9f2ee;color:#126c67}.speech-filter button.active{background:#087f78;border-color:#087f78}.speech-bank-card strong{color:#087f78}.speech-other .btn{box-shadow:none}
.exam-run-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:800;color:var(--muted)}.exam-run-top .back-link{margin:0}.course-next-row{justify-content:flex-end;max-width:100%;margin-top:17px}.course-next-row .btn:first-child{margin-right:auto}
.course-lesson-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 15px}.course-lesson-nav .btn{min-height:40px;padding:8px 14px;font-size:12px}.quest-prompt-layout{margin-top:0}.legacy-exam-heading{margin-top:34px}.guided-voice .btn[data-speech-action="next"]{min-width:145px}
.site-credit a{color:#087f78}.site-credit{color:var(--muted)}
@media(max-width:1050px){.sidebar{width:205px;flex-basis:205px}.speech-stage-list{grid-template-columns:repeat(2,minmax(0,1fr))}.quest-prompt-layout{grid-template-columns:1fr}}
@media(max-width:850px){.topbar{height:65px;padding:0 16px}.mobile-brand{display:flex;align-items:center;gap:5px;font-size:20px}.mobile-brand .brand-mark{width:34px;height:34px;border-radius:10px;font-size:20px}.stat-chip{padding:7px 9px}.stat-chip small,.avatar{display:none}.language-control>span{display:none}.mobile-nav{border-color:var(--stroke)}.mobile-nav button.active{color:var(--purple)}.mobile-nav button{min-width:0;flex:1;font-size:10px}.mobile-nav .nav-icon{font-size:21px}.mobile-nav button span:last-child{font-size:10px}main{padding:24px 16px 108px}}
@media(max-width:650px){.speech-summary{grid-template-columns:repeat(2,1fr)}.speech-stage-list{grid-template-columns:1fr}.speech-stage{min-height:195px}.speech-stage .btn{margin:0}.speech-hero{min-height:205px}.speech-hero-visual{font-size:54px;min-width:60px}.guided-card{padding:19px}.guided-target{font-size:clamp(30px,8vw,41px)}.speech-tip-panel{padding:20px}.topbar-right{gap:5px}.language-control select{max-width:96px}.stat-chip{gap:3px}}
@media(max-width:650px){.course-lesson-nav{margin:2px 0 10px}.course-lesson-nav .btn{flex:1;min-height:40px}.quest-prompt-layout{margin-top:0}.exam-run-top{font-size:11px}}
/* The oversized decorative star crowds the welcome banner on small screens. */
@media(max-width:850px){.speech-hero::before{content:none}}
@media(max-width:650px){
  .speech-hero{flex-direction:column;align-items:stretch;gap:20px}
  .speech-hero>div:first-child{min-width:0}
  .course-hero-actions{display:grid;grid-template-columns:1fr}
  .course-hero-actions .btn{width:100%;min-width:0}
  .speech-hero .course-hero-stat{min-width:0;padding:18px}
  .speech-hero .course-hero-stat strong{font-size:52px}
  .language-control select{padding:8px 20px 8px 8px}
}
.voice-status{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:1000;max-width:min(92vw,560px);padding:13px 18px;border:2px solid #fff;border-radius:16px;background:#173e46;color:#fff;box-shadow:0 12px 34px #173e464d;text-align:center;font-weight:700;font-size:14px;line-height:1.4}
.voice-status[hidden]{display:none}
@media(max-width:700px){.voice-status{bottom:82px;width:calc(100vw - 28px)}}
