/* Reset */
*{box-sizing:border-box}
.chatv2-container{display:flex;flex-direction:column;height:100vh;max-height:100vh;background:#fff;border-radius:8px;overflow:hidden}
.chatv2-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#2563eb;color:#fff}
.chatv2-grid{display:grid;grid-template-columns:280px 1fr 320px;gap:12px;padding:12px;flex:1;align-items:start;background:#f3f4f6}
.chatv2-left,.chatv2-main,.chatv2-right{background:#fff;border-radius:8px;padding:12px;box-shadow:0 2px 8px rgba(0,0,0,0.04)}
.cv-input{width:100%;padding:8px;border-radius:8px;border:1px solid #e5e7eb}
.chatv2-list{max-height:70vh;overflow:auto}
.conv{padding:10px;border-radius:8px;border:1px solid transparent;display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;cursor:pointer}
.conv:hover{background:#f8fafc;border-color:#eef2ff}
.chatv2-messages{height:60vh;overflow:auto;padding:8px;background:#f8fafc;border-radius:8px}
.msg{margin-bottom:8px;display:flex}
.msg.me{justify-content:flex-end}
.bubble{padding:10px 12px;border-radius:14px;max-width:70%}
.msg.me .bubble{background:#2563eb;color:#fff;border-bottom-right-radius:4px}
.msg.other .bubble{background:#fff;border:1px solid #e6e6e6}
.chatv2-input{display:flex;gap:8px;padding:8px;border-top:1px solid #eee}
.chatv2-input input{flex:1;padding:10px;border-radius:20px;border:1px solid #e5e7eb}
.cv-file input{display:none}
.cv-send{background:#2563eb;color:#fff;padding:8px 12px;border-radius:8px;border:none}
.chatv2-profile{text-align:center}
.cv-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.45);z-index:9999}
.cv-toast{position:fixed;right:16px;bottom:16px;background:#111;color:#fff;padding:8px 12px;border-radius:8px;display:none}

/* responsive */
@media(max-width:900px){
  .chatv2-grid{grid-template-columns:1fr;grid-auto-rows:auto;padding:8px}
  .chatv2-left{order:1}
  .chatv2-main{order:2}
  .chatv2-right{order:3}
  .chatv2-header{font-size:14px}
}
