/* Stack! — shell (referência de layout: Logic Pro; paleta cinza médio) */

:root {
  /* Chrome — cinza médio, do mais claro (workspace) ao mais escuro (molduras) */
  --st-work: #6f747c;
  --st-panel: #666b73;
  --st-chrome: #5c616a;
  --st-chrome-2: #52575f;
  --st-chrome-3: #484d55;
  --st-lane: #6a6f78;
  --st-lane-alt: #71767f;

  --st-line: rgba(0, 0, 0, 0.30);
  --st-line-soft: rgba(0, 0, 0, 0.18);
  --st-hi: rgba(255, 255, 255, 0.13);
  --st-hi-soft: rgba(255, 255, 255, 0.07);

  --st-text: #f5f6f8;
  --st-dim: #dcdfe4;
  --st-mute: #b9bec6;

  --st-blue: #58a9f5;
  --st-blue-deep: #3d7fc4;
  --st-amber: #f0b32c;
  --st-teal: #3fc9b0;
  --st-violet: #a98cf0;
  --st-red: #ee5a52;
  --st-green: #5ed48c;

  --st-radius: 5px;
  --st-radius-lg: 8px;

  --st-cb-h: 88px;
  --st-toolbar-h: 30px;
  --st-ruler-h: 26px;
  --st-inspector-w: 232px;
  --st-tracklist-w: 216px;
  /* Altura de trilha: o zoom vertical reescreve esta variável em :root. */
  --lane-h: 84px;
  --fx-lane-h: 28px;

  --st-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "IBM Plex Sans", system-ui, sans-serif;
  --st-mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--st-chrome-3);
  color: var(--st-text);
  font-family: var(--st-font);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  overflow: visible;
}

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--st-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(88, 169, 245, 0.35); }

/* ============ Superfícies e controles base ============ */

.st-raised {
  background: linear-gradient(180deg, var(--st-hi) 0%, rgba(0, 0, 0, 0.10) 100%);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.st-inset {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: var(--st-text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.st-btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.08)); }
.st-btn:active { background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35); }
.st-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.st-btn-primary {
  background: linear-gradient(180deg, #6bb4f7, var(--st-blue-deep));
  border-color: rgba(0, 0, 0, 0.4);
  color: #06213c;
  font-weight: 600;
}

.st-btn-primary:hover { filter: brightness(1.06); }

.st-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  border: 1px solid var(--st-line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(0, 0, 0, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: var(--st-dim);
  cursor: pointer;
  font-size: 12px;
}

.st-icon-btn:hover { color: #fff; }
.st-icon-btn.is-on { background: linear-gradient(180deg, #6bb4f7, var(--st-blue-deep)); color: #06213c; }

.st-env-toggle {
  width: 36px;
  height: 32px;
  font-size: 14px;
}

.st-env-reset {
  width: 36px;
  height: 32px;
  font-size: 14px;
}

.st-env-toggle-icon {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.st-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 140px;
  padding: 0 8px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.18);
  color: var(--st-dim);
  font-size: 11px;
  white-space: nowrap;
}

.st-user-chip i { opacity: 0.85; font-size: 13px; }

.st-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Login ---- */

.st-login-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(88, 169, 245, 0.12), transparent 55%),
    linear-gradient(180deg, #4a4f57 0%, #2e3238 100%);
  color: var(--st-text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.st-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.st-login-card {
  width: min(380px, 100%);
  padding: 28px 26px 22px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, #5c6169, #4a4f56);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.st-login-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.st-login-brand .st-brand-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.st-login-brand .st-brand-name span { color: var(--st-blue); }

.st-login-brand .st-brand-sub {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-mute);
}

.st-login-lead {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(233, 237, 242, 0.78);
}

.st-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.st-login-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-mute);
}

.st-login-field input {
  height: 36px;
  padding: 0 12px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.28);
  color: var(--st-text);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  outline: 0;
}

.st-login-field input:focus {
  border-color: rgba(88, 169, 245, 0.65);
  box-shadow: 0 0 0 2px rgba(88, 169, 245, 0.2);
}

.st-login-error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 5px;
  background: rgba(238, 90, 82, 0.18);
  border: 1px solid rgba(238, 90, 82, 0.4);
  color: #ffc9c6;
  font-size: 12px;
  line-height: 1.4;
}

.st-login-go {
  width: 100%;
  height: 38px;
  margin-top: 4px;
  justify-content: center;
  font-size: 14px;
}

.st-login-go:disabled {
  opacity: 0.65;
  cursor: wait;
}

.st-login-hint {
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(226, 231, 237, 0.5);
  text-align: center;
}

.st-login-hint code {
  font-family: var(--st-mono, ui-monospace, monospace);
  font-size: 10.5px;
  color: rgba(233, 237, 242, 0.72);
}

/* ============ App shell ============ */

.st-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
}

/* ---- Control bar ---- */

.st-controlbar {
  flex: 0 0 auto;
  height: var(--st-cb-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  background: linear-gradient(180deg, #6a6f77 0%, #5a5f67 52%, #52575f 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 4px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 20;
}

.st-cb-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.st-cb-spacer { flex: 1 1 auto; }

.st-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding-right: 16px;
  margin-right: 2px;
  border-right: 1px solid var(--st-line);
}

.st-brand-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.st-brand-name span { color: var(--st-amber); }

.st-brand-sub {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-mute);
}

/* Transport */

.st-transport {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: var(--st-radius-lg);
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid var(--st-line-soft);
}

.st-tp {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--st-dim);
  cursor: pointer;
  font-size: 18px;
}

.st-tp:hover { background: var(--st-hi); color: #fff; }
.st-tp.is-on { background: linear-gradient(180deg, #6bb4f7, var(--st-blue-deep)); color: #06213c; }
.st-tp-rec.is-on { background: linear-gradient(180deg, #f47a72, #d13c34); color: #fff; }
.st-tp:disabled,
.st-tp[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* LCD */

.st-lcd {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 64px;
  padding: 0 4px;
  border-radius: var(--st-radius-lg);
  background: linear-gradient(180deg, #3f444b, #4a4f57);
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  font-family: var(--st-mono);
  user-select: none;
}

.st-lcd-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
  border-right: 1px solid rgba(0, 0, 0, 0.35);
  min-width: 0;
}

.st-lcd-cell:last-child { border-right: 0; }

.st-lcd-main {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #eef1f5;
  line-height: 1.1;
  white-space: nowrap;
}

.st-lcd-sub {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #a9b0ba;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
}

.st-lcd-tight { padding: 0 12px; }

.st-controlbar .st-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  font-size: 18px;
}

.st-lab-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(240, 179, 44, 0.16);
  border: 1px solid rgba(240, 179, 44, 0.45);
  color: #f6cf7a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- Corpo ---- */

.st-main {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

/* ---- Inspector ---- */

.st-inspector {
  flex: 0 0 var(--st-inspector-w);
  width: var(--st-inspector-w);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, #63686f 0%, #5a5f67 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.42);
  overflow-y: auto;
  overflow-x: hidden;
}

.st-inspector::-webkit-scrollbar,
.st-scroll::-webkit-scrollbar { width: 10px; height: 10px; }

.st-inspector::-webkit-scrollbar-thumb,
.st-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.st-insp-block {
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
}

.st-insp-head {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  color: var(--st-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.st-insp-head:hover { background: var(--st-hi-soft); color: #fff; }

.st-insp-head i.st-caret {
  font-size: 9px;
  transition: transform 0.15s ease;
  color: var(--st-mute);
}

.st-insp-block.is-open .st-insp-head i.st-caret { transform: rotate(90deg); }

.st-insp-body {
  display: none;
  padding: 4px 10px 12px;
}

.st-insp-block.is-open .st-insp-body { display: block; }

/* Quick Help: altura fixa — overflow só dentro do painel (não estica o inspector) */
[data-qh-host].is-open .st-insp-body {
  padding-bottom: 10px;
}

#stQuickHelp.st-quickhelp {
  box-sizing: border-box;
  height: 12.5rem;
  max-height: 12.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

#stQuickHelp.st-quickhelp::-webkit-scrollbar {
  width: 8px;
}

#stQuickHelp.st-quickhelp::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.st-quickhelp p {
  margin: 0 0 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--st-dim);
}

.st-quickhelp p:last-child { margin-bottom: 0; }

.st-quickhelp strong { color: #fff; }

.st-quickhelp .st-qh-idle {
  margin: 0;
  color: var(--st-mute);
  font-style: italic;
}

.st-quickhelp .st-qh-kicker {
  margin: 0 0 4px;
  color: var(--st-blue, #58a9f5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.st-quickhelp .st-qh-title {
  display: block;
  margin: 0 0 6px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
}

.st-quickhelp .st-qh-body {
  margin: 0;
}

.st-quickhelp kbd {
  display: inline-block;
  padding: 0 4px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  line-height: 1.5;
}

/* Modo hover do Quick Help */
body.st-qh-on .st-qh-hot {
  outline: 1.5px solid rgba(88, 169, 245, 0.95);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(88, 169, 245, 0.22);
  border-radius: 3px;
}

body.st-qh-on .st-qh-hot.st-playhead,
body.st-qh-on .st-qh-hot.st-cycle {
  outline-offset: 0;
  box-shadow: 0 0 0 2px rgba(88, 169, 245, 0.35);
}

[data-qh-host].is-open .st-insp-head {
  color: var(--st-blue, #58a9f5);
}

.st-kv {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 5px 8px;
  align-items: center;
  font-size: 11.5px;
}

.st-kv dt { color: var(--st-mute); }
.st-kv dd { margin: 0; color: var(--st-text); overflow-wrap: anywhere; }

/* ---- Channel strips ---- */

.st-strips {
  display: flex;
  gap: 6px;
  padding: 10px;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
}

.st-strip {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 6px 5px 7px;
  border-radius: 4px;
  background: linear-gradient(180deg, #4a4a4a, #3c3c3c);
  border: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.st-slot {
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(0, 0, 0, 0.34);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--st-dim);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: default;
}

.st-strip-fx {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 22px;
  margin: 0 0 4px;
  padding: 0 6px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, #555 0%, #434343 100%);
  color: rgba(210, 216, 222, 0.82);
  font: inherit;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

.st-strip-fx:hover {
  color: #fff;
  border-color: rgba(90, 168, 230, 0.45);
}

.st-strip-fx.is-on {
  background: linear-gradient(180deg, #4a90c8 0%, #2f6ea3 100%);
  border-color: rgba(0, 40, 80, 0.5);
  color: #fff;
}

.st-slot-fx {
  font: inherit;
  font-size: 9.5px;
  text-align: center;
  cursor: pointer;
  width: 100%;
}

.st-slot-fx:hover { color: #fff; border-color: rgba(255, 255, 255, 0.34); }

.st-slot-fx.is-on {
  background: rgba(88, 169, 245, 0.26);
  border-color: rgba(88, 169, 245, 0.6);
  color: #eaf4ff;
}

/* Output: accent prata — equilibra o azul das trilhas no console. */
.st-strip[data-strip="master"] {
  --track-color: #d4d8de;
}

.st-strip[data-strip="master"] .st-slot-fx.is-on {
  background: rgba(212, 216, 222, 0.24);
  border-color: rgba(212, 216, 222, 0.55);
  color: #f4f6f8;
}

.st-slot-out {
  padding: 0;
  background: rgba(61, 127, 196, 0.30);
  border-color: rgba(0, 0, 0, 0.4);
  color: #e7f1ff;
  cursor: pointer;
}

.st-slot-out select {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 10px 0 4px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-slot-out select:disabled {
  opacity: 0.72;
  cursor: default;
}

.st-slot-out select:focus {
  box-shadow: inset 0 0 0 1px rgba(231, 241, 255, 0.45);
}

.st-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.st-knob-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 2px;
}

.st-knob {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #7d838c 0%, #545a62 62%, #43484f 100%);
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22), 0 1px 2px rgba(0, 0, 0, 0.35);
  cursor: ns-resize;
}

.st-knob::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2px;
  height: 10px;
  border-radius: 1px;
  background: #eef1f5;
  transform-origin: 50% 11px;
  transform: translateX(-50%) rotate(var(--knob-deg, 0deg));
}

.st-val {
  font-family: var(--st-mono);
  font-size: 9.5px;
  color: var(--st-dim);
}

.st-fader-val { text-align: center; }

.st-fader-row {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 4px 0 2px;
}

.st-fader {
  position: relative;
  width: 24px;
  height: 116px;
}

.st-fader::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 5px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.st-fader input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 116px;
  height: 24px;
  transform: translate(-50%, -50%) rotate(-90deg);
  background: transparent;
  outline: none;
  cursor: ns-resize;
}

.st-fader input[type="range"]::-webkit-slider-runnable-track {
  height: 24px;
  background: transparent;
}

.st-fader input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, #eceff3 0%, #c3c8cf 48%, #9aa0a8 52%, #b7bcc4 100%);
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.st-fader input[type="range"]::-moz-range-track { height: 24px; background: transparent; }

.st-fader input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, #eceff3, #a9afb8);
  border: 1px solid rgba(0, 0, 0, 0.55);
}

.st-meter {
  width: 11px;
  height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
  padding: 2px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.st-meter i {
  display: block;
  height: 3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.st-meter i.on { background: var(--st-green); }
.st-meter i.on.mid { background: #d8e05a; }
.st-meter i.on.hot { background: #ef8b52; }

.st-strip-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.st-ms {
  width: 22px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.14));
  color: var(--st-dim);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.st-ms:hover { color: #fff; }
.st-ms.is-mute.is-on { background: linear-gradient(180deg, #f3c95c, #cf9c1c); color: #2a1f00; }
.st-ms.is-solo.is-on { background: linear-gradient(180deg, #7ce0a5, #34a768); color: #052a15; }
.st-ms.is-rec.is-on { background: linear-gradient(180deg, #f4837b, #cf3c33); color: #fff; }

.st-strip-name {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 2px -5px -7px;
  padding: 4px 4px 5px;
  border-radius: 0 0 3px 3px;
  background: var(--track-color, #6a6f78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* O strip da trilha assume a cor da trilha selecionada. */
.st-strip[data-strip="track"] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.st-strip[data-strip="track"] .st-strip-name {
  background: var(--track-color, var(--st-blue));
}

.st-strip[data-strip="master"] .st-strip-name {
  background: linear-gradient(180deg, #9a78c0, #7a589e);
}

/* ---- Área de trabalho ---- */

.st-workarea {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--st-work);
}

.st-wa-toolbar {
  flex: 0 0 auto;
  height: var(--st-toolbar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: linear-gradient(180deg, #666b73, #5b6068);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.st-menu {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--st-dim);
  font-size: 12px;
  cursor: pointer;
}

.st-menu:hover { background: var(--st-hi); color: #fff; }
.st-menu i { font-size: 8px; opacity: 0.7; }

.st-menu-wrap {
  position: relative;
  display: inline-flex;
}

.st-menu-wrap.is-open > .st-menu {
  background: var(--st-hi);
  color: #fff;
}

.st-file-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1200;
  min-width: 240px;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, 0.72);
  border-radius: 6px;
  background: rgba(68, 72, 79, 0.98);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #f0f2f5;
  font-size: 12px;
  user-select: none;
}

.st-file-menu[hidden] { display: none; }

.st-file-menu button {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}

.st-file-menu button:not(:disabled):hover,
.st-file-menu button:not(:disabled):focus-visible {
  background: #2f6fed;
  color: #fff;
}

.st-file-menu button:disabled {
  opacity: 0.42;
  cursor: default;
}

.st-file-menu button.is-danger:not(:disabled):hover,
.st-file-menu button.is-danger:not(:disabled):focus-visible {
  background: #c23b3b;
}

.st-file-menu kbd {
  font-family: var(--st-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

.st-file-menu button:hover kbd { color: rgba(255, 255, 255, 0.86); }

.st-file-menu-sep {
  height: 1px;
  margin: 4px 6px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.st-file-win {
  width: min(520px, 100%);
}

.st-file-win.is-wide {
  width: min(720px, 100%);
}

.st-file-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
  overflow: auto;
}

.st-file-body .st-form { gap: 10px; }

.st-file-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.st-file-list {
  max-height: min(360px, 50vh);
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
}

.st-file-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  background: transparent;
  color: #e8ebef;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.st-file-row:last-child { border-bottom: 0; }

.st-file-row:hover,
.st-file-row.is-sel {
  background: rgba(47, 111, 237, 0.35);
}

.st-file-row-title {
  display: block;
  font-size: 12.5px;
  color: #fff;
}

.st-file-row-sub {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--st-mute);
}

.st-file-row-meta {
  font-family: var(--st-mono);
  font-size: 10px;
  color: var(--st-mute);
  white-space: nowrap;
}

.st-proj-actions {
  display: inline-flex;
  gap: 4px;
  opacity: 0.55;
}

tr:hover .st-proj-actions { opacity: 1; }

.st-proj-actions button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--st-dim);
  cursor: pointer;
}

.st-proj-actions button:hover {
  background: var(--st-hi);
  color: #fff;
}

.st-proj-actions button.is-danger:hover {
  background: #c23b3b;
}

.st-tb-sep {
  width: 1px;
  height: 18px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.07);
}

.st-tb-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--st-mute);
}

.st-tb-field select {
  height: 22px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid var(--st-line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--st-text);
  font-size: 11px;
}

/* ---- Tracks area ---- */

.st-tracks-area {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
  position: relative;
}

.st-tracklist {
  flex: 0 0 var(--st-tracklist-w);
  width: var(--st-tracklist-w);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #62676f, #5b6068);
  border-right: 1px solid rgba(0, 0, 0, 0.42);
  z-index: 2;
}

.st-tracklist-head {
  flex: 0 0 auto;
  height: var(--st-ruler-h);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, #6a6f77, #5e636b);
}

.st-mini-btn {
  width: 20px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid var(--st-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.12));
  color: var(--st-dim);
  font-size: 10px;
  cursor: pointer;
}

.st-mini-btn:hover { color: #fff; }

.st-th {
  position: relative;
  display: flex;
  gap: 8px;
  height: var(--lane-h, 84px);
  padding: 8px;
  border-bottom: none;
  overflow: hidden;
  cursor: pointer;
}

.st-track-block {
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.st-track-block.is-sel .st-th,
.st-th.is-sel {
  background: color-mix(in srgb, var(--track-color, #58a9f5) 22%, transparent);
}

.st-track-block.is-master.is-sel .st-th,
.st-th.is-master.is-sel {
  background: color-mix(in srgb, var(--track-color, #d4d8de) 24%, transparent);
}

.st-th-ctrls-master {
  justify-content: flex-start;
}

.st-th-master-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(212, 216, 222, 0.72);
}

.st-th:hover { background: var(--st-hi-soft); }

.st-th-fxsub {
  height: var(--fx-lane-h, 28px);
  display: flex;
  align-items: center;
  padding: 0 10px 0 28px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(232, 210, 140, 0.78);
  background: #57544c;
  border-top: 1px solid rgba(0, 0, 0, 0.38);
  pointer-events: none;
  user-select: none;
}

.st-track-block.is-sel .st-th-fxsub {
  background: #5e5a50;
  color: rgba(245, 224, 160, 0.92);
}

.st-th::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--track-color, var(--st-blue));
}

.st-th-num {
  font-family: var(--st-mono);
  font-size: 10px;
  color: var(--st-mute);
  padding-top: 2px;
  width: 12px;
  text-align: right;
  flex: 0 0 auto;
}

.st-th-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.st-th-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.st-th-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: var(--track-color, var(--st-blue));
  color: rgba(0, 0, 0, 0.72);
  font-size: 10px;
}

.st-th-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--st-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
}

.st-th-fx {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.38);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.12));
  color: var(--st-dim);
  font-size: 9px;
  cursor: pointer;
}

.st-th-fx:hover {
  color: #fff;
  background: rgba(88, 169, 245, 0.28);
}

.st-th-fx.is-on {
  color: #0d1b12;
  background: linear-gradient(180deg, #7ce0a5, #34a768);
  border-color: rgba(0, 0, 0, 0.5);
}

.st-th-fx[data-fx-badge]:not([data-fx-badge=""])::after {
  content: attr(data-fx-badge);
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 12px;
  height: 12px;
  padding: 0 2px;
  border-radius: 6px;
  background: #23262b;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  line-height: 10px;
  text-align: center;
}

.st-th-name-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 1px 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--st-text);
  background: rgba(0, 0, 0, .38);
  border: 1px solid var(--track-color, var(--st-blue));
  border-radius: 3px;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .25);
}

.st-th-name-input.is-invalid {
  border-color: var(--st-red);
}

.st-th-ctrls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.st-th-vol {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  min-width: 40px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #868c95, #454a51);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
  outline: none;
}

.st-th-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e9ecf0, #a7adb6);
  border: 1px solid rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.st-th-vol::-moz-range-thumb {
  width: 10px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e9ecf0, #a7adb6);
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.st-th-pan {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #7d838c, #4a4f57);
  border: 1px solid rgba(0, 0, 0, 0.5);
  position: relative;
  transform: rotate(var(--pan-deg, 0deg));
  transition: transform 0.08s linear;
  cursor: ns-resize;
  touch-action: none;
}

.st-th-pan:hover,
.st-th-pan:focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
  outline: none;
}

.st-th-pan::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 2px;
  height: 6px;
  background: #eef1f5;
  transform: translateX(-50%);
  border-radius: 1px;
}

.st-th-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px;
  height: 26px;
  border-radius: var(--st-radius);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.12);
  color: var(--st-mute);
  font-size: 11px;
  cursor: pointer;
}

.st-th-add:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* ---- Timeline ---- */

.st-timeline {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.st-ruler {
  flex: 0 0 auto;
  height: var(--st-ruler-h);
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  background:
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.10) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #6c7179 0%, #64696f 48%, #5b6067 52%, #575c63 100%);
  cursor: ew-resize;
  overflow: hidden;
  user-select: none;
}

.st-ruler-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.32);
}

.st-ruler-tick.minor { top: 60%; background: rgba(0, 0, 0, 0.22); }

.st-ruler-label {
  position: absolute;
  top: 4px;
  font-family: var(--st-mono);
  font-size: 10px;
  color: #eef1f5;
  padding-left: 4px;
  pointer-events: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.st-lanes {
  flex: 1 1 auto;
  position: relative;
  overflow: auto;
}

/* Foco programático (rearme dos atalhos) não pinta anel; teclado sim. */
.st-lanes:focus { outline: none; }

.st-lanes:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(88, 169, 245, 0.45);
}

.st-lane {
  position: relative;
  min-width: var(--content-w, 100%);
  height: var(--lane-h, 84px);
  border-bottom: none;
  background-color: var(--st-lane);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 100%);
  background-size: calc(var(--bar-px, 96px) * 4) 100%, var(--bar-px, 96px) 100%;
  background-repeat: repeat-x, repeat-x;
}

.st-lane-group {
  position: relative;
  min-width: var(--content-w, 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.26);
}

/* Zona além do limite de execução (duração do projeto): hatch mais escuro. */
.st-lane-group::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--exec-end-x, 100%);
  right: 0;
  pointer-events: none;
  z-index: 1;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.16) 0 5px,
      rgba(0, 0, 0, 0.05) 5px 10px
    ),
    rgba(28, 30, 34, 0.28);
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.45);
}

.st-lane-group.is-master::after {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.14) 0 5px,
      rgba(0, 0, 0, 0.04) 5px 10px
    ),
    rgba(22, 24, 28, 0.32);
}

.st-lane-group:nth-child(even) .st-lane { background-color: var(--st-lane-alt); }
.st-lane-group.is-sel .st-lane,
.st-lane.is-sel {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--track-color, #58a9f5) 55%, transparent);
}

.st-lane.is-dragover {
  box-shadow:
    inset 0 0 0 2px var(--track-color, var(--st-blue)),
    inset 0 0 32px rgba(88, 169, 245, 0.12);
  background-color: rgba(88, 169, 245, 0.08);
}

.st-lane-group.is-master.is-sel .st-lane,
.st-lane.is-master.is-sel {
  box-shadow: inset 0 0 0 1px rgba(212, 216, 222, 0.55);
}

.st-lane.is-master {
  background:
    linear-gradient(180deg, rgba(212, 216, 222, 0.06), transparent 40%),
    var(--st-lane);
}

.st-fx-lane {
  position: relative;
  min-width: var(--content-w, 100%);
  height: var(--fx-lane-h, 28px);
  background-color: #57544c;
  border-top: 1px solid rgba(0, 0, 0, 0.42);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(255, 236, 170, 0.07) 0 1px, transparent 1px 100%);
  background-size: calc(var(--bar-px, 96px) * 4) 100%, var(--bar-px, 96px) 100%;
  background-repeat: repeat-x, repeat-x;
}

.st-lane-group.is-sel .st-fx-lane {
  background-color: #5e5a50;
  box-shadow: inset 0 0 0 1px rgba(240, 192, 64, 0.28);
}

.st-fx-lane-tag {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(232, 210, 140, 0.55);
  pointer-events: none;
  z-index: 1;
}

.st-fx-env {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--content-w, 100%);
  height: 100%;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

/* Preview (toggle off): curva fina, sem nós. */
.st-tracks-area:not(.is-env-edit) .st-fx-env-ceil,
.st-tracks-area:not(.is-env-edit) .st-fx-env-hit,
.st-tracks-area:not(.is-env-edit) .st-fx-env-node,
.st-tracks-area:not(.is-env-edit) .st-fx-env-label {
  display: none;
}

.st-tracks-area:not(.is-env-edit) .st-fx-env-line {
  stroke: rgba(232, 210, 140, 0.42);
  stroke-width: 1;
}

.st-fx-env-hit {
  stroke: transparent;
  stroke-width: 12;
  fill: none;
  pointer-events: none;
  cursor: crosshair;
}

.st-fx-env-line {
  stroke: #1a1610;
  stroke-width: 1.85;
  fill: none;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.st-tracks-area.is-env-edit .st-fx-env-line {
  stroke: #1a1610;
  stroke-width: 1.85;
}

.st-fx-env-node {
  fill: #14110c;
  stroke: #e8c85a;
  stroke-width: 1.25;
  pointer-events: none;
  cursor: grab;
}

.st-tracks-area.is-env-edit .st-fx-env-node {
  pointer-events: all;
}

.st-fx-env-node:active { cursor: grabbing; }

.st-fx-env-label {
  fill: #f2e6b8;
  font-size: 8px;
  font-weight: 700;
  font-family: system-ui, sans-serif;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(20, 16, 8, 0.75);
  stroke-width: 2.5px;
}

.st-fx-env-ceil {
  stroke: rgba(232, 210, 140, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  pointer-events: none;
}

.st-lane-empty {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

/* Envelope de volume: sempre desenha a curva.
   Toggle off = linha fina só-leitura (substitui o “zero” no centro quando há variação).
   Toggle on  = edição completa (zero tracejado, nós, labels, hit). */
.st-env {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--content-w, 100%);
  height: 100%;
  /* Acima dos clips: com pointer-events:none no SVG, o clique atravessa;
     só .st-env-node (pointer-events:all) captura. */
  z-index: 7;
  pointer-events: none;
  overflow: visible;
}

.st-tracks-area:not(.is-env-edit) .st-env-zero,
.st-tracks-area:not(.is-env-edit) .st-env-hit,
.st-tracks-area:not(.is-env-edit) .st-env-node,
.st-tracks-area:not(.is-env-edit) .st-env-label {
  display: none;
}

.st-tracks-area:not(.is-env-edit) .st-env-line {
  stroke: rgba(240, 192, 64, 0.5);
  stroke-width: 1;
}

.st-env-hit {
  stroke: transparent;
  stroke-width: 14;
  fill: none;
  pointer-events: none;
  cursor: crosshair;
}

/* Toggle on: faixa da curva captura (acima dos clips). Fora dela o clique
   atravessa o SVG (pointer-events:none no pai) e chega no clip. */
.st-tracks-area.is-env-edit .st-env-hit {
  pointer-events: stroke;
}

.st-env-zero {
  stroke: rgba(240, 192, 64, 0.28);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  pointer-events: none;
}

.st-env-line {
  stroke: #f0c040;
  stroke-width: 1.75;
  fill: none;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.st-tracks-area.is-env-edit .st-env-line {
  stroke: #f0c040;
  stroke-width: 1.75;
}

.st-env-node {
  fill: #f0c040;
  stroke: #1a1a1a;
  stroke-width: 1;
  pointer-events: none;
  cursor: grab;
}

.st-tracks-area.is-env-edit .st-env-node {
  /* SVG pai tem pointer-events:none → cliques passam aos clips; só o nó pega. */
  pointer-events: all;
}

.st-env-node:active {
  cursor: grabbing;
}

.st-env-label {
  fill: #ffffff;
  font-size: 9px;
  font-weight: 700;
  font-family: system-ui, sans-serif;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.55);
  stroke-width: 2px;
}

.st-clip {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--clip-top, #6fb2f2), var(--clip-bottom, #3f7fbf));
  border: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 3px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  cursor: grab;
  /* Acima do SVG do envelope (z=4); nós do envelope usam pointer-events próprios. */
  z-index: 5;
}

.st-clip:hover,
.st-clip.is-sel {
  z-index: 6;
}

.st-clip.is-sel {
  border-color: #ffffff;
  box-shadow:
    0 0 0 1px #ffffff,
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.45);
}

/* ---- Crossfade (X-Fade) · visual estilo Logic ---- */

.st-xfades {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Acima do envelope (7) e dos clips (5–6); pointer-events:none deixa o clique passar. */
  z-index: 8;
}

.st-xfade {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.st-xfade.is-tight {
  border-radius: 1px;
}

.st-xfade.is-tight .st-xfade-len,
.st-xfade.is-tight .st-xfade-dot {
  display: none;
}

.st-xfade-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.st-xfade-shade {
  fill: rgba(255, 255, 255, 0.14);
  stroke: none;
}

.st-xfade-curve {
  fill: none;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.st-xfade-mid {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.st-xfade-len {
  position: absolute;
  top: 3px;
  left: 5px;
  z-index: 1;
  font-family: var(--st-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
  pointer-events: none;
}

.st-xfade-dot {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.st-clip.is-linked {
  border-color: rgba(240, 179, 44, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 3px 0 0 0 #f0b32c,
    0 0 0 1px rgba(240, 179, 44, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.3);
}

.st-clip.is-linked.is-sel {
  border-color: #ffe6a0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 3px 0 0 0 #f0b32c,
    0 0 0 2px #ffe6a0,
    0 2px 10px rgba(0, 0, 0, 0.5);
}

.st-clip-link {
  position: absolute;
  top: 3px;
  left: 6px;
  z-index: 5;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, #f5c85e, #c18a12);
  color: #1a1408;
  font-size: 9px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.st-clip-link:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px #ffe6a0, 0 1px 3px rgba(0, 0, 0, 0.45);
}

.st-link-bridge {
  position: absolute;
  top: 50%;
  height: 10px;
  margin-top: -5px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 3px, rgba(240, 179, 44, 0.85) 3px, rgba(240, 179, 44, 0.85) 7px, transparent 7px);
  border-radius: 2px;
}

.st-link-bridge i {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0b32c;
  color: #1a1408;
  font-size: 7px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.st-clip-menu {
  position: fixed;
  z-index: 1000;
  min-width: 222px;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, 0.72);
  border-radius: 6px;
  background: rgba(68, 72, 79, 0.98);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #f0f2f5;
  font-size: 12px;
  user-select: none;
}

.st-clip-menu[hidden] { display: none; }

.st-clip-menu button {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}

.st-clip-menu button:not(:disabled):hover,
.st-clip-menu button:not(:disabled):focus-visible {
  outline: 0;
  background: var(--st-blue, #58a9f5);
  color: #fff;
}

.st-clip-menu button:disabled {
  color: rgba(232, 235, 239, 0.34);
}

.st-clip-menu button.is-danger:not(:disabled):hover,
.st-clip-menu button.is-danger:not(:disabled):focus-visible {
  background: var(--st-red, #db5a54);
}

.st-clip-menu button.is-emphasis:not(:disabled) {
  color: #f5c85e;
}

.st-clip-menu kbd {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(238, 241, 245, 0.58);
  font: 10px var(--st-mono);
  box-shadow: none;
}

.st-clip-menu button:hover kbd { color: rgba(255, 255, 255, 0.86); }

.st-clip-menu-sep {
  display: block;
  height: 1px;
  margin: 4px 3px;
  background: rgba(0, 0, 0, 0.46);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.st-toast {
  position: fixed;
  top: 56px;
  left: 50%;
  z-index: 4000;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 24px));
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, #5c6169, #3f4349);
  color: #f2f5f8;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.st-toast[hidden] { display: none; }

.st-toast.is-err {
  border-color: #c45b55;
  background: linear-gradient(180deg, #6a3a38, #4a2826);
  color: #ffd4d1;
}

.st-clip-menu button.is-muted {
  opacity: 0.45;
}

.st-clip.is-dragging {
  cursor: grabbing;
  opacity: 0.9;
  z-index: 4;
}

.st-clip-trim {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  z-index: 9;
  cursor: ew-resize;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.st-clip-trim.is-start {
  left: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  border-left: 2px solid rgba(255, 255, 255, 0.85);
}

.st-clip-trim.is-end {
  right: 0;
  background:
    linear-gradient(270deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  border-right: 2px solid rgba(255, 255, 255, 0.85);
}

.st-clip:hover .st-clip-trim,
.st-clip.is-sel .st-clip-trim { opacity: 1; }

.st-clip.is-trimming {
  z-index: 10;
}

.st-clip.is-trimming .st-clip-trim { opacity: 1; }

.st-marquee {
  position: fixed;
  z-index: 900;
  pointer-events: none;
  border: 1px solid rgba(151, 207, 255, 0.98);
  background:
    linear-gradient(135deg, rgba(88, 169, 245, 0.22), rgba(88, 169, 245, 0.09));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 8px rgba(42, 130, 214, 0.25);
}

.st-marquee[hidden] { display: none; }

.st-marquee.is-rejected {
  border-color: rgba(255, 119, 111, 1);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(219, 90, 84, 0.28) 0 5px,
      rgba(219, 90, 84, 0.12) 5px 10px
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 9px rgba(219, 90, 84, 0.35);
}

.st-clip.is-marquee-hit {
  border-color: #dcefff;
  box-shadow:
    0 0 0 1px #dcefff,
    inset 0 0 18px rgba(255, 255, 255, 0.2);
}

.st-clip.is-selection-rejected {
  border-color: #ff7770;
  box-shadow:
    0 0 0 1px #ff7770,
    inset 0 0 20px rgba(219, 90, 84, 0.3);
}

.st-clip-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.st-clip.is-missing {
  background: repeating-linear-gradient(
    135deg,
    rgba(120, 120, 128, 0.9) 0 8px,
    rgba(96, 96, 104, 0.9) 8px 16px
  );
  border-style: dashed;
}

.st-clip.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: st-clip-scan 1.1s linear infinite;
}

@keyframes st-clip-scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.st-clip-name {
  position: relative;
  display: block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  background: rgba(255, 255, 255, 0.22);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-clip.is-linked .st-clip-name {
  padding-left: 24px;
}

.st-clip-delete {
  position: absolute;
  top: 2px;
  right: 3px;
  width: 17px;
  height: 17px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: rgba(25, 25, 25, 0.64);
  color: #fff;
  font-size: 9px;
  cursor: pointer;
  z-index: 9;
}

.st-clip:hover .st-clip-delete,
.st-clip.is-sel .st-clip-delete {
  display: inline-flex;
}

.st-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 8;
  will-change: transform;
}

.st-playhead-grip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid #ffffff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
  pointer-events: auto;
  cursor: ew-resize;
}

.st-playhead-grip::after {
  content: "";
  position: absolute;
  left: -11px;
  right: -11px;
  top: -9px;
  height: 22px;
}

/* Faixa fina de arraste: cobre só a régua, mantendo os clips clicáveis. */
.st-playhead-hit {
  position: absolute;
  top: 0;
  left: 50%;
  width: 11px;
  height: var(--st-ruler-h);
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: ew-resize;
}

.st-playhead.is-dragging { background: var(--st-blue, #58a9f5); }
.st-playhead.is-dragging .st-playhead-grip { border-top-color: var(--st-blue, #58a9f5); }

/* ---- Ciclo (área de loop) ---- */

.st-cycle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  pointer-events: none;
  z-index: 6;
  background: rgba(255, 214, 102, 0.10);
  border-left: 1px solid rgba(255, 214, 102, 0.65);
  border-right: 1px solid rgba(255, 214, 102, 0.65);
}

.st-cycle-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--st-ruler-h) - 2px);
  border-radius: 0 0 3px 3px;
  pointer-events: auto;
  cursor: grab;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 214, 102, 0.55) 0 4px,
    rgba(255, 214, 102, 0.28) 4px 8px
  );
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.st-cycle.is-dragging .st-cycle-band,
.st-cycle-band:active {
  cursor: grabbing;
}

.st-cycle-handle {
  position: absolute;
  top: 0;
  width: 8px;
  height: calc(var(--st-ruler-h) - 2px);
  pointer-events: auto;
  cursor: ew-resize;
  z-index: 1;
}

.st-cycle-handle.is-l { left: -4px; }
.st-cycle-handle.is-r { right: -4px; }

.st-cycle-handle::after {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 1px;
  background: rgba(40, 28, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 230, 140, 0.35);
}

.st-cycle.is-on {
  background: rgba(255, 214, 102, 0.16);
}

.st-cycle.is-on .st-cycle-band {
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 205, 60, 0.92) 0 4px,
    rgba(230, 175, 30, 0.92) 4px 8px
  );
}

.st-cycle.is-on .st-cycle-handle::after {
  background: rgba(30, 20, 0, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 240, 170, 0.55);
}

.st-ruler { cursor: crosshair; }
.st-ruler.is-cycling { cursor: col-resize; }
.st-cycle.is-resizing { cursor: col-resize; }
.st-cycle.is-moving { cursor: grabbing; }

/* Marcadores na régua (locators). */
.st-markers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--st-ruler-h, 26px);
  pointer-events: none;
  z-index: 7;
  overflow: visible;
}

.st-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  margin-left: -9px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 1;
}

.st-marker.is-sel { z-index: 2; }

.st-marker-flag {
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--marker-color, #58a9f5);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
  pointer-events: auto;
}

.st-marker.is-sel .st-marker-flag {
  border-top-color: #ffffff;
  filter:
    drop-shadow(0 0 0 1px var(--marker-color, #58a9f5))
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.st-marker-stem {
  position: absolute;
  top: 9px;
  bottom: 0;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
  background: var(--marker-color, #58a9f5);
  opacity: 0.85;
  pointer-events: none;
}

.st-marker-label {
  position: absolute;
  top: 10px;
  left: 11px;
  max-width: 110px;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  color: #10141a;
  background: var(--marker-color, #58a9f5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto;
  cursor: text;
}

.st-marker.is-sel .st-marker-label {
  background: #fff;
  box-shadow: 0 0 0 1px var(--marker-color, #58a9f5);
}

.st-marker-name-input {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 110px;
  padding: 1px 4px;
  border-radius: 2px;
  border: 1px solid #fff;
  background: rgba(20, 24, 30, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  z-index: 3;
  outline: none;
}

.st-markers-list-input {
  width: 100%;
  min-width: 0;
  height: 20px;
  padding: 0 4px;
  border-radius: 2px;
  border: 1px solid rgba(88, 169, 245, 0.7);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  outline: none;
}

.st-markers-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.st-markers-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
}

.st-markers-search {
  flex: 1 1 auto;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.32);
  color: var(--st-text);
  font-size: 11px;
}

.st-markers-search:focus {
  outline: none;
  border-color: rgba(88, 169, 245, 0.7);
  box-shadow: 0 0 0 1px rgba(88, 169, 245, 0.25);
}

.st-markers-add {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.14));
  color: var(--st-dim);
  font-size: 11px;
  cursor: pointer;
}

.st-markers-add:hover {
  color: #fff;
  border-color: rgba(88, 169, 245, 0.55);
}

.st-markers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 180px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.st-markers-list.is-empty { display: none; }

.st-markers-item {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 5px 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--st-text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.st-markers-item:hover { background: rgba(255, 255, 255, 0.06); }
.st-markers-item.is-sel { background: rgba(88, 169, 245, 0.18); }

.st-markers-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--marker-color, #58a9f5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.st-markers-item-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.st-markers-item-name {
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-markers-item-time {
  font-family: var(--st-mono);
  font-size: 10px;
  color: var(--st-mute);
}

.st-markers-item-del {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--st-mute);
  cursor: pointer;
  opacity: 0;
}

.st-markers-item:hover .st-markers-item-del,
.st-markers-item.is-sel .st-markers-item-del {
  opacity: 1;
}

.st-markers-item-del:hover {
  color: #fff;
  background: rgba(220, 80, 80, 0.35);
}

.st-markers-empty {
  margin: 0;
  font-size: 11px;
  color: var(--st-mute);
}

.st-markers-empty[hidden] { display: none; }

/* ---- Browser (lista de projetos) ---- */

.st-browser {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.st-browser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 10px;
}

.st-browser-head h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.st-browser-head p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--st-mute);
}

.st-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 18px 20px;
}

.st-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--st-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.14);
  font-size: 12px;
}

.st-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  padding: 8px 12px;
  background: linear-gradient(180deg, #676c74, #5b6068);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-dim);
  white-space: nowrap;
}

.st-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  color: var(--st-text);
  vertical-align: middle;
}

.st-table tbody tr:hover { background: var(--st-hi-soft); }
.st-table tbody tr:last-child td { border-bottom: 0; }

.st-table .st-cell-title {
  font-weight: 600;
}

.st-table .st-cell-sub {
  display: block;
  font-size: 10.5px;
  color: var(--st-mute);
  font-family: var(--st-mono);
}

.st-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: var(--st-dim);
  white-space: nowrap;
}

.st-chip.draft { background: rgba(255, 255, 255, 0.12); }
.st-chip.in_progress { background: rgba(88, 169, 245, 0.26); color: #dceeff; }
.st-chip.review { background: rgba(240, 179, 44, 0.24); color: #ffe6ad; }
.st-chip.done { background: rgba(94, 212, 140, 0.24); color: #d6f7e4; }
.st-chip.archived { background: rgba(0, 0, 0, 0.28); color: var(--st-mute); }

.st-empty {
  padding: 26px;
  text-align: center;
  color: var(--st-mute);
  font-size: 12px;
}

/* ---- Form no inspector ---- */

.st-form { display: grid; gap: 9px; }

.st-form label {
  display: grid;
  gap: 3px;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--st-mute);
}

.st-form input,
.st-form textarea {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.32);
  color: var(--st-text);
  font-size: 12px;
  text-transform: none;
  letter-spacing: normal;
}

.st-form input:focus,
.st-form textarea:focus {
  outline: none;
  border-color: rgba(88, 169, 245, 0.75);
  box-shadow: 0 0 0 2px rgba(88, 169, 245, 0.2);
}

.st-form textarea { min-height: 60px; resize: vertical; }

/* ---- Status bar ---- */

.st-statusbar {
  flex: 0 0 auto;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  background: linear-gradient(180deg, #575c64, #4c5158);
  border-top: 1px solid rgba(0, 0, 0, 0.45);
  font-size: 10.5px;
  color: var(--st-mute);
  font-family: var(--st-mono);
}

.st-statusbar .ok { color: #a5e8c1; }
.st-statusbar .err { color: #f5a9a4; }
.st-statusbar b { color: #e6eaef; font-weight: 600; }

.st-sb-sep {
  width: 1px;
  height: 12px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.07);
}

.st-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--st-mute);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.st-dot.ok { background: var(--st-green); }
.st-dot.err { background: var(--st-red); }

/* ---- Modal ---- */

/* O modal começa abaixo da control bar: transporte e LCD seguem no mouse. */
.st-modal {
  position: fixed;
  inset: var(--st-cb-h) 0 0 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px 24px;
}

.st-modal[hidden] { display: none; }

.st-modal-back {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 17, 0.62);
  backdrop-filter: blur(2px);
}

.st-modal-win:focus { outline: 0; }

.st-modal-win {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  max-height: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.7);
  background: linear-gradient(180deg, #5c6169, #4a4f56);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.st-modal-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  background: linear-gradient(180deg, #22252a, #1a1d21);
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
}

.st-modal-close {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at 40% 34%, #ff8078, #d9433a);
  cursor: pointer;
}

.st-modal-close:hover { filter: brightness(1.18); }

.st-modal-title {
  font-size: 11.5px;
  color: #dfe3e9;
  letter-spacing: 0.02em;
}

.st-modal-title b { color: var(--track-color, #fff); }

.st-modal-sub {
  margin-left: auto;
  font-family: var(--st-mono);
  font-size: 10px;
  color: var(--st-mute);
}

/* ---- Interface de áudio (I/O) ---- */

.st-io-icon {
  display: block;
}

.st-aio-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(280px, 36vw);
  height: 26px;
  margin-right: 4px;
  padding: 0 10px 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.18);
  color: var(--st-dim);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.st-aio-live:hover,
.st-aio-live.is-on {
  color: #fff;
  border-color: rgba(88, 169, 245, 0.45);
  background: rgba(88, 169, 245, 0.14);
}

.st-aio-live.is-on {
  box-shadow: inset 0 0 0 1px rgba(88, 169, 245, 0.55);
}

.st-aio-live .st-io-icon {
  flex: 0 0 auto;
  opacity: 0.9;
}

.st-aio-live-kicker {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--st-mute);
}

.st-aio-live:hover .st-aio-live-kicker,
.st-aio-live.is-on .st-aio-live-kicker {
  color: var(--st-blue, #58a9f5);
}

.st-aio-live-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e8ecf1;
  font-weight: 600;
}

.st-modal-win.st-aio-win {
  width: min(400px, 100%);
}

.st-aio-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.st-aio-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}

.st-aio-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-mute);
}

.st-aio-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  height: 36px;
  padding: 0 34px 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #1a1d21;
  color: #f0f2f5;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #c5cad2 50%),
    linear-gradient(135deg, #c5cad2 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    linear-gradient(#1a1d21, #1a1d21);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px),
    0 0,
    0 0;
  background-size: 5px 5px, 5px 5px, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}

.st-aio-select:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.st-aio-select:focus {
  outline: 0;
  border-color: var(--st-blue, #58a9f5);
  box-shadow: 0 0 0 2px rgba(88, 169, 245, 0.28);
}

.st-aio-select option {
  background: #1a1d21;
  color: #f0f2f5;
}

.st-aio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-aio-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, #4a4f56, #3a3f46);
  color: #f0f2f5;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.st-aio-btn:hover {
  filter: brightness(1.08);
}

.st-aio-btn:disabled {
  opacity: 0.55;
  cursor: default;
  filter: none;
}

.st-aio-btn.is-primary {
  background: linear-gradient(180deg, #6bb6f7, #3d8fd9);
  border-color: rgba(0, 0, 0, 0.35);
  color: #0b1220;
}

.st-aio-btn.is-primary:hover {
  filter: brightness(1.05);
}

.st-aio-note {
  margin: 0;
  color: var(--st-mute);
  font-size: 11.5px;
  line-height: 1.5;
}

/* ---- Pedalboard ---- */

.st-fx-body {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.st-fx-win {
  width: min(1100px, 100%);
  height: min(468px, calc(100vh - var(--st-cb-h) - 24px));
}

.st-fx-board {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 16px;
  overflow: auto;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.07), transparent 55%),
    linear-gradient(180deg, #3a3e45 0%, #2a2e34 42%, #23262c 100%);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.st-fx-empty {
  max-width: 340px;
  margin: auto;
  color: rgba(233, 237, 242, 0.62);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}

.st-fx-browser {
  flex: 0 0 226px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  background:
    linear-gradient(180deg, #4a4f57 0%, #3a3f46 100%);
  border-left: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.06);
}

.st-fx-browser-head {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-mute);
}

.st-fx-browser-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st-fx-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(180deg, #5a5f67, #454a52);
  color: var(--st-text);
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 4px rgba(0, 0, 0, 0.28);
}

.st-fx-card:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(180deg, #646a73, #4e545c);
}
.st-fx-card:disabled { opacity: 0.45; cursor: not-allowed; }

.st-fx-card-chip {
  width: 16px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.st-fx-card.is-eq .st-fx-card-chip { background: linear-gradient(180deg, #dcdfe3, #b3b7bd); }
.st-fx-card.is-comp .st-fx-card-chip { background: linear-gradient(180deg, #3a5fd0, #1b3691); }
.st-fx-card.is-delay .st-fx-card-chip { background: linear-gradient(180deg, #fbfcfd, #d3d6da); }
.st-fx-card.is-reverb .st-fx-card-chip { background: linear-gradient(180deg, #4a4e54, #2c2f34); }
.st-fx-card.is-gate .st-fx-card-chip { background: linear-gradient(180deg, #1e7a44, #0f4526); }

/* Tipo já presente na cadeia: o card fica marcado em vez de só apagado. */
.st-fx-card.is-used .st-fx-card-plus { font-size: 0; }
.st-fx-card.is-used .st-fx-card-plus::before {
  content: "no board";
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st-fx-card-text { display: flex; flex-direction: column; line-height: 1.25; }
.st-fx-card-text b { font-size: 11px; font-weight: 600; }
.st-fx-card-text i {
  font-style: normal;
  font-size: 8.5px;
  letter-spacing: 0.07em;
  color: var(--st-mute);
}

.st-fx-card-plus {
  margin-left: auto;
  font-family: var(--st-mono);
  font-size: 13px;
  color: var(--st-mute);
}

.st-fx-note {
  margin-top: auto;
  font-size: 10px;
  line-height: 1.55;
  color: rgba(226, 231, 237, 0.6);
}

/* Corpo do pedal: face na cor do tipo, chassis 3D, knobs pretos. */
.st-pedal {
  --pedal-body: #4a4f57;
  --pedal-accent: #58a9f5;
  --pedal-ink: #eef1f5;
  --pedal-muted: rgba(238, 241, 245, 0.72);
  --pedal-led: #7ce0a5;
  position: relative;
  flex: 0 0 auto;
  /* Gabarito único: min/max travam o crescimento do conteúdo (ex.: 5 knobs)
     que senão estoura o height via min-height:auto do flex item. */
  width: 198px;
  height: 360px;
  min-height: 360px;
  max-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.06) 32%, transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.18)),
    var(--pedal-body);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 8px rgba(0, 0, 0, 0.35),
    0 10px 22px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  color: var(--pedal-ink);
}

.st-pedal::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 90%);
  box-shadow: 1px 0 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.st-pedal::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.st-pedal.is-eq {
  --pedal-body: #c9ccd1;
  --pedal-accent: #b3b7bd;
  --pedal-ink: #16181c;
  --pedal-muted: rgba(22, 24, 28, 0.68);
  --pedal-led: #f0b32c;
}
.st-pedal.is-comp {
  --pedal-body: #1f3fa8;
  --pedal-accent: #3a5fd0;
  --pedal-ink: #eef3ff;
  --pedal-muted: rgba(238, 243, 255, 0.72);
  --pedal-led: #8fd0ff;
}
.st-pedal.is-delay {
  --pedal-body: #eceef1;
  --pedal-accent: #d3d6da;
  --pedal-ink: #16181c;
  --pedal-muted: rgba(22, 24, 28, 0.68);
  --pedal-led: #58a9f5;
}
.st-pedal.is-reverb {
  --pedal-body: #3a3d42;
  --pedal-accent: #8a7ad4;
  --pedal-ink: #eef1f5;
  --pedal-muted: rgba(238, 241, 245, 0.72);
  --pedal-led: #b9a9f0;
}
.st-pedal.is-gate {
  --pedal-body: #14572f;
  --pedal-accent: #1e7a44;
  --pedal-ink: #e8ffef;
  --pedal-muted: rgba(232, 255, 239, 0.72);
  --pedal-led: #7dffb0;
}

.st-pedal:not(.is-on) { filter: saturate(0.4) brightness(0.78); }

.st-pedal-screw {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  z-index: 3;
  background:
    radial-gradient(circle at 35% 30%, #d5d9df, #8a9098 55%, #5a6068 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    0 1px 1px rgba(0, 0, 0, 0.55);
}

.st-pedal-screw::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%) rotate(35deg);
}

.st-pedal-screw.is-tl { top: 7px; left: 7px; }
.st-pedal-screw.is-tr { top: 7px; right: 7px; }
.st-pedal-screw.is-bl { bottom: 7px; left: 7px; }
.st-pedal-screw.is-br { bottom: 7px; right: 7px; }

.st-pedal-head {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.st-pedal-brand {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.62;
  color: var(--pedal-ink);
}

.st-pedal-tools {
  margin-left: auto;
  display: flex;
  gap: 3px;
}

/* Botões pretos com superfície reflexiva (tools + footswitch). */
.st-pedal-tools button,
.st-pedal-switch {
  border: 1px solid rgba(0, 0, 0, 0.75);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 28%, transparent 48%),
    linear-gradient(180deg, #3a3a3e 0%, #141416 42%, #0a0a0c 58%, #1c1c20 100%);
  color: #e8e8ea;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 4px rgba(0, 0, 0, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.45);
}

.st-pedal-tools button {
  width: 18px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 8px;
}

.st-pedal-tools button:hover,
.st-pedal-switch:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.06) 28%, transparent 48%),
    linear-gradient(180deg, #4a4a50 0%, #1a1a1e 42%, #0c0c0e 58%, #242428 100%);
  filter: brightness(1.08);
}

.st-pedal-tools button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  filter: none;
}

.st-pedal-plate {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 7px;
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.25);
}

.st-pedal-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--pedal-ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.st-pedal-legend {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--pedal-muted);
}

.st-pedal-ctrls {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 10px 12px;
  padding: 2px 0;
}

/* Sete bandas na mesma largura dos demais pedais: colunas estreitas e coladas. */
.st-pedal-ctrls.is-eq {
  flex-wrap: nowrap;
  gap: 0 2px;
  padding: 4px 0 0;
}

.st-pedal-ctrl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 46px;
}

.st-pedal-ctrl.is-fader { width: 20px; }

.st-pedal-ctrl.is-fader .st-pedal-ctrl-label,
.st-pedal-ctrl.is-fader .st-pedal-ctrl-val {
  font-size: 7.5px;
  letter-spacing: 0;
}

.st-pedal-knob {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.22) 0%, transparent 36%),
    radial-gradient(circle at 50% 42%, #2a2a2e 0%, #121214 55%, #050506 100%);
  border: 1px solid rgba(0, 0, 0, 0.8);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.18),
    inset 0 -3px 6px rgba(0, 0, 0, 0.7),
    0 3px 6px rgba(0, 0, 0, 0.45);
  cursor: ns-resize;
}

.st-pedal-knob::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0.06) 0 8deg,
      transparent 8deg 16deg
    ),
    radial-gradient(circle at 50% 42%, #1e1e22, #0a0a0c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.st-pedal-knob:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 2px rgba(88, 169, 245, 0.85),
    inset 0 2px 3px rgba(255, 255, 255, 0.18),
    0 3px 6px rgba(0, 0, 0, 0.45);
}

.st-pedal-knob i {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2.5px;
  height: 12px;
  border-radius: 1px;
  background: linear-gradient(180deg, #f2f2f4, #8a8a90);
  transform-origin: 50% 14px;
  transform: translateX(-50%) rotate(var(--knob-deg, 0deg));
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.st-pedal-ctrl-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pedal-ink);
  opacity: 0.85;
}

.st-pedal-ctrl-val {
  font-family: var(--st-mono);
  font-size: 8.5px;
  color: var(--pedal-muted);
}

.st-eqf {
  position: relative;
  width: 20px;
  height: 132px;
}

.st-eqf::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  bottom: 3px;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.st-eqf input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 22px;
  transform: translate(-50%, -50%) rotate(-90deg);
  background: transparent;
  outline: none;
  cursor: ns-resize;
}

.st-eqf input[type="range"]::-webkit-slider-runnable-track {
  height: 22px;
  background: transparent;
}

.st-eqf input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 20px;
  border-radius: 3px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.05) 30%, transparent 48%),
    linear-gradient(180deg, #3a3a3e 0%, #141416 42%, #0a0a0c 58%, #1c1c20 100%);
  border: 1px solid rgba(0, 0, 0, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.5);
}

.st-eqf input[type="range"]::-moz-range-track { height: 22px; background: transparent; }

.st-eqf input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 20px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, #3a3a3e 0%, #141416 50%, #1c1c20 100%);
  border: 1px solid rgba(0, 0, 0, 0.75);
}

.st-pedal-foot {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.st-pedal-led {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.st-pedal.is-on .st-pedal-led {
  background: var(--pedal-led);
  box-shadow: 0 0 8px var(--pedal-led), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.st-pedal-switch {
  width: 76px;
  height: 28px;
  min-width: 76px;
  min-height: 28px;
  max-width: 76px;
  max-height: 28px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 6px;
}

.st-pedal-switch:active {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
    linear-gradient(180deg, #1a1a1e 0%, #0a0a0c 50%, #151518 100%);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65);
}

.st-pedal-switch span {
  display: block;
  width: 34px;
  height: 5px;
  margin: 0 auto;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ---- Audio FX racks (modal única, multi-marca) ---- */

.st-fx-win.st-rack-win {
  width: min(920px, 100%);
  height: min(680px, calc(100vh - var(--st-cb-h) - 16px));
}

.st-fx-body.is-racks {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.st-fx-bay {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 22px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(140, 95, 45, 0.22), transparent 52%),
    repeating-linear-gradient(
      90deg,
      #3a2a1c 0px,
      #4a3524 2px,
      #2e2116 4px,
      #3f2d1e 7px
    ),
    linear-gradient(180deg, #2a1f16, #16110c);
  box-shadow: inset 0 0 48px rgba(0, 0, 0, 0.6);
}

.st-fx-board.is-racks {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.st-rack-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-rack-section h4 {
  margin: 2px 4px 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 210, 170, 0.55);
}

.st-rack {
  --rack-face: #3a3d44;
  --rack-ink: #eef1f5;
  --rack-muted: rgba(238, 241, 245, 0.68);
  --rack-accent: #58a9f5;
  --rack-led: #7ce0a5;
  --rack-knob-cap: #c8ccd2;
  --rack-metal: #9aa0a8;
  --pedal-body: var(--rack-face);
  --pedal-ink: var(--rack-ink);
  --pedal-muted: var(--rack-muted);
  --pedal-accent: var(--rack-accent);
  --pedal-led: var(--rack-led);
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 128px;
  flex: 0 0 auto;
  border-radius: 4px;
  color: var(--rack-ink);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.st-rack.is-eq-unit {
  min-height: 236px;
}

.st-rack:not(.is-on) {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4)) saturate(0.4) brightness(0.76);
}

.st-rack-ear {
  flex: 0 0 18px;
  background:
    linear-gradient(90deg, #1a1b1e, #2c2e33 40%, #232529),
    repeating-linear-gradient(180deg, transparent 0 9px, rgba(0, 0, 0, 0.25) 9px 10px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.st-rack-ear.is-left {
  border-radius: 4px 0 0 4px;
  border-right: 1px solid rgba(0, 0, 0, 0.55);
}

.st-rack-ear.is-right {
  border-radius: 0 4px 4px 0;
  border-left: 1px solid rgba(0, 0, 0, 0.55);
  background:
    linear-gradient(90deg, #232529, #2c2e33 60%, #1a1b1e),
    repeating-linear-gradient(180deg, transparent 0 9px, rgba(0, 0, 0, 0.25) 9px 10px);
}

.st-rack-chassis {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, 0.72);
  border-left: 0;
  border-right: 0;
  background: var(--rack-face);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 8px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.st-rack-screw {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background:
    conic-gradient(from 40deg, #e8eaee, #8a8e96, #f2f4f6, #6a6e76, #d8dce2),
    radial-gradient(circle at 35% 30%, #f0f2f5, #7a7e86 70%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  z-index: 3;
}
.st-rack-screw::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  top: 46%;
  height: 1.5px;
  background: rgba(40, 42, 48, 0.7);
  transform: rotate(-28deg);
}
.st-rack-screw.is-tl { top: 8px; left: 10px; }
.st-rack-screw.is-tr { top: 8px; right: 10px; }
.st-rack-screw.is-bl { bottom: 8px; left: 10px; }
.st-rack-screw.is-br { bottom: 8px; right: 10px; }

.st-rack-vents {
  position: absolute;
  right: 52px;
  top: 10px;
  width: 52px;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.45) 0 2px,
    transparent 2px 5px
  );
  opacity: 0.55;
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}

.st-rack-face {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 12px 22px 14px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 38%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.14), transparent 10%, transparent 90%, rgba(0, 0, 0, 0.14)),
    var(--rack-face);
}

.st-rack-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
}

.st-rack-brand {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--rack-accent);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.st-rack-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--rack-accent) 45%, transparent);
  color: var(--rack-accent);
  background: rgba(0, 0, 0, 0.18);
}

.st-rack-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-right: auto;
}

.st-rack-pwr-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.st-rack-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #15161a;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.st-rack.is-on .st-rack-led {
  background: radial-gradient(circle at 35% 30%, #fff, var(--rack-led) 45%, #1a4a2e);
  box-shadow:
    0 0 10px var(--rack-led),
    0 0 2px #fff,
    inset 0 1px 1px rgba(255, 255, 255, 0.55);
}

.st-rack-power {
  min-width: 48px;
  height: 26px;
  padding: 0 10px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  background:
    linear-gradient(180deg, #4a4a52 0%, #2a2a30 48%, #1a1a1e 52%, #26262c 100%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 3px rgba(0, 0, 0, 0.35);
}

.st-rack.is-on .st-rack-power {
  color: #c8f5d8;
  border-color: rgba(80, 180, 120, 0.55);
  background:
    linear-gradient(180deg, #3a5a48 0%, #1e3528 48%, #14241c 52%, #243a30 100%);
}

.st-rack-ctrls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  padding: 4px 2px 2px;
}

.st-rack-ctrls.is-eq {
  display: block;
  padding: 0;
}

.st-rack-eq-well {
  display: flex;
  width: 100%;
  align-items: stretch;
  justify-content: space-between;
  gap: 2px;
  padding: 10px 8px 8px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.18)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0 1px,
      transparent 1px 12px
    );
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.12);
}

.st-rack .st-pedal-ctrl.is-fader,
.st-rack-fader {
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.st-rack-fader-lcd {
  min-width: 28px;
  padding: 1px 4px;
  border-radius: 2px;
  font-family: var(--st-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  color: #9ef0b0;
  background: #0c1210;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}

.st-rack-eqf {
  position: relative;
  width: 100%;
  max-width: 42px;
  height: 156px;
  margin: 0 auto;
}

.st-rack-eqf::before {
  display: none;
}

.st-rack-eqf-scale {
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}

.st-rack-eqf-scale i {
  display: block;
  height: 1px;
  width: 100%;
  background: rgba(30, 34, 40, 0.55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.st-rack-eqf-slot {
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 7px;
  transform: translateX(-50%);
  border-radius: 3px;
  background:
    linear-gradient(90deg, #1a1c20, #0a0b0d 40%, #2a2c30 55%, #0c0d10);
  box-shadow:
    inset 0 0 4px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 0;
}

.st-rack-eqf input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 156px;
  height: 28px;
  transform: translate(-50%, -50%) rotate(-90deg);
  background: transparent;
  outline: none;
  cursor: ns-resize;
  z-index: 2;
  margin: 0;
}

.st-rack-eqf input[type="range"]::-webkit-slider-runnable-track {
  height: 28px;
  background: transparent;
}

.st-rack-eqf input[type="range"]::-moz-range-track {
  height: 28px;
  background: transparent;
  border: 0;
}

.st-rack-eqf input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid rgba(40, 44, 52, 0.85);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, transparent 35%, transparent 65%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(180deg, #f4f6f8 0%, #c8ccd2 18%, #9aa0a8 42%, #6e747c 58%, #b8bcc2 82%, #e8eaee 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  cursor: ns-resize;
}

.st-rack-eqf input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid rgba(40, 44, 52, 0.85);
  background: linear-gradient(180deg, #f0f2f4, #8a9098 50%, #d8dce0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  cursor: ns-resize;
}

.st-rack-fader .st-pedal-ctrl-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rack-muted);
}

/* Knobs metálicos nos racks */
.st-rack-knob-wrap {
  width: 54px;
}

.st-rack .st-rack-knob,
.st-rack-knob {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.45), transparent 42%),
    conic-gradient(from 0deg, #2a2c30, #6a6e76, #1e2024, #8a8e96, #2a2c30);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.55);
}

.st-rack-knob::before {
  display: none;
}

.st-rack-knob-cap {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.55), transparent 40%),
    radial-gradient(circle at 50% 55%, var(--rack-knob-cap), color-mix(in srgb, var(--rack-knob-cap) 55%, #222));
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    inset 0 -2px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.st-rack-knob i {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 2.5px;
  height: 11px;
  margin-left: -1.25px;
  border-radius: 1px;
  background: linear-gradient(180deg, #fff, #bbb);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  transform-origin: 50% 12px;
  transform: rotate(var(--knob-deg, 0deg));
  z-index: 2;
  pointer-events: none;
}

.st-rack .st-pedal-ctrl-label {
  color: var(--rack-muted);
}

.st-rack .st-pedal-ctrl-val {
  color: var(--rack-ink);
  opacity: 0.85;
  font-size: 9px;
}

.st-rack-select {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 96px;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rack-muted);
}

.st-rack-select select {
  height: 28px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
    rgba(0, 0, 0, 0.38);
  color: var(--rack-ink);
  font-size: 11px;
  padding: 0 6px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Temas / marcas */
.st-rack.theme-amber {
  --rack-face: #6e4c2a;
  --rack-accent: #f0c36a;
  --rack-led: #ffd27a;
  --rack-ink: #fff6e4;
  --rack-muted: rgba(255, 246, 228, 0.7);
  --rack-knob-cap: #d4a04a;
}
.st-rack.theme-amber .st-rack-chassis {
  background-image:
    linear-gradient(135deg, rgba(255, 220, 150, 0.12), transparent 40%),
    linear-gradient(180deg, #7a5632, #5a3c22);
}

.st-rack.theme-cyan {
  --rack-face: #1a242c;
  --rack-accent: #4fd0e8;
  --rack-led: #5cf0ff;
  --rack-ink: #e7f7fb;
  --rack-muted: rgba(231, 247, 251, 0.65);
  --rack-knob-cap: #2a8aa0;
}
.st-rack.theme-cyan .st-rack-chassis {
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(80, 220, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #24323c, #12181e);
}
.st-rack.theme-cyan .st-rack-fader-lcd,
.st-rack.theme-cyan .st-pedal-ctrl-val {
  color: #7ef0ff;
  text-shadow: 0 0 6px rgba(80, 220, 255, 0.35);
}

.st-rack.theme-rose {
  --rack-face: #ebe3d8;
  --rack-accent: #c45b78;
  --rack-led: #e07090;
  --rack-ink: #3a2a2e;
  --rack-muted: rgba(58, 42, 46, 0.58);
  --rack-knob-cap: #e8a0b4;
}
.st-rack.theme-rose .st-rack-chassis {
  background-image:
    linear-gradient(180deg, #f4eee6, #ddd2c4);
}
.st-rack.theme-rose .st-rack-badge {
  background: rgba(196, 91, 120, 0.12);
}
.st-rack.theme-rose .st-rack-power {
  background: linear-gradient(180deg, #f6f0e8, #cfc4b6);
  color: #5a4048;
}
.st-rack.theme-rose.is-on .st-rack-power {
  color: #8a2040;
  border-color: rgba(180, 70, 100, 0.45);
  background: linear-gradient(180deg, #f8e8ee, #e0c0cc);
}
.st-rack.theme-rose .st-rack-fader-lcd {
  color: #f0a0b8;
  background: #2a1820;
}

.st-rack.theme-silver {
  --rack-face: #c5c9d0;
  --rack-accent: #2f3848;
  --rack-led: #5ad08a;
  --rack-ink: #1a2028;
  --rack-muted: rgba(26, 32, 40, 0.58);
  --rack-knob-cap: #e8eaee;
}
.st-rack.theme-silver .st-rack-chassis {
  background-image:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.2) 0 1px,
      transparent 1px 3px
    ),
    linear-gradient(180deg, #dde2e8, #9aa1ab);
}
.st-rack.theme-silver .st-rack-power {
  background: linear-gradient(180deg, #f4f6f8, #b0b6c0);
  color: #222;
}
.st-rack.theme-silver .st-rack-eq-well {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.1)),
    #8e949e;
}
.st-rack.theme-silver .st-rack-fader-lcd {
  color: #b8f0c8;
  background: #101410;
}

.st-rack.theme-navy {
  --rack-face: #182856;
  --rack-accent: #8ab0ff;
  --rack-led: #9ec0ff;
  --rack-ink: #e8eefc;
  --rack-muted: rgba(232, 238, 252, 0.65);
  --rack-knob-cap: #3a5aaa;
}
.st-rack.theme-navy .st-rack-chassis {
  background-image:
    radial-gradient(circle at 80% 20%, rgba(100, 140, 255, 0.18), transparent 45%),
    linear-gradient(180deg, #243a78, #121e44);
}

.st-rack.theme-forest {
  --rack-face: #153828;
  --rack-accent: #7dffb0;
  --rack-led: #6fd99a;
  --rack-ink: #e6ffef;
  --rack-muted: rgba(230, 255, 239, 0.65);
  --rack-knob-cap: #2a8a55;
}
.st-rack.theme-forest .st-rack-chassis {
  background-image:
    linear-gradient(135deg, rgba(100, 220, 150, 0.1), transparent 40%),
    linear-gradient(180deg, #1e4a34, #0e2418);
}

.st-rack.theme-pearl {
  --rack-face: #eceff3;
  --rack-accent: #4a6a9a;
  --rack-led: #5a9ae8;
  --rack-ink: #243044;
  --rack-muted: rgba(36, 48, 68, 0.58);
  --rack-knob-cap: #f0f4f8;
}
.st-rack.theme-pearl .st-rack-chassis {
  background-image:
    linear-gradient(180deg, #f8f9fb, #cfd5de);
}
.st-rack.theme-pearl .st-rack-power {
  background: linear-gradient(180deg, #fff, #c8d0da);
  color: #333;
}
.st-rack.theme-pearl .st-rack-fader-lcd {
  color: #8ec8ff;
  background: #121820;
}

.st-rack.theme-slate {
  --rack-face: #2c313a;
  --rack-accent: #b7a0d4;
  --rack-led: #c9b0e8;
  --rack-ink: #eef0f4;
  --rack-muted: rgba(238, 240, 244, 0.65);
  --rack-knob-cap: #6a5a88;
}
.st-rack.theme-slate .st-rack-chassis {
  background-image:
    radial-gradient(ellipse at 30% 0%, rgba(180, 150, 220, 0.12), transparent 50%),
    linear-gradient(180deg, #3a404c, #22262e);
}

/* ---- Bounce / Export MP3 ---- */

.st-bounce-win {
  width: min(560px, 100%);
}

.st-bounce-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, #3a3e44, #2e3238);
  overflow: auto;
}

.st-bounce-lead {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(233, 237, 242, 0.72);
}

.st-bounce-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st-bounce-label {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-mute);
}

.st-bounce-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.st-bounce-opt {
  flex: 1 1 auto;
  min-width: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.16));
  color: var(--st-text);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.st-bounce-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.st-bounce-opt em {
  font-style: normal;
  font-family: var(--st-mono);
  font-size: 10px;
  color: var(--st-mute);
}

.st-bounce-opt.is-on {
  border-color: rgba(88, 169, 245, 0.65);
  background: rgba(88, 169, 245, 0.22);
}

.st-bounce-opt.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.st-bounce-opt:hover:not(.is-disabled) {
  background: rgba(88, 169, 245, 0.16);
}

.st-bounce-prog {
  margin: 0;
  font-size: 11.5px;
  color: #9fd0ff;
}

.st-bounce-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

#stBounceBtn.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

/* ---- Mixer console (Logic-inspired) ---- */

.st-modal-win.st-mixer-win {
  width: max-content;
  max-width: min(100%, calc(100vw - 48px));
  height: auto;
  max-height: calc(100vh - var(--st-cb-h) - 40px);
}

.st-mixer-bay {
  flex: 0 1 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  width: max-content;
  max-width: 100%;
  padding: 10px;
  background:
    linear-gradient(180deg, #3a3a3a 0%, #2e2e2e 40%, #282828 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: auto;
}

.st-mixer-channels {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 3px;
  width: max-content;
}

.st-mx-ch {
  position: relative;
  flex: 0 0 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 7px 0;
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(180deg, #4a4a4a 0%, #404040 55%, #3a3a3a 100%);
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-bottom: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.st-mx-ch.is-sel {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--track-color, #58a9f5) 22%, #555) 0%,
      color-mix(in srgb, var(--track-color, #58a9f5) 12%, #454545) 52%,
      #3c3c3c 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 0 1px color-mix(in srgb, var(--track-color, #58a9f5) 42%, transparent);
}

.st-mx-ch.is-master {
  flex-basis: 112px;
  margin-left: 6px;
  background:
    linear-gradient(180deg, #4e4a52 0%, #423e46 55%, #3a363e 100%);
}

.st-mx-ch.is-master.is-sel {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--track-color, #8f6bb5) 26%, #555) 0%,
      color-mix(in srgb, var(--track-color, #8f6bb5) 14%, #423e46) 55%,
      #3a363e 100%
    );
}

.st-mx-fx,
.st-mx-out {
  width: 100%;
  height: 20px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background:
    linear-gradient(180deg, #555555 0%, #464646 100%);
  color: #c8c8c8;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.st-mx-inserts {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  margin-bottom: 2px;
}

.st-mx-insert {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, #555555 0%, #464646 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.st-mx-insert.is-empty {
  pointer-events: none;
  background: linear-gradient(180deg, #3a3a3a 0%, #323232 100%);
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.st-mx-insert.is-empty.is-add,
.st-strip-insert.is-empty.is-add {
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  background: linear-gradient(180deg, #3f3f3f 0%, #353535 100%);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.st-mx-insert.is-empty.is-add:hover,
.st-strip-insert.is-empty.is-add:hover {
  border-color: rgba(90, 168, 230, 0.55);
  background: linear-gradient(180deg, #454545 0%, #3a3a3a 100%);
}

.st-fx-slot-add {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(200, 210, 220, 0.55);
}

.st-mx-insert.is-on,
.st-strip-insert.is-on {
  background: linear-gradient(180deg, #4a90c8 0%, #2f6ea3 100%);
  border-color: rgba(0, 40, 80, 0.55);
}

.st-mx-insert.is-on .st-mx-insert-btn,
.st-strip-insert.is-on .st-strip-insert-btn {
  color: #fff;
  font-weight: 700;
}

.st-mx-insert-empty {
  display: block;
  flex: 1 1 auto;
  height: 100%;
}

.st-mx-insert-btn {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 0 4px 0 6px;
  background: transparent;
  color: #c8c8c8;
  font: inherit;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-mx-insert-pwr {
  flex: 0 0 14px;
  width: 14px;
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.35);
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  position: relative;
}

.st-mx-insert-pwr::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 200, 200, 0.55);
  box-sizing: border-box;
}

.st-mx-insert.is-on .st-mx-insert-btn {
  color: #fff;
}

.st-mx-insert.is-on {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--track-color, #58a9f5) 82%, #fff) 0%,
      color-mix(in srgb, var(--track-color, #58a9f5) 72%, #1a1a1a) 100%
    );
  border-color: rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px color-mix(in srgb, var(--track-color, #58a9f5) 35%, transparent);
}

.st-mx-insert.is-on .st-mx-insert-pwr {
  background: rgba(0, 0, 0, 0.22);
}

.st-mx-insert.is-on .st-mx-insert-pwr.is-on::after {
  background: #f0c14b;
  border-color: #f0c14b;
  box-shadow: 0 0 4px rgba(240, 193, 75, 0.7);
}

.st-mx-insert-btn:hover {
  color: #fff;
}

.st-mx-fx {
  cursor: pointer;
  font: inherit;
  font-size: 9.5px;
  font-weight: 600;
}

.st-mx-fx:hover {
  color: #f0f0f0;
  background: linear-gradient(180deg, #5c5c5c 0%, #4c4c4c 100%);
}

/* Pedal ativo no bank → slot colorido (cor da trilha). */
.st-mx-fx.is-on {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--track-color, #58a9f5) 82%, #fff) 0%,
      color-mix(in srgb, var(--track-color, #58a9f5) 72%, #1a1a1a) 100%
    );
  color: #fff;
  border-color: rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px color-mix(in srgb, var(--track-color, #58a9f5) 35%, transparent);
}

.st-mx-fx.is-on:hover {
  filter: brightness(1.06);
  color: #fff;
}

.st-mx-out {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  color: #c8c8c8;
  cursor: pointer;
  user-select: none;
}

.st-mx-out select {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-mx-out select:disabled {
  opacity: 0.7;
  cursor: default;
}

.st-mx-out select:focus {
  box-shadow: inset 0 0 0 1px rgba(231, 241, 255, 0.35);
}

.st-mx-knob-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2px 0 0;
}

.st-mx-knob {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #9a9a9a 0%, #6a6a6a 38%, #3e3e3e 72%, #2a2a2a 100%);
  border: 1px solid rgba(0, 0, 0, 0.65);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    inset 0 -2px 3px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.35);
  cursor: ns-resize;
}

.st-mx-knob::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #5a5a5a, #333);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.st-mx-knob::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 2px;
  height: 12px;
  border-radius: 1px;
  background: #ececec;
  transform-origin: 50% 14px;
  transform: translateX(-50%) rotate(var(--knob-deg, 0deg));
  z-index: 1;
}

.st-mx-lcd {
  width: 100%;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: #121212;
  border: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.75),
    0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: var(--st-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e8e8e8;
  font-variant-numeric: tabular-nums;
}

.st-mx-fader-col {
  display: flex;
  gap: 4px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  margin-top: 2px;
  flex: 1 1 auto;
  min-height: 188px;
}

.st-mx-scale {
  flex: 0 0 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 0 8px;
  text-align: right;
  font-family: var(--st-mono);
  font-size: 8px;
  line-height: 1;
  color: rgba(210, 210, 210, 0.55);
  user-select: none;
  pointer-events: none;
}

.st-mx-fader {
  position: relative;
  flex: 0 0 28px;
  height: 188px;
  border-radius: 3px;
  background: transparent;
}

.st-mx-fader::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 5px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: #1a1a1a;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.st-mx-fader input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 188px;
  height: 28px;
  transform: translate(-50%, -50%) rotate(-90deg);
  background: transparent;
  outline: none;
  cursor: ns-resize;
  z-index: 2;
}

.st-mx-fader input[type="range"]::-webkit-slider-runnable-track {
  height: 28px;
  background: transparent;
}

.st-mx-fader input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 28px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 3px rgba(0, 0, 0, 0.45);
  /* Cap metálico + linha central (Logic). */
  background-image:
    linear-gradient(#2a2a2a, #2a2a2a),
    linear-gradient(
      180deg,
      #f2f2f2 0%,
      #d0d0d0 40%,
      #9a9a9a 46%,
      #9a9a9a 54%,
      #c8c8c8 60%,
      #e8e8e8 100%
    );
  background-size: 100% 1px, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat;
}

.st-mx-fader input[type="range"]::-moz-range-track {
  height: 28px;
  background: transparent;
}

.st-mx-fader input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 28px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f0f0f0, #c0c0c0);
  border: 1px solid rgba(0, 0, 0, 0.55);
}

.st-mx-meter {
  flex: 0 0 12px;
  height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
  padding: 3px 2px;
  border-radius: 2px;
  background: #0c0c0c;
  border: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.st-mx-meter i {
  display: block;
  height: 4px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
}

.st-mx-meter i.on {
  background: #3ecf6a;
  box-shadow: none;
}

.st-mx-meter i.on.mid {
  background: #d4d24a;
}

.st-mx-meter i.on.hot {
  background: #e86a3a;
}

.st-mx-ms {
  display: flex;
  gap: 4px;
  padding: 2px 0 4px;
}

.st-mx-btn {
  width: 28px;
  height: 22px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background:
    linear-gradient(180deg, #5a5a5a 0%, #454545 100%);
  color: #c8c8c8;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.st-mx-btn:hover { color: #fff; }

.st-mx-btn.is-mute.is-on {
  background: linear-gradient(180deg, #e8b43a, #c08a12);
  color: #1a1408;
  border-color: rgba(0, 0, 0, 0.45);
}

.st-mx-btn.is-solo.is-on {
  background: linear-gradient(180deg, #5aa8ef, #3a78c0);
  color: #061828;
  border-color: rgba(0, 0, 0, 0.45);
}

/* Placa de nome colorida — assinatura do channel strip Logic. */
.st-mx-name {
  width: calc(100% + 14px);
  margin: 0 -7px;
  padding: 5px 6px 6px;
  border-radius: 0 0 3px 3px;
  background: var(--track-color, #58a9f5);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.st-mx-ch.is-master .st-mx-name {
  background: linear-gradient(180deg, #9a78c0, #7a589e);
}

/* ---- Biblioteca de áudio ---- */

.st-lib-win {
  width: min(880px, 100%);
  height: min(780px, calc(100vh - var(--st-cb-h) - 16px));
  max-height: calc(100vh - var(--st-cb-h) - 16px);
  display: flex;
  flex-direction: column;
}

.st-lib-row.is-sel {
  outline: 1px solid rgba(120, 190, 240, 0.55);
  background: rgba(80, 140, 200, 0.12);
}

.st-lib-edit {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
  padding-top: 10px;
  padding-bottom: 4px;
}

.st-lib-body.is-eq-open .st-lib-list {
  flex: 0 1 22%;
  min-height: 72px;
  max-height: 120px;
}

.st-lib-body.is-eq-open .st-lib-note {
  display: none;
}

.st-lib-body.is-eq-open .st-lib-edit-wave-host,
.st-lib-body.is-eq-open .st-lib-edit-wave-host canvas {
  height: 72px;
}

.st-lib-edit-empty {
  margin: 0;
  padding: 18px 8px;
  text-align: center;
  font-size: 12px;
  color: rgba(226, 231, 237, 0.55);
}

.st-lib-edit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.st-lib-edit-head b {
  font-size: 13px;
  color: #e8edf2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-lib-edit-head span {
  flex: 0 0 auto;
  font-size: 11px;
  color: rgba(226, 231, 237, 0.55);
}

.st-lib-edit-wave-host {
  position: relative;
  height: 110px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.45);
  background: #0a121a;
  cursor: text;
  user-select: none;
}

.st-lib-edit-wave-host canvas {
  display: block;
  width: 100%;
  height: 110px;
}

.st-lib-edit-sel {
  position: absolute;
  top: 0;
  bottom: 0;
  display: none;
  background: rgba(240, 193, 75, 0.16);
  border-left: 1px solid rgba(240, 193, 75, 0.95);
  border-right: 1px solid rgba(240, 193, 75, 0.95);
  box-sizing: border-box;
  pointer-events: none;
}

.st-lib-edit-sel::before,
.st-lib-edit-sel::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 3px;
  height: 16px;
  margin-top: -8px;
  border-radius: 1px;
  background: #f0c14b;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.st-lib-edit-sel::before { left: -2px; }
.st-lib-edit-sel::after { right: -2px; }

.st-lib-edit-sep {
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: rgba(255, 255, 255, 0.12);
  align-self: center;
}

.st-lib-edit-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #f5c542;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 3;
}

.st-lib-edit-cursor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #f5c542;
}

.st-lib-edit-transport,
.st-lib-edit-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.st-lib-edit-playhead {
  display: inline-flex;
  align-items: center;
  min-width: 7.6em;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid rgba(240, 193, 75, 0.35);
  background: rgba(240, 193, 75, 0.1);
  color: #f0c14b;
  font-family: var(--st-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

.st-lib-edit-tools .st-lib-btn {
  font-size: 11px;
}

.st-lib-edit-transport .st-lib-btn.is-playing {
  background: linear-gradient(180deg, rgba(240, 193, 75, 0.35), rgba(240, 193, 75, 0.18));
  border-color: rgba(240, 193, 75, 0.55);
  color: #f5d67a;
}

.st-lib-edit-status {
  margin: 8px 0 0;
  min-height: 1.2em;
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(226, 231, 237, 0.55);
}

.st-lib-edit-status.is-ok {
  color: #8fd4a4;
}

.st-lib-edit-status.is-err {
  color: #f0a0a0;
}

/* ---- Busy global (bloqueia o app) ---- */

.st-system-busy {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(3px);
}

.st-system-busy[hidden] {
  display: none;
}

body.is-system-busy {
  overflow: hidden;
  pointer-events: none;
}

body.is-system-busy .st-system-busy {
  pointer-events: auto;
}

.st-system-busy-card {
  width: min(420px, 100%);
  padding: 22px 24px 20px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.65);
  background: linear-gradient(180deg, #4a4f57, #32363c);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.st-system-busy-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #f0c14b;
  animation: st-busy-spin 0.75s linear infinite;
}

@keyframes st-busy-spin {
  to { transform: rotate(360deg); }
}

.st-system-busy-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #eef2f6;
}

.st-system-busy-detail {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(226, 231, 237, 0.65);
  min-height: 1.4em;
}

.st-system-busy-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.st-system-busy-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, #c9a227, #f0c14b 55%, #ffe08a);
  box-shadow: 0 0 8px rgba(240, 193, 75, 0.35);
  transition: width 0.18s ease-out;
}

.st-system-busy-bar.is-pulse {
  animation: st-busy-pulse 1.1s ease-in-out infinite;
}

@keyframes st-busy-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

.st-system-busy-pct {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(226, 231, 237, 0.55);
  font-variant-numeric: tabular-nums;
}

.st-lib-gain {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 2px 0 6px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.22);
}

.st-lib-gain input[type="number"] {
  width: 58px;
  height: 24px;
  border: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--st-text);
  font-size: 12px;
  text-align: right;
  padding: 0 4px;
  outline: 0;
}

.st-lib-gain span {
  font-size: 11px;
  color: rgba(226, 231, 237, 0.6);
}

.st-lib-gain .st-lib-btn {
  border: 0;
  border-radius: 0 4px 4px 0;
  height: 28px;
}

.st-lib-edit-status {
  margin: 8px 0 0;
  min-height: 1.2em;
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(226, 231, 237, 0.55);
}

.st-lib-edit-status.is-ok {
  color: #8fd4a4;
}

.st-lib-edit-status.is-err {
  color: #f0a0a0;
}

/* ---- Busy global (bloqueia o app) ---- */

.st-system-busy {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(3px);
}

.st-system-busy[hidden] {
  display: none;
}

body.is-system-busy {
  overflow: hidden;
  pointer-events: none;
}

body.is-system-busy .st-system-busy {
  pointer-events: auto;
}

.st-system-busy-card {
  width: min(420px, 100%);
  padding: 22px 24px 20px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.65);
  background: linear-gradient(180deg, #4a4f57, #32363c);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.st-system-busy-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #f0c14b;
  animation: st-busy-spin 0.75s linear infinite;
}

@keyframes st-busy-spin {
  to { transform: rotate(360deg); }
}

.st-system-busy-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #eef2f6;
}

.st-system-busy-detail {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(226, 231, 237, 0.65);
  min-height: 1.4em;
}

.st-system-busy-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.st-system-busy-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, #c9a227, #f0c14b 55%, #ffe08a);
  box-shadow: 0 0 8px rgba(240, 193, 75, 0.35);
  transition: width 0.18s ease-out;
}

.st-system-busy-bar.is-pulse {
  animation: st-busy-pulse 1.1s ease-in-out infinite;
}

@keyframes st-busy-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

.st-system-busy-pct {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(226, 231, 237, 0.55);
  font-variant-numeric: tabular-nums;
}

.st-lib-gain {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 2px 0 6px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.22);
}

.st-lib-gain input[type="number"] {
  width: 58px;
  height: 24px;
  border: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--st-text);
  font-size: 12px;
  text-align: right;
  padding: 0 4px;
  outline: 0;
}

.st-lib-gain span {
  font-size: 11px;
  color: rgba(226, 231, 237, 0.6);
}

.st-lib-gain .st-lib-btn {
  border: 0;
  border-radius: 0 4px 4px 0;
  height: 28px;
}

.st-lib-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #3a3e44, #2e3238);
}

.st-lib-toolbar {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.st-lib-search {
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  padding: 0 10px;
  height: 30px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.28);
  color: var(--st-mute);
}

.st-lib-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--st-text);
  font-size: 12px;
  outline: 0;
}

.st-lib-track {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--st-mute);
}

.st-lib-track select {
  height: 30px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.16));
  color: var(--st-text);
  font-size: 12px;
}

.st-lib-btn {
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.18));
  color: var(--st-text);
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
}

.st-lib-btn:hover {
  filter: brightness(1.08);
}

.st-lib-btn.is-primary {
  background: linear-gradient(180deg, #4a8fd4, #2e6aad);
  border-color: rgba(0, 0, 0, 0.45);
}

.st-lib-btn.is-danger {
  color: #f0b0b0;
}

.st-lib-btn.is-playing {
  background: linear-gradient(180deg, #3a6a4a, #1e4030);
}

.st-lib-btn.is-on {
  background: linear-gradient(180deg, rgba(74, 143, 212, 0.45), rgba(46, 106, 173, 0.55));
  border-color: rgba(120, 180, 230, 0.55);
}

.st-lib-list {
  flex: 1 1 38%;
  min-height: 120px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
}

.st-lib-empty {
  margin: auto;
  max-width: 360px;
  text-align: center;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(233, 237, 242, 0.62);
}

.st-lib-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.14));
  cursor: default;
}

.st-lib-row:hover,
.st-lib-row:focus {
  outline: 0;
  border-color: rgba(88, 169, 245, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.12));
}

.st-lib-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.st-lib-name {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-lib-stats {
  font-family: var(--st-mono);
  font-size: 10.5px;
  color: var(--st-mute);
}

.st-lib-badge {
  align-self: flex-start;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(233, 237, 242, 0.7);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.st-lib-badge.is-used {
  color: #b8e0ff;
  background: rgba(58, 120, 180, 0.28);
  border-color: rgba(88, 169, 245, 0.35);
}

.st-lib-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.st-lib-note {
  flex: 0 0 auto;
  margin: 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(226, 231, 237, 0.55);
}

/* ---- EQ 7 bandas (biblioteca) ---- */

.st-lib-eq {
  margin-top: 8px;
  padding: 10px 12px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, rgba(42, 46, 54, 0.95), rgba(28, 31, 37, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
}

.st-lib-eq[hidden] {
  display: none !important;
}

.st-lib-eq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 8px;
}

.st-lib-eq-head b {
  font-size: 12px;
  font-weight: 650;
  color: #e8edf2;
}

.st-lib-eq-head span {
  font-size: 10.5px;
  color: rgba(226, 231, 237, 0.55);
}

.st-lib-eq-bands {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  justify-items: center;
  gap: 4px 6px;
  padding: 0;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.st-lib-eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

.st-lib-eq-hz {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(240, 193, 75, 0.92);
  line-height: 1;
}

.st-lib-eq-slider {
  position: relative;
  width: 24px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.st-lib-eq-slider input[type="range"] {
  width: 84px;
  height: 18px;
  margin: 0;
  padding: 0;
  transform: rotate(-90deg);
  transform-origin: center center;
  accent-color: #f0c14b;
  cursor: pointer;
  background: transparent;
}

.st-lib-eq-val {
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: #e8edf2;
  min-width: 2.6em;
  text-align: center;
  line-height: 1;
}

.st-lib-eq-unit {
  font-size: 9px;
  color: rgba(226, 231, 237, 0.45);
  line-height: 1;
  margin-top: -1px;
}

.st-lib-eq-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.st-lib-eq-actions-gap {
  flex: 1 1 auto;
  min-width: 8px;
}

@media (max-width: 640px) {
  .st-lib-eq-bands {
    gap: 2px 4px;
    max-width: none;
  }

  .st-lib-eq-slider {
    height: 72px;
  }

  .st-lib-eq-slider input[type="range"] {
    width: 72px;
  }
}

/* ---- Declique modal (biblioteca) ---- */

.st-dc-modal {
  z-index: 2100;
}

.st-dc-win {
  width: min(760px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - var(--st-cb-h) - 28px));
}

.st-dc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #3a3e44, #2c3036);
  min-height: 0;
  overflow: auto;
}

.st-dc-layout {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 100px;
  gap: 12px;
  align-items: stretch;
  min-height: 220px;
}

.st-dc-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 4px;
}

.st-dc-col-left {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.st-dc-col-right {
  gap: 14px;
}

.st-dc-fader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 34px;
}

.st-dc-fader-val {
  font-family: var(--st-mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 650;
  color: #e8edf2;
  min-height: 1.1em;
}

.st-dc-fader-track {
  width: 28px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(0, 0, 0, 0.45);
}

.st-dc-fader-track input[type="range"] {
  width: 140px;
  height: 18px;
  margin: 0;
  transform: rotate(-90deg);
  transform-origin: center center;
  accent-color: #f0c14b;
  cursor: pointer;
  background: transparent;
}

.st-dc-fader-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 231, 237, 0.62);
}

.st-dc-algo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 320px;
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 231, 237, 0.62);
}

.st-dc-algo select {
  width: 100%;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #e8edf2;
  background: #121820;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 5px 6px;
}

.st-dc-fader.is-disabled,
.st-dc-fader.is-disabled input {
  opacity: 0.35;
  pointer-events: none;
}

.st-dc-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 34px;
}

.st-dc-meter-bar {
  position: relative;
  width: 14px;
  height: 140px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: #0a0e14;
  overflow: hidden;
}

.st-dc-meter-bar i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(180deg, #f0c14b, #c44);
  transition: height 0.12s ease-out;
}

.st-dc-meter-val {
  font-family: var(--st-mono, ui-monospace, monospace);
  font-size: 10px;
  color: rgba(226, 231, 237, 0.75);
  white-space: nowrap;
}

.st-dc-scope-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.st-dc-scope-host {
  flex: 1 1 auto;
  min-height: 180px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background: #070b10;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.st-dc-scope-host canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.st-dc-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(226, 231, 237, 0.7);
}

.st-dc-legend .is-audio::before,
.st-dc-legend .is-clicks::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 1px;
  vertical-align: middle;
}

.st-dc-legend .is-audio::before {
  background: rgba(220, 228, 236, 0.85);
}

.st-dc-legend .is-clicks::before {
  background: rgba(230, 64, 64, 0.9);
}

.st-dc-count {
  margin-left: auto;
}

.st-dc-count b {
  color: #f0c14b;
  font-weight: 700;
}

.st-dc-listen {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.st-dc-listen-btn {
  height: 34px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.2));
  color: rgba(226, 231, 237, 0.82);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.st-dc-listen-btn.is-on {
  background: linear-gradient(180deg, #4a8fd4, #2e6aad);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.4);
}

.st-dc-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(226, 231, 237, 0.55);
}

.st-dc-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 11.5px;
  color: rgba(226, 231, 237, 0.6);
}

.st-dc-status.is-ok { color: #8fd4a4; }
.st-dc-status.is-err { color: #f0a0a0; }

.st-dc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}

.st-dc-actions-gap {
  flex: 1 1 auto;
  min-width: 8px;
}

.st-dc-legend .is-out::before,
.st-dc-legend .is-profile::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 1px;
  vertical-align: middle;
}

.st-dc-legend .is-out::before {
  background: rgba(100, 200, 140, 0.95);
}

.st-dc-legend .is-profile::before {
  background: rgba(236, 240, 245, 0.9);
}

.st-dc-scope-host.is-spectrum {
  min-height: 200px;
}

/* ---- De-esser / De-noise (biblioteca) ---- */

.st-de-modal,
.st-dn-modal {
  z-index: 2100;
}

.st-de-win {
  width: min(820px, calc(100vw - 28px));
}

.st-dn-win {
  width: min(940px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - var(--st-cb-h) - 24px));
}

.st-de-freq-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  width: 100%;
}

.st-de-freq-row label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  color: rgba(226, 231, 237, 0.72);
}

.st-de-freq-row label b {
  font-family: var(--st-mono, ui-monospace, monospace);
  color: #f0c14b;
}

.st-de-freq-row input[type="range"] {
  width: 100%;
  accent-color: #f0c14b;
  cursor: pointer;
}

.st-dn-layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) 138px;
  gap: 14px;
  align-items: stretch;
  min-height: 280px;
}

.st-dn-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.st-dn-side-left {
  align-items: stretch;
}

.st-dn-side-right {
  align-items: center;
}

.st-dn-faders {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.st-dn-center {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.st-dn-center .st-dc-scope-host {
  flex: 1 1 auto;
  min-height: 220px;
}

.st-dn-center-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 8px;
}

.st-dn-center-foot .st-dc-legend {
  margin-top: 0;
}

.st-dn-dyn,
.st-dn-shelf {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

.st-dn-dyn label,
.st-dn-shelf label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(226, 231, 237, 0.62);
}

.st-dn-shelf-title {
  justify-content: flex-start !important;
  margin-bottom: 2px;
  color: rgba(226, 231, 237, 0.78) !important;
}

.st-dn-dyn label b,
.st-dn-shelf label b {
  font-family: var(--st-mono, ui-monospace, monospace);
  text-transform: none;
  letter-spacing: 0;
  color: #f0c14b;
}

.st-dn-dyn input[type="range"],
.st-dn-shelf input[type="range"] {
  width: 100%;
  accent-color: #f0c14b;
  cursor: pointer;
}

.st-dn-res {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.st-dn-res > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 231, 237, 0.55);
  margin-right: 2px;
}

.st-dn-res .st-dc-listen-btn {
  height: 28px;
  min-width: 44px;
  padding: 0 8px;
}

.st-dn-res .st-lib-btn.is-on,
.st-dn-res .st-lib-btn.is-primary.is-on {
  box-shadow: 0 0 0 1px rgba(240, 193, 75, 0.55);
}

.st-dn-res .st-lib-btn.is-learning,
.st-dn-res .st-lib-btn.is-primary.is-learning {
  box-shadow: 0 0 0 2px rgba(90, 170, 255, 0.9), 0 0 14px rgba(70, 150, 255, 0.55);
  animation: st-dn-learn-pulse 1.1s ease-in-out infinite;
}

@keyframes st-dn-learn-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

.st-dn-side-right .st-dc-listen {
  width: 100%;
}

@media (max-width: 820px) {
  .st-dn-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .st-dn-faders,
  .st-dn-side-right {
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .st-dn-side-right .st-dn-shelf,
  .st-dn-side-right .st-dc-listen {
    flex: 1 1 160px;
  }

  .st-dn-center .st-dc-scope-host {
    min-height: 180px;
  }
}

@media (max-width: 720px) {
  .st-dc-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .st-dc-col-left,
  .st-dc-col-right {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }

  .st-dc-fader-track,
  .st-dc-meter-bar {
    height: 100px;
  }

  .st-dc-fader-track input[type="range"] {
    width: 100px;
  }

  .st-dc-scope-host {
    min-height: 140px;
  }

  .st-dc-listen {
    flex-direction: row;
    width: auto;
  }

  .st-dn-res {
    width: 100%;
  }

  .st-dn-res .st-lib-btn {
    margin-left: 0;
  }
}

/* ---- Responsivo ---- */

@media (max-width: 1080px) {
  :root { --st-inspector-w: 200px; --st-tracklist-w: 180px; }
  .st-brand-sub { display: none; }
}

@media (max-width: 860px) {
  body { overflow: auto; }
  .st-app { height: auto; min-height: 100vh; }
  .st-main { flex-direction: column; }
  .st-inspector { flex: 0 0 auto; width: 100%; border-right: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.42); }
  .st-controlbar { flex-wrap: wrap; height: auto; padding: 8px 10px; gap: 8px; }
  .st-tracks-area { min-height: 60vh; }
}
