#institutionSplash{position:fixed;top:0;right:0;bottom:0;left:0;background:#fff;z-index:10000;display:flex;align-items:center;justify-content:center;pointer-events:none}
#institutionSplash img{width:64vw;max-width:320px;height:auto}
#institution{box-sizing:border-box;width:440px;max-width:calc(100vw - 20px);max-height:calc(var(--vh,100vh) - 20px);padding:0;border:1px solid var(--edge,var(--line,#abb5bf));border-radius:12px;background:var(--surface,var(--paper,#fff));color:var(--ink);overflow:auto}
#institution header{position:sticky;top:0;z-index:1;background:inherit;display:flex;align-items:center;justify-content:space-between;padding:8px 16px;border-bottom:1px solid var(--edge,var(--line,#ccc))}
#institution header h2{font-size:18px;margin:0}#institution header button{font-size:24px;width:40px;height:40px}
.instBody{padding:16px 20px;line-height:1.45}.instBrand{text-align:center;background:#fff;border-radius:8px}.instBrand img{width:auto;height:86px;max-width:100%;object-fit:contain}
.instApp{display:flex;align-items:center;margin:16px 0}.instApp img{margin-right:12px}.instApp small,.instLinks a{display:block}.instBody dt,.instBody small{font-size:12px;color:var(--muted)}.instBody dd{margin:1px 0 10px}.instBody a{color:var(--accent);overflow-wrap:anywhere}.instLinks{border-block:1px solid var(--edge,var(--line,#ccc));margin:12px 0;padding:4px 0}.instLinks a{padding:7px 0}
.sidebar{overflow-y:auto}.sidebar button{flex-shrink:0}
dialog{max-width:calc(100vw - 14px);max-height:calc(var(--vh,100vh) - 14px);overflow:auto}
.home,.work,#central.home{height:var(--vh,100vh)}
@media(max-width:600px),(max-width:760px) and (orientation:portrait){
.home,#central.home{display:flex;flex-direction:column;width:100%;overflow:hidden}
.home[hidden],#central.home[hidden]{display:none}
.home .sidebar,#central.home .sidebar{display:flex;flex-direction:row;align-items:center;flex:none;width:100%;max-width:none;min-width:0;padding:2px 4px;height:48px;gap:0;overflow-x:auto;overflow-y:hidden;box-sizing:border-box}
.home .sidebar .brand,.home .sidebar .suite,.home .sidebar .push{display:none}
.home .sidebar button,#central.home .sidebar button{flex:1 0 36px;max-width:65px;min-height:42px;margin:0;justify-content:center;padding:4px;text-align:center}
.home .sidebar button span{display:none}.home .homeMain{flex:1;min-height:0;overflow:auto;width:100%}
.home .homeContent{padding:15px 12px 24px}.home .homebar{height:37px;min-height:37px;padding:0 13px}
.home .homeIntro{gap:4px;margin-bottom:12px}.home .homeIntro h1{font-size:21px}.home .homeIntro button{font-size:0;min-width:42px;min-height:42px}
.home .hero{min-height:122px;padding:15px}.home .heroArt{width:38%;pointer-events:none}.home .hero h2{font-size:21px;max-width:70%}
.home .templates,#central .templates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible}.home .template,#central .template{width:100%;min-width:0;max-width:none}.home .preview{height:68px}
.work .booktitle,#top #title{flex:1;min-width:30px;width:0}.topbar .push,#top .spacer,.topbar .divider{display:none}.topbar .brand img,#top .brand img{width:20px;height:20px}
.topbar [data-act=full],.topbar [data-act=fullscreen],#top #full,#top #open,#top #homeIcon{display:none}
.work .topbar,#top{min-height:40px;padding:0 3px}.work .topbar button,#top button{flex:none;min-width:30px}
.work .side,.work .inspector,#left,#right{position:absolute;top:0;bottom:0;left:auto;right:0;width:265px;max-width:calc(100% - 44px);max-height:100%;overflow:auto;z-index:7;box-shadow:0 3px 14px #0003}
.work .side{left:35px;right:auto}#left{left:0;right:auto}
.work .rail{flex:none;overflow-y:auto;overflow-x:hidden}.work .rail button{flex:none}
.work .group button:has(svg) span{display:none}.work .group button svg{flex-shrink:0}
#dialog .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#dialog input,#dialog select,#dialog textarea{max-width:100%;min-width:0}
}
.shortEdit .ribbon,.shortEdit #ribbon{display:none}
@media print{#institutionSplash,#institution{display:none!important}}
#dialog .moreForm>.control{display:flex;justify-content:space-between;align-items:center;padding:14px 0;gap:10px}#dialog .moreForm>.control select{min-width:0;max-width:72%}
#dialog .moreForm>footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--edge,var(--line,#ccc));padding:10px 0 0}
.optionGallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:.5em 0}
.optionGallery button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:48px;font-size:12px;white-space:normal}.optionGallery svg{width:32px;height:23px}.optionGallery [aria-pressed=true]{border:1px solid var(--accent);background:var(--tint)}
@supports not (aspect-ratio:16/9){.slidePreview::before{content:"";display:block;padding-top:56.25%}}
.home[hidden],#central[hidden],#left[hidden],#right[hidden],.side[hidden],.inspector[hidden]{display:none!important}
@media(max-width:600px),(max-width:760px) and (orientation:portrait){.group button[title] svg+span{display:none}.sidebar button>span{display:none!important}.formbar{flex:none}.fileList{min-width:0;overflow:hidden}}
@media(max-width:600px),(max-width:760px) and (orientation:portrait){
.topbar .brand{margin:0 5px 0 2px}.topbar .brand img,#top .brand img{margin-right:3px}
.scrollTabs::-webkit-scrollbar,.ribbon::-webkit-scrollbar,#tabs::-webkit-scrollbar,#ribbon::-webkit-scrollbar,.sidebar::-webkit-scrollbar{height:0;width:0}
.work .ribbon,#ribbon{overflow-y:hidden}.work .ribbon{height:62px}.work .group{height:54px}
.work .rail button{min-height:40px}.work .rail .push{min-height:0}
#central .homeIntro h1{font-size:21px}
}
#dialog .moreForm>footer button+button{margin-left:6px}

#central.home{top:0;bottom:0;left:0;right:0}
@media(max-width:600px),(max-width:760px) and (orientation:portrait){
#ribbon .iconBtn,.work .group .iconBtn{min-width:34px}
#status #navBtn,#status #props{min-width:36px;min-height:34px}
.home .sidebar button[aria-label]{min-width:36px}
}

.visuallyHidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
