/* ===========================================================
   SOREN — mobile-first chat UI for OpenAI-compatible APIs
   =========================================================== */

:root {
  --accent: #4d6bfe;
  --accent-2: #7b9cff;
  --accent-soft: rgba(77, 107, 254, .14);
  --danger: #ef4e4e;
  --ok: #2ec27e;
  --warn: #e3a008;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 56px;
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  --bg: #0e1116;
  --bg-2: #141922;
  --bg-3: #1b2130;
  --bubble: #1d2432;
  --text: #e9ecf3;
  --muted: #98a2b6;
  --border: #222a38;
  --code-bg: #0b0e14;
  --shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f6f8fc;
  --bg-3: #eef1f8;
  --bubble: #e8eefc;
  --text: #121826;
  --muted: #5d6679;
  --border: #e2e7f0;
  --code-bg: #f3f5fa;
  --shadow: 0 10px 40px rgba(16, 24, 40, .14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }

/* ---------- layout ---------- */
.app {
  display: flex;
  height: 100dvh;
  height: var(--app-h, 100dvh);
  overflow: hidden;
}

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

/* ---------- topbar ---------- */
.topbar {
  height: var(--header-h);
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  padding-top: env(safe-area-inset-top);
  height: calc(var(--header-h) + env(safe-area-inset-top));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 20;
}

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 12px;
  color: var(--text);
  transition: background .15s;
}
.icon-btn:active { background: var(--bg-3); }

.model-chip {
  flex: 1;
  min-width: 0;
  height: 40px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}
.model-chip > span:not(.dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.model-chip .chev { width: 16px; height: 16px; opacity: .6; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.is-ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.is-bad { background: var(--danger); }
.dot.is-busy { background: var(--warn); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3 } }

/* ---------- sidebar ---------- */
.sidebar {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(84vw, 330px);
  z-index: 60;
  background: var(--bg-2);
  border-inline-end: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom));
  transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
[dir="rtl"] .sidebar { transform: translateX(102%); }
[dir="ltr"] .sidebar { transform: translateX(-102%); }
.sidebar.is-open { transform: translateX(0); }

.scrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px);
  animation: fade .2s;
}
@keyframes fade { from { opacity: 0 } }

.sidebar__head { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; }
.brand img { border-radius: 8px; }
.brand__name { background: linear-gradient(90deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin: 0 -4px; padding: 0 4px; }
.chat-item {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: start;
  color: var(--text);
  font-size: 14.5px;
}
.chat-item:active { background: var(--bg-3); }
.chat-item.is-active { background: var(--accent-soft); color: var(--accent-2); }
.chat-item__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item__del { opacity: .45; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: none; border: 0; color: inherit; }
.chat-item__del svg { width: 17px; height: 17px; }
.chat-item__del:active { opacity: 1; color: var(--danger); }

.sidebar__foot { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border); padding-top: 10px; }
.sidebar__foot-row { display: flex; gap: 6px; }
.sidebar__foot-row .ghost-btn { flex: 1; justify-content: center; }

.ghost-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  background: none; border: 0; border-radius: 12px;
  color: var(--text); font-size: 14.5px; width: 100%;
}
.ghost-btn:active { background: var(--bg-3); }
.ghost-btn--sm { font-size: 13px; background: var(--bg-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px; font-weight: 600;
  background: var(--bg-3); color: var(--text);
  transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--border); }
.btn--danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.row-btns { display: flex; gap: 8px; }
.row-btns .btn { flex: 1; }

/* ---------- search ---------- */
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; inset-inline-start: 12px; width: 18px; height: 18px; opacity: .5; }
.search input {
  width: 100%;
  height: 44px;
  padding-inline: 40px 12px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid transparent;
  outline: none;
  font-size: 15px;
}
.search input:focus { border-color: var(--accent); }

/* ---------- messages ---------- */
.messages {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 12px 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.messages__inner { max-width: 820px; margin: 0 auto; }

.empty { text-align: center; padding: 8vh 6px 20px; max-width: 520px; margin: 0 auto; }
.empty__logo { border-radius: 18px; box-shadow: var(--shadow); }
.empty__title { font-size: 22px; margin: 16px 0 6px; }
.empty__sub { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.empty__actions { display: flex; flex-direction: column; gap: 8px; max-width: 320px; margin: 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.chip {
  padding: 9px 14px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); font-size: 13.5px;
}
.chip:active { background: var(--bg-3); }

.msg { display: flex; gap: 10px; margin-bottom: 18px; max-width: 820px; margin-inline: auto; }
.msg--user { flex-direction: row-reverse; }
.msg__avatar {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--bg-3); margin-top: 2px;
}
.msg__avatar img { width: 100%; height: 100%; }
.msg--user .msg__avatar { background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.msg__body { min-width: 0; flex: 1; }
.msg--user .msg__body { flex: 0 1 auto; max-width: 85%; }

.bubble {
  background: var(--bubble);
  padding: 10px 14px;
  border-radius: var(--radius);
  border-start-end-radius: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
  font-size: 15.5px;
}

.markdown { font-size: 15.5px; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.markdown > *:first-child { margin-top: 0; }
.markdown > *:last-child { margin-bottom: 0; }
.markdown h1, .markdown h2, .markdown h3, .markdown h4 { margin: 1.1em 0 .5em; line-height: 1.45; }
.markdown h1 { font-size: 1.4em; } .markdown h2 { font-size: 1.25em; } .markdown h3 { font-size: 1.1em; }
.markdown p { margin: .7em 0; }
.markdown ul, .markdown ol { margin: .6em 0; padding-inline-start: 1.4em; }
.markdown li { margin: .25em 0; }
.markdown blockquote {
  margin: .7em 0; padding: .1em 1em;
  border-inline-start: 3px solid var(--accent);
  background: var(--bg-2); border-radius: 8px; color: var(--muted);
}
.markdown a { color: var(--accent-2); }
.markdown hr { border: 0; border-top: 1px solid var(--border); margin: 1.2em 0; }
.markdown code.inline {
  font-family: var(--mono); font-size: .88em;
  background: var(--bg-3); padding: .12em .4em; border-radius: 6px;
  direction: ltr; unicode-bidi: embed; display: inline-block;
}
.markdown table { width: 100%; border-collapse: collapse; margin: .8em 0; font-size: .92em; display: block; overflow-x: auto; }
.markdown th, .markdown td { border: 1px solid var(--border); padding: 7px 10px; text-align: start; }
.markdown th { background: var(--bg-2); }

/* code blocks */
.code {
  margin: .8em 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--code-bg);
}
.code__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; background: var(--bg-2);
  font-size: 12px; color: var(--muted); font-family: var(--mono);
  direction: ltr;
}
.code__copy { background: none; border: 0; color: var(--muted); display: flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 6px; border-radius: 6px; }
.code__copy svg { width: 14px; height: 14px; }
.code__copy:active { color: var(--accent-2); }
.code pre { margin: 0; padding: 12px; overflow-x: auto; direction: ltr; text-align: left; }
.code code { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; white-space: pre; }

.tok-com { color: #6b7a90; font-style: italic; }
.tok-str { color: #7fd88f; }
.tok-num { color: #f0a868; }
.tok-key { color: #9b8cff; }
.tok-fn  { color: #58b2ff; }
.tok-tag { color: #ff8a8a; }
.tok-attr { color: #f0c36d; }
html[data-theme="light"] .tok-com { color: #8a94a6; }
html[data-theme="light"] .tok-str { color: #1a8f4a; }
html[data-theme="light"] .tok-num { color: #b55400; }
html[data-theme="light"] .tok-key { color: #6132d6; }
html[data-theme="light"] .tok-fn  { color: #0b63c5; }
html[data-theme="light"] .tok-tag { color: #c53030; }
html[data-theme="light"] .tok-attr { color: #9a6700; }

/* reasoning block */
.think { margin-bottom: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.think > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; font-size: 13.5px; color: var(--muted);
}
.think > summary::-webkit-details-marker { display: none; }
.think > summary svg { width: 16px; height: 16px; }
.think[open] > summary .think__arrow { transform: rotate(180deg); }
.think__arrow { transition: transform .2s; margin-inline-start: auto; }
.think__content {
  padding: 2px 12px 12px;
  font-size: 14px; color: var(--muted);
  white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext;
  border-top: 1px dashed var(--border);
  max-height: 46vh; overflow-y: auto;
}
.think.is-live > summary { color: var(--accent-2); }

.msg__actions { display: flex; gap: 2px; margin-top: 6px; opacity: .75; }
.msg--user .msg__actions { justify-content: flex-end; }
.act-btn {
  background: none; border: 0; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; padding: 6px 8px; border-radius: 8px;
}
.act-btn svg { width: 15px; height: 15px; }
.act-btn:active { background: var(--bg-3); color: var(--accent-2); }

.err {
  border: 1px solid var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
  background: rgba(239, 78, 78, .12);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: #ffb4b4; padding: 10px 12px; border-radius: 12px; font-size: 14px;
  unicode-bidi: plaintext;
}
html[data-theme="light"] .err { color: #a11; }

.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s }
.typing i:nth-child(3) { animation-delay: .4s }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-3px) } }

/* ---------- composer ---------- */
.composer {
  flex: none;
  padding: 8px 10px calc(6px + env(safe-area-inset-bottom));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.composer__box {
  max-width: 820px; margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 6px 8px 6px;
  transition: border-color .15s;
}
.composer__box:focus-within { border-color: var(--accent); }
.composer textarea {
  width: 100%;
  max-height: 34vh;
  min-height: 42px;
  padding: 10px 8px 2px;
  background: none; border: 0; outline: none; resize: none;
  font-size: 16px; line-height: 1.6;
  unicode-bidi: plaintext;
}
.composer__row { display: flex; align-items: center; gap: 6px; padding: 2px 2px 0; }
.composer__spacer { flex: 1; }
.composer__hint { text-align: center; font-size: 11px; color: var(--muted); margin: 6px 0 0; opacity: .8; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); font-size: 13px;
}
.pill svg { width: 16px; height: 16px; }
.pill.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }

.send-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--accent); color: #fff;
  display: grid; place-items: center;
  transition: transform .12s, opacity .15s;
}
.send-btn[disabled] { opacity: .35; }
.send-btn:active { transform: scale(.92); }
.send-btn .ic-stop { display: none; }
.send-btn.is-stop { background: var(--danger); }
.send-btn.is-stop .ic-send { display: none; }
.send-btn.is-stop .ic-stop { display: block; fill: currentColor; stroke: none; }

.jump-btn {
  position: absolute;
  inset-inline-end: 14px;
  bottom: calc(100px + env(safe-area-inset-bottom));
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text);
  display: grid; place-items: center; box-shadow: var(--shadow); z-index: 15;
}

/* ---------- sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); animation: fade .2s; }
.sheet {
  position: relative;
  width: min(100%, 560px);
  max-height: 88dvh;
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow);
  animation: slideUp .26s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slideUp { from { transform: translateY(100%) } }
.sheet__grip { width: 40px; height: 4px; border-radius: 4px; background: var(--border); margin: 8px auto 0; flex: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 6px 14px; flex: none; }
.sheet__head h2 { font-size: 17px; margin: 0; padding-inline-start: 6px; }
.sheet__body {
  overflow-y: auto; overscroll-behavior: contain;
  padding: 6px 14px calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px;
}
.sheet__footer { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 2px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 14px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field small { font-size: 12px; color: var(--muted); opacity: .8; line-height: 1.6; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  font-size: 16px;
}
.field textarea { resize: vertical; unicode-bidi: plaintext; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field input[type="url"], .field input[type="password"], .field input[type="text"], .field input[type="number"] { direction: ltr; text-align: start; }
.field input[type="range"] { min-height: 0; padding: 0; background: none; border: 0; accent-color: var(--accent); }
.badge { background: var(--accent-soft); color: var(--accent-2); border-radius: 8px; padding: 1px 8px; font-size: 13px; }

.input-group { display: flex; gap: 6px; align-items: center; }
.input-group input { flex: 1; }
.input-group .icon-btn { border: 1px solid var(--border); border-radius: 12px; height: 46px; width: 46px; flex: none; }

.switch { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { width: 46px; height: 28px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--border); position: relative; transition: background .2s; flex: none; }
.switch__thumb { position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + .switch__track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch__track .switch__thumb { background: #fff; }
[dir="rtl"] .switch input:checked + .switch__track .switch__thumb { transform: translateX(-18px); }
[dir="ltr"] .switch input:checked + .switch__track .switch__thumb { transform: translateX(18px); }

.test-result { font-size: 13.5px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); unicode-bidi: plaintext; white-space: pre-wrap; }
.test-result.is-ok { border-color: var(--ok); color: var(--ok); }
.test-result.is-bad { border-color: var(--danger); color: #ff9a9a; }

.danger { border: 1px dashed var(--danger); border: 1px dashed color-mix(in srgb, var(--danger) 50%, transparent); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.danger h3 { margin: 0; font-size: 14px; color: var(--danger); }
.version { text-align: center; color: var(--muted); font-size: 11.5px; opacity: .6; margin: 4px 0 0; }

/* model list */
.model-list { display: flex; flex-direction: column; gap: 4px; max-height: 44dvh; overflow-y: auto; }
.model-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid transparent;
  width: 100%; text-align: start; color: var(--text);
  font-size: 14.5px; direction: ltr;
}
.model-row.is-active { border-color: var(--accent); background: var(--accent-soft); }
.model-row__id { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13.5px; }
.model-row__tag { font-size: 11px; color: var(--accent-2); background: var(--accent-soft); padding: 2px 7px; border-radius: 6px; flex: none; }
.model-empty { color: var(--muted); font-size: 13.5px; text-align: center; padding: 18px 10px; }
.manual { display: flex; flex-direction: column; gap: 6px; }
.manual label { font-size: 13px; color: var(--muted); }
.manual__row { display: flex; gap: 6px; }
.manual__row input { flex: 1; min-height: 46px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; outline: none; direction: ltr; font-size: 16px; }
.manual__row input:focus { border-color: var(--accent); }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; inset-inline: 0; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 10px 16px; border-radius: 999px; font-size: 14px;
  animation: toastIn .2s; max-width: 90vw; text-align: center;
}
.toast.is-bad { border-color: var(--danger); color: #ff9a9a; }
.toast.is-ok { border-color: var(--ok); color: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) } }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .sidebar { position: relative; transform: none !important; width: 300px; }
  .scrim { display: none !important; }
  .sidebar__close, #menuBtn { display: none; }
  .messages { padding: 20px 24px 10px; }
  .composer { padding: 10px 24px 16px; }
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 22px; border-bottom: 1px solid var(--border); max-height: 84dvh; }
  @keyframes slideUp { from { transform: translateY(20px); opacity: 0 } }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .messages { scroll-behavior: auto; }
}
