/* Reading pages share the same service controls, including the account label. */
body>.header.global-shell #account-button .account-label{display:inline!important;visibility:visible!important;opacity:1!important;color:inherit!important;margin:0!important;font:inherit!important}
body>.header.global-shell #account-button .account-signin-label{color:inherit!important}
body:has(>main#app){--bookorism-header-height:88px}
body:has(>main#app)>main#app{height:calc(100dvh - var(--bookorism-header-height));min-height:0}
@media(max-width:720px){
 body>.header.global-shell #account-button .account-label{white-space:nowrap!important}
 body:has(>main#app)>main#app{height:calc(100dvh - var(--bookorism-header-height));padding-top:12px}
 body.intro:has(>main#app)>main#app{padding:20px 18px max(24px,5dvh);align-items:flex-end}
 body.intro .intro-panel{padding:24px 18px}
}
@media(max-width:1050px){
 body:not(.intro):has(>main#app)>main#app{height:calc(100dvh - var(--bookorism-header-height));padding:12px 10px max(14px,env(safe-area-inset-bottom));min-height:0;overflow:hidden}
 body:has(>main#app) .tablet-workspace{height:100%!important;max-height:100%!important;width:100%!important;min-height:0!important;max-width:940px;margin-inline:auto}
 body:has(>main#app) .tablet-workspace .tablet-screen{min-height:0;max-height:100%;overflow:hidden}
 body:has(>main#app) .workspace-content{min-height:0;flex:1 1 auto;overflow:auto!important;overscroll-behavior-y:contain}
 body:has(>main#app) .flow-chapters{padding-inline:9px;gap:3px}
 body:has(>main#app) .flow-chapters button{min-width:0;white-space:normal;word-break:keep-all;font-size:10px;line-height:1.4;padding:7px 2px}
 body:has(>main#app) .tablet-workspace :is(input:not([type=checkbox]):not([type=range]),textarea,select){font-size:16px!important;min-width:0}
 body:has(>main#app) .searchbox input{width:100%;min-width:0}
 body:has(>main#app) .book-pagination .quiet{min-width:0;white-space:normal}
}
@media(max-width:350px){
 .tablet-workspace .tablet-screen .stage-identification{gap:6px}
 .tablet-workspace .tablet-screen .stage-copy strong{font-size:16px}
 .tablet-workspace .tablet-screen .workspace-bar{padding-inline:10px}
 .tablet-workspace .tablet-screen #pending{font-size:8px;gap:3px}
 .tablet-workspace .tablet-screen #pending .sp-number{font-size:20px}
 .tablet-workspace .tablet-screen .step-footer{padding-inline:10px}
}
@media(max-width:1050px){
 body:has(>main#app) .tablet-workspace .book-grid{flex:0 0 auto;min-height:0;grid-auto-rows:auto;grid-template-rows:auto!important;align-items:start}
 body:has(>main#app) .tablet-workspace .catalog-exhibit{height:clamp(120px,26vw,210px)!important;min-height:clamp(120px,26vw,210px)!important;flex:none!important}
 body:has(>main#app) .tablet-workspace .catalog-exhibit img{position:static!important;inset:auto!important;width:auto!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain}
}
