:root{font-family:Segoe UI,Noto Sans JP,sans-serif;color:#102335;background:linear-gradient(135deg,#f7f1de,#f4f9fb 45%,#e7f1ea);line-height:1.4;font-weight:400;color-scheme:light;--paper: rgba(255, 255, 255, .76);--panel-border: rgba(16, 35, 53, .12);--accent: #0d6c63;--danger: #9a3b34;--board-front: #f4d07c;--board-back: #d6ead7;--trace-bare: #b95b24;--trace-insulated: #1665a8}*{box-sizing:border-box}html,body,#root{margin:0;width:100%;height:100%}body{overflow:hidden}button,input,select{font:inherit}button{border:0;border-radius:12px;background:#e4ecef;color:#16304a;cursor:pointer}input,select{width:100%;border:1px solid rgba(18,45,67,.18);border-radius:10px;padding:.7rem .8rem;background:#ffffffd6}.app-shell{display:grid;grid-template-columns:360px minmax(0,1fr);gap:1rem;width:100vw;height:100vh;padding:1rem;overflow:hidden;align-items:stretch}.sidebar{display:flex;flex-direction:column;height:calc(100vh - 2rem);min-height:0;overflow:hidden}.sidebar-scroll{display:flex;flex-direction:column;gap:.9rem;min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;padding-right:.35rem}.panel,.workspace{background:var(--paper);border:1px solid var(--panel-border);border-radius:24px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 18px 36px #16304a14}.panel{padding:1rem;flex:0 0 auto}.accordion-panel{padding:0;overflow:hidden}.accordion-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:1rem 1rem .95rem;border-radius:0;background:transparent;font-weight:700}.accordion-icon{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;border-radius:999px;background:#0d6c631a;color:var(--accent)}.accordion-icon.open{background:#0d6c632e}.accordion-body{display:grid;gap:.8rem;padding:0 1rem 1rem}.panel h1,.panel h2,.workspace h2,.workspace h3{margin:0}.panel h1{font-size:1.45rem;line-height:1.15}.panel h2,.workspace h2{font-size:1.05rem;line-height:1.2}.workspace h3{font-size:.98rem;line-height:1.2}.panel-header,.workspace-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.9rem;position:relative}.workspace-header-copy{min-width:0}.editor-toolbar{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end}.routing-toolbar-panel{display:grid;gap:.8rem;position:absolute;top:calc(100% - .35rem);right:0;width:min(420px,100%);padding:.9rem 1rem;border:1px solid rgba(16,35,53,.08);border-radius:18px;background:#f8fbfcf5;box-shadow:0 18px 30px #10233524;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:5}.lede,.hint,.workspace p,.selection-card span,.board-panel-header span{color:#54677b}.field-grid{display:grid;gap:.8rem}.field-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.field-grid label,.view-controls label{display:grid;gap:.35rem;font-size:.92rem}.tool-row,.segmented,.route-actions,.button-stack{display:flex;flex-wrap:wrap;gap:.55rem}.tool,.segmented button,.secondary,.danger{padding:.72rem .9rem}.tool.active,.segmented .active,.catalog-item.active{background:linear-gradient(135deg,var(--accent) 0%,#1d8d83 100%);color:#fff}.secondary{background:#dbe8ee}.danger{background:#9a3b341f;color:var(--danger)}.view-controls{display:grid;gap:.8rem;margin-top:.8rem}.catalog-group+.catalog-group{margin-top:.8rem}.group-title{margin-bottom:.45rem;font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#698093}.catalog-list{display:grid;gap:.45rem}.catalog-item{display:flex;align-items:baseline;justify-content:space-between;padding:.65rem .8rem;background:#dfe9ecb3}.catalog-item small{color:inherit;opacity:.75}.selection-card{display:grid;gap:.4rem}.part-reference-card{display:grid;gap:.35rem;padding:.8rem .9rem;border-radius:14px;background:#1023350d;color:#405467;font-size:.9rem}.part-reference-card a{color:#0d6c63;text-decoration:none;font-weight:700}.color-row{display:flex;flex-wrap:wrap;gap:.45rem}.wire-color{width:1.6rem;height:1.6rem;border-radius:999px;border:2px solid rgba(16,35,53,.14);box-shadow:inset 0 0 0 1px #ffffff73}.wire-color.active{outline:2px solid #0d6c63;outline-offset:2px}.workspace{display:flex;flex-direction:column;padding:1rem;height:calc(100vh - 2rem);min-height:0;overflow:hidden}.board-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;min-height:0;flex:1}.board-panel{display:flex;flex-direction:column;min-height:0;position:relative;background:#f8fbfcb3;border-radius:20px;border:1px solid rgba(16,35,53,.08);padding:.8rem}.board-route-actions{position:absolute;right:1.1rem;bottom:1.1rem;display:flex;gap:.5rem;z-index:3}.board-panel-header{display:flex;justify-content:space-between;gap:.8rem;align-items:baseline;margin-bottom:.65rem}.board-svg{width:100%;height:100%;min-height:0;border-radius:18px;background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.9) 0 30px,transparent 30px),linear-gradient(180deg,#ffffffe0,#e8eff2bf)}.board-svg.route-cursor{cursor:crosshair}.board-shadow{fill:#10233514}.board-surface{stroke:#1023351f;stroke-width:2}.board-surface.front{fill:var(--board-front)}.board-surface.back{fill:var(--board-back)}.hole{fill:#10233540}.hole.hover{fill:#fff;stroke:var(--accent);stroke-width:2}.hole.highlight{fill:#fef6b4;stroke:#d39a18;stroke-width:2}.trace{fill:none;stroke:var(--wire-color, var(--trace-bare));stroke-linecap:round;stroke-linejoin:round;cursor:grab}.trace.bare{stroke-width:3.5}.trace.insulated{stroke-width:9}.trace.selected{stroke-width:9;filter:drop-shadow(0 0 4px rgba(255,255,255,.75))}.trace.hovered{stroke-width:9;filter:drop-shadow(0 0 5px rgba(13,108,99,.35))}.trace.bare.hovered{stroke-width:5}.trace-vertex-handle{fill:#fff;stroke:#0d6c63;stroke-width:3;cursor:grab}.trace.preview{opacity:.65;stroke-dasharray:9 7}.selection-marquee{fill:#505c681f;stroke:#505c688c;stroke-width:1.5;stroke-dasharray:8 6}.trace.ghost{stroke:#10233557;stroke-dasharray:10 10;stroke-width:4;cursor:default}.trace.ghost.draft,.trace.draft{stroke-dasharray:12 8}.trace.insulated-tip{stroke-width:4;pointer-events:none}.part-shape .part-body,.part-shape .part-lead,.part-shape .part-mark,.part-shape .part-cut,.part-shape .part-pin,.part-shape .part-detail,.part-shape .part-contact,.part-shape .part-fill-mark{transition:opacity .12s ease;cursor:grab}.part-shape .part-body,.part-shape .part-lead,.part-shape .part-mark,.part-shape .part-detail{fill:none;stroke:#263645;stroke-width:2.4}.part-shape .part-body.solid{fill:#f6f0df}.part-shape .part-body.chip{fill:#3a4651}.part-shape .part-body.resistor{fill:#ead2a9}.part-shape .part-body.capacitor{fill:#80a3d6}.part-shape .part-body.led{fill:#d86c66}.part-shape .part-body.diode{fill:#d7d0bc}.part-shape .part-body.transistor{fill:#d8e1e8}.part-shape .part-body.header{fill:#263645}.part-shape .part-body.terminal{fill:#6ca58f}.part-shape .part-body.module{fill:#4f8cc9}.part-shape .part-body.sensor{fill:#7a8d52}.part-shape .part-body.trimmer{fill:#7aa5ab}.part-shape .part-pin{fill:#fff;stroke:#263645;stroke-width:2}.part-shape .part-contact{fill:#e6d28f;stroke:#263645;stroke-width:1.5}.part-shape .part-detail-fill{fill:#ffffff8c;stroke:none}.part-shape .part-fill-mark{fill:#263645;stroke:none}.part-shape .part-cut{fill:#2636452e}.part-label{fill:#314252;font-size:10px;font-weight:700;text-anchor:middle;pointer-events:none}.part-label.inverse{fill:#ffffffeb}.part-shape.selected .part-body,.part-shape.selected .part-lead,.part-shape.selected .part-mark,.part-shape.selected .part-pin,.part-shape.selected .part-detail,.part-shape.selected .part-contact{stroke:#c84b38}.part-shape.hovered .part-body,.part-shape.hovered .part-lead,.part-shape.hovered .part-mark,.part-shape.hovered .part-pin,.part-shape.hovered .part-detail,.part-shape.hovered .part-contact{stroke:#0d6c63}.part-shape.ghost{opacity:.35}.part-shape.ghost .part-body,.part-shape.ghost .part-lead,.part-shape.ghost .part-mark,.part-shape.ghost .part-cut,.part-shape.ghost .part-pin{cursor:default}.part-shape.preview{opacity:.6}.part-shape.preview .part-body,.part-shape.preview .part-lead,.part-shape.preview .part-mark,.part-shape.preview .part-cut,.part-shape.preview .part-pin{cursor:copy}.legend{font-size:13px;font-weight:700;fill:#102335ad}@media (max-width: 1200px){.app-shell{grid-template-columns:1fr;height:100vh}.sidebar,.workspace{height:auto}.sidebar-scroll{height:auto;overflow:visible;padding-right:0}.board-grid{grid-template-columns:1fr}.workspace-header{flex-direction:column;align-items:stretch}.editor-toolbar{justify-content:flex-start}.routing-toolbar-panel{left:0;right:auto;width:100%}.board-svg{min-height:460px}}
