/* Breakpoints (one scale everywhere, also used by the scripts): 360 tiny phone · 480 small phone · 640 large phone ·
   760/761 phone | tablet (the slide-in menu below 1024) · 900 mid tablet · 1023/1024 tablet | laptop (the top bar on mouse devices) ·
   1199/1200 small laptop | desktop · 1440 wide. Heights: 500, 650, 860, 940. */
:root{--brand-primary:#1d4ed8;--brand-primary-hover:#1e40af;--brand-ink:#0f172a;--brand-navy:#0a1430;--brand-soft:#eff6ff;--brand-border:#bfdbfe;}
:root{--ink:var(--brand-ink);--muted:#526072;--green:var(--brand-primary);--line:#e2e8f0;--bg:#f8fafc;--lime:#dbeafe}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px 'DM Sans',sans-serif}button,a,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button{border:0;background:none;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #1d4ed8;outline-offset:3px}nav{display:grid;gap:9px}nav button{text-align:left;padding:14px 15px;border-radius:8px;font-size:18px;color:#64748b;display:flex;gap:13px;align-items:center}nav button span{font-size:13px;font-weight:600}nav button.active{background:#eff6ff;color:var(--green)}.avatar{background:#edeee3;border-radius:50%;height:32px;width:32px;display:inline-grid;place-items:center;font-weight:700;color:#687347}main{max-width:1250px;margin:auto;padding:38px 43px 45px}h1,h2,h3{font-family:Manrope,sans-serif}h1{font-size:29px;letter-spacing:-1px;margin:0 0 10px}h2{font-size:19px;letter-spacing:-.4px;margin:0}h3{font-size:15px;margin:0 0 8px}p{line-height:1.6}.muted{color:var(--muted)}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px}.page-head p{margin:0;color:var(--muted);font-size:13px}.pill{border:1px solid var(--line);border-radius:30px;background:white;padding:10px 16px;font-size:11px}.hero{background:var(--brand-navy);color:#fff;min-height:234px;border-radius:17px;display:flex;justify-content:space-between;align-items:center;padding:32px 36px;overflow:hidden;position:relative}.hero .eyebrow{font-size:11px;letter-spacing:1.8px;color:#bed2b0}.hero h2{font-size:27px;line-height:1.4;margin:12px 0}.hero p{color:#bad1c5;font-size:12px;margin-bottom:20px}.primary{background:var(--green);color:white;padding:13px 21px;border-radius:7px;font-weight:600;font-size:12px}.hero .primary{background:var(--lime);color:#29482e}.arrow{margin-left:25px}.key-art{width:250px;transform:rotate(-12deg);display:grid;grid-template-columns:repeat(3,67px);gap:10px;margin-right:22px}.key-art i{font-style:normal;height:65px;border:1px solid #759a82;border-radius:12px;display:grid;place-items:center;font-size:24px;background:#39614d;box-shadow:0 7px 0 #183b30}.key-art i:nth-child(2),.key-art i:nth-child(5){background:#dbeaab;color:#32533c;box-shadow:0 7px 0 #a1b67c}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:23px 0 34px}.stat{border:1px solid var(--line);background:#fff;border-radius:10px;padding:18px;display:flex;align-items:center;gap:14px}.stat-icon{border-radius:10px;background:#f2f5ec;font-size:20px;width:39px;height:39px;display:grid;place-items:center;color:#789456}.stat strong{font-size:22px}.stat strong small{font-size:11px;color:#8d978f;font-weight:400}.stat label{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.section-head p{font-size:12px;margin:7px 0 0;color:var(--muted)}.tabs{display:flex;border-bottom:1px solid var(--line);gap:28px;margin-bottom:23px}.tabs button{padding:0 0 13px;font-size:12px;color:var(--muted)}.tabs button.active{color:var(--green);border-bottom:2px solid var(--green);font-weight:700}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;transition:transform .2s}.card:hover{transform:translateY(-3px)}.card-art{height:114px;display:flex;align-items:center;justify-content:center;gap:7px;position:relative;background:#edf1e5}.card:nth-child(3n+2) .card-art{background:#edf0f5}.card:nth-child(3n) .card-art{background:#f7eee1}.card-art kbd{background:white;border:1px solid #d8dfd1;border-bottom:4px solid #d8dfd1;border-radius:8px;width:41px;height:41px;display:grid;place-items:center;font:600 17px Manrope}.card-art .number{position:absolute;top:13px;left:15px;font-size:11px;letter-spacing:1px;color:#7d8a74}.card-body{padding:20px}.card-body p{font-size:11px;color:var(--muted);min-height:32px;margin:0 0 17px}.card-foot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0eb;padding-top:13px;font-size:11px;color:var(--muted)}.card-foot button{font-size:11px;color:var(--green);font-weight:700}.note{display:flex;gap:16px;background:#f0f2e8;border-radius:10px;margin-top:24px;padding:18px 22px;font-size:12px}.note p{margin:3px 0 0;font-size:11px;color:var(--muted)}footer{max-width:1250px;margin:auto;padding:20px 43px;border-top:1px solid var(--line);font-size:11px;color:#859189;display:flex;gap:18px}footer span:last-child{margin-left:auto}.panel{padding:28px;background:white;border:1px solid var(--line);border-radius:14px}.typing-text{font:25px/1.9 monospace;letter-spacing:1px;background:#f7f9f5;border:1px solid var(--line);padding:25px;border-radius:10px;margin:22px 0;white-space:pre-wrap;max-height:210px;overflow:auto}.typing-text .correct{color:#226c4b;background:#e3efdc}.typing-text .wrong{color:#b73339;background:#ffe1e1}.typing-text .current{border-bottom:3px solid #326c49;background:#e6ebd9}textarea{width:100%;padding:16px;border-radius:8px;border:1px solid #cbd5e1;resize:vertical;background:white;font-size:16px;min-height:85px}.keyboard{margin:25px auto 0;max-width:710px}.key-row{display:flex;justify-content:center;gap:6px;margin:7px 0}.key-row span{height:40px;min-width:42px;border:1px solid #e2e8f0;border-bottom:3px solid #e2e8f0;border-radius:6px;display:grid;place-items:center;background:#f8fafc;font-size:13px}.key-row .target{background:var(--green);color:white;border-color:#1e3a8a}.key-row .space{width:260px}.session-bar{display:flex;justify-content:space-between;align-items:center;gap:12px}.session-numbers{display:flex;gap:24px}.session-numbers b{font-size:22px}.session-numbers small{display:block;color:var(--muted);font-size:11px}.secondary{border:1px solid var(--line);padding:11px 16px;border-radius:7px;background:#fff}.bar{height:5px;background:#e9eee4;border-radius:5px;overflow:hidden;margin-top:20px}.bar div{height:100%;background:#7d9d47;transition:width .2s}.center{text-align:center}.result-icon{font-size:52px}.result-grid{display:flex;justify-content:center;gap:50px;margin:30px}.result-grid strong{font-size:36px}.result-grid small{display:block;color:var(--muted)}table{width:100%;border-collapse:collapse;font-size:12px}th,td{text-align:left;padding:15px 10px;border-bottom:1px solid var(--line)}th{color:var(--muted);font-size:11px}dialog{border:1px solid var(--line);border-radius:15px;padding:30px;max-width:420px;width:90%;color:var(--ink)}dialog::backdrop{background:#17382b66}label{display:block;margin:12px 0}select,input{padding:10px;border:1px solid var(--line);border-radius:5px}.large-text .typing-text{font-size:32px}@media(min-width:1440px){main{padding-top:46px}.hero{min-height:265px}.card-art{height:140px}}@media(max-width:1023px){main{padding:28px 25px}.stats{gap:8px}.stat{padding:13px;gap:8px}.key-art{margin-right:0;transform:scale(.85) rotate(-12deg);width:205px}.hero{padding:27px}.cards{gap:12px}}@media(max-width:760px){nav{display:flex;margin-top:15px;gap:3px}nav button{padding:10px;flex:1;justify-content:center}nav button span{font-size:11px}main{padding:25px 17px}h1{font-size:25px}.page-head .pill{display:none}.hero{padding:25px;min-height:220px}.hero h2{font-size:24px}.key-art{display:none}.stats{grid-template-columns:repeat(2,1fr);margin-bottom:25px}.cards{grid-template-columns:1fr 1fr}.card-body{padding:15px}.card-art kbd{width:32px;height:35px}.tabs{gap:20px}.key-row{gap:3px}.key-row span{min-width:25px;height:33px;font-size:11px}.panel{padding:18px}.session-numbers{gap:12px}.session-numbers b{font-size:18px}.typing-text{font-size:20px;padding:15px}footer{padding:20px}footer span:last-child{display:none}}@media(max-width:480px){.cards{grid-template-columns:1fr}.card-art{height:95px}nav button{gap:5px}.result-grid{gap:20px}.session-bar{flex-wrap:wrap}}

.duration-controls{margin:24px 0}.duration-controls>label{font-weight:600}.duration-controls select{background:white;color:var(--ink)}.custom-duration{margin-top:15px}.custom-duration[hidden]{display:none}.custom-duration input{width:115px;margin-right:8px}.duration-controls p{font-size:12px;margin:9px 0}.duration-error{color:#b73339}
.arcade-banner{background:var(--brand-navy);border-radius:16px;color:white;padding:30px 34px;display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.arcade-banner .eyebrow{font-size:11px;letter-spacing:2px;color:#dbeafe}.arcade-banner h2{font-size:27px;margin-top:12px}.arcade-banner p{color:#c0d5c8;font-size:12px}.arcade-keys{display:flex;gap:8px;transform:rotate(-9deg)}.arcade-keys kbd{display:grid;place-items:center;width:52px;height:57px;background:#dbeafe;border-radius:9px;border-bottom:5px solid #91ab64;font-size:24px;color:var(--brand-navy)}.game-art{height:155px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.game-art .number{position:absolute;top:16px;left:18px;font-size:11px;letter-spacing:1.5px}.game-symbol{font-size:65px;line-height:1}.game-decoration{position:absolute;right:18px;bottom:15px;font:13px monospace;opacity:.55}.mint{background:#e0ece3;color:#346b50}.sand{background:#f3e5c7;color:#6f5222}.night{background:#233e4c;color:#c7e6dd}.lavender{background:#e9e4f3;color:#5e4b78}.rose{background:#f4e4e0;color:#8a5148}.lime{background:#e6efce;color:#4f6128}.game-setup{display:grid;grid-template-columns:220px 1fr;gap:30px}.game-setup>.game-art{height:100%;min-height:260px;border-radius:12px}.setup-fields{display:flex;gap:20px;flex-wrap:wrap}.setup-fields select{display:block;margin-top:8px}.game-hud{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.game-hud small{display:block;color:var(--muted);font-size:11px;letter-spacing:1px;margin-bottom:7px}.game-hud b{font-size:20px}.game-hud>div:last-of-type b{font-size:15px}.arcade-stage{height:310px;border-radius:12px;background:#f8fafc;margin:24px 0;position:relative;overflow:hidden}.arcade-input{width:100%;font-size:18px;padding:15px}.arena-label{position:absolute;top:15px;left:18px;font-size:11px;letter-spacing:1.5px;opacity:.6}.flying-word{position:absolute;transform:translateX(-15%);background:white;border:1px solid #b6cdb5;border-bottom:4px solid #b6cdb5;border-radius:8px;padding:8px 12px;font:600 18px monospace;white-space:nowrap}.rain-floor{position:absolute;bottom:0;width:100%;height:28px;background:#b8d4bc;color:#4a8165;text-align:center;letter-spacing:15px}.stage-defender{background:#203a46}.stage-defender .arena-label{color:white}.stage-defender .flying-word{background:#d6ebe2;border-color:#7fa49b;color:#294737}.defender-base{position:absolute;right:0;top:0;bottom:0;width:23px;background:#75a79b;color:white;display:grid;place-items:center}.race-land{height:48px;background:#f0e1bb;padding:10px 18px;color:#a48d39;font-size:24px}.race-land span{font-size:11px;letter-spacing:2px;margin-left:12px}.race-track{position:relative;height:60px;background:#d4e0bb;border-bottom:2px dashed #fff}.ghost-track{background:#e7ead8}.race-car{position:absolute;top:10px;color:#1d4ed8;font-size:30px;transition:left .15s;white-space:nowrap}.race-car small{font-size:11px;display:inline-block;vertical-align:middle}.ghost-track .race-car{color:#939a81}.finish-flag{position:absolute;right:10px;font-size:29px;top:10px}.challenge-word{text-align:center;font:700 34px Manrope,sans-serif;padding:35px 15px;color:#1d4ed8}.sprint-word{padding-top:115px;font-size:43px}.quest-path{display:flex;justify-content:space-between;padding:28px 18px 10px;gap:8px}.quest-stop{flex:1;text-align:center;color:#9b9eaa}.quest-stop span{display:inline-grid;place-items:center;height:38px;width:38px;border:1px solid #d0c9df;background:#eeeaf3;border-radius:50%;font-size:16px}.quest-stop small{display:block;font-size:11px;margin-top:9px}.quest-stop.now span,.relay-batons .now{background:#6f5d89;color:white}.quest-stop.complete span,.relay-batons .complete{background:#dbeafe;color:#1d4ed8}.stage-quest{background:#f6f3fa}.relay-batons{display:flex;justify-content:center;gap:14px;padding:25px}.relay-batons span{padding:9px 14px;border-radius:20px;background:#e9e6e2;font-size:12px}.relay-sentence{padding:20px 35px;text-align:center;font:25px/1.7 monospace}.large-text .relay-sentence{font-size:31px}@media(max-width:760px){.arcade-banner{padding:25px}.arcade-keys{display:none}.arcade-banner h2{font-size:23px}.game-setup{grid-template-columns:1fr}.game-setup>.game-art{min-height:100px;height:100px}.game-hud b{font-size:17px}.game-hud>div:last-of-type b{font-size:12px}.flying-word{font-size:13px;padding:7px}.challenge-word{font-size:27px}.relay-sentence{font-size:20px;padding:15px}.quest-path{padding:25px 8px 10px}.quest-stop small{font-size:11px}.relay-batons{gap:5px}.relay-batons span{padding:8px}.game-art{height:130px}}@media(prefers-reduced-motion:reduce){.race-car,.card{transition:none}}
.skip-placement{color:#dbeafe;font-size:12px;margin-left:12px;text-decoration:underline;text-underline-offset:4px}.level-orbit{width:145px;height:145px;border:1px solid #86a789;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#dbeafe}.level-orbit strong{font-size:56px}.level-orbit span{font-size:12px}.level-path{display:grid;grid-template-columns:repeat(5,1fr);margin:25px 0;gap:10px}.level-path>div{padding:16px 12px;border:1px solid var(--line);border-radius:10px;background:white}.level-path span{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#edf1e6;font-size:11px;margin-bottom:9px}.level-path b,.level-path small{display:block}.level-path b{font-size:12px}.level-path small{color:var(--muted);font-size:11px;margin-top:6px}.level-path .current-level{border-color:#83a16e;background:#eff5e6}.learning-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:30px}.learning-summary p{font-size:12px}.focus-keys{display:flex;gap:15px;flex-wrap:wrap}.focus-keys>span{text-align:center}.focus-keys kbd{display:block;padding:10px;background:#eef1e5;border-radius:7px;font-size:23px}.focus-keys small{font-size:11px;color:var(--muted);display:block;margin-top:6px}.placement-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:25px 0}.placement-steps>div{padding:20px;background:#f3f6eb;border-radius:10px}.placement-steps p{font-size:12px;color:var(--muted)}button:disabled{cursor:not-allowed;opacity:.45}@media(max-width:760px){.level-path{grid-template-columns:repeat(3,1fr)}.learning-summary,.placement-steps{grid-template-columns:1fr}.level-orbit{display:none}.skip-placement{display:block;margin:18px 0 0}.learning-summary .panel{padding:20px}}
.keyboard-policy{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;padding:12px 15px;margin:17px 0 8px;font-size:11px;line-height:1.6}.keyboard-policy b{display:block;font-size:12px;margin-bottom:4px}.keyboard-policy span{color:#65775e}.keyboard-policy details{margin-top:6px}.keyboard-policy summary{cursor:pointer;color:#2d6049}.keyboard-policy p{margin:6px 0}.input-integrity-message{color:#a34526;font-size:12px;min-height:16px;margin:5px 0 12px}.integrity-history{display:block;font-size:11px;color:var(--muted);margin-top:5px}nav{gap:3px}nav button{padding:10px 13px}.workspace-form{margin-top:22px}.workspace-form input:not([type=checkbox]),.workspace-form select{display:block;margin-top:7px;max-width:100%;min-width:180px}.workspace-form textarea{min-height:140px}.workspace-form label{font-size:12px}.workspace-note{padding:14px 18px;background:#f1f5f9;border-radius:8px;color:#475569;font-size:12px}.profile-face{display:grid;place-items:center;width:50px;height:50px;border-radius:14px;background:#e2edcc;font-size:23px;margin-bottom:20px}.inline-form,.teacher-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.inline-form{margin:18px 0}.table-scroll{overflow:auto}.assignment-row{display:flex;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line);gap:20px}.assignment-row small{display:block;color:var(--muted);margin-top:7px}.trend-chart{height:205px;display:flex;align-items:flex-end;gap:8px;padding:20px 0}.trend-chart>div{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px}.trend-chart span{width:100%;max-width:30px;background:#8fae67;border-radius:4px 4px 0 0}.trend-chart small{font-size:11px}.milestone>span{font-size:50px;color:#a3ad9b}.milestone-icon{width:50px;height:50px}.milestone.earned{background:#eef4df;border-color:#c4d69a}.milestone.earned>span{color:#648333}.milestone h3{margin-top:18px}.milestone p{min-height:45px}.milestone b{font-size:11px}.finger-coach{display:grid;grid-template-columns:1fr auto;gap:12px;background:#f0f4e9;padding:18px;border-radius:10px;margin-top:20px}.finger-coach p{font-size:11px;color:var(--muted);margin:6px 0}.finger-coach>small{grid-column:2;font-size:11px;text-align:center}.hands{display:flex;gap:5px;align-items:flex-end}.finger{height:var(--finger-height);width:23px;display:grid;align-items:end;justify-items:center;border-radius:12px 12px 5px 5px;background:#d8e3ca;color:#748264;padding-bottom:5px}.finger small{font-size:11px}.finger.active{background:var(--brand-primary);color:#fff}.offline-install{font-size:11px;text-decoration:underline}.high-contrast{--ink:#071c10;--muted:#364537;--line:#62715e;--bg:#fff}.high-contrast .hero,.high-contrast .arcade-banner{background:#102d1c}.high-contrast .primary{background:#143f23;color:#fff}.high-contrast .muted{color:#334832}.dyslexia-spacing .typing-text,.dyslexia-spacing .relay-sentence{letter-spacing:3px;line-height:2.2}.reduced-motion *{transition:none!important;animation:none!important}.reduced-motion .card:hover{transform:none}@media(max-width:760px){nav{display:grid;grid-template-columns:repeat(3,1fr)}nav button{justify-content:flex-start;padding:8px}.finger-coach{grid-template-columns:1fr}.finger-coach>small{grid-column:1;text-align:left}.hands{justify-content:center}.teacher-links button{font-size:11px}.workspace-form .setup-fields{display:block}.workspace-form input:not([type=checkbox]),.workspace-form select{width:100%}}
.nav-group-label{font-size:11px;letter-spacing:1.5px;color:#64748b;padding:13px 12px 6px}.path-choices{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.path-choices .panel{display:flex;align-items:flex-start;flex-direction:column;gap:12px}.path-choices p{font-size:13px;color:var(--muted);flex:1}.path-choices small{font-size:11px;letter-spacing:1.5px}.path-choices .muted{font-size:11px}.preview-footnote{font-size:11px;color:var(--muted);line-height:1.8}.preview-footnote button{font-size:11px;text-decoration:underline;color:#698158}.platform-link{color:var(--green);text-decoration:none}.foundation-icon{font-size:36px;display:block;color:var(--green);margin-bottom:18px}.mini-demo{min-height:120px;display:flex;justify-content:center;align-items:center;gap:12px;background:#f1f5f9;border-radius:10px;padding:22px;margin:22px 0;flex-wrap:wrap;line-height:2}.mini-demo kbd{padding:8px 12px;background:white;border:1px solid #d2dec8;border-bottom-width:4px;border-radius:7px}.pointer-practice{height:220px;position:relative;background:#f6f8f1;border-radius:12px}.click-target{position:absolute;border-radius:50%;width:58px;height:58px;background:#dbeafe;border:3px solid var(--brand-primary);font-size:24px;font-weight:700}.click-target:disabled{background:#e2e8f0;border-color:#d1d8c9;opacity:1;color:#64748b}.target-0{left:12%;top:20px}.target-1{right:12%;top:90px}.target-2{left:27%;bottom:15px}.scroll-practice{height:210px;overflow:auto;border:2px solid #bacbad;border-radius:10px;padding:20px;scrollbar-gutter:stable}.scroll-stops{height:390px;display:flex;flex-direction:column;align-items:center;justify-content:space-around;color:#80956b}.scroll-finish{background:#dbeafe;padding:25px;border-radius:9px}.practice-app,.practice-account{background:#f2f5ea;border:1px solid #dfe6d8;border-radius:10px;padding:24px}.language-choice{font-size:11px}.language-choice select{margin-left:7px}#foundation-feedback{font-size:13px;color:#1d4ed8}#foundation-next[hidden]{display:none}@keyframes pointer-teach{0%,100%{transform:translateX(0)}50%{transform:translateX(22px)}}@media(max-width:760px){.path-choices{grid-template-columns:1fr}.nav-group-label{grid-column:1/-1;padding:8px 4px 2px}.page-head{gap:15px;flex-wrap:wrap}}
.lab-hero{display:flex;justify-content:space-between;align-items:center;background:var(--brand-navy);color:#fff;padding:35px;border-radius:18px;overflow:hidden}.lab-hero .eyebrow{font-size:11px;letter-spacing:2px;color:#dbeafe}.lab-hero h2{font-size:34px;line-height:1.3;margin:15px 0}.lab-hero p{max-width:430px;font-size:13px;color:#c2d7ca}.lab-mode-ribbon{display:flex;gap:12px;margin-top:23px}.lab-mode-ribbon span{font-size:11px;padding:8px 11px;border:1px solid #577a65;border-radius:20px;color:#dbeafe}.mini-monitor{width:190px;height:140px;border:9px solid #648972;border-bottom:15px solid #648972;border-radius:10px;background:#e2edc8;position:relative;color:#1d4ed8;transform:rotate(-7deg)}.mini-monitor span{position:absolute;top:20px;left:15px;font-size:30px}.mini-monitor b{position:absolute;right:20px;top:34px;font-size:45px}.mini-monitor i{position:absolute;bottom:5px;right:15px;font-size:34px;font-style:normal}.monitor-stand{width:90px;height:13px;background:#648972;margin:16px auto 0;border-radius:12px}.lab-area-grid .card-body h3{min-height:40px}.sim-mode-buttons{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.sim-mode-buttons button{font-size:11px;padding:9px 10px}.sim-steps{font-size:12px;line-height:1.8;padding-left:18px;color:var(--muted)}.sim-steps li{padding:7px 0}.sim-steps .active-step{color:var(--brand-navy);font-weight:700}.reset-simulation{margin-top:12px;font-size:11px}.sim-workspace{border:1px solid #cfd9cc;border-radius:13px;background:#fff;min-height:430px;overflow:hidden}.app-title{background:#e7eee0;padding:15px 18px;display:flex;justify-content:space-between;font-weight:700;font-size:12px}.app-title small{font-weight:400;font-size:11px;letter-spacing:1px}.sim-toolbar{display:flex;gap:5px;padding:11px;background:#f7f9f3;border-bottom:1px solid #e4e9df;flex-wrap:wrap}.sim-tool{padding:8px 9px;background:white;border:1px solid #e0e6d9;border-radius:5px;font-size:11px}.sim-toolbar input{flex:1;min-width:100px}.sim-toolbar>button{border:1px solid #ccd9c1;border-radius:5px;padding:9px}.sim-desktop{min-height:470px;background:linear-gradient(140deg,#d2e3cf,#9fbea7);position:relative;padding:20px}.desktop-icons{display:flex;gap:15px}.desktop-icons button{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px}.desktop-icons span{font-size:35px;color:#31583f}.desktop-window{position:absolute;left:calc(20px + var(--offset));top:calc(120px + var(--offset));width:70%;min-height:180px;background:#fff;border:1px solid #9aafa0;border-radius:7px;box-shadow:0 8px 18px #314e3c22;overflow:hidden;z-index:1}.desktop-window.front-window{z-index:3;box-shadow:0 10px 24px #314e3c33}.desktop-window.maximized{left:0;top:0;width:100%;height:calc(100% - 42px);border-radius:0}.window-title{display:flex;justify-content:space-between;align-items:center;background:#eef3e8;padding:7px 10px;border-bottom:1px solid #dbe6d4;font-size:11px}.window-title button{padding:5px 8px}.window-content{padding:23px;font-size:12px;line-height:1.6}.sim-taskbar{position:absolute;bottom:0;left:0;right:0;height:42px;background:var(--brand-navy);display:flex;align-items:center;gap:8px;padding:5px 14px;color:#e6eed8;z-index:5}.sim-taskbar button{font-size:11px;padding:8px 12px;border-radius:4px}.sim-taskbar .selected{background:#5b8066}.file-settings{padding:14px 18px;display:flex;gap:12px;flex-wrap:wrap}.file-settings label{font-size:11px;margin:0;flex:1}.file-settings input,.file-settings select{width:100%;margin-top:6px;min-width:100px}.file-grid{display:flex;gap:20px;flex-wrap:wrap;padding:25px}.file-tile{display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center;padding:20px;background:#f5f7ee;border-radius:10px;max-width:180px}.file-tile>span{font-size:35px;color:#71944e}.file-tile b{font-size:11px;overflow-wrap:anywhere}.file-tile small{font-size:11px;color:var(--muted)}.editor-paper{padding:24px;background:#f0f3ed}.editor-paper textarea{min-height:270px;border-radius:0;padding:25px;line-height:1.8;font-size:16px;box-shadow:0 2px 6px #0f172a11}.sim-status{padding:12px 18px;font-size:11px;color:var(--muted);margin:0}.sheet-wrap{padding:25px 15px}.sim-sheet{border:1px solid #dbe3d6}.sim-sheet th{background:#edf2e6;text-align:center}.sim-sheet td,.sim-sheet th{border:1px solid #dbe3d6;padding:10px}.sim-sheet input{border:0;width:100%;min-width:80px;border-radius:0;padding:8px;background:#f9fbf5}.sim-sheet output{display:block;font-size:20px;font-weight:700;color:#1d4ed8;padding:8px}.slides-board{padding:20px;display:grid;gap:15px;background:#f1edf7}.practice-slide{padding:25px;border-radius:8px;background:white;border:1px solid #dfd6e9}.practice-slide small{font-size:11px;color:var(--muted)}.practice-slide h2{margin-top:12px}.practice-slide p{font-size:11px;color:var(--muted)}.practice-slide button{border:1px solid #ddd5e7;border-radius:4px;padding:5px 12px}.slides-board.presenting .practice-slide{background:#493b63;color:#fff}.slides-board.presenting p,.slides-board.presenting small{color:#d7cce7}.browser-results{padding:20px;display:grid;gap:15px}.source-card{display:block;text-align:left;border:1px solid #dce6d7;padding:18px;border-radius:8px;background:#f9fbf7}.source-card p{font-size:11px;color:#6f8564}.source-card small{font-size:11px;line-height:1.6}.email-form,.safety-options{padding:23px}.email-form label,.safety-options label{font-size:12px}.email-form input,.email-form textarea,.safety-options select,.safety-options input:not([type=checkbox]){width:100%;margin-top:7px}.email-form textarea{min-height:180px}.safety-options input[type=checkbox]{margin-right:8px}.sim-workspace button:disabled{opacity:.6}#sim-feedback{font-size:12px;color:#1d4ed8}.lab-mode-ribbon span{white-space:nowrap}@media(max-width:1199px){.sim-steps{display:flex;gap:25px;margin-left:14px}.lab-hero-art{transform:scale(.85)}}@media(max-width:760px){.lab-hero{padding:25px}.lab-hero h2{font-size:27px}.lab-hero-art{display:none}.lab-mode-ribbon{gap:5px;flex-wrap:wrap}.lab-mode-ribbon span{font-size:11px}.sim-steps{display:block}.desktop-window{width:75%}.file-settings{display:block}.file-settings label{display:block;margin:10px 0}.sim-toolbar{gap:4px}.sim-tool{font-size:11px;padding:7px}.editor-paper{padding:12px}.sheet-wrap{padding:10px}.sim-sheet td,.sim-sheet th{padding:5px}}
/* Digital Labs navigation */
.lab-subnav{margin:3px 0 9px 18px;padding-left:9px;border-left:1px solid #cbd5e1}#main:focus{outline:none}

/* KEYBAKI brand palette, grounded in the supplied colour wordmark. */
.brand,.page-head h1,h2,h3{color:var(--brand-ink)}.module,.nav-group-label{color:#64748b}
.primary{background:var(--brand-primary);color:#fff}.primary:hover{background:var(--brand-primary-hover)}
.secondary{border-color:#cbd5e1;background:#fff;color:#334155}.secondary:hover{background:#eff6ff;border-color:#93c5fd}
.avatar,.stat-icon{background:#eff6ff;color:#1d4ed8}
.lab-hero,.hero{background:var(--brand-navy);color:#fff}
.lab-hero h2,.hero h2{color:#fff}.lab-hero .eyebrow,.hero .eyebrow{color:#93c5fd}.lab-hero p,.hero p{color:#cbd5e1}
.hero .primary{background:#dbeafe;color:#1e3a8a}.hero .primary:hover{background:#bfdbfe}
.lab-mode-ribbon span{background:#ffffff12;border-color:#ffffff30;color:#e2e8f0}
.mini-monitor{border-color:#5274b8;background:#dbeafe;color:#1d4ed8}.monitor-stand{background:#5274b8}
.key-art i{background:#1e3a8a;border-color:#6081cb;box-shadow:0 7px 0 #0f172a}.key-art i:nth-child(2),.key-art i:nth-child(5){background:#dbeafe;color:#1e40af;box-shadow:0 7px 0 #93c5fd}
.lab-area-grid .mint,.lab-area-grid .lime{background:#dbeafe;color:#1d4ed8}.lab-area-grid .sand{background:#f2ecdd;color:#68552c}.lab-area-grid .lavender{background:#e0e7ff;color:#3730a3}.lab-area-grid .rose{background:#e0f2fe;color:#075985}.lab-area-grid .night{background:#0a1430;color:#bfdbfe}
.card-art,.card:nth-child(2) .card-art,.card:nth-child(3) .card-art{background:#eff6ff}.card-art kbd{color:#1e40af;border-color:#bfdbfe;background:white}
.platform-link,.card-foot button{color:var(--brand-primary)}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}
input[type=checkbox],input[type=radio],input[type=range]{accent-color:var(--brand-primary)}
::selection{background:#bfdbfe;color:#0f172a}

/* Fixed-size vectors keep sidebar symbols readable on every device. */

.device-activity-note{display:flex;gap:12px;align-items:flex-start;padding:16px 20px;background:#b91c1c;border:3px solid #7f1d1d;border-left-width:10px;border-radius:10px;color:#fff;margin-bottom:22px;font-size:14px;font-weight:600;line-height:1.6;box-shadow:0 4px 14px rgba(185,28,28,.35)}.device-activity-note b{white-space:nowrap;text-transform:uppercase;letter-spacing:.04em;font-weight:800}.device-activity-note b::before{content:"\26A0\FE0E  ";font-size:16px}.computer-required{max-width:760px;margin:24px auto;border:1px solid #bfdbfe;border-left:6px solid #1d4ed8;background:#f8fbff}.computer-required h1{color:#1e3a8a;font-size:24px}
.computer-required-title{font-weight:700;margin:0 0 6px}.computer-required .device-symbol svg{color:#1d4ed8}.computer-required button{margin:6px 6px 6px 0}.device-symbol svg{width:48px;height:48px;color:#1d4ed8;margin-bottom:20px}@media(max-width:760px){.device-activity-note{flex-direction:column;gap:4px}}

/* Flow audit: accessible contrast overrides follow the base brand theme. */
.high-contrast .primary{background:#102a71;color:#fff}.high-contrast .muted,.high-contrast .page-head p{color:#334155}.high-contrast .lab-hero p,.high-contrast .hero p{color:#fff}
@media(max-width:760px){.page-head{flex-wrap:wrap;gap:16px}.page-head>div{min-width:0}.card-foot{flex-wrap:wrap;gap:10px}.result-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.result-grid strong{font-size:28px}}

.competency-cards{margin-top:24px;grid-template-columns:repeat(2,minmax(0,1fr))}.competency-cards h2{margin:12px 0 20px}.competency-cards li,.competency-feedback li{margin:10px 0;line-height:1.6}.competency-cards details{margin-top:20px}.competency-cards summary{cursor:pointer;color:#1d4ed8}.competency-task{max-width:900px;margin:auto}.competency-task h2{margin:20px 0}.competency-task label{display:block;margin:18px 0}.competency-task input,.competency-task select{display:block;margin-top:8px;width:100%;max-width:500px;padding:12px;border:1px solid #94a3b8;border-radius:6px;background:#fff;color:#0f172a}.competency-task .sim-workspace{padding:20px;margin:20px 0}.competency-task [aria-pressed=true]{outline:3px solid #1d4ed8;background:#eff6ff}@media(max-width:760px){.competency-cards{grid-template-columns:1fr}}

.profile-start-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.profile-start-grid article:first-child{background:#0a1430;color:#fff}.profile-start-grid article:first-child h2{color:#fff}.profile-start-grid h2{margin:12px 0}.profile-start-grid .eyebrow{letter-spacing:1.4px;font-size:11px}.profile-start-grid article:first-child p{color:#cbd5e1}#explore-digital-skills{scroll-margin-top:24px}#explore-digital-skills:focus-visible{outline:2px solid #1d4ed8;outline-offset:8px}@media(max-width:760px){.profile-start-grid{grid-template-columns:1fr}}
/* Profile home: one clear learning hierarchy, scoped to avoid shell/sidebar rules. */
.profile-dashboard{max-width:1180px;margin:0 auto}.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:26px}.profile-person{display:flex;align-items:center;gap:16px;min-width:0}.profile-kicker{font-size:11px;letter-spacing:1.3px;text-transform:uppercase;color:#64748b;margin:0 0 6px;overflow-wrap:anywhere}.profile-person h1{font-size:28px;margin-bottom:6px}.profile-person .muted{font-size:12px;margin:0}.profile-header-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.profile-text-button{color:#1d4ed8;font-size:12px;font-weight:600;padding:8px 0;text-align:left;min-height:40px}.profile-text-button:hover{text-decoration:underline}.profile-summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #e2e8f0;background:#fff;border-radius:12px;margin:22px 0 32px}.profile-summary-strip>div{padding:18px 22px;display:flex;align-items:center;gap:12px}.profile-summary-strip>div+div{border-left:1px solid #e2e8f0}.profile-summary-strip strong{font-size:25px;white-space:nowrap;color:#0f172a}.profile-summary-strip strong small{font-size:12px;font-weight:500;color:#64748b}.profile-summary-strip span{font-size:11px;line-height:1.5;color:#475569}.profile-dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}.profile-main-column,.profile-side-column{min-width:0}.profile-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.profile-section-heading h2,.profile-side-panel h2{font-size:17px}.profile-section-intro{font-size:12px;margin:10px 0 20px}.profile-pathway-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profile-pathway{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:20px;display:flex;flex-direction:column;min-width:0}.profile-card-top{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:17px}.profile-area-icon{background:#eff6ff;border-radius:10px;padding:9px;display:flex}.profile-area-icon svg{width:24px;height:24px;color:#1d4ed8}.profile-status{font-size:11px;line-height:1.5;font-weight:600;background:#f1f5f9;color:#475569;border-radius:20px;padding:5px 9px;text-align:center}.profile-status.is-learning{background:#eff6ff;color:#1e40af}.profile-status.is-achieved{background:#dcfce7;color:#166534}.profile-pathway h3{font-size:15px;line-height:1.5;margin-bottom:8px}.profile-skill-statement{font-size:12px;color:#475569;margin:0 0 14px;line-height:1.65}.profile-device{font-size:11px;color:#64748b;margin:0 0 16px}.profile-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto}.profile-card-actions .primary,.profile-card-actions .secondary{padding:10px 9px;min-height:42px}.profile-card-actions .profile-assess{grid-column:1/-1}.profile-evidence-note{font-size:11px;color:#64748b;line-height:1.7;margin:18px 0}.profile-side-column{display:grid;gap:16px}.profile-side-panel{padding:20px;background:#fff;border:1px solid #e2e8f0;border-radius:12px}.profile-side-panel>.muted{font-size:12px;line-height:1.7}.profile-count{font-size:12px;padding:5px 9px;border-radius:8px;background:#eff6ff;color:#1d4ed8}.profile-mini-row{padding:13px 0;border-bottom:1px solid #f1f5f9}.profile-mini-row b{font-size:12px;line-height:1.6;display:block;overflow-wrap:anywhere}.profile-mini-row small{display:block;font-size:11px;color:#64748b;line-height:1.6;margin-top:5px}.profile-typing-numbers{display:flex;gap:24px;margin:20px 0 12px}.profile-typing-numbers strong{display:block;font-size:26px}.profile-typing-numbers span{font-size:11px;color:#64748b}.profile-settings label{font-size:12px;display:block;margin:16px 0 8px}.profile-settings select{width:100%;border:1px solid #cbd5e1;border-radius:7px;padding:10px;background:#fff;color:#0f172a}.profile-settings [role=status]{font-size:11px}.profile-dashboard .profile-start-grid{grid-template-columns:1.35fr 1fr;gap:20px}.profile-dashboard .profile-start-grid article{padding:25px}.profile-dashboard .profile-start-grid h2{font-size:22px;line-height:1.4}.profile-dashboard .profile-start-grid p{font-size:12px;line-height:1.7}.high-contrast .profile-kicker,.high-contrast .profile-device,.high-contrast .profile-mini-row small,.high-contrast .profile-evidence-note{color:#334155}
@media(max-width:1199px){.profile-dashboard-grid{grid-template-columns:minmax(0,1fr)}.profile-side-column{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-summary-strip>div{padding:15px}.profile-heading{align-items:flex-start}}
@media(max-width:760px){.profile-heading{flex-direction:column;gap:14px}.profile-header-actions{flex-direction:row;align-items:center;flex-wrap:wrap}.profile-person h1{font-size:25px}.profile-dashboard .profile-start-grid{grid-template-columns:1fr}.profile-dashboard .profile-start-grid h2{font-size:21px}.profile-summary-strip>div{flex-direction:column;align-items:flex-start;gap:4px;padding:13px 10px}.profile-summary-strip strong{font-size:22px}.profile-summary-strip span{font-size:11px}.profile-section-heading{flex-wrap:wrap}.profile-pathway-grid,.profile-side-column{grid-template-columns:1fr}.profile-pathway{padding:20px}.profile-status{font-size:11px}.profile-device{font-size:11px}}

.integration-page{max-width:1120px;margin:auto}.integration-lead{max-width:70ch;color:var(--muted,#53647b);line-height:1.6}.integration-notice{padding:16px 20px;margin:24px 0;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1e40af}.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.integration-grid .card{padding:24px;min-width:0}.integration-grid h2{font-size:20px;margin:0 0 18px}.integration-grid p,.integration-grid li{line-height:1.65}.integration-grid li{margin-bottom:8px}.integration-grid dt{font-size:13px;color:#53647b;margin-top:16px}.integration-grid dd{margin:6px 0 0;overflow-wrap:anywhere;font-weight:600}.integration-grid dl{margin-bottom:22px}.integration-grid a{overflow-wrap:anywhere}.integration-grid .btn{display:inline-block;margin:8px 8px 0 0;padding:10px;border:1px solid #cbd5e1;border-radius:8px}.integration-grid button:focus-visible,.integration-grid a:focus-visible{outline:3px solid #2563eb;outline-offset:3px}@media(max-width:760px){.integration-grid{grid-template-columns:1fr}.integration-grid .card{padding:18px}}

.digital-teaching-section{margin-top:32px;border-top:1px solid #dbe3ef;padding-top:24px}.digital-task{min-width:0}.digital-task p,.digital-task li{overflow-wrap:anywhere;line-height:1.6}.digital-task details{margin:16px 0}.digital-teaching-section textarea,#digital-response textarea{min-height:100px;width:100%;resize:vertical}#digital-response label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}#digital-response input[type=checkbox]{width:20px;height:20px;flex-shrink:0}.digital-task .teacher-links{flex-wrap:wrap}
.device-storage-notice{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:14px 18px;margin-bottom:22px;background:#fffbeb;border:1px solid #fcd34d;border-left:6px solid #d97706;border-radius:10px;color:#78350f;font-size:13px;line-height:1.5}
.device-storage-notice>div{flex:1 1 320px;display:flex;flex-direction:column;gap:2px}
.device-backup{margin-top:22px}
.device-backup .file-button{display:inline-block;cursor:pointer}
/* Typing games: readable banner, consistent icons, live typing feedback. */
.arcade-banner h2{color:#fff}
.game-symbol .game-icon{width:72px;height:72px}
.game-setup>.game-art{flex-direction:column;gap:16px}
.game-setup-record{font-size:11px;font-weight:700;letter-spacing:.3px;background:rgba(255,255,255,.75);color:var(--brand-ink);padding:5px 11px;border-radius:20px}
.night .game-setup-record{background:rgba(255,255,255,.15);color:#fff}
.game-record{font-weight:600;color:var(--brand-ink)}
.how-to-title{font-size:14px;margin:22px 0 8px}
.how-to-play{margin:0 0 22px;padding-left:20px;font-size:13px;line-height:1.75;color:#334155}
.arcade-timebar{height:6px;border-radius:6px;background:#e2e8f0;margin:16px 0 0;overflow:hidden}
.arcade-timebar span{display:block;height:100%;width:100%;background:var(--brand-primary,#1d4ed8);transition:width .1s linear}
.arcade-timebar span.low{background:#dc2626}
.arcade-hearts{color:#dc2626;letter-spacing:3px}
.arcade-hearts .lost{color:#cbd5e1}
.arcade-stage{height:340px;margin:16px 0 18px}
.arcade-input{border:2px solid #cbd5e1;border-radius:10px;font:600 20px monospace}
.arcade-input:focus{border-color:var(--brand-primary,#1d4ed8);outline:none;box-shadow:0 0 0 4px rgba(37,99,235,.15)}
.flying-word{font-size:20px;animation-timing-function:linear;animation-fill-mode:forwards;z-index:1}
.stage-rain .flying-word{animation-name:kb-fall}
.stage-defender .flying-word{animation-name:kb-advance}
@keyframes kb-fall{from{top:12%}to{top:76.8%}}
@keyframes kb-advance{from{left:8%}to{left:80%}}
.flying-word.match{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.25);z-index:2}
.flying-word.danger{border-color:#dc2626;border-bottom-color:#dc2626}
.stage-defender .flying-word.match{background:#fff}
.typed-ok{color:#15803d}
.typed-wrong{color:#b91c1c;background:#fee2e2;border-radius:3px;text-decoration:underline}
.rain-floor{height:22px;background:repeating-linear-gradient(90deg,#9cc5a4 0 18px,#b8d4bc 18px 36px)}
.defender-base{width:34px}
.defender-base .game-icon{width:22px;height:22px}
.arcade-stage.hit{animation:kb-hit .45s ease-out}
@keyframes kb-hit{0%{box-shadow:inset 0 0 0 0 rgba(22,163,74,.6)}40%{box-shadow:inset 0 0 0 6px rgba(22,163,74,.55)}100%{box-shadow:inset 0 0 0 0 rgba(22,163,74,0)}}
.arcade-input.miss{animation:kb-shake .35s;border-color:#dc2626}
@keyframes kb-shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.arcade-stage.paused .flying-word,.arcade-stage.waiting .flying-word{animation-play-state:paused}
.arcade-stage.paused::after{content:'Paused';position:absolute;inset:0;display:grid;place-items:center;background:rgba(15,23,42,.55);color:#fff;font:700 28px Manrope,sans-serif;letter-spacing:1px;z-index:3}
.race-land{display:flex;align-items:center;justify-content:space-between;font-size:12px}
.race-land span{margin-left:0}
.race-land b{font-size:14px;color:#6b5320}
.race-ticks{position:absolute;inset:0 7% 0 0;display:flex;justify-content:space-evenly;pointer-events:none}
.race-ticks i{width:2px;background:rgba(255,255,255,.55)}
.race-car{display:flex;align-items:center;gap:4px;top:12px}
.race-car .game-icon{width:46px;height:46px}.race-car small{font-size:11px;font-weight:700;letter-spacing:.5px}.race-car{top:4px}
.race-car.you{color:#1d4ed8}
.challenge-word{font-family:monospace;letter-spacing:1px}
.sprint-count{text-align:center;color:var(--muted);font-size:13px;margin:0}
.game-result .result-icon.game-art{width:92px;height:92px;border-radius:50%;margin:0 auto 12px}
.game-result .result-icon .game-icon{width:48px;height:48px}
.game-result.new-best .result-best{color:#15803d;font-weight:700}
.reduced-motion .flying-word,.reduced-motion .arcade-stage.hit,.reduced-motion .arcade-input.miss{animation:none}
.reduced-motion .arcade-timebar span{transition:none}
@media (prefers-reduced-motion:reduce){.flying-word,.arcade-stage.hit,.arcade-input.miss{animation:none}}
.high-contrast .typed-ok{color:#14532d;text-decoration:underline}
@media(max-width:760px){.arcade-stage{height:280px}.flying-word{font-size:14px}}
/* Typing lessons: clearer path, progress and keyboard guidance. */
.goal-pill{display:flex;flex-direction:column;gap:6px;min-width:170px}
.goal-bar{display:block;height:5px;border-radius:5px;background:#e2e8f0;overflow:hidden}
.goal-bar i{display:block;height:100%;background:#f59e0b}
.goal-pill.done{border-color:#86efac;background:#f0fdf4;color:#166534}
.goal-pill.done .goal-bar i{background:#16a34a}
.mastery-dots{display:inline-flex;gap:4px;vertical-align:middle;margin-right:4px}
.mastery-dots i{width:9px;height:9px;border-radius:50%;border:1.5px solid currentColor;opacity:.55}
.mastery-dots i.on{background:#16a34a;border-color:#16a34a;opacity:1}
.hero .mastery-dots i.on{background:#86efac;border-color:#86efac}
.level-progress{height:4px;border-radius:4px;background:#e2e8f0;margin-top:10px;overflow:hidden}
.level-progress i{display:block;height:100%;background:var(--brand-primary,#1d4ed8)}
.level-path .done-level span{background:#dcfce7;color:#166534}
.lesson-card{position:relative;transition:box-shadow .15s}
.lesson-badge{position:absolute;top:11px;right:12px;font-size:11px;font-weight:800;letter-spacing:1px;padding:4px 8px;border-radius:12px;background:var(--brand-primary,#1d4ed8);color:#fff}
.lesson-badge.done{background:#dcfce7;color:#166534}
.lesson-card.current{border:2px solid var(--brand-primary,#1d4ed8);box-shadow:0 6px 18px rgba(29,78,216,.15)}
.lesson-card.locked{opacity:.55}
.lesson-card.locked .card-art kbd{color:#94a3b8;border-color:#e2e8f0}
.typing-session .session-numbers{gap:12px}
.typing-session .session-numbers>div{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:10px 16px;min-width:110px}
.typing-session .session-numbers b{font-size:26px}
.bar-row{display:flex;align-items:center;gap:12px;margin-top:18px}
.bar-row .bar{flex:1;margin:0;height:8px}
.bar-row .bar div{background:var(--brand-primary,#1d4ed8)}
#progress-label{font-size:12px;font-weight:700;color:var(--muted);min-width:36px;text-align:right}
.typing-text .current{border-bottom:3px solid var(--brand-primary,#1d4ed8);background:#dbeafe;animation:kb-caret 1s steps(1) infinite}
@keyframes kb-caret{50%{border-bottom-color:transparent}}
.typing-text .wrong{text-decoration:underline wavy #dc2626}
.keyboard{max-width:760px;background:#f1f5f9;border-radius:14px;padding:12px 10px 10px}
.key-row{gap:5px;margin:5px 0}
.key-row span{min-width:40px;height:40px;background:#fff;border-color:#cbd5e1;font-weight:600;color:#334155;position:relative}
.key-row.row-1{padding-left:26px}
.key-row.row-2{padding-left:38px}
.key-row .key-wide{min-width:74px;font-size:11px;font-weight:500;color:#64748b}
.key-row .space{width:300px}
.key-row .f0,.key-row .f8{background:#fdf2f8}
.key-row .f1,.key-row .f7{background:#fffbeb}
.key-row .f2,.key-row .f6{background:#f0fdf4}
.key-row .f3,.key-row .f5{background:#eff6ff}
.key-row .home::after{content:'';position:absolute;bottom:5px;width:12px;height:2px;border-radius:2px;background:#64748b}
.key-row .target{background:var(--brand-primary,#1d4ed8);color:#fff;border-color:#1e3a8a;box-shadow:0 0 0 3px rgba(37,99,235,.3);animation:kb-key 1.2s ease-in-out infinite}
.key-row .target.home::after{background:#fff}
@keyframes kb-key{50%{box-shadow:0 0 0 6px rgba(37,99,235,.12)}}
.goal-met strong{color:#15803d}
.goal-missed strong{color:#b45309}
.result-rounds{color:var(--muted);font-size:13px}
.reduced-motion .typing-text .current,.reduced-motion .key-row .target{animation:none}
@media (prefers-reduced-motion:reduce){.typing-text .current,.key-row .target{animation:none}}
.high-contrast .key-row span{background:#fff;border-color:#334155;color:#0f172a}
.high-contrast .key-row .target{background:#0f172a;color:#fff}
@media(max-width:760px){.key-row span{min-width:22px;height:32px}.key-row.row-1,.key-row.row-2{padding-left:0}.key-row .key-wide{min-width:36px}.key-row .space{width:160px}.typing-session .session-numbers>div{min-width:0;padding:8px 10px}.typing-session .session-numbers b{font-size:18px}}
.level-path .current-level{border-color:var(--brand-primary,#1d4ed8);background:#eff6ff}
/* Typing tests: chip setup, records and a dedicated result. */
.test-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start}
.field-label{display:block;font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);margin:18px 0 8px}
.choice-row{display:flex;flex-wrap:wrap;gap:8px}
.choice{border:1.5px solid #cbd5e1;background:#fff;border-radius:10px;padding:10px 16px;font-weight:600;color:#334155;cursor:pointer}
.choice:hover{border-color:#93c5fd;background:#eff6ff}
.choice.selected{border-color:var(--brand-primary,#1d4ed8);background:var(--brand-primary,#1d4ed8);color:#fff}
.test-duration-native .duration-controls>label[for=test-duration],.test-duration-native #test-duration{display:none}
.test-duration-native .duration-controls{margin-top:4px}
.test-duration-native #test-help{display:none}
.test-duration-native .custom-duration:not([hidden])~#test-help{display:block}
.test-preview{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:10px;padding:12px 16px;margin:18px 0}
.test-preview small{font-size:11px;letter-spacing:1px;color:var(--muted);font-weight:700}
.test-preview p{font:15px/1.6 monospace;color:#475569;margin:6px 0 0}
.test-start{font-size:15px;padding:13px 24px}
.records-table{width:100%;border-collapse:collapse;font-size:13px;margin-bottom:8px}
.records-table th{text-align:left;font-size:11px;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);font-weight:700;padding:6px 4px;border-bottom:1px solid var(--line)}
.records-table td{padding:9px 4px;border-bottom:1px solid #f1f5f9}
.records-empty{padding:14px;background:#f8fafc;border-radius:8px}
.test-records h3{font-size:14px;margin:20px 0 8px}
.recent-tests{list-style:none;margin:0;padding:0}
.recent-tests li{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #f1f5f9;font-size:13px}
.recent-tests li small{display:block;color:var(--muted);font-size:11px}
.recent-tests li>small{display:inline}
.recent-bar{height:6px;border-radius:6px;background:#e2e8f0;overflow:hidden}
.recent-bar i{display:block;height:100%;background:var(--brand-primary,#1d4ed8)}
.test-result .eyebrow{font-size:11px;letter-spacing:1.5px;color:var(--muted);font-weight:700}
.test-score{width:150px;height:150px;border-radius:50%;margin:18px auto 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#eff6ff;border:6px solid var(--brand-primary,#1d4ed8)}
.test-score strong{font-size:52px;line-height:1;color:var(--brand-ink)}
.test-score small{font-size:11px;color:var(--muted);margin-top:4px}
.test-result.new-best .test-score{border-color:#16a34a;background:#f0fdf4}
.test-result.new-best h1{color:#15803d}
.test-result .result-grid{flex-wrap:wrap}
@media(max-width:900px){.test-layout{grid-template-columns:1fr}}
/* Practice library: search, chip filters, informative cards. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.library-toolbar{margin-bottom:22px}
.library-progress{display:flex;align-items:center;gap:14px;font-size:13px;margin-bottom:14px}
.library-progress .goal-bar{flex:1;max-width:320px;height:7px}
.library-progress .goal-bar i{background:var(--brand-primary,#1d4ed8)}
.library-search input{width:100%;padding:12px 14px;border:1.5px solid #cbd5e1;border-radius:10px;font-size:15px}
.library-filter-row .field-label{margin-top:14px}
.library-filter-row .choice{display:inline-flex;align-items:center;gap:6px;padding:8px 13px;font-size:13px}
.choice .library-icon{width:16px;height:16px}
#library-count{font-weight:700;color:var(--brand-ink)}
.library-section{font-size:17px;margin:8px 0 12px}
.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr));gap:16px;margin-bottom:24px}
.library-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .15s,transform .15s}
.library-card:hover{box-shadow:0 8px 22px rgba(15,23,42,.08);transform:translateY(-1px)}
.library-band{display:flex;align-items:center;gap:8px;padding:12px 14px;font-size:11px;font-weight:700;letter-spacing:.4px}
.library-band .library-icon{width:20px;height:20px}
.library-band b{margin-left:auto;font-size:11px;letter-spacing:.8px;text-transform:uppercase;background:rgba(255,255,255,.7);color:#334155;padding:3px 8px;border-radius:10px}
.library-body{padding:14px 16px 16px;display:flex;flex-direction:column;flex:1}
.library-body h3{font-size:16px;margin:0 0 6px}
.library-body p{font-size:13px;line-height:1.55;color:#475569;margin:0 0 12px;flex:1}
.library-meta{display:flex;gap:8px;font-size:11px;margin-bottom:12px}
.library-meta span{padding:3px 8px;border-radius:10px;background:#f1f5f9;color:#475569;font-weight:600}
.library-meta .level-easy{background:#dcfce7;color:#166534}
.library-meta .level-medium{background:#fef3c7;color:#92400e}
.library-meta .level-challenging{background:#fee2e2;color:#991b1b}
.library-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #f1f5f9;padding-top:12px;font-size:12px;color:var(--muted)}
.library-foot .primary{padding:8px 14px;font-size:13px}
.library-card.practised .library-foot>span{color:#15803d;font-weight:700}
.library-empty{text-align:center;padding:40px 20px;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px}
.library-empty p{color:var(--muted)}
.library-result .eyebrow{font-size:11px;letter-spacing:1.5px;color:var(--muted);font-weight:700}
.library-result.new-best h1{color:#15803d}
.reduced-motion .library-card,.reduced-motion .library-card:hover{transition:none;transform:none}
.library-grid{grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr))}
.library-foot{flex-wrap:wrap}
.library-foot .primary{white-space:nowrap;margin-left:auto}
/* Computer Foundations: overview, mode stepper, animated demonstrations. */
.language-chips .choice{padding:8px 14px;font-size:13px}
.foundation-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:24px;align-items:center;margin-bottom:22px}
.foundation-overview-progress{display:flex;flex-direction:column;gap:10px;font-size:14px}
.foundation-overview-progress .goal-bar{height:8px}
.foundation-overview-progress .goal-bar i{background:var(--brand-primary,#1d4ed8)}
.foundation-overview-progress .primary{align-self:flex-start}
.foundation-all-done{color:#15803d;font-weight:700}
.foundation-ways{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.foundation-ways li{display:flex;gap:10px;align-items:flex-start;background:#f8fafc;border-radius:10px;padding:12px}
.foundation-ways b{display:block;font-size:13px}
.foundation-ways small{color:var(--muted);font-size:12px}
.mode-svg{width:22px;height:22px;flex:none;color:var(--brand-primary,#1d4ed8)}
.foundation-svg{width:64px;height:64px}
.foundation-icon .foundation-svg{width:34px;height:34px;color:var(--brand-primary,#1d4ed8)}
.foundation-card .game-art{position:relative}
.foundation-card.next{border:2px solid var(--brand-primary,#1d4ed8);box-shadow:0 6px 18px rgba(29,78,216,.15)}
.foundation-mode-pills{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 12px}
.mode-pill{border:1px solid #cbd5e1;background:#fff;border-radius:14px;padding:4px 10px;font-size:12px;color:#475569;cursor:pointer}
.mode-pill:hover{border-color:#93c5fd;background:#eff6ff}
.mode-pill.done{border-color:#86efac;background:#f0fdf4;color:#166534;font-weight:600}
.device-tag{font-size:11px;color:var(--muted)}
.foundation-card .card-foot .primary{padding:8px 14px;font-size:13px;white-space:nowrap}

.foundation-up-next .foundation-next-step{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:16px}
.foundation-success{background:#f0fdf4;border:1px solid #86efac;color:#166534;border-radius:10px;padding:12px 14px}
.foundation-success .secondary{margin-left:8px}
.mini-demo{min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.demo-pointer{position:relative;width:240px;height:90px}
.demo-dot{position:absolute;width:26px;height:26px;border:2px solid #93c5fd;border-radius:50%;animation:kb-dot 6s infinite}
.demo-dot:nth-child(1){left:10px;top:12px}
.demo-dot:nth-child(2){left:200px;top:40px;animation-delay:2s}
.demo-dot:nth-child(3){left:100px;top:56px;animation-delay:4s}
@keyframes kb-dot{0%,25%{background:transparent}30%,100%{background:#2563eb;border-color:#2563eb}}
.demo-cursor{position:absolute;color:#0f172a;animation:kb-cursor 6s infinite}
.demo-cursor .foundation-svg{width:26px;height:26px}
@keyframes kb-cursor{0%{left:120px;top:0}20%,33%{left:22px;top:24px}53%,66%{left:212px;top:52px}86%,100%{left:112px;top:68px}}
.demo-scroll{position:relative;width:140px;height:110px;border:2px solid #cbd5e1;border-radius:8px;overflow:hidden;background:#fff}
.demo-page{display:flex;flex-direction:column;gap:8px;padding:10px;animation:kb-scroll 5s ease-in-out infinite}
.demo-page i{display:block;height:12px;border-radius:4px;background:#e2e8f0}
.demo-page b{display:grid;place-items:center;height:28px;border-radius:6px;background:#dcfce7;color:#166534}
@keyframes kb-scroll{0%,15%{transform:translateY(0)}60%,85%{transform:translateY(-70px)}100%{transform:translateY(0)}}
.demo-wheel{position:absolute;right:6px;bottom:6px;color:#2563eb;font-weight:800;animation:kb-bob 1s infinite}
@keyframes kb-bob{50%{transform:translateY(4px)}}
.demo-keys kbd{display:inline-block;animation:kb-press 4.5s infinite;animation-delay:calc(var(--step)*1.5s)}
@keyframes kb-press{0%,20%{transform:translateY(0);background:#fff}6%,14%{transform:translateY(3px);background:#2563eb;color:#fff}}
.demo-steps{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px}
.demo-steps span{padding:6px 10px;border-radius:14px;background:#fff;border:1px solid #cbd5e1;font-size:13px;animation:kb-step 6s infinite;animation-delay:calc(var(--step)*1.5s)}
.demo-steps i{color:#94a3b8;font-style:normal}
@keyframes kb-step{0%,22%{background:#2563eb;color:#fff;border-color:#2563eb}25%,100%{background:#fff;color:inherit}}
.reduced-motion .demo-dot,.reduced-motion .demo-cursor,.reduced-motion .demo-page,.reduced-motion .demo-wheel,.reduced-motion .demo-keys kbd,.reduced-motion .demo-steps span{animation:none}
.reduced-motion .demo-dot{background:#2563eb}
.reduced-motion .demo-cursor{left:212px;top:52px}
@media (prefers-reduced-motion:reduce){.demo-dot,.demo-cursor,.demo-page,.demo-wheel,.demo-keys kbd,.demo-steps span{animation:none}}
@media(max-width:900px){.foundation-overview{grid-template-columns:1fr}.foundation-ways{grid-template-columns:1fr}}
.foundation-card .card-foot .primary,.card-foot .primary{color:#fff}
/* Simulations: stepper, live steps, richer desktop, files and writer. */

.sim-steps{list-style:none;padding:0;counter-reset:simstep;font-size:13px}
.sim-steps li{counter-increment:simstep;display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border-radius:8px;color:#475569}
.sim-steps li::before{content:counter(simstep);flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#e2e8f0;color:#334155;font-size:11px;font-weight:700}
.sim-steps li.step-current,.sim-steps li.active-step{background:#eff6ff;color:var(--brand-ink);font-weight:600}
.sim-steps li.step-current::before,.sim-steps li.active-step::before{background:var(--brand-primary,#1d4ed8);color:#fff}
.sim-steps li.step-done{color:#166534}
.sim-steps li.step-done::before{content:'✓';background:#16a34a;color:#fff}
#sim-feedback.sim-success{background:#f0fdf4;border:1px solid #86efac;color:#166534;border-radius:10px;padding:10px 12px;font-weight:600}
#sim-feedback.sim-retry{background:#fffbeb;border:1px solid #fcd34d;color:#92400e;border-radius:10px;padding:10px 12px}
.sim-svg{width:40px;height:40px}
.sim-svg.tiny{width:16px;height:16px;vertical-align:-3px}
.sim-desktop{background:radial-gradient(circle at 75% 20%,#93c5fd55,transparent 40%),linear-gradient(140deg,#1e3a8a,#0f172a);min-height:480px}
.desktop-icons button{color:#fff;font-size:12px;padding:8px;border-radius:8px;text-shadow:0 1px 2px #0008}
.desktop-icons button:hover{background:rgba(255,255,255,.12)}
.desktop-icon-art{display:grid;place-items:center;width:54px;height:54px;border-radius:12px;background:#fff;box-shadow:0 4px 10px #0004}
.desktop-icon-art.notes{color:#1d4ed8}
.desktop-icon-art.files{color:#b45309}
.desktop-icons span.desktop-icon-art{font-size:inherit}
.desktop-window{border-color:#94a3b8;border-radius:10px;overflow:hidden}
.desktop-window.front-window{box-shadow:0 18px 40px #0007;border-color:#60a5fa}
.window-title{background:#f1f5f9}
.front-window .window-title{background:#dbeafe}
.window-title>button{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.window-title div button{width:28px;border-radius:6px}
.window-title div button:last-child:hover{background:#dc2626;color:#fff}
.sim-taskbar{background:rgba(15,23,42,.94)}
.taskbar-start{display:grid;place-items:center;width:30px;height:30px;color:#93c5fd}
.sim-taskbar button{display:inline-flex;align-items:center;gap:6px;color:#e2e8f0;border-bottom:2px solid transparent;border-radius:6px 6px 0 0}
.sim-taskbar .selected{background:rgba(255,255,255,.12);border-bottom-color:#60a5fa}
.taskbar-clock{margin-left:auto;font-size:12px;color:#cbd5e1}
.app-title{background:#f1f5f9;align-items:center;gap:8px;justify-content:flex-start}
.app-title small{margin-left:auto}
.sim-toolbar{background:#f8fafc;border-bottom-color:#e2e8f0}
.sim-tool{display:inline-flex;align-items:center;gap:6px;border-color:#cbd5e1;font-size:12px;padding:7px 10px}
.sim-tool:hover:not(:disabled){background:#eff6ff;border-color:#93c5fd}
.sim-tool kbd{font-size:11px;color:#64748b;background:#f1f5f9;border-radius:4px;padding:1px 4px}
.file-location{padding:8px 16px;font-size:12px;color:#475569;border-bottom:1px solid #e2e8f0;background:#fff}
.file-tile{background:#fff;border:1.5px solid #e2e8f0;min-width:130px}
.file-tile>span{color:#2563eb}
.file-tile.folder-tile>span{color:#b45309}
.file-tile.selected{border-color:#2563eb;background:#eff6ff}
.file-tile.deleted>span{color:#94a3b8}
.file-hint{padding:0 25px 20px;font-size:12px;color:var(--muted)}
.sim-status{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:8px 14px;font-size:12px;border-top:1px solid #e2e8f0}
.save-pill{font-weight:700;padding:2px 8px;border-radius:10px}
.save-pill.saved{background:#dcfce7;color:#166534}
.save-pill.unsaved{background:#fef3c7;color:#92400e}
.area-overview{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:20px}
.area-overview>div{flex:1;min-width:220px;font-size:14px}
.area-overview .goal-bar{height:8px;margin-top:8px}
.area-overview .goal-bar i{background:var(--brand-primary,#1d4ed8)}
.sim-cards{display:grid;gap:14px}
.sim-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px}
.sim-card.next{border:2px solid var(--brand-primary,#1d4ed8);box-shadow:0 6px 18px rgba(29,78,216,.12)}
.sim-card-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:14px;background:#eff6ff;color:#1d4ed8}
.sim-card.done .sim-card-icon{background:#dcfce7;color:#166534}
.sim-card h3{margin:0 0 4px;font-size:16px}
.sim-card p{margin:0 0 10px;font-size:13px}
.sim-card .foundation-mode-pills{margin:0}
.sim-card-go{white-space:nowrap}
@media(max-width:900px){.sim-card{grid-template-columns:auto minmax(0,1fr)}.sim-card-go{grid-column:1/-1}}
.window-files{display:flex;flex-direction:column;gap:10px}
.window-files span{display:flex;align-items:center;gap:8px}
/* Documents, sheets and slides simulations. */
.doc-header{display:flex;align-items:center;gap:8px;padding:8px 16px;background:#fff;border-bottom:1px solid #e2e8f0;font-size:13px}
.doc-name{font-weight:700;color:var(--brand-ink)}
.style-chip{margin-left:auto;font-size:11px;font-weight:700;padding:3px 9px;border-radius:10px;background:#eff6ff;color:#1d4ed8}
.editor-paper{background:#e2e8f0}
.editor-paper textarea{background:#fff;border:0;box-shadow:0 4px 14px rgba(15,23,42,.12)}
.formula-bar{display:flex;align-items:center;gap:10px;padding:8px 16px;border-bottom:1px solid #e2e8f0;background:#fff;font-size:13px}
.formula-bar #cell-ref{min-width:44px;text-align:center;border:1px solid #cbd5e1;border-radius:6px;padding:3px 6px;font-family:monospace}
.formula-bar .fx{font-style:italic;color:#64748b;font-weight:700}
.formula-bar #cell-content{font-family:monospace;color:#334155}
.sim-sheet{border-collapse:collapse;border-color:#cbd5e1}
.sim-sheet td,.sim-sheet th{border-color:#e2e8f0}
.sim-sheet th{background:#f1f5f9;color:#64748b;font-size:12px;font-weight:600;width:40px}
.sim-sheet .sheet-head{font-weight:700;background:#f8fafc}
.sim-sheet input{background:#fff;font-family:monospace;font-size:14px;text-align:right}
.sim-sheet input:focus{outline:2px solid #2563eb;outline-offset:-2px;background:#eff6ff}
.sheet-total-row td{background:#f0fdf4;font-weight:700}
.sim-sheet output{color:#15803d;text-align:right}
.sim-sheet output.sheet-error{color:#b45309;font-size:13px;font-weight:600}
.slides-board{background:#e2e8f0;grid-template-columns:repeat(3,minmax(0,1fr))}
.practice-slide{aspect-ratio:16/10;display:flex;flex-direction:column;border:0;box-shadow:0 4px 12px rgba(15,23,42,.12);border-top:6px solid #94a3b8}
.practice-slide p{flex:1}
.slide-blue{border-top-color:#2563eb}
.slide-amber{border-top-color:#d97706}
.slide-green{border-top-color:#16a34a}
.slide-moves{display:flex;gap:6px}
.slide-moves button{flex:1;font-size:15px;background:#f8fafc}
.slide-moves button:hover:not(:disabled){background:#eff6ff;border-color:#93c5fd}
.slides-order{margin:0;padding:10px 20px 16px;background:#e2e8f0;font-size:13px;color:#475569}
.slides-order.ok{color:#15803d;font-weight:700}
.presenter{background:#0f172a;padding:24px;display:flex;flex-direction:column;align-items:center;gap:16px;min-height:360px}
.presenter-slide{width:min(560px,100%);aspect-ratio:16/9;background:#fff;border-radius:10px;padding:32px;border-top:8px solid #94a3b8;display:flex;flex-direction:column;justify-content:center}
.presenter-slide.slide-blue{border-top-color:#2563eb}
.presenter-slide.slide-amber{border-top-color:#d97706}
.presenter-slide.slide-green{border-top-color:#16a34a}
.presenter-slide h2{font-size:32px;margin:8px 0}
.presenter-slide small{color:var(--muted)}
.presenter-controls{display:flex;align-items:center;gap:10px;color:#cbd5e1;font-size:13px;flex-wrap:wrap;justify-content:center}
@media(max-width:900px){.slides-board{grid-template-columns:1fr}}
/* Internet & communication simulations: browser chrome, source checks, mail client. */
.browser-chrome{background:#e2e8f0;padding:8px 12px 0}
.browser-tab{display:inline-flex;align-items:center;gap:6px;background:#fff;border-radius:8px 8px 0 0;padding:7px 14px;font-size:12px;font-weight:600;max-width:70%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.browser-bar{display:flex;align-items:center;gap:12px;background:#fff;padding:8px 12px;color:#64748b;font-size:15px}
.address-bar{flex:1;background:#f1f5f9;border-radius:16px;padding:6px 14px;font-size:12px;color:#334155;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.search-box{display:flex;gap:8px;padding:16px 20px;border-bottom:1px solid #e2e8f0}
.search-box input{flex:1;border:1.5px solid #cbd5e1;border-radius:22px;padding:10px 18px;font-size:15px}
.search-box button{border-radius:22px;padding:10px 18px;background:var(--brand-primary,#1d4ed8);color:#fff;font-weight:700}
.browser-results{padding:16px 20px;display:flex;flex-direction:column;gap:12px}
.results-count,.browser-empty{font-size:12px;color:var(--muted);margin:0}
.source-card{display:flex;flex-direction:column;gap:4px;text-align:left;border:1px solid #e2e8f0;border-radius:12px;padding:14px 16px;background:#fff;width:100%}
.source-card:hover{border-color:#93c5fd;box-shadow:0 4px 12px rgba(15,23,42,.08)}
.source-card b{color:#1d4ed8;font-size:16px}
.source-card p{margin:0;font-size:12px;color:#475569}
.source-url{color:#15803d;font-size:12px}
.source-snippet{font-size:13px;color:#334155}
.source-checks{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.source-check{font-size:11px;font-weight:700;padding:3px 8px;border-radius:10px}
.source-check.ok{background:#dcfce7;color:#166534}
.source-check.missing{background:#fee2e2;color:#991b1b}
.source-page{border:1px solid #e2e8f0;border-radius:12px;padding:16px 18px}
.source-page h3{margin:8px 0 2px}
.link-button{color:#1d4ed8;font-size:13px;padding:0;background:none;border:0}
.saved-source{display:flex;align-items:center;gap:6px;font-size:13px;background:#f0fdf4;border:1px solid #86efac;color:#166534;border-radius:10px;padding:8px 12px;margin:0}
.mail-client{display:grid;grid-template-columns:150px minmax(0,1fr);min-height:400px}
.mail-folders{display:flex;flex-direction:column;gap:4px;padding:14px 10px;background:#f8fafc;border-right:1px solid #e2e8f0;font-size:13px}
.mail-folders span{padding:7px 10px;border-radius:8px;color:#475569}
.mail-folders .active{background:#dbeafe;color:#1d4ed8;font-weight:700}
.email-form.compose{padding:0 18px 18px}
.compose-head{margin:0 -18px 12px;padding:10px 18px;background:#1e293b;color:#fff;font-weight:700;font-size:13px}
.email-form.compose label{display:block;font-size:12px;color:#475569;margin-bottom:10px}
.email-form.compose input,.email-form.compose textarea{border:1px solid #cbd5e1;border-radius:8px;padding:9px 11px;font-size:14px}
.char-count{font-size:12px;color:#b45309;margin:-4px 0 12px}
.char-count.ok{color:#15803d}
.compose-actions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.compose-actions .primary{display:inline-flex;align-items:center;gap:6px}
.attach-button{border-style:dashed}
.mail-sent{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;color:#166534}
.mail-sent .sim-svg{width:56px;height:56px}
.mail-sent p{color:#334155;font-size:13px}
@media(max-width:900px){.mail-client{grid-template-columns:1fr}.mail-folders{flex-direction:row;border-right:0;border-bottom:1px solid #e2e8f0}}
/* Digital safety & responsible AI simulations. */
.mail-message{margin:16px 20px 0;border:1px solid #e2e8f0;border-radius:12px;padding:16px 18px;background:#fff;position:relative}
.mail-message.suspicious{border-color:#fca5a5}
.urgent-banner{display:inline-block;background:#dc2626;color:#fff;font-size:11px;font-weight:800;letter-spacing:1px;padding:3px 9px;border-radius:6px;margin-bottom:10px}
.mail-meta{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.mail-meta small{display:block;color:var(--muted);font-size:12px}
.mail-meta b+small{display:inline}
.sender-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fee2e2;color:#b91c1c;font-weight:800}
.mail-message h2{font-size:20px;margin:6px 0}
.mail-message mark{background:#fef08a;border-radius:3px;padding:0 2px}
.fake-link{display:inline-block;margin-top:6px;padding:8px 14px;border-radius:8px;background:#1d4ed8;color:#fff;font-size:13px;font-weight:700;cursor:not-allowed;opacity:.85}
.safety-options h3{font-size:15px;margin:18px 0 10px}
.sign-cards{display:flex;flex-wrap:wrap;gap:8px}
.sign-card{display:inline-flex;align-items:center;gap:8px;border:1.5px solid #cbd5e1;border-radius:10px;padding:9px 12px;font-size:13px;cursor:pointer;background:#fff}
.sign-card input{margin:0}
.sign-card.chosen{border-color:#d97706;background:#fffbeb;font-weight:600}
.choice-cards{display:grid;gap:8px}
.choice-card{display:flex;align-items:flex-start;gap:10px;border:1.5px solid #cbd5e1;border-radius:12px;padding:11px 14px;cursor:pointer;background:#fff;font-size:13px}
.choice-card input{margin-top:3px}
.choice-card b{display:block;font-weight:600}
.choice-card.chosen{border-color:var(--brand-primary,#1d4ed8);background:#eff6ff}
.choice-icon{font-size:18px;line-height:1}
.choice-hint{display:inline-block;margin-top:4px;font-size:11px;font-weight:700;padding:2px 8px;border-radius:10px}
.choice-hint.safe{background:#dcfce7;color:#166534}
.choice-hint.risky{background:#fee2e2;color:#991b1b}
.ai-chat{display:flex;flex-direction:column;gap:12px;padding:18px 20px;background:#f8fafc;border-bottom:1px solid #e2e8f0}
.chat-row{display:flex;align-items:flex-end;gap:8px}
.chat-row.user{justify-content:flex-end}
.chat-avatar{display:grid;place-items:center;min-width:34px;height:34px;padding:0 6px;border-radius:17px;background:#e2e8f0;font-size:11px;font-weight:700}
.ai-avatar{background:#1e293b;color:#fff}
.chat-bubble{max-width:70%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.5}
.chat-row.user .chat-bubble{background:#1d4ed8;color:#fff;border-bottom-right-radius:4px}
.chat-row.ai .chat-bubble{background:#fff;border:1px solid #e2e8f0;border-bottom-left-radius:4px}
.chat-bubble small{display:block;margin-top:6px;font-size:11px;color:#b45309}
.ai-check{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px}
.ai-check h3{margin-top:0}
.working-out{font:600 18px monospace;color:#334155;margin:0 0 8px}
.ai-verdict{font-size:13px;margin:8px 0 0;min-height:18px}
.ai-verdict.ok{color:#15803d;font-weight:700}
.ai-verdict.not-yet{color:#b45309}
.safety-options .choice-card input{width:auto;flex:none;margin:3px 0 0}
/* My Skills Profile: visual summary, competency track, visible area progress. */
.profile-summary-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
.profile-summary-strip>div{flex-wrap:wrap;align-content:center}
.profile-summary-strip>div>span:not(.goal-bar):not(.summary-ring){flex:1 1 100%}
.profile-summary-strip .goal-bar{flex:1 1 100%;height:6px}
.profile-summary-strip .goal-bar i{background:var(--brand-primary,#1d4ed8)}
.profile-summary-strip .goal-bar.done i{background:#16a34a}
.summary-ring{width:34px;height:34px;border-radius:50%;flex:none;background:conic-gradient(#16a34a calc(var(--pct)*1%),#e2e8f0 0);-webkit-mask:radial-gradient(circle,transparent 52%,#000 54%);mask:radial-gradient(circle,transparent 52%,#000 54%)}
.profile-pathway[data-state=achieved]{border-color:#86efac;box-shadow:inset 0 4px 0 #16a34a}
.profile-pathway[data-state=learning]{box-shadow:inset 0 4px 0 #2563eb}
.competency-track{list-style:none;display:flex;gap:4px;padding:0;margin:0 0 12px}
.competency-track li{flex:1;height:6px;border-radius:4px;background:#e2e8f0}
.competency-track li.reached{background:#93c5fd}
.competency-track li.current{background:#2563eb}
.profile-pathway[data-state=achieved] .competency-track li.reached{background:#16a34a}
.pathway-progress{border-top:1px solid #e2e8f0;margin-top:12px;padding-top:12px;display:flex;flex-direction:column;gap:6px;font-size:12px}
.pathway-progress-label{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pathway-progress .goal-bar{height:6px}
.pathway-progress .goal-bar i{background:#16a34a}
.typing-trend{display:flex;align-items:flex-end;gap:4px;height:46px;margin:4px 0 8px}
.typing-trend span{flex:1;background:#93c5fd;border-radius:3px 3px 0 0}
.typing-trend span:last-child{background:#1d4ed8}
.typing-change{font-size:12px;font-weight:700;margin:0 0 6px}
.typing-change.up{color:#15803d}
.typing-change.down{color:#b45309}
@media(max-width:900px){.profile-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-summary-strip>div:nth-child(3){border-left:0}}
/* A newly earned milestone is announced once, above the page and the phone menu. */
.milestone-toast{position:fixed;right:20px;bottom:20px;z-index:130;display:flex;align-items:center;gap:12px;max-width:min(440px,calc(100vw - 32px));background:#fff;border:1px solid var(--line);border-left:4px solid var(--brand-primary);border-radius:12px;padding:12px 14px;box-shadow:0 12px 32px #0f172a2e}.milestone-toast[hidden]{display:none}.milestone-toast .milestone-icon{width:28px;height:28px;flex:0 0 28px;color:var(--brand-primary)}.milestone-toast div{display:flex;flex-direction:column;gap:2px;min-width:0}.milestone-toast span{color:var(--muted);font-size:13px}.milestone-toast .secondary{white-space:nowrap}.milestone-toast-close{font-size:20px;line-height:1;padding:4px 6px;color:var(--muted)}
@media(max-width:760px){.milestone-toast{left:16px;right:16px;bottom:16px;max-width:none;flex-wrap:wrap}}
/* UI audit fixes: legibility, touch targets, the phone header and wasted space. */
/* Contrast: secondary text, decorations that carry meaning, and locked or disabled states stay at 4.5:1. */
footer{color:var(--muted)}
.demo-steps i{color:var(--muted)}
.click-target:disabled{color:#4b5563}
.lesson-card.locked{opacity:1;background:#f8fafc}
.lesson-card.locked h3,.lesson-card.locked .card-art .number{color:#475569}
.lesson-card.locked p,.lesson-card.locked .card-foot{color:var(--muted)}
.lesson-card.locked .card-art kbd{color:#64748b;border-color:#cbd5e1}
.lesson-card.locked button:disabled{opacity:1;color:var(--muted)}
.stat strong small{color:var(--muted)}
.finger{color:#4b5a3f}
.scroll-stops{color:#4d6b3a}
.keyboard-policy span{color:#4f5f48}

/* Touch screens: controls are at least 44px tall, checkboxes are easy to hit. */
@media(max-width:900px),(pointer:coarse){
#settings,#read-aloud-toggle,#lab-menu-toggle,.milestone-toast-close{min-width:44px;min-height:44px;display:inline-grid;place-items:center}
.lab-breadcrumbs a,.lab-breadcrumbs button,footer button,.skip-placement,.card-foot button,.mode-pill,.choice,.library-foot button,.sim-mode-buttons button,.sim-tool,.slide-moves button,#main .secondary,#main .primary,#main .profile-text-button,#modal button,.milestone-toast button{min-height:44px}
.lab-breadcrumbs a,footer button,.skip-placement,.card-foot button{display:inline-flex;align-items:center}
#main select,#main input:not([type=checkbox]):not([type=radio]),#modal select{min-height:44px}
#main input[type=checkbox],#main input[type=radio],#modal input[type=checkbox]{width:22px;height:22px}
#modal label{display:flex;align-items:center;gap:10px;min-height:44px}
}
/* Phones: a one-line header showing where you are; the menu handles the rest of the way. */
@media(max-width:760px){

.level-path{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:4px}
.level-path>div{flex:0 0 104px;padding:10px;scroll-snap-align:start}
}
/* Device notice is information, not an error. */
.device-activity-note{background:#eff6ff;border:1px solid #bfdbfe;border-left:5px solid var(--brand-primary);color:var(--ink);font-weight:400;box-shadow:none}
/* Cards size to their content instead of stretching to a taller neighbour; card footers line up. */.profile-start-grid,.learning-summary{align-items:start}
.profile-side-column{align-content:start}
.sim-workspace{min-height:320px}
.cards>.card{display:flex;flex-direction:column}
.cards>.card>.card-body{flex:1;display:flex;flex-direction:column}
.cards>.card .card-foot{margin-top:auto}
/* Remaining labels on tinted backgrounds. */
.card-art .number{color:var(--muted)}
.game-decoration{opacity:1}
.workspace-note{color:#475569}
.sim-sheet th{color:var(--muted)}
.pathway-progress small{font-size:12px}

/* A label, not a button. */
.page-head>.pill{border-color:transparent;background:#eff6ff;color:#1e40af}

/* Learning content audit: info feedback, Show me captions, document heading line, guided foundation steps */
#sim-feedback.sim-info{background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;border-radius:10px;padding:10px 12px}
.sim-caption{background:#f8fafc;border-left:3px solid var(--brand-primary,#1d4ed8);border-radius:6px;padding:10px 12px;font-size:13px;color:#1e293b;margin:4px 0 12px}
.editor-paper .doc-heading-label{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}
.editor-paper .doc-heading{font-size:23px;font-weight:700;border:0;border-bottom:1px solid #e2e8f0;background:#fff;padding:14px 30px;width:100%;box-sizing:border-box;border-radius:2px 2px 0 0}
.editor-paper .style-chip{align-self:flex-start;margin:0 0 4px}
.source-note{background:#fffbeb;border:1px solid #fcd34d;border-radius:8px;padding:8px 10px;font-size:13px;color:#78350f}
.click-target[aria-disabled=true]{background:#e2e8f0;border-color:#d1d8c9;color:#4b5563;cursor:default}
.foundation-steps{margin:8px 0 10px}
.foundation-hint{margin-bottom:12px}
/* Skill checks: the intro, "Recommended first", and the material each scenario shows (a note, a message, web pages, a receipt, a desktop). */
.competency-intro h2{margin:18px 0 6px}.competency-intro h2:first-child{margin-top:0}.competency-intro ul,.competency-covers{margin:6px 0 10px;padding-left:20px;line-height:1.6}.competency-progress{margin:14px 0}
.competency-pre{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin:12px 0;font-size:13px}.competency-pre ul{list-style:none;margin:6px 0 0;padding:0}.competency-pre li{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0}.competency-pre .pre-done b{color:#15803d}.competency-pre .pre-todo b{color:#b45309}
.competency-material{display:block;background:#fff;border:1px solid #cbd5e1;border-radius:12px;padding:14px 16px;margin:12px 0;max-width:560px;overflow-wrap:anywhere}.competency-material p{margin:6px 0}
.note-card{background:#fffbeb;border-color:#fcd34d}.message-card{border-left:4px solid #64748b}.message-kind{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}.message-card dl{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;margin:6px 0;font-size:13px}.message-card dt{color:var(--muted)}.message-card dd{margin:0}.message-link{color:#1d4ed8}
.page-results.cards{max-width:none;padding:0;border:0;background:none;grid-template-columns:repeat(2,minmax(0,1fr))}.page-card{text-align:left}.page-card[aria-pressed=true]{border-color:var(--brand-primary);box-shadow:0 0 0 2px var(--brand-primary)}.page-address{display:block;font:12px monospace;color:#15803d;margin-bottom:6px}.page-card p{margin:4px 0;font-size:13px}
.receipt-card ul,.desk-list{list-style:none;margin:8px 0 0;padding:0}.receipt-card li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed var(--line);padding:4px 0}.desk-list li{padding:3px 0}
.competency-sheet{width:auto;margin:8px 0}.competency-sheet th,.competency-sheet td{padding:4px 8px;border:1px solid var(--line)}.competency-sheet th{background:#f1f5f9;text-align:center}.competency-sheet input{width:120px;max-width:30vw}
.competency-question{max-width:560px}.competency-question select{display:block;margin-top:6px;width:100%}
@media(max-width:640px){.page-results.cards{grid-template-columns:1fr}}
.typing-language{align-items:center;gap:8px;margin:0 0 16px}

/* Tcha, the instructor: a panel above the activity, a floating pointer and keycap, and a spotlight on the next control */

@keyframes amani-talk{from{transform:scaleY(.35)}to{transform:scaleY(1.35)}}
@keyframes amani-blink{0%,95%,100%{transform:scaleY(1)}97%{transform:scaleY(.1)}}
#tour-pointer{position:fixed;left:-4px;top:-3px;z-index:200;pointer-events:none;transition:transform .8s cubic-bezier(.4,0,.2,1);filter:drop-shadow(0 2px 2px #0f172a55)}
#tour-pointer[hidden],#tour-key[hidden]{display:none}
#tour-pointer.clicking::after{content:'';position:absolute;left:-10px;top:-10px;width:24px;height:24px;border-radius:50%;border:3px solid #f59e0b;animation:tour-ripple .5s ease-out forwards}
@keyframes tour-ripple{from{transform:scale(.3);opacity:1}to{transform:scale(1.7);opacity:0}}
#tour-key{position:fixed;left:0;top:0;z-index:201;pointer-events:none;background:#0f172a;color:#fff;font:700 13px system-ui,sans-serif;padding:6px 10px;border-radius:6px;box-shadow:0 3px 0 #475569;white-space:nowrap}
.tour-spotlight{outline:3px solid #f59e0b!important;outline-offset:3px;box-shadow:0 0 0 8px #f59e0b33!important;animation:tour-glow 1.6s ease-in-out infinite;position:relative;z-index:5}
@keyframes tour-glow{50%{box-shadow:0 0 0 13px #f59e0b1f!important}}
.tour-demo{pointer-events:none}

@media(prefers-reduced-motion:reduce){#tour-pointer{transition:none}.tour-spotlight{animation:none!important}}
body.reduced-motion #tour-pointer{transition:none}body.reduced-motion .tour-spotlight{animation:none!important}
/* Devices with no built-in voice: hide controls that could only stay silent; Tcha's recordings still play */
body.no-device-voice .read-aloud-button:not(.recorded),body.no-device-voice #read-aloud-toggle{display:none}
.voice-note{position:fixed;right:20px;bottom:20px;z-index:130;display:flex;align-items:flex-start;gap:10px;max-width:min(420px,calc(100vw - 32px));background:#fff;border:1px solid var(--line);border-left:4px solid var(--brand-primary,#1d4ed8);border-radius:12px;padding:12px 14px;box-shadow:0 12px 32px #0f172a2e}
.voice-note[hidden]{display:none}
.voice-note p{margin:0;font-size:14px;line-height:1.45;color:#0f172a}
.voice-note button{flex:none;min-width:32px;min-height:32px;padding:0}
/* Meet the computer: stage headings, the parts picture, the practice laptop, mouse practice and the real-computer checklist */
.foundation-stage{grid-column:1/-1;margin:14px 0 2px}
.foundation-stage h2{font-size:18px;margin:0}
.foundation-stage p{margin:4px 0 0}
.parts-prompt{font-size:17px;font-weight:700;margin:0 0 10px;color:#0f172a}
.parts-scene{position:relative;width:100%;max-width:560px;aspect-ratio:400/250;background:#f8fafc;border:1px solid var(--line);border-radius:12px}
.parts-scene svg{position:absolute;inset:0;width:100%;height:100%}
.part-spot{position:absolute;padding:0;min-height:0;min-width:0;background:transparent;border:2px solid transparent;border-radius:8px;cursor:pointer}
.part-spot:hover,.part-spot:focus-visible{border-color:#1d4ed8;background:#1d4ed81a}
.part-spot.found{border-color:#16a34a;background:#16a34a14}
.part-spot span{position:absolute;left:50%;bottom:100%;transform:translate(-50%,-2px);white-space:nowrap;background:#166534;color:#fff;font-size:11px;font-weight:700;padding:2px 6px;border-radius:6px}
.parts-note{min-height:1.4em;margin:10px 0 0;font-size:14px;color:#334155}
.power-sim{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end}
.power-laptop{width:min(360px,100%)}
.power-screen{aspect-ratio:16/10;border:10px solid #1e293b;border-radius:10px 10px 0 0;display:flex;align-items:center;justify-content:center;text-align:center;font-size:13px;padding:8px;box-sizing:border-box;transition:background .4s}
.power-screen.dark{background:#020617;color:#94a3b8}
.power-screen.sleeping{background:#0f172a;color:#cbd5e1}
.power-screen.lit{background:#bfdbfe;padding:0;align-items:stretch}
.power-desktop{position:relative;flex:1;display:flex;flex-direction:column;justify-content:flex-end;animation:power-boot .6s ease-out}
@keyframes power-boot{from{opacity:0}to{opacity:1}}
.power-warning{position:absolute;top:8px;left:8px;right:8px;margin:0;background:#fef3c7;color:#78350f;border-radius:6px;padding:6px 8px;font-size:12px;font-weight:600}
.power-taskbar{display:flex;justify-content:space-between;align-items:center;background:#0f172acc;color:#fff;padding:4px 6px;font-size:12px}
.start-button{background:#1d4ed8;color:#fff;border:0;border-radius:6px;padding:4px 10px;min-height:30px;font-size:12px}
.power-battery.low{color:#fcd34d;font-weight:700}
.power-start-menu{position:absolute;left:6px;bottom:40px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 20px #0f172a33;padding:6px;display:flex;gap:6px;align-items:flex-start}
.power-start-menu button,.power-options button,.mouse-menu button{display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:6px;padding:6px 10px;min-height:34px;font-size:13px;margin:0 0 4px}
.power-deck{height:22px;background:#cbd5e1;border-radius:0 0 12px 12px;display:flex;justify-content:flex-end;align-items:center;padding:0 12px}
.power-key{width:30px;height:30px;min-height:0;min-width:0;border-radius:50%;border:2px solid #475569;background:#f8fafc;font-size:14px;line-height:1;padding:0;margin-top:-6px}
.charger{border:2px dashed #94a3b8;background:#fff;border-radius:10px;padding:10px 14px;font-size:14px}
.charger.plugged{border-style:solid;border-color:#16a34a;color:#166534;font-weight:600}
.mouse-practice{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.mouse-zone{position:relative;border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:#fff}
.mouse-zone.done{border-color:#86efac;background:#f0fdf4}
.mouse-zone b{font-size:13px}
.mouse-folder,.mouse-picture,.mouse-card{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:34px;background:#f8fafc;border:2px solid transparent;border-radius:10px;padding:8px 14px;user-select:none}
.mouse-folder span,.mouse-picture span{font-size:12px}
.mouse-folder.selected{border-color:#93c5fd;background:#eff6ff}
.mouse-card{flex-direction:row;font-size:14px;font-weight:600;border-color:#cbd5e1;touch-action:none;cursor:grab;position:relative;z-index:2}
.mouse-card.dragging{cursor:grabbing;box-shadow:0 8px 18px #0f172a33}
.drop-box{width:100%;min-height:56px;border:2px dashed #94a3b8;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#475569;font-size:13px}
.mouse-zone.done .drop-box{border-style:solid;border-color:#16a34a;color:#166534;font-weight:600}
.mouse-menu{position:absolute;left:60%;top:60px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 20px #0f172a33;padding:6px;z-index:3;min-width:110px}
.real-check{margin-top:18px}
.real-check h2{font-size:17px;margin:0 0 4px}
.real-items{display:grid;gap:6px;margin:10px 0}
.real-item{display:flex;gap:10px;align-items:flex-start;font-size:14px;min-height:32px}
.real-helper{display:flex;flex-direction:column;gap:4px;max-width:320px;margin:0 0 10px;font-size:13px}
.real-check.done{border-color:#86efac;background:#f0fdf4}
.real-check.done ul{margin:6px 0 10px;padding-left:4px;list-style:none}
.real-evidence{font-size:13px;color:#166534;margin:6px 0}
.hw-check h3{font-size:15px;margin:16px 0 8px}
/* Plug in and connect, Look after your computer, Sign in */
.connect-card{background:#fefce8;border:1px dashed #ca8a04;border-radius:10px;padding:8px 12px;font-size:14px;margin:0 0 12px}
.connect-row{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
.connect-items{display:flex;flex-direction:column;gap:8px}
.connect-item{border:2px solid var(--line);background:#fff;border-radius:10px;padding:8px 12px;font-size:14px;text-align:left}
.connect-item.selected{border-color:#1d4ed8;background:#eff6ff}
.connect-item.plugged{border-color:#86efac;background:#f0fdf4;color:#166534}
.connect-ports{display:flex;gap:10px;background:#cbd5e1;border-radius:12px;padding:12px}
.connect-port{display:flex;flex-direction:column;align-items:center;gap:4px;background:#e2e8f0;border:2px solid #94a3b8;border-radius:8px;padding:8px;min-width:84px}
.connect-port small{font-size:11px;color:#334155}
.port-shape{display:grid;place-items:center;background:#1e293b;color:#fff;font-size:12px}
.port-shape.usb{width:34px;height:14px;border-radius:2px}
.port-shape.audio{width:20px;height:20px;border-radius:50%}
.port-shape.charge{width:26px;height:16px;border-radius:8px}
.connect-taskbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-top:12px;background:#0f172a;color:#fff;border-radius:8px;padding:6px 10px}
.wifi-button{background:transparent;color:#fff;border:1px solid #475569;border-radius:6px;padding:4px 10px;font-size:13px}
.wifi-button.on{border-color:#86efac}
.volume{display:flex;align-items:center;gap:8px;font-size:13px}
.volume input{width:130px}
.wifi-panel{margin-top:8px;margin-left:auto;max-width:300px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 20px #0f172a26;padding:8px;display:flex;flex-direction:column;gap:6px}
.wifi-network{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:#fff;border:1px solid var(--line);border-radius:8px;padding:6px 10px;font-size:14px}
.wifi-network small{font-size:12px;color:#475569}
.wifi-network.chosen{border-color:#1d4ed8;background:#eff6ff}
.wifi-panel label{display:flex;flex-direction:column;gap:4px;font-size:13px}
.care-card{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff;max-width:460px}
.care-card p{font-size:17px;font-weight:600;margin:0 0 12px;color:#0f172a}
.care-choices{display:flex;flex-wrap:wrap;gap:10px}
.care-good,.care-bad{border-radius:10px;padding:10px 16px;font-size:15px;font-weight:600;border:2px solid}
.care-good{border-color:#16a34a;color:#166534;background:#f0fdf4}
.care-bad{border-color:#dc2626;color:#991b1b;background:#fef2f2}
.care-done{font-weight:700;color:#166534}
.signin-form{display:flex;flex-direction:column;gap:10px;max-width:340px;border:1px solid var(--line);border-radius:12px;padding:16px;background:#f8fafc}
.signin-form label{display:flex;flex-direction:column;gap:4px;font-size:13px}
.signin-pass-row{display:flex;gap:6px}
.signin-pass-row input{flex:1;min-width:0}
.signin-welcome{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.signin-welcome h3{margin:0}
.connect-taskbar .volume{margin:0}
.connect-taskbar .volume input{padding:0;margin:0;border:0;height:24px;background:transparent}
/* Flow refinements: Tcha as a compact bar on phones, one demonstration at a time, stage-complete screens */

@media(max-width:760px){

body.amani-on main{padding-bottom:130px}
}
.stage-complete{max-width:640px;margin:24px auto;text-align:center;padding:28px}
.stage-complete-icon{font-size:34px;color:var(--brand-primary,#1d4ed8)}
.stage-complete h1{margin:6px 0}
.stage-complete-stats{list-style:none;padding:0;margin:16px 0;display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.stage-complete-stats li{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:10px 14px}
.stage-complete-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:16px}
.computer-required-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
/* A brand-new learner sees one clear way to start, without a row of zeros */

.profile-start-grid.single{grid-template-columns:1fr}
.parts-round{display:inline-block;margin:0 0 6px;font-size:12px;font-weight:700;color:#1e3a8a;background:#eff6ff;border-radius:999px;padding:3px 10px}
/* Find your starting point */
.starting-point{max-width:860px;margin:16px auto;padding:24px}
.starting-point h1{margin:6px 0 8px}
.starting-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 6px}
.quiz-progress{height:8px;background:var(--line);border-radius:99px;overflow:hidden;margin:12px 0 22px}.quiz-progress span{display:block;height:100%;background:var(--brand-primary);transition:width .2s}.quiz-lead{font-size:1rem;margin:0 0 4px}.quiz-area{font-weight:700;color:var(--muted);margin:0 0 6px}.quiz-question{font-size:clamp(1.35rem,3vw,1.9rem);line-height:1.3;margin:0 0 8px}
.quiz-answers{display:grid;gap:10px;margin:18px 0 8px;max-width:520px}
.starting-quiz .quiz-answer{min-height:56px;font-size:1.05rem;text-align:left;padding:12px 18px}

.starting-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:14px 0}
.starting-card{border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:6px;background:#fff}
.starting-card small{color:#475569}
.starting-level{align-self:flex-start;white-space:nowrap;font-size:12px;font-weight:700;border-radius:999px;padding:3px 10px}
.starting-level.start{background:#f1f5f9;color:#334155}
.starting-level.practise{background:#fef3c7;color:#78350f}
.starting-level.ready{background:#dcfce7;color:#166534}
.starting-card.ready{border-color:#86efac}
.starting-path{padding-left:0;list-style:none;display:grid;gap:8px}
.starting-path li{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.starting-path li button{margin-left:auto}
.starting-sentence{font:600 18px ui-monospace,monospace;background:#f8fafc;border-radius:8px;padding:10px 12px}
#starting-typing{width:min(100%,520px)}
.starting-sms{background:#f1f5f9;border-left:4px solid #94a3b8;border-radius:8px;margin:10px 0;padding:10px 14px}
.starting-task{font-size:1.05rem;font-weight:600;color:var(--ink);background:var(--brand-soft);border:1px solid var(--brand-border);border-radius:10px;padding:12px 14px;margin:14px 0 16px}.starting-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;margin:10px 0}.starting-inline>input,.starting-inline>select{flex:1 1 140px;min-width:0}.starting-point #starting-check input:not([type=checkbox]),.starting-point #starting-check select{min-height:44px;border:1.5px solid #cbd5e1;border-radius:10px;padding:8px 12px;font:inherit;background:#fff;color:var(--ink)}.starting-point #starting-check .starting-sheet input{min-height:36px;width:100%}.starting-inline>button{min-height:44px}.starting-files{display:grid;gap:14px;max-width:540px}.starting-field{display:grid;gap:2px}.starting-field label{font-weight:600;margin:8px 0 0}.starting-field .starting-inline{margin:4px 0 0}.starting-signs{display:grid;gap:8px;margin:12px 0;max-width:540px}.starting-skip{border-top:1px solid var(--line);margin-top:24px;padding-top:16px;align-items:center}
.starting-file{display:flex;align-items:center;gap:12px;background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:1.6rem}.starting-file b{display:block;font-size:1rem}.starting-file small{display:block;font-size:.85rem;color:var(--muted)}
.starting-choices{display:grid;gap:10px;max-width:560px}
.starting-sheet{max-width:360px;margin:10px 0}
.lesson-badge.skip{background:#dcfce7;color:#166534}
.sim-card-body>.lesson-badge.skip{display:inline-block;margin-bottom:6px;font-size:11px;font-weight:700;border-radius:999px;padding:2px 8px}
.starting-hint{margin:8px 0 0;color:#475569;font-size:14px}
.starting-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:12px 0 16px}
.starting-group{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff}
.starting-group p{margin:6px 0 0;font-size:14px}
.starting-group.start{border-top:4px solid #94a3b8}.starting-group.practise{border-top:4px solid #f59e0b}.starting-group.ready{border-top:4px solid #22c55e}.starting-group.none{border-top:4px dashed #cbd5e1}
.task-key{background:#fef08a;color:inherit;border-radius:4px;padding:0 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
/* Spot a fake M-PESA message: a practice phone */
.phone-frame{max-width:340px;margin:12px auto 18px;border:10px solid #1e293b;border-radius:30px;background:#1e293b;box-shadow:0 8px 24px rgba(15,23,42,.18)}
.phone-screen{background:#f8fafc;border-radius:20px;min-height:360px;overflow:hidden;display:flex;flex-direction:column}
.phone-status{display:flex;justify-content:space-between;font-size:12px;padding:6px 14px;color:#475569}
.phone-tabs{display:flex;border-bottom:1px solid var(--line)}
.phone-tab{flex:1;border:0;background:none;padding:10px;font-weight:600;color:#475569;cursor:pointer}
.phone-tab.selected{color:#15803d;box-shadow:inset 0 -3px #16a34a}
.sms-thread{padding:12px;display:flex;flex-direction:column;gap:8px}
.sms-from{font-weight:700;font-size:14px}
.sms-bubble{background:#e2e8f0;border-radius:14px 14px 14px 4px;padding:10px 12px;margin:0;font-size:14px;line-height:1.45}
.sms-thread mark{background:#fef08a;border-radius:3px;padding:0 2px}
.mpesa-menu{padding:14px;display:flex;flex-direction:column;gap:8px}
.mpesa-menu h3{margin:0;color:#15803d}
.mpesa-balance{background:#dcfce7;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
/* Lock your account: a practice security page */
.security-page{display:grid;gap:12px}
.security-profile{background:#f1f5f9;border-radius:8px;padding:8px 12px;margin:0;font-size:14px}
.security-card{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff;display:flex;flex-direction:column;gap:8px}
.security-card h3{margin:0}
.security-card>label{display:flex;flex-direction:column;gap:4px;max-width:360px}
.security-ok{color:#166534;font-weight:600;margin:0}
.pw-show{align-self:flex-start}
.pw-meter{height:8px;max-width:360px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.pw-meter i{display:block;height:100%;background:#94a3b8;transition:width .2s}
.pw-meter.weak i{background:#dc2626}.pw-meter.okay i{background:#f59e0b}.pw-meter.strong i{background:#16a34a}
.pw-level{font-size:13px}
.pw-rules{list-style:none;padding:0;margin:0;font-size:14px;color:#b91c1c}
.pw-rules li.ok{color:#166534}
.phone-notice{background:#1e293b;color:#fff;border-radius:12px;padding:10px 12px;max-width:360px;display:flex;flex-direction:column;gap:4px}
.phone-notice small{color:#cbd5e1}
.security-card .primary,.security-card .secondary{align-self:flex-start}
/* Open a website and browse safely */
.browser-bar .address-input{flex:1;min-width:0;border:1px solid #cbd5e1;border-radius:999px;padding:6px 12px;font-size:14px;background:#f8fafc}
.browser-back{border:0;background:none;font-size:18px;cursor:pointer;color:#334155}.browser-back:disabled{color:#cbd5e1;cursor:default}
.site-view{position:relative;min-height:300px;background:#fff;padding:16px 20px}
.site-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:12px}
.site-table{max-width:360px}
.site-error h3{margin-top:0}.site-error.trick{background:#fef2f2;border:1px solid #fecaca;border-radius:12px;padding:14px}
.site-popup{position:absolute;inset:40px 24px auto;max-width:360px;margin:auto;background:#fff;border:2px solid #f59e0b;border-radius:14px;box-shadow:0 12px 32px rgba(15,23,42,.25);padding:16px;text-align:center}
.site-popup .popup-close{position:absolute;top:6px;right:8px;border:0;background:#f1f5f9;border-radius:6px;width:28px;height:28px;font-weight:700;cursor:pointer}
/* Read and reply to an email */
.mail-pane{min-width:0}
.inbox-list{display:flex;flex-direction:column}
.inbox-row{display:grid;grid-template-columns:140px minmax(0,1fr) auto;gap:10px;text-align:left;border:0;border-bottom:1px solid var(--line);background:#fff;padding:12px 16px;cursor:pointer;font-weight:400}
.inbox-row b{font-weight:500}.inbox-row.unread b,.inbox-row.unread span{font-weight:700}
.inbox-list>.muted{padding:8px 16px}
.mail-read{padding:14px 18px}.mail-read h3{margin:8px 0}
.mail-from{font-size:14px;margin:0 0 10px}
.mail-body{background:#f8fafc;border-radius:10px;padding:12px 14px;line-height:1.5}
.mail-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.reply-field{margin:4px 0;font-size:14px}
.mail-quote{border-left:3px solid #cbd5e1;margin:10px 0;padding:4px 12px;color:#475569;font-size:13px}
@media (max-width:640px){.inbox-row{grid-template-columns:1fr}}
.site-popup h3{margin:4px 30px 8px;font-size:17px}
/* Chat in a group */
.chat-app{border:1px solid var(--line);border-radius:14px;overflow:hidden;max-width:560px;margin:0 auto 16px;background:#fff}
.chat-head{display:flex;justify-content:space-between;align-items:center;background:#0f766e;color:#fff;padding:10px 14px}.chat-head small{color:#ccfbf1}
.chat-thread{background:#f1f5f9;padding:12px;display:flex;flex-direction:column;gap:8px;min-height:240px}
.chat-msg{max-width:80%;border-radius:12px;padding:8px 10px;font-size:14px;box-shadow:0 1px 1px rgba(15,23,42,.08)}
.chat-msg p{margin:2px 0}.chat-msg small{color:#64748b;font-size:11px}.chat-msg .link-button{font-size:12px;margin-left:8px}
.chat-msg.them{background:#fff;align-self:flex-start}.chat-msg.them b{color:#0f766e;font-size:13px}
.chat-msg.mine{background:#dcfce7;align-self:flex-end}.chat-msg.mine.deleted{background:#e2e8f0;color:#64748b;font-style:italic}
.chat-quote{border-left:3px solid #0f766e;background:rgba(255,255,255,.6);margin:0 0 4px;padding:4px 8px;font-size:12px;border-radius:4px}
.chat-file-sent{font-weight:600}
.chat-compose{border-top:1px solid var(--line);padding:8px;display:flex;flex-direction:column;gap:6px}
.chat-replying,.chat-pending{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#f0fdfa;border-left:3px solid #0f766e;border-radius:6px;padding:6px 8px;font-size:13px}
.chat-replying button,.chat-pending button{border:0;background:#e2e8f0;border-radius:6px;font-weight:700;cursor:pointer;padding:2px 8px}
.chat-files{display:flex;flex-wrap:wrap;gap:6px}.chat-file{border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px 10px;cursor:pointer}
.chat-bar{display:flex;gap:6px;align-items:center}.chat-bar input{flex:1;min-width:0;border:1px solid #cbd5e1;border-radius:999px;padding:8px 12px}
.chat-attach{border:0;background:none;font-size:20px;cursor:pointer}
.chat-head b{color:#fff}
/* Format a document */
.fmt-toolbar{align-items:center}.fmt-style-label{display:flex;align-items:center;gap:6px;font-size:13px}
.fmt-paper{cursor:text;user-select:none;outline:none}
.fmt-line{padding:4px 6px;border-radius:4px;cursor:pointer}
.fmt-p{padding:4px 6px;margin:8px 0}.fmt-note{margin:10px 6px 2px;color:#475569}
.fmt-word{cursor:pointer;border-radius:3px;padding:0 1px}
.fmt-selected{background:#bfdbfe}
.fmt-heading{font-size:22px;font-weight:700;color:#1e3a8a}
.fmt-b{font-weight:700}
.fmt-li{display:list-item;list-style:disc;margin-left:28px}
.fmt-tip{margin:8px 0 0;font-size:13px}
/* Make a slide */
.slide-editor{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:14px}
.slide-canvas{width:min(100%,520px);aspect-ratio:16/9;border:1px solid #cbd5e1;border-radius:8px;padding:18px;display:flex;flex-direction:column;gap:10px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.1)}
.slide-title-box,.slide-body-box{border:1px dashed #94a3b8;border-radius:6px;background:transparent;padding:8px;font:inherit;color:inherit}
.slide-title-box{font-size:24px;font-weight:700}.slide-body-box{flex:1;resize:none;font-size:16px}
.slide-canvas.theme-clear{background:#f8fafc;color:#0f172a}
.slide-canvas.theme-pale{background:#fff;color:#fde68a}
.slide-canvas.theme-photo{background:repeating-linear-gradient(45deg,#16a34a 0 14px,#facc15 14px 28px,#0ea5e9 28px 42px);color:#fff}.slide-canvas.theme-photo .slide-body-box,.slide-canvas.theme-photo .slide-title-box{font-size:12px}
/* The welcome tour offer on a new learner's start card */
.welcome-offer{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:10px 12px;margin:0 0 12px}
.welcome-offer span{flex:1 1 220px;font-weight:600;color:#1e3a8a}

/* Who's learning today? One card per learner on this computer, then a card to add a new learner. */
.learner-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:16px}
.learner-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.learner-card.current{border-color:var(--brand-primary);box-shadow:0 0 0 1px var(--brand-primary)}
.learner-pick{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:22px 20px 14px;background:none;border:0;text-align:left;cursor:pointer;flex:1}
.learner-pick:hover,.learner-pick:focus-visible{background:var(--brand-soft)}
.learner-pick b{font-size:17px;color:var(--ink);margin-top:10px}
.learner-pick small{color:var(--muted);font-size:12px}
.learner-face{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--brand-soft);color:var(--brand-primary);font-size:22px;font-weight:700;border:1px solid var(--brand-border)}
.learner-current{margin-top:8px;font-size:11px;font-weight:600;color:var(--brand-primary);background:var(--brand-soft);border-radius:99px;padding:3px 9px}
.learner-card-actions{display:flex;gap:4px;padding:10px 20px 14px;border-top:1px solid var(--line)}
.learner-card-actions .link-button{margin:0 12px 0 0;font-size:12px}
.learner-add{padding:22px 20px;gap:12px;border-style:dashed}
.learner-add label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted)}
.learner-add label b{font-size:17px;color:var(--ink)}
.learner-add input,.learner-rename input{border:1px solid var(--line);border-radius:7px;padding:10px 12px;font:inherit;font-size:14px;width:100%;box-sizing:border-box}
.learner-rename label{display:flex;flex-direction:column;gap:8px;font-size:13px}
.learner-error{color:#b91c1c;font-size:12px;margin:0;min-height:1em}
.learners-note{margin-top:22px;font-size:12px;max-width:640px}
.modal-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:20px}
.primary.remove-learner{background:#dc2626}
/* A skill shown in all three scenarios. */
.competency-celebrate{font-weight:600;color:var(--brand-primary)}
/* Text size: the page and dialogs grow as a whole, so instructions, activities and buttons all get bigger together. */
body.text-size-1 #main,body.text-size-1 #modal{zoom:1.15}
body.text-size-2 #main,body.text-size-2 #modal{zoom:1.3}
/* Shown over an activity when the window gets too small part-way through; the work underneath is kept. */
.device-resize-note{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:60;display:flex;flex-direction:column;gap:3px;max-width:min(460px,calc(100vw - 32px));padding:12px 16px;background:#fffbeb;border:1px solid #f59e0b;border-radius:10px;box-shadow:0 6px 20px rgba(15,23,42,.15);font-size:13px;color:var(--ink)}
.device-resize-note b{font-size:14px}
/* For teachers: what works in a classroom today, one card per job. */
.for-teachers-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:16px}
.for-teachers-card h2{font-size:16px;margin:0 0 8px}
.for-teachers-card p{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 14px}

.pupils-report{margin-top:20px}.pupils-report .profile-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.pupils-report h2{margin:0}.pupils-report td,.pupils-report th{white-space:nowrap}.pupils-report p.muted{font-size:13px;margin:12px 0 0}
/* Short laptop screens (1366×768 leaves about 650px of page): in a typing lesson, activity, basic or skill check the task comes
   first, so the header, heading, Tcha and spacing tighten and the keyboard guide and the goal steps stay in view. */
@media (min-width:761px) and (max-height:860px){

.typing-session{padding:12px 18px}
.typing-session .session-bar{margin-bottom:8px}
.typing-session .session-numbers>div{padding:4px 10px}
.typing-session .session-numbers b{font-size:16px}
.typing-session #restart{min-height:34px;padding:4px 12px}
.typing-session .bar-row{margin-top:8px}
.typing-session .typing-text{padding:12px 18px;margin:8px 0}
.typing-session>label{margin:4px 0;display:block}
.typing-session textarea{min-height:48px;height:48px;padding:10px 14px}
.typing-session .keyboard{margin-top:10px}
.typing-session .key-row{margin:3px 0}
.typing-session .key-row span{height:30px}

}
/* Phones: the goal and steps come first, then the task, then Check my result and Start again below the task they check.
   Tcha's panel never covers more than about a third of the screen. */
@media (max-width:760px){

#sim-workspace{order:1}#sim-feedback{order:2}

}
/* Touch: the small text-style buttons in activities and on learner cards get a full-size target. */
@media (max-width:900px),(pointer:coarse){
.link-button,.chat-attach,.browser-back,.popup-close,.chat-replying button,.chat-pending button,.learner-card-actions button{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;padding-left:8px;padding-right:8px}
.learner-card-actions{gap:12px}
}
/* The on-screen keyboard's keys share the room there is, so Large and Larger text never push it off the side. */
.key-row span{flex:0 1 40px;min-width:0}
.key-row .key-wide{flex-basis:74px;min-width:0}
.key-row .space{flex:0 1 300px;width:auto;min-width:0}
.lab-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:80;background:var(--brand-ink,#0f172a);color:#fff;padding:10px 18px;border-radius:999px;font-size:14px;font-weight:600;box-shadow:0 8px 24px #0f172a40}
/* My Progress: digital skills by area, the skill checks and the starting point, then typing. */
.progress-skills,.progress-checks{margin-bottom:18px}
.progress-areas{display:grid;gap:10px;margin-top:12px}
.progress-area{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,180px) auto;gap:14px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.progress-area small{display:block;color:var(--muted);font-size:13px}
.progress-area-bar{height:8px;border-radius:99px;background:#e2e8f0;overflow:hidden}
.progress-area-bar>span{display:block;height:100%;background:var(--brand-primary,#1d4ed8)}
.progress-check-list{list-style:none;padding:0;margin:10px 0}
.progress-check-list li{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-top:1px solid var(--line);font-size:14px}
.progress-check-list b{white-space:nowrap;font-size:13px}
.progress-links{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.progress-section-title{margin:26px 0 12px}
.typing-export{margin-top:14px}
.milestone-how{display:block;margin-top:8px}
@media (max-width:640px){.progress-area{grid-template-columns:1fr auto}.progress-area-bar{grid-column:1/-1;grid-row:2}.progress-check-list li{flex-direction:column;gap:2px}}
/* Restart and undo icons drawn the same in every font. */
.i-redo,.i-undo{display:inline-block;width:1em;height:1em;vertical-align:-.15em;margin-right:.35em;background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.i-redo{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.34-5.66'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E")}
.i-undo{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 1 0 2.34-5.66'/%3E%3Cpath d='M4 4v5h5'/%3E%3C/svg%3E")}

/* The activity goal heading keeps its size now that it is an h2. */
.sim-goal-title{font-size:15px;margin:14px 0 6px}

/* Text that was too light to read easily. */
.demo-steps i,.file-tile.deleted>span{color:#64748b}
/* The Format activity shows where keyboard focus is. */
.fmt-paper [role=button]:focus-visible{outline:2px solid var(--brand-primary,#1d4ed8);outline-offset:2px;border-radius:3px}

/* Who is learning: the pupil's name in the header, with a menu (Switch learner, name, Settings, backup). The sidebar no longer
   has a learner footer. */

.progress-milestones{margin-bottom:18px}.progress-milestones .milestone-cards{margin-top:12px}.progress-milestones:focus{outline:none}
/* Sections jumped to (the backup, Milestones) stop below the sticky header. */
.device-backup,#progress-milestones{scroll-margin-top:90px}
/* Line icons that replaced emoji and font symbols sit on the text line, the size of the text around them. */
.line-icon{width:1.15em;height:1.15em;vertical-align:-.2em;flex:none}
.choice-icon .line-icon,.sign-card .line-icon{width:22px;height:22px;color:var(--brand-primary,#1d4ed8)}
.stat-icon .line-icon{width:22px;height:22px}

.sim-toolbar .line-icon{margin-right:4px}

/* Tcha stays small: the face and four round icon buttons. Tcha's words show only when the voice is off. On phones Tcha floats
   at the bottom right as a pill, clear of the task. */

@media (max-width:760px){

body.amani-on main{padding-bottom:84px}
}

