/* ---------- corpo do pedal ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 16px; background: #000; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.topbar .keys { font-size: 11px; }
.pedal {
  display: block; gap: 0;
  position: relative; max-width: 1180px; margin: 26px auto 18px; border-radius: 22px; padding: 18px 26px 0;
  background: radial-gradient(ellipse at 30% 0%, #f0473a 0%, #d42a1f 40%, #b51d14 100%);
  box-shadow: 0 2px 0 #ff7a6a inset, 0 -3px 0 #7a0f09 inset, 0 18px 40px #000a; color: #fff; user-select: none;
}
.pb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pb-brand { font-size: 30px; font-weight: 900; letter-spacing: 2px; font-style: italic; color: #fff; text-shadow: 0 1px 0 #7a0f09; }
.pb-brand b { color: #ffd7d2; }
.pb-brand img { display: block; height: 40px; width: auto; filter: drop-shadow(0 1px 0 #7a0f09); }
.pb-model { font-family: Georgia, serif; font-style: italic; font-weight: 700; letter-spacing: 1px; color: #2a0402; font-size: 15px; }
.pb-model b { font-size: 26px; margin-left: 8px; }
/* LOOP 1-2 | visor | VOZ e VIOLÃO */
.pb-top { display: grid; grid-template-columns: 150px 2px minmax(0, 1fr) 2px 150px; gap: 16px; align-items: stretch; padding-bottom: 18px; }
.vsep { background: #7a0f09; box-shadow: 1px 0 0 #ff6a5a; border-radius: 2px; }

/* sliders das faixas */
.pb-tracks { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.sliders { display: flex; justify-content: space-around; height: 236px; }
.tslot { position: relative; width: 54px; display: flex; justify-content: center; }
.tslot .scale { position: absolute; inset: 6px 4px; background: repeating-linear-gradient(180deg, #2a0402 0 2px, transparent 2px 24px); opacity: .6; clip-path: polygon(0 0, 30% 0, 30% 100%, 0 100%, 0 0, 70% 0, 100% 0, 100% 100%, 70% 100%, 70% 0); }
.vslider { touch-action: none; writing-mode: vertical-lr; direction: rtl; -webkit-appearance: none; appearance: none; width: 34px; height: 100%; background: transparent; cursor: pointer; }
.vslider::-webkit-slider-runnable-track { width: 8px; background: #1a0201; border-radius: 4px; border: 1px solid #000; }
.vslider::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 20px; border-radius: 3px; background: linear-gradient(#444, #111 45%, #eee 48%, #eee 52%, #111 55%, #333); border: 1px solid #000; box-shadow: 0 2px 4px #0008; margin-left: -14px; }
.lbl-row { display: flex; justify-content: space-around; font-weight: 800; font-size: 13px; }
.lbl-row .mid { font-size: 12px; letter-spacing: 1px; }
.lbl-row.two span { width: 62px; text-align: center; font-size: 12px; letter-spacing: .5px; }
.btn-row { display: flex; justify-content: space-around; align-items: flex-end; gap: 14px; }
.btn-row.wide { justify-content: space-between; margin-top: 14px; }
.bwrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.blbl { font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.sqbtn { width: 46px; height: 42px; border-radius: 7px; border: 1px solid #000; cursor: pointer;
  background: linear-gradient(#3a3a3a, #111); box-shadow: 0 3px 0 #000, 0 4px 8px #0007, inset 0 1px 0 #555; }
.sqbtn:active, .sqbtn.down { transform: translateY(2px); box-shadow: 0 1px 0 #000, inset 0 1px 0 #555; }
.grp { display: flex; flex-direction: column; align-items: center; }
.grplbl { font-size: 12px; font-weight: 800; letter-spacing: 1px; margin-bottom: 2px; padding: 0 6px; border-bottom: 2px solid #fff; width: 100%; text-align: center; }
.grplbl.write { cursor: pointer; }
.grpbtns { display: flex; gap: 14px; margin-top: 4px; }

/* LEDs */
.led2 { width: 9px; height: 9px; border-radius: 50%; background: #4a0905; box-shadow: inset 0 1px 2px #000; }
.led2.none { visibility: hidden; }
.led2.red { background: #ff2a1a; box-shadow: 0 0 8px #ff2a1a; }
.led2.green { background: #3dff6c; box-shadow: 0 0 8px #3dff6c; }
.led2.blue { background: #4aa3ff; box-shadow: 0 0 8px #4aa3ff; }
.led2.yellow { background: #ffd21a; box-shadow: 0 0 8px #ffd21a; }
.led2.orange { background: #ff9a1a; box-shadow: 0 0 8px #ff9a1a; }
.led2.white { background: #fff; box-shadow: 0 0 8px #fff; }
.led2.blink, .fled.blink { animation: blink .5s steps(2) infinite; }

/* visor */
.pb-center { display: flex; flex-direction: column; min-width: 0; }
.lcd-frame { background: #0a0a0a; border-radius: 10px; padding: 12px; box-shadow: inset 0 2px 8px #000, 0 1px 0 #ff7a6a; }
.lcd { height: 368px; border-radius: 4px; padding: 10px 14px; font-family: "SF Mono", Menlo, monospace; overflow: hidden; display: flex; flex-direction: column;
  transition: background .15s; color: #fff; text-shadow: 0 0 6px #fff6; }
.lcd-blue { background: linear-gradient(#1747d6, #0e33a8); }
.lcd-red { background: linear-gradient(#d61f1f, #a31212); }
.lcd-green { background: linear-gradient(#11a83a, #0b7d2a); }
.lcd-yellow { background: linear-gradient(#d9b20f, #a88608); color: #1a1300; text-shadow: none; }
.lcd-white { background: linear-gradient(#e9eef5, #c7ced9); color: #0d1a33; text-shadow: none; }
.lcd-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 4px; margin-bottom: 6px; opacity: .95; }
.lcd-head .hint { font-weight: 400; font-size: 11px; opacity: .8; color: inherit; }
.lcd-list { flex: 1; overflow-y: auto; scrollbar-width: thin; }
.lrow { display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px; font-size: 16px; border-radius: 3px; cursor: pointer; }
.lrow:hover { background: #ffffff1a; }
.lrow.sel { background: currentColor; }
.lrow.sel > span { color: #1747d6; text-shadow: none; }
.lcd-red .lrow.sel > span { color: #a31212; } .lcd-green .lrow.sel > span { color: #0b7d2a; }
.lcd-yellow .lrow.sel > span { color: #d9b20f; } .lcd-white .lrow.sel > span { color: #e9eef5; }
.lrow.editing { outline: 2px dashed currentColor; outline-offset: 2px; }
.lrow .val { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.lrow .arr { cursor: pointer; padding: 0 4px; }
.lrow.k-menu .val, .lrow.k-info .val { opacity: .75; font-weight: 400; }
.lcd-big { font-size: 64px; font-weight: 800; text-align: center; margin: auto 0 6px; }
.lcd-big.small { font-size: 26px; }
.lcd-big small { font-size: 26px; display: block; }
.lcd-big .note { font-size: 44px; }
.lcd-center { text-align: center; font-size: 14px; margin-bottom: auto; opacity: .9; }
.lcdbtn { background: transparent; border: 2px solid currentColor; color: inherit; font: inherit; padding: 6px 16px; border-radius: 4px; cursor: pointer; margin: 10px 6px; }

/* tela de reprodução */
.lcd-play { display: flex; flex-direction: column; height: 100%; gap: 8px; }
.pl-top { display: flex; align-items: center; gap: 16px; }
.pl-num { font-size: 76px; font-weight: 900; line-height: 1; min-width: 120px; letter-spacing: -2px; }
.pl-name { flex: 1; font-size: 28px; font-weight: 700; min-width: 0; }
.pl-name > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-dirty { font-size: 12px; font-weight: 400; opacity: .85; }
.pl-sub { font-size: 13px; font-weight: 400; opacity: .9; margin-top: 4px; }
.pl-tempo { text-align: right; font-size: 26px; font-weight: 800; }
.pl-tempo small { font-size: 15px; opacity: .85; }
.pl-tempo .note { font-size: 22px; margin-right: 4px; }
.pl-beats { display: flex; justify-content: flex-end; gap: 5px; margin-top: 4px; }
.pl-beats i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; opacity: .5; }
.pl-beats i.on { background: currentColor; opacity: 1; }
.pl-meas { font-size: 11px; font-weight: 400; opacity: .85; margin-top: 2px; }
.pl-track { display: grid; grid-template-columns: 34px 1fr 90px 190px; align-items: center; gap: 10px; font-size: 15px; padding: 3px 6px; border-radius: 4px; border: 2px solid transparent; }
.pl-track.cur { border-color: currentColor; }
.pl-tn { font-weight: 900; }
.pl-bar { position: relative; height: 16px; border: 2px solid currentColor; border-radius: 3px; overflow: hidden; }
.pl-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: currentColor; opacity: .85; }
.pl-ticks b { position: absolute; top: 0; bottom: 0; width: 2px; background: currentColor; opacity: .5; mix-blend-mode: difference; }
.pl-st { font-weight: 800; }
.pl-track.st1 .pl-st { animation: none; }
.pl-track.wait .pl-st { animation: blink .5s steps(2) infinite; }
.pl-len { font-size: 12px; opacity: .9; text-align: right; }
/* efeito de loop no visor */
.lcd-blue { --lcdbg: #1440c4; } .lcd-red { --lcdbg: #b81818; } .lcd-green { --lcdbg: #0e8f33; } .lcd-yellow { --lcdbg: #c9a40d; } .lcd-white { --lcdbg: #d8dee8; }
.pl-fx { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; margin-top: 4px; padding: 3px 6px; }
.pl-fxl { font-weight: 900; font-size: 11px; line-height: 1.1; letter-spacing: .5px; }
.pl-fxl b { display: block; margin-top: 3px; font-size: 10px; }
.pl-fxg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.pl-chip { cursor: pointer; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 12.5px; letter-spacing: .5px;
  padding: 4px 4px; border: 1.5px solid currentColor; border-radius: 3px; opacity: .6; user-select: none; touch-action: manipulation; }
.pl-chip:hover { opacity: .9; }
.pl-chip.cur { opacity: 1; border-width: 2px; font-weight: 900; }
.pl-fx.on .pl-chip.cur { background: currentColor; }
.pl-fx.on .pl-chip.cur span { color: var(--lcdbg); }
/* o que mostrar na tela (MENU › TELA) */
.lcd[data-hide~="tempo"] .pl-tempo > div:first-child, .lcd[data-hide~="tempo"] .pl-beats { display: none; }
.lcd[data-hide~="meas"] .pl-meas, .lcd[data-hide~="sub"] .pl-sub, .lcd[data-hide~="tracks"] .pl-tracks, .lcd[data-hide~="top"] .pl-top,
.lcd[data-hide~="fx"] .pl-fx, .lcd[data-hide~="foot"] .pl-foot, .lcd[data-hide~="mix"] .pl-mix { display: none; }

/* ---------- tela principal: blocos na ordem escolhida (MENU › TELA › ARRUMAR); o último visível vai para o fim ---------- */
.lcd { position: relative; }
.lcd-play { gap: 7px; }
.pl-top { order: var(--o-top, 0); } .pl-tracks { order: var(--o-tracks, 1); } .pl-mix { order: var(--o-mix, 2); }
.pl-fx { order: var(--o-fx, 3); } .pl-foot { order: var(--o-foot, 4); }
.pl-tracks { display: flex; flex-direction: column; gap: 4px; }
.lcd[data-last="top"] .pl-top, .lcd[data-last="tracks"] .pl-tracks, .lcd[data-last="mix"] .pl-mix, .lcd[data-last="fx"] .pl-fx, .lcd[data-last="foot"] .pl-foot { margin-top: auto; }
/* tamanho GRANDE (para ver de longe) */
.lcd[data-big~="top"] .pl-num { font-size: 100px; } .lcd[data-big~="top"] .pl-name { font-size: 36px; } .lcd[data-big~="top"] .pl-tempo { font-size: 36px; }
.lcd[data-big~="tracks"] .pl-track { font-size: 20px; padding: 6px 6px; } .lcd[data-big~="tracks"] .pl-bar { height: 28px; } .lcd[data-big~="tracks"] .pl-len { font-size: 14px; }
.lcd[data-big~="mix"] .pl-mix { font-size: 16px; row-gap: 9px; } .lcd[data-big~="mix"] .pl-mix .n { font-size: 17px; } .lcd[data-big~="mix"] .pl-mix .lv { height: 22px; } .lcd[data-big~="mix"] .pl-mix .db { font-size: 15px; }
.lcd[data-big~="fx"] .pl-chip { font-size: 15px; padding: 8px 4px; }

/* entradas ao vivo: VOZ e VIOLÃO (medidor, volume, efeitos, mudo) */
.pl-mix { display: grid; grid-template-columns: 62px minmax(0, 1fr) 70px minmax(0, 1.15fr) 34px; align-items: center; gap: 5px 10px; padding: 5px 6px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.pl-mix .n { font-weight: 900; font-size: 13px; letter-spacing: .5px; cursor: pointer; }
.pl-mix .lv { position: relative; height: 13px; border: 2px solid currentColor; border-radius: 3px; overflow: hidden; }
.pl-mix .lv i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 7px); }
.pl-mix .db { font-size: 12px; font-weight: 800; text-align: right; white-space: nowrap; }
.pl-mix .fx { font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-mix .mu { font-size: 10px; font-weight: 900; border: 1.5px solid currentColor; border-radius: 3px; text-align: center; padding: 3px 0; opacity: .45; cursor: pointer; touch-action: manipulation; }
.pl-mix .mu.on { background: currentColor; opacity: 1; } .pl-mix .mu.on span { color: var(--lcdbg); }

/* MASTER: volume geral sempre à mão na lateral do visor (arrastar · dois toques = 0 dB) */
.lcd[data-master="right"] .lcd-play { margin-right: 74px; } .lcd[data-master="left"] .lcd-play { margin-left: 74px; }
.lcd[data-master="off"] .pl-master { display: none; }
.pl-master { position: absolute; top: 10px; bottom: 10px; right: 12px; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 5px; border-left: 1px solid currentColor; padding-left: 10px; cursor: ns-resize; touch-action: none; }
.lcd[data-master="left"] .pl-master { right: auto; left: 12px; border-left: none; border-right: 1px solid currentColor; padding: 0 10px 0 0; }
.pl-master .t { font-weight: 900; font-size: 10px; letter-spacing: 1.5px; }
.pl-master .clip { font-size: 9px; font-weight: 900; letter-spacing: 1px; opacity: .3; padding: 1px 4px; border-radius: 2px; }
.pl-master .clip.on { opacity: 1; background: currentColor; color: var(--lcdbg); }
.pl-master .m { flex: 1; position: relative; width: 44px; display: flex; justify-content: center; }
.pl-master .m > i { width: 14px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; overflow: hidden; }
.pl-master .m > i b { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: repeating-linear-gradient(0deg, currentColor 0 4px, transparent 4px 6px); }
.pl-master .k { position: absolute; left: 2px; right: 2px; top: 25%; height: 14px; margin-top: -7px; background: var(--lcdbg); border: 2px solid currentColor; border-radius: 3px; }
.pl-master .k::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px; background: currentColor; }
.pl-master .db { font-size: 11px; font-weight: 800; white-space: nowrap; }

/* ARRUMAR A TELA: cada bloco ganha ▲ ▼ · VISÍVEL/OCULTO · NORMAL/GRANDE; escondidos aparecem apagadinhos */
.lcd[data-edit] .pl-blk { position: relative; outline: 1.5px dashed currentColor; outline-offset: 1px; border-radius: 3px; min-height: 26px; }
.lcd[data-edit] .pl-blk.pl-top, .lcd[data-edit] .pl-blk.pl-tracks, .lcd[data-edit] .pl-blk.pl-mix, .lcd[data-edit] .pl-blk.pl-fx, .lcd[data-edit] .pl-blk.pl-foot { display: flex; }
.lcd[data-edit] .pl-blk.pl-mix, .lcd[data-edit] .pl-blk.pl-fx { display: grid; }
.lcd[data-edit][data-hide~="top"] .pl-top, .lcd[data-edit][data-hide~="tracks"] .pl-tracks, .lcd[data-edit][data-hide~="mix"] .pl-mix,
.lcd[data-edit][data-hide~="fx"] .pl-fx, .lcd[data-edit][data-hide~="foot"] .pl-foot { opacity: .35; }
.lcd[data-edit] .lcd-play { padding-bottom: 30px; }
.lay-ctl { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); z-index: 2; display: flex; align-items: center; gap: 4px; padding: 3px 4px; border-radius: 4px; background: var(--lcdbg); border: 1.5px solid currentColor; box-shadow: 0 2px 8px #0006; }
.lay-ctl .lay-n { font-size: 9px; font-weight: 900; letter-spacing: .5px; padding: 0 4px; opacity: .85; }
.lay-ctl b, .lay-bar b { font-size: 10.5px; font-weight: 900; letter-spacing: .5px; border: 1.5px solid currentColor; border-radius: 3px; padding: 4px 7px; cursor: pointer; touch-action: manipulation; user-select: none; }
.lay-ctl b.off { opacity: .25; pointer-events: none; }
.lay-ctl b.hid { opacity: .55; } .lay-ctl b em, .lay-bar b em { font-style: normal; }
.lay-ctl b.on, .lay-bar b.go { background: currentColor; } .lay-ctl b.on em, .lay-bar b.go em { color: var(--lcdbg); }
.lay-bar { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 4px; background: var(--lcdbg); border: 1.5px solid currentColor; font-size: 10.5px; font-weight: 900; letter-spacing: .5px; }
.lay-bar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lay-bar em { font-style: normal; animation: blink .7s steps(2) infinite; }

/* EDIT de VOZ / VIOLÃO no visor */
/* nada fica por cima de nada: as linhas cabem no visor e, se não couberem, rolam */
.ch-ed { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.ch-row { flex: none; display: grid; grid-template-columns: 112px minmax(0, 1fr) 84px; align-items: center; gap: 14px; padding: 3px 6px; font-size: 13px; font-weight: 800; letter-spacing: .5px; border-radius: 3px; border: 1.5px solid transparent; }
.ch-row.sel { border-color: currentColor; }
.ch-row .v { text-align: right; font-size: 13px; white-space: nowrap; }
.ch-sl { position: relative; height: 24px; cursor: ew-resize; touch-action: none; }
.ch-sl::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border: 1.5px solid currentColor; border-radius: 3px; box-sizing: border-box; }
.ch-sl::after { content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 1.5px; background: currentColor; opacity: .5; }
.ch-sl u { position: absolute; top: 50%; height: 6px; margin-top: -3px; background: currentColor; opacity: .55; }
.ch-sl i { position: absolute; top: 50%; width: 14px; height: 22px; margin: -11px 0 0 -7px; background: var(--lcdbg); border: 2px solid currentColor; border-radius: 3px; z-index: 1; }
.ch-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ch-seg span, .ch-pick, .ch-tg span, .ch-adj { text-align: center; font-size: 11.5px; font-weight: 800; letter-spacing: .5px; padding: 4px 4px; border: 1.5px solid currentColor; border-radius: 3px; white-space: nowrap; cursor: pointer; touch-action: manipulation; overflow: hidden; text-overflow: ellipsis; }
.ch-seg span { opacity: .6; } .ch-seg em, .ch-tg em { font-style: normal; }
.ch-seg span.on, .ch-tg span.on { opacity: 1; background: currentColor; } .ch-seg span.on em, .ch-tg span.on em { color: var(--lcdbg); }
.ch-pick { text-align: left; padding-left: 10px; }
.ch-adj { font-size: 10.5px; }
.ch-tg { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); margin-top: 4px; }
.ch-tg span { padding: 7px 4px; opacity: .7; } .ch-tg span.sel { outline: 2px solid currentColor; outline-offset: 2px; }
/* tempo e memórias: botões de toque (o pedal não tem mais o botão giratório) */
.lcd-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.lcd-steps .lcdbtn { margin: 4px 2px; min-width: 64px; }
.pl-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; border-top: 1px solid currentColor; padding-top: 5px; opacity: .95; }

/* knobs */
.pb-knobs, .pb-mic { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 4px 0; }
.kwrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.klbl { font-size: 12px; font-weight: 800; text-align: center; letter-spacing: .5px; }
.knob { width: 86px; height: 86px; border-radius: 50%; cursor: ns-resize; touch-action: none;
  background: radial-gradient(circle at 35% 30%, #4a4a4a, #0c0c0c 70%); box-shadow: 0 6px 12px #000a, inset 0 2px 2px #666; display: flex; align-items: center; justify-content: center; }
.knob.big { width: 104px; height: 104px; }
.kcap { width: 82%; height: 82%; border-radius: 50%; background: repeating-conic-gradient(#1c1c1c 0 6deg, #0f0f0f 6deg 12deg); position: relative; transition: transform .08s; }
.kcap i { position: absolute; left: 50%; top: 6%; width: 3px; height: 26%; margin-left: -1.5px; background: #fff; border-radius: 2px; }
.knob.big .kcap i { display: none; }

/* footswitches */
.pb-foot { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid #7a0f09; box-shadow: 0 -1px 0 #ff6a5a; margin: 0 -26px; padding: 14px 40px 26px; }
.fs { display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; touch-action: manipulation; position: relative; }
.fslbl { min-height: 2.1em; display: flex; align-items: flex-end; justify-content: center; font-size: 24px; font-weight: 900; text-align: center; line-height: 1.05; letter-spacing: .5px; }
.fled { width: 12px; height: 24px; border-radius: 3px; background: #4a0905; box-shadow: inset 0 1px 3px #000; }
.fled.red { background: #ff2a1a; box-shadow: 0 0 12px #ff2a1a; }
.fled.green { background: #3dff6c; box-shadow: 0 0 12px #3dff6c; }
.fled.yellow { background: #ffd21a; box-shadow: 0 0 12px #ffd21a; }
.fled.white { background: #fff; box-shadow: 0 0 12px #fff; }
.fled.blue { background: #4aa3ff; box-shadow: 0 0 12px #4aa3ff; }
.fsw { width: 58px; height: 58px; border-radius: 50%; background: url(../img/pata.svg) center 46% / 52% no-repeat, radial-gradient(circle at 40% 35%, #fff, #bbb 45%, #777 75%, #444); box-shadow: 0 6px 10px #000a, 0 0 0 6px #9a9a9a, 0 0 0 8px #555; transition: transform .05s; }
.fs.down .fsw { transform: translateY(3px) scale(.97); }
.tsnum { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 800; opacity: .9; }
.bigstart { background: linear-gradient(#e83a2e, #b51d14); color: #fff; border: none; border-radius: 10px; font-size: 22px; font-weight: 900; padding: 16px 50px; cursor: pointer; letter-spacing: 2px; box-shadow: 0 4px 0 #7a0f09; }

@media (max-width: 1100px) {
  .pb-top { grid-template-columns: 132px 2px minmax(0, 1fr) 2px 132px; gap: 14px; }
}


/* botões FX em cima dos faders das faixas */
.trk-fx { margin: auto 0 34px; justify-content: space-around; }
.trk-fx .sqbtn { width: 32px; height: 26px; border-radius: 5px; }
.trk-fx .bwrap { gap: 3px; }
.trk-fx .blbl { font-size: 11px; }

/* ---------- escolher memória: toque no número do visor (10 por vez, com cara de visor) ---------- */
.pl-num, .pl-name { cursor: pointer; }
.pl-num::after { content: "▾"; font-size: 20px; letter-spacing: 0; vertical-align: 6px; margin-left: 4px; opacity: .55; }
.mpick { position: fixed; inset: 0; z-index: 15; background: #000b; display: grid; place-items: center; padding: 12px; }
.mpick[hidden] { display: none; }
.mp-box {
  width: min(640px, 100%); max-height: calc(100dvh - 24px); overflow: auto; border-radius: 10px; padding: 12px 14px 10px;
  background: linear-gradient(#1747d6, #0e33a8); color: #fff; font-family: "SF Mono", Menlo, monospace;
  border: 4px solid #121212; box-shadow: 0 0 0 3px #2a2620, 0 22px 60px #000c;
}
.mp-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; letter-spacing: 1.5px; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid #ffffff55; }
.mp-x { background: none; border: 1px solid #ffffff66; color: #fff; border-radius: 6px; width: 40px; height: 34px; cursor: pointer; font-size: 15px; }
.mp-nav { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; margin: 10px 0; }
.mp-arr, .mp-grp { background: #ffffff14; border: 1px solid #ffffff66; color: #fff; border-radius: 6px; height: 46px; font: inherit; font-weight: 800; font-size: 17px; letter-spacing: 1px; cursor: pointer; white-space: pre; }
.mp-nav.groups .mp-arr { visibility: hidden; }
.mp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mp-it {
  position: relative; min-width: 0; min-height: 70px; padding: 8px 6px; border-radius: 6px; cursor: pointer;
  background: transparent; border: 1px solid #ffffff55; color: #fff; font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.mp-it b { font-size: 28px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.mp-it span { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .6; }
.mp-it.used { border-color: #ffffffaa; }
.mp-it.used span { opacity: 1; }
.mp-it:not(.used):not(.cur) b { opacity: .5; }
.mp-it i { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 11px; color: #7dffb0; }
.mp-it.cur { background: #fff; color: #0e33a8; border-color: #fff; }
.mp-it.cur i { color: #0b8f3e; }
.mp-it.grp b { font-size: 19px; letter-spacing: 0; }
.mp-it:active { transform: scale(.97); }
.mp-foot { font-size: 10px; opacity: .75; margin-top: 10px; text-align: center; line-height: 1.5; }
/* celular em pé: duas colunas, com espaço para o nome */
@media (max-width: 479px) {
  .mp-grid { grid-template-columns: 1fr 1fr; }
  .mp-it { flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 54px; padding: 8px 10px; }
  .mp-it b { font-size: 22px; }
  .mp-it span { font-size: 11px; }
  .mp-it.grp { flex-direction: column; align-items: flex-start; gap: 3px; }
}
/* celular deitado: mais baixo */
@media (max-height: 460px) {
  .mp-box { padding: 8px 12px; }
  .mp-head { padding-bottom: 6px; }
  .mp-nav { margin: 6px 0; } .mp-arr, .mp-grp { height: 38px; }
  .mp-it { min-height: 52px; } .mp-it b { font-size: 22px; }
  .mp-foot { display: none; }
}

/* ---------- EFEITOS do canal: cadeia de pedais no visor (IN → 1 → 2 → 3 → 4 → OUT), no estilo da tela ---------- */
.cz-chain { flex: none; display: flex; align-items: center; padding: 8px 2px 10px; }
.cz-io { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: 10.5px; font-weight: 900; letter-spacing: .5px; }
.cz-ln { flex: 1 1 10px; min-width: 8px; height: 2px; background: currentColor; }
.cz-ped { position: relative; flex: none; width: 92px; height: 70px; border: 2px solid currentColor; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; touch-action: manipulation; }
.cz-ped svg { width: 28px; height: 28px; }
.cz-ped span { font-size: 11.5px; font-weight: 900; letter-spacing: .5px; }
.cz-ped small { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); font-size: 8.5px; font-weight: 900; letter-spacing: .5px; padding: 1px 4px; background: var(--lcdbg); border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.cz-n { position: absolute; top: 3px; left: 5px; font-style: normal; font-size: 9px; font-weight: 900; opacity: .7; }
.cz-plus { font-size: 26px; font-weight: 400; opacity: .7; line-height: 1; }
.cz-ped.empty { border-style: dashed; opacity: .6; }
.cz-ped.off { border-style: dashed; } .cz-ped.off svg, .cz-ped.off span { opacity: .5; }
.cz-ped.locked svg, .cz-ped.locked span { opacity: .35; }
.cz-ped.sel { background: currentColor; opacity: 1; box-shadow: 0 0 0 3px var(--lcdbg), 0 0 0 5px currentColor; }
.cz-ped.sel > *:not(small) { color: var(--lcdbg); }
.cz-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid currentColor; padding-top: 8px; overflow-y: auto; scrollbar-width: thin; }
.cz-tit { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 900; letter-spacing: .5px; }
.cz-tit small { font-size: 10.5px; font-weight: 700; opacity: .85; }
.cz-tit .cz-b { margin-left: auto; }
.cz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 6px; }
.cz-opt { position: relative; display: flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1.5px solid currentColor; border-radius: 5px; cursor: pointer; touch-action: manipulation; min-width: 0; }
.cz-opt svg { width: 18px; height: 18px; flex: none; }
.cz-opt span { font-size: 11px; font-weight: 900; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-opt small { position: absolute; top: -7px; right: 4px; font-size: 7.5px; font-weight: 900; letter-spacing: .4px; padding: 0 3px; background: var(--lcdbg); border: 1px solid currentColor; border-radius: 2px; }
.cz-opt.locked { opacity: .45; border-style: dashed; }
.cz-opt.cur { background: currentColor; } .cz-opt.cur > * { color: var(--lcdbg); }
.cz-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cz-b { text-align: center; font-size: 11.5px; font-weight: 900; letter-spacing: .5px; padding: 7px 6px; border: 1.5px solid currentColor; border-radius: 4px; cursor: pointer; touch-action: manipulation; white-space: nowrap; }
.cz-b em { font-style: normal; }
.cz-b.on { background: currentColor; } .cz-b.on em { color: var(--lcdbg); }
.cz-b.dis { opacity: .3; pointer-events: none; }
/* cadeia em duas linhas (até 10 pedais): a linha volta como numa pedaleira — sai do ◯ no fim da 1ª linha e entra na 2ª pela esquerda */
.cz-chain.two { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding: 6px 0 8px; }
.cz-chain.two .cz-row { position: relative; z-index: 1; display: flex; align-items: center; height: 74px; }
.cz-chain.two .cz-row.r2 { padding-left: 20px; }
.cz-chain.two .cz-ped { width: 74px; height: 74px; }
.cz-node { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; background: var(--lcdbg); box-sizing: border-box; }
.cz-turn { position: absolute; box-sizing: border-box; pointer-events: none; border: 0 solid currentColor; }
.cz-turn.a { top: 50px; right: 6px; left: 30px; height: 41px; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 11px; }
.cz-turn.b { top: 89px; left: 19px; width: 30px; height: 51px; border-top-width: 2px; border-left-width: 2px; border-bottom-width: 2px; border-radius: 11px 0 0 11px; }
/* miniatura do pedal original (VOZ / VIOLÃO) ocupando a caixa */
.cz-ped.has-mini { gap: 0; }
.cz-ped svg.mini { width: 46px; height: 61px; }
.cz-chain.two + .cz-panel { gap: 6px; padding-top: 6px; }
.cz-chain.two + .cz-panel .cz-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 5px; }
.cz-chain.two + .cz-panel .cz-opt { padding: 3px 6px; }
.cz-chain.two + .cz-panel .cz-acts .cz-b { padding: 6px 6px; }
/* cadeia: sem botões — toque abre o pedal, arrastar muda de lugar, arrastar para fora tira */
.cz-ped:not(.empty) { touch-action: none; cursor: grab; }
.cz-ped.dragging { opacity: .3; border-style: dotted; }
.cz-ped.drop { box-shadow: 0 0 0 3px var(--lcdbg), 0 0 0 6px currentColor; }
.cz-hint { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 11px; font-weight: 800; letter-spacing: .4px; opacity: .85; }
.cz-hint span::before { content: "· "; }
.cz-undo { align-self: flex-start; }
.cz-drop { display: none; flex: 1; min-height: 70px; align-items: center; justify-content: center; border: 2px dashed currentColor; border-radius: 8px; font-size: 13px; font-weight: 900; letter-spacing: .6px; opacity: .6; }
.cz-drop.hot { opacity: 1; background: currentColor; } .cz-drop.hot b { color: var(--lcdbg); }
.lcd[data-drag] .cz-drop { display: flex; } .lcd[data-drag] .cz-hint, .lcd[data-drag] .cz-undo { display: none; }
.cz-tag { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, -130%); display: flex; align-items: center; gap: 7px; padding: 6px 10px; border: 2px solid currentColor; border-radius: 7px;
  font: 900 12px/1 "SF Mono", Menlo, monospace; letter-spacing: .5px; white-space: nowrap; box-shadow: 0 8px 22px #0008; }
.cz-tag svg { width: 18px; height: 18px; }
.cz-tag.out { border-style: dashed; } .cz-tag.out::after { content: "✕ TIRAR"; margin-left: 4px; }

/* pedal grande no visor (tocou no pedal da cadeia): botões que giram arrastando, botões de opção e o pedal de pisar liga/desliga */
.bp { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; margin-top: 2px; padding: 9px 14px 8px; border: 2px solid currentColor; border-radius: 12px; overflow-y: auto; scrollbar-width: thin; }
.bp.locked { opacity: .5; }
.bp-meter { flex: none; display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; font-size: 10px; font-weight: 900; letter-spacing: .5px; border: 1.5px solid currentColor; border-radius: 4px; padding: 4px 8px; }
.bp-bar { position: relative; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; overflow: hidden; }
.bp-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 6px); }
.bp-knobs { flex: none; display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 6px 8px; justify-items: center; }
.bp-k { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; max-width: 100%; cursor: ns-resize; touch-action: none; user-select: none; }
.bp-k svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 2; }
.bp-k .arc { stroke-width: 1; opacity: .45; }
.bp-k .ptr { stroke-width: 3; stroke-linecap: round; }
.bp-v { font-size: 10.5px; font-weight: 900; white-space: nowrap; }
.bp-k span { font-size: 9px; font-weight: 800; letter-spacing: .3px; opacity: .85; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.bp-sels { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.bp-s { font-size: 10.5px; font-weight: 900; letter-spacing: .4px; padding: 5px 9px; border: 1.5px solid currentColor; border-radius: 4px; cursor: pointer; touch-action: manipulation; white-space: nowrap; }
.bp-s em { font-style: normal; } .bp-s.on { background: currentColor; } .bp-s.on em { color: var(--lcdbg); }
.bp-foot { flex: none; margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 30px; }
.bp-logo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 900; letter-spacing: .5px; }
.bp-logo svg { width: 26px; height: 26px; }
.bp-logo.serif { flex-direction: column; gap: 1px; line-height: 1; }
.bp-logo.serif b { font-family: Georgia, serif; font-style: italic; font-size: 30px; letter-spacing: 0; }
.bp-logo.serif small { font-size: 10px; font-weight: 700; }
.bp-st { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 900; letter-spacing: .5px; min-width: 104px; }
.bp-led { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; }
.bp.on .bp-led { background: currentColor; box-shadow: 0 0 8px currentColor; }
.bp-fs { cursor: pointer; touch-action: manipulation; line-height: 0; }
.bp-fs svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .06s; }
.bp-fs:active svg { transform: translateY(2px) scale(.96); }
.bp:not(.on) .bp-knobs, .bp:not(.on) .bp-sels { opacity: .55; }
/* poucos botões (VOZ, VIOLÃO, compressor…): botões maiores, mais fáceis de girar com o dedo */
.bp-knobs.few { gap: 8px 12px; margin-top: 4px; }
.bp-knobs.few .bp-k svg { width: 64px; height: 64px; }
.bp-knobs.few .bp-v { font-size: 12px; }
.bp-knobs.few .bp-k span { font-size: 10px; }
.bp-knobs.few + .bp-sels { margin-top: 6px; }
.bp-knobs.few + .bp-sels .bp-s { font-size: 11.5px; padding: 7px 11px; }
