/* #86/A: use actual flow height, including Preview banners, never a fixed header subtraction. */
.app-body:has(> #preview-banner) > .app-header {top:var(--preview-banner-height,0px)}
body.conversation-page {height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
body.conversation-page > :not(.app-main) {flex-shrink:0}
/* The inherited auto side margins otherwise shrink this flex item to its
   content: short and long conversations get different desktop column widths. */
body.conversation-page > .app-main {flex:1;min-height:0;min-width:0;width:100%;box-sizing:border-box;height:auto;display:flex;flex-direction:column;overflow:hidden}
body.conversation-page .workspace-back,body.conversation-page .workspace-layout-controls,body.conversation-page .manager-mobile-tabs {flex-shrink:0}
body.conversation-page .conversation-workspace--manager {flex:1;min-height:0;height:auto;min-width:0;width:100%;overflow:hidden}
body.conversation-page .thread-panel {display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden}
body.conversation-page .thread-panel > :not(.message-history) {flex-shrink:0}
body.conversation-page .thread-panel .message-history {flex:1 1 48px;min-height:48px;overflow:auto}
body.conversation-page .thread-panel .workspace-client-head {flex:0 1 auto;min-height:0;max-height:42%;overflow:auto}
body.conversation-page .thread-panel .composer {display:flex;flex-direction:column;flex:0 1 auto;min-height:120px;max-height:65%;overflow:hidden}
body.conversation-page .thread-panel .composer > :not(.composer-attachment-previews) {flex-shrink:0}
body.conversation-page .thread-panel .composer-attachment-previews {flex:0 1 auto;min-height:0;max-height:120px;overflow:auto}
body.conversation-page .thread-panel .composer:has([data-draft-attachment-list]:not([hidden])) {min-height:min(230px,65%)}
body.conversation-page .thread-panel [data-draft-attachment-list]:not([hidden]) {min-height:40px}
body.conversation-page .thread-panel .composer textarea {max-height:clamp(38px,10dvh,112px)}
body.conversation-page .manager-customer-details {min-height:0;max-height:60%;overflow:auto;flex-shrink:0}
[data-effective-recipient] {grid-column:1/-1;font-size:12px;overflow-wrap:anywhere}
.workspace-external-change {padding:6px 9px;color:#8a3442;background:#fff0f2;font-size:12px}
@media(min-width:701px) and (max-width:1180px){
 body.conversation-page .conversation-workspace--manager {overflow:auto;grid-template-rows:var(--workspace-frame-height,70dvh) auto}
 body.conversation-page .workspace-left-column,body.conversation-page .thread-panel {height:100%;min-height:0}
 body.conversation-page .workspace-right-column {height:auto;max-height:var(--workspace-frame-height,70dvh);overflow:auto}
}
@media(max-width:700px){
 body.conversation-page .conversation-workspace--manager {min-height:0}
 body.conversation-page .conversation-workspace[data-mobile-pane] > .thread-panel,
 body.conversation-page .conversation-workspace[data-mobile-pane] > .workspace-left-column,
 body.conversation-page .conversation-workspace[data-mobile-pane] > .workspace-right-column {height:100%;min-height:0;overflow:auto}
 body.conversation-page .conversation-workspace[data-mobile-pane] > .thread-panel {overflow:hidden}
}
