/* ── Catppuccin Mocha palette ──────────────────────────────── */ :root { --bg: #1e1e2e; --mantle: #181825; --crust: #11111b; --surface0: #313244; --surface1: #45475a; --surface2: #585b70; --overlay0: #6c7086; --overlay1: #7f849c; --text: #cdd6f4; --subtext0: #a6adc8; --subtext1: #bac2de; --accent: #89b4fa; --green: #a6e3a1; --red: #f38ba8; --yellow: #f9e2af; --peach: #fab387; --mauve: #cba6f7; --teal: #94e2d5; --sky: #89dceb; --lavender: #b4befe; --pink: #f5c2e7; --radius: 8px; --sidebar-w: 280px; --topbar-h: 52px; --trigbar-h: 0px; --statusbar-h: 0px; --transition: 0.18s ease; --border: var(--surface0); --fg: var(--text); --fg2: var(--subtext0); --bg2: var(--mantle); --bg3: var(--surface0); } *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html, body { height:100%; background:var(--bg); color:var(--text); font-family:'Segoe UI',system-ui,sans-serif; font-size:14px; overflow:hidden; } ::-webkit-scrollbar { width:6px; } ::-webkit-scrollbar-track { background:var(--mantle); } ::-webkit-scrollbar-thumb { background:var(--surface1); border-radius:3px; } /* ── Global element overrides ────────────────────────────── */ button { background:var(--surface0); border:1px solid var(--surface1); color:var(--text); padding:2px 8px; border-radius:4px; cursor:pointer; white-space:nowrap; } button:hover { background:var(--surface1); } button.active { background:var(--accent); color:var(--crust); border-color:var(--accent); } button.danger { background:var(--red); color:var(--crust); border-color:var(--red); } button.warn { background:var(--peach); color:var(--crust); border-color:var(--peach); } button.ok { background:var(--green); color:var(--crust); border-color:var(--green); } select { background:var(--surface0); border:1px solid var(--surface1); color:var(--text); padding:2px 4px; border-radius:4px; outline:none; cursor:pointer; } select:hover { border-color:var(--accent); } input[type=text], input[type=number] { background:var(--surface0); border:1px solid var(--surface1); color:var(--text); padding:2px 6px; border-radius:4px; outline:none; } input[type=text]:focus, input[type=number]:focus { border-color:var(--accent); } /* ── uPlot overrides ─────────────────────────────────────────── */ .uplot { background:transparent !important; } .uplot .u-over { cursor: crosshair; } .uplot .u-cursor-x, .uplot .u-cursor-y { border-color: #585b70 !important; } .uplot .u-select { background: rgba(137,180,250,0.1) !important; border: 1px solid rgba(137,180,250,0.4) !important; } /* ── Top bar ─────────────────────────────────────────────────── */ #topbar { position:fixed; top:0; left:0; right:0; height:var(--topbar-h); background:var(--mantle); border-bottom:1px solid var(--surface0); display:flex; align-items:center; gap:10px; padding:0 14px; z-index:100; box-shadow:0 2px 8px rgba(0,0,0,0.4); } #app-title { font-weight:700; font-size:15px; color:var(--accent); white-space:nowrap; letter-spacing:0.3px; flex-shrink:0; } .topbar-sep { flex:1; min-width:4px; } #status-led { width:8px; height:8px; border-radius:50%; background:var(--red); flex-shrink:0; transition:background var(--transition); } #status-led.green { background:var(--green); animation:pulse-green 2s infinite; } #status-led.orange { background:var(--yellow); animation:pulse-orange 1.5s infinite; } @keyframes pulse-green { 0%,100%{box-shadow:0 0 0 0 rgba(166,227,161,0.4)} 50%{box-shadow:0 0 0 4px rgba(166,227,161,0)} } @keyframes pulse-orange { 0%,100%{box-shadow:0 0 0 0 rgba(249,226,175,0.4)} 50%{box-shadow:0 0 0 4px rgba(249,226,175,0)} } #status-text { font-size:11px; color:var(--subtext0); white-space:nowrap; } #sb-tsage { font-size:11px; color:var(--overlay0); white-space:nowrap; font-family:monospace; } #cursor-readout { display:none; align-items:center; gap:8px; font-size:11px; font-family:monospace; background:var(--surface0); border:1px solid var(--surface1); border-radius:5px; padding:3px 8px; white-space:nowrap; flex-shrink:0; } #cursor-readout.visible { display:flex; } #cur-ta { color:var(--sky); } #cur-tb { color:var(--yellow); } #cur-dt { color:var(--subtext1); } .cur-sep { color:var(--surface2); } .topbar-vsep { width:1px; height:22px; background:var(--surface0); flex-shrink:0; margin:0 2px; } #layout-btns { display:flex; gap:2px; align-items:center; flex-shrink:0; } .ctrl-label { font-size:12px; color:var(--subtext0); white-space:nowrap; flex-shrink:0; } select.ctrl-select { background:var(--surface0); color:var(--text); border:1px solid var(--surface1); border-radius:var(--radius); padding:4px 6px; font-size:12px; cursor:pointer; outline:none; flex-shrink:0; } select.ctrl-select:hover { border-color:var(--accent); } button.ctrl-btn { background:var(--surface0); color:var(--text); border:1px solid var(--surface1); border-radius:var(--radius); padding:4px 12px; font-size:12px; cursor:pointer; white-space:nowrap; flex-shrink:0; transition:background var(--transition),border-color var(--transition); } button.ctrl-btn:hover { background:var(--surface1); border-color:var(--accent); } button.ctrl-btn.active { background:var(--surface1); border-color:var(--accent); color:var(--accent); } button.ctrl-btn.trig-active { background:rgba(203,166,247,0.15); border-color:var(--mauve); color:var(--mauve); } button.ctrl-btn.cursor-a { border-color:var(--sky); color:var(--sky); } button.ctrl-btn.cursor-b { border-color:var(--yellow); color:var(--yellow); } button.ctrl-btn.resume-btn { border-color:var(--teal); color:var(--teal); } /* ── Connection dropdown (debug menu) ─────────────────────── */ .menu-wrap { position:relative; } .dropdown { position:absolute; top:calc(100% + 4px); left:0; z-index:300; background:var(--mantle); border:1px solid var(--surface1); border-radius:var(--radius); box-shadow:0 6px 20px rgba(0,0,0,.5); padding:6px; min-width:280px; display:none; flex-direction:column; gap:6px; } .dropdown.open { display:flex; } .menu-row { display:flex; align-items:center; gap:6px; } .menu-row input[type=text], .menu-row input[type=number] { font-size:11px; } .menu-row label { font-size:11px; } .menu-btn-row { display:flex; gap:4px; } .menu-btn-row button { flex:1; font-size:11px; } .menu-sep { border:none; border-top:1px solid var(--surface1); margin:2px 0; } #conn-status { width:8px; height:8px; border-radius:50%; background:var(--red); display:inline-block; flex-shrink:0; vertical-align:middle; } #conn-status.ok { background:var(--green); } /* ── Trigger bar ──────────────────────────────────────────────── */ #trigbar { position:fixed; top:var(--topbar-h); left:0; right:0; background:var(--crust); border-bottom:1px solid var(--surface0); display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:0 16px; z-index:99; height:0; overflow:hidden; transition:height var(--transition),padding var(--transition); } #trigbar.open { height:48px; padding:0 16px; } .trig-group { display:flex; align-items:center; gap:6px; } .trig-sep { width:1px; height:24px; background:var(--surface0); flex-shrink:0; } .trig-label { font-size:11px; color:var(--subtext0); white-space:nowrap; } select.trig-select { background:var(--surface0); color:var(--text); border:1px solid var(--surface1); border-radius:5px; padding:3px 6px; font-size:12px; cursor:pointer; outline:none; } select.trig-select:hover { border-color:var(--mauve); } input.trig-input { background:var(--surface0); color:var(--text); border:1px solid var(--surface1); border-radius:5px; padding:3px 6px; font-size:12px; outline:none; width:80px; } input.trig-input:focus { border-color:var(--mauve); } input[type=range].trig-range { -webkit-appearance:none; width:90px; height:4px; background:var(--surface1); border-radius:2px; outline:none; cursor:pointer; } input[type=range].trig-range::-webkit-slider-thumb { -webkit-appearance:none; width:12px; height:12px; border-radius:50%; background:var(--mauve); cursor:pointer; } .trig-range-val { font-size:11px; color:var(--mauve); min-width:28px; } #trig-status-badge { font-size:11px; font-weight:700; letter-spacing:0.8px; padding:3px 10px; border-radius:12px; border:1px solid var(--surface1); background:var(--surface0); color:var(--subtext0); min-width:80px; text-align:center; white-space:nowrap; } #trig-status-badge.armed { background:rgba(166,227,161,0.12); border-color:var(--green); color:var(--green); } #trig-status-badge.waiting { background:rgba(249,226,175,0.12); border-color:var(--yellow); color:var(--yellow); } #trig-status-badge.triggered { background:rgba(203,166,247,0.15); border-color:var(--mauve); color:var(--mauve); } #btn-trig-rearm, #btn-trig-stop { border:none; border-radius:5px; padding:4px 12px; font-size:12px; font-weight:600; cursor:pointer; display:none; } #btn-trig-rearm { background:var(--mauve); color:var(--crust); } #btn-trig-stop { background:var(--surface1); color:var(--yellow); border:1px solid var(--yellow); } #btn-trig-rearm:hover, #btn-trig-stop:hover { opacity:0.85; } /* ── Body: outer flex-column container ───────────────────── */ #body { position:fixed; top:calc(var(--topbar-h) + var(--trigbar-h)); left:0; right:0; bottom:0; display:flex; flex-direction:column; overflow:hidden; transition:top var(--transition); } /* ── Step status bar (inside #body, at top) ──────────────── */ #step-bar { background:rgba(45,43,69,0.95); border-bottom:1px solid var(--surface0); padding:4px 8px; display:none; align-items:center; gap:8px; flex-shrink:0; font-size:11px; } #step-bar.visible { display:flex; } #step-bar button { font-size:11px; } #step-bar button.ok { background:var(--green); color:var(--crust); border-color:var(--green); } /* ── Inner horizontal row: sidebar | strip | main | strip | right-panel */ #body-row { display:flex; flex-direction:row; flex:1; min-height:0; overflow:hidden; } /* ── Sidebar ──────────────────────────────────────────────────── */ #sidebar { width:var(--sidebar-w); min-width:var(--sidebar-w); background:var(--mantle); border-right:1px solid var(--surface0); display:flex; flex-direction:column; transition:width var(--transition),min-width var(--transition); overflow:hidden; } #sidebar.collapsed { width:0; min-width:0; } #sidebar-header { display:flex; align-items:center; justify-content:space-between; padding:10px 14px; border-bottom:1px solid var(--surface0); font-weight:600; color:var(--subtext1); font-size:12px; text-transform:uppercase; letter-spacing:0.8px; flex-shrink:0; } /* ── Sidebar dual-tab (Signals / Object Tree) ─────────────── */ .panel-tabs { display:flex; border-bottom:1px solid var(--surface0); flex-shrink:0; } .panel-tab { flex:1; padding:4px 6px; text-align:center; cursor:pointer; color:var(--subtext0); font-size:11px; font-weight:500; border-bottom:2px solid transparent; transition:color var(--transition), border-color var(--transition); } .panel-tab:hover { color:var(--subtext1); } .panel-tab.active { color:var(--accent); border-bottom-color:var(--accent); } .sidebar-tab-body { display:none; flex:1; flex-direction:column; overflow:hidden; } .sidebar-tab-body.active { display:flex; } .panel-search { padding:4px; flex-shrink:0; border-bottom:1px solid var(--surface0); } .panel-search input { width:100%; font-size:11px; } .panel-body { flex:1; overflow-y:auto; padding:4px; } /* ── Signal list ──────────────────────────────────────────── */ #signal-list { flex:1; overflow-y:auto; padding:8px 0; } .sig-item { padding:6px 14px; cursor:grab; border-radius:6px; margin:1px 6px; transition:background var(--transition); display:flex; align-items:center; gap:8px; user-select:none; } .sig-item:hover { background:var(--surface0); } .sig-item:active { cursor:grabbing; } .sig-item.dragging { opacity:0.4; } .sig-name { flex:1; font-size:13px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .sig-unit { font-size:11px; color:var(--subtext0); font-style:italic; } .type-badge { font-size:10px; background:var(--surface1); color:var(--subtext1); padding:1px 5px; border-radius:3px; white-space:nowrap; } .array-group {} .array-header { padding:6px 14px 6px 10px; cursor:pointer; border-radius:6px; margin:1px 6px; transition:background var(--transition); display:flex; align-items:center; gap:6px; user-select:none; } .array-header:hover { background:var(--surface0); } .array-arrow { font-size:10px; color:var(--subtext0); transition:transform var(--transition); display:inline-block; } .array-header.open .array-arrow { transform:rotate(90deg); } .array-children { display:none; padding-left:16px; } .array-header.open + .array-children { display:block; } .array-child { padding:4px 14px 4px 8px; cursor:grab; border-radius:6px; margin:1px 6px; transition:background var(--transition); display:flex; align-items:center; gap:8px; user-select:none; color:var(--subtext1); font-size:12px; } .array-child:hover { background:var(--surface0); } .array-child:active { cursor:grabbing; } /* ── Resize / collapse strips ─────────────────────────────── */ .panel-strip { width:6px; flex-shrink:0; cursor:col-resize; background:var(--mantle); border:none; position:relative; transition:background 0.1s; } .panel-strip::after { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:2px; height:32px; background:var(--surface1); border-radius:1px; pointer-events:none; } .panel-strip:hover { background:var(--surface0); } .panel-strip:hover::after { background:var(--accent); } /* ── Main area ────────────────────────────────────────────────── */ #main { flex:1; display:flex; flex-direction:column; overflow:hidden; min-width:0; } /* Layout toggle button in topbar */ #btn-layout { display:flex; align-items:center; gap:4px; font-size:11px; padding:3px 8px; } #btn-layout svg { flex-shrink:0; } #btn-layout span { flex-shrink:0; } .layout-toggle { font-size:11px; } /* Layout dropdown menu */ #layout-menu { position:fixed; z-index:200; background:var(--mantle); border:1px solid var(--surface1); border-radius:var(--radius); box-shadow:0 6px 20px rgba(0,0,0,0.5); display:none; grid-template-columns:1fr 1fr; gap:4px; padding:6px; } #layout-menu.open { display:grid; } .layout-menu-item { display:flex; flex-direction:column; align-items:center; gap:3px; padding:5px 10px; cursor:pointer; background:var(--surface0); border:1px solid var(--surface1); border-radius:6px; color:var(--subtext1); font-size:10px; font-family:monospace; transition:background var(--transition),border-color var(--transition),color var(--transition); } .layout-menu-item:hover { background:var(--surface1); border-color:var(--accent); color:var(--accent); } .layout-menu-item.active { background:var(--surface1); border-color:var(--accent); color:var(--accent); } /* ── Plot grid ────────────────────────────────────────────────── */ #plot-grid { flex:1; min-height:0; display:grid; gap:0; padding:0; overflow:hidden; border-top:1px solid var(--surface0); border-left:1px solid var(--surface0); position:relative; } .resize-handle-v { position:absolute; top:0; bottom:0; width:6px; cursor:col-resize; z-index:20; transform:translateX(-50%); background:transparent; transition:background 0.15s; } .resize-handle-h { position:absolute; left:0; right:0; height:6px; cursor:row-resize; z-index:20; transform:translateY(-50%); background:transparent; transition:background 0.15s; } .resize-handle-v:hover,.resize-handle-v.dragging, .resize-handle-h:hover,.resize-handle-h.dragging { background:rgba(137,180,250,0.35); } #plot-grid.l1x1 { grid-template-columns:1fr; grid-template-rows:1fr; } #plot-grid.l2x1 { grid-template-columns:1fr 1fr; grid-template-rows:1fr; } #plot-grid.l1x2 { grid-template-columns:1fr; grid-template-rows:1fr 1fr; } #plot-grid.l2x2 { grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; } #plot-grid.l3x1 { grid-template-columns:1fr 1fr 1fr; grid-template-rows:1fr; } #plot-grid.l1x3 { grid-template-columns:1fr; grid-template-rows:1fr 1fr 1fr; } #plot-grid.l3x2 { grid-template-columns:1fr 1fr 1fr; grid-template-rows:1fr 1fr; } #plot-grid.l2x3 { grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr 1fr; } #plot-grid.l1x4 { grid-template-columns:1fr; grid-template-rows:1fr 1fr 1fr 1fr; } #plot-grid.l4x1 { grid-template-columns:1fr 1fr 1fr 1fr; grid-template-rows:1fr; } /* ── Plot card ────────────────────────────────────────────────── */ .plot-card { background:var(--bg); border-right:1px solid var(--surface0); border-bottom:1px solid var(--surface0); border-radius:0; display:flex; flex-direction:column; min-height:0; position:relative; overflow:hidden; } .plot-card.drag-over { background:rgba(137,180,250,0.04); box-shadow:inset 0 0 0 2px var(--accent); } .plot-card-header { z-index:5; flex-shrink:0; background:rgba(17,17,27,0.88); backdrop-filter:blur(6px); border-bottom:1px solid var(--surface1); display:flex; align-items:center; gap:5px; padding:3px 8px; min-height:26px; overflow:hidden; } .plot-title { font-size:11px; color:var(--subtext1); font-weight:600; cursor:pointer; border:1px solid transparent; border-radius:3px; padding:1px 4px; background:transparent; white-space:nowrap; user-select:none; flex-shrink:0; max-width:100px; overflow:hidden; text-overflow:ellipsis; transition:border-color 0.15s, background 0.15s; } .plot-title:hover { border-color:var(--surface1); background:rgba(88,91,112,0.4); } .plot-cfg-bar { flex-shrink:0; background:rgba(17,17,27,0.92); border-top:1px solid var(--surface1); padding:3px 8px; } .sig-badges { display:flex; flex-wrap:nowrap; gap:3px; flex:1; overflow:hidden; min-width:0; } .sig-badge { display:inline-flex; align-items:center; gap:3px; background:rgba(69,71,90,0.6); color:var(--subtext1); border-radius:10px; padding:1px 6px 1px 4px; font-size:10px; white-space:nowrap; flex-shrink:0; cursor:pointer; } .trace-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; display:inline-block; } .sig-badge-x { cursor:pointer; color:var(--overlay0); font-size:11px; line-height:1; margin-left:1px; transition:color var(--transition); } .sig-badge-x:hover { color:var(--red); } .sig-badge-active { outline:1px solid rgba(255,255,255,0.35); background:rgba(88,91,112,0.9); } .sig-badge-active .vscale-info { color:var(--subtext0); } .plot-body { flex:1; position:relative; min-height:0; overflow:hidden; } .drop-hint { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--overlay0); font-size:13px; pointer-events:none; } .trig-collect-overlay { position:absolute; inset:0; display:none; align-items:center; justify-content:center; pointer-events:none; z-index:10; } .plot-card.trig-collecting .trig-collect-overlay { display:flex; } .trig-collect-text { background:rgba(49,50,68,0.82); color:var(--mauve); font-size:11px; font-weight:600; padding:4px 12px; border-radius:20px; border:1px solid var(--mauve); } /* ── Signal style context menu ────────────────────────────────── */ #sig-ctx-menu { position:fixed; z-index:300; background:var(--mantle); border:1px solid var(--surface1); border-radius:var(--radius); box-shadow:0 8px 24px rgba(0,0,0,0.6); padding:10px; min-width:210px; } .ctx-menu-header { font-size:11px; color:var(--subtext0); margin-bottom:8px; padding-bottom:6px; border-bottom:1px solid var(--surface0); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .ctx-menu-key { color:var(--accent); font-weight:600; } .ctx-row { display:flex; align-items:center; gap:8px; margin-bottom:6px; } .ctx-row label { font-size:11px; color:var(--subtext0); width:42px; flex-shrink:0; } .ctx-btns { display:flex; gap:3px; flex-wrap:wrap; } .ctx-btn { background:var(--surface0); border:1px solid var(--surface1); border-radius:4px; color:var(--subtext1); font-size:11px; padding:2px 7px; cursor:pointer; transition:background var(--transition),border-color var(--transition),color var(--transition); } .ctx-btn:hover { background:var(--surface1); border-color:var(--accent); } .ctx-btn.active { background:var(--surface1); border-color:var(--accent); color:var(--accent); } #ctx-color { width:28px; height:22px; border:1px solid var(--surface1); border-radius:4px; background:transparent; cursor:pointer; padding:1px; } .ctx-range { width:80px; } .ctx-range-val { font-size:11px; color:var(--mauve); min-width:26px; } .ctx-num { width:90px; background:var(--surface0); border:1px solid var(--surface1); border-radius:4px; color:var(--text); font-size:11px; padding:2px 6px; } .ctx-num:focus { outline:none; border-color:var(--accent); } .ctx-btn:disabled { opacity:0.35; cursor:not-allowed; border-color:var(--surface1); } /* ── Array index picker ─────────────────────────────────────────── */ #array-idx-picker { position:fixed; z-index:300; background:var(--mantle); border:1px solid var(--surface1); border-radius:var(--radius); box-shadow:0 8px 24px rgba(0,0,0,0.6); padding:10px; min-width:200px; } /* ── VScale toolbar (embedded in plot card) ──────────────────────── */ #vscale-menu { flex-shrink:0; background:rgba(17,17,27,0.92); border-top:1px solid var(--surface1); padding:3px 8px; } .vstb-header { display:flex; align-items:center; gap:8px; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; } .vstb-header::-webkit-scrollbar { display:none; } .vstb-label { font-size:11px; color:var(--subtext0); white-space:nowrap; flex-shrink:0; } .vstb-lbl { font-size:10px; color:var(--overlay0); white-space:nowrap; } .vstb-close { margin-left:auto; flex-shrink:0; background:transparent; border:none; color:var(--overlay0); cursor:pointer; font-size:11px; padding:0 3px; line-height:1; transition:color var(--transition); } .vstb-close:hover { color:var(--red); } .plot-vscale-bar { display:none; } /* ── Per-plot cursor value readout ────────────────────────────── */ .plot-cursor-ro { margin-left:auto; flex-shrink:0; align-items:center; gap:5px; font-size:10px; font-family:monospace; background:var(--surface0); border:1px solid var(--surface1); border-radius:4px; padding:1px 7px; white-space:nowrap; overflow:hidden; } .pcur-a { color:var(--sky); } .pcur-b { color:var(--yellow); } .pcur-dv { color:var(--subtext1); } .pcur-sep { color:var(--surface2); } /* ── Badge vscale info & active state ───────────────────────────── */ .vscale-info { font-size:9px; color:var(--overlay0); font-family:monospace; margin-left:2px; white-space:nowrap; } /* ── Source groups ────────────────────────────────────────────── */ .source-group { margin-bottom:2px; } .source-group-header { display:flex; align-items:center; gap:5px; padding:5px 8px 5px 10px; margin:4px 6px 2px; background:var(--surface0); border-radius:6px; } .source-state-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; background:var(--overlay0); transition:background var(--transition); } .source-state-dot.connected { background:var(--green); } .source-state-dot.connecting { background:var(--yellow); animation:pulse-orange 1.5s infinite; } .source-state-dot.disconnected { background:var(--red); } .source-name { font-size:11px; font-weight:600; color:var(--subtext1); flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .source-addr { font-size:10px; color:var(--overlay0); font-family:monospace; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:90px; } .source-remove-btn { background:none; border:none; color:var(--overlay0); cursor:pointer; font-size:15px; line-height:1; padding:0 2px; flex-shrink:0; transition:color var(--transition); } .source-remove-btn:hover { color:var(--red); } /* ── Add source section ───────────────────────────────────────── */ .add-source-section { border-top:1px solid var(--surface0); margin-top:4px; } .add-source-title { display:flex; align-items:center; gap:5px; padding:6px 10px; cursor:pointer; user-select:none; font-size:11px; color:var(--overlay0); transition:color var(--transition); } .add-source-title:hover { color:var(--subtext1); } .add-src-arrow { font-size:9px; display:inline-block; transition:transform var(--transition); } .add-source-body { display:none; flex-direction:column; gap:5px; padding:0 10px 10px; } .add-source-section.open .add-source-body { display:flex; } .add-src-input { background:var(--surface0); color:var(--text); border:1px solid var(--surface1); border-radius:5px; padding:4px 8px; font-size:12px; outline:none; width:100%; } .add-src-input:focus { border-color:var(--accent); } .add-src-btn { background:var(--surface0); color:var(--accent); border:1px solid var(--surface1); border-radius:5px; padding:4px 10px; font-size:12px; cursor:pointer; width:100%; transition:background var(--transition),border-color var(--transition); } .add-src-btn:hover { background:rgba(137,180,250,0.15); border-color:var(--accent); } .save-src-btn { color:var(--green); } .save-src-btn:hover { background:rgba(166,227,161,0.1); border-color:var(--green); } /* ── Right panel (debug: Traced/Forced/Breaks/Msgs) ────────── */ #right-panel { width:260px; min-width:180px; max-width:420px; display:flex; flex-direction:column; border-left:1px solid var(--surface0); overflow:hidden; background:var(--mantle); } #right-panel.collapsed { width:0; min-width:0; border:none; overflow:hidden; } .tabs { display:flex; border-bottom:1px solid var(--surface0); flex-shrink:0; } .tab { flex:1; padding:4px; text-align:center; cursor:pointer; color:var(--overlay0); font-size:11px; border-bottom:2px solid transparent; transition:color var(--transition),border-color var(--transition); } .tab:hover { color:var(--subtext1); } .tab.active { color:var(--accent); border-bottom-color:var(--accent); } .tab-content { display:none; flex:1; overflow-y:auto; flex-direction:column; } .tab-content.active { display:flex; } /* ── Traced / Forced signal rows ─────────────────────────── */ .traced-row { display:flex; align-items:center; gap:4px; padding:3px 6px; border-bottom:1px solid var(--crust); font-size:11px; } .traced-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--accent); } .traced-val { font-family:monospace; color:var(--green); font-size:11px; min-width:60px; text-align:right; } .forced-row { display:flex; align-items:center; gap:4px; padding:3px 6px; border-bottom:1px solid var(--crust); font-size:11px; } .forced-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--peach); } .forced-val { font-family:monospace; color:var(--yellow); font-size:11px; } .break-item { display:flex; align-items:center; gap:4px; padding:3px 6px; border-bottom:1px solid var(--crust); font-size:11px; } .break-sig { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--mauve); } .msg-item { padding:3px 6px; border-bottom:1px solid var(--crust); font-size:11px; } .empty-hint { padding:16px; color:var(--overlay0); text-align:center; font-size:12px; } /* ── Panel collapse toggle ────────────────────────────────── */ .panel-toggle { background:transparent; border:none; color:var(--subtext0); padding:0 4px; font-size:11px; cursor:pointer; flex-shrink:0; transition:color var(--transition); } .panel-toggle:hover { color:var(--accent); } /* ── Log panel ────────────────────────────────────────────── */ #log-panel { height:140px; min-height:26px; display:flex; flex-direction:column; border-top:1px solid var(--surface0); background:var(--crust); flex-shrink:0; overflow:hidden; transition:height var(--transition); } #log-panel.collapsed { height:26px; } #log-panel.collapsed #log-body { display:none; } #log-toolbar { display:flex; align-items:center; gap:8px; padding:3px 8px; background:var(--mantle); border-bottom:1px solid var(--surface0); flex-shrink:0; height:26px; } #log-toolbar label { display:flex; align-items:center; gap:3px; font-size:11px; color:var(--subtext0); cursor:pointer; } #log-toolbar input[type=text] { font-size:11px; background:var(--surface0); border:1px solid var(--surface1); border-radius:3px; color:var(--text); padding:1px 4px; } #log-body { flex:1; overflow-y:auto; font-family:monospace; font-size:11px; padding:2px 0; } .log-line { padding:1px 8px; display:flex; gap:8px; } .log-time { color:var(--overlay0); flex-shrink:0; font-family:monospace; } .log-lvl { flex-shrink:0; min-width:50px; font-weight:600; } .log-msg { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; } .log-line.DEBUG .log-lvl { color:var(--accent); } .log-line.INFO .log-lvl { color:var(--green); } .log-line.WARNING .log-lvl { color:var(--peach); } .log-line.ERROR .log-lvl { color:var(--red); } .log-line.CMD .log-lvl { color:var(--teal); } .log-line.RESP .log-lvl { color:var(--sky); } .log-hidden { display:none; } /* ── Stats panel ─────────────────────────────────────────────── */ #stats-panel { position:fixed; bottom:0; left:0; right:0; height:0; overflow:hidden; background:var(--mantle); border-top:2px solid var(--surface0); z-index:89; transition:height var(--transition); } #stats-panel.open { height:290px; } #stats-panel-hdr { display:flex; align-items:center; gap:8px; padding:4px 10px; border-bottom:1px solid var(--surface0); flex-shrink:0; font-size:11px; font-weight:700; color:var(--subtext1); letter-spacing:0.5px; text-transform:uppercase; } .stats-hdr-label { flex-shrink:0; } .stats-source-sel { flex:1; min-width:0; background:var(--surface0); border:1px solid var(--surface1); border-radius:var(--radius); color:var(--text); font-size:11px; padding:1px 5px; cursor:pointer; } .stats-source-sel:focus { outline:none; border-color:var(--accent); } #btn-stats-close { background:none; border:none; color:var(--overlay0); flex-shrink:0; cursor:pointer; font-size:14px; line-height:1; padding:2px; transition:color var(--transition); } #btn-stats-close:hover { color:var(--red); } #stats-body { overflow-x:hidden; overflow-y:auto; display:flex; flex-direction:column; gap:0; padding:8px 18px; height:calc(290px - 30px); box-sizing:border-box; } .stats-section { display:flex; flex-direction:column; gap:5px; padding:4px 0; } .stats-section-grow { flex:1; } .stats-empty { font-size:11px; color:var(--overlay0); } .stats-section-label { font-size:9px; color:var(--overlay0); text-transform:uppercase; letter-spacing:0.6px; } .stats-row { display:flex; gap:16px; flex-wrap:wrap; align-items:flex-end; } .stats-kv { display:flex; flex-direction:column; gap:1px; min-width:70px; } .stats-k { font-size:9px; color:var(--overlay0); text-transform:uppercase; letter-spacing:0.5px; } .stats-v { font-size:12px; color:var(--text); font-family:monospace; font-weight:600; } .stats-v.warn { color:var(--yellow); } .stats-v.ok { color:var(--green); } .stats-sep { border:none; border-top:1px solid var(--surface0); margin:2px 0; } .stats-hist { width:100%; } .hist-bars { display:flex; align-items:flex-end; gap:1px; height:72px; background:var(--crust); border-radius:3px; padding:2px 3px; } .hist-bar { flex:1; background:var(--accent); border-radius:1px 1px 0 0; min-height:1px; opacity:0.65; transition:opacity 0.1s; } .hist-bar:hover { opacity:1; } .hist-labels { display:flex; justify-content:space-between; font-size:9px; color:var(--overlay0); font-family:monospace; margin-top:2px; } /* ── Dialogs ──────────────────────────────────────────────── */ .dialog-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; z-index:200; } .dialog { background:var(--mantle); border:1px solid var(--surface1); border-radius:var(--radius); padding:16px; min-width:320px; max-width:500px; } .dialog h3 { margin-bottom:12px; color:var(--accent); } .dialog label { display:block; margin-bottom:4px; color:var(--subtext0); font-size:13px; } .dialog input, .dialog select, .dialog textarea { width:100%; background:var(--surface0); border:1px solid var(--surface1); color:var(--text); padding:4px 8px; border-radius:4px; margin-bottom:10px; } .dialog textarea { height:80px; resize:vertical; font-family:monospace; font-size:12px; } .dialog .btns { display:flex; gap:8px; justify-content:flex-end; margin-top:4px; } .dialog select option { background:var(--mantle); } .form-row { display:flex; gap:8px; } .form-row > * { flex:1; } .form-check { display:flex; align-items:center; gap:8px; margin-bottom:10px; } .form-check input[type=checkbox] { width:auto; margin:0; } .form-check label { margin:0; color:var(--subtext0); display:inline; } /* ── Array selection segment ──────────────────────────────── */ .arr-seg { display:flex; gap:0; margin-bottom:12px; border-radius:4px; overflow:hidden; border:1px solid var(--surface1); } .arr-seg button { flex:1; border:none; border-radius:0; border-right:1px solid var(--surface1); color:var(--subtext0); background:var(--surface0); padding:4px 0; font-size:11px; } .arr-seg button:last-child { border-right:none; } .arr-seg button.active { background:var(--accent); color:var(--crust); } .arr-seg button:hover:not(.active) { background:var(--surface1); color:var(--text); } /* ── Tree (Object Tree tab) ───────────────────────────────── */ .tree-node { padding:1px 0; } .tree-leaf { display:flex; align-items:center; gap:4px; padding:2px 6px; cursor:default; user-select:none; font-size:11px; } .tree-leaf:hover { background:var(--surface0); } .tree-leaf.selected { background:var(--surface1); } .tree-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .tree-class { color:var(--overlay0); font-size:10px; flex-shrink:0; } details > summary { list-style:none; cursor:pointer; padding:2px 6px; display:flex; align-items:center; gap:4px; user-select:none; font-size:11px; } details > summary:hover { background:var(--surface0); } details > summary::before { content:'▶'; font-size:9px; color:var(--overlay0); width:10px; flex-shrink:0; } details[open] > summary::before { content:'▼'; } details > .children { padding-left:14px; } .tree-loading { padding:2px 4px; color:var(--overlay0); font-size:10px; font-style:italic; } .tree-btn { background:transparent; border:1px solid var(--surface1); color:var(--subtext0); padding:0 4px; border-radius:3px; cursor:pointer; font-size:10px; line-height:14px; } .tree-btn:hover { background:var(--surface1); color:var(--text); } .tree-btn.t { border-color:var(--accent); color:var(--accent); } .tree-btn.f { border-color:var(--green); color:var(--green); } .tree-btn.b { border-color:var(--peach); color:var(--peach); } /* ── Empty state (center area hint) ─────────────────────── */ #empty-state { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); text-align:center; color:var(--subtext0); pointer-events:none; display:none; } #empty-state.visible { display:block; } #empty-state h2 { font-size:20px; margin-bottom:8px; color:var(--surface2); } #empty-state p { font-size:13px; } /* ── UDP stats ────────────────────────────────────────────── */ #udp-stats { color:var(--overlay0); font-size:11px; } @media (max-width:700px) { #sidebar { width:0; min-width:0; } :root { --sidebar-w:240px; } }