/* ../plugin/src/styles.css */
:root {
  --bg-rail: #08090b;
  --bg-sidebar: #0c0e12;
  --bg-window: #101216;
  --bg-card: #171a20;
  --bg-elevated: #1b1f26;
  --bg-input: #0a0b0e;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --border-default: #20242c;
  --border-muted: #171a20;
  --border-strong: #2a2f39;
  --text-primary: #e9ebef;
  --text-secondary: #c2c6cf;
  --text-muted: #868b95;
  --accent: #e9ebef;
  --accent-hover: #ffffff;
  --accent-fill: #4a5466;
  --accent-fill-hover: #5a6577;
  --accent-fill-text: #e9ebef;
  --accent-fill-border: rgba(255, 255, 255, 0.14);
  --accent-fill-lift: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
  --surface-bg: #0b0c0e;
  --surface-border: rgba(255, 255, 255, 0.1);
  --surface-rule: rgba(255, 255, 255, 0.08);
  --surface-radius: 6px;
  --surface-row-radius: 4px;
  --surface-padding: 6px;
  --control-radius: 8px;
  --surface-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.85), 0 4px 12px -2px rgba(0, 0, 0, 0.6);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-7: 14px;
  --space-8: 16px;
  --space-9: 24px;
  --space-10: 32px;
  --z-raised: 10;
  --z-sticky: 20;
  --z-stage: 40;
  --z-dialog: 100;
  --z-menu: 110;
  --z-popover: 1000;
  --z-drag: 1010;
  --z-notice: 1100;
  --z-profile: 1200;
  --z-blocking: 11000;
  --presence-online: #57a773;
  --presence-idle: #b8933d;
  --presence-offline: #3f3f3f;
  --danger: #ff4d57;
  --menu-bg: var(--surface-bg);
  --menu-hover: var(--bg-hover);
  --menu-border: var(--surface-border);
  --menu-rule: var(--surface-rule);
  --menu-text: var(--text-secondary);
  --menu-text-strong: var(--text-primary);
  --menu-text-muted: var(--text-muted);
  --menu-danger: var(--danger);
  --menu-danger-hover: rgba(255, 77, 87, 0.14);
  --menu-radius: var(--surface-radius);
  --menu-padding: var(--surface-padding);
  --menu-row-radius: var(--surface-row-radius);
  --menu-shadow: var(--surface-shadow);
  --font-sans:
    "gg sans",
    "ggsans",
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  --font-mono:
    "JetBrains Mono",
    "SF Mono",
    Menlo,
    Monaco,
    Consolas,
    monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg-window);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}
.app {
  display: flex;
  height: 100vh;
}
.workspace {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr);
}
.workspace > .header-slot > .channel-header {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
}
.workspace > .main {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
}
.workspace > .members-slot > .members,
.workspace > .members-slot > .message-search-results {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
}
.rail {
  width: 44px;
  flex: none;
  background: var(--bg-window);
  border-right: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: var(--space-2);
}
.rail button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.rail button:hover {
  background: var(--bg-card);
  color: var(--text-secondary);
}
.rail button[aria-current=true] {
  background: var(--bg-card);
  color: var(--text-primary);
}
.rail .divider {
  width: 20px;
  height: 1px;
  background: var(--border-muted);
  margin: 4px 0;
}
.panel {
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-muted);
}
.panel-top {
  flex: 1;
  min-height: 0;
  display: flex;
}
.spaces {
  width: 68px;
  flex: none;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: var(--space-3);
  overflow-y: auto;
}
.spaces::-webkit-scrollbar {
  width: 0;
}
.offline-veil {
  position: fixed;
  inset: 0;
  z-index: var(--z-blocking);
  display: grid;
  place-items: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  cursor: wait;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  background: rgba(5, 6, 10, 0.86);
  backdrop-filter: blur(30px) saturate(0.65) !important;
  -webkit-backdrop-filter: blur(30px) saturate(0.65) !important;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.offline-veil.is-on {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transition: opacity 220ms ease;
}
.offline-veil-what {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  transform: translateY(6px);
  transition: transform 260ms ease;
}
.offline-veil.is-on .offline-veil-what {
  transform: translateY(0);
}
.offline-veil-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: var(--text-primary);
  filter: drop-shadow(0 0 18px rgb(255 255 255 / 0.12));
}
.offline-veil-logo::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgb(255 255 255 / 0.16);
  border-top-color: var(--text-primary);
  border-right-color: rgb(255 255 255 / 0.52);
  border-radius: 50%;
  animation: offline-spin 1.05s linear infinite;
}
.offline-veil-logo::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 50%;
}
.offline-veil-logo svg {
  position: relative;
  z-index: 1;
  animation: offline-logo-pulse 1.8s ease-in-out infinite;
}
.offline-veil-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
@keyframes offline-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes offline-logo-pulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
.voice-person[draggable=true] {
  cursor: grab;
}
.voice-person.is-dragging {
  opacity: 0.4;
}
.voice-group.is-drop-target {
  outline: 1px dashed var(--border-strong);
  outline-offset: -1px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.person-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.person-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
}
.person-row:hover {
  background: var(--bg-card);
}
.person-row-what {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.person-row-name {
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.person-row-display-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person-row-name .member-owner,
.person-row-name .member-admin {
  margin-left: 0;
}
.person-row:hover .member-owner {
  color: #f4c457;
  transform: scale(1.08);
}
.person-row-handle {
  font-size: 11px;
  color: var(--text-muted);
}
.person-row-note {
  overflow: hidden;
  max-width: 46%;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-role {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.member-role.is-owner {
  color: #f0b232;
}
.member-more {
  flex: none;
  opacity: 0;
  color: var(--text-muted);
  transition: opacity 120ms ease, color 120ms ease;
}
.person-row:hover .member-more,
.member-more:focus-visible {
  opacity: 1;
}
.member-more:hover {
  color: var(--text-primary);
}
.server-people {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  max-height: 260px;
  overflow-y: auto;
}
.server-person {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 6px 8px;
  border-radius: var(--radius-md);
}
.server-person:hover {
  background: var(--bg-card);
}
.server-person-what {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.server-person-name {
  font-size: 13px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.server-person-handle,
.server-person-detail {
  font-size: 11px;
  color: var(--text-muted);
}
.server-person-detail {
  flex: none;
}
.server-invite-row {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.server-invite-row .dropdown {
  flex: 1;
  min-width: 0;
}
.invite-card {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  max-width: 460px;
}
.invite-card-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--bg-window);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
}
.invite-card-what {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.invite-card-lede {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.invite-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invite-card-detail {
  font-size: 12px;
  color: var(--text-muted);
}
.invite-card-join {
  flex: none;
}
.invite-card-state {
  flex: none;
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 4px;
}
.invite-card.is-spent .invite-card-icon {
  opacity: 0.55;
}
.space-icon-row {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}
.space-icon-preview {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
}
.space-icon-actions {
  display: flex;
  gap: var(--space-4);
}
.space-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.space {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.space:hover,
.space.is-menu-active {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.space.is-menu-active {
  background: rgba(255, 255, 255, 0.05);
}
.space-item-wrapper:has(.space.is-menu-active) .space-indicator-bar {
  height: 20px !important;
  opacity: 1 !important;
}
.space[aria-current=true] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.space.is-face {
  border-color: var(--border-default);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
}
.space.is-face:hover {
  border-color: var(--border-strong);
}
.space.is-face .avatar {
  border-color: transparent;
  border-radius: var(--radius-lg);
  transition: border-radius 140ms ease;
}
.space.is-face:hover .avatar {
  border-radius: var(--radius-lg);
}
.space.is-face .count {
  right: -3px;
  bottom: -3px;
  box-sizing: border-box;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-md);
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
}
.space-item-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.space-indicator {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  z-index: 2;
}
.space-indicator-bar {
  display: block;
  width: 4px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  background-color: #ffffff;
  height: 0px;
  opacity: 0;
  transform-origin: center;
  will-change: transform, opacity;
  transition:
    height 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.space-item-wrapper.is-unread .space-indicator-bar {
  height: 8px;
  opacity: 1;
}
.space-item-wrapper:hover .space-indicator-bar {
  height: 20px !important;
  opacity: 1 !important;
}
.space-item-wrapper.is-active .space-indicator-bar {
  height: 40px !important;
  opacity: 1 !important;
}
.space-item-wrapper.is-active.is-activating .space-indicator-bar {
  animation: space-indicator-activate 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes space-indicator-activate {
  from {
    transform: scaleY(0.5);
    opacity: 0.82;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .space-item-wrapper.is-active.is-activating .space-indicator-bar {
    animation: none;
  }
}
.space::before {
  display: none;
}
.space-tooltip-popover {
  position: fixed;
  z-index: 1000;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
  min-width: 130px;
  animation: spaceTooltipFadeIn 0.12s ease;
}
@keyframes spaceTooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.space-tooltip-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}
.space-tooltip-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: 12px;
  color: #94a3b8;
}
.space-tooltip-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}
.space-tooltip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.space-tooltip-dot.online {
  background: #23a55a;
}
.space-tooltip-dot.total {
  background: #b5bac1;
}
.space .count {
  position: absolute;
  right: -5px;
  bottom: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--bg-window);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  border: 2px solid var(--bg-sidebar);
  box-sizing: content-box;
}
.space-voice-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  z-index: 5;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #23a55a;
  color: #ffffff;
  border: 2px solid var(--bg-sidebar);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}
.space-voice-badge svg {
  display: block;
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke: none;
}
.spaces .sep {
  width: 30px;
  height: 1px;
  flex: none;
  background: var(--border-default);
  margin: 2px 0;
}
.space.ghost {
  background: transparent;
  border-style: dashed;
  border-color: var(--border-dashed, #2d2d2d);
  color: var(--text-muted);
}
.space.ghost:hover {
  color: var(--text-secondary);
}
.sidebar {
  width: 272px;
  flex: none;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.space-header {
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 14px;
  border-bottom: 1px solid var(--border-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.space-header:hover {
  background: rgba(26, 26, 26, 0.6);
}
.space-header .chev {
  color: var(--text-muted);
  margin-left: auto;
}
button.space-header {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border-muted);
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
button.space-header svg {
  color: var(--text-muted);
  margin-left: auto;
}
.space-menu-catch {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
}
.space-menu {
  position: fixed;
  z-index: calc(var(--z-menu) + 1);
  width: min(232px, calc(100vw - 16px));
  padding: var(--menu-padding);
  border: 1px solid var(--menu-border);
  border-radius: var(--menu-radius);
  background: var(--menu-bg);
  box-shadow: var(--menu-shadow);
  animation: floating-menu-in 90ms cubic-bezier(0.22, 0.8, 0.2, 1);
}
.space-menu.is-context-menu {
  animation: none;
}
.space-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--menu-row-radius);
  background: transparent;
  color: var(--menu-text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.space-menu-item .label {
  flex: 1;
  white-space: nowrap;
}
.space-menu-item .glyph {
  display: grid;
  place-items: center;
  color: var(--menu-text);
}
.space-menu-item:hover,
.space-menu-item:focus-visible {
  outline: none;
  background: var(--menu-hover);
  color: var(--menu-text-strong);
}
.space-menu-item:hover .glyph {
  color: var(--menu-text-strong);
}
.invite-link-row {
  display: flex;
  gap: var(--space-4);
}
.invite-link {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.invite-copy {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.invite-copy:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}
.invite-copy:disabled {
  opacity: 0.5;
  cursor: default;
}
.invite-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.invite-rules .dialog-field {
  margin: 0;
}
.dialog-lede {
  margin: -4px 0 22px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.door {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: 22px 14px 18px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}
.door:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}
.door-glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  color: var(--text-primary);
}
.door:hover .door-glyph {
  border-color: var(--text-muted);
}
.door-title {
  font-size: 14px;
  font-weight: 600;
}
.door-detail {
  font-size: 12.5px;
  color: var(--text-muted);
}
.nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
}
.channel-list-tail {
  flex: 1 0 auto;
  min-height: 32px;
}
.channel-list-tail.drag-over-top {
  position: relative;
}
.channel-list-tail.drag-over-top::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-primary, #ffffff);
  border-radius: 1px;
  pointer-events: none;
}
.section {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 8px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section .add {
  margin-left: auto;
  color: var(--text-muted);
  opacity: 0;
  display: grid;
  place-items: center;
}
.section:hover .add {
  opacity: 1;
}
.row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 34px;
  margin: 1px 0;
  padding: 0 9px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: #949ba4;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}
.row:hover,
.row.is-menu-active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary, #dbdee1);
}
.row[aria-current=true] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #f2f3f5);
}
.row .label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row.unread {
  color: var(--text-primary);
  font-weight: 700;
}
.row {
  position: relative;
}
.row.unread::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 4px;
  height: 8px;
  margin-top: -4px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  background: var(--text-primary);
  animation: unread-pip-in 220ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes unread-pip-in {
  from {
    height: 0;
    margin-top: 0;
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .row.unread::before {
    animation: none;
  }
}
.row.dm {
  height: 46px;
  gap: 11px;
}
.row svg {
  flex: none;
  color: var(--text-muted, #80848e);
  transition: color 110ms ease;
}
.row:hover svg,
.row.is-menu-active svg {
  color: var(--text-secondary, #dbdee1);
}
.row[aria-current=true] svg {
  color: var(--text-primary, #ffffff);
}
.voice-row > svg {
  color: #b5bac1;
}
.voice-row[aria-current=true] {
  background: rgba(255, 255, 255, 0.14);
}
.voice-row[aria-current=true] > svg {
  color: #ffffff;
}
.row.dragging,
.voice-group.dragging,
.space-item-wrapper.dragging,
.category.dragging {
  opacity: 0.4;
}
.row.drag-over-top,
.voice-group.drag-over-top,
.category.drag-over-top,
.space-item-wrapper.drag-over-top {
  position: relative;
}
.row.drag-over-top::before,
.voice-group.drag-over-top::before,
.category.drag-over-top::before,
.space-item-wrapper.drag-over-top::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-primary, #ffffff);
  border-radius: 1px;
  z-index: 10;
  pointer-events: none;
}
.category.drag-into {
  position: relative;
  background: color-mix(in srgb, var(--text-primary, #ffffff) 14%, transparent);
  border-radius: var(--radius-xs);
  box-shadow: inset 2px 0 0 var(--text-primary, #ffffff);
}
.row.drag-over-bottom,
.voice-group.drag-over-bottom,
.category.drag-over-bottom,
.space-item-wrapper.drag-over-bottom {
  position: relative;
}
.row.drag-over-bottom::after,
.voice-group.drag-over-bottom::after,
.category.drag-over-bottom::after,
.space-item-wrapper.drag-over-bottom::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-primary, #ffffff);
  border-radius: 1px;
  z-index: 10;
  pointer-events: none;
}
.badge {
  flex: none;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--bg-window);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}
.avatar {
  flex: none;
  border-radius: 50%;
  background: var(--avatar-bg, var(--bg-card));
  border: 1px solid var(--avatar-border, var(--border-default));
  color: var(--avatar-color, var(--text-secondary));
  display: grid;
  place-items: center;
  font-weight: 600;
  overflow: hidden;
}
.avatar.sm {
  width: 26px;
  height: 26px;
  font-size: 11px;
}
.avatar.dm {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.avatar.md {
  width: 40px;
  height: 40px;
  font-size: 14px;
}
.avatar.lg {
  width: 40px;
  height: 40px;
  font-size: 15px;
}
.presence {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--presence-offline);
}
.presence.online {
  background: var(--presence-online);
}
.presence.idle {
  background: var(--presence-idle);
}
.presence.dnd {
  background: var(--danger);
}
.avatar-wrap {
  position: relative;
  flex: none;
}
.avatar-wrap .presence {
  position: absolute;
  right: 0px;
  bottom: 0px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--bg-sidebar);
  box-sizing: content-box;
}
.members .avatar-wrap .presence,
.avatar-wrap.on-list .presence {
  width: 7.5px;
  height: 7.5px;
  right: 0px;
  bottom: 0px;
  border: 1.5px solid var(--bg-sidebar);
}
.me .avatar-wrap .presence {
  border-color: var(--bg-window);
  width: 8.5px;
  height: 8.5px;
}
.profile-trigger {
  cursor: pointer;
}
.profile-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.profile-trigger.is-profile-open {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
}
.profile-popover {
  position: fixed;
  z-index: 1200;
  width: min(304px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  animation: profile-popover-in 140ms cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes profile-popover-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.profile-popover-cover {
  height: 78px;
  background: color-mix(in srgb, var(--avatar-bg, var(--bg-elevated)) 78%, var(--bg-elevated));
  border-bottom: 1px solid color-mix(in srgb, var(--avatar-border, var(--border-default)) 70%, transparent);
}
.profile-popover-content {
  display: flex;
  flex-direction: column;
  padding: 0 18px 18px;
}
.profile-popover-avatar-wrap {
  position: relative;
  width: max-content;
  margin-top: -42px;
  padding: var(--space-2);
  border-radius: 50%;
  background: var(--bg-card);
}
.profile-popover-avatar.avatar.xl {
  width: 82px;
  height: 82px;
  font-size: 28px;
  box-shadow: 0 0 0 1px var(--border-strong);
}
.profile-popover-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.profile-popover-avatar-wrap > .presence {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--bg-card);
  box-sizing: content-box;
}
.profile-popover-name {
  margin: 12px 0 2px;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-popover-handle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-presence-card {
  position: relative;
  margin-top: 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
}
.profile-presence-current,
.profile-presence-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.profile-presence-current {
  min-height: 46px;
  padding: 0 13px;
  border-radius: inherit;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
}
.profile-presence-current:hover,
.profile-presence-card:focus-within .profile-presence-current {
  background: rgba(255, 255, 255, 0.055);
}
.profile-presence-chevron {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
}
.profile-presence-dot {
  width: 11px;
  height: 11px;
  flex: none;
  border-radius: 50%;
  background: var(--presence-offline);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.profile-presence-dot.online {
  background: var(--presence-online);
}
.profile-presence-dot.idle {
  background: var(--presence-idle);
}
.profile-presence-dot.dnd {
  background: var(--danger);
}
.profile-presence-menu {
  position: absolute;
  left: calc(100% + 8px);
  bottom: 0;
  z-index: 2;
  width: 248px;
  padding: 6px;
  visibility: hidden;
  opacity: 0;
  transform: translateX(-4px) scale(0.985);
  transform-origin: left bottom;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
  transition:
    opacity 120ms ease-out,
    transform 120ms ease-out,
    visibility 120ms;
}
.profile-presence-card:hover .profile-presence-menu,
.profile-presence-card:focus-within .profile-presence-menu,
.profile-presence-card.open .profile-presence-menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(0) scale(1);
}
.profile-presence-option {
  min-height: 48px;
  padding: 7px 9px;
  border-radius: calc(var(--radius-md) - 4px);
  background: transparent;
}
.profile-presence-option:hover,
.profile-presence-option:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
}
.profile-presence-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-presence-copy strong {
  font-size: 13px;
  font-weight: 650;
}
.profile-presence-copy small {
  color: var(--text-muted);
  font-size: 11px;
}
.profile-presence-check {
  margin-left: auto;
  opacity: 0;
  color: var(--text-primary);
}
.profile-presence-option.selected .profile-presence-check {
  opacity: 1;
}
@media (max-width: 680px) {
  .profile-presence-menu {
    left: 0;
    bottom: calc(100% + 7px);
    width: 100%;
    transform-origin: left bottom;
  }
}
.profile-popover-actions {
  display: flex;
  margin-top: 18px;
}
.profile-inline-composer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  padding: 0 7px 0 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  transition: border-color 120ms ease-out, background 120ms ease-out;
}
.profile-inline-composer:focus-within {
  border-color: var(--accent);
  background: var(--bg-window);
}
.profile-inline-input {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  min-width: 0;
  min-height: 40px;
  max-height: 112px;
  padding: 8px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  resize: none;
  overflow-x: hidden;
  overflow-y: hidden;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.profile-inline-input::selection {
  color: transparent;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}
.profile-inline-input::placeholder {
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-inline-input-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  height: 40px;
  overflow: hidden;
}
.profile-inline-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  padding: 8px 0;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.profile-inline-preview-content {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: inherit;
  overflow-wrap: inherit;
}
.profile-inline-caret {
  position: absolute;
  top: 50%;
  left: 0;
  display: none;
  width: 1.5px;
  height: 1.25em;
  border-radius: 1px;
  background: var(--text-primary);
  pointer-events: none;
  transform: translateY(-50%);
  animation: profile-inline-caret-blink 1.05s steps(2, start) infinite;
}
@keyframes profile-inline-caret-blink {
  0%, 48% {
    opacity: 1;
  }
  49%, 100% {
    opacity: 0;
  }
}
.profile-inline-emoji {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 120ms ease-out, color 120ms ease-out;
}
.profile-inline-emoji:hover,
.profile-inline-emoji:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.profile-inline-composer .emoji-popover {
  width: min(438px, calc(100vw - 24px));
  height: auto;
  max-height: var(--profile-emoji-max-height, 474px);
  right: 0;
}
.profile-inline-composer .emoji-picker-body {
  flex: none;
}
.profile-inline-composer .emoji-content {
  max-height: calc(var(--profile-emoji-max-height, 474px) - 58px);
}
.profile-inline-composer.emoji-picker-below .emoji-popover {
  top: calc(100% + 8px);
  bottom: auto;
}
.profile-popover-message {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 120ms ease-out,
    border-color 120ms ease-out,
    transform 120ms ease-out;
}
.profile-popover-message:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.profile-popover-message:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.07);
}
.profile-avatar-interactive {
  cursor: pointer;
  transition: filter 140ms ease, transform 140ms ease;
}
.profile-avatar-interactive:hover,
.profile-avatar-interactive:focus-visible {
  filter: brightness(0.72);
}
.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: var(--space-9);
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  animation: profile-modal-backdrop-in 140ms ease-out;
}
@keyframes profile-modal-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.profile-modal {
  width: min(500px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
  animation: profile-modal-in 160ms cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes profile-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.profile-modal-cover {
  height: 148px;
  background: color-mix(in srgb, var(--avatar-bg, var(--bg-elevated)) 78%, var(--bg-elevated));
  border-bottom: 1px solid color-mix(in srgb, var(--avatar-border, var(--border-default)) 70%, transparent);
}
.profile-modal-content {
  display: flex;
  flex-direction: column;
  padding: 0 30px 30px;
}
.profile-modal-avatar-wrap {
  position: relative;
  width: max-content;
  margin-top: -58px;
  padding: 5px;
  border-radius: 50%;
  background: var(--bg-card);
}
.profile-modal-avatar.avatar.xl {
  width: 112px;
  height: 112px;
  font-size: 40px;
}
.profile-modal-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.profile-modal-avatar-wrap > .presence {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--bg-card);
  box-sizing: content-box;
}
.profile-modal-name {
  margin: 18px 0 3px;
  color: var(--text-primary);
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.profile-modal-handle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}
.profile-modal-message {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 120ms ease-out,
    border-color 120ms ease-out,
    transform 120ms ease-out;
}
.profile-modal-message:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.profile-modal-message:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.07);
}
.profile-popover.is-floating-closing,
.profile-modal-backdrop.is-floating-closing,
.space-menu.is-floating-closing,
.picker-backdrop.is-floating-closing,
.space-tooltip-popover.is-floating-closing,
.voice-stream-popover.is-floating-closing,
.voice-stats-popover.is-floating-closing {
  pointer-events: none !important;
  animation: floating-menu-out 150ms cubic-bezier(0.4, 0, 1, 1) forwards !important;
}
.picker-backdrop.is-floating-closing .dialog {
  animation: floating-panel-out 150ms cubic-bezier(0.4, 0, 1, 1) forwards !important;
}
.profile-modal-backdrop.is-floating-closing,
.picker-backdrop.is-floating-closing {
  animation: floating-backdrop-out 150ms ease-out forwards !important;
}
.profile-modal-backdrop.is-floating-closing .profile-modal {
  animation: floating-panel-out 150ms cubic-bezier(0.4, 0, 1, 1) forwards !important;
}
@keyframes floating-menu-in {
  from {
    opacity: 0;
    transform: translateY(-2px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes floating-menu-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-2px) scale(0.995);
  }
}
@keyframes floating-backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes floating-panel-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-popover,
  .voice-stream-popover,
  .voice-stats-popover {
    animation: none;
  }
  .voice-stream-preview-frame::after,
  .voice-stream-watch {
    transition: none;
  }
  .profile-modal-backdrop,
  .profile-modal {
    animation: none;
  }
  .profile-popover-message {
    transition: none;
  }
  .profile-inline-composer,
  .profile-inline-emoji,
  .profile-inline-caret {
    transition: none;
    animation: none;
  }
}
.me {
  flex: none;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-top: 1px solid var(--border-muted);
  background: var(--bg-window);
}
.identity-profile {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px;
  margin: -4px;
  border-radius: var(--radius-md);
}
.identity-profile:hover {
  background: rgba(255, 255, 255, 0.055);
}
.me .who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  cursor: pointer;
}
.me .name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me .sub-text {
  position: relative;
  height: 15px;
  overflow: hidden;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.2;
}
.me .presence-label,
.me .handle-label {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1), opacity 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.me .presence-label {
  transform: translateY(0);
  opacity: 1;
}
.me .handle-label {
  transform: translateY(100%);
  opacity: 0;
  color: var(--text-secondary);
}
.me .identity-profile:hover .presence-label {
  transform: translateY(-100%);
  opacity: 0;
}
.me .identity-profile:hover .handle-label {
  transform: translateY(0);
  opacity: 1;
}
.me .actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: none;
}
.identity-control {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition:
    background 110ms ease,
    color 110ms ease,
    opacity 110ms ease;
}
.identity-control:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}
.identity-control.is-active {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 16%, transparent);
}
.identity-control.is-active:hover {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 24%, transparent);
}
.identity-control.is-secondary {
  color: var(--text-muted);
}
.identity-control.is-settings {
  color: var(--text-secondary);
}
.icon-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-button:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.main {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-window);
}
.voice-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-window);
}
.stage-header,
.channel-header {
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 16px;
  border-bottom: 1px solid var(--border-muted);
}
.stage-header-glyph,
.channel-header .name svg {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
.stage-header-glyph svg {
  display: block;
}
.stage-header-name,
.channel-header .name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.stage-field {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.stage-tiles {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-content: center;
  padding: var(--stage-padding, 16px);
  gap: var(--stage-gap, 12px);
  grid-template-columns: repeat(var(--stage-columns, 1), var(--stage-tile-width, 240px));
  grid-auto-rows: var(--stage-tile-height, 135px);
}
.stage-tiles.is-three-two-column > .stage-tile:last-child {
  grid-column: 1 / -1;
  width: var(--stage-tile-width, 240px);
  justify-self: center;
}
.stage-field.has-controls .stage-tiles {
  bottom: var(--stage-control-clearance, 96px);
}
.stage-field.is-screen-wall {
  overflow: hidden;
}
.stage-screen-wall {
  position: absolute;
  inset: 0;
  bottom: var(--stage-control-clearance, 0px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 12px;
  padding: 14px;
}
.stage-screen-wall-main {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  background: #060708;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}
.stage-screen-wall-main > .stage-tile {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}
.stage-screen-wall-main > .stage-tile.is-screen,
.stage-screen-wall-main > .stage-tile.is-screen:hover {
  background: #000;
  border-color: transparent;
}
.stage-screen-wall-strip,
.stage-screen-wall-people {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 21vw);
  gap: 9px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 7px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.stage-screen-wall-strip {
  min-height: 0;
  max-height: 126px;
}
.stage-screen-wall-strip .stage-tile {
  width: 100%;
  height: 112px;
  scroll-snap-align: start;
}
.stage-screen-wall-people {
  grid-auto-columns: minmax(138px, 180px);
  max-height: 88px;
}
.stage-screen-wall-people .stage-tile {
  width: 100%;
  height: 76px;
}
.stage-screen-wall-strip .stage-tile-name,
.stage-screen-wall-people .stage-tile-name {
  left: 7px;
  right: 7px;
  bottom: 7px;
  max-width: none;
}
.stage-screen-wall-main .stage-stream-actions {
  opacity: 1;
  transform: none;
}
@media (max-width: 720px) {
  .stage-screen-wall {
    grid-template-rows: minmax(0, 1fr) 94px auto;
    gap: 8px;
    padding: 8px;
  }
  .stage-screen-wall-strip,
  .stage-screen-wall-people {
    gap: 7px;
    grid-auto-columns: minmax(148px, 46vw);
  }
  .stage-screen-wall-strip .stage-tile {
    height: 82px;
  }
  .stage-screen-wall-people {
    grid-auto-columns: minmax(116px, 38vw);
  }
  .stage-screen-wall-people .stage-tile {
    height: 62px;
  }
}
.stage-tile {
  position: relative;
  min-width: 0;
  padding: 0;
  font: inherit;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.stage-tile:hover,
.stage-tile.is-participant-menu-active {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}
.stage-tile:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}
.stage-tile.is-focused {
  border-color: transparent;
}
.stage-tile.is-focused:hover {
  background: var(--bg-card);
  border-color: transparent;
}
.stage-face {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: min(38%, 96px);
  aspect-ratio: 1;
  overflow: hidden;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 120ms ease;
}
.stage-tile.is-focused .stage-face {
  width: min(28%, 168px);
}
.stage-face.is-speaking {
  box-shadow: 0 0 0 2px var(--presence-online);
}
.stage-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--avatar-bg, var(--bg-elevated));
  color: var(--avatar-color, var(--text-secondary));
  font-size: clamp(14px, 2.4vw, 30px);
  font-weight: 600;
}
.stage-face-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.stage-tile-name {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-tile-name:has(.stage-viewers) {
  overflow: visible;
}
.stage-tile-name:has(.stage-viewers) > span:not([class]) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-viewers {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 2px;
  padding-left: 7px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.stage-viewers-list {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
  max-width: 220px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(18, 18, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-weight: 500;
  white-space: nowrap;
  text-align: left;
}
.stage-viewers-list > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-viewers-list > strong {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stage-viewers.is-open .stage-viewers-list {
  display: flex;
}
.stage-tile-pip {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--danger);
}
.stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.stage-video.is-mirrored {
  transform: scaleX(-1);
}
.stage-camera {
  position: absolute;
  inset: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 120ms ease;
}
.stage-camera .stage-video {
  object-fit: contain;
  background: #0a0a0a;
}
.stage-camera.is-speaking {
  box-shadow: inset 0 0 0 2px var(--presence-online);
}
.stage-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
}
.stage-screen .stage-video {
  object-fit: contain;
}
.stage-screen-stopped {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: var(--space-4);
  background: var(--bg-rail);
  text-align: center;
}
.stage-screen-stopped-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 2px;
  border: 1px solid var(--border-default);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-muted);
}
.stage-screen-stopped strong {
  color: var(--text-primary);
  font-size: 13px;
}
.stage-screen-stopped-note {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 11.5px;
}
.stage-screen-watch {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--border-default);
  border-radius: var(--control-radius);
  background: var(--accent-fill);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background 110ms ease, border-color 110ms ease;
}
.stage-screen-watch:hover {
  background: var(--accent-fill-hover);
  border-color: var(--border-strong);
}
.stage-screen-waiting {
  color: var(--text-muted);
}
.stage-stream-actions {
  position: absolute;
  z-index: 6;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(15, 16, 18, 0.68);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px) saturate(1.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.18);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
}
.stage-tile:hover .stage-stream-actions,
.stage-tile:focus-within .stage-stream-actions,
.stage-tile.is-focused .stage-stream-actions {
  opacity: 1;
  transform: translateY(0);
}
.stage-stream-action {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  cursor: pointer;
}
.stage-stream-action:hover,
.stage-stream-action.is-selected {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.stage-stream-action.is-muted {
  color: var(--danger-text, #ff7b82);
}
.stage-stream-action.is-danger {
  color: #fff;
  background: rgba(218, 55, 60, 0.86);
}
.stage-stream-action.is-danger:hover {
  background: rgb(225, 62, 67);
}
.stage-preview-paused {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: var(--space-9);
  background: rgba(4, 4, 5, 0.7);
  color: var(--text-secondary);
  text-align: center;
  pointer-events: none;
}
.is-preview-paused > .stage-video {
  opacity: 0.32;
  filter: brightness(0.62) saturate(0.75);
}
.is-preview-paused > .stage-preview-paused {
  display: flex;
}
.stage-preview-paused strong {
  color: #ffffff;
  font-size: clamp(14px, 1.7vw, 22px);
  font-weight: 750;
  letter-spacing: -0.015em;
}
.stage-preview-paused > span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(11px, 1.15vw, 15px);
  font-weight: 500;
}
.stage-preview-pause-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: 7px;
}
.stage-preview-pause-bar {
  width: clamp(10px, 1.3vw, 17px);
  height: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.26);
}
.stage-tile.is-screen {
  background: #000;
}
.stage-field:has(.stage-tile.is-focused:is(.is-screen, .is-camera)) .stage-tiles {
  inset: 0;
  bottom: 0;
  display: block;
  padding: 0;
}
.stage-field.has-controls:has(.stage-tile.is-focused:is(.is-screen, .is-camera)) .stage-tiles {
  bottom: var(--stage-control-clearance, 96px);
}
.stage-field:has(.stage-tile.is-focused:is(.is-screen, .is-camera)) .stage-tile.is-focused:is(.is-screen, .is-camera) {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
}
.stage-tile.is-focused.is-camera,
.stage-tile.is-focused.is-camera .stage-camera {
  background: #000;
}
.stage-tile.is-focused.is-camera .stage-camera .stage-video {
  object-fit: contain;
}
.stage-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
  text-align: center;
  color: var(--text-muted);
}
.stage-empty-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--text-primary, #f2f3f5);
}
.stage-empty-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary, #f2f3f5);
}
.stage-empty-channel-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary, #f2f3f5);
}
.stage-empty-sub {
  font-size: 14.5px;
  color: var(--text-muted, #949ba4);
  max-width: 380px;
  line-height: 1.4;
  margin-bottom: 4px;
}
.stage-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  height: 42px;
  padding: 0 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default, #3f4147);
  background: var(--bg-card, #2b2d31);
  color: var(--text-primary, #f2f3f5);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition:
    background 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}
.stage-join-btn:hover {
  background: #35373c;
  border-color: var(--border-strong, #4e5058);
  transform: translateY(-1px);
}
.stage-join-btn:active {
  transform: translateY(0);
}
.stage-controls {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-full);
  background: rgba(18, 18, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}
.stage-controls:has(.stage-join-btn) {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.stage-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(24, 24, 27, 0.64);
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 5px 16px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.stage-control[data-tooltip]::after,
.stage-control-notch[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 30;
  width: max-content;
  max-width: 220px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(18, 18, 20, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 0);
}
.stage-control[data-tooltip]::before,
.stage-control-notch[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  z-index: 30;
  width: 9px;
  height: 9px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 18, 20, 0.96);
  opacity: 0;
  transform: translate(-50%, 0) rotate(45deg);
}
.stage-control[data-tooltip]:hover::before,
.stage-control[data-tooltip]:focus-visible::before,
.stage-control-notch[data-tooltip]:hover::before,
.stage-control-notch[data-tooltip]:focus-visible::before {
  opacity: 1;
}
.stage-control[data-tooltip]:hover::after,
.stage-control[data-tooltip]:focus-visible::after,
.stage-control-notch[data-tooltip]:hover::after,
.stage-control-notch[data-tooltip]:focus-visible::after {
  opacity: 1;
}
.stage-expand-corner[data-tooltip]::after {
  left: auto;
  right: 0;
  transform: none;
}
.stage-expand-corner[data-tooltip]::before {
  left: auto;
  right: 17px;
  transform: rotate(45deg);
}
.stage-control:hover {
  background: rgba(45, 45, 50, 0.76);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}
.stage-control.is-sending {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-window);
}
.stage-control.is-sending:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.stage-control.is-busy {
  opacity: 0.6;
  cursor: progress;
}
.stage-control.is-on {
  color: var(--danger);
}
.stage-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  height: 40px;
  padding: 0 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default, #3f4147);
  background: var(--bg-card, #2b2d31);
  color: var(--text-primary, #f2f3f5);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    transform 120ms ease;
}
.stage-join:hover {
  background: #35373c;
  border-color: var(--border-strong, #4e5058);
  transform: translateY(-1px);
}
.stage-join:active {
  transform: translateY(0);
}
.channel-header {
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 18px;
  border-bottom: 1px solid var(--border-muted);
}
.channel-header .name {
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.channel-header .topic {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px solid var(--border-default);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-header-actions {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.header-pins-button.has-unseen::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--bg-window);
  border-radius: 50%;
  background: var(--danger);
  pointer-events: none;
}
.header-members-button {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.header-members-button:hover,
.header-members-button.is-active {
  background: transparent;
  color: var(--text-primary);
}
.header-members-button::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: 180px;
  padding: 5px 8px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-floating, #111214);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -3px);
  transition: opacity 120ms ease, transform 120ms ease;
}
.header-members-button:hover::after,
.header-members-button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.header-members-button[data-tooltip-hidden=true]::after {
  opacity: 0;
  transform: translate(-50%, -3px);
}
.header-update-button,
.header-update-button:hover {
  color: var(--presence-online);
}
.header-update-button:hover {
  background: color-mix(in srgb, var(--presence-online) 16%, transparent);
}
.message-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 32px;
  flex: none;
}
.message-search-scope {
  height: 30px;
  min-width: 42px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--border-default);
  border-right: 0;
  border-radius: 7px 0 0 7px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
}
.message-search-field {
  width: clamp(180px, 20vw, 290px);
  height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid var(--border-default);
  border-radius: 7px;
  background: #101112;
  color: var(--text-muted);
}
.message-search-field > svg {
  flex: none;
}
.message-search-field:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  background: #0c0d0e;
}
.message-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
}
.message-search-field input::placeholder {
  color: var(--text-muted);
}
.message-search-clear {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.message-search-scope-menu,
.message-search-suggestions {
  position: absolute;
  top: 36px;
  z-index: 80;
  display: none;
  padding: 6px;
  border: 1px solid var(--border-default);
  border-radius: 9px;
  background: rgba(14, 15, 16, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.48);
}
.message-search-scope-menu.is-open,
.message-search-suggestions.is-open {
  display: flex;
  flex-direction: column;
}
.message-search-scope-menu {
  left: 0;
  width: 170px;
}
.message-search-suggestions {
  right: 0;
  width: 310px;
  max-height: min(430px, calc(100vh - 80px));
  overflow-y: auto;
}
.message-search-scope-option,
.message-search-suggestion {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.message-search-scope-option {
  min-height: 34px;
  padding: 0 10px;
}
.message-search-scope-option:hover,
.message-search-scope-option.is-selected,
.message-search-suggestion:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}
.message-search-suggestions-title {
  padding: 7px 9px 5px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.message-search-suggestion {
  min-height: 38px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}
.message-search-suggestion > span:last-child {
  color: var(--text-muted);
}
.message-search-suggestion-key {
  color: var(--text-primary) !important;
  font-weight: 650;
}
.message-search-results {
  width: 360px;
  min-width: 320px;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.message-search-results-head {
  min-height: 64px;
  padding: 11px 12px 10px 16px;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.message-search-results-head > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.message-search-results-head strong {
  font-size: 15px;
}
.message-search-results-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 12px;
}
.message-search-count {
  padding: 12px 16px 7px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.message-search-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 8px 10px;
}
.message-search-hit {
  width: 100%;
  padding: 10px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.message-search-hit:hover {
  background: rgba(255, 255, 255, 0.055);
}
.message-search-hit-avatar {
  flex: none;
}
.message-search-hit-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.message-search-hit-meta {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.message-search-hit-meta strong {
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.message-search-hit-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 11px;
}
.message-search-hit-meta time {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 10px;
}
.message-search-hit-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.45;
}
.message-search-state {
  flex: 1;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--text-muted);
  text-align: center;
  font-size: 12px;
}
.message-search-state.is-error {
  color: var(--danger);
}
.message-search-more {
  margin: 0 12px 12px;
  min-height: 34px;
  border: 1px solid var(--border-default);
  border-radius: 7px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.search-target {
  animation: search-target-flash 2.2s ease-out;
}
.pinned-target {
  animation: pinned-target-flash 2.2s ease-out;
}
@keyframes search-target-flash {
  0%, 35% {
    background: rgba(235, 190, 72, 0.16);
  }
  100% {
    background: transparent;
  }
}
@keyframes pinned-target-flash {
  0% {
    background: rgba(92, 108, 255, 0.24);
    box-shadow: inset 3px 0 0 var(--accent);
  }
  45% {
    background: rgba(92, 108, 255, 0.12);
    box-shadow: inset 3px 0 0 var(--accent);
  }
  100% {
    background: transparent;
    box-shadow: inset 0 0 0 transparent;
  }
}
.message-pin-text img,
.message-pin-text video,
.message-pin-text canvas,
.message-pin-text iframe,
.message-pin-text .attachment,
.message-pin-text .link-preview,
.message-pin-text .invite-card {
  max-width: 100%;
  height: auto;
}
.message-pin-text .attachment-image,
.message-pin-text .attachment-video {
  max-width: 100%;
  max-height: 340px;
  margin-top: 4px;
}
.message-pin-text .attachment-image img,
.message-pin-text .attachment-video video {
  max-height: 340px;
}
.message-pin-text pre {
  overflow-x: auto;
}
.message-pins {
  position: absolute;
  top: 60px;
  right: calc(clamp(180px, 20vw, 290px) + 8px);
  z-index: 80;
  width: min(480px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 92px));
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: var(--bg-floating, #111214);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48), 0 2px 8px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: top right;
}
.message-pins.is-arriving {
  animation: message-pins-popover-in 140ms cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes message-pins-popover-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.message-pins-head {
  min-height: 54px;
  padding: 10px 10px 9px 14px;
  border-bottom: 1px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.message-pins-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.message-pins-title-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
}
.message-pins-title strong {
  font-size: 15px;
}
.message-pins-close {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}
.message-pins-close:hover,
.message-pins-close:focus-visible {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.message-pins-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}
.message-pin-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 40px 12px 12px;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
}
.message-pin-item:hover,
.message-pin-item:focus-visible {
  background: rgba(255, 255, 255, 0.055);
}
.message-pin-item:active {
  transform: scale(0.99);
  transition: transform 120ms ease;
}
.message-pin-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  font-size: 14px;
}
.message-pin-content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 520px;
  overflow: hidden;
}
.message-pin-meta {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.message-pin-meta strong {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 14.5px;
}
.message-pin-meta time {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}
.message-pin-text {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  user-select: text;
  overflow-wrap: anywhere;
}
.message-pin-text .twemoji-message {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}
.message-pin-remove {
  position: absolute;
  top: 9px;
  right: 4px;
  width: 26px;
  height: 26px;
  color: var(--text-muted);
  opacity: 0;
}
.message-pin-item:hover .message-pin-remove,
.message-pin-item:focus-within .message-pin-remove {
  opacity: 1;
}
.message-pin-remove:hover,
.message-pin-remove:focus-visible {
  color: var(--danger);
  background: rgba(255, 77, 87, 0.12);
}
.message-pins-state {
  flex: 1;
  min-height: 180px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
}
.message-pins-state strong {
  color: var(--text-secondary);
  font-size: 13px;
}
.message-pins-state-icon {
  margin-bottom: 4px;
  color: var(--accent);
}
@media (max-width: 900px) {
  .channel-header .topic {
    display: none;
  }
  .message-search-field {
    width: 180px;
  }
  .message-search-results {
    width: 320px;
  }
}
.header-call {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.header-call-button {
  height: 30px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.header-call-button:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.call-stage {
  position: relative;
  flex: none;
  padding: 70px 18px 22px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  overflow: hidden;
}
.workspace:has(.call-stage) .channel-header {
  grid-column: 1;
  grid-row: 1;
  position: absolute;
  inset: 0 0 auto;
  z-index: 7;
  border-bottom: 0;
  background: transparent;
}
.workspace:has(.call-stage) .call-duration,
.workspace:has(.call-stage) .call-stage-state {
  top: 56px;
}
.call-stage:has(.stage-tile.is-focused:is(.is-screen, .is-camera)) {
  background: #000;
}
.call-stage.is-unsettled {
  opacity: 0.75;
}
.call-tiles {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.call-tile {
  display: grid;
  place-items: center;
}
.call-face {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 2px transparent, 0 0 0 6px transparent;
  transition: box-shadow 160ms cubic-bezier(0.32, 0.72, 0, 1);
}
.call-face.is-speaking {
  box-shadow: 0 0 0 2px var(--presence-online), 0 0 0 6px color-mix(in srgb, var(--presence-online) 18%, transparent);
}
.call-face.is-empty {
  opacity: 0.35;
}
.call-face.is-ringing::before,
.call-face.is-ringing::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  border: 2px solid var(--presence-online, #23a55a);
  pointer-events: none;
  animation: call-ring-wave 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.call-face.is-ringing::after {
  animation-delay: 0.75s;
}
@keyframes call-ring-wave {
  0% {
    transform: scale(0.98);
    opacity: 0.8;
  }
  50% {
    opacity: 0.45;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .call-face.is-ringing::before,
  .call-face.is-ringing::after {
    animation: none;
    opacity: 0.7;
  }
}
.avatar.xl {
  width: 76px;
  height: 76px;
  font-size: 27px;
}
.call-face-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.call-tile-name {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  max-width: 150px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 2px var(--bg-sidebar);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease-out;
}
.call-tile:hover .call-tile-name {
  opacity: 1;
}
.call-tile-name > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.call-tile.is-waiting .call-tile-name {
  color: var(--text-muted);
  font-weight: 500;
}
.call-pip {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: #ed4245;
  box-shadow: 0 0 0 2.5px var(--bg-sidebar, #121212);
  color: #ffffff;
}
.call-stage-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  height: 42px;
  transition: all 180ms cubic-bezier(0.32, 0.72, 0, 1);
}
.call-duration,
.call-stage-state {
  position: absolute;
  top: 14px;
  left: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.call-stage-control {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 120ms ease-out, color 120ms ease-out;
}
.call-stage-control:hover {
  background: var(--border-strong);
  color: var(--text-primary);
}
.call-stage-control.is-active {
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
  color: var(--danger);
}
.call-stage-control.is-active:hover {
  background: color-mix(in srgb, var(--danger) 24%, transparent);
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
  color: var(--danger);
}
.call-stage-decline {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius-full);
  background: #da373c;
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: background 120ms ease-out, transform 120ms ease-out;
}
.call-stage-decline:hover {
  background: #be2e33;
  transform: translateY(-1px);
}
.call-stage-decline:active {
  transform: translateY(0);
}
.call-stage-join {
  height: 42px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-full);
  background: #23a55a;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: background 120ms ease-out, transform 120ms ease-out;
}
.call-stage-join:hover {
  background: #1f924f;
  transform: translateY(-1px);
}
.call-stage-join:active {
  transform: translateY(0);
}
.call-stage-control.is-leave:hover {
  background: color-mix(in srgb, var(--danger) 18%, transparent);
  border-color: color-mix(in srgb, var(--danger) 32%, transparent);
  color: var(--danger);
}
.call-stage-grip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  cursor: ns-resize;
  display: grid;
  place-items: center;
  touch-action: none;
}
.call-stage-grip::after {
  content: "";
  width: 44px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  opacity: 0;
  transition: opacity 140ms ease-out;
}
.call-stage-grip:hover::after,
.call-stage-grip.is-dragging::after {
  opacity: 1;
}
.call-stage-grip.is-dragging {
  cursor: ns-resize;
}
body:has(.call-stage-grip.is-dragging) {
  user-select: none;
}
.incoming-slot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}
.incoming-call {
  position: fixed;
  top: 12vh;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: max-content;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 28px 20px;
  min-width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(24, 26, 32, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 24px 60px -10px rgba(0, 0, 0, 0.85);
  animation: incoming-pop-in 340ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  cursor: grab;
  touch-action: none;
  user-select: none;
  pointer-events: auto;
}
.incoming-call.is-dragging {
  cursor: grabbing;
  transition: none;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.9);
}
.incoming-call.has-entered {
  animation: none;
}
@keyframes incoming-pop-in {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  70% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .incoming-call {
    animation: none;
  }
}
.incoming-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  flex: none;
}
.incoming-face .avatar {
  width: 100%;
  height: 100%;
  font-size: 30px;
}
.incoming-who {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: none;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.incoming-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.incoming-what {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}
.incoming-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.call-stage-join.is-compact {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #23a55a;
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.call-stage-join.is-compact:hover {
  background: #1d8a4b;
  transform: scale(1.08);
}
.incoming-actions .call-stage-decline {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f23f43;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(242, 63, 67, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.incoming-actions .call-stage-decline:hover {
  background: #d83a3e;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(242, 63, 67, 0.6);
}
.incoming-actions button {
  flex: none;
}
.dm-calling {
  margin-left: auto;
  display: grid;
  place-items: center;
  color: var(--accent);
  animation: dm-calling-pulse 2s ease-in-out infinite;
}
@keyframes dm-calling-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dm-calling {
    animation: none;
  }
}
.voice-group {
  display: flex;
  flex-direction: column;
}
.voice-row .label {
  text-transform: none;
}
.voice-count {
  margin-left: auto;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.voice-group.is-here .voice-row {
  color: var(--text-primary);
}
.voice-group.is-here .voice-count {
  color: var(--presence-online);
}
.voice-person {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 5px 8px 5px 14px;
  margin: 1px 4px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 120ms ease, color 120ms ease;
}
.voice-person:hover,
.voice-person.is-participant-menu-active {
  background-color: var(--bg-hover, rgba(255, 255, 255, 0.05));
  color: var(--text-primary);
}
.voice-person .avatar.sm {
  width: 26px;
  height: 26px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 120ms ease;
}
.voice-person.is-speaking .avatar.sm {
  box-shadow: 0 0 0 2px var(--presence-online);
}
.voice-person.is-speaking .voice-person-name {
  color: var(--text-primary);
  font-weight: 600;
}
.voice-person.is-muted .voice-person-name {
  color: var(--text-muted);
}
.voice-person.is-locally-muted .voice-person-name {
  color: var(--text-muted);
}
.voice-person-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.voice-person-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  flex-shrink: 0;
}
.voice-person:hover .voice-person-status {
  color: var(--text-secondary);
}
.voice-person-camera {
  display: grid;
  place-items: center;
  color: var(--presence-online);
}
.voice-person-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 16px;
  margin-left: auto;
  padding: 0 5px;
  border-radius: var(--radius-xs);
  background: #f23f42;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 2px 8px rgba(242, 63, 66, 0.32);
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.045em;
}
.voice-stream-popover {
  position: fixed;
  z-index: 74;
  animation: profile-popover-in 140ms cubic-bezier(0.32, 0.72, 0, 1);
  width: min(320px, calc(100vw - 16px));
  padding: var(--space-5);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: rgba(24, 24, 27, 0.88);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
}
.voice-stream-preview-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 2px 10px;
}
.voice-stream-preview-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}
.voice-stream-preview-name {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-stream-preview-state {
  color: var(--text-muted);
  font-size: 11.5px;
}
.voice-stream-preview-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #090909;
  cursor: pointer;
}
.voice-stream-preview-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 130ms ease;
  pointer-events: none;
}
.voice-stream-preview-frame:hover::after,
.voice-stream-preview-frame:focus-visible::after {
  opacity: 1;
}
.voice-stream-preview-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.voice-stream-preview-still {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.voice-stream-preview-waiting {
  position: absolute;
  color: var(--text-muted);
  font-size: 12px;
}
.voice-stream-watch {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 130ms ease, transform 130ms cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
.voice-stream-preview-frame:hover .voice-stream-watch,
.voice-stream-preview-frame:focus-visible .voice-stream-watch {
  opacity: 1;
  transform: translateY(0);
}
.nav-note {
  margin: 2px 10px 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}
.voice-panel {
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--bg-window);
  border-top: 1px solid var(--border-muted);
}
.voice-card {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.voice-failure-card {
  background: color-mix(in srgb, var(--danger) 3%, transparent);
}
.voice-status {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-width: 0;
  padding: 13px 14px;
}
.voice-summary {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.voice-state {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  line-height: 17px;
  font-weight: 650;
  color: var(--presence-online);
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-panel.is-connecting .voice-state {
  color: var(--presence-idle);
}
.voice-panel.is-failed .voice-state {
  color: var(--danger);
}
.voice-status-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}
.voice-failure-copy {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 15px;
}
@keyframes voice-dot-pulse {
  0%, 100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
.voice-signal {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
  padding-bottom: 1px;
}
.voice-signal .bar {
  width: 4px;
  border-radius: 1.5px;
  background: var(--border-strong);
}
.voice-signal .bar:nth-child(1) {
  height: 7px;
}
.voice-signal .bar:nth-child(2) {
  height: 12.5px;
}
.voice-signal .bar:nth-child(3) {
  height: 18px;
}
.voice-signal .bar.on {
  background: var(--presence-online);
}
.voice-signal.q-poor .bar.on {
  background: var(--presence-idle);
}
.voice-signal.q-lost .bar,
.voice-signal.q-connecting .bar {
  animation: voice-signal-loading 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.voice-signal.q-connecting .bar:nth-child(1),
.voice-signal.q-lost .bar:nth-child(1) {
  animation-delay: 0s;
}
.voice-signal.q-connecting .bar:nth-child(2),
.voice-signal.q-lost .bar:nth-child(2) {
  animation-delay: 0.18s;
}
.voice-signal.q-connecting .bar:nth-child(3),
.voice-signal.q-lost .bar:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes voice-signal-loading {
  0%, 100% {
    background: var(--border-strong);
    opacity: 0.35;
  }
  40% {
    background: var(--text-secondary);
    opacity: 0.95;
  }
}
.voice-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}
.voice-control {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: background 110ms ease, color 110ms ease;
}
.voice-control:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}
.voice-control.is-muted {
  background: color-mix(in srgb, var(--danger) 20%, transparent);
  color: var(--danger);
}
.voice-control.is-waiting {
  color: var(--text-muted);
  opacity: 0.5;
  animation: voice-searching-fade 1.2s ease-in-out infinite;
}
@keyframes voice-searching-fade {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.7;
  }
}
.voice-control.is-leave:hover {
  background: color-mix(in srgb, var(--danger) 22%, transparent);
  color: var(--danger);
}
.voice-control.is-leave {
  color: var(--text-secondary);
  background: transparent;
  border-color: transparent;
}
.voice-control.is-retry {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}
.voice-media-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  padding: 0 12px 12px;
}
.voice-media-control {
  display: inline-flex;
  min-width: 0;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-secondary);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 110ms ease,
    border-color 110ms ease,
    color 110ms ease;
}
.voice-media-control:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.voice-media-control.is-on {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border-default));
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-card));
  color: var(--text-primary);
}
.voice-media-control.is-busy {
  opacity: 0.5;
  cursor: progress;
}
.voice-where {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  font-size: 12px;
  line-height: 15px;
  text-align: left;
  color: var(--text-secondary);
}
.voice-where-channel {
  font-weight: 500;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-where-space {
  font-weight: 500;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-why {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}
.voice-stack {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.voice-face {
  position: relative;
  display: inline-flex;
}
.voice-face .avatar.sm {
  position: relative;
  width: 28px;
  height: 28px;
  overflow: hidden;
  font-size: 10px;
  border: 2px solid var(--bg-window);
  box-shadow: 0 0 0 1px var(--border-default);
  transition: box-shadow 110ms ease, transform 110ms ease;
}
.voice-face.is-speaking .avatar.sm {
  box-shadow: 0 0 0 2px var(--presence-online);
}
.voice-face.is-muted .avatar.sm,
.voice-face.is-deafened .avatar.sm {
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--danger) 45%, transparent);
}
.voice-face:hover .avatar.sm {
  transform: translateY(-1px);
}
.voice-face::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 180px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-floating, #111214);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  color: var(--text-primary, #f2f3f5);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease, transform 140ms ease;
}
.voice-face:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.voice-face-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.voice-pip {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: #ed4245;
  box-shadow: 0 0 0 2px var(--bg-window, #1e1e1e);
  color: #ffffff;
  z-index: 2;
}
.voice-participant-footer {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 14px 5px;
  border-top: 0;
  background: transparent;
}
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 0 10px;
}
.messages.is-empty-dm {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
body.reaction-picker-open .messages {
  overflow-y: hidden;
  overscroll-behavior: none;
}
.channel-welcome {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 24px 18px;
  margin-bottom: 8px;
  user-select: none;
}
.channel-welcome-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.channel-welcome-icon .glyph {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.channel-welcome-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.25;
}
.channel-welcome-desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted, #94a3b8);
  margin: 0;
  max-width: 760px;
}
.dm-welcome {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 28px;
  padding-bottom: 24px;
  align-self: center;
  align-items: center;
  text-align: center;
}
.dm-welcome-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}
.dm-welcome-avatar-wrap {
  position: relative;
  flex: none;
}
.dm-welcome-avatar.avatar.xl {
  width: 82px;
  height: 82px;
  font-size: 28px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.dm-welcome-avatar-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.dm-welcome-avatar-wrap .presence {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--bg-window);
  box-sizing: content-box;
}
.dm-welcome-identity {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  min-width: 0;
}
.dm-welcome-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
}
.dm-welcome-handle {
  margin: 0;
  color: var(--text-muted, #949ba4);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}
.dm-welcome-separator {
  width: 1px;
  height: 16px;
  background: var(--border-strong, #3f4147);
  opacity: 0.7;
}
.dm-welcome .channel-welcome-desc {
  margin-top: 14px;
}
@media (max-width: 560px) {
  .dm-welcome-profile {
    align-items: center;
  }
  .dm-welcome-avatar.avatar.xl {
    width: 68px;
    height: 68px;
    font-size: 23px;
  }
  .dm-welcome-title {
    font-size: 25px;
  }
  .dm-welcome-avatar-wrap .presence {
    right: -1px;
    bottom: -1px;
  }
}
.day {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  margin: 14px 24px 18px;
}
.day::before,
.day::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-muted);
}
.day span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.group {
  padding: 10px 24px 3px;
  display: flex;
  gap: var(--space-7);
}
.group:hover,
.cont:hover {
  background: rgba(26, 26, 26, 0.35);
}
.group.is-mentioned,
.cont.is-mentioned {
  background: rgba(224, 169, 72, 0.09);
  box-shadow: inset 3px 0 0 #d6a34f;
}
.group.is-mentioned:hover,
.cont.is-mentioned:hover {
  background: rgba(224, 169, 72, 0.14);
}
.group.reaction-picker-open,
.cont.reaction-picker-open {
  background: rgba(26, 26, 26, 0.35);
}
.group.is-menu-active,
.cont.is-menu-active {
  background: rgba(26, 26, 26, 0.35);
}
.group .body {
  min-width: 0;
  flex: 1;
}
.group .meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: 2px;
}
.group .author {
  font-size: 16px;
  font-weight: 600;
}
.group .author:hover,
.group .author.is-menu-active {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.group .time {
  font-size: 12px;
  color: var(--text-muted);
}
.reply-header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-bottom: 4px;
  padding: 2px 0 2px 0;
  cursor: pointer;
  border-radius: 4px;
}
.reply-header:hover {
  background: rgba(255, 255, 255, 0.04);
}
.reply-thread-line {
  flex: none;
  width: 34px;
  height: 12px;
  margin-left: 22px;
  margin-right: 2px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  border-top: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px 0 0 0;
}
.group .reply-header {
  margin-left: calc(-40px - var(--space-7) - 6px);
}
.group:has(.reply-header) .avatar.md {
  align-self: flex-start;
  margin-top: 22px;
}
.reply-avatar {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
  background: #3a3a3a;
  color: #fff;
}
.reply-who {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.reply-snippet {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cont-reply-wrap {
  flex: 1;
  min-width: 0;
}
.cont .reply-thread-line {
  width: 20px;
  margin-left: 2px;
}
.reply-target {
  animation: reply-flash 1500ms ease;
}
@keyframes reply-flash {
  0% {
    background: rgba(88, 101, 242, 0.25);
  }
  100% {
    background: transparent;
  }
}
.uploading-message {
  opacity: 0.92;
}
.uploading-message .meta {
  margin-bottom: 5px;
}
.uploading-message .message-upload-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(380px, 100%);
}
.message-upload-card {
  box-sizing: border-box;
  width: 100%;
  padding: 9px 10px 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.message-upload-file {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.message-upload-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(165, 180, 252, 0.14);
  color: #a5b4fc;
}
.message-upload-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.message-upload-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.message-upload-filename {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-upload-size {
  color: var(--text-muted);
  font-size: 11.5px;
}
.message-upload-progress {
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
}
.message-upload-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent, #4f46e5);
  transition: width 0.12s ease-out;
}
.uploading-caption {
  margin-bottom: 5px;
  color: var(--text-secondary);
}
.message-pin-badge {
  display: inline-grid;
  place-items: center;
  color: var(--text-muted);
  transform: rotate(-28deg);
}
.message-pin-badge svg {
  display: block;
}
.text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  user-select: text;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.markdown-bold {
  font-weight: 700;
}
.markdown-italic {
  font-style: italic;
}
.markdown-underline {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.markdown-strike {
  text-decoration-line: line-through;
}
.markdown-inline-code {
  padding: 0.12em 0.35em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-secondary);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.9em;
  white-space: pre-wrap;
}
.markdown-code-block {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  margin: 8px 0;
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre;
}
.markdown-code-block[data-language]::before {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  content: attr(data-language);
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.markdown-code-block code {
  font: inherit;
}
.markdown-quote {
  display: block;
  box-sizing: border-box;
  margin: 6px 0;
  padding: 2px 12px;
  border-left: 3px solid rgba(255, 255, 255, 0.24);
  color: var(--text-secondary);
}
.text.is-jumbo-emoji {
  line-height: 1;
  padding: 3px 0 2px;
}
.text.is-jumbo-emoji > .emoji-visual,
.text.is-jumbo-emoji > .emoji-visual > .twemoji-message {
  width: 48px;
  height: 48px;
}
.text.is-jumbo-emoji > .emoji-visual {
  font-size: 48px;
  vertical-align: middle;
}
.edited-marker {
  color: var(--text-muted);
  font-size: 0.75em;
  white-space: nowrap;
}
.cont {
  padding: 2px 24px 2px 78px;
  position: relative;
}
.cont .time {
  position: absolute;
  left: 24px;
  width: 40px;
  text-align: right;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 11.5px;
  opacity: 0;
}
.cont:hover .time {
  opacity: 1;
}
.cont .message-pin-badge {
  position: absolute;
  left: 68px;
  top: 5px;
}
.call-notice {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 4px 24px 4px 26px;
  color: var(--text-muted);
  font-size: 14px;
}
.call-notice:hover {
  background: rgba(26, 26, 26, 0.35);
}
.call-notice.is-menu-active {
  background: rgba(26, 26, 26, 0.35);
}
.call-notice.is-live {
  color: var(--text-secondary);
}
.call-notice.is-pin .call-notice-glyph {
  color: var(--text-muted);
}
.pin-notice-link {
  color: var(--text-secondary);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.pin-notice-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}
.call-notice-glyph {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
}
.call-notice.is-live .call-notice-glyph {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}
.call-notice-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.call-notice-who {
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
}
.call-notice-who:hover,
.call-notice-who.is-menu-active {
  color: var(--text-primary);
  text-decoration: underline;
}
.call-notice.is-live .call-notice-who {
  color: var(--text-primary);
}
.call-notice-length {
  flex: none;
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.call-notice .time {
  margin-left: auto;
  flex: none;
}
.block {
  margin-top: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  max-width: 460px;
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.block .glyph {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  flex: none;
}
.message-reactions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.reaction-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1;
  user-select: none;
}
.reaction-pill:hover {
  border-color: #505050;
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.reaction-pill.is-me {
  border-color: #666666;
  background: rgba(240, 240, 240, 0.1);
  color: var(--text-primary);
}
.reaction-pill.reaction-add-pill {
  padding: 3px 7px;
  color: var(--text-muted);
  cursor: pointer;
}
.reaction-pill.reaction-add-pill:hover {
  color: var(--text-primary);
  border-color: #505050;
  background: var(--bg-elevated);
}
.reaction-pill .emoji-visual {
  width: 18px;
  height: 18px;
  font-size: 16px;
}
.reaction-pill .twemoji-message,
.reaction-pill .twemoji-quick {
  width: 18px;
  height: 18px;
}
.reaction-count {
  min-width: 10px;
  font-size: 12px;
  font-weight: 600;
}
.actions-hover .reaction-quick-button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.actions-hover .reaction-quick-button:hover,
.actions-hover .reaction-quick-button:focus-visible {
  outline: none;
  background: var(--bg-card);
}
.actions-hover .reaction-quick-button .emoji-visual,
.actions-hover .reaction-quick-button .twemoji-message,
.actions-hover .reaction-quick-button .twemoji-quick {
  width: 19px;
  height: 19px;
  font-size: 17px;
}
.actions-hover .reaction-more-button {
  width: 26px;
  height: 26px;
}
.actions-hover .message-pin-action.is-active {
  color: var(--accent);
}
.actions-hover .message-pin-action:hover,
.actions-hover .message-pin-action:focus-visible {
  color: var(--accent);
}
.block .kind {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.block .headline {
  font-size: 14.5px;
  color: var(--text-primary);
  margin-top: 1px;
}
.block .open {
  margin-left: auto;
  align-self: center;
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  cursor: pointer;
}
.block .open:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.typing {
  height: 24px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 12.5px;
  color: var(--text-muted);
}
.typing .dots {
  display: inline-flex;
  gap: 3px;
}
.typing .dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: blink 1.4s infinite;
}
.typing .dots i:nth-child(2) {
  animation-delay: 0.2s;
}
.typing .dots i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes blink {
  0%, 60%, 100% {
    opacity: 0.25;
  }
  30% {
    opacity: 1;
  }
}
.composer {
  flex: none;
  min-height: 64px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 18px;
  border-top: 1px solid var(--border-muted);
  background: var(--bg-window);
  position: relative;
}
.composer-reply-bar {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 18px;
  right: 18px;
  margin-bottom: 8px !important;
  z-index: 2;
}
.composer-reply-bar .reply-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 36px;
  padding: 0 12px 0 14px;
  background: var(--bg-elevated, #313338);
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.reply-bar-glyph {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--accent, #5865f2);
}
.reply-bar-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  overflow: hidden;
}
.reply-bar-who {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  flex: none;
}
.reply-bar-who strong {
  font-weight: 600;
  color: var(--text-primary);
}
.reply-bar-snippet {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.reply-bar-close {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.reply-bar-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}
.composer-read-only {
  flex: none;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 10px 18px;
  border-top: 1px solid var(--border-muted);
  background: var(--bg-window);
  color: var(--text-muted);
  font-size: 13px;
}
.composer .field {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
  min-height: 44px;
}
.composer .add-attach,
.composer .emoji-toggle {
  flex: none;
  width: 36px;
  height: 36px;
}
.composer-input-wrap {
  flex: 1;
  min-width: 0;
  height: 32px;
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.composer-input-wrap > textarea {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 32px;
  max-height: 132px;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  outline: none;
  padding: 4px 0;
  resize: none;
  overflow-x: hidden;
  overflow-y: hidden;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.composer-input-wrap > textarea::placeholder {
  color: var(--text-muted);
}
.composer-input-wrap > textarea::selection {
  color: transparent;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}
.composer-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  padding: 4px 0;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.composer-preview-content {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: inherit;
  overflow-wrap: inherit;
}
.composer-preview-caret {
  position: absolute;
  top: 50%;
  left: 0;
  display: none;
  width: 1.5px;
  height: 1.25em;
  border-radius: 1px;
  background: var(--text-primary);
  pointer-events: none;
  transform: translateY(-50%);
  animation: profile-inline-caret-blink 1.05s steps(2, start) infinite;
}
.twemoji-composer {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  object-fit: contain;
  vertical-align: -0.2em;
}
.composer .send {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 0;
  background: var(--accent);
  color: var(--bg-window);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.composer .send:hover {
  background: var(--accent-hover);
}
.emoji-popover {
  position: absolute;
  right: 18px;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: 438px;
  height: 474px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.reaction-emoji-popover {
  position: fixed;
  right: auto;
  bottom: auto;
  width: min(438px, calc(100vw - 16px));
  height: min(474px, calc(100vh - 16px));
  z-index: 1001;
}
.emoji-picker-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 58px;
  flex: none;
  padding: var(--space-6);
  background: var(--bg-card);
}
.emoji-search-wrap {
  flex: 1;
  min-width: 0;
}
.emoji-search {
  width: 100%;
  height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  user-select: text;
}
.emoji-search::placeholder {
  color: var(--text-muted);
}
.emoji-tone-wrap {
  position: relative;
  flex: none;
}
.emoji-tone-toggle {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.emoji-tone-toggle:hover,
.emoji-tone-toggle[aria-expanded=true] {
  background: var(--bg-elevated);
}
.emoji-tone-menu {
  position: absolute;
  top: 38px;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--menu-padding);
  border: 1px solid var(--menu-border);
  border-radius: var(--menu-radius);
  background: var(--menu-bg);
  box-shadow: var(--menu-shadow);
}
.emoji-picker-body {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
  border-top: 1px solid var(--border-muted);
}
.emoji-category-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-height: 0;
  padding: 9px 0;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--bg-window);
  border-right: 1px solid var(--border-muted);
}
.emoji-category-rail::-webkit-scrollbar {
  display: none;
}
.emoji-category,
.emoji-tone {
  width: 30px;
  height: 30px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: grid;
  place-items: center;
  font: inherit;
}
.emoji-category:hover,
.emoji-category.selected,
.emoji-tone:hover,
.emoji-tone.selected {
  background: var(--bg-card);
  color: var(--text-primary);
}
.emoji-tone {
  width: 29px;
  height: 29px;
  font-size: 16px;
}
.emoji-content {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 6px 0;
  background: var(--bg-input);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.emoji-content::-webkit-scrollbar {
  width: 6px;
}
.emoji-content::-webkit-scrollbar-track {
  background: transparent;
}
.emoji-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xs);
}
.emoji-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  justify-items: center;
  min-width: 0;
  width: 100%;
}
.emoji-cell {
  width: 100%;
  max-width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.emoji-cell:hover,
.emoji-cell:focus-visible {
  outline: none;
  background: var(--bg-card);
}
.emoji-section {
  min-width: 0;
  margin-bottom: 10px;
  scroll-margin-top: 2px;
}
.emoji-section-heading {
  position: sticky;
  top: -8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 5px;
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
.emoji-section-icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--text-secondary);
}
.emoji-category-icon {
  width: 18px;
  height: 18px;
}
.emoji-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.08em;
  line-height: 1;
}
.twemoji-picker {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}
.twemoji-tone {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}
.twemoji-inspector {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}
.composer-autocomplete {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  z-index: 50;
  background: #111214;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
  padding: 6px 8px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  box-sizing: border-box;
}
.composer-autocomplete::-webkit-scrollbar {
  width: 5px;
}
.composer-autocomplete::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}
.composer-autocomplete-header {
  padding: 6px 8px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
}
.autocomplete-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  color: #f8fafc;
  transition: background 0.12s ease;
}
.autocomplete-item:hover,
.autocomplete-item.selected {
  background: rgba(255, 255, 255, 0.07);
}
.autocomplete-item .emoji-visual {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.autocomplete-item .twemoji-picker {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.autocomplete-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-align: left;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.autocomplete-item-desc {
  font-size: 12.5px;
  color: #80848e;
  flex-shrink: 0;
}
.twemoji-message,
.twemoji-quick {
  width: 1.3em;
  height: 1.3em;
  vertical-align: middle;
  object-fit: contain;
}
.emoji-fallback {
  display: none;
  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    sans-serif;
  line-height: 1;
}
.emoji-fallback.visible {
  display: inline;
}
.emoji-cell .emoji-fallback {
  font-size: 30px;
}
.emoji-inspector {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  flex: none;
  padding: 0 14px;
  border-top: 1px solid var(--border-muted);
  background: var(--bg-window);
  overflow: hidden;
}
.emoji-inspector-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.emoji-inspector-name,
.emoji-inspector-shortcode {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.emoji-inspector-name {
  color: var(--text-secondary);
  font-size: 13px;
}
.emoji-inspector-shortcode {
  color: var(--text-muted);
  font-size: 11px;
}
.emoji-empty {
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
.emoji-empty-icon {
  font-size: 32px;
}
@media (max-width: 520px) {
  .emoji-popover {
    right: 12px;
    left: 12px;
    width: auto;
    height: min(474px, calc(100vh - 86px));
  }
}
.members {
  width: 248px;
  flex: none;
  background: var(--bg-window);
  border-left: 1px solid var(--border-muted);
  padding: 12px 10px;
  overflow-y: auto;
}
.member {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 44px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s ease;
}
.member:hover {
  background: rgba(255, 255, 255, 0.06);
}
.member.is-menu-active {
  background: rgba(255, 255, 255, 0.1);
}
.member .name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member:hover .name {
  color: var(--text-primary);
}
.member.is-menu-active .name {
  color: var(--text-primary);
}
.member.off .name {
  color: var(--text-muted);
}
.member.off .avatar {
  opacity: 0.55;
}
.member-admin {
  flex: none;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.member-owner {
  flex: none;
  margin-left: auto;
  display: grid;
  place-items: center;
  color: #f0b232;
  transition: color 110ms ease, transform 110ms ease;
}
.member-owner svg {
  display: block;
}
.member:hover .member-owner {
  color: #f4c457;
  transform: scale(1.08);
}
.member.off .member-owner {
  opacity: 0.45;
}
.members .avatar-wrap .presence,
.avatar-wrap.on-list .presence {
  width: 9px;
  height: 9px;
  right: -1px;
  bottom: -1px;
  border: 2px solid var(--bg-sidebar);
}
.members .avatar-wrap .presence.is-typing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 21px;
  height: 11px;
  right: -3px;
  bottom: -2px;
  border-radius: 7px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  animation: member-typing-presence-enter 300ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}
.members .presence.is-typing i {
  display: block;
  width: 3px;
  height: 3px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  animation: member-typing-dot 1.15s ease-in-out infinite;
}
.members .presence.is-typing i:nth-child(2) {
  animation-delay: 140ms;
}
.members .presence.is-typing i:nth-child(3) {
  animation-delay: 280ms;
}
@keyframes member-typing-dot {
  0%, 62%, 100% {
    opacity: 0.32;
    transform: translateY(0);
  }
  28% {
    opacity: 1;
    transform: translateY(-1px);
  }
}
@keyframes member-typing-presence-enter {
  from {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--presence-online);
    color: transparent;
    transform: scale(0.92);
  }
  62% {
    width: 22px;
    height: 12px;
    border-radius: 7px;
    transform: scale(1.03);
  }
  to {
    width: 21px;
    height: 11px;
    border-radius: 7px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    transform: scale(1);
  }
}
.members .avatar-wrap .presence.is-typing-ending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 21px;
  height: 11px;
  right: -3px;
  bottom: -2px;
  border-radius: 7px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  animation: member-typing-presence-exit 300ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform-origin: center;
}
.members .presence.is-typing-ending i {
  animation: none;
  opacity: 0.65;
}
@keyframes member-typing-presence-exit {
  from {
    width: 21px;
    height: 11px;
    border-radius: 7px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    transform: scale(1);
  }
  to {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--presence-online);
    color: transparent;
    transform: scale(0.92);
  }
}
@media (prefers-reduced-motion: reduce) {
  .members .avatar-wrap .presence.is-typing {
    animation: none;
  }
  .members .avatar-wrap .presence.is-typing-ending {
    animation: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--presence-online);
    color: transparent;
  }
  .members .presence.is-typing i {
    animation: none;
    opacity: 0.8;
  }
}
.error {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--danger);
}
.panel-slot,
.header-slot,
.status-slot,
.members-slot,
.pins-slot {
  display: contents;
}
.stage-slot {
  flex: none;
}
html,
body,
#root {
  height: 100%;
  overflow: hidden;
}
#root > .app {
  height: 100%;
}
.notice-slot {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.notice {
  pointer-events: auto;
  position: relative;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.4;
  max-width: 540px;
  min-width: 260px;
  opacity: 0;
  transform: translateY(-40px) scale(0.9);
  transition:
    opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease;
  background: var(--surface-bg, #1e1f22);
  border: 1px solid var(--surface-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--surface-shadow) !important;
}
.notice.on {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: notice-slide-down 360ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.notice-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}
.notice.bad .notice-icon-box {
  background: rgba(255, 77, 87, 0.16);
  color: var(--danger);
}
.notice.info .notice-icon-box {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}
.notice.success .notice-icon-box {
  background: rgba(35, 165, 89, 0.16);
  color: #23a559;
}
.notice.connection .notice-icon-box {
  background: rgba(184, 147, 61, 0.18);
  color: var(--presence-idle);
}
.notice.connection .notice-icon-box svg {
  animation: notice-connection-spin 1.15s linear infinite;
}
@keyframes notice-connection-spin {
  to {
    transform: rotate(360deg);
  }
}
.notice-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.01em;
  padding-right: 4px;
}
.notice .notice-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  margin-left: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}
.notice .notice-dismiss:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.notice.hiding {
  display: flex !important;
  pointer-events: none;
  animation: notice-slide-up 240ms cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}
@keyframes notice-slide-down {
  0% {
    opacity: 0;
    transform: translateY(-40px) scale(0.85);
    filter: blur(8px);
  }
  70% {
    opacity: 1;
    transform: translateY(4px) scale(1.02);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}
@keyframes notice-slide-up {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(0.88);
    filter: blur(8px);
  }
}
.empty-note {
  margin: 6px 9px;
  font-size: 13px;
  color: var(--text-muted);
}
.unsent {
  opacity: 0.55;
}
.unsent-failed {
  opacity: 1;
}
.unsent.unsent-failed .text,
.unsent.unsent-failed .text * {
  color: var(--danger);
}
.unsent.unsent-failed .text .unsent-discard {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}
.unsent.unsent-failed .text .unsent-discard:hover,
.unsent.unsent-failed .text .unsent-discard:hover * {
  color: var(--danger);
}
.unsent.unsent-failed .text .unsent-discard * {
  color: inherit;
}
.auth {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-9);
  overflow-y: auto;
  background:
    radial-gradient(
      60% 50% at 50% 38%,
      rgba(255, 255, 255, 0.045),
      transparent 70%),
    var(--bg-window);
}
.auth-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  background: var(--bg-sidebar);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-9) var(--space-9) var(--space-8);
}
.auth-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.auth-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
}
.auth-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.auth-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--bg-window);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
}
.auth-tab {
  height: 32px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 120ms ease, color 120ms ease;
}
.auth-tab:hover {
  color: var(--text-secondary);
}
.auth-tab.is-active {
  background: var(--bg-card);
  color: var(--text-primary);
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.auth-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.auth-input {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input input {
  width: 100%;
  height: 40px;
  padding: 0 var(--space-6);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  outline: none;
  user-select: text;
  transition: border-color 120ms ease, background 120ms ease;
}
.auth-input input::placeholder {
  color: var(--text-muted);
  opacity: 0.55;
}
.auth-input input:focus {
  border-color: var(--border-strong);
  background: var(--bg-card);
}
.auth-input:has(.auth-adornment) input {
  padding-right: 40px;
}
.auth-adornment {
  position: absolute;
  right: var(--space-3);
  display: grid;
  place-items: center;
}
.auth-reveal {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.auth-reveal:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.auth-status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: calc(var(--space-4) * -1);
  font-size: 12px;
  color: var(--text-muted);
}
.auth-status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}
.auth-status.is-ok .auth-status-dot {
  background: var(--presence-online);
}
.auth-status.is-bad .auth-status-dot {
  background: var(--danger);
}
.auth-status.is-checking .auth-status-dot {
  animation: auth-pulse 1s ease-in-out infinite;
}
@keyframes auth-pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}
.auth-invite:empty {
  display: none;
}
.auth-invite {
  margin-top: calc(var(--space-4) * -1);
  font-size: 12px;
  color: var(--text-secondary);
}
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.auth-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.auth-actions button {
  height: 42px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
}
.auth-actions .primary {
  background: var(--accent);
  color: var(--bg-window);
}
.auth-actions .primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
.auth-actions button:disabled {
  opacity: 0.5;
}
.auth-card .error {
  margin: 0;
  font-size: 12.5px;
  color: var(--danger);
}
.auth-foot {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  color: var(--text-muted);
  font-size: 11.5px;
}
.typing:empty {
  display: block;
}
.empty {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 13.5px;
  text-align: center;
}
.empty-title {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
}
.space::before {
  left: -12px;
}
.picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-dialog);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-9);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: backdrop-fade-in 0.18s ease-out;
}
@keyframes backdrop-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.picker-backdrop.is-settled:not(.is-floating-closing),
.picker-backdrop.is-settled:not(.is-floating-closing) .dialog {
  animation: none !important;
}
.picker {
  width: 100%;
  max-width: 420px;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.picker-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--border-default);
  color: var(--text-muted);
}
.picker-search {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  outline: none;
  user-select: text;
}
.picker-search::placeholder {
  color: var(--text-muted);
}
.picker-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}
.picker-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.picker-row:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.picker-who {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.picker-name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
}
.picker-handle {
  font-size: 12px;
  color: var(--text-muted);
}
.picker-note {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--text-muted);
}
.row.start {
  color: var(--text-muted);
}
.row.start:hover {
  color: var(--text-secondary);
}
.section .add {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}
.nav .section:first-child .add {
  opacity: 1;
}
.section .add:hover {
  color: var(--text-primary);
}
.dialog {
  width: 100%;
  max-width: 430px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: dialog-pop-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dialog-pop-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.dialog-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  padding: var(--space-9) var(--space-9) 0;
}
.dialog-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.dialog-head .icon-button {
  margin: -4px -6px 0 auto;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
}
.dialog-head .icon-button:hover {
  color: var(--text-primary);
}
.dialog-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-8) var(--space-9) var(--space-9);
}
.camera-preview-dialog {
  width: min(42rem, calc(100vw - 32px));
  max-width: 42rem;
}
.dropdown {
  position: relative;
  width: 100%;
}
.dropdown-trigger {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: var(--space-6);
  padding: 0 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.dropdown-trigger:hover,
.dropdown.is-open .dropdown-trigger {
  border-color: var(--border-strong);
  background: var(--bg-card);
}
.dropdown-trigger:disabled {
  cursor: default;
  opacity: 0.55;
}
.dropdown-trigger svg {
  flex: none;
  transition: transform 120ms ease;
}
.dropdown.is-open .dropdown-trigger svg {
  transform: rotate(180deg);
}
.dropdown-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-menu {
  position: fixed;
  z-index: var(--z-menu);
  display: none;
  max-height: 240px;
  overflow-y: auto;
  padding: var(--menu-padding);
  border: 1px solid var(--menu-border);
  border-radius: var(--menu-radius);
  background: var(--menu-bg);
  box-shadow: var(--menu-shadow);
}
.dropdown.is-open .dropdown-menu {
  display: block;
}
.dropdown-option-what {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.dropdown-option-what > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-option-detail {
  font-size: 11px;
  color: var(--text-muted);
}
.dropdown-option {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: var(--space-6);
  padding: 8px 10px;
  border-radius: var(--menu-row-radius);
  color: var(--menu-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.dropdown-option:hover,
.dropdown-option.is-chosen {
  background: var(--menu-hover);
  color: var(--menu-text-strong);
}
.dropdown-radio {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
}
.dropdown-radio.is-on {
  border-color: var(--accent);
}
.dropdown-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.camera-preview-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: auto;
  min-height: 260px;
  max-height: 60vh;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: #080808;
}
.camera-preview-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scaleX(-1);
  background: #080808;
}
.camera-preview-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-9);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}
.camera-preview-status:empty {
  display: none;
}
.camera-preview-status.is-error {
  color: var(--danger);
}
.settings-dialog {
  width: 100%;
  max-width: min(64rem, 100%);
  height: min(86vh, 44rem);
  max-height: 86vh;
  flex-direction: row;
}
.settings-rail {
  flex: none;
  width: clamp(196px, 22%, 248px);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 22px 12px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-default);
}
.settings-space {
  padding: 0 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-tab {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0 10px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  text-align: left;
  transition: background 120ms ease, color 120ms ease;
}
.settings-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}
.settings-tab.is-active {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
}
.settings-pane {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.settings-pane > .dialog-body,
.settings-pane > .dialog-head {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
}
.settings-pane > .dialog-head .icon-button {
  position: absolute;
  top: var(--space-9);
  right: var(--space-9);
  margin: 0;
}
.settings-rail {
  overflow-y: auto;
}
.settings-group {
  padding: 14px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.settings-rail > .settings-tab.is-danger {
  margin-top: auto;
  color: var(--danger);
}
.settings-rail > .settings-tab.is-danger:hover {
  background: rgba(252, 165, 165, 0.1);
  color: var(--danger);
}
.settings-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-9);
  overflow-y: auto;
}
.settings-body .setting-row {
  width: 100%;
}
.settings-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.settings-section-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.settings-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.setting-row {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  min-height: 40px;
}
.setting-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}
.setting-label {
  font-size: 14px;
  color: var(--text-primary);
}
.setting-hint {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}
.setting-control {
  margin-left: auto;
  flex: none;
}
.setting-value {
  font-size: 13px;
  color: var(--text-secondary);
}
.account-identity {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.setting-row.is-toggle {
  cursor: pointer;
  border-radius: var(--radius-md);
  margin: 0 -8px;
  padding: 0 8px;
}
.setting-row.is-toggle:hover .switch {
  border-color: var(--border-strong);
}
.setting-row.is-toggle:hover .switch-knob {
  background: var(--text-secondary);
}
.setting-row.is-toggle:hover .switch.is-on {
  background: var(--accent-hover);
}
.setting-row.is-toggle:focus-visible {
  outline: none;
}
.setting-row.is-toggle:focus-visible .switch {
  border-color: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(240, 240, 240, 0.08);
}
.switch {
  display: block;
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  transition: background 220ms cubic-bezier(0.32, 0.72, 0, 1), border-color 220ms cubic-bezier(0.32, 0.72, 0, 1);
}
.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition:
    transform 220ms cubic-bezier(0.34, 1.4, 0.64, 1),
    background 220ms cubic-bezier(0.32, 0.72, 0, 1),
    width 160ms ease;
}
.setting-row.is-toggle:active .switch-knob {
  width: 18px;
}
.switch.is-on {
  background: var(--accent);
  border-color: var(--accent);
}
.switch.is-on .switch-knob {
  background: var(--bg-window);
  transform: translateX(16px);
}
.slider-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.setting-slider {
  width: 180px;
  accent-color: var(--accent);
}
.slider-value {
  min-width: 42px;
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}
.slider-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
.slider-reset:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.mic-test {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}
.mic-meter {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  overflow: hidden;
}
.mic-meter-fill {
  display: block;
  height: 100%;
  background: var(--presence-online);
  transition: width 60ms linear;
}
.choice-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding: 9px 10px;
  border: 0;
  border-radius: var(--surface-row-radius);
  background: transparent;
  text-align: left;
  transition: background 120ms ease;
}
.choice:hover:not(:disabled) .choice-mark {
  border-color: var(--text-secondary);
}
.choice:hover:not(:disabled) .choice-label {
  color: #ffffff;
}
.choice:disabled {
  opacity: 0.55;
  cursor: default;
}
.choice.is-selected .choice-label {
  color: var(--text-primary);
  font-weight: 600;
}
.choice-mark {
  flex: none;
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  transition: border-color 200ms cubic-bezier(0.32, 0.72, 0, 1);
}
.choice-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--text-secondary);
}
.choice.is-selected .choice-icon {
  color: var(--text-primary);
}
.choice-mark::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--text-primary);
  transform: scale(0);
  transition: transform 220ms cubic-bezier(0.34, 1.5, 0.64, 1);
}
.choice.is-selected .choice-mark::after {
  transform: scale(1);
}
.choice.is-selected .choice-mark {
  border-color: var(--text-primary);
}
.choice-what {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.choice-label {
  font-size: 14.5px;
  color: var(--text-primary);
}
.choice.is-selected .choice-label {
  font-weight: 600;
}
.choice-detail {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
}
.dialog-field {
  margin-bottom: 18px;
}
.dialog-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.dialog-field input {
  width: 100%;
  height: 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font: inherit;
  font-size: 14.5px;
  padding: 0 14px;
  outline: none;
  user-select: text;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.dialog-field input::placeholder {
  color: var(--text-muted);
}
.dialog-field input:focus {
  border-color: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(240, 240, 240, 0.06);
}
.channel-name-control {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 44px;
  padding: 0 8px 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-input);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.channel-name-control:focus-within {
  border-color: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(240, 240, 240, 0.06);
}
.channel-name-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  color: var(--text-muted);
}
.channel-name-icon svg {
  width: 18px;
  height: 18px;
}
.channel-name-control > input.dialog-input,
.channel-name-control > input {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.channel-name-control > input:focus {
  border: 0;
  box-shadow: none;
}
.channel-name-emoji {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: 6px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.channel-name-emoji:hover,
.channel-name-emoji[aria-expanded=true] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.dialog-hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
.checkbox {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.checkbox:hover {
  border-color: var(--border-strong);
}
.checkbox-mark {
  flex: none;
  margin-top: 1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-muted);
  border-radius: var(--radius-xs);
  color: var(--bg-window);
  transition: background 120ms ease, border-color 120ms ease;
}
.checkbox-mark svg {
  opacity: 0;
  transition: opacity 120ms ease;
}
.checkbox.is-on .checkbox-mark {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox.is-on .checkbox-mark svg {
  opacity: 1;
}
.checkbox-what {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.checkbox-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.checkbox-detail {
  font-size: 12px;
  color: var(--text-muted);
}
.dialog-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-9);
}
.dialog-actions button {
  height: 42px;
  padding: 0 var(--space-8);
  border-radius: var(--radius-lg);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}
.camera-preview-dialog .dialog-actions button,
.share-screen-dialog .dialog-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dialog-actions button:disabled {
  opacity: 0.5;
  cursor: default;
}
.dialog-actions .primary {
  border: 0;
  background: var(--accent);
  color: var(--bg-window);
  font-weight: 600;
}
.dialog-actions .primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
.dialog-actions .secondary {
  border: 1px solid var(--border-default, #3f4147);
  background: var(--bg-card, #2b2d31);
  color: var(--text-primary, #f2f3f5);
  font-weight: 600;
}
.dialog-actions .secondary:hover {
  background: #35373c;
  border-color: var(--border-strong, #4e5058);
  color: var(--text-primary, #ffffff);
}
.dialog-actions .danger {
  border: 1px solid rgba(252, 165, 165, 0.25);
  background: rgba(252, 165, 165, 0.08);
  color: var(--danger);
  font-weight: 600;
}
.dialog-actions .danger:hover {
  background: rgba(252, 165, 165, 0.14);
}
.dialog-actions .danger.solid {
  border: 0;
  background: #da373c;
  color: #ffffff;
  font-weight: 600;
}
.dialog-actions .danger.solid:hover:not(:disabled) {
  background: #b82e33;
  color: #ffffff;
}
.dialog-actions .success {
  border: 1px solid rgba(35, 165, 89, 0.25);
  background: rgba(35, 165, 89, 0.12);
  color: #3dd68c;
  font-weight: 600;
}
.dialog-actions .success:hover {
  background: rgba(35, 165, 89, 0.2);
}
.dialog-actions .success.solid {
  border: 0;
  background: #23a559;
  color: #ffffff;
  font-weight: 600;
}
.dialog-actions .success.solid:hover:not(:disabled) {
  background: #1a7f43;
  color: #ffffff;
}
.delete-message-preview,
.pin-message-preview {
  margin: 16px 0 22px;
  padding: 12px 14px;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}
.delete-message-preview .group,
.pin-message-preview .group {
  padding: 0;
  max-width: 100%;
  min-width: 0;
}
.delete-message-preview .group .body,
.pin-message-preview .group .body {
  min-width: 0;
  max-width: 100%;
}
.delete-message-preview .actions-hover,
.pin-message-preview .actions-hover {
  display: none !important;
}
.delete-message-preview .attachment-image,
.delete-message-preview .attachment-video,
.delete-message-preview .link-bare-image,
.delete-message-preview .attachment-readable,
.delete-message-preview .link-card,
.delete-message-preview .link-card--media,
.pin-message-preview .attachment-image,
.pin-message-preview .attachment-video,
.pin-message-preview .link-bare-image,
.pin-message-preview .attachment-readable,
.pin-message-preview .link-card,
.pin-message-preview .link-card--media {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
  margin-top: 8px;
}
.delete-message-preview .attachment-image,
.pin-message-preview .attachment-image {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: auto !important;
  height: auto !important;
  max-height: none !important;
}
.delete-message-preview .attachment-video,
.pin-message-preview .attachment-video {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: auto !important;
  height: auto !important;
  max-height: none !important;
}
.delete-message-preview .link-bare-image,
.pin-message-preview .link-bare-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: auto !important;
  height: auto !important;
  max-height: none !important;
}
.delete-message-preview .attachment-image img,
.delete-message-preview .attachment-video video,
.delete-message-preview .link-bare-image img,
.delete-message-preview video,
.pin-message-preview .attachment-image img,
.pin-message-preview .attachment-video video,
.pin-message-preview .link-bare-image img,
.pin-message-preview video {
  display: block;
  max-height: 340px;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}
.delete-message-preview .link-card,
.pin-message-preview .link-card {
  border-radius: var(--radius-md);
}
.delete-message-preview .link-image,
.pin-message-preview .link-image {
  max-height: 180px;
  overflow: hidden;
}
.delete-message-preview .link-image img,
.pin-message-preview .link-image img {
  max-height: 180px;
  width: 100%;
  object-fit: cover;
}
.delete-message-preview .attachment-code-body,
.pin-message-preview .attachment-code-body {
  max-height: 180px;
  max-width: 100%;
  overflow: auto;
  box-sizing: border-box;
}
.delete-message-preview .text,
.delete-message-preview .link-body,
.delete-message-preview .link-title,
.delete-message-preview .link-description,
.pin-message-preview .text,
.pin-message-preview .link-body,
.pin-message-preview .link-title,
.pin-message-preview .link-description {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.invite-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: 14px;
}
.invite-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 10px 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}
.invite-what {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.invite-note {
  font-size: 13.5px;
  color: var(--text-primary);
}
.invite-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}
.invite-revoke {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.invite-revoke:hover {
  background: rgba(252, 165, 165, 0.1);
  color: var(--danger);
}
.group,
.cont {
  position: relative;
}
.actions-hover {
  position: absolute;
  top: -10px;
  right: 20px;
  display: none;
  gap: 1px;
  padding: var(--space-1);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.group:hover > .actions-hover,
.cont:hover > .actions-hover,
.group.reaction-picker-open > .actions-hover,
.cont.reaction-picker-open > .actions-hover {
  display: flex;
}
.actions-hover .icon-button {
  width: 26px;
  height: 26px;
}
.actions-hover .icon-button.danger:hover {
  background: rgba(252, 165, 165, 0.12);
  color: var(--danger);
}
.edit-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 2px 0 4px;
}
.edit-field {
  width: 100%;
  min-height: 38px;
  max-height: 180px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  padding: 8px 12px;
  outline: none;
  user-select: text;
  resize: none;
  overflow-x: hidden;
  overflow-y: hidden;
  box-sizing: border-box;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.edit-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 2px;
}
.edit-hint-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 11.5px;
  color: #8ab4f8;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: color 110ms ease;
}
.edit-hint-btn:hover {
  color: #b7d2ff;
  text-decoration: underline;
}
.older {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
}
.older.start {
  padding: 14px 0 6px;
}
.staged {
  display: none;
  flex-wrap: wrap;
  gap: var(--space-6);
  width: 100%;
  margin-bottom: 10px;
  max-height: 220px;
  overflow-x: auto;
  padding: 4px 0;
}
.staged.on {
  display: flex;
}
.staged-card {
  position: relative;
  width: 140px;
  border-radius: var(--radius-lg);
  background: var(--bg-card, #16181d);
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.1));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.staged-card:hover {
  border-color: var(--border-strong, rgba(255, 255, 255, 0.2));
}
.staged-preview {
  position: relative;
  width: 100%;
  height: 100px;
  background: #111216;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.staged-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.staged-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(165, 180, 252, 0.15);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.staged-icon-box.pulse {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}
.staged-overlay-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px;
  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.9;
  transition: opacity 0.15s ease;
}
.staged-card:hover .staged-overlay-actions {
  opacity: 1;
}
.staged-action-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-2);
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.staged-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.staged-action-btn.is-active {
  background: rgba(129, 140, 248, 0.28);
  color: #c7d2fe;
}
.staged-action-btn.is-active:hover {
  background: rgba(129, 140, 248, 0.4);
  color: #ffffff;
}
.staged-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}
.staged-card.is-spoiler .staged-preview > img {
  filter: blur(12px);
  transform: scale(1.08);
}
.staged-card.is-spoiler .staged-preview::after {
  content: "SPOILER";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: rgba(15, 16, 22, 0.66);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  pointer-events: none;
}
.staged-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.staged-filename {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staged-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.staged-size {
  color: var(--text-muted, #9ca3af);
}
.staged-type {
  color: #a78bfa;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.attachment-image {
  position: relative;
  margin-top: 8px;
  width: fit-content;
  max-width: min(420px, 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}
.attachment-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 420px;
}
.attachment-image:hover {
  border-color: var(--border-strong);
}
.attachment-image.is-spoiler > img,
.attachment-video.is-spoiler > :not(.spoiler-cover),
.attachment-readable.is-spoiler > :not(.spoiler-cover) {
  filter: blur(18px);
}
.attachment-image.is-spoiler > img {
  transform: scale(1.06);
}
.spoiler-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 16px;
  border: 0;
  border-radius: inherit;
  background: rgba(15, 16, 22, 0.78);
  color: #f8fafc;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease;
}
.spoiler-cover:hover {
  background: rgba(30, 32, 43, 0.86);
}
.spoiler-cover-title {
  font-size: 13px;
  font-weight: 700;
}
.spoiler-cover-hint {
  color: #cbd5e1;
  font-size: 11px;
}
.attachment-video {
  position: relative;
  margin-top: 8px;
  max-width: min(420px, 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.attachment-video:has(.ts-video-player) {
  max-width: 100%;
  border: none;
  background: transparent;
  overflow: visible;
}
.attachment-video.is-spoiler {
  overflow: hidden;
  isolation: isolate;
}
.attachment-video.is-spoiler .ts-video-player,
.attachment-video.is-spoiler .media-hover-actions {
  pointer-events: none;
}
.attachment-video.is-spoiler > .spoiler-cover {
  z-index: 100;
  pointer-events: auto;
}
.attachment-video video:not(.ts-video-element) {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
}
.attachment-failed {
  display: block;
  padding: var(--space-7);
  font-size: 12.5px;
  color: var(--text-muted);
}
.media-hover-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: var(--space-1);
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.attachment-image:hover .media-hover-actions,
.attachment-video:hover .media-hover-actions,
.media-hover-actions:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.media-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition:
    background 0.1s ease,
    color 0.1s ease,
    transform 0.1s ease;
}
.media-action-btn:hover {
  background: var(--border-strong);
  color: var(--text-primary);
  transform: scale(1.04);
}
.attachment-readable {
  position: relative;
  margin-top: 8px;
  max-width: 680px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #131419;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}
.attachment-code-body {
  margin: 0;
  padding: 12px 16px;
  max-height: 340px;
  overflow: auto;
  background: #0d0e12;
  font-family: var(--font-mono, monospace, SFMono-Regular);
  font-size: 12.5px;
  line-height: 1.55;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: max-height 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.attachment-readable.collapsed .attachment-code-body {
  display: none;
}
.attachment-readable.expanded .attachment-code-body {
  max-height: 750px;
}
.attachment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #16181d;
}
.attachment-footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-width: 0;
}
.attachment-toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.attachment-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.attachment-readable.collapsed .attachment-toggle-btn svg {
  transform: rotate(-90deg);
}
.attachment-what {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.attachment-name {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-meta {
  font-size: 11px;
  color: #94a3b8;
}
.attachment-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.attachment-action-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.attachment-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.attachment-more-menu {
  position: absolute;
  bottom: 36px;
  right: 0;
  background: var(--menu-bg);
  border: 1px solid var(--menu-border);
  border-radius: var(--menu-radius);
  padding: var(--menu-padding);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--menu-shadow);
  z-index: 50;
  min-width: 140px;
}
.attachment-more-menu button {
  background: transparent;
  border: 0;
  min-height: 38px;
  padding: 0 10px;
  text-align: left;
  font-size: 12px;
  color: var(--menu-text);
  border-radius: var(--menu-row-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  white-space: nowrap;
}
.attachment-more-menu button:hover {
  background: var(--menu-hover);
  color: var(--menu-text-strong);
}
.syn-tag-bracket {
  color: #f87171;
}
.syn-tag-name {
  color: #f87171;
  font-weight: 500;
}
.syn-attr-name {
  color: #79c0ff;
}
.syn-attr-val {
  color: #7ee787;
}
.syn-doctype {
  color: #f87171;
}
.syn-comment {
  color: #8b949e;
  font-style: italic;
}
.syn-string {
  color: #7ee787;
}
.syn-keyword {
  color: #d2a8ff;
  font-weight: 500;
}
.syn-number {
  color: #ffa657;
}
.minimal-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-9);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: backdrop-fade-in 0.18s ease-out;
  overflow: hidden;
}
.minimal-preview-container {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.minimal-preview-header {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}
.minimal-preview-meta-pill {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  background: rgba(22, 24, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.minimal-preview-filename {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
}
.minimal-preview-subtext {
  font-size: 11.5px;
  color: #94a3b8;
}
.minimal-preview-actions-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 6px;
  border-radius: var(--radius-lg);
  background: rgba(22, 24, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.minimal-action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 0;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.15s ease, color 0.15s ease;
}
.minimal-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.minimal-action-btn.close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
}
.minimal-preview-content {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 56px;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
  box-sizing: border-box;
}
.minimal-preview-image {
  max-width: 86vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: modal-pop-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-drag: none;
}
.minimal-preview-video {
  max-width: 86vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: modal-pop-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: #000;
}
.minimal-preview-content .attachment-code-body {
  width: 800px;
  max-width: 90vw;
  max-height: 75vh;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: modal-pop-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.dialog-preview-text {
  margin: 0;
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  line-height: 1.5;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}
.dialog-preview-image {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  padding: var(--space-8);
}
.text .link {
  color: #8ab4f8;
  text-decoration: none;
  border-bottom: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.text .link:hover,
.text .link:focus-visible {
  color: #b7d2ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.text .mention {
  padding: 0 3px;
  margin: 0 -1px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease;
}
.text .mention:hover {
  background: rgba(255, 255, 255, 0.16);
}
.text .mention.is-me {
  background: rgba(255, 255, 255, 0.18);
  font-weight: 600;
}
.text .mention.is-me:hover {
  background: rgba(255, 255, 255, 0.26);
}
.text .mention:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}
.text .markdown-spoiler {
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.12);
  color: transparent;
  cursor: pointer;
  user-select: none;
  transition: background 120ms ease, color 120ms ease;
}
.text .markdown-spoiler:hover {
  background: rgba(255, 255, 255, 0.18);
}
.text .markdown-spoiler > .emoji-visual,
.text .markdown-spoiler .twemoji-message {
  visibility: hidden;
}
.text .markdown-spoiler.is-revealed {
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  user-select: text;
}
.text .markdown-spoiler.is-revealed > .emoji-visual,
.text .markdown-spoiler.is-revealed .twemoji-message {
  visibility: visible;
}
.link-bare-image {
  position: relative;
  margin-top: 8px;
  max-width: 420px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}
.link-bare-image img {
  display: block;
  width: 100%;
  height: auto;
}
.link-bare-image:hover {
  border-color: var(--border-strong);
}
.link-bare-image .suppress-embed-button {
  z-index: 11;
}
.link-card {
  position: relative;
  display: block;
  margin-top: 8px;
  max-width: min(460px, 100%);
  box-sizing: border-box;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--border-strong);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
}
.link-card--media {
  width: min(100%, 432px);
}
.suppress-embed-button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
  z-index: 10;
}
.link-card:hover .suppress-embed-button {
  opacity: 1;
}
.suppress-embed-button:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.link-card:hover {
  border-color: var(--border-strong);
}
.link-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.link-site {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.link-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  align-self: flex-start;
  overflow-wrap: anywhere;
}
.link-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-description {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.link-image {
  position: relative;
  margin-top: 8px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: var(--bg-inset, rgba(240, 240, 240, 0.04));
}
.link-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.link-image--sized img,
.link-player {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.youtube-embed {
  background: #000;
}
.link-cover {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.link-image.playable .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(13, 13, 13, 0.72);
  border: 1px solid rgba(240, 240, 240, 0.28);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  backdrop-filter: blur(2px);
}
.link-card:hover .link-image.playable .play {
  background: rgba(13, 13, 13, 0.85);
  border-color: var(--text-secondary);
}
.drag-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-9);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: backdrop-fade-in 0.15s ease-out;
  pointer-events: none;
}
.drag-drop-card {
  width: 440px;
  max-width: 90vw;
  background: #16181d;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
  animation: modal-pop-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.drag-drop-card.shift-active {
  border-color: #6366f1;
  background: #191b24;
}
.drag-drop-icon-square {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5b4fc;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.drag-drop-type-badge {
  position: absolute;
  bottom: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: #6366f1;
  padding: 1px 4px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}
.drag-drop-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #16181d;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  animation: badge-pop-in 0.15s ease-out;
}
@keyframes badge-pop-in {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.drag-drop-card.shift-active .drag-drop-icon-square {
  background: rgba(99, 102, 241, 0.18);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.3);
}
.drag-drop-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}
.drag-drop-subtitle {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.45;
  max-width: 320px;
}
.drag-drop-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.drag-drop-pill.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  font-weight: 600;
}
.drag-mouse-follower {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 6px 12px 6px 8px;
  background: rgba(18, 20, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  will-change: transform;
  animation: badge-pop-in 0.15s ease-out;
}
.drag-mouse-follower .drag-drop-icon-square {
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  border-radius: var(--radius-md);
  border-color: rgba(255, 255, 255, 0.15);
}
.drag-mouse-follower .drag-drop-icon-square svg {
  width: 18px;
  height: 18px;
}
.drag-mouse-follower .drag-drop-type-badge {
  font-size: 7.5px;
  padding: 0 3px;
  bottom: 3px;
}
.drag-mouse-follower .drag-drop-count-badge {
  width: 16px;
  height: 16px;
  font-size: 9.5px;
  top: -4px;
  right: -4px;
}
.drag-mouse-filename {
  font-size: 12.5px;
  font-weight: 600;
  color: #f8fafc;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-signal-button {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  align-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  transition: background 110ms ease, border-color 110ms ease;
}
.voice-signal-button::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 30;
  left: 0;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: 220px;
  padding: 6px 8px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-window);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 550;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 100ms ease, transform 100ms ease;
}
.voice-signal-button:hover::after,
.voice-signal-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.voice-signal-button:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: transparent;
}
.voice-stats-popover {
  position: fixed;
  z-index: 74;
  width: 268px;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: var(--space-4);
  animation: profile-popover-in 140ms cubic-bezier(0.32, 0.72, 0, 1);
}
.voice-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.voice-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}
.voice-stat-label {
  color: var(--text-muted);
  font-size: 11.5px;
}
.voice-stat-value {
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.voice-stat-value.is-ok {
  color: var(--presence-online);
}
.voice-stat-value.is-warn {
  color: var(--presence-idle);
}
.voice-stat-value.is-bad {
  color: var(--danger);
}
.voice-stat-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 650;
}
.voice-log-toggle {
  width: 100%;
  margin-top: 10px;
  padding: 6px 0;
  border-radius: var(--control-radius);
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: color 110ms ease, background 110ms ease;
}
.voice-log-toggle:hover {
  color: var(--text-secondary);
  background: var(--bg-window);
}
.voice-log {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  max-height: 168px;
  overflow-y: auto;
  padding: var(--space-4);
  margin: 10px 0 0;
  border-radius: var(--radius-md);
  background: var(--bg-window);
  border: 1px solid var(--border-default);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.45;
  user-select: text;
}
.voice-log-line {
  display: flex;
  gap: var(--space-3);
  color: var(--text-secondary);
}
.voice-log-line.is-error {
  color: var(--danger);
}
.voice-log-at {
  flex: none;
  color: var(--text-muted);
}
.voice-log-text {
  min-width: 0;
  word-break: break-word;
}
.voice-log-empty {
  margin: 0;
  color: var(--text-muted);
}
.voice-log-copy {
  align-self: flex-start;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11px;
}
.voice-log-copy:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}
.category {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: 14px;
  padding: 0 6px 0 2px;
}
.category-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 3px 4px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #949ba4;
  transition: color 110ms ease;
}
.category-name:hover,
.category.is-menu-active .category-name {
  color: var(--text-secondary);
}
.category .add {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: var(--surface-row-radius);
  background: transparent;
  color: var(--text-muted);
  opacity: 0;
  cursor: pointer;
  transition:
    opacity 110ms ease,
    color 110ms ease,
    background 110ms ease;
}
.category:hover .add,
.category .add:focus-visible {
  opacity: 1;
}
.category .add:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.category-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-name svg {
  flex: none;
  transition: transform 140ms ease;
}
.category.is-collapsed .category-name svg {
  transform: rotate(-90deg);
}
.category .add {
  opacity: 0;
  transition: opacity 110ms ease;
}
.category:hover .add,
.category.is-menu-active .add,
.category .add:focus-visible {
  opacity: 1;
}
.space-menu-rule {
  height: 1px;
  margin: var(--space-2) var(--space-4);
  background: var(--menu-rule);
}
.space-menu-item.is-danger {
  color: var(--menu-danger);
}
.space-menu-item.is-danger .glyph {
  color: currentColor;
}
.space-menu-item.is-danger:hover,
.space-menu-item.is-danger:focus-visible {
  background: var(--menu-danger-hover);
  color: #ff6670;
}
.space-menu-item.is-success {
  color: #3dd68c;
}
.space-menu-item.is-success .glyph {
  color: currentColor;
}
.space-menu-item.is-success:hover,
.space-menu-item.is-success:focus-visible {
  background: rgba(35, 165, 89, 0.14);
  color: #3dd68c;
}
.participant-menu-catch {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
}
.participant-context-menu,
.participant-volume-menu {
  position: fixed;
  z-index: calc(var(--z-menu) + 1);
  width: min(232px, calc(100vw - 16px));
  padding: var(--menu-padding);
  border: 1px solid var(--menu-border);
  border-radius: var(--menu-radius);
  background: var(--menu-bg);
  box-shadow: var(--menu-shadow);
}
.participant-context-menu.is-context-menu {
  animation: none;
}
.participant-volume-menu {
  animation: floating-menu-in 90ms cubic-bezier(0.22, 0.8, 0.2, 1);
}
.participant-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--menu-row-radius);
  background: transparent;
  color: var(--menu-text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.participant-menu-item:hover,
.participant-menu-item:focus-visible {
  outline: none;
  background: var(--menu-hover);
  color: var(--menu-text-strong);
}
.participant-menu-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.participant-menu-glyph,
.participant-menu-volume-end {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
  color: var(--menu-text);
}
.participant-menu-volume-value {
  color: var(--menu-text-muted);
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.participant-menu-rule {
  height: 1px;
  margin: var(--space-2) var(--space-4);
  background: var(--menu-rule);
}
.participant-menu-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid #34373d;
  border-radius: var(--radius-xs);
  color: var(--menu-bg);
}
.participant-menu-check svg {
  opacity: 0;
  stroke-width: 3;
}
.participant-menu-check.is-on {
  border-color: #f0f0f0;
  background: #f0f0f0;
}
.participant-menu-check.is-on svg {
  opacity: 1;
}
.participant-volume-menu {
  width: min(276px, calc(100vw - 16px));
  padding: 14px;
}
.participant-volume-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: 12px;
  color: var(--menu-text-strong);
  font-size: 13.5px;
  font-weight: 600;
}
.participant-volume-value {
  color: var(--menu-text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.participant-volume-slider {
  display: block;
  width: 100%;
  margin: 0;
  accent-color: #f0f0f0;
  cursor: pointer;
}
.participant-volume-scale {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  color: #686c73;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.voice-stage-slot {
  display: contents;
}
.stage-control-pair {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.stage-control-notch {
  position: absolute;
  top: -2px;
  right: -4px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 0;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--bg-window, #0d0d0d);
  background: rgba(31, 31, 35, 0.72);
  color: var(--text-secondary, #dbdee1);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  backdrop-filter: blur(10px) saturate(135%);
}
.stage-control-notch:hover {
  background: #35373c;
  color: var(--text-primary, #ffffff);
  transform: scale(1.1);
}
.stage-menu-catch {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
}
.stage-menu {
  position: fixed;
  z-index: calc(var(--z-menu) + 1);
  width: min(260px, calc(100vw - 16px));
  padding: var(--menu-padding);
  border-radius: var(--menu-radius);
  border: 1px solid var(--menu-border);
  background: var(--menu-bg);
  box-shadow: var(--menu-shadow);
  animation: floating-menu-in 90ms cubic-bezier(0.22, 0.8, 0.2, 1);
}
.stage-menu.is-context-menu {
  animation: none;
}
.stage-menu-head {
  padding: 6px 8px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--menu-text-muted);
}
.stage-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: var(--space-5);
  min-height: 46px;
  padding: 9px 10px;
  border: none;
  border-radius: var(--menu-row-radius);
  background: none;
  color: var(--menu-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.stage-menu-item:hover {
  background: var(--menu-hover);
  color: var(--menu-text-strong);
}
.stage-menu-item.is-chosen {
  color: var(--menu-text-strong);
}
.stage-menu-item.is-danger {
  color: var(--danger-text, #ff6b72);
}
.stage-menu-item.is-danger:hover {
  color: #fff;
  background: rgba(218, 55, 60, 0.82);
}
.stage-menu-item.is-disabled {
  cursor: default;
  opacity: 0.5;
}
.stage-menu-item.is-disabled:hover {
  background: none;
}
.stage-menu-label {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  font-size: 13px;
}
.stage-menu-detail {
  font-size: 11.5px;
  color: var(--menu-text-muted);
}
.stage-menu-tick {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--text-primary);
}
.stage-menu-rule {
  height: 1px;
  margin: var(--space-2) var(--space-4);
  background: var(--menu-rule);
}
.stage-menu-note {
  padding: 4px 8px 6px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--menu-text-muted);
}
.stage-menu-title {
  font-size: 14px;
  font-weight: 600;
}
.stage-menu-title,
.stage-menu-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-menu {
  max-height: 60vh;
  overflow-y: auto;
}
.stage-menu-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 34px;
  padding: 0 8px;
  border-radius: var(--menu-row-radius);
  color: var(--menu-text);
  font: inherit;
  font-size: 13px;
}
.stage-menu-back:hover {
  background: var(--menu-hover);
  color: var(--menu-text-strong);
}
.stage-menu-next {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--menu-text);
}
.stage-menu-range {
  padding: var(--space-5);
}
.stage-menu-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: 10px;
}
.stage-menu-range-value {
  color: var(--menu-text-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.stage-menu-range-input {
  display: block;
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.stage-menu-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: white;
}
.stage-menu-check.is-on {
  border-color: var(--accent);
  background: var(--accent);
}
.stage-menu-check-mark {
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  opacity: 0;
  transform: rotate(45deg);
}
.stage-menu-check.is-on .stage-menu-check-mark {
  opacity: 1;
}
.stage-menu-submenu {
  width: min(360px, calc(100vw - 16px));
  max-height: min(420px, calc(100vh - 16px));
  overflow-y: auto;
}
.stage-menu-radio {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
}
.stage-menu-radio.is-on {
  border-color: var(--accent);
}
.stage-menu-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.chip-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}
.chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}
.chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.chip.is-chosen {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-window);
  font-weight: 600;
}
.switch.is-blocked {
  opacity: 0.4;
}
.is-toggle.is-blocked {
  cursor: default;
}
*,
*::before,
*::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.stage-tile-sound {
  display: grid;
  place-items: center;
  flex: none;
  color: var(--text-muted);
}
.stage-tile-sound.is-on {
  color: var(--presence-online);
}
.stage-face.is-ringing::before,
.stage-face.is-ringing::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--presence-online);
  animation: stage-ring 1.8s ease-out infinite;
  pointer-events: none;
}
.stage-face.is-ringing::after {
  animation-delay: 0.9s;
}
@keyframes stage-ring {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}
.stage-tile.is-waiting {
  opacity: 0.45;
}
@media (prefers-reduced-motion: reduce) {
  .stage-face.is-ringing::before,
  .stage-face.is-ringing::after {
    animation: none;
    opacity: 0.5;
  }
}
.call-stage .stage-field {
  align-self: stretch;
  flex: 1;
  min-height: 0;
}
.call-stage .stage-controls {
  position: static;
  transform: none;
  left: auto;
  bottom: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.call-stage:has(.stage-tile.is-focused:is(.is-screen, .is-camera)) .stage-field {
  position: absolute;
  inset: 0;
}
.call-stage:has(.stage-tile.is-focused:is(.is-screen, .is-camera)) .stage-field.has-controls .stage-tiles {
  bottom: 0;
}
.call-stage:has(.stage-tile.is-focused:is(.is-screen, .is-camera)) .stage-controls {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
}
.voice-stage.is-filled,
.call-stage.is-filled {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100vw;
  height: 100dvh;
  max-height: none;
  background: var(--bg-window);
  border: none;
  padding: 0;
}
.call-stage.is-filled {
  height: 100dvh !important;
}
html:fullscreen,
html:fullscreen body,
html:fullscreen::backdrop {
  background: var(--bg-window);
}
.is-filled .stage-tile.is-focused.is-screen,
.is-filled .stage-tile.is-focused.is-screen .stage-screen {
  background: var(--bg-window);
}
.voice-stage.is-filled .stage-header {
  display: none;
}
.call-stage.is-filled .call-stage-state,
.call-stage.is-filled .stage-resizer {
  display: none;
}
.call-stage.is-filled .stage-field {
  flex: 1;
}
.call-stage.is-filled .stage-controls {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
}
.is-filled .stage-field.has-controls:has(.stage-tile.is-focused:is(.is-screen, .is-camera)) .stage-tiles {
  bottom: 0;
}
.is-filled:has(.stage-tile.is-focused:is(.is-screen, .is-camera)) :is(.stage-controls, .stage-expand-corner, .stage-stream-actions, .stage-tile-name, .stage-viewers) {
  transition: opacity 180ms ease;
}
.is-filled .stage-tile.is-focused:is(.is-screen, .is-camera) .stage-stream-actions {
  right: 70px;
  bottom: 21px;
}
.stage-idle .is-filled:has(.stage-tile.is-focused:is(.is-screen, .is-camera)) :is(.stage-controls, .stage-expand-corner, .stage-stream-actions, .stage-tile-name, .stage-viewers) {
  opacity: 0;
  pointer-events: none;
}
.stage-idle .is-filled:has(.stage-tile.is-focused:is(.is-screen, .is-camera)),
.stage-idle .is-filled:has(.stage-tile.is-focused:is(.is-screen, .is-camera)) * {
  cursor: none;
}
.voice-stage:has(.stage-tiles > .stage-tile.is-focused:is(.is-screen, .is-camera)) .stage-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  border-bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}
.voice-stage:has(.stage-tiles > .stage-tile.is-focused:is(.is-screen, .is-camera)) .stage-field.has-controls .stage-tiles {
  bottom: 0;
}
.voice-stage:has(.stage-tiles > .stage-tile.is-focused:is(.is-screen, .is-camera)) .stage-tile.is-focused .stage-stream-actions {
  right: 70px;
  bottom: 21px;
}
.voice-stage:has(.stage-tiles > .stage-tile.is-focused:is(.is-screen, .is-camera)) :is(.stage-header, .stage-controls, .stage-expand-corner, .stage-stream-actions, .stage-tile-name, .stage-viewers) {
  transition: opacity 180ms ease;
}
.stage-idle .voice-stage:has(.stage-tiles > .stage-tile.is-focused:is(.is-screen, .is-camera)) :is(.stage-header, .stage-controls, .stage-expand-corner, .stage-stream-actions, .stage-tile-name, .stage-viewers) {
  opacity: 0;
  pointer-events: none;
}
.stage-idle .voice-stage:has(.stage-tiles > .stage-tile.is-focused:is(.is-screen, .is-camera)),
.stage-idle .voice-stage:has(.stage-tiles > .stage-tile.is-focused:is(.is-screen, .is-camera)) * {
  cursor: none;
}
@media (hover: hover) {
  html:not(.stage-over):not(:has(.stage-menu, .ui-stream-volume, .participant-context-menu, .ui-menu, .dropdown-menu)) .voice-stage:has(.stage-tiles > .stage-tile.is-focused:is(.is-screen, .is-camera)):not(:focus-within) :is(.stage-header, .stage-controls, .stage-expand-corner, .stage-stream-actions, .stage-tile-name, .stage-viewers) {
    opacity: 0;
    pointer-events: none;
  }
}
.stage-expand-corner {
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}
.stage-tile.is-focused .stage-tile-name {
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}
.stage-tile.is-focused .stage-stream-actions {
  -webkit-backdrop-filter: blur(8px) !important;
  backdrop-filter: blur(8px) !important;
}
.stage-expand {
  flex: none;
}
.stage-expand-corner {
  position: absolute;
  right: 16px;
  bottom: 20px;
  z-index: 7;
}
.stage-expand.is-on {
  color: var(--text-primary);
}
.friends-slot {
  display: contents;
}
.friends-screen {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-window);
}
.friends-head {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0 var(--space-6);
  height: 52px;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}
.friends-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.friends-head-rule {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
  opacity: 0.6;
}
.friends-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.friends-tab {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.friends-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.friends-tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.friends-add-btn {
  margin-left: 8px;
  height: 28px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--bg-window);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.friends-add-btn:hover {
  background: var(--accent-hover);
}
.add-friend-modal {
  position: relative;
  width: 100%;
  max-width: 25rem;
  padding: var(--space-6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  animation: dialog-pop-in 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
.add-friend-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.add-friend-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.add-friend-modal-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 110ms ease, color 110ms ease;
}
.add-friend-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}
.add-friend-modal label {
  display: block;
  margin-bottom: var(--space-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.add-friend-row {
  display: flex;
  gap: var(--space-4);
}
.add-friend-row input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.add-friend-row input:focus {
  border-color: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(240, 240, 240, 0.06);
}
.add-friend-row .primary {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--bg-window);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.add-friend-row .primary:hover {
  background: var(--accent-hover);
}
.friends-count {
  min-width: 16px;
  height: 16px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: #f23f43;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.friends-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-6) var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
}
.friends-body > .stage-empty {
  flex: 1;
}
.friend-direction {
  flex: none;
  font-size: 11.5px;
  color: var(--text-muted);
}
.friend-accept {
  flex: none;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.friend-accept:hover {
  background: var(--bg-elevated);
}
.friend-message,
.friend-remove {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  opacity: 0;
  cursor: pointer;
  transition: opacity 120ms ease, color 120ms ease;
}
.person-row:hover .friend-message,
.person-row:hover .friend-remove,
.friend-message:focus-visible,
.friend-remove:focus-visible {
  opacity: 1;
}
.friend-message:hover {
  color: var(--text-primary);
}
.friend-remove:hover {
  color: #f26d6d;
}
.skeleton {
  padding: 8px 0 4px;
  opacity: 0;
  animation: skeleton-reveal 160ms ease 160ms forwards, skeleton-breathe 1.6s ease-in-out 320ms infinite;
}
@keyframes skeleton-reveal {
  to {
    opacity: 0.55;
  }
}
.skeleton-row {
  display: flex;
  gap: var(--space-7);
  padding: 10px 24px 3px;
}
.skeleton-row.is-grouped {
  padding-top: 2px;
  padding-bottom: 2px;
}
.skeleton-face {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
}
.skeleton-gutter {
  flex: none;
  width: 40px;
}
.skeleton-said {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
}
.skeleton-name {
  width: 96px;
  height: 11px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
}
.skeleton-line {
  height: 9px;
  max-width: 620px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
}
.skeleton-block {
  width: 260px;
  height: 150px;
  margin-top: 3px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.skeleton.is-pins {
  padding: 4px 0;
}
.skeleton.is-pins .skeleton-row {
  gap: 12px;
  padding: 12px;
}
.skeleton.is-pins .skeleton-face {
  width: 36px;
  height: 36px;
}
.skeleton.is-pins .skeleton-said {
  gap: 6px;
  padding-top: 2px;
}
.skeleton.is-pins .skeleton-name {
  width: 92px;
  height: 10px;
}
.skeleton.is-pins .skeleton-line {
  height: 8px;
}
@keyframes skeleton-breathe {
  0%, 100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.9;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: skeleton-reveal 0s linear 160ms forwards;
  }
}
.dialog,
.incoming-call,
.profile-popover,
.profile-modal,
.profile-presence-menu,
.profile-presence-card,
.add-friend-modal,
.space-menu,
.stage-menu,
.stage-menu-submenu,
.dropdown-menu,
.participant-volume-menu,
.attachment-more-menu,
.message-search-scope-menu,
.emoji-popover,
.emoji-tone-menu,
.reaction-emoji-popover,
.space-tooltip-popover,
.voice-stream-popover,
.voice-stats-popover,
.voice-failure-card,
.drag-drop-card,
.picker,
.auth-card {
  border-radius: var(--surface-radius);
  border: 1px solid var(--surface-border);
  background: var(--surface-bg);
  box-shadow: var(--surface-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.ui-button.is-primary,
.dialog-actions .primary,
.auth-actions .primary,
.friends-add-btn,
.friends-add-row .primary,
.add-friend-row .primary,
.profile-popover-message,
.profile-modal-message,
.invite-card-join,
.composer .send,
.stage-join-btn,
.friend-accept {
  background: var(--accent-fill);
  color: var(--accent-fill-text);
  border: 1px solid var(--accent-fill-border);
  box-shadow: var(--accent-fill-lift);
}
.ui-button.is-primary:hover:not(:disabled),
.dialog-actions .primary:hover:not(:disabled),
.auth-actions .primary:hover:not(:disabled),
.friends-add-btn:hover,
.friends-add-row .primary:hover:not(:disabled),
.add-friend-row .primary:hover,
.profile-popover-message:hover,
.profile-modal-message:hover,
.invite-card-join:hover,
.composer .send:hover:not(:disabled),
.stage-join-btn:hover,
.friend-accept:hover {
  background: var(--accent-fill-hover);
}
.rail {
  background: var(--bg-rail);
}
@media (prefers-reduced-motion: reduce) {
  .switch,
  .switch-knob,
  .choice-mark,
  .choice-mark::after {
    transition: none;
  }
}
.dialog-field input,
.dialog-actions button,
.ui-button,
.auth-field input,
.auth-actions .primary,
.auth-tab,
.door,
.picker-search,
.friends-add-row input,
.friends-add-btn,
.add-friend-row input,
.add-friend-row .primary,
.friend-accept,
.friends-tab,
.invite-link,
.invite-copy,
.invite-card-join,
.stage-join-btn,
.profile-popover-message,
.profile-modal-message,
.dropdown-trigger,
.composer-input-wrap,
.message-search input,
.settings-rail button,
.choice,
.setting-row.is-toggle {
  border-radius: var(--control-radius);
}
.voice-person-mark {
  display: inline-grid;
  place-items: center;
}
.voice-person-mark.is-forced,
.voice-person:hover .voice-person-mark.is-forced {
  color: var(--danger);
}
.participant-menu-item.is-danger,
.participant-menu-item.is-danger .participant-menu-label {
  color: var(--danger);
}
.participant-menu-item.is-danger:hover {
  background: rgba(255, 77, 87, 0.14);
}
.stage-tile-pip.is-forced {
  color: var(--danger);
}

/* ../plugin/src/ui/videoPlayer.css */
.ts-video-player {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 80vh;
  background: #090a0f;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  outline: none;
  user-select: none;
  font-family: inherit;
  aspect-ratio: var(--ts-video-aspect-ratio, auto);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ts-video-player.is-vertical {
  max-width: 340px;
  max-height: 560px;
}
.ts-video-player:focus-visible {
  box-shadow: 0 0 0 2px var(--accent, #6366f1), 0 12px 32px rgba(0, 0, 0, 0.45);
}
.ts-video-element,
.ts-video-player .ts-video-element {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #000;
  display: block;
  cursor: pointer;
}
.ts-video-header-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0) 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-video-center-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.ts-video-big-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(18, 20, 29, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.2s ease,
    opacity 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.ts-video-big-play-btn svg {
  transform: translateX(2px);
}
.ts-video-player.is-playing .ts-video-big-play-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}
.ts-video-big-play-btn:hover {
  transform: scale(1.1) translateX(0);
  background: rgba(99, 102, 241, 0.85);
  border-color: rgba(255, 255, 255, 0.3);
}
.ts-video-spinner {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent, #6366f1);
  border-radius: 50%;
  animation: ts-video-spin 0.8s linear infinite;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.ts-video-player.is-buffering .ts-video-spinner {
  opacity: 1;
}
@keyframes ts-video-spin {
  to {
    transform: rotate(360deg);
  }
}
.ts-video-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 12px 6px;
  background:
    linear-gradient(
      0deg,
      rgba(7, 8, 13, 0.94) 0%,
      rgba(7, 8, 13, 0.6) 60%,
      rgba(7, 8, 13, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 4;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ts-video-player.is-idle {
  cursor: none;
}
.ts-video-player.is-idle .ts-video-element {
  cursor: none;
}
.ts-video-player.is-idle .ts-video-controls-bar,
.ts-video-player.is-idle .ts-video-header-title {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}
.ts-video-seekbar-container {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: height 0.15s ease;
}
.ts-video-seekbar-container:hover {
  height: 8px;
}
.ts-video-progress-buffer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  pointer-events: none;
}
.ts-video-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background:
    linear-gradient(
      90deg,
      #6366f1 0%,
      #818cf8 100%);
  border-radius: 3px;
  pointer-events: none;
}
.ts-video-seekbar-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 2;
}
.ts-video-seek-tooltip {
  position: absolute;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: rgba(18, 20, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 5;
}
.ts-video-seek-tooltip.is-visible {
  opacity: 1;
}
.ts-video-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ts-video-controls-left,
.ts-video-controls-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ts-video-time-display {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}
.ts-video-time-current {
  color: #ffffff;
}
.ts-video-time-separator {
  opacity: 0.4;
}
.ts-video-volume-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.ts-video-volume-popup {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding: 10px 10px;
  background: rgba(18, 20, 29, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ts-video-volume-popup::before {
  content: "";
  position: absolute;
  bottom: -16px;
  left: -10px;
  right: -10px;
  height: 16px;
  background: transparent;
}
.ts-video-volume-group:hover .ts-video-volume-popup,
.ts-video-volume-group:focus-within .ts-video-volume-popup,
.ts-video-volume-popup:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.ts-video-volume-track {
  position: relative;
  width: 4px;
  height: 72px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ts-video-volume-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  pointer-events: none;
}
.ts-video-volume-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
}
.ts-video-speed-wrapper {
  position: relative;
  display: inline-flex;
}
.ui-icon-button.ts-video-speed-btn {
  width: auto !important;
  min-width: 28px;
  height: 32px;
  padding: 0 4px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ui-icon-button.ts-video-speed-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}
.ts-video-speed-label {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ts-video-speed-menu {
  position: absolute;
  bottom: 38px;
  right: 0;
  background: rgba(18, 20, 29, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 66px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 10;
}
.ts-video-speed-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ts-video-speed-option {
  padding: 5px 10px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.ts-video-speed-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ts-video-speed-option.is-active {
  color: var(--accent, #6366f1);
  font-weight: 700;
  background: rgba(99, 102, 241, 0.15);
}
.ts-video-player.is-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.attachment-video .ts-video-player {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  box-shadow: none;
}
/*# sourceMappingURL=app.css.map */
