/* ── Reset & base ─────────────────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html, body, #app { height: 100%; overflow: hidden; font-family: "Segoe UI", system-ui, sans-serif; font-size: 13px; } body { background: #12121c; color: #c8ccee; } /* ── Layout ───────────────────────────────────────────────────────────────── */ #app { display: flex; flex-direction: column; } #toolbar { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 48px; background: #0e0e1a; border-bottom: 1px solid #2a2a44; flex-shrink: 0; z-index: 10; } .toolbar-left { display: flex; align-items: center; gap: 10px; min-width: 220px; } .toolbar-center { display: flex; align-items: center; gap: 5px; flex: 1; justify-content: center; flex-wrap: wrap; } .toolbar-right { display: flex; align-items: center; gap: 8px; min-width: 180px; justify-content: flex-end; } .toolbar-label { font-size: 11px; color: #555577; white-space: nowrap; } #mode-indicator { text-align: center; font-size: 11px; color: #00cc88; background: #0a1a14; border-bottom: 1px solid #1a3a2a; height: 22px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; } #main { display: flex; flex: 1; overflow: hidden; } /* ── Sidebars ─────────────────────────────────────────────────────────────── */ #left-sidebar { width: 240px; flex-shrink: 0; background: #14142a; border-right: 1px solid #2a2a44; display: flex; flex-direction: column; overflow: hidden; } #right-sidebar { width: 248px; flex-shrink: 0; background: #14142a; border-left: 1px solid #2a2a44; overflow-y: auto; } .sidebar-section { display: flex; flex-direction: column; flex-shrink: 0; } .section-header { padding: 7px 10px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #6666aa; background: #10101e; border-bottom: 1px solid #222238; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; } /* ── Sidebar tabs ─────────────────────────────────────────────────────────── */ .tab-bar { display: flex; border-bottom: 1px solid #222238; background: #10101e; flex-shrink: 0; } .sidebar-tab { flex: 1; padding: 6px 4px; font-size: 11px; font-weight: 500; text-align: center; background: transparent; border: none; border-radius: 0; color: #555577; border-bottom: 2px solid transparent; cursor: pointer; transition: color .15s; } .sidebar-tab:hover { color: #9999cc; background: #18182e; } .sidebar-tab.active { color: #88aaff; border-bottom-color: #5577dd; } .tab-panel { display: flex; flex-direction: column; } /* ── Diagram list ─────────────────────────────────────────────────────────── */ #diagram-list { padding: 4px; } .diagram-item { padding: 6px 8px; border-radius: 5px; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; border: 1px solid transparent; margin-bottom: 2px; } .diagram-item:hover { background: #1e1e3a; border-color: #3a3a5a; } .diagram-item.active { background: #1a2a4a; border-color: #4466aa; } .di-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; font-size: 12px; cursor: pointer; } .di-date { font-size: 10px; color: #555577; margin-left: 6px; white-space: nowrap; cursor: pointer; } .di-del-btn { flex-shrink: 0; opacity: 0; padding: 1px 5px; font-size: 13px; line-height: 1; background: transparent; border-color: transparent; color: #ff6666; transition: opacity .15s; margin-left: 4px; } .diagram-item:hover .di-del-btn { opacity: 1; } .di-del-btn:hover { background: #3a1414; border-color: #aa3333; } .di-dup-btn { flex-shrink: 0; opacity: 0; padding: 1px 5px; font-size: 13px; line-height: 1; background: transparent; border-color: transparent; color: #88aaff; transition: opacity .15s; margin-left: 4px; } .diagram-item:hover .di-dup-btn { opacity: 1; } .di-dup-btn:hover { background: #1a1a40; border-color: #4466aa; } /* ── View tab bar ────────────────────────────────────────────────────────── */ #view-tab-bar { display: flex; align-items: center; gap: 2px; padding: 3px 8px; background: #0c0c1c; border-bottom: 1px solid #2a2a44; flex-shrink: 0; } .view-tab { padding: 3px 12px; font-size: 11px; border-radius: 4px 4px 0 0; background: #1a1a30; border: 1px solid #2a2a44; border-bottom: none; color: #8888aa; cursor: pointer; } .view-tab { display: inline-flex; align-items: center; gap: 4px; } .view-tab.active { background: #1e2a4a; border-color: #4466aa; color: #c0c8f0; } .view-tab:hover:not(.active) { background: #1e1e38; color: #aaa; } .view-tab-close { font-size: 13px; line-height: 1; opacity: 0.4; padding: 0 2px; border-radius: 3px; } .view-tab-close:hover { opacity: 1; background: rgba(255,80,80,0.25); color: #ff8888; } #btn-add-view { padding: 2px 8px; font-size: 14px; background: transparent; border: 1px dashed #333355; border-radius: 4px; color: #556; cursor: pointer; } #btn-add-view:hover { border-color: #5566aa; color: #99aadd; } /* ── Device library ───────────────────────────────────────────────────────── */ #device-library { padding: 6px; display: flex; flex-direction: column; gap: 3px; } .lib-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid #2a2a44; border-radius: 5px; cursor: grab; user-select: none; background: #18182e; transition: background .1s, border-color .1s; } .lib-item:hover { background: #22224a; border-color: #5555aa; } .lib-item:active { cursor: grabbing; } .lib-icon { font-size: 16px; width: 22px; text-align: center; } .lib-label { font-size: 12px; } /* ── Connector library ────────────────────────────────────────────────────── */ .lib-conn-item { padding: 7px 8px; border: 1px solid #1e1e38; border-radius: 5px; cursor: grab; background: #141428; margin-bottom: 3px; user-select: none; transition: background .1s, border-color .1s; } .lib-conn-item:hover { background: #1e1e40; border-color: #4444aa; } .lib-conn-item:active { cursor: grabbing; } .conn-name { font-size: 12px; font-weight: 500; color: #bbc0ee; } .conn-meta { font-size: 10px; color: #556688; margin-top: 1px; } /* ── Canvas area ──────────────────────────────────────────────────────────── */ #canvas-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; } #canvas-container { flex: 1; width: 100%; background-color: #131320; background-image: radial-gradient(circle, #2e2e50 1px, transparent 1px); background-size: 20px 20px; } #canvas-container.wire-mode { cursor: crosshair; } #canvas-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 5; } .placeholder-content { text-align: center; color: #44446a; pointer-events: all; } .placeholder-content h2 { font-size: 28px; margin-bottom: 10px; } .placeholder-content p { margin-bottom: 16px; } /* ── Buttons ──────────────────────────────────────────────────────────────── */ button { background: #22223a; border: 1px solid #3a3a5a; color: #c0c4e8; padding: 5px 11px; border-radius: 5px; cursor: pointer; font-size: 12px; transition: background .12s, border-color .12s; white-space: nowrap; } button:hover { background: #2e2e54; border-color: #5555aa; } button:active { background: #1a1a3a; } .mode-btn { padding: 5px 12px; } .mode-btn.active { background: #1e3a6a; border-color: #4488dd; color: #88bbff; } .route-btn { padding: 4px 10px; font-size: 11px; } .route-btn.active { background: #1a2a4a; border-color: #336699; color: #77aaee; } #btn-harness.active { background: #1a2a1a; border-color: #336633; color: #88ee88; } .danger-btn { color: #ff6666; border-color: #662222; } .danger-btn:hover { background: #3a1414; border-color: #aa3333; } .app-title { font-weight: 700; font-size: 15px; color: #88aaff; white-space: nowrap; } .diagram-name-input { background: #1a1a2e; border: 1px solid #2a2a44; color: #c8ccee; padding: 4px 8px; border-radius: 4px; font-size: 13px; width: 180px; } .diagram-name-input:focus { outline: none; border-color: #5566aa; } /* Export dropdown */ .export-wrap { position: relative; } #export-menu { display: none; position: absolute; right: 0; top: calc(100% + 4px); background: #1a1a2e; border: 1px solid #3a3a5a; border-radius: 6px; min-width: 170px; z-index: 100; overflow: hidden; flex-direction: column; } #export-menu.open { display: flex; } #export-menu button { border: none; border-radius: 0; text-align: left; padding: 8px 14px; border-bottom: 1px solid #222238; } #export-menu button:last-child { border-bottom: none; } /* Saved indicator */ #saved-indicator { font-size: 11px; color: #4caa77; background: #0f2a1a; border: 1px solid #1e4a2a; padding: 4px 10px; border-radius: 4px; opacity: 0; transition: opacity 0.3s; pointer-events: none; white-space: nowrap; } #saved-indicator.show { opacity: 1; } /* ── Octopart search results ──────────────────────────────────────────────── */ #octopart-results { margin-top: 5px; border: 1px solid #2a2a44; border-radius: 4px; background: #0e0e1e; max-height: 220px; overflow-y: auto; } .op-result { padding: 7px 9px; cursor: pointer; border-bottom: 1px solid #1a1a30; transition: background 0.1s; } .op-result:last-child { border-bottom: none; } .op-result:hover { background: #1a1a38; } .op-mpn { font-size: 11px; font-weight: 600; color: #c8ccee; } .op-mfr { font-size: 10px; color: #7788aa; margin-top: 1px; } .op-desc { font-size: 10px; color: #4a5566; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .op-ds { font-size: 10px; color: #4466aa; margin-top: 1px; } .op-no-results { padding: 10px; font-size: 11px; color: #444466; text-align: center; } #btn-octopart-search.searching { opacity: 0.5; pointer-events: none; } /* ── Properties panel ─────────────────────────────────────────────────────── */ .prop-row { padding: 7px 10px; border-bottom: 1px solid #1e1e36; } .prop-row label { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #555577; margin-bottom: 4px; } .prop-row input[type="text"], .prop-row input[type="number"], .prop-row select, .prop-row textarea { width: 100%; background: #0e0e1e; border: 1px solid #2a2a44; color: #c0c4e8; padding: 5px 7px; border-radius: 4px; font-size: 12px; font-family: inherit; } .prop-row input:focus, .prop-row select:focus, .prop-row textarea:focus { outline: none; border-color: #5566aa; } .prop-value { font-size: 12px; color: #99aacc; } .prop-value.mono { font-family: monospace; } .color-swatch { width: 36px; height: 28px; padding: 2px; cursor: pointer; border-radius: 4px; flex-shrink: 0; border: 1px solid #3a3a5a; } /* Pin table */ .pin-table { width: 100%; border-collapse: collapse; font-size: 11px; } .pin-table th { text-align: left; padding: 3px 4px; color: #555577; font-weight: 600; border-bottom: 1px solid #222238; } .pin-table td { padding: 2px 4px; border-bottom: 1px solid #1a1a30; vertical-align: middle; } .pin-table .pin-side { color: #444466; font-size: 10px; } .pin-input { width: 100%; background: #0e0e1e; border: 1px solid #2a2a44; color: #c0c4e8; padding: 2px 4px; border-radius: 3px; font-family: monospace; font-size: 11px; } .pin-side-select { width: 100%; background: #0e0e1e; border: 1px solid #2a2a44; color: #c0c4e8; padding: 2px 3px; border-radius: 3px; font-size: 11px; cursor: pointer; } /* ── Connector library extras ─────────────────────────────────────────────── */ .lib-section-header { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #555577; padding: 8px 8px 3px; border-top: 1px solid #1a1a30; margin-top: 4px; } .lib-section-header:first-child { border-top: none; margin-top: 0; } .conn-item-body { flex: 1; min-width: 0; } .conn-custom-badge { display: inline-block; font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: #2a1a4a; color: #9966ee; border: 1px solid #4422aa; border-radius: 3px; padding: 0 4px; vertical-align: middle; margin-left: 4px; } .lib-conn-item { display: flex; align-items: center; gap: 6px; } .conn-edit-btn { flex-shrink: 0; opacity: 0; padding: 3px 6px; font-size: 12px; background: #1e1e3a; border-color: #3a3a5a; transition: opacity .15s; } .lib-conn-item:hover .conn-edit-btn { opacity: 1; } .conn-edit-btn:hover { background: #2a2a5a; border-color: #6666aa; } /* ── Modal ───────────────────────────────────────────────────────────────── */ #connector-modal, #drc-modal, #git-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 1000; align-items: center; justify-content: center; } .modal-box { background: #16162a; border: 1px solid #3a3a5a; border-radius: 8px; width: 480px; max-width: 94vw; max-height: 86vh; display: flex; flex-direction: column; box-shadow: 0 8px 40px rgba(0,0,0,0.7); } .modal-header { padding: 14px 18px 12px; border-bottom: 1px solid #222238; flex-shrink: 0; } .modal-header h3 { font-size: 15px; font-weight: 600; color: #c8ccee; } .modal-body { padding: 14px 18px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; } .modal-footer { padding: 10px 18px; border-top: 1px solid #222238; display: flex; align-items: center; gap: 8px; flex-shrink: 0; } /* ── DRC ────────────────────────────────────────────────────────────────── */ .drc-category { border: 1px solid #2a2a44; border-radius: 5px; overflow: hidden; } .drc-cat-header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #1a1a30; cursor: pointer; user-select: none; } .drc-cat-header:hover { background: #1e1e3a; } .drc-cat-icon { font-size: 13px; } .drc-cat-label { flex: 1; font-size: 12px; font-weight: 600; color: #c0c4e8; } .drc-cat-count { font-size: 11px; font-weight: 700; background: #2a2a50; padding: 1px 7px; border-radius: 10px; color: #9090cc; } .drc-cat-body { padding: 4px 0; background: #0e0e1e; } .drc-row { padding: 5px 14px; font-size: 11px; color: #a0a4c8; border-bottom: 1px solid #151528; } .drc-row:last-child { border-bottom: none; } .drc-none { color: #444466; font-style: italic; } /* ── Git modal ────────────────────────────────────────────────────────────── */ .git-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #1a1a30; color: #8899bb; border: 1px solid #2a2a44; } .git-badge.git-clean { color: #88cc88; border-color: #336633; } .git-badge.git-dirty { color: #ddaa44; border-color: #554422; } .git-section { display: flex; flex-direction: column; gap: 5px; } .git-section-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #555577; } .git-log-row { display: grid; grid-template-columns: 52px 1fr 80px auto; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 3px; background: #0d0d20; border: 1px solid transparent; } .git-log-row:hover { border-color: #2a2a44; } .git-hash { font-family: monospace; color: #6688cc; font-size: 11px; } .git-msg { color: #bbc; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .git-date { color: #445; font-size: 10px; text-align: right; } .git-scope-btn { font-size: 10px; padding: 2px 8px; background: #111122; border: 1px solid #2a2a44; color: #445566; cursor: pointer; } .git-scope-btn:first-of-type { border-radius: 3px 0 0 3px; } .git-scope-btn:last-of-type { border-radius: 0 3px 3px 0; border-left: none; } .git-scope-btn.active { background: #1a2840; border-color: #334466; color: #88aadd; } .git-scope-btn:disabled { opacity: 0.35; cursor: default; } .git-restore-btn { font-size: 10px; padding: 2px 6px; background: #1a2840; border: 1px solid #334466; border-radius: 3px; color: #88aadd; cursor: pointer; white-space: nowrap; } .git-restore-btn:hover { background: #223355; color: #aaccff; } .cm-label { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #555577; margin-bottom: 4px; } .cm-input { width: 100%; background: #0e0e1e; border: 1px solid #2a2a44; color: #c0c4e8; padding: 6px 8px; border-radius: 4px; font-size: 12px; font-family: inherit; } .cm-input:focus { outline: none; border-color: #5566aa; } .cm-row { display: flex; flex-direction: column; } .cm-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } #cm-pin-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-height: 220px; overflow-y: auto; padding: 4px 0; } .pin-label-row { display: flex; align-items: center; gap: 5px; } .pin-idx { width: 22px; text-align: right; flex-shrink: 0; font-size: 10px; font-weight: 600; color: #555577; font-family: monospace; } .pin-label-input { flex: 1; background: #0e0e1e; border: 1px solid #222238; color: #c0c4e8; padding: 4px 6px; border-radius: 3px; font-size: 11px; font-family: monospace; } .pin-label-input:focus { outline: none; border-color: #5566aa; } .btn-primary { background: #1e3a6a; border-color: #4488dd; color: #88bbff; font-weight: 600; } .btn-primary:hover { background: #264a8a; border-color: #66aaff; } .btn-primary:disabled { opacity: 0.5; cursor: default; } /* Pin remove button */ .pin-del-btn { padding: 0 4px; font-size: 12px; line-height: 1.4; background: transparent; border-color: transparent; color: #ff6666; opacity: 0; transition: opacity .15s; } .pin-table tr:hover .pin-del-btn { opacity: 1; } .pin-del-btn:hover { background: #3a1414; border-color: #aa3333; } /* Wire drag cursor hint */ #canvas-container.wire-drag { cursor: grabbing; } /* ── Context menu ─────────────────────────────────────────────────────────── */ #ctx-menu { position: fixed; z-index: 9000; display: none; background: #1a1a2e; border: 1px solid #3a3a66; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.55); padding: 4px 0; min-width: 170px; user-select: none; } #ctx-menu.open { display: block; } .ctx-item { padding: 7px 14px; font-size: 12px; color: #c0c4e8; cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; } .ctx-item:hover { background: #2a2a50; color: #fff; } .ctx-item.danger { color: #dd6666; } .ctx-item.danger:hover { background: #3a1414; color: #ff8888; } .ctx-sep { height: 1px; background: #2a2a44; margin: 4px 0; } /* Misc */ input[type="checkbox"] { accent-color: #5588dd; width: 14px; height: 14px; cursor: pointer; } ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: #2a2a44; border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: #3a3a66; } .muted { color: #444466; } .small { font-size: 11px; } .sep { width: 1px; height: 22px; background: #2a2a44; margin: 0 3px; }