/* V239: Site-wide resizable AI transcript areas. Keep white writing inputs resizable too.
   A message history is in normal layout flow; enlarging it moves the subsequent material and footer down. */
html body :is(#assistantChatMessages,#landingChatMessages,#annoChatMessages,#pracChatMessages,#assembleChatMessages,#ddmChatMessages,#planChatMessages,#essayChatMessages,#planeAIMessages,#planeChatMessages,#popoutChatMessages,#deepDiveMessages,#cmpMessages,#cbAiMessages,#coachMessages,#aiChatMessages,#resourceChatMessages,#plane1Messages,#plane2Messages,#plane__EA__Messages,.film-ai-messages,.io-independent-messages,#hlDialogue .messages).le-ai-chat-resizable{
  display:block!important;box-sizing:border-box!important;
  min-height:120px!important;max-height:none!important;
  flex:none!important;flex-shrink:0!important;
  overflow:auto!important;overflow-x:hidden!important;
  resize:vertical!important;position:relative!important;
  scrollbar-gutter:stable!important;
}
/* A discreet visible grip supplements native resizing where old inline CSS had !important heights. */
html body .le-ai-chat-resizable{background-image:linear-gradient(135deg,transparent 0 51%,#9b79ae 51% 61%,transparent 61% 69%,#9b79ae 69% 77%,transparent 77%)!important;
  background-size:18px 18px!important;background-position:right bottom!important;background-repeat:no-repeat!important;
  padding-bottom:20px!important;
}
/* Remove fixed chat heights and clipping from surrounding normal-flow panels. */
html:has(.le-ai-chat-resizable), body:has(.le-ai-chat-resizable){height:auto!important;min-height:100vh!important;overflow-x:hidden!important}
body:has(.le-ai-chat-resizable) :is(.ai-chat-box,.ai-chat-section,.deep-dive-ai,.cmp-ai,.cb-landing-ai,.film-ai-box,.plane-unified-ai,.essay-feedback-panel,.hl-ai-slot,.ai-coach-station,.ai-chat-wrapper){height:auto!important;max-height:none!important;overflow:visible!important;min-width:0!important}
body:has(.le-ai-chat-resizable) .workspace-container:not(.collapsed){height:auto!important;max-height:none!important;overflow:visible!important}
body:has(.le-ai-chat-resizable) :is(.workspace-panel:not(.hidden),.workspace-panel:not([hidden]),.panel-body,.activity-area):has(.le-ai-chat-resizable){height:auto!important;max-height:none!important;overflow:visible!important;min-height:0!important}
body:has(.le-ai-chat-resizable) .essay-conversation-window:has(.le-ai-chat-resizable){height:auto!important;max-height:none!important;overflow:visible!important;min-height:0!important;display:flex!important;flex-direction:column!important}
body:has(.le-ai-chat-resizable) .essay-conversation-window .le-ai-chat-resizable{flex:none!important;min-height:120px!important;max-height:none!important;overflow-y:auto!important}
body:has(.le-ai-chat-resizable) #essayChatSection:has(.le-ai-chat-resizable){height:auto!important;overflow:visible!important}
body main .workspace-container .workspace-panel.work:not(.hidden):has(.le-ai-chat-resizable){height:auto!important;max-height:none!important;overflow:visible!important;flex-shrink:0!important}
body main .workspace-container .hl-panel-working:has(.le-ai-chat-resizable){height:auto!important;max-height:none!important;overflow:visible!important}
body .site-footer{position:relative!important;bottom:auto!important;clear:both!important;flex-shrink:0!important}
/* Do not override the visible state of ordinary assessment accordion panels. */
/* The floating pop-out coaches retain their own resize handles and their fixed overlays. */
:where(.popout-coach,.film-coach,.ai-chat-widget):not([data-landing-active="true"]) .le-ai-chat-resizable{
 min-height:110px!important;
}
/* HL Essay: original editable IDEA fields occupy their cards' headings, not a duplicate form row. */
body main .hl-idea-card>.hl-editable-idea-header{display:grid!important;grid-template-columns:auto auto minmax(0,1fr)!important;align-items:center!important;gap:.65rem!important}
body main .hl-idea-card>.hl-editable-idea-header .hl-field{grid-column:3!important;margin:0!important;padding:0!important;min-width:0!important}
body main .hl-idea-card>.hl-editable-idea-header .field-resource-heading{display:none!important}
body main .hl-idea-card>.hl-editable-idea-header textarea{display:block!important;width:100%!important;min-height:85px!important;max-height:none!important;resize:vertical!important;margin:0!important;color:#253544!important;background:white!important}
body main .hl-idea-card>.hl-editable-idea-header h3{font-size:1rem!important;min-width:17px!important}
body main .hl-idea-card:nth-child(1)>.hl-editable-idea-header{background:#55276f!important;color:white!important;border-radius:7px!important;padding:.7rem!important}
body main .hl-idea-card:nth-child(2)>.hl-editable-idea-header{background:#9060a9!important;color:white!important;border-radius:7px!important;padding:.7rem!important}
body main .hl-idea-card>.hl-editable-idea-header h3{color:white!important}
body main .hl-idea-card>.hl-editable-idea-header .idea-drag-handle{background:rgba(255,255,255,.16)!important;color:white!important}
@media(max-width:650px){body main .hl-idea-card>.hl-editable-idea-header{grid-template-columns:auto auto minmax(0,1fr)!important;gap:.45rem!important}body main .hl-idea-card>.hl-editable-idea-header .hl-field{grid-column:1/-1!important}}
