/* CajonFlow: CSS consolidado; editar este modulo en futuras versiones. */

/* === Fuente integrada: parche-v19-8.css === */
/* CajonFlow V19.8 - un solo transporte visible y navegacion independiente.
 * No altera la composicion ni los estilos de Cajon tradicional.
 */
#reader#reader.song-mode:not(.accessory-inline):not([hidden]){
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 justify-content:flex-start!important;gap:.9rem!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 height:100dvh!important;min-height:0!important;
 scroll-padding-top:1rem;overscroll-behavior:contain!important;
}
#reader#reader.song-mode>.reader-song-sections:not([hidden]){
 display:grid!important;position:relative!important;inset:auto!important;
 flex:0 0 auto!important;z-index:auto!important;margin:0!important;
 width:100%!important;min-height:0!important;
}
#reader#reader.song-mode>#accessoryUnifiedTransport:not([hidden]){
 display:flex!important;position:relative!important;inset:auto!important;
 flex:0 0 auto!important;z-index:auto!important;
 width:100%!important;min-height:0!important;
 margin:0!important;padding:clamp(.75rem,1.3vw,1.1rem)!important;
}
#reader#reader.song-mode>#accessoryUnifiedTransport[hidden]{display:none!important;}
#reader#reader.song-mode>.reader-view-switch{flex:0 0 auto!important;margin:.2rem auto!important;position:relative!important;}
#reader#reader.song-mode>.reader-song-layout{
 flex:0 0 auto!important;position:relative!important;
 min-height:0!important;max-height:none!important;height:auto!important;
 overflow:visible!important;margin:0!important;
}
#reader#reader.song-mode .reader-score-module,
#reader#reader.song-mode .reader-practice-module{
 min-height:0!important;height:auto!important;max-height:none!important;
 overflow:visible!important;
}
#reader#reader.song-mode .reader-score-module .reader-cards{
 height:auto!important;max-height:none!important;min-height:0!important;
 grid-template-rows:auto!important;overflow:visible!important;
}
#reader#reader.song-mode .reader-score-module .reader-card{min-height:9rem!important;}
/* El antiguo lector no debe crear un segundo conjunto de botones. */
#reader#reader.song-mode .reader-quick-transport,
#reader#reader.song-mode .reader-practice-module .reader-tempo-row{display:none!important;}
#reader#reader.song-mode .reader-practice-module .reader-bottom{display:none!important;}
#reader#reader.accessory-inline .reader-quick-transport{display:none!important;}
#reader#reader.accessory-inline #accessoryUnifiedTransport[hidden]{display:none!important;}
@media(max-width:760px){
 #reader#reader.song-mode:not(.accessory-inline):not([hidden]){gap:.7rem!important;}
 #reader#reader.song-mode>#accessoryUnifiedTransport:not([hidden]){gap:.65rem!important;}
 #reader#reader.song-mode>.reader-song-sections:not([hidden]){padding:0!important;}
}


/* === Fuente integrada: parche-v19-8-1.css === */
/* CajonFlow V19.8.1: reparacion de vista de canciones y transporte responsive.
   Complementa V19.8 sin tocar animaciones, transportes ni el editor tradicional. */
#reader#reader.song-mode:not(.accessory-inline):not([hidden]){
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:clamp(.65rem,1.3vw,1.15rem)!important;overflow-x:hidden!important;overflow-y:auto!important;
  scroll-padding-top:1rem!important;box-sizing:border-box!important;
}
#reader#reader.song-mode>.reader-top,
#reader#reader.song-mode>.reader-song-sections,
#reader#reader.song-mode>.reader-view-switch,
#reader#reader.song-mode>.reader-song-layout{
  width:100%!important;max-width:1320px!important;flex-shrink:0!important;
  margin-left:auto!important;margin-right:auto!important;min-width:0!important;
}
#reader#reader.song-mode .reader-top{display:flex!important;align-items:center!important;min-height:0!important;gap:.8rem!important;}
#reader#reader.song-mode .reader-top .reader-titles{min-width:0!important;flex:1!important;}
#reader#reader.song-mode .reader-song-layout{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:clamp(.75rem,1.5vw,1.25rem)!important;height:auto!important;max-height:none!important;
  overflow:visible!important;padding:0!important;grid-template:none!important;
}
#reader#reader.song-mode .reader-song-layout>.reader-score-module,
#reader#reader.song-mode .reader-song-layout>.reader-practice-module,
#reader#reader.song-mode .reader-song-layout>#accessoryUnifiedTransport{
  flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
  grid-column:auto!important;grid-row:auto!important;box-sizing:border-box!important;
  margin:0!important;float:none!important;
}
#reader#reader.song-mode .reader-song-layout>.reader-score-module{display:block!important;}
#reader#reader.song-mode .reader-song-layout>.reader-practice-module{
  display:flex!important;flex-direction:column!important;gap:clamp(.8rem,1.7vw,1.2rem)!important;
  height:auto!important;max-height:none!important;overflow:visible!important;
}
#reader#reader.song-mode .reader-practice-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:clamp(.75rem,1.8vw,1.7rem)!important;align-items:stretch!important;
  width:100%!important;max-width:100%!important;
}
#reader#reader.song-mode .reader-practice-grid>.reader-song-simulator,
#reader#reader.song-mode .reader-practice-grid>.reader-inline-mixer{
  display:flex!important;flex-direction:column!important;min-width:0!important;max-width:100%!important;
  width:100%!important;grid-column:auto!important;grid-row:auto!important;
  height:auto!important;max-height:none!important;overflow:visible!important;
}
#reader#reader.song-mode .reader-practice-grid #songSimulator{
  width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;
}
#reader#reader.song-mode .reader-song-layout[data-view="score"]>.reader-practice-module{display:none!important;}
#reader#reader.song-mode .reader-song-layout[data-view="hands"]>.reader-score-module{display:none!important;}
#reader#reader.song-mode .reader-song-layout[data-view="hands"] .reader-practice-grid{grid-template-columns:minmax(0,1fr)!important;}
#reader#reader.song-mode .reader-song-layout[data-view="hands"] .reader-inline-mixer{display:none!important;}
#reader#reader.song-mode .reader-song-layout[data-view="hands"] .reader-song-simulator{display:flex!important;}
/* La partitura conserva dos columnas escritorio / una en telefono. */
#reader#reader.song-mode .reader-score-module .reader-cards{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
  gap:clamp(.5rem,1vw,.85rem)!important;overflow:visible!important;
}
#reader#reader.song-mode .reader-score-module .reader-card{
  min-height:clamp(9rem,13vw,12.75rem)!important;width:100%!important;
  box-sizing:border-box!important;padding:clamp(.65rem,1.15vw,1.15rem)!important;
  height:auto!important;max-height:none!important;
}
#reader#reader.song-mode .reader-score-module .reader-grid{min-width:0!important;width:100%!important;}
/* Reproductor unico, AL DEBAJO de los compases. Los controles no se salen. */
#reader#reader.song-mode .reader-song-layout>#accessoryUnifiedTransport:not([hidden]),
#reader#reader.accessory-inline #accessoryUnifiedTransport:not([hidden]){
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:center!important;gap:.75rem!important;
  position:static!important;min-height:0!important;height:auto!important;
  padding:clamp(.7rem,1.45vw,1.15rem)!important;overflow:visible!important;
}
#reader#reader.song-mode .reader-song-layout>#accessoryUnifiedTransport[hidden]{display:none!important;}
#reader .cf-player-top,#reader .cf-player-middle,#reader .cf-player-options{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:clamp(.5rem,1.5vw,1rem);width:100%;min-width:0;box-sizing:border-box;
}
#reader .cf-player-top{border-bottom:1px solid rgba(61,174,174,.16);padding-bottom:.55rem;}
#reader .cf-player-middle{justify-content:flex-start;gap:clamp(.75rem,2vw,1.5rem);}
#reader .cf-player-options{justify-content:flex-start;gap:1rem;}
#reader .cf-player-options .checks{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:.65rem 1rem!important;min-width:0!important;}
#reader .cf-page-navigation{display:flex;gap:.55rem;align-items:center;justify-content:center;min-width:0;}
#reader .cf-page-navigation button{width:2.75rem;min-width:2.75rem;height:2.65rem;padding:0!important;border-radius:.75rem;display:grid;place-items:center;}
#reader .cf-page-navigation button:disabled{opacity:.35;cursor:not-allowed;}
#reader .cf-page-label{display:flex;flex-direction:column;gap:.1rem;align-items:center;min-width:7.8rem;text-align:center;white-space:nowrap;}
#reader .cf-page-label strong{font-size:.84rem;font-weight:850;color:#e0f5f4;font-variant-numeric:tabular-nums;}
#reader .cf-page-label small{font-size:.7rem;color:#8db7be;font-variant-numeric:tabular-nums;}
#reader .reader-layout-control{display:flex!important;align-items:center!important;gap:.5rem!important;white-space:nowrap!important;}
#reader .reader-layout-control select{max-width:none!important;min-width:7rem!important;cursor:pointer!important;}
#reader #readerMobileLayout{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;}
#reader .cf-player-middle .tempo{min-width:0!important;flex:1 1 17rem!important;justify-content:flex-start!important;margin:0!important;}
#reader .cf-player-middle .tempo input[type=range]{flex:1 1 7rem!important;max-width:17rem!important;width:clamp(7rem,18vw,17rem)!important;}
#reader .cf-player-instruments{color:#c2d9de;font-size:.78rem;min-width:0;position:relative;}
#reader .cf-player-instruments summary{cursor:pointer;list-style:revert;padding:.35rem .6rem;border:1px solid #305865;border-radius:.5rem;}
#reader .cf-player-instruments[open] .switches{display:flex!important;gap:.7rem;flex-wrap:wrap!important;padding:.45rem .25rem .15rem;}
#reader .cf-player-instruments .switch{font-size:.78rem;display:flex;align-items:center;gap:.3rem;}
#reader .cf-player-instruments input{accent-color:#19dfc2;}
#reader#reader.accessory-inline .cf-page-navigation,
#reader#reader.accessory-inline .reader-layout-control{display:none!important;}
#reader#reader.song-mode .reader-practice-module .reader-bottom{display:none!important;}
#reader#reader.song-mode .reader-next-hint{display:none!important;}
@media(max-width:900px){
  #reader#reader.song-mode .reader-practice-grid{grid-template-columns:minmax(0,1fr)!important;}
  #reader .cf-player-top,#reader .cf-player-middle{justify-content:center!important;}
  #reader .cf-player-options{justify-content:center!important;}
  #reader#reader.song-mode .reader-score-module .reader-card{min-height:9rem!important;}
}
@media(max-width:640px){
  #reader#reader.song-mode{padding:clamp(.5rem,2.5vw,.8rem)!important;gap:.6rem!important;}
  #reader#reader.song-mode .reader-song-layout{gap:.75rem!important;}
  #reader#reader.song-mode .reader-score-module .reader-cards{
    grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;gap:.6rem!important;
  }
  #reader#reader.song-mode .reader-score-module .reader-card{
    min-height:8.25rem!important;padding:.65rem!important;gap:.35rem!important;
  }
  #reader#reader.song-mode .reader-score-module{padding:.65rem!important;}
  #reader .cf-player-top{gap:.6rem!important;justify-content:space-around!important;}
  #reader .cf-player-middle{justify-content:flex-start!important;gap:.7rem!important;}
  #reader .cf-player-middle .tempo{flex:1 1 13rem!important;gap:.45rem!important;font-size:.9rem!important;}
  #reader .cf-player-middle .tempo strong{font-size:1.35rem!important;}
  #reader .cf-player-middle .tempo input[type=range]{flex:1 1 6rem!important;max-width:100%!important;width:8rem!important;}
  #reader .cf-page-navigation{gap:.3rem;}
  #reader .cf-page-navigation button{min-width:2.1rem;width:2.1rem;height:2.25rem;font-size:.75rem;}
  #reader .cf-page-label{min-width:6.65rem;}
  #reader .cf-page-label strong{font-size:.72rem;}
  #reader .cf-page-label small{font-size:.64rem;}
  #reader .cf-player-options .checks{justify-content:center!important;gap:.5rem .75rem!important;}
  #reader .cf-player-options .checks label{font-size:.76rem!important;}
  #reader .reader-layout-control select{min-width:6.5rem!important;font-size:.75rem!important;}
  #reader#reader.song-mode .reader-top{align-items:flex-start!important;}
  #reader#reader.song-mode .reader-song-cover{width:3.3rem!important;height:3.3rem!important;}
  #reader#reader.song-mode .reader-titles h2{white-space:normal!important;line-height:1.15!important;font-size:clamp(.95rem,4.4vw,1.25rem)!important;}
}
@media(max-width:360px){
  #reader .cf-player-top{flex-direction:column!important;}
  #reader .cf-player-middle .tempo{flex-basis:100%!important;}
  #reader#reader.song-mode .reader-song-cover{width:2.8rem!important;height:2.8rem!important;}
}

/* En horizontal compacto el motor muestra un compas por legibilidad:
   no anunciar una seleccion de 2/4 que no se esta renderizando. */
@media(max-width:1000px) and (max-height:600px) and (orientation:landscape){
 #reader#reader.song-mode .reader-layout-control{display:none!important;}
 #reader#reader.song-mode #readerMobileLayout{
  position:static!important;width:auto!important;height:auto!important;margin:0!important;
  padding:.4rem .65rem!important;overflow:visible!important;clip:auto!important;
  border:1px solid #335e68;border-radius:.65rem;color:#b9dadd;white-space:nowrap!important;
 }
}
/* Conservar la pastilla compacta de seleccion aprobada, no una franja de ancho completo. */
#reader#reader.song-mode>.reader-view-switch{
 width:max-content!important;max-width:calc(100% - 1rem)!important;
 min-width:0!important;align-self:center!important;justify-self:center!important;
 margin-left:auto!important;margin-right:auto!important;
}


/* === Fuente integrada: parche-v19-8-2.css === */
/* CajonFlow V19.8.2 - alineacion de modulos en canciones adaptadas.
 * Mantiene la composicion V19.8.1 y NO altera Cajon tradicional.
 */
#reader#reader.song-mode:not(.accessory-inline){
 --cf-song-content-width:1320px;
}
/* La navegacion se escapaba al borde izquierdo: el anterior V19.8
 * escribia margin:0 con mucha especificidad. Centrar como las partituras. */
#reader#reader.song-mode:not(.accessory-inline)>.reader-song-sections:not([hidden]){
 display:grid!important;
 width:100%!important;
 max-width:var(--cf-song-content-width)!important;
 margin-left:auto!important;
 margin-right:auto!important;
 margin-top:0!important;
 margin-bottom:var(--lc-nav-space,1rem)!important;
 box-sizing:border-box!important;
 flex-shrink:0!important;
}
/* Fondo de audio bloqueado, titulo, compases y practica comparten eje. */
#reader#reader.song-mode:not(.accessory-inline)>:is(.reader-site-header,.reader-top,#backgroundAccessory,.reader-song-layout){
 width:100%!important;
 max-width:var(--cf-song-content-width)!important;
 margin-left:auto!important;
 margin-right:auto!important;
 box-sizing:border-box!important;
}
#reader#reader.song-mode:not(.accessory-inline)>#backgroundAccessory{
 align-self:center!important;
 flex-shrink:0!important;
}
/* No crear desbordamiento cuando la navegacion llega a dos o mas filas. */
#reader#reader.song-mode .reader-song-sections .reader-section-button{
 min-width:0!important;
 overflow:hidden!important;
}
@media (max-width:640px){
 #reader#reader.song-mode:not(.accessory-inline)>.reader-song-sections:not([hidden]){
  padding:0!important;
  gap:.5rem!important;
 }
}


/* === Fuente integrada: parche-v19-9-midi.css === */
/* CajonFlow 19.9 - panel de acompanamiento dentro del mezclador actual */
.midi-mixer{border-top:1px solid rgba(90,208,199,.25);padding:14px 5px 8px;margin-top:12px;min-width:0;color:#eefafa}
.midi-mixer-header,.midi-volume-row{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}
.midi-mixer-header strong{font-size:14px;color:#52e0d3}.midi-check{display:flex;gap:8px;align-items:center;font-size:12px;min-width:0;color:#d5e4e8}
.midi-check input{accent-color:#2be1d4;width:16px;height:16px;flex:0 0 auto}.midi-volume-row{justify-content:flex-start;margin:10px 0}.midi-volume-row label{font-size:12px;min-width:112px}.midi-volume-row input{min-width:90px;max-width:310px;flex:1;accent-color:#22d9cd}.midi-volume-value{font-size:12px;min-width:38px;text-align:right}
.midi-track-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:10px;padding-top:12px}.midi-mixer details{margin:8px 0}.midi-mixer summary{font-size:12px;color:#c6e9e9;cursor:pointer}.midi-disclaimer{font-size:11px;line-height:1.45;color:#98bac1;display:block;padding-top:7px}
.midi-import-option{margin:10px 0 4px;color:#2be1d4;font-weight:700}.midi-background-notice{display:block;color:#e8d19e;line-height:1.4;font-size:11px;max-width:310px}
@media(max-width:680px){.midi-mixer{padding:12px 0}.midi-mixer-header{align-items:flex-start}.midi-mixer-header strong{width:100%}.midi-volume-row label{min-width:100px}.midi-track-list{grid-template-columns:1fr}}
/* Preserve native hidden behaviour when exiting the fixed-position reader. */
#reader[hidden]{display:none!important;pointer-events:none!important}

/* CajonFlow V19.21: controles exclusivos del mezclador de pistas MIDI. */
.midi-track-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:12px}
.midi-track-item{min-width:0;display:flex;flex-direction:column;gap:9px;padding:12px;border:1px solid rgba(55,174,168,.22);border-radius:12px;background:rgba(10,35,43,.4)}
.midi-track-name{min-width:0;justify-content:flex-start}
.midi-track-name span{min-width:0;overflow-wrap:anywhere}
.midi-track-level-row{display:flex;align-items:center;gap:10px;width:100%;min-width:0}
.midi-track-level-row span{font-size:11px;color:#a6cbd0;flex:0 0 auto}
.midi-track-level-row input{flex:1;min-width:20px;accent-color:#22d9cd}
.midi-track-volume-value{font-size:12px;color:#e0f5f2;min-width:37px;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:680px){.midi-track-list{grid-template-columns:minmax(0,1fr)}}


/* === Fuente integrada: parche-v19-10-sf2.css === */
/* CajonFlow V19.10 - enhanced MIDI SoundFont selector, no new transport. */
.sf-quality{margin-top:14px;padding:13px;border:1px solid rgba(38,224,207,.24);background:rgba(11,50,60,.54);border-radius:14px;min-width:0}
.sf-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sf-heading strong{font-size:13px;color:#31e4d8}.sf-status{font-size:11px;color:#b7d3d8;max-width:370px}
.sf-row{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin:12px 0 8px}
.sf-row label{display:flex;flex-direction:column;gap:5px;color:#d9eeee;font-size:12px;min-width:175px;flex:1}
.sf-row select{max-width:280px;width:100%;min-height:38px;color:#efffff;border:1px solid #31737b;border-radius:9px;padding:7px;background:#123c47}
.sf-row button{min-height:38px;white-space:normal;max-width:100%}
.sf-file{font-size:12px;color:#bee3e7;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.sf-file input{font-size:11px;max-width:100%;color:#ccdce1}
.sf-quality small{display:block;margin-top:10px;color:#9bbec4;font-size:11px;line-height:1.55}
.midi-requirements{border:1px solid rgba(58,207,196,.30);border-radius:12px;padding:12px;margin-top:12px;background:rgba(10,44,53,.68);color:#d5eaf0;line-height:1.55}
.midi-requirements summary{font-weight:700;color:#38e1d8;cursor:pointer}.midi-requirements ul{padding-left:20px;margin:10px 0}
.midi-permission{margin:12px 0 9px;display:flex;align-items:flex-start;gap:9px;color:#d8f1f0;font-size:12px;line-height:1.55;cursor:pointer}
.midi-permission input{accent-color:#22dcd0;margin-top:3px;flex:0 0 auto;min-width:17px;min-height:17px}
.midi-license-note{font-size:11px;line-height:1.5;color:#a5bec5}
@media(max-width:700px){.sf-heading{display:block}.sf-heading .sf-status{display:block;margin-top:5px}.sf-row{align-items:stretch}.sf-row label{min-width:100%;max-width:100%}.sf-row select{max-width:100%}.sf-row button{width:100%}.sf-file{display:block}.sf-file input{display:block;margin-top:8px}}


/* === Fuente integrada: parche-v19-11-sf2.css === */
/* CajonFlow V19.11 - dos opciones de sonido, fuentes SF2 claramente separadas */
.sf-quality{margin-top:14px;padding:16px;border:1px solid rgba(38,224,207,.27);background:rgba(11,50,60,.54);border-radius:15px;min-width:0}
.sf-quality *{box-sizing:border-box}
.sf-heading{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
.sf-heading strong{font-size:15px;color:#31e4d8}
.sf-status{font-size:12px;color:#b7d3d8;max-width:420px;line-height:1.45}
.sf-intro{margin:8px 0 13px;color:#c3dfe1;font-size:13px;line-height:1.55}
.sf-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sf-choice{min-width:0;display:flex;gap:11px;align-items:flex-start;padding:13px;border:1px solid #365f68;border-radius:11px;background:#123641;cursor:pointer}
.sf-choice.selected{border-color:#15e5d5;background:#104b50;box-shadow:inset 0 0 0 1px rgba(16,229,212,.3)}
.sf-choice input{accent-color:#20e1cf;flex:0 0 auto;width:18px;height:18px;margin:2px 0 0}
.sf-choice span{min-width:0;display:block}.sf-choice strong{display:block;color:#f1ffff;font-size:13px;line-height:1.3}
.sf-choice small{display:block;color:#a9ccd1;font-size:11px;line-height:1.5;margin-top:4px}
.sf-banks{margin-top:14px;display:grid;gap:10px}
.sf-bank-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px;align-items:center;background:rgba(11,34,42,.58);border:1px solid #28565e;border-radius:11px;padding:13px}
.sf-bank-copy{min-width:0}.sf-bank-copy strong{display:block;color:#e8fafb;font-size:13px;margin-bottom:5px}
.sf-bank-copy small{display:block;color:#b1cbd1;font-size:11px;line-height:1.55}
.sf-fetch,.sf-local-button{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-width:160px;min-height:38px;font-size:12px;white-space:normal}
.sf-local-button{position:relative;cursor:pointer;background:#263a49;color:#f3f7f8;border:1px solid #426070;border-radius:9px;font-weight:800}
.sf-local-button:hover,.sf-fetch:hover{border-color:#22e1d6}
.sf-local-button:focus-within{outline:2px solid #23e3d8;outline-offset:2px}
.sf-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}
.sf-help{margin:12px 0 0;color:#bad6da;font-size:11px;line-height:1.6}
.sf-credit{display:block;margin-top:5px;color:#92b9c0;font-size:10px;line-height:1.5}
.sf-error{color:#ffbbab;font-size:11px;line-height:1.5;margin-top:10px}
@media(max-width:720px){.sf-heading{display:block}.sf-status{display:block;margin-top:5px}.sf-bank-row{grid-template-columns:1fr;gap:10px}.sf-fetch,.sf-local-button{width:100%;min-width:0}}
@media(max-width:380px){.sf-mode-options{grid-template-columns:1fr}.sf-quality{padding:12px}.sf-bank-row{padding:11px}}


/* CajonFlow: carga visible SC-55 y sincronizacion MIDI (modulo existente). */
.sf-progress,.cf-midi-bank-progress{border:1px solid rgba(35,226,211,.45);background:rgba(11,57,65,.76);border-radius:12px;padding:12px 14px;margin:12px 0;color:#eaffff;min-width:0}
.sf-progress-head,.cf-midi-bank-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 14px;font-size:12px}
.sf-progress-head strong,.cf-midi-bank-label{color:#67fff1;font-weight:800}
.sf-progress progress,.cf-midi-bank-progress progress{display:block;appearance:auto;accent-color:#1cdbc8;width:100%;height:13px;margin:10px 0 6px;border-radius:12px;overflow:hidden}
.sf-progress small,.cf-midi-bank-progress small{display:block;margin-top:5px;color:#b8d8d9;font-size:11px;line-height:1.5}
.sf-sync{margin-top:12px;padding:10px 12px;background:rgba(7,25,33,.38);border-radius:10px}
.sf-sync label{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#ecffff;font-size:12px;font-weight:700}
.sf-sync output{color:#45ead8;font-variant-numeric:tabular-nums}
.sf-sync input[type=range]{display:block;width:100%;max-width:100%;accent-color:#24e2d1;margin:10px 0 6px}
.sf-sync small{font-size:11px;line-height:1.45;color:#b7d4d7}
@media(max-width:520px){.cf-midi-bank-progress,.sf-progress{padding:10px}.sf-sync{padding:9px}}

.cf-midi-bank-progress progress::-webkit-progress-bar,.sf-progress progress::-webkit-progress-bar{background:#143e47;border-radius:20px}
.cf-midi-bank-progress progress::-webkit-progress-value,.sf-progress progress::-webkit-progress-value{background:#1ce0ca;border-radius:20px}
.cf-midi-bank-progress progress::-moz-progress-bar,.sf-progress progress::-moz-progress-bar{background:#1ce0ca;border-radius:20px}
.cf-midi-bank-progress.cf-midi-bank-error{border-color:rgba(255,175,142,.5)}
.cf-midi-bank-progress.cf-midi-bank-error .cf-midi-bank-label{color:#ffd1bd}
