.mailboxFrame {
  width: min(
    var(--page-content-width-desktop),
    calc(100vw - var(--page-content-gutter-desktop))
  );
  height: calc(100vh - 130px);
  min-height: calc(100vh - 180px);
  max-height: calc(100vh - 180px);
  margin: var(--page-content-margin-top-desktop) auto 0;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  color: #ffffff;

  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mailboxSidebar,
.mailboxDetail {
  min-height: 0;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.018) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 36px rgba(0, 0, 0, 0.1);
}

.mailboxSidebar {
  display: flex;
  flex-direction: column;
}

.mailboxSidebarHeader {
  padding: 26px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.mailboxEyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.mailboxSidebarHeader h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.mailboxList {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mailboxList::-webkit-scrollbar {
  width: 8px;
}

.mailboxList::-webkit-scrollbar-track {
  background: transparent;
}

.mailboxList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.mailboxList::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

.mailItem {
  width: 100%;
  text-align: left;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.025) 100%
  );
  color: #ffffff;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.mailItem:hover {
  transform: translateY(-1px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.035) 100%
  );
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.mailItem.active {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.085) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.1);
}

.mailItem.unread {
  border-color: rgba(255, 255, 255, 0.13);
}

.mailItemTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.mailItemBadge,
.mailboxMetaBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}

.mailItemTime {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.mailItemTitle {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.mailItemPreview {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mailItemBadge.mention,
.mailboxMetaBadge.mention {
  background: rgba(92, 155, 255, 0.18);
  border-color: rgba(92, 155, 255, 0.26);
  color: #e4f0ff;
}

.mailItemBadge.invite,
.mailboxMetaBadge.invite {
  background: rgba(147, 118, 255, 0.18);
  border-color: rgba(147, 118, 255, 0.26);
  color: #efe8ff;
}

.mailItemBadge.project,
.mailboxMetaBadge.project {
  background: rgba(99, 197, 255, 0.17);
  border-color: rgba(99, 197, 255, 0.25);
  color: #e3f7ff;
}

.mailItemBadge.task,
.mailboxMetaBadge.task {
  background: rgba(68, 209, 135, 0.18);
  border-color: rgba(68, 209, 135, 0.26);
  color: #e3fff0;
}

.mailItemBadge.comment,
.mailboxMetaBadge.comment {
  background: rgba(255, 187, 77, 0.18);
  border-color: rgba(255, 187, 77, 0.26);
  color: #fff2db;
}

.mailItemBadge.system,
.mailboxMetaBadge.system {
  background: rgba(255, 120, 120, 0.16);
  border-color: rgba(255, 120, 120, 0.24);
  color: #ffe0e0;
}

.mailItemBadge.info,
.mailboxMetaBadge.info {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* =========================
   SIDEBAR STATES
========================= */

.mailboxEmptyState,
.mailboxLoadingState,
.mailboxErrorState {
  padding: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================
   DETAIL PANEL
========================= */

.mailboxDetail {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mailboxDetailHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.mailboxDetailHeaderLeft {
  flex: 1;
  min-width: 0;
}

.mailboxDetailHeader h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  max-width: 760px;
}

.mailboxMetaRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mailboxMetaRowHeader {
  padding-top: 16px;
}

.mailboxMetaChip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mailboxDetailHeaderActions {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.mailboxDeleteBtn {
  min-width: 118px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.mailboxDeleteBtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 110, 110, 0.14);
  border-color: rgba(255, 120, 120, 0.24);
  color: #ffdede;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.mailboxDeleteBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================
   DETAIL BODY
========================= */

.mailboxDetailBody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.mailboxDetailBodyRich {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 28px 28px;
}

.mailboxDetailBody::-webkit-scrollbar {
  width: 10px;
}

.mailboxDetailBody::-webkit-scrollbar-track {
  background: transparent;
}

.mailboxDetailBody::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.mailboxDetailBody::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =========================
   HERO CARD
========================= */

.mailboxHeroCard {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.075) 0%,
    rgba(255, 255, 255, 0.025) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.08);
}

.mailboxHeroIcon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mailboxHeroContent {
  flex: 1;
  min-width: 0;
}

.mailboxHeroEyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.mailboxHeroTitle {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.mailboxHeroText {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
  word-break: keep-all;
}

/* =========================
   CONTENT CARDS
========================= */

.mailboxTaskInfoCard,
.mailboxSoftPanel {
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.07);
}

.mailboxSectionHeader,
.mailboxSoftPanelHeader {
  margin-bottom: 18px;
}

.mailboxSectionEyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.mailboxSectionTitle,
.mailboxSoftPanelHeader h4 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* =========================
   TASK SUMMARY
========================= */

.mailboxTaskSummary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
  margin-bottom: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mailboxTaskSummaryMain {
  flex: 1;
  min-width: 0;
}

.mailboxTaskInfoLabel {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.54);
}

.mailboxTaskInfoTitle {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  word-break: break-word;
}

.mailboxTaskStatus {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}

.mailboxTaskStatus.planned {
  color: #fff0cd;
  background: rgba(255, 184, 77, 0.18);
  border-color: rgba(255, 184, 77, 0.28);
}

.mailboxTaskStatus.inProgress {
  color: #dff1ff;
  background: rgba(90, 163, 255, 0.18);
  border-color: rgba(90, 163, 255, 0.28);
}

.mailboxTaskStatus.done {
  color: #ddffec;
  background: rgba(58, 199, 120, 0.2);
  border-color: rgba(58, 199, 120, 0.28);
}

/* =========================
   GRID INFO
========================= */

.mailboxInfoGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mailboxInfoCell {
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.mailboxInfoCellWide {
  grid-column: 1 / -1;
}

.mailboxInfoValue {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 700;
  color: #ffffff;
  word-break: break-word;
}

.mailboxTaskInfoText {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

.mailboxMessageInline {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  word-break: keep-all;
  white-space: normal;
}

/* =========================
   INVITE ACTIONS
========================= */

.mailboxInviteActions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.mailboxAcceptBtn,
.mailboxRejectBtn {
  min-width: 120px;
  height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.mailboxAcceptBtn {
  border: 1px solid rgba(61, 208, 128, 0.26);
  background: rgba(61, 208, 128, 0.18);
  color: #ecfff4;
}

.mailboxAcceptBtn:hover {
  transform: translateY(-1px);
  background: rgba(61, 208, 128, 0.25);
  box-shadow: 0 10px 20px rgba(18, 78, 47, 0.22);
}

.mailboxRejectBtn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
}

.mailboxRejectBtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.mailboxAcceptBtn:disabled,
.mailboxRejectBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================
   SOFT SUMMARY PANEL
========================= */

.mailboxSummaryList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mailboxSummaryItem {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mailboxSummaryDot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.mailboxSummaryItem p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.mailboxSummaryItem strong {
  color: #ffffff;
  font-weight: 800;
}

/* =========================
   EMPTY DETAIL STATE
========================= */

.mailboxDetailEmpty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mailboxDetailEmpty .mailboxDetailBody {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.mailboxDetailEmpty .mailboxDetailBody p {
  margin: 0;
  max-width: 360px;
  text-align: center;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.68);
}

/* =========================
   CONFIRM POPUP
========================= */

.mailboxConfirmOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 10, 18, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mailboxConfirmPopup {
  width: min(460px, 92vw);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.mailboxConfirmEyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.mailboxConfirmPopup h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
  color: #ffffff;
}

.mailboxConfirmText {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.74);
}

.mailboxConfirmPreview {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mailboxConfirmPreviewTitle {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
  color: #ffffff;
}

.mailboxConfirmPreviewMessage {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-height: 84px;
  overflow: hidden;
}

.mailboxConfirmActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.mailboxConfirmCancelBtn,
.mailboxConfirmDeleteBtn {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.mailboxConfirmCancelBtn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
}

.mailboxConfirmCancelBtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.mailboxConfirmDeleteBtn {
  border: 1px solid rgba(255, 120, 120, 0.22);
  background: rgba(255, 120, 120, 0.12);
  color: #ffd7d7;
}

.mailboxConfirmDeleteBtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 120, 120, 0.18);
}

.mailboxConfirmCancelBtn:disabled,
.mailboxConfirmDeleteBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .mailboxFrame {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .mailboxDetailHeader h2 {
    font-size: 30px;
  }

  .mailboxTaskInfoTitle {
    font-size: 26px;
  }

  .mailboxHeroTitle {
    font-size: 22px;
  }
}

@media (max-width: 960px) {
  .mailboxFrame {
    width: min(100%, calc(100vw - 24px));
    min-height: auto;
    max-height: none;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .mailboxSidebar,
  .mailboxDetail {
    min-height: auto;
  }

  .mailboxList {
    max-height: 320px;
  }

  .mailboxDetail {
    min-height: 560px;
  }

  .mailboxDetailHeader {
    flex-direction: column;
    align-items: stretch;
  }

  .mailboxDetailHeaderActions {
    width: 100%;
    justify-content: flex-start;
  }

  .mailboxInfoGrid {
    grid-template-columns: 1fr;
  }

  .mailboxTaskSummary {
    flex-direction: column;
    align-items: flex-start;
  }

  .mailboxTaskStatus {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .mailboxFrame {
    width: min(100%, calc(100vw - 16px));
    padding: 12px;
    gap: 14px;
    border-radius: 20px;
  }

  .mailboxSidebarHeader {
    padding: 22px 18px 16px;
  }

  .mailboxSidebarHeader h2 {
    font-size: 22px;
  }

  .mailboxList {
    padding: 10px;
  }

  .mailItem {
    padding: 14px;
    border-radius: 16px;
  }

  .mailItemTitle {
    font-size: 17px;
  }

  .mailboxDetailHeader {
    padding: 22px 18px 18px;
  }

  .mailboxDetailHeader h2 {
    font-size: 26px;
  }

  .mailboxDetailBodyRich {
    padding: 18px;
    gap: 14px;
  }

  .mailboxHeroCard,
  .mailboxTaskInfoCard,
  .mailboxSoftPanel {
    padding: 18px;
    border-radius: 20px;
  }

  .mailboxHeroCard {
    flex-direction: column;
  }

  .mailboxHeroIcon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 24px;
  }

  .mailboxHeroTitle {
    font-size: 20px;
  }

  .mailboxTaskInfoTitle {
    font-size: 22px;
  }

  .mailboxInviteActions {
    flex-direction: column;
    align-items: stretch;
  }

  .mailboxAcceptBtn,
  .mailboxRejectBtn,
  .mailboxDeleteBtn {
    width: 100%;
  }

  .mailboxConfirmPopup {
    padding: 20px;
    border-radius: 20px;
  }

  .mailboxConfirmPopup h3 {
    font-size: 21px;
  }

  .mailboxConfirmActions {
    flex-direction: column;
  }

  .mailboxConfirmCancelBtn,
  .mailboxConfirmDeleteBtn {
    width: 100%;
  }
}

.mailboxSidebarHeaderTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mailboxDeleteAllBtn {
  min-width: 118px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 120, 120, 0.16);
  border-radius: 14px;
  background: rgba(255, 120, 120, 0.08);
  color: #ffdede;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.mailboxDeleteAllBtn:hover {
  transform: translateY(-1px);
  background: rgba(255, 120, 120, 0.14);
  border-color: rgba(255, 120, 120, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.mailboxDeleteAllBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 1600px) and (min-width: 1025px) {
  .mailboxFrame {
    width: calc(100% - var(--page-content-gutter-laptop));
    max-width: var(--page-content-width-laptop);
    margin: var(--page-content-margin-top-laptop) auto 0;
  }
}

@media (min-width: 1900px) {
  .mailboxFrame {
    width: min(
      var(--page-content-width-ultra),
      calc(100vw - var(--page-content-gutter-ultra))
    );
    margin: var(--page-content-margin-top-ultra-default) auto 0;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 22px;
    padding: 24px;
    border-radius: 32px;
  }

  .mailboxSidebar,
  .mailboxDetail {
    border-radius: 26px;
  }

  .mailboxSidebarHeader {
    padding: 28px 26px 20px;
  }

  .mailboxSidebarHeader h2 {
    font-size: 20px;
  }

  .mailboxEyebrow {
    font-size: 13px;
  }

  .mailboxList {
    padding: 16px;
    gap: 14px;
  }

  .mailItem {
    padding: 18px;
    border-radius: 20px;
  }

  .mailItemTitle {
    font-size: 17px;
  }

  .mailItemPreview {
    font-size: 13px;
  }

  .mailboxDetailHeader {
    padding: 30px 30px 22px;
  }

  .mailboxDetailHeader h2 {
    font-size: 38px;
  }

  .mailboxDetailBodyRich {
    padding: 24px 30px 30px;
    gap: 20px;
  }

  .mailboxHeroCard,
  .mailboxTaskInfoCard,
  .mailboxSoftPanel {
    padding: 24px;
    border-radius: 26px;
  }

  .mailboxHeroTitle {
    font-size: 22px;
  }

  .mailboxHeroText,
  .mailboxTaskInfoText,
  .mailboxMessageInline {
    font-size: 16px;
  }

  .mailboxTaskInfoTitle {
    font-size: 28px;
  }

  .mailboxInfoValue {
    font-size: 18px;
  }

  .mailboxDeleteBtn,
  .mailboxDeleteAllBtn,
  .mailboxAcceptBtn,
  .mailboxRejectBtn {
    height: 46px;
    font-size: 15px;
    border-radius: 16px;
  }
}
