/* ==========================================================
   STYLES 3 — members panel, user cards, chat messages, pickers,
   and everything added to make the front end fully functional
   ========================================================== */

body.is-auth .topbar,
body.is-auth .side-drawer,
body.is-auth .members-panel,
body.is-auth .app-footer { display: none !important; }

.modal-overlay { z-index: 400; }
.members-button { position: relative; }
.members-online-dot {
  position: absolute; top: 8px; right: 8px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--success); border: 2px solid var(--surface);
}
.online-count-link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.online-count-link:hover { color: var(--primary); }
.tk-subheading { margin: 26px 0 10px; font-size: 15px; }

/* ---------- RIGHT MEMBERS PANEL ---------- */
.members-panel {
  position: fixed; z-index: 201; top: 0; bottom: 0; right: 0;
  width: min(380px, 92vw); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-strong);
  transform: translateX(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.members-panel.active { transform: translateX(0); }
.members-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-soft);
}
.members-tabs { display: flex; gap: 4px; }
.members-tab {
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent;
  color: var(--text-soft); font-size: 19px; cursor: pointer; transition: var(--transition);
}
.members-tab:hover { background: var(--surface-hover); }
.members-tab.active { background: var(--primary-light); color: var(--primary-dark); }
.members-search { padding: 10px 14px 0; }
.members-search input {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px;
}
.members-title {
  display: flex; align-items: center; gap: 10px; padding: 18px 18px 8px;
  font-weight: 800; font-size: 15px;
}
.members-count {
  min-width: 34px; padding: 3px 10px; border-radius: 999px; text-align: center;
  background: var(--primary); color: var(--on-primary, #fff); font-size: 13px;
}
.members-list { flex: 1; overflow-y: auto; padding: 4px 10px 24px; }
.members-section-label {
  margin: 16px 8px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: var(--text-light); text-transform: uppercase;
}
.member-row {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  border: 0; border-radius: 14px; background: transparent; color: var(--text);
  font: inherit; text-align: left; cursor: pointer; transition: var(--transition);
}
.member-row:hover { background: var(--surface-hover); }
.member-row.is-me { background: var(--primary-light); }
.member-row .member-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.member-row .member-name { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row .member-sub { font-size: 12px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row .member-badge { font-size: 17px; }
.role-owner .member-name, .name-owner { color: #e0457b; }
.role-admin .member-name, .name-admin { color: #7c4dff; }
.role-moderator .member-name, .name-moderator { color: #1fa971; }
.member-row.highlight-owner {
  background: linear-gradient(90deg, color-mix(in srgb,#e0457b 18%,transparent), transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb,#e0457b 55%,transparent);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-light); display: inline-block; margin-right: 5px; }
.status-dot.on { background: var(--success); }

/* ---------- AVATARS ---------- */
.tk-avatar {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden; position: relative;
  font-weight: 800; font-size: 16px; color: #fff; border: 2.5px solid var(--primary);
  background-size: cover; background-position: center; cursor: pointer; user-select: none;
}
.tk-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-avatar.lg { width: 96px; height: 96px; font-size: 36px; border-width: 4px; cursor: default; }
.tk-avatar.sm { width: 28px; height: 28px; font-size: 11px; border-width: 2px; }
.tk-avatar.ring-owner { border-color: #e0457b; }
.tk-avatar.ring-admin { border-color: #7c4dff; }
.tk-avatar.ring-moderator { border-color: #1fa971; }

/* ---------- USER CARD ---------- */
.user-card { max-width: 400px; padding: 0 !important; overflow: hidden; }
.user-card .uc-banner { height: 96px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); background-size: cover; background-position: center; position: relative; }
.user-card .uc-close { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.35); color: #fff; }
.user-card .uc-body { padding: 0 22px 22px; margin-top: -48px; position: relative; }
.user-card h2 { margin: 12px 0 2px; font-size: 21px; }
.user-card .uc-username { color: var(--text-soft); font-size: 13px; margin: 0; }
.user-card .uc-role {
  display: inline-block; margin-top: 8px; padding: 3px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; background: var(--primary-light); color: var(--primary-dark);
}
.user-card .uc-bio { margin: 14px 0 4px !important; color: var(--text) !important; font-size: 14px; line-height: 1.5; }
.user-card .uc-status { color: var(--text-soft); font-size: 12.5px; margin: 6px 0 0; }
.uc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.uc-actions button, .tk-btn {
  padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-soft); color: var(--text); font: inherit; font-size: 13.5px;
  font-weight: 700; cursor: pointer; transition: var(--transition);
}
.uc-actions button:hover, .tk-btn:hover { background: var(--surface-hover); }
.uc-actions .primary, .tk-btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); }
.uc-actions .danger, .tk-btn.danger { color: var(--danger); }
.uc-actions .wide { grid-column: 1 / -1; }
.uc-staff { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.uc-staff small { display: block; margin-bottom: 8px; font-weight: 800; letter-spacing: .06em; color: var(--text-light); }

/* ---------- CHAT MESSAGES ---------- */
.message-list, .dm-message-list { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.tk-msg { display: flex; gap: 7px; align-items: flex-start; padding: 3px 6px; border-radius: 12px; max-width: 100%; position: relative; }
.tk-msg:hover { background: var(--surface-soft); }
.tk-msg.own { flex-direction: row-reverse; }
.tk-msg .tk-body { max-width: min(74%, 420px); min-width: 0; display: flex; flex-direction: column; }
.tk-msg.own .tk-body { align-items: flex-end; }
.tk-meta { display: flex; gap: 6px; align-items: center; font-size: 10.5px; color: var(--text-soft); margin-bottom: 1px; }
.tk-meta .tk-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; font-size: 12px; color: var(--text); cursor: pointer; }
.tk-meta .tk-name:hover { text-decoration: underline; }
.tk-bubble {
  padding: 5px 10px; border-radius: 13px; background: var(--surface-soft); color: var(--text);
  font-size: 13px; line-height: 1.35; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap;
}
.tk-msg.own .tk-bubble { background: var(--primary); color: var(--on-primary, #fff); }
.tk-msg.own .tk-bubble a { color: inherit; }
.tk-bubble a { color: var(--primary-dark); text-decoration: underline; }
.tk-bubble.sticker { font-size: 38px; line-height: 1.1; background: transparent !important; padding: 0; }
.tk-bubble.deleted { font-style: italic; opacity: .6; }
.tk-bubble img.tk-media, .tk-bubble video.tk-media { max-width: min(100%, 220px); max-height: 170px; border-radius: 10px; display: block; cursor: pointer; }
.tk-bubble audio { max-width: 100%; }
.tk-file { display: flex; align-items: center; gap: 10px; }
.tk-file span.ico { font-size: 20px; }
.tk-reply-quote { border-left: 3px solid var(--primary); padding: 3px 8px; margin-bottom: 4px; font-size: 11.5px; background: color-mix(in srgb, var(--primary) 10%, transparent); border-radius: 6px; color: var(--text-soft); }
.tk-msg.own .tk-reply-quote { color: inherit; border-color: currentColor; background: rgba(255,255,255,.18); }
.tk-reactions { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.tk-reactions button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 1px 7px; font-size: 11.5px; cursor: pointer; }
.tk-reactions button.mine { border-color: var(--primary); background: var(--primary-light); }
.tk-more { opacity: 0; align-self: center; border: 0; background: var(--surface); color: var(--text-soft); width: 24px; height: 24px; font-size: 13px; border-radius: 50%; cursor: pointer; box-shadow: var(--shadow); }
.tk-msg:hover .tk-more, .tk-more:focus { opacity: 1; }
@media (hover: none) { .tk-more { opacity: .75; } }
.tk-system { text-align: center; font-size: 11.5px; color: var(--text-light); padding: 3px 0; }
.tk-system b { color: var(--text-soft); cursor: pointer; }
.tk-pending { padding: 10px 14px; border: 1px dashed var(--border); border-radius: 12px; font-size: 13px; color: var(--text-soft); }

/* context menu */
.message-context-menu { position: fixed; z-index: 650; min-width: 190px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-strong); }
.message-context-menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.message-context-menu button:hover { background: var(--surface-hover); }
.message-context-menu button.danger { color: var(--danger); }
.tk-react-row { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.message-context-menu .tk-react-row button { width: auto; padding: 6px 7px; font-size: 20px; }

/* typing + toolbar + composer helpers */
#typingIndicator { font-size: 12px; color: var(--text-soft); font-style: italic; }
.chat-toolbar { display: flex; justify-content: space-between; align-items: center; }
.rec-live { color: var(--danger); font-weight: 800; }
#dmVoiceButton.recording, #voiceButton.recording { color: var(--danger); }

/* ---------- PICKER ---------- */
.tk-picker {
  position: fixed; z-index: 640; left: 50%; bottom: 90px; transform: translateX(-50%);
  width: min(380px, calc(100vw - 24px)); max-height: 340px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-strong); overflow: hidden;
}
.tk-picker input { margin: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.tk-picker .grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 4px 10px 12px; overflow-y: auto; }
.tk-picker .grid.stickers { grid-template-columns: repeat(4, 1fr); }
.tk-picker .grid button { border: 0; background: none; font-size: 24px; padding: 6px 0; border-radius: 8px; cursor: pointer; }
.tk-picker .grid.stickers button { font-size: 40px; }
.tk-picker .grid button:hover { background: var(--surface-hover); }
.tk-picker .note { padding: 0 12px 8px; font-size: 11.5px; color: var(--text-light); }

/* ---------- DM (floating window) ---------- */
.tk-conv { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px; border: 0; border-radius: 13px; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.tk-conv:hover, .tk-conv.active { background: var(--surface-hover); }
.tk-conv .meta { flex: 1; min-width: 0; }
.tk-conv .meta strong { display: block; font-size: 14.5px; }
.tk-conv .meta p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-conv .unread { background: var(--primary); color: var(--on-primary, #fff); border-radius: 999px; font-size: 11px; min-width: 20px; height: 20px; display: grid; place-items: center; font-weight: 800; }
.dm-chat-user-avatar { padding: 0; background: none; border: 0; }
.dm-chat-user-avatar .tk-avatar { width: 40px; height: 40px; }
.dm-message-list { padding: 14px; }
.dm-typing-indicator small { color: var(--text-soft); }

/* ---------- LISTS / MISC VIEWS ---------- */
.tk-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.tk-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.tk-card .meta { flex: 1; min-width: 0; }
.tk-card .meta strong { display: block; font-size: 14.5px; }
.tk-card .meta p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-soft); }
.tk-card .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.tk-card .acts button { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-soft); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tk-card .acts button.primary { background: var(--primary); color: var(--on-primary, #fff); border-color: var(--primary); }
.tk-card .acts button.danger { color: var(--danger); }
.tk-card.unread { border-color: var(--primary); background: var(--primary-light); }
.tk-card.block { align-items: flex-start; flex-direction: column; }
.settings-list > label { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tk-demo-box { margin-top: 14px; padding: 14px; border: 1px dashed var(--primary); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-soft) !important; }
.tk-demo-box p { margin: 0; font-size: 12.5px; color: var(--text-soft); }
.tk-demo-box select { margin-left: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.tk-inline-check { display: flex; align-items: center; gap: 8px; }
.tk-form { display: flex; flex-direction: column; gap: 8px; }
.tk-form input, .tk-form textarea, .tk-form select, #genericBody input, #genericBody textarea,
#editProfileForm input, #editProfileForm textarea, #bugReportForm input, #bugReportForm textarea,
#upgradeAccountForm input, #loginForm input, #registerForm input, #guestForm input, #reportForm select, #reportForm textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit;
}
#editProfileForm, #bugReportForm, #upgradeAccountForm { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
#editProfileForm button, #bugReportForm button, #upgradeAccountForm button, #loginForm button, #registerForm button, #guestForm button, #reportForm button, #contactSupportButton, #markAllReadButton {
  padding: 12px 16px; border-radius: 12px; border: 0; background: var(--primary); color: var(--on-primary, #fff); font: inherit; font-weight: 800; cursor: pointer; margin-top: 8px;
}
.form-error { color: var(--danger); font-size: 13px; min-height: 18px; margin: 4px 0 0; }
.profile-cover { background-size: cover; background-position: center; }
.profile-avatar { overflow: hidden; background-size: cover; background-position: center; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tk-music-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-soft); }
.tk-track { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.tk-track:hover, .tk-track.active { background: var(--surface-hover); }
.tk-track.active strong { color: var(--primary-dark); }
#musicPlaylist { margin-top: 12px; }
.friends-tabs button.active { background: var(--primary-light); color: var(--primary-dark); }
.settings-page-hint { color: var(--text-soft); font-size: 13px; }
.staff-dashboard button.active { background: var(--primary-light); }
.tk-empty { text-align: center; color: var(--text-soft); padding: 30px 10px; font-size: 14px; }
@media (max-width: 650px) { .tk-msg .tk-body { max-width: 80%; } .tk-picker { bottom: 70px; } }
body.is-auth .main-content { display: none; }
@media (max-width: 560px) {
  .brand > span:last-child { display: none; }
  .top-actions .icon-button { width: 38px; height: 38px; }
}


/* =========================================================
   APP SHELL — the top bar is a fixed row, only the page scrolls
   (fixes the top bar being dragged down while scrolling)
   ========================================================= */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { min-height: 0; }
#app { position: fixed; inset: 0; height: auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.app-scroll {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.app-scroll.locked { overflow: hidden; }

/* ---------- uniform avatars (no per-profile colours) ---------- */
.tk-avatar { background-color: var(--primary); background-image: linear-gradient(145deg, var(--primary), var(--primary-dark)); }

/* ---------- gender symbol ---------- */
.gender-mark { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 5px; color: var(--text-soft); line-height: 1; }
.gender-mark svg { width: 1em !important; height: 1em !important; min-width: 1em !important; max-width: 1em !important; vertical-align: 0 !important; stroke-width: 2.2; }
.member-row .member-name .gender-mark { font-size: 13px; }

/* ---------- show / hide password ---------- */
.pw-field { position: relative; display: block; width: 100%; }
.pw-field > input { padding-right: 48px !important; }
.pw-field > .pw-toggle {
  position: absolute !important; top: 50% !important; right: 6px !important; left: auto !important; bottom: auto !important;
  width: 36px !important; height: 36px !important; min-height: 0 !important; min-width: 0 !important;
  margin: 0 !important; padding: 0 !important; display: grid !important; place-items: center;
  border: 0 !important; border-radius: 10px !important; background: transparent !important; box-shadow: none !important;
  color: var(--text-light) !important; cursor: pointer; transform: translateY(-50%) !important;
}
.pw-field > .pw-toggle:hover, .pw-field > .pw-toggle[aria-pressed="true"] { color: var(--primary) !important; background: transparent !important; }
.pw-field > .pw-toggle svg { width: 20px; height: 20px; display: block; pointer-events: none; }

/* ---------- small logout option in Settings ---------- */
.settings-logout {
  display: block; margin: 22px auto 6px; padding: 8px 18px; min-height: 0;
  border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--border)); border-radius: 999px;
  background: transparent; color: var(--danger); font-size: 12px; font-weight: 700; cursor: pointer;
}
.settings-logout:hover { background: color-mix(in srgb, var(--danger) 9%, transparent); }

/* notification count sits on the bell itself (it was positioned against the top bar and landed on the members button) */
#bellButton { position: relative; }
#bellButton .dm-unread-badge { top: 1px; right: 0; pointer-events: none; }

/* ---------- report screenshot proof ---------- */
.rp-req { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: 10.5px; font-weight: 800; }
.rp-proof { margin-bottom: 4px; }
.rp-proof-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-proof-row button { margin: 0; padding: 9px 14px; min-height: 0; font-size: 13px; font-weight: 700; border: 0; border-radius: 12px; background: var(--primary-light); color: var(--primary-dark); cursor: pointer; }
.rp-proof-row button:first-child { background: var(--primary); color: var(--on-primary, #fff); }
#reportProofPreview { display: block; width: 100%; max-height: 220px; margin-top: 10px; object-fit: contain; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.rp-hint { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-soft); }
.rp-hint.ok { color: var(--success); font-weight: 600; }
.rp-hint.err { color: var(--danger); font-weight: 700; }
#reportSubmit { margin-top: 14px; }
.rp-shot { display: block; width: 100%; max-width: 360px; max-height: 240px; margin-top: 10px; object-fit: contain; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); cursor: zoom-in; }
.rp-shot-note { display: block; margin-top: 4px; color: var(--text-light); font-size: 11px; }
.rp-noshot { color: var(--text-light) !important; font-style: italic; }
.rp-full { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 12px; }
.rp-proof-row #reportProofRemove { background: var(--primary-light) !important; color: var(--primary-dark) !important; }
.rp-proof-row #reportProofPick { background: var(--primary) !important; color: var(--on-primary, #fff) !important; }
#reportProofPreview { max-height: 170px; }


/* ---------- VERIFIED BADGE (small, calm: pops in once, then a soft ring every few seconds) ---------- */
.v-badge { position: relative; display: inline-flex; flex: none; width: 13px; height: 13px; margin-left: 4px; vertical-align: -.17em; border-radius: 50%; animation: vPop .55s cubic-bezier(.34, 1.56, .64, 1) both; }
.v-badge svg { width: 100%; height: 100%; display: block; overflow: visible; }
.v-badge .v-bg { fill: #3b82f6; }
.v-badge .v-tick { fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; animation: vDraw .5s .2s ease-out both; }
.v-badge::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: vRing 6s ease-out 1.5s infinite; pointer-events: none; }
.v-badge.big { width: 26px; height: 26px; margin: 0; }
@keyframes vPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes vDraw { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }
@keyframes vRing { 0%, 80% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } 82% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .38); } 100% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); } }
@media (prefers-reduced-motion: reduce) { .v-badge, .v-badge::after, .v-badge .v-tick { animation: none; } }
/* "Verified member · identity confirmed" card (profile + user card), like Discord's verified panel */
.v-card { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; padding: 9px 12px; border-radius: 14px; text-align: left; border: 1px solid color-mix(in srgb, #3b82f6 35%, var(--border)); background: color-mix(in srgb, #3b82f6 9%, var(--surface)); animation: vCardIn .45s ease both; }
.v-card[hidden] { display: none; }
.v-card b { display: block; font-size: 13px; color: var(--text); }
.v-card small { display: block; font-size: 11.5px; color: var(--text-soft); margin-top: 1px; }
.user-card .v-card { margin: 10px 18px 0; }
@keyframes vCardIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .v-card { animation: none; } }

/* ---------- MODERATION: chat notice, pop-up fields, staff lists ---------- */
.tk-mod { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 4px auto; padding: 6px 10px 6px 8px; max-width: min(92%, 440px); text-align: left; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-soft); color: var(--text-soft); }
.tk-mod .mod-ico { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--primary-light); color: var(--primary-dark); }
.tk-mod .mod-txt { min-width: 0; flex: 1; font-size: 12px; line-height: 1.35; }
.tk-mod .mod-txt b { color: var(--text); }
.tk-mod .mod-txt small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--text-soft); overflow-wrap: anywhere; }
.tk-mod.mod-ban, .tk-mod.mod-kick { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.tk-mod.mod-ban .mod-ico, .tk-mod.mod-kick .mod-ico { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.tk-mod.mod-mute .mod-ico, .tk-mod.mod-warn .mod-ico { background: color-mix(in srgb, #e0a020 18%, transparent); color: #b9770e; }
.tk-mod.mod-unmute .mod-ico, .tk-mod.mod-unban .mod-ico { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.mod-lift { flex: none; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--primary); background: var(--surface); color: var(--primary-dark); font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.mod-lift:hover { background: var(--primary); color: var(--on-primary, #fff); }
.mod-lbl { display: block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.mod-lbl span { font-weight: 500; color: var(--text-soft); }
.mod-lbl select, .mod-lbl textarea { display: block; width: 100%; margin-top: 6px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-soft); color: var(--text); font: inherit; font-size: 14px; resize: vertical; }
.uc-state { margin: 0 0 8px; padding: 7px 10px; border-radius: 10px; font-size: 12px; color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); overflow-wrap: anywhere; }
.profile-staff { margin: 0 16px 18px; }
.profile-staff[hidden] { display: none; }
.su-chips { display: flex; gap: 8px; margin: 4px 0 12px; }
.su-chips button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.su-chips button.on { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
.tk-meta .v-badge { margin-left: -2px; }
