/* ================================================================
   南鱼 · 独立聊天页样式
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #06080d;
  --bg-secondary: #0d1117;
  --bg-card: #111827;
  --bg-elevated: #1c2438;
  --border: #1e293b;
  --border-light: #2a3444;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --green: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary); color: var(--text-primary); font-size: 14px;
}

.chat-app { display: flex; height: 100vh; overflow: hidden; }

/* ---------- 侧边栏 ---------- */
.chat-sidebar {
  width: 260px; min-width: 260px; background: var(--bg-secondary);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  position: relative; z-index: 10;
}
.sidebar-header {
  padding: 16px; border-bottom: 1px solid var(--border); display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
}
.brand-link {
  display: flex; align-items: center; gap: 8px; color: var(--text-primary);
  text-decoration: none; font-weight: 700; font-size: 16px;
}
.brand-icon { font-size: 24px; }
.brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-new-chat {
  padding: 8px 12px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
  background: rgba(245,158,11,.1); color: var(--accent-light); border: 1px solid rgba(245,158,11,.2);
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.btn-new-chat:hover { background: rgba(245,158,11,.2); }

.conversation-list { flex: 1; overflow-y: auto; padding: 12px; }
.empty-list { color: var(--text-muted); font-size: 13px; text-align: center; padding: 40px 0; }

/* 对话项：标题和日期同行 */
.conv-item {
  padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 6px;
  transition: var(--transition); display: flex; align-items: center; gap: 6px;
  position: relative;
}
.conv-item:hover { background: rgba(255,255,255,.04); }
.conv-item.active { background: rgba(59,130,246,.12); border-left: 3px solid var(--blue); }
.conv-row {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  cursor: pointer; overflow: hidden;
}
.conv-title {
  font-size: 13px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.conv-time {
  font-size: 11px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}

/* 三点菜单按钮（精简） */
.conv-dot-menu { position: relative; flex-shrink: 0; }
.conv-dot-btn {
  width: 24px; height: 24px; border-radius: 4px; background: transparent;
  border: none; color: var(--text-muted); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); line-height: 1; opacity: 0;
}
.conv-item:hover .conv-dot-btn { opacity: 1; }
.conv-dot-btn:hover { background: rgba(255,255,255,.08); color: var(--text-primary); }

/* ---- 侧边栏面板（右键菜单替代方案） ---- */
.conv-side-panel {
  position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
  background: var(--bg-secondary); border-left: 1px solid var(--border);
  z-index: 200; transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.5);
}
.conv-side-panel.open { transform: translateX(0); }
.panel-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 199;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.panel-overlay.show { opacity: 1; pointer-events: auto; }

.panel-header {
  height: 56px; padding: 0 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.panel-close {
  width: 30px; height: 30px; border-radius: 6px; background: transparent;
  border: 1px solid var(--border); color: var(--text-muted); font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.panel-close:hover { background: rgba(255,255,255,.05); color: var(--text-primary); }

.panel-info {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.panel-info .pi-name { font-size: 14px; color: var(--text-primary); font-weight: 600; margin-bottom: 4px; word-break: break-all; }
.panel-info .pi-time { font-size: 12px; color: var(--text-muted); }
.panel-info .pi-msg-count { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.panel-actions {
  flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px;
}
.panel-action {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px;
  background: transparent; border: none; color: var(--text-secondary); font-size: 14px;
  cursor: pointer; transition: var(--transition); text-align: left; width: 100%;
}
.panel-action:hover { background: rgba(255,255,255,.04); color: var(--text-primary); }
.panel-action.danger:hover { background: rgba(239,68,68,.1); color: #ef4444; }
.panel-action-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }

.panel-footer {
  padding: 12px 10px; border-top: 1px solid var(--border);
}
.panel-footer .panel-action { color: var(--text-muted); font-size: 13px; }

.sidebar-footer {
  padding: 14px 16px; border-top: 1px solid var(--border); display: flex;
  align-items: center; justify-content: space-between; gap: 10px;
}
.sidebar-footer .points-badge {
  font-size: 13px; color: var(--accent-light); font-weight: 600;
  background: rgba(245,158,11,.1); padding: 6px 10px; border-radius: 20px;
}
.sidebar-footer .user-name { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 主聊天区 ---------- */
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-header {
  height: 64px; padding: 0 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; background: rgba(6,8,13,.85); backdrop-filter: blur(12px);
}
.chat-title { display: flex; align-items: center; gap: 12px; }
.nanyu-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(245,158,11,.12); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.chat-title h1 { font-size: 16px; font-weight: 700; }
.chat-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.chat-actions { display: flex; align-items: center; gap: 12px; }
.source-indicator {
  font-size: 12px; color: var(--accent-light); background: rgba(245,158,11,.08);
  padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(245,158,11,.15);
}
.btn-icon {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.05); color: var(--text-secondary);
  border: 1px solid var(--border); cursor: pointer; transition: var(--transition); font-size: 16px;
}
.btn-icon:hover { background: rgba(255,255,255,.1); color: var(--text-primary); }

.chat-messages { flex: 1; overflow-y: auto; padding: 24px; background: var(--bg-primary); }

/* Welcome */
.chat-welcome { text-align: center; padding: 60px 20px; max-width: 560px; margin: 0 auto; }
.welcome-icon { font-size: 64px; margin-bottom: 16px; }
.chat-welcome h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.chat-welcome p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }
.suggestion-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.suggestion-chips button {
  padding: 8px 16px; border-radius: 20px; font-size: 13px; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.suggestion-chips button:hover { border-color: var(--accent); color: var(--accent); background: rgba(245,158,11,.05); }

.chat-resume { text-align: center; padding: 80px 20px; max-width: 560px; margin: 0 auto; }
.resume-icon { font-size: 48px; margin-bottom: 12px; }
.chat-resume h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.chat-resume p { color: var(--text-muted); font-size: 13px; }

/* Messages */
.chat-msg { display: flex; gap: 12px; margin-bottom: 20px; animation: msgIn .3s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.chat-msg.user { flex-direction: row-reverse; }
.ai-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(245,158,11,.12); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.chat-msg.user .ai-avatar { display: none; }
.chat-msg-content { max-width: 80%; min-width: 60px; }
.chat-msg.user .chat-msg-content { text-align: right; }
.msg-text {
  padding: 12px 16px; border-radius: var(--radius-lg); font-size: 14px; line-height: 1.7;
  display: inline-block; text-align: left;
}
.chat-msg.user .msg-text { background: rgba(59,130,246,.15); color: var(--blue-light); border-bottom-right-radius: 4px; }
.chat-msg.ai .msg-text { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); border-bottom-left-radius: 4px; }

/* Pending typing */
.chat-msg.pending .msg-text { background: rgba(255,255,255,.03); border: 1px dashed var(--border); color: var(--text-muted); font-style: italic; }
.typing-indicator { display: inline-flex; gap: 4px; align-items: center; margin-right: 8px; }
.typing-indicator span { width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%; animation: typing 1.4s infinite both; }
.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,80%,100% { transform: scale(0.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* Markdown in messages */
.chat-msg.ai .markdown-body { color: var(--text-secondary); }
.chat-msg.ai .markdown-body p { margin: 8px 0; }
.chat-msg.ai .markdown-body h1, .chat-msg.ai .markdown-body h2, .chat-msg.ai .markdown-body h3, .chat-msg.ai .markdown-body h4 { color: var(--accent-light); margin: 14px 0 8px; font-size: 15px; }
.chat-msg.ai .markdown-body ul, .chat-msg.ai .markdown-body ol { margin: 8px 0 8px 16px; padding-left: 0; }
.chat-msg.ai .markdown-body li { margin: 4px 0; }
.chat-msg.ai .markdown-body pre { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; overflow-x: auto; font-size: 12px; }
.chat-msg.ai .markdown-body code.code-inline { background: var(--bg-elevated); color: var(--accent-light); padding: 2px 5px; border-radius: 4px; font-size: 12px; }
.chat-msg.ai .markdown-body a { color: var(--blue-light); text-decoration: underline; }
.chat-msg.ai .markdown-body blockquote { border-left: 3px solid var(--accent); background: rgba(245,158,11,.08); padding: 8px 14px; border-radius: 0 8px 8px 0; margin: 10px 0; }

/* Thinking block */
.thinking-block { margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: rgba(255,255,255,.02); }
.thinking-toggle {
  width: 100%; padding: 8px 12px; background: transparent; color: var(--text-muted); font-size: 12px;
  display: flex; align-items: center; gap: 8px; cursor: pointer; border: none; text-align: left;
}
.thinking-toggle:hover { color: var(--text-secondary); background: rgba(255,255,255,.03); }
.thinking-icon { font-size: 10px; transition: var(--transition); }
.thinking-text { flex: 1; }
.thinking-arrow { font-size: 14px; color: var(--text-muted); }
.thinking-content { padding: 10px 14px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }

/* Source bar */
.source-bar { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.source-item {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 500; border: 1px solid var(--border); cursor: pointer;
  transition: var(--transition); user-select: none;
}
.source-item.kb { background: rgba(59,130,246,.1); color: var(--blue-light); border-color: rgba(59,130,246,.2); }
.source-item.kb:hover { background: rgba(59,130,246,.2); border-color: rgba(59,130,246,.35); }
.source-item.kb.expanded { background: rgba(59,130,246,.18); border-color: var(--blue-light); box-shadow: 0 0 0 2px rgba(59,130,246,.15); }
.source-item.web { background: rgba(16,185,129,.1); color: var(--green); border-color: rgba(16,185,129,.2); cursor: default; }
.source-icon { font-size: 11px; }
.source-arrow { font-size: 10px; margin-left: 2px; transition: transform .2s; }
.source-item.kb.expanded .source-arrow { transform: rotate(180deg); }

/* Knowledge base docs block (collapsible, inside source area) */
.kb-docs-block {
  display: none; margin-top: 8px;
  padding: 10px 14px;
  background: rgba(59,130,246,.04);
  border: 1px solid rgba(59,130,246,.15);
  border-radius: var(--radius-sm);
}
.kb-docs-block.open { display: block; }
.kb-docs-list {
  margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px;
}
.kb-doc-item {
  padding: 8px 10px;
  background: rgba(15,23,42,.4);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  border-left: 3px solid rgba(59,130,246,.35);
}
.kb-doc-name { font-weight: 600; color: #93c5fd; }
.kb-doc-score { font-size: 10px; color: var(--text-muted); margin-left: 6px; }
.kb-doc-snippet {
  margin-top: 4px; font-size: 11px; color: var(--text-muted);
  line-height: 1.5; white-space: pre-wrap; overflow: hidden; max-height: 48px;
}

/* Reference list (联网来源引用) */
.refs-block { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 8px; }
.refs-title { color: var(--text-muted); font-size: 12px; margin-bottom: 6px; font-weight: 500; }
.refs-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ref-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; }
.ref-title { color: var(--blue-light); text-decoration: none; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-title:hover { text-decoration: underline; }
.ref-domain { color: var(--text-muted); font-size: 11px; flex-shrink: 0; }

/* Feedback bar */
.feedback-bar { margin-top: 10px; display: flex; align-items: center; gap: 6px; position: relative; }
.feedback-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.feedback-btn:hover:not(:disabled) {
  background: rgba(245,158,11,.1); border-color: var(--accent); color: var(--accent-light);
  transform: translateY(-1px);
}
.feedback-btn.active { background: var(--accent); border-color: var(--accent); color: #0f172a; }
.feedback-btn:disabled { cursor: not-allowed; opacity: .5; }
.feedback-status { font-size: 12px; color: var(--green); margin-left: 8px; }

/* ---- v1.3 追问问题按钮 ---- */
.follow-up-bar {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.follow-up-label {
  font-size: 12px;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.follow-up-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.follow-up-btn {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.follow-up-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--accent-light);
  transform: translateY(-1px);
}
.follow-up-btn:active {
  transform: scale(0.97);
}

/* Message dot menu */
.msg-dot-menu { position: absolute; top: 0; right: 0; z-index: 10; opacity: 0; transition: opacity .2s; }
.chat-msg.ai:hover .msg-dot-menu, .feedback-bar:hover .msg-dot-menu { opacity: 1; }
.msg-dot-btn {
  width: 24px; height: 24px; border-radius: 4px; background: var(--bg-elevated);
  border: 1px solid var(--border); color: var(--text-muted); font-size: 14px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.msg-dot-btn:hover { background: var(--bg-card); color: var(--text-primary); border-color: var(--accent); }

/* Input area */
.chat-input-area {
  padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg-secondary);
}
.input-wrapper { display: flex; gap: 10px; max-width: 900px; margin: 0 auto; }
.input-wrapper input {
  flex: 1; padding: 14px 18px; border-radius: 24px; background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 15px; outline: none; transition: var(--transition);
}
.input-wrapper input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,158,11,.1); }
.input-wrapper input::placeholder { color: var(--text-muted); }
.input-wrapper button {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #0f172a;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.input-wrapper button:hover { background: var(--accent-light); transform: translateY(-1px); }
.input-wrapper button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.input-hint { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* ---- 语音输入按钮 ---- */
.btn-voice {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
  user-select: none; -webkit-user-select: none;
}
.btn-voice:hover {
  border-color: var(--accent); color: var(--accent-light);
  background: rgba(245, 158, 11, 0.08);
}
.btn-voice.recording {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent);
  color: var(--accent-light);
  animation: voice-pulse 0.8s ease-in-out infinite;
}
.btn-voice:disabled {
  opacity: 0.4; cursor: not-allowed;
}

@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.voice-status {
  text-align: center; font-size: 13px;
  color: var(--accent-light);
  margin-top: 6px;
  display: none;
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---- #256 复合指令确认弹窗 ---- */
.multi-step-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.multi-step-modal {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  width: 500px; max-width: 92vw; max-height: 80vh;
  display: flex; flex-direction: column;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
.ms-header { text-align: center; margin-bottom: 16px; }
.ms-icon { font-size: 32px; }
.ms-header h2 { font-size: 18px; color: #e5e7eb; margin: 8px 0 4px; }
.ms-header p { font-size: 13px; color: var(--text-muted,#6b7280); }

.ms-body {
  flex: 1; overflow-y: auto;
  margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.ms-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; cursor: pointer;
  transition: border-color .15s;
}
.ms-step:hover { border-color: rgba(59,130,246,.4); }
.ms-step input[type=checkbox] { margin-top: 3px; accent-color: #3b82f6; width: 16px; height: 16px; flex-shrink: 0; }
.ms-num { color: #3b82f6; font-weight: 700; font-size: 13px; min-width: 24px; }
.ms-text { color: #d1d5db; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }

.ms-footer { display: flex; gap: 10px; justify-content: flex-end; }
.ms-btn { padding: 8px 20px; border-radius: 8px; font-size: 14px; cursor: pointer; border: none; transition: all .15s; }
.ms-btn-cancel { background: rgba(255,255,255,.06); color: #9ca3af; }
.ms-btn-cancel:hover { background: rgba(255,255,255,.12); }
.ms-btn-go { background: #3b82f6; color: #fff; font-weight: 600; }
.ms-btn-go:hover { background: #2563eb; }

/* ---- #257 视频链接卡片 ---- */
.video-link-card {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 10px;
  margin: 6px 0;
  text-decoration: none; color: inherit;
  transition: border-color .15s;
}
.video-link-card:hover { border-color: rgba(59,130,246,.5); }
.vlc-icon { font-size: 18px; margin-right: 4px; }
.vlc-thumb { width: 80px; height: 56px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.3); }
.vlc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vlc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vlc-title { font-size: 13px; font-weight: 600; color: #e5e7eb; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vlc-desc { font-size: 12px; color: #9ca3af; }
.vlc-domain { font-size: 11px; color: #6b7280; }

/* Responsive */
@media (max-width: 768px) {
  .chat-sidebar { display: none; }
  .chat-header { padding: 0 16px; }
  .source-indicator { display: none; }
  .chat-msg-content { max-width: 90%; }
  .conv-side-panel { width: 260px; }
  .input-wrapper input { font-size: 14px; }
}

@media (max-width: 480px) {
  .chat-messages { padding: 16px; }
  .chat-title h1 { font-size: 14px; }
  .chat-subtitle { font-size: 11px; }
  .msg-text { font-size: 13px; padding: 10px 12px; }
  .input-wrapper { gap: 8px; }
  .input-wrapper button { width: 44px; height: 44px; }
  .input-wrapper input { padding: 12px 14px; }
  .conv-side-panel { width: 100%; }
}