/* ════════════════════════════════════════════════════════════════
   tickets.css — تیکت و پشتیبانی — بارگذاری در main و admin
   ════════════════════════════════════════════════════════════════ */

/* ─── سربرگ تیکت ─── */
.ticket-head{padding:20px 22px;margin-bottom:16px}
.ticket-head h2{font-size:16px;margin-bottom:10px}
.tk-dates{display:flex;gap:16px;flex-wrap:wrap;margin-top:12px;font-size:11.5px;color:var(--text-muted)}

/* ─── گفتگو ─── */
.t-thread{display:flex;flex-direction:column;gap:12px}
.t-msg{border:1px solid var(--border);border-radius:var(--radius);padding:12px 16px;background:var(--surface)}
.t-msg.staff{background:var(--primary-soft);border-color:rgba(99,102,241,.4)}
.t-msg-head{display:flex;align-items:center;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.t-avatar{width:34px;height:34px;border-radius:50%;background:var(--surface-2);display:flex;
     align-items:center;justify-content:center;font-weight:800;font-size:12.5px;color:var(--text-muted);flex:none}
.t-msg.staff .t-avatar{background:var(--surface);color:var(--primary-strong)}
.t-name{font-size:12.5px;font-weight:800}
.t-badge{font-size:10px;padding:1px 10px;border-radius:99px;flex:none}
.t-badge.user{background:var(--surface-2);color:var(--text-muted);border:1px solid var(--border)}
.t-msg.staff .t-badge.user{background:var(--surface)}
.t-badge.staff{background:var(--primary);color:#fff}
.t-date{font-size:10.5px;color:var(--text-faint);margin-inline-start:auto}
.t-msg-body{font-size:13px;line-height:2.1;white-space:pre-wrap;word-break:break-word}
.t-attach{display:inline-flex;align-items:center;gap:7px;margin-top:8px;font-size:12px;color:var(--link)}
.t-attach .esa-ico{width:14px;height:14px}
.tk-actions{display:flex;gap:8px;flex-wrap:wrap}

.ticket-layout{align-items:start}
@media(max-width:920px){.ticket-layout{grid-template-columns:1fr}}