:root{--hyvinn-bar-size:1.5cm;--hyvinn-safe-bottom:env(safe-area-inset-bottom,0px)}
.life .shell>header{height:var(--hyvinn-bar-size);min-height:var(--hyvinn-bar-size)}
.life .app-viewer{box-sizing:border-box;position:fixed;inset:0;height:100vh;height:100dvh;max-height:100dvh;padding-bottom:0;overflow:hidden;background:#fffffc}
.life .app-viewer-header{box-sizing:border-box;flex:0 0 auto;height:calc(var(--hyvinn-bar-size) + env(safe-area-inset-top,0px));min-height:calc(var(--hyvinn-bar-size) + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 8px 0;gap:6px}
.life .app-viewer-header .btn{height:44px;min-height:44px;padding:6px 10px;display:inline-flex;align-items:center;justify-content:center;line-height:1.15}
.life .app-viewer-header strong{flex:1;min-width:0;font-size:13px;line-height:1.15;text-align:center;overflow-wrap:anywhere}
.life .app-viewer-header .viewer-language{min-width:44px;padding:6px;font-size:11px}
.story-header{box-sizing:border-box;height:calc(var(--hyvinn-bar-size) + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px)}
.story-header .site-brand img{width:40px;height:40px}
@media(max-width:760px){
 .life{position:fixed;inset:0;height:100vh;height:100dvh;max-height:100dvh;overflow:hidden;overscroll-behavior:none;padding-bottom:0}
 .life>aside{position:fixed;inset:0 0 auto;z-index:100;width:100%;height:calc(var(--hyvinn-bar-size) + env(safe-area-inset-top,0px));min-height:0;box-sizing:border-box;margin:0;padding:env(safe-area-inset-top,0px) 12px 0;display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:10px;overflow:visible;background:#fffffc;border-bottom:1px solid var(--line)}
 .life>aside .site-brand{padding:0;margin:0;gap:10px;min-width:0;height:var(--hyvinn-bar-size);align-items:center}
 .life>aside .site-brand img{width:40px;height:40px;flex:none}
 .life>aside .site-brand strong{font-size:26px;line-height:1}
 .life>aside .site-brand span{font-size:8px;line-height:1.25;letter-spacing:1.6px;margin-top:4px}
 .life>aside>.side-label,.life>aside>.sidebar-bottom,.life>aside>.mobile-nav-label,.life>aside>#mobile-nav{display:none!important}
 .life #menu-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;font-size:23px}
 .life .shell{box-sizing:border-box;height:100%;margin:0;padding-top:calc(var(--hyvinn-bar-size) + env(safe-area-inset-top,0px));padding-bottom:var(--hyvinn-bar-size);overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding-bottom:22px}
 .life:has(dialog[open]) .shell{overflow:hidden}
 .life .shell>header{display:none}
 .life main{min-height:calc(100dvh - var(--hyvinn-bar-size)*2 - env(safe-area-inset-top,0px));padding-top:18px}
 .life nav#primary-nav{position:fixed;inset:calc(var(--hyvinn-bar-size) + env(safe-area-inset-top,0px)) 0 auto;width:auto;margin:0;padding:10px;max-height:calc(100dvh - var(--hyvinn-bar-size)*2 - env(safe-area-inset-top,0px));box-sizing:border-box;overflow:auto;overscroll-behavior:contain;background:#fffffc;border-bottom:1px solid var(--line);box-shadow:0 12px 22px #12332214;display:none}
 .life nav#primary-nav.is-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
 .life nav#primary-nav a{min-width:0;min-height:44px;display:flex;align-items:center;font-size:12px;line-height:1.25;padding:8px 10px;white-space:normal;overflow-wrap:anywhere}
 .life>.bottom-nav{box-sizing:border-box;position:absolute;inset:auto 0 0;height:var(--hyvinn-bar-size);min-height:0;margin:0;padding:0 4px;align-items:stretch;background:#fffffc;z-index:90}
 .life>.bottom-nav a{box-sizing:border-box;height:var(--hyvinn-bar-size);min-height:44px;display:flex;align-items:center;justify-content:center;gap:3px;padding:4px 0 clamp(4px,var(--hyvinn-safe-bottom),12px);font-size:8.5px;line-height:1.15}
 .life>.bottom-nav svg{width:20px;height:20px;flex:none}
 .life>.bottom-nav a.active:before{top:0;height:2px}
 .life .app-viewer-header strong{font-size:11px}
 .life .app-viewer-header .btn{font-size:11px;padding-inline:8px}
}
