/* Shared return navigation, above each module's own controls. */
:root{--portal-bar-height:64px}
.portal-return-bar{box-sizing:border-box;position:sticky;top:0;z-index:90;min-height:var(--portal-bar-height);padding:10px 20px;padding-top:calc(10px + env(safe-area-inset-top,0px));display:flex;align-items:center;justify-content:space-between;gap:16px;background:#eef4f0;border-bottom:1px solid #c3d1c8}
a.portal-return{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:1px solid #1c4939;border-radius:24px;background:#1c4939;color:#fff;font:600 16px/1.4 sans-serif;text-decoration:none;white-space:nowrap}
a.portal-return:hover{background:#123528}a.portal-return:focus-visible{outline:3px solid #9d2533;outline-offset:3px}
.portal-symbol{display:block!important;width:auto;height:32px;object-fit:contain;flex-shrink:0}
@media(min-width:981px){body:has(.portal-return-bar)>aside{top:calc(65px + env(safe-area-inset-top,0px));height:calc(100vh - 65px - env(safe-area-inset-top,0px))}}
body:has(.portal-return-bar) .viewer-head{top:calc(65px + env(safe-area-inset-top,0px))}
@media(max-width:980px){body:has(.portal-return-bar){padding-top:0!important}.portal-return-bar{padding-left:16px;padding-right:16px}}
@media(max-width:650px){body>header .brand{gap:10px}body>header .brand strong{font-size:16px;letter-spacing:-.6px}}
@media(max-width:900px){.shell aside nav{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;gap:8px;padding-bottom:6px}.shell aside nav button{flex:0 0 auto;white-space:nowrap}.shell aside{min-width:0}}
@media print{.portal-return-bar{display:none!important}}
body:has(.portal-return-bar) .toast{top:calc(82px + env(safe-area-inset-top,0px))!important}
