.msgc-shell {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.msgc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
}

.msgc-head form {
  min-width: min(100%, 260px);
}

.msgc-card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .05);
  overflow: hidden;
}

.msgc-table {
  width: 100%;
  border-collapse: collapse;
}

.msgc-table th,
.msgc-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: middle;
}

.msgc-table th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  font-weight: 800;
}

.msgc-table tr:last-child td {
  border-bottom: 0;
}

.msgc-table__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.msgc-chip {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: .75rem;
  font-weight: 700;
}

.msgc-chip--inactive {
  background: #f3f4f6;
  color: #4b5563;
}

.msgc-subject {
  color: #475569;
  font-size: .85rem;
  line-height: 1.35;
  max-width: 560px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 680px) {
  .msgc-head {
    align-items: stretch;
  }

  .msgc-head form {
    width: 100%;
    align-items: stretch !important;
  }

  .msgc-table thead {
    display: none;
  }

  .msgc-table,
  .msgc-table tbody,
  .msgc-table tr,
  .msgc-table td {
    display: block;
    width: 100%;
  }

  .msgc-table tr {
    padding: .8rem;
    border-bottom: 1px solid #eef2f7;
  }

  .msgc-table tr:last-child {
    border-bottom: 0;
  }

  .msgc-table td {
    border-bottom: 0;
    padding: .32rem 0;
    text-align: left !important;
    overflow-wrap: anywhere;
  }

  .msgc-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .12rem;
    color: #94a3b8;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .msgc-subject {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .msgc-table .btn {
    width: 100%;
  }
}
