@charset "UTF-8";
:root{--ink:#263f33;--muted:#7f8b80;--green:#245b49;--green-hover:#194b3b;--green-soft:#eaf0e7;--lime:#d9e7b6;--page:#f5f6f2;--line:#e4e8df;--white:#fff;--rust:#b36a59;--danger:#a55344;--radius:12px;--shadow:0 12px 48px #2c463414;--font:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif;font-family:var(--font);color:var(--ink);font-size:14px;line-height:1.5;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--page)}button,input,textarea,select{font:inherit}button{cursor:pointer}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{border:0;color:inherit;background:transparent}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed;opacity:.35}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #91b399;outline-offset:3px}button{transition:background .16s ease,color .16s ease,box-shadow .16s ease}h1,h2,h3,p{margin:0;text-wrap:pretty}svg{display:block}p{overflow-wrap:anywhere}[hidden]{display:none!important}.icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.app-header{height:86px;display:flex;align-items:center;gap:52px;padding:0 36px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand>svg{width:42px;height:42px}.brand strong{font-size:20px;letter-spacing:1px;display:flex;align-items:center;gap:7px;font-weight:650}.brand small{font-size:10px;letter-spacing:1.6px;color:var(--muted);display:block;margin-top:2px}.beta{font-family:Georgia,serif;font-size:8px;letter-spacing:.5px;border:1px solid #d6dece;border-radius:4px;padding:1px 4px;color:#829372;font-weight:400}.main-nav{display:flex;align-items:stretch;align-self:stretch;gap:28px}.main-nav button{color:var(--muted);font-size:13px;position:relative;padding:0 2px}.main-nav button:hover{color:var(--green)}.main-nav .nav-active{color:var(--green);font-weight:600}.main-nav .nav-active:after{position:absolute;content:"";height:3px;background:var(--green);bottom:0;left:8px;right:8px;border-radius:3px 3px 0 0}.main-nav button span{display:inline-flex;align-items:center;justify-content:center;background:var(--page);border:1px solid var(--line);font-size:10px;min-width:17px;height:17px;margin-left:5px;border-radius:4px}.mode-control{margin-left:auto;display:flex;gap:3px;padding:4px;background:var(--page);border:1px solid var(--line);border-radius:9px;flex-shrink:0}.mode-control button{font-size:12px;padding:7px 15px;border-radius:6px;color:var(--muted)}.mode-control button[aria-pressed=true]{background:var(--green);color:#fff;box-shadow:0 2px 4px #1d463020}main{padding:26px 28px 0;max-width:2000px;margin:auto}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px}.eyebrow{font-size:10px;color:#85917e;letter-spacing:1.5px;display:flex;align-items:center;gap:7px}.live-dot{width:5px;height:5px;border-radius:50%;background:#80a16a;display:inline-block;flex-shrink:0}h1{font-size:26px;font-weight:600;letter-spacing:1px;margin-top:7px}h1>span{font-size:11px;letter-spacing:.2px;font-weight:400;color:#8b968a;padding-left:18px}.heading-actions{display:flex;align-items:center;gap:9px}.button{height:38px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;border-radius:7px;white-space:nowrap}.button.primary{background:var(--green);border:1px solid var(--green);color:#fff;box-shadow:0 2px 3px #193e2d0a}.button.primary:hover{background:var(--green-hover)}.button.ghost{background:#fff;border:1px solid #dde3d8;color:#61715f}.button.ghost:hover{background:var(--green-soft)}.button.quiet{background:transparent;color:#697a64}.button.quiet:hover{background:var(--green-soft)}.button.small{height:32px;padding:0 9px;font-size:11px}.workbench{display:grid;grid-template-columns:196px minmax(0,1fr) 278px;gap:16px;min-height:600px;height:calc(100dvh - 247px);max-height:1100px}.component-panel,.drawing-panel,.question-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);min-width:0}.component-panel{padding:20px 14px 15px;display:flex;flex-direction:column;overflow:auto}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:6px}.panel-title h2{font-size:13px;font-weight:600;letter-spacing:.5px}.panel-title>span{font-family:Georgia,serif;font-size:11px;color:#94a18b;background:var(--page);border:1px solid var(--line);border-radius:4px;padding:1px 5px}.panel-description{color:#98a18f;font-size:10px;letter-spacing:.2px;margin-top:7px}.palette{display:flex;flex-direction:column;gap:5px;margin-top:18px}.palette-item{display:flex;align-items:center;padding:5px 7px;gap:9px;border-radius:8px;text-align:left;border:1px solid transparent;min-height:66px;position:relative;width:100%}.palette-item:hover{border-color:#dce6d3;background:#f7f9f3}.palette-item:active{background:#edf3e8}.palette-item .component-mini{width:54px;height:52px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#f3f5ee;border-radius:7px}.component-mini svg{width:48px;height:48px}.palette-item .component-info{display:flex;flex-direction:column;gap:4px;min-width:0}.palette-item strong{font-size:12px;font-weight:550;white-space:nowrap}.palette-item small{font-size:8px;color:#98a18e;letter-spacing:-.2px;white-space:nowrap}.palette-plus{position:absolute;right:5px;top:8px;opacity:0;font-size:13px;color:#7b956a}.palette-item:hover .palette-plus{opacity:1}.palette-foot{display:flex;gap:7px;border-top:1px solid var(--line);padding-top:16px;margin-top:auto;color:#9ba48e;font-size:9px;line-height:1.9}.palette-foot .icon{width:13px;margin-top:1px}.drawing-panel{display:flex;flex-direction:column;overflow:hidden;box-shadow:0 3px 9px #2d432705}.canvas-toolbar{min-height:60px;height:60px;border-bottom:1px solid #e9ede4;display:flex;align-items:center;justify-content:space-between;padding:0 16px}.view-control{display:flex;padding:3px;background:#f3f5ee;border:1px solid #e7eade;border-radius:7px;gap:2px}.view-control button{display:flex;align-items:center;gap:5px;padding:5px 10px;font-size:11px;border-radius:4px;color:#8d9785}.view-control button[aria-pressed=true]{color:var(--green);background:#fff;box-shadow:0 1px 3px #42533b14}.view-control .icon{width:14px;height:14px}.canvas-wrap{position:relative;flex:1;min-height:0;overflow:hidden;background-color:#fdfefa;background-image:radial-gradient(circle,#dbe2d2 .75px,transparent .85px);background-size:20px 20px}.canvas-caption{position:absolute;top:19px;left:22px;z-index:1;display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:.5px;color:#95a088;pointer-events:none}.canvas-caption .live-dot{width:4px;height:4px}#circuit-canvas{width:100%;height:100%;touch-action:none;user-select:none;overflow:hidden;position:relative;min-height:400px}.canvas-component{cursor:grab}.component-hit{fill:transparent;stroke:none;pointer-events:all}.canvas-component:active{cursor:grabbing}.component-selection{fill:#dfead8;fill-opacity:.2;stroke:#87a171;stroke-width:1;stroke-dasharray:5 4;pointer-events:none}.component-hover{fill:transparent;stroke:transparent;stroke-width:1;pointer-events:none}.canvas-component:hover .component-hover{stroke:#b3c4a2;stroke-dasharray:4 5;fill:#edf2e4;fill-opacity:.25}.port-target{cursor:crosshair;outline:none}.port-hit{fill:transparent;stroke:none}.port-ring{fill:transparent;stroke:transparent;stroke-width:2;pointer-events:none}.port-target:hover .port-ring,.port-target:focus-visible .port-ring{fill:#b5d49d33;stroke:#8da77a}.port-target.snapped .port-ring{fill:#d4e8b988;stroke:#548444;stroke-width:2.5}.port-target.pending .port-ring{stroke:#245b49;fill:#cde2b944}.port-center{fill:#dae3c9;stroke:#6b7d62;stroke-width:1;pointer-events:none}.wire-path{fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.wire-hit{fill:none;stroke:transparent;stroke-width:17;cursor:pointer;pointer-events:stroke}.wire-hit:hover+.wire-path{stroke-width:4.5}.wire-selection{fill:none;stroke:#b6ce9a;stroke-width:10;opacity:.4;pointer-events:none}.wire-bridge{fill:none;stroke-linecap:round;pointer-events:none}.wire-preview{stroke-dasharray:7 5;opacity:.9;pointer-events:none}.snap-marker{fill:#b9d59b66;stroke:#698e51;stroke-width:1.5;pointer-events:none}.junction-dot{pointer-events:none;stroke:#fdfefa;stroke-width:1}.canvas-hint{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);font-size:9px;color:#97a08d;background:#ffffffc7;border:1px solid #ebeee3;padding:6px 10px;border-radius:5px;white-space:nowrap;pointer-events:none;display:flex;align-items:center;gap:6px}.hint-key{border:1px solid #dce4d2;width:17px;height:16px;display:inline-flex;align-items:center;justify-content:center;border-radius:3px;color:#7d956a}.canvas-bottom{min-height:48px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:0 13px;gap:8px}.edit-tools{display:flex;align-items:center;gap:3px}.icon-button{height:30px;width:30px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;color:#7d8a72}.icon-button:hover{background:#eff3e9;color:var(--green)}.icon-button .icon{width:16px;height:16px}.tool-divider{height:16px;width:1px;background:#e5e9df;margin:0 5px}.text-button{font-size:10px;color:#8b9781;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px;border-radius:4px;white-space:nowrap}.text-button:hover{color:var(--green);background:#f4f7ef}.text-button .icon{width:12px;height:12px}.canvas-options{display:flex;gap:12px}.check-label{display:flex;align-items:center;gap:5px;cursor:pointer;font-size:10px;color:#849278}.check-label input{accent-color:var(--green);width:12px;height:12px;cursor:pointer;margin:0}.question-panel{padding:20px 18px;overflow:auto;display:flex;flex-direction:column}.question-panel .panel-title{padding-bottom:18px;border-bottom:1px solid var(--line)}.question-body{padding-top:20px;flex:1}.question-number{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.question-number .source-label{font-size:9px;letter-spacing:1px;color:#91a080;display:flex;align-items:center;gap:6px}.difficulty{padding:2px 7px;border-radius:4px;background:#f5f1e5;border:1px solid #ece6d4;color:#a59365;font-size:9px;white-space:nowrap}.difficulty.basic{background:#eef3e6;color:#8c9e69;border-color:#e2e9d6}.question-body h3{font-size:19px;line-height:1.55;font-weight:550;letter-spacing:.3px;margin-bottom:14px}.question-prompt{font-size:11px;color:#7c8874;line-height:1.95;white-space:pre-line;letter-spacing:.2px}.question-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:17px}.tag{font-size:9px;color:#879675;border:1px solid #e5eadb;background:#fafbf7;padding:3px 6px;border-radius:4px}.question-rule{height:1px;background:var(--line);margin:25px 0 20px}.task-label{font-size:10px;color:#a0aa93;letter-spacing:1px;margin-bottom:12px}.feature-list{list-style:none;margin:0 0 22px;padding:0}.feature-list li{font-size:10px;color:#879479;display:flex;align-items:flex-start;gap:7px;margin-top:11px}.feature-list .icon{width:14px;height:14px;color:#8da472;margin-top:1px}.full-width{width:100%}.question-actions{display:flex;flex-direction:column;gap:9px}.question-actions .button{font-size:11px;height:37px}.question-actions .text-button{margin-top:2px;color:#879775}.practice-note{font-size:9px;text-align:center;line-height:1.8;color:#a4ac9a;margin-top:12px}.check-result{border:1px solid #e0e8d5;border-radius:8px;padding:12px;background:#f6f9ee;font-size:11px;line-height:1.8;margin-bottom:14px;color:#6e885d}.check-result.incorrect{border-color:#ecdccc;background:#fbf6ee;color:#a08961}.check-result strong{display:flex;gap:5px;align-items:center;font-weight:600;margin-bottom:4px;font-size:12px}.check-result p{font-size:10px}.inspector:empty{display:none}.inspector{border-top:1px solid var(--line);padding-top:17px;margin-top:22px}.inspector-title{display:flex;align-items:center;justify-content:space-between;color:#6c7d61;font-size:11px;font-weight:550}.inspector .field{font-size:10px;margin-top:13px;gap:6px}.inspector .field input,.inspector .field select{padding:7px 9px;font-size:11px}.inspector-note{font-size:9px;color:#9ba88f;line-height:1.8;margin-top:10px}.inspector-actions{display:flex;justify-content:space-between;gap:5px;margin-top:12px}.danger-text{color:var(--danger)}.color-controls{display:flex;gap:8px;align-items:center;margin-top:12px}.color-swatch{width:20px;height:20px;border:3px solid #fff;box-shadow:0 0 0 1px #e1e7d8;border-radius:50%}.color-swatch.selected{box-shadow:0 0 0 1px #738566}.workspace-footer{min-height:45px;display:flex;align-items:center;gap:20px;font-size:10px;color:#a1aa96}.document-status{display:flex;align-items:center;gap:7px}.document-status .live-dot{width:4px;height:4px}.footer-hint{margin-left:auto;display:flex;gap:12px;align-items:center;font-size:9px;color:#a6af9e}kbd{font-family:var(--font);font-size:9px;border:1px solid #e0e6d6;border-radius:3px;padding:0 4px}.dropdown{position:relative}.dropdown-menu{position:absolute;right:0;top:44px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px;z-index:10;padding:6px;min-width:185px}.dropdown-menu button{width:100%;text-align:left;padding:9px;font-size:11px;border-radius:4px}.dropdown-menu button:hover{background:var(--green-soft)}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:1000;max-width:min(90vw,580px);padding:12px 20px;border-radius:9px;background:#294d3e;color:#f4f7eb;box-shadow:0 6px 24px #1d392730;font-size:12px;display:flex;align-items:center;gap:12px}.toast.error{background:#805a45}.toast button{color:#d9e7b6;text-decoration:underline;font-size:11px;white-space:nowrap}.canvas-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:none;color:#9ba98a;gap:13px}.canvas-empty>.icon{width:52px;height:52px;stroke-width:.8}.canvas-empty h3{font-size:18px;font-weight:400}.canvas-empty p{font-size:11px}.route-alert{position:absolute;bottom:53px;left:16px;right:16px;background:#f8efdf;border:1px solid #e8d5b6;color:#987e50;border-radius:5px;font-size:10px;padding:7px 10px}.reference-banner{position:absolute;top:45px;left:50%;transform:translateX(-50%);z-index:2;background:#edf3de;border:1px solid #d9e4c0;border-radius:6px;font-size:10px;display:flex;align-items:center;gap:18px;padding:7px 10px;color:#71905c;white-space:nowrap}.reference-banner button{display:flex;align-items:center;gap:4px;color:var(--green)}.reference-banner .icon{width:12px;height:12px}
dialog{border:1px solid #e1e7d8;border-radius:18px;background:#fcfdf9;color:var(--ink);box-shadow:0 24px 100px #1b35243b;padding:28px;max-height:90dvh;overflow:auto}dialog::backdrop{background:#233c305e;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:25px}.dialog-heading h2{font-size:25px;letter-spacing:.5px;font-weight:500;margin-top:8px;line-height:1.4}.dialog-heading p{color:#97a28b;font-size:11px;margin-top:10px}.dialog-heading .icon-button{flex-shrink:0}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:25px;border-top:1px solid var(--line);padding-top:19px}.dialog-footer>span{font-size:10px;color:#9da78e;margin-right:auto}.library-dialog{width:1000px}.library-tools{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:10px}.search-field{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);padding:8px 12px;border-radius:7px;width:310px}.search-field .icon{color:#a0aa91;width:15px;height:15px}.search-field input{border:0;outline:0;min-width:0;width:100%;color:#536a49;font-size:11px}.search-field input::placeholder{color:#adb69e}#question-total{font-size:10px;color:#9ca88b}.question-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.question-card{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;display:flex;flex-direction:column}.question-card-preview{height:150px;background:#f4f7ed;background-image:radial-gradient(#d7e1c9 .65px,transparent .8px);background-size:12px 12px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--line);padding:6px}.question-card-preview svg{width:100%;height:100%}.question-card-content{padding:17px;display:flex;flex-direction:column;flex:1}.question-card-content .question-number{margin-bottom:10px}.question-card h3{font-size:14px;line-height:1.7;font-weight:550;margin-bottom:8px}.question-card p{font-size:10px;color:#96a087;line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.question-card-actions{display:flex;gap:5px;margin-top:auto;padding-top:16px}.question-card-actions .button{font-size:10px;height:30px;flex:1}.question-card-actions .icon-button{flex-shrink:0}.library-empty{padding:60px 20px;text-align:center;grid-column:1/-1;color:#98a487;font-size:12px}.save-dialog{width:620px}.field{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#7a8b6b;margin-top:18px}.field input,.field textarea,.field select{border:1px solid #dfe6d4;background:#fff;border-radius:7px;padding:10px 12px;color:#415e36;font-size:12px;width:100%}.field input::placeholder,.field textarea::placeholder{color:#b0b99f}.field textarea{resize:vertical;line-height:1.9}.form-row{display:flex;gap:15px}.form-row .field:first-child{width:130px;flex-shrink:0}.form-row .field:last-child{flex:1}.reference-check{margin-top:22px;font-size:11px}.field-note{font-size:10px;line-height:1.8;color:#a0aa91;margin-top:8px}#update-question-field{margin-top:14px;font-size:11px}.form-error{font-size:11px;color:var(--danger);margin-top:12px}.help-dialog{width:660px}.help-steps{padding:0;margin:30px 0;list-style:none;display:flex;flex-direction:column;gap:25px}.help-steps li{display:flex;gap:18px}.help-steps li>span{font-size:22px;color:#b6c4a1;font-family:Georgia,serif;flex-shrink:0;line-height:1.3}.help-steps h3{font-size:14px;font-weight:550;margin-bottom:6px}.help-steps p{color:#849376;font-size:11px;line-height:1.9}.help-note{display:flex;gap:10px;padding:15px;border:1px solid #e2e9d6;background:#f2f6e9;border-radius:9px;color:#8e9d7c}.help-note .icon{width:16px;height:16px;margin-top:2px}.help-note p{font-size:10px;line-height:1.9}
@media(min-width:1700px){.workbench{grid-template-columns:218px minmax(0,1fr) 310px;gap:20px}.component-panel{padding:22px 18px}.palette-item{min-height:74px}.palette-item .component-mini{width:62px;height:57px}.component-mini svg{width:55px;height:55px}.palette-item strong{font-size:13px}.palette-item small{font-size:9px}.question-panel{padding:23px}.question-prompt{font-size:12px}.question-body h3{font-size:21px}.question-actions .button{height:40px}.feature-list li{font-size:11px}.canvas-toolbar{height:64px;min-height:64px}}
@media(max-width:1240px){.app-header{padding:0 24px;gap:25px}.main-nav{gap:17px}main{padding:22px 18px 0}.workbench{grid-template-columns:174px minmax(0,1fr) 240px;gap:12px}.component-panel{padding:18px 9px}.palette-item{gap:7px;padding-left:4px;padding-right:4px}.palette-item .component-mini{width:48px}.palette-item small{font-size:7px}.question-panel{padding:18px 14px}.canvas-toolbar{padding:0 10px}.canvas-options{gap:7px}.check-label{font-size:9px}.edit-tools .text-button{font-size:9px}.view-control button{padding:5px 7px}.footer-hint{display:none}.workspace-footer>.text-button{margin-left:auto}h1>span{display:none}.question-body h3{font-size:17px}.brand small{letter-spacing:1px}}
@media(max-width:1050px){.app-header{height:76px}.main-nav{gap:14px}.main-nav button{font-size:11px}.brand strong{font-size:18px}.brand>svg{width:36px;height:36px}.brand small{font-size:8px}.mode-control button{padding:6px 9px;font-size:10px}.workbench{grid-template-columns:150px minmax(0,1fr) 220px;gap:10px;height:calc(100dvh - 237px)}.palette-item{flex-direction:column;gap:3px;text-align:center;min-height:74px}.palette-item .component-info{gap:1px}.palette-item .component-mini{height:38px;width:78px}.component-mini svg{height:37px;width:54px}.palette-item strong{font-size:10px}.palette-item small{display:none}.palette{gap:1px;margin-top:12px}.palette-foot{font-size:8px}.canvas-options{display:none}.canvas-caption{font-size:8px;left:14px}.canvas-hint{font-size:7px;padding:5px;gap:4px}.question-panel{padding:18px 12px}.question-prompt{font-size:10px}.question-actions .button{font-size:10px}.question-tags{gap:4px}.tag{font-size:8px}.workspace-heading{margin-bottom:18px}h1{font-size:23px}}
@media(max-width:850px){.app-header{height:auto;min-height:72px;padding:15px 18px;flex-wrap:wrap;gap:14px}.brand{margin-right:auto}.main-nav{order:3;width:100%;height:30px;gap:25px}.main-nav button{font-size:12px}.mode-control{margin-left:0}.workspace-heading{align-items:flex-start}.heading-actions{gap:5px}.heading-actions .button{padding:0 9px;font-size:10px;height:33px}.heading-actions .button .icon{width:13px}.workbench{grid-template-columns:115px minmax(0,1fr);height:auto;min-height:0;gap:12px}.component-panel{grid-column:1;grid-row:1;padding:16px 8px;max-height:670px}.drawing-panel{grid-column:2;grid-row:1;height:670px}.question-panel{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:20px;padding:20px}.question-panel>.panel-title{grid-column:1/-1;padding-bottom:12px}.question-body{padding-top:0;display:grid;grid-template-columns:1fr 1fr;column-gap:30px}.question-number{grid-column:1;margin-bottom:9px}.question-body h3{grid-column:1;font-size:19px}.question-prompt{grid-column:1;font-size:12px}.question-tags{grid-column:1;margin-top:12px}.question-rule,.feature-list,.task-label{display:none}.question-actions{grid-column:2;grid-row:1/6;align-self:center}.question-actions .button{font-size:12px;height:38px}.practice-note{font-size:10px}.check-result{grid-column:1/-1}.question-panel:has(.inspector:empty){display:block}.question-panel:has(.inspector:empty) .panel-title{margin-bottom:16px}.inspector{margin:0;padding-top:0;padding-left:20px;border-top:0;border-left:1px solid var(--line)}.panel-description{font-size:9px}.canvas-options{display:flex}.workspace-footer{font-size:9px;gap:12px}.canvas-hint{font-size:9px}.palette-foot{display:none}.question-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-dialog{width:calc(100vw - 32px)}.dialog-heading h2{font-size:22px}}
@media(max-width:560px){main{padding:17px 10px 0}.app-header{padding:13px}.brand{gap:8px}.brand strong{font-size:17px}.brand small{font-size:8px}.brand>svg{width:34px;height:34px}.mode-control{padding:3px}.mode-control button{font-size:10px;padding:7px 8px}.main-nav{gap:22px;margin-top:2px;height:26px}.workspace-heading{gap:12px;flex-wrap:wrap;margin-bottom:14px}.eyebrow{font-size:8px}h1{font-size:23px;margin-top:4px}.heading-actions{width:100%;justify-content:flex-end}.heading-actions .button{font-size:11px;padding:0 10px}.workbench{display:flex;flex-direction:column;gap:12px}.component-panel{order:1;padding:12px;overflow:visible}.component-panel .panel-title{margin-bottom:9px}.panel-description{display:none}.palette{display:flex;flex-direction:row;overflow:auto;margin:0;gap:6px;padding:0 0 4px}.palette-item{min-width:76px;width:76px;padding:6px 5px;flex-shrink:0;min-height:74px;background:#f8faf3;border-color:#e6ebdd}.palette-item .component-mini{width:60px;height:42px;background:transparent}.palette-item strong{font-size:10px}.drawing-panel{order:2;height:530px;flex-shrink:0}.canvas-toolbar{min-height:52px;height:52px;padding:0 12px}.canvas-caption{font-size:8px;top:14px}.canvas-hint{font-size:8px;bottom:12px;max-width:95%;white-space:normal;width:max-content;line-height:1.6}.canvas-bottom{padding:0 9px}.canvas-options{gap:7px}.canvas-options .check-label{font-size:8px}.question-panel{order:3;display:block!important;padding:17px}.question-panel .panel-title{margin-bottom:15px}.question-body{display:block}.question-prompt{font-size:12px}.question-body h3{font-size:20px}.question-tags{margin-top:14px}.question-actions{margin-top:20px}.question-actions .button{font-size:12px}.inspector{border-left:0;border-top:1px solid var(--line);padding:16px 0 0;margin-top:20px}.workspace-footer{flex-wrap:wrap;gap:7px 14px;padding:10px 3px;min-height:50px}.workspace-footer .text-button{font-size:9px}.question-grid{grid-template-columns:1fr}.question-card-preview{height:160px}.library-dialog{width:calc(100vw - 20px)}dialog{padding:20px 17px;max-height:93dvh;border-radius:13px}.dialog-heading h2{font-size:20px}.dialog-heading p{font-size:10px;line-height:1.8}.dialog-heading{gap:7px}.dialog-footer{flex-wrap:wrap}.dialog-footer>span{width:100%;margin:0 0 5px}.library-tools{flex-wrap:wrap}.search-field{width:100%}.form-row{gap:10px}.form-row .field:first-child{width:90px}.help-steps{gap:21px}.help-steps li{gap:12px}.help-steps p{font-size:11px}.reference-banner{gap:8px;font-size:9px}.reference-banner button{font-size:9px}}
@media(min-width:851px) and (max-height:850px){.workbench{min-height:420px}#circuit-canvas{min-height:0}.component-panel{padding-top:14px}.palette{margin-top:12px;gap:2px}.palette-item{min-height:52px}.palette-item .component-mini{height:44px}.component-mini svg{height:42px}.palette-foot{display:none}.question-body{padding-top:16px}.question-rule,.task-label,.feature-list,.practice-note{display:none}.question-actions{margin-top:18px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
/* Draft tools form a separate, personal annotation layer. */
.draft-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:8px 16px;background:#f7f9f4;border-bottom:1px solid #e2e8dc;font-size:12px;color:#617366}
.draft-toolbar>span{margin-right:auto}.draft-toolbar button{border:1px solid transparent;background:transparent;padding:6px 8px;border-radius:7px;color:inherit;cursor:pointer;font:inherit}.draft-toolbar button[aria-pressed=true]{background:#e2ecdc;color:#245b49;border-color:#c4d5bd}.draft-tool-active{cursor:crosshair!important}.draft-tool-active *{cursor:crosshair!important}.canvas-extra-tools{display:flex;gap:6px}
@media(max-width:700px){.draft-toolbar{padding:6px 8px}.draft-toolbar>span{width:100%}.canvas-toolbar{flex-wrap:wrap;gap:8px}.canvas-extra-tools{margin-left:auto}}
.flow-status{padding:10px 16px;border-bottom:1px solid #d6e3d1;background:#eff5e9;color:#39604c;font-size:13px;line-height:1.6}.flow-status[data-status=short]{color:#9c3d2c;background:#fff1e9}.current-flow{stroke:#ce932f;stroke-width:4;stroke-dasharray:7 18;fill:none;stroke-linecap:round;animation:current-travel 1s linear infinite}@keyframes current-travel{to{stroke-dashoffset:-50}}@media(prefers-reduced-motion:reduce){.current-flow{animation:none}}
.canvas-zoom{display:flex;align-items:center;border:1px solid #e0e7d8;border-radius:8px;overflow:hidden}.canvas-zoom button{font-size:12px;color:#647a5e;min-width:26px;height:28px;padding:0 5px;cursor:pointer}.canvas-zoom button:hover{background:#edf4e6}#canvas-zoom-label{font-size:10px;min-width:38px}.canvas-extra-tools{align-items:center;flex-wrap:wrap}.canvas-toolbar{height:auto;min-height:58px;padding-top:8px;padding-bottom:8px;flex-shrink:0}.main-nav button{flex-shrink:0}#classroom-identity{max-width:110px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.draft-toolbar{flex-shrink:0}.flow-status{flex-shrink:0}
@media(max-width:850px){#circuit-canvas{min-height:0}.main-nav{overflow-x:auto;gap:18px;white-space:nowrap;flex-shrink:0}.main-nav::-webkit-scrollbar{height:2px}.canvas-toolbar{min-height:58px;height:auto;gap:5px}.canvas-bottom{flex-wrap:wrap;padding:6px 9px}.canvas-extra-tools{gap:3px}.canvas-extra-tools .button{padding:0 7px}.drawing-task-active .drawing-panel{height:580px;min-height:580px}}
