.desktop-reader-actions{display:none}
/* Desktop reader: reserve room for the music before secondary controls.
   Short windows scroll the page instead of clipping the score to a strip. */
@media screen and (min-width:901px){
 body:not(.tablet-reader):not(.piano-home-mode) .site-head{height:56px;gap:16px}
 body:not(.tablet-reader) .piano-home-return{padding:8px 12px;border-radius:9px;font-size:13px}
 body:not(.tablet-reader):not(.piano-home-mode) .workspace{height:calc(100dvh - 56px);min-height:660px;grid-template-columns:240px minmax(0,1fr)}
 body:not(.tablet-reader) .sidebar{padding:18px 16px;min-height:0}
 body:not(.tablet-reader) .sidebar-top{display:none}
 body:not(.tablet-reader) .import-button{padding:11px 8px;font-size:13px}
 body:not(.tablet-reader) .demo-button{font-size:12px;padding:8px;margin-top:7px}
 body:not(.tablet-reader) .side-divider{margin:18px 0 16px}
 body:not(.tablet-reader) .main-area{padding:12px 18px;gap:6px}
 body:not(.tablet-reader) .main-area>.ms-workspace-bar{margin:0;padding:4px 6px;gap:6px;border-radius:10px;flex-wrap:nowrap}
 body:not(.tablet-reader) .ms-workspace-bar button{min-height:32px;font-size:12px;padding:6px 10px;border-radius:7px;white-space:nowrap}
 body:not(.tablet-reader) .ms-workspace-bar [data-workspace-text="3"]{max-width:240px;min-width:0;flex-shrink:1}
 body:not(.tablet-reader) .ms-workspace-notice{margin:0 6px;font-size:11px;line-height:16px}
 body:not(.tablet-reader) .title-row{align-items:center;gap:12px}
 body:not(.tablet-reader) .title-row .eyebrow{display:none}
 body:not(.tablet-reader) .title-row h2{font-size:22px;margin:2px 0;line-height:1.2}
 body:not(.tablet-reader) .title-row p{font-size:12px}
 body:not(.tablet-reader) .score-meta{font-size:11px}
 body:not(.tablet-reader) .reader-status{min-height:18px;font-size:11px;line-height:18px}
 body:not(.tablet-reader) .score-toolbar{gap:10px;flex-wrap:wrap;min-height:34px}
 body:not(.tablet-reader) .score-toolbar button,
 body:not(.tablet-reader) .score-toolbar #pick-passage,
 body:not(.tablet-reader) .score-toolbar #web-piano-keyboard-toggle{min-height:32px;padding:6px 10px;border-radius:8px;font-size:12px;align-self:center;margin-left:0}
 body:not(.tablet-reader) .score-toolbar #print-button{margin-left:auto}
 body:not(.tablet-reader) .score-toolbar .score-help{display:none}
 body:not(.tablet-reader) .scope-label{font-size:10px;padding:5px 8px}
 body:not(.tablet-reader) .quick-loop{font-size:12px}
 body:not(.tablet-reader) .main-area>.score-scroll,
 body:not(.tablet-reader) .main-area:has(> #web-piano-keyboard)>.score-scroll{flex:1 1 0;min-height:300px;max-height:none;padding:12px}
 body:not(.tablet-reader) .paper{padding:12px 20px 32px;min-height:360px}
 body:not(.tablet-reader) .score-heading,
 body:not(.tablet-reader) .osmd-score-title{display:none}
 body:not(.tablet-reader) .web-piano-keyboard{padding:5px 8px;gap:4px 12px;border-radius:10px}
 body:not(.tablet-reader) .web-piano-keyboard .piano-keyboard-heading h2{font-size:12px}
 body:not(.tablet-reader) .web-piano-keyboard .piano-keyboard-heading>span{display:none}
 body:not(.tablet-reader) .web-piano-keyboard .piano-hands>div{padding:3px 6px}
 body:not(.tablet-reader) .web-piano-keyboard .piano-hands strong,
 body:not(.tablet-reader) .web-piano-keyboard .piano-hands p{font-size:11px}
 body:not(.tablet-reader) .web-piano-keyboard .piano-keys-scroll{padding:3px}
 body:not(.tablet-reader) .web-piano-keyboard .piano-keys{height:72px}
 body:not(.tablet-reader) .transport{padding:7px 10px;gap:8px;border-radius:10px}
 body:not(.tablet-reader) .transport .play-button{width:38px;height:38px;font-size:17px}
 body:not(.tablet-reader) .transport .icon-button{width:32px;height:32px;font-size:15px}
 body:not(.tablet-reader) .tempo-wrap{width:150px;padding-left:10px}
 body:not(.tablet-reader).ms-focus .workspace{height:100dvh;min-height:600px}
 body:not(.tablet-reader).ms-focus .score-toolbar{display:flex!important}
 body:not(.tablet-reader).ms-focus .score-toolbar>:not(#web-piano-keyboard-toggle){display:none!important}
}
@media screen and (min-width:901px) and (max-width:1150px){
 body:not(.tablet-reader) .ms-workspace-bar [data-workspace-text="3"]{display:none}
 body:not(.tablet-reader) .site-head .product-name{display:none}
 body:not(.tablet-reader) .score-meta{max-width:150px;white-space:normal}
}

/* Score-first workspace, with settings in a modal side panel. */
@media screen and (min-width:901px){
 body.desktop-layout-ready:not(.piano-home-mode) .site-head{height:44px;gap:16px}
 body.desktop-layout-ready .piano-home-return{padding:7px 12px;border-radius:8px;font-size:12px}
 body.desktop-layout-ready:not(.piano-home-mode) .workspace{display:block;height:calc(100dvh - 44px);min-height:620px}
 body.desktop-layout-ready .main-area{height:100%;min-height:0;max-width:1280px;margin:0 auto;padding:8px 18px;gap:5px}
 body.desktop-layout-ready .title-row{align-items:center;gap:16px;min-height:32px;margin-bottom:0}
 body.desktop-layout-ready .title-row>div:first-child{flex:1;min-width:0;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
 body.desktop-layout-ready .title-row h2{font-size:18px;font-weight:700;line-height:1.25;letter-spacing:-.02em;margin:0}
 body.desktop-layout-ready .title-row p{font-size:12px;line-height:16px;margin:0}
 body.desktop-layout-ready .score-meta{display:none}
 body.desktop-layout-ready .desktop-reader-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
 body.desktop-layout-ready .desktop-reader-actions button{display:block;min-height:30px;padding:6px 10px;border:1px solid #c4d1df;border-radius:7px;background:#fff;color:#294b70;font:650 12px system-ui,sans-serif;white-space:nowrap;cursor:pointer}
 body.desktop-layout-ready .desktop-reader-actions #settings-toggle{display:block;margin:0;background:#183851;color:#fff;border-color:#183851}
 body.desktop-layout-ready .desktop-reader-actions button:hover{background:#e8f0f7;color:#183851}
 body.desktop-layout-ready .reader-status{min-height:16px;font:500 11px/16px system-ui;color:#65788e}
 body.desktop-layout-ready .reader-status.error{color:#b83b37}
 body.desktop-layout-ready .ms-workspace-notice{margin:0 4px;font:500 11px/16px system-ui}
 body.desktop-layout-ready .desktop-routine-status:not(.error){position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0}
 body.desktop-layout-ready .score-toolbar{min-height:34px;gap:10px;flex-wrap:wrap;padding:0 0 6px;border-bottom:1px solid #d2dce7}
 body.desktop-layout-ready .score-toolbar button,
 body.desktop-layout-ready .score-toolbar #pick-passage,
 body.desktop-layout-ready .score-toolbar #web-piano-keyboard-toggle{min-height:30px;padding:6px 10px;margin-left:0;align-self:center;border:1px solid #bdcddd;border-radius:7px;background:#fff;color:#31516f;font-size:12px;font-weight:650}
 body.desktop-layout-ready .score-toolbar #pick-passage.selected{background:#235bba;color:white}
 body.desktop-layout-ready .score-toolbar #print-button{margin-left:auto}
 body.desktop-layout-ready .scope-label{font-size:11px;background:transparent;padding:4px 0;color:#5b718a}
 body.desktop-layout-ready .main-area>.score-scroll,
 body.desktop-layout-ready .main-area:has(> #web-piano-keyboard)>.score-scroll{flex:1 1 0;min-height:360px;max-height:none;padding:8px 12px;border:1px solid #cdd7e2;border-radius:9px;background:#dfe5ec;box-shadow:none}
 body.desktop-layout-ready .paper{min-height:0;max-width:1200px;padding:8px 14px 12px;box-shadow:none;background:linear-gradient(#fff,#fff) center top / min(100%,var(--desktop-sheet-width,100%)) 100% no-repeat}
 body.desktop-layout-ready .piano-system{margin:0 auto 12px}
 body.desktop-layout-ready .desktop-score-fits #score-footer{display:none}
 body.desktop-layout-ready #score-top{min-height:28px;padding:5px 10px;font-size:11px}
 body.desktop-layout-ready .web-piano-keyboard{padding:5px 10px;gap:4px 12px;border-radius:9px;background:#f8fafc}
 body.desktop-layout-ready .web-piano-keyboard .piano-keyboard-heading h2{font-size:12px;color:#5a6e85}
 body.desktop-layout-ready .web-piano-keyboard .piano-hands>div{padding:2px 6px;background:transparent;border-width:2px;border-radius:4px}
 body.desktop-layout-ready .web-piano-keyboard .piano-keys{height:48px}
 body.desktop-layout-ready .transport{padding:6px 10px;gap:8px;border-radius:9px;box-shadow:none}
 body.desktop-layout-ready .transport .play-button{width:36px;height:36px;font-size:16px;background:#187f7b}
 body.desktop-layout-ready .tempo-wrap{width:230px;padding-left:10px;display:flex;align-items:center;gap:10px}
 body.desktop-layout-ready .tempo-wrap>label{font-size:11px;margin:0}
 body.desktop-layout-ready .tempo-wrap .tempo-adjust{flex:1}
 body.desktop-layout-ready .transport .tempo-wrap .tempo-step{width:32px;height:32px;min-height:32px;font-size:21px;border-radius:7px}
 body.desktop-layout-ready .tempo-wrap .tempo-adjust{grid-template-columns:32px minmax(50px,1fr) 32px}
 body.desktop-layout-ready #reader-settings{display:block!important;position:fixed;z-index:110;inset:0 auto 0 0;width:340px;max-width:90vw;padding:20px 22px;overflow-y:auto;border-right:1px solid #bccbdd;background:#f8fafc;box-shadow:12px 0 40px #14243c26;visibility:hidden;transform:translateX(-105%)}
 body.desktop-layout-ready.settings-open #reader-settings{visibility:visible;transform:none}
 body.desktop-layout-ready #settings-close{display:block;margin:0 0 18px auto;padding:8px 14px;min-height:36px;border:1px solid #bccddd;border-radius:8px;background:white;color:#294b70;font-size:12px}
 body.desktop-layout-ready .sidebar .import-button{padding:12px;font-size:13px}
 body.desktop-layout-ready .sidebar .demo-button{font-size:12px;min-height:36px}
 body.desktop-layout-ready .sidebar>.ms-workspace-bar{margin-top:24px;padding:8px;gap:8px;position:static}
 body.desktop-layout-ready .sidebar .ms-workspace-bar button{min-height:36px;font-size:12px}
 body.desktop-layout-ready .sidebar .ms-focus-settings{display:none!important}
 body.desktop-layout-ready .settings-backdrop{position:fixed;inset:0;z-index:100;background:#14243c55;border:0}
 body.desktop-layout-ready.piano-home-mode #reader-settings{visibility:hidden}
 body.desktop-layout-ready.ms-focus .workspace{height:100dvh;min-height:600px}
}
@media screen and (min-width:901px) and (max-width:1150px){
 body.desktop-layout-ready .main-area{padding:10px 14px}
 body.desktop-layout-ready .desktop-reader-actions{gap:5px}
 body.desktop-layout-ready .desktop-reader-actions button{padding:8px 10px;font-size:12px}
 body.desktop-layout-ready .title-row h2{font-size:17px}
}
