/* Ekip sohbeti (chat.js): #chat sayfası, fırsat penceresi → Sohbet sekmesi, yeni mesaj toast'ı. */
.nav-count.has-unread { min-width: 18px; padding: 1px 6px; border-radius: 9px; color: #fff; background: var(--purple); font-weight: 700; text-align: center; }

.chat-shell { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - 118px); height: calc(100dvh - 118px); min-height: 460px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 6px #282c4204; }
.chat-sidebar { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: #fbfbfe; }
/* Üst satır: başlık + ses; alt satır: QPilot / Kullanıcı / Grup eşit genişlikte (dar kenar çubuğunda taşmaz). */
.chat-side-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 8px; padding: 16px 16px 10px; }
.chat-side-head h2 { margin: 0; color: #303449; font: 700 17px Manrope, sans-serif; }
.chat-side-actions { display: flex; flex: 1 0 100%; gap: 6px; min-width: 0; }
.chat-side-actions .small-button { flex: 1 1 0; min-width: 0; justify-content: center; padding-inline: 8px; white-space: nowrap; }
.chat-side-actions .chat-qpilot-open { color: #6d4fe0; font-weight: 700; }
/* .search-box genel kuralı flex: 1 — dikey kenar çubuğunda yükseklik olarak büyümesin. */
.chat-search { flex: none; height: 34px; max-width: none; margin: 0 14px 8px; background: #fff; }
/* Filtreler sığmazsa alt satıra geçer (gizli kaydırmada "Kişiler" görünmüyordu). */
.chat-filters { display: flex; flex: none; flex-wrap: wrap; gap: 4px; padding: 0 14px 10px; }
.chat-filters button { flex: none; padding: 3px 8px; border: 1px solid #e6e8f0; border-radius: 14px; color: #6d7186; background: #fff; font-size: 10.5px; font-weight: 600; }
.chat-filters button.active { border-color: var(--purple); color: #fff; background: var(--purple); }
.chat-all-toggle { display: flex; flex: none; align-items: center; gap: 6px; padding: 0 16px 8px; color: #77798a; font-size: 11px; }
.chat-all-toggle input { margin: 0; }
.chat-room-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 10px; }
.chat-room-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 9px; border: 0; border-radius: 9px; color: inherit;
  background: transparent; text-align: left; cursor: pointer; }
.chat-room-item:hover { background: #f1f0fb; }
.chat-room-item.active { background: #ebe8ff; }
.chat-room-item.foreign { opacity: .75; }
.chat-room-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.chat-room-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.chat-room-line b { flex: 1; overflow: hidden; color: #30344a; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.chat-room-item.unread .chat-room-line b { color: #15182b; font-weight: 800; }
.chat-room-line time { flex: none; color: #9a9db0; font-size: 10.5px; }
.chat-room-item.unread .chat-room-line time { color: var(--purple); font-weight: 700; }
.chat-room-preview { flex: 1; overflow: hidden; color: #80849a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.chat-room-preview b { color: #5b5f75; font-weight: 600; }
.chat-room-item.unread .chat-room-preview { color: #3b3f55; }
.chat-kind { margin-right: 4px; color: #8c7ef0; font-size: 10px; }
.chat-badge { flex: none; min-width: 19px; padding: 1px 6px; border-radius: 10px; color: #fff; background: var(--purple); font-size: 10.5px; font-weight: 700; text-align: center; }
.chat-badge.muted { background: #b5b7c6; }
.chat-badge.at { min-width: 0; padding: 1px 6px; background: #e0548a; }
.chat-muted { font-size: 11px; opacity: .7; }
/* Sabitleme işareti ve ⌄ menü düğmesi (satırın üzerine gelince / menü açıkken / klavye odağında görünür). */
.chat-pin { display: inline-flex; flex: none; color: #9a9db0; }
.chat-pin svg { width: 14px; height: 14px; }
/* Sabitlenen sohbetler bloğu (listenin üstünde, açık mor zeminli çerçeve). */
.chat-pinned-block { margin: 4px 0 6px; padding: 4px; border: 1px solid #e3e0fb; border-radius: 12px; background: #f8f7ff; }
.chat-pinned-head { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px; color: #6b5fd6; font-size: 10.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; }
.chat-pinned-head svg { width: 12px; height: 12px; }
.chat-pinned-head small { margin-left: auto; padding: 0 6px; border-radius: 8px; color: #6b5fd6; background: #ebe8ff; font-size: 10px; letter-spacing: 0; }
.chat-pinned-block .chat-room-item:hover { background: #efecff; }
.chat-pinned-block .chat-room-item.active { background: #e4dfff; }
.chat-pinned-block .chat-pin { display: none; } /* blok zaten sabitlendiğini gösteriyor */
.chat-row-menu { display: none; flex: none; place-items: center; width: 22px; height: 20px; margin-right: -4px; border-radius: 6px; color: #77798a; cursor: pointer; }
.chat-row-menu svg { width: 16px; height: 16px; }
.chat-row-menu:hover, .chat-row-menu.open { color: #30344a; background: #0000000d; }
.chat-room-item:hover .chat-row-menu, .chat-room-item:focus-within .chat-row-menu, .chat-row-menu.open { display: inline-grid; }
@media (hover: none) { .chat-row-menu { display: inline-grid; } }
.chat-row-popup { position: fixed; z-index: 1200; display: flex; flex-direction: column; min-width: 220px; padding: 6px; border: 1px solid #e6e8f0;
  border-radius: 12px; background: #fff; box-shadow: 0 12px 32px #1c1f3a24; }
.chat-row-popup button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; color: #3b3f55;
  background: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; white-space: nowrap; }
.chat-row-popup button:hover, .chat-row-popup button:focus-visible { outline: none; background: #f4f4fa; }
.chat-row-popup button.danger { color: #b42323; }
.chat-row-popup button.danger:hover { background: #fdf0f0; }
.chat-row-ico { display: inline-grid; flex: none; place-items: center; width: 18px; color: #6d7186; font-size: 13px; }
.chat-row-ico svg { width: 15px; height: 15px; }
.chat-call-popup a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #3b3f55; font-size: 13px;
  text-decoration: none; white-space: nowrap; }
.chat-call-popup a:hover, .chat-call-popup a:focus-visible { outline: none; background: #f4f4fa; color: var(--purple); }
.chat-call-label { min-width: 52px; color: #8d90a3; font-size: 12px; }
.chat-cc-call.open { background: #f4f4fa; }
.chat-row-popup hr { margin: 4px 6px; border: 0; border-top: 1px solid #eceef4; }

.chat-avatar { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; overflow: hidden; border-radius: 50%;
  color: #fff; background: linear-gradient(135deg, #8b7ff2, #6857df); font-size: 14px; font-weight: 700; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-avatar.small { flex-basis: 22px; width: 22px; height: 22px; font-size: 10px; }
.chat-avatar.large { flex-basis: 42px; width: 42px; height: 42px; font-size: 16px; }
.chat-avatar.is-group { border-radius: 11px; background: linear-gradient(135deg, #3fb18c, #24966a); }
.chat-avatar.is-deal { border-radius: 11px; background: linear-gradient(135deg, #f2a65a, #e0793a); }
.chat-avatar-gap { flex: 0 0 36px; }

.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-main > .chat-room, .deal-chat > .chat-room { flex: 1; }
.chat-welcome { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 40px; text-align: center; }
.chat-welcome h2 { margin: 6px 0 0; color: #303449; font: 700 18px Manrope, sans-serif; }
.chat-welcome .muted { max-width: 460px; }
.chat-welcome-icon { font-size: 40px; }
.chat-welcome-actions { display: flex; gap: 8px; margin-top: 12px; }

.chat-room { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-room.dragging::after { content: 'Dosyaları bırakın'; position: absolute; inset: 8px; z-index: 3; display: grid; place-items: center;
  border: 2px dashed var(--purple); border-radius: 12px; color: var(--purple); background: #f6f4ffee; font-weight: 700; }
.chat-room-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-room-title { display: flex; flex: 1 1 0; flex-direction: column; min-width: 120px; }
.chat-room-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-room-title b { overflow: hidden; color: #262a40; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.chat-room-title small { color: #8d90a3; font-size: 11.5px; }.chat-room-actions { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.chat-room-actions .icon-only { min-width: 34px; padding-left: 8px; padding-right: 8px; justify-content: center; }
/* "⋯" diğer işlemler menüsü */
.chat-more { position: relative; }
.chat-more > summary { list-style: none; cursor: pointer; }
.chat-more > summary::-webkit-details-marker { display: none; }
.chat-more[open] > summary { border-color: var(--purple); color: var(--purple); background: #f0efff; }
.chat-more-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; display: flex; flex-direction: column; min-width: 210px; padding: 6px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px #1d1f3a24; }
.chat-more-menu button { padding: 8px 10px; border: 0; border-radius: 7px; color: #3b3f55; background: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; white-space: nowrap; }
.chat-more-menu button:hover { background: #f4f4fa; }
.chat-more-menu button.danger { color: #b42323; }
.chat-more-menu button.danger:hover { background: #fdf0f0; }
.chat-room-actions a.button { text-decoration: none; }
.chat-banner { padding: 8px 16px; border-bottom: 1px solid #f1e3b8; color: #7a5b12; background: #fff9e8; font-size: 12px; }
.chat-banner .button { margin-left: 8px; }

/* overflow-anchor: none — kaydırma konumunu tarayıcı değil chat.js (alta yapışık, ResizeObserver) yönetir. */
.chat-messages { flex: 1; min-height: 0; overflow-y: auto; overflow-anchor: none; padding: 14px 18px 8px; background: #f7f7fb; outline: 0; }
.chat-empty { padding: 30px 16px; color: #8d90a3; font-size: 12.5px; text-align: center; }
.chat-older { display: block; margin: 0 auto 10px; padding: 5px 12px; border: 1px solid #e3e4ee; border-radius: 14px; color: #6d7186; background: #fff; font-size: 11px; }
.chat-day { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: #9a9db0; font-size: 11px; font-weight: 600; }
.chat-day::before, .chat-day::after { content: ''; flex: 1; height: 1px; background: #e7e8f0; }
.chat-system { display: flex; justify-content: center; gap: 8px; margin: 8px auto; max-width: 80%; color: #85899d; font-size: 11.5px; text-align: center; }
.chat-system span { padding: 4px 11px; border-radius: 12px; background: #eceaf8; }
.chat-system time { align-self: center; color: #b0b3c2; font-size: 10px; }

.chat-msg { position: relative; display: flex; align-items: flex-start; gap: 9px; margin-top: 10px; }
.chat-msg.grouped { margin-top: 2px; }
.chat-msg.mine { flex-direction: row-reverse; }
.chat-bubble-wrap { display: flex; flex-direction: column; max-width: min(640px, 76%); min-width: 0; }
.chat-msg.mine .chat-bubble-wrap { align-items: flex-end; }
.chat-msg-head { display: flex; align-items: baseline; gap: 8px; margin: 0 4px 3px; }
.chat-msg-head b { color: #3c4058; font-size: 12px; }
.chat-msg-head time { color: #a1a4b5; font-size: 10.5px; }
.chat-bubble { position: relative; padding: 8px 11px; border: 1px solid #ebecf3; border-radius: 4px 12px 12px 12px; color: #2b2f45;
  background: #fff; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; box-shadow: 0 1px 2px #20243a08; }
.chat-msg.grouped .chat-bubble { border-radius: 12px; }
.chat-msg.mine .chat-bubble { border-color: #ddd8ff; border-radius: 12px 4px 12px 12px; background: #eeebff; }
.chat-msg.mine.grouped .chat-bubble { border-radius: 12px; }
.chat-msg.mentioned .chat-bubble { border-color: #f3b7cf; box-shadow: 0 0 0 2px #fbe3ed; }
.chat-msg.flash .chat-bubble { animation: chat-flash 1.6s ease; }
@keyframes chat-flash { 0%, 40% { background: #fff3c4; } 100% { } }
.chat-text a { color: var(--purple-dark); }
.chat-mention { padding: 0 3px; border-radius: 4px; color: #b03269; background: #fde6ef; font-weight: 600; }
.chat-deleted { color: #a1a4b5; }
.chat-edited, .chat-inline-time { margin-left: 6px; color: #a5a8b8; font-size: 10px; }
.chat-inline-time { float: right; margin: 4px 0 0 10px; opacity: 0; transition: opacity .15s; }
.chat-msg:hover .chat-inline-time { opacity: 1; }
.chat-quote { margin: 0 0 6px; padding: 4px 8px; border-left: 3px solid #a99ff3; border-radius: 4px; color: #6d7186; background: #f6f5fd;
  font-size: 12px; cursor: pointer; }
.chat-quote b { color: #554ab3; }
.chat-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chat-image img { display: block; max-width: 260px; max-height: 220px; border-radius: 8px; object-fit: cover; }
.chat-file { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #e4e5ee; border-radius: 8px; color: inherit;
  background: #fafafd; text-decoration: none; }
.chat-file:hover { border-color: #c8c3f6; }
.chat-audio { display: flex; flex-direction: column; gap: 4px; width: 300px; max-width: 100%; }
.chat-audio audio { display: block; width: 100%; }
.chat-file span:last-child { display: flex; flex-direction: column; }
.chat-file b { max-width: 240px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.chat-file small { color: #9a9db0; font-size: 10.5px; }
.chat-msg-actions { align-self: center; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.chat-msg:hover .chat-msg-actions, .chat-msg:focus-within .chat-msg-actions { opacity: 1; }
.chat-msg-actions button { padding: 3px 6px; border: 1px solid #e6e7ef; border-radius: 6px; color: #7d8196; background: #fff; font-size: 11px; cursor: pointer; }
.chat-msg-actions button:hover { color: var(--purple); border-color: #c8c3f6; }

.chat-composer { position: relative; padding: 10px 14px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-reply { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; padding: 5px 9px;
  border-left: 3px solid #a99ff3; border-radius: 5px; color: #5f6378; background: #f6f5fd; font-size: 12px; }
.chat-reply .icon-button { padding: 0 6px; font-size: 16px; }
.chat-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chat-file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 9px; border: 1px solid #e4e5ee; border-radius: 14px; background: #fafafd; font-size: 11.5px; }
.chat-file-chip small { color: #9a9db0; }
.chat-file-chip button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; color: #8d90a3; background: #ecedf4; cursor: pointer; }
.chat-compose-row { display: flex; align-items: flex-end; gap: 8px; }
/* .chat-compose-row önekiyle: fırsat penceresindeki ".dialog label" kuralını ezer. */
.chat-compose-row .chat-attach { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; margin: 0; border: 1px solid #e6e8f0;
  border-radius: 9px; color: #6d7186; background: #fff; font-size: 16px; font-weight: 400; cursor: pointer; }
.chat-compose-row .chat-attach:hover { border-color: #c8c3f6; background: #fbfaff; }
.chat-compose-row textarea { flex: 1; min-height: 38px; max-height: 180px; padding: 9px 11px; border: 1px solid #e3e4ee; border-radius: 9px; outline: 0;
  color: #2b2f45; font: inherit; font-size: 13px; line-height: 1.45; resize: none; }
.chat-compose-row textarea:focus { border-color: #988ef0; box-shadow: 0 0 0 3px #7162df14; }
.chat-send { height: 38px; }
.chat-mention-menu { position: absolute; bottom: calc(100% - 4px); left: 60px; z-index: 5; width: min(320px, 80%); max-height: 260px; overflow-y: auto;
  padding: 4px; border: 1px solid #e3e4ee; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px #1d1f3a22; }
.chat-mention-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; }
.chat-mention-menu button.active, .chat-mention-menu button:hover { background: #f0eeff; }
.chat-mention-menu span { color: #30344a; font-size: 12.5px; font-weight: 600; }
.chat-mention-menu small { margin-left: auto; color: #9a9db0; font-size: 10.5px; }
.chat-compose-row .chat-attach:disabled { opacity: .45; cursor: not-allowed; }

/* CRM kişisi / firması paylaşma (👤): arama penceresi ve mesajdaki kartlar. */
.chat-share-picker { position: absolute; bottom: calc(100% - 4px); left: 14px; z-index: 6; display: flex; flex-direction: column; width: min(380px, calc(100% - 28px));
  max-height: 340px; padding: 8px; border: 1px solid #e3e4ee; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px #1d1f3a22; }
.chat-share-picker input { width: 100%; padding: 8px 10px; border: 1px solid #e3e4ee; border-radius: 8px; outline: 0; font: inherit; font-size: 13px; }
.chat-share-picker input:focus { border-color: #988ef0; box-shadow: 0 0 0 3px #7162df14; }
.chat-share-results { margin-top: 6px; overflow-y: auto; }
.chat-share-section { padding: 6px 8px 2px; color: #8a8ea3; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.chat-share-empty { padding: 10px 8px; color: #8a8ea3; font-size: 12px; }
.chat-share-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent;
  text-align: left; cursor: pointer; }
.chat-share-item.active, .chat-share-item:hover { background: #f0eeff; }
.chat-share-item > span:last-child, .chat-share-card > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.chat-share-item b, .chat-share-card b { overflow: hidden; color: #30344a; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.chat-share-item small, .chat-share-card small { overflow: hidden; color: #8a8ea3; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.chat-share-icon { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #f0eeff; font-size: 15px; }
.chat-share-cards { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.chat-share-card { display: flex; align-items: center; gap: 9px; width: 300px; max-width: 100%; padding: 7px 10px; border: 1px solid #e4e5ee;
  border-radius: 9px; color: inherit; background: #fafafd; text-decoration: none; }
.chat-share-card:hover { border-color: #c8c3f6; background: #fbfaff; }
.chat-share-card.missing { color: #8a8ea3; font-size: 12px; font-style: italic; }

/* Diyaloglar */
.dialog.chat-dialog { width: min(480px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.chat-picker-search { max-width: none; margin-bottom: 8px; }
.dialog .chat-picker-search input { height: 30px; border: 0; box-shadow: none; }
.chat-pick-list { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow-y: auto; }
.dialog label.chat-pick { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 9px; border: 1px solid #ecedf4; border-radius: 9px; cursor: pointer; }
.dialog label.chat-pick:hover { border-color: #d3d0f5; background: #fbfbff; }
.dialog label.chat-pick.selected { border-color: var(--purple); background: #f6f4ff; }
.dialog label.chat-pick input { width: 15px; height: 15px; margin: 0; padding: 0; flex: none; }
.chat-pick span:last-child, .chat-member span { display: flex; flex-direction: column; min-width: 0; }
.chat-pick b, .chat-member b { color: #30344a; font-size: 12.5px; }
.chat-pick small, .chat-member small { color: #9a9db0; font-size: 11px; }
.chat-member-list { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.chat-member { display: flex; align-items: center; gap: 10px; }
.chat-member .text-button { margin-left: auto; }
.chat-member-add { display: flex; gap: 8px; margin-top: 12px; }
.dialog .chat-member-add select { flex: 1; height: 34px; }
.chat-search-results { display: flex; flex-direction: column; gap: 4px; max-height: 400px; overflow-y: auto; }
.chat-search-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 8px 10px; border: 1px solid #ecedf4; border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.chat-search-row:hover { border-color: #c8c3f6; }
.chat-search-row b { font-size: 12px; }
.chat-search-row time { justify-self: end; color: #9a9db0; font-size: 10.5px; }
.chat-search-row span { grid-column: 1 / -1; color: #50546a; font-size: 12px; }

/* Fırsat penceresi → Sohbet */
#dealPaneChat { min-height: 0; }
.deal-chat { display: flex; height: min(62vh, 620px); min-height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.deal-chat .chat-messages { padding: 10px 12px 6px; }
.deal-chat-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; text-align: center; }
.deal-chat-empty h3 { margin: 0; color: #303449; font: 700 15px Manrope, sans-serif; }
.deal-chat-empty .muted { max-width: 520px; }
.deal-chat-members { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 8px; }
.deal-chat-member { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border: 1px solid #e6e7ef; border-radius: 14px; font-size: 11.5px; }

/* WhatsApp grubu senkronu (Chat/ChatWhatsAppService.cs) */
.chat-avatar.is-wa { background: linear-gradient(135deg, #3ccf72, #1fa855); }
.chat-wa-badge { display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid #bfe9cf; border-radius: 8px; color: #187a43;
  background: #effbf3; font-size: 11px; font-weight: 700; white-space: nowrap; }
button.chat-wa-badge { font-family: inherit; cursor: pointer; }
button.chat-wa-badge:hover { border-color: #8fd8ab; background: #e3f7ea; }
.chat-wa-badge.has-error { border-color: #f3d39a; color: #8a5a06; background: #fff8e8; }
.chat-wa-create { display: inline-flex; align-items: center; gap: 5px; border-color: #bfe9cf; color: #187a43; }
.chat-wa-badge { gap: 4px; }
.chat-wa-icon { width: 17px; height: 17px; flex: none; color: #25d366; }
.chat-wa-badge.has-error .chat-wa-icon { color: #1fa855; }
.chat-wa-mark { padding: 0 6px; border-radius: 8px; color: #187a43; background: #e3f7ea; font-size: 9.5px; font-weight: 700; }
.chat-wa-state { color: #a1a4b5; font-size: 10px; font-weight: 600; }
.chat-wa-state.ok { color: #1fa855; }
.chat-wa-state.failed { color: #c0392b; cursor: help; }
/* Kendi mesajımın okundu işareti: ✓ okunmadı · gri ✓✓ bazıları okudu · mavi ✓✓ herkes okudu (üzerine gelince okuyanlar). */
.chat-receipt { margin-left: 4px; color: #a1a4b5; font-size: 11px; font-weight: 600; letter-spacing: -2px; cursor: help; }
.chat-receipt.partial { color: #7d8597; }
.chat-receipt.read { color: #34b7f1; }
.chat-msg.from-wa:not(.mine) .chat-bubble { border-color: #d6f0df; }
.dialog label.chat-wa-option, .deal-chat-empty label.chat-wa-option { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 10px 12px;
  border: 1px solid #d6f0df; border-radius: 9px; background: #f6fcf8; color: #2f4a39; text-align: left; cursor: pointer; }
.dialog label.chat-wa-option input { width: 16px; height: 16px; margin: 2px 0 0; padding: 0; flex: none; }
.chat-wa-option span { display: flex; flex-direction: column; gap: 2px; }
.chat-wa-option b { font-size: 12.5px; }
.chat-wa-option small { color: #6b7f72; font-size: 11px; font-weight: 400; line-height: 1.45; }
.deal-chat-empty label.chat-wa-option { max-width: 520px; }

/* Bildirim zili: sohbet ve takip edilen fırsat olayları (notifications.js) */
.notif-icon.chat { background: #efecff; color: #6857df; font-size: 14px; }
.notif-icon.deal { background: #fff3e6; color: #d4762c; }

.dh-preview.is-chat { max-height: 160px; overflow-y: auto; white-space: pre-line; }

/* Yeni mesaj toast'ı */
.chat-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; flex-direction: column; gap: 8px; }
.chat-toast { display: flex; align-items: center; gap: 10px; width: 320px; padding: 10px 12px; border: 1px solid #e3e1f6; border-radius: 12px;
  background: #fff; box-shadow: 0 12px 34px #1d1f3a2e; text-align: left; cursor: pointer; animation: chat-toast-in .2s ease-out; }
.chat-toast > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.chat-toast b { color: #262a40; font-size: 12.5px; }
.chat-toast span span { overflow: hidden; color: #6d7186; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
@keyframes chat-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Fırsat takipçileri (deal-followers.js) */
.deal-followers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.deal-follower { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border: 1px solid #e6e7ef; border-radius: 15px; color: #44485e; background: #fff; font-size: 11.5px; }
.deal-follower.is-owner { border-color: #d9d4ff; background: #f6f4ff; }
.deal-follower small { color: #9a9db0; }
.deal-follower button { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; color: #8d90a3; background: #ecedf4; font-size: 12px; line-height: 1; cursor: pointer; }
.deal-follow-toggle.is-following { border-color: #f0c86a; color: #8a6206; background: #fff8e6; }
.dialog .deal-follower-add { width: auto; min-width: 150px; height: 28px; font-size: 11.5px; }
.deal-card-followers { display: inline-flex; align-items: center; margin-left: -6px; }
.deal-card-followers .deal-owner { flex-basis: 20px; width: 20px; height: 20px; margin-left: -5px; border: 2px solid #fff; font-size: 9px; }
.deal-card-followers .deal-follow-more { color: #8d90a3; font-size: 10px; margin-left: 3px; }
.deal-card-following { color: #e0a419; font-size: 12px; }

@media (max-width: 900px) {
  .chat-shell { grid-template-columns: 1fr; min-height: 360px; }
  #page-chat.has-room .chat-sidebar { display: none; }
  #page-chat:not(.has-room) .chat-main { display: none; }
  .chat-bubble-wrap { max-width: 86%; }
}
/* Telefonda üst çubuk 60px + 23px boşluk (styles.css ≤760px); altta 12px boşluk. */
@media (max-width: 760px) {
  .chat-shell { height: calc(100vh - 95px); height: calc(100dvh - 95px); }
}

/* QPilot: fırsat grubundaki yapay zeka üyesi (chat.js; sunucu Chat/QPilotChatService.cs). */
.chat-avatar.is-qpilot { background: linear-gradient(135deg, #3d6bf2, #7b3fe4); font-size: 15px; }
.chat-avatar.small.is-qpilot { font-size: 11px; }
.chat-msg.from-qpilot .chat-bubble { border-color: #d6dcfb; background: linear-gradient(180deg, #f5f7ff, #fbfaff); }
.chat-qpilot-mark { margin-left: 6px; padding: 0 5px; border-radius: 4px; color: #3d4fc9; background: #e5e9ff; font-size: 9.5px; font-weight: 800; letter-spacing: .4px; }
.chat-mention.is-qpilot { color: #3d4fc9; background: #e5e9ff; }
.qpilot-text p { margin: 0 0 6px; }
.qpilot-text p:last-child { margin-bottom: 0; }
.qpilot-text ul { margin: 2px 0 6px; padding-left: 18px; }
.qpilot-text li { margin: 1px 0; }
.qpilot-text code { padding: 0 3px; border-radius: 3px; background: #eef0f7; font-size: 11.5px; }
.qpilot-extras { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.qpilot-notice { padding: 6px 9px; border: 1px solid #d9e8dc; border-radius: 8px; color: #29513a; background: #f1faf3; font-size: 12px; }
.qpilot-notice a { font-weight: 700; white-space: nowrap; }
.qpilot-card { padding: 8px 10px; border: 1px solid #dcd7fb; border-radius: 9px; background: #fff; font-size: 12px; }
.qpilot-card p { margin: 4px 0 0; }
.qpilot-card ul { margin: 4px 0 0; padding-left: 16px; color: #555a70; }
.qpilot-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.qpilot-card-head b { color: #2b2f45; }
.qpilot-card-state { flex: none; padding: 1px 7px; border-radius: 10px; color: #7a5b12; background: #fff3cf; font-size: 10.5px; font-weight: 700; }
.qpilot-card.state-applied { border-color: #cde8d4; }
.qpilot-card.state-applied .qpilot-card-state { color: #24734a; background: #e1f5e7; }
.qpilot-card.state-cancelled { opacity: .7; }
.qpilot-card.state-cancelled .qpilot-card-state { color: #6d7186; background: #eef0f5; }
.qpilot-card.state-failed { border-color: #f3c6c6; }
.qpilot-card.state-failed .qpilot-card-state { color: #a33; background: #fde8e8; }
.qpilot-card-result { color: #3b4058; font-weight: 600; }
.qpilot-card-actions { display: flex; gap: 6px; margin-top: 8px; }
.qpilot-card-who { font-size: 11px; }
.chat-typing { display: flex; align-items: center; gap: 7px; padding: 4px 18px 6px; color: #5e63a8; background: #f7f7fb; font-size: 11.5px; font-weight: 600; }
.chat-typing-dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.chat-typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: qpilot-dot 1.2s infinite ease-in-out; }
.chat-typing-dots i:nth-child(2) { animation-delay: .15s; }
.chat-typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes qpilot-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .chat-typing-dots i { animation: none; opacity: .7; } }
/* Fırsat sohbetindeki QPilot tablosu: markdown.css'teki .md-table'ın daha sıkı hali. */
.qpilot-text .md-table { font-size: 12px; }
.qpilot-text .md-table th, .qpilot-text .md-table td { padding: 4px 8px; }
.qpilot-reply { display: flex; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #d6dcfb; }
.qpilot-reply input { flex: 1; min-width: 0; padding: 6px 9px; border: 1px solid #d6dcfb; border-radius: 8px; background: #fff; font: inherit; font-size: 12.5px; }
.qpilot-reply input:focus { border-color: #6b7cf0; outline: 0; box-shadow: 0 0 0 2px #e5e9ff; }
.chat-compact-tools { display: flex; justify-content: flex-end; gap: 6px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-qpilot-mark.auto { color: #6b5b12; background: #fff1c2; }
.qpilot-auto-toggle { color: #6d7186; }
.qpilot-auto-toggle.on { border-color: #c9d1fb; color: #3d4fc9; background: #eef1ff; }

/* ---- Sohbet → Kişiler: müşteri yazışmaları (chat.js; yazışma ekranı messages.js #msgView) */
.nav-count.contact.has-unread { min-width: 18px; padding: 1px 6px; border-radius: 9px; color: #fff; background: #1f9d63; font-weight: 700; text-align: center; }
.nav-count.contact:not(:empty) + .nav-count { margin-left: 4px; }
.chat-subfilters { display: flex; flex: none; flex-wrap: wrap; gap: 4px; padding: 0 14px 10px; }
.chat-subfilters button { padding: 2px 7px; border: 1px solid #dcefe5; border-radius: 12px; color: #4f7a64; background: #f6fcf9; font-size: 10.5px; font-weight: 600; }
.chat-subfilters button.active { border-color: #1f9d63; color: #fff; background: #1f9d63; }
.chat-avatar.is-contact { background: linear-gradient(135deg, #3cb68a, #1f8f62); }
.chat-room-item.is-contact.active { background: #e3f5ec; }
.chat-room-item.is-contact:hover { background: #eef8f3; }
.chat-room-item.is-contact.unread .chat-room-line time { color: #1f9d63; }
.chat-badge.contact { background: #1f9d63; }
.chat-await { flex: none; color: #d08a12; font-size: 12px; font-weight: 700; }
.chat-room-company { overflow: hidden; color: #9a9db0; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.chat-ch { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-right: 4px; border-radius: 3px; color: #fff; background: var(--purple);
  font: 700 9px/1 Arial, sans-serif; vertical-align: 1px; }
.chat-ch.ch-whatsapp { background: #25d366; }
.chat-ch.ch-linkedin { background: #0a66c2; }
.chat-ch.ch-note { background: #c99a06; }
.chat-found-ch { display: inline-flex; flex: none; gap: 1px; }
.chat-list-section { margin: 12px 8px 4px; color: #8d90a3; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.chat-empty.small { padding: 8px 12px; font-size: 11.5px; text-align: left; }
.chat-list-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 16px); margin: 6px 8px 10px; padding: 8px 10px; border: 1px dashed #dcdcec; border-radius: 8px; color: var(--purple); background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; }
.chat-list-more:hover { border-color: #c9c3f3; background: rgba(104,87,223,.06); }
.chat-list-more small { color: #8d90a3; font-weight: 500; }

.chat-contact { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-contact-body { position: relative; display: flex; flex: 1; min-height: 0; }
.chat-contact-conv { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; padding: 10px 14px 12px; background: #fbfbfe; }
.chat-contact-info { position: relative; display: flex; flex: 0 0 300px; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: #fff; }
.cc-panel { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 14px 16px; }
.cc-panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 14px; border-bottom: 1px solid #eef0f5; color: #8d90a3; font-size: 11px; font-weight: 600; }
.cc-collapse { padding: 2px 8px; font-size: 15px; line-height: 1; }
.cc-collapse:hover { color: var(--purple); background: #f0efff; }
/* Daraltılmış: ince şerit; tıklayınca açılır. */
.cc-rail { display: none; flex: 1; flex-direction: column; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; color: #8d90a3; background: #fbfbfe; cursor: pointer; }
.cc-rail:hover { color: var(--purple); background: #f6f5ff; }
.cc-rail-arrow { font-size: 15px; line-height: 1; }
.cc-rail-text { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.chat-contact:not(.info-open) .chat-contact-info { flex-basis: 34px; }
.chat-contact:not(.info-open) .cc-rail { display: flex; }
.chat-contact:not(.info-open) .cc-panel, .chat-contact:not(.info-open) .cc-panel-bar { display: none; }
.chat-cc-company { color: var(--purple); text-decoration: none; }
.chat-cc-company:hover { text-decoration: underline; }
.chat-cc-deals { border-color: #f4d9a8; color: #a35d00; background: #fff8ec; }
.chat-cc-info-toggle.active { border-color: var(--purple); color: var(--purple); background: #f0efff; }
.chat-back { display: none; }
/* E-posta modunda (konu, CC, ekler, biçimli editör) yazma alanı kısa pencerede sohbet kutusundan taşıp Gönder'i
   kesiyordu (kutu overflow: hidden). Yer varken yazışma listesi boşluğu doldurur; yetmezse liste en kısa boyuna
   iner ve sütunun tamamı kayar, Gönder her zaman kaydırılarak erişilebilir. Liste flex-basis'i 0px olmalı (0% olursa
   içerik boyunu alır ve tüm mesajlar sütunu uzatır). */
.chat-contact-conv { overflow-y: auto; }
.msg-view.in-chat { display: flex; flex: 1 0 auto; flex-direction: column; }
.msg-view.in-chat .msg-timeline { flex: 1 1 0px; height: auto; min-height: 140px; background: #f4f5fa; }
.msg-view.in-chat .msg-composer textarea { min-height: 56px; }
@media (max-height: 760px) { .msg-view.in-chat .msg-timeline { min-height: 90px; } }

.cc-section { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #eef0f5; }
.cc-section:last-child { border-bottom: 0; }
.cc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cc-section h3 { display: flex; align-items: center; gap: 6px; margin: 0; color: #8d90a3; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cc-company-name { padding: 0; border: 0; color: #262a40; background: none; font: 700 15px Manrope, sans-serif; text-align: left; cursor: pointer; }
.cc-company-name:hover { color: var(--purple); }
.cc-domain { color: #9a9db0; font-size: 11.5px; }
.cc-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0 0; font-size: 12px; }
.cc-facts dt { color: #9a9db0; }
.cc-facts dd { margin: 0; color: #3b3f55; }
.cc-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 12px; }
.cc-links a { color: var(--purple); text-decoration: none; }
.cc-prev { margin-top: 6px; color: #77798a; font-size: 11.5px; }
.cc-none { margin: 4px 0; font-size: 12px; }
.cc-deal { margin-bottom: 8px; padding: 9px 10px; border: 1px solid #e8e9f1; border-radius: 9px; background: #fcfcfe; }
.cc-deal-top { display: flex; align-items: flex-start; gap: 6px; }
.cc-deal-title { flex: 1; padding: 0; border: 0; color: #262a40; background: none; font-size: 13px; font-weight: 700; line-height: 1.3; text-align: left; cursor: pointer; }
.cc-deal-title:hover { color: var(--purple); }
.cc-deal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; margin-top: 4px; color: #6d7186; font-size: 11.5px; }
.cc-deal-meta b { color: #3b3f55; }
.cc-stage { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 10px; background: #f0f1f6; color: #4d5166; font-weight: 600; }
.cc-sep { color: #c6c8d4; }
.cc-overdue { color: #b42323; font-weight: 600; }
.cc-deal-co { margin-top: 3px; color: #8d90a3; font-size: 11px; }
.cc-next { margin-top: 5px; color: #3b3f55; font-size: 11.5px; }
.cc-next.overdue { color: #b42323; font-weight: 600; }
.cc-next.none { color: #b0b3c2; }
.cc-deal-actions { display: flex; gap: 12px; margin-top: 6px; font-size: 11.5px; }
.cc-deal-actions a { color: var(--purple); text-decoration: none; }
.cc-closed-list summary { margin-top: 4px; color: #77798a; font-size: 12px; cursor: pointer; }
.cc-closed { display: flex; align-items: baseline; gap: 6px; width: 100%; padding: 5px 2px; border: 0; border-bottom: 1px dashed #eef0f5; background: none; font-size: 12px; text-align: left; cursor: pointer; }
.cc-closed:hover .cc-closed-title { color: var(--purple); }
.cc-closed.won > span:first-child { color: #1f7a4f; font-weight: 700; }
.cc-closed.lost > span:first-child { color: #b42323; font-weight: 700; }
.cc-closed-title { flex: 1; min-width: 0; overflow: hidden; color: #3b3f55; text-overflow: ellipsis; white-space: nowrap; }
.cc-closed small { flex: none; color: #9a9db0; }

@media (max-width: 1250px) {
  .chat-contact.info-open .chat-contact-info { position: absolute; inset: 0 0 0 auto; z-index: 4; width: min(320px, 92%); box-shadow: -10px 0 28px #1d1f3a1f; }
}
@media (max-width: 900px) {
  .chat-back { display: inline-grid; }
  .chat-contact-head .chat-room-actions .button:not(.chat-cc-info-toggle):not(.chat-cc-call) { display: none; }
  .chat-contact:not(.info-open) .chat-contact-info { display: none; } /* telefonda şerit yok; başlıktaki düğme açar */
}

/* ---- Ctrl+K hızlı arama */
.quick-search-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: #191a2d66; }
.quick-search-backdrop.hidden { display: none; }
.quick-search { display: flex; flex-direction: column; width: min(620px, 100%); max-height: 70vh; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 24px 60px #1d1f3a4d; }
.quick-search-input { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: #8d90a3; font-size: 18px; }
.quick-search-input input { flex: 1; min-width: 0; height: 30px; border: 0; outline: 0; color: #262a40; font: inherit; font-size: 15px; }
.quick-search-input input::-webkit-search-cancel-button { display: none; }
.quick-search kbd { padding: 1px 6px; border: 1px solid #dfe1ea; border-bottom-width: 2px; border-radius: 5px; color: #6d7186; background: #f7f7fb; font-size: 10.5px; font-weight: 600; font-family: inherit; }
.quick-search-results { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 8px 10px; }
.qs-section { margin: 10px 8px 4px; color: #8d90a3; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.qs-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 9px; border: 0; border-radius: 8px; color: inherit; background: none; text-align: left; cursor: pointer; }
.qs-item.active { background: #efedff; }
.qs-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.qs-text b { overflow: hidden; color: #262a40; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.qs-text small { overflow: hidden; color: #8d90a3; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.qs-kind { flex: none; color: #b0b3c2; font-size: 10.5px; }
.qs-empty { padding: 22px 12px; color: #8d90a3; font-size: 12.5px; text-align: center; }
.qs-empty.small { padding: 6px 12px; text-align: left; font-size: 11.5px; }
.quick-search-foot { display: flex; flex-wrap: wrap; gap: 14px; padding: 8px 16px; border-top: 1px solid var(--line); color: #8d90a3; background: #fafafd; font-size: 11px; }
.quick-search-foot kbd { margin-right: 2px; }

/* ---- Ctrl+Q: QPilot'a sor (assistant.js) */
.qpilot-quick { z-index: 61; }
.qpilot-quick-head { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px 4px; color: #262a40; font-size: 14px; }
.qpilot-quick-icon { color: #6c5ce7; }
.qpilot-quick-head small { color: #8d90a3; font-size: 11.5px; }
.qpilot-quick-form { display: flex; align-items: flex-end; gap: 10px; padding: 8px 16px 14px; }
.qpilot-quick-form textarea { flex: 1; min-width: 0; min-height: 72px; max-height: 40vh; padding: 9px 11px; border: 1px solid #dfe1ea; border-radius: 10px; outline: 0; color: #262a40; font: inherit; font-size: 14px; resize: vertical; }
.qpilot-quick-form textarea:focus { border-color: #8f84f0; box-shadow: 0 0 0 3px #efedff; }
.chat-badge.contact.muted { background: #b5b7c6; }

/* Zamanlanmış QPilot görevleri (kişisel QPilot sohbeti → ⏱ Görevler) */
.qpilot-schedule-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.qpilot-schedule { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--line, #e3e6ee); border-radius: 10px; }
.qpilot-schedule-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qpilot-schedule-main small { display: block; overflow-wrap: anywhere; }
.qpilot-schedule-main .status-pill { margin-left: 6px; }
.qpilot-schedule-actions { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 760px) { .qpilot-schedule { flex-direction: column; } }

/* 🎤 Sesle yaz (voice-input.js): sohbet odası ve kişi yazışmaları yazma alanları. */
.voice-mic { display: inline-grid; place-items: center; color: var(--purple); cursor: pointer; }
.voice-mic.listening { color: #fff !important; background: #d64545 !important; border-color: #d64545 !important; animation: voice-mic-pulse 1.2s ease-in-out infinite; }
.voice-listening, .voice-listening:focus { border-color: #d64545 !important; box-shadow: 0 0 0 3px #d6454514 !important; }
@keyframes voice-mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 #d6454566; } 50% { box-shadow: 0 0 0 6px #d6454500; } }
@media (prefers-reduced-motion: reduce) { .voice-mic.listening { animation: none; } }
.chat-compose-row .chat-mic { color: var(--purple); }
.msg-composer-actions .msg-mic { width: 38px; margin-left: 0; padding: 0; }
.msg-composer-actions .msg-mic + .form-error { margin-left: 0; }
