:root{--aa-native-green:#07965f;--aa-native-ink:#10241e;--aa-native-muted:#6f7e77;--aa-native-line:#dfe9e4;--aa-native-safe-b:env(safe-area-inset-bottom,0px);--aa-native-safe-t:env(safe-area-inset-top,0px);--aa-native-nav-h:68px;--aa-native-top-h:54px}
html.amarai-pwa-native-mode{background:#f8fcfa!important;overscroll-behavior-y:none}
html.amarai-pwa-native-mode,html.amarai-pwa-native-mode body{margin-top:0!important}
body.amarai-pwa-native-mode{padding-bottom:calc(var(--aa-native-nav-h) + var(--aa-native-safe-b))!important;background:#f8fcfa!important;-webkit-tap-highlight-color:transparent}
body.amarai-pwa-native-mode.amarai-pwa-native-has-top{padding-top:calc(var(--aa-native-top-h) + var(--aa-native-safe-t))!important}
body.amarai-pwa-native-mode #wpadminbar{display:none!important}
html.amarai-pwa-native-mode{margin-top:0!important}
/* Hide only common WordPress/theme chrome, never arbitrary in-product headers. */
body.amarai-pwa-native-mode #masthead,
body.amarai-pwa-native-mode .site-header,
body.amarai-pwa-native-mode header.site-header,
body.amarai-pwa-native-mode .elementor-location-header,
body.amarai-pwa-native-mode [data-elementor-type="header"],
body.amarai-pwa-native-mode .wp-site-blocks>header,
body.amarai-pwa-native-mode #colophon,
body.amarai-pwa-native-mode .site-footer,
body.amarai-pwa-native-mode footer.site-footer,
body.amarai-pwa-native-mode .elementor-location-footer,
body.amarai-pwa-native-mode [data-elementor-type="footer"],
body.amarai-pwa-native-mode .wp-site-blocks>footer{display:none!important}
body.amarai-pwa-native-mode .amarai-pwa-install-wrap{display:none!important}
.amarai-pwa-native-topbar{position:fixed;z-index:2147482000;top:0;left:0;right:0;height:calc(var(--aa-native-top-h) + var(--aa-native-safe-t));padding:var(--aa-native-safe-t) 12px 0;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.96);border-bottom:1px solid rgba(221,234,227,.95);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 5px 18px rgba(5,70,48,.035);font-family:Inter,"Noto Sans Bengali","Hind Siliguri",system-ui,-apple-system,"Segoe UI",sans-serif}
.amarai-pwa-native-topbar[hidden]{display:none!important}.amarai-pwa-native-back,.amarai-pwa-native-home{width:42px;height:42px;border:0;background:transparent;color:#29483b;display:grid;place-items:center;border-radius:12px;padding:0}.amarai-pwa-native-back:active,.amarai-pwa-native-home:active{background:#edf8f2}.amarai-pwa-native-back svg,.amarai-pwa-native-home svg{width:21px;height:21px}.amarai-pwa-native-title{min-width:0;flex:1;text-align:center;font-size:14px;font-weight:800;color:var(--aa-native-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.amarai-pwa-native-title b{color:var(--aa-native-green)}
.amarai-pwa-native-nav{position:fixed;z-index:2147482000;left:0;right:0;bottom:0;height:calc(var(--aa-native-nav-h) + var(--aa-native-safe-b));padding:7px 8px var(--aa-native-safe-b);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:rgba(255,255,255,.97);border-top:1px solid rgba(218,232,224,.95);box-shadow:0 -8px 28px rgba(6,68,47,.045);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);font-family:Inter,"Noto Sans Bengali","Hind Siliguri",system-ui,-apple-system,"Segoe UI",sans-serif}
.amarai-pwa-native-nav a{min-width:0;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-decoration:none!important;color:#73827a!important;font-size:9.5px;font-weight:750;line-height:1;background:transparent!important;border:0!important;box-shadow:none!important}.amarai-pwa-native-nav a svg{width:21px;height:21px}.amarai-pwa-native-nav a.is-active{color:var(--aa-native-green)!important}.amarai-pwa-native-nav a i{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:0;transform:scale(.4)}.amarai-pwa-native-nav a.is-active i{opacity:1;transform:scale(1)}
body.amarai-pwa-native-mode .amarai-pwa-update{bottom:calc(var(--aa-native-nav-h) + var(--aa-native-safe-b) + 12px)!important}
@media(min-width:760px){.amarai-pwa-native-topbar,.amarai-pwa-native-nav{left:50%;right:auto;width:min(100%,720px);transform:translateX(-50%)}body.amarai-pwa-native-mode:before{content:"";position:fixed;inset:0 auto 0 50%;width:min(100%,720px);transform:translateX(-50%);background:#fff;z-index:-1;box-shadow:0 0 0 1px rgba(218,232,224,.55)}}
@media(prefers-reduced-motion:reduce){.amarai-pwa-native-nav *, .amarai-pwa-native-topbar *{transition:none!important}}

/* v2.3.2 — App Mode bottom-bar / composer collision protection */
:root{--aa-native-nav-reserve:calc(var(--aa-native-nav-h) + var(--aa-native-safe-b));--aa-native-keyboard-open:0}

/* The Core chat is a flex column. Constrain it to the visible area above the
   native tab bar instead of allowing its composer to continue behind it. */
body.amarai-pwa-native-mode.amarai-pwa-native-chat-page{
  padding-bottom:0!important;
  height:100dvh!important;
  min-height:100dvh!important;
  overflow:hidden!important;
}
body.amarai-pwa-native-mode.amarai-pwa-native-chat-page .amarai-app{
  height:calc(100dvh - var(--aa-native-nav-reserve))!important;
  min-height:0!important;
  max-height:calc(100dvh - var(--aa-native-nav-reserve))!important;
  overflow:hidden!important;
  border-bottom-left-radius:0!important;
  border-bottom-right-radius:0!important;
}
body.amarai-pwa-native-mode.amarai-pwa-native-chat-page .amarai-main{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
}
body.amarai-pwa-native-mode.amarai-pwa-native-chat-page .amarai-messages{
  min-height:0!important;
  overscroll-behavior:contain;
}
body.amarai-pwa-native-mode.amarai-pwa-native-chat-page .amarai-attachment-preview{
  flex:0 0 auto!important;
  margin-bottom:6px!important;
}
body.amarai-pwa-native-mode.amarai-pwa-native-chat-page .amarai-composer{
  flex:0 0 auto!important;
  position:relative!important;
  z-index:20!important;
  margin-bottom:6px!important;
}
body.amarai-pwa-native-mode.amarai-pwa-native-chat-page .amarai-note{
  flex:0 0 auto!important;
  padding-bottom:8px!important;
}

/* Common AmarAI bottom controls on other internal pages must sit above the
   persistent native navigation rather than under it. */
body.amarai-pwa-native-mode .amarai-toast{
  bottom:calc(var(--aa-native-nav-reserve) + 14px)!important;
}
body.amarai-pwa-native-mode .amarai-pwa-install-wrap,
body.amarai-pwa-native-mode .amarai-pwa-update{
  bottom:calc(var(--aa-native-nav-reserve) + 12px)!important;
}

/* Add clearance to likely page-level sticky action areas without moving full
   screen dialogs/backdrops. These selectors are intentionally product-scoped. */
body.amarai-pwa-native-mode .amarai-sticky-bottom,
body.amarai-pwa-native-mode .amarai-bottom-actions,
body.amarai-pwa-native-mode .amarai-mobile-actions,
body.amarai-pwa-native-mode .amarai-action-bar,
body.amarai-pwa-native-mode [data-amarai-bottom-bar]{
  bottom:var(--aa-native-nav-reserve)!important;
}

/* When a phone keyboard is open, hiding the app tab bar matches native-app
   behavior and prevents it from competing with any focused composer/input. */
html.amarai-pwa-keyboard-open .amarai-pwa-native-nav{
  transform:translateY(110%)!important;
  pointer-events:none!important;
  opacity:0!important;
}
html.amarai-pwa-keyboard-open body.amarai-pwa-native-mode{
  padding-bottom:0!important;
}
html.amarai-pwa-keyboard-open body.amarai-pwa-native-mode.amarai-pwa-native-chat-page .amarai-app{
  height:100dvh!important;
  max-height:100dvh!important;
}

@media(max-width:760px){
  body.amarai-pwa-native-mode.amarai-pwa-native-chat-page .amarai-app{
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
  }
  body.amarai-pwa-native-mode.amarai-pwa-native-chat-page .amarai-main{
    height:100%!important;
  }
}


/* v2.4.0 — Health AI and module-wide composer visibility */
body.amarai-pwa-native-mode.amarai-pwa-native-health-page{
  padding-bottom:0!important;height:100dvh!important;min-height:100dvh!important;overflow:hidden!important;
}
body.amarai-pwa-native-mode.amarai-pwa-native-health-page .ahai-app{
  top:0!important;bottom:auto!important;height:calc(100dvh - var(--aa-native-nav-reserve))!important;max-height:calc(100dvh - var(--aa-native-nav-reserve))!important;min-height:0!important;
}
body.amarai-pwa-native-mode.amarai-pwa-native-health-page .ahai-workspace,
body.amarai-pwa-native-mode.amarai-pwa-native-health-page .ahai-stage{height:100%!important;min-height:0!important;max-height:100%!important}
body.amarai-pwa-native-mode.amarai-pwa-native-health-page .ahai-chat{min-height:0!important;overscroll-behavior:contain}
body.amarai-pwa-native-mode.amarai-pwa-native-health-page .ahai-compose-wrap{position:relative!important;z-index:30!important;flex:0 0 auto!important}
body.amarai-pwa-native-mode .amarai-pwa-native-bottom-protected{bottom:var(--aa-native-nav-reserve)!important}
html.amarai-pwa-keyboard-open body.amarai-pwa-native-mode.amarai-pwa-native-health-page .ahai-app{height:100dvh!important;max-height:100dvh!important;bottom:0!important}
html.amarai-pwa-keyboard-open body.amarai-pwa-native-mode .amarai-pwa-native-bottom-protected{bottom:0!important}
@media(max-width:640px){
  body.amarai-pwa-native-mode.amarai-pwa-native-health-page .ahai-workspace{padding-bottom:0!important}
  body.amarai-pwa-native-mode.amarai-pwa-native-health-page .ahai-compose-wrap{padding-bottom:max(7px,env(safe-area-inset-bottom))!important}
}

/* v2.6.0 — admin-managed native PWA navigation */
.amarai-pwa-native-nav{grid-template-columns:repeat(var(--aa-native-nav-count,5),minmax(0,1fr))}
.amarai-pwa-native-nav{grid-template-columns:repeat(var(--aa-native-nav-count,5),minmax(58px,1fr));overflow-x:auto;scrollbar-width:none}.amarai-pwa-native-nav::-webkit-scrollbar{display:none}
