/* Correio premium — dark fantasy / neon roxo-dourado */

.dsk-mail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0.75rem;
  min-height: 420px;
  max-height: min(72vh, 640px);
}

.dsk-mail-list-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  background: linear-gradient(165deg, rgba(12, 8, 22, 0.92), rgba(8, 6, 14, 0.88));
  box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.06);
  overflow: hidden;
}

.dsk-mail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.18);
  background: rgba(139, 92, 246, 0.06);
}

.dsk-mail-header h4 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #e9d5ff;
  text-shadow: 0 0 12px rgba(167, 139, 250, 0.35);
}

.dsk-mail-header-meta {
  font-size: 0.68rem;
  color: rgba(196, 181, 253, 0.65);
}

.dsk-mail-toolbar {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: center;
}

.dsk-mail-search {
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: #ede9fe;
  font-size: 0.72rem;
}

.dsk-mail-search:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.dsk-mail-folder-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(0, 0, 0, 0.12);
}

.dsk-mail-folder-tab {
  flex: 1;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(196, 181, 253, 0.72);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.dsk-mail-folder-tab:hover {
  background: rgba(139, 92, 246, 0.08);
  color: #e9d5ff;
}

.dsk-mail-folder-tab--on {
  border-color: rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(139, 92, 246, 0.1));
  color: #faf5ff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

.dsk-mail-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.35rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dsk-mail-filter {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(196, 181, 253, 0.75);
  font-size: 0.62rem;
  cursor: pointer;
}

.dsk-mail-filter--on {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.1);
  color: #fef3c7;
}

.dsk-mail-envelope {
  position: relative;
  width: 36px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}

.dsk-mail-envelope-body {
  position: absolute;
  inset: 6px 2px 2px;
  border-radius: 2px 2px 4px 4px;
  background: linear-gradient(180deg, #2a2038 0%, #1a1428 100%);
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dsk-mail-envelope-flap {
  position: absolute;
  top: 4px;
  left: 2px;
  right: 2px;
  height: 14px;
  background: linear-gradient(180deg, #3d2f52, #2a2038);
  clip-path: polygon(0 0, 50% 72%, 100% 0);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.dsk-mail-wax-seal {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ff6b8a, #9f1239 55%, #4c0519);
  box-shadow:
    0 0 8px rgba(225, 29, 72, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
  z-index: 2;
}

.dsk-mail-wax-seal::after {
  content: '⚜';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.45rem;
  color: rgba(255, 255, 255, 0.85);
}

.dsk-mail-wax-seal.dsk-mail-wax--system {
  background:
    radial-gradient(circle at 35% 30%, #fde68a, #b45309 55%, #451a03);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.dsk-mail-glow-ring {
  position: absolute;
  inset: -4px;
  border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
  animation: dsk-mail-unread-glow 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes dsk-mail-unread-glow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.dsk-mail-item--unread {
  border-color: rgba(167, 139, 250, 0.28);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(212, 175, 55, 0.04));
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.14);
}

.dsk-mail-item-content {
  min-width: 0;
}

.dsk-mail-parchment {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(38, 28, 18, 0.35), transparent 12%),
    linear-gradient(165deg, rgba(18, 12, 28, 0.96), rgba(8, 6, 14, 0.94));
}

.dsk-mail-parchment-edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.dsk-mail-empty-seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  background:
    radial-gradient(circle at 35% 30%, #ff6b8a, #9f1239 55%, #4c0519);
  box-shadow: 0 0 24px rgba(225, 29, 72, 0.35);
  opacity: 0.55;
}

.dsk-mail-empty-list,
.dsk-mail-detail-pane--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.dsk-mail-loading {
  padding: 1rem;
  text-align: center;
  color: rgba(196, 181, 253, 0.55);
  font-size: 0.75rem;
}

.dsk-mail-unread-tag {
  color: #c4b5fd;
}

.dsk-mail-pinned-tag {
  color: #fcd34d;
  font-size: 0.85em;
}

.dsk-mail-attachments {
  padding: 0.65rem 1rem;
  border-top: 1px dashed rgba(212, 175, 55, 0.2);
}

.dsk-mail-attachments-title {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(252, 211, 77, 0.85);
}

.dsk-mail-att-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.dsk-mail-att-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.dsk-mail-att-chip--gold { border-color: rgba(252, 211, 77, 0.35); color: #fde68a; }
.dsk-mail-att-chip--crystal { border-color: rgba(167, 139, 250, 0.35); color: #ddd6fe; }
.dsk-mail-att-chip--item { border-color: rgba(34, 197, 94, 0.3); color: #bbf7d0; }

.dsk-mail-att-claimed {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(196, 181, 253, 0.65);
}

.dsk-mail-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e11d48, #9f1239);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.45);
}

.dsk-mail-unread-badge--pulse {
  animation: dsk-mail-badge-pulse 1.8s ease-in-out infinite;
}

@keyframes dsk-mail-badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(225, 29, 72, 0.45); }
  50% { transform: scale(1.08); box-shadow: 0 0 16px rgba(225, 29, 72, 0.7); }
}

.btn-lobby-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(212, 175, 55, 0.08));
  color: #e9d5ff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.btn-lobby-mail:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.2);
  transform: translateY(-1px);
}

.btn-lobby-mail-icon {
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.35));
}

.lobby-slot-mail-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 3;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.5);
}

.lobby-slot-mail-badge.dsk-mail-unread-badge--pulse {
  animation: dsk-mail-badge-pulse 1.8s ease-in-out infinite;
}

.dsk-mail-item {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}


.dsk-mail-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.35rem;
  scrollbar-width: thin;
}

.dsk-mail-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 0.45rem 0.55rem;
  align-items: start;
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
}

.dsk-mail-item:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.07);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.12);
}

.dsk-mail-item--active {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.06);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.14);
}

.dsk-mail-item--unread .dsk-mail-item-subject {
  color: #f5e6ff;
  font-weight: 700;
}

.dsk-mail-item--pinned {
  border-color: rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(139, 92, 246, 0.05));
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.12);
}

.dsk-mail-item {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.dsk-mail-item:hover {
  transform: translateX(3px);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.2);
}

.dsk-mail-item--unread::before {
  content: '✉';
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  font-size: 0.65rem;
  opacity: 0.55;
  animation: dsk-mail-stamp 0.4s ease-out;
}

@keyframes dsk-mail-stamp {
  0% { transform: scale(1.4) rotate(-8deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 0.55; }
}

.dsk-mail-detail-pane.dsk-mail-open {
  animation: dsk-mail-unfold 0.35s ease-out;
}

@keyframes dsk-mail-unfold {
  0% { opacity: 0; transform: perspective(800px) rotateX(-4deg) translateY(8px); }
  100% { opacity: 1; transform: none; }
}

.dsk-mail-detail-pane::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.5), rgba(139, 92, 246, 0.5));
  border-radius: 12px 12px 0 0;
  opacity: 0.7;
}

.dsk-mail-item-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.25);
}

.dsk-mail-item-body {
  min-width: 0;
}

.dsk-mail-item-from {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ddd6fe;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dsk-mail-item-subject {
  font-size: 0.72rem;
  color: rgba(221, 214, 254, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dsk-mail-item-preview {
  font-size: 0.65rem;
  color: rgba(167, 160, 196, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

.dsk-mail-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  font-size: 0.6rem;
  color: rgba(167, 160, 196, 0.65);
  white-space: nowrap;
}

.dsk-mail-item-icons {
  display: flex;
  gap: 0.2rem;
  font-size: 0.72rem;
}

.dsk-mail-detail-pane {
  position: relative;
  min-height: 0;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    radial-gradient(ellipse at top, rgba(139, 92, 246, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(14, 10, 24, 0.95), rgba(6, 4, 12, 0.92));
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(212, 175, 55, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: dsk-mail-slide-in 0.28s ease;
}

.dsk-mail-detail-pane--empty {
  align-items: center;
  justify-content: center;
  color: rgba(196, 181, 253, 0.45);
  font-size: 0.78rem;
  border-style: dashed;
}

@keyframes dsk-mail-slide-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dsk-mail-letter-head {
  display: flex;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.dsk-mail-letter-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.2);
}

.dsk-mail-letter-title {
  margin: 0 0 0.15rem;
  font-family: Cinzel, serif;
  font-size: 0.95rem;
  color: #f5e6ff;
}

.dsk-mail-letter-meta {
  font-size: 0.68rem;
  color: rgba(196, 181, 253, 0.7);
}

.dsk-mail-letter-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(237, 233, 254, 0.92);
  white-space: pre-wrap;
}

.dsk-mail-letter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  background: rgba(0, 0, 0, 0.18);
}

.dsk-mail-reply {
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  padding: 0.65rem 0.85rem;
  background: rgba(139, 92, 246, 0.04);
}

.dsk-mail-reply textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
}

.dsk-mail-compose-drawer {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(0, 0, 0, 0.15);
}

.dsk-mail-compose-drawer label {
  display: block;
  font-size: 0.68rem;
  margin-bottom: 0.35rem;
}

.dsk-mail-compose-drawer input,
.dsk-mail-compose-drawer textarea {
  width: 100%;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.dsk-mail-compose-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.dsk-friend-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dsk-friend-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.dsk-friend-status {
  font-size: 0.65rem;
  color: rgba(167, 160, 196, 0.8);
}

.dsk-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.25rem;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.dsk-status-dot--online { background: #22c55e; color: #22c55e; }
.dsk-status-dot--offline { background: #6b7280; color: #6b7280; }
.dsk-status-dot--afk { background: #a78bfa; color: #a78bfa; }
.dsk-status-dot--battle,
.dsk-status-dot--arena { background: #ef4444; color: #ef4444; }
.dsk-status-dot--exploring { background: #60a5fa; color: #60a5fa; }
.dsk-status-dot--fishing { background: #38bdf8; color: #38bdf8; }
.dsk-status-dot--house { background: #fbbf24; color: #fbbf24; }
.dsk-status-dot--admin { background: #f472b6; color: #f472b6; }
.dsk-status-dot--crafting { background: #fb923c; color: #fb923c; }

.chat-meta-row .dsk-status-dot {
  vertical-align: middle;
}

.chat-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 0.58rem;
}

.chat-status-pill--online { background: rgba(34, 197, 94, 0.12); }
.chat-status-pill--offline { background: rgba(107, 114, 128, 0.15); }
.chat-status-pill--fishing { background: rgba(56, 189, 248, 0.12); color: #38bdf8; }
.chat-status-pill--house { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.chat-status-pill--admin { background: rgba(244, 114, 182, 0.12); color: #f472b6; }

body.dsk-hub-active .chat-msg {
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.28rem;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

body.dsk-hub-active .chat-msg:hover {
  border-color: rgba(139, 92, 246, 0.22);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.08);
}

.dsk-bar-fill.dsk-bar-pulse {
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  filter: brightness(1.15);
}

.dsk-mail-att-fieldset {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.dsk-mail-att-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.78rem;
  color: #d4af37;
}

.dsk-mail-att-wallet,
.dsk-mail-att-hint {
  font-size: 0.72rem;
  margin: 0.25rem 0 0.5rem;
}

.dsk-mail-att-items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.dsk-mail-att-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px auto;
  gap: 0.35rem;
  align-items: center;
}

.dsk-mail-att-item-select,
.dsk-mail-att-item-qty {
  width: 100%;
  font-size: 0.78rem;
}

.dsk-mail-att-currency {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.dsk-mail-att-currency label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
}

#dsk-mail-detail-host { min-width: 0; min-height: 0; display: flex; }
#dsk-mail-detail-host > .dsk-mail-detail-pane { width: 100%; box-sizing: border-box; }
.dsk-mail-letter-title, .dsk-mail-letter-meta, .dsk-mail-letter-body { overflow-wrap: anywhere; }
.dsk-mail-letter-head > div { min-width: 0; }
.dsk-mail-letter-body { min-height: 0; }

@media (max-width: 1023px) {
  .dsk-mail-layout { grid-template-columns: minmax(0, 1fr); max-height: none; min-height: 0; }
  .dsk-mail-layout:not(.dsk-mail-layout--reading) #dsk-mail-detail-host,
  .dsk-mail-detail-pane--empty { display: none; }
  .dsk-mail-layout--reading .dsk-mail-list-pane { display: none; }
  .dsk-mail-detail-pane {
    position: relative;
    inset: auto;
    z-index: auto;
    max-height: none;
    overflow: visible;
    border-radius: 12px;
    animation: none;
  }
  .dsk-mail-detail-pane > * { flex-shrink: 0; }
  .dsk-mail-letter-body { flex: none; overflow: visible; padding: .85rem; }
  .dsk-mail-letter-actions button { min-height: 40px; }
}
