/* OnIt web UI — Claude-style chat interface. Light/dark via [data-theme]. */

:root {
  --bg: #faf9f5;
  --bg-panel: #f0eee6;
  --bg-hover: #e8e6dc;
  --bg-active: #e0ddd1;
  --bg-input: #ffffff;
  --bg-user-bubble: #f0eee6;
  --bg-code: #f6f6f4;
  --border: #dedcd1;
  --border-strong: #c9c6b8;
  --text: #1f1e1d;
  --text-muted: #6e6d66;
  --text-faint: #a3a196;
  --accent: #c96442;
  --accent-hover: #b4522f;
  --accent-fg: #ffffff;
  --danger: #c0392b;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --radius-lg: 16px;
  --radius-md: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #262624;
  --bg-panel: #1f1e1c;
  --bg-hover: #32312e;
  --bg-active: #3a3835;
  --bg-input: #30302e;
  --bg-user-bubble: #33322f;
  --bg-code: #1e1d1b;
  --border: #3d3c38;
  --border-strong: #4c4a45;
  --text: #eceae4;
  --text-muted: #a5a396;
  --text-faint: #706e64;
  --accent: #d97757;
  --accent-hover: #e08b6e;
  --accent-fg: #ffffff;
  --danger: #e07b6a;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

/* The hidden attribute must win over display rules on styled containers */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
}

button { font-family: var(--font); cursor: pointer; }
textarea { font-family: var(--font); }

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

/* ── Sidebar ─────────────────────────────────────────────────── */

.sidebar {
  width: 264px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: margin-left 0.2s ease;
}
.sidebar.collapsed { margin-left: -264px; }

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 8px 16px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 16px; }
.brand-mark { color: var(--accent); font-size: 18px; }

.new-chat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 12px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
}
.new-chat-btn:hover { background: var(--bg-hover); }

.sidebar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 16px 4px;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.clear-all-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-faint);
  cursor: pointer;
}
.clear-all-btn:hover { color: var(--text); text-decoration: underline; }

.session-list { flex: 1; overflow-y: auto; padding: 2px 8px 8px; }

.session-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13.5px;
  position: relative;
}
.session-item:hover { background: var(--bg-hover); color: var(--text); }
.session-item.active { background: var(--bg-active); color: var(--text); font-weight: 550; }
.session-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-busy {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.session-actions { display: none; gap: 2px; }
.session-item:hover .session-actions { display: flex; }
.session-action-btn {
  border: none; background: none; color: var(--text-faint);
  font-size: 12px; padding: 2px 4px; border-radius: 4px;
}
.session-action-btn:hover { color: var(--text); background: var(--bg-active); }

.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.user-chip { display: flex; align-items: center; gap: 8px; min-width: 0; }
.user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-email {
  font-size: 12.5px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logout-link { font-size: 12.5px; color: var(--text-faint); text-decoration: none; }
.logout-link:hover { color: var(--text); }

/* ── Main column ─────────────────────────────────────────────── */

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.topbar-actions { display: flex; gap: 4px; margin-left: auto; }

.icon-btn {
  border: none;
  background: none;
  color: var(--text-muted);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }

[data-theme="dark"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: inline; }
.theme-icon-light { display: none; }
.theme-icon-dark { display: inline; }

/* ── Chat area ───────────────────────────────────────────────── */

/* overflow-anchor off: the browser's scroll anchoring fights the streaming
   re-renders and unpins the auto-follow in app.js */
.chat-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; overflow-anchor: none; }
.chat-column {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 8px;
}

.welcome { text-align: center; margin-top: 16vh; }
.welcome-mark { font-size: 40px; color: var(--accent); }
.welcome h1 { font-size: 26px; font-weight: 600; margin: 14px 0 6px; }
.welcome-sub { color: var(--text-muted); font-size: 14.5px; margin: 0; }

.msg { margin: 18px 0; line-height: 1.6; }

.msg-user { display: flex; justify-content: flex-end; }
.msg-user .msg-bubble {
  background: var(--bg-user-bubble);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-bottom-right-radius: 6px;
  padding: 10px 16px;
  max-width: 85%;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg-assistant .msg-content { word-break: break-word; }
.msg-assistant .msg-content > :first-child { margin-top: 0; }
.msg-assistant .msg-content > :last-child { margin-bottom: 0; }

.msg-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-faint);
}

/* Feedback on an answer. Quiet until hovered: it is an offer, not a prompt,
   and a pair of buttons under every reply competes with the reply. */
.msg-rate {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  opacity: 0.35;
  transition: opacity 0.15s ease;
}

.msg-assistant:hover .msg-rate,
.msg-rate:focus-within,
.msg-rate[data-rating="1"],
.msg-rate[data-rating="-1"] {
  opacity: 1;
}

.msg-rate-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 3px 6px;
  filter: grayscale(1);
  transition: filter 0.15s ease, background 0.15s ease;
}

.msg-rate-btn:hover {
  background: var(--bg-hover);
  filter: grayscale(0);
}

.msg-rate-btn.on {
  filter: grayscale(0);
  background: var(--bg-active);
  border-color: var(--border);
}

.msg-rate-note {
  font-size: 12px;
  color: var(--text-faint);
  margin-left: 4px;
}

.msg-error {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

/* streaming cursor */
.stream-cursor {
  display: inline-block;
  width: 7px; height: 15px;
  background: var(--accent);
  border-radius: 2px;
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* status / thinking chip */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 13px;
  max-width: 100%;
}
.status-chip .status-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 480px;
  font-family: var(--mono);
  font-size: 12px;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* file chips */
.file-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}
.file-chip:hover { border-color: var(--accent); }
.file-chip .file-size { color: var(--text-faint); font-size: 11.5px; }

/* Images the agent produced: shown in the reply, click for full size */
.file-images { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.file-image {
  display: block;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  line-height: 0;
}
.file-image:hover { border-color: var(--accent); }
.file-image img {
  display: block;
  max-width: min(420px, 100%);
  max-height: 420px;
  width: auto; height: auto;
  object-fit: contain;
  background: var(--bg-panel);
}
/* Code the agent wrote to a file: an inset pane that scrolls when long */
.code-file { margin-top: 10px; }
.code-file pre {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-code);
  overflow: hidden;
}
.code-file pre code {
  display: block;
  border: none;
  background: transparent;
  padding: 12px 14px;
  max-height: 360px;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.55;
}
.code-file .code-truncated {
  padding: 6px 2px 0;
  font-size: 11.5px;
  color: var(--text-faint);
}

/* A generated page, running in a sandboxed frame */
.web-preview {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-code);
  overflow: hidden;
}
.web-frame-box {
  height: 420px;
  min-height: 120px;
  overflow: hidden;
  resize: vertical;          /* drag the bottom edge for taller apps */
}
.web-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* Generated pages usually assume a page background of their own; give them
     a white canvas rather than letting the dark chat show through. */
  background: #fff;
}
.web-issues {
  padding: 6px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.web-source { margin-top: 6px; }
.web-source > summary {
  cursor: pointer;
  padding: 2px 0;
  font-size: 11.5px;
  color: var(--text-muted);
}
.web-source > summary:hover { color: var(--text); }
.web-source .code-file { margin-top: 6px; }

/* Images the model embedded itself, inside the markdown flow */
.msg-content img.msg-image {
  display: block;
  max-width: 100%;
  max-height: 480px;
  width: auto; height: auto;
  margin: 0.6em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}

/* ── Markdown content ────────────────────────────────────────── */

.msg-content p { margin: 0.55em 0; }
.msg-content h1, .msg-content h2, .msg-content h3 { margin: 0.9em 0 0.4em; line-height: 1.3; }
.msg-content h1 { font-size: 1.35em; }
.msg-content h2 { font-size: 1.2em; }
.msg-content h3 { font-size: 1.08em; }
.msg-content ul, .msg-content ol { margin: 0.4em 0; padding-left: 1.4em; }
.msg-content li { margin: 0.18em 0; }
.msg-content a { color: var(--accent); }
/* Links awaiting /api/verify_links: visible but not yet clickable */
.msg-content .link-pending {
  color: var(--accent); opacity: 0.7;
  border-bottom: 1px dotted currentColor;
}
/* Links that failed verification: rendered as inert text */
.msg-content .link-broken { color: var(--text-muted); text-decoration: line-through; }
.msg-content blockquote {
  margin: 0.6em 0; padding: 2px 14px;
  border-left: 3px solid var(--border-strong);
  color: var(--text-muted);
}
.msg-content hr { border: none; border-top: 1px solid var(--border); margin: 1em 0; }
.msg-content img { max-width: 100%; border-radius: var(--radius-md); }

.msg-content table {
  border-collapse: collapse;
  margin: 0.6em 0;
  display: block;
  overflow-x: auto;
  max-width: 100%;
  font-size: 0.93em;
}
.msg-content th, .msg-content td {
  border: 1px solid var(--border);
  padding: 6px 12px;
  text-align: left;
}
.msg-content th { background: var(--bg-panel); font-weight: 600; }

.msg-content code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.12em 0.35em;
}
.msg-content pre {
  margin: 0.7em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-code);
  overflow: hidden;
}
.msg-content pre code {
  display: block;
  border: none;
  background: transparent;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.55;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--mono);
}
.code-copy {
  border: none; background: none;
  color: var(--text-muted);
  font-size: 11.5px;
  font-family: var(--font);
  padding: 2px 6px;
  border-radius: 4px;
}
.code-copy:hover { color: var(--text); background: var(--bg-hover); }

/* ── Composer ────────────────────────────────────────────────── */

.composer-wrap { padding: 8px 20px 14px; }
.composer {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 8px 10px;
}
.composer:focus-within { border-color: var(--accent); }

.composer-row { display: flex; align-items: flex-end; gap: 6px; }

.input {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  padding: 8px 4px;
  max-height: 220px;
}
.input::placeholder { color: var(--text-faint); }

.attach-btn { padding: 8px; color: var(--text-faint); }

.send-btn {
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.send-btn:hover:not(:disabled) { background: var(--accent-hover); }
.send-btn:disabled { background: var(--border-strong); cursor: default; }
.stop-btn { background: var(--text); }
.stop-btn:hover { background: var(--danger); }

.attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 6px; }
.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-panel);
  color: var(--text-muted);
}
.attachment-remove {
  border: none; background: none; color: var(--text-faint);
  font-size: 13px; padding: 0 2px;
}
.attachment-remove:hover { color: var(--danger); }

.composer-hint {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 8px;
}

/* ── Logs drawer ─────────────────────────────────────────────── */

.logs-drawer {
  width: 340px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
}
.logs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13.5px;
}
.logs-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.log-line { margin-bottom: 6px; }
.log-warning { color: #b98a00; }
.log-error { color: var(--danger); }

/* ── Login ───────────────────────────────────────────────────── */

.login {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent),
    var(--bg);
}
.login-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.login-card {
  position: relative;
  text-align: center;
  width: min(420px, 100%);
  padding: 48px 48px 36px;
  border: 1px solid color-mix(in srgb, var(--border-strong) 65%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-panel) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: var(--shadow), 0 24px 60px rgba(0, 0, 0, 0.08);
  animation: login-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes login-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.login-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  font-size: 34px;
  color: var(--accent);
}
.login-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  animation: mark-pulse 3.2s ease-in-out infinite;
}
.login-mark span { position: relative; }
@keyframes mark-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; }
}
.login-card h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
}
.login-tagline {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 auto 24px;
  max-width: 300px;
}
.login-points {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 14px 0;
  margin: 0 0 26px;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  font-size: 12.5px;
  color: var(--text-muted);
}
.login-points li { display: inline-flex; align-items: center; gap: 6px; }
.login-points svg { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
  .login-card { animation: none; }
  .login-mark::before { animation: none; }
}
.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.google-btn:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.google-btn:active { transform: translateY(1px); }
.login-note { font-size: 12px; color: var(--text-faint); margin-top: 16px; margin-bottom: 0; }

/* ── Voice call ──────────────────────────────────────────────── */

/* The mic button carries the call state, so it has to read at a glance:
   idle (muted grey) → connecting (pulsing) → live (accent) → agent speaking
   (ring). Hidden entirely until /api/voice/health says the container is up. */
.mic-btn { transition: color 0.15s, background 0.15s; }
.mic-btn.mic-on { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.mic-btn.mic-connecting { animation: pulse 1.2s ease-in-out infinite; }
.mic-btn.mic-speaking {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 26%, transparent);
}

.voice-bar {
  max-width: 760px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-panel);
  font-size: 13px;
  color: var(--text-muted);
}
.voice-orb {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.voice-status { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-action {
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-family: inherit;
}
.voice-action:hover { background: var(--bg-hover); color: var(--text); }
.voice-action.on { border-color: var(--accent); color: var(--accent); }
.voice-end { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 720px) {
  .sidebar {
    position: fixed;
    z-index: 30;
    height: 100%;
    box-shadow: var(--shadow);
  }
  .logs-drawer { position: fixed; right: 0; z-index: 30; height: 100%; }
  .chat-column { padding: 16px 14px 8px; }
  .composer-wrap { padding: 6px 10px 10px; }
}

/* scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
