Files
darceye 7f5f1aaa88 Logic analyzer probe freedoms: passive pads, any-GPIO trigger, 1 h window (0.11.0)
- passive probes (new `static passive = true` device metadata): a pure
  listener never drives an input and claims no pad, so it may clamp onto
  ANY GPIO - including pads other devices own (an LED, an I2C pair, a
  MAX7219 bus) and other analyzers. The runtime's pin-conflict check and
  the wired-AND arbitration skip passive pads; the panel's usedPins
  ignores them, so other devices' pickers never show them as "in use";
  the analyzer's channel grid never disables a GPIO (pads owned elsewhere
  get a dashed "shared" hint). Replaces the analyzer's sharedBus flag.
- trigger on any GPIO: trigCh (channel index) becomes trigPin (GPIO
  number) - the trigger pad gets its own subscription and need not be an
  analysed channel (off-channel triggers land in no lane, channel levels
  still snapshot at capture start). The window dropdown lists every valid
  GPIO. Tooltip documents the gpio_state visibility caveat: a trigger
  fires only when the FIRMWARE drives the pad - pure-input pads (driven
  by our button devices) never toggle the output registers.
- window cap lifted 1 s -> 1 h of guest time (was a conservative guard;
  dense signals still freeze earlier at the 20 000-edge buffer with the
  buffer-full note - the natural limit, since Saleae streams into host
  RAM while we capture into a fixed buffer).
- tests: runtime-level passive sharing (probe onto an LED pad + I2C pair
  + second probe, zero conflicts), off-channel trigger, 1 h clamp,
  trigger cases migrated to trigPin; device bumped to 1.1.0; GUI checked
  (shared chip clickable, 23 trigger options, 5000 ms window accepted).
- docs (both languages): CHANGELOG 0.11.0 + device version table,
  DEVICE-API passive metadata + instrument section, README capability
  row, ROADMAP probe-freedoms bullet, AGENT rule 3.11; version synced to
  0.11.0.
2026-11-02 10:58:17 +08:00

512 lines
24 KiB
CSS

/*
* esp-emu-peris panel styles. The stock page CSS stays inline in
* esp-emu-peris.html (kept verbatim from upstream for easy re-diff);
* everything peris-specific lives here.
*
* Layout: console | peripherals (one compact row per device, expandable
* details) | debug — all three visible at once. The peripherals panel has
* its own scrolling area so the toolbar stays in view.
*/
/* ---- right-side panel heads (peripherals + debug) ---- */
.panel-head {
padding: 8px 14px 7px;
font-size: 10.5px;
text-transform: uppercase;
letter-spacing: 0.9px;
color: var(--muted);
font-weight: 600;
border-bottom: 1px solid var(--border);
background: var(--surface);
flex-shrink: 0;
user-select: none;
}
/* peripherals head doubles as the project-name row + save/open actions */
.peris-head {
display: flex; align-items: center; gap: 7px;
padding: 7px 10px;
}
.peris-head .ph-title { white-space: nowrap; }
.peris-head input[type="text"] {
flex: 1; min-width: 0;
text-transform: none; letter-spacing: 0; font-weight: 400;
background: var(--bg); border: 1px solid var(--border-strong);
border-radius: 4px; padding: 3px 8px;
font-size: 11.5px; font-family: var(--mono); color: var(--text); outline: none;
}
.peris-head input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.icon-btn {
width: 25px; height: 25px; flex-shrink: 0; padding: 0;
display: grid; place-items: center;
background: var(--surface-2); border: 1px solid var(--border-strong);
border-radius: var(--radius); color: var(--muted); cursor: pointer;
transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn svg { width: 13px; height: 13px; }
.main-area > .peris-panel {
width: 360px;
background: var(--surface);
border-left: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow: hidden;
flex-shrink: 0;
}
/* Higher specificity than the stock `.side-panel` width rules so both
right-hand panels always share the same width. */
@media (max-width: 1400px) {
.main-area > .peris-panel, .main-area > .side-panel { width: 300px; }
}
@media (max-width: 1150px) {
.main-area > .peris-panel, .main-area > .side-panel { width: 260px; }
}
@media (max-width: 860px) {
.main-area > .peris-panel, .main-area > .side-panel {
width: 100%;
border-left: 0;
border-bottom: 1px solid var(--border);
}
}
/* ---- peripherals panel ---- */
#pane-peris.over { outline: 2px dashed var(--accent); outline-offset: -6px; }
.peris-toolbar {
display: flex; gap: 6px; padding: 8px 12px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.peris-toolbar select {
flex: 1; min-width: 0;
background: var(--bg); border: 1px solid var(--border-strong);
border-radius: var(--radius); padding: 4px 8px; font-size: 12px;
}
#peris-errors {
display: none;
color: var(--warn); font-size: 11.5px;
padding: 6px 14px; border-bottom: 1px solid var(--border);
line-height: 1.5;
}
.peris-scroll {
flex: 1; min-height: 0;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--border-strong) transparent;
}
#peris-cards { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; }
#peris-empty { padding: 22px 10px; text-align: center; color: var(--faint); font-size: 12px; line-height: 1.6; }
#peris-empty strong { color: var(--muted); }
/* ---- device rows (photoshop-layers style) ---- */
.peris-row {
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.peris-row.dragging { opacity: 0.5; border-style: dashed; }
.peris-row-main {
display: flex; align-items: center; gap: 6px;
padding: 4px 4px 4px 8px;
min-height: 32px;
}
/* interactive device icon (built by View.rowIcon; fallback = letter chip) */
.dev-icon { width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; }
.dev-icon-plain {
width: 18px; height: 18px; border-radius: 5px;
background: var(--surface-3); border: 1px solid var(--border-strong);
color: var(--muted); font-size: 10px; font-weight: 700;
}
/* name: click to rename in place */
.dev-name-slot { min-width: 0; display: flex; }
.dev-name {
background: none; border: 0; padding: 2px 5px; border-radius: 4px;
color: var(--text); font-size: 12px; font-weight: 600; text-align: left;
max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
cursor: text;
}
.dev-name:hover { background: var(--surface-3); outline: 1px dashed var(--border-strong); }
.dev-name-input {
background: var(--bg); border: 1px solid var(--accent); border-radius: 4px;
color: var(--text); font-size: 12px; font-weight: 600; padding: 1px 4px;
width: 110px; outline: none;
}
/* pin config chips: GPIO number box + V/G pull badge */
.dev-chip-slot { display: flex; }
.dev-chip {
font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1;
min-width: 22px; height: 20px; padding: 0 4px; text-align: center;
background: var(--bg); color: var(--accent-text);
border: 1px solid var(--border-strong); border-radius: 4px; cursor: pointer;
display: inline-flex; align-items: center; justify-content: center;
transition: border-color 0.1s, color 0.1s;
}
.dev-chip:hover { border-color: var(--accent); }
.dev-chip-pull.v { color: var(--ok); }
.dev-chip-pull.g { color: var(--faint); }
.dev-chip-select {
font-family: var(--mono); font-size: 11px; height: 20px; padding: 0 2px;
background: var(--bg); color: var(--text);
border: 1px solid var(--accent); border-radius: 4px; outline: none;
max-width: 130px;
}
/* right-aligned row controls: expand / remove / drag handle */
.row-spacer { flex: 1; }
.row-btn {
width: 22px; height: 22px; flex-shrink: 0;
background: none; border: 0; border-radius: 4px; color: var(--faint);
display: grid; place-items: center; cursor: pointer;
font-size: 13px; line-height: 1;
transition: background 0.1s, color 0.1s;
}
.row-btn:hover { background: var(--surface-3); color: var(--text); }
.row-remove:hover { color: var(--err); }
.row-expand svg { transition: transform 0.12s; }
.peris-row.open .row-expand svg { transform: rotate(90deg); }
.row-grip {
width: 18px; height: 22px; flex-shrink: 0;
display: grid; place-items: center;
color: var(--faint); cursor: grab; font-size: 11px;
border-radius: 4px; user-select: none;
}
.row-grip:hover { color: var(--muted); background: var(--surface-3); }
/* expandable details (blender-style, one property per line) */
.peris-details { display: none; border-top: 1px dashed var(--border); padding: 8px 10px 10px; }
.peris-row.open .peris-details { display: block; }
.dev-body-wrap { display: flex; justify-content: center; padding: 2px 0 6px; }
.dev-editor {
display: grid; grid-template-columns: 1fr; gap: 5px;
margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border);
}
.dev-field { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.dev-field span { flex: 1; white-space: nowrap; }
.dev-field input[type="text"], .dev-field input[type="number"], .dev-field select {
width: 118px; flex-shrink: 0;
background: var(--bg); border: 1px solid var(--border-strong);
border-radius: 4px; padding: 3px 6px; font-size: 11.5px; outline: none;
}
.dev-field input[type="color"] { width: 34px; height: 22px; padding: 0; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg); }
.dev-field input[type="checkbox"] { accent-color: var(--accent); }
.dev-field select { max-width: 118px; }
/* ---- row icon widgets (built by each plugin's View.rowIcon) ---- */
.led-dot {
--led-color: #ff4d4d;
display: block; width: 14px; height: 14px; border-radius: 50%;
border: 2px solid color-mix(in srgb, var(--led-color) 45%, #2a2a30);
background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--led-color) 16%, #1a1a1e), #101014 72%);
position: relative; cursor: pointer;
transition: box-shadow 0.15s, border-color 0.15s;
}
.led-dot.lit {
background: radial-gradient(circle at 38% 32%, #ffffff33 0%, var(--led-color) 55%, color-mix(in srgb, var(--led-color) 55%, #20060a) 100%);
box-shadow: 0 0 10px 2px color-mix(in srgb, var(--led-color) 55%, transparent);
border-color: var(--led-color);
}
/* the native colour picker is opened straight from a transparent overlay */
.led-dot-picker { position: absolute; inset: -4px; opacity: 0; width: calc(100% + 8px); height: calc(100% + 8px); cursor: pointer; border: 0; padding: 0; }
/* PWM / RGB LED dots: the child glow layer is opacity-driven by the
* interpolated duty, so the icon shows continuous brightness (the plain
* .lit toggle is binary and stays exclusive to the GPIO LED). */
.led-dot .dot-glow {
position: absolute; inset: -2px; border-radius: 50%; opacity: 0;
background: radial-gradient(circle at 38% 32%, #ffffff40 0%, var(--led-color) 55%, transparent 120%);
box-shadow: 0 0 10px 2px color-mix(in srgb, var(--led-color) 60%, transparent);
pointer-events: none;
}
/* PWM / RGB bulb body (canvas painted by ledc-lib drawBulb) */
.pwm-bulb { display: block; border-radius: 50%; }
/* WS2812 strip body (canvas painted by ws2812-lib drawLedDot); the wrap is
* column-oriented so strip/ring/matrix canvases of different shapes centre */
.ws-wrap { display: flex; align-items: center; justify-content: center; padding: 6px 0; }
.ws-canvas { display: block; }
.ws-icon { display: block; }
.icon-press {
width: 22px; height: 22px; padding: 0; border-radius: 50%;
border: 1px solid var(--border-strong); background: var(--surface-3);
color: var(--muted); cursor: pointer; display: grid; place-items: center;
box-shadow: 0 2px 0 #0a0a0c;
transition: transform 0.05s, box-shadow 0.05s, color 0.1s, border-color 0.1s;
}
.icon-press.down, .icon-press:active {
transform: translateY(2px); box-shadow: 0 0 0 #0a0a0c;
color: var(--accent-text); border-color: var(--accent);
}
.icon-touch {
width: 22px; height: 22px; padding: 0; border-radius: 50%;
border: 1px solid var(--border-strong); background: var(--surface-3);
color: var(--muted); cursor: pointer; display: grid; place-items: center;
transition: color 0.1s, border-color 0.1s, box-shadow 0.1s;
}
.icon-touch svg { width: 13px; height: 13px; }
.icon-touch.down, .icon-touch:active {
color: var(--accent-text); border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
.icon-toggle { background: none; border: 0; padding: 2px; cursor: pointer; display: block; }
.mini-sw {
width: 26px; height: 14px; border-radius: 999px;
background: var(--bg); border: 1px solid var(--border-strong);
position: relative; display: block;
transition: background 0.15s, border-color 0.15s;
}
.mini-sw i {
position: absolute; top: 1.5px; left: 1.5px;
width: 9px; height: 9px; border-radius: 50%;
background: var(--surface-3); border: 1px solid var(--border-strong);
transition: left 0.15s, background 0.15s;
}
.icon-toggle.on .mini-sw { background: var(--accent-soft); border-color: var(--accent); }
.icon-toggle.on .mini-sw i { left: 14px; background: var(--accent); border-color: var(--accent); }
/* ---- device view bodies (inside expanded details) ---- */
.dev-body { min-height: 74px; display: flex; align-items: center; justify-content: center; }
.led-wrap { display: flex; align-items: center; justify-content: center; padding: 6px 0; }
.led-bulb {
--led-color: #ff4d4d;
width: 44px; height: 44px; border-radius: 50%;
border: 2px solid color-mix(in srgb, var(--led-color) 45%, #2a2a30);
background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--led-color) 16%, #1a1a1e), #101014 72%);
position: relative;
transition: box-shadow 0.15s, border-color 0.15s;
}
.led-bulb.lit {
background: radial-gradient(circle at 38% 32%, #ffffff33 0%, var(--led-color) 46%, color-mix(in srgb, var(--led-color) 55%, #20060a) 100%);
box-shadow: 0 0 18px 4px color-mix(in srgb, var(--led-color) 55%, transparent), 0 0 44px 10px color-mix(in srgb, var(--led-color) 25%, transparent);
border-color: var(--led-color);
}
.led-bulb.floating { border-style: dashed; opacity: 0.6; }
.led-cap { text-align: center; font-size: 10.5px; color: var(--faint); font-family: var(--mono); margin-top: 6px; }
.hw-button {
min-width: 128px;
padding: 16px 22px;
border-radius: 10px;
border: 1px solid var(--border-strong);
background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
color: var(--muted);
font-weight: 700; font-size: 12px; letter-spacing: 1.2px;
cursor: pointer;
box-shadow: 0 3px 0 #0a0a0c, inset 0 1px 0 rgba(255,255,255,0.05);
transition: transform 0.05s, box-shadow 0.05s, color 0.1s;
user-select: none;
}
.hw-button.down, .hw-button:active {
transform: translateY(3px);
box-shadow: 0 0 0 #0a0a0c, inset 0 1px 3px rgba(0,0,0,0.5);
color: var(--accent-text);
border-color: var(--accent);
}
.touch-pad {
min-width: 116px; min-height: 74px;
border-radius: 12px;
border: 1px solid var(--border-strong);
background: linear-gradient(180deg, #17171b, #101013);
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
color: var(--faint); cursor: pointer; user-select: none;
transition: color 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.touch-pad svg { width: 26px; height: 26px; }
.touch-pad .touch-label { font-size: 9.5px; letter-spacing: 1.6px; font-weight: 700; }
.touch-pad:hover { color: var(--muted); }
.touch-pad.active {
color: var(--accent-text);
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 24px rgba(255,122,26,0.12);
}
.hw-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.hw-switch input { display: none; }
.sw-track {
width: 46px; height: 24px; border-radius: 999px;
background: var(--bg); border: 1px solid var(--border-strong);
position: relative; transition: background 0.15s, border-color 0.15s;
}
.sw-knob {
position: absolute; top: 2px; left: 2px;
width: 18px; height: 18px; border-radius: 50%;
background: var(--surface-3); border: 1px solid var(--border-strong);
transition: left 0.15s, background 0.15s;
}
.hw-switch input:checked + .sw-track { background: var(--accent-soft); border-color: var(--accent); }
.hw-switch input:checked + .sw-track .sw-knob { left: 24px; background: var(--accent); border-color: var(--accent); }
.sw-text { font-family: var(--mono); font-size: 11px; color: var(--muted); }
/* ---- M4 protocol devices (bitbang I2C slave, IR NEC) ---------------------- */
.i2c-body { display: flex; flex-direction: column; align-items: stretch; gap: 6px; font-size: 11px; }
.i2c-status { font-family: var(--mono); color: var(--muted); text-align: center; }
.i2c-log { max-height: 96px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.i2c-entry { display: flex; gap: 8px; font-family: var(--mono); color: var(--muted); }
.i2c-dir { color: var(--accent-text); min-width: 64px; }
.i2c-bytes { color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.i2c-empty, .ir-empty { color: var(--faint); text-align: center; font-style: italic; }
.i2c-hex { font-family: var(--mono); font-size: 10px; line-height: 1.45; color: var(--faint);
background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; }
.i2c-hex-row { display: flex; gap: 3px; }
.i2c-hex-addr { color: var(--border-strong); min-width: 26px; }
.i2c-hex-row span:not(.i2c-hex-addr) { min-width: 16px; text-align: center; }
.i2c-hex-row span.set { color: var(--accent-text); font-weight: 700; }
.i2c-io { display: flex; gap: 6px; align-items: center; }
.i2c-io input { background: var(--bg); border: 1px solid var(--border-strong); color: var(--muted);
border-radius: 4px; padding: 3px 6px; font-size: 10.5px; font-family: var(--mono); }
.i2c-io .i2c-addr { width: 44px; }
.i2c-io .i2c-bytes-in { flex: 1; min-width: 90px; }
.i2c-regs { display: flex; flex-direction: column; gap: 2px; font-family: var(--mono); }
.i2c-reg { display: flex; justify-content: space-between; color: var(--muted); }
.i2c-reg span:last-child { color: var(--accent-text); }
.i2c-icon, .ir-icon {
display: inline-flex; align-items: center; justify-content: center; gap: 2px;
font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.4px;
color: var(--faint); border: 1px solid var(--border-strong); border-radius: 4px;
padding: 2px 4px; min-width: 22px; transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.i2c-icon.live, .ir-icon.live { color: var(--accent-text); border-color: var(--accent);
box-shadow: 0 0 8px 1px var(--accent-soft); }
.ir-icon::after { content: attr(data-count); font-size: 8.5px; color: var(--accent-text); }
.ir-body { display: flex; flex-direction: column; align-items: stretch; gap: 6px; font-size: 11px; }
.ir-last { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 22px; }
.ir-code { font-family: var(--mono); font-size: 13px; color: var(--accent-text); font-weight: 700; }
.ir-valid { font-size: 9px; font-weight: 700; letter-spacing: 0.8px; color: var(--muted);
border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 5px; }
.ir-valid.bad { color: var(--faint); border-style: dashed; }
.ir-repeat { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.ir-list { max-height: 92px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.ir-entry { font-family: var(--mono); color: var(--muted); }
.ir-cap { text-align: center; font-size: 10.5px; color: var(--faint); font-family: var(--mono); }
/* ---- MAX7219 display (matrix / 7-segment, canvas painted by max7219-lib) --- */
.mx-body { display: flex; flex-direction: column; align-items: stretch; gap: 6px; font-size: 11px; }
.mx-wrap { display: flex; align-items: center; justify-content: center; padding: 6px 0; }
.mx-canvas { display: block; }
.mx-icon { display: block; }
.mx-cap { text-align: center; font-size: 10.5px; color: var(--faint); font-family: var(--mono); }
/* ---- Logic analyzer (la-lib painter + floating window) ---------------------- */
.la-body { display: flex; flex-direction: column; align-items: stretch; gap: 6px; font-size: 11px; }
.la-mini { cursor: pointer; border: 1px solid var(--border); border-radius: 6px;
background: var(--bg); padding: 4px; transition: border-color 0.12s; }
.la-mini:hover { border-color: var(--accent); }
.la-mini-cv { display: block; width: 100%; }
.la-open { align-self: center; background: var(--surface-3); border: 1px solid var(--border-strong);
border-radius: 4px; color: var(--muted); font-size: 10.5px; padding: 3px 10px; cursor: pointer;
transition: color 0.1s, border-color 0.1s; }
.la-open:hover { color: var(--text); border-color: var(--accent); }
.la-cap { text-align: center; font-size: 10px; color: var(--faint); font-family: var(--mono);
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-icon { display: block; cursor: pointer; }
/* floating windows (la-lib makeFloatingWindow): fixed overlay, no backdrop —
the page underneath keeps every pointer event */
.float-win {
position: fixed;
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: 8px;
box-shadow: 0 10px 34px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.3);
display: flex; flex-direction: column;
overflow: hidden;
min-width: 320px; min-height: 220px;
}
.float-win-head {
display: flex; align-items: center; gap: 8px;
padding: 6px 8px 6px 12px;
background: var(--surface-2);
border-bottom: 1px solid var(--border);
cursor: move; user-select: none;
flex-shrink: 0;
}
.float-win-title { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 600; color: var(--text);
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-win-title[data-status="armed"] { color: var(--warn); }
.float-win-title[data-status="run"] { color: var(--ok); }
.float-win-close {
width: 22px; height: 22px; flex-shrink: 0; padding: 0;
background: none; border: 0; border-radius: 4px; color: var(--faint);
font-size: 14px; line-height: 1; cursor: pointer;
}
.float-win-close:hover { background: var(--surface-3); color: var(--err); }
.float-win-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.float-win-resize {
position: absolute; right: 0; bottom: 0; width: 16px; height: 16px;
cursor: nwse-resize; z-index: 2;
background: linear-gradient(135deg, transparent 50%, var(--border-strong) 50%);
border-bottom-right-radius: 8px;
}
/* analyzer window contents */
.la-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px;
border-bottom: 1px solid var(--border); flex-shrink: 0; flex-wrap: wrap; }
.la-btn {
background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 4px;
color: var(--text); font-size: 11px; font-weight: 600; padding: 3px 10px; cursor: pointer;
transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.la-btn:hover:not(:disabled) { border-color: var(--accent); }
.la-btn:disabled { opacity: 0.4; cursor: default; }
.la-btn.la-arm { color: var(--ok); }
.la-btn.la-arm:hover:not(:disabled) { border-color: var(--ok); }
.la-btn.la-stop { color: var(--err); }
.la-btn.la-clear { color: var(--muted); font-weight: 400; }
.la-lab { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.la-bar select, .la-bar input[type="number"] {
background: var(--bg); border: 1px solid var(--border-strong); border-radius: 4px;
color: var(--text); font-size: 11px; padding: 2px 4px; outline: none;
}
.la-bar select:focus, .la-bar input[type="number"]:focus { border-color: var(--accent); }
.la-bar input[type="number"] { width: 52px; }
.la-auto { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px;
color: var(--muted); cursor: pointer; user-select: none; }
.la-auto input { accent-color: var(--accent); }
.la-chans { display: flex; flex-wrap: wrap; gap: 3px; padding: 5px 8px;
border-bottom: 1px solid var(--border); flex-shrink: 0; }
.la-chan {
font-family: var(--mono); font-size: 10px; line-height: 1;
min-width: 24px; height: 18px; padding: 0 4px; text-align: center;
background: var(--bg); color: var(--faint);
border: 1px solid var(--border-strong); border-radius: 4px; cursor: pointer;
transition: color 0.1s, border-color 0.1s;
}
.la-chan:hover { border-color: var(--accent); color: var(--text); }
.la-chan.on { color: var(--accent-text); border-color: var(--accent); background: var(--accent-soft); }
/* pads owned by another device: pickable (a probe disturbs nothing),
just visually marked as shared */
.la-chan.shared { border-style: dashed; color: var(--faint); }
.la-plot { flex: 1; min-height: 0; position: relative; background: var(--bg);
border-bottom: 1px solid var(--border); overflow: hidden;
touch-action: none; outline: none; cursor: crosshair; }
.la-plot:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); }
.la-cv { display: block; position: absolute; inset: 0; }
.la-hint { position: absolute; inset: 0; display: grid; place-items: center;
color: var(--faint); font-size: 11.5px; font-style: italic; pointer-events: none; }
.la-measure { display: flex; align-items: center; gap: 12px; padding: 3px 10px;
font-family: var(--mono); font-size: 10.5px; color: var(--muted);
border-bottom: 1px solid var(--border); flex-shrink: 0; min-height: 22px; }
.la-measure .m-hover { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden;
text-overflow: ellipsis; }
.la-measure .m-curs { white-space: nowrap; color: var(--faint); }
.la-measure b { font-weight: 700; }
.la-cursor-clear { padding: 1px 7px; font-size: 9.5px; font-weight: 400;
color: var(--faint); flex-shrink: 0; }
.la-cursor-clear:hover { color: var(--text); }
.la-bar-spacer { flex: 1; }
.la-zbtn { padding: 3px 7px; font-size: 13px; font-weight: 400; line-height: 1;
color: var(--muted); }
.la-foot { padding: 4px 10px; font-size: 10.5px; color: var(--muted);
font-family: var(--mono); flex-shrink: 0; white-space: nowrap; overflow: hidden;
text-overflow: ellipsis; }