/* Messagerie — FAB + panel (partagé sur toutes les pages) */

.msg-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--coral) 0%, #FF8A5C 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255, 90, 95, 0.35), 0 0 0 0 rgba(255, 90, 95, 0);
  z-index: 1500;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: msgFabPulse 3s ease-in-out infinite;
}

@keyframes msgFabPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(255, 90, 95, 0.35), 0 0 0 0 rgba(255, 90, 95, 0.15); }
  50% { box-shadow: 0 6px 24px rgba(255, 90, 95, 0.35), 0 0 0 10px rgba(255, 90, 95, 0); }
}

.msg-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(255, 90, 95, 0.45);
  animation: none;
}

.msg-fab:active {
  transform: scale(0.94);
}

.msg-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2.5px solid #fff;
  animation: msgBadgeBounce 0.3s ease;
}

@keyframes msgBadgeBounce {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.msg-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 390px;
  height: 560px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.03);
  z-index: 1500;
  overflow: hidden;
  animation: msgSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.msg-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.msg-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.msg-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.04) 0%, #fff 100%);
}

.msg-panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  letter-spacing: -0.03em;
}

.msg-panel-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-warm);
  font-size: 1.3rem;
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.msg-panel-close:hover {
  background: var(--border);
  color: var(--dark);
}

.msg-search {
  padding: 0.65rem 1rem;
}

.msg-search-input {
  width: 100%;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  background: var(--bg-warm);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}

.msg-search-input:focus {
  border-color: var(--coral);
}

.msg-search-input::placeholder {
  color: var(--gray-light);
}

.msg-new-conv-btn {
  display: block;
  width: calc(100% - 2rem);
  margin: 0.5rem 1rem 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, #FF8A5C 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(255, 90, 95, 0.35);
}

.msg-new-conv-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 90, 95, 0.4);
}

.msg-new-conv {
  padding: 0 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.msg-user-search {
  width: 100%;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}

.msg-user-search:focus {
  outline: none;
  border-color: var(--coral);
}

.msg-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.msg-page .msg-view.msg-view-list {
  flex: 1;
  min-height: 0;
}

.msg-page .msg-new-conv {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.msg-page .msg-user-list {
  max-height: none;
  flex: 1;
  overflow-y: auto;
  min-height: 120px;
  -webkit-overflow-scrolling: touch;
}

.msg-user-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  border-radius: 14px;
  transition: background 0.2s;
}

.msg-user-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.msg-user-item .msg-conv-avatar {
  flex-shrink: 0;
}

.msg-user-name {
  font-weight: 500;
  color: var(--dark);
  font-size: 0.95rem;
}

.msg-conv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
}

.msg-conv-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  border-left: 3px solid transparent;
}

.msg-conv-item:hover {
  background: rgba(0, 0, 0, 0.025);
  border-left-color: var(--coral);
}

.msg-conv-unread {
  background: rgba(255, 90, 95, 0.05);
  border-left-color: var(--coral);
}

.msg-conv-unread:hover {
  background: rgba(255, 90, 95, 0.09);
}

.msg-conv-avatar-wrap {
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
}

.msg-conv-avatar-link {
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 3;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 90, 95, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.msg-conv-avatar-link:focus-visible {
  outline: 2px solid var(--coral, #ff5a5f);
  outline-offset: 2px;
}

[data-ms-profile-id] {
  cursor: pointer;
}

.msg-conv-avatar-link:hover {
  transform: scale(1.08);
}

.msg-conv-avatar-link:hover .msg-conv-avatar {
  box-shadow: 0 2px 12px rgba(255, 90, 95, 0.25);
}

.msg-conv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.msg-conv-info {
  flex: 1;
  min-width: 0;
}

.msg-conv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.msg-conv-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.msg-conv-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.msg-conv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 10px;
  background: var(--coral, #FF5A5F);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.msg-conv-time {
  font-size: 0.7rem;
  color: var(--gray);
  flex-shrink: 0;
}

.msg-conv-preview {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-conv-unread .msg-conv-name,
.msg-conv-unread .msg-conv-preview {
  font-weight: 700;
  color: var(--dark);
}

.msg-conv-badge {
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--coral);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}

.msg-conv-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.5;
}

.msg-conv-empty::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  background: var(--coral-light);
  border-radius: 50%;
  opacity: 0.6;
}

.msg-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.03) 0%, #fff 100%);
}

.msg-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-warm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.msg-back:hover {
  background: var(--border);
}

.msg-chat-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: var(--border);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.msg-chat-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 12px rgba(255, 90, 95, 0.25);
}

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

.msg-chat-avatar-initial {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.9);
}

.msg-chat-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.msg-chat-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  transition: color 0.15s ease;
}

.msg-chat-name:hover {
  color: var(--coral);
}

.msg-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: #34C759;
  font-weight: 500;
}

.msg-chat-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34C759;
  flex-shrink: 0;
  animation: msgOnlineDot 2s ease-in-out infinite;
}

@keyframes msgOnlineDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.msg-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.msg-bubble {
  max-width: 80%;
  display: flex;
  flex-direction: column;
}

.msg-bubble-me {
  align-self: flex-end;
}

.msg-bubble-them {
  align-self: flex-start;
}

.msg-bubble-text {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  border-radius: 18px;
}

.msg-bubble-me .msg-bubble-text {
  background: linear-gradient(135deg, var(--coral) 0%, #FF8A5C 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(255, 90, 95, 0.15);
}

.msg-bubble-them .msg-bubble-text {
  background: #f0f0f5;
  color: var(--dark);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.msg-bubble-time {
  font-size: 0.6rem;
  color: var(--gray-light);
  margin-top: 0.15rem;
  padding: 0 0.25rem;
}

.msg-bubble-me .msg-bubble-time {
  text-align: right;
}

.msg-bubble-attachment {
  margin-bottom: 0.35rem;
}

.msg-bubble-attachment-image {
  border-radius: 12px;
  overflow: hidden;
  max-width: 240px;
}

.msg-bubble-attachment-image a {
  display: block;
  line-height: 0;
}

.msg-bubble-attachment-image img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.msg-bubble-attachment-doc {
  margin-bottom: 0.35rem;
}

.msg-doc-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  max-width: 280px;
  min-width: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.msg-doc-card:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.msg-doc-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-sizing: border-box;
}

.msg-bubble-me .msg-doc-card-icon {
  background: rgba(255, 255, 255, 0.3);
}

.msg-bubble-them .msg-doc-card-icon {
  background: rgba(0, 0, 0, 0.06);
}

.msg-doc-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-sizing: border-box;
}

.msg-doc-card-body .msg-doc-card-type {
  margin-top: 0.15rem;
}

.msg-doc-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-bubble-me .msg-doc-card-name {
  color: #fff;
}

.msg-bubble-them .msg-doc-card-name {
  color: var(--dark);
}

.msg-doc-card-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.msg-bubble-me .msg-doc-card-type {
  color: rgba(255, 255, 255, 0.9);
}

.msg-bubble-them .msg-doc-card-type {
  color: var(--gray);
}

.msg-doc-card-action {
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.msg-bubble-me .msg-doc-card-action {
  color: rgba(255, 255, 255, 0.95);
}

.msg-bubble-them .msg-doc-card-action {
  color: var(--coral);
}

.msg-bubble-me .msg-doc-card {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.msg-bubble-them .msg-doc-card {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.msg-bubble-them .msg-doc-card:hover {
  border-color: var(--coral);
  box-shadow: 0 4px 12px rgba(255, 90, 95, 0.12);
}

.msg-bubble-doc-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  word-break: break-all;
  max-width: 220px;
}

.msg-bubble-me .msg-bubble-doc-link {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.msg-bubble-me .msg-bubble-doc-link:hover {
  background: rgba(255, 255, 255, 0.35);
}

.msg-bubble-them .msg-bubble-doc-link {
  background: var(--bg-warm);
  color: var(--dark);
  border: 1px solid var(--border);
}

.msg-bubble-them .msg-bubble-doc-link:hover {
  background: var(--gray-light);
}

.msg-bubble-new {
  animation: msgBubbleIn 0.2s ease;
}

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

.msg-chat-input-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
  box-sizing: border-box;
}

.msg-chat-input-wrap.is-uploading .msg-chat-input,
.msg-chat-input-wrap.is-uploading .msg-attach {
  opacity: 0.7;
  pointer-events: none;
}

.msg-chat-input-wrap.is-uploading .msg-send {
  cursor: wait;
  opacity: 0.9;
}

.msg-chat-file-preview {
  width: 100%;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: var(--coral-light, #FFF0ED);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--dark);
  box-sizing: border-box;
}

.msg-chat-file-preview-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

.msg-chat-file-preview-size {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--gray);
}

.msg-chat-file-error {
  width: 100%;
  flex: 0 0 100%;
  margin: 0.25rem 0 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  color: var(--coral);
  background: rgba(255, 90, 95, 0.08);
  border-radius: 10px;
  box-sizing: border-box;
}

.msg-chat-input-wrap.is-dragover {
  outline: 2px dashed var(--coral);
  outline-offset: -2px;
  background: rgba(255, 90, 95, 0.04);
}

.msg-chat-file-preview-remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 90, 95, 0.2);
  color: var(--coral);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}

.msg-chat-file-preview-remove:hover {
  background: rgba(255, 90, 95, 0.35);
}

.msg-attach {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-warm);
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: border-color 0.2s, background 0.2s;
}

.msg-attach:hover {
  border-color: var(--coral);
  background: rgba(255, 90, 95, 0.08);
}

.msg-chat-input {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  background: #fff;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.msg-chat-input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.1);
}

.msg-chat-input::placeholder {
  color: var(--gray-light);
}

.msg-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--coral) 0%, #FF8A5C 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s, opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(255, 90, 95, 0.2);
}

.msg-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(255, 90, 95, 0.3);
}

.msg-send:hover:not(:disabled) {
  background: var(--coral-hover);
  transform: scale(1.05);
}

.msg-send:active:not(:disabled) {
  transform: scale(0.95);
}

.msg-send:disabled {
  cursor: wait;
  opacity: 0.85;
}

.msg-send .msg-send-loading {
  display: none;
}

.msg-send:disabled .msg-send-icon {
  display: none;
}

.msg-send:disabled .msg-send-loading {
  display: inline;
}

@media (max-width: 767.98px) {
  .msg-fab {
    bottom: calc(var(--bottom-nav-height, 68px) + 1rem + env(safe-area-inset-bottom));
  }

  .msg-panel {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    z-index: 2000;
  }

  .msg-chat-input-wrap {
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom));
  }
}

.msg-page .msg-page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 56px);
}

.msg-page .msg-page-panel {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  height: 100%;
  min-height: 400px;
  bottom: auto;
  right: auto;
  border-radius: var(--radius-lg, 24px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.msg-page .msg-page-hide {
  display: none !important;
}

.msg-nav-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-badge-msg {
  background: var(--coral);
  color: #fff;
}

/* ── Toast notification nouveau message ── */
#msg-toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  max-width: calc(100% - 2rem);
}

.msg-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  max-width: 320px;
}

.msg-toast-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.msg-toast-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}

.msg-toast-preview {
  font-size: 0.8rem;
  font-weight: 400;
  color: #666;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.msg-toast-clickable {
  cursor: pointer;
}

.msg-toast-clickable:hover {
  box-shadow: 0 10px 40px rgba(255, 90, 95, 0.2), 0 0 0 1px rgba(255, 90, 95, 0.2);
}

.msg-toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.msg-toast-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.3;
}

.msg-toast-error {
  border-left: 4px solid var(--coral);
  background: #fff8f8;
}

.msg-toast-error .msg-toast-text {
  color: var(--dark);
}
