.container {
  --nv-green-900: #1f3200;
  --nv-green-800: #355400;
  --nv-green-700: #557f00;
  --nv-green-600: #76B901;
  --nv-green-500: #94d92e;
  --nv-green-300: #dff3b1;
  --nv-green-rgb: 118, 185, 1;
  --nv-bg-strong: rgba(8, 13, 10, 0.24);
  --nv-bg-medium: rgba(8, 13, 10, 0.18);
  --nv-bg-soft: rgba(8, 13, 10, 0.14);
  --nv-bg-subtle: rgba(var(--nv-green-rgb), 0.08);
  --nv-border-soft: rgba(var(--nv-green-rgb), 0.22);
  --nv-border-medium: rgba(var(--nv-green-rgb), 0.34);
  --nv-border-strong: rgba(var(--nv-green-rgb), 0.52);
  --nv-text-main: #eef8d9;
  --nv-text-secondary: #c8e2a4;
  --nv-text-muted: #9bb873;
  --room-rail-width: min(100%, 860px);

  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0;
  gap: 0.5rem;
}

.containerSidebarOpen {
  padding-left: 0;
}

.error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--nv-border-medium);
  background: rgba(var(--nv-green-rgb), 0.12);
  color: var(--nv-green-300);
  font-size: 0.86rem;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}

.layout {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 0;
}

.sidebar {
  width: 252px;
  flex-shrink: 0;
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-bottom: none;
  border-left: none;
  background:
    linear-gradient(180deg, rgba(46, 50, 58, 0.5) 0%, rgba(21, 23, 29, 0.76) 100%);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.8rem 0.75rem 0.85rem;
  gap: 0.75rem;
  overflow-y: auto;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.03),
    20px 0 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.sidebarSection {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sidebarSection + .sidebarSection {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.selectGroup {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.select {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  padding: 0.52rem 0.65rem;
  font-size: 0.88rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.select option {
  color: #ffffff;
  background: #101510;
}

.select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 2px rgba(255, 255, 255, 0.08);
}

.roomsHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.roomsTitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.roomsSubtitle {
  margin-top: 0.12rem;
  font-size: 0.76rem;
  color: #ffffff;
}

.teamDetailsButton {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: #ffffff;
  padding: 0.82rem 0.86rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 36px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.teamDetailsButton:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.teamDetailsButton:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.teamDetailsButtonHead {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.teamDetailsButtonLabel {
  font-size: 0.84rem;
  font-weight: 650;
  color: #ffffff;
}

.teamDetailsButtonIcon {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.teamDetailsButtonText {
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

.teamDetailsButtonMeta {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.66);
}

.iconButton {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--nv-border-medium);
  background: rgba(var(--nv-green-rgb), 0.2);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.iconButton:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.createRoomForm {
  display: flex;
  gap: 0.45rem;
}

.createRoomInput {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.92);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92);
  font-size: 0.83rem;
  padding: 0.45rem 0.55rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.createRoomInput::placeholder {
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}

.createRoomInput:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 2px rgba(255, 255, 255, 0.08);
}

.createRoomButton {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 0.72rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.createRoomButton:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.createRoomButton:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.roomList {
  flex: none;
  min-height: 0;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding-right: 0.1rem;
}

.sidebarEmpty {
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  text-align: center;
  padding: 0.75rem;
}

.roomItem {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #ffffff;
  padding: 0.62rem 0.7rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
}

.roomItem:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.06);
}

.roomItemActive {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.roomItemBody {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

.roomName {
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roomId {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roomDeleteButton {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0;
}

.roomItem:hover .roomDeleteButton,
.roomItemActive .roomDeleteButton {
  opacity: 1;
}

.roomDeleteButton:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.roomDeleteButton:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.chatPanel {
  flex: 1;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.chatHeader {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.72rem 0.9rem 0.34rem;
  border-bottom: none;
  background: transparent;
}

.chatHeader > * {
  width: min(100%, var(--room-rail-width));
  margin: 0 auto;
}

.chatTitleWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-width: 0;
  width: 100%;
}

.chatTitle {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--nv-text-main);
  max-width: min(100%, 760px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.chatTitleStatus {
  flex-shrink: 0;
  white-space: nowrap;
}

.wsConnected {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  color: var(--nv-green-500);
  animation: pulse 2s infinite;
  line-height: 1;
}

.wsDisconnected {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  color: var(--nv-text-muted);
  opacity: 0.7;
  line-height: 1;
}

.wsFallback {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  color: #fbbf24;
  line-height: 1;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.teamDetailsOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  z-index: 1300;
}

.teamDetailsDialog {
  width: min(960px, calc(100vw - 2.4rem));
  max-height: calc(100vh - 2.4rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(44, 48, 56, 0.72) 0%, rgba(17, 19, 24, 0.88) 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
}

.teamDetailsHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.3rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.teamDetailsHeaderCopy {
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
}

.teamDetailsEyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.teamDetailsTitle {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.08;
  font-weight: 650;
  color: #ffffff;
}

.teamDetailsCloseButton,
.teamDetailsFooterButton {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.teamDetailsCloseButton {
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  line-height: 1;
}

.teamDetailsFooterButton {
  padding: 0.52rem 0.92rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.teamDetailsCloseButton:hover,
.teamDetailsFooterButton:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.teamDetailsCloseButton:active,
.teamDetailsFooterButton:active {
  transform: scale(0.98);
}

.teamDetailsBody {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem 1.3rem 1.25rem;
  overflow-y: auto;
}

.teamDetailsHero {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.teamDetailsBrief {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.teamDetailsSummaryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.teamDetailsSection {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.teamDetailsSectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.teamDetailsMemberGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  align-items: start;
}

.teamDetailsMemberCard {
  min-height: 100%;
  padding: 0.82rem 0.9rem;
  gap: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
}

.teamDetailsFooter {
  display: flex;
  justify-content: flex-end;
  padding: 0.95rem 1.3rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.memberQueueSection {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.44rem;
}

.memberQueueHeading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.memberQueueTitle {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.memberQueueSubtitle {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.84);
}

.memberQueueEmpty {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.75rem;
}

.memberQueueList {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.04rem 0.04rem 0.28rem;
  scroll-snap-type: x proximity;
}

.memberQueueItem {
  flex: 0 0 292px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.36rem 0.66rem;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  scroll-snap-align: start;
}

.memberQueueItemLeader {
  border-color: rgba(255, 107, 104, 0.52);
  background: rgba(127, 29, 29, 0.18);
}

.memberQueueTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.memberQueueIdentity {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-width: 0;
}

.memberQueueName {
  font-size: 0.82rem;
  font-weight: 650;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.memberQueueBody {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.34rem;
  min-width: 0;
}

.memberQueueRole {
  font-size: 0.72rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.memberQueueVibe {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metaGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.52rem;
}

.metaCard {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: #ffffff;
  padding: 0.62rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.44rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.metaLabel {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.metaValue {
  font-size: 0.86rem;
  font-weight: 620;
  color: #ffffff;
  line-height: 1.35;
}

.metaIdentity {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
}

.metaLogo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.metaSubtle {
  font-size: 0.74rem;
  color: #ffffff;
  line-height: 1.35;
}

.metaSubtle code {
  font-size: 0.72rem;
  padding: 0.08rem 0.24rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.metaCard .metaSubtle code {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.metaInline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.metaPill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.88);
  padding: 0.1rem 0.36rem;
  font-size: 0.68rem;
  line-height: 1.2;
}

.metaBrief {
  font-size: 0.75rem;
  color: #ffffff;
  line-height: 1.45;
  max-height: 3.1em;
  overflow: hidden;
}

.resumeHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.resumeName {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.resumeRoleBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.16rem 0.46rem;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #ff6b68;
  border: 1px solid rgba(255, 107, 104, 0.6);
  background: rgba(127, 29, 29, 0.35);
}

.resumeFactGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem;
}

.resumeFact {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.34rem 0.4rem;
  background: rgba(255, 255, 255, 0.03);
}

.resumeFactLabel {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.resumeFactValue {
  font-size: 0.74rem;
  color: #ffffff;
  line-height: 1.35;
}

.resumeNarrative {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #ffffff;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 0.36rem 0.44rem;
  background: rgba(255, 255, 255, 0.02);
}

.memberResumeList {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  max-height: none;
  overflow: visible;
  padding-right: 0.1rem;
}

.memberResumeItem {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.4rem 0.44rem;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.memberResumeItemLeader {
  border-color: rgba(255, 141, 141, 0.2);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.18), rgba(255, 255, 255, 0.03));
}

.memberResumeHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.36rem;
}

.memberResumeIdentity {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-width: 0;
}

.memberResumeName {
  font-size: 0.82rem;
  font-weight: 650;
  color: #ffffff;
}

.memberResumeRoleLeader,
.memberResumeRoleWorker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.1rem 0.36rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.memberResumeRoleLeader {
  color: #ff6b68;
  border: 1px solid rgba(255, 107, 104, 0.58);
  background: rgba(127, 29, 29, 0.34);
}

.memberResumeRoleWorker {
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.46);
  background: rgba(120, 113, 20, 0.3);
}

.memberResumeFactGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
}

.memberResumeFact {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.memberResumeFactLabel {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.memberResumeFactValue {
  font-size: 0.72rem;
  color: #ffffff;
  line-height: 1.35;
}

.participantStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.emptyParticipants {
  font-size: 0.8rem;
  color: var(--nv-text-secondary);
}

.participantChip {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  border-radius: 999px;
  border: 1px solid var(--nv-border-soft);
  background: rgba(var(--nv-green-rgb), 0.07);
  padding: 0.2rem 0.42rem;
  min-height: 30px;
}

.participantAvatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: rgba(var(--nv-green-rgb), 0.16);
  overflow: hidden;
}

.avatarLogo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.participantName {
  font-size: 0.78rem;
  color: var(--nv-text-main);
}

.leaderBadge,
.workerBadge {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.12rem 0.32rem;
}

.leaderBadge {
  background: rgba(var(--nv-green-rgb), 0.28);
  color: var(--nv-green-300);
  border: 1px solid var(--nv-border-strong);
}

.workerBadge {
  background: rgba(var(--nv-green-rgb), 0.16);
  color: var(--nv-text-secondary);
  border: 1px solid var(--nv-border-medium);
}

.leaderAction {
  border: none;
  background: rgba(var(--nv-green-rgb), 0.2);
  color: var(--nv-green-300);
  border-radius: 999px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.68rem;
}

.leaderAction:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: transparent;
}

.messageRow {
  display: flex;
  width: min(100%, var(--room-rail-width));
  max-width: var(--room-rail-width);
  min-width: 0;
}

.messageRowAgent {
  justify-content: flex-start;
}

.messageRowUser {
  justify-content: flex-end;
}

.messageMain {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  max-width: 100%;
}

.messageRowUser .messageMain {
  width: auto;
  max-width: min(72%, 560px);
  align-items: flex-end;
}

.toolTraceList {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  max-width: min(72%, 560px);
}

.messageMeta {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  flex-wrap: wrap;
}

.messageRowUser .messageMeta {
  justify-content: flex-end;
}

.senderIdentity {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
}

.senderLogo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.96;
}

.senderName {
  font-size: 0.8rem;
  font-weight: 620;
  color: #ffffff;
}

.senderNameLeader {
  color: #ffffff;
  font-weight: 700;
}

.senderType {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nv-text-muted);
}

.senderTypeLeader {
  color: #ff5a58;
  font-weight: 700;
}

.senderTypeWorker {
  color: #facc15;
  font-weight: 700;
}

.timestamp {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
}

.messageBubble {
  width: 100%;
  max-width: 100%;
  border: none;
  border-radius: 0;
  padding: 0;
}

.messageBubbleAgent {
  background: transparent;
}

.messageBubbleUser {
  width: auto;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.96);
  border-radius: 1.45rem;
  padding: 0.8rem 1rem;
}

.messageBubbleSystem {
  width: auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.1rem;
  padding: 0.72rem 0.9rem;
}

.messageBubbleStreaming {
  opacity: 0.94;
}

.streamingCursor {
  display: inline-block;
  width: 0.45rem;
  height: 1rem;
  margin-left: 0.15rem;
  vertical-align: text-bottom;
  background: rgba(255, 255, 255, 0.72);
  animation: clawRoomStreamingBlink 1s step-end infinite;
}

@keyframes clawRoomStreamingBlink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.messageMarkdown {
  min-width: 0;
  width: 100%;
}

.messageMarkdown :global(.markdown) {
  font-size: 0.9rem;
  line-height: 1.68;
}

.messageMarkdown > div {
  line-height: 1.45;
}

.messageMarkdown > div > p {
  margin: 0;
}

.messageMarkdown > div > p + p {
  margin-top: 0.62em;
}

.messageMarkdown :global(.markdown p:last-child) {
  margin-bottom: 0;
}

.messageMarkdown :global(.markdown pre),
.messageMarkdown :global(.markdown .codeBlock) {
  margin-bottom: 0.65rem;
}

.inputArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem 1rem 1rem;
  border-top: none;
  background: linear-gradient(180deg, rgba(7, 8, 10, 0) 0%, rgba(7, 8, 10, 0.72) 38%, rgba(7, 8, 10, 0.94) 100%);
  position: relative;
  isolation: isolate;
}

.inputStack {
  position: relative;
  width: var(--room-rail-width);
  max-width: var(--room-rail-width);
  margin: 0 auto;
  z-index: 1;
}

.inputShell {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  border: none;
  background: rgba(44, 45, 49, 0.82);
  padding: 0;
  min-height: 0;
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.inputShell:focus-within {
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.input {
  width: 100%;
  border: none !important;
  background: transparent;
  color: var(--color-text);
  resize: none;
  padding: 0.875rem 1rem 0.5rem 1rem;
  font-size: var(--text-sm);
  line-height: 1.5;
  min-height: 24px;
  max-height: 150px;
  transition: all var(--transition-base);
  box-shadow: none !important;
  outline: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.input:focus {
  outline: none;
  border: none !important;
  box-shadow: none !important;
}

.input:focus-visible {
  outline: none;
  border: none !important;
  box-shadow: none !important;
}

.input::placeholder {
  color: var(--color-text-muted);
}

.inputActionsRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.2rem 0.55rem 0.6rem 0.55rem;
}

.inputModeControls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.sendButton {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: var(--color-text);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-left: auto;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.sendButton:hover:not(:disabled) {
  background-color: var(--color-text-secondary);
}

.sendButton:active:not(:disabled) {
  transform: scale(0.95);
}

.sendButton:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: var(--color-text-muted);
}

.mentionMenu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.45rem);
  border-radius: 12px;
  border: 1px solid var(--nv-border-medium);
  background: rgba(8, 13, 10, 0.88);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 6;
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.mentionItem {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--nv-text-main);
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  text-align: left;
}

.mentionItem:hover,
.mentionItemActive {
  background: rgba(var(--nv-green-rgb), 0.2);
}

.mentionToken {
  font-weight: 600;
  color: var(--nv-green-300);
}

.mentionDescription {
  color: var(--nv-text-secondary);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loadingShell {
  border-radius: 18px;
  border: 1px solid var(--nv-border-soft);
  background: rgba(8, 13, 10, 0.2);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  min-height: clamp(360px, 56vh, 640px);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}

.loadingTopRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.loadingTitle {
  height: 16px;
  width: min(260px, 52%);
  border-radius: 999px;
}

.loadingBadge {
  height: 14px;
  width: 86px;
  border-radius: 999px;
}

.loadingSubtitle {
  font-size: 0.82rem;
  color: var(--nv-text-secondary);
}

.loadingLayout {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 0.75rem;
}

.loadingSidebar {
  width: 280px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid var(--nv-border-soft);
  background: rgba(8, 13, 10, 0.18);
  padding: 0.62rem;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.loadingLine,
.loadingLineWide,
.loadingRoomItem,
.loadingChip,
.loadingBubble,
.loadingBubbleWide,
.loadingInput {
  border-radius: 10px;
  border: 1px solid rgba(118, 185, 1, 0.12);
}

.loadingLine {
  height: 12px;
  width: 40%;
}

.loadingLineWide {
  height: 14px;
  width: 72%;
}

.loadingRoomItem {
  height: 40px;
  width: 100%;
}

.loadingChat {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid var(--nv-border-soft);
  background: var(--nv-bg-medium);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.loadingChatHeader {
  border-bottom: 1px solid var(--nv-border-soft);
  padding: 0.62rem;
  display: flex;
  flex-direction: column;
  gap: 0.46rem;
}

.loadingChipRow {
  display: flex;
  gap: 0.36rem;
  flex-wrap: wrap;
}

.loadingChip {
  height: 24px;
  width: 106px;
  border-radius: 999px;
}

.loadingMessages {
  flex: 1;
  min-height: 0;
  padding: 0.78rem 0.62rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.loadingBubble {
  height: 50px;
  width: 62%;
}

.loadingBubbleWide {
  height: 70px;
  width: 82%;
}

.loadingInput {
  height: 54px;
  margin: 0 0.62rem 0.62rem;
  border-radius: 14px;
}

.loadingPulse {
  background: rgba(var(--nv-green-rgb), 0.12);
  position: relative;
  overflow: hidden;
}

.loadingPulse::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(143, 209, 46, 0) 0%,
    rgba(143, 209, 46, 0.16) 48%,
    rgba(143, 209, 46, 0) 100%
  );
  transform: translateX(-100%);
  animation: loadingSweep 1.6s ease-in-out infinite;
}

@keyframes loadingSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.stateHint {
  color: var(--nv-text-secondary);
  font-size: 0.92rem;
  width: min(100%, var(--room-rail-width));
  padding: 1rem 0.25rem;
  text-align: center;
}

@media (max-width: 1080px) {
  .layout {
    flex-direction: column;
  }

  .loadingLayout {
    flex-direction: column;
  }

  .loadingSidebar {
    width: 100%;
  }

  .sidebar {
    width: 100%;
  }

  .roomList {
    max-height: 170px;
  }

  .teamDetailsDialog {
    width: calc(100vw - 1.6rem);
    max-height: calc(100vh - 1.6rem);
  }

  .teamDetailsMemberGrid {
    grid-template-columns: 1fr;
  }

  .messageRowUser .messageMain {
    max-width: min(80%, 560px);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0.2rem 0 0;
  }

  .containerSidebarOpen {
    padding-left: 0.3rem;
  }

  .memberQueueList {
    gap: 0.34rem;
  }

  .memberQueueItem {
    flex-basis: 244px;
    border-radius: 20px;
    padding: 0.34rem 0.52rem;
  }

  .memberQueueBody {
    grid-template-columns: auto 1fr;
  }

  .memberQueueVibe {
    display: none;
  }

  .resumeFactGrid,
  .memberResumeFactGrid {
    grid-template-columns: 1fr;
  }

  .memberResumeFact:first-child {
    grid-column: auto;
  }

  .memberResumeList {
    max-height: none;
  }

  .teamDetailsOverlay {
    padding: 0.8rem;
  }

  .teamDetailsHeader,
  .teamDetailsBody,
  .teamDetailsFooter {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .teamDetailsTitle {
    font-size: 1.32rem;
  }

  .chatHeader {
    padding: 0.64rem 0.72rem 0.28rem;
  }

  .chatTitleWrap {
    gap: 0.3rem;
  }

  .messages {
    padding: 0.75rem 0.62rem;
    gap: 0.62rem;
  }

  .messageRowUser .messageMain {
    max-width: min(88%, 100%);
  }

  .messageBubble {
    padding: 0.48rem 0.62rem;
  }

  .inputArea {
    padding: 0.62rem;
  }

  .inputShell {
    flex-direction: row;
    align-items: center;
    border-radius: 100px;
    padding: 0.375rem 0.375rem 0.375rem 0;
  }

  .input {
    padding: 0.875rem 1rem;
    font-size: 16px;
    min-height: unset;
  }

  .inputActionsRow {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    margin-right: 0.25rem;
  }

  .inputModeControls {
    gap: 0.3rem;
  }

  .sendButton {
    width: 32px;
    height: 32px;
    margin-right: 0;
  }
}
