/* V236 - shared presentation contract, not a second chatbot implementation.
   Backend assessment context, state and existing send handlers are preserved. */
:root{--unified-ai-edge:#74428b;--unified-ai-surface:#f8f5fb;--unified-ai-ink:#1e2e3e;--unified-ai-line:#cfbfda}
:where(.ai-chat-section,.ai-chat-box,.essay-feedback-panel,.ai-chat-widget,.plane-unified-ai,.deep-dive-ai,.cb-landing-ai,.cmp-ai,.film-ai-box,.film-coach,.io-independent-chat){
  box-sizing:border-box;border:1px solid var(--unified-ai-line)!important;border-top:3px solid var(--unified-ai-edge)!important;
  border-radius:12px!important;background:var(--unified-ai-surface)!important;color:var(--unified-ai-ink);box-shadow:none!important
}
:where(.ai-header,.ai-chat-header,.deep-dive-ai-head,.cb-landing-ai-head,.film-ai-head,.plane-unified-ai-title,.cmp-ai>h2){
  font-family:inherit!important;font-size:clamp(.96rem,1.15vw,1.15rem)!important;font-weight:800!important;
  line-height:1.45!important;color:var(--unified-ai-ink)!important;letter-spacing:0!important;text-transform:none!important
}
:where(.ai-header,.ai-chat-header,.deep-dive-ai-head,.cb-landing-ai-head,.film-ai-head){background:transparent!important;box-shadow:none!important}
.ai-header .ai-icon,.ai-header>span[aria-hidden="true"],.film-ai-head .ai-icon,.deep-dive-ai-mark{display:none!important}
:where(#assistantChatMessages,#landingChatMessages,#annoChatMessages,#pracChatMessages,#planChatMessages,#ddmChatMessages,#essayChatMessages,#planeAIMessages,#deepDiveMessages,#cbAiMessages,#cmpMessages,#coachMessages,#aiChatMessages,.film-ai-messages,.io-independent-messages,.plane-ai-messages){
 display:block!important;visibility:visible!important;min-height:112px!important;background:#fff!important;
 border:1px solid #d9dce4!important;border-radius:8px!important;box-sizing:border-box!important
}
:where(.ai-chat-section,.ai-chat-box,.essay-feedback-panel,.ai-chat-widget,.plane-unified-ai,.deep-dive-ai,.cb-landing-ai,.cmp-ai,.film-ai-box,.film-coach,.io-independent-chat) textarea{
 background:#fff!important;color:#243447!important;border:1px solid #bfc5d1!important;
 border-radius:8px!important;font:inherit!important;line-height:1.55!important;box-sizing:border-box!important;
 max-width:100%!important;resize:vertical!important
}
:where(.ai-chat-section,.ai-chat-box,.essay-feedback-panel,.ai-chat-widget,.plane-unified-ai,.deep-dive-ai,.cb-landing-ai,.cmp-ai,.film-ai-box,.film-coach,.io-independent-chat) textarea::placeholder{
 color:#657487!important;opacity:1!important
}
/* Do not change controls' semantics; normalize the primary Send button appearance. */
:where(.ai-chat-section,.ai-chat-box,.essay-feedback-panel,.ai-chat-widget,.plane-unified-ai,.deep-dive-ai,.cb-landing-ai,.cmp-ai,.film-ai-box,.film-coach,.io-independent-chat)
 :is(button[id$="Send"],button[id="planeAISend"],button.film-ai-send,button.deep-dive-ai-send,button.cb-landing-ai-send,button.cmp-send){
 background:#63377d!important;color:#fff!important;border:1px solid #63377d!important;border-radius:7px!important;
 font:inherit!important;font-weight:750!important;cursor:pointer!important
}
/* Conversations are never collapsible; assessment navigation sections remain collapsible. */
:where(.ai-chat-section,.ai-chat-box,.essay-feedback-panel,.ai-chat-widget,.plane-unified-ai,.deep-dive-ai,.cb-landing-ai,.cmp-ai,.film-ai-box,.film-coach,.io-independent-chat) :is(.messages,.chat-input-area,.ai-chat-body){visibility:visible!important}
/* Paper 2 authorial-choice categories already belong to the method Deep Dive.
   Editors remain assigned to their IDEA and retain their saved drafts. */
#panelPlane .plane-pair-card[data-idea-colour="one"]>.plane-card-summary{
 background:#663c83!important;color:#fff!important;border-color:#663c83!important
}
#panelPlane .plane-pair-card[data-idea-colour="two"]>.plane-card-summary{
 background:#245681!important;color:#fff!important;border-color:#245681!important
}
#panelPlane .plane-extra-card[data-idea-colour="extra"]>.plane-card-summary{
 background:#25675c!important;color:#fff!important;border-color:#25675c!important
}
#panelPlane details.plane-supporting-evidence>summary{
 background:#f3e7c9!important;color:#614d2a!important;border:1px solid #d8c08a!important;border-radius:7px!important
}
#panelPlane .plane-pair-card[data-idea-colour="one"]{border-color:#8e68aa!important}
#panelPlane .plane-pair-card[data-idea-colour="two"]{border-color:#729ac0!important}
#panelPlane .plane-extra-card[data-idea-colour="extra"]{border-color:#75a99d!important}
#panelPlane .plane-pair-card[data-idea-colour="two"] .plane-final-ea-editor{border-left-color:#245681!important;background:#ebf2fa!important}
#panelPlane .plane-extra-card[data-idea-colour="extra"] .plane-final-ea-editor{border-left-color:#25675c!important;background:#eaf6f1!important}
#panelPlane .plane-unified-ai{background:var(--unified-ai-surface)!important;border-color:var(--unified-ai-line)!important;border-top-color:var(--unified-ai-edge)!important}
#panelPlane .plane-unified-ai-title{margin:0 0 .7rem!important}
@media(max-width:700px){:where(.ai-header,.ai-chat-header,.deep-dive-ai-head,.cb-landing-ai-head,.film-ai-head,.plane-unified-ai-title,.cmp-ai>h2){font-size:.96rem!important;overflow-wrap:anywhere!important}}

/* JS-created IO sub-chats use the same title typography as the main coach. */
.io-independent-chat-header h3{font-family:inherit!important;font-weight:800!important;font-size:clamp(.96rem,1.15vw,1.15rem)!important;line-height:1.45!important;color:#1e2e3e!important;margin:0!important;letter-spacing:0!important}
.io-independent-chat-header{background:transparent!important}
:where(.cmp-ai,.deep-dive-ai,.cb-landing-ai,.io-independent-chat,.film-ai-box,.ai-chat-widget,.ai-chat-section) :is(button.cmp-ai-send,button.io-chat-send,button.film-ai-send,button.ai-send,button.chat-send,button.send-btn){background:#63377d!important;color:#fff!important;border:1px solid #63377d!important;border-radius:7px!important}

/* JS-created IO sub-chats use the same title typography as the main coach. */
.io-independent-chat-header h3{font:800 clamp(.96rem,1.15vw,1.15rem)/1.45 inherit!important;color:#1e2e3e!important;margin:0!important;letter-spacing:0!important}
.io-independent-chat-header{background:transparent!important}
:where(.cmp-ai,.deep-dive-ai,.cb-landing-ai,.io-independent-chat,.film-ai-box,.ai-chat-widget,.ai-chat-section) :is(button.cmp-ai-send,button.io-chat-send,button.film-ai-send,button.ai-send,button.chat-send,button.send-btn){background:#63377d!important;color:#fff!important;border:1px solid #63377d!important;border-radius:7px!important}
