.workspace-redesign.ops-refined #inbox #replyForm.attachment-composer{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}
#replyForm.attachment-composer textarea{grid-column:1;grid-row:1;min-width:0}
#replyForm.attachment-composer>.composer-send{grid-column:2;grid-row:1;align-self:end;justify-self:end}
#replyForm .composer-tools{grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
#replyForm .composer-attachment{grid-column:1/-1;grid-row:3;min-width:0;display:flex;align-items:center;gap:8px;color:#444753;font-size:12px}
#replyForm .composer-attachment[hidden],#replyForm .composer-tool[hidden]{display:none}
#replyForm .composer-file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-redesign.ops-refined #inbox #replyForm .composer-tool{display:inline-flex;align-items:center;gap:6px;min-height:36px;background:transparent;color:#55506f;padding:6px 8px;border-radius:5px}
.workspace-redesign.ops-refined #inbox #replyForm .composer-tool:hover:not(:disabled){background:#eeedf9;color:#443aab}
.composer-emoji{position:fixed;inset:auto;margin:0;padding:12px;width:280px;max-width:calc(100vw - 16px);max-height:50dvh;overflow:auto;border:1px solid #c9cbd5;border-radius:8px;background:white;color:#252733}
.composer-emoji:popover-open{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px}
.composer-emoji button{background:transparent;color:inherit;border:0;border-radius:5px;padding:4px;min-height:32px;font-size:20px;cursor:pointer}
.composer-emoji button:hover{background:#eeedf9}
.composer-emoji button:focus-visible,#replyForm .composer-tool:focus-visible{outline:2px solid #5147c8;outline-offset:2px}
@media(max-width:760px){.workspace-redesign.ops-refined #inbox #replyForm .composer-tool{min-height:44px}.composer-emoji{width:344px}.composer-emoji button{min-height:38px}}
/* History controls stay outside the scrolling transcript and the reply area. */
.whatsapp-history { display:flex; flex:0 0 auto; align-items:center; justify-content:space-between; gap:8px 16px; padding:8px 20px; border-bottom:1px solid #e5e6eb; background:#fafafb; color:#62656e; font-size:12px; line-height:1.55; font-variant-numeric:tabular-nums; }
.whatsapp-history[hidden] { display:none; }
.whatsapp-history span { min-width:0; overflow-wrap:anywhere; }
.whatsapp-history button { flex-shrink:0; min-height:32px; }
.whatsapp-history button:focus-visible { outline:2px solid #5147c8; outline-offset:2px; }
@media(max-width:600px) { .whatsapp-history { flex-wrap:wrap; padding:8px 12px; } }
