/* 优汇金融定制层：话术弹窗 / 工作群★ / 规则面板 */
#tcs-fab {
  position: fixed;
  right: 16px;
  bottom: 90px;
  z-index: 9000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #8774e1;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
#tcs-fab:hover {
  filter: brightness(1.1);
}

#tcs-star {
  position: fixed;
  right: 70px;
  bottom: 90px;
  z-index: 9000;
  height: 46px;
  padding: 0 14px;
  border-radius: 23px;
  border: none;
  background: #2c2c2c;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  display: none;
}
#tcs-star.on {
  background: rgba(245, 166, 35, 0.25);
  color: #f5a623;
}

#tcs-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9001;
  width: 340px;
  background: #212121;
  color: #f5f5f5;
  border-left: 1px solid #2f2f2f;
  display: none;
  flex-direction: column;
  font-family: inherit;
}
#tcs-panel.open {
  display: flex;
}
#tcs-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #2f2f2f;
  font-size: 14px;
  font-weight: 600;
}
#tcs-panel .tcs-tabs {
  display: flex;
  border-bottom: 1px solid #2f2f2f;
}
#tcs-panel .tcs-tabs button {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  color: #aaa;
  font-size: 12px;
  cursor: pointer;
}
#tcs-panel .tcs-tabs button.active {
  color: #fff;
  border-bottom: 2px solid #8774e1;
}
#tcs-panel .tcs-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
#tcs-panel input,
#tcs-panel textarea {
  width: 100%;
  background: #2c2c2c;
  border: none;
  border-radius: 8px;
  color: #f5f5f5;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}
.tcs-card {
  background: #2c2c2c;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.tcs-card .tcs-title {
  font-weight: 600;
  margin-bottom: 4px;
}
.tcs-card .tcs-content {
  color: #aaa;
  font-size: 12px;
  white-space: pre-wrap;
  max-height: 72px;
  overflow: hidden;
}
.tcs-card.expanded .tcs-content {
  max-height: none;
}
.tcs-card button.tcs-use {
  margin-top: 8px;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #8774e1;
  color: #fff;
  padding: 6px 0;
  font-size: 12px;
  cursor: pointer;
}
.tcs-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #8774e1;
  color: #fff;
  padding: 9px 0;
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
}
.tcs-muted {
  color: #aaa;
  font-size: 12px;
}

/* 话术弹窗 */
#tcs-qr {
  position: fixed;
  z-index: 9100;
  width: 400px;
  max-height: 280px;
  overflow-y: auto;
  background: #2c2c2c;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: none;
  color: #f5f5f5;
}
#tcs-qr .tcs-qr-hint {
  padding: 6px 12px;
  font-size: 10px;
  color: #aaa;
  border-bottom: 1px solid #3a3a3a;
}
#tcs-qr .tcs-qr-item {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: #f5f5f5;
  text-align: left;
  cursor: pointer;
  align-items: flex-start;
  font-size: 13px;
}
#tcs-qr .tcs-qr-item:hover,
#tcs-qr .tcs-qr-item.sel {
  background: #383838;
}
#tcs-qr .tcs-qr-num {
  flex-shrink: 0;
  background: #8774e1;
  color: #fff;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
}
#tcs-qr .tcs-qr-tag {
  flex-shrink: 0;
  background: #4a4a4a;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11px;
}

/* 超时提醒 toast */
#tcs-toasts {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tcs-toast {
  background: #e0a000;
  color: #000;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
