:root{font-family:Inter,Arial,Helvetica,sans-serif;color:#172536;background:#f3f6f9;font-size:16px;font-synthesis:none;--blue:#1358c8;--line:#dce4ed;--muted:#596b80}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer;min-height:42px}button:disabled{opacity:.55;cursor:wait}a{color:var(--blue)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #7bb5ff;outline-offset:3px}.topbar{min-height:84px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;padding:18px max(24px,calc((100vw - 1280px)/2));gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#142d50;font-weight:750;letter-spacing:-.025em;font-size:1.2rem}.mark{width:38px;height:38px;background:#133c77;color:white;display:grid;place-items:center;border-radius:9px;font-size:1.5rem}.account{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.account-name{font-size:.9rem}.role{display:block;color:var(--muted);font-size:.8rem;margin-top:3px}.primary,.quiet{padding:10px 17px;border-radius:7px;font-weight:600;font-size:.9rem;border:1px solid transparent}.primary{background:var(--blue);color:#fff}.primary:hover{background:#10499f}.quiet{background:white;border-color:var(--line);color:#304561}.quiet:hover{background:#eff4fa}.layout{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:340px minmax(0,1fr);gap:36px;padding:36px 24px 60px}.teacher{background:white;border:1px solid var(--line);border-top:4px solid #194e98;border-radius:10px;padding:25px 24px;align-self:start;min-width:0}.eyebrow{font-size:.75rem;letter-spacing:.10em;font-weight:750;color:#526a86;line-height:1.7}.section-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.pill{color:#405972;background:#edf2f7;border-radius:5px;padding:4px 8px;font-size:.75rem;font-weight:600;white-space:nowrap}.private{background:#e8f0ff;color:#245091}h1{font-size:1.8rem;letter-spacing:-.04em;margin:14px 0 8px}h2{font-size:1.4rem;letter-spacing:-.025em;margin:6px 0 0;line-height:1.3}h3{font-size:1.15rem;letter-spacing:-.02em;margin:18px 0 10px}.intro,.muted{color:var(--muted);line-height:1.6}.intro{margin:0 0 22px;font-size:.9rem}.panel{background:white;border:1px solid var(--line);border-radius:10px;padding:26px 28px;margin-bottom:28px}.videos{border:none;padding:0;background:transparent}.count{font-size:.8rem;background:white;border:1px solid var(--line);padding:6px 10px;border-radius:6px;color:var(--muted)}.video-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.video{display:flex;align-items:center;background:white;border:1px solid var(--line);border-radius:8px;padding:16px;gap:8px}.video>a{display:flex;align-items:center;gap:13px;text-decoration:none;color:#233d60;font-weight:600;flex:1;min-width:0;overflow-wrap:anywhere}.play{color:var(--blue);background:#edf3ff;width:42px;height:42px;display:grid;place-items:center;flex-shrink:0;border-radius:7px;font-size:.9rem}.video small{display:block;font-weight:400;font-size:.8rem;color:var(--muted);margin-top:5px}.classroom{background:white;border:1px solid var(--line);border-radius:10px;padding:26px 28px}.tabs{display:flex;border-bottom:1px solid var(--line);gap:26px;margin-top:24px}.tabs button{border:0;border-bottom:3px solid transparent;padding:13px 4px;background:none;color:var(--muted);font-weight:650}.tabs button.selected{color:var(--blue);border-color:var(--blue)}.locked{text-align:center;padding:50px 12px 40px}.lock{width:50px;height:50px;border:1px solid #cbd9ed;border-radius:12px;display:grid;place-items:center;color:#375f97;margin:auto;font-size:1.7rem}.locked p{color:var(--muted);line-height:1.6;max-width:330px;margin:0 auto 24px}.empty{padding:35px 10px;text-align:center;color:var(--muted);line-height:1.6}.empty strong{display:block;color:#334b68;font-size:1rem;font-weight:600}.empty p{margin:8px 0 0;font-size:.9rem}.empty.small{padding:20px 0 10px}.empty-symbol{display:block;color:#6b87aa;font-size:1.8rem;margin-bottom:14px}.note{border-top:1px solid var(--line);padding:22px 0 0;margin:22px 0 0}.post-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.8rem;color:var(--muted)}.note h2{font-size:1.1rem;margin-top:9px}.post-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:13px 0;font-size:1rem}.resource-link{display:block;overflow-wrap:anywhere;font-size:.9rem;margin-top:12px;text-underline-offset:3px}label{display:block;font-size:.9rem;font-weight:600;margin:15px 0 7px}input,textarea,select{width:100%;border:1px solid #bfccdc;border-radius:6px;padding:10px 12px;background:white;color:#1d314a;min-width:0}textarea{resize:vertical;line-height:1.6}input[type=file]{font-size:.85rem;padding:8px}.editor{border-top:1px solid var(--line);padding-top:4px;margin-top:20px}.editor button,form>.primary{margin-top:16px}.composer{padding:8px 0 22px;margin-top:7px;border-bottom:1px solid var(--line)}.composer-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.composer-footer span{font-size:.8rem;color:var(--muted)}.post{padding:24px 0;border-bottom:1px solid var(--line)}.post:last-child{border-bottom:0;padding-bottom:0}.post-heading{display:flex;gap:12px;align-items:center}.avatar{width:37px;height:37px;background:#eaf1fa;color:#355c90;border-radius:50%;display:grid;place-items:center;font-weight:700;flex-shrink:0}.post-heading strong{font-size:.9rem}.post-heading time{display:block;font-size:.75rem;color:var(--muted);margin-top:4px}.post-heading button{margin-left:auto}.text-button{border:0;background:none;color:var(--blue);font-size:.85rem;padding:7px 0;min-height:32px}.danger{color:#a03737}.notice,.success{max-width:1232px;margin:18px auto 0;border-radius:7px;padding:14px 18px;line-height:1.5}.notice{background:#fff0f0;color:#8b2828;display:flex;justify-content:space-between;gap:10px}.notice button{border:0;background:none;color:inherit;font-size:1.3rem;min-height:24px}.success{background:#edf4ff;color:#234f87}.login-panel p,.admin-panel p{color:var(--muted);line-height:1.6;font-size:.9rem}.login-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.teacher-login{display:inline-block;font-size:.9rem;margin-top:20px;text-underline-offset:3px}.admin-panel details{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}summary{cursor:pointer;font-weight:600;line-height:1.5}.admin-panel form{max-width:450px}.import{margin:25px 0;padding:18px;background:#f3f6fa;border-radius:7px}.import label{margin-top:0}.import pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.8rem;line-height:1.8}.user-row{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.user-row strong{font-size:.9rem}.user-row small{display:block;color:var(--muted);margin-top:5px;font-size:.8rem}footer{color:#718196;font-size:.8rem;margin-top:26px;text-align:right}@media(max-width:1000px){.layout{grid-template-columns:290px minmax(0,1fr);gap:22px}.teacher{padding:22px 18px}.video-list{grid-template-columns:1fr}.panel,.classroom{padding:22px}.section-head .eyebrow{letter-spacing:.06em}}@media(max-width:740px){.topbar{padding:16px 20px;align-items:flex-start;flex-wrap:wrap;min-height:auto}.brand{font-size:1.1rem}.account{gap:8px}.layout{grid-template-columns:1fr;padding:22px 16px 40px;gap:26px}.teacher{padding:22px}.classroom,.panel{padding:22px 18px}.login-fields{grid-template-columns:1fr;gap:0}.notice,.success{margin:16px 16px 0}.post-heading{flex-wrap:wrap}.account-name{max-width:180px;overflow-wrap:anywhere}.composer-footer{align-items:flex-start}.locked{padding:35px 0}.section-head{flex-wrap:wrap}}

.teacher>.editor:first-child{border-top:0;padding-top:0;margin-top:0}.teacher>.note:first-child{border-top:0;padding-top:0;margin-top:0}
.math-folder{margin-top:20px;padding:15px 18px;border:1px solid var(--line);border-radius:7px;background:#f7f9fc}.math-folder summary{font-size:1rem}.folder-count{font-size:.875rem;font-weight:400;color:var(--muted);margin-left:12px}.math-upload{padding-bottom:18px}.file-hint{font-size:.875rem;margin:8px 0 0}.math-file{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid var(--line);padding:14px 0}.math-file>div{min-width:0}.math-file .resource-link{font-size:1rem;margin:0}.math-file time{display:block;font-size:.875rem;color:var(--muted);margin-top:7px}.math-file button{flex-shrink:0}
