/* Ensayo console: scoped components, shared outer frame and type scale preserved. */
.hk-flow-rehearsal #re-saved-options:not([open]){display:none}
.hk-flow-rehearsal #re-practice>h2{font-size:1rem;margin-bottom:4px}
.hk-flow-rehearsal #re-practice-hint{font-size:.85rem;margin:4px 0;overflow-wrap:anywhere}
.hk-flow-rehearsal .re-practice-back{margin:8px 0 14px}
.hk-flow-rehearsal #re-journey{border:0;padding:0;margin:14px 0;background:transparent}
.hk-flow-rehearsal #re-journey [data-j=goal-wrap]{display:grid;grid-template-columns:auto minmax(160px,280px);gap:6px 14px;align-items:center;margin:8px 0}
.hk-flow-rehearsal #re-journey [data-j=goal-wrap]>p{grid-column:1/-1;margin:0;font-size:.82rem}
.hk-flow-rehearsal #re-journey .re-brief{list-style:none;padding:0;margin:10px 0;font-size:.88rem}
.hk-flow-rehearsal #re-journey .re-task-transport{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:0;border:0;background:transparent}
.hk-flow-rehearsal #re-journey [data-j=reference-view]{grid-column:1;grid-row:1;padding:14px;border:1px solid var(--border);border-radius:12px;background:#101c22;min-width:0}
.hk-flow-rehearsal #re-journey [data-j=controls]{grid-column:1;grid-row:2;min-width:0}
.hk-flow-rehearsal #re-journey [data-j=preview]{grid-column:2;grid-row:1/3;padding:14px;border:1px solid var(--border);border-radius:12px;background:#101c22;min-width:0}
.hk-flow-rehearsal #re-journey [data-j=preview]:has(#re-preview-wrap[hidden]){display:none}
.hk-flow-rehearsal #re-journey .re-task-transport:has(#re-preview-wrap[hidden]) :is([data-j=reference-view],[data-j=controls]){grid-column:1/-1}
.hk-flow-rehearsal #re-journey :is([data-j=feedback],[data-j=live],[data-j=options]){grid-column:1/-1;min-width:0}
.hk-flow-rehearsal #re-journey .re-reference-sound{border:0;background:transparent;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}
.hk-flow-rehearsal #re-journey .re-reference-sound>p:empty{display:none}
.hk-flow-rehearsal #re-journey .re-source{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}
.hk-flow-rehearsal #re-journey .re-source .btn{flex:1 1 150px;margin:0}
.hk-flow-rehearsal #re-preview-wrap{margin:0}
.hk-flow-rehearsal #re-preview-wrap h3{font-size:1rem;margin:0 0 8px}
.hk-flow-rehearsal #re-preview-label{font-size:.84rem;margin:0 0 8px}
.hk-flow-rehearsal .re-console-heading{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:.9rem}
.hk-flow-rehearsal .re-console-heading output{font-variant-numeric:tabular-nums;color:var(--text-muted)}
.hk-flow-rehearsal .re-console-score{display:block;width:100%;height:112px;margin-top:8px}
.hk-flow-rehearsal .re-console-score .is-current rect{fill:#f0cb82;opacity:1}
.hk-flow-rehearsal .re-console-caption{margin:4px 0 0;font-size:.78rem;color:var(--text-muted)}
.hk-flow-rehearsal .re-take-wave svg{width:100%;height:60px;display:block}
.hk-flow-rehearsal #re-review .re-reference-bench{max-width:none}
.hk-flow-rehearsal #re-melody-summary{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:8px}
.hk-flow-rehearsal #re-melody-summary button{flex:none}
.hk-flow-rehearsal #re-performance{margin:8px 0;padding:14px}
.hk-flow-rehearsal #re-performance .re-current-note{font-size:1.6rem;margin:6px 0}
.hk-flow-rehearsal #re-performance #re-level-hint{margin-bottom:0}
.hk-flow-rehearsal .re-help-hub{margin:20px 0;border:1px solid var(--border);border-radius:12px;padding:16px}
.hk-flow-rehearsal .re-help-hub>summary{font-weight:600;cursor:pointer}
.hk-flow-rehearsal .re-help-hub[open]>summary{margin-bottom:18px}
.hk-flow-rehearsal .re-help-hub .pro-card{margin:18px 0}
.hk-flow-rehearsal #re-journey [data-j=portable]{border-color:var(--accent-cyan)}
.hk-flow-rehearsal .re-midi-note{font-size:.82rem;color:var(--text-muted);line-height:1.6}
@media(max-width:650px){.hk-flow-rehearsal #re-journey .re-task-transport{display:flex;flex-direction:column}.hk-flow-rehearsal #re-journey [data-j=goal-wrap]{grid-template-columns:1fr}.hk-flow-rehearsal #re-journey .re-reference-sound{grid-template-columns:1fr}.hk-flow-rehearsal #re-journey .re-source .btn{flex-basis:100%}.hk-flow-rehearsal .re-console-score{height:112px}}
.hk-flow-rehearsal #re-journey .re-reference-sound{max-width:none;width:100%;margin:0}
.hk-flow-rehearsal #re-journey [data-j=goal-wrap]>label{margin:0}
.hk-flow-rehearsal .re-practice-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px 20px;margin-bottom:12px}
.hk-flow-rehearsal .re-practice-header>div:first-child{flex:1 1 260px;min-width:0}
.hk-flow-rehearsal .re-practice-header h2{font-size:1rem;margin:0 0 4px}
.hk-flow-rehearsal .re-practice-header .re-practice-back{margin:0}
.hk-flow-rehearsal .re-practice-header #re-mic-state{font-size:.8rem;margin:4px 0}
