:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --surface-3: #e3e9ef;
  --text: #101419;
  --text-soft: #52606d;
  --muted: #8793a0;
  --line: #dbe2ea;
  --accent: #1f9bd1;
  --accent-2: #0f7fac;
  --bubble-in: #ffffff;
  --bubble-out: #d9f1ff;
  --green: #20b265;
  --red: #ef4d4d;
  --shadow: 0 18px 54px rgba(19, 33, 48, .16);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1318;
    --surface: #171c22;
    --surface-2: #202730;
    --surface-3: #29313b;
    --text: #f5f7fb;
    --text-soft: #b7c0ca;
    --muted: #7f8b96;
    --line: #2b333d;
    --accent: #28a8d8;
    --accent-2: #168bbb;
    --bubble-in: #202832;
    --bubble-out: #1f6f8f;
    --shadow: 0 18px 54px rgba(0, 0, 0, .34);
  }
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --surface-3: #e3e9ef;
  --text: #101419;
  --text-soft: #52606d;
  --muted: #8793a0;
  --line: #dbe2ea;
  --bubble-in: #ffffff;
  --bubble-out: #d9f1ff;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1318;
  --surface: #171c22;
  --surface-2: #202730;
  --surface-3: #29313b;
  --text: #f5f7fb;
  --text-soft: #b7c0ca;
  --muted: #7f8b96;
  --line: #2b333d;
  --bubble-in: #202832;
  --bubble-out: #1f6f8f;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  display: none !important;
}

.auth-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(31, 155, 209, .18), transparent 42%),
    linear-gradient(315deg, rgba(32, 178, 101, .14), transparent 44%),
    var(--bg);
}

.auth-card {
  width: min(380px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
  text-align: center;
}

.brand-mark img {
  width: 76px;
  height: 76px;
}

.auth-card h1 {
  margin-top: 12px;
  font-size: 29px;
}

.auth-card p {
  margin: 6px 0 22px;
  color: var(--muted);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-2);
}

.segment {
  min-height: 40px;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.segment.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.form-stack {
  display: grid;
  gap: 12px;
}

.field,
.search,
.composer-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.field {
  min-height: 48px;
  border-radius: 14px;
  padding: 0 14px;
}

.textarea {
  min-height: 92px;
  padding: 12px 14px;
  resize: vertical;
}

.field:focus,
.search:focus,
.composer-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.primary-btn,
.secondary-btn,
.danger-text {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 16px;
  font-weight: 750;
  transition: transform .14s ease, opacity .14s ease, background .14s ease;
}

.primary-btn {
  background: var(--accent);
  color: white;
}

.secondary-btn {
  background: var(--surface-2);
  color: var(--text);
}

.danger-text {
  background: transparent;
  color: var(--red);
}

.primary-btn:active,
.secondary-btn:active,
.danger-text:active,
.icon-btn:active,
.tab:active,
.send-btn:active,
.voice-btn:active {
  transform: scale(.96);
}

.full {
  width: 100%;
}

.app {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) calc(64px + var(--safe-bottom));
  background: var(--bg);
}

.incoming-call-banner {
  position: fixed;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 45;
  width: min(560px, calc(100vw - 20px));
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  transform: translateX(-50%);
  padding: 8px 9px 8px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .2);
  backdrop-filter: blur(18px);
  animation: callBannerIn .18s ease both;
}

@keyframes callBannerIn {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.incoming-call-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-weight: 800;
}

.incoming-call-main span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incoming-call-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--green);
  animation: pulseDot 1s infinite;
}

@keyframes pulseDot {
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--green) 0%, transparent); }
}

.incoming-call-actions {
  display: flex;
  gap: 6px;
}

.incoming-call-accept,
.incoming-call-decline {
  min-width: 78px;
  height: 40px;
  border-radius: 999px;
  color: white;
  font-size: 13px;
  font-weight: 850;
}

.incoming-call-accept {
  background: var(--green);
}

.incoming-call-decline {
  background: var(--red);
}

.sidebar {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 64px 58px minmax(0, 1fr);
  background: var(--surface);
  overflow: hidden;
}

.app-head,
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(18px);
}

.profile-chip {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.profile-text,
.chat-title {
  min-width: 0;
  display: grid;
}

.profile-text strong,
.chat-title strong,
.chat-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-text span,
.chat-title span {
  color: var(--muted);
  font-size: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 14px;
  background: transparent;
  color: var(--text-soft);
  transition: transform .14s ease, background .14s ease;
}

.icon-btn:hover {
  background: var(--surface-2);
}

.icon-btn .icon,
.send-btn .icon,
.voice-btn .icon {
  pointer-events: none;
}

.search-bar {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.search {
  height: 42px;
  border-radius: 14px;
  padding: 0 14px;
}

.pane {
  min-height: 0;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pane.active {
  display: block;
  animation: paneIn .18s ease both;
}

@keyframes paneIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-title {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 16px 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.pull-hint {
  height: 0;
  overflow: hidden;
  color: var(--accent);
  font-size: 12px;
  text-align: center;
  transition: height .16s ease;
}

.pull-hint.active {
  height: 28px;
  padding-top: 8px;
}

.list {
  display: grid;
  gap: 2px;
  padding: 6px;
}

.chat-item {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 18px;
  background: transparent;
  text-align: left;
  transition: transform .14s ease, background .14s ease;
}

.chat-item:hover,
.chat-item.active {
  background: var(--surface-2);
}

.chat-item.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.chat-item:active {
  transform: scale(.985);
}

.chat-item-body {
  min-width: 0;
  flex: 1;
}

.chat-item-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.chat-name {
  font-size: 15px;
  font-weight: 760;
}

.chat-time,
.chat-sub {
  color: var(--muted);
  font-size: 12px;
}

.chat-sub {
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  width: 48px;
  height: 48px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  color: white;
  font-weight: 850;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .26), transparent);
  animation: skeleton 1.1s infinite;
}

@keyframes skeleton {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.avatar-xl {
  width: 92px;
  height: 92px;
  flex-basis: 92px;
  font-size: 30px;
}

.chat-shell {
  min-width: 0;
  min-height: 0;
  display: none;
  position: relative;
  background:
    linear-gradient(rgba(127, 139, 150, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 139, 150, .08) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
}

.empty-state {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-state img {
  width: 84px;
  height: 84px;
}

.empty-state strong {
  color: var(--text);
  font-size: 20px;
}

.chat-view {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) auto auto;
}

.back-btn {
  font-size: 0;
}

.chat-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.call-btn,
.video-btn {
  color: var(--accent);
}

.video-btn {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.messages {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  padding: 14px 10px 8px;
}

.msg-row {
  display: flex;
  touch-action: pan-y;
}

.msg-row.out {
  justify-content: flex-end;
}

.bubble {
  max-width: min(82%, 560px);
  padding: 8px 11px 7px;
  border-radius: 18px;
  background: var(--bubble-in);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
  overflow-wrap: anywhere;
  animation: msgIn .16s ease both;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-row.out .bubble {
  background: var(--bubble-out);
}

.msg-row.replying .bubble {
  transform: translateX(28px);
}

.bubble .body {
  font-size: 15px;
  line-height: 1.36;
}

.reply-quote {
  margin-bottom: 6px;
  padding-left: 8px;
  border-left: 3px solid var(--accent);
  color: var(--text-soft);
  font-size: 12px;
}

.meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.date-sep {
  align-self: center;
  margin: 10px 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
  font-size: 12px;
}

.voice-message {
  width: min(260px, calc(100vw - 120px));
  min-width: min(220px, calc(100vw - 120px));
  max-width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  overflow: hidden;
}

.voice-play {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  flex: 0 0 40px;
  transition: transform .14s ease, filter .14s ease;
}

.voice-message:active .voice-play {
  transform: scale(.94);
  filter: brightness(1.08);
}

.voice-wave {
  width: 100%;
  max-width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--accent);
  contain: layout paint;
}

.voice-wave > wave {
  max-width: 100%;
  overflow: hidden !important;
}

.voice-wave span {
  flex: 0 0 2px;
}

.voice-message > div {
  min-width: 0;
  overflow: hidden;
}

.typing-line {
  min-height: 20px;
  padding: 0 14px 2px;
  color: var(--accent);
  font-size: 13px;
}

.composer-wrap {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  padding-bottom: max(8px, var(--safe-bottom));
}

.composer {
  min-height: 64px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px 46px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
}

.composer-input {
  height: 46px;
  border-radius: 18px;
  padding: 0 14px;
}

.send-btn,
.voice-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 18px;
  transition: transform .14s ease, background .14s ease;
}

.voice-btn {
  background: var(--surface-3);
  color: var(--red);
}

.voice-btn.recording {
  background: var(--red);
  color: white;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 38%, transparent); }
  50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--red) 0%, transparent); }
}

.recording-strip,
.reply-preview {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.reply-preview {
  justify-content: space-between;
  color: var(--accent);
}

.reply-preview button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
}

.record-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.tabbar {
  height: calc(64px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  padding-bottom: var(--safe-bottom);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

.tab {
  height: 64px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

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

.tab .icon {
  width: 22px;
  height: 22px;
}

.tab.active .icon {
  filter: drop-shadow(0 7px 14px color-mix(in srgb, var(--accent) 34%, transparent));
}

.settings-card {
  display: grid;
  gap: 18px;
  padding: 12px 16px 90px;
}

.avatar-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-form label {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.muted-list {
  color: var(--muted);
}

.muted-list::before {
  content: "История звонков появится после первого вызова";
  display: block;
  padding: 12px;
}

.call-item {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 18px;
  background: transparent;
  text-align: left;
  transition: transform .14s ease, background .14s ease;
}

.call-item:hover {
  background: var(--surface-2);
}

.call-item:active {
  transform: scale(.985);
}

.call-item-body {
  min-width: 0;
  flex: 1;
}

.call-sub {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.call-sub.bad {
  color: var(--red);
}

.call-sub .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.call-sub span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-overlay,
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(16px);
}

.call-card,
.modal-card {
  width: min(440px, 100%);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.call-card {
  min-height: min(680px, calc(100vh - 40px));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 28px 18px;
  text-align: center;
}

.call-card.video-mode {
  width: min(820px, 100%);
  min-height: min(760px, calc(100vh - 32px));
  align-content: stretch;
}

.call-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 58vh;
  overflow: hidden;
  border-radius: 24px;
  background: #05070a;
}

.call-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#local-video {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 31%;
  max-width: 150px;
  aspect-ratio: 3 / 4;
  height: auto;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .34);
}

.avatar-call {
  width: 118px;
  height: 118px;
  flex-basis: 118px;
  font-size: 38px;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 38%, transparent);
  animation: callPulse 1.4s infinite;
}

@keyframes callPulse {
  50% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 0%, transparent); }
}

.call-wave {
  width: 132px;
  height: 20px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
}

.call-wave span {
  align-self: center;
  height: 30%;
  border-radius: 999px;
  background: var(--accent);
  animation: level 900ms infinite ease-in-out;
}

.call-wave span:nth-child(2n) { animation-delay: 120ms; }
.call-wave span:nth-child(3n) { animation-delay: 260ms; }

@keyframes level {
  50% { height: 100%; }
}

.call-actions,
.call-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.call-action {
  min-width: 116px;
  height: 48px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
}

.green { background: var(--green); }
.red { background: var(--red); }

.tool-btn {
  min-width: 84px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 760;
}

.tool-btn.active {
  background: var(--accent);
  color: white;
}

.tool-btn.danger-active {
  background: var(--red);
  color: white;
}

.message-menu {
  position: fixed;
  z-index: 60;
  min-width: 160px;
  display: grid;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.message-menu button {
  min-height: 40px;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  padding: 0 10px;
}

.message-menu button:hover {
  background: var(--surface-2);
}

.modal-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cropper {
  width: min(500px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-2);
}

#avatar-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#avatar-zoom {
  width: 100%;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + var(--safe-bottom));
  z-index: 80;
  max-width: min(420px, calc(100vw - 28px));
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 999px;
  background: #111820;
  color: white;
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: toastIn .18s ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (min-width: 820px) {
  .app {
    grid-template-columns: 372px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .sidebar {
    border-right: 1px solid var(--line);
  }

  .chat-shell {
    display: block;
  }

  .tabbar {
    display: none;
  }

  .back-btn {
    display: none;
  }

  .bubble {
    max-width: min(68%, 560px);
  }

  .voice-message {
    width: 300px;
    min-width: 260px;
  }

  .call-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 819px) {
  .incoming-call-banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .incoming-call-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .incoming-call-accept,
  .incoming-call-decline {
    width: 100%;
  }

  .app.chat-open {
    grid-template-rows: minmax(0, 1fr);
  }

  .app.chat-open .sidebar,
  .app.chat-open .tabbar {
    display: none;
  }

  .app.chat-open .chat-shell {
    display: block;
  }
}

.msg-media {
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin-bottom: 6px;
  cursor: pointer;
}
.msg-video {
  cursor: default;
}
.attach-btn {
  color: var(--text-soft);
}
