/* A single scrollable transcript and reachable composer on desktop and mobile. */
#ed-ki[data-flow="conversation"] > :not(#ai-description):not(#setup-conversation) { display: none !important; }
#ed-ki[data-flow="conversation"] { padding: 0; border: 0; min-width: 0; }
#ed-ki[data-flow="conversation"] #ai-description { margin: 0 0 10px; }
#ed-ki[data-flow="conversation"] #ai-description > summary { display: list-item; }
#setup-dialog:has(#ed-ki[data-flow="conversation"]:not([hidden])) { padding: 12px; }
#setup-dialog:has(#ed-ki[data-flow="conversation"]:not([hidden])) .setups-editor { padding: 0; }
#setup-conversation { display: flex; flex-direction: column; min-width: 0; gap: 10px; }
#setup-conversation[hidden] { display: none; }
#setup-chat-log { overflow-y: auto; overscroll-behavior: contain; max-height: 49dvh; padding: 4px; }
.setup-chat-message { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 14px; border-radius: 14px; margin-bottom: 12px; max-width: 92%; font-size: 15px; line-height: 1.5; background: #232733; }
.setup-chat-message.user { margin-left: auto; background: #39394b; }
.setup-chat-message details { margin-top: 16px; padding-top: 12px; border-top: 1px solid #46495b; white-space: normal; }
.setup-chat-message details summary { cursor: pointer; color: #bfc4d2; min-height: 32px; }
.setup-chat-message details > div { white-space: pre-wrap; padding-top: 12px; font-size: 14px; }
#setup-chat-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#setup-chat-actions .btn { white-space: normal; text-align: left; min-height: 44px; max-width: 100%; }
.setup-chat-compose { display: flex; gap: 8px; align-items: flex-end; }
#setup-conversation[data-input-hidden] .setup-chat-compose { display: none; }
#setup-chat-input { flex: 1; min-width: 0; min-height: 52px; max-height: 130px; resize: vertical; padding: 12px; border: 1px solid #55566b; border-radius: 10px; background: #303447; color: #eee; font: inherit; }
#setup-chat-send { min-height: 48px; }
#setup-chat-status { font-size: 14px; margin: 0; }
#setup-chat-status:empty { display: none; }
.setup-chat-review { overflow-wrap: anywhere; line-height: 1.5; padding: 4px 12px; }
.setup-chat-review summary { cursor: pointer; padding-block: 6px; }
.setup-chat-review details > div { white-space: pre-wrap; }
.setup-chat-review li + li { margin-top: 6px; }
#setup-chat-actions .setup-secondary { background: transparent; color: inherit; border: 1px solid #595d70; }
@media (max-width: 600px) {
  #setup-chat-log { max-height: max(120px, calc(100dvh - 340px)); }
  .setup-chat-message { max-width: 96%; font-size: 15px; }
}
