/* CP388: app language-chat viewport: keep the composer above the iOS/Android keyboard */
body.conversation-open{overflow:hidden}
body.conversation-open #language-app{
 position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;
 width:100%!important;height:var(--cp388-language-height,100dvh)!important;
 max-height:100dvh;min-height:0!important;display:flex!important;flex-direction:column;
 overflow:hidden!important;box-sizing:border-box
}
body.conversation-open #conversation{
 flex:1 1 auto!important;min-height:0!important;height:auto!important;
 width:100%;max-width:none;margin:0!important;display:flex!important;flex-direction:column
}
body.conversation-open #notice{
 flex:0 0 auto;max-height:58px;overflow-y:auto;line-height:1.3;box-sizing:border-box;
 padding:8px 12px
}
body.conversation-open .chat-head{flex:0 0 auto;min-height:64px;padding:9px 12px}
body.conversation-open .chat-head>div{min-width:0;overflow:hidden}
body.conversation-open #timeline{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
body.conversation-open #chat-tools{flex:0 0 auto;max-width:100%;overflow-x:auto}
body.conversation-open .focus-note{flex:0 0 auto;max-height:75px;overflow-y:auto}
body.conversation-open .composer-area{
 flex:0 0 auto;position:relative;z-index:12;min-width:0;
 padding:8px 10px max(8px,env(safe-area-inset-bottom));background:#f5f8f6;
 border-top:1px solid #dbe4df
}
body.conversation-open #compose{display:flex;width:100%;min-width:0;align-items:flex-end}
body.conversation-open #message{
 display:block;flex:1 1 auto;min-width:0;width:1%;font-size:16px;min-height:42px;
 max-height:110px;line-height:1.35;resize:none;padding:10px 7px;
 appearance:none;-webkit-appearance:none;touch-action:auto
}
body.conversation-open #compose .icon,body.conversation-open #compose .round{flex:0 0 42px}
body.conversation-open .response-mode{margin-top:4px}
body.conversation-open .top{display:none!important}
.chefe-native body.conversation-open .native-nav{display:none!important}
.chefe-native body.conversation-open{padding:0!important}
body.conversation-open #draft-translation{max-height:25dvh;overflow:auto}
body.conversation-open :focus{scroll-margin-bottom:20px}
@media(max-width:400px){
 body.conversation-open #compose{gap:1px;padding:5px}
 body.conversation-open #compose .icon,body.conversation-open #compose .round{flex-basis:38px;min-width:38px;width:38px}
 body.conversation-open #message{padding:8px 3px}
 body.conversation-open #chat-tools{padding:6px}
 body.conversation-open #chat-tools button{font-size:11px;padding:7px 8px}
}
@media(prefers-reduced-motion:reduce){body.conversation-open #timeline{scroll-behavior:auto}}
