/* Multilingual AI Assistant — frontend.
 *
 * Design language: dark, technical, terminal-adjacent. Monospace for UI chrome
 * (labels, badges, metadata, the document list); a clean sans-serif for the chat
 * body so long multilingual answers stay readable. Sharp corners, a single
 * restrained accent (terminal green) reserved for focus + primary actions, and a
 * faint grid texture on the background. One accent, used sparingly, is the rule.
 */

:root {
  --bg:        #0a0c10;
  --panel:     #0e1116;
  --panel-2:   #12151c;
  --surface:   #161a22;
  --surface-2: #1b202a;
  --border:    #232936;
  --border-2:  #2c3444;

  --text:      #e6e9f0;
  --text-dim:  #8b93a7;
  --text-mute: #5c6474;

  /* Terminal green — the single accent. */
  --accent:      #3ddc84;
  --accent-dim:  #2ba866;
  --accent-soft: rgba(61, 220, 132, 0.12);
  --accent-line: rgba(61, 220, 132, 0.35);

  --user:      #172a20;   /* deep green-tinted surface for the user's own turn */
  --user-line: #2f5c42;

  --error:     #ff6b6b;
  --error-soft: rgba(255, 107, 107, 0.10);
  --ok:        var(--accent);

  --radius:   6px;
  --radius-sm: 4px;

  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", "Menlo",
          "Consolas", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Telugu",
          "Noto Sans Devanagari", sans-serif;

  --sidebar-w: 264px;
}

/* Light mode: dark is the star, but keep a coherent light fallback. */
@media (prefers-color-scheme: light) {
  :root {
    --bg:        #eef0f4;
    --panel:     #ffffff;
    --panel-2:   #f5f6f9;
    --surface:   #ffffff;
    --surface-2: #eef0f5;
    --border:    #d9dde6;
    --border-2:  #c6ccd8;

    --text:      #161a22;
    --text-dim:  #566072;
    --text-mute: #8892a3;

    --accent:      #12996b;
    --accent-dim:  #0f7f59;
    --accent-soft: rgba(18, 153, 107, 0.10);
    --accent-line: rgba(18, 153, 107, 0.30);

    --user:      #e2f5ea;
    --user-line: #a8ddc2;

    --error:     #c0392b;
    --error-soft: rgba(192, 57, 43, 0.08);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Faint engineering-grid texture on the app background. */
body {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
  background-position: -1px -1px;
  background-attachment: fixed;
  opacity: 1;
}
body::before {
  /* Keep the grid extremely subtle by veiling it. */
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0.94;
  pointer-events: none;
  z-index: 0;
}

.mono-dim { font-family: var(--mono); color: var(--text-mute); }

/* ===================== APP SHELL ===================== */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100dvh;
  overflow: hidden;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 9, 0.6);
  z-index: 40;
  backdrop-filter: blur(1px);
}

/* ===================== SIDEBAR ===================== */
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-mark { color: var(--accent); font-size: 1.05rem; line-height: 1; }
.brand-name {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-dim { color: var(--text-mute); font-weight: 500; }

.side-section {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  overflow-y: auto;
}
/* Sections that share the leftover vertical space and scroll internally. */
.side-section.grow { flex: 1 1 auto; min-height: 0; }

.side-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 11px;
}
.side-count {
  font-family: var(--mono);
  font-size: 0.66rem;
  padding: 1px 7px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-dim);
  /* Pushed to the right edge of a summary row, which uses gap rather than
     space-between so the chevron and label stay together on the left. */
  margin-left: auto;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Language codes are conventionally lowercase, so opt out of the uppercasing the
   surrounding .side-label applies — "te-rom + en", not "TE-ROM + EN". */
#langSummary { text-transform: none; }
/* A pinned language reads as accented here, matching the picker inside. */
.side-count.manual { color: var(--accent); border-color: var(--accent-line); }

/* --- Collapsible sections ---------------------------------------------------
   Native <details>, so there is no toggle logic to write and no aria-expanded to
   keep in sync — script.js only remembers the state. */
.side-collapse {
  padding: 0;          /* padding moves onto the summary and body */
  overflow: visible;   /* the body does its own scrolling */
}
.side-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  margin: 0;           /* .side-label's bottom margin would gap the closed row */
  cursor: pointer;
  list-style: none;    /* hides the default disclosure triangle */
  transition: color 0.15s;
}
.side-summary::-webkit-details-marker { display: none; }
.side-summary:hover { color: var(--text-dim); }
.side-summary:focus-visible {
  outline: none;
  color: var(--text-dim);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
/* Same glyph and timing as the citation blocks under each reply. */
.side-chevron {
  color: var(--accent);
  transition: transform 0.15s;
  display: inline-block;
  line-height: 1;
}
.side-collapse[open] .side-chevron { transform: rotate(90deg); }
.side-collapse[open] .side-summary { color: var(--text-dim); }

.side-collapse-body {
  padding: 0 16px 16px;
  /* A long document list scrolls inside its own section rather than pushing the
     rest of the sidebar into an outer scrollbar. */
  max-height: 38vh;
  overflow-y: auto;
}

/* Dropzone / upload */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 16px 12px;
  text-align: center;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.dropzone:hover,
.dropzone:focus-visible { outline: none; border-color: var(--accent-line); color: var(--text); }
.dropzone.dragover {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-soft);
  color: var(--text);
}
.dropzone-icon {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  margin-bottom: 3px;
}
.dropzone-text { font-size: 0.82rem; }
.dropzone-text u { text-decoration-color: var(--accent); text-underline-offset: 2px; }
.dropzone-hint { font-family: var(--mono); font-size: 0.64rem; color: var(--text-mute); }

/* Document list */
.doc-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.doc-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}
.doc-row .doc-glyph { color: var(--accent); font-family: var(--mono); font-size: 0.8rem; }
.doc-row .doc-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-row .doc-chunks {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-mute);
  white-space: nowrap;
}
.doc-del {
  border: none;
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
}
.doc-del:hover { color: var(--error); background: var(--error-soft); }
.doc-del:disabled { opacity: 0.4; cursor: progress; }

.side-empty { font-size: 0.78rem; color: var(--text-mute); margin: 12px 0 0; }

.side-action {
  width: 100%;
  margin-top: 12px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.side-action:hover { color: var(--text); border-color: var(--border-2); }
.side-action.danger:hover { color: var(--error); border-color: var(--error); background: var(--error-soft); }
/* "New chat" is the one affirmative action in the sidebar, so it carries the accent. */
.side-action.primary { margin-top: 0; color: var(--accent); border-color: var(--accent-line); }
.side-action.primary:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* Conversation list — same row grammar as .doc-row so the two panels read alike. */
.conv-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.conv-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.conv-row:hover { border-color: var(--border-2); }
.conv-row.active { border-color: var(--accent-line); background: var(--accent-soft); }
.conv-row.active .conv-title { color: var(--accent); }
.conv-title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-time {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--text-mute);
  white-space: nowrap;
}
/* Same affordance as the per-document delete. */
.conv-del {
  border: none;
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
}
.conv-del:hover { color: var(--error); background: var(--error-soft); }
.conv-del:disabled { opacity: 0.4; cursor: progress; }

/* Language mode picker — styled as a sibling of .side-kv, not a browser default. */
.side-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.side-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.side-field-key {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.side-select {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.74rem;
  cursor: pointer;
  appearance: none;
}
.side-select:focus { outline: none; }
/* The dropdown list itself is OS-rendered, so set a readable pairing explicitly. */
.side-select option { background: var(--panel); color: var(--text); }
.side-field.manual { border-color: var(--accent-line); }
.side-field.manual .side-select { color: var(--accent); }

/* Language key/value */
.side-kv {
  display: flex; align-items: baseline; gap: 8px;
  padding: 9px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.kv-key { color: var(--text-mute); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; }
.kv-val { color: var(--text); }
.side-kv.active { border-color: var(--accent-line); }
.side-kv.active .kv-val { color: var(--accent); }
.side-note { font-size: 0.72rem; color: var(--text-mute); margin: 10px 0 0; line-height: 1.45; }

.sidebar-foot {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--panel-2);
}
.side-stat {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-mute);
  margin-top: 12px;
}

/* ===================== MAIN ===================== */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.topbar-title {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.topbar-badges { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: stretch;
  font-family: var(--mono);
  font-size: 0.68rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  white-space: nowrap;
}
.badge-key {
  background: var(--surface-2);
  color: var(--text-mute);
  padding: 3px 7px;
  border-right: 1px solid var(--border);
}
.badge-val { padding: 3px 8px; color: var(--text-dim); }
.badge.active { border-color: var(--accent-line); }
.badge.active .badge-val { color: var(--accent); }

.icon-btn {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); }
.drawer-only { display: none; }

/* ===================== MESSAGES ===================== */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px clamp(16px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Empty state */
.welcome { margin: auto 0; max-width: 640px; color: var(--text-dim); }
.welcome-glyph {
  font-size: 1.6rem;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 12px;
}
.welcome h2 { color: var(--text); font-size: 1.12rem; font-weight: 650; margin: 0 0 10px; }
.welcome p { margin: 0 0 18px; font-size: 0.92rem; }

.examples { display: flex; flex-wrap: wrap; gap: 8px; }
.example-btn {
  text-align: left;
  background: var(--surface);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--sans);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.example-btn:hover { border-color: var(--accent-line); color: var(--text); background: var(--surface-2); }

/* Message bubbles */
.msg { display: flex; flex-direction: column; max-width: min(680px, 84%); }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.assistant { align-self: flex-start; align-items: flex-start; }

.msg-role {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 5px;
  padding: 0 2px;
}
.msg.assistant .msg-role { color: var(--accent-dim); }

.bubble {
  padding: 12px 15px;
  border-radius: var(--radius);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}
.msg.user .bubble {
  background: var(--user);
  border: 1px solid var(--user-line);
  border-bottom-right-radius: var(--radius-sm);
}
.msg.assistant .bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-line);
  border-bottom-left-radius: var(--radius-sm);
}
.msg.error .bubble {
  background: var(--error-soft);
  border: 1px solid var(--error);
  border-left: 2px solid var(--error);
  color: var(--error);
}

/* Blinking caret while tokens stream in. */
.streaming .bubble::after {
  content: "▍";
  margin-left: 1px;
  animation: blink 1s steps(2, start) infinite;
  color: var(--accent);
}
@keyframes blink { to { visibility: hidden; } }

/* Metadata chips under an assistant message */
.msg-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
  font-family: var(--mono);
}
.chip {
  font-size: 0.64rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
}
.chip.cache { color: var(--accent); border-color: var(--accent-line); }

/* Per-message read-aloud control. Sized to sit in the chip row without breaking
 * its rhythm, so it reads as one of the chips until you hover it. */
.speak-btn {
  font-family: var(--mono);
  font-size: 0.64rem;
  line-height: 1;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.speak-btn:hover { color: var(--text); border-color: var(--border-2); }
.speak-btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.speak-btn.speaking {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
  /* Same pulse the mic button uses while recording; disabled under
   * prefers-reduced-motion by the blanket rule at the end of this file. */
  animation: pulse 1.2s ease-in-out infinite;
}

/* Expandable source/citation chip */
.sources { margin-top: 7px; font-family: var(--mono); }
.sources summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  font-size: 0.64rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  white-space: nowrap;
}
.sources summary::-webkit-details-marker { display: none; }
.sources summary::before {
  content: "▸";
  transition: transform 0.15s;
  display: inline-block;
}
.sources[open] summary::before { transform: rotate(90deg); }
.source-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 640px;
}
.source-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  padding: 8px 10px;
}
.source-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.64rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.source-item-head .src-name { color: var(--accent-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-item-head .src-score { color: var(--text-mute); white-space: nowrap; }
.source-preview {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ===================== STATUS BAR ===================== */
.status-bar {
  padding: 8px 18px;
  font-family: var(--mono);
  font-size: 0.74rem;
  border-top: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-bar::before { content: "›"; color: var(--accent); }
.status-bar.error { color: var(--error); }
.status-bar.error::before { content: "✕"; color: var(--error); }
.status-bar.ok { color: var(--accent); }
.status-bar.ok::before { content: "✓"; color: var(--accent); }

/* ===================== COMPOSER ===================== */
.composer {
  border-top: 1px solid var(--border);
  padding: 12px clamp(12px, 4vw, 28px) 16px;
  background: var(--panel);
}
.composer-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  max-width: 900px;
  margin: 0 auto;
}

.tool-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 1.02rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.tool-btn:hover { color: var(--text); border-color: var(--border-2); }
.tool-btn[aria-pressed="true"],
.tool-btn.recording {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.tool-btn.recording { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }

#input {
  flex: 1;
  resize: none;
  max-height: 168px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.5;
}
#input::placeholder { color: var(--text-mute); }
#input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.send-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #06120b;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.send-btn:hover { background: var(--accent-dim); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.send-caret { font-weight: 400; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    z-index: 50;
    top: 0; left: 0; bottom: 0;
    width: min(88vw, var(--sidebar-w));
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 2px 0 24px rgba(0, 0, 0, 0.4);
  }
  .app.drawer-open .sidebar { transform: translateX(0); }

  .drawer-only { display: grid; }

  .messages { padding: 18px 16px; }
  .msg { max-width: 92%; }
  .topbar-title { display: none; }

  /* 16px exactly, not 0.94rem (=14.6px): iOS Safari auto-zooms the page when a
     focused input is under 16px, and does not zoom back out afterwards. The
     select gets the same treatment for the same reason. */
  #input,
  .side-select { font-size: 16px; }
}

@media (max-width: 460px) {
  body { font-size: 15px; }
  .topbar-badges .badge-key { display: none; }
  .composer { padding: 10px 12px 12px; }
  .send-btn { padding: 0 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
