/* BATYR PRO 16 — Mobile messenger: one visible screen per view, pinned composer. */
.bp16-back{display:none;align-items:center;justify-content:center;border:0;background:#f6ecdb;color:#493617;border-radius:13px;min-width:39px;height:39px;font-size:22px;font-weight:800;flex-shrink:0;cursor:pointer}
.bp16-chat-label{display:none;font-size:11px;letter-spacing:1px;font-weight:850;color:#ac8746;margin:4px 1px 10px;text-transform:uppercase}
.bp16-chat-tip{border:1px solid #f0dfbd;border-radius:13px;background:#fff8e9;padding:10px 12px;color:#705831;font-size:12px;line-height:1.5;margin:0 0 11px}
.bp16-chat-tip b{font-weight:900;color:#5e471d}
.bp16-connection-hint{font-size:12px;color:#6e6255;margin:9px auto;line-height:1.55;text-align:center;max-width:360px}
.bp16-wait-indicator{display:inline-flex;gap:7px;align-items:center;font-size:11px;color:#846c4c}
.bp16-wait-indicator:before{content:'';height:7px;width:7px;border-radius:50%;background:#ddac50;box-shadow:0 0 0 3px #edd09669}
.bp16-call-retry{border-color:#cfac6e!important;background:#f6d998!important;color:#423011!important}
.bp16-call-card .bp15-video-stack{min-height:160px}
.bp16-offline{display:none;background:#e9a36d;color:#382a1c;font-size:11px;text-align:center;padding:6px}
.bp16-offline.visible{display:block}
.bp14-bubble{scroll-margin-bottom:16px}
.bp14-send-row textarea{touch-action:pan-y}
.bp14-send-row textarea::placeholder{color:#aa9d8b}
.bp16-chat-fab{display:none}
@media(max-width:740px){
  body.bp16-chat-inbox .bp14-shell{display:block;min-height:0}
  body.bp16-chat-inbox .bp14-sidebar{display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;gap:3px;padding:8px 9px}
  body.bp16-chat-inbox .bp14-card{display:none}
  body.bp16-chat-inbox .bp14-group{display:block;margin:12px 11px 5px}
  body.bp16-chat-inbox .bp14-room{width:100%;max-width:none;min-width:0;display:flex;gap:11px;padding:13px 11px;min-height:61px;border-bottom:1px solid #f4eee5;border-radius:12px}
  body.bp16-chat-inbox .bp14-room-icon{height:44px;width:44px;font-size:22px;border-radius:16px}
  body.bp16-chat-inbox .bp14-room-title{font-size:14px;max-width:none;white-space:normal}
  body.bp16-chat-inbox .bp14-room-caption{font-size:11px;line-height:1.35;margin-top:3px}
  body.bp16-chat-inbox .bp14-room-meta{flex:1}
  body.bp16-chat-inbox .bp14-room.active{background:#fff9ef;border-color:#f2e2c8}
  body.bp16-chat-inbox .bp14-bubble-unread{font-size:11px;height:22px;min-width:22px}
  body.bp16-chat-inbox .bp16-chat-label{display:block}

  /* Conversation becomes a viewport-sized pane. No accidental nested-page scrolling. */
  body.bp16-chat-open .bp14-shell{
    display:block;position:fixed;top:var(--bp16-vtop,0px);left:0;right:0;
    width:100%;height:var(--bp16-vvh,100dvh);min-height:0;
    z-index:90;gap:0;margin:0;padding:0;background:#fff;
    overflow:hidden;overscroll-behavior:contain;
  }
  body.bp16-chat-open .bp14-sidebar{display:none}
  body.bp16-chat-open .bp14-card{
    display:flex;flex-direction:column;box-shadow:none;border:0;border-radius:0;
    width:100%;height:100%;max-height:100%;overflow:hidden;
  }
  body.bp16-chat-open .bp14-room-head{
    flex:0 0 auto;min-height:67px;padding:10px 12px;
    gap:10px;box-shadow:0 2px 11px #34230c0c;z-index:1;
  }
  body.bp16-chat-open .bp14-room-head>div:first-of-type{min-width:0;flex:1}
  body.bp16-chat-open .bp14-room-head strong{font-size:15px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block;max-width:52vw}
  body.bp16-chat-open .bp14-room-head p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}
  body.bp16-chat-open .bp14-room-head .bp14-icon{height:38px;width:38px;flex:none}
  body.bp16-chat-open .bp16-back{display:flex}
  body.bp16-chat-open .bp14-messages{
    display:flex;flex:1 1 auto;height:auto!important;min-height:0!important;max-height:none!important;
    overflow-y:auto;-webkit-overflow-scrolling:touch;
    padding:16px 11px 18px;scrollbar-width:thin;overscroll-behavior:contain;
  }
  body.bp16-chat-open #b14-reply-banner,body.bp16-chat-open .bp14-reply-banner{flex:0 0 auto}
  body.bp16-chat-open .bp15-tools{
    flex:0 0 auto;display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;
    padding:7px 9px;gap:6px;min-height:49px;
  }
  body.bp16-chat-open .bp15-tools::-webkit-scrollbar{display:none}
  body.bp16-chat-open .bp15-tools button{white-space:nowrap;min-width:max-content;min-height:34px;border-radius:11px;font-size:11px;padding:7px 10px}
  body.bp16-chat-open .bp14-send-wrap{
    flex:0 0 auto;min-height:66px;z-index:2;padding:10px 10px max(12px,env(safe-area-inset-bottom));
    box-shadow:0 -5px 18px #30251a0b;border-top:1px solid #e7d8c3;
  }
  body.bp16-chat-open .bp14-send-help{display:none}
  body.bp16-chat-open .bp14-send-row{align-items:center;gap:9px}
  body.bp16-chat-open .bp14-send-row textarea{font-size:16px;min-height:45px;max-height:112px;padding:11px 13px;line-height:1.35;border-radius:19px}
  body.bp16-chat-open .bp14-send-btn{min-width:46px;min-height:45px;border-radius:16px;font-size:20px}
  body.bp16-chat-open .bp14-bubble{max-width:89%}
  body.bp16-chat-open .bp14-empty{margin:auto;align-self:center;padding:22px 10px}
  body.bp16-chat-open #nav{display:none}
  body.bp16-chat-open .tabbar{display:none!important}
  body.bp16-chat-open .bp15-callbuttons{gap:4px}
  body.bp16-chat-open .bp15-callbuttons button{width:38px;height:38px}
  body.bp16-chat-open .bp16-offline{flex:none}
}
@media(max-width:350px){
 body.bp16-chat-open .bp14-room-head{gap:5px;padding:9px 7px}
 body.bp16-chat-open .bp15-callbuttons button{width:34px;height:34px;font-size:16px}
 body.bp16-chat-open .bp14-room-head strong{max-width:38vw}
}

/* Faster, more focused inbox: show conversations before long instructions. */
@media(max-width:740px){
 body.bp16-chat-inbox #main>.panel:first-child{padding:13px 15px;margin-bottom:9px}
 body.bp16-chat-inbox .bp14-sub{display:none}
 body.bp16-chat-inbox .bp14-title{font-size:20px;margin:4px 0 0}
 body.bp16-chat-inbox .bp15-create{padding:9px 11px;margin-bottom:9px}
 body.bp16-chat-inbox .bp15-create label{font-size:12px}
 body.bp16-chat-inbox .bp14-month-row{margin-bottom:10px}
}
