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

/* === Fuente integrada: parche-v19-12-practica.css === */
/* CajonFlow V19.12 — prioridad para la partitura y el simulador.
   Un SOLO transporte compartido, trasladado dentro del simulador.
   Estas reglas son incrementales y preservan las manos reales y el motor musical. */
#reader#reader .cf-section-picker{
  width:100%!important;max-width:1320px!important;margin:0 auto!important;
  border:1px solid rgba(49,219,204,.24);border-radius:.65rem;
  background:rgba(12,47,57,.52);flex:0 0 auto!important;
}
#reader#reader .cf-section-picker[hidden]{display:none!important}
#reader#reader .cf-section-picker>summary{
  display:flex;justify-content:space-between;gap:1rem;align-items:center;
  padding:.42rem .8rem;cursor:pointer;font-size:.77rem;color:#9cf3e7;list-style:none;
}
#reader#reader .cf-section-picker>summary::-webkit-details-marker{display:none}
#reader#reader .cf-section-picker>summary:before{content:'▸';color:#25dfd2;font-size:.8rem}
#reader#reader .cf-section-picker[open]>summary:before{content:'▾'}
#reader#reader .cf-section-picker>summary strong{color:#e5f9fa;white-space:nowrap}
#reader#reader #readerSectionCurrent{flex:1;text-align:right;color:#a7c7cd;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#reader#reader .cf-section-picker>.reader-song-sections:not([hidden]){
  display:grid!important;position:static!important;width:100%!important;
  margin:0!important;padding:.55rem!important;max-width:none!important;
  border-top:1px solid rgba(58,218,204,.17);min-height:0!important;
}
/* Compacto: el centro de la página es el ejercicio, no la navegación. */
#reader#reader.song-mode:not(.accessory-inline){gap:.48rem!important;padding-top:.45rem!important}
#reader#reader.song-mode:not(.accessory-inline)>.reader-top{
  margin-top:0!important;margin-bottom:0!important;min-height:0!important;padding:0!important;
}
#reader#reader.song-mode .reader-song-layout{gap:.55rem!important;min-height:0!important}
#reader#reader.song-mode .reader-view-switch{margin:.1rem auto!important}
#reader#reader.song-mode .reader-score-module{padding:.5rem .7rem!important}
#reader#reader.song-mode .reader-score-module .reader-cards{gap:.55rem!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
#reader#reader.song-mode .reader-score-module .reader-card{
  min-height:7rem!important;padding:.5rem .6rem!important;height:auto!important;
}
/* Esta es la única barra de control: pertenece al propio simulador. */
#reader#reader .reader-song-simulator>#accessoryUnifiedTransport:not([hidden]),
#reader#reader .reader-score-module>#accessoryUnifiedTransport:not([hidden]){
  display:flex!important;flex-direction:column!important;gap:.3rem!important;
  position:static!important;inset:auto!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  padding:.55rem .5rem!important;margin:.5rem 0 0!important;
  border:1px solid rgba(39,212,202,.24)!important;border-radius:.75rem!important;
  background:rgba(13,53,64,.56)!important;box-shadow:none!important;
  overflow:visible!important;height:auto!important;min-height:0!important;
}
#reader#reader .reader-song-simulator>#accessoryUnifiedTransport[hidden],
#reader#reader .reader-score-module>#accessoryUnifiedTransport[hidden]{display:none!important}
#reader#reader #accessoryUnifiedTransport .cf-player-top,
#reader#reader #accessoryUnifiedTransport .cf-player-middle,
#reader#reader #accessoryUnifiedTransport .cf-player-options{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:.45rem!important;flex-wrap:wrap!important;width:100%!important;min-width:0!important;
  padding:0!important;border:0!important;
}
#reader#reader #accessoryUnifiedTransport .cf-player-top{gap:.15rem .6rem!important}
#reader#reader #accessoryUnifiedTransport .cf-player-middle{justify-content:flex-start!important}
#reader#reader #accessoryUnifiedTransport .cf-player-options .checks{justify-content:flex-start!important;gap:.3rem .8rem!important}
#reader#reader #accessoryUnifiedTransport .cf-player-options .checks label{font-size:.7rem!important}
#reader#reader #accessoryUnifiedTransport .transport-round{
  height:2.5rem!important;width:2.5rem!important;min-width:2.5rem!important;
}
#reader#reader #accessoryUnifiedTransport .transport-controls{gap:.4rem!important}
#reader#reader #accessoryUnifiedTransport .transport-unit{min-width:2.75rem!important;gap:.1rem!important}
#reader#reader #accessoryUnifiedTransport .transport-caption{font-size:.63rem!important}
#reader#reader #accessoryUnifiedTransport .cf-player-top .cf-page-navigation{gap:.3rem!important}
#reader#reader #accessoryUnifiedTransport .cf-page-label{min-width:5.85rem!important}
#reader#reader #accessoryUnifiedTransport .cf-page-navigation button{width:2.05rem!important;min-width:2.05rem!important;height:2.05rem!important}
#reader#reader #accessoryUnifiedTransport .cf-player-middle .tempo{
  flex:1 1 10rem!important;min-width:0!important;gap:.35rem!important;font-size:.75rem!important;
}
#reader#reader #accessoryUnifiedTransport .cf-player-middle .tempo strong{font-size:1.2rem!important}
#reader#reader #accessoryUnifiedTransport .cf-player-middle .tempo input[type=range]{flex:1 1 4rem!important;min-width:2.4rem!important;max-width:10rem!important}
#reader#reader #accessoryUnifiedTransport .reader-layout-control select{min-width:5.6rem!important;padding:.36rem .4rem!important;font-size:.73rem!important}
#reader#reader #accessoryUnifiedTransport .cf-player-instruments summary{font-size:.7rem;padding:.2rem .4rem}
#reader#reader .reader-practice-module{padding:.6rem!important;gap:.4rem!important}
#reader#reader .reader-practice-grid{gap:.8rem!important;align-items:start!important}
#reader#reader .reader-practice-grid>.reader-song-simulator,
#reader#reader.accessory-inline .accessory-score-sim .reader-song-simulator{min-width:0!important}
#reader#reader .reader-practice-grid .reader-song-simulator #songSimulator,
#reader#reader.accessory-inline .accessory-score-sim .reader-song-simulator #songSimulator{
  display:block!important;width:100%!important;height:clamp(235px,35vh,370px)!important;
  max-height:370px!important;object-fit:contain!important;overflow:visible!important;
}
#reader#reader .reader-practice-grid .reader-song-simulator p{font-size:.68rem!important;line-height:1.35!important;padding:.35rem!important;margin:.2rem 0!important}
#reader#reader .reader-practice-grid .reader-inline-mixer{min-width:0!important}
#reader#reader .cf-mobile-mixer-button{display:none!important}
/* Accesorios usa la misma tarjeta de práctica y el mismo reproductor. */
#reader#reader.accessory-inline .reader-score-module{padding:.5rem!important}
#reader#reader.accessory-inline .accessory-score-sim{gap:.7rem!important}
#reader#reader.accessory-inline .reader-song-layout{gap:.55rem!important}
/* El selector de bancos ahora no añade filas en el mezclador. */
#reader#reader .sf-quality{padding:.7rem!important;margin-top:.55rem!important}
#reader#reader .sf-quality .sf-intro{margin:.35rem 0!important;font-size:.73rem!important}
#reader#reader .sf-quality .sf-status{font-size:.68rem!important}
#reader#reader .sf-quality .sf-choice{padding:.55rem!important}
#reader#reader .sf-quality .sf-help,#reader#reader .sf-quality .sf-credit{font-size:.65rem!important}
#reader#reader .sf-quality .sf-banks{margin-top:.35rem!important}
/* Cajón tradicional: el reproductor vive dentro de su módulo de práctica. */
.wrap .sim-practice>.sim-practice-layout .sim-side>.toolbar.lab-transport,
.wrap .sim-practice>.sim-practice-layout .sim-score-side>.toolbar.lab-transport{
  display:flex!important;flex-wrap:wrap!important;gap:.4rem .65rem!important;
  margin:.5rem 0 0!important;padding:.55rem!important;
  background:rgba(12,53,62,.58)!important;border:1px solid rgba(37,224,207,.29)!important;
  box-shadow:none!important;border-radius:.75rem!important;
}
.wrap .sim-practice .transport-round{height:2.7rem!important;width:2.7rem!important;min-width:2.7rem!important}
.wrap .sim-practice .transport-caption{font-size:.65rem!important}
.wrap .sim-practice .transport-unit{min-width:3rem!important}
.wrap .sim-practice .sim-practice-layout{gap:.7rem!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
.wrap .sim-practice .sim-score-side .bars{gap:.35rem!important}
.wrap .sim-practice .sim-score-side .bar{padding:.5rem!important}
.wrap .sim-practice .sim-score-side .beat-cell{min-height:2.65rem!important}
.wrap .sim-practice .sim-arthead{padding:.4rem .6rem!important}
.wrap .sim-practice .sim-artboard #cajonSimulator{width:100%!important;height:clamp(230px,35vh,370px)!important;max-height:370px!important}
.wrap .sim-practice .sim-view-explainer{font-size:.7rem!important;line-height:1.35!important;padding:.35rem!important;margin:.1rem 0!important}
.wrap .sim-practice .sim-feedback,.wrap .sim-practice .sim-hand-legend,.wrap .sim-practice .sim-try{font-size:.68rem!important;min-height:0!important;margin:.35rem 0!important}
@media(max-width:960px){
 #reader#reader .reader-practice-grid{grid-template-columns:minmax(0,1fr)!important}
 #reader#reader .reader-practice-grid>.reader-inline-mixer,
 #reader#reader.accessory-inline .reader-inline-mixer{display:none!important}
 #reader#reader .cf-mobile-mixer-button{display:block!important;margin:.25rem auto 0!important;max-width:100%!important}
 .wrap .sim-practice .sim-practice-layout{grid-template-columns:minmax(0,1fr)!important}
 .wrap .sim-practice .sim-practice-layout[data-view=hands] .sim-side{width:100%!important}
 .wrap .sim-practice .sim-practice-layout[data-view=score] .bars{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:640px){
 #reader#reader.song-mode:not(.accessory-inline){gap:.3rem!important;padding:.35rem!important}
 #reader#reader.song-mode .reader-top .reader-song-cover{width:2.5rem!important;height:2.5rem!important}
 #reader#reader.song-mode .reader-top .reader-titles h2{font-size:.89rem!important;line-height:1.15!important}
 #reader#reader.song-mode .reader-score-module{padding:.35rem!important}
 #reader#reader.song-mode .reader-score-module .reader-cards{grid-template-columns:minmax(0,1fr)!important;gap:.3rem!important}
 #reader#reader.song-mode .reader-score-module .reader-card{padding:.35rem!important;min-height:5.7rem!important;gap:.15rem!important}
 #reader#reader.song-mode .reader-score-module .reader-card header{min-height:.85rem!important}
 #reader#reader.song-mode .reader-score-module .reader-card .no{font-size:.83rem!important}
 #reader#reader .reader-song-layout{gap:.3rem!important}
 #reader#reader .reader-practice-module{padding:.4rem!important}
 #reader#reader .reader-practice-grid .reader-song-simulator #songSimulator,
 #reader#reader.accessory-inline .accessory-score-sim .reader-song-simulator #songSimulator{
    height:clamp(165px,28vh,245px)!important;max-height:245px!important;
 }
 #reader#reader .reader-practice-grid .reader-song-simulator p{display:none!important}
 #reader#reader #accessoryUnifiedTransport .cf-player-middle .tempo{flex-basis:100%!important}
 #reader#reader #accessoryUnifiedTransport .cf-player-top{flex-direction:row!important;justify-content:space-between!important}
 #reader#reader #accessoryUnifiedTransport .cf-player-options .checks{gap:.25rem .45rem!important}
 #reader#reader #accessoryUnifiedTransport .cf-player-options .checks label{font-size:.66rem!important}
 #reader#reader #accessoryUnifiedTransport .reader-layout-control{font-size:.65rem!important}
 #reader#reader .reader-song-sim-title{min-height:1.3rem!important;padding:.15rem 0!important}
 #reader#reader .reader-practice-module #readerNextHint{display:none!important}
 .wrap .sim-practice .sim-score-side .beat-cell{min-height:1.8rem!important}
 .wrap .sim-practice .sim-artboard #cajonSimulator{height:clamp(165px,26vh,240px)!important;max-height:240px!important}
 .wrap .sim-practice .sim-view-explainer,.wrap .sim-practice .sim-try{display:none!important}
 .wrap .sim-practice .sim-score-side .bar{padding:.3rem!important}
 .wrap .sim-practice .sim-score-side .notefoot{margin:.35rem 0!important;font-size:.68rem!important}
 .wrap .sim-practice .status,.wrap .sim-practice .hint{margin:.2rem 0!important;font-size:.68rem!important}
}
@media(max-width:360px){
 #reader#reader #accessoryUnifiedTransport .cf-player-middle .tempo{flex-basis:100%!important}
 #reader#reader #accessoryUnifiedTransport .cf-page-label{min-width:5.4rem!important}
 #reader#reader .cf-section-picker>summary{font-size:.65rem!important}
}
/* Additional high-specificity compact fixes found in physical viewport QA. */
#reader#reader.song-mode .reader-song-layout .reader-practice-grid>.reader-song-simulator #songSimulator,
#reader#reader.accessory-inline .reader-song-layout .accessory-score-sim .reader-song-simulator #songSimulator{overflow:hidden!important;}
@media(max-width:960px){
 #reader#reader.song-mode .reader-song-layout .reader-practice-grid>.reader-inline-mixer,
 #reader#reader.accessory-inline .reader-song-layout .reader-inline-mixer{display:none!important;}
}
@media(max-width:640px){
 #reader#reader.song-mode .reader-score-module .reader-card .reader-note{
   height:1rem!important;min-height:1rem!important;max-height:1rem!important;font-size:.65rem!important;
 }
 #reader#reader.song-mode .reader-score-module .reader-card .reader-grid .n{
   height:.7rem!important;min-height:.7rem!important;font-size:.58rem!important;
 }
 #reader#reader.song-mode .reader-score-module .reader-card header{min-height:.75rem!important;font-size:.72rem!important;}
 #reader#reader.song-mode .reader-score-module .reader-card{min-height:0!important;padding:.3rem .35rem!important;gap:.1rem!important;}
 #reader#reader.song-mode .reader-score-module .reader-cards{gap:.2rem!important;}
 #reader#reader.song-mode .reader-song-layout .reader-song-simulator #songSimulator{height:clamp(150px,25vh,208px)!important;max-height:208px!important;}
 #reader#reader.song-mode .reader-song-layout .reader-song-simulator>#accessoryUnifiedTransport:not([hidden]){
    padding:.38rem!important;gap:.2rem!important;margin:.3rem 0 0!important;
 }
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-player-middle .tempo{flex:1 1 8rem!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-player-middle .tempo input[type=range]{max-width:6rem!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-player-options{justify-content:flex-start!important;gap:.2rem!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-player-options .checks{gap:.2rem .5rem!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-player-options .checks label{font-size:.62rem!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-player-options .cf-player-instruments{margin:0!important;}
}
@media(max-width:360px){
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-player-top{flex-direction:row!important;gap:.1rem!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-page-navigation button{width:1.85rem!important;min-width:1.85rem!important;height:1.9rem!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-page-label{min-width:5rem!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-player-middle .reader-layout-control span{display:none!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .reader-layout-control select{min-width:4.7rem!important;max-width:4.7rem!important;font-size:.66rem!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-player-middle .tempo{flex:1 1 8rem!important;font-size:.66rem!important;gap:.2rem!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-player-middle .tempo strong{font-size:1rem!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-player-middle .tempo input[type=range]{max-width:3.4rem!important;min-width:2rem!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-player-options .checks{gap:.1rem .3rem!important;}
 #reader#reader.song-mode #accessoryUnifiedTransport .cf-player-options .checks label{font-size:.59rem!important;}
 #reader#reader.song-mode .reader-score-module .reader-card .reader-note{height:.89rem!important;min-height:.89rem!important;max-height:.89rem!important;}
 #reader#reader.song-mode .reader-song-layout .reader-song-simulator #songSimulator{height:160px!important;max-height:160px!important;}
 #reader#reader.song-mode .reader-song-sim-title{min-height:1rem!important;gap:.2rem!important;}
}
#reader#reader.accessory-inline .reader-song-simulator{overflow:hidden!important;}
#reader#reader.accessory-inline .reader-song-sim-title{display:flex!important;flex-wrap:wrap!important;min-width:0!important;gap:.3rem!important;}
#reader#reader.accessory-inline .reader-song-sim-title #songSimStatus{max-width:100%!important;min-width:0!important;overflow-wrap:anywhere!important;}
@media(max-width:640px){
 #reader#reader.accessory-inline .reader-score-module .reader-cards{gap:.25rem!important;grid-template-columns:minmax(0,1fr)!important;}
 #reader#reader.accessory-inline .reader-score-module .reader-card{padding:.32rem!important;min-height:0!important;gap:.12rem!important;}
 #reader#reader.accessory-inline .reader-score-module .reader-card header{min-height:.75rem!important;}
 #reader#reader.accessory-inline .reader-score-module .reader-grid .n{height:.72rem!important;min-height:.72rem!important;font-size:.59rem!important;}
 #reader#reader.accessory-inline .reader-score-module .reader-note{height:1.01rem!important;min-height:1.01rem!important;max-height:1.01rem!important;font-size:.67rem!important;}
 #reader#reader.accessory-inline .accessory-score-sim .reader-song-simulator #songSimulator{height:clamp(150px,24vh,205px)!important;max-height:205px!important;overflow:hidden!important;}
 #reader#reader.accessory-inline .reader-song-simulator p{display:none!important;}
 #reader#reader.accessory-inline .reader-song-sim-title #songSimStatus{font-size:.69rem!important;}
}
.sf-quality.sf-loading{border-color:#1ce7d5!important;}
.sf-quality.sf-loading .sf-status{font-weight:850!important;color:#22e8d5!important;font-size:.78rem!important;}
.sf-quality.sf-loading .sf-status:before{content:'◌';display:inline-block;margin-right:.45rem;animation:cf-sf-spin 1s linear infinite;font-size:1rem;}
@keyframes cf-sf-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.sf-quality.sf-loading .sf-status:before{animation:none}}


/* === Fuente integrada: cf-modulos-estructura.css === */
/* CajonFlow V19.15 — shared page composition (not business/audio logic). */
:root{--cf-gap:clamp(16px,1.55vw,24px);--cf-inner:clamp(13px,1.45vw,21px);--cf-border:#168f9b;--cf-surface:#092e3a}
#reader#reader.cf-modular .reader-song-layout.cfm-layout{
 display:flex!important;flex-direction:column!important;width:100%!important;
 align-items:stretch!important;gap:var(--cf-gap)!important;min-width:0!important;
}
#reader#reader.cf-modular .reader-song-layout>.cf-module-score{width:100%!important;min-width:0!important;order:0!important}
#reader#reader.cf-modular .reader-song-layout>.cf-practice-shell{
 display:block!important;order:1!important;width:100%!important;min-width:0!important;
 padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
#reader#reader.cf-modular .cfm-practice-grid,
main.wrap .sim-practice.cf-modular .sim-practice-layout.cfm-traditional-grid{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:var(--cf-gap)!important;width:100%!important;min-width:0!important;
 align-items:start!important;
}
#reader#reader.cf-modular .cfm-practice-grid>.cf-module-simulator,
main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cf-module-simulator{
 grid-column:1!important;grid-row:1!important;min-width:0!important;
 width:100%!important;max-width:none!important;align-self:start!important;
}
#reader#reader.cf-modular .cfm-practice-grid>.cfm-control-stack,
main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cfm-control-stack{
 grid-column:2!important;grid-row:1!important;min-width:0!important;
 width:100%!important;display:flex!important;flex-direction:column!important;
 gap:var(--cf-gap)!important;align-items:stretch!important;align-self:start!important;
}
#reader#reader.cf-modular .cfm-control-stack>.cf-module-mixer,
main.wrap .sim-practice.cf-modular .cfm-control-stack>.cf-traditional-mixer{
 width:100%!important;min-width:0!important;max-width:none!important;
}
#reader#reader.cf-modular .reader-song-layout[data-view=score]>.cf-practice-shell{display:none!important}
#reader#reader.cf-modular .reader-song-layout[data-view=hands]>.cf-module-score{display:none!important}
main.wrap .sim-practice.cf-modular{
 padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
 margin:0 0 var(--cf-gap)!important;
}
main.wrap .sim-practice.cf-modular .sim-practice-head{padding:0 0 9px!important;margin-bottom:var(--cf-gap)!important}
main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cf-module-score{
 grid-column:1/-1!important;grid-row:1!important;min-width:0!important;order:0!important;
}
main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cf-module-simulator{grid-row:2!important}
main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cfm-control-stack{grid-row:2!important}
main.wrap .sim-practice.cf-modular .cfm-traditional-grid[data-view=score]>.cf-module-simulator,
main.wrap .sim-practice.cf-modular .cfm-traditional-grid[data-view=score]>.cfm-control-stack{display:none!important}
main.wrap .sim-practice.cf-modular .cfm-traditional-grid[data-view=hands]>.cf-module-score{display:none!important}
main.wrap .sim-practice.cf-modular .cfm-traditional-grid[data-view=hands]>.cf-module-simulator,
main.wrap .sim-practice.cf-modular .cfm-traditional-grid[data-view=hands]>.cfm-control-stack{grid-row:1!important}
main.wrap .cf-module,#reader#reader.cf-modular .cf-module{box-sizing:border-box!important;min-width:0!important}
/* Accessory page: transport is first module on right. Songs: transport stays below hands. */
#reader#reader.cf-modular .cfm-control-stack>.cf-module-mixer{display:flex!important;flex-direction:column!important}
#reader#reader.cf-modular .cf-mobile-mixer-button{display:none!important}
@media(max-width:850px){
 #reader#reader.cf-modular .cfm-practice-grid,
 main.wrap .sim-practice.cf-modular .sim-practice-layout.cfm-traditional-grid{grid-template-columns:minmax(0,1fr)!important}
 #reader#reader.cf-modular .cfm-practice-grid>.cf-module-simulator,
 main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cf-module-simulator{grid-column:1!important;grid-row:1!important}
 #reader#reader.cf-modular .cfm-practice-grid>.cfm-control-stack,
 main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cfm-control-stack{grid-column:1!important;grid-row:2!important}
 main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cf-module-score{grid-column:1!important;grid-row:1!important}
 main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cf-module-simulator{grid-row:2!important}
 main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cfm-control-stack{grid-row:3!important}
 main.wrap .sim-practice.cf-modular .cfm-traditional-grid[data-view=hands]>.cf-module-simulator{grid-row:1!important}
 main.wrap .sim-practice.cf-modular .cfm-traditional-grid[data-view=hands]>.cfm-control-stack{grid-row:2!important}
}

/* V19.16 proportional alignment: control column uses natural height, same top as simulator. */
#reader#reader.cf-modular .cfm-practice-grid,
main.wrap .sim-practice.cf-modular .cfm-traditional-grid{align-items:start!important;row-gap:var(--cf-gap)!important;column-gap:var(--cf-gap)!important}
#reader#reader.cf-modular .cfm-control-stack,
main.wrap .sim-practice.cf-modular .cfm-control-stack{align-self:start!important;gap:var(--cf-gap)!important}
#reader#reader.cf-modular .reader-song-layout>.cf-practice-shell{margin-top:0!important}

/* V19.18: identical module composition; the player never lives inside the simulator. */
#reader#reader.cf-modular .reader-song-layout[data-view=score]>.cf-practice-shell{display:block!important}
#reader#reader.cf-modular .reader-song-layout[data-view=score] .cfm-practice-grid{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
}
#reader#reader.cf-modular .reader-song-layout[data-view=score] .cfm-practice-grid>.cf-module-simulator{display:none!important}
#reader#reader.cf-modular .reader-song-layout[data-view=score] .cfm-practice-grid>.cfm-control-stack{
 display:flex!important;grid-column:1!important;grid-row:1!important;width:100%!important;
}
main.wrap .sim-practice.cf-modular .cfm-traditional-grid[data-view=score]>.cfm-control-stack{
 display:flex!important;grid-column:1/-1!important;grid-row:2!important;
}
#reader#reader.cf-modular .cfm-practice-grid>.cfm-control-stack,
main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cfm-control-stack{
 align-self:start!important;justify-content:flex-start!important;
}


/* === Fuente integrada: cf-modulo-partitura.css === */
/* MODULE 1 / SCORE: score occupies full width, view control belongs here. */
#reader#reader.cf-modular .reader-score-module.cf-module-score,
main.wrap .sim-practice.cf-modular .sim-score-side.cf-module-score{
 background:var(--cf-surface)!important;border:1px solid var(--cf-border)!important;
 border-radius:17px!important;padding:var(--cf-inner)!important;margin:0!important;
 box-sizing:border-box!important;overflow:hidden!important;
}
#reader#reader.cf-modular .cf-score-controls{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;
 justify-content:space-between!important;gap:8px 16px!important;margin:0 0 12px!important;
}
#reader#reader.cf-modular .cf-score-controls-title{color:#47e9dd;font-size:clamp(13px,1.2vw,17px)}
#reader#reader.cf-modular .cf-score-view-count{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important}
#reader#reader.cf-modular .cf-score-view-count select{min-height:34px!important;min-width:120px!important}
#reader#reader.cf-modular .cf-score-page-navigation{
 display:flex!important;align-items:center!important;justify-content:center!important;
 gap:8px!important;margin:0!important;
}
#reader#reader.cf-modular .reader-cards{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:clamp(10px,1.2vw,15px)!important;width:100%!important;
}
#reader#reader.cf-modular .reader-card{min-width:0!important}
main.wrap .sim-practice.cf-modular .sim-score-side .bars{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;
}
main.wrap .sim-practice.cf-modular .sim-score-side .noteintro{margin-bottom:11px!important}
main.wrap .sim-practice.cf-modular .sim-score-side .notefoot{gap:9px 16px!important}
main.wrap .sim-practice.cf-modular .sim-score-side .status{margin-top:12px!important}
@media(max-width:700px){
 #reader#reader.cf-modular .reader-score-module .reader-cards{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
 main.wrap .sim-practice.cf-modular .sim-score-side .bars{grid-template-columns:minmax(0,1fr)!important}
 #reader#reader.cf-modular .cf-score-controls{gap:8px!important}
 #reader#reader.cf-modular .cf-score-page-navigation{flex:1 1 100%!important;justify-content:center!important}
}

/* V19.17 / Shared header: all controls on one vertical axis, right aligned.
   Grouping is created by cf-modulos.js; the working select/buttons are moved, not duplicated. */
#reader#reader.cf-modular .reader-score-module .cf-score-controls{
 display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
 justify-content:space-between!important;align-items:center!important;
 gap:12px 18px!important;min-height:45px!important;margin-bottom:14px!important;
}
#reader#reader.cf-modular .cf-score-controls-title{
 flex:0 1 auto!important;align-self:center!important;margin:0!important;line-height:1.3!important;
}
#reader#reader.cf-modular .cf-score-actions{
 display:flex!important;flex:0 1 auto!important;min-width:0!important;align-items:center!important;
 justify-content:flex-end!important;gap:clamp(12px,1.6vw,24px)!important;margin-left:auto!important;
}
#reader#reader.cf-modular .cf-score-actions>.cf-score-view-count,
#reader#reader.cf-modular .cf-score-actions>.cf-score-page-navigation{
 display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;
 gap:9px!important;margin:0!important;padding:0!important;min-height:42px!important;
}
#reader#reader.cf-modular .cf-score-actions .reader-layout-control select{max-width:none!important;min-width:116px!important;min-height:37px!important}
#reader#reader.cf-modular .cf-score-actions .cf-page-label{
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 min-width:96px!important;line-height:1.25!important;gap:2px!important;margin:0!important;
}
#reader#reader.cf-modular .cf-score-actions button.reader-round{width:39px!important;height:39px!important;min-width:39px!important;padding:0!important}
@media(max-width:650px){
 #reader#reader.cf-modular .reader-score-module .cf-score-controls{gap:8px!important}
 #reader#reader.cf-modular .cf-score-actions{width:auto!important;flex:1 1 100%!important;justify-content:flex-end!important;gap:10px!important}
 #reader#reader.cf-modular .cf-score-actions .reader-layout-control{display:flex!important}
 #reader#reader.cf-modular .cf-score-actions .cf-page-label{min-width:78px!important}
 #reader#reader.cf-modular .cf-score-actions button.reader-round{width:35px!important;height:35px!important;min-width:35px!important}
 #reader#reader.cf-modular .cf-score-actions .reader-layout-control select{min-width:105px!important;padding-right:13px!important}
}
@media(max-width:340px){
 #reader#reader.cf-modular .cf-score-actions{gap:5px!important}
 #reader#reader.cf-modular .cf-score-actions .cf-page-label{min-width:68px!important}
 #reader#reader.cf-modular .cf-score-actions button.reader-round{width:30px!important;height:34px!important;min-width:30px!important}
}


/* === Fuente integrada: cf-modulo-simulador.css === */
/* MODULE 2 / HAND SIMULATOR: photographic stage flush from edge to edge. */
#reader#reader.cf-modular .cfm-practice-grid>.cf-module-simulator,
main.wrap .sim-practice.cf-modular .sim-practice-layout>.cf-module-simulator{
 box-sizing:border-box!important;padding:0!important;margin:0!important;
 background:var(--cf-surface)!important;border:1px solid var(--cf-border)!important;
 border-radius:17px!important;overflow:hidden!important;
}
#reader#reader.cf-modular .cf-module-simulator .reader-song-sim-title,
main.wrap .sim-practice.cf-modular .cf-module-simulator .sim-arthead{
 padding:13px 14px!important;margin:0!important;min-height:44px!important;
 display:flex!important;gap:9px!important;align-items:center!important;justify-content:space-between!important;
}
#reader#reader.cf-modular .reader-song-layout .reader-practice-grid .cf-module-simulator #songSimulator,
#reader#reader.cf-modular.song-mode .reader-song-layout .cf-module-simulator #songSimulator,
#reader#reader.cf-modular.accessory-inline .reader-song-layout .cf-module-simulator #songSimulator,
main.wrap .sim-practice.cf-modular .sim-artboard #cajonSimulator{
 display:block!important;width:100%!important;max-width:100%!important;
 height:auto!important;max-height:none!important;min-height:0!important;
 object-fit:contain!important;margin:0!important;padding:0!important;
 border:0!important;overflow:hidden!important;
}
#reader#reader.cf-modular .cf-module-simulator #songSimDescription,
main.wrap .sim-practice.cf-modular .cf-module-simulator .sim-view-explainer{
 padding:9px 13px!important;margin:0!important;line-height:1.45!important;
 font-size:12px!important;color:#b2d1d6!important;
}
#reader#reader.cf-modular .cf-module-simulator .cf-sim-test,
main.wrap .sim-practice.cf-modular .cf-module-simulator .sim-try{
 display:flex!important;flex-wrap:wrap!important;gap:7px!important;
 align-items:center!important;justify-content:flex-start!important;
 padding:10px 13px!important;margin:0!important;min-width:0!important;
}
main.wrap .sim-practice.cf-modular .cf-module-simulator .sim-artboard{width:100%!important;margin:0!important;padding:0!important;overflow:hidden!important}
main.wrap .sim-practice.cf-modular .cf-module-simulator .sim-feedback,
main.wrap .sim-practice.cf-modular .cf-module-simulator .sim-hand-legend{margin:8px 13px!important}
@media(max-width:700px){
 #reader#reader.cf-modular .cf-module-simulator .reader-song-sim-title{font-size:12px!important}
}
#reader#reader.cf-modular .cf-sim-test button,
#reader#reader.cf-modular .cf-sim-test select{
 border:1px solid rgba(69,159,161,.52)!important;border-radius:8px!important;
 background:#1c4553!important;color:#edfdfd!important;
 padding:6px 9px!important;font:inherit!important;min-height:32px!important;
}
#reader#reader.cf-modular .cf-sim-test label{display:inline-flex!important;align-items:center!important;gap:5px!important}
/* Legacy reader styles removed this border; restore identical module boundaries. */
#reader#reader.cf-modular.accessory-inline .reader-song-layout .cfm-practice-grid>.cf-module-simulator,
#reader#reader.cf-modular.song-mode .reader-song-layout .cfm-practice-grid>.cf-module-simulator{
 border:1px solid var(--cf-border)!important;border-radius:17px!important;
 overflow:hidden!important;background:var(--cf-surface)!important;padding:0!important;
 justify-content:flex-start!important;align-items:stretch!important;
}

/* V19.16: photo references. Remove only unnecessary text (the live traditional label remains for JS). */
main.wrap .sim-practice.cf-modular .cf-module-simulator .sim-feedback{
  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;border:0!important;
}
main.wrap .sim-practice.cf-modular .cf-module-simulator .sim-hand-legend{
  margin:0!important;padding:8px 10px 3px!important;display:flex!important;
  justify-content:center!important;align-items:center!important;gap:16px!important;
  color:#b2d5db!important;font-size:12px!important;
}
main.wrap .sim-practice.cf-modular .cf-module-simulator .sim-try{
  padding:7px 12px 13px!important;justify-content:center!important;gap:7px!important;
  border-top:0!important;
}
#reader#reader.cf-modular.accessory-inline .cf-module-simulator #songSimDescription{display:none!important}
#reader#reader.cf-modular .cf-module-simulator .cf-sim-hand-choice{display:none!important}
#reader#reader.cf-modular.accessory-inline .cf-module-simulator .cf-sim-hand-choice{
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex-wrap:wrap!important;gap:10px!important;margin:0!important;padding:8px 10px 2px!important;
  color:#b7d7db!important;font-size:12px!important;
}
#reader#reader.cf-modular.accessory-inline .cf-module-simulator .cf-static-hand-label{
  font:inherit!important;background:none!important;border:0!important;padding:0!important;color:#bdd5dc!important;
}
#reader#reader.cf-modular.accessory-inline .cf-module-simulator .cf-sim-test{justify-content:center!important;gap:7px!important;padding:7px 10px 10px!important}
#reader#reader.cf-modular.accessory-inline .cf-module-simulator .cf-sim-test label:has(#cfSimTestHand){
  position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;
  clip:rect(0,0,0,0)!important;white-space:nowrap!important;
}
/* Accessory switches are now an independent bottom strip of the simulator. */
#reader#reader.cf-modular.accessory-inline .cf-module-simulator>.cf-player-instruments{
  display:block!important;position:static!important;width:100%!important;box-sizing:border-box!important;
  padding:12px 14px!important;margin:0!important;border-top:1px solid #275765!important;
  border-bottom:0!important;background:#0b3440!important;
}
#reader#reader.cf-modular.accessory-inline .cf-module-simulator>.cf-player-instruments summary{display:none!important}
#reader#reader.cf-modular.accessory-inline .cf-module-simulator>.cf-player-instruments .switches{
  display:flex!important;gap:12px 20px!important;flex-wrap:wrap!important;justify-content:center!important;
}
#reader#reader.cf-modular .cf-module-simulator .reader-song-sim-title,
main.wrap .sim-practice.cf-modular .cf-module-simulator .sim-arthead{box-sizing:border-box!important}

/* V19.18 MASTER SIMULATOR: identical rows in Traditional, Accessories and Songs. */
#reader#reader.cf-modular .cf-module-simulator>.cf-sim-rows,
main.wrap .sim-practice.cf-modular .cf-module-simulator>.cf-sim-rows{
 width:100%!important;box-sizing:border-box!important;display:flex!important;
 flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
 margin:0!important;padding:0!important;background:#0b3440!important;
}
#reader#reader.cf-modular .cf-module-simulator .cf-sim-rows>.cf-sim-row,
main.wrap .sim-practice.cf-modular .cf-module-simulator .cf-sim-rows>.cf-sim-row{
 box-sizing:border-box!important;width:100%!important;min-height:44px!important;
 padding:7px clamp(10px,1.3vw,16px)!important;margin:0!important;
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:center!important;gap:10px!important;flex-wrap:wrap!important;
 border-top:1px solid rgba(73,147,155,.36)!important;
}
#reader#reader.cf-modular .cf-module-simulator .cf-sim-rows>.cf-sim-row--hand .cf-sim-hand-choice,
main.wrap .sim-practice.cf-modular .cf-module-simulator .cf-sim-rows>.cf-sim-row--hand .sim-hand-legend{
 display:flex!important;position:static!important;width:100%!important;min-height:30px!important;
 margin:0!important;padding:0!important;align-items:center!important;justify-content:center!important;
 gap:12px!important;flex-wrap:wrap!important;
}
#reader#reader.cf-modular .cf-module-simulator .cf-sim-rows>.cf-sim-row--hand .cf-static-hand-label,
main.wrap .sim-practice.cf-modular .cf-module-simulator .cf-sim-rows>.cf-sim-row--hand .cf-static-hand-label{
 display:inline-block!important;font:inherit!important;font-size:12px!important;line-height:1.3!important;
 padding:2px 8px!important;margin:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;color:#bbd3d9!important;cursor:default!important;user-select:none;
}
#reader#reader.cf-modular .cf-module-simulator .cf-sim-rows>.cf-sim-row--test .cf-sim-test,
main.wrap .sim-practice.cf-modular .cf-module-simulator .cf-sim-rows>.cf-sim-row--test .sim-try{
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex-wrap:wrap!important;gap:8px!important;
 width:100%!important;margin:0!important;padding:0!important;border:0!important;
 font-size:12px!important;min-height:30px!important;
}
#reader#reader.cf-modular .cf-sim-rows>.cf-sim-row--test .cf-sim-test>span,
main.wrap .sim-practice.cf-modular .cf-sim-rows>.cf-sim-row--test .sim-try>span{
 display:inline!important;width:auto!important;text-align:center!important;white-space:nowrap!important;
}
#reader#reader.cf-modular .cf-sim-rows>.cf-sim-row--test .cf-sim-test label:has(#cfSimTestHand){
 position:static!important;width:auto!important;height:auto!important;overflow:visible!important;
 clip:auto!important;white-space:nowrap!important;
}
main.wrap .sim-practice.cf-modular .cf-module-simulator .cf-hand-test-select{
 display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important;
 color:#bddee3!important;font-size:12px!important;
}
main.wrap .sim-practice.cf-modular .cf-module-simulator .cf-hand-test-select select{
 background:#153f4d!important;color:#eafafa!important;border:1px solid #367984!important;
 border-radius:7px!important;padding:5px 7px!important;font:inherit!important;
}
#reader#reader.cf-modular .cf-sim-rows>.cf-sim-row--test .cf-sim-test button,
main.wrap .sim-practice.cf-modular .cf-sim-rows>.cf-sim-row--test .sim-try button{
 box-sizing:border-box!important;min-height:32px!important;padding:6px 10px!important;margin:0!important;
 font-size:12px!important;line-height:1.1!important;border-radius:8px!important;
}
#reader#reader.cf-modular .cf-sim-rows>.cf-sim-row--instruments>.cf-player-instruments,
main.wrap .sim-practice.cf-modular .cf-sim-rows>.cf-sim-row--instruments>.cf-traditional-instruments{
 display:block!important;position:static!important;box-sizing:border-box!important;width:100%!important;
 padding:0!important;margin:0!important;background:none!important;border:0!important;
}
#reader#reader.cf-modular .cf-sim-rows>.cf-sim-row--instruments>.cf-player-instruments summary{display:none!important}
#reader#reader.cf-modular .cf-sim-rows>.cf-sim-row--instruments>.cf-player-instruments .switches,
main.wrap .sim-practice.cf-modular .cf-sim-rows>.cf-sim-row--instruments>.cf-traditional-instruments{
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex-wrap:wrap!important;gap:12px 20px!important;
}
#reader#reader.cf-modular .cf-sim-rows>.cf-sim-row--instruments .switch,
main.wrap .sim-practice.cf-modular .cf-sim-rows>.cf-sim-row--instruments .cf-sim-instrument-label{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
 font-size:12px!important;line-height:1.3!important;margin:0!important;
}
#reader#reader.cf-modular .cf-sim-rows>.cf-sim-row--instruments input,
main.wrap .sim-practice.cf-modular .cf-sim-rows>.cf-sim-row--instruments input{margin:0!important}
#reader#reader.cf-modular .cf-module-simulator #songSimDescription{display:none!important}
main.wrap .sim-practice.cf-modular .cf-module-simulator .sim-artboard{border:0!important;border-radius:0!important}
@media(max-width:540px){
 #reader#reader.cf-modular .cf-module-simulator .cf-sim-rows>.cf-sim-row,
 main.wrap .sim-practice.cf-modular .cf-module-simulator .cf-sim-rows>.cf-sim-row{
  padding:8px!important;gap:7px!important;
 }
}


/* === Fuente integrada: cf-modulo-mezclador.css === */
/* MODULE 3 V19.15 / MIXER: same module width and padding in all modes. */
#reader#reader.cf-modular .cfm-control-stack>.cf-module-mixer,
main.wrap .sim-practice.cf-modular .cf-traditional-mixer{
 box-sizing:border-box!important;padding:var(--cf-inner)!important;margin:0!important;
 background:var(--cf-surface)!important;border:1px solid var(--cf-border)!important;
 border-radius:17px!important;min-width:0!important;height:auto!important;
}
#reader#reader.cf-modular .cf-module-mixer .inline-mixer-head,
main.wrap .sim-practice.cf-modular .cf-traditional-mixer .mixer-head{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:10px!important;flex-wrap:wrap!important;margin-bottom:14px!important;
}
#reader#reader.cf-modular .cf-module-mixer .inline-mixer-channels{
 display:flex!important;flex-direction:column!important;gap:9px!important;
 width:100%!important;min-width:0!important;
}
#reader#reader.cf-modular .cf-module-mixer .mixer-channel{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;
 width:100%!important;min-width:0!important;gap:8px!important;
 padding:10px!important;
}
main.wrap .sim-practice.cf-modular .cf-traditional-mixer .mixer{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:12px!important;margin-top:0!important;
}
main.wrap .sim-practice.cf-modular .cf-traditional-mixer .channel{padding:11px!important;min-width:0!important}
@media(max-width:550px){
 main.wrap .sim-practice.cf-modular .cf-traditional-mixer .mixer{grid-template-columns:minmax(0,1fr)!important}
}
#reader#reader.cf-modular.accessory-inline .reader-song-layout .cfm-control-stack>.cf-module-mixer,
#reader#reader.cf-modular.song-mode .reader-song-layout .cfm-control-stack>.cf-module-mixer{
 justify-content:flex-start!important;align-items:stretch!important;gap:11px!important;
}


/* === Fuente integrada: cf-modulo-reproduccion.css === */
/* CAJONFLOW V19.17 — SHARED PLAYBACK MODULE
 * One component per page, one vertical alignment contract.
 * Traditional transport is direct children. Accessory/song transport uses
 * cf-player-top + cf-player-middle + cf-player-options; no clone or new audio.
 */
:root{--cf-play-button:66px;--cf-play-gap:18px;--cf-play-label-gap:4px}

/* Same module shell for traditional & accessory. Songs remain integrated in simulator. */
main.wrap .sim-practice.cf-modular .cfm-control-stack>.cf-module-player,
#reader#reader.cf-modular.accessory-inline .cfm-control-stack>#accessoryUnifiedTransport{
 box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;
 margin:0!important;padding:clamp(16px,1.7vw,24px)!important;
 border:1px solid var(--cf-border)!important;border-radius:17px!important;
 background:var(--cf-surface)!important;box-shadow:none!important;
}
#reader#reader.cf-modular .cf-module-simulator>#accessoryUnifiedTransport:not([hidden]),
#reader#reader.cf-modular .cf-module-score>#accessoryUnifiedTransport:not([hidden]),
main.wrap .sim-practice.cf-modular .cf-module-score>.cf-module-player{
 box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;
 margin:0!important;padding:17px var(--cf-inner)!important;
 border:0!important;border-top:1px solid #275c69!important;border-radius:0!important;
 background:#0b3440!important;box-shadow:none!important;
}
/* Shared two-column first row: actual playback buttons LEFT, tempo RIGHT.
 * They use the SAME central horizontal axis (no alternating row structure). */
main.wrap .sim-practice.cf-modular .cf-module-player,
#reader#reader.cf-modular #accessoryUnifiedTransport:not([hidden]){
 display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;
 grid-template-rows:auto auto auto!important;
 column-gap:clamp(15px,2vw,28px)!important;row-gap:16px!important;
 align-items:center!important;align-content:start!important;
}
/* The original buttons, captions, and event listeners remain intact. */
main.wrap .sim-practice.cf-modular .cf-module-player>.controls,
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-top{
 grid-column:1!important;grid-row:1!important;
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 margin:0!important;padding:0!important;min-width:0!important;
}
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-top>.transport-controls{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 gap:var(--cf-play-gap)!important;margin:0!important;padding:0!important;
}
main.wrap .sim-practice.cf-modular .cf-module-player>.tempo,
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-middle{
 grid-column:2!important;grid-row:1!important;
 display:flex!important;align-items:center!important;justify-content:flex-end!important;
 width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
}
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-middle>.tempo{
 display:flex!important;flex:1 1 auto!important;align-items:center!important;justify-content:flex-end!important;
 flex-wrap:nowrap!important;gap:8px!important;min-width:0!important;margin:0!important;padding:0!important;
}
main.wrap .sim-practice.cf-modular .cf-module-player>.tempo{
 display:flex!important;gap:8px!important;flex-wrap:nowrap!important;
}
main.wrap .sim-practice.cf-modular .cf-module-player>.tempo input[type=range],
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-middle .tempo input[type=range]{
 flex:1 1 80px!important;min-width:38px!important;width:auto!important;max-width:260px!important;
}
/* Align the perceived center of tempo with the round buttons, not with caption baselines. */
main.wrap .sim-practice.cf-modular .cf-module-player>.tempo,
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-middle>.tempo{transform:translateY(-8px)!important}

/* Standard sized playback buttons; matching across all three app views. */
main.wrap .sim-practice.cf-modular .cf-module-player .transport-round,
#reader#reader.cf-modular #accessoryUnifiedTransport .transport-round{
 width:var(--cf-play-button)!important;height:var(--cf-play-button)!important;
 min-width:var(--cf-play-button)!important;min-height:var(--cf-play-button)!important;
 flex:0 0 var(--cf-play-button)!important;display:grid!important;place-items:center!important;
}
main.wrap .sim-practice.cf-modular .cf-module-player .transport-controls,
#reader#reader.cf-modular #accessoryUnifiedTransport .transport-controls{
 display:flex!important;gap:var(--cf-play-gap)!important;align-items:center!important;
}
main.wrap .sim-practice.cf-modular .cf-module-player .transport-unit,
#reader#reader.cf-modular #accessoryUnifiedTransport .transport-unit{
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex-direction:column!important;gap:var(--cf-play-label-gap)!important;
 min-width:var(--cf-play-button)!important;padding:0!important;margin:0!important;
}
main.wrap .sim-practice.cf-modular .cf-module-player .transport-icon,
#reader#reader.cf-modular #accessoryUnifiedTransport .transport-icon{font-size:27px!important}
main.wrap .sim-practice.cf-modular .cf-module-player .transport-caption,
#reader#reader.cf-modular #accessoryUnifiedTransport .transport-caption{line-height:1.2!important;font-size:11px!important;text-align:center!important}

/* Shared second row: options on one line, vertically centered. */
main.wrap .sim-practice.cf-modular .cf-module-player>.checks,
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-options{
 grid-column:1/-1!important;grid-row:2!important;min-width:0!important;
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 gap:8px!important;align-items:stretch!important;
 margin:0!important;padding:12px 0 0!important;border-top:1px solid #275765!important;
}
main.wrap .sim-practice.cf-modular .cf-module-player>.checks,
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-options>.checks{
 display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
 align-items:center!important;justify-content:flex-start!important;
 gap:12px 20px!important;
}
main.wrap .sim-practice.cf-modular .cf-module-player>.checks label,
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-options .checks label{
 display:inline-flex!important;align-items:center!important;gap:6px!important;
 margin:0!important;white-space:nowrap!important;
}
main.wrap .sim-practice.cf-modular .cf-module-player>.checks input,
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-options .checks input{margin:0!important}
/* Traditional extra swing controls have their own third row. */
main.wrap .sim-practice.cf-modular .cf-module-player>#swingPractice:not([hidden]){
 grid-column:1/-1!important;grid-row:3!important;
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 flex-wrap:wrap!important;gap:10px 15px!important;min-width:0!important;
 margin:0!important;padding:0!important;
}
main.wrap .sim-practice.cf-modular .cf-module-player>#swingPractice label,
main.wrap .sim-practice.cf-modular .cf-module-player>#swingPractice select{
 display:inline-flex!important;align-items:center!important;margin:0!important;
}
main.wrap .sim-practice.cf-modular .cf-module-player>#swingPractice small{
 width:100%!important;line-height:1.35!important;margin:0!important;color:#afc8d0!important;
}
/* Page navigation and 2/4 selector are children of SCORE module, never player. */
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-top>.cf-page-navigation,
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-middle>.reader-layout-control,
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-middle>.reader-mobile-layout{display:none!important}
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-instruments{display:block!important;width:100%!important;padding:0!important;border:0!important;background:none!important}
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-instruments summary{display:none!important}
#reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-instruments .switches{
 display:flex!important;align-items:center!important;flex-wrap:wrap!important;
 gap:10px 20px!important;padding:0!important;
}
#reader#reader.cf-modular #accessoryUnifiedTransport[hidden]{display:none!important}

/* Narrow viewport: maintain aligned rows without crushing BPM slider. */
@media(max-width:600px){
 :root{--cf-play-button:55px;--cf-play-gap:12px}
 main.wrap .sim-practice.cf-modular .cf-module-player,
 #reader#reader.cf-modular #accessoryUnifiedTransport:not([hidden]){
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto!important;
  row-gap:13px!important;column-gap:0!important;
 }
 main.wrap .sim-practice.cf-modular .cf-module-player>.controls,
 #reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-top{grid-column:1!important;grid-row:1!important}
 main.wrap .sim-practice.cf-modular .cf-module-player>.tempo,
 #reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-middle{
  grid-column:1!important;grid-row:2!important;justify-content:flex-start!important;
  transform:none!important;
 }
 #reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-middle>.tempo,
 main.wrap .sim-practice.cf-modular .cf-module-player>.tempo{justify-content:flex-start!important;transform:none!important}
 main.wrap .sim-practice.cf-modular .cf-module-player>.checks,
 #reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-options{grid-column:1!important;grid-row:3!important}
 main.wrap .sim-practice.cf-modular .cf-module-player>#swingPractice:not([hidden]){grid-column:1!important;grid-row:4!important}
 main.wrap .sim-practice.cf-modular .cf-module-player>.tempo input[type=range],
 #reader#reader.cf-modular #accessoryUnifiedTransport .cf-player-middle .tempo input[type=range]{max-width:none!important}
}

/* V19.18: same independent transport shell above mixer in EVERY reader mode. */
#reader#reader.cf-modular .cfm-control-stack>#accessoryUnifiedTransport:not([hidden]){
 display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;
 grid-template-rows:auto auto!important;gap:15px clamp(15px,2vw,28px)!important;
 width:100%!important;min-width:0!important;margin:0!important;
 padding:clamp(16px,1.7vw,24px)!important;
 border:1px solid var(--cf-border)!important;border-radius:17px!important;
 background:var(--cf-surface)!important;box-shadow:none!important;
}
@media(max-width:600px){
 #reader#reader.cf-modular .cfm-control-stack>#accessoryUnifiedTransport:not([hidden]){
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;
  row-gap:13px!important;column-gap:0!important;
 }
}


/* V19.33 - simulador compartido: filtros de ejecucion y audio por instrumento. */
.cf-sim-instrument-filters{min-width:0;border:0;border-top:1px solid #285c64;margin:0;padding:12px 10px 6px;color:#dceef0}
.cf-sim-instrument-filters legend{font-weight:800;color:#24dbc4;font-size:clamp(12px,1vw,14px);padding:0 8px}
.cf-sim-instrument-list{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 18px}
.cf-sim-instrument-option{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:clamp(12px,1.2vw,15px);font-weight:650;cursor:pointer;min-height:36px}
.cf-sim-instrument-option input{width:18px;height:18px;accent-color:#16d8c0;cursor:pointer}
#reader#reader.cf-modular .cf-player-instruments[hidden],.cf-player-instruments[hidden],#reader#reader.cf-modular .cf-player-instruments[hidden] *{display:none!important}
#reader#reader.cf-modular .reader-song-layout>.reader-midi-module{order:2!important;width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;border:1px solid var(--cf-border)!important;background:var(--cf-surface)!important;border-radius:17px!important;padding:clamp(14px,2vw,24px)!important;margin:0!important;display:block!important}
#reader#reader.cf-modular .reader-song-layout>.reader-midi-module[hidden]{display:none!important}
#reader .reader-midi-module .midi-mixer{display:block!important;width:100%;max-width:none}
#reader .reader-midi-module .midi-mixer[hidden]{display:none!important}
#reader .reader-midi-module .midi-mixer>details{margin:10px 0;border:1px solid #37737b;border-radius:10px;padding:8px 13px;background:#113944}
#reader .reader-midi-module .midi-mixer>details>summary{display:list-item;cursor:pointer;font-weight:800;color:#c5f8f1;padding:9px 4px;list-style-position:inside}
#reader .reader-midi-module .sf-optional-bank>summary{cursor:pointer;background:#153f48;border-radius:9px;padding:11px 13px;font-weight:750;border:1px solid #37737b}
#reader .reader-midi-module .sf-mode-options{gap:12px}
#reader .reader-midi-module .sf-choice{min-height:64px}
@media(max-width:760px){
  #reader#reader.cf-modular .cfm-practice-grid>.cfm-control-stack{display:contents!important}
  #reader#reader.cf-modular .cfm-practice-grid>.cfm-control-stack>#accessoryUnifiedTransport:not([hidden]){grid-column:1!important;grid-row:1!important;order:0!important}
  #reader#reader.cf-modular .cfm-practice-grid>.cf-module-simulator{grid-column:1!important;grid-row:2!important;order:1!important}
  #reader#reader.cf-modular .cfm-practice-grid>.cfm-control-stack>.cf-module-mixer{grid-column:1!important;grid-row:3!important;order:2!important}
  main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cfm-control-stack{display:contents!important}
  main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cfm-control-stack>.cf-module-player{grid-column:1!important;grid-row:2!important}
  main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cf-module-simulator{grid-row:3!important}
  main.wrap .sim-practice.cf-modular .cfm-traditional-grid>.cfm-control-stack>.cf-traditional-mixer{grid-column:1!important;grid-row:4!important}
  #reader .reader-midi-module{padding:12px!important}
  #reader .reader-midi-module .sf-mode-options{grid-template-columns:minmax(0,1fr)!important}
  .cf-sim-instrument-list{justify-content:flex-start;gap:7px 13px}
  .cf-sim-instrument-option{font-size:12px}
}

/* Expandibles claramente interactivos, nativos y accesibles. */
#reader .reader-midi-module .midi-mixer>details>summary,
#reader .reader-midi-module .sf-optional-bank>summary{list-style:none!important;cursor:pointer!important;display:flex!important;align-items:center!important;gap:10px!important;min-height:44px!important}
#reader .reader-midi-module .midi-mixer>details>summary::-webkit-details-marker,
#reader .reader-midi-module .sf-optional-bank>summary::-webkit-details-marker{display:none!important}
#reader .reader-midi-module .midi-mixer>details>summary::before,
#reader .reader-midi-module .sf-optional-bank>summary::before{content:'▸';color:#15e3c5;font-size:18px;line-height:1;flex:0 0 auto}
#reader .reader-midi-module .midi-mixer>details[open]>summary::before,
#reader .reader-midi-module .sf-optional-bank[open]>summary::before{content:'▾'}
#reader .reader-midi-module details>summary:focus-visible{outline:2px solid #3ce9d0;outline-offset:3px}
/* Navigation buttons keep complete names and align on small phones. */
.cinema-home-nav .cinema-nav-link{white-space:normal;text-align:center;justify-content:center;overflow-wrap:break-word}
.app-header-nav>a{white-space:normal;text-align:center;line-height:1.25}

/* Los interruptores heredados permanecen solo para compatibilidad con la logica previa. */
.panel.transport .switches[hidden],#reader .cf-player-instruments[hidden]{display:none!important}
/* Vista solo Manos: el reproductor antecede siempre al simulador en móvil. */
@media(max-width:760px){
 main.wrap .sim-practice.cf-modular .cfm-traditional-grid[data-view=hands]>.cf-module-simulator{grid-row:2!important}
 main.wrap .sim-practice.cf-modular .cfm-traditional-grid[data-view=hands]>.cfm-control-stack{display:contents!important}
 main.wrap .sim-practice.cf-modular .cfm-traditional-grid[data-view=hands]>.cfm-control-stack>.cf-module-player{grid-column:1!important;grid-row:1!important}
 main.wrap .sim-practice.cf-modular .cfm-traditional-grid[data-view=hands]>.cfm-control-stack>.cf-traditional-mixer{grid-column:1!important;grid-row:3!important}
}

/* V19.41: opcion pedagogica integrada al reproductor de canciones tradicionales. */
#reader#reader #accessoryUnifiedTransport .cf-player-options .checks label.cf-ghost-detail{
 display:inline-flex!important;align-items:center;gap:.32rem;min-height:32px;
 padding:.27rem .52rem!important;border:1px solid rgba(26,215,197,.4);border-radius:10px;
 background:rgba(15,166,151,.10);color:#d4faf3;font-weight:650;cursor:pointer;
 font-size:clamp(.66rem,.8vw,.83rem)!important;line-height:1.35;
}
#reader#reader #accessoryUnifiedTransport .cf-player-options .checks label.cf-ghost-detail:has(input:checked){
 background:rgba(20,203,185,.18);border-color:#13d7bf;
}
#reader#reader #accessoryUnifiedTransport .cf-player-options .checks label.cf-ghost-detail:has(input:disabled){
 opacity:.6;cursor:not-allowed;
}

/* === V19.54 · Navegación coherente, tamaños fijos y sin saltos del simulador === */
:root{--cf-header-action:5.6rem;--cf-header-logo:clamp(9.7rem,15vw,13.6rem)}
#mainApp>.app-global-header,
#reader#reader:not([hidden])>.reader-site-header,
body>.app-global-header{
 display:grid!important;grid-template-columns:var(--cf-header-logo) minmax(0,1fr) var(--cf-header-action)!important;
 gap:.65rem!important;align-items:center!important;box-sizing:border-box!important;width:100%!important;
}
#mainApp>.app-global-header .top{display:contents!important}
#mainApp>.app-global-header .top .app-brand-link,
#reader#reader .reader-site-header .app-brand-link,
body>.app-global-header .app-brand-link{
 grid-column:1!important;grid-row:1!important;max-width:100%!important;min-width:0!important;
}
#mainApp>.app-global-header .nav,
#reader#reader .reader-site-header .app-header-nav,
body>.app-global-header .app-header-nav{
 display:grid!important;grid-column:2!important;grid-row:1!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:.5rem!important;
 margin:0!important;padding:0!important;align-items:stretch!important;
}
#mainApp>.app-global-header .top .settings-link,
#reader#reader .reader-site-header .reader-header-exit{
 grid-column:3!important;grid-row:1!important;justify-self:center!important;max-width:100%!important;margin:0!important;
}
body>.app-global-header:after{content:'';width:var(--cf-header-action);height:1px;grid-column:3;grid-row:1}
#mainApp>.app-global-header .nav>a,#mainApp>.app-global-header .nav>button,
#reader#reader .app-header-nav>a,body>.app-global-header .app-header-nav>a{
 height:3.65rem!important;min-height:3.65rem!important;min-width:0!important;max-width:100%!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 padding:.4rem!important;box-sizing:border-box!important;line-height:1.15!important;
 text-align:center!important;overflow-wrap:normal!important;word-break:normal!important;
}
.app-global-header .app-brand-logo{display:block;width:100%;max-width:var(--cf-header-logo);height:auto;aspect-ratio:3/1;object-fit:contain}
/* El estado sigue disponible para lectores de pantalla, pero nunca cambia la altura del escenario. */
#reader#reader .reader-song-sim-title #songSimStatus,
#reader#reader.accessory-inline .reader-song-sim-title #songSimStatus,
.sim-arthead #simBeatText{
 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;
 clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;
}
#reader#reader .reader-song-simulator .reader-song-sim-title{height:3.3rem!important;min-height:3.3rem!important;max-height:3.3rem!important;flex-wrap:nowrap!important;align-items:center!important;box-sizing:border-box!important}
#reader#reader .reader-song-sim-title .reader-hands-title{max-width:100%;min-width:0}
@media(max-width:1170px){
 #mainApp>.app-global-header,
 #reader#reader:not([hidden])>.reader-site-header,
 body>.app-global-header{grid-template-columns:minmax(0,1fr) var(--cf-header-action)!important;grid-template-rows:auto auto!important}
 #mainApp>.app-global-header .top .app-brand-link,
 #reader#reader .reader-site-header .app-brand-link,
 body>.app-global-header .app-brand-link{grid-column:1!important;grid-row:1!important}
 #mainApp>.app-global-header .top .settings-link,
 #reader#reader .reader-site-header .reader-header-exit{grid-column:2!important;grid-row:1!important}
 body>.app-global-header:after{grid-column:2;grid-row:1}
 #mainApp>.app-global-header .nav,
 #reader#reader .reader-site-header .app-header-nav,
 body>.app-global-header .app-header-nav{grid-column:1/-1!important;grid-row:2!important}
}
@media(max-width:620px){
 #mainApp>.app-global-header .nav,
 #reader#reader .reader-site-header .app-header-nav,
 body>.app-global-header .app-header-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:.35rem!important}
 #mainApp>.app-global-header .nav>:nth-child(-n+3),
 #reader#reader .app-header-nav>:nth-child(-n+3),
 body>.app-global-header .app-header-nav>:nth-child(-n+3){grid-column:span 2!important}
 #mainApp>.app-global-header .nav>:nth-child(n+4),
 #reader#reader .app-header-nav>:nth-child(n+4),
 body>.app-global-header .app-header-nav>:nth-child(n+4){grid-column:span 3!important}
 #mainApp>.app-global-header .nav>a,#mainApp>.app-global-header .nav>button,
 #reader#reader .app-header-nav>a,body>.app-global-header .app-header-nav>a{height:3.55rem!important;min-height:3.55rem!important;font-size:clamp(.59rem,2.5vw,.8rem)!important;padding:.25rem!important}
}
