/* DJIVA AI · shorter navigation and tighter greeting · 2026-10-31
   Loaded last: correct prior AI-only 26px over-padding without moving the
   top edge or icons. All other tabs retain their current geometry. */
@media (max-width:799px) {
  /* Match the bottom navigation on Goals, Finance and Diaries. */
  #app > main.screen-body.section-ai + nav.v2-nav{
    bottom:0!important;
    padding-bottom:calc(8px + var(--safe-bottom))!important;
    border-radius:22px 22px 0 0!important;
  }
  /* Remove the old 26px decorative strip below the AI navigation. */
  #app > main.screen-body.section-ai + nav.v2-nav::after{
    content:none!important;
    display:none!important;
  }
}
/* Tighten only the illustrated AI greeting, not other welcome screens. */
@media(max-width:599px){
  .screen-body.section-ai .gh-ai-page.gs-home:has(.gu-ai-hub) .gs-hero .gs-date{
    top:clamp(45px,15vw,61px)!important;
  }
  .screen-body.section-ai .gh-ai-page.gs-home:has(.gu-ai-hub) .gs-hero h1{
    top:32%!important;
    font-size:clamp(22px,5.7vw,27px)!important;
    line-height:1.07!important;
    letter-spacing:-.04em!important;
  }
  .screen-body.section-ai .gh-ai-page.gs-home:has(.gu-ai-hub) .gs-hero .gs-hero-subtitle{
    top:clamp(149px,42.5vw,179px)!important;
    bottom:auto!important;
    line-height:1.38!important;
  }
}
@media(max-width:350px){
  .screen-body.section-ai .gh-ai-page.gs-home:has(.gu-ai-hub) .gs-hero h1{
    font-size:21px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #app > main.screen-body.section-ai + nav.v2-nav::after{transition:none!important}
}
