/* === Guitar Distor - Premium Rock/Metal Aesthetic === */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-light: #1a1a1a;
  --border-warm: #2a1f14;
  --border: #1e1e1e;
  --accent: #ff6b2b;
  --accent-dim: rgba(255,107,43,0.12);
  --amber: #e8a634;
  --amber-dim: rgba(232,166,52,0.12);
  --led-on: #ff2222;
  --led-off: #330808;
  --green: #4ade80;
  --red: #ef4444;
  --teal: #06d6a0;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #555;
  --chrome: linear-gradient(135deg, #666 0%, #ccc 40%, #999 60%, #444 100%);
  --mono: 'JetBrains Mono', 'Consolas', monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  --radius: 8px;
  --header-h: 52px;
  --transport-h: 56px;

  /* Per-pedal enclosure colors */
  --pedal-gate: #1a1d20;
  --pedal-ts: #1a3320;
  --pedal-mz: #0d0d0d;
  --pedal-hm2: #2d1a0a;
  --pedal-rect: #1f0a0a;
  --pedal-whammy: #a01018;
  --pedal-ns: #141428;
  --pedal-cab: #1a1408;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 13px;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* === APP LAYOUT === */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* === HEADER === */
.header {
  height: var(--header-h);
  background: linear-gradient(180deg, #131313 0%, #0d0d0d 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,107,43,0.1), 0 4px 16px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
  flex-shrink: 0;
  z-index: 10;
}
.header-left { display: flex; align-items: center; }
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(255,107,43,0.3), 0 0 40px rgba(255,107,43,0.1);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-icon {
  filter: drop-shadow(0 0 6px rgba(255,107,43,0.5)) drop-shadow(0 0 14px rgba(255,107,43,0.25));
  flex-shrink: 0;
}
.brand-accent {
  color: var(--amber);
}
.header-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.status-indicator { display: flex; align-items: center; gap: 6px; }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #333;
  transition: all 0.3s;
}
.status-dot.active { background: var(--green); box-shadow: 0 0 8px rgba(74,222,128,0.5); }
.status-dot.recording { background: var(--red); box-shadow: 0 0 8px rgba(239,68,68,0.5); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.4; } }
.status-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}
.sep { width: 1px; height: 18px; background: #222; }
.timer {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 1px;
}
.sample-rate {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
}
.header-right { display: flex; align-items: center; gap: 8px; }
.preset-select {
  background: #111;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  max-width: 280px;
}
.preset-select:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-dim); }
.preset-select optgroup { color: var(--accent); font-weight: 600; }
.preset-select option { color: var(--text-primary); background: #111; }
.header-btn {
  background: #111;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.15s;
}
.header-btn:hover { color: var(--accent); border-color: var(--accent); }
.save-btn { color: var(--green) !important; border-color: rgba(74,222,128,0.3) !important; }
.save-btn:hover { background: rgba(74,222,128,0.1) !important; border-color: var(--green) !important; }
.delete-btn {
  color: var(--red) !important;
  border-color: rgba(239,68,68,0.3) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px !important;
}
.delete-btn:hover { background: rgba(239,68,68,0.1) !important; border-color: var(--red) !important; }
.delete-btn svg { flex-shrink: 0; }
.reset-btn { color: var(--amber) !important; border-color: rgba(232,166,52,0.3) !important; }
.reset-btn:hover { background: var(--amber-dim) !important; border-color: var(--amber) !important; }

/* === MAIN === */
.main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

/* === TOP ROW === */
.top-row {
  display: flex;
  gap: 1px;
  background: #0e0e0e;
  flex-shrink: 0;
  height: 160px;
  max-height: 160px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  overflow: hidden;
}
.panel-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  padding: 6px 10px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}
.tuner-panel {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.viz-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.meter-panel {
  width: 130px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* Tuner */
.guitar-tuner-inner {
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  overflow: hidden;
}
.tuner-string-display { display: flex; align-items: baseline; gap: 6px; }
.tuner-target-note {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-family: var(--mono);
}
.tuner-string-name { font-size: 10px; font-weight: 600; color: var(--text-muted); }
.tuner-freq-display { font-family: var(--mono); font-size: 9px; color: var(--text-secondary); }
.tuner-cents-display { font-family: var(--mono); font-size: 8px; color: var(--text-muted); }
#gtrTunerGauge { width: 140px; height: 65px; }
.tuner-strings { display: flex; gap: 2px; margin-top: 2px; }
.tuner-string-btn {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 4px;
  background: #111;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50%;
  width: 24px; height: 24px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tuner-string-btn:hover { border-color: var(--accent); color: var(--accent); }
.tuner-string-btn.closest {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-dim);
}
.tuner-string-btn.in-tune {
  border-color: var(--green); color: var(--green);
  background: rgba(74,222,128,0.1);
  box-shadow: 0 0 6px rgba(74,222,128,0.3);
}
.tuner-mode-row { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.tuner-mode-row label { font-size: 8px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; }
.tuner-mode-row .fx-select { font-size: 9px; padding: 2px 4px; max-width: 120px; }

/* Visualizer */
.visualizer-inner {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
#mainViz {
  width: 100%;
  height: 100%;
  display: block;
}
.viz-modes {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 3px;
}
.viz-btn {
  font-family: var(--mono);
  font-size: 9px;
  padding: 3px 8px;
  background: rgba(0,0,0,0.7);
  border: 1px solid #222;
  color: var(--text-muted);
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.15s;
  backdrop-filter: blur(4px);
}
.viz-btn:hover { color: var(--text-secondary); }
.viz-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(255,107,43,0.1); }

/* Meters */
.meters-inner {
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  overflow: hidden;
}
.meter-label, .peak-label {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}
.vu-meter-vertical {
  flex: 1;
  width: 24px;
  background: #0a0a0a;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  gap: 1px;
  padding: 2px;
  min-height: 40px;
}
.vu-seg {
  flex: 1;
  border-radius: 1px;
  background: #141418;
  transition: background 0.05s;
  min-height: 2px;
}
.vu-seg.on-green { background: var(--green); box-shadow: 0 0 3px rgba(74,222,128,0.3); }
.vu-seg.on-amber { background: var(--amber); box-shadow: 0 0 3px rgba(232,166,52,0.3); }
.vu-seg.on-red { background: var(--red); box-shadow: 0 0 3px rgba(239,68,68,0.4); }
.db-readout {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
}
.peak-label { font-size: 8px; }
.peak-label span { color: var(--text-secondary); font-family: var(--mono); }
.peak-reset {
  font-family: var(--mono);
  font-size: 8px;
  padding: 2px 8px;
  background: #111;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 3px;
  cursor: pointer;
}
.peak-reset:hover { color: var(--accent); }

/* === PEDALBOARD === */
.pedalboard {
  background: #0c0c0c;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.pedalboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: linear-gradient(180deg, #131313 0%, #0e0e0e 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 2;
}
.signal-chain-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 2px;
  opacity: 0.7;
  animation: signal-glow 3s ease-in-out infinite;
}
@keyframes signal-glow {
  0%, 100% { opacity: 0.5; text-shadow: none; }
  50% { opacity: 0.9; text-shadow: 0 0 8px rgba(255,107,43,0.3); }
}
.bypass-all-btn {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 14px;
  background: #0a0a0a;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.bypass-all-btn:hover {
  background: rgba(239,68,68,0.1);
  box-shadow: 0 0 10px rgba(239,68,68,0.15);
}

/* Diamond plate floor texture */
.pedal-rack {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  padding: 20px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: center;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #222 transparent;
  position: relative;
  background:
    /* Diamond plate crosshatch */
    repeating-linear-gradient(
      45deg,
      transparent, transparent 8px,
      rgba(255,255,255,0.012) 8px, rgba(255,255,255,0.012) 9px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent, transparent 8px,
      rgba(255,255,255,0.012) 8px, rgba(255,255,255,0.012) 9px
    ),
    /* Subtle radial spotlight from above */
    radial-gradient(ellipse at 50% 0%, rgba(255,107,43,0.02) 0%, transparent 60%),
    /* Base */
    #0b0b0b;
}
/* Center content when there's room, left-align when scrolling */
@supports (justify-content: safe center) {
  .pedal-rack { justify-content: safe center; }
}
/* Vignette overlay */
.pedal-rack::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 0;
}
.pedal-rack > * { position: relative; z-index: 1; }

/* === SIGNAL CHAIN ENDPOINTS (Guitar & Speaker) === */
.signal-endpoint {
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.signal-guitar {
  filter: drop-shadow(0 0 12px rgba(255,107,43,0.15)) drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  animation: guitar-breathe 4s ease-in-out infinite;
}
.signal-speaker {
  filter: drop-shadow(0 0 12px rgba(255,107,43,0.15)) drop-shadow(0 4px 12px rgba(0,0,0,0.5));
  animation: speaker-pulse 3s ease-in-out infinite;
}
.guitar-svg {
  display: block;
  width: 52px;
  height: 175px;
  object-fit: contain;
}
.speaker-svg {
  display: block;
  width: 70px;
  height: 150px;
  object-fit: contain;
}
.signal-guitar:hover {
  filter: drop-shadow(0 0 20px rgba(255,107,43,0.35)) drop-shadow(0 4px 16px rgba(0,0,0,0.6));
}
.signal-speaker:hover {
  filter: drop-shadow(0 0 20px rgba(255,107,43,0.35)) drop-shadow(0 4px 16px rgba(0,0,0,0.6));
}

.endpoint-label {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-top: 6px;
  text-shadow: 0 0 8px rgba(255,107,43,0.4);
  opacity: 0.8;
}
.endpoint-jack {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #222;
  border: 2px solid #555;
  margin-top: 3px;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.6), 0 0 6px rgba(0,0,0,0.3);
}
.jack-plug {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #666;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Speaker LED glow when engine is running */
.speaker-led {
  transition: fill 0.3s, filter 0.3s;
}
body.engine-on .speaker-led {
  fill: #ff2222;
  filter: drop-shadow(0 0 6px #ff2222) drop-shadow(0 0 12px rgba(255,0,0,0.4));
}

/* === SIGNAL CABLES === */
.signal-cable {
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  align-items: center;
  width: 30px;
  height: 4px;
  position: relative;
  z-index: 1;
}
.cable-line {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,255,255,0.03);
  border: 1px solid #2a2a2a;
}
.cable-signal-flow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,107,43,0.6) 40%, rgba(255,107,43,0.9) 50%, rgba(255,107,43,0.6) 60%, transparent 100%);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
body.engine-on .cable-signal-flow {
  opacity: 1;
  animation: signal-flow 1.5s linear infinite;
}
@keyframes signal-flow {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Guitar breathing glow animation */
@keyframes guitar-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Speaker pulsing animation */
@keyframes speaker-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.008); }
}

/* Speaker cone vibration when engine is on */
body.engine-on .signal-speaker {
  animation: speaker-vibrate 0.08s linear infinite alternate, speaker-pulse 3s ease-in-out infinite;
}
@keyframes speaker-vibrate {
  0% { transform: scale(1) translateX(0); }
  100% { transform: scale(1.003) translateX(0.3px); }
}

/* === PEDAL ENCLOSURES === */
.pedal {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s, opacity 0.2s;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.pedal:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
}
.pedal-enclosure {
  width: 160px;
  min-height: 260px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.5),
    0 1px 3px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.3);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
  /* Subtle metal grain texture */
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 64px 64px;
}

/* Per-pedal colors & textures */
.pedal-gate {
  background: linear-gradient(180deg, #222528 0%, var(--pedal-gate) 100%);
  border-color: rgba(136,170,255,0.08) !important;
}
.pedal-ts {
  background: linear-gradient(180deg, #2a5a2a 0%, #1e4420 40%, var(--pedal-ts) 100%);
  border-color: rgba(74,222,128,0.1) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 4px 12px rgba(74,222,128,0.05),
    inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -1px 0 rgba(0,0,0,0.3) !important;
}
.pedal-mz {
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 40%, var(--pedal-mz) 100%);
  border-color: rgba(255,140,42,0.08) !important;
}
.pedal-hm2 {
  background: linear-gradient(180deg, #4a3015 0%, #3a2510 40%, var(--pedal-hm2) 100%);
  border-color: rgba(232,166,52,0.1) !important;
}
.pedal-rect {
  background: linear-gradient(180deg, #2a1010 0%, var(--pedal-rect) 100%);
  border-color: rgba(220,60,60,0.1) !important;
  /* Diamond plate texture overlay */
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(255,255,255,0.008) 4px, rgba(255,255,255,0.008) 5px),
    repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255,255,255,0.008) 4px, rgba(255,255,255,0.008) 5px),
    linear-gradient(180deg, #2a1010 0%, var(--pedal-rect) 100%);
}
/* Whammy DT — Digitech red, wider format */
.pedal-whammy {
  width: 210px !important;
  background: linear-gradient(180deg, #d41920 0%, #b81418 40%, var(--pedal-whammy) 100%) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: 0 4px 24px rgba(180,20,20,0.3), 0 8px 32px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -2px 6px rgba(0,0,0,0.3) !important;
}
.pedal-whammy:hover {
  box-shadow: 0 4px 24px rgba(180,20,20,0.4), 0 8px 32px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -2px 6px rgba(0,0,0,0.3) !important;
}
.whammy-top {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-bottom: 4px;
}
.whammy-modes-panel {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 6px 8px;
  flex: 0 0 auto;
  min-width: 82px;
}
.whammy-panel-title {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #666;
  text-align: center;
  margin-bottom: 5px;
  padding-bottom: 4px;
  border-bottom: 1px solid #222;
}
.whammy-mode-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  cursor: pointer;
  transition: color 0.15s;
}
.whammy-mode-option span {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #555;
  transition: color 0.15s;
}
.whammy-mode-option:hover span { color: #999; }
.whammy-mode-option.active span { color: #fff; }
.whammy-mode-led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #330808;
  border: 1px solid #222;
  flex-shrink: 0;
  transition: all 0.15s;
}
.whammy-mode-option.active .whammy-mode-led {
  background: #ff2222;
  border-color: transparent;
  box-shadow: 0 0 6px #ff2222, 0 0 14px rgba(255,0,0,0.4);
}
.whammy-logo-panel {
  flex: 1;
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  border: 1px solid #333;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  min-height: 88px;
  position: relative;
  overflow: hidden;
}
.whammy-logo-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,25,32,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.whammy-logo-digitech {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.whammy-logo-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: #d41920;
  text-shadow: 0 0 12px rgba(212,25,32,0.5), 0 0 30px rgba(212,25,32,0.2),
    1px 1px 0 rgba(255,255,255,0.08);
  letter-spacing: -0.5px;
  line-height: 1;
}
.whammy-logo-sub {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: #ccc;
  letter-spacing: 6px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  margin-top: 2px;
}
/* Whammy smaller dark knobs */
.pedal-whammy .knob-body {
  width: 38px; height: 38px;
  background: radial-gradient(circle at 38% 32%, #2a2a2a, #0d0d0d 70%);
  border: 2px solid #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.05);
}
.pedal-whammy .knob {
  width: 38px; height: 38px;
}
.pedal-whammy .knob-indicator {
  height: 11px;
  background: #ddd;
}
.pedal-whammy .knob-value {
  color: #ff6b6b;
}
.pedal-ns {
  background: linear-gradient(180deg, #1e1e38 0%, var(--pedal-ns) 100%);
  border-color: rgba(68,136,204,0.1) !important;
}
.pedal-cab {
  background: linear-gradient(180deg, #2a2214 0%, #221c10 40%, var(--pedal-cab) 100%);
  border-color: rgba(196,165,106,0.1) !important;
  /* Wood grain texture */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent, transparent 6px,
      rgba(139,90,43,0.04) 6px, rgba(139,90,43,0.04) 7px
    ),
    linear-gradient(180deg, #2a2214 0%, #221c10 40%, var(--pedal-cab) 100%);
}

/* Per-pedal knob accent colors */
.pedal-gate .knob-value { color: #8a9aa8; }
.pedal-ts .knob-value { color: #4ade80; }
.pedal-ts .knob-body { background: conic-gradient(from 180deg, #ddd 0%, #f5f5f0 25%, #ccc 50%, #aaa 75%, #ddd 100%); border-color: #888; }
.pedal-ts .knob-indicator { background: #1a3320; box-shadow: none; }
.pedal-mz .knob-value { color: #ff8c2a; }
.pedal-hm2 .knob-value { color: var(--amber); }
.pedal-rect .knob-value { color: #ff6b6b; }
.pedal-ns .knob-value { color: #6aafef; }
.pedal-cab .knob-value { color: #e8c878; }
.pedal-cab .knob-body { background: conic-gradient(from 180deg, #3a2a10 0%, #6a5030 25%, #4a3a20 50%, #2a1a08 75%, #3a2a10 100%); border-color: #5a4a30; }
.pedal-cab .knob-indicator { background: #e8c878; box-shadow: 0 0 4px rgba(232,200,120,0.4); }

/* Per-pedal LED colors */
.pedal[data-pedal="gate"].active .pedal-led { background: #8af; box-shadow: 0 0 6px #8af, 0 0 14px rgba(136,170,255,0.3); }
.pedal[data-pedal="ts"].active .pedal-led { background: #4ade80; box-shadow: 0 0 6px #4ade80, 0 0 14px rgba(74,222,128,0.3); }
.pedal[data-pedal="mz"].active .pedal-led { background: #ff8c2a; box-shadow: 0 0 6px #ff8c2a, 0 0 14px rgba(255,140,42,0.3); }
.pedal[data-pedal="hm2"].active .pedal-led { background: var(--amber); box-shadow: 0 0 6px var(--amber), 0 0 14px rgba(232,166,52,0.3); }
.pedal[data-pedal="ns"].active .pedal-led { background: #4488cc; box-shadow: 0 0 6px #4488cc, 0 0 14px rgba(68,136,204,0.3); }
.pedal[data-pedal="cab"].active .pedal-led { background: #e8c878; box-shadow: 0 0 6px #e8c878, 0 0 14px rgba(232,200,120,0.3); }

/* Active pedal glow — per pedal */
.pedal.active .pedal-enclosure {
  border-color: rgba(255,107,43,0.25);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.5),
    0 0 20px rgba(255,107,43,0.08),
    0 0 40px rgba(255,107,43,0.03),
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.3);
}
.pedal[data-pedal="gate"].active .pedal-enclosure { border-color: rgba(136,170,255,0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 20px rgba(136,170,255,0.06), inset 0 1px 0 rgba(255,255,255,0.06); }
.pedal[data-pedal="ts"].active .pedal-enclosure { border-color: rgba(74,222,128,0.25); box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 20px rgba(74,222,128,0.08), inset 0 1px 0 rgba(255,255,255,0.06); }
.pedal[data-pedal="mz"].active .pedal-enclosure { border-color: rgba(255,140,42,0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 20px rgba(255,140,42,0.08), inset 0 1px 0 rgba(255,255,255,0.06); }
.pedal[data-pedal="hm2"].active .pedal-enclosure { border-color: rgba(232,166,52,0.25); box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 20px rgba(232,166,52,0.08), inset 0 1px 0 rgba(255,255,255,0.06); }
.pedal[data-pedal="rect"].active .pedal-enclosure { border-color: rgba(255,80,80,0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 20px rgba(255,80,80,0.08), inset 0 1px 0 rgba(255,255,255,0.06); }
.pedal[data-pedal="ns"].active .pedal-enclosure { border-color: rgba(68,136,204,0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 20px rgba(68,136,204,0.06), inset 0 1px 0 rgba(255,255,255,0.06); }
.pedal[data-pedal="cab"].active .pedal-enclosure { border-color: rgba(232,200,120,0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 20px rgba(232,200,120,0.06), inset 0 1px 0 rgba(255,255,255,0.06); }

/* === PEDAL LED === */
.pedal-led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--led-off);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.15s;
  position: absolute;
  top: 10px;
  right: 12px;
}
.pedal.active .pedal-led {
  background: var(--led-on);
  border-color: transparent;
  box-shadow: 0 0 6px var(--led-on), 0 0 14px rgba(255,0,0,0.3);
  animation: led-pulse 2s ease-in-out infinite;
}
@keyframes led-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--led-on), 0 0 14px rgba(255,0,0,0.3); }
  50% { box-shadow: 0 0 10px var(--led-on), 0 0 24px rgba(255,0,0,0.5), 0 0 40px rgba(255,0,0,0.15); }
}

/* === BRAND PLATES (Unique per pedal) === */
.brand-plate {
  width: 100%;
  text-align: center;
  margin-bottom: 4px;
}

/* --- GATE: ISP Decimator style --- */
.brand-plate-gate {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px;
  padding: 6px 4px 4px;
}
.gate-brand-top {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #8a9aa8;
  text-transform: uppercase;
}
.gate-brand-main {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #cfd8e0;
  text-shadow: 0 0 8px rgba(140,160,180,0.3);
  margin: 2px 0;
}
.gate-brand-model {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 2px;
  color: #556;
}

/* --- TUBE SCREAMER: Ibanez TS808 style --- */
.brand-plate-ts {
  background: radial-gradient(ellipse at center, rgba(74,222,128,0.08) 0%, transparent 70%);
  padding: 4px;
}
.ts-brand-ibanez {
  font-family: var(--serif);
  font-style: italic;
  font-size: 10px;
  color: #c0c0c0;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.ts-brand-script {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: #4ade80;
  text-shadow: 0 0 12px rgba(74,222,128,0.4), 0 0 24px rgba(74,222,128,0.15);
  line-height: 1.1;
  margin: 1px 0;
}
.ts-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #888;
  border: 1px solid #444;
  border-radius: 2px;
  padding: 1px 6px;
  margin-top: 2px;
}

/* --- METAL ZONE: sleek dark with orange accents --- */
.brand-plate-mz {
  border: 1px solid rgba(255,140,42,0.12);
  border-radius: 3px;
  padding: 6px 4px 4px;
  position: relative;
}
.mz-brand-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: #ff8c2a;
  text-shadow: 0 0 12px rgba(255,140,42,0.35), 1px 1px 0 rgba(0,0,0,0.5);
  line-height: 1.1;
}
.mz-badge {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ff8c2a;
  opacity: 0.5;
  margin-top: 2px;
}
.mz-line {
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,140,42,0.3), transparent);
  margin: 4px auto 0;
}

/* --- HM-2: warm amber burn --- */
.brand-plate-hm2 {
  border: 1px solid rgba(232,166,52,0.12);
  border-radius: 3px;
  padding: 6px 4px 4px;
}
.hm2-brand-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--amber);
  text-shadow: 0 0 12px rgba(232,166,52,0.35), 1px 1px 0 rgba(0,0,0,0.5);
  line-height: 1.1;
}
.hm2-badge {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--amber);
  opacity: 0.5;
  margin-top: 2px;
}
.hm2-line {
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,166,52,0.3), transparent);
  margin: 4px auto 0;
}

/* --- RECTIFIER: Mesa Boogie style --- */
.brand-plate-rect {
  background: linear-gradient(180deg, rgba(180,20,20,0.1) 0%, transparent 100%);
  border: 1px solid rgba(180,20,20,0.15);
  border-radius: 3px;
  padding: 6px 4px 4px;
}
.rect-brand-mesa {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #d44;
  text-shadow: 0 0 8px rgba(220,60,60,0.3);
}
.rect-brand-boogie {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: #ff6b6b;
  text-shadow: 0 0 14px rgba(255,80,80,0.35), 1px 1px 0 rgba(0,0,0,0.5);
  line-height: 1;
  margin: -1px 0 2px;
}
.rect-model {
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #864;
  border-top: 1px solid rgba(180,20,20,0.15);
  padding-top: 3px;
}

/* --- NS: clean blue technical --- */
.brand-plate-ns {
  border: 1px solid rgba(68,136,204,0.12);
  border-radius: 3px;
  padding: 6px 4px 4px;
}
.ns-brand-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: #6aafef;
  text-shadow: 0 0 12px rgba(100,160,240,0.3), 1px 1px 0 rgba(0,0,0,0.5);
  line-height: 1.1;
}
.ns-badge {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #6aafef;
  opacity: 0.5;
  margin-top: 2px;
}
.ns-line {
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(68,136,204,0.3), transparent);
  margin: 4px auto 0;
}

/* --- CAB: Torpedo style --- */
.brand-plate-cab {
  padding: 4px;
}
.cab-grille-icon {
  margin-bottom: 3px;
  opacity: 0.6;
}
.cab-grille-icon svg {
  display: block;
  margin: 0 auto;
}
.cab-brand {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #c4a56a;
  text-shadow: 0 0 8px rgba(196,165,106,0.2);
}
.cab-model {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: #e8c878;
  text-shadow: 0 0 12px rgba(232,200,120,0.3), 1px 1px 0 rgba(0,0,0,0.5);
  line-height: 1;
  letter-spacing: 3px;
}

/* === ROTARY KNOBS === */
.pedal-knobs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.knob-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 54px;
}
.knob-label {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  color: #666;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.knob {
  position: relative;
  width: 48px;
  height: 48px;
  /* Rotation applied via CSS custom property */
  transform: rotate(var(--knob-angle, -135deg));
}
.knob-body {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, #333 0%, #666 25%, #444 50%, #222 75%, #333 100%);
  border: 2px solid #555;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,255,255,0.08);
  position: relative;
  cursor: grab;
  transition: transform 0.1s;
}
.knob-body:hover {
  transform: scale(1.05);
}
.knob-body:active {
  cursor: grabbing;
}
.knob-indicator {
  position: absolute;
  width: 2px;
  height: 14px;
  background: #fff;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(255,255,255,0.5);
}
.knob-input {
  display: none;
}
.knob-value {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--amber);
  text-align: center;
  min-height: 12px;
}

/* Select inside pedal (Cab type) */
.knob-select-wrap {
  width: 100%;
}
.knob-select-wrap .fx-select {
  width: 100%;
  font-size: 9px;
  padding: 3px 4px;
}

/* === FOOTSWITCH === */
.footswitch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #666, #bbb, #888, #ccc, #777, #aaa, #666);
  border: none;
  cursor: pointer;
  padding: 3px;
  margin-top: auto;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.1);
  transition: all 0.15s;
  position: relative;
}
.footswitch:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.5), 0 0 10px rgba(255,107,43,0.2), inset 0 1px 1px rgba(255,255,255,0.1);
}
.footswitch:active {
  transform: scale(0.93);
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.footswitch-cap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #3a3a3a, #151515 70%);
  border: 1px solid #555;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.04), inset 0 -2px 4px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pedal.active .footswitch {
  box-shadow: 0 3px 10px rgba(0,0,0,0.5), 0 0 14px rgba(255,107,43,0.25), inset 0 1px 1px rgba(255,255,255,0.1);
}
.pedal.active .footswitch-cap {
  border-color: var(--accent);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.04), inset 0 -2px 4px rgba(0,0,0,0.3), 0 0 6px rgba(255,107,43,0.15);
}
/* Per-pedal footswitch accent */
.pedal[data-pedal="gate"].active .footswitch-cap { border-color: #8af; }
.pedal[data-pedal="ts"].active .footswitch-cap { border-color: #4ade80; }
.pedal[data-pedal="mz"].active .footswitch-cap { border-color: #ff8c2a; }
.pedal[data-pedal="hm2"].active .footswitch-cap { border-color: var(--amber); }
.pedal[data-pedal="rect"].active .footswitch-cap { border-color: #ff6b6b; }
.pedal[data-pedal="ns"].active .footswitch-cap { border-color: #4488cc; }
.pedal[data-pedal="cab"].active .footswitch-cap { border-color: #e8c878; }

/* Footswitch power icon */
.fs-icon {
  width: 16px;
  height: 16px;
  color: #333;
  transition: color 0.2s, filter 0.2s;
  display: block;
  margin: auto;
}
.pedal.active .fs-icon {
  color: var(--accent);
  filter: drop-shadow(0 0 3px rgba(255,107,43,0.5));
}
.pedal[data-pedal="gate"].active .fs-icon { color: #8af; filter: drop-shadow(0 0 3px rgba(136,170,255,0.5)); }
.pedal[data-pedal="ts"].active .fs-icon { color: #4ade80; filter: drop-shadow(0 0 3px rgba(74,222,128,0.5)); }
.pedal[data-pedal="mz"].active .fs-icon { color: #ff8c2a; filter: drop-shadow(0 0 3px rgba(255,140,42,0.5)); }
.pedal[data-pedal="hm2"].active .fs-icon { color: var(--amber); filter: drop-shadow(0 0 3px rgba(232,166,52,0.5)); }
.pedal[data-pedal="rect"].active .fs-icon { color: #ff6b6b; filter: drop-shadow(0 0 3px rgba(255,80,80,0.5)); }
.pedal[data-pedal="ns"].active .fs-icon { color: #4488cc; filter: drop-shadow(0 0 3px rgba(68,136,204,0.5)); }
.pedal[data-pedal="cab"].active .fs-icon { color: #e8c878; filter: drop-shadow(0 0 3px rgba(232,200,120,0.5)); }

/* === FX SELECT === */
.fx-select {
  background: #0a0a0a;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.fx-select:focus { border-color: var(--accent); }


/* === RECORDING OVERLAY === */
.rec-overlay {
  position: fixed;
  bottom: var(--transport-h);
  left: 0; right: 0;
  background: rgba(10,10,10,0.95);
  border-top: 1px solid var(--border-warm);
  backdrop-filter: blur(10px);
  z-index: 20;
  animation: slide-up 0.2s ease-out;
}
@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.rec-overlay-inner {
  padding: 12px 20px;
}
.rec-overlay-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.rec-overlay-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
}
.rec-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.rec-overlay-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 18px;
  width: 28px; height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rec-overlay-close:hover { color: var(--red); border-color: var(--red); }
.rec-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #111;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.rec-btn:hover { background: rgba(239,68,68,0.1); }
.rec-btn.active {
  background: var(--red);
  color: white;
  animation: pulse-rec 1.5s infinite;
}
@keyframes pulse-rec {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
.rec-timer {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.rec-status {
  font-size: 11px;
  color: var(--text-muted);
}
.rec-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rec-tracks-info { display: flex; gap: 8px; }
.rec-track-badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 3px;
  border: 1px solid;
}
.mic-badge { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.sys-badge { color: var(--teal); border-color: var(--teal); background: rgba(6,214,160,0.1); }
.rec-capture-row { display: flex; align-items: center; gap: 10px; }
.rec-capture-btn {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  background: #0a0a0a;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.rec-capture-btn:hover { background: rgba(6,214,160,0.1); }
.rec-capture-btn.active {
  background: var(--teal);
  color: #0a0a0f;
}
.rec-capture-status {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-muted);
}

/* === RECORDINGS PANEL === */
.rec-panel {
  background: var(--surface);
  border-top: 1px solid var(--border-warm);
  flex-shrink: 0;
  max-height: 300px;
  overflow: hidden;
}
.rec-panel.collapsed .rec-panel-body { display: none; }
.rec-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
  background: linear-gradient(180deg, #151515 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
}
.rec-panel-controls { display: flex; align-items: center; gap: 10px; }
.rec-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
}
.rec-panel-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  width: 24px; height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(180deg);
  transition: all 0.2s;
}
.rec-panel-toggle:hover { color: var(--accent); border-color: var(--accent); }
.rec-panel.collapsed .rec-panel-toggle { transform: rotate(0deg); }
.rec-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: #222 transparent;
}
.rec-list { display: flex; flex-direction: column; gap: 8px; }
.rec-empty {
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
  padding: 16px;
}

/* Recording item styles */
.rec-item {
  background: #111;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.rec-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}
.rec-item-name { font-size: 11px; font-weight: 600; color: var(--text-primary); flex: 1; }
.rec-item-dur { font-family: var(--mono); font-size: 10px; color: var(--text-muted); }
.rec-item-btn {
  font-family: var(--mono);
  font-size: 9px;
  padding: 3px 8px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
}
.rec-item-btn:hover { color: var(--accent); border-color: var(--accent); }
.rec-item-btn.active { color: var(--green); border-color: var(--green); }
.rec-item-btn.export-wav { color: var(--amber); border-color: var(--amber); }
.rec-item-btn.export-wav:hover { background: var(--amber-dim); }
.rec-item-btn.delete-btn { color: var(--red); border-color: var(--red); }
.rec-item-btn.delete-btn:hover { background: rgba(239,68,68,0.1); }
.rec-player-body { padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.rec-waveform-container {
  position: relative;
  height: 50px;
  background: #0a0a0a;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}
.rec-waveform-container canvas { width: 100%; height: 100%; display: block; }
.rec-playhead {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--red);
  left: 0;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(239,68,68,0.5);
}
.rec-time-display {
  position: absolute;
  bottom: 2px; right: 6px;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,0.4);
}
.rec-tracks { display: flex; flex-direction: column; gap: 4px; }
.rec-track-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: var(--surface);
  border-radius: 4px;
  border: 1px solid var(--border);
}
.rec-track-label { font-family: var(--mono); font-size: 9px; font-weight: 600; min-width: 60px; }
.rec-track-label.mic-label-color { color: var(--accent); }
.rec-track-label.sys-label-color { color: var(--teal); }
.rec-track-vol { flex: 1; max-width: 120px; }
.rec-mute-btn, .rec-solo-btn, .rec-export-btn {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  color: var(--text-muted);
}
.rec-mute-btn:hover { border-color: var(--amber); color: var(--amber); }
.rec-mute-btn.muted { background: var(--amber); color: #0a0a0f; border-color: var(--amber); }
.rec-solo-btn:hover { border-color: var(--green); color: var(--green); }
.rec-solo-btn.soloed { background: var(--green); color: #0a0a0f; border-color: var(--green); }
.rec-export-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.rec-export-label { font-family: var(--mono); font-size: 9px; color: var(--text-muted); }

/* === TRANSPORT === */
.transport {
  height: var(--transport-h);
  background: linear-gradient(180deg, #131313 0%, #0a0a0a 100%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -1px 0 rgba(255,107,43,0.08), 0 -4px 16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
  flex-shrink: 0;
  z-index: 10;
}
.transport-left { display: flex; gap: 8px; }
.t-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.t-btn svg { width: 16px; height: 16px; }
.t-btn-power {
  background: #151515;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.t-btn-power:hover { color: var(--green); border-color: var(--green); }
.t-btn-power.active {
  background: var(--green);
  color: #0a0a0f;
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(74,222,128,0.3);
}
.t-btn-monitor {
  background: #151515;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.t-btn-monitor:hover { color: var(--accent); border-color: var(--accent); }
.t-btn-monitor.active { background: var(--accent); color: white; border-color: var(--accent); }
.t-btn-rec {
  background: #151515;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.t-btn-rec:hover { color: var(--red); border-color: var(--red); }
.t-btn-rec.active { background: var(--red); color: white; border-color: var(--red); animation: pulse-rec 1.5s infinite; }
.transport-center {
  flex: 1;
  display: flex;
  gap: 24px;
  justify-content: center;
}
.master-section {
  display: flex;
  align-items: center;
  gap: 8px;
}
.master-label {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.master-slider { width: 120px; }
.master-val {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-secondary);
  min-width: 42px;
}
.transport-right { display: flex; align-items: center; }
.kbd-hint {
  font-size: 9px;
  color: #333;
  letter-spacing: 0.5px;
}

/* === RANGE INPUTS === */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255,107,43,0.3);
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* === AD BANNERS (AdSense) === */
.ad-banner {
  flex-shrink: 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #0e0e0e 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
  min-height: 50px;
  max-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-banner-top {
  border-top: none;
}
.ad-banner-bottom {
  border-top: 1px solid var(--border);
  border-bottom: none;
}
.ad-banner ins {
  width: 100%;
  max-width: 728px;
}
/* Hide ad banners until AdSense loads (prevents empty space if no ads) */
.ad-banner:empty { display: none; }

/* === SAVE / DELETE MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.15s ease-out;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-box {
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  border: 1px solid #333;
  border-radius: 10px;
  width: 360px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(255,107,43,0.05);
  animation: modal-scale-in 0.2s ease-out;
  overflow: hidden;
}
.modal-box-sm { width: 300px; }
@keyframes modal-scale-in {
  from { transform: scale(0.92) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #222;
  background: rgba(0,0,0,0.3);
}
.modal-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
}
.modal-close {
  background: none;
  border: 1px solid #333;
  color: var(--text-muted);
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.modal-close:hover { color: var(--red); border-color: var(--red); }
.modal-body {
  padding: 18px;
}
.modal-label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.modal-input {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-input::placeholder { color: #444; }
.modal-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,107,43,0.15), 0 0 20px rgba(255,107,43,0.05);
}
.modal-hint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
  min-height: 14px;
}
.modal-hint.overwrite { color: var(--amber); }
.modal-text {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.modal-text span { color: var(--accent); font-weight: 700; }
.modal-subtext {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #222;
  background: rgba(0,0,0,0.2);
}
.modal-btn {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid;
}
.modal-btn-cancel {
  background: transparent;
  border-color: #333;
  color: var(--text-muted);
}
.modal-btn-cancel:hover { color: var(--text-secondary); border-color: #555; }
.modal-btn-save {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.modal-btn-save:hover { background: #ff8040; box-shadow: 0 0 14px rgba(255,107,43,0.3); }
.modal-btn-delete {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.modal-btn-delete:hover { background: #f55; box-shadow: 0 0 14px rgba(239,68,68,0.3); }

/* === POWER HINT (START indicator) === */
.power-hint-wrap {
  position: relative;
}
.power-hint {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: power-hint-pulse 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 20;
}
.power-hint-text {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--green);
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 4px;
  padding: 4px 10px;
  text-shadow: 0 0 8px rgba(74,222,128,0.4);
}
.power-hint-arrow {
  font-size: 10px;
  color: var(--green);
  line-height: 1;
  transform: rotate(-90deg);
}
@keyframes power-hint-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
/* Also pulse the power button when idle */
.t-btn-power:not(.active) {
  animation: power-btn-breathe 2.5s ease-in-out infinite;
}
@keyframes power-btn-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); border-color: var(--border); }
  50% { box-shadow: 0 0 12px rgba(74,222,128,0.2); border-color: rgba(74,222,128,0.4); }
}

/* === DRAG & DROP PEDAL REORDER === */
.pedal {
  cursor: grab;
}
.pedal:active {
  cursor: grabbing;
}
.pedal .knob, .pedal .knob-body, .pedal .footswitch, .pedal select, .pedal .whammy-mode-option {
  cursor: auto;
}
.pedal .knob-body { cursor: grab; }
.pedal .footswitch { cursor: pointer; }
.pedal select { cursor: pointer; }
.pedal .whammy-mode-option { cursor: pointer; }

.pedal.dragging {
  opacity: 0.25 !important;
  transform: scale(0.96);
  transition: opacity 0.15s, transform 0.15s;
}
/* Ghost clone that follows mouse */
.pedal-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.85;
  transform: rotate(2deg) scale(1.04);
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.6)) drop-shadow(0 0 20px rgba(255,107,43,0.15));
  transition: transform 0.1s;
  cursor: grabbing;
  border-radius: var(--radius);
  overflow: hidden;
}

/* === CONNECTOR LINES between pedals === */
.pedal + .pedal::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  width: 8px;
  height: 2px;
  background: linear-gradient(90deg, #333, #555, #333);
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(255,107,43,0.1);
  z-index: 2;
}

/* === ANIMATIONS === */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* === RESPONSIVE: LARGE SCREENS (1440p+) === */
@media (min-width: 1400px) {
  .pedal-rack {
    flex-wrap: wrap;
    align-content: center;
  }
}

@media (min-width: 1600px) {
  :root { --header-h: 58px; --transport-h: 62px; }
  .top-row { height: 185px; max-height: 185px; }
  .guitar-svg { width: 60px; height: 200px; }
  .speaker-svg { width: 80px; height: 175px; }
  .signal-cable { width: 40px; }
  .pedal-enclosure { width: 178px; min-height: 290px; padding: 16px; gap: 8px; }
  .pedal-whammy { width: 228px !important; }
  .pedal-rack { gap: 18px; padding: 24px 20px; }
  .knob, .knob-body { width: 54px; height: 54px; }
  .knob-indicator { height: 16px; }
  .knob-label { font-size: 8px; }
  .knob-value { font-size: 10px; }
  .knob-group { min-width: 58px; }
  .footswitch { width: 50px; height: 50px; }
  /* pedal brand sizes handled by brand-plate rules */
  .pedal-led { width: 9px; height: 9px; }
  .brand { font-size: 26px; }
  .brand-icon { width: 30px; height: 30px; }
  .timer { font-size: 16px; }
  .status-label { font-size: 11px; }
  .preset-select { font-size: 12px; }
  .header-btn { font-size: 11px; }
  .signal-chain-label { font-size: 12px; }
  .bypass-all-btn { font-size: 11px; padding: 5px 16px; }
  .t-btn { width: 40px; height: 40px; }
  .master-slider { width: 140px; }
  .master-label { font-size: 10px; }
  .master-val { font-size: 11px; }
  .tuner-target-note { font-size: 32px; }
  #gtrTunerGauge { width: 160px; height: 75px; }
  .tuner-string-btn { width: 26px; height: 26px; font-size: 9px; }
  .viz-btn { font-size: 10px; padding: 4px 10px; }
  .db-readout { font-size: 11px; }
  .vu-meter-vertical { width: 28px; }
  /* Whammy DT overrides */
  .pedal-whammy .knob, .pedal-whammy .knob-body { width: 42px; height: 42px; }
  .pedal-whammy .knob-indicator { height: 12px; }
  .whammy-logo-text { font-size: 26px; }
  .whammy-logo-sub { font-size: 18px; }
  .whammy-mode-option span { font-size: 9px; }
  .whammy-modes-panel { min-width: 90px; }
  /* Brand plates */
  .gate-brand-main { font-size: 12px; }
  .ts-brand-script { font-size: 18px; }
  .mz-brand-name { font-size: 16px; }
  .hm2-brand-name { font-size: 15px; }
  .rect-brand-mesa { font-size: 14px; }
  .rect-brand-boogie { font-size: 20px; }
  .ns-brand-name { font-size: 12px; }
  .cab-model { font-size: 18px; }
  /* boss strip removed */
  .fs-icon { width: 18px; height: 18px; }
}

@media (min-width: 2200px) {
  :root { --header-h: 68px; --transport-h: 72px; }
  body { font-size: 15px; }
  .top-row { height: 230px; max-height: 230px; }
  .guitar-svg { width: 75px; height: 250px; }
  .speaker-svg { width: 100px; height: 220px; }
  .signal-cable { width: 50px; }
  .endpoint-label { font-size: 10px; }
  .pedal-enclosure { width: 210px; min-height: 340px; padding: 20px; gap: 10px; }
  .pedal-whammy { width: 270px !important; }
  .pedal-rack { gap: 24px; padding: 32px 28px; }
  .knob, .knob-body { width: 64px; height: 64px; }
  .knob-indicator { height: 19px; top: 5px; width: 2.5px; }
  .knob-label { font-size: 9px; letter-spacing: 2px; }
  .knob-value { font-size: 12px; }
  .knob-group { gap: 4px; min-width: 66px; }
  .pedal-knobs { gap: 10px; }
  .footswitch { width: 56px; height: 56px; }
  /* pedal brand sizes handled by brand-plate rules */
  .pedal-led { width: 10px; height: 10px; top: 14px; right: 16px; }
  .brand { font-size: 32px; }
  .brand-icon { width: 36px; height: 36px; }
  .header { padding: 0 28px; gap: 24px; }
  .timer { font-size: 18px; }
  .status-label { font-size: 12px; }
  .sample-rate { font-size: 12px; }
  .preset-select { font-size: 13px; padding: 7px 14px; max-width: 340px; }
  .header-btn { font-size: 12px; padding: 7px 16px; }
  .signal-chain-label { font-size: 13px; }
  .bypass-all-btn { font-size: 13px; padding: 7px 20px; }
  .pedalboard-header { padding: 10px 24px; }
  .t-btn { width: 44px; height: 44px; }
  .t-btn svg { width: 20px; height: 20px; }
  .master-slider { width: 160px; }
  .master-label { font-size: 11px; }
  .master-val { font-size: 12px; min-width: 50px; }
  .transport { padding: 0 28px; gap: 24px; }
  .tuner-target-note { font-size: 38px; }
  #gtrTunerGauge { width: 180px; height: 85px; }
  .tuner-string-btn { width: 30px; height: 30px; font-size: 10px; }
  .tuner-freq-display { font-size: 11px; }
  .tuner-cents-display { font-size: 10px; }
  .viz-btn { font-size: 11px; padding: 5px 12px; }
  .db-readout { font-size: 13px; }
  .vu-meter-vertical { width: 32px; }
  .meter-label, .peak-label { font-size: 9px; }
  .peak-reset { font-size: 10px; padding: 3px 10px; }
  /* Whammy DT */
  .pedal-whammy .knob, .pedal-whammy .knob-body { width: 48px; height: 48px; }
  .pedal-whammy .knob-indicator { height: 14px; }
  .whammy-logo-text { font-size: 30px; }
  .whammy-logo-sub { font-size: 20px; }
  .whammy-logo-digitech { font-size: 8px; }
  .whammy-mode-option span { font-size: 10px; }
  .whammy-mode-led { width: 7px; height: 7px; }
  .whammy-modes-panel { padding: 8px 12px; min-width: 105px; }
  .whammy-panel-title { font-size: 8px; }
  .whammy-logo-panel { min-height: 110px; padding: 10px 8px; }
  /* Brand plates */
  .gate-brand-main { font-size: 14px; letter-spacing: 4px; }
  .gate-brand-top { font-size: 8px; }
  .ts-brand-script { font-size: 22px; }
  .ts-brand-ibanez { font-size: 12px; }
  .mz-brand-name { font-size: 18px; }
  .hm2-brand-name { font-size: 17px; }
  .rect-brand-mesa { font-size: 16px; letter-spacing: 8px; }
  .rect-brand-boogie { font-size: 24px; }
  .rect-model { font-size: 7px; }
  .ns-brand-name { font-size: 14px; }
  .cab-brand { font-size: 11px; }
  .cab-model { font-size: 22px; }
  /* boss strip removed */
  .fs-icon { width: 20px; height: 20px; }
}

@media (min-width: 3000px) {
  :root { --header-h: 84px; --transport-h: 88px; }
  body { font-size: 18px; }
  .top-row { height: 280px; max-height: 280px; }
  .guitar-svg { width: 95px; height: 320px; }
  .speaker-svg { width: 125px; height: 280px; }
  .signal-cable { width: 65px; }
  .endpoint-label { font-size: 13px; letter-spacing: 3px; }
  .pedal-enclosure { width: 270px; min-height: 420px; padding: 26px; gap: 12px; }
  .pedal-whammy { width: 340px !important; }
  .pedal-rack { gap: 30px; padding: 40px 36px; }
  .knob, .knob-body { width: 80px; height: 80px; }
  .knob-indicator { height: 24px; top: 6px; width: 3px; }
  .knob-label { font-size: 11px; letter-spacing: 3px; }
  .knob-value { font-size: 14px; }
  .knob-group { gap: 6px; min-width: 80px; }
  .pedal-knobs { gap: 14px; }
  .footswitch { width: 68px; height: 68px; }
  .footswitch-cap { border-width: 2px; }
  /* pedal brand sizes handled by brand-plate rules */
  .pedal-led { width: 12px; height: 12px; top: 16px; right: 20px; }
  .brand { font-size: 40px; }
  .brand-icon { width: 46px; height: 46px; }
  .header { padding: 0 40px; gap: 32px; }
  .timer { font-size: 22px; }
  .status-dot { width: 10px; height: 10px; }
  .status-label { font-size: 14px; }
  .sample-rate { font-size: 14px; }
  .sep { height: 24px; }
  .preset-select { font-size: 15px; padding: 8px 16px; max-width: 420px; }
  .header-btn { font-size: 14px; padding: 8px 20px; }
  .signal-chain-label { font-size: 16px; }
  .bypass-all-btn { font-size: 15px; padding: 10px 26px; }
  .pedalboard-header { padding: 14px 32px; }
  .t-btn { width: 54px; height: 54px; }
  .t-btn svg { width: 26px; height: 26px; }
  .master-slider { width: 200px; height: 5px; }
  .master-label { font-size: 13px; }
  .master-val { font-size: 14px; min-width: 60px; }
  .transport { padding: 0 40px; gap: 32px; }
  .kbd-hint { font-size: 12px; }
  .tuner-target-note { font-size: 48px; }
  .guitar-tuner-inner { padding: 10px; gap: 4px; }
  #gtrTunerGauge { width: 220px; height: 100px; }
  .tuner-string-btn { width: 36px; height: 36px; font-size: 12px; }
  .tuner-strings { gap: 4px; }
  .tuner-freq-display { font-size: 13px; }
  .tuner-cents-display { font-size: 12px; }
  .tuner-string-name { font-size: 12px; }
  .tuner-mode-row label { font-size: 10px; }
  .tuner-mode-row .fx-select { font-size: 12px; padding: 4px 6px; max-width: 160px; }
  .viz-btn { font-size: 13px; padding: 6px 14px; }
  .viz-modes { top: 10px; right: 10px; gap: 5px; }
  .panel-label { font-size: 11px; padding: 8px 14px; letter-spacing: 3px; }
  .db-readout { font-size: 16px; }
  .vu-meter-vertical { width: 38px; }
  .meter-label, .peak-label { font-size: 10px; }
  .peak-reset { font-size: 12px; padding: 4px 14px; }
  .meters-inner { padding: 10px; gap: 4px; }
  /* Whammy DT */
  .pedal-whammy .knob, .pedal-whammy .knob-body { width: 60px; height: 60px; }
  .pedal-whammy .knob-indicator { height: 18px; }
  .whammy-logo-text { font-size: 40px; }
  .whammy-logo-sub { font-size: 26px; }
  .whammy-logo-digitech { font-size: 10px; letter-spacing: 5px; }
  .whammy-mode-option span { font-size: 12px; letter-spacing: 1.5px; }
  .whammy-mode-option { padding: 5px 4px; gap: 8px; }
  .whammy-mode-led { width: 9px; height: 9px; }
  .whammy-modes-panel { padding: 10px 14px; min-width: 130px; }
  .whammy-panel-title { font-size: 10px; margin-bottom: 6px; padding-bottom: 5px; }
  .whammy-logo-panel { min-height: 140px; padding: 14px 10px; }
  .whammy-top { gap: 10px; }
  /* Brand plates */
  .gate-brand-main { font-size: 18px; letter-spacing: 5px; }
  .gate-brand-top { font-size: 10px; letter-spacing: 6px; }
  .gate-brand-model { font-size: 8px; }
  .ts-brand-script { font-size: 28px; }
  .ts-brand-ibanez { font-size: 14px; }
  .ts-badge { font-size: 10px; padding: 2px 8px; }
  .mz-brand-name { font-size: 22px; }
  .mz-badge { font-size: 11px; }
  .hm2-brand-name { font-size: 20px; }
  .hm2-badge { font-size: 11px; }
  .rect-brand-mesa { font-size: 20px; letter-spacing: 10px; }
  .rect-brand-boogie { font-size: 30px; }
  .rect-model { font-size: 9px; letter-spacing: 4px; }
  .ns-brand-name { font-size: 17px; }
  .ns-badge { font-size: 11px; }
  .cab-brand { font-size: 13px; letter-spacing: 5px; }
  .cab-model { font-size: 28px; }
  .cab-grille-icon svg { width: 56px; height: 56px; }
  /* boss strip removed */
  .brand-plate-gate { padding: 8px 6px 6px; }
  .brand-plate-rect { padding: 8px 6px 6px; }
  .fs-icon { width: 24px; height: 24px; }
  /* Rec overlay */
  .rec-overlay-title { font-size: 13px; }
  .rec-timer { font-size: 20px; }
  .rec-btn { width: 40px; height: 40px; font-size: 11px; }
}

/* === RESPONSIVE: 1200px (tablets / narrow) === */
@media (max-width: 1200px) {
  .signal-endpoint { display: none; }
  .signal-cable { display: none; }
  .pedal-rack {
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
  }
  .top-row {
    height: auto;
    max-height: none;
    flex-wrap: wrap;
  }
  .tuner-panel { width: 50%; height: 140px; order: 2; }
  .viz-panel { width: 100%; height: 100px; flex: unset; order: 1; }
  .meter-panel { width: 50%; height: 140px; order: 3; }
  .vu-meter-vertical {
    flex-direction: row;
    width: 100%;
    height: 18px;
    min-height: unset;
  }
}

/* === RESPONSIVE: 768px (mobile) === */
@media (max-width: 768px) {
  .top-row { flex-direction: column; height: auto; max-height: none; }
  .tuner-panel, .viz-panel, .meter-panel { width: 100%; height: auto; }
  .viz-panel { height: 80px; }
  .header-center { display: none; }
  .pedal-rack {
    gap: 8px;
    padding: 12px 8px;
  }
  .pedal-enclosure {
    width: 140px;
    min-height: 240px;
    padding: 10px;
  }
  .pedal-whammy { width: 170px !important; }
  .whammy-top { flex-direction: column; }
  .whammy-logo-panel { min-height: 60px; }
  .whammy-logo-text { font-size: 18px; }
  .whammy-logo-sub { font-size: 12px; }
  .knob-body, .knob { width: 40px; height: 40px; }
  .knob-indicator { height: 12px; }
  .footswitch { width: 38px; height: 38px; }
  .transport-center { display: none; }
}
