/* ASCENDOJO CHAT — reskin of kr1ptx-tools/chat (text channels) + the
   embedded ?mode=voice voice-room page onto the shell's own glass/Dojo
   tokens (tokens.css, app.css). Layout/behavior only — color, radius,
   type, blur all come from shared design tokens, same as battle.css.
   Scoped under [data-dojo="trading"] (set on .chat-shell below) so
   --dojo-accent resolves to the Trading Dojo's orange, matching every
   other tool in this Dojo. */

/* Full-bleed page wrapper — deliberately NOT .wrap/.section (that pattern
   caps content at 1180px and adds huge vertical section padding, meant
   for marketing/text content; it's why Chat used to read as a small
   centered card with dead space around it). Chat is an Operate-mode tool
   like Battle, so it gets the whole width and almost the whole height
   below the sticky shell nav instead. */
.chat-page {
  padding: 20px clamp(16px, 3vw, 40px) 28px;
}
.chat-shell {
  position: relative;
  /* --shell-nav-h isn't a real token (the nav has no fixed height, just
     18px vertical padding around its content) — 76px is that rendered
     height with a couple of px to spare; the rest of the subtraction is
     this wrapper's own top+bottom padding above. */
  height: calc(100dvh - 76px - 48px);
  min-height: 560px;
  display: flex;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--shell-bg-raised);
  box-shadow: var(--glass-shadow);
}

/* ── Sidebar ── */
.chat-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--shell-bg);
  border-right: 1px solid var(--shell-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-ascend);
  z-index: 20;
}
.chat-sidebar__head {
  height: 64px;
  border-bottom: 1px solid var(--shell-border);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--shell-ink);
  flex-shrink: 0;
}
.chat-sidebar__head svg {
  width: 18px;
  height: 18px;
  color: var(--dojo-accent);
}
.chat-close-sidebar {
  display: none;
  margin-left: auto;
  color: var(--shell-ink-faint);
  background: none;
  border: none;
  cursor: pointer;
}
.chat-close-sidebar svg {
  width: 18px;
  height: 18px;
}

.chat-channels {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}
.chat-channel-label {
  font-size: 10px;
  color: var(--shell-ink-faint);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 20px 0 8px;
  padding-left: 8px;
}
.chat-channel-label:first-child {
  margin-top: 0;
}
.chat-channel {
  padding: 9px 10px;
  margin-bottom: 3px;
  cursor: pointer;
  border-radius: var(--r-sm);
  color: var(--shell-ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 500;
  transition: 0.15s;
  border: 1px solid transparent;
  gap: 6px;
}
.chat-channel:hover {
  color: var(--shell-ink);
  background: var(--shell-surface);
}
.chat-channel.active {
  background: var(--dojo-accent-soft);
  color: var(--dojo-accent);
  border-color: var(--dojo-accent);
  font-weight: 600;
}
.chat-channel-close {
  color: var(--shell-ink-faint);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}
.chat-channel-close:hover {
  color: var(--state-danger);
  background: rgba(224, 96, 90, 0.12);
}

.chat-user-panel {
  padding: 14px 18px;
  border-top: 1px solid var(--shell-border);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--shell-border-strong);
  background: var(--shell-surface);
  flex-shrink: 0;
}
.chat-user-panel__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chat-user-panel__name {
  font-size: 12.5px;
  color: var(--shell-ink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-user-panel__status {
  color: var(--shell-ink-faint);
  font-weight: 500;
  font-size: 10px;
  margin-top: 1px;
  text-transform: uppercase;
}

/* ── Main column ── */
.chat-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
/* Backdrop image slot — sits behind the header/messages/input as the
   first child of .chat-main, so every later sibling (all of which have
   their own background or are opaque) naturally paints over it in normal
   stacking order; only .chat-messages itself is transparent, letting the
   art show through faintly in the gaps between bubbles. Same
   onerror/is-missing contract as the rest of the app: no image yet, no
   broken-image box, nothing to lay out around it. */
.chat-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, black 30%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, black 30%, transparent 88%);
  pointer-events: none;
}
.chat-header {
  height: 64px;
  border-bottom: 1px solid var(--shell-border);
  display: flex;
  align-items: center;
  padding: 0 22px;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.015);
  flex-shrink: 0;
}
.chat-header__title {
  font-weight: 600;
  color: var(--shell-ink);
  font-size: 13px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.chat-status-dot {
  width: 6px;
  height: 6px;
  background: var(--dojo-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--dojo-accent);
}
.chat-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--shell-ink);
  cursor: pointer;
  margin-right: 12px;
}
.chat-menu-btn svg {
  width: 20px;
  height: 20px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overscroll-behavior-y: contain;
}
.chat-load-more {
  display: none;
  text-align: center;
  margin-bottom: 6px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}
.chat-msg.self {
  align-self: flex-end;
  align-items: flex-end;
}
.chat-msg.other {
  align-self: flex-start;
  align-items: flex-start;
}
.chat-msg-meta {
  font-size: 10px;
  color: var(--shell-ink-faint);
  margin-bottom: 5px;
  display: flex;
  gap: 7px;
  align-items: center;
  font-weight: 500;
  font-family: var(--font-mono);
}
.chat-avatar-sm {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--shell-border-strong);
  background: var(--shell-surface);
  cursor: pointer;
}
.chat-msg-name {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}
.chat-verified {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--dojo-accent);
  color: var(--dojo-accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-verified svg {
  width: 8px;
  height: 8px;
}

.chat-bubble {
  padding: 11px 15px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
  cursor: pointer;
  color: var(--shell-ink-dim);
}
.chat-msg.self .chat-bubble {
  background: var(--shell-surface-2);
  border: 1px solid var(--shell-border-strong);
  border-bottom-right-radius: 4px;
}
.chat-msg.other .chat-bubble {
  background: transparent;
  border: 1px solid var(--shell-border);
  border-bottom-left-radius: 4px;
}
.chat-bubble.mentioned {
  border-color: var(--dojo-accent);
  background: var(--dojo-accent-soft) !important;
}
.chat-mention {
  color: var(--dojo-accent);
  font-weight: 600;
}
.chat-link {
  color: var(--shell-metal-100);
  text-decoration: underline;
}
.chat-image {
  max-width: 260px;
  max-height: 190px;
  border-radius: var(--r-sm);
  margin-top: 6px;
  border: 1px solid var(--shell-border-strong);
  cursor: pointer;
  display: block;
}
.chat-reply-quote {
  font-size: 11px;
  color: var(--shell-ink-muted);
  border-left: 2px solid var(--dojo-accent);
  padding: 8px 10px;
  margin-bottom: 7px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  width: 100%;
}
.chat-reply-quote b {
  display: block;
  margin-bottom: 2px;
  color: var(--shell-ink-dim);
  font-weight: 600;
}
.chat-reply-quote i {
  font-style: normal;
  color: var(--shell-ink-faint);
  display: block;
}

/* ── Battle-invite card ── */
.chat-invite-card {
  background: var(--shell-surface);
  border: 1px solid var(--dojo-accent);
  border-radius: var(--r-md);
  padding: 14px;
  min-width: 230px;
  font-family: var(--font-mono);
}
.chat-invite-head {
  color: var(--dojo-accent);
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--dojo-accent-soft);
  padding-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chat-invite-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 4px;
  color: var(--shell-ink-muted);
}
.chat-invite-val {
  color: var(--shell-ink);
  font-weight: 600;
}
.chat-invite-code {
  font-size: 22px;
  font-weight: 700;
  color: var(--shell-ink);
  text-align: center;
  letter-spacing: 3px;
  margin: 10px 0;
  user-select: all;
}

/* ── Reply bar / input ── */
.chat-reply-bar {
  background: var(--shell-surface);
  padding: 10px 22px;
  font-size: 11px;
  color: var(--shell-ink-muted);
  border-top: 1px solid var(--shell-border);
  display: none;
  justify-content: space-between;
  align-items: center;
}
.chat-reply-bar b {
  color: var(--shell-ink);
  font-weight: 600;
}
.chat-reply-bar i {
  color: var(--shell-ink-faint);
  font-style: normal;
  display: block;
  margin-top: 1px;
}
.chat-cancel-reply {
  cursor: pointer;
  color: var(--state-danger);
  font-size: 16px;
  padding: 4px;
}

.chat-input-area {
  padding: 14px 18px;
  background: var(--shell-bg-raised);
  border-top: 1px solid var(--shell-border);
  position: relative;
  flex-shrink: 0;
}
.chat-input-wrap {
  display: flex;
  gap: 10px;
  background: var(--shell-surface);
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--shell-border-strong);
  border-radius: var(--r-pill);
  align-items: center;
}
.chat-input-wrap:focus-within {
  border-color: var(--dojo-accent);
  box-shadow: 0 0 0 3px var(--dojo-accent-soft);
}
.chat-input {
  border: none;
  background: transparent;
  flex: 1;
  color: var(--shell-ink);
  outline: none;
  font-size: 14px;
  font-family: var(--font-body);
}
.chat-attach-btn {
  background: none;
  border: none;
  color: var(--shell-ink-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.chat-attach-btn:hover {
  color: var(--shell-ink);
}
.chat-attach-btn svg {
  width: 19px;
  height: 19px;
}
.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--dojo-accent);
  color: var(--dojo-accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-send-btn svg {
  width: 15px;
  height: 15px;
}

.chat-pending-img {
  display: none;
  position: absolute;
  bottom: 78px;
  left: 18px;
  background: var(--shell-surface-2);
  padding: 7px;
  border-radius: var(--r-md);
  border: 1px solid var(--shell-border-strong);
  box-shadow: var(--shadow-md);
}
.chat-pending-img img {
  max-height: 90px;
  border-radius: var(--r-sm);
  display: block;
}
.chat-pending-img button {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--shell-surface);
  border: 1px solid var(--shell-border-strong);
  color: var(--shell-ink);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
}

/* Battle-invite compose form (arena channel only) */
.chat-invite-form {
  display: none;
  flex-direction: column;
  gap: 8px;
}
.chat-invite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.chat-invite-form .field {
  margin: 0;
}

/* ── Overlays scoped to the chat view (not the shell's global modal
   system — these only exist while chat itself is mounted) ── */
.chat-overlay {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: rgba(3, 3, 3, 0.7);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.chat-overlay.show {
  display: flex;
}
.chat-popup {
  background: var(--shell-bg-raised);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
  width: 100%;
  max-width: 300px;
  padding: 24px;
  text-align: center;
  position: relative;
}
.chat-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--shell-ink-faint);
  cursor: pointer;
}
.chat-menu-list {
  width: 190px;
  background: var(--shell-bg-raised);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.chat-menu-list button {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--shell-ink-dim);
  padding: 12px;
  font-size: 13px;
  font-family: var(--font-body);
  text-align: center;
  cursor: pointer;
  border-bottom: 1px solid var(--shell-border);
}
.chat-menu-list button:last-child {
  border-bottom: none;
}
.chat-menu-list button:hover {
  background: var(--shell-surface);
}
.chat-menu-list button.danger {
  color: var(--state-danger);
}

.chat-profile-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--shell-border-strong);
  background: var(--shell-surface);
  margin: 0 auto 14px;
}
.chat-profile-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.chat-profile-bio {
  font-size: 12px;
  color: var(--shell-ink-faint);
  margin-bottom: 18px;
  line-height: 1.5;
}

.chat-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(2, 2, 2, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.chat-image-viewer.show {
  display: flex;
}
.chat-image-viewer img {
  max-width: 90%;
  max-height: 78%;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.chat-image-viewer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--shell-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

@media (max-width: 860px) {
  .chat-page {
    padding: 10px 10px 16px;
  }
  .chat-shell {
    height: calc(100dvh - 76px - 26px);
    border-radius: var(--r-md);
  }
  .chat-sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transform: translateX(-100%);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.6);
  }
  .chat-sidebar.open {
    transform: translateX(0);
  }
  .chat-menu-btn {
    display: flex;
    align-items: center;
  }
  .chat-close-sidebar {
    display: block;
  }
}

/* ===== VOICE PANEL (inside the chat shell, replaces the messages area
   while the "Voice" channel is active) ===== */
.chat-voice-panel {
  position: relative;
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.vp-online-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--shell-ink-faint);
  border-bottom: 1px solid var(--shell-border);
  flex-shrink: 0;
}
.vp-online-bar svg {
  width: 12px;
  height: 12px;
}
.vp-online-bar span {
  color: var(--shell-ink);
  font-weight: 600;
}
.vp-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  overflow-y: auto;
}
.vp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 680px;
}
.vp-card {
  background: var(--shell-surface);
  border: 1.5px solid var(--shell-border);
  border-radius: var(--r-md);
  padding: 20px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 155px;
  justify-content: center;
}
.vp-card.vp-self {
  border-color: var(--dojo-accent-soft);
}
.vp-card.vp-speaking {
  border-color: var(--accent-green) !important;
  box-shadow: 0 0 24px var(--accent-green-glow);
}
.vp-ring {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
}
.vp-ring::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  transition: all 0.15s;
}
.vp-ring.vp-speaking::before {
  border-color: var(--accent-green);
  animation: vpring 0.9s ease-in-out infinite;
}
@keyframes vpring {
  0% {
    box-shadow: 0 0 0 2px var(--accent-green-glow);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.08);
  }
  100% {
    box-shadow: 0 0 0 2px var(--accent-green-glow);
  }
}
.vp-ring img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--shell-surface-2);
  display: block;
}
.vp-ring .vp-cam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--shell-surface-2);
  display: none;
  z-index: 1;
}
.vp-ring .vp-cam.mirror {
  transform: scaleX(-1);
}
.vp-ring .vp-cam.on {
  display: block;
}
.vp-ring.has-cam img {
  visibility: hidden;
}
.vp-ring.has-cam::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2.5px solid var(--dojo-accent-soft);
  z-index: 2;
  pointer-events: none;
}
.vp-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 15px;
  opacity: 0;
  transition: opacity 0.2s;
}
.vp-card.vp-speaking .vp-bars {
  opacity: 1;
}
.vpbar {
  width: 4px;
  background: var(--accent-green);
  border-radius: 2px;
  min-height: 3px;
  transition: height 0.08s ease;
}
.vp-name {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--shell-ink);
  text-align: center;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vp-name.vp-you {
  color: var(--accent-green);
}
.vp-st {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--shell-ink-faint);
  text-transform: uppercase;
}
.vp-st.vp-muted {
  color: var(--state-danger);
}
.vp-st.vp-live {
  color: var(--accent-green);
}
.vp-mb {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--state-danger);
  border-radius: 50%;
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--shell-surface);
  font-size: 9px;
  z-index: 3;
}
.vp-empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--shell-ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px;
}
.vp-empty .vpbig {
  font-size: 38px;
  filter: grayscale(1) opacity(0.3);
}

.vp-screens {
  width: 100%;
  max-width: 1000px;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}
.vp-screen {
  position: relative;
  background: #000;
  border: 1.5px solid var(--accent-green-glow);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.vp-screen.vp-screen-self {
  border-color: var(--dojo-accent-soft);
}
.vp-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.vp-screen-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid var(--shell-border);
  border-radius: 6px;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--shell-ink);
}
.vp-screen-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}
.vp-screen-self .vp-screen-tag .dot {
  background: var(--dojo-accent);
  box-shadow: 0 0 8px var(--dojo-accent);
}
.vp-screen-fs {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--shell-border-strong);
  background: rgba(0, 0, 0, 0.55);
  color: var(--shell-ink-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.vp-screen-fs svg {
  width: 14px;
  height: 14px;
}

.vp-cbar {
  padding: 16px 24px;
  border-top: 1px solid var(--shell-border);
  background: var(--shell-bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-shrink: 0;
}
.vp-cbtn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--shell-border-strong);
  background: var(--shell-surface);
  color: var(--shell-ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.vp-cbtn svg {
  width: 18px;
  height: 18px;
}
.vp-cbtn:hover {
  background: var(--shell-surface-2);
  color: var(--shell-ink);
}
.vp-cbtn.vp-deaf {
  background: rgba(224, 96, 90, 0.14);
  border-color: var(--state-danger);
  color: var(--state-danger);
}
.vp-cbtn.vp-leavebtn {
  background: rgba(224, 96, 90, 0.12);
  border-color: var(--state-danger);
  color: var(--state-danger);
}
.vp-cbtn.vp-leavebtn:hover {
  background: var(--state-danger);
  color: #fff;
}
.vp-cbtn.vp-cam-on {
  background: var(--dojo-accent-soft);
  border-color: var(--dojo-accent);
  color: var(--dojo-accent);
}
.vp-cbtn.vp-scr-on {
  background: var(--accent-green-soft);
  border-color: var(--accent-green);
  color: var(--accent-green);
}
.vp-mic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--shell-border-strong);
  background: var(--shell-surface);
  color: var(--shell-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.vp-mic svg {
  width: 21px;
  height: 21px;
}
.vp-mic.vp-mic-muted {
  background: rgba(224, 96, 90, 0.14);
  border-color: var(--state-danger);
  color: var(--state-danger);
}
.vp-mic.vp-mic-live {
  background: var(--accent-green-soft);
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 22px var(--accent-green-glow);
}
.vp-cg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.vp-cl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--shell-ink-faint);
  letter-spacing: 0.04em;
}
.vp-micl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}
@media (max-width: 500px) {
  .vp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vp-screens {
    grid-template-columns: 1fr;
  }
}
