.layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,.7fr);gap:1rem}.board,.results{min-width:0;padding:clamp(.85rem,2.5vw,1.7rem);border:1px solid var(--border);background:var(--surface);border-radius:14px}.board h2{margin:0}#equivalent{font-size:clamp(2rem,6vw,3.5rem);color:var(--accent)}#diagram{width:100%;display:block;background:#253034;border-radius:8px}#diagram text{text-anchor:middle;font:var(--fs,14px) system-ui}.wire{fill:none;stroke:#a2c5bf;stroke-width:3}.res{fill:#c8ad82;stroke:#453e32;stroke-width:1.5}.selected .res{stroke:#fff5ae;stroke-width:3}.rname{fill:#392f24}.nname,.vname{fill:#f1eadc}.vname{font-size:calc(var(--fs,14px)*.85)!important}.plus{fill:#e4ac81}.minus{fill:#a4bedc}.node{fill:#ded4b6}[data-edge]{cursor:pointer}.controls textarea{width:100%;resize:vertical;font:1rem/1.55 ui-monospace,monospace}.controls button,.results button{margin-top:.8rem}.results{margin-top:1rem}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:490px}td,th{padding:.55rem .3rem;text-align:right;border-bottom:1px solid var(--border)}th:first-child,td:first-child{text-align:left}.selected td:first-child,a{color:var(--accent)}@media(max-width:650px){.layout{grid-template-columns:minmax(0,1fr)}}
/* 접점 이름과 전압 글자가 선 위에 겹쳐도 읽히게 바탕색 테두리 */
#diagram .nname,#diagram .vname{paint-order:stroke;stroke:#253034;stroke-width:5px;stroke-linejoin:round}
