.aidlg-ta {
  min-height: 190px;
  line-height: 1.7;
}

.aidlg-sp {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 11px 12px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--ais-line, rgba(168, 85, 247, .22));
  border-radius: 12px;
  background: var(--ais-soft, rgba(168, 85, 247, .05));
  transition: border-color .15s, background .15s;
}

.aidlg-sp-r1 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.aidlg-sp-r2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--cm-border, rgba(148, 163, 184, .16));
}

.aidlg-sp-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.aidlg-sp.on {
  border-color: rgba(168, 85, 247, .65);
  background: rgba(168, 85, 247, .12);
}

.aidlg-sp.thieu {
  border-style: dashed;
}

.aidlg-sp-no {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #a855f7;
  background: rgba(168, 85, 247, .16);
}

.aidlg-sp-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.aidlg-sp-ten {
  flex: 0 1 auto;
  max-width: 55%;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cm-text, #e5e7eb);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aidlg-sp-giong {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-size: 11.5px;
  color: var(--cm-text-muted, #9ca3af);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aidlg-sp.thieu .aidlg-sp-giong {
  color: #f59e0b;
}

.aidlg-dangchon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 12.5px;
  color: #c084fc;
  background: rgba(168, 85, 247, .12);
}

.aigen-voice.mo {
  opacity: .45;
}

.aidlg-toc {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--cm-border, rgba(148, 163, 184, .2));
  border-radius: 9px;
  background: rgba(0, 0, 0, .25);
}

.aidlg-toc-nut {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--cm-text-muted, #9ca3af);
  font-size: 10px;
  cursor: pointer;
  transition: background .14s, color .14s;
}

.aidlg-toc-nut:hover:not(:disabled) {
  background: rgba(168, 85, 247, .18);
  color: #c084fc;
}

.aidlg-toc-nut:disabled {
  opacity: .3;
  cursor: default;
}

.aidlg-toc-so {
  min-width: 34px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--cm-text, #e5e7eb);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .aidlg-sp-r2 {
    flex-wrap: wrap;
  }

  .aidlg-sp-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
