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

/* === Fuente integrada: cabecera-app.css === */
/* Laboratorio V18.8: encabezado y reproductor ampliado. Estilos agregados, no modifican el motor. */
.app-global-header{position:sticky;top:0;z-index:45;background:#0d1a24f4;backdrop-filter:blur(16px);border:1px solid #36505e;border-radius:15px;padding:10px 14px 12px;margin-bottom:17px;box-shadow:0 8px 22px #0003}
#mainApp>.app-global-header .top{margin:0 0 8px;align-items:center}#mainApp>.app-global-header .brand.home-link{max-width:unset}#mainApp>.app-global-header .brand.home-link .mark{width:40px;height:40px;border-radius:12px}#mainApp>.app-global-header .brand.home-link .mark .ico{width:24px;height:24px}#mainApp>.app-global-header .home-link strong.brand-title{font-size:clamp(17px,2vw,25px);line-height:1;display:block;margin-top:3px}#mainApp>.app-global-header .brand-title span{display:inline!important}#mainApp>.app-global-header .brand-title span+span:before{content:' '}
#mainApp>.app-global-header .nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:0!important;padding:0!important;position:static!important;border:0!important;background:transparent!important;backdrop-filter:none!important}
#mainApp>.app-global-header .nav>a,#mainApp>.app-global-header .nav>button{display:flex!important;flex:1;align-items:center;justify-content:center;gap:8px;min-width:0!important;min-height:44px!important;font-size:clamp(11px,1.05vw,15px)!important;padding:8px!important;white-space:normal!important;line-height:1.25!important;border:1px solid #3a5968!important;border-radius:10px!important;background:#213544!important;color:#e9f4f5!important}
#mainApp>.app-global-header .nav .active,#mainApp>.app-global-header .nav .nav-traditional:hover{color:#7df6d4!important;border-color:#32caa5!important;background:#19493f!important}
.app-brand-link{display:flex;align-items:center;gap:10px;color:#f1f8f8;text-decoration:none;min-width:0}.app-brand-link strong{font-size:clamp(17px,2vw,23px);letter-spacing:-.035em;line-height:1.1}.app-brand-link em{color:#30dbb7;font-style:normal}.app-brand-mark{width:38px;height:38px;display:grid;place-items:center;background:#1a5146;border-radius:11px;color:#33e8c4;font-size:30px;flex:none}
.app-header-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:9px}.app-header-nav a{padding:12px 8px;border:1px solid #3d5667;background:#203544;color:#e8f2f5;border-radius:10px;font-weight:850;font-size:clamp(10px,1vw,14px);text-align:center;line-height:1.25;text-decoration:none}.app-header-nav a[aria-current=page]{background:#17493d;color:#6ff0cd;border-color:#33d2aa}
.app-help{border:1px solid #3b6c66;background:#173138;border-radius:13px;padding:12px 16px;margin:13px 0}.app-help summary{font-size:14px;color:#8af1d6;cursor:pointer;font-weight:850}.app-help p{font-size:13px;color:#d0e1e8;line-height:1.65;margin:10px 0 5px}
.song-examples{background:#17303b;border:1px solid #4a756b;border-radius:16px;padding:17px;margin:0 0 19px}.song-examples h3{margin:0 0 7px;font-size:19px}.song-examples p{font-size:13px;line-height:1.5;color:#b4cbd5}.example-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.example-actions button{padding:11px 13px}.song-demo-status{min-height:17px;color:#76e8ca!important}
/* Fullscreen reader: same navigation in every area; the library reader remains fixed. */
#reader{grid-template-rows:auto auto auto minmax(0,1fr) auto auto auto!important;gap:6px!important}
#reader .reader-site-header{position:relative;top:auto;margin:0!important;padding:6px 10px!important;display:flex;align-items:center;gap:16px}.reader-site-header .app-header-nav{flex:1;margin:0}.reader-site-header .app-header-nav a{padding:7px 5px}.reader-site-header .app-brand-mark{width:27px;height:27px;font-size:24px}.reader-site-header .app-brand-link strong{font-size:14px}
#reader .reader-song-layout{display:flex;gap:10px;min-height:0;overflow:hidden;width:100%}#reader .reader-song-layout>.reader-cards{flex:1;min-width:0}#reader .reader-song-simulator{display:none;min-width:0;width:33%;border:1px solid #3c6170;background:#132633;border-radius:14px;padding:8px;align-self:stretch;overflow:hidden;flex-direction:column;justify-content:center}#reader.song-mode .reader-song-layout[data-view=both] .reader-song-simulator,#reader.song-mode .reader-song-layout[data-view=hands] .reader-song-simulator{display:flex}#reader.song-mode .reader-song-layout[data-view=hands]>.reader-cards{display:none}#reader.song-mode .reader-song-layout[data-view=hands] .reader-song-simulator{width:min(100%,730px);margin:0 auto}#reader.song-mode .reader-song-layout[data-view=score] .reader-song-simulator{display:none}
#reader .reader-view-switch{display:none;align-items:center;justify-content:center;gap:4px;background:#132733;border:1px solid #3f606e;border-radius:11px;padding:3px;width:max-content;margin:0 auto}#reader.song-mode .reader-view-switch{display:flex}#reader .reader-view-switch button{border:0;background:transparent;color:#c1d4dc;border-radius:8px;padding:5px 14px;font-size:12px;font-weight:850}#reader .reader-view-switch button[aria-pressed=true]{background:#23d5af;color:#063d34}
.reader-song-sim-title{display:flex;justify-content:space-between;gap:5px;font-size:11px;font-weight:900;color:#7ceaca}.reader-song-sim-title span{font-weight:650;color:#c8dade;text-align:right}.reader-song-simulator svg{display:block;width:100%;max-height:100%;min-height:0;flex:1}.reader-song-simulator p{font-size:10px;color:#b7c9d0;margin:3px 0 0;text-align:center}.song-sim-zone{opacity:0;transition:opacity .07s}.song-sim-zone.active{opacity:1}
#reader .reader-round{width:45px;height:45px;border-radius:50%!important;display:grid;place-items:center;padding:0!important;font-size:16px;margin-inline:5px}#reader .reader-bottom .controls{gap:12px;justify-content:center}#reader .reader-bottom #readerPlay{border-radius:25px;min-height:44px;padding:8px 26px}
#reader .reader-inline-mixer{display:block!important;min-height:0;overflow:hidden;background:#142a33;border:1px solid #396457;border-radius:13px;padding:7px 11px}#reader .inline-mixer-head{margin:0 0 3px!important}.reader-inline-mixer .mixer-channels{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.reader-inline-mixer .mixer-channel{min-width:0;padding:4px 6px;border-radius:9px}.reader-inline-mixer .mixer-channel-top{gap:4px;margin-bottom:3px}.reader-inline-mixer .mixer-symbol{width:25px;height:25px;font-size:10px;border-radius:6px}.reader-inline-mixer .mixer-channel-name{font-size:10px}.reader-inline-mixer .mixer-mute{font-size:10px;min-width:22px;padding:3px}.reader-inline-mixer .mixer-slider{width:100%;min-width:0;accent-color:#55e0bd}.reader-inline-mixer .mixer-value{font-size:10px}.reader-inline-mixer .inline-mixer-title{font-size:12px}
@media(max-width:860px){#reader .reader-site-header .app-header-nav a{font-size:10px}#reader .reader-site-header .app-brand-link strong{font-size:12px}#reader .reader-song-layout[data-view=both]{flex-direction:column}#reader.song-mode .reader-song-layout[data-view=both] .reader-song-simulator{width:100%;max-height:36%}#reader.song-mode .reader-song-layout[data-view=both]>.reader-cards{min-height:0}#reader .reader-song-simulator svg{max-height:100%}}
@media(max-width:650px){.app-global-header{position:sticky;top:0;padding:6px;margin-bottom:10px;border-radius:11px}#mainApp>.app-global-header .top{margin:0 0 5px}#mainApp>.app-global-header .nav{gap:4px!important}#mainApp>.app-global-header .nav>a,#mainApp>.app-global-header .nav>button{min-height:51px!important;font-size:10px!important;padding:5px 2px!important;flex-direction:column!important;gap:3px!important}.app-header-nav{gap:3px}.app-header-nav a{font-size:10px!important;padding:8px 3px}.reader-site-header .app-brand-mark{display:none}#reader .reader-site-header{padding:3px!important;gap:5px;display:block}.reader-site-header .app-brand-link{justify-content:center}.reader-site-header .app-header-nav{margin:5px 0 0}.reader-site-header .app-header-nav a{font-size:9px!important;padding:5px 2px}.reader-inline-mixer .mixer-channels{display:flex!important;overflow-x:auto;gap:4px}.reader-inline-mixer .mixer-channel{min-width:115px;flex:none}.reader-song-layout .reader-song-simulator{max-height:100%}#reader .reader-round{width:38px;height:38px}#reader .reader-view-switch button{padding:5px 9px;font-size:11px}#reader .reader-bottom .controls{gap:5px}}
@media(max-height:680px){#reader .reader-site-header{padding:1px 5px!important}.reader-site-header .app-brand-link{display:none}.reader-site-header .app-header-nav{margin:0}.reader-site-header .app-header-nav a{padding:4px}#reader{gap:3px!important}#reader .reader-inline-mixer{padding:4px 7px}#reader .reader-bottom{gap:0}}

/* Lector: tres controles de transporte siempre en una sola fila. */
#reader .reader-bottom .controls{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:12px!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:0!important}
#reader .reader-bottom .controls>*{flex:0 0 auto!important;min-width:0}
#reader .reader-bottom #readerPrev,#reader .reader-bottom #readerNext{display:inline-grid!important;place-items:center;max-width:48px;min-width:42px}
#reader.song-mode .reader-titles .eyebrow{display:none}
@media(max-width:650px){#reader .reader-bottom .controls{gap:5px!important}#reader .reader-top{display:flex;flex-wrap:wrap;gap:4px!important;min-height:0}#reader .reader-titles{flex:1 1 100%;min-width:0}#reader .reader-titles h2{font-size:14px;max-width:100%;white-space:nowrap}#reader .reader-meta{width:100%;justify-content:flex-end;gap:6px}#reader .reader-bottom .controls #readerPlay{padding:7px 13px!important;min-height:40px!important}#reader .reader-bottom .controls .reader-round{width:38px;height:38px;min-width:38px}}

/* En teléfonos, todos los seis volúmenes quedan visibles, sin desplazamiento horizontal oculto. */
@media(max-width:650px){#reader .reader-inline-mixer .mixer-channels{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px!important;overflow:visible!important}#reader .reader-inline-mixer .mixer-channel{width:auto!important;min-width:0!important;padding:3px 4px!important}#reader .reader-inline-mixer .mixer-channel-top{gap:3px!important}#reader .reader-inline-mixer .mixer-channel-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px!important}#reader .reader-inline-mixer .mixer-symbol{width:22px!important;height:22px!important;font-size:10px!important}#reader .reader-inline-mixer .mixer-mute{font-size:0!important;width:20px;min-width:20px!important;overflow:hidden}#reader .reader-inline-mixer .mixer-mute::after{content:'×';font-size:15px!important}#reader .reader-inline-mixer .mixer-slider{height:14px!important}#reader .reader-inline-mixer .mixer-value{font-size:9px!important}}

/* V18.9: un solo visor para Cajón con accesorios y Canciones adaptadas.
 * El error anterior ocultaba el simulador en rhythm-mode. Además, una fila
 * 1fr asignada al mezclador dejaba un gran rectángulo vacío en pantalla.
 */
#reader[hidden]{display:none!important}
#reader:not([hidden]){display:flex!important;flex-direction:column!important;gap:7px!important;overflow:hidden}
#reader:not([hidden])>.reader-site-header,
#reader:not([hidden])>.reader-top,
#reader:not([hidden])>.reader-view-switch,
#reader:not([hidden])>.reader-inline-mixer,
#reader:not([hidden])>.reader-bottom,
#reader:not([hidden])>.reader-next-hint{flex:0 0 auto;min-height:0}
#reader:not([hidden])>.reader-song-layout{flex:1 1 0;min-height:110px;max-height:100%;height:auto;display:flex!important;align-items:stretch;overflow:hidden}
#reader .reader-view-switch{display:flex!important;flex:0 0 auto}
#reader .reader-song-layout>.reader-cards{flex:1 1 0;min-width:0;min-height:0;overflow:hidden}
#reader .reader-song-layout .reader-song-simulator{display:none;min-height:0;min-width:0;width:37%;max-width:540px;flex:0 0 37%;align-self:stretch}
#reader:is(.rhythm-mode,.song-mode) .reader-song-layout[data-view="both"] .reader-song-simulator,
#reader:is(.rhythm-mode,.song-mode) .reader-song-layout[data-view="hands"] .reader-song-simulator{display:flex!important}
#reader:is(.rhythm-mode,.song-mode) .reader-song-layout[data-view="hands"]>.reader-cards{display:none!important}
#reader:is(.rhythm-mode,.song-mode) .reader-song-layout[data-view="hands"] .reader-song-simulator{width:min(100%,780px);flex:1 1 auto;max-width:780px;margin-inline:auto}
#reader:is(.rhythm-mode,.song-mode) .reader-song-layout[data-view="score"] .reader-song-simulator{display:none!important}
#reader .reader-song-simulator svg{display:block;flex:1 1 auto;min-height:0;max-height:100%;width:100%;height:100%}
#reader.rhythm-mode .reader-cards{min-height:0;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important}
#reader .reader-inline-mixer{min-height:0!important;flex:0 0 auto}
#reader .reader-next-hint[hidden]{display:none!important}
#reader .reader-view-switch button:focus-visible{outline:2px solid #2ce5be;outline-offset:2px}
@media(max-width:860px){
 #reader .reader-song-layout[data-view="both"]{flex-direction:column}
 #reader:is(.rhythm-mode,.song-mode) .reader-song-layout[data-view="both"] .reader-song-simulator{width:100%;max-width:none;max-height:47%;flex:1 1 47%}
 #reader .reader-song-layout[data-view="both"]>.reader-cards{flex:1 1 53%}
}
@media(max-width:650px){
 #reader:not([hidden]){gap:4px!important}
 #reader:not([hidden])>.reader-song-layout{min-height:85px}
 #reader .reader-song-simulator{padding:5px}
 #reader .reader-song-simulator p{font-size:9px}
}
@media(max-height:540px){
 #reader:not([hidden]){gap:3px!important}
 #reader .reader-site-header{padding:2px!important}
 #reader .reader-view-switch{padding:1px}
 #reader .reader-view-switch button{padding:3px 7px}
 #reader .reader-bottom .reader-range{display:none}
}


/* V19.0 — estructura compartida: 2 compases arriba / simulador y mezcla iguales debajo.
   Todos los modos del lector utilizan los mismos controles reales de audio y tempo. */
.metronome-icon{width:19px;height:19px;object-fit:contain;vertical-align:middle;flex:none}
#reader .reader-top .reader-meta strong{white-space:nowrap}
#reader:not([hidden]){overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain}
#reader:not([hidden])>.reader-song-layout{display:grid!important;flex:1 0 auto!important;height:auto!important;max-height:none!important;min-height:540px!important;overflow:visible!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(182px,.66fr) minmax(315px,1.34fr);gap:12px;align-items:stretch}
#reader .reader-song-layout>.reader-cards{grid-column:1/-1;grid-row:1;min-width:0;min-height:0;max-width:none;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;gap:12px!important}
#reader .reader-song-layout .reader-card{padding:12px 14px!important;justify-content:center;gap:7px;min-height:0}
#reader .reader-song-layout .reader-note{height:clamp(25px,3.7vh,37px)}
#reader .reader-song-layout .reader-song-simulator{grid-column:1;grid-row:2;min-height:0;min-width:0;max-width:none!important;width:100%!important;flex:none!important;padding:12px!important;border-radius:15px;align-self:stretch;justify-content:space-between}
#reader .reader-song-layout>.reader-inline-mixer{grid-column:2;grid-row:2;min-width:0;min-height:0!important;max-width:none;width:100%;display:flex!important;flex-direction:column;background:#142936;border:1px solid #477e8b;border-radius:15px;padding:12px 14px!important;overflow:visible!important}
#reader .reader-song-layout .reader-song-simulator svg{width:100%;height:auto;max-height:100%;min-height:0;flex:1 1 auto}
#reader .reader-song-simulator .reader-song-sim-title{color:#39e6c3;font-size:13px}
#reader .reader-song-simulator p{font-size:10px}
#reader .reader-inline-mixer .inline-mixer-head{margin:0 0 9px!important}
#reader .reader-inline-mixer .inline-mixer-title{font-size:15px!important;color:#44e8c8}
#reader .reader-inline-mixer .mixer-channels{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;min-width:0;overflow:visible!important}
#reader .reader-inline-mixer .mixer-channel{display:flex!important;align-items:center;gap:9px;min-height:32px;padding:3px 7px!important;max-width:none;width:100%;border-radius:9px}
#reader .reader-inline-mixer .mixer-channel-top{flex:1.45 1 0;min-width:0;display:flex;align-items:center;gap:6px;margin:0!important;flex-wrap:nowrap!important}
#reader .reader-inline-mixer .mixer-symbol{width:27px!important;min-width:27px;height:27px!important;font-size:10px!important;border-radius:7px}
#reader .reader-inline-mixer .mixer-symbol .metronome-icon{width:19px;height:19px}
#reader .reader-inline-mixer .mixer-channel-name{font-size:clamp(10px,1vw,12px)!important;white-space:normal;line-height:1.15;min-width:0}
#reader .reader-inline-mixer .mixer-reading{font-size:11px;min-width:35px}
#reader .reader-inline-mixer .mixer-mute{font-size:10px!important;min-width:60px!important;width:auto!important;height:26px;padding:4px 6px!important}
#reader .reader-inline-mixer .mixer-mute:before,#reader .reader-inline-mixer .mixer-mute:after{content:none!important}
#reader .reader-inline-mixer .mixer-slider{display:block!important;flex:1 1 0;width:35%!important;min-width:60px;height:19px!important;margin:0}
#reader .reader-tempo-row{display:flex;align-items:center;gap:9px;margin-top:auto;padding-top:13px;border-top:1px solid #3b6170;min-width:0}
#reader .reader-tempo-label{display:flex;align-items:center;gap:6px;white-space:nowrap;color:#e9f9f6;font-size:13px}
#reader .reader-tempo-label .metronome-icon{width:23px;height:23px}
#reader .reader-tempo-row button{border-radius:50%;padding:0;width:34px;height:34px;min-width:34px}
#reader #readerBpmSlider{flex:1 1 auto;min-width:55px;width:40%;accent-color:#29e4be;cursor:pointer}
#reader .reader-tempo-value{font-size:14px;color:#19eac0;white-space:nowrap;border:1px solid #19eac0;border-radius:9px;padding:7px 8px;font-variant-numeric:tabular-nums}
#reader .reader-bottom .reader-restart{font-size:25px;color:#b9f9ec}
#reader .reader-bottom .controls{gap:8px!important}
#reader .reader-bottom .switch .metronome-icon{width:14px;height:14px}
#reader .reader-count-side{display:flex;align-items:center;gap:4px;color:#83dfcf;font-size:11px}
#reader .reader-count-side .metronome-icon{width:15px;height:15px}
#reader .reader-song-layout[data-view="hands"]{grid-template-rows:minmax(330px,1fr)}
#reader .reader-song-layout[data-view="hands"]>.reader-cards{display:none!important}
#reader .reader-song-layout[data-view="hands"] .reader-song-simulator{grid-column:1;grid-row:1;display:flex!important}
#reader .reader-song-layout[data-view="hands"]>.reader-inline-mixer{grid-column:2;grid-row:1}
#reader .reader-song-layout[data-view="score"]{grid-template-rows:minmax(250px,1fr) auto}
#reader .reader-song-layout[data-view="score"]>.reader-cards{grid-column:1/-1;grid-row:1}
#reader .reader-song-layout[data-view="score"]>.reader-inline-mixer{grid-column:1/-1;grid-row:2}
#reader .reader-song-layout[data-view="score"] .reader-song-simulator{display:none!important}
#reader .reader-song-layout.layout-four>.reader-cards,#reader.layout-four .reader-song-layout>.reader-cards{grid-template-rows:repeat(2,minmax(0,1fr))!important}
@media(min-width:861px) and (max-height:780px){#reader:not([hidden])>.reader-song-layout{min-height:530px!important;flex:0 0 auto!important;grid-template-rows:185px 335px}#reader .reader-song-layout .reader-card{padding:9px 11px!important}#reader .reader-song-layout .reader-note{height:25px}}
@media(max-width:860px){
 #reader:not([hidden])>.reader-song-layout{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:215px 355px;min-height:580px!important;flex:0 0 auto!important}
 #reader .reader-song-layout[data-view="both"]{display:grid!important;flex-direction:initial!important}
 #reader .reader-song-layout[data-view="both"]>.reader-cards{grid-row:1;grid-column:1/-1;flex:none!important}
 #reader:is(.rhythm-mode,.song-mode) .reader-song-layout[data-view="both"] .reader-song-simulator{grid-row:2;grid-column:1;width:100%!important;max-height:none!important;flex:none!important}
 #reader .reader-song-layout>.reader-inline-mixer{grid-row:2;grid-column:2}
 #reader .reader-inline-mixer .mixer-channel{gap:4px}
 #reader .reader-inline-mixer .mixer-channel-top{flex:2 1 0;gap:3px}
 #reader .reader-inline-mixer .mixer-slider{flex:1 1 0;min-width:38px}
 #reader .reader-inline-mixer .mixer-reading{font-size:10px;min-width:27px}
 #reader .reader-inline-mixer .mixer-mute{font-size:9px!important;min-width:48px!important;padding:3px!important}
 #reader .reader-tempo-row{gap:5px}
 #reader .reader-tempo-label strong{font-size:11px}
 #reader .reader-tempo-row button{min-width:29px;width:29px;height:29px}
 #reader .reader-tempo-value{font-size:11px}
}
@media(max-width:650px){
 #reader:not([hidden])>.reader-song-layout{grid-template-columns:1fr!important;grid-template-rows:auto 320px auto!important;min-height:0!important;gap:8px!important}
 #reader .reader-song-layout>.reader-cards{grid-column:1;grid-row:1;min-height:175px;max-height:none;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr)!important;gap:4px!important}
 #reader .reader-song-layout .reader-card{padding:7px 4px!important;gap:4px}
 #reader .reader-song-layout .reader-note{height:24px!important;font-size:9px}
 #reader .reader-song-layout .reader-grid{grid-template-columns:27px repeat(8,minmax(0,1fr))!important;gap:1px}
 #reader .reader-song-layout .reader-grid .name{font-size:7px}
 #reader:is(.rhythm-mode,.song-mode) .reader-song-layout[data-view="both"] .reader-song-simulator{grid-column:1;grid-row:2;max-height:none!important;min-height:310px}
 #reader .reader-song-layout>.reader-inline-mixer{grid-row:3;grid-column:1;min-height:350px!important;padding:10px!important}
 #reader .reader-inline-mixer .mixer-channel-top{flex:1.2 1 0}
 #reader .reader-inline-mixer .mixer-mute{font-size:10px!important;min-width:60px!important}
 #reader .reader-inline-mixer .mixer-slider{flex:1 1 0;min-width:75px}
 #reader .reader-inline-mixer .mixer-channel-name{font-size:11px!important}
 #reader .reader-tempo-label strong{font-size:12px}
 #reader .reader-song-layout[data-view="hands"]{grid-template-rows:320px auto!important}
 #reader .reader-song-layout[data-view="hands"] .reader-song-simulator{grid-column:1;grid-row:1}
 #reader .reader-song-layout[data-view="hands"]>.reader-inline-mixer{grid-column:1;grid-row:2}
 #reader .reader-song-layout[data-view="score"]{grid-template-rows:200px auto!important}
 #reader .reader-song-layout[data-view="score"]>.reader-inline-mixer{grid-column:1;grid-row:2}
 #reader .reader-count-side{display:none}
}
@media(prefers-reduced-motion:reduce){#reader .reader-song-layout .reader-note{transition:none}}

/* V19.0 — revisión visual para equipos de escritorio y secciones de canciones. */
#reader:not([hidden])>.reader-song-layout{flex:0 0 auto!important;min-height:0!important;grid-template-rows:205px 410px}
#reader.song-mode .reader-artist{font-size:11px;color:#b7d5de;margin-top:3px;max-width:60ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#reader:not(.song-mode) .reader-song-sections{display:none!important}
#reader .reader-song-sections[hidden]{display:none!important}
#reader .reader-song-sections{display:flex;gap:6px;min-width:0;max-width:100%;align-items:stretch;border:1px solid #2d6864;background:#102631;border-radius:13px;padding:5px;overflow-x:auto;scrollbar-width:thin;flex:0 0 auto}
#reader .reader-section-button{display:flex;flex:1 0 140px;min-width:110px;max-width:240px;flex-direction:column;align-items:center;justify-content:center;gap:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:7px 10px;border-radius:8px;background:#173340;border:1px solid #385b69;color:#d2e5e9}
#reader .reader-section-button strong{font-size:11px;overflow:hidden;max-width:100%;text-overflow:ellipsis}
#reader .reader-section-button small{font-size:9px;color:#a5c3cb}
#reader .reader-section-button.active{color:#06392f;border-color:#21d6b0;background:#22dbb7}
#reader .reader-section-button.active small{color:#11463a}
@media(min-width:861px) and (max-height:820px){#reader:not([hidden])>.reader-song-layout{grid-template-rows:190px 365px}}
@media(max-width:860px){#reader:not([hidden])>.reader-song-layout{grid-template-rows:200px 350px}}
@media(max-width:650px){#reader:not([hidden])>.reader-song-layout{grid-template-rows:auto 320px auto!important}#reader .reader-song-sections{padding:3px;gap:4px}#reader .reader-section-button{flex-basis:110px;padding:5px 8px}}

/* V19.0 QA: asegurar encabezados completos y controles de transporte visibles. */
#reader .reader-song-layout .reader-card{padding:7px 10px!important;gap:4px!important;justify-content:center!important}
#reader .reader-song-layout .reader-note{height:26px!important}
#reader .reader-header-tempo{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
#reader .reader-header-tempo .metronome-icon{width:16px;height:16px}
#reader.song-mode:not([hidden])>.reader-song-layout{grid-template-rows:192px 365px}
@media(min-width:861px) and (max-height:820px){#reader.song-mode:not([hidden])>.reader-song-layout{grid-template-rows:175px 345px}}
@media(max-width:860px){#reader.song-mode:not([hidden])>.reader-song-layout{grid-template-rows:192px 350px}}
@media(max-width:650px){#reader.song-mode:not([hidden])>.reader-song-layout{grid-template-rows:auto 320px auto!important}#reader .reader-song-layout .reader-card{padding:7px 4px!important}}

/* V19.7.1 – una única marca gráfica para todos los encabezados públicos. */
.app-global-header .app-brand-logo{display:block;height:auto;width:clamp(10.5rem,22vw,16rem);object-fit:contain;flex-shrink:0}
.app-global-header .app-brand-link{min-width:0;gap:0;align-items:center}
#mainApp>.app-global-header .brand.home-link{width:auto;max-width:unset!important;padding:0;background:none;border:0}
#mainApp>.app-global-header .top .app-brand-logo{width:clamp(11rem,24vw,16.5rem)}
.reader-site-header .app-brand-logo{width:clamp(8.3rem,18vw,12rem)}
@media(max-width:650px){
 .app-global-header .app-brand-logo{width:clamp(8.8rem,39vw,12rem)}
 #mainApp>.app-global-header .top .app-brand-logo{width:clamp(9rem,43vw,12.25rem)}
 #reader .reader-site-header .app-brand-logo{width:clamp(8.7rem,40vw,11rem)}
}


/* === Fuente integrada: diseno-v19-3.css === */
/* Laboratorio de Cajón V19.1 — Sistema de espacios en REM.
   Solo los dos módulos principales del lector tienen contorno.
   Estilos aislados de presentación: no cambian el motor musical ni los JSON. */
:root {
  --lc-header-space: 2.5rem;
  --lc-nav-space: 2.125rem;
  --lc-selector-space: 2rem;
  --lc-module-space: 2.75rem;
  --lc-measure-space: 1.375rem;
  --lc-panel-padding: clamp(1rem, 2.3vw, 1.5rem);
  --lc-module-line: #3c9693;
  --lc-soft: #183645;
  --lc-soft-2: #1c3c4c;
}
html{scroll-behavior:smooth}
body{background:radial-gradient(ellipse at 50% 20%,#092d36 0%,#091c27 57%,#091722 100%);}
/* Un solo lenguaje visual para inicio, biblioteca, accesorios, canciones e historia. */
.app-global-header,
#mainApp>.app-global-header,
body>.app-global-header {
  display:flex!important;align-items:center!important;gap:clamp(.6rem,1.8vw,1.5rem)!important;
  max-width:1320px;margin:0 auto var(--lc-header-space)!important;
  padding:1rem clamp(.75rem,2vw,1.35rem)!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;backdrop-filter:none!important;position:relative!important;top:auto!important;
}
#mainApp>.app-global-header .top{display:contents!important}
#mainApp>.app-global-header .top .app-brand-link{order:0}
.app-brand-link,
#mainApp>.app-global-header .brand.home-link{display:flex!important;align-items:center!important;gap:.875rem!important;max-width:none!important;
  padding:0!important;background:transparent!important;border:0!important;white-space:nowrap;min-height:3.25rem}
.app-brand-mark{display:grid;place-items:center;width:3.25rem!important;height:3.25rem!important;
  border-radius:50%!important;font-size:2.6rem!important;color:#13e6c4!important;
  background:radial-gradient(circle,#083d38 25%,#00584c 55%,#06232c 56%)!important;line-height:1}
.app-brand-link strong,#mainApp .app-brand-link strong{font-size:clamp(1.2rem,2vw,1.85rem)!important;line-height:1.12!important;letter-spacing:-.035em!important;color:#f4fbfa}
.app-brand-link em{color:#15e9c3!important}
#mainApp>.app-global-header .nav,
.app-header-nav {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
   gap:.65rem!important;align-items:center!important;min-width:0!important;flex:1 1 auto!important;
   margin:0!important;padding:0!important;border:0!important;background:transparent!important;
   position:static!important;backdrop-filter:none!important;overflow:visible!important}
#mainApp>.app-global-header .nav{order:1}
#mainApp>.app-global-header .top .settings-link{order:2;padding:.75rem!important;
   color:#c5e5df;background:#183543;border:0!important;border-radius:.85rem}
#mainApp>.app-global-header .nav>a,
#mainApp>.app-global-header .nav>button,
.app-header-nav>a {min-height:2.75rem!important;min-width:0!important;width:100%;display:flex!important;
  justify-content:center!important;align-items:center!important;gap:.25rem!important;
  padding:.65rem .4rem!important;border:0!important;border-radius:.75rem!important;
  background:#1a3949!important;color:#e7f6f5!important;font-size:clamp(.72rem,.95vw,.9rem)!important;
  font-weight:800!important;text-decoration:none;text-align:center;line-height:1.25;box-shadow:none!important}
#mainApp>.app-global-header .nav .active,
#mainApp>.app-global-header .nav>a:hover,
#mainApp>.app-global-header .nav>button:hover,
.app-header-nav a[aria-current=page],.app-header-nav a:hover{background:#106b5b!important;color:#acffed!important;}
#mainApp>.app-global-header .nav .ico{display:none!important}
.reader-header-exit{flex:0 0 auto;padding:.72rem 1rem;border:0;border-radius:.8rem;
  color:#e6f7f3;background:#1d3b49;font-size:.85rem;font-weight:850;white-space:nowrap}
.reader-header-exit:hover{background:#235a60}
#mainApp{max-width:1320px;padding:0 clamp(.85rem,2vw,1.5rem) 5rem!important}
#mainApp>.app-global-header{padding-left:0!important;padding-right:0!important}
#mainApp .panel{border:0!important;background:#142e3b;border-radius:1.25rem;
  padding:var(--lc-panel-padding);margin-bottom:var(--lc-module-space)}
#mainApp .home-section,.home-hero,.home-footnote{margin-bottom:var(--lc-module-space)!important}
#mainApp .home-hero{gap:var(--lc-nav-space)!important}
#mainApp .path-grid,#mainApp .brands-grid{gap:var(--lc-measure-space)!important}
#mainApp .path-card,#mainApp .brand-card,#mainApp .file-choice,
#mainApp .upload,#mainApp .song-examples,#mainApp .song-ready,
#mainApp .history-v16-section,#mainApp .history-evolution>*,
#mainApp .history-hero,#mainApp .history-timeline,
#mainApp .sample-card,#mainApp .advanced-import,#mainApp .report{
  border:0!important;background-color:#173643!important;box-shadow:none!important}
#mainApp .settings-heading,#mainApp .songhead{gap:1.25rem}
#mainApp .reader-preview,#mainApp .quick-start{margin-block:var(--lc-nav-space)!important}
#mainApp .section-eyebrow{margin-bottom:.75rem}
/* El lector puede crecer verticalmente: nunca comprimir cuatro compases en altura fija. */
#reader:not([hidden]){
  display:flex!important;flex-direction:column!important;gap:0!important;
  height:100dvh!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:1.25rem clamp(.85rem,2vw,1.75rem) 3rem!important;
  scroll-padding-top:1.25rem;touch-action:pan-y!important;overscroll-behavior:contain;
}
#reader:not([hidden])>.reader-site-header{position:relative!important;top:auto!important;width:100%!important;
  max-width:1320px!important;flex:0 0 auto!important;min-height:0!important;
  margin:0 auto var(--lc-header-space)!important;padding:.4rem 0!important;display:flex!important;
  align-items:center!important;gap:1.25rem!important;background:transparent!important;
  border:0!important;border-radius:0!important}
#reader .reader-site-header .app-brand-link strong{font-size:clamp(1.2rem,2vw,1.85rem)!important}
#reader .reader-site-header .app-brand-mark{width:3.25rem!important;height:3.25rem!important;font-size:2.6rem!important;display:grid!important}
#reader .reader-site-header .app-header-nav{margin:0!important;flex:1!important}
#reader .reader-site-header .app-header-nav a{font-size:clamp(.72rem,.95vw,.9rem)!important;padding:.65rem .4rem!important}
#reader>.reader-top{width:100%;max-width:1320px;margin:0 auto var(--lc-nav-space)!important;
  display:flex;align-items:center!important;justify-content:space-between;gap:1.5rem!important;min-height:0!important;
  background:transparent;border:0;padding:.1rem 0 .15rem}
#reader .reader-titles{min-width:0;flex:1}
#reader .reader-titles .eyebrow{display:block!important;color:#32e5be;letter-spacing:.1em;font-size:.7rem}
#reader .reader-titles h2{font-size:clamp(1.25rem,1.9vw,1.75rem)!important;line-height:1.2!important;
  white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
#reader .reader-meta{gap:1rem!important;flex-wrap:wrap;justify-content:flex-end}
#reader .reader-meta button[data-open-mixer]{display:none!important}
#reader .reader-meta .reader-layout-control{display:flex;gap:.65rem;align-items:center}
#reader .reader-meta select{background:#193b49;border:0;border-radius:.7rem;color:#f4fafb;padding:.65rem}
#reader .reader-header-tempo strong{font-size:1rem;color:#17e9c3}
/* Secciones de canciones: dos filas reales en escritorio, sin cortes horizontales. */
#reader .reader-song-sections[hidden]{display:none!important}
#reader .reader-song-sections:not([hidden]){
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
 align-items:stretch!important;width:100%;max-width:1320px;margin:0 auto var(--lc-nav-space)!important;
 gap:.7rem!important;padding:0!important;background:transparent!important;border:0!important;
 border-radius:0!important;overflow:visible!important;min-height:0!important;flex:0 0 auto!important;
}
#reader .reader-section-button{min-width:0!important;max-width:none!important;width:100%;min-height:3.25rem;
  flex:none!important;background:#1a3948;border:0!important;border-radius:.8rem!important;
  padding:.7rem .6rem!important;overflow:hidden;font-size:.75rem}
#reader .reader-section-button strong{font-size:.8rem;max-width:100%}
#reader .reader-section-button small{font-size:.67rem}
#reader .reader-section-button.active{background:#16ddba;color:#053a31}
#reader>.reader-view-switch{display:flex!important;flex:0 0 auto!important;align-self:center;
 margin:0 auto var(--lc-selector-space)!important;padding:.25rem!important;
 background:#163b4a!important;border:0!important;border-radius:1rem!important}
#reader .reader-view-switch button{padding:.7rem 1.4rem;border:0!important}
/* SCORE GRID: a single bordered module with 2 or 4 complete measures. */
#reader:not([hidden])>.reader-song-layout{
 width:100%!important;max-width:1320px!important;margin:0 auto!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 display:flex!important;flex:0 0 auto!important;flex-direction:column!important;
 grid-template-columns:none!important;grid-template-rows:none!important;
 gap:var(--lc-module-space)!important;overflow:visible!important;align-items:stretch!important}
#reader .reader-score-module,#reader .reader-practice-module{
 box-sizing:border-box;min-width:0;min-height:0;
 border:1px solid var(--lc-module-line);border-radius:1.4rem;
 background:linear-gradient(135deg,#09303a,#0b2532);
 padding:clamp(1rem,2vw,1.5rem);
}
#reader .reader-score-module{display:block}
#reader .reader-score-module .reader-cards,
#reader.rhythm-mode .reader-score-module .reader-cards,
#reader.layout-four .reader-score-module .reader-cards{
 width:100%;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 grid-template-rows:auto!important;grid-auto-rows:auto!important;
 gap:var(--lc-measure-space)!important;overflow:visible!important;flex:none!important}
#reader .reader-score-module .reader-card,
#reader.rhythm-mode .reader-score-module .reader-card{
 background:#173b49!important;border:0!important;border-radius:1rem!important;
 padding:1.05rem clamp(.6rem,1.3vw,1.25rem)!important;
 display:flex!important;flex-direction:column;justify-content:space-between!important;
 gap:.6rem!important;height:auto!important;min-height:10.5rem!important;
 overflow:visible!important;box-shadow:none!important}
#reader .reader-score-module .reader-card.active{background:#1a514e!important}
#reader .reader-score-module .reader-card .no{font-size:1.15rem;font-weight:900;color:#28e8c4}
#reader .reader-score-module .reader-card .slabel{font-size:.75rem;color:#c4dbdf}
#reader .reader-score-module .reader-card header{min-height:1.5rem}
#reader .reader-score-module .reader-grid{grid-template-columns:clamp(3.2rem,7.5vw,6rem) repeat(8,minmax(0,1fr))!important;gap:3px!important}
#reader .reader-score-module .reader-grid .name{font-size:clamp(.65rem,1vw,.8rem)!important}
#reader .reader-score-module .reader-note,
#reader.rhythm-mode .reader-score-module .reader-note{
 height:1.7rem!important;min-height:1.7rem!important;border:0!important;
 box-shadow:none;border-radius:.32rem}
#reader .reader-score-module .reader-step-bar{height:3px;margin-top:.3rem}
/* PRACTICE: one outline contains imagery, mixer, tempo and transport. */
#reader .reader-practice-module{display:flex;flex-direction:column;gap:1.75rem}
#reader .reader-practice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:2rem;align-items:stretch;min-width:0}
#reader .reader-practice-grid>.reader-song-simulator,
#reader:is(.song-mode,.rhythm-mode) .reader-song-layout[data-view="both"] .reader-practice-grid>.reader-song-simulator,
#reader:is(.song-mode,.rhythm-mode) .reader-song-layout[data-view="hands"] .reader-practice-grid>.reader-song-simulator{
 width:100%!important;max-width:none!important;max-height:none!important;min-width:0!important;
 flex:none!important;grid-column:auto!important;grid-row:auto!important;align-self:stretch!important;
 display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
 padding:1.1rem!important;background:#163845!important;border:0!important;border-radius:1rem!important;
 overflow:visible!important}
#reader .reader-practice-grid>.reader-inline-mixer{
 width:100%!important;max-width:none!important;min-width:0!important;
 display:flex!important;flex-direction:column!important;grid-column:auto!important;grid-row:auto!important;
 padding:1.1rem!important;background:#163845!important;border:0!important;border-radius:1rem!important;
 overflow:visible!important;align-self:stretch}
#reader .reader-song-sim-title{color:#24e7c4;display:flex;align-items:flex-start;justify-content:space-between;
 gap:1.25rem;margin-bottom:1.25rem;font-size:.85rem!important;line-height:1.4}
#reader .reader-hands-title{display:inline-flex;align-items:center;gap:.65rem;white-space:nowrap;color:#26e5c1;font-size:.95rem}
#reader .reader-hands-title .ico{height:1.5rem;width:1.5rem;stroke-width:2}
#reader .reader-song-sim-title>span{font-size:.78rem;text-align:right;white-space:normal}
#reader .reader-practice-grid .reader-song-simulator svg{
 display:block!important;width:100%!important;height:auto!important;max-height:29rem!important;
 min-height:0!important;flex:0 0 auto!important;aspect-ratio:723/543;object-fit:contain}
#reader .reader-practice-grid .reader-song-simulator p{
 display:block;margin:1.15rem 0 .35rem!important;padding:.85rem 1rem;
 font-size:.78rem!important;line-height:1.65;text-align:left!important;color:#cfe5e7;
 background:#1c4250;border:0;border-radius:.75rem}
#reader .reader-practice-grid .reader-inline-mixer .inline-mixer-head{margin-bottom:1.1rem!important}
#reader .reader-practice-grid .reader-inline-mixer .inline-mixer-title{font-size:1rem!important}
#reader .reader-practice-grid .reader-inline-mixer .mixer-channels{
 display:grid!important;grid-template-columns:1fr!important;gap:.5rem!important;overflow:visible!important}
#reader .reader-practice-grid .reader-inline-mixer .mixer-channel{
 background:#1d4350!important;border:0!important;border-radius:.7rem!important;min-height:2.3rem;
 display:flex!important;gap:.55rem!important;padding:.3rem .6rem!important;}
#reader .reader-practice-grid .reader-inline-mixer .mixer-channel-top{min-width:0!important;flex:1.45 1 0}
#reader .reader-practice-grid .reader-inline-mixer .mixer-slider{flex:1 1 0;min-width:4rem}
#reader .reader-practice-grid .reader-tempo-row{margin-top:1.3rem;padding-top:1.3rem;border:0!important;
 box-shadow:inset 0 .09rem #345b69}
#reader .reader-practice-grid .reader-tempo-value{border:0!important;background:#125d54;padding:.55rem .7rem}
#reader .reader-next-hint:not([hidden]){margin:0 0 .2rem}
#reader .reader-practice-module .reader-bottom{
 width:100%;display:flex!important;flex-direction:column!important;gap:.85rem!important;
 margin:0!important;padding:1.15rem .25rem .2rem!important;
 border:0!important;border-top:0!important;box-shadow:inset 0 .1rem #376c75;
 background:transparent!important;min-width:0!important;}
#reader .reader-bottom-line{display:flex;gap:1rem!important;align-items:center;justify-content:space-between;
 flex-wrap:wrap;min-height:2rem}
#reader .reader-bottom .controls{display:flex!important;flex-wrap:nowrap!important;gap:.65rem!important}
#reader .reader-bottom #readerPlay{background:#15dfb9;border:0!important;color:#043d34;border-radius:2rem}
#reader .reader-bottom .reader-round{background:#214454;border:0!important}
#reader .reader-bottom .switch{gap:.3rem}
/* Show the score / simulator according to the three original controls. */
#reader .reader-song-layout[data-view="hands"] .reader-score-module{display:none!important}
#reader .reader-song-layout[data-view="score"] .reader-practice-grid>.reader-song-simulator{display:none!important}
#reader .reader-song-layout[data-view="score"] .reader-practice-grid{grid-template-columns:1fr}
#reader .reader-song-layout[data-view="hands"] .reader-practice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#reader .reader-song-layout[data-view="hands"] .reader-practice-grid>.reader-inline-mixer,
#reader .reader-song-layout[data-view="score"] .reader-practice-grid>.reader-inline-mixer{display:flex!important}
/* Remove outlines from auxiliary cards throughout the public pages. */
#reader .reader-view-switch,#reader .reader-section-button,
#reader .reader-inline-mixer .mixer-channel,
#reader .reader-practice-grid>.reader-song-simulator,
#reader .reader-practice-grid>.reader-inline-mixer,
#reader .reader-score-module .reader-card {box-shadow:none!important;border:0!important}
/* Traditional page uses the same rhythms of spacing and soft, borderless inner cards. */
body>.app-global-header{max-width:1280px;margin-bottom:var(--lc-header-space)!important}
.wrap{max-width:1280px;padding:0 clamp(.85rem,2vw,1.5rem) 4rem}
.wrap>.panel{padding:var(--lc-panel-padding);margin-bottom:var(--lc-module-space)!important;
 background:#142f3c;border:0;border-radius:1.2rem}
.wrap .library-grid,.wrap .bars,.wrap .mixer,.wrap .sim-practice-layout{gap:var(--lc-measure-space)!important}
.wrap .library-grid .library-item,.wrap .sim-artboard,.wrap .bar,.wrap .channel,
.wrap .sim-view-switch,.wrap .app-help{border:0!important;background-color:#1a3a49;box-shadow:none}
.wrap .sim-practice-head{margin-bottom:var(--lc-selector-space)!important}
.wrap .sim-arthead{padding:1rem 1rem .5rem!important;gap:1rem}
.wrap .sim-feedback{padding:.85rem 1rem 1rem!important}
.wrap .sim-hand-legend{margin-top:1.25rem}
.wrap .sim-try{margin-top:1.5rem}
.wrap .tempo input[type=range]{accent-color:#18e6c2}
/* Keep the private administrator visually consistent while preserving its form structure. */
body:has(.container) .topbar{border-bottom:0;padding:1.25rem clamp(1rem,2vw,1.5rem);margin-bottom:2.5rem}
body:has(.container) .container{padding-top:0}
body:has(.container) .panel{border:0;background:#173341;border-radius:1.25rem}
body:has(.container) .app-title{margin-bottom:2.125rem}
body:has(.container) .admin-nav{margin-bottom:2rem;gap:.65rem}
body:has(.container) .admin-nav button{border:0;border-radius:.75rem;background:#1b3c4a}
body:has(.container) .admin-nav button.active{background:#155b51}
body:has(.container) .split{gap:1.375rem}
body:has(.container) .tab .fields{gap:1.375rem}
body:has(.container) .toolbox,body:has(.container) .notation-selector,
body:has(.container) .auto-entry-bar{background:#1c3d4c;border:0}
/* Adaptation: no hidden columns, horizontal overflow of individual measures only when essential. */
@media(max-width:1020px){
 .app-global-header,#mainApp>.app-global-header,body>.app-global-header,
 #reader:not([hidden])>.reader-site-header{flex-wrap:wrap!important;row-gap:.7rem!important}
 #mainApp>.app-global-header .nav,.app-header-nav{flex:1 1 100%!important;order:3!important}
 #mainApp>.app-global-header .top .settings-link,.reader-header-exit{margin-left:auto}
 #reader .reader-practice-grid{gap:1.25rem}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-channel{flex-wrap:wrap}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-channel-top{flex:1 1 100%}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-slider{flex:1 1 auto}
}
@media(max-width:720px){
 :root{--lc-header-space:1.75rem;--lc-nav-space:1.6rem;--lc-selector-space:1.5rem;
   --lc-module-space:2rem;--lc-measure-space:.95rem}
 #mainApp>.app-global-header .nav,.app-header-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.45rem!important}
 #mainApp>.app-global-header .nav>a,#mainApp>.app-global-header .nav>button,.app-header-nav>a{min-height:2.6rem!important}
 .app-brand-link strong,#mainApp .app-brand-link strong,#reader .reader-site-header .app-brand-link strong{font-size:clamp(1.05rem,4vw,1.4rem)!important}
 .app-brand-mark,#reader .reader-site-header .app-brand-mark{width:2.65rem!important;height:2.65rem!important;font-size:2rem!important}
 #reader:not([hidden]){padding:1rem .65rem 2.5rem!important}
 #reader .reader-top{flex-wrap:wrap;align-items:flex-start;gap:.85rem!important}
 #reader .reader-meta{justify-content:flex-start;width:100%}
 #reader .reader-song-sections:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.5rem!important}
 #reader .reader-section-button{min-height:3rem}
 #reader .reader-score-module,#reader .reader-practice-module{padding:.75rem}
 #reader .reader-score-module .reader-cards,#reader.rhythm-mode .reader-score-module .reader-cards,
 #reader.layout-four .reader-score-module .reader-cards{grid-template-columns:1fr!important}
 #reader .reader-score-module .reader-card{min-height:9rem!important}
 #reader .reader-score-module .reader-grid{grid-template-columns:3.8rem repeat(8,minmax(0,1fr))!important}
 #reader .reader-score-module .reader-grid .name{font-size:.73rem!important}
 #reader .reader-score-module .reader-note,#reader.rhythm-mode .reader-score-module .reader-note{height:1.55rem!important;min-height:1.55rem!important}
 #reader .reader-practice-grid,#reader .reader-song-layout[data-view="hands"] .reader-practice-grid{grid-template-columns:1fr!important;gap:1.2rem}
 #reader .reader-practice-grid>.reader-song-simulator{min-height:0!important;max-height:none!important}
 #reader .reader-practice-grid .reader-song-simulator svg{max-height:27rem!important}
 #reader .reader-practice-grid>.reader-inline-mixer{min-height:0!important}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-channel{flex-wrap:nowrap}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-channel-top{flex:1.3 1 0}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-slider{min-width:3.75rem}
 #reader .reader-bottom-line{justify-content:center;gap:.85rem!important}
 #reader .reader-bottom .controls{order:-1;flex:1 1 100%;justify-content:center!important}
 #reader .reader-practice-module .reader-bottom{gap:1.1rem!important}
 .wrap{padding:0 .7rem 3.5rem}
 .wrap .sim-practice-layout{grid-template-columns:1fr!important}
}
@media(max-width:380px){
 #reader .reader-score-module .reader-grid{grid-template-columns:2.8rem repeat(8,minmax(0,1fr))!important;gap:1px!important}
 #reader .reader-score-module .reader-grid .name{font-size:.63rem!important}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-channel{flex-wrap:wrap}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-channel-top{flex:1 1 100%}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* La antigua regla de SVG del simulador no debe agrandar el icono de manos. */
#reader .reader-song-simulator .reader-hands-title svg.ico{
 display:inline-block!important;width:1.5rem!important;height:1.5rem!important;
 min-width:1.5rem!important;min-height:1.5rem!important;max-width:1.5rem!important;
 max-height:1.5rem!important;flex:0 0 1.5rem!important;aspect-ratio:1!important;
 object-fit:contain!important;vertical-align:middle}
#reader .reader-practice-grid .reader-song-simulator #songSimulator{
 display:block!important;width:100%!important;height:auto!important;max-width:100%!important;
 max-height:29rem!important;flex:0 1 auto!important;aspect-ratio:723/543!important}
/* En teléfonos cada canal se muestra con su nombre completo y el control abajo. */
@media(max-width:720px){
 #reader .reader-practice-grid .reader-inline-mixer .mixer-channel{
   display:flex!important;flex-direction:column!important;align-items:stretch!important;
   gap:.3rem!important;min-height:0!important;padding:.55rem .65rem!important}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-channel-top{
   display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
   align-items:center!important;width:100%!important;gap:.4rem!important;
   flex:0 0 auto!important;margin:0!important;min-height:1.8rem}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-channel-name{
   display:block!important;visibility:visible!important;white-space:normal!important;
   font-size:.75rem!important;line-height:1.25!important;flex:1 1 auto!important;min-width:0!important}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-reading{
   display:inline!important;font-size:.7rem!important;min-width:2rem!important;white-space:nowrap}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-mute{
   display:inline-flex!important;align-items:center;justify-content:center;
   flex:0 0 auto!important;width:auto!important;min-width:4.1rem!important;
   height:1.75rem!important;font-size:.68rem!important;padding:.25rem .45rem!important}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-slider{
   display:block!important;width:100%!important;min-width:0!important;
   flex:0 0 auto!important;height:1.25rem!important;margin:.1rem 0 0!important}
}
/* Cajón tradicional: mismo pictograma de mano y nota de orientación. */
.wrap .sim-title-with-icon{display:inline-flex;align-items:center;gap:.6rem;line-height:1.4}
.wrap .sim-hand-icon{width:1.35rem;height:1.35rem;min-width:1.35rem;color:#25e7c1}
.wrap .sim-arthead{gap:1.2rem;min-height:3.6rem}
.wrap .sim-arthead strong{padding-left:.6rem}
.wrap .sim-view-explainer{margin:1rem 1rem .5rem;padding:.85rem 1rem;border:0;
  background:#1e4350;color:#cce2e6;border-radius:.7rem;font-size:.8rem;line-height:1.6}

/* ====== V19.2: fidelidad cromática y composición aprobada ====== */
:root{
 --bg:#031620;--surface:#0a2b38;--card:#113c49;--line:#2d6070;
 --mint:#00ebd0;--ink:#f6ffff;--muted:#b8d2db;
 --lc-module-line:#22e9e9;--lc-soft:#103e4e;--lc-soft-2:#154554;
 --lc-header-space:2.5rem;--lc-nav-space:2.125rem;
 --lc-selector-space:2rem;--lc-module-space:2.75rem;--lc-measure-space:1rem;
}
html,body{background:#000000!important;color:#f4fafa}
body{background:radial-gradient(ellipse 94% 66% at 51% 39%,#05323d 0%,#03212a 32%,#011117 67%,#000000 100%)!important}
#reader:not([hidden]){
  background:radial-gradient(ellipse 112% 75% at 53% 42%,#05333e 0%,#02212b 34%,#010f15 67%,#000000 100%)!important;
  height:100dvh!important;padding-top:.65rem!important;padding-bottom:2.75rem!important;
}
/* Header: large wordmark, no outer card, deep teal buttons */
#reader:not([hidden])>.reader-site-header{margin-bottom:var(--lc-header-space)!important;max-width:1320px!important;padding:0 .55rem!important;gap:1.1rem!important}
#reader .reader-site-header .app-brand-mark,
#mainApp>.app-global-header .app-brand-mark,body>.app-global-header .app-brand-mark{
 width:3.1rem!important;height:3.1rem!important;border:0!important;
 background:radial-gradient(circle at center,#00ead1 0 37%,#05443c 40% 52%,#02e9d5 53% 63%,#062733 65% 100%)!important;
 color:transparent!important;font-size:0!important;box-shadow:0 0 .85rem #00ead238;
}
#reader .reader-site-header .app-brand-link strong,
#mainApp>.app-global-header .app-brand-link strong,body>.app-global-header .app-brand-link strong{
 font-size:clamp(1.36rem,2.1vw,2.1rem)!important;line-height:1.14!important;
 letter-spacing:-.045em!important;font-weight:900!important
}
.app-brand-link em{color:#03f5d3!important}
#reader .reader-site-header .app-header-nav a,
#mainApp>.app-global-header .nav>a,#mainApp>.app-global-header .nav>button,
body>.app-global-header .app-header-nav a{
 background:linear-gradient(180deg,#174555 0%,#103644 100%)!important;
 color:#f2ffff!important;border:0!important;border-radius:.75rem!important;
 font-size:clamp(.78rem,.9vw,.91rem)!important;
 box-shadow:inset 0 1px 0 #32708424!important;
}
#reader .reader-site-header .app-header-nav a[aria-current=page],
#mainApp>.app-global-header .nav .active,body>.app-global-header .app-header-nav a[aria-current=page]{
 background:linear-gradient(180deg,#076a63,#074b4a)!important;
 color:#02f9d7!important;box-shadow:inset 0 0 0 1.5px #09f5d5!important
}
.reader-header-exit{background:linear-gradient(180deg,#194555,#103542)!important;border:0!important}
/* Album illustration used only for song mode; not a claimed official cover. */
#reader>.reader-top{gap:1.4rem!important;min-height:5.5rem!important;margin-bottom:var(--lc-nav-space)!important;padding:0 .3rem!important}
#reader .reader-song-cover{display:none;flex:0 0 auto;width:6rem;height:4.75rem;object-fit:cover;border-radius:.65rem;box-shadow:0 8px 16px #001c2260}
#reader.song-mode .reader-song-cover{display:block}
#reader .reader-titles .eyebrow{font-size:.76rem!important;letter-spacing:.075em!important;color:#08f4d1!important}
#reader .reader-titles h2{font-size:clamp(1.27rem,1.85vw,1.6rem)!important;line-height:1.18!important;margin:.22rem 0 .3rem!important;font-weight:860!important}
#reader .reader-artist{color:#d6e5e8;font-size:.86rem}
#reader .reader-meta{flex-shrink:0;align-self:center;gap:1.15rem!important}
#reader .reader-meta select{background:linear-gradient(180deg,#174252,#103a4a)!important;border:0!important;padding:.5rem .85rem!important}
#reader .reader-header-tempo strong{font-size:1.24rem!important;color:#00f5d6!important}
/* Song sections: exactly two rows at typical desktop widths; show all entries. */
#reader .reader-song-sections:not([hidden]){
 grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:.7rem!important;
 margin-bottom:var(--lc-nav-space)!important;padding:0 1rem!important;
}
#reader .reader-section-button{min-height:3rem!important;padding:.55rem .55rem!important;
 background:linear-gradient(180deg,#194a59,#113e4d)!important;border:0!important;
 box-shadow:none!important;border-radius:.78rem!important;
}
#reader .reader-section-button.active{background:#00e8c9!important;color:#05342f!important}
#reader .reader-section-button strong{font-size:.76rem!important;line-height:1.1!important}
#reader .reader-section-button small{font-size:.68rem!important}
#reader>.reader-view-switch{background:linear-gradient(180deg,#173f4e,#133846)!important;border:0!important;
 border-radius:1.6rem!important;min-height:2.45rem; margin-bottom:var(--lc-selector-space)!important}
#reader .reader-view-switch button{font-weight:800!important;border-radius:1.55rem!important;padding:.55rem 1.45rem!important}
#reader .reader-view-switch button[aria-pressed=true]{background:#00e9c9!important;color:#07392f!important}
/* Exactly two bordered modules, saturated cyan outlines and visible translucent gradients. */
#reader .reader-score-module,#reader .reader-practice-module{
 border:1.65px solid #21edec!important;border-radius:1.4rem!important;
 background:linear-gradient(130deg,rgba(4,54,66,.83),rgba(5,42,53,.87) 68%,rgba(3,29,43,.93))!important;
 padding:1rem!important;box-shadow:0 0 0 1px #006e7030,0 1.5rem 3rem #001c2340!important;
}
#reader .reader-score-module .reader-cards,#reader.rhythm-mode .reader-score-module .reader-cards,
#reader.layout-four .reader-score-module .reader-cards{
 gap:var(--lc-measure-space)!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 align-items:stretch!important
}
#reader .reader-score-module .reader-card,#reader.rhythm-mode .reader-score-module .reader-card{
 background:linear-gradient(135deg,#154957 0%,#104454 59%,#103b4a 100%)!important;
 border:0!important;box-shadow:none!important;border-radius:1rem!important;
 min-height:0!important;height:auto!important;padding:.66rem .9rem .75rem!important;
 justify-content:flex-start!important;gap:.23rem!important;
}
#reader .reader-score-module .reader-card.active{background:linear-gradient(135deg,#18505a,#114852)!important}
#reader .reader-score-module .reader-card .no{font-size:1.36rem!important;color:#00f2d6!important;letter-spacing:-.04em}
#reader .reader-score-module .reader-card .slabel{font-size:.75rem!important;color:#d1e4e7!important}
#reader .reader-score-module .reader-card header{min-height:1.6rem!important;gap:.5rem!important}
#reader .reader-score-module .reader-grid{grid-template-columns:clamp(4.05rem,7.5vw,5.6rem) repeat(8,minmax(0,1fr))!important;gap:2px!important;margin:.2rem 0 0!important}
#reader .reader-score-module .reader-grid .name{font-size:.79rem!important}
#reader .reader-score-module .reader-grid .n{height:1.1rem!important;font-size:.73rem!important;color:#f4ffff!important}
#reader .reader-score-module .reader-note,#reader.rhythm-mode .reader-score-module .reader-note{
 height:1.35rem!important;min-height:1.35rem!important;max-height:1.35rem!important;
 border:0!important;border-radius:.28rem!important;font-size:.78rem!important;
}
#reader .reader-note.off{background:#244d5f!important;color:#adccd5!important}
#reader .reader-note.on-kick{background:#087cef!important;color:#fff!important}
#reader .reader-note.on-snare{background:#ff940f!important;color:#fff!important}
#reader .reader-note.on-hat{background:#198d69!important;color:#fff!important}
#reader .reader-note.accent{background:#29a37b!important;color:#fff!important}
#reader .reader-note.on-splash{background:#f42ca8!important;color:white!important}
#reader .reader-note.tss{background:#00f1bd!important;color:#003b31!important}
#reader .reader-beat.has-tss .tss-chip{background:#00f1bd!important}
#reader .reader-card.future{opacity:1!important}
/* One coherent workspace: transparent halves, no extra cards/edges. */
#reader .reader-practice-module{gap:1.1rem!important;padding:1.15rem 1.4rem 1rem!important}
#reader .reader-practice-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:2.1rem!important;align-items:start!important}
#reader .reader-practice-grid>.reader-song-simulator,#reader .reader-practice-grid>.reader-inline-mixer{
 background:transparent!important;padding:0!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;align-self:start!important;min-height:0!important;max-height:none!important
}
#reader .reader-practice-grid>.reader-inline-mixer{border-left:1px solid #84d1d260!important;
 padding-left:2rem!important;align-self:stretch!important}
#reader .reader-song-sim-title,#reader .reader-inline-mixer .inline-mixer-head{min-height:2.25rem!important;
 margin:0 0 .72rem!important;gap:.75rem!important;align-items:center!important}
#reader .reader-hands-title,#reader .reader-inline-mixer .inline-mixer-title{
 font-size:1.05rem!important;font-weight:900!important;color:#01f0d1!important}
#reader .reader-practice-grid .reader-song-simulator #songSimulator{
 width:100%!important;max-width:27rem!important;height:auto!important;max-height:19.4rem!important;
 min-height:0!important;display:block!important;align-self:center!important;margin:0 auto!important;
}
#reader .reader-practice-grid .reader-song-simulator p{
 margin:.6rem 0 0!important;padding:.6rem .85rem!important;border-radius:.65rem!important;
 background:linear-gradient(135deg,#194d5c,#144354)!important;color:#e3f8fb!important;
 font-size:.73rem!important;line-height:1.4!important
}
#reader .reader-practice-grid .reader-inline-mixer .mixer-channels{gap:.17rem!important}
#reader .reader-practice-grid .reader-inline-mixer .mixer-channel{
 display:flex!important;align-items:center!important;min-height:1.98rem!important;
 padding:.25rem .2rem!important;border-radius:.4rem!important;
 background:transparent!important;gap:.55rem!important}
#reader .reader-practice-grid .reader-inline-mixer .mixer-channel:nth-child(even){background:#0e46502b!important}
#reader .reader-practice-grid .reader-inline-mixer .mixer-channel-top{flex:1.68 1 0!important;min-width:0!important;gap:.4rem!important}
#reader .reader-practice-grid .reader-inline-mixer .mixer-channel-name{font-size:.76rem!important;font-weight:760!important;white-space:nowrap}
#reader .reader-practice-grid .reader-inline-mixer .mixer-reading{font-size:.76rem!important}
#reader .reader-practice-grid .reader-inline-mixer .mixer-mute{background:#1c4c59!important;border:0!important;font-size:.67rem!important;min-width:4.45rem!important;border-radius:1rem!important}
#reader .reader-practice-grid .reader-inline-mixer .mixer-slider{flex:1 1 0!important;min-width:6rem!important;accent-color:#00eacc!important}
#reader .reader-practice-grid .reader-tempo-row{padding-top:.95rem!important;margin-top:.65rem!important;box-shadow:inset 0 1px #6baab47a!important;gap:.45rem!important}
#reader .reader-practice-grid .reader-tempo-row input[type=range]{accent-color:#00eacc!important}
#reader .reader-practice-grid .reader-tempo-value{background:transparent!important;color:#04f5d5!important;
 border:1.5px solid #00ead2!important;border-radius:.75rem!important;padding:.48rem .75rem!important}
#reader .reader-practice-grid .reader-tempo-row button{border-radius:50%;background:#174655!important;border:0!important}
/* Transport: one row on desktop, with all controls. */
#reader .reader-practice-module .reader-bottom{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
 gap:1.1rem!important;align-items:center!important;
 margin-top:.15rem!important;padding:1rem 0 .15rem!important;
 border:0!important;box-shadow:inset 0 1px #8dced18a!important;background:transparent!important;
}
#reader .reader-footer-info{min-width:0;display:flex;flex-direction:column;gap:.35rem}
#reader .reader-footer-info .reader-range{font-size:.79rem;color:#cbe0e4}
#reader .reader-footer-info .reader-count{font-size:1.13rem;font-weight:900;color:#fff}
#reader .reader-bottom .controls{white-space:nowrap;justify-content:center!important;display:flex!important;gap:.65rem!important}
#reader .reader-bottom #readerPlay{padding:.85rem 2rem!important;background:#00eacb!important;color:#003d33!important;
 font-weight:900!important;font-size:1rem!important;min-width:10.5rem!important;border-radius:2rem!important}
#reader .reader-bottom .reader-round{width:2.65rem;height:2.65rem;background:#164a5b!important;color:#f5ffff!important;
 border:0!important;border-radius:50%!important;padding:0!important}
#reader .reader-bottom .switches{justify-self:end;gap:.65rem!important;white-space:nowrap;flex-wrap:nowrap!important}
#reader .reader-bottom .switch{font-size:.78rem!important;white-space:nowrap!important}
#reader .reader-bottom .switch input{accent-color:#00efc9!important}
/* Other screens share the same vibrant palette, while private data stays unchanged. */
#mainApp .panel,.wrap>.panel{background:linear-gradient(140deg,#123e4a,#0c2d3b)!important;color:#f3ffff!important}
#mainApp .path-card,#mainApp .brand-card,#mainApp .file-choice,#mainApp .upload,
#mainApp .song-examples,#mainApp .song-ready,#mainApp .history-v16-section,
#mainApp .history-evolution>*,#mainApp .history-hero,#mainApp .history-timeline,
#mainApp .sample-card,#mainApp .advanced-import,#mainApp .report,
.wrap .library-grid .library-item,.wrap .sim-artboard,.wrap .bar,.wrap .channel,
.wrap .sim-view-switch,.wrap .app-help{background:#16414f!important;border:0!important}
body:has(.container) .panel{background:#153d4b!important}
/* Responsive: do not hide original content or let wide controls run outside the viewport. */
@media(max-width:1100px){
 #reader .reader-site-header .app-header-nav a{font-size:.77rem!important}
 #reader .reader-practice-grid{gap:1.15rem!important}
 #reader .reader-practice-grid>.reader-inline-mixer{padding-left:1.15rem!important}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-channel-name{font-size:.7rem!important}
 #reader .reader-bottom .switches{gap:.4rem!important}
}
@media(max-width:900px){
 #reader .reader-song-sections:not([hidden]){grid-template-columns:repeat(4,minmax(0,1fr))!important}
 #reader .reader-practice-module .reader-bottom{grid-template-columns:1fr!important;justify-items:center;gap:1rem!important}
 #reader .reader-footer-info{align-items:center;text-align:center}
 #reader .reader-bottom .switches{justify-self:center!important}
 #reader .reader-practice-grid{grid-template-columns:1fr!important}
 #reader .reader-practice-grid>.reader-inline-mixer{border-left:0!important;border-top:1px solid #7ea7ae5c!important;padding:1.1rem 0 0!important}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-channel-top{flex:1.5 1 0!important}
}
@media(max-width:720px){
 #reader .reader-song-cover{width:4rem!important;height:3.4rem!important}
 #reader>.reader-top{flex-wrap:wrap!important;min-height:0!important;gap:.7rem!important}
 #reader .reader-titles{flex:1 1 calc(100% - 5rem)}
 #reader .reader-meta{flex:1 1 100%;justify-content:flex-start!important}
 #reader .reader-song-sections:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:0!important}
 #reader .reader-score-module,#reader .reader-practice-module{padding:.8rem!important}
 #reader .reader-score-module .reader-cards,#reader.rhythm-mode .reader-score-module .reader-cards,#reader.layout-four .reader-score-module .reader-cards{grid-template-columns:1fr!important}
 #reader .reader-score-module .reader-card{padding:.8rem .65rem!important}
 #reader .reader-score-module .reader-card .no{font-size:1.13rem!important}
 #reader .reader-practice-grid{gap:1.5rem!important}
 #reader .reader-practice-grid .reader-song-simulator #songSimulator{max-width:100%!important;max-height:25rem!important}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-channel{display:flex!important;flex-direction:column!important;gap:.25rem!important}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-channel-name{font-size:.75rem!important}
 #reader .reader-practice-grid .reader-inline-mixer .mixer-slider{min-width:0!important;width:100%!important}
 #reader .reader-practice-module .reader-bottom{padding-top:1.15rem!important}
 #reader .reader-bottom .switches{flex-wrap:wrap!important;justify-content:center!important}
}
/* V19.2 ajuste final de proporciones: compases bajos y un solo panel de práctica */
#reader#reader .reader-score-module .reader-card,
#reader#reader.rhythm-mode .reader-score-module .reader-card{
  min-height:0!important;padding:.5rem .8rem .6rem!important;gap:.1rem!important;
}
#reader#reader .reader-score-module .reader-card header{min-height:1.25rem!important;margin:0!important}
#reader#reader .reader-score-module .reader-grid{margin:.1rem 0!important;row-gap:1px!important}
#reader#reader .reader-score-module .reader-grid .n{height:.97rem!important;font-size:.7rem!important}
#reader#reader .reader-score-module .reader-note,
#reader#reader.rhythm-mode .reader-score-module .reader-note{
  height:1.13rem!important;min-height:1.13rem!important;max-height:1.13rem!important
}
#reader#reader .reader-score-module .reader-step-bar{margin-top:.1rem!important;height:2px!important}
#reader#reader .reader-practice-grid>.reader-song-simulator,
#reader#reader.song-mode .reader-song-layout[data-view="both"] .reader-practice-grid>.reader-song-simulator,
#reader#reader.rhythm-mode .reader-song-layout[data-view="both"] .reader-practice-grid>.reader-song-simulator,
#reader#reader.song-mode .reader-song-layout[data-view="hands"] .reader-practice-grid>.reader-song-simulator,
#reader#reader.rhythm-mode .reader-song-layout[data-view="hands"] .reader-practice-grid>.reader-song-simulator{
 background:transparent!important;border:0!important;border-radius:0!important;
 padding:0!important;box-shadow:none!important;min-height:0!important;
}
#reader#reader .reader-practice-grid>.reader-inline-mixer{
 background:transparent!important;box-shadow:none!important;border:0!important;
 border-radius:0!important;border-left:1px solid #78c3c47a!important;
 padding:0 0 0 1.4rem!important;min-height:0!important;
}
#reader#reader .reader-practice-grid .reader-song-simulator #songSimulator{
 max-height:17.5rem!important;max-width:25rem!important;
}
#reader#reader .reader-practice-grid .reader-song-simulator p{
 padding:.52rem .75rem!important;margin:.5rem 0 0!important;
 font-size:.73rem!important;line-height:1.4!important;
}
#reader#reader .reader-practice-grid .reader-inline-mixer .mixer-channel{
 min-height:1.8rem!important;padding:.15rem .18rem!important;
}
#reader#reader .reader-practice-grid .reader-inline-mixer .mixer-channels{gap:.05rem!important}
#reader#reader .reader-practice-grid{align-items:start!important}
@media(max-width:900px){
 #reader#reader .reader-practice-grid>.reader-inline-mixer{border-left:0!important;border-top:1px solid #78c3c47a!important;padding:1rem 0 0!important}
}
@media(max-width:720px){
 #reader#reader .reader-score-module .reader-grid .n{height:.95rem!important}
 #reader#reader .reader-score-module .reader-note{height:1.36rem!important;min-height:1.36rem!important;max-height:1.36rem!important}
 #reader#reader .reader-practice-grid .reader-song-simulator #songSimulator{max-width:100%!important;max-height:24rem!important}
 #reader#reader .reader-bottom .switches{gap:.38rem!important;max-width:100%;justify-content:center!important}
}
/* Cabecera móvil compacta y ordenada, sin fila suelta de Salir */
@media(max-width:720px){
 #reader:not([hidden])>.reader-site-header{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  gap:.75rem .45rem!important;align-items:center!important;
 }
 #reader .reader-site-header .app-brand-link{
  grid-column:1!important;grid-row:1!important;min-width:0!important;
  white-space:nowrap!important;gap:.52rem!important;
 }
 #reader .reader-site-header .app-brand-link strong{
  font-size:clamp(1rem,3.6vw,1.25rem)!important;letter-spacing:-.04em!important;
 }
 #reader .reader-site-header .app-brand-mark{width:2.55rem!important;height:2.55rem!important;flex:0 0 2.55rem!important}
 #reader .reader-site-header .reader-header-exit{
  grid-column:2!important;grid-row:1!important;justify-self:end!important;
  margin:0!important;padding:.6rem .65rem!important;font-size:.73rem!important;
 }
 #reader .reader-site-header .app-header-nav{
  grid-column:1/-1!important;grid-row:2!important;order:initial!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:100%!important;margin:0!important;padding:0!important;
 }
}

/* =====================================================================
   V19.3 — Physical simulator scale, balanced mixer, truly responsive nav
   Presentation only: does not touch sounds, scores, storage or JS events.
   ===================================================================== */
.visually-hidden{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}
/* The real settings button is now an icon-only, accessible 44px control. */
#mainApp>.app-global-header .top .settings-link{
 box-sizing:border-box!important;width:2.95rem!important;min-width:2.95rem!important;max-width:2.95rem!important;
 height:2.95rem!important;min-height:2.95rem!important;display:grid!important;place-items:center!important;
 padding:0!important;flex:none!important;overflow:hidden!important;justify-self:end!important;
 background:#194251!important;border-radius:.75rem!important;border:0!important;white-space:nowrap!important;
}
#mainApp>.app-global-header .top .settings-link .ico{width:1.48rem!important;height:1.48rem!important;display:block!important;color:#57efd0!important}
#mainApp>.app-global-header .top .settings-link:hover,#mainApp>.app-global-header .top .settings-link.active{background:#136d60!important}
/* Place brand, navigation and icon in dedicated grid cells — never overlap. */
#mainApp>.app-global-header{
 display:grid!important;grid-template-columns:max-content minmax(0,1fr) 2.95rem!important;
 grid-auto-rows:auto!important;column-gap:clamp(.7rem,1.45vw,1.4rem)!important;row-gap:.65rem!important;
 align-items:center!important;width:100%!important;box-sizing:border-box!important;
}
#mainApp>.app-global-header .top{display:contents!important}
#mainApp>.app-global-header .top .app-brand-link{
 grid-column:1!important;grid-row:1!important;min-width:0!important;max-width:100%!important;
 justify-self:start!important;white-space:nowrap!important;
}
#mainApp>.app-global-header .nav{
 grid-column:2!important;grid-row:1!important;order:initial!important;display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;
 min-width:0!important;max-width:100%!important;flex:none!important;gap:.6rem!important;
}
#mainApp>.app-global-header .top .settings-link{grid-column:3!important;grid-row:1!important;order:initial!important;margin:0!important}
#mainApp>.app-global-header .nav>button,#mainApp>.app-global-header .nav>a{min-width:0!important;overflow-wrap:anywhere!important}
/* Practice and traditional headers obey the exact same responsive layout. */
#reader:not([hidden])>.reader-site-header{
 display:grid!important;grid-template-columns:max-content minmax(0,1fr) auto!important;
 align-items:center!important;column-gap:clamp(.7rem,1.45vw,1.4rem)!important;row-gap:.65rem!important;
 width:100%!important;box-sizing:border-box!important;
}
#reader .reader-site-header .app-brand-link{grid-column:1!important;grid-row:1!important;min-width:0!important;max-width:100%!important}
#reader .reader-site-header .app-header-nav{grid-column:2!important;grid-row:1!important;order:initial!important;min-width:0!important;width:100%!important;max-width:100%!important;flex:none!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
#reader .reader-site-header .reader-header-exit{grid-column:3!important;grid-row:1!important;margin:0!important;justify-self:end!important}
body>.app-global-header{
 display:grid!important;grid-template-columns:max-content minmax(0,1fr)!important;
 align-items:center!important;column-gap:clamp(.7rem,1.45vw,1.4rem)!important;
 width:100%!important;box-sizing:border-box!important;
}
body>.app-global-header .app-brand-link{grid-column:1!important;grid-row:1!important;min-width:0!important}
body>.app-global-header .app-header-nav{grid-column:2!important;grid-row:1!important;order:initial!important;min-width:0!important;max-width:100%!important;flex:none!important;width:100%!important}
/* The hands illustration must use all available width of its 50% grid column. */
#reader#reader .reader-practice-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:clamp(1rem,2vw,2rem)!important;align-items:stretch!important}
#reader#reader .reader-practice-grid>.reader-song-simulator{
 display:flex!important;align-self:stretch!important;min-width:0!important;width:100%!important;
 justify-content:flex-start!important;
}
#reader#reader .reader-practice-grid .reader-song-simulator #songSimulator{
 display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
 max-height:none!important;height:auto!important;aspect-ratio:723 / 543!important;
 flex:0 0 auto!important;object-fit:contain!important;
}
#reader#reader .reader-practice-grid .reader-song-simulator p{
 margin-top:.9rem!important;padding:.65rem .85rem!important;line-height:1.45!important;
}
/* The six channels are no longer stranded at the top of a tall column. */
#reader#reader .reader-practice-grid>.reader-inline-mixer{
 display:flex!important;flex-direction:column!important;align-self:stretch!important;
 justify-content:space-evenly!important;min-height:0!important;
}
#reader#reader .reader-practice-grid .reader-inline-mixer .mixer-channels{
 display:grid!important;grid-template-columns:1fr!important;gap:clamp(.43rem,.8vw,.85rem)!important;
 align-content:center!important;
}
#reader#reader .reader-practice-grid .reader-inline-mixer .mixer-channel{
 min-height:clamp(2.35rem,3.1vw,2.75rem)!important;
 padding:.35rem .4rem!important;gap:.6rem!important;
}
#reader#reader .reader-practice-grid .reader-inline-mixer .inline-mixer-head{margin-bottom:.8rem!important}
#reader#reader .reader-practice-grid .reader-tempo-row{margin-top:1rem!important;padding-top:1rem!important}
/* Before content can collide, move the complete menu to its own line. */
@media(max-width:1170px){
 #mainApp>.app-global-header{grid-template-columns:minmax(0,1fr) auto!important;row-gap:.85rem!important}
 #mainApp>.app-global-header .top .app-brand-link{grid-column:1!important;grid-row:1!important}
 #mainApp>.app-global-header .top .settings-link{grid-column:2!important;grid-row:1!important}
 #mainApp>.app-global-header .nav{grid-column:1/-1!important;grid-row:2!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
 #reader:not([hidden])>.reader-site-header{grid-template-columns:minmax(0,1fr) auto!important;row-gap:.85rem!important}
 #reader .reader-site-header .app-brand-link{grid-column:1!important;grid-row:1!important}
 #reader .reader-site-header .reader-header-exit{grid-column:2!important;grid-row:1!important}
 #reader .reader-site-header .app-header-nav{grid-column:1/-1!important;grid-row:2!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
 body>.app-global-header{grid-template-columns:1fr!important;row-gap:.85rem!important}
 body>.app-global-header .app-brand-link{grid-column:1!important;grid-row:1!important}
 body>.app-global-header .app-header-nav{grid-column:1!important;grid-row:2!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:900px){
 #reader#reader .reader-practice-grid{grid-template-columns:minmax(0,1fr)!important}
 #reader#reader .reader-practice-grid>.reader-inline-mixer{border-left:0!important;border-top:1px solid #78c3c47a!important;padding:1.15rem 0 0!important}
 #reader#reader .reader-practice-grid .reader-song-simulator #songSimulator{max-height:unset!important}
}
@media(max-width:620px){
 #mainApp>.app-global-header .nav,#reader .reader-site-header .app-header-nav,body>.app-global-header .app-header-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #mainApp>.app-global-header .top .app-brand-link strong,#reader .reader-site-header .app-brand-link strong,body>.app-global-header .app-brand-link strong{font-size:clamp(.98rem,4vw,1.25rem)!important}
 #mainApp>.app-global-header .top .app-brand-link .app-brand-mark,#reader .reader-site-header .app-brand-mark{width:2.5rem!important;height:2.5rem!important;flex:0 0 2.5rem!important}
 #mainApp>.app-global-header .top .settings-link{width:2.65rem!important;height:2.65rem!important;min-width:2.65rem!important;max-width:2.65rem!important;min-height:2.65rem!important}
 #reader#reader .reader-practice-grid .reader-song-simulator #songSimulator{width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important}
 #reader#reader .reader-practice-grid>.reader-inline-mixer{justify-content:flex-start!important}
}

/* V19.3.4 — transparencia aprobada: módulos 30 %, tarjetas 45 %.
   Se modifica el canal alfa del fondo, NO opacity del elemento: texto y controles conservan contraste. */
#mainApp .panel,.wrap>.panel{
 background:linear-gradient(140deg,rgba(18,62,74,.30),rgba(12,45,59,.30))!important;
}
#mainApp .path-card,#mainApp .brand-card,#mainApp .file-choice,#mainApp .upload,
#mainApp .song-examples,#mainApp .song-ready,#mainApp .history-v16-section,
#mainApp .history-evolution>*,#mainApp .history-hero,#mainApp .history-timeline,
#mainApp .sample-card,#mainApp .advanced-import,#mainApp .report,
.wrap .library-grid .library-item,.wrap .sim-artboard,.wrap .bar,.wrap .channel,
.wrap .sim-view-switch,.wrap .app-help{
 background:rgba(22,65,79,.45)!important;
}
/* Ritmos tradicionales: tarjetas 45 %, al pasar el cursor 55 %.
   El ritmo seleccionado queda al 84 % para distinguirlo con claridad. */
.wrap .library-grid .rhythm-tile{
 background:rgba(33,52,66,.45)!important;
}
.wrap .library-grid .rhythm-tile:hover{
 background:rgba(32,69,75,.55)!important;
}
.wrap .library-grid .rhythm-tile[aria-pressed="true"],
.wrap .library-grid .rhythm-tile[aria-pressed="true"]:hover{
 background:rgba(23,77,64,.84)!important;
 border-color:#55e1be!important;
}


/* V19.4 — Controles al alcance de la partitura y mezclador a 90 %. */
#reader#reader .reader-quick-transport{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(15rem,.55fr);
 align-items:center;column-gap:1.5rem;row-gap:.7rem;
 width:100%;padding:.9rem 1.25rem;margin:0!important;
 background:linear-gradient(110deg,rgba(13,61,72,.55),rgba(11,41,54,.38));
 border:0!important;border-radius:1rem;box-shadow:none!important;
}
#reader#reader .reader-quick-transport .reader-bottom{
 display:grid!important;grid-template-columns:minmax(6rem,1fr) auto minmax(8rem,1fr)!important;
 gap:.9rem!important;align-items:center!important;
 border:0!important;background:none!important;padding:0!important;margin:0!important;
 width:100%!important;min-width:0!important;
}
#reader#reader .reader-quick-transport .reader-bottom .controls{justify-content:center!important;flex-wrap:nowrap!important;white-space:nowrap;}
#reader#reader .reader-quick-transport .reader-bottom .switches{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:.4rem!important;}
#reader#reader .reader-quick-transport .reader-tempo-row{
 display:flex!important;justify-content:flex-end!important;align-items:center!important;
 gap:.5rem!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;
 min-width:0!important;
}
#reader#reader .reader-quick-transport .reader-tempo-row input[type="range"]{
 min-width:4.5rem;width:clamp(5rem,9vw,10rem);flex:1 1 auto;accent-color:#00eacc;
}
#reader#reader .reader-quick-transport .reader-tempo-row button{border-radius:50%!important;background:#164958!important;border:0!important;}
#reader#reader .reader-practice-module .reader-bottom,#reader#reader .reader-practice-grid .reader-tempo-row{display:none!important;}
#reader#reader .reader-quick-transport .reader-tempo-value{white-space:nowrap;}
#reader#reader .reader-song-layout[data-view="hands"] .reader-score-module{display:none!important;}
#reader#reader .reader-practice-module{margin-top:0!important;}
/* Traditional: remove the old standalone block border; controls now belong right under the two bars. */
.wrap .sim-score-side>.toolbar{display:flex!important;flex-wrap:wrap!important;gap:.75rem!important;
 margin:.85rem 0 1rem!important;padding:.85rem!important;border:0!important;
 background:rgba(16,74,84,.38)!important;border-radius:.8rem!important;}
.wrap .sim-practice>.toolbar{margin:0 0 1rem!important;padding:.85rem!important;border:0!important;background:rgba(16,74,84,.38)!important;}
.wrap .sim-score-side>.toolbar .tempo{flex:1 1 11rem!important;}
.wrap .sim-score-side>.toolbar .checks{flex:1 1 100%;}
@media(max-width:1150px){
 #reader#reader .reader-quick-transport{grid-template-columns:1fr!important;gap:.85rem!important;}
 #reader#reader .reader-quick-transport .reader-tempo-row{justify-content:center!important;width:100%!important;}
 #reader#reader .reader-quick-transport .reader-tempo-row input[type="range"]{max-width:19rem;width:auto;}
}
@media(max-width:720px){
 #reader#reader .reader-quick-transport{padding:.75rem!important;gap:.75rem!important;}
 #reader#reader .reader-quick-transport .reader-bottom{grid-template-columns:1fr!important;justify-items:center!important;gap:.6rem!important;}
 #reader#reader .reader-quick-transport .reader-bottom .controls{order:-1!important;justify-content:center!important;}
 #reader#reader .reader-quick-transport .reader-bottom .switches{justify-content:center!important;}
 #reader#reader .reader-quick-transport .reader-tempo-row{flex-wrap:nowrap!important;justify-content:center!important;}
 #reader#reader .reader-quick-transport .reader-tempo-row .reader-tempo-label strong{display:none!important;}
 .wrap .sim-score-side>.toolbar{padding:.7rem!important;}
}

/* La barra sigue a los compases sin el gran espacio entre módulos. */
#reader#reader .reader-score-module + .reader-quick-transport{margin-top:calc(.65rem - var(--lc-module-space))!important;}


/* =====================================================================
   V19.5 — Biblioteca tradicional compacta aprobada.
   Única información visible en cada tarjeta: icono discreto y nombre.
   Género, dificultad, compás y golpes siguen en title/aria-label.
   No modifica el motor, los JSON, la selección ni los sonidos.
   ===================================================================== */
.wrap .library-grid{
 display:grid!important;
 grid-template-columns:repeat(5,minmax(0,1fr))!important;
 gap:.8rem!important;
 margin-top:1.25rem!important;
 margin-bottom:.5rem!important;
 align-items:stretch!important;
}
.wrap .library-grid .rhythm-tile{
 position:relative!important;
 display:flex!important;
 flex-direction:row!important;
 align-items:center!important;
 justify-content:flex-start!important;
 text-align:left!important;
 gap:.68rem!important;
 min-height:4.65rem!important;
 width:100%!important;
 padding:.75rem .85rem!important;
 border-radius:.9rem!important;
 border:1px solid rgba(64,169,178,.27)!important;
 background:rgba(24,70,83,.45)!important;
 color:#f5fbfb!important;
 box-shadow:none!important;
 transition:background-color .15s ease,border-color .15s ease,transform .15s ease!important;
}
.wrap .library-grid .rhythm-tile:hover{
 background:rgba(29,89,96,.55)!important;
 border-color:rgba(70,220,206,.58)!important;
 transform:translateY(-1px);
}
.wrap .library-grid .rhythm-tile[aria-pressed="true"],
.wrap .library-grid .rhythm-tile[aria-pressed="true"]:hover{
 background:rgba(10,92,83,.70)!important;
 border-color:#00ead0!important;
 box-shadow:inset 0 0 0 1px rgba(0,234,208,.32),0 0 13px rgba(0,234,208,.09)!important;
}
.wrap .library-grid .rhythm-tile .rhythm-icon{
 display:grid!important;
 place-items:center!important;
 flex:0 0 2.35rem!important;
 width:2.35rem!important;
 height:2.35rem!important;
 color:#f0fbfb!important;
 border-right:1px solid rgba(121,227,214,.30)!important;
 padding-right:.4rem!important;
 box-sizing:content-box!important;
}
.wrap .library-grid .rhythm-tile .rhythm-icon svg{display:block;width:2.1rem;height:2.1rem;overflow:visible}
.wrap .library-grid .rhythm-tile .rhythm-name{
 display:block!important;
 min-width:0!important;
 font-size:clamp(.92rem,1.48vw,1.15rem)!important;
 line-height:1.18!important;
 font-weight:800!important;
 letter-spacing:-.02em!important;
 overflow-wrap:break-word!important;
}
.wrap .library-grid .rhythm-tile .rhythm-current-indicator{
 display:none!important;
 position:absolute!important;
 right:.33rem!important;top:.26rem!important;
 color:#73ffe4!important;font-weight:900!important;font-size:.75rem!important;
}
.wrap .library-grid .rhythm-tile[aria-pressed="true"] .rhythm-current-indicator{display:block!important;}
@media(max-width:1150px){
 .wrap .library-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}
@media(max-width:850px){
 .wrap .library-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:620px){
 .wrap .library-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.65rem!important;}
 .wrap .library-grid .rhythm-tile{min-height:4.35rem!important;padding:.65rem .56rem!important;gap:.48rem!important;}
 .wrap .library-grid .rhythm-tile .rhythm-icon{flex-basis:1.65rem!important;width:1.65rem!important;height:1.8rem!important;padding-right:.24rem!important;}
 .wrap .library-grid .rhythm-tile .rhythm-icon svg{width:1.62rem;height:1.62rem;}
 .wrap .library-grid .rhythm-tile .rhythm-name{font-size:clamp(.78rem,3.1vw,.97rem)!important;line-height:1.16!important;}
}
@media(prefers-reduced-motion:reduce){
 .wrap .library-grid .rhythm-tile{transition:none!important;}
 .wrap .library-grid .rhythm-tile:hover{transform:none!important;}
}


/* === Fuente integrada: practica-unificada.css === */
/* Laboratorio V19.6.0 – estilos de accesorios consolidados + convenciones compartidas. */
/* V19.5.3 - Biblioteca de cajon con accesorios armonizada con Cajon tradicional.
   Este archivo SOLO aplica a #rhythmsView; el lector y el motor de audio
   de V19.5.2 permanecen intactos. Los iconos usan el mismo catalogo SVG. */
#rhythmsView{max-width:1240px;margin:0 auto;padding-bottom:2.5rem;}
#rhythmsView .accessory-library-shell{
  background:rgba(11,68,76,.30);border:1px solid rgba(65,180,190,.24);
  border-radius:1.25rem;padding:clamp(1rem,2.2vw,1.6rem);
  margin:0 0 2.5rem;box-shadow:none;
}
#rhythmsView .accessory-library-heading .section-eyebrow{font-size:.8rem;font-weight:850;letter-spacing:.115em;color:#20e6c5;}
#rhythmsView .accessory-library-heading h2{font-size:clamp(1.8rem,3vw,2.35rem);letter-spacing:-.045em;line-height:1.13;margin:.35rem 0 .65rem;font-weight:850;}
#rhythmsView .accessory-library-heading p{font-size:clamp(.85rem,1.2vw,1rem);color:#bdd2dc;margin:0 0 1rem;line-height:1.55;}
#rhythmsView>.accessory-library-shell .app-help{
 background:rgba(26,89,102,.38)!important;border:0!important;
 margin:0 0 .8rem!important;border-radius:.85rem!important;
 padding:.9rem 1rem!important;color:#bcefe1;
}
#rhythmsView>.accessory-library-shell .app-help>summary{font-size:.9rem;color:#79f4d7;}
#rhythmsView>.accessory-library-shell .app-help[open]{margin-bottom:1rem!important;}
#rhythmsView .accessory-library-filters{margin:0 0 1.15rem;color:#d0e2e7;}
#rhythmsView .accessory-library-filters>summary{
 display:inline-flex;align-items:center;cursor:pointer;font-size:.81rem;
 padding:.45rem .75rem;border-radius:.6rem;background:rgba(23,82,96,.35);
 color:#b1ddd9;font-weight:750;list-style:none;
}
#rhythmsView .accessory-library-filters>summary::-webkit-details-marker{display:none;}
#rhythmsView .accessory-library-filters>summary:before{content:'⌕';font-size:1.05rem;padding-right:.55rem;line-height:1;}
#rhythmsView .accessory-library-filters[open]>.library-toolbar{margin:1rem 0 .5rem;}
#rhythmsView .library-list{
 background:none!important;border:0!important;border-radius:0!important;padding:0!important;
 max-height:none!important;overflow:visible!important;
}
#rhythmsView .rhythm-list{
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
 gap:.8rem!important;align-items:stretch!important;
}
#rhythmsView .rhythm-list .accessory-rhythm-tile{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:flex-start!important;text-align:left!important;position:relative!important;
 gap:.68rem!important;min-height:4.65rem!important;width:100%!important;
 padding:.75rem .85rem!important;border-radius:.9rem!important;
 background:rgba(24,70,83,.45)!important;border:1px solid rgba(64,169,178,.27)!important;
 color:#f5fbfb!important;box-shadow:none!important;
 transition:background-color .15s ease,border-color .15s ease,transform .15s ease!important;
}
#rhythmsView .rhythm-list .accessory-rhythm-tile:hover{
 background:rgba(29,89,96,.55)!important;border-color:rgba(70,220,206,.58)!important;
 transform:translateY(-1px);
}
#rhythmsView .rhythm-list .accessory-rhythm-tile.selected,
#rhythmsView .rhythm-list .accessory-rhythm-tile[aria-pressed=true]{
 background:rgba(10,92,83,.70)!important;border-color:#00ead0!important;
 box-shadow:inset 0 0 0 1px rgba(0,234,208,.32),0 0 13px rgba(0,234,208,.09)!important;
}
#rhythmsView .accessory-rhythm-tile .rhythm-icon{
 display:grid!important;place-items:center!important;flex:0 0 2.35rem!important;
 width:2.35rem!important;height:2.35rem!important;box-sizing:content-box!important;
 color:#f0fbfb!important;border-right:1px solid rgba(121,227,214,.3)!important;
 padding-right:.4rem!important;
}
#rhythmsView .accessory-rhythm-tile .rhythm-icon svg{display:block;width:2.1rem;height:2.1rem;overflow:visible;}
#rhythmsView .accessory-rhythm-tile .rhythm-name{
 display:block!important;min-width:0!important;
 font-size:clamp(.92rem,1.48vw,1.15rem)!important;
 line-height:1.18!important;font-weight:800!important;letter-spacing:-.02em!important;
 overflow-wrap:break-word!important;padding-right:0!important;
}
#rhythmsView .accessory-rhythm-tile .rhythm-current-indicator{
 display:none;position:absolute;right:.34rem;top:.22rem;font-size:.75rem;color:#73ffe4;
}
#rhythmsView .accessory-rhythm-tile.selected .rhythm-current-indicator{display:block;}
/* Igual que Cajon tradicional: biblioteca primero, ritmo elegido debajo. */
#rhythmsView .accessory-selected-heading{margin:0 0 1rem;padding:0 .15rem;}
#rhythmsView .accessory-selected-heading h2{
 font-size:clamp(1.8rem,3.6vw,3rem);letter-spacing:-.047em;line-height:1.13;
 margin:.5rem 0 .5rem;font-weight:900;
}
#rhythmsView .accessory-selected-heading .rhythm-meta{font-size:.85rem;margin:.25rem 0 0;color:#83e8d0;}
#rhythmsView .accessory-practice-module{
 position:static!important;top:auto!important;
 background:rgba(11,68,76,.30)!important;
 border:1px solid rgba(65,180,190,.26)!important;border-radius:1.2rem!important;
 padding:clamp(1rem,2vw,1.5rem)!important;margin-bottom:1.5rem;
 box-shadow:none!important;
}
#rhythmsView .accessory-practice-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(18rem,auto);align-items:center;gap:1.5rem;margin:0 0 1.2rem;}
#rhythmsView .accessory-practice-description p{margin:.25rem 0;}
#rhythmsView .accessory-practice-description .focus-tip{
 margin-top:.55rem;background:rgba(22,84,94,.3);border-left:0;border-radius:.6rem;
 font-size:.8rem;padding:.65rem .8rem;
}
#rhythmsView .rhythm-actions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;
 align-items:stretch;max-width:34rem;
}
#rhythmsView .rhythm-actions button{min-width:0;font-size:.81rem;padding:.6rem .7rem;display:flex;align-items:center;justify-content:center;gap:.4rem;}
#rhythmsView .rhythm-actions .action-practice{grid-column:1/-1;}
#rhythmsView .rhythm-actions .action-practice .button-stack small{display:none;}
#rhythmsView .rhythm-actions .favorite-action{background:rgba(30,78,89,.36);color:#ddf0ee;border:0;border-radius:.65rem;}
#rhythmsView .accessory-preview-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.65rem .15rem;margin-bottom:.6rem;border-top:1px solid rgba(79,177,182,.2);}
#rhythmsView .accessory-preview-heading strong{color:#65f0d4;font-size:1rem;}
#rhythmsView .accessory-preview-heading span{color:#afced5;font-size:.75rem;}
#rhythmsView .rhythm-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;margin:0 0 .8rem;min-width:0;}
#rhythmsView .rhythm-preview .preview-bar{
 background:rgba(21,64,77,.45);border:0;border-radius:.85rem;padding:1rem;min-width:0;
}
#rhythmsView .preview-grid{grid-template-columns:minmax(3.7rem,4.4rem) repeat(8,minmax(0,1fr));gap:.2rem;}
#rhythmsView .rhythm-preview .preview-bar h4{font-size:.94rem;margin:0 0 .75rem;color:#63f0d4;}
#rhythmsView .rhythm-preview .preview-cell{min-height:1.55rem;}
#rhythmsView .library-disclaimer{margin:.6rem 0 0;color:#a2c6cc;}
#rhythmsView .library-tail{
 background:rgba(11,68,76,.25)!important;border:0!important;
 padding:.85rem 1rem!important;margin-top:1.2rem;
}
@media(max-width:1150px){#rhythmsView .rhythm-list{grid-template-columns:repeat(4,minmax(0,1fr))!important;}}
@media(max-width:940px){#rhythmsView .rhythm-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 #rhythmsView .accessory-practice-top{grid-template-columns:1fr;gap:.9rem;}
 #rhythmsView .rhythm-actions{max-width:none;}
}
@media(max-width:620px){
 #rhythmsView .rhythm-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.65rem!important;}
 #rhythmsView .rhythm-list .accessory-rhythm-tile{min-height:4.35rem!important;padding:.65rem .56rem!important;gap:.48rem!important;}
 #rhythmsView .accessory-rhythm-tile .rhythm-icon{flex-basis:1.65rem!important;width:1.65rem!important;height:1.8rem!important;padding-right:.24rem!important;}
 #rhythmsView .accessory-rhythm-tile .rhythm-icon svg{width:1.62rem;height:1.62rem;}
 #rhythmsView .accessory-rhythm-tile .rhythm-name{font-size:clamp(.78rem,3.1vw,.97rem)!important;line-height:1.16!important;}
 #rhythmsView .rhythm-preview{grid-template-columns:1fr;gap:.7rem;}
 #rhythmsView .accessory-library-shell{margin-bottom:2rem;}
 #rhythmsView .accessory-practice-module{padding:.9rem!important;}
 #rhythmsView .accessory-library-filters>.library-toolbar{grid-template-columns:1fr 1fr;}
 #rhythmsView .library-tail{flex-wrap:wrap;}
}
@media(prefers-reduced-motion:reduce){#rhythmsView .accessory-rhythm-tile{transition:none!important;transform:none!important;}}

/* Laboratorio de Cajón V19.5.4
 * Mismo recorrido de práctica que Cajón tradicional:
 * biblioteca -> ritmo actual -> transporte/tempo -> partitura y manos -> mezclador.
 * Sin segundo reproductor ni duplicación de sonidos. El lector de canciones
 * conserva el modo original de pantalla completa.
 */
#rhythmsView .accessory-library-shell{margin-bottom:2.15rem;}
#rhythmsView .accessory-selected-heading{margin:0 0 .7rem;padding:0 .1rem;}
#rhythmsView .accessory-selected-heading h2{font-size:clamp(2rem,4.2vw,3.15rem);margin:.25rem 0 .25rem;}
#rhythmsView .accessory-selected-heading .rhythm-meta{margin:0;color:#aac7ce;}
#rhythmsView .accessory-selected-heading .subtle{margin:.5rem 0 0;color:#b4d1d7;font-size:.9rem;}
#rhythmsView .accessory-inline-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:.6rem;margin:0 0 .85rem;}
#rhythmsView .accessory-inline-actions button{padding:.5rem .8rem;border-radius:.65rem;font-size:.78rem;min-height:2.2rem;white-space:nowrap;}
#rhythmsView .accessory-inline-actions button svg{width:1rem;height:1rem;}
#rhythmsView #rhythmInspector{display:none!important;}
#rhythmsView .library-tail{margin-top:2.3rem!important;}

/* El lector ahora vive en el flujo de la página, no como pantalla modal. */
#rhythmsView #reader#reader.accessory-inline:not([hidden]){
 position:relative!important;inset:auto!important;z-index:auto!important;
 width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
 overflow:visible!important;overscroll-behavior:auto!important;
 display:block!important;box-sizing:border-box!important;
 background:transparent!important;padding:0!important;margin:0 0 1.25rem!important;
 touch-action:auto!important;
}
#reader#reader.accessory-inline>.reader-site-header,
#reader#reader.accessory-inline>.reader-top,
#reader#reader.accessory-inline>.reader-song-sections{display:none!important;}
#reader#reader.accessory-inline>.reader-song-layout{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 grid-template-rows:auto auto auto auto!important;
 gap:1.1rem!important;
 align-items:start!important;
 width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important;
 margin:0!important;padding:0!important;background:transparent!important;border:0!important;
}
/* El transporte y el tempo están junto al título, por encima de la partitura. */
#reader#reader.accessory-inline .reader-quick-transport{
 grid-column:1/-1!important;grid-row:1!important;
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(17rem,.72fr)!important;
 align-items:center!important;gap:1rem!important;
 min-height:0!important;max-height:none!important;overflow:visible!important;
 padding:1rem 1.25rem!important;margin:0!important;
 border:1px solid rgba(69,162,172,.3)!important;border-radius:1rem!important;
 background:rgba(15,61,72,.3)!important;
}
#reader#reader.accessory-inline .reader-quick-transport .reader-bottom{
 display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
 justify-content:space-between!important;align-items:center!important;gap:.65rem!important;
 min-height:0!important;width:100%!important;
}
#reader#reader.accessory-inline .reader-quick-transport .reader-bottom .controls{
 display:flex!important;justify-content:center!important;align-items:center!important;gap:.65rem!important;
 white-space:nowrap!important;flex:1 1 16rem!important;
}
#reader#reader.accessory-inline .reader-quick-transport .reader-bottom .switches{
 display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;
 gap:.55rem!important;flex:1 1 100%!important;
}
#reader#reader.accessory-inline .reader-quick-transport .reader-tempo-row{
 display:flex!important;justify-content:center!important;align-items:center!important;
 padding:0!important;margin:0!important;min-height:0!important;
 gap:.65rem!important;width:100%!important;flex-wrap:nowrap!important;
}
#reader#reader.accessory-inline .reader-quick-transport .reader-tempo-row input[type="range"]{
 min-width:4rem!important;max-width:none!important;flex:1!important;
}
#reader#reader.accessory-inline .reader-view-switch{
 grid-row:2!important;grid-column:1/-1!important;
 width:max-content!important;max-width:100%!important;
 justify-self:center!important;align-self:center!important;
 margin:0!important;
}
/* La partitura ocupa la primera mitad como en la práctica tradicional. */
#reader#reader.accessory-inline .reader-score-module{
 display:block!important;grid-column:1!important;grid-row:3!important;
 min-height:0!important;height:auto!important;min-width:0!important;
 padding:1rem!important;margin:0!important;overflow:visible!important;
 background:rgba(13,69,79,.32)!important;
 border:1px solid rgba(56,173,179,.28)!important;border-radius:1rem!important;
}
#reader#reader.accessory-inline .reader-cards,
#reader#reader.accessory-inline .reader-cards.compact-two{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:repeat(2,auto)!important;gap:1rem!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 overflow:visible!important;
}
#reader#reader.accessory-inline .reader-card{
 display:flex!important;min-width:0!important;min-height:10rem!important;height:auto!important;
 padding:.85rem .8rem!important;gap:.65rem!important;
 border:0!important;border-radius:.85rem!important;
 background:rgba(27,89,100,.26)!important;
}
#reader#reader.accessory-inline .reader-card.active{background:rgba(18,117,96,.27)!important;}
#reader#reader.accessory-inline .reader-card.future{background:rgba(30,74,89,.29)!important;}
#reader#reader.accessory-inline .reader-grid{grid-template-columns:minmax(3.8rem,4.8rem) repeat(8,minmax(0,1fr))!important;gap:.2rem!important;}
#reader#reader.accessory-inline .reader-grid .name{font-size:clamp(.62rem,1vw,.8rem)!important;}
#reader#reader.accessory-inline .reader-grid .n{font-size:clamp(.62rem,1vw,.78rem)!important;}
#reader#reader.accessory-inline .reader-note{height:clamp(1.42rem,2.9vw,2rem)!important;}
/* 'display:contents' evita copiar el motor o replicar el HTML del simulador. */
#reader#reader.accessory-inline .reader-practice-module,
#reader#reader.accessory-inline .reader-practice-grid{display:contents!important;}
#reader#reader.accessory-inline .reader-song-simulator{
 grid-column:2!important;grid-row:3!important;
 display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
 padding:1rem!important;margin:0!important;min-height:0!important;min-width:0!important;
 width:100%!important;max-width:100%!important;overflow:visible!important;
 background:rgba(13,69,79,.32)!important;
 border:1px solid rgba(56,173,179,.28)!important;border-radius:1rem!important;
}
#reader#reader.accessory-inline .reader-song-simulator #songSimulator{
 width:100%!important;height:auto!important;max-height:none!important;
 object-fit:contain!important;display:block!important;margin:.65rem auto!important;
}
#reader#reader.accessory-inline .reader-song-simulator #songSimDescription{
 margin:1rem 0 0!important;padding:.8rem 1rem!important;line-height:1.55!important;
}
#reader#reader.accessory-inline .reader-inline-mixer{
 grid-column:1/-1!important;grid-row:4!important;
 display:block!important;min-width:0!important;min-height:0!important;max-height:none!important;
 padding:1rem 1.2rem!important;margin:0!important;border-radius:1rem!important;
 border:1px solid rgba(56,173,179,.28)!important;
 background:rgba(13,69,79,.32)!important;
}
#reader#reader.accessory-inline .reader-inline-mixer .inline-mixer-channels{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:.85rem!important;
}
#reader#reader.accessory-inline .reader-inline-mixer .mixer-channel{
 padding:.65rem!important;background:rgba(27,90,99,.24)!important;border-radius:.7rem!important;
}
#reader#reader.accessory-inline .reader-inline-mixer .reader-tempo-row{display:none!important;}
#reader#reader.accessory-inline #readerNextHint{display:none!important;}
/* Selector de vista: solo cambia la partitura y el simulador; la mezcla sigue visible. */
#reader#reader.accessory-inline .reader-song-layout[data-view="hands"] .reader-score-module{display:none!important;}
#reader#reader.accessory-inline .reader-song-layout[data-view="score"] .reader-song-simulator{display:none!important;}
#reader#reader.accessory-inline .reader-song-layout[data-view="score"] .reader-score-module,
#reader#reader.accessory-inline .reader-song-layout[data-view="hands"] .reader-song-simulator{
 grid-column:1/-1!important;width:100%!important;
}
@media(max-width:900px){
 #reader#reader.accessory-inline .reader-song-layout{grid-template-columns:minmax(0,1fr)!important;gap:.95rem!important;}
 #reader#reader.accessory-inline .reader-quick-transport{grid-template-columns:1fr!important;gap:.85rem!important;}
 #reader#reader.accessory-inline .reader-score-module,
 #reader#reader.accessory-inline .reader-song-simulator{grid-column:1!important;}
 #reader#reader.accessory-inline .reader-score-module{grid-row:3!important;}
 #reader#reader.accessory-inline .reader-song-simulator{grid-row:4!important;}
 #reader#reader.accessory-inline .reader-inline-mixer{grid-column:1!important;grid-row:5!important;}
 #reader#reader.accessory-inline .reader-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important;}
 #reader#reader.accessory-inline .reader-inline-mixer .inline-mixer-channels{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:580px){
 #rhythmsView .accessory-inline-actions{justify-content:flex-start;gap:.35rem;}
 #rhythmsView .accessory-inline-actions button{font-size:.7rem;padding:.45rem .5rem;}
 #reader#reader.accessory-inline .reader-quick-transport{padding:.7rem!important;}
 #reader#reader.accessory-inline .reader-quick-transport .reader-bottom{display:flex!important;flex-direction:column!important;align-items:center!important;}
 #reader#reader.accessory-inline .reader-quick-transport .reader-bottom .controls{flex:0 0 auto!important;gap:.35rem!important;}
 #reader#reader.accessory-inline .reader-quick-transport .reader-bottom .switches{flex:0 0 auto!important;justify-content:center!important;}
 #reader#reader.accessory-inline .reader-quick-transport .reader-tempo-row{gap:.3rem!important;}
 #reader#reader.accessory-inline .reader-score-module,#reader#reader.accessory-inline .reader-song-simulator,#reader#reader.accessory-inline .reader-inline-mixer{padding:.65rem!important;}
 #reader#reader.accessory-inline .reader-cards{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(2,auto)!important;gap:.6rem!important;}
 #reader#reader.accessory-inline .reader-card{min-height:8rem!important;padding:.7rem .45rem!important;}
 #reader#reader.accessory-inline .reader-inline-mixer .inline-mixer-channels{grid-template-columns:1fr!important;gap:.4rem!important;}
 #reader#reader.accessory-inline .reader-inline-mixer .mixer-channel{padding:.45rem!important;}
 #reader#reader.accessory-inline .reader-note{height:1.55rem!important;}
}

/* La partitura y las manos comparten un único módulo, igual que en Cajón tradicional. */
#reader#reader.accessory-inline .reader-song-layout{
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:auto auto auto auto!important;
 gap:1.25rem!important;
}
#reader#reader.accessory-inline .reader-quick-transport{grid-row:1!important;grid-column:1!important;}
#reader#reader.accessory-inline .reader-view-switch{grid-row:2!important;grid-column:1!important;}
#reader#reader.accessory-inline .accessory-score-sim{
 grid-row:3!important;grid-column:1!important;
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 gap:1.1rem!important;align-items:start!important;
 padding:1rem!important;border-radius:1rem!important;
 border:1px solid rgba(65,166,173,.3)!important;
 background:rgba(13,69,79,.30)!important;
 min-height:0!important;min-width:0!important;
}
#reader#reader.accessory-inline .accessory-score-sim .reader-score-module,
#reader#reader.accessory-inline .accessory-score-sim .reader-song-simulator{
 border:0!important;background:transparent!important;padding:0!important;margin:0!important;
 min-height:0!important;min-width:0!important;width:100%!important;
}
#reader#reader.accessory-inline .accessory-score-sim .reader-score-module{grid-column:1!important;grid-row:1!important;}
#reader#reader.accessory-inline .accessory-score-sim .reader-song-simulator{grid-column:2!important;grid-row:1!important;}
#reader#reader.accessory-inline .reader-inline-mixer{grid-column:1!important;grid-row:4!important;}
#reader#reader.accessory-inline .reader-song-layout[data-view="score"] .accessory-score-sim,
#reader#reader.accessory-inline .reader-song-layout[data-view="hands"] .accessory-score-sim{
 grid-template-columns:minmax(0,1fr)!important;
}
#reader#reader.accessory-inline .reader-song-layout[data-view="score"] .accessory-score-sim .reader-score-module,
#reader#reader.accessory-inline .reader-song-layout[data-view="hands"] .accessory-score-sim .reader-song-simulator{
 grid-column:1!important;
}
@media(max-width:900px){
 #reader#reader.accessory-inline .accessory-score-sim{grid-template-columns:minmax(0,1fr)!important;}
 #reader#reader.accessory-inline .accessory-score-sim .reader-score-module{grid-column:1!important;grid-row:1!important;}
 #reader#reader.accessory-inline .accessory-score-sim .reader-song-simulator{grid-column:1!important;grid-row:2!important;}
}


/* Shared UI tokens and common rhythm library presentation, V19.6. */
:root{--lc-background:#000;--lc-accent:#00ead0;--lc-accent-dark:#10c9ab;--lc-panel:rgba(11,68,76,.30);--lc-card:rgba(24,70,83,.45);--lc-radius:1.15rem;--lc-gap:1.25rem;--lc-section-gap:2.75rem;}
.lab-rhythm-card{min-width:0;cursor:pointer;touch-action:manipulation;}
.lab-rhythm-card:focus-visible{outline:3px solid var(--lc-accent);outline-offset:3px;}
.lab-rhythm-card .rhythm-name{overflow-wrap:anywhere;}
/* The library cards share the same surface and active state in both modes. */
#rhythmsView .rhythm-list .lab-rhythm-card,.library-grid .lab-rhythm-card{
 background:var(--lc-card)!important;border:1px solid rgba(64,169,178,.27)!important;
 border-radius:.9rem!important;color:#f5fbfb!important;box-shadow:none!important;
}
#rhythmsView .rhythm-list .lab-rhythm-card[aria-pressed="true"],.library-grid .lab-rhythm-card[aria-pressed="true"]{
 background:rgba(10,92,83,.70)!important;border-color:var(--lc-accent)!important;
 box-shadow:inset 0 0 0 1px rgba(0,234,208,.32),0 0 13px rgba(0,234,208,.09)!important;
}
/* Common practice panel surfaces keep spacing aligned without recoloring cards. */
.sim-practice,.accessory-score-sim{border-radius:var(--lc-radius);}
.sim-practice-head,.reader-view-switch{margin-bottom:1rem;}
@media(max-width:600px){:root{--lc-section-gap:1.75rem;--lc-gap:.9rem;}}

/* V19.6: identical practice flow for both modalities.
 * Only partitura channels and simulator art differ. No replacement audio engine. */
#reader#reader.accessory-inline>.reader-song-layout{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 gap:1.1rem!important;
}
#reader#reader.accessory-inline .lab-practice-heading{order:0;display:flex;flex-direction:column;gap:.2rem;margin:0;}
#reader#reader.accessory-inline .lab-practice-heading h2{margin:0;font-size:clamp(1.2rem,2.3vw,1.8rem);color:#edf8fb;}
#reader#reader.accessory-inline .lab-practice-heading .kicker{font-size:.73rem;letter-spacing:.12em;}
#reader#reader.accessory-inline .reader-view-switch{order:1!important;grid-row:auto!important;grid-column:auto!important;}
#reader#reader.accessory-inline .accessory-score-sim{order:2!important;grid-row:auto!important;grid-column:auto!important;width:100%!important;}
#reader#reader.accessory-inline .reader-inline-mixer{order:3!important;grid-row:auto!important;grid-column:auto!important;width:100%!important;}
#reader#reader.accessory-inline .reader-score-module>.reader-quick-transport{
 display:flex!important;flex-direction:column!important;gap:.65rem!important;
 position:static!important;grid-row:auto!important;grid-column:auto!important;
 padding:.85rem .35rem!important;margin:1rem 0 0!important;
 border:0!important;background:rgba(10,61,68,.24)!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
}
#reader#reader.accessory-inline .reader-score-module>.reader-quick-transport .reader-bottom{justify-content:center!important;}
#reader#reader.accessory-inline .reader-score-module>.reader-quick-transport .reader-tempo-row{width:100%!important;}
#reader#reader.accessory-inline .reader-score-module>.reader-quick-transport .reader-bottom .switches{justify-content:flex-start!important;}
@media(max-width:900px){#reader#reader.accessory-inline .accessory-score-sim{grid-template-columns:minmax(0,1fr)!important;}}

/* V19.6.1: el transporte de canciones queda disponible para canciones;
   en cajón con accesorios lo sustituye el mismo panel de Cajón tradicional. */
#reader#reader.accessory-inline .reader-quick-transport{display:none!important;}
#reader#reader.accessory-inline .accessory-unified-toolbar{display:flex!important;width:100%!important;
 position:relative!important;grid-column:auto!important;grid-row:auto!important;}
#reader#reader.accessory-inline .accessory-unified-toolbar[hidden]{display:none!important;}
#reader#reader.accessory-inline .reader-top{margin-bottom:.65rem!important;}

/* V19.6.1 - misma ubicación: reproducción justo debajo de los compases.
   Cajón tradicional reubica la toolbar mediante tradicional.js;
   accesorios hace lo mismo mediante placeAccessoryToolbar(). */
.wrap .sim-score-side>.toolbar.lab-transport,
.wrap .sim-practice>.toolbar.lab-transport,
#reader#reader.accessory-inline .reader-score-module>.lab-transport,
#reader#reader.accessory-inline .reader-song-layout>.lab-transport{
 display:flex!important;flex-wrap:wrap!important;gap:.75rem!important;
 margin:.85rem 0 1rem!important;padding:.85rem!important;
 border:0!important;background:rgba(16,74,84,.38)!important;border-radius:.8rem!important;
 width:100%!important;min-width:0!important;}
.wrap .sim-score-side>.toolbar.lab-transport .tempo,
#reader#reader.accessory-inline .reader-score-module>.lab-transport .tempo{flex:1 1 11rem!important;}
.wrap .sim-score-side>.toolbar.lab-transport .checks,
#reader#reader.accessory-inline .reader-score-module>.lab-transport .checks{flex:1 1 100%!important;}
#reader#reader.accessory-inline .reader-song-layout>.lab-transport{order:2!important;}
/* Una sola barra visible: el transporte antiguo queda solo para canciones. */
#reader#reader.accessory-inline .reader-score-module>.reader-quick-transport,
#reader#reader.accessory-inline .accessory-score-sim .reader-quick-transport,
#reader#reader.accessory-inline .reader-song-layout>.reader-quick-transport{display:none!important;}


/* === Fuente integrada: controles-practica.css === */
/* V19.6.1: Panel de reproduccion compartido, identico en ambas modalidades.
   Solo cambia el controlador/ritmo musical, nunca el aspecto del transporte. */
.lab-transport{display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:1rem!important;flex-wrap:wrap!important;min-height:0!important;
 padding:clamp(.85rem,1.5vw,1.2rem)!important;margin:0 0 1.1rem!important;
 border:1px solid rgba(84,183,190,.24)!important;border-radius:1.05rem!important;
 background:rgba(11,66,76,.28)!important;color:#f6fafb!important;}
.lab-transport .transport-controls{display:flex!important;align-items:center!important;gap:.95rem!important;flex-wrap:nowrap!important;}
.lab-transport .transport-unit{display:flex!important;flex-direction:column!important;align-items:center!important;gap:.3rem!important;min-width:4rem!important;}
.lab-transport .transport-round{width:3.6rem!important;height:3.6rem!important;min-width:3.6rem!important;border-radius:50%!important;
 display:grid!important;place-items:center!important;border:1px solid rgba(133,166,180,.5)!important;
 background:rgba(41,67,82,.9)!important;color:#f4fafc!important;box-shadow:none!important;padding:0!important;cursor:pointer!important;}
.lab-transport .transport-round.transport-play{background:#19dfc2!important;color:#073a2f!important;border-color:#19dfc2!important;}
.lab-transport .transport-round:disabled{opacity:.42!important;cursor:not-allowed!important;}
.lab-transport .transport-icon{font-size:1.55rem!important;line-height:1!important;display:block!important;}
.lab-transport .transport-caption{font-size:.74rem!important;line-height:1.2!important;font-weight:800!important;color:#c6dbe2!important;white-space:nowrap!important;}
.lab-transport .transport-play + .transport-caption{color:#70f5d3!important;}
.lab-transport .tempo{display:flex!important;align-items:center!important;gap:.65rem!important;flex-wrap:wrap!important;font-size:1rem!important;color:#dbeaf0!important;}
.lab-transport .tempo .metronome-icon{width:1.35rem!important;height:1.35rem!important;}
.lab-transport .tempo strong{font-size:1.6rem!important;color:#20e6c5!important;font-variant-numeric:tabular-nums!important;}
.lab-transport .tempo input[type=range]{accent-color:#20e6c5!important;width:clamp(7rem,15vw,11rem)!important;min-width:6rem!important;}
.lab-transport .checks{display:flex!important;gap:1rem!important;flex-wrap:wrap!important;align-items:center!important;}
.lab-transport .checks label{display:flex!important;align-items:center!important;gap:.35rem!important;color:#d7e3e9!important;font-size:.85rem!important;cursor:pointer!important;}
.lab-transport .checks input{width:1.1rem!important;height:1.1rem!important;accent-color:#20e6c5!important;}
.lab-transport .checks .metronome-icon{width:1.1rem!important;height:1.1rem!important;}
@media(max-width:760px){.lab-transport{justify-content:center!important;gap:.85rem!important;}
 .lab-transport .tempo{justify-content:center!important;}
 .lab-transport .checks{width:100%!important;justify-content:center!important;}}
@media(max-width:430px){.lab-transport{padding:.85rem .65rem!important;}
 .lab-transport .transport-round{width:3.25rem!important;height:3.25rem!important;min-width:3.25rem!important;}
 .lab-transport .transport-unit{min-width:3.5rem!important;}
 .lab-transport .tempo input[type=range]{width:7rem!important;}
 .lab-transport .checks label{font-size:.77rem!important;}}


/* V19.30 - un acceso por modalidad MIDI; alineacion simetrica del menu. */
#mainApp>.app-global-header .nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
#reader .reader-site-header .app-header-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
@media(max-width:1170px){
 #mainApp>.app-global-header .nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 #reader .reader-site-header .app-header-nav,body>.app-global-header .app-header-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media(max-width:620px){
 /* Dos filas proporcionadas: tres opciones arriba, dos abajo. */
 #mainApp>.app-global-header .nav,#reader .reader-site-header .app-header-nav,body>.app-global-header .app-header-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important}
 #mainApp>.app-global-header .nav>:nth-child(-n+3),#reader .reader-site-header .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-site-header .app-header-nav>:nth-child(n+4),body>.app-global-header .app-header-nav>:nth-child(n+4){grid-column:span 3!important}
 #mainApp{padding-bottom:165px!important}
}
