/* ------------------------------------------------------------------ global chat (public/js/chat.js) */

/* Floating button, bottom-left */
.chat-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 45;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, var(--accent-hi), var(--accent) 45%, var(--accent-lo));
  box-shadow: 0 10px 30px -6px rgba(239, 59, 59, .65), 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 -3px 0 rgba(0, 0, 0, .18) inset;
  transition: transform .18s cubic-bezier(.2, .9, .3, 1.4), box-shadow .2s;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 14px 36px -6px rgba(239, 59, 59, .8), 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.chat-fab:active { transform: scale(.96); }
.chat-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.chat-fab-icon { grid-area: 1 / 1; display: grid; place-items: center; transition: transform .28s cubic-bezier(.2, .9, .3, 1.3), opacity .2s; }
.chat-fab-icon.close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat-fab.active .chat-fab-icon.open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-fab.active .chat-fab-icon.close { opacity: 1; transform: none; }
.chat-fab-badge {
  position: absolute; top: -3px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: #fff; color: var(--accent); font-size: 12px; font-weight: 800; line-height: 22px; text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45); font-variant-numeric: tabular-nums;
}
.chat-fab-badge[hidden] { display: none; }
.chat-fab.ping .chat-fab-badge { background: var(--gold); color: #231703; }
.chat-fab.ping::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold);
  animation: chatPing 1.4s cubic-bezier(.2, .6, .4, 1) infinite; pointer-events: none;
}
.chat-fab.bump { animation: chatBump .45s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes chatPing { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes chatBump { 30% { transform: scale(1.14) rotate(-6deg); } 60% { transform: scale(.97) rotate(3deg); } }

/* Side panel */
.chat-panel {
  position: fixed; top: 66px; right: 0; bottom: 0; z-index: 45; width: 340px; max-width: 100vw;
  display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(239, 59, 59, .09), transparent 70%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .45);
  transform: translateX(104%); visibility: hidden;
  transition: transform .34s cubic-bezier(.2, .9, .25, 1), visibility 0s linear .34s;
}
.chat-panel.open { transform: none; visibility: visible; transition: transform .34s cubic-bezier(.2, .9, .25, 1), visibility 0s; }

.chat-head {
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 10px 0 14px; flex: none;
  border-bottom: 1px solid var(--line); background: rgba(20, 15, 17, .75); backdrop-filter: blur(8px);
}
.chat-head-icon {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--accent-hi);
  background: rgba(239, 59, 59, .12); border: 1px solid rgba(239, 59, 59, .25);
}
.chat-head-icon svg { width: 18px; height: 18px; }
.chat-head-title { display: flex; flex-direction: column; line-height: 1.15; }
.chat-head-title b { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: .04em; }
.chat-online { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chat-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: chatOnline 2s infinite; }
@keyframes chatOnline { 70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.chat-head-space { flex: 1; }
.chat-icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.chat-icon-btn:hover { background: var(--panel2); color: var(--text); border-color: var(--line2); }

/* Messages */
.chat-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 6px 12px;
  scrollbar-width: thin; scrollbar-color: var(--line2) transparent;
}
.chat-scroll::-webkit-scrollbar { width: 6px; }
.chat-scroll::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 3px; }
.chat-list { display: flex; flex-direction: column; gap: 1px; min-height: 100%; justify-content: flex-end; }
.chat-loading { display: grid; place-items: center; padding: 40px 0; }

.chat-msg {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 9px;
  padding: 7px 8px 6px; border-radius: 10px; margin-top: 5px; transition: background .15s;
}
.chat-msg.cont { margin-top: 0; padding-top: 1px; }
.chat-msg:hover { background: rgba(255, 255, 255, .03); }
.chat-msg.fresh { animation: chatIn .32s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.chat-msg.mine { background: linear-gradient(90deg, rgba(239, 59, 59, .09), rgba(239, 59, 59, .02)); box-shadow: inset 2px 0 0 rgba(239, 59, 59, .55); }
.chat-msg.ping { background: linear-gradient(90deg, rgba(228, 174, 57, .16), rgba(228, 174, 57, .03)); box-shadow: inset 2px 0 0 var(--gold); }
.chat-msg.mine + .chat-msg.mine.cont, .chat-msg.ping.cont { border-top-left-radius: 0; border-top-right-radius: 0; }

.chat-av { border: 0; padding: 0; background: none; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; align-self: start; transition: transform .15s; }
.chat-av:hover { transform: scale(1.08); }
.chat-av .avatar { width: 34px; height: 34px; font-size: 14px; }
.chat-side-time {
  font-size: 10px; color: var(--dim); text-align: center; padding-top: 3px; opacity: 0; transition: opacity .15s;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chat-msg:hover .chat-side-time { opacity: 1; }

.chat-body { min-width: 0; }
.chat-meta { display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 1px; }
.chat-name { color: var(--text); font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chat-name:hover { color: var(--accent-hi); text-decoration: underline; }
.chat-msg.staff .chat-name { color: #ff8a8a; }
.chat-time { margin-left: auto; font-size: 11px; color: var(--dim); white-space: nowrap; flex: none; font-variant-numeric: tabular-nums; }
.chat-text {
  font-size: 13.5px; line-height: 1.42; color: #d9dde6; overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap;
}
.chat-at { color: var(--accent-hi); font-weight: 600; }
.chat-at:hover { color: #ff9a9a; text-decoration: underline; }
.chat-at.me { color: var(--gold); background: rgba(228, 174, 57, .16); padding: 0 4px; border-radius: 4px; }

/* Level pill (colors match level-badge.js ranks) */
.chat-lv {
  --lv: #9aa7b8; flex: none; display: inline-flex; align-items: center; height: 17px; padding: 0 6px; border-radius: 99px;
  font-size: 10px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--lv); background: color-mix(in srgb, var(--lv) 16%, transparent); border: 1px solid color-mix(in srgb, var(--lv) 40%, transparent);
}
.chat-lv[data-tier="1"] { --lv: #6d88ff; }
.chat-lv[data-tier="2"] { --lv: #a57bff; }
.chat-lv[data-tier="3"] { --lv: #e05cf0; }
.chat-lv[data-tier="4"] { --lv: #ff5c5c; }
.chat-lv[data-tier="5"] {
  --lv: #e4ae39; color: #231703; border-color: transparent;
  background: linear-gradient(90deg, #f3c55a, #e4ae39, #f8d57e); box-shadow: 0 0 10px rgba(228, 174, 57, .45);
}
.chat-role {
  flex: none; display: inline-flex; align-items: center; height: 17px; padding: 0 6px; border-radius: 5px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent); color: #fff; box-shadow: 0 0 10px rgba(239, 59, 59, .35);
}
.chat-role.house { background: var(--gold); color: #231703; box-shadow: 0 0 10px rgba(228, 174, 57, .35); margin-right: 6px; }

/* Admin hover actions */
.chat-actions {
  position: absolute; top: 4px; right: 6px; z-index: 2; display: none; gap: 3px; padding: 3px;
  background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.chat-msg:hover .chat-actions, .chat-rain-card:hover .chat-actions, .chat-sys:hover .chat-actions, .show-actions .chat-actions { display: flex; }
.chat-actions button {
  height: 24px; min-width: 26px; padding: 0 6px; border-radius: 6px; border: 0; cursor: pointer;
  background: var(--panel3); color: var(--muted); font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.chat-actions button:hover { color: #fff; background: var(--accent-lo); }
.chat-actions button[data-del]:hover { background: var(--accent); }
.chat-actions button:disabled { opacity: .5; cursor: wait; }

/* Rain + system messages */
.chat-sys { position: relative; margin: 8px 4px; padding: 8px 10px; border-radius: 10px; text-align: center; font-size: 12.5px; color: var(--muted); background: var(--panel); border: 1px dashed var(--line2); }
.chat-rain-card {
  position: relative; display: flex; align-items: center; gap: 12px; margin: 9px 2px; padding: 11px 12px; border-radius: 13px;
  background:
    radial-gradient(160px 90px at 0% 50%, rgba(228, 174, 57, .22), transparent 70%),
    linear-gradient(135deg, rgba(228, 174, 57, .12), rgba(239, 59, 59, .08));
  border: 1px solid rgba(228, 174, 57, .38); overflow: hidden;
}
.chat-rain-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 230, 160, .16) 50%, transparent 65%);
  background-size: 250% 100%; animation: chatShine 3.2s ease-in-out infinite;
}
@keyframes chatShine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.chat-rain-card.fresh { animation: chatRainIn .6s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes chatRainIn { from { opacity: 0; transform: scale(.85) translateY(10px); } }
.chat-rain-card.got { border-color: var(--gold); box-shadow: 0 0 22px rgba(228, 174, 57, .28), inset 0 0 0 1px rgba(228, 174, 57, .25); }
.chat-rain-stack { position: relative; width: 38px; height: 38px; flex: none; }
.chat-rain-stack i { position: absolute; left: 7px; width: 24px; height: 24px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); animation: chatCoinBob 2.4s ease-in-out infinite; }
.chat-rain-stack i .coin { width: 100%; height: 100%; }
.chat-rain-stack i:nth-child(1) { top: 12px; left: 2px; animation-delay: 0s; }
.chat-rain-stack i:nth-child(2) { top: 7px; left: 13px; animation-delay: .3s; }
.chat-rain-stack i:nth-child(3) { top: 0; left: 6px; animation-delay: .6s; }
@keyframes chatCoinBob { 50% { transform: translateY(-3px) rotate(8deg); } }
.chat-rain-info { position: relative; min-width: 0; flex: 1; }
.chat-rain-who { display: flex; align-items: center; font-size: 12.5px; color: var(--muted); gap: 4px; white-space: nowrap; min-width: 0; }
.chat-rain-who .chat-name { font-size: 12.5px; }
.chat-rain-amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 1px 0; }
.chat-rain-amount .price { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--gold); text-shadow: 0 0 14px rgba(228, 174, 57, .35); }
.chat-rain-amount > span { font-size: 12.5px; color: var(--text); font-weight: 600; }
.chat-rain-each { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.chat-rain-each .price { font-size: 11.5px; color: var(--text); gap: 3px; }
.chat-rain-caught { margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--gold); color: #231703; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

/* Coin shower over the panel */
.chat-rainfx { position: absolute; left: 0; right: 0; top: 56px; bottom: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.chat-rainfx-burst i {
  position: absolute; top: -32px; display: block; animation-name: chatCoinFall; animation-timing-function: cubic-bezier(.35, .1, .6, 1);
  animation-fill-mode: forwards; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); opacity: 0;
}
.chat-rainfx-burst i .coin { width: 100%; height: 100%; }
@keyframes chatCoinFall {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(calc(100vh - 80px)) rotate(var(--spin, 360deg)); }
}

/* Empty state + jump button */
.chat-empty { margin: auto; padding: 40px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; }
.chat-empty b { color: var(--text); font-size: 15px; }
.chat-empty-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 8px; color: var(--accent-hi); background: rgba(239, 59, 59, .1); border: 1px solid rgba(239, 59, 59, .25); animation: chatFloat 3s ease-in-out infinite; }
@keyframes chatFloat { 50% { transform: translateY(-5px); } }
.chat-jump {
  position: absolute; left: 50%; bottom: 76px; z-index: 5; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
  animation: chatIn .25s cubic-bezier(.2, .9, .3, 1.3);
}
.chat-jump[hidden] { display: none; }
.chat-jump:hover { background: var(--accent-hi); }

/* Footer */
.chat-foot { flex: none; padding: 10px; border-top: 1px solid var(--line); background: rgba(20, 15, 17, .85); }
.chat-form { display: flex; gap: 6px; align-items: center; }
.chat-field { position: relative; flex: 1; min-width: 0; }
.chat-input {
  width: 100%; height: 42px; padding: 0 40px 0 13px; border-radius: 11px; border: 1px solid var(--line2);
  background: var(--panel); color: var(--text); outline: none; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.chat-input::placeholder { color: var(--dim); }
.chat-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(239, 59, 59, .15); }
.chat-input.shake { animation: chatShake .35s; }
@keyframes chatShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.chat-count { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--dim); font-weight: 600; pointer-events: none; font-variant-numeric: tabular-nums; }
.chat-count.low { color: var(--red); }
.chat-btn {
  width: 42px; height: 42px; flex: none; border-radius: 11px; border: 1px solid transparent; cursor: pointer;
  display: grid; place-items: center; transition: transform .1s, background .15s, box-shadow .15s, border-color .15s;
}
.chat-btn:active { transform: scale(.94); }
.chat-btn:disabled { opacity: .5; cursor: wait; }
.chat-send { color: #fff; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); box-shadow: 0 6px 18px -6px rgba(239, 59, 59, .7); }
.chat-send:hover { background: linear-gradient(180deg, #ff8a8a, var(--accent-hi)); }
.chat-rain-btn { color: var(--gold); background: rgba(228, 174, 57, .1); border-color: rgba(228, 174, 57, .35); }
.chat-rain-btn:hover { background: rgba(228, 174, 57, .2); box-shadow: 0 0 16px rgba(228, 174, 57, .25); }
.chat-signin { width: 100%; }
.chat-muted { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; font-size: 13px; color: #ffb4b4; background: rgba(240, 82, 82, .1); border: 1px solid rgba(240, 82, 82, .3); }
.chat-muted svg { flex: none; color: var(--red); }

/* Rain modal */
.chat-rain-modal { text-align: center; }
.chat-rain-modal p { margin: 6px 0 0; font-size: 14px; }
.chat-rain-modal .form { text-align: left; }
.chat-rain-hero { position: relative; width: 120px; height: 86px; margin: 0 auto 6px; }
.chat-rain-hero .cloud { position: absolute; left: 50%; top: 0; transform: translateX(-50%); color: var(--gold); filter: drop-shadow(0 0 14px rgba(228, 174, 57, .45)); }
.chat-rain-hero .cloud svg { width: 64px; height: 64px; }
.chat-rain-hero i {
  position: absolute; left: calc(50% + var(--x)); top: 34px; width: 16px; height: 16px; margin-left: -8px; opacity: 0;
  animation: chatHeroDrop 1.4s cubic-bezier(.4, 0, .7, 1) var(--d) infinite;
}
.chat-rain-hero i .coin { width: 100%; height: 100%; }
@keyframes chatHeroDrop { 0% { opacity: 0; transform: translateY(0) rotate(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(46px) rotate(200deg); } }
.chat-rain-input {
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--line2); transition: border-color .15s, box-shadow .15s;
}
.chat-rain-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(228, 174, 57, .15); }
.chat-rain-input .coin { font-size: 24px; }
.chat-rain-input .input { flex: 1; height: 100%; border: 0; background: none; padding: 0; font-family: var(--display); font-size: 22px; min-width: 0; }
.chat-rain-presets { justify-content: center; }
.chat-rain-presets .chip { height: 32px; font-variant-numeric: tabular-nums; }
.chat-rain-house { align-self: center; }
.chat-rain-house small { color: var(--dim); }
.chat-rain-note { text-align: center; font-size: 13px; color: var(--muted); min-height: 20px; }
.chat-rain-note .price { color: var(--text); }
.chat-rain-modal .form-error { text-align: center; min-height: 0; }
.chat-rules { margin: 14px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; color: var(--muted); font-size: 14px; }
.chat-rules b { color: var(--text); }

/* ------------------------------------------------------------------ layout modes */

/* Wide screens: the panel docks next to the page instead of covering it */
@media (min-width: 1500px) {
  body.chat-open { padding-right: 340px; transition: padding-right .34s cubic-bezier(.2, .9, .25, 1); }
  .chat-panel { top: 0; z-index: 55; }
  .chat-head { height: 66px; }
  .chat-rainfx { top: 66px; }
}
@media (min-width: 641px) {
  body.chat-open #toasts { right: 356px; }
}
/* Phones: full screen */
@media (max-width: 640px) {
  .chat-fab { left: 14px; bottom: 14px; width: 52px; height: 52px; }
  .chat-panel { top: 0; width: 100%; z-index: 60; border-left: 0; box-shadow: none; }
  body.chat-open { overflow: hidden; }
  body.chat-open .chat-fab { opacity: 0; pointer-events: none; }
  .chat-head { padding-top: env(safe-area-inset-top); height: calc(56px + env(safe-area-inset-top)); }
  .chat-foot { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .chat-input { font-size: 16px; } /* no zoom-on-focus in iOS Safari */
  .chat-actions { top: 2px; right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel, .chat-panel.open, body.chat-open { transition: none; }
  .chat-fab.ping::after, .chat-rain-card::before, .chat-rain-stack i, .chat-empty-icon, .chat-online i { animation: none; }
}

/* ------------------------------------------------------------------ admin: chat moderation (public/js/pages/admin-chat.js) */
.chat-admin { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.chat-admin-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.chat-admin-head h3 { margin: 0; }
.chat-admin-log { max-height: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.chat-admin-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; transition: background .15s; }
.chat-admin-row:hover { background: var(--panel2); }
.chat-admin-row.removing { opacity: 0; transform: translateX(20px); transition: opacity .25s, transform .25s; }
.chat-admin-row .avatar { width: 30px; height: 30px; font-size: 12px; }
.chat-admin-row.sys .chat-admin-text { color: var(--gold); }
.chat-admin-who { display: flex; align-items: center; gap: 6px; font-size: 12.5px; min-width: 0; }
.chat-admin-who a { color: var(--text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-admin-who time { color: var(--dim); font-size: 11.5px; margin-left: auto; white-space: nowrap; }
.chat-admin-text { font-size: 13.5px; color: #d9dde6; overflow-wrap: anywhere; }
.chat-admin-btns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; min-width: 290px; }
.chat-admin-btns .btn { height: 28px; padding: 0 9px; font-size: 12px; }
.chat-admin-form { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto; gap: 8px; }
.chat-admin-form .input, .chat-admin-form .select { width: 100%; }
.chat-admin-mutes { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.chat-admin-mute { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.chat-admin-mute .avatar { width: 30px; height: 30px; font-size: 12px; }
.chat-admin-mute-info { min-width: 0; flex: 1; font-size: 12.5px; color: var(--muted); }
.chat-admin-mute-info b { display: block; color: var(--text); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-admin-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .chat-admin { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .chat-admin-form { grid-template-columns: 1fr 1fr; }
  .chat-admin-form .btn { grid-column: 1 / -1; }
  .chat-admin-row { grid-template-columns: 30px minmax(0, 1fr); }
  .chat-admin-btns { grid-column: 1 / -1; justify-content: flex-start; min-width: 0; }
}
