.learn-shell{--ink:#233c32;--gold:var(--brand-orange,#ffaf2b);color:var(--ink);background:#f8faf7;min-height:100vh;font-family:IBM Plex Sans Arabic,Arial,Tahoma,sans-serif;line-height:1.85}.learn-shell *{box-sizing:border-box}.learn-shell .learn-header{background:#fff;border-bottom:1px solid #dce4dc;justify-content:space-between;align-items:center;gap:24px;height:auto;padding:14px max(5%,20px);display:flex;position:relative;inset:auto}.learn-header img{object-fit:contain;width:135px;height:90px}.learn-header nav{flex-wrap:wrap;gap:5px;display:flex}.learn-shell button,.learn-shell a.learn-primary{font:inherit;cursor:pointer;color:var(--ink);background:#fff;border:1px solid #c2d1c5;border-radius:12px;min-height:46px;padding:10px 18px;text-decoration:none}.learn-shell button:hover{background:#edf5ec;border-color:#366f56}.learn-shell button:disabled{opacity:.55;cursor:not-allowed}:is(.learn-shell button:focus-visible,.learn-shell a:focus-visible,.learn-shell input:focus-visible,.learn-shell select:focus-visible,.learn-shell summary:focus-visible){outline-offset:4px;outline:3px solid #c07606}.learn-shell .learn-primary{background:var(--ink);color:#fff;border-color:var(--ink)}.learn-shell main{outline:none;max-width:1200px;margin:auto;padding:0 28px}.learn-shell h1{letter-spacing:-.04em;margin:16px 0;font-size:clamp(2rem,4vw,3.4rem);line-height:1.4}.learn-shell h2{margin:14px 0;font-size:1.7rem;line-height:1.5}.learn-shell h3{font-size:1.25rem;line-height:1.6}.learn-shell p{color:#45594c;white-space:pre-line;max-width:none}.learn-shell a{color:#285d43;text-underline-offset:4px}.learn-hero{grid-template-columns:1.4fr 1fr;align-items:center;gap:50px;padding:65px 0;display:grid}.learn-eyebrow{color:#536a48;margin:10px 0;font-size:.9rem;font-weight:700;display:block}.learn-actions{flex-wrap:wrap;gap:12px;margin:24px 0;display:flex}.learn-shell .learn-mascot{background:#e7f0e3;border:0;border-radius:45% 45% 30% 30%;padding:25px;transform:rotate(-3deg)}.learn-mascot svg{width:100%;max-width:280px;margin:auto;display:block}.learn-mascot:hover svg{transition:all .2s;transform:translateY(-5px)}.learn-mascot span{text-align:center;display:block}.learn-section{padding:44px 0}.learn-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:25px 0;display:grid}.learn-shell .learn-card{text-align:right;background:#fff;border:1px solid #d4dfd1;border-radius:20px;flex-direction:column;align-items:flex-start;padding:26px;display:flex;box-shadow:0 5px 15px #233c3205}.learn-card h2,.learn-card h3{margin:12px 0 4px}.learn-card>span:not(.learn-stamp){font-size:.85rem}.learn-card strong{margin-top:auto}.learn-stamp{color:#283d30;background:#f5dfae;border-radius:50%;place-items:center;width:46px;height:46px;font-size:1.4rem;display:grid}.learn-banner,.learn-resume{background:#e7eee1;border-radius:24px;margin:30px 0;padding:30px}.learn-resume{justify-content:space-between;align-items:center;gap:20px;display:flex}.learn-shell progress{accent-color:#315d44;width:100%}.learn-lesson{max-width:850px;margin:auto;padding:40px 0 80px}.learn-goal{border-right:5px solid var(--gold);background:#fff6df;border-radius:12px;margin:25px 0;padding:16px 24px}.learn-visual{text-align:center;background:#eaf1e5;border-radius:16px;margin:20px 0;padding:24px;font-size:1.3rem;font-weight:700}.learn-shell details{background:#fff;border:1px solid #d4dfd1;border-radius:14px;margin:12px 0;padding:18px}.learn-shell summary{cursor:pointer;font-weight:700}.learn-shell fieldset{border:1px solid #d4dfd1;border-radius:12px;margin:24px 0;padding:20px}.learn-shell label{margin:14px 0;display:block}.learn-shell input:not([type=checkbox]):not([type=radio]):not([type=range]),.learn-shell select,.learn-shell textarea{font:inherit;color:#233c32;background:#fff;border:1px solid #abbfac;border-radius:9px;width:100%;max-width:600px;min-height:46px;padding:10px;display:block}.learn-shell input[type=checkbox],.learn-shell input[type=radio]{accent-color:#315d44;vertical-align:middle;width:20px;height:20px;margin-inline-end:10px}.learn-choice{cursor:pointer;background:#fff;border:1px solid #dce4dc;border-radius:10px;padding:14px}.learn-shell input[type=range]{accent-color:#315d44;width:90%;max-width:500px;display:block}.learn-shell pre{color:#e2f2e5;text-align:left;background:#172a23;border-radius:14px;max-height:600px;padding:20px;font-size:.85rem;line-height:1.7;overflow:auto}.learn-form{background:#edf3e9;border-radius:16px;margin:25px 0;padding:24px}.learn-notice{z-index:10;background:#fff4d5;border:1px solid #cfa54a;border-radius:12px;justify-content:space-between;align-items:center;padding:12px 20px;display:flex;position:sticky;top:8px;box-shadow:0 5px 20px #0001}.learn-hint{white-space:pre-line;background:#fff4d5;border-radius:12px;margin:16px 0;padding:16px}.learn-game{background:#f1f6ed;border:2px solid #cbdac8;border-radius:22px;margin:24px 0;padding:24px}.learn-game-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.learn-game-head span{font-size:.8rem}.maze-board{aspect-ratio:1;background:#c5d5c0;border:2px solid #45664e;border-radius:12px;grid-template-columns:repeat(5,1fr);gap:3px;width:min(100%,350px);margin:24px auto;padding:4px;display:grid}.maze-board>div{background:#fff;border-radius:6px;place-items:center;font-size:1.5rem;display:grid}.maze-board>div.wall{color:#fff;background:#354c3e}.game-controls{flex-wrap:wrap;align-items:end;gap:8px;display:flex}.game-controls label{margin:0}.command-list{flex-wrap:wrap;gap:12px;padding:0;list-style-position:inside;display:flex}.command-list li{background:#fff;border:1px solid #aabbac;border-radius:8px;padding:5px 10px}.robot-assembly{text-align:center;font-size:4rem}.robot-assembly span{background:#fff;border-radius:10px;margin:4px;padding:4px 12px;font-size:1rem;display:inline-block}.learn-footer{color:#fff;text-align:center;background:#233c32;padding:30px 6%;display:block;position:static}.learn-footer p,.learn-footer a{color:#e6eee1}.learn-shell table{border-collapse:collapse;width:100%}.learn-shell td,.learn-shell th{text-align:right;vertical-align:top;border:1px solid #c5d5c0;padding:12px}.learn-table-wrap{overflow:auto}.learn-shell li{margin:10px 0}.learn-shell small{font-size:.85rem}.learn-shell button[aria-pressed=true]{background:#d9e8ce;border:2px solid #315d44}.learn-admin-editor{min-height:430px;max-width:none!important;font-family:monospace!important}.learn-wiring{text-align:left;white-space:pre-line;direction:ltr;background:#fff;border:1px solid #bdd0bb;border-radius:12px;padding:18px}@media (max-width:760px){.learn-shell .learn-header{flex-direction:column;gap:8px;padding:10px 16px}.learn-header img{width:110px;height:70px}.learn-header nav{justify-content:center}.learn-header nav button{padding:7px 10px;font-size:.85rem}.learn-shell main{padding:0 18px}.learn-hero{grid-template-columns:1fr;gap:24px;padding:32px 0}.learn-hero .learn-mascot{grid-row:2;max-width:230px;margin:auto}.learn-grid{grid-template-columns:1fr}.learn-shell h1{font-size:2.1rem}.learn-resume{display:block}.learn-shell .learn-card{padding:22px}.learn-game{padding:14px}.learn-banner{padding:23px}.learn-section{padding:24px 0}.learn-game-head{gap:4px}.learn-shell .learn-actions button{flex:1}.learn-shell .learn-visual{padding:16px;font-size:1rem}}@media (prefers-reduced-motion:reduce){.learn-shell *{scroll-behavior:auto!important;transition:none!important;animation:none!important}.learn-mascot:hover svg{transform:none}}.learn-shell .learn-primary{background:var(--brand-orange,#ffaf2b);color:#233c32;border-color:#d29122;font-weight:700}.learn-shell .learn-primary:hover{background:#ffcf80}.stage-art{border-radius:20px;width:100%;max-width:640px;height:auto;margin:20px auto;display:block}.stage-art.compact{object-fit:cover;width:100%;height:145px;margin:0 0 20px}.learn-card .stage-art{flex-shrink:0}.learn-explorer{background:#fff;border:1px solid #d3dfd0;border-radius:24px;grid-template-columns:1fr 1fr;align-items:center;gap:35px;margin:30px 0;padding:30px;display:grid}.part-buttons{flex-wrap:wrap;gap:8px;display:flex}.explorer-figure span{text-align:center;font-size:.85rem;display:block}.learn-shell .part-buttons button[aria-pressed=true]{background:#ffdf9d;border-color:#a57727}.interactive-lab .stage-art{max-width:400px}.lab-output,.lesson-save{background:#e5f0df;border:1px solid #a3be98;border-radius:12px;min-height:65px;margin:18px 0;padding:16px}.lab-meter{direction:ltr;background:#d3dfce;border-radius:12px;height:18px;overflow:hidden}.lab-meter span{background:#d59021;height:100%;display:block}.lesson-stepper{flex-wrap:wrap;gap:8px;margin:20px 0;display:flex}.learn-shell .lesson-stepper button{padding:9px 13px;font-size:.85rem}.learn-shell .lesson-stepper button[aria-current=step]{background:#dfecd7;border:2px solid #315d44;font-weight:700}.learn-practice fieldset legend{font-weight:700;line-height:1.8}.learn-shell .learn-choice:has(input:checked){background:#eaf1e4;border-color:#527748}.learn-shell a{text-decoration:underline}.learn-shell .learn-header a{text-decoration:none}.learn-shell .learn-game .learn-success{background:#dcefd5;border:1px solid #94ba85;border-radius:12px;padding:18px}.learn-shell .learn-game .learn-feedback:not(:empty){background:#fff1d7;border-radius:12px;padding:16px}@media (max-width:760px){.learn-explorer{grid-template-columns:1fr;gap:10px;padding:20px}.lesson-stepper{flex-wrap:nowrap;padding:5px 3px 12px;overflow:auto}.lesson-stepper button{flex:none}.stage-art.compact{height:160px}.part-buttons button{flex:40%}.learn-shell .learn-header{z-index:20;position:sticky;top:0;box-shadow:0 2px 8px #0001}.learn-header img{width:90px;height:45px}.learn-header nav button{min-height:40px;font-size:.8rem}.learn-shell .learn-notice{top:145px}}.stage-checklist{background:#f1f7ed;border:1px solid #b9cfc2;border-radius:22px;margin:26px 0;padding:clamp(18px,4vw,30px)}.checklist-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.checklist-heading h2{margin:8px 0}.checklist-heading>strong{color:#244635;white-space:nowrap;font-size:32px}.stage-checklist progress{accent-color:#315941;width:100%;height:12px}.stage-checklist ul{margin:18px 0;padding:0;list-style:none}.stage-checklist li{margin:8px 0}.stage-checklist li button{text-align:start;background:#fff;border:1px solid #c3d3c8;align-items:center;gap:12px;width:100%;min-height:54px;display:flex}.stage-checklist li small{white-space:nowrap;margin-inline-start:auto}.checklist-note{font-size:14px}.lesson-shortcuts,.learn-game-bridge{background:#f0f5fa;border-radius:16px;margin:20px 0;padding:20px}.lesson-shortcuts button,.learn-game-bridge button{margin:5px}.lesson-success{background:#e5f2df;border:1px solid #b4cfa6;border-radius:16px;margin:20px 0;padding:22px}.lesson-success[hidden]{display:none}#lesson-activity{scroll-margin-top:110px}.learn-card>small{margin-top:10px;display:block}@media (max-width:560px){.stage-checklist li button{flex-wrap:wrap}.stage-checklist li small{width:100%;margin-inline-start:28px}.checklist-heading>strong{font-size:24px}.lesson-shortcuts button{width:100%;margin:5px 0}}.start-guide{background:#fffaf0;border:1px solid #d4ddcc;border-radius:24px;margin:30px 0;padding:clamp(20px,4vw,36px)}.start-guide fieldset{border:0;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0;padding:0;display:grid}.start-guide legend{margin-bottom:12px;font-weight:700}.learn-shell .guide-option{cursor:pointer;background:#fff;border:1px solid #c9d3c4;border-radius:14px;align-items:center;gap:12px;min-height:72px;padding:16px;display:flex}.guide-option input{accent-color:#315941;flex:0 0 20px;width:20px;height:20px}.guide-option small{display:block}.guide-option:has(input:checked){background:#eff6e8;outline:2px solid #315941}.guide-result{background:#eef5e8;border-radius:16px;margin:18px 0;padding:24px}.guide-result h3{font-size:1.5rem}.quiz-progress{background:#eef5e8;border-radius:16px;margin:20px 0;padding:18px}.quiz-progress progress{accent-color:#315941;width:100%;margin:12px 0;display:block}.learn-lesson fieldset[id^=quiz-question]{scroll-margin-top:150px}.learn-lesson fieldset[id^=quiz-question]:focus{outline-offset:4px;outline:3px solid #c07606}@media (max-width:600px){.start-guide fieldset{grid-template-columns:1fr}.start-guide .learn-actions button{width:100%}}
