/* MIRAD messenger composer: single surface, UI-kit colours. */
.mirad-v2-chat-thread div:not(.mirad-v5-composer-surface):has(> div > .mirad-attach-trigger):has(> textarea) {
  display:flex; align-items:flex-end; gap:4px; min-height:46px; padding:4px 5px;
  background:#0c0e18!important; border:1px solid #232436!important; border-radius:16px;
  box-shadow:none!important; transition:border-color .18s ease,background .18s ease;
}
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea):focus-within {
  border-color:#6a3047!important; box-shadow:none!important;
}
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea)>textarea,
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea)>textarea:focus,
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea)>textarea:focus-visible {
  flex:1 1 0; width:0; min-width:0; min-height:36px; max-height:128px;
  padding:8px 4px!important; margin:0!important; border:0!important; border-radius:0!important;
  background:transparent!important; box-shadow:none!important; outline:0!important;
  color:#e4e4e7!important; font-size:14px; line-height:20px; font-family:inherit; resize:none;
  field-sizing:content; overflow-y:auto;
}
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea)>textarea::placeholder {color:#71717a!important;}
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea)>div>button {
  display:grid; place-items:center; height:36px; width:36px; padding:0!important; border:0!important;
  border-radius:10px; box-shadow:none!important; background:transparent; color:#a1a1aa;
  transition:background .15s ease,color .15s ease,transform .15s ease;
}
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea)>div>button:hover:not(:disabled),
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea)>div>button[aria-expanded="true"] {background:#161828!important;color:#fb7185!important;}
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea)>div>button svg{width:18px;height:18px;}
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea)>button {
  display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0!important;
  border:0!important;border-radius:11px;box-shadow:none!important;
  background:linear-gradient(135deg,#e11d48,#f43f5e)!important;color:#fff!important;
  transition:filter .15s ease,transform .15s ease,background .15s ease;
}
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea)>button:hover:not(:disabled){filter:brightness(1.1);}
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea)>button:disabled{background:#1b1e32!important;color:#71717a!important;opacity:1!important;}
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea)>button svg {width:18px;height:18px;}
.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea) button:focus-visible{outline:2px solid #fb7185!important;outline-offset:2px;}
@media(max-width:640px){.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea){gap:2px;padding:4px;}.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea)>textarea{font-size:16px;line-height:22px;}}
@media(prefers-reduced-motion:reduce){.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea),.mirad-v2-chat-thread div:has(> div > .mirad-attach-trigger):has(> textarea) button{transition:none!important;}}
