.conversation-inner{position:relative}
.conversation-inner>.dina-copilot{display:none!important}
.conversation-inner>.dina-copilot.chat-ai-open{display:block!important;position:absolute;z-index:28;left:8px;right:8px;bottom:calc(var(--chat-composer-height,108px) + 8px);max-height:min(50dvh,440px);overflow:auto;margin:0;box-shadow:0 12px 28px #0008}
.conversation-inner:has(>.dina-copilot):has(>.chat-visible-labels){grid-template-rows:auto auto minmax(0,1fr) auto!important}
.conversation-inner:has(>.dina-copilot):has(>.chat-visible-labels)>.composer{grid-row:4!important}
.conversation-inner:has(>.dina-copilot):not(:has(>.chat-visible-labels)){grid-template-rows:auto minmax(0,1fr) auto!important}
.conversation-inner:has(>.dina-copilot):not(:has(>.chat-visible-labels))>.composer{grid-row:3!important}
.composer .bot-conversation-bar{display:none!important}
.composer-tools{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;overflow-x:auto}
html body .chat-open #composer.tools-open .composer-tools{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto!important}
html body .chat-open #composer.tools-open .composer-tools>.composer-tool{width:auto!important;max-width:none!important;flex:0 0 auto!important}
.composer-tools>.composer-tool{flex:0 0 auto;width:auto!important;max-width:none}
.composer-tools .chat-bot-tool{display:inline-flex;align-items:center;gap:5px}
.composer-tools #chat-ai-suggestions{display:inline-flex;align-items:center;gap:5px}
.composer-tools :is(.chat-bot-tool,#chat-ai-suggestions){min-width:40px;justify-content:center}
.composer-tools :is(.chat-bot-tool,#chat-ai-suggestions) .composer-tool-label{display:none}
.composer-tools :is(#chat-ai-suggestions,.chat-bot-tool) span[aria-hidden]{font-size:19px;line-height:1}
.messages>.chat-date-divider{align-self:center;position:relative;z-index:1;width:max-content;max-width:90%;padding:5px 12px;border-radius:12px;background:#263746;color:#eef6fb;font-size:12px;line-height:1.3;text-align:center;box-shadow:0 2px 6px #0003}
.messages>.chat-date-indicator{position:sticky;top:5px;z-index:8;align-self:center;width:max-content;max-width:90%;padding:5px 12px;border-radius:12px;background:#263746;color:#eef6fb;font-size:12px;line-height:1.3;text-align:center;box-shadow:0 2px 6px #0005;pointer-events:none}
.messages>.chat-date-indicator[hidden]{display:none!important}
@media(max-width:720px){.composer-tools{gap:2px;flex-direction:row!important}#composer .composer-tools .composer-tool{min-height:44px;padding-inline:5px;font-size:12px;flex:0 0 auto}.conversation-inner>.dina-copilot.chat-ai-open{left:4px;right:4px;bottom:100px;max-height:48dvh}}
/* On compact screens the toolbar is part of the composer layout. Opening it
   reduces the message viewport instead of covering the newest messages. */
@media(max-width:720px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 html body #composer{display:flex;flex-direction:column;min-height:0}
 html body #composer .composer-main{order:2;flex:none}
 html body #composer .composer-tools{position:static!important;order:1;width:100%;max-height:none!important;margin:0 0 6px!important;padding:2px 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin}
 html body #composer:not(.tools-open) .composer-tools{display:none!important}
 html body #composer.tools-open .composer-tools{display:flex!important}
 html body #composer .composer-tools>.composer-tool{min-height:44px;flex:0 0 auto}
 html body .conversation-inner>.messages{min-height:0;flex:1 1 auto;scroll-padding-bottom:12px}
}
