/* Cambodia flag inspired palette: royal blue, crimson and white. */
:root{--ink:#142754;--muted:#62718e;--paper:#f6f8ff;--purple:#173da6;--lime:#df203c;--stroke:#dbe3f4;--shadow:0 20px 50px #10275e1a}
body{background:var(--paper)}
.sidebar{background:#092871;border-top:7px solid #d7193f}
.brand-mark,.mobile-brand .brand-mark{background:#d7193f;color:#fff;box-shadow:inset 0 0 0 2px #fff5}
.brand-accent{color:#fff}.brand small{color:#d0dcff}.side-label{color:#a7b9e5}
.nav{color:#d5def4}.nav:hover{background:#173d9c}.nav.active{background:#d7193f;color:#fff}.nav>span,.nav.active>span{color:#fff}
.nav b{background:#ffffff2e}.mini-progress{background:#133580;border-color:#4564a8}.mini-progress>div:first-child{color:#d2ddf7}.mini-progress b{color:#fff}.track{background:#3656a0}.track span{background:#e82b47}.mini-progress small{color:#bfceed}.sidebar-note>span{background:#d7193f;color:white}.sidebar-note small{color:#c6d2ed}
.topbar{background:#fff;border-top:5px solid #d7193f;border-bottom-color:#dbe3f4}.stat-chip:nth-child(2) strong{color:#c81832}.avatar{background:#d7193f;color:#fff}.mobile-brand>span:last-child{color:#d7193f}
.eyebrow{color:#c81935}.level-pill{background:#e7eeff;color:#173d9e}.btn-primary{background:#d7193f;color:#fff;box-shadow:0 5px 0 #a7122d}.btn-primary:active{box-shadow:0 1px 0 #a7122d}.btn-light{background:#e8efff;color:#173d9e}.btn-dark{background:#102e7a;box-shadow:0 5px 0 #071c55}
.course-hero{background:#0b2f83;border-top:8px solid #d7193f;border-bottom:8px solid #d7193f}.course-hero:before{color:#ffffff15}.course-hero:after{content:'';position:absolute;right:0;top:0;width:10px;height:100%;background:linear-gradient(#fff 0 20%,#d7193f 20% 80%,#fff 80%)}.course-hero .eyebrow{color:#fff}.course-hero-stat{background:#ffffff1d;border-color:#ffffff55}.course-hero-stat strong,.course-hero-stat strong small{color:#fff}.course-hero-stat .course-progress{background:#ffffff4d}.course-progress i,.course-progress em{background:#d7193f}.course-stages span{color:#d7193f}.course-subject:hover{border-color:#3e68bd}.course-subject-icon{background:#e8efff;color:#173d9e}.course-subject .course-progress{background:#e5ebf6}.course-subject .course-progress em{background:#d7193f}.course-subject>b:last-child{color:#173d9e}.course-level.next{border-color:#d7193f;background:#fffafb}.course-level.passed{background:#eef4ff}.course-level-head b{color:#bd1730}.course-level-khmer{color:#183e9b}.course-prompt-card h1,.course-bank-card strong{color:#173d9e}.course-roman,.course-bank-card span{color:#be1731}.course-side-panel{background:#e5edff}.course-npc{background:#edf2ff}.course-npc strong{color:#173d9e}.course-npc small{color:#6a79a1}.course-mini-list span{background:#f7f9ff;color:#5d6e90}.course-mini-list .now{background:#d7193f;color:white}.course-mini-list .done{color:#173d9e}.course-score-live{background:#fff}.course-write{border-top-color:#b9c9ed}.course-write input{border-color:#c4d2ed}.course-speak-now,.course-voice-feedback.matched{background:#e8f1ff;color:#173d9e}.course-voice-feedback.uncertain{background:#fff0f2;color:#a3152c}.course-bank-card.done{background:#edf3ff}
.placement-hero{background:#123992}.placement-copy .eyebrow{color:#fff}.placement-art{background:#d7193f}.orbit{border-color:#ffffff70}.hero-khmer{color:#fff}.float-tile{background:#fff;color:#173d9e}.world-card,.hero-card,.quest-card,.topic-card,.course-subject,.course-level{border-color:var(--stroke)}
.letter-stage{background:#e8efff}.word-stage{background:#edf3ff}.phrase-stage{background:#fff0f2}.glyph{color:#173d9e;text-shadow:0 12px 0 #cfdaee}.stage-spark{color:#d7193f}.stage-series{color:#173d9e}.roman{color:#173d9e}.coach-panel{background:#e8efff}.coach-panel:after{color:#cadaf5}.coach-tip{background:#fff}.coach-panel .heard-line{color:#173d9e}.letter-bubble{background:#e7eeff;color:#173d9e}.letter-bubble.current{background:#d7193f}.letter-bubble.learned{background:#e4eeff;color:#173d9e}.answer:hover:not(:disabled){border-color:#173d9e;background:#eef3ff}.answer.correct{border-color:#457cc4;background:#e7f0ff}.quest-feedback{color:#173d9e}.exam-teaser{background:#0b2f83}.exam-teaser button{background:#fff;color:#173d9e}
.topic-hero,.dictionary-hero{background:#0b2f83;border-top:6px solid #d7193f}.topic-hero .eyebrow,.dictionary-hero .eyebrow{color:#fff}.topic-hero-art{background:#d7193f}.topic-icon{color:#173d9e}.topic-model-glyph{color:#173d9e}.topic-mobile-target,.speaking-exam-mobile-model{background:#e8efff!important}.topic-mobile-target strong,.speaking-exam-mobile-model span{color:#173d9e!important}.topic-feedback.correct,.speaking-exam-feedback.right{background:#e7f0ff;color:#173d9e}.focus-tab.selected{border-color:#d7193f;color:#c81832}.topic-mini-map .current{background:#d7193f;color:#fff}
.exam-feature.checkpoint,.exam-feature.review,.exam-feature.writing-exam,.exam-feature.speaking-exam-card{background:#e7eeff}.speaking-exam-card .exam-kicker{color:#c81832}.speaking-exam-card .btn-primary{background:#d7193f;box-shadow:0 5px 0 #a7122d}.speaking-exam-prompt,.speaking-exam-coach{border-color:#dbe3f4}.speaking-exam-orb{background:#d7193f;color:white;box-shadow:0 5px 0 #a7122d}.speaking-exam-coach{background:#e7eeff}.speaking-exam-model{color:#173d9e}.speaking-exam-coach strong{color:#173d9e}.speaking-exam-feedback.right{color:#173d9e}
.mission-card-icon,.mission-scene-label,.mission-page .eyebrow{color:#d7193f}.mission-builder,.mission-scene{border-color:#dbe3f4}.npc-bubble{background:#e8efff}.mission-bank button,.mission-slot button{background:#e8efff;color:#173d9e}.mission-bank button:hover{background:#d7e4ff}.mission-feedback.correct{background:#e8f1ff;color:#173d9e}
.dictionary-hero:after{color:#ffffff25}.dictionary-toolbar button.selected{background:#e6edff;color:#173d9e;border-color:#9db7ef}.dictionary-card h2{color:#173d9e}.dictionary-card-top button{background:#e8efff;color:#173d9e}.dictionary-hear{background:#e8efff;color:#173d9e}.dictionary-review{background:#f2f6ff;border-color:#b6c9ef}.dictionary-khmer summary{color:#173d9e}.rewards-hero>div{background:#e7eeff}.rewards-hero>div:nth-child(2){background:#fff0f2}.rewards-hero>div:nth-child(3){background:#e7eeff}
.voice-status{background:#0b2f83;border:2px solid #fff}.voice-progress{background:#ffffff50}.voice-progress>span{background:#e82b47}.toast{background:#0b2f83}
button:focus-visible,a:focus-visible,input:focus-visible{outline-color:#d7193f}

/* Keep the flag accents solid around rounded cards and their buttons. */
.course-hero,.placement-hero{border:5px solid #d7193f}
.topic-hero,.dictionary-hero{border:5px solid #d7193f}
.course-hero::before,.course-hero::after{display:none}
.placement-actions .btn-primary,.topic-hero .btn-primary{background:#d7193f;color:#fff;box-shadow:0 5px 0 #a7122d}
.placement-actions .btn-primary:active,.topic-hero .btn-primary:active{box-shadow:0 1px 0 #a7122d}
