@font-face{font-family:Nunito;src:url('assets/nunito-sans-latin-wght-normal.woff2')}*{box-sizing:border-box}body{margin:0;background:#faf7ef;color:#24384a;font-family:Nunito,Arial,sans-serif;font-size:15px}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #698f7b;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2,.serif{font-family:Georgia,serif;font-weight:500}h1{font-size:clamp(34px,4vw,57px);line-height:1.08;letter-spacing:-2px}h2{font-size:29px;letter-spacing:-.6px}h3{font-size:18px;margin-bottom:8px}p{line-height:1.65}.sidebar{width:250px;position:fixed;inset:0 auto 0 0;background:#f4f3e9;border-right:1px solid #e3e5d9;padding:37px 24px;display:flex;flex-direction:column}.brand img{width:170px;height:45px;object-fit:contain}.profile{display:flex;align-items:center;gap:11px;margin:39px 0 31px}.profile small{display:block;font-size:10px;margin-top:5px;color:#738075}.avatar{display:grid;place-items:center;width:38px;height:38px;background:#dbe9d9;border-radius:50%;font-size:25px}nav{display:grid;gap:8px}nav button{border:0;background:transparent;text-align:left;padding:14px 13px;border-radius:13px;font-weight:650;font-size:13px;display:flex;align-items:center;gap:12px}nav button span{font-size:22px;width:22px;text-align:center}nav button:hover{background:#e8ecdf}nav button.active{background:#dbe7d7;color:#314b38}.sidebar-bottom{margin-top:auto;padding-top:36px}.kind-note{font-family:Georgia,serif;line-height:1.7;color:#6e806c;font-size:18px;padding:0 12px 22px}.kind-note strong{font-weight:400;color:#344b3a}.parent-link,.text-button{border:0;background:transparent;text-align:left;padding:12px;font-size:12px}.parent-link{border-top:1px solid #dde0d4;width:100%;font-weight:700}.text-button{color:#718074;font-size:11px}main{margin-left:250px;padding:0 49px 25px;max-width:1600px}.topbar{display:flex;align-items:center;gap:18px;height:102px;color:#738078;font-size:12px}.demo-pill{border:1px solid #dddcd2;border-radius:20px;padding:7px 12px;font-size:10px;color:#5c6a62}.demo-pill i{display:inline-block;background:#6d957c;width:6px;height:6px;border-radius:50%;margin-right:5px}.xp-pill{margin-left:auto;color:#56734e;background:#e8eddf;border-radius:30px;padding:10px 15px;font-size:12px}.hero{border-radius:29px;background:radial-gradient(ellipse at 84% 18%,#e0d8e8 0%,transparent 53%),linear-gradient(120deg,#eee9da,#e0e8d8 66%,#e9dced);padding:43px 42px;min-height:332px;position:relative;overflow:hidden;display:flex;align-items:center}.hero-copy{width:63%;position:relative;z-index:2}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;font-weight:800;margin-bottom:19px;color:#58725c}.hero p{color:#607062;max-width:390px;margin-bottom:22px;font-size:14px}.button{border:0;border-radius:12px;padding:13px 18px;font-weight:750;font-size:13px;display:inline-flex;gap:15px;align-items:center}.primary{background:#24384a;color:white}.primary:hover{background:#375268}.secondary{background:#f3f1e6;border:1px solid #e0e1d7}.button:disabled{opacity:.5;cursor:default}.tomo{position:relative;width:310px;aspect-ratio:1;flex-shrink:0}.tomo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.hero .tomo{position:absolute;width:370px;right:0;bottom:-14px;transform:rotate(4deg)}.hero-bubble{position:absolute;right:41px;top:35px;font-size:11px;background:#fff9eedd;padding:10px 13px;border-radius:15px 15px 15px 3px;z-index:2}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:35px 0 18px}.section-heading h2{margin:0}.section-heading small{color:#7c8578}.subtle{color:#758175;font-size:13px}.today-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:23px}.card{background:#fffdf7;border:1px solid #e7e5db;border-radius:22px;padding:25px}.mission{display:flex;gap:15px;align-items:center;padding:19px 0;border-bottom:1px solid #ecebdf}.mission:first-of-type{padding-top:8px}.mission:last-of-type{border-bottom:0;padding-bottom:3px}.subject-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:21px;background:#e8e2f0;flex-shrink:0}.subject-icon.peach{background:#fae6d7}.subject-icon.green{background:#e0ebdb}.mission-copy{flex:1}.mission-copy strong{display:block;font-size:14px;margin-bottom:5px}.mission-copy small{font-size:11px;color:#778174}.mission button{border:1px solid #dde1d4;background:transparent;border-radius:50%;width:32px;height:32px;font-size:17px}.mission.done strong{text-decoration:line-through;color:#81907c}.mission.done button{background:#dce9d4}.revision-card{background:#eee9f2;position:relative;overflow:hidden}.revision-card .eyebrow{color:#8b7d9b}.revision-card h3{font-family:Georgia,serif;font-size:27px;font-weight:500;margin:20px 0 14px}.revision-card p{font-size:13px;color:#716b7f}.revision-card .button{background:#fffdf7;margin-top:8px}.progress-panel{display:flex;gap:18px;align-items:center;margin-top:23px;background:#edf0e1;padding:20px 25px;border-radius:20px}.sprout{font-size:32px}.progress-panel strong{font-size:13px}.progress-panel p{margin:4px 0 0;font-size:12px;color:#74806c}.progress-bar{height:5px;background:#d8dfcc;border-radius:5px;margin-top:11px;overflow:hidden}.progress-bar div{background:#759268;height:100%;transition:width .3s}.progress-panel .progress-content{flex:1}.chip{font-size:10px;border-radius:15px;background:#fffdf7;padding:7px 12px;color:#607451}.page-title{margin-top:18px;margin-bottom:28px}.page-title h1{font-size:43px;margin-bottom:12px}.two-col{display:grid;grid-template-columns:1.6fr 1fr;gap:24px}.chat{display:flex;flex-direction:column;gap:14px;min-height:220px}.bubble{padding:17px 20px;border-radius:17px;background:#edf0e2;max-width:88%;line-height:1.65;font-size:14px}.bubble.user{background:#eee7f2;margin-left:auto}.chat-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.chat-actions button{border:1px solid #d6dfcc;background:#fffdf7;border-radius:14px;padding:12px 16px;font-size:12px}.step-list{list-style:none;padding:0;margin:20px 0}.step-list li{padding:14px 0;border-bottom:1px solid #e7e7dc;display:flex;align-items:center;gap:12px;font-size:13px}.step-dot{width:24px;height:24px;border-radius:50%;background:#eee8f2;display:grid;place-items:center;font-size:11px}.step-list .complete .step-dot{background:#d6e6d0}.tip{background:#faeddf;border-radius:18px;padding:19px;font-size:12px;line-height:1.6;margin-top:20px}.quiz{margin-top:23px;padding:23px;background:#f2eee0;border-radius:18px}.answer-options{display:flex;gap:10px;flex-wrap:wrap}.answer-options button{background:white;border:1px solid #ddd;border-radius:10px;padding:12px 22px}.answer-options button.chosen{background:#dce9d4;border-color:#709367}.result{min-height:26px;margin-top:15px;font-weight:650}.flashcard{width:100%;min-height:240px;background:#eee8f2;border:0;border-radius:22px;font-family:Georgia,serif;font-size:29px;padding:35px;line-height:1.5}.flashcard small{display:block;font-family:Nunito,sans-serif;font-size:11px;margin-top:22px}.center{text-align:center}.center .tomo{margin:auto;width:330px}.check-row{display:flex;align-items:center;gap:12px;padding:18px 0;border-bottom:1px solid #e7e7dc}.check-row input{width:19px;height:19px;accent-color:#759268}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:24px}.stat{padding:25px;border-radius:20px;background:#edf0e1}.stat strong{font-family:Georgia,serif;font-weight:400;font-size:36px;display:block}.stat span{font-size:12px;color:#72806e}.warning{background:#fae9da;padding:17px 20px;border-radius:14px;font-size:12px;line-height:1.6;margin-bottom:22px}.upload-label{display:inline-block;border:1px dashed #9baa91;border-radius:12px;padding:14px;cursor:pointer;font-size:12px}.preview{max-width:100%;max-height:180px;border-radius:12px;margin-top:18px}.icon-button{border:0;background:transparent;font-size:25px}dialog{border:1px solid #e2e3d8;border-radius:25px;padding:25px 30px;max-width:460px;width:90%;color:#24384a;background:#faf7ef}dialog::backdrop{background:#24384a70;backdrop-filter:blur(4px)}dialog .section-heading{margin:0 0 23px}dialog h2{font-size:25px}label{display:block;font-size:12px;font-weight:700}dialog input,dialog select{display:block;width:100%;margin:9px 0 20px;border:1px solid #d9ddce;border-radius:10px;padding:12px;background:#fffdf7}footer{font-size:10px;color:#8b9387;text-align:center;margin-top:28px;line-height:1.8}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#24384a;color:white;padding:14px 22px;border-radius:14px;font-size:13px;z-index:5;display:none}#toast.show{display:block}.mini{font-size:11px;color:#7b8476}.mobile-only{display:none}@media(min-width:1500px){main{margin-right:auto}}@media(max-width:1100px){.sidebar{width:210px;padding:30px 17px}main{margin-left:210px;padding:0 28px 25px}.hero{padding:34px 28px}.hero .tomo{width:290px;right:-22px}.hero-copy{width:66%}.hero-bubble{right:20px}.today-grid,.two-col{grid-template-columns:1.3fr 1fr}.card{padding:20px}h1{font-size:43px}}@media(max-width:760px){.sidebar{inset:auto 0 0;width:100%;height:76px;z-index:4;padding:7px 8px;background:#f7f6edee;backdrop-filter:blur(15px)}.brand,.profile,.sidebar-bottom{display:none}nav{display:flex;justify-content:space-around;gap:0}nav button{font-size:8px;flex-direction:column;gap:3px;padding:7px 5px;border-radius:12px;width:20%;text-align:center}nav button span{font-size:21px}main{margin:0;padding:0 18px 95px}.topbar{height:79px;gap:10px;font-size:10px}.demo-pill{display:none}.xp-pill{font-size:10px;padding:9px 12px}.hero{min-height:403px;padding:28px 23px;align-items:flex-start}.hero-copy{width:100%}.hero h1{font-size:38px;max-width:275px}.hero p{max-width:205px;font-size:12px}.hero .tomo{width:230px;right:-20px;bottom:-10px}.hero-bubble{top:auto;bottom:177px;right:18px;font-size:9px}.hero .button{margin-top:55px;font-size:11px;position:relative;z-index:3}.today-grid,.two-col{grid-template-columns:1fr}.section-heading h2{font-size:26px}.section-heading .button{font-size:10px;padding:10px}.stats{gap:8px}.stat{padding:18px 10px}.stat span{font-size:10px}.stat strong{font-size:27px}.page-title h1{font-size:37px}.mobile-only{display:block}.hero-copy .eyebrow{margin-bottom:14px}.progress-panel{padding:18px;gap:11px}.progress-panel .chip{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* CE1: readable prompts, generous targets, short guided sessions. */
.ce1-answers{gap:12px;margin-top:24px}.ce1-answers button{font-size:22px;min-height:60px;min-width:85px;padding:15px 23px;border-radius:15px}.question-title{font-family:Nunito,Arial,sans-serif;font-size:25px;line-height:1.5;letter-spacing:0}.exercise-actions{display:flex;flex-wrap:wrap;gap:12px;margin:23px 0}.exercise-actions .button{min-height:48px;font-size:16px}.exercise-card .result{font-size:17px;line-height:1.6;min-height:38px}.result.correct{background:#e4f0dd;padding:18px;border-radius:16px}.story-text{background:#f9eddd;border-radius:17px;padding:22px;margin-bottom:24px}.story-text p{font-size:21px;line-height:1.9;margin:12px 0 0}.counting{display:flex;align-items:center;flex-wrap:wrap;gap:16px;padding:20px;background:#eee9f2;border-radius:18px;margin:0 0 22px}.dot-group{display:flex;flex-wrap:wrap;gap:9px;max-width:155px}.dot-group i,.unit-dots i{display:inline-block;width:23px;height:23px;background:#759268;border-radius:50%}.dot-group:nth-of-type(2) i{background:#be916f}.group-plus{font-size:28px}.tens-picture{padding:20px;background:#edf0e2;border-radius:18px;margin-bottom:22px;display:flex;align-items:center;flex-wrap:wrap;gap:15px}.tens-bars,.unit-dots{display:flex;gap:8px}.tens-bars i{background:#759268;color:white;border-radius:9px;padding:10px;font-style:normal}.two-col aside .tomo{max-width:220px;width:100%;margin:0 auto}.listen{font-size:15px;color:#47684d;border:1px solid #d2dfc9;border-radius:12px;min-height:44px;padding:10px 15px}.hint{font-size:16px}.celebration .exercise-actions{justify-content:center}#feedback-form select{display:block;width:100%;padding:13px;border:1px solid #d9ddce;border-radius:10px;margin:9px 0 20px;background:#fffdf7;font:inherit;color:#24384a}.mission button{width:44px;height:44px;flex-shrink:0}.flashcard{font-family:Nunito,Arial,sans-serif;font-size:25px}.check-row{font-size:17px}.check-row input{width:24px;height:24px}.exercise-card .mini{font-size:14px}.chip{font-size:12px}.section-heading small{font-size:12px}footer{font-size:12px}.text-button.mobile-only{font-size:13px}.subtle{font-size:15px}
@media(max-width:760px){.hero{min-height:380px}.hero .tomo{width:205px;right:-14px}.hero .button{margin-top:45px}.hero-bubble{bottom:155px}.question-title{font-size:23px}.story-text{padding:18px}.story-text p{font-size:20px}.ce1-answers button{font-size:20px;min-width:72px;flex:1}.exercise-actions .button{font-size:15px}.counting{gap:10px;padding:15px}.dot-group{max-width:118px;gap:7px}.dot-group i{width:20px;height:20px}nav button{font-size:10px}.center .tomo{max-width:100%}.stats{grid-template-columns:1fr}.stat{padding:16px 20px;display:flex;gap:14px;align-items:center}.stat span{font-size:13px}}

/* Simple, recognisable navigation and a guided CE1 tutor. */
nav .nav-icon{display:flex;align-items:center;justify-content:center;width:26px;height:26px;flex-shrink:0}
nav .nav-icon svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tomo-launcher{position:fixed;right:24px;bottom:24px;z-index:5;border:1px solid #cbdcbd;border-radius:22px;padding:10px 18px 10px 8px;background:#e5eddc;color:#24384a;display:flex;align-items:center;gap:10px;font:700 15px Nunito,Arial,sans-serif;box-shadow:0 5px 22px #24384a18;min-height:58px}
.tomo-launcher img{width:44px;height:44px;object-fit:contain}.tomo-launcher small{display:block;font-size:12px;font-weight:500;text-align:left}
#tomo-help{width:min(440px,calc(100% - 28px));max-height:calc(100dvh - 40px);overflow-y:auto;padding:24px;position:fixed;border:1px solid #cddcc2;box-shadow:0 14px 60px #24384a30}
#tomo-help .section-heading{margin-bottom:12px}#tomo-help h2{font-size:29px}#tomo-help-close{min-width:44px;min-height:44px;border-radius:50%;background:#e8eddf}
.tomo-help-intro{display:flex;align-items:center;gap:12px}.tomo-help-portrait{width:76px;height:76px;object-fit:contain;background:#e5eddc;border-radius:24px;padding:5px}
.tomo-help-intro p{font-size:15px;line-height:1.6}.tomo-help-options{display:grid;gap:10px;margin:18px 0}.tomo-help-options button{min-height:52px;border-radius:15px;border:1px solid #cddcc2;background:#fffdf7;color:#24384a;font:700 17px Nunito,Arial,sans-serif;padding:13px 17px;text-align:left}
.tomo-help-options button:nth-child(2){background:#eee8f2}.tomo-help-options button:nth-child(3){background:#f9eddd}
#tomo-help-text{font-size:19px;line-height:1.75;white-space:pre-wrap;margin:8px 0 16px;background:#edf0e2;padding:18px;border-radius:18px;min-height:96px}
#tomo-help-status{font-size:12px;font-weight:700;color:#527249;display:block;line-height:1.5}
#tomo-help .mini{font-size:12px;line-height:1.6;margin-top:18px}button:disabled{opacity:.55;cursor:default}button:focus-visible{outline:3px solid #527249;outline-offset:3px}
.tomo-inline-help{display:flex;gap:10px;align-items:center;min-height:52px;font-size:16px;background:#e5eddc!important}.tomo-inline-help img{width:34px;height:34px;object-fit:contain}
@media(max-width:760px){.sidebar{height:82px;padding-bottom:max(7px,env(safe-area-inset-bottom))}nav button{min-height:58px;font-size:10px}main{padding-bottom:175px}.tomo-launcher{bottom:calc(92px + env(safe-area-inset-bottom));right:14px;padding:7px 14px 7px 7px;font-size:14px}.tomo-launcher img{width:37px;height:37px}.tomo-launcher small{font-size:11px}#tomo-help{padding:20px;max-height:calc(100dvh - 24px)}#toast{bottom:180px;width:calc(100% - 36px);text-align:center}.exercise-actions{flex-direction:column}.exercise-actions .button{width:100%;justify-content:center}}

/* Tomo moves gently; states follow the actual request and speech lifecycle. */
[hidden]{display:none!important}
.tomo{--tomo-tilt:0deg;animation:tomo-breathe 5s ease-in-out infinite}
.hero .tomo{--tomo-tilt:4deg}
.tomo img[src*="lid-"]{opacity:0;animation:tomo-blink 7s infinite}
:is(.tomo,.tomo-avatar,.tomo-mini)>img[src*="arm-left"]{transform-origin:20.73365% 63.79585%}
:is(.tomo,.tomo-avatar,.tomo-mini)>img[src*="arm-right"]{transform-origin:80.54226% 63.79585%;animation:tomo-wave 12s ease-in-out infinite}
.tomo-avatar{position:relative;width:108px;height:108px;flex-shrink:0;border-radius:30px;background:radial-gradient(circle,#e5eddc,#f2f3e7);overflow:visible}
.tomo-avatar>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.tomo-avatar:not(.has-3d),.tomo-mini{animation:tomo-breathe 5s ease-in-out infinite}
.tomo-avatar>img[src*="lid-"]{opacity:0;animation:tomo-blink 6.5s infinite}
.tomo-avatar[data-state="thinking"]:not(.has-3d){animation:tomo-think 1.6s ease-in-out infinite}
.tomo-avatar[data-state="ready"]:not(.has-3d){animation:tomo-hello .65s ease-out 1}
.tomo-avatar[data-state="speaking"]:not(.has-3d){animation:tomo-talk .7s ease-in-out infinite}
.tomo-thoughts{display:none;position:absolute;top:0;right:-5px;gap:4px;padding:8px;background:#fffdf7;border-radius:15px;box-shadow:0 2px 10px #24384a12}
.tomo-thoughts i{width:5px;height:5px;background:#759268;border-radius:50%;animation:tomo-dot 1.3s ease-in-out infinite}
.tomo-thoughts i:nth-child(2){animation-delay:.15s}.tomo-thoughts i:nth-child(3){animation-delay:.3s}
.tomo-avatar[data-state="thinking"] .tomo-thoughts{display:flex}
.tomo-sparkles{position:absolute;right:0;top:3px;color:#a78659;font-size:26px;opacity:0}
.tomo-avatar[data-state="ready"] .tomo-sparkles{animation:tomo-spark .9s ease-out 1}
#tomo-help[data-tomo-state="ready"] #tomo-help-text{animation:tomo-response .3s ease-out 1}
#tomo-stop-listen{margin-top:10px;font-size:14px;min-height:44px}
#tomo-start-mission{width:100%;justify-content:center;min-height:50px;font-size:16px;margin:12px 0 4px}
.tomo-launcher:active,.tomo-help-options button:active{transform:scale(.97)}
.exercise-card{position:relative;overflow:hidden}.tomo-effort{animation:tomo-celebrate 1s ease-out 1}
.tomo-effort-sprout{position:absolute;right:20px;top:80px;display:flex;gap:10px;pointer-events:none;color:#789568;font-size:28px}
.tomo-effort-sprout span{animation:tomo-effort-rise 1.5s ease-out both}.tomo-effort-sprout span:nth-child(2){animation-delay:.08s;color:#b59565}.tomo-effort-sprout span:nth-child(3){animation-delay:.16s}
@keyframes tomo-breathe{0%,100%{transform:translateY(0) rotate(var(--tomo-tilt,0deg))}50%{transform:translateY(-4px) rotate(var(--tomo-tilt,0deg))}}
@keyframes tomo-blink{0%,42%,46%,100%{opacity:0}43%,45%{opacity:1}}
@keyframes tomo-wave{0%,5%,12%,100%{transform:rotate(0)}7%{transform:rotate(-8deg)}9%{transform:rotate(6deg)}}
@keyframes tomo-think{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-3px) rotate(3deg)}}
@keyframes tomo-hello{0%,100%{transform:translateY(0)}40%{transform:translateY(-7px)}70%{transform:translateY(-2px)}}
@keyframes tomo-talk{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-2px) rotate(1deg)}}
@keyframes tomo-dot{0%,100%{transform:translateY(0);opacity:.45}50%{transform:translateY(-3px);opacity:1}}
@keyframes tomo-spark{0%{opacity:0;transform:scale(.5)}40%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:scale(1.2) translateY(-10px)}}
@keyframes tomo-response{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes tomo-celebrate{0%,100%{border-color:#e7e5db}40%{border-color:#789568;box-shadow:0 0 0 4px #e4f0dd}}
@keyframes tomo-effort-rise{0%{opacity:0;transform:translateY(10px) scale(.6)}20%{opacity:1}100%{opacity:0;transform:translateY(-35px) scale(1.1)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.tomo-avatar>img[src*="lid-"],.tomo img[src*="lid-"]{opacity:0}.tomo-thoughts i{opacity:1}}

/* Small sounds are optional. Spoken help always starts with an explicit tap. */
.sound-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:1px solid #d6dfcc;border-radius:16px;background:#fffdf7;padding:9px 12px;font:700 12px Nunito,Arial,sans-serif;white-space:nowrap;color:#527249}
.sound-toggle[aria-pressed="true"]{background:#e5eddc;border-color:#91ac81}.dialog-sound{margin-top:12px;display:flex}#tomo-help .mini{margin-bottom:0}
@media(max-width:760px){.topbar{gap:8px}.topbar #date{font-size:9px;flex-shrink:1}.topbar .sound-toggle{padding:8px;gap:4px;font-size:10px}.xp-pill{padding:8px;font-size:9px;white-space:nowrap}.topbar{height:85px}}

/* Complete layered mascot in both help buttons. */
.tomo-mini{display:block;position:relative;width:44px;height:44px;flex:0 0 44px;overflow:visible}
.tomo-launcher .tomo-mini img,.tomo-inline-help .tomo-mini img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
.tomo-inline-help .tomo-mini{width:38px;height:38px;flex-basis:38px}
@media(max-width:760px){.tomo-launcher .tomo-mini{width:42px;height:42px;flex-basis:42px}}

/* One real 3D Tomo enters from the right at meaningful moments. */
#tomo-companion{position:fixed;right:10px;bottom:160px;width:180px;padding:0;border:0;background:none;z-index:6;transform:translateX(125%);opacity:0;visibility:hidden;transition:transform .65s cubic-bezier(.22,.8,.3,1),opacity .35s;cursor:pointer}
#tomo-companion.visible{transform:translateX(0);opacity:1;visibility:visible}
#tomo-companion-view{position:relative;display:block;width:180px;height:220px;pointer-events:none}
#tomo-companion-view .tomo-mini{width:180px;height:180px;position:absolute;inset:20px 0 auto;flex-basis:auto}
#tomo-companion-view .tomo-mini img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#tomo-companion-view canvas,.tomo-avatar canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
#tomo-companion-view.has-3d>.tomo-mini,.tomo-avatar.has-3d>img,.tomo-avatar.has-3d>.tomo-thoughts,.tomo-avatar.has-3d>.tomo-sparkles{display:none}
.companion-bubble{display:block;background:#fffdf7;border:1px solid #d6dfcc;border-radius:17px 17px 4px 17px;padding:10px 13px;color:#3c5942;box-shadow:0 5px 16px #24384a12;font:700 14px Nunito,Arial,sans-serif;white-space:normal}
#tomo-help[open]{animation:tomo-panel-enter .4s ease-out 1}
#tomo-voice-status{display:block;color:#527249;font-size:12px;line-height:1.6;margin-top:12px;min-height:20px}
@keyframes tomo-panel-enter{from{opacity:0;transform:translateX(36px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:760px){#tomo-companion{right:4px;bottom:calc(160px + env(safe-area-inset-bottom));width:150px}#tomo-companion-view{width:150px;height:185px}#tomo-companion-view .tomo-mini{width:150px;height:150px}.companion-bubble{font-size:12px;padding:9px 11px}}
@media(prefers-reduced-motion:reduce){#tomo-companion{transition:none}#tomo-help[open]{animation:none}}

/* CE1 lab: brief, purposeful motion and a visible three-step path. */
.hero-labels{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.hero-labels span{background:#fffdf7b8;border:1px solid #ffffff9e;border-radius:30px;padding:7px 12px;font-size:12px;font-weight:750;color:#3e5b47}
.card{box-shadow:0 5px 20px #45594105}.button,nav button,.mission button,.subject-icon{transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease}
.button.primary{box-shadow:0 4px 0 #172b3b}.button:active:not(:disabled){transform:translateY(2px);box-shadow:none}.mission button:active{transform:scale(.94)}
nav button.active .nav-icon{background:#fffdf7;border-radius:9px;padding:3px;box-shadow:0 2px 5px #45594109}
.mission .subject-icon{border-radius:16px 16px 16px 6px;box-shadow:inset 0 -3px 0 #24384a09}
.mission.done strong{text-decoration:none;color:#527249}.mission.done .subject-icon{background:#e0ebdb;color:#446241}.mission.done .mission-copy small{color:#527249}
.mission-trail{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:14px 5px;margin:0 0 22px;background:#f5f3e9;border-radius:18px;gap:0}
.mission-trail li{display:flex;align-items:center;flex-direction:column;text-align:center;position:relative;gap:7px;font-size:12px;font-weight:800;color:#64716b;min-width:0}
.mission-trail li:not(:last-child)::after{content:'';position:absolute;top:18px;left:calc(50% + 23px);width:calc(100% - 46px);height:2px;border-radius:2px;background:#dce3d3}
.trail-stone{width:36px;height:36px;display:grid;place-items:center;background:#fffdf7;border:2px solid #dce3d3;border-radius:50%;font-size:16px;position:relative;z-index:1;box-shadow:0 3px 0 #e3e6d9}
.mission-trail small{display:block;font-size:10px;font-weight:600;margin-top:3px}.mission-trail .current{color:#34563f}.mission-trail .current .trail-stone{background:#eee6f3;border-color:#ab93bf;box-shadow:0 0 0 4px #eee6f366}
.mission-trail .complete .trail-stone{background:#dcebd6;border-color:#7b9a6f;color:#36583d}.mission-trail .complete::after{background:#90ac82}
.ce1-answers button{position:relative;border:2px solid #dfdfd4;box-shadow:0 4px 0 #e8e7df;font-weight:800;transition:transform .16s ease,background-color .16s ease,border-color .16s ease;min-height:65px;padding:16px 25px}
.ce1-answers button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #e8e7df}.ce1-answers button.chosen{background:#eee6f3;border-color:#a28ab5;box-shadow:0 4px 0 #d8cce1}
.ce1-answers button.chosen::before{content:'';position:absolute;right:6px;top:6px;width:7px;height:7px;background:#84699b;border-radius:50%}
.ce1-answers button.answer-correct{opacity:1;background:#dcebd6;border-color:#7b9a6f;box-shadow:0 4px 0 #bed2b5}.ce1-answers button.answer-correct::before{display:none}
.result.correct{border:1px solid #cbdcbe}.hint{border:1px solid #efdabf}.listen{background:#fffdf7}
.check-row:has(input:checked){color:#446241;background:#eff4e8;border-radius:12px;padding-left:12px}.check-row{transition:background-color .2s ease}
.tomo-confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:60}
.victory-label{display:inline-block;border-radius:30px;padding:8px 14px;background:#edf2e6;font-size:12px;font-weight:800;color:#486b45}.celebration>.tomo{width:250px}
.page-arrival{animation:ce1-page-arrival .32s ease-out both}.flashcard.flip-reveal{background:#e5eddf;animation:ce1-card-reveal .35s ease-out both}.flashcard{box-shadow:0 5px 0 #ded6e3}.flashcard.flip-reveal small{color:#446241}
#tomo-companion .companion-bubble{border-radius:18px 18px 5px 18px;border-bottom-width:3px}
@media(hover:hover){.button:hover:not(:disabled){transform:translateY(-1px)}.mission:hover .subject-icon{transform:rotate(-4deg)}.mission button:hover{background:#e5eddf;transform:translateX(2px)}.ce1-answers button:hover:not(:disabled){border-color:#a28ab5;transform:translateY(-2px)}}
@keyframes ce1-page-arrival{from{opacity:.65;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes ce1-card-reveal{from{opacity:.7;transform:perspective(700px) rotateX(-9deg)}to{opacity:1;transform:perspective(700px) rotateX(0)}}
@media(max-width:760px){.hero{min-height:430px}.hero-labels{max-width:190px;gap:6px;margin:0 0 0}.hero-labels span{font-size:11px;padding:6px 10px}.hero .button{margin-top:22px;min-height:46px;font-size:14px}.hero .tomo{width:195px;bottom:-8px;right:-10px}.hero-bubble{bottom:159px;font-size:10px}.mission-trail{padding:13px 3px;margin-bottom:20px}.mission-trail li{font-size:11px}.mission-trail small{font-size:10px}.ce1-answers button{padding:16px 12px}.celebration>.tomo{width:210px}.exercise-card .section-heading .chip{font-size:11px}.exercise-card .section-heading .button{min-height:44px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.page-arrival,.flashcard.flip-reveal{animation:none!important}.tomo-confetti{display:none}}
@media(max-width:760px){.sidebar{height:calc(82px + env(safe-area-inset-bottom));padding-bottom:calc(7px + env(safe-area-inset-bottom))}main{padding-bottom:calc(175px + env(safe-area-inset-bottom))}}

/* A single tutor lives in the exercise instead of hovering over it. */
.in-ce1-mission>.tomo-launcher{display:none}
.tomo-inline-help{width:100%;border:1px solid #cddcc2;border-radius:22px;text-align:left;padding:10px 18px 10px 4px;gap:12px;background:linear-gradient(120deg,#edf3e6,#e7eddc)!important;box-shadow:inset 0 -3px 0 #dce7d0;min-height:155px;overflow:hidden}
#tomo-inline-view{display:block;position:relative;width:128px;height:150px;flex:0 0 128px;pointer-events:none}
#tomo-inline-view>.tomo-mini{position:absolute;inset:8px 0 0;width:128px;height:128px;flex-basis:auto}
#tomo-inline-view>.tomo-mini img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#tomo-inline-view.has-3d>.tomo-mini{display:none}
#tomo-inline-view canvas{position:absolute;inset:0;display:block;width:100%;height:100%}
.tomo-dock-copy{display:block;flex:1;min-width:0}.tomo-dock-copy strong{display:block;font-size:19px;line-height:1.4}.tomo-dock-copy small{display:block;font-size:14px;font-weight:500;margin:6px 0 12px;line-height:1.5;color:#4d684e}.tomo-dock-cta{display:inline-block;background:#fffdf7;border-radius:12px;padding:8px 11px;font-size:12px;line-height:1.5;color:#3e5d43}
@media(max-width:760px){.tomo-inline-help{gap:6px;padding-right:12px;min-height:145px}#tomo-inline-view{width:108px;height:135px;flex-basis:108px}#tomo-inline-view>.tomo-mini{width:108px;height:108px}.tomo-dock-copy strong{font-size:17px}.tomo-dock-copy small{font-size:12px;margin-bottom:8px}.tomo-dock-cta{font-size:11px;padding:7px 8px}}

/* MeetTomo brand styles, adapted from the public site. */
.mt-backdrop{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.mt-pools{position:absolute;inset:-12%;transform:translate3d(0,calc(var(--mt-scroll,0) * -.05px),0)}
.mt-pool{position:absolute;display:block;width:64vmax;height:64vmax;border-radius:50%;opacity:.8;will-change:transform;animation:mt-drift 46s ease-in-out infinite alternate}
.mt-pool-mint{background:radial-gradient(circle,#d6eee1 0,#d6eee100 66%);left:-16%;top:-12%}
.mt-pool-lavender{background:radial-gradient(circle,#e7def6 0,#e7def600 66%);right:-22%;top:22%;animation-duration:58s;animation-delay:-14s}
.mt-pool-peach{background:radial-gradient(circle,#fbe2d4 0,#fbe2d400 66%);left:6%;bottom:-30%;animation-duration:52s;animation-delay:-30s}
.mt-pool-sun{background:radial-gradient(circle,#fcefc6 0,#fcefc600 64%);right:6%;top:-26%;width:46vmax;height:46vmax;animation-duration:40s;animation-delay:-8s;opacity:.7}
@keyframes mt-drift{0%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(6vw,4vh,0) scale(1.08)}100%{transform:translate3d(-4vw,8vh,0) scale(.95)}}
.mt-grain{position:absolute;inset:0;opacity:.06;background-size:180px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .22 0 0 0 0 .29 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
@media(max-width:760px){.mt-pool{width:90vmax;height:90vmax}}


.mt-gradient{position:absolute;left:-100%;top:-100%;width:300%;height:300%;will-change:transform;
  background:linear-gradient(118deg,#fff9f1 0%,#ccebdc 17%,#e3d7f4 34%,#f9d8c5 51%,#fae9b6 68%,#d2ebe5 84%,#fff9f1 100%);
  opacity:.95;animation:mt-gradient-drift 8s ease-in-out infinite alternate}
@keyframes mt-gradient-drift{0%{transform:translate3d(-18%,-10%,0) rotate(-4deg)}50%{transform:translate3d(5%,8%,0) rotate(3deg)}100%{transform:translate3d(18%,-6%,0) rotate(-2deg)}}
/* Follows the mouse (--mt-px/--mt-py, -1..1) and sways with the scroll (--mt-sway). */
.mt-gradient-move{position:absolute;inset:0;will-change:transform;transform:translate3d(calc(var(--mt-px,0) * -7vw),calc(var(--mt-py,0) * -6vh + var(--mt-sway,0) * 12vh),0)}
@media(prefers-reduced-motion:reduce){.mt-gradient{animation:none;transform:translate3d(-4%,-2%,0)}.mt-gradient-move{transform:none}}


body{background:#fbf9f2;isolation:isolate}
.mt-backdrop{z-index:-1}
.hero{background:#fffdf76b;border:1px solid #ffffffa6;box-shadow:0 8px 28px #24384a05}
.sidebar{background:#f7f8efbc;border-color:#e0e5dccc}
.card{background:#fffdf7e8;border-color:#ffffffb8}
.revision-card{background:#eee9f2dd}
.tomo-icon{display:inline-block;width:20px;height:20px;flex-shrink:0;vertical-align:middle;color:currentColor;fill:none}
.hero-labels span,.hero-bubble,.xp-pill,.parent-link,.chip,.tomo-dock-cta{display:inline-flex;align-items:center;gap:7px}
.hero-labels .tomo-icon{width:15px;height:15px}
.hero-bubble{gap:0}
.xp-pill{white-space:nowrap}.xp-pill .tomo-icon{width:15px;height:15px}
.subject-icon .tomo-icon{width:24px;height:24px}
.mission button{display:grid;place-items:center}.mission button .tomo-icon{width:18px;height:18px}
.trail-stone .tomo-icon,.step-dot .tomo-icon{width:17px;height:17px}
.sprout .tomo-icon{width:32px;height:32px}
.victory-garden .tomo-icon,.tomo-effort-sprout .tomo-icon{width:1em;height:1em}
.achievement-mark .tomo-icon{width:55px;height:55px;color:#6a8d68}
.avatar .tomo-icon{width:22px;height:22px}
.icon-button{display:grid;place-items:center}
.listen{display:inline-flex;align-items:center;gap:8px}
.flashcard small .tomo-icon{width:16px;height:16px;margin-left:6px}
.tomo-help-options button{display:flex;align-items:center;gap:10px}
.tomo-help-options .tomo-icon{width:20px;height:20px}
.tomo-sparkles .tomo-icon{width:26px;height:26px}
.chat-actions button{display:inline-flex;align-items:center;gap:8px}
/* Bouton principal B4·h (validé par Loïc le 4 novembre 2026) : verre blanc cerclé de l'arc pastel,
   voile d'aquarelle qui respire au repos, aquarelle qui part du centre et halo au toucher. */
:is(.button.primary,.primary-action){position:relative;isolation:isolate;overflow:hidden;color:#203b4a;border:2.5px solid transparent;border-radius:999px;background:linear-gradient(128deg,#ffffffd1,#ffffff80) padding-box,linear-gradient(90deg,#9fd6b9,#bba8ea,#f0ad8c,#f0cf6a) border-box;box-shadow:0 8px 18px -6px #8c7fb840,inset 0 2px 2px #fff;transition:transform .2s cubic-bezier(.34,1.56,.64,1),box-shadow .25s}
:is(.button.primary,.primary-action)::before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;background:radial-gradient(circle at 15% 50%,#ccebdc,transparent 45%),radial-gradient(circle at 45% 40%,#e3d7f4,transparent 45%),radial-gradient(circle at 75% 60%,#f9d8c5,transparent 45%),radial-gradient(circle at 95% 40%,#fae9b6,transparent 40%);opacity:.08;animation:mt-b4h-breathe 5s ease-in-out infinite}
/* Dans tous les états, le verre et l'arc restent : neutralise les anciens fonds pleins (.primary:hover)
   et le liseré vert du focus. Le survol n'existe qu'avec une vraie souris, pour ne pas rester collé au toucher. */
:is(.button.primary,.primary-action):is(:hover,:focus,:focus-visible,:active){color:#203b4a;border-color:transparent;background:linear-gradient(128deg,#ffffffd1,#ffffff80) padding-box,linear-gradient(90deg,#9fd6b9,#bba8ea,#f0ad8c,#f0cf6a) border-box}
:is(.button.primary,.primary-action):focus-visible{outline:none;box-shadow:0 0 0 3px #fff,0 0 0 5.5px #bba8eab3,0 8px 22px -6px #bba8ea99,inset 0 2px 2px #fff}
@media(hover:hover){:is(.button.primary,.primary-action):hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 22px -6px #8c7fb859,inset 0 2px 2px #fff}:is(.button.primary,.primary-action):hover:not(:disabled):not(:active)::before{animation:none;opacity:.55}}
:is(.button.primary,.primary-action):active:not(:disabled){transform:scale(.97);box-shadow:0 8px 22px -4px #bba8eae6,-18px 6px 20px -8px #9fd6b9e6,18px 6px 20px -8px #f0ad8ce6,inset 0 2px 2px #fff}
:is(.button.primary,.primary-action):active:not(:disabled)::before{animation:mt-b4h-spread .45s cubic-bezier(.2,.8,.2,1) forwards}
:is(.button.primary,.primary-action):disabled{transform:none;box-shadow:none;opacity:.6}
:is(.button.primary,.primary-action):disabled::before{animation:none}
@keyframes mt-b4h-breathe{0%,100%{opacity:.08}50%{opacity:.3}}
@keyframes mt-b4h-spread{from{opacity:.95;transform:scale(.15)}to{opacity:.95;transform:scale(1)}}
@media(max-width:760px){.sidebar{background:#f7f8efd9}main{padding-bottom:calc(105px + env(safe-area-inset-bottom))}.topbar #date{font-size:10px}.xp-pill{font-size:10px}.xp-pill .tomo-icon{width:13px;height:13px}.hero .button .tomo-icon{width:18px;height:18px}.tomo-dock-cta{gap:4px}.tomo-dock-cta .tomo-icon{width:14px;height:14px}#toast{bottom:calc(98px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.button.primary{transition:none}:is(.button.primary,.primary-action)::before{animation:none!important;opacity:.14}:is(.button.primary,.primary-action):active:not(:disabled)::before{opacity:.95}.button.primary:hover:not(:disabled),.button.primary:focus-visible,.button.primary:active:not(:disabled){transform:none}}
@media print{.mt-backdrop{display:none}}

/* Each navigation destination has its own pastel gradient. */
.sidebar nav button[data-view="today"]{--nav-from:#fbded0;--nav-to:#f6ccbb}
.sidebar nav button[data-view="learn"]{--nav-from:#fbf1cc;--nav-to:#f3e3a6}
.sidebar nav button[data-view="review"]{--nav-from:#e1eedb;--nav-to:#c9e4d7}
.sidebar nav button[data-view="bag"]{--nav-from:#e0eff8;--nav-to:#c8e0f2}
.sidebar nav button[data-view="tomo"]{--nav-from:#ede4f5;--nav-to:#dbcdee}
.sidebar nav button{position:relative;isolation:isolate;background:transparent;color:#24384a;transition:color .28s ease,transform .18s ease}
.sidebar nav button::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg,var(--nav-from),var(--nav-to));opacity:0;transition:opacity .32s ease}
.sidebar nav button.active{background:transparent;color:#24384a}
.sidebar nav button.active::before{opacity:1}
.sidebar nav button .nav-icon{transition:background-color .28s ease,box-shadow .28s ease}
.sidebar nav button.active .nav-icon{background:#fffdf7c9;box-shadow:0 2px 5px #45594109}
@media(hover:hover){.sidebar nav button:not(.active):hover{background:transparent}.sidebar nav button:not(.active):hover::before{opacity:.38}}
@media(prefers-reduced-motion:reduce){.sidebar nav button,.sidebar nav button::before,.sidebar nav button .nav-icon{transition:none!important}}

/* Speaking is tied to actual voice playback, with a small visual cue. */
.tomo-voice-wave{display:none;align-items:center;justify-content:center;gap:2px;width:14px;height:16px;flex-shrink:0}
.tomo-voice-wave i{display:block;width:2px;height:14px;border-radius:2px;background:currentColor;transform:scaleY(.357);will-change:transform;animation:tomo-voice-bar .6s ease-in-out infinite alternate}
.tomo-voice-wave i:nth-child(2){animation-delay:-.2s}.tomo-voice-wave i:nth-child(3){animation-delay:-.4s}
.tomo-inline-help[data-motion="speaking"] .tomo-voice-wave{display:inline-flex}
.tomo-inline-help[data-motion="thinking"],.tomo-inline-help[data-motion="think"]{border-color:#b8a5cb}
.tomo-inline-help[data-motion="jump"]{border-color:#90b582}
@keyframes tomo-voice-bar{from{transform:scaleY(.357)}to{transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.tomo-voice-wave i{animation:none;transform:scaleY(.571);will-change:auto}}

/* One moving watercolor mark blends the existing five pastel gradients. */
@property --water-from{syntax:'<color>';inherits:true;initial-value:#fbded0}
@property --water-to{syntax:'<color>';inherits:true;initial-value:#f6ccbb}
.sidebar nav.water-nav{position:relative;isolation:isolate;overflow:hidden;border-radius:16px}
.sidebar nav.water-nav button::before{opacity:0!important}
.nav-water{display:block;position:absolute;left:0;top:0;z-index:-1;border-radius:18px;pointer-events:none;opacity:0;will-change:transform}
.nav-water-ink{display:block;position:absolute;inset:0;border-radius:18px;background:linear-gradient(135deg,var(--water-from),var(--water-to));transform-origin:center;box-shadow:inset 0 0 13px #fffdf730}
.nav-water-ink::before{content:'';position:absolute;inset:-3px;border-radius:42% 58% 54% 46% / 50% 44% 56% 50%;background:inherit;filter:blur(3px);opacity:.25;z-index:-1}
.nav-water-ink::after{content:'';position:absolute;inset:0;border-radius:inherit;background:radial-gradient(ellipse at 28% 25%,#fffdf738,transparent 56%),radial-gradient(ellipse at 78% 80%,#fffdf71c,transparent 60%);pointer-events:none}
.water-nav-ready .nav-water{transition:transform .65s cubic-bezier(.22,.8,.3,1),width .5s ease,height .5s ease,opacity .25s ease,--water-from .65s ease,--water-to .65s ease}
.water-nav-ready .nav-water.is-dragging{transition:--water-from .3s linear,--water-to .3s linear,opacity .2s ease}
.nav-water.is-dragging .nav-water-ink{border-radius:38% 62% 52% 48% / 54% 44% 56% 46%;transform:scale(1.12,.94)}
.sidebar nav.water-nav button:focus-visible{outline-offset:-3px}
.sidebar nav.is-scrubbing button.active .nav-icon{background:transparent;box-shadow:none}
.sidebar nav.is-scrubbing button.nav-preview .nav-icon{background:#fffdf7c9;border-radius:9px;padding:3px;box-shadow:0 2px 5px #45594109}
@media(max-width:760px){.sidebar nav.water-nav{touch-action:pan-y;user-select:none;-webkit-user-select:none}.sidebar nav.water-nav button{-webkit-user-drag:none}}
@media(prefers-reduced-motion:reduce){.water-nav-ready .nav-water,.water-nav-ready .nav-water.is-dragging{transition:none!important}.nav-water.is-dragging .nav-water-ink{transform:none}}

/* Automatic play in Mon Tomo; the same canvas moves here from the tutor. */
.tomo-playground{background:linear-gradient(150deg,#fffdf7ed,#e8f1e9ba 58%,#ede5f2b0);overflow:hidden}
#tomo-garden-view{position:relative;width:min(100%,310px);aspect-ratio:1;margin:-8px auto 0;pointer-events:none}
#tomo-garden-view>.tomo{position:absolute;inset:0;width:100%;height:100%;margin:0}
#tomo-garden-view.has-3d>.tomo,#tomo-garden-view.has-3d>.tomo-kiss-heart{display:none}
#tomo-garden-view canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.tomo-floor{position:absolute;left:25%;right:25%;bottom:14%;height:7%;border-radius:50%;background:radial-gradient(ellipse,#527b5436,#527b5400 70%);filter:blur(5px)}
.tomo-playground h2{font-size:26px;margin:0 0 9px}.tomo-playground p{font-size:14px;margin:0 auto;max-width:250px}
.tomo-kiss-heart{position:absolute;left:53%;top:49%;width:25px;height:25px;color:#e49b99;opacity:0;pointer-events:none}
.tomo-kiss-heart svg{width:100%;height:100%;fill:currentColor}
#tomo-garden-view:not(.has-3d)[data-motion="wave"]>.tomo{animation:garden-greeting 2.8s ease-in-out both}
#tomo-garden-view:not(.has-3d)[data-motion="jump"]>.tomo{animation:garden-hop 2.4s ease-in-out both}
#tomo-garden-view:not(.has-3d)[data-motion="dance"]>.tomo{animation:garden-dance 3.2s ease-in-out both}
#tomo-garden-view:not(.has-3d)[data-motion="kiss"]>.tomo{animation:garden-kiss 2.1s ease-in-out both}
#tomo-garden-view:not(.has-3d)[data-motion="kiss"]>.tomo-kiss-heart{animation:garden-heart 2.1s ease-out both}
@keyframes garden-greeting{0%,100%{transform:rotate(0)}25%,65%{transform:rotate(-3deg)}45%,85%{transform:rotate(3deg)}}
@keyframes garden-hop{0%,20%,80%,100%{transform:translateY(0)}30%{transform:translateY(3px) scale(1.02,.98)}50%{transform:translateY(-22px)}70%{transform:translateY(2px) scale(1.02,.98)}}
@keyframes garden-dance{0%,100%{transform:translateX(0) rotate(0)}15%,45%,75%{transform:translateX(-7px) rotate(-5deg)}30%,60%,90%{transform:translateX(7px) rotate(5deg)}}
@keyframes garden-kiss{0%,100%{transform:rotate(0)}35%,65%{transform:translateY(-3px) rotate(-4deg)}}
@keyframes garden-heart{0%,30%{opacity:0;transform:translate(0,0) scale(.3)}40%{opacity:1;transform:translate(8px,-6px) scale(.8)}70%{opacity:1;transform:translate(22px,-25px) scale(1)}100%{opacity:0;transform:translate(38px,-48px) scale(.65)}}
@media(max-width:760px){#tomo-garden-view{max-width:280px}.tomo-playground{padding:22px 18px}.tomo-playground h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.tomo-kiss-heart{display:none}}

/* A discovered accessory quiets this gentle reminder; no badge or counter. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.sidebar nav button.has-new-tomo .nav-icon{animation:tomo-nav-novelty 5.2s ease-in-out infinite;transform-origin:center bottom;background:linear-gradient(135deg,#e1eedb99,#ede4f5cc);border-radius:9px;box-shadow:0 0 0 3px #ede4f54d}
@keyframes tomo-nav-novelty{0%,12%,24%,28%,100%{transform:translateY(0) rotate(0)}6%{transform:translateY(-5px) rotate(-5deg)}18%{transform:translateY(-3px) rotate(4deg)}}
@media(prefers-reduced-motion:reduce){.sidebar nav button.has-new-tomo .nav-icon{animation:none!important;box-shadow:0 0 0 3px #dbcdee80}}

/* Icon parts move once on navigation activation, and otherwise stay at rest. */
.sidebar nav .nav-icon svg{overflow:visible}
.sidebar nav .nav-icon svg g,.sidebar nav .nav-sun-disc{transform-box:view-box;transform-origin:50% 50%}
.sidebar nav .nav-icon svg .nav-book-sheet{opacity:0;transform-origin:50% 25%}
.sidebar nav .nav-icon svg .nav-bag-flap{transform-origin:50% 25%}
.sidebar nav .nav-bag-opening{opacity:0;fill:currentColor;stroke:none}
.sidebar nav .nav-paper{fill:none}

/* One surprise at the end of the six-mission series. */
.gift-box{display:block;width:100%;height:100%;overflow:visible}
.gift-box .gift-lid{transform-box:view-box;transform-origin:50% 43%}
.series-gift{display:flex;align-items:center;gap:18px;padding:20px 24px;margin:0 0 20px;border:1px solid #cfded477;border-radius:24px;background:linear-gradient(115deg,#e1eee2d9,#efe6f5d9);box-shadow:0 4px 20px #516d5705}
.series-gift>.gift-box{width:72px;height:82px;flex:none}
.series-gift strong{font-size:17px}.series-gift p{font-size:14px;line-height:1.55;margin:6px 0 10px;max-width:620px;color:#5d6d62}
.series-count{font-size:12px;font-weight:750;color:#476957;background:#fffdf7b3;border-radius:25px;padding:6px 11px;display:inline-block}
.series-gift .button{margin-left:12px}.gift-announcement>.gift-box{animation:gift-promise 1.4s ease-in-out both}.gift-announcement .gift-lid{animation:gift-peek 1.4s ease-in-out both}
.series-cue{display:flex;align-items:center;gap:11px;padding:11px 14px;border-radius:16px;background:linear-gradient(115deg,#e5efdf,#f0e8f5);margin:0 0 18px}
.series-cue .gift-box{width:33px;height:36px;flex:none}.series-cue strong{font-size:12px;display:block}.series-cue small{display:block;font-size:12px;color:#657569;margin-top:3px}
.series-victory-note{font-size:14px;color:#526d5a;padding:10px 12px;background:#eaf0e6;border-radius:16px;max-width:420px;margin:0 auto 20px}
.classic-accessory{margin-top:24px;padding-top:20px;border-top:1px solid #dde5d8}
.gift-screen{position:relative;overflow:hidden;max-width:700px;margin:auto;background:linear-gradient(140deg,#fffdf7f2,#eaf1e7e3 60%,#efe5f4e6)}
/* Écran cadeau (17/11/2026) : animation 2D validée par Loïc (orbe, saut, dévoilement en cercle), pilotée par tomo-gift.js. */
.gift-stage{height:300px;max-width:520px;margin:0 auto;position:relative}
.gift-glow{position:absolute;inset:8% 12%;border-radius:50%;background:radial-gradient(ellipse,#f9e5ad80,#dbcdea30 50%,transparent 70%);opacity:0;transition:opacity .7s ease}
.gift-screen .gift-glow{inset:-6% 4%;background:radial-gradient(closest-side,#cdbcf0,#fff0);background:radial-gradient(closest-side,color-mix(in srgb,var(--reward-color) 45%,#b9a3ec 55%),#fff0);opacity:0;transition:none}
.gift-screen[data-stage="revealed"]:not(.gift-playing) .gift-glow{opacity:.5}
.gift-tomo{position:absolute;left:50%;bottom:0;width:min(280px,93%);aspect-ratio:1;translate:-50% 0;pointer-events:none}
.gift-tomo-body{position:absolute;inset:0;transform-origin:50% 92%}
.gift-skin{position:absolute;inset:0}.gift-skin>.tomo{position:absolute;inset:0;width:100%;height:100%;margin:0}
.gift-skin-after{visibility:hidden}
.gift-screen[data-stage="revealed"] .gift-skin-after{visibility:visible}
.gift-shadow{position:absolute;left:28%;right:28%;bottom:1%;height:7%;border-radius:50%;background:radial-gradient(closest-side,#203b4a40,#203b4a00)}
.gift-ring{position:absolute;left:50%;top:60%;width:0;height:0;translate:-50% -50%;border-radius:50%;border:5px solid #fff;box-shadow:0 0 22px 6px #d9cdf3,inset 0 0 16px #fff;opacity:0;pointer-events:none}
.gift-orb-path{position:absolute;left:0;top:0;width:0;height:0;opacity:0;pointer-events:none}
.gift-orb{position:absolute;left:-42px;top:-42px;width:84px;height:84px;border-radius:50%;display:grid;place-items:center;color:#24384a;background:radial-gradient(circle at 34% 28%,#fff 0 18%,#efe8fb 60%,#d9cdf3);background:radial-gradient(circle at 34% 28%,#fff 0 18%,color-mix(in srgb,var(--reward-color) 30%,#fff) 60%,color-mix(in srgb,var(--reward-color) 70%,#fff));box-shadow:0 0 0 4px #ffffffdd,0 0 26px 5px #b9a4ecaa,inset -8px -10px 16px #203b4a26,inset 7px 7px 12px #ffffff8c}
.gift-orb.is-fur{background-size:168px 84px;background-repeat:repeat-x;box-shadow:0 0 0 4px #ffffffdd,0 0 26px 5px #b9a4ecaa,inset -8px -10px 16px #1b1f4a59,inset 7px 7px 12px #ffffff6b}
.gift-orb svg{width:40px;height:40px}
.gift-sparks>i{position:absolute;left:-9px;top:-9px;width:18px;height:18px;opacity:0;pointer-events:none}.gift-sparks svg{display:block;width:100%;height:100%}
.gift-screen .mt-gift-rays,.gift-screen .mt-gift-spark{display:none}
.gift-reveal-copy{display:none}.gift-screen[data-stage="revealed"] .gift-reveal-copy{display:block;animation:gift-reveal-copy .6s ease both}
.gift-reveal-copy h2{margin:13px 0 6px;font-size:29px}.gift-reveal-copy p{font-size:15px;margin-bottom:0}
#gift-status{font-size:15px;max-width:380px;min-height:48px;margin:8px auto 0;line-height:1.6}
.gift-screen .exercise-actions{justify-content:center;margin:20px 0 12px}.gift-screen [hidden]{display:none!important}.gift-screen .mini{margin:0}
.gift-paused *{animation-play-state:paused!important}
@keyframes gift-promise{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-5px) rotate(-4deg)}55%{transform:translateY(-3px) rotate(4deg)}}
@keyframes gift-peek{0%,40%,100%{transform:translateY(0)}60%{transform:translateY(-4px) rotate(-3deg)}}
@keyframes gift-reveal-copy{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.series-gift{gap:12px;padding:16px;margin-top:0}.series-gift>.gift-box{width:54px;height:65px}.series-gift strong{font-size:15px}.series-gift p{font-size:12px;margin-bottom:8px}.series-count{font-size:11px}.series-gift .button{display:flex;margin:12px 0 0}.gift-screen{padding:20px 14px}.gift-stage{height:240px}.gift-tomo{width:min(220px,80%)}.gift-orb{left:-34px;top:-34px;width:68px;height:68px}.gift-orb.is-fur{background-size:136px 68px}.gift-orb svg{width:32px;height:32px}.gift-reveal-copy h2{font-size:26px}.gift-screen .exercise-actions{gap:9px}.gift-screen .exercise-actions .button{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.gift-reveal-copy{animation:none}}

/* Real question progress, using the mint/lavender button palette. */
.series-gift-copy,.series-cue-copy{flex:1;min-width:0}
.gift-progress{margin-top:16px}
.gift-progress-track{height:16px;position:relative;overflow:hidden;border-radius:999px;background:#fffdf7bd;box-shadow:inset 0 1px 3px #5364551c;border:1px solid #bccfbe80}
.gift-progress-fill{height:100%;display:block;position:relative;border-radius:inherit;background:linear-gradient(90deg,#65b990,#9e8bce,#65b990) 0 0/200% 100%;animation:gift-progress-colors 6s ease-in-out infinite alternate;animation-play-state:paused;transition:width .75s cubic-bezier(.22,.8,.3,1);box-shadow:inset 0 1px 2px #ffffff66}
.gift-progress.is-visible:not(.gift-progress-paused) .gift-progress-fill{animation-play-state:running}
.gift-progress-complete .gift-progress-fill{animation:none;background-position:50% 0}
.gift-progress-light{position:absolute;inset:0;background:linear-gradient(100deg,transparent,#fffdf738,transparent);opacity:0;border-radius:inherit}
.gift-progress-advancing .gift-progress-light{animation:gift-progress-shine .85s ease-out both}
.gift-progress-milestones{position:absolute;inset:0;display:flex;justify-content:space-evenly;pointer-events:none}
.gift-progress-milestones i{display:block;width:2px;height:100%;background:#fffdf77d}
.gift-progress-caption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;font-size:12px;font-weight:750;color:#476454;margin-top:8px}
.series-cue .gift-progress{margin-top:8px}.series-cue .gift-progress-track{height:10px}
.series-gift .button{margin:16px 0 0}
@keyframes gift-progress-colors{from{background-position:0 0}to{background-position:100% 0}}
@keyframes gift-progress-shine{0%{opacity:0;transform:translateX(-70%)}35%{opacity:1}100%{opacity:0;transform:translateX(70%)}}
@media(max-width:760px){.gift-progress{margin-top:13px}.gift-progress-track{height:14px}.gift-progress-caption{font-size:11px;line-height:1.6}}
@media(prefers-reduced-motion:reduce){.gift-progress-fill{animation:none!important;transition:none!important}.gift-progress-light{display:none}}

.tomo.tomo-wears-cap img[src*="leaves"],.tomo.tomo-wears-cap img[src*="ears-round"]{display:none}
.series-history{margin-top:24px}.history-row{padding:14px 0;border-bottom:1px solid #e4e6db}.history-row:last-child{border-bottom:0}.history-row strong{display:block;font-size:15px}.history-row span{display:block;margin-top:5px;font-size:13px;color:#657668}
.tomo .tomo-cap-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}

/* Fixed shoulder tissue stays under every fallback arm animation. */
:is(.tomo,.tomo-avatar,.tomo-mini)::before{content:"";position:absolute;inset:0;pointer-events:none;background:url("assets/shoulder-roots-mint-v9.webp?v=tomo2d-approved-20261023-v1") center/contain no-repeat}
:is(.tomo,.tomo-avatar,.tomo-mini).has-3d::before{display:none}

.national-curriculum-link{display:block;margin:0 0 18px;padding:14px 20px;border:1px solid #ffffffcd;border-radius:20px;background:#ffffff70;color:#355e52;font-size:14px;font-weight:800;text-decoration:none;box-shadow:inset 0 1px 1px #fff}.national-curriculum-link:hover{background:linear-gradient(110deg,#d9eee3c9,#e6ddf2c9)}.national-curriculum-link:focus-visible{outline:3px solid #416d5c;outline-offset:3px}.national-curriculum-link[hidden]{display:none}

/* Approved plush layers share the 1254-unit canvas; keep collection colours and timing. */
.tomo>img[src*="collection/glasses-"]{transform-origin:0 0;transform:translate(.119617% ,1.834131%) scaleX(1.029)}
.tomo>img:is([src*="collection/cap-orange"],[src*="collection/crown-king"]){translate:.637959% 1.993620%}
.tomo>img:is([src*="collection/held-"],[src*="collection/grip-"]){translate:0 5.183413%}

/* The approved eye covers need the same closed-eye strokes as the website. */
:is(.tomo,.tomo-avatar)>.tomo-lid-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:0;animation:tomo-blink 7s infinite}
.tomo-avatar>.tomo-lid-lines{animation-duration:6.5s}
.tomo-avatar.has-3d>.tomo-lid-lines{display:none}

/* Corrections d’interface du 28 octobre 2026 : fin de leçon repliée pour l’adulte, consigne visible sur mobile et cibles tactiles d’au moins 44 px. */
.session-summary .session-child-facts{margin:0;font-size:1.05rem}
section.glass.session-summary{padding:16px 20px;margin:16px 0}
.session-adult-notes{margin-top:12px}
.session-adult-notes>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:800}
.session-adult-notes[open]>summary{margin-bottom:8px}
.session-adult-notes>summary::before{content:"▸";display:inline-block;margin-right:8px;transition:transform .2s}.session-adult-notes[open]>summary::before{transform:rotate(90deg)}
@media(prefers-reduced-motion:reduce){.session-adult-notes>summary::before{transition:none}}
body.in-ce1-mission #mobile-adult-entry{display:none!important}
.short-session-controls{margin-top:18px}
/* Le lien vers les parcours États-Unis et Japon reste caché pour un élève du programme français. */
.national-curriculum-link[hidden]{display:none!important}
@media(max-width:760px){
 :is(.lang-picker,.subject-switch,.collection-filters,.chat-actions,.short-session-controls,.national-audio-actions) button,.toc-lesson button,.choice-grid button,button.text-button,.secondary-action,.preview-control,.national-curriculum-link{min-height:44px}
 .toc-lesson button{min-width:44px;width:44px;height:44px}
 .lang-picker button,.subject-switch button{padding-top:10px;padding-bottom:10px}
 :is(.session-head,.intro,.reference,.inventory-panel) a,.note>a{display:inline-flex;align-items:center;min-height:44px}
 input[type=checkbox]{min-width:24px;min-height:24px}
 .choice-grid button strong{overflow-wrap:break-word}
}
/* Les mots ne se coupent plus au milieu (« Understan/d ») : on ne casse qu’un mot plus large que la carte. */
.choice-grid button strong{overflow-wrap:break-word}
/* Exemple intégré au site (iframe, ?demo=1) : un seul Tomo à l’écran. Le Tomo du site est déjà à côté de l’écran,
   donc l’accueil de l’exemple ne montre ni son Tomo ni sa bulle, et Tomo ne passe pas la tête au-dessus des modules (11 novembre 2026). */
html[data-framed] :is(.hero>.tomo,.hero>.hero-bubble,.da-peek){display:none!important}
/* Récap du Tomo personnalisé après chaque cadeau (15 novembre 2026) */
.tomo-recap{display:grid;justify-items:center;gap:14px}
.tomo-recap-stage{position:relative;width:min(100%,320px);aspect-ratio:1}
.tomo-recap-stage .gift-glow{opacity:1}
#tomo-recap-view{position:absolute;inset:0;pointer-events:none}
#tomo-recap-view>.tomo{position:absolute;inset:0;width:100%;height:100%;margin:0}
#tomo-recap-view.has-3d>.tomo{display:none}#tomo-recap-view canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.tomo-recap-new{position:relative;display:flex;align-items:center;gap:12px;padding:18px 22px 12px;border-radius:20px;background:linear-gradient(135deg,#ffffffcc,#ffffff80);border:1px solid #ffffffcf;box-shadow:inset 0 1px 1px #fff,0 10px 24px -16px #24384a66}
.tomo-recap-new .victory-label{position:absolute;left:50%;top:0;translate:-50% -50%;padding:4px 10px;border-radius:999px;background:#438775;color:#fff;font:900 11.5px/1.2 "Nunito Sans",system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.tomo-recap-new h2{margin:0;font-family:"Fraunces Variable","Fraunces",Georgia,serif}
.tomo-recap-count{margin:0;font-weight:800}
.tomo-recap-heading{margin:4px 0 0;font-size:15px}
.tomo-recap-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.tomo-recap-list li{display:flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:999px;background:linear-gradient(128deg,#ffffffee,#ffffffb8);box-shadow:0 0 0 1px #ffffffcc,0 8px 18px -14px #24384a66;font-weight:700}
.tomo-recap-list .reward-token{width:34px;height:34px}
.tomo-recap .exercise-actions{margin-top:6px}
.tomo-recap-stage,.tomo-recap-new{@media (prefers-reduced-motion:no-preference){animation:tomo-recap-pop .5s cubic-bezier(.2,.8,.3,1.2) both}}
.tomo-recap-new{animation-delay:.15s}
@keyframes tomo-recap-pop{from{opacity:0;scale:.86}to{opacity:1;scale:1}}
/* Veilleuse : le texte passe en clair, donc les cartes du récap passent en verre sombre (aperçu du 15/11/2026). */
:root[data-veilleuse="on"] :is(.tomo-recap-new,.tomo-recap-list li){background:linear-gradient(180deg,#ffffff1f 0,#ffffff00 45%),linear-gradient(135deg,#3d528cd6,#2a3a70d0);border-color:#ffffff40;box-shadow:inset 0 1px 1px #ffffff40,0 10px 24px -16px #0008}
