:root{--blue:#2458f5;--lime:#c8f24a;--ink:#17191e;--muted:#657080;--bg:#f7f8fa;--line:#e3e6ed;--red:#c1261c}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 Inter,Arial,sans-serif}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:3px solid var(--blue)}button{cursor:pointer;min-height:44px;border:1px solid var(--line);border-radius:12px;background:white;padding:10px 17px;color:inherit;font-weight:600;transition:.15s}button:hover{background:#edf1ff;border-color:#aabcfb}button:active{transform:translateY(1px)}button:disabled{opacity:.4;cursor:not-allowed}button.primary{background:var(--blue);color:white;border-color:var(--blue)}button.primary:hover{background:#1844cb}button.lime{background:var(--lime);border-color:var(--lime)}button.danger{color:var(--red);border-color:#f4b9b2}button.ghost{background:transparent;border-color:transparent}h1{font-size:38px;line-height:1.15;letter-spacing:-1.4px;margin:8px 0 18px}h2{font-size:24px;line-height:1.2;letter-spacing:-.6px;margin:0 0 16px}h3{font-size:18px;margin:0 0 10px}p{margin:8px 0 16px}small,.muted{color:var(--muted)}small{font-size:13px}.eyebrow{font-size:12px;letter-spacing:1.7px;text-transform:uppercase;font-weight:700;color:var(--muted)}.logo{font-size:34px;font-weight:900;letter-spacing:-2px}.logo i{color:var(--blue);font-style:normal}.shell{display:grid;grid-template-columns:224px 1fr;min-height:100vh}.sidebar{background:white;border-right:1px solid var(--line);padding:27px 18px;display:flex;flex-direction:column;gap:26px}.sidebar .logo{padding:0 16px}.nav{display:grid;gap:7px}.nav button{text-align:left;border:0;background:transparent;font-size:14px}.nav button.active{color:var(--blue);background:#edf1ff}.nav em{font-style:normal;width:28px;display:inline-block}.side-bottom{margin-top:auto;padding:20px 12px;background:var(--bg);border-radius:16px}.topbar{height:86px;padding:0 34px;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;justify-content:space-between;gap:16px}.topbar strong{font-size:14px}.avatar{background:var(--ink);color:white;width:42px;height:42px;border-radius:50%;display:inline-grid;place-items:center;font-size:14px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.content{max-width:1440px;margin:auto;padding:32px}.card{background:white;border:1px solid var(--line);border-radius:22px;padding:26px}.grid{display:grid;gap:22px}.cols{grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr)}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.four{grid-template-columns:repeat(4,minmax(0,1fr))}.stack{display:grid;gap:20px}.hero{background:var(--blue);color:white;overflow:hidden;position:relative;min-height:260px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:32px}.hero h1{max-width:520px}.hero .muted,.hero .eyebrow{color:#d7e0ff}.hero button{margin-top:12px}.badge{display:inline-block;padding:5px 10px;border-radius:7px;font-size:12px;background:#eef1f6;color:#526071;font-weight:700}.badge.green{background:#e9f6bf;color:#365400}.badge.blue{background:#e9efff;color:#2458f5}.badge.red{background:#ffebe8;color:#a11e15}.progress{height:8px;border-radius:8px;background:#edf0f5;overflow:hidden;margin:16px 0}.progress span{display:block;height:100%;background:var(--blue);border-radius:8px}.big{font-size:42px;font-weight:750;letter-spacing:-2px;line-height:1.3}.section{margin-top:28px}.mission-card{min-height:180px;display:flex;flex-direction:column;align-items:flex-start}.mission-card button{margin-top:auto}.number{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#edf1ff;color:var(--blue);font-weight:bold;margin-bottom:16px}.steps{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:26px}.step{font-size:13px;padding:9px 12px;border-radius:8px;background:#eceff4;color:#687283}.step.current{background:var(--blue);color:white}.step.done{background:#e8f6bf;color:#365400}.lesson-shell .content{padding-top:24px}.lesson-shell .topbar{height:78px}.lesson-shell{min-height:100vh}.lesson-shell main{max-width:1440px;margin:auto}.field{position:relative;aspect-ratio:1.55;background-color:#f1f4fa;background-image:linear-gradient(#dce3ed 1px,transparent 1px),linear-gradient(90deg,#dce3ed 1px,transparent 1px);background-size:20% 25%;border:1px solid #dce3ed;border-radius:16px;overflow:hidden}.field svg{width:100%;height:100%;position:absolute;inset:0}.field-label{position:absolute;background:white;padding:4px 8px;border-radius:6px;font-size:12px;bottom:8px;left:10px}.editor{grid-template-columns:220px minmax(260px,1fr) 300px}.palette button{display:block;width:100%;text-align:left;margin:9px 0;background:#edf2ff;color:#2148ad}.program{min-height:300px;background:#f7f8fc;border:1px dashed #cbd3e3;padding:18px;border-radius:15px}.block{display:flex;align-items:center;gap:8px;background:var(--blue);color:white;border-radius:10px;padding:10px 12px;margin:8px 0}.block button{min-height:32px;padding:2px 9px;background:#ffffff20;border:0;color:white}.block input{width:56px;padding:5px;border:0;border-radius:5px}.block span{flex:1}.block.start{background:var(--ink)}.notice{background:#edf2ff;border:1px solid #cfdbff;padding:16px;border-radius:12px;font-size:14px}.notice.error{background:#fff0ed;border-color:#f3c3bc;color:#9b261b}.notice.success{background:#f0f8d9;border-color:#d6eaa1;color:#395606}.check{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}input[type=checkbox]{width:21px;height:21px;accent-color:var(--blue)}input[type=search],select{padding:11px 14px;border:1px solid var(--line);border-radius:10px;background:white;min-height:44px;max-width:100%}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}th{font-weight:500;color:var(--muted);background:#f8f9fc}td,th{padding:14px;border-bottom:1px solid var(--line)}.table-wrap{overflow:auto}td button{font-size:14px}.login{min-height:100vh;padding:42px 6%;display:flex;flex-direction:column}.login-main{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center;max-width:1250px;margin:auto;width:100%;padding:60px 0}.login h1{font-size:66px;max-width:560px;letter-spacing:-3px}.role-card{width:100%;padding:26px;text-align:left;border-radius:20px;margin-bottom:16px}.role-card.selected{border:2px solid var(--blue);background:#edf1ff}.role-card strong{font-size:24px;display:block}.role-card p{font-weight:400;color:var(--muted);margin-bottom:0}.map-node{display:flex;gap:20px;padding:24px;border-left:3px solid #dbe3fb;margin-left:20px}.map-node .number{flex-shrink:0;margin-left:-47px;background:white;border:2px solid var(--blue)}.map-node.locked{opacity:.65}.metric-label{font-size:14px;color:var(--muted)}.bar{display:grid;grid-template-columns:100px 1fr 30px;gap:12px;align-items:center;font-size:14px;margin:18px 0}.bar-track{background:#edf0f6;height:24px;border-radius:5px}.bar-track span{height:100%;display:block;background:var(--blue);border-radius:5px}.board{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:12px;overflow:auto}.lane{background:#f1f3f7;padding:14px;border-radius:14px}.student-tile{background:white;border:1px solid var(--line);border-radius:10px;padding:14px 10px;margin:12px 0;font-size:14px}.queue{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:12px 0;gap:10px}.foot{color:var(--muted);font-size:12px;margin-top:25px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.award{width:88px;height:88px;display:grid;place-items:center;border-radius:25px;background:var(--lime);font-size:42px;margin-bottom:20px}.demo-control{border-top:1px solid var(--line);padding:15px 32px;background:white;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px}.demo-control select{font-size:13px}.error-state{padding:50px;text-align:center}dialog{max-width:550px;width:calc(100% - 32px);border:0;border-radius:22px;padding:30px;box-shadow:0 20px 100px #17203340}dialog::backdrop{background:#10182b66}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:13px 22px;border-radius:12px;z-index:10;display:none}.hidden{display:none!important}@media(max-width:1150px){.shell{grid-template-columns:185px 1fr}.content{padding:24px}.sidebar{padding:24px 10px}.editor{grid-template-columns:180px 1fr}.editor>aside:last-child{grid-column:1/-1}.login-main{gap:30px}.login h1{font-size:50px}.three{gap:14px}.card{padding:21px}.topbar{padding:0 24px}}@media(max-width:780px){.shell{display:block}.sidebar{padding:12px;gap:12px;border-right:0}.sidebar .logo{font-size:28px}.nav{display:flex;overflow:auto}.nav button{white-space:nowrap}.side-bottom{display:none}.topbar{padding:12px 18px;height:auto;min-height:70px}.topbar>.row>strong{display:none}.content{padding:20px}.cols,.three,.four,.editor,.login-main{grid-template-columns:1fr}.login{padding:24px}.login-main{padding:40px 0}.login h1{font-size:46px}.editor>aside:last-child{grid-column:auto}.palette{display:flex;flex-wrap:wrap;gap:7px}.palette button{width:auto}.big{font-size:34px}h1{font-size:30px}.hero{min-height:240px}.board{grid-template-columns:repeat(5,160px)}.demo-control{padding:15px 20px}.steps{gap:4px}.step{font-size:12px;padding:8px}.row{gap:8px}}
/* Blockly owns block rendering, drag-and-drop, connections and history. */
.blockly-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start}.blockly-card{padding:20px;min-width:0}.editor-toolbar h3{margin-bottom:4px}.editor-hint{font-size:14px;margin:14px 0}.editor-aside{align-self:start}#blockly-slot{height:480px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#f7f9fc}#blockly-workspace{height:100%;width:100%}.blocklySvg{background:#f7f9fc!important}.blocklyToolbox{background:#edf1f7!important;padding:12px 4px}.blocklyTreeLabel,.blocklyToolboxCategoryLabel{font:14px/1.5 Arial,sans-serif!important}.blocklyTreeRow{min-height:44px!important;border-radius:8px}.blocklyFlyoutBackground{fill:#edf1f7!important;fill-opacity:1!important}.blocklyText{font-family:Arial,sans-serif!important}.accessible-editor summary{cursor:pointer;min-height:44px;line-height:44px;font-weight:600}.accessible-command{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--line)}.accessible-command strong{flex:1}.accessible-command input{width:65px;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:7px}.accessible-command button{min-width:44px}.blocklyWidgetDiv input{min-height:0}
@media(max-width:1100px){.blockly-layout{grid-template-columns:minmax(0,1fr) 250px}.blockly-card{padding:16px}.editor-toolbar{align-items:flex-start}.editor-toolbar button{padding:8px 12px}#blockly-slot{height:440px}}
@media(max-width:800px){.blockly-layout{grid-template-columns:1fr}.editor-aside{grid-template-columns:1fr 1fr}#blockly-slot{height:460px}}
@media(max-width:540px){.editor-aside{grid-template-columns:1fr}.blockly-card{padding:12px}.editor-toolbar button{padding:8px}.blocklyToolbox{max-width:95px}#blockly-slot{height:420px}}
/* The drone is a square image above the grid, independent of SVG stretching. */
.drone-marker{position:absolute;width:clamp(24px,9%,64px);aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 3px 3px #17358526);z-index:1}.drone-marker img{display:block;width:100%;height:100%;object-fit:contain}.drone-marker-failed{filter:drop-shadow(0 0 4px #d92d2066)}.drone-alert{position:absolute;right:-3px;top:-3px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#c1261c;border:2px solid white;color:white;font:bold 12px/1 Arial}.field-label{left:auto;right:8px;max-width:75%;pointer-events:none}
/* Focused programming workspace: tools stay visible, reference is optional. */
.editing-program .lesson-shell .topbar{height:60px;min-height:60px;padding:0 20px}.editing-program .lesson-shell main.content{max-width:none;padding:12px 20px 0}.editing-program .steps{margin-bottom:8px}.editing-program .step{padding:5px 12px}.editor-heading{margin:0 0 12px}.editor-heading h1{font-size:27px;letter-spacing:-.8px;margin:6px 0}.editor-workbench .blockly-card{padding:12px;border-radius:16px}.editor-workbench .editor-toolbar{margin-bottom:12px;gap:10px}.editor-workbench #blockly-slot{height:calc(100dvh - 285px);min-height:400px}.editor-workbench #validation-message{margin-top:8px!important;padding:8px 12px;font-size:13px;background:#f5f7fb;border-color:transparent}.editor-workbench #validation-message.success{background:#f0f8d9}.editor-workbench #validation-message.error{background:#fff0ed;border-color:#f3c3bc}.editor-workbench .accessible-editor summary{font-size:13px;min-height:32px;line-height:32px;color:var(--muted)}.editor-reference{position:relative}.editor-reference>summary{cursor:pointer;list-style:none;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:12px;font-weight:600;font-size:14px}.editor-reference>summary::-webkit-details-marker{display:none}.editor-reference>summary:after{content:' ＋';color:var(--muted)}.editor-reference[open]>summary:after{content:' −'}.editor-reference-panel{position:absolute;right:0;top:52px;z-index:20;width:360px;max-width:calc(100vw - 64px);max-height:70vh;overflow:auto;background:white;padding:22px;border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 40px #17203326}.editor-reference-panel p{font-size:14px}.editor-reference-panel .foot{margin-top:12px;font-size:12px}.editor-demo{margin:0 20px;color:var(--muted);font-size:12px}.editor-demo>summary{cursor:pointer;padding:8px 0}.editor-demo .demo-control{padding:12px;border-radius:12px}.editor-toolbar button{font-size:14px}@media(max-width:1050px){.editing-program .lesson-shell main.content{padding:10px 12px 0}.editor-toolbar{gap:8px}.editor-toolbar button{padding:9px 12px}.editor-workbench #blockly-slot{height:calc(100dvh - 285px)}}@media(max-width:760px){.editor-heading h1{font-size:23px}.editor-heading .badge{font-size:11px}.editor-workbench .editor-toolbar{display:grid;justify-content:stretch}.editor-workbench .editor-toolbar>.row{justify-content:space-between}.editor-reference-panel{left:0;right:auto}.editor-workbench #blockly-slot{min-height:400px;height:calc(100dvh - 335px)}.editing-program .topbar .muted{display:none}}
.editor-workbench .editor-toolbar{position:relative;z-index:2}.editor-workbench #blockly-slot{position:relative;z-index:0}
/* Curriculum views, October 2026 */
.quiz-question{border:0;border-bottom:1px solid var(--line);padding:16px 0;margin:0}.quiz-question legend{font-weight:650}.quiz-feedback{display:block;color:#365400;margin:8px 0}.lesson-field{background-size:25% 25%;aspect-ratio:1;max-height:550px}.cell-name{position:absolute;font-size:12px;color:#78869c;pointer-events:none}.pixel-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;background:#171e30;padding:12px;border-radius:14px;width:min(100%,300px);aspect-ratio:1}.pixel-grid button,.pixel-grid span{border:0;padding:0;min-height:0;min-width:0;background:#303d55;border-radius:3px;aspect-ratio:1}.pixel-grid .on{background:#c8f24a;box-shadow:0 0 6px #c8f24a55}.pixel-preview{width:140px;margin:12px auto}.display-panel{background:#171e30;color:#fff;border-radius:16px;text-align:center;padding:18px;margin:20px 0}.display-panel strong{display:block;font-size:40px;color:#c8f24a}.report-question{display:block;margin:20px 0}.report-question textarea,textarea{display:block;box-sizing:border-box;width:100%;min-height:90px;border:1px solid var(--line);border-radius:10px;padding:12px;font:inherit;margin-top:8px}.profile-fields{display:flex;gap:12px;margin:16px 0}.profile-fields input{display:block;width:100%;box-sizing:border-box}.prediction-row{gap:16px;padding:10px 0}.prediction-row label{font-size:12px;font-weight:600}.prediction-row select{display:block;padding:7px;margin-top:4px}.prediction-details{padding:10px 0;border-bottom:1px solid var(--line)}pre{white-space:pre-wrap;line-height:1.7;font-size:13px;background:#f2f4f9;padding:16px;border-radius:10px}.editing-program #blockly-slot{height:calc(100dvh - 365px);min-height:400px}.editing-program #blockly-workspace{height:100%}.lead{font-size:20px;line-height:1.6}.check input[type=number]{max-width:95px}.card{min-width:0}@media(max-width:700px){.profile-fields{flex-direction:column}.prediction-row{flex-wrap:wrap}}
