:root{font-family:Inter,"Segoe UI","Noto Sans JP",sans-serif;color:#202c3d;background:#f0f3f7;font-size:16px}*{box-sizing:border-box}body{margin:0}header{height:96px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid #dbe1e9}.brand{display:flex;gap:13px;align-items:center}.mark{display:block;width:52px;height:52px;flex:0 0 52px;line-height:0}.mark svg{display:block;width:100%;height:100%}h1{font-size:23px;letter-spacing:-.7px;margin:0}.sub{font-size:13px;color:#65758b}button,input{font:inherit}button{border:1px solid #ccd5df;background:white;padding:10px 15px;border-radius:7px;color:#243448;cursor:pointer;font-size:14px;font-weight:600}button:hover{background:#eaf0f6}button:disabled{opacity:.4;cursor:default}.primary{background:#172f2b;color:#b6ffd4;border-color:#172f2b}.primary:hover{background:#255144}.actions{display:flex;gap:9px;align-items:center}main{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:calc(100vh - 152px)}aside{background:#fff;border-right:1px solid #dbe1e9;padding:27px 24px}h2{font-size:18px;margin:0 0 7px}.section-head span,.eyebrow{font-size:12px;letter-spacing:1.5px;color:#738399}.hint{font-size:13px;color:#6a7b90;line-height:1.8}label{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:14px;margin:17px 0}label>span{font-size:12px;color:#6a7b90}input:not([type=checkbox]){width:100%;min-width:0;background:#f6f8fa;border:1px solid #dce3eb;border-radius:6px;padding:9px 11px;color:#25364b}input[type=range]{padding:0;accent-color:#2d785b}input:focus,button:focus-visible{outline:2px solid #259b70;outline-offset:2px}.wide{width:100%;margin-top:8px}details{border-top:1px solid #dce3eb;margin-top:22px;padding-top:18px;font-size:13px;line-height:1.8;color:#607188}summary{cursor:pointer}.workspace{padding:25px 28px;min-width:0;display:flex;flex-direction:column}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.toolbar strong{font-size:18px}.toolbar #size{font-size:13px;color:#6b7f94;margin-left:13px}.inline{margin:0;flex-wrap:nowrap;white-space:nowrap;font-size:13px}.drawing{position:relative;min-height:360px;flex:1;background:#182334;border-radius:12px;overflow:hidden;background-image:radial-gradient(#37455a 1px,transparent 1px);background-size:20px 20px}#canvas{width:100%;height:100%;min-height:360px;position:absolute;inset:0;touch-action:none}.canvas-note{position:absolute;bottom:17px;left:20px;color:#94a7bd;font-size:12px;pointer-events:none}.key{cursor:grab}.key rect{fill:#e3eaf2;stroke:#8195ac;stroke-width:.3}.key text{fill:#364d66;font-size:3.6px;font-family:monospace;pointer-events:none}.key.selected rect{fill:#a4f1c5;stroke:#5cec9c;stroke-width:.9}.key.overlap rect{fill:#ffc0a9;stroke:#ff8e73}.key.selected.overlap rect{stroke:#9dfaca;stroke-width:1}.key .hole{fill:none;stroke:#546e87;stroke-width:.25;pointer-events:none}.key:focus{outline:none}.key:focus rect{stroke:#7affbb;stroke-width:.8}.status{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#65778c;padding:14px 0 22px}.status .warn{color:#9c492d}.inspector{background:#fff;border:1px solid #dbe2eb;border-radius:10px;padding:22px;display:flex;gap:24px;align-items:center}.inspector h2{margin-top:6px}.inspector .hint{margin:0}.edit-grid{flex:1;display:grid;grid-template-columns:repeat(3,minmax(70px,1fr));gap:10px}.edit-grid label{margin:0;font-size:12px;gap:5px}.edit-grid button{align-self:end}footer{display:flex;justify-content:space-between;gap:20px;padding:18px 30px;font-size:12px;color:#788699;border-top:1px solid #dbe1e9}dialog{border:none;border-radius:14px;max-width:520px;width:90%;padding:30px;box-shadow:0 24px 90px #0005}dialog::backdrop{background:#0b182a99}dialog h2{font-size:25px;margin-top:10px}dialog p{font-size:14px;color:#62768e;line-height:1.7}.close{float:right;border:none;font-size:25px;padding:0 6px}dialog [data-export]{display:flex;flex-direction:column;align-items:start;gap:6px;width:100%;margin:12px 0;padding:17px}dialog button span{font-weight:400;font-size:13px;color:#62768e}@media(max-width:1100px){main{grid-template-columns:245px minmax(0,1fr)}.workspace{padding:20px 16px}.inspector{flex-wrap:wrap;gap:16px}.inspector>div:first-child{width:100%}.toolbar{flex-wrap:wrap}.toolbar #size{display:block;margin:4px 0 0}}@media(max-width:700px){header{height:auto;padding:18px;gap:16px;flex-wrap:wrap}main{display:flex;flex-direction:column}.workspace{order:-1}.drawing{height:320px;min-height:320px}#canvas{min-height:320px}aside{border:0;padding:24px;display:grid;grid-template-columns:1fr 1fr;gap:0 18px}aside>.section-head,aside>p,aside>details,aside>.wide{grid-column:1/-1}.status{flex-wrap:wrap}.edit-grid{grid-template-columns:repeat(2,minmax(70px,1fr))}footer{flex-direction:column}.canvas-note{font-size:12px;right:14px;bottom:12px;left:14px}.actions{flex-wrap:wrap}}

.row-config{background:#fff;border:1px solid #dbe2eb;border-radius:10px;padding:18px;margin:0 0 18px;color:#34485e}.row-config summary{font-size:15px;font-weight:600}.row-config summary span{font-size:12px;font-weight:400;margin-left:14px;color:#72869c}.row-scroll{overflow:auto;margin-bottom:12px}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;font-weight:500;padding:8px;white-space:nowrap}td{padding:5px}td input{font-size:13px;min-width:70px!important}td:nth-child(2) input,td:nth-child(3) input{min-width:160px!important}td button{font-size:12px;padding:8px}.row-config>label{display:inline-flex;gap:10px;margin:0 0 0 18px;font-size:12px}.row-config>label input{width:80px}a{color:#257050}.drawing{flex:none;height:390px}.workspace{overflow:hidden}aside{position:relative}.row-config .hint{margin:8px 0}.inspector{margin-bottom:5px}

select{font:inherit;width:100%;min-width:0;background:#f6f8fa;border:1px solid #dce3eb;border-radius:6px;padding:10px 7px;color:#25364b}select:focus-visible{outline:2px solid #259b70;outline-offset:2px}.template-label{grid-column:1/-1}#templateNote{margin:8px 0}

.acknowledgment{padding:12px 28px;background:#e8efe8;font-size:12px;color:#526254}.acknowledgment a{color:inherit;text-underline-offset:3px}.mechanical-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.parts-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0}.parts-table input{width:76px}.parts-table th:first-child{min-width:180px;font-size:12px}.part{cursor:move}.part rect{fill:#adcddd;fill-opacity:.7;stroke:#356484;stroke-width:.4}.part text{font-size:2.1px;pointer-events:none;fill:#183d56}.plate-outline{fill:#e8eadb;fill-opacity:.4;stroke:#829778;stroke-width:.35}.case-outline{fill:none;stroke:#728779;stroke-width:.4;stroke-dasharray:2 1}.switch-cutout{fill:none;stroke:#b67941;stroke-width:.25}.mechanical-outline{pointer-events:none}#mechanicalStatus{min-height:20px}
.parts-table td input{min-width:76px!important}.parts-actions select{width:auto;max-width:100%}#mechanicalExport{display:flex;flex-direction:column;align-items:start;gap:6px;width:100%;margin:12px 0;padding:17px}#mechanicalPanel>.inline input{width:auto}
#preview3dDialog{max-width:1280px;width:95vw;max-height:94vh;padding:22px;overflow:auto}#preview3dDialog h2{margin:4px 0;font-size:23px}.preview-heading,.preview-tools,.preview-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.preview-tools{justify-content:flex-start;margin:16px 0}.preview-tools button{padding:8px 12px}.preview-tools label{margin:0}.preview-bottom{font-size:12px;color:#607188}.preview-bottom label{margin:12px 0;flex-wrap:nowrap}.preview-bottom input{width:150px}.preview-bottom output{min-width:45px}#preview3dViewport{height:clamp(280px,53vh,620px);width:100%;background:#172334;border-radius:10px;overflow:hidden;touch-action:none;cursor:grab}#preview3dViewport:active{cursor:grabbing}#preview3dViewport canvas{display:block;width:100%;height:100%}#preview3dLegend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:#456}#preview3dLegend span{display:flex;align-items:center;gap:6px}#preview3dLegend i{width:10px;height:10px;border-radius:3px}#preview3dStatus{margin:10px 0;font-size:13px}#preview3dDialog .hint{margin-bottom:0}@media(max-width:700px){#preview3dDialog{padding:14px}.preview-tools{gap:9px}#preview3dViewport{height:45vh}.preview-bottom label{width:100%}}
.diode{cursor:move}.diode rect{fill:#c783ae;stroke:#49374b;stroke-width:.22}.diode line{stroke:#fff;stroke-width:.45;pointer-events:none}.diode.selected rect,.diode:focus rect{stroke:#7affbb;stroke-width:.45}.diode:focus{outline:none}#diodePanel>.inline input{width:auto}#diodePanel>label:not(.inline){display:flex;margin:10px 0}
