:root{color-scheme:light;--blue:#2289f7;--deep:#172c46;--muted:#74859b;--line:#e1e9f1;--bg:#f7f9fd;--shadow:0 12px 35px #1b365008}*{box-sizing:border-box}html{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);color:var(--deep)}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.44;cursor:not-allowed}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #77b7fb;outline-offset:2px}h1,h2,h3,p{margin:0}h2{font-size:16px;letter-spacing:-.5px}h3{font-size:14px}.app-shell{max-width:1900px;margin:0 auto}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);padding:0 32px;gap:16px}.brand{text-decoration:none;color:#20354c;font-size:19px;font-weight:760;letter-spacing:-.8px;display:flex;align-items:center;gap:9px;white-space:nowrap}.brand-symbol{background:#57bafc;color:#fff;border-radius:11px;width:31px;height:31px;display:grid;place-items:center;font-size:19px}.brand-divider{height:20px;width:1px;background:#d7e3ef;margin:0 3px}.brand-sub{font-size:12px;font-weight:550;color:#91a1b5;letter-spacing:0}.top-actions{display:flex;align-items:center;gap:9px}.local-label{font-size:12px;color:#22a57c;background:#ecfaf5;border-radius:20px;padding:8px 12px;margin-right:10px}.button{border:1px solid #d9e4ef;border-radius:11px;padding:10px 15px;font-size:12px;font-weight:680;white-space:nowrap;background:#fff;color:#34455e;min-height:38px}.button:hover{background:#f0f6fd}.button.primary{background:#258ef5;border-color:#258ef5;color:#fff;box-shadow:0 5px 15px #278ff524}.button.primary:hover{background:#0a77e4}.button.success{background:#15a779;border-color:#15a779;color:#fff}.button.secondary{background:#e9f5ff;border-color:#bfe2ff;color:#1978c6}.button.subtle{background:#f6f9fd;border-color:#edf1f6}.button.ghost{background:#fff}.button.tiny{padding:6px 10px;min-height:31px}.button.full{width:100%}.titlebar{padding:31px 34px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px}.eyebrow{font-size:10px;letter-spacing:1.65px;font-weight:790;color:#2b9ff5}.titlebar h1{font-size:32px;letter-spacing:-1.45px;font-weight:790;line-height:1.4}.titlebar h1 span{color:#329cf0}.titlebar p{font-size:13px;color:#8c9aad;margin-top:5px}.title-right{display:flex;gap:16px;align-items:center}#saveStatus{font-size:11px;color:#7d8da1}.studio-grid{margin:0 22px;display:grid;grid-template-columns:256px minmax(0,1fr) 290px;gap:14px;align-items:stretch;min-height:775px}.panel,.workspace{border:1px solid var(--line);background:#fff;border-radius:17px;box-shadow:var(--shadow);min-width:0;overflow:hidden}.panel{padding:19px;display:flex;flex-direction:column}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:19px}.panel-heading h2{margin-top:5px}.panel-count{background:#eef5fc;color:#7890a5;border-radius:7px;padding:6px 9px;font-size:10px;font-weight:750}.search-wrap{display:flex;align-items:center;gap:10px;border:1px solid #e7edf4;padding:0 12px;border-radius:10px;height:41px;margin-bottom:20px;color:#7a8ca4}.search-wrap input{border:0;outline:0;width:100%;font-size:12px;min-width:0}.component-library{overflow:auto;max-height:580px;scrollbar-width:thin;flex:1}.group-label{font-size:10px;color:#9aacbf;font-weight:750;letter-spacing:1.2px;margin:18px 0 9px}.component-item{width:100%;border:1px solid transparent;background:#fff;border-radius:10px;display:flex;align-items:center;gap:12px;padding:10px;text-align:left;color:#344458}.component-item:hover{border-color:#c8e6ff;background:#f3faff}.component-icon{height:35px;width:36px;border-radius:10px;display:grid;place-items:center;font-size:11px;font-weight:800;color:#267acc;background:#eaf6ff;flex:none}.component-item.gate .component-icon{background:#edf1ff;color:#6573d6}.component-item.memory .component-icon{background:#fff3e8;color:#d7813f}.component-item.out .component-icon{background:#eaf9f3;color:#27a27b}.component-item strong{font-size:12px;font-weight:680}.component-item small{font-size:10px;color:#9eafbe;display:block;margin-top:3px}.side-help{background:#f3f9ff;border:1px solid #e3effc;padding:14px;border-radius:13px;margin-top:18px}.side-help strong{font-size:12px}.side-help p{font-size:11px;color:#8092a6;margin:7px 0 10px;line-height:1.6}.library-foot{padding-top:16px;color:#a2afbd;font-size:10px;text-align:center}.workspace{display:flex;flex-direction:column;height:100%;min-height:775px}.workspace-top{height:61px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 15px}.project-name{display:flex;align-items:center;gap:9px;min-width:0;flex:1}.project-name input{font-weight:740;border:1px solid transparent;background:0 0;border-radius:6px;min-width:110px;width:210px;font-size:13px;color:#21374f;padding:7px}.project-name input:focus{border-color:#b3d9f9;outline:0}.dot-green{width:8px;height:8px;border-radius:50%;background:#18bb8c;flex:none}.health-note{font-size:10px;color:#8ba0b2;white-space:nowrap}.workspace-actions{display:flex;align-items:center;gap:3px}.icon-button{border:0;background:0 0;border-radius:8px;color:#8291a5;width:33px;height:33px;display:grid;place-items:center;font-size:20px}.icon-button:hover{background:#eff5fb;color:#287cc4}.mini-divider{height:20px;width:1px;background:#e1e8f0;margin:0 8px}.zoom-value{font-size:11px;font-weight:740;color:#65758a;min-width:38px;text-align:center}.canvas-wrap{position:relative;flex:1 1 auto;min-height:0;overflow:auto;background:#f7fafd;scrollbar-width:thin}.canvas-content{width:2200px;height:1400px;transform-origin:top left}#schematic{display:block;touch-action:none}.canvas-label{position:sticky;bottom:10px;left:12px;background:#ffffffee;width:max-content;font-size:9px;font-weight:800;letter-spacing:1.2px;color:#9aadbf;border:1px solid #e8eef5;padding:8px 12px;border-radius:8px;pointer-events:none}.canvas-label span{font-weight:550;letter-spacing:0}.empty-hint{position:sticky;left:40%;top:40%;font-size:16px;color:#90a1b4}.bottom-dock{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:12px;border-top:1px solid #e7edf4;min-height:69px}.dock-left,.dock-right{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.count{font-size:10px;color:#94a3b6;padding:0 5px}.inspector-dot{color:#71b3ee}.inspector-content{min-height:145px}.inspector-content>p{font-size:12px;color:#91a4b6;line-height:1.65}.inspector label{font-size:10px;font-weight:670;color:#72849c;display:block;margin:11px 0}.inspector input,.inspector select{width:100%;background:#f9fbfe;border:1px solid #e3ebf3;border-radius:9px;padding:10px;font-size:12px;color:#293d55;margin-top:7px;min-width:0}.inspector input[type=checkbox]{width:auto}.inspector .small-note{font-size:10px;color:#94a5b7;line-height:1.65;margin:10px 0}.section-line{height:1px;background:var(--line);margin:20px 0}.section-title{display:flex;align-items:center;justify-content:space-between}.section-title span{font-size:10px;color:#99a7b7}.clock-card{border:1px solid #e3edf6;background:#f7fbff;padding:12px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;margin-top:15px}.clock-card strong{display:block;font-size:25px;margin-top:4px;color:#268be9}.mini-button-row{display:flex;gap:7px;margin-top:10px}.mini-button-row .button{flex:1}.inspector-state{background:#eef7fd;padding:10px;border-radius:8px;font-size:12px;line-height:1.7;margin:8px 0}.inspector-row{display:flex;gap:7px;flex-wrap:wrap}.inspector-row button{flex:1}.selection-note{font-size:11px;color:#8798ab;margin:12px 0}.lower-panel{margin:15px 22px 0;background:#fff;border:1px solid var(--line);border-radius:17px;padding:23px 28px;box-shadow:var(--shadow)}.lower-head{display:flex;justify-content:space-between;align-items:center;gap:18px}.lower-head h2{margin:5px 0}.lower-head p{font-size:12px;color:#96a6b7;margin-top:4px}.lower-actions{display:flex;gap:10px;align-items:center}.waveform{min-height:180px;overflow:auto;margin-top:20px;border-radius:10px;border:1px solid #ebf0f6;background:#fbfcff}.waveform svg{display:block;width:100%;min-width:580px;height:auto}.waveform-placeholder{padding:65px 20px;text-align:center;font-size:12px;color:#a3b2c3}.issues{font-size:11px;color:#788da3;line-height:1.7;margin-top:11px}.issue-warning{color:#b97a20;background:#fff9e8;padding:8px 10px;border-radius:8px;margin-top:5px}.learning{margin:17px 22px;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:31px 40px;border-radius:18px;background:linear-gradient(112deg,#eaf4ff,#f5fbff 65%,#e1f4ff)}.learning h2{font-size:22px;letter-spacing:-.8px;margin:8px 0}.learning p{font-size:12px;max-width:580px;color:#7a90a5;line-height:1.7}.learning-stats{display:flex;gap:30px}.learning-stats div{display:flex;flex-direction:column;gap:5px}.learning-stats strong{font-size:20px;color:#278dda}.learning-stats span{font-size:10px;color:#8ba0b6}.footer{text-align:center;font-size:11px;color:#9aabba;padding:18px 10px 32px}dialog{width:min(720px,calc(100% - 30px));border:1px solid #d7e3f0;border-radius:19px;padding:25px;box-shadow:0 25px 70px #10284533;color:var(--deep);max-height:85vh;overflow:auto}dialog::backdrop{background:#11294277;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.modal-head h2{font-size:20px}.modal-body{font-size:13px;color:#576b7f;line-height:1.7}.modal-buttons{display:flex;flex-wrap:wrap;gap:8px;padding-top:15px}.data-scroll{overflow:auto;max-height:410px}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table td,.data-table th{border-bottom:1px solid #e7edf4;padding:9px 12px;text-align:center;white-space:nowrap}.data-table th{position:sticky;top:0;background:#f3f8ff}.toast{position:fixed;right:21px;bottom:22px;z-index:100;background:#172e48;color:#fff;max-width:400px;padding:13px 20px;border-radius:12px;font-size:12px;box-shadow:0 12px 40px #0002;display:none}.node-card{cursor:grab}.node-card:focus-visible rect{stroke:#0d8ff5;stroke-width:4}.port{cursor:crosshair}.port:hover{stroke:#258ef5;stroke-width:4}.wire{cursor:pointer}.wire:hover{stroke-width:8}.node-label{pointer-events:none}.node-card.selected .card-frame{stroke:#2193fc;stroke-width:3}.signal-hi{fill:#1db38b}.signal-lo{fill:#8798ad}.signal-x{fill:#efae46}@media(max-width:1330px){.studio-grid{grid-template-columns:210px minmax(0,1fr) 256px}.panel{padding:14px}.titlebar{padding-left:24px}.topbar{padding:0 20px}.learning-stats{gap:15px}}@media(max-width:1010px){.studio-grid{grid-template-columns:215px minmax(0,1fr)}.inspector{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.inspector .inspector-content,.inspector .panel-heading{grid-column:1}.inspector .section-line{display:none}.inspector .section-title{margin-top:12px}.inspector .clock-card{max-width:350px}.library .component-library{max-height:530px}.local-label{display:none}}@media(max-width:700px){.topbar{height:auto;min-height:65px;padding:12px;flex-wrap:wrap}.top-actions{width:100%;justify-content:flex-end}.titlebar{padding:20px 15px;flex-wrap:wrap}.titlebar h1{font-size:27px}.studio-grid{margin:0 10px;display:flex;flex-direction:column}.library{order:2}.workspace{order:1;min-height:560px;height:580px}.inspector{order:3;display:block}.component-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;max-height:280px}.group-label{grid-column:1/-1}.canvas-wrap{min-height:0;max-height:none}.workspace-top{height:auto;min-height:70px;flex-wrap:wrap}.workspace-actions{padding-bottom:8px}.health-note{display:none}.bottom-dock{align-items:flex-start}.lower-panel{margin:12px 10px;padding:16px}.lower-head{flex-wrap:wrap}.learning{margin:12px 10px;padding:24px;flex-direction:column;align-items:flex-start}.learning-stats{flex-wrap:wrap}.brand-divider,.brand-sub{display:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.speed-label{flex:1;display:flex!important;align-items:center;gap:5px;font-size:10px!important;margin:0!important}.speed-label select{flex:1;margin:0!important;padding:6px!important}