:root {
  color-scheme: dark;
  --chassis: #07080a;
  --mod: #0c0e11;
  --ink: #f4f6f8;
  --dim: #b7c0c8;
  --silk: rgba(244, 246, 248, .82);
  --green: #3dff78;
  --green-deep: #14914a;
  --led-off: #0c2416;
  --ring: #3dff78;
}

@font-face {
  font-family: "Share Tech Mono";
  src: url("../fonts/ShareTechMono-Regular.ttf") format("truetype");
  font-display: swap;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 72% 26% at 50% 86%, rgba(61, 255, 120, .16), transparent 62%),
    radial-gradient(ellipse 80% 36% at 50% -8%, #2a3038, transparent 58%),
    #050607;
  color: var(--ink);
  font: 11px/1.2 "Segoe UI", system-ui, sans-serif;
}

.stage { overflow: hidden; }

.instrument {
  width: max-content;
  margin: 0;
  transform-origin: top left;
  position: relative;
  padding: 7px 34px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.08) 1px, transparent 9px),
    linear-gradient(165deg, #2c3138 0%, #121418 16%, #070809 48%, #101216 100%);
  box-shadow:
    inset 0 1px 0 #ffffff88,
    inset 0 0 0 1px #3a4048,
    0 22px 48px #000d;
}

.deck, .lower {
  display: grid;
  gap: 4px;
  align-items: stretch;
  padding: 4px;
  background:
    linear-gradient(118deg, rgba(255,255,255,.035) 0%, transparent 30%, transparent 75%, rgba(255,255,255,.02) 100%),
    #0b0c0e;
}

.deck {
  grid-template-columns: 112px 164px 400px 128px 74px 252px 196px 250px;
}

.mod {
  background: none;
  box-shadow: none;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.09);
  border-radius: 0;
  padding: 4px 3px 5px;
  min-height: 0;
}

.mod h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.4px;
  color: #f7f8f8;
}
.mod h2::before, .mod h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.2);
}

.brand {
  border-left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 4px 6px;
}

/* Logotipo: tipografia larga e inclinada, LAB vazado e SYNTH cheio,
   com um filete verde aceso e a linha técnica embaixo. */
.logo {
  display: flex; align-items: baseline;
  font: 900 19px/1 "Segoe UI", "Arial Black", system-ui, sans-serif;
  letter-spacing: 1.5px;
  transform: skewX(-9deg);
  transform-origin: left bottom;
  margin: 3px 0 0 2px;
}
.lg-lab {
  color: transparent;
  -webkit-text-stroke: 1px #f4f6f8;
}
.lg-synth {
  color: #f4f6f8;
  text-shadow: 0 0 1px #fff, 0 1px 0 #000;
}
.logo-sub {
  display: flex; align-items: center; gap: 5px;
  margin: -2px 0 2px 2px;
}
.logo-sub i {
  width: 22px; height: 2px; border-radius: 1px;
  background: var(--green);
  box-shadow: 0 0 4px var(--green), 0 0 9px #3dff7899;
}
.logo-sub span {
  font: 700 6.5px/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 1.6px; color: #9aa3ab;
}

.side-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.side-keys button, .mini, .wave {
  font: inherit;
  cursor: pointer;
  /* Tecla cinza-prata em relevo, num poço escuro, como as do painel de referência. */
  color: #1b1e21;
  border: 1px solid #050606;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%),
    linear-gradient(180deg, #e4e7e9 0%, #c3c8cc 55%, #9ea4a9 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 0 #7a8085,
    0 2px 0 #030303,
    0 3px 5px #000d,
    0 0 0 2px #0b0c0d;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  padding: 3px 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  min-height: 16px;
  line-height: 1.1;
}
.side-keys button.on, .mini.on, .wave.on, .sq.on {
  /* Ligado: a tecla é translúcida e acende verde por dentro. */
  color: #052610;
  border-color: #0b3d1c;
  text-shadow: 0 0 3px rgba(255,255,255,.6);
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #b9ffd0 0%, #4dff85 45%, #1fcf5e 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 0 #0f8a3e,
    0 2px 0 #030303,
    0 0 0 2px #0b0c0d,
    0 0 10px 1px #3dff78,
    0 0 22px 4px #3dff7866;
}

.osc-body { display: flex; gap: 2px; align-items: flex-start; justify-content: center; }
.led-col { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 28px; padding-top: 10px; }
.ledwin {
  width: 26px; height: 16px;
  display: grid; place-items: center;
  background: #070707;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px #222, inset 0 0 8px #ff2a2244, 0 1px 0 #000;
}
.ledwin b {
  font: 500 13px/1 "Share Tech Mono", ui-monospace, monospace;
  color: #ff3a32;
  text-shadow: 0 0 4px #ff2a22, 0 0 8px #ff2a2288;
}
.sq {
  width: 26px; min-height: 13px; padding: 2px 0;
  font: inherit; font-size: 6px; font-weight: 700; letter-spacing: 0.2px;
  color: #1b1e21; cursor: pointer;
  border: 1px solid #050606; border-radius: 2px;
  background: linear-gradient(180deg, #e4e7e9, #c3c8cc 55%, #9ea4a9);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #7a8085, 0 1px 0 #030303, 0 0 0 1px #0b0c0d;
}

.knobs { display: grid; gap: 2px 0; justify-content: center; }
.knobs.c4 { grid-template-columns: repeat(4, 52px); }
.knobs.c3 { grid-template-columns: repeat(3, 52px); }
.knobs.c2 { grid-template-columns: repeat(2, 52px); }
.knobs.c1 { grid-template-columns: 52px; }

.osc-col { display: flex; flex-direction: column; gap: 0; }
.osc-strip {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 4px;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.osc-strip:last-child { border-bottom: 0; padding-bottom: 0; }
.osc-strip h3 {
  margin: 0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
  line-height: 1.15;
  color: #f7f8f8;
}
.osc-line { display: flex; align-items: flex-start; gap: 3px; min-width: 0; }
.osc-strip .waves { flex-direction: column; gap: 2px; margin: 0; width: 34px; }
.osc-strip .wave { padding: 2px 0; min-height: 14px; }

/* Knob em CSS: saia preta serrilhada, ponteiro branco, arco de LED verde
   que acende até o valor (--v, de 0 a 1, em 270 graus). */
.knob {
  --v: 0.45;
  --arc-in: 17.5px;
  --arc-out: 20.5px;
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #f3f5f6;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
  position: relative;
}

.knob .wrap { --r: 25px; position: relative; width: 52px; height: 52px; }
.knob .wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle,
    transparent calc(var(--arc-in) - 1.5px),
    #021006 calc(var(--arc-in) - 1px),
    #2ee86a var(--arc-in),
    #e6ffee calc(var(--arc-in) + 1.2px),
    #3dff78 calc(var(--arc-in) + 2.4px),
    rgba(61, 255, 120, .35) var(--arc-out),
    transparent calc(var(--arc-out) + 2.5px));
  filter: drop-shadow(0 0 3px #3dff78) drop-shadow(0 0 7px #3dff7888);
  pointer-events: none;
}
.knob .ring i {
  position: absolute; left: 50%; top: 50%;
  width: 2px; height: 2px; margin: -1px 0 0 -1px;
  border-radius: 50%;
  background: rgba(244, 246, 248, .55);
  transform: rotate(var(--a)) translateY(calc(-1 * var(--r)));
}
.knob .ring i:nth-child(1),
.knob .ring i:nth-child(7),
.knob .ring i:nth-child(13) {
  width: 1px; height: 4px; margin: -2px 0 0 -0.5px; border-radius: 0;
  background: #f7f8f8;
}
.knob .face {
  position: absolute; left: 9px; top: 9px; width: 34px; height: 34px; z-index: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.05) 0 3deg, transparent 3deg 9deg),
    radial-gradient(circle at 50% 50%, #0d0f10 60%, #24282c 82%, #060707);
  box-shadow:
    0 4px 5px #000e,
    0 0 0 1px #000,
    inset 0 -2px 3px #000;
  transform: rotate(calc(-135deg + var(--v) * 270deg));
  pointer-events: none;
}
.knob .face::before {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 60% 40% at 50% 18%, rgba(255,255,255,.32), transparent 70%),
    radial-gradient(circle at 50% 40%, #2a2e33, #0b0c0e 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 2px #000, 0 0 0 1px #000c;
}
.knob .face::after {
  content: "";
  position: absolute; left: 50%; top: 4px;
  width: 2px; height: 10px; margin-left: -1px;
  border-radius: 1px;
  background: #fbfdfc;
  box-shadow: 0 0 2px #fff;
}
.knob.sm { width: 44px; --arc-in: 14.5px; --arc-out: 17.5px; }
.knob.sm .wrap { --r: 21px; width: 44px; height: 44px; }
.knob.sm .face { left: 8px; top: 8px; width: 28px; height: 28px; }
.knob.sm .face::before { inset: 3px; }
.knob.sm .face::after { top: 3px; height: 8px; }
.knob:focus-visible { outline: none; }
.knob:focus-visible .face { box-shadow: 0 0 0 1px var(--green), 0 3px 4px #000d; }
.knob .val {
  position: absolute; left: 50%; top: -2px; z-index: 4;
  transform: translate(-50%, -100%) scale(.85); opacity: 0;
  padding: 2px 5px; border-radius: 3px;
  background: #061108; color: var(--green);
  font: 700 9px/1 "Share Tech Mono", ui-monospace, monospace;
  box-shadow: 0 0 0 1px #1d4d2c, 0 0 10px #3dff7844;
  pointer-events: none;
  transition: opacity .12s, transform .12s;
}
.knob.grab .val, .fader.grab .val { opacity: 1; transform: translate(-50%, -100%) scale(1); }

.waves { display: flex; gap: 3px; justify-content: center; margin-bottom: 4px; }
.wave { padding: 3px 5px; font-size: 8px; letter-spacing: 0.3px; }

.faders { display: flex; justify-content: center; gap: 4px; }
/* Fader: trilho escuro com coluna de LED verde por dentro e capa preta
   curta com linha branca. */
.fader {
  --v: 0.6;
  width: 30px; height: 108px; position: relative; cursor: ns-resize; touch-action: none; user-select: none;
}
.fader .slot {
  position: absolute; left: 9px; top: 3px; bottom: 19px; width: 12px;
  border-radius: 3px;
  border: 2px solid #3dff78;
  background: linear-gradient(90deg, #010302, #06140b 50%, #010302);
  box-shadow:
    0 0 4px #3dff78,
    0 0 10px #3dff7888,
    inset 0 0 5px #3dff7866,
    inset 0 0 0 1px #c8ffd855;
}
.fader .leds { display: none; }
.fader .cap {
  position: absolute; left: 2px; width: 26px; height: 17px; z-index: 2;
  top: calc(2px + (1 - var(--v)) * (100% - 37px));
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.1), transparent 25%, transparent 75%, rgba(255,255,255,.08)),
    linear-gradient(180deg, #3e4348 0, #15181a 18%, #050606 50%, #15181a 82%, #2c3034);
  box-shadow: 0 4px 5px #000d, 0 0 0 1px #000, inset 0 1px 0 rgba(255,255,255,.4);
  pointer-events: none;
}
.fader .cap::after {
  content: "";
  position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px;
  background: #fbfdfc;
  box-shadow: 0 0 2px #fff;
}
.fader .val {
  position: absolute; left: 28px; top: 8px; z-index: 4; opacity: 0;
  padding: 2px 5px; border-radius: 3px;
  background: #061108; color: var(--green);
  font: 700 9px/1 "Share Tech Mono", ui-monospace, monospace;
  box-shadow: 0 0 0 1px #1d4d2c;
  pointer-events: none;
}
.fader span { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 7px; letter-spacing: 0.4px; color: #f3f5f6; font-weight: 700; }
.fader:focus-visible { outline: none; }
.fader:focus-visible .slot { box-shadow: inset 0 1px 3px #000, 0 0 0 1px var(--green); }

.split { display: grid; grid-template-columns: 1fr auto; gap: 4px; align-items: start; }
.env .fader { height: 108px; }

.lower {
  grid-template-columns: 780px 1fr;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.perform { display: flex; gap: 6px; align-items: stretch; justify-content: center; padding: 4px 2px; }
/* BEND / MOD: poço rebaixado com coluna de LED fina, fenda de contorno
   verde aceso e capa preta com ranhuras e linha branca. */
.sens { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.sens h2 { margin: 0; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; color: #f4f6f8; }
.sens-row {
  display: flex; gap: 5px; height: 118px; align-items: stretch;
  padding: 6px 6px 6px 5px;
  border-radius: 4px;
  background: linear-gradient(180deg, #030404, #0a0b0c);
  box-shadow: inset 0 2px 5px #000, inset 0 0 0 1px #000, 0 1px 0 rgba(255,255,255,.06);
}
.meter { width: 5px; display: flex; flex-direction: column; gap: 2px; padding: 1px 0; }
.meter i { flex: 1; border-radius: 1px; background: #0f3019; }
.meter i.idle { background: #1f7a40; box-shadow: 0 0 3px #3dff7866; }
.meter i.lit {
  background: linear-gradient(90deg, #14c45a, #d8ffe4 50%, #14c45a);
  box-shadow: 0 0 3px #3dff78, 0 0 8px #3dff78aa;
}
.stick {
  --v: 0.5;
  position: relative; width: 28px; cursor: ns-resize; touch-action: none;
}
.stick::after {
  content: "";
  position: absolute; right: -1px; top: 4px; bottom: 4px; width: 3px;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.28) 0 1px, transparent 1px 10px);
  pointer-events: none;
}
.stick[data-mode="center"]::before {
  content: "";
  position: absolute; left: -2px; right: -2px; top: 50%; height: 1px;
  background: rgba(255,255,255,.4);
  pointer-events: none;
}
.stick .slot {
  position: absolute; left: 8px; top: 2px; bottom: 2px; width: 10px;
  border-radius: 3px;
  border: 2px solid #3dff78;
  background: linear-gradient(90deg, #010302, #06140b 50%, #010302);
  box-shadow: 0 0 4px #3dff78, 0 0 10px #3dff7888, inset 0 0 5px #3dff7866, inset 0 0 0 1px #c8ffd855;
}
.stick .cap {
  position: absolute; left: 0; width: 26px; height: 24px; z-index: 2;
  top: calc((1 - var(--v)) * (100% - 24px));
  border-radius: 3px;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.09) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, rgba(255,255,255,.1), transparent 25%, transparent 75%, rgba(255,255,255,.08)),
    linear-gradient(180deg, #3e4348 0, #15181a 18%, #050606 50%, #15181a 82%, #2c3034);
  box-shadow: 0 4px 6px #000e, 0 0 0 1px #000, inset 0 1px 0 rgba(255,255,255,.4);
  transition: top .12s ease-out;
}
.stick .cap::after {
  content: "";
  position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px;
  border-radius: 1px;
  background: #fbfdfc;
  box-shadow: 0 0 3px #fff, 0 0 6px #3dff78aa;
}
.stick:focus-visible { outline: none; }
.stick:focus-visible .slot { border-color: #d8ffe4; }
.stick.grab .cap { transition: none; filter: brightness(1.2); }

/* Seletor de timbre: visor LCD + arpejo | abas verticais com LED | lista. */
.screen-box {
  border-left: 0;
  display: grid;
  grid-template-columns: 214px 1fr;
  gap: 8px;
  padding: 5px 6px 6px;
}
.visor { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px 9px 6px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(180deg, rgba(61,255,120,.035) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 120% 90% at 30% 0%, #0b1a10, #020403 70%);
  box-shadow:
    inset 0 0 14px #39ff6a1c,
    inset 0 1px 0 #ffffff12,
    0 0 0 1px #16331f,
    0 0 0 2px #000;
  font-family: "Share Tech Mono", ui-monospace, monospace;
}
.screen-top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 3px;
  border-bottom: 1px solid #1d4d2c;
  margin-bottom: auto;
  color: #4fd977; font-size: 9px; letter-spacing: 1.4px;
}
.screen span:last-child { margin-bottom: auto; }
.screen-top em { font-style: normal; color: #8dff9e; letter-spacing: .6px; }
.screen b {
  display: block; color: #a8ff8f;
  font-size: 19px; font-weight: 500; letter-spacing: 1.2px; line-height: 1.05;
  text-shadow: 0 0 6px #3dff7888;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.screen span {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  color: #79b787; font-size: 10px; line-height: 1.25; letter-spacing: .2px;
}
.arps { display: flex; gap: 3px; }
.arps .mini { flex: 1; }
.mini { padding: 3px 6px; }

.bank {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}
.cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(0, 1fr);
  gap: 1px 3px;
  padding-right: 7px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.cat {
  position: relative;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #8b949c;
  cursor: pointer;
  text-align: left;
  font: 700 8px/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: .7px;
  text-transform: uppercase;
  padding: 2px 2px 2px 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat::before {
  content: "";
  position: absolute; left: 4px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--led-off);
  box-shadow: inset 0 0 0 1px #000a;
}
.cat:hover { color: #dfe5ea; background: rgba(255,255,255,.04); }
.cat.on { color: #f4f6f8; background: rgba(61,255,120,.07); }
.cat.on::before {
  background: radial-gradient(circle, #f3fff4 0, var(--green) 55%, var(--green-deep));
  box-shadow: 0 0 4px var(--green), 0 0 9px #3dff78aa;
}
.tones {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 3px 6px;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: #2a3330 transparent;
}
.timbre {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 5px;
  min-width: 0;
  text-align: left;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0 2px 2px 0;
  background: rgba(255,255,255,.028);
  color: #e6eaee;
  cursor: pointer;
  padding: 2px 7px 2px 6px;
  font: 650 10.5px/1.15 "Segoe UI", system-ui, sans-serif;
}
.timbre i {
  grid-row: 1 / span 2;
  align-self: center;
  font: 500 11px/1 "Share Tech Mono", ui-monospace, monospace;
  font-style: normal;
  color: #5b646c;
}
.timbre span, .timbre small {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.timbre small {
  display: block;
  color: #7f8a92;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: .1px;
}
.timbre:hover { background: rgba(255,255,255,.065); }
.timbre.on {
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(61,255,120,.2), rgba(61,255,120,.04) 70%);
  box-shadow: inset 0 0 0 1px rgba(61,255,120,.22), -2px 0 8px -2px #3dff78aa;
}
.timbre.on span { color: #f2fff5; }
.timbre.on i { color: var(--green); text-shadow: 0 0 6px #3dff7888; }
.timbre.on small { color: #a6d8b3; }
.cat:focus-visible, .timbre:focus-visible { outline: 1px solid var(--green); outline-offset: 1px; }

.seq { padding: 5px 8px 6px; display: flex; flex-direction: column; }
.seq h2 { margin-bottom: 3px; }
.seq-body { flex: 1; display: grid; grid-template-columns: 178px 1fr; gap: 12px; min-height: 0; }

/* Esquerda: visor de tempo + transporte. */
.seq-left { display: flex; flex-direction: column; gap: 4px; padding-right: 12px; border-right: 1px solid rgba(255,255,255,.07); }
.seq-lcd {
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 3px 8px 4px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(180deg, rgba(61,255,120,.035) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 120% 90% at 30% 0%, #0b1a10, #020403 70%);
  box-shadow: inset 0 0 14px #39ff6a1c, 0 0 0 1px #16331f, 0 0 0 2px #000;
  font-family: "Share Tech Mono", ui-monospace, monospace;
}
.seq-lcd .screen-top { padding-bottom: 2px; margin: 0; }
.seq-lcd-main { display: flex; align-items: baseline; gap: 4px; }
.seq-lcd-main b {
  color: #a8ff8f; font-size: 22px; font-weight: 500; line-height: 1; letter-spacing: 1px;
  text-shadow: 0 0 6px #3dff7888;
}
.seq-lcd-main small { color: #4fd977; font-size: 9px; letter-spacing: 1px; }
.seq-lcd-main i {
  margin-left: auto; align-self: center;
  width: 0; height: 0;
  border-left: 8px solid #12301c; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.seq-lcd-main i.on { border-left-color: var(--green); filter: drop-shadow(0 0 4px #3dff78); }
.seq-lcd-sub { display: flex; justify-content: space-between; color: #79b787; font-size: 9px; letter-spacing: .4px; }
.seq-lcd-sub em { font-style: normal; color: #a8ff8f; }
.seq-row { display: flex; gap: 3px; }
.seq-row .mini { flex: 1; font-size: 9px; }
.seq-row .mini.wide { flex: 2; }
.mini.flash { filter: brightness(1.8); box-shadow: 0 0 8px #3dff78; }
.transport .mini {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 3px 0 2px; font-size: 7px; letter-spacing: .6px;
}
.ico { display: block; width: 9px; height: 9px; }
.ico.play { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.ico.stop { width: 8px; height: 8px; background: currentColor; }
.ico.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff4a3a; box-shadow: 0 0 4px #ff2a2288; }
.ico.loop { width: 10px; height: 8px; border: 2px solid currentColor; border-radius: 4px; border-left-color: transparent; }
.mini.tr.on .ico.rec { background: #b00000; box-shadow: none; }
.transport .mini:nth-child(1).on {
  color: #fff; border-color: #ffd0c8;
  background: linear-gradient(180deg, #ffb3a8, #ff3a2a 45%, #b81808);
  box-shadow: 0 0 0 1px #ff3a2a, 0 0 10px #ff3a2acc, inset 0 1px 0 #ffffffaa;
}

/* Principal: grupos com rótulo em cima, como serigrafia de painel. */
.seq-main { display: flex; flex-direction: column; min-width: 0; }
.seq-tools { display: flex; gap: 0; align-items: stretch; justify-content: space-between; }
.seq-group {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 0 10px;
  border-left: 1px solid rgba(255,255,255,.07);
}
.seq-group:first-child { padding-left: 0; border-left: 0; }
.seq-group label {
  font-size: 7.5px; font-weight: 700; letter-spacing: 1.2px; color: #f3f5f6;
  padding-bottom: 1px;
}
.seq-keys { display: grid; grid-template-columns: repeat(2, 38px); gap: 3px; }
.seq-scale { display: grid; grid-template-columns: repeat(2, auto); gap: 3px 10px; }
.seq-scale button {
  position: relative; border: 0; background: none; cursor: pointer;
  padding: 1px 0 1px 11px; text-align: left;
  color: #8b949c; font: 700 8px/1.2 "Segoe UI", system-ui, sans-serif; letter-spacing: .4px;
}
.seq-scale button::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--led-off); box-shadow: inset 0 0 0 1px #000a;
}
.seq-scale button:hover { color: #dfe5ea; }
.seq-scale button.on { color: #f4f6f8; }
.seq-scale button.on::before {
  background: radial-gradient(circle, #f3fff4 0, var(--green) 55%, var(--green-deep));
  box-shadow: 0 0 4px var(--green), 0 0 9px #3dff78aa;
}
.seq-last { display: flex; align-items: center; gap: 4px; }
.seq-last .mini { width: 18px; padding: 3px 0; }
.seq-last b {
  min-width: 28px; padding: 3px 4px; text-align: center;
  background: #020403; border-radius: 2px; box-shadow: 0 0 0 1px #16331f;
  font: 500 14px/1 "Share Tech Mono", ui-monospace, monospace;
  color: #a8ff8f; text-shadow: 0 0 6px #3dff7888;
}
.seq-knobs { display: flex; gap: 2px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.07); align-items: flex-end; }

.step-leds { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; margin-top: 5px; }
.step-leds i { justify-self: center; width: 5px; height: 5px; border-radius: 50%; background: var(--led-off); box-shadow: inset 0 0 0 1px #000a; }
.step-leds i.lit { background: radial-gradient(circle, #fff, #b9ffd0 45%, #3dff78); box-shadow: 0 0 4px #3dff78, 0 0 9px #3dff78cc; }
.step {
  height: 22px; font-size: 0; color: transparent; border-radius: 2px;
  border: 1px solid #050606;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0) 40%),
    linear-gradient(180deg, #dfe3e6 0%, #bfc4c8 55%, #9aa0a5 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 #767c81, 0 2px 0 #030303, 0 3px 5px #000c, 0 0 0 2px #0b0c0d;
}
/* Uma cor só, como no painel de referência: passo aceso = tem nota.
   Acento = barra branca em cima; liga = ponte verde até o próximo passo. */
.step[data-c="g"], .step[data-c="w"], .step[data-c="p"] {
  border-color: #b8ffcf;
  background: linear-gradient(180deg, #c9ffd9, #4dff85 26%, #1fd15e 70%, #0f8a3e);
  box-shadow: 0 0 8px #3dff78bb, inset 0 1px 0 #ffffffc0, inset 0 -3px 0 #0a5c2c;
}
.step[data-c="w"] {
  background: linear-gradient(180deg, #f4fff7, #8dffb0 26%, #3dff78 70%, #18b552);
  box-shadow: 0 0 12px #3dff78, 0 0 20px #3dff7866, inset 0 1px 0 #fff, inset 0 -3px 0 #0a5c2c;
}
.steps .step[data-c="w"]::before {
  content: "";
  position: absolute; left: 4px; right: 4px; top: 3px; height: 2px;
  border-radius: 1px;
  background: #fff;
  box-shadow: 0 0 4px #fff;
}
.steps .step[data-c="p"]::before {
  content: "";
  position: absolute; right: -6px; top: 50%; width: 8px; height: 4px; margin-top: -2px; z-index: 1;
  background: #4dff85;
  box-shadow: 0 0 6px #3dff78;
}
.step.play {
  filter: brightness(1.25);
  outline: 2px solid #f4fff6; outline-offset: -3px;
}
.step:not([data-c]).play, .step[data-c=""].play { outline-color: #3dff78; filter: none; }
.step.off { opacity: .28; }
.steps .step { position: relative; }
.steps .step::after {
  content: attr(data-name);
  position: absolute; left: 0; right: 0; bottom: 2px;
  font: 500 7.5px/1 "Share Tech Mono", ui-monospace, monospace;
  color: #4a5056; text-align: center;
}
.steps .step[data-c="g"]::after, .steps .step[data-c="w"]::after, .steps .step[data-c="p"]::after { color: #04160ccc; }
.step.cursor { outline: 1px solid #ff4a3a; outline-offset: 1px; box-shadow: 0 0 8px #ff3a2a99; }
.steps { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; margin-top: 3px; }
.steps .step { height: 24px; }
.step-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.step-groups span {
  position: relative; height: 5px;
  border: 1px solid rgba(255,255,255,.18); border-top: 0;
  font-size: 0;
}
.step-nums { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; margin-top: 2px; }
.step-nums i { text-align: center; font-style: normal; font-size: 7.5px; font-weight: 700; color: #b7c0c8; }

.keybed {
  display: flex; gap: 8px; align-items: stretch;
  margin-top: 0; padding: 4px 6px 0;
  background: linear-gradient(180deg, #14171a, #070809);
  border-top: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 8px 14px #000a;
}
.wheels { display: flex; gap: 8px; align-items: flex-end; padding: 2px 2px 8px; }
.keybed .sens-row { height: 156px; }
.keys-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.key-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 2px 2px 4px; }
.kstep { display: flex; align-items: center; gap: 3px; color: #f4f6f8; font-size: 8px; font-weight: 700; letter-spacing: 0.6px; }
.kstep b {
  min-width: 22px; text-align: center;
  font: 500 12px/1 "Share Tech Mono", ui-monospace, monospace;
  color: #3dff78;
  text-shadow: 0 0 6px #3dff7888;
}
.kstep b.blink { animation: oct-blink 1s steps(2) infinite; }
@keyframes oct-blink { 50% { opacity: .35; } }
.felt { height: 7px; background: linear-gradient(180deg, #2a2e32, #0c0d0f); box-shadow: inset 0 1px 0 #ffffff22, 0 2px 3px #000; }
.keys { position: relative; display: flex; height: 148px; user-select: none; touch-action: none; }
.key { border: 0; padding: 0; cursor: pointer; }
.key.white {
  position: relative; z-index: 1; flex: 1; height: 100%;
  background: linear-gradient(180deg, #f7f4ee 0, #fff 8%, #f3efe6 78%, #e4ddcf 100%);
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 0 0 1px #cfc6b6, inset -2px 0 2px -1px #0002, 1px 0 0 #bbb;
}
.key.white::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #fffdf8, #d9d0c0);
  box-shadow: 0 -1px 0 #c3b9a8;
}
.key.black {
  position: absolute; z-index: 2; top: 0; height: 58%;
  background: linear-gradient(90deg, #050505, #2a2c2e 12%, #111 78%, #050505);
  border-radius: 0 0 3px 3px;
  box-shadow: 2px 4px 4px #000a, inset 0 0 0 1px #000;
}
.key.black::before {
  content: "";
  position: absolute; left: 22%; right: 22%; top: 6%; bottom: 18%;
  background: linear-gradient(180deg, #ffffff14, #ffffff28 70%, transparent);
  border-radius: 2px;
}
.key.down.white { background: #dfffe4; }
.key.down.black { background: var(--green-deep); box-shadow: 0 0 8px #3dff7888; }

.side-keys button, .mini, .wave, .step {
  transition: transform .08s, filter .08s, background .12s, box-shadow .12s;
}
.side-keys button:hover, .mini:hover, .wave:hover { filter: brightness(1.08); }
.side-keys button:active, .mini:active, .wave:active, .step:active { transform: translateY(1px); }
.cat, .timbre { transition: background .12s, color .12s, box-shadow .12s; }

@keyframes led-boot {
  35% { background: radial-gradient(circle, #f3fff4 0, var(--green) 42%, var(--green-deep) 100%); box-shadow: 0 0 6px 2px #3dff78cc; }
}
.fader .leds i, .meter i { animation: led-boot .5s ease-in-out calc(.15s + var(--i, 0) * 32ms) 1; }
.knob.grab .face { filter: brightness(1.15); }

@media (prefers-reduced-motion: reduce) {
  .knob .ring i, .fader .leds i, .meter i, .stick .cap, .kstep b.blink { animation: none; transition: none; }
}

/* Visores LCD animados (LFO, scope, saída, resposta do filtro, envelopes)
   e seletores de LED. Ficam no pé de cada seção, ocupando o espaço livre. */
.mod.has-view { display: flex; flex-direction: column; }
.led-select {
  display: flex; justify-content: center; gap: 2px 9px; flex-wrap: wrap;
  margin-top: 8px;
}
.led-select button {
  position: relative; border: 0; background: none; cursor: pointer;
  padding: 1px 0 1px 10px;
  color: #8b949c; font: 700 7.5px/1.2 "Segoe UI", system-ui, sans-serif; letter-spacing: .5px;
}
.led-select button::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--led-off); box-shadow: inset 0 0 0 1px #000a;
}
.led-select button:hover { color: #dfe5ea; }
.led-select button.on { color: #f4f6f8; }
.led-select button.on::before {
  background: radial-gradient(circle, #f3fff4 0, var(--green) 55%, var(--green-deep));
  box-shadow: 0 0 4px var(--green), 0 0 9px #3dff78aa;
}
.view {
  margin: auto 0 0;
  padding-top: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.led-select + .view { margin-top: 6px; }
.view figcaption {
  align-self: stretch;
  display: flex; align-items: center; gap: 5px;
  font-size: 7px; font-weight: 700; letter-spacing: 1.2px; color: #b7c0c8;
}
.view figcaption::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.view canvas {
  display: block;
  border-radius: 3px;
  background:
    repeating-linear-gradient(180deg, rgba(61,255,120,.03) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 120% 90% at 30% 0%, #0b1a10, #020403 70%);
  box-shadow: inset 0 0 12px #39ff6a1c, 0 0 0 1px #16331f, 0 0 0 2px #000;
}

/* EFFECT largo: duas colunas, cada uma com títulos entre filetes. */
.fx-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fx-col { display: flex; flex-direction: column; min-width: 0; }
.fx-col + .fx-col { border-left: 1px solid rgba(255,255,255,.07); padding-left: 6px; }
.fx-col h2 { margin: 0 0 3px; font-size: 9px; }
.fx-col h2 ~ h2 { margin-top: 6px; }
.fx-col .knobs.c3 { grid-template-columns: repeat(3, 44px); }
.fx-col .led-select { display: grid; grid-template-columns: 1fr 1fr; justify-content: start; gap: 2px 4px; margin: 2px 0 4px; }
.fx-col .led-select button { text-align: left; font-size: 7px; }

/* Laterais: tampas de plástico preto moldado, com reflexo curvo, uma faixa
   de luz verde embutida e dois parafusos sextavados rebaixados. */
.cheek {
  position: absolute; top: 0; bottom: 0; width: 30px; z-index: 3;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.10) 30%, rgba(255,255,255,.02) 46%, transparent 60%),
    linear-gradient(180deg, #1d2024 0%, #0c0d0f 30%, #08090a 70%, #131518 100%);
  pointer-events: none;
}
.cheek.left {
  left: 0; border-radius: 14px 0 0 10px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.18), inset -3px 0 4px #000, 3px 0 6px #000c;
}
.cheek.right {
  right: 0; border-radius: 0 14px 10px 0;
  transform: scaleX(-1);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.18), inset -3px 0 4px #000, 3px 0 6px #000c;
}
.cheek-light {
  position: absolute; left: 50%; top: 30px; bottom: 30px; width: 3px; margin-left: -1.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, #3dff78 18%, #b9ffd0 50%, #3dff78 82%, transparent);
  box-shadow: 0 0 6px #3dff78, 0 0 14px #3dff7899;
  opacity: .85;
}
.screw {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #4a5057, #23272b 55%, #0e1012);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.25), inset 0 -1px 1px #000, 0 0 0 2px #050606, 0 0 0 3px rgba(255,255,255,.05);
}
.screw::after {
  content: "";
  position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  background: #050606;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transform: rotate(var(--r, 30deg));
}
.cheek .screw { left: 50%; margin-left: -5.5px; }
.cheek .screw.top { top: 10px; }
.cheek .screw.bottom { bottom: 10px; }
.deck { position: relative; }
.screw.panel { width: 8px; height: 8px; z-index: 2; }
.screw.panel::after { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
.screw.panel.tl { left: 3px; top: 3px; }
.screw.panel.tr { right: 3px; top: 3px; }
.screw.panel.bl { left: 3px; bottom: 3px; }
.screw.panel.br { right: 3px; bottom: 3px; }

/* SALVAR / APAGAR presets do usuário, embaixo do visor. */
.visor-tools { display: flex; gap: 3px; }
.visor-tools .mini { flex: 1; }
.mini:disabled { opacity: .4; cursor: default; filter: grayscale(1); }

/* Botão do site para a página do app (não aparece no app desktop). */
.dl-cta {
  display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px;
  text-decoration: none; font-family: inherit; font-weight: 800; font-size: 13px; line-height: 1.2; letter-spacing: 1px; white-space: nowrap;
  --dl-glow: #3dff8a; animation: dl-pulse 1.4s ease-in-out infinite;
}
/* Página: contorno verde; download: verde cheio, como o botão do LabPiano. */
.dl-page { margin-left: auto; background: #0b1f13; color: #c9ffdc; border: 1px solid #3dff8a; }
.dl-app { background: #1fc463; color: #04240f; }
.dl-cta:hover { filter: brightness(1.12); animation-play-state: paused; }
@keyframes dl-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 1px #000, 0 0 6px var(--dl-glow); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 1px #000, 0 0 18px 5px var(--dl-glow); }
}
@media (prefers-reduced-motion: reduce) { .dl-cta { animation: none; box-shadow: 0 0 0 1px #000, 0 0 12px var(--dl-glow); } }

/* MIDI LEARN: tracejado nos controles que aceitam MIDI, pulsando no escolhido,
   etiqueta com o CC/nota em cima dos que já têm mapa. */
.midi-learn [role="slider"]:not(.key), .midi-learn button:not(.key):not([data-midi-skip]) {
  outline: 1px dashed rgba(61, 255, 120, .55); outline-offset: 2px; cursor: crosshair;
}
.midi-learn .midi-mapped { outline: 1px solid #3dff78 !important; }
.midi-learn .midi-picked { outline: 2px solid #fff !important; animation: midi-pick .7s ease-in-out infinite; }
@keyframes midi-pick { 50% { outline-color: #3dff78; } }
.midi-hit { filter: brightness(1.8); }
.midi-layer { position: absolute; inset: 0; pointer-events: none; z-index: 30; }
.midi-layer b {
  position: absolute; transform: translate(-50%, -70%); padding: 1px 4px; border-radius: 3px;
  background: #3dff78; color: #04160c; font-family: inherit; font-weight: 700; font-size: 8px; line-height: 1.2; letter-spacing: .5px; white-space: nowrap;
  box-shadow: 0 0 0 1px #000, 0 0 6px rgba(61, 255, 120, .7);
}
.midi-btn.on { animation: midi-pick .7s ease-in-out infinite; }
.midi-clear { display: none; }
.midi-learn .midi-clear { display: inline-block; }
.midi-status { font-size: 10px; letter-spacing: .5px; color: #8dffb4; max-width: 520px; }
.midi-status:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .midi-learn .midi-picked, .midi-btn.on { animation: none; } }
