/* Mobile document conversation: one viewport, one message scroller. Desktop is unchanged. */
@media (max-width:680px),(max-height:500px) and (max-width:1000px) {
 body.ot-document-chat-mobile .content{overflow:hidden!important}
 body.ot-document-chat-mobile .page.print-container{
  position:fixed!important;left:calc(var(--ot-doc-x,0px) + 8px);top:calc(var(--ot-doc-y,0px) + var(--ot-doc-top,70px));
  width:calc(var(--ot-doc-w,100vw) - 16px)!important;height:calc(var(--ot-doc-h,100dvh) - var(--ot-doc-top,70px) - max(8px,env(safe-area-inset-bottom)))!important;
  min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important;box-sizing:border-box;
 }
 body.ot-document-chat-mobile .card-main{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important;border-radius:16px!important}
 body.ot-document-chat-mobile .card-main>.detail-tabs[role=tablist]{position:static!important;top:auto!important;margin:0 0 8px!important;padding:3px!important;display:flex!important;flex-wrap:nowrap!important;flex:0 0 auto;gap:3px!important;width:100%!important;box-sizing:border-box;min-height:0!important}
 body.ot-document-chat-mobile .detail-tabs .d-tab{flex:1 1 0!important;min-width:0!important;padding:8px 5px!important;min-height:42px!important;font-size:13px!important;white-space:normal!important}
 body.ot-document-chat-mobile .detail-tabs .d-tab svg{display:none!important}
 body.ot-document-chat-mobile [data-chat-active=true]{display:flex!important;flex:1 1 0;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden}
 body.ot-document-chat-mobile [data-chat-active=true]>div{display:flex;flex:1 1 0;min-width:0;min-height:0}
 body.ot-document-chat-mobile .document-chat.document-chat{flex:1 1 0;min-width:0;min-height:0!important;height:100%!important;max-height:100%!important;margin:0!important;border-radius:16px;overflow:hidden!important;box-shadow:none;background:#fff}
 body.ot-document-chat-mobile .document-chat>header{padding:10px 12px 4px!important;display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;border:0!important}
 body.ot-document-chat-mobile .document-chat>header>.eyebrow,body.ot-document-chat-mobile .document-chat>header>p{display:none}
 body.ot-document-chat-mobile .document-chat>header h3{margin:0!important;font-size:16px!important;line-height:1.3;flex:1;min-width:0}
 body.ot-document-chat-mobile .document-chat>header small{flex-basis:100%}
 .ot-doc-help{font-size:12px!important;padding:6px 8px!important;min-height:40px!important;font-weight:600!important}
 body.ot-document-chat-mobile .document-chat .preparation{margin:0 12px!important;padding:0!important;gap:4px 8px!important;background:transparent!important;border:0!important;border-radius:0!important;font-size:12px;line-height:1.4}
 body.ot-document-chat-mobile .document-chat .preparation span{flex:1;min-width:0}
 body.ot-document-chat-mobile .document-chat .preparation button{flex:0 0 auto;max-width:48%;min-height:44px;font-size:11px;padding:6px 8px!important;border:0;background:transparent}
 body.ot-document-chat-mobile .document-chat .preparation small:last-child{display:none}
 body.ot-document-chat-mobile .ot-doc-suggestions{flex:0 0 auto;align-self:flex-start;margin:2px 12px;padding:5px 8px;min-height:40px;font-size:12px;font-weight:600;background:#f5f8ff}
 body.ot-document-chat-mobile .document-chat .suggestions{display:none!important}
 body.ot-document-chat-mobile .document-chat.ot-doc-ideas .suggestions{display:flex!important;flex-wrap:wrap!important;gap:5px!important;overflow:auto!important;max-height:30%;padding:4px 12px 8px!important;flex-shrink:1!important;min-height:0}
 body.ot-document-chat-mobile .document-chat .suggestions button{flex:1 1 100%!important;min-width:0;white-space:normal!important;font-size:12px;line-height:1.4;text-align:left;min-height:40px;padding:7px 10px!important}
 body.ot-document-chat-mobile .document-chat .messages{flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;padding:10px 12px!important;gap:10px;-webkit-overflow-scrolling:touch}
 body.ot-document-chat-mobile .document-chat .message{max-width:96%;padding:10px 12px;border-radius:14px;overflow-wrap:anywhere}
 body.ot-document-chat-mobile .document-chat .answer{font-size:14px;line-height:1.6}
 body.ot-document-chat-mobile .document-chat>.error{margin:4px 12px;font-size:12px;max-height:60px;overflow:auto;flex-shrink:0}
 body.ot-document-chat-mobile .document-chat>form{position:static!important;flex:0 0 auto!important;padding:8px!important;z-index:auto}
 body.ot-document-chat-mobile .document-chat>form>label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body.ot-document-chat-mobile .document-chat .composer{display:flex!important;flex-direction:row!important;align-items:flex-end!important;gap:6px!important}
 body.ot-document-chat-mobile .document-chat .composer textarea{flex:1;min-width:0;width:100%;height:52px!important;min-height:52px!important;max-height:52px!important;box-sizing:border-box;padding:8px 10px!important;line-height:1.4;font-size:16px!important;border-radius:12px}
 body.ot-document-chat-mobile .document-chat .composer button{flex:0 0 auto;min-width:64px!important;max-width:100px;min-height:48px;padding:8px!important;font-size:13px;white-space:normal;border-radius:12px}
 body.ot-document-chat-short .mobile-menu-btn,body.ot-document-chat-short .content>.topbar .user-card,body.ot-document-chat-short .ot-language-trigger{visibility:hidden!important}
 body.ot-document-chat-short .document-chat>header,body.ot-document-chat-short .ot-doc-suggestions,body.ot-document-chat-short .document-chat .suggestions{display:none!important}
 body.ot-document-chat-short .document-chat .preparation{font-size:11px}
 body.ot-document-chat-short .detail-tabs .d-tab{min-height:40px!important;padding-block:5px!important}
 body.ot-document-chat-mobile .document-chat .excerpt-dialog{max-width:calc(var(--ot-doc-w,100vw) - 16px)!important;max-height:calc(var(--ot-doc-h,100dvh) - 16px)!important;overflow:auto;box-sizing:border-box}
}
.ot-doc-help,.ot-doc-suggestions{display:none}
body.ot-document-chat-mobile .ot-doc-help,body.ot-document-chat-mobile .ot-doc-suggestions{display:block}
body.ot-document-chat-mobile .ot-doc-suggestions[hidden]{display:none!important}
body.ot-document-chat-short .ot-doc-suggestions{display:none!important}
