:root{--ink:#1c2440;--muted:#8890a3;--accent:#6558ee;--accent-2:#887afa;--border:#e9eaf3;--bg:#f6f7fb;--card:#fff;--green:#18af83;--gold:#ecab42;--sidebar:#15182a;--shadow:0 12px 48px rgba(31,37,79,.04)}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{margin:0;background:var(--bg);color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}strong{font-weight:750}h1,h2,h3,h4,p{margin-top:0}h1{font-size:27px;letter-spacing:-1px;line-height:1.18}h2{font-size:19px;letter-spacing:-.5px}h3{font-size:16px;letter-spacing:-.2px}p{line-height:1.6}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#d4d8e6;border-radius:20px}.icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.icon svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.boot-loader{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#8990a6;gap:8px}.boot-loader .brand-mark{color:var(--accent);font-size:54px}.boot-loader p{margin:0}.app-shell{min-height:100vh;display:grid;grid-template-columns:255px minmax(0,1fr)}.sidebar{background:var(--sidebar);color:#e7e9f6;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:26px 15px 18px;z-index:4}.brand{display:flex;align-items:center;gap:11px;padding:4px 13px 36px;letter-spacing:-.2px}.brand-emblem{width:41px;height:41px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#8878ff,#5047d0);border-radius:12px;box-shadow:0 6px 18px #6351ef44}.brand-emblem .icon svg{width:25px;height:25px}.brand-name{font-weight:800;font-size:16px;line-height:1.1}.brand-sub{font-size:10px;text-transform:uppercase;letter-spacing:2.2px;color:#838ba7;margin-top:6px}.nav-head{color:#707991;font-size:10px;letter-spacing:1.9px;padding:10px 16px 10px;font-weight:800;text-transform:uppercase}.nav-list{display:grid;gap:5px}.nav-link{display:flex;align-items:center;gap:13px;border:none;border-radius:12px;padding:12px 14px;background:transparent;color:#a4acc2;text-align:left;font-weight:590;transition:.18s}.nav-link:hover{background:#262a43;color:#fff}.nav-link.active{background:#383359;color:#c5bbff;color:#fff}.nav-link.active .icon{color:#b9acff}.nav-count{margin-left:auto;background:#5a4ad2;border-radius:7px;color:#fff;padding:3px 7px;font-size:10px}.sidebar-bottom{margin-top:auto}.sidebar-note{border:1px solid #333952;border-radius:14px;margin:0 5px 15px;padding:15px;background:linear-gradient(145deg,#292a47,#1e2137)}.sidebar-note strong{font-size:12px}.sidebar-note p{font-size:11px;color:#a6abc1;margin:7px 0 11px}.sidebar-note .mini-mark{font-size:21px;margin-bottom:8px}.user-block{display:flex;align-items:center;gap:9px;border-top:1px solid #33364d;padding:15px 7px 0}.avatar{width:37px;height:37px;display:grid;place-items:center;border-radius:12px;font-weight:800;background:#ddd9ff;color:#6052d6;flex-shrink:0;text-transform:uppercase}.user-block .avatar{background:#4d447f;color:#e6dfff}.user-info{min-width:0;flex:1}.user-info b,.user-info span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-info b{font-size:12px}.user-info span{font-size:10px;color:#8790a8;margin-top:3px}.icon-btn{width:33px;height:33px;display:grid;place-items:center;border:none;background:transparent;color:#9ba1b6;border-radius:9px}.icon-btn:hover{background:#ffffff1b;color:#fff}.icon-btn .icon svg{width:17px;height:17px}.main{min-width:0;display:flex;flex-direction:column}.topbar{height:79px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(21px,3.5vw,56px);gap:12px}.breadcrumbs{display:flex;align-items:center;gap:10px;color:#a2a8b9;font-size:13px}.breadcrumbs b{color:#30364e;font-weight:700}.top-actions{display:flex;gap:14px;align-items:center}.online-pill{font-size:11px;color:#448c75;background:#eafaf2;padding:9px 12px;border-radius:25px;display:flex;align-items:center;gap:7px;font-weight:650}.online-pill:before{content:"";width:7px;height:7px;border-radius:50%;background:#33b986;box-shadow:0 0 0 3px #cbf0df}.top-avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#e8e6ff;color:#6558e9;font-weight:800}.mobile-menu{display:none;background:none;border:none;color:#3d4766}.content{padding:32px clamp(21px,3.5vw,56px) 52px;max-width:1600px;width:100%;margin:0 auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:26px}.page-head h1{margin:0 0 7px}.subtitle{color:var(--muted);margin:0;font-size:13px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.7px;text-transform:uppercase;color:var(--accent);margin:0 0 9px}.btn{border:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:720;font-size:13px;border-radius:11px;padding:12px 17px;transition:transform .15s,background .2s,box-shadow .2s}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn .icon svg{width:17px;height:17px}.btn-primary{background:var(--accent);color:white;box-shadow:0 8px 18px #6659ed27}.btn-primary:hover{background:#5545d9}.btn-dark{background:#242743;color:#fff}.btn-light{background:#f0eefc;color:var(--accent)}.btn-white{background:white;color:#4f46c4}.btn-ghost{background:transparent;color:#777f99;border:1px solid var(--border)}.btn-ghost:hover{background:#f5f6fb}.btn-sm{font-size:12px;padding:9px 12px;border-radius:9px}.btn-danger{background:#fff0ef;color:#d95050}.mini-link{color:var(--accent);font-weight:750;border:none;background:none;font-size:12px}.mini-link:hover{text-decoration:underline}.card{border:1px solid #eff0f6;border-radius:17px;background:var(--card);box-shadow:var(--shadow)}.card-pad{padding:22px}.section-title{display:flex;justify-content:space-between;align-items:center;margin:32px 0 15px;gap:12px}.section-title h2{margin:0}.muted{color:var(--muted)}.tiny{font-size:11px}.small{font-size:12px}.row{display:flex;align-items:center;gap:10px}.space-between{justify-content:space-between}.align-start{align-items:flex-start}.line{height:1px;background:var(--border);margin:16px 0}.tag{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:6px 10px;background:#f2f0ff;color:#6559db;font-size:10px;font-weight:780;white-space:nowrap}.tag-green{color:#138b6f;background:#e6f9f2}.tag-orange{color:#b37a2b;background:#fff3e2}.tag-gray{color:#7b8398;background:#f0f2f7}.dot{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}.progress-track{background:#eeedf7;height:7px;overflow:hidden;border-radius:20px}.progress-bar{background:linear-gradient(90deg,#6558ee,#a197ff);height:100%;border-radius:20px;transition:width .3s}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:21px 0 6px}.stat-card{padding:20px;display:flex;gap:13px;align-items:center}.stat-icon{width:47px;height:47px;display:grid;place-items:center;border-radius:14px;flex-shrink:0}.stat-icon.purple{background:#f0eeff;color:#6558ee}.stat-icon.green{background:#e3f9f1;color:#11aa80}.stat-icon.orange{background:#fff4e4;color:#d89d40}.stat-icon.blue{background:#eaf3ff;color:#528edb}.stat-card strong{font-size:25px;letter-spacing:-.8px;display:block;line-height:1.15}.stat-card span:not(.icon){font-size:11px;color:var(--muted)}.hero{min-height:254px;border-radius:20px;background:radial-gradient(circle at 85% 25%,#8173ff,transparent 36%),linear-gradient(115deg,#3f338b,#6959e5 73%,#8977f5);position:relative;overflow:hidden;display:flex;align-items:center;padding:34px 36px;color:#fff;box-shadow:0 18px 28px #534cc622}.hero:before,.hero:after{content:"";position:absolute;border:1px solid #ffffff23;border-radius:50%;height:320px;width:320px;right:-20px;top:-70px}.hero:after{right:70px;top:-35px;height:240px;width:240px}.hero-copy{position:relative;z-index:2;max-width:560px}.hero .hero-over{font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:800;color:#d1ceff;margin-bottom:10px}.hero h1{font-size:clamp(25px,3vw,37px);max-width:530px;line-height:1.15;letter-spacing:-1.3px;margin:0 0 12px}.hero p{color:#e0dcff;max-width:455px;font-size:13px;margin-bottom:20px}.hero-visual{position:absolute;right:8%;top:36px;opacity:.95;transform:rotate(-12deg)}.orb-board{width:205px;height:172px;border-radius:23px;border:2px solid #cabfff9e;background:#ffffff21;backdrop-filter:blur(5px);box-shadow:16px 18px 0 #a698fa24;transform:rotate(11deg);display:grid;place-items:center}.orb-board svg{width:170px;height:140px}.dash-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:20px}.task-list{display:grid;gap:12px}.task-row{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #eff0f5;border-radius:12px;background:#fff;transition:.15s}.task-row:hover{border-color:#d9d5ff;background:#fcfbff}.task-symbol{height:42px;width:42px;display:grid;place-items:center;border-radius:12px;background:#f0edff;color:var(--accent)}.task-row .task-main{flex:1;min-width:0}.task-row b{display:block;font-size:12px}.task-row p{color:#989eb0;font-size:11px;margin:5px 0 0}.task-row .icon svg{width:17px;height:17px;color:#8f93a4}.dash-right{padding:22px}.goal-figure{display:flex;gap:15px;align-items:center;margin:18px 0}.goal-ring{height:88px;width:88px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#6b5bf0 var(--p),#edebff 0);position:relative;flex-shrink:0}.goal-ring:before{position:absolute;content:"";inset:11px;background:#fff;border-radius:50%}.goal-ring strong{z-index:1;font-size:21px}.activity-list{display:grid;gap:12px}.activity-item{display:flex;gap:10px;align-items:flex-start}.activity-item .activity-badge{width:33px;height:33px;border-radius:10px;background:#f4f1ff;color:var(--accent);display:grid;place-items:center}.activity-item b{display:block;font-size:12px}.activity-item span{font-size:11px;color:var(--muted)}
/* Arduino workspace */
.workspace{display:grid;grid-template-columns:minmax(400px,1.08fr) minmax(340px,.92fr);gap:18px;align-items:start}.ide{overflow:hidden}.ide-header{background:#1f2335;color:#d9dbe8;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px}.ide-label{font-size:12px;font-weight:750;display:flex;align-items:center;gap:9px}.ide-label .dot{background:#ffae69}.ide-filename{background:#30344b;padding:7px 10px;border-radius:7px;color:#aeb4cb;font:11px ui-monospace,Menlo,monospace}.ide-toolbar{display:flex;gap:8px;justify-content:space-between;align-items:center;padding:12px;background:#fdfdff;border-bottom:1px solid var(--border)}.ide-toolbar select,.form-input{border:1px solid #e1e3f1;border-radius:9px;background:white;color:var(--ink);padding:10px 11px;outline:none}.ide-toolbar select{max-width:175px;font-size:12px}.form-input:focus,.ide-toolbar select:focus,.form-textarea:focus{border-color:#8a7ef2;box-shadow:0 0 0 3px #7763ec1b}.code-editor{display:flex;background:#202438;min-height:380px;position:relative}.code-lines{color:#66728d;font:12px/22px ui-monospace,SFMono-Regular,Consolas,monospace;user-select:none;text-align:right;width:38px;padding:19px 10px 19px 0;overflow:hidden;flex-shrink:0;white-space:pre}.code-editor textarea{width:100%;min-height:380px;border:none;resize:vertical;outline:none;background:transparent;color:#e2e7ff;font:12px/22px ui-monospace,SFMono-Regular,Consolas,monospace;padding:19px 19px 19px 2px;tab-size:2;white-space:pre;overflow:auto}.ide-footer{background:#181c2b;color:#a8b1c9;min-height:112px}.console-head{padding:11px 14px;border-bottom:1px solid #33384e;font-size:11px;font-weight:750;display:flex;align-items:center;justify-content:space-between}.console-log{font:11px/1.7 ui-monospace,Consolas,monospace;padding:11px 14px;height:86px;overflow:auto;white-space:pre-wrap;word-break:break-word}.console-log .log-ok{color:#6fddac}.console-log .log-error{color:#ff9aa0}.hardware-panel{padding:19px;overflow:hidden}.hardware-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.hardware-title h3{margin:0}.board-zone{background:radial-gradient(#e6e8f1 1px,transparent 1px),#f8f9fd;background-size:17px 17px;border-radius:13px;border:1px solid #eef0f8;padding:18px 12px;position:relative;min-height:284px;display:flex;align-items:center;justify-content:center}.arduino-svg{max-width:100%;width:345px;height:auto;filter:drop-shadow(0 13px 13px #363e6b25)}.hardware-leds{display:flex;justify-content:space-between;gap:8px;margin:14px 0}.led-item{border:1px solid var(--border);border-radius:12px;padding:11px 9px;display:flex;align-items:center;flex-direction:column;gap:7px;flex:1;min-width:0}.led-bulb{height:25px;width:25px;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 1px #d7dbe6, inset 0 -3px 6px #0002;transition:.12s;background:#b8bccc}.led-bulb.red{background:#c39095}.led-bulb.yellow{background:#d6c58b}.led-bulb.green{background:#99c4ad}.led-bulb.red.lit{background:#fc535f;box-shadow:0 0 0 1px #fb7478,0 0 20px 5px #ff62677a}.led-bulb.yellow.lit{background:#ffd440;box-shadow:0 0 0 1px #ffd440,0 0 20px 5px #ffcc657a}.led-bulb.green.lit{background:#2adf92;box-shadow:0 0 0 1px #43d59c,0 0 20px 5px #56df9a7a}.led-bulb.blue.lit{background:#5889ff;box-shadow:0 0 0 1px #5889ff,0 0 20px 5px #7b9bff88}.led-item span{font-size:10px;color:#858ca2;font-weight:700}.switch-panel{padding:13px;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--border);border-radius:12px;background:#fdfdff;gap:10px}.physical-btn{height:44px;width:44px;border:6px solid #d8dce8;background:#fff;border-radius:12px;box-shadow:0 4px 0 #b9bdd0;transition:.08s}.physical-btn.pressed{transform:translateY(3px);background:#ada3ff;box-shadow:0 1px 0 #b9bdd0}.hardware-foot{font-size:11px;line-height:1.6;color:#8a90a4;margin:14px 0 0}.hint-banner{background:#fff8eb;border:1px solid #ffe9c3;color:#9a7028;border-radius:11px;padding:12px 15px;margin-top:18px;font-size:12px;line-height:1.6}.hint-banner strong{color:#805c24}.sim-status{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:750;color:#8a91a7}.sim-status .dot{background:#b7bdcd}.sim-status.live{color:var(--green)}.sim-status.live .dot{background:var(--green);box-shadow:0 0 0 4px #d7f7eb}.tab-strip{display:flex;gap:8px}.mini-tab{border:none;background:#efeff8;color:#727c91;padding:8px 13px;border-radius:8px;font-weight:730;font-size:11px}.mini-tab.active{background:#e6e2ff;color:var(--accent)}
/* Scratch */
.scratch-banner{background:linear-gradient(115deg,#fff8ed,#fff1df);border:1px solid #ffebcf;border-radius:18px;padding:23px 27px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.scratch-banner .kicker{font-size:11px;font-weight:800;color:#b97d34;letter-spacing:1px;text-transform:uppercase}.scratch-banner h2{margin:5px 0;font-size:21px}.scratch-banner p{font-size:12px;color:#977d66;margin:0}.scratch-emoji{font-size:67px;line-height:1}.scratch-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.7fr);gap:18px}.scratch-frame{height:480px;background:#f9faff;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.scratch-frame iframe{border:0;width:100%;height:100%}.scratch-empty{text-align:center;padding:35px}.scratch-empty-icon{font-size:70px;margin-bottom:17px}.scratch-empty h3{font-size:18px}.scratch-empty p{max-width:370px;font-size:12px;color:var(--muted);margin:0 auto 19px}.step-card{padding:20px;display:grid;gap:17px}.step{display:flex;align-items:flex-start;gap:12px}.step-n{height:29px;width:29px;border-radius:9px;background:#f1eeff;color:var(--accent);display:grid;place-items:center;font-weight:800;font-size:12px}.step b{display:block;font-size:12px}.step p{font-size:11px;color:var(--muted);margin:4px 0}.scratch-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
/* chat */
.chat-shell{display:grid;grid-template-columns:245px minmax(0,1fr);height:min(680px,calc(100vh - 205px));min-height:480px;overflow:hidden}.channel-sidebar{background:#fbfbfe;border-right:1px solid var(--border);padding:17px 11px}.channel-sidebar .aside-label{padding:0 10px 13px;color:#979eb1;font-size:10px;text-transform:uppercase;letter-spacing:1.2px;font-weight:800}.channel-btn{display:flex;align-items:center;gap:10px;padding:11px 10px;border-radius:10px;background:transparent;border:none;color:#69738b;text-align:left;width:100%;margin-bottom:3px}.channel-btn.active{background:#f0edff;color:#6253dd}.channel-btn .chicon{font-size:16px;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#f1f0f9;color:inherit;font-weight:750}.channel-btn.active .chicon{background:#e1dbff}.channel-btn b{font-size:12px;display:block}.channel-btn small{font-size:10px;color:#9ca2b6;display:block;margin-top:3px}.chat-main{display:flex;min-width:0;flex-direction:column}.chat-head{padding:17px 21px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.chat-head h3{margin:0 0 4px}.chat-head p{font-size:11px;color:var(--muted);margin:0}.connection{font-size:10px;color:var(--muted)}.chat-messages{min-height:0;flex:1;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:19px}.message{display:flex;align-items:flex-start;gap:11px;max-width:100%}.message .avatar{width:33px;height:33px;border-radius:10px;font-size:12px}.message-content{min-width:0;max-width:680px}.message-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}.message-head strong{font-size:12px}.message-head small{color:#a5aabc;font-size:10px}.message-text{font-size:12px;color:#4a536b;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.message.mine .message-text{background:#f4f1ff;padding:11px 13px;border-radius:3px 12px 12px 12px}.chat-form{display:flex;gap:9px;padding:15px;border-top:1px solid var(--border)}.chat-form input{flex:1;min-width:0;border:1px solid #e4e5f1;border-radius:10px;padding:13px 14px;outline:none;color:var(--ink)}.chat-form input:focus{border-color:#aca3ff}.empty-state{text-align:center;padding:40px 20px;color:var(--muted)}.empty-state .empty-icon{height:66px;width:66px;border-radius:20px;display:grid;place-items:center;background:#f2efff;color:var(--accent);margin:0 auto 15px}.empty-state h3{color:var(--ink);margin-bottom:6px}.empty-state p{font-size:12px;max-width:315px;margin:0 auto}.chat-empty{margin:auto}
/* project/task cards */
.project-grid,.assignment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.project-card{overflow:hidden;transition:.15s}.project-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px #34395f11}.project-cover{height:143px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.project-cover.arduino{background:linear-gradient(145deg,#c8f4e8,#e5fcf5)}.project-cover.scratch{background:linear-gradient(145deg,#ffe9c6,#fff5de)}.project-cover .big-glyph{font-size:58px;filter:drop-shadow(0 7px 0 #ffffff88)}.project-cover:before,.project-cover:after{content:"";position:absolute;border:2px solid #ffffff90;border-radius:50%;width:200px;height:200px;right:-75px;top:-80px}.project-cover:after{width:130px;height:130px;left:-50px;top:80px}.project-body{padding:16px}.project-body h3{font-size:14px;margin:10px 0 7px;line-height:1.4}.project-body p{font-size:11px;color:#8d94a6;margin:0 0 14px;min-height:34px}.project-by{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#9b9fb0;gap:8px}.project-by .avatar{height:24px;width:24px;font-size:10px;border-radius:7px}.assignment-card{padding:19px;display:flex;flex-direction:column;gap:13px}.assignment-top{display:flex;align-items:center;justify-content:space-between}.assignment-icon{height:47px;width:47px;border-radius:13px;display:grid;place-items:center;background:#efeaff;color:var(--accent)}.assignment-card h3{margin:0}.assignment-card p{color:#8d93a5;font-size:11px;margin:0;flex:1}.assignment-bottom{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding-top:12px}.points{font-weight:750;color:#bd8b32;font-size:12px}.search-field{padding:11px 13px;border:1px solid #e2e4ee;border-radius:11px;background:white;outline:none;min-width:200px}.search-field:focus{border-color:#8375ee}
/* dialogs and forms */
.modal-backdrop{position:fixed;inset:0;background:#12162b88;z-index:20;display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(4px)}.modal{background:#fff;border-radius:19px;max-width:520px;width:100%;max-height:min(90vh,800px);overflow:auto;padding:25px;box-shadow:0 30px 100px #0004}.modal.wide{max-width:760px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:17px}.modal-head h2{margin:0}.close-btn{background:#f4f5fa;border:none;height:30px;width:30px;border-radius:9px;color:#798198;font-size:18px}.form-stack{display:grid;gap:14px}.field{display:grid;gap:7px}.field label{font-size:12px;color:#49516c;font-weight:700}.form-input{width:100%;font-size:13px}.form-textarea{width:100%;min-height:100px;resize:vertical;border:1px solid #e1e3f1;border-radius:9px;padding:11px;outline:none;color:var(--ink)}.help-text{font-size:11px;color:#9a9faf;line-height:1.5}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:9px}.form-error{font-size:12px;color:#d84a51;padding:10px;background:#fff2f2;border-radius:10px}.iframe-player{width:100%;height:450px;border:0;border-radius:11px;background:#eee}
/* Authentication */
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);background:#fff}.auth-promo{position:relative;background:radial-gradient(circle at 85% 18%,#7963f2aa,transparent 44%),linear-gradient(140deg,#231c62,#43359c 48%,#6856df);color:#fff;padding:45px clamp(34px,5vw,87px);overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}.auth-promo:after{content:"";position:absolute;bottom:6%;right:-12%;height:500px;width:500px;border-radius:50%;border:1px solid #ffffff20;box-shadow:0 0 0 85px #ffffff08,0 0 0 170px #ffffff07}.auth-promo .brand{padding:0;position:relative;z-index:1}.auth-promo .brand-sub{color:#c5bdf7}.auth-promo .brand-emblem{background:#ffffff2a}.auth-copy{position:relative;z-index:1;max-width:580px;margin:auto 0}.auth-copy .kicker{font-size:12px;color:#c6bcff;letter-spacing:2px;text-transform:uppercase;font-weight:800}.auth-copy h1{font-size:clamp(38px,4.4vw,65px);letter-spacing:-3px;line-height:1.09;margin:20px 0}.auth-copy h1 span{color:#b9adff}.auth-copy p{font-size:15px;line-height:1.8;color:#d5cffb;max-width:470px}.auth-feature-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:29px}.auth-feature-row span{border:1px solid #ffffff50;border-radius:30px;padding:10px 13px;color:#e3ddff;font-size:11px}.auth-footer{position:relative;z-index:1;color:#aaa1e0;font-size:11px}.auth-side{display:flex;align-items:center;justify-content:center;padding:30px}.auth-box{max-width:405px;width:100%}.auth-box .mini-logo{display:grid;place-items:center;background:#eeebff;border-radius:13px;width:49px;height:49px;color:var(--accent);margin-bottom:23px}.auth-box h2{font-size:29px;letter-spacing:-1.1px;margin-bottom:8px}.auth-box .auth-sub{font-size:13px;color:var(--muted);margin-bottom:26px}.auth-tabs{display:flex;padding:4px;background:#f4f4f9;border-radius:12px;margin-bottom:23px}.auth-tabs button{border:none;border-radius:9px;flex:1;padding:11px;background:transparent;font-size:12px;font-weight:750;color:#9296a6}.auth-tabs button.active{background:#fff;color:#4f45cb;box-shadow:0 2px 9px #33335514}.auth-box .field{margin-bottom:15px}.auth-box .btn{width:100%;margin-top:8px;padding:14px}.auth-divider{text-align:center;margin:20px 0;color:#afb3be;font-size:11px;position:relative}.auth-divider:before{content:"";position:absolute;top:50%;left:0;right:0;height:1px;background:#ecedf3}.auth-divider span{position:relative;background:#fff;padding:0 12px}.auth-box .demo-btn{border:1px solid #e3e5ef;background:#fff;color:#5b6478;box-shadow:none}.auth-terms{font-size:11px;color:#a4aabb;text-align:center;margin-top:24px;line-height:1.7}
/* toast, misc */
#toast-root{position:fixed;bottom:22px;right:23px;z-index:30;display:grid;gap:8px}.toast{background:#222943;color:white;border-radius:12px;padding:12px 17px;box-shadow:0 10px 32px #0003;font-size:12px;max-width:350px}.toast.error{background:#af4c55}.pill-note{font-size:11px;color:#8490a2;margin:10px 0}.grid-gap{display:grid;gap:15px}.code-preview{white-space:pre-wrap;word-break:break-word;background:#202438;color:#e1e7ff;border-radius:12px;padding:18px;max-height:390px;overflow:auto;font:12px/1.7 ui-monospace,Consolas,monospace}.mobile-overlay{display:none}
@media(max-width:1250px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-grid,.assignment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-visual{right:1%}.workspace{grid-template-columns:minmax(0,1fr)}.arduino-svg{width:345px}.scratch-layout{grid-template-columns:1fr}.scratch-frame{height:440px}.step-card{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:860px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;transform:translateX(-105%);width:255px;transition:transform .2s;box-shadow:8px 0 30px #0002}.app-shell.menu-open .sidebar{transform:translateX(0)}.app-shell.menu-open .mobile-overlay{display:block;position:fixed;inset:0;background:#14162770;z-index:3}.mobile-menu{display:block}.topbar{height:65px}.content{padding:22px 20px 40px}.hero-visual{opacity:.22;right:-9%}.auth-shell{grid-template-columns:1fr}.auth-promo{padding:28px 25px;min-height:290px}.auth-promo .brand{padding:0}.auth-copy{margin-top:25px}.auth-copy h1{font-size:37px;margin:9px 0}.auth-copy p,.auth-footer{display:none}.auth-feature-row{margin-top:13px}.auth-side{padding:35px 22px}.auth-box{max-width:470px}}
@media(max-width:600px){.topbar{padding:0 19px}.breadcrumbs{font-size:12px}.online-pill{display:none}.top-actions{gap:6px}.content{padding:21px 14px 35px}.page-head{flex-wrap:wrap;margin-bottom:20px}.page-head h1{font-size:23px}.hero{padding:26px 22px;min-height:245px}.hero h1{font-size:28px}.hero-visual{display:none}.stats-grid{gap:10px}.stat-card{padding:14px;gap:8px}.stat-icon{width:35px;height:35px}.stat-card strong{font-size:22px}.dash-grid{grid-template-columns:1fr}.project-grid,.assignment-grid{grid-template-columns:1fr}.chat-shell{height:calc(100dvh - 180px);min-height:410px;grid-template-columns:1fr}.channel-sidebar{display:flex;overflow:auto;gap:6px;padding:9px}.channel-sidebar .aside-label{display:none}.channel-btn{white-space:nowrap;width:auto;margin:0;flex-shrink:0;padding:8px}.channel-btn small{display:none}.chat-shell{grid-template-rows:auto minmax(0,1fr)}.chat-messages{padding:16px}.chat-form{padding:10px}.scratch-banner{padding:18px}.scratch-emoji{display:none}.scratch-frame{height:390px}.step-card{grid-template-columns:1fr}.code-editor,.code-editor textarea{min-height:330px}.ide-toolbar{flex-wrap:wrap}.ide-toolbar select{max-width:175px}.hardware-panel{padding:14px}.board-zone{min-height:220px}.led-item{padding:9px 2px}.modal{padding:20px}.auth-copy h1{font-size:31px;letter-spacing:-1.2px}.auth-feature-row span{font-size:10px;padding:8px}}

/* v1.2: locale control and a full-sized Scratch editor/player */
.locale-switcher{display:flex;gap:3px;align-items:center;padding:3px;background:#f0effa;border:1px solid #dddafa;border-radius:11px;flex-shrink:0}
.locale-switcher button{border:0;background:transparent;color:#656586;font-size:11px;font-weight:800;padding:8px 10px;border-radius:8px;cursor:pointer;letter-spacing:.4px}
.locale-switcher button.active{color:#fff;background:#6858dd;box-shadow:0 2px 7px #5545c53c}
.locale-switcher button:focus-visible{outline:3px solid #ab9dff;outline-offset:2px}
.auth-language{position:absolute;top:37px;right:35px;z-index:3}
.auth-language .locale-switcher{background:#29216b;border-color:#8c7df4}
.auth-language .locale-switcher button{color:#dcd5ff}
.auth-language .locale-switcher button.active{background:#f5f3ff;color:#43359c}
.scratch-tabs{display:flex;gap:8px;margin:0 0 15px;flex-wrap:wrap}
.scratch-tabs .mini-tab{display:inline-flex;align-items:center;gap:8px;padding:11px 16px}
.scratch-header{padding:15px 18px;border-bottom:1px solid var(--border);gap:10px;flex-wrap:wrap}
.scratch-preview-form{display:flex;align-items:center;gap:10px;padding:13px 18px;border-bottom:1px solid var(--border)}
.scratch-preview-form input{flex:1;min-width:0}
.scratch-preview-form button{flex-shrink:0}
.scratch-footer{display:flex;gap:12px;justify-content:space-between;align-items:center;padding:14px 18px;flex-wrap:wrap}
.scratch-footer .tiny{line-height:1.6;flex:1}
.scratch-editor-frame{height:650px;align-items:stretch}
.scratch-player-frame{height:490px}
.scratch-player-frame iframe{width:min(100%,750px);height:100%;margin:auto}
@media(max-width:1250px){.scratch-editor-frame{height:590px}}
@media(max-width:860px){.auth-language{top:20px;right:20px}.scratch-editor-frame{height:520px}}
@media(max-width:600px){.locale-switcher button{font-size:10px;padding:7px 8px}.scratch-preview-form{flex-direction:column;align-items:stretch}.scratch-preview-form button{width:100%}.scratch-editor-frame{height:490px}.scratch-player-frame{height:390px}.auth-language{right:15px;top:17px}}

/* v1.3: TurboWarp editor cannot be iframe-embedded; present a launch panel instead. */
.scratch-editor-frame{height:auto;min-height:360px;padding:35px 20px;background:linear-gradient(140deg,#f8f7ff,#eef3ff)}
.scratch-editor-launch{max-width:560px;margin:auto}
.scratch-editor-launch h3{font-size:23px;margin:0 0 12px}
.scratch-editor-launch p{font-size:13px;line-height:1.7}
.scratch-editor-launch .btn{display:inline-flex;gap:8px;align-items:center;margin:14px 0 5px;text-decoration:none}
.scratch-editor-launch .scratch-launch-note{margin-top:12px;font-size:12px;color:var(--muted)}
@media(max-width:600px){.scratch-editor-frame{min-height:330px;padding:24px 15px}}

/* TechBotClub 2.0: live educational component dashboard */
.club-university{padding:0 16px 14px;font-size:11px;line-height:1.55;color:#afadd2}
.components-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:16px 0}
.hardware-component{border:1px solid var(--border);border-radius:13px;min-height:102px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:11px;background:#fafbff}
.hardware-component strong{font-size:12px;color:#393a59}
.hardware-component small{font-size:11px;color:#777d93;font-family:monospace}
.rgb-preview{display:block;border:1px solid #d3d4e5;border-radius:50%;width:34px;height:34px;background:#000;box-shadow:0 0 12px #7774a55c}
.pwm-track{display:block;height:14px;width:78%;border-radius:7px;background:#e1e4f4;overflow:hidden}
.pwm-bar{display:block;height:100%;width:0;background:linear-gradient(90deg,#8176e5,#ffca70);transition:width .1s}
.buzzer-symbol{font-size:23px;color:#a1a4c5}
.buzzer-symbol.buzzing{color:#ff9f43;animation:buzzer-bounce .16s infinite alternate}
@keyframes buzzer-bounce{to{transform:translateX(3px)}}
.servo-dial{width:44px;height:44px;border-radius:50%;border:7px solid #adb5c7;position:relative;background:#333c50}
.servo-dial span{position:absolute;bottom:50%;left:calc(50% - 2px);width:4px;height:20px;background:#ffb951;transform-origin:bottom center;border-radius:3px;transition:transform .15s}
.pot-panel{background:#f6f7ff;border:1px solid #e7e7fa;border-radius:13px;padding:14px;margin:12px 0}
.pot-panel label{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#4b4b72}.pot-panel input{display:block;width:100%;accent-color:#7064d4;margin-top:10px}
.lcd-wrapper{margin:15px 0;background:#172c43;padding:14px;border-radius:12px;border:4px solid #d6d8ed}.lcd-top{font-size:11px;font-weight:700;color:#c6deeb;margin-bottom:10px}
.lcd-display{background:#b3d68d;border:3px inset #3d7462;border-radius:4px;padding:9px 12px;color:#213c2b;font:700 16px/1.5 monospace;min-height:71px;letter-spacing:1px;box-shadow:inset 0 0 12px #31643088}
.lcd-display>div{white-space:pre}
.component-catalog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:24px}
.component-tile{display:flex;align-items:center;gap:13px;padding:14px;background:white;border:1px solid var(--border);border-radius:15px}
.component-tile>span{font-size:25px}.component-tile b,.component-tile small{display:block}.component-tile b{font-size:12px;color:#232442}.component-tile small{font-size:11px;margin-top:4px;color:var(--muted)}
.scratch-workspace{overflow:hidden}
.scratch-editor-frame-full{height:min(75vh,770px);min-height:570px;background:#f3f1ff;display:flex;align-items:stretch;justify-content:center}
.scratch-editor-frame-full iframe{width:100%;height:100%;border:0;display:block}
.scratch-editor-frame-full .scratch-editor-launch{margin:auto;max-width:630px;padding:40px;text-align:center}
.scratch-editor-frame-full .scratch-editor-launch code{background:#ebe7ff;color:#5b45b5;padding:3px 7px;border-radius:4px}
.video-guide{display:flex;gap:17px;align-items:center;margin:0 0 24px;padding:18px 21px;border-radius:16px;background:#f0edff;border:1px solid #e1dcfe;color:#4b4387}
.video-guide>span{font-size:31px}.video-guide strong{font-size:15px}.video-guide p{font-size:12px;line-height:1.55;margin:5px 0 0}
.video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.video-card{overflow:hidden}.video-frame{background:#131624;aspect-ratio:16/9}.video-frame video{width:100%;height:100%;display:block;object-fit:contain;background:#131624}
.video-card-body{padding:20px}.video-card-body h3{font-size:17px;margin:13px 0 7px}.video-card-body p{color:#73758b;font-size:13px;line-height:1.55;min-height:38px;white-space:pre-wrap}
@media(max-width:1170px){.component-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.video-grid{grid-template-columns:1fr}.scratch-editor-frame-full{height:570px}}
@media(max-width:550px){.component-catalog{grid-template-columns:1fr 1fr;gap:8px}.component-tile{padding:9px;gap:8px}.component-tile>span{font-size:18px}.component-tile b{font-size:11px}.scratch-editor-frame-full{min-height:500px;height:560px}.video-guide{align-items:flex-start}}
