
:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263246;background:#f5f7fa;font-size:13px;font-synthesis:none;--blue:#3977d8;--line:#e7ebf0;--muted:#8b95a5;--left:244px;--right:270px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;background:none;border:0;color:inherit}button:disabled{opacity:.35;cursor:default}button,input,select,textarea{outline-offset:3px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #6e9ee8}button:hover{background:#f1f5fa}svg{flex-shrink:0;vertical-align:middle}a{color:var(--blue)}.app-shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.topbar{height:72px;flex-shrink:0;background:white;display:flex;align-items:center;padding:0 25px;gap:26px;border-bottom:1px solid var(--line);z-index:4}.brand{font-size:21px;font-weight:700;letter-spacing:-.7px;display:flex;align-items:center;gap:10px;padding:0}.brand-mark{width:36px;height:36px;flex-shrink:0;display:block;filter:drop-shadow(0 3px 4px #3977d822)}.brand-mark img{display:block;width:100%;height:100%}.brand em{font-style:normal;color:var(--blue)}.brand-label{display:flex;flex-direction:column;gap:3px}.brand-label small{font-size:9px;letter-spacing:1.8px;color:#95a0af;font-weight:500}.vertical-rule{width:1px;height:30px;background:var(--line)}.project-button{display:flex;gap:12px;align-items:center;text-align:left;padding:8px;border-radius:7px}.project-button strong{display:block;font-weight:600;font-size:13px}.project-button small{color:var(--muted);font-size:10px;display:block;margin-top:4px}.save-state{margin-left:auto;display:flex;align-items:center;gap:6px;color:#8a95a2;font-size:11px;white-space:nowrap}.save-state .dot{height:6px;width:6px;background:#5ca287;border-radius:50%}.top-actions{display:flex;align-items:center;gap:9px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border:1px solid #dfe5ec;border-radius:6px;background:white;font-size:12px;font-weight:500;white-space:nowrap}.btn:hover{background:#f6f8fb}.btn.primary{background:var(--blue);color:white;border-color:var(--blue);box-shadow:0 2px 3px #3977d81a}.btn.primary:hover{background:#2e66c1}.btn.small{padding:7px 10px;font-size:11px}.btn.danger{color:#b25757}.icon-btn{width:32px;height:32px;display:inline-grid;place-items:center;border-radius:5px}.badge{padding:3px 6px;background:#eef3fc;color:#5b7fb5;border:1px solid #dbe7fa;border-radius:4px;font-size:9px;letter-spacing:.4px;font-weight:600}.tabbar{height:52px;flex-shrink:0;background:white;display:flex;align-items:stretch;gap:5px;padding:0 23px;border-bottom:1px solid var(--line)}.tab{padding:0 17px;display:flex;align-items:center;gap:8px;color:#7c8797;font-size:12px;border-bottom:2px solid transparent;position:relative}.tab.active{border-bottom-color:var(--blue);color:var(--blue);font-weight:600}.tab.active:after{content:'';position:absolute;bottom:0;left:13px;right:13px;height:1px;background:var(--blue)}.tabbar .spacer{flex:1}.tabbar .help-button{align-self:center;color:#8c96a3;font-size:11px;display:flex;align-items:center;gap:6px}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:var(--left) minmax(0,1fr) var(--right)}.workspace.hide-left{grid-template-columns:0 minmax(0,1fr) var(--right)}.workspace.hide-right{grid-template-columns:var(--left) minmax(0,1fr) 0}.workspace.hide-left.hide-right{grid-template-columns:0 minmax(0,1fr) 0}.sidebar,.inspector{background:white;overflow:auto;min-width:0;position:relative}.sidebar{border-right:1px solid var(--line);display:flex;flex-direction:column}.inspector{border-left:1px solid var(--line)}.panel-title{height:53px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--line);font-weight:600;font-size:12px}.panel-title span{display:flex;align-items:center;gap:8px}.panel-title small{font-size:10px;font-weight:400;color:var(--muted)}.side-content{padding:16px}.searchbox{display:flex;align-items:center;border:1px solid #e3e8ef;border-radius:6px;padding:8px 10px;gap:8px;color:#a0a9b6;background:#fafbfd}.searchbox input{min-width:0;width:100%;background:none;border:0;outline:none;font-size:11px}.category-row{display:flex;margin:13px 0 12px;border-bottom:1px solid var(--line);gap:20px}.category-row button{font-size:11px;padding:4px 0 10px;color:#8a95a4}.category-row button.active{color:var(--blue);border-bottom:2px solid var(--blue)}.symbol-category{font-size:10px;color:#929ba7;letter-spacing:.5px;margin:17px 0 10px}.symbol-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.symbol-card{height:79px;border:1px solid #e7ebf0;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;gap:4px;color:#536073;background:white}.symbol-card>svg{width:31px;height:31px}.symbol-card>span{font-size:10px;text-align:center;line-height:1.2}.symbol-card.active{border-color:#8cb0ea;background:#f0f6ff;color:#2e6dc9;box-shadow:0 0 0 1px #dfeafb}.symbol-card .favorite{position:absolute;right:4px;top:3px;color:#bcc6d2;font-size:12px;padding:1px}.symbol-card .favorite.on{color:#d5a64f}.library-tip{font-size:10px;color:#9ca5b1;line-height:1.6;margin:13px 1px 0;display:flex;gap:6px}.circuits-nav{margin-top:15px;border-top:1px solid var(--line);padding:14px 16px}.side-label{display:flex;align-items:center;justify-content:space-between;font-weight:600;font-size:11px;margin-bottom:12px}.board-nav{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:500;margin-bottom:7px}.circuit-row{display:flex;align-items:center;gap:9px;text-align:left;width:100%;padding:8px 6px;border-radius:5px;font-size:10px;color:#778291}.circuit-row.current{background:#f3f7fd}.circuit-dot{height:7px;width:7px;border-radius:50%;flex-shrink:0}.circuit-row b{font-size:11px;color:#38455a}.circuit-row .count{margin-left:auto;color:#a0a9b5}.side-footer{margin-top:auto;padding:16px;border-top:1px solid var(--line);font-size:10px;color:#8e99a6;display:flex;gap:7px;line-height:1.5}.canvas-area{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;background:#f1f3f6}.toolbar{height:51px;flex-shrink:0;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 14px;gap:3px}.tool{width:31px;height:31px;display:grid;place-items:center;border-radius:5px;color:#8590a0}.tool.active{background:#eaf2ff;color:var(--blue)}.tool-sep{height:20px;width:1px;background:var(--line);margin:0 6px}.toolbar .right{margin-left:auto;display:flex;align-items:center;gap:3px}.canvas-header{height:60px;display:flex;align-items:center;padding:0 27px;justify-content:space-between;flex-shrink:0}.canvas-header h1{font-size:15px;font-weight:600;margin:0 0 5px}.canvas-header small{font-size:10px;color:#929dab}.view-pill{font-size:10px;background:#fff;border:1px solid #e1e7ee;border-radius:4px;padding:6px 8px;color:#8995a5;display:flex;align-items:center;gap:5px}.stage-wrap{position:relative;flex:1;min-height:100px;overflow:hidden;background-image:radial-gradient(#d5dce4 .7px,transparent .7px);background-size:14px 14px}.stage-wrap.no-grid{background-image:none}.stage{width:100%;height:100%;display:block;touch-action:none;user-select:none}.stage [data-placement],.stage [data-component],.stage [data-geometry],.stage [data-add]{cursor:pointer}.stage .hit{fill:transparent;stroke:none;pointer-events:all}.stage .geometry-hit{stroke:transparent;stroke-width:16;fill:none;pointer-events:stroke}.canvas-tooltip{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);color:#8b96a4;white-space:nowrap;background:#ffffffed;padding:8px 14px;border:1px solid #e3e9f1;border-radius:6px;font-size:10px;box-shadow:0 2px 8px #28374c04;pointer-events:none}.zoom-control{position:absolute;right:20px;bottom:17px;background:white;border:1px solid #e1e6ed;border-radius:6px;box-shadow:0 2px 5px #24394c08;display:flex;align-items:center;padding:2px}.zoom-control span{width:43px;text-align:center;font-size:10px;color:#7d8998}.floorbar{height:43px;display:flex;align-items:center;border-top:1px solid var(--line);background:white;flex-shrink:0;padding:0 15px;gap:4px}.floor{height:31px;padding:0 13px;font-size:10px;color:#8c98a8;display:flex;align-items:center;gap:6px;border-radius:4px}.floor.active{color:#467ccc;background:#f1f6fe;font-weight:500}.floorbar .scale{margin-left:auto;font-size:10px;color:#929dac}.statusbar{height:30px;background:#fff;border-top:1px solid var(--line);display:flex;align-items:center;padding:0 19px;gap:19px;font-size:10px;color:#9aa3af;flex-shrink:0}.statusbar .warn{margin-left:auto;color:#b38c4d;display:flex;align-items:center;gap:5px;cursor:pointer}.inspector-intro{display:flex;gap:13px;align-items:center;padding:20px 18px 16px}.selected-symbol{width:48px;height:48px;background:#f3f7fd;border:1px solid #e5edf9;border-radius:9px;display:grid;place-items:center}.selected-symbol svg{width:34px;height:34px}.inspector-intro h2{font-size:14px;margin:0 0 5px}.inspector-intro p{font-size:10px;color:#8b98a9;margin:0}.section{padding:16px 18px;border-top:1px solid var(--line)}.section h3{margin:0 0 16px;text-transform:uppercase;font-size:9px;letter-spacing:1px;font-weight:600;color:#929cac}.field{display:block;margin:0 0 13px}.field>span{font-size:10px;color:#7b8798;display:block;margin-bottom:7px}.field input,.field select,.field textarea{border:1px solid #e0e6ee;background:#fff;border-radius:5px;padding:8px 9px;width:100%;color:#465367;font-size:11px;min-width:0}.field input:focus,.field select:focus,.field textarea:focus{border-color:#9dbce9}.field textarea{min-height:72px;resize:vertical}.field .unit{color:#a1aaba}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.helper{font-size:10px;color:#98a1ae;line-height:1.6}.linked{background:#f1f7fe;border:1px solid #e1ecfb;border-radius:6px;padding:11px;color:#7392b6;font-size:10px;line-height:1.6;display:flex;gap:8px}.selected-actions{display:flex;gap:5px}.selected-actions .btn{flex:1}.empty-selection{text-align:center;padding:42px 22px;color:#8e9aab;font-size:12px;line-height:1.7}.empty-selection>svg{margin-bottom:15px;color:#b5c1d0}.resize-handle{position:absolute;top:0;bottom:0;width:5px;cursor:col-resize;z-index:10}.resize-handle.left{right:0}.resize-handle.right{left:0}.resize-handle:hover{background:#a7c4ef}.content-view{flex:1;overflow:auto;padding:30px 40px;background:#f5f7fa}.page-heading{display:flex;justify-content:space-between;align-items:center;max-width:1150px;margin:0 auto 28px}.page-heading h1{font-size:24px;letter-spacing:-.6px;margin:0 0 8px}.page-heading p{color:#8d98a8;font-size:12px;margin:0}.cards{max-width:1150px;margin:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.card{background:#fff;border:1px solid #e5eaf0;border-radius:10px;padding:24px}.card h2{font-size:14px;margin:0 0 23px;display:flex;align-items:center;gap:9px}.card .field>span{font-size:11px}.card .field input,.card .field select{font-size:12px;padding:10px}.card.wide{grid-column:1/-1}.note{padding:14px 16px;background:#f6f8fc;border:1px solid #e2e8f0;border-radius:7px;color:#8390a2;font-size:11px;line-height:1.7}.note.amber{background:#fffbf3;border-color:#f2e6cb;color:#a48b5c}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.data-table th{font-size:10px;letter-spacing:.4px;color:#8995a6;font-weight:500;padding:13px;border-bottom:1px solid #dfe6ef;background:#fafbfd}.data-table td{padding:15px 13px;border-bottom:1px solid #edf0f5;color:#536177}.data-table tr:last-child td{border-bottom:0}.data-table input{width:100%;min-width:50px;padding:7px;border:1px solid transparent;border-radius:4px;font-size:11px;color:inherit;background:transparent}.data-table input:focus,.data-table input:hover{background:white;border-color:#dce5f0}.table-wrap{max-width:1150px;margin:auto;overflow:auto;background:white;border:1px solid #e3e9f1;border-radius:8px}.stat-line{max-width:1150px;margin:20px auto;display:flex;gap:18px}.stat{padding:18px 24px;background:white;border:1px solid #e5eaf0;border-radius:8px;flex:1}.stat strong{font-size:24px;display:block;margin:6px 0;color:#41526b;font-weight:500}.stat small{font-size:10px;color:#8b97a8}.check-row{display:flex;align-items:flex-start;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.check-row:last-child{border:0}.check-row strong{font-size:12px;font-weight:500}.check-row p{font-size:11px;color:#8b96a7;line-height:1.5;margin:5px 0}.check-tag{margin-left:auto;padding:4px 8px;border-radius:4px;font-size:9px;white-space:nowrap;background:#f2f4f7;color:#7b899b}.check-tag.pass{background:#edf8f3;color:#529779}.check-tag.fail{background:#fff0ee;color:#bf7065}.check-tag.unknown{background:#fff7e8;color:#b38a42}.check-tag.na{background:#f0f2f5;color:#8b97a7}.check-icon{margin-top:1px;color:#b49b6e}.check-icon.pass{color:#62a185}.modal-shade{position:fixed;inset:0;background:#1e2e4660;backdrop-filter:blur(3px);display:grid;place-items:center;z-index:50;padding:20px}.modal{background:white;border:1px solid #dce5ef;border-radius:13px;width:min(760px,96vw);max-height:90dvh;overflow:auto;box-shadow:0 30px 90px #15294233}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:21px 25px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:17px;margin:0;letter-spacing:-.2px}.modal-body{padding:24px}.modal-body h3{font-size:13px;margin-top:23px}.modal-body p{line-height:1.7;color:#7b889a;font-size:12px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:20px}.project-list{display:flex;flex-direction:column;gap:9px;margin-top:20px}.project-entry{display:flex;align-items:center;border:1px solid #e3e9f0;border-radius:7px;padding:14px;gap:12px}.project-entry .open-project{text-align:left;flex:1}.project-entry strong{display:block;font-size:13px}.project-entry small{color:#8b98aa;font-size:10px;display:block;margin-top:6px}#toast{position:fixed;bottom:49px;left:50%;transform:translate(-50%,20px);background:#263b57;color:white;padding:12px 20px;border-radius:8px;font-size:12px;box-shadow:0 6px 30px #16314a33;opacity:0;pointer-events:none;transition:.2s;z-index:100;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}.checkbox{display:flex;align-items:center;gap:9px;font-size:12px;margin-bottom:17px;color:#65758b}.checkbox input{accent-color:var(--blue)}.print-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;max-width:1200px;margin:auto}.print-preview{width:100%;aspect-ratio:1.414;background:white;box-shadow:0 5px 28px #2e466111;border:1px solid #e0e6ee;padding:22px}.print-preview svg{width:100%;height:100%}.quick-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.quick-step{background:#f5f8fd;border:1px solid #e6edf6;border-radius:7px;padding:16px;font-size:11px;line-height:1.6;color:#8191a7}.quick-step strong{color:#4b6a92;display:block;margin-bottom:7px}.loading{display:grid;place-items:center;height:100vh;color:#7393bb}.mobile-note{display:none}.keyboard{display:inline-block;padding:1px 4px;border:1px solid #dce3ec;border-radius:3px;background:#fff;font-size:9px;color:#91a0b1}
@media(min-width:1600px){:root{--left:270px;--right:290px}.symbol-card{height:85px}.side-content{padding:20px}.symbol-grid{gap:9px}.topbar{height:79px}}
@media(max-width:1200px){:root{--left:211px;--right:236px}.topbar{gap:13px;padding:0 17px}.save-state{display:none}.top-actions{margin-left:auto}.tab{padding:0 12px}.toolbar{padding:0 8px;gap:1px}.tool{width:28px}.section{padding:14px}.side-content{padding:13px}.content-view{padding:25px}}
@media(max-width:980px){:root{--left:205px;--right:0px}.inspector{position:absolute;right:0;top:124px;bottom:30px;width:260px;z-index:12;box-shadow:-8px 0 30px #31425b15;display:none}.workspace.show-inspector .inspector{display:block}.topbar .vertical-rule,.brand-label small,.topbar .badge{display:none}.topbar{gap:12px}.top-actions .btn span{display:none}.top-actions .btn{padding:9px}.project-button small{font-size:9px}.tabbar{padding:0 10px;gap:0;overflow:auto}.tab{padding:0 10px;white-space:nowrap}.tabbar .help-button{font-size:0}.tabbar .spacer{min-width:6px}.print-layout{grid-template-columns:230px 1fr}.canvas-tooltip{display:none}.cards{gap:13px}.card{padding:18px}.resize-handle{display:none}}
@media(max-width:680px){.topbar{height:61px;padding:0 12px;gap:8px}.brand{font-size:17px}.brand-mark{width:30px;height:30px}.project-button{max-width:150px;padding:5px}.project-button strong{font-size:10px;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-button>svg,.project-button small{display:none}.top-actions{gap:3px}.top-actions .undo-group{display:none}.tabbar{height:46px}.tab{font-size:10px;padding:0 9px;gap:5px}.tab svg{width:14px}.workspace{grid-template-columns:0 minmax(0,1fr) 0!important}.sidebar{display:none}.workspace.mobile-library .sidebar{position:absolute;display:flex;width:230px;top:107px;bottom:30px;z-index:13;box-shadow:10px 0 30px #31425b18}.inspector{top:107px}.toolbar{height:47px;overflow-x:auto;flex-shrink:0}.toolbar .right{margin-left:6px}.toolbar .tool{min-width:28px}.tool-sep{margin:0 3px}.canvas-header{height:55px;padding:0 15px}.canvas-header h1{font-size:13px}.canvas-header small{font-size:9px}.view-pill{font-size:9px}.floorbar{padding:0 6px}.floor{padding:0 8px;font-size:9px}.floorbar .scale{font-size:9px}.statusbar{gap:8px;padding:0 8px;font-size:8px}.statusbar .hide-mobile{display:none}.content-view{padding:23px 15px}.page-heading{display:block;margin-bottom:20px}.page-heading .btn{margin-top:15px}.page-heading h1{font-size:21px}.cards{grid-template-columns:1fr}.card.wide{grid-column:auto}.print-layout{display:block}.print-preview{margin-top:20px}.quick-steps{grid-template-columns:1fr}.stat-line{gap:8px}.stat{padding:14px}.stat strong{font-size:20px}.modal-body{padding:19px}.modal-head{padding:17px 19px}.check-row{flex-wrap:wrap}.check-tag{margin-left:27px}.mobile-note{display:block;margin-bottom:15px}.brand-label{white-space:nowrap}}
.unassigned-bar{display:flex;align-items:center;gap:7px;background:#fff9ee;color:#ae8a4d;padding:10px 25px;font-size:11px;text-align:left;border-bottom:1px solid #f1e6d1}
/* Display preferences: icon-only language trigger, native language names in menu. */
.preferences{display:flex;align-items:center;gap:5px;margin-right:4px}.preferences>.icon-btn{color:#7c8ba0}.language-picker{position:relative}.language-toggle{display:grid;place-items:center;width:34px;height:32px;border:1px solid transparent;border-radius:6px}.language-toggle:hover,.language-toggle[aria-expanded="true"]{background:#f0f5fd;border-color:#dde7f4}.language-flag{width:23px;height:16px;border-radius:3px;overflow:hidden;box-shadow:0 0 0 1px #122b521a}.language-menu{position:absolute;top:calc(100% + 12px);right:0;min-width:182px;padding:6px;background:#fff;border:1px solid #e2e8f1;border-radius:9px;box-shadow:0 10px 32px #223d651a;z-index:30}.language-menu[hidden]{display:none}.language-menu button{display:flex;align-items:center;gap:11px;width:100%;padding:10px;border-radius:5px;text-align:left;font-size:12px}.language-menu button[aria-checked="true"]{background:#eff5ff;color:#3977d8}.language-menu button>span:not(.language-check){flex:1}.language-menu .language-check{width:14px}.language-menu button:focus-visible{outline-offset:-2px}.topbar{position:relative;z-index:15}.save-state{font-size:10px}.canvas-tooltip{max-width:calc(100% - 180px);overflow:hidden;text-overflow:ellipsis}.tabbar .tab{flex-shrink:0}.tabbar{overflow-x:auto;scrollbar-width:thin}.section h3{line-height:1.5}.symbol-card>span:not(.favorite){padding:0 3px}.inspector-intro h2{overflow-wrap:anywhere}
:root[data-theme="dark"]{color-scheme:dark;color:#d4deec;background:#101722;--line:#283447;--muted:#8b9bb2;--blue:#77a7f4}
[data-theme="dark"] .app-shell,[data-theme="dark"] .content-view{background:#101722}
[data-theme="dark"] .topbar,[data-theme="dark"] .tabbar,[data-theme="dark"] .sidebar,[data-theme="dark"] .inspector,[data-theme="dark"] .toolbar,[data-theme="dark"] .floorbar,[data-theme="dark"] .statusbar{background:#17212f;border-color:#283447}
[data-theme="dark"] button:hover{background:#233248}
[data-theme="dark"] .brand-mark{filter:drop-shadow(0 3px 6px #080e1c44)}
[data-theme="dark"] .brand-label small,[data-theme="dark"] .project-button small,[data-theme="dark"] .save-state,[data-theme="dark"] .canvas-header small,[data-theme="dark"] .page-heading p,[data-theme="dark"] .helper,[data-theme="dark"] .field>span{color:#8f9fb7}
[data-theme="dark"] .vertical-rule,[data-theme="dark"] .tool-sep{background:#304056}
[data-theme="dark"] .badge{background:#233756;color:#99bdf6;border-color:#35507a}
[data-theme="dark"] .btn{background:#1c2a3d;color:#d3dfef;border-color:#36465e}
[data-theme="dark"] .btn:hover{background:#283b54}
[data-theme="dark"] .btn.primary{background:#437edc;color:white;border-color:#5489de;box-shadow:0 2px 5px #09132355}
[data-theme="dark"] .btn.primary:hover{background:#548de7}
[data-theme="dark"] .btn.danger{color:#ef9a98}
[data-theme="dark"] .tab{color:#96a5bc}
[data-theme="dark"] .tab.active{color:#8db8ff}
[data-theme="dark"] .tab:hover{background:#1c2c41}
[data-theme="dark"] .searchbox{background:#121c2b;border-color:#2d3c52;color:#8293ad}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#71839d}
[data-theme="dark"] .searchbox input{color:#d6e1f0}
[data-theme="dark"] .keyboard{background:#1c2a3e;border-color:#33425a;color:#91a4c0}
[data-theme="dark"] .symbol-card{background:#192536;border-color:#2e3c52;color:#c2d0e4}
[data-theme="dark"] .symbol-card svg [stroke="#253044"]{stroke:#c2d0e4}
[data-theme="dark"] .symbol-card svg [fill="#253044"]{fill:#c2d0e4}
[data-theme="dark"] .symbol-card svg [fill="#fff"],[data-theme="dark"] .symbol-card svg [fill="#ffffff"]{fill:#192536}
[data-theme="dark"] .symbol-card.active{background:#233a5b;border-color:#6598e4;color:#a9ceff;box-shadow:0 0 0 1px #36527a}
[data-theme="dark"] .symbol-card:hover{background:#23334a}
[data-theme="dark"] .symbol-card .favorite{color:#71829d}
[data-theme="dark"] .symbol-card .favorite.on{color:#e7b866}
[data-theme="dark"] .symbol-category,[data-theme="dark"] .section h3{color:#8a9db9}
[data-theme="dark"] .circuit-row{color:#94a7c2}
[data-theme="dark"] .circuit-row b{color:#cddcf1}
[data-theme="dark"] .circuit-row.current{background:#21314a}
[data-theme="dark"] .canvas-area{background:#0f1826}
[data-theme="dark"] .stage-wrap{background-image:radial-gradient(#2d3d54 .7px,transparent .7px)}
[data-theme="dark"] .stage-wrap.no-grid{background-image:none}
[data-theme="dark"] .view-pill,[data-theme="dark"] .canvas-tooltip,[data-theme="dark"] .zoom-control{background:#1a2739;border-color:#304057;color:#97acc8;box-shadow:0 3px 12px #07101e30}
[data-theme="dark"] .zoom-control span{color:#a6b8d2}
[data-theme="dark"] .tool{color:#93a6c0}
[data-theme="dark"] .tool.active{background:#243d60;color:#91bdff}
[data-theme="dark"] .floor.active{background:#243954;color:#91bdff}
[data-theme="dark"] .statusbar{color:#93a1b6}
[data-theme="dark"] .statusbar .warn{color:#dab376}
[data-theme="dark"] .field input,[data-theme="dark"] .field select,[data-theme="dark"] .field textarea{background:#121d2d;color:#d4e0f2;border-color:#32415a}
[data-theme="dark"] .field input:focus,[data-theme="dark"] .field select:focus,[data-theme="dark"] .field textarea:focus{border-color:#77a7ec}
[data-theme="dark"] .selected-symbol{background:#20334e;border-color:#344c6d}
[data-theme="dark"] .selected-symbol svg [stroke="#253044"]{stroke:#cadcf5}
[data-theme="dark"] .selected-symbol svg [fill="#253044"]{fill:#cadcf5}
[data-theme="dark"] .selected-symbol svg [fill="#fff"],[data-theme="dark"] .selected-symbol svg [fill="#ffffff"]{fill:#20334e}
[data-theme="dark"] .linked{background:#1d334d;border-color:#304e71;color:#95b7df}
[data-theme="dark"] .card,[data-theme="dark"] .stat,[data-theme="dark"] .table-wrap,[data-theme="dark"] .modal{background:#172333;border-color:#2c3d54}
[data-theme="dark"] .note{background:#1c2b40;border-color:#30415a;color:#9aacc7}
[data-theme="dark"] .note.amber,[data-theme="dark"] .unassigned-bar{background:#332d24;border-color:#514635;color:#d2b78d}
[data-theme="dark"] .stat strong{color:#bed2f0}
[data-theme="dark"] .data-table th{background:#1b2a3e;color:#9db0cb;border-color:#32425a}
[data-theme="dark"] .data-table td{color:#b4c6df;border-color:#29394e}
[data-theme="dark"] .data-table input:hover,[data-theme="dark"] .data-table input:focus{background:#142033;border-color:#3a5275}
[data-theme="dark"] .data-table svg [stroke="#253044"]{stroke:#b4c6df}
[data-theme="dark"] .data-table svg [fill="#fff"],[data-theme="dark"] .data-table svg [fill="#ffffff"]{fill:#172333}
[data-theme="dark"] .modal-shade{background:#040a15a8}
[data-theme="dark"] .modal-body p,[data-theme="dark"] .check-row p{color:#99acc5}
[data-theme="dark"] .check-tag.pass{background:#193e33;color:#8ec4ab}
[data-theme="dark"] .check-tag.fail{background:#432b30;color:#e4a0a0}
[data-theme="dark"] .check-tag.unknown{background:#403728;color:#dfbc7e}
[data-theme="dark"] .check-tag.na{background:#283548;color:#a5b5cb}
[data-theme="dark"] .project-entry{border-color:#30415b}
[data-theme="dark"] .quick-step{background:#1c2d44;border-color:#334860;color:#9db3d0}
[data-theme="dark"] .quick-step strong{color:#c0d7f6}
[data-theme="dark"] .preferences>.icon-btn{color:#aac2e6}
[data-theme="dark"] .language-toggle:hover,[data-theme="dark"] .language-toggle[aria-expanded="true"]{background:#263a55;border-color:#3c5578}
[data-theme="dark"] .language-menu{background:#1b293d;border-color:#3b4d68;box-shadow:0 10px 32px #050d1b66;color:#dce7f7}
[data-theme="dark"] .language-menu button[aria-checked="true"]{background:#2a4264;color:#afd0ff}
[data-theme="dark"] .language-flag{box-shadow:0 0 0 1px #acc4e033}
[data-theme="dark"] .print-preview{color-scheme:light;background:#fff;border-color:#4b5d75}
[data-theme="dark"] .loading{background:#101722;color:#a3bfeb}
@media(max-width:1400px){.save-state{display:none}.top-actions{margin-left:auto}.topbar{gap:16px}}
@media(max-width:1100px){.topbar .badge{display:none}.top-actions .btn{padding:9px}.top-actions .btn span{display:none}.tab{padding:0 12px}}
@media(max-width:680px){.topbar{gap:8px}.preferences{gap:2px;margin-right:3px}.language-toggle{width:30px}.preferences .icon-btn{width:30px}.language-menu{right:-6px;top:calc(100% + 14px)}.language-menu button{min-height:42px}.project-button{display:none}.top-actions .vertical-rule{display:none}.tabbar{overflow-x:auto}.tab{padding:0 9px}.canvas-tooltip{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
/* Collapsible symbol groups: one remembered state for the complete library,
   temporary disclosure while searching. */
.symbol-heading{margin:0;font-size:inherit;font-weight:inherit}
.symbol-section{border-bottom:1px solid var(--line)}
.symbol-category{display:flex;align-items:center;gap:7px;width:100%;margin:0;padding:13px 1px;text-align:left;color:#67758a;letter-spacing:0;font-size:11px;font-weight:600;border-radius:4px}
.symbol-category>span:first-child{flex:1;min-width:0}
.symbol-count{font-size:9px;min-width:21px;text-align:center;padding:2px 4px;border-radius:4px;background:#eef2f7;color:#8896a9;font-weight:500}
.category-chevron{display:flex;color:#8795a8;transition:transform .15s}
.symbol-category[aria-expanded="true"] .category-chevron{transform:rotate(180deg)}
.symbol-grid{padding:0 0 12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.symbol-grid[hidden]{display:none}
.symbol-card{height:auto;min-height:99px;padding:9px 5px;gap:5px}
.symbol-card>svg{width:39px;height:39px}
.symbol-card>span:last-child{overflow-wrap:anywhere;font-size:10px;line-height:1.3}
.library-controls{display:flex;justify-content:space-between;gap:5px;padding:0 0 6px}
.library-controls button{display:flex;align-items:center;gap:3px;padding:4px 2px;color:#8b97a9;font-size:9px;border-radius:3px}
.library-controls [data-library-collapse="close"] svg{transform:rotate(180deg)}
:root[data-theme="dark"] .symbol-category{color:#b7c5d8}
:root[data-theme="dark"] .symbol-count{background:#24354a;color:#a0b3cc}
:root[data-theme="dark"] .library-controls button{color:#93a7c1}
:root[data-theme="dark"] .symbol-category:hover,:root[data-theme="dark"] .library-controls button:hover{background:#23354b}
@media(prefers-reduced-motion:reduce){.category-chevron{transition:none}}
[data-theme="dark"] .selected-symbol svg [stroke="#253044"]{stroke:#c2d0e4}
[data-theme="dark"] .selected-symbol svg [fill="#253044"]{fill:#c2d0e4}
/* Woninginrichting and linked 3D workspace */
.library-tabs{display:flex;padding:3px;background:#f0f4f8;border-radius:7px;margin-bottom:14px;gap:3px}.library-tabs button{flex:1;padding:8px 3px;font-size:11px;border-radius:5px}.library-tabs button.active{background:white;color:var(--blue);box-shadow:0 1px 4px #213c5d12}.category-row[hidden]{display:none}.library-controls [data-home-collapse="close"] svg{transform:rotate(180deg)}
.three-workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 292px;background:#edf1f5}.three-main{display:flex;flex-direction:column;min-width:0;min-height:0}.three-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 25px 18px;gap:15px;background:#fff;border-bottom:1px solid var(--line)}.three-eyebrow{font-size:9px;font-weight:650;letter-spacing:1.5px;color:#8999aa}.three-heading h1{font-size:23px;letter-spacing:-.6px;margin:6px 0}.three-heading h1 .badge{vertical-align:middle;margin-left:7px;font-size:8px}.three-heading p{color:#7c8a9c;font-size:11px;margin:0}.three-heading-actions{display:flex;gap:8px;align-items:center}.three-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 20px;background:#fff;border-bottom:1px solid var(--line);z-index:1}.three-presets{display:flex;gap:5px}.three-toolbar .btn{background:#f6f8fb;border-color:#e7edf4;white-space:nowrap}.three-toolbar .btn:hover,.three-toolbar .btn.active{background:#e6efff;color:#316dc5;border-color:#b5cdef}.three-toolbar select{padding:7px 9px;border:1px solid var(--line);border-radius:6px;max-width:160px;background:white;color:inherit;font-size:11px}.three-stage-wrap{position:relative;flex:1;min-height:250px;overflow:hidden}.three-stage{position:absolute;inset:0}.three-stage>canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-4px}.three-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.three-label{position:absolute;transform:translate(-50%,-120%);white-space:nowrap;font-size:10px;font-weight:650;color:#3c5878;background:#ffffffdc;box-shadow:0 2px 8px #28384b16;padding:4px 7px;border-radius:4px;border:1px solid #fff9;max-width:180px;overflow:hidden;text-overflow:ellipsis}.three-label.room{font-size:12px;color:#665c4e;font-weight:500;background:#ffffffc7}.three-label[hidden]{display:none}.three-guide{position:absolute;left:20px;bottom:18px;right:20px;display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;pointer-events:none;font-size:10px;color:#6c7f93}.three-guide>span{background:#ffffffdc;padding:8px 11px;border-radius:6px;box-shadow:0 2px 12px #30475d08}.three-live{display:flex;align-items:center;gap:7px}.three-live i{width:6px;height:6px;border-radius:50%;background:#49a58d}.three-sidebar{background:white;border-left:1px solid var(--line);overflow-y:auto;min-width:0}.three-sidebar .panel-title{position:sticky;top:0;background:inherit;z-index:1}.three-sidebar .section{padding:18px 20px}.three-settings{background:#fbfcfe}.three-settings .field{margin-bottom:13px}.three-toggles{display:grid;grid-template-columns:1fr;gap:0}.three-toggles .checkbox{font-size:11px;margin:7px 0}.three-settings>.checkbox{font-size:11px;padding-top:10px;border-top:1px solid var(--line);margin-top:12px}.three-steps{padding-left:19px;color:#788697;line-height:1.7;font-size:11px}.three-steps li{margin-bottom:8px}.three-sidebar .inspector-intro{padding:20px}.three-sidebar .inspector-intro h2{font-size:13px}.three-loading,.three-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:15px;padding:30px;color:#74859b}.three-error p{max-width:390px;line-height:1.7}.three-error h2{color:#3b506b;font-size:19px;margin:0}.three-navigation{position:absolute;right:20px;bottom:65px;display:grid;grid-template-columns:repeat(3,36px);gap:4px}.three-navigation[hidden]{display:none}.three-navigation button{border-radius:7px;background:#ffffffe8;height:36px;font-size:18px;box-shadow:0 2px 8px #21344920}.three-navigation button:first-child{grid-column:2}.three-navigation button:nth-child(2){grid-column:1;grid-row:2}.three-navigation button:nth-child(3){grid-column:2;grid-row:2}.three-navigation button:nth-child(4){grid-column:3;grid-row:2}
:root[data-theme="dark"] .library-tabs{background:#142031}:root[data-theme="dark"] .library-tabs button.active{background:#2a3e57;color:#9cc0ff}:root[data-theme="dark"] .three-heading,:root[data-theme="dark"] .three-toolbar,:root[data-theme="dark"] .three-sidebar{background:#172436}:root[data-theme="dark"] .three-settings{background:#192a40}:root[data-theme="dark"] .three-toolbar .btn,:root[data-theme="dark"] .three-toolbar select{background:#20334a;border-color:#304258}:root[data-theme="dark"] .three-toolbar .btn.active{background:#314e75;color:#c2daff}:root[data-theme="dark"] .three-guide>span{background:#1c2d43e8;color:#adbed3}:root[data-theme="dark"] .three-label{background:#1b2c40e8;color:#bdd6f5;border-color:#34475c}:root[data-theme="dark"] .three-label.room{color:#d3c5ae}:root[data-theme="dark"] .three-workspace{background:#202b3b}:root[data-theme="dark"] .three-navigation button{background:#263e5a;color:#d3e4ff}:root[data-theme="dark"] .three-error h2{color:#c4d5e9}
@media(min-width:980px){.three-workspace.hide-three-sidebar{grid-template-columns:1fr}.hide-three-sidebar .three-sidebar{display:none}}
@media(max-width:979px){.three-workspace{grid-template-columns:1fr;position:relative}.three-sidebar{display:none;position:absolute;right:0;top:0;bottom:0;width:292px;box-shadow:-6px 0 25px #233a5318;z-index:3}.three-workspace.show-inspector .three-sidebar{display:block}.three-heading{padding:15px 18px}.three-heading h1{font-size:19px}.three-toolbar{padding:10px 15px}}
@media(max-width:679px){.three-heading{align-items:flex-start;gap:10px;padding:12px}.three-heading-actions{flex-wrap:wrap;justify-content:flex-end;max-width:210px}.three-heading-actions .btn{font-size:10px;padding:7px}.three-heading h1{font-size:18px}.three-eyebrow{font-size:8px}.three-heading p{display:none}.three-toolbar{overflow-x:auto;flex-wrap:nowrap;padding:8px}.three-toolbar .tool-sep{display:none}.three-toolbar .btn{font-size:10px;padding:7px 8px}.three-guide{left:10px;bottom:10px;right:10px}.three-guide .three-live{display:none}.three-workspace .floorbar .scale{display:none}}

.three-label.electric{pointer-events:auto;cursor:pointer}.three-label.electric:hover{background:#dceaff;color:#22549c}.three-label.electric:focus-visible{outline:2px solid #3977d8}
.underlay-status{position:absolute;right:15px;top:12px;display:flex;align-items:center;gap:7px;padding:7px 10px;border-radius:6px;font-size:10px;color:#657e9b;background:#ffffffed;border:1px solid #e3eaf1;z-index:1}.underlay-visibility{margin:12px 0 18px}.furniture-resize{touch-action:none}:root[data-theme="dark"] .underlay-status{background:#1d2e44;color:#a8bfdc;border-color:#344b67}

/* Shared board and circuit device editors. */
.electrical-note,.electrical-toolbar{max-width:1150px;margin:0 auto 20px}.electrical-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.electrical-card-title h2{margin-bottom:8px}.electrical-card-title p{margin:0 0 18px}.electrical-device-heading{display:flex;align-items:center;gap:12px;margin:15px 0}.electrical-device-heading>svg{width:32px;height:32px}.electrical-badge{display:inline-block;padding:5px 8px;background:#edf8f3;color:#427963;border:1px solid #cce5d8;border-radius:5px;font-size:10px;margin-bottom:13px}.electrical-badge.incomplete{background:#fff7e8;color:#9a742e;border-color:#edddba}.electrical-symbol>svg{width:34px;height:34px}.differential-entry{display:flex;align-items:center;gap:18px;padding:18px 0;border-top:1px solid var(--line)}.differential-entry>div:nth-child(2){flex:1;min-width:0}.differential-entry strong{font-size:12px;overflow-wrap:anywhere}.differential-entry p{margin:7px 0}.differential-entry .electrical-badge{margin:0}.electrical-entry-actions{display:flex;gap:8px;flex-wrap:wrap}.electrical-table td>small{display:block;font-size:10px;margin-top:6px;color:var(--muted)}.electrical-table td>strong{font-size:12px;font-weight:600}.electrical-table .electrical-badge{white-space:nowrap;margin:0}.electrical-details{margin-bottom:20px;padding:14px;border:1px solid var(--line);border-radius:8px}.electrical-details summary{font-weight:600;font-size:12px;cursor:pointer;margin-bottom:12px}.electrical-hit{cursor:pointer}.electrical-hit:hover,.electrical-hit:focus{fill:#3977d80c;stroke:#79a4e7;stroke-width:1;outline:none}.stage [data-electrical-target]{cursor:pointer}.field select{min-width:0;max-width:100%}.protection-view h3{font-size:12px}.topbar .brand{flex-shrink:0}.tabbar{overflow-x:auto}.tab{white-space:nowrap;flex-shrink:0}
[data-theme="dark"] .electrical-badge{background:#1b3c33;color:#a2d2bd;border-color:#315849}[data-theme="dark"] .electrical-badge.incomplete{background:#3a3021;color:#e1c28b;border-color:#655133}
@media(max-width:680px){.electrical-card-title,.differential-entry{flex-wrap:wrap}.electrical-card-title>.btn{width:100%}.differential-entry .electrical-entry-actions{width:100%}.electrical-entry-actions .btn{flex:1}.protection-view .field-row{gap:8px}}
