/* Estilos exclusivos da página Evolução; base de tabela compartilhada em styles.css. */
/* Mesmo fundo contínuo utilizado pela biblioteca de Partituras. */
html.evolution-workspace,
html.evolution-workspace body,
html.evolution-workspace .practice-stage:has(.sheet-player.is-library-view),
html.evolution-workspace .practice-stage:has(.sheet-player.is-library-view) .virtual-piano-panel,
html.evolution-workspace .sheet-player.is-library-view,
html.evolution-workspace .sheet-player.is-library-view .evolution-sidebar,
html.evolution-workspace .sheet-player.is-library-view #evolution-library-browser,
html.evolution-workspace .sheet-player.is-library-view .evolution-library-table-head,
html.evolution-workspace .sheet-player.is-library-view .evolution-library-table-row {
  background:#fffdf8!important;
  background-image:none!important;
}
html.evolution-workspace .sheet-player.is-library-view .evolution-sidebar {
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
}

/* Título e biblioteca compartilham a mesma superfície, como /partituras.
   A faixa do título ficava no fundo do body e a tabela no practice-stage. */
html.evolution-workspace,
html.evolution-workspace body,
html.evolution-workspace .evolution-intro,
html.evolution-workspace .practice-stage,
html.evolution-workspace .virtual-piano-panel,
html.evolution-workspace .sheet-player.is-library-view,
html.evolution-workspace .sheet-player.is-library-view .evolution-sidebar {
  background-color:#fffdf8!important;
  background-image:none!important;
}
html.evolution-workspace .evolution-intro {background:#fffdf8!important;}

/* Igual ao section.sheet-intro: o cabeçalho não tem fundo próprio. */
html.evolution-workspace section.evolution-intro{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
}
/* Igual ao cabeçalho de /partituras: faixa cinza-clara e biblioteca creme. */
html.evolution-workspace,html.evolution-workspace body{background:#f7f7f3!important;}
html.evolution-workspace section.evolution-intro{background:transparent!important;}
html.evolution-workspace .practice-stage,html.evolution-workspace .virtual-piano-panel{background:#fffdf8!important;}


/* Evolução: mesma superfície limpa do módulo Partituras. */
html.evolution-workspace .sheet-score,
html.evolution-workspace .sheet-notation {background:#fffdf8!important;background-image:none!important;}
html.evolution-workspace .sheet-score::after {display:none!important;}
html.evolution-workspace .sheet-player:not(.is-library-view) .evolution-sidebar {background:#fffdf8!important;background-image:none!important;}
html.evolution-workspace .evolution-side-controls{display:grid;gap:12px;padding:16px 0;margin:12px 0;border-top:1px solid #dce3d8;border-bottom:1px solid #dce3d8;font-size:12px;color:#40543b}
html.evolution-workspace .evolution-side-hands{display:flex;gap:8px}
html.evolution-workspace .evolution-side-hands button{flex:1;padding:10px 6px;border-radius:8px;border:1px solid #ced8c8;background:#fffdf8;color:#51614b;cursor:pointer;font:600 11px Manrope,sans-serif}
html.evolution-workspace .evolution-side-hands button.is-active{background:#637c59;color:white;border-color:#637c59}
html.evolution-workspace .evolution-side-notes{display:flex;align-items:center;gap:8px;cursor:pointer}
html.evolution-workspace .sheet-notation.sheet-hand-right [data-sheet-staff="1"],
html.evolution-workspace .sheet-notation.sheet-hand-left [data-sheet-staff="0"],
html.evolution-workspace .sheet-notation.sheet-hand-none [data-sheet-staff]{opacity:.07!important}

/* Evolução herda a mesma geometria da lateral de /partituras. */
html.evolution-workspace .sheet-player:not(.is-library-view){gap:0!important;width:100%!important;max-width:none!important;grid-template-columns:328px minmax(0,1fr)!important;min-height:calc(100dvh - 184px);align-items:stretch!important}
html.evolution-workspace .sheet-player:not(.is-library-view) .evolution-sidebar{position:relative!important;align-self:stretch!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;max-height:none!important;height:auto!important;overflow:visible!important;margin:0!important;padding:16px 16px 24px 68px!important;border:0!important;border-right:1px solid #d4dece!important;border-radius:0!important;box-shadow:none!important;background:#fffdf8!important}
html.evolution-workspace .sheet-player:not(.is-library-view) .sheet-score{margin:0!important;border:0!important;border-radius:0!important;min-width:0!important;background:#fffdf8!important}
html.evolution-workspace .evolution-side-controls{display:grid;gap:10px;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
html.evolution-workspace .evolution-side-controls>strong{font:800 12px Manrope,sans-serif;color:#293328}
html.evolution-workspace .evolution-side-hands,.evolution-workspace .sheet-quick-display-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important}
html.evolution-workspace .sheet-quick-visual-buttons{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html.evolution-workspace .evolution-side-hands button,html.evolution-workspace .evolution-side-controls .sheet-quick-display-buttons button{min-width:0;min-height:33px;padding:8px 4px;border:1px solid #dae1d5;border-radius:7px;background:transparent;color:#303a2c;font:700 11px Manrope,sans-serif;cursor:pointer}
html.evolution-workspace .evolution-side-hands button.is-active,html.evolution-workspace .evolution-side-controls .sheet-quick-display-buttons button.is-active{background:#637c59;color:white;border-color:#637c59}
html.evolution-workspace .evolution-side-controls .sheet-quick-display-buttons button:disabled{opacity:.35;cursor:not-allowed}
html.evolution-workspace .evolution-side-notes{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;margin:0;padding:0}
html.evolution-workspace .evolution-exercise-info{margin-top:18px;padding-top:18px;border-top:1px solid #dce3d8}
@media(max-width:900px){html.evolution-workspace .sheet-player:not(.is-library-view){grid-template-columns:minmax(0,1fr)!important}html.evolution-workspace .sheet-player:not(.is-library-view) .evolution-sidebar{padding:16px!important;border-right:0!important;border-bottom:1px solid #d4dece!important}}

html.evolution-workspace #evolution-stats-button{display:block;width:100%;margin-top:20px;}

/* A listagem contém apenas a biblioteca; configurações e informações ficam na partitura. */
html.evolution-workspace .sheet-player.is-library-view .evolution-side-controls,
html.evolution-workspace .sheet-player.is-library-view #evolution-stats-button,
html.evolution-workspace .sheet-player.is-library-view #evolution-exercise-info,
html.evolution-workspace .sheet-player.is-library-view #evolution-variant-field{display:none!important;}

/* Alinhamento final: mesmo container de 1460px centralizado de Partituras. */
@media(min-width:901px){
 html.evolution-workspace .sheet-player:not(.is-library-view){display:grid!important;grid-template-columns:260px minmax(0,1fr)!important;width:min(1460px,calc(100% - 40px))!important;max-width:1460px!important;margin:0 auto!important;padding:0 0 18px!important;gap:0!important;min-height:calc(100dvh - 184px);align-items:stretch!important}
 html.evolution-workspace .sheet-player:not(.is-library-view) .evolution-sidebar{padding:16px 16px 16px 0!important;margin:0!important;max-width:none!important;border-right:1px solid #d4dece!important}
}
html.evolution-workspace .sheet-player:not(.is-library-view) .sheet-score{width:100%!important;min-width:0!important}

/* Evolução: marcador das notas tocadas igual à leitura de Partituras. */
html.evolution-workspace .sheet-played-note-fixed.evolution-played-marker{
  display:flex;align-items:center;justify-content:center;width:38px;height:26px;
  border:2px solid #168066;border-radius:16px;background:#fffdf8;
  box-shadow:0 0 4px #16806688;color:#168066;font:800 10px Manrope,sans-serif;
}
html.evolution-workspace .sheet-played-note-fixed.evolution-played-marker.is-wrong{
  border-color:#c93d3d;color:#c93d3d;background:#fffdf8;box-shadow:0 0 4px #c93d3d88;
}
html.evolution-workspace .sheet-notation .sheet-played-note circle,
html.evolution-workspace .sheet-notation .sheet-played-note text{pointer-events:none}

/* O modo contínuo da Evolução usa o mesmo Canvas do Partituras. */
html.evolution-workspace .sheet-notation .partitura3-canvas{display:block;width:100%;max-width:100%;height:auto}
html.evolution-workspace .sheet-score.is-continuous .sheet-notation{justify-content:center;touch-action:auto}
/* Tela cheia: usar exatamente a estrutura, largura e barra de acompanhamento de Partituras. */
html.sheet-focus-mode.evolution-workspace .sheet-player:not(.is-library-view){display:block!important;width:100%!important;max-width:none!important;min-height:100dvh!important;margin:0!important;padding:0!important;grid-template-columns:none!important;}
html.sheet-focus-mode.evolution-workspace .sheet-player:not(.is-library-view) .evolution-sidebar{display:none!important;}
html.sheet-focus-mode.evolution-workspace .sheet-player:not(.is-library-view) .sheet-score{width:100%!important;min-width:0!important;height:100dvh!important;min-height:100dvh!important;margin:0!important;border:0!important;}
html.sheet-focus-mode.evolution-workspace .sheet-focus-hands{display:flex;position:fixed;z-index:60;bottom:0;left:0;right:0;min-height:62px;align-items:center;justify-content:center;gap:10px;padding:10px 20px;background:#fffdf8;border-top:1px solid #d4dece;box-shadow:0 -3px 14px #1c32140a;}
html.sheet-focus-mode.evolution-workspace .sheet-notation{padding-bottom:75px;}
html.sheet-focus-mode.evolution-workspace .evolution-navigation-controls{bottom:80px;}
