.sentra-dashboard-user-card-messaging-host {
  position: relative;
  overflow: visible !important;
}

.sdm-launch-rail {
  position: absolute;
  right: calc(100% + 0.55rem);
  top: 50%;
  z-index: 36;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  transform: translateY(-50%);
}

.sdm-launch {
  position: relative;
  display: inline-grid;
  min-width: 2.05rem;
  height: 2.05rem;
  grid-template-columns: 1fr;
  place-items: center;
  border: 1px solid rgba(250, 204, 21, 0.78);
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.sdm-report-launch {
  border-color: rgba(20, 184, 166, 0.74);
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #ffffff;
}

.sdm-launch:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.sdm-launch:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.9);
  outline-offset: 2px;
}

.sdm-launch.is-alerting {
  animation: sdm-alert-pulse 1.15s ease-in-out infinite;
}

.sdm-launch-icon {
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-0.02rem);
}

.sdm-launch-badge {
  position: absolute;
  right: -0.45rem;
  top: -0.48rem;
  min-width: 1.12rem;
  height: 1.12rem;
  display: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: #dc2626;
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  padding: 0 0.22rem;
  box-shadow: 0 6px 14px rgba(127, 29, 29, 0.42);
}

.sdm-launch.has-unread .sdm-launch-badge {
  display: grid;
}

@keyframes sdm-alert-pulse {
  0%, 100% {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.28), 0 0 0 0 rgba(250, 204, 21, 0.7);
  }
  50% {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.28), 0 0 0 7px rgba(250, 204, 21, 0);
  }
}

.sdm-inline-hidden {
  display: none !important;
}

.sdm-root,
.sdm-root * {
  box-sizing: border-box;
}

.sdm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(2px);
}

.sdm-dialog {
  width: min(920px, calc(100vw - 2rem));
  height: min(720px, calc(100vh - 2rem));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.38);
}

.dark .sdm-dialog {
  border-color: rgba(71, 85, 105, 0.84);
  background: rgba(15, 23, 42, 0.98);
  color: #f8fafc;
  box-shadow: 0 34px 92px rgba(2, 6, 23, 0.74);
}

.sdm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.34);
}

.dark .sdm-head {
  border-bottom-color: rgba(71, 85, 105, 0.72);
}

.sdm-kicker {
  margin: 0;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dark .sdm-kicker {
  color: #cbd5e1;
}

.sdm-title {
  margin: 0.16rem 0 0;
  font-size: 1rem;
  font-weight: 800;
}

.sdm-close {
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 8px;
  background: white;
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 700;
}

.dark .sdm-close {
  border-color: rgba(71, 85, 105, 0.82);
  background: #020617;
  color: #f8fafc;
}

.sdm-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sdm-channels {
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid rgba(148, 163, 184, 0.34);
  padding: 0.75rem;
  background: rgba(241, 245, 249, 0.78);
}

.dark .sdm-channels {
  border-right-color: rgba(71, 85, 105, 0.72);
  background: rgba(2, 6, 23, 0.52);
}

.sdm-channel {
  width: 100%;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.42rem;
  padding: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.48);
  border-radius: 8px;
  background: white;
  color: #0f172a;
  text-align: left;
}

.dark .sdm-channel {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
}

.sdm-channel.is-active {
  border-color: rgba(14, 165, 233, 0.8);
  background: rgba(224, 242, 254, 0.9);
}

.dark .sdm-channel.is-active {
  border-color: rgba(56, 189, 248, 0.74);
  background: rgba(14, 165, 233, 0.18);
}

.sdm-channel-avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 8px;
  background: #0f172a;
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
}

.dark .sdm-channel-avatar {
  background: #e2e8f0;
  color: #0f172a;
}

.sdm-channel strong,
.sdm-channel span,
.sdm-channel small {
  min-width: 0;
}

.sdm-channel strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}

.sdm-channel small {
  display: block;
  margin-top: 0.1rem;
  overflow: hidden;
  color: #64748b;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .sdm-channel small {
  color: #cbd5e1;
}

.sdm-channel-badge {
  display: none;
  min-width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 999px;
  background: #dc2626;
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0 0.24rem;
}

.sdm-channel.has-unread .sdm-channel-badge {
  display: grid;
}

.sdm-thread {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.72);
}

.dark .sdm-thread {
  background: rgba(15, 23, 42, 0.5);
}

.sdm-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.dark .sdm-thread-head {
  border-bottom-color: rgba(71, 85, 105, 0.64);
}

.sdm-thread-head strong {
  display: block;
  font-size: 0.82rem;
}

.sdm-thread-head span {
  display: block;
  margin-top: 0.08rem;
  color: #64748b;
  font-size: 0.7rem;
}

.dark .sdm-thread-head span {
  color: #cbd5e1;
}

.sdm-refresh {
  height: 1.95rem;
  border: 1px solid rgba(148, 163, 184, 0.52);
  border-radius: 8px;
  background: white;
  color: #0f172a;
  padding: 0 0.65rem;
  font-size: 0.76rem;
  font-weight: 800;
}

.dark .sdm-refresh {
  border-color: rgba(71, 85, 105, 0.82);
  background: #020617;
  color: #f8fafc;
}

.sdm-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 0.85rem;
}

.sdm-empty,
.sdm-error {
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.78);
  padding: 0.8rem;
  color: #475569;
  font-size: 0.78rem;
}

.sdm-error {
  border-color: rgba(248, 113, 113, 0.68);
  background: rgba(254, 226, 226, 0.92);
  color: #991b1b;
}

.dark .sdm-empty {
  border-color: rgba(71, 85, 105, 0.76);
  background: rgba(2, 6, 23, 0.52);
  color: #cbd5e1;
}

.dark .sdm-error {
  border-color: rgba(248, 113, 113, 0.52);
  background: rgba(127, 29, 29, 0.32);
  color: #fecaca;
}

.sdm-message {
  width: min(78%, 560px);
  margin-bottom: 0.58rem;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background: white;
  padding: 0.55rem 0.66rem;
}

.dark .sdm-message {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(15, 23, 42, 0.92);
}

.sdm-message.is-mine {
  margin-left: auto;
  border-color: rgba(14, 165, 233, 0.52);
  background: rgba(224, 242, 254, 0.95);
}

.dark .sdm-message.is-mine {
  border-color: rgba(56, 189, 248, 0.58);
  background: rgba(14, 165, 233, 0.18);
}

.sdm-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  color: #64748b;
  font-size: 0.66rem;
}

.dark .sdm-message-meta {
  color: #cbd5e1;
}

.sdm-message-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sdm-message-text {
  margin: 0.22rem 0 0;
  color: inherit;
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.sdm-date-separator {
  display: grid;
  place-items: center;
  margin: 0.18rem 0 0.7rem;
}

.sdm-date-separator span {
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.88);
  color: #475569;
  font-size: 0.66rem;
  font-weight: 900;
  padding: 0.2rem 0.52rem;
  text-transform: uppercase;
}

.dark .sdm-date-separator span {
  border-color: rgba(71, 85, 105, 0.72);
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
}

.sdm-message-attachments {
  display: grid;
  gap: 0.44rem;
  margin-top: 0.45rem;
}

.sdm-message-attachment {
  display: grid;
  gap: 0.28rem;
  margin: 0;
}

.sdm-message-attachment img,
.sdm-message-attachment video {
  display: block;
  width: min(100%, 23rem);
  max-height: 17rem;
  border-radius: 8px;
  background: #e2e8f0;
  object-fit: cover;
}

.sdm-message-attachment video {
  object-fit: contain;
}

.sdm-message-attachment figcaption {
  max-width: min(100%, 23rem);
  overflow: hidden;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .sdm-message-attachment figcaption {
  color: #cbd5e1;
}

.sdm-composer {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.34);
}

.dark .sdm-composer {
  border-top-color: rgba(71, 85, 105, 0.72);
}

.sdm-composer-row {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.65rem;
}

.sdm-attach {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #334155;
  color: white;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1;
}

.sdm-attach input {
  display: none;
}

.dark .sdm-attach {
  background: #475569;
  color: #f8fafc;
}

.sdm-composer textarea {
  min-height: 3rem;
  max-height: 8rem;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 8px;
  background: white;
  color: #0f172a;
  padding: 0.65rem 0.75rem;
  font-size: 0.86rem;
  outline: none;
}

.dark .sdm-composer textarea {
  border-color: rgba(71, 85, 105, 0.86);
  background: #020617;
  color: #f8fafc;
}

.sdm-composer textarea:focus {
  border-color: rgba(14, 165, 233, 0.78);
}

.sdm-send {
  align-self: end;
  height: 2.7rem;
  min-width: 3.15rem;
  border: 0;
  border-radius: 8px;
  background: #0f172a;
  color: white;
  font-size: 1rem;
  font-weight: 900;
}

.dark .sdm-send {
  background: #e2e8f0;
  color: #0f172a;
}

.sdm-send:disabled,
.sdm-refresh:disabled,
.sdm-attach:has(input:disabled),
.sdm-composer textarea:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.sdm-draft-attachments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.sdm-draft-attachments figure {
  position: relative;
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.44);
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.82);
  padding: 0.35rem;
}

.dark .sdm-draft-attachments figure {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(15, 23, 42, 0.86);
}

.sdm-draft-attachments img,
.sdm-draft-attachments video {
  width: 100%;
  height: 5.4rem;
  border-radius: 6px;
  background: #e2e8f0;
  object-fit: cover;
}

.sdm-draft-attachments figcaption {
  overflow: hidden;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .sdm-draft-attachments figcaption {
  color: #cbd5e1;
}

.sdm-draft-attachments button {
  position: absolute;
  top: 0.22rem;
  right: 0.22rem;
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.sdm-reports-dialog {
  width: min(760px, calc(100vw - 2rem));
  height: min(700px, calc(100vh - 2rem));
}

.sdm-report-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  padding: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.34);
}

.dark .sdm-report-toolbar {
  border-bottom-color: rgba(71, 85, 105, 0.72);
}

.sdm-report-toolbar input {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.58);
  border-radius: 8px;
  background: white;
  color: #0f172a;
  font-size: 0.82rem;
  outline: none;
  padding: 0.6rem 0.72rem;
}

.dark .sdm-report-toolbar input {
  border-color: rgba(71, 85, 105, 0.82);
  background: #020617;
  color: #f8fafc;
}

.sdm-report-toolbar input:focus {
  border-color: rgba(20, 184, 166, 0.8);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.sdm-report-toolbar button,
.sdm-report-item button {
  min-height: 2.25rem;
  border: 1px solid rgba(20, 184, 166, 0.55);
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0 0.78rem;
}

.sdm-report-toolbar button:disabled,
.sdm-report-item button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.sdm-report-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
}

.sdm-report-item {
  display: grid;
  gap: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  padding: 0.72rem;
}

.dark .sdm-report-item {
  border-color: rgba(71, 85, 105, 0.82);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
}

.sdm-report-item.is-new {
  border-color: rgba(20, 184, 166, 0.66);
  box-shadow: inset 3px 0 0 #14b8a6;
}

.sdm-report-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.sdm-report-top strong,
.sdm-report-top span,
.sdm-report-top time {
  display: block;
}

.sdm-report-top strong {
  font-size: 0.86rem;
  line-height: 1.22;
}

.sdm-report-top span,
.sdm-report-top time,
.sdm-report-address,
.sdm-report-readers {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
}

.dark .sdm-report-top span,
.dark .sdm-report-top time,
.dark .sdm-report-address,
.dark .sdm-report-readers {
  color: #cbd5e1;
}

.sdm-report-description {
  margin: 0;
  color: inherit;
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.sdm-report-address {
  margin: 0;
}

.sdm-report-readers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem 0.55rem;
}

@media (max-width: 900px), (pointer: coarse) {
  .sdm-launch-rail,
  .sdm-launch,
  .sdm-backdrop {
    display: none !important;
  }
}
