:root{font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:#20394b;background:#f3f7f8;letter-spacing:0;--line:#d5e1e8;--muted:#607889;--blue:#0784c9;--yellow:#ffbf1f;--green:#22796d}
.instruction-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.instruction-heading h2{margin-bottom:4px}.instruction-help{margin:0 0 12px;color:var(--muted);font-size:12px}.template-source{flex:none;padding:5px 9px;border:1px solid #cde5d9;border-radius:999px;background:#f0faf5;color:#22796d;font-size:12px}.nas-prompt{margin:12px 0;padding:12px 14px;border-left:4px solid var(--yellow);border-radius:3px;background:#fff8d9;line-height:1.75;white-space:pre-wrap;color:#5c4b16}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}a{color:inherit;text-decoration:none}img{max-width:100%}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}i[data-lucide],svg.lucide{width:17px;height:17px;flex:none;vertical-align:middle}
.hw-header{min-height:74px;padding:12px max(24px,calc((100% - 1420px)/2));background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:30px}.hw-header>a:first-child img{display:block;width:168px;height:auto}.hw-header nav{display:flex;gap:24px;margin-left:auto;font-size:14px}.hw-header>a:last-child:not(:first-child){margin-left:auto;font-size:14px}.hw-header nav a:hover,.hw-header nav a[aria-current=page]{color:var(--blue)}.account{display:flex;gap:12px;align-items:center;font-size:13px;color:var(--muted)}.icon-button{display:inline-grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:5px;background:#fff;color:#33536a}.icon-button:hover,.secondary:hover{border-color:var(--blue);color:var(--blue)}
.eyebrow{margin:0;color:var(--blue);font-size:11px;font-weight:700}.section-title h1,.section-title h2,.page-title h1{margin:4px 0 0}.section-title h1{font-size:25px}.section-title h2{font-size:19px}.page-title h1{font-size:29px}.primary,.secondary,.file-button{min-height:40px;padding:0 16px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:14px;font-weight:600;white-space:nowrap}.primary{border:1px solid #087bb8;background:var(--blue);color:#fff}.primary:hover{background:#006eab}.secondary,.file-button{border:1px solid var(--line);background:#fff;color:#2a5167}.subtle-link{border:0;background:none;color:var(--blue);font-size:13px;display:inline-flex;align-items:center;gap:5px;cursor:pointer}.message{min-height:20px;color:var(--green);font-size:13px}.message.error,.error{color:#af442b!important}
.student-layout{max-width:1560px;margin:auto;min-height:calc(100vh - 74px);display:grid;grid-template-columns:290px minmax(0,1fr)}.student-sidebar{border-right:1px solid var(--line);padding:30px 17px;background:#f8fbfc}.search{position:relative;display:block;margin:20px 0}.search svg{position:absolute;top:12px;left:11px;color:var(--muted)}.search input{width:100%;height:42px;padding:0 12px 0 38px;border:1px solid var(--line);border-radius:5px;background:#fff}.assignment-list{max-height:calc(100vh - 225px);overflow:auto}.assignment-list section{margin-bottom:20px}.assignment-list h2{margin:0 0 7px;font-size:12px;font-weight:700;color:#718595}.assignment-item{width:100%;min-height:49px;padding:8px 10px;text-align:left;border:0;border-radius:5px;background:transparent;color:#2f4c5c;display:flex;align-items:center;justify-content:space-between;gap:8px}.assignment-item span{min-width:0;overflow-wrap:anywhere;font-size:13px}.assignment-item small{flex:none;color:var(--muted);font-size:11px}.assignment-item:hover,.assignment-item.active{background:#e2f1f7;color:#006da6}.work-main{min-width:0;padding:30px clamp(18px,4vw,54px) 70px}.work-empty{max-width:750px;margin:9vh auto;text-align:center}.work-empty img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:5px}.work-empty h2{font-size:22px;font-weight:600}.work-heading h1{margin:7px 0;font-size:27px}.work-heading>p:last-child{color:var(--muted);font-size:13px}.instructions{margin:24px 0;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.instructions h2,.editor-heading h2,.share-area h2{margin:0 0 10px;font-size:18px}.instructions p{margin:0 0 12px;font-size:14px;line-height:1.8;white-space:pre-wrap}.editor-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.status{padding:3px 9px;border-radius:3px;background:#e4f4ed;color:#1c725b;font-size:12px}.scratch-frame{width:100%;aspect-ratio:16/9;min-height:480px;border:1px solid var(--line);border-radius:5px;overflow:hidden;background:#fff}.scratch-frame iframe{width:100%;height:100%;border:0}.editor-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 24px}.file-button{cursor:pointer}.file-button input{display:none}#projectName{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.code-bar{min-height:42px;padding:8px 14px;background:#223a4a;color:#e9f2f5;border-radius:5px 5px 0 0;display:flex;align-items:center;justify-content:space-between}.code-bar .secondary{min-height:29px;font-size:12px}.editor textarea#code{width:100%;min-height:360px;display:block;padding:18px;border:1px solid #315466;border-top:0;border-radius:0 0 5px 5px;background:#122532;color:#eaf7f9;font:14px/1.65 Consolas,monospace;tab-size:4;resize:vertical}.editor iframe#pythonRunner{width:100%;height:160px;border:0;border-radius:5px;margin:10px 0 20px}.reflection{display:block;margin:18px 0 0;font-size:14px;font-weight:600}.reflection textarea{width:100%;display:block;margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:5px;resize:vertical;background:#fff;font-weight:400}.action-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}.action-bar p{margin:0 auto 0 0;font-size:13px;color:var(--green)}.share-area{margin-top:30px;padding:20px 0;border-top:1px solid var(--line)}.share-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:13px}.share-row input{width:min(600px,100%);min-width:0;padding:9px;border:1px solid var(--line);border-radius:5px}
.teacher-layout{max-width:1150px;margin:auto;padding:32px 24px 80px}.page-title{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:23px}.teacher-section{padding:25px 0;border-top:1px solid var(--line)}.teacher-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:15px;margin:22px 0}.teacher-form label{display:grid;gap:7px;color:#375568;font-size:13px}.teacher-form label.wide{grid-column:1/-1}.teacher-form input,.teacher-form select,.teacher-form textarea{width:100%;min-width:0;min-height:40px;padding:9px 10px;border:1px solid var(--line);border-radius:5px;background:#fff;color:#263e50}.teacher-form textarea{resize:vertical}.rows{border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.teacher-row{min-height:58px;padding:10px 4px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}.teacher-row strong{display:block;color:#20394b;font-size:14px}.teacher-row small{display:block;margin-top:4px}.review-dialog{width:min(700px,calc(100% - 24px));max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:7px;padding:28px}.review-dialog::backdrop{background:#0f2d42aa}.review-dialog pre,#pythonWork pre{overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:18px;border-radius:5px;background:#152838;color:#e2f6fa;font:13px/1.6 Consolas,monospace}.review-dialog button{margin-left:10px}
.share-layout{max-width:1000px;margin:0 auto;padding:42px 22px 80px}.share-layout h1{font-size:30px;margin:7px 0}.share-layout>p:nth-of-type(2){color:var(--muted);font-size:14px}.share-actions{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0 8px}.share-layout .scratch-frame{margin:24px 0 12px}.share-layout .instructions{margin-top:30px}
.homework-login{background:#eef5f8}.login-layout{max-width:1120px;min-height:calc(100vh - 74px);margin:auto;padding:50px 24px;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);align-items:center;gap:54px}.login-copy h1{font-size:38px;margin:8px 0}.login-copy>p:last-of-type{font-size:15px;color:#557489;line-height:1.8}.login-copy img{display:block;width:100%;aspect-ratio:16/8;object-fit:cover;margin-top:26px;border-radius:5px}.login-form{background:#fff;padding:30px;border:1px solid var(--line);border-radius:7px;display:grid;gap:16px}.login-form h2{margin:0 0 4px;font-size:24px}.login-form label{display:grid;gap:7px;font-size:13px}.login-form input{width:100%;height:43px;padding:0 11px;border:1px solid var(--line);border-radius:5px}.login-form .primary{width:100%}.login-form small{font-size:12px;color:var(--muted)}
.teacher-section>.section-title{display:flex;align-items:center;justify-content:space-between}.teacher-form button{justify-self:start}#pythonWork iframe{width:100%;height:160px;border:0;border-radius:5px;margin-top:10px}
@media(max-width:800px){.student-layout{grid-template-columns:1fr}.student-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:18px}.student-sidebar .section-title h1{font-size:20px}.assignment-list{max-height:180px}.work-main{padding:24px 18px 60px}.teacher-form{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-form button{justify-self:start}.login-layout{grid-template-columns:1fr;gap:24px}.login-copy img{max-height:260px}.login-form{max-width:500px;width:100%;margin:auto}}
@media(max-width:520px){.hw-header{padding:12px 16px;flex-wrap:wrap;gap:10px}.hw-header>a:first-child img{width:136px}.hw-header nav{margin-left:0;gap:14px;order:3;width:100%;font-size:12px}.account{margin-left:auto}.scratch-frame{min-height:300px;aspect-ratio:4/3}.work-heading h1{font-size:23px}.teacher-form{grid-template-columns:1fr}.teacher-form label.wide{grid-column:1}.page-title h1{font-size:25px}.share-layout h1{font-size:25px}.login-layout{padding:30px 16px}.login-copy h1{font-size:30px}}
