:root{color:#172b42;font-synthesis:none;--ink:#172b42;--accent:#1e527e;--muted:#506176;--paper:#f8f9fb;--white:#fff;--line:#dce3ec;--accent-soft:#e4effb;--peach:#fff0da;--radius:17px;--sidebar:240px;background:#f8f9fb;font-family:PingFang SC,Microsoft YaHei,Noto Sans CJK SC,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,select,input[type=range],input[type=radio]{cursor:pointer}button{color:inherit}button:disabled{cursor:default;opacity:.57}:where(a,button,input,select):focus-visible{outline-offset:3px;outline:3px solid #2871ae}h1,h2,h3,h4,p{margin:0}p,li{line-height:1.6}svg{vertical-align:middle;flex-shrink:0}img{max-width:100%;display:block}.skip{z-index:20;clip-path:inset(50%);background:var(--white);padding:12px;position:fixed;top:8px;left:8px;transform:translateY(-160%)}.skip:focus{clip-path:none;transform:none}.sidebar{z-index:3;width:var(--sidebar);border-right:1px solid var(--line);background:#fff;flex-direction:column;padding:23px 15px 22px;display:flex;position:fixed;inset:0 auto 0 0;overflow-y:auto}.brand{white-space:nowrap;letter-spacing:-.045em;align-items:center;gap:8px;min-height:42px;padding:0 7px;font-size:20px;font-weight:800;display:flex}.brand-icon{color:#18416a;background:var(--accent-soft);border-radius:12px;place-items:center;width:40px;height:40px;display:grid}.sidebar nav{gap:5px;margin-top:46px;display:grid}.sidebar nav a,.teacher-link{border-radius:10px;align-items:center;gap:13px;min-height:48px;padding:0 14px;font-weight:700;display:flex}.sidebar nav a:hover,.teacher-link:hover{background:#f0f5fa}.sidebar a[aria-current]{background:var(--accent-soft);color:#173e68}.teacher-link{border:1px solid #aabfd5;margin-top:auto}.teacher-link svg:last-child{margin-left:auto}.main{margin-left:var(--sidebar);padding:0 clamp(18px,2.1vw,36px) 42px}.topbar,.main>.stack,.main>.home-stack,.main>.panel,.main>.feedback{max-width:1340px;margin-inline:auto}.topbar{justify-content:space-between;align-items:center;gap:14px;min-height:75px;padding:10px 0;display:flex}.topbar-title{align-items:center;gap:10px;min-width:0;font-size:clamp(19px,2.25vw,31px);font-weight:800;display:flex}.topbar-title span{overflow-wrap:anywhere}.menu-toggle,.mobile-title{display:none!important}.account-bar,.account-bar a{align-items:center;gap:8px;display:flex}.account-bar a{overflow-wrap:anywhere;font-weight:700}.login-link,.sign-out{white-space:nowrap}.primary,.outline{border-radius:10px;justify-content:center;align-items:center;gap:8px;min-height:43px;padding:8px 14px;font-weight:700;line-height:1.25;display:inline-flex}.primary{background:var(--accent);border:1px solid var(--accent);color:var(--white)}.primary:hover:not(:disabled){background:#143f66}.outline{color:var(--accent);background:0 0;border:1px solid #b8c9db}.outline:hover:not(:disabled){background:#edf4fc}.text-button{color:var(--accent);text-underline-offset:4px;background:0 0;border:0;padding:7px 0;font-weight:700;text-decoration:underline}.muted-link{color:var(--muted);text-underline-offset:4px;text-decoration:underline}.home-stack{gap:25px;display:grid}.stack{align-content:start;gap:16px;min-width:0;display:grid}.hero{isolation:isolate;color:#f8fbff;background:#173450;border-radius:20px;align-items:center;min-height:clamp(264px,26vw,365px);display:flex;position:relative;overflow:hidden}.hero:before{content:"";z-index:-1;background:radial-gradient(at 79% 65%,#2b5b87,#0000 58%),radial-gradient(circle,#c1d9f483 1.2px,#0000 1.5px) 14px 12px/18px 18px;position:absolute;inset:0;-webkit-mask-image:linear-gradient(90deg,#0009,#0000 45%,#0008);mask-image:linear-gradient(90deg,#0009,#0000 45%,#0008)}.hero-copy{z-index:1;width:58%;padding:clamp(22px,4vw,64px);position:relative}.hero h1{letter-spacing:-.05em;font-size:clamp(38px,5.7vw,78px);font-weight:850;line-height:1.11}.hero-link{color:#b9e2ff;align-items:center;gap:9px;margin-top:22px;font-size:clamp(19px,2.2vw,29px);font-weight:800;display:inline-flex}.hero-link:hover{text-underline-offset:7px;text-decoration:underline}.hero-link:focus-visible{outline-color:#b9e2ff}.hero-art{place-items:center;display:grid;position:absolute;inset:0 0 0 50%}.hero-art:before{content:"";background:radial-gradient(#8bbbe588,#345d84 38%,#0000 70%);border:1px solid #bad7f75e;border-radius:50%;width:82%;height:78%;position:absolute;transform:rotate(-29deg)}.hero-art:after{content:"";z-index:-1;border:1px solid #b5d4f539;border-radius:50%;width:88%;height:70%;position:absolute;transform:rotate(32deg)}.hero-art img{object-fit:contain;filter:drop-shadow(12px 18px 13px #041b32a8);width:clamp(200px,22vw,326px);max-width:88%;max-height:95%;position:relative;transform:rotate(-11deg)}.section-heading{min-width:0;margin-bottom:13px}.section-heading h2{border-left:6px solid #357fc0;border-radius:4px;padding-left:12px;font-size:clamp(21px,2.25vw,32px);font-weight:800;line-height:1.22}.section-heading p{color:var(--muted);margin:7px 0 0 18px}.routes{grid-template-columns:1fr 1fr;gap:16px;display:grid}.low{background:#ecf3fd}.high{background:var(--peach)}.route-card,.group-banner{isolation:isolate;border-radius:var(--radius);align-items:center;display:flex;position:relative;overflow:hidden}.route-card{border:1px solid #d7e6f6;min-height:clamp(142px,13vw,190px);padding:21px 24px}.route-card.high{border-color:#f2e1cc}.route-card:hover,.course-row:hover{border-color:#769dc5}.route-card>div,.group-banner>div{z-index:1;max-width:66%}.route-card h3{font-size:clamp(26px,3.1vw,45px);font-weight:850;line-height:1.14}.route-card p,.group-banner p{margin-top:8px;font-weight:700}.route-card small{color:var(--muted);margin-top:6px;font-size:14px;display:block}.route-art{z-index:-1;object-fit:contain;filter:drop-shadow(1px 7px 6px #26486736);width:34%;height:89%;position:absolute;top:50%;right:28px;transform:translateY(-51%)rotate(-10deg)}.route-art-high{width:49%;right:13px;transform:translateY(-51%)scale(1.24)rotate(-8deg)}.route-arrow,.row-arrow{color:#fff;background:var(--accent);border-radius:50%;flex:none;align-self:flex-end;place-items:center;width:39px;height:39px;margin-left:auto;display:grid}.course-rows{gap:10px;display:grid}.course-row{background:var(--white);border:1px solid var(--line);border-radius:13px;align-items:center;gap:16px;min-width:0;padding:12px 15px;display:flex}.course-icon{color:#285984;background:#e8f1fb;border-radius:12px;flex:none;place-items:center;width:52px;height:49px;display:inline-grid}.course-icon.peach{background:var(--peach);color:#744b25}.course-copy{flex:1;gap:3px;min-width:0;display:grid}.course-copy strong{font-size:clamp(17px,1.6vw,22px);line-height:1.3}.course-copy small{color:var(--muted);font-size:14px;line-height:1.5}.course-meta{color:var(--muted);white-space:nowrap;align-items:center;gap:4px;font-size:14px;display:flex}.row-arrow{width:34px;height:34px;color:var(--accent);background:#e7f1fc;align-self:center}.group-banner{min-height:160px;padding:24px 30px}.group-banner h1,.lesson-overview h1,.teacher-intro h1,.auth h1{font-size:clamp(28px,3vw,43px);line-height:1.2}.group-banner img{max-width:240px;right:8%}.group-banner img.route-art-high{max-width:330px}.lesson-overview p,.teacher-intro p,.auth p,.invitation p{color:var(--muted);margin-top:6px}.back-link{color:var(--accent);align-items:center;gap:6px;margin-bottom:8px;font-weight:700;display:inline-flex}.tabs{gap:6px;max-width:100%;display:flex}.tabs a,.tabs button{appearance:none;background:var(--white);border:1px solid var(--line);min-height:44px;color:var(--accent);border-radius:10px;padding:9px 18px;font-weight:700}.tabs [aria-pressed=true],.tabs [aria-current]{color:var(--ink);background:var(--accent-soft);border-color:#b8d0eb}.panel{border:1px solid var(--line);background:var(--white);border-radius:var(--radius);min-width:0;padding:clamp(16px,2.4vw,28px)}.panel h2{font-size:clamp(20px,2.15vw,27px)}.section-top,.teacher-intro,.invitation{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.section-top .section-heading{margin:0}.section-top{margin-bottom:13px}.video-panel video{background:#162337;border-radius:12px;width:100%;max-height:500px;display:block}.steps{margin:0 0 17px;padding:0 0 0 27px}.steps li{padding:4px 0 6px 5px}.steps li::marker{color:var(--accent);font-weight:800}.lesson-footer,.button-row{flex-wrap:wrap;align-items:center;gap:9px;display:flex}.lesson-footer{justify-content:space-between}.material-list{margin:0;padding:0;list-style:none}.material-list li{border-bottom:1px solid var(--line);align-items:center;gap:10px;padding:11px 0;display:flex}.material-list li:last-child{border:0}.file-icon{color:var(--accent);background:#edf3fb;border-radius:8px;flex-shrink:0;padding:8px}.file-name{overflow-wrap:anywhere;flex-grow:1;min-width:0}.file-name small,.records-table td small{color:var(--muted);display:block}.file-actions{flex-wrap:wrap;gap:6px;display:flex}.file-actions .outline{white-space:nowrap;min-height:37px;padding:6px 10px;font-size:14px}.interactive-frame{border:1px solid var(--line);background:#fff;border-radius:12px;width:100%;height:72vh;margin-top:11px}.auth{justify-items:start;gap:10px;margin-top:15px;display:grid;max-width:470px!important}.auth form{width:100%}.form,.filters{gap:12px;display:grid}label{gap:6px;min-width:0;font-weight:700;display:grid}input:not([type=radio],[type=range]),select{width:100%;min-width:0;min-height:43px;color:var(--ink);background:#fff;border:1px solid #bdcbdb;border-radius:9px;padding:8px 11px}.feedback{color:#214e79;overflow-wrap:anywhere;background:#e9f2fc;border-radius:8px;padding:9px 11px}.feedback.error{color:#803820;background:#fff0e6}.main>.feedback{margin-bottom:12px}.metrics{grid-template-columns:repeat(3,1fr);gap:10px;display:grid}.metrics>div{border:1px solid var(--line);background:#eef4fb;border-radius:12px;gap:4px;padding:14px;display:grid}.metrics strong{font-size:clamp(19px,3.1vw,34px)}.invitation code{-webkit-user-select:all;user-select:all;color:var(--accent);font-size:clamp(18px,2.4vw,27px)}.teacher-form,.filters{grid-template-columns:1fr 1fr;align-items:end}.table-scroll{margin-top:12px;overflow-x:auto}.records-table{border-collapse:collapse;text-align:left;white-space:nowrap;width:100%}.records-table th,.records-table td{border-bottom:1px solid var(--line);padding:10px 8px}.records-table th{color:var(--muted)}.records-table a{text-underline-offset:4px;text-decoration:underline}.empty{color:var(--muted);padding:14px 0}.lab-body{gap:12px;display:grid}.lab-body>p,.guide{color:var(--muted)}.lab-split{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:start;gap:16px;display:grid}.lab-split .button-row{align-self:start}.sim-board{background:#f0f5fa;border:2px solid #bccbd0;border-radius:16px;align-content:center;justify-self:center;gap:9px;width:100%;max-width:320px;min-height:190px;padding:12px 16px;display:grid;box-shadow:0 5px #50a8b8}.sim-lights{justify-content:space-evenly;gap:8px;display:flex}.sim-lights span{background:#aebbc9;border-radius:3px;width:14px;height:10px}.sim-lights span.lit{background:var(--led);box-shadow:0 0 10px var(--led)}.sim-screen{text-align:center;color:#e5f6ff;background:#203a52;border:2px solid #101e2e;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:92px;padding:9px;display:flex}.sim-screen strong{font-size:20px}.sim-keys{justify-content:center;gap:6px;display:flex}.sim-keys span{color:#205761;background:#80d9e9;border-radius:5px;place-items:center;width:34px;height:22px;font-size:16px;font-weight:800;display:grid}.block-workspace{grid-template-columns:1fr 1fr;align-items:start;gap:8px;display:grid}.block-workspace>div{border:1px solid var(--line);background:var(--paper);border-radius:10px;min-width:0;padding:8px}.block-workspace h4{margin-bottom:6px}.block,.sequence li{color:var(--ink);overflow-wrap:anywhere;background:#e8f1fb;border:1px solid #a2bddd;border-radius:7px;margin:0 0 5px;padding:7px;font-size:14px}.block{text-align:left;width:100%;min-height:36px}.block:hover{background:var(--accent-soft)}.sequence{margin:0;padding:0;list-style:none}.sequence-tools{flex-wrap:wrap;gap:3px;display:flex}.sequence-tools button{background:#f2f6fc;border:1px solid #a7bed7;border-radius:4px;min-width:26px;min-height:28px;padding:2px}.slider span{justify-content:space-between;gap:6px;display:flex}.slider input{width:100%;accent-color:var(--accent)}.level-screen{background:linear-gradient(#0000 49%,#acbed0 49% 51%,#0000 51%),linear-gradient(90deg,#0000 49%,#acbed0 49% 51%,#0000 51%);border-radius:8px;width:min(130px,100%);height:80px;position:relative}.level-screen i{background:#b9e2ff;border-radius:50%;width:14px;height:14px;position:absolute;transform:translate(-50%,-50%)}.pixel-grid{grid-template-columns:repeat(var(--grid-size), 1fr);gap:3px;width:min(100%,188px);display:grid}.pixel-grid button{aspect-ratio:1;background:#436074;border:0;border-radius:3px;padding:0}.pixel-grid button[aria-pressed=true]{background:#b9e2ff}.quiz{gap:12px;display:grid}.quiz fieldset{border:0;min-width:0;margin:0;padding:0}.quiz legend{white-space:normal;margin-bottom:8px;font-weight:800}.answers{gap:6px;display:grid}.answers label{border:1px solid var(--line);border-radius:7px;align-items:center;min-height:42px;padding:7px 10px;display:flex}.answers label.selected{background:#e9f3fd;border-color:#a4bfdf}.answers input{accent-color:var(--accent)}.quiz fieldset .feedback{margin-top:7px}.quiz>.primary{justify-self:start}@media (width<=1020px){:root{--sidebar:197px}.brand{font-size:17px}.brand-icon{width:32px;height:33px}}@media (width<=760px){.sidebar{width:min(270px,100%);display:none;top:62px;box-shadow:8px 10px 25px #193b6524}.sidebar.menu-open{display:flex}.sidebar nav{margin-top:14px}.teacher-link{margin-top:16px}.menu-toggle{padding:7px;display:inline-flex!important}.mobile-title{display:inline!important}.main{margin-left:0;padding-inline:14px}.topbar{min-height:64px}.hero-copy{padding:21px}.hero h1{font-size:clamp(31px,7vw,54px)}.hero{min-height:228px}.hero-art img{width:clamp(135px,34vw,240px)}.route-card{padding:15px}.lab-split{grid-template-columns:1fr}}@media (width<=460px){.home-stack{gap:20px}.tabs a,.tabs button{padding-inline:11px}.routes{grid-template-columns:1fr;gap:9px}.route-card{min-height:133px}.route-art{max-width:110px;right:48px}.route-art-high{max-width:155px;right:29px}.course-row{gap:8px;padding:9px}.course-icon{width:41px;height:43px}.course-meta{font-size:12px}.row-arrow{display:none}.account-bar a{max-width:96px}.metrics>div{padding:8px;font-size:13px}.file-actions .outline{gap:4px;padding-inline:6px}.material-list li{flex-wrap:wrap}.file-name{flex-basis:calc(100% - 48px)}.file-actions{padding-left:45px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important}}@media (width<=600px){.records-table,.records-table tbody{display:block}.records-table thead{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.records-table tr{border:1px solid var(--line);border-radius:10px;gap:5px;margin-bottom:8px;padding:9px 11px;display:grid}.records-table td{white-space:normal;overflow-wrap:anywhere;border:0;justify-content:space-between;align-items:center;gap:8px;padding:2px 0;display:flex}.records-table td:before{content:attr(data-label);color:var(--muted);flex:none;font-size:13px}.records-table td:first-child{border-bottom:1px solid var(--line);justify-content:flex-start;gap:8px;padding-bottom:6px}.records-table td:first-child:before{content:none}.records-table td:last-child:has(button):before{content:none}}.topbar-title h1{font:inherit}.coding-page{min-width:0}.editor-tools{z-index:2;background:var(--paper);flex-wrap:wrap;align-items:center;gap:8px 15px;padding:8px 0;display:flex;position:sticky;top:0}.editor-scale{white-space:nowrap;align-items:center;gap:7px;display:flex}.editor-scale select{width:auto}.editor-external{margin-left:auto}.editor-projects{gap:8px;padding:12px 15px;font-size:14px;display:grid}.editor-projects .back-link{justify-self:start;margin-bottom:0}.editor-projects p{color:var(--muted)}.editor-viewport{border:1px solid var(--line);background:#eef4fb;border-radius:12px;overflow:auto}.editor-viewport:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.editor-sheet{width:calc(var(--editor-width) * var(--editor-scale));height:calc(var(--editor-height) * var(--editor-scale));margin-inline:auto;position:relative;overflow:hidden}.editor-frame{width:var(--editor-width);height:var(--editor-height);background:var(--white);transform:scale(var(--editor-scale));transform-origin:0 0;border:0;display:block;position:absolute;inset:0}#quiz{scroll-margin-top:15px}.quiz-actions{justify-content:space-between}.quiz-progress{color:var(--muted);font-size:14px}.challenge-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px;display:grid}.challenge-list article{border:1px solid var(--line);border-radius:12px;align-content:start;gap:7px;padding:14px;display:grid}.challenge-list summary{cursor:pointer;width:fit-content;color:var(--accent);font-weight:700}.challenge-list details p{margin-top:5px}@media (width<=590px){.editor-tools{gap:7px}.editor-tools .primary,.editor-scale select{padding-inline:8px}.editor-external{margin-left:0}}
