/* Referansın karşılıklı konuşma düzeni; ZenOne'ın mevcut adaçayı renkleri ve Enso'su korunur. */
.zen-window.conversing:not(.mission-open) .presence{
 width:calc(100% - 64px);max-width:920px;padding:0;margin:0 auto;
 border:1px solid #303f33;border-radius:22px;background:#111913;overflow:hidden;
}
.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none;
 width:100%;padding:22px 28px;border-bottom:1px solid #29372d;text-align:start;}
.chat-heading-identity{display:flex;align-items:center;gap:13px;min-width:0;color:#e5ebdf;font-size:19px;letter-spacing:.015em;}
.chat-heading-identity img{width:39px;height:39px;flex:none;}
.chat-heading #clear-chat{flex:none;min-height:44px;padding:9px 16px;border:1px solid #465b48;
 border-radius:11px;background:#233027;color:#d9e5d1;font-size:12px;line-height:1.5;}
.chat-heading #clear-chat:hover{background:#2b3b2e;border-color:#62795b;}
.chat-heading #clear-chat:focus-visible{outline:2px solid #aec4a6;outline-offset:3px;}

/* Kısa metin içerik kadar yer kaplar; iki tarafın hizası uzunluk ve dilden bağımsızdır. */
.zen-window.conversing .conversation{display:flex;flex-direction:column;align-items:flex-start;gap:22px;
 flex:1;min-height:0;padding:28px;scroll-padding-block:24px;}
.conversation .chat-message{position:relative;flex:none;width:fit-content;max-width:82%;min-width:0;
 margin:0;padding:20px 24px;border:1px solid #2e3d31;border-radius:16px;background:#19231c;color:#dce5d5;text-align:start;}
.conversation .chat-message.user{align-self:flex-end;max-width:76%;background:#253229;border-color:#3d5140;color:#e4ecdd;}
.conversation .chat-message.assistant{align-self:flex-start;}
.conversation .chat-text{font-size:15px;line-height:1.85;}
/* Yazar ekran okuyucuda kalır; konuşmanın görsel ritmini tekrarlı etiketlerle kesmez. */
.conversation .chat-author{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
 clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.conversation .chat-message:has(.chat-code){width:100%;max-width:100%;}
.conversation .chat-message:has(img){min-width:min(320px,82%);}
.conversation .chat-message img{display:block;max-width:100%;}
.conversation .chat-code:last-child{margin-bottom:0;}
.conversation .chat-activity{min-height:0;min-width:min(320px,82%);padding:20px 24px;}
.conversation .chat-activity-line{font-size:14px;}
.conversation .chat-activity-receipt{margin-bottom:10px;}

/* Yazı alanı sabit kalır; yalnız mesajlar kayar. Mevcut gönder/görsel/iptal işlevleri korunur. */
.zen-window.conversing .conversation-composer{width:auto;margin:0 20px;padding:15px 18px 10px;border-radius:16px;}
.zen-window.conversing #connection-note{margin:10px 24px 12px;font-size:10px;line-height:1.65;}
.zen-window.conversing #intent-status:empty{display:none;}
.zen-window.conversing #intent-status:not(:empty){margin:0 24px 12px;}

@media(min-width:601px) and (min-height:501px){
 /* Kısa masaüstü pencerelerinde dış boşluklar mesajların okuma alanını daraltmaz. */
 .zen-window.conversing:not(.mission-open) .window-header{padding:12px 32px;min-height:64px;}
 .zen-window.conversing:not(.mission-open) .window-footer{padding:8px 32px;min-height:44px;}
 .zen-window.conversing .chat-heading{padding:16px 26px;}
 .zen-window.conversing .conversation-composer textarea{height:36px;min-height:36px;}
}

@media(max-width:600px),(max-height:500px) and (max-width:1000px){
 /* Telefonda dış çerçeve kalkar; mesaj ve yazı alanı kullanılabilir ekranı doldurur. */
 .zen-window.conversing:not(.mission-open) .presence{width:100%;max-width:none;border:0;border-radius:0;padding:0 0 4px;}
 .chat-heading{padding:10px 16px 14px;gap:12px;}
 .chat-heading-identity{font-size:17px;gap:10px;}
 .chat-heading-identity img{width:31px;height:31px;}
 .chat-heading #clear-chat{font-size:11px;padding-inline:13px;}
 .zen-window.conversing .conversation{padding:20px 16px;gap:18px;scroll-padding-block:20px;}
 .conversation .chat-message{max-width:92%;padding:16px 18px;border-radius:15px;}
 .conversation .chat-message.user{max-width:86%;}
 .conversation .chat-text{font-size:14px;line-height:1.8;}
 .conversation .chat-activity{min-width:0;width:86%;padding:16px 18px;}
 .zen-window.conversing .conversation-composer[data-mode=chat]{margin:0 12px;padding:10px 12px 7px;border-radius:16px;}
 .zen-window.conversing #connection-note{font-size:9px;margin:7px 16px 4px;}
 html[data-keyboard-open=true] .chat-heading{padding-block:4px 7px;}
 html[data-keyboard-open=true] .chat-heading-identity img{width:26px;height:26px;}
}
@media(prefers-reduced-motion:reduce){.conversation{scroll-behavior:auto;}}
