/* Messaging (P0) */
.message-nav-btn { position: relative; }
.message-nav-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px #fff;
}

.job-card-message-pill {
  border: 0;
  cursor: pointer;
  background: rgba(79,70,229,0.1);
  color: #4338ca;
  max-width: 150px;
  min-width: 0;
}
.job-card-message-pill:hover { background: rgba(79,70,229,0.16); color: #3730a3; }
.job-card-message-pill > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-owner-message {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(14,14,16,0.1);
  border-radius: 999px;
  background: #fff;
  color: #27272a;
  padding: 5px 9px 5px 5px;
  font-size: 12px;
  font-weight: 650;
  max-width: 100%;
}
.sheet-owner-message img,
.sheet-owner-fallback {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  background: #eef2ff;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.sheet-owner-message strong { color: #4f46e5; font-weight: 750; flex: 0 0 auto; }
.sheet-owner-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sheet-meta .sheet-owner-message {
  margin-top: 0;
  padding: 3px 8px 3px 3px;
  max-width: 180px;
}
.sheet-meta .sheet-owner-message img,
.sheet-meta .sheet-owner-fallback {
  width: 18px;
  height: 18px;
  font-size: 9.5px;
}

.publish-owner-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 13px;
  border: 1px solid rgba(14,14,16,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
}
.publish-owner-toggle-title { font-size: 13px; font-weight: 700; color: #18181b; }
.publish-owner-toggle-sub { margin-top: 2px; font-size: 11.5px; line-height: 1.45; color: #71717a; }
.publish-owner-switch {
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #d4d4d8;
  padding: 2px;
  transition: background .16s ease;
}
.publish-owner-switch span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15,23,42,0.18);
  transition: transform .16s ease;
}
.publish-owner-switch.is-on { background: #4f46e5; }
.publish-owner-switch.is-on span { transform: translateX(18px); }

.message-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15,23,42,0.18);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 76px 24px 24px;
}
.message-panel {
  width: min(420px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 96px));
  background: #fff;
  border: 1px solid rgba(14,14,16,0.08);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15,23,42,0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.message-panel-head {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(14,14,16,0.08);
}
.message-panel-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 750; color: #18181b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-thread-title { min-width: 0; display: flex; align-items: center; }
.message-thread-name { min-width: 0; display: flex; align-items: center; gap: 7px; }
.message-thread-name span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-presence-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d4d4d8;
  display: inline-block;
  flex: 0 0 auto;
}
.message-presence-dot.is-online {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.14);
}
.message-back-btn,
.message-close-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #52525b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.message-back-btn:hover,
.message-close-btn:hover { background: #f4f4f5; color: #18181b; }
.message-error {
  margin: 10px 12px 0;
  padding: 8px 10px;
  border-radius: 7px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
}
.message-list-view,
.message-thread-view { min-height: 0; flex: 1; display: flex; flex-direction: column; position: relative; }
.message-empty {
  padding: 42px 20px;
  text-align: center;
  color: #71717a;
  font-size: 13px;
}
.message-empty-thread {
  min-height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.message-conversation-row {
  position: relative;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(14,14,16,0.06);
  background: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.message-conversation-row:hover { background: #fafafa; }
.message-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2ff;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message-conversation-main { min-width: 0; flex: 1; }
.message-conversation-top { display: flex; align-items: center; gap: 8px; }
.message-conversation-top strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: #18181b; display: flex; align-items: center; gap: 6px; }
.message-conversation-top span { color: #a1a1aa; font-size: 11px; }
.message-conversation-top strong span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; font-size: inherit; }
.message-conversation-context,
.message-conversation-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.message-conversation-context { margin-top: 2px; color: #6366f1; }
.message-conversation-preview { margin-top: 2px; color: #71717a; }
.message-unread-pill {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.message-thread-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 13px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
}
.message-thread-posting-card,
.message-reference-card {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(14,14,16,0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #18181b;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  box-shadow: 0 8px 26px rgba(15,23,42,0.06);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.message-thread-posting-card {
  margin-bottom: 12px;
  padding: 10px;
}
.message-thread-posting-card:hover,
.message-reference-card:hover {
  transform: translateY(-1px);
  border-color: rgba(79,70,229,0.2);
  box-shadow: 0 14px 30px rgba(15,23,42,0.10);
}
.message-posting-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
}
.message-posting-logo img { width: 100%; height: 100%; object-fit: cover; }
.message-posting-logo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.message-posting-logo-fallback svg {
  width: 24px;
  height: 24px;
  display: block;
}
.message-posting-main {
  min-width: 0;
  overflow: hidden;
  display: grid;
  gap: 3px;
}
.message-posting-main strong {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #18181b;
  font-size: 13px;
  font-weight: 800;
}
.message-posting-main em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #71717a;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
}
.message-posting-arrow {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 800;
}
.message-load-older {
  margin: 0 auto 10px;
  height: 28px;
  border: 1px solid rgba(14,14,16,0.08);
  border-radius: 999px;
  background: #fff;
  color: #52525b;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
}
.message-load-older:disabled { opacity: .55; cursor: not-allowed; }
.message-system {
  margin: 8px auto;
  width: fit-content;
  max-width: 80%;
  border-radius: 999px;
  background: #e4e4e7;
  color: #71717a;
  padding: 4px 10px;
  font-size: 11px;
}
.message-reference-row {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  margin: 8px 0;
}
.message-reference-row.is-mine { justify-content: flex-end; }
.message-reference-row.is-mine .message-quote-action-card { order: -1; }
.message-reference-card {
  width: min(320px, 88%);
  max-width: 88%;
  padding: 10px;
}
.message-reference-row.is-mine .message-reference-card {
  border-color: rgba(79,70,229,0.18);
}
.message-bubble-row { display: flex; margin: 8px 0; justify-content: flex-start; }
.message-bubble-row.is-mine { justify-content: flex-end; }
.message-bubble {
  max-width: 82%;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(14,14,16,0.06);
  padding: 8px 10px 6px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.message-bubble-row.is-mine .message-bubble {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}
.message-bubble:has(.message-contact-card) {
  width: min(200px, 82%);
  padding: 0;
  overflow: hidden;
}
.message-bubble-row.is-mine .message-bubble:has(.message-contact-card) {
  background: #fff;
  border-color: rgba(79,70,229,0.16);
}
.message-bubble-row .message-bubble:has(.message-contact-card) .message-bubble-meta {
  padding: 0 10px 7px;
}
.message-bubble-row.is-mine .message-bubble:has(.message-contact-card) .message-bubble-meta {
  color: #a1a1aa;
}
.message-bubble-body { white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.55; }
.message-contact-card {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
  color: #18181b;
  padding: 13px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.message-contact-card.is-wechat { background: linear-gradient(135deg, #ffffff 0%, #e9fbf2 100%); }
.message-contact-card.is-phone { background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%); }
.message-contact-card.is-xiaohongshu { background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%); }
.message-bubble-row:not(.is-mine) .message-contact-card {
  border: 1px solid rgba(14,14,16,0.06);
}
.message-contact-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15,23,42,0.08);
}
.message-contact-card-icon svg,
.message-contact-card-icon img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}
.message-contact-card-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.message-contact-card strong {
  min-width: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-contact-card-main em {
  min-width: 0;
  color: #52525b;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-contact-card-action {
  align-self: center;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 750;
}
.message-bubble-meta {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  color: #a1a1aa;
  font-size: 10.5px;
}
.message-bubble-row.is-mine .message-bubble-meta { color: rgba(255,255,255,0.72); }
.message-quote-action {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 0 2px;
  font-size: 10.5px;
  font-weight: 700;
  opacity: .72;
}
.message-quote-action:hover { opacity: 1; color: #4f46e5; }
.message-bubble-row.is-mine .message-quote-action:hover { color: #fff; }
.message-quote-action-card {
  align-self: center;
  flex: 0 0 auto;
  color: #a1a1aa;
  padding: 4px 6px;
}
.message-quoted {
  margin-bottom: 6px;
  border-left: 2px solid rgba(79,70,229,0.32);
  border-radius: 5px;
  background: rgba(79,70,229,0.07);
  padding: 5px 7px;
  display: grid;
  gap: 2px;
  max-width: 100%;
}
.message-quoted strong,
.message-quoted span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-quoted strong {
  color: #4f46e5;
  font-size: 10.5px;
  font-weight: 800;
}
.message-quoted span {
  color: #71717a;
  font-size: 11px;
}
.message-bubble-row.is-mine .message-quoted {
  background: rgba(255,255,255,0.14);
  border-left-color: rgba(255,255,255,0.44);
}
.message-bubble-row.is-mine .message-quoted strong,
.message-bubble-row.is-mine .message-quoted span { color: rgba(255,255,255,0.86); }
.message-greeting-hint {
  border-top: 1px solid rgba(14,14,16,0.06);
  padding: 6px 13px 0;
  color: #71717a;
  font-size: 11.5px;
}
.message-inline-toast {
  position: absolute;
  left: 50%;
  bottom: 108px;
  transform: translateX(-50%);
  z-index: 8;
  border-radius: 999px;
  background: rgba(24,24,27,0.84);
  color: #fff;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(15,23,42,0.18);
  pointer-events: none;
}
.message-compose {
  position: relative;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(14,14,16,0.08);
  background: #fff;
}
.message-mention-menu {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(100% + 6px);
  z-index: 5;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid rgba(14,14,16,0.10);
  border-radius: 11px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 18px 42px rgba(15,23,42,0.16);
}
.message-mention-empty {
  padding: 10px 11px;
  color: #71717a;
  font-size: 12px;
}
.message-mention-option {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #18181b;
  padding: 8px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  text-align: left;
}
.message-mention-option:hover,
.message-mention-option.is-active {
  background: rgba(79,70,229,0.08);
}
.message-mention-option-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f4f4f5;
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
}
.message-mention-option-icon svg,
.message-mention-option-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.message-mention-posting-logo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.message-mention-posting-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.message-mention-posting-logo svg {
  width: 22px;
  height: 22px;
  display: block;
}
.message-mention-option-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.message-mention-option-main strong,
.message-mention-option-main em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-mention-option-main strong {
  color: #18181b;
  font-size: 12.5px;
  font-weight: 800;
}
.message-mention-option-main em {
  color: #71717a;
  font-size: 11px;
  font-style: normal;
}
.message-mention-option-badge {
  border-radius: 999px;
  background: #f4f4f5;
  color: #71717a;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
}
.message-compose-box {
  border: 1px solid rgba(14,14,16,0.14);
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
  transition: border-color 140ms ease;
}
.message-compose-box:focus-within { border-color: #2563eb; }
.message-reply-preview {
  margin: 0 0 7px;
  border: 1px solid rgba(14,14,16,0.08);
  border-radius: 8px;
  background: #f8fafc;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.message-reply-preview span {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.message-reply-preview strong,
.message-reply-preview em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-reply-preview strong {
  color: #4f46e5;
  font-size: 11px;
  font-weight: 800;
}
.message-reply-preview em {
  color: #71717a;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
}
.message-reply-preview button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #71717a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.message-reply-preview button:hover { background: rgba(14,14,16,0.06); color: #18181b; }
.message-compose-textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  resize: none;
  min-height: 54px;
  max-height: 150px;
  border: 0;
  background: transparent;
  color: #0e0e10;
  padding: 2px;
  outline: none;
  font-size: 13.5px;
  line-height: 1.55;
  font-family: inherit;
}
.message-compose-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.message-compose-spacer { flex: 1 1 auto; }
.message-compose-send {
  flex: 0 0 auto;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease;
}
.message-compose-send:not(:disabled):hover { background: #1d4ed8; }
.message-compose-send:disabled { background: #a9c2f0; cursor: not-allowed; }

html.dark .message-nav-dot { box-shadow: 0 0 0 2px #10192c; }
html.dark .job-card-message-pill { background: rgba(99,102,241,0.2); color: #c7d2fe; }
html.dark .job-card-message-pill:hover { background: rgba(99,102,241,0.28); color: #e0e7ff; }
html.dark .message-panel,
html.dark .message-conversation-row,
html.dark .message-compose,
html.dark .sheet-owner-message,
html.dark .publish-owner-toggle { background: #10192c; border-color: rgba(255,255,255,0.1); }
html.dark .sheet-owner-message { color: #f4f4f5; }
html.dark .sheet-owner-name { color: #f4f4f5; }
html.dark .sheet-owner-message strong { color: #c7d2fe; }
html.dark .message-panel-title,
html.dark .message-conversation-top strong,
html.dark .publish-owner-toggle-title { color: #f4f4f5; }
html.dark .message-back-btn,
html.dark .message-close-btn,
html.dark .message-conversation-preview,
html.dark .message-empty,
html.dark .publish-owner-toggle-sub { color: #a1a1aa; }
html.dark .message-back-btn:hover,
html.dark .message-close-btn:hover,
html.dark .message-conversation-row:hover { background: rgba(255,255,255,0.06); }
html.dark .message-thread-scroll { background: #0b1220; }
html.dark .message-thread-posting-card,
html.dark .message-reference-card,
html.dark .message-mention-menu,
html.dark .message-compose-box {
  background: #172033;
  border-color: rgba(255,255,255,0.10);
}
html.dark .message-thread-posting-card,
html.dark .message-reference-card { color: #f4f4f5; box-shadow: none; }
html.dark .message-posting-logo,
html.dark .message-mention-option-icon { background: rgba(255,255,255,0.08); color: #c7d2fe; }
html.dark .message-posting-main strong,
html.dark .message-mention-option-main strong { color: #f4f4f5; }
html.dark .message-posting-main em,
html.dark .message-mention-option-main em,
html.dark .message-mention-empty { color: #a1a1aa; }
html.dark .message-posting-arrow,
html.dark .message-mention-option-badge { background: rgba(99,102,241,0.2); color: #c7d2fe; }
html.dark .message-mention-option:hover,
html.dark .message-mention-option.is-active { background: rgba(255,255,255,0.07); }
html.dark .message-quoted,
html.dark .message-reply-preview {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
}
html.dark .message-quoted strong,
html.dark .message-reply-preview strong { color: #c7d2fe; }
html.dark .message-quoted span,
html.dark .message-reply-preview em { color: #a1a1aa; }
html.dark .message-reply-preview button { color: #a1a1aa; }
html.dark .message-reply-preview button:hover { background: rgba(255,255,255,0.07); color: #f4f4f5; }
html.dark .message-load-older { background: #172033; border-color: rgba(255,255,255,0.1); color: #d4d4d8; }
html.dark .message-bubble { background: #172033; border-color: rgba(255,255,255,0.08); color: #f4f4f5; }
html.dark .message-contact-card,
html.dark .message-bubble-row:not(.is-mine) .message-contact-card,
html.dark .message-bubble-row.is-mine .message-bubble:has(.message-contact-card) { background: linear-gradient(135deg, #172033 0%, #0f172a 100%); border-color: rgba(255,255,255,0.08); color: #f4f4f5; }
html.dark .message-contact-card-icon { background: rgba(255,255,255,0.08); box-shadow: none; }
html.dark .message-contact-card-main em { color: #a1a1aa; }
html.dark .message-contact-card-action { background: rgba(99,102,241,0.2); color: #c7d2fe; }
html.dark .message-compose-textarea { color: #f4f4f5; }

@media (max-width: 640px) {
  .message-backdrop { padding: 68px 10px 10px; }
  .message-panel {
    width: 100%;
    height: calc(100vh - 78px);
  }
}
