:root {
  --bg: #f7f4f1;
  --surface: #ffffff;
  --surface-muted: #f1f2f4;
  --surface-soft: #e7dfd8;
  --line: #dbd3cb;
  --text: #111111;
  --muted: #7c7480;
  --danger: #ff0000;
  --danger-dark: #5d1700;
  --ok: #0ab870;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", "Roboto", "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

body.chat-opened {
  overflow: hidden;
}

.app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111;
  color: #fff;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-menu-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 600;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-online {
  background: var(--ok);
}

.dot-offline {
  background: #656565;
}

.card {
  background: var(--surface);
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
}

.auth-shell {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 28px;
  display: grid;
  gap: 18px;
  background: #16181f;
  color: #fff;
}

.auth-copy h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
}

.auth-copy p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.auth-form,
.auth-card label,
.wizard-actions {
  display: grid;
  gap: 10px;
}

.register-step {
  display: grid;
  gap: 14px;
}

.wizard-actions {
  margin-top: 6px;
}

.auth-card input,
.group-title-input,
.picker-search input {
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #303543;
  background: #0f1218;
  color: #fff;
}

.auth-card button,
.picker-primary {
  min-height: 54px;
  padding: 0 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #ff6d41 0%, #ff4d17 100%);
  color: #fff;
  cursor: pointer;
}

.auth-secondary {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.register-progress {
  display: flex;
  gap: 10px;
}

.register-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.register-dot-active {
  background: #fff;
}

.hint-text {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hint-text.is-ok {
  color: #67ffaa;
}

.hint-text.is-error,
.error-text {
  color: #ff7878;
}

.shell {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(320px, 390px) 1fr;
  gap: 22px;
  padding: 22px;
  min-height: calc(100dvh - 56px);
}

.sidebar,
.chat-pane {
  padding: 18px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sidebar-top {
  display: grid;
  gap: 16px;
}

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

.sidebar-header h2 {
  margin: 0;
  font-size: 42px;
  font-weight: 500;
}

.plus-btn {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 22px;
  background: var(--surface-muted);
  color: #111;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.search-box,
.picker-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 0 22px;
  border-radius: 34px;
  background: var(--surface-muted);
  color: #8c8d95;
}

.search-box input,
.picker-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: #111;
  min-height: 0;
  padding: 0;
}

.chat-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  overflow: auto;
  display: grid;
  gap: 14px;
}

.chat-list-empty {
  padding: 30px 18px;
  border-radius: 24px;
  background: var(--surface-muted);
  color: var(--muted);
  text-align: center;
}

.chat-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 34px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 26px;
  border: 1px solid #111;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.chat-item.active {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.chat-item-read {
  background: #fff;
  color: #111;
}

.chat-item-unread {
  background: #111;
  color: #fff;
}

.chat-item-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.12);
  font-size: 22px;
}

.chat-item-unread .chat-item-avatar {
  background: rgba(255, 255, 255, 0.14);
}

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

.chat-item-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-item-title {
  font-size: 22px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item-time,
.chat-item-subtitle {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  opacity: 0.7;
}

.chat-item-preview {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-item-side {
  display: grid;
  justify-items: end;
}

.chat-item-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.chat-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100dvh - 100px);
  overflow: hidden;
}

.chat-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 122px;
  padding: 18px 20px;
  border-radius: 34px;
  background: #111;
  color: #fff;
}

.chat-pane-head-group {
  cursor: pointer;
}

.chat-pane-head-empty {
  background: var(--surface-soft);
  color: #111;
}

.chat-persona {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.chat-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
}

.chat-pane-head-empty .chat-avatar {
  background: rgba(0, 0, 0, 0.08);
}

.chat-persona-copy {
  min-width: 0;
}

.chat-pane-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
}

.chat-meta {
  margin: 4px 0 0;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  opacity: 0.72;
}

.round-action {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.round-action:disabled {
  opacity: 0.45;
  cursor: default;
}

.messages {
  flex: 1;
  min-height: 240px;
  overflow: auto;
  padding: 20px 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.messages-empty {
  margin: auto;
  color: #656c82;
  font-size: 18px;
}

.message {
  display: flex;
}

.message-own {
  justify-content: flex-end;
}

.message-peer {
  justify-content: flex-start;
}

.message-bubble {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  width: fit-content;
  max-width: min(82%, 560px);
  min-width: 132px;
  padding: 13px 10px 11px;
  border-radius: 12px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.message-own .message-bubble {
  background: #a53010;
  color: #fff;
}

.message-peer .message-bubble {
  background: #111;
  color: #fff;
}

.message-author {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  opacity: 0.92;
}

.message-content {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.message-link {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}

.attachment {
  display: grid;
  gap: 8px;
}

.attachment-image,
.attachment-video {
  width: min(320px, 100%);
  max-height: 280px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.attachment-audio {
  width: min(320px, 100%);
}

.attachment-name {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}

.message-meta {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 0.05em;
  opacity: 0.66;
}

.message-form {
  display: grid;
  grid-template-columns: 52px 1fr 60px;
  gap: 10px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 4px;
  border-top: 1px solid #ece4dc;
  margin-top: auto;
  background: var(--surface);
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.mention-suggestions {
  display: grid;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 8px;
  padding: 0 0 8px;
}

.mention-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #ddd3ca;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.mention-item-name {
  color: var(--text);
}

.mention-item-login {
  color: var(--muted);
  font-size: 13px;
}

.message-form input {
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #d9d0c7;
  border-radius: 16px;
  background: #fff;
  outline: none;
}

.composer-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #ddd3ca;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.composer-send {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: var(--danger-dark);
  color: #fff;
  cursor: pointer;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.34);
}

.picker-sheet,
.apps-sheet {
  width: min(460px, 100%);
  max-width: 100%;
  background: #fff;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.12);
}

.picker-sheet {
  padding: 18px;
  display: grid;
  gap: 14px;
  max-height: min(88dvh, 920px);
  overflow: auto;
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.picker-head h3 {
  margin: 0;
  font-size: 28px;
}

.picker-close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--surface-muted);
  cursor: pointer;
}

.picker-selection-hint {
  color: var(--muted);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}

.group-title-input {
  background: var(--surface-muted);
  color: #111;
  border-color: transparent;
}

.picker-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-height: 48vh;
  overflow: auto;
}

.picker-empty {
  padding: 24px 16px;
  border-radius: 22px;
  background: var(--surface-muted);
  color: var(--muted);
  text-align: center;
}

.picker-user {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: var(--surface-muted);
  cursor: pointer;
  width: 100%;
  min-width: 0;
}

.picker-user > div:nth-child(2) {
  min-width: 0;
}

.group-member-role {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.picker-user.is-selected {
  background: #ffe3dd;
}

.picker-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
}

.picker-user-name {
  font-size: 18px;
}

.picker-user-login {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: var(--muted);
}

.picker-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #e3d8cf;
  background: #fff;
}

.picker-user.is-selected .picker-check {
  border-color: var(--danger);
  background: var(--danger);
  box-shadow: inset 0 0 0 5px #fff;
}

.picker-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

.apps-sheet {
  padding: 14px 14px 18px;
  display: grid;
  gap: 10px;
}

.apps-sheet-item,
.apps-sheet-close {
  min-height: 56px;
  border-radius: 22px;
  border: 1.5px solid #111;
  background: #fff;
  cursor: pointer;
}

.apps-sheet-close {
  color: var(--danger);
}

.group-details-sheet {
  gap: 16px;
  align-content: start;
}

.group-details-form {
  gap: 8px;
}

.group-details-title-input {
  min-height: 52px;
}

.group-details-block {
  display: grid;
  gap: 10px;
}

.profile-sheet {
  gap: 16px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-muted);
}

.profile-name {
  font-size: 24px;
  font-weight: 500;
}

.profile-login {
  color: var(--muted);
  font-family: "Roboto", sans-serif;
}

.sessions-list {
  display: grid;
  gap: 10px;
}

.session-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface-muted);
}

.session-ua {
  font-size: 14px;
}

.session-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-family: "Roboto", sans-serif;
}

.group-details-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.group-details-placeholder {
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-muted);
  color: var(--muted);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}

.group-leave-btn {
  margin-top: 4px;
}

.group-materials-list {
  display: grid;
  gap: 10px;
  max-height: min(34dvh, 320px);
  overflow: auto;
  padding-right: 4px;
}

.group-material-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-muted);
  color: var(--text);
  text-decoration: none;
  width: 100%;
  min-width: 0;
}

.group-material-preview {
  width: 100%;
  max-height: 160px;
  border-radius: 14px;
  object-fit: cover;
  background: #d8dbe2;
}

.attachment-image-link {
  display: block;
}

.group-material-kind {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}

.group-material-name {
  font-size: 15px;
  word-break: break-word;
}

.group-material-time {
  font-size: 12px;
  color: var(--muted);
}

.requests-section {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.requests-title {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pending-requests {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.request-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1.5px solid #111;
  background: #fff4f2;
}

.request-card-title {
  font-size: 18px;
}

.request-card-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-family: "Roboto", sans-serif;
}

.request-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.request-card-actions button {
  min-width: 78px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid #111;
  background: #fff;
  cursor: pointer;
}

.request-accept {
  background: var(--danger) !important;
  color: #fff;
  border-color: var(--danger) !important;
}

.qr-login-sheet,
.qr-scanner-sheet {
  gap: 16px;
}

.qr-code-box {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 26px;
  background: var(--surface-muted);
}

.qr-code-box canvas,
.qr-code-box img {
  display: block;
  max-width: 240px;
  width: 100%;
  height: auto;
}

.qr-scanner-video {
  width: 100%;
  min-height: 280px;
  border-radius: 24px;
  background: #111;
  object-fit: cover;
}

.call-overlay-sheet {
  gap: 18px;
}

.call-overlay-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#callOverlay[data-mode="incoming"],
#callOverlay[data-mode="outgoing"] {
  place-items: center;
  padding: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 46%),
    rgba(0, 0, 0, 0.88);
}

#callOverlay[data-mode="incoming"] .call-overlay-sheet,
#callOverlay[data-mode="outgoing"] .call-overlay-sheet {
  width: min(100%, 520px);
  min-height: 100dvh;
  max-height: none;
  padding: 32px 24px 40px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  background: linear-gradient(180deg, #0f1013 0%, #17191f 100%);
  color: #fff;
  box-shadow: none;
  overflow: hidden;
  position: relative;
}

#callOverlay[data-mode="incoming"] .call-overlay-sheet::before,
#callOverlay[data-mode="outgoing"] .call-overlay-sheet::before {
  content: "";
  position: absolute;
  inset: auto 50% 180px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  filter: blur(18px);
  animation: incoming-call-pulse 1.8s ease-in-out infinite;
}

#callOverlay[data-mode="incoming"] .picker-head,
#callOverlay[data-mode="outgoing"] .picker-head {
  justify-content: center;
}

#callOverlay[data-mode="incoming"] .picker-head h3,
#callOverlay[data-mode="outgoing"] .picker-head h3 {
  font-size: 34px;
  line-height: 1.05;
  text-align: center;
  color: #fff;
}

#callOverlay[data-mode="incoming"] #callOverlaySubtitle,
#callOverlay[data-mode="outgoing"] #callOverlaySubtitle {
  position: relative;
  z-index: 1;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  font-size: 18px;
  line-height: 1.4;
}

#callOverlay[data-mode="incoming"] .call-overlay-actions,
#callOverlay[data-mode="outgoing"] .call-overlay-actions {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

#callOverlay[data-mode="incoming"] #acceptCallBtn,
#callOverlay[data-mode="incoming"] #declineCallBtn,
#callOverlay[data-mode="outgoing"] #acceptCallBtn,
#callOverlay[data-mode="outgoing"] #declineCallBtn {
  min-height: 64px;
  border-radius: 22px;
  border: none;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

#callOverlay[data-mode="incoming"] #acceptCallBtn,
#callOverlay[data-mode="outgoing"] #acceptCallBtn {
  background: #111;
  color: #fff;
}

#callOverlay[data-mode="incoming"] #declineCallBtn,
#callOverlay[data-mode="outgoing"] #declineCallBtn {
  background: #f00;
  color: #fff;
}

#callOverlay[data-mode="outgoing"] #acceptCallBtn {
  opacity: 0.6;
  cursor: default;
}

@keyframes incoming-call-pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(0.9);
    opacity: 0.45;
  }

  50% {
    transform: translateX(-50%) scale(1.08);
    opacity: 0.9;
  }
}

.voice-recorder {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 8px;
  align-items: center;
  min-height: 72px;
  margin-top: auto;
  padding: 10px 12px;
  border-top: 1px solid #ece4dc;
}

.voice-recorder-center {
  min-width: 0;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid #111;
  background: #d8ee76;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.voice-recorder-side {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.voice-recorder-mic {
  color: #ff2d2d;
}

.voice-recorder-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.voice-recorder-wave {
  display: none;
  height: 18px;
  flex: 1;
  min-width: 40px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(17,17,17,.18) 12%, transparent 24%, rgba(17,17,17,.25) 36%, transparent 48%, rgba(17,17,17,.2) 60%, transparent 72%, rgba(17,17,17,.16) 84%, transparent 100%);
  background-size: 120px 100%;
}

.voice-recorder.is-recording .voice-recorder-wave,
.voice-recorder.is-uploading .voice-recorder-wave {
  display: block;
  animation: voice-wave 1.2s linear infinite;
}

.voice-recorder.is-uploading .voice-recorder-center {
  background: #d8ee76;
}

@keyframes voice-wave {
  from { background-position: 0 0; }
  to { background-position: 120px 0; }
}

.mobile-only {
  display: none;
}

.hidden {
  display: none !important;
}

@media (max-width: 820px) {
  body.chat-opened .topbar-menu-btn {
    display: none;
  }

  .shell {
    display: block;
    padding: 12px;
    min-height: calc(100dvh - 56px);
  }

  .sidebar {
    min-height: calc(100vh - 92px);
  }

  .chat-pane {
    display: none;
    min-height: calc(100dvh - 92px);
    height: calc(100dvh - 92px);
  }

  body.chat-opened .sidebar {
    display: none;
  }

  body.chat-opened .chat-pane {
    display: flex;
  }

  .mobile-only {
    display: grid;
  }

  .chat-pane-head {
    min-height: 92px;
    padding: 14px 16px;
    border-radius: 28px;
  }

  .chat-pane-head h2 {
    font-size: 18px;
  }

  .chat-meta {
    font-size: 12px;
  }

  .chat-avatar,
  .round-action {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
}
