
/* Chatbot v0.9.5: layout and keyboard-safe full-screen support. */
.dfchat .dfchat-panel {grid-template-rows:auto auto minmax(0,1fr) auto auto auto;}
.dfchat .dfchat-head-actions {align-items:center;}
.dfchat .dfchat-expand {display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--df-line, #e6e9ed);border-radius:50%;background:#f3f4f6;color:#111827;font-size:20px;cursor:pointer;}
.dfchat .dfchat-source {align-self:flex-start;padding:0 10px;margin-top:-6px;font-size:11px;line-height:1.45;color:var(--df-muted,#667085);}
.dfchat .dfchat-messages {min-height:0;overscroll-behavior:contain;}
.dfchat .dfchat-form {position:relative;z-index:2;}
.dfchat .dfchat-form textarea {max-height:160px;}
body.dfchat-page-open {overflow:hidden!important;}
@media(min-width:768px) {
  body .dfchat.dfchat-maximized .dfchat-panel {position:fixed!important;inset:18px!important;left:18px!important;right:18px!important;top:18px!important;bottom:18px!important;width:auto!important;height:auto!important;max-width:none!important;min-height:0!important;border-radius:22px!important;z-index:2147482000!important;box-shadow:0 0 0 100vmax rgba(2,10,22,.66),0 30px 90px rgba(0,0,0,.2)!important;}
  .dfchat.dfchat-maximized .dfchat-msg {max-width:min(80%,800px);}
  .dfchat.dfchat-maximized .dfchat-messages {padding-left:max(22px,calc((100% - 1060px)/2));padding-right:max(22px,calc((100% - 1060px)/2));}
}
@media(max-width:767px) {
  body .dfchat.dfchat-open .dfchat-panel {position:fixed!important;inset:var(--dfchat-visual-top,0px) 0 auto 0!important;width:100vw!important;max-width:100vw!important;height:var(--dfchat-visual-height,100dvh)!important;max-height:none!important;min-height:0!important;margin:0!important;border:none!important;border-radius:0!important;box-shadow:none!important;z-index:2147482000!important;}
  .dfchat .dfchat-expand {display:none!important;}
  .dfchat .dfchat-messages {padding-bottom:20px;}
  .dfchat .dfchat-suggestions {max-height:108px;overflow-x:auto;overflow-y:auto;}
  .dfchat .dfchat-form textarea {font-size:16px!important;}
  .dfchat .dfchat-head {padding-top:max(14px,env(safe-area-inset-top))!important;}
  .dfchat .dfchat-foot {padding-bottom:max(8px,env(safe-area-inset-bottom))!important;}
}
.dfchat .dfchat-expand:focus-visible {outline:2px solid var(--df-red,#E60021);outline-offset:2px;}

.dfchat.dfchat-open {z-index:2147483000!important;}

/* Explicit grid placement keeps the conversation as the expanding middle row, even if context is hidden. */
.dfchat .dfchat-panel{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto minmax(0,1fr) auto auto auto!important;grid-template-areas:"header" "context" "conversation" "prompts" "composer" "legal"!important;}
.dfchat .dfchat-head{grid-area:header;min-width:0;}
.dfchat .dfchat-context{grid-area:context;min-width:0;}
.dfchat .dfchat-messages{grid-area:conversation;min-width:0;min-height:0;overflow-y:auto;}
.dfchat .dfchat-suggestions{grid-area:prompts;min-height:0;}
.dfchat .dfchat-form{grid-area:composer;min-width:0;}
.dfchat .dfchat-foot{grid-area:legal;min-width:0;}
.dfchat .dfchat-form .screen-reader-text {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
