/* Boki: soft leaf greens and warm, quiet surfaces. */
:root{--bg:#f7f8f5;--paper:#fff;--ink:#304038;--muted:#7b857c;--line:#e2e8de;--sage:#eef5e9;--green:#70ae79;--accent:#8cbf82;--red:#ab665a;--red-bg:#fbf0ec}
body{background:var(--bg);color:var(--ink)}.sidebar{background:#fcfdf9;border-color:#e4e9df}.boki-brand{gap:7px;font-size:29px;color:#476b4a;letter-spacing:-1px;align-items:center}.boki-brand>img{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 4px 5px #3b653318)}.boki-brand .brand-sub{font-size:7px;letter-spacing:1.1px;color:#8b9785;margin-top:3px}.side-label{color:#8e998b;margin-top:37px}.section-button{color:#788373}.section-button .num{color:#a1af99}.section-button strong{color:#61705e}.section-button small{color:#91998a}.section-button:hover:not(.active){background:#f0f5eb;border-color:#e1ead9}.section-button.active{background:#e7f0df;color:#3e6040;border-color:#d5e3c9;box-shadow:0 3px 12px #5e80500a}.section-button.active strong{color:#3c5b3e}.section-button.active .num{color:#659c64}.section-button.active small{color:#87977c}
.boki-companion{margin:24px 8px 18px;padding:14px 10px 18px;text-align:center;border:1px solid #e5eadc;border-radius:22px;background:#e9f2d9}.boki-companion-art{height:142px;display:flex;align-items:center;justify-content:center}.boki-companion-art img{width:156px;height:156px;object-fit:contain;filter:drop-shadow(0 8px 8px #6b885e19);transition:transform .3s}.boki-companion:hover img{transform:rotate(-4deg) translateY(-3px)}.boki-companion-copy strong{font-size:13px;font-weight:700;color:#64775b}.boki-companion-copy p{margin:5px 0 0;font-size:11px;color:#99a18b}.side-link{color:#86927f}.local-note{color:#a0a996}.topbar{border-color:#e4e9df}.eyebrow{color:#929b8b}.topbar .text-button{background:#fdfefa;color:#6d7b64;border-color:#e2e8da}.icon-button{background:#fff;color:#7d8d73;border-color:#e0e7d8}.heading h1{color:#344638}.heading p{color:#8c9586}.section-kicker{color:#8b997f}.section-kicker:before{background:#94ba7b;box-shadow:0 0 0 4px #edf3e6}
.exam-launch{background:#eef3e6;border:1px solid #dfe7d3;color:#506a45;box-shadow:none}.exam-launch strong{color:#526a48}.exam-launch p{color:#8d9b80}.primary,.navigation #next,.exam-navigation .exam-next{background:#80b780;color:#203f28;border-color:#79ad76;box-shadow:0 3px 0 #63955c}.primary:hover:not(:disabled),.navigation #next:hover:not(:disabled),.exam-navigation .exam-next:hover:not(:disabled){background:#8bc18b;box-shadow:0 4px 0 #63955c,0 5px 17px #729b5c13}.primary:active:not(:disabled),.navigation #next:active:not(:disabled){box-shadow:0 1px 0 #63955c}.primary:disabled{background:#ecf0e7;color:#a3ad99;border-color:#ecf0e7;box-shadow:none}.secondary{background:#fafcf6;color:#70835f;border-color:#e0e8d4}.secondary:hover{background:#edf3e5}.text-button{color:#8b977f}.text-button:hover:not(:disabled){color:#54734c}.stats>div{border-color:#e5eadd;background:#fefefa}.stat-label{color:#8a957e}.stat-number{color:#52684a}.stat-denominator{color:#afbaa5}.stat-foot{color:#a2ad96}.progress-track{background:#e9efdf}.progress-track span{background:#8cb77b}.source-row label{color:#97a088}.source-row select{background:#fff;color:#758367;border-color:#dfe7d5}.type-tabs{background:#ecf1e6;border-color:#e5ebdc}.type-tab{color:#929f85}.type-tab.active{background:#fffef9;color:#5e7551;box-shadow:0 2px 5px #5c75440a}.type-tab span{background:#e2e9d8;color:#9aaa8c}.type-tab.active span{background:#e6f0db;color:#789b5c}.check-label{color:#929d86}.check-label input{accent-color:#7ba76b}.question-card{background:#fffefa;border-color:#e3e8db;box-shadow:0 4px 20px #65834803}.card-meta{color:#99a38e}.question-card h2{color:#40553e}.answer-input{background:#fcfdf8;color:#52664b;border-color:#dfe7d4}.answer-input:focus{background:#fff;border-color:#91b57a;outline-color:#edf3e4}.answer-input::placeholder{color:#b1bba5}.hint-actions button{color:#99a98a}.hint-text{color:#83a26b}.option{background:#fdfef9;border-color:#e1e8d8;color:#697f5b}.option:hover:not(:disabled){background:#f5f9ee;border-color:#b9cda5}.option .letter{background:#fafcf5;color:#a0b08e;border-color:#e0e8d4}.option.selected,.option.right{background:#eef6e5;border-color:#a6c38e;box-shadow:0 0 0 1px #b3cd9b15}.option.selected .letter{background:#8cad72;border-color:#8cad72;color:#fff}.option.right .letter{color:#789b5e;background:#e9f3de;border-color:#c5dab1}.option.wrong{border-color:#debaab;background:#fcf3ee}.multi-help{color:#9aa88d}.feedback{background:#f0f6e9;border-color:#dae7cc}.feedback.bad{background:#fcf3ed;border-color:#ead7c9}.feedback.neutral{background:#f6f6ef;border-color:#e6e6d8}.feedback-title{color:#69865a}.feedback.bad .feedback-title{color:#a27462}.feedback .solution{color:#5a754c}.feedback p{color:#8c9b7e}.explanation>strong,.contrast>strong{color:#748a65}.contrast{border-color:#e0e7d6}.self-buttons .secondary{background:#f7faef}.solution-label{color:#a1ac95}.navigation{background:#fffef8f5;border-color:#e1e8d7;box-shadow:0 7px 28px #7290570b}.navigation .nav-button{color:#8da079}.navigation>span{color:#a6b298}.question-map{border-color:#e5eadc}.question-map summary{color:#94a285}.map-legend{color:#a9b69b}.map-legend i{background:#a0bf83}.map-legend i:nth-of-type(2){background:#d7b29e}.map-button{color:#a1b08e;border-color:#dfe8d2;background:#fcfdf7}.map-button.current{outline-color:#91ae75}.map-button.correct,.exam-map .filled{background:#eaf3dd;border-color:#c6dcb0;color:#8aa569}footer{color:#afbaa3;border-color:#e5ebdc}footer button{color:#9aa98b}.tag{background:#eff5e7;color:#8aa26d}dialog{background:#fffefa;border-color:#e1e7d7}dialog::backdrop{background:#4f60454d}.dialog-head h2{color:#5b7150}.dialog-head+p,.info-content p{color:#95a187}.info-content h3{color:#7a8f68}.search{background:#fafcf4;color:#778d65;border-color:#e0e8d3}.overview-meta{color:#9cab8c}.overview-item details{color:#8a9d78}.overview-item .open-question{color:#86a76a}.empty-state p{color:#a1ae91}.empty-icon{color:#a7c38e}#toast{background:#73905e;color:#fff;box-shadow:0 8px 30px #78915e22}.exam-toolbar{background:#fafcf4;border-color:#dfe8d2}.exam-timer{color:#78945f}.exam-facts strong{background:#f0f6e7;color:#88a36b;border-color:#dfeaca}.exam-result,.exam-review{border-color:#e3e9d8;background:#fffefa}.exam-result h2,.exam-review-heading,.exam-subtotals strong{color:#6c8757}.points-full{color:#8caa70}.exam-review-list .review-correct{background:#eff6e6;border-color:#d1e3ba}
.answer-reward{padding:12px 19px 12px 12px;min-height:112px;background:#eaf3de;border-color:#d3e2bc;overflow:hidden;gap:14px}.boki-cheer{display:block;width:96px;height:96px;flex:0 0 96px;animation:boki-cheer .8s cubic-bezier(.3,.8,.3,1) both;transform-origin:50% 90%;filter:drop-shadow(0 5px 4px #71864712)}.boki-cheer img{width:100%;height:100%;object-fit:contain}.reward-copy strong{color:#6f8957;font-size:18px}.reward-copy>span{color:#97a57f}.reward-particles{left:60px}.reward-particles i{background:#a9c58a}.reward-particles i:nth-child(2n){background:#79a877}.reward-particles i:nth-child(3n){background:#e1d491}.answer-reward.milestone{background:#f5eed0;border-color:#e0d7ae}.milestone .reward-copy strong{color:#9a965c}.milestone .boki-cheer{animation:boki-celebrate 1.1s ease both}
@keyframes boki-cheer{0%{transform:translateY(12px) scale(.85) rotate(-8deg);opacity:0}35%{transform:translateY(-7px) scale(1.04) rotate(5deg);opacity:1}65%{transform:translateY(0) rotate(-4deg)}100%{transform:translateY(0) scale(1) rotate(0)}}
@keyframes boki-celebrate{0%{transform:scale(.8) rotate(-8deg)}25%{transform:translateY(-10px) rotate(6deg)}50%{transform:translateY(0) rotate(-6deg)}75%{transform:translateY(-5px) rotate(4deg)}100%{transform:none}}
@media(max-height:820px) and (min-width:761px){.boki-companion{margin-top:13px;padding:8px 8px 13px}.boki-companion-art{height:100px}.boki-companion-art img{width:115px;height:115px}.side-label{margin-top:24px}}
@media(max-width:760px){.sidebar{background:#fcfdf8}.boki-brand{font-size:27px;gap:6px}.boki-brand>img{width:54px;height:54px}.boki-brand .brand-sub{font-size:7px}.boki-companion{display:none}.section-button:not(.active){background:#f1f5ea;border-color:#e6ecdc}.section-button.active{background:#e7f0dd;border-color:#d7e4c9}.answer-reward{gap:9px;padding:10px;min-height:94px}.boki-cheer{width:76px;height:76px;flex-basis:76px}.reward-copy strong{font-size:15px}.reward-copy>span{font-size:11px;line-height:1.5}}
@media(prefers-reduced-motion:reduce){.boki-cheer,.milestone .boki-cheer{animation:none!important}.boki-companion:hover img{transform:none}}
/* Quiet colors with readable foreground contrast. */
.heading p,.stat-label,.source-row label,.check-label,.card-meta,.multi-help,.hint-actions button,.navigation .nav-button,.question-map summary,.side-link,.topbar .text-button{color:#75826b}.stat-foot,.local-note,.overview-meta,.eyebrow,.section-kicker,.brand-sub,.map-legend{color:#7c8873}.exam-launch p{color:#758568}.feedback p,.dialog-head+p,.info-content p,.overview-item details{color:#68795e}.explanation>strong,.contrast>strong,.solution-label{color:#6b7e5f}.option{color:#596f4e}.reward-copy strong{color:#52763d}.reward-copy>span{color:#738764}.boki-companion-copy p{color:#859473}.type-tab{color:#7b8c6f}.section-button small{color:#7f8f73}.section-button.active small{color:#798b6a}
/* Soft answer hover and tactile next-question buttons. */
@media(hover:hover) and (pointer:fine){
 .option:hover:not(:disabled):not(.selected):not(.right):not(.wrong){background:#edf6e6;border-color:#b4cfa0;box-shadow:0 0 0 1px #bfd7ae26}
 .option:hover:not(:disabled):not(.selected):not(.right):not(.wrong) .letter{background:#e3efd9;border-color:#c6dcb5;color:#6b8e55}
 .navigation #next:hover:not(:disabled),.exam-navigation .exam-next:hover:not(:disabled){transform:translateY(2px);background:#87b986;box-shadow:0 1px 0 #63955c}
}
.navigation #next:active:not(:disabled),.exam-navigation .exam-next:active:not(:disabled){transform:translateY(3px);box-shadow:0 0 0 #63955c}
@media(prefers-reduced-motion:reduce){.navigation #next:hover:not(:disabled),.navigation #next:active:not(:disabled),.exam-navigation .exam-next:hover:not(:disabled),.exam-navigation .exam-next:active:not(:disabled){transform:none}}
/* A quieter interface and expressive Boki feedback. */
.source-row select{appearance:none;-webkit-appearance:none;background-image:none;padding-right:16px;cursor:pointer}
.empty-boki img{width:128px;height:128px;object-fit:contain;display:block;margin:0 auto 15px}.empty-state h2{font-size:22px}
.boki-support{display:flex;align-items:center;gap:16px;margin:12px 0 18px;padding:9px 14px;background:#fff9f3;border:1px solid #efdfcd;border-radius:15px}.boki-support>img{width:88px;height:88px;flex-shrink:0;object-fit:contain}.boki-support>div{display:grid;gap:5px}.boki-support strong{font-size:15px;color:#946e56}.boki-support span{font-size:12px;color:#9b8473;line-height:1.6}
.answer-reward.on-fire{background:#fff1d7;border-color:#e6d6b3}.on-fire .reward-copy strong{color:#967036}.on-fire .reward-copy>span{color:#99835d}.on-fire .boki-cheer{animation:boki-celebrate 1.1s ease both;width:108px;height:108px;flex-basis:108px}.on-fire .reward-particles i{background:#d6b474}.on-fire .reward-particles i:nth-child(2n){background:#a9ba78}
@media(hover:hover) and (pointer:fine){.primary:hover:not(:disabled),.navigation #next:hover:not(:disabled),.exam-navigation .exam-next:hover:not(:disabled){transform:translateY(2px);background:#87b986;box-shadow:0 1px 0 #63955c}}
.primary:active:not(:disabled),.navigation #next:active:not(:disabled),.exam-navigation .exam-next:active:not(:disabled){transform:translateY(3px);box-shadow:none}
@media(max-width:760px){.boki-support{gap:10px;padding:9px}.boki-support>img{width:70px;height:70px}.boki-support strong{font-size:14px}.boki-support span{font-size:11px}.on-fire .boki-cheer{width:86px;height:86px;flex-basis:86px}}
@media(prefers-reduced-motion:reduce){.primary:hover:not(:disabled),.primary:active:not(:disabled),.on-fire .boki-cheer{transform:none;animation:none!important}}
/* Larger leaning wordmark, with a fresher leaf-green accent. */
:root{--green:#65b66a;--accent:#65b66a}
.boki-wordmark{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;letter-spacing:normal}.boki-wordmark>img{width:220px;max-width:100%;height:110px;object-fit:contain;filter:none}.boki-wordmark .brand-sub{font-size:8px;letter-spacing:1.25px;display:block;margin:0 0 0 13px;color:#819378}.sidebar>.local-note{margin-top:auto;padding-top:24px}.side-label{margin-top:34px}
.primary,.navigation #next,.exam-navigation .exam-next{background:#68b96f;color:#183e21;border-color:#61ac64;box-shadow:0 3px 0 #438e49}.section-button.active{background:#e2f1dc;border-color:#c9e3bd}.section-button.active .num{color:#529e50}.section-kicker:before{background:#6db769;box-shadow:0 0 0 4px #e8f4e2}.progress-track span{background:#72bc68}.type-tab.active span{background:#dcf0d2;color:#519441}.option.selected,.option.right{background:#e9f7df;border-color:#8ac56b}.option.selected .letter{background:#72b557;border-color:#72b557}.map-button.correct,.exam-map .filled{background:#dff1d0;border-color:#abd28a;color:#609b3d}.map-legend i{background:#77b951}.answer-reward:not(.on-fire){background:#e7f4d8;border-color:#c5e2a8}.boki-support{background:#fff9f3}
@media(hover:hover) and (pointer:fine){.primary:hover:not(:disabled),.navigation #next:hover:not(:disabled),.exam-navigation .exam-next:hover:not(:disabled){background:#72c178;box-shadow:0 1px 0 #438e49;transform:translateY(2px)}.option:hover:not(:disabled):not(.selected):not(.right):not(.wrong){background:#eaf7df;border-color:#a3cf83}}
.primary:active:not(:disabled),.navigation #next:active:not(:disabled),.exam-navigation .exam-next:active:not(:disabled){box-shadow:none;transform:translateY(3px)}
@media(max-width:1100px) and (min-width:761px){.boki-wordmark>img{width:190px;height:100px}.boki-wordmark .brand-sub{font-size:7px;margin-left:7px}}
@media(max-width:760px){.boki-wordmark{width:220px;gap:1px}.boki-wordmark>img{width:210px;height:105px}.boki-wordmark .brand-sub{font-size:7px;margin-left:12px}.sidebar{padding-top:16px}.sidebar>.local-note{display:none}}
@media(prefers-reduced-motion:reduce){.primary:hover:not(:disabled),.primary:active:not(:disabled),.navigation #next:hover:not(:disabled),.navigation #next:active:not(:disabled),.exam-navigation .exam-next:hover:not(:disabled),.exam-navigation .exam-next:active:not(:disabled){transform:none}}
/* Compact feedback: one status line, with the mascot already preloaded. */
.feedback-with-boki{display:flex;align-items:center;gap:11px;min-height:52px;margin:-3px 0 8px}.feedback-with-boki img{width:52px;height:52px;object-fit:contain;flex-shrink:0}.feedback.bad{padding-top:15px}.feedback.bad .solution{margin-top:8px}
@media(max-width:760px){.feedback-with-boki{gap:9px}.feedback-with-boki img{width:46px;height:46px}.feedback-with-boki{min-height:46px}}
/* Pill tabs with a single sliding highlight. */
.type-tabs{position:relative;isolation:isolate;border-radius:40px;gap:4px;padding:5px;--tab-x:5px;--tab-width:0px}
.type-tabs:before{content:'';position:absolute;top:5px;left:0;height:calc(100% - 10px);width:var(--tab-width);transform:translateX(var(--tab-x));border-radius:32px;background:#fffefa;box-shadow:0 2px 6px #516b3c08;transition:transform .24s cubic-bezier(.22,.7,.2,1),width .24s cubic-bezier(.22,.7,.2,1);z-index:-1;pointer-events:none;opacity:0}
.type-tabs.indicator-ready:before{opacity:1}.type-tab{position:relative;border-radius:32px;z-index:0}.type-tab.active{background:#fffefa;box-shadow:none}.indicator-ready .type-tab.active,.indicator-ready .type-tab:hover:not(:disabled){background:transparent;box-shadow:none}.type-tab span{border-radius:9px}
.source-row select{min-height:32px;padding:6px 12px;font-size:11px;width:auto;max-width:100%;border-radius:30px}
.section-button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;padding:17px 18px;min-height:86px}.section-button .section-label{text-transform:uppercase;font-size:11px;letter-spacing:1.1px;font-weight:700;color:#879a79}.section-button strong{font-size:14px;line-height:1.45;font-weight:700}.section-button.active .section-label{color:#61984e}.section-button.active strong{color:#45643b}
@media(max-width:1100px) and (min-width:761px){.section-button{padding:15px 13px}.section-button strong{font-size:13px}}
@media(max-width:760px){.type-tabs{border-radius:30px;padding:4px;gap:2px}.type-tabs:before{top:4px;height:calc(100% - 8px);border-radius:26px}.type-tab{border-radius:26px}.source-row select{min-height:31px;padding:6px 11px;font-size:11px}.section-button{gap:4px;min-height:66px;padding:11px 9px;align-items:flex-start}.section-button .section-label{font-size:8px;letter-spacing:.65px}.section-button strong{font-size:10px;line-height:1.45}}
@media(prefers-reduced-motion:reduce){.type-tabs:before{transition:none}}
#bank:has(option[value="original"]:checked){width:124px}
/* A checked wrong choice always keeps its error color over selection styling. */
.option.wrong{background:#fcf0eb;border-color:#d9aaa0;box-shadow:none}.option.wrong .letter{background:#f5e0d8;border-color:#dfb9ad;color:#a46b5c}
