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

.msgc-title {
  margin: 0 0 .3rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.msgc-intro {
  margin: 0;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.5;
}

.msgc-card {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: .75rem;
  background: #fff;
  overflow: hidden;
}

.msgc-card__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.msgc-card__head h3 {
  margin: 0;
  font-size: .875rem;
  font-weight: 650;
}

.msgc-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .8125rem;
}

.msgc-table__actor-col { width: 9rem; }
.msgc-table__status-col { width: 7rem; }
.msgc-table__action-col { width: 4rem; }

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

.msgc-table th {
  padding-top: .55rem;
  padding-bottom: .55rem;
  background: #fafbfc;
  color: #64748b;
  font-size: .6875rem;
  font-weight: 600;
}

.msgc-table tr:last-child td { border-bottom: 0; }
.msgc-table tbody tr:hover { background: #fafbfc; }

.msgc-table__link {
  display: block;
  padding: .2rem 0;
  color: #334155;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.msgc-table__link:hover { color: #2f3d34; text-decoration: underline; }
.msgc-table__name { display: flex; align-items: center; gap: .5rem; }
.msgc-warning { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 1.75rem; min-height: 1.75rem; color: #a16207; border-radius: .3rem; }
.msgc-warning:hover { color: #854d0e; background: #fef3c7; }
.msgc-warning:focus-visible { outline: 2px solid #a16207; outline-offset: 2px; }
.msgc-table__actor { color: #64748b; }

.msgc-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .18rem .5rem;
  border-radius: 999px;
  background: #f0f7f1;
  color: #367347;
  font-size: .6875rem;
  font-weight: 500;
  white-space: nowrap;
}

.msgc-chip::before {
  content: "";
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: currentColor;
}

.msgc-chip--inactive { background: #f3f4f6; color: #6b7280; }

.msgc-table td.msgc-table__action { text-align: right; }

.msgc-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: .4rem;
  color: #64748b;
  font-size: .875rem;
  text-decoration: none;
}

.msgc-edit:hover { background: #eef2ef; color: #2f3d34; }
.msgc-edit:focus-visible,
.msgc-table__link:focus-visible { outline: 2px solid #367347; outline-offset: 2px; }

@media (max-width: 680px) {
  .msgc-card__head { padding: .75rem; }
  .msgc-table thead,
  .msgc-table colgroup { display: none; }

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

  .msgc-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2.75rem;
    align-items: center;
    gap: .25rem .5rem;
    padding: .65rem .75rem;
    border-bottom: 1px solid #eef2f7;
  }

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

  .msgc-table td {
    display: block;
    min-width: 0;
    border-bottom: 0;
    padding: 0;
  }

  .msgc-table__message { grid-column: 1 / 3; }
  .msgc-table__actor { grid-column: 1; grid-row: 2; font-size: .75rem; }
  .msgc-table__status { grid-column: 2; grid-row: 2; }
  .msgc-table__actor::before { content: attr(data-label); margin-right: .25rem; color: #94a3b8; }
  .msgc-table__action { grid-column: 3; grid-row: 1 / 3; }
  .msgc-edit { width: 2.75rem; height: 2.75rem; }
}
