.team-chat-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
}

.team-chat-dock-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.team-chat-radar-cta {
  border: 1px solid rgba(255, 200, 67, 0.5);
  background: linear-gradient(130deg, rgba(52, 36, 2, 0.96), rgba(28, 20, 2, 0.96));
  color: #ffe9a9;
  border-radius: 12px;
  padding: 0.43rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.team-chat-radar-cta.is-live {
  border-color: rgba(255, 86, 86, 0.55);
  background: linear-gradient(130deg, rgba(58, 8, 8, 0.96), rgba(29, 4, 4, 0.96));
  color: #ffd5d5;
}

.team-chat-dock-btn {
  border: 1px solid rgba(69, 215, 255, 0.45);
  background: linear-gradient(140deg, rgba(8, 24, 44, 0.96), rgba(4, 12, 24, 0.96));
  color: #d9f1ff;
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.team-chat-dock-btn .badge {
  margin-left: 0.4rem;
  background: #ffcb4a;
  color: #2b2300;
  border-radius: 999px;
  font-size: 0.66rem;
  padding: 0.1rem 0.4rem;
}

.team-chat-dock-panel {
  width: min(360px, calc(100vw - 24px));
  height: min(62vh, 480px);
  border: 1px solid rgba(69, 215, 255, 0.4);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(10, 18, 37, 0.98), rgba(5, 11, 24, 0.98));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  display: none;
  margin-top: 0.45rem;
  overflow: hidden;
}

.team-chat-dock-panel.is-open {
  display: flex;
  flex-direction: column;
}

.team-chat-dock-head {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(69, 215, 255, 0.28);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.team-chat-dock-title {
  font-size: 0.78rem;
  color: #d5ebff;
  font-weight: 700;
}

.team-chat-dock-head-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.team-chat-dock-notify,
.team-chat-dock-close {
  border: 1px solid rgba(148, 166, 211, 0.38);
  background: rgba(148, 166, 211, 0.1);
  color: #d7e6ff;
  border-radius: 8px;
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
}

.team-chat-dock-alerts {
  border-bottom: 1px solid rgba(69, 215, 255, 0.2);
  padding: 0.42rem 0.55rem 0.5rem;
  display: grid;
  gap: 0.28rem;
}

.team-chat-dock-alert-head {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #95bde7;
  margin-bottom: 0.15rem;
}

.team-chat-dock-alert-item {
  border: 1px solid rgba(120, 147, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9px;
  padding: 0.28rem 0.38rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.team-chat-dock-alert-main {
  min-width: 0;
}

.team-chat-dock-alert-title {
  color: #def1ff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.team-chat-dock-alert-body {
  color: #9eb2d2;
  font-size: 0.68rem;
  margin-top: 0.08rem;
  line-height: 1.24;
}

.team-chat-dock-alert-link {
  border: 1px solid rgba(81, 214, 255, 0.44);
  color: #cbf6ff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.14rem 0.46rem;
  white-space: nowrap;
}

.team-chat-dock-feed {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.55rem;
}

.team-chat-dock-channel {
  padding: 0.45rem 0.55rem 0.35rem;
  border-bottom: 1px solid rgba(69, 215, 255, 0.2);
}

.team-chat-dock-select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(93, 121, 242, 0.3);
  background: rgba(4, 8, 22, 0.94);
  color: #e8f2ff;
  padding: 0.32rem 0.48rem;
  font-size: 0.78rem;
}

.team-chat-dock-msg {
  margin-bottom: 0.38rem;
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.team-chat-dock-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
}

.team-chat-dock-user {
  color: #86b7ff;
  font-weight: 700;
}

.team-chat-dock-time {
  color: #95a3c0;
}

.team-chat-dock-text {
  font-size: 0.82rem;
  margin-top: 0.12rem;
  color: #edf3ff;
}

.team-chat-dock-empty {
  color: #9eb2d2;
  font-size: 0.76rem;
  line-height: 1.3;
}

.team-chat-dock-form {
  border-top: 1px solid rgba(69, 215, 255, 0.2);
  padding: 0.55rem;
  display: flex;
  gap: 0.4rem;
}

.team-chat-dock-input {
  flex: 1;
  border-radius: 8px;
  border: 1px solid rgba(93, 121, 242, 0.3);
  background: rgba(4, 8, 22, 0.94);
  color: #e8f2ff;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
}

.team-chat-dock-send {
  border-radius: 8px;
  border: 1px solid rgba(69, 215, 255, 0.46);
  color: #d9f7ff;
  background: rgba(69, 215, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.62rem;
}

@media (max-width: 575.98px) {
  .team-chat-dock {
    right: 10px;
    left: 10px;
    bottom: 10px;
  }

  .team-chat-dock-btn {
    width: 100%;
  }

  .team-chat-dock-stack {
    align-items: stretch;
  }

  .team-chat-radar-cta {
    width: 100%;
    justify-content: center;
  }

  .team-chat-dock-panel {
    width: 100%;
    height: min(56vh, 430px);
  }
}
