[id^="chr-"][hidden]{display:none!important}
.chr-install-bar,.chr-install-dialog,.chr-connectivity,.chr-install-help-link{font-family:system-ui,sans-serif;box-sizing:border-box}
.chr-install-bar{position:fixed;bottom:calc(1rem + env(safe-area-inset-bottom,0px));left:1rem;right:1rem;margin:auto;max-width:34rem;z-index:60;display:flex;gap:.6rem;padding:.8rem;background:#fff;border:1px solid #ccd8d0;border-radius:.8rem;box-shadow:0 5px 24px #0002}
.chr-install-bar button,.chr-install-dialog button{min-height:44px;padding:.6rem .85rem;border:1px solid #0f472a;border-radius:.5rem;background:#0f472a;color:#fff;cursor:pointer;font-size:1rem}
.chr-install-bar button:first-child{flex:1}
#chr-install-dismiss,#chr-install-close{background:#fff;color:#0f472a}
.chr-install-dialog{width:calc(100% - 2rem);max-width:32rem;max-height:80vh;overflow-y:auto;padding:1.5rem;border:1px solid #ccd8d0;border-radius:1rem;background:#fff;color:#183c2a;line-height:1.55}
.chr-install-dialog::backdrop{background:#0008}
.chr-install-dialog h2{font-size:1.4rem;line-height:1.3;margin:0 0 1rem}
.chr-install-dialog ol{list-style:decimal;padding-left:1.5rem;margin:1rem 0}
.chr-install-dialog li{margin-bottom:.6rem}
.chr-install-dialog button:focus-visible,.chr-install-bar button:focus-visible,.chr-install-help-link:focus-visible{outline:3px solid #e9a51a;outline-offset:3px}
.chr-connectivity{position:sticky;top:0;z-index:65;background:#fff4ce;color:#4b3900;padding:.75rem 1rem;border-bottom:1px solid #e4cd76;line-height:1.4}
.chr-install-help-link{display:block;margin:1rem auto 7rem;width:max-content;max-width:100%;padding:.5rem;color:#0f472a;text-decoration:underline}
.chr-pwa-standalone body{padding-bottom:env(safe-area-inset-bottom,0px)}
/* Hide only public navigation in authenticated standalone mode, preserving the role-based sidebar. */
.chr-pwa-standalone .chr-pwa-account #site-navigation,
.chr-pwa-standalone .chr-pwa-account #internal-mobile-nav,
.chr-pwa-standalone .chr-pwa-account #internal-mobile-menu,
.chr-pwa-standalone .chr-pwa-account #homepage-mobile-nav,
.chr-pwa-standalone .chr-pwa-account #homepage-mobile-menu{display:none!important}
.chr-pwa-standalone .chr-pwa-account #page,.chr-pwa-standalone .chr-pwa-account .header-page-content,.chr-pwa-standalone .chr-pwa-account #primary{min-width:0}
@media(max-width:1023.98px){
 .chr-pwa-standalone .chr-pwa-account #mobileSidebar{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
 .chr-pwa-standalone .chr-pwa-account .header-layout{padding-top:max(1rem,env(safe-area-inset-top,0px))}
 .chr-pwa-standalone .chr-pwa-account #primary input:not([type=checkbox]):not([type=radio]),
 .chr-pwa-standalone .chr-pwa-account #primary select,.chr-pwa-standalone .chr-pwa-account #primary textarea{font-size:16px;max-width:100%}
 .chr-pwa-standalone .chr-pwa-account #primary button,.chr-pwa-standalone .chr-pwa-account .sidebar-link{min-height:44px}
}
.chr-install-dialog p{margin:0 0 .75rem}
/* 0.1.2: iOS Home Screen document viewer with a permanent Close control. */
.chr-file-open,.chr-file-open body{overflow:hidden}
.chr-file-viewer{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;background:#f3f6f4;font-family:system-ui,sans-serif;color:#183c2a}
.chr-file-viewer[hidden]{display:none!important}
.chr-file-bar{display:flex;align-items:center;gap:.5rem;padding:max(.6rem,env(safe-area-inset-top,0px)) max(.75rem,env(safe-area-inset-right,0px)) .6rem max(.75rem,env(safe-area-inset-left,0px));background:#0f472a;color:#fff;flex:0 0 auto}
.chr-file-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.chr-file-viewer button{min-height:44px;padding:.55rem .9rem;border-radius:.5rem;border:1px solid #0f472a;background:#0f472a;color:#fff;font-size:1rem;cursor:pointer}
.chr-file-bar button{background:#fff;color:#0f472a;border-color:#fff;flex:0 0 auto}
.chr-file-viewer button[hidden]{display:none!important}
.chr-file-body{flex:1;min-height:0;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom,0px)}
.chr-file-status{margin:1rem;padding:1rem;background:#fff;border-radius:.75rem;line-height:1.5}
.chr-file-status[hidden]{display:none}
.chr-file-frame-wrap{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;background:#fff}
.chr-file-frame-wrap[hidden]{display:none}
.chr-file-frame{display:block;width:100%;height:100%;min-height:100%;border:0;background:#fff}
.chr-file-viewer button:focus-visible{outline:3px solid #e9a51a;outline-offset:2px}
/* 0.1.3: scrollable multi-page PDF preview drawn with the bundled PDF.js. */
.chr-pdf-pages{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:.75rem;background:#e7ece9;min-height:100%;box-sizing:border-box}
.chr-pdf-page{width:100%;max-width:900px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);position:relative;overflow:hidden}
.chr-pdf-page canvas{display:block;width:100%;height:auto}
.chr-pdf-page:not(.is-rendered)::after{content:"Loading page\2026";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#6b7d73;font-size:.9rem}
.chr-pdf-page.is-failed::after{content:"This page could not be shown";color:#9b2c2c}
.chr-file-image{display:block;max-width:100%;height:auto;margin:0 auto}
