/* support: shared by the player's profile tab and the admin panel */
.dot { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; }

.sp-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 24px 8px; }
.sp-top h3 { font-family: var(--exo); font-size: 18px; }
.sp-top p { margin-top: 6px; color: var(--gray); font-size: 13px; line-height: 1.45; max-width: 56ch; }
.sp-top .btn { flex: none; }
.sp-list { display: grid; gap: 8px; padding: 14px 24px 24px; }
.sp-list > .empty { padding: 44px 16px 36px; border-radius: 14px; background: var(--bg); }
.sp-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg); text-align: left; transition: background 0.3s ease, transform 0.4s var(--soft, ease); }
.sp-item:hover { background: #1e2024; transform: translateX(2px); }
.sp-item > span { display: grid; flex: 1; min-width: 0; }
.sp-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-item small { color: var(--gray); font-size: 12px; }
.sp-item .dot { font-size: 10.5px; }
.sp-item.unread { box-shadow: inset 2px 0 0 var(--y); }
.sp-form { display: grid; gap: 14px; padding: 22px 24px 24px; max-width: 680px; }
.sp-form h3 { font-family: var(--exo); font-size: 18px; }
.sp-form textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.back-link { display: inline-flex; align-items: center; gap: 4px; width: max-content; color: var(--gray); font-weight: 600; font-size: 13px; }
.back-link:hover { color: #fff; }
.back-link .ico { width: 15px; height: 15px; }

.chat-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-head > div { display: grid; min-width: 0; flex: 1; }
.chat-head small { color: var(--gray); font-size: 12px; }
.icon-back { display: none; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: var(--bg); }
.icon-back.show { display: grid; }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; max-height: 460px; overflow-y: auto; }
.msg { display: grid; gap: 4px; max-width: min(520px, 86%); align-self: flex-start; }
.msg p { padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: var(--bg); line-height: 1.5; overflow-wrap: anywhere; font-size: 13.5px; }
.msg time { color: var(--faint, #6f7078); font-size: 11px; padding: 0 4px; }
.msg.admin, .msg.mine { align-self: flex-end; }
.msg.admin time, .msg.mine time { text-align: right; }
.msg.admin p { border-radius: 14px 4px 14px 14px; background: #2e2b13; box-shadow: inset 0 0 0 1px rgba(252, 215, 17, 0.25); }
.msg.mine p { border-radius: 14px 4px 14px 14px; background: #24262b; }
.sp-view .msg.admin { align-self: flex-start; }
.sp-view .msg.admin p { border-radius: 4px 14px 14px 14px; }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; padding: 14px 20px 20px; border-top: 1px solid var(--line); }
.chat-form textarea { height: auto; min-height: 46px; padding: 12px 14px; resize: vertical; line-height: 1.4; }

@media (max-width: 560px) {
  .sp-top, .sp-form { padding: 18px 16px 6px; }
  .sp-list { padding: 12px 12px 16px; }
  .sp-top .btn { width: 100%; }
  .chat-form { grid-template-columns: 1fr; }
  .chat-form .btn { width: 100%; }
}
