/* Shared conversation controls, sized for both embedded mobile apps and desktop. */
html body#ktApp#ktApp #messages .chat-preferences{display:flex;align-items:center;gap:14px;flex-wrap:wrap;flex-shrink:0;padding:8px 14px;background:var(--chat-surface,#fff);border-bottom:1px solid #dce6ec;font-size:12px;color:#526b79}
html body#ktApp#ktApp #messages .chat-preferences label{display:flex;align-items:center;gap:6px;min-height:32px;cursor:pointer}
html body#ktApp#ktApp #messages .chat-preferences input{width:16px;height:16px;accent-color:#078478}
#chatLiveStatus{margin-right:auto;display:flex;align-items:center;gap:6px}#chatLiveStatus:before{content:'';width:7px;height:7px;border-radius:50%;background:#a16913}#chatLiveStatus[data-state=online]:before{background:#078478}
html body#ktApp#ktApp #messages .chat-conversation-tools{position:relative;display:flex;align-items:center;gap:8px;flex-shrink:0;padding:8px 12px;background:var(--chat-surface,#fff);border-bottom:1px solid #dce6ec;min-width:0;z-index:3}
html body#ktApp#ktApp #messages .chat-conversation-tools form{display:flex;align-items:center;gap:4px;flex:1;min-width:0;margin:0}
html body#ktApp#ktApp #messages .chat-conversation-tools input{width:100%;min-width:0;box-sizing:border-box;border:1px solid #cedde4;background:transparent;color:inherit;border-radius:8px;padding:8px;font:inherit;font-size:13px;min-height:38px}
html body#ktApp#ktApp #messages .chat-conversation-tools button,#messages [role=status] button{border:1px solid #c6dad7;background:#f1f8f6;color:#11695f;border-radius:8px;min-height:38px;padding:7px 10px;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
html body#ktApp#ktApp #messages .chat-conversation-tools button:disabled{opacity:.6;cursor:default}
html body#ktApp#ktApp #messages .chat-search-results{position:absolute;top:100%;left:0;right:0;max-height:45dvh;overflow:auto;box-shadow:0 8px 20px #0002;background:var(--chat-surface,#fff);padding:12px;border-bottom:1px solid #dce6ec;white-space:normal;z-index:10;color:#17364d}
#messages .chat-search-results[hidden]{display:none!important}#messages .chat-search-results article{padding:8px 0;border-bottom:1px solid #dce6ec}#messages .chat-search-results p{margin:4px 0;overflow-wrap:anywhere;white-space:pre-wrap}#messages .chat-search-results time{font-size:11px;color:#607589}
#messages .chat-unread-divider{clear:both;display:block;text-align:center;margin:12px auto;padding:5px 14px;max-width:150px;border-radius:12px;background:#d8eee9;color:#126e62;font-size:12px}
html body#ktApp#ktApp #messages.chat-unread-only .web-chat-item:not(.has-unread):not(.active),html body#ktApp#ktApp #messages.chat-unread-only #managerChatPeople>button:not(.has-unread):not(.active){display:none!important}
html body#ktApp#ktApp #messages.chat-private-preview .web-chat-copy>small,html body#ktApp#ktApp #messages.chat-private-preview .dm-person-info>small{display:none!important}
#messages.chat-private-preview .web-chat-copy:after,#messages.chat-private-preview .dm-person-info:after{content:'Mesaj önizlemesi gizli';display:block;font-size:12px;color:#607589;margin-top:4px}
@media(min-width:1025px){html body#ktApp#ktApp #managerChatPanel{grid-template-columns:clamp(300px,30%,380px) minmax(0,1fr)!important}html body#ktApp#ktApp #messages .web-chat-item,html body#ktApp#ktApp #managerChatPeople>button{min-height:80px!important;padding:12px 14px!important}html body#ktApp#ktApp #messages .whatsapp-workspace{grid-template-columns:clamp(300px,30%,380px) minmax(0,1fr)!important}}
@media(max-width:1024px){html body#ktApp#ktApp #messages .chat-preferences{padding:4px 10px;gap:8px;font-size:11px}html body#ktApp#ktApp #messages .chat-preferences label{min-height:28px}html body#ktApp#ktApp #messages .chat-conversation-tools{gap:4px;padding:5px 8px}html body#ktApp#ktApp #messages .chat-conversation-tools button{min-height:40px;padding:6px;font-size:11px}html body#ktApp#ktApp #messages .chat-conversation-tools input{min-height:40px;font-size:16px}html body#ktApp#ktApp #messages .web-chat-item,html body#ktApp#ktApp #managerChatPeople>button{min-height:78px!important;padding:12px!important}html body#ktApp#ktApp #messages .dm-conversation header,html body#ktApp#ktApp #messages .whatsapp-head{min-height:64px!important;padding:10px 12px!important}}
html[data-theme=dark] #messages,body.dark #messages{--chat-surface:#182d3e}
html[data-theme=dark] #messages .chat-preferences,html[data-theme=dark] #messages .chat-conversation-tools,html[data-theme=dark] #messages .chat-search-results{color:#dbe7f0!important;border-color:#395064!important}
html[data-theme=dark] #messages .chat-conversation-tools button,html[data-theme=dark] #messages [role=status] button{background:#233f4a!important;color:#c8eee5!important;border-color:#3e6469!important}
html[data-theme=dark] #messages .chat-unread-divider{background:#224b49;color:#c8eee5}
html body#ktApp#ktApp #messages #messageSendStatus:not(:empty),html body#ktApp#ktApp #messages #teamMessageSendStatus:not(:empty),html body#ktApp#ktApp #messages #dmStatus:not(:empty){display:block!important;flex-shrink:0!important;grid-column:1/-1!important;min-height:20px!important;max-height:95px;overflow:auto;padding:5px 10px!important;margin:0!important;font-size:12px!important;color:#276359;background:var(--chat-surface,#fff);white-space:normal}
html body#ktApp#ktApp #messages #messageSendStatus:empty,html body#ktApp#ktApp #messages #teamMessageSendStatus:empty{display:none!important}
html[data-theme=dark] body#ktApp#ktApp #messages #ktSoundOpen{background:#233f4a!important;color:#d8eee9!important;border-color:#3e6469!important}
html body#ktApp#ktApp:not(.is-admin) #messages .chat-preferences label{display:none!important}
#messages .chat-filter-empty{font-size:13px;color:#607589;padding:18px;text-align:center}#messages .chat-filter-empty[hidden]{display:none!important}
html body#ktApp#ktApp #messages .chat-send-feedback{flex-shrink:0;max-height:135px;overflow:auto;padding:6px 12px;background:var(--chat-surface,#fff);border-top:1px solid #d7e5e3}
html body#ktApp#ktApp #messages .chat-send-feedback[hidden]{display:none!important}
#messages .chat-outbox-row{margin-left:auto;max-width:85%;padding:8px 12px;border:1px dashed #85b5ab;border-radius:12px;background:#edf8f3;color:#244d44;font-size:13px}
#messages .chat-outbox-row>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}
#messages .chat-outbox-row small{display:block;margin-top:4px;color:#426d62;font-size:11px}
#messages .chat-outbox-row[data-send-state=failed]{background:#fff1ed;border-color:#be7166;color:#853a2e}
:root[data-theme=dark] #messages .chat-outbox-row{background:#1d3e36;color:#dfede7;border-color:#5b9b88}
:root[data-theme=dark] #messages .chat-outbox-row small{color:#bad9cc}
:root[data-theme=dark] #messages .chat-outbox-row[data-send-state=failed]{background:#4b2f2d;color:#ffe1dc}
