/* SHAKO 2026-11-09: support chat, Agent self-service, recent resellers. Same tokens as panels-20261109.css. */
.support-card { position: relative; }
.support-card-link { all: unset; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; column-gap: 8px;
  align-items: center; width: 100%; text-align: start; }
.support-card-link > span { grid-row: span 2; font-size: 20px; color: var(--brand, #5354df); }
.support-card-link small { color: var(--muted, #6c6a86); grid-column: 2; }
.support-card-link:focus-visible { outline: 2px solid var(--brand, #5354df); outline-offset: 4px; border-radius: 10px; }
.support-unread { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: #d4405a; color: #fff; font-size: .72rem; font-weight: 700; margin-inline-start: auto; }
.support-card-link .support-unread { grid-row: span 2; grid-column: 3; }

.sc { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 14px; min-height: 560px; }
.sc-list, .sc-thread { background: var(--panel, #fff); border: 1px solid var(--line, #ebe9f4); border-radius: var(--radius, 18px);
  min-width: 0; display: flex; flex-direction: column; }
.sc-list { padding: 12px; gap: 10px; }
.sc-list-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sc-list-head h2 { font-size: 1.05rem; margin: 0; }
.sc-convs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; overflow: auto; max-height: 70vh; }
.sc-conv { width: 100%; text-align: start; border: 1px solid var(--line, #ebe9f4); background: #fff; border-radius: 12px; padding: 10px;
  display: grid; gap: 4px; cursor: pointer; font: inherit; color: inherit; }
.sc-conv:hover, .sc-conv.active { border-color: var(--brand, #5354df); background: var(--brand-50, #f1f1fe); }
.sc-conv small { color: var(--muted, #6c6a86); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-conv-top, .sc-conv-bottom { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sc-conv-bottom time { margin-inline-start: auto; font-size: .75rem; color: var(--faint, #9a98b2); }
.sc-alias { font-size: .75rem; color: var(--muted, #6c6a86); font-weight: 500; }
.sc-status { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f3f2fa; color: #4b4a66; }
.sc-status.s-waiting_support { background: #fff4e0; color: #a15c00; }
.sc-status.s-waiting_customer { background: #eaf2ff; color: #1764d8; }
.sc-status.s-resolved { background: #e6f6f0; color: #0f7b5f; }
.sc-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.sc-tabs button { border: 1px solid var(--line, #ebe9f4); background: #fff; border-radius: 999px; padding: 5px 10px; font: inherit;
  font-size: .8rem; cursor: pointer; color: var(--muted, #6c6a86); }
.sc-tabs button.active { background: var(--brand, #5354df); color: #fff; border-color: var(--brand, #5354df); }
.sc-filter input { width: 100%; min-height: 40px; border-radius: 10px; }
.sc-pager { display: flex; gap: 8px; align-items: center; justify-content: center; }
.sc-thread { padding: 0; overflow: hidden; }
.sc-empty { margin: auto; padding: 40px 20px; text-align: center; max-width: 420px; }
.sc-thread-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line, #ebe9f4); }
.sc-thread-head h3 { margin: 0; font-size: 1rem; }
.sc-thread-head p { margin: 2px 0 0; font-size: .82rem; }
.sc-actions { display: flex; gap: 8px; align-items: center; }
.sc-msgs { list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: auto;
  flex: 1; min-height: 280px; max-height: 60vh; background: var(--soft, #f9f8fd); }
.sc-msg { max-width: min(78%, 620px); padding: 9px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line, #ebe9f4);
  align-self: flex-end; }
.sc-msg.mine { align-self: flex-start; background: var(--brand, #5354df); color: #fff; border-color: var(--brand, #5354df); }
.sc-msg.mine .sc-meta, .sc-msg.mine .sc-alias { color: rgba(255,255,255,.85); }
.sc-msg p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-meta { display: flex; gap: 8px; align-items: baseline; font-size: .76rem; color: var(--muted, #6c6a86); }
.sc-meta time { margin-inline-start: auto; }
.sc-compose { padding: 10px 12px; border-top: 1px solid var(--line, #ebe9f4); display: grid; gap: 6px; }
.sc-compose textarea { width: 100%; resize: vertical; min-height: 54px; border-radius: 12px; padding: 10px; font: inherit; }
.sc-compose-bar { display: flex; justify-content: space-between; align-items: center; }
.sc-count { color: var(--faint, #9a98b2); }
.sc-new { padding: 12px 12px 0; }
.sc-me { padding: 0 12px 10px; margin: 0; }

.agent-create details > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; list-style: none; }
.agent-create details > summary h2 { margin: 0; font-size: 1.05rem; }
.agent-create details > summary::before { content: "+"; font-weight: 800; color: var(--brand, #5354df); }
.agent-create details[open] > summary::before { content: "–"; }
.agent-create form { margin-top: 12px; }
.agent-balances .m-egypt strong { color: #1764d8; } .agent-balances .m-worldwide strong { color: #8a45d1; }
.agent-market { display: flex; gap: 16px; border: 0; padding: 0; margin: 0; }
.agent-summary ul { margin: 6px 0 0; padding-inline-start: 18px; }
.agent-transfer .tm-stats { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .sc { grid-template-columns: minmax(0, 1fr); }
  .sc-convs { max-height: 260px; }
  .sc-msg { max-width: 92%; }
}
