/* ============================================================
   Kumpul AI — Premium Dark Theme v4
   Fixes: sidebar toggle, tools bar, TTS, KB status, icon buttons
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Design tokens ──────────────────────────────────────────── */
:root {
  --sidebar-w:     300px;
  --header-h:      54px;

  --bg-void:       #07091a;
  --bg-base:       #0b0e1f;
  --bg-sidebar:    #080b1c;
  --bg-card:       #111428;
  --bg-input:      #0f1225;
  --bg-active:     rgba(99,102,241,.12);
  --bg-hover:      rgba(255,255,255,.04);

  --accent:        #6366f1;
  --accent-light:  #818cf8;
  --violet:        #7c3aed;
  --teal:          #14b8a6;
  --amber:         #f59e0b;
  --rose:          #f43f5e;

  --text-primary:  #f0f1ff;
  --text-secondary:#a5accc;
  --text-muted:    #5c6491;

  --border:        rgba(255,255,255,.07);
  --border-accent: rgba(99,102,241,.35);
  --border-hover:  rgba(99,102,241,.5);

  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     22px;
}

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

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-void);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── App layout ─────────────────────────────────────────────── */
body {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  height: 100vh;
  overflow: hidden;               /* always hidden for collapse anim */
  /* Desktop: transition width for collapse */
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease;
  z-index: 10;
}

/* Desktop: collapsed state */
@media (min-width: 769px) {
  .sidebar.collapsed {
    width: 0;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
    border-right: none;
  }
}

/* Mobile: fixed slide-in */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    height: 100%;
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .sidebar.open {
    transform: translateX(0);
  }
}

/* ─── Sidebar head ──────────────────────────────────────────── */
.sidebar-head {
  padding: 18px 18px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
}
.logo-name { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.logo-tag  { font-size: 10px; color: var(--text-muted); letter-spacing: .05em; text-transform: uppercase; }

/* ─── New chat ──────────────────────────────────────────────── */
.new-chat-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 14px;
  padding: 8px 14px;
  background: var(--bg-active);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
  white-space: nowrap;
}
.new-chat-btn:hover { background: rgba(99,102,241,.2); }

/* ─── Model list ────────────────────────────────────────────── */
.models-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 18px 4px;
  flex-shrink: 0;
}

.models-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
  padding-bottom: 12px;
}
.models-scroll::-webkit-scrollbar { width: 4px; }
.models-scroll::-webkit-scrollbar-track { background: transparent; }
.models-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 9px; }

.model-group-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 18px 4px;
}

.model-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  margin: 1px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s;
}
.model-item:hover  { background: var(--bg-hover); }
.model-item.active { background: var(--bg-active); }

.model-icon     { font-size: 20px; flex-shrink: 0; }
.model-info     { flex: 1; min-width: 0; }
.model-name     { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-provider { font-size: 11px; color: var(--text-muted); }

/* ─── Badges ────────────────────────────────────────────────── */
.badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-fast     { background: rgba(20,184,166,.15); color: #2dd4bf; border: 1px solid rgba(20,184,166,.3); }
.badge-featured { background: rgba(245,158,11,.15);  color: #fcd34d; border: 1px solid rgba(245,158,11,.3); }
.badge-new      { background: rgba(99,102,241,.22);  color: #a5b4fc; border: 1px solid rgba(99,102,241,.4); }
.badge-speed    { background: rgba(244,63,94,.15);   color: #fb7185; border: 1px solid rgba(244,63,94,.3); }
.badge-creative { background: rgba(168,85,247,.18);  color: #d8b4fe; border: 1px solid rgba(168,85,247,.35); }
.badge-smart    { background: rgba(14,165,233,.15);  color: #7dd3fc; border: 1px solid rgba(14,165,233,.3); }
.badge-powerful { background: rgba(234,88,12,.15);   color: #fdba74; border: 1px solid rgba(234,88,12,.3); }
.badge-open     { background: rgba(34,197,94,.12);   color: #86efac; border: 1px solid rgba(34,197,94,.25); }

/* ════════════════════════════════════════════════════════════════
   MAIN
════════════════════════════════════════════════════════════════ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  background: var(--bg-base);
  position: relative;
}

/* ─── Header ────────────────────────────────────────────────── */
.header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(7,9,26,.8);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
  z-index: 5;
}

.menu-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}
.menu-btn:hover { border-color: var(--border-accent); color: var(--text-primary); }

.header-center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.active-model-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.header-right { display: flex; align-items: center; gap: 8px; }

.tools-indicator {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--teal);
  background: rgba(20,184,166,.1);
  border: 1px solid rgba(20,184,166,.25);
  border-radius: 99px;
  padding: 3px 10px;
  white-space: nowrap;
}
.tools-indicator.active { display: flex; }

/* ─── Chat area ─────────────────────────────────────────────── */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
  display: flex;
  flex-direction: column;
}
.chat-area::-webkit-scrollbar { width: 5px; }
.chat-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 9px; }

/* ─── Welcome screen ────────────────────────────────────────── */
.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 20px;
  animation: fadeIn .5s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.welcome-logo {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 8px 32px rgba(99,102,241,.4);
}
.welcome h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 7px; }
.welcome-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }

.suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 560px;
  width: 100%;
}
.suggestion-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: all .2s;
  line-height: 1.5;
}
.suggestion-btn:hover { border-color: var(--border-accent); color: var(--text-primary); background: var(--bg-hover); }

/* ─── Messages ──────────────────────────────────────────────── */
.messages {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 24px;
}

.msg-row {
  display: flex;
  animation: fadeSlideUp .3s ease both;
}
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.msg-row.user { justify-content: flex-end; }
.msg-row.ai   { justify-content: flex-start; }

.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(680px, 85%);
}

.msg-label { font-size: 11px; font-weight: 500; color: var(--text-muted); padding: 0 4px; }
.msg-row.user .msg-label { text-align: right; }

.msg-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.65;
  word-break: break-word;
}
.msg-row.user .msg-bubble {
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-row.ai .msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text-primary);
}

/* User text - pre-wrap for plain newlines */
.user-text { white-space: pre-wrap; word-break: break-word; }

/* Attach chip inside user bubble */
.attach-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 6px;
  opacity: .85;
}

/* Streaming cursor */
.streaming-cursor::after {
  content: '▋';
  color: var(--accent-light);
  animation: blink .7s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── Markdown content ──────────────────────────────────────── */
.md-content { line-height: 1.7; }
.md-content p { margin-bottom: .7em; }
.md-content p:last-child { margin-bottom: 0; }
.md-content h1,.md-content h2,.md-content h3,.md-content h4 {
  font-weight: 600; margin: 1.1em 0 .4em;
  line-height: 1.3; color: var(--text-primary);
}
.md-content h1 { font-size: 1.3em; }
.md-content h2 { font-size: 1.15em; }
.md-content h3 { font-size: 1em; }
.md-content ul,.md-content ol { padding-left: 1.4em; margin: .5em 0; }
.md-content li { margin: .25em 0; }
.md-content blockquote {
  border-left: 3px solid var(--border-accent);
  padding: .4em .9em;
  color: var(--text-secondary);
  margin: .6em 0;
  font-style: italic;
}
.md-content a { color: var(--accent-light); text-decoration: underline; word-break: break-all; }
.md-content code:not(.hljs) {
  background: rgba(99,102,241,.15);
  color: #c4b5fd;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .87em;
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
}
.md-content hr { border: none; border-top: 1px solid var(--border); margin: 1em 0; }
.md-content table { width: 100%; border-collapse: collapse; margin: .7em 0; font-size: .9em; }
.md-content th,.md-content td { padding: 6px 10px; border: 1px solid var(--border); }
.md-content th { background: var(--bg-active); font-weight: 600; }

/* ─── Code blocks ───────────────────────────────────────────── */
.code-block-wrapper {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: .8em 0;
  background: #0a0c1e;
}
.code-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--border);
}
.code-lang { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: lowercase; }
.code-copy {
  display: flex; align-items: center; gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
}
.code-copy:hover { border-color: var(--border-accent); color: var(--text-primary); }
.code-copy.copied { border-color: var(--teal); color: var(--teal); }
.code-block-wrapper pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
}
.code-block-wrapper code.hljs { background: transparent; padding: 0; }

/* ─── Bubble actions ────────────────────────────────────────── */
.bubble-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0 2px;
}

.copy-btn, .speak-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 9px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
}
.copy-btn:hover  { border-color: var(--border-accent); color: var(--text-primary); }
.copy-btn.copied { border-color: var(--teal); color: var(--teal); }

.speak-btn {
  border-color: rgba(99,102,241,.2);
  color: var(--accent-light);
  background: rgba(99,102,241,.08);
}
.speak-btn:hover   { background: rgba(99,102,241,.2); }
.speak-btn.playing { border-color: var(--rose); color: var(--rose); background: rgba(244,63,94,.1); }
.speak-btn:disabled { opacity: .5; cursor: wait; }

/* ─── Tool status messages ──────────────────────────────────── */
.tool-status-msg {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 0 6px;
}
.tool-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(99,102,241,.3);
  border-top-color: var(--accent-light);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Typing dots ───────────────────────────────────────────── */
.typing-dots {
  display: flex; gap: 4px; align-items: center; padding: 4px 0;
}
.typing-dots span {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,60%,100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ─── Error bubble ──────────────────────────────────────────── */
.error-bubble {
  color: #fca5a5;
  font-size: 13px;
  padding: 4px 0;
}

/* ════════════════════════════════════════════════════════════════
   INPUT AREA
════════════════════════════════════════════════════════════════ */
.input-area {
  flex-shrink: 0;
  padding: 10px 16px 12px;
  background: var(--bg-base);
  border-top: 1px solid var(--border);
}

/* ─── Tools bar ─────────────────────────────────────────────── */
.tools-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.tb-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.tool-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 11px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
  white-space: nowrap;
  user-select: none;
}
.tool-pill:hover  { border-color: var(--border-accent); color: var(--accent-light); background: var(--bg-active); }
.tool-pill.active {
  border-color: var(--accent);
  background: rgba(99,102,241,.2);
  color: #fff;
  box-shadow: 0 0 10px rgba(99,102,241,.25);
}

/* ─── KB status bar ─────────────────────────────────────────── */
.kb-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--teal);
  background: rgba(20,184,166,.08);
  border: 1px solid rgba(20,184,166,.25);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  margin-bottom: 7px;
}
.kb-clear {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
  transition: color .2s;
}
.kb-clear:hover { color: var(--rose); }

/* ─── Attach preview ────────────────────────────────────────── */
.attach-preview {
  display: none;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  margin-bottom: 7px;
  font-size: 12px;
  color: var(--accent-light);
}
.attach-preview-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-remove {
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px;
  transition: color .2s;
}
.attach-remove:hover { color: var(--rose); }

/* ─── Input box ─────────────────────────────────────────────── */
.input-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px 8px 8px 12px;
  transition: border-color .2s, box-shadow .2s;
  max-width: 840px;
  margin: 0 auto;
}
.input-box:focus-within {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}

#msgInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  max-height: 200px;
  min-height: 24px;
  padding: 3px 0;
}
#msgInput::placeholder { color: var(--text-muted); }

/* Icon buttons (attach, mic) */
.icon-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
  margin-bottom: 1px;
}
.icon-btn:hover { border-color: var(--border-accent); color: var(--accent-light); }
.icon-btn svg { width: 14px; height: 14px; }

/* Mic recording state */
.icon-btn.recording {
  border-color: var(--rose);
  color: var(--rose);
  background: rgba(244,63,94,.1);
  animation: pulse-red 1.2s infinite;
}
@keyframes pulse-red { 0%,100% { box-shadow: 0 0 0 0 rgba(244,63,94,.4); } 50% { box-shadow: 0 0 0 5px rgba(244,63,94,0); } }

.send-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
  box-shadow: 0 2px 12px rgba(99,102,241,.35);
}
.send-btn:hover { transform: scale(1.06); box-shadow: 0 4px 16px rgba(99,102,241,.5); }
.send-btn svg { width: 15px; height: 15px; }

.stop-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(244,63,94,.2);
  border: 1px solid rgba(244,63,94,.4);
  color: var(--rose);
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}
.stop-btn:hover { background: rgba(244,63,94,.35); }
.stop-btn svg { width: 13px; height: 13px; }

.input-footer {
  margin-top: 6px;
  text-align: center;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}
.disclaimer { font-size: 11px; color: var(--text-muted); }

/* ─── Icon helper ───────────────────────────────────────────── */
.ico { width: 12px; height: 12px; vertical-align: middle; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════
   SIDEBAR OVERLAY (mobile)
════════════════════════════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 150;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .suggestions { grid-template-columns: 1fr; }
  .header-center { justify-content: flex-start; }
  .tools-bar { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .welcome h1 { font-size: 22px; }
  .msg-bubble-wrap { max-width: 92%; }
  .input-area { padding: 8px 10px 10px; }
}
