/* © DJFuturo Tools. Todos los derechos reservados. */
/* === TONE GENERATOR === */

/* === BASE === */
.djf-tonegen-v1 {
  position: relative;
  width: 100%;
  max-width: none !important;
  margin: 18px auto;
  color: #222;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === HEADER === */
.djf-tg-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

/* === TOOL TITLE / BADGE (header) === */
.djf-tool-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 2px 8px 2px 2px;
  background: linear-gradient(135deg, rgba(248, 208, 88, 0.5), transparent);
  border-radius: 30px;
}

.djf-tool-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd95a 0%, #f8c040 100%);
  border: 2px solid #f0b830;
  box-shadow:
    0 2px 8px rgba(248, 208, 88, 0.25),
    0 0 0 3px rgba(248, 208, 88, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.djf-tool-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.djf-tool-title h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

/* === BOTONES BASE === */
.djf-btn {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid #d0d0d0;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 1px 3px rgba(0,0,0,0.08);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  transition: all 0.15s ease;
  font-family: inherit;
}

.djf-btn:hover {
  background: linear-gradient(180deg, #fafbfc, #f1f3f5);
  border-color: #bbb;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 2px 4px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.djf-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15) inset;
  background: linear-gradient(180deg, #f1f3f5, #e9ecef);
}

.djf-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #999;
  box-shadow: none;
  transform: none;
}

.djf-btn-sm {
  padding: 5px 10px;
  min-width: 32px;
  font-size: 12px;
}

/* === BOTÓN PLAY/START === */
.djf-btn-start {
  width: 65px;
  height: 65px;
  min-width: 65px;
  border-radius: 50% !important;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0a800;
  background: linear-gradient(180deg, #fff9e5 0%, #f8c040 100%);
  /* background: linear-gradient(180deg, #ffd95a 0%, #f8c040 100%); */
  color: #1a1a1a;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 2px 6px rgba(248, 208, 88, 0.35);
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.djf-btn-start:hover {
 /* background: linear-gradient(180deg, #ffe170, #f8cc50); */
  background: linear-gradient(210deg, #fff, #f8c040);
  border-color: #d09000;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 3px 10px rgba(248, 208, 88, 0.5);
}

.djf-btn-start.active {
  background: linear-gradient(180deg, #f8c040, #e8a800);
  border-color: #c08000;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.15) inset,
    0 0 0 3px rgba(248, 208, 88, 0.3);
}

/* === FEEDBACK === */
.djf-feedback {
  margin-top: 4px;
  font-size: 13px;
  color: #888;
  min-height: 18px;
  text-align: center;
}

/* === CUERPO PRINCIPAL === */
.djf-tg-body {
  background: linear-gradient(180deg, #fbfbfb, #f3f6f9);
  box-shadow: 0 6px 18px rgba(20,30,50,0.06);
  border-radius: 12px;
  padding: 2px 24px 2px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
 /* max-width: 480px; */
  margin: 0 auto;
  box-sizing: border-box;
}

/* === DISPLAY FRECUENCIA === */
.djf-tg-freq-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.djf-tg-freq-display {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.djf-tg-freq-display #djf-tg-freq-input {
  justify-self: center;
  grid-column: 2;
}

.djf-tg-freq-display .djf-tg-freq-right {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 3;
}

.djf-tg-freq-display-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.djf-tg-freq-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-family: inherit;
}

.djf-tg-freq-ghost .djf-tg-freq-decimals {
  font-weight: 400;
  font-size: 0.65em;
  opacity: 0.7;
  vertical-align: baseline;
}

.djf-tg-freq-display-wrap.editing .djf-tg-freq-ghost {
  display: none;
}

.djf-tg-freq-display-wrap:not(.editing) #djf-tg-freq-input {
  color: transparent;
  caret-color: transparent;
}

#djf-tg-freq-input.djf-tg-freq-editable {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  border: none !important;
  background: transparent !important;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0 !important;
  margin: 0;
  width: 9ch;
  box-shadow: none !important;
  border-radius: 0 !important;
}

#djf-tg-freq-input.djf-tg-freq-editable:focus {
  color: #e0a800;
  cursor: text;
}

.djf-tg-freq-unit {
  font-size: 14px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === FLECHAS FRECUENCIA === */
.djf-tg-freq-arrows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.djf-tg-freq-arrow {
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.2;
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  background: linear-gradient(180deg, #ffffff, #f8f9fa);
  cursor: pointer;
  color: #555;
  transition: all 0.1s ease;
  font-family: inherit;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.djf-tg-freq-arrow:hover {
  background: linear-gradient(180deg, #ffd95a, #f8c040);
  border-color: #e0a800;
  color: #1a1a1a;
}

.djf-tg-freq-arrow:active {
  transform: scale(0.94);
}

/* === SLIDER FRECUENCIA === */
.djf-tg-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.djf-tg-slider-row span {
  font-size: 12px;
  color: #999;
  font-weight: 500;
  min-width: 32px;
}

.djf-tg-slider-row span:last-child {
  text-align: right;
}

input[type="range"].djf-tg-freq-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  cursor: pointer;
  touch-action: pan-y;
}

input[type="range"].djf-tg-freq-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd95a 0%, #f8c040 100%);
  border: 2px solid #e0a800;
  box-shadow:
    0 2px 6px rgba(248, 208, 88, 0.5),
    0 0 0 3px rgba(248, 208, 88, 0.2);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

input[type="range"].djf-tg-freq-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow:
    0 3px 10px rgba(248, 208, 88, 0.6),
    0 0 0 4px rgba(248, 208, 88, 0.25);
}

input[type="range"].djf-tg-freq-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd95a 0%, #f8c040 100%);
  border: 2px solid #e0a800;
  box-shadow: 0 2px 6px rgba(248, 208, 88, 0.5);
  cursor: pointer;
}

input[type="range"].djf-tg-freq-slider:focus {
  outline: none;
}

/* === PLAY === */
.djf-tg-play-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* .djf-btn-start reutilizado tal cual del CSS común (círculo dorado) */

/* === FILA COMBINADA: VOLUMEN + BALANCE + ONDA === */
.djf-tg-controls-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  width: 100%;
}



/* === STACK VOLUMEN + BALANCE === */
.djf-tg-vol-balance-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.djf-tg-volume-row,
.djf-tg-balance-row {
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  align-items: center;
  gap: 8px;
}

/* === VOLUMEN === */
.djf-tg-volume-row span {
  font-size: 15px;
  flex-shrink: 0;
}

input[type="range"].djf-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 5px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  cursor: pointer;
  touch-action: pan-y;
}

input[type="range"].djf-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd95a, #f8c040);
  border: 2px solid #e0a800;
  box-shadow: 0 1px 4px rgba(248, 208, 88, 0.4);
  cursor: pointer;
}

input[type="range"].djf-vol-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd95a, #f8c040);
  border: 2px solid #e0a800;
  cursor: pointer;
}

/* === BALANCE (bipolar, centrado en 0) === */
.djf-tg-balance-side-btn {
  font-size: 12px;
  color: #999;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 12px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease;
}

.djf-tg-balance-side-btn:hover {
  color: #e0a800;
}

.djf-tg-balance-side-btn:active {
  transform: scale(0.9);
}

input[type="range"].djf-tg-balance-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 5px;
  border-radius: 3px;
  background: #e0e0e0;
  outline: none;
  cursor: pointer;
  touch-action: pan-y;
}

input[type="range"].djf-tg-balance-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd95a, #f8c040);
  border: 2px solid #e0a800;
  box-shadow: 0 1px 4px rgba(248, 208, 88, 0.4);
  cursor: pointer;
  margin-top: -0.5px;
}

input[type="range"].djf-tg-balance-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd95a, #f8c040);
  border: 2px solid #e0a800;
  cursor: pointer;
}

/* Marca central del balance (referencia visual de "centro") */
.djf-tg-balance-row {
  position: relative;
}


/* === BOTÓN CENTRAR BALANCE === */
.djf-tg-balance-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.djf-tg-balance-center-btn {
  position: relative;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 6px;
  border-radius: 50%;
  border: 1.5px solid #d0d0d0;
  background: linear-gradient(180deg, #ffffff, #f3f6f9);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: #999;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.djf-tg-balance-center-btn::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1.5px;
  height: 6px;
  background: #d0d0d0;
  transform: translateX(-50%);
}

.djf-tg-balance-center-btn:hover {
  border-color: #e0a800;
  background: linear-gradient(180deg, #fff9e6, #fff3cc);
  color: #1a1a1a;
}

.djf-tg-balance-center-btn:active {
  transform: scale(0.9);
}


/* === TIPOS DE ONDA === */
.djf-tg-waves {
  display: flex;
  align-items: center;
  width: auto;
}

.djf-tg-waves-label {
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.djf-tg-wave-pills {
  display: flex;
  gap: 6px;
  width: auto;
}

.djf-tg-wave-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  width: 70px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 2px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #777;
  font-family: inherit;
}

.djf-tg-wave-btn svg {
  width: 32px;
  height: 22px;
}

.djf-tg-wave-btn span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.djf-tg-wave-btn:hover {
  border-color: #bbb;
  background: #fafafa;
  color: #333;
}

.djf-tg-wave-btn.active {
  border-color: #f8d058;
  background: rgba(248, 208, 88, 0.1);
  color: #1a1a1a;
  box-shadow:
    0 0 0 2px #f8d058,
    0 0 0 4px rgba(248, 208, 88, 0.15);
}

/* === RESET (dentro de controls-row) === */
.djf-tg-reset-btn {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 11px;
}

/* === RESET ===
.djf-tg-reset-row {
  display: flex;
  justify-content: center;
  width: 100%;
} */

/* === BOTÓN DESCARGAR / COMPARTIR === */
.djf-tg-download-btn,
.djf-tg-share-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 11px;
}

.djf-tg-share-btn.copied {
  border-color: #e0a800;
  background: linear-gradient(180deg, #fff9e6, #fff3cc);
  color: #1a1a1a;
}

/* === BOTÓN NOTAS === */
.djf-tg-notes-btn {
  height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 92px;
  box-sizing: border-box;
}

.djf-tg-notes-btn.has-note {
  border-color: #f8d058;
 /* background: rgba(248, 208, 88, 0.1); */
  box-shadow:
    0 0 0 2px #f8d058,
    0 0 0 4px rgba(248, 208, 88, 0.15);
}

/* === OVERLAY === */
.djf-tg-notes-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.djf-tg-notes-overlay[hidden] {
  display: none;
}

.djf-tg-notes-panel {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 45px 20px 20px 20px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  box-sizing: border-box;
}

.djf-tg-notes-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #d0d0d0;
  background: #fff;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.djf-tg-notes-close:hover {
  background: #f5f5f5;
  border-color: #bbb;
  color: #1a1a1a;
}


/* === REJILLA DE NOTAS === */
.djf-tg-notes-octave-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.djf-tg-notes-octave-label {
  width: 22px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  text-align: center;
}

.djf-tg-notes-octave-notes {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
  flex: 1;
}

.djf-tg-note-btn {
  padding: 6px 0;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  background: #fafbfc;
  font-size: 10px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.djf-tg-note-btn.is-sharp {
  background: #2a2a2a;
  color: #ddd;
  border-color: #1a1a1a;
}

.djf-tg-note-btn:hover {
  border-color: #e0a800;
  background: linear-gradient(180deg, #ffd95a, #f8c040);
  color: #1a1a1a;
}

.djf-tg-note-btn.active-note {
  border-color: #e0a800;
  background: linear-gradient(180deg, #ffd95a, #f8c040);
  color: #1a1a1a;
  box-shadow: 0 0 0 2px rgba(248, 208, 88, 0.35);
}

.djf-tg-note-btn.empty {
  visibility: hidden;
  pointer-events: none;
}

/* === TOGGLE DE NOTACIÓN === */
.djf-tg-notation-toggle {
  position: absolute;
  top: 14px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.djf-tg-notation-label {
  font-size: 10px;
  color: #aaa;
  font-weight: 500;
  margin-right: 2px;
}

.djf-tg-notation-option {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 2px 3px 4px 3px;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.djf-tg-notation-option:hover {
  color: #555;
}

.djf-tg-notation-option.active {
  color: #1a1a1a;
  border-bottom-color: #f8d058;
}

.djf-tg-notation-sep {
  color: #ddd;
  font-size: 11px;
}

/* === ATAJOS DE FRECUENCIA === */
.djf-tg-freq-shortcuts {
  display: flex;
  align-items: center;
  gap: 6px;
}

.djf-tg-freq-shortcut-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  background: linear-gradient(180deg, #ffffff, #f3f6f9);
  font-size: 10px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.djf-tg-freq-shortcut-btn:hover {
  border-color: #e0a800;
  background: linear-gradient(180deg, #fff9e6, #fff3cc);
  color: #1a1a1a;
  box-shadow:
    0 0 0 3px rgba(248, 208, 88, 0.2),
    0 2px 8px rgba(248, 208, 88, 0.3);
}

.djf-tg-freq-shortcut-btn:active {
  transform: scale(0.94);
}

.djf-tg-freq-shortcut-btn.current-freq {
  border-color: #f8d058;
  background: linear-gradient(180deg, #ffffff, #f3f6f9);
  color: #1a1a1a;
  box-shadow:
    0 0 0 2px #f8d058,
    0 0 0 4px rgba(248, 208, 88, 0.15);
}

/* === TOGGLE SECUENCIADOR === */

.djf-tg-seq-toggle-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 11px;
}

.djf-tg-seq-toggle-btn.active {
  border-color: #f8d058;
  background: rgba(248, 208, 88, 0.1);
}

/* === PANEL SECUENCIADOR (inline) === */
.djf-tg-seq-panel {
  width: 100%;
  max-width: 480px;
  margin: 12px auto 0 auto;
  background: linear-gradient(180deg, #fbfbfb, #f3f6f9);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(20,30,50,0.06);
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.djf-tg-seq-panel[hidden] {
  display: none;
}

.djf-tg-seq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.djf-tg-seq-bpm-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.djf-tg-seq-bpm-input {
  width: 60px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #d0d0d0;
  font-size: 16px;
  font-family: inherit;
  text-align: center;
}

.djf-tg-seq-play-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  border: 1.5px solid #d0d0d0;
  background: linear-gradient(180deg, #ffffff, #f3f6f9);
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.djf-tg-seq-play-btn:hover {
  border-color: #e0a800;
  background: linear-gradient(180deg, #ffd95a, #f8c040);
  color: #1a1a1a;
}

.djf-tg-seq-play-btn.active {
  background: linear-gradient(180deg, #f8c040, #e8a800);
  border-color: #c08000;
}

.djf-tg-seq-textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  font-size: 13px;
  font-family: 'Inter', monospace;
  color: #333;
  resize: vertical;
  box-sizing: border-box;
}

.djf-tg-seq-textarea:focus {
  outline: none;
  border-color: #e0a800;
}

.djf-tg-seq-hint {
  font-size: 11px;
  color: #999;
  line-height: 1.5;
  white-space: pre-line;
}


/* === RESPONSIVE === */

@media (max-width: 949px) {
  .djf-tg-controls-row {
    flex-wrap: wrap;
    row-gap: 0;
  }

  /* Prioridad de "caída" a nueva línea cuando falta espacio:
     1º Secuenciador, 2º Descargar+Compartir, 3º Volumen+Balance.
     Ondas (sin order, valor 0 por defecto) siempre se queda en la fila principal. */

  .djf-tg-download-btn,
  .djf-tg-share-btn {
    order: 2;
  }

  .djf-tg-seq-toggle-btn {
    order: 3;
  }
}


@media (max-width: 669px) {
  .djf-tool-title h1 {
    font-size: 19px;
  }

  .djf-tool-badge {
    width: 36px;
    height: 36px;
  }
/*
  #djf-tg-freq-input.djf-tg-freq-editable {
    font-size: 38px;
  }

  .djf-tg-freq-unit {
    font-size: 13px;
  }
*/

  .djf-tg-body {
    padding: 2px 16px 2px 16px;
    gap: 18px;
  }

  .djf-tg-wave-btn span {
    font-size: 10px;
  }
}

@media (max-width: 495px) {
  .djf-tg-wave-btn {
    margin-bottom: 12px;
  }
  .djf-tg-vol-balance-stack {
    order: 1;
  }

.djf-tg-notes-panel{
padding: 45px 3px 10px 3px;
}

.djf-tg-notes-octave-label {
display: none;
}

djf-tg-notes-overlay { 
padding: 5px;
}
}

@media (max-width: 425px) {
  .djf-tg-play-row {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .djf-tg-freq-shortcuts {
    flex-basis: 100%;
    justify-content: center;
  }
}


@media (max-width: 400px) {

/*
  #djf-tg-freq-input.djf-tg-freq-editable {
    font-size: 32px;
  } */

  .djf-tg-body {
    padding: 2px 10px 2px 10px;
  }

  .djf-tg-wave-pills {
    gap: 3px;
  }

  .djf-tg-wave-btn {
    padding: 2px 2px 2px 2px;
    width: 65px;

  }
  .djf-tg-wave-btn svg {
  width: 27px;
  height: 20px;
}

.djf-tg-wave-btn span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.djf-tg-note-btn {
font-size: 9px;
}

.djf-tg-notes-overlay {
padding: 0;
}

}


@media (max-width: 360px) {
  .djf-tool-badge {
    width: 32px;
    height: 32px;
  }

  .djf-tool-title h1 {
    font-size: 16px;
  }

}

@media (max-width: 330px) {

.djf-tg-slider-row span {
  font-size: 10px;
}

.djf-tg-note-btn {
font-size: 8px;}

}

/* AD v1 */
.ad-slot--in-content {
    width: 100%;
    min-height: 100px;
    margin-bottom: 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


@media (max-width: 1009px) {
    .ad-slot--in-content {
        min-height: 0;
        margin-bottom: 0;
    }
}