/* AudioLab layout / structure (generated by torch_app/tools/split-audiolab-css.mjs) */

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.sl-main {
  padding: 10px;
}
.al-app-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* AudioLab: workspace stack fills viewport with main content */
body.mve-user-skin.audiolab-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Shared user top bar (same mount as arranger isolation — /torched/web/components/user_topbar.js) */
body.mve-user-skin.mve-with-user-topbar.audiolab-page > #user-topbar-root {
  flex-shrink: 0;
}
body.mve-user-skin.audiolab-page > main.sl-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* Torchbearer user chrome: `.admin-topbar` uses z-index 100 (admin.css); AudioLab sticky transport
   `.al-top-chrome` is 400, so the fixed header was painting underneath. Sit above transport, below
   app modals/backdrops (1200). Toasts use 10050 (`audiolab-toast.css`). */
body:has(main#adminApp.audiolab-user-tool-main) #adminTopbar.admin-topbar {
  z-index: 500;
}
/*
 * Torchbearer user chrome: `#adminTopbar` is position:fixed (admin.css). The document was scrolling,
 * so `position: sticky; top: 0` on `.al-top-chrome` pinned to the viewport top and the transport slid
 * under the bar. Lock the shell: no body scroll; only `.al-workbench .sl-workspace` scrolls.
 */
html:has(body > main#adminApp.audiolab-user-tool-main) {
  height: 100%;
  overflow: hidden;
}
body:has(> main#adminApp.audiolab-user-tool-main) {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin: 0;
  padding-top: 48px;
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
body:has(> main#adminApp.audiolab-user-tool-main) > main#adminApp.audiolab-user-tool-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body:has(> main#adminApp.audiolab-user-tool-main) #audiolab-app .al-top-chrome {
  position: relative;
  top: auto;
}
/* AudioLab mounted under /torched/user chrome (#adminApp + fixed admin-topbar) */
.audiolab-user-tool-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-height: calc(100vh - 48px);
}
.audiolab-user-tool-main #audiolab-app {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#audiolab-app {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
/* Sticky row: transport (left) and master strip (right) */
.al-top-chrome {
  position: sticky;
  top: 0;
  z-index: 400;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 2px;
  margin: 0;
}
.al-top-chrome > .sl-transport,
.al-top-chrome__transport-slot .al-transport.sl-transport {
  flex: 1 1 auto;
  min-width: 0;
}
.al-top-chrome > .al-master-strip--chrome,
.al-top-chrome__master-slot .al-master-strip--chrome {
  flex: 0 0 auto;
}
.sl-transport {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px 12px;
}
.sl-logo {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.sl-sep {
  width: 1px;
  height: 28px;
}
.sl-tbtn {
  height: 28px;
  padding: 0 10px;
  cursor: pointer;
}
.sl-tbtn.al-record-btn--flash {
  animation: al-record-flash 0.9s steps(2, end) infinite;
}
.al-record-quantize {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
@keyframes al-record-flash {
  0%, 45% {
    background: #6a1212;
  }
  46%, 100% {
    background: #2b0b0b;
  };
}
@media (prefers-reduced-motion: reduce) {
  .sl-tbtn.al-record-btn--flash {
    animation: none;
  };
}
.sl-bpm {
  font-size: 14px;
  font-weight: 700;
  min-width: 78px;
  text-align: center;
}
.sl-counter, .sl-time {
  padding: 4px 10px;
  box-sizing: border-box;
  text-align: center;
}
.sl-counter {
  font-size: 12px;
  letter-spacing: 1px;
}
.sl-time {
  font-size: 12px;
  min-width: 0;
  box-sizing: border-box;
}
.sl-time--timeline-cs {
  font-variant-numeric: tabular-nums;
}
.al-export-bars-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  position: relative;
  flex: 0 0 auto;
}
.al-export-bars-block--corner {
  flex-direction: row;
  align-items: center;
}
.al-transport-corner-actions {
  flex: 0 0 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.al-export-wav-row {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}
#audiolab-app .al-transport-tempo-group,
#al-chrome-float-root .al-transport-tempo-group {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  flex: 0 0 auto;
}
#audiolab-app .al-transport-tempo-group .al-transport-time-block,
#al-chrome-float-root .al-transport-tempo-group .al-transport-time-block {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  flex: 0 0 auto;
  height: 28px;
}
#audiolab-app .al-transport-time-block .al-tb-scene-name,
#al-chrome-float-root .al-transport-time-block .al-tb-scene-name {
  flex: 0 1 20rem;
  min-width: 12rem;
  max-width: 24rem;
  height: 28px;
  box-sizing: border-box;
  font-size: 12px;
}
#audiolab-app .al-transport-tempo-group .al-transport-time-block .sl-counter,
#al-chrome-float-root .al-transport-tempo-group .al-transport-time-block .sl-counter {
  margin-right: 0;
}
.al-live-export-tbtn.active {
  outline: 1px solid rgba(255, 196, 0, 0.55);
}
.al-live-export-tbtn.is-armed {
  outline: 1px solid rgba(230, 80, 80, 0.7);
}
.al-select.al-export-length-select {
  min-width: 5.5rem;
  max-width: 8rem;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
}
.al-transport-led-strip {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0px;
  padding: 0 0 2px 0;
}
.al-transport-led-perf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 0 0 auto;
}
.al-transport-perf-row {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  }
  


.al-transport-perf-pill, .scene-component-count-hud {
  font-size: 11px;
  line-height: 100%;
  margin-left: 1px;
  padding: 1px 5px;
  border-radius: 12px !important;
  white-space: nowrap;
  width: 74px;
  text-align: center;
  height: 27px;
  padding-top: 5px;
  opacity: .7;
}

.scene-component-count-hud {  
  display: inline-block;
  border: 1px solid #0f8481;
  margin-top: 5px;
  width: 74px;
  text-align: center;
  padding-top: 6px;
  margin-right: 5px;
  width: 74px;

}



.al-transport-chrome-top-right .al-rootkey-select--chrome-top {
  width: auto;
  min-width: 3.25rem;
  max-width: 4.5rem;
  height: 28px;
  padding: 0 6px;
  font-size: 12px;
}
.al-transport-chrome-top-right .al-rootscale-select-slot--chrome-top {
  width: auto;
  min-width: 4.75rem;
  max-width: 8rem;
}
.al-transport-chrome-top-right .al-rootscale-select-slot--chrome-top .al-rootscale-picker__trigger {
  height: 28px;
  padding: 0 6px;
  font-size: 12px;
}
.al-transport-led {
  width: 10px;
  height: 5px;
  flex-shrink: 0;
  transition: background 0.06s ease, box-shadow 0.08s ease, transform 0.08s ease;
}
.al-transport-led--on {
  transform: scale(1.08);
}
#audiolab-app .al-transport-time-block .sl-counter,
#audiolab-app .al-transport-time-block .sl-time {
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.15;
  width: 108px;
  text-align: center;
  margin-right: 0;
}
#audiolab-app .al-transport-time-block .sl-time.al-transport-session-time {
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
#al-chrome-float-root .al-transport-time-block .sl-counter,
#al-chrome-float-root .al-transport-time-block .sl-time {
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.15;
  width: 86px;
  text-align: center;
  margin-right: 0;
}
#al-chrome-float-root .al-transport-time-block .sl-time.al-transport-session-time {
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.al-transport-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
}
.al-transport-row--palette {
  align-items: center;
  padding-top: 4px;
  margin-top: 2px;
}
.al-transport-row--workbench-settings {
  align-items: stretch;
  padding-top: 0;
  margin-top: 0;
}
.al-transport-row--workbench-settings.al-transport-row--bench-open {
  padding-top: 4px;
  padding-bottom: 2px;
  margin-top: 2px;
}
.al-transport-settings-tile-wrap {
  width: 100%;
  min-height: 0;
}
.al-transport-settings-tile {
  max-height: 11.5rem;
  overflow: auto;
  padding: 8px 10px 10px;
}
.al-transport-settings-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 18px;
}
.al-transport-settings-list li {
  margin: 0;
  padding: 0;
}
.al-transport-settings-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.25;
  cursor: pointer;
  user-select: none;
}
.al-transport-settings-row input[type='checkbox'] {
  flex: 0 0 auto;
}
.al-transport-settings-row--select {
  cursor: default;
  justify-content: space-between;
}
.al-transport-settings-row--select .al-select--settings-inline {
  flex: 0 1 auto;
  max-width: 9rem;
}
/* Primary row: top chrome line + sub row (scene strip / export corner) */
.al-transport-row--primary {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.al-transport-row--chrome-top,
.al-transport-row--chrome-sub {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
  min-width: 0;
}
.al-transport-cluster--chrome-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
.al-transport-cluster--chrome-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}
.al-transport-chrome-top-right {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.al-transport-row--chrome-sub > .al-transport-grid-corner {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: flex-start;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.al-transport-grid-corner > .al-transport-row--workbench-settings {
  flex: 0 0 100%;
}
/* Single compact mode control — Patch/Mix toggle (see .cursor/rules/ui-compact-toggle-single-button.mdc) */
#audiolab-app .al-chrome-bench-mode-btn {
  min-width: 4.75rem;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 11px;
  font-weight: 600;
}
#audiolab-app .al-chrome-settings-btn,
#al-chrome-float-root .al-chrome-settings-btn {
  min-width: 28px;
  width: 28px;
  padding: 0;
  font-size: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#audiolab-app .al-chrome-settings-btn::before,
#al-chrome-float-root .al-chrome-settings-btn::before {
  content: '⚙';
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
}
.al-transport-grid-corner-history {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
#al-chrome-float-root .al-transport-popup-master-host {
  flex: 0 0 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
#al-chrome-float-root .al-transport-popup-master-host .al-master-strip {
  width: min(340px, 100%);
  max-width: 100%;
}
#al-chrome-float-root .al-transport-corner-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
}
#al-chrome-float-root .al-transport-grid-corner-history {
  flex: 0 0 auto;
  align-items: center;
}
#al-chrome-float-root .al-transport-time-block--history {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-right: 2px;
}
/*
 * Integrated workbench rows only: animate effective height via grid rows (0fr collapsed).
 * Do not use display:none — keeps transitions smooth and avoids layout jump.
 */
.al-transport-row.al-transport-row--palette.al-transport-row--bench-animated,
.al-transport-row.al-transport-row--mix-console.al-transport-row--bench-animated,
.al-transport-row.al-transport-row--workbench-settings.al-transport-row--bench-animated {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  overflow: hidden;
  min-height: 0;
  transition:
    grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.28s ease-out,
    padding-top 0.38s ease-out,
    padding-bottom 0.38s ease-out,
    margin-top 0.38s ease-out,
    border-top-width 0.38s ease-out,
    border-top-color 0.38s ease-out;
}
.al-transport-row.al-transport-row--workbench-settings {
  justify-content: flex-start;
}
.al-transport-row.al-transport-row--palette.al-transport-row--bench-animated > *,
.al-transport-row.al-transport-row--mix-console.al-transport-row--bench-animated > *,
.al-transport-row.al-transport-row--workbench-settings.al-transport-row--bench-animated > * {
  min-height: 0;
  overflow: hidden;
}
.al-transport-row.al-transport-row--palette.al-transport-row--bench-animated.al-transport-row--bench-shut,
.al-transport-row.al-transport-row--mix-console.al-transport-row--bench-animated.al-transport-row--bench-shut,
.al-transport-row.al-transport-row--workbench-settings.al-transport-row--bench-animated.al-transport-row--bench-shut {
  grid-template-rows: 0fr;
  pointer-events: none;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}
.al-transport-row.al-transport-row--palette.al-transport-row--bench-animated.al-transport-row--bench-open,
.al-transport-row.al-transport-row--mix-console.al-transport-row--bench-animated.al-transport-row--bench-open,
.al-transport-row.al-transport-row--workbench-settings.al-transport-row--bench-animated.al-transport-row--bench-open {
  pointer-events: auto;
}
.al-transport-row--mix-console {
  align-items: flex-end;
  padding-top: 4px;
  margin-top: 2px;
}
/* Cable anim + Add from top / auto-connect / auto save + scene strip */
.al-transport-checks.al-transport-checks--inline {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0px 7px;
  flex: 0 1 auto;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.al-transport-checks.al-transport-checks--inline .al-toolbar-label {
  min-width: 0;
  white-space: nowrap;
}
/* Auto save | LOAD … scene controls — one non-breaking row (wraps as a unit after prior labels) */
.al-toolbar-post-autosave {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 12px;
  flex: 0 1 auto;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.al-toolbar-post-autosave .sl-sep.al-toolbar-scene-sep {
  flex-shrink: 0;
}
.al-toolbar-post-autosave .al-toolbar-scene--inline {
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}
.al-toolbar-post-autosave .al-toolbar-scene--inline .al-tb-scene-name {
  flex: 1 1 6rem;
  min-width: 4.5rem;
  max-width: 10rem;
}
.al-toolbar-post-autosave .al-toolbar-scene-load {
  flex: 0 0 auto;
  min-width: 5.5rem;
  max-width: 9rem;
}
/* Instrument / module pickers: one row — SEQ · AMB · PITCH · DRUM · FX · VOCALS */
.al-transport-pick-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.al-transport-pick-row .al-pick-select {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 1100px) {
  .al-transport-pick-row {
    flex-wrap: wrap;
  }
  .al-transport-pick-row .al-pick-select {
    flex: 1 1 calc(33.333% - 8px);
  min-width: 7rem;
  };
}
.al-pick-select {
  width: 100%;
  min-width: 0;
  height: var(--al-pick-row-h, 30px);
  box-sizing: border-box;
}
#al-chrome-float-root {
  overflow: hidden;
}

#al-chrome-float-root .al-chrome-float-mount--popup {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  box-sizing: border-box;
}

#al-chrome-float-root .al-chrome-float-mount--popup > .al-transport--float-window {
  flex: 1 1 auto;
  min-height: 0;
}

#al-chrome-float-root .al-chrome-float-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 6px;
}

#al-chrome-float-root .al-chrome-float-title {
  opacity: 0.9;
}

#al-chrome-float-root .al-chrome-float-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.al-chrome-float-mount:not(.al-chrome-float-mount--popup) {
  display: contents;
}

#al-chrome-float-root .al-transport-row--bench-desk {
  align-items: stretch;
  padding-top: 4px;
  margin-top: 2px;
  flex: 1 1 auto;
  min-height: 0;
}
#al-chrome-float-root .al-transport--float-window {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
#al-chrome-float-root .al-transport-bench-desk {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
}
#al-chrome-float-root .al-transport-bench-desk__mixer {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#al-chrome-float-root .al-transport-bench-desk__palette {
  flex: 0 0 220px;
  min-width: 200px;
  min-height: 0;
}
#al-chrome-float-root .al-transport-pick-row--float {
  flex-direction: column;
  flex-wrap: nowrap;
  width: 100%;
}
#al-chrome-float-root .al-transport-pick-row--float .al-pick-select {
  flex: 0 0 auto;
  width: 100%;
}
#al-chrome-float-root .al-transport-bench-desk__mixer .al-int-mix8-strips {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}
#al-chrome-float-root .al-transport-bench-desk__mixer .al-int-mix8-channel {
  height: 100%;
}
#al-chrome-float-root .al-transport-bench-desk__mixer .al-int-mix8-channel__vol {
  flex: 1 1 auto;
  min-height: 0;
}
#al-chrome-float-root .al-transport-bench-desk__mixer .al-int-mix8-channel__vol-range {
  height: 100%;
  min-height: 0;
}
#al-chrome-float-root .al-transport-row--bench-desk,
#al-chrome-float-root .al-transport-bench-desk,
#al-chrome-float-root .al-transport-bench-desk__mixer,
#al-chrome-float-root .al-transport-bench-desk__mixer .al-int-mix8-strips,
#al-chrome-float-root .al-transport-bench-desk__mixer .al-int-mix8-channel {
  max-width: none;
  max-height: none;
}
.al-toolbar-scene--inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  flex: 1 1 auto;
  min-width: 0;
}
.al-toolbar-scene-load {
  flex: 0 1 9rem;
  min-width: 6.5rem;
  max-width: 14rem;
  height: 28px;
  box-sizing: border-box;
}
.al-toolbar-scene--inline .al-tb-scene-name {
  flex: 1 1 10rem;
  min-width: 8rem;
  max-width: 14rem;
  height: 28px;
  box-sizing: border-box;
  font-size: 12px;
}
.al-toolbar-vruler {
  width: 1px;
  align-self: stretch;
  min-height: 28px;
  flex-shrink: 0;
}
.al-toolbar-scene--inline .sl-tbtn {
  height: 28px;
  flex-shrink: 0;
}
.al-transport-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 34px;
  min-width: 0;
}
.al-canvas-viewport {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 430px;
  min-width: 0;
}
/* Ghost cable endpoints when transport / master chrome is floated — anchored to canvas pan right edge. */
.al-cable-ghost-masters {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.al-cable-ghost-dot {
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  visibility: hidden;
}
.al-chrome-float-tbtn {
  min-width: 3.25rem;
  padding: 0 8px;
}
.al-chrome-float-tbtn--transport {
  min-width: 3rem;
  flex: 0 0 auto;
}
.al-chrome-float-tbtn--master {
  width: 68px;
  min-width: 68px;
  margin-top: 2px;
}
.al-top-chrome__transport-slot {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.al-top-chrome__master-slot {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  min-width: 0;
}
.al-top-chrome__master-slot--anchors-only {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.al-chrome-float-stub {
  flex: 0 0 auto;
  padding: 4px 0 0;
}
.al-chrome-float-stub--transport {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.al-chrome-float-stub__transport-left {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.al-chrome-float-stub__transport-actions {
  margin-left: auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.al-canvas-pan {
  position: relative;
  min-height: 1200px;
  transform-origin: 0 0;
}
.al-app-shell .al-canvas-pan > .sl-svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.sl-workspace {
  position: relative;
  height: calc(100vh - 300px);
  min-height: 430px;
  overflow: auto;
}
.sl-svg {
  position: absolute;
  inset: 0;
  /* Fill workspace SVG canvas; do not cap at legacy 1700px. */
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sl-cable {
  transition: opacity 0.15s;
}
/* Impulse: small dots sampled along the MIDI cable path (see app.js CABLE_PULSE_FOLLOW_PX) */
.al-cable-flow-dots {
  pointer-events: none;
}
.sl-cable-hit {
  pointer-events: stroke;
  cursor: pointer;
}
.sl-cable-hit.sl-cable-hit--no-disconnect {
  cursor: default;
}
.al-cable-hover-tip {
  position: fixed;
  z-index: 10040;
  pointer-events: none;
  transform: translate(10px, 14px);
  max-width: min(320px, calc(100vw - 24px));
  padding: 1px 7px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.55s ease-out;
}
.al-cable-hover-tip--visible {
  opacity: 1;
  transition: opacity 0.2s ease-in;
}
.sl-cable-pending {
  animation: sl-dash 0.4s linear infinite;
  pointer-events: none;
}
@keyframes sl-dash {
  to { stroke-dashoffset: -22;
  };
}
.sl-module {
  position: absolute;
  transition: box-shadow 0.15s;
}
.sl-module.dragging {
  z-index: 120;
}
.sl-module-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px 6px;
  cursor: grab;
}
.sl-module-head:active {
  cursor: grabbing;
}
.sl-module-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
}
.sl-module-name {
  font-size: 11px;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sl-module-name-input {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
}
.sl-module-type {
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.sl-module-desc {
  font-size: 8px;
  padding: 2px 9px 3px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sl-comp-json {
  margin: 6px 8px 8px;
  padding: 8px;
  font-size: 11px;
  line-height: 1.3;
  white-space: pre-wrap;
  cursor: pointer;
}
.sl-ctrls {
  padding: 5px 9px 4px;
}
.sl-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 21px;
}
.al-ctrl-cv-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.al-ctrl-cv-wrap .al-gui-control-row.sl-ctrl {
  flex: 1 1 auto;
  min-width: 0;
}
.al-ctrl-cv-wrap .sl-port-dot.cv.al-ctrl-cv-dot {
  flex: 0 0 auto;
  align-self: center;
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  margin: 0;
  border-radius: 50%;
  border-width: 1.5px;
  box-sizing: border-box;
}
.al-ctrl-cv-wrap .sl-port-dot.midi.al-ctrl-cv-dot {
  flex: 0 0 auto;
  align-self: center;
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  margin: 0;
  border-radius: 50%;
  border-width: 1.5px;
  box-sizing: border-box;
}
.al-pitch-quantize-scale-row .al-ctrl-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
}
.al-pitch-quantize-scale-row .al-ctrl-inline-check input[type='checkbox'] {
  margin: 0;
}
.al-app-shell .al-workspace .sl-module .al-ctrl-cv-wrap .sl-port-dot.cv.al-ctrl-cv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sl-ctrl.vertical {
  height: auto;
  align-items: center;
}
.sl-ctrl-label {
  font-size: 8px;
  min-width: 34px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sl-slider {
  flex: 1;
  height: 2px;
}
.sl-slider.vertical {
  width: 18px;
  height: 70px;
  writing-mode: bt-lr;
  appearance: slider-vertical;
  -webkit-appearance: slider-vertical;
}
.sl-ctrl-val {
  font-size: 8px;
  min-width: 28px;
  text-align: right;
}
.sl-ports {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 7px;
}
.sl-pcol {
  display: flex;
  flex-direction: column;
}
.sl-pcol.out {
  align-items: flex-end;
}
.sl-port-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
}
.sl-port-row.out {
  flex-direction: row-reverse;
}
.sl-port-dot {
  width: 10px;
  height: 10px;
  transition: transform 0.1s, background 0.1s;
  cursor: crosshair;
  flex-shrink: 0;
}
.sl-port-dot:hover, .sl-port-dot.hi {
  transform: scale(1.35);
}
.sl-port-dot.al-flow-pulse-target {
  position: relative;
  overflow: visible;
  --al-flow-pulse-ms: 140ms;
  --al-flow-pulse-travel: 12px;
  --al-flow-pulse-color: #f59e0b;
}
.sl-port-dot.al-flow-pulse-target::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  z-index: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.sl-port-dot.al-flow-pulse-target.al-flow-pulse-active:not(.al-flow-pulse-in)::before {
  animation: al-flow-port-pulse var(--al-flow-pulse-ms) linear 1;
}
.sl-port-dot.al-flow-pulse-target.al-flow-pulse-in.al-flow-pulse-active::before {
  animation: al-flow-port-pulse-in var(--al-flow-pulse-ms) linear 1;
}
.sl-port-label {
  font-size: 8px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.sl-empty-row {
  height: 24px;
}
/* Two travel legs, equal wall time: constant |v| out then back (no dwell at 18%/60% stops). */
@keyframes al-flow-port-pulse {
  0% {
    opacity: 0;
  transform: translate(-50%, -50%) scale(0.62);
  }
  1% {
    opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
  transform: translate(calc(-50% + var(--al-flow-pulse-travel)), -50%) scale(1);
  }
  100% {
    opacity: 0;
  transform: translate(-50%, -50%) scale(0.66);
  };
}
/* MIDI in: one constant-speed slide from the cable in to the jack, then release (blue). */
@keyframes al-flow-port-pulse-in {
  0% {
    opacity: 0;
  transform: translate(calc(-50% - var(--al-flow-pulse-travel)), -50%) scale(0.62);
  }
  1% {
    opacity: 1;
  transform: translate(calc(-50% - var(--al-flow-pulse-travel)), -50%) scale(1);
  }
  50% {
    opacity: 1;
  transform: translate(-50%, -50%) scale(0.95);
  }
  100% {
    opacity: 0;
  transform: translate(-50%, -50%) scale(0.66);
  };
}
button, input {
  padding: 5px 8px;
}
.sl-project-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sl-project-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.sl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.sl-json {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px;
}
.sl-muted {
  font-size: 11px;
}
.al-visualizer-sink-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 6px;
}
.al-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 12px 24px;
}
.al-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.al-panel {
  padding: 12px 14px;
  margin-bottom: 10px;
}
.al-panel h2 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.al-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.al-row:last-child {
  margin-bottom: 0;
}
.al-row label {
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.al-select {
  padding: 6px 8px;
  font-family: inherit;
  font-size: 13px;
}
.al-muted {
  font-size: 11px;
}
.al-json-preview {
  margin: 0;
  padding: 10px;
  font-size: 11px;
  line-height: 1.45;
  overflow: auto;
  max-height: 220px;
  white-space: pre-wrap;
  word-break: break-word;
}
.al-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.al-ctrl label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.al-slider {
  width: min(280px, 50vw);
}
/* --- AudioLab app shell + transport + canvas --- */
#audiolab-app .al-app-shell {   
  display: flex;
  flex-direction: column;
  gap: 0px;
  flex: 1 1 auto;
  min-height: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#audiolab-app .al-app-shell > .al-top-chrome,
#audiolab-app .al-app-shell > .sl-transport,
#audiolab-app .al-app-shell > .al-transport {
  flex-shrink: 0;
}
#audiolab-app .al-app-shell > .al-workbench {
  flex: 1 1 auto;
  min-height: 0;
}
.al-workbench {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
#audiolab-app .sl-transport {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  row-gap: 4px; 
}
.al-transport-checks.al-transport-checks--inline .al-toolbar-label--cable-anim {
  white-space: nowrap;
}
.al-toolbar-label.al-toolbar-vis-bridge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.al-toolbar-vis-bridge-label {
  flex-shrink: 0;
}
.al-toolbar-vis-bridge-input {
  box-sizing: border-box;
  height: 26px;
  padding: 2px 8px;
  max-width: min(28vw, 14rem);
  width: 12rem;
  font-size: 12px;
}
#audiolab-app .sl-transport .al-select--snap-grid,
#al-chrome-float-root .sl-transport .al-select--snap-grid {
  flex: 0 0 auto;
  width: auto;
  height: 28px;
  padding: 0 8px 0 6px;
  font-size: 12px;
  line-height: 1.1;
  box-sizing: border-box;
}
.al-transport-settings-row--select .al-select--snap-grid {
  height: 26px;
  max-width: 9rem;
}
@supports (field-sizing: content) {
  #audiolab-app .sl-transport .al-select--snap-grid,
  #al-chrome-float-root .sl-transport .al-select--snap-grid {
    field-sizing: content;
  };
}
.al-transport-master-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
/* Patch canvas: border + dot grid; scroll when canvas exceeds workbench (flex min-height:0). */
.al-workbench .al-workspace.sl-workspace {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
/* Let pan extend in flow so .sl-workspace is the scroll container (viewport must not clip). */
.al-workbench .al-workspace .al-canvas-viewport {
  min-width: 0;
  min-height: 0;
  overflow: visible;
}
.al-app-shell .al-workspace.sl-workspace .sl-svg,
.al-app-shell .al-canvas-pan > .sl-svg {
  z-index: 1;
}
.al-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 10px 12px;
  flex-shrink: 0;
}
.al-toolbar-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 0;
}
.al-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.al-toolbar-sep {
  height: 1px;
  margin: 4px 0 2px;
}
.al-toolbar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-width: 3.2em;
}
/* Modules above SVG cables */
.al-app-shell .al-workspace .sl-module {
  z-index: 15;
  overflow: visible;
  --al-port-size: 12px;
  display: flex;
  flex-direction: column;
}
/* Header-selected module: above peers; orange ring (below .dragging z-index 120) */
.al-app-shell .al-workspace .sl-module.sl-module--selected {
  z-index: 105;
}
.al-app-shell .al-workspace .sl-module.sl-module--multi-selected {
  z-index: 106;
}
.al-app-shell .al-workspace .sl-module.sl-module--group-member {
  border-style: dashed;
}
.al-group-frame {
  position: absolute;
  box-sizing: border-box;
  border-radius: 6px;
  pointer-events: none;
  z-index: 90;
}
.al-group-frame.dragging {
  z-index: 118;
}
.al-group-frame.minified {
  overflow: hidden;
}
.al-group-topbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px;
  cursor: move;
}
.al-group-topbar__left,
.al-group-topbar__right {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.al-group-topbar__left:empty {
  display: none;
}
.al-group-topbar .sl-port-dot.al-group-hub-in,
.al-group-topbar .sl-port-dot.al-group-hub-out {
  position: static;
  flex: 0 0 auto;
  width: calc(var(--al-port-size, 12px) * 1.35);
  height: calc(var(--al-port-size, 12px) * 1.35);
  min-width: calc(var(--al-port-size, 12px) * 1.35);
  min-height: calc(var(--al-port-size, 12px) * 1.35);
  margin: 0;
  cursor: crosshair;
}
.al-group-topbar__right {
  justify-content: flex-end;
}
.al-group-topbar__label {
  flex: 1 1 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}
/* Rescale mode: translucent blue drag plate + model / version / description (fill ≈50% opacity) */
.al-scale-ghost {
  position: relative;
  width: 100%;
  min-height: 60px;
  cursor: move;
  padding: 8px 10px 12px;
  box-sizing: border-box;
}
.al-scale-meta {
  position: relative;
  z-index: 1;
  pointer-events: none;
  width: 100%;
}
.al-scale-meta__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.al-scale-meta__model {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.al-scale-meta__ver {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}
.al-scale-meta__desc {
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 140px;
  overflow: auto;
}
.al-scale-handle-layer {
  position: absolute;
  inset: 0;
  z-index: 140;
  pointer-events: none;
}
.al-scale-handle {
  position: absolute;
  z-index: 2;
  width:20px;
  height: 20px;
  pointer-events: auto;
}
.al-scale-handle--nw {
  top: -10px;
  left: -10px;
  cursor: nwse-resize;
}
.al-scale-handle--ne {
  top: -10px;
  right: -10px;
  cursor: nesw-resize;
}
.al-scale-handle--sw {
  bottom: -10px;
  left: -10px;
  cursor: nesw-resize;
}
.al-scale-handle--se {
  bottom: -10px;
  right: -10px;
  cursor: nwse-resize;
}
/* Master strip — cable anchors only (controls moved to transport mixer + chrome top) */
.al-master-strip--anchors-only {
  position: relative;
  z-index: 0;
  display: block;
  width: min(340px, 38vw);
  height: 1px;
  padding: 0;
  margin: 0;
  min-height: 0;
  overflow: visible;
  pointer-events: none;
  background: transparent;
  border: none;
}
.al-master-strip--anchors-only.al-master-strip--float-window {
  width: min(340px, 38vw);
  max-width: 100%;
}
/* Master strip — docked top-right in sticky chrome (cable anchors only; no manual IN jacks) */
.al-master-strip--chrome {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 10px 8px;
  margin: 0;
  max-width: min(340px, 38vw);
  align-self: flex-start;
  top: 5px;
  left: -6px;
  min-height: 150px;
  height: auto;
}
/* Floated master window: drop the boxed chrome (teleported strip only). */
.al-master-strip--chrome.al-master-strip--float-window {
  max-width: none;
  height: auto;
  min-height: 0;
  padding: 4px 0 0;
  top: 0;
  left: 0;
}
.al-master-cable-anchors {
  display: flex;
  flex: 0 0 100%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 1px;
  margin-top: 2px;
  overflow: visible;
  pointer-events: none;
}
.al-master-cable-anchor {
  width: 1px;
  height: 1px;
  flex: 0 0 auto;
  margin: 0 18px;
  visibility: hidden;
}
.al-master-top-row {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 8px;
  justify-content: flex-start;
}
.al-master-meter-stack {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  min-height: 56px;
  gap: 4px;
}
.al-master-perf-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.al-master-perf-pill {
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
}
.al-master-fader-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
}
.al-master-fader-label {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.al-master-fader-top {
  width: 100%;
  padding: 0;
  margin: 0;
}
.al-master-led-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.al-master-ports-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.al-master-conn-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.al-master-left-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 68px;
}
.al-mono-btn,
.al-rootkey-select,
.al-rootscale-select {
  width: 68px;
  min-width: 68px;
}
.al-rootkey-select,
.al-rootscale-select {
  height: 22px;
  padding: 0 4px;
}
.al-rootscale-select-slot {
  position: relative;
  width: 68px;
  min-width: 68px;
}
.al-rootscale-picker {
  position: relative;
  width: 100%;
}
.al-rootscale-picker__trigger {
  box-sizing: border-box;
  width: 100%;
  height: 22px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 18, 26, 0.75);
  color: inherit;
  border-radius: 0.35rem;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.al-rootscale-picker__panel {
  position: absolute;
  z-index: 12000;
  left: 0;
  top: calc(100% + 2px);
  min-width: 280px;
  max-width: min(360px, 92vw);
  max-height: min(320px, 50vh);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.35rem;
  background: rgba(8, 12, 18, 0.96);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.al-rootscale-picker__opt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.35rem 0.5rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.al-rootscale-picker__opt:hover,
.al-rootscale-picker__opt.is-selected {
  background: rgba(120, 203, 230, 0.1);
}
.al-rootscale-picker__opt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}
.al-rootscale-picker__pattern {
  color: #78cbe6;
}
.al-rootscale-picker__desc {
  display: block;
  margin-top: 0.15rem;
  line-height: 1.25;
}
.al-rootkey-out-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.al-master-meter {
  display: flex;
  flex-direction: row;
  gap: 3px;
  height: 11px;
  align-items: flex-end;
}
.al-vu-seg {
  width: 7px;
  height: 3px;
  transition: background 0.05s;
}
.al-master-vol {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.al-master-vol input[type='range'] {
  width: 140px;
}
.al-master-in {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px 6px 10px;
  margin: 2px -4px -4px;
  cursor: crosshair;
}
.al-master-in-label {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.al-master-port-dot {
  flex-shrink: 0;
}
/* Scene JSON panel */
.al-json-panel {
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
}
.al-json-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  font-size: 11px;
}
.al-json-editor {
  display: block;
  width: 100%;
  min-height: 160px;
  max-height: 280px;
  resize: vertical;
  margin: 0;
  padding: 10px;
  box-sizing: border-box;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.35;
}
/* JSON scene editor: bottom dock (admin admin-feedback-dock pattern) */
.al-json-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  pointer-events: none;
}
.al-json-dock > * {
  pointer-events: auto;
}
.al-json-dock__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  /* Single separator only; avoid stacking with workspace + tab borders. */
  border-top: 1px solid #2a3040;
}
.al-json-dock--open .al-json-dock__inner {
  flex: 1 1 auto;
  min-height: 0;
}
.al-json-dock__tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  font-family: inherit;
}
.al-json-dock__tab--bar {
  width: 100%;
}
.al-json-dock__tab--in-panel {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.al-json-dock__tab-label {
  flex: 0 0 auto;
}
.al-json-dock__chevron {
  font-size: 12px;
  transition: transform 0.15s ease;
}
.al-json-dock--open .al-json-dock__chevron {
  transform: rotate(180deg);
}
.al-json-dock--open {
  top: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
}
.al-json-dock__panel {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.al-json-dock--open .al-json-dock__panel {
  flex: 1 1 auto;
  min-height: 0;
}
.al-json-dock__panel-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: inherit;
}
.al-json-dock__panel-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 0;
}
.al-json-dock__json-toolbar {
  flex: 0 0 auto;
  padding: 8px 12px 6px;
}
.al-json-dock__sync-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.al-json-dock__sync-label input {
  margin: 0;
}
.al-json-dock__textarea {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 8px 12px 12px;
  overflow: auto;
  resize: none;
  font-family:monospace;
  font-size: 13px;
  line-height: 1.4;
  box-sizing: border-box;
  white-space: pre;
}
.al-json-dock__apply-btn {
  flex-shrink: 0;
}
.al-comp-head-wrap {
  display: flex;
  flex-direction: column;
}
/* Drag-only strip above module face (grab here; name field is below). */
.al-module-drag-zone {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 38px;
  margin: 1px;
  padding: 3px 6px 4px;
  box-sizing: border-box;
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
}
.al-module-drag-zone__grip {
  flex: 1 1 auto;
  min-height: 8px;
  margin-top: 2px;
}
.al-module-drag-zone:active {
  cursor: grabbing;
}
.al-plugin-header-band {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-height: 32px;
  padding: 2px 6px 4px;
  box-sizing: border-box;
}
/* LC | CC | RC: type tag centered; MIDI readouts on SEQ/SYN/DRM */
.al-header-type-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
}
.al-header-lc {
  text-align: left;
  justify-self: start;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.al-header-cc {
  text-align: center;
  justify-self: center;
  font-size: 11px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.al-header-rc {
  text-align: right;
  justify-self: end;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.al-header-type-row .header_seq {
  font-size: 22px;
  position: absolute;
  top: 2px;
  font-weight: 900;
}
.al-header-type-row .header_syn {
  font-size: 25px;
  position: absolute;
  top: 2px;
}
.al-header-type-row .header_drm {
  font-size: 25px;
  position: absolute;
  top: 2px;
}
.al-header-type-row .header_mix {
  font-size: 25px;
  position: absolute;
  top: 2px;
}
.al-header-type-row .header_fx {
  font-size: 25px;
  position: absolute;
  top: 2px;
}
.al-header-type-row .header_cv {
  font-size: 25px;
  position: absolute;
  top: 2px;
}
.al-header-type-row .al-header-cc.header_seq,
.al-header-type-row .al-header-cc.header_syn,
.al-header-type-row .al-header-cc.header_drm,
.al-header-type-row .al-header-cc.header_mix,
.al-header-type-row .al-header-cc.header_fx,
.al-header-type-row .al-header-cc.header_cv {
  font-size: 11px;
  font-weight: 700;
}
.al-plugin-header-band__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 32px;
  width: 100%;
}
#audiolab-app .sl-module .al-module-audio-out-trim.al-gui-fader.sl-slider:not(.vertical) {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 2px 0 0;
  box-sizing: border-box;
}
.al-module-synth-output-sliders {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
#audiolab-app .sl-module .al-module-synth-output-offset.al-gui-fader.sl-slider:not(.vertical) {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 2px 0 0;
  box-sizing: border-box;
}
#audiolab-app .sl-module:has(.al-performance-player) .al-module-synth-output-sliders {
  display: none;
}
.al-plugin-header-band__left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
}
.al-plugin-header-band__center {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.al-plugin-header-band__center--unified {
  flex-wrap: wrap;
  gap: 4px 6px;
  justify-content: center;
}
.al-plugin-header-band__center--unified .al-header-octave--band {
  margin-right: 0;
}
.al-plugin-header-band__center--unified .al-name-field-compact.al-name-field-compact--header {
  flex: 1 1 72px;
  min-width: 48px;
  max-width: 100%;
  margin: 0;
  text-align: center;
}
.al-header-root-btn,
.al-header-scale-btn {
  flex-shrink: 0;
}
.al-comp-head-wrap .al-port-cluster {
  position: relative;
  z-index: 6;
}
.al-comp-head-wrap .al-port-cluster .sl-port-dot {
  position: relative;
  z-index: 7;
}
.al-plugin-header-band__right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-end;
}
.al-mini-btn--group {
  min-width: 60px;
  width: auto;
  padding: 0 8px;
  font-size: 10px;
  line-height: 18px;
}
.al-plugin-header-band__collapse {
  flex: 0 0 36px;
  width: 36px;
}
.al-plugin-header-band__preset {
  flex: 0 0 36px;
  width: 36px;
}
.al-plugin-header-band__preset-spacer {
  flex: 0 0 36px;
  width: 36px;
  height: 1px;
  pointer-events: none;
}
.al-port-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
}
.al-port-cluster--left {
  align-items: flex-start;
}
.al-port-cluster--right {
  align-items: flex-end;
}
.al-midi-wire-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px 5px;
  margin-top: 1px;
  background: var(--al-module-bg, #1a1a1e);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}
.al-midi-wire-panel__close {
  align-self: flex-end;
  line-height: 1;
  padding: 0 4px;
  margin: 0 0 2px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.75;
}
.al-midi-wire-panel__close:hover {
  opacity: 1;
}
.al-midi-wire-panel__row {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.al-midi-wire-panel__label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.al-mini-btn--preset {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.al-preset-panel {
  padding: 8px 10px 10px;
  font-size: 13px;
}
.al-preset-panel__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.al-preset-panel__row:last-of-type {
  margin-bottom: 0;
}
.al-preset-panel__name {
  flex: 1 1 120px;
  min-width: 0;
  height: 24px;
  padding: 2px 8px;
  font-size: 13px;
}
.al-preset-panel__load {
  flex: 1 1 140px;
  min-width: 0;
  height: 24px;
  font-size: 12px;
}
/* Preset JSON editor: bottom of module (see .al-comp-preset-json) */

.al-comp-preset-json {
  margin-top: 8px;
  padding: 10px 10px 10px;
}
.al-comp-preset-json__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.al-comp-preset-json__title {
  font-size: 13px;
  font-weight: 600;
}
.al-comp-preset-json__textarea {
  width: 100%;
  min-height: 96px;
  box-sizing: border-box;
  font-family: monospace;
  font-size: 15px;
  line-height: 1.4;
  padding: 8px 10px;
  resize: vertical;
}
.al-plugin-drag-row,
.al-plugin-module-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 32px;
  padding: 2px 6px;
  cursor: default;
  user-select: none;
}
.al-plugin-module-toolbar .al-drag-delete-btn {
  position: static;
  margin-left: auto;
}
.al-simsam-open-btn {
  min-width: 58px;
  height: 22px;
  line-height: 20px;
  font-size: 11px;
}
.al-simsam-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.al-simsam-dialog {
  width: min(740px, 96vw);
  max-height: 86vh;
  overflow: auto;
  padding: 12px;
  box-sizing: border-box;
}
.al-simsam-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.al-simsam-dialog__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 10px;
}
.al-simsam-dialog__body {
  padding: 10px;
}
.al-simsam-dialog__empty {
  font-size: 13px;
}
.al-simsam-dialog__list {
  display: grid;
  gap: 6px;
}
.al-simsam-dialog__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  cursor: pointer;
}
.al-simsam-dialog__row-name {
  font-weight: 600;
}
.al-simsam-dialog__row-meta {
  font-size: 12px;
}
.al-simsam-dialog__file-input {
  display: none;
}
.al-simsam-upload__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.al-simsam-upload__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.al-simsam-upload__status {
  margin-top: 8px;
  font-size: 12px;
}
.al-simsam-upload__bar {
  margin-top: 6px;
  height: 7px;
  overflow: hidden;
}
.al-simsam-upload__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.12s linear;
}
.al-simsam-voice-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 9px 4px;
}
.al-simsam-voice-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 7px;
}
.al-simsam-voice-col__title {
  font-size: 11px;
  text-align: center;
  font-weight: 700;
}
.al-simsam-voice-col__select {
  min-width: 0;
  width: 100%;
}
.al-arpeggio1-voice-col .al-gui-control-row {
  margin-top: 0;
}
.al-arpeggio1-voice-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.al-arpeggio1-voice-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.al-arpeggio1-voice-btn-row .al-mix8s2-mute--hstack,
.al-arpeggio1-voice-btn-row .al-mix8s2-solo--hstack {
  width: 100%;
  height: 26px;
  min-width: 0;
}
.al-arpeggio1-voice-col__delay {
  margin-top: 2px;
}
.al-arpeggio1-mult {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 2px;
}
.al-arpeggio1-mult__slider {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.al-arpeggio1-mult__readout {
  width: 100%;
  text-align: center;
}
.al-nighttrain-wheel-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 9px 4px;
}
.al-nighttrain-wheel-toggle {
  justify-self: stretch !important;
  width: 100%;
  min-width: 0;
}
.al-plugin-drag-row-label {
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: none;
}
.al-header-octave {
  width: 44px;
  min-width: 44px;
  height: 22px;
  margin-right: 6px;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.al-header-replace {
  max-width: 370px;
  min-width: 0;
  flex: 1 1 72px;
  height: 22px;
  margin-right: 4px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 1;
}
.al-plugin-drag-row-model {
  font-size: 13px;
  font-weight: 100;
  letter-spacing: normal;
}
.al-drag-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
}
.al-drag-root-btn {
  margin-right: 8px;
}
.al-drag-scale-btn {
  margin-right: 8px;
}
.sl-module-head.al-comp-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 8px 7px;
  text-align: left;
}
.al-head-text {
  display: none;
}
.al-comp-model {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.al-comp-version {
  font-size: 8px;
  letter-spacing: 0.08em;
}
.al-plugin-body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* Minified mixer: keep port strip in DOM for cables; hide rest until hover */
.al-plugin-body.al-plugin-body--mixer-min > *:not(.sl-ports) {
  display: none !important;
}
.al-plugin-body.al-plugin-body--mixer-min {
  padding: 0;
  min-height: 0;
  flex: 0 0 auto;
}
/* Minified mixer: port strip hangs below the header bar; shown on module hover */
.al-app-shell .al-workspace .sl-module.sl-module--mixer.collapsed .al-plugin-body.al-plugin-body--mixer-min {
  position: absolute;
  left: -1px;
  right: -1px;
  top: 100%;
  width: auto;
  margin: 0;
  padding: 6px 8px 8px;
  z-index: 60;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.al-app-shell .al-workspace .sl-module.sl-module--mixer.collapsed:hover .al-plugin-body.al-plugin-body--mixer-min {
  pointer-events: auto;
}
.al-name-field-compact {
  width: 70%;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  height: 26px;
  padding: 2px 8px;
  margin-left: 15%;
}
.al-name-field-compact::placeholder {
  font-weight: 500;
}
.al-plugin-version-corner {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 8px;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.al-mini-btn {
  width: 18px;
  height: 18px;
  padding: 0;
  cursor: pointer;
  line-height: 16px;
}
.al-mini-btn--root {
  min-width: 28px;
  width: 28px;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.al-mini-btn--scale {
  min-width: 28px;
  width: 28px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.al-mini-btn--collapse {
  position: absolute;
  top: -44px;
  width: 65px;
  height: 47px; 
  right: -5px;
}
.al-mini-btn--collapse:hover {
  transition: all 0.3s ease-in-out;
}
/* Group frame: in-bar collapse (not module tab above header). */
.al-group-topbar .al-mini-btn.al-mini-btn--collapse.al-group-topbar__collapse {
  position: static;
  top: auto;
  left: auto;
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  height: 18px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}
.al-mini-btn--danger {
  min-width: 28px;
  width: auto;
  padding: 0 5px;
}
.al-comp-head-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  text-align: left;
  min-height: 34px;
}
.al-comp-head-name {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}
.al-user-name {
  display: block;
  width: 100%;
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  line-height: 1;
}
.al-name-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  height: 26px;
  padding: 0 6px;
}
.al-head-sep {
  height: 1px;
}
/* SingleTrigger SEQ: duration row, hit target, event flags */
.sl-ctrls--single-trigger-dur {
  padding-top: 4px;
  margin-bottom: 0;
}
.al-single-trigger-zone {
  margin: 6px 8px 4px;
  min-height: 52px;
  box-sizing: border-box;
  cursor: default;
}
.al-single-trigger-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 2px 10px 8px;
  font-size: 10px;
}
.al-single-trigger-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}
.al-single-trigger-flag input {
  margin: 0;
}
.al-single-trigger-quant-head {
  padding: 4px 8px 2px;
}
.al-single-trigger-quant-mode {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.al-single-trigger-quant-rows {
  padding: 0 6px 4px;
}
.sl-ctrls--single-trigger-quant {
  padding-top: 2px;
  margin-bottom: 0;
}
.al-single-trigger-quant-label {
  display: block;
  font-size: 10px;
  margin-bottom: 2px;
}
.sl-module.collapsed .sl-module-desc,
.sl-module.collapsed .al-gui-seq-keyboard,
.sl-module.collapsed .sl-ctrls--single-trigger-dur,
.sl-module.collapsed .al-single-trigger-quant-head,
.sl-module.collapsed .al-single-trigger-quant-rows,
.sl-module.collapsed .al-single-trigger-zone,
.sl-module.collapsed .al-single-trigger-flags,
.sl-module.collapsed .al-gui-entries,
.sl-module.collapsed .sl-ctrls,
.sl-module.collapsed:not(.sl-module--mixer) .sl-ports {
  display: none;
}
.al-app-shell .al-workspace .sl-module .sl-ports {
  position: relative;
  margin-top: auto;
  flex: 0 0 auto;
  align-self: stretch;
  pointer-events: none;
  z-index: 3;
  padding-top: 6px;
}
.al-app-shell .al-workspace .sl-module .sl-pcol {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--al-port-gap, 6px);
  pointer-events: auto;
  justify-content: flex-end;
}
.al-app-shell .al-workspace .sl-module .sl-pcol:not(.out) {
  left: auto;
  align-items: flex-start;
}
.al-app-shell .al-workspace .sl-module .sl-pcol.out {
  right: auto;
  align-items: flex-end;
}
.al-app-shell .al-workspace .sl-module .sl-port-row {
  min-height: var(--al-port-size);
}
/* Mixer: audio in — label + jack share a row; cables anchor to label box in JS */
.al-app-shell .al-workspace .sl-module.sl-module--mixer .sl-mixer-in-anchor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.al-app-shell .al-workspace .sl-module.sl-module--mixer .sl-mixer-in-anchor .sl-port-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Patch (SYN/SEQ/FX): larger jacks in header port clusters */
.al-app-shell .al-workspace .sl-module.sl-module--patch {
  --al-port-patch-scale: 1.85;
}
.al-app-shell .al-workspace .sl-module.sl-module--patch .al-plugin-body {
  padding: 0;
  isolation: isolate;
}
.al-app-shell .al-workspace .sl-module.sl-module--patch .al-port-cluster .sl-port-dot {
  position: relative;
  width: calc(var(--al-port-size) * var(--al-port-patch-scale));
  height: calc(var(--al-port-size) * var(--al-port-patch-scale));
}
.al-app-shell .al-workspace .sl-module.sl-module--patch .al-port-cluster .sl-port-dot:hover,
.al-app-shell .al-workspace .sl-module.sl-module--patch .al-port-cluster .sl-port-dot.hi {
  transform: scale(1.15);
}
.al-app-shell .al-workspace .sl-module .sl-port-dot {
  position: relative;
  width: var(--al-port-size);
  height: var(--al-port-size);
  margin: 0;
  box-sizing: border-box;
}
/* Plugin type chrome backgrounds: audiolab_colors.css (component_type_* blocks) */
.al-transport-btn {
  width: 32px;
  min-width: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.al-transport-btn::before {
  content: '';
  display: block;
}
.al-transport-btn--stop::before {
  width: 10px;
  height: 10px;
}
.al-transport-btn--play::before {
  width: 0;
  height: 0;
  margin-left: 2px;
}
.al-transport-btn--pause::before {
  width: 11px;
  height: 12px;
  margin-left: 0;
}
.al-transport-btn--scale::before {
  content: '⤢';
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}
.al-record-icon-btn::before {
  width: 10px;
  height: 10px;
}
.al-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}
/* Scene library + Save As (AudioLab user SQLite scenes) */
.al-scene-lib-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.al-scene-lib-dialog {
  width: min(920px, 96vw);
  max-height: 86vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px;
  box-sizing: border-box;
}
.al-scene-lib-dialog--narrow {
  width: min(440px, 96vw);
  max-height: none;
}
.al-scene-lib__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
/* Background library modal (WireLab): drag by header row (not Close). */
.al-bg-lib-dialog__head {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.al-bg-lib-dialog__head:active {
  cursor: grabbing;
}
.al-scene-lib__tabs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
}
.al-scene-lib__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.al-scene-lib__tab {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  opacity: 0.55;
}
.al-scene-lib__tab:hover {
  opacity: 0.85;
}
.al-scene-lib__tab--active {
  opacity: 1;
}
.al-scene-lib__tab--active:hover {
  opacity: 1;
}
.al-scene-lib__body {
  padding: 10px;
  min-height: 120px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.al-scene-lib__body--save-as {
  min-height: 0;
}
.al-scene-lib__table-wrap {
  overflow: auto;
  flex: 1;
  min-height: 0;
  max-height: min(520px, 62vh);
}
.al-scene-lib__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.al-scene-lib__table th,
.al-scene-lib__table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}
.al-scene-lib__table thead th {
  font-weight: 600;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.al-scene-lib__th-actions {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}
.al-scene-lib__meta {
  font-size: 12px;
  white-space: nowrap;
}
.al-scene-lib__name-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 140px;
}
.al-scene-lib__name-text {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  word-break: break-word;
  font-weight: 600;
}
.al-scene-lib__name-text:hover {
  text-decoration: underline;
}
.al-scene-lib__name-text--static {
  cursor: default;
}
.al-scene-lib__name-text--static:hover {
  text-decoration: none;
}
.al-scene-lib__rename-input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 4px 8px;
  font-size: 13px;
}
.al-scene-lib__actions {
  text-align: right;
  white-space: nowrap;
}
.al-scene-lib__actions .sl-tbtn {
  margin-left: 6px;
}
.al-scene-lib__actions .sl-tbtn:first-child {
  margin-left: 0;
}
.al-scene-lib__icon-btn {
  min-width: 30px;
  padding-left: 6px;
  padding-right: 6px;
  font-size: 14px;
  line-height: 18px;
}
button.sl-tbtn.wl-bg-del-btn.al-scene-lib__danger-confirm {
  min-width: 5.75rem;
}
.al-scene-lib__save-as-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}
.al-scene-lib__save-as-input {
  width: 100%;
}
.al-scene-lib__save-as-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}



.al-transport-led-perf{
  position: absolute;
  left: 0px;
  top: 0px;
}