/* BIIZAA v6.9 — in-flow responsive shell; never portal to body and never overlay. */
.bacc-app.bacc-normal-shell{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;min-width:0!important;min-height:0!important;box-sizing:border-box!important;height:clamp(550px,calc(100dvh - 155px),1100px)!important;max-height:none!important;overflow:hidden!important;}
.bacc-app.bacc-normal-shell>.bacc-top,.bacc-app.bacc-normal-shell>.bacc-tabs-area,.bacc-app.bacc-normal-shell>.bacc-ws-bar{flex:0 0 auto!important;min-height:0!important}
.bacc-app.bacc-normal-shell>.bacc-messages{display:flex!important;flex:1 1 0!important;min-height:0!important;height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important;}
.bacc-app.bacc-normal-shell>.bacc-form{position:relative!important;inset:auto!important;bottom:auto!important;flex:0 0 auto!important;display:flex!important;flex-direction:column!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;background:#fff!important;z-index:1!important;box-sizing:border-box!important;}
.bacc-app.bacc-normal-shell .bacc-doc-details:not([open]) .bacc-doc-upload{display:none!important}
.bacc-app.bacc-normal-shell .bacc-doc-details summary{cursor:pointer;font:600 11px/1.4 Segoe UI,Arial,sans-serif;color:#295488;list-style-position:inside}
.bacc-app.bacc-normal-shell .bacc-doc-details[open] .bacc-doc-upload{max-height:120px;overflow-y:auto}
@media(max-width:767px){
 html body:has(.bacc-app) .entry-content,html body:has(.bacc-app) .wp-block-post-content{padding-left:0!important;padding-right:0!important;max-width:none!important;}
 html body .bacc-app.bacc-normal-shell{position:relative!important;inset:auto!important;top:auto!important;bottom:auto!important;z-index:auto!important;transform:none!important;float:none!important;clear:both!important;display:flex!important;flex-direction:column!important;column-count:1!important;grid-template-columns:none!important;width:100vw!important;max-width:100vw!important;min-width:0!important;height:var(--bacc-view-height,calc(100dvh - 90px))!important;min-height:420px!important;max-height:none!important;margin:0 0 12px calc(50% - 50vw)!important;padding:0!important;border-left:0!important;border-right:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important;}
 html body .bacc-app.bacc-normal-shell>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;grid-column:auto!important;float:none!important;}
 html body .bacc-app.bacc-normal-shell>.bacc-top{width:100%!important;padding:8px 11px!important;display:flex!important;flex-flow:row nowrap!important;gap:8px!important;align-items:center!important;}
 html body .bacc-app.bacc-normal-shell .bacc-title{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 html body .bacc-app.bacc-normal-shell .bacc-title strong{font-size:13px!important;line-height:1.25!important;}
 html body .bacc-app.bacc-normal-shell .bacc-balance-box{flex:0 1 auto!important;white-space:nowrap!important;font-size:10px!important;padding:5px 7px!important;}
 html body .bacc-app.bacc-normal-shell>.bacc-ws-bar,html body .bacc-app.bacc-normal-shell>.bacc-tabs-area{width:100%!important;display:flex!important;flex-flow:row nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;gap:5px!important;align-items:center!important;padding:5px 8px!important;-webkit-overflow-scrolling:touch!important;}
 html body .bacc-app.bacc-normal-shell .bacc-tabs,html body .bacc-app.bacc-normal-shell .bacc-tab-actions{width:max-content!important;min-width:max-content!important;display:flex!important;flex-wrap:nowrap!important;gap:5px!important;padding:0!important;}
 html body .bacc-app.bacc-normal-shell .bacc-tabs button,html body .bacc-app.bacc-normal-shell .bacc-tab-actions button{flex:0 0 auto!important;width:auto!important;white-space:nowrap!important;min-height:28px!important;padding:5px 8px!important;font-size:11px!important;}
 html body .bacc-app.bacc-normal-shell>.bacc-messages{width:100%!important;min-height:0!important;height:0!important;flex:1 1 0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:11px 9px 15px!important;gap:12px!important;}
 html body .bacc-app.bacc-normal-shell>.bacc-messages .bacc-msg{flex-shrink:0!important;min-width:0!important;overflow-wrap:anywhere!important;}
 html body .bacc-app.bacc-normal-shell>.bacc-messages .bacc-assistant{width:100%!important;max-width:100%!important;padding:7px 3px!important;}
 html body .bacc-app.bacc-normal-shell>.bacc-form{width:100%!important;flex:0 0 auto!important;display:flex!important;flex-direction:column!important;gap:5px!important;padding:9px 10px max(9px,env(safe-area-inset-bottom))!important;margin:0!important;border-top:1px solid #d8e3ef!important;border-radius:0!important;box-shadow:0 -2px 12px rgba(25,54,96,.06)!important;}
 html body .bacc-app.bacc-normal-shell>.bacc-form textarea{box-sizing:border-box!important;width:100%!important;height:58px!important;min-height:58px!important;max-height:110px!important;margin:0!important;padding:9px 11px!important;resize:vertical!important;font-size:14px!important;line-height:1.4!important;border-radius:11px!important;}
 html body .bacc-app.bacc-normal-shell .bacc-mode{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:5px!important;margin:0!important;min-width:0!important;}
 html body .bacc-app.bacc-normal-shell .bacc-mode label{font-size:10px!important;white-space:nowrap!important;}
 html body .bacc-app.bacc-normal-shell .bacc-mode select{min-width:90px!important;width:auto!important;min-height:29px!important;padding:4px 6px!important;font-size:11px!important;}
 html body .bacc-app.bacc-normal-shell .bacc-mode span{font-size:10px!important;flex:1 1 auto!important;min-width:0!important;line-height:1.2!important;}
 html body .bacc-app.bacc-normal-shell .bacc-foot{display:flex!important;align-items:center!important;flex-flow:row nowrap!important;gap:7px!important;margin:0!important;}
 html body .bacc-app.bacc-normal-shell .bacc-foot .bacc-status{flex:1 1 auto!important;min-width:0!important;font-size:10px!important;}
 html body .bacc-app.bacc-normal-shell .bacc-foot button[type=submit]{flex:0 0 auto!important;min-width:76px!important;min-height:32px!important;width:auto!important;padding:6px 10px!important;font-size:12px!important;margin:0!important;}
 html body .bacc-app.bacc-normal-shell .bacc-progress{margin:0!important;}
 html body .bacc-app.bacc-normal-shell .bacc-table-wrap{max-width:100%!important;overflow-x:auto!important;}
 html body .bacc-app.bacc-normal-shell img,html body .bacc-app.bacc-normal-shell svg{max-width:100%!important;height:auto!important;}
}

/* v7.0 compact chat composition: larger reading pane, fixed bottom controls */
@media (min-width:768px){
 html body .bacc-app.bacc-normal-shell{height:clamp(680px,calc(100dvh - 105px),1500px)!important;max-width:none!important;width:100%!important;margin-left:0!important;margin-right:0!important}
 html body .bacc-app.bacc-normal-shell>.bacc-messages{flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:15px 20px!important;gap:10px!important}
 html body .bacc-app.bacc-normal-shell>.bacc-messages .bacc-assistant{padding:5px 4px!important;font-size:14px!important;line-height:1.56!important}
 html body .bacc-app.bacc-normal-shell>.bacc-form{flex:0 0 auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;column-gap:10px!important;row-gap:6px!important;padding:9px 14px!important;overflow:visible!important}
 html body .bacc-app.bacc-normal-shell>.bacc-form>textarea{grid-column:1/-1!important;min-height:54px!important;height:54px!important;max-height:120px!important;padding:9px 12px!important;resize:vertical!important;font-size:13px!important;line-height:1.4!important}
 html body .bacc-app.bacc-normal-shell .bacc-doc-details{grid-column:1!important;grid-row:2!important;justify-self:start!important;margin:0!important;font-size:11px!important;min-width:0!important}
 html body .bacc-app.bacc-normal-shell .bacc-mode{grid-column:1!important;grid-row:3!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:7px!important;margin:0!important}
 html body .bacc-app.bacc-normal-shell .bacc-mode label{font-size:11px!important}
 html body .bacc-app.bacc-normal-shell .bacc-mode select{width:auto!important;min-height:29px!important;padding:4px 8px!important;font-size:11px!important}
 html body .bacc-app.bacc-normal-shell .bacc-mode span{font-size:10px!important}
 html body .bacc-app.bacc-normal-shell .bacc-foot{grid-column:2!important;grid-row:2/4!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:9px!important;margin:0!important}
 html body .bacc-app.bacc-normal-shell .bacc-foot .bacc-status{font-size:10px!important;max-width:150px!important;line-height:1.3!important}
 html body .bacc-app.bacc-normal-shell .bacc-foot button[type=submit]{min-height:37px!important;min-width:94px!important;padding:7px 13px!important;font-size:12px!important}
 html body .bacc-app.bacc-normal-shell .bacc-progress{grid-column:1/-1!important;margin:0!important}
}
@media(max-width:767px){
 html body .bacc-app.bacc-normal-shell>.bacc-form{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:6px!important;row-gap:5px!important;align-items:center!important;padding:7px 9px max(7px,env(safe-area-inset-bottom))!important;min-width:0!important}
 html body .bacc-app.bacc-normal-shell>.bacc-form>textarea{grid-column:1/-1!important;min-height:52px!important;height:52px!important;max-height:100px!important;padding:8px 10px!important;line-height:1.35!important;resize:vertical!important;margin:0!important}
 html body .bacc-app.bacc-normal-shell .bacc-doc-details{grid-column:1/-1!important;margin:0!important;max-width:100%!important;font-size:10px!important}
 html body .bacc-app.bacc-normal-shell .bacc-doc-details summary{font-size:10px!important;line-height:1.2!important}
 html body .bacc-app.bacc-normal-shell .bacc-mode{grid-column:1!important;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:5px!important;margin:0!important;width:100%!important;min-width:0!important}
 html body .bacc-app.bacc-normal-shell .bacc-mode label{font-size:10px!important;white-space:nowrap!important;line-height:1.1!important}
 html body .bacc-app.bacc-normal-shell .bacc-mode select{font-size:11px!important;min-width:75px!important;max-width:128px!important;width:auto!important;height:30px!important;min-height:30px!important;padding:3px 5px!important;line-height:1.1!important}
 html body .bacc-app.bacc-normal-shell .bacc-mode span{display:none!important}
 html body .bacc-app.bacc-normal-shell .bacc-foot{grid-column:2!important;display:flex!important;justify-content:flex-end!important;gap:0!important;margin:0!important;min-width:0!important}
 html body .bacc-app.bacc-normal-shell .bacc-foot .bacc-status{display:none!important}
 html body .bacc-app.bacc-normal-shell .bacc-foot button[type=submit]{height:32px!important;min-height:32px!important;min-width:74px!important;white-space:nowrap!important;padding:5px 9px!important;font-size:11px!important;border-radius:8px!important}
 html body .bacc-app.bacc-normal-shell .bacc-progress{grid-column:1/-1!important;margin:0!important}
 html body .bacc-app.bacc-normal-shell>.bacc-messages{flex:1 1 0!important;height:0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px 9px!important}
}
@media(max-width:355px){html body .bacc-app.bacc-normal-shell .bacc-mode label{font-size:9px!important}html body .bacc-app.bacc-normal-shell .bacc-mode select{min-width:69px!important;font-size:10px!important}html body .bacc-app.bacc-normal-shell .bacc-foot button[type=submit]{min-width:65px!important}}
