:root{font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Segoe UI",sans-serif;color:#20252a;background:#e8e8e8;font-size:12px;--upper:56%}*{box-sizing:border-box}body{margin:0;height:100vh;overflow:hidden;display:flex;flex-direction:column}button,input,select,textarea{font:inherit}button,.tool-button{border:1px solid transparent;background:transparent;color:#303940;padding:4px 8px;cursor:pointer;border-radius:2px;text-decoration:none}button:hover,.tool-button:hover{border-color:#a7b7c4;background:#e0e7ed}button:disabled{opacity:.5;cursor:not-allowed}button.active{background:#dce8f3;border-color:#9fb6ce}a{color:#356488}input,select,textarea{border:1px solid #aeb5bc;border-radius:1px;padding:3px 6px;background:#fff;color:#252b31}input[type=checkbox]{accent-color:#217346;vertical-align:middle}.titlebar{height:29px;display:flex;align-items:center;gap:9px;padding:0 11px;background:linear-gradient(#f6f6f6,#e5e5e5);border-bottom:1px solid #babec1;font-size:11px;flex-shrink:0}.app-icon{color:white;background:#3a546d;width:15px;height:15px;text-align:center;line-height:15px;font-size:10px}.title-muted{color:#66717b}.title-right{margin-left:auto;font-size:10px;color:#71787f}.menubar{height:27px;display:flex;align-items:center;padding:0 7px;background:#f5f5f5;border-bottom:1px solid #d4d5d6;flex-shrink:0}.menubar button,.menubar a{font-size:11px;padding:4px 10px;text-decoration:none;color:#333}.menu-spacer{flex:1;min-width:5px}#tool-info{font-size:10px;color:#777;padding-right:9px}.toolbar{height:38px;display:flex;align-items:center;gap:5px;padding:4px 9px;background:#f0f0f0;border-bottom:1px solid #b4b7ba;flex-shrink:0;white-space:nowrap}.toolbar button,.toolbar .tool-button{border:1px solid #c4c8cb;background:linear-gradient(#fff,#eee);font-size:11px;height:27px}.separator{height:19px;width:1px;background:#c4c8cb;margin:0 5px;flex-shrink:0}.voltage{font-size:10px;color:#555}.voltage input{width:48px;height:24px}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:210px minmax(300px,1fr) 288px;grid-template-rows:minmax(190px,var(--upper)) 5px minmax(140px,1fr)}.project-pane{grid-column:1;grid-row:1/4;border-right:1px solid #b0b5bb;background:#f4f4f4;display:flex;flex-direction:column;min-height:0}.pane-caption{height:26px;padding:6px 9px;background:#e3e5e7;border-bottom:1px solid #bfc4c8;font-size:11px;font-weight:600;flex-shrink:0}.project-root{font-size:11px;font-weight:600;padding:11px 9px 8px;overflow-wrap:anywhere}.tree-label{font-size:10px;color:#6a737b;padding:7px 10px;background:#e9ebed;border-block:1px solid #d7dadd;display:flex;justify-content:space-between}.tree-item{display:flex;align-items:center;gap:7px;width:100%;text-align:left;padding:5px 12px;font-size:11px;min-height:25px;border-radius:0}.tree-item .count{margin-left:auto;font-size:10px;color:#788591}.tree-item.active{background:#d9e6f2}#component-search{margin:7px 8px;height:25px;font-size:10px;width:calc(100% - 16px)}#component-list{flex:1;min-height:40px;overflow:auto;background:#fafafa;border-top:1px solid #ddd}.component-item{display:flex;gap:7px;width:100%;font-size:10px;text-align:left;white-space:nowrap;padding:4px 9px;border-bottom:1px solid #ededed;border-radius:0}.component-item b{min-width:34px;color:#28557b}.component-item span{overflow:hidden;text-overflow:ellipsis;color:#6c737a}.component-item.active{background:#d9e9d9}.component-item.dnp span{text-decoration:line-through;color:#999}.project-note{padding:10px;font-size:9px;line-height:1.8;color:#777;background:#eaecee;border-top:1px solid #ccc;flex-shrink:0}.editor-area{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-height:0;overflow:hidden}.document-tabs{height:29px;display:flex;align-items:stretch;background:#dfe2e5;border-bottom:1px solid #b7bcc1;padding-left:5px;gap:2px;flex-shrink:0}.document-tabs button{font-size:11px;border:1px solid #bbc1c7;border-bottom:0;margin-top:4px;padding:3px 14px;background:#e9ebed;border-radius:3px 3px 0 0}.document-tabs button.active{background:#faf9f5}.document-tabs #source-changed{font-size:9px;color:#9b5c00;align-self:center}.drawing-toolbar{height:28px;background:#f5f5f5;border-bottom:1px solid #c5c7c8;display:flex;align-items:center;padding:2px 7px;gap:2px;flex-shrink:0;font-size:10px}.drawing-toolbar button{font-size:10px;padding:2px 6px}.drawing-hint{font-size:9px;color:#878a8e}#sheet-path{max-width:130px;overflow:hidden}#zoom-label{width:37px;text-align:center;font-size:9px}.canvas{position:relative;flex:1;min-height:0;overflow:hidden;background:#f5f4ef;cursor:crosshair;touch-action:none}.canvas svg{display:block;width:100%;height:100%}.canvas .loading{padding:35px;color:#7d7f80}.canvas.panning{cursor:grabbing}.canvas .hit{fill:transparent;stroke:transparent;pointer-events:all;cursor:pointer}.canvas .hit:hover{stroke:#3d85bb;stroke-width:.3;fill:#bcdcff;fill-opacity:.2}.canvas .hit.selected{stroke:#dc7900;stroke-width:.45;fill:#ffc13d;fill-opacity:.18}.canvas-status{height:20px;display:flex;justify-content:space-between;gap:10px;padding:3px 8px;background:#eeede8;border-top:1px solid #d0d0c8;font-size:9px;color:#6f736f;flex-shrink:0}.inspector{grid-column:3;grid-row:1;border-left:1px solid #b9bfc4;display:flex;flex-direction:column;min-height:0;overflow:hidden;background:#f4f4f4}#part-details{padding:9px 10px;border-bottom:1px solid #cbd0d4;flex-shrink:0;font-size:10px}.part-title{display:flex;align-items:center;gap:10px;margin-bottom:6px}.part-title strong{font-size:17px;color:#315c80}.part-title span{font-size:12px;font-family:Menlo,monospace}.kv{display:grid;grid-template-columns:57px minmax(0,1fr);gap:4px;margin:4px 0;font-size:9px}.kv span:first-child{color:#7b8187}.kv span:last-child{overflow-wrap:anywhere;color:#465563}.inspector-tabs{display:flex;background:#e4e7e9;border-bottom:1px solid #b6bdc2;flex-shrink:0}.inspector-tabs button{flex:1;font-size:10px;border:0;border-bottom:2px solid transparent;border-radius:0}.inspector-tabs button.active{border-bottom-color:#3b6c90;background:#f6f8fa}#pins-panel{overflow:auto;flex:1}.pins-table{border-collapse:collapse;width:100%;font-size:10px}.pins-table th{position:sticky;top:0;padding:4px 7px;text-align:left;background:#eceef0;border-bottom:1px solid #c3c9ce;font-size:9px}.pins-table td{padding:5px 7px;border-bottom:1px solid #dfe2e4;overflow-wrap:anywhere;max-width:175px}.pins-note{font-size:9px;color:#737b83;padding:10px;line-height:1.7}#analysis-panel{overflow:auto;flex:1;padding:8px}#row-label{font-size:10px;font-weight:600;color:#41617c}.field{display:flex;flex-direction:column;gap:3px;margin:7px 0;font-size:9px;color:#66737e}.field input,.field select,.field textarea{width:100%;font-size:10px;padding:5px;border:1px solid #b6bec5;background:#fffdf0;resize:vertical;min-height:24px}.field textarea{height:48px}.form-actions{display:flex;gap:8px;align-items:center;position:sticky;bottom:-8px;background:#f4f4f4;padding:8px 0;border-top:1px solid #ddd}.form-actions button{border:1px solid #7a9584;background:#e5efe9;font-size:10px}#save-state{font-size:9px}#splitter{grid-column:2/4;grid-row:2;background:#b9bec2;border-top:1px solid #eee;border-bottom:1px solid #a8adb0;cursor:row-resize}.sheet-area{grid-column:2/4;grid-row:3;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#fff}.sheet-toolbar{height:31px;display:flex;align-items:center;padding:3px 9px;gap:10px;background:#f6f7f6;border-bottom:1px solid #bfc5c2;flex-shrink:0;font-size:10px}.sheet-toolbar b{font-size:11px;color:#28563b}.sheet-toolbar label{white-space:nowrap}.sheet-toolbar input:not([type=checkbox]){width:155px;height:22px;font-size:10px}.sheet-toolbar select{height:22px;max-width:130px;font-size:10px}#row-count{font-size:9px;color:#707a74;white-space:nowrap}#table-hint{font-size:9px;color:#8a918d;white-space:nowrap}.formula-bar{height:26px;display:flex;align-items:center;background:#fff;border-bottom:1px solid #bdc6bf;flex-shrink:0}#cell-address{width:62px;border-right:1px solid #d3d8d3;font-size:10px;padding:5px 9px;text-align:center}.fx{font-family:Georgia,serif;font-style:italic;padding:2px 10px;font-size:13px;color:#839187}.formula-bar input{border:0;height:24px;flex:1;min-width:0;font-size:10px}.formula-note{font-size:9px;color:#809084;padding-right:12px}.table-container{overflow:auto;flex:1;position:relative;min-height:0;background:#fff}.grid{border-collapse:separate;border-spacing:0;font-size:10px;width:max-content;min-width:100%;table-layout:fixed}.grid th,.grid td{border-right:1px solid #d5dbd7;border-bottom:1px solid #d5dbd7;padding:3px 7px;max-width:340px;min-width:75px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;height:25px;font-weight:400;text-align:left}.grid thead th{position:sticky;z-index:3;top:0;background:#e8ece9;color:#56705e;font-size:9px;text-align:center;height:19px;padding:2px 6px}.grid thead tr:nth-child(2) th{top:19px;background:#f1f4f1;color:#344d3d;font-size:10px;text-align:left;height:29px;font-weight:600;border-bottom:2px solid #7b9d83}.grid th.row-number,.grid td.row-number{min-width:35px;width:35px;text-align:center;color:#76847b;position:sticky;left:0;background:#edf0ee;z-index:2;font-size:9px;padding:3px}.grid thead th.row-number{z-index:6}.grid td.ref-cell{position:sticky;left:35px;background:#f7faf7;z-index:2;min-width:70px;font-weight:600;color:#375a45}.grid tr.selected td{background:#e5f0e8}.grid tr.selected td.ref-cell{background:#cde4d4}.grid td.editable{background:#fffcef;cursor:cell}.grid tr.selected td.editable{background:#f4f1cf}.grid td.focused{box-shadow:inset 0 0 0 2px #238048}.grid td input{padding:0;border:0;background:white;font-size:10px;min-width:100px;width:100%;height:19px}.grid tbody tr:hover td{background:#eff5f0}.grid .missing{color:#969f99}.grid .excluded{color:#a4a4a4;text-decoration:line-through}.grid .numeric{text-align:right}.grid .locked{color:#65776a;background:#eff5f8}.sheet-tabs{height:28px;display:flex;align-items:stretch;background:#f0f3f1;border-top:1px solid #bbc7bf;flex-shrink:0;padding-left:12px}.sheet-tabs button{border-radius:0;font-size:11px;padding:4px 16px;border-right:1px solid #d5ddd7;color:#526e5c;background:#f4f6f4}.sheet-tabs button.active{background:#fff;color:#217346;border-bottom:3px solid #217346;font-weight:600}#analysis-summary{align-self:center;font-size:9px;color:#7b887f;padding-right:10px}footer{height:22px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;background:#e9eeeb;border-top:1px solid #bec8c1;color:#63766a;font-size:9px;flex-shrink:0;gap:12px}#message{padding:7px 13px;background:#fff2d4;border-bottom:1px solid #d6bd81;font-size:11px;line-height:1.5;flex-shrink:0}#message.error{background:#fbe7e0;color:#9e4c37}dialog{border:1px solid #9eabb4;border-radius:3px;box-shadow:0 10px 50px #0003;max-width:660px;padding:22px;font-size:13px;line-height:1.9}dialog h2{font-size:16px;margin:0 0 15px}dialog button{border:1px solid #aebac3;background:#e9eff5;float:right;padding:5px 18px}dialog p{font-size:11px;color:#77828c}#plot-container{flex:1;overflow:auto;background:#192128;min-height:0}.plot-controls{height:28px;background:#29333c;display:flex;gap:8px;align-items:center;padding:3px 10px;color:#aab7c3;font-size:10px}.plot-controls button{font-size:10px;color:#becad4;border-color:#54606b;padding:2px 9px}.plot-controls button.active{background:#4c5b68;color:white}#plot-caption{flex:1;font-size:9px;color:#8ca0ad}#plot{height:235px;padding:5px 14px}#plot svg{width:100%;height:100%;display:block}#simulation-results{font-size:10px;color:#bdcbd3;padding:0 15px 12px}#simulation-results table{border-collapse:collapse;width:100%;font-size:10px}#simulation-results th,#simulation-results td{padding:5px 8px;border:1px solid #3f4e59;text-align:left;font-weight:400}#simulation-results th{background:#28353f;color:#91a8b8}#simulation-results p{font-size:10px;line-height:1.7;color:#8da3b2}.empty{padding:25px;color:#88928b;font-size:11px}[hidden]{display:none!important}.sources-page{height:auto;overflow:auto;display:block;padding:30px;font-size:13px;line-height:1.8}.sources-page main{max-width:960px;margin:auto}.sources-page h1{font-size:23px}.sources-page h2{font-size:16px;margin-top:24px}.sources-page table{border-collapse:collapse;background:#fff;width:100%}.sources-page th,.sources-page td{padding:10px;border:1px solid #bbc5cd;text-align:left}
@media(max-width:1150px){.workspace{grid-template-columns:175px minmax(300px,1fr) 240px}.drawing-hint,#table-hint,.formula-note,.title-right{display:none}.sheet-toolbar{gap:7px}.sheet-toolbar input:not([type=checkbox]){width:110px}.menubar button,.menubar a{font-size:10px;padding:4px 7px}}@media(max-width:850px){.workspace{grid-template-columns:160px minmax(0,1fr)}.inspector{display:none}.sheet-area,#splitter{grid-column:2}.toolbar,.menubar{overflow-x:auto;white-space:nowrap}.sheet-toolbar select,#focus-circuit,#analysis-summary,#status-middle{display:none}.sheet-tabs button{padding:4px 9px;font-size:10px}.sheet-tabs{overflow:auto}}@media(max-width:560px){.workspace{grid-template-columns:120px minmax(0,1fr)}.tree-item{padding:5px;font-size:9px}.tree-item .count,.title-muted,#focus-selected,.canvas-status span:last-child,.sheet-toolbar input:not([type=checkbox]){display:none}.component-item{padding:4px;font-size:9px}.project-root{font-size:9px}.sheet-toolbar{gap:3px;padding:3px}.sheet-toolbar b{font-size:10px}.drawing-toolbar{padding:2px;gap:0}.drawing-toolbar button{font-size:9px;padding:2px 3px}#sheet-path{max-width:50px}footer span:last-child{max-width:150px;white-space:nowrap;overflow:hidden}.project-note{font-size:8px;padding:6px}}
.toolbar{overflow-x:auto}.toolbar>button,.toolbar>.tool-button{flex-shrink:0}
