/* One fixed playback row. */
body.focus-screen main{padding-bottom:calc(60px + env(safe-area-inset-bottom))!important;box-sizing:border-box}
body.focus-screen .reader-controls{position:fixed;inset:auto 0 0;z-index:12;display:block;flex:none;container-type:normal;padding:0;overflow:visible;border-top:1px solid var(--border);background:var(--surface)}
body.focus-screen .reader-controls>.mobile-dock{display:flex;flex-flow:row nowrap;align-items:center;justify-content:flex-start;gap:6px;margin:0;width:100%;height:calc(60px + env(safe-area-inset-bottom));padding:6px 8px max(6px,env(safe-area-inset-bottom));overflow-x:auto;scrollbar-width:thin;box-sizing:border-box}
body.focus-screen .mobile-dock>button{flex:none;min-height:44px;padding:6px 10px;font-size:14px;white-space:nowrap}
body.focus-screen .mobile-dock #mobilePlay{order:-3;min-width:96px}
body.focus-screen .mobile-dock #stopScroll{order:-2}
body.focus-screen .mobile-dock #mobileOptions{display:inline-flex;order:0}
body.focus-screen .mobile-dock #mobileExit{margin-left:auto;min-width:44px;width:44px;order:6}
body.focus-screen .mobile-dock #readerFeedback{display:inline-flex;width:auto;font-weight:700;white-space:nowrap}
body.focus-screen .mobile-dock .desktop-reading-adjustments:not(:empty){
 display:flex;align-items:center;flex:none;gap:12px;margin-inline-start:auto;padding-inline:8px
}
.desktop-reading-adjustments:empty{display:none}
body.focus-screen .mobile-dock:has(.desktop-reading-adjustments:not(:empty)) #mobileExit{margin-inline-start:0}
body.focus-screen .desktop-reading-adjustments :is(.mobile-speed-group,.performance-font-control){
 display:flex;flex-flow:row nowrap;align-items:center;gap:4px;margin:0;padding:0;border:0;
 font-size:14px;font-weight:650;white-space:nowrap
}
body.focus-screen .desktop-reading-adjustments .mobile-speed-group::before{content:none}
body.focus-screen .desktop-reading-adjustments .mobile-adjustment-label{display:inline!important}
body.focus-screen .desktop-reading-adjustments button{width:44px;min-width:44px;min-height:44px}
body.focus-screen .desktop-reading-adjustments output{min-width:32px;text-align:center}
.desktop-reading-adjustments .local-clock{min-width:5ch;text-align:center;font-size:18px}
body.focus-screen .desktop-reading-adjustments .mobile-speed-group>button{width:44px}
.reading-speed-setting{display:contents}
#flowSpeed{display:none}
body.focus-screen .desktop-reading-adjustments .reading-speed-setting{
 display:grid;grid-template-columns:1fr auto;grid-template-rows:18px 26px;
 align-items:center;width:100px;column-gap:4px
}
body.focus-screen .desktop-reading-adjustments .reading-speed-setting output{min-width:0;text-align:end;font-size:14px}
body.focus-screen .desktop-reading-adjustments #flowSpeed{
 display:block;grid-column:1 / -1;box-sizing:border-box;width:100%;min-width:0;
 height:26px;padding:0;margin:0;accent-color:var(--blue);cursor:pointer
}
body.focus-screen .mobile-dock #startNow{order:-2}
body.focus-screen .mobile-dock #restart{order:-1}
@media(min-width:741px) and (max-width:1359px){
 body.focus-screen .reader-controls>.mobile-dock{gap:4px;padding-inline:4px}
 body.focus-screen .mobile-dock #mobilePlay{max-width:108px;white-space:normal;line-height:1.15}
 body.focus-screen .mobile-dock .desktop-reading-adjustments:not(:empty){gap:6px;padding-inline:0}
 body.focus-screen .mobile-dock :is(#quickEditText,#stopScroll){width:44px;padding-inline:6px;justify-content:center}
 body.focus-screen .mobile-dock :is(#quickEditText span,.stop-scroll-label){display:none}
 body.focus-screen .desktop-reading-adjustments .performance-font-control{
  display:grid;grid-template-columns:44px minmax(44px,max-content) 44px;
  grid-template-rows:16px 24px;place-items:center;gap:0
 }
 body.focus-screen .desktop-reading-adjustments .stepper{display:contents}
 body.focus-screen .desktop-reading-adjustments .performance-font-control>span{grid-area:1 / 2;font-size:12px;line-height:1}
 body.focus-screen .desktop-reading-adjustments .performance-font-control output{grid-area:2 / 2;font-size:14px;line-height:1}
 body.focus-screen .desktop-reading-adjustments .performance-font-control button{grid-row:1 / 3;padding:4px}
 body.focus-screen .desktop-reading-adjustments #performanceSmaller{grid-column:1}
 body.focus-screen .desktop-reading-adjustments #performanceLarger{grid-column:3}
 body.focus-screen .desktop-reading-adjustments .mobile-speed-group{gap:0}
 body.focus-screen .desktop-reading-adjustments .reading-speed-setting{width:62px;column-gap:2px;font-size:12px}
 body.focus-screen .desktop-reading-adjustments .reading-speed-setting output{font-size:12px}
}
body.focus-screen .reading-shell>.center-speed{display:none!important}
body #mobileSettings.transport{display:none!important}
body.mobile-controls-open #mobileSettings.transport{display:flex!important;position:fixed;z-index:15;left:auto;right:12px;bottom:calc(68px + env(safe-area-inset-bottom));width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 88px - env(safe-area-inset-bottom));overflow-y:auto;flex-flow:row wrap;align-items:center;gap:14px;margin:0;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 8px 36px #0003}
body.mobile-controls-open #mobileSettings .reader-settings-heading{display:flex!important;align-items:center;justify-content:space-between;flex:1 0 100%}
body #mobileSettings #readerTranspose{display:flex;flex-flow:row wrap;align-items:center;gap:8px;order:0;flex:1 0 100%;width:100%;padding:0 0 12px;border-bottom:1px solid var(--border)}
body #readerTranspose>label{font-size:14px;font-weight:650;margin:0}
body #readerTranspose .transpose-picker{display:flex;flex:1 1 auto;flex-wrap:wrap;max-width:100%;gap:4px}
body #readerTranspose .transpose-picker>button{min-width:40px;min-height:44px;padding:6px;font-size:18px}
body .transpose-picker>#transposeReset,body .transpose-picker>#performanceTransposeReset{width:auto;min-width:0;padding:6px 9px;font-size:14px;white-space:nowrap}
body #readerTranspose .transpose-picker>select{width:132px;max-width:150px;min-height:44px;font-size:14px}
body #readerTranspose .transpose-hint{flex:1 0 100%;font-size:13px}
.notation-mode{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:650;max-width:100%}
.notation-mode select{min-height:44px;max-width:190px;font-size:14px}
body #readerTranspose>.chord-diagram-controls{display:flex;flex-flow:row wrap;gap:6px;flex:1 0 100%;margin:0}
body #readerTranspose .chord-diagram-controls button,body #readerTranspose .chord-diagram-controls a{min-height:44px;font-size:14px;padding:6px 9px}
body #mobileSettings .reader-extra-controls{display:flex;flex:1 0 100%;align-items:center;gap:10px;flex-wrap:wrap}
body #mobileSettings .reader-extra-controls .mobile-speed-group,body #mobileSettings .reader-extra-controls .performance-font-control,body #mobileSettings .reader-utilities{display:flex;flex-flow:row nowrap;align-items:center;gap:6px;margin:0;padding:0;flex:none}
body #mobileSettings .reader-extra-controls button{min-height:44px;min-width:44px}
body #mobileSettings .reader-extra-controls .performance-font-control>span{display:none}
body #mobileSettings .reader-extra-controls output{min-width:36px;font-size:15px;text-align:center}
body #mobileSettings #startNow,body #mobileSettings #restart{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;width:auto;padding:6px 9px;font-size:14px}
body #mobileSettings #restart small{font-size:12px}
body #mobileSettings .reader-extra-controls .local-clock{font-size:20px}
body #mobileSettings .countdown{flex:1 0 100%;max-width:none}
body #mobileSettings .countdown[hidden]{display:none!important}
body #mobileSettings .reader-settings-actions{display:flex!important;flex-wrap:wrap;gap:8px;flex:1 0 100%}
.version-actions{flex-wrap:wrap;justify-content:flex-start;gap:10px}
.version-actions>button{min-height:44px;white-space:normal}
@media(max-width:540px){body.mobile-controls-open #mobileSettings.transport{left:6px;right:6px;width:auto;padding:12px}body.focus-screen .reader-controls>.mobile-dock{gap:4px;padding-inline:4px}body.focus-screen .mobile-dock>button{padding-inline:8px;font-size:13px}}
body #mobileSettings.transport{box-sizing:border-box;min-width:0;overflow-x:hidden}
body #mobileSettings #restart span{display:inline;font-size:14px;font-weight:650}
body #mobileSettings #readerTranspose{min-width:0;max-width:100%;box-sizing:border-box}


.reader-version-link{display:inline-flex;align-items:center;min-height:44px;padding:6px 8px;color:var(--blue)}
body #bookNavigation[hidden],
body:not(.focus-screen,.sidebar-hidden):has(#bookPanel:not([hidden])) #bookNavigation{display:none}

/* Keep song setup within reach beside the text, with playback on the dock. */
.desktop-reader-setup{display:none}
body.focus-screen.wide-reader-tools #mobileOptions,
body.focus-screen.wide-reader-tools #mobileSettings.transport{display:none!important}
body.focus-screen.wide-reader-tools #readerRail{justify-content:flex-start;gap:12px}
body.focus-screen.wide-reader-tools .desktop-reader-setup{display:grid;gap:6px;min-width:0;flex:none}
body.focus-screen.wide-reader-tools .desktop-reader-setup button,
body.focus-screen.wide-reader-tools .desktop-reader-setup [data-open-chord-group]{width:100%;min-height:36px;padding:5px 6px;font-size:12px;white-space:normal;line-height:1.25}
body.focus-screen.wide-reader-tools #desktopChordControls .chord-diagram-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
body.focus-screen.wide-reader-tools #readerTranspose{display:grid;width:100%;gap:6px;padding:0;border:0}
body.focus-screen.wide-reader-tools #readerTranspose .transpose-picker{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;gap:3px}
body.focus-screen.wide-reader-tools #readerTranspose .transpose-picker>button{min-width:0;min-height:36px;padding:2px}
body.focus-screen.wide-reader-tools #readerTranspose .transpose-picker>select{width:100%;min-width:0;min-height:36px;font-size:12px;padding-inline:2px}
body.focus-screen.wide-reader-tools #performanceTransposeReset{grid-column:1 / -1}
body.focus-screen.wide-reader-tools .desktop-reader-setup :is(.notation-mode,.song-repeat-control){display:grid;gap:4px;font-size:12px}
body.focus-screen.wide-reader-tools .desktop-reader-setup :is(.notation-mode,.song-repeat-control) select{min-width:0;width:100%;min-height:36px;font-size:12px}

@media(min-width:1000px) and (max-width:1100px){
 body.focus-screen.wide-reader-tools .desktop-reading-adjustments{gap:6px;padding-inline:0}
}

.desktop-dock-actions,#startNow>i,#restart>i{display:none}
body:not(.focus-screen).wide-reader-tools .desktop-dock-actions{display:contents}
body:not(.focus-screen).wide-reader-tools .desktop-dock-actions>button:not(#copyScrollReport,#quickEditText){display:none}
body:not(.focus-screen).wide-reader-tools #copyScrollReport{width:44px;padding-inline:0}
body:not(.focus-screen).wide-reader-tools #copyScrollReport span{display:none}
body.focus-screen.wide-reader-tools .desktop-dock-actions{
 display:flex;flex:1 0 274px;align-items:center;justify-content:space-evenly;gap:5px;
 padding-inline:6px;border-inline:1px solid var(--border);container:reader-actions / inline-size
}
body.focus-screen.wide-reader-tools .desktop-reading-adjustments:not(:empty){margin-inline-start:0}
body.focus-screen.wide-reader-tools .desktop-dock-actions>button{
 display:inline-flex;align-items:center;justify-content:center;gap:5px;
 width:auto;min-width:38px;min-height:44px;padding:5px 8px;font-size:13px
}
body.focus-screen.wide-reader-tools .desktop-dock-actions svg{width:17px;height:17px}
body.focus-screen.wide-reader-tools .desktop-dock-actions #readerFeedback{font-weight:650}
body.focus-screen.wide-reader-tools .desktop-dock-actions>button span{display:none}
@container reader-actions (min-width:375px){
 body.focus-screen.wide-reader-tools .desktop-dock-actions #readerReplaceSong span{display:inline}
}
@container reader-actions (min-width:510px){
 body.focus-screen.wide-reader-tools .desktop-dock-actions :is(#readerSongDetails,#copyScrollReport) span{display:inline}
}
@container reader-actions (min-width:740px){
 body.focus-screen.wide-reader-tools .desktop-dock-actions>button:not(#quickEditText) span{display:inline}
}
@media(max-width:1140px){
 body.focus-screen.wide-reader-tools .mobile-dock :is(#startNow,#restart){
  width:44px;min-width:44px;padding-inline:4px;justify-content:center
 }
 body.focus-screen.wide-reader-tools .mobile-dock :is(#startNow,#restart)>i{display:inline-flex}
 body.focus-screen.wide-reader-tools .mobile-dock :is(#startNow,#restart)>:is(span,small){display:none}
}
