/* Installed-mode only. Existing FiWEH header, menu, search and account actions remain the owners. */
.fwi-app-nav{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 16px;background:#fff;color:#101113;border-block:1px solid #dedede;position:sticky;top:0;z-index:1000;box-sizing:border-box}
.fwi-app-nav[hidden]{display:none!important}
.fwi-app-nav a,.fwi-app-nav button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;padding:8px 16px;border:0;border-radius:10px;background:transparent;color:inherit;text-decoration:none;font:600 14px/1.25 system-ui;cursor:pointer;box-sizing:border-box}
.fwi-app-nav [aria-current=page]{background:#101113;color:#fff}
.fwi-app-nav :is(a,button):focus-visible{outline:3px solid #b41634;outline-offset:2px}
body.fwi-app .fbp-header .fbp-header-top{padding-block:10px;gap:12px}
body.fwi-app .fbp-header .fbp-brand img{max-height:48px;width:auto;object-fit:contain}
body.fwi-app .fbp-header .fbp-brand p{display:none}
body.fwi-app .fbp-header :is(a,summary,button,input[type=search]){min-height:44px;box-sizing:border-box}
body.fwi-app .fbp-header .fbp-header-tools>a{display:inline-flex;align-items:center;padding-inline:8px}
@media(min-width:769px){.fwi-app-nav [data-fwi-destination=Menu]{display:none}.fwi-app-nav{justify-content:flex-start;padding-inline:max(24px,calc((100vw - 1200px)/2))}}
@media(max-width:768px){
 body.fwi-app-dock{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
 .fwi-app-nav{position:fixed;inset:auto 0 0;gap:0;padding:6px max(6px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));border-top:1px solid #dedede;box-shadow:0 -4px 18px #0001}
 .fwi-app-nav a,.fwi-app-nav button{flex:1;min-width:0;min-height:56px;flex-direction:column;gap:4px;padding:6px 2px;font-size:11px}
 body.fwi-app .fbp-header .fbp-header-top{padding:10px 12px;display:grid;grid-template-columns:minmax(44px,64px) minmax(0,1fr);gap:12px;align-items:center;min-width:0}
 body.fwi-app .fbp-header .fbp-header-top > .fbp-brand{grid-column:1;grid-row:1;width:auto;min-width:0;overflow-wrap:anywhere}
 body.fwi-app .fbp-header .fbp-header-top > .fbp-brand img{max-height:44px;max-width:100%;height:auto}
 body.fwi-app .fbp-header .fbp-header-top > .fbp-search{grid-column:2;grid-row:1;order:0;min-width:0;width:100%;max-width:100%;margin:0;display:flex;flex-wrap:nowrap}
 body.fwi-app .fbp-header .fbp-header-top > .fbp-search input[type=search]{flex:1 1 0%;min-width:0;width:0;min-height:44px;font-size:16px}
 body.fwi-app .fbp-header .fbp-header-top > .fbp-search button[type=submit]{flex:0 0 auto;min-width:44px;min-height:44px}
 body.fwi-app .fbp-header .fbp-header-top > .fbp-header-navrow{grid-column:1/-1;grid-row:2;min-width:0}
 body.fwi-app .fbp-header .fbp-header-top > .fbp-header-tools{grid-column:1/-1;grid-row:3;max-width:100%;min-width:0;flex-wrap:wrap;justify-content:flex-end}
 body.fwi-app .fbp-header details.fbp-mobile{display:block;scroll-margin-top:12px}
}
@media(prefers-reduced-motion:reduce){.fwi-app-nav{transition:none;animation:none}}
body.fwi-app :is(.fbp-page,.fbp-commerce-layout,.fbp-profile-account) :is(a.button,button.button,input[type=submit]):not(:where(.fbp-epub-reader *)){min-height:44px}
