/* ScoutConnect V6.9.2 — conversation plein écran + fond scout */
.modal:has(.v49-chat-modal.v54-chat){
  padding:0!important;
  place-items:stretch!important;
  background:#f4f1e9!important;
  backdrop-filter:none!important;
}
.modal:has(.v49-chat-modal.v54-chat) .v49-chat-modal.v54-chat{
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  border-radius:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  margin:0!important;
  box-shadow:none!important;
}
.v54-chat .v49-chat-head{
  flex:0 0 auto!important;
  min-height:66px;
  padding:10px max(18px,calc((100vw - 1180px)/2))!important;
  background:rgba(255,255,255,.97)!important;
  box-shadow:0 1px 8px rgba(20,55,39,.08);
  z-index:4;
}
.v54-chat .v49-chat-scroll{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:0!important;
  width:100%!important;
  padding:18px max(18px,calc((100vw - 1120px)/2)) 24px!important;
  background-color:#f4efe4!important;
  background-image:linear-gradient(rgba(249,246,238,.48),rgba(249,246,238,.48)),url('./assets/scout-chat-pattern.webp')!important;
  background-repeat:repeat!important;
  background-size:835px 490px!important;
  background-position:center top!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
.v54-chat .v49-composer{
  flex:0 0 auto!important;
  width:100%!important;
  grid-template-columns:46px 42px minmax(240px,1fr) 48px!important;
  gap:8px!important;
  padding:10px max(18px,calc((100vw - 1180px)/2)) calc(10px + env(safe-area-inset-bottom))!important;
  background:rgba(255,255,255,.98)!important;
  border-top:1px solid rgba(22,74,50,.12)!important;
  box-shadow:0 -2px 12px rgba(20,55,39,.06);
  z-index:4;
}
.v54-chat .v49-composer textarea{
  width:100%!important;
  min-height:46px!important;
  max-height:140px!important;
  padding:12px 18px!important;
  border-radius:24px!important;
  background:#f7f7f4!important;
  border:1px solid #d9ded9!important;
  box-shadow:inset 0 1px 1px rgba(0,0,0,.02);
}
.v54-chat .v49-round,.v54-chat .v49-send{width:46px!important;height:46px!important}
.v54-chat .v54-stack{max-width:min(72%,680px)!important}
.v54-chat .v54-bubble{font-size:16px!important;padding:7px 10px 5px!important}
.v54-chat .v54-reply-draft{flex:0 0 auto;margin:0!important;border-radius:0!important;padding-left:max(18px,calc((100vw - 1120px)/2))!important;padding-right:max(18px,calc((100vw - 1120px)/2))!important}
@media(max-width:820px),(hover:none) and (pointer:coarse){
  .v54-chat .v49-chat-head{padding:calc(8px + env(safe-area-inset-top)) 10px 8px!important;min-height:60px}
  .v54-chat .v49-chat-scroll{padding:12px 8px 18px!important;background-size:620px auto!important}
  .v54-chat .v49-composer{grid-template-columns:42px 38px minmax(0,1fr) 44px!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important;gap:5px!important}
  .v54-chat .v49-round,.v54-chat .v49-send{width:42px!important;height:42px!important}
  .v54-chat .v49-composer textarea{min-height:42px!important;padding:10px 14px!important}
  .v54-chat .v54-stack{max-width:84%!important}
}
