:root {
  --ink: #0a0a0a;
  --ink-2: #141414;
  --ink-3: #1c1c1c;
  --line: #2a2a2a;
  --blood: #e10f0f;
  --blood-deep: #a30b0b;
  --blood-glow: rgba(225, 15, 15, 0.35);
  --bone: #f5f2ee;
  --ash: #6b6b6b;
  --ash-2: #8a8a8a;
  --ok: #28d77b;
  --warn: #f5a524;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-precision: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-hard: 0 0 0 1px var(--line), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --rule-blood: linear-gradient(90deg, transparent, var(--blood) 18%, var(--blood) 82%, transparent);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  width: 100%;
}

html {
  height: 100%;
  height: -webkit-fill-available;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App lock (admin only): trava viewport para evitar rubber-band do iOS */
body.app-shell {
  display: flex;
  flex-direction: column;
  /* iOS Safari fallbacks: -webkit-fill-available > 100dvh > 100vh */
  height: 100vh;
  height: -webkit-fill-available;
  height: 100dvh;
  position: fixed;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

/* iOS button reset (Safari adds gradient + rounded corners by default) */
button,
input[type='submit'],
input[type='button'] {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  background-clip: padding-box;
  font: inherit;
  color: inherit;
}

/* iOS auto-zooms inputs whose font-size < 16px */
input, select, textarea {
  font-size: 16px;
}

.stat-num,
.conv-time,
.bubble-time,
.list-count,
.chat-sub {
  font-variant-numeric: tabular-nums;
}

/* ============= TOPBAR ============= */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + var(--safe-top)) 14px 10px;
  background: linear-gradient(180deg, #0d0d0d, #080808);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rule-blood);
  opacity: 0.55;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--ink), 0 0 0 2px var(--bone), 0 0 18px var(--blood-glow);
}

.brand-text {
  min-width: 0;
  overflow: hidden;
}

.brand-text h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1.5px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ash-2);
  margin-top: 6px;
  font-weight: 700;
}

.brand-sub .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 2px rgba(245, 165, 36, 0.18);
  flex-shrink: 0;
}

.brand-sub .dot[data-state='live'] {
  background: var(--ok);
  box-shadow: 0 0 0 2px rgba(40, 215, 123, 0.2);
  animation: pulse-ok 2.4s ease-out infinite;
}

.brand-sub .dot[data-state='down'] {
  background: var(--blood);
  box-shadow: 0 0 0 2px var(--blood-glow);
}

.conn-label {
  color: var(--bone);
  font-weight: 800;
}

@keyframes pulse-ok {
  0%, 100% { box-shadow: 0 0 0 2px rgba(40, 215, 123, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(40, 215, 123, 0); }
}

/* ============= NAV TABS ============= */
.topnav {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--ink);
}

.topnav-btn {
  padding: 9px 12px;
  background: transparent;
  border: 0;
  color: var(--ash-2);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  cursor: pointer;
  min-height: 38px;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.topnav-btn:active { background: var(--ink-3); }

.topnav-btn.active {
  color: var(--bone);
  background: var(--blood);
  position: relative;
}

.topnav-btn.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--blood);
}

.logout-form { margin: 0; flex-shrink: 0; }

.logout-btn {
  padding: 9px 13px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ash-2);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  cursor: pointer;
  min-height: 38px;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.logout-btn:active {
  border-color: var(--blood);
  color: var(--blood);
  background: rgba(225, 15, 15, 0.08);
}

/* ============= SCREEN ============= */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.view {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.view-list { display: flex; }

body.show-chat .view-list { display: none; }
body.show-chat .view-funnel { display: none; }
body.show-chat .view-chat { display: flex; }

body.show-funnel .view-list { display: none; }
body.show-funnel .view-funnel { display: flex; }

/* ============= LISTA ============= */
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  position: relative;
  flex-shrink: 0;
}

.list-head::after {
  content: '';
  position: absolute;
  left: 16px;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--blood);
}

.kicker {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2.5px;
  color: var(--bone);
}

.list-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--bone);
  background: var(--ink);
  padding: 5px 9px;
  border: 1px solid var(--line);
  font-weight: 700;
  letter-spacing: 1px;
}

.list-count::before { content: '[ '; color: var(--ash); }
.list-count::after { content: ' ]'; color: var(--ash); }

.list-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--bone);
  letter-spacing: 1px;
  line-height: 1;
}

.stat-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ash-2);
  margin-top: 5px;
  font-weight: 700;
}

.list-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--safe-bottom);
  background: var(--ink-2);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 28px;
  color: var(--ash);
}

.empty-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  color: var(--line);
  margin-bottom: 14px;
  line-height: 1;
}

.empty-state p {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

.conv-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px 14px 13px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  text-align: left;
  color: inherit;
  font: inherit;
  position: relative;
  min-height: 64px;
  transition: background-color 0.12s var(--ease);
}

.conv-item + .conv-item { box-shadow: 0 -1px 0 0 var(--line); }
.conv-item:active { background: var(--ink-3); }

.conv-item.active {
  background: var(--ink-3);
  border-left-color: var(--blood);
}

.conv-item.flash {
  animation: flash-red 0.5s ease-out;
}

@keyframes flash-red {
  0% { background: var(--blood); }
  100% { background: transparent; }
}

.avatar {
  width: 44px;
  height: 44px;
  background: var(--ink);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--bone);
  letter-spacing: 1px;
  position: relative;
  flex-shrink: 0;
}

.avatar::before,
.avatar::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid var(--ash);
}

.avatar::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.avatar::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.conv-item.thinking .avatar {
  border-color: var(--blood);
  box-shadow: 0 0 0 2px var(--blood-glow);
  animation: heartbeat 1.4s ease-in-out infinite;
}

.conv-item.thinking .avatar::before,
.conv-item.thinking .avatar::after {
  border-color: var(--blood);
}

@keyframes heartbeat {
  0%, 100% { box-shadow: 0 0 0 2px rgba(225, 15, 15, 0.18); }
  30% { box-shadow: 0 0 0 7px rgba(225, 15, 15, 0); }
  60% { box-shadow: 0 0 0 2px rgba(225, 15, 15, 0.32); }
}

.conv-info { min-width: 0; }

.conv-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-snippet {
  font-size: 12px;
  color: var(--ash-2);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.conv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.conv-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ash);
  letter-spacing: 0.5px;
}

.conv-badge {
  background: var(--blood);
  color: var(--bone);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 3px 7px;
  text-transform: uppercase;
}

/* ============= FUNIL ============= */
.view-funnel {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--safe-bottom);
  background: var(--ink-2);
}

.funnel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  position: relative;
  flex-shrink: 0;
}

.funnel-head::after {
  content: '';
  position: absolute;
  left: 16px;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--blood);
}

.funnel-period {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--ink);
}

.period-btn {
  padding: 7px 10px;
  background: transparent;
  border: 0;
  color: var(--ash-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border-right: 1px solid var(--line);
}

.period-btn:last-child { border-right: 0; }

.period-btn.active {
  background: var(--blood);
  color: var(--bone);
}

.funnel-rate-card {
  margin: 16px;
  padding: 18px 18px 20px;
  background: var(--ink);
  border: 1px solid var(--line);
  position: relative;
}

.funnel-rate-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blood);
}

.rate-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ash-2);
  font-weight: 700;
}

.rate-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  color: var(--bone);
  letter-spacing: 1px;
  line-height: 1;
  margin-top: 8px;
}

.rate-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ash);
  margin-top: 6px;
  letter-spacing: 0.4px;
}

.funnel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0 16px 16px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 540px) {
  .funnel-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.funnel-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  background: var(--ink);
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  position: relative;
  transition: background-color 0.12s var(--ease);
}

.funnel-card:active,
.funnel-card.active { background: var(--ink-3); }

.funnel-card.active {
  box-shadow: inset 3px 0 0 0 var(--blood);
}

.funnel-card.transfer .card-step { color: var(--warn); }

.card-step {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--ash);
  letter-spacing: 1px;
}

.card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--bone);
  letter-spacing: 0.2px;
}

.card-count {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--bone);
  letter-spacing: 1px;
  line-height: 1;
}

.funnel-drill {
  margin: 0 16px 16px;
  background: var(--ink);
  border: 1px solid var(--line);
}

.drill-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-3);
}

.drill-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1.4px;
  color: var(--bone);
}

.drill-close {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ash-2);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

.drill-close:active {
  border-color: var(--blood);
  color: var(--blood);
}

.drill-body {
  max-height: 50vh;
  overflow-y: auto;
}

.drill-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.drill-item:first-child { border-top: 0; }
.drill-item:active { background: var(--ink-3); }

.drill-avatar {
  width: 36px;
  height: 36px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: var(--bone);
}

.drill-info { min-width: 0; }

.drill-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drill-phone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ash-2);
  margin-top: 3px;
  letter-spacing: 0.3px;
}

.drill-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ash);
  letter-spacing: 0.5px;
}

/* ============= CHAT ============= */
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
}

.chat-head::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 1px;
  background: var(--rule-blood);
  opacity: 0.4;
}

.chat-back {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.chat-back:active {
  border-color: var(--blood);
  color: var(--blood);
}

#chat-avatar {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.chat-head-meta {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.chat-head h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-sub {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ash);
  margin-top: 3px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 800;
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--ash-2);
  text-transform: uppercase;
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.status-pill[data-state='thinking'] {
  border-color: var(--blood);
  color: var(--blood);
  animation: blink 1.2s ease-in-out infinite;
}

.status-pill[data-state='live'] {
  border-color: var(--ok);
  color: var(--ok);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.release-btn {
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 800;
  padding: 7px 11px;
  margin-left: 8px;
  border: 1px solid var(--blood);
  background: var(--ink);
  color: var(--blood);
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.release-btn:hover:not(:disabled) {
  background: var(--blood);
  color: var(--ink);
}

.release-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-stream {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at 80% 0%, rgba(225, 15, 15, 0.05), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(225, 15, 15, 0.04), transparent 40%),
    var(--ink);
}

.bubble {
  max-width: 86%;
  padding: 11px 13px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.1px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  animation: slide-in 0.18s var(--ease);
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bubble-time {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--ash);
  margin-top: 7px;
  opacity: 0.75;
  letter-spacing: 0.4px;
}

.bubble.in {
  align-self: flex-start;
  background: var(--ink-2);
  border-left: 3px solid var(--blood);
  color: var(--bone);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.4) inset;
}

.bubble.out {
  align-self: flex-end;
  background: var(--ink-3);
  border-right: 3px solid var(--blood);
  color: var(--bone);
  font-weight: 500;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.4) inset;
}

.bubble.audio::before {
  content: '🎙 ÁUDIO';
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--ash);
  margin-bottom: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.bubble.image {
  padding: 6px 6px 4px;
  max-width: 78%;
}

.bubble-image-link {
  display: block;
  line-height: 0;
}

.bubble-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  background: var(--ink);
}

.bubble.image .bubble-time {
  padding: 0 4px;
  margin-top: 6px;
}

.event-chip {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px dashed var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ash-2);
  background: transparent;
  margin: 3px 0;
  font-weight: 600;
}

.event-chip.crm { border-color: rgba(245, 165, 36, 0.5); color: var(--warn); }
.event-chip.ai { border-color: rgba(225, 15, 15, 0.55); color: var(--blood); }
.event-chip.ai-done { border-color: var(--blood); color: var(--bone); background: var(--blood); }
.event-chip.transcription { border-color: rgba(40, 215, 123, 0.4); color: var(--ok); }
.event-chip.error { border-color: var(--blood); color: var(--bone); background: var(--blood-deep); border-style: solid; }
.event-chip.sent { border-color: rgba(40, 215, 123, 0.4); color: var(--ok); }

.chat-foot {
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.chat-foot::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--rule-blood);
  opacity: 0.25;
}

.foot-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--ash);
  text-transform: uppercase;
  font-weight: 600;
}

.foot-label::before,
.foot-label::after {
  content: '·';
  color: var(--blood);
  margin: 0 6px;
  font-weight: 800;
}

/* ============= SCROLLBARS ============= */
.list-body::-webkit-scrollbar,
.chat-stream::-webkit-scrollbar {
  width: 4px;
}

.list-body::-webkit-scrollbar-track,
.chat-stream::-webkit-scrollbar-track {
  background: transparent;
}

.list-body::-webkit-scrollbar-thumb,
.chat-stream::-webkit-scrollbar-thumb {
  background: var(--line);
}

/* ============= FOCUS ============= */
:where(button, [tabindex]):focus-visible {
  outline: 1px solid var(--blood);
  outline-offset: 2px;
}

/* ============= REDUCED MOTION ============= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
