/* Axis 0.13.3 — safe Lucy-only messenger layout.
   Scope is intentionally limited to .home-shell--lucy so other pages remain on the stable 0.13.2 base. */
.home-shell--lucy,
.home-shell--lucy .home-shell__main{
  min-height:0!important;
  height:100dvh!important;
  overflow:hidden!important;
}
.home-shell--lucy .lucy-page{
  min-height:0!important;
  height:100dvh!important;
  max-height:100dvh!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  padding-bottom:18px!important;
}
.home-shell--lucy .lucy-page__header,
.home-shell--lucy .lucy-page>.home-hero,
.home-shell--lucy .lucy-priority,
.home-shell--lucy .lucy-quick-actions,
.home-shell--lucy .lucy-page>.home-composer{
  flex:0 0 auto!important;
}
.home-shell--lucy .lucy-page>.home-hero{
  height:170px!important;
  min-height:170px!important;
  max-height:170px!important;
  margin:0!important;
}
.home-shell--lucy .lucy-priority{
  margin-top:2px!important;
}
.home-shell--lucy .lucy-quick-actions{
  margin-top:0!important;
}
.home-shell--lucy .lucy-chat.axis110-hidden-demo{
  display:none!important;
}
.home-shell--lucy .axis110-chat{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  width:100%!important;
  margin:0!important;
  padding:14px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scroll-behavior:smooth;
  border:1px solid rgba(130,146,184,.22)!important;
  border-radius:16px!important;
  background:linear-gradient(145deg,rgba(16,26,45,.96),rgba(10,19,36,.96))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.04),0 18px 38px rgba(0,0,0,.22)!important;
  scrollbar-color:rgba(108,88,207,.5) transparent;
}
.home-shell--lucy .axis110-chat .axis-chat-message{
  flex:none!important;
}
.home-shell--lucy .axis110-chat .axis110-history{
  flex:none!important;
  margin-top:8px!important;
}
.home-shell--lucy .lucy-page>.home-composer{
  position:relative!important;
  inset:auto!important;
  bottom:auto!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  z-index:5!important;
}
.home-shell--lucy .lucy-page>.home-composer form{
  min-height:104px!important;
}

@media(max-width:720px){
  .home-shell--lucy{
    height:100dvh!important;
    overflow:hidden!important;
    padding-bottom:calc(70px + env(safe-area-inset-bottom))!important;
  }
  .home-shell--lucy .home-shell__main{
    height:calc(100dvh - 70px - env(safe-area-inset-bottom))!important;
    overflow:hidden!important;
  }
  .home-shell--lucy .lucy-page{
    width:auto!important;
    height:calc(100dvh - 128px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    min-height:0!important;
    max-height:calc(100dvh - 128px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    overflow:hidden!important;
    padding:7px 11px 8px!important;
    gap:8px!important;
  }
  .home-shell--lucy .lucy-page>.home-hero{
    width:100%!important;
    height:124px!important;
    min-height:124px!important;
    max-height:124px!important;
    flex-basis:124px!important;
    border-radius:14px!important;
    margin:0 auto!important;
  }
  .home-shell--lucy .home-hero__content{
    min-height:124px!important;
    height:124px!important;
    padding:17px 12px 14px 118px!important;
  }
  .home-shell--lucy .home-hero__content>div:first-child{
    width:auto!important;
  }
  .home-shell--lucy .home-hero__content h2{
    margin:0 0 5px!important;
    font-size:15px!important;
    line-height:1.18!important;
  }
  .home-shell--lucy .home-hero__content p{
    font-size:9px!important;
    line-height:1.35!important;
  }
  .home-shell--lucy .home-hero__metrics{
    display:none!important;
  }
  .home-shell--lucy .home-hero__portrait{
    width:118px!important;
    height:132px!important;
    inset:auto auto -5px 2px!important;
    overflow:visible!important;
  }
  .home-shell--lucy .home-hero__portrait img{
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center bottom!important;
  }
  .home-shell--lucy .home-waves--lucy-copy{
    height:28px!important;
    bottom:0!important;
  }
  .home-shell--lucy .lucy-section-heading{
    margin:0!important;
  }
  .home-shell--lucy .lucy-section-heading h2{
    font-size:10px!important;
  }
  .home-shell--lucy .lucy-section-heading button{
    min-height:30px!important;
    padding:0 6px!important;
    font-size:8px!important;
  }
  .home-shell--lucy .lucy-priority{
    margin-top:0!important;
  }
  .home-shell--lucy .lucy-priority__grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
  }
  .home-shell--lucy .lucy-priority-card{
    min-height:56px!important;
    grid-template-columns:22px minmax(0,1fr)!important;
    align-items:center!important;
    gap:5px!important;
    padding:6px!important;
    border-radius:10px!important;
  }
  .home-shell--lucy .lucy-priority-card__icon{
    width:21px!important;
    height:21px!important;
  }
  .home-shell--lucy .lucy-priority-card__icon svg{
    width:17px!important;
    height:17px!important;
  }
  .home-shell--lucy .lucy-priority-card strong{
    font-size:7.8px!important;
    line-height:1.2!important;
  }
  .home-shell--lucy .lucy-priority-card small{
    font-size:6.8px!important;
    line-height:1.2!important;
  }
  .home-shell--lucy .lucy-priority-card em{
    display:none!important;
  }
  .home-shell--lucy .lucy-quick-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    gap:6px!important;
    overflow:visible!important;
    padding:0!important;
    margin:0!important;
  }
  .home-shell--lucy .lucy-quick-actions button{
    justify-content:flex-start!important;
    min-height:36px!important;
    padding:0 8px!important;
    border-radius:10px!important;
  }
  .home-shell--lucy .lucy-quick-actions button:last-child{
    grid-column:1/-1!important;
  }
  .home-shell--lucy .lucy-quick-actions span{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    font-size:8px!important;
    line-height:1.18!important;
  }
  .home-shell--lucy .axis110-chat{
    min-height:126px!important;
    padding:9px 8px!important;
    border-radius:13px!important;
    gap:8px!important;
  }
  .home-shell--lucy .axis110-chat .axis-chat-message{
    max-width:92%!important;
    padding:10px 11px 8px!important;
    font-size:12px!important;
    line-height:1.4!important;
  }
  .home-shell--lucy .axis110-action-card{
    padding:12px!important;
  }
  .home-shell--lucy .lucy-page>.home-composer{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    border-radius:14px!important;
  }
  .home-shell--lucy .lucy-page>.home-composer form{
    min-height:88px!important;
    padding:10px 55px 9px 11px!important;
  }
  .home-shell--lucy .lucy-page>.home-composer textarea{
    min-height:34px!important;
    font-size:10px!important;
    line-height:1.35!important;
  }
  .home-shell--lucy .lucy-page>.home-composer .home-composer__tools{
    margin-top:4px!important;
    gap:5px!important;
  }
  .home-shell--lucy .lucy-page>.home-composer .home-composer__tools button{
    min-height:32px!important;
    padding:0 7px!important;
  }
  .home-shell--lucy .lucy-page>.home-composer .home-composer__send{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    right:9px!important;
    bottom:12px!important;
  }
}

@media(max-width:360px){
  .home-shell--lucy .lucy-page{
    padding-left:9px!important;
    padding-right:9px!important;
    gap:7px!important;
  }
  .home-shell--lucy .lucy-page>.home-hero{
    height:112px!important;
    min-height:112px!important;
    max-height:112px!important;
    flex-basis:112px!important;
  }
  .home-shell--lucy .home-hero__content{
    height:112px!important;
    min-height:112px!important;
    padding-left:103px!important;
  }
  .home-shell--lucy .home-hero__portrait{
    width:103px!important;
    height:120px!important;
  }
  .home-shell--lucy .lucy-priority-card{
    min-height:52px!important;
  }
  .home-shell--lucy .lucy-quick-actions button{
    min-height:34px!important;
  }
}
