.react-flow{--xy-edge-stroke-default:#b1b1b7;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#555;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:#ffffff80;--xy-minimap-background-color-default:#fff;--xy-minimap-mask-background-color-default:#f0f0f099;--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#e2e2e2;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:transparent;--xy-background-pattern-dots-color-default:#91919a;--xy-background-pattern-lines-color-default:#eee;--xy-background-pattern-cross-color-default:#e2e2e2;background-color:var(--xy-background-color,var(--xy-background-color-default));--xy-node-color-default:inherit;--xy-node-border-default:1px solid #1a192b;--xy-node-background-color-default:#fff;--xy-node-group-background-color-default:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #00000014;--xy-node-boxshadow-selected-default:0 0 0 .5px #1a192b;--xy-node-border-radius-default:3px;--xy-handle-background-color-default:#1a192b;--xy-handle-border-color-default:#fff;--xy-selection-background-color-default:#0059dc14;--xy-selection-border-default:1px dotted #0059dccc;--xy-controls-button-background-color-default:#fefefe;--xy-controls-button-background-color-hover-default:#f4f4f4;--xy-controls-button-color-default:inherit;--xy-controls-button-color-hover-default:inherit;--xy-controls-button-border-color-default:#eee;--xy-controls-box-shadow-default:0 0 2px 1px #00000014;--xy-edge-label-background-color-default:#fff;--xy-edge-label-color-default:inherit;--xy-resize-background-color-default:#3367d9;direction:ltr}.react-flow.dark{--xy-edge-stroke-default:#3e3e3e;--xy-edge-stroke-width-default:1;--xy-edge-stroke-selected-default:#727272;--xy-connectionline-stroke-default:#b1b1b7;--xy-connectionline-stroke-width-default:1;--xy-attribution-background-color-default:#96969640;--xy-minimap-background-color-default:#141414;--xy-minimap-mask-background-color-default:#3c3c3c99;--xy-minimap-mask-stroke-color-default:transparent;--xy-minimap-mask-stroke-width-default:1;--xy-minimap-node-background-color-default:#2b2b2b;--xy-minimap-node-stroke-color-default:transparent;--xy-minimap-node-stroke-width-default:2;--xy-background-color-default:#141414;--xy-background-pattern-dots-color-default:#555;--xy-background-pattern-lines-color-default:#333;--xy-background-pattern-cross-color-default:#333;--xy-node-color-default:#f8f8f8;--xy-node-border-default:1px solid #3c3c3c;--xy-node-background-color-default:#1e1e1e;--xy-node-group-background-color-default:#f0f0f040;--xy-node-boxshadow-hover-default:0 1px 4px 1px #ffffff14;--xy-node-boxshadow-selected-default:0 0 0 .5px #999;--xy-handle-background-color-default:#bebebe;--xy-handle-border-color-default:#1e1e1e;--xy-selection-background-color-default:#c8c8dc14;--xy-selection-border-default:1px dotted #c8c8dccc;--xy-controls-button-background-color-default:#2b2b2b;--xy-controls-button-background-color-hover-default:#3e3e3e;--xy-controls-button-color-default:#f8f8f8;--xy-controls-button-color-hover-default:#fff;--xy-controls-button-border-color-default:#5b5b5b;--xy-controls-box-shadow-default:0 0 2px 1px #00000014;--xy-edge-label-background-color-default:#141414;--xy-edge-label-color-default:#f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props,var(--xy-background-color,var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width,var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke,var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width,var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{pointer-events:none;position:absolute;overflow:visible}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected,var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke,var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}svg.react-flow__connectionline{z-index:1001;position:absolute;overflow:visible}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{-webkit-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default;position:absolute}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:0 0;pointer-events:none}.react-flow__nodesselection-rect{pointer-events:all;cursor:grab;position:absolute}.react-flow__handle{pointer-events:none;background-color:var(--xy-handle-background-color,var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color,var(--xy-handle-border-color-default));border-radius:100%;width:6px;min-width:5px;height:6px;min-height:5px;position:absolute}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;bottom:0;left:50%;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{z-index:5;margin:15px;position:absolute}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px)translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px)translateY(-50%)}.react-flow__attribution{background:var(--xy-attribution-background-color,var(--xy-attribution-background-color-default));margin:0;padding:2px 3px;font-size:10px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.react-flow__edgelabel-renderer{pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__viewport-portal{-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__minimap{background:var(--xy-minimap-background-color-props,var(--xy-minimap-background-color,var(--xy-minimap-background-color-default)))}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var(--xy-minimap-mask-background-color-props,var(--xy-minimap-mask-background-color,var(--xy-minimap-mask-background-color-default)));stroke:var(--xy-minimap-mask-stroke-color-props,var(--xy-minimap-mask-stroke-color,var(--xy-minimap-mask-stroke-color-default)));stroke-width:var(--xy-minimap-mask-stroke-width-props,var(--xy-minimap-mask-stroke-width,var(--xy-minimap-mask-stroke-width-default)))}.react-flow__minimap-node{fill:var(--xy-minimap-node-background-color-props,var(--xy-minimap-node-background-color,var(--xy-minimap-node-background-color-default)));stroke:var(--xy-minimap-node-stroke-color-props,var(--xy-minimap-node-stroke-color,var(--xy-minimap-node-stroke-color-default)));stroke-width:var(--xy-minimap-node-stroke-width-props,var(--xy-minimap-node-stroke-width,var(--xy-minimap-node-stroke-width-default)))}.react-flow__background-pattern.dots{fill:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-dots-color-default)))}.react-flow__background-pattern.lines{stroke:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-lines-color-default)))}.react-flow__background-pattern.cross{stroke:var(--xy-background-pattern-color-props,var(--xy-background-pattern-color,var(--xy-background-pattern-cross-color-default)))}.react-flow__controls{box-shadow:var(--xy-controls-box-shadow,var(--xy-controls-box-shadow-default));flex-direction:column;display:flex}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{background:var(--xy-controls-button-background-color,var(--xy-controls-button-background-color-default));border:none;border-bottom:1px solid var(--xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default)));width:26px;height:26px;color:var(--xy-controls-button-color-props,var(--xy-controls-button-color,var(--xy-controls-button-color-default)));cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;padding:4px;display:flex}.react-flow__controls-button svg{fill:currentColor;width:100%;max-width:12px;max-height:12px}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{border-radius:var(--xy-node-border-radius,var(--xy-node-border-radius-default));width:150px;color:var(--xy-node-color,var(--xy-node-color-default));text-align:center;border:var(--xy-node-border,var(--xy-node-border-default));background-color:var(--xy-node-background-color,var(--xy-node-background-color-default));padding:10px;font-size:12px}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover,var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected,var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color,var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color,var(--xy-selection-background-color-default));border:var(--xy-selection-border,var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var(--xy-controls-button-background-color-hover-props,var(--xy-controls-button-background-color-hover,var(--xy-controls-button-background-color-hover-default)));color:var(--xy-controls-button-color-hover-props,var(--xy-controls-button-color-hover,var(--xy-controls-button-color-hover-default)))}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var(--xy-controls-button-border-color-props,var(--xy-controls-button-border-color,var(--xy-controls-button-border-color-default)))}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{background-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border:1px solid #fff;border-radius:1px;width:5px;height:5px;translate:-50% -50%}.react-flow__resize-control.handle.left{top:50%;left:0}.react-flow__resize-control.handle.right{top:50%;left:100%}.react-flow__resize-control.handle.top{top:0;left:50%}.react-flow__resize-control.handle.bottom{top:100%;left:50%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color,var(--xy-resize-background-color-default));border-style:solid;border-width:0}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;height:100%;top:0;transform:translate(-50%)}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{width:100%;height:1px;left:0;transform:translateY(-50%)}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color,var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color,var(--xy-edge-label-color-default))}
:root{--bg:#eef0f3;--panel:#fff;--panel-alt:#f7f8fa;--border:#d9dde3;--text:#1f2933;--muted:#6b7482;--accent:#2563eb;--accent-weak:#e3ebfd;--accent-strong:#1d4ed8;--on-accent:#fff;--danger:#c62828;--warn-bg:#fff6e0;--warn-text:#7a5200;--error-bg:#fdecec;--topbar:#1e293b;--grid-major:#9aa4b2;--grid-minor:#d3d8df;--grid-y:#e7a3a3;--symbol:#243040;--copper:#e8b35a;--input-bg:#fff;--border-strong:#c9ced6;--seg-active:#fff;--chart-bg:#fcfcfd;--chart-rim:#56606e;--grid-y-minor:#f3d4d4;--teal:#0f766e;--wire:#334155;--dielectric:#cfe3d4;--dielectric-edge:#8fb59a;--radius:6px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}:root[data-theme=dark]{--bg:#0b1120;--panel:#111827;--panel-alt:#182131;--border:#283344;--text:#e5e7eb;--muted:#94a3b8;--accent:#60a5fa;--accent-weak:#1c3354;--accent-strong:#93c5fd;--on-accent:#0b1120;--danger:#f87171;--warn-bg:#33290f;--warn-text:#fcd34d;--error-bg:#3a1b1d;--topbar:#060a13;--grid-major:#4b5563;--grid-minor:#253041;--grid-y:#8a4545;--symbol:#cbd5e1;--copper:#d4a24c;--input-bg:#0d1422;--border-strong:#1f2937;--seg-active:#243044;--chart-bg:#0d1422;--chart-rim:#9aa4b2;--grid-y-minor:#3a2426;--teal:#2dd4bf;--wire:#94a3b8;--dielectric:#1f3a2b;--dielectric-edge:#3f6b50;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{height:100%;margin:0}body{background:var(--bg);font-size:13px;overflow:hidden}button,input,select{font:inherit;color:inherit}input,select{border:1px solid var(--border);background:var(--input-bg);border-radius:4px;min-width:0;height:28px;padding:0 8px}input:focus,select:focus{outline:2px solid var(--accent-weak);border-color:var(--accent)}h2,h3{margin:0}.muted{color:var(--muted);margin:0;line-height:1.45}.small{font-size:12px}.app{flex-direction:column;height:100vh;display:flex}.workspace{flex:1;min-height:0;display:flex}.chart-area{background:var(--panel);flex:1;min-width:0;display:flex}.smith-pane{aspect-ratio:1;flex:none;max-width:62%;height:100%;position:relative}.plots-pane{flex:1;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:10px;min-width:0;padding:10px 12px 10px 0;display:grid}@media (max-width:1000px){.smith-pane{flex:1;max-width:none}.plots-pane{display:none}}.resizer{cursor:row-resize;background:var(--border);border-block:1px solid var(--border-strong);flex:none;height:6px}.resizer:hover{background:var(--accent-weak)}.lower{background:var(--panel);flex:none;min-height:0}.panel-title{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-size:11px;font-weight:600}.topbar{background:var(--topbar);color:#e5e9f0;flex:none;align-items:center;gap:14px;height:48px;padding:0 14px;display:flex}.brand{color:#fff;align-items:center;gap:8px;font-size:15px;font-weight:700;display:flex}.brand svg{color:#60a5fa}.project-name{color:#fff;background:#ffffff14;border-color:#0000;width:190px}.project-name:focus{background:#ffffff24;border-color:#60a5fa;outline:none}.toolbar{align-items:center;gap:4px;display:flex}.toolbar button,.modes button{color:#e5e9f0;cursor:pointer;background:0 0;border:0;border-radius:4px;height:30px;padding:0 12px}.toolbar button:hover,.modes button:hover{background:#ffffff1a}.toolbar-sep{background:#fff3;width:1px;height:20px;margin:0 6px}.modes{background:#00000040;border-radius:6px;gap:2px;margin-left:auto;padding:3px;display:flex}.modes button.active{color:var(--topbar);background:#fff;font-weight:600}.api-status{color:#aab4c3;white-space:nowrap;align-items:center;gap:6px;font-size:12px;display:flex}.api-status .dot{background:#94a3b8;border-radius:50%;width:8px;height:8px}.api-status.ok .dot{background:#22c55e}.api-status.down{color:#fca5a5}.api-status.down .dot{background:#ef4444}.btn{border:1px solid var(--border);background:var(--input-bg);cursor:pointer;border-radius:4px;height:28px;padding:0 12px}.btn:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.btn.primary:hover{background:var(--accent-strong);color:var(--on-accent)}.btn.danger:hover{border-color:var(--danger);color:var(--danger)}.link-btn{color:var(--accent);cursor:pointer;background:0 0;border:0;padding:0 2px;font-size:11px}.link-btn:hover{text-decoration:underline}.button-row{gap:6px;margin-top:12px;display:flex}.field{flex-direction:column;gap:3px;min-width:0;display:flex}.field>label{color:var(--muted);font-size:12px}.field select,.field>input{width:100%}.hint{color:var(--muted);font-size:11px}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.field-grid.single{grid-template-columns:minmax(0,1fr)}.qty-input{gap:4px;display:flex}.qty-input .num-input{flex:1;width:0}.qty-input select{flex:none;width:auto;padding:0 4px}.qty-input .unit{color:var(--muted);align-self:center;min-width:24px}.num-input{font-variant-numeric:tabular-nums}.num-input.invalid{border-color:var(--danger);background:var(--error-bg)}.check{cursor:pointer;align-items:center;gap:6px;display:flex}.check input{height:auto;margin:0}.alert{border-radius:var(--radius);padding:8px 10px;font-size:12px;line-height:1.4}.alert.error{background:var(--error-bg);color:var(--danger)}.alert.warn{background:var(--warn-bg);color:var(--warn-text)}.segmented{background:var(--panel-alt);border:1px solid var(--border);border-radius:6px;padding:2px;display:flex}.segmented button{cursor:pointer;background:0 0;border:0;border-radius:4px;flex:1;height:26px}.segmented button.active{background:var(--seg-active);color:var(--accent);font-weight:600;box-shadow:0 1px 2px #0000001f}.smith{position:absolute;inset:0}.smith-svg{width:100%;height:100%;padding:26px 12px 12px;display:block}.smith-title{color:var(--muted);pointer-events:none;font-size:12px;position:absolute;top:8px;left:12px}.smith-title strong{color:var(--text)}.smith-title .legend-y{color:#c05656}.smith-bg{fill:var(--chart-bg)}.smith-rim{fill:none;stroke:var(--chart-rim);stroke-width:1.4px;vector-effect:non-scaling-stroke}.smith-centre{fill:var(--chart-rim)}.grid-z circle,.grid-z line,.grid-y circle,.grid-y line{fill:none;vector-effect:non-scaling-stroke}.grid-z .major{stroke:var(--grid-major);stroke-width:.9px}.grid-z .minor{stroke:var(--grid-minor);stroke-width:.6px}.grid-y .major{stroke:var(--grid-y);stroke-width:.8px;stroke-dasharray:4 3}.grid-y .minor{stroke:var(--grid-y-minor);stroke-width:.5px}.grid-label text{fill:var(--muted);-webkit-user-select:none;user-select:none;font-family:inherit}.vswr-circle{fill:none;stroke:var(--teal);stroke-width:1px;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}.trace{fill:none;stroke-width:2.2px;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.trace-start{fill:var(--chart-bg);stroke-width:1.6px;vector-effect:non-scaling-stroke}.trace-marker{stroke:var(--chart-bg);stroke-width:1.5px;vector-effect:non-scaling-stroke}.hover-ring{fill:none;stroke:var(--text);stroke-width:1.5px;vector-effect:non-scaling-stroke}.chart-tooltip{z-index:5;border-radius:var(--radius);color:#f3f4f6;pointer-events:none;white-space:nowrap;font-variant-numeric:tabular-nums;background:#111827eb;padding:8px 10px;font-size:12px;line-height:1.5;position:absolute}.tooltip-title{filter:brightness(1.6);font-weight:600}.cursor-readout{color:var(--muted);font-variant-numeric:tabular-nums;pointer-events:none;font-size:12px;position:absolute;bottom:8px;left:12px}.chart-empty{color:var(--muted);pointer-events:none;place-items:center;display:grid;position:absolute;inset:0}.results{border-left:1px solid var(--border);background:var(--panel);flex-direction:column;flex:none;gap:10px;width:310px;padding:12px 14px;display:flex;overflow-y:auto}.results-head{justify-content:space-between;align-items:center;display:flex}.status{color:var(--muted);font-size:11px}.status.busy{color:var(--accent)}.status.error{color:var(--danger);font-weight:600}.marker-row{grid-template-columns:auto 1fr;align-items:center;gap:8px;display:grid}.marker-row label{color:var(--muted)}.legend{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.legend li{border:1px solid var(--border);border-radius:var(--radius);padding:8px 10px}.legend li.hidden-trace{background:var(--panel-alt);color:var(--muted)}.legend-row{justify-content:space-between;align-items:center;font-weight:600;display:flex}.swatch{border-radius:2px;flex:none;width:14px;height:4px}.readout{font-variant-numeric:tabular-nums;grid-template-columns:44px 1fr;gap:2px 8px;margin:6px 0 0;font-size:12px;display:grid}.readout dt{color:var(--muted)}.readout dd{margin:0}.results-section{border-top:1px solid var(--border);flex-direction:column;gap:8px;padding-top:10px;display:flex}.results-section h3{font-size:12px}.check-with-input{align-items:center;gap:8px;display:flex}.check-with-input .num-input{width:70px}.designer{grid-template-columns:205px minmax(0,1fr) 300px;height:100%;display:grid}.palette{border-right:1px solid var(--border);background:var(--panel-alt);flex-direction:column;gap:1px;padding:10px 8px;display:flex;overflow-y:auto}.palette .panel-title{padding:0 4px 6px}.palette-item{text-align:left;white-space:nowrap;cursor:grab;background:0 0;border:1px solid #0000;border-radius:4px;align-items:center;gap:8px;padding:3px 6px;display:flex}.palette-item:hover{background:var(--panel);border-color:var(--border)}.palette-icon{width:38px;height:22px;color:var(--symbol);flex:none}.palette-icon path,.palette-icon polyline,.palette-icon circle,.palette-icon rect,.palette-icon ellipse{fill:none;stroke:currentColor;stroke-width:2.4px}.canvas{min-width:0;position:relative}.canvas-hint{color:var(--muted);pointer-events:none;margin:0;font-size:11px;position:absolute;top:8px;right:10px}.designer-side{border-left:1px solid var(--border);overflow-y:auto}.side-section{flex-direction:column;gap:10px;padding:12px 14px;display:flex}.side-section+.side-section{border-top:1px solid var(--border)}.ts-info{background:var(--panel-alt);word-break:break-all;border-radius:4px;flex-direction:column;gap:2px;margin-bottom:6px;padding:8px;font-size:12px;display:flex}.el-node{color:var(--symbol);position:relative}.el-node.selected{color:var(--accent)}.el-node.selected:before{content:"";border:1px dashed var(--accent);pointer-events:none;border-radius:4px;position:absolute;inset:-5px}.el-symbol{display:block;overflow:visible}.el-symbol path,.el-symbol polyline,.el-symbol circle,.el-symbol rect,.el-symbol ellipse{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round}.el-symbol .sym-fill,.palette-icon .sym-fill{fill:var(--panel)}.el-symbol .sym-copper,.palette-icon .sym-copper{fill:var(--copper)}.el-symbol .sym-accent{stroke:var(--teal)}.el-symbol .sym-accent-fill{fill:var(--teal);stroke:none}.el-symbol-text{fill:currentColor;text-anchor:middle;dominant-baseline:central;font-size:10px;font-weight:600}.el-caption{white-space:nowrap;pointer-events:none;color:var(--text);font-size:11px;line-height:1.25;position:absolute}.el-caption.above{font-weight:600;bottom:100%;left:50%;transform:translate(-50%,-2px)}.el-caption.below{color:var(--muted);top:100%;left:50%;transform:translate(-50%,2px)}.el-caption.beside{flex-direction:column;display:flex;top:50%;left:100%;transform:translate(6px,-50%)}.el-caption.beside span{color:var(--muted)}.react-flow__handle.terminal{background:var(--panel);border:1.5px solid var(--symbol);width:9px;min-width:0;height:9px;min-height:0}.react-flow__handle.terminal:hover,.react-flow__handle.terminal.connectingto{background:var(--accent);border-color:var(--accent)}.react-flow{--xy-background-color:transparent;--xy-controls-button-background-color:var(--panel);--xy-controls-button-background-color-hover:var(--panel-alt);--xy-controls-button-color:var(--text);--xy-controls-button-color-hover:var(--text);--xy-controls-button-border-color:var(--border)}.react-flow__edge-path,.react-flow__connection-path{stroke:var(--wire);stroke-width:1.8px}.react-flow__edge.selected .react-flow__edge-path{stroke:var(--accent);stroke-width:2.4px}.calc{background:var(--bg);grid-template-columns:minmax(240px,1fr) minmax(300px,1.2fr) minmax(260px,1fr);gap:12px;height:100%;padding:12px;display:grid;overflow:auto}.calc-card{border:1px solid var(--border);background:var(--panel);border-radius:8px;flex-direction:column;gap:12px;min-height:0;padding:12px 14px;display:flex;overflow:auto}.result-list{font-variant-numeric:tabular-nums;grid-template-columns:auto 1fr;gap:5px 14px;margin:0;display:grid}.result-list dt{color:var(--muted)}.result-list dd{margin:0;font-weight:500}.line-sketch{align-self:center;width:100%;max-width:260px}.patch-sketch{width:100%;height:100%;min-height:160px}.sk-metal,.sk-copper{fill:var(--copper);stroke:#b7832f;stroke-width:.5px;vector-effect:non-scaling-stroke}.sk-dielectric{fill:var(--dielectric);stroke:var(--dielectric-edge);stroke-width:.5px;vector-effect:non-scaling-stroke}.sk-label{fill:var(--text);text-anchor:middle;font-size:12px}.toast{z-index:20;border-radius:var(--radius);color:#fff;cursor:pointer;background:#1f2937;max-width:420px;padding:10px 14px;position:fixed;bottom:16px;right:16px;box-shadow:0 6px 20px #0003}.toast.error{background:var(--danger)}.tune{align-items:center;gap:6px;margin-top:2px;display:flex}.tune input[type=range]{height:18px;accent-color:var(--accent);cursor:ew-resize;border:0;flex:1;padding:0}.tune select{width:auto;height:22px;color:var(--muted);flex:none;padding:0 2px;font-size:11px}.toolbar button:disabled{opacity:.35;cursor:default;background:0 0}.menu{position:relative}.menu-list{z-index:30;border:1px solid var(--border);border-radius:var(--radius);background:var(--panel);width:320px;color:var(--text);padding:4px;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 8px 24px #0000002e}.menu-list button{width:100%;height:auto;color:var(--text);text-align:left;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 10px;display:flex}.menu-list button:hover{background:var(--accent-weak)}.menu-list button span{color:var(--muted);font-size:12px}.icon-btn{cursor:pointer;background:0 0;border:0;border-radius:4px;width:28px;height:28px;font-size:20px;line-height:1}.icon-btn:hover{background:var(--panel-alt)}.modal-backdrop{z-index:40;color:var(--text);background:#0f172a73;place-items:center;display:grid;position:fixed;inset:0}.modal{background:var(--panel);border-radius:10px;flex-direction:column;gap:12px;width:min(720px,100vw - 32px);max-height:calc(100vh - 64px);padding:16px 18px;display:flex;overflow-y:auto;box-shadow:0 20px 50px #0000004d}.modal-head{justify-content:space-between;align-items:center;display:flex}.modal-head h2{font-size:16px}.match-form{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:end}.solutions{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.solution{border:1px solid var(--border);border-radius:8px;flex-direction:column;align-items:flex-start;gap:8px;padding:10px 12px;display:flex}.solution-head{justify-content:space-between;align-items:baseline;gap:12px;width:100%;display:flex}.chain{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.chain-end{background:var(--panel-alt);border-radius:4px;padding:3px 8px;font-size:12px;font-weight:600}.chain-part{border:1px solid var(--border);color:var(--symbol);border-radius:4px;align-items:center;gap:6px;padding:3px 8px 3px 4px;font-size:12px;line-height:1.3;display:flex}.chain-icon{width:36px;height:18px}.chain-icon.shunt{transform:rotate(90deg)}.chain-icon path,.chain-icon polyline{fill:none;stroke:currentColor;stroke-width:2.6px}.antenna-sketch{flex-direction:column;align-items:center;gap:4px;margin:0;display:flex}.antenna-sketch svg{width:100%;max-height:170px}.sk-trace{fill:none;stroke:#b7832f;stroke-linejoin:miter}.sk-feed{fill:#dc2626}.el-symbol .sym-port,.palette-icon .sym-port{fill:currentColor;stroke:none;font-size:7px}.view-toggles{gap:2px;display:flex}.view-toggles button{color:#e5e9f0;cursor:pointer;background:0 0;border:0;border-radius:4px;place-items:center;width:32px;height:30px;padding:0;display:grid}.view-toggles button:hover{background:#ffffff1a}.view-toggles svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.plot{border:1px solid var(--border);background:var(--chart-bg);border-radius:8px;flex-direction:column;min-height:0;display:flex}.plot-head{justify-content:space-between;align-items:baseline;gap:12px;padding:6px 10px 0;font-size:12px;display:flex}.plot-title{white-space:nowrap;cursor:help;font-weight:600}.plot-values{white-space:nowrap;font-variant-numeric:tabular-nums;gap:10px;min-width:0;font-weight:600;display:flex;overflow:hidden}.plot-body{flex:1;min-height:0;position:relative}.plot-body svg{cursor:crosshair;width:100%;height:100%;position:absolute;inset:0}.plot-grid{stroke:var(--grid-minor);stroke-width:.6px}.plot-grid.major{stroke:var(--grid-minor);stroke-width:1px}.plot-frame{fill:none;stroke:var(--grid-major);stroke-width:1px}.plot-tick{fill:var(--muted);font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none;font-size:10px}.plot-tick.reference{fill:var(--teal)}.plot-reference{stroke:var(--teal);stroke-width:1px;stroke-dasharray:5 4}.plot-line{fill:none;stroke-width:2px;stroke-linejoin:round}.plot-marker line{stroke:var(--muted);stroke-dasharray:4 3}.plot-hover line{stroke:var(--text);opacity:.35}.plot-marker circle,.plot-hover circle{stroke:var(--chart-bg);stroke-width:1.5px}.plot-empty{color:var(--muted);text-align:center;place-items:center;padding:0 16px;font-size:12px;display:grid;position:absolute;inset:0}.pattern{flex-direction:column;gap:4px;padding:8px 12px;display:flex;position:absolute;inset:0}.pattern-head{color:var(--muted);justify-content:space-between;align-items:center;gap:8px;font-size:12px;display:flex}.pattern-head strong{color:var(--text)}.segmented.compact{flex:none}.segmented.compact button{white-space:nowrap;height:22px;padding:0 10px;font-size:12px}.pattern-body{flex:1;min-height:0;position:relative}.polar{width:100%;height:100%;display:block}.polar-bg{fill:var(--chart-bg);stroke:var(--chart-rim);stroke-width:1.2px;vector-effect:non-scaling-stroke}.polar-ring,.polar-spoke{fill:none;stroke:var(--grid-major);stroke-width:.7px;vector-effect:non-scaling-stroke}.polar-spoke{stroke:var(--grid-minor)}.polar-ground{stroke:var(--copper);stroke-width:1.2px;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}.polar-label{fill:var(--muted);-webkit-user-select:none;user-select:none;font-size:.045px}.polar-trace{fill:none;stroke-width:2.2px;stroke-linejoin:round;vector-effect:non-scaling-stroke}.polar-cursor{stroke:var(--text);stroke-width:1px;opacity:.4;vector-effect:non-scaling-stroke}.pattern-3d{position:absolute;inset:0}.pattern-3d canvas{cursor:grab;touch-action:none;width:100%;height:100%;display:block}.pattern-3d canvas:active{cursor:grabbing}.pattern-foot{flex-direction:column;gap:4px;display:flex}.pattern-legend{flex-wrap:wrap;gap:4px 16px;font-size:12px;display:flex}.pattern-scale{align-items:center;gap:8px;font-size:12px;display:flex}.pattern-gradient{background:linear-gradient(90deg,#1e3a8a,#2563eb,#10b981,#facc15,#ef4444);border-radius:4px;width:140px;height:8px}.calc-card-head{justify-content:space-between;align-items:center;gap:8px;display:flex}
