/* ارتباط با مدیر (سمت کاربر) */
.nav-badge {
  display: inline-block; min-width: 1.4rem; padding: 0 0.4rem; margin-inline-start: 0.35rem;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 0.78rem; font-weight: 700;
  line-height: 1.4rem; text-align: center;
}
.sup-note { color: var(--muted); font-size: 0.95rem; }
.sup-back { margin-top: 1.2rem; }
.sup-back a, .sup-card a, .sup-note a, .page-sub a { color: var(--accent); }

.sup-subjects { display: grid; gap: 0.6rem; max-width: 520px; }
.sup-subject-btn {
  display: block; padding: 0.85rem 1rem; border-radius: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--surface-2); color: var(--text); font-weight: 700;
}
.sup-subject-btn:hover { border-color: var(--accent); }

.sup-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; max-width: 640px; }
.sup-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; padding: 0.8rem 1rem;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--surface-2);
  color: var(--text); text-decoration: none;
}
.sup-item.is-unread { border-color: var(--accent); }
.sup-subject { font-weight: 700; }
.sup-meta { color: var(--muted); font-size: 0.85rem; }

.sup-card { max-width: 640px; margin-inline: 0; }
.sup-card textarea, .field textarea {
  width: 100%; padding: 0.65rem 0.8rem; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--surface-2); border-radius: 10px; resize: vertical;
}
.field.has-error textarea { border-color: var(--red); }

.sup-thread { display: grid; gap: 0.7rem; max-width: 640px; margin: 1rem 0 1.4rem; }
.sup-msg { padding: 0.7rem 0.9rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--surface-2); }
.sup-msg.is-mine { border-inline-start: 4px solid var(--gray); }
.sup-msg.is-staff { border-inline-start: 4px solid var(--accent); }
.sup-msg.is-new { background: var(--surface-2); }
.sup-who { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.2rem; }
.sup-new { color: var(--accent); font-weight: 700; }
.sup-body { overflow-wrap: anywhere; }
.sup-when { margin-top: 0.3rem; font-size: 0.78rem; color: var(--muted); }
