/* Professional SaaS-style chat + profile */
:root { --green-500: #10b981; --green-700:#047857; --muted:#6b7280; --bg:#f6f9f8; }
body { background: var(--bg); font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial; color:#0f172a; }
.cs-saas-grid { max-width:1200px; margin:24px auto; display:grid; grid-template-columns:260px 1fr; gap:18px; padding:0 18px; }
.cs-sidebar { background: linear-gradient(180deg,var(--green-700), #044e3c); color:#fff; border-radius:12px; padding:18px; min-height:420px; }
.cs-brand { font-weight:800; font-size:20px; margin-bottom:12px; color:#e6ffef; }
.cs-brand span { color:#c7f9e0; }
.cs-user { display:flex; gap:10px; align-items:center; margin-bottom:14px; }
.cs-avatar img { border-radius:50%; }
.cs-channels { margin-top:12px; }
.cs-channels ul { list-style:none; padding:0; margin:0; }
.cs-channel { padding:10px; border-radius:8px; margin-bottom:8px; cursor:pointer; transition:background .12s; display:flex; align-items:center; gap:8px; }
.cs-channel.active, .cs-channel:hover { background: rgba(255,255,255,0.06); }

.cs-main { background:#fff; border-radius:12px; padding:16px; box-shadow:0 8px 30px rgba(12,34,20,0.04); display:flex; flex-direction:column; min-height:420px; }
.cs-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.cs-messages { flex:1; overflow:auto; padding:14px; border-radius:10px; border:1px solid #eef8f4; background: linear-gradient(180deg,#fff,#f7fffa); }
.cs-message { padding:12px; border-radius:12px; background:#fff; margin-bottom:12px; box-shadow:0 6px 18px rgba(12,34,20,0.03); transition:transform .12s; }
.cs-message.pinned { border-left:4px solid var(--green-500); background:linear-gradient(90deg,#f6fff7,#fff); }
.cs-msg-head { display:flex; justify-content:space-between; color:var(--muted); margin-bottom:8px; font-size:13px; }
.cs-msg-body { font-size:15px; color:#0f172a; margin-bottom:8px; }
.cs-msg-actions button { background:transparent; border:0; cursor:pointer; margin-right:8px; font-size:14px; }

.cs-footer { margin-top:12px; position:relative; }
.cs-send-form { display:flex; gap:10px; align-items:center; }
.cs-input-wrapper { flex:1; }
#cs-message-input { width:100%; padding:12px 16px; border-radius:999px; border:1px solid #e6f1ec; font-size:15px; box-shadow:0 6px 18px rgba(16,185,129,0.04) inset; }
#cs-send-btn { padding:12px 18px; border-radius:999px; border:none; background:var(--green-500); color:#fff; cursor:pointer; box-shadow:0 8px 24px rgba(16,185,129,0.12); }

.cs-profile-wrap { max-width:900px; margin:18px auto; }
.cs-profile-card { background:#fff; border-radius:10px; padding:18px; box-shadow:0 8px 30px rgba(12,34,20,0.04); }
.cs-top { display:flex; gap:18px; align-items:center; margin-bottom:12px; }
.cs-avatar-large img { border-radius:12px; }
.cs-tabs { display:flex; gap:8px; margin-bottom:12px; }
.cs-tab { padding:8px 12px; border-radius:8px; border:1px solid #eef8f4; cursor:pointer; background:#fff; }
.cs-tab.active { background:var(--green-500); color:#fff; border-color:var(--green-500); }
.cs-badges { list-style:none; padding:0; display:flex; gap:8px; flex-wrap:wrap; }
.cs-badge { padding:6px 8px; border-radius:6px; background:#f1fff8; border:1px solid #e6f7ee; }

@media(max-width:900px){ .cs-saas-grid { grid-template-columns: 1fr; } .cs-sidebar { order:2 } .cs-main { order:1 } }
