/* Shared system message UI — profile + admin preview */

.sys-msg-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sys-msg-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sys-msg-card--pending {
  border-left: 3px solid #0f172a;
  padding-left: 16px;
}

.sys-msg-card--read {
  background: #fafafa;
  border-color: #eef2f6;
  box-shadow: none;
}

.sys-msg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sys-msg-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sys-msg-kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.sys-msg-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.sys-msg-status {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sys-msg-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 8px;
}

.sys-msg-body {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #475569;
  white-space: pre-wrap;
}

.sys-msg-card--read .sys-msg-body {
  color: #64748b;
}

.sys-msg-image {
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.sys-msg-image img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.sys-msg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.sys-msg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: #0f172a;
  color: #f8fafc;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.sys-msg-link:hover {
  background: #1e293b;
}

.sys-msg-dismiss {
  min-height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.sys-msg-dismiss:hover {
  background: #f8fafc;
  color: #0f172a;
}

.sys-msg-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #94a3b8;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
  background: #fafafa;
}

.profile-messages .profile-section-empty {
  padding: 20px 4px;
  text-align: center;
  font-size: 0.875rem;
  color: #94a3b8;
}

.profile-messages .profile-section-empty.hidden {
  display: none;
}
