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

:root {
  --bg: #07080b;
  --surface: #0f0f17;
  --panel: #161920;
  --border: #1e2128;
  --accent: #5b8af0;
  --green: #27c98a;
  --red: #e05555;
  --amber: #e0a830;
  --text: #d8dbe8;
  --muted: #54586a;
  --r: 11px;
  --mono: 'DM Mono', monospace;
  --sans: 'Syne', sans-serif;
  --active-bg: #101828;
  --active-border: #1a3d2e;
  --user-bubble: #151a2e;
  --user-border: #232a45;
  --ai-bubble: #0e1210;
  --ai-avatar: #13261e;
  --strong: #fff;
  --code-bg: #1a1f2b;
  --pre-bg: #0a0d12;
  --th-bg: #151a24;
  --badge-hover: #1a2a40;
  --doc-bg: #0f2a1d;
  --doc-fg: #4ade80;
  --doc-hover: #14532d;
  --search-on: #267451;
  --edit-bg: #1a1505;
  --match: #2a2200;
  --match-cur: #4a3800;
  --think: #a78bfa;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  overflow: hidden
}

#app {
  display: flex;
  height: 100vh;
  height: 100dvh
}

/* ── Sidebar ── */
#sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto
}

#sidebar::-webkit-scrollbar {
  width: 3px
}

#sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px
}

.sb-logo {
  padding: 15px 14px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 6px
}

.sb-logo span {
  color: var(--green)
}

.sb-logo .ver {
  font-size: .58rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: auto;
  font-family: var(--mono)
}

.sb-sec {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border)
}

.sb-label {
  display: block;
  font-size: .59rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  margin-bottom: 6px
}

#conv-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 350px;
  overflow-y: auto
}

#conv-list::-webkit-scrollbar {
  width: 3px
}

#conv-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px
}

.conv-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .13s
}

.conv-item:hover {
  background: var(--panel);
  border-color: var(--border)
}

.conv-item.active {
  background: var(--active-bg);
  border-color: var(--active-border)
}

.conv-name {
  flex: 1;
  font-size: .72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text)
}

.conv-del {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  padding: 2px;
  border-radius: 4px;
  flex-shrink: 0
}

.conv-del:hover {
  color: var(--red)
}

.conv-edit:hover {
  color: var(--accent)
}

.conv-rename {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: .72rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 1px 4px;
  outline: none
}

.conv-empty {
  font-size: .68rem;
  color: var(--muted);
  text-align: center;
  padding: 10px 0;
  opacity: .6
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

/* ── Main + Artifact layout ── */
#main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0
}

#chat-artifact {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0
}

#chat-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0
}

/* ── Artifact panel ── */
#artifact-panel {
  width: 0;
  min-width: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width .22s ease
}

#artifact-panel.open {
  width: 46%;
  min-width: 300px
}

#artifact-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0
}

#artifact-title {
  font-size: .72rem;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

#artifact-tabs {
  display: flex;
  gap: 3px;
  margin-right: 4px
}

.art-tab {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .63rem;
  padding: 3px 8px;
  cursor: pointer;
  transition: all .13s
}

.art-tab.active {
  border-color: var(--accent);
  color: var(--accent)
}

#artifact-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  padding: 3px;
  border-radius: 4px
}

#artifact-close:hover {
  color: var(--red)
}

#artifact-body {
  flex: 1;
  overflow: hidden;
  position: relative
}

#artifact-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  display: none
}

#artifact-code {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 12px 14px;
  font-size: .76rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  display: none
}

#artifact-code::-webkit-scrollbar {
  width: 3px
}

#artifact-code::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px
}

#artifact-footer {
  display: flex;
  gap: 6px;
  padding: 7px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0
}

.art-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  border: none;
  font-family: var(--mono);
  font-size: .68rem;
  cursor: pointer;
  transition: all .13s
}

.art-btn-copy {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border)
}

.art-btn-copy:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.art-btn-dl {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border)
}

.art-btn-dl:hover {
  border-color: var(--green);
  color: var(--green)
}

.art-btn-edit {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border)
}

.art-btn-edit:hover,
.art-btn-edit.active {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--edit-bg)
}

.art-btn-undo {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border)
}

.art-btn-undo:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.art-btn-undo:disabled {
  opacity: .3;
  cursor: not-allowed
}

#artifact-editor {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: .76rem;
  line-height: 1.7;
  padding: 12px 14px;
  resize: none;
  outline: none;
  display: none;
  box-sizing: border-box;
  tab-size: 2
}

#artifact-search-bar {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0
}

#artifact-search-bar.visible {
  display: flex
}

#artifact-search-input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: .72rem;
  padding: 4px 8px;
  outline: none
}

#artifact-search-input:focus {
  border-color: var(--accent)
}

#search-count {
  font-size: .62rem;
  color: var(--muted);
  white-space: nowrap
}

.search-match {
  background: var(--match);
  border-radius: 2px
}

.search-match.current {
  background: var(--match-cur);
  outline: 1px solid var(--amber)
}

.diff-added {
  background: rgba(39, 201, 138, .12);
  border-left: 2px solid var(--green);
  display: block;
  padding-left: 4px;
  margin-left: -6px
}

.diff-changed {
  background: rgba(224, 168, 48, .09);
  border-left: 2px solid var(--amber);
  display: block;
  padding-left: 4px;
  margin-left: -6px
}

.tok-kw {
  color: #7aa3f5
}

.tok-str {
  color: #e0a830
}

.tok-num {
  color: #27c98a
}

.tok-cmt {
  color: #45485a;
  font-style: italic
}

.tok-fn {
  color: #c792ea
}

.tok-tag {
  color: #e05555
}

.tok-attr {
  color: #5b8af0
}

.tok-rx {
  color: #27c98a
}

.tok-val {
  color: #f07070
}

.tok-sel {
  color: #c792ea
}

#topbar {
  padding: 10px 17px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between
}

#stat-area {
  display: flex;
  align-items: center;
  gap: 5px
}

#stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
  transition: background .3s
}

#stat-dot.ready {
  background: var(--green)
}

#stat-dot.busy {
  background: var(--accent);
  animation: pulse 1s infinite
}

#stat-dot.error {
  background: var(--red)
}

#stat-dot.trying {
  background: var(--amber);
  animation: pulse .8s infinite
}

#stat-txt {
  font-size: .67rem;
  color: var(--muted)
}

#messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 7% 10px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  scroll-behavior: smooth
}

#messages::-webkit-scrollbar {
  width: 3px
}

#messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px
}

.msg {
  display: flex;
  gap: 9px;
  animation: up .2s ease
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(6px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 700
}

.msg.user .avatar {
  background: var(--accent);
  color: #fff
}

.msg.ai .avatar {
  background: var(--ai-avatar);
  color: var(--green)
}

.msg-col {
  display: flex;
  flex-direction: column;
  max-width: 84%
}

.bubble {
  padding: 9px 13px;
  border-radius: var(--r);
  line-height: 1.7;
  font-size: .82rem;
  word-break: break-word;
  white-space: pre-wrap
}

/* Respuestas con formato (Markdown y fórmulas) */
.bubble.md {
  white-space: normal
}

.md> :first-child {
  margin-top: 0
}

.md> :last-child {
  margin-bottom: 0
}

.md h1,
.md h2,
.md h3,
.md h4 {
  margin: .8em 0 .35em;
  line-height: 1.3;
  font-weight: 700;
  color: var(--accent)
}

.md h1 {
  font-size: 1.15rem
}

.md h2 {
  font-size: 1.05rem
}

.md h3 {
  font-size: .95rem
}

.md h4 {
  font-size: .88rem
}

.md p {
  margin: .4em 0
}

.md strong {
  color: var(--strong);
  font-weight: 700
}

.md ul,
.md ol {
  margin: .35em 0;
  padding-left: 1.4em
}

.md li {
  margin: .2em 0
}

.md a {
  color: var(--accent);
  text-decoration: underline
}

.md code {
  background: var(--code-bg);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .9em
}

.md pre {
  background: var(--pre-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  overflow-x: auto;
  white-space: pre
}

.md pre code {
  background: none;
  padding: 0
}

.md table {
  border-collapse: collapse;
  margin: .5em 0;
  display: block;
  overflow-x: auto
}

.md th,
.md td {
  border: 1px solid var(--border);
  padding: 4px 8px;
  text-align: left
}

.md th {
  background: var(--th-bg)
}

.md blockquote {
  margin: .5em 0;
  padding-left: 10px;
  border-left: 3px solid var(--border);
  color: var(--muted)
}

.md hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: .8em 0
}

.md math[display="block"] {
  margin: .6em 0;
  overflow-x: auto
}

.msg.user .bubble {
  background: var(--user-bubble);
  border: 1px solid var(--user-border)
}

.msg.ai .bubble {
  background: var(--ai-bubble);
  border: 1px solid var(--border)
}

.msg-meta {
  font-size: .57rem;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  gap: 8px;
  opacity: .6;
  align-items: center;
  flex-wrap: wrap
}

/* Artifact badge en burbuja */
.artifact-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--active-bg);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: .62rem;
  color: var(--accent);
  cursor: pointer;
  transition: all .13s;
  margin-top: 5px
}

.artifact-badge:hover {
  background: var(--badge-hover)
}

.doc-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--doc-bg);
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .72rem;
  color: var(--doc-fg);
  cursor: pointer;
  margin: 6px 6px 0 0
}

.doc-download:hover {
  background: var(--doc-hover)
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: .68rem;
  color: var(--muted);
  margin-bottom: 5px;
  margin-right: 4px
}

.attachment-chip svg {
  flex-shrink: 0
}

#typing {
  display: none;
  padding: 0 7%;
  margin-bottom: 2px
}

#typing.on {
  display: flex;
  align-items: center;
  gap: 8px
}

.dots {
  display: flex;
  gap: 4px
}

.dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s infinite ease
}

.dots span:nth-child(2) {
  animation-delay: .2s
}

.dots span:nth-child(3) {
  animation-delay: .4s
}

@keyframes blink {

  0%,
  60%,
  100% {
    transform: translateY(0)
  }

  30% {
    transform: translateY(-4px)
  }
}

#typing-lbl {
  font-size: .7rem;
  color: var(--muted)
}

#input-area {
  padding: 10px 7% calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface)
}

#drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  border: 3px dashed var(--accent);
  color: #fff;
  font-size: 1.2rem;
  pointer-events: none
}

#drop-overlay.visible {
  display: flex
}

#attach-preview {
  display: none;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 7px
}

#attach-preview.has-files {
  display: flex
}

.attach-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: .68rem;
  color: var(--text)
}

.attach-tag button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  padding: 0;
  margin-left: 2px
}

.attach-tag button:hover {
  color: var(--red)
}

#input-row {
  display: flex;
  gap: 7px;
  align-items: flex-end;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 7px 10px;
  transition: border-color .18s
}

#input-row:focus-within {
  border-color: var(--accent)
}

#user-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.6;
  resize: none;
  max-height: 120px;
  overflow-y: auto;
  outline: none
}

#attach-btn,
#mic-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .14s
}

#search-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .14s
}

#attach-btn:hover {
  color: var(--accent)
}

#mic-btn:hover {
  color: var(--green)
}

#search-btn:hover {
  color: var(--green)
}

#search-btn.active {
  color: var(--green);
  border: 1px solid var(--search-on)
}

#file-input {
  display: none
}

#mic-btn.recording {
  color: var(--red);
  animation: pulse .8s infinite
}

#stop-tts {
  display: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--amber);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

#stop-tts.visible {
  display: flex
}

#stop-tts:hover {
  color: var(--red)
}

.tts-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  transition: color .13s
}

.tts-btn:hover {
  color: var(--green)
}

.tts-btn.speaking {
  color: var(--green);
  animation: pulse .8s infinite
}

#send-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 7px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .14s, transform .1s
}

#send-btn:hover:not(:disabled) {
  background: #7aa3f5
}

#send-btn:active {
  transform: scale(.91)
}

#send-btn:disabled {
  background: var(--border);
  cursor: not-allowed
}

#stop-btn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 7px;
  border: none;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center
}

#stop-btn.d-none {
  display: none !important
}

#stop-btn:disabled {
  opacity: .6;
  cursor: wait
}

#input-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: .6rem;
  color: var(--muted)
}

#flood-msg {
  color: var(--red);
  display: none
}

#empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
  padding: 28px
}

#empty .ghost {
  font-family: var(--sans);
  font-size: 2.8rem;
  font-weight: 800;
  opacity: .04
}

#empty p {
  font-size: .77rem;
  max-width: 240px;
  line-height: 1.6
}

#empty .tip {
  font-size: .67rem;
  color: var(--green);
  opacity: .7
}

/* ── Tema claro ── */
:root[data-bs-theme="light"] {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --panel: #eef0f4;
  --border: #d9dce3;
  --accent: #3b6fd8;
  --green: #12965f;
  --red: #c83c3c;
  --amber: #b7811a;
  --text: #1d2130;
  --muted: #6b7080;
  --active-bg: #e8effd;
  --active-border: #b9cdf5;
  --user-bubble: #e8eefc;
  --user-border: #c9d6f3;
  --ai-bubble: #ffffff;
  --ai-avatar: #dff3ea;
  --strong: #000;
  --code-bg: #eceff4;
  --pre-bg: #f3f4f7;
  --th-bg: #eef0f4;
  --badge-hover: #e3ebfb;
  --doc-bg: #e6f6ee;
  --doc-fg: #157347;
  --doc-hover: #cfeedd;
  --search-on: #12965f;
  --edit-bg: #fbf3e2;
  --match: #fff1b8;
  --match-cur: #ffd966;
  --think: #7c4ddb;
}

/* ── Barra lateral (offcanvas de Bootstrap en pantallas chicas) ── */
#sidebar {
  --bs-offcanvas-width: 300px;
  padding: 0
}

.sb-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  background: var(--surface)
}

.sb-actions {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border)
}

.sb-inner>.sb-actions {
  margin-top: auto
}

.sb-sec .sb-actions {
  padding: 8px 0 0
}

.sb-actions .btn {
  font-family: var(--mono);
  font-size: .73rem
}

#user-name {
  font-weight: 700;
  color: var(--text);
  font-size: 13px
}

#user-usage {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 8px
}

/* ── Barra superior: estado a la izquierda, tema a la derecha ── */
#topbar-right {
  display: flex;
  align-items: center;
  gap: 8px
}

#theme-btn {
  font-family: var(--mono);
  font-size: .68rem;
  border-radius: 999px;
  padding: 3px 11px
}

/* ── Botón de razonamiento ── */
#think-btn {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s, background .2s, border-color .2s
}

#think-btn.on {
  color: var(--think);
  border-color: var(--think);
  background: color-mix(in srgb, var(--think) 12%, transparent)
}

/* ── Modales (Bootstrap) con los colores de Krisia ── */
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono)
}

.modal-title {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700
}

.modal .form-control {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
  font-size: 13px
}

.modal .form-control:focus {
  border-color: var(--accent);
  box-shadow: none
}

.form-error {
  color: var(--red);
  font-size: 12px;
  min-height: 1em;
  margin: 2px 0 0
}

/* ── SweetAlert con la tipografía de Krisia ── */
.swal2-popup {
  font-family: var(--mono);
  font-size: .85rem
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  #artifact-panel.open {
    position: fixed;
    inset: 0;
    width: 100% !important;
    min-width: 0;
    z-index: 1040
  }
}

@media (max-width: 767.98px) {
  #messages,
  #input-area,
  #typing {
    padding-left: 3%;
    padding-right: 3%
  }

  .msg-col {
    max-width: 92%
  }
}

@media (max-width: 575.98px) {
  #input-row {
    flex-wrap: wrap
  }

  #user-input {
    order: -1;
    flex-basis: 100%
  }

  #send-btn,
  #stop-btn {
    margin-left: auto
  }

  #theme-btn .theme-label {
    display: none
  }

  #artifact-footer {
    flex-wrap: wrap
  }
}
