:root{--paper:#f7f7f2;--ink:#142c4f;--green:#154fcd;--line:#d7e0ea;--muted:#50627b;--yellow:#ffce44;--blue:#154fcd}*{box-sizing:border-box}body{font-family:"Trebuchet MS","Segoe UI",sans-serif;background:var(--paper);color:var(--ink)}h1,h2,h3,.mode-title{font-family:"Trebuchet MS","Segoe UI",sans-serif;letter-spacing:-.035em}.layout{display:block}.sidebar{position:sticky;top:0;width:100%;height:auto;padding:16px 4%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;background:#153f99;color:white;border:0;z-index:10}.brand{display:flex;flex-direction:row;gap:12px;color:white;font-size:20px;line-height:1.05;letter-spacing:-.02em}.brand small{font-family:"Segoe UI",sans-serif;font-size:11px;color:#dce8ff;letter-spacing:.025em;margin-top:5px}.brand .mark{width:48px;height:48px;border:2px solid #ffc83d;background:#ffce44;color:#16449f;display:grid;place-items:center;font-size:35px;border-radius:16px;transform:rotate(-8deg)}.brand br{display:none}.nav{display:flex;gap:7px;margin:0}.nav button{background:transparent;color:#e4edff;font-size:14px;min-height:44px;border:0;padding:10px 17px;border-radius:12px}.nav button.active{background:#fff;color:#154398}.nav .number,.sidebar-note{display:none}.shell{margin:0;width:100%;max-width:none}.topbar{height:auto;min-height:65px;max-width:1280px;margin:auto;padding:10px 30px;border:0}.status{font-size:12px}.status:before{background:#1d8b69}.top-controls button{border-color:#cbd8ec;background:white;font-size:12px;min-height:44px}.top-controls .stop{color:#9c2525}.topbar .status.long{max-width:460px}main{padding:12px 30px 60px;max-width:1280px;margin:auto}.atlas-hero{display:grid;grid-template-columns:1.1fr 1fr;min-height:310px;background:#fce8b3;border:1px solid #ead29a;border-radius:26px;overflow:hidden;position:relative;margin:12px 0 30px}.atlas-copy{padding:36px 40px;z-index:1}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.12em;font-weight:800;color:#46618c;margin-bottom:15px}.atlas-copy h1{font-size:55px;font-weight:800;line-height:1.05;margin:0 0 16px}.atlas-copy h1 span{color:#164ec5}.atlas-copy p{font-size:15px;line-height:1.65;color:#354964}.hero-labels{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.hero-labels span{font-size:11px;font-weight:700;border:1px solid #dab854;border-radius:6px;padding:6px 10px;background:#fff6da}.hero-map{position:relative;background:repeating-linear-gradient(0deg,transparent,transparent 39px,#dccb9e55 40px),repeating-linear-gradient(90deg,transparent,transparent 39px,#dccb9e55 40px);display:grid;place-items:center}.map-orbit{position:absolute;width:330px;height:240px;border:2px dashed #b29b6770;border-radius:50%;transform:rotate(-25deg)}.map-label,.map-stamp,.map-pin{position:absolute;font-size:12px;font-weight:800;transform:rotate(-6deg)}.map-label{top:30px;right:30px;letter-spacing:.1em;color:#88784e}.map-stamp{bottom:20px;right:25px;color:#745c2a;border:2px solid #9d8245;padding:8px;border-radius:4px;transform:rotate(8deg)}.map-pin{background:#fff;border:1px solid #dac792;border-radius:8px;padding:8px 12px;box-shadow:0 4px 0 #d6bd7a55}.pin-a{left:3%;top:50px}.pin-b{right:5%;top:110px}.section-heading{margin:24px 0 18px;align-items:end}.section-heading h2{font-size:29px;font-weight:800;margin:0}.section-heading .eyebrow{margin-bottom:5px}.section-heading>span{font-size:12px;color:#536984}.language-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.language-card{position:relative;min-height:315px;padding:18px 18px 14px;border-radius:21px;border:1px solid #cad9e6;box-shadow:0 5px 0 #dce4eb80;background:#fff;overflow:hidden;transition:transform .16s ease,box-shadow .16s ease;text-align:left}.language-card:hover{transform:translateY(-3px);border-color:#1e58cf;box-shadow:0 8px 0 #dce4eb80}.language-card:before{content:"";position:absolute;inset:0 0 94px;background:#e5eefc;z-index:0}.language-pt:before{background:#e1f1ea}.language-kr:before{background:#fff0d8}.language-jp:before{background:#f5e3e8}.language-fr:before{background:#f9e3d2}.language-de:before{background:#e7e9f4}.language-it:before{background:#e2efed}.card-top{position:relative;z-index:1;margin:0!important;align-items:center;gap:12px}.native{font-size:17px;color:#335478}.flag{width:34px;height:23px;flex-shrink:0;border:1px solid #0002;box-shadow:0 2px 4px #173c6310;border-radius:3px;vertical-align:middle}.mascot{display:block;width:205px;height:205px;background-image:url('./assets/mascots.png');background-size:400% 200%;background-repeat:no-repeat;position:relative;margin:-3px auto -2px;mix-blend-mode:multiply}.sprite-0{background-position:0 0}.sprite-1{background-position:33.3333% 0}.sprite-2{background-position:66.6667% 0}.sprite-3{background-position:100% 0}.sprite-4{background-position:0 100%}.sprite-5{background-position:33.3333% 100%}.sprite-6{background-position:66.6667% 100%}.mascot-large{width:280px;height:280px;margin:26px 0 -5px;z-index:1}.card-copy{position:relative;z-index:1}.language-card h3{font-size:23px;margin:6px 0}.language-card p{font-family:"Segoe UI",sans-serif;font-size:11px;color:#53667e;margin:0 0 15px}.card-bottom{font-size:10px;margin:0;padding:0;border:0;justify-content:space-between}.arrow{background:#e7effe;color:#154fcd;width:29px;height:29px;border-radius:50%;display:grid;place-items:center;font-size:18px}.resume{margin:18px 0 25px;padding:20px 24px;border:1px solid #88abc8;border-radius:16px;background:#eaf4ff}.primary{background:#154fcd;color:white;border-color:#154fcd;border-radius:10px}.primary:hover{background:#0b3dab}.language-hero{background:#e6effc;padding:24px 30px;border-radius:22px;display:flex;align-items:center;justify-content:space-between;min-height:220px;margin-bottom:18px}.language-hero h1{font-size:42px;margin:12px 0}.language-hero>.mascot{flex-shrink:0;margin:0}.language-hero .eyebrow{display:flex;align-items:center;gap:10px}.language-hero p{max-width:650px}.sound-guide{padding:18px 22px;background:#fff9e7;border:1px solid #e6d59b;border-radius:12px;line-height:1.7}.sound-guide summary{font-weight:700;cursor:pointer}.lesson-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.lesson-card{display:grid;grid-template-columns:45px 1fr;gap:10px;padding:20px;background:white;border:1px solid #d6dfed;border-radius:15px;align-items:start}.lesson-index{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#edf3ff;color:#205ac5;font-weight:800}.lesson-card h3{font-size:22px;margin:4px 0 8px}.lesson-card p{font-size:12px;line-height:1.6;margin:0}.lesson-skills{display:block;font-size:10px;color:#546c8e;margin-top:10px}.lesson-actions{grid-column:2;margin:8px 0 0}.lesson-actions button{min-height:40px;font-size:12px;padding:8px 18px}.done-label{color:#197656;margin-top:8px!important}.lesson-wrap{max-width:820px;margin:15px auto}.exercise{border-radius:22px;border:1px solid #cddbef;background:white;box-shadow:0 5px 0 #dde5ef66;padding:35px}.exercise h1{font-size:31px;font-weight:800}.grammar-rule{line-height:1.8;background:#fff6d8;border-left:4px solid #eab731;padding:20px;border-radius:8px;font-size:17px}.phrase{font-size:32px;line-height:1.5;overflow-wrap:anywhere}.word-face{padding:24px 8px}.audio-controls{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 12px}.audio-controls button{min-height:44px;padding:11px 16px;font-size:13px}.built-phrase{min-height:90px;padding:20px;border:2px dashed #b9ccea;border-radius:14px;background:#f3f7ff;font-size:27px;margin:20px 0;overflow-wrap:anywhere}.token-bank{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}.token{padding:12px 17px;font-size:19px;background:#fff7db;border:1px solid #dfc671;border-radius:10px}.token:disabled{opacity:.3}.speaking-steps{line-height:2;padding-left:25px}.skills-report{background:#eaf2ff;border:1px solid #c4d5ed;padding:22px;border-radius:15px;margin:24px 0}.skill-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.skill-metrics p{font-size:12px}.skill-metrics strong{display:block;font-size:32px;color:#154fcd}.access-panel{width:min(650px,95vw);margin:60px auto;background:white;border:1px solid #c3d2e8;border-radius:22px;padding:35px}.access-panel input{width:100%;margin:15px 0;min-height:50px}.below-note{margin:30px 0}.nav button:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #e69a00;outline-offset:4px}.quiet .atlas-hero{grid-template-columns:1fr;background:#fff;border-color:#b7c3d0}.quiet .language-grid{grid-template-columns:repeat(3,1fr)}.quiet .language-card{min-height:155px;background:#fff}.quiet .language-card:before{display:none}.quiet .card-copy{margin-top:25px}.quiet .language-hero{background:white;border:1px solid #cbd5df}.quiet .atlas-copy{padding:25px}.quiet .atlas-copy h1{font-size:40px}.quiet .hero-labels span{background:#f7f7f7;border-color:#aaa;color:#333}.quiet .sidebar{background:#243c58}.quiet .grammar-rule{background:#f3f5f7;border-color:#7289a2}.quiet .token{background:#f5f7fa;border-color:#9aacc1}.quiet .flag{filter:saturate(.7)}.banner{max-width:1220px;margin:auto}.large-text{font-size:20px}.large-text .language-card p,.large-text .card-bottom,.large-text .lesson-card p{font-size:15px}
@media(max-width:1000px){.language-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sidebar{padding:14px 22px}.nav button{padding:10px 12px}.atlas-copy{padding:32px}.atlas-copy h1{font-size:45px}.hero-map .mascot-large{width:240px;height:240px}.map-pin{display:none}.lesson-list{grid-template-columns:1fr}.quiet .language-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.sidebar{position:relative;display:block;padding:17px 18px}.brand{font-size:19px;gap:12px}.brand small{display:block;font-size:10px}.brand .mark{width:39px;height:39px;font-size:27px}.nav{margin-top:16px;display:grid;grid-template-columns:repeat(4,1fr);gap:5px;overflow:visible}.nav button{padding:10px 5px;font-size:12px;min-height:44px;justify-content:center}.brand br{display:none}.topbar{padding:10px 15px;gap:8px;align-items:center;flex-wrap:wrap}.topbar .status.long{max-width:none;font-size:10px}.top-controls{gap:7px}.top-controls button{font-size:10px;padding:8px;min-height:40px}main{padding:5px 15px 40px}.atlas-hero{grid-template-columns:1fr;min-height:auto;border-radius:20px;margin-top:8px}.atlas-copy{padding:25px 23px 5px}.atlas-copy h1{font-size:40px}.atlas-copy p{font-size:13px}.hero-labels{margin-top:14px;gap:5px}.hero-labels span{font-size:10px;padding:5px 7px}.hero-map{height:195px}.hero-map .mascot-large{width:205px;height:205px;margin:0}.map-label{top:15px;right:12px;font-size:9px}.map-stamp{font-size:10px;bottom:14px;right:12px}.map-orbit{width:260px;height:140px}.language-grid,.quiet .language-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.language-card{padding:13px 11px;min-height:250px;border-radius:16px}.mascot{width:145px;height:145px;margin:5px auto}.language-card:before{bottom:82px}.language-card h3{font-size:17px;letter-spacing:-.04em}.language-card p{font-size:10px;line-height:1.4;min-height:28px;margin-bottom:6px}.card-bottom{font-size:9px;gap:3px}.card-bottom .arrow{width:22px;height:22px;flex-shrink:0;font-size:15px}.card-top{gap:4px}.native{font-size:12px}.flag{width:27px;height:19px}.section-heading{display:block}.section-heading h2{font-size:27px;margin-bottom:6px}.section-heading>span{font-size:10px}.quiet .language-card{min-height:180px}.language-hero{padding:20px;min-height:170px}.language-hero>.mascot{display:none}.language-hero h1{font-size:31px}.language-hero .eyebrow{font-size:9px;line-height:1.6;letter-spacing:.05em}.language-hero p{font-size:13px}.lesson-card{grid-template-columns:35px 1fr;padding:16px;gap:10px}.lesson-card h3{font-size:21px}.lesson-index{width:30px;height:30px;font-size:13px}.lesson-skills{font-size:10px}.lesson-card p{font-size:11px}.lesson-actions{grid-column:2}.exercise{padding:23px 18px;border-radius:17px}.exercise h1{font-size:27px}.grammar-rule{font-size:15px;padding:16px}.phrase{font-size:27px}.audio-controls{gap:7px}.audio-controls button{font-size:12px}.audio-controls .primary{width:100%}.skill-metrics{grid-template-columns:repeat(2,1fr)}.token{font-size:17px;padding:10px 14px}.route{font-size:10px;flex-wrap:wrap}.language-card .mascot{max-width:100%}.top-controls .shorten-top{display:inline-block}.quiet .atlas-copy{padding:25px}.quiet .atlas-copy h1{font-size:34px}.access-panel{margin:30px auto;padding:25px}.exercise-footer>.primary{width:auto;min-width:110px}.exercise-footer .left-actions{flex-wrap:wrap}.exercise-footer{flex-wrap:wrap}.progress-track{height:7px}.word{overflow-wrap:anywhere}.pair-button{overflow-wrap:anywhere}.large-text .language-grid{grid-template-columns:1fr}.large-text .language-card{min-height:200px}.large-text .language-card .mascot{float:right}.large-text .language-card h3{font-size:24px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.brand,.language-card h3,.mode-card .mode-title,.language-hero h1,.exercise h1,.collection-card .word{font-family:"Trebuchet MS","Segoe UI",sans-serif}.brand{font-weight:800}.language-card h3{font-weight:800}.language-card{padding-bottom:18px}.language-card:before{bottom:103px}.card-copy{padding-top:8px}.native{font-family:"Segoe UI",sans-serif}@media(max-width:700px){.language-card:before{bottom:100px}}

.script-table>div{display:grid;grid-template-columns:1fr 1.6fr;gap:20px;padding:13px 0;border-bottom:1px solid #dfd9c5}.script-table strong{font-size:20px;letter-spacing:.025em}.script-table span{font-size:13px}.sound-guide p{font-size:14px}@media(max-width:700px){.script-table>div{grid-template-columns:1fr;gap:5px}}

/* The expedition continues inside each language, with a quiet alternative. */
body{--route:#2355bd;--route-soft:#e8f0ff;--route-line:#bfceed}
body[data-route="cn"]{--route:#b53e39;--route-soft:#fff0e2;--route-line:#e8c5aa}
body[data-route="pt"]{--route:#087566;--route-soft:#e5f4ed;--route-line:#afd5c7}
body[data-route="kr"]{--route:#955006;--route-soft:#fff1d6;--route-line:#e5cb97}
body[data-route="jp"]{--route:#a3396a;--route-soft:#fbe8f0;--route-line:#e5bdd1}
body[data-route="fr"]{--route:#2554bb;--route-soft:#e8efff;--route-line:#bfceef}
body[data-route="de"]{--route:#226d80;--route-soft:#e4f2f3;--route-line:#b5d5db}
body[data-route="it"]{--route:#167148;--route-soft:#e6f4e8;--route-line:#b7d9bb}
body[data-route]:not([data-route=""]) .primary{background:var(--route);border-color:var(--route)}
body[data-route]:not([data-route=""]) .primary:hover{filter:brightness(.92)}
.language-hero{background:var(--route-soft);border:1px solid var(--route-line)}
.lesson-index{font-family:inherit;font-weight:800;color:var(--route);background:var(--route-soft)}
.lesson-card{border-left:5px solid var(--route-line);border-radius:16px;box-shadow:0 3px 0 #193e6c08}
.mode-guide{position:relative;display:flex;justify-content:space-between;align-items:center;gap:25px;overflow:hidden;padding:28px 35px;min-height:235px;background:var(--route-soft);border:1px solid var(--route-line);border-radius:24px;margin:8px 0 26px}
.mode-guide:after{content:"";position:absolute;width:260px;height:170px;right:8px;top:25px;border:2px dashed var(--route-line);border-radius:50%;transform:rotate(-18deg);pointer-events:none}
.mode-guide>div{z-index:1}.mode-guide .eyebrow{display:flex;align-items:center;gap:10px;color:var(--route);margin:0 0 14px;font-size:11px}
.mode-guide h1{font-family:"Trebuchet MS","Segoe UI",sans-serif;font-weight:800;font-size:41px;line-height:1.15;margin:0 0 12px;color:#173453}
.guide-note{font-size:15px;line-height:1.6;max-width:460px;margin:0;color:#435c72}
.topic-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}.topic-tags span{font-size:11px;padding:6px 10px;border-radius:8px;background:#fff9;color:#29475e;border:1px solid var(--route-line)}
.guide-portrait{flex:0 0 190px;display:flex;flex-direction:column;align-items:center;position:relative}
.guide-portrait .mascot{width:180px;height:180px;margin:0}.guide-portrait>span:not(.mascot){font-size:10px;font-weight:700;color:var(--route);padding:5px 10px;background:#fffc;border-radius:20px;white-space:nowrap}
.format-heading{margin-top:8px;align-items:center}.format-heading h2{font-size:28px}
.expedition-modes{gap:18px}.expedition-modes .mode-card{display:flex;flex-direction:column;align-items:flex-start;position:relative;min-height:290px;padding:26px 24px 22px;border-radius:20px;overflow:hidden;border:1px solid #cbd7e5;box-shadow:0 5px 0 #dce4ed70;background:white;color:#173453;text-align:left}
.expedition-modes .mode-card:hover{border-color:var(--route);transform:translateY(-2px)}
.expedition-modes .mode-explore{background:var(--route-soft);border-color:var(--route-line)}
.expedition-modes .mode-short{background:#fff6da;border-color:#e3d39c}.expedition-modes .mode-play{background:#e8f1ff;border-color:#c4d6ee}
.expedition-modes .mode-symbol{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;font-family:inherit;font-size:18px;font-weight:800;color:var(--route);background:#fffc;border:1px solid #fff;margin:0 0 16px}
.mode-kicker{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.09em;color:#526b82;margin-bottom:8px}
.expedition-modes .mode-title{font-size:26px;line-height:1.15;font-weight:800;margin:0 0 14px;letter-spacing:-.04em}
.expedition-modes .mode-card p{font-family:"Segoe UI",sans-serif;font-size:13px;line-height:1.65;color:#38536b;margin:0 0 20px}
.mode-link{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:auto;padding-top:14px;border-top:1px solid #29466720;font-size:12px;font-weight:800;color:var(--route)}.mode-link>span{font-size:20px}
.comfort-note{font-size:12px;line-height:1.7;margin:24px 0 0;padding:15px 20px;border-radius:12px;background:#eef2f6;color:#49617a}
.mentor-ribbon{display:flex;align-items:center;gap:16px;min-height:102px;padding:10px 18px 10px 8px;border:1px solid var(--route-line);border-radius:21px 21px 10px 10px;background:var(--route-soft);margin-bottom:14px;overflow:hidden}
.mentor-avatar{width:92px;flex:0 0 92px;height:88px;display:grid;place-items:center}.mentor-avatar .mascot{width:100px;height:100px;margin:-7px 0 0}
.mentor-copy{flex:1;min-width:0}.mentor-copy p{font-family:"Segoe UI",sans-serif;font-size:11px;font-weight:700;color:var(--route);margin:0 0 9px;display:flex;gap:9px;align-items:center;line-height:1.5}.mentor-copy .flag{width:25px;height:17px}.mentor-copy strong{font-family:"Trebuchet MS","Segoe UI",sans-serif;font-size:18px;line-height:1.35;font-weight:800;display:block;max-width:570px}
.step-badge{flex:0 0 65px;text-align:center;background:#fffd;padding:10px 8px;border-radius:13px;font-size:12px;color:#45607b}.step-badge b{font-size:26px;color:var(--route)}.step-badge small{display:block;font-size:10px;margin-top:2px}
.lesson-wrap{max-width:900px}.lesson-wrap .progress-track{height:7px;border-radius:6px;overflow:hidden;margin:0 0 17px}.lesson-wrap progress::-webkit-progress-value{background:var(--route)}.lesson-wrap progress::-moz-progress-bar{background:var(--route)}
.lesson-wrap .route{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;margin:0 0 20px;padding:0;font-size:11px;letter-spacing:0;text-transform:none}
.lesson-wrap .route>span,.lesson-wrap .route>strong{display:flex;align-items:center;gap:7px;padding:7px 12px;border:1px solid #d4deea;border-radius:20px;background:#fff;color:#5b6e84}
.lesson-wrap .route>strong{background:var(--route-soft);border-color:var(--route-line);color:var(--route)}
.lesson-wrap .route i,.lesson-wrap .route strong>span{font:700 10px "Segoe UI",sans-serif;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#edf1f6;color:#52677e;font-style:normal}
.lesson-wrap .route strong>span{color:white;background:var(--route)}
.lesson-wrap .exercise{border-top:5px solid var(--route);padding-top:27px}.exercise .eyebrow{color:var(--route)}
.exercise .word-face{border-radius:18px;background:var(--route-soft);border:1px solid var(--route-line);margin:20px 0;padding:25px 18px}
.exercise .word{font-size:56px;line-height:1.35;color:#173453}.exercise .meaning{font-family:"Segoe UI",sans-serif;font-size:19px}.exercise .reading{font-size:19px;color:#4c6479;margin-top:8px}
.exercise .grammar-rule{background:var(--route-soft);border-color:var(--route);font-size:16px;line-height:1.8}
.exercise .pair-button.selected{border-color:var(--route);background:var(--route-soft)}
.status{font-family:"Segoe UI",sans-serif!important}.quiet{--route:#34506b!important;--route-soft:#f3f5f7!important;--route-line:#cbd3da!important}
.quiet .mode-guide:after{display:none}.quiet .mode-guide{min-height:170px;background:white}.quiet .expedition-modes .mode-card{background:white;border-color:#c5cfdc;box-shadow:none}.quiet .mentor-ribbon{min-height:82px;background:#f6f7f8;padding-left:20px}.quiet .exercise .word-face{background:white;border-color:#d4dce6}.quiet .comfort-note{background:#f4f5f6}
@media(min-width:780px) and (max-width:1000px){.lesson-list{grid-template-columns:repeat(2,minmax(0,1fr))}.lesson-card{padding:17px;gap:9px;grid-template-columns:33px 1fr}.lesson-card h3{font-size:20px}.lesson-index{width:30px;height:30px}.lesson-skills{font-size:9px}}
@media(max-width:900px){.mode-guide{padding:24px}.mode-guide h1{font-size:34px}.guide-portrait{flex-basis:160px}.guide-portrait .mascot{width:160px;height:160px}.expedition-modes .mode-card{padding:22px 18px;min-height:300px}.expedition-modes .mode-title{font-size:23px}.mode-link{font-size:11px}}
@media(max-width:700px){.mode-guide{padding:20px 18px;gap:10px;min-height:185px;border-radius:19px;align-items:center;margin-bottom:21px}.mode-guide:after{right:-60px;width:175px;height:140px}.mode-guide h1{font-size:29px}.mode-guide .eyebrow{font-size:9px;gap:6px;letter-spacing:.055em}.guide-note{font-size:12px}.guide-portrait{flex-basis:94px;align-self:flex-start}.guide-portrait .mascot{width:102px;height:102px;margin-top:18px}.guide-portrait>span:not(.mascot){display:none}.topic-tags{gap:5px;margin-top:13px}.topic-tags span{font-size:9px;padding:5px 7px}.format-heading h2{font-size:25px}.expedition-modes{gap:12px}.expedition-modes .mode-card{min-height:185px;padding:20px;display:grid;grid-template-columns:48px 1fr;column-gap:16px;row-gap:0}.expedition-modes .mode-symbol{display:grid;grid-column:1;grid-row:1/4;margin:0;width:45px;height:45px;align-self:start}.mode-kicker{grid-column:2;font-size:9px;margin:0 0 6px}.expedition-modes .mode-title{grid-column:2;font-size:24px;margin-bottom:10px}.expedition-modes .mode-card p{grid-column:2;font-size:12px;margin-bottom:13px}.mode-link{grid-column:2;font-size:11px;padding-top:8px}.comfort-note{font-size:11px;padding:14px 16px}.mentor-ribbon{gap:9px;padding:9px 10px 9px 3px;min-height:94px;border-radius:17px 17px 8px 8px}.mentor-avatar{flex-basis:64px;width:64px;height:70px}.mentor-avatar .mascot{width:76px;height:76px;margin:0}.mentor-copy p{font-size:9px;gap:5px;margin-bottom:6px;flex-wrap:wrap}.mentor-copy .flag{width:21px;height:15px}.mentor-copy strong{font-size:14px;line-height:1.35}.step-badge{flex-basis:44px;padding:9px 4px;font-size:10px}.step-badge b{font-size:22px}.step-badge small{font-size:8px}.lesson-wrap .route{gap:6px;margin-bottom:16px}.lesson-wrap .route>span,.lesson-wrap .route>strong{padding:6px 8px;font-size:10px;gap:5px}.lesson-wrap .route i,.lesson-wrap .route strong>span{width:16px;height:16px;font-size:9px}.lesson-wrap .exercise{padding:23px 18px;border-top-width:4px}.exercise .word{font-size:44px}.exercise .word-face{padding:20px 12px;margin:16px 0}.exercise .reading{font-size:17px}.exercise .meaning{font-size:17px}.exercise .grammar-rule{font-size:15px}.quiet .mentor-ribbon{padding-left:15px;min-height:80px}}

.expedition-modes .mode-explore:hover{background:var(--route-soft)}.expedition-modes .mode-short:hover{background:#fff1c9}.expedition-modes .mode-play:hover{background:#dfeaff}.quiet .expedition-modes .mode-card:hover{background:#f5f6f7}

/* Each exercise keeps the same actions, with readable work areas. */
.exercise>.eyebrow{display:inline-flex;align-items:center;gap:9px;background:var(--route-soft);border:1px solid var(--route-line);padding:6px 11px;border-radius:8px;letter-spacing:.08em;font-size:10px;margin-bottom:15px}
.exercise>.eyebrow:before{content:"";display:block;width:7px;height:7px;border:2px solid var(--route);border-radius:50%}
.exercise h1{line-height:1.22;max-width:690px;margin-bottom:20px}
.exercise .instruction{font-family:"Segoe UI",sans-serif;font-size:16px;line-height:1.75;color:#334d69}
.exercise .note{background:#f5f7fb;border-left:3px solid var(--route-line);border-radius:0 10px 10px 0;padding:15px 18px;color:#415a73;font-size:13px;line-height:1.75}
.exercise .audio-controls{padding:16px;margin:22px 0 8px;border:1px solid var(--route-line);border-radius:15px;background:var(--route-soft);align-items:center}
.exercise #audio-status{padding-left:6px;font-size:11px;margin-bottom:24px;color:#50647b}
.exercise .audio-controls .primary{font-weight:700;box-shadow:0 3px 0 #17345315}
.exercise .audio-controls button:not(.primary){background:#fff;border-color:var(--route-line);color:#304b64}
.exercise .answer-button{border:1px solid #c7d5e6;border-radius:14px;min-height:64px;font-family:"Segoe UI",sans-serif;background:#f9fbff;font-size:18px;box-shadow:0 3px 0 #dde5ee60;line-height:1.5;overflow-wrap:anywhere}
.exercise .answer-button:hover:not(:disabled){background:var(--route-soft);border-color:var(--route);box-shadow:0 3px 0 var(--route-line)}
.exercise .answer-index{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;font-size:12px;font-weight:800;color:var(--route);background:var(--route-soft);border-radius:9px}
.exercise .answer-form{padding:22px;border:1px solid var(--route-line);border-radius:16px;background:var(--route-soft)}
.exercise .answer-form label,.exercise .reflection-group label{font-size:14px;font-weight:700;color:#29435d}
.exercise .answer-form input{border:2px solid var(--route-line);min-height:66px;border-radius:12px;color:#173453;background:white}
.exercise .answer-form input:focus{border-color:var(--route)}
.exercise .input-tools button{background:white;border-color:var(--route-line);min-height:44px;min-width:44px;font-size:18px}
.exercise .submit-row button:not(.primary){background:white;border-color:var(--route-line)}
.exercise .pair-grid{padding:18px;background:#f3f6fa;border:1px solid #d6dfeb;border-radius:16px;gap:14px 24px}
.exercise .pair-button{border:1px solid #c3d3e5;border-radius:12px;background:white;font-size:18px;min-height:65px;overflow-wrap:anywhere;line-height:1.5}
.exercise .pair-button:hover:not(:disabled){background:var(--route-soft);border-color:var(--route)}
.exercise .pair-button.selected{outline:2px solid var(--route);background:var(--route-soft)}
.exercise .pair-button.matched{background:#e4f3ed;border-color:#90c4b0;color:#275744;opacity:1}
.exercise .built-phrase{background:var(--route-soft);border:2px dashed var(--route-line);font-family:"Segoe UI",sans-serif;font-size:29px;min-height:100px;line-height:1.7;color:#173453;padding:20px 24px}
.exercise .built-phrase:empty:before{content:"Нажимай на слова снизу";font:14px/1.6 "Segoe UI",sans-serif;color:#5b6e83}
.exercise .token{border:1px solid #d9b846;background:#fff2bd;color:#433810;min-height:49px;font-family:"Segoe UI",sans-serif;font-weight:600;box-shadow:0 3px 0 #e5cd7b80;border-radius:12px}
.exercise .token:hover:not(:disabled){background:#ffe68f;border-color:#b89734}
.exercise .token:disabled{background:#f1f3f6;border-color:#d3dae2;box-shadow:none;opacity:.4}
.exercise .speaking-steps{counter-reset:speak;list-style:none;padding:0;margin:23px 0;display:grid;gap:10px}
.exercise .speaking-steps li{display:flex;align-items:center;gap:13px;font:14px/1.7 "Segoe UI",sans-serif;color:#314d68;padding:11px 15px;background:#f3f6fb;border-radius:12px}
.exercise .speaking-steps li:before{counter-increment:speak;content:counter(speak);flex:0 0 29px;display:grid;place-items:center;height:29px;background:var(--route-soft);color:var(--route);font-weight:800;border:1px solid var(--route-line);border-radius:9px}
.exercise .reflection-group{padding:18px 20px;border:1px solid var(--route-line);border-radius:14px;background:var(--route-soft)}
.exercise .reflection-group select{font-size:14px;border-color:var(--route-line);color:#25435e}
.exercise .feedback{font:15px/1.75 "Segoe UI",sans-serif;border-radius:14px;border:1px solid #9dc9b8;border-left:5px solid #297958;background:#eaf7f0;color:#254d3f;padding:17px 21px}
.exercise .feedback.incorrect,.exercise .feedback.close{background:#fff6dc;border-color:#dbc68b;border-left-color:#94721e;color:#5e4a20}
.exercise .exercise-footer{border-top:1px solid #dce4ee;padding-top:20px;margin-top:26px}
.exercise .exercise-footer>.primary{font-size:14px;font-weight:700;min-width:120px;min-height:48px}
.exercise .left-actions .text-button{color:#45617e;font-size:12px}
.quiet .exercise>.eyebrow,.quiet .exercise .answer-form,.quiet .exercise .reflection-group,.quiet .exercise .audio-controls,.quiet .exercise .pair-grid,.quiet .exercise .speaking-steps li{background:#f5f6f7;border-color:#cbd3da}
.quiet .exercise .answer-button,.quiet .exercise .token,.quiet .exercise .pair-button,.quiet .exercise .built-phrase{background:white;border-color:#b7c4d0;box-shadow:none}
.quiet .exercise .feedback{background:#f2f6f3}.quiet .exercise .feedback.incorrect,.quiet .exercise .feedback.close{background:#f7f5ef}
.large-text .exercise .instruction,.large-text .exercise .note,.large-text .exercise .speaking-steps li,.large-text .exercise .feedback{font-size:18px}
@media(max-width:700px){.exercise .instruction{font-size:15px}.exercise .answer-form{padding:17px 14px}.exercise .audio-controls{padding:13px;gap:8px}.exercise .answer-button{padding:14px 15px;font-size:17px;gap:12px}.exercise .answer-index{flex-basis:26px;width:26px;height:26px}.exercise .pair-grid{padding:12px;gap:10px}.exercise .pair-button{font-size:16px;min-height:60px;padding:12px}.exercise .built-phrase{font-size:25px;padding:17px;min-height:94px}.exercise .speaking-steps li{font-size:13px;padding:10px 12px;gap:10px}.exercise .reflection-group{padding:16px 14px}.exercise .note{font-size:12px}.exercise .feedback{font-size:14px;padding:15px 17px}.exercise .exercise-footer{gap:12px}.exercise .left-actions{gap:0}.exercise .exercise-footer>.primary{margin-left:auto;min-width:115px}.exercise .phrase{font-size:25px}.exercise .word-face>p{font-size:15px}.large-text .exercise .instruction,.large-text .exercise .note,.large-text .exercise .speaking-steps li,.large-text .exercise .feedback{font-size:18px}}

.lesson-contents{padding:21px 24px;border:1px solid #c9d8e9;background:white;border-radius:17px;margin:0 0 25px}.lesson-contents h2{font-size:21px;font-weight:800;margin:0 0 7px}.lesson-contents>p{font:13px/1.65 "Segoe UI",sans-serif;color:#49637c;margin:0 0 17px}.lesson-contents>div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.lesson-contents>div>span{display:grid;grid-template-columns:25px 1fr;gap:4px 6px;padding:12px 9px;border-radius:10px;background:var(--route-soft);border:1px solid var(--route-line)}.lesson-contents b{font-size:10px;grid-row:1/3;color:var(--route);padding-top:3px}.lesson-contents strong{font-size:12px;color:#23435e}.lesson-contents small{font-size:9px;line-height:1.5;color:#506880}
.review-intro{display:flex;align-items:center;gap:16px;padding:17px 20px;background:#e8f2ff;border:1px solid #b5ceed;border-radius:14px;margin:0 0 26px}.review-mark{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;background:#245bc5;color:white;font-size:29px;border-radius:14px}.review-intro strong{font-size:19px;color:#1d4373}.review-intro p{font:13px/1.65 "Segoe UI",sans-serif;color:#405d7c;margin:5px 0 0}.exercise[data-review=true]{border-top-color:#245bc5}.exercise[data-review=true]>.eyebrow{background:#e8f2ff;color:#245bc5;border-color:#b5ceed}.exercise[data-review=true]>.eyebrow:before{border-color:#245bc5}
.break-options{display:grid;gap:10px;margin:20px 0}.break-options button{text-align:left;display:block;background:#f0f5fc;border:1px solid #c4d3e6;border-radius:12px;padding:16px 19px}.break-options strong{display:block;font-size:16px;color:#24486f}.break-options span{display:block;font:12px/1.65 "Segoe UI",sans-serif;color:#50667d;margin-top:4px}.break-instructions{padding-left:23px;display:grid;gap:14px;font:15px/1.8 "Segoe UI",sans-serif;margin:25px 0}.quiet .review-intro,.quiet .lesson-contents>div>span,.quiet .break-options button{background:#f4f5f7;border-color:#c1ccd7}.quiet .review-mark{background:#496078}.quiet .review-intro strong{color:#304b64}.step-badge{flex-basis:76px;white-space:nowrap}.nav button{font-family:"Trebuchet MS","Segoe UI",sans-serif}
@media(max-width:1000px){.lesson-contents>div{grid-template-columns:repeat(3,minmax(0,1fr))}.lesson-contents small{font-size:10px}.lesson-contents strong{font-size:13px}}
@media(max-width:700px){.lesson-contents{padding:18px 16px}.lesson-contents>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lesson-contents>p{font-size:12px}.review-intro{padding:16px 14px;gap:12px}.review-mark{flex-basis:38px;width:38px;height:38px;font-size:26px;border-radius:11px}.review-intro strong{font-size:18px}.review-intro p{font-size:12px}.step-badge{flex-basis:52px}.step-badge b{font-size:20px}.nav button{font-size:11px}.break-instructions{font-size:14px}.break-options button{padding:14px 16px}.break-options strong{font-size:15px}}

dialog:has(.media-grid){max-width:930px;max-height:90vh;overflow:auto}.media-note{background:#eef3fa;border:1px solid #ccd7e5;padding:13px 17px;border-radius:10px;font-size:12px!important;line-height:1.7}.media-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:20px 0}.media-card{background:#edf4ff;border:1px solid #bfd1eb;border-radius:15px;padding:20px}.media-song{background:#fff5d8;border-color:#e4d397}.media-card .eyebrow{font-size:9px;letter-spacing:.06em;margin-bottom:10px}.media-card h3{font-size:20px;line-height:1.4;margin-bottom:12px}.media-card p{font:13px/1.75 Segoe UI,sans-serif}.media-why{padding-top:10px;border-top:1px solid #32506c20}.media-links{display:grid;gap:8px}.media-links a{display:flex;justify-content:space-between;padding:10px 13px;background:white;border:1px solid #b8cbe3;border-radius:9px;font-size:12px;color:#214d90;text-decoration:none;font-weight:700;min-height:44px;align-items:center}.media-card small{display:block;font-size:10px;line-height:1.6;color:#536b80;margin-top:13px}.quiet .media-card{background:white;border-color:#becbd9}@media(max-width:700px){.media-grid{grid-template-columns:1fr}.media-card{padding:18px}.media-card h3{font-size:19px}.media-note{font-size:11px!important}}

.lesson-controlbar{position:sticky;top:90px;z-index:8;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:10px;margin:-5px 0 18px;border:1px solid #b6cbe6;border-radius:18px;background:#fffef8;box-shadow:0 5px 18px #17385f16}
.lesson-controlbar button{display:flex;align-items:center;gap:13px;text-align:left;border:1px solid #b6c9e8;border-radius:12px;padding:15px 18px;min-height:77px;color:#173e79;background:#e7efff;font-family:"Trebuchet MS","Segoe UI",sans-serif}
.lesson-controlbar .control-stop{background:#fff0c9;border-color:#dcc27a;color:#654b12}.lesson-controlbar button:hover:not(:disabled){background:#d9e6ff;border-color:#2455aa}.lesson-controlbar .control-stop:hover:not(:disabled){background:#ffe7a6;border-color:#9d7a22}.control-number{display:grid;place-items:center;flex:0 0 33px;height:33px;background:#fff;border-radius:10px;font-size:15px;font-weight:800}.lesson-controlbar strong{display:block;font-size:21px;line-height:1.2}.lesson-controlbar small{display:block;font:11px/1.5 "Segoe UI",sans-serif;margin-top:5px;color:#486485}.control-stop small{color:#6c592c}
.finish-controls{padding:21px 24px;border:1px solid #c9d8ed;border-left:5px solid #2457ba;border-radius:14px;background:#eaf2ff;margin:22px 0}.finish-controls>p{font-size:15px;font-weight:800;color:#254677;margin:0 0 13px}.finish-controls>div{display:flex;gap:12px;flex-wrap:wrap}.finish-controls button{min-height:51px;font-size:15px;font-weight:700}.finish-controls button:not(.primary){background:white;border-color:#aebfd9;color:#35516f}.finish-controls small{display:block;font:12px/1.7 "Segoe UI",sans-serif;margin-top:14px;color:#4c647e}.finish-note{margin:20px 0 0}
.section-hero{display:flex;position:relative;align-items:center;justify-content:space-between;gap:26px;padding:29px 35px;min-height:215px;border-radius:24px;border:1px solid #c5d5ed;background:#e7efff;overflow:hidden;margin:10px 0 26px}.section-hero>div:first-child{z-index:1;max-width:740px}.section-hero .eyebrow{display:flex;gap:10px;align-items:center;color:#365983;margin:0 0 13px;font-size:10px}.section-hero h1{font-weight:800;font-size:41px;line-height:1.15;color:#183657;margin-bottom:13px}.section-hero>div>p:last-child{font:15px/1.7 "Segoe UI",sans-serif;color:#3b5870;margin:0;max-width:650px}.section-sand{background:#ffedba;border-color:#e6cd8f}.section-mint{background:#e2f3e9;border-color:#b8d8c8}.section-rose{background:#f9e6eb;border-color:#e6becd}.section-mascot{flex:0 0 185px;display:grid;place-items:center}.section-mascot .mascot{width:180px;height:180px;margin:0}.section-compass{flex:0 0 155px;display:flex;flex-direction:column;align-items:center;gap:14px;transform:rotate(8deg)}.section-compass>span{display:grid;place-items:center;width:122px;height:122px;border:2px dashed #778db182;border-radius:50%;font-size:81px;font-weight:800;line-height:1;color:#204d9f;background:#ffffff55}.section-compass small{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#4d6689;font-weight:800}
.game-language-row{max-width:590px;background:white;border:1px solid #cbd9e9;padding:15px 20px;border-radius:13px;gap:20px}.game-language-row label{font-size:13px;font-weight:700;white-space:nowrap}.game-language-row select{font-size:14px;border-color:#c5d4e8;color:#25435f}.atlas-games .mode-card{display:flex;align-items:flex-start;flex-direction:column;min-height:248px;padding:27px;border-radius:21px;border:1px solid #bfd0e8;background:#eaf2ff;box-shadow:0 5px 0 #dce5ef70}.atlas-games .mode-card:nth-child(2){background:#fff2c8;border-color:#e0ca87}.atlas-games .mode-card:nth-child(3){background:#f8e4ec;border-color:#dfbccd}.atlas-games .mode-title{font:800 27px/1.3 "Trebuchet MS","Segoe UI",sans-serif;color:#1e3d60;margin:17px 0 11px}.atlas-games .mode-card p{font:14px/1.7 "Segoe UI",sans-serif;color:#3e5872}.game-emblem{width:50px;height:50px;display:grid;place-items:center;border:1px solid #fff;background:#ffffffb8;border-radius:15px;color:#234e95;font:800 29px/1 "Trebuchet MS",sans-serif}.atlas-games .mode-card:hover:not(:disabled){filter:brightness(.97);border-color:#345a98}
.collection-total{display:flex;gap:13px;align-items:center;color:#405d78;font-size:13px;margin:0 0 21px}.collection-total strong{font-size:29px;line-height:1;color:#234d8e}.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.collection-card{--word-tone:#2457b4;--word-wash:#edf3ff;border:1px solid #cbd8e8;border-top:5px solid var(--word-tone);border-radius:18px;background:var(--word-wash);padding:22px;box-shadow:0 4px 0 #dbe4ee60;overflow:hidden}.collection-card[data-language=cn]{--word-tone:#b53e39;--word-wash:#fff0e2}.collection-card[data-language=pt]{--word-tone:#087566;--word-wash:#e5f4ed}.collection-card[data-language=kr]{--word-tone:#955006;--word-wash:#fff1d6}.collection-card[data-language=jp]{--word-tone:#a3396a;--word-wash:#fbe8f0}.collection-card[data-language=fr]{--word-tone:#2554bb;--word-wash:#e8efff}.collection-card[data-language=de]{--word-tone:#226d80;--word-wash:#e4f2f3}.collection-card[data-language=it]{--word-tone:#167148;--word-wash:#e6f4e8}.word-language{display:flex;gap:9px;align-items:center;font-size:11px;color:var(--word-tone);font-weight:700;margin-bottom:19px}.word-language .flag{width:25px;height:17px}.collection-card .word{font-size:31px;line-height:1.5;overflow-wrap:anywhere;color:#173453}.collection-card p{font:14px/1.7 "Segoe UI",sans-serif;margin:11px 0 0;color:#36516b}.collection-card .label-chip{background:#ffffffb8;border-color:#c6d4e3;font:11px/1.6 "Segoe UI",sans-serif;color:#425d76;margin-top:17px;max-width:100%}.empty{background:#fff9e4;border:2px dashed #dcc581;border-radius:19px;max-width:none;padding:35px}.empty h2{font-size:26px;font-weight:800;color:#314d6b}.drawing-grid{margin:20px 0 30px}.drawing-grid img{border-radius:15px;border-color:#c5d4e5}
.dashboard{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dashboard-row{padding:24px;grid-template-columns:39px 1fr;gap:15px;border:1px solid #c3d4e9;border-radius:17px;background:#edf4ff;box-shadow:0 3px 0 #d9e4ee55}.dashboard-row:nth-child(2){background:#e6f3eb;border-color:#bbd7c6}.dashboard-row:nth-child(3){background:#fff3d4;border-color:#dfcc95}.dashboard-row:nth-child(4){background:#f4e9f5;border-color:#d6c3df}.dashboard-row:last-child{grid-column:1/-1;background:#e8f1f1;border-color:#bad4d5}.dashboard-row:before{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#ffffffb5;font:800 14px/1 "Trebuchet MS",sans-serif;color:#325c91}.dashboard-row h3{font-size:16px;line-height:1.4;text-transform:none;letter-spacing:0;color:#244666;margin-bottom:10px}.dashboard-row p{font:14px/1.8 "Segoe UI",sans-serif;color:#36536d}.skill-metrics{gap:13px}.skill-metrics p{padding:15px;background:#ffffffb8;border:1px solid #c1d3eb;border-radius:12px;margin:0;line-height:1.6;color:#405a75}.skill-metrics strong{color:#234d9e;font-size:31px}.skills-report h2{font-size:25px;font-weight:800}.parent-tools button,.parent-tools .file-label{border-color:#bccde3}.parent-tools .file-label{background:white}.parent-tools{align-items:center}.parent-tools~details{padding:20px;border:1px solid #c3d4e8;background:white;border-radius:15px}.parent-tools~details summary{font-size:15px;font-weight:700;color:#274c7d;cursor:pointer}
.canvas-wrap{padding:17px;border:2px solid #c4d6ed;border-radius:20px;background:#e8f0fc;box-shadow:0 5px 0 #d8e3ef66}.canvas-wrap canvas{height:360px;border-radius:10px}.summary-panel,.pause-panel{background:white;border:1px solid #c5d5e8;border-radius:20px;padding:30px}.summary-panel h2,.pause-panel h2{font-size:27px;font-weight:800;color:#234767}.summary-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:0;list-style:none}.summary-list li{background:#e9f2ff;border:1px solid #c0d2ea;border-radius:15px;padding:20px;font:14px/1.6 "Segoe UI",sans-serif;color:#3e5973}.summary-list li:nth-child(2){background:#e5f4eb;border-color:#b7d7c3}.summary-list li:nth-child(3){background:#fff1ce;border-color:#e0cd93}.summary-list strong{display:block;font-size:34px;line-height:1.2;margin-bottom:10px;color:#224c80}.pause-panel p{font:15px/1.8 "Segoe UI",sans-serif;color:#46617a}
dialog{border:1px solid #b4c9e5;border-top:7px solid #2457b4;border-radius:21px;box-shadow:0 20px 80px #15345a33;max-height:90vh;overflow:auto;padding:28px;color:#223f5d;background:#fffefa}dialog::backdrop{background:#15345366}dialog h2{font-family:"Trebuchet MS","Segoe UI",sans-serif;font-size:29px;font-weight:800;color:#1d436e;line-height:1.25}dialog p{font-family:"Segoe UI",sans-serif;line-height:1.75;color:#4a627b}.settings-row{font-family:"Segoe UI",sans-serif;border-color:#d6e0ec}.settings-row input{accent-color:#2457b4}.settings-block h3{margin:25px 0 10px;font-size:19px;color:#244a77}.inline-check{background:#f0f4fa;border-radius:9px;padding:11px 13px;font-family:"Segoe UI",sans-serif}.inline-check input{accent-color:#2457b4;min-width:18px;min-height:18px}.break-options button:nth-child(2){background:#e9f2eb;border-color:#c1d4c4}.break-options button:nth-child(3){background:#fff1d1;border-color:#dfcc96}.access-panel{border-top:8px solid #2457b4;background:#fff3cf;box-shadow:0 7px 0 #dbe4ef}.access-panel h1{font-weight:800;color:#19426f}.access-panel input{border:1px solid #b4c5dc;border-radius:12px;padding:12px}.quiet .section-hero,.quiet .collection-card,.quiet .dashboard-row,.quiet .summary-list li,.quiet .atlas-games .mode-card,.quiet .finish-controls,.quiet .lesson-controlbar button{background:#f4f6f7;border-color:#bfccd8;box-shadow:none}.quiet .lesson-controlbar{background:white;box-shadow:none}.quiet .collection-card{--word-tone:#3b5974;--word-wash:white}.quiet .canvas-wrap{background:#f4f6f7}.quiet .section-hero{min-height:160px}.quiet .break-options button,.quiet .inline-check{background:#f5f6f7;border-color:#c5d0db}
@media(max-width:1000px){.section-hero{padding:26px}.section-hero h1{font-size:35px}.section-compass{flex-basis:125px}.section-compass>span{width:105px;height:105px;font-size:68px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.skill-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.lesson-controlbar{top:7px;padding:7px;gap:8px;border-radius:14px;margin:9px 0 17px}.lesson-controlbar button{padding:12px 10px;min-height:78px;gap:8px}.control-number{flex-basis:25px;height:25px;border-radius:8px;font-size:12px}.lesson-controlbar strong{font-size:18px}.lesson-controlbar small{font-size:9px;line-height:1.5}.finish-controls{padding:17px 15px}.finish-controls>div{display:grid;gap:10px}.finish-controls button{width:100%;font-size:14px}.finish-controls small{font-size:11px}.section-hero{padding:23px 20px;min-height:180px;gap:10px;border-radius:19px;margin:12px 0 22px}.section-hero h1{font-size:29px}.section-hero .eyebrow{font-size:9px;gap:7px}.section-hero>div>p:last-child{font-size:13px}.section-compass{flex-basis:72px;align-self:flex-start;margin-top:7px}.section-compass>span{width:68px;height:68px;font-size:46px}.section-compass small{display:none}.section-mascot{flex-basis:90px;align-self:flex-start}.section-mascot .mascot{width:96px;height:96px}.game-language-row{padding:13px 15px;gap:13px}.game-language-row label{font-size:12px}.game-language-row select{font-size:13px}.atlas-games .mode-card{min-height:180px;padding:22px;display:grid;grid-template-columns:47px 1fr;column-gap:16px;align-content:start}.game-emblem{grid-row:1/3;width:45px;height:45px;font-size:26px}.atlas-games .mode-title{margin:0 0 11px;font-size:25px}.atlas-games .mode-card p{font-size:13px;grid-column:2}.collection-grid{gap:12px}.collection-card{padding:17px 13px;border-radius:14px}.word-language{font-size:10px;gap:6px;flex-wrap:wrap;margin-bottom:16px}.collection-card .word{font-size:25px}.collection-card p{font-size:12px}.collection-card .label-chip{font-size:10px;padding:5px 8px}.collection-total{font-size:12px}.dashboard{grid-template-columns:1fr;gap:12px}.dashboard-row{padding:20px;gap:12px;grid-template-columns:34px 1fr}.dashboard-row h3{font-size:16px}.dashboard-row p{font-size:13px}.dashboard-row:before{width:31px;height:31px;font-size:12px}.skills-report{padding:18px}.skills-report h2{font-size:23px}.skill-metrics p{font-size:11px;padding:12px}.skill-metrics strong{font-size:28px}.canvas-wrap{padding:10px;border-radius:16px}.canvas-wrap canvas{height:280px}.summary-panel,.pause-panel{padding:22px 18px}.summary-list{grid-template-columns:1fr;gap:10px}.summary-list li{display:flex;align-items:center;gap:17px;padding:17px;font-size:13px}.summary-list strong{margin:0;flex:0 0 38px;font-size:30px}.summary-panel h2,.pause-panel h2{font-size:24px}.pause-panel p{font-size:14px}dialog{padding:23px 20px;border-radius:18px}dialog h2{font-size:25px}.dialog-actions{gap:10px}.dialog-actions button{font-size:13px}}
.large-text .section-hero>div>p:last-child,.large-text .dashboard-row p,.large-text .collection-card p{font-size:18px}.large-text .collection-card .label-chip,.large-text .lesson-controlbar small{font-size:13px}.large-text .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:700px){.large-text .collection-grid{grid-template-columns:1fr}.large-text .lesson-controlbar button{flex-wrap:wrap}.large-text .lesson-controlbar small{font-size:12px}}

/* Consilium fixes: calm, visible next steps within the existing atlas. */
.focus-route,.next-step,.script-entry,.script-panel,.recovery-panel,.parent-guidance{min-width:0;max-width:100%;overflow-wrap:anywhere;border:1px solid var(--route-line,#bfceed);border-radius:18px;color:#173453}
.focus-route{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:23px 25px;margin:20px 0;background:#fff2c9;border-color:#c7a350;border-left:6px solid #ab7913}
.focus-route h2,.next-step h2,.script-panel h2,.recovery-panel h2{font-size:25px;line-height:1.3;letter-spacing:-.025em;margin:0 0 10px}
.focus-route p,.next-step p,.script-entry p,.script-panel p,.recovery-panel p,.parent-guidance p{font:15px/1.7 "Segoe UI",sans-serif;margin:8px 0;color:#334f6a}
.focus-route>div,.next-step>div,.script-entry>div,.recovery-panel>div{min-width:0}
.focus-route select{width:100%;max-width:360px;min-height:46px;font:inherit;color:#173453;background:white;border:1px solid #7188a3;border-radius:10px;padding:9px 12px}
.focus-route button,.next-step button,.script-entry button{min-height:46px;white-space:normal;line-height:1.45}
.next-step{padding:20px 23px;margin:16px 0 23px;background:var(--route-soft,#e8f0ff);border-left:5px solid var(--route,#2355bd)}
.next-step .eyebrow{font-size:11px;line-height:1.5;color:#36536e;margin:0 0 9px}
.next-step>div,.feedback-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.script-entry{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:15px;background:#e8f3ed;border-color:#9cbeac;padding:19px 23px;margin:18px 0}
.script-entry strong{font-size:19px;line-height:1.4;color:#184b39}
.script-entry p{font-size:14px;color:#315845}
.script-panel{max-width:800px;margin:20px auto;padding:28px;background:#fff;border-top:6px solid var(--route,#2355bd);box-shadow:0 5px 0 #dce4ed70}
.script-panel .phrase{line-height:1.7;overflow-wrap:anywhere}
.script-panel .audio-controls{margin:18px 0}
.script-progress{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 23px;padding:0;font:600 13px/1.6 "Segoe UI",sans-serif;color:#38536b;list-style:none}
.script-progress>span,.script-progress>li{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:6px 10px;border:1px solid #a5b5c9;border-radius:9px;background:#f4f7fb}
.script-progress [aria-current="step"],.script-progress .active{font-weight:800;color:white;background:var(--route,#2355bd);border-color:var(--route,#2355bd)}
.script-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}
.script-options button{display:grid;place-items:center;min-width:0;min-height:82px;padding:18px 12px;border:2px solid #99acc6;border-radius:14px;font-size:30px;line-height:1.45;white-space:normal;overflow-wrap:anywhere;background:#f1f6ff;color:#173453;box-shadow:0 3px 0 #dbe4ef}
.script-options button:hover:not(:disabled){background:var(--route-soft,#e8f0ff);border-color:var(--route,#2355bd)}
.script-options button[aria-pressed="true"],.script-options button.selected{border-color:#173453;box-shadow:inset 0 0 0 2px #173453;background:#fff2c9}
.script-options button:disabled{opacity:.65;box-shadow:none;cursor:default}
.lesson-goal{display:block;margin:12px 0 16px;padding:12px 16px;border:1px solid var(--route-line,#bfceed);border-left:4px solid var(--route,#2355bd);border-radius:0 11px 11px 0;background:var(--route-soft,#e8f0ff);font:600 14px/1.7 "Segoe UI",sans-serif;color:#24435f;overflow-wrap:anywhere}
.pause-suggestion{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:15px 18px;margin:15px 0;border:1px solid #c6ad68;border-radius:13px;background:#fff7df;color:#58451c;font:14px/1.7 "Segoe UI",sans-serif}
.pause-suggestion p{margin:0;flex:1 1 220px}
.pause-suggestion button{min-height:44px;background:white;border-color:#ac8a40;color:#58451c;white-space:normal}
.feedback-actions{margin-top:15px}
.feedback-actions button{min-height:46px;padding:11px 15px;white-space:normal;font-size:14px;background:#fff;color:#24435f;border:1px solid #7c95ae;border-radius:10px}
.feedback-actions button:hover:not(:disabled){background:#edf3fb;border-color:#24435f}
.recovery-panel{padding:25px;margin:20px 0;background:#fff5dc;border:2px solid #c5a24d;border-top:6px solid #8b6410}
.recovery-panel h2{color:#65470e}
.recovery-panel ul,.parent-guidance ul{padding-left:22px;line-height:1.8}
.recovery-panel button,.recovery-panel a{min-height:46px;white-space:normal;overflow-wrap:anywhere}
.recovery-panel .dialog-actions,.recovery-panel .parent-tools{display:flex;flex-wrap:wrap;gap:11px}
.word-proof{display:block;max-width:100%;margin:12px 0 0;padding:12px 14px;background:#fff;border:1px solid #a6bbd1;border-radius:10px;color:#334f6a;font:13px/1.75 "Segoe UI",sans-serif;overflow-wrap:anywhere}
details.word-proof summary{cursor:pointer;font-weight:700;min-height:30px;color:#254b71}
.word-proof ul{padding-left:20px;margin-bottom:0}
.parent-guidance{padding:23px 25px;margin:22px 0;background:#e8f2ee;border-color:#a3bdae;border-left:5px solid #28704d}
.parent-guidance h2,.parent-guidance h3{margin:0 0 11px;color:#1b4b36;line-height:1.4}
.parent-guidance li{margin:7px 0;color:#334f45;font-size:15px;overflow-wrap:anywhere}
.focus-route a,.next-step a,.script-entry a,.script-panel a,.recovery-panel a,.word-proof a,.parent-guidance a{color:#1748a4;text-decoration:underline;text-underline-offset:3px}
:is(.focus-route,.next-step,.script-entry,.script-panel,.pause-suggestion,.feedback-actions,.recovery-panel,.word-proof,.parent-guidance) :is(button,a,input,select,summary):focus-visible{outline:3px solid #173453;outline-offset:4px;box-shadow:0 0 0 7px #fff}
.quiet :is(.focus-route,.next-step,.script-entry,.script-panel,.lesson-goal,.pause-suggestion,.recovery-panel,.parent-guidance){background:#f5f6f7;border-color:#9baab8;color:#233e57;box-shadow:none}
.quiet :is(.focus-route,.next-step,.lesson-goal,.recovery-panel,.parent-guidance){border-left-color:#506b80}
.quiet .script-panel{border-top-color:#506b80}
.quiet :is(.script-options button,.script-progress>span,.script-progress>li,.feedback-actions button,.word-proof){background:white;border-color:#8c9eaf;color:#233e57;box-shadow:none}
.quiet .script-progress [aria-current="step"],.quiet .script-progress .active{background:#34506b;color:white}
.quiet .script-options button[aria-pressed="true"],.quiet .script-options button.selected{border-color:#233e57;box-shadow:inset 0 0 0 2px #233e57}
.quiet :is(.mascot,.hero-map,.guide-portrait,.mentor-avatar,.section-mascot,.section-compass,.flag,.brand .mark){display:none!important}
.quiet .language-card:hover,.quiet .mode-card:hover{transform:none;box-shadow:none}
.quiet *,.quiet *::before,.quiet *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.large-text :is(.focus-route,.next-step,.script-entry,.script-panel,.recovery-panel,.parent-guidance) p,.large-text .lesson-goal,.large-text .pause-suggestion,.large-text .word-proof,.large-text .parent-guidance li{font-size:18px}
@media(max-width:700px){
 .focus-route{grid-template-columns:minmax(0,1fr);padding:19px 18px;gap:12px}
 .next-step,.script-entry,.parent-guidance,.recovery-panel{padding:18px 17px;border-radius:14px}
 .focus-route h2,.next-step h2,.script-panel h2,.recovery-panel h2{font-size:23px}
 .script-panel{padding:22px 18px;border-radius:16px}
 .focus-route p,.next-step p,.script-entry p,.script-panel p,.recovery-panel p,.parent-guidance p{font-size:14px}
 .script-options{gap:9px}.script-options button{padding:13px 7px;min-height:74px;font-size:27px}
 .lesson-goal{font-size:14px;padding:11px 13px}.feedback-actions{align-items:stretch}
 .feedback-actions button{flex:1 1 150px}.word-proof{font-size:13px}
}
@media(max-width:380px){
 .script-options{grid-template-columns:minmax(0,1fr)}
 .script-options button{min-height:64px}
 .script-entry>button,.focus-route>button,.next-step>button{width:100%}
 .script-progress{gap:6px}.script-progress>span,.script-progress>li{padding:5px 8px}
 .parent-guidance li{font-size:14px}.pause-suggestion{padding:13px 14px}
}
@media(prefers-reduced-motion:reduce){.focus-route,.next-step,.script-entry,.script-panel,.script-options button,.pause-suggestion,.feedback-actions button,.recovery-panel{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Three distinct exits stay readable; on phones the controls do not cover practice. */
.lesson-controlbar{grid-template-columns:repeat(3,minmax(0,1fr))}
.lesson-controlbar button{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
.lesson-controlbar button>span:last-child{min-width:0}
.lesson-controlbar .control-finish{background:#e5f3e9;border-color:#92b79d;color:#1b5035}
.lesson-controlbar .control-finish small{color:#365d46}
.lesson-controlbar .control-finish:hover:not(:disabled){background:#d6eddd;border-color:#477e58}
.lesson-controlbar~.pause-suggestion button[data-action="end-here"]{display:none}
.focus-route>h2,.focus-route>p{grid-column:1/-1}
.script-entry h2{font-size:22px;line-height:1.35;margin:0 0 8px}
.feedback-actions .primary{background:var(--route,#2355bd);border-color:var(--route,#2355bd);color:white}
.feedback-actions .primary:hover:not(:disabled){background:var(--route,#2355bd);filter:brightness(.92)}
.quiet .lesson-controlbar .control-finish{background:#f4f6f7;border-color:#8c9eaf;color:#233e57}
.quiet .lesson-controlbar .control-finish small{color:#38536b}
@media(max-width:700px){
 .lesson-controlbar{position:relative;top:auto;grid-template-columns:minmax(0,1fr);gap:7px}
 .lesson-controlbar button{min-height:58px;padding:10px 13px;gap:12px}
 .lesson-controlbar strong{font-size:17px}.lesson-controlbar small{font-size:11px;margin-top:3px}
 .lesson-controlbar .control-number{flex-basis:29px;height:29px;font-size:13px}
}
