#hd-sheet{display:none}@media print{@page{margin:12mm}body:has(>#hd-sheet:not(:empty)){background:#fff!important;color:#000!important}body:has(>#hd-sheet:not(:empty))>*:not(#hd-sheet){display:none!important}#hd-sheet{display:block;font:9pt/1.35 system-ui,sans-serif;color:#000}.hs-sheet table{border-collapse:collapse;width:100%;margin:.25rem 0 .5rem}.hs-sheet th,.hs-sheet td{border:.5pt solid #555;padding:2pt 4pt;text-align:left;vertical-align:top}.hs-sheet th{background:#eee;font-weight:600}.hs-sheet .hs-num{text-align:right;font-variant-numeric:tabular-nums}.hs-sheet .hs-empty,.hs-sheet .hs-none{color:#666}.hs-titleblock{border:1.5pt solid #000}.hs-note{font-size:8pt;color:#444;margin:.15rem 0 0}.hs-h{font-size:11pt;margin:.6rem 0 .2rem;text-transform:uppercase;letter-spacing:.05em}.hs-h3{font-size:10pt;margin:.4rem 0 .1rem}.hs-part{font-weight:400;color:#444}.hs-drawing svg{width:100%;height:auto;max-height:150mm}.hs-drawing{break-after:page}.hs-pinout,.hs-section table tr{break-inside:avoid}.hs-labels{display:grid;grid-template-columns:repeat(auto-fill,minmax(38mm,1fr));gap:2mm;list-style:none;padding:0}.hs-label{border:.5pt dashed #555;padding:2mm;font-family:ui-monospace,monospace;break-inside:avoid}}.hd-grid{display:grid;gap:2rem;min-width:0}.hd-grid>*{min-width:0}.hd-out{order:-1}.hd-h{font-family:var(--font-mono);font-size:.75rem;text-transform:uppercase;letter-spacing:.14em;color:var(--color-copper)}.hd-row{display:flex;flex-direction:column;gap:.75rem;padding:.75rem;border:1px solid var(--color-border);border-radius:.5rem;background:var(--color-surface);min-width:0}.hd-row-h{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;font-size:.875rem}.hd-actions{display:flex;gap:.5rem}.hd-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(9.5rem,1fr));gap:.75rem}.hd-fields[hidden],.hd-loose[hidden],.hd-fields>[hidden],.hd-pins[hidden]{display:none}.hd-sub{margin-top:-.25rem}.hd-pair{display:flex;gap:.5rem;min-width:0}.hd-pair>*{min-width:0;flex:1 1 0}.hd-pair>select:last-child:not(:first-child){flex:0 0 auto;width:auto}.hd-pair>select[hidden]{display:none}.hd-pins{display:grid;grid-template-columns:repeat(auto-fill,minmax(5.5rem,1fr));gap:.5rem}.hd-row input,.hd-row select,.hd-form>label input{font-size:1rem;border-radius:.375rem;border:1px solid var(--color-border);background:var(--color-bg);color:var(--color-text);padding:.4rem .6rem;min-width:0;width:100%}.hd-form>label input{background:var(--color-surface);padding:.5rem .75rem}.hd-row input:focus,.hd-row select:focus{outline:none;border-color:var(--color-copper)}.hd-row input[type=checkbox]{width:auto}.hd-check{display:flex;align-items:center;gap:.5rem;font-size:.875rem}.hd-btn{padding:.5rem .9rem;font-size:.85rem;cursor:pointer;background:none;color:var(--color-text);min-height:2.5rem}.hd-btn[aria-pressed=true]{background:var(--color-copper);color:var(--color-bg)}.hd-draw{border:0;cursor:pointer;font:inherit;font-weight:600;padding:.6rem 1.6rem}.hd-sep{width:1px;height:1.5rem;background:var(--color-border);margin:0 .25rem}.hd-row-err{font-size:.875rem}.hd-row-err[hidden],#hd-error[hidden],#hd-bom-wrap[hidden]{display:none}.hd-box{overflow:auto;max-height:75vh;background:#fff;border:1px solid var(--color-border);border-radius:.5rem;padding:.5rem}.hd-box:focus-visible{outline:2px solid var(--color-copper);outline-offset:2px}.hd-box svg{display:block;max-width:none}.hd-twrap{position:relative;overflow-x:auto;border:1px solid var(--color-border);border-radius:.5rem;background:var(--color-surface)}.hd-wtable{width:100%;min-width:60rem;border-collapse:collapse;font-size:.875rem}.hd-wtable thead th{text-align:left;font-family:var(--font-mono);font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--color-muted);font-weight:500;padding:.5rem .35rem;border-bottom:1px solid var(--color-border);white-space:nowrap}.hd-wtable tbody.hd-row{display:table-row-group;padding:0;border:0;background:none;border-radius:0}.hd-wtable tbody+tbody tr:first-child>*{border-top:1px solid color-mix(in srgb,var(--color-border) 60%,transparent)}.hd-wtable td,.hd-wtable tbody th{padding:.3rem .35rem;vertical-align:middle}.hd-wtable tbody th{color:var(--color-muted);font-weight:500;text-align:right;width:2rem}.hd-wtable select,.hd-wtable input:not([type=checkbox]){font-size:.9rem;border-radius:.375rem;border:1px solid var(--color-border);background:var(--color-bg);color:var(--color-text);padding:.3rem .4rem;min-width:0;width:100%}.hd-wtable select:focus,.hd-wtable input:focus{outline:none;border-color:var(--color-copper)}.hd-wtable input:disabled{opacity:.5}.hd-wtable select[hidden],.hd-wtable input[hidden]{display:none}.hd-wtable td:nth-child(2),.hd-wtable td:nth-child(4){min-width:6rem}.hd-wtable td:nth-child(3),.hd-wtable td:nth-child(5){min-width:7rem}.hd-wtable td:nth-child(9){min-width:6.5rem}.hd-wtable td:nth-child(7),.hd-wtable td:nth-child(8){width:5.5rem;white-space:nowrap}.hd-wtable td:nth-child(7) input,.hd-wtable td:nth-child(8) input{width:4.2rem}.hd-colors{display:flex;align-items:center;gap:.3rem;min-width:12.5rem}.hd-colors select{flex:1 1 0}.hd-sw{flex:none;width:1.1rem;height:1.1rem;border-radius:50%;border:1px solid var(--color-border)}.hd-sw-none{background:repeating-linear-gradient(45deg,transparent 0 3px,var(--color-border) 3px 4px)!important}.hd-unit{margin-left:.25rem;font-size:.75rem;color:var(--color-copper)}.hd-no-cables th:nth-child(9),.hd-no-cables th:nth-child(10),.hd-no-cables td:nth-child(9),.hd-no-cables td:nth-child(10){display:none}.hd-acts{white-space:nowrap;text-align:right}.hd-icon{background:none;border:1px solid transparent;color:var(--color-muted);cursor:pointer;border-radius:.375rem;width:2rem;height:2rem;font-size:1rem;line-height:1}.hd-icon:hover,.hd-icon:focus-visible{color:var(--color-text);border-color:var(--color-border);outline:none}.hd-err-tr:not(:has(.hd-row-err:not([hidden]))){display:none}.hd-start select{min-width:14rem}.hd-start select,.hd-units select{font-size:1rem;border-radius:.375rem;border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text);padding:.45rem .6rem}.hd-btn:disabled{opacity:.45;cursor:default}.hd-mini{position:fixed;right:1rem;bottom:1rem;z-index:40;width:22rem;max-height:12rem;overflow:hidden;padding:.4rem;background:#fff;border:1px solid var(--color-border);border-radius:.5rem;box-shadow:0 8px 24px #00000073;cursor:zoom-in}.hd-mini svg{display:block;width:100%;height:auto;max-height:11rem}.hd-mini[hidden],.hd-lib-line[hidden],.hd-checks[hidden]{display:none}.hd-diff h3{font-weight:600;margin-top:.5rem}.hd-diff ul{display:flex;flex-direction:column;gap:.2rem;margin-top:.25rem}.hd-diff .hd-add{color:var(--color-success, #6cc070)}.hd-diff .hd-rem{color:var(--color-error)}.hd-diff del{opacity:.7}.hd-diff ins{text-decoration:none;font-weight:600}.hd-checks ul{display:flex;flex-direction:column;gap:.25rem;margin-top:.5rem}.hd-checks li{padding-left:1.1rem;position:relative}.hd-checks li:before{content:"!";position:absolute;left:.2rem;font-weight:700;color:var(--color-copper)}.hd-checks li.hd-info{color:var(--color-muted)}.hd-checks li.hd-info:before{content:"i";color:var(--color-muted)}.hd-link-btn{color:var(--color-copper);text-decoration:underline;text-underline-offset:2px;font-size:inherit}.hd-link-btn:hover{color:var(--color-copper-hover)}@media(max-width:899px){.hd-mini{display:none!important}}.hd-yaml{font-family:var(--font-mono);font-size:.8rem;line-height:1.4;white-space:pre;overflow:auto;resize:vertical}
