/* Kaynak: chat.php (sayfa içi <style>), 05.11.2026'da sayfadan taşındı.
   Bu dosyayı sayfa, aynı yerde <link> ile yükler; kuralların uygulanma sırası değişmedi. */
  .ch-search { display:flex; align-items:center; gap:10px; padding:0 14px; height:42px; background: var(--bg-card); border:1.5px solid var(--border); border-radius:10px; max-width:520px; margin-bottom:18px; }
  .ch-search input { flex:1; border:none; outline:none; background:transparent; font-family:'Inter',sans-serif; font-size:14px; color: var(--fg-1); }
  .ch-search input::placeholder { color: var(--fg-5); }

  .ch-list { display:flex; flex-direction:column; gap:8px; max-width: 920px; }

  .ch-item { display:flex; align-items:flex-start; gap:14px; padding:14px 16px; background: var(--bg-card); border:1.5px solid var(--border); border-radius:12px; transition: all 150ms; cursor:pointer; text-decoration:none; color:inherit; }
  .ch-item:hover { border-color: var(--brand-mid); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
  .ch-item__icon { width:38px; height:38px; border-radius:9px; background: var(--brand-tint); color: var(--brand); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .ch-item__body { flex:1; min-width:0; }
  .ch-item__title { font-family:'Inter',sans-serif; font-size:14px; font-weight:700; color: var(--fg-1); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ch-item__preview { font-size:12.5px; color: var(--fg-4); margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ch-item__meta { flex-shrink:0; text-align:right; }
  .ch-item__date { font-size:11.5px; color: var(--fg-4); font-weight:600; }
  .ch-item__time { font-size:11px; color: var(--fg-5); margin-top:1px; }
  .ch-item__actions { display:flex; align-items:center; gap:4px; flex-shrink:0; opacity:0; transition: opacity 150ms; }
  .ch-item:hover .ch-item__actions { opacity:1; }
  .ch-item.is-renaming .ch-item__actions { opacity:1; }
  .ch-btn { padding:5px 10px; border-radius:7px; border:1.5px solid var(--border); background: var(--bg-subtle); color: var(--fg-3); font-family:'Inter',sans-serif; font-size:11.5px; font-weight:700; cursor:pointer; transition: all 150ms; white-space:nowrap; }
  .ch-btn:hover { border-color: var(--brand-mid); color: var(--brand); background: var(--brand-tint); }
  .ch-btn--save { border-color:#86EFAC; color:#16A34A; background:#DCFCE7; }
  .ch-btn--save:hover { background:#BBF7D0; }
  .ch-btn--del { border-color: rgba(239,68,68,0.25); color:#DC2626; background: rgba(239,68,68,0.08); padding:5px 8px; }
  .ch-btn--del:hover { background: rgba(239,68,68,0.14); }
  .ch-title-input { width:100%; border:1.5px solid var(--brand); border-radius:6px; padding:5px 9px; font-family:'Inter',sans-serif; font-size:14px; font-weight:700; color: var(--fg-1); outline:none; background: var(--bg-card); }
  .ch-title-input:focus { box-shadow: 0 0 0 3px rgba(107,80,232,0.13); }

  .ch-empty, .ch-no-match { text-align:center; padding:48px 24px; background: var(--bg-card); border:1px dashed var(--border); border-radius:12px; }
  .ch-empty__icon { font-size:40px; margin-bottom:10px; }
  .ch-empty__title { font-family:'Inter',sans-serif; font-size:16px; font-weight:700; color: var(--brand-deep); margin-bottom:6px; }
  .ch-empty__sub { font-size:13px; color: var(--fg-4); margin-bottom:18px; }

  /* Delete modal — reuse ai-agent style */
  .ch-modal { position: fixed; inset: 0; background: rgba(15,23,42,0.45); display:none; align-items:center; justify-content:center; z-index:9999; }
  .ch-modal.is-open { display:flex; }
  .ch-modal__box { width:360px; max-width:90vw; background: var(--bg-card); border-radius:14px; padding:24px; box-shadow:0 24px 60px rgba(0,0,0,0.25); text-align:center; }
  .ch-modal__icon { font-size:34px; margin-bottom:8px; }
  .ch-modal__title { font-family:'Inter',sans-serif; font-weight:700; font-size:18px; color: var(--brand-deep); }
  .ch-modal__desc { font-size:13px; color: var(--fg-3); margin-top:6px; }
  .ch-modal__actions { display:flex; gap:8px; margin-top:16px; }
  .ch-modal__btn { flex:1; padding:9px 12px; border-radius:9px; border:1.5px solid var(--border); background: var(--bg-subtle); color: var(--fg-2); font-family:'Inter',sans-serif; font-weight:700; font-size:13px; cursor:pointer; }
  .ch-modal__btn--danger { background:#EF4444; border-color:#EF4444; color:#fff; }
