/* Drumix rehearsal mode: a focused layer over the existing song sheet and audio engine. */
.pbRehearsalMode {
	--rh-blue:#0a84ff;
	--rh-blue-dark:#006edb;
	--rh-ink:#1d1d1f;
	--rh-muted:#6e6e73;
	--rh-panel:rgba(255,255,255,.94);
	--rh-line:rgba(0,0,0,.10);
	--rh-shadow:0 18px 55px rgba(0,0,0,.18);
	position:fixed;
	inset:0;
	z-index:4100;
	pointer-events:none;
	font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
	color:var(--rh-ink);
}
.pbRehearsalMode[hidden],.pbRehearsalMode [hidden]{display:none!important}
.pbRehearsalMode button,.pbRehearsalMode input,.pbRehearsalMode select{font:inherit}
.pbRhTopbar,.pbRhDock,.pbRhDrawer,.pbRhSettings,.pbRhFollow,.pbRhToast,.pbRhSummary{pointer-events:auto}
.pbRhTopbar{
	position:fixed;z-index:5;top:0;left:0;right:0;min-height:72px;
	display:grid;grid-template-columns:auto minmax(160px,1fr) auto auto;align-items:center;gap:16px;
	padding:calc(8px + env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) 8px max(18px,env(safe-area-inset-left,0px));
	background:var(--rh-panel);border-bottom:1px solid var(--rh-line);box-shadow:0 4px 24px rgba(0,0,0,.06);
	-webkit-backdrop-filter:blur(24px) saturate(1.5);backdrop-filter:blur(24px) saturate(1.5)
}
.pbRhTopbar button{min-height:44px;border:0;border-radius:12px;padding:0 14px;background:#f2f2f7;color:var(--rh-ink);font-weight:720;cursor:pointer}
.pbRhTopbar button:hover{background:#e9e9ef}.pbRhTopbar .pbRhWhole{background:var(--rh-blue);color:#fff}.pbRhTopbar .pbRhWhole:hover{background:var(--rh-blue-dark)}
.pbRhExit{white-space:nowrap}.pbRhExit:first-letter{font-size:24px}.pbRhSong{min-width:0;display:flex;align-items:baseline;gap:8px}.pbRhSong small{display:block;color:var(--rh-blue);font-size:11px;font-weight:760;letter-spacing:.05em;text-transform:uppercase}.pbRhSong b{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pbRhSong span{color:var(--rh-muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pbRhStatus{justify-self:end;display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:99px;background:#eef6ff;color:#075da9;font-size:12px;font-weight:720;white-space:nowrap}.pbRhStatus[data-state="playing"]{background:#e9f8ef;color:#196b3b}.pbRhStatus[data-state="error"]{background:#fff0ef;color:#a52a22}.pbRhStatus[data-state="loopWaiting"]{background:#fff5df;color:#875916}
.pbRhDock{
	position:fixed;z-index:6;left:50%;bottom:max(16px,env(safe-area-inset-bottom,0px));transform:translateX(-50%);
	width:min(960px,calc(100vw - 32px));min-height:72px;display:flex;align-items:center;justify-content:center;gap:8px;
	padding:10px;border:1px solid var(--rh-line);border-radius:23px;background:var(--rh-panel);box-shadow:var(--rh-shadow);
	-webkit-backdrop-filter:blur(28px) saturate(1.6);backdrop-filter:blur(28px) saturate(1.6)
}
.pbRhDock button{border:0;cursor:pointer;color:var(--rh-ink)}
.pbRhRange{min-width:180px;max-width:260px;align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:0 14px;border-radius:14px!important;background:#f2f2f7;text-align:left}.pbRhRange small{color:var(--rh-muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}.pbRhRange b{width:100%;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pbRhIconButton,.pbRhLoop,.pbRhDockMore{min-height:48px;padding:0 13px;border-radius:13px!important;background:#f2f2f7;font-weight:680}.pbRhIconButton{font-size:23px;min-width:48px}.pbRhLoop.pb-on{background:#e7f3ff;color:#0064c8;box-shadow:inset 0 0 0 1px rgba(10,132,255,.25)}
.pbRhPlay{position:relative;flex:0 0 58px;width:58px;height:58px;border-radius:50%!important;background:var(--rh-blue);color:#fff!important;font-size:24px;box-shadow:0 8px 20px rgba(10,132,255,.30)}.pbRhPlay:hover{background:var(--rh-blue-dark)}.pbRhPauseIcon{display:none}.pbRhPlay.pb-playing .pbRhPlayIcon{display:none}.pbRhPlay.pb-playing .pbRhPauseIcon{display:inline-block;letter-spacing:-4px;margin-left:-4px}
.pbRhTempo{display:grid;grid-template-columns:34px 60px 34px;align-items:center;height:48px;border-radius:13px;background:#f2f2f7;overflow:hidden}.pbRhTempo button{height:100%;background:transparent;font-size:20px}.pbRhTempo b{text-align:center;font-size:14px}.pbRhTempo button:hover,.pbRhIconButton:hover,.pbRhLoop:hover,.pbRhDockMore:hover,.pbRhRange:hover{background:#e8e8ed}
.pbRhDrawer,.pbRhSettings{position:fixed;z-index:7;top:88px;right:18px;width:min(390px,calc(100vw - 36px));max-height:calc(100dvh - 190px);overflow:auto;padding:18px;border:1px solid var(--rh-line);border-radius:22px;background:var(--rh-panel);box-shadow:var(--rh-shadow);-webkit-backdrop-filter:blur(28px);backdrop-filter:blur(28px)}
.pbRhDrawerHead,.pbRhSettingsHead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.pbRhDrawerHead small{color:var(--rh-blue);font-weight:750;text-transform:uppercase;letter-spacing:.05em}.pbRhDrawerHead h2{font-size:24px;margin:2px 0 0}.pbRhDrawerHead button,.pbRhSettingsHead button{flex:0 0 36px;width:36px;height:36px;border:0;border-radius:50%;background:#ececf1;font-size:22px;cursor:pointer}
.pbRhDrawerRow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--rh-line)}.pbRhDrawerRow>div:first-child{min-width:0;display:flex;flex-direction:column;gap:3px}.pbRhDrawerRow b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pbRhDrawerRow span,.pbRhEmpty{color:var(--rh-muted);font-size:13px}.pbRhDrawerRow>button,.pbRhDrawerActions button,.pbRhPickRange,.pbRhSaveDifficult{min-height:42px;border:0;border-radius:12px;padding:0 13px;background:#eaf4ff;color:#075da9;font-weight:700;cursor:pointer}.pbRhDrawerActions{display:flex!important;flex-flow:row wrap!important;justify-content:flex-end;gap:6px!important}.pbRhDrawerActions button{min-height:34px;padding:0 9px;font-size:12px}.pbRhDrawerActions button:last-child{background:#fff0ef;color:#a52a22}.pbRhPickRange,.pbRhSaveDifficult{width:100%;min-height:48px;margin-bottom:9px;background:var(--rh-blue);color:#fff}.pbRhPickWhole{background:#f2f2f7;color:var(--rh-ink)}.pbRhSaveDifficult:disabled{opacity:.45;cursor:not-allowed}
.pbRhSettings{width:min(420px,calc(100vw - 36px))}.pbRhSettingsHead{align-items:center}.pbRhTempoQuick{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.pbRhTempoQuick button{min-height:42px;border:0;border-radius:11px;background:#f2f2f7;cursor:pointer;font-weight:680}.pbRhSlider,.pbRhSelect{display:grid;grid-template-columns:90px minmax(100px,1fr) auto;align-items:center;gap:10px;margin-top:16px}.pbRhSlider input{width:100%;accent-color:var(--rh-blue)}.pbRhSlider b{min-width:48px;text-align:right}.pbRhSelect{grid-template-columns:1fr}.pbRhSelect select{min-height:44px;border:1px solid var(--rh-line);border-radius:12px;background:#fff;padding:0 11px;color:var(--rh-ink)}.pbRhCheck{display:flex;align-items:center;gap:10px;margin-top:17px;font-weight:650}.pbRhCheck input{width:20px;height:20px;accent-color:var(--rh-blue)}.pbRhShortcutHelp{display:flex;flex-direction:column;gap:4px;margin-top:18px;padding:12px;border-radius:12px;background:#f2f2f7}.pbRhShortcutHelp span{color:var(--rh-muted);font-size:12px;line-height:1.45}
.pbRhFollow{position:fixed;z-index:4;top:92px;left:50%;transform:translateX(-50%);min-height:40px;padding:0 14px;border:0;border-radius:99px;background:#1d1d1f;color:#fff;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.2);cursor:pointer}
.pbRhToast{position:fixed;z-index:10;left:50%;bottom:110px;transform:translate(-50%,18px);max-width:min(560px,calc(100vw - 32px));padding:11px 16px;border-radius:99px;background:#1d1d1f;color:#fff;text-align:center;font-size:13px;opacity:0;visibility:hidden;transition:.2s ease;box-shadow:0 8px 25px rgba(0,0,0,.25)}.pbRhToast.pb-on{opacity:1;visibility:visible;transform:translate(-50%,0)}
.pbRhSummary{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.36);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.pbRhSummaryCard{width:min(520px,100%);padding:30px;border-radius:26px;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.28)}.pbRhSummaryCard>small{color:var(--rh-blue);font-weight:750}.pbRhSummaryCard h2{margin:5px 0 20px;font-size:30px}.pbRhSummaryStats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.pbRhSummaryStats div{display:flex;flex-direction:column;gap:3px;padding:14px;border-radius:14px;background:#f2f2f7}.pbRhSummaryStats span{color:var(--rh-muted);font-size:12px}.pbRhSummaryStats b{font-size:20px}.pbRhSummaryActions{display:flex;flex-flow:row wrap;gap:8px;margin-top:22px}.pbRhSummaryActions button{min-height:46px;border:0;border-radius:13px;padding:0 15px;background:#f2f2f7;font-weight:700;cursor:pointer}.pbRhSummaryActions .pbRhSummaryPrimary{background:var(--rh-blue);color:#fff}

/* Focused song surface. The notation and calibrated backing stay untouched. */
html:has(body.pb-rehearsal-mode){overflow-x:hidden}
body.pb-rehearsal-mode{overflow-x:hidden!important;background:#f5f5f7!important}
body.pb-rehearsal-mode #LeftHandNav,body.pb-rehearsal-mode #TopNav,body.pb-rehearsal-mode #midiPlayer,body.pb-rehearsal-mode #pbAdminWorkspaceNav,body.pb-rehearsal-mode #pbPracticeCenter,body.pb-rehearsal-mode #pbTrainerLaunchCard,body.pb-rehearsal-mode #pbToolbar,body.pb-rehearsal-mode #pbStudentMinus,body.pb-rehearsal-mode #pbMobileAppNav,body.pb-rehearsal-mode #pbLegendBanner,body.pb-rehearsal-mode #pbFragmentPracticeHint,body.pb-rehearsal-mode #pbRangePracticePopover,body.pb-rehearsal-mode #pbFloatingLoopBar{display:none!important}
body.pb-rehearsal-mode #RightHandContent,body.pb-rehearsal-mode.pb-song-mode.pb-skin-light #RightHandContent{display:block!important;position:relative!important;inset:auto!important;z-index:auto!important;width:100%!important;max-width:none!important;height:auto!important;min-height:100dvh;margin:0!important;padding:calc(88px + env(safe-area-inset-top,0px)) 0 calc(118px + env(safe-area-inset-bottom,0px))!important;overflow:visible!important}
body.pb-rehearsal-mode #RightHandContent>.nonPrintable{display:none!important}
body.pb-rehearsal-mode #RightHandContent>.Printable{display:block!important;width:100%!important;max-width:none!important;height:auto!important;min-height:calc(100dvh - 206px)!important;margin:0!important;padding:0!important;overflow:visible!important}
body.pb-rehearsal-mode #pbSheetScroll,body.pb-rehearsal-mode.pb-song-mode #pbSheetScroll{display:block!important;width:100%!important;max-width:1500px!important;height:auto!important;min-height:calc(100dvh - 210px);margin:0 auto!important;padding:12px max(12px,calc((100vw - 1380px)/2))!important;box-sizing:border-box;overflow-x:auto!important;overflow-y:visible!important;scroll-margin-top:92px;background:transparent!important}
body.pb-rehearsal-mode #pbSongSheet{margin:0 auto!important;background:#fff;border-radius:16px;box-shadow:0 1px 0 rgba(0,0,0,.06)}
body.pb-rehearsal-mode.pb-rehearsal-selecting #pbSongSheet{cursor:crosshair}
body.pb-rehearsal-mode #pbMobileSheet .pbMobileSheetHead{display:none!important}
body.pb-rehearsal-mode.pb-rehearsal-selecting #pbMobileSheet .pbMobileSheetHead{display:block!important}

body.pb-student-dark.pb-rehearsal-mode{background:#111214!important}.pb-student-dark .pbRehearsalMode{--rh-ink:#f5f5f7;--rh-muted:#a1a1a6;--rh-panel:rgba(29,29,31,.94);--rh-line:rgba(255,255,255,.12);--rh-shadow:0 18px 55px rgba(0,0,0,.48)}.pb-student-dark .pbRhTopbar button,.pb-student-dark .pbRhRange,.pb-student-dark .pbRhIconButton,.pb-student-dark .pbRhLoop,.pb-student-dark .pbRhDockMore,.pb-student-dark .pbRhTempo,.pb-student-dark .pbRhTempoQuick button,.pb-student-dark .pbRhShortcutHelp,.pb-student-dark .pbRhPickWhole,.pb-student-dark .pbRhSummaryStats div,.pb-student-dark .pbRhSummaryActions button{background:#2c2c2e;color:#f5f5f7}.pb-student-dark .pbRhTopbar .pbRhWhole,.pb-student-dark .pbRhPlay,.pb-student-dark .pbRhPickRange,.pb-student-dark .pbRhSaveDifficult,.pb-student-dark .pbRhSummaryActions .pbRhSummaryPrimary{background:var(--rh-blue);color:#fff}.pb-student-dark .pbRhSelect select,.pb-student-dark .pbRhSummaryCard{background:#1c1c1e;color:#f5f5f7}.pb-student-dark .pbRhDrawerHead button,.pb-student-dark .pbRhSettingsHead button{background:#3a3a3c;color:#fff}.pb-student-dark.pb-rehearsal-mode #pbSongSheet{background:#fff}

@media(max-width:820px){
	.pbRhTopbar{grid-template-columns:auto minmax(0,1fr) auto;gap:9px;min-height:62px;padding:calc(6px + env(safe-area-inset-top,0px)) 10px 6px}.pbRhExit span,.pbRhSong small,.pbRhSong span,.pbRhStatus{display:none}.pbRhTopbar button{min-height:44px;padding:0 11px}.pbRhSong b{font-size:15px}.pbRhTopbar .pbRhWhole{font-size:12px}
	.pbRhDock{bottom:0;width:100%;min-height:76px;border-radius:20px 20px 0 0;border-left:0;border-right:0;border-bottom:0;padding:8px max(8px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));gap:5px}.pbRhRange{min-width:0;flex:1;padding:0 10px}.pbRhRange small{font-size:9px}.pbRhRange b{font-size:12px}.pbRhIconButton{display:none}.pbRhPlay{flex-basis:54px;width:54px;height:54px}.pbRhTempo{grid-template-columns:30px 48px 30px}.pbRhLoop{min-width:47px;padding:0 8px}.pbRhLoop span,.pbRhDockMore:not(:last-child){display:none}.pbRhDockMore{min-width:44px;padding:0 9px;font-size:0}.pbRhDockMore:last-child{font-size:20px}
	.pbRhDrawer,.pbRhSettings{top:auto;right:0;bottom:0;width:100%;max-width:none;max-height:min(76dvh,650px);box-sizing:border-box;border-radius:24px 24px 0 0;padding:20px max(18px,env(safe-area-inset-right,0px)) calc(96px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px))}.pbRhDrawerActions{justify-content:flex-start!important}.pbRhDifficultRow{align-items:flex-start;flex-direction:column}.pbRhDifficultRow>div:first-child{width:100%}.pbRhToast{bottom:96px;border-radius:14px}
	.pbRhShortcutHelp{display:none}.pbRhSummaryCard{padding:22px}.pbRhSummaryCard h2{font-size:25px}.pbRhSummaryActions{flex-direction:column}.pbRhSummaryActions button{width:100%}
	body.pb-rehearsal-mode #RightHandContent,body.pb-rehearsal-mode.pb-song-mode.pb-skin-light #RightHandContent{padding-top:calc(72px + env(safe-area-inset-top,0px))!important;padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))!important}
	body.pb-rehearsal-mode #pbSheetScroll,body.pb-rehearsal-mode.pb-song-mode #pbSheetScroll{min-height:calc(100dvh - 166px);padding:6px 0!important}.pbRhFollow{top:calc(70px + env(safe-area-inset-top,0px))}
}
@media(max-width:390px){.pbRhTopbar .pbRhWhole{max-width:105px;line-height:1.05}.pbRhTempo{grid-template-columns:28px 44px 28px}.pbRhTempo b{font-size:12px}.pbRhLoop{min-width:42px}.pbRhSettings{padding-left:14px;padding-right:14px}.pbRhTempoQuick{grid-template-columns:repeat(2,1fr)}.pbRhSummaryStats{grid-template-columns:1fr 1fr}}
@media(max-height:520px) and (orientation:landscape){.pbRhTopbar{min-height:52px}.pbRhDock{min-height:62px}.pbRhPlay{width:48px;height:48px;flex-basis:48px}.pbRhDrawer,.pbRhSettings{top:64px;bottom:72px;right:10px;width:min(390px,46vw);max-height:none;border-radius:18px;padding:14px}.pbRhDockMore:not(:last-child){display:block;font-size:12px}body.pb-rehearsal-mode #RightHandContent,body.pb-rehearsal-mode.pb-song-mode.pb-skin-light #RightHandContent{padding-top:60px!important;padding-bottom:76px!important}}
@media(prefers-reduced-motion:reduce){.pbRhToast{transition:none}.pbRehearsalMode *{scroll-behavior:auto!important}}
@media print{.pbRehearsalMode{display:none!important}}
