/* Layout primitives only. Identity/nav are authored by each reader product. */
html[data-reader-boundary]{--enclosure-top:0px;--enclosure-bottom:0px}
html[data-reader-boundary] body.product-app{height:var(--reader-height,100dvh);overflow:hidden}
html[data-reader-boundary] body.product-app main{padding:2px!important;margin:0!important;max-width:none!important;width:100%;height:var(--reader-height,100dvh)!important;box-sizing:border-box;display:flex;flex-direction:column;min-height:0}
html[data-reader-boundary] .console{width:100%;margin:0!important;box-sizing:border-box}
html[data-reader-boundary] body.product-app .console.screen-takeover:not(.research-immersive){inset:var(--reader-top,0px) 0 auto!important;width:100%!important;height:var(--reader-height,100dvh)!important;max-height:none!important}
html[data-reader-boundary] .mast,html[data-reader-boundary] main>.about-pilot,html[data-reader-boundary] main>.edition-note{display:none!important}
.reader-header,.reader-footer{flex:0 0 auto;display:flex;align-items:center;gap:14px;background:var(--product-bg);color:var(--os-text,var(--product-paper,#eee));font:12px/1.3 ui-monospace,monospace;border-color:var(--product-line)}
.reader-header{padding:7px 12px;border-bottom:1px solid var(--product-line);min-height:40px;box-sizing:border-box}
.reader-header>.transport{flex:1;min-width:0;min-height:0!important;padding:0!important;border:0!important;margin:0!important;background:transparent!important}
.reader-header .library-select{min-width:0}
.reader-header>.reader-wordmark{margin-right:0;flex:0 0 auto}
.reader-header>[data-reader-fullscreen]{flex:0 0 auto}
.reader-theme-setting{display:flex!important;align-items:center;gap:12px}
.reader-theme-setting select{min-height:32px;max-width:230px;background:var(--product-bg);color:inherit}
html[data-reader-boundary] dialog{box-sizing:border-box;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}
html[data-reader-boundary] #support-dialog.reader-support{inset:0!important;margin:auto!important;width:min(850px,calc(100vw - 24px))!important;height:min(780px,calc(100dvh - 24px))!important}
.reader-wordmark{margin-right:auto;white-space:nowrap;color:var(--product-accent);text-decoration:none}
.reader-header nav{display:flex;align-items:center;gap:16px;min-width:0}
.reader-header nav a{color:inherit;text-decoration:none;white-space:nowrap}
.reader-header button,.reader-header select,.reader-footer button{font:inherit;color:inherit;background:transparent;border:1px solid var(--product-line);padding:5px 7px;min-height:30px;cursor:pointer}
.reader-header [data-reader-menu]{display:none}
.reader-footer{padding:4px 12px;border-top:1px solid var(--product-line);font-size:11px;min-height:26px;box-sizing:border-box}
.reader-footer>a:first-child{margin-right:auto}.reader-footer a{color:inherit;text-decoration:none}.reader-footer button{border:0;min-height:24px;padding:2px 4px}
.reader-header a:focus-visible,.reader-footer a:focus-visible,.reader-header button:focus-visible,.reader-footer button:focus-visible{outline:2px solid var(--product-accent);outline-offset:2px}
html[data-reader-boundary] .reader-support{padding:0;width:min(850px,94vw);height:min(780px,90dvh);max-height:90dvh;background:var(--product-bg);color:inherit;border:1px solid var(--product-line)}
.reader-support>header{box-sizing:border-box;height:52px;padding:9px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.reader-support h2{margin:0;font:20px Georgia,serif}.reader-support>iframe{display:block;width:100%;height:calc(100% - 52px);border:0}.reader-support::backdrop{background:#0009}
body:is(.research-immersive-active,.zero-immersive-active) .reader-header,body:is(.research-immersive-active,.zero-immersive-active) .reader-footer{display:none!important}
@media(max-width:850px){.reader-header{gap:7px;padding:4px 7px;flex-wrap:wrap}.reader-header nav{display:none;order:5;flex:1 0 100%;flex-wrap:wrap;gap:12px;padding:8px 0}.reader-header[data-menu-open=true] nav{display:flex}.reader-header [data-reader-menu]{display:block}.reader-wordmark{font-size:12px;min-width:0;white-space:normal}.reader-header select{max-width:72px}.reader-footer{gap:10px;padding:3px 7px;min-height:29px}.reader-footer a,.reader-footer button{font-size:10px}}
@media(max-height:430px){.reader-header{padding-block:2px;min-height:30px}.reader-header button,.reader-header select{min-height:25px;padding-block:2px}.reader-footer{min-height:23px;padding-block:0}}
@media(max-width:850px){.reader-header{position:relative;padding-top:31px}.reader-header>.reader-wordmark{position:absolute;top:8px;left:8px;max-width:calc(100% - 110px)}.reader-header>[data-reader-fullscreen]{position:absolute;top:3px;right:7px;min-height:25px;padding-block:2px}.reader-header>.transport{flex:1 0 100%;width:100%}.reader-footer{flex-wrap:wrap}.reader-header .transport select{max-width:100%}.reader-header .transport .library-select{max-width:100%;min-width:0}}
.reader-wordmark{font:600 15px/1.2 ui-monospace,monospace;letter-spacing:.035em}
.reader-header{border-bottom-color:var(--product-accent)}
.reader-footer{letter-spacing:.03em}
@media(max-width:850px){.reader-wordmark{font-size:11px;max-width:150px}}
