:root {
  --bg-base: #0e0e0e;
  --bg-surface-1: #141414;
  --bg-surface-2: #1b1b1b;
  --bg-surface-3: #202022;
  --bg-gradient-from: #272727;
  --bg-gradient-to: #1d1d1d;
  --accent: #e81c5a;
  --accent-hover: #f02566;
  --accent-soft: rgba(232, 28, 90, 0.18);
  --text-primary: #f4f4f5;
  --text-secondary: #b5b5bb;
  --text-muted: #8a8a92;
  --border-soft: #2a2a2f;
  --border-strong: #34343a;
  --danger: #ff5f6d;
  --success: #31c48d;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-ovr: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 8px 16px rgba(0, 0, 0, 0.18);
  --fast: 120ms;
  --normal: 180ms;
  --panel: 220ms;
  --slow: 280ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(600px 340px at 8% 8%, rgba(232, 28, 90, 0.08), transparent 60%),
    radial-gradient(700px 400px at 92% 90%, rgba(255, 255, 255, 0.04), transparent 60%),
    linear-gradient(180deg, #101012 0%, var(--bg-base) 100%);
  color: var(--text-primary);
  font-family: "Manrope", "Segoe UI Variable", "Segoe UI", sans-serif;
  overflow: hidden;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

input,
textarea {
  border: 0;
  outline: 0;
  background: transparent;
}

.vova-bg-shape {
  position: fixed;
  width: 44vmax;
  height: 44vmax;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.22;
  pointer-events: none;
}

.shape-a {
  top: -14vmax;
  left: -10vmax;
  background: radial-gradient(circle at 30% 30%, rgba(232, 28, 90, 0.45), rgba(232, 28, 90, 0) 70%);
}

.shape-b {
  bottom: -18vmax;
  right: -12vmax;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 70%);
}

.desktop-shell {
  position: relative;
  height: 100vh;
  padding: 14px;
  display: grid;
  grid-template-columns: 332px minmax(480px, 1fr) 324px;
  gap: 10px;
}

.desktop-shell.call-live {
  box-shadow:
    inset 0 0 0 1px rgba(232, 28, 90, 0.16),
    0 0 0 1px rgba(232, 28, 90, 0.1),
    0 0 22px rgba(232, 28, 90, 0.1);
}

.panel-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--bg-gradient-from), var(--bg-gradient-to));
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 12px;
  min-height: 0;
}

.sidebar,
.details-panel {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--accent), #bc1a4a);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.brand-sub {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition:
    background var(--fast) var(--ease-standard),
    border-color var(--fast) var(--ease-standard),
    color var(--fast) var(--ease-standard),
    transform var(--fast) var(--ease-standard);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.icon-btn:active {
  transform: translateY(1px);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.icon-btn.ghost {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.icon-btn.ghost span {
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

.icon-btn.compact {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.icon-btn.danger {
  color: #ffd7de;
  background: rgba(255, 95, 109, 0.12);
  border-color: rgba(255, 95, 109, 0.25);
}

.search-box {
  margin-top: 2px;
  height: 38px;
  position: relative;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color var(--normal) var(--ease-standard), background var(--normal) var(--ease-standard);
}

.sidebar-menu-wrap .dropdown {
  left: 0;
  right: auto;
  width: 230px;
}

.sidebar-app-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-suggestions {
  margin-top: -2px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(26, 26, 29, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-ovr);
  padding: 6px;
  display: grid;
  gap: 2px;
  z-index: 20;
}

.search-suggestion-empty {
  padding: 9px 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.search-suggestion-item {
  width: 100%;
  min-height: 42px;
  border-radius: 9px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.04);
}

.search-suggestion-item .avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 10px;
}

.search-suggestion-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.search-suggestion-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-title .mode-pill {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-secondary);
}

.search-box:focus-within {
  border-color: rgba(232, 28, 90, 0.35);
  background: rgba(232, 28, 90, 0.06);
}

.search-box svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #76767e;
}

.section-title {
  padding: 6px 4px 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.auth-user-row {
  min-height: 40px;
  border-radius: 10px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auth-user-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.auth-user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.auth-user-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.tiny-action {
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 11px;
}

.tiny-action:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.pinned-list {
  max-height: 150px;
}

.chat-row {
  min-height: 66px;
  width: 100%;
  border-radius: 10px;
  padding: 8px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  border: 1px solid transparent;
  text-align: left;
  transition:
    background var(--fast) var(--ease-standard),
    border-color var(--fast) var(--ease-standard),
    transform var(--fast) var(--ease-standard);
}

.chat-row:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.04);
}

.chat-row.active {
  background: linear-gradient(180deg, rgba(232, 28, 90, 0.14), rgba(232, 28, 90, 0.07));
  border-color: rgba(232, 28, 90, 0.22);
}

.chat-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.chat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.chat-name {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-time {
  font-size: 11px;
  color: var(--text-muted);
  flex: 0 0 auto;
}

.chat-preview {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.chat-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.chat-badge.muted {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(180deg, #303036, #26262b);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.avatar.large {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.avatar.huge {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  font-size: 20px;
}

.avatar-gradient {
  background: linear-gradient(180deg, #ff4d88, #c2194b);
}

.avatar-group {
  background: linear-gradient(180deg, #3b3b44, #2d2d35);
}

.avatar-accent {
  background: linear-gradient(180deg, #ff6976, #d94f4d);
}

.avatar-saved {
  background: linear-gradient(180deg, #454550, #303039);
}

.chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 0;
}

.chat-topbar {
  height: 62px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
}

.peer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.peer-name-wrap {
  position: relative;
}

.peer-name-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: inherit;
  min-width: 0;
}

.peer-name-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  color: var(--text-muted);
  flex: 0 0 auto;
}

.peer-name-btn:hover svg {
  color: var(--text-secondary);
}

.peer-name-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
}

.peer-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.peer-status {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(49, 196, 141, 0.14);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-wrap {
  position: relative;
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 212px;
  border-radius: 12px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(28, 28, 31, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-ovr);
  animation: fadeScale var(--normal) var(--ease-standard);
  z-index: 40;
}

.dropdown button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background var(--fast) var(--ease-standard), color var(--fast) var(--ease-standard);
}

.dropdown button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.danger-item {
  color: #ffb0bc !important;
}

.message-stream {
  min-height: 0;
  overflow: auto;
  padding: 10px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(400px 180px at 65% 0%, rgba(232, 28, 90, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
}

.pinned-chat-banner {
  margin: 8px 12px 0;
  border: 1px solid rgba(232, 28, 90, 0.16);
  background: linear-gradient(180deg, rgba(232, 28, 90, 0.08), rgba(255, 255, 255, 0.01));
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  gap: 6px;
}

.pinned-chat-banner-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pinned-chat-banner-label {
  font-size: 11px;
  color: #ffd0de;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pinned-chat-banner-body {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 2px;
  border-radius: 8px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.pinned-chat-banner-body:hover {
  background: rgba(255, 255, 255, 0.04);
}

.pinned-chat-banner-author {
  font-size: 11px;
  color: #ffc5d8;
  font-weight: 700;
}

.pinned-chat-banner-text {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-separator,
.unread-separator {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.date-separator span,
.unread-separator span {
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  padding: 4px 9px;
}

.unread-separator span {
  color: #ffdce6;
  background: rgba(232, 28, 90, 0.1);
  border-color: rgba(232, 28, 90, 0.16);
}

.message-row {
  display: flex;
}

.message-row.incoming {
  justify-content: flex-start;
}

.message-row.outgoing {
  justify-content: flex-end;
}

.message-row.search-hit .bubble {
  outline: 1px solid rgba(232, 28, 90, 0.55);
  box-shadow: 0 0 0 2px rgba(232, 28, 90, 0.12);
}

.bubble {
  max-width: min(72%, 560px);
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  transition: background var(--fast) var(--ease-standard), border-color var(--fast) var(--ease-standard);
}

.message-row.outgoing .bubble {
  background: linear-gradient(180deg, rgba(232, 28, 90, 0.16), rgba(232, 28, 90, 0.09));
  border-color: rgba(232, 28, 90, 0.2);
}

.bubble:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.bubble-text {
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text-primary);
}

.bubble-text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.24);
}

.bubble-text a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.bubble-author-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.bubble-author-avatar {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex: 0 0 auto;
}

.bubble-media-inline {
  margin-top: 6px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0b0b0d;
  max-width: 340px;
}

.bubble-media-inline img,
.bubble-media-inline video {
  width: 100%;
  display: block;
  max-height: 280px;
  object-fit: cover;
  background: #050506;
}

.bubble-media-inline button {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
}

.attachment-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.bubble-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

.reply-pill {
  border-left: 2px solid rgba(232, 28, 90, 0.7);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
  display: grid;
  gap: 2px;
}

.reply-author {
  font-size: 11px;
  font-weight: 700;
  color: #ffc7d8;
}

.reply-snippet {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bubble-foot {
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reactions {
  display: flex;
  gap: 6px;
}

.reaction {
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--text-secondary);
}

.reaction.active {
  background: rgba(232, 28, 90, 0.14);
  border-color: rgba(232, 28, 90, 0.22);
  color: #ffdbe6;
}

.bubble.voice {
  padding-bottom: 8px;
}

.voice-visual {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
}

.play-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(232, 28, 90, 0.14);
  color: #ffe0e9;
  font-size: 12px;
}

.wave-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 24px;
}

.wave-bars span {
  width: 3px;
  height: var(--h);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(232, 28, 90, 0.8), rgba(232, 28, 90, 0.35));
}

.voice-time {
  font-size: 11px;
  color: var(--text-secondary);
}

.typing-indicator {
  margin-top: 2px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 12px;
}

.typing-indicator i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDots 900ms infinite ease-in-out;
}

.typing-indicator i:nth-child(2) {
  animation-delay: 120ms;
}

.typing-indicator i:nth-child(3) {
  animation-delay: 240ms;
}

.composer-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: end;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.composer-tools {
  display: flex;
  gap: 6px;
}

.composer-tools.right-tools {
  align-items: center;
}

.composer-input-wrap {
  min-width: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: border-color var(--normal) var(--ease-standard), background var(--normal) var(--ease-standard);
}

.composer-input-wrap:focus-within {
  border-color: rgba(232, 28, 90, 0.32);
  background: rgba(232, 28, 90, 0.05);
}

.composer-input-wrap.recording-voice {
  border-color: rgba(232, 28, 90, 0.3);
  background: rgba(232, 28, 90, 0.04);
}

.reply-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.015);
}

.reply-label {
  font-size: 11px;
  color: #ffc8d9;
  font-weight: 700;
}

.reply-preview-text {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.tiny-icon-btn {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
}

#composer-input {
  width: 100%;
  min-height: 42px;
  max-height: 160px;
  resize: none;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-primary);
}

#composer-input::placeholder {
  color: #84848d;
}

.send-btn {
  height: 42px;
  min-width: 98px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), #cc1a4e);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform var(--fast) var(--ease-standard),
    filter var(--fast) var(--ease-standard),
    background var(--fast) var(--ease-standard);
}

.send-btn:hover {
  filter: brightness(1.05);
}

.send-btn:active {
  transform: translateY(1px);
}

.send-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.send-btn.compact-mode {
  min-width: 42px;
  width: 42px;
  padding: 0;
  justify-content: center;
}

.send-btn.compact-mode .send-label {
  display: none;
}

.send-btn.recording {
  background: linear-gradient(180deg, #ff5a77, #b91643);
  animation: pulse-rec 1s ease-in-out infinite;
}

.send-btn.recording .send-label {
  display: inline;
}

.send-btn.recording.compact-mode {
  min-width: 76px;
  width: auto;
  padding: 0 12px;
}

.send-btn.recording.compact-mode .send-label {
  display: inline;
}

#voice-record-btn.toggled {
  color: #ffd6e2;
  border-color: rgba(232, 28, 90, 0.28);
  background: rgba(232, 28, 90, 0.12);
}

#voice-stop-btn {
  color: #ffd6e2;
  border-color: rgba(232, 28, 90, 0.28);
  background: rgba(232, 28, 90, 0.12);
}

#voice-cancel-btn {
  border-color: rgba(255, 255, 255, 0.08);
}

@keyframes pulse-rec {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14); }
}

.details-panel {
  min-height: 0;
  overflow: auto;
}

.details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.details-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.profile-card {
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: grid;
  justify-items: start;
  gap: 6px;
}

.profile-name {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
}

.profile-handle {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-bio {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.info-item {
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 4px;
}

.info-item .label {
  font-size: 11px;
  color: var(--text-muted);
}

.info-item .value {
  font-size: 14px;
  font-weight: 700;
}

.panel-block {
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 4px;
}

.block-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 4px 6px;
}

.row-action {
  width: 100%;
  min-height: 34px;
  border-radius: 9px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  color: var(--text-secondary);
  transition: background var(--fast) var(--ease-standard), color var(--fast) var(--ease-standard);
}

.row-action.compact {
  margin-top: 2px;
  padding: 9px 10px;
}

.row-action:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.row-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.media-tile {
  aspect-ratio: 1.1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background-size: cover;
  background-position: center;
  display: grid;
  align-content: end;
  padding: 8px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.media-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.46));
  pointer-events: none;
}

.media-tile-label {
  position: relative;
  z-index: 1;
  font-size: 10px;
  line-height: 1.25;
  color: #ececf1;
  text-align: left;
  word-break: break-word;
}

.media-tile-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-tile.t1 { background: linear-gradient(135deg, #4a4a54, #292930); }
.media-tile.t2 { background: linear-gradient(135deg, #402a33, #20171c), radial-gradient(circle at 65% 35%, rgba(232, 28, 90, 0.4), transparent 50%); }
.media-tile.t3 { background: linear-gradient(135deg, #2e3c44, #1c2328); }
.media-tile.t4 { background: linear-gradient(135deg, #3e3432, #241d1c); }

.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  min-width: 300px;
  border-radius: 14px;
  background: rgba(22, 22, 25, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-ovr);
  padding: 10px;
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 8px;
  align-items: center;
  animation: slideUpFade var(--panel) var(--ease-standard);
}

.active-call-panel {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 65;
  width: min(360px, calc(100vw - 24px));
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(180px 100px at 25% 5%, rgba(232, 28, 90, 0.12), transparent 70%),
    rgba(19, 19, 21, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-ovr);
  display: grid;
  gap: 10px;
}

.active-call-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.active-call-title {
  font-size: 12px;
  color: var(--text-secondary);
}

.active-call-time {
  font-size: 12px;
  font-weight: 700;
  color: #ffd7e4;
}

.active-call-peer {
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 10px;
}

.active-call-peer-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.active-call-peer-meta strong {
  font-size: 14px;
}

.active-call-peer-meta span {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.call-video-stage {
  position: relative;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(232, 28, 90, 0.12), transparent 55%),
    linear-gradient(180deg, #141414, #0f0f0f);
  min-height: 168px;
}

.call-video-stage-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.stage-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(10, 10, 12, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.stage-btn:hover {
  background: rgba(22, 22, 25, 0.78);
}

.call-remote-video {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
}

.call-local-video {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #090909;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.call-video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.call-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.call-participant-pill {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 4px 8px 4px 5px;
  font-size: 11px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.call-participant-pill.self {
  border-color: rgba(232, 28, 90, 0.24);
  color: #ffd7e3;
}

.call-participant-avatar {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}

.call-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.call-stat {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 8px 10px;
  display: grid;
  gap: 3px;
}

.call-stat span {
  font-size: 11px;
  color: var(--text-secondary);
}

.call-stat strong {
  font-size: 12px;
  color: var(--text-primary);
}

.active-call-actions {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.active-call-actions .icon-btn.toggled {
  background: rgba(232, 28, 90, 0.14);
  border-color: rgba(232, 28, 90, 0.32);
  color: #ffd7e3;
}

#active-call-panel:fullscreen {
  width: 100vw;
  max-width: none;
  height: 100vh;
  right: 0;
  bottom: 0;
  border-radius: 0;
  padding: 16px;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
}

#active-call-panel:fullscreen .call-video-stage {
  min-height: 0;
  height: 100%;
}

#active-call-panel:fullscreen .call-remote-video {
  height: 100%;
  object-fit: contain;
  background: #060607;
}

#active-call-panel:fullscreen .call-local-video {
  width: min(22vw, 280px);
  height: auto;
  aspect-ratio: 16 / 9;
}

#call-video-stage:fullscreen {
  border-radius: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
}

#call-video-stage:fullscreen .call-remote-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020203;
}

#call-video-stage:fullscreen .call-local-video {
  width: min(22vw, 280px);
  height: auto;
  aspect-ratio: 16 / 9;
}

#call-remote-video:fullscreen,
#call-local-video:fullscreen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

.call-chip-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--accent), #c3194a);
  font-weight: 700;
}

.call-chip-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.call-chip-meta strong {
  font-size: 13px;
}

.call-chip-meta span {
  font-size: 11px;
  color: var(--text-secondary);
}

.hidden {
  display: none !important;
}

button:disabled,
textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 8, 0.6);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 70;
  animation: fadeIn var(--normal) var(--ease-standard);
}

.modal {
  width: min(920px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  overflow: hidden;
  background: rgba(20, 20, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow-ovr);
  display: grid;
  grid-template-rows: auto 1fr;
}

.media-viewer {
  width: min(900px, calc(100vw - 24px));
  max-height: min(88vh, 860px);
}

.media-viewer-body {
  min-height: 240px;
  max-height: min(74vh, 760px);
  border-radius: 12px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #0a0a0b;
  display: grid;
  place-items: center;
  padding: 10px;
}

.media-viewer-body img,
.media-viewer-body video {
  max-width: 100%;
  max-height: min(70vh, 720px);
  display: block;
  object-fit: contain;
}

.media-viewer-caption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.flash-outline {
  animation: flashOutline 850ms ease;
}

@keyframes flashOutline {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 28, 90, 0);
    outline-color: rgba(232, 28, 90, 0);
  }
  30% {
    box-shadow: 0 0 0 2px rgba(232, 28, 90, 0.22);
    outline-color: rgba(232, 28, 90, 0.55);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 28, 90, 0);
    outline-color: rgba(232, 28, 90, 0);
  }
}

.modal-header {
  height: 56px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.settings-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.settings-nav {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 4px;
}

.settings-tab {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  text-align: left;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
}

.settings-tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.settings-tab.active {
  background: rgba(232, 28, 90, 0.1);
  border-color: rgba(232, 28, 90, 0.2);
  color: #ffd6e3;
}

.settings-content {
  padding: 12px;
  display: grid;
  gap: 10px;
  overflow: auto;
}

.settings-card {
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 10px;
}

.settings-avatar-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.settings-avatar-actions {
  display: grid;
  gap: 8px;
}

.session-list {
  display: grid;
  gap: 6px;
}

.session-item {
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 3px;
}

.session-item.current {
  border-color: rgba(232, 28, 90, 0.22);
  background: rgba(232, 28, 90, 0.06);
}

.session-item strong {
  font-size: 12px;
}

.session-item span {
  font-size: 11px;
  color: var(--text-secondary);
}

.settings-card-title {
  font-size: 13px;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 11px;
  color: var(--text-muted);
}

.field input,
.field textarea {
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.field textarea {
  resize: vertical;
  min-height: 72px;
}

.toggle-row {
  min-height: 40px;
  border-radius: 10px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.pill {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pill.on {
  background: rgba(49, 196, 141, 0.12);
  color: #c9f4e4;
  border-color: rgba(49, 196, 141, 0.2);
}

.sub-value {
  font-size: 12px;
  color: var(--text-secondary);
}

.incoming-call {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 80;
  width: min(420px, calc(100vw - 24px));
  border-radius: 16px;
  padding: 16px;
  background:
    radial-gradient(180px 100px at 30% 10%, rgba(232, 28, 90, 0.14), transparent 70%),
    rgba(20, 20, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-ovr);
  display: grid;
  justify-items: center;
  gap: 8px;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(7, 7, 8, 0.72);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 12px;
}

.auth-card {
  width: min(460px, calc(100vw - 24px));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(220px 120px at 16% 0%, rgba(232, 28, 90, 0.14), transparent 70%),
    rgba(18, 18, 20, 0.97);
  box-shadow: var(--shadow-ovr);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 4px;
}

.auth-tab {
  height: 34px;
  border-radius: 9px;
  color: var(--text-secondary);
  font-weight: 600;
}

.auth-tab.active {
  color: #ffdce7;
  background: rgba(232, 28, 90, 0.12);
  border: 1px solid rgba(232, 28, 90, 0.2);
}

.auth-state h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-family: "Space Grotesk", sans-serif;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--text-secondary);
}

.check-row input {
  accent-color: var(--accent);
}

.auth-submit {
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--accent), #cc1a4e);
  color: white;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-hint {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.auth-hint code {
  color: #ffd5e2;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 1px 4px;
}

.auth-error {
  min-height: 34px;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 95, 109, 0.08);
  border: 1px solid rgba(255, 95, 109, 0.15);
  color: #ffd6dd;
  font-size: 12px;
}

.incoming-title {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
}

.incoming-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.incoming-actions {
  margin-top: 6px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.call-btn {
  height: 40px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.call-btn.decline {
  background: rgba(255, 95, 109, 0.12);
  color: #ffd7de;
  border-color: rgba(255, 95, 109, 0.2);
}

.call-btn.audio {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.call-btn.video {
  background: linear-gradient(180deg, var(--accent), #cc1a4e);
  color: white;
}

.context-menu {
  position: fixed;
  z-index: 90;
  width: 170px;
  border-radius: 10px;
  padding: 6px;
  background: rgba(25, 25, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-soft);
  animation: fadeScale var(--fast) var(--ease-standard);
}

.context-menu button {
  width: 100%;
  min-height: 34px;
  border-radius: 8px;
  text-align: left;
  padding: 0 10px;
  color: var(--text-secondary);
}

.context-menu button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.card-anim {
  animation: slideUpFade var(--panel) var(--ease-standard);
}

.details-collapsed .details-panel {
  display: none;
}

.details-collapsed.desktop-shell {
  grid-template-columns: 332px minmax(480px, 1fr);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.09);
  border: 2px solid transparent;
  background-clip: content-box;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid transparent;
  background-clip: content-box;
}

.chat-row:focus-visible,
.icon-btn:focus-visible,
.send-btn:focus-visible,
.dropdown button:focus-visible,
.context-menu button:focus-visible,
.settings-tab:focus-visible,
.call-btn:focus-visible,
.row-action:focus-visible,
.tiny-icon-btn:focus-visible {
  outline: 2px solid rgba(232, 28, 90, 0.5);
  outline-offset: 2px;
}

@keyframes typingDots {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-2px); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeScale {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1200px) {
  .desktop-shell {
    grid-template-columns: 296px minmax(420px, 1fr);
  }

  .details-panel {
    display: none;
  }
}

@media (max-width: 920px) {
body {
    overflow: auto;
  }

  .desktop-shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .sidebar {
    min-height: 260px;
  }

  .chat-panel {
    min-height: 540px;
  }

  .composer-wrap {
    grid-template-columns: 1fr;
  }

  .composer-tools.left-tools,
  .composer-tools.right-tools {
    justify-content: space-between;
  }

  .send-btn {
    min-width: 120px;
    justify-content: center;
  }

  .active-call-panel {
    right: 12px;
    left: 12px;
    bottom: 84px;
    width: auto;
  }

  .floating-call {
    right: 12px;
    left: 12px;
    bottom: 12px;
    min-width: 0;
    width: auto;
  }
}

body.compact-mode-off .desktop-shell {
  padding: 18px;
  gap: 14px;
}

body.compact-mode-off .chat-row {
  min-height: 62px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
