:root{--buncss-light:initial;--buncss-dark: ;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,Avenir,Helvetica,Arial,sans-serif;line-height:1.5}@media (prefers-color-scheme:dark){:root{--buncss-light: ;--buncss-dark:initial}}body{position:relative;overflow:hidden;min-width:320px;min-height:100vh;margin:0}body:before{content:"";position:fixed;z-index:-1;opacity:.05;pointer-events:none;inset:0}@keyframes slide{0%{background-position:0 0}to{background-position:256px 224px}}.top-header{position:fixed;display:flex;z-index:100;background:#0b0f15;border-bottom:1px solid #2b3242;align-items: center;gap:12px;padding:6px 10px;top:0;left:0;right:0}.top-header-right{padding-right:12px}.layout-root{display:flex;overflow:hidden;box-sizing:border-box;width:100vw;height:100vh;padding-top:44px;font-size:14px}.sidebar{display:flex;box-sizing:border-box;overflow-y:auto;background:#151c23;border-right:1px solid #27323d;flex-direction:column;flex-shrink:0;gap:16px;width:260px;padding:12px 14px 18px}.app-title{display:none}.palette{display:flex;flex-direction:column;gap:6px}.palette-item{color:#e2e8f0;text-align:left;cursor:pointer;display:flex;font:inherit;background:#1e2731;border:1px solid #2d3a46;border-radius:8px;flex-direction:column;gap:2px;padding:8px 10px;transition:background .15s,border .15s}.palette-item:hover{background:#25323d;border-color:#3a4b59}.pi-name{font-size:13px;font-weight:600}.pi-ports{opacity:.7;font-size:11px}.legend h2{margin:12px 0 4px;font-size:13px;font-weight:600}.legend ul{list-style:none;display:flex;flex-direction:column;gap:4px;margin:0;padding:0;font-size:12px}.legend li{display:flex;align-items: center;gap:6px}.dot{display:inline-block;border-radius:50%;width:10px;height:10px}.dot-sdi{background:#0ea5e9}.dot-hdmi{background:#22c55e}.dot-eth{background:#a855f7}.diagram-pane{position:relative;overflow:hidden;background:radial-gradient(circle at 40% 30%,#10161d 0%,#0b1015 70%);flex:1}.modal-overlay{position:fixed;display:flex;z-index:50;overflow-y:auto;background:#0000008c;justify-content:center;align-items: flex-start;padding:60px 24px 40px;inset:0}.modal-panel{display:flex;animation:.18s pop;background:#141a21;border:1px solid #27323d;border-radius:14px;flex-direction:column;width:760px;max-width:100%;box-shadow:0 10px 40px -10px #00000080,inset 0 0 0 1px #ffffff0a}@keyframes pop{0%{transform:translateY(8px)scale(.97);opacity:0}to{transform:translateY(0)scale(1);opacity:1}}.modal-header{display:flex;border-bottom:1px solid #1f272f;justify-content:space-between;align-items: center;padding:14px 18px 10px}.modal-header h2{letter-spacing:.4px;margin:0;font-size:16px;font-weight:600}.modal-body{display:flex;flex-direction:column;gap:20px;padding:14px 18px 4px}.modal-footer{display:flex;border-top:1px solid #1f272f;justify-content:flex-end;gap:12px;padding:12px 18px 16px}.icon-btn{color:#cbd5e1;cursor:pointer;display:inline-flex;background:#202a34;border:1px solid #31404c;border-radius:8px;justify-content:center;align-items: center;width:32px;height:32px;font-size:14px}.icon-btn:hover{background:#273341}.icon-btn.danger{color:#fca5a5;background:#3a1f22;border-color:#4e2a2f}.icon-btn.danger:hover{background:#4a262a}.primary-btn,.secondary-btn,.small-btn{font:inherit;letter-spacing:.4px;cursor:pointer;border:1px solid;border-radius:8px;padding:8px 18px;font-weight:600}.primary-btn{color:#fff;background:#2563eb;border-color:#1d4ed8}.primary-btn:hover:not(:disabled){background:#1d4ed8}.primary-btn:disabled{opacity:.4;cursor:not-allowed}.secondary-btn{color:#cbd5e1;background:#1e2731;border-color:#2d3a46}.secondary-btn:hover{background:#25323d}.small-btn{color:#e2e8f0;background:#1e2731;border-color:#324250;border-radius:6px;padding:6px 12px;font-size:12px}.small-btn:hover{background:#273341}.small-btn.port-settings__btn--icon{display:inline-flex;border-radius:8px;justify-content:center;align-items: center;width:28px;height:28px;padding:6px}.small-btn.port-settings__btn--icon svg{display:block}.port-settings__actions .small-btn{display:inline-flex;align-items: center;gap:6px}.port-settings__actions .small-btn svg{display:block}.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:14px 18px}.form-grid label{display:flex;text-transform:uppercase;letter-spacing:.6px;color:#64748b;flex-direction:column;gap:4px;font-size:12px}.form-grid input,.ports-table input,.ports-table select{color:#e2e8f0;font:inherit;background:#1c242c;border:1px solid #2b3946;border-radius:6px;padding:6px 8px;font-size:13px}.form-grid input:focus,.ports-table input:focus,.ports-table select:focus{outline:2px solid #2563eb;outline-offset:0}.ports-section{display:flex;flex-direction:column;gap:10px}.ports-header{display:flex;justify-content:space-between;align-items: center}.ports-table{display:flex;overflow-y:auto;flex-direction:column;gap:6px;max-height:320px;padding-right:4px}.port-row{display:grid;grid-template-columns:70px 110px 100px 70px 60px 60px 40px;align-items: center;gap:6px}.port-row input,.port-row select{height:32px}.empty-hint{opacity:.6;padding:4px 2px;font-size:12px}.error-box{color:#fecaca;display:flex;background:#3a1f1f;border:1px solid #4d2727;border-radius:8px;flex-direction:column;gap:4px;padding:8px 10px;font-size:12px}.logo-container{display:flex;justify-content:center;align-items: center;gap:2rem;margin-bottom:2rem}.logo{will-change:filter;height:6em;padding:1.5em;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.bun-logo{transform:scale(1.2)}.bun-logo:hover{filter:drop-shadow(0 0 2em #fbf0dfaa)}.react-logo{animation:20s linear infinite spin}.react-logo:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}h1{font-size:3.2em;line-height:1.1}code{background-color:#1a1a1a;border-radius:.3em;padding:.2em .4em;font-family:monospace}.api-tester{text-align:left;display:flex;flex-direction:column;gap:1rem;width:100%;max-width:600px;margin:2rem auto 0}.endpoint-row{display:flex;font:monospace;box-sizing:border-box;background:#1a1a1a;border:2px solid #fbf0df;border-radius:12px;align-items: center;gap:.5rem;width:100%;padding:.75rem;transition:all .3s}.endpoint-row:focus-within{border-color:#f3d5a3}.method{color:#1a1a1a;appearance:none;display:block;background:#fbf0df;border:none;border-radius:8px;flex-shrink:0;width:min-content;margin:0;padding:.3rem .7rem;font-size:.9em;font-weight:700}.method option{text-align:left}.url-input{color:#fbf0df;outline:0;background:0;border:0;flex:1;width:100%;padding:.2rem;font:1em monospace}.url-input:focus{color:#fff}.url-input::placeholder{color:#fbf0df66}.send-button{color:#1a1a1a;cursor:var(--bun-cursor);background:#fbf0df;border:0;border-radius:8px;padding:.4rem 1.2rem;transition:all .1s;font-weight:700}.send-button:hover{cursor:pointer;background:#f3d5a3;transform:translateY(-1px)}.response-area{color:#fbf0df;font:monospace;resize:vertical;box-sizing:border-box;background:#1a1a1a;border:2px solid #fbf0df;border-radius:12px;width:100%;min-height:120px;padding:.75rem}.response-area:focus{border-color:#f3d5a3}.response-area::placeholder{color:#fbf0df66}@media (prefers-reduced-motion){*,:before,:after{animation:none!important}}.port-settings input,.port-settings select,.port-editor input,.port-editor select{color:#e5edf5;background:#15202b;border:1px solid #243343;border-radius:10px;padding:8px 10px}.port-settings input:focus,.port-settings select:focus,.port-editor input:focus,.port-editor select:focus{outline:2px solid #3b82f6}.device-settings input,.device-settings select{color:#e6eef7;box-sizing:border-box;background:#0f1720;border:1px solid #263240;border-radius:10px;width:100%;padding:8px 10px}.device-settings input::placeholder{color:#8aa1b6;opacity:.7}.device-settings input:focus,.device-settings select:focus{outline:2px solid #3b82f6}.device-settings select{appearance:none;background-image:linear-gradient(45deg,#0000 50%,#8aa1b6 50%),linear-gradient(135deg,#8aa1b6 50%,#0000 50%);background-position:calc(100% - 16px) calc(1em + 2px),calc(100% - 11px) calc(1em + 2px);background-repeat:no-repeat;background-size:5px 5px,5px 5px;padding-right:28px}.device-settings select:focus{background-image:linear-gradient(45deg,#0000 50%,#d1e0ee 50%),linear-gradient(135deg,#d1e0ee 50%,#0000 50%)}.btn-group{display:inline-flex;overflow:hidden;background:#121a22;border:1px solid #2b3946;border-radius:10px;align-items: center;gap:0}.btn-group .btn{color:#cbd5e1;font:inherit;cursor:pointer;background:0 0;border:0;padding:6px 10px;font-size:12px}.btn-group .btn+.btn{border-left:1px solid #2b3946}.btn-group .btn:hover{background:#1a2430}.btn-group .btn.is-active{color:#fff;background:#2b6cb0;box-shadow:inset 0 0 0 1px #3b82f6}.btn-group--sm .btn{padding:4px 8px;font-size:11px}.save-error-banner{position:fixed;z-index:1000;display:flex;color:#fee2e2;background:#7f1d1d;border:1px solid #ef4444;border-radius:8px;align-items: center;gap:12px;max-width:calc(100vw - 32px);padding:10px 14px;font-size:13px;bottom:16px;left:50%;transform:translate(-50%);box-shadow:0 6px 20px #0006}.doc-row{display:flex;align-items: center;gap:10px}.doc-open{text-align:left;color:#e2e8f0;cursor:pointer;font:inherit;background:#1a222b;border:1px solid #2b3846;border-radius:8px;flex:1;padding:8px 12px}.doc-open:hover:not(:disabled){background:#22303d}.doc-open:disabled{opacity:.7;cursor:default}.doc-name{font-weight:600}.doc-meta{color:#94a3b8;margin-top:2px;font-size:12px}.doc-title{cursor:text;border-bottom:1px dashed #0000}.doc-title:hover{border-bottom-color:#64748b}.sidebar{overflow:hidden;gap:10px;width:300px;padding:10px 10px 12px}.library-head{display:flex;flex-direction:column;gap:8px}.library-search{box-sizing:border-box;color:#e2e8f0;font:inherit;background:#0f141b;border:1px solid #2d3a46;border-radius:8px;width:100%;padding:7px 10px;font-size:13px}.library-search:focus{outline:none;border-color:#3b82f6}.library-controls{display:flex;align-items: center;gap:6px}.library-controls select{color:#e2e8f0;font:inherit;background:#1e2731;border:1px solid #324250;border-radius:6px;flex:1;min-width:0;padding:5px 6px;font-size:12px}.library-controls .small-btn{padding:5px 8px}.tag-chips{display:flex;flex-wrap:wrap;gap:4px}.tag-chip{font:inherit;color:#cbd5e1;cursor:pointer;background:#1a222b;border:1px solid #324250;border-radius:999px;padding:2px 8px;font-size:11px}.tag-chip:hover{background:#22303d}.tag-chip.active{color:#fff;background:#1d4ed8;border-color:#3b82f6}.library-tree{overflow-y:auto;flex:1;min-height:0;margin:0 -4px;padding:0 4px;font-size:13px}.tree-branch{display:flex;cursor:pointer;user-select:none;color:#e2e8f0;border-radius:6px;align-items: center;gap:6px;padding:4px 6px}.tree-branch:hover{background:#1e2731}.tree-caret{display:inline-block;color:#64748b;width:10px;transition:transform .12s;font-size:11px}.tree-caret.open{transform:rotate(90deg)}.tree-branch-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600}.tree-count{color:#64748b;font-size:11px}.tree-leaf{display:flex;cursor:grab;color:#cbd5e1;border-radius:6px;align-items: center;gap:8px;padding:4px 8px}.tree-leaf:hover{color:#fff;background:#1e2731}.tree-leaf-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.tree-leaf-meta{color:#64748b;white-space:nowrap;font-size:11px}.tree-empty{color:#94a3b8;padding:10px 6px;font-size:12px}.legend ul{flex-flow:wrap;gap:4px 10px;font-size:11px}.prop-field{display:flex;color:#94a3b8;flex-direction:column;gap:4px;font-size:12px}.prop-field input{color:#e2e8f0;font:inherit;background:#0f141b;border:1px solid #2d3a46;border-radius:6px;padding:7px 10px;font-size:13px}.prop-path{color:#93c5fd;font-family:ui-monospace,monospace;font-size:12px}
